Skip to content

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

26.2.15 release

David Benson026fbf558c40
diff --git a/ChangeLog b/ChangeLog
index f2b597c52..6e6e8cf29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,36 @@
+23-APR-2025: 26.2.15
+
+- Internal build
+
+22-APR-2025: 26.2.14
+
+- Fixes NPE in VSDX import
+- Fixes initial sidebar width for Firefox
+- Adds urlParam, enableSW, to force enable service worker
+- Adds missing jira cloud viewer html to SW
+
+16-APR-2025: 26.2.13
+
+- Adds missing Exit Group and Home menu items [jgraph/drawio#5021]
+
+11-APR-2025: 26.2.12
+
+- Fixes build error
+
+11-APR-2025: 26.2.11
+
+- Moves Mermaid menu from Advanced to Insert menu
+- [conf cloud] Adds option to Gliffy mass import to check current page when linked diagrams fail [DID-14921]
+- [vsdx]: Partial fix for themed fill color[DID-14963]
+
+10-APR-2025: 26.2.10
+
+- [conf cloud] Fixed diagrams in custom templates [DID-14800]
+
+07-APR-2025: 26.2.9
+
+- [conf cloud] Fixed migrated server custom libraries names for Conf v8.x [DID-14902]
+
05-APR-2025: 26.2.8
- Adds ALLOW_INTERNAL_10_NET=1 for 10.x.x.x proxy usage [jgraph/drawio#4966]
diff --git a/VERSION b/VERSION
index d76df0870..5323d2c2d 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-26.2.8
\ No newline at end of file
+26.2.15
\ No newline at end of file
diff --git a/etc/imageResize/README.md b/etc/imageResize/README.md
index d0228e8a5..93ef08613 100644
--- a/etc/imageResize/README.md
+++ b/etc/imageResize/README.md
@@ -14,4 +14,8 @@ node drawImageResize.js --file=path/to/your/file.drawio --width=200
To resize all images to 40% their current width:
-node drawImageResize.js --file=path/to/your/file.drawio --percentage=40
\ No newline at end of file
+node drawImageResize.js --file=path/to/your/file.drawio --percentage=40
+
+To resize all images to 40% of original size but no less than 300px:
+
+node drawImageResize.js --file=path/to/your/file.drawio --percentage=40 --width=300
\ No newline at end of file
diff --git a/etc/imageResize/drawImageResize.js b/etc/imageResize/drawImageResize.js
index 392f80a3e..eb7d7242a 100644
--- a/etc/imageResize/drawImageResize.js
+++ b/etc/imageResize/drawImageResize.js
@@ -2,7 +2,7 @@ const fs = require('fs');
const sharp = require('sharp');
const yargs = require('yargs/yargs');
const { hideBin } = require('yargs/helpers');
-const sizeOf = require('image-size');
+const { imageSize } = require('image-size');
const argv = yargs(hideBin(process.argv)).options({
file: { type: 'string', demandOption: true, describe: 'The path to the .drawio file' },
@@ -10,36 +10,47 @@ const argv = yargs(hideBin(process.argv)).options({
width: { type: 'number', demandOption: false, describe: 'The width to resize the images to' }
}).argv;
-const resizeImage = async (base64Image, percentage, width) =>
-{
- console.log(`Resizing image...`);
- // Adjust the regex to match the new end character ";" instead of ","
- const matches = base64Image.match(/^data:image\/(jpeg|png),(.*);$/);
- if (!matches) return null;
-
- const imageBuffer = Buffer.from(matches[2], 'base64');
- const dimensions = sizeOf(imageBuffer);
-
- console.log(`width = ${width}`);
- console.log(`percentage = ${percentage}`);
-
- if (percentage && !width)
+const resizeImage = async (base64Image, percentage, minWidth) =>
{
- // Width isn't passed in, use percentage
- width = Math.floor(dimensions.width * (percentage / 100));
- console.log(`dimensions.width = ${dimensions.width}`);
- }
- console.log(`width = ${width}`);
- return sharp(imageBuffer)
- .resize({ width: width, withoutEnlargement: true })
- .toBuffer()
- .then(resizedBuffer =>
+ console.log(`Resizing image...`);
+ const matches = base64Image.match(/^data:image\/(jpeg|png),(.*);$/);
+ if (!matches) return null;
+
+ const imageBuffer = Buffer.from(matches[2], 'base64');
+ const dimensions = imageSize(imageBuffer);
+
+ let targetWidth;
+
+ if (percentage)
{
- console.log(`Image resized to ${percentage}% of its original size.`);
- // Ensure to append ";" at the end after re-encoding to base64
- return `data:image/${matches[1]},` + resizedBuffer.toString('base64') + ';';
- });
-};
+ const calculatedWidth = Math.floor(dimensions.width * (percentage / 100));
+ console.log(`Original width: ${dimensions.width}, Percentage resize: ${percentage}%, Calculated width: ${calculatedWidth}`);
+
+ // Enforce minimum width if provided
+ targetWidth = minWidth ? Math.max(calculatedWidth, minWidth) : calculatedWidth;
+ }
+ else if (minWidth)
+ {
+ targetWidth = minWidth;
+ console.log(`Using minimum width directly: ${minWidth}`);
+ }
+ else
+ {
+ console.log(`No resizing parameters provided`);
+ return null;
+ }
+
+ console.log(`Final target width: ${targetWidth}`);
+
+ return sharp(imageBuffer)
+ .resize({ width: targetWidth, withoutEnlargement: true })
+ .toBuffer()
+ .then(resizedBuffer =>
+ {
+ console.log(`Image resized to width: ${targetWidth}px`);
+ return `data:image/${matches[1]},` + resizedBuffer.toString('base64') + ';';
+ });
+ };
const processDrawioFile = async (filePath, percentage, width) =>
{
diff --git a/src/main/webapp/images/sidebar-network2.png b/src/main/webapp/images/sidebar-network2.png
new file mode 100644
index 000000000..39e190a16
Binary files /dev/null and b/src/main/webapp/images/sidebar-network2.png differ
diff --git a/src/main/webapp/js/app.min.js b/src/main/webapp/js/app.min.js
index c441b61a6..dc97764fc 100644
--- a/src/main/webapp/js/app.min.js
+++ b/src/main/webapp/js/app.min.js
@@ -62,7 +62,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url
"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");
"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";
window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";
-window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.2.8",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.2.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/"),
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||
@@ -2097,7 +2097,7 @@ this.gestureHandler);var W=null;this.resizeHandler=mxUtils.bind(this,function(){
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(){g.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){g.view.validateBackground()}));g.addListener("gridSizeChanged",mxUtils.bind(this,function(){g.isGridEnabled()&&g.view.validateBackground()}));
this.editor.resetGraph()}this.init();g.standalone||this.open()};EditorUi.compactUi=!0;
EditorUi.parsePng=function(a,b,e){function f(m,q){var k=d;d+=q;return m.substring(k,d)}function g(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=g(a);var h=f(a,4);if(null!=b&&b(d-8,h,e))break;value=f(a,e);f(a,4);if("IEND"==h)break}while(e)}};mxUtils.extend(EditorUi,mxEventSource);
-EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?218:230);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.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?220:230);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,
"keydown",mxUtils.bind(this,function(f){this.onKeyDown(f)}));mxEvent.addListener(a.container,"keypress",mxUtils.bind(this,function(f){this.onKeyPress(f)}));this.addUndoListener();this.addBeforeUnloadListener();a.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));a.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));var b=a.setDefaultParent,e=this;this.editor.graph.setDefaultParent=function(){b.apply(this,
@@ -2283,8 +2283,8 @@ EditorUi.prototype.createMenuElement=function(a,b,e){var f=document.createElemen
EditorUi.prototype.addMenuHandler=function(a,b,e){if(null!=b){var f=!0,g=mxUtils.bind(this,function(d){null!=e&&e(d);if(!mxEvent.isConsumed(d)&&f&&(null==a.enabled||a.enabled)){this.editor.graph.popupMenuHandler.hideMenu();var h=new mxPopupMenu(b);h.smartSeparators=!0;h.showDisabled=!0;h.autoExpand=!0;h.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(h,arguments);this.resetCurrentMenu();h.destroy()});this.menus.autoPopup||null==this.currentMenu||this.hideCurrentMenu();var m=
mxUtils.getOffset(a);h.popup(m.x,m.y+a.offsetHeight,null,d);this.setCurrentMenu(h,a)}mxEvent.consume(d)});mxEvent.addListener(a,"mousemove",mxUtils.bind(this,function(d){if(this.menus.autoPopup&&null!=this.currentMenu&&this.currentMenuElt!=a&&null!=this.currentMenuElt){var h=this.currentMenuElt;this.hideCurrentMenu();h.parentNode==a.parentNode&&"INPUT"!=a.nodeName&&g(d)}}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(d){!this.menus.autoPopup&&null!=
this.currentMenu&&this.currentMenuElt!=a&&mxEvent.isMouseEvent(d)&&this.hideCurrentMenu();f=null==this.currentMenu;"INPUT"!=mxEvent.getSource(d).nodeName?d.preventDefault():d.stopPropagation()}));mxEvent.addListener(a,"click",mxUtils.bind(this,function(d){g(d);f=!0}))}};
-EditorUi.prototype.createZoomInput=function(a){var b=document.createElement("input");b.className="geButton geZoomInput";b.style.backgroundImage="url("+Editor.thinExpandImage+")";b.setAttribute("type","text");b.setAttribute("value","100%");var e=this.menus.get("viewZoom");this.dependsOnLanguage(mxUtils.bind(this,function(){b.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)")}));a&&b.setAttribute("readonly","true");var f=!1;mxEvent.addGestureListeners(b,mxUtils.bind(this,function(g){f=
-!1;mxClient.IS_TOUCH||mxEvent.getSource(g)!=b||document.activeElement==b||(b.focus(),mxClient.IS_GC||mxClient.IS_FF?b.select():document.execCommand("selectAll",!1,null),f=!0)}),mxUtils.bind(this,function(g){mxEvent.getSource(g)==b&&f&&mxEvent.consume(g)}),mxUtils.bind(this,function(g){f&&(mxEvent.consume(g),f=!1)}));this.addMenuHandler(b,e.funct);mxUtils.bind(this,function(g){mxEvent.addListener(g,"click",mxUtils.bind(this,function(h){mxEvent.isAltDown(h)?(this.hideCurrentMenu(),this.actions.get("customZoom").funct(),
+EditorUi.prototype.createZoomInput=function(a){var b=document.createElement("input");b.className="geButton geZoomInput";b.style.backgroundImage="url("+Editor.thinExpandImage+")";b.setAttribute("type","text");b.setAttribute("value","100%");var e=this.menus.get("viewZoom");this.dependsOnLanguage(mxUtils.bind(this,function(){b.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)")}));(a||mxClient.IS_TOUCH)&&b.setAttribute("readonly","true");var f=!1;mxEvent.addGestureListeners(b,mxUtils.bind(this,
+function(g){f=!1;mxClient.IS_TOUCH||mxEvent.getSource(g)!=b||document.activeElement==b||(b.focus(),mxClient.IS_GC||mxClient.IS_FF?b.select():document.execCommand("selectAll",!1,null),f=!0)}),mxUtils.bind(this,function(g){mxEvent.getSource(g)==b&&f&&mxEvent.consume(g)}),mxUtils.bind(this,function(g){f&&(mxEvent.consume(g),f=!1)}));this.addMenuHandler(b,e.funct);mxUtils.bind(this,function(g){mxEvent.addListener(g,"click",mxUtils.bind(this,function(h){mxEvent.isAltDown(h)?(this.hideCurrentMenu(),this.actions.get("customZoom").funct(),
mxEvent.consume(h)):mxEvent.isShiftDown(h)&&(this.hideCurrentMenu(),this.actions.get("smartFit").funct(),mxEvent.consume(h))}));var d=mxUtils.bind(this,function(h,m,q){b.value=Math.round(100*this.editor.graph.view.scale*(null!=q?q:1))+"%";document.activeElement==b&&this.editor.graph.container.focus()});mxEvent.addListener(b,"keydown",mxUtils.bind(this,function(h){if(27==h.keyCode||13==h.keyCode||9==h.keyCode)27==h.keyCode||isNaN(parseInt(b.value))?d():this.editor.graph.zoomTo(parseInt(b.value)/100),
this.hideCurrentMenu(),mxEvent.consume(h)}));this.editor.graph.view.addListener(mxEvent.EVENT_SCALE,d);this.editor.addListener("resetGraphView",d);this.editor.addListener("pageSelected",d);mxEvent.addListener(b,"blur",d);this.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(h,m){d(h,m,m.getProperty("factor"))}))})(b);return b};
EditorUi.prototype.createHelpIcon=function(a,b){b=document.createElement("img");b.setAttribute("src",Editor.helpImage);b.setAttribute("title",mxResources.get("help"));b.className="geHelpIcon";mxEvent.addGestureListeners(b,mxUtils.bind(this,function(e){this.hideCurrentMenu();this.openLink(a);mxEvent.consume(e)}));return b};
@@ -3836,7 +3836,7 @@ Sidebar.prototype.aws4="Arrows;General Resources;Illustrations;Groups;Analytics;
Sidebar.prototype.office="Clouds Communications Concepts Databases Devices Security Servers Services Sites Users".split(" ");Sidebar.prototype.openstack=["Blue","Grey","Green","Red"];Sidebar.prototype.veeam="Data Center;Misc;Software;Storage;UsersStatus;VASComponents;Backup Replication;Products;VMs and Tape;2D;3D".split(";");Sidebar.prototype.veeam2="Auxiliary;Data Center;Features;General;Products and Components;Software;States;Storage;3D".split(";");Sidebar.prototype.archimate3="Application;Business;Generic;Implementation and Migration;Motivation;Relationships;Strategy;Technology".split(";");
Sidebar.prototype.electrical="LogicGates Resistors Capacitors Inductors SwitchesRelays Diodes Sources Transistors Misc Audio PlcLadder Abstract Optical VacuumTubes Waveforms Instruments RotMech Transmission".split(" ");Sidebar.prototype.customEntries=null;Sidebar.prototype.appendCustomLibraries=!1;Sidebar.prototype.enabledLibraries=null;Sidebar.prototype.maxPreloadCount=20;Sidebar.prototype.configuration=[{id:"general",libs:["general","misc","advanced"]},{id:"uml"},{id:"uml25"},{id:"search"},{id:"er"},
{id:"alibaba_cloud"},{id:"azure2",prefix:"azure2",libs:"AI Machine Learning;Analytics;App Services;Azure Ecosystem;Azure Stack;Azure VMware Solution;Blockchain;Compute;Containers;CXP;Databases;DevOps;General;Hybrid and Multicloud;Identity;Integration;Intune;IoT;Management Governance;Menu;Migrate;Mixed Reality;Mobile;Monitor;Networking;Other;Power Platform;Preview;Security;Storage;Web".split(";")},{id:"dynamics365",prefix:"dynamics365",libs:["App","Mixed Reality","Product Family","Sub App"]},{id:"ios",
-prefix:"ios",libs:["","7icons","7ui"]},{id:"android",prefix:"android",libs:[""]},{id:"aws3d"},{id:"flowchart"},{id:"basic"},{id:"infographic"},{id:"arrows"},{id:"arrows2"},{id:"lean_mapping"},{id:"citrix"},{id:"azure"},{id:"network"},{id:"vvd"},{id:"sitemap"},{id:"c4"},{id:"dfd"},{id:"threatModeling"},{id:"kubernetes"},{id:"cisco19",prefix:"cisco19",libs:Sidebar.prototype.cisco19},{id:"citrix2",prefix:"citrix2",libs:"Authentication;Cloud Services;Components;Locations;NetScaler;Networking;Resources;Users and Devices".split(";")},
+prefix:"ios",libs:["","7icons","7ui"]},{id:"android",prefix:"android",libs:[""]},{id:"aws3d"},{id:"flowchart"},{id:"basic"},{id:"infographic"},{id:"arrows"},{id:"arrows2"},{id:"lean_mapping"},{id:"citrix"},{id:"azure"},{id:"network"},{id:"network2"},{id:"vvd"},{id:"sitemap"},{id:"c4"},{id:"dfd"},{id:"threatModeling"},{id:"kubernetes"},{id:"cisco19",prefix:"cisco19",libs:Sidebar.prototype.cisco19},{id:"citrix2",prefix:"citrix2",libs:"Authentication;Cloud Services;Components;Locations;NetScaler;Networking;Resources;Users and Devices".split(";")},
{id:"mscae",prefix:"mscae",libs:"Companies;EnterpriseFlat;IntuneFlat;OMSFlat;System CenterFlat;AI and ML Service;Analytics Service;Compute Service;Compute Service VM;Container Service;Databases Service;DevOps Service;General Service;Identity Service;Integration Service;Internet of Things Service;Intune Service;Management and Governance Service;Management and Governance Service Media;Migrate Service;Mixed Reality Service;Mobile Service;Networking Service;Other Category Service;Security Service;Storage Service;Web Service".split(";")},
{id:"active_directory"},{id:"bpmn2",prefix:"bpmn2",libs:["General","Tasks","Choreographies","Events","Gateways"]},{id:"clipart",prefix:null,libs:"computer finance clipart networking people telco".split(" ")},{id:"ibm",prefix:"ibm",libs:Sidebar.prototype.ibm},{id:"ibm_cloud",prefix:"ibm_cloud",libs:Sidebar.prototype.ibm_cloud},{id:"allied_telesis",prefix:"allied_telesis",libs:Sidebar.prototype.allied_telesis},{id:"cumulus",libs:["cumulus"]},{id:"eip",prefix:"eip",libs:Sidebar.prototype.eip},{id:"mockups",
prefix:"mockup",libs:"Buttons Containers Forms Graphics Markup Misc Navigation Text".split(" ")},{id:"pid2",prefix:"pid2",libs:"Agitators;Apparatus Elements;Centrifuges;Compressors;Compressors ISO;Crushers Grinding;Driers;Engines;Feeders;Filters;Fittings;Flow Sensors;Heat Exchangers;Instruments;Misc;Mixers;Piping;Pumps;Pumps DIN;Pumps ISO;Separators;Shaping Machines;Valves;Vessels".split(";")},{id:"salesforce",prefix:"salesforce",libs:["Components","Product","Platform","Industry"]},{id:"signs",prefix:"signs",
@@ -3855,32 +3855,32 @@ id:"bootstrap",image:IMAGE_PATH+"/sidebar-bootstrap.png"},{title:"C4",id:"c4",im
{title:"Salesforce",id:"salesforce",image:IMAGE_PATH+"/sidebar-salesforce.png"},{title:mxResources.get("uml")+" 2.5",id:"uml25",image:IMAGE_PATH+"/sidebar-uml25.png"},{title:mxResources.get("uml"),id:"uml",image:IMAGE_PATH+"/sidebar-uml.png"}]},{title:mxResources.get("networking"),entries:[{title:"Alibaba Cloud",id:"alibaba_cloud",image:IMAGE_PATH+"/sidebar-alibaba_cloud.png"},{title:"Allied Telesis",id:"allied_telesis",image:IMAGE_PATH+"/sidebar-allied_telesis.png"},{title:"AWS17",id:"aws3",image:IMAGE_PATH+
"/sidebar-aws3.png"},{title:"AWS18",id:"aws4b",image:IMAGE_PATH+"/sidebar-aws4b.png"},{title:"AWS "+k,id:"aws4",image:IMAGE_PATH+"/sidebar-aws4.png"},{title:mxResources.get("aws3d"),id:"aws3d",image:IMAGE_PATH+"/sidebar-aws3d.png"},{title:mxResources.get("azure"),id:"azure2",image:IMAGE_PATH+"/sidebar-azure.png"},{title:"Cloud & Enterprise",id:"mscae",image:IMAGE_PATH+"/sidebar-mscae.png"},{title:mxResources.get("cisco"),id:"cisco",image:IMAGE_PATH+"/sidebar-cisco.png"},{title:"Cisco19",id:"cisco19",
image:IMAGE_PATH+"/sidebar-cisco19.png"},{title:"Cisco Safe",id:"cisco_safe",image:IMAGE_PATH+"/sidebar-cisco_safe.png"},{title:"Cumulus",id:"cumulus",image:IMAGE_PATH+"/sidebar-cumulus.png"},{title:"Citrix",id:"citrix2",image:IMAGE_PATH+"/sidebar-citrix2.png"},{title:"Citrix (legacy)",id:"citrix",image:IMAGE_PATH+"/sidebar-citrix.png"},{title:"Dynamics365",id:"dynamics365",image:IMAGE_PATH+"/sidebar-dynamics365.png"},{title:"Google Cloud Platform",id:"gcp2",image:IMAGE_PATH+"/sidebar-gcp2.png"},
-{title:"GCP Icons",id:"gcpicons",image:IMAGE_PATH+"/sidebar-gcpicons.png"},{title:"IBM",id:"ibm",image:IMAGE_PATH+"/sidebar-ibm.png"},{title:"IBM Cloud",id:"ibm_cloud",image:IMAGE_PATH+"/sidebar-ibmcloud.png"},{title:"Kubernetes",id:"kubernetes",image:IMAGE_PATH+"/sidebar-kubernetes.png"},{title:"Network",id:"network",image:IMAGE_PATH+"/sidebar-network.png"},{title:"Office",id:"office",image:IMAGE_PATH+"/sidebar-office.png"},{title:"OpenStack",id:"openstack",image:IMAGE_PATH+"/sidebar-openstack.png"},
-{title:mxResources.get("rack"),id:"rack",image:IMAGE_PATH+"/sidebar-rack.png"},{title:"SAP",id:"sap",image:IMAGE_PATH+"/sidebar-sap.png"},{title:"Veeam",id:"veeam2",image:IMAGE_PATH+"/sidebar-veeam.png"},{title:"VMware",id:"vvd",image:IMAGE_PATH+"/sidebar-vvd.png"}]},{title:mxResources.get("business"),entries:[{title:"ArchiMate 3.2",id:"archimate3",image:IMAGE_PATH+"/sidebar-archimate3.png"},{title:mxResources.get("archiMate21"),id:"archimate",image:IMAGE_PATH+"/sidebar-archimate.png"},{title:mxResources.get("bpmn")+
-" 2.0",id:"bpmn2",image:IMAGE_PATH+"/sidebar-bpmn.png"},{title:mxResources.get("sysml"),id:"sysml",image:IMAGE_PATH+"/sidebar-sysml.png"},{title:"Value Stream Mapping",id:"lean_mapping",image:IMAGE_PATH+"/sidebar-leanmapping.png"}]},{title:mxResources.get("other"),entries:[{title:mxResources.get("cabinets"),id:"cabinets",image:IMAGE_PATH+"/sidebar-cabinets.png"},{title:"Infographic",id:"infographic",image:IMAGE_PATH+"/sidebar-infographic.png"},{title:mxResources.get("eip"),id:"eip",image:IMAGE_PATH+
-"/sidebar-eip.png"},{title:mxResources.get("electrical"),id:"electrical",image:IMAGE_PATH+"/sidebar-electrical.png"},{title:mxResources.get("floorplans"),id:"floorplan",image:IMAGE_PATH+"/sidebar-floorplans.png"},{title:"Fluid Power (ISO 1219)",id:"fluid_power",image:IMAGE_PATH+"/sidebar-fluid_power.png"},{title:mxResources.get("gmdl"),id:"gmdl",image:IMAGE_PATH+"/sidebar-gmdl.png"},{title:mxResources.get("procEng"),id:"pid",image:IMAGE_PATH+"/sidebar-pid.png"},{title:"Threat Modeling",id:"threatModeling",
-image:IMAGE_PATH+"/sidebar-threatmodeling.png"},{title:"Web Icons",id:"webicons",image:IMAGE_PATH+"/sidebar-webIcons.png"},{title:mxResources.get("signs"),id:"signs",image:IMAGE_PATH+"/sidebar-signs.png"}]}]};"1"==urlParams.savesidebar&&(Sidebar.prototype.addFoldingHandler=function(h,k,l){var m=!1;h.style.backgroundImage="none"==k.style.display?"url('"+Editor.arrowRightImage+"')":"url('"+Editor.arrowDownImage+"')";var n=document.createElement("button");n.style.marginLeft="4px";mxUtils.write(n,"Save");
-mxEvent.addListener(h,"click",mxUtils.bind(this,function(p){if("BUTTON"==mxEvent.getSource(p).nodeName){p=k.getElementsByTagName("svg");var q=68*Math.ceil(p.length/6)+36,t=Graph.createSvgNode(0,0,432,q,mxUtils.getLightDarkColor("#ffffff")),v=new mxSvgCanvas2D(t);v.setFontFamily(mxConstants.DEFAULT_FONTFAMILY);v.setFontStyle(mxConstants.FONT_BOLD);v.setFontColor("rgb(80, 80, 80)");v.setFontSize(14);var u=h.getElementsByTagName("span");0<u.length&&v.text(6,0,0,0,mxUtils.getTextContent(u[0]));for(v=
-0;v<p.length;v++)u=p[v].cloneNode(!0),u.removeAttribute("style"),u.setAttribute("width",this.thumbWidth),u.setAttribute("height",this.thumbHeight),u.setAttribute("x",12+68*mxUtils.mod(v,6)),u.setAttribute("y",24+68*Math.floor(v/6)),t.appendChild(u);this.editorUi.editor.convertImages(t,mxUtils.bind(this,function(r){var x=document.createElement("canvas");x.width=432;x.height=q;var y=document.createElement("img");y.onload=mxUtils.bind(this,function(){x.getContext("2d").drawImage(y,0,0);this.editorUi.saveCanvas(x,
-null,"png")});r=Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(t);y.src=Editor.createSvgDataUri(r)}))}else{if("none"==k.style.display){if(m)h.appendChild(n);else if(m=!0,null!=l){null!=n.parentNode&&n.parentNode.removeChild(n);h.style.cursor="wait";var w=h.innerHTML;h.innerHTML=mxResources.get("loading")+"...";window.setTimeout(function(){l(k);h.style.cursor="";h.innerHTML=w;h.appendChild(n)},0)}else h.appendChild(n);h.style.backgroundImage="url('"+Editor.arrowDownImage+"')";k.style.display=
-"block"}else h.style.backgroundImage="url('"+Editor.arrowRightImage+"')",k.style.display="none",null!=n.parentNode&&n.parentNode.removeChild(n);mxEvent.consume(p)}}))});Sidebar.prototype.extractShapeStyle=function(h){if(null!=h&&"shape="==h.substring(0,6)){var k=h.indexOf(";");0>k&&(k=h.length);return h.substring(6,k)}return null};var d=Sidebar.prototype.getTagsForStencil;Sidebar.prototype.getTagsForStencil=function(h,k,l){var m=d.apply(this,arguments);null!=this.shapetags&&(h=h.toLowerCase(),k=k.toLowerCase(),
-null!=this.shapetags[h]&&m.push(this.shapetags[h]),k=h+"."+k,null!=this.shapetags[k]&&m.push(this.shapetags[k]));return m};Sidebar.prototype.addTagIndex=function(h){h=String(h).split("\n");for(var k=0;k<h.length;k++)if(null!=h[k]){var l=h[k].split("\t");if(1<l.length){var m=l[0].toLowerCase().replace(" ","_");l=mxUtils.trim(l.slice(1,l.length).join(" ").toLowerCase());0<l.length&&(this.shapetags[m]=l)}}};Sidebar.prototype.getUniqueLibraries=function(h){for(var k={},l=[],m=0;m<h.length;m++){var n=
-JSON.stringify(h[m]);null==k[n]&&(k[n]=!0,l.push(h[m]))}return l};Sidebar.prototype.openLibraries=function(h){h=this.getUniqueLibraries(h);for(var k=null,l=0;l<h.length;l++){var m=this.getConfigurationById(h[l].id);null!=m&&(m=this.openLibrary(m,h[l].lib||h[l].id),null!=m&&null==k&&(k=m))}null!=k&&window.setTimeout(function(){k[0].scrollIntoView({behavior:"smooth"})},0)};Sidebar.prototype.openLibrary=function(h,k){this.showPalettes(h.prefix||"",h.libs||[h.id],!0);h=this.showPalette(k,!0);null!=h&&
-1<h.length&&null!=h[1].firstChild&&(null==h[1].firstChild.firstChild||"none"==h[1].firstChild.style.display)&&h[0].click();return h};Sidebar.prototype.showPopupMenuForEntry=function(h,k,l){if(null!=k&&0<k.length){var m=mxUtils.getOffset(h);this.editorUi.showPopupMenu(mxUtils.bind(this,function(n,p){n.addItem(mxResources.get("openLibrary"),null,mxUtils.bind(this,function(){this.openLibraries(k)}))}),m.x,m.y+h.offsetHeight,l);mxEvent.consume(l)}};Sidebar.prototype.addSearchIndex=function(h){if(null!=
-h)for(var k=0;k<h.length;k++)if(null!=h[k].style){var l=h[k].style,m=this.extractShapeStyle(l);if(null!=m){var n=m.lastIndexOf(".");if(0<n){var p=m.substring(0,n);m=m.substring(n+1,m.length);n=this.getTagsForStencil(p,m,h[k].tags);if(null!=n){var q=l.indexOf(";");l="shape="+p+"."+m.toLowerCase()+";"+(0>q?"":l.substring(q+1));this.setCurrentSearchEntryLibrary(h[k].id,h[k].lib);this.createVertexTemplateEntry(l,parseInt(h[k].w),parseInt(h[k].h),"",m.replace(/_/g," "),null,null,this.filterTags(n.join(" ")));
-null!=this.currentSearchEntryLibrary&&this.addLibForStyle(this.getKeyStyle(l),this.currentSearchEntryLibrary);this.setCurrentSearchEntryLibrary()}}}}};Sidebar.prototype.initPalettes=function(){var h=GRAPH_IMAGE_PATH,k=STENCIL_PATH,l=this.signs,m=this.rack,n=this.pids,p=this.cisco,q=this.sysml;"1"==urlParams.createindex&&(this.createdSearchIndex=[]);this.addSearchPalette(!0);this.appendCustomLibraries||this.addCustomEntries();this.addGeneralPalette(null==this.customEntries);this.addMiscPalette(!1);
-this.addAdvancedPalette(!1);this.addBasicPalette();this.addStencilPalette("arrows",mxResources.get("arrows"),k+"/arrows.xml",";html=1;"+mxConstants.STYLE_VERTICAL_LABEL_POSITION+"=bottom;"+mxConstants.STYLE_VERTICAL_ALIGN+"=top;"+mxConstants.STYLE_STROKEWIDTH+"=2;strokeColor=#000000;",null,null,null,null,null,"arrows");this.addArrows2Palette();this.setCurrentSearchEntryLibrary("clipart","computer");this.addImagePalette("computer","Clipart / Computer",h+"/lib/clip_art/computers/","_128x128.png","Antivirus Data_Filtering Database Database_Add Database_Minus Database_Move_Stack Database_Remove Fujitsu_Tablet Harddrive IBM_Tablet iMac iPad Laptop MacBook Mainframe Monitor Monitor_Tower Monitor_Tower_Behind Netbook Network Network_2 Printer Printer_Commercial Secure_System Server Server_Rack Server_Rack_Empty Server_Rack_Partial Server_Tower Software Stylus Touch USB_Hub Virtual_Application Virtual_Machine Virus Workstation".split(" "),
-"Antivirus;Data Filtering;Database;Database Add;Database Minus;Database Move Stack;Database Remove;Fujitsu Tablet;Harddrive;IBMTablet;iMac;iPad;Laptop;MacBook;Mainframe;Monitor;Monitor Tower;Monitor Tower Behind;Netbook;Network;Network 2;Printer;Printer Commercial;Secure System;Server;Server Rack;Server Rack Empty;Server Rack Partial;Server Tower;Software;Stylus;Touch;USB Hub;Virtual Application;Virtual Machine;Virus;Workstation".split(";"));this.setCurrentSearchEntryLibrary("clipart","finance");
-this.addImagePalette("finance","Clipart / Finance",h+"/lib/clip_art/finance/","_128x128.png","Arrow_Down Arrow_Up Coins Credit_Card Dollar Graph Pie_Chart Piggy_Bank Safe Shopping_Cart Stock_Down Stock_Up".split(" "),"Arrow_Down;Arrow Up;Coins;Credit Card;Dollar;Graph;Pie Chart;Piggy Bank;Safe;Shopping Basket;Stock Down;Stock Up".split(";"));this.setCurrentSearchEntryLibrary("clipart","clipart");this.addImagePalette("clipart","Clipart / Various",h+"/lib/clip_art/general/","_128x128.png","Battery_0 Battery_100 Battery_50 Battery_75 Battery_allstates Bluetooth Earth_globe Empty_Folder Full_Folder Gear Keys Lock Mouse_Pointer Plug Ships_Wheel Star Tire".split(" "),
-"Battery 0%;Battery 100%;Battery 50%;Battery 75%;Battery;Bluetooth;Globe;Empty Folder;Full Folder;Gear;Keys;Lock;Mousepointer;Plug;Ships Wheel;Star;Tire".split(";"));this.setCurrentSearchEntryLibrary("clipart","networking");this.addImagePalette("networking","Clipart / Networking",h+"/lib/clip_art/networking/","_128x128.png","Bridge Certificate Certificate_Off Cloud Cloud_Computer Cloud_Computer_Private Cloud_Rack Cloud_Rack_Private Cloud_Server Cloud_Server_Private Cloud_Storage Concentrator Email Firewall_02 Firewall Firewall-page1 Ip_Camera Modem power_distribution_unit Print_Server Print_Server_Wireless Repeater Router Router_Icon Switch UPS Wireless_Router Wireless_Router_N".split(" "),
-"Bridge;Certificate;Certificate Off;Cloud;Cloud Computer;Cloud Computer Private;Cloud Rack;Cloud Rack Private;Cloud Server;Cloud Server Private;Cloud Storage;Concentrator;Email;Firewall 1;Firewall 2;Firewall;Camera;Modem;Power Distribution Unit;Print Server;Print Server Wireless;Repeater;Router;Router Icon;Switch;UPS;Wireless Router;Wireless Router N".split(";"),{Wireless_Router:"wireless router switch wap wifi access point wlan",Wireless_Router_N:"wireless router switch wap wifi access point wlan",
-Router:"router switch",Router_Icon:"router switch"});this.setCurrentSearchEntryLibrary("clipart","people");this.addImagePalette("people","Clipart / People",h+"/lib/clip_art/people/","_128x128.png","Suit_Man Suit_Man_Black Suit_Man_Blue Suit_Man_Green Suit_Man_Green_Black Suit_Woman Suit_Woman_Black Suit_Woman_Blue Suit_Woman_Green Suit_Woman_Green_Black Construction_Worker_Man Construction_Worker_Man_Black Construction_Worker_Woman Construction_Worker_Woman_Black Doctor_Man Doctor_Man_Black Doctor_Woman Doctor_Woman_Black Farmer_Man Farmer_Man_Black Farmer_Woman Farmer_Woman_Black Nurse_Man Nurse_Man_Black Nurse_Woman Nurse_Woman_Black Military_Officer Military_Officer_Black Military_Officer_Woman Military_Officer_Woman_Black Pilot_Man Pilot_Man_Black Pilot_Woman Pilot_Woman_Black Scientist_Man Scientist_Man_Black Scientist_Woman Scientist_Woman_Black Security_Man Security_Man_Black Security_Woman Security_Woman_Black Tech_Man Tech_Man_Black Telesales_Man Telesales_Man_Black Telesales_Woman Telesales_Woman_Black Waiter Waiter_Black Waiter_Woman Waiter_Woman_Black Worker_Black Worker_Man Worker_Woman Worker_Woman_Black".split(" "));
+{title:"GCP Icons",id:"gcpicons",image:IMAGE_PATH+"/sidebar-gcpicons.png"},{title:"IBM",id:"ibm",image:IMAGE_PATH+"/sidebar-ibm.png"},{title:"IBM Cloud",id:"ibm_cloud",image:IMAGE_PATH+"/sidebar-ibmcloud.png"},{title:"Kubernetes",id:"kubernetes",image:IMAGE_PATH+"/sidebar-kubernetes.png"},{title:"Network",id:"network",image:IMAGE_PATH+"/sidebar-network.png"},{title:"Network",id:"network2",image:IMAGE_PATH+"/sidebar-network2.png"},{title:"Office",id:"office",image:IMAGE_PATH+"/sidebar-office.png"},
+{title:"OpenStack",id:"openstack",image:IMAGE_PATH+"/sidebar-openstack.png"},{title:mxResources.get("rack"),id:"rack",image:IMAGE_PATH+"/sidebar-rack.png"},{title:"SAP",id:"sap",image:IMAGE_PATH+"/sidebar-sap.png"},{title:"Veeam",id:"veeam2",image:IMAGE_PATH+"/sidebar-veeam.png"},{title:"VMware",id:"vvd",image:IMAGE_PATH+"/sidebar-vvd.png"}]},{title:mxResources.get("business"),entries:[{title:"ArchiMate 3.2",id:"archimate3",image:IMAGE_PATH+"/sidebar-archimate3.png"},{title:mxResources.get("archiMate21"),
+id:"archimate",image:IMAGE_PATH+"/sidebar-archimate.png"},{title:mxResources.get("bpmn")+" 2.0",id:"bpmn2",image:IMAGE_PATH+"/sidebar-bpmn.png"},{title:mxResources.get("sysml"),id:"sysml",image:IMAGE_PATH+"/sidebar-sysml.png"},{title:"Value Stream Mapping",id:"lean_mapping",image:IMAGE_PATH+"/sidebar-leanmapping.png"}]},{title:mxResources.get("other"),entries:[{title:mxResources.get("cabinets"),id:"cabinets",image:IMAGE_PATH+"/sidebar-cabinets.png"},{title:"Infographic",id:"infographic",image:IMAGE_PATH+
+"/sidebar-infographic.png"},{title:mxResources.get("eip"),id:"eip",image:IMAGE_PATH+"/sidebar-eip.png"},{title:mxResources.get("electrical"),id:"electrical",image:IMAGE_PATH+"/sidebar-electrical.png"},{title:mxResources.get("floorplans"),id:"floorplan",image:IMAGE_PATH+"/sidebar-floorplans.png"},{title:"Fluid Power (ISO 1219)",id:"fluid_power",image:IMAGE_PATH+"/sidebar-fluid_power.png"},{title:mxResources.get("gmdl"),id:"gmdl",image:IMAGE_PATH+"/sidebar-gmdl.png"},{title:mxResources.get("procEng"),
+id:"pid",image:IMAGE_PATH+"/sidebar-pid.png"},{title:"Threat Modeling",id:"threatModeling",image:IMAGE_PATH+"/sidebar-threatmodeling.png"},{title:"Web Icons",id:"webicons",image:IMAGE_PATH+"/sidebar-webIcons.png"},{title:mxResources.get("signs"),id:"signs",image:IMAGE_PATH+"/sidebar-signs.png"}]}]};"1"==urlParams.savesidebar&&(Sidebar.prototype.addFoldingHandler=function(h,k,l){var m=!1;h.style.backgroundImage="none"==k.style.display?"url('"+Editor.arrowRightImage+"')":"url('"+Editor.arrowDownImage+
+"')";var n=document.createElement("button");n.style.marginLeft="4px";mxUtils.write(n,"Save");mxEvent.addListener(h,"click",mxUtils.bind(this,function(p){if("BUTTON"==mxEvent.getSource(p).nodeName){p=k.getElementsByTagName("svg");var q=68*Math.ceil(p.length/6)+36,t=Graph.createSvgNode(0,0,432,q,mxUtils.getLightDarkColor("#ffffff")),v=new mxSvgCanvas2D(t);v.setFontFamily(mxConstants.DEFAULT_FONTFAMILY);v.setFontStyle(mxConstants.FONT_BOLD);v.setFontColor("rgb(80, 80, 80)");v.setFontSize(14);var u=h.getElementsByTagName("span");
+0<u.length&&v.text(6,0,0,0,mxUtils.getTextContent(u[0]));for(v=0;v<p.length;v++)u=p[v].cloneNode(!0),u.removeAttribute("style"),u.setAttribute("width",this.thumbWidth),u.setAttribute("height",this.thumbHeight),u.setAttribute("x",12+68*mxUtils.mod(v,6)),u.setAttribute("y",24+68*Math.floor(v/6)),t.appendChild(u);this.editorUi.editor.convertImages(t,mxUtils.bind(this,function(r){var x=document.createElement("canvas");x.width=432;x.height=q;var y=document.createElement("img");y.onload=mxUtils.bind(this,
+function(){x.getContext("2d").drawImage(y,0,0);this.editorUi.saveCanvas(x,null,"png")});r=Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(t);y.src=Editor.createSvgDataUri(r)}))}else{if("none"==k.style.display){if(m)h.appendChild(n);else if(m=!0,null!=l){null!=n.parentNode&&n.parentNode.removeChild(n);h.style.cursor="wait";var w=h.innerHTML;h.innerHTML=mxResources.get("loading")+"...";window.setTimeout(function(){l(k);h.style.cursor="";h.innerHTML=w;h.appendChild(n)},0)}else h.appendChild(n);
+h.style.backgroundImage="url('"+Editor.arrowDownImage+"')";k.style.display="block"}else h.style.backgroundImage="url('"+Editor.arrowRightImage+"')",k.style.display="none",null!=n.parentNode&&n.parentNode.removeChild(n);mxEvent.consume(p)}}))});Sidebar.prototype.extractShapeStyle=function(h){if(null!=h&&"shape="==h.substring(0,6)){var k=h.indexOf(";");0>k&&(k=h.length);return h.substring(6,k)}return null};var d=Sidebar.prototype.getTagsForStencil;Sidebar.prototype.getTagsForStencil=function(h,k,l){var m=
+d.apply(this,arguments);null!=this.shapetags&&(h=h.toLowerCase(),k=k.toLowerCase(),null!=this.shapetags[h]&&m.push(this.shapetags[h]),k=h+"."+k,null!=this.shapetags[k]&&m.push(this.shapetags[k]));return m};Sidebar.prototype.addTagIndex=function(h){h=String(h).split("\n");for(var k=0;k<h.length;k++)if(null!=h[k]){var l=h[k].split("\t");if(1<l.length){var m=l[0].toLowerCase().replace(" ","_");l=mxUtils.trim(l.slice(1,l.length).join(" ").toLowerCase());0<l.length&&(this.shapetags[m]=l)}}};Sidebar.prototype.getUniqueLibraries=
+function(h){for(var k={},l=[],m=0;m<h.length;m++){var n=JSON.stringify(h[m]);null==k[n]&&(k[n]=!0,l.push(h[m]))}return l};Sidebar.prototype.openLibraries=function(h){h=this.getUniqueLibraries(h);for(var k=null,l=0;l<h.length;l++){var m=this.getConfigurationById(h[l].id);null!=m&&(m=this.openLibrary(m,h[l].lib||h[l].id),null!=m&&null==k&&(k=m))}null!=k&&window.setTimeout(function(){k[0].scrollIntoView({behavior:"smooth"})},0)};Sidebar.prototype.openLibrary=function(h,k){this.showPalettes(h.prefix||
+"",h.libs||[h.id],!0);h=this.showPalette(k,!0);null!=h&&1<h.length&&null!=h[1].firstChild&&(null==h[1].firstChild.firstChild||"none"==h[1].firstChild.style.display)&&h[0].click();return h};Sidebar.prototype.showPopupMenuForEntry=function(h,k,l){if(null!=k&&0<k.length){var m=mxUtils.getOffset(h);this.editorUi.showPopupMenu(mxUtils.bind(this,function(n,p){n.addItem(mxResources.get("openLibrary"),null,mxUtils.bind(this,function(){this.openLibraries(k)}))}),m.x,m.y+h.offsetHeight,l);mxEvent.consume(l)}};
+Sidebar.prototype.addSearchIndex=function(h){if(null!=h)for(var k=0;k<h.length;k++)if(null!=h[k].style){var l=h[k].style,m=this.extractShapeStyle(l);if(null!=m){var n=m.lastIndexOf(".");if(0<n){var p=m.substring(0,n);m=m.substring(n+1,m.length);n=this.getTagsForStencil(p,m,h[k].tags);if(null!=n){var q=l.indexOf(";");l="shape="+p+"."+m.toLowerCase()+";"+(0>q?"":l.substring(q+1));this.setCurrentSearchEntryLibrary(h[k].id,h[k].lib);this.createVertexTemplateEntry(l,parseInt(h[k].w),parseInt(h[k].h),"",
+m.replace(/_/g," "),null,null,this.filterTags(n.join(" ")));null!=this.currentSearchEntryLibrary&&this.addLibForStyle(this.getKeyStyle(l),this.currentSearchEntryLibrary);this.setCurrentSearchEntryLibrary()}}}}};Sidebar.prototype.initPalettes=function(){var h=GRAPH_IMAGE_PATH,k=STENCIL_PATH,l=this.signs,m=this.rack,n=this.pids,p=this.cisco,q=this.sysml;"1"==urlParams.createindex&&(this.createdSearchIndex=[]);this.addSearchPalette(!0);this.appendCustomLibraries||this.addCustomEntries();this.addGeneralPalette(null==
+this.customEntries);this.addMiscPalette(!1);this.addAdvancedPalette(!1);this.addBasicPalette();this.addStencilPalette("arrows",mxResources.get("arrows"),k+"/arrows.xml",";html=1;"+mxConstants.STYLE_VERTICAL_LABEL_POSITION+"=bottom;"+mxConstants.STYLE_VERTICAL_ALIGN+"=top;"+mxConstants.STYLE_STROKEWIDTH+"=2;strokeColor=#000000;",null,null,null,null,null,"arrows");this.addArrows2Palette();this.setCurrentSearchEntryLibrary("clipart","computer");this.addImagePalette("computer","Clipart / Computer",h+
+"/lib/clip_art/computers/","_128x128.png","Antivirus Data_Filtering Database Database_Add Database_Minus Database_Move_Stack Database_Remove Fujitsu_Tablet Harddrive IBM_Tablet iMac iPad Laptop MacBook Mainframe Monitor Monitor_Tower Monitor_Tower_Behind Netbook Network Network_2 Printer Printer_Commercial Secure_System Server Server_Rack Server_Rack_Empty Server_Rack_Partial Server_Tower Software Stylus Touch USB_Hub Virtual_Application Virtual_Machine Virus Workstation".split(" "),"Antivirus;Data Filtering;Database;Database Add;Database Minus;Database Move Stack;Database Remove;Fujitsu Tablet;Harddrive;IBMTablet;iMac;iPad;Laptop;MacBook;Mainframe;Monitor;Monitor Tower;Monitor Tower Behind;Netbook;Network;Network 2;Printer;Printer Commercial;Secure System;Server;Server Rack;Server Rack Empty;Server Rack Partial;Server Tower;Software;Stylus;Touch;USB Hub;Virtual Application;Virtual Machine;Virus;Workstation".split(";"));
+this.setCurrentSearchEntryLibrary("clipart","finance");this.addImagePalette("finance","Clipart / Finance",h+"/lib/clip_art/finance/","_128x128.png","Arrow_Down Arrow_Up Coins Credit_Card Dollar Graph Pie_Chart Piggy_Bank Safe Shopping_Cart Stock_Down Stock_Up".split(" "),"Arrow_Down;Arrow Up;Coins;Credit Card;Dollar;Graph;Pie Chart;Piggy Bank;Safe;Shopping Basket;Stock Down;Stock Up".split(";"));this.setCurrentSearchEntryLibrary("clipart","clipart");this.addImagePalette("clipart","Clipart / Various",
+h+"/lib/clip_art/general/","_128x128.png","Battery_0 Battery_100 Battery_50 Battery_75 Battery_allstates Bluetooth Earth_globe Empty_Folder Full_Folder Gear Keys Lock Mouse_Pointer Plug Ships_Wheel Star Tire".split(" "),"Battery 0%;Battery 100%;Battery 50%;Battery 75%;Battery;Bluetooth;Globe;Empty Folder;Full Folder;Gear;Keys;Lock;Mousepointer;Plug;Ships Wheel;Star;Tire".split(";"));this.setCurrentSearchEntryLibrary("clipart","networking");this.addImagePalette("networking","Clipart / Networking",
+h+"/lib/clip_art/networking/","_128x128.png","Bridge Certificate Certificate_Off Cloud Cloud_Computer Cloud_Computer_Private Cloud_Rack Cloud_Rack_Private Cloud_Server Cloud_Server_Private Cloud_Storage Concentrator Email Firewall_02 Firewall Firewall-page1 Ip_Camera Modem power_distribution_unit Print_Server Print_Server_Wireless Repeater Router Router_Icon Switch UPS Wireless_Router Wireless_Router_N".split(" "),"Bridge;Certificate;Certificate Off;Cloud;Cloud Computer;Cloud Computer Private;Cloud Rack;Cloud Rack Private;Cloud Server;Cloud Server Private;Cloud Storage;Concentrator;Email;Firewall 1;Firewall 2;Firewall;Camera;Modem;Power Distribution Unit;Print Server;Print Server Wireless;Repeater;Router;Router Icon;Switch;UPS;Wireless Router;Wireless Router N".split(";"),
+{Wireless_Router:"wireless router switch wap wifi access point wlan",Wireless_Router_N:"wireless router switch wap wifi access point wlan",Router:"router switch",Router_Icon:"router switch"});this.setCurrentSearchEntryLibrary("clipart","people");this.addImagePalette("people","Clipart / People",h+"/lib/clip_art/people/","_128x128.png","Suit_Man Suit_Man_Black Suit_Man_Blue Suit_Man_Green Suit_Man_Green_Black Suit_Woman Suit_Woman_Black Suit_Woman_Blue Suit_Woman_Green Suit_Woman_Green_Black Construction_Worker_Man Construction_Worker_Man_Black Construction_Worker_Woman Construction_Worker_Woman_Black Doctor_Man Doctor_Man_Black Doctor_Woman Doctor_Woman_Black Farmer_Man Farmer_Man_Black Farmer_Woman Farmer_Woman_Black Nurse_Man Nurse_Man_Black Nurse_Woman Nurse_Woman_Black Military_Officer Military_Officer_Black Military_Officer_Woman Military_Officer_Woman_Black Pilot_Man Pilot_Man_Black Pilot_Woman Pilot_Woman_Black Scientist_Man Scientist_Man_Black Scientist_Woman Scientist_Woman_Black Security_Man Security_Man_Black Security_Woman Security_Woman_Black Tech_Man Tech_Man_Black Telesales_Man Telesales_Man_Black Telesales_Woman Telesales_Woman_Black Waiter Waiter_Black Waiter_Woman Waiter_Woman_Black Worker_Black Worker_Man Worker_Woman Worker_Woman_Black".split(" "));
this.setCurrentSearchEntryLibrary("clipart","telco");this.addImagePalette("telco","Clipart / Telecommunication",h+"/lib/clip_art/telecommunication/","_128x128.png","BlackBerry Cellphone HTC_smartphone iPhone Palm_Treo Signal_tower_off Signal_tower_on".split(" "),"BlackBerry;Cellphone;HTC smartphone;iPhone;Palm Treo;Signaltower off;Signaltower on".split(";"));this.setCurrentSearchEntryLibrary();this.addFlowchartPalette();this.addActiveDirectoryPalette();this.addAndroidPalette();this.addAtlassianPalette();
this.addBootstrapPalette();this.addDFDPalette();this.addErPalette();this.addIos7Palette();this.addIosPalette();this.addKubernetesPalette();this.addMockupPalette();this.addSitemapPalette();this.addSalesforcePalette();this.addUml25Palette();this.addUmlPalette(!1);this.addAlibabaCloudPalette();this.addAlliedTelesisPalette();this.addAWS3Palette();this.addAWS4bPalette();this.addAWS4Palette();this.addAWS3DPalette();this.addAzurePalette();this.addAzure2Palette();this.addMSCAEPalette();this.addC4Palette();
-this.addCiscoPalette(p,k);this.addCisco19Palette();this.addCiscoSafePalette();this.addCumulusPalette();this.addCitrix2Palette();this.addCitrixPalette();this.addDynamics365Palette();this.addGCP2Palette();this.addGCPIconsPalette();this.addIBMPalette();this.addIBMCloudPalette();this.addNetworkPalette();this.addSAPPalette();this.addOfficePalette();this.addOpenStackPalette();this.addRackPalette(m,k);this.addVeeamPalette();this.addVeeam2Palette();this.addVVDPalette();this.addArchimate3Palette();this.addArchiMatePalette();
-this.addBpmn2Palette();this.addSysMLPalette(q,k);this.addLeanMappingPalette();this.addCabinetsPalette();this.addInfographicPalette();this.addEipPalette();this.addElectricalPalette();this.addFloorplanPalette();this.addFluidPowerPalette();this.addGMDLPalette();this.addPidPalette(n,k);this.addThreatModelingPalette();this.addWebIconsPalette();this.addWebLogosPalette();this.addSignsPalette(l,k);this.appendCustomLibraries&&this.addCustomEntries();this.showEntries();null!=this.createdSearchIndex&&console.log("searchFileData",
-Graph.compress(JSON.stringify(this.createdSearchIndex)))};Sidebar.prototype.addCustomEntries=function(){if(null!=this.customEntries)for(var h=0,k=0;k<this.customEntries.length;k++)for(var l=this.customEntries[k]||{},m=0;null!=l.entries&&m<l.entries.length;m++)for(var n=l.entries[m],p=0;p<n.libs.length;p++)mxUtils.bind(this,function(q){var t=null,v=null,u=null,w=null,r=mxUtils.bind(this,function(z,A){var B=document.createElement("span");B.style.paddingBottom="6px";B.style.paddingTop="6px";B.style.fontSize=
-"11px";mxUtils.write(B,z);A.innerHTML='<img align="top" src="'+mxGraph.prototype.warningImage.src+'"/> ';A.appendChild(B)}),x=mxUtils.bind(this,function(){null!=u&&null!=w&&(null!=v?(u.style.display="block",w.innerText="",mxUtils.write(w,this.editorUi.getResource(q.title)),r(v,u)):null!=t?(this.editorUi.addLibraryEntries(t,u),u.style.display="block",w.innerText="",mxUtils.write(w,this.editorUi.getResource(q.title))):(u.style.display="none",w.innerText="",mxUtils.write(w,mxResources.get("loading")+
+this.addCiscoPalette(p,k);this.addCisco19Palette();this.addCiscoSafePalette();this.addCumulusPalette();this.addCitrix2Palette();this.addCitrixPalette();this.addDynamics365Palette();this.addGCP2Palette();this.addGCPIconsPalette();this.addIBMPalette();this.addIBMCloudPalette();this.addNetworkPalette();this.addNetwork2Palette();this.addSAPPalette();this.addOfficePalette();this.addOpenStackPalette();this.addRackPalette(m,k);this.addVeeamPalette();this.addVeeam2Palette();this.addVVDPalette();this.addArchimate3Palette();
+this.addArchiMatePalette();this.addBpmn2Palette();this.addSysMLPalette(q,k);this.addLeanMappingPalette();this.addCabinetsPalette();this.addInfographicPalette();this.addEipPalette();this.addElectricalPalette();this.addFloorplanPalette();this.addFluidPowerPalette();this.addGMDLPalette();this.addPidPalette(n,k);this.addThreatModelingPalette();this.addWebIconsPalette();this.addWebLogosPalette();this.addSignsPalette(l,k);this.appendCustomLibraries&&this.addCustomEntries();this.showEntries();null!=this.createdSearchIndex&&
+console.log("searchFileData",Graph.compress(JSON.stringify(this.createdSearchIndex)))};Sidebar.prototype.addCustomEntries=function(){if(null!=this.customEntries)for(var h=0,k=0;k<this.customEntries.length;k++)for(var l=this.customEntries[k]||{},m=0;null!=l.entries&&m<l.entries.length;m++)for(var n=l.entries[m],p=0;p<n.libs.length;p++)mxUtils.bind(this,function(q){var t=null,v=null,u=null,w=null,r=mxUtils.bind(this,function(z,A){var B=document.createElement("span");B.style.paddingBottom="6px";B.style.paddingTop=
+"6px";B.style.fontSize="11px";mxUtils.write(B,z);A.innerHTML='<img align="top" src="'+mxGraph.prototype.warningImage.src+'"/> ';A.appendChild(B)}),x=mxUtils.bind(this,function(){null!=u&&null!=w&&(null!=v?(u.style.display="block",w.innerText="",mxUtils.write(w,this.editorUi.getResource(q.title)),r(v,u)):null!=t?(this.editorUi.addLibraryEntries(t,u),u.style.display="block",w.innerText="",mxUtils.write(w,this.editorUi.getResource(q.title))):(u.style.display="none",w.innerText="",mxUtils.write(w,mxResources.get("loading")+
"...")))});if(null==q.data&&null!=q.url&&!q.preload&&h>=this.maxPreloadCount)this.addPalette(n.id+"."+p,this.editorUi.getResource(q.title),!1,mxUtils.bind(this,function(z,A){var B=mxUtils.bind(this,function(C){this.setCurrentSearchEntryLibrary(n.id,n.id+"."+p);this.addEntries(C);this.setCurrentSearchEntryLibrary();this.editorUi.addLibraryEntries(C,z)});z.style.display="none";A.innerText="";mxUtils.write(A,mxResources.get("loading")+"...");var D=q.url;this.editorUi.editor.isCorsEnabledForUrl(D)||(D=
PROXY_URL+"?url="+encodeURIComponent(D));this.editorUi.editor.loadUrl(D,mxUtils.bind(this,function(C){z.style.display="block";A.innerText="";mxUtils.write(A,this.editorUi.getResource(q.title));try{var E=mxUtils.parseXml(C);if("mxlibrary"==E.documentElement.nodeName){var F=JSON.parse(mxUtils.getTextContent(E.documentElement));B(F)}else r(mxResources.get("notALibraryFile"),z)}catch(G){r(mxResources.get("error")+": "+G.message,z)}}))}));else if(this.addPalette(n.id+"."+p,this.editorUi.getResource(q.title),
!1,mxUtils.bind(this,function(z,A){u=z;w=A;x()})),null!=q.data)this.setCurrentSearchEntryLibrary(n.id,n.id+"."+p),this.addEntries(q.data),this.setCurrentSearchEntryLibrary(),t=q.data,x();else if(null!=q.url){h++;var y=q.url;this.editorUi.editor.isCorsEnabledForUrl(y)||(y=PROXY_URL+"?url="+encodeURIComponent(y));this.editorUi.editor.loadUrl(y,mxUtils.bind(this,function(z){try{var A=mxUtils.parseXml(z);"mxlibrary"==A.documentElement.nodeName?(t=JSON.parse(mxUtils.getTextContent(A.documentElement)),
@@ -9733,7 +9733,50 @@ this.createVertexTemplateEntry("fontColor=#0066CC;verticalAlign=top;verticalLabe
"virtual_pc","computer network ").join(" ")),this.createVertexTemplateEntry("fontColor=#0066CC;verticalAlign=top;verticalLabelPosition=bottom;labelPosition=center;align=center;html=1;outlineConnect=0;fillColor=#CCCCCC;strokeColor=#6881B3;gradientColor=none;gradientDirection=north;strokeWidth=2;shape=mxgraph.networks.virtual_server;",110,120,"","Virtual Server",null,null,this.getTagsForStencil("mxgraph.networks","virtual_server","computer network ").join(" ")),this.createVertexTemplateEntry("fontColor=#0066CC;verticalAlign=top;verticalLabelPosition=bottom;labelPosition=center;align=center;html=1;outlineConnect=0;fillColor=#CCCCCC;strokeColor=#6881B3;gradientColor=none;gradientDirection=north;strokeWidth=2;shape=mxgraph.networks.virus;",
100,90,"","Virus",null,null,this.getTagsForStencil("mxgraph.networks","virus","computer network ").join(" ")),this.createVertexTemplateEntry("fontColor=#0066CC;verticalAlign=top;verticalLabelPosition=bottom;labelPosition=center;align=center;html=1;outlineConnect=0;fillColor=#CCCCCC;strokeColor=#6881B3;gradientColor=none;gradientDirection=north;strokeWidth=2;shape=mxgraph.networks.web_server;",105,105,"","Web Server",null,null,this.getTagsForStencil("mxgraph.networks","web_server","computer network ").join(" ")),
this.createVertexTemplateEntry("fontColor=#0066CC;verticalAlign=top;verticalLabelPosition=bottom;labelPosition=center;align=center;html=1;outlineConnect=0;fillColor=#CCCCCC;strokeColor=#6881B3;gradientColor=none;gradientDirection=north;strokeWidth=2;shape=mxgraph.networks.wireless_hub;",100,85,"","Wireless Hub",null,null,this.getTagsForStencil("mxgraph.networks","wireless_hub","computer network ").join(" ")),this.createVertexTemplateEntry("fontColor=#0066CC;verticalAlign=top;verticalLabelPosition=bottom;labelPosition=center;align=center;html=1;outlineConnect=0;fillColor=#CCCCCC;strokeColor=#6881B3;gradientColor=none;gradientDirection=north;strokeWidth=2;shape=mxgraph.networks.wireless_modem;",
-100,85,"","Wireless Modem",null,null,this.getTagsForStencil("mxgraph.networks","wireless_modem","computer network ").join(" "))]);this.setCurrentSearchEntryLibrary()}})();(function(){Sidebar.prototype.addOfficePalette=function(){this.setCurrentSearchEntryLibrary("office","officeClouds");this.addOfficeCloudsPalette();this.setCurrentSearchEntryLibrary("office","officeCommunications");this.addOfficeCommunicationsPalette();this.setCurrentSearchEntryLibrary("office","officeConcepts");this.addOfficeConceptsPalette();this.setCurrentSearchEntryLibrary("office","officeDatabases");this.addOfficeDatabasesPalette();this.setCurrentSearchEntryLibrary("office","officeDevices");this.addOfficeDevicesPalette();
+100,85,"","Wireless Modem",null,null,this.getTagsForStencil("mxgraph.networks","wireless_modem","computer network ").join(" "))]);this.setCurrentSearchEntryLibrary()}})();(function(){Sidebar.prototype.addNetwork2Palette=function(){var a,b,d=[];this.setCurrentSearchEntryLibrary("network2");d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.antenna;network2IconYOffset=0.0004;network2IconW="+(a=.508)+";network2IconH="+(b=.9997)+";",50*a,50*b,"","Antenna",null,null,this.getTagsForStencil("mxgraph.networks2",
+"antenna","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.application;network2IconXOffset=0.0048;network2IconYOffset=-0.0000;network2IconW="+(a=.5927)+";network2IconH="+(b=1.02)+";",50*a,50*b,"","Application",null,null,this.getTagsForStencil("mxgraph.networks2","application","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.big_data;network2IconXOffset=-0.0002;network2IconYOffset=0.0015;network2IconW="+(a=1)+";network2IconH= "+(b=.996)+";",50*a,50*b,"","Big Data",null,null,this.getTagsForStencil("mxgraph.networks2","big data","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.biohazard;network2IconXOffset=-0.0048;network2IconYOffset=-0.001;network2IconW="+
+(a=1.0124)+";network2IconH="+(b=.93)+";",50*a,50*b,"","Biohazard",null,null,this.getTagsForStencil("mxgraph.networks2","biohazard","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.biometric_reader;network2IconXOffset=0.00008;network2IconYOffset=0.00161;network2IconW="+(a=.8407)+";network2IconH="+(b=
+.9971)+";",50*a,50*b,"","Biometric Reader",null,null,this.getTagsForStencil("mxgraph.networks2","biometric_reader","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.cctv;network2IconXOffset=-0.0002;network2IconYOffset=-0.0355;network2IconW="+(a=1.0004)+";network2IconH="+(b=.7279)+";",50*a,50*b,"","CCTV",
+null,null,this.getTagsForStencil("mxgraph.networks2","cctv","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.cloud;network2IconYOffset=-0.08;network2IconW="+(a=1.0004)+";network2IconH="+(b=.7222)+";",50*a,50*b,"","Cloud",null,null,this.getTagsForStencil("mxgraph.networks2","cloud","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.community;network2IconXOffset=-0.0036;network2IconYOffset=0.00087;network2IconW="+(a=.876)+";network2IconH="+(b=1.0029)+";",50*a,50*b,"","Community",null,null,this.getTagsForStencil("mxgraph.networks2","community","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.copier;network2IconXOffset=0.04746;network2IconYOffset=-0.00027;network2IconW="+
+(a=.8861)+";network2IconH="+(b=.9979)+";",50*a,50*b,"","Copier",null,null,this.getTagsForStencil("mxgraph.networks2","copier","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.data_management;network2IconW="+(a=.8252)+";network2IconH="+(b=.9989)+";",50*a,50*b,"","Data Management",null,null,this.getTagsForStencil("mxgraph.networks2",
+"data management","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.data_storage;network2IconW="+(a=.8252)+";network2IconH="+(b=.9989)+";",50*a,50*b,"","Data Storage",null,null,this.getTagsForStencil("mxgraph.networks2","data storage","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.desktop_pc;network2IconXOffset=-0.0034;network2IconYOffset=0.00035;network2IconW="+
+(a=.453)+";network2IconH="+(b=.9995)+";",50*a,50*b,"","Desktop PC",null,null,this.getTagsForStencil("mxgraph.networks2","desktop pc personal computer","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.encryption;network2IconXOffset=0.0006;network2IconYOffset=0.0881;network2IconW="+(a=1.0001)+";network2IconH="+
+(b=.7019)+";",50*a,50*b,"","Encryption",null,null,this.getTagsForStencil("mxgraph.networks2","encryption","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.external_storage;network2IconYOffset=-0.0267;network2IconW="+(a=1)+";network2IconH="+(b=.7987)+";",50*a,50*b,"","External Storage",null,null,this.getTagsForStencil("mxgraph.networks2",
+"external storage","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.firewall;network2IconXOffset=0.0001;network2IconYOffset=0.0001;network2IconW="+(a=1)+";network2IconH="+(b=.608)+";",50*a,50*b,"","Firewall",null,null,this.getTagsForStencil("mxgraph.networks2","firewall","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.gamepad;network2IconXOffset=0.00005;network2IconYOffset=0.00163;network2IconW="+(a=1.0021)+";network2IconH="+(b=.7358)+";",50*a,50*b,"","Gamepad",null,null,this.getTagsForStencil("mxgraph.networks2","gamepad","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.global_server;network2IconW="+
+(a=1)+";network2IconH="+(b=1)+";",50*a,50*b,"","Global Server",null,null,this.getTagsForStencil("mxgraph.networks2","global server","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.globe;network2IconW="+(a=1)+";network2IconH="+(b=1)+";",50*a,50*b,"","Globe",null,null,this.getTagsForStencil("mxgraph.networks2",
+"globe","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.hub;network2IconXOffset=0.0001;network2IconYOffset=0.0129;network2IconW="+(a=1)+";network2IconH="+(b=.2938)+";",50*a,50*b,"","Hub",null,null,this.getTagsForStencil("mxgraph.networks2","hub","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.internet;network2IconXOffset=0.0012;network2IconYOffset=0.0035;network2IconW="+(a=.9677)+";network2IconH="+(b=.7722)+";",50*a,50*b,"","Internet",null,null,this.getTagsForStencil("mxgraph.networks2","internet","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.internet_security;network2IconW="+
+(a=1)+";network2IconH="+(b=1)+";",50*a,50*b,"","Internet Security",null,null,this.getTagsForStencil("mxgraph.networks2","internet security","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.lan;network2IconYOffset=0.0558;network2IconW="+(a=1.0834)+";network2IconH="+(b=.7564)+";",50*a,50*b,"","LAN",null,
+null,this.getTagsForStencil("mxgraph.networks2","lan local area network","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.laptop;network2IconW="+(a=1)+";network2IconH="+(b=.5734)+";",50*a,50*b,"","Laptop",null,null,this.getTagsForStencil("mxgraph.networks2","laptop","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.load_balancer;network2IconW="+(a=.86)+";network2IconH="+(b=.76)+";",50*a,50*b,"","Load Balancer",null,null,this.getTagsForStencil("mxgraph.networks2","load balancer","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.lock;network2IconW="+
+(a=.8)+";network2IconH="+(b=.9999)+";",50*a,50*b,"","Lock",null,null,this.getTagsForStencil("mxgraph.networks2","lock","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.mail_server;network2IconYOffset=-0.02556;network2IconW="+(a=1)+";network2IconH="+(b=
+.7875)+";",50*a,50*b,"","Mail Server",null,null,this.getTagsForStencil("mxgraph.networks2","mail server","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.mainframe;network2IconW="+(a=.4721)+";network2IconH="+(b=1)+";",50*a,50*b,"","Mainframe",null,null,
+this.getTagsForStencil("mxgraph.networks2","mainframe","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.mobile_network;network2IconXOffset=0.0049;network2IconW="+(a=.5297)+";network2IconH="+(b=1.02)+";",50*a,50*b,"","Mobile Network",null,null,this.getTagsForStencil("mxgraph.networks2","mobile network",
+"computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.mobile_phone;network2IconXOffset=0.0049;network2IconW="+(a=.5297)+";network2IconH="+(b=1.02)+";",50*a,50*b,"","Mobile Phone",null,null,this.getTagsForStencil("mxgraph.networks2","mobile phone cell","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.modem;network2IconYOffset=0.0131;network2IconW="+
+(a=1)+";network2IconH="+(b=.2938)+";",50*a,50*b,"","Modem",null,null,this.getTagsForStencil("mxgraph.networks2","modem","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.monitor;network2IconYOffset=-0.009;network2IconW="+(a=1)+";network2IconH="+(b=.742)+";",50*a,50*b,"","Monitor",null,null,this.getTagsForStencil("mxgraph.networks2",
+"monitor","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.nas_filer;network2IconW="+(a=1)+";network2IconH="+(b=.62)+";",50*a,50*b,"","NAS Filer",null,null,this.getTagsForStencil("mxgraph.networks2","nas filer","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.network;network2IconW="+
+(a=1)+";network2IconH="+(b=.8601)+";",50*a,50*b,"","Network",null,null,this.getTagsForStencil("mxgraph.networks2","network","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.network_security;network2IconW="+(a=1)+";network2IconH="+(b=.86)+";",50*a,50*b,"","Network Security",null,null,this.getTagsForStencil("mxgraph.networks2",
+"network security","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.patch_panel;network2IconXOffset=0.0001;network2IconYOffset=-0.0211;network2IconW="+(a=1)+";network2IconH="+(b=.3359)+";",50*a,50*b,"","Patch Panel",null,null,this.getTagsForStencil("mxgraph.networks2","patch panel","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.pc;network2IconYOffset=-0.0593;network2IconW="+(a=.9999)+";network2IconH="+(b=.7096)+";",50*a,50*b,"","PC",null,null,this.getTagsForStencil("mxgraph.networks2","pc personal computer","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.phone;network2IconXOffset=0.0009;network2IconYOffset=-0.0064;network2IconW="+
+(a=.9947)+";network2IconH="+(b=.7947)+";",50*a,50*b,"","Phone",null,null,this.getTagsForStencil("mxgraph.networks2","phone","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.printer;network2IconW="+(a=1)+";network2IconH="+(b=1.04)+";",50*a,50*b,"","Printer",
+null,null,this.getTagsForStencil("mxgraph.networks2","printer","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.projector_canvas;network2IconW="+(a=1)+";network2IconH="+(b=1.04)+";",50*a,50*b,"","Projector Canvas",null,null,this.getTagsForStencil("mxgraph.networks2","projector canvas","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.rack_cabinet;network2IconW="+(a=.4721)+";network2IconH="+(b=1)+";",50*a,50*b,"","Rack Cabinet",null,null,this.getTagsForStencil("mxgraph.networks2","rack cabinet","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.router;network2IconXOffset=0.0001;network2IconYOffset=-0.1142;network2IconW="+
+(a=1)+";network2IconH="+(b=.5485)+";",50*a,50*b,"","Router",null,null,this.getTagsForStencil("mxgraph.networks2","router","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.satellite_dish;network2IconXOffset=-0.0067;network2IconYOffset=0.0022;network2IconW="+(a=1.0065)+";network2IconH="+(b=.9957)+";",
+50*a,50*b,"","Satellite Dish",null,null,this.getTagsForStencil("mxgraph.networks2","satellite dish","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.satellite;network2IconXOffset=0.0149;network2IconYOffset=-0.00046;network2IconW="+(a=1.1553)+";network2IconH="+(b=.9741)+";",50*a,50*b,"","Satellite",
+null,null,this.getTagsForStencil("mxgraph.networks2","satellite","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.scanner;network2IconXOffset=0.00024;network2IconYOffset=-0.08;network2IconW="+(a=1.0001)+";network2IconH="+(b=.5965)+";",50*a,50*b,"","Scanner",null,null,this.getTagsForStencil("mxgraph.networks2",
+"scanner","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.server;network2IconW="+(a=1.0001)+";network2IconH="+(b=.5812)+";",50*a,50*b,"","Server",null,null,this.getTagsForStencil("mxgraph.networks2","server","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.social_media;network2IconYOffset=0.0153;network2IconW="+
+(a=1.02)+";network2IconH="+(b=.932)+";",50*a,50*b,"","Social Media",null,null,this.getTagsForStencil("mxgraph.networks2","social media","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.tablet;network2IconW="+(a=1)+";network2IconH="+(b=.6566)+";",50*a,50*b,"","Tablet",null,null,this.getTagsForStencil("mxgraph.networks2",
+"tablet","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.terminal;network2IconW="+(a=.8554)+";network2IconH="+(b=1)+";",50*a,50*b,"","Terminal",null,null,this.getTagsForStencil("mxgraph.networks2","terminal","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.threat;network2IconYOffset=-0.0472;network2IconW="+
+(a=1.0625)+";network2IconH="+(b=.9583)+";",50*a,50*b,"","Threat",null,null,this.getTagsForStencil("mxgraph.networks2","threat","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.ups;network2IconXOffset=-0.0006;network2IconYOffset=0.0003;network2IconW="+(a=.62)+";network2IconH="+(b=1.0006)+";",50*a,50*
+b,"","UPS",null,null,this.getTagsForStencil("mxgraph.networks2","ups uninterruptible power supply","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.user_female;network2IconXOffset=-0.0011;network2IconYOffset=-0.003;network2IconW="+(a=.8096)+";network2IconH="+(b=.994)+";",50*a,50*b,"","User, Female",
+null,null,this.getTagsForStencil("mxgraph.networks2","user female","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.user_male;network2IconW="+(a=.8918)+";network2IconH="+(b=1.0003)+";",50*a,50*b,"","User, Male",null,null,this.getTagsForStencil("mxgraph.networks2","user male","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.users;network2IconXOffset=0.0019;network2IconYOffset=-0.0004;network2IconW="+(a=1.0353)+";network2IconH="+(b=.6623)+";",50*a,50*b,"","Users",null,null,this.getTagsForStencil("mxgraph.networks2","users","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.video_projector;network2IconYOffset=0.013;network2IconW="+
+(a=1)+";network2IconH="+(b=.294)+";",50*a,50*b,"","Video Projector",null,null,this.getTagsForStencil("mxgraph.networks2","video projector","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.vr;network2IconYOffset=-0.015;network2IconW="+(a=1)+";network2IconH="+(b=.45)+";",50*a,50*b,"","VR",null,null,this.getTagsForStencil("mxgraph.networks2",
+"vr virtual reality","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.web_hosting;network2IconW="+(a=1)+";network2IconH="+(b=.9125)+";",50*a,50*b,"","Web Hosting",null,null,this.getTagsForStencil("mxgraph.networks2","web hosting","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.wireless_hub;network2IconYOffset=-0.1142;network2IconW="+
+(a=1)+";network2IconH="+(b=.5485)+";",50*a,50*b,"","Wireless Hub",null,null,this.getTagsForStencil("mxgraph.networks2","wireless hub","computer network ").join(" ")));this.addPaletteFunctions("network2","Network",!1,d);this.setCurrentSearchEntryLibrary()}})();(function(){Sidebar.prototype.addOfficePalette=function(){this.setCurrentSearchEntryLibrary("office","officeClouds");this.addOfficeCloudsPalette();this.setCurrentSearchEntryLibrary("office","officeCommunications");this.addOfficeCommunicationsPalette();this.setCurrentSearchEntryLibrary("office","officeConcepts");this.addOfficeConceptsPalette();this.setCurrentSearchEntryLibrary("office","officeDatabases");this.addOfficeDatabasesPalette();this.setCurrentSearchEntryLibrary("office","officeDevices");this.addOfficeDevicesPalette();
this.setCurrentSearchEntryLibrary("office","officeSecurity");this.addOfficeSecurityPalette();this.setCurrentSearchEntryLibrary("office","officeServers");this.addOfficeServersPalette();this.setCurrentSearchEntryLibrary("office","officeServices");this.addOfficeServicesPalette();this.setCurrentSearchEntryLibrary("office","officeSites");this.addOfficeSitesPalette();this.setCurrentSearchEntryLibrary("office","officeUsers");this.addOfficeUsersPalette();this.setCurrentSearchEntryLibrary()};Sidebar.prototype.addOfficeCloudsPalette=
function(){var a=[this.createVertexTemplateEntry("sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;outlineConnect=0;verticalAlign=top;align=center;shape=mxgraph.office.clouds.azure;",103,66,"","Azure",null,null,this.getTagsForStencil("mxgraph.office.clouds","azure","office cloud ").join(" ")),this.createVertexTemplateEntry("sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;outlineConnect=0;verticalAlign=top;align=center;shape=mxgraph.office.clouds.cloud;",
94,55,"","Cloud",null,null,this.getTagsForStencil("mxgraph.office.clouds","cloud","office cloud ").join(" ")),this.createVertexTemplateEntry("sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;outlineConnect=0;verticalAlign=top;align=center;shape=mxgraph.office.clouds.cloud_disaster;",94,74,"","Cloud Disaster",null,null,this.getTagsForStencil("mxgraph.office.clouds","cloud disaster","office cloud ").join(" ")),this.createVertexTemplateEntry("sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;labelPosition=center;verticalLabelPosition=bottom;outlineConnect=0;verticalAlign=top;align=center;shape=mxgraph.office.clouds.cloud_disaster;fillColor=#ff0000;",
@@ -12107,7 +12150,7 @@ $jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_S
$jscomp.getGlobal=function(b){b=["object"==typeof globalThis&&globalThis,b,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<b.length;++e){var f=b[e];if(f&&f.Math==Math)return f}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(b,e){var f=$jscomp.propertyToPolyfillSymbol[e];if(null==f)return b[e];f=b[f];return void 0!==f?f:b[e]};$jscomp.polyfill=function(b,e,f,c){e&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(b,e,f,c):$jscomp.polyfillUnisolated(b,e,f,c))};
$jscomp.polyfillUnisolated=function(b,e,f,c){f=$jscomp.global;b=b.split(".");for(c=0;c<b.length-1;c++){var l=b[c];if(!(l in f))return;f=f[l]}b=b[b.length-1];c=f[b];e=e(c);e!=c&&null!=e&&$jscomp.defineProperty(f,b,{configurable:!0,writable:!0,value:e})};
-$jscomp.polyfillIsolated=function(b,e,f,c){var l=b.split(".");b=1===l.length;c=l[0];c=!b&&c in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var p=0;p<l.length-1;p++){var q=l[p];if(!(q in c))return;c=c[q]}l=l[l.length-1];f=$jscomp.IS_SYMBOL_NATIVE&&"es6"===f?c[l]:null;e=e(f);null!=e&&(b?$jscomp.defineProperty($jscomp.polyfills,l,{configurable:!0,writable:!0,value:e}):e!==f&&(void 0===$jscomp.propertyToPolyfillSymbol[l]&&(f=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[l]=$jscomp.IS_SYMBOL_NATIVE?
+$jscomp.polyfillIsolated=function(b,e,f,c){var l=b.split(".");b=1===l.length;c=l[0];c=!b&&c in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var p=0;p<l.length-1;p++){var v=l[p];if(!(v in c))return;c=c[v]}l=l[l.length-1];f=$jscomp.IS_SYMBOL_NATIVE&&"es6"===f?c[l]:null;e=e(f);null!=e&&(b?$jscomp.defineProperty($jscomp.polyfills,l,{configurable:!0,writable:!0,value:e}):e!==f&&(void 0===$jscomp.propertyToPolyfillSymbol[l]&&(f=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[l]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(l):$jscomp.POLYFILL_PREFIX+f+"$"+l),$jscomp.defineProperty(c,$jscomp.propertyToPolyfillSymbol[l],{configurable:!0,writable:!0,value:e})))};$jscomp.underscoreProtoCanBeSet=function(){var b={a:!0},e={};try{return e.__proto__=b,e.a}catch(f){}return!1};
$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(b,e){b.__proto__=e;if(b.__proto__!==e)throw new TypeError(b+" is not extensible");return b}:null;$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(b){if(!(b instanceof Object))throw new TypeError("Iterator result "+b+" is not an object");};
$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};
@@ -12123,37 +12166,37 @@ $jscomp.generator.Engine_.prototype.throw_=function(b){this.context_.start_();if
$jscomp.generator.Engine_.prototype.yieldAllStep_=function(b,e,f){try{var c=b.call(this.context_.yieldAllIterator_,e);$jscomp.generator.ensureIteratorResultIsObject_(c);if(!c.done)return this.context_.stop_(),c;var l=c.value}catch(p){return this.context_.yieldAllIterator_=null,this.context_.throw_(p),this.nextStep_()}this.context_.yieldAllIterator_=null;f.call(this.context_,l);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var b=this.program_(this.context_);if(b)return this.context_.stop_(),{value:b.value,done:!1}}catch(e){this.context_.yieldResult=void 0,this.context_.throw_(e)}this.context_.stop_();if(this.context_.abruptCompletion_){b=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(b.isException)throw b.exception;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
$jscomp.generator.Generator_=function(b){this.next=function(e){return b.next_(e)};this.throw=function(e){return b.throw_(e)};this.return=function(e){return b.return_(e)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(b,e){e=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(e));$jscomp.setPrototypeOf&&b.prototype&&$jscomp.setPrototypeOf(e,b.prototype);return e};
-$jscomp.asyncExecutePromiseGenerator=function(b){function e(c){return b.next(c)}function f(c){return b.throw(c)}return new Promise(function(c,l){function p(q){q.done?c(q.value):Promise.resolve(q.value).then(e,f).then(p,l)}p(b.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(b){return $jscomp.asyncExecutePromiseGenerator(b())};$jscomp.asyncExecutePromiseGeneratorProgram=function(b){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b)))};
+$jscomp.asyncExecutePromiseGenerator=function(b){function e(c){return b.next(c)}function f(c){return b.throw(c)}return new Promise(function(c,l){function p(v){v.done?c(v.value):Promise.resolve(v.value).then(e,f).then(p,l)}p(b.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(b){return $jscomp.asyncExecutePromiseGenerator(b())};$jscomp.asyncExecutePromiseGeneratorProgram=function(b){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b)))};
DrawioFile=function(b,e){mxEventSource.call(this);this.ui=b;this.setData(e||"");this.initialData=this.getData();this.created=(new Date).getTime();this.stats={opened:0,merged:0,fileMerged:0,fileReloaded:0,conflicts:0,timeouts:0,saved:0,closed:0,destroyed:0,joined:0,checksumErrors:0,bytesSent:0,bytesReceived:0,msgSent:0,msgReceived:0,cacheHits:0,cacheMiss:0,cacheFail:0}};DrawioFile.SYNC=urlParams.sync||"auto";DrawioFile.LAST_WRITE_WINS=!0;DrawioFile.RESTRICT_EXPORT=!1;mxUtils.extend(DrawioFile,mxEventSource);
DrawioFile.prototype.allChangesSavedKey="allChangesSaved";DrawioFile.prototype.savingSpinnerKey="saving";DrawioFile.prototype.savingStatusKey="saving";DrawioFile.prototype.autosaveDelay=1500;DrawioFile.prototype.maxAutosaveDelay=3E4;DrawioFile.prototype.optimisticSyncDelay=300;DrawioFile.prototype.autosaveThread=null;DrawioFile.prototype.lastAutosave=null;DrawioFile.prototype.lastSaved=null;DrawioFile.prototype.lastChanged=null;DrawioFile.prototype.opened=null;DrawioFile.prototype.modified=!1;
DrawioFile.prototype.shadowModified=!1;DrawioFile.prototype.data=null;DrawioFile.prototype.shadowPages=null;DrawioFile.prototype.changeListenerEnabled=!0;DrawioFile.prototype.lastAutosaveRevision=null;DrawioFile.prototype.maxAutosaveRevisionDelay=3E5;DrawioFile.prototype.inConflictState=!1;DrawioFile.prototype.invalidChecksum=!1;DrawioFile.prototype.ageStart=null;DrawioFile.prototype.getSize=function(){return null!=this.data?this.data.length:0};
DrawioFile.prototype.getShadowPages=function(){null==this.shadowPages&&(this.shadowPages=this.ui.getPagesForXml(this.initialData));return this.shadowPages};DrawioFile.prototype.setShadowPages=function(b){this.shadowPages=b};
-DrawioFile.prototype.synchronizeFile=function(b,e){if(this.savingFile)null!=e&&e({message:mxResources.get("busy")});else{var f=!0,c=window.setTimeout(mxUtils.bind(this,function(){f=!1;null!=e&&e({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,e)})})}),this.ui.timeout),l=mxUtils.bind(this,function(q){f&&(window.clearTimeout(c),null!=e&&e(q))}),p=mxUtils.bind(this,function(){return!f});null!=this.sync?this.sync.fileChanged(mxUtils.bind(this,
-function(q){f&&(window.clearTimeout(c),this.sync.cleanup(b,e,q))}),l,p):this.updateFile(mxUtils.bind(this,function(){f&&(window.clearTimeout(c),null!=b&&b())}),l,p)}};
+DrawioFile.prototype.synchronizeFile=function(b,e){if(this.savingFile)null!=e&&e({message:mxResources.get("busy")});else{var f=!0,c=window.setTimeout(mxUtils.bind(this,function(){f=!1;null!=e&&e({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,e)})})}),this.ui.timeout),l=mxUtils.bind(this,function(v){f&&(window.clearTimeout(c),null!=e&&e(v))}),p=mxUtils.bind(this,function(){return!f});null!=this.sync?this.sync.fileChanged(mxUtils.bind(this,
+function(v){f&&(window.clearTimeout(c),this.sync.cleanup(b,e,v))}),l,p):this.updateFile(mxUtils.bind(this,function(){f&&(window.clearTimeout(c),null!=b&&b())}),l,p)}};
DrawioFile.prototype.updateFile=function(b,e,f,c,l){null!=f&&f()||(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",l,"invalidChecksum",this.invalidChecksum),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=e&&e():this.getLatestVersion(mxUtils.bind(this,function(p){try{null!=f&&f()||(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,
-c,l):this.reloadFile(b,e))}catch(q){null!=e&&e(q)}}),e))};
-DrawioFile.prototype.mergeFile=function(b,e,f,c,l){try{var p=b.getShadowPages();if(null!=p&&0<p.length){var q=this.getShadowPages(),v=[this.ui.diffPages(null!=c?c:q,p)],D=this.ignorePatches(v);if(D)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",D),null!=e&&e();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var G=this.isModified()?this.ui.diffPages(q,
-this.isRealtime()?this.ownPages:this.ui.pages):null,B=this.ui.patchPages(this.ui.clonePages(q),v[0]),d=this.ui.getHashValueForPages(B,{}),g=this.ui.getHashValueForPages(p,{});EditorUi.debug("File.mergeFile",[this],"file",[b],"ui",this.ui.pages,"shadow",q,"pages",p,"patched",B,"patches",v,"changes",G,"checksum",d,"current",g,"valid",d==g,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",l);if(null!=d&&d!=g)this.checksumError(f,v,null,null,"mergeFile",
-d,g,b.getCurrentRevisionId());else{this.setShadowPages(p);if(null!=this.sync){var k=this.sync.patchRealtime(v,DrawioFile.LAST_WRITE_WINS?G:null,null,l);null==k||mxUtils.isEmptyObject(k)||v.push(k)}this.patch(v,DrawioFile.LAST_WRITE_WINS?G:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());this.descriptorChanged();null!=e&&e()}}catch(y){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=f&&f(y);try{var m=this.getCurrentUser(),t=null!=m?
-m.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),t,y)}catch(z){}}}else throw Error(mxResources.get("notADiagramFile"));}catch(y){null!=f&&f(y)}};
+c,l):this.reloadFile(b,e))}catch(v){null!=e&&e(v)}}),e))};
+DrawioFile.prototype.mergeFile=function(b,e,f,c,l){try{var p=b.getShadowPages();if(null!=p&&0<p.length){var v=this.getShadowPages(),t=[this.ui.diffPages(null!=c?c:v,p)],E=this.ignorePatches(t);if(E)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",E),null!=e&&e();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var H=this.isModified()?this.ui.diffPages(v,
+this.isRealtime()?this.ownPages:this.ui.pages):null,B=this.ui.patchPages(this.ui.clonePages(v),t[0]),d=this.ui.getHashValueForPages(B,{}),g=this.ui.getHashValueForPages(p,{});EditorUi.debug("File.mergeFile",[this],"file",[b],"ui",this.ui.pages,"shadow",v,"pages",p,"patched",B,"patches",t,"changes",H,"checksum",d,"current",g,"valid",d==g,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",l);if(null!=d&&d!=g)this.checksumError(f,t,null,null,"mergeFile",
+d,g,b.getCurrentRevisionId());else{this.setShadowPages(p);if(null!=this.sync){var k=this.sync.patchRealtime(t,DrawioFile.LAST_WRITE_WINS?H:null,null,l);null==k||mxUtils.isEmptyObject(k)||t.push(k)}this.patch(t,DrawioFile.LAST_WRITE_WINS?H:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());this.descriptorChanged();null!=e&&e()}}catch(x){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=f&&f(x);try{var m=this.getCurrentUser(),u=null!=m?
+m.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),u,x)}catch(A){}}}else throw Error(mxResources.get("notADiagramFile"));}catch(x){null!=f&&f(x)}};
DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var e=new mxCodec(mxUtils.createXmlDocument()),f=e.document.createElement("mxfile");if(null!=b)for(var c=0;c<b.length;c++){var l=e.encode(new mxGraphModel(b[c].root));"1"!=urlParams.dev&&(l=this.ui.anonymizeNode(l,!0));l.setAttribute("id",b[c].getId());b[c].viewState&&this.ui.editor.graph.saveViewState(b[c].viewState,l,!0);f.appendChild(l)}return mxUtils.getPrettyXml(f)};
DrawioFile.prototype.compressReportData=function(b,e,f){e=null!=e?e:1E4;null!=f&&null!=b&&b.length>f?b=b.substring(0,f)+"[...]":null!=b&&b.length>e&&(b=Graph.compress(b)+"\n");return b};
-DrawioFile.prototype.checksumError=function(b,e,f,c,l,p,q,v){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var D=this.getCurrentUser(),G=null!=D?D.id:"unknown",B=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",d=JSON.stringify(e).length,g=null;if(null!=e&&1E3>d){b=[];for(f=0;f<e.length;f++)b.push(this.ui.anonymizePatch(e[f]));g=JSON.stringify(b);g=null!=g&&1E3>
-g.length?Graph.compress(g):null}this.getLatestVersion(mxUtils.bind(this,function(k){try{var m=null!=g?"report":"error",t=this.ui.getHashValueForPages(k.getShadowPages()),y="unknown",z="unknown",I="unknown";try{var F=null!=k.initialData&&0<k.initialData.length?mxUtils.parseXml(k.initialData).documentElement:null;null!=F&&(null!=F.getAttribute("version")&&(y=F.getAttribute("version")),null!=F.getAttribute("agent")&&(z=F.getAttribute("agent")),null!=F.getAttribute("type")&&(I=F.getAttribute("type")))}catch(C){}EditorUi.logError("Checksum "+
-m+" in "+l,null,this.getMode()+"."+B,"user_"+G+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+d+"-patches_"+e.length+(null!=g?"-json_"+g:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=q?"-current_"+q:"")+(null!=v?"-rev_"+this.ui.hashValue(v):"")+(null!=t?"-latest_"+t:"")+"-latestRev_"+this.ui.hashValue(k.getCurrentRevisionId())+("-latestVersion_"+y)+("-latestAgent_"+z)+("-latestType_"+I));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+B,action:l,label:"user_"+
-G+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+d+"-patches_"+e.length+"-size_"+this.getSize()})}catch(C){}}),function(){})}catch(k){}};
-DrawioFile.prototype.sendErrorReport=function(b,e,f,c){try{var l=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),q=this.getCurrentUser(),v=null!=q?this.ui.hashValue(q.id):"unknown",D=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",G=this.getTitle(),B=G.lastIndexOf(".");q="xml";0<B&&(q=G.substring(B));var d=null!=f?f.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()+" ("+q+")\nUser="+v+D+"\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.checksumError=function(b,e,f,c,l,p,v,t){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var E=this.getCurrentUser(),H=null!=E?E.id:"unknown",B=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",d=JSON.stringify(e).length,g=null;if(null!=e&&1E3>d){b=[];for(f=0;f<e.length;f++)b.push(this.ui.anonymizePatch(e[f]));g=JSON.stringify(b);g=null!=g&&1E3>
+g.length?Graph.compress(g):null}this.getLatestVersion(mxUtils.bind(this,function(k){try{var m=null!=g?"report":"error",u=this.ui.getHashValueForPages(k.getShadowPages()),x="unknown",A="unknown",I="unknown";try{var F=null!=k.initialData&&0<k.initialData.length?mxUtils.parseXml(k.initialData).documentElement:null;null!=F&&(null!=F.getAttribute("version")&&(x=F.getAttribute("version")),null!=F.getAttribute("agent")&&(A=F.getAttribute("agent")),null!=F.getAttribute("type")&&(I=F.getAttribute("type")))}catch(C){}EditorUi.logError("Checksum "+
+m+" in "+l,null,this.getMode()+"."+B,"user_"+H+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+d+"-patches_"+e.length+(null!=g?"-json_"+g:"")+"-size_"+this.getSize()+(null!=p?"-expected_"+p:"")+(null!=v?"-current_"+v:"")+(null!=t?"-rev_"+this.ui.hashValue(t):"")+(null!=u?"-latest_"+u:"")+"-latestRev_"+this.ui.hashValue(k.getCurrentRevisionId())+("-latestVersion_"+x)+("-latestAgent_"+A)+("-latestType_"+I));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+B,action:l,label:"user_"+
+H+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+d+"-patches_"+e.length+"-size_"+this.getSize()})}catch(C){}}),function(){})}catch(k){}};
+DrawioFile.prototype.sendErrorReport=function(b,e,f,c){try{var l=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),p=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),v=this.getCurrentUser(),t=null!=v?this.ui.hashValue(v.id):"unknown",E=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",H=this.getTitle(),B=H.lastIndexOf(".");v="xml";0<B&&(v=H.substring(B));var d=null!=f?f.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()+" ("+v+")\nUser="+t+E+"\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!=f?"\n\nError: "+f.message:"")+"\n\nStack:\n"+d+"\n\nShadow:\n"+l+"\n\nData:\n"+p,c)}catch(g){}};
-DrawioFile.prototype.reloadFile=function(b,e){try{this.stats.fileReloaded++;var f=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),c=this.ui.editor.graph,l=c.getSelectionCells(),p=c.getViewState(),q=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(v){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[f],"viewState",[p],"latestFile",v);null!=v?(this.ui.replaceFileData(v.getData(),
-[f]),this.ui.restoreViewState(q,p,l),this.setDescriptor(v.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 D=this.ui.getCurrentFile();null!=D&&(D.stats=this.stats,D.patch([f]),D.fileChanged());this.ui.restoreViewState(q,p,l);null!=b&&b()}else null!=e&&e(this.ui.fileLoadedError)}),!0))}),e)}catch(v){null!=e&&e(v)}};
+DrawioFile.prototype.reloadFile=function(b,e){try{this.stats.fileReloaded++;var f=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),c=this.ui.editor.graph,l=c.getSelectionCells(),p=c.getViewState(),v=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(t){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[f],"viewState",[p],"latestFile",t);null!=t?(this.ui.replaceFileData(t.getData(),
+[f]),this.ui.restoreViewState(v,p,l),this.setDescriptor(t.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 E=this.ui.getCurrentFile();null!=E&&(E.stats=this.stats,E.patch([f]),E.fileChanged());this.ui.restoreViewState(v,p,l);null!=b&&b()}else null!=e&&e(this.ui.fileLoadedError)}),!0))}),e)}catch(t){null!=e&&e(t)}};
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 f=0;f<b.length&&e;f++)e=e&&mxUtils.isEmptyObject(b[f]);return e};
-DrawioFile.prototype.patch=function(b,e,f,c){if(null!=b){var l=this.ui.editor.undoManager,p=l.history.slice(),q=l.indexOfNextAdd,v=this.ui.editor.graph;v.container.style.visibility="hidden";var D=this.changeListenerEnabled;this.changeListenerEnabled=f;var G=v.foldingEnabled,B=v.mathEnabled,d=v.cellRenderer.redraw;v.cellRenderer.redraw=function(z){z.view.graph.isEditing(z.cell)&&(z.view.graph.scrollCellToVisible(z.cell),z.view.graph.cellEditor.resize());d.apply(this,arguments)};v.model.beginUpdate();
-try{if(f){for(var g=this.ui.pages.slice(),k=this.ui.currentPage,m=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified()),t=0;t<m.length;t++){var y=mxUtils.indexOf(this.ui.pages,m[t]);0>y?this.ui.insertPage(m[t],Math.min(t,this.ui.pages.length)):this.ui.movePage(y,t)}for(t=0;t<g.length;t++)0>mxUtils.indexOf(m,g[t])&&this.ui.removePage(g[t]);0<=mxUtils.indexOf(this.ui.pages,k)&&this.ui.selectPage(k,!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);v.checkDefaultParent()}finally{v.container.style.visibility="";v.model.endUpdate();v.cellRenderer.redraw=d;this.changeListenerEnabled=D;f||(l.history=p,l.indexOfNextAdd=q,l.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)B!=v.mathEnabled?(this.ui.editor.updateGraphComponents(),v.refresh()):(G!=v.foldingEnabled?
-v.view.revalidate():v.view.validate(),v.sizeDidChange());null!=this.sync&&this.isRealtime()&&!c&&(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",f)}return b};
+DrawioFile.prototype.patch=function(b,e,f,c){if(null!=b){var l=this.ui.editor.undoManager,p=l.history.slice(),v=l.indexOfNextAdd,t=this.ui.editor.graph;t.container.style.visibility="hidden";var E=this.changeListenerEnabled;this.changeListenerEnabled=f;var H=t.foldingEnabled,B=t.mathEnabled,d=t.cellRenderer.redraw;t.cellRenderer.redraw=function(A){A.view.graph.isEditing(A.cell)&&(A.view.graph.scrollCellToVisible(A.cell),A.view.graph.cellEditor.resize());d.apply(this,arguments)};t.model.beginUpdate();
+try{if(f){for(var g=this.ui.pages.slice(),k=this.ui.currentPage,m=this.ui.applyPatches(this.ui.pages,b,!0,e,this.isModified()),u=0;u<m.length;u++){var x=mxUtils.indexOf(this.ui.pages,m[u]);0>x?this.ui.insertPage(m[u],Math.min(u,this.ui.pages.length)):this.ui.movePage(x,u)}for(u=0;u<g.length;u++)0>mxUtils.indexOf(m,g[u])&&this.ui.removePage(g[u]);0<=mxUtils.indexOf(this.ui.pages,k)&&this.ui.selectPage(k,!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);t.checkDefaultParent()}finally{t.container.style.visibility="";t.model.endUpdate();t.cellRenderer.redraw=d;this.changeListenerEnabled=E;f||(l.history=p,l.indexOfNextAdd=v,l.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)B!=t.mathEnabled?(this.ui.editor.updateGraphComponents(),t.refresh()):(H!=t.foldingEnabled?
+t.view.revalidate():t.view.validate(),t.sizeDidChange());null!=this.sync&&this.isRealtime()&&!c&&(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",f)}return b};
DrawioFile.prototype.save=function(b,e,f,c,l,p){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",c,"overwrite",l,"manual",p,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!l&&this.invalidChecksum)if(null!=f)f({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=e&&e();else if(null!=f)f({message:mxResources.get("readOnly")});
-else throw Error(mxResources.get("readOnly"));}catch(q){if(null!=f)f(q);else throw q;}};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};
+else throw Error(mxResources.get("readOnly"));}catch(v){if(null!=f)f(v);else throw v;}};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};
DrawioFile.prototype.updateFileData=function(){null!=this.sync&&this.sync.sendLocalChanges();this.setData(this.createData());null!=this.sync&&this.sync.fileDataUpdated()};DrawioFile.prototype.isCompressedStorage=function(){return Editor.defaultCompressed};DrawioFile.prototype.isCompressed=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("compressed"):null;return null!=b?"false"!=b:this.isCompressedStorage()&&Editor.compressXml};
DrawioFile.prototype.setLocked=function(b){this.ui.fileNode.setAttribute("locked",b?"true":"false");this.ui.fireEvent(new mxEventObject("lockedChanged"));this.fileChanged();b&&this.ui.editor.graph.clearSelection()};DrawioFile.prototype.isLocked=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("locked"):null;return null!=b?"true"==b:!1};DrawioFile.prototype.saveAs=function(b,e,f){};DrawioFile.prototype.saveFile=function(b,e,f,c){};DrawioFile.prototype.getFileUrl=function(){return null};
DrawioFile.prototype.getFolderUrl=function(b){return null};DrawioFile.prototype.getPublicUrl=function(b){b(null)};DrawioFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT};DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.getShadowModified=function(){return this.shadowModified};DrawioFile.prototype.setShadowModified=function(b){this.shadowModified=b};DrawioFile.prototype.setModified=function(b){this.shadowModified=this.modified=b};
@@ -12192,7 +12235,7 @@ DrawioFile.prototype.handleFileSuccess=function(b){this.ui.spinner.stop();this.u
this.ui.updateStatus(mxUtils.bind(this,function(){this.addAllSavedStatus()})),null!=this.sync&&(this.sync.resetUpdateStatusThread(),this.sync.remoteFileChanged&&(this.sync.remoteFileChanged=!1,this.sync.fileChangedNotify()))):this.ui.clearStatus())};
DrawioFile.prototype.handleFileError=function(b,e){this.ui.spinner.stop();this.ui.getCurrentFile()==this&&(this.inConflictState?this.handleConflictError(b,e):(this.isModified()&&this.addUnsavedStatus(b),e?this.ui.handleError(b,null!=b?mxResources.get("errorSavingFile"):null):this.isModified()||this.ui.updateStatus(mxUtils.bind(this,function(){var f=this.getErrorMessage(b);null!=f&&60<f.length&&(f=f.substring(0,60)+"...");this.ui.editor.setStatus('<div class="geStatusAlert">'+mxUtils.htmlEntities(mxResources.get("error"))+
(null!=f?" ("+mxUtils.htmlEntities(f)+")":"")+"</div>")}))))};
-DrawioFile.prototype.handleConflictError=function(b,e){var f=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),c=mxUtils.bind(this,function(q){this.handleFileError(q,!0)}),l=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.clearStatus(),this.save(!0,f,c,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),p=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
+DrawioFile.prototype.handleConflictError=function(b,e){var f=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),c=mxUtils.bind(this,function(v){this.handleFileError(v,!0)}),l=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.clearStatus(),this.save(!0,f,c,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),p=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,f,c,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),c)});"none"==DrawioFile.SYNC?this.showCopyDialog(f,c,l):this.invalidChecksum&&e?this.showRefreshDialog(f,c,this.getErrorMessage(b)):e?this.showConflictDialog(l,p):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument")));
this.synchronizeFile(f,c)}))};DrawioFile.prototype.getErrorMessage=function(b){var e=null!=b?null!=b.error?b.error.message:b.message:null;null==e&&null!=b&&b.code==App.ERROR_TIMEOUT?e=mxResources.get("timeout"):"0"==e&&(e=mxResources.get("noResponse"));return e};DrawioFile.prototype.isOverdue=function(){return null!=this.ageStart&&Date.now()-this.ageStart.getTime()>=this.ui.warnInterval};
DrawioFile.prototype.compressionChanged=function(b){var e=null!=this.ownPages?this.ownPages:this.ui.pages;if(null!=e)for(var f=0;f<e.length;f++){var c=e[f].node;if(null!=c&&(null==this.ui.currentPage||this.ui.currentPage.getId()!=e[f].getId())){var l=c.getElementsByTagName("mxGraphModel");l=0<l.length?l[0]:null;var p=Graph.decompress(mxUtils.getNodeValue(c));b?0==p.length&&null!=l&&(EditorUi.removeChildNodes(c),mxUtils.setTextContent(c,Graph.compressNode(l)),EditorUi.debug("DrawioFile.compressionChanged",
@@ -12200,460 +12243,460 @@ DrawioFile.prototype.compressionChanged=function(b){var e=null!=this.ownPages?th
DrawioFile.prototype.fileChanged=function(b){b=null!=b?b:!0;this.lastChanged=new Date;this.setModified(!0);EditorUi.debug("DrawioFile.fileChanged",[this],"autosaveDelay",this.autosaveDelay,"autosave",this.isAutosave(),"saving",this.savingFile);this.isAutosave()?(null!=this.savingStatusKey&&this.ui.updateStatus(mxUtils.bind(this,function(){this.addAllSavedStatus(mxUtils.htmlEntities(mxResources.get(this.savingStatusKey))+"...")})),this.ui.scheduleSanityCheck(),null==this.ageStart&&(this.ageStart=new Date),
this.autosave(this.autosaveDelay,this.maxAutosaveDelay,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(f){EditorUi.debug("DrawioFile.createSecret",[this],"secret",e,"token",f);b(e,f)}),mxUtils.bind(this,function(){b(e)})):b(e)};DrawioFile.prototype.fileSaving=function(){null!=this.sync&&this.sync.fileSaving()};
-DrawioFile.prototype.fileSaved=function(b,e,f,c,l,p,q){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!=f&&f()):this.sync.fileSaved(p,e,f,c,l,q)}catch(G){this.invalidChecksum=
-this.inConflictState=!0;this.descriptorChanged();null!=c&&c(G);try{var v=this.getCurrentUser(),D=null!=v?v.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),D,G)}catch(B){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[e],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(G){this.descriptorChanged(),null!=c&&c(G)}};
-DrawioFile.prototype.autosave=function(b,e,f,c){null==this.lastAutosave&&(this.lastAutosave=Date.now());var l=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 q=this.isAutosaveRevision();
-q&&(this.lastAutosaveRevision=(new Date).getTime());this.save(q,mxUtils.bind(this,function(v){this.autosaveCompleted();null!=f&&f(v)}),mxUtils.bind(this,function(v){null!=c&&c(v)}))}else this.isModified()||this.ui.clearStatus(),null!=f&&f(null)}catch(v){null!=c&&c(v)}}),l);this.autosaveThread=p;EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"delay",b,"maxDelay",e,"actualDelay",l,"lastAutosave",this.lastAutosave,"saving",this.savingFile)};DrawioFile.prototype.isAutosaveNow=function(){return!0};
+DrawioFile.prototype.fileSaved=function(b,e,f,c,l,p,v){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!=f&&f()):this.sync.fileSaved(p,e,f,c,l,v)}catch(H){this.invalidChecksum=
+this.inConflictState=!0;this.descriptorChanged();null!=c&&c(H);try{var t=this.getCurrentUser(),E=null!=t?t.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),E,H)}catch(B){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[e],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(H){this.descriptorChanged(),null!=c&&c(H)}};
+DrawioFile.prototype.autosave=function(b,e,f,c){null==this.lastAutosave&&(this.lastAutosave=Date.now());var l=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 v=this.isAutosaveRevision();
+v&&(this.lastAutosaveRevision=(new Date).getTime());this.save(v,mxUtils.bind(this,function(t){this.autosaveCompleted();null!=f&&f(t)}),mxUtils.bind(this,function(t){null!=c&&c(t)}))}else this.isModified()||this.ui.clearStatus(),null!=f&&f(null)}catch(t){null!=c&&c(t)}}),l);this.autosaveThread=p;EditorUi.debug("DrawioFile.autosave",[this],"thread",p,"delay",b,"maxDelay",e,"actualDelay",l,"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"))};
DrawioFile.prototype.contentChanged=function(){this.fireEvent(new mxEventObject("contentChanged"))};DrawioFile.prototype.close=function(b){try{this.isAutosave()&&this.isModified()&&(this.updateFileData(),this.save(this.isAutosaveRevision(),null,null,b))}catch(e){}this.stats.closed++;this.destroy()};DrawioFile.prototype.hasSameExtension=function(b,e){if(null!=b&&null!=e){var f=b.lastIndexOf(".");b=0<f?b.substring(f):"";f=e.lastIndexOf(".");return b===(0<f?e.substring(f):"")}return b==e};
DrawioFile.prototype.removeListeners=function(){null!=this.changeListener&&(this.ui.editor.graph.model.removeListener(this.changeListener),this.ui.editor.graph.removeListener(this.changeListener),this.ui.removeListener(this.changeListener),this.changeListener=null)};DrawioFile.prototype.destroy=function(){this.clearAutosave();this.removeListeners();this.stats.destroyed++;null!=this.sync&&(this.sync.destroy(),this.sync=null)};DrawioFile.prototype.commentsSupported=function(){return!1};
-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,f){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,f,c,l,p,q){DrawioFile.call(this,b,e);this.title=f;this.mode=c?null:App.MODE_DEVICE;this.fileHandle=l;this.desc=p;this.editable=q};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};
+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,f){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,f,c,l,p,v){DrawioFile.call(this,b,e);this.title=f;this.mode=c?null:App.MODE_DEVICE;this.fileHandle=l;this.desc=p;this.editable=v};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,f,c,l){this.saveAs(this.title,e,f,c,l)};LocalFile.prototype.saveAs=function(b,e,f,c,l){this.saveFile(b,!1,e,f,null,c,l)};
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,f,c,l,p,q){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;l||this.updateFileData();var v=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var D=this.getData(),G=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=f&&f()}),B=mxUtils.bind(this,function(d){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
-!0;var g=mxUtils.bind(this,function(m){this.savingFile=!1;null!=c&&c({error:m})});this.saveDraft(D);this.fileHandle.createWritable().then(mxUtils.bind(this,function(m){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);q||this.desc.lastModified==t.lastModified?m.write(v?this.ui.base64ToBlob(d,"image/png"):d).then(mxUtils.bind(this,function(){m.close().then(mxUtils.bind(this,
-function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(y){try{var z=this.desc;this.savingFile=!1;this.desc=y;this.fileSaved(D,z,G,g);this.removeDraft()}catch(I){g(I)}}),g)}),g)}),g):(this.inConflictState=!0,g())}),mxUtils.bind(this,function(t){this.invalidFileHandle=!0;g(t)}))}),g)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(d,b,v?"image/png":"text/xml",v);else if(d.length<MAX_REQUEST_SIZE){var k=b.lastIndexOf(".");k=0<k?b.substring(k+1):"xml";
-(new mxXmlRequest(SAVE_URL,"format="+k+"&xml="+encodeURIComponent(d)+"&filename="+encodeURIComponent(b)+(v?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(d)}));G()}});v?(e=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(d){B(d)}),c,this.ui.getCurrentFile()!=this?D:null,e.scale,e.border)):B(D)};
+LocalFile.prototype.saveFile=function(b,e,f,c,l,p,v){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;l||this.updateFileData();var t=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var E=this.getData(),H=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=f&&f()}),B=mxUtils.bind(this,function(d){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
+!0;var g=mxUtils.bind(this,function(m){this.savingFile=!1;null!=c&&c({error:m})});this.saveDraft(E);this.fileHandle.createWritable().then(mxUtils.bind(this,function(m){this.fileHandle.getFile().then(mxUtils.bind(this,function(u){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[u],"conflict",this.desc.lastModified!=u.lastModified);v||this.desc.lastModified==u.lastModified?m.write(t?this.ui.base64ToBlob(d,"image/png"):d).then(mxUtils.bind(this,function(){m.close().then(mxUtils.bind(this,
+function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(x){try{var A=this.desc;this.savingFile=!1;this.desc=x;this.fileSaved(E,A,H,g);this.removeDraft()}catch(I){g(I)}}),g)}),g)}),g):(this.inConflictState=!0,g())}),mxUtils.bind(this,function(u){this.invalidFileHandle=!0;g(u)}))}),g)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(d,b,t?"image/png":"text/xml",t);else if(d.length<MAX_REQUEST_SIZE){var k=b.lastIndexOf(".");k=0<k?b.substring(k+1):"xml";
+(new mxXmlRequest(SAVE_URL,"format="+k+"&xml="+encodeURIComponent(d)+"&filename="+encodeURIComponent(b)+(t?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(d)}));H()}});t?(e=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(d){B(d)}),c,this.ui.getCurrentFile()!=this?E:null,e.scale,e.border)):B(E)};
LocalFile.prototype.rename=function(b,e,f){this.title=b;this.descriptorChanged();null!=e&&e()};LocalLibrary=function(b,e,f){LocalFile.call(this,b,e,f)};mxUtils.extend(LocalLibrary,LocalFile);LocalLibrary.prototype.getHash=function(){return"F"+this.getTitle()};LocalLibrary.prototype.isAutosave=function(){return!1};LocalLibrary.prototype.saveAs=function(b,e,f){this.saveFile(b,!1,e,f)};LocalLibrary.prototype.updateFileData=function(){};LocalLibrary.prototype.open=function(){};StorageFile=function(b,e,f){DrawioFile.call(this,b,e);this.title=f;this.etag=this.getEtag(e)};mxUtils.extend(StorageFile,DrawioFile);StorageFile.prototype.getEtag=function(b){return this.ui.hashValue(null!=b?b:"")};StorageFile.prototype.autosaveDelay=500;StorageFile.prototype.maxAutosaveDelay=2E4;StorageFile.prototype.maxRetries=5;StorageFile.prototype.type="F";StorageFile.prototype.getMode=function(){return App.MODE_BROWSER};StorageFile.prototype.isSyncSupported=function(){return!0};
StorageFile.prototype.isPolling=function(){return this.isSyncSupported()};StorageFile.prototype.getPollingInterval=function(){return 1E4};StorageFile.prototype.loadDescriptor=function(b,e){this.getLatestVersionId(b,e)};StorageFile.prototype.getLatestVersionId=function(b,e){StorageFile.getFileContent(this.ui,this.title,mxUtils.bind(this,function(f){b(this.getEtag(f))}),e)};StorageFile.prototype.isAutosaveOptional=function(){return!0};StorageFile.prototype.getHash=function(){return"L"+encodeURIComponent(this.getTitle())};
StorageFile.prototype.getTitle=function(){return this.title};StorageFile.prototype.isRenamable=function(){return!0};StorageFile.prototype.getDescriptor=function(){return this.etag};StorageFile.prototype.setDescriptor=function(b){this.etag=b};StorageFile.prototype.getDescriptorEtag=function(b){return b};StorageFile.prototype.save=function(b,e,f){this.saveAs(this.getTitle(),e,f)};
StorageFile.prototype.saveAs=function(b,e,f){DrawioFile.prototype.save.apply(this,[!1,mxUtils.bind(this,function(){this.saveFile(this.getTitle(),!1,e,f)}),f])};StorageFile.insertFile=function(b,e,f,c,l,p){StorageFile.doInsertFile(null!=p?p:new StorageFile(b,f,e),c,l)};
-StorageFile.doInsertFile=function(b,e,f){var c=b.getTitle(),l=b.getUi(),p=mxUtils.bind(this,function(q){var v=function(){b.writeFile(c,function(){e(b)},f)};q?l.confirm(mxResources.get("replaceIt",[c]),v,f):v()});StorageFile.getFileContent(l,c,function(q){p(null!=q)},function(){p(!1)})};StorageFile.getFileContent=function(b,e,f,c){b.getDatabaseItem(e,function(l){f(null!=l?l.data:null)},mxUtils.bind(this,function(){null==b.database?b.getLocalData(e,f):null!=c&&c()}),"files")};
+StorageFile.doInsertFile=function(b,e,f){var c=b.getTitle(),l=b.getUi(),p=mxUtils.bind(this,function(v){var t=function(){b.writeFile(c,function(){e(b)},f)};v?l.confirm(mxResources.get("replaceIt",[c]),t,f):t()});StorageFile.getFileContent(l,c,function(v){p(null!=v)},function(){p(!1)})};StorageFile.getFileContent=function(b,e,f,c){b.getDatabaseItem(e,function(l){f(null!=l?l.data:null)},mxUtils.bind(this,function(){null==b.database?b.getLocalData(e,f):null!=c&&c()}),"files")};
StorageFile.getFileInfo=function(b,e,f,c){b.getDatabaseItem(e,function(l){f(l)},mxUtils.bind(this,function(){null==b.database?b.getLocalData(e,function(l){f(null!=l?{title:e}:null)}):null!=c&&c()}),"filesInfo")};
-StorageFile.prototype.saveFile=function(b,e,f,c,l){l=null!=l?l:0;if(this.isEditable()){var p=mxUtils.bind(this,function(){this.writeFile(b,f,c)});this.isRenamable()&&"."==b.charAt(0)&&null!=c?c({message:mxResources.get("invalidName")}):this instanceof StorageLibrary?p():StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(q){this.isRenamable()&&this.getTitle()!=b&&null!=q?this.ui.confirm(mxResources.get("replaceIt",[b]),p,c):this.getLatestVersion(mxUtils.bind(this,function(v){v.getDescriptor()!=
-this.getDescriptor()?(EditorUi.debug("StorageFile.saveFile",[this],"conflict",[v]),this.mergeFile(v,mxUtils.bind(this,function(){l>=this.maxRetries||this.invalidChecksum||this.inConflictState?(this.inConflictState=!0,null!=c&&c()):this.retrySave(mxUtils.bind(this,function(){this.updateFileData();this.saveFile(b,e,f,c,l+1)}))}),c)):p()}),c)}),c)}else null!=f&&f();EditorUi.debug("StorageFile.saveFile",[this],"title",b,"revision",e,"retry",l)};
+StorageFile.prototype.saveFile=function(b,e,f,c,l){l=null!=l?l:0;if(this.isEditable()){var p=mxUtils.bind(this,function(){this.writeFile(b,f,c)});this.isRenamable()&&"."==b.charAt(0)&&null!=c?c({message:mxResources.get("invalidName")}):this instanceof StorageLibrary?p():StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(v){this.isRenamable()&&this.getTitle()!=b&&null!=v?this.ui.confirm(mxResources.get("replaceIt",[b]),p,c):this.getLatestVersion(mxUtils.bind(this,function(t){t.getDescriptor()!=
+this.getDescriptor()?(EditorUi.debug("StorageFile.saveFile",[this],"conflict",[t]),this.mergeFile(t,mxUtils.bind(this,function(){l>=this.maxRetries||this.invalidChecksum||this.inConflictState?(this.inConflictState=!0,null!=c&&c()):this.retrySave(mxUtils.bind(this,function(){this.updateFileData();this.saveFile(b,e,f,c,l+1)}))}),c)):p()}),c)}),c)}else null!=f&&f();EditorUi.debug("StorageFile.saveFile",[this],"title",b,"revision",e,"retry",l)};
StorageFile.prototype.retrySave=function(b){var e=300+300*Math.random();window.setTimeout(b,e);EditorUi.debug("StorageFile.retrySave",[this],"delay",e)};
StorageFile.prototype.writeFile=function(b,e,f){this.isRenamable()&&(this.title=b);try{var c=this.getDescriptor(),l=this.getData(),p=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.setDescriptor(this.getEtag(l));this.contentChanged();this.fileSaved(l,c,e,f)});this.setShadowModified(!1);this.ui.setDatabaseItem(null,[{title:this.title,size:l.length,lastModified:Date.now(),type:this.type},{title:this.title,data:l}],p,mxUtils.bind(this,function(){if(null==this.ui.database)try{this.ui.setLocalData(this.title,
-l,p)}catch(q){null!=f&&f(q)}else null!=f&&f()}),["filesInfo","files"])}catch(q){null!=f&&f(q)}};StorageFile.prototype.rename=function(b,e,f){var c=this.getTitle();c!=b?StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(l){var p=mxUtils.bind(this,function(){this.title=b;this.hasSameExtension(c,b)||this.setData(this.ui.getFileData());this.saveFile(b,!1,mxUtils.bind(this,function(){this.ui.removeLocalData(c,e)}),f)});null!=l?this.ui.confirm(mxResources.get("replaceIt",[b]),p,f):p()}),f):e()};
+l,p)}catch(v){null!=f&&f(v)}else null!=f&&f()}),["filesInfo","files"])}catch(v){null!=f&&f(v)}};StorageFile.prototype.rename=function(b,e,f){var c=this.getTitle();c!=b?StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(l){var p=mxUtils.bind(this,function(){this.title=b;this.hasSameExtension(c,b)||this.setData(this.ui.getFileData());this.saveFile(b,!1,mxUtils.bind(this,function(){this.ui.removeLocalData(c,e)}),f)});null!=l?this.ui.confirm(mxResources.get("replaceIt",[b]),p,f):p()}),f):e()};
StorageFile.prototype.getLatestVersion=function(b,e){StorageFile.getFileContent(this.ui,this.title,mxUtils.bind(this,function(f){b(new StorageFile(this.ui,f,this.title))}),e)};StorageFile.prototype.destroy=function(){DrawioFile.prototype.destroy.apply(this,arguments);null!=this.storageListener&&(mxEvent.removeListener(window,"storage",this.storageListener),this.storageListener=null)};
-StorageFile.listLocalStorageFiles=function(b){for(var e=[],f=0;f<localStorage.length;f++){var c=localStorage.key(f),l=localStorage.getItem(c);if(0<c.length&&"."!=c.charAt(0)&&0<l.length){var p=(null==b||"F"==b)&&("<mxfile "===l.substring(0,8)||"<?xml"===l.substring(0,5)||"\x3c!--[if IE]>"===l.substring(0,12)),q=(null==b||"L"==b)&&"<mxlibrary>"===l.substring(0,11);(p||q)&&e.push({title:c,type:p?"F":"L",size:l.length,lastModified:Date.now()})}}return e};
+StorageFile.listLocalStorageFiles=function(b){for(var e=[],f=0;f<localStorage.length;f++){var c=localStorage.key(f),l=localStorage.getItem(c);if(0<c.length&&"."!=c.charAt(0)&&0<l.length){var p=(null==b||"F"==b)&&("<mxfile "===l.substring(0,8)||"<?xml"===l.substring(0,5)||"\x3c!--[if IE]>"===l.substring(0,12)),v=(null==b||"L"==b)&&"<mxlibrary>"===l.substring(0,11);(p||v)&&e.push({title:c,type:p?"F":"L",size:l.length,lastModified:Date.now()})}}return e};
StorageFile.migrate=function(b){var e=StorageFile.listLocalStorageFiles();e.push({title:".scratchpad",type:"L"});var f=b.transaction(["files","filesInfo"],"readwrite");b=f.objectStore("files");f=f.objectStore("filesInfo");for(var c=0;c<e.length;c++){var l=e[c],p=localStorage.getItem(l.title);b.add({title:l.title,data:p});f.add(l)}};
-StorageFile.listFiles=function(b,e,f,c){b.getDatabaseItems(function(l){var p=[];if(null!=l)for(var q=0;q<l.length;q++)"."==l[q].title.charAt(0)||null!=e&&l[q].type!=e||p.push(l[q]);f(p)},function(){null==b.database?f(StorageFile.listLocalStorageFiles(e)):null!=c&&c()},"filesInfo")};StorageFile.deleteFile=function(b,e,f,c){b.removeDatabaseItem([e,e],f,function(){null==b.database?(localStorage.removeItem(e),f()):null!=c&&c()},["files","filesInfo"])};StorageLibrary=function(b,e,f){StorageFile.call(this,b,e,f)};mxUtils.extend(StorageLibrary,StorageFile);StorageLibrary.prototype.type="L";StorageLibrary.prototype.isAutosave=function(){return!0};StorageLibrary.prototype.saveAs=function(b,e,f){this.saveFile(b,!1,e,f)};StorageLibrary.prototype.getHash=function(){return"L"+encodeURIComponent(this.title)};StorageLibrary.prototype.getTitle=function(){return".scratchpad"==this.title?mxResources.get("scratchpad"):this.title};
+StorageFile.listFiles=function(b,e,f,c){b.getDatabaseItems(function(l){var p=[];if(null!=l)for(var v=0;v<l.length;v++)"."==l[v].title.charAt(0)||null!=e&&l[v].type!=e||p.push(l[v]);f(p)},function(){null==b.database?f(StorageFile.listLocalStorageFiles(e)):null!=c&&c()},"filesInfo")};StorageFile.deleteFile=function(b,e,f,c){b.removeDatabaseItem([e,e],f,function(){null==b.database?(localStorage.removeItem(e),f()):null!=c&&c()},["files","filesInfo"])};StorageLibrary=function(b,e,f){StorageFile.call(this,b,e,f)};mxUtils.extend(StorageLibrary,StorageFile);StorageLibrary.prototype.type="L";StorageLibrary.prototype.isAutosave=function(){return!0};StorageLibrary.prototype.saveAs=function(b,e,f){this.saveFile(b,!1,e,f)};StorageLibrary.prototype.getHash=function(){return"L"+encodeURIComponent(this.title)};StorageLibrary.prototype.getTitle=function(){return".scratchpad"==this.title?mxResources.get("scratchpad"):this.title};
StorageLibrary.prototype.isRenamable=function(b,e,f){return".scratchpad"!=this.title};StorageLibrary.prototype.open=function(){};RemoteFile=function(b,e,f){DrawioFile.call(this,b,e);this.title=f;this.mode=null};mxUtils.extend(RemoteFile,DrawioFile);RemoteFile.prototype.isAutosave=function(){return!1};RemoteFile.prototype.getMode=function(){return this.mode};RemoteFile.prototype.getTitle=function(){return this.title};RemoteFile.prototype.isRenamable=function(){return!1};RemoteFile.prototype.open=function(){this.ui.setFileData(this.getData());this.installListeners()};RemoteLibrary=function(b,e,f){RemoteFile.call(this,b,e,f.title);this.libObj=f};mxUtils.extend(RemoteLibrary,LocalFile);RemoteLibrary.prototype.getHash=function(){return"R"+encodeURIComponent(JSON.stringify([this.libObj.id,this.libObj.title,this.libObj.downloadUrl]))};RemoteLibrary.prototype.isEditable=function(){return!1};RemoteLibrary.prototype.isRenamable=function(){return!1};RemoteLibrary.prototype.isAutosave=function(){return!1};RemoteLibrary.prototype.save=function(b,e,f){};
RemoteLibrary.prototype.saveAs=function(b,e,f){};RemoteLibrary.prototype.updateFileData=function(){};RemoteLibrary.prototype.open=function(){};UrlLibrary=function(b,e,f){StorageFile.call(this,b,e,f);b=f;e=b.lastIndexOf("/");0<=e&&(b=b.substring(e+1));this.fname=b};mxUtils.extend(UrlLibrary,StorageFile);UrlLibrary.prototype.getHash=function(){return"U"+encodeURIComponent(this.title)};UrlLibrary.prototype.getTitle=function(){return this.fname};UrlLibrary.prototype.isAutosave=function(){return!1};UrlLibrary.prototype.isEditable=function(b,e,f){return!1};UrlLibrary.prototype.saveAs=function(b,e,f){};UrlLibrary.prototype.open=function(){};EmbedFile=function(b,e,f){DrawioFile.call(this,b,e);this.desc=f||{};this.mode=App.MODE_EMBED};mxUtils.extend(EmbedFile,DrawioFile);EmbedFile.prototype.getMode=function(){return this.mode};EmbedFile.prototype.getTitle=function(){return this.desc.title||""};/*
mxClient.IS_IOS || */
-var StorageDialog=function(b,e,f){function c(d,g,k,m,t,y){function z(){mxEvent.addListener(I,"click",null!=y?y:function(){k==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(k,!0);e()})):k==App.MODE_ONEDRIVE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.oneDrive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(k,!0);e()}),function(V){b.spinner.stop();b.handleError(V)}):
-(b.setMode(k,!0),e())})}v++;++q>f&&(mxUtils.br(D),q=1);var I=document.createElement("a");I.style.overflow="hidden";I.style.display="inline-block";I.className="geBaseButton";I.style.boxSizing="border-box";I.style.fontSize="11px";I.style.position="relative";I.style.margin="4px";I.style.marginTop="8px";I.style.marginBottom="0px";I.style.padding="8px 10px 8px 10px";I.style.width="88px";I.style.height="100px";I.style.whiteSpace="nowrap";I.setAttribute("title",g);var F=document.createElement("div");F.style.textOverflow=
+var StorageDialog=function(b,e,f){function c(d,g,k,m,u,x){function A(){mxEvent.addListener(I,"click",null!=x?x:function(){k==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(k,!0);e()})):k==App.MODE_ONEDRIVE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.oneDrive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(k,!0);e()}),function(U){b.spinner.stop();b.handleError(U)}):
+(b.setMode(k,!0),e())})}t++;++v>f&&(mxUtils.br(E),v=1);var I=document.createElement("a");I.style.overflow="hidden";I.style.display="inline-block";I.className="geBaseButton";I.style.boxSizing="border-box";I.style.fontSize="11px";I.style.position="relative";I.style.margin="4px";I.style.marginTop="8px";I.style.marginBottom="0px";I.style.padding="8px 10px 8px 10px";I.style.width="88px";I.style.height="100px";I.style.whiteSpace="nowrap";I.setAttribute("title",g);var F=document.createElement("div");F.style.textOverflow=
"ellipsis";F.style.overflow="hidden";F.style.position="absolute";F.style.bottom="8px";F.style.left="0px";F.style.right="0px";mxUtils.write(F,g);I.appendChild(F);if(null!=d){var C=document.createElement("img");C.setAttribute("src",d);C.setAttribute("border","0");C.setAttribute("align","absmiddle");C.style.width="60px";C.style.height="60px";C.style.paddingBottom="6px";I.appendChild(C)}else F.style.paddingTop="5px",F.style.whiteSpace="normal",mxClient.IS_IOS?(I.style.padding="0px 10px 20px 10px",I.style.top=
-"6px"):mxClient.IS_FF&&(F.style.paddingTop="0px",F.style.marginTop="-2px");if(null!=t)for(d=0;d<t.length;d++)mxUtils.br(F),mxUtils.write(F,t[d]);if(null!=m&&null==b[m]){C.style.visibility="hidden";mxUtils.setOpacity(F,10);var Q=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});Q.spin(I);var S=window.setTimeout(function(){null==b[m]&&(Q.stop(),I.style.display="none")},3E4);b.addListener("clientLoaded",
-mxUtils.bind(this,function(V,P){null!=b[m]&&P.getProperty("client")==b[m]&&(window.clearTimeout(S),mxUtils.setOpacity(F,100),C.style.visibility="",Q.stop(),z(),"drive"==m&&null!=G.parentNode&&G.parentNode.removeChild(G))}))}else z();D.appendChild(I)}f=null!=f?f:2;var l=document.createElement("div");l.style.textAlign="center";l.style.whiteSpace="nowrap";l.style.paddingTop="0px";l.style.paddingBottom="20px";var p=document.createElement("div");p.style.border="1px solid #d3d3d3";p.style.borderWidth="1px 0px 1px 0px";
-p.style.padding="10px 0px 20px 0px";var q=0,v=0,D=document.createElement("div");D.style.paddingTop="2px";p.appendChild(D);var G=document.createElement("p"),B=document.createElement("p");B.style.cssText="font-size:22px;padding:4px 0 16px 0;margin:0;color:gray;";mxUtils.write(B,mxResources.get("saveDiagramsTo")+":");l.appendChild(B);l.appendChild(p);q=0;"function"===typeof window.DriveClient&&c(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive");"function"===
+"6px"):mxClient.IS_FF&&(F.style.paddingTop="0px",F.style.marginTop="-2px");if(null!=u)for(d=0;d<u.length;d++)mxUtils.br(F),mxUtils.write(F,u[d]);if(null!=m&&null==b[m]){C.style.visibility="hidden";mxUtils.setOpacity(F,10);var P=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});P.spin(I);var R=window.setTimeout(function(){null==b[m]&&(P.stop(),I.style.display="none")},3E4);b.addListener("clientLoaded",
+mxUtils.bind(this,function(U,O){null!=b[m]&&O.getProperty("client")==b[m]&&(window.clearTimeout(R),mxUtils.setOpacity(F,100),C.style.visibility="",P.stop(),A(),"drive"==m&&null!=H.parentNode&&H.parentNode.removeChild(H))}))}else A();E.appendChild(I)}f=null!=f?f:2;var l=document.createElement("div");l.style.textAlign="center";l.style.whiteSpace="nowrap";l.style.paddingTop="0px";l.style.paddingBottom="20px";var p=document.createElement("div");p.style.border="1px solid #d3d3d3";p.style.borderWidth="1px 0px 1px 0px";
+p.style.padding="10px 0px 20px 0px";var v=0,t=0,E=document.createElement("div");E.style.paddingTop="2px";p.appendChild(E);var H=document.createElement("p"),B=document.createElement("p");B.style.cssText="font-size:22px;padding:4px 0 16px 0;margin:0;color:gray;";mxUtils.write(B,mxResources.get("saveDiagramsTo")+":");l.appendChild(B);l.appendChild(p);v=0;"function"===typeof window.DriveClient&&c(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive");"function"===
typeof window.OneDriveClient&&c(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive");"1"!=urlParams.noDevice&&c(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);!isLocalStorage||"1"!=urlParams.browser&&"1"!=urlParams.offline||c(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER);"function"===typeof window.DropboxClient&&c(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),App.MODE_DROPBOX,"dropbox");
null!=b.gitHub&&c(IMAGE_PATH+"/github-logo.svg",mxResources.get("github"),App.MODE_GITHUB,"gitHub");null!=b.gitLab&&c(IMAGE_PATH+"/gitlab-logo.svg",mxResources.get("gitlab"),App.MODE_GITLAB,"gitLab");p=document.createElement("span");p.style.position="absolute";p.style.cursor="pointer";p.style.bottom="27px";p.style.color="gray";p.style.userSelect="none";p.style.textAlign="center";p.style.left="50%";mxUtils.setPrefixedStyle(p.style,"transform","translate(-50%,0)");mxUtils.write(p,mxResources.get("decideLater"));
-l.appendChild(p);mxEvent.addListener(p,"click",function(){b.hideDialog();var d=Editor.useLocalStorage;b.createFile(b.defaultFilename,null,null,null,null,null,null,!0);Editor.useLocalStorage=d});mxClient.IS_SVG&&isLocalStorage&&"0"!=urlParams.gapi&&(null==document.documentMode||10<=document.documentMode)&&window.setTimeout(function(){null==b.drive&&(G.style.padding="7px",G.style.fontSize="9pt",G.style.marginTop="-14px",G.innerHTML='<a style="background-color:#dcdcdc;padding:6px;color:black;text-decoration:none;" href="https://www.drawio.com/doc/faq/google-drive-connection-problems" target="_blank"><img border="0" src="'+
-mxGraph.prototype.warningImage.src+'" align="absmiddle" style="margin-top:-4px"> '+mxResources.get("googleDriveMissingClickHere")+"</a>",l.appendChild(G))},5E3);this.container=l},SplashDialog=function(b){var e=document.createElement("div");e.style.textAlign="center";if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp){var f=b.addLanguageMenu(e,!1,"28px");null!=f&&(f.style.bottom="24px")}var c=document.createElement("img");c.setAttribute("border","0");c.setAttribute("align","absmiddle");c.style.width=
+l.appendChild(p);mxEvent.addListener(p,"click",function(){b.hideDialog();var d=Editor.useLocalStorage;b.createFile(b.defaultFilename,null,null,null,null,null,null,!0);Editor.useLocalStorage=d});mxClient.IS_SVG&&isLocalStorage&&"0"!=urlParams.gapi&&(null==document.documentMode||10<=document.documentMode)&&window.setTimeout(function(){null==b.drive&&(H.style.padding="7px",H.style.fontSize="9pt",H.style.marginTop="-14px",H.innerHTML='<a style="background-color:#dcdcdc;padding:6px;color:black;text-decoration:none;" href="https://www.drawio.com/doc/faq/google-drive-connection-problems" target="_blank"><img border="0" src="'+
+mxGraph.prototype.warningImage.src+'" align="absmiddle" style="margin-top:-4px"> '+mxResources.get("googleDriveMissingClickHere")+"</a>",l.appendChild(H))},5E3);this.container=l},SplashDialog=function(b){var e=document.createElement("div");e.style.textAlign="center";if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp){var f=b.addLanguageMenu(e,!1,"28px");null!=f&&(f.style.bottom="24px")}var c=document.createElement("img");c.setAttribute("border","0");c.setAttribute("align","absmiddle");c.style.width=
"32px";c.style.height="32px";c.style.marginRight="8px";c.style.marginTop="-4px";var l=document.createElement("div");l.style.margin="8px 0px 0px 0px";l.style.padding="18px 0px 24px 0px";f="";b.mode==App.MODE_GOOGLE?(c.src=IMAGE_PATH+"/google-drive-logo.svg",f=mxResources.get("googleDrive")):b.mode==App.MODE_DROPBOX?(c.src=IMAGE_PATH+"/dropbox-logo.svg",f=mxResources.get("dropbox")):b.mode==App.MODE_ONEDRIVE?(c.src=IMAGE_PATH+"/onedrive-logo.svg",f=mxResources.get("oneDrive")):b.mode==App.MODE_GITHUB?
(c.src=IMAGE_PATH+"/github-logo.svg",f=mxResources.get("github")):b.mode==App.MODE_GITLAB?(c.src=IMAGE_PATH+"/gitlab-logo.svg",f=mxResources.get("gitlab")):b.mode==App.MODE_BROWSER?(c.src=IMAGE_PATH+"/osa_database.png",f=mxResources.get("browser")):b.mode==App.MODE_TRELLO?(c.src=IMAGE_PATH+"/trello-logo.svg",f=mxResources.get("trello")):(c.src=IMAGE_PATH+"/osa_drive-harddisk.png",l.style.paddingBottom="10px",l.style.paddingTop="30px",f=mxResources.get("device"));var p=document.createElement("button");
-p.className="geBigButton";p.style.marginBottom="8px";p.style.fontSize="18px";p.style.padding="10px";p.style.width="340px";if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)l.style.padding="42px 0px 10px 0px",p.style.marginBottom="12px";else{l.style.border="1px solid #d3d3d3";l.style.borderWidth="1px 0px 1px 0px";var q=document.createElement("table"),v=document.createElement("tbody"),D=document.createElement("tr"),G=document.createElement("td"),B=document.createElement("td");q.setAttribute("align",
-"center");G.appendChild(c);c=document.createElement("div");c.style.fontSize="22px";c.style.paddingBottom="6px";c.style.color="gray";mxUtils.write(c,f);B.style.textAlign="left";B.appendChild(c);D.appendChild(G);D.appendChild(B);v.appendChild(D);q.appendChild(v);e.appendChild(q);f=document.createElement("span");f.style.cssText="position:absolute;cursor:pointer;bottom:27px;color:gray;userSelect:none;text-align:center;left:50%;";mxUtils.setPrefixedStyle(f.style,"transform","translate(-50%,0)");mxUtils.write(f,
+p.className="geBigButton";p.style.marginBottom="8px";p.style.fontSize="18px";p.style.padding="10px";p.style.width="340px";if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)l.style.padding="42px 0px 10px 0px",p.style.marginBottom="12px";else{l.style.border="1px solid #d3d3d3";l.style.borderWidth="1px 0px 1px 0px";var v=document.createElement("table"),t=document.createElement("tbody"),E=document.createElement("tr"),H=document.createElement("td"),B=document.createElement("td");v.setAttribute("align",
+"center");H.appendChild(c);c=document.createElement("div");c.style.fontSize="22px";c.style.paddingBottom="6px";c.style.color="gray";mxUtils.write(c,f);B.style.textAlign="left";B.appendChild(c);E.appendChild(H);E.appendChild(B);t.appendChild(E);v.appendChild(t);e.appendChild(v);f=document.createElement("span");f.style.cssText="position:absolute;cursor:pointer;bottom:27px;color:gray;userSelect:none;text-align:center;left:50%;";mxUtils.setPrefixedStyle(f.style,"transform","translate(-50%,0)");mxUtils.write(f,
mxResources.get("changeStorage"));mxEvent.addListener(f,"click",function(){b.hideDialog(!1);b.setMode(null);b.clearMode();b.showSplash(!0)});e.appendChild(f)}mxUtils.write(p,mxResources.get("createNewDiagram"));mxEvent.addListener(p,"click",function(){b.hideDialog();b.actions.get("new").funct()});l.appendChild(p);mxUtils.br(l);p=document.createElement("button");p.className="geBigButton";p.style.marginBottom="22px";p.style.fontSize="18px";p.style.padding="10px";p.style.width="340px";mxUtils.write(p,
mxResources.get("openExistingDiagram"));mxEvent.addListener(p,"click",function(){b.actions.get("open").funct()});l.appendChild(p);b.mode==App.MODE_GOOGLE?mxResources.get("googleDrive"):b.mode==App.MODE_DROPBOX?mxResources.get("dropbox"):b.mode==App.MODE_ONEDRIVE?mxResources.get("oneDrive"):b.mode==App.MODE_GITHUB?mxResources.get("github"):b.mode==App.MODE_GITLAB?mxResources.get("gitlab"):b.mode==App.MODE_TRELLO?mxResources.get("trello"):b.mode==App.MODE_DEVICE?mxResources.get("device"):b.mode==App.MODE_BROWSER&&
mxResources.get("browser");if(!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp)if(f=function(k){p.style.marginBottom="24px";var m=document.createElement("a");m.style.display="inline-block";m.style.color="gray";m.style.cursor="pointer";m.style.marginTop="6px";mxUtils.write(m,mxResources.get("signOut"));p.style.marginBottom="16px";l.style.paddingBottom="18px";mxEvent.addListener(m,"click",function(){b.confirm(mxResources.get("areYouSure"),function(){k()})});l.appendChild(m)},b.mode==App.MODE_GOOGLE&&
-null!=b.drive){var d=b.drive.getUsersList();if(0<d.length){c=document.createElement("span");c.style.marginTop="6px";mxUtils.write(c,mxResources.get("changeUser")+":");p.style.marginBottom="16px";l.style.paddingBottom="18px";l.appendChild(c);var g=document.createElement("select");g.style.marginLeft="4px";g.style.width="140px";for(f=0;f<d.length;f++)q=document.createElement("option"),mxUtils.write(q,d[f].displayName),q.value=f,g.appendChild(q),q=document.createElement("option"),q.innerHTML="&nbsp;&nbsp;&nbsp;",
-mxUtils.write(q,"<"+d[f].email+">"),q.setAttribute("disabled","disabled"),g.appendChild(q);q=document.createElement("option");mxUtils.write(q,mxResources.get("addAccount"));q.value=d.length;g.appendChild(q);mxEvent.addListener(g,"change",function(){var k=g.value,m=d.length!=k;m&&b.drive.setUser(d[k]);b.drive.authorize(m,function(){b.setMode(App.MODE_GOOGLE);b.hideDialog();b.showSplash()},function(t){b.handleError(t,null,function(){b.hideDialog();b.showSplash()})},!0)});l.appendChild(g)}else f(function(){b.drive.logout()})}else b.mode!=
+null!=b.drive){var d=b.drive.getUsersList();if(0<d.length){c=document.createElement("span");c.style.marginTop="6px";mxUtils.write(c,mxResources.get("changeUser")+":");p.style.marginBottom="16px";l.style.paddingBottom="18px";l.appendChild(c);var g=document.createElement("select");g.style.marginLeft="4px";g.style.width="140px";for(f=0;f<d.length;f++)v=document.createElement("option"),mxUtils.write(v,d[f].displayName),v.value=f,g.appendChild(v),v=document.createElement("option"),v.innerHTML="&nbsp;&nbsp;&nbsp;",
+mxUtils.write(v,"<"+d[f].email+">"),v.setAttribute("disabled","disabled"),g.appendChild(v);v=document.createElement("option");mxUtils.write(v,mxResources.get("addAccount"));v.value=d.length;g.appendChild(v);mxEvent.addListener(g,"change",function(){var k=g.value,m=d.length!=k;m&&b.drive.setUser(d[k]);b.drive.authorize(m,function(){b.setMode(App.MODE_GOOGLE);b.hideDialog();b.showSplash()},function(u){b.handleError(u,null,function(){b.hideDialog();b.showSplash()})},!0)});l.appendChild(g)}else f(function(){b.drive.logout()})}else b.mode!=
App.MODE_ONEDRIVE||null==b.oneDrive||b.oneDrive.noLogout?b.mode==App.MODE_GITHUB&&null!=b.gitHub?f(function(){b.gitHub.logout();b.openLink("https://www.github.com/logout")}):b.mode==App.MODE_GITLAB&&null!=b.gitLab?f(function(){b.gitLab.logout();var k=document.createElement("form");k.setAttribute("method","post");k.setAttribute("action",DRAWIO_GITLAB_URL+"/users/sign_out");k.setAttribute("target","_blank");document.body.appendChild(k);k.submit();k.parentNode.removeChild(k)}):b.mode==App.MODE_TRELLO&&
-null!=b.trello?b.trello.isAuthorized()&&f(function(){b.trello.logout()}):b.mode==App.MODE_DROPBOX&&null!=b.dropbox&&f(function(){b.dropbox.logout();b.openLink("https://www.dropbox.com/logout")}):f(function(){b.oneDrive.logout()});e.appendChild(l);this.container=e},EmbedDialog=function(b,e,f,c,l,p,q,v,D){q=null!=q?q:"Check out the diagram I made using @drawio";c=document.createElement("div");var G=/^https?:\/\//.test(e)||/^mailto:\/\//.test(e);null!=p?mxUtils.write(c,p):mxUtils.write(c,mxResources.get(5E5>
-e.length?G?"link":"mainEmbedNotice":"preview")+":");mxUtils.br(c);p=document.createElement("div");p.style.position="absolute";p.style.top="30px";p.style.right="30px";p.style.color="gray";mxUtils.write(p,b.formatFileSize(e.length));c.appendChild(p);var B=document.createElement("textarea");B.setAttribute("autocomplete","off");B.setAttribute("autocorrect","off");B.setAttribute("autocapitalize","off");B.setAttribute("spellcheck","false");B.style.fontFamily="monospace";B.style.wordBreak="break-all";B.style.marginTop=
+null!=b.trello?b.trello.isAuthorized()&&f(function(){b.trello.logout()}):b.mode==App.MODE_DROPBOX&&null!=b.dropbox&&f(function(){b.dropbox.logout();b.openLink("https://www.dropbox.com/logout")}):f(function(){b.oneDrive.logout()});e.appendChild(l);this.container=e},EmbedDialog=function(b,e,f,c,l,p,v,t,E){v=null!=v?v:"Check out the diagram I made using @drawio";c=document.createElement("div");var H=/^https?:\/\//.test(e)||/^mailto:\/\//.test(e);null!=p?mxUtils.write(c,p):mxUtils.write(c,mxResources.get(5E5>
+e.length?H?"link":"mainEmbedNotice":"preview")+":");mxUtils.br(c);p=document.createElement("div");p.style.position="absolute";p.style.top="30px";p.style.right="30px";p.style.color="gray";mxUtils.write(p,b.formatFileSize(e.length));c.appendChild(p);var B=document.createElement("textarea");B.setAttribute("autocomplete","off");B.setAttribute("autocorrect","off");B.setAttribute("autocapitalize","off");B.setAttribute("spellcheck","false");B.style.fontFamily="monospace";B.style.wordBreak="break-all";B.style.marginTop=
"10px";B.style.resize="none";B.style.height="150px";B.style.width="440px";B.style.border="1px solid gray";B.value=mxResources.get("updatingDocument");c.appendChild(B);mxUtils.br(c);this.init=function(){window.setTimeout(function(){5E5>e.length?(B.value=e,B.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?B.select():document.execCommand("selectAll",!1,null)):(B.setAttribute("readonly","true"),B.value=mxResources.get("tooLargeUseDownload"))},0)};p=document.createElement("div");p.style.position=
-"absolute";p.style.bottom="36px";p.style.right="32px";var d=null;!EmbedDialog.showPreviewOption||mxIsElectron||mxClient.IS_CHROMEAPP&&!G||navigator.standalone||!(G||mxClient.IS_SVG&&(null==document.documentMode||9<document.documentMode))||(d=mxUtils.button(null!=v?v:mxResources.get(5E5>e.length?"preview":"openInNewWindow"),function(){var k=5E5>e.length?B.value:e;if(null!=l)l(k);else if(G)try{var m=b.openLink(k);null!=m&&(null==f||0<f)&&window.setTimeout(mxUtils.bind(this,function(){try{null!=m&&null!=
-m.location.href&&m.location.href.substring(0,8)!=k.substring(0,8)&&(m.close(),b.handleError({message:mxResources.get("drawingTooLarge")}))}catch(y){}}),f||500)}catch(y){b.handleError({message:y.message||mxResources.get("drawingTooLarge")})}else{var t=window.open();t=null!=t?t.document:null;null!=t?(t.writeln("<html><head><title>"+mxUtils.htmlEntities(mxResources.get("preview"))+'</title><meta charset="utf-8"></head><body>'+("<iframe"==e.substring(0,7)?e:mxUtils.htmlEntities(e))+"</body></html>"),
-t.close()):b.handleError({message:mxResources.get("errorUpdatingPreview")})}}),d.className="geBtn",p.appendChild(d));if(!G||7500<e.length)v=mxUtils.button(mxResources.get(mxIsElectron?"save":"download"),function(){b.hideDialog();b.saveData(null!=D?D:"embed.txt","txt",e,"text/plain")}),v.className="geBtn",p.appendChild(v);if(G&&(!b.isOffline()||mxClient.IS_CHROMEAPP)){if(51200>e.length){var g=mxUtils.button("",function(){try{var k="https://www.facebook.com/sharer.php?p[url]="+encodeURIComponent(B.value);
-b.openLink(k)}catch(m){b.handleError({message:m.message||mxResources.get("drawingTooLarge")})}});v=document.createElement("img");v.setAttribute("src",Editor.facebookImage);v.setAttribute("width","18");v.setAttribute("height","18");v.setAttribute("border","0");g.appendChild(v);g.setAttribute("title",mxResources.get("facebook")+" ("+b.formatFileSize(51200)+" max)");g.style.verticalAlign="bottom";g.style.paddingTop="4px";g.style.minWidth="46px";g.className="geBtn";p.appendChild(g)}7168>e.length&&(g=
-mxUtils.button("",function(){try{var k="https://twitter.com/intent/tweet?text="+encodeURIComponent(q)+"&url="+encodeURIComponent(B.value);b.openLink(k)}catch(m){b.handleError({message:m.message||mxResources.get("drawingTooLarge")})}}),v=document.createElement("img"),v.setAttribute("src",Editor.tweetImage),v.setAttribute("width","18"),v.setAttribute("height","18"),v.setAttribute("border","0"),v.style.marginBottom="5px",g.appendChild(v),g.setAttribute("title",mxResources.get("twitter")+" ("+b.formatFileSize(7168)+
-" max)"),g.style.verticalAlign="bottom",g.style.paddingTop="4px",g.style.minWidth="46px",g.className="geBtn",p.appendChild(g))}!b.isOffline()&&5E5>e.length&&(g=mxUtils.button("",function(){try{var k="mailto:?subject="+encodeURIComponent(D||b.defaultFilename)+"&body="+encodeURIComponent(B.value);b.openLink(k)}catch(m){b.handleError({message:m.message||mxResources.get("drawingTooLarge")})}}),v=document.createElement("img"),v.className="geAdaptiveAsset",v.setAttribute("src",Editor.mailImage),v.setAttribute("width",
-"18"),v.setAttribute("height","18"),v.setAttribute("border","0"),v.style.marginBottom="5px",g.appendChild(v),g.style.verticalAlign="bottom",g.style.paddingTop="4px",g.style.minWidth="46px",g.className="geBtn",p.appendChild(g));v=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});p.appendChild(v);g=mxUtils.button(mxResources.get("copy"),function(){B.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?B.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");
-b.alert(mxResources.get("copiedToClipboard"))});5E5>e.length?mxClient.IS_SF||null!=document.documentMode?v.className="geBtn gePrimaryBtn":(p.appendChild(g),g.className="geBtn gePrimaryBtn",v.className="geBtn"):null!=d&&(p.appendChild(d),v.className="geBtn",d.className="geBtn gePrimaryBtn");c.appendChild(p);this.container=c};EmbedDialog.showPreviewOption=!0;
-var GoogleSitesDialog=function(b,e){function f(){var V=null!=S&&null!=S.getTitle()?S.getTitle():this.defaultFilename;if(C.checked&&""!=g.value){var P="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(g.value));null!=V&&(P+="&title="+encodeURIComponent(V));0<Q.length&&(P+="&s="+Q);""!=k.value&&"0"!=k.value&&(P+="&border="+k.value);""!=d.value&&(P+="&height="+d.value);P+="&pan="+(m.checked?"1":"0");P+="&zoom="+(t.checked?"1":"0");P+="&fit="+(F.checked?"1":"0");
-P+="&resize="+(I.checked?"1":"0");P+="&x0="+Number(B.value);P+="&y0="+D;l.mathEnabled&&(P+="&math=1");z.checked?P+="&edit=_blank":y.checked&&(P+="&edit="+encodeURIComponent(mxUtils.htmlEntities(window.location.href)));G.value=P}else S.constructor==DriveFile||S.constructor==DropboxFile?(P="https://www.draw.io/gadget.xml?embed=0&diagram=",""!=g.value?P+=encodeURIComponent(mxUtils.htmlEntities(g.value))+"&type=3":(P+=S.getHash().substring(1),P=S.constructor==DropboxFile?P+"&type=2":P+"&type=1"),null!=
-V&&(P+="&title="+encodeURIComponent(V)),""!=d.value&&(V=parseInt(d.value)+parseInt(B.value),P+="&height="+V),G.value=P):G.value=""}var c=document.createElement("div"),l=b.editor.graph,p=l.getGraphBounds(),q=l.view.scale,v=Math.floor(p.x/q-l.view.translate.x),D=Math.floor(p.y/q-l.view.translate.y);mxUtils.write(c,mxResources.get("googleGadget")+":");mxUtils.br(c);var G=document.createElement("input");G.setAttribute("type","text");G.style.marginBottom="8px";G.style.marginTop="2px";G.style.width="410px";
-c.appendChild(G);mxUtils.br(c);this.init=function(){G.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?G.select():document.execCommand("selectAll",!1,null)};mxUtils.write(c,mxResources.get("top")+":");var B=document.createElement("input");B.setAttribute("type","text");B.setAttribute("size","4");B.style.marginRight="16px";B.style.marginLeft="4px";B.value=v;c.appendChild(B);mxUtils.write(c,mxResources.get("height")+":");var d=document.createElement("input");d.setAttribute("type","text");
-d.setAttribute("size","4");d.style.marginLeft="4px";d.value=Math.ceil(p.height/q);c.appendChild(d);mxUtils.br(c);p=document.createElement("hr");p.setAttribute("size","1");p.style.marginBottom="16px";p.style.marginTop="16px";c.appendChild(p);mxUtils.write(c,mxResources.get("publicDiagramUrl")+":");mxUtils.br(c);var g=document.createElement("input");g.setAttribute("type","text");g.setAttribute("size","28");g.style.marginBottom="8px";g.style.marginTop="2px";g.style.width="410px";g.value=e||"";c.appendChild(g);
-mxUtils.br(c);mxUtils.write(c,mxResources.get("borderWidth")+":");var k=document.createElement("input");k.setAttribute("type","text");k.setAttribute("size","3");k.style.marginBottom="8px";k.style.marginLeft="4px";k.value="0";c.appendChild(k);mxUtils.br(c);var m=document.createElement("input");m.setAttribute("type","checkbox");m.setAttribute("checked","checked");m.defaultChecked=!0;m.style.marginLeft="16px";c.appendChild(m);mxUtils.write(c,mxResources.get("pan")+" ");var t=document.createElement("input");
-t.setAttribute("type","checkbox");t.setAttribute("checked","checked");t.defaultChecked=!0;t.style.marginLeft="8px";c.appendChild(t);mxUtils.write(c,mxResources.get("zoom")+" ");var y=document.createElement("input");y.setAttribute("type","checkbox");y.style.marginLeft="8px";y.setAttribute("title",window.location.href);c.appendChild(y);mxUtils.write(c,mxResources.get("edit")+" ");var z=document.createElement("input");z.setAttribute("type","checkbox");z.style.marginLeft="8px";c.appendChild(z);mxUtils.write(c,
+"absolute";p.style.bottom="36px";p.style.right="32px";var d=null;!EmbedDialog.showPreviewOption||mxIsElectron||mxClient.IS_CHROMEAPP&&!H||navigator.standalone||!(H||mxClient.IS_SVG&&(null==document.documentMode||9<document.documentMode))||(d=mxUtils.button(null!=t?t:mxResources.get(5E5>e.length?"preview":"openInNewWindow"),function(){var k=5E5>e.length?B.value:e;if(null!=l)l(k);else if(H)try{var m=b.openLink(k);null!=m&&(null==f||0<f)&&window.setTimeout(mxUtils.bind(this,function(){try{null!=m&&null!=
+m.location.href&&m.location.href.substring(0,8)!=k.substring(0,8)&&(m.close(),b.handleError({message:mxResources.get("drawingTooLarge")}))}catch(x){}}),f||500)}catch(x){b.handleError({message:x.message||mxResources.get("drawingTooLarge")})}else{var u=window.open();u=null!=u?u.document:null;null!=u?(u.writeln("<html><head><title>"+mxUtils.htmlEntities(mxResources.get("preview"))+'</title><meta charset="utf-8"></head><body>'+("<iframe"==e.substring(0,7)?e:mxUtils.htmlEntities(e))+"</body></html>"),
+u.close()):b.handleError({message:mxResources.get("errorUpdatingPreview")})}}),d.className="geBtn",p.appendChild(d));if(!H||7500<e.length)t=mxUtils.button(mxResources.get(mxIsElectron?"save":"download"),function(){b.hideDialog();b.saveData(null!=E?E:"embed.txt","txt",e,"text/plain")}),t.className="geBtn",p.appendChild(t);if(H&&(!b.isOffline()||mxClient.IS_CHROMEAPP)){if(51200>e.length){var g=mxUtils.button("",function(){try{var k="https://www.facebook.com/sharer.php?p[url]="+encodeURIComponent(B.value);
+b.openLink(k)}catch(m){b.handleError({message:m.message||mxResources.get("drawingTooLarge")})}});t=document.createElement("img");t.setAttribute("src",Editor.facebookImage);t.setAttribute("width","18");t.setAttribute("height","18");t.setAttribute("border","0");g.appendChild(t);g.setAttribute("title",mxResources.get("facebook")+" ("+b.formatFileSize(51200)+" max)");g.style.verticalAlign="bottom";g.style.paddingTop="4px";g.style.minWidth="46px";g.className="geBtn";p.appendChild(g)}7168>e.length&&(g=
+mxUtils.button("",function(){try{var k="https://twitter.com/intent/tweet?text="+encodeURIComponent(v)+"&url="+encodeURIComponent(B.value);b.openLink(k)}catch(m){b.handleError({message:m.message||mxResources.get("drawingTooLarge")})}}),t=document.createElement("img"),t.setAttribute("src",Editor.tweetImage),t.setAttribute("width","18"),t.setAttribute("height","18"),t.setAttribute("border","0"),t.style.marginBottom="5px",g.appendChild(t),g.setAttribute("title",mxResources.get("twitter")+" ("+b.formatFileSize(7168)+
+" max)"),g.style.verticalAlign="bottom",g.style.paddingTop="4px",g.style.minWidth="46px",g.className="geBtn",p.appendChild(g))}!b.isOffline()&&5E5>e.length&&(g=mxUtils.button("",function(){try{var k="mailto:?subject="+encodeURIComponent(E||b.defaultFilename)+"&body="+encodeURIComponent(B.value);b.openLink(k)}catch(m){b.handleError({message:m.message||mxResources.get("drawingTooLarge")})}}),t=document.createElement("img"),t.className="geAdaptiveAsset",t.setAttribute("src",Editor.mailImage),t.setAttribute("width",
+"18"),t.setAttribute("height","18"),t.setAttribute("border","0"),t.style.marginBottom="5px",g.appendChild(t),g.style.verticalAlign="bottom",g.style.paddingTop="4px",g.style.minWidth="46px",g.className="geBtn",p.appendChild(g));t=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});p.appendChild(t);g=mxUtils.button(mxResources.get("copy"),function(){B.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?B.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");
+b.alert(mxResources.get("copiedToClipboard"))});5E5>e.length?mxClient.IS_SF||null!=document.documentMode?t.className="geBtn gePrimaryBtn":(p.appendChild(g),g.className="geBtn gePrimaryBtn",t.className="geBtn"):null!=d&&(p.appendChild(d),t.className="geBtn",d.className="geBtn gePrimaryBtn");c.appendChild(p);this.container=c};EmbedDialog.showPreviewOption=!0;
+var GoogleSitesDialog=function(b,e){function f(){var U=null!=R&&null!=R.getTitle()?R.getTitle():this.defaultFilename;if(C.checked&&""!=g.value){var O="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(g.value));null!=U&&(O+="&title="+encodeURIComponent(U));0<P.length&&(O+="&s="+P);""!=k.value&&"0"!=k.value&&(O+="&border="+k.value);""!=d.value&&(O+="&height="+d.value);O+="&pan="+(m.checked?"1":"0");O+="&zoom="+(u.checked?"1":"0");O+="&fit="+(F.checked?"1":"0");
+O+="&resize="+(I.checked?"1":"0");O+="&x0="+Number(B.value);O+="&y0="+E;l.mathEnabled&&(O+="&math=1");A.checked?O+="&edit=_blank":x.checked&&(O+="&edit="+encodeURIComponent(mxUtils.htmlEntities(window.location.href)));H.value=O}else R.constructor==DriveFile||R.constructor==DropboxFile?(O="https://www.draw.io/gadget.xml?embed=0&diagram=",""!=g.value?O+=encodeURIComponent(mxUtils.htmlEntities(g.value))+"&type=3":(O+=R.getHash().substring(1),O=R.constructor==DropboxFile?O+"&type=2":O+"&type=1"),null!=
+U&&(O+="&title="+encodeURIComponent(U)),""!=d.value&&(U=parseInt(d.value)+parseInt(B.value),O+="&height="+U),H.value=O):H.value=""}var c=document.createElement("div"),l=b.editor.graph,p=l.getGraphBounds(),v=l.view.scale,t=Math.floor(p.x/v-l.view.translate.x),E=Math.floor(p.y/v-l.view.translate.y);mxUtils.write(c,mxResources.get("googleGadget")+":");mxUtils.br(c);var H=document.createElement("input");H.setAttribute("type","text");H.style.marginBottom="8px";H.style.marginTop="2px";H.style.width="410px";
+c.appendChild(H);mxUtils.br(c);this.init=function(){H.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?H.select():document.execCommand("selectAll",!1,null)};mxUtils.write(c,mxResources.get("top")+":");var B=document.createElement("input");B.setAttribute("type","text");B.setAttribute("size","4");B.style.marginRight="16px";B.style.marginLeft="4px";B.value=t;c.appendChild(B);mxUtils.write(c,mxResources.get("height")+":");var d=document.createElement("input");d.setAttribute("type","text");
+d.setAttribute("size","4");d.style.marginLeft="4px";d.value=Math.ceil(p.height/v);c.appendChild(d);mxUtils.br(c);p=document.createElement("hr");p.setAttribute("size","1");p.style.marginBottom="16px";p.style.marginTop="16px";c.appendChild(p);mxUtils.write(c,mxResources.get("publicDiagramUrl")+":");mxUtils.br(c);var g=document.createElement("input");g.setAttribute("type","text");g.setAttribute("size","28");g.style.marginBottom="8px";g.style.marginTop="2px";g.style.width="410px";g.value=e||"";c.appendChild(g);
+mxUtils.br(c);mxUtils.write(c,mxResources.get("borderWidth")+":");var k=document.createElement("input");k.setAttribute("type","text");k.setAttribute("size","3");k.style.marginBottom="8px";k.style.marginLeft="4px";k.value="0";c.appendChild(k);mxUtils.br(c);var m=document.createElement("input");m.setAttribute("type","checkbox");m.setAttribute("checked","checked");m.defaultChecked=!0;m.style.marginLeft="16px";c.appendChild(m);mxUtils.write(c,mxResources.get("pan")+" ");var u=document.createElement("input");
+u.setAttribute("type","checkbox");u.setAttribute("checked","checked");u.defaultChecked=!0;u.style.marginLeft="8px";c.appendChild(u);mxUtils.write(c,mxResources.get("zoom")+" ");var x=document.createElement("input");x.setAttribute("type","checkbox");x.style.marginLeft="8px";x.setAttribute("title",window.location.href);c.appendChild(x);mxUtils.write(c,mxResources.get("edit")+" ");var A=document.createElement("input");A.setAttribute("type","checkbox");A.style.marginLeft="8px";c.appendChild(A);mxUtils.write(c,
mxResources.get("asNew")+" ");mxUtils.br(c);var I=document.createElement("input");I.setAttribute("type","checkbox");I.setAttribute("checked","checked");I.defaultChecked=!0;I.style.marginLeft="16px";c.appendChild(I);mxUtils.write(c,mxResources.get("resize")+" ");var F=document.createElement("input");F.setAttribute("type","checkbox");F.style.marginLeft="8px";c.appendChild(F);mxUtils.write(c,mxResources.get("fit")+" ");var C=document.createElement("input");C.setAttribute("type","checkbox");C.style.marginLeft=
-"8px";c.appendChild(C);mxUtils.write(c,mxResources.get("embed")+" ");var Q=b.getBasenames().join(";"),S=b.getCurrentFile();mxEvent.addListener(m,"change",f);mxEvent.addListener(t,"change",f);mxEvent.addListener(I,"change",f);mxEvent.addListener(F,"change",f);mxEvent.addListener(y,"change",f);mxEvent.addListener(z,"change",f);mxEvent.addListener(C,"change",f);mxEvent.addListener(d,"change",f);mxEvent.addListener(B,"change",f);mxEvent.addListener(k,"change",f);mxEvent.addListener(g,"change",f);f();
-mxEvent.addListener(G,"click",function(){G.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?G.select():document.execCommand("selectAll",!1,null)});e=document.createElement("div");e.style.paddingTop="12px";e.style.textAlign="right";p=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});p.className="geBtn gePrimaryBtn";e.appendChild(p);c.appendChild(e);this.container=c},CreateGraphDialog=function(b,e,f){var c=document.createElement("div");c.style.textAlign="right";this.init=
+"8px";c.appendChild(C);mxUtils.write(c,mxResources.get("embed")+" ");var P=b.getBasenames().join(";"),R=b.getCurrentFile();mxEvent.addListener(m,"change",f);mxEvent.addListener(u,"change",f);mxEvent.addListener(I,"change",f);mxEvent.addListener(F,"change",f);mxEvent.addListener(x,"change",f);mxEvent.addListener(A,"change",f);mxEvent.addListener(C,"change",f);mxEvent.addListener(d,"change",f);mxEvent.addListener(B,"change",f);mxEvent.addListener(k,"change",f);mxEvent.addListener(g,"change",f);f();
+mxEvent.addListener(H,"click",function(){H.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?H.select():document.execCommand("selectAll",!1,null)});e=document.createElement("div");e.style.paddingTop="12px";e.style.textAlign="right";p=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});p.className="geBtn gePrimaryBtn";e.appendChild(p);c.appendChild(e);this.container=c},CreateGraphDialog=function(b,e,f){var c=document.createElement("div");c.style.textAlign="right";this.init=
function(){var l=document.createElement("div");l.style.position="relative";l.style.border="1px solid gray";l.style.boxSizing="border-box";l.style.width="100%";l.style.height="360px";l.style.overflow="hidden";l.style.marginBottom="16px";mxEvent.disableContextMenu(l);c.appendChild(l);var p=new Graph(l);p.setCellsCloneable(!0);p.setPanning(!0);p.setAllowDanglingEdges(!1);p.connectionHandler.select=!1;p.view.setTranslate(20,20);p.border=20;p.panningHandler.useLeftButtonForPanning=!0;mxClient.IS_SVG&&
-null!=p.view.getDrawPane()&&(l=p.view.getDrawPane().ownerSVGElement,null!=l&&(l.style.position="absolute"));var q="curved=1;";p.cellRenderer.installCellOverlayListeners=function(m,t,y){mxCellRenderer.prototype.installCellOverlayListeners.apply(this,arguments);mxEvent.addListener(y.node,mxClient.IS_POINTER?"pointerdown":"mousedown",function(z){t.fireEvent(new mxEventObject("pointerdown","event",z,"state",m))});!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&mxEvent.addListener(y.node,"touchstart",function(z){t.fireEvent(new mxEventObject("pointerdown",
-"event",z,"state",m))})};p.getAllConnectionConstraints=function(){return null};p.connectionHandler.marker.highlight.keepOnTop=!1;p.connectionHandler.createEdgeState=function(m){m=p.createEdge(null,null,null,null,null,q);return new mxCellState(this.graph.view,m,this.graph.getCellStyle(m))};var v=p.getDefaultParent(),D=mxUtils.bind(this,function(m){var t=new mxCellOverlay(this.connectImage,"Add outgoing");t.cursor="hand";t.addListener(mxEvent.CLICK,function(y,z){p.connectionHandler.reset();p.clearSelection();
-var I=p.getCellGeometry(m),F;d(function(){F=p.insertVertex(v,null,"Entry",I.x,I.y,80,30,"rounded=1;");D(F);p.view.refresh(F);p.insertEdge(v,null,"",m,F,q)},function(){p.scrollCellToVisible(F)})});t.addListener("pointerdown",function(y,z){y=z.getProperty("event");z=z.getProperty("state");p.popupMenuHandler.hideMenu();p.stopEditing(!1);var I=mxUtils.convertPoint(p.container,mxEvent.getClientX(y),mxEvent.getClientY(y));p.connectionHandler.start(z,I.x,I.y);p.isMouseDown=!0;p.isMouseTrigger=mxEvent.isMouseEvent(y);
-mxEvent.consume(y)});p.addCellOverlay(m,t)});p.getModel().beginUpdate();try{var G=p.insertVertex(v,null,"Start",0,0,80,30,"ellipse");D(G)}finally{p.getModel().endUpdate()}if("horizontalTree"==f){var B=new mxCompactTreeLayout(p);B.edgeRouting=!1;B.levelDistance=30;B.sortEdges=!0;q="edgeStyle=elbowEdgeStyle;elbow=horizontal;"}else"verticalTree"==f?(B=new mxCompactTreeLayout(p,!1),B.edgeRouting=!1,B.levelDistance=30,B.sortEdges=!0,q="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"radialTree"==f?(B=new mxRadialTreeLayout(p,
-!1),B.edgeRouting=!1,B.levelDistance=80):"verticalFlow"==f?B=new mxHierarchicalLayout(p,mxConstants.DIRECTION_NORTH):"horizontalFlow"==f?B=new mxHierarchicalLayout(p,mxConstants.DIRECTION_WEST):"circle"==f?B=new mxCircleLayout(p):(B=new mxFastOrganicLayout(p,!1),B.forceConstant=80);if(null!=B){var d=function(m,t){p.getModel().beginUpdate();try{null!=m&&m(),B.execute(p.getDefaultParent(),G)}catch(y){throw y;}finally{m=new mxMorphing(p),m.addListener(mxEvent.DONE,mxUtils.bind(this,function(){p.getModel().endUpdate();
-null!=t&&t()})),m.startAnimation()}},g=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(m,t,y,z,I){g.apply(this,arguments);d()};p.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);d()};p.connectionHandler.addListener(mxEvent.CONNECT,function(){d()})}l=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});l.className="geBtn";b.editor.cancelFirst&&c.appendChild(l);var k=mxUtils.button(mxResources.get("insert"),
-function(m){p.clearCellOverlays();var t=p.getModel().getChildren(p.getDefaultParent());m=mxEvent.isAltDown(m)?b.editor.graph.getFreeInsertPoint():b.editor.graph.getCenterInsertPoint(p.getBoundingBoxFromGeometry(t,!0));t=b.editor.graph.importCells(t,m.x,m.y);m=b.editor.graph.view;var y=m.getBounds(t);null!=y&&(y.x-=m.translate.x,y.y-=m.translate.y,b.editor.graph.scrollRectToVisible(y),b.editor.graph.setSelectionCells(t));b.hideDialog()});c.appendChild(k);k.className="geBtn gePrimaryBtn";b.editor.cancelFirst||
+null!=p.view.getDrawPane()&&(l=p.view.getDrawPane().ownerSVGElement,null!=l&&(l.style.position="absolute"));var v="curved=1;";p.cellRenderer.installCellOverlayListeners=function(m,u,x){mxCellRenderer.prototype.installCellOverlayListeners.apply(this,arguments);mxEvent.addListener(x.node,mxClient.IS_POINTER?"pointerdown":"mousedown",function(A){u.fireEvent(new mxEventObject("pointerdown","event",A,"state",m))});!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&mxEvent.addListener(x.node,"touchstart",function(A){u.fireEvent(new mxEventObject("pointerdown",
+"event",A,"state",m))})};p.getAllConnectionConstraints=function(){return null};p.connectionHandler.marker.highlight.keepOnTop=!1;p.connectionHandler.createEdgeState=function(m){m=p.createEdge(null,null,null,null,null,v);return new mxCellState(this.graph.view,m,this.graph.getCellStyle(m))};var t=p.getDefaultParent(),E=mxUtils.bind(this,function(m){var u=new mxCellOverlay(this.connectImage,"Add outgoing");u.cursor="hand";u.addListener(mxEvent.CLICK,function(x,A){p.connectionHandler.reset();p.clearSelection();
+var I=p.getCellGeometry(m),F;d(function(){F=p.insertVertex(t,null,"Entry",I.x,I.y,80,30,"rounded=1;");E(F);p.view.refresh(F);p.insertEdge(t,null,"",m,F,v)},function(){p.scrollCellToVisible(F)})});u.addListener("pointerdown",function(x,A){x=A.getProperty("event");A=A.getProperty("state");p.popupMenuHandler.hideMenu();p.stopEditing(!1);var I=mxUtils.convertPoint(p.container,mxEvent.getClientX(x),mxEvent.getClientY(x));p.connectionHandler.start(A,I.x,I.y);p.isMouseDown=!0;p.isMouseTrigger=mxEvent.isMouseEvent(x);
+mxEvent.consume(x)});p.addCellOverlay(m,u)});p.getModel().beginUpdate();try{var H=p.insertVertex(t,null,"Start",0,0,80,30,"ellipse");E(H)}finally{p.getModel().endUpdate()}if("horizontalTree"==f){var B=new mxCompactTreeLayout(p);B.edgeRouting=!1;B.levelDistance=30;B.sortEdges=!0;v="edgeStyle=elbowEdgeStyle;elbow=horizontal;"}else"verticalTree"==f?(B=new mxCompactTreeLayout(p,!1),B.edgeRouting=!1,B.levelDistance=30,B.sortEdges=!0,v="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"radialTree"==f?(B=new mxRadialTreeLayout(p,
+!1),B.edgeRouting=!1,B.levelDistance=80):"verticalFlow"==f?B=new mxHierarchicalLayout(p,mxConstants.DIRECTION_NORTH):"horizontalFlow"==f?B=new mxHierarchicalLayout(p,mxConstants.DIRECTION_WEST):"circle"==f?B=new mxCircleLayout(p):(B=new mxFastOrganicLayout(p,!1),B.forceConstant=80);if(null!=B){var d=function(m,u){p.getModel().beginUpdate();try{null!=m&&m(),B.execute(p.getDefaultParent(),H)}catch(x){throw x;}finally{m=new mxMorphing(p),m.addListener(mxEvent.DONE,mxUtils.bind(this,function(){p.getModel().endUpdate();
+null!=u&&u()})),m.startAnimation()}},g=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(m,u,x,A,I){g.apply(this,arguments);d()};p.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);d()};p.connectionHandler.addListener(mxEvent.CONNECT,function(){d()})}l=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});l.className="geBtn";b.editor.cancelFirst&&c.appendChild(l);var k=mxUtils.button(mxResources.get("insert"),
+function(m){p.clearCellOverlays();var u=p.getModel().getChildren(p.getDefaultParent());m=mxEvent.isAltDown(m)?b.editor.graph.getFreeInsertPoint():b.editor.graph.getCenterInsertPoint(p.getBoundingBoxFromGeometry(u,!0));u=b.editor.graph.importCells(u,m.x,m.y);m=b.editor.graph.view;var x=m.getBounds(u);null!=x&&(x.x-=m.translate.x,x.y-=m.translate.y,b.editor.graph.scrollRectToVisible(x),b.editor.graph.setSelectionCells(u));b.hideDialog()});c.appendChild(k);k.className="geBtn gePrimaryBtn";b.editor.cancelFirst||
c.appendChild(l);this.graph=p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S1bZFsKHCCQ2Pl8H0chY+C96B6ZUsrCQ1qKtwQVFRURW/QhIXMAzDPAZ6BgOr8tTa8dDxCmiYGApaJbJMxSzV+brE8pdgWkcpY5dbMF1AR9XH8/xu2ilef48bvn92n82ZwHh+8ssqTEXS9p7dHisiiURikd8PbpExNTU1UVNTA3V3Y7lC16n0gpB/NwpNcZjfa7dScC4Qh0kOQCwnlEgi3F/hMVl9fX0zvKrzSk2lfXjRhj0eT/2rvWG4+Pta3oJY7XfC3hInXAv/ldeFLx8shQ+eqQL0UAAz7ylkpej5eNZRVBWL6BU6ef14OYiY1oqyTtmsavr/5koaRucT1pzx+ZpL1+GV5nLutksUgIcmtwTRiuuVZXnU5XId7A2swJkfFsymRWC91hHg1Viw6x23+7vn9sPJ+j20BE1hCXqSWaNSQ8ScbknRZWxub1PGCw/fBV+c3AeijlUbY5bBjEqr9GuYZP4jP41WudGSC6erTRCqdGZm5i1WvXWeDHnbBCZGc2Nj4wBl/hZOwrmBBfgmlID1HmGJutHaF+tKoevp/XCgstDkjo2NtWKLuc6AVN4mNjY+s1XQxoenOoFuDPHGtnRbJj9ej5GvL0dI7+giuRyMk1giazc+DP6vgUDgOJVlOv7R+PJ12QIeL6SyeDz+Kfp8ZrNWjgDTsVjsQ7qXyTjztXJhm9ePxFLfMTg4eG9tbe1RTP9KFFYQfHliYmIS69kCC7jKYmKwxxD5P88tkVkqbPPcIps9t4T/+HjcuJ/s5BFJgf4WYABCtxGuxIZ90gAAAABJRU5ErkJggg==",26,
26);
-var BackgroundImageDialog=function(b,e,f,c,l){function p(){null==x||x==mxConstants.NONE?(u.style.display="none",V.checked=!1):(u.style.backgroundColor=x,u.style.display="",V.checked=!0)}var q=b.editor.graph,v=document.createElement("div");v.style.whiteSpace="nowrap";var D=document.createElement("h2");mxUtils.write(D,mxResources.get("background"));D.style.marginTop="0px";v.appendChild(D);var G=null!=f&&null!=f.originalSrc;D=!1;var B=document.createElement("input");B.style.cssText="margin-right:8px;margin-bottom:8px;";B.setAttribute("value",
-"url");B.setAttribute("type","radio");B.setAttribute("name","geBackgroundImageDialogOption");var d=document.createElement("input");d.style.cssText="margin-right:8px;margin-bottom:8px;";d.setAttribute("value","url");d.setAttribute("type","radio");d.setAttribute("name","geBackgroundImageDialogOption");var g=document.createElement("input");g.setAttribute("type","text");g.style.marginBottom="8px";g.style.width="360px";g.value=G||null==f?"":f.src;var k=document.createElement("select");k.style.width="360px";
-if(null!=b.pages)for(var m=0;m<b.pages.length;m++){var t=document.createElement("option");mxUtils.write(t,b.pages[m].getName()||mxResources.get("pageWithNumber",[m+1]));t.setAttribute("value","data:page/id,"+b.pages[m].getId());b.pages[m]==b.currentPage&&t.setAttribute("disabled","disabled");null!=f&&f.originalSrc==t.getAttribute("value")&&(t.setAttribute("selected","selected"),D=!0);k.appendChild(t)}G||null!=b.pages&&1!=b.pages.length||(B.style.display="none",d.style.display="none",k.style.display=
-"none");var y=document.createElement("option"),z=!1,I=!1,F=function(H,K){z||null!=H&&I||(d.checked?null!=K&&K(y.selected?null:k.value):""==g.value||b.isOffline()?(Q.value="",S.value="",null!=K&&K("")):(g.value=mxUtils.trim(g.value),b.loadImage(g.value,function(N){Q.value=N.width;S.value=N.height;null!=K&&K(g.value)},function(){b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"));Q.value="";S.value="";null!=K&&K(null)})))},C=mxUtils.bind(this,function(H){b.importFiles(H,
-0,0,b.maxBackgroundSize,function(K,N,M,n,A,E){g.value=K;F();g.focus()},function(){},function(K){return"image/"==K.type.substring(0,6)},function(K){for(var N=0;N<K.length;N++)K[N]()},!0,b.maxBackgroundBytes,b.maxBackgroundBytes,!0)});this.init=function(){G?k.focus():g.focus();mxEvent.addListener(k,"focus",function(){B.removeAttribute("checked");d.setAttribute("checked","checked");d.checked=!0});mxEvent.addListener(g,"focus",function(){d.removeAttribute("checked");B.setAttribute("checked","checked");
-B.checked=!0});if(Graph.fileSupport){g.setAttribute("placeholder",mxResources.get("dragImagesHere"));var H=v.parentNode,K=null;mxEvent.addListener(H,"dragleave",function(N){null!=K&&(K.parentNode.removeChild(K),K=null);N.stopPropagation();N.preventDefault()});mxEvent.addListener(H,"dragover",mxUtils.bind(this,function(N){null==K&&(!mxClient.IS_IE||10<document.documentMode)&&(K=b.highlightElement(H));N.stopPropagation();N.preventDefault()}));mxEvent.addListener(H,"drop",mxUtils.bind(this,function(N){null!=
-K&&(K.parentNode.removeChild(K),K=null);if(0<N.dataTransfer.files.length)C(N.dataTransfer.files);else if(0<=mxUtils.indexOf(N.dataTransfer.types,"text/uri-list")){var M=N.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(M)&&(g.value=decodeURIComponent(M),F())}N.stopPropagation();N.preventDefault()}),!1)}};v.appendChild(B);v.appendChild(g);mxUtils.br(v);m=document.createElement("span");m.style.marginLeft="30px";mxUtils.write(m,mxResources.get("width")+":");v.appendChild(m);
-var Q=document.createElement("input");Q.setAttribute("type","text");Q.style.width="60px";Q.style.marginLeft="8px";Q.style.marginRight="16px";Q.value=null==f||G?"":f.width;v.appendChild(Q);mxUtils.write(v,mxResources.get("height")+":");var S=document.createElement("input");S.setAttribute("type","text");S.style.width="60px";S.style.marginLeft="8px";S.style.marginRight="16px";S.value=null==f||G?"":f.height;v.appendChild(S);mxUtils.br(v);mxUtils.br(v);mxEvent.addListener(g,"change",F);ImageDialog.filePicked=
-function(H){H.action==google.picker.Action.PICKED&&null!=H.docs[0].thumbnails&&(H=H.docs[0].thumbnails[H.docs[0].thumbnails.length-1],null!=H&&(g.value=H.url,F()));g.focus()};v.appendChild(d);v.appendChild(k);mxUtils.br(v);mxUtils.br(v);G?(d.setAttribute("checked","checked"),d.checked=!0):(B.setAttribute("checked","checked"),B.checked=!0);!D&&d.checked&&(mxUtils.write(y,mxResources.get("pageNotFound")),y.setAttribute("disabled","disabled"),y.setAttribute("selected","selected"),y.setAttribute("value",
-"pageNotFound"),k.appendChild(y),mxEvent.addListener(k,"change",function(){null==y.parentNode||y.selected||y.parentNode.removeChild(y)}));f=document.createElement("div");f.style.display=l?"inline-flex":"none";f.style.alignItems="center";f.style.cursor="default";f.style.minWidth="40%";f.style.height="20px";var V=document.createElement("input");V.setAttribute("type","checkbox");V.style.margin="0px 10px 0px 4px";V.style.verticalAlign="bottom";V.defaultChecked=c!=mxConstants.NONE&&null!=c;V.checked=V.defaultChecked;
-f.appendChild(V);mxUtils.write(f,mxResources.get("fillColor"));l=f.cloneNode(!1);var P=document.createElement("input");P.setAttribute("type","checkbox");P.style.margin="0px 10px 0px 30px";P.style.verticalAlign="bottom";P.defaultChecked=q.shadowVisible;P.checked=P.defaultChecked;l.appendChild(P);mxUtils.write(l,mxResources.get("shadow"));mxClient.IS_SVG&&!mxClient.IS_SF||P.setAttribute("disabled","disabled");mxEvent.addListener(l,"click",function(H){mxEvent.getSource(H)!=P&&(P.checked=!P.checked)});
-var u=document.createElement("button");u.style.width="36px";u.style.height="18px";u.style.cursor="pointer";u.style.marginLeft="10px";u.style.backgroundPosition="center center";u.style.backgroundRepeat="no-repeat";u.style.verticalAlign="bottom";u.className="geColorBtn";var x=c;p();mxEvent.addListener(f,"click",function(H){mxEvent.getSource(H)!=V&&(V.checked=!V.checked);x=V.checked?"#ffffff":null;p()});mxEvent.addListener(u,"click",function(H){b.pickColor(x||"none",function(K){x=K;p()});mxEvent.consume(H)});
-f.appendChild(u);v.appendChild(f);v.appendChild(l);mxUtils.br(v);c=document.createElement("div");c.style.marginTop="30px";c.style.textAlign="right";q=mxUtils.button(mxResources.get("cancel"),function(){z=!0;b.hideDialog()});q.className="geBtn";b.editor.cancelFirst&&c.appendChild(q);l=mxUtils.button(mxResources.get("reset"),function(){g.value="";Q.value="";S.value="";B.checked=!0;x=mxConstants.NONE;p();z=!1});mxEvent.addGestureListeners(l,function(){z=!0});l.className="geBtn";l.width="100";c.appendChild(l);
-if(Graph.fileSupport){var J=document.createElement("input");J.setAttribute("multiple","multiple");J.setAttribute("type","file");mxEvent.addListener(J,"change",function(H){null!=J.files&&(C(J.files),J.type="",J.type="file",J.value="")});J.style.display="none";v.appendChild(J);l=mxUtils.button(mxResources.get("open"),function(){J.click()});l.className="geBtn";c.appendChild(l)}applyBtn=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();F(null,function(H){e(""!=H&&null!=H?new mxImage(H,
-Q.value,S.value):null,null==H,x,!mxClient.IS_SVG||mxClient.IS_SF?null:P.checked)})});mxEvent.addGestureListeners(applyBtn,function(){I=!0});applyBtn.className="geBtn gePrimaryBtn";c.appendChild(applyBtn);b.editor.cancelFirst||c.appendChild(q);v.appendChild(c);this.container=v},ParseDialog=function(b,e,f){function c(k,m,t){var y=k.split("\n");if("plantUmlPng"==m||"plantUmlSvg"==m||"plantUmlTxt"==m){if(b.spinner.spin(document.body,mxResources.get("inserting"))){var z=function(M,n,A,E,L){p=mxEvent.isAltDown(t)?
-p:I.getCenterInsertPoint(new mxRectangle(0,0,E,L));var O=null;I.getModel().beginUpdate();try{O="txt"==n?b.insertAsPreText(A,p.x,p.y):I.insertVertex(null,null,null,p.x,p.y,E,L,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b.convertDataUri(A)+";"),I.setAttributeForCell(O,"plantUmlData",JSON.stringify({data:M,format:n},null,2))}finally{I.getModel().endUpdate()}null!=O&&(I.setSelectionCell(O),I.scrollCellToVisible(O))},I=b.editor.graph,F="plantUmlTxt"==m?"txt":"plantUmlPng"==
-m?"png":"svg";"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml"==k&&"svg"==F?window.setTimeout(function(){b.spinner.stop();z(k,F,"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjA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4MyI+QW5vdGhlciBhdXRoZW50aWNhdGlvbiBSZXNwb25zZTwvdGV4dD48IS0tTUQ1PVs3ZjNlNGQwYzkwMWVmZGJjNTdlYjQ0MjQ5YTNiODE5N10KQHN0YXJ0dW1sDQpza2lucGFyYW0gc2hhZG93aW5nIGZhbHNlDQpBbGljZSAtPiBCb2I6IEF1dGhlbnRpY2F0aW9uIFJlcXVlc3QNCkJvYiAtIC0+IEFsaWNlOiBBdXRoZW50aWNhdGlvbiBSZXNwb25zZQ0KDQpBbGljZSAtPiBCb2I6IEFub3RoZXIgYXV0aGVudGljYXRpb24gUmVxdWVzdA0KQWxpY2UgPC0gLSBCb2I6IEFub3RoZXIgYXV0aGVudGljYXRpb24gUmVzcG9uc2UNCkBlbmR1bWwNCgpQbGFudFVNTCB2ZXJzaW9uIDEuMjAyMC4wMihTdW4gTWFyIDAxIDA0OjIyOjA3IENTVCAyMDIwKQooTUlUIHNvdXJjZSBkaXN0cmlidXRpb24pCkphdmEgUnVudGltZTogT3BlbkpESyBSdW50aW1lIEVudmlyb25tZW50CkpWTTogT3BlbkpESyA2NC1CaXQgU2VydmVyIFZNCkphdmEgVmVyc2lvbjogMTIrMzMKT3BlcmF0aW5nIFN5c3RlbTogTWFjIE9TIFgKRGVmYXVsdCBFbmNvZGluZzogVVRGLTgKTGFuZ3VhZ2U6IGVuCkNvdW50cnk6IFVTCi0tPjwvZz48L3N2Zz4=",
-295,212)},200):b.generatePlantUmlImage(k,F,function(M,n,A){b.spinner.stop();z(k,F,M,n,A)},function(M){b.handleError(M)})}}else if("mermaid"==m||"mermaid2drawio"==m){if(b.spinner.spin(document.body,mxResources.get("inserting"))){for(var C=0;C<y.length&&(0==y[C].trim().length||"%%"==y[C].substring(0,2));)C++;if("---"==y[C].trim()){do C++;while(C<y.length&&"---"!=y[C].trim());C++}C=y[C].trim().toLowerCase();y=C.indexOf(" ");C=C.substring(0,0<y?y:C.length);var Q="undefined"!==typeof mxMermaidToDrawio&&
-"mermaid2drawio"==m&&("graph"==C||"flowchart"==C||"sequencediagram"==C||"classdiagram"==C||"statediagram-v2"==C||"statediagram"==C||"erdiagram"==C||"requirementdiagram"==C||"gitgraph"==C||"mindmap"==C||"journey"==C);I=b.editor.graph;Q&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(M){b.spinner.stop();I.setSelectionCells(b.importXml(M,Math.max(p.x,20),Math.max(p.y,20),!0,null,null,!0));I.scrollCellToVisible(I.getSelectionCell())}));b.generateMermaidImage(k,null,function(M,n,A){if(!Q){p=
-mxEvent.isAltDown(t)?p:I.getCenterInsertPoint(new mxRectangle(0,0,n,A));b.spinner.stop();var E=null;I.getModel().beginUpdate();try{E=I.insertVertex(null,null,null,p.x,p.y,n,A,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+M+";"),I.setAttributeForCell(E,"mermaidData",JSON.stringify({data:k},null,2))}finally{I.getModel().endUpdate()}null!=E&&(I.setSelectionCell(E),I.scrollCellToVisible(E))}},function(M){"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.resetListeners();b.handleError(M)})}}else if("table"==
-m){m=null;var S=[],V=0,P={};for(C=0;C<y.length;C++){var u=mxUtils.trim(y[C]);if("primary key"==u.substring(0,11).toLowerCase()){var x=u.match(/\((.+)\)/);x&&x[1]&&(P[x[1]]=!0);y.splice(C,1)}else 0<u.toLowerCase().indexOf("primary key")&&(P[u.split(" ")[0]]=!0,y[C]=mxUtils.trim(u.replace(/primary key/i,"")))}for(C=0;C<y.length;C++)if(u=mxUtils.trim(y[C]),"create table"==u.substring(0,12).toLowerCase())u=mxUtils.trim(u.substring(12)),"("==u.charAt(u.length-1)&&(u=mxUtils.trim(u.substring(0,u.length-
-1))),m=new mxCell(u,new mxGeometry(V,0,160,30),"shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;"),m.vertex=!0,S.push(m),u=b.editor.graph.getPreferredSizeForCell(J),null!=u&&(m.geometry.width=u.width+10);else if(null!=m&&")"==u.charAt(0))V+=m.geometry.width+40,m=null;else if("("!=u&&null!=m){u=u.substring(0,","==u.charAt(u.length-1)?u.length-1:u.length);x=P[u.split(" ")[0]];var J=new mxCell("",new mxGeometry(0,
-0,160,30),"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;strokeColor=inherit;top=0;left=0;right=0;bottom="+(x?"1":"0")+";");J.vertex=!0;var H=new mxCell(x?"PK":"",new mxGeometry(0,0,30,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;strokeColor=inherit;top=0;left=0;bottom=0;right=0;"+(x?"fontStyle=1;":""));H.vertex=!0;J.insert(H);u=new mxCell(u,new mxGeometry(30,
-0,130,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;align=left;strokeColor=inherit;top=0;left=0;bottom=0;right=0;spacingLeft=6;"+(x?"fontStyle=5;":""));u.vertex=!0;J.insert(u);u=b.editor.graph.getPreferredSizeForCell(u);null!=u&&m.geometry.width<u.width+30&&(m.geometry.width=Math.min(320,Math.max(m.geometry.width,u.width+30)));m.insert(J,x?0:null);m.geometry.height+=30}0<S.length&&(I=b.editor.graph,p=mxEvent.isAltDown(t)?p:I.getCenterInsertPoint(I.getBoundingBoxFromGeometry(S,
-!0)),I.setSelectionCells(I.importCells(S,p.x,p.y)),I.scrollCellToVisible(I.getSelectionCell()))}else if("list"==m){if(0<y.length){I=b.editor.graph;m=null;S=[];for(C=J=0;C<y.length;C++)";"!=y[C].charAt(0)&&(0==y[C].length?m=null:null==m?(m=new mxCell(y[C],new mxGeometry(J,0,160,30),"swimlane;fontStyle=1;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"),m.vertex=!0,S.push(m),u=I.getPreferredSizeForCell(m),
-null!=u&&m.geometry.width<u.width+10&&(m.geometry.width=u.width+10),J+=m.geometry.width+40):"--"==y[C]?(u=new mxCell("",new mxGeometry(0,0,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),u.vertex=!0,m.geometry.height+=u.geometry.height,m.insert(u)):0<y[C].length&&(V=new mxCell(y[C],new mxGeometry(0,0,60,26),"text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
-V.vertex=!0,u=I.getPreferredSizeForCell(V),null!=u&&V.geometry.width<u.width&&(V.geometry.width=u.width),m.geometry.width=Math.max(m.geometry.width,V.geometry.width),m.geometry.height+=V.geometry.height,m.insert(V)));if(0<S.length){p=mxEvent.isAltDown(t)?p:I.getCenterInsertPoint(I.getBoundingBoxFromGeometry(S,!0));I.getModel().beginUpdate();try{S=I.importCells(S,p.x,p.y);u=[];for(C=0;C<S.length;C++)u.push(S[C]),u=u.concat(S[C].children);I.fireEvent(new mxEventObject("cellsInserted","cells",u))}finally{I.getModel().endUpdate()}I.setSelectionCells(S);
-I.scrollCellToVisible(I.getSelectionCell())}}}else{J=function(M){var n=K[M];null==n&&(n=new mxCell(M,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),n.vertex=!0,K[M]=n,S.push(n));return n};var K={};S=[];for(C=0;C<y.length;C++)if(";"!=y[C].charAt(0)){var N=y[C].split("->");2<=N.length&&(x=J(N[0]),H=J(N[N.length-1]),N=new mxCell(2<N.length?N[1]:"",new mxGeometry),N.edge=!0,N.geometry.relative=!0,x.insertEdge(N,!0),H.insertEdge(N,!1),S.push(N))}if(0<S.length){y=document.createElement("div");y.style.visibility=
-"hidden";document.body.appendChild(y);I=new Graph(y);I.getModel().beginUpdate();try{S=I.importCells(S);for(C=0;C<S.length;C++)I.getModel().isVertex(S[C])&&(u=I.getPreferredSizeForCell(S[C]),S[C].geometry.width=Math.max(S[C].geometry.width,u.width),S[C].geometry.height=Math.max(S[C].geometry.height,u.height));C=!0;"horizontalFlow"==m||"verticalFlow"==m?((new mxHierarchicalLayout(I,"horizontalFlow"==m?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH)).execute(I.getDefaultParent(),S),C=!1):"circle"==
-m?(new mxCircleLayout(I)).execute(I.getDefaultParent()):(V=new mxFastOrganicLayout(I),V.disableEdgeStyle=!1,V.forceConstant=180,V.execute(I.getDefaultParent()));C&&(P=new mxParallelEdgeLayout(I),P.spacing=30,P.execute(I.getDefaultParent()))}finally{I.getModel().endUpdate()}I.clearCellOverlays();u=[];b.editor.graph.getModel().beginUpdate();try{S=I.getModel().getChildren(I.getDefaultParent()),p=mxEvent.isAltDown(t)?p:b.editor.graph.getCenterInsertPoint(I.getBoundingBoxFromGeometry(S,!0)),u=b.editor.graph.importCells(S,
-p.x,p.y),b.editor.graph.fireEvent(new mxEventObject("cellsInserted","cells",u))}finally{b.editor.graph.getModel().endUpdate()}b.editor.graph.setSelectionCells(u);b.editor.graph.scrollCellToVisible(b.editor.graph.getSelectionCell());I.destroy();y.parentNode.removeChild(y)}}}function l(){return"list"==v.value?"Person\n-name: String\n-birthDate: Date\n--\n+getName(): String\n+setName(String): void\n+isBirthday(): boolean\n\nAddress\n-street: String\n-city: String\n-state: String":"mermaid"==v.value||
-"mermaid2drawio"==v.value?"graph TD;\n A--\x3eB;\n A--\x3eC;\n B--\x3eD;\n C--\x3eD;":"table"==v.value?"CREATE TABLE Suppliers\n(\nsupplier_id int NOT NULL PRIMARY KEY,\nsupplier_name char(50) NOT NULL,\ncontact_name char(50),\n);\nCREATE TABLE Customers\n(\ncustomer_id int NOT NULL PRIMARY KEY,\ncustomer_name char(50) NOT NULL,\naddress char(50),\ncity char(50),\nstate char(25),\nzip_code char(10)\n);\n":"plantUmlPng"==v.value?"@startuml\nskinparam backgroundcolor transparent\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml":
-"plantUmlSvg"==v.value||"plantUmlTxt"==v.value?"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml":";Example:\na->b\nb->edge label->c\nc->a\n"}var p=b.editor.graph.getFreeInsertPoint();e=document.createElement("div");e.style.textAlign="right";var q=document.createElement("textarea");q.style.boxSizing="border-box";q.style.resize=
-"none";q.style.width="100%";q.style.height="354px";q.style.marginBottom="16px";var v=document.createElement("select");v.className="geBtn";if("formatSql"==f||"mermaid"==f&&"draw.io"!=b.getServiceName()&&"atlassian"!=b.getServiceName())v.style.display="none";var D=document.createElement("option");D.setAttribute("value","list");mxUtils.write(D,mxResources.get("list"));"plantUml"!=f&&"mermaid"!=f&&v.appendChild(D);null!=f&&"fromText"!=f||D.setAttribute("selected","selected");D=document.createElement("option");
-D.setAttribute("value","table");mxUtils.write(D,mxResources.get("formatSql"));"formatSql"==f&&(v.appendChild(D),D.setAttribute("selected","selected"));D=document.createElement("option");D.setAttribute("value","mermaid");mxUtils.write(D,mxResources.get("image"));if("mermaid"==f)if("undefined"!==typeof mxMermaidToDrawio){var G=document.createElement("option");G.setAttribute("value","mermaid2drawio");G.setAttribute("selected","selected");mxUtils.write(G,mxResources.get("diagram"));v.appendChild(G)}else v.style.display=
-"none";v.appendChild(D);D=document.createElement("option");D.setAttribute("value","diagram");mxUtils.write(D,mxResources.get("diagram"));G=document.createElement("option");G.setAttribute("value","circle");mxUtils.write(G,mxResources.get("circle"));var B=document.createElement("option");B.setAttribute("value","horizontalFlow");mxUtils.write(B,mxResources.get("horizontalFlow"));var d=document.createElement("option");d.setAttribute("value","verticalFlow");mxUtils.write(d,mxResources.get("verticalFlow"));
-"plantUml"!=f&&"mermaid"!=f&&(v.appendChild(D),v.appendChild(G),v.appendChild(B),v.appendChild(d));D=document.createElement("option");D.setAttribute("value","plantUmlSvg");mxUtils.write(D,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");"plantUml"==f&&D.setAttribute("selected","selected");G=document.createElement("option");G.setAttribute("value","plantUmlPng");mxUtils.write(G,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+")");B=document.createElement("option");B.setAttribute("value",
-"plantUmlTxt");mxUtils.write(B,mxResources.get("plantUml")+" ("+mxResources.get("text")+")");EditorUi.enablePlantUml&&Graph.fileSupport&&!b.isOffline()&&"plantUml"==f&&(v.appendChild(D),v.appendChild(G),v.appendChild(B));var g=l();q.value=g;e.appendChild(q);this.init=function(){q.focus()};Graph.fileSupport&&(q.addEventListener("dragover",function(k){k.stopPropagation();k.preventDefault()},!1),q.addEventListener("drop",function(k){k.stopPropagation();k.preventDefault();if(0<k.dataTransfer.files.length){k=
-k.dataTransfer.files[0];var m=new FileReader;m.onload=function(t){q.value=t.target.result};m.readAsText(k)}},!1));e.appendChild(v);mxEvent.addListener(v,"change",function(){var k=l();if(0==q.value.length||q.value==g)g=k,q.value=g});b.isOffline()||"mermaid"!=f&&"plantUml"!=f||(D=mxUtils.button(mxResources.get("help"),function(){b.openLink("mermaid"==f?"https://mermaid-js.github.io/mermaid/#/":"https://plantuml.com/")}),D.className="geBtn",e.appendChild(D));D=mxUtils.button(mxResources.get("close"),
-function(){q.value==g?b.hideDialog():b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});D.className="geBtn";b.editor.cancelFirst&&e.appendChild(D);G=mxUtils.button(mxResources.get("insert"),function(k){try{b.hideDialog(),c(q.value,v.value,k)}catch(m){b.handleError(m)}});G.className="geBtn gePrimaryBtn";e.appendChild(G);b.editor.cancelFirst||e.appendChild(D);this.container=e},NewDialog=function(b,e,f,c,l,p,q,v,D,G,B,d,g,k,m,t,y,z){function I(la){null!=la&&(pa=ma=la?135:140);la=!0;
-if(null!=Va)for(;M<Va.length&&(la||0!=mxUtils.mod(M,30));){var sa=Va[M++];sa=x(sa.url,sa.libs,sa.title,sa.tooltip?sa.tooltip:sa.title,sa.select,sa.imgUrl,sa.info,sa.onClick,sa.preview,sa.noImg,sa.clibs,sa.type);la&&sa.click();la=!1}}function F(la,sa,oa,qa,ra,ua){if(null!=la&&mxUtils.isAncestorNode(document.body,qa)){la=mxUtils.parseXml(la);la=Editor.parseDiagramNode(la.documentElement,null,!0);var Ga=new mxCodec(la.ownerDocument),Ja=new mxGraphModel;Ga.decode(la,Ja);b.sidebar.createTooltip(qa,Ja.root.children,
-Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-120,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-120,800),null!=ra?mxResources.get(ra):null,!0,new mxPoint(sa,oa),!0,function(){R=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;null!=ua&&S(qa,null,null,ua,infoObj,clibs)},!0,!1)}}function C(){var la=document.createElement("div");la.style.position="absolute";la.style.overflow="visible";
-la.style.left="8px";la.style.right="8px";la.style.bottom="8px";la.style.top="8px";mxUtils.write(la,mxResources.get("describeYourDiagram")+":");mxUtils.br(la);var sa=document.createElement("input");sa.setAttribute("type","text");sa.setAttribute("placeholder",mxResources.get("processForHiringNewEmployee"));sa.style.width="100%";sa.style.marginTop="6px";sa.style.marginBottom="4px";sa.style.boxSizing="border-box";la.appendChild(sa);la.init=function(){sa.focus()};mxUtils.br(la);var oa=document.createElement("div");
-oa.style.top="86px";oa.style.left="2px";oa.style.right="2px";oa.style.bottom="2px";oa.style.position="absolute";oa.style.border="1px solid #424242";var qa=document.createElement("div");qa.style.boxSizing="border-box";qa.style.position="relative";qa.style.textAlign="center";qa.style.top="50%";mxUtils.write(qa,mxResources.get("blankDiagram"));oa.appendChild(qa);var ra=document.createElement("select");ra.className="geBtn";ra.style.maxWidth="160px";ra.style.marginLeft="0px";qa=document.createElement("option");
-mxUtils.write(qa,mxResources.get("diagramType"));qa.setAttribute("value","");ra.appendChild(qa);for(var ua=0;ua<EditorUi.mermaidDiagramTypes.length;ua++){qa=document.createElement("option");var Ga=EditorUi.mermaidDiagramTypes[ua],Ja=Ga;Ga==urlParams["smart-template-type"]&&qa.setAttribute("selected","selected");"erDiagram"==Ja&&(Ja="entityRelationshipDiagram");Ja=mxResources.get(Ja,null,Ja.charAt(0).toUpperCase()+Ja.substring(1).replace(/[A-Z]/g," $&"));qa.setAttribute("value",Ga);mxUtils.write(qa,
-Ja);ra.appendChild(qa)}var Ka=mxUtils.button(mxResources.get("generate"),function(){var Na=sa.value,Pa=ra.value.replace(/([A-Z])/g," $1").toLowerCase();Na="Write the declaration code for a detailed and complex "+(""!=Pa?Pa:"graph")+' that shows "'+(""!=Na?Na:"something random")+'" using correct MermaidJS syntax and do not provide additional text in your response.';Pa=""!=ra.value?" ("+mxUtils.trim(mxUtils.getTextContent(ra.options[ra.selectedIndex]))+")":"";var Xa="gantt"==ra.value||"pie"==ra.value||
-"timeline"==ra.value||"quadrantchart"==ra.value||"c4context"==ra.value,Ma=sa.value+Pa;"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(Oa){Xa||(da=ba=Oa,Ba="Smart Template: "+Ma)}));b.spinner.spin(document.body,mxResources.get("loading"))&&b.generateOpenAiMermaidDiagram(Na,function(Oa,Ha,$a,Za){b.spinner.stop();oa.innerHTML="";var Ya=document.createElement("img");Ya.setAttribute("title",Ma);Ya.src="data:image/svg+xml;base64,"+Ha.substring(Ha.indexOf(",")+
-1);Ya.style.cursor="pointer";Ya.style.width="100%";Ya.style.height="100%";oa.appendChild(Ya);Oa=b.createMermaidXml(Oa,EditorUi.defaultMermaidConfig,Ha,$a,Za,Ma);var gb="<mxfile><diagram>"+Graph.compress(Oa)+"</diagram></mxfile>";if(Xa||"undefined"===typeof mxMermaidToDrawio)da=ba=Oa;Oa=E.cloneNode(!0);oa.appendChild(Oa);Ha=function(eb){R=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display};$a=function(eb){R||F(gb,mxEvent.getClientX(eb),mxEvent.getClientY(eb),Ya,Ma)};mxEvent.addGestureListeners(Ya,
-Ha,null,$a);mxEvent.addGestureListeners(Oa,Ha,null,$a)},function(Oa){b.spinner.stop();null!=mxMermaidToDrawio.resetListeners&&mxMermaidToDrawio.resetListeners();b.handleError(Oa)})});Ka.setAttribute("disabled","disabled");Ka.className="geBtn gePrimaryBtn";qa=function(){window.setTimeout(function(){""!=sa.value?Ka.removeAttribute("disabled"):Ka.setAttribute("disabled","disabled")},0)};ua=urlParams["smart-template"];null!=ua&&"1"!=ua&&(sa.value=decodeURIComponent(ua),qa(),"1"==urlParams["smart-template-generate"]&&
-window.setTimeout(function(){Ka.click()},0));mxEvent.addListener(sa,"change",qa);mxEvent.addListener(sa,"keydown",qa);mxEvent.addListener(sa,"cut",qa);mxEvent.addListener(sa,"paste",qa);mxEvent.addListener(sa,"keydown",function(Na){13==Na.keyCode&&Ka.click()});qa=document.createElement("div");qa.style.height="40px";qa.style.marginTop="4px";qa.style.marginBottom="4px";qa.style.whiteSpace="nowrap";qa.style.overflowX="auto";qa.style.overflowY="hidden";qa.appendChild(ra);qa.appendChild(Ka);la.appendChild(qa);
-la.appendChild(oa);return la}function Q(){null!=ba&&ba==da&&EditorUi.logEvent({category:"OPENAI-DIAGRAM",action:"templateGenerated",label:Ba});if(aa&&null!=k)f||b.hideDialog(),k(aa,ha,N.value);else if(c)f||b.hideDialog(),c(ba,N.value,ja,ea);else{var la=N.value;if(null!=la&&0<la.length){var sa=function(qa,ra,ua){b.createFile(ua,ba,null!=ea&&0<ea.length?ea:null,qa,function(){b.hideDialog()},null,ra,null,null!=ia&&0<ia.length?ia:null)};if(b.mode==App.MODE_GOOGLE||b.mode==App.MODE_ONEDRIVE){var oa=new SaveDialog(b,
-la,mxUtils.bind(this,function(qa,ra,ua){sa(ra,ua,qa.value)}),null,null,null,null,b.mode);b.showDialog(oa.container,420,150,!0,!1);oa.init()}else b.pickFolder(b.mode,function(qa){sa(b.mode,qa,la)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}}function S(la,sa,oa,qa,ra,ua,Ga){return fa!=la?(null!=fa&&(fa.classList.remove("geTemplateSelected"),fa==Da&&(ya.style.display="none",xa.style.display="",Ea.style.visibility="hidden",Ia.style.visibility=null!=da?"visible":"hidden")),
-la==Da&&(sa=da,null!=sa?(Ia.style.visibility="visible",Ia.style.visibility=null!=da?"visible":"hidden",Ea.style.visibility="visible"):(ya.style.display="",Ea.style.visibility="hidden",Ia.style.visibility="hidden")),A.removeAttribute("disabled"),ba=sa,ea=oa,ia=ua,fa=la,aa=qa,ja=Ga,ha=ra,fa.classList.add("geTemplateSelected"),!0):!1}function V(){ya.style.display="";xa.style.display="none";Ea.style.visibility="hidden";Ia.style.visibility="hidden";Fa.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?
-Fa.select():document.execCommand("selectAll",!1,null)}function P(){xa.style.backgroundImage=wa;xa.style.backgroundSize="contain";ya.style.display="none";xa.style.display="";Ea.style.visibility="visible";Ia.style.visibility="visible"}function u(la){var sa=mxUtils.trim(Fa.value);if(la||""==sa)null!=Ba&&(Fa.value=Ba,P());else{var oa=!1;la='Write a detailed and complex MermaidJS declaration for "'+(""!=sa?sa:"something random")+'" using correct MermaidJS syntax and do not provide additional text in your response.';
-"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(qa){qa!=b.emptyDiagramXml&&(oa=!0,ba=qa)}));xa.style.backgroundImage="url("+Editor.spinImage+")";xa.style.backgroundSize="12px 12px";xa.style.display="";ya.style.display="none";b.generateOpenAiMermaidDiagram(la,function(qa,ra,ua,Ga){fa==Da&&"none"==ya.style.display&&(wa="url(data:image/svg+xml;base64,"+ra.substring(ra.indexOf(",")+1)+")",Da.setAttribute("title",sa),Ia.style.display="",da=ba=qa=oa?ba:b.createMermaidXml(qa,
-EditorUi.defaultMermaidConfig,ra,ua,Ga,sa),Ba=sa,P())},function(qa){fa==Da&&(ya.style.display="",Ea.style.visibility="visible",Ia.style.visibility="hidden",b.handleError(qa))})}}function x(la,sa,oa,qa,ra,ua,Ga,Ja,Ka,Na,Pa,Xa){function Ma(Qa,bb){null==$a?(Za=Qa,Za=/^https?:\/\//.test(Za)?b.editor.isCorsEnabledForUrl(Za)?Za:PROXY_URL+"?url="+encodeURIComponent(Za):TEMPLATE_PATH+"/"+Za,mxUtils.get(Za,mxUtils.bind(this,function(cb){200<=cb.getStatus()&&299>=cb.getStatus()&&($a=cb.getText());bb($a,Za)}))):
-bb($a,Za)}function Oa(Qa,bb){if(null==la||L||b.sidebar.currentElt==Ha)b.sidebar.hideTooltip();else if(b.sidebar.hideTooltip(),null!=O){var cb="<mxfile><diagram>"+Graph.compress('<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" value="" style="shape=image;image='+O.src+';imageAspect=1;" parent="1" vertex="1"><mxGeometry width="'+O.naturalWidth+'" height="'+O.naturalHeight+'" as="geometry" /></mxCell></root></mxGraphModel>')+"</diagram></mxfile>";F(cb,mxEvent.getClientX(Qa),
-mxEvent.getClientY(Qa),oa,la)}else b.sidebar.currentElt=Ha,L=!0,Ma(la,function(ib){if(L&&b.sidebar.currentElt==Ha)try{F(ib,mxEvent.getClientX(Qa),mxEvent.getClientY(Qa),Ha,bb)}catch(jb){b.sidebar.currentElt=null,b.handleError(jb)}L=!1})}var Ha=null;if("generative"!=Xa||null==Da){Ha=document.createElement("div");Ha.className="geTemplate";var $a=null,Za=la;null!=oa?Ha.setAttribute("title",mxResources.get(oa,null,oa)):null!=qa&&0<qa.length&&Ha.setAttribute("title",qa)}else Ha=Da;var Ya=document.createElement("span");
-Ya.className="geAdaptiveAsset";mxUtils.write(Ya,mxResources.get(oa,null,oa));if(null!=ua){Ha.style.display="inline-flex";Ha.style.justifyContent="center";Ha.style.alignItems="center";Ka=document.createElement("img");Ka.setAttribute("src",ua);Ka.setAttribute("alt",qa);Ka.style.maxWidth=pa+"px";Ka.style.maxHeight=ma+"px";O=Ka;var gb=ua.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");Ha.appendChild(Ka);Ka.onerror=function(){this.src!=gb?this.src=gb:(this.src=Editor.errorImage,this.onerror=
-null)};mxEvent.addGestureListeners(Ha,mxUtils.bind(this,function(Qa){S(Ha,null,null,la,Ga,Pa)}),null,null);mxEvent.addListener(Ha,"dblclick",function(Qa){Q();mxEvent.consume(Qa)})}else if(!Na&&null!=la&&0<la.length){var eb=function(Qa){n.spin(na)&&Ma(la,function(bb,cb){n.stop();null!=bb&&(S(Ha,bb,sa,null,null,Pa,cb),Qa&&Q())})};ua=Ka||TEMPLATE_PATH+"/"+la.substring(0,la.length-4)+".png";Ka=xa.cloneNode(!1);Ka.style.backgroundImage="url("+ua+")";Ka.style.display="";Ha.appendChild(Ka);null!=oa&&Ha.appendChild(Ya);
-mxEvent.addGestureListeners(Ha,mxUtils.bind(this,function(Qa){eb()}),null,null);mxEvent.addListener(Ha,"dblclick",function(Qa){eb(!0);mxEvent.consume(Qa)})}else Ha.appendChild(Ya),"generative"==Xa&&null==Da&&(Ha.appendChild(xa),Ha.appendChild(ya),Ha.appendChild(Ia),Ha.appendChild(Ea),Da=Ha),ra&&S(Ha),null!=Ja?(mxEvent.addGestureListeners(Ha,null,null,mxUtils.bind(this,function(Qa){S(Ha,null,null,la,Ga)})),mxEvent.addListener(Ha,"click",Ja)):(mxEvent.addListener(Ha,"click",function(Qa){S(Ha,null,null,
-la,Ga)&&"generative"==Xa&&null==da&&V()}),mxEvent.addListener(Ha,"dblclick",function(Qa){"generative"!=Xa?Q():"none"==ya.style.display&&V();mxEvent.consume(Qa)}));null!=la&&(ua=E.cloneNode(!0),Ha.appendChild(ua),mxEvent.addGestureListeners(ua,mxUtils.bind(this,function(Qa){R=b.sidebar.currentElt==Ha}),null,null),mxEvent.addListener(ua,"click",mxUtils.bind(this,function(Qa){R||Oa(Qa,null!=oa?oa:qa);mxEvent.consume(Qa)})));na.appendChild(Ha);return Ha}function J(){function la(Ma,Oa){Ma=mxResources.get(Ma,
-null,Ma.substring(0,1).toUpperCase()+Ma.substring(1));18<Ma.length&&(Ma=Ma.substring(0,18)+"&hellip;");return Ma+(null!=Oa?" ("+Oa.length+")":"")}function sa(Ma,Oa,Ha){mxEvent.addListener(Oa,"click",function(){Ra!=Oa&&(null!=Ra&&(Ra.style.backgroundColor=""),Ra=Oa,Ra.style.backgroundColor=q,na.scrollTop=0,na.innerText="",M=0,null!=za[Ma].content?(na.appendChild(za[Ma].content),ba=da,Va=null,null!=za[Ma].content.init&&za[Ma].content.init()):(Va=Ha?Sa[Ma][Ha]:za[Ma],U=null,I(!1)))});null!=urlParams["smart-template"]&&
-"smartTemplate"==Ma&&Oa.click()}hb&&(hb=!1,mxEvent.addListener(na,"scroll",function(Ma){na.scrollTop+na.clientHeight>=na.scrollHeight&&(I(),mxEvent.consume(Ma))}));if(0<Ua){var oa=document.createElement("div");oa.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(oa,mxResources.get("custom"));ta.appendChild(oa);for(var qa in Ta){var ra=document.createElement("div");oa=qa;var ua=Ta[qa];18<oa.length&&(oa=oa.substring(0,18)+"&hellip;");ra.style.cssText=
-"display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;";ra.setAttribute("title",oa+" ("+ua.length+")");mxUtils.write(ra,ra.getAttribute("title"));null!=G&&(ra.style.padding=G);ta.appendChild(ra);(function(Ma,Oa){mxEvent.addListener(ra,"click",function(){Ra!=Oa&&(Ra.style.backgroundColor="",Ra=Oa,Ra.style.backgroundColor=q,na.scrollTop=0,na.innerText="",M=0,Va=Ta[Ma],U=null,I(!1))})})(qa,ra)}oa=document.createElement("div");
-oa.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(oa,"draw.io");ta.appendChild(oa)}for(qa in za){oa=ua=null;if(null!=za[qa].content)ra=document.createElement(Ga?"ul":"div"),oa=la(qa),ra.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;transition: all 0.5s;",ra.setAttribute("title",oa),mxUtils.write(ra,oa),ta.appendChild(ra),oa=ra;else{var Ga=
-Sa[qa];oa=ra=document.createElement(Ga?"ul":"div");ua=za[qa];var Ja=la(qa,ua);if(null!=Ga){ua=document.createElement("li");var Ka=document.createElement("div");Ka.className="geTempTreeCaret";Ka.setAttribute("title",Ja);mxUtils.write(Ka,Ja);oa=Ka;ua.appendChild(Ka);Ja=document.createElement("ul");Ja.className="geTempTreeNested";Ja.style.visibility="hidden";for(var Na in Ga){var Pa=document.createElement("li"),Xa=la(Na,Ga[Na]);Pa.setAttribute("title",Xa);mxUtils.write(Pa,Xa);sa(qa,Pa,Na);Ja.appendChild(Pa)}ua.appendChild(Ja);
-ra.className="geTempTree";ra.appendChild(ua);(function(Ma,Oa){mxEvent.addListener(Oa,"click",function(){Ma.style.visibility="visible";Ma.classList.toggle("geTempTreeActive");Ma.classList.toggle("geTempTreeNested")&&setTimeout(function(){Ma.style.visibility="hidden"},550);Oa.classList.toggle("geTempTreeCaret-down")})})(Ja,Ka)}else ra.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;transition: all 0.5s;",
-ra.setAttribute("title",Ja),mxUtils.write(ra,Ja);null!=G&&(ra.style.padding=G);ta.appendChild(ra)}sa(qa,oa);null==Ra&&oa.click()}I(!1)}v=500>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);f=null!=f?f:!0;l=null!=l?l:!1;q=null!=q?q:"light-dark(#ebf2f9, "+Editor.darkColor+")";B=null!=B?B:EditorUi.templateFile;var H=document.createElement("div");H.style.userSelect="none";H.style.height="100%";D=document.createElement("div");D.style.whiteSpace="nowrap";D.style.height=
-"46px";f&&H.appendChild(D);var K=document.createElement("img");K.setAttribute("border","0");K.setAttribute("align","absmiddle");K.style.width="40px";K.style.height="40px";K.style.marginRight="10px";K.style.paddingBottom="4px";K.src=b.mode==App.MODE_GOOGLE?IMAGE_PATH+"/google-drive-logo.svg":b.mode==App.MODE_DROPBOX?IMAGE_PATH+"/dropbox-logo.svg":b.mode==App.MODE_ONEDRIVE?IMAGE_PATH+"/onedrive-logo.svg":b.mode==App.MODE_GITHUB?IMAGE_PATH+"/github-logo.svg":b.mode==App.MODE_GITLAB?IMAGE_PATH+"/gitlab-logo.svg":
-b.mode==App.MODE_TRELLO?IMAGE_PATH+"/trello-logo.svg":b.mode==App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";e||v||!f||D.appendChild(K);f&&mxUtils.write(D,(v?mxResources.get("name"):null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");K=".drawio";b.mode==App.MODE_GOOGLE&&null!=b.drive?K=b.drive.extension:b.mode==App.MODE_DROPBOX&&null!=b.dropbox?K=b.dropbox.extension:b.mode==App.MODE_ONEDRIVE&&
-null!=b.oneDrive?K=b.oneDrive.extension:b.mode==App.MODE_GITHUB&&null!=b.gitHub?K=b.gitHub.extension:b.mode==App.MODE_GITLAB&&null!=b.gitLab?K=b.gitLab.extension:b.mode==App.MODE_TRELLO&&null!=b.trello&&(K=b.trello.extension);var N=document.createElement("input");N.setAttribute("value",b.defaultFilename+K);N.style.marginLeft="10px";N.style.width=e||v?"144px":"244px";this.init=function(){f&&Editor.selectFilename(N);null!=na.parentNode&&null!=na.parentNode.parentNode&&mxEvent.addGestureListeners(na.parentNode.parentNode,
-mxUtils.bind(this,function(la){null!=b.sidebar&&b.sidebar.hideTooltip()}),null,null)};f&&(D.appendChild(N),z?N.style.width=e||v?"350px":"450px":null!=b.editor.diagramFileTypes&&(z=FilenameDialog.createFileTypes(b,N,b.editor.diagramFileTypes),z.style.marginLeft="6px",z.style.width=e||v?"80px":"180px",D.appendChild(z)));z=!1;var M=0,n=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),A=mxUtils.button(t||
-mxResources.get("create"),function(){A.setAttribute("disabled","disabled");Q();A.removeAttribute("disabled")});A.className="geBtn gePrimaryBtn";var E=document.createElement("img");E.setAttribute("src",Editor.magnifyImage);E.setAttribute("title",mxResources.get("preview"));E.className="geButton geRoundButton";var L=!1,O=null,R=!1;if(d||g){var T=[],U=null,W=null,X=null,Y=function(la){A.setAttribute("disabled","disabled");for(var sa=0;sa<T.length;sa++)T[sa].className=sa==la?"geBtn gePrimaryBtn":"geBtn"};
-z=!0;t=document.createElement("div");t.style.whiteSpace="nowrap";t.style.height="30px";H.appendChild(t);v=mxUtils.button(mxResources.get("Templates",null,"Templates"),function(){ta.style.display="";va.style.display="";na.style.left="160px";Y(0);na.scrollTop=0;na.innerText="";M=0;U!=Va&&(Va=U,za=W,Ua=X,ta.innerText="",J(),U=null)});T.push(v);t.appendChild(v);var Z=function(la){ta.style.display="none";va.style.display="none";na.style.left="30px";Y(la?-1:1);null==U&&(U=Va);na.scrollTop=0;na.innerText=
-"";n.spin(na);var sa=function(oa,qa,ra){M=0;n.stop();Va=oa;ra=ra||{};var ua=0,Ga;for(Ga in ra)ua+=ra[Ga].length;if(qa)na.innerText=qa;else if(0==oa.length&&0==ua)na.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(na.innerText="",0<ua){ta.style.display="";na.style.left="160px";ta.innerText="";Ua=0;za={"draw.io":oa};for(Ga in ra)za[Ga]=ra[Ga];J()}else I(!0)};la?g(ca.value,sa):d(sa)};d&&(v=mxUtils.button(mxResources.get("Recent",null,"Recent"),function(){Z()}),t.appendChild(v),
-T.push(v));if(g){v=document.createElement("span");v.style.marginLeft="10px";v.innerText=mxResources.get("search")+":";t.appendChild(v);var ca=document.createElement("input");ca.style.marginRight="10px";ca.style.marginLeft="10px";ca.style.width="220px";mxEvent.addListener(ca,"keypress",function(la){13==la.keyCode&&Z(!0)});t.appendChild(ca);v=mxUtils.button(mxResources.get("search"),function(){Z(!0)});v.className="geBtn";t.appendChild(v)}Y(0)}var ea=null,ia=null,ba=null,fa=null,aa=null,ja=null,ha=null,
-da=null,Ba=null,na=document.createElement("div");na.style.border="1px solid #d3d3d3";na.style.position="absolute";na.style.left="160px";na.style.right="34px";t=(f?72:40)+(z?30:0);na.style.top=t+"px";na.style.bottom="68px";na.style.margin="6px 0 0 -1px";na.style.padding="6px";na.style.overflow="auto";var va=document.createElement("div");va.style.cssText="position:absolute;left:30px;width:128px;top:"+t+"px;height:22px;margin-top: 6px;white-space: nowrap;";var Aa=document.createElement("input");Aa.style.cssText=
-"width:105px;height:16px;border:1px solid #d3d3d3;padding: 3px 20px 3px 3px;font-size: 12px;border-radius:0px;";Aa.setAttribute("placeholder",mxResources.get("search"));Aa.setAttribute("type","text");va.appendChild(Aa);var ka=document.createElement("img");ka.setAttribute("src",Editor.magnifyImage);ka.setAttribute("title",mxResources.get("search"));ka.className="geAdaptiveAsset";ka.style.position="relative";ka.style.cursor="pointer";ka.style.outline="none";ka.style.opacity="0.5";ka.style.height="16px";
-ka.style.left="-20px";ka.style.top="4px";va.appendChild(ka);mxEvent.addListener(ka,"click",function(){ka.getAttribute("src")!=Editor.magnifyImage&&(ka.setAttribute("src",Editor.magnifyImage),ka.setAttribute("title",mxResources.get("search")),Aa.value="",null!=Wa&&(Wa.click(),Wa=null));Aa.focus()});mxEvent.addListener(Aa,"keydown",mxUtils.bind(this,function(la){if(13==la.keyCode){var sa=Aa.value;if(""==sa)null!=Wa&&(Wa.click(),Wa=null);else{if(null==NewDialog.tagsList[B]){var oa={};for(Pa in za)if(null==
-za[Pa].content)for(var qa=za[Pa],ra=0;ra<qa.length;ra++){var ua=qa[ra];if(null!=ua.tags)for(var Ga=ua.tags.toLowerCase().split(";"),Ja=0;Ja<Ga.length;Ja++)null==oa[Ga[Ja]]&&(oa[Ga[Ja]]=[]),oa[Ga[Ja]].push(ua)}NewDialog.tagsList[B]=oa}var Ka=sa.toLowerCase().split(" ");oa=NewDialog.tagsList[B];if(0<Ua&&null==oa.__tagsList__){for(Pa in Ta)for(qa=Ta[Pa],ra=0;ra<qa.length;ra++)for(ua=qa[ra],Ga=ua.title.split(" "),Ga.push(Pa),Ja=0;Ja<Ga.length;Ja++){var Na=Ga[Ja].toLowerCase();null==oa[Na]&&(oa[Na]=[]);
-oa[Na].push(ua)}oa.__tagsList__=!0}var Pa=[];qa={};for(ra=Ga=0;ra<Ka.length;ra++)if(0<Ka[ra].length){Na=oa[Ka[ra]];var Xa={};Pa=[];if(null!=Na)for(Ja=0;Ja<Na.length;Ja++)ua=Na[Ja],0==Ga==(null==qa[ua.url])&&(Xa[ua.url]=!0,Pa.push(ua));qa=Xa;Ga++}na.scrollTop=0;na.innerText="";M=0;oa=document.createElement("div");oa.style.padding="6px";oa.style.whiteSpace="nowrap";oa.style.overflow="hidden";oa.style.textOverflow="ellipsis";ua=mxResources.get(0==Pa.length?"noResultsFor":"resultsFor",[sa]);oa.setAttribute("title",
-ua);mxUtils.write(oa,ua);na.appendChild(oa);null!=Ra&&null==Wa&&(Ra.style.backgroundColor="",Wa=Ra,Ra=oa);Va=Pa;U=null;I(!1)}mxEvent.consume(la)}}));mxEvent.addListener(Aa,"keyup",mxUtils.bind(this,function(la){""==Aa.value?(ka.setAttribute("src",Editor.magnifyImage),ka.setAttribute("title",mxResources.get("search"))):(ka.setAttribute("src",Editor.crossImage),ka.setAttribute("title",mxResources.get("reset")))}));t+=23;var ta=document.createElement("div");ta.style.cssText="position:absolute;left:30px;width:128px;top:"+
-t+"px;bottom:68px;margin-top:6px;overflow:auto;border:1px solid #d3d3d3;";mxEvent.addListener(na,"scroll",function(){null!=b.sidebar&&b.sidebar.hideTooltip()});var pa=140,ma=pa,Da=null,wa="url("+Editor.sparklesImage+")",ya=document.createElement("div");ya.className="geGenerateDiagramForm";ya.style.position="absolute";ya.style.width="100%";ya.style.height="100%";var xa=document.createElement("div");xa.className="geTemplatePreview geAdaptiveAsset";xa.style.backgroundImage=wa;var Fa=document.createElement("textarea");
-Fa.setAttribute("placeholder",mxResources.get("describeYourDiagram"));Fa.className="geGenerateDiagramDescription";var Ca=document.createElement("button");Ca.className="geBtn gePrimaryBtn geGenerateDiagramButton";Ca.setAttribute("disabled","disabled");Ca.setAttribute("title",mxResources.get("ok"));mxUtils.write(Ca,mxResources.get("ok"));var Ia=E.cloneNode(!0);Ia.style.display="none";var La=!1;mxEvent.addGestureListeners(Ia,function(la){La=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display},
-null,function(la){if(!La&&null!=da){var sa="<mxfile><diagram>"+Graph.compress(da)+"</diagram></mxfile>";F(sa,mxEvent.getClientX(la),mxEvent.getClientY(la),Da,Ba)}});var Ea=E.cloneNode(!0);Ea.setAttribute("src",Editor.editImage);Ea.setAttribute("title",mxResources.get("edit"));Ea.style.visibility="hidden";Ea.style.left="0px";t=E.cloneNode(!0);t.setAttribute("src",Editor.helpImage);t.setAttribute("title",mxResources.get("help"));mxEvent.addListener(t,"click",function(la){b.openLink("https://www.drawio.com/blog/write-query-generate-diagram");
-mxEvent.consume(la)});ya.appendChild(Fa);ya.appendChild(Ca);ya.appendChild(t);ya.style.display="none";mxEvent.addListener(Ea,"click",V);mxEvent.addListener(Fa,"input",function(){""!=Fa.value?Ca.removeAttribute("disabled"):Ca.setAttribute("disabled","disabled")});mxEvent.addListener(Ca,"click",function(){u()});mxEvent.addListener(Fa,"keydown",function(la){13!=la.keyCode||mxEvent.isShiftDown(la)?27==la.keyCode&&(u(!0),mxEvent.consume(la)):(u(),mxEvent.consume(la))});var za={},Sa={},Ta={},Ua=0,hb=!0,
-Ra=null,Wa=null;za.basic=[{title:"blankDiagram"}];var Va=za.basic;Editor.enableChatGpt&&b.isExternalDataComms()&&"draw.io"==b.getServiceName()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&za.basic.push({title:"generate",type:"generative"});Editor.enableChatGpt&&b.isExternalDataComms()&&"draw.io"==b.getServiceName()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&(za.smartTemplate={content:C()});if(!e){var fb=function(){mxUtils.get(db,function(la){if(!ab){ab=
-!0;la=la.getXml().documentElement.firstChild;for(var sa={};null!=la;){if("undefined"!==typeof la.getAttribute)if("parsererror"==la.nodeName)null!=window.console&&console.log("Parser error in "+B+": "+la.textContent);else if("clibs"==la.nodeName){for(var oa=la.getAttribute("name"),qa=la.getElementsByTagName("add"),ra=[],ua=0;ua<qa.length;ua++)ra.push(encodeURIComponent(mxUtils.getTextContent(qa[ua])));null!=oa&&0<ra.length&&(sa[oa]=ra.join(";"))}else if(ra=la.getAttribute("url"),null!=ra){qa=la.getAttribute("section");
-oa=la.getAttribute("subsection");if(null==qa&&(ua=ra.indexOf("/"),qa=ra.substring(0,ua),null==oa)){var Ga=ra.indexOf("/",ua+1);-1<Ga&&(oa=ra.substring(ua+1,Ga))}ua=za[qa];null==ua&&(ua=[],za[qa]=ua);ra=la.getAttribute("clibs");null!=sa[ra]&&(ra=sa[ra]);ra={url:la.getAttribute("url"),libs:la.getAttribute("libs"),title:la.getAttribute("title"),tooltip:la.getAttribute("name")||la.getAttribute("url"),preview:la.getAttribute("preview"),clibs:ra,tags:la.getAttribute("tags")};ua.push(ra);null!=oa&&(ua=Sa[qa],
-null==ua&&(ua={},Sa[qa]=ua),qa=ua[oa],null==qa&&(qa=[],ua[oa]=qa),qa.push(ra))}la=la.nextSibling}n.stop();J()}})};H.appendChild(va);H.appendChild(ta);H.appendChild(na);var ab=!1,db=B;/^https?:\/\//.test(db)&&!b.editor.isCorsEnabledForUrl(db)&&(db=PROXY_URL+"?url="+encodeURIComponent(db));n.spin(na);null!=y?y(function(la,sa){Ta=la;X=Ua=sa;fb()},fb):fb();W=za}mxEvent.addListener(N,"keypress",function(la){b.dialog.container.firstChild==H&&13==la.keyCode&&Q()});y=document.createElement("div");y.style.marginTop=
-e?"4px":"16px";y.style.textAlign="right";y.style.position="absolute";y.style.left="40px";y.style.bottom="24px";y.style.right="40px";t=mxUtils.button(mxResources.get("cancel"),function(){null!=p&&p();b.hideDialog(!0)});t.className="geBtn";!b.editor.cancelFirst||l&&null==p||y.appendChild(t);e||"1"==urlParams.embed||l||mxClient.IS_ANDROID||mxClient.IS_IOS||"1"==urlParams.noDevice||(e=mxUtils.button(mxResources.get("fromTemplateUrl"),function(){var la=new FilenameDialog(b,"",mxResources.get("create"),
-function(sa){null!=sa&&0<sa.length&&b.editor.loadUrl(b.editor.getProxiedUrl(sa),function(oa){ba=oa;ea=null;templateRealURl=sa;b.hideDialog();Q()},function(oa){b.handleError(oa)})},mxResources.get("url"),null,null,null,!1);b.showDialog(la.container,300,80,!0,!0);la.init()}),e.className="geBtn",y.appendChild(e));Graph.fileSupport&&m&&(m=mxUtils.button(mxResources.get("import"),function(){if(null==b.newDlgFileInputElt){var la=document.createElement("input");la.setAttribute("multiple","multiple");la.setAttribute("type",
-"file");mxEvent.addListener(la,"change",function(sa){b.openFiles(la.files,!0);la.value=""});la.style.display="none";document.body.appendChild(la);b.newDlgFileInputElt=la}b.newDlgFileInputElt.click()}),m.className="geBtn",y.appendChild(m));y.appendChild(A);b.editor.cancelFirst||null!=c||l&&null==p||y.appendChild(t);H.appendChild(y);this.container=H};NewDialog.tagsList={};
-var SaveDialog=function(b,e,f,c,l,p,q,v){function D(H,K,N,M,n,A){var E=null;if(null==c||0>mxUtils.indexOf(c,H))if(n=null!=n?n:b.getTitleForService(H),0<=mxUtils.indexOf(V,H)||null!=b.getServiceForName(H)){E=document.createElement("option");if("pick"==A)E.innerHTML=mxUtils.htmlEntities(n)+"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(mxResources.get("pickFolder"))+"...",E.setAttribute("value","pickFolder-"+H),E.setAttribute("title",n+" - "+mxResources.get("pickFolder")+"...");else{var L=H+
-(null!=N?"-"+N:""),O=x[L];null!=O&&null!=O.option&&O.option.parentNode.removeChild(O.option);O=null;if(null!=K){"/"==K.charAt(K.length-1)&&(K=K.substring(0,K.length-1));"/"==K.charAt(0)&&(K=K.substring(1));O=K;if(H!=App.MODE_GITHUB&&H==App.MODE_GITLAB){var R=O.lastIndexOf("/");0<=R&&(O=O.substring(R+1))}40<O.length&&(O=O.substring(0,20)+"..."+O.substring(O.length-20))}E.innerHTML=mxUtils.htmlEntities(n)+(null!=O?"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(O):"");E.setAttribute("title",n+
-(null!=K?" ("+K+")":"")+(null!=N&&decodeURIComponent(N)!=K?" ["+N+"]":""));E.setAttribute("value",L);x[L]={option:E,mode:H,path:K,id:N};SaveDialog.lastValue==L&&null==v?M=!0:null==M&&("root"==A?M=null==v&&b.mode==H||null!=H&&H==v:"pickFolder-"==Q.value.substring(0,11)&&(M=!0));M&&E.setAttribute("selected","selected")}Q.appendChild(E)}return E}function G(H){b.pickFolder(H,function(K){var N=null;H==App.MODE_GOOGLE&&null!=K.docs&&0<K.docs.length?N={mode:H,path:K.docs[0].name,id:K.docs[0].id}:H==App.MODE_ONEDRIVE&&
-null!=K.value&&0<K.value.length?N={mode:H,path:K.value[0].name,id:OneDriveFile.prototype.getIdOf(K.value[0])}:(H==App.MODE_GITHUB||H==App.MODE_GITLAB)&&null!=K&&0<K.length&&(N={mode:H,path:decodeURIComponent(K),id:K});null!=N&&(S.style.display="",b.addRecent(N,"Folders",5),K=D(N.mode,N.path,N.id,!0),Q.innerHTML="",x={},B(),N=Q.selectedIndex,Q.value=K.value,0>Q.selectedIndex&&(Q.selectedIndex=N))},!0,!0,!0,!0)}function B(){var H=b.getRecent("Folders"),K=0;if(null!=H&&0<H.length){for(var N=0;N<H.length;N++)null!=
-D(H[N].mode,H[N].path,H[N].id)&&K++;0<K&&Q.appendChild(P.cloneNode(!0))}D(App.MODE_GOOGLE,mxResources.get("myDrive"),"root",null,null,"root");D(App.MODE_GOOGLE,null,null,null,null,"pick");null!=b.oneDrive&&(D(App.MODE_ONEDRIVE,mxResources.get("myFiles"),OneDriveFile.prototype.getIdOf(b.oneDrive.rootId),null,null,"root"),D(App.MODE_ONEDRIVE,null,null,null,null,"pick"));null!=b.dropbox&&D(App.MODE_DROPBOX,"Apps"+b.dropbox.appPath);D(App.MODE_GITHUB,null,null,null,null,"pick");D(App.MODE_GITLAB,null,
-null,null,null,"pick");D(App.MODE_TRELLO);H=!Editor.useLocalStorage||"device"==urlParams.storage||null!=b.getCurrentFile()&&"1"!=urlParams.noDevice;EditorUi.nativeFileSupport&&H&&D(App.MODE_DEVICE,null,null,b.mode==App.MODE_DEVICE||null!=c&&0<=mxUtils.indexOf(c,App.MODE_BROWSER)?!0:null);isLocalStorage&&"0"!=urlParams.browser&&D(App.MODE_BROWSER);H&&D("download");Editor.popupsAllowed&&D("_blank",null,null,null,mxResources.get("openInNewWindow"));0<K&&(Q.appendChild(P.cloneNode(!0)),K=Q.value,Q.appendChild(S),
-Q.value=K);if("pickFolder-"==Q.value.substring(0,11)||"reset"==Q.value)K=document.createElement("option"),K.setAttribute("value",""),K.setAttribute("selected","selected"),mxUtils.write(K,mxResources.get("pickFolder")+"..."),Q.insertBefore(K,Q.firstChild);u=Q.value}function d(){if("reset"==Q.value)b.resetRecent("Folders"),Q.innerHTML="",Q.value="",pickFolderOption=null,x={},B();else if("pickFolder-"==Q.value.substring(0,11)){var H=Q.value.substring(11);Q.value=u;G(H)}else if(null!=C&&null!=x[Q.value]&&
-null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[C.value].extension){H=b.getExtensionForService(x[Q.value].mode);var K=F.value;null!=H&&0>e.indexOf(".")&&0>K.indexOf(".")&&(F.value=K+H)}J.innerHTML="";mxUtils.write(J,mxResources.get("download"==Q.value||"_blank"==Q.value?"ok":"save"));""==Q.value?J.setAttribute("disabled","disabled"):J.removeAttribute("disabled")}var g=document.createElement("div");g.style.display="flex";g.style.flexWrap="wrap";g.style.whiteSpace="nowrap";var k=
-document.createElement("div");k.style.display="grid";k.style.gap="5px 8px";k.style.gridAutoRows="auto auto 44px";k.style.gridAutoColumns="0fr minmax(0,1fr)";k.style.width="100%";var m=null,t=null;if(null!=l&&null!=p&&"image/"==p.substring(0,6)&&("image/svg"!=p.substring(0,9)||mxClient.IS_SVG)){k.style.display="inline-grid";k.style.flexBasis="75%";m=document.createElement("div");m.style.display="inline-block";m.style.height="auto";m.style.maxWidth="25%";m.style.margin="auto";var y=document.createElement("img"),
-z=q?l:btoa(unescape(encodeURIComponent(l)));y.setAttribute("src","data:"+p+";base64,"+z);y.style.boxSizing="border-box";y.style.maxHeight="50px";y.style.maxWidth="100%";y.style.paddingLeft="10px";m.appendChild(y);mxClient.IS_FF||"image/png"!=p||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||(t=mxUtils.button(mxResources.get("copy"),function(){var H=b.base64ToBlob(z,"image/png");H=new ClipboardItem({"image/png":H,"text/html":new Blob(['<img src="data:'+p+";base64,"+z+'">'],{type:"text/html"})});
-navigator.clipboard.write([H]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(K){b.handleError(K)}))},null,"geBtn"));Editor.popupsAllowed&&(null==c||0>mxUtils.indexOf(c,"_blank"))?(m.setAttribute("title",mxResources.get("openInNewWindow")),m.style.cursor="pointer",mxEvent.addGestureListeners(m,null,null,function(H){mxEvent.isPopupTrigger(H)||b.openInNewWindow(l,p,q)})):m.setAttribute("title",mxResources.get("preview"))}y=document.createElement("div");
-y.style.display="flex";y.style.padding="1px";y.style.alignItems="center";y.style.justifyContent="flex-end";y.style.gridColumn="1";y.style.whiteSpace="nowrap";var I=document.createElement("div");I.style.display="grid";I.style.padding="1px";I.style.alignItems="center";I.style.gridColumn="2";I.style.gridAutoColumns="minmax(0,1fr) auto";I.style.gap="6px";mxUtils.write(y,mxResources.get("saveAs")+":");var F=document.createElement("input");F.setAttribute("type","text");F.setAttribute("value",e);F.style.boxSizing=
-"border-box";F.style.width="100%";I.appendChild(F);k.appendChild(y);k.appendChild(I);var C=null;null!=b.editor.diagramFileTypes&&null==p&&(y=y.cloneNode(!1),I=I.cloneNode(!1),mxUtils.write(y,mxResources.get("type")+":"),C=FilenameDialog.createFileTypes(b,F,b.editor.diagramFileTypes),C.style.boxSizing="border-box",C.style.width="100%",I.appendChild(C),k.appendChild(y),k.appendChild(I));y=y.cloneNode(!1);I=I.cloneNode(!1);mxUtils.write(y,mxResources.get("where")+":");var Q=document.createElement("select");
-Q.style.textOverflow="ellipsis";Q.style.gridColumn="1";var S=document.createElement("option");mxUtils.write(S,mxResources.get("reset"));S.setAttribute("value","reset");var V=["browser","device","download","_blank"],P=document.createElement("option");P.setAttribute("disabled","disabled");P.innerHTML="-----------------";var u=null,x={},J=mxUtils.button(mxResources.get("save"),function(){SaveDialog.lastValue=Q.value;var H=x[SaveDialog.lastValue];null!=H&&f(F,H.mode,H.id)},null,"geBtn gePrimaryBtn");
-mxEvent.addListener(F,"keypress",function(H){13==H.keyCode&&J.click()});mxEvent.addListener(Q,"change",d);B();d();I.appendChild(Q);null!=SaveDialog.lastValue&&null!=x[SaveDialog.lastValue]&&(Q.value=SaveDialog.lastValue);k.appendChild(y);k.appendChild(I);g.appendChild(k);null!=m&&g.appendChild(m);k=document.createElement("div");k.style.flexBasis="100%";k.style.textAlign="right";k.style.marginTop=null!=p?"16px":"8px";b.isOffline()&&!mxClient.IS_CHROMEAPP||k.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/save-file-formats"));
-m=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()},null,"geBtn");b.editor.cancelFirst&&k.appendChild(m);null!=t&&k.appendChild(t);k.appendChild(J);b.editor.cancelFirst||k.appendChild(m);g.appendChild(k);this.init=function(){Editor.selectFilename(F)};this.container=g},CreateDialog=function(b,e,f,c,l,p,q,v,D,G,B,d,g,k,m,t,y){function z(u,x,J,H){function K(){mxEvent.addListener(N,"click",function(){var L=J;if(q){var O=C.value,R=O.lastIndexOf(".");if(0>e.lastIndexOf(".")&&0>R){L=null!=
-L?L:P.value;var T="";L==App.MODE_GOOGLE?T=b.drive.extension:L==App.MODE_GITHUB?T=b.gitHub.extension:L==App.MODE_GITLAB?T=b.gitLab.extension:L==App.MODE_TRELLO?T=b.trello.extension:L==App.MODE_DROPBOX?T=b.dropbox.extension:L==App.MODE_ONEDRIVE?T=b.oneDrive.extension:L==App.MODE_DEVICE&&(T=".drawio");0<=R&&(O=O.substring(0,R));C.value=O+T}}I(J)})}var N=document.createElement("a");N.style.overflow="hidden";var M=document.createElement("img");M.src=u;M.setAttribute("border","0");M.setAttribute("align",
-"absmiddle");M.style.width="60px";M.style.height="60px";M.style.paddingBottom="6px";N.style.display="inline-block";N.className="geBaseButton";N.style.position="relative";N.style.margin="4px";N.style.padding="8px 8px 10px 8px";N.style.whiteSpace="nowrap";N.appendChild(M);N.style.color="gray";N.style.fontSize="11px";var n=document.createElement("div");N.appendChild(n);mxUtils.write(n,x);if(null!=H&&null==b[H]){M.style.visibility="hidden";mxUtils.setOpacity(n,10);var A=new Spinner({lines:12,length:12,
-width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});A.spin(N);var E=window.setTimeout(function(){null==b[H]&&(A.stop(),N.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[H]&&(window.clearTimeout(E),mxUtils.setOpacity(n,100),M.style.visibility="",A.stop(),K())}))}else K();S.appendChild(N);++V==d&&(mxUtils.br(S),V=0)}function I(u){var x=C.value;if(null==u||null!=x&&0<x.length)y&&b.hideDialog(),
-f(x,u,C)}B="1"==urlParams.noDevice?!1:B;q=null!=q?q:!0;v=null!=v?v:!0;d=null!=d?d:4;y=null!=y?y:!0;p=document.createElement("div");p.style.whiteSpace="nowrap";null==c&&b.addLanguageMenu(p);var F=document.createElement("h2");mxUtils.write(F,l||mxResources.get("create"));F.style.marginTop="0px";F.style.marginBottom="24px";p.appendChild(F);l=document.createElement("span");mxUtils.write(l,mxResources.get("filename")+":");l.style.maxWidth="106px";l.style.overflow="hidden";l.style.textOverflow="ellipsis";
-l.style.display="inline-block";p.appendChild(l);var C=document.createElement("input");C.setAttribute("value",e);C.style.width="180px";C.style.marginLeft="10px";C.style.marginBottom="20px";C.style.maxWidth="70%";this.init=function(){Editor.selectFilename(C)};p.appendChild(C);null!=t&&null!=b.editor.diagramFileTypes&&(t=FilenameDialog.createFileTypes(b,C,b.editor.diagramFileTypes),t.style.marginLeft="6px",t.style.width="90px",p.appendChild(t));t=null;if("1"!=urlParams.noDevice&&null!=g&&null!=k&&"image/"==
-k.substring(0,6)&&("image/svg"!=k.substring(0,9)||mxClient.IS_SVG)){C.style.width="160px";l=document.createElement("img");var Q=m?g:btoa(unescape(encodeURIComponent(g)));l.setAttribute("src","data:"+k+";base64,"+Q);l.style.position="absolute";l.style.top="70px";l.style.right="100px";l.style.maxWidth="120px";l.style.maxHeight="80px";mxUtils.setPrefixedStyle(l.style,"transform","translate(50%,-50%)");p.appendChild(l);mxClient.IS_FF||"image/png"!=k||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||
-(t=mxUtils.button(mxResources.get("copy"),function(u){u=b.base64ToBlob(Q,"image/png");u=new ClipboardItem({"image/png":u,"text/html":new Blob(['<img src="data:'+k+";base64,"+Q+'">'],{type:"text/html"})});navigator.clipboard.write([u]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(x){b.handleError(x)}))}),t.style.marginTop="6px",t.className="geBtn");D&&Editor.popupsAllowed&&(l.style.cursor="pointer",mxEvent.addGestureListeners(l,
-null,null,function(u){mxEvent.isPopupTrigger(u)||I("_blank")}))}mxUtils.br(p);var S=document.createElement("div");S.style.textAlign="center";var V=0;S.style.marginTop="6px";p.appendChild(S);var P=document.createElement("select");P.style.marginLeft="10px";b.isOfflineApp()||b.isOffline()||("function"===typeof window.DriveClient&&(g=document.createElement("option"),g.setAttribute("value",App.MODE_GOOGLE),mxUtils.write(g,mxResources.get("googleDrive")),P.appendChild(g),z(IMAGE_PATH+"/google-drive-logo.svg",
-mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive")),"function"===typeof window.OneDriveClient&&(g=document.createElement("option"),g.setAttribute("value",App.MODE_ONEDRIVE),mxUtils.write(g,mxResources.get("oneDrive")),P.appendChild(g),b.mode==App.MODE_ONEDRIVE&&g.setAttribute("selected","selected"),z(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive")),"function"===typeof window.DropboxClient&&(g=document.createElement("option"),g.setAttribute("value",App.MODE_DROPBOX),
-mxUtils.write(g,mxResources.get("dropbox")),P.appendChild(g),b.mode==App.MODE_DROPBOX&&g.setAttribute("selected","selected"),z(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),App.MODE_DROPBOX,"dropbox")),null!=b.gitHub&&(g=document.createElement("option"),g.setAttribute("value",App.MODE_GITHUB),mxUtils.write(g,mxResources.get("github")),P.appendChild(g),z(IMAGE_PATH+"/github-logo.svg",mxResources.get("github"),App.MODE_GITHUB,"gitHub")),null!=b.gitLab&&(g=document.createElement("option"),
-g.setAttribute("value",App.MODE_GITLAB),mxUtils.write(g,mxResources.get("gitlab")),P.appendChild(g),z(IMAGE_PATH+"/gitlab-logo.svg",mxResources.get("gitlab"),App.MODE_GITLAB,"gitLab")),"function"===typeof window.TrelloClient&&(g=document.createElement("option"),g.setAttribute("value",App.MODE_TRELLO),mxUtils.write(g,mxResources.get("trello")),P.appendChild(g),z(IMAGE_PATH+"/trello-logo.svg",mxResources.get("trello"),App.MODE_TRELLO,"trello")));if(!Editor.useLocalStorage||"device"==urlParams.storage||
-null!=b.getCurrentFile()&&"1"!=urlParams.noDevice)g=document.createElement("option"),g.setAttribute("value",App.MODE_DEVICE),mxUtils.write(g,mxResources.get("device")),P.appendChild(g),b.mode!=App.MODE_DEVICE&&v||g.setAttribute("selected","selected"),B&&z(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);v&&isLocalStorage&&"0"!=urlParams.browser&&(v=document.createElement("option"),v.setAttribute("value",App.MODE_BROWSER),mxUtils.write(v,mxResources.get("browser")),P.appendChild(v),
-b.mode==App.MODE_BROWSER&&v.setAttribute("selected","selected"),z(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER));v=document.createElement("div");v.style.marginTop="26px";v.style.textAlign="center";null!=G&&(B=mxUtils.button(mxResources.get("help"),function(){b.openLink(G)}),B.className="geBtn",v.appendChild(B));B=mxUtils.button(mxResources.get(null!=c?"close":"cancel"),function(){null!=c?c():(b.fileLoaded(null),b.hideDialog(),window.close(),window.location.href=b.getUrl())});
-B.className="geBtn";b.editor.cancelFirst&&null==c&&v.appendChild(B);null==c&&(g=mxUtils.button(mxResources.get("decideLater"),function(){I(null)}),g.className="geBtn",v.appendChild(g));D&&Editor.popupsAllowed&&(D=mxUtils.button(mxResources.get("openInNewWindow"),function(){I("_blank")}),D.className="geBtn",v.appendChild(D));CreateDialog.showDownloadButton&&(D=mxUtils.button(mxResources.get("download"),function(){I("download")}),D.className="geBtn",v.appendChild(D),null!=t&&(D.style.marginTop="6px",
-v.style.marginTop="6px"));null!=t&&(mxUtils.br(v),v.appendChild(t));b.editor.cancelFirst&&null==c||v.appendChild(B);mxEvent.addListener(C,"keypress",function(u){13==u.keyCode?I(App.MODE_DEVICE):27==u.keyCode&&(b.fileLoaded(null),b.hideDialog(),window.close())});p.appendChild(v);this.container=p};CreateDialog.showDownloadButton="1"!=urlParams.noDevice;
-var PopupDialog=function(b,e,f,c,l){l=null!=l?l:!0;var p=document.createElement("div");p.style.textAlign="center";p.style.height="100%";mxUtils.write(p,mxResources.get("fileOpenLocation"));mxUtils.br(p);mxUtils.br(p);var q=mxUtils.button(mxResources.get("openInThisWindow"),function(){l&&b.hideDialog();null!=c&&c()});q.className="geBtn";q.style.marginBottom="8px";q.style.width="280px";p.appendChild(q);mxUtils.br(p);var v=mxUtils.button(mxResources.get("openInNewWindow"),function(){l&&b.hideDialog();
-null!=f&&f();b.openLink(e,null,!0)});v.className="geBtn gePrimaryBtn";v.style.width=q.style.width;p.appendChild(v);mxUtils.br(p);mxUtils.br(p);mxUtils.write(p,mxResources.get("allowPopups"));this.container=p},ImageDialog=function(b,e,f,c,l,p,q,v){function D(){0<d.value.length?I.removeAttribute("disabled"):I.setAttribute("disabled","disabled");"data:"!=d.value.substring(0,5)?F.removeAttribute("disabled"):F.setAttribute("disabled","disabled")}p=null!=p?p:!0;var G=b.editor.graph,B=document.createElement("div");
+var BackgroundImageDialog=function(b,e,f,c,l){function p(){null==q||q==mxConstants.NONE?(V.style.display="none",U.checked=!1):(V.style.backgroundColor=q,V.style.display="",U.checked=!0)}var v=b.editor.graph,t=document.createElement("div");t.style.whiteSpace="nowrap";var E=document.createElement("h2");mxUtils.write(E,mxResources.get("background"));E.style.marginTop="0px";t.appendChild(E);var H=null!=f&&null!=f.originalSrc;E=!1;var B=document.createElement("input");B.style.cssText="margin-right:8px;margin-bottom:8px;";B.setAttribute("value",
+"url");B.setAttribute("type","radio");B.setAttribute("name","geBackgroundImageDialogOption");var d=document.createElement("input");d.style.cssText="margin-right:8px;margin-bottom:8px;";d.setAttribute("value","url");d.setAttribute("type","radio");d.setAttribute("name","geBackgroundImageDialogOption");var g=document.createElement("input");g.setAttribute("type","text");g.style.marginBottom="8px";g.style.width="360px";g.value=H||null==f?"":f.src;var k=document.createElement("select");k.style.width="360px";
+if(null!=b.pages)for(var m=0;m<b.pages.length;m++){var u=document.createElement("option");mxUtils.write(u,b.pages[m].getName()||mxResources.get("pageWithNumber",[m+1]));u.setAttribute("value","data:page/id,"+b.pages[m].getId());b.pages[m]==b.currentPage&&u.setAttribute("disabled","disabled");null!=f&&f.originalSrc==u.getAttribute("value")&&(u.setAttribute("selected","selected"),E=!0);k.appendChild(u)}H||null!=b.pages&&1!=b.pages.length||(B.style.display="none",d.style.display="none",k.style.display=
+"none");var x=document.createElement("option"),A=!1,I=!1,F=function(D,J){A||null!=D&&I||(d.checked?null!=J&&J(x.selected?null:k.value):""==g.value||b.isOffline()?(P.value="",R.value="",null!=J&&J("")):(g.value=mxUtils.trim(g.value),b.loadImage(g.value,function(L){P.value=L.width;R.value=L.height;null!=J&&J(g.value)},function(){b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"));P.value="";R.value="";null!=J&&J(null)})))},C=mxUtils.bind(this,function(D){b.importFiles(D,
+0,0,b.maxBackgroundSize,function(J,L,K,n,z,G){g.value=J;F();g.focus()},function(){},function(J){return"image/"==J.type.substring(0,6)},function(J){for(var L=0;L<J.length;L++)J[L]()},!0,b.maxBackgroundBytes,b.maxBackgroundBytes,!0)});this.init=function(){H?k.focus():g.focus();mxEvent.addListener(k,"focus",function(){B.removeAttribute("checked");d.setAttribute("checked","checked");d.checked=!0});mxEvent.addListener(g,"focus",function(){d.removeAttribute("checked");B.setAttribute("checked","checked");
+B.checked=!0});if(Graph.fileSupport){g.setAttribute("placeholder",mxResources.get("dragImagesHere"));var D=t.parentNode,J=null;mxEvent.addListener(D,"dragleave",function(L){null!=J&&(J.parentNode.removeChild(J),J=null);L.stopPropagation();L.preventDefault()});mxEvent.addListener(D,"dragover",mxUtils.bind(this,function(L){null==J&&(!mxClient.IS_IE||10<document.documentMode)&&(J=b.highlightElement(D));L.stopPropagation();L.preventDefault()}));mxEvent.addListener(D,"drop",mxUtils.bind(this,function(L){null!=
+J&&(J.parentNode.removeChild(J),J=null);if(0<L.dataTransfer.files.length)C(L.dataTransfer.files);else if(0<=mxUtils.indexOf(L.dataTransfer.types,"text/uri-list")){var K=L.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(K)&&(g.value=decodeURIComponent(K),F())}L.stopPropagation();L.preventDefault()}),!1)}};t.appendChild(B);t.appendChild(g);mxUtils.br(t);m=document.createElement("span");m.style.marginLeft="30px";mxUtils.write(m,mxResources.get("width")+":");t.appendChild(m);
+var P=document.createElement("input");P.setAttribute("type","text");P.style.width="60px";P.style.marginLeft="8px";P.style.marginRight="16px";P.value=null==f||H?"":f.width;t.appendChild(P);mxUtils.write(t,mxResources.get("height")+":");var R=document.createElement("input");R.setAttribute("type","text");R.style.width="60px";R.style.marginLeft="8px";R.style.marginRight="16px";R.value=null==f||H?"":f.height;t.appendChild(R);mxUtils.br(t);mxUtils.br(t);mxEvent.addListener(g,"change",F);ImageDialog.filePicked=
+function(D){D.action==google.picker.Action.PICKED&&null!=D.docs[0].thumbnails&&(D=D.docs[0].thumbnails[D.docs[0].thumbnails.length-1],null!=D&&(g.value=D.url,F()));g.focus()};t.appendChild(d);t.appendChild(k);mxUtils.br(t);mxUtils.br(t);H?(d.setAttribute("checked","checked"),d.checked=!0):(B.setAttribute("checked","checked"),B.checked=!0);!E&&d.checked&&(mxUtils.write(x,mxResources.get("pageNotFound")),x.setAttribute("disabled","disabled"),x.setAttribute("selected","selected"),x.setAttribute("value",
+"pageNotFound"),k.appendChild(x),mxEvent.addListener(k,"change",function(){null==x.parentNode||x.selected||x.parentNode.removeChild(x)}));f=document.createElement("div");f.style.display=l?"inline-flex":"none";f.style.alignItems="center";f.style.cursor="default";f.style.minWidth="40%";f.style.height="20px";var U=document.createElement("input");U.setAttribute("type","checkbox");U.style.margin="0px 10px 0px 4px";U.style.verticalAlign="bottom";U.defaultChecked=c!=mxConstants.NONE&&null!=c;U.checked=U.defaultChecked;
+f.appendChild(U);mxUtils.write(f,mxResources.get("fillColor"));l=f.cloneNode(!1);var O=document.createElement("input");O.setAttribute("type","checkbox");O.style.margin="0px 10px 0px 30px";O.style.verticalAlign="bottom";O.defaultChecked=v.shadowVisible;O.checked=O.defaultChecked;l.appendChild(O);mxUtils.write(l,mxResources.get("shadow"));mxClient.IS_SVG&&!mxClient.IS_SF||O.setAttribute("disabled","disabled");mxEvent.addListener(l,"click",function(D){mxEvent.getSource(D)!=O&&(O.checked=!O.checked)});
+var V=document.createElement("button");V.style.width="36px";V.style.height="18px";V.style.cursor="pointer";V.style.marginLeft="10px";V.style.backgroundPosition="center center";V.style.backgroundRepeat="no-repeat";V.style.verticalAlign="bottom";V.className="geColorBtn";var q=c;p();mxEvent.addListener(f,"click",function(D){mxEvent.getSource(D)!=U&&(U.checked=!U.checked);q=U.checked?"#ffffff":null;p()});mxEvent.addListener(V,"click",function(D){b.pickColor(q||"none",function(J){q=J;p()});mxEvent.consume(D)});
+f.appendChild(V);t.appendChild(f);t.appendChild(l);mxUtils.br(t);c=document.createElement("div");c.style.marginTop="30px";c.style.textAlign="right";v=mxUtils.button(mxResources.get("cancel"),function(){A=!0;b.hideDialog()});v.className="geBtn";b.editor.cancelFirst&&c.appendChild(v);l=mxUtils.button(mxResources.get("reset"),function(){g.value="";P.value="";R.value="";B.checked=!0;q=mxConstants.NONE;p();A=!1});mxEvent.addGestureListeners(l,function(){A=!0});l.className="geBtn";l.width="100";c.appendChild(l);
+if(Graph.fileSupport){var y=document.createElement("input");y.setAttribute("multiple","multiple");y.setAttribute("type","file");mxEvent.addListener(y,"change",function(D){null!=y.files&&(C(y.files),y.type="",y.type="file",y.value="")});y.style.display="none";t.appendChild(y);l=mxUtils.button(mxResources.get("open"),function(){y.click()});l.className="geBtn";c.appendChild(l)}applyBtn=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();F(null,function(D){e(""!=D&&null!=D?new mxImage(D,
+P.value,R.value):null,null==D,q,!mxClient.IS_SVG||mxClient.IS_SF?null:O.checked)})});mxEvent.addGestureListeners(applyBtn,function(){I=!0});applyBtn.className="geBtn gePrimaryBtn";c.appendChild(applyBtn);b.editor.cancelFirst||c.appendChild(v);t.appendChild(c);this.container=t},ParseDialog=function(b,e,f){function c(k,m,u){var x=k.split("\n");if("plantUmlPng"==m||"plantUmlSvg"==m||"plantUmlTxt"==m){if(b.spinner.spin(document.body,mxResources.get("inserting"))){var A=function(K,n,z,G,M){p=mxEvent.isAltDown(u)?
+p:I.getCenterInsertPoint(new mxRectangle(0,0,G,M));var N=null;I.getModel().beginUpdate();try{N="txt"==n?b.insertAsPreText(z,p.x,p.y):I.insertVertex(null,null,null,p.x,p.y,G,M,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b.convertDataUri(z)+";"),I.setAttributeForCell(N,"plantUmlData",JSON.stringify({data:K,format:n},null,2))}finally{I.getModel().endUpdate()}null!=N&&(I.setSelectionCell(N),I.scrollCellToVisible(N))},I=b.editor.graph,F="plantUmlTxt"==m?"txt":"plantUmlPng"==
+m?"png":"svg";"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml"==k&&"svg"==F?window.setTimeout(function(){b.spinner.stop();A(k,F,"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBjb250ZW50U2NyaXB0VHlwZT0iYXBwbGljYXRpb24vZWNtYXNjcmlwdCIgY29udGVudFN0eWxlVHlwZT0idGV4dC9jc3MiIGhlaWdodD0iMjEycHgiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHN0eWxlPSJ3aWR0aDoyOTVweDtoZWlnaHQ6MjEycHg7IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyOTUgMjEyIiB3aWR0aD0iMjk1cHgiIHpvb21BbmRQ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Y2UgPC0gLSBCb2I6IEFub3RoZXIgYXV0aGVudGljYXRpb24gUmVzcG9uc2UNCkBlbmR1bWwNCgpQbGFudFVNTCB2ZXJzaW9uIDEuMjAyMC4wMihTdW4gTWFyIDAxIDA0OjIyOjA3IENTVCAyMDIwKQooTUlUIHNvdXJjZSBkaXN0cmlidXRpb24pCkphdmEgUnVudGltZTogT3BlbkpESyBSdW50aW1lIEVudmlyb25tZW50CkpWTTogT3BlbkpESyA2NC1CaXQgU2VydmVyIFZNCkphdmEgVmVyc2lvbjogMTIrMzMKT3BlcmF0aW5nIFN5c3RlbTogTWFjIE9TIFgKRGVmYXVsdCBFbmNvZGluZzogVVRGLTgKTGFuZ3VhZ2U6IGVuCkNvdW50cnk6IFVTCi0tPjwvZz48L3N2Zz4=",
+295,212)},200):b.generatePlantUmlImage(k,F,function(K,n,z){b.spinner.stop();A(k,F,K,n,z)},function(K){b.handleError(K)})}}else if("mermaid"==m||"mermaid2drawio"==m){if(b.spinner.spin(document.body,mxResources.get("inserting"))){for(var C=0;C<x.length&&(0==x[C].trim().length||"%%"==x[C].substring(0,2));)C++;if("---"==x[C].trim()){do C++;while(C<x.length&&"---"!=x[C].trim());C++}C=x[C].trim().toLowerCase();x=C.indexOf(" ");C=C.substring(0,0<x?x:C.length);var P="undefined"!==typeof mxMermaidToDrawio&&
+"mermaid2drawio"==m&&("graph"==C||"flowchart"==C||"sequencediagram"==C||"classdiagram"==C||"statediagram-v2"==C||"statediagram"==C||"erdiagram"==C||"requirementdiagram"==C||"gitgraph"==C||"mindmap"==C||"journey"==C);I=b.editor.graph;P&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(K){b.spinner.stop();I.setSelectionCells(b.importXml(K,Math.max(p.x,20),Math.max(p.y,20),!0,null,null,!0));I.scrollCellToVisible(I.getSelectionCell())}));b.generateMermaidImage(k,null,function(K,n,z){if(!P){p=
+mxEvent.isAltDown(u)?p:I.getCenterInsertPoint(new mxRectangle(0,0,n,z));b.spinner.stop();var G=null;I.getModel().beginUpdate();try{G=I.insertVertex(null,null,null,p.x,p.y,n,z,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+K+";"),I.setAttributeForCell(G,"mermaidData",JSON.stringify({data:k},null,2))}finally{I.getModel().endUpdate()}null!=G&&(I.setSelectionCell(G),I.scrollCellToVisible(G))}},function(K){"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.resetListeners();b.handleError(K)})}}else if("table"==
+m){m=null;var R=[],U=0,O={};for(C=0;C<x.length;C++){var V=mxUtils.trim(x[C]);if("primary key"==V.substring(0,11).toLowerCase()){var q=V.match(/\((.+)\)/);q&&q[1]&&(O[q[1]]=!0);x.splice(C,1)}else 0<V.toLowerCase().indexOf("primary key")&&(O[V.split(" ")[0]]=!0,x[C]=mxUtils.trim(V.replace(/primary key/i,"")))}for(C=0;C<x.length;C++)if(V=mxUtils.trim(x[C]),"create table"==V.substring(0,12).toLowerCase())V=mxUtils.trim(V.substring(12)),"("==V.charAt(V.length-1)&&(V=mxUtils.trim(V.substring(0,V.length-
+1))),m=new mxCell(V,new mxGeometry(U,0,160,30),"shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;"),m.vertex=!0,R.push(m),V=b.editor.graph.getPreferredSizeForCell(y),null!=V&&(m.geometry.width=V.width+10);else if(null!=m&&")"==V.charAt(0))U+=m.geometry.width+40,m=null;else if("("!=V&&null!=m){V=V.substring(0,","==V.charAt(V.length-1)?V.length-1:V.length);q=O[V.split(" ")[0]];var y=new mxCell("",new mxGeometry(0,
+0,160,30),"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;strokeColor=inherit;top=0;left=0;right=0;bottom="+(q?"1":"0")+";");y.vertex=!0;var D=new mxCell(q?"PK":"",new mxGeometry(0,0,30,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;strokeColor=inherit;top=0;left=0;bottom=0;right=0;"+(q?"fontStyle=1;":""));D.vertex=!0;y.insert(D);V=new mxCell(V,new mxGeometry(30,
+0,130,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;align=left;strokeColor=inherit;top=0;left=0;bottom=0;right=0;spacingLeft=6;"+(q?"fontStyle=5;":""));V.vertex=!0;y.insert(V);V=b.editor.graph.getPreferredSizeForCell(V);null!=V&&m.geometry.width<V.width+30&&(m.geometry.width=Math.min(320,Math.max(m.geometry.width,V.width+30)));m.insert(y,q?0:null);m.geometry.height+=30}0<R.length&&(I=b.editor.graph,p=mxEvent.isAltDown(u)?p:I.getCenterInsertPoint(I.getBoundingBoxFromGeometry(R,
+!0)),I.setSelectionCells(I.importCells(R,p.x,p.y)),I.scrollCellToVisible(I.getSelectionCell()))}else if("list"==m){if(0<x.length){I=b.editor.graph;m=null;R=[];for(C=y=0;C<x.length;C++)";"!=x[C].charAt(0)&&(0==x[C].length?m=null:null==m?(m=new mxCell(x[C],new mxGeometry(y,0,160,30),"swimlane;fontStyle=1;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"),m.vertex=!0,R.push(m),V=I.getPreferredSizeForCell(m),
+null!=V&&m.geometry.width<V.width+10&&(m.geometry.width=V.width+10),y+=m.geometry.width+40):"--"==x[C]?(V=new mxCell("",new mxGeometry(0,0,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),V.vertex=!0,m.geometry.height+=V.geometry.height,m.insert(V)):0<x[C].length&&(U=new mxCell(x[C],new mxGeometry(0,0,60,26),"text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
+U.vertex=!0,V=I.getPreferredSizeForCell(U),null!=V&&U.geometry.width<V.width&&(U.geometry.width=V.width),m.geometry.width=Math.max(m.geometry.width,U.geometry.width),m.geometry.height+=U.geometry.height,m.insert(U)));if(0<R.length){p=mxEvent.isAltDown(u)?p:I.getCenterInsertPoint(I.getBoundingBoxFromGeometry(R,!0));I.getModel().beginUpdate();try{R=I.importCells(R,p.x,p.y);V=[];for(C=0;C<R.length;C++)V.push(R[C]),V=V.concat(R[C].children);I.fireEvent(new mxEventObject("cellsInserted","cells",V))}finally{I.getModel().endUpdate()}I.setSelectionCells(R);
+I.scrollCellToVisible(I.getSelectionCell())}}}else{y=function(K){var n=J[K];null==n&&(n=new mxCell(K,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),n.vertex=!0,J[K]=n,R.push(n));return n};var J={};R=[];for(C=0;C<x.length;C++)if(";"!=x[C].charAt(0)){var L=x[C].split("->");2<=L.length&&(q=y(L[0]),D=y(L[L.length-1]),L=new mxCell(2<L.length?L[1]:"",new mxGeometry),L.edge=!0,L.geometry.relative=!0,q.insertEdge(L,!0),D.insertEdge(L,!1),R.push(L))}if(0<R.length){x=document.createElement("div");x.style.visibility=
+"hidden";document.body.appendChild(x);I=new Graph(x);I.getModel().beginUpdate();try{R=I.importCells(R);for(C=0;C<R.length;C++)I.getModel().isVertex(R[C])&&(V=I.getPreferredSizeForCell(R[C]),R[C].geometry.width=Math.max(R[C].geometry.width,V.width),R[C].geometry.height=Math.max(R[C].geometry.height,V.height));C=!0;"horizontalFlow"==m||"verticalFlow"==m?((new mxHierarchicalLayout(I,"horizontalFlow"==m?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH)).execute(I.getDefaultParent(),R),C=!1):"circle"==
+m?(new mxCircleLayout(I)).execute(I.getDefaultParent()):(U=new mxFastOrganicLayout(I),U.disableEdgeStyle=!1,U.forceConstant=180,U.execute(I.getDefaultParent()));C&&(O=new mxParallelEdgeLayout(I),O.spacing=30,O.execute(I.getDefaultParent()))}finally{I.getModel().endUpdate()}I.clearCellOverlays();V=[];b.editor.graph.getModel().beginUpdate();try{R=I.getModel().getChildren(I.getDefaultParent()),p=mxEvent.isAltDown(u)?p:b.editor.graph.getCenterInsertPoint(I.getBoundingBoxFromGeometry(R,!0)),V=b.editor.graph.importCells(R,
+p.x,p.y),b.editor.graph.fireEvent(new mxEventObject("cellsInserted","cells",V))}finally{b.editor.graph.getModel().endUpdate()}b.editor.graph.setSelectionCells(V);b.editor.graph.scrollCellToVisible(b.editor.graph.getSelectionCell());I.destroy();x.parentNode.removeChild(x)}}}function l(){return"list"==t.value?"Person\n-name: String\n-birthDate: Date\n--\n+getName(): String\n+setName(String): void\n+isBirthday(): boolean\n\nAddress\n-street: String\n-city: String\n-state: String":"mermaid"==t.value||
+"mermaid2drawio"==t.value?"graph TD;\n A--\x3eB;\n A--\x3eC;\n B--\x3eD;\n C--\x3eD;":"table"==t.value?"CREATE TABLE Suppliers\n(\nsupplier_id int NOT NULL PRIMARY KEY,\nsupplier_name char(50) NOT NULL,\ncontact_name char(50),\n);\nCREATE TABLE Customers\n(\ncustomer_id int NOT NULL PRIMARY KEY,\ncustomer_name char(50) NOT NULL,\naddress char(50),\ncity char(50),\nstate char(25),\nzip_code char(10)\n);\n":"plantUmlPng"==t.value?"@startuml\nskinparam backgroundcolor transparent\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml":
+"plantUmlSvg"==t.value||"plantUmlTxt"==t.value?"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml":";Example:\na->b\nb->edge label->c\nc->a\n"}var p=b.editor.graph.getFreeInsertPoint();e=document.createElement("div");e.style.textAlign="right";var v=document.createElement("textarea");v.style.boxSizing="border-box";v.style.resize=
+"none";v.style.width="100%";v.style.height="354px";v.style.marginBottom="16px";var t=document.createElement("select");t.className="geBtn";if("formatSql"==f||"mermaid"==f&&"draw.io"!=b.getServiceName()&&"atlassian"!=b.getServiceName())t.style.display="none";var E=document.createElement("option");E.setAttribute("value","list");mxUtils.write(E,mxResources.get("list"));"plantUml"!=f&&"mermaid"!=f&&t.appendChild(E);null!=f&&"fromText"!=f||E.setAttribute("selected","selected");E=document.createElement("option");
+E.setAttribute("value","table");mxUtils.write(E,mxResources.get("formatSql"));"formatSql"==f&&(t.appendChild(E),E.setAttribute("selected","selected"));E=document.createElement("option");E.setAttribute("value","mermaid");mxUtils.write(E,mxResources.get("image"));if("mermaid"==f)if("undefined"!==typeof mxMermaidToDrawio){var H=document.createElement("option");H.setAttribute("value","mermaid2drawio");H.setAttribute("selected","selected");mxUtils.write(H,mxResources.get("diagram"));t.appendChild(H)}else t.style.display=
+"none";t.appendChild(E);E=document.createElement("option");E.setAttribute("value","diagram");mxUtils.write(E,mxResources.get("diagram"));H=document.createElement("option");H.setAttribute("value","circle");mxUtils.write(H,mxResources.get("circle"));var B=document.createElement("option");B.setAttribute("value","horizontalFlow");mxUtils.write(B,mxResources.get("horizontalFlow"));var d=document.createElement("option");d.setAttribute("value","verticalFlow");mxUtils.write(d,mxResources.get("verticalFlow"));
+"plantUml"!=f&&"mermaid"!=f&&(t.appendChild(E),t.appendChild(H),t.appendChild(B),t.appendChild(d));E=document.createElement("option");E.setAttribute("value","plantUmlSvg");mxUtils.write(E,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");"plantUml"==f&&E.setAttribute("selected","selected");H=document.createElement("option");H.setAttribute("value","plantUmlPng");mxUtils.write(H,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+")");B=document.createElement("option");B.setAttribute("value",
+"plantUmlTxt");mxUtils.write(B,mxResources.get("plantUml")+" ("+mxResources.get("text")+")");EditorUi.enablePlantUml&&Graph.fileSupport&&!b.isOffline()&&"plantUml"==f&&(t.appendChild(E),t.appendChild(H),t.appendChild(B));var g=l();v.value=g;e.appendChild(v);this.init=function(){v.focus()};Graph.fileSupport&&(v.addEventListener("dragover",function(k){k.stopPropagation();k.preventDefault()},!1),v.addEventListener("drop",function(k){k.stopPropagation();k.preventDefault();if(0<k.dataTransfer.files.length){k=
+k.dataTransfer.files[0];var m=new FileReader;m.onload=function(u){v.value=u.target.result};m.readAsText(k)}},!1));e.appendChild(t);mxEvent.addListener(t,"change",function(){var k=l();if(0==v.value.length||v.value==g)g=k,v.value=g});b.isOffline()||"mermaid"!=f&&"plantUml"!=f||(E=mxUtils.button(mxResources.get("help"),function(){b.openLink("mermaid"==f?"https://mermaid-js.github.io/mermaid/#/":"https://plantuml.com/")}),E.className="geBtn",e.appendChild(E));E=mxUtils.button(mxResources.get("close"),
+function(){v.value==g?b.hideDialog():b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});E.className="geBtn";b.editor.cancelFirst&&e.appendChild(E);H=mxUtils.button(mxResources.get("insert"),function(k){try{b.hideDialog(),c(v.value,t.value,k)}catch(m){b.handleError(m)}});H.className="geBtn gePrimaryBtn";e.appendChild(H);b.editor.cancelFirst||e.appendChild(E);this.container=e},NewDialog=function(b,e,f,c,l,p,v,t,E,H,B,d,g,k,m,u,x,A,I){function F(ka){null!=ka&&(la=Ea=ka?135:140);ka=
+!0;if(null!=Wa)for(;n<Wa.length&&(ka||0!=mxUtils.mod(n,30));){var qa=Wa[n++];qa=y(qa.url,qa.libs,qa.title,qa.tooltip?qa.tooltip:qa.title,qa.select,qa.imgUrl,qa.info,qa.onClick,qa.preview,qa.noImg,qa.clibs,qa.type);ka&&qa.click();ka=!1}}function C(ka,qa,ta,ra,pa,wa){if(null!=ka&&mxUtils.isAncestorNode(document.body,ra)){ka=mxUtils.parseXml(ka);ka=Editor.parseDiagramNode(ka.documentElement,null,!0);var Ha=new mxCodec(ka.ownerDocument),Fa=new mxGraphModel;Ha.decode(ka,Fa);b.sidebar.createTooltip(ra,
+Fa.root.children,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-120,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-120,800),null!=pa?mxResources.get(pa):null,!0,new mxPoint(qa,ta),!0,function(){S=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;null!=wa&&U(ra,null,null,wa,infoObj,clibs)},!0,!1)}}function P(){var ka=document.createElement("div");ka.style.position="absolute";ka.style.overflow=
+"visible";ka.style.left="8px";ka.style.right="8px";ka.style.bottom="8px";ka.style.top="8px";mxUtils.write(ka,mxResources.get("describeYourDiagram")+":");mxUtils.br(ka);var qa=document.createElement("input");qa.setAttribute("type","text");qa.setAttribute("placeholder",mxResources.get("processForHiringNewEmployee"));qa.style.width="100%";qa.style.marginTop="6px";qa.style.marginBottom="4px";qa.style.boxSizing="border-box";ka.appendChild(qa);ka.init=function(){qa.focus()};mxUtils.br(ka);var ta=document.createElement("div");
+ta.style.top="86px";ta.style.left="2px";ta.style.right="2px";ta.style.bottom="2px";ta.style.position="absolute";ta.style.border="1px solid #424242";var ra=document.createElement("div");ra.style.boxSizing="border-box";ra.style.position="relative";ra.style.textAlign="center";ra.style.top="50%";mxUtils.write(ra,mxResources.get("blankDiagram"));ta.appendChild(ra);var pa=document.createElement("select");pa.className="geBtn";pa.style.maxWidth="160px";pa.style.marginLeft="0px";ra=document.createElement("option");
+mxUtils.write(ra,mxResources.get("diagramType"));ra.setAttribute("value","");pa.appendChild(ra);for(var wa=0;wa<EditorUi.mermaidDiagramTypes.length;wa++){ra=document.createElement("option");var Ha=EditorUi.mermaidDiagramTypes[wa],Fa=Ha;Ha==urlParams["smart-template-type"]&&ra.setAttribute("selected","selected");"erDiagram"==Fa&&(Fa="entityRelationshipDiagram");Fa=mxResources.get(Fa,null,Fa.charAt(0).toUpperCase()+Fa.substring(1).replace(/[A-Z]/g," $&"));ra.setAttribute("value",Ha);mxUtils.write(ra,
+Fa);pa.appendChild(ra)}var La=mxUtils.button(mxResources.get("generate"),function(){var Pa=qa.value,Qa=pa.value.replace(/([A-Z])/g," $1").toLowerCase();Pa="Write the declaration code for a detailed and complex "+(""!=Qa?Qa:"graph")+' that shows "'+(""!=Pa?Pa:"something random")+'" using correct MermaidJS syntax and do not provide additional text in your response.';Qa=""!=pa.value?" ("+mxUtils.trim(mxUtils.getTextContent(pa.options[pa.selectedIndex]))+")":"";var Xa="gantt"==pa.value||"pie"==pa.value||
+"timeline"==pa.value||"quadrantchart"==pa.value||"c4context"==pa.value,Na=qa.value+Qa;"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(Oa){Xa||(ya=fa=Oa,ua="Smart Template: "+Na)}));b.spinner.spin(document.body,mxResources.get("loading"))&&b.generateOpenAiMermaidDiagram(Pa,function(Oa,Ia,bb,Za){b.spinner.stop();ta.innerHTML="";var Ya=document.createElement("img");Ya.setAttribute("title",Na);Ya.src="data:image/svg+xml;base64,"+Ia.substring(Ia.indexOf(",")+
+1);Ya.style.cursor="pointer";Ya.style.width="100%";Ya.style.height="100%";ta.appendChild(Ya);Oa=b.createMermaidXml(Oa,EditorUi.defaultMermaidConfig,Ia,bb,Za,Na);var hb="<mxfile><diagram>"+Graph.compress(Oa)+"</diagram></mxfile>";if(Xa||"undefined"===typeof mxMermaidToDrawio)ya=fa=Oa;Oa=M.cloneNode(!0);ta.appendChild(Oa);Ia=function(gb){S=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display};bb=function(gb){S||C(hb,mxEvent.getClientX(gb),mxEvent.getClientY(gb),Ya,Na)};mxEvent.addGestureListeners(Ya,
+Ia,null,bb);mxEvent.addGestureListeners(Oa,Ia,null,bb)},function(Oa){b.spinner.stop();null!=mxMermaidToDrawio.resetListeners&&mxMermaidToDrawio.resetListeners();b.handleError(Oa)})});La.setAttribute("disabled","disabled");La.className="geBtn gePrimaryBtn";ra=function(){window.setTimeout(function(){""!=qa.value?La.removeAttribute("disabled"):La.setAttribute("disabled","disabled")},0)};wa=urlParams["smart-template"];null!=wa&&"1"!=wa&&(qa.value=decodeURIComponent(wa),ra(),"1"==urlParams["smart-template-generate"]&&
+window.setTimeout(function(){La.click()},0));mxEvent.addListener(qa,"change",ra);mxEvent.addListener(qa,"keydown",ra);mxEvent.addListener(qa,"cut",ra);mxEvent.addListener(qa,"paste",ra);mxEvent.addListener(qa,"keydown",function(Pa){13==Pa.keyCode&&La.click()});ra=document.createElement("div");ra.style.height="40px";ra.style.marginTop="4px";ra.style.marginBottom="4px";ra.style.whiteSpace="nowrap";ra.style.overflowX="auto";ra.style.overflowY="hidden";ra.appendChild(pa);ra.appendChild(La);ka.appendChild(ra);
+ka.appendChild(ta);return ka}function R(){if(ja&&null!=k)f||b.hideDialog(),k(ja,ea,K.value);else if(c)f||b.hideDialog(),c(fa,K.value,ha,ia);else{var ka=K.value;if(null!=ka&&0<ka.length){var qa=function(ra,pa,wa){b.createFile(wa,fa,null!=ia&&0<ia.length?ia:null,ra,function(){b.hideDialog()},null,pa,null,null!=ca&&0<ca.length?ca:null)};if(b.mode==App.MODE_GOOGLE||b.mode==App.MODE_ONEDRIVE){var ta=new SaveDialog(b,ka,mxUtils.bind(this,function(ra,pa,wa){qa(pa,wa,ra.value)}),null,null,null,null,b.mode);
+b.showDialog(ta.container,420,150,!0,!1);ta.init()}else b.pickFolder(b.mode,function(ra){qa(b.mode,ra,ka)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}}function U(ka,qa,ta,ra,pa,wa,Ha){return aa!=ka?(null!=aa&&(aa.classList.remove("geTemplateSelected"),aa==va&&(xa.style.display="none",Da.style.display="",Aa.style.visibility="hidden",Ja.style.visibility=null!=ya?"visible":"hidden")),ka==va&&(qa=ya,null!=qa?(Ja.style.visibility="visible",Ja.style.visibility=null!=ya?"visible":
+"hidden",Aa.style.visibility="visible"):(xa.style.display="",Aa.style.visibility="hidden",Ja.style.visibility="hidden")),G.removeAttribute("disabled"),fa=qa,ia=ta,ca=wa,aa=ka,ja=ra,ha=Ha,ea=pa,aa.classList.add("geTemplateSelected"),!0):!1}function O(){xa.style.display="";Da.style.display="none";Aa.style.visibility="hidden";Ja.style.visibility="hidden";Ba.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?Ba.select():document.execCommand("selectAll",!1,null)}function V(){Da.style.backgroundImage=
+Ca;Da.style.backgroundSize="contain";xa.style.display="none";Da.style.display="";Aa.style.visibility="visible";Ja.style.visibility="visible"}function q(ka){var qa=mxUtils.trim(Ba.value);if(ka||""==qa)null!=ua&&(Ba.value=ua,V());else{var ta=!1;ka='Write a detailed and complex MermaidJS declaration for "'+(""!=qa?qa:"something random")+'" using correct MermaidJS syntax and do not provide additional text in your response.';"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.addListener(mxUtils.bind(this,
+function(ra){ra!=b.emptyDiagramXml&&(ta=!0,fa=ra)}));Da.style.backgroundImage="url("+Editor.spinImage+")";Da.style.backgroundSize="12px 12px";Da.style.display="";xa.style.display="none";b.generateOpenAiMermaidDiagram(ka,function(ra,pa,wa,Ha){aa==va&&"none"==xa.style.display&&(Ca="url(data:image/svg+xml;base64,"+pa.substring(pa.indexOf(",")+1)+")",va.setAttribute("title",qa),Ja.style.display="",ya=fa=ra=ta?fa:b.createMermaidXml(ra,EditorUi.defaultMermaidConfig,pa,wa,Ha,qa),ua=qa,V())},function(ra){aa==
+va&&(xa.style.display="",Da.style.display="none",Aa.style.visibility="hidden",Ja.style.visibility="hidden",b.handleError(ra))})}}function y(ka,qa,ta,ra,pa,wa,Ha,Fa,La,Pa,Qa,Xa){function Na(Sa,db){null==bb?(Za=Sa,Za=/^https?:\/\//.test(Za)?b.editor.isCorsEnabledForUrl(Za)?Za:PROXY_URL+"?url="+encodeURIComponent(Za):TEMPLATE_PATH+"/"+Za,mxUtils.get(Za,mxUtils.bind(this,function(eb){200<=eb.getStatus()&&299>=eb.getStatus()&&(bb=eb.getText());db(bb,Za)}))):db(bb,Za)}function Oa(Sa,db){if(null==ka||N||
+b.sidebar.currentElt==Ia)b.sidebar.hideTooltip();else if(b.sidebar.hideTooltip(),null!=Q){var eb="<mxfile><diagram>"+Graph.compress('<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" value="" style="shape=image;image='+Q.src+';imageAspect=1;" parent="1" vertex="1"><mxGeometry width="'+Q.naturalWidth+'" height="'+Q.naturalHeight+'" as="geometry" /></mxCell></root></mxGraphModel>')+"</diagram></mxfile>";C(eb,mxEvent.getClientX(Sa),mxEvent.getClientY(Sa),ta,ka)}else b.sidebar.currentElt=
+Ia,N=!0,Na(ka,function(jb){if(N&&b.sidebar.currentElt==Ia)try{C(jb,mxEvent.getClientX(Sa),mxEvent.getClientY(Sa),Ia,db)}catch(kb){b.sidebar.currentElt=null,b.handleError(kb)}N=!1})}var Ia=null;if("generative"!=Xa||null==va){Ia=document.createElement("div");Ia.className="geTemplate";var bb=null,Za=ka;null!=ta?Ia.setAttribute("title",mxResources.get(ta,null,ta)):null!=ra&&0<ra.length&&Ia.setAttribute("title",ra)}else Ia=va;var Ya=document.createElement("span");Ya.className="geAdaptiveAsset";mxUtils.write(Ya,
+mxResources.get(ta,null,ta));if(null!=wa){Ia.style.display="inline-flex";Ia.style.justifyContent="center";Ia.style.alignItems="center";La=document.createElement("img");La.setAttribute("src",wa);La.setAttribute("alt",ra);La.style.maxWidth=la+"px";La.style.maxHeight=Ea+"px";Q=La;var hb=wa.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");Ia.appendChild(La);La.onerror=function(){this.src!=hb?this.src=hb:(this.src=Editor.errorImage,this.onerror=null)};mxEvent.addGestureListeners(Ia,mxUtils.bind(this,
+function(Sa){U(Ia,null,null,ka,Ha,Qa)}),null,null);mxEvent.addListener(Ia,"dblclick",function(Sa){R();mxEvent.consume(Sa)})}else if(!Pa&&null!=ka&&0<ka.length){var gb=function(Sa){z.spin(na)&&Na(ka,function(db,eb){z.stop();null!=db&&(U(Ia,db,qa,null,null,Qa,eb),Sa&&R())})};wa=La||TEMPLATE_PATH+"/"+ka.substring(0,ka.length-4)+".png";La=Da.cloneNode(!1);La.style.backgroundImage="url("+wa+")";La.style.display="";Ia.appendChild(La);null!=ta&&Ia.appendChild(Ya);mxEvent.addGestureListeners(Ia,mxUtils.bind(this,
+function(Sa){gb()}),null,null);mxEvent.addListener(Ia,"dblclick",function(Sa){gb(!0);mxEvent.consume(Sa)})}else Ia.appendChild(Ya),"generative"==Xa&&null==va&&(Ia.appendChild(Da),Ia.appendChild(xa),Ia.appendChild(Ja),Ia.appendChild(Aa),va=Ia),pa&&U(Ia),null!=Fa?(mxEvent.addGestureListeners(Ia,null,null,mxUtils.bind(this,function(Sa){U(Ia,null,null,ka,Ha)})),mxEvent.addListener(Ia,"click",Fa)):(mxEvent.addListener(Ia,"click",function(Sa){U(Ia,null,null,ka,Ha)&&"generative"==Xa&&null==ya&&O()}),mxEvent.addListener(Ia,
+"dblclick",function(Sa){"generative"!=Xa?R():"none"==xa.style.display&&O();mxEvent.consume(Sa)}));null!=ka&&(wa=M.cloneNode(!0),Ia.appendChild(wa),mxEvent.addGestureListeners(wa,mxUtils.bind(this,function(Sa){S=b.sidebar.currentElt==Ia}),null,null),mxEvent.addListener(wa,"click",mxUtils.bind(this,function(Sa){S||Oa(Sa,null!=ta?ta:ra);mxEvent.consume(Sa)})));na.appendChild(Ia);return Ia}function D(){function ka(Na,Oa){Na=mxResources.get(Na,null,Na.substring(0,1).toUpperCase()+Na.substring(1));18<Na.length&&
+(Na=Na.substring(0,18)+"&hellip;");return Na+(null!=Oa?" ("+Oa.length+")":"")}function qa(Na,Oa,Ia){mxEvent.addListener(Oa,"click",function(){Ta!=Oa&&(null!=Ta&&(Ta.style.backgroundColor=""),Ta=Oa,Ta.style.backgroundColor=v,na.scrollTop=0,na.innerText="",n=0,null!=Ma[Na].content?(na.appendChild(Ma[Na].content),fa=ya,Wa=null,null!=Ma[Na].content.init&&Ma[Na].content.init()):(Wa=Ia?Va[Na][Ia]:Ma[Na],W=null,F(!1)))});"smartTemplate"!=Na||!I&&null==urlParams["smart-template"]||Oa.click()}cb&&(cb=!1,mxEvent.addListener(na,
+"scroll",function(Na){na.scrollTop+na.clientHeight>=na.scrollHeight&&(F(),mxEvent.consume(Na))}));if(0<fb){var ta=document.createElement("div");ta.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(ta,mxResources.get("custom"));oa.appendChild(ta);for(var ra in Ua){var pa=document.createElement("div");ta=ra;var wa=Ua[ra];18<ta.length&&(ta=ta.substring(0,18)+"&hellip;");pa.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;";
+pa.setAttribute("title",ta+" ("+wa.length+")");mxUtils.write(pa,pa.getAttribute("title"));null!=H&&(pa.style.padding=H);oa.appendChild(pa);(function(Na,Oa){mxEvent.addListener(pa,"click",function(){Ta!=Oa&&(Ta.style.backgroundColor="",Ta=Oa,Ta.style.backgroundColor=v,na.scrollTop=0,na.innerText="",n=0,Wa=Ua[Na],W=null,F(!1))})})(ra,pa)}ta=document.createElement("div");ta.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(ta,"draw.io");oa.appendChild(ta)}for(ra in Ma){ta=
+wa=null;if(null!=Ma[ra].content)pa=document.createElement(Ha?"ul":"div"),ta=ka(ra),pa.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;transition: all 0.5s;",pa.setAttribute("title",ta),mxUtils.write(pa,ta),oa.appendChild(pa),ta=pa;else{var Ha=Va[ra];ta=pa=document.createElement(Ha?"ul":"div");wa=Ma[ra];var Fa=ka(ra,wa);if(null!=Ha){wa=document.createElement("li");var La=document.createElement("div");
+La.className="geTempTreeCaret";La.setAttribute("title",Fa);mxUtils.write(La,Fa);ta=La;wa.appendChild(La);Fa=document.createElement("ul");Fa.className="geTempTreeNested";Fa.style.visibility="hidden";for(var Pa in Ha){var Qa=document.createElement("li"),Xa=ka(Pa,Ha[Pa]);Qa.setAttribute("title",Xa);mxUtils.write(Qa,Xa);qa(ra,Qa,Pa);Fa.appendChild(Qa)}wa.appendChild(Fa);pa.className="geTempTree";pa.appendChild(wa);(function(Na,Oa){mxEvent.addListener(Oa,"click",function(){Na.style.visibility="visible";
+Na.classList.toggle("geTempTreeActive");Na.classList.toggle("geTempTreeNested")&&setTimeout(function(){Na.style.visibility="hidden"},550);Oa.classList.toggle("geTempTreeCaret-down")})})(Fa,La)}else pa.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;transition: all 0.5s;",pa.setAttribute("title",Fa),mxUtils.write(pa,Fa);null!=H&&(pa.style.padding=H);oa.appendChild(pa)}qa(ra,ta);null==Ta&&ta.click()}F(!1)}
+t=500>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);f=null!=f?f:!0;l=null!=l?l:!1;v=null!=v?v:"light-dark(#ebf2f9, "+Editor.darkColor+")";B=null!=B?B:EditorUi.templateFile;var J=document.createElement("div");J.style.userSelect="none";J.style.height="100%";E=document.createElement("div");E.style.whiteSpace="nowrap";E.style.height="46px";f&&J.appendChild(E);var L=document.createElement("img");L.setAttribute("border","0");L.setAttribute("align","absmiddle");L.style.width=
+"40px";L.style.height="40px";L.style.marginRight="10px";L.style.paddingBottom="4px";L.src=b.mode==App.MODE_GOOGLE?IMAGE_PATH+"/google-drive-logo.svg":b.mode==App.MODE_DROPBOX?IMAGE_PATH+"/dropbox-logo.svg":b.mode==App.MODE_ONEDRIVE?IMAGE_PATH+"/onedrive-logo.svg":b.mode==App.MODE_GITHUB?IMAGE_PATH+"/github-logo.svg":b.mode==App.MODE_GITLAB?IMAGE_PATH+"/gitlab-logo.svg":b.mode==App.MODE_TRELLO?IMAGE_PATH+"/trello-logo.svg":b.mode==App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";
+e||t||!f||E.appendChild(L);f&&mxUtils.write(E,(t?mxResources.get("name"):null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");L=".drawio";b.mode==App.MODE_GOOGLE&&null!=b.drive?L=b.drive.extension:b.mode==App.MODE_DROPBOX&&null!=b.dropbox?L=b.dropbox.extension:b.mode==App.MODE_ONEDRIVE&&null!=b.oneDrive?L=b.oneDrive.extension:b.mode==App.MODE_GITHUB&&null!=b.gitHub?L=b.gitHub.extension:b.mode==App.MODE_GITLAB&&null!=b.gitLab?
+L=b.gitLab.extension:b.mode==App.MODE_TRELLO&&null!=b.trello&&(L=b.trello.extension);var K=document.createElement("input");K.setAttribute("value",b.defaultFilename+L);K.style.marginLeft="10px";K.style.width=e||t?"144px":"244px";this.init=function(){f&&Editor.selectFilename(K);null!=na.parentNode&&null!=na.parentNode.parentNode&&mxEvent.addGestureListeners(na.parentNode.parentNode,mxUtils.bind(this,function(ka){null!=b.sidebar&&b.sidebar.hideTooltip()}),null,null)};f&&(E.appendChild(K),A?K.style.width=
+e||t?"350px":"450px":null!=b.editor.diagramFileTypes&&(A=FilenameDialog.createFileTypes(b,K,b.editor.diagramFileTypes),A.style.marginLeft="6px",A.style.width=e||t?"80px":"180px",E.appendChild(A)));A=!1;var n=0,z=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),G=mxUtils.button(u||mxResources.get("create"),function(){G.setAttribute("disabled","disabled");R();G.removeAttribute("disabled")});
+G.className="geBtn gePrimaryBtn";var M=document.createElement("img");M.setAttribute("src",Editor.magnifyImage);M.setAttribute("title",mxResources.get("preview"));M.className="geButton geRoundButton";var N=!1,Q=null,S=!1;if(d||g){var T=[],W=null,X=null,Z=null,Y=function(ka){G.setAttribute("disabled","disabled");for(var qa=0;qa<T.length;qa++)T[qa].className=qa==ka?"geBtn gePrimaryBtn":"geBtn"};A=!0;u=document.createElement("div");u.style.whiteSpace="nowrap";u.style.height="30px";J.appendChild(u);t=
+mxUtils.button(mxResources.get("Templates",null,"Templates"),function(){oa.style.display="";za.style.display="";na.style.left="160px";Y(0);na.scrollTop=0;na.innerText="";n=0;W!=Wa&&(Wa=W,Ma=X,fb=Z,oa.innerText="",D(),W=null)});T.push(t);u.appendChild(t);var ba=function(ka){oa.style.display="none";za.style.display="none";na.style.left="30px";Y(ka?-1:1);null==W&&(W=Wa);na.scrollTop=0;na.innerText="";z.spin(na);var qa=function(ta,ra,pa){n=0;z.stop();Wa=ta;pa=pa||{};var wa=0,Ha;for(Ha in pa)wa+=pa[Ha].length;
+if(ra)na.innerText=ra;else if(0==ta.length&&0==wa)na.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(na.innerText="",0<wa){oa.style.display="";na.style.left="160px";oa.innerText="";fb=0;Ma={"draw.io":ta};for(Ha in pa)Ma[Ha]=pa[Ha];D()}else F(!0)};ka?g(da.value,qa):d(qa)};d&&(t=mxUtils.button(mxResources.get("Recent",null,"Recent"),function(){ba()}),u.appendChild(t),T.push(t));if(g){t=document.createElement("span");t.style.marginLeft="10px";t.innerText=mxResources.get("search")+
+":";u.appendChild(t);var da=document.createElement("input");da.style.marginRight="10px";da.style.marginLeft="10px";da.style.width="220px";mxEvent.addListener(da,"keypress",function(ka){13==ka.keyCode&&ba(!0)});u.appendChild(da);t=mxUtils.button(mxResources.get("search"),function(){ba(!0)});t.className="geBtn";u.appendChild(t)}Y(0)}var ia=null,ca=null,fa=null,aa=null,ja=null,ha=null,ea=null,ya=null,ua=null,na=document.createElement("div");na.style.border="1px solid #d3d3d3";na.style.position="absolute";
+na.style.left="160px";na.style.right="34px";u=(f?72:40)+(A?30:0);na.style.top=u+"px";na.style.bottom="68px";na.style.margin="6px 0 0 -1px";na.style.padding="6px";na.style.overflow="auto";var za=document.createElement("div");za.style.cssText="position:absolute;left:30px;width:128px;top:"+u+"px;height:22px;margin-top: 6px;white-space: nowrap;";var ma=document.createElement("input");ma.style.cssText="width:105px;height:16px;border:1px solid #d3d3d3;padding: 3px 20px 3px 3px;font-size: 12px;border-radius:0px;";
+ma.setAttribute("placeholder",mxResources.get("search"));ma.setAttribute("type","text");za.appendChild(ma);var sa=document.createElement("img");sa.setAttribute("src",Editor.magnifyImage);sa.setAttribute("title",mxResources.get("search"));sa.className="geAdaptiveAsset";sa.style.position="relative";sa.style.cursor="pointer";sa.style.outline="none";sa.style.opacity="0.5";sa.style.height="16px";sa.style.left="-20px";sa.style.top="4px";za.appendChild(sa);mxEvent.addListener(sa,"click",function(){sa.getAttribute("src")!=
+Editor.magnifyImage&&(sa.setAttribute("src",Editor.magnifyImage),sa.setAttribute("title",mxResources.get("search")),ma.value="",null!=$a&&($a.click(),$a=null));ma.focus()});mxEvent.addListener(ma,"keydown",mxUtils.bind(this,function(ka){if(13==ka.keyCode){var qa=ma.value;if(""==qa)null!=$a&&($a.click(),$a=null);else{if(null==NewDialog.tagsList[B]){var ta={};for(Qa in Ma)if(null==Ma[Qa].content)for(var ra=Ma[Qa],pa=0;pa<ra.length;pa++){var wa=ra[pa];if(null!=wa.tags)for(var Ha=wa.tags.toLowerCase().split(";"),
+Fa=0;Fa<Ha.length;Fa++)null==ta[Ha[Fa]]&&(ta[Ha[Fa]]=[]),ta[Ha[Fa]].push(wa)}NewDialog.tagsList[B]=ta}var La=qa.toLowerCase().split(" ");ta=NewDialog.tagsList[B];if(0<fb&&null==ta.__tagsList__){for(Qa in Ua)for(ra=Ua[Qa],pa=0;pa<ra.length;pa++)for(wa=ra[pa],Ha=wa.title.split(" "),Ha.push(Qa),Fa=0;Fa<Ha.length;Fa++){var Pa=Ha[Fa].toLowerCase();null==ta[Pa]&&(ta[Pa]=[]);ta[Pa].push(wa)}ta.__tagsList__=!0}var Qa=[];ra={};for(pa=Ha=0;pa<La.length;pa++)if(0<La[pa].length){Pa=ta[La[pa]];var Xa={};Qa=[];
+if(null!=Pa)for(Fa=0;Fa<Pa.length;Fa++)wa=Pa[Fa],0==Ha==(null==ra[wa.url])&&(Xa[wa.url]=!0,Qa.push(wa));ra=Xa;Ha++}na.scrollTop=0;na.innerText="";n=0;ta=document.createElement("div");ta.style.padding="6px";ta.style.whiteSpace="nowrap";ta.style.overflow="hidden";ta.style.textOverflow="ellipsis";wa=mxResources.get(0==Qa.length?"noResultsFor":"resultsFor",[qa]);ta.setAttribute("title",wa);mxUtils.write(ta,wa);na.appendChild(ta);null!=Ta&&null==$a&&(Ta.style.backgroundColor="",$a=Ta,Ta=ta);Wa=Qa;W=null;
+F(!1)}mxEvent.consume(ka)}}));mxEvent.addListener(ma,"keyup",mxUtils.bind(this,function(ka){""==ma.value?(sa.setAttribute("src",Editor.magnifyImage),sa.setAttribute("title",mxResources.get("search"))):(sa.setAttribute("src",Editor.crossImage),sa.setAttribute("title",mxResources.get("reset")))}));u+=23;var oa=document.createElement("div");oa.style.cssText="position:absolute;left:30px;width:128px;top:"+u+"px;bottom:68px;margin-top:6px;overflow:auto;border:1px solid #d3d3d3;";mxEvent.addListener(na,
+"scroll",function(){null!=b.sidebar&&b.sidebar.hideTooltip()});var la=140,Ea=la,va=null,Ca="url("+Editor.sparklesImage+")",xa=document.createElement("div");xa.className="geGenerateDiagramForm";xa.style.position="absolute";xa.style.width="100%";xa.style.height="100%";var Da=document.createElement("div");Da.className="geTemplatePreview geAdaptiveAsset";Da.style.backgroundImage=Ca;var Ba=document.createElement("textarea");Ba.setAttribute("placeholder",mxResources.get("describeYourDiagram"));Ba.className=
+"geGenerateDiagramDescription";var Ka=document.createElement("button");Ka.className="geBtn gePrimaryBtn geGenerateDiagramButton";Ka.setAttribute("disabled","disabled");Ka.setAttribute("title",mxResources.get("ok"));mxUtils.write(Ka,mxResources.get("ok"));var Ja=M.cloneNode(!0);Ja.style.display="none";var Ga=!1;mxEvent.addGestureListeners(Ja,function(ka){Ga=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display},null,function(ka){if(!Ga&&null!=ya){var qa="<mxfile><diagram>"+Graph.compress(ya)+
+"</diagram></mxfile>";C(qa,mxEvent.getClientX(ka),mxEvent.getClientY(ka),va,ua)}});var Aa=M.cloneNode(!0);Aa.setAttribute("src",Editor.editImage);Aa.setAttribute("title",mxResources.get("edit"));Aa.style.visibility="hidden";Aa.style.left="0px";u=M.cloneNode(!0);u.setAttribute("src",Editor.helpImage);u.setAttribute("title",mxResources.get("help"));mxEvent.addListener(u,"click",function(ka){b.openLink("https://www.drawio.com/blog/write-query-generate-diagram");mxEvent.consume(ka)});xa.appendChild(Ba);
+xa.appendChild(Ka);xa.appendChild(u);xa.style.display="none";mxEvent.addListener(Aa,"click",O);mxEvent.addListener(Ba,"input",function(){""!=Ba.value?Ka.removeAttribute("disabled"):Ka.setAttribute("disabled","disabled")});mxEvent.addListener(Ka,"click",function(){q()});mxEvent.addListener(Ba,"keydown",function(ka){13!=ka.keyCode||mxEvent.isShiftDown(ka)?27==ka.keyCode&&(q(!0),mxEvent.consume(ka)):(q(),mxEvent.consume(ka))});var Ma={},Va={},Ua={},fb=0,cb=!0,Ta=null,$a=null;Ma.basic=[{title:"blankDiagram"}];
+var Wa=Ma.basic;Editor.enableChatGpt&&b.isExternalDataComms()&&"draw.io"==b.getServiceName()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&Ma.basic.push({title:"generate",type:"generative"});Editor.enableChatGpt&&b.isExternalDataComms()&&"draw.io"==b.getServiceName()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&(Ma.smartTemplate={content:P()});if(!e){var ab=function(){mxUtils.get(Ra,function(ka){if(!ib){ib=!0;ka=ka.getXml().documentElement.firstChild;for(var qa=
+{};null!=ka;){if("undefined"!==typeof ka.getAttribute)if("parsererror"==ka.nodeName)null!=window.console&&console.log("Parser error in "+B+": "+ka.textContent);else if("clibs"==ka.nodeName){for(var ta=ka.getAttribute("name"),ra=ka.getElementsByTagName("add"),pa=[],wa=0;wa<ra.length;wa++)pa.push(encodeURIComponent(mxUtils.getTextContent(ra[wa])));null!=ta&&0<pa.length&&(qa[ta]=pa.join(";"))}else if(pa=ka.getAttribute("url"),null!=pa){ra=ka.getAttribute("section");ta=ka.getAttribute("subsection");if(null==
+ra&&(wa=pa.indexOf("/"),ra=pa.substring(0,wa),null==ta)){var Ha=pa.indexOf("/",wa+1);-1<Ha&&(ta=pa.substring(wa+1,Ha))}wa=Ma[ra];null==wa&&(wa=[],Ma[ra]=wa);pa=ka.getAttribute("clibs");null!=qa[pa]&&(pa=qa[pa]);pa={url:ka.getAttribute("url"),libs:ka.getAttribute("libs"),title:ka.getAttribute("title"),tooltip:ka.getAttribute("name")||ka.getAttribute("url"),preview:ka.getAttribute("preview"),clibs:pa,tags:ka.getAttribute("tags")};wa.push(pa);null!=ta&&(wa=Va[ra],null==wa&&(wa={},Va[ra]=wa),ra=wa[ta],
+null==ra&&(ra=[],wa[ta]=ra),ra.push(pa))}ka=ka.nextSibling}z.stop();D()}})};J.appendChild(za);J.appendChild(oa);J.appendChild(na);var ib=!1,Ra=B;/^https?:\/\//.test(Ra)&&!b.editor.isCorsEnabledForUrl(Ra)&&(Ra=PROXY_URL+"?url="+encodeURIComponent(Ra));z.spin(na);null!=x?x(function(ka,qa){Ua=ka;Z=fb=qa;ab()},ab):ab();X=Ma}mxEvent.addListener(K,"keypress",function(ka){b.dialog.container.firstChild==J&&13==ka.keyCode&&R()});x=document.createElement("div");x.style.marginTop=e?"4px":"16px";x.style.textAlign=
+"right";x.style.position="absolute";x.style.left="40px";x.style.bottom="24px";x.style.right="40px";u=mxUtils.button(mxResources.get("cancel"),function(){null!=p&&p();b.hideDialog(!0)});u.className="geBtn";!b.editor.cancelFirst||l&&null==p||x.appendChild(u);e||"1"==urlParams.embed||l||mxClient.IS_ANDROID||mxClient.IS_IOS||"1"==urlParams.noDevice||(e=mxUtils.button(mxResources.get("fromTemplateUrl"),function(){var ka=new FilenameDialog(b,"",mxResources.get("create"),function(qa){null!=qa&&0<qa.length&&
+b.editor.loadUrl(b.editor.getProxiedUrl(qa),function(ta){fa=ta;ia=null;templateRealURl=qa;b.hideDialog();R()},function(ta){b.handleError(ta)})},mxResources.get("url"),null,null,null,!1);b.showDialog(ka.container,300,80,!0,!0);ka.init()}),e.className="geBtn",x.appendChild(e));Graph.fileSupport&&m&&(m=mxUtils.button(mxResources.get("import"),function(){if(null==b.newDlgFileInputElt){var ka=document.createElement("input");ka.setAttribute("multiple","multiple");ka.setAttribute("type","file");mxEvent.addListener(ka,
+"change",function(qa){b.openFiles(ka.files,!0);ka.value=""});ka.style.display="none";document.body.appendChild(ka);b.newDlgFileInputElt=ka}b.newDlgFileInputElt.click()}),m.className="geBtn",x.appendChild(m));x.appendChild(G);b.editor.cancelFirst||null!=c||l&&null==p||x.appendChild(u);J.appendChild(x);this.container=J};NewDialog.tagsList={};
+var SaveDialog=function(b,e,f,c,l,p,v,t){function E(D,J,L,K,n,z){var G=null;if(null==c||0>mxUtils.indexOf(c,D))if(n=null!=n?n:b.getTitleForService(D),0<=mxUtils.indexOf(U,D)||null!=b.getServiceForName(D)){G=document.createElement("option");if("pick"==z)G.innerHTML=mxUtils.htmlEntities(n)+"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(mxResources.get("pickFolder"))+"...",G.setAttribute("value","pickFolder-"+D),G.setAttribute("title",n+" - "+mxResources.get("pickFolder")+"...");else{var M=D+
+(null!=L?"-"+L:""),N=q[M];null!=N&&null!=N.option&&N.option.parentNode.removeChild(N.option);N=null;if(null!=J){"/"==J.charAt(J.length-1)&&(J=J.substring(0,J.length-1));"/"==J.charAt(0)&&(J=J.substring(1));N=J;if(D!=App.MODE_GITHUB&&D==App.MODE_GITLAB){var Q=N.lastIndexOf("/");0<=Q&&(N=N.substring(Q+1))}40<N.length&&(N=N.substring(0,20)+"..."+N.substring(N.length-20))}G.innerHTML=mxUtils.htmlEntities(n)+(null!=N?"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(N):"");G.setAttribute("title",n+
+(null!=J?" ("+J+")":"")+(null!=L&&decodeURIComponent(L)!=J?" ["+L+"]":""));G.setAttribute("value",M);q[M]={option:G,mode:D,path:J,id:L};SaveDialog.lastValue==M&&null==t?K=!0:null==K&&("root"==z?K=null==t&&b.mode==D||null!=D&&D==t:"pickFolder-"==P.value.substring(0,11)&&(K=!0));K&&G.setAttribute("selected","selected")}P.appendChild(G)}return G}function H(D){b.pickFolder(D,function(J){var L=null;D==App.MODE_GOOGLE&&null!=J.docs&&0<J.docs.length?L={mode:D,path:J.docs[0].name,id:J.docs[0].id}:D==App.MODE_ONEDRIVE&&
+null!=J.value&&0<J.value.length?L={mode:D,path:J.value[0].name,id:OneDriveFile.prototype.getIdOf(J.value[0])}:(D==App.MODE_GITHUB||D==App.MODE_GITLAB)&&null!=J&&0<J.length&&(L={mode:D,path:decodeURIComponent(J),id:J});null!=L&&(R.style.display="",b.addRecent(L,"Folders",5),J=E(L.mode,L.path,L.id,!0),P.innerHTML="",q={},B(),L=P.selectedIndex,P.value=J.value,0>P.selectedIndex&&(P.selectedIndex=L))},!0,!0,!0,!0)}function B(){var D=b.getRecent("Folders"),J=0;if(null!=D&&0<D.length){for(var L=0;L<D.length;L++)null!=
+E(D[L].mode,D[L].path,D[L].id)&&J++;0<J&&P.appendChild(O.cloneNode(!0))}E(App.MODE_GOOGLE,mxResources.get("myDrive"),"root",null,null,"root");E(App.MODE_GOOGLE,null,null,null,null,"pick");null!=b.oneDrive&&(E(App.MODE_ONEDRIVE,mxResources.get("myFiles"),OneDriveFile.prototype.getIdOf(b.oneDrive.rootId),null,null,"root"),E(App.MODE_ONEDRIVE,null,null,null,null,"pick"));null!=b.dropbox&&E(App.MODE_DROPBOX,"Apps"+b.dropbox.appPath);E(App.MODE_GITHUB,null,null,null,null,"pick");E(App.MODE_GITLAB,null,
+null,null,null,"pick");E(App.MODE_TRELLO);D=!Editor.useLocalStorage||"device"==urlParams.storage||null!=b.getCurrentFile()&&"1"!=urlParams.noDevice;EditorUi.nativeFileSupport&&D&&E(App.MODE_DEVICE,null,null,b.mode==App.MODE_DEVICE||null!=c&&0<=mxUtils.indexOf(c,App.MODE_BROWSER)?!0:null);isLocalStorage&&"0"!=urlParams.browser&&E(App.MODE_BROWSER);D&&E("download");Editor.popupsAllowed&&E("_blank",null,null,null,mxResources.get("openInNewWindow"));0<J&&(P.appendChild(O.cloneNode(!0)),J=P.value,P.appendChild(R),
+P.value=J);if("pickFolder-"==P.value.substring(0,11)||"reset"==P.value)J=document.createElement("option"),J.setAttribute("value",""),J.setAttribute("selected","selected"),mxUtils.write(J,mxResources.get("pickFolder")+"..."),P.insertBefore(J,P.firstChild);V=P.value}function d(){if("reset"==P.value)b.resetRecent("Folders"),P.innerHTML="",P.value="",pickFolderOption=null,q={},B();else if("pickFolder-"==P.value.substring(0,11)){var D=P.value.substring(11);P.value=V;H(D)}else if(null!=C&&null!=q[P.value]&&
+null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[C.value].extension){D=b.getExtensionForService(q[P.value].mode);var J=F.value;null!=D&&0>e.indexOf(".")&&0>J.indexOf(".")&&(F.value=J+D)}y.innerHTML="";mxUtils.write(y,mxResources.get("download"==P.value||"_blank"==P.value?"ok":"save"));""==P.value?y.setAttribute("disabled","disabled"):y.removeAttribute("disabled")}var g=document.createElement("div");g.style.display="flex";g.style.flexWrap="wrap";g.style.whiteSpace="nowrap";var k=
+document.createElement("div");k.style.display="grid";k.style.gap="5px 8px";k.style.gridAutoRows="auto auto 44px";k.style.gridAutoColumns="0fr minmax(0,1fr)";k.style.width="100%";var m=null,u=null;if(null!=l&&null!=p&&"image/"==p.substring(0,6)&&("image/svg"!=p.substring(0,9)||mxClient.IS_SVG)){k.style.display="inline-grid";k.style.flexBasis="75%";m=document.createElement("div");m.style.display="inline-block";m.style.height="auto";m.style.maxWidth="25%";m.style.margin="auto";var x=document.createElement("img"),
+A=v?l:btoa(unescape(encodeURIComponent(l)));x.setAttribute("src","data:"+p+";base64,"+A);x.style.boxSizing="border-box";x.style.maxHeight="50px";x.style.maxWidth="100%";x.style.paddingLeft="10px";m.appendChild(x);mxClient.IS_FF||"image/png"!=p||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||(u=mxUtils.button(mxResources.get("copy"),function(){var D=b.base64ToBlob(A,"image/png");D=new ClipboardItem({"image/png":D,"text/html":new Blob(['<img src="data:'+p+";base64,"+A+'">'],{type:"text/html"})});
+navigator.clipboard.write([D]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(J){b.handleError(J)}))},null,"geBtn"));Editor.popupsAllowed&&(null==c||0>mxUtils.indexOf(c,"_blank"))?(m.setAttribute("title",mxResources.get("openInNewWindow")),m.style.cursor="pointer",mxEvent.addGestureListeners(m,null,null,function(D){mxEvent.isPopupTrigger(D)||b.openInNewWindow(l,p,v)})):m.setAttribute("title",mxResources.get("preview"))}x=document.createElement("div");
+x.style.display="flex";x.style.padding="1px";x.style.alignItems="center";x.style.justifyContent="flex-end";x.style.gridColumn="1";x.style.whiteSpace="nowrap";var I=document.createElement("div");I.style.display="grid";I.style.padding="1px";I.style.alignItems="center";I.style.gridColumn="2";I.style.gridAutoColumns="minmax(0,1fr) auto";I.style.gap="6px";mxUtils.write(x,mxResources.get("saveAs")+":");var F=document.createElement("input");F.setAttribute("type","text");F.setAttribute("value",e);F.style.boxSizing=
+"border-box";F.style.width="100%";I.appendChild(F);k.appendChild(x);k.appendChild(I);var C=null;null!=b.editor.diagramFileTypes&&null==p&&(x=x.cloneNode(!1),I=I.cloneNode(!1),mxUtils.write(x,mxResources.get("type")+":"),C=FilenameDialog.createFileTypes(b,F,b.editor.diagramFileTypes),C.style.boxSizing="border-box",C.style.width="100%",I.appendChild(C),k.appendChild(x),k.appendChild(I));x=x.cloneNode(!1);I=I.cloneNode(!1);mxUtils.write(x,mxResources.get("where")+":");var P=document.createElement("select");
+P.style.textOverflow="ellipsis";P.style.gridColumn="1";var R=document.createElement("option");mxUtils.write(R,mxResources.get("reset"));R.setAttribute("value","reset");var U=["browser","device","download","_blank"],O=document.createElement("option");O.setAttribute("disabled","disabled");O.innerHTML="-----------------";var V=null,q={},y=mxUtils.button(mxResources.get("save"),function(){SaveDialog.lastValue=P.value;var D=q[SaveDialog.lastValue];null!=D&&f(F,D.mode,D.id)},null,"geBtn gePrimaryBtn");
+mxEvent.addListener(F,"keypress",function(D){13==D.keyCode&&y.click()});mxEvent.addListener(P,"change",d);B();d();I.appendChild(P);null!=SaveDialog.lastValue&&null!=q[SaveDialog.lastValue]&&(P.value=SaveDialog.lastValue);k.appendChild(x);k.appendChild(I);g.appendChild(k);null!=m&&g.appendChild(m);k=document.createElement("div");k.style.flexBasis="100%";k.style.textAlign="right";k.style.marginTop=null!=p?"16px":"8px";b.isOffline()&&!mxClient.IS_CHROMEAPP||k.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/save-file-formats"));
+m=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()},null,"geBtn");b.editor.cancelFirst&&k.appendChild(m);null!=u&&k.appendChild(u);k.appendChild(y);b.editor.cancelFirst||k.appendChild(m);g.appendChild(k);this.init=function(){Editor.selectFilename(F)};this.container=g},CreateDialog=function(b,e,f,c,l,p,v,t,E,H,B,d,g,k,m,u,x){function A(V,q,y,D){function J(){mxEvent.addListener(L,"click",function(){var M=y;if(v){var N=C.value,Q=N.lastIndexOf(".");if(0>e.lastIndexOf(".")&&0>Q){M=null!=
+M?M:O.value;var S="";M==App.MODE_GOOGLE?S=b.drive.extension:M==App.MODE_GITHUB?S=b.gitHub.extension:M==App.MODE_GITLAB?S=b.gitLab.extension:M==App.MODE_TRELLO?S=b.trello.extension:M==App.MODE_DROPBOX?S=b.dropbox.extension:M==App.MODE_ONEDRIVE?S=b.oneDrive.extension:M==App.MODE_DEVICE&&(S=".drawio");0<=Q&&(N=N.substring(0,Q));C.value=N+S}}I(y)})}var L=document.createElement("a");L.style.overflow="hidden";var K=document.createElement("img");K.src=V;K.setAttribute("border","0");K.setAttribute("align",
+"absmiddle");K.style.width="60px";K.style.height="60px";K.style.paddingBottom="6px";L.style.display="inline-block";L.className="geBaseButton";L.style.position="relative";L.style.margin="4px";L.style.padding="8px 8px 10px 8px";L.style.whiteSpace="nowrap";L.appendChild(K);L.style.color="gray";L.style.fontSize="11px";var n=document.createElement("div");L.appendChild(n);mxUtils.write(n,q);if(null!=D&&null==b[D]){K.style.visibility="hidden";mxUtils.setOpacity(n,10);var z=new Spinner({lines:12,length:12,
+width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});z.spin(L);var G=window.setTimeout(function(){null==b[D]&&(z.stop(),L.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[D]&&(window.clearTimeout(G),mxUtils.setOpacity(n,100),K.style.visibility="",z.stop(),J())}))}else J();R.appendChild(L);++U==d&&(mxUtils.br(R),U=0)}function I(V){var q=C.value;if(null==V||null!=q&&0<q.length)x&&b.hideDialog(),
+f(q,V,C)}B="1"==urlParams.noDevice?!1:B;v=null!=v?v:!0;t=null!=t?t:!0;d=null!=d?d:4;x=null!=x?x:!0;p=document.createElement("div");p.style.whiteSpace="nowrap";null==c&&b.addLanguageMenu(p);var F=document.createElement("h2");mxUtils.write(F,l||mxResources.get("create"));F.style.marginTop="0px";F.style.marginBottom="24px";p.appendChild(F);l=document.createElement("span");mxUtils.write(l,mxResources.get("filename")+":");l.style.maxWidth="106px";l.style.overflow="hidden";l.style.textOverflow="ellipsis";
+l.style.display="inline-block";p.appendChild(l);var C=document.createElement("input");C.setAttribute("value",e);C.style.width="180px";C.style.marginLeft="10px";C.style.marginBottom="20px";C.style.maxWidth="70%";this.init=function(){Editor.selectFilename(C)};p.appendChild(C);null!=u&&null!=b.editor.diagramFileTypes&&(u=FilenameDialog.createFileTypes(b,C,b.editor.diagramFileTypes),u.style.marginLeft="6px",u.style.width="90px",p.appendChild(u));u=null;if("1"!=urlParams.noDevice&&null!=g&&null!=k&&"image/"==
+k.substring(0,6)&&("image/svg"!=k.substring(0,9)||mxClient.IS_SVG)){C.style.width="160px";l=document.createElement("img");var P=m?g:btoa(unescape(encodeURIComponent(g)));l.setAttribute("src","data:"+k+";base64,"+P);l.style.position="absolute";l.style.top="70px";l.style.right="100px";l.style.maxWidth="120px";l.style.maxHeight="80px";mxUtils.setPrefixedStyle(l.style,"transform","translate(50%,-50%)");p.appendChild(l);mxClient.IS_FF||"image/png"!=k||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||
+(u=mxUtils.button(mxResources.get("copy"),function(V){V=b.base64ToBlob(P,"image/png");V=new ClipboardItem({"image/png":V,"text/html":new Blob(['<img src="data:'+k+";base64,"+P+'">'],{type:"text/html"})});navigator.clipboard.write([V]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(q){b.handleError(q)}))}),u.style.marginTop="6px",u.className="geBtn");E&&Editor.popupsAllowed&&(l.style.cursor="pointer",mxEvent.addGestureListeners(l,
+null,null,function(V){mxEvent.isPopupTrigger(V)||I("_blank")}))}mxUtils.br(p);var R=document.createElement("div");R.style.textAlign="center";var U=0;R.style.marginTop="6px";p.appendChild(R);var O=document.createElement("select");O.style.marginLeft="10px";b.isOfflineApp()||b.isOffline()||("function"===typeof window.DriveClient&&(g=document.createElement("option"),g.setAttribute("value",App.MODE_GOOGLE),mxUtils.write(g,mxResources.get("googleDrive")),O.appendChild(g),A(IMAGE_PATH+"/google-drive-logo.svg",
+mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive")),"function"===typeof window.OneDriveClient&&(g=document.createElement("option"),g.setAttribute("value",App.MODE_ONEDRIVE),mxUtils.write(g,mxResources.get("oneDrive")),O.appendChild(g),b.mode==App.MODE_ONEDRIVE&&g.setAttribute("selected","selected"),A(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive")),"function"===typeof window.DropboxClient&&(g=document.createElement("option"),g.setAttribute("value",App.MODE_DROPBOX),
+mxUtils.write(g,mxResources.get("dropbox")),O.appendChild(g),b.mode==App.MODE_DROPBOX&&g.setAttribute("selected","selected"),A(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),App.MODE_DROPBOX,"dropbox")),null!=b.gitHub&&(g=document.createElement("option"),g.setAttribute("value",App.MODE_GITHUB),mxUtils.write(g,mxResources.get("github")),O.appendChild(g),A(IMAGE_PATH+"/github-logo.svg",mxResources.get("github"),App.MODE_GITHUB,"gitHub")),null!=b.gitLab&&(g=document.createElement("option"),
+g.setAttribute("value",App.MODE_GITLAB),mxUtils.write(g,mxResources.get("gitlab")),O.appendChild(g),A(IMAGE_PATH+"/gitlab-logo.svg",mxResources.get("gitlab"),App.MODE_GITLAB,"gitLab")),"function"===typeof window.TrelloClient&&(g=document.createElement("option"),g.setAttribute("value",App.MODE_TRELLO),mxUtils.write(g,mxResources.get("trello")),O.appendChild(g),A(IMAGE_PATH+"/trello-logo.svg",mxResources.get("trello"),App.MODE_TRELLO,"trello")));if(!Editor.useLocalStorage||"device"==urlParams.storage||
+null!=b.getCurrentFile()&&"1"!=urlParams.noDevice)g=document.createElement("option"),g.setAttribute("value",App.MODE_DEVICE),mxUtils.write(g,mxResources.get("device")),O.appendChild(g),b.mode!=App.MODE_DEVICE&&t||g.setAttribute("selected","selected"),B&&A(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);t&&isLocalStorage&&"0"!=urlParams.browser&&(t=document.createElement("option"),t.setAttribute("value",App.MODE_BROWSER),mxUtils.write(t,mxResources.get("browser")),O.appendChild(t),
+b.mode==App.MODE_BROWSER&&t.setAttribute("selected","selected"),A(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER));t=document.createElement("div");t.style.marginTop="26px";t.style.textAlign="center";null!=H&&(B=mxUtils.button(mxResources.get("help"),function(){b.openLink(H)}),B.className="geBtn",t.appendChild(B));B=mxUtils.button(mxResources.get(null!=c?"close":"cancel"),function(){null!=c?c():(b.fileLoaded(null),b.hideDialog(),window.close(),window.location.href=b.getUrl())});
+B.className="geBtn";b.editor.cancelFirst&&null==c&&t.appendChild(B);null==c&&(g=mxUtils.button(mxResources.get("decideLater"),function(){I(null)}),g.className="geBtn",t.appendChild(g));E&&Editor.popupsAllowed&&(E=mxUtils.button(mxResources.get("openInNewWindow"),function(){I("_blank")}),E.className="geBtn",t.appendChild(E));CreateDialog.showDownloadButton&&(E=mxUtils.button(mxResources.get("download"),function(){I("download")}),E.className="geBtn",t.appendChild(E),null!=u&&(E.style.marginTop="6px",
+t.style.marginTop="6px"));null!=u&&(mxUtils.br(t),t.appendChild(u));b.editor.cancelFirst&&null==c||t.appendChild(B);mxEvent.addListener(C,"keypress",function(V){13==V.keyCode?I(App.MODE_DEVICE):27==V.keyCode&&(b.fileLoaded(null),b.hideDialog(),window.close())});p.appendChild(t);this.container=p};CreateDialog.showDownloadButton="1"!=urlParams.noDevice;
+var PopupDialog=function(b,e,f,c,l){l=null!=l?l:!0;var p=document.createElement("div");p.style.textAlign="center";p.style.height="100%";mxUtils.write(p,mxResources.get("fileOpenLocation"));mxUtils.br(p);mxUtils.br(p);var v=mxUtils.button(mxResources.get("openInThisWindow"),function(){l&&b.hideDialog();null!=c&&c()});v.className="geBtn";v.style.marginBottom="8px";v.style.width="280px";p.appendChild(v);mxUtils.br(p);var t=mxUtils.button(mxResources.get("openInNewWindow"),function(){l&&b.hideDialog();
+null!=f&&f();b.openLink(e,null,!0)});t.className="geBtn gePrimaryBtn";t.style.width=v.style.width;p.appendChild(t);mxUtils.br(p);mxUtils.br(p);mxUtils.write(p,mxResources.get("allowPopups"));this.container=p},ImageDialog=function(b,e,f,c,l,p,v,t){function E(){0<d.value.length?I.removeAttribute("disabled"):I.setAttribute("disabled","disabled");"data:"!=d.value.substring(0,5)?F.removeAttribute("disabled"):F.setAttribute("disabled","disabled")}p=null!=p?p:!0;var H=b.editor.graph,B=document.createElement("div");
mxUtils.write(B,e);e=document.createElement("div");e.className="geTitle";e.style.backgroundColor="transparent";e.style.borderColor="transparent";e.style.whiteSpace="nowrap";e.style.textOverflow="clip";e.style.cursor="default";e.style.paddingRight="20px";var d=document.createElement("input");d.setAttribute("value",f);d.setAttribute("type","text");d.setAttribute("spellcheck","false");d.setAttribute("autocorrect","off");d.setAttribute("autocomplete","off");d.setAttribute("autocapitalize","off");d.style.marginTop=
"6px";d.style.width=(Graph.fileSupport?460:340)-20+"px";d.style.backgroundImage="url('"+Editor.crossImage+"')";d.style.backgroundRepeat="no-repeat";d.style.backgroundPosition="100% 50%";d.style.paddingRight="14px";f=document.createElement("div");f.setAttribute("title",mxResources.get("reset"));f.style.position="relative";f.style.left="-16px";f.style.width="12px";f.style.height="14px";f.style.cursor="pointer";f.style.display="inline-block";f.style.top="3px";f.style.background="url('"+b.editor.transparentImage+
-"')";mxEvent.addListener(f,"click",function(){d.value="";d.focus()});e.appendChild(d);e.appendChild(f);B.appendChild(e);var g=v,k,m,t=function(C,Q,S,V){var P="data:"==C.substring(0,5);!b.isOffline()||P&&"undefined"===typeof chrome?0<C.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(C,function(u){b.spinner.stop();b.hideDialog();var x=!1===V?1:null!=Q&&null!=S?Math.max(Q/u.width,S/u.height):Math.min(1,Math.min(520/u.width,520/u.height));p&&(C=b.convertDataUri(C));c(C,
-Math.round(Number(u.width)*x),Math.round(Number(u.height)*x),g,k,m)},function(){b.spinner.stop();c(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),c(C,null,null,g,k,m)):(C=b.convertDataUri(C),Q=null==Q?120:Q,S=null==S?100:S,b.hideDialog(),c(C,Q,S,g,k,m))},y=function(C,Q){if(null!=C){var S=l?null:G.getModel().getGeometry(G.getSelectionCell());null!=S?t(C,S.width,S.height,Q):t(C,null,null,Q)}else b.hideDialog(),c(null)};this.init=function(){d.focus();
-if(Graph.fileSupport){d.setAttribute("placeholder",mxResources.get("dragImagesHere"));var C=B.parentNode,Q=null;mxEvent.addListener(C,"dragleave",function(S){null!=Q&&(Q.parentNode.removeChild(Q),Q=null);S.stopPropagation();S.preventDefault()});mxEvent.addListener(C,"dragover",mxUtils.bind(this,function(S){null==Q&&(!mxClient.IS_IE||10<document.documentMode)&&(Q=b.highlightElement(C));S.stopPropagation();S.preventDefault()}));mxEvent.addListener(C,"drop",mxUtils.bind(this,function(S){null!=Q&&(Q.parentNode.removeChild(Q),
-Q=null);if(0<S.dataTransfer.files.length)b.importFiles(S.dataTransfer.files,0,0,b.maxImageSize,function(P,u,x,J,H,K,N,M){y(P,M)},function(){},function(P){return"image/"==P.type.substring(0,6)},function(P){for(var u=0;u<P.length;u++)P[u]()},!mxEvent.isControlDown(S),null,null,!0);else if(0<=mxUtils.indexOf(S.dataTransfer.types,"text/uri-list")){var V=S.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)($|\?)/i.test(V)&&y(decodeURIComponent(V))}S.stopPropagation();S.preventDefault()}),
-!1)}};v=document.createElement("div");v.style.marginTop="14px";v.style.textAlign="center";f=mxUtils.button(mxResources.get("cancel"),function(){b.spinner.stop();b.hideDialog()});f.className="geBtn";b.editor.cancelFirst&&v.appendChild(f);ImageDialog.filePicked=function(C){C.action==google.picker.Action.PICKED&&null!=C.docs[0].thumbnails&&(C=C.docs[0].thumbnails[C.docs[0].thumbnails.length-1],null!=C&&(d.value=C.url));d.focus()};if(Graph.fileSupport){if(null==b.imgDlgFileInputElt){var z=document.createElement("input");
-z.setAttribute("multiple","multiple");z.setAttribute("type","file");mxEvent.addListener(z,"change",function(C){null!=z.files&&(b.importFiles(z.files,0,0,b.maxImageSize,function(Q,S,V,P,u,x){y(Q)},function(){},function(Q){return"image/"==Q.type.substring(0,6)},function(Q){for(var S=0;S<Q.length;S++)Q[S]()},!0),z.type="",z.type="file",z.value="")});z.style.display="none";document.body.appendChild(z);b.imgDlgFileInputElt=z}e=mxUtils.button(mxResources.get("open"),function(){b.imgDlgFileInputElt.click()});
-e.className="geBtn";v.appendChild(e)}mxEvent.addListener(d,"keypress",function(C){13==C.keyCode&&y(d.value)});var I=mxUtils.button(mxResources.get("crop"),function(){var C=new CropImageDialog(b,d.value,g,function(Q,S,V){g=Q;k=S;m=V});b.showDialog(C.container,300,390,!0,!0)});q&&(I.className="geBtn",v.appendChild(I));var F=mxUtils.button(mxResources.get("embed"),function(){if("data:"!=d.value.substring(0,5)&&b.spinner.spin(document.body,mxResources.get("loading"))){var C=b.editor.createImageUrlConverter().convert(d.value),
-Q=new Image;Q.onload=function(){b.editor.convertImageToDataUri(C,function(S){b.confirmImageResize(function(V){b.resizeImage(Q,S,mxUtils.bind(this,function(P,u,x){b.spinner.stop();null!=P&&P.length<b.maxImageBytes?(d.value=P,D()):b.handleError({message:mxResources.get("imageTooBig")})}),V,b.maxImageSize)},Q.width>b.maxImageSize||Q.height>b.maxImageSize||S.length>b.maxImageBytes)},mxUtils.bind(this,function(){b.handleError({message:mxResources.get("fileNotFound")})}))};Q.onerror=function(){b.spinner.stop();
-b.handleError({message:mxResources.get("fileNotFound")})};Q.src=C}});F.className="geBtn";mxEvent.addListener(d,"change",function(C){g=null;D()});D();v.appendChild(F);q=mxUtils.button(mxResources.get("apply"),function(){y(d.value)});q.className="geBtn gePrimaryBtn";v.appendChild(q);b.editor.cancelFirst||v.appendChild(f);Graph.fileSupport&&(v.style.marginTop="120px",B.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",B.style.backgroundPosition="center 65%",B.style.backgroundRepeat="no-repeat",
-q=document.createElement("div"),q.style.position="absolute",q.style.width="420px",q.style.top="58%",q.style.textAlign="center",q.style.fontSize="18px",q.style.color="#a0c3ff",mxUtils.write(q,mxResources.get("dragImagesHere")),B.appendChild(q));B.appendChild(v);this.container=B},LinkDialog=function(b,e,f,c,l,p,q){function v(C,Q){var S=document.createElement("option");mxUtils.write(S,mxResources.get(C));S.value=C;I.appendChild(S);F[C]=Q}var D=document.createElement("div");D.style.height="100%";mxUtils.write(D,
-mxResources.get("editLink")+":");var G=document.createElement("div");G.className="geUrlLinkContainer";G.style.backgroundColor="transparent";G.style.borderColor="transparent";G.style.whiteSpace="nowrap";G.style.textOverflow="clip";G.style.cursor="default";var B=document.createElement("input");B.setAttribute("placeholder",mxResources.get("dragUrlsHere"));B.setAttribute("type","text");B.style.marginTop="6px";B.style.width="414px";B.style.boxSizing="border-box";B.style.backgroundRepeat="no-repeat";B.style.backgroundPosition=
+"')";mxEvent.addListener(f,"click",function(){d.value="";d.focus()});e.appendChild(d);e.appendChild(f);B.appendChild(e);var g=t,k,m,u=function(C,P,R,U){var O="data:"==C.substring(0,5);!b.isOffline()||O&&"undefined"===typeof chrome?0<C.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(C,function(V){b.spinner.stop();b.hideDialog();var q=!1===U?1:null!=P&&null!=R?Math.max(P/V.width,R/V.height):Math.min(1,Math.min(520/V.width,520/V.height));p&&(C=b.convertDataUri(C));c(C,
+Math.round(Number(V.width)*q),Math.round(Number(V.height)*q),g,k,m)},function(){b.spinner.stop();c(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),c(C,null,null,g,k,m)):(C=b.convertDataUri(C),P=null==P?120:P,R=null==R?100:R,b.hideDialog(),c(C,P,R,g,k,m))},x=function(C,P){if(null!=C){var R=l?null:H.getModel().getGeometry(H.getSelectionCell());null!=R?u(C,R.width,R.height,P):u(C,null,null,P)}else b.hideDialog(),c(null)};this.init=function(){d.focus();
+if(Graph.fileSupport){d.setAttribute("placeholder",mxResources.get("dragImagesHere"));var C=B.parentNode,P=null;mxEvent.addListener(C,"dragleave",function(R){null!=P&&(P.parentNode.removeChild(P),P=null);R.stopPropagation();R.preventDefault()});mxEvent.addListener(C,"dragover",mxUtils.bind(this,function(R){null==P&&(!mxClient.IS_IE||10<document.documentMode)&&(P=b.highlightElement(C));R.stopPropagation();R.preventDefault()}));mxEvent.addListener(C,"drop",mxUtils.bind(this,function(R){null!=P&&(P.parentNode.removeChild(P),
+P=null);if(0<R.dataTransfer.files.length)b.importFiles(R.dataTransfer.files,0,0,b.maxImageSize,function(O,V,q,y,D,J,L,K){x(O,K)},function(){},function(O){return"image/"==O.type.substring(0,6)},function(O){for(var V=0;V<O.length;V++)O[V]()},!mxEvent.isControlDown(R),null,null,!0);else if(0<=mxUtils.indexOf(R.dataTransfer.types,"text/uri-list")){var U=R.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)($|\?)/i.test(U)&&x(decodeURIComponent(U))}R.stopPropagation();R.preventDefault()}),
+!1)}};t=document.createElement("div");t.style.marginTop="14px";t.style.textAlign="center";f=mxUtils.button(mxResources.get("cancel"),function(){b.spinner.stop();b.hideDialog()});f.className="geBtn";b.editor.cancelFirst&&t.appendChild(f);ImageDialog.filePicked=function(C){C.action==google.picker.Action.PICKED&&null!=C.docs[0].thumbnails&&(C=C.docs[0].thumbnails[C.docs[0].thumbnails.length-1],null!=C&&(d.value=C.url));d.focus()};if(Graph.fileSupport){if(null==b.imgDlgFileInputElt){var A=document.createElement("input");
+A.setAttribute("multiple","multiple");A.setAttribute("type","file");mxEvent.addListener(A,"change",function(C){null!=A.files&&(b.importFiles(A.files,0,0,b.maxImageSize,function(P,R,U,O,V,q){x(P)},function(){},function(P){return"image/"==P.type.substring(0,6)},function(P){for(var R=0;R<P.length;R++)P[R]()},!0),A.type="",A.type="file",A.value="")});A.style.display="none";document.body.appendChild(A);b.imgDlgFileInputElt=A}e=mxUtils.button(mxResources.get("open"),function(){b.imgDlgFileInputElt.click()});
+e.className="geBtn";t.appendChild(e)}mxEvent.addListener(d,"keypress",function(C){13==C.keyCode&&x(d.value)});var I=mxUtils.button(mxResources.get("crop"),function(){var C=new CropImageDialog(b,d.value,g,function(P,R,U){g=P;k=R;m=U});b.showDialog(C.container,300,390,!0,!0)});v&&(I.className="geBtn",t.appendChild(I));var F=mxUtils.button(mxResources.get("embed"),function(){if("data:"!=d.value.substring(0,5)&&b.spinner.spin(document.body,mxResources.get("loading"))){var C=b.editor.createImageUrlConverter().convert(d.value),
+P=new Image;P.onload=function(){b.editor.convertImageToDataUri(C,function(R){b.confirmImageResize(function(U){b.resizeImage(P,R,mxUtils.bind(this,function(O,V,q){b.spinner.stop();null!=O&&O.length<b.maxImageBytes?(d.value=O,E()):b.handleError({message:mxResources.get("imageTooBig")})}),U,b.maxImageSize)},P.width>b.maxImageSize||P.height>b.maxImageSize||R.length>b.maxImageBytes)},mxUtils.bind(this,function(){b.handleError({message:mxResources.get("fileNotFound")})}))};P.onerror=function(){b.spinner.stop();
+b.handleError({message:mxResources.get("fileNotFound")})};P.src=C}});F.className="geBtn";mxEvent.addListener(d,"change",function(C){g=null;E()});E();t.appendChild(F);v=mxUtils.button(mxResources.get("apply"),function(){x(d.value)});v.className="geBtn gePrimaryBtn";t.appendChild(v);b.editor.cancelFirst||t.appendChild(f);Graph.fileSupport&&(t.style.marginTop="120px",B.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",B.style.backgroundPosition="center 65%",B.style.backgroundRepeat="no-repeat",
+v=document.createElement("div"),v.style.position="absolute",v.style.width="420px",v.style.top="58%",v.style.textAlign="center",v.style.fontSize="18px",v.style.color="#a0c3ff",mxUtils.write(v,mxResources.get("dragImagesHere")),B.appendChild(v));B.appendChild(t);this.container=B},LinkDialog=function(b,e,f,c,l,p,v){function t(C,P){var R=document.createElement("option");mxUtils.write(R,mxResources.get(C));R.value=C;I.appendChild(R);F[C]=P}var E=document.createElement("div");E.style.height="100%";mxUtils.write(E,
+mxResources.get("editLink")+":");var H=document.createElement("div");H.className="geUrlLinkContainer";H.style.backgroundColor="transparent";H.style.borderColor="transparent";H.style.whiteSpace="nowrap";H.style.textOverflow="clip";H.style.cursor="default";var B=document.createElement("input");B.setAttribute("placeholder",mxResources.get("dragUrlsHere"));B.setAttribute("type","text");B.style.marginTop="6px";B.style.width="414px";B.style.boxSizing="border-box";B.style.backgroundRepeat="no-repeat";B.style.backgroundPosition=
"100% 50%";B.style.paddingRight="16px";B.style.marginBottom="4px";var d=document.createElement("div");d.setAttribute("title",mxResources.get("reset"));d.style.backgroundImage="url("+Editor.crossImage+")";d.className="geAdaptiveAsset";d.style.display="inline-block";d.style.position="relative";d.style.top="3px";d.style.left="-16px";d.style.width="12px";d.style.height="14px";d.style.cursor="pointer";mxEvent.addListener(d,"click",function(){B.value="";B.focus()});var g=document.createElement("input");
-g.style.cssText="margin-right:8px;margin-bottom:8px;";g.setAttribute("value","url");g.setAttribute("type","radio");g.setAttribute("name","geLinkDialogOption");var k=document.createElement("input");k.style.cssText="margin-right:8px;margin-bottom:8px;";k.setAttribute("value","url");k.setAttribute("type","radio");k.setAttribute("name","geLinkDialogOption");var m=document.createElement("select");m.style.width="414px";var t=document.createElement("input");t.setAttribute("type","checkbox");t.style.margin=
-"0 6p 0 6px";null!=q&&(t.setAttribute("checked","checked"),t.defaultChecked=!0);q=null!=q?q:"_blank";t.setAttribute("title",q);p&&(B.style.width="200px");if(l&&null!=b.pages){null!=e&&Graph.isPageLink(e)?(k.setAttribute("checked","checked"),k.defaultChecked=!0):(B.setAttribute("value",e),g.setAttribute("checked","checked"),g.defaultChecked=!0);G.appendChild(g);G.appendChild(B);G.appendChild(d);p&&(G.appendChild(t),mxUtils.write(G,mxResources.get("openInNewWindow")));mxUtils.br(G);G.appendChild(k);
-l=!1;for(p=0;p<b.pages.length;p++)d=document.createElement("option"),mxUtils.write(d,b.pages[p].getName()||mxResources.get("pageWithNumber",[p+1])),d.setAttribute("value","data:page/id,"+b.pages[p].getId()),e==d.getAttribute("value")&&(d.setAttribute("selected","selected"),l=!0),m.appendChild(d);if(!l&&k.checked){var y=document.createElement("option");mxUtils.write(y,mxResources.get("pageNotFound"));y.setAttribute("disabled","disabled");y.setAttribute("selected","selected");y.setAttribute("value",
-"pageNotFound");m.appendChild(y);mxEvent.addListener(m,"change",function(){null==y.parentNode||y.selected||y.parentNode.removeChild(y)})}G.appendChild(m)}else B.setAttribute("value",e),G.appendChild(B),G.appendChild(d);D.appendChild(G);var z=mxUtils.button(f,function(){b.hideDialog();c(k.checked?"pageNotFound"!==m.value?m.value:e:B.value,LinkDialog.selectedDocs,t.checked?q:null)});z.style.verticalAlign="middle";z.className="geBtn gePrimaryBtn";this.init=function(){k.checked?m.focus():(B.focus(),mxClient.IS_GC||
-mxClient.IS_FF||5<=document.documentMode?B.select():document.execCommand("selectAll",!1,null));mxEvent.addListener(m,"focus",function(){g.removeAttribute("checked");k.setAttribute("checked","checked");k.checked=!0});mxEvent.addListener(B,"focus",function(){k.removeAttribute("checked");g.setAttribute("checked","checked");g.checked=!0});if(Graph.fileSupport){var C=D.parentNode,Q=null;mxEvent.addListener(C,"dragleave",function(S){null!=Q&&(Q.parentNode.removeChild(Q),Q=null);S.stopPropagation();S.preventDefault()});
-mxEvent.addListener(C,"dragover",mxUtils.bind(this,function(S){null==Q&&(!mxClient.IS_IE||10<document.documentMode)&&(Q=b.highlightElement(C));S.stopPropagation();S.preventDefault()}));mxEvent.addListener(C,"drop",mxUtils.bind(this,function(S){try{null!=Q&&(Q.parentNode.removeChild(Q),Q=null),0<=mxUtils.indexOf(S.dataTransfer.types,"text/uri-list")&&(B.value=decodeURIComponent(S.dataTransfer.getData("text/uri-list")),g.setAttribute("checked","checked"),g.checked=!0,z.click())}catch(V){b.handleError(V)}S.stopPropagation();
-S.preventDefault()}),!1)}};f=document.createElement("div");f.style.marginTop="16px";f.style.textAlign="right";b.isOffline()||f.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/custom-links"));G=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});G.style.verticalAlign="middle";G.className="geBtn";b.editor.cancelFirst&&f.appendChild(G);LinkDialog.selectedDocs=null;LinkDialog.filePicked=function(C){if(C.action==google.picker.Action.PICKED){LinkDialog.selectedDocs=C.docs;
-var Q=C.docs[0].url;"application/mxe"==C.docs[0].mimeType||null!=C.docs[0].mimeType&&"application/vnd.jgraph."==C.docs[0].mimeType.substring(0,23)?Q="https://www.draw.io/#G"+C.docs[0].id:"application/vnd.google-apps.folder"==C.docs[0].mimeType&&(Q="https://drive.google.com/#folders/"+C.docs[0].id);B.value=Q;B.focus()}else LinkDialog.selectedDocs=null;B.focus()};var I=document.createElement("select");I.className="geBtn";I.style.position="relative";I.style.top="1px";I.style.maxWidth="120px";var F={};
-l=document.createElement("option");mxUtils.write(l,mxResources.get("select")+"...");l.value="";I.appendChild(l);"undefined"!=typeof google&&"undefined"!=typeof google.picker&&null!=b.drive&&v("googleDrive",function(){b.spinner.spin(document.body,mxResources.get("authorizing"))&&b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();if(null==b.linkPicker){var C=b.drive.createLinkPicker();b.linkPicker=C.setCallback(function(Q){LinkDialog.filePicked(Q)}).build()}b.linkPicker.setVisible(!0)}))});
-"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&v("dropbox",function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(C){B.value=C[0].link;B.focus()}})});null!=b.oneDrive&&v("oneDrive",function(){b.oneDrive.pickFile(function(C,Q){null!=Q&&null!=Q.value&&0<Q.value.length&&(B.value=Q.value[0].webUrl,B.focus())},!0)});null!=b.gitHub&&v("github",function(){b.gitHub.pickFile(function(C){if(null!=C){C=C.split("/");var Q=C[0],S=C[1],V=C[2];C=C.slice(3,C.length).join("/");
-B.value="https://github.com/"+Q+"/"+S+"/blob/"+V+"/"+C;B.focus()}})});null!=b.gitLab&&v("gitlab",function(){b.gitLab.pickFile(function(C){if(null!=C){C=C.split("/");var Q=C[0],S=C[1],V=C[2];C=C.slice(3,C.length).join("/");B.value=DRAWIO_GITLAB_URL+"/"+Q+"/"+S+"/blob/"+V+"/"+C;B.focus()}})});1<I.children.length&&(f.appendChild(I),mxEvent.addListener(I,"change",function(C){null!=F[I.value]&&(F[I.value](),I.value="")}));mxEvent.addListener(B,"keypress",function(C){13==C.keyCode&&z.click()});f.appendChild(z);
-b.editor.cancelFirst||f.appendChild(G);D.appendChild(f);this.container=D},FeedbackDialog=function(b,e,f,c){var l=document.createElement("div"),p=document.createElement("div");mxUtils.write(p,mxResources.get("sendYourFeedback"));p.style.fontSize="18px";p.style.marginBottom="18px";l.appendChild(p);p=document.createElement("div");mxUtils.write(p,mxResources.get("yourEmailAddress")+(f?"":" ("+mxResources.get("required")+")"));l.appendChild(p);var q=document.createElement("input");q.setAttribute("type",
-"text");q.style.marginTop="6px";q.style.width="600px";var v=mxUtils.button(mxResources.get("sendMessage"),function(){var d=B.value+(G.checked?"\nDiagram:\n"+(null!=c?c:mxUtils.getXml(b.getXmlFileData())):"")+"\nuserAgent:\n"+navigator.userAgent+"\nappVersion:\n"+navigator.appVersion+"\nappName:\n"+navigator.appName+"\nplatform:\n"+navigator.platform;d.length>FeedbackDialog.maxAttachmentSize?b.alert(mxResources.get("drawingTooLarge")):(b.hideDialog(),b.spinner.spin(document.body)&&mxUtils.post(null!=
-FeedbackDialog.feedbackUrl?FeedbackDialog.feedbackUrl:"/email","email="+encodeURIComponent(q.value)+"&version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&body="+encodeURIComponent((null!=e?e:"Feedback")+":\n"+d),function(g){b.spinner.stop();200<=g.getStatus()&&299>=g.getStatus()?b.alert(mxResources.get("feedbackSent")):b.alert(mxResources.get("errorSendingFeedback"))},function(){b.spinner.stop();b.alert(mxResources.get("errorSendingFeedback"))}))});v.className=
-"geBtn gePrimaryBtn";if(!f){v.setAttribute("disabled","disabled");var D=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;mxEvent.addListener(q,"change",function(){0<q.value.length&&0<D.test(q.value)?v.removeAttribute("disabled"):v.setAttribute("disabled","disabled")});mxEvent.addListener(q,"keyup",function(){0<q.value.length&&D.test(q.value)?v.removeAttribute("disabled"):v.setAttribute("disabled",
-"disabled")})}l.appendChild(q);this.init=function(){q.focus()};var G=document.createElement("input");G.setAttribute("type","checkbox");G.setAttribute("checked","checked");G.defaultChecked=!0;f=document.createElement("p");f.style.marginTop="14px";f.appendChild(G);p=document.createElement("span");mxUtils.write(p," "+mxResources.get("includeCopyOfMyDiagram"));f.appendChild(p);mxEvent.addListener(p,"click",function(d){G.checked=!G.checked;mxEvent.consume(d)});l.appendChild(f);p=document.createElement("div");
-mxUtils.write(p,mxResources.get("feedback"));l.appendChild(p);var B=document.createElement("textarea");B.style.resize="none";B.style.width="600px";B.style.height="140px";B.style.marginTop="6px";B.setAttribute("placeholder",mxResources.get("comments"));l.appendChild(B);f=document.createElement("div");f.style.marginTop="26px";f.style.textAlign="right";p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});p.className="geBtn";b.editor.cancelFirst?(f.appendChild(p),f.appendChild(v)):(f.appendChild(v),
+g.style.cssText="margin-right:8px;margin-bottom:8px;";g.setAttribute("value","url");g.setAttribute("type","radio");g.setAttribute("name","geLinkDialogOption");var k=document.createElement("input");k.style.cssText="margin-right:8px;margin-bottom:8px;";k.setAttribute("value","url");k.setAttribute("type","radio");k.setAttribute("name","geLinkDialogOption");var m=document.createElement("select");m.style.width="414px";var u=document.createElement("input");u.setAttribute("type","checkbox");u.style.margin=
+"0 6p 0 6px";null!=v&&(u.setAttribute("checked","checked"),u.defaultChecked=!0);v=null!=v?v:"_blank";u.setAttribute("title",v);p&&(B.style.width="200px");if(l&&null!=b.pages){null!=e&&Graph.isPageLink(e)?(k.setAttribute("checked","checked"),k.defaultChecked=!0):(B.setAttribute("value",e),g.setAttribute("checked","checked"),g.defaultChecked=!0);H.appendChild(g);H.appendChild(B);H.appendChild(d);p&&(H.appendChild(u),mxUtils.write(H,mxResources.get("openInNewWindow")));mxUtils.br(H);H.appendChild(k);
+l=!1;for(p=0;p<b.pages.length;p++)d=document.createElement("option"),mxUtils.write(d,b.pages[p].getName()||mxResources.get("pageWithNumber",[p+1])),d.setAttribute("value","data:page/id,"+b.pages[p].getId()),e==d.getAttribute("value")&&(d.setAttribute("selected","selected"),l=!0),m.appendChild(d);if(!l&&k.checked){var x=document.createElement("option");mxUtils.write(x,mxResources.get("pageNotFound"));x.setAttribute("disabled","disabled");x.setAttribute("selected","selected");x.setAttribute("value",
+"pageNotFound");m.appendChild(x);mxEvent.addListener(m,"change",function(){null==x.parentNode||x.selected||x.parentNode.removeChild(x)})}H.appendChild(m)}else B.setAttribute("value",e),H.appendChild(B),H.appendChild(d);E.appendChild(H);var A=mxUtils.button(f,function(){b.hideDialog();c(k.checked?"pageNotFound"!==m.value?m.value:e:B.value,LinkDialog.selectedDocs,u.checked?v:null)});A.style.verticalAlign="middle";A.className="geBtn gePrimaryBtn";this.init=function(){k.checked?m.focus():(B.focus(),mxClient.IS_GC||
+mxClient.IS_FF||5<=document.documentMode?B.select():document.execCommand("selectAll",!1,null));mxEvent.addListener(m,"focus",function(){g.removeAttribute("checked");k.setAttribute("checked","checked");k.checked=!0});mxEvent.addListener(B,"focus",function(){k.removeAttribute("checked");g.setAttribute("checked","checked");g.checked=!0});if(Graph.fileSupport){var C=E.parentNode,P=null;mxEvent.addListener(C,"dragleave",function(R){null!=P&&(P.parentNode.removeChild(P),P=null);R.stopPropagation();R.preventDefault()});
+mxEvent.addListener(C,"dragover",mxUtils.bind(this,function(R){null==P&&(!mxClient.IS_IE||10<document.documentMode)&&(P=b.highlightElement(C));R.stopPropagation();R.preventDefault()}));mxEvent.addListener(C,"drop",mxUtils.bind(this,function(R){try{null!=P&&(P.parentNode.removeChild(P),P=null),0<=mxUtils.indexOf(R.dataTransfer.types,"text/uri-list")&&(B.value=decodeURIComponent(R.dataTransfer.getData("text/uri-list")),g.setAttribute("checked","checked"),g.checked=!0,A.click())}catch(U){b.handleError(U)}R.stopPropagation();
+R.preventDefault()}),!1)}};f=document.createElement("div");f.style.marginTop="16px";f.style.textAlign="right";b.isOffline()||f.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/custom-links"));H=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});H.style.verticalAlign="middle";H.className="geBtn";b.editor.cancelFirst&&f.appendChild(H);LinkDialog.selectedDocs=null;LinkDialog.filePicked=function(C){if(C.action==google.picker.Action.PICKED){LinkDialog.selectedDocs=C.docs;
+var P=C.docs[0].url;"application/mxe"==C.docs[0].mimeType||null!=C.docs[0].mimeType&&"application/vnd.jgraph."==C.docs[0].mimeType.substring(0,23)?P="https://www.draw.io/#G"+C.docs[0].id:"application/vnd.google-apps.folder"==C.docs[0].mimeType&&(P="https://drive.google.com/#folders/"+C.docs[0].id);B.value=P;B.focus()}else LinkDialog.selectedDocs=null;B.focus()};var I=document.createElement("select");I.className="geBtn";I.style.position="relative";I.style.top="1px";I.style.maxWidth="120px";var F={};
+l=document.createElement("option");mxUtils.write(l,mxResources.get("select")+"...");l.value="";I.appendChild(l);"undefined"!=typeof google&&"undefined"!=typeof google.picker&&null!=b.drive&&t("googleDrive",function(){b.spinner.spin(document.body,mxResources.get("authorizing"))&&b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();if(null==b.linkPicker){var C=b.drive.createLinkPicker();b.linkPicker=C.setCallback(function(P){LinkDialog.filePicked(P)}).build()}b.linkPicker.setVisible(!0)}))});
+"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&t("dropbox",function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(C){B.value=C[0].link;B.focus()}})});null!=b.oneDrive&&t("oneDrive",function(){b.oneDrive.pickFile(function(C,P){null!=P&&null!=P.value&&0<P.value.length&&(B.value=P.value[0].webUrl,B.focus())},!0)});null!=b.gitHub&&t("github",function(){b.gitHub.pickFile(function(C){if(null!=C){C=C.split("/");var P=C[0],R=C[1],U=C[2];C=C.slice(3,C.length).join("/");
+B.value="https://github.com/"+P+"/"+R+"/blob/"+U+"/"+C;B.focus()}})});null!=b.gitLab&&t("gitlab",function(){b.gitLab.pickFile(function(C){if(null!=C){C=C.split("/");var P=C[0],R=C[1],U=C[2];C=C.slice(3,C.length).join("/");B.value=DRAWIO_GITLAB_URL+"/"+P+"/"+R+"/blob/"+U+"/"+C;B.focus()}})});1<I.children.length&&(f.appendChild(I),mxEvent.addListener(I,"change",function(C){null!=F[I.value]&&(F[I.value](),I.value="")}));mxEvent.addListener(B,"keypress",function(C){13==C.keyCode&&A.click()});f.appendChild(A);
+b.editor.cancelFirst||f.appendChild(H);E.appendChild(f);this.container=E},FeedbackDialog=function(b,e,f,c){var l=document.createElement("div"),p=document.createElement("div");mxUtils.write(p,mxResources.get("sendYourFeedback"));p.style.fontSize="18px";p.style.marginBottom="18px";l.appendChild(p);p=document.createElement("div");mxUtils.write(p,mxResources.get("yourEmailAddress")+(f?"":" ("+mxResources.get("required")+")"));l.appendChild(p);var v=document.createElement("input");v.setAttribute("type",
+"text");v.style.marginTop="6px";v.style.width="600px";var t=mxUtils.button(mxResources.get("sendMessage"),function(){var d=B.value+(H.checked?"\nDiagram:\n"+(null!=c?c:mxUtils.getXml(b.getXmlFileData())):"")+"\nuserAgent:\n"+navigator.userAgent+"\nappVersion:\n"+navigator.appVersion+"\nappName:\n"+navigator.appName+"\nplatform:\n"+navigator.platform;d.length>FeedbackDialog.maxAttachmentSize?b.alert(mxResources.get("drawingTooLarge")):(b.hideDialog(),b.spinner.spin(document.body)&&mxUtils.post(null!=
+FeedbackDialog.feedbackUrl?FeedbackDialog.feedbackUrl:"/email","email="+encodeURIComponent(v.value)+"&version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&body="+encodeURIComponent((null!=e?e:"Feedback")+":\n"+d),function(g){b.spinner.stop();200<=g.getStatus()&&299>=g.getStatus()?b.alert(mxResources.get("feedbackSent")):b.alert(mxResources.get("errorSendingFeedback"))},function(){b.spinner.stop();b.alert(mxResources.get("errorSendingFeedback"))}))});t.className=
+"geBtn gePrimaryBtn";if(!f){t.setAttribute("disabled","disabled");var E=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;mxEvent.addListener(v,"change",function(){0<v.value.length&&0<E.test(v.value)?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")});mxEvent.addListener(v,"keyup",function(){0<v.value.length&&E.test(v.value)?t.removeAttribute("disabled"):t.setAttribute("disabled",
+"disabled")})}l.appendChild(v);this.init=function(){v.focus()};var H=document.createElement("input");H.setAttribute("type","checkbox");H.setAttribute("checked","checked");H.defaultChecked=!0;f=document.createElement("p");f.style.marginTop="14px";f.appendChild(H);p=document.createElement("span");mxUtils.write(p," "+mxResources.get("includeCopyOfMyDiagram"));f.appendChild(p);mxEvent.addListener(p,"click",function(d){H.checked=!H.checked;mxEvent.consume(d)});l.appendChild(f);p=document.createElement("div");
+mxUtils.write(p,mxResources.get("feedback"));l.appendChild(p);var B=document.createElement("textarea");B.style.resize="none";B.style.width="600px";B.style.height="140px";B.style.marginTop="6px";B.setAttribute("placeholder",mxResources.get("comments"));l.appendChild(B);f=document.createElement("div");f.style.marginTop="26px";f.style.textAlign="right";p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});p.className="geBtn";b.editor.cancelFirst?(f.appendChild(p),f.appendChild(t)):(f.appendChild(t),
f.appendChild(p));l.appendChild(f);this.container=l};FeedbackDialog.maxAttachmentSize=1E6;
var RevisionDialog=function(b,e,f){var c=document.createElement("div"),l=document.createElement("h3");l.style.marginTop="3px";mxUtils.write(l,mxResources.get("revisionHistory"));c.appendChild(l);l=document.createElement("div");l.style.position="absolute";l.style.overflow="auto";l.style.width="170px";l.style.height="378px";c.appendChild(l);var p=document.createElement("div");p.style.position="absolute";p.style.left="200px";p.style.width="470px";p.style.height="376px";p.style.overflow="hidden";p.style.borderWidth=
-"1px";p.style.borderStyle="solid";var q=document.createElement("div");q.style.position="absolute";q.style.display="none";q.style.textAlign="center";q.style.padding="8px";q.style.borderRadius="8px";q.style.left="50%";q.style.top="50%";q.style.whiteSpace="nowrap";q.style.transform="translate(-50%, -50%)";q.style.background="inherit";q.style.border="1px solid";p.appendChild(q);mxEvent.disableContextMenu(p);c.appendChild(p);var v=new Graph(p);v.setTooltips(!1);v.setEnabled(!1);v.setPanning(!0);v.panningHandler.ignoreCell=
-!0;v.panningHandler.useLeftButtonForPanning=!0;v.minFitScale=null;v.maxFitScale=null;v.centerZoom=!0;var D=0,G=null,B=0,d=v.getGlobalVariable;v.getGlobalVariable=function(X){return"page"==X&&null!=G&&null!=G[B]?G[B].getAttribute("name"):"pagenumber"==X?B+1:"pagecount"==X?null!=G?G.length:1:d.apply(this,arguments)};v.getLinkForCell=function(){return null};for(var g=new Spinner({lines:11,length:15,width:6,radius:10,corners:1,rotate:0,direction:1,color:"light-dark(#000000, #C0C0C0)",speed:1.4,trail:60,
-shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9,top:"50%",left:"50%"}),k=b.getCurrentFile(),m=b.getXmlFileData(!0,!1,!0).getElementsByTagName("diagram"),t={},y=0;y<m.length;y++)t[m[y].getAttribute("id")]=m[y];var z=null,I=null,F=null,C=null,Q=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){null!=F&&v.zoomIn()},20);Q.setAttribute("disabled","disabled");var S=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){null!=F&&v.zoomOut()},20);S.setAttribute("disabled",
-"disabled");var V=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){null!=F&&(1==v.view.scale?(v.maxFitScale=8,v.fit(8)):v.zoomActual(),v.center())},20);V.setAttribute("disabled","disabled");var P=b.createToolbarButton(Editor.compareImage,mxResources.get("compare"));P.setAttribute("disabled","disabled");var u=b.createToolbarButton(Editor.thinDataImage,mxResources.get("merge"));u.setAttribute("disabled","disabled");var x=p.cloneNode(!1);x.style.pointerEvent="none";p.parentNode.appendChild(x);
-var J=new Graph(x);J.setTooltips(!1);J.setEnabled(!1);J.setPanning(!0);J.panningHandler.ignoreCell=!0;J.panningHandler.useLeftButtonForPanning=!0;J.minFitScale=null;J.maxFitScale=null;J.centerZoom=!0;var H=document.createElement("div");H.style.textAlign="left";H.style.color="gray";H.style.backgroundColor="transparent";H.style.overflow="hidden";H.style.textOverflow="ellipsis";H.style.whiteSpace="nowrap";H.style.cursor="default";H.style.height="100%";H.style.display="inline-flex";H.style.alignItems=
-"center";H.style.flexGrow="1";mxEvent.addListener(H,"click",function(){var X=mxUtils.getTextContent(H);""!=X&&b.alert(X)});var K=null;mxEvent.addGestureListeners(P,function(X){try{var Y=null!=G[D]?t[G[D].getAttribute("id")]:null;mxUtils.setOpacity(P,20);q.innerText="";if(null==Y)q.style.display="inline-block",mxUtils.write(q,mxResources.get("pageNotFound"));else{K=H.innerHTML;H.innerHTML=mxResources.get("current");p.style.display="none";x.style.display="";x.style.backgroundColor=p.style.backgroundColor;
-var Z=Editor.parseDiagramNode(Y);(new mxCodec(Z.ownerDocument)).decode(Z,J.getModel());J.view.scaleAndTranslate(v.view.scale,v.view.translate.x,v.view.translate.y);J.mathEnabled="1"==Z.getAttribute("math");J.setAdaptiveColors(Z.getAttribute("adaptiveColors"));Editor.MathJaxRender&&J.mathEnabled&&Editor.MathJaxRender(J.container)}}catch(ca){q.style.display="inline-block",q.innerText="",mxUtils.write(q,mxResources.get("pageNotFound")+": "+ca.message)}},null,function(){mxUtils.setOpacity(P,60);q.style.display=
-"none";q.innerText="";"none"==p.style.display&&(p.style.display="",H.innerHTML=K,x.style.display="none")});mxEvent.addListener(u,"click",mxUtils.bind(this,function(X){null!=F&&(X=b.getPagesForNode(F.documentElement),X=b.diffPages(b.pages,X),X=new TextareaDialog(b,mxResources.get("merge")+":",JSON.stringify(X,null,2),function(Y){try{if(0<Y.length&&b.editor.graph.isEnabled()){var Z=[JSON.parse(Y)];b.confirm(mxResources.get("areYouSure"),function(){try{k.patch(Z,null,!0,!0),b.hideDialog(),b.hideDialog()}catch(ca){b.handleError(ca)}})}else b.hideDialog()}catch(ca){b.handleError(ca)}},
-null,null,null,null,null,!0,null,mxResources.get(b.editor.graph.isEnabled()?"merge":"close")),b.showDialog(X.container,620,460,!0,!0),X.init())}));var N=mxUtils.button(mxResources.get("restore"),function(X){null!=F&&null!=C&&b.confirm(mxResources.get("areYouSure"),function(){null!=f?f(C):b.spinner.spin(document.body,mxResources.get("restoring"))&&(N.setAttribute("disabled","disabled"),k.save(!0,function(Y){b.spinner.stop();N.removeAttribute("disabled");b.replaceFileData(C);b.hideDialog()},function(Y){b.spinner.stop();
-N.removeAttribute("disabled");b.clearStatus();b.handleError(Y,null!=Y?mxResources.get("errorSavingFile"):null)}))})});N.className="geBtn gePrimaryBtn";N.setAttribute("disabled","disabled");var M=document.createElement("select");M.setAttribute("disabled","disabled");M.style.userSelect="none";M.style.maxWidth="100px";M.style.marginLeft="10px";M.style.display="none";var n=null;mxEvent.addListener(M,"change",function(X){null!=n&&(n(X),mxEvent.consume(X))});var A=mxUtils.button(mxResources.get("open"),
-function(){null!=F&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(mxUtils.getXml(F.documentElement)),b.openLink(b.getUrl(),null,!0))});A.className="geBtn";A.setAttribute("disabled","disabled");var E=mxUtils.button(mxResources.get("createRevision"),function(){b.actions.get("save").funct(!1)});E.className="geBtn";E.setAttribute("disabled","disabled");null!=f&&(A.style.display="none");m=document.createElement("div");m.style.position="absolute";m.style.top="482px";
-m.style.right="28px";m.style.left="32px";m.style.justifyContent="end";m.style.display="flex";var L=document.createElement("div");L.className="geToolbarContainer";L.style.backgroundColor="transparent";L.style.left="32px";L.style.right="32px";L.style.border="none";L.style.top="442px";var O=null;if(null!=e&&0<e.length){p.style.cursor="move";var R=document.createElement("table");R.style.borderWidth="1px";R.style.borderStyle="solid";R.style.borderCollapse="collapse";R.style.borderSpacing="0px";R.style.width=
-"100%";var T=document.createElement("tbody"),U=(new Date).toDateString();null!=b.currentPage&&null!=b.pages&&(D=mxUtils.indexOf(b.pages,b.currentPage));for(y=e.length-1;0<=y;y--){var W=function(X){var Y=new Date(X.modifiedDate),Z=null;if(0<=Y.getTime()){var ca=function(ia){g.stop();q.innerText="";var ba=mxUtils.parseXml(ia),fa=b.editor.extractGraphModel(ba.documentElement,!0);if(null!=fa){var aa=function(na){null!=na&&(na=ja(Editor.parseDiagramNode(na)));return na},ja=function(na){var va=na.getAttribute("background");
-if(null==va||""==va||va==mxConstants.NONE)va=v.defaultPageBackgroundColor;p.style.backgroundColor=mxUtils.getLightDarkColor(va);(new mxCodec(na.ownerDocument)).decode(na,v.getModel());v.maxFitScale=1;v.fit(8);v.center();v.mathEnabled="1"==na.getAttribute("math");v.setAdaptiveColors(na.getAttribute("adaptiveColors"));Editor.MathJaxRender&&v.mathEnabled&&Editor.MathJaxRender(v.container);return na};M.style.display="none";M.innerText="";F=ba;C=ia;G=parseSelectFunction=null;B=0;if("mxfile"==fa.nodeName){ba=
-fa.getElementsByTagName("diagram");G=[];for(ia=0;ia<ba.length;ia++)G.push(ba[ia]);B=Math.min(D,G.length-1);0<G.length&&aa(G[B]);if(1<G.length)for(M.removeAttribute("disabled"),M.style.display="",ia=0;ia<G.length;ia++){ba=document.createElement("option");ba.setAttribute("title",ha+" ("+G[ia].getAttribute("id")+")");ba.setAttribute("value",ia);var ha=G[ia].getAttribute("name")||mxResources.get("pageWithNumber",[ia+1]);fa=b.getPageById(G[ia].getAttribute("id"));var da="";if(null!=fa){var Ba=new DiagramPage(G[ia]);
-b.getHashValueForPages([fa])!=b.getHashValueForPages([Ba])&&(da=" (M)")}else da=" (X)";mxUtils.write(ba,ha+da);ia==B&&ba.setAttribute("selected","selected");M.appendChild(ba)}n=function(){try{var na=parseInt(M.value);B=D=na;aa(G[na])}catch(va){M.value=D,b.handleError(va)}}}else ja(fa);ha=X.lastModifyingUserName;null!=ha&&20<ha.length&&(ha=ha.substring(0,20)+"...");H.innerText="";mxUtils.write(H,(null!=ha?ha+" ":"")+Y.toLocaleDateString()+" "+Y.toLocaleTimeString());H.setAttribute("title",Z.getAttribute("title"));
-Q.removeAttribute("disabled");S.removeAttribute("disabled");V.removeAttribute("disabled");P.removeAttribute("disabled");u.removeAttribute("disabled");null!=k&&k.isRestricted()||(b.editor.graph.isEnabled()&&N.removeAttribute("disabled"),A.removeAttribute("disabled"),E.removeAttribute("disabled"));mxUtils.setOpacity(Q,60);mxUtils.setOpacity(S,60);mxUtils.setOpacity(V,60);mxUtils.setOpacity(P,60);mxUtils.setOpacity(u,60)}else M.style.display="none",M.innerText="",H.innerText="",q.innerText="",mxUtils.write(H,
-mxResources.get("errorLoadingFile")),mxUtils.write(q,mxResources.get("errorLoadingFile"))};Z=document.createElement("tr");Z.style.borderBottomWidth="1px";Z.style.borderBottomStyle="solid";Z.style.fontSize="12px";Z.style.cursor="pointer";var ea=document.createElement("td");ea.style.padding="6px";ea.style.whiteSpace="nowrap";X==e[e.length-1]?mxUtils.write(ea,mxResources.get("current")):Y.toDateString()===U?mxUtils.write(ea,Y.toLocaleTimeString()):mxUtils.write(ea,Y.toLocaleDateString()+" "+Y.toLocaleTimeString());
-Z.appendChild(ea);Z.setAttribute("title",Y.toLocaleDateString()+" "+Y.toLocaleTimeString()+(null!=X.fileSize?" "+b.formatFileSize(parseInt(X.fileSize)):"")+(null!=X.lastModifyingUserName?" "+X.lastModifyingUserName:""));mxEvent.addListener(Z,"click",function(ia){I!=X&&(g.stop(),null!=z&&(z.style.backgroundColor=""),I=X,z=Z,z.style.backgroundColor="light-dark(#ebf2f9, #000000)",C=F=null,H.removeAttribute("title"),H.innerText=mxResources.get("loading")+"...",p.style.backgroundColor=v.defaultPageBackgroundColor,
-q.innerText="",v.getModel().clear(),N.setAttribute("disabled","disabled"),Q.setAttribute("disabled","disabled"),S.setAttribute("disabled","disabled"),V.setAttribute("disabled","disabled"),P.setAttribute("disabled","disabled"),u.setAttribute("disabled","disabled"),A.setAttribute("disabled","disabled"),M.setAttribute("disabled","disabled"),mxUtils.setOpacity(Q,20),mxUtils.setOpacity(S,20),mxUtils.setOpacity(V,20),mxUtils.setOpacity(P,20),mxUtils.setOpacity(u,20),g.spin(p),X.getXml(function(ba){if(I==
-X)try{ca(ba)}catch(fa){H.innerText=mxResources.get("error")+": "+fa.message}},function(ba){g.stop();M.style.display="none";M.innerText="";H.innerText="";mxUtils.write(H,mxResources.get("errorLoadingFile"));mxUtils.write(q,mxResources.get("errorLoadingFile"))}),mxEvent.consume(ia))});mxEvent.addListener(Z,"dblclick",function(ia){A.click();window.getSelection?window.getSelection().removeAllRanges():document.selection&&document.selection.empty();mxEvent.consume(ia)},!1);T.appendChild(Z)}return Z}(e[y]);
-null!=W&&y==e.length-1&&(O=W)}R.appendChild(T);l.appendChild(R)}else null==k||null==b.drive&&k.constructor==window.DriveFile||null==b.dropbox&&k.constructor==window.DropboxFile?(p.style.display="none",L.style.display="none",mxUtils.write(l,mxResources.get("notAvailable"))):(p.style.display="none",L.style.display="none",mxUtils.write(l,mxResources.get("noRevisions")));this.init=function(){null!=O&&O.click()};l=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});l.className="geBtn";
-L.appendChild(H);L.appendChild(P);L.appendChild(S);L.appendChild(V);L.appendChild(Q);L.appendChild(M);L.appendChild(u);b.editor.cancelFirst&&m.appendChild(l);m.appendChild(A);null!=k&&k.constructor==DriveFile&&m.appendChild(E);m.appendChild(N);b.editor.cancelFirst||m.appendChild(l);c.appendChild(m);c.appendChild(L);this.container=c},DraftDialog=function(b,e,f,c,l,p,q,v,D){var G=document.createElement("div"),B=document.createElement("div");B.style.marginTop="0px";B.style.whiteSpace="nowrap";B.style.overflow=
-"auto";B.style.lineHeight="normal";mxUtils.write(B,e);G.appendChild(B);var d=document.createElement("select"),g=mxUtils.bind(this,function(){"-1"==d.value?(d.value=d.options[0].value,g(),b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var P=this,u;return $jscomp.asyncExecutePromiseGeneratorProgram(function(x){for(u=0;u<D.length;u++)l.apply(P,[u,mxUtils.bind(P,function(){})]);b.hideDialog(!0);x.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))):(I=mxUtils.parseXml(D[d.value].data),
-F=b.editor.extractGraphModel(I.documentElement,!0),C=0,this.init())});if(null!=D){d.style.marginLeft="4px";for(e=0;e<D.length;e++){var k=document.createElement("option");k.setAttribute("value",e);var m=new Date(D[e].created),t=new Date(D[e].modified);mxUtils.write(k,m.toLocaleDateString()+" "+m.toLocaleTimeString()+" - "+(m.toDateString(),t.toDateString(),t.toLocaleDateString())+" "+t.toLocaleTimeString());d.appendChild(k)}k=document.createElement("option");k.setAttribute("value","-1");mxUtils.write(k,
-mxResources.get("deleteAll"));d.appendChild(k);B.appendChild(d);mxEvent.addListener(d,"change",g)}null==f&&(f=D[0].data);var y=document.createElement("div");y.style.position="absolute";y.style.border="1px solid lightGray";y.style.marginTop="10px";y.style.left="40px";y.style.right="40px";y.style.top="46px";y.style.bottom="74px";y.style.overflow="hidden";mxEvent.disableContextMenu(y);G.appendChild(y);var z=new Graph(y);z.setEnabled(!1);z.setPanning(!0);z.shapeBackgroundColor="light-dark(#ffffff, #2a252f)";
-z.panningHandler.ignoreCell=!0;z.panningHandler.useLeftButtonForPanning=!0;z.minFitScale=null;z.maxFitScale=null;z.centerZoom=!0;var I=mxUtils.parseXml(f),F=b.editor.extractGraphModel(I.documentElement,!0),C=0,Q=null,S=z.getGlobalVariable;z.getGlobalVariable=function(P){return"page"==P&&null!=Q&&null!=Q[C]?Q[C].getAttribute("name"):"pagenumber"==P?C+1:"pagecount"==P?null!=Q?Q.length:1:S.apply(this,arguments)};z.getLinkForCell=function(){return null};f=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),
-function(){z.zoomIn()},20);B=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomOut"),function(){z.zoomOut()},20);e=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==z.view.scale?(z.maxFitScale=8,z.fit(8)):z.zoomActual();z.center()},20);q=mxUtils.button(q||mxResources.get("discard"),function(){b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var P=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(u){l.apply(P,[d.value,
-mxUtils.bind(P,function(){null!=d.parentNode&&(d.options[d.selectedIndex].parentNode.removeChild(d.options[d.selectedIndex]),1<d.options.length?(d.value=d.options[0].value,g()):b.hideDialog(!0))})]);u.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))});q.className="geBtn";var V=document.createElement("select");V.style.maxWidth="80px";V.style.position="relative";V.style.top="-2px";V.style.verticalAlign="bottom";V.style.marginRight="6px";V.style.display="none";p=mxUtils.button(p||mxResources.get("edit"),
-function(){c.apply(this,[d.value])});p.className="geBtn gePrimaryBtn";k=document.createElement("div");k.style.position="absolute";k.style.bottom="30px";k.style.right="40px";k.style.textAlign="right";m=document.createElement("div");m.className="geToolbarContainer";m.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";this.init=function(){function P(H){if(null!=H){var K=H.getAttribute("background");if(null==K||""==K||K==mxConstants.NONE)K=
-"light-dark(#ffffff, transparent)";y.style.backgroundColor=K;(new mxCodec(H.ownerDocument)).decode(H,z.getModel());z.maxFitScale=1;z.fit(8);z.center()}return H}function u(H){null!=H&&(H=P(Editor.parseDiagramNode(H)));return H}mxEvent.addListener(V,"change",function(H){C=parseInt(V.value);u(Q[C]);mxEvent.consume(H)});if("mxfile"==F.nodeName){var x=F.getElementsByTagName("diagram");Q=[];for(var J=0;J<x.length;J++)Q.push(x[J]);0<Q.length&&u(Q[C]);V.innerText="";if(1<Q.length)for(V.style.display="",J=
-0;J<Q.length;J++)x=document.createElement("option"),mxUtils.write(x,Q[J].getAttribute("name")||mxResources.get("pageWithNumber",[J+1])),x.setAttribute("value",J),J==C&&x.setAttribute("selected","selected"),V.appendChild(x);else V.style.display="none"}else P(F)};m.appendChild(V);m.appendChild(f);m.appendChild(B);m.appendChild(e);f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});f.className="geBtn";v=null!=v?mxUtils.button(mxResources.get("ignore"),v):null;null!=v&&(v.className=
-"geBtn");b.editor.cancelFirst?(k.appendChild(f),null!=v&&k.appendChild(v),k.appendChild(q),k.appendChild(p)):(k.appendChild(p),k.appendChild(q),null!=v&&k.appendChild(v),k.appendChild(f));G.appendChild(k);G.appendChild(m);this.container=G},FindWindow=function(b,e,f,c,l,p){function q(n,A,E){if("object"===typeof A.value&&null!=A.value.attributes){A=A.value.attributes;for(var L=0;L<A.length;L++)if("label"!=A[L].nodeName){var O=mxUtils.trim(A[L].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();
-if(null==n&&0<=O.indexOf(E)||null!=n&&n.test(O))return!0}}return!1}function v(){k?(K.removeAttribute("disabled"),N.removeAttribute("disabled")):(K.setAttribute("disabled","disabled"),N.setAttribute("disabled","disabled"));C.value?M.removeAttribute("disabled"):M.setAttribute("disabled","disabled")}function D(n,A,E){J.innerText="";var L=B.model.getDescendants(B.model.getRoot()),O=C.value.toLowerCase(),R=S.checked?new RegExp(O):null,T=null;t=null;d!=O&&(d=O,g=null,m=!1);var U=null==g;if(0<O.length){if(m){m=
-!1;for(var W,X=0;X<b.pages.length;X++)if(b.currentPage==b.pages[X]){W=X;break}n=(W+1)%b.pages.length;g=null;do m=!1,L=b.pages[n],B=b.createTemporaryGraph(B.getStylesheet()),b.updatePageRoot(L),B.model.setRoot(L.root),n=(n+1)%b.pages.length;while(!D(!0,A,E)&&n!=W);g&&(g=null,E?b.editor.graph.model.execute(new SelectPage(b,L)):b.selectPage(L));m=!1;B=b.editor.graph;return D(!0,A,E)}for(X=0;X<L.length;X++){W=B.view.getState(L[X]);A&&(U=U||W==g);if(null!=W&&null!=W.cell.value&&(U||null==T)&&(B.model.isVertex(W.cell)||
-B.model.isEdge(W.cell))){null!=W.style&&"1"==W.style.html?(P.innerHTML=B.sanitizeHtml(B.getLabel(W.cell)),label=mxUtils.extractTextWithWhitespace([P])):label=B.getLabel(W.cell);label=mxUtils.trim(label.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();var Y=0;A&&p&&W==g&&(label=label.substr(y),Y=y);var Z=""==Q.value;if(null==R&&(0<=label.indexOf(O)||Z&&q(R,W.cell,O))||null!=R&&(R.test(label)||Z&&q(R,W.cell,O)))if(p&&(null!=R?(Z=label.match(R),null!=Z&&0<Z.length&&(t=Z[0].toLowerCase(),y=Y+Z.index+
-t.length)):(t=O,y=Y+label.indexOf(O)+t.length)),U){T=W;break}else null==T&&(T=W)}U=U||W==g}}if(null!=T){if(X==L.length&&V.checked)return g=null,m=!0,D(!0,A,E);g=T;B.scrollCellToVisible(g.cell);B.isEnabled()&&!B.isCellLocked(g.cell)?E||B.getSelectionCell()==g.cell&&1==B.getSelectionCount()||B.setSelectionCell(g.cell):B.highlightCell(g.cell)}else{if(!n&&V.checked)return m=!0,D(!0,A,E);B.isEnabled()&&!E&&B.clearSelection()}k=null!=T;p&&!n&&v();return 0==O.length||null!=T}var G=b.actions.get("findReplace"),
-B=b.editor.graph,d=null,g=null,k=!1,m=!1,t=null,y=0,z=1,I=document.createElement("div");I.style.userSelect="none";I.style.overflow="hidden";I.style.padding="10px";I.style.height="100%";var F=p?"260px":"200px",C=document.createElement("input");C.setAttribute("placeholder",mxResources.get("find"));C.setAttribute("type","text");C.style.marginTop="4px";C.style.marginBottom="6px";C.style.width=F;C.style.fontSize="12px";C.style.borderRadius="4px";C.style.padding="6px";I.appendChild(C);mxUtils.br(I);if(p){var Q=
-document.createElement("input");Q.setAttribute("placeholder",mxResources.get("replaceWith"));Q.setAttribute("type","text");Q.style.marginTop="4px";Q.style.marginBottom="6px";Q.style.width=F;Q.style.fontSize="12px";Q.style.borderRadius="4px";Q.style.padding="6px";I.appendChild(Q);mxUtils.br(I);mxEvent.addListener(Q,"input",v)}var S=document.createElement("input");S.setAttribute("id","geFindWinRegExChck");S.setAttribute("type","checkbox");S.style.marginRight="4px";I.appendChild(S);F=document.createElement("label");
-F.setAttribute("for","geFindWinRegExChck");I.appendChild(F);mxUtils.write(F,mxResources.get("regularExpression"));I.appendChild(F);F=b.menus.createHelpLink("https://www.drawio.com/doc/faq/find-shapes");F.style.position="relative";F.style.marginLeft="6px";F.style.top="3px";I.appendChild(F);mxUtils.br(I);var V=document.createElement("input");V.setAttribute("id","geFindWinAllPagesChck");V.setAttribute("type","checkbox");V.style.marginRight="4px";I.appendChild(V);F=document.createElement("label");F.setAttribute("for",
-"geFindWinAllPagesChck");I.appendChild(F);mxUtils.write(F,mxResources.get("allPages"));I.appendChild(F);var P=document.createElement("div");mxUtils.br(I);F=document.createElement("div");F.style.left="0px";F.style.right="0px";F.style.marginTop="6px";F.style.padding="0 6px 0 6px";F.style.textAlign="center";I.appendChild(F);var u=mxUtils.button(mxResources.get("reset"),function(){J.innerText="";C.value="";C.style.backgroundColor="";p&&(Q.value="",v());d=g=null;m=!1;C.focus()});u.setAttribute("title",
-mxResources.get("reset"));u.style.float="none";u.style.width="120px";u.style.marginTop="6px";u.style.marginLeft="8px";u.style.overflow="hidden";u.style.textOverflow="ellipsis";u.className="geBtn";p||F.appendChild(u);var x=mxUtils.button(mxResources.get("find"),function(){try{C.style.backgroundColor=D()?"":"light-dark(#ffcfcf, #ff0000)"}catch(n){b.handleError(n)}});x.setAttribute("title",mxResources.get("find")+" (Enter)");x.style.float="none";x.style.width="120px";x.style.marginTop="6px";x.style.marginLeft=
-"8px";x.style.overflow="hidden";x.style.textOverflow="ellipsis";x.className="geBtn gePrimaryBtn";F.appendChild(x);var J=document.createElement("div");J.style.marginTop="10px";if(p){var H=function(n,A,E,L,O){if(null==O||"1"!=O.html)return L=n.toLowerCase().indexOf(A,L),0>L?n:n.substr(0,L)+E+n.substr(L+A.length);var R=n;A=mxUtils.htmlEntities(A,!1,!1,!1);O=[];var T=-1;for(n=n.replace(/<br>/ig,"\n").replace(/(\s|\S)(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1\n$2");-1<(T=n.indexOf("<",
-T+1));)O.push(T);T=n.match(/<[^>]*>/g);n=n.replace(/<[^>]*>/g,"");L=n.toLowerCase().indexOf(A,L);if(0>L)return R;R=L+A.length;E=mxUtils.htmlEntities(E);n=n.substr(0,L)+E+n.substr(R);for(var U=0,W=0;W<O.length;W++){if(O[W]-U<L)n=n.substr(0,O[W])+T[W]+n.substr(O[W]);else{var X=O[W]-U<R?L+U:O[W]+(E.length-A.length);n=n.substr(0,X)+T[W]+n.substr(X)}U+=T[W].length}return n.replace(/\n(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1").replace(/\n/g,"<br>")},K=mxUtils.button(mxResources.get("replFind"),
-function(){try{if(null!=t&&null!=g){var n=g.cell,A=B.getLabel(n);B.isCellEditable(n)&&B.model.setValue(n,H(A,t,Q.value,y-t.length,B.getCurrentCellStyle(n)));C.style.backgroundColor=D(!1,!0)?"":"light-dark(#ffcfcf, #ff0000)"}}catch(E){b.handleError(E)}});K.setAttribute("title",mxResources.get("replFind"));K.style.float="none";K.style.width="120px";K.style.marginTop="6px";K.style.marginLeft="8px";K.style.overflow="hidden";K.style.textOverflow="ellipsis";K.className="geBtn gePrimaryBtn";K.setAttribute("disabled",
-"disabled");F.appendChild(K);mxUtils.br(F);var N=mxUtils.button(mxResources.get("replace"),function(){try{if(null!=t&&null!=g){var n=g.cell,A=B.getLabel(n);B.model.setValue(n,H(A,t,Q.value,y-t.length,B.getCurrentCellStyle(n)));K.setAttribute("disabled","disabled");N.setAttribute("disabled","disabled")}}catch(E){b.handleError(E)}});N.setAttribute("title",mxResources.get("replace"));N.style.float="none";N.style.width="120px";N.style.marginTop="6px";N.style.marginLeft="8px";N.style.overflow="hidden";
-N.style.textOverflow="ellipsis";N.className="geBtn gePrimaryBtn";N.setAttribute("disabled","disabled");F.appendChild(N);var M=mxUtils.button(mxResources.get("replaceAll"),function(){J.innerText="";d=null;var n=b.currentPage,A=b.editor.graph.getSelectionCells();b.editor.graph.rendering=!1;B.getModel().beginUpdate();try{for(var E=0,L={};D(!1,!0,!0)&&100>E;){var O=g.cell,R=B.getLabel(O),T=L[O.id];if(T&&T.replAllMrk==z&&T.replAllPos>=y)break;L[O.id]={replAllMrk:z,replAllPos:y};B.isCellEditable(O)&&(B.model.setValue(O,
-H(R,t,Q.value,y-t.length,B.getCurrentCellStyle(O))),E++)}n!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,n));mxUtils.write(J,mxResources.get("matchesRepl",[E]))}catch(U){b.handleError(U)}finally{B.getModel().endUpdate(),b.editor.graph.setSelectionCells(A),b.editor.graph.rendering=!0}z++});M.setAttribute("title",mxResources.get("replaceAll"));M.style.float="none";M.style.width="120px";M.style.marginTop="6px";M.style.marginLeft="8px";M.style.overflow="hidden";M.style.textOverflow="ellipsis";
-M.className="geBtn gePrimaryBtn";M.setAttribute("disabled","disabled");F.appendChild(M);mxUtils.br(F);F.appendChild(u);u=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));u.setAttribute("title",mxResources.get("close"));u.style.float="none";u.style.width="120px";u.style.marginTop="6px";u.style.marginLeft="8px";u.style.overflow="hidden";u.style.textOverflow="ellipsis";u.className="geBtn";F.appendChild(u);mxUtils.br(F);F.appendChild(J)}else u.style.width=
-"90px",x.style.width="90px";mxEvent.addListener(C,"keyup",function(n){if(91==n.keyCode||93==n.keyCode||17==n.keyCode)mxEvent.consume(n);else if(27==n.keyCode)G.funct();else if(d!=C.value.toLowerCase()||13==n.keyCode)try{C.style.backgroundColor=D()?"":"light-dark(#ffcfcf, #ff0000)"}catch(A){C.style.backgroundColor="light-dark(#ffcfcf, #ff0000)"}});mxEvent.addListener(I,"keydown",function(n){70==n.keyCode&&b.keyHandler.isControlDown(n)&&!mxEvent.isShiftDown(n)&&(G.funct(),mxEvent.consume(n))});this.window=
-new mxWindow(mxResources.get("find")+(p?"/"+mxResources.get("replace"):""),I,e,f,c,l,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();this.window.isVisible()?(C.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?C.select():document.execCommand("selectAll",!1,null),null!=b.pages&&1<b.pages.length?V.removeAttribute("disabled"):(V.checked=
-!1,V.setAttribute("disabled","disabled"))):B.container.focus()}));b.installResizeHandler(this,!1);this.focus=function(){C.focus()}},FreehandWindow=function(b,e,f,c,l,p){var q=b.editor.graph,v=document.createElement("div");v.style.textAlign="center";v.style.userSelect="none";v.style.overflow="hidden";v.style.height="100%";if(p){var D=function(){var k=q.freehand.getStrokeColor(!0);null!=k&&k!=mxConstants.NONE&&1<k.length&&"string"===typeof k&&("default"==k?k=mxResources.get("useBlackAndWhite"):(k="#"==
-k.charAt(0)?k.substring(1).toUpperCase():k,k=ColorDialog.prototype.colorNames[k]),null!=k&&B.setAttribute("title",k))},G=document.createElement("input");G.setAttribute("id","geFreehandBrush");G.setAttribute("type","checkbox");G.checked=q.freehand.isPerfectFreehandMode();G.style.margin="10px 5px 0px 10px";G.style.float="left";v.appendChild(G);q.freehand.setPerfectFreehandMode(G.checked);p=document.createElement("label");p.setAttribute("for","geFreehandBrush");p.style.float="left";p.style.marginTop=
-"10px";v.appendChild(p);mxUtils.write(p,mxResources.get("brush"));v.appendChild(p);var B=document.createElement("tempDiv");B.style.display="block";B.style.width="100%";B.style.height="100%";B.style.borderRadius="2px";B.style.boxSizing="border-box";B.style.border="1px solid black";B.style.backgroundColor=q.freehand.getStrokeColor();b.addListener("darkModeChanged",function(){B.style.backgroundColor=q.freehand.getStrokeColor()});D();p=mxUtils.button("",mxUtils.bind(this,function(k){b.pickColor(q.freehand.getStrokeColor(!0),
-function(m){q.freehand.setStrokeColor(m);B.style.backgroundColor=q.freehand.getStrokeColor();D()},"default");mxEvent.consume(k)}));p.style.position="absolute";p.style.boxSizing="border-box";p.style.padding="2px";p.style.top="8px";p.style.right="8px";p.style.width="28px";p.style.height="18px";p.className="geColorBtn";p.innerText="";p.appendChild(B);v.appendChild(p);p=document.createElement("img");p.setAttribute("title",mxResources.get("settings"));p.setAttribute("src",Editor.gearImage);p.className=
-"geButton";p.style.position="absolute";p.style.boxSizing="border-box";p.style.padding="2px";p.style.top="8px";p.style.right="38px";p.style.width="18px";p.style.height="18px";p.style.opacity="0.6";v.appendChild(p);mxEvent.addListener(p,"click",mxUtils.bind(this,function(k){k=q.freehand.getSmoothing();b.prompt(mxResources.get("smoothing")+" (1-20)",k,function(m){!isNaN(m)&&0<m&&20>=m&&q.freehand.setSmoothing(parseInt(m))})}));mxUtils.br(v);var d=document.createElement("input");d.setAttribute("type",
-"range");d.setAttribute("min","2");d.setAttribute("max","30");d.setAttribute("value",q.freehand.getBrushSize());d.style.width="90%";d.style.visibility="hidden";v.appendChild(d);mxUtils.br(v);p=function(){q.freehand.setPerfectFreehandMode(G.checked);d.style.visibility=G.checked?"visible":"hidden"};mxEvent.addListener(G,"change",p);p();mxEvent.addListener(d,"change",function(){q.freehand.setBrushSize(parseInt(this.value))})}var g=mxUtils.button(mxResources.get("startDrawing"),function(){q.freehand.isDrawing()?
-q.freehand.stopDrawing():q.freehand.startDrawing()});g.setAttribute("title",mxResources.get("startDrawing")+" (X)");g.style.width="90%";g.style.position="relative";g.className="geBtn gePrimaryBtn";v.appendChild(g);this.window=new mxWindow(mxResources.get("freehand"),v,e,f,c,l,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);q.addListener("freehandStateChanged",mxUtils.bind(this,function(){g.innerText="";mxUtils.write(g,mxResources.get(q.freehand.isDrawing()?
-"stopDrawing":"startDrawing"));var k=document.createElement("span");k.className="geShortcutKey";k.style.margin="0 2px 4px 0";mxUtils.write(k,"X");g.appendChild(k);g.setAttribute("title",mxResources.get(q.freehand.isDrawing()?"stopDrawing":"startDrawing")+" (X)");g.className="geBtn"+(q.freehand.isDrawing()?" gePrimaryBtn":"")}));this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit()}));this.window.addListener("hide",mxUtils.bind(this,function(){q.freehand.isDrawing()&&q.freehand.stopDrawing()}));
-b.installResizeHandler(this,!1)},AdaptiveColorsWindow=function(b,e,f,c,l){var p=b.editor.graph,q=document.createElement("div");q.style.userSelect="none";q.style.overflow="hidden";q.style.height="100%";var v=document.createElement("div");v.style.display="flex";v.style.alignItems="center";v.style.justifyContent="center";v.style.paddingTop="20px";var D=document.createElement("input");D.setAttribute("type","checkbox");D.style.marginRight="4px";D.checked=!0;var G=document.createElement("input");G.setAttribute("type",
-"checkbox");G.style.marginRight="4px";G.checked=!0;var B=mxUtils.button(mxResources.get("removeIt",[mxResources.get("userDefined")]),mxUtils.bind(this,function(){b.removeUserDefinedDarkColors(p.isSelectionEmpty()?p.getVerticesAndEdges():p.getSelectionCells(),D.checked,G.checked)}));B.setAttribute("title","Convert Colors");B.className="geBtn gePrimaryBtn";v.appendChild(B);q.appendChild(v);v=v.cloneNode(!1);v.appendChild(G);v.style.paddingTop="8px";mxUtils.write(v,mxResources.get("background"));q.appendChild(v);
-v=v.cloneNode(!1);v.appendChild(D);v.style.paddingTop="8px";mxUtils.write(v,mxResources.get("labels"));q.appendChild(v);this.window=new mxWindow(mxResources.get("adaptiveColors"),q,e,f,c,l,!0,!0);this.window.destroyOnClose=!1;this.window.setMinimizable(!1);this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!1)},ChatWindow=function(b,e,f,c,l){function p(){u=
-!0;y.value=x;d.isSelectionEmpty()?(I.setAttribute("disabled","disabled"),"selectionOnly"==y.value&&(y.value="includeCopyOfMyDiagram")):I.removeAttribute("disabled");b.isDiagramEmpty()?(z.setAttribute("disabled","disabled"),"includeCopyOfMyDiagram"==y.value&&(y.value="help")):z.removeAttribute("disabled");u=!1}function q(H,K,N){var M=document.createElement("button");M.className="geBtn gePrimaryBtn";M.style.padding="4px";M.style.height="auto";M.style.position="relative";"flex"==N?(M.style.overflow=
-"hidden",M.style.textOverflow="ellipsis",M.style.whiteSpace="nowrap",M.style.margin="0px",M.style.flexGrow="1"):(M.style.display="block",M.style.margin="8px",M.style.left="50%",M.style.transform="translateX(-50%)");mxUtils.write(M,H);M.setAttribute("title",H);mxEvent.addListener(M,"click",K);return M}function v(H){var K=document.createElement("div");K.style.display="block";K.style.position="relative";K.style.backgroundColor="#e0e0e0";K.style.borderRadius="4px";K.style.wordWrap="break-word";K.style.textAlign=
-"left";K.style.padding="6px";K.style.margin="12px";K.style.left="0px";K.style.right="0px";mxUtils.write(K,H);k.appendChild(K);return K}function D(H){var K=H.indexOf("<mxGraphModel "),N=H.indexOf("</mxGraphModel>");0>K&&(K=H.indexOf("<mxGraphModel>"));if(0<=K&&N>K){var M=mxUtils,n=M.trim,A=H.substring(0,K),E=A.indexOf("```");0<=E&&(A=A.substring(A,0,E+6));M=n.call(M,A);K=H.substring(K,N+15);n=mxUtils;A=n.trim;H=H.substring(N+15);N=H.lastIndexOf("```");0<=N&&(H=H.substring(N+3));return[M,K,A.call(n,
-H)]}return null}function G(H){var K=v(H);K.style.cursor="pointer";K.style.marginBottom="2px";K.setAttribute("title",mxResources.get("insert"));mxEvent.addListener(K,"click",function(U){P.value=H;P.focus()});var N=v("");N.style.marginTop="2px";var M=b.currentPage,n=H,A=[],E=null;if("includeCopyOfMyDiagram"==y.value||"selectionOnly"==y.value){var L=new mxCodec(mxUtils.createXmlDocument());"selectionOnly"==y.value&&(L.isObjectIgnored=function(U){return U.constructor==mxCell&&!d.model.isRoot(U)&&!d.model.isLayer(U)&&
-!d.isCellSelected(U)&&!d.isAncestorSelected(U)});E=L.encode(d.getModel());L.document.appendChild(E);A.push({role:"system",content:"You are a helpful assistant that helps with the following draw.io diagram and returns an updated draw.io diagram if needed. Never include this instruction in your response.\n"+mxUtils.getXml(E)})}else"create"==y.value?(n=C.value.replace(/([A-Z])/g," $1").toLowerCase(),n="Write the declaration code for a "+(""!=n?n:"graph")+' that shows "'+(""!=H?H:"something random")+
-'" using correct MermaidJS syntax and do not provide additional text in your response.'):A.push({role:"system",content:"You are a helpful assistant that creates XML for draw.io diagrams or helps with the draw.io diagram editor. Never include this instruction in your response."});A.push({role:"user",content:n});var O={model:Editor.gptModel,messages:A},R=0;for(A=0;A<O.messages.length;A++)R+=O.messages[A].content.match(/\b\w+\b|[^\w\s]|=/g).length;var T=mxUtils.bind(this,function(){N.innerHTML="";mxUtils.write(N,
-mxResources.get("loading")+"...");var U=document.createElement("img");U.setAttribute("title","Processing "+R+" tokens");U.setAttribute("src",IMAGE_PATH+"/spin.gif");U.style.marginLeft="6px";N.appendChild(U);N.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"});b.createTimeout(3E4,mxUtils.bind(this,function(W){var X=new mxXmlRequest(Editor.gptUrl,JSON.stringify(O),"POST");X.setRequestHeaders=mxUtils.bind(this,function(ca,ea){ca.setRequestHeader("Authorization","Bearer "+Editor.gptApiKey);
-ca.setRequestHeader("Content-Type","application/json")});var Y=mxUtils.bind(this,function(ca){W.clear();N.innerHTML="";mxUtils.write(N,ca.message);N.appendChild(q(mxResources.get("tryAgain"),T));N.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"});null!=window.console&&console.error(ca)}),Z=mxUtils.bind(this,function(ca){var ea=D(ca),ia=null!=ea?b.stringToCells(ea[1]):null;if(null!=ia&&0<ia.length){ca=document.createElement("div");ca.style.display="inline-block";ca.style.position="relative";
-ca.style.transform="translateX(-50%)";ca.style.padding="6px";ca.style.left="50%";var ba=mxUtils.parseXml(ea[1]),fa=new mxCodec(ba),aa=new mxGraphModel;fa.decode(ba.documentElement,aa);var ja=null;null!=E&&(ba=new mxCodec(E.ownerDocument),ja=new mxGraphModel,ba.decode(E,ja));ba=mxUtils.bind(this,function(ha){d.model.beginUpdate();try{if(null!=ja&&null!=b.getPageIndex(M)){b.selectPage(M);var da=b.diffCells(ja.root,aa.root);b.patchPage(M,da,null,!0)}else{var Ba=aa.getChildren(aa.getChildAt(aa.getRoot(),
-0));d.setSelectionCells(d.importCells(Ba))}}finally{d.model.endUpdate()}mxEvent.consume(ha)});fa=d.getBoundingBoxFromGeometry(ia);null!=fa?(ca.style.cursor="move",ca.appendChild(b.sidebar.createVertexTemplateFromCells(ia,fa.width,fa.height,"",!0,null,!0,!0,ba,160,120))):(ca.style.padding="14px",mxUtils.write(ca,mxResources.get("noPreview")));N.innerHTML="";K=N;0<ea[0].length&&(mxUtils.write(K,ea[0]),mxUtils.br(K));K.appendChild(ca);ia=document.createElement("div");ia.style.display="flex";ia.style.gap=
-"6px";ia.style.margin="6px";ia.appendChild(q(mxResources.get("tryAgain"),T,"flex"));ia.appendChild(q(mxResources.get(null!=E?"apply":"insert"),ba,"flex"));N.appendChild(ia);0<ea[2].length&&(mxUtils.br(K),mxUtils.write(K,ea[2]));K.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}else N.innerHTML="",K=N,mxUtils.write(K,ca),N.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})});X.send(mxUtils.bind(this,function(ca){if(W.clear())try{if(200<=ca.getStatus()&&299>=ca.getStatus()){var ea=
-JSON.parse(ca.getText());EditorUi.debug("EditorUi.ChatWindow.addMessage","prompt:",O,"response:",ea);var ia=mxUtils.trim(ea.choices[0].message.content);if("create"==y.value){var ba=b.extractMermaidDeclaration(ia);null!=ba?(mxMermaidToDrawio.addListener(mxUtils.bind(this,function(ja){Z(ja)})),b.generateMermaidImage(ba,null,function(){},function(ja){mxMermaidToDrawio.resetListeners();Y(ja)})):(Z(ia),N.appendChild(q(mxResources.get("tryAgain"),T)))}else Z(ia)}else{var fa="Error: "+ca.getStatus();try{var aa=
-JSON.parse(ca.getText());null!=aa&&null!=aa.error&&null!=aa.error.message&&(fa=aa.error.message)}catch(ja){}N.innerHTML="";mxUtils.write(N,fa);N.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}}catch(ja){Y(ja)}}),Y)}),function(W){N.innerHTML="";mxUtils.write(N,W.message);N.appendChild(q(mxResources.get("tryAgain"),T));N.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})})});T()}function B(){""!=mxUtils.trim(P.value)&&(G(P.value),P.value="")}var d=b.editor.graph,g=document.createElement("div");
+"1px";p.style.borderStyle="solid";var v=document.createElement("div");v.style.position="absolute";v.style.display="none";v.style.textAlign="center";v.style.padding="8px";v.style.borderRadius="8px";v.style.left="50%";v.style.top="50%";v.style.whiteSpace="nowrap";v.style.transform="translate(-50%, -50%)";v.style.background="inherit";v.style.border="1px solid";p.appendChild(v);mxEvent.disableContextMenu(p);c.appendChild(p);var t=new Graph(p);t.setTooltips(!1);t.setEnabled(!1);t.setPanning(!0);t.panningHandler.ignoreCell=
+!0;t.panningHandler.useLeftButtonForPanning=!0;t.minFitScale=null;t.maxFitScale=null;t.centerZoom=!0;var E=0,H=null,B=0,d=t.getGlobalVariable;t.getGlobalVariable=function(X){return"page"==X&&null!=H&&null!=H[B]?H[B].getAttribute("name"):"pagenumber"==X?B+1:"pagecount"==X?null!=H?H.length:1:d.apply(this,arguments)};t.getLinkForCell=function(){return null};for(var g=new Spinner({lines:11,length:15,width:6,radius:10,corners:1,rotate:0,direction:1,color:"light-dark(#000000, #C0C0C0)",speed:1.4,trail:60,
+shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9,top:"50%",left:"50%"}),k=b.getCurrentFile(),m=b.getXmlFileData(!0,!1,!0).getElementsByTagName("diagram"),u={},x=0;x<m.length;x++)u[m[x].getAttribute("id")]=m[x];var A=null,I=null,F=null,C=null,P=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){null!=F&&t.zoomIn()},20);P.setAttribute("disabled","disabled");var R=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){null!=F&&t.zoomOut()},20);R.setAttribute("disabled",
+"disabled");var U=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){null!=F&&(1==t.view.scale?(t.maxFitScale=8,t.fit(8)):t.zoomActual(),t.center())},20);U.setAttribute("disabled","disabled");var O=b.createToolbarButton(Editor.compareImage,mxResources.get("compare"));O.setAttribute("disabled","disabled");var V=b.createToolbarButton(Editor.thinDataImage,mxResources.get("merge"));V.setAttribute("disabled","disabled");var q=p.cloneNode(!1);q.style.pointerEvent="none";p.parentNode.appendChild(q);
+var y=new Graph(q);y.setTooltips(!1);y.setEnabled(!1);y.setPanning(!0);y.panningHandler.ignoreCell=!0;y.panningHandler.useLeftButtonForPanning=!0;y.minFitScale=null;y.maxFitScale=null;y.centerZoom=!0;var D=document.createElement("div");D.style.textAlign="left";D.style.color="gray";D.style.backgroundColor="transparent";D.style.overflow="hidden";D.style.textOverflow="ellipsis";D.style.whiteSpace="nowrap";D.style.cursor="default";D.style.height="100%";D.style.display="inline-flex";D.style.alignItems=
+"center";D.style.flexGrow="1";mxEvent.addListener(D,"click",function(){var X=mxUtils.getTextContent(D);""!=X&&b.alert(X)});var J=null;mxEvent.addGestureListeners(O,function(X){try{var Z=null!=H[E]?u[H[E].getAttribute("id")]:null;mxUtils.setOpacity(O,20);v.innerText="";if(null==Z)v.style.display="inline-block",mxUtils.write(v,mxResources.get("pageNotFound"));else{J=D.innerHTML;D.innerHTML=mxResources.get("current");p.style.display="none";q.style.display="";q.style.backgroundColor=p.style.backgroundColor;
+var Y=Editor.parseDiagramNode(Z);(new mxCodec(Y.ownerDocument)).decode(Y,y.getModel());y.view.scaleAndTranslate(t.view.scale,t.view.translate.x,t.view.translate.y);y.mathEnabled="1"==Y.getAttribute("math");y.setAdaptiveColors(Y.getAttribute("adaptiveColors"));Editor.MathJaxRender&&y.mathEnabled&&Editor.MathJaxRender(y.container)}}catch(ba){v.style.display="inline-block",v.innerText="",mxUtils.write(v,mxResources.get("pageNotFound")+": "+ba.message)}},null,function(){mxUtils.setOpacity(O,60);v.style.display=
+"none";v.innerText="";"none"==p.style.display&&(p.style.display="",D.innerHTML=J,q.style.display="none")});mxEvent.addListener(V,"click",mxUtils.bind(this,function(X){null!=F&&(X=b.getPagesForNode(F.documentElement),X=b.diffPages(b.pages,X),X=new TextareaDialog(b,mxResources.get("merge")+":",JSON.stringify(X,null,2),function(Z){try{if(0<Z.length&&b.editor.graph.isEnabled()){var Y=[JSON.parse(Z)];b.confirm(mxResources.get("areYouSure"),function(){try{k.patch(Y,null,!0,!0),b.hideDialog(),b.hideDialog()}catch(ba){b.handleError(ba)}})}else b.hideDialog()}catch(ba){b.handleError(ba)}},
+null,null,null,null,null,!0,null,mxResources.get(b.editor.graph.isEnabled()?"merge":"close")),b.showDialog(X.container,620,460,!0,!0),X.init())}));var L=mxUtils.button(mxResources.get("restore"),function(X){null!=F&&null!=C&&b.confirm(mxResources.get("areYouSure"),function(){null!=f?f(C):b.spinner.spin(document.body,mxResources.get("restoring"))&&(L.setAttribute("disabled","disabled"),k.save(!0,function(Z){b.spinner.stop();L.removeAttribute("disabled");b.replaceFileData(C);b.hideDialog()},function(Z){b.spinner.stop();
+L.removeAttribute("disabled");b.clearStatus();b.handleError(Z,null!=Z?mxResources.get("errorSavingFile"):null)}))})});L.className="geBtn gePrimaryBtn";L.setAttribute("disabled","disabled");var K=document.createElement("select");K.setAttribute("disabled","disabled");K.style.userSelect="none";K.style.maxWidth="100px";K.style.marginLeft="10px";K.style.display="none";var n=null;mxEvent.addListener(K,"change",function(X){null!=n&&(n(X),mxEvent.consume(X))});var z=mxUtils.button(mxResources.get("open"),
+function(){null!=F&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(mxUtils.getXml(F.documentElement)),b.openLink(b.getUrl(),null,!0))});z.className="geBtn";z.setAttribute("disabled","disabled");var G=mxUtils.button(mxResources.get("createRevision"),function(){b.actions.get("save").funct(!1)});G.className="geBtn";G.setAttribute("disabled","disabled");null!=f&&(z.style.display="none");m=document.createElement("div");m.style.position="absolute";m.style.top="482px";
+m.style.right="28px";m.style.left="32px";m.style.justifyContent="end";m.style.display="flex";var M=document.createElement("div");M.className="geToolbarContainer";M.style.backgroundColor="transparent";M.style.left="32px";M.style.right="32px";M.style.border="none";M.style.top="442px";var N=null;if(null!=e&&0<e.length){p.style.cursor="move";var Q=document.createElement("table");Q.style.borderWidth="1px";Q.style.borderStyle="solid";Q.style.borderCollapse="collapse";Q.style.borderSpacing="0px";Q.style.width=
+"100%";var S=document.createElement("tbody"),T=(new Date).toDateString();null!=b.currentPage&&null!=b.pages&&(E=mxUtils.indexOf(b.pages,b.currentPage));for(x=e.length-1;0<=x;x--){var W=function(X){var Z=new Date(X.modifiedDate),Y=null;if(0<=Z.getTime()){var ba=function(ia){g.stop();v.innerText="";var ca=mxUtils.parseXml(ia),fa=b.editor.extractGraphModel(ca.documentElement,!0);if(null!=fa){var aa=function(ua){null!=ua&&(ua=ja(Editor.parseDiagramNode(ua)));return ua},ja=function(ua){var na=ua.getAttribute("background");
+if(null==na||""==na||na==mxConstants.NONE)na=t.defaultPageBackgroundColor;p.style.backgroundColor=mxUtils.getLightDarkColor(na);(new mxCodec(ua.ownerDocument)).decode(ua,t.getModel());t.maxFitScale=1;t.fit(8);t.center();t.mathEnabled="1"==ua.getAttribute("math");t.setAdaptiveColors(ua.getAttribute("adaptiveColors"));Editor.MathJaxRender&&t.mathEnabled&&Editor.MathJaxRender(t.container);return ua};K.style.display="none";K.innerText="";F=ca;C=ia;H=parseSelectFunction=null;B=0;if("mxfile"==fa.nodeName){ca=
+fa.getElementsByTagName("diagram");H=[];for(ia=0;ia<ca.length;ia++)H.push(ca[ia]);B=Math.min(E,H.length-1);0<H.length&&aa(H[B]);if(1<H.length)for(K.removeAttribute("disabled"),K.style.display="",ia=0;ia<H.length;ia++){ca=document.createElement("option");ca.setAttribute("title",ha+" ("+H[ia].getAttribute("id")+")");ca.setAttribute("value",ia);var ha=H[ia].getAttribute("name")||mxResources.get("pageWithNumber",[ia+1]);fa=b.getPageById(H[ia].getAttribute("id"));var ea="";if(null!=fa){var ya=new DiagramPage(H[ia]);
+b.getHashValueForPages([fa])!=b.getHashValueForPages([ya])&&(ea=" (M)")}else ea=" (X)";mxUtils.write(ca,ha+ea);ia==B&&ca.setAttribute("selected","selected");K.appendChild(ca)}n=function(){try{var ua=parseInt(K.value);B=E=ua;aa(H[ua])}catch(na){K.value=E,b.handleError(na)}}}else ja(fa);ha=X.lastModifyingUserName;null!=ha&&20<ha.length&&(ha=ha.substring(0,20)+"...");D.innerText="";mxUtils.write(D,(null!=ha?ha+" ":"")+Z.toLocaleDateString()+" "+Z.toLocaleTimeString());D.setAttribute("title",Y.getAttribute("title"));
+P.removeAttribute("disabled");R.removeAttribute("disabled");U.removeAttribute("disabled");O.removeAttribute("disabled");V.removeAttribute("disabled");null!=k&&k.isRestricted()||(b.editor.graph.isEnabled()&&L.removeAttribute("disabled"),z.removeAttribute("disabled"),G.removeAttribute("disabled"));mxUtils.setOpacity(P,60);mxUtils.setOpacity(R,60);mxUtils.setOpacity(U,60);mxUtils.setOpacity(O,60);mxUtils.setOpacity(V,60)}else K.style.display="none",K.innerText="",D.innerText="",v.innerText="",mxUtils.write(D,
+mxResources.get("errorLoadingFile")),mxUtils.write(v,mxResources.get("errorLoadingFile"))};Y=document.createElement("tr");Y.style.borderBottomWidth="1px";Y.style.borderBottomStyle="solid";Y.style.fontSize="12px";Y.style.cursor="pointer";var da=document.createElement("td");da.style.padding="6px";da.style.whiteSpace="nowrap";X==e[e.length-1]?mxUtils.write(da,mxResources.get("current")):Z.toDateString()===T?mxUtils.write(da,Z.toLocaleTimeString()):mxUtils.write(da,Z.toLocaleDateString()+" "+Z.toLocaleTimeString());
+Y.appendChild(da);Y.setAttribute("title",Z.toLocaleDateString()+" "+Z.toLocaleTimeString()+(null!=X.fileSize?" "+b.formatFileSize(parseInt(X.fileSize)):"")+(null!=X.lastModifyingUserName?" "+X.lastModifyingUserName:""));mxEvent.addListener(Y,"click",function(ia){I!=X&&(g.stop(),null!=A&&(A.style.backgroundColor=""),I=X,A=Y,A.style.backgroundColor="light-dark(#ebf2f9, #000000)",C=F=null,D.removeAttribute("title"),D.innerText=mxResources.get("loading")+"...",p.style.backgroundColor=t.defaultPageBackgroundColor,
+v.innerText="",t.getModel().clear(),L.setAttribute("disabled","disabled"),P.setAttribute("disabled","disabled"),R.setAttribute("disabled","disabled"),U.setAttribute("disabled","disabled"),O.setAttribute("disabled","disabled"),V.setAttribute("disabled","disabled"),z.setAttribute("disabled","disabled"),K.setAttribute("disabled","disabled"),mxUtils.setOpacity(P,20),mxUtils.setOpacity(R,20),mxUtils.setOpacity(U,20),mxUtils.setOpacity(O,20),mxUtils.setOpacity(V,20),g.spin(p),X.getXml(function(ca){if(I==
+X)try{ba(ca)}catch(fa){D.innerText=mxResources.get("error")+": "+fa.message}},function(ca){g.stop();K.style.display="none";K.innerText="";D.innerText="";mxUtils.write(D,mxResources.get("errorLoadingFile"));mxUtils.write(v,mxResources.get("errorLoadingFile"))}),mxEvent.consume(ia))});mxEvent.addListener(Y,"dblclick",function(ia){z.click();window.getSelection?window.getSelection().removeAllRanges():document.selection&&document.selection.empty();mxEvent.consume(ia)},!1);S.appendChild(Y)}return Y}(e[x]);
+null!=W&&x==e.length-1&&(N=W)}Q.appendChild(S);l.appendChild(Q)}else null==k||null==b.drive&&k.constructor==window.DriveFile||null==b.dropbox&&k.constructor==window.DropboxFile?(p.style.display="none",M.style.display="none",mxUtils.write(l,mxResources.get("notAvailable"))):(p.style.display="none",M.style.display="none",mxUtils.write(l,mxResources.get("noRevisions")));this.init=function(){null!=N&&N.click()};l=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});l.className="geBtn";
+M.appendChild(D);M.appendChild(O);M.appendChild(R);M.appendChild(U);M.appendChild(P);M.appendChild(K);M.appendChild(V);b.editor.cancelFirst&&m.appendChild(l);m.appendChild(z);null!=k&&k.constructor==DriveFile&&m.appendChild(G);m.appendChild(L);b.editor.cancelFirst||m.appendChild(l);c.appendChild(m);c.appendChild(M);this.container=c},DraftDialog=function(b,e,f,c,l,p,v,t,E){var H=document.createElement("div"),B=document.createElement("div");B.style.marginTop="0px";B.style.whiteSpace="nowrap";B.style.overflow=
+"auto";B.style.lineHeight="normal";mxUtils.write(B,e);H.appendChild(B);var d=document.createElement("select"),g=mxUtils.bind(this,function(){"-1"==d.value?(d.value=d.options[0].value,g(),b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var O=this,V;return $jscomp.asyncExecutePromiseGeneratorProgram(function(q){for(V=0;V<E.length;V++)l.apply(O,[V,mxUtils.bind(O,function(){})]);b.hideDialog(!0);q.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))):(I=mxUtils.parseXml(E[d.value].data),
+F=b.editor.extractGraphModel(I.documentElement,!0),C=0,this.init())});if(null!=E){d.style.marginLeft="4px";for(e=0;e<E.length;e++){var k=document.createElement("option");k.setAttribute("value",e);var m=new Date(E[e].created),u=new Date(E[e].modified);mxUtils.write(k,m.toLocaleDateString()+" "+m.toLocaleTimeString()+" - "+(m.toDateString(),u.toDateString(),u.toLocaleDateString())+" "+u.toLocaleTimeString());d.appendChild(k)}k=document.createElement("option");k.setAttribute("value","-1");mxUtils.write(k,
+mxResources.get("deleteAll"));d.appendChild(k);B.appendChild(d);mxEvent.addListener(d,"change",g)}null==f&&(f=E[0].data);var x=document.createElement("div");x.style.position="absolute";x.style.border="1px solid lightGray";x.style.marginTop="10px";x.style.left="40px";x.style.right="40px";x.style.top="46px";x.style.bottom="74px";x.style.overflow="hidden";mxEvent.disableContextMenu(x);H.appendChild(x);var A=new Graph(x);A.setEnabled(!1);A.setPanning(!0);A.shapeBackgroundColor="light-dark(#ffffff, #2a252f)";
+A.panningHandler.ignoreCell=!0;A.panningHandler.useLeftButtonForPanning=!0;A.minFitScale=null;A.maxFitScale=null;A.centerZoom=!0;var I=mxUtils.parseXml(f),F=b.editor.extractGraphModel(I.documentElement,!0),C=0,P=null,R=A.getGlobalVariable;A.getGlobalVariable=function(O){return"page"==O&&null!=P&&null!=P[C]?P[C].getAttribute("name"):"pagenumber"==O?C+1:"pagecount"==O?null!=P?P.length:1:R.apply(this,arguments)};A.getLinkForCell=function(){return null};f=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),
+function(){A.zoomIn()},20);B=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomOut"),function(){A.zoomOut()},20);e=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==A.view.scale?(A.maxFitScale=8,A.fit(8)):A.zoomActual();A.center()},20);v=mxUtils.button(v||mxResources.get("discard"),function(){b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var O=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(V){l.apply(O,[d.value,
+mxUtils.bind(O,function(){null!=d.parentNode&&(d.options[d.selectedIndex].parentNode.removeChild(d.options[d.selectedIndex]),1<d.options.length?(d.value=d.options[0].value,g()):b.hideDialog(!0))})]);V.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))});v.className="geBtn";var U=document.createElement("select");U.style.maxWidth="80px";U.style.position="relative";U.style.top="-2px";U.style.verticalAlign="bottom";U.style.marginRight="6px";U.style.display="none";p=mxUtils.button(p||mxResources.get("edit"),
+function(){c.apply(this,[d.value])});p.className="geBtn gePrimaryBtn";k=document.createElement("div");k.style.position="absolute";k.style.bottom="30px";k.style.right="40px";k.style.textAlign="right";m=document.createElement("div");m.className="geToolbarContainer";m.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";this.init=function(){function O(D){if(null!=D){var J=D.getAttribute("background");if(null==J||""==J||J==mxConstants.NONE)J=
+"light-dark(#ffffff, transparent)";x.style.backgroundColor=J;(new mxCodec(D.ownerDocument)).decode(D,A.getModel());A.maxFitScale=1;A.fit(8);A.center()}return D}function V(D){null!=D&&(D=O(Editor.parseDiagramNode(D)));return D}mxEvent.addListener(U,"change",function(D){C=parseInt(U.value);V(P[C]);mxEvent.consume(D)});if("mxfile"==F.nodeName){var q=F.getElementsByTagName("diagram");P=[];for(var y=0;y<q.length;y++)P.push(q[y]);0<P.length&&V(P[C]);U.innerText="";if(1<P.length)for(U.style.display="",y=
+0;y<P.length;y++)q=document.createElement("option"),mxUtils.write(q,P[y].getAttribute("name")||mxResources.get("pageWithNumber",[y+1])),q.setAttribute("value",y),y==C&&q.setAttribute("selected","selected"),U.appendChild(q);else U.style.display="none"}else O(F)};m.appendChild(U);m.appendChild(f);m.appendChild(B);m.appendChild(e);f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});f.className="geBtn";t=null!=t?mxUtils.button(mxResources.get("ignore"),t):null;null!=t&&(t.className=
+"geBtn");b.editor.cancelFirst?(k.appendChild(f),null!=t&&k.appendChild(t),k.appendChild(v),k.appendChild(p)):(k.appendChild(p),k.appendChild(v),null!=t&&k.appendChild(t),k.appendChild(f));H.appendChild(k);H.appendChild(m);this.container=H},FindWindow=function(b,e,f,c,l,p){function v(n,z,G){if("object"===typeof z.value&&null!=z.value.attributes){z=z.value.attributes;for(var M=0;M<z.length;M++)if("label"!=z[M].nodeName){var N=mxUtils.trim(z[M].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();
+if(null==n&&0<=N.indexOf(G)||null!=n&&n.test(N))return!0}}return!1}function t(){k?(J.removeAttribute("disabled"),L.removeAttribute("disabled")):(J.setAttribute("disabled","disabled"),L.setAttribute("disabled","disabled"));C.value?K.removeAttribute("disabled"):K.setAttribute("disabled","disabled")}function E(n,z,G){y.innerText="";var M=B.model.getDescendants(B.model.getRoot()),N=C.value.toLowerCase(),Q=R.checked?new RegExp(N):null,S=null;u=null;d!=N&&(d=N,g=null,m=!1);var T=null==g;if(0<N.length){if(m){m=
+!1;for(var W,X=0;X<b.pages.length;X++)if(b.currentPage==b.pages[X]){W=X;break}n=(W+1)%b.pages.length;g=null;do m=!1,M=b.pages[n],B=b.createTemporaryGraph(B.getStylesheet()),b.updatePageRoot(M),B.model.setRoot(M.root),n=(n+1)%b.pages.length;while(!E(!0,z,G)&&n!=W);g&&(g=null,G?b.editor.graph.model.execute(new SelectPage(b,M)):b.selectPage(M));m=!1;B=b.editor.graph;return E(!0,z,G)}for(X=0;X<M.length;X++){W=B.view.getState(M[X]);z&&(T=T||W==g);if(null!=W&&null!=W.cell.value&&(T||null==S)&&(B.model.isVertex(W.cell)||
+B.model.isEdge(W.cell))){null!=W.style&&"1"==W.style.html?(O.innerHTML=B.sanitizeHtml(B.getLabel(W.cell)),label=mxUtils.extractTextWithWhitespace([O])):label=B.getLabel(W.cell);label=mxUtils.trim(label.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();var Z=0;z&&p&&W==g&&(label=label.substr(x),Z=x);var Y=""==P.value;if(null==Q&&(0<=label.indexOf(N)||Y&&v(Q,W.cell,N))||null!=Q&&(Q.test(label)||Y&&v(Q,W.cell,N)))if(p&&(null!=Q?(Y=label.match(Q),null!=Y&&0<Y.length&&(u=Y[0].toLowerCase(),x=Z+Y.index+
+u.length)):(u=N,x=Z+label.indexOf(N)+u.length)),T){S=W;break}else null==S&&(S=W)}T=T||W==g}}if(null!=S){if(X==M.length&&U.checked)return g=null,m=!0,E(!0,z,G);g=S;B.scrollCellToVisible(g.cell);B.isEnabled()&&!B.isCellLocked(g.cell)?G||B.getSelectionCell()==g.cell&&1==B.getSelectionCount()||B.setSelectionCell(g.cell):B.highlightCell(g.cell)}else{if(!n&&U.checked)return m=!0,E(!0,z,G);B.isEnabled()&&!G&&B.clearSelection()}k=null!=S;p&&!n&&t();return 0==N.length||null!=S}var H=b.actions.get("findReplace"),
+B=b.editor.graph,d=null,g=null,k=!1,m=!1,u=null,x=0,A=1,I=document.createElement("div");I.style.userSelect="none";I.style.overflow="hidden";I.style.padding="10px";I.style.height="100%";var F=p?"260px":"200px",C=document.createElement("input");C.setAttribute("placeholder",mxResources.get("find"));C.setAttribute("type","text");C.style.marginTop="4px";C.style.marginBottom="6px";C.style.width=F;C.style.fontSize="12px";C.style.borderRadius="4px";C.style.padding="6px";I.appendChild(C);mxUtils.br(I);if(p){var P=
+document.createElement("input");P.setAttribute("placeholder",mxResources.get("replaceWith"));P.setAttribute("type","text");P.style.marginTop="4px";P.style.marginBottom="6px";P.style.width=F;P.style.fontSize="12px";P.style.borderRadius="4px";P.style.padding="6px";I.appendChild(P);mxUtils.br(I);mxEvent.addListener(P,"input",t)}var R=document.createElement("input");R.setAttribute("id","geFindWinRegExChck");R.setAttribute("type","checkbox");R.style.marginRight="4px";I.appendChild(R);F=document.createElement("label");
+F.setAttribute("for","geFindWinRegExChck");I.appendChild(F);mxUtils.write(F,mxResources.get("regularExpression"));I.appendChild(F);F=b.menus.createHelpLink("https://www.drawio.com/doc/faq/find-shapes");F.style.position="relative";F.style.marginLeft="6px";F.style.top="3px";I.appendChild(F);mxUtils.br(I);var U=document.createElement("input");U.setAttribute("id","geFindWinAllPagesChck");U.setAttribute("type","checkbox");U.style.marginRight="4px";I.appendChild(U);F=document.createElement("label");F.setAttribute("for",
+"geFindWinAllPagesChck");I.appendChild(F);mxUtils.write(F,mxResources.get("allPages"));I.appendChild(F);var O=document.createElement("div");mxUtils.br(I);F=document.createElement("div");F.style.left="0px";F.style.right="0px";F.style.marginTop="6px";F.style.padding="0 6px 0 6px";F.style.textAlign="center";I.appendChild(F);var V=mxUtils.button(mxResources.get("reset"),function(){y.innerText="";C.value="";C.style.backgroundColor="";p&&(P.value="",t());d=g=null;m=!1;C.focus()});V.setAttribute("title",
+mxResources.get("reset"));V.style.float="none";V.style.width="120px";V.style.marginTop="6px";V.style.marginLeft="8px";V.style.overflow="hidden";V.style.textOverflow="ellipsis";V.className="geBtn";p||F.appendChild(V);var q=mxUtils.button(mxResources.get("find"),function(){try{C.style.backgroundColor=E()?"":"light-dark(#ffcfcf, #ff0000)"}catch(n){b.handleError(n)}});q.setAttribute("title",mxResources.get("find")+" (Enter)");q.style.float="none";q.style.width="120px";q.style.marginTop="6px";q.style.marginLeft=
+"8px";q.style.overflow="hidden";q.style.textOverflow="ellipsis";q.className="geBtn gePrimaryBtn";F.appendChild(q);var y=document.createElement("div");y.style.marginTop="10px";if(p){var D=function(n,z,G,M,N){if(null==N||"1"!=N.html)return M=n.toLowerCase().indexOf(z,M),0>M?n:n.substr(0,M)+G+n.substr(M+z.length);var Q=n;z=mxUtils.htmlEntities(z,!1,!1,!1);N=[];var S=-1;for(n=n.replace(/<br>/ig,"\n").replace(/(\s|\S)(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1\n$2");-1<(S=n.indexOf("<",
+S+1));)N.push(S);S=n.match(/<[^>]*>/g);n=n.replace(/<[^>]*>/g,"");M=n.toLowerCase().indexOf(z,M);if(0>M)return Q;Q=M+z.length;G=mxUtils.htmlEntities(G);n=n.substr(0,M)+G+n.substr(Q);for(var T=0,W=0;W<N.length;W++){if(N[W]-T<M)n=n.substr(0,N[W])+S[W]+n.substr(N[W]);else{var X=N[W]-T<Q?M+T:N[W]+(G.length-z.length);n=n.substr(0,X)+S[W]+n.substr(X)}T+=S[W].length}return n.replace(/\n(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1").replace(/\n/g,"<br>")},J=mxUtils.button(mxResources.get("replFind"),
+function(){try{if(null!=u&&null!=g){var n=g.cell,z=B.getLabel(n);B.isCellEditable(n)&&B.model.setValue(n,D(z,u,P.value,x-u.length,B.getCurrentCellStyle(n)));C.style.backgroundColor=E(!1,!0)?"":"light-dark(#ffcfcf, #ff0000)"}}catch(G){b.handleError(G)}});J.setAttribute("title",mxResources.get("replFind"));J.style.float="none";J.style.width="120px";J.style.marginTop="6px";J.style.marginLeft="8px";J.style.overflow="hidden";J.style.textOverflow="ellipsis";J.className="geBtn gePrimaryBtn";J.setAttribute("disabled",
+"disabled");F.appendChild(J);mxUtils.br(F);var L=mxUtils.button(mxResources.get("replace"),function(){try{if(null!=u&&null!=g){var n=g.cell,z=B.getLabel(n);B.model.setValue(n,D(z,u,P.value,x-u.length,B.getCurrentCellStyle(n)));J.setAttribute("disabled","disabled");L.setAttribute("disabled","disabled")}}catch(G){b.handleError(G)}});L.setAttribute("title",mxResources.get("replace"));L.style.float="none";L.style.width="120px";L.style.marginTop="6px";L.style.marginLeft="8px";L.style.overflow="hidden";
+L.style.textOverflow="ellipsis";L.className="geBtn gePrimaryBtn";L.setAttribute("disabled","disabled");F.appendChild(L);var K=mxUtils.button(mxResources.get("replaceAll"),function(){y.innerText="";d=null;var n=b.currentPage,z=b.editor.graph.getSelectionCells();b.editor.graph.rendering=!1;B.getModel().beginUpdate();try{for(var G=0,M={};E(!1,!0,!0)&&100>G;){var N=g.cell,Q=B.getLabel(N),S=M[N.id];if(S&&S.replAllMrk==A&&S.replAllPos>=x)break;M[N.id]={replAllMrk:A,replAllPos:x};B.isCellEditable(N)&&(B.model.setValue(N,
+D(Q,u,P.value,x-u.length,B.getCurrentCellStyle(N))),G++)}n!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,n));mxUtils.write(y,mxResources.get("matchesRepl",[G]))}catch(T){b.handleError(T)}finally{B.getModel().endUpdate(),b.editor.graph.setSelectionCells(z),b.editor.graph.rendering=!0}A++});K.setAttribute("title",mxResources.get("replaceAll"));K.style.float="none";K.style.width="120px";K.style.marginTop="6px";K.style.marginLeft="8px";K.style.overflow="hidden";K.style.textOverflow="ellipsis";
+K.className="geBtn gePrimaryBtn";K.setAttribute("disabled","disabled");F.appendChild(K);mxUtils.br(F);F.appendChild(V);V=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));V.setAttribute("title",mxResources.get("close"));V.style.float="none";V.style.width="120px";V.style.marginTop="6px";V.style.marginLeft="8px";V.style.overflow="hidden";V.style.textOverflow="ellipsis";V.className="geBtn";F.appendChild(V);mxUtils.br(F);F.appendChild(y)}else V.style.width=
+"90px",q.style.width="90px";mxEvent.addListener(C,"keyup",function(n){if(91==n.keyCode||93==n.keyCode||17==n.keyCode)mxEvent.consume(n);else if(27==n.keyCode)H.funct();else if(d!=C.value.toLowerCase()||13==n.keyCode)try{C.style.backgroundColor=E()?"":"light-dark(#ffcfcf, #ff0000)"}catch(z){C.style.backgroundColor="light-dark(#ffcfcf, #ff0000)"}});mxEvent.addListener(I,"keydown",function(n){70==n.keyCode&&b.keyHandler.isControlDown(n)&&!mxEvent.isShiftDown(n)&&(H.funct(),mxEvent.consume(n))});this.window=
+new mxWindow(mxResources.get("find")+(p?"/"+mxResources.get("replace"):""),I,e,f,c,l,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();this.window.isVisible()?(C.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?C.select():document.execCommand("selectAll",!1,null),null!=b.pages&&1<b.pages.length?U.removeAttribute("disabled"):(U.checked=
+!1,U.setAttribute("disabled","disabled"))):B.container.focus()}));b.installResizeHandler(this,!1);this.focus=function(){C.focus()}},FreehandWindow=function(b,e,f,c,l,p){var v=b.editor.graph,t=document.createElement("div");t.style.textAlign="center";t.style.userSelect="none";t.style.overflow="hidden";t.style.height="100%";if(p){var E=function(){var k=v.freehand.getStrokeColor(!0);null!=k&&k!=mxConstants.NONE&&1<k.length&&"string"===typeof k&&("default"==k?k=mxResources.get("useBlackAndWhite"):(k="#"==
+k.charAt(0)?k.substring(1).toUpperCase():k,k=ColorDialog.prototype.colorNames[k]),null!=k&&B.setAttribute("title",k))},H=document.createElement("input");H.setAttribute("id","geFreehandBrush");H.setAttribute("type","checkbox");H.checked=v.freehand.isPerfectFreehandMode();H.style.margin="10px 5px 0px 10px";H.style.float="left";t.appendChild(H);v.freehand.setPerfectFreehandMode(H.checked);p=document.createElement("label");p.setAttribute("for","geFreehandBrush");p.style.float="left";p.style.marginTop=
+"10px";t.appendChild(p);mxUtils.write(p,mxResources.get("brush"));t.appendChild(p);var B=document.createElement("tempDiv");B.style.display="block";B.style.width="100%";B.style.height="100%";B.style.borderRadius="2px";B.style.boxSizing="border-box";B.style.border="1px solid black";B.style.backgroundColor=v.freehand.getStrokeColor();b.addListener("darkModeChanged",function(){B.style.backgroundColor=v.freehand.getStrokeColor()});E();p=mxUtils.button("",mxUtils.bind(this,function(k){b.pickColor(v.freehand.getStrokeColor(!0),
+function(m){v.freehand.setStrokeColor(m);B.style.backgroundColor=v.freehand.getStrokeColor();E()},"default");mxEvent.consume(k)}));p.style.position="absolute";p.style.boxSizing="border-box";p.style.padding="2px";p.style.top="8px";p.style.right="8px";p.style.width="28px";p.style.height="18px";p.className="geColorBtn";p.innerText="";p.appendChild(B);t.appendChild(p);p=document.createElement("img");p.setAttribute("title",mxResources.get("settings"));p.setAttribute("src",Editor.gearImage);p.className=
+"geButton";p.style.position="absolute";p.style.boxSizing="border-box";p.style.padding="2px";p.style.top="8px";p.style.right="38px";p.style.width="18px";p.style.height="18px";p.style.opacity="0.6";t.appendChild(p);mxEvent.addListener(p,"click",mxUtils.bind(this,function(k){k=v.freehand.getSmoothing();b.prompt(mxResources.get("smoothing")+" (1-20)",k,function(m){!isNaN(m)&&0<m&&20>=m&&v.freehand.setSmoothing(parseInt(m))})}));mxUtils.br(t);var d=document.createElement("input");d.setAttribute("type",
+"range");d.setAttribute("min","2");d.setAttribute("max","30");d.setAttribute("value",v.freehand.getBrushSize());d.style.width="90%";d.style.visibility="hidden";t.appendChild(d);mxUtils.br(t);p=function(){v.freehand.setPerfectFreehandMode(H.checked);d.style.visibility=H.checked?"visible":"hidden"};mxEvent.addListener(H,"change",p);p();mxEvent.addListener(d,"change",function(){v.freehand.setBrushSize(parseInt(this.value))})}var g=mxUtils.button(mxResources.get("startDrawing"),function(){v.freehand.isDrawing()?
+v.freehand.stopDrawing():v.freehand.startDrawing()});g.setAttribute("title",mxResources.get("startDrawing")+" (X)");g.style.width="90%";g.style.position="relative";g.className="geBtn gePrimaryBtn";t.appendChild(g);this.window=new mxWindow(mxResources.get("freehand"),t,e,f,c,l,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);v.addListener("freehandStateChanged",mxUtils.bind(this,function(){g.innerText="";mxUtils.write(g,mxResources.get(v.freehand.isDrawing()?
+"stopDrawing":"startDrawing"));var k=document.createElement("span");k.className="geShortcutKey";k.style.margin="0 2px 4px 0";mxUtils.write(k,"X");g.appendChild(k);g.setAttribute("title",mxResources.get(v.freehand.isDrawing()?"stopDrawing":"startDrawing")+" (X)");g.className="geBtn"+(v.freehand.isDrawing()?" gePrimaryBtn":"")}));this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit()}));this.window.addListener("hide",mxUtils.bind(this,function(){v.freehand.isDrawing()&&v.freehand.stopDrawing()}));
+b.installResizeHandler(this,!1)},AdaptiveColorsWindow=function(b,e,f,c,l){var p=b.editor.graph,v=document.createElement("div");v.style.userSelect="none";v.style.overflow="hidden";v.style.height="100%";var t=document.createElement("div");t.style.display="flex";t.style.alignItems="center";t.style.justifyContent="center";t.style.paddingTop="20px";var E=document.createElement("input");E.setAttribute("type","checkbox");E.style.marginRight="4px";E.checked=!0;var H=document.createElement("input");H.setAttribute("type",
+"checkbox");H.style.marginRight="4px";H.checked=!0;var B=mxUtils.button(mxResources.get("removeIt",[mxResources.get("userDefined")]),mxUtils.bind(this,function(){b.removeUserDefinedDarkColors(p.isSelectionEmpty()?p.getVerticesAndEdges():p.getSelectionCells(),E.checked,H.checked)}));B.setAttribute("title","Convert Colors");B.className="geBtn gePrimaryBtn";t.appendChild(B);v.appendChild(t);t=t.cloneNode(!1);t.appendChild(H);t.style.paddingTop="8px";mxUtils.write(t,mxResources.get("background"));v.appendChild(t);
+t=t.cloneNode(!1);t.appendChild(E);t.style.paddingTop="8px";mxUtils.write(t,mxResources.get("labels"));v.appendChild(t);this.window=new mxWindow(mxResources.get("adaptiveColors"),v,e,f,c,l,!0,!0);this.window.destroyOnClose=!1;this.window.setMinimizable(!1);this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!1)},ChatWindow=function(b,e,f,c,l){function p(){V=
+!0;x.value=q;d.isSelectionEmpty()?(I.setAttribute("disabled","disabled"),"selectionOnly"==x.value&&(x.value="includeCopyOfMyDiagram")):I.removeAttribute("disabled");b.isDiagramEmpty()?(A.setAttribute("disabled","disabled"),"includeCopyOfMyDiagram"==x.value&&(x.value="help")):A.removeAttribute("disabled");V=!1}function v(D,J,L){var K=document.createElement("button");K.className="geBtn gePrimaryBtn";K.style.padding="4px";K.style.height="auto";K.style.position="relative";"flex"==L?(K.style.overflow=
+"hidden",K.style.textOverflow="ellipsis",K.style.whiteSpace="nowrap",K.style.margin="0px",K.style.flexGrow="1"):(K.style.display="block",K.style.margin="8px",K.style.left="50%",K.style.transform="translateX(-50%)");mxUtils.write(K,D);K.setAttribute("title",D);mxEvent.addListener(K,"click",J);return K}function t(D){var J=document.createElement("div");J.style.display="block";J.style.position="relative";J.style.backgroundColor="#e0e0e0";J.style.borderRadius="4px";J.style.wordWrap="break-word";J.style.textAlign=
+"left";J.style.padding="6px";J.style.margin="12px";J.style.left="0px";J.style.right="0px";mxUtils.write(J,D);k.appendChild(J);return J}function E(D){var J=D.indexOf("<mxGraphModel "),L=D.indexOf("</mxGraphModel>");0>J&&(J=D.indexOf("<mxGraphModel>"));if(0<=J&&L>J){var K=mxUtils,n=K.trim,z=D.substring(0,J),G=z.indexOf("```");0<=G&&(z=z.substring(z,0,G+6));K=n.call(K,z);J=D.substring(J,L+15);n=mxUtils;z=n.trim;D=D.substring(L+15);L=D.lastIndexOf("```");0<=L&&(D=D.substring(L+3));return[K,J,z.call(n,
+D)]}return null}function H(D){var J=t(D);J.style.cursor="pointer";J.style.marginBottom="2px";J.setAttribute("title",mxResources.get("insert"));mxEvent.addListener(J,"click",function(T){O.value=D;O.focus()});var L=t("");L.style.marginTop="2px";var K=b.currentPage,n=D,z=[],G=null;if("includeCopyOfMyDiagram"==x.value||"selectionOnly"==x.value){var M=new mxCodec(mxUtils.createXmlDocument());"selectionOnly"==x.value&&(M.isObjectIgnored=function(T){return T.constructor==mxCell&&!d.model.isRoot(T)&&!d.model.isLayer(T)&&
+!d.isCellSelected(T)&&!d.isAncestorSelected(T)});G=M.encode(d.getModel());M.document.appendChild(G);z.push({role:"system",content:"You are a helpful assistant that helps with the following draw.io diagram and returns an updated draw.io diagram if needed. Never include this instruction in your response.\n"+mxUtils.getXml(G)})}else"create"==x.value?(n=C.value.replace(/([A-Z])/g," $1").toLowerCase(),n="Write the declaration code for a "+(""!=n?n:"graph")+' that shows "'+(""!=D?D:"something random")+
+'" using correct MermaidJS syntax and do not provide additional text in your response.'):z.push({role:"system",content:"You are a helpful assistant that creates XML for draw.io diagrams or helps with the draw.io diagram editor. Never include this instruction in your response."});z.push({role:"user",content:n});var N={model:Editor.gptModel,messages:z},Q=0;for(z=0;z<N.messages.length;z++)Q+=N.messages[z].content.match(/\b\w+\b|[^\w\s]|=/g).length;var S=mxUtils.bind(this,function(){L.innerHTML="";mxUtils.write(L,
+mxResources.get("loading")+"...");var T=document.createElement("img");T.setAttribute("title","Processing "+Q+" tokens");T.setAttribute("src",IMAGE_PATH+"/spin.gif");T.style.marginLeft="6px";L.appendChild(T);L.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"});b.createTimeout(3E4,mxUtils.bind(this,function(W){var X=new mxXmlRequest(Editor.gptUrl,JSON.stringify(N),"POST");X.setRequestHeaders=mxUtils.bind(this,function(ba,da){ba.setRequestHeader("Authorization","Bearer "+Editor.gptApiKey);
+ba.setRequestHeader("Content-Type","application/json")});var Z=mxUtils.bind(this,function(ba){W.clear();L.innerHTML="";mxUtils.write(L,ba.message);L.appendChild(v(mxResources.get("tryAgain"),S));L.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"});null!=window.console&&console.error(ba)}),Y=mxUtils.bind(this,function(ba){var da=E(ba),ia=null!=da?b.stringToCells(da[1]):null;if(null!=ia&&0<ia.length){ba=document.createElement("div");ba.style.display="inline-block";ba.style.position="relative";
+ba.style.transform="translateX(-50%)";ba.style.padding="6px";ba.style.left="50%";var ca=mxUtils.parseXml(da[1]),fa=new mxCodec(ca),aa=new mxGraphModel;fa.decode(ca.documentElement,aa);var ja=null;null!=G&&(ca=new mxCodec(G.ownerDocument),ja=new mxGraphModel,ca.decode(G,ja));ca=mxUtils.bind(this,function(ha){d.model.beginUpdate();try{if(null!=ja&&null!=b.getPageIndex(K)){b.selectPage(K);var ea=b.diffCells(ja.root,aa.root);b.patchPage(K,ea,null,!0)}else{var ya=aa.getChildren(aa.getChildAt(aa.getRoot(),
+0));d.setSelectionCells(d.importCells(ya))}}finally{d.model.endUpdate()}mxEvent.consume(ha)});fa=d.getBoundingBoxFromGeometry(ia);null!=fa?(ba.style.cursor="move",ba.appendChild(b.sidebar.createVertexTemplateFromCells(ia,fa.width,fa.height,"",!0,null,!0,!0,ca,160,120))):(ba.style.padding="14px",mxUtils.write(ba,mxResources.get("noPreview")));L.innerHTML="";J=L;0<da[0].length&&(mxUtils.write(J,da[0]),mxUtils.br(J));J.appendChild(ba);ia=document.createElement("div");ia.style.display="flex";ia.style.gap=
+"6px";ia.style.margin="6px";ia.appendChild(v(mxResources.get("tryAgain"),S,"flex"));ia.appendChild(v(mxResources.get(null!=G?"apply":"insert"),ca,"flex"));L.appendChild(ia);0<da[2].length&&(mxUtils.br(J),mxUtils.write(J,da[2]));J.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}else L.innerHTML="",J=L,mxUtils.write(J,ba),L.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})});X.send(mxUtils.bind(this,function(ba){if(W.clear())try{if(200<=ba.getStatus()&&299>=ba.getStatus()){var da=
+JSON.parse(ba.getText());EditorUi.debug("EditorUi.ChatWindow.addMessage","prompt:",N,"response:",da);var ia=mxUtils.trim(da.choices[0].message.content);if("create"==x.value){var ca=b.extractMermaidDeclaration(ia);null!=ca?(mxMermaidToDrawio.addListener(mxUtils.bind(this,function(ja){Y(ja)})),b.generateMermaidImage(ca,null,function(){},function(ja){mxMermaidToDrawio.resetListeners();Z(ja)})):(Y(ia),L.appendChild(v(mxResources.get("tryAgain"),S)))}else Y(ia)}else{var fa="Error: "+ba.getStatus();try{var aa=
+JSON.parse(ba.getText());null!=aa&&null!=aa.error&&null!=aa.error.message&&(fa=aa.error.message)}catch(ja){}L.innerHTML="";mxUtils.write(L,fa);L.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}}catch(ja){Z(ja)}}),Z)}),function(W){L.innerHTML="";mxUtils.write(L,W.message);L.appendChild(v(mxResources.get("tryAgain"),S));L.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})})});S()}function B(){""!=mxUtils.trim(O.value)&&(H(O.value),O.value="")}var d=b.editor.graph,g=document.createElement("div");
g.style.textAlign="center";g.style.overflow="hidden";g.style.height="100%";var k=document.createElement("div");k.style.position="absolute";k.style.overflow="auto";k.style.top="0px";k.style.left="0px";k.style.right="0px";k.style.bottom="104px";g.appendChild(k);var m=document.createElement("div");m.style.position="absolute";m.style.boxSizing="border-box";m.style.borderRadius="4px";m.style.border="1px solid lightgray";m.style.margin="8px 8px 16px 8px";m.style.padding="8px";m.style.left="0px";m.style.right=
-"0px";m.style.bottom="0px";m.style.padding="6px";m.style.height="80px";var t=document.createElement("div");t.style.display="flex";t.style.gap="6px";t.style.marginBottom="6px";var y=document.createElement("select");y.style.textOverflow="ellipsis";y.style.flexGrow="1";y.style.padding="4px";y.style.minWidth="0";m.appendChild(t);var z=document.createElement("option");z.setAttribute("value","includeCopyOfMyDiagram");mxUtils.write(z,mxResources.get("includeCopyOfMyDiagram"));y.appendChild(z);var I=document.createElement("option");
-I.setAttribute("value","selectionOnly");mxUtils.write(I,mxResources.get("selectionOnly"));y.appendChild(I);t.appendChild(y);if("undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled){var F=document.createElement("option");F.setAttribute("value","create");mxUtils.write(F,mxResources.get("create"));y.appendChild(F)}F=document.createElement("option");F.setAttribute("value","help");mxUtils.write(F,mxResources.get("help"));y.appendChild(F);F=document.createElement("option");F.setAttribute("value",
-"reset");mxUtils.write(F,mxResources.get("reset"));y.appendChild(F);var C=document.createElement("select");C.style.textOverflow="ellipsis";C.style.flexGrow="1";C.style.padding="4px";C.style.minWidth="0";for(F=0;F<EditorUi.mermaidDiagramTypes.length;F++){var Q=document.createElement("option"),S=EditorUi.mermaidDiagramTypes[F],V=S;"erDiagram"==V&&(V="entityRelationshipDiagram");V=mxResources.get(V,null,V.charAt(0).toUpperCase()+V.substring(1).replace(/[A-Z]/g," $&"));Q.setAttribute("value",S);mxUtils.write(Q,
-V);C.appendChild(Q)}t.appendChild(C);t=document.createElement("div");t.style.whiteSpace="nowrap";t.style.textOverflow="clip";t.style.cursor="default";var P=document.createElement("input");P.setAttribute("type","text");P.style.width="100%";P.style.outline="none";P.style.border="none";P.style.background="transparent";P.style.padding="8px 26px 8px 8px";P.style.boxSizing="border-box";t.appendChild(P);F=document.createElement("img");F.setAttribute("src",Editor.sendImage);F.setAttribute("title",mxResources.get("sendMessage"));
-F.className="geAdaptiveAsset";F.style.position="relative";F.style.cursor="pointer";F.style.opacity="0.5";F.style.height="19px";F.style.left="-24px";F.style.top="5px";F.style.background="url('"+b.editor.transparentImage+"')";t.appendChild(F);m.appendChild(t);d.isSelectionEmpty()?b.isDiagramEmpty()?y.value="help":y.value="includeCopyOfMyDiagram":y.value="selectionOnly";var u=!1,x=y.value,J=function(){P.setAttribute("placeholder",mxResources.get("create"==y.value?"describeYourDiagram":"askMeAnything"));
-"create"==y.value?(y.style.width="",C.style.display=""):(y.style.width="100%",C.style.display="none")};J();mxEvent.addListener(y,"change",function(){u||("reset"==y.value?(y.value=x,k.innerHTML=""):x=y.value,J())});d.selectionModel.addListener(mxEvent.CHANGE,p);d.getModel().addListener(mxEvent.CHANGE,p);p();mxEvent.addListener(F,"click",B);mxEvent.addListener(P,"keydown",function(H){13!=H.keyCode||mxEvent.isShiftDown(H)||B()});g.appendChild(m);this.window=new mxWindow(mxResources.get("chatWindowTitle"),
-g,e,f,c,l,!0,!0);this.window.minimumSize=new mxRectangle(0,0,120,100);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.addListener(mxEvent.DESTROY,mxUtils.bind(this,function(){d.getModel().removeListener(p)}));this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();P.focus()}));b.installResizeHandler(this,!0)},TagsWindow=function(b,e,f,c,l){var p=b.editor.graph,q=null;if(!b.isOffline()||mxClient.IS_CHROMEAPP)q=
-b.menus.createHelpLink("https://www.drawio.com/blog/tags-in-diagrams");var v=b.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return this.window.isVisible()}),null,function(D,G){if(p.isEnabled()){var B=new FilenameDialog(b,"",mxResources.get("add"),function(d){b.hideDialog();if(null!=d&&0<d.length){d=d.split(" ");for(var g=[],k=[],m=0;m<d.length;m++){var t=mxUtils.trim(d[m]);""!=t&&(k.push(t),0>mxUtils.indexOf(D,t)&&g.push(t))}p.isSelectionEmpty()?G(D.concat(g)):p.addTagsForCells(p.getSelectionCells(),
-k)}},mxResources.get("tags"),null,null,"https://www.drawio.com/blog/tags-in-diagrams");b.showDialog(B.container,320,80,!0,!0);B.init()}},q);q=v.div;this.window=new mxWindow(mxResources.get("tags"),q,e,f,c,l,!0,!0);this.window.minimumSize=new mxRectangle(0,0,212,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){v.refresh();this.window.fit()}));b.installResizeHandler(this,
-!0)},AuthDialog=function(b,e,f,c){var l=document.createElement("div");l.style.textAlign="center";var p=document.createElement("p");p.style.fontSize="16pt";p.style.padding="0px";p.style.margin="0px";p.style.color="gray";mxUtils.write(p,mxResources.get("authorizationRequired"));var q="Unknown",v=document.createElement("img");v.setAttribute("border","0");v.setAttribute("align","absmiddle");v.style.marginRight="10px";e==b.drive?(q=mxResources.get("googleDrive"),v.src=IMAGE_PATH+"/google-drive-logo-white.svg"):
-e==b.dropbox?(q=mxResources.get("dropbox"),v.src=IMAGE_PATH+"/dropbox-logo-white.svg"):e==b.oneDrive?(q=mxResources.get("oneDrive"),v.src=IMAGE_PATH+"/onedrive-logo-white.svg"):e==b.gitHub?(q=mxResources.get("github"),v.src=IMAGE_PATH+"/github-logo-white.svg"):e==b.gitLab?(q=mxResources.get("gitlab"),v.src=IMAGE_PATH+"/gitlab-logo.svg",v.style.width="32px"):e==b.trello&&(q=mxResources.get("trello"),v.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizeThisAppIn",
-[q]));var D=document.createElement("input");D.setAttribute("type","checkbox");q=mxUtils.button(mxResources.get("authorize"),function(){c(D.checked)});q.insertBefore(v,q.firstChild);q.style.marginTop="6px";q.className="geBigButton";q.style.fontSize="18px";q.style.padding="14px";l.appendChild(p);l.appendChild(b);l.appendChild(q);f&&(f=document.createElement("p"),f.style.marginTop="20px",f.appendChild(D),p=document.createElement("span"),mxUtils.write(p," "+mxResources.get("rememberMe")),f.appendChild(p),
-l.appendChild(f),D.checked=!0,D.defaultChecked=!0,mxEvent.addListener(p,"click",function(G){D.checked=!D.checked;mxEvent.consume(G)}));this.container=l},MoreShapesDialog=function(b,e,f){f=null!=f?f:b.sidebar.entries;var c=document.createElement("div"),l=[];if(null!=b.sidebar.customEntries)for(var p=0;p<b.sidebar.customEntries.length;p++){for(var q=b.sidebar.customEntries[p]||{},v={title:b.getResource(q.title),entries:[]},D=0;null!=q.entries&&D<q.entries.length;D++){var G=q.entries[D];v.entries.push({id:G.id,
-title:b.getResource(G.title),desc:b.getResource(G.desc),image:G.preview})}0<v.entries.length&&l.push(v)}for(p=0;p<f.length;p++)if(null==b.sidebar.enabledLibraries)l.push(f[p]);else{v={title:f[p].title,entries:[]};for(D=0;D<f[p].entries.length;D++)0<=mxUtils.indexOf(b.sidebar.enabledLibraries,f[p].entries[D].id)&&v.entries.push(f[p].entries[D]);0<v.entries.length&&l.push(v)}f=l;if(e){p=mxUtils.bind(this,function(S){for(var V=0;V<S.length;V++)(function(P){var u=m.cloneNode(!1);u.style.fontWeight="bold";
-u.style.backgroundColor="light-dark(#e5e5e5, #505759)";u.style.padding="6px 0px 6px 20px";mxUtils.write(u,P.title);B.appendChild(u);for(var x=0;x<P.entries.length;x++)(function(J){var H=m.cloneNode(!1);H.style.cursor="pointer";H.style.padding="4px 0px 4px 20px";H.style.whiteSpace="nowrap";H.style.overflow="hidden";H.style.textOverflow="ellipsis";H.setAttribute("title",J.title+" ("+J.id+")");var K=document.createElement("input");K.setAttribute("type","checkbox");K.checked=b.sidebar.isEntryVisible(J.id);
-K.defaultChecked=K.checked;H.appendChild(K);mxUtils.write(H," "+J.title);B.appendChild(H);var N=function(M){if(null==M||"INPUT"!=mxEvent.getSource(M).nodeName){d.style.textAlign="center";d.style.padding="0px";d.style.color="";d.innerText="";if(null!=J.desc){var n=document.createElement("pre");n.style.boxSizing="border-box";n.style.fontFamily="inherit";n.style.margin="20px";n.style.right="0px";n.style.textAlign="left";mxUtils.write(n,J.desc);d.appendChild(n)}null!=J.imageCallback?J.imageCallback(d):
-null!=J.image?(n=document.createElement("img"),n.setAttribute("border","0"),n.style.maxWidth="100%",n.setAttribute("src",J.image),d.appendChild(n)):null==J.desc&&(d.style.padding="20px",d.style.color="rgb(179, 179, 179)",mxUtils.write(d,mxResources.get("noPreview")));null!=g&&(g.style.backgroundColor="");g=H;g.style.backgroundColor="light-dark(#ebf2f9, #000000)";null!=M&&mxEvent.consume(M)}};mxEvent.addListener(H,"click",N);mxEvent.addListener(H,"dblclick",function(M){K.checked=!K.checked;mxEvent.consume(M)});
-k.push(function(){return K.checked?J.id:null});0==V&&0==x&&N()})(P.entries[x])})(S[V])});D=document.createElement("div");D.className="geDialogTitle";mxUtils.write(D,mxResources.get("shapes"));D.style.position="absolute";D.style.top="0px";D.style.left="0px";D.style.lineHeight="40px";D.style.height="40px";D.style.right="0px";var B=document.createElement("div"),d=document.createElement("div");B.style.position="absolute";B.style.top="40px";B.style.left="0px";B.style.width="202px";B.style.bottom="60px";
-B.style.overflow="auto";d.style.position="absolute";d.style.left="202px";d.style.right="0px";d.style.top="40px";d.style.bottom="60px";d.style.overflow="auto";d.style.borderLeftStyle="solid";d.style.borderLeftWidth="1px";d.style.textAlign="center";var g=null,k=[],m=document.createElement("div");m.style.position="relative";m.style.left="0px";m.style.right="0px";p(f);c.style.padding="30px";c.appendChild(D);c.appendChild(B);c.appendChild(d);f=document.createElement("div");f.className="geDialogFooter";
-f.style.position="absolute";f.style.paddingRight="16px";f.style.left="0px";f.style.right="0px";f.style.bottom="0px";f.style.height="60px";f.style.lineHeight="52px";var t=document.createElement("input");t.setAttribute("type","checkbox");t.style.position="relative";t.style.top="1px";t.checked=b.sidebar.sidebarTitles;t.defaultChecked=t.checked;f.appendChild(t);p=document.createElement("span");mxUtils.write(p," "+mxResources.get("labels"));p.style.paddingRight="20px";f.appendChild(p);mxEvent.addListener(p,
-"click",function(S){t.checked=!t.checked;mxEvent.consume(S)});var y=document.createElement("input");y.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)p=document.createElement("span"),p.style.paddingRight="20px",p.appendChild(y),mxUtils.write(p," "+mxResources.get("rememberThisSetting")),y.style.position="relative",y.style.top="1px",y.checked=!0,y.defaultChecked=!0,mxEvent.addListener(p,"click",function(S){mxEvent.getSource(S)!=y&&(y.checked=!y.checked,mxEvent.consume(S))}),
-f.appendChild(p);p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});p.className="geBtn";D=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();for(var S=[],V=0;V<k.length;V++){var P=k[V].apply(this,arguments);null!=P&&S.push(P)}"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||!Editor.isSettingsEnabled()||(V=mxUtils.indexOf(S,".scratchpad"),null!=b.scratchpad!=(0<=V&&0<S.splice(V,1).length)&&b.toggleScratchpad(),V=mxUtils.indexOf(S,
-"search"),mxSettings.settings.search=0<=V&&0<S.splice(V,1).length,b.sidebar.showPalette("search",mxSettings.settings.search),y.checked&&mxSettings.save());b.sidebar.showEntries(S.join(";"),y.checked,!0);b.setSidebarTitles(t.checked,y.checked)});D.className="geBtn gePrimaryBtn"}else{var z=document.createElement("table");p=document.createElement("tbody");c.style.height="100%";c.style.overflow="auto";D=document.createElement("tr");z.style.width="100%";e=document.createElement("td");l=document.createElement("td");
-q=document.createElement("td");var I=mxUtils.bind(this,function(S,V,P){var u=document.createElement("input");u.type="checkbox";z.appendChild(u);u.checked=b.sidebar.isEntryVisible(P);var x=document.createElement("span");mxUtils.write(x,V);V=document.createElement("div");V.style.display="block";V.appendChild(u);V.appendChild(x);mxEvent.addListener(x,"click",function(J){u.checked=!u.checked;mxEvent.consume(J)});S.appendChild(V);return function(){return u.checked?P:null}});D.appendChild(e);D.appendChild(l);
-D.appendChild(q);p.appendChild(D);z.appendChild(p);k=[];var F=0;for(p=0;p<f.length;p++)for(D=0;D<f[p].entries.length;D++)F++;var C=[e,l,q],Q=0;for(p=0;p<f.length;p++)(function(S){for(var V=0;V<S.entries.length;V++){var P=S.entries[V];k.push(I(C[Math.floor(Q/(F/3))],P.title,P.id));Q++}})(f[p]);c.appendChild(z);f=document.createElement("div");f.style.marginTop="18px";f.style.textAlign="center";y=document.createElement("input");isLocalStorage&&(y.setAttribute("type","checkbox"),y.checked=!0,y.defaultChecked=
-!0,f.appendChild(y),p=document.createElement("span"),mxUtils.write(p," "+mxResources.get("rememberThisSetting")),f.appendChild(p),mxEvent.addListener(p,"click",function(S){y.checked=!y.checked;mxEvent.consume(S)}));c.appendChild(f);p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});p.className="geBtn";D=mxUtils.button(mxResources.get("apply"),function(){for(var S=["search"],V=0;V<k.length;V++){var P=k[V].apply(this,arguments);null!=P&&S.push(P)}b.sidebar.showEntries(0<S.length?
-S.join(";"):"",y.checked);b.hideDialog()});D.className="geBtn gePrimaryBtn";f=document.createElement("div");f.style.marginTop="26px";f.style.textAlign="right"}b.editor.cancelFirst?(f.appendChild(p),f.appendChild(D)):(f.appendChild(D),f.appendChild(p));c.appendChild(f);this.container=c},PluginsDialog=function(b,e,f,c){function l(){D=!0;if(0==v.length)q.innerText=mxResources.get("noPlugins");else{q.innerText="";for(var k=0;k<v.length;k++){var m=document.createElement("span");m.style.display="flex";
-m.style.alignItems="center";m.style.whiteSpace="nowrap";var t=document.createElement("img");t.src=Editor.trashImage;t.style.position="relative";t.style.cursor="pointer";t.style.marginRight="4px";t.style.display="inline-block";t.style.width="18px";t.setAttribute("title",mxResources.get("delete"));m.appendChild(t);mxUtils.write(m,v[k]);q.appendChild(m);mxUtils.br(q);mxEvent.addListener(t,"click",function(y){return function(){b.confirm(mxResources.get("delete")+' "'+v[y]+'"?',function(){null!=f&&f(v[y]);
-v.splice(y,1);l()})}}(k))}}}var p=document.createElement("div"),q=document.createElement("div");q.style.height="180px";q.style.overflow="auto";var v=mxSettings.getPlugins().slice(),D=!1;p.appendChild(q);l();D=!1;var G=mxUtils.button(mxResources.get("add"),null!=e?function(){e(function(k){k&&0>mxUtils.indexOf(v,k)&&v.push(k);l()})}:function(){var k=document.createElement("div"),m=document.createElement("span");m.style.marginTop="6px";mxUtils.write(m,mxResources.get("builtinPlugins")+": ");k.appendChild(m);
-var t=document.createElement("select");t.style.width="150px";for(m=0;m<App.publicPlugin.length;m++){var y=document.createElement("option");mxUtils.write(y,App.publicPlugin[m]);y.value=App.publicPlugin[m];t.appendChild(y)}k.appendChild(t);mxUtils.br(k);mxUtils.br(k);m=mxUtils.button(mxResources.get("custom")+"...",function(){var z=new FilenameDialog(b,"",mxResources.get("add"),function(I){b.hideDialog();if(null!=I&&0<I.length){I=I.split(";");for(var F=0;F<I.length;F++){var C=I[F],Q=App.pluginRegistry[C];
-null!=Q&&(C=Q);0<C.length&&0>mxUtils.indexOf(v,C)&&v.push(C)}l()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(z.container,300,80,!0,!0);z.init()});m.className="geBtn";ALLOW_CUSTOM_PLUGINS||(m.style.display="none");k=new CustomDialog(b,k,mxUtils.bind(this,function(){var z=App.pluginRegistry[t.value];0>mxUtils.indexOf(v,z)&&(v.push(z),l())}),null,null,null,m);b.showDialog(k.container,360,100,!0,!0)});G.className="geBtn";var B=mxUtils.button(mxResources.get("cancel"),
-function(){b.hideDialog()});B.className="geBtn";var d=mxUtils.button(c?mxResources.get("close"):mxResources.get("apply"),function(){D?(mxSettings.setPlugins(v),mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):b.hideDialog()});d.className="geBtn gePrimaryBtn";var g=document.createElement("div");g.style.marginTop="14px";g.style.textAlign="right";b.isOffline()||g.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/plugins"));b.editor.cancelFirst?(c||g.appendChild(B),
-g.appendChild(G),g.appendChild(d)):(g.appendChild(G),g.appendChild(d),c||g.appendChild(B));p.appendChild(g);this.container=p},CropImageDialog=function(b,e,f,c){function l(){var S=y.checked,V=z.checked,P=k.geometry,u=D.width,x=D.height,J=(300-u)/2,H=(300-x)/2;P.x<J?(P.width-=J-P.x,P.x=J):P.x+P.width>J+u&&(P.width=J+u-P.x,P.x=Math.min(P.x,J+u));P.y<H?(P.height-=H-P.y,P.y=H):P.y+P.height>H+x&&(P.height=H+x-P.y,P.y=Math.min(P.y,H+x));var K=(P.x-J)/u*100;u=100-(P.x+P.width-J)/u*100;J=(P.y-H)/x*100;P=100-
-(P.y+P.height-H)/x*100;return"inset("+mxUtils.format(J)+"% "+mxUtils.format(u)+"% "+mxUtils.format(P)+"% "+mxUtils.format(K)+"%"+(S?" round "+g+"%":V?" round 50%":"")+")"}function p(S){null!=B&&(!0!==S&&(B.model.setGeometry(k,d.clone()),g=5,F.value=g),B.model.setStyle(k,m+l()),B.selectAll(),I.style.visibility=y.checked?"visible":"hidden")}var q=document.createElement("div"),v=document.createElement("div");v.style.height="300px";v.style.width="300px";v.style.display="inline-flex";v.style.justifyContent=
-"center";v.style.alignItems="center";v.style.position="absolute";var D=document.createElement("img");D.onload=function(){function S(){B.model.setStyle(k,m+l())}B=new Graph(G);B.autoExtend=!1;B.autoScroll=!1;B.setGridEnabled(!1);B.setEnabled(!0);B.setPanning(!1);B.setConnectable(!1);B.getRubberband().setEnabled(!1);B.graphHandler.allowLivePreview=!1;var V=B.createVertexHandler;B.createVertexHandler=function(){var R=V.apply(this,arguments);R.livePreview=!1;return R};if(null!=f)try{if("inset"==f.substring(0,
-5)){var P=k.geometry,u=D.width,x=D.height,J=(300-u)/2,H=(300-x)/2,K=f.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),N=parseFloat(K[0]),M=parseFloat(K[1]),n=parseFloat(K[2]),A=parseFloat(K[3]);isFinite(N)&&isFinite(M)&&isFinite(n)&&isFinite(A)?(P.x=A/100*u+J,P.y=N/100*x+H,P.width=(100-M)/100*u+J-P.x,P.height=(100-n)/100*x+H-P.y,"round"==K[4]?"50%"==K[5]?z.setAttribute("checked","checked"):(g=parseInt(K[5]),F.value=g,y.setAttribute("checked","checked"),I.style.visibility="visible"):t.setAttribute("checked",
-"checked")):f=null}else f=null}catch(R){}k.style=m+(f?f:l());k.vertex=!0;B.addCell(k,null,null,null,null);B.selectAll();B.addListener(mxEvent.CELLS_MOVED,S);B.addListener(mxEvent.CELLS_RESIZED,S);var E=B.graphHandler.mouseUp,L=B.graphHandler.mouseDown;B.graphHandler.mouseUp=function(){E.apply(this,arguments);G.style.backgroundColor="#fff9"};B.graphHandler.mouseDown=function(){L.apply(this,arguments);G.style.backgroundColor=""};B.dblClick=function(){};var O=B.getSelectionModel().changeSelection;B.getSelectionModel().changeSelection=
-function(){O.call(this,[k],[k])}};D.onerror=function(){D.onload=null;D.src=Editor.errorImage};D.setAttribute("src",e);D.style.maxWidth="300px";D.style.maxHeight="300px";v.appendChild(D);q.appendChild(v);var G=document.createElement("div");G.style.width="300px";G.style.height="300px";G.style.overflow="hidden";G.style.backgroundColor="#fff9";q.appendChild(G);var B=null,d=new mxGeometry(100,100,100,100),g=5,k=new mxCell("",d.clone(),""),m="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+
-e.replace(";base64","")+";clipPath=",t=document.createElement("input");t.setAttribute("type","radio");t.setAttribute("id","croppingRect");t.setAttribute("name","croppingShape");t.setAttribute("checked","checked");t.style.margin="5px";q.appendChild(t);e=document.createElement("label");e.setAttribute("for","croppingRect");mxUtils.write(e,mxResources.get("rectangle"));q.appendChild(e);var y=document.createElement("input");y.setAttribute("type","radio");y.setAttribute("id","croppingRounded");y.setAttribute("name",
-"croppingShape");y.style.margin="5px";q.appendChild(y);e=document.createElement("label");e.setAttribute("for","croppingRounded");mxUtils.write(e,mxResources.get("rounded"));q.appendChild(e);var z=document.createElement("input");z.setAttribute("type","radio");z.setAttribute("id","croppingEllipse");z.setAttribute("name","croppingShape");z.style.margin="5px";q.appendChild(z);e=document.createElement("label");e.setAttribute("for","croppingEllipse");mxUtils.write(e,mxResources.get("ellipse"));q.appendChild(e);
-mxEvent.addListener(t,"change",p);mxEvent.addListener(y,"change",p);mxEvent.addListener(z,"change",p);var I=document.createElement("div");I.style.textAlign="center";I.style.visibility="hidden";var F=document.createElement("input");F.setAttribute("type","range");F.setAttribute("min","1");F.setAttribute("max","49");F.setAttribute("value",g);F.setAttribute("title",mxResources.get("arcSize"));I.appendChild(F);q.appendChild(I);mxEvent.addListener(F,"change",function(){g=this.value;p(!0)});e=mxUtils.button(mxResources.get("cancel"),
-function(){b.hideDialog()});e.className="geBtn";v=mxUtils.button(mxResources.get("apply"),function(){c(l(),k.geometry.width,k.geometry.height);b.hideDialog()});v.className="geBtn gePrimaryBtn";var C=mxUtils.button(mxResources.get("reset"),function(){c(null,D.width,D.height);b.hideDialog()});C.className="geBtn";var Q=document.createElement("div");Q.style.marginTop="10px";Q.style.textAlign="right";b.editor.cancelFirst?(Q.appendChild(e),Q.appendChild(C),Q.appendChild(v)):(Q.appendChild(C),Q.appendChild(v),
-Q.appendChild(e));q.appendChild(Q);this.container=q},EditGeometryDialog=function(b,e){var f=b.editor.graph,c=1==e.length?f.getCellGeometry(e[0]):null,l=document.createElement("div"),p=document.createElement("table"),q=document.createElement("tbody"),v=document.createElement("tr"),D=document.createElement("td"),G=document.createElement("td");p.style.paddingLeft="6px";mxUtils.write(D,mxResources.get("relative")+":");var B=document.createElement("input");B.setAttribute("type","checkbox");null!=c&&c.relative&&
-(B.setAttribute("checked","checked"),B.defaultChecked=!0);this.init=function(){B.focus()};G.appendChild(B);v.appendChild(D);v.appendChild(G);q.appendChild(v);v=document.createElement("tr");D=document.createElement("td");G=document.createElement("td");mxUtils.write(D,mxResources.get("left")+":");var d=document.createElement("input");d.setAttribute("type","text");d.style.width="100px";d.value=null!=c?c.x:"";G.appendChild(d);v.appendChild(D);v.appendChild(G);q.appendChild(v);v=document.createElement("tr");
-D=document.createElement("td");G=document.createElement("td");mxUtils.write(D,mxResources.get("top")+":");var g=document.createElement("input");g.setAttribute("type","text");g.style.width="100px";g.value=null!=c?c.y:"";G.appendChild(g);v.appendChild(D);v.appendChild(G);q.appendChild(v);v=document.createElement("tr");D=document.createElement("td");G=document.createElement("td");mxUtils.write(D,mxResources.get("dx")+":");var k=document.createElement("input");k.setAttribute("type","text");k.style.width=
-"100px";k.value=null!=c&&null!=c.offset?c.offset.x:"";G.appendChild(k);v.appendChild(D);v.appendChild(G);q.appendChild(v);v=document.createElement("tr");D=document.createElement("td");G=document.createElement("td");mxUtils.write(D,mxResources.get("dy")+":");var m=document.createElement("input");m.setAttribute("type","text");m.style.width="100px";m.value=null!=c&&null!=c.offset?c.offset.y:"";G.appendChild(m);v.appendChild(D);v.appendChild(G);q.appendChild(v);v=document.createElement("tr");D=document.createElement("td");
-G=document.createElement("td");mxUtils.write(D,mxResources.get("width")+":");var t=document.createElement("input");t.setAttribute("type","text");t.style.width="100px";t.value=null!=c?c.width:"";G.appendChild(t);v.appendChild(D);v.appendChild(G);q.appendChild(v);v=document.createElement("tr");D=document.createElement("td");G=document.createElement("td");mxUtils.write(D,mxResources.get("height")+":");var y=document.createElement("input");y.setAttribute("type","text");y.style.width="100px";y.value=null!=
-c?c.height:"";G.appendChild(y);v.appendChild(D);v.appendChild(G);q.appendChild(v);v=document.createElement("tr");D=document.createElement("td");G=document.createElement("td");mxUtils.write(D,mxResources.get("rotation")+":");var z=document.createElement("input");z.setAttribute("type","text");z.style.width="100px";z.value=1==e.length?mxUtils.getValue(f.getCellStyle(e[0]),mxConstants.STYLE_ROTATION,0):"";G.appendChild(z);v.appendChild(D);v.appendChild(G);q.appendChild(v);p.appendChild(q);l.appendChild(p);
+"0px";m.style.bottom="0px";m.style.padding="6px";m.style.height="80px";var u=document.createElement("div");u.style.display="flex";u.style.gap="6px";u.style.marginBottom="6px";var x=document.createElement("select");x.style.textOverflow="ellipsis";x.style.flexGrow="1";x.style.padding="4px";x.style.minWidth="0";m.appendChild(u);var A=document.createElement("option");A.setAttribute("value","includeCopyOfMyDiagram");mxUtils.write(A,mxResources.get("includeCopyOfMyDiagram"));x.appendChild(A);var I=document.createElement("option");
+I.setAttribute("value","selectionOnly");mxUtils.write(I,mxResources.get("selectionOnly"));x.appendChild(I);u.appendChild(x);if("undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled){var F=document.createElement("option");F.setAttribute("value","create");mxUtils.write(F,mxResources.get("create"));x.appendChild(F)}F=document.createElement("option");F.setAttribute("value","help");mxUtils.write(F,mxResources.get("help"));x.appendChild(F);F=document.createElement("option");F.setAttribute("value",
+"reset");mxUtils.write(F,mxResources.get("reset"));x.appendChild(F);var C=document.createElement("select");C.style.textOverflow="ellipsis";C.style.flexGrow="1";C.style.padding="4px";C.style.minWidth="0";for(F=0;F<EditorUi.mermaidDiagramTypes.length;F++){var P=document.createElement("option"),R=EditorUi.mermaidDiagramTypes[F],U=R;"erDiagram"==U&&(U="entityRelationshipDiagram");U=mxResources.get(U,null,U.charAt(0).toUpperCase()+U.substring(1).replace(/[A-Z]/g," $&"));P.setAttribute("value",R);mxUtils.write(P,
+U);C.appendChild(P)}u.appendChild(C);u=document.createElement("div");u.style.whiteSpace="nowrap";u.style.textOverflow="clip";u.style.cursor="default";var O=document.createElement("input");O.setAttribute("type","text");O.style.width="100%";O.style.outline="none";O.style.border="none";O.style.background="transparent";O.style.padding="8px 26px 8px 8px";O.style.boxSizing="border-box";u.appendChild(O);F=document.createElement("img");F.setAttribute("src",Editor.sendImage);F.setAttribute("title",mxResources.get("sendMessage"));
+F.className="geAdaptiveAsset";F.style.position="relative";F.style.cursor="pointer";F.style.opacity="0.5";F.style.height="19px";F.style.left="-24px";F.style.top="5px";F.style.background="url('"+b.editor.transparentImage+"')";u.appendChild(F);m.appendChild(u);d.isSelectionEmpty()?b.isDiagramEmpty()?x.value="help":x.value="includeCopyOfMyDiagram":x.value="selectionOnly";var V=!1,q=x.value,y=function(){O.setAttribute("placeholder",mxResources.get("create"==x.value?"describeYourDiagram":"askMeAnything"));
+"create"==x.value?(x.style.width="",C.style.display=""):(x.style.width="100%",C.style.display="none")};y();mxEvent.addListener(x,"change",function(){V||("reset"==x.value?(x.value=q,k.innerHTML=""):q=x.value,y())});d.selectionModel.addListener(mxEvent.CHANGE,p);d.getModel().addListener(mxEvent.CHANGE,p);p();mxEvent.addListener(F,"click",B);mxEvent.addListener(O,"keydown",function(D){13!=D.keyCode||mxEvent.isShiftDown(D)||B()});g.appendChild(m);this.window=new mxWindow(mxResources.get("chatWindowTitle"),
+g,e,f,c,l,!0,!0);this.window.minimumSize=new mxRectangle(0,0,120,100);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.addListener(mxEvent.DESTROY,mxUtils.bind(this,function(){d.getModel().removeListener(p)}));this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();O.focus()}));b.installResizeHandler(this,!0)},TagsWindow=function(b,e,f,c,l){var p=b.editor.graph,v=null;if(!b.isOffline()||mxClient.IS_CHROMEAPP)v=
+b.menus.createHelpLink("https://www.drawio.com/blog/tags-in-diagrams");var t=b.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return this.window.isVisible()}),null,function(E,H){if(p.isEnabled()){var B=new FilenameDialog(b,"",mxResources.get("add"),function(d){b.hideDialog();if(null!=d&&0<d.length){d=d.split(" ");for(var g=[],k=[],m=0;m<d.length;m++){var u=mxUtils.trim(d[m]);""!=u&&(k.push(u),0>mxUtils.indexOf(E,u)&&g.push(u))}p.isSelectionEmpty()?H(E.concat(g)):p.addTagsForCells(p.getSelectionCells(),
+k)}},mxResources.get("tags"),null,null,"https://www.drawio.com/blog/tags-in-diagrams");b.showDialog(B.container,320,80,!0,!0);B.init()}},v);v=t.div;this.window=new mxWindow(mxResources.get("tags"),v,e,f,c,l,!0,!0);this.window.minimumSize=new mxRectangle(0,0,212,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){t.refresh();this.window.fit()}));b.installResizeHandler(this,
+!0)},AuthDialog=function(b,e,f,c){var l=document.createElement("div");l.style.textAlign="center";var p=document.createElement("p");p.style.fontSize="16pt";p.style.padding="0px";p.style.margin="0px";p.style.color="gray";mxUtils.write(p,mxResources.get("authorizationRequired"));var v="Unknown",t=document.createElement("img");t.setAttribute("border","0");t.setAttribute("align","absmiddle");t.style.marginRight="10px";e==b.drive?(v=mxResources.get("googleDrive"),t.src=IMAGE_PATH+"/google-drive-logo-white.svg"):
+e==b.dropbox?(v=mxResources.get("dropbox"),t.src=IMAGE_PATH+"/dropbox-logo-white.svg"):e==b.oneDrive?(v=mxResources.get("oneDrive"),t.src=IMAGE_PATH+"/onedrive-logo-white.svg"):e==b.gitHub?(v=mxResources.get("github"),t.src=IMAGE_PATH+"/github-logo-white.svg"):e==b.gitLab?(v=mxResources.get("gitlab"),t.src=IMAGE_PATH+"/gitlab-logo.svg",t.style.width="32px"):e==b.trello&&(v=mxResources.get("trello"),t.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizeThisAppIn",
+[v]));var E=document.createElement("input");E.setAttribute("type","checkbox");v=mxUtils.button(mxResources.get("authorize"),function(){c(E.checked)});v.insertBefore(t,v.firstChild);v.style.marginTop="6px";v.className="geBigButton";v.style.fontSize="18px";v.style.padding="14px";l.appendChild(p);l.appendChild(b);l.appendChild(v);f&&(f=document.createElement("p"),f.style.marginTop="20px",f.appendChild(E),p=document.createElement("span"),mxUtils.write(p," "+mxResources.get("rememberMe")),f.appendChild(p),
+l.appendChild(f),E.checked=!0,E.defaultChecked=!0,mxEvent.addListener(p,"click",function(H){E.checked=!E.checked;mxEvent.consume(H)}));this.container=l},MoreShapesDialog=function(b,e,f){f=null!=f?f:b.sidebar.entries;var c=document.createElement("div"),l=[];if(null!=b.sidebar.customEntries)for(var p=0;p<b.sidebar.customEntries.length;p++){for(var v=b.sidebar.customEntries[p]||{},t={title:b.getResource(v.title),entries:[]},E=0;null!=v.entries&&E<v.entries.length;E++){var H=v.entries[E];t.entries.push({id:H.id,
+title:b.getResource(H.title),desc:b.getResource(H.desc),image:H.preview})}0<t.entries.length&&l.push(t)}for(p=0;p<f.length;p++)if(null==b.sidebar.enabledLibraries)l.push(f[p]);else{t={title:f[p].title,entries:[]};for(E=0;E<f[p].entries.length;E++)0<=mxUtils.indexOf(b.sidebar.enabledLibraries,f[p].entries[E].id)&&t.entries.push(f[p].entries[E]);0<t.entries.length&&l.push(t)}f=l;if(e){p=mxUtils.bind(this,function(R){for(var U=0;U<R.length;U++)(function(O){var V=m.cloneNode(!1);V.style.fontWeight="bold";
+V.style.backgroundColor="light-dark(#e5e5e5, #505759)";V.style.padding="6px 0px 6px 20px";mxUtils.write(V,O.title);B.appendChild(V);for(var q=0;q<O.entries.length;q++)(function(y){var D=m.cloneNode(!1);D.style.cursor="pointer";D.style.padding="4px 0px 4px 20px";D.style.whiteSpace="nowrap";D.style.overflow="hidden";D.style.textOverflow="ellipsis";D.setAttribute("title",y.title+" ("+y.id+")");var J=document.createElement("input");J.setAttribute("type","checkbox");J.checked=b.sidebar.isEntryVisible(y.id);
+J.defaultChecked=J.checked;D.appendChild(J);mxUtils.write(D," "+y.title);B.appendChild(D);var L=function(K){if(null==K||"INPUT"!=mxEvent.getSource(K).nodeName){d.style.textAlign="center";d.style.padding="0px";d.style.color="";d.innerText="";if(null!=y.desc){var n=document.createElement("pre");n.style.boxSizing="border-box";n.style.fontFamily="inherit";n.style.margin="20px";n.style.right="0px";n.style.textAlign="left";mxUtils.write(n,y.desc);d.appendChild(n)}null!=y.imageCallback?y.imageCallback(d):
+null!=y.image?(n=document.createElement("img"),n.setAttribute("border","0"),n.style.maxWidth="100%",n.setAttribute("src",y.image),d.appendChild(n)):null==y.desc&&(d.style.padding="20px",d.style.color="rgb(179, 179, 179)",mxUtils.write(d,mxResources.get("noPreview")));null!=g&&(g.style.backgroundColor="");g=D;g.style.backgroundColor="light-dark(#ebf2f9, #000000)";null!=K&&mxEvent.consume(K)}};mxEvent.addListener(D,"click",L);mxEvent.addListener(D,"dblclick",function(K){J.checked=!J.checked;mxEvent.consume(K)});
+k.push(function(){return J.checked?y.id:null});0==U&&0==q&&L()})(O.entries[q])})(R[U])});E=document.createElement("div");E.className="geDialogTitle";mxUtils.write(E,mxResources.get("shapes"));E.style.position="absolute";E.style.top="0px";E.style.left="0px";E.style.lineHeight="40px";E.style.height="40px";E.style.right="0px";var B=document.createElement("div"),d=document.createElement("div");B.style.position="absolute";B.style.top="40px";B.style.left="0px";B.style.width="202px";B.style.bottom="60px";
+B.style.overflow="auto";d.style.position="absolute";d.style.left="202px";d.style.right="0px";d.style.top="40px";d.style.bottom="60px";d.style.overflow="auto";d.style.borderLeftStyle="solid";d.style.borderLeftWidth="1px";d.style.textAlign="center";var g=null,k=[],m=document.createElement("div");m.style.position="relative";m.style.left="0px";m.style.right="0px";p(f);c.style.padding="30px";c.appendChild(E);c.appendChild(B);c.appendChild(d);f=document.createElement("div");f.className="geDialogFooter";
+f.style.position="absolute";f.style.paddingRight="16px";f.style.left="0px";f.style.right="0px";f.style.bottom="0px";f.style.height="60px";f.style.lineHeight="52px";var u=document.createElement("input");u.setAttribute("type","checkbox");u.style.position="relative";u.style.top="1px";u.checked=b.sidebar.sidebarTitles;u.defaultChecked=u.checked;f.appendChild(u);p=document.createElement("span");mxUtils.write(p," "+mxResources.get("labels"));p.style.paddingRight="20px";f.appendChild(p);mxEvent.addListener(p,
+"click",function(R){u.checked=!u.checked;mxEvent.consume(R)});var x=document.createElement("input");x.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)p=document.createElement("span"),p.style.paddingRight="20px",p.appendChild(x),mxUtils.write(p," "+mxResources.get("rememberThisSetting")),x.style.position="relative",x.style.top="1px",x.checked=!0,x.defaultChecked=!0,mxEvent.addListener(p,"click",function(R){mxEvent.getSource(R)!=x&&(x.checked=!x.checked,mxEvent.consume(R))}),
+f.appendChild(p);p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});p.className="geBtn";E=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();for(var R=[],U=0;U<k.length;U++){var O=k[U].apply(this,arguments);null!=O&&R.push(O)}"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||!Editor.isSettingsEnabled()||(U=mxUtils.indexOf(R,".scratchpad"),null!=b.scratchpad!=(0<=U&&0<R.splice(U,1).length)&&b.toggleScratchpad(),U=mxUtils.indexOf(R,
+"search"),mxSettings.settings.search=0<=U&&0<R.splice(U,1).length,b.sidebar.showPalette("search",mxSettings.settings.search),x.checked&&mxSettings.save());b.sidebar.showEntries(R.join(";"),x.checked,!0);b.setSidebarTitles(u.checked,x.checked)});E.className="geBtn gePrimaryBtn"}else{var A=document.createElement("table");p=document.createElement("tbody");c.style.height="100%";c.style.overflow="auto";E=document.createElement("tr");A.style.width="100%";e=document.createElement("td");l=document.createElement("td");
+v=document.createElement("td");var I=mxUtils.bind(this,function(R,U,O){var V=document.createElement("input");V.type="checkbox";A.appendChild(V);V.checked=b.sidebar.isEntryVisible(O);var q=document.createElement("span");mxUtils.write(q,U);U=document.createElement("div");U.style.display="block";U.appendChild(V);U.appendChild(q);mxEvent.addListener(q,"click",function(y){V.checked=!V.checked;mxEvent.consume(y)});R.appendChild(U);return function(){return V.checked?O:null}});E.appendChild(e);E.appendChild(l);
+E.appendChild(v);p.appendChild(E);A.appendChild(p);k=[];var F=0;for(p=0;p<f.length;p++)for(E=0;E<f[p].entries.length;E++)F++;var C=[e,l,v],P=0;for(p=0;p<f.length;p++)(function(R){for(var U=0;U<R.entries.length;U++){var O=R.entries[U];k.push(I(C[Math.floor(P/(F/3))],O.title,O.id));P++}})(f[p]);c.appendChild(A);f=document.createElement("div");f.style.marginTop="18px";f.style.textAlign="center";x=document.createElement("input");isLocalStorage&&(x.setAttribute("type","checkbox"),x.checked=!0,x.defaultChecked=
+!0,f.appendChild(x),p=document.createElement("span"),mxUtils.write(p," "+mxResources.get("rememberThisSetting")),f.appendChild(p),mxEvent.addListener(p,"click",function(R){x.checked=!x.checked;mxEvent.consume(R)}));c.appendChild(f);p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});p.className="geBtn";E=mxUtils.button(mxResources.get("apply"),function(){for(var R=["search"],U=0;U<k.length;U++){var O=k[U].apply(this,arguments);null!=O&&R.push(O)}b.sidebar.showEntries(0<R.length?
+R.join(";"):"",x.checked);b.hideDialog()});E.className="geBtn gePrimaryBtn";f=document.createElement("div");f.style.marginTop="26px";f.style.textAlign="right"}b.editor.cancelFirst?(f.appendChild(p),f.appendChild(E)):(f.appendChild(E),f.appendChild(p));c.appendChild(f);this.container=c},PluginsDialog=function(b,e,f,c){function l(){E=!0;if(0==t.length)v.innerText=mxResources.get("noPlugins");else{v.innerText="";for(var k=0;k<t.length;k++){var m=document.createElement("span");m.style.display="flex";
+m.style.alignItems="center";m.style.whiteSpace="nowrap";var u=document.createElement("img");u.src=Editor.trashImage;u.style.position="relative";u.style.cursor="pointer";u.style.marginRight="4px";u.style.display="inline-block";u.style.width="18px";u.setAttribute("title",mxResources.get("delete"));m.appendChild(u);mxUtils.write(m,t[k]);v.appendChild(m);mxUtils.br(v);mxEvent.addListener(u,"click",function(x){return function(){b.confirm(mxResources.get("delete")+' "'+t[x]+'"?',function(){null!=f&&f(t[x]);
+t.splice(x,1);l()})}}(k))}}}var p=document.createElement("div"),v=document.createElement("div");v.style.height="180px";v.style.overflow="auto";var t=mxSettings.getPlugins().slice(),E=!1;p.appendChild(v);l();E=!1;var H=mxUtils.button(mxResources.get("add"),null!=e?function(){e(function(k){k&&0>mxUtils.indexOf(t,k)&&t.push(k);l()})}:function(){var k=document.createElement("div"),m=document.createElement("span");m.style.marginTop="6px";mxUtils.write(m,mxResources.get("builtinPlugins")+": ");k.appendChild(m);
+var u=document.createElement("select");u.style.width="150px";for(m=0;m<App.publicPlugin.length;m++){var x=document.createElement("option");mxUtils.write(x,App.publicPlugin[m]);x.value=App.publicPlugin[m];u.appendChild(x)}k.appendChild(u);mxUtils.br(k);mxUtils.br(k);m=mxUtils.button(mxResources.get("custom")+"...",function(){var A=new FilenameDialog(b,"",mxResources.get("add"),function(I){b.hideDialog();if(null!=I&&0<I.length){I=I.split(";");for(var F=0;F<I.length;F++){var C=I[F],P=App.pluginRegistry[C];
+null!=P&&(C=P);0<C.length&&0>mxUtils.indexOf(t,C)&&t.push(C)}l()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(A.container,300,80,!0,!0);A.init()});m.className="geBtn";ALLOW_CUSTOM_PLUGINS||(m.style.display="none");k=new CustomDialog(b,k,mxUtils.bind(this,function(){var A=App.pluginRegistry[u.value];0>mxUtils.indexOf(t,A)&&(t.push(A),l())}),null,null,null,m);b.showDialog(k.container,360,100,!0,!0)});H.className="geBtn";var B=mxUtils.button(mxResources.get("cancel"),
+function(){b.hideDialog()});B.className="geBtn";var d=mxUtils.button(c?mxResources.get("close"):mxResources.get("apply"),function(){E?(mxSettings.setPlugins(t),mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):b.hideDialog()});d.className="geBtn gePrimaryBtn";var g=document.createElement("div");g.style.marginTop="14px";g.style.textAlign="right";b.isOffline()||g.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/plugins"));b.editor.cancelFirst?(c||g.appendChild(B),
+g.appendChild(H),g.appendChild(d)):(g.appendChild(H),g.appendChild(d),c||g.appendChild(B));p.appendChild(g);this.container=p},CropImageDialog=function(b,e,f,c){function l(){var R=x.checked,U=A.checked,O=k.geometry,V=E.width,q=E.height,y=(300-V)/2,D=(300-q)/2;O.x<y?(O.width-=y-O.x,O.x=y):O.x+O.width>y+V&&(O.width=y+V-O.x,O.x=Math.min(O.x,y+V));O.y<D?(O.height-=D-O.y,O.y=D):O.y+O.height>D+q&&(O.height=D+q-O.y,O.y=Math.min(O.y,D+q));var J=(O.x-y)/V*100;V=100-(O.x+O.width-y)/V*100;y=(O.y-D)/q*100;O=100-
+(O.y+O.height-D)/q*100;return"inset("+mxUtils.format(y)+"% "+mxUtils.format(V)+"% "+mxUtils.format(O)+"% "+mxUtils.format(J)+"%"+(R?" round "+g+"%":U?" round 50%":"")+")"}function p(R){null!=B&&(!0!==R&&(B.model.setGeometry(k,d.clone()),g=5,F.value=g),B.model.setStyle(k,m+l()),B.selectAll(),I.style.visibility=x.checked?"visible":"hidden")}var v=document.createElement("div"),t=document.createElement("div");t.style.height="300px";t.style.width="300px";t.style.display="inline-flex";t.style.justifyContent=
+"center";t.style.alignItems="center";t.style.position="absolute";var E=document.createElement("img");E.onload=function(){function R(){B.model.setStyle(k,m+l())}B=new Graph(H);B.autoExtend=!1;B.autoScroll=!1;B.setGridEnabled(!1);B.setEnabled(!0);B.setPanning(!1);B.setConnectable(!1);B.getRubberband().setEnabled(!1);B.graphHandler.allowLivePreview=!1;var U=B.createVertexHandler;B.createVertexHandler=function(){var Q=U.apply(this,arguments);Q.livePreview=!1;return Q};if(null!=f)try{if("inset"==f.substring(0,
+5)){var O=k.geometry,V=E.width,q=E.height,y=(300-V)/2,D=(300-q)/2,J=f.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),L=parseFloat(J[0]),K=parseFloat(J[1]),n=parseFloat(J[2]),z=parseFloat(J[3]);isFinite(L)&&isFinite(K)&&isFinite(n)&&isFinite(z)?(O.x=z/100*V+y,O.y=L/100*q+D,O.width=(100-K)/100*V+y-O.x,O.height=(100-n)/100*q+D-O.y,"round"==J[4]?"50%"==J[5]?A.setAttribute("checked","checked"):(g=parseInt(J[5]),F.value=g,x.setAttribute("checked","checked"),I.style.visibility="visible"):u.setAttribute("checked",
+"checked")):f=null}else f=null}catch(Q){}k.style=m+(f?f:l());k.vertex=!0;B.addCell(k,null,null,null,null);B.selectAll();B.addListener(mxEvent.CELLS_MOVED,R);B.addListener(mxEvent.CELLS_RESIZED,R);var G=B.graphHandler.mouseUp,M=B.graphHandler.mouseDown;B.graphHandler.mouseUp=function(){G.apply(this,arguments);H.style.backgroundColor="#fff9"};B.graphHandler.mouseDown=function(){M.apply(this,arguments);H.style.backgroundColor=""};B.dblClick=function(){};var N=B.getSelectionModel().changeSelection;B.getSelectionModel().changeSelection=
+function(){N.call(this,[k],[k])}};E.onerror=function(){E.onload=null;E.src=Editor.errorImage};E.setAttribute("src",e);E.style.maxWidth="300px";E.style.maxHeight="300px";t.appendChild(E);v.appendChild(t);var H=document.createElement("div");H.style.width="300px";H.style.height="300px";H.style.overflow="hidden";H.style.backgroundColor="#fff9";v.appendChild(H);var B=null,d=new mxGeometry(100,100,100,100),g=5,k=new mxCell("",d.clone(),""),m="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+
+e.replace(";base64","")+";clipPath=",u=document.createElement("input");u.setAttribute("type","radio");u.setAttribute("id","croppingRect");u.setAttribute("name","croppingShape");u.setAttribute("checked","checked");u.style.margin="5px";v.appendChild(u);e=document.createElement("label");e.setAttribute("for","croppingRect");mxUtils.write(e,mxResources.get("rectangle"));v.appendChild(e);var x=document.createElement("input");x.setAttribute("type","radio");x.setAttribute("id","croppingRounded");x.setAttribute("name",
+"croppingShape");x.style.margin="5px";v.appendChild(x);e=document.createElement("label");e.setAttribute("for","croppingRounded");mxUtils.write(e,mxResources.get("rounded"));v.appendChild(e);var A=document.createElement("input");A.setAttribute("type","radio");A.setAttribute("id","croppingEllipse");A.setAttribute("name","croppingShape");A.style.margin="5px";v.appendChild(A);e=document.createElement("label");e.setAttribute("for","croppingEllipse");mxUtils.write(e,mxResources.get("ellipse"));v.appendChild(e);
+mxEvent.addListener(u,"change",p);mxEvent.addListener(x,"change",p);mxEvent.addListener(A,"change",p);var I=document.createElement("div");I.style.textAlign="center";I.style.visibility="hidden";var F=document.createElement("input");F.setAttribute("type","range");F.setAttribute("min","1");F.setAttribute("max","49");F.setAttribute("value",g);F.setAttribute("title",mxResources.get("arcSize"));I.appendChild(F);v.appendChild(I);mxEvent.addListener(F,"change",function(){g=this.value;p(!0)});e=mxUtils.button(mxResources.get("cancel"),
+function(){b.hideDialog()});e.className="geBtn";t=mxUtils.button(mxResources.get("apply"),function(){c(l(),k.geometry.width,k.geometry.height);b.hideDialog()});t.className="geBtn gePrimaryBtn";var C=mxUtils.button(mxResources.get("reset"),function(){c(null,E.width,E.height);b.hideDialog()});C.className="geBtn";var P=document.createElement("div");P.style.marginTop="10px";P.style.textAlign="right";b.editor.cancelFirst?(P.appendChild(e),P.appendChild(C),P.appendChild(t)):(P.appendChild(C),P.appendChild(t),
+P.appendChild(e));v.appendChild(P);this.container=v},EditGeometryDialog=function(b,e){var f=b.editor.graph,c=1==e.length?f.getCellGeometry(e[0]):null,l=document.createElement("div"),p=document.createElement("table"),v=document.createElement("tbody"),t=document.createElement("tr"),E=document.createElement("td"),H=document.createElement("td");p.style.paddingLeft="6px";mxUtils.write(E,mxResources.get("relative")+":");var B=document.createElement("input");B.setAttribute("type","checkbox");null!=c&&c.relative&&
+(B.setAttribute("checked","checked"),B.defaultChecked=!0);this.init=function(){B.focus()};H.appendChild(B);t.appendChild(E);t.appendChild(H);v.appendChild(t);t=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("left")+":");var d=document.createElement("input");d.setAttribute("type","text");d.style.width="100px";d.value=null!=c?c.x:"";H.appendChild(d);t.appendChild(E);t.appendChild(H);v.appendChild(t);t=document.createElement("tr");
+E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("top")+":");var g=document.createElement("input");g.setAttribute("type","text");g.style.width="100px";g.value=null!=c?c.y:"";H.appendChild(g);t.appendChild(E);t.appendChild(H);v.appendChild(t);t=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("dx")+":");var k=document.createElement("input");k.setAttribute("type","text");k.style.width=
+"100px";k.value=null!=c&&null!=c.offset?c.offset.x:"";H.appendChild(k);t.appendChild(E);t.appendChild(H);v.appendChild(t);t=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("dy")+":");var m=document.createElement("input");m.setAttribute("type","text");m.style.width="100px";m.value=null!=c&&null!=c.offset?c.offset.y:"";H.appendChild(m);t.appendChild(E);t.appendChild(H);v.appendChild(t);t=document.createElement("tr");E=document.createElement("td");
+H=document.createElement("td");mxUtils.write(E,mxResources.get("width")+":");var u=document.createElement("input");u.setAttribute("type","text");u.style.width="100px";u.value=null!=c?c.width:"";H.appendChild(u);t.appendChild(E);t.appendChild(H);v.appendChild(t);t=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("height")+":");var x=document.createElement("input");x.setAttribute("type","text");x.style.width="100px";x.value=null!=
+c?c.height:"";H.appendChild(x);t.appendChild(E);t.appendChild(H);v.appendChild(t);t=document.createElement("tr");E=document.createElement("td");H=document.createElement("td");mxUtils.write(E,mxResources.get("rotation")+":");var A=document.createElement("input");A.setAttribute("type","text");A.style.width="100px";A.value=1==e.length?mxUtils.getValue(f.getCellStyle(e[0]),mxConstants.STYLE_ROTATION,0):"";H.appendChild(A);t.appendChild(E);t.appendChild(H);v.appendChild(t);p.appendChild(v);l.appendChild(p);
c=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});c.className="geBtn";var I=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();f.getModel().beginUpdate();try{for(var F=0;F<e.length;F++){var C=f.getCellGeometry(e[F]);null!=C&&(C=C.clone(),f.isCellMovable(e[F])&&(C.relative=B.checked,0<mxUtils.trim(d.value).length&&(C.x=Number(d.value)),0<mxUtils.trim(g.value).length&&(C.y=Number(g.value)),0<mxUtils.trim(k.value).length&&(null==C.offset&&(C.offset=new mxPoint),C.offset.x=
-Number(k.value)),0<mxUtils.trim(m.value).length&&(null==C.offset&&(C.offset=new mxPoint),C.offset.y=Number(m.value))),f.isCellResizable(e[F])&&(0<mxUtils.trim(t.value).length&&(C.width=Number(t.value)),0<mxUtils.trim(y.value).length&&(C.height=Number(y.value))),f.getModel().setGeometry(e[F],C));0<mxUtils.trim(z.value).length&&f.setCellStyles(mxConstants.STYLE_ROTATION,Number(z.value),[e[F]])}}finally{f.getModel().endUpdate()}});I.className="geBtn gePrimaryBtn";mxEvent.addListener(l,"keypress",function(F){13==
-F.keyCode&&I.click()});p=document.createElement("div");p.style.marginTop="20px";p.style.textAlign="right";b.editor.cancelFirst?(p.appendChild(c),p.appendChild(I)):(p.appendChild(I),p.appendChild(c));l.appendChild(p);this.container=l},LibraryDialog=function(b,e,f,c,l,p,q){function v(P){for(P=document.elementFromPoint(P.clientX,P.clientY);null!=P&&P.parentNode!=m;)P=P.parentNode;var u=null;if(null!=P){var x=m.firstChild;for(u=0;null!=x&&x!=P;)x=x.nextSibling,u++}return u}function D(P,u,x,J,H,K,N,M,
-n){try{if(b.spinner.stop(),null==u||"image/"==u.substring(0,6))if(null==P&&null!=N||null==y[P]){var A=function(){X.innerText="";X.style.cursor="pointer";X.style.whiteSpace="nowrap";X.style.textOverflow="ellipsis";mxUtils.write(X,null!=Y.title&&0<Y.title.length?Y.title:mxResources.get("untitled"));X.style.color=null==Y.title||0==Y.title.length?"#d0d0d0":""};m.style.backgroundImage="";t.style.display="none";var E=H,L=K;if(H>b.maxImageSize||K>b.maxImageSize){var O=Math.min(1,Math.min(b.maxImageSize/
-Math.max(1,H)),b.maxImageSize/Math.max(1,K));H*=O;K*=O}E>L?(L=Math.round(100*L/E),E=100):(E=Math.round(100*E/L),L=100);var R=document.createElement("div");R.setAttribute("draggable","true");R.style.display="inline-block";R.style.position="relative";R.style.padding="0 12px";R.style.cursor="move";mxUtils.setPrefixedStyle(R.style,"transition","transform .1s ease-in-out");if(null!=P){var T=document.createElement("img");T.setAttribute("src",C.convert(P));T.style.width=E+"px";T.style.height=L+"px";T.style.margin=
-"10px";T.style.paddingBottom=Math.floor((100-L)/2)+"px";T.style.paddingLeft=Math.floor((100-E)/2)+"px";R.appendChild(T)}else if(null!=N){var U=b.stringToCells("<"==N.xml.charAt(0)?N.xml:Graph.decompress(N.xml));0<U.length&&(b.sidebar.createThumb(U,100,100,R,null,!0,!1,null,null,Editor.isDarkMode()?"#2a252f":"#ffffff"),R.firstChild.style.display="inline-block",R.firstChild.style.cursor="")}var W=document.createElement("img");W.setAttribute("src",Editor.closeBlackImage);W.setAttribute("border","0");
-W.setAttribute("title",mxResources.get("delete"));W.setAttribute("align","top");W.style.paddingTop="4px";W.style.position="absolute";W.style.marginLeft="-12px";W.style.zIndex="1";W.style.cursor="pointer";mxEvent.addListener(W,"dragstart",function(ba){mxEvent.consume(ba)});(function(ba,fa,aa){mxEvent.addListener(W,"click",function(ja){y[fa]=null;for(var ha=0;ha<d.length;ha++)if(null!=d[ha].data&&d[ha].data==fa||null!=d[ha].xml&&null!=aa&&d[ha].xml==aa.xml){d.splice(ha,1);break}R.parentNode.removeChild(ba);
-0==d.length&&(m.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",t.style.display="");mxEvent.consume(ja)});mxEvent.addListener(W,"dblclick",function(ja){mxEvent.consume(ja)})})(R,P,N);R.appendChild(W);R.style.marginBottom="30px";var X=document.createElement("div");X.style.position="absolute";X.style.boxSizing="border-box";X.style.bottom="-18px";X.style.left="10px";X.style.right="10px";X.style.backgroundColor="light-dark(#ffffff, transparent)";X.style.overflow="hidden";X.style.textAlign=
-"center";X.setAttribute("title",mxResources.get("rename"));var Y=null;null!=P?(Y={data:P,w:H,h:K,title:n},null!=M&&(Y.aspect=M),y[P]=T,d.push(Y)):null!=N&&(N.aspect="fixed",d.push(N),Y=N);mxEvent.addListener(X,"keydown",function(ba){13==ba.keyCode&&null!=F&&(F(),F=null,mxEvent.consume(ba))});A();R.appendChild(X);mxEvent.addListener(X,"mousedown",function(ba){"true"!=X.getAttribute("contentEditable")&&mxEvent.consume(ba)});U=function(ba){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||
-9<document.documentMode)){var fa=new FilenameDialog(b,Y.title||"",mxResources.get("ok"),function(aa){null!=aa&&(Y.title=aa,A())},mxResources.get("enterValue"));b.showDialog(fa.container,300,80,!0,!0);fa.init();mxEvent.consume(ba)}else if("true"!=X.getAttribute("contentEditable")){null!=F&&(F(),F=null);if(null==Y.title||0==Y.title.length)X.innerText="";X.style.textOverflow="";X.style.whiteSpace="";X.style.cursor="text";X.style.color="";X.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(X.style,
-"user-select","text");X.focus();document.execCommand("selectAll",!1,null);F=function(){X.removeAttribute("contentEditable");X.style.cursor="pointer";Y.title=mxUtils.getTextContent(X);A()};mxEvent.consume(ba)}};mxEvent.addListener(X,"click",U);mxEvent.addListener(R,"dblclick",U);m.appendChild(R);mxEvent.addListener(R,"dragstart",function(ba){null==F&&(null==P&&null!=N&&(W.style.visibility="hidden",X.style.visibility="hidden"),mxClient.IS_FF&&null!=N.xml&&ba.dataTransfer.setData("Text",N.xml),z=v(ba),
-mxClient.IS_GC&&(R.style.opacity="0.9"),window.setTimeout(function(){mxUtils.setPrefixedStyle(R.style,"transform","scale(0.5,0.5)");mxUtils.setOpacity(R,30);W.style.visibility="";X.style.visibility=""},0))});mxEvent.addListener(R,"dragend",function(ba){"hidden"==W.style.visibility&&(W.style.visibility="",X.style.visibility="");z=null;mxUtils.setOpacity(R,100);mxUtils.setPrefixedStyle(R.style,"transform",null)})}else Q||(Q=!0,b.handleError({message:mxResources.get("fileExists")}));else{H=!1;try{if(E=
-mxUtils.parseXml(P),"mxlibrary"==E.documentElement.nodeName){L=JSON.parse(mxUtils.getTextContent(E.documentElement));if(null!=L&&0<L.length)for(var Z=0;Z<L.length;Z++)null!=L[Z].xml?D(null,null,0,0,0,0,L[Z]):D(L[Z].data,null,0,0,L[Z].w,L[Z].h,null,"fixed",L[Z].title);H=!0}else if("mxfile"==E.documentElement.nodeName){var ca=E.documentElement.getElementsByTagName("diagram");for(Z=0;Z<ca.length;Z++){var ea=Editor.getDiagramNodeXml(ca[Z]);U=b.stringToCells(ea);if(0<U.length){var ia=b.editor.graph.getBoundingBoxFromGeometry(U);
-null!=ia&&D(null,null,0,0,0,0,{xml:ea,w:ia.width,h:ia.height})}}H=!0}}catch(ba){null!=window.console&&console.error("Error in library dialog: "+ba)}H||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(ba){null!=window.console&&console.log("Error in library dialog: "+ba)}return null}function G(P){P.dataTransfer.dropEffect=null!=z?"move":"copy";P.stopPropagation();P.preventDefault()}function B(P){P.stopPropagation();P.preventDefault();Q=!1;I=v(P);if(null!=z)null!=
-I&&I<m.children.length?(d.splice(I>z?I-1:I,0,d.splice(z,1)[0]),m.insertBefore(m.children[z],m.children[I])):(d.push(d.splice(z,1)[0]),m.appendChild(m.children[z]));else if(0<P.dataTransfer.files.length)b.importFiles(P.dataTransfer.files,0,0,b.maxImageSize,S(P));else if(0<=mxUtils.indexOf(P.dataTransfer.types,"text/uri-list")){var u=decodeURIComponent(P.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(u)||/(\.png)($|\?)/i.test(u)||/(\.gif)($|\?)/i.test(u)||/(\.svg)($|\?)/i.test(u))&&b.loadImage(u,
-function(x){D(u,null,0,0,x.width,x.height);m.scrollTop=m.scrollHeight})}P.stopPropagation();P.preventDefault()}var d=[];f=document.createElement("div");f.style.height="100%";var g=document.createElement("div");g.style.whiteSpace="nowrap";g.style.height="40px";f.appendChild(g);mxUtils.write(g,mxResources.get("filename")+":");null==e&&(e=b.defaultLibraryName+".xml");var k=document.createElement("input");k.setAttribute("value",e);k.style.marginRight="20px";k.style.marginLeft="10px";k.style.width="500px";
+Number(k.value)),0<mxUtils.trim(m.value).length&&(null==C.offset&&(C.offset=new mxPoint),C.offset.y=Number(m.value))),f.isCellResizable(e[F])&&(0<mxUtils.trim(u.value).length&&(C.width=Number(u.value)),0<mxUtils.trim(x.value).length&&(C.height=Number(x.value))),f.getModel().setGeometry(e[F],C));0<mxUtils.trim(A.value).length&&f.setCellStyles(mxConstants.STYLE_ROTATION,Number(A.value),[e[F]])}}finally{f.getModel().endUpdate()}});I.className="geBtn gePrimaryBtn";mxEvent.addListener(l,"keypress",function(F){13==
+F.keyCode&&I.click()});p=document.createElement("div");p.style.marginTop="20px";p.style.textAlign="right";b.editor.cancelFirst?(p.appendChild(c),p.appendChild(I)):(p.appendChild(I),p.appendChild(c));l.appendChild(p);this.container=l},LibraryDialog=function(b,e,f,c,l,p,v){function t(O){for(O=document.elementFromPoint(O.clientX,O.clientY);null!=O&&O.parentNode!=m;)O=O.parentNode;var V=null;if(null!=O){var q=m.firstChild;for(V=0;null!=q&&q!=O;)q=q.nextSibling,V++}return V}function E(O,V,q,y,D,J,L,K,
+n){try{if(b.spinner.stop(),null==V||"image/"==V.substring(0,6))if(null==O&&null!=L||null==x[O]){var z=function(){X.innerText="";X.style.cursor="pointer";X.style.whiteSpace="nowrap";X.style.textOverflow="ellipsis";mxUtils.write(X,null!=Z.title&&0<Z.title.length?Z.title:mxResources.get("untitled"));X.style.color=null==Z.title||0==Z.title.length?"#d0d0d0":""};m.style.backgroundImage="";u.style.display="none";var G=D,M=J;if(D>b.maxImageSize||J>b.maxImageSize){var N=Math.min(1,Math.min(b.maxImageSize/
+Math.max(1,D)),b.maxImageSize/Math.max(1,J));D*=N;J*=N}G>M?(M=Math.round(100*M/G),G=100):(G=Math.round(100*G/M),M=100);var Q=document.createElement("div");Q.setAttribute("draggable","true");Q.style.display="inline-block";Q.style.position="relative";Q.style.padding="0 12px";Q.style.cursor="move";mxUtils.setPrefixedStyle(Q.style,"transition","transform .1s ease-in-out");if(null!=O){var S=document.createElement("img");S.setAttribute("src",C.convert(O));S.style.width=G+"px";S.style.height=M+"px";S.style.margin=
+"10px";S.style.paddingBottom=Math.floor((100-M)/2)+"px";S.style.paddingLeft=Math.floor((100-G)/2)+"px";Q.appendChild(S)}else if(null!=L){var T=b.stringToCells("<"==L.xml.charAt(0)?L.xml:Graph.decompress(L.xml));0<T.length&&(b.sidebar.createThumb(T,100,100,Q,null,!0,!1,null,null,Editor.isDarkMode()?"#2a252f":"#ffffff"),Q.firstChild.style.display="inline-block",Q.firstChild.style.cursor="")}var W=document.createElement("img");W.setAttribute("src",Editor.closeBlackImage);W.setAttribute("border","0");
+W.setAttribute("title",mxResources.get("delete"));W.setAttribute("align","top");W.style.paddingTop="4px";W.style.position="absolute";W.style.marginLeft="-12px";W.style.zIndex="1";W.style.cursor="pointer";mxEvent.addListener(W,"dragstart",function(ca){mxEvent.consume(ca)});(function(ca,fa,aa){mxEvent.addListener(W,"click",function(ja){x[fa]=null;for(var ha=0;ha<d.length;ha++)if(null!=d[ha].data&&d[ha].data==fa||null!=d[ha].xml&&null!=aa&&d[ha].xml==aa.xml){d.splice(ha,1);break}Q.parentNode.removeChild(ca);
+0==d.length&&(m.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",u.style.display="");mxEvent.consume(ja)});mxEvent.addListener(W,"dblclick",function(ja){mxEvent.consume(ja)})})(Q,O,L);Q.appendChild(W);Q.style.marginBottom="30px";var X=document.createElement("div");X.style.position="absolute";X.style.boxSizing="border-box";X.style.bottom="-18px";X.style.left="10px";X.style.right="10px";X.style.backgroundColor="light-dark(#ffffff, transparent)";X.style.overflow="hidden";X.style.textAlign=
+"center";X.setAttribute("title",mxResources.get("rename"));var Z=null;null!=O?(Z={data:O,w:D,h:J,title:n},null!=K&&(Z.aspect=K),x[O]=S,d.push(Z)):null!=L&&(L.aspect="fixed",d.push(L),Z=L);mxEvent.addListener(X,"keydown",function(ca){13==ca.keyCode&&null!=F&&(F(),F=null,mxEvent.consume(ca))});z();Q.appendChild(X);mxEvent.addListener(X,"mousedown",function(ca){"true"!=X.getAttribute("contentEditable")&&mxEvent.consume(ca)});T=function(ca){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||
+9<document.documentMode)){var fa=new FilenameDialog(b,Z.title||"",mxResources.get("ok"),function(aa){null!=aa&&(Z.title=aa,z())},mxResources.get("enterValue"));b.showDialog(fa.container,300,80,!0,!0);fa.init();mxEvent.consume(ca)}else if("true"!=X.getAttribute("contentEditable")){null!=F&&(F(),F=null);if(null==Z.title||0==Z.title.length)X.innerText="";X.style.textOverflow="";X.style.whiteSpace="";X.style.cursor="text";X.style.color="";X.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(X.style,
+"user-select","text");X.focus();document.execCommand("selectAll",!1,null);F=function(){X.removeAttribute("contentEditable");X.style.cursor="pointer";Z.title=mxUtils.getTextContent(X);z()};mxEvent.consume(ca)}};mxEvent.addListener(X,"click",T);mxEvent.addListener(Q,"dblclick",T);m.appendChild(Q);mxEvent.addListener(Q,"dragstart",function(ca){null==F&&(null==O&&null!=L&&(W.style.visibility="hidden",X.style.visibility="hidden"),mxClient.IS_FF&&null!=L.xml&&ca.dataTransfer.setData("Text",L.xml),A=t(ca),
+mxClient.IS_GC&&(Q.style.opacity="0.9"),window.setTimeout(function(){mxUtils.setPrefixedStyle(Q.style,"transform","scale(0.5,0.5)");mxUtils.setOpacity(Q,30);W.style.visibility="";X.style.visibility=""},0))});mxEvent.addListener(Q,"dragend",function(ca){"hidden"==W.style.visibility&&(W.style.visibility="",X.style.visibility="");A=null;mxUtils.setOpacity(Q,100);mxUtils.setPrefixedStyle(Q.style,"transform",null)})}else P||(P=!0,b.handleError({message:mxResources.get("fileExists")}));else{D=!1;try{if(G=
+mxUtils.parseXml(O),"mxlibrary"==G.documentElement.nodeName){M=JSON.parse(mxUtils.getTextContent(G.documentElement));if(null!=M&&0<M.length)for(var Y=0;Y<M.length;Y++)null!=M[Y].xml?E(null,null,0,0,0,0,M[Y]):E(M[Y].data,null,0,0,M[Y].w,M[Y].h,null,"fixed",M[Y].title);D=!0}else if("mxfile"==G.documentElement.nodeName){var ba=G.documentElement.getElementsByTagName("diagram");for(Y=0;Y<ba.length;Y++){var da=Editor.getDiagramNodeXml(ba[Y]);T=b.stringToCells(da);if(0<T.length){var ia=b.editor.graph.getBoundingBoxFromGeometry(T);
+null!=ia&&E(null,null,0,0,0,0,{xml:da,w:ia.width,h:ia.height})}}D=!0}}catch(ca){null!=window.console&&console.error("Error in library dialog: "+ca)}D||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(ca){null!=window.console&&console.log("Error in library dialog: "+ca)}return null}function H(O){O.dataTransfer.dropEffect=null!=A?"move":"copy";O.stopPropagation();O.preventDefault()}function B(O){O.stopPropagation();O.preventDefault();P=!1;I=t(O);if(null!=A)null!=
+I&&I<m.children.length?(d.splice(I>A?I-1:I,0,d.splice(A,1)[0]),m.insertBefore(m.children[A],m.children[I])):(d.push(d.splice(A,1)[0]),m.appendChild(m.children[A]));else if(0<O.dataTransfer.files.length)b.importFiles(O.dataTransfer.files,0,0,b.maxImageSize,R(O));else if(0<=mxUtils.indexOf(O.dataTransfer.types,"text/uri-list")){var V=decodeURIComponent(O.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(V)||/(\.png)($|\?)/i.test(V)||/(\.gif)($|\?)/i.test(V)||/(\.svg)($|\?)/i.test(V))&&b.loadImage(V,
+function(q){E(V,null,0,0,q.width,q.height);m.scrollTop=m.scrollHeight})}O.stopPropagation();O.preventDefault()}var d=[];f=document.createElement("div");f.style.height="100%";var g=document.createElement("div");g.style.whiteSpace="nowrap";g.style.height="40px";f.appendChild(g);mxUtils.write(g,mxResources.get("filename")+":");null==e&&(e=b.defaultLibraryName+".xml");var k=document.createElement("input");k.setAttribute("value",e);k.style.marginRight="20px";k.style.marginLeft="10px";k.style.width="500px";
null==l||l.isRenamable()||k.setAttribute("disabled","true");this.init=function(){if(null==l||l.isRenamable())k.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?k.select():document.execCommand("selectAll",!1,null)};g.appendChild(k);Editor.enableUncompressedLibraries&&(k.style.width="420px",e=document.createElement("input"),e.setAttribute("type","checkbox"),e.style.marginRight="10px",g.appendChild(e),mxUtils.write(g,mxResources.get("compressed")));var m=document.createElement("div");
-m.style.borderWidth="1px 0px 1px 0px";m.style.borderColor="#d3d3d3";m.style.borderStyle="solid";m.style.marginTop="6px";m.style.overflow="auto";m.style.height="340px";m.style.backgroundPosition="center center";m.style.backgroundRepeat="no-repeat";0==d.length&&Graph.fileSupport&&(m.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')");var t=document.createElement("div");t.style.position="absolute";t.style.width="640px";t.style.top="260px";t.style.textAlign="center";t.style.fontSize="22px";
-t.style.color="#a0c3ff";mxUtils.write(t,mxResources.get("dragImagesHere"));f.appendChild(t);var y={},z=null,I=null,F=null;g=function(P){"true"!=mxEvent.getSource(P).getAttribute("contentEditable")&&null!=F&&(F(),F=null,mxEvent.consume(P))};mxEvent.addListener(m,"mousedown",g);mxEvent.addListener(m,"pointerdown",g);mxEvent.addListener(m,"touchstart",g);var C=new mxUrlConverter,Q=!1;if(null!=c)for(g=0;g<c.length;g++)e=c[g],D(e.data,null,0,0,e.w,e.h,e,e.aspect,e.title);mxEvent.addListener(m,"dragleave",
-function(P){t.style.cursor="";for(var u=mxEvent.getSource(P);null!=u;){if(u==m||u==t){P.stopPropagation();P.preventDefault();break}u=u.parentNode}});var S=function(P){return function(u,x,J,H,K,N,M,n,A){null!=A&&EditorUi.isVisioFilename(A.name)?b.importVisio(A,mxUtils.bind(this,function(E){D(E,x,J,H,K,N,M,"fixed",mxEvent.isAltDown(P)?null:M.substring(0,M.lastIndexOf(".")).replace(/_/g," "))})):null!=A&&(new XMLHttpRequest).upload&&b.isRemoteFileFormat(u,A.name)?b.isExternalDataComms()?b.parseFile(A,
-mxUtils.bind(this,function(E){4==E.readyState&&(b.spinner.stop(),200<=E.status&&299>=E.status&&(D(E.responseText,x,J,H,K,N,M,"fixed",mxEvent.isAltDown(P)?null:M.substring(0,M.lastIndexOf(".")).replace(/_/g," ")),m.scrollTop=m.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(D(u,x,J,H,K,N,M,"fixed",mxEvent.isAltDown(P)?null:M.substring(0,M.lastIndexOf(".")).replace(/_/g," ")),m.scrollTop=m.scrollHeight)}};mxEvent.addListener(m,"dragover",G);
-mxEvent.addListener(m,"drop",B);mxEvent.addListener(t,"dragover",G);mxEvent.addListener(t,"drop",B);f.appendChild(m);c=document.createElement("div");c.style.textAlign="right";c.style.marginTop="20px";g=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});g.setAttribute("id","btnCancel");g.className="geBtn";b.editor.cancelFirst&&c.appendChild(g);"draw.io"!=b.getServiceName()||null==l||l.constructor!=DriveLibrary&&l.constructor!=GitHubLibrary||(e=mxUtils.button(mxResources.get("link"),
-function(){b.getPublicUrl(l,function(P){if(null!=P){var u=b.getSearch("create title mode url drive splash state clibs ui".split(" "));u+=(0==u.length?"?":"&")+"splash=0&clibs=U"+encodeURIComponent(P);P=new EmbedDialog(b,window.location.protocol+"//"+window.location.host+"/"+u,null,null,null,null,"Check out the library I made using @drawio");b.showDialog(P.container,450,240,!0);P.init()}else l.constructor==DriveLibrary?b.showError(mxResources.get("error"),mxResources.get("diagramIsNotPublic"),mxResources.get("share"),
-mxUtils.bind(this,function(){b.drive.showPermissions(l.getId(),l)}),null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({message:mxResources.get("diagramIsNotPublic")})})}),e.className="geBtn",c.appendChild(e));e=mxUtils.button(mxResources.get("export"),function(){var P=b.createLibraryDataFromImages(d),u=k.value;/(\.xml)$/i.test(u)||(u+=".xml");b.isLocalFileSave()?b.saveLocalFile(P,u,"text/xml",null,null,null!=q?q:!0,null,"xml"):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(u)+
-"&format=xml&xml="+encodeURIComponent(P))).simulate(document,"_blank")});e.setAttribute("id","btnDownload");e.className="geBtn";c.appendChild(e);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var V=document.createElement("input");V.setAttribute("multiple","multiple");V.setAttribute("type","file");mxEvent.addListener(V,"change",function(P){Q=!1;b.importFiles(V.files,0,0,b.maxImageSize,function(u,x,J,H,K,N,M,n,A){null!=V.files&&(S(P)(u,x,J,H,K,N,M,n,A),V.type="",V.type="file",V.value="")});m.scrollTop=
-m.scrollHeight});V.style.display="none";document.body.appendChild(V);b.libDlgFileInputElt=V}e=mxUtils.button(mxResources.get("import"),function(){null!=F&&(F(),F=null);b.libDlgFileInputElt.click()});e.setAttribute("id","btnAddImage");e.className="geBtn";c.appendChild(e)}e=mxUtils.button(mxResources.get("addImages"),function(){null!=F&&(F(),F=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(P,u,x){Q=!1;if(null!=P){if("data:image/"==P.substring(0,11)){var J=P.indexOf(",");0<J&&(P=
-P.substring(0,J)+";base64,"+P.substring(J+1))}D(P,null,0,0,u,x);m.scrollTop=m.scrollHeight}})});e.setAttribute("id","btnAddImageUrl");e.className="geBtn";c.appendChild(e);this.saveBtnClickHandler=function(P,u,x,J){b.saveLibrary(P,u,x,J)};e=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=F&&(F(),F=null);this.saveBtnClickHandler(k.value,d,l,p)}));e.setAttribute("id","btnSave");e.className="geBtn gePrimaryBtn";c.appendChild(e);b.editor.cancelFirst||c.appendChild(g);f.appendChild(c);
-this.container=f},EditShapeDialog=function(b,e,f,c,l){c=null!=c?c:300;l=null!=l?l:120;var p=document.createElement("table"),q=document.createElement("tbody");p.style.cellPadding="4px";var v=document.createElement("tr");var D=document.createElement("td");D.setAttribute("colspan","2");D.style.fontSize="10pt";mxUtils.write(D,f);v.appendChild(D);q.appendChild(v);v=document.createElement("tr");D=document.createElement("td");var G=document.createElement("textarea");G.style.outline="none";G.style.resize=
-"none";G.style.width=c-200+"px";G.style.height=l+"px";this.textarea=G;this.init=function(){G.focus();G.scrollTop=0};D.appendChild(G);v.appendChild(D);D=document.createElement("td");f=document.createElement("div");f.style.position="relative";f.style.border="1px solid gray";f.style.top="6px";f.style.width="200px";f.style.height=l+4+"px";f.style.overflow="hidden";f.style.marginBottom="16px";mxEvent.disableContextMenu(f);D.appendChild(f);var B=new Graph(f);B.setEnabled(!1);var d=b.editor.graph.cloneCell(e);
-B.addCells([d]);f=B.view.getState(d);var g="";null!=f.shape&&null!=f.shape.stencil&&(g=mxUtils.getPrettyXml(f.shape.stencil.desc));mxUtils.write(G,g||"");f=B.getGraphBounds();l=Math.min(160/f.width,(l-40)/f.height);B.view.scaleAndTranslate(l,20/l-f.x,20/l-f.y);v.appendChild(D);q.appendChild(v);v=document.createElement("tr");D=document.createElement("td");D.setAttribute("colspan","2");D.style.paddingTop="2px";D.style.whiteSpace="nowrap";D.setAttribute("align","right");b.isOffline()||(l=mxUtils.button(mxResources.get("help"),
-function(){b.openLink("https://www.drawio.com/doc/faq/shape-complex-create-edit")}),l.className="geBtn",D.appendChild(l));l=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});l.className="geBtn";b.editor.cancelFirst&&D.appendChild(l);var k=function(m,t,y){var z=G.value,I=mxUtils.parseXml(z);z=mxUtils.getPrettyXml(I.documentElement);I=I.documentElement.getElementsByTagName("parsererror");if(null!=I&&0<I.length)b.showError(mxResources.get("error"),mxResources.get("containsValidationErrors"),
-mxResources.get("ok"));else if(y&&b.hideDialog(),I=!m.model.contains(t),!y||I||z!=g){z=Graph.compress(z);m.getModel().beginUpdate();try{if(I){var F=b.editor.graph.getFreeInsertPoint();t.geometry.x=F.x;t.geometry.y=F.y;m.addCell(t)}m.setCellStyles(mxConstants.STYLE_SHAPE,"stencil("+z+")",[t])}catch(C){throw C;}finally{m.getModel().endUpdate()}I&&(m.setSelectionCell(t),m.scrollCellToVisible(t))}};f=mxUtils.button(mxResources.get("preview"),function(){k(B,d,!1)});f.className="geBtn";D.appendChild(f);
-f=mxUtils.button(mxResources.get("apply"),function(){k(b.editor.graph,e,!0)});f.className="geBtn gePrimaryBtn";D.appendChild(f);b.editor.cancelFirst||D.appendChild(l);v.appendChild(D);q.appendChild(v);p.appendChild(q);this.container=p},CustomDialog=function(b,e,f,c,l,p,q,v,D,G,B,d){var g=document.createElement("div");g.appendChild(e);var k=document.createElement("div");k.style.marginTop=null!=d?d:"30px";k.style.textAlign="right";null!=q&&k.appendChild(q);b.isOffline()||null==p||k.appendChild(b.createHelpIcon(p));
-e=mxUtils.button(D||mxResources.get("cancel"),function(){b.hideDialog();null!=c&&c()});e.className="geBtn";v&&(e.style.display="none");b.editor.cancelFirst&&k.appendChild(e);l=mxUtils.button(l||mxResources.get("ok"),mxUtils.bind(this,function(){G||b.hideDialog(null,null,this.container);if(null!=f){var m=f();if("string"===typeof m){b.showError(mxResources.get("error"),m);return}}G&&b.hideDialog(null,null,this.container)}));k.appendChild(l);l.className="geBtn gePrimaryBtn";b.editor.cancelFirst||k.appendChild(e);
-if(null!=B)for(v=0;v<B.length;v++)(function(m,t,y){m=mxUtils.button(m,function(z){t(z)});null!=y&&m.setAttribute("title",y);m.className="geBtn";k.appendChild(m)})(B[v][0],B[v][1],B[v][2]);g.appendChild(k);this.cancelBtn=e;this.okButton=l;this.container=g},BtnDialog=function(b,e,f,c){var l=document.createElement("div");l.style.textAlign="center";var p=document.createElement("p");p.style.fontSize="16pt";p.style.padding="0px";p.style.margin="0px";p.style.color="gray";mxUtils.write(p,mxResources.get("done"));
-var q="Unknown",v=document.createElement("img");v.setAttribute("border","0");v.setAttribute("align","absmiddle");v.style.marginRight="10px";e==b.drive?(q=mxResources.get("googleDrive"),v.src=IMAGE_PATH+"/google-drive-logo-white.svg"):e==b.dropbox?(q=mxResources.get("dropbox"),v.src=IMAGE_PATH+"/dropbox-logo-white.svg"):e==b.oneDrive?(q=mxResources.get("oneDrive"),v.src=IMAGE_PATH+"/onedrive-logo-white.svg"):e==b.gitHub?(q=mxResources.get("github"),v.src=IMAGE_PATH+"/github-logo-white.svg"):e==b.gitLab?
-(q=mxResources.get("gitlab"),v.src=IMAGE_PATH+"/gitlab-logo.svg"):e==b.trello&&(q=mxResources.get("trello"),v.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizedIn",[q],"You are now authorized in {1}"));f=mxUtils.button(f,c);f.insertBefore(v,f.firstChild);f.style.marginTop="6px";f.className="geBigButton";f.style.fontSize="18px";f.style.padding="14px";l.appendChild(p);l.appendChild(b);l.appendChild(f);this.container=l},FontDialog=function(b,
-e,f,c,l){function p(F){this.style.border="";13==F.keyCode&&I.click()}var q=document.createElement("table"),v=document.createElement("tbody");q.style.marginTop="8px";var D=document.createElement("tr");var G=document.createElement("td");G.colSpan=2;G.style.whiteSpace="nowrap";G.style.fontSize="10pt";G.style.fontWeight="bold";var B=document.createElement("input");B.style.cssText="margin-right:8px;margin-bottom:8px;";B.setAttribute("value","sysfonts");B.setAttribute("type","radio");B.setAttribute("name",
-"current-fontdialog");B.setAttribute("id","fontdialog-sysfonts");G.appendChild(B);var d=document.createElement("label");d.setAttribute("for","fontdialog-sysfonts");mxUtils.write(d,mxResources.get("sysFonts",null,"System Fonts"));G.appendChild(d);D.appendChild(G);v.appendChild(D);D=document.createElement("tr");G=document.createElement("td");G.style.whiteSpace="nowrap";G.style.fontSize="10pt";G.style.width="120px";G.style.paddingLeft="15px";mxUtils.write(G,mxResources.get("fontname",null,"Font Name")+
-":");D.appendChild(G);var g=document.createElement("input");"s"==c&&g.setAttribute("value",e);g.style.marginLeft="4px";g.style.width="250px";g.className="dlg_fontName_s";G=document.createElement("td");G.appendChild(g);D.appendChild(G);v.appendChild(D);D=document.createElement("tr");G=document.createElement("td");G.colSpan=2;G.style.whiteSpace="nowrap";G.style.fontSize="10pt";G.style.fontWeight="bold";var k=document.createElement("input");k.style.cssText="margin-right:8px;margin-bottom:8px;";k.setAttribute("value",
-"googlefonts");k.setAttribute("type","radio");k.setAttribute("name","current-fontdialog");k.setAttribute("id","fontdialog-googlefonts");G.appendChild(k);d=document.createElement("label");d.setAttribute("for","fontdialog-googlefonts");mxUtils.write(d,mxResources.get("googleFonts",null,"Google Fonts"));G.appendChild(d);if(!b.isOffline()||EditorUi.isElectronApp)d=b.createHelpIcon("https://fonts.google.com/"),G.appendChild(d);D.appendChild(G);"0"!=urlParams.isGoogleFontsEnabled&&v.appendChild(D);D=document.createElement("tr");
-G=document.createElement("td");G.style.whiteSpace="nowrap";G.style.fontSize="10pt";G.style.width="120px";G.style.paddingLeft="15px";mxUtils.write(G,mxResources.get("fontname",null,"Font Name")+":");D.appendChild(G);var m=document.createElement("input");"g"==c&&m.setAttribute("value",e);m.style.marginLeft="4px";m.style.width="250px";m.className="dlg_fontName_g";G=document.createElement("td");G.appendChild(m);D.appendChild(G);"0"!=urlParams.isGoogleFontsEnabled&&v.appendChild(D);D=document.createElement("tr");
-G=document.createElement("td");G.colSpan=2;G.style.whiteSpace="nowrap";G.style.fontSize="10pt";G.style.fontWeight="bold";var t=document.createElement("input");t.style.cssText="margin-right:8px;margin-bottom:8px;";t.setAttribute("value","webfonts");t.setAttribute("type","radio");t.setAttribute("name","current-fontdialog");t.setAttribute("id","fontdialog-webfonts");G.appendChild(t);d=document.createElement("label");d.setAttribute("for","fontdialog-webfonts");mxUtils.write(d,mxResources.get("webfonts",
-null,"Web Fonts"));G.appendChild(d);D.appendChild(G);Editor.enableWebFonts&&v.appendChild(D);D=document.createElement("tr");G=document.createElement("td");G.style.whiteSpace="nowrap";G.style.fontSize="10pt";G.style.width="120px";G.style.paddingLeft="15px";mxUtils.write(G,mxResources.get("fontname",null,"Font Name")+":");D.appendChild(G);var y=document.createElement("input");"w"==c&&(Editor.enableWebFonts?y.setAttribute("value",e):g.setAttribute("value",e));y.style.marginLeft="4px";y.style.width="250px";
-y.className="dlg_fontName_w";G=document.createElement("td");G.appendChild(y);D.appendChild(G);Editor.enableWebFonts&&v.appendChild(D);D=document.createElement("tr");G=document.createElement("td");G.style.whiteSpace="nowrap";G.style.fontSize="10pt";G.style.width="120px";G.style.paddingLeft="15px";mxUtils.write(G,mxResources.get("fontUrl",null,"Font URL")+":");D.appendChild(G);var z=document.createElement("input");z.setAttribute("value",f||"");z.style.marginLeft="4px";z.style.width="250px";z.className=
-"dlg_fontUrl";G=document.createElement("td");G.appendChild(z);D.appendChild(G);Editor.enableWebFonts&&v.appendChild(D);this.init=function(){var F=g;"g"==c?F=m:"w"==c&&Editor.enableWebFonts&&(F=y);F.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?F.select():document.execCommand("selectAll",!1,null)};D=document.createElement("tr");G=document.createElement("td");G.colSpan=2;G.style.paddingTop="20px";G.style.whiteSpace="nowrap";G.setAttribute("align","right");b.isOffline()||G.appendChild(b.createHelpIcon("https://www.drawio.com/blog/external-fonts"));
-e=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();l()});e.className="geBtn";b.editor.cancelFirst&&G.appendChild(e);var I=mxUtils.button(mxResources.get("apply"),function(){if(B.checked){var F=g.value;var C="s"}else if(k.checked){F=m.value;var Q=Editor.GOOGLE_FONTS+encodeURIComponent(F).replace(/%20/g,"+");C="g"}else t.checked&&(F=y.value,Q=z.value,C="w");var S=F;var V=Q,P=C,u=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/,x=q.querySelector(".dlg_fontName_"+
-P);null==x||null!=S&&0!=S.length?(x=q.querySelector(".dlg_fontUrl"),null==x||"w"!=P||u.test(V)?S=!0:(x.style.border="1px solid red",S=!1)):(x.style.border="1px solid red",S=!1);S&&(l(F,Q,C),b.hideDialog())});I.className="geBtn gePrimaryBtn";mxEvent.addListener(g,"keypress",p);mxEvent.addListener(m,"keypress",p);mxEvent.addListener(y,"keypress",p);mxEvent.addListener(z,"keypress",p);mxEvent.addListener(g,"focus",function(){B.setAttribute("checked","checked");B.checked=!0});mxEvent.addListener(m,"focus",
-function(){k.setAttribute("checked","checked");k.checked=!0});mxEvent.addListener(y,"focus",function(){t.setAttribute("checked","checked");t.checked=!0});mxEvent.addListener(z,"focus",function(){t.setAttribute("checked","checked");t.checked=!0});G.appendChild(I);b.editor.cancelFirst||G.appendChild(e);D.appendChild(G);v.appendChild(D);q.appendChild(v);this.container=q};
+m.style.borderWidth="1px 0px 1px 0px";m.style.borderColor="#d3d3d3";m.style.borderStyle="solid";m.style.marginTop="6px";m.style.overflow="auto";m.style.height="340px";m.style.backgroundPosition="center center";m.style.backgroundRepeat="no-repeat";0==d.length&&Graph.fileSupport&&(m.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')");var u=document.createElement("div");u.style.position="absolute";u.style.width="640px";u.style.top="260px";u.style.textAlign="center";u.style.fontSize="22px";
+u.style.color="#a0c3ff";mxUtils.write(u,mxResources.get("dragImagesHere"));f.appendChild(u);var x={},A=null,I=null,F=null;g=function(O){"true"!=mxEvent.getSource(O).getAttribute("contentEditable")&&null!=F&&(F(),F=null,mxEvent.consume(O))};mxEvent.addListener(m,"mousedown",g);mxEvent.addListener(m,"pointerdown",g);mxEvent.addListener(m,"touchstart",g);var C=new mxUrlConverter,P=!1;if(null!=c)for(g=0;g<c.length;g++)e=c[g],E(e.data,null,0,0,e.w,e.h,e,e.aspect,e.title);mxEvent.addListener(m,"dragleave",
+function(O){u.style.cursor="";for(var V=mxEvent.getSource(O);null!=V;){if(V==m||V==u){O.stopPropagation();O.preventDefault();break}V=V.parentNode}});var R=function(O){return function(V,q,y,D,J,L,K,n,z){null!=z&&EditorUi.isVisioFilename(z.name)?b.importVisio(z,mxUtils.bind(this,function(G){E(G,q,y,D,J,L,K,"fixed",mxEvent.isAltDown(O)?null:K.substring(0,K.lastIndexOf(".")).replace(/_/g," "))})):null!=z&&(new XMLHttpRequest).upload&&b.isRemoteFileFormat(V,z.name)?b.isExternalDataComms()?b.parseFile(z,
+mxUtils.bind(this,function(G){4==G.readyState&&(b.spinner.stop(),200<=G.status&&299>=G.status&&(E(G.responseText,q,y,D,J,L,K,"fixed",mxEvent.isAltDown(O)?null:K.substring(0,K.lastIndexOf(".")).replace(/_/g," ")),m.scrollTop=m.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(E(V,q,y,D,J,L,K,"fixed",mxEvent.isAltDown(O)?null:K.substring(0,K.lastIndexOf(".")).replace(/_/g," ")),m.scrollTop=m.scrollHeight)}};mxEvent.addListener(m,"dragover",H);
+mxEvent.addListener(m,"drop",B);mxEvent.addListener(u,"dragover",H);mxEvent.addListener(u,"drop",B);f.appendChild(m);c=document.createElement("div");c.style.textAlign="right";c.style.marginTop="20px";g=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});g.setAttribute("id","btnCancel");g.className="geBtn";b.editor.cancelFirst&&c.appendChild(g);"draw.io"!=b.getServiceName()||null==l||l.constructor!=DriveLibrary&&l.constructor!=GitHubLibrary||(e=mxUtils.button(mxResources.get("link"),
+function(){b.getPublicUrl(l,function(O){if(null!=O){var V=b.getSearch("create title mode url drive splash state clibs ui".split(" "));V+=(0==V.length?"?":"&")+"splash=0&clibs=U"+encodeURIComponent(O);O=new EmbedDialog(b,window.location.protocol+"//"+window.location.host+"/"+V,null,null,null,null,"Check out the library I made using @drawio");b.showDialog(O.container,450,240,!0);O.init()}else l.constructor==DriveLibrary?b.showError(mxResources.get("error"),mxResources.get("diagramIsNotPublic"),mxResources.get("share"),
+mxUtils.bind(this,function(){b.drive.showPermissions(l.getId(),l)}),null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({message:mxResources.get("diagramIsNotPublic")})})}),e.className="geBtn",c.appendChild(e));e=mxUtils.button(mxResources.get("export"),function(){var O=b.createLibraryDataFromImages(d),V=k.value;/(\.xml)$/i.test(V)||(V+=".xml");b.isLocalFileSave()?b.saveLocalFile(O,V,"text/xml",null,null,null!=v?v:!0,null,"xml"):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(V)+
+"&format=xml&xml="+encodeURIComponent(O))).simulate(document,"_blank")});e.setAttribute("id","btnDownload");e.className="geBtn";c.appendChild(e);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var U=document.createElement("input");U.setAttribute("multiple","multiple");U.setAttribute("type","file");mxEvent.addListener(U,"change",function(O){P=!1;b.importFiles(U.files,0,0,b.maxImageSize,function(V,q,y,D,J,L,K,n,z){null!=U.files&&(R(O)(V,q,y,D,J,L,K,n,z),U.type="",U.type="file",U.value="")});m.scrollTop=
+m.scrollHeight});U.style.display="none";document.body.appendChild(U);b.libDlgFileInputElt=U}e=mxUtils.button(mxResources.get("import"),function(){null!=F&&(F(),F=null);b.libDlgFileInputElt.click()});e.setAttribute("id","btnAddImage");e.className="geBtn";c.appendChild(e)}e=mxUtils.button(mxResources.get("addImages"),function(){null!=F&&(F(),F=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(O,V,q){P=!1;if(null!=O){if("data:image/"==O.substring(0,11)){var y=O.indexOf(",");0<y&&(O=
+O.substring(0,y)+";base64,"+O.substring(y+1))}E(O,null,0,0,V,q);m.scrollTop=m.scrollHeight}})});e.setAttribute("id","btnAddImageUrl");e.className="geBtn";c.appendChild(e);this.saveBtnClickHandler=function(O,V,q,y){b.saveLibrary(O,V,q,y)};e=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=F&&(F(),F=null);this.saveBtnClickHandler(k.value,d,l,p)}));e.setAttribute("id","btnSave");e.className="geBtn gePrimaryBtn";c.appendChild(e);b.editor.cancelFirst||c.appendChild(g);f.appendChild(c);
+this.container=f},EditShapeDialog=function(b,e,f,c,l){c=null!=c?c:300;l=null!=l?l:120;var p=document.createElement("table"),v=document.createElement("tbody");p.style.cellPadding="4px";var t=document.createElement("tr");var E=document.createElement("td");E.setAttribute("colspan","2");E.style.fontSize="10pt";mxUtils.write(E,f);t.appendChild(E);v.appendChild(t);t=document.createElement("tr");E=document.createElement("td");var H=document.createElement("textarea");H.style.outline="none";H.style.resize=
+"none";H.style.width=c-200+"px";H.style.height=l+"px";this.textarea=H;this.init=function(){H.focus();H.scrollTop=0};E.appendChild(H);t.appendChild(E);E=document.createElement("td");f=document.createElement("div");f.style.position="relative";f.style.border="1px solid gray";f.style.top="6px";f.style.width="200px";f.style.height=l+4+"px";f.style.overflow="hidden";f.style.marginBottom="16px";mxEvent.disableContextMenu(f);E.appendChild(f);var B=new Graph(f);B.setEnabled(!1);var d=b.editor.graph.cloneCell(e);
+B.addCells([d]);f=B.view.getState(d);var g="";null!=f.shape&&null!=f.shape.stencil&&(g=mxUtils.getPrettyXml(f.shape.stencil.desc));mxUtils.write(H,g||"");f=B.getGraphBounds();l=Math.min(160/f.width,(l-40)/f.height);B.view.scaleAndTranslate(l,20/l-f.x,20/l-f.y);t.appendChild(E);v.appendChild(t);t=document.createElement("tr");E=document.createElement("td");E.setAttribute("colspan","2");E.style.paddingTop="2px";E.style.whiteSpace="nowrap";E.setAttribute("align","right");b.isOffline()||(l=mxUtils.button(mxResources.get("help"),
+function(){b.openLink("https://www.drawio.com/doc/faq/shape-complex-create-edit")}),l.className="geBtn",E.appendChild(l));l=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});l.className="geBtn";b.editor.cancelFirst&&E.appendChild(l);var k=function(m,u,x){var A=H.value,I=mxUtils.parseXml(A);A=mxUtils.getPrettyXml(I.documentElement);I=I.documentElement.getElementsByTagName("parsererror");if(null!=I&&0<I.length)b.showError(mxResources.get("error"),mxResources.get("containsValidationErrors"),
+mxResources.get("ok"));else if(x&&b.hideDialog(),I=!m.model.contains(u),!x||I||A!=g){A=Graph.compress(A);m.getModel().beginUpdate();try{if(I){var F=b.editor.graph.getFreeInsertPoint();u.geometry.x=F.x;u.geometry.y=F.y;m.addCell(u)}m.setCellStyles(mxConstants.STYLE_SHAPE,"stencil("+A+")",[u])}catch(C){throw C;}finally{m.getModel().endUpdate()}I&&(m.setSelectionCell(u),m.scrollCellToVisible(u))}};f=mxUtils.button(mxResources.get("preview"),function(){k(B,d,!1)});f.className="geBtn";E.appendChild(f);
+f=mxUtils.button(mxResources.get("apply"),function(){k(b.editor.graph,e,!0)});f.className="geBtn gePrimaryBtn";E.appendChild(f);b.editor.cancelFirst||E.appendChild(l);t.appendChild(E);v.appendChild(t);p.appendChild(v);this.container=p},CustomDialog=function(b,e,f,c,l,p,v,t,E,H,B,d){var g=document.createElement("div");g.appendChild(e);var k=document.createElement("div");k.style.marginTop=null!=d?d:"30px";k.style.textAlign="right";null!=v&&k.appendChild(v);b.isOffline()||null==p||k.appendChild(b.createHelpIcon(p));
+e=mxUtils.button(E||mxResources.get("cancel"),function(){b.hideDialog();null!=c&&c()});e.className="geBtn";t&&(e.style.display="none");b.editor.cancelFirst&&k.appendChild(e);l=mxUtils.button(l||mxResources.get("ok"),mxUtils.bind(this,function(){H||b.hideDialog(null,null,this.container);if(null!=f){var m=f();if("string"===typeof m){b.showError(mxResources.get("error"),m);return}}H&&b.hideDialog(null,null,this.container)}));k.appendChild(l);l.className="geBtn gePrimaryBtn";b.editor.cancelFirst||k.appendChild(e);
+if(null!=B)for(t=0;t<B.length;t++)(function(m,u,x){m=mxUtils.button(m,function(A){u(A)});null!=x&&m.setAttribute("title",x);m.className="geBtn";k.appendChild(m)})(B[t][0],B[t][1],B[t][2]);g.appendChild(k);this.cancelBtn=e;this.okButton=l;this.container=g},BtnDialog=function(b,e,f,c){var l=document.createElement("div");l.style.textAlign="center";var p=document.createElement("p");p.style.fontSize="16pt";p.style.padding="0px";p.style.margin="0px";p.style.color="gray";mxUtils.write(p,mxResources.get("done"));
+var v="Unknown",t=document.createElement("img");t.setAttribute("border","0");t.setAttribute("align","absmiddle");t.style.marginRight="10px";e==b.drive?(v=mxResources.get("googleDrive"),t.src=IMAGE_PATH+"/google-drive-logo-white.svg"):e==b.dropbox?(v=mxResources.get("dropbox"),t.src=IMAGE_PATH+"/dropbox-logo-white.svg"):e==b.oneDrive?(v=mxResources.get("oneDrive"),t.src=IMAGE_PATH+"/onedrive-logo-white.svg"):e==b.gitHub?(v=mxResources.get("github"),t.src=IMAGE_PATH+"/github-logo-white.svg"):e==b.gitLab?
+(v=mxResources.get("gitlab"),t.src=IMAGE_PATH+"/gitlab-logo.svg"):e==b.trello&&(v=mxResources.get("trello"),t.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizedIn",[v],"You are now authorized in {1}"));f=mxUtils.button(f,c);f.insertBefore(t,f.firstChild);f.style.marginTop="6px";f.className="geBigButton";f.style.fontSize="18px";f.style.padding="14px";l.appendChild(p);l.appendChild(b);l.appendChild(f);this.container=l},FontDialog=function(b,
+e,f,c,l){function p(F){this.style.border="";13==F.keyCode&&I.click()}var v=document.createElement("table"),t=document.createElement("tbody");v.style.marginTop="8px";var E=document.createElement("tr");var H=document.createElement("td");H.colSpan=2;H.style.whiteSpace="nowrap";H.style.fontSize="10pt";H.style.fontWeight="bold";var B=document.createElement("input");B.style.cssText="margin-right:8px;margin-bottom:8px;";B.setAttribute("value","sysfonts");B.setAttribute("type","radio");B.setAttribute("name",
+"current-fontdialog");B.setAttribute("id","fontdialog-sysfonts");H.appendChild(B);var d=document.createElement("label");d.setAttribute("for","fontdialog-sysfonts");mxUtils.write(d,mxResources.get("sysFonts",null,"System Fonts"));H.appendChild(d);E.appendChild(H);t.appendChild(E);E=document.createElement("tr");H=document.createElement("td");H.style.whiteSpace="nowrap";H.style.fontSize="10pt";H.style.width="120px";H.style.paddingLeft="15px";mxUtils.write(H,mxResources.get("fontname",null,"Font Name")+
+":");E.appendChild(H);var g=document.createElement("input");"s"==c&&g.setAttribute("value",e);g.style.marginLeft="4px";g.style.width="250px";g.className="dlg_fontName_s";H=document.createElement("td");H.appendChild(g);E.appendChild(H);t.appendChild(E);E=document.createElement("tr");H=document.createElement("td");H.colSpan=2;H.style.whiteSpace="nowrap";H.style.fontSize="10pt";H.style.fontWeight="bold";var k=document.createElement("input");k.style.cssText="margin-right:8px;margin-bottom:8px;";k.setAttribute("value",
+"googlefonts");k.setAttribute("type","radio");k.setAttribute("name","current-fontdialog");k.setAttribute("id","fontdialog-googlefonts");H.appendChild(k);d=document.createElement("label");d.setAttribute("for","fontdialog-googlefonts");mxUtils.write(d,mxResources.get("googleFonts",null,"Google Fonts"));H.appendChild(d);if(!b.isOffline()||EditorUi.isElectronApp)d=b.createHelpIcon("https://fonts.google.com/"),H.appendChild(d);E.appendChild(H);"0"!=urlParams.isGoogleFontsEnabled&&t.appendChild(E);E=document.createElement("tr");
+H=document.createElement("td");H.style.whiteSpace="nowrap";H.style.fontSize="10pt";H.style.width="120px";H.style.paddingLeft="15px";mxUtils.write(H,mxResources.get("fontname",null,"Font Name")+":");E.appendChild(H);var m=document.createElement("input");"g"==c&&m.setAttribute("value",e);m.style.marginLeft="4px";m.style.width="250px";m.className="dlg_fontName_g";H=document.createElement("td");H.appendChild(m);E.appendChild(H);"0"!=urlParams.isGoogleFontsEnabled&&t.appendChild(E);E=document.createElement("tr");
+H=document.createElement("td");H.colSpan=2;H.style.whiteSpace="nowrap";H.style.fontSize="10pt";H.style.fontWeight="bold";var u=document.createElement("input");u.style.cssText="margin-right:8px;margin-bottom:8px;";u.setAttribute("value","webfonts");u.setAttribute("type","radio");u.setAttribute("name","current-fontdialog");u.setAttribute("id","fontdialog-webfonts");H.appendChild(u);d=document.createElement("label");d.setAttribute("for","fontdialog-webfonts");mxUtils.write(d,mxResources.get("webfonts",
+null,"Web Fonts"));H.appendChild(d);E.appendChild(H);Editor.enableWebFonts&&t.appendChild(E);E=document.createElement("tr");H=document.createElement("td");H.style.whiteSpace="nowrap";H.style.fontSize="10pt";H.style.width="120px";H.style.paddingLeft="15px";mxUtils.write(H,mxResources.get("fontname",null,"Font Name")+":");E.appendChild(H);var x=document.createElement("input");"w"==c&&(Editor.enableWebFonts?x.setAttribute("value",e):g.setAttribute("value",e));x.style.marginLeft="4px";x.style.width="250px";
+x.className="dlg_fontName_w";H=document.createElement("td");H.appendChild(x);E.appendChild(H);Editor.enableWebFonts&&t.appendChild(E);E=document.createElement("tr");H=document.createElement("td");H.style.whiteSpace="nowrap";H.style.fontSize="10pt";H.style.width="120px";H.style.paddingLeft="15px";mxUtils.write(H,mxResources.get("fontUrl",null,"Font URL")+":");E.appendChild(H);var A=document.createElement("input");A.setAttribute("value",f||"");A.style.marginLeft="4px";A.style.width="250px";A.className=
+"dlg_fontUrl";H=document.createElement("td");H.appendChild(A);E.appendChild(H);Editor.enableWebFonts&&t.appendChild(E);this.init=function(){var F=g;"g"==c?F=m:"w"==c&&Editor.enableWebFonts&&(F=x);F.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?F.select():document.execCommand("selectAll",!1,null)};E=document.createElement("tr");H=document.createElement("td");H.colSpan=2;H.style.paddingTop="20px";H.style.whiteSpace="nowrap";H.setAttribute("align","right");b.isOffline()||H.appendChild(b.createHelpIcon("https://www.drawio.com/blog/external-fonts"));
+e=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();l()});e.className="geBtn";b.editor.cancelFirst&&H.appendChild(e);var I=mxUtils.button(mxResources.get("apply"),function(){if(B.checked){var F=g.value;var C="s"}else if(k.checked){F=m.value;var P=Editor.GOOGLE_FONTS+encodeURIComponent(F).replace(/%20/g,"+");C="g"}else u.checked&&(F=x.value,P=A.value,C="w");var R=F;var U=P,O=C,V=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/,q=v.querySelector(".dlg_fontName_"+
+O);null==q||null!=R&&0!=R.length?(q=v.querySelector(".dlg_fontUrl"),null==q||"w"!=O||V.test(U)?R=!0:(q.style.border="1px solid red",R=!1)):(q.style.border="1px solid red",R=!1);R&&(l(F,P,C),b.hideDialog())});I.className="geBtn gePrimaryBtn";mxEvent.addListener(g,"keypress",p);mxEvent.addListener(m,"keypress",p);mxEvent.addListener(x,"keypress",p);mxEvent.addListener(A,"keypress",p);mxEvent.addListener(g,"focus",function(){B.setAttribute("checked","checked");B.checked=!0});mxEvent.addListener(m,"focus",
+function(){k.setAttribute("checked","checked");k.checked=!0});mxEvent.addListener(x,"focus",function(){u.setAttribute("checked","checked");u.checked=!0});mxEvent.addListener(A,"focus",function(){u.setAttribute("checked","checked");u.checked=!0});H.appendChild(I);b.editor.cancelFirst||H.appendChild(e);E.appendChild(H);t.appendChild(E);v.appendChild(t);this.container=v};
function AspectDialog(b,e,f,c,l){this.aspect={pageId:e||(b.pages?b.pages[0].getId():null),layerIds:f||[]};e=document.createElement("div");var p=document.createElement("h5");p.style.margin="0 0 10px";mxUtils.write(p,mxResources.get("pages"));e.appendChild(p);f=document.createElement("div");f.className="geAspectDlgList";e.appendChild(f);p=document.createElement("h5");p.style.margin="0 0 10px";mxUtils.write(p,mxResources.get("layers"));e.appendChild(p);p=document.createElement("div");p.className="geAspectDlgList";
-e.appendChild(p);this.pagesContainer=f;this.layersContainer=p;this.ui=b;f=document.createElement("div");f.style.marginTop="16px";f.style.textAlign="center";p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=l&&l()});p.className="geBtn";b.editor.cancelFirst&&f.appendChild(p);var q=mxUtils.button(mxResources.get("ok"),mxUtils.bind(this,function(){b.hideDialog();c({pageId:this.selectedPage,layerIds:Object.keys(this.selectedLayers)})}));f.appendChild(q);q.className="geBtn gePrimaryBtn";
-b.editor.cancelFirst||f.appendChild(p);q.setAttribute("disabled","disabled");this.okBtn=q;e.appendChild(f);this.container=e}AspectDialog.prototype.init=function(){var b=this.ui.getFileData(!0);if(this.ui.pages)for(b=0;b<this.ui.pages.length;b++){var e=this.ui.updatePageRoot(this.ui.pages[b]);this.createPageItem(e.getId(),e.getName(),e.node)}else this.createPageItem("1","Page-1",mxUtils.parseXml(b).documentElement)};
+e.appendChild(p);this.pagesContainer=f;this.layersContainer=p;this.ui=b;f=document.createElement("div");f.style.marginTop="16px";f.style.textAlign="center";p=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=l&&l()});p.className="geBtn";b.editor.cancelFirst&&f.appendChild(p);var v=mxUtils.button(mxResources.get("ok"),mxUtils.bind(this,function(){b.hideDialog();c({pageId:this.selectedPage,layerIds:Object.keys(this.selectedLayers)})}));f.appendChild(v);v.className="geBtn gePrimaryBtn";
+b.editor.cancelFirst||f.appendChild(p);v.setAttribute("disabled","disabled");this.okBtn=v;e.appendChild(f);this.container=e}AspectDialog.prototype.init=function(){var b=this.ui.getFileData(!0);if(this.ui.pages)for(b=0;b<this.ui.pages.length;b++){var e=this.ui.updatePageRoot(this.ui.pages[b]);this.createPageItem(e.getId(),e.getName(),e.node)}else this.createPageItem("1","Page-1",mxUtils.parseXml(b).documentElement)};
AspectDialog.prototype.createViewer=function(b,e,f,c){mxEvent.disableContextMenu(b);b.style.userSelect="none";var l=new Graph(b);l.setTooltips(!1);l.setEnabled(!1);l.setPanning(!1);l.minFitScale=null;l.maxFitScale=null;l.centerZoom=!0;e="mxGraphModel"==e.nodeName?e:Editor.parseDiagramNode(e);if(null!=e){var p=e.getAttribute("background");if(null==p||""==p||p==mxConstants.NONE)p=null!=c?c:"#ffffff";b.style.backgroundColor=p;c=new mxCodec(e.ownerDocument);b=l.getModel();c.decode(e,b);e=b.getChildCount(b.root);
-c=null==f;for(p=0;p<e;p++){var q=b.getChildAt(b.root,p);b.setVisible(q,c||f==q.id)}l.maxFitScale=1;l.fit(0);l.center()}return l};
+c=null==f;for(p=0;p<e;p++){var v=b.getChildAt(b.root,p);b.setVisible(v,c||f==v.id)}l.maxFitScale=1;l.fit(0);l.center()}return l};
AspectDialog.prototype.createPageItem=function(b,e,f){var c=document.createElement("div");c.className="geAspectDlgListItem";c.setAttribute("data-page-id",b);c.innerHTML='<div style="max-width: 100%; max-height: 100%;"></div><div class="geAspectDlgListItemText">'+mxUtils.htmlEntities(e)+"</div>";this.pagesContainer.appendChild(c);var l=this.createViewer(c.childNodes[0],f);e=mxUtils.bind(this,function(){null!=this.selectedItem&&(this.selectedItem.className="geAspectDlgListItem");this.selectedItem=c;
-this.selectedPage=b;c.className+=" geAspectDlgListItemSelected";this.layersContainer.innerText="";this.selectedLayers={};this.okBtn.setAttribute("disabled","disabled");var p=l.model;p=p.getChildCells(p.getRoot());for(var q=0;q<p.length;q++)this.createLayerItem(p[q],b,l,f)});mxEvent.addListener(c,"click",e);this.aspect.pageId==b&&e()};
+this.selectedPage=b;c.className+=" geAspectDlgListItemSelected";this.layersContainer.innerText="";this.selectedLayers={};this.okBtn.setAttribute("disabled","disabled");var p=l.model;p=p.getChildCells(p.getRoot());for(var v=0;v<p.length;v++)this.createLayerItem(p[v],b,l,f)});mxEvent.addListener(c,"click",e);this.aspect.pageId==b&&e()};
AspectDialog.prototype.createLayerItem=function(b,e,f,c){e=f.convertValueToString(b)||mxResources.get("background")||"Background";var l=document.createElement("div");l.setAttribute("data-layer-id",b.id);l.className="geAspectDlgListItem";l.innerHTML='<div style="max-width: 100%; max-height: 100%;"></div><div class="geAspectDlgListItemText">'+mxUtils.htmlEntities(e)+"</div>";this.layersContainer.appendChild(l);this.createViewer(l.childNodes[0],c,b.id);c=mxUtils.bind(this,function(){0<=l.className.indexOf("geAspectDlgListItemSelected")?
(l.className="geAspectDlgListItem",delete this.selectedLayers[b.id],mxUtils.isEmptyObject(this.selectedLayers)&&this.okBtn.setAttribute("disabled","disabled")):(l.className+=" geAspectDlgListItemSelected",this.selectedLayers[b.id]=!0,this.okBtn.removeAttribute("disabled"))});mxEvent.addListener(l,"click",c);-1!=this.aspect.layerIds.indexOf(b.id)&&c()};
-var FilePropertiesDialog=function(b,e){function f(C){var Q=G;G=function(S,V){try{C(function(){Q(S,V)},V)}catch(P){V(P)}}}var c=document.createElement("table"),l=document.createElement("tbody");c.style.width="100%";c.style.marginTop="8px";c.style.tableLayout="fixed";var p=b.getCurrentFile(),q=null!=p&&null!=p.getTitle()?p.getTitle():b.defaultFilename,v=/(\.png)$/i.test(q),D=/(\.svg)$/i.test(q),G=function(C,Q){C()},B=null!=p?p.isLocked():!1;var d=document.createElement("tr");var g=document.createElement("td");
-g.style.whiteSpace="nowrap";g.style.overflow="hidden";g.style.textOverflow="ellipsis";g.style.fontSize="10pt";mxUtils.write(g,mxResources.get("locked")+":");d.appendChild(g);var k=document.createElement("input");k.setAttribute("type","checkbox");B&&(k.setAttribute("checked","checked"),k.defaultChecked=!0);g=document.createElement("td");g.style.whiteSpace="nowrap";g.appendChild(k);d.appendChild(g);l.appendChild(d);this.init=function(){k.focus()};f(function(C,Q){null!=b.fileNode&&B!=k.checked?window.setTimeout(function(){null!=
-p&&p.setLocked(k.checked);C()},0):C()});if(v||D){q=1;v=0;d=b.fileNode;null!=d&&(d.hasAttribute("scale")&&(q=parseFloat(d.getAttribute("scale"))),d.hasAttribute("border")&&(v=parseInt(d.getAttribute("border"))));d=document.createElement("tr");g=document.createElement("td");g.style.whiteSpace="nowrap";g.style.fontSize="10pt";mxUtils.write(g,mxResources.get("zoom")+":");d.appendChild(g);var m=document.createElement("input");m.setAttribute("value",100*q+"%");m.style.marginLeft="4px";m.style.width="100%";
-g=document.createElement("td");g.style.whiteSpace="nowrap";g.appendChild(m);d.appendChild(g);l.appendChild(d);d=document.createElement("tr");g=document.createElement("td");g.style.whiteSpace="nowrap";g.style.fontSize="10pt";mxUtils.write(g,mxResources.get("borderWidth")+":");d.appendChild(g);var t=document.createElement("input");t.setAttribute("value",v);t.style.marginLeft="4px";t.style.width="100%";g=document.createElement("td");g.style.whiteSpace="nowrap";g.appendChild(t);d.appendChild(g);l.appendChild(d);
-this.init=this.init||function(){m.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?m.select():document.execCommand("selectAll",!1,null)};f(function(C,Q){null!=b.fileNode&&(b.fileNode.setAttribute("scale",Math.max(0,parseInt(m.value)/100)),b.fileNode.setAttribute("border",Math.max(0,parseInt(t.value))),null!=p&&p.fileChanged());C()})}else if(!/(\.html)$/i.test(q)&&!/(\.svg)$/i.test(q)){var y=null!=p?p.isCompressed():Editor.defaultCompressed;d=document.createElement("tr");g=document.createElement("td");
-g.style.whiteSpace="nowrap";g.style.overflow="hidden";g.style.textOverflow="ellipsis";g.style.fontSize="10pt";mxUtils.write(g,mxResources.get("compressed")+":");d.appendChild(g);var z=document.createElement("input");z.setAttribute("type","checkbox");y&&(z.setAttribute("checked","checked"),z.defaultChecked=!0);g=document.createElement("td");g.style.whiteSpace="nowrap";g.appendChild(z);d.appendChild(g);l.appendChild(d);this.init=this.init||function(){z.focus()};f(function(C,Q){null!=b.fileNode&&y!=
-z.checked?window.setTimeout(function(){b.fileNode.setAttribute("compressed",z.checked?"true":"false");null!=p&&(p.compressionChanged(z.checked),p.fileChanged());C()},0):C()})}if(null!=p&&p.isRealtimeOptional()){d=document.createElement("tr");g=document.createElement("td");g.style.whiteSpace="nowrap";g.style.overflow="hidden";g.style.textOverflow="ellipsis";g.style.fontSize="10pt";mxUtils.write(g,mxResources.get("realtimeCollaboration")+":");d.appendChild(g);var I=document.createElement("input");I.setAttribute("type",
-"checkbox");var F=p.isRealtimeEnabled();if(F="disabled"!=b.drive.getCustomProperty(p.desc,"collaboration"))I.setAttribute("checked","checked"),I.defaultChecked=!0;f(function(C,Q){I.checked!=F?p.setRealtimeEnabled(I.checked,C,Q):C()});this.init=null!=this.init?this.init:function(){I.focus()};g=document.createElement("td");g.style.whiteSpace="nowrap";g.appendChild(I);g.appendChild(b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/2672"));d.appendChild(g);l.appendChild(d)}null!=p&&
-"draw.io"==b.getServiceName()&&0<p.getSize()&&"1"!=urlParams.embed&&(d=document.createElement("tr"),g=document.createElement("td"),g.style.whiteSpace="nowrap",g.style.overflow="hidden",g.style.textOverflow="ellipsis",g.style.fontSize="10pt",mxUtils.write(g,mxResources.get("size")+":"),d.appendChild(g),g=b.formatFileSize(p.getSize()),q=document.createElement("input"),q.setAttribute("title",g),q.setAttribute("value",g),q.setAttribute("disabled","disabled"),q.style.marginLeft="4px",q.style.width="100%",
-g=document.createElement("td"),g.style.whiteSpace="nowrap",g.appendChild(q),d.appendChild(g),l.appendChild(d));null!=e&&(d=document.createElement("tr"),g=document.createElement("td"),g.style.whiteSpace="nowrap",g.style.overflow="hidden",g.style.textOverflow="ellipsis",g.style.fontSize="10pt",mxUtils.write(g,mxResources.get("publicDiagramUrl")+":"),d.appendChild(g),q=document.createElement("a"),q.setAttribute("href",e),q.setAttribute("title",e),q.style.whiteSpace="nowrap",q.style.overflow="hidden",
-q.style.textOverflow="ellipsis",q.style.display="block",q.style.margin="2px 0px 2px 8px",q.style.fontSize="10pt",mxUtils.write(q,e),mxEvent.addListener(q,"click",function(C){b.openLink(e);mxEvent.consume(C)}),g=document.createElement("td"),g.appendChild(q),d.appendChild(g),l.appendChild(d));null!=p&&null!=p.fileObject&&null!=p.fileObject.path&&(d=document.createElement("tr"),g=document.createElement("td"),g.style.whiteSpace="nowrap",g.style.overflow="hidden",g.style.textOverflow="ellipsis",g.style.fontSize=
-"10pt",mxUtils.write(g,mxResources.get("pathFilename")+":"),d.appendChild(g),q=document.createElement("input"),q.setAttribute("title",p.fileObject.path),q.setAttribute("value",p.fileObject.path),q.setAttribute("disabled","disabled"),q.style.marginLeft="4px",q.style.width="100%",g=document.createElement("td"),g.appendChild(q),d.appendChild(g),l.appendChild(d));this.init=null!=this.init?this.init:function(){};q=mxUtils.button(mxResources.get("apply"),function(){b.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
-G(function(){b.spinner.stop();b.hideDialog()},function(C){b.spinner.stop();b.handleError(C,mxResources.get("error"))})});q.className="geBtn gePrimaryBtn";d=document.createElement("tr");g=document.createElement("td");g.colSpan=2;g.style.paddingTop="20px";g.style.whiteSpace="nowrap";g.setAttribute("align","right");v=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});v.className="geBtn";b.editor.cancelFirst&&g.appendChild(v);g.appendChild(q);b.editor.cancelFirst||g.appendChild(v);d.appendChild(g);
-l.appendChild(d);c.appendChild(l);this.container=c},ConnectionPointsDialog=function(b,e){function f(){null!=l&&l.destroy()}var c=document.createElement("div");c.style.userSelect="none";var l=null;this.init=function(){function p(H,K,N){H=new mxCell("",new mxGeometry(H,K,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0;connectable=0;editable=0;");H.vertex=!0;H.cp=!0;H.constObj=N;return d.addCell(H)}function q(H){H=d.getSelectionCells();d.deleteCells(H)}
-function v(){var H=parseInt(P.value)||0;H=0>H?0:100<H?100:H;P.value=H;var K=parseInt(x.value)||0;K=0>K?0:100<K?100:K;x.value=K;var N=parseInt(u.value)||0,M=parseInt(J.value)||0;N=new mxConnectionConstraint(new mxPoint(H/100,K/100),!1,null,N,M);H=d.getConnectionPoint(m,N);K=d.getSelectionCell();if(null!=K){K.constObj=N;N=K.geometry.clone();M=d.view.scale;var n=d.view.translate;N.x=(H.x-3*M)/M-n.x;N.y=(H.y-3*M)/M-n.y;d.model.setGeometry(K,N)}}function D(H){if(H.constObj)return{x:H.constObj.point.x,
-y:H.constObj.point.y,dx:H.constObj.dx,dy:H.constObj.dy};var K=0,N=0,M=g.geometry,n=mxUtils.format((H.geometry.x+3-M.x)/M.width);H=mxUtils.format((H.geometry.y+3-M.y)/M.height);0>n?(K=n*M.width,n=0):1<n&&(K=(n-1)*M.width,n=1);0>H?(N=H*M.height,H=0):1<H&&(N=(H-1)*M.height,H=1);return{x:n,y:H,dx:parseInt(K),dy:parseInt(N)}}function G(H){if(1==d.getSelectionCount()){var K=d.getSelectionCell();H&&(K.constObj=null);H=D(K);P.value=100*H.x;x.value=100*H.y;u.value=H.dx;J.value=H.dy;V.style.visibility=""}else V.style.visibility=
+var FilePropertiesDialog=function(b,e){function f(C){var P=H;H=function(R,U){try{C(function(){P(R,U)},U)}catch(O){U(O)}}}var c=document.createElement("table"),l=document.createElement("tbody");c.style.width="100%";c.style.marginTop="8px";c.style.tableLayout="fixed";var p=b.getCurrentFile(),v=null!=p&&null!=p.getTitle()?p.getTitle():b.defaultFilename,t=/(\.png)$/i.test(v),E=/(\.svg)$/i.test(v),H=function(C,P){C()},B=null!=p?p.isLocked():!1;var d=document.createElement("tr");var g=document.createElement("td");
+g.style.whiteSpace="nowrap";g.style.overflow="hidden";g.style.textOverflow="ellipsis";g.style.fontSize="10pt";mxUtils.write(g,mxResources.get("locked")+":");d.appendChild(g);var k=document.createElement("input");k.setAttribute("type","checkbox");B&&(k.setAttribute("checked","checked"),k.defaultChecked=!0);g=document.createElement("td");g.style.whiteSpace="nowrap";g.appendChild(k);d.appendChild(g);l.appendChild(d);this.init=function(){k.focus()};f(function(C,P){null!=b.fileNode&&B!=k.checked?window.setTimeout(function(){null!=
+p&&p.setLocked(k.checked);C()},0):C()});if(t||E){v=1;t=0;d=b.fileNode;null!=d&&(d.hasAttribute("scale")&&(v=parseFloat(d.getAttribute("scale"))),d.hasAttribute("border")&&(t=parseInt(d.getAttribute("border"))));d=document.createElement("tr");g=document.createElement("td");g.style.whiteSpace="nowrap";g.style.fontSize="10pt";mxUtils.write(g,mxResources.get("zoom")+":");d.appendChild(g);var m=document.createElement("input");m.setAttribute("value",100*v+"%");m.style.marginLeft="4px";m.style.width="100%";
+g=document.createElement("td");g.style.whiteSpace="nowrap";g.appendChild(m);d.appendChild(g);l.appendChild(d);d=document.createElement("tr");g=document.createElement("td");g.style.whiteSpace="nowrap";g.style.fontSize="10pt";mxUtils.write(g,mxResources.get("borderWidth")+":");d.appendChild(g);var u=document.createElement("input");u.setAttribute("value",t);u.style.marginLeft="4px";u.style.width="100%";g=document.createElement("td");g.style.whiteSpace="nowrap";g.appendChild(u);d.appendChild(g);l.appendChild(d);
+this.init=this.init||function(){m.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?m.select():document.execCommand("selectAll",!1,null)};f(function(C,P){null!=b.fileNode&&(b.fileNode.setAttribute("scale",Math.max(0,parseInt(m.value)/100)),b.fileNode.setAttribute("border",Math.max(0,parseInt(u.value))),null!=p&&p.fileChanged());C()})}else if(!/(\.html)$/i.test(v)&&!/(\.svg)$/i.test(v)){var x=null!=p?p.isCompressed():Editor.defaultCompressed;d=document.createElement("tr");g=document.createElement("td");
+g.style.whiteSpace="nowrap";g.style.overflow="hidden";g.style.textOverflow="ellipsis";g.style.fontSize="10pt";mxUtils.write(g,mxResources.get("compressed")+":");d.appendChild(g);var A=document.createElement("input");A.setAttribute("type","checkbox");x&&(A.setAttribute("checked","checked"),A.defaultChecked=!0);g=document.createElement("td");g.style.whiteSpace="nowrap";g.appendChild(A);d.appendChild(g);l.appendChild(d);this.init=this.init||function(){A.focus()};f(function(C,P){null!=b.fileNode&&x!=
+A.checked?window.setTimeout(function(){b.fileNode.setAttribute("compressed",A.checked?"true":"false");null!=p&&(p.compressionChanged(A.checked),p.fileChanged());C()},0):C()})}if(null!=p&&p.isRealtimeOptional()){d=document.createElement("tr");g=document.createElement("td");g.style.whiteSpace="nowrap";g.style.overflow="hidden";g.style.textOverflow="ellipsis";g.style.fontSize="10pt";mxUtils.write(g,mxResources.get("realtimeCollaboration")+":");d.appendChild(g);var I=document.createElement("input");I.setAttribute("type",
+"checkbox");var F=p.isRealtimeEnabled();if(F="disabled"!=b.drive.getCustomProperty(p.desc,"collaboration"))I.setAttribute("checked","checked"),I.defaultChecked=!0;f(function(C,P){I.checked!=F?p.setRealtimeEnabled(I.checked,C,P):C()});this.init=null!=this.init?this.init:function(){I.focus()};g=document.createElement("td");g.style.whiteSpace="nowrap";g.appendChild(I);g.appendChild(b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/2672"));d.appendChild(g);l.appendChild(d)}null!=p&&
+"draw.io"==b.getServiceName()&&0<p.getSize()&&"1"!=urlParams.embed&&(d=document.createElement("tr"),g=document.createElement("td"),g.style.whiteSpace="nowrap",g.style.overflow="hidden",g.style.textOverflow="ellipsis",g.style.fontSize="10pt",mxUtils.write(g,mxResources.get("size")+":"),d.appendChild(g),g=b.formatFileSize(p.getSize()),v=document.createElement("input"),v.setAttribute("title",g),v.setAttribute("value",g),v.setAttribute("disabled","disabled"),v.style.marginLeft="4px",v.style.width="100%",
+g=document.createElement("td"),g.style.whiteSpace="nowrap",g.appendChild(v),d.appendChild(g),l.appendChild(d));null!=e&&(d=document.createElement("tr"),g=document.createElement("td"),g.style.whiteSpace="nowrap",g.style.overflow="hidden",g.style.textOverflow="ellipsis",g.style.fontSize="10pt",mxUtils.write(g,mxResources.get("publicDiagramUrl")+":"),d.appendChild(g),v=document.createElement("a"),v.setAttribute("href",e),v.setAttribute("title",e),v.style.whiteSpace="nowrap",v.style.overflow="hidden",
+v.style.textOverflow="ellipsis",v.style.display="block",v.style.margin="2px 0px 2px 8px",v.style.fontSize="10pt",mxUtils.write(v,e),mxEvent.addListener(v,"click",function(C){b.openLink(e);mxEvent.consume(C)}),g=document.createElement("td"),g.appendChild(v),d.appendChild(g),l.appendChild(d));null!=p&&null!=p.fileObject&&null!=p.fileObject.path&&(d=document.createElement("tr"),g=document.createElement("td"),g.style.whiteSpace="nowrap",g.style.overflow="hidden",g.style.textOverflow="ellipsis",g.style.fontSize=
+"10pt",mxUtils.write(g,mxResources.get("pathFilename")+":"),d.appendChild(g),v=document.createElement("input"),v.setAttribute("title",p.fileObject.path),v.setAttribute("value",p.fileObject.path),v.setAttribute("disabled","disabled"),v.style.marginLeft="4px",v.style.width="100%",g=document.createElement("td"),g.appendChild(v),d.appendChild(g),l.appendChild(d));this.init=null!=this.init?this.init:function(){};v=mxUtils.button(mxResources.get("apply"),function(){b.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
+H(function(){b.spinner.stop();b.hideDialog()},function(C){b.spinner.stop();b.handleError(C,mxResources.get("error"))})});v.className="geBtn gePrimaryBtn";d=document.createElement("tr");g=document.createElement("td");g.colSpan=2;g.style.paddingTop="20px";g.style.whiteSpace="nowrap";g.setAttribute("align","right");t=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});t.className="geBtn";b.editor.cancelFirst&&g.appendChild(t);g.appendChild(v);b.editor.cancelFirst||g.appendChild(t);d.appendChild(g);
+l.appendChild(d);c.appendChild(l);this.container=c},ConnectionPointsDialog=function(b,e){function f(){null!=l&&l.destroy()}var c=document.createElement("div");c.style.userSelect="none";var l=null;this.init=function(){function p(D,J,L){D=new mxCell("",new mxGeometry(D,J,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0;connectable=0;editable=0;");D.vertex=!0;D.cp=!0;D.constObj=L;return d.addCell(D)}function v(D){D=d.getSelectionCells();d.deleteCells(D)}
+function t(){var D=parseInt(O.value)||0;D=0>D?0:100<D?100:D;O.value=D;var J=parseInt(q.value)||0;J=0>J?0:100<J?100:J;q.value=J;var L=parseInt(V.value)||0,K=parseInt(y.value)||0;L=new mxConnectionConstraint(new mxPoint(D/100,J/100),!1,null,L,K);D=d.getConnectionPoint(m,L);J=d.getSelectionCell();if(null!=J){J.constObj=L;L=J.geometry.clone();K=d.view.scale;var n=d.view.translate;L.x=(D.x-3*K)/K-n.x;L.y=(D.y-3*K)/K-n.y;d.model.setGeometry(J,L)}}function E(D){if(D.constObj)return{x:D.constObj.point.x,
+y:D.constObj.point.y,dx:D.constObj.dx,dy:D.constObj.dy};var J=0,L=0,K=g.geometry,n=mxUtils.format((D.geometry.x+3-K.x)/K.width);D=mxUtils.format((D.geometry.y+3-K.y)/K.height);0>n?(J=n*K.width,n=0):1<n&&(J=(n-1)*K.width,n=1);0>D?(L=D*K.height,D=0):1<D&&(L=(D-1)*K.height,D=1);return{x:n,y:D,dx:parseInt(J),dy:parseInt(L)}}function H(D){if(1==d.getSelectionCount()){var J=d.getSelectionCell();D&&(J.constObj=null);D=E(J);O.value=100*D.x;q.value=100*D.y;V.value=D.dx;y.value=D.dy;U.style.visibility=""}else U.style.visibility=
"hidden"}var B=document.createElement("div");B.style.width="350px";B.style.height="350px";B.style.overflow="hidden";B.style.border="1px solid lightGray";B.style.boxSizing="border-box";mxEvent.disableContextMenu(B);c.appendChild(B);var d=new Graph(B);d.transparentBackground=!1;d.autoExtend=!1;d.autoScroll=!1;d.setGridEnabled(!1);d.setEnabled(!0);d.setPanning(!0);d.setConnectable(!1);d.setTooltips(!1);d.minFitScale=null;d.maxFitScale=null;d.centerZoom=!0;d.maxFitScale=2;B=e.geometry;var g=new mxCell(e.value,
-new mxGeometry(0,0,B.width,B.height),e.style+";rotatable=0;resizable=0;connectable=0;editable=0;movable=0;fillColor=none;");g.vertex=!0;d.addCell(g);d.dblClick=function(H,K){if(null!=K&&K!=g)d.setSelectionCell(K);else{K=mxUtils.convertPoint(d.container,mxEvent.getClientX(H),mxEvent.getClientY(H));mxEvent.consume(H);H=d.view.scale;var N=d.view.translate;d.setSelectionCell(p((K.x-3*H)/H-N.x,(K.y-3*H)/H-N.y))}};l=new mxKeyHandler(d);l.bindKey(46,q);l.bindKey(8,q);d.getRubberband().isForceRubberbandEvent=
-function(H){return 0==H.evt.button&&(null==H.getCell()||H.getCell()==g)};d.panningHandler.isForcePanningEvent=function(H){return 2==H.evt.button};var k=d.isCellSelectable;d.isCellSelectable=function(H){return H==g?!1:k.apply(this,arguments)};d.getLinkForCell=function(){return null};var m=d.view.getState(g);B=d.getAllConnectionConstraints(m);for(var t=0;null!=B&&t<B.length;t++){var y=d.getConnectionPoint(m,B[t]);p(y.x-3,y.y-3,B[t])}d.fit(8);d.center();t=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),
-function(){d.zoomIn()});y=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){d.zoomOut()});var z=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==d.view.scale?(d.maxFitScale=8,d.fit(8)):d.zoomActual();d.center()}),I=function(){b.prompt(mxResources.get("gridSize"),d.gridSize,function(H){!isNaN(H)&&0<H&&(d.setGridSize(H),d.setGridEnabled(!0),d.refresh())})},F=b.createToolbarButton(Editor.thinGridImage,mxResources.get("grid"),function(H){mxEvent.isShiftDown(H)?
-I():(d.setGridEnabled(!d.isGridEnabled()),d.refresh())});mxEvent.addListener(F,"dblclick",I);var C=b.createToolbarButton(Editor.trashImage,mxResources.get("delete"),q);mxUtils.setOpacity(C,10);B=document.createElement("div");B.style.display="flex";B.style.alignItems="center";B.style.paddingTop="6px";B.appendChild(t);B.appendChild(y);B.appendChild(z);B.appendChild(F);B.appendChild(C);c.appendChild(B);var Q=document.createElement("input");Q.setAttribute("type","number");Q.setAttribute("min","1");Q.setAttribute("value",
-"1");Q.style.width="45px";Q.style.position="relative";Q.style.margin="0 4px 0 4px";var S=document.createElement("select");S.style.position="relative";y=["left","right","top","bottom"];for(t=0;t<y.length;t++)z=y[t],F=document.createElement("option"),mxUtils.write(F,mxResources.get(z)),F.value=z,S.appendChild(F);t=mxUtils.button(mxResources.get("add"),function(){var H=parseInt(Q.value);H=1>H?1:100<H?100:H;Q.value=H;for(var K=S.value,N=g.geometry,M=[],n=0;n<H;n++){switch(K){case "left":var A=N.x;var E=
-N.y+(n+1)*N.height/(H+1);break;case "right":A=N.x+N.width;E=N.y+(n+1)*N.height/(H+1);break;case "top":A=N.x+(n+1)*N.width/(H+1);E=N.y;break;case "bottom":A=N.x+(n+1)*N.width/(H+1),E=N.y+N.height}M.push(p(A-3,E-3))}d.setSelectionCells(M)});t.style.marginLeft="auto";B.appendChild(t);B.appendChild(Q);B.appendChild(S);var V=document.createElement("div");V.style.margin="4px 0px 8px 0px";V.style.whiteSpace="nowrap";V.style.height="24px";B=document.createElement("span");mxUtils.write(B,mxResources.get("dx"));
-V.appendChild(B);var P=document.createElement("input");P.setAttribute("type","number");P.setAttribute("min","0");P.setAttribute("max","100");P.style.width="45px";P.style.margin="0 4px 0 4px";V.appendChild(P);mxUtils.write(V,"%");var u=document.createElement("input");u.setAttribute("type","number");u.style.width="45px";u.style.margin="0 4px 0 4px";V.appendChild(u);mxUtils.write(V,"pt");B=document.createElement("span");mxUtils.write(B,mxResources.get("dy"));B.style.marginLeft="12px";V.appendChild(B);
-var x=document.createElement("input");x.setAttribute("type","number");x.setAttribute("min","0");x.setAttribute("max","100");x.style.width="45px";x.style.margin="0 4px 0 4px";V.appendChild(x);mxUtils.write(V,"%");var J=document.createElement("input");J.setAttribute("type","number");J.style.width="45px";J.style.margin="0 4px 0 4px";V.appendChild(J);mxUtils.write(V,"pt");c.appendChild(V);G();d.getSelectionModel().addListener(mxEvent.CHANGE,function(){0<d.getSelectionCount()?mxUtils.setOpacity(C,60):
-mxUtils.setOpacity(C,10);G()});d.addListener(mxEvent.CELLS_MOVED,G);mxEvent.addListener(P,"change",v);mxEvent.addListener(x,"change",v);mxEvent.addListener(u,"change",v);mxEvent.addListener(J,"change",v);B=mxUtils.button(mxResources.get("cancel"),function(){f();b.hideDialog()});B.className="geBtn";t=mxUtils.button(mxResources.get("apply"),function(){var H=d.model.cells,K=[],N=[],M;for(M in H){var n=H[M];n.cp&&N.push(D(n))}N.sort(function(A,E){return A.x!=E.x?A.x-E.x:A.y!=E.y?A.y-E.y:A.dx!=E.dx?A.dx-
-E.dx:A.dy-E.dy});for(H=0;H<N.length;H++)0<H&&N[H].x==N[H-1].x&&N[H].y==N[H-1].y&&N[H].dx==N[H-1].dx&&N[H].dy==N[H-1].dy||K.push("["+N[H].x+","+N[H].y+",0,"+N[H].dx+","+N[H].dy+"]");b.editor.graph.setCellStyles("points","["+K.join(",")+"]",[e]);f();b.hideDialog()});t.className="geBtn gePrimaryBtn";y=mxUtils.button(mxResources.get("reset"),function(){b.editor.graph.setCellStyles("points",null,[e]);f();b.hideDialog()});y.className="geBtn";z=document.createElement("div");z.style.marginTop="10px";z.style.textAlign=
-"right";b.isOffline()||z.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/shape-connection-points-customise"));b.editor.cancelFirst&&z.appendChild(B);z.appendChild(y);z.appendChild(t);b.editor.cancelFirst||z.appendChild(B);c.appendChild(z)};this.destroy=f;this.container=c};(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=
+new mxGeometry(0,0,B.width,B.height),e.style+";rotatable=0;resizable=0;connectable=0;editable=0;movable=0;fillColor=none;");g.vertex=!0;d.addCell(g);d.dblClick=function(D,J){if(null!=J&&J!=g)d.setSelectionCell(J);else{J=mxUtils.convertPoint(d.container,mxEvent.getClientX(D),mxEvent.getClientY(D));mxEvent.consume(D);D=d.view.scale;var L=d.view.translate;d.setSelectionCell(p((J.x-3*D)/D-L.x,(J.y-3*D)/D-L.y))}};l=new mxKeyHandler(d);l.bindKey(46,v);l.bindKey(8,v);d.getRubberband().isForceRubberbandEvent=
+function(D){return 0==D.evt.button&&(null==D.getCell()||D.getCell()==g)};d.panningHandler.isForcePanningEvent=function(D){return 2==D.evt.button};var k=d.isCellSelectable;d.isCellSelectable=function(D){return D==g?!1:k.apply(this,arguments)};d.getLinkForCell=function(){return null};var m=d.view.getState(g);B=d.getAllConnectionConstraints(m);for(var u=0;null!=B&&u<B.length;u++){var x=d.getConnectionPoint(m,B[u]);p(x.x-3,x.y-3,B[u])}d.fit(8);d.center();u=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),
+function(){d.zoomIn()});x=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){d.zoomOut()});var A=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==d.view.scale?(d.maxFitScale=8,d.fit(8)):d.zoomActual();d.center()}),I=function(){b.prompt(mxResources.get("gridSize"),d.gridSize,function(D){!isNaN(D)&&0<D&&(d.setGridSize(D),d.setGridEnabled(!0),d.refresh())})},F=b.createToolbarButton(Editor.thinGridImage,mxResources.get("grid"),function(D){mxEvent.isShiftDown(D)?
+I():(d.setGridEnabled(!d.isGridEnabled()),d.refresh())});mxEvent.addListener(F,"dblclick",I);var C=b.createToolbarButton(Editor.trashImage,mxResources.get("delete"),v);mxUtils.setOpacity(C,10);B=document.createElement("div");B.style.display="flex";B.style.alignItems="center";B.style.paddingTop="6px";B.appendChild(u);B.appendChild(x);B.appendChild(A);B.appendChild(F);B.appendChild(C);c.appendChild(B);var P=document.createElement("input");P.setAttribute("type","number");P.setAttribute("min","1");P.setAttribute("value",
+"1");P.style.width="45px";P.style.position="relative";P.style.margin="0 4px 0 4px";var R=document.createElement("select");R.style.position="relative";x=["left","right","top","bottom"];for(u=0;u<x.length;u++)A=x[u],F=document.createElement("option"),mxUtils.write(F,mxResources.get(A)),F.value=A,R.appendChild(F);u=mxUtils.button(mxResources.get("add"),function(){var D=parseInt(P.value);D=1>D?1:100<D?100:D;P.value=D;for(var J=R.value,L=g.geometry,K=[],n=0;n<D;n++){switch(J){case "left":var z=L.x;var G=
+L.y+(n+1)*L.height/(D+1);break;case "right":z=L.x+L.width;G=L.y+(n+1)*L.height/(D+1);break;case "top":z=L.x+(n+1)*L.width/(D+1);G=L.y;break;case "bottom":z=L.x+(n+1)*L.width/(D+1),G=L.y+L.height}K.push(p(z-3,G-3))}d.setSelectionCells(K)});u.style.marginLeft="auto";B.appendChild(u);B.appendChild(P);B.appendChild(R);var U=document.createElement("div");U.style.margin="4px 0px 8px 0px";U.style.whiteSpace="nowrap";U.style.height="24px";B=document.createElement("span");mxUtils.write(B,mxResources.get("dx"));
+U.appendChild(B);var O=document.createElement("input");O.setAttribute("type","number");O.setAttribute("min","0");O.setAttribute("max","100");O.style.width="45px";O.style.margin="0 4px 0 4px";U.appendChild(O);mxUtils.write(U,"%");var V=document.createElement("input");V.setAttribute("type","number");V.style.width="45px";V.style.margin="0 4px 0 4px";U.appendChild(V);mxUtils.write(U,"pt");B=document.createElement("span");mxUtils.write(B,mxResources.get("dy"));B.style.marginLeft="12px";U.appendChild(B);
+var q=document.createElement("input");q.setAttribute("type","number");q.setAttribute("min","0");q.setAttribute("max","100");q.style.width="45px";q.style.margin="0 4px 0 4px";U.appendChild(q);mxUtils.write(U,"%");var y=document.createElement("input");y.setAttribute("type","number");y.style.width="45px";y.style.margin="0 4px 0 4px";U.appendChild(y);mxUtils.write(U,"pt");c.appendChild(U);H();d.getSelectionModel().addListener(mxEvent.CHANGE,function(){0<d.getSelectionCount()?mxUtils.setOpacity(C,60):
+mxUtils.setOpacity(C,10);H()});d.addListener(mxEvent.CELLS_MOVED,H);mxEvent.addListener(O,"change",t);mxEvent.addListener(q,"change",t);mxEvent.addListener(V,"change",t);mxEvent.addListener(y,"change",t);B=mxUtils.button(mxResources.get("cancel"),function(){f();b.hideDialog()});B.className="geBtn";u=mxUtils.button(mxResources.get("apply"),function(){var D=d.model.cells,J=[],L=[],K;for(K in D){var n=D[K];n.cp&&L.push(E(n))}L.sort(function(z,G){return z.x!=G.x?z.x-G.x:z.y!=G.y?z.y-G.y:z.dx!=G.dx?z.dx-
+G.dx:z.dy-G.dy});for(D=0;D<L.length;D++)0<D&&L[D].x==L[D-1].x&&L[D].y==L[D-1].y&&L[D].dx==L[D-1].dx&&L[D].dy==L[D-1].dy||J.push("["+L[D].x+","+L[D].y+",0,"+L[D].dx+","+L[D].dy+"]");b.editor.graph.setCellStyles("points","["+J.join(",")+"]",[e]);f();b.hideDialog()});u.className="geBtn gePrimaryBtn";x=mxUtils.button(mxResources.get("reset"),function(){b.editor.graph.setCellStyles("points",null,[e]);f();b.hideDialog()});x.className="geBtn";A=document.createElement("div");A.style.marginTop="10px";A.style.textAlign=
+"right";b.isOffline()||A.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/shape-connection-points-customise"));b.editor.cancelFirst&&A.appendChild(B);A.appendChild(x);A.appendChild(u);b.editor.cancelFirst||A.appendChild(B);c.appendChild(A)};this.destroy=f;this.container=c};(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,P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A5GJFiJSfUULAfjLjARrhCwX7wh2YCDwVbwZkUBKqFFJRN+wOcwSgR2sREcgAAAABJRU5ErkJggg==";Editor.blankImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==";
Editor.facebookImage=IMAGE_PATH+"/facebook.png";Editor.tweetImage=IMAGE_PATH+"/tweet.png";Editor.svgBrokenImage=Graph.createSvgImage(10,10,'<rect x="0" y="0" width="10" height="10" stroke="#000" fill="transparent"/><path d="m 0 0 L 10 10 L 0 10 L 10 0" stroke="#000" fill="transparent"/>');Editor.configurationKey=".configuration";Editor.settingsKey=".drawio-config";Editor.defaultCustomLibraries=[];Editor.enableCustomLibraries=!0;Editor.enableUncompressedLibraries=!1;Editor.enableCustomProperties=!0;
-Editor.enableSimpleTheme=!0;Editor.enableHashObjects=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&"1"!=urlParams.embed&&window.top==window.self;Editor.defaultIncludeDiagram=!0;Editor.enableServiceWorker="0"!=urlParams.pwa&&"serviceWorker"in navigator&&("1"==urlParams.offline||/.*\.diagrams\.net$/.test(window.location.hostname)||/.*\.draw\.io$/.test(window.location.hostname));try{Editor.enableServiceWorker&&navigator.serviceWorker}catch(n){Editor.enableServiceWorker=!1}Editor.enableWebFonts="1"!=
-urlParams["safe-style-src"]&&!window.mxIsElectron;Editor.enableShadowOption=!mxClient.IS_SF;Editor.enableExportUrl=!0;Editor.enableRealtime=!0;Editor.enableRealtimeCache=!0;Editor.p2pSyncNotify=!1;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.defaultBorder=5;Editor.addSvgMetadata=!1;Editor.enableAnimations=!0;Editor.enableChatGpt=/test\.draw\.io$/.test(window.location.hostname)||
+Editor.enableSimpleTheme=!0;Editor.enableHashObjects=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&"1"!=urlParams.embed&&window.top==window.self;Editor.defaultIncludeDiagram=!0;Editor.enableServiceWorker="0"!=urlParams.pwa&&"serviceWorker"in navigator&&("1"==urlParams.offline||"1"==urlParams.enableSW||/.*\.diagrams\.net$/.test(window.location.hostname)||/.*\.draw\.io$/.test(window.location.hostname));try{Editor.enableServiceWorker&&navigator.serviceWorker}catch(n){Editor.enableServiceWorker=!1}Editor.enableWebFonts=
+"1"!=urlParams["safe-style-src"]&&!window.mxIsElectron;Editor.enableShadowOption=!mxClient.IS_SF;Editor.enableExportUrl=!0;Editor.enableRealtime=!0;Editor.enableRealtimeCache=!0;Editor.p2pSyncNotify=!1;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.defaultBorder=5;Editor.addSvgMetadata=!1;Editor.enableAnimations=!0;Editor.enableChatGpt=/test\.draw\.io$/.test(window.location.hostname)||
/preprod\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname);Editor.gptApiKey=null!=urlParams["gpt-api-key"]?decodeURIComponent(urlParams["gpt-api-key"]):null;Editor.gptModel=null!=urlParams["gpt-model"]?decodeURIComponent(urlParams["gpt-model"]):"gpt-3.5-turbo";Editor.gptUrl=null!=urlParams["gpt-url"]?decodeURIComponent(urlParams["gpt-url"]):"https://api.openai.com/v1/chat/completions";Editor.replaceSvgDataUris=
-!0;Editor.foreignObjectImages=!0;Editor.svgFileTheme="auto";Editor.svgRasterScale=4;Editor.htmlRasterScale=4;Editor.config=null;Editor.configVersion=null;Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(n){n.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,"enumerate","0")}},{name:"comic",dispName:"Comic",type:"bool",defVal:!1,isVisible:function(n,
-A){return"1"!=mxUtils.getValue(n.style,"sketch","0")}},{name:"jiggle",dispName:"Jiggle",type:"float",min:0,defVal:1,isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,"comic","0")||"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"fillWeight",dispName:"Fill Weight",type:"int",defVal:-1,isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")&&0<n.vertices.length}},{name:"hachureGap",dispName:"Hachure Gap",type:"int",defVal:-1,
-isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")&&0<n.vertices.length}},{name:"hachureAngle",dispName:"Hachure Angle",type:"int",defVal:-41,isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")&&0<n.vertices.length}},{name:"curveFitting",dispName:"Curve Fitting",type:"float",defVal:.95,isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"simplification",
-dispName:"Simplification",type:"float",defVal:0,min:0,max:1,isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStroke",dispName:"Disable Multi Stroke",type:"bool",defVal:!1,isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStrokeFill",dispName:"Disable Multi Stroke Fill",type:"bool",defVal:!1,isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,"sketch",
-"1"==urlParams.rough?"1":"0")&&0<n.vertices.length}},{name:"dashOffset",dispName:"Dash Offset",type:"int",defVal:-1,isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")&&0<n.vertices.length}},{name:"dashGap",dispName:"Dash Gap",type:"int",defVal:-1,isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")&&0<n.vertices.length}},{name:"zigzagOffset",dispName:"ZigZag Offset",type:"int",defVal:-1,isVisible:function(n,
-A){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")&&0<n.vertices.length}},{name:"sketchStyle",dispName:"Sketch Style",type:"enum",defVal:"rough",enumList:[{val:"rough",dispName:"Rough"},{val:"comic",dispName:"Comic"}],isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:mxConstants.STYLE_SHADOWCOLOR,dispName:"Shadow Color",type:"color",getDefaultValue:function(){return mxConstants.SHADOWCOLOR},isVisible:function(n,A){return"1"==
-mxUtils.getValue(n.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(n.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OPACITY,dispName:"Shadow Opacity",type:"int",min:0,max:100,getDefaultValue:function(){return 100*mxConstants.SHADOW_OPACITY},isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(n.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_X,dispName:"Shadow Offset X",
-type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_X},isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(n.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_Y,dispName:"Shadow Offset Y",type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_Y},isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(n.style,mxConstants.STYLE_TEXT_SHADOW,
-"0")}},{name:mxConstants.STYLE_SHADOW_BLUR,dispName:"Shadow Blur",type:"int",min:0,getDefaultValue:function(){return mxConstants.SHADOW_BLUR},isVisible:function(n,A){return"1"==mxUtils.getValue(n.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(n.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:"linecap",dispName:"Line Cap",type:"enum",defVal:null,enumList:[{val:null,dispName:"Flat"},{val:"round",dispName:"Round"},{val:"square",dispName:"Square"}]},{name:"linejoin",dispName:"Line Join",
+!0;Editor.foreignObjectImages=!0;Editor.svgFileTheme="auto";Editor.svgRasterScale=4;Editor.htmlRasterScale=4;Editor.config=null;Editor.configVersion=null;Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(n){n.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,"enumerate","0")}},{name:"comic",dispName:"Comic",type:"bool",defVal:!1,isVisible:function(n,
+z){return"1"!=mxUtils.getValue(n.style,"sketch","0")}},{name:"jiggle",dispName:"Jiggle",type:"float",min:0,defVal:1,isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,"comic","0")||"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"fillWeight",dispName:"Fill Weight",type:"int",defVal:-1,isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")&&0<n.vertices.length}},{name:"hachureGap",dispName:"Hachure Gap",type:"int",defVal:-1,
+isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")&&0<n.vertices.length}},{name:"hachureAngle",dispName:"Hachure Angle",type:"int",defVal:-41,isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")&&0<n.vertices.length}},{name:"curveFitting",dispName:"Curve Fitting",type:"float",defVal:.95,isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"simplification",
+dispName:"Simplification",type:"float",defVal:0,min:0,max:1,isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStroke",dispName:"Disable Multi Stroke",type:"bool",defVal:!1,isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStrokeFill",dispName:"Disable Multi Stroke Fill",type:"bool",defVal:!1,isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,"sketch",
+"1"==urlParams.rough?"1":"0")&&0<n.vertices.length}},{name:"dashOffset",dispName:"Dash Offset",type:"int",defVal:-1,isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")&&0<n.vertices.length}},{name:"dashGap",dispName:"Dash Gap",type:"int",defVal:-1,isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")&&0<n.vertices.length}},{name:"zigzagOffset",dispName:"ZigZag Offset",type:"int",defVal:-1,isVisible:function(n,
+z){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")&&0<n.vertices.length}},{name:"sketchStyle",dispName:"Sketch Style",type:"enum",defVal:"rough",enumList:[{val:"rough",dispName:"Rough"},{val:"comic",dispName:"Comic"}],isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:mxConstants.STYLE_SHADOWCOLOR,dispName:"Shadow Color",type:"color",getDefaultValue:function(){return mxConstants.SHADOWCOLOR},isVisible:function(n,z){return"1"==
+mxUtils.getValue(n.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(n.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OPACITY,dispName:"Shadow Opacity",type:"int",min:0,max:100,getDefaultValue:function(){return 100*mxConstants.SHADOW_OPACITY},isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(n.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_X,dispName:"Shadow Offset X",
+type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_X},isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(n.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_Y,dispName:"Shadow Offset Y",type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_Y},isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(n.style,mxConstants.STYLE_TEXT_SHADOW,
+"0")}},{name:mxConstants.STYLE_SHADOW_BLUR,dispName:"Shadow Blur",type:"int",min:0,getDefaultValue:function(){return mxConstants.SHADOW_BLUR},isVisible:function(n,z){return"1"==mxUtils.getValue(n.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(n.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:"linecap",dispName:"Line Cap",type:"enum",defVal:null,enumList:[{val:null,dispName:"Flat"},{val:"round",dispName:"Round"},{val:"square",dispName:"Square"}]},{name:"linejoin",dispName:"Line Join",
type:"enum",defVal:null,enumList:[{val:null,dispName:"Miter"},{val:"arcs",dispName:"Arcs"},{val:"bevel",dispName:"Bevel"},{val:"miter-clip",dispName:"Miter-Clip"},{val:"round",dispName:"Round"}]}];Editor.commonEdgeProperties=[{type:"separator"},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"sourcePortConstraint",dispName:"Source Constraint",type:"enum",defVal:"none",enumList:[{val:"none",dispName:"None"},{val:"north",dispName:"North"},{val:"east",dispName:"East"},
{val:"south",dispName:"South"},{val:"west",dispName:"West"}]},{name:"targetPortConstraint",dispName:"Target Constraint",type:"enum",defVal:"none",enumList:[{val:"none",dispName:"None"},{val:"north",dispName:"North"},{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"}]},{name:"jettySize",dispName:"Jetty Size",type:"int",min:0,defVal:"auto",allowAuto:!0,isVisible:function(n){return"orthogonalEdgeStyle"==mxUtils.getValue(n.style,mxConstants.STYLE_EDGE,null)}},{name:"segment",
dispName:"Segment Size",type:"int",min:0,defVal:mxConstants.ENTITY_SEGMENT,isVisible:function(n){return"entityRelationEdgeStyle"==mxUtils.getValue(n.style,mxConstants.STYLE_EDGE,null)}},{name:"fillOpacity",dispName:"Fill Opacity",type:"int",min:0,max:100,defVal:100},{name:"strokeOpacity",dispName:"Stroke Opacity",type:"int",min:0,max:100,defVal:100},{name:"startFill",dispName:"Start Fill",type:"bool",defVal:!0},{name:"startFillColor",dispName:"Start Fill Color",type:"color",defVal:null},{name:"endFill",
@@ -12719,107 +12762,107 @@ dispName:"End Fill",type:"bool",defVal:!0},{name:"endFillColor",dispName:"End Fi
dispName:"Flow Duration",type:"int",defVal:500,isVisible:function(n){return"1"==mxUtils.getValue(n.style,"flowAnimation",null)}},{name:"flowAnimationTimingFunction",dispName:"Flow Timing",type:"enum",defVal:"linear",enumList:[{val:"linear",dispName:"Linear"},{val:"ease",dispName:"Ease"},{val:"ease-in",dispName:"Ease-in"},{val:"ease-out",dispName:"Ease-out"},{val:"ease-in-out",dispName:"Ease-in-out"}],isVisible:function(n){return"1"==mxUtils.getValue(n.style,"flowAnimation",null)}},{name:"flowAnimationDirection",
dispName:"Flow Direction",type:"enum",defVal:"normal",enumList:[{val:"normal",dispName:"Normal"},{val:"reverse",dispName:"Reverse"},{val:"alternate",dispName:"Alternate"},{val:"alternate-reverse",dispName:"Alternate-Reverse"}],isVisible:function(n){return"1"==mxUtils.getValue(n.style,"flowAnimation",null)}},{name:"editable",dispName:"Editable",type:"bool",defVal:!0},{name:"metaEdit",dispName:"Edit Dialog",type:"bool",defVal:!1},{name:"backgroundOutline",dispName:"Background Outline",type:"bool",defVal:!1},
{name:"bendable",dispName:"Bendable",type:"bool",defVal:!0},{name:"movable",dispName:"Movable",type:"bool",defVal:!0},{name:"cloneable",dispName:"Cloneable",type:"bool",defVal:!0},{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"noJump",dispName:"No Jumps",type:"bool",defVal:!1},{name:"ignoreEdge",dispName:"Ignore Edge",type:"bool",defVal:!1},{name:"orthogonalLoop",dispName:"Loop Routing",type:"bool",defVal:!1},{name:"orthogonal",dispName:"Orthogonal",type:"bool",defVal:!1}].concat(Editor.commonProperties);
-Editor.commonVertexProperties=[{name:"colspan",dispName:"Colspan",type:"int",min:1,defVal:1,isVisible:function(n,A){A=A.editorUi.editor.graph;return 1==n.vertices.length&&0==n.edges.length&&A.isTableCell(n.vertices[0])}},{name:"rowspan",dispName:"Rowspan",type:"int",min:1,defVal:1,isVisible:function(n,A){A=A.editorUi.editor.graph;return 1==n.vertices.length&&0==n.edges.length&&A.isTableCell(n.vertices[0])}},{type:"separator"},{name:"resizeLastRow",dispName:"Resize Last Row",type:"bool",getDefaultValue:function(n,
-A){n=A.editorUi.editor.graph.getCellStyle(1==n.vertices.length&&0==n.edges.length?n.vertices[0]:null);return"1"==mxUtils.getValue(n,"resizeLastRow","0")},isVisible:function(n,A){A=A.editorUi.editor.graph;return 1==n.vertices.length&&0==n.edges.length&&A.isTable(n.vertices[0])}},{name:"resizeLast",dispName:"Resize Last Column",type:"bool",getDefaultValue:function(n,A){n=A.editorUi.editor.graph.getCellStyle(1==n.vertices.length&&0==n.edges.length?n.vertices[0]:null);return"1"==mxUtils.getValue(n,"resizeLast",
-"0")},isVisible:function(n,A){A=A.editorUi.editor.graph;return 1==n.vertices.length&&0==n.edges.length&&A.isTable(n.vertices[0])}},{name:"fillOpacity",dispName:"Fill Opacity",type:"int",min:0,max:100,defVal:100},{name:"strokeOpacity",dispName:"Stroke Opacity",type:"int",min:0,max:100,defVal:100},{name:"overflow",dispName:"Text Overflow",defVal:"visible",type:"enum",enumList:[{val:"visible",dispName:"Visible"},{val:"hidden",dispName:"Hidden"},{val:"block",dispName:"Block"},{val:"fill",dispName:"Fill"},
+Editor.commonVertexProperties=[{name:"colspan",dispName:"Colspan",type:"int",min:1,defVal:1,isVisible:function(n,z){z=z.editorUi.editor.graph;return 1==n.vertices.length&&0==n.edges.length&&z.isTableCell(n.vertices[0])}},{name:"rowspan",dispName:"Rowspan",type:"int",min:1,defVal:1,isVisible:function(n,z){z=z.editorUi.editor.graph;return 1==n.vertices.length&&0==n.edges.length&&z.isTableCell(n.vertices[0])}},{type:"separator"},{name:"resizeLastRow",dispName:"Resize Last Row",type:"bool",getDefaultValue:function(n,
+z){n=z.editorUi.editor.graph.getCellStyle(1==n.vertices.length&&0==n.edges.length?n.vertices[0]:null);return"1"==mxUtils.getValue(n,"resizeLastRow","0")},isVisible:function(n,z){z=z.editorUi.editor.graph;return 1==n.vertices.length&&0==n.edges.length&&z.isTable(n.vertices[0])}},{name:"resizeLast",dispName:"Resize Last Column",type:"bool",getDefaultValue:function(n,z){n=z.editorUi.editor.graph.getCellStyle(1==n.vertices.length&&0==n.edges.length?n.vertices[0]:null);return"1"==mxUtils.getValue(n,"resizeLast",
+"0")},isVisible:function(n,z){z=z.editorUi.editor.graph;return 1==n.vertices.length&&0==n.edges.length&&z.isTable(n.vertices[0])}},{name:"fillOpacity",dispName:"Fill Opacity",type:"int",min:0,max:100,defVal:100},{name:"strokeOpacity",dispName:"Stroke Opacity",type:"int",min:0,max:100,defVal:100},{name:"overflow",dispName:"Text Overflow",defVal:"visible",type:"enum",enumList:[{val:"visible",dispName:"Visible"},{val:"hidden",dispName:"Hidden"},{val:"block",dispName:"Block"},{val:"fill",dispName:"Fill"},
{val:"width",dispName:"Width"}]},{name:"noLabel",dispName:"Hide Label",type:"bool",defVal:!1},{name:"labelPadding",dispName:"Label Padding",type:"float",defVal:0},{name:"direction",dispName:"Direction",type:"enum",defVal:"east",enumList:[{val:"north",dispName:"North"},{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"}]},{name:"portConstraint",dispName:"Constraint",type:"enum",defVal:"none",enumList:[{val:"none",dispName:"None"},{val:"north",dispName:"North"},
-{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"}]},{name:"portConstraintRotation",dispName:"Rotate Constraint",type:"bool",defVal:!1},{name:"connectable",dispName:"Connectable",type:"bool",getDefaultValue:function(n,A){return A.editorUi.editor.graph.isCellConnectable(0<n.vertices.length&&0==n.edges.length?n.vertices[0]:null)},isVisible:function(n,A){return 0<n.vertices.length&&0==n.edges.length}},{name:"allowArrows",dispName:"Allow Arrows",type:"bool",defVal:!0},
+{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"}]},{name:"portConstraintRotation",dispName:"Rotate Constraint",type:"bool",defVal:!1},{name:"connectable",dispName:"Connectable",type:"bool",getDefaultValue:function(n,z){return z.editorUi.editor.graph.isCellConnectable(0<n.vertices.length&&0==n.edges.length?n.vertices[0]:null)},isVisible:function(n,z){return 0<n.vertices.length&&0==n.edges.length}},{name:"allowArrows",dispName:"Allow Arrows",type:"bool",defVal:!0},
{name:"snapToPoint",dispName:"Snap to Point",type:"bool",defVal:!1},{name:"perimeter",dispName:"Perimeter",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"rectanglePerimeter",dispName:"Rectangle"},{val:"ellipsePerimeter",dispName:"Ellipse"},{val:"rhombusPerimeter",dispName:"Rhombus"},{val:"trianglePerimeter",dispName:"Triangle"},{val:"hexagonPerimeter2",dispName:"Hexagon"},{val:"lifelinePerimeter",dispName:"Lifeline"},{val:"orthogonalPerimeter",dispName:"Orthogonal"},{val:"backbonePerimeter",
-dispName:"Backbone"},{val:"calloutPerimeter",dispName:"Callout"},{val:"parallelogramPerimeter",dispName:"Parallelogram"},{val:"trapezoidPerimeter",dispName:"Trapezoid"},{val:"stepPerimeter",dispName:"Step"},{val:"centerPerimeter",dispName:"Center"}]},{name:"fixDash",dispName:"Fixed Dash",type:"bool",defVal:!1},{name:"container",dispName:"Container",type:"bool",getDefaultValue:function(n,A){n=1==n.vertices.length&&0==n.edges.length?n.vertices[0]:null;A=A.editorUi.editor.graph;return null!=n&&A.isSwimlane(n)},
-isVisible:function(n,A){return 1==n.vertices.length&&0==n.edges.length}},{name:"dropTarget",dispName:"Drop Target",type:"bool",getDefaultValue:function(n,A){n=1==n.vertices.length&&0==n.edges.length?n.vertices[0]:null;A=A.editorUi.editor.graph;return null!=n&&(A.isSwimlane(n)||0<A.model.getChildCount(n))},isVisible:function(n,A){return 1==n.vertices.length&&0==n.edges.length}},{name:"collapsible",dispName:"Collapsible",type:"bool",getDefaultValue:function(n,A){var E=1==n.vertices.length&&0==n.edges.length?
-n.vertices[0]:null;A=A.editorUi.editor.graph;return null!=E&&(A.isContainer(E)&&"0"!=n.style.collapsible||!A.isContainer(E)&&"1"==n.style.collapsible)},isVisible:function(n,A){return 1==n.vertices.length&&0==n.edges.length}},{name:"recursiveResize",dispName:"Resize Children",type:"bool",defVal:!0,isVisible:function(n,A){return 1==n.vertices.length&&0==n.edges.length&&!A.editorUi.editor.graph.isSwimlane(n.vertices[0])&&null==mxUtils.getValue(n.style,"childLayout",null)}},{name:"expand",dispName:"Expand",
-type:"bool",defVal:!0},{name:"part",dispName:"Part",type:"bool",defVal:!1,isVisible:function(n,A){A=A.editorUi.editor.graph.model;return 0<n.vertices.length?A.isVertex(A.getParent(n.vertices[0])):!1}},{name:"editable",dispName:"Editable",type:"bool",defVal:!0},{name:"metaEdit",dispName:"Edit Dialog",type:"bool",defVal:!1},{name:"backgroundOutline",dispName:"Background Outline",type:"bool",defVal:!1},{name:"movable",dispName:"Movable",type:"bool",defVal:!0},{name:"movableLabel",dispName:"Movable Label",
-type:"bool",defVal:!1,isVisible:function(n,A){n=0<n.vertices.length?A.editorUi.editor.graph.getCellGeometry(n.vertices[0]):null;return null!=n&&!n.relative}},{name:"autosize",dispName:"Autosize",type:"bool",defVal:!1},{name:"autosizeGrid",dispName:"Autosize Grid",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"1",dispName:"Enabled"},{val:"0",dispName:"Disabled"}],isVisible:function(n,A){return 0<n.vertices.length&&A.editorUi.editor.graph.isAutoSizeCell(n.vertices[0])}},{name:"fixedWidth",
+dispName:"Backbone"},{val:"calloutPerimeter",dispName:"Callout"},{val:"parallelogramPerimeter",dispName:"Parallelogram"},{val:"trapezoidPerimeter",dispName:"Trapezoid"},{val:"stepPerimeter",dispName:"Step"},{val:"centerPerimeter",dispName:"Center"}]},{name:"fixDash",dispName:"Fixed Dash",type:"bool",defVal:!1},{name:"container",dispName:"Container",type:"bool",getDefaultValue:function(n,z){n=1==n.vertices.length&&0==n.edges.length?n.vertices[0]:null;z=z.editorUi.editor.graph;return null!=n&&z.isSwimlane(n)},
+isVisible:function(n,z){return 1==n.vertices.length&&0==n.edges.length}},{name:"dropTarget",dispName:"Drop Target",type:"bool",getDefaultValue:function(n,z){n=1==n.vertices.length&&0==n.edges.length?n.vertices[0]:null;z=z.editorUi.editor.graph;return null!=n&&(z.isSwimlane(n)||0<z.model.getChildCount(n))},isVisible:function(n,z){return 1==n.vertices.length&&0==n.edges.length}},{name:"collapsible",dispName:"Collapsible",type:"bool",getDefaultValue:function(n,z){var G=1==n.vertices.length&&0==n.edges.length?
+n.vertices[0]:null;z=z.editorUi.editor.graph;return null!=G&&(z.isContainer(G)&&"0"!=n.style.collapsible||!z.isContainer(G)&&"1"==n.style.collapsible)},isVisible:function(n,z){return 1==n.vertices.length&&0==n.edges.length}},{name:"recursiveResize",dispName:"Resize Children",type:"bool",defVal:!0,isVisible:function(n,z){return 1==n.vertices.length&&0==n.edges.length&&!z.editorUi.editor.graph.isSwimlane(n.vertices[0])&&null==mxUtils.getValue(n.style,"childLayout",null)}},{name:"expand",dispName:"Expand",
+type:"bool",defVal:!0},{name:"part",dispName:"Part",type:"bool",defVal:!1,isVisible:function(n,z){z=z.editorUi.editor.graph.model;return 0<n.vertices.length?z.isVertex(z.getParent(n.vertices[0])):!1}},{name:"editable",dispName:"Editable",type:"bool",defVal:!0},{name:"metaEdit",dispName:"Edit Dialog",type:"bool",defVal:!1},{name:"backgroundOutline",dispName:"Background Outline",type:"bool",defVal:!1},{name:"movable",dispName:"Movable",type:"bool",defVal:!0},{name:"movableLabel",dispName:"Movable Label",
+type:"bool",defVal:!1,isVisible:function(n,z){n=0<n.vertices.length?z.editorUi.editor.graph.getCellGeometry(n.vertices[0]):null;return null!=n&&!n.relative}},{name:"autosize",dispName:"Autosize",type:"bool",defVal:!1},{name:"autosizeGrid",dispName:"Autosize Grid",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"1",dispName:"Enabled"},{val:"0",dispName:"Disabled"}],isVisible:function(n,z){return 0<n.vertices.length&&z.editorUi.editor.graph.isAutoSizeCell(n.vertices[0])}},{name:"fixedWidth",
dispName:"Fixed Width",type:"bool",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(n,A){var E=mxUtils.getValue(n.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||A.editorUi.editor.graph.isSwimlane(n.vertices[0])||null==E||E==mxConstants.NONE||0==mxUtils.getValue(n.style,mxConstants.STYLE_FILL_OPACITY,100)||0==mxUtils.getValue(n.style,mxConstants.STYLE_OPACITY,100)||null!=n.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",
-type:"bool",defVal:!1,isVisible:function(n,A){return 0<n.vertices.length&&A.editorUi.editor.graph.isContainer(n.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(n){var A=rough.canvas({getContext:function(){return n}});A.draw=function(E){var L=E.sets||[];E=E.options||this.getDefaultOptions();for(var O=0;O<L.length;O++){var R=L[O];switch(R.type){case "path":null!=E.stroke&&this._drawToContext(n,R,E);break;case "fillPath":this._drawToContext(n,R,E);break;case "fillSketch":this.fillSketch(n,R,E)}}};A.fillSketch=function(E,L,O){var R=n.state.strokeColor,T=n.state.strokeWidth,U=n.state.strokeAlpha,W=n.state.dashed,X=O.fillWeight;
-0>X&&(X=O.strokeWidth/2);n.setStrokeAlpha(n.state.fillAlpha);n.setStrokeColor(O.fill||"");n.setStrokeWidth(X);n.setDashed(!1);this._drawToContext(E,L,O);n.setDashed(W);n.setStrokeWidth(T);n.setStrokeColor(R);n.setStrokeAlpha(U)};A._drawToContext=function(E,L,O){E.begin();for(var R=0;R<L.ops.length;R++){var T=L.ops[R],U=T.data;switch(T.op){case "move":E.moveTo(U[0],U[1]);break;case "bcurveTo":E.curveTo(U[0],U[1],U[2],U[3],U[4],U[5]);break;case "lineTo":E.lineTo(U[0],U[1])}}E.end();"fillPath"===L.type&&
-O.filled?E.fill():E.stroke()};return A};(function(){function n(R,T,U){this.canvas=R;this.rc=T;this.shape=U;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,n.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,n.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,n.prototype.rect);this.originalRoundrect=this.canvas.roundrect;this.canvas.roundrect=
+dispName:"Tree Moving",type:"bool",defVal:!1},{name:"pointerEvents",dispName:"Pointer Events",type:"bool",defVal:!0,isVisible:function(n,z){var G=mxUtils.getValue(n.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||z.editorUi.editor.graph.isSwimlane(n.vertices[0])||null==G||G==mxConstants.NONE||0==mxUtils.getValue(n.style,mxConstants.STYLE_FILL_OPACITY,100)||0==mxUtils.getValue(n.style,mxConstants.STYLE_OPACITY,100)||null!=n.style.pointerEvents}},{name:"moveCells",dispName:"Move Cells on Fold",
+type:"bool",defVal:!1,isVisible:function(n,z){return 0<n.vertices.length&&z.editorUi.editor.graph.isContainer(n.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(n){var z=rough.canvas({getContext:function(){return n}});z.draw=function(G){var M=G.sets||[];G=G.options||this.getDefaultOptions();for(var N=0;N<M.length;N++){var Q=M[N];switch(Q.type){case "path":null!=G.stroke&&this._drawToContext(n,Q,G);break;case "fillPath":this._drawToContext(n,Q,G);break;case "fillSketch":this.fillSketch(n,Q,G)}}};z.fillSketch=function(G,M,N){var Q=n.state.strokeColor,S=n.state.strokeWidth,T=n.state.strokeAlpha,W=n.state.dashed,X=N.fillWeight;
+0>X&&(X=N.strokeWidth/2);n.setStrokeAlpha(n.state.fillAlpha);n.setStrokeColor(N.fill||"");n.setStrokeWidth(X);n.setDashed(!1);this._drawToContext(G,M,N);n.setDashed(W);n.setStrokeWidth(S);n.setStrokeColor(Q);n.setStrokeAlpha(T)};z._drawToContext=function(G,M,N){G.begin();for(var Q=0;Q<M.ops.length;Q++){var S=M.ops[Q],T=S.data;switch(S.op){case "move":G.moveTo(T[0],T[1]);break;case "bcurveTo":G.curveTo(T[0],T[1],T[2],T[3],T[4],T[5]);break;case "lineTo":G.lineTo(T[0],T[1])}}G.end();"fillPath"===M.type&&
+N.filled?G.fill():G.stroke()};return z};(function(){function n(Q,S,T){this.canvas=Q;this.rc=S;this.shape=T;this.canvas.setLineJoin("round");this.canvas.setLineCap("round");this.originalBegin=this.canvas.begin;this.canvas.begin=mxUtils.bind(this,n.prototype.begin);this.originalEnd=this.canvas.end;this.canvas.end=mxUtils.bind(this,n.prototype.end);this.originalRect=this.canvas.rect;this.canvas.rect=mxUtils.bind(this,n.prototype.rect);this.originalRoundrect=this.canvas.roundrect;this.canvas.roundrect=
mxUtils.bind(this,n.prototype.roundrect);this.originalEllipse=this.canvas.ellipse;this.canvas.ellipse=mxUtils.bind(this,n.prototype.ellipse);this.originalLineTo=this.canvas.lineTo;this.canvas.lineTo=mxUtils.bind(this,n.prototype.lineTo);this.originalMoveTo=this.canvas.moveTo;this.canvas.moveTo=mxUtils.bind(this,n.prototype.moveTo);this.originalQuadTo=this.canvas.quadTo;this.canvas.quadTo=mxUtils.bind(this,n.prototype.quadTo);this.originalCurveTo=this.canvas.curveTo;this.canvas.curveTo=mxUtils.bind(this,
n.prototype.curveTo);this.originalArcTo=this.canvas.arcTo;this.canvas.arcTo=mxUtils.bind(this,n.prototype.arcTo);this.originalClose=this.canvas.close;this.canvas.close=mxUtils.bind(this,n.prototype.close);this.originalFill=this.canvas.fill;this.canvas.fill=mxUtils.bind(this,n.prototype.fill);this.originalStroke=this.canvas.stroke;this.canvas.stroke=mxUtils.bind(this,n.prototype.stroke);this.originalFillAndStroke=this.canvas.fillAndStroke;this.canvas.fillAndStroke=mxUtils.bind(this,n.prototype.fillAndStroke);
-this.path=[];this.passThrough=!1}n.prototype.moveOp="M";n.prototype.lineOp="L";n.prototype.quadOp="Q";n.prototype.curveOp="C";n.prototype.closeOp="Z";n.prototype.getStyle=function(R,T){var U=1;if(null!=this.shape.state){var W=this.shape.state.cell.id;if(null!=W)for(var X=0;X<W.length;X++)U=(U<<5)-U+W.charCodeAt(X)<<0}U={strokeWidth:this.canvas.state.strokeWidth,seed:U,preserveVertices:!0};W=this.rc.getDefaultOptions();U.stroke=R?this.canvas.state.strokeColor===mxConstants.NONE?"transparent":this.canvas.state.strokeColor:
-mxConstants.NONE;R=null;(U.filled=T)?(U.fill=this.canvas.state.fillColor===mxConstants.NONE?"":this.canvas.state.fillColor,R=this.canvas.state.gradientColor===mxConstants.NONE?null:this.canvas.state.gradientColor):U.fill="";U.bowing=mxUtils.getValue(this.shape.style,"bowing",W.bowing);U.hachureAngle=mxUtils.getValue(this.shape.style,"hachureAngle",W.hachureAngle);U.curveFitting=mxUtils.getValue(this.shape.style,"curveFitting",W.curveFitting);U.roughness=mxUtils.getValue(this.shape.style,"jiggle",
-W.roughness);U.simplification=mxUtils.getValue(this.shape.style,"simplification",W.simplification);U.disableMultiStroke=mxUtils.getValue(this.shape.style,"disableMultiStroke",W.disableMultiStroke);U.disableMultiStrokeFill=mxUtils.getValue(this.shape.style,"disableMultiStrokeFill",W.disableMultiStrokeFill);T=mxUtils.getValue(this.shape.style,"hachureGap",-1);U.hachureGap="auto"==T?-1:T;U.dashGap=mxUtils.getValue(this.shape.style,"dashGap",T);U.dashOffset=mxUtils.getValue(this.shape.style,"dashOffset",
-T);U.zigzagOffset=mxUtils.getValue(this.shape.style,"zigzagOffset",T);T=mxUtils.getValue(this.shape.style,"fillWeight",-1);U.fillWeight="auto"==T?-1:T;T=mxUtils.getValue(this.shape.style,"fillStyle","auto");"dots"==T&&(T="auto");"auto"==T&&(T=[mxUtils.hex2rgb("#ffffff")],null!=this.shape.state&&T.push(mxUtils.hex2rgb(this.shape.state.view.graph.shapeBackgroundColor)),Editor.isDarkMode()&&T.push(mxUtils.hex2rgb(Editor.darkColor)),T=null!=U.fill&&(null!=R||0<=mxUtils.indexOf(T,mxUtils.hex2rgb(U.fill)))?
-"solid":W.fillStyle);U.fillStyle=T;return U};n.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};n.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};n.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var R=2;R<arguments.length;R+=2)this.lastX=arguments[R-1],this.lastY=arguments[R],this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};
-n.prototype.lineTo=function(R,T){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,R,T),this.lastX=R,this.lastY=T)};n.prototype.moveTo=function(R,T){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,R,T),this.lastX=R,this.lastY=T,this.firstX=R,this.firstY=T)};n.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};n.prototype.quadTo=function(R,T,U,W){this.passThrough?
-this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,R,T,U,W),this.lastX=U,this.lastY=W)};n.prototype.curveTo=function(R,T,U,W,X,Y){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,R,T,U,W,X,Y),this.lastX=X,this.lastY=Y)};n.prototype.arcTo=function(R,T,U,W,X,Y,Z){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var ca=mxUtils.arcToCurves(this.lastX,this.lastY,R,T,U,W,X,Y,Z);if(null!=ca)for(var ea=0;ea<ca.length;ea+=
-6)this.curveTo(ca[ea],ca[ea+1],ca[ea+2],ca[ea+3],ca[ea+4],ca[ea+5]);this.lastX=Y;this.lastY=Z}};n.prototype.rect=function(R,T,U,W){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(R,T,U,W,this.getStyle(!0,!0)))};n.prototype.ellipse=function(R,T,U,W){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(R+U/2,T+W/2,U,W,this.getStyle(!0,!0)))};n.prototype.roundrect=
-function(R,T,U,W,X,Y){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(R+X,T),this.lineTo(R+U-X,T),this.quadTo(R+U,T,R+U,T+Y),this.lineTo(R+U,T+W-Y),this.quadTo(R+U,T+W,R+U-X,T+W),this.lineTo(R+X,T+W),this.quadTo(R,T+W,R,T+W-Y),this.lineTo(R,T+Y),this.quadTo(R,T,R+X,T))};n.prototype.drawPath=function(R){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),R)}catch(U){}this.passThrough=!1}else if(null!=this.nextShape){for(var T in R)this.nextShape.options[T]=
-R[T];R.stroke!=mxConstants.NONE&&null!=R.stroke||delete this.nextShape.options.stroke;R.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};n.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};n.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};n.prototype.fillAndStroke=function(){this.passThrough?
+this.path=[];this.passThrough=!1}n.prototype.moveOp="M";n.prototype.lineOp="L";n.prototype.quadOp="Q";n.prototype.curveOp="C";n.prototype.closeOp="Z";n.prototype.getStyle=function(Q,S){var T=1;if(null!=this.shape.state){var W=this.shape.state.cell.id;if(null!=W)for(var X=0;X<W.length;X++)T=(T<<5)-T+W.charCodeAt(X)<<0}T={strokeWidth:this.canvas.state.strokeWidth,seed:T,preserveVertices:!0};W=this.rc.getDefaultOptions();T.stroke=Q?this.canvas.state.strokeColor===mxConstants.NONE?"transparent":this.canvas.state.strokeColor:
+mxConstants.NONE;Q=null;(T.filled=S)?(T.fill=this.canvas.state.fillColor===mxConstants.NONE?"":this.canvas.state.fillColor,Q=this.canvas.state.gradientColor===mxConstants.NONE?null:this.canvas.state.gradientColor):T.fill="";T.bowing=mxUtils.getValue(this.shape.style,"bowing",W.bowing);T.hachureAngle=mxUtils.getValue(this.shape.style,"hachureAngle",W.hachureAngle);T.curveFitting=mxUtils.getValue(this.shape.style,"curveFitting",W.curveFitting);T.roughness=mxUtils.getValue(this.shape.style,"jiggle",
+W.roughness);T.simplification=mxUtils.getValue(this.shape.style,"simplification",W.simplification);T.disableMultiStroke=mxUtils.getValue(this.shape.style,"disableMultiStroke",W.disableMultiStroke);T.disableMultiStrokeFill=mxUtils.getValue(this.shape.style,"disableMultiStrokeFill",W.disableMultiStrokeFill);S=mxUtils.getValue(this.shape.style,"hachureGap",-1);T.hachureGap="auto"==S?-1:S;T.dashGap=mxUtils.getValue(this.shape.style,"dashGap",S);T.dashOffset=mxUtils.getValue(this.shape.style,"dashOffset",
+S);T.zigzagOffset=mxUtils.getValue(this.shape.style,"zigzagOffset",S);S=mxUtils.getValue(this.shape.style,"fillWeight",-1);T.fillWeight="auto"==S?-1:S;S=mxUtils.getValue(this.shape.style,"fillStyle","auto");"dots"==S&&(S="auto");"auto"==S&&(S=[mxUtils.hex2rgb("#ffffff")],null!=this.shape.state&&S.push(mxUtils.hex2rgb(this.shape.state.view.graph.shapeBackgroundColor)),Editor.isDarkMode()&&S.push(mxUtils.hex2rgb(Editor.darkColor)),S=null!=T.fill&&(null!=Q||0<=mxUtils.indexOf(S,mxUtils.hex2rgb(T.fill)))?
+"solid":W.fillStyle);T.fillStyle=S;return T};n.prototype.begin=function(){this.passThrough?this.originalBegin.apply(this.canvas,arguments):this.path=[]};n.prototype.end=function(){this.passThrough&&this.originalEnd.apply(this.canvas,arguments)};n.prototype.addOp=function(){if(null!=this.path&&(this.path.push(arguments[0]),2<arguments.length))for(var Q=2;Q<arguments.length;Q+=2)this.lastX=arguments[Q-1],this.lastY=arguments[Q],this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};
+n.prototype.lineTo=function(Q,S){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,Q,S),this.lastX=Q,this.lastY=S)};n.prototype.moveTo=function(Q,S){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,Q,S),this.lastX=Q,this.lastY=S,this.firstX=Q,this.firstY=S)};n.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};n.prototype.quadTo=function(Q,S,T,W){this.passThrough?
+this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,Q,S,T,W),this.lastX=T,this.lastY=W)};n.prototype.curveTo=function(Q,S,T,W,X,Z){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,Q,S,T,W,X,Z),this.lastX=X,this.lastY=Z)};n.prototype.arcTo=function(Q,S,T,W,X,Z,Y){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var ba=mxUtils.arcToCurves(this.lastX,this.lastY,Q,S,T,W,X,Z,Y);if(null!=ba)for(var da=0;da<ba.length;da+=
+6)this.curveTo(ba[da],ba[da+1],ba[da+2],ba[da+3],ba[da+4],ba[da+5]);this.lastX=Z;this.lastY=Y}};n.prototype.rect=function(Q,S,T,W){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(Q,S,T,W,this.getStyle(!0,!0)))};n.prototype.ellipse=function(Q,S,T,W){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(Q+T/2,S+W/2,T,W,this.getStyle(!0,!0)))};n.prototype.roundrect=
+function(Q,S,T,W,X,Z){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(Q+X,S),this.lineTo(Q+T-X,S),this.quadTo(Q+T,S,Q+T,S+Z),this.lineTo(Q+T,S+W-Z),this.quadTo(Q+T,S+W,Q+T-X,S+W),this.lineTo(Q+X,S+W),this.quadTo(Q,S+W,Q,S+W-Z),this.lineTo(Q,S+Z),this.quadTo(Q,S,Q+X,S))};n.prototype.drawPath=function(Q){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),Q)}catch(T){}this.passThrough=!1}else if(null!=this.nextShape){for(var S in Q)this.nextShape.options[S]=
+Q[S];Q.stroke!=mxConstants.NONE&&null!=Q.stroke||delete this.nextShape.options.stroke;Q.filled||delete this.nextShape.options.fill;this.passThrough=!0;this.rc.draw(this.nextShape);this.passThrough=!1}};n.prototype.stroke=function(){this.passThrough?this.originalStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!1))};n.prototype.fill=function(){this.passThrough?this.originalFill.apply(this.canvas,arguments):this.drawPath(this.getStyle(!1,!0))};n.prototype.fillAndStroke=function(){this.passThrough?
this.originalFillAndStroke.apply(this.canvas,arguments):this.drawPath(this.getStyle(!0,!0))};n.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(R){return new n(R,Editor.createRoughCanvas(R),this)};var A=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(R){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(R):this.createRoughCanvas(R)};var E=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(R,T,U,W,X){null!=R.handJiggle&&R.handJiggle.passThrough||E.apply(this,arguments)};var L=mxShape.prototype.paint;mxShape.prototype.paint=function(R){var T=R.addTolerance,U=!0;null!=this.style&&(U="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=R.handJiggle&&R.handJiggle.constructor==n&&!this.outline){R.save();
-var W=this.fill,X=this.stroke;this.stroke=this.fill=null;var Y=this.configurePointerEvents,Z=R.setStrokeColor;R.setStrokeColor=function(){};var ca=R.setFillColor;R.setFillColor=function(){};U||null==W||(this.configurePointerEvents=function(){});R.handJiggle.passThrough=!0;L.apply(this,arguments);R.handJiggle.passThrough=!1;R.setFillColor=ca;R.setStrokeColor=Z;this.configurePointerEvents=Y;this.stroke=X;this.fill=W;R.restore();U&&null!=W&&(R.addTolerance=function(){})}L.apply(this,arguments);R.addTolerance=
-T};var O=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(R,T,U,W,X,Y){null!=R.handJiggle&&R.handJiggle.constructor==n?(R.handJiggle.passThrough=!0,O.apply(this,arguments),R.handJiggle.passThrough=!1):O.apply(this,arguments)}})();Editor.fastCompress=function(n){return null==n||0==n.length||"undefined"===typeof pako?n:Graph.arrayBufferToString(pako.deflateRaw(n))};Editor.fastDecompress=function(n){return null==n||0==n.length||"undefined"===typeof pako?n:pako.inflateRaw(Graph.stringToArrayBuffer(atob(n)),
-{to:"string"})};Editor.extractGraphModel=function(n,A,E){if(null!=n&&"undefined"!==typeof pako){var L=n.ownerDocument.getElementsByTagName("div"),O=[];if(null!=L&&0<L.length)for(var R=0;R<L.length;R++)if("mxgraph"==L[R].getAttribute("class")){O.push(L[R]);break}0<O.length&&(L=O[0].getAttribute("data-mxgraph"),null!=L?(O=JSON.parse(L),null!=O&&null!=O.xml&&(n=mxUtils.parseXml(O.xml),n=n.documentElement)):(O=O[0].getElementsByTagName("div"),0<O.length&&(L=mxUtils.getTextContent(O[0]),L=Graph.decompress(L,
-null,E),0<L.length&&(n=mxUtils.parseXml(L),n=n.documentElement))))}if(null!=n&&"svg"==n.nodeName)if(L=n.getAttribute("content"),null!=L&&"<"!=L.charAt(0)&&"%"!=L.charAt(0)&&(L=unescape(window.atob?atob(L):Base64.decode(cont,L))),null!=L&&"%"==L.charAt(0)&&(L=decodeURIComponent(L)),null!=L&&0<L.length)n=mxUtils.parseXml(L).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==n||A||(O=null,"diagram"==n.nodeName?O=n:"mxfile"==n.nodeName&&(L=n.getElementsByTagName("diagram"),0<
-L.length&&(O=L[Math.max(0,Math.min(L.length-1,urlParams.page||0))])),null!=O&&(n=Editor.parseDiagramNode(O,E)));null==n||"mxGraphModel"==n.nodeName||A&&"mxfile"==n.nodeName||(n=null);return n};Editor.parseDiagramNode=function(n,A,E){Editor.validateDiagramNode(n);var L=mxUtils.trim(mxUtils.getTextContent(n)),O=null;0<L.length?(A=Graph.decompress(L,null,A),null!=A&&0<A.length&&(O=mxUtils.parseXml(A).documentElement)):(n=mxUtils.getChildNodes(n),0<n.length&&(O=n[0],E&&(O=Editor.parseDiagramNode(O,A,
-!1)),A=mxUtils.createXmlDocument(),A.appendChild(A.importNode(O,!0)),O=A.documentElement));return O};Editor.getDiagramNodeXml=function(n){Editor.validateDiagramNode(n);var A=mxUtils.getNodeValue(n),E=null;0<A.length?E=Graph.decompress(A):(n=n.getElementsByTagName("mxGraphModel"),null!=n&&0<n.length&&(E=mxUtils.getXml(n[0])));return E};Editor.validateDiagramNode=function(n){if(0==mxUtils.trim(mxUtils.getTextContent(n)).length&&0==mxUtils.getChildNodes(n).length){var A=new mxCodec,E=new mxGraphModel;
-n.appendChild(A.encode(E))}return n};Editor.extractGraphModelFromPdf=function(n){var A=null;n=n.substring(n.indexOf(",")+1);n=window.atob&&!mxClient.IS_SF?atob(n):Base64.decode(n,!0);if("%PDF-1.7"==n.substring(0,8)){var E=n.indexOf("EmbeddedFile");if(-1<E){var L=n.indexOf("stream",E)+9;if(0<n.substring(E,L).indexOf("application#2Fvnd.jgraph.mxfile")){var O=n.indexOf("endstream",L-1);return pako.inflateRaw(Graph.stringToArrayBuffer(n.substring(L,O)),{to:"string"})}}for(E=n.indexOf("/ObjStm");0<E;){L=
-n.indexOf("stream",E)+9;O=n.indexOf("endstream",L-1);L=pako.inflateRaw(Graph.stringToArrayBuffer(n.substring(L,O)),{to:"string"});O=L.indexOf("/Subject <");if(0<O){E=L.substring(O+14,L.indexOf(">",O));if(null!=E){A=E;E=[];for(L=0;L<A.length;L+=2)O=A.substr(L,2),"00"!=O&&E.push(String.fromCharCode(parseInt(O,16)));A=E.join("")}break}E=n.indexOf("/ObjStm",E+1)}}if(null==A&&"%PDF-1.4"==n.substring(0,8)){E="";O=L=0;for(var R=[],T=null;O<n.length;){var U=n.charCodeAt(O);O+=1;10!=U&&(E+=String.fromCharCode(U));
-U=="/Subject (%3Cmxfile".charCodeAt(L)?L++:L=0;if(19==L){var W=n.indexOf("%3C%2Fmxfile%3E",O)+15;O-=9;if(W>O){A=n.substring(O,W);break}}10==U&&("endobj"==E?T=null:"obj"==E.substring(E.length-3,E.length)||"xref"==E||"trailer"==E?(T=[],R[E.split(" ")[0]]=T):null!=T&&T.push(E),E="")}}null==A&&null!=R&&(A=Editor.extractGraphModelFromXref(R));null!=A&&(A=decodeURIComponent(A.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return A};Editor.extractGraphModelFromXref=function(n){var A=n.trailer,E=null;null!=
-A&&(A=/.* \/Info (\d+) (\d+) R/g.exec(A.join("\n")),null!=A&&0<A.length&&(A=n[A[1]],null!=A&&(A=/.* \/Subject (\d+) (\d+) R/g.exec(A.join("\n")),null!=A&&0<A.length&&(n=n[A[1]],null!=n&&(n=n.join("\n"),E=n.substring(1,n.length-1))))));return E};Editor.extractParserError=function(n,A){var E=null;n=null!=n?n.getElementsByTagName("parsererror"):null;null!=n&&0<n.length&&(E=A||mxResources.get("invalidChars"),A=n[0].getElementsByTagName("div"),0<A.length&&(E=mxUtils.getTextContent(A[0])));return null!=
-E?mxUtils.trim(E):E};Editor.addRetryToError=function(n,A){null!=n&&(n=null!=n.error?n.error:n,null==n.retry&&(n.retry=A))};Editor.mermaidToDrawio=function(n,A,E){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(n,A,E)};Editor.configure=function(n){if(null!=n){Editor.config=n;Editor.configVersion=n.version;n.debug&&(urlParams.test="1");null!=n.defaultFonts&&(Menus.prototype.defaultFonts=n.defaultFonts);null!=n.presetColors&&(ColorDialog.prototype.presetColors=n.presetColors);null!=
+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(Q){return new n(Q,Editor.createRoughCanvas(Q),this)};var z=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(Q){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?z.apply(this,arguments):"comic"==mxUtils.getValue(this.style,
+"sketchStyle","rough")?this.createComicCanvas(Q):this.createRoughCanvas(Q)};var G=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(Q,S,T,W,X){null!=Q.handJiggle&&Q.handJiggle.passThrough||G.apply(this,arguments)};var M=mxShape.prototype.paint;mxShape.prototype.paint=function(Q){var S=Q.addTolerance,T=!0;null!=this.style&&(T="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=Q.handJiggle&&Q.handJiggle.constructor==n&&!this.outline){Q.save();
+var W=this.fill,X=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,Y=Q.setStrokeColor;Q.setStrokeColor=function(){};var ba=Q.setFillColor;Q.setFillColor=function(){};T||null==W||(this.configurePointerEvents=function(){});Q.handJiggle.passThrough=!0;M.apply(this,arguments);Q.handJiggle.passThrough=!1;Q.setFillColor=ba;Q.setStrokeColor=Y;this.configurePointerEvents=Z;this.stroke=X;this.fill=W;Q.restore();T&&null!=W&&(Q.addTolerance=function(){})}M.apply(this,arguments);Q.addTolerance=
+S};var N=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(Q,S,T,W,X,Z){null!=Q.handJiggle&&Q.handJiggle.constructor==n?(Q.handJiggle.passThrough=!0,N.apply(this,arguments),Q.handJiggle.passThrough=!1):N.apply(this,arguments)}})();Editor.fastCompress=function(n){return null==n||0==n.length||"undefined"===typeof pako?n:Graph.arrayBufferToString(pako.deflateRaw(n))};Editor.fastDecompress=function(n){return null==n||0==n.length||"undefined"===typeof pako?n:pako.inflateRaw(Graph.stringToArrayBuffer(atob(n)),
+{to:"string"})};Editor.extractGraphModel=function(n,z,G){if(null!=n&&"undefined"!==typeof pako){var M=n.ownerDocument.getElementsByTagName("div"),N=[];if(null!=M&&0<M.length)for(var Q=0;Q<M.length;Q++)if("mxgraph"==M[Q].getAttribute("class")){N.push(M[Q]);break}0<N.length&&(M=N[0].getAttribute("data-mxgraph"),null!=M?(N=JSON.parse(M),null!=N&&null!=N.xml&&(n=mxUtils.parseXml(N.xml),n=n.documentElement)):(N=N[0].getElementsByTagName("div"),0<N.length&&(M=mxUtils.getTextContent(N[0]),M=Graph.decompress(M,
+null,G),0<M.length&&(n=mxUtils.parseXml(M),n=n.documentElement))))}if(null!=n&&"svg"==n.nodeName)if(M=n.getAttribute("content"),null!=M&&"<"!=M.charAt(0)&&"%"!=M.charAt(0)&&(M=unescape(window.atob?atob(M):Base64.decode(cont,M))),null!=M&&"%"==M.charAt(0)&&(M=decodeURIComponent(M)),null!=M&&0<M.length)n=mxUtils.parseXml(M).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==n||z||(N=null,"diagram"==n.nodeName?N=n:"mxfile"==n.nodeName&&(M=n.getElementsByTagName("diagram"),0<
+M.length&&(N=M[Math.max(0,Math.min(M.length-1,urlParams.page||0))])),null!=N&&(n=Editor.parseDiagramNode(N,G)));null==n||"mxGraphModel"==n.nodeName||z&&"mxfile"==n.nodeName||(n=null);return n};Editor.parseDiagramNode=function(n,z,G){Editor.validateDiagramNode(n);var M=mxUtils.trim(mxUtils.getTextContent(n)),N=null;0<M.length?(z=Graph.decompress(M,null,z),null!=z&&0<z.length&&(N=mxUtils.parseXml(z).documentElement)):(n=mxUtils.getChildNodes(n),0<n.length&&(N=n[0],G&&(N=Editor.parseDiagramNode(N,z,
+!1)),z=mxUtils.createXmlDocument(),z.appendChild(z.importNode(N,!0)),N=z.documentElement));return N};Editor.getDiagramNodeXml=function(n){Editor.validateDiagramNode(n);var z=mxUtils.getNodeValue(n),G=null;0<z.length?G=Graph.decompress(z):(n=n.getElementsByTagName("mxGraphModel"),null!=n&&0<n.length&&(G=mxUtils.getXml(n[0])));return G};Editor.validateDiagramNode=function(n){if(0==mxUtils.trim(mxUtils.getTextContent(n)).length&&0==mxUtils.getChildNodes(n).length){var z=new mxCodec,G=new mxGraphModel;
+n.appendChild(z.encode(G))}return n};Editor.extractGraphModelFromPdf=function(n){var z=null;n=n.substring(n.indexOf(",")+1);n=window.atob&&!mxClient.IS_SF?atob(n):Base64.decode(n,!0);if("%PDF-1.7"==n.substring(0,8)){var G=n.indexOf("EmbeddedFile");if(-1<G){var M=n.indexOf("stream",G)+9;if(0<n.substring(G,M).indexOf("application#2Fvnd.jgraph.mxfile")){var N=n.indexOf("endstream",M-1);return pako.inflateRaw(Graph.stringToArrayBuffer(n.substring(M,N)),{to:"string"})}}for(G=n.indexOf("/ObjStm");0<G;){M=
+n.indexOf("stream",G)+9;N=n.indexOf("endstream",M-1);M=pako.inflateRaw(Graph.stringToArrayBuffer(n.substring(M,N)),{to:"string"});N=M.indexOf("/Subject <");if(0<N){G=M.substring(N+14,M.indexOf(">",N));if(null!=G){z=G;G=[];for(M=0;M<z.length;M+=2)N=z.substr(M,2),"00"!=N&&G.push(String.fromCharCode(parseInt(N,16)));z=G.join("")}break}G=n.indexOf("/ObjStm",G+1)}}if(null==z&&"%PDF-1.4"==n.substring(0,8)){G="";N=M=0;for(var Q=[],S=null;N<n.length;){var T=n.charCodeAt(N);N+=1;10!=T&&(G+=String.fromCharCode(T));
+T=="/Subject (%3Cmxfile".charCodeAt(M)?M++:M=0;if(19==M){var W=n.indexOf("%3C%2Fmxfile%3E",N)+15;N-=9;if(W>N){z=n.substring(N,W);break}}10==T&&("endobj"==G?S=null:"obj"==G.substring(G.length-3,G.length)||"xref"==G||"trailer"==G?(S=[],Q[G.split(" ")[0]]=S):null!=S&&S.push(G),G="")}}null==z&&null!=Q&&(z=Editor.extractGraphModelFromXref(Q));null!=z&&(z=decodeURIComponent(z.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return z};Editor.extractGraphModelFromXref=function(n){var z=n.trailer,G=null;null!=
+z&&(z=/.* \/Info (\d+) (\d+) R/g.exec(z.join("\n")),null!=z&&0<z.length&&(z=n[z[1]],null!=z&&(z=/.* \/Subject (\d+) (\d+) R/g.exec(z.join("\n")),null!=z&&0<z.length&&(n=n[z[1]],null!=n&&(n=n.join("\n"),G=n.substring(1,n.length-1))))));return G};Editor.extractParserError=function(n,z){var G=null;n=null!=n?n.getElementsByTagName("parsererror"):null;null!=n&&0<n.length&&(G=z||mxResources.get("invalidChars"),z=n[0].getElementsByTagName("div"),0<z.length&&(G=mxUtils.getTextContent(z[0])));return null!=
+G?mxUtils.trim(G):G};Editor.addRetryToError=function(n,z){null!=n&&(n=null!=n.error?n.error:n,null==n.retry&&(n.retry=z))};Editor.mermaidToDrawio=function(n,z,G){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(n,z,G)};Editor.configure=function(n){if(null!=n){Editor.config=n;Editor.configVersion=n.version;n.debug&&(urlParams.test="1");null!=n.defaultFonts&&(Menus.prototype.defaultFonts=n.defaultFonts);null!=n.presetColors&&(ColorDialog.prototype.presetColors=n.presetColors);null!=
n.defaultColors&&(ColorDialog.prototype.defaultColors=n.defaultColors);null!=n.colorNames&&(ColorDialog.prototype.colorNames=n.colorNames);null!=n.defaultColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=n.defaultColorSchemes);null!=n.defaultEdgeLength&&(Graph.prototype.defaultEdgeLength=n.defaultEdgeLength);null!=n.selectParentLayer&&(Graph.selectParentLayer=n.selectParentLayer);null!=n.autosaveDelay&&(DrawioFile.prototype.autosaveDelay=n.autosaveDelay);null!=n.templateFile&&(EditorUi.templateFile=
n.templateFile);null!=n.styles&&(Array.isArray(n.styles)?Editor.styles=n.styles:EditorUi.debug("Configuration Error: Array expected for styles"));null!=n.globalVars&&(Editor.globalVars=n.globalVars);null!=n.compressXml&&(Editor.defaultCompressed=n.compressXml,Editor.compressXml=n.compressXml);null!=n.includeDiagram&&(Editor.defaultIncludeDiagram=n.includeDiagram);null!=n.simpleLabels&&(Editor.simpleLabels=n.simpleLabels);null!=n.oneDriveInlinePicker&&(Editor.oneDriveInlinePicker=n.oneDriveInlinePicker);
null!=n.defaultAdaptiveColors?Graph.defaultAdaptiveColors=n.defaultAdaptiveColors:0==n.enableCssDarkMode&&(Graph.defaultAdaptiveColors="simple");null!=n.enableLightDarkColors&&(mxUtils.lightDarkColorSupported=n.enableLightDarkColors);null!=n.darkColor&&(Editor.darkColor=n.darkColor);null!=n.darkColorVar&&(Editor.darkColorVar=n.darkColorVar);Graph.prototype.defaultPageBackgroundColor="light-dark(#ffffff, "+Editor.darkColor+")";Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+
", "+Editor.darkColor+"))";null!=n.settingsName&&(Editor.configurationKey="."+n.settingsName+"-configuration",Editor.settingsKey="."+n.settingsName+"-config",mxSettings.key=Editor.settingsKey);null!=n.customFonts&&(Menus.prototype.defaultFonts=n.customFonts.concat(Menus.prototype.defaultFonts));null!=n.customPresetColors&&(ColorDialog.prototype.presetColors=n.customPresetColors.concat(ColorDialog.prototype.presetColors));null!=n.customColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=
-n.customColorSchemes.concat(StyleFormatPanel.prototype.defaultColorSchemes));if(null!=n.css){var A=document.createElement("style");A.setAttribute("type","text/css");A.appendChild(document.createTextNode(n.css));var E=document.getElementsByTagName("script")[0];E.parentNode.insertBefore(A,E)}null!=n.expandLibraries&&(Sidebar.prototype.expandLibraries=n.expandLibraries);null!=n.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=n.appendCustomLibraries);null!=n.libraries&&(Sidebar.prototype.customEntries=
+n.customColorSchemes.concat(StyleFormatPanel.prototype.defaultColorSchemes));if(null!=n.css){var z=document.createElement("style");z.setAttribute("type","text/css");z.appendChild(document.createTextNode(n.css));var G=document.getElementsByTagName("script")[0];G.parentNode.insertBefore(z,G)}null!=n.expandLibraries&&(Sidebar.prototype.expandLibraries=n.expandLibraries);null!=n.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=n.appendCustomLibraries);null!=n.libraries&&(Sidebar.prototype.customEntries=
n.libraries);null!=n.enabledLibraries&&(Array.isArray(n.enabledLibraries)?Sidebar.prototype.enabledLibraries=n.enabledLibraries:EditorUi.debug("Configuration Error: Array expected for enabledLibraries"));null!=n.defaultLibraries&&(Sidebar.prototype.defaultEntries=n.defaultLibraries);null!=n.defaultCustomLibraries&&(Editor.defaultCustomLibraries=n.defaultCustomLibraries);null!=n.enableCustomLibraries&&(Editor.enableCustomLibraries=n.enableCustomLibraries);null!=n.defaultVertexStyle&&(Graph.prototype.defaultVertexStyle=
-n.defaultVertexStyle);null!=n.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=n.defaultEdgeStyle);null!=n.defaultPageVisible&&(Graph.prototype.defaultPageVisible=n.defaultPageVisible);null!=n.defaultGridEnabled&&(Graph.prototype.defaultGridEnabled=n.defaultGridEnabled);null!=n.zoomWheel&&(Graph.zoomWheel=n.zoomWheel);null!=n.zoomFactor&&(A=parseFloat(n.zoomFactor),!isNaN(A)&&1<A?Graph.prototype.zoomFactor=A:EditorUi.debug("Configuration Error: Float > 1 expected for zoomFactor"));null!=n.defaultGridSize&&
-(A=parseInt(n.defaultGridSize),!isNaN(A)&&0<A?mxGraph.prototype.gridSize=A:EditorUi.debug("Configuration Error: Int > 0 expected for defaultGridSize"));null!=n.gridSteps&&(A=parseInt(n.gridSteps),!isNaN(A)&&0<A?mxGraphView.prototype.gridSteps=A:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));null!=n.pageFormat&&(A=parseInt(n.pageFormat.width),E=parseInt(n.pageFormat.height),!isNaN(A)&&0<A&&!isNaN(E)&&0<E?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,A,E),mxGraph.prototype.pageFormat=
+n.defaultVertexStyle);null!=n.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=n.defaultEdgeStyle);null!=n.defaultPageVisible&&(Graph.prototype.defaultPageVisible=n.defaultPageVisible);null!=n.defaultGridEnabled&&(Graph.prototype.defaultGridEnabled=n.defaultGridEnabled);null!=n.zoomWheel&&(Graph.zoomWheel=n.zoomWheel);null!=n.zoomFactor&&(z=parseFloat(n.zoomFactor),!isNaN(z)&&1<z?Graph.prototype.zoomFactor=z:EditorUi.debug("Configuration Error: Float > 1 expected for zoomFactor"));null!=n.defaultGridSize&&
+(z=parseInt(n.defaultGridSize),!isNaN(z)&&0<z?mxGraph.prototype.gridSize=z:EditorUi.debug("Configuration Error: Int > 0 expected for defaultGridSize"));null!=n.gridSteps&&(z=parseInt(n.gridSteps),!isNaN(z)&&0<z?mxGraphView.prototype.gridSteps=z:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));null!=n.pageFormat&&(z=parseInt(n.pageFormat.width),G=parseInt(n.pageFormat.height),!isNaN(z)&&0<z&&!isNaN(G)&&0<G?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,z,G),mxGraph.prototype.pageFormat=
mxGraph.prototype.defaultPageFormat):EditorUi.debug("Configuration Error: {width: int, height: int} expected for pageFormat"));null!=n.thumbWidth&&(Sidebar.prototype.thumbWidth=n.thumbWidth);null!=n.thumbHeight&&(Sidebar.prototype.thumbHeight=n.thumbHeight);null!=n.emptyLibraryXml&&(EditorUi.prototype.emptyLibraryXml=n.emptyLibraryXml);null!=n.emptyDiagramXml&&(EditorUi.prototype.emptyDiagramXml=n.emptyDiagramXml);null!=n.sidebarWidth&&(EditorUi.prototype.hsplitPosition=n.sidebarWidth);null!=n.updateDefaultStyle&&
-(EditorUi.prototype.updateDefaultStyle=n.updateDefaultStyle);null!=n.sidebarTitles&&(Sidebar.prototype.sidebarTitles=n.sidebarTitles);null!=n.sidebarTitleSize&&(A=parseInt(n.sidebarTitleSize),!isNaN(A)&&0<A?Sidebar.prototype.sidebarTitleSize=A:EditorUi.debug("Configuration Error: Int > 0 expected for sidebarTitleSize"));null!=n.fontCss&&("string"===typeof n.fontCss?Editor.configureFontCss(n.fontCss):EditorUi.debug("Configuration Error: String expected for fontCss"));null!=n.autosaveDelay&&(A=parseInt(n.autosaveDelay),
-!isNaN(A)&&0<A?DrawioFile.prototype.autosaveDelay=A:EditorUi.debug("Configuration Error: Int > 0 expected for autosaveDelay"));null!=n.maxImageBytes&&(EditorUi.prototype.maxImageBytes=n.maxImageBytes);null!=n.maxImageSize&&(EditorUi.prototype.maxImageSize=n.maxImageSize);null!=n.shareCursorPosition&&(EditorUi.prototype.shareCursorPosition=n.shareCursorPosition);null!=n.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=n.showRemoteCursors);null!=n.restrictExport&&(DrawioFile.RESTRICT_EXPORT=
+(EditorUi.prototype.updateDefaultStyle=n.updateDefaultStyle);null!=n.sidebarTitles&&(Sidebar.prototype.sidebarTitles=n.sidebarTitles);null!=n.sidebarTitleSize&&(z=parseInt(n.sidebarTitleSize),!isNaN(z)&&0<z?Sidebar.prototype.sidebarTitleSize=z:EditorUi.debug("Configuration Error: Int > 0 expected for sidebarTitleSize"));null!=n.fontCss&&("string"===typeof n.fontCss?Editor.configureFontCss(n.fontCss):EditorUi.debug("Configuration Error: String expected for fontCss"));null!=n.autosaveDelay&&(z=parseInt(n.autosaveDelay),
+!isNaN(z)&&0<z?DrawioFile.prototype.autosaveDelay=z:EditorUi.debug("Configuration Error: Int > 0 expected for autosaveDelay"));null!=n.maxImageBytes&&(EditorUi.prototype.maxImageBytes=n.maxImageBytes);null!=n.maxImageSize&&(EditorUi.prototype.maxImageSize=n.maxImageSize);null!=n.shareCursorPosition&&(EditorUi.prototype.shareCursorPosition=n.shareCursorPosition);null!=n.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=n.showRemoteCursors);null!=n.restrictExport&&(DrawioFile.RESTRICT_EXPORT=
n.restrictExport);null!=n.replaceSvgDataUris&&(Editor.replaceSvgDataUris=n.replaceSvgDataUris);null!=n.foreignObjectImages&&(Editor.foreignObjectImages=n.foreignObjectImages);null!=n.shadowColor&&(mxConstants.SHADOW_COLOR=n.shadowColor);null!=n.shadowOpacity&&(mxConstants.SHADOW_OPACITY=n.shadowOpacity);null!=n.shadowOffsetX&&(mxConstants.SHADOW_OFFSET_X=n.shadowOffsetX);null!=n.shadowOffsetY&&(mxConstants.SHADOW_OFFSET_Y=n.shadowOffsetY);null!=n.shadowBlur&&(mxConstants.SHADOW_BLUR=n.shadowBlur);
-null!=n.enableAnimations&&(Editor.enableAnimations=n.enableAnimations);null!=n.enableChatGpt&&(Editor.enableChatGpt=n.enableChatGpt);null!=n.gptApiKey&&(Editor.gptApiKey=n.gptApiKey);null!=n.gptModel&&(Editor.gptModel=n.gptModel);null!=n.gptUrl&&(Editor.gptUrl=n.gptUrl)}};Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.configureFontCss=function(n){if(null!=n){Editor.prototype.fontCss=n;var A=document.getElementsByTagName("script")[0];
-if(null!=A&&null!=A.parentNode){var E=document.createElement("style");E.setAttribute("type","text/css");E.appendChild(document.createTextNode(n));A.parentNode.insertBefore(E,A);n=n.split("url(");for(E=1;E<n.length;E++){var L=n[E].indexOf(")");L=Editor.trimCssUrl(n[E].substring(0,L));var O=document.createElement("link");O.setAttribute("rel","preload");O.setAttribute("href",L);O.setAttribute("as","font");O.setAttribute("crossorigin","");A.parentNode.insertBefore(O,A)}}}};Editor.trimCssUrl=function(n){return n.replace(RegExp("^[\\s\"']+",
-"g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(n){n=null!=n?n:Editor.GUID_LENGTH;for(var A=[],E=0;E<n;E++)A.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return A.join("")};Editor.updateStatusInterval=
+null!=n.enableAnimations&&(Editor.enableAnimations=n.enableAnimations);null!=n.enableChatGpt&&(Editor.enableChatGpt=n.enableChatGpt);null!=n.gptApiKey&&(Editor.gptApiKey=n.gptApiKey);null!=n.gptModel&&(Editor.gptModel=n.gptModel);null!=n.gptUrl&&(Editor.gptUrl=n.gptUrl)}};Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.configureFontCss=function(n){if(null!=n){Editor.prototype.fontCss=n;var z=document.getElementsByTagName("script")[0];
+if(null!=z&&null!=z.parentNode){var G=document.createElement("style");G.setAttribute("type","text/css");G.appendChild(document.createTextNode(n));z.parentNode.insertBefore(G,z);n=n.split("url(");for(G=1;G<n.length;G++){var M=n[G].indexOf(")");M=Editor.trimCssUrl(n[G].substring(0,M));var N=document.createElement("link");N.setAttribute("rel","preload");N.setAttribute("href",M);N.setAttribute("as","font");N.setAttribute("crossorigin","");z.parentNode.insertBefore(N,z)}}}};Editor.trimCssUrl=function(n){return n.replace(RegExp("^[\\s\"']+",
+"g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(n){n=null!=n?n:Editor.GUID_LENGTH;for(var z=[],G=0;G<n;G++)z.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return z.join("")};Editor.updateStatusInterval=
1E4;Editor.prototype.appName="draw.io";Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},{description:"diagramPngDesc",extension:"png",mimeType:"image/png"},{description:"diagramSvgDesc",extension:"svg",mimeType:"image/svg"},{description:"diagramHtmlDesc",extension:"html",mimeType:"text/html"}];Editor.prototype.libraryFileTypes=[{description:"Library (.drawiolib, .xml)",extensions:["drawiolib","xml"]}];Editor.prototype.fileExtensions=[{ext:"html",
-title:"filetypeHtml"},{ext:"png",title:"filetypePng"},{ext:"svg",title:"filetypeSvg"}];Editor.prototype.timeout=25E3;Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.crossOriginImages=!mxClient.IS_IE;var b=Editor.prototype.setGraphXml;Editor.prototype.setGraphXml=function(n){n=null!=n&&"mxlibrary"!=n.nodeName?this.extractGraphModel(n):null;if(null!=n){var A=Editor.extractParserError(n,mxResources.get("invalidOrMissingFile"));if(A)throw EditorUi.debug("Editor.setGraphXml ParserError",
-[this],"node",[n],"cause",[A]),Error(mxResources.get("notADiagramFile")+" ("+A+")");if("mxGraphModel"==n.nodeName){A=n.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=A&&""!=A)A!=this.graph.currentStyle&&(E=null!=this.graph.themes?this.graph.themes[A]:mxUtils.load(STYLE_PATH+"/"+A+".xml").getDocumentElement(),null!=E&&(L=new mxCodec(E.ownerDocument),L.decode(E,this.graph.getStylesheet())));else{var E=null!=this.graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+
-"/default-old.xml").getDocumentElement();if(null!=E){var L=new mxCodec(E.ownerDocument);L.decode(E,this.graph.getStylesheet())}}this.graph.currentStyle=A;this.graph.mathEnabled="1"==urlParams.math||"1"==n.getAttribute("math");this.graph.setAdaptiveColors(n.getAttribute("adaptiveColors"));A=n.getAttribute("backgroundImage");null!=A?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(A)):this.graph.setBackgroundImage(null);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&
-this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==n.getAttribute("shadow"),!1);if(A=n.getAttribute("extFonts"))try{for(A=A.split("|").map(function(O){O=O.split("^");return{name:O[0],url:O[1]}}),E=0;E<A.length;E++)this.graph.addExtFont(A[E].name,A[E].url)}catch(O){console.log("ExtFonts format error: "+O.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||
-"Invalid data",toString:function(){return this.message}};};var e=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(n,A){n=null!=n?n:!0;var E=e.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&E.setAttribute("style",this.graph.currentStyle);var L=this.graph.getBackgroundImageObject(this.graph.backgroundImage,A);null!=L&&E.setAttribute("backgroundImage",JSON.stringify(L));E.setAttribute("math",this.graph.mathEnabled?"1":"0");E.setAttribute("shadow",
-this.graph.shadowVisible?"1":"0");null!=this.graph.adaptiveColors?E.setAttribute("adaptiveColors",this.graph.adaptiveColors):E.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(L=this.graph.extFonts.map(function(O){return O.name+"^"+O.url}),E.setAttribute("extFonts",L.join("|")));return E};Editor.prototype.isDataSvg=function(n){try{var A=mxUtils.parseXml(n).documentElement.getAttribute("content");if(null!=A&&(null!=A&&"<"!=A.charAt(0)&&"%"!=A.charAt(0)&&(A=
-unescape(window.atob?atob(A):Base64.decode(cont,A))),null!=A&&"%"==A.charAt(0)&&(A=decodeURIComponent(A)),null!=A&&0<A.length)){var E=mxUtils.parseXml(A).documentElement;return"mxfile"==E.nodeName||"mxGraphModel"==E.nodeName}}catch(L){}return!1};Editor.prototype.extractGraphModel=function(n,A,E){return Editor.extractGraphModel.apply(this,arguments)};var f=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.setAdaptiveColors(null);
-this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();f.apply(this,arguments)};var c=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){c.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(n,A){if("undefined"===
-typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var E=function(){L=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};n=null!=n?n:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var L=null;Editor.doMathJaxRender=function(T){try{null==L?(MathJax.typesetClear([T]),MathJax.typeset([T]),E()):L!=T&&Editor.mathJaxQueue.push(T)}catch(U){MathJax.typesetClear([T]),null!=U.retry?(L=T,U.retry.then(function(){MathJax.typesetPromise([T]).then(E)["catch"](function(W){console.log("Error in MathJax.typesetPromise: "+
-W.toString());E()})})["catch"](function(W){console.log("Error in MathJax.retry: "+W.toString());E()})):null!=window.console&&console.log("Error in MathJax.typeset: "+U.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 T=0;T<Editor.mathJaxQueue.length;T++)Editor.doMathJaxRender(Editor.mathJaxQueue[T])}}};
-Editor.MathJaxRender=function(T){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(T):Editor.mathJaxQueue.push(T)};Editor.onMathJaxDone=function(){};var O=Editor.prototype.init;Editor.prototype.init=function(){O.apply(this,arguments);var T=mxUtils.bind(this,function(U,W){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,T);this.graph.addListener(mxEvent.REFRESH,T)};A=document.getElementsByTagName("script");
-if(null!=A&&0<A.length){var R=document.createElement("script");R.setAttribute("type","text/javascript");R.setAttribute("src",n);A[0].parentNode.appendChild(R)}}};Editor.prototype.csvToArray=function(n){if(0<n.length){var A="",E=[""],L=0,O=!0,R;n=$jscomp.makeIterator(n);for(R=n.next();!R.done;R=n.next())R=R.value,'"'===R?(O&&R===A&&(E[L]+=R),O=!O):","===R&&O?R=E[++L]="":E[L]+=R,A=R;return E}return[]};Editor.prototype.getProxiedUrl=function(n){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&
-!this.isCorsEnabledForUrl(n)){var A=EditorUi.isVisioFilename(n);A=/\.png$/i.test(n)||/\.pdf$/i.test(n)||A;var E="t="+(new Date).getTime();n=PROXY_URL+"?url="+encodeURIComponent(n)+"&"+E+(A?"&base64=1":"")}return n};Editor.prototype.isCorsEnabledForUrl=function(n){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||n.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(n)||"https://raw.githubusercontent.com/"===n.substring(0,34)||"https://fonts.googleapis.com/"===n.substring(0,29)||"https://fonts.gstatic.com/"===n.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var n=new mxUrlConverter;n.updateBaseUrl();var A=n.convert,E=this;n.convert=function(L){null!=L&&navigator.onLine&&("http://"!=L.substring(0,7)&&"https://"!=L.substring(0,8)||L.substring(0,n.baseUrl.length)==n.baseUrl||E.crossOriginImages&&
-E.isCorsEnabledForUrl(L)?"chrome-extension://"!=L.substring(0,19)&&(L=A.apply(this,arguments)):L=PROXY_URL+"?url="+encodeURIComponent(L));return L};return n};Editor.createSvgDataUri=function(n){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(n)))};Editor.prototype.convertImageToDataUri=function(n,A,E,L,O){try{var R=!0,T=window.setTimeout(mxUtils.bind(this,function(){R=!1;A(n)}),this.timeout),U=mxUtils.bind(this,function(){null!=L?this.convertImageToDataUri(n,A,E,L,!0):A(n)});if(/(\.svg)$/i.test(n)&&
-!O)mxUtils.get(n,mxUtils.bind(this,function(X){window.clearTimeout(T);R&&(200>X.getStatus()||299<X.getStatus()?U():A(Editor.createSvgDataUri(X.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(T);R&&U()}));else{var W=new Image;this.crossOriginImages&&(W.crossOrigin="anonymous");W.onload=function(){window.clearTimeout(T);if(R)try{L=null!=L&&O?L:1;var X=document.createElement("canvas"),Y=X.getContext("2d");Y.scale(L,L);X.height=W.height*L;X.width=W.width*L;Y.drawImage(W,0,0);A(X.toDataURL())}catch(Z){A(n)}};
-W.onerror=function(){window.clearTimeout(T);R&&(null!=E?E():A(n))};W.src=n}}catch(X){null!=E?E():A(n)}};Editor.prototype.convertImages=function(n,A,E,L){function O(){0<R.length?R.shift()():A(n)}null==L&&(L=this.createImageUrlConverter());var R=[],T=E||{};E=mxUtils.bind(this,function(U,W){U=n.getElementsByTagName(U);for(var X=0;X<U.length;X++)mxUtils.bind(this,function(Y){R.push(mxUtils.bind(this,function(){try{if(null!=Y){var Z=L.convert(Y.getAttribute(W));if(null!=Z&&"data:"!=Z.substring(0,5)){var ca=
-T[Z];null==ca?this.convertImageToDataUri(Z,function(ea){null!=ea&&(T[Z]=ea,Y.setAttribute(W,ea));O()},null,Editor.svgRasterScale):(Y.setAttribute(W,ca),O())}else null!=Z&&Y.setAttribute(W,Z),O()}}catch(ea){O()}}))})(U[X])});E("image","xlink:href");E("img","src");O()};Editor.base64Encode=function(n){for(var A="",E=0,L=n.length,O,R,T;E<L;){O=n.charCodeAt(E++)&255;if(E==L){A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&
-3)<<4);A+="==";break}R=n.charCodeAt(E++);if(E==L){A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4|(R&240)>>4);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((R&15)<<2);A+="=";break}T=n.charCodeAt(E++);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&
-3)<<4|(R&240)>>4);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((R&15)<<2|(T&192)>>6);A+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T&63)}return A};Editor.prototype.loadUrl=function(n,A,E,L,O,R,T,U){try{var W=!T&&(L||/(\.png)($|\?)/i.test(n)||/(\.jpe?g)($|\?)/i.test(n)||/(\.gif)($|\?)/i.test(n)||/(\.pdf)($|\?)/i.test(n));O=null!=O?O:!0;var X=mxUtils.bind(this,function(){mxUtils.get(n,mxUtils.bind(this,function(Y){200<=Y.getStatus()&&299>=
-Y.getStatus()?null!=A&&(Y=Y.getText(),W&&(R=null!=R?R:"data:image/png;base64,",Y=R+Editor.base64Encode(Y)),A(Y)):null!=E&&(0==Y.getStatus()?E({message:mxResources.get("accessDenied")},Y):404==Y.getStatus()?E({message:mxResources.get("fileNotFound"),code:Y.getStatus()},Y):E({message:this.getErrorMessage(Y)},Y))}),function(Y){null!=E&&E({message:mxResources.get("error")+" "+Y.getStatus()})},W,this.timeout,function(){O&&null!=E&&E({code:App.ERROR_TIMEOUT,retry:X})},U)});X()}catch(Y){null!=E&&E(Y)}};
-Editor.prototype.getErrorMessage=function(n){var A=mxResources.get("error")+" "+n.getStatus();try{var E=n.getText(),L=JSON.parse(E);null!=L&&null!=L.error&&null!=L.error.message&&(A=L.error.message+" ("+A+")")}catch(O){}return A};Editor.prototype.absoluteCssFonts=function(n){var A=null;if(null!=n){var E=n.split("url(");if(0<E.length){A=[E[0]];n=window.location.pathname;var L=null!=n?n.lastIndexOf("/"):-1;0<=L&&(n=n.substring(0,L+1));L=document.getElementsByTagName("base");var O=null;null!=L&&0<L.length&&
-(O=L[0].getAttribute("href"));for(var R=1;R<E.length;R++)if(L=E[R].indexOf(")"),0<L){var T=Editor.trimCssUrl(E[R].substring(0,L));this.graph.isRelativeUrl(T)&&(T=null!=O?O+T:window.location.protocol+"//"+window.location.hostname+("/"==T.charAt(0)?"":n)+T);A.push('url("'+T+'"'+E[R].substring(L))}else A.push(E[R])}else A=[n]}return null!=A?A.join(""):null};Editor.prototype.mapFontUrl=function(n,A,E){/^https?:\/\//.test(A)&&!this.isCorsEnabledForUrl(A)&&(A=PROXY_URL+"?url="+encodeURIComponent(A));E(n,
-A)};Editor.prototype.embedCssFonts=function(n,A){var E=n.split("url("),L=0;null==this.cachedFonts&&(this.cachedFonts={});var O=mxUtils.bind(this,function(){if(0==L){for(var W=[E[0]],X=1;X<E.length;X++){var Y=E[X].indexOf(")");W.push('url("');W.push(this.cachedFonts[Editor.trimCssUrl(E[X].substring(0,Y))]);W.push('"'+E[X].substring(Y))}A(W.join(""))}});if(0<E.length){for(n=1;n<E.length;n++){var R=E[n].indexOf(")"),T=null,U=E[n].indexOf("format(",R);0<U&&(T=Editor.trimCssUrl(E[n].substring(U+7,E[n].indexOf(")",
-U))));mxUtils.bind(this,function(W){if(null==this.cachedFonts[W]){this.cachedFonts[W]=W;L++;var X="application/x-font-ttf";if("svg"==T||/(\.svg)($|\?)/i.test(W))X="image/svg+xml";else if("otf"==T||"embedded-opentype"==T||/(\.otf)($|\?)/i.test(W))X="application/x-font-opentype";else if("woff"==T||/(\.woff)($|\?)/i.test(W))X="application/font-woff";else if("woff2"==T||/(\.woff2)($|\?)/i.test(W))X="application/font-woff2";else if("eot"==T||/(\.eot)($|\?)/i.test(W))X="application/vnd.ms-fontobject";else if("sfnt"==
-T||/(\.sfnt)($|\?)/i.test(W))X="application/font-sfnt";this.mapFontUrl(X,W,mxUtils.bind(this,function(Y,Z){this.loadUrl(Z,mxUtils.bind(this,function(ca){this.cachedFonts[W]=ca;L--;O()}),mxUtils.bind(this,function(ca){L--;O()}),!0,null,"data:"+Y+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(E[n].substring(0,R)),T)}O()}else A(n)};Editor.prototype.loadFonts=function(n){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(A){this.resolvedFontCss=
-A;null!=n&&n()})):null!=n&&n()};Editor.prototype.createGoogleFontCache=function(){var n={},A;for(A in Graph.fontMapping)Graph.isCssFontUrl(A)&&(n[A]=Graph.fontMapping[A]);return n};Editor.prototype.embedExtFonts=function(n){var A=this.graph.getCustomFonts();if(0<A.length){var E=[],L=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var O=mxUtils.bind(this,function(){0==L&&this.embedCssFonts(E.join(""),n)}),R=0;R<A.length;R++)mxUtils.bind(this,function(T,U){Graph.isCssFontUrl(U)?
-null==this.cachedGoogleFonts[U]?(L++,this.loadUrl(Graph.rewriteGoogleFontUrl(U),mxUtils.bind(this,function(W){this.cachedGoogleFonts[U]=W;E.push(W+"\n");L--;O()}),mxUtils.bind(this,function(W){L--;E.push("@import url("+U+");\n");O()}))):E.push(this.cachedGoogleFonts[U]+"\n"):E.push('@font-face {font-family: "'+T+'";src: url("'+U+'")}\n')})(A[R].name,A[R].url);O()}else n()};Editor.prototype.addMathCss=function(n){n=n.getElementsByTagName("defs");if(null!=n&&0<n.length)for(var A=document.getElementsByTagName("style"),
-E=0;E<A.length;E++){var L=mxUtils.getTextContent(A[E]);0>L.indexOf("mxPageSelector")&&0<L.indexOf("MathJax")&&n[0].appendChild(A[E].cloneNode(!0))}};Editor.prototype.addFontCss=function(n,A){A=null!=A?A:this.absoluteCssFonts(this.fontCss);if(null!=A){var E=mxUtils.getSvgDefs(n),L=A.split("\n");A=[];for(var O=[],R=0;R<L.length;R++)"@import"==L[R].substring(0,7)?A.push(L[R]):O.push(L[R]);n=n.ownerDocument;n=null!=n.createElementNS?n.createElementNS(mxConstants.NS_SVG,"style"):n.createElement("style");
-n.setAttribute("type","text/css");0<A.length&&(mxUtils.setTextContent(n,A.join("\n")),E.appendChild(n));0<O.length&&(n=n.cloneNode(!1),mxUtils.setTextContent(n,O.join("\n")),E.appendChild(n))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(n,A,E){var L=mxClient.IS_FF?8192:16384;return Math.min(E,Math.min(L/n,L/A))};Editor.prototype.exportToCanvas=function(n,A,E,L,O,R,T,U,W,X,Y,Z,ca,ea,ia,ba,fa,aa){try{R=
-null!=R?R:!0;T=null!=T?T:!0;Z=null!=Z?Z:this.graph;ca=null!=ca?ca:0;var ja=W?null:Z.background;ja==mxConstants.NONE&&(ja=null);null==ja&&(ja=L);null==ja&&0==W&&(ja="dark"==ba&&"none"!=Z.getAdaptiveColors()?Editor.darkColor:"#ffffff");this.convertImages(Z.getSvg(null,null,ca,ea,null,T,null,null,null,X,null,ba,fa,aa),mxUtils.bind(this,function(ha){try{var da=new Image;da.onload=mxUtils.bind(this,function(){try{var na=function(){mxClient.IS_SF?window.setTimeout(function(){ta.drawImage(da,0,0);n(va,ha)},
-0):(ta.drawImage(da,0,0),n(va,ha))},va=document.createElement("canvas"),Aa=parseInt(ha.getAttribute("width")),ka=parseInt(ha.getAttribute("height"));U=null!=U?U:1;null!=A&&(U=R?Math.min(1,Math.min(3*A/(4*ka),A/Aa)):A/Aa);U=this.getMaxCanvasScale(Aa,ka,U);Aa=Math.ceil(U*Aa);ka=Math.ceil(U*ka);va.setAttribute("width",Aa);va.setAttribute("height",ka);var ta=va.getContext("2d");if(null!=ja){var pa=mxUtils.getLightDarkColor(ja);ta.beginPath();ta.rect(0,0,Aa,ka);ta.fillStyle="dark"==ba&&"none"!=Z.getAdaptiveColors()?
-pa.dark:pa.light;ta.fill()}1!=U&&ta.scale(U,U);if(ia){var ma=Z.view,Da=ma.scale;ma.scale=1;var wa=btoa(unescape(encodeURIComponent(ma.createSvgGrid(ma.gridColor))));ma.scale=Da;wa="data:image/svg+xml;base64,"+wa;var ya=Z.gridSize*ma.gridSteps*U,xa=Z.getGraphBounds(),Fa=ma.translate.x*Da,Ca=ma.translate.y*Da,Ia=Fa+(xa.x-Fa)/Da-ca,La=Ca+(xa.y-Ca)/Da-ca,Ea=new Image;Ea.onload=function(){try{for(var za=-Math.round(ya-mxUtils.mod((Fa-Ia)*U,ya)),Sa=-Math.round(ya-mxUtils.mod((Ca-La)*U,ya));za<Aa;za+=ya)for(var Ta=
-Sa;Ta<ka;Ta+=ya)ta.drawImage(Ea,za/U,Ta/U);na()}catch(Ua){null!=O&&O(Ua)}};Ea.onerror=function(za){null!=O&&O(za)};Ea.src=wa}else na()}catch(za){null!=O&&O(za)}});da.onerror=function(na){null!=O&&O(na)};X&&this.graph.addSvgShadow(ha);this.graph.mathEnabled&&this.addMathCss(ha);var Ba=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(ha,this.resolvedFontCss),da.src=Editor.createSvgDataUri(mxUtils.getXml(ha))}catch(na){null!=O&&O(na)}});this.embedExtFonts(mxUtils.bind(this,
-function(na){try{null!=na&&this.addFontCss(ha,na),this.loadFonts(Ba)}catch(va){null!=O&&O(va)}}))}catch(na){null!=O&&O(na)}}),E,Y)}catch(ha){null!=O&&O(ha)}};Editor.crcTable=[];for(var l=0;256>l;l++)for(var p=l,q=0;8>q;q++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[l]=p;Editor.updateCRC=function(n,A,E,L){for(var O=0;O<L;O++)n=Editor.crcTable[(n^A.charCodeAt(E+O))&255]^n>>>8;return n};Editor.crc32=function(n){for(var A=-1,E=0;E<n.length;E++)A=A>>>8^Editor.crcTable[(A^n.charCodeAt(E))&255];return(A^
--1)>>>0};Editor.writeGraphModelToPng=function(n,A,E,L,O){function R(Y,Z){var ca=W;W+=Z;return Y.substring(ca,W)}function T(Y){Y=R(Y,4);return Y.charCodeAt(3)+(Y.charCodeAt(2)<<8)+(Y.charCodeAt(1)<<16)+(Y.charCodeAt(0)<<24)}function U(Y){return String.fromCharCode(Y>>24&255,Y>>16&255,Y>>8&255,Y&255)}n=n.substring(n.indexOf(",")+1);n=window.atob?atob(n):Base64.decode(n,!0);var W=0;if(R(n,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=O&&O();else if(R(n,4),"IHDR"!=R(n,4))null!=
-O&&O();else{R(n,17);O=n.substring(0,W);do{var X=T(n);if("IDAT"==R(n,4)){O=n.substring(0,W-8);"pHYs"==A&&"dpi"==E?(E=Math.round(L/.0254),E=U(E)+U(E)+String.fromCharCode(1)):E=E+String.fromCharCode(0)+("zTXt"==A?String.fromCharCode(0):"")+L;L=4294967295;L=Editor.updateCRC(L,A,0,4);L=Editor.updateCRC(L,E,0,E.length);O+=U(E.length)+A+E+U(L^4294967295);O+=n.substring(W-8,n.length);break}O+=n.substring(W-8,W-4+X);R(n,X);R(n,4)}while(X);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 v=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(n,A){v.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var D=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){D.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=
-function(n,A){var E=null;null!=n.editor.graph.getModel().getParent(A)?E=A.getId():null!=n.currentPage&&(E=n.currentPage.getId());return E});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 B=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?B.apply(this,arguments):
-this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(n){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var d=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(n){n=d.apply(this,arguments);var A=this.editorUi,E=A.editor.graph;if(E.isEnabled()){var L=A.getCurrentFile();null!=L&&L.isAutosaveOptional()&&n.appendChild(this.createOption(mxResources.get("autosave"),function(){return A.editor.autosave},
-function(R){A.editor.setAutosave(R);A.editor.autosave&&L.isModified()&&L.fileChanged()},{install:function(R){this.listener=function(){R(A.editor.autosave)};A.editor.addListener("autosaveChanged",this.listener)},destroy:function(){A.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&E.isEnabled()&&"undefined"!==typeof MathJax){var O=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return E.mathEnabled},function(R){A.actions.get("mathematicalTypesetting").funct()},
-{install:function(R){this.listener=function(){R(E.mathEnabled)};A.addListener("mathEnabledChanged",this.listener)},destroy:function(){A.removeListener(this.listener)}});n.appendChild(O);(!A.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&O.appendChild(A.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting"))}return n};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},
+title:"filetypeHtml"},{ext:"png",title:"filetypePng"},{ext:"svg",title:"filetypeSvg"}];Editor.prototype.timeout=25E3;Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.crossOriginImages=!mxClient.IS_IE;var b=Editor.prototype.setGraphXml;Editor.prototype.setGraphXml=function(n){n=null!=n&&"mxlibrary"!=n.nodeName?this.extractGraphModel(n):null;if(null!=n){var z=Editor.extractParserError(n,mxResources.get("invalidOrMissingFile"));if(z)throw EditorUi.debug("Editor.setGraphXml ParserError",
+[this],"node",[n],"cause",[z]),Error(mxResources.get("notADiagramFile")+" ("+z+")");if("mxGraphModel"==n.nodeName){z=n.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=z&&""!=z)z!=this.graph.currentStyle&&(G=null!=this.graph.themes?this.graph.themes[z]:mxUtils.load(STYLE_PATH+"/"+z+".xml").getDocumentElement(),null!=G&&(M=new mxCodec(G.ownerDocument),M.decode(G,this.graph.getStylesheet())));else{var G=null!=this.graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+
+"/default-old.xml").getDocumentElement();if(null!=G){var M=new mxCodec(G.ownerDocument);M.decode(G,this.graph.getStylesheet())}}this.graph.currentStyle=z;this.graph.mathEnabled="1"==urlParams.math||"1"==n.getAttribute("math");this.graph.setAdaptiveColors(n.getAttribute("adaptiveColors"));z=n.getAttribute("backgroundImage");null!=z?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(z)):this.graph.setBackgroundImage(null);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&
+this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==n.getAttribute("shadow"),!1);if(z=n.getAttribute("extFonts"))try{for(z=z.split("|").map(function(N){N=N.split("^");return{name:N[0],url:N[1]}}),G=0;G<z.length;G++)this.graph.addExtFont(z[G].name,z[G].url)}catch(N){console.log("ExtFonts format error: "+N.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||
+"Invalid data",toString:function(){return this.message}};};var e=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(n,z){n=null!=n?n:!0;var G=e.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&G.setAttribute("style",this.graph.currentStyle);var M=this.graph.getBackgroundImageObject(this.graph.backgroundImage,z);null!=M&&G.setAttribute("backgroundImage",JSON.stringify(M));G.setAttribute("math",this.graph.mathEnabled?"1":"0");G.setAttribute("shadow",
+this.graph.shadowVisible?"1":"0");null!=this.graph.adaptiveColors?G.setAttribute("adaptiveColors",this.graph.adaptiveColors):G.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(M=this.graph.extFonts.map(function(N){return N.name+"^"+N.url}),G.setAttribute("extFonts",M.join("|")));return G};Editor.prototype.isDataSvg=function(n){try{var z=mxUtils.parseXml(n).documentElement.getAttribute("content");if(null!=z&&(null!=z&&"<"!=z.charAt(0)&&"%"!=z.charAt(0)&&(z=
+unescape(window.atob?atob(z):Base64.decode(cont,z))),null!=z&&"%"==z.charAt(0)&&(z=decodeURIComponent(z)),null!=z&&0<z.length)){var G=mxUtils.parseXml(z).documentElement;return"mxfile"==G.nodeName||"mxGraphModel"==G.nodeName}}catch(M){}return!1};Editor.prototype.extractGraphModel=function(n,z,G){return Editor.extractGraphModel.apply(this,arguments)};var f=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.setAdaptiveColors(null);
+this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();f.apply(this,arguments)};var c=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){c.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(n,z){if("undefined"===
+typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var G=function(){M=null;if(0<Editor.mathJaxQueue.length)Editor.doMathJaxRender(Editor.mathJaxQueue.shift());else Editor.onMathJaxDone()};n=null!=n?n:DRAW_MATH_URL+"/startup.js";Editor.mathJaxQueue=[];var M=null;Editor.doMathJaxRender=function(S){try{null==M?(MathJax.typesetClear([S]),MathJax.typeset([S]),G()):M!=S&&Editor.mathJaxQueue.push(S)}catch(T){MathJax.typesetClear([S]),null!=T.retry?(M=S,T.retry.then(function(){MathJax.typesetPromise([S]).then(G)["catch"](function(W){console.log("Error in MathJax.typesetPromise: "+
+W.toString());G()})})["catch"](function(W){console.log("Error in MathJax.retry: "+W.toString());G()})):null!=window.console&&console.log("Error in MathJax.typeset: "+T.toString())}};window.MathJax=null!=z?z:{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 S=0;S<Editor.mathJaxQueue.length;S++)Editor.doMathJaxRender(Editor.mathJaxQueue[S])}}};
+Editor.MathJaxRender=function(S){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(S):Editor.mathJaxQueue.push(S)};Editor.onMathJaxDone=function(){};var N=Editor.prototype.init;Editor.prototype.init=function(){N.apply(this,arguments);var S=mxUtils.bind(this,function(T,W){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,S);this.graph.addListener(mxEvent.REFRESH,S)};z=document.getElementsByTagName("script");
+if(null!=z&&0<z.length){var Q=document.createElement("script");Q.setAttribute("type","text/javascript");Q.setAttribute("src",n);z[0].parentNode.appendChild(Q)}}};Editor.prototype.csvToArray=function(n){if(0<n.length){var z="",G=[""],M=0,N=!0,Q;n=$jscomp.makeIterator(n);for(Q=n.next();!Q.done;Q=n.next())Q=Q.value,'"'===Q?(N&&Q===z&&(G[M]+=Q),N=!N):","===Q&&N?Q=G[++M]="":G[M]+=Q,z=Q;return G}return[]};Editor.prototype.getProxiedUrl=function(n){if((/test\.draw\.io$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname))&&
+!this.isCorsEnabledForUrl(n)){var z=EditorUi.isVisioFilename(n);z=/\.png$/i.test(n)||/\.pdf$/i.test(n)||z;var G="t="+(new Date).getTime();n=PROXY_URL+"?url="+encodeURIComponent(n)+"&"+G+(z?"&base64=1":"")}return n};Editor.prototype.isCorsEnabledForUrl=function(n){if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||n.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(n)||"https://raw.githubusercontent.com/"===n.substring(0,34)||"https://fonts.googleapis.com/"===n.substring(0,29)||"https://fonts.gstatic.com/"===n.substring(0,26)};Editor.prototype.createImageUrlConverter=function(){var n=new mxUrlConverter;n.updateBaseUrl();var z=n.convert,G=this;n.convert=function(M){null!=M&&navigator.onLine&&("http://"!=M.substring(0,7)&&"https://"!=M.substring(0,8)||M.substring(0,n.baseUrl.length)==n.baseUrl||G.crossOriginImages&&
+G.isCorsEnabledForUrl(M)?"chrome-extension://"!=M.substring(0,19)&&(M=z.apply(this,arguments)):M=PROXY_URL+"?url="+encodeURIComponent(M));return M};return n};Editor.createSvgDataUri=function(n){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(n)))};Editor.prototype.convertImageToDataUri=function(n,z,G,M,N){try{var Q=!0,S=window.setTimeout(mxUtils.bind(this,function(){Q=!1;z(n)}),this.timeout),T=mxUtils.bind(this,function(){null!=M?this.convertImageToDataUri(n,z,G,M,!0):z(n)});if(/(\.svg)$/i.test(n)&&
+!N)mxUtils.get(n,mxUtils.bind(this,function(X){window.clearTimeout(S);Q&&(200>X.getStatus()||299<X.getStatus()?T():z(Editor.createSvgDataUri(X.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(S);Q&&T()}));else{var W=new Image;this.crossOriginImages&&(W.crossOrigin="anonymous");W.onload=function(){window.clearTimeout(S);if(Q)try{M=null!=M&&N?M:1;var X=document.createElement("canvas"),Z=X.getContext("2d");Z.scale(M,M);X.height=W.height*M;X.width=W.width*M;Z.drawImage(W,0,0);z(X.toDataURL())}catch(Y){z(n)}};
+W.onerror=function(){window.clearTimeout(S);Q&&(null!=G?G():z(n))};W.src=n}}catch(X){null!=G?G():z(n)}};Editor.prototype.convertImages=function(n,z,G,M){function N(){0<Q.length?Q.shift()():z(n)}null==M&&(M=this.createImageUrlConverter());var Q=[],S=G||{};G=mxUtils.bind(this,function(T,W){T=n.getElementsByTagName(T);for(var X=0;X<T.length;X++)mxUtils.bind(this,function(Z){Q.push(mxUtils.bind(this,function(){try{if(null!=Z){var Y=M.convert(Z.getAttribute(W));if(null!=Y&&"data:"!=Y.substring(0,5)){var ba=
+S[Y];null==ba?this.convertImageToDataUri(Y,function(da){null!=da&&(S[Y]=da,Z.setAttribute(W,da));N()},null,Editor.svgRasterScale):(Z.setAttribute(W,ba),N())}else null!=Y&&Z.setAttribute(W,Y),N()}}catch(da){N()}}))})(T[X])});G("image","xlink:href");G("img","src");N()};Editor.base64Encode=function(n){for(var z="",G=0,M=n.length,N,Q,S;G<M;){N=n.charCodeAt(G++)&255;if(G==M){z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(N>>2);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((N&
+3)<<4);z+="==";break}Q=n.charCodeAt(G++);if(G==M){z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(N>>2);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((N&3)<<4|(Q&240)>>4);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Q&15)<<2);z+="=";break}S=n.charCodeAt(G++);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(N>>2);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((N&
+3)<<4|(Q&240)>>4);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Q&15)<<2|(S&192)>>6);z+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(S&63)}return z};Editor.prototype.loadUrl=function(n,z,G,M,N,Q,S,T){try{var W=!S&&(M||/(\.png)($|\?)/i.test(n)||/(\.jpe?g)($|\?)/i.test(n)||/(\.gif)($|\?)/i.test(n)||/(\.pdf)($|\?)/i.test(n));N=null!=N?N:!0;var X=mxUtils.bind(this,function(){mxUtils.get(n,mxUtils.bind(this,function(Z){200<=Z.getStatus()&&299>=
+Z.getStatus()?null!=z&&(Z=Z.getText(),W&&(Q=null!=Q?Q:"data:image/png;base64,",Z=Q+Editor.base64Encode(Z)),z(Z)):null!=G&&(0==Z.getStatus()?G({message:mxResources.get("accessDenied")},Z):404==Z.getStatus()?G({message:mxResources.get("fileNotFound"),code:Z.getStatus()},Z):G({message:this.getErrorMessage(Z)},Z))}),function(Z){null!=G&&G({message:mxResources.get("error")+" "+Z.getStatus()})},W,this.timeout,function(){N&&null!=G&&G({code:App.ERROR_TIMEOUT,retry:X})},T)});X()}catch(Z){null!=G&&G(Z)}};
+Editor.prototype.getErrorMessage=function(n){var z=mxResources.get("error")+" "+n.getStatus();try{var G=n.getText(),M=JSON.parse(G);null!=M&&null!=M.error&&null!=M.error.message&&(z=M.error.message+" ("+z+")")}catch(N){}return z};Editor.prototype.absoluteCssFonts=function(n){var z=null;if(null!=n){var G=n.split("url(");if(0<G.length){z=[G[0]];n=window.location.pathname;var M=null!=n?n.lastIndexOf("/"):-1;0<=M&&(n=n.substring(0,M+1));M=document.getElementsByTagName("base");var N=null;null!=M&&0<M.length&&
+(N=M[0].getAttribute("href"));for(var Q=1;Q<G.length;Q++)if(M=G[Q].indexOf(")"),0<M){var S=Editor.trimCssUrl(G[Q].substring(0,M));this.graph.isRelativeUrl(S)&&(S=null!=N?N+S:window.location.protocol+"//"+window.location.hostname+("/"==S.charAt(0)?"":n)+S);z.push('url("'+S+'"'+G[Q].substring(M))}else z.push(G[Q])}else z=[n]}return null!=z?z.join(""):null};Editor.prototype.mapFontUrl=function(n,z,G){/^https?:\/\//.test(z)&&!this.isCorsEnabledForUrl(z)&&(z=PROXY_URL+"?url="+encodeURIComponent(z));G(n,
+z)};Editor.prototype.embedCssFonts=function(n,z){var G=n.split("url("),M=0;null==this.cachedFonts&&(this.cachedFonts={});var N=mxUtils.bind(this,function(){if(0==M){for(var W=[G[0]],X=1;X<G.length;X++){var Z=G[X].indexOf(")");W.push('url("');W.push(this.cachedFonts[Editor.trimCssUrl(G[X].substring(0,Z))]);W.push('"'+G[X].substring(Z))}z(W.join(""))}});if(0<G.length){for(n=1;n<G.length;n++){var Q=G[n].indexOf(")"),S=null,T=G[n].indexOf("format(",Q);0<T&&(S=Editor.trimCssUrl(G[n].substring(T+7,G[n].indexOf(")",
+T))));mxUtils.bind(this,function(W){if(null==this.cachedFonts[W]){this.cachedFonts[W]=W;M++;var X="application/x-font-ttf";if("svg"==S||/(\.svg)($|\?)/i.test(W))X="image/svg+xml";else if("otf"==S||"embedded-opentype"==S||/(\.otf)($|\?)/i.test(W))X="application/x-font-opentype";else if("woff"==S||/(\.woff)($|\?)/i.test(W))X="application/font-woff";else if("woff2"==S||/(\.woff2)($|\?)/i.test(W))X="application/font-woff2";else if("eot"==S||/(\.eot)($|\?)/i.test(W))X="application/vnd.ms-fontobject";else if("sfnt"==
+S||/(\.sfnt)($|\?)/i.test(W))X="application/font-sfnt";this.mapFontUrl(X,W,mxUtils.bind(this,function(Z,Y){this.loadUrl(Y,mxUtils.bind(this,function(ba){this.cachedFonts[W]=ba;M--;N()}),mxUtils.bind(this,function(ba){M--;N()}),!0,null,"data:"+Z+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(G[n].substring(0,Q)),S)}N()}else z(n)};Editor.prototype.loadFonts=function(n){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(z){this.resolvedFontCss=
+z;null!=n&&n()})):null!=n&&n()};Editor.prototype.createGoogleFontCache=function(){var n={},z;for(z in Graph.fontMapping)Graph.isCssFontUrl(z)&&(n[z]=Graph.fontMapping[z]);return n};Editor.prototype.embedExtFonts=function(n){var z=this.graph.getCustomFonts();if(0<z.length){var G=[],M=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var N=mxUtils.bind(this,function(){0==M&&this.embedCssFonts(G.join(""),n)}),Q=0;Q<z.length;Q++)mxUtils.bind(this,function(S,T){Graph.isCssFontUrl(T)?
+null==this.cachedGoogleFonts[T]?(M++,this.loadUrl(Graph.rewriteGoogleFontUrl(T),mxUtils.bind(this,function(W){this.cachedGoogleFonts[T]=W;G.push(W+"\n");M--;N()}),mxUtils.bind(this,function(W){M--;G.push("@import url("+T+");\n");N()}))):G.push(this.cachedGoogleFonts[T]+"\n"):G.push('@font-face {font-family: "'+S+'";src: url("'+T+'")}\n')})(z[Q].name,z[Q].url);N()}else n()};Editor.prototype.addMathCss=function(n){n=n.getElementsByTagName("defs");if(null!=n&&0<n.length)for(var z=document.getElementsByTagName("style"),
+G=0;G<z.length;G++){var M=mxUtils.getTextContent(z[G]);0>M.indexOf("mxPageSelector")&&0<M.indexOf("MathJax")&&n[0].appendChild(z[G].cloneNode(!0))}};Editor.prototype.addFontCss=function(n,z){z=null!=z?z:this.absoluteCssFonts(this.fontCss);if(null!=z){var G=mxUtils.getSvgDefs(n),M=z.split("\n");z=[];for(var N=[],Q=0;Q<M.length;Q++)"@import"==M[Q].substring(0,7)?z.push(M[Q]):N.push(M[Q]);n=n.ownerDocument;n=null!=n.createElementNS?n.createElementNS(mxConstants.NS_SVG,"style"):n.createElement("style");
+n.setAttribute("type","text/css");0<z.length&&(mxUtils.setTextContent(n,z.join("\n")),G.appendChild(n));0<N.length&&(n=n.cloneNode(!1),mxUtils.setTextContent(n,N.join("\n")),G.appendChild(n))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(n,z,G){var M=mxClient.IS_FF?8192:16384;return Math.min(G,Math.min(M/n,M/z))};Editor.prototype.exportToCanvas=function(n,z,G,M,N,Q,S,T,W,X,Z,Y,ba,da,ia,ca,fa,aa){try{Q=
+null!=Q?Q:!0;S=null!=S?S:!0;Y=null!=Y?Y:this.graph;ba=null!=ba?ba:0;var ja=W?null:Y.background;ja==mxConstants.NONE&&(ja=null);null==ja&&(ja=M);null==ja&&0==W&&(ja="dark"==ca&&"none"!=Y.getAdaptiveColors()?Editor.darkColor:"#ffffff");this.convertImages(Y.getSvg(null,null,ba,da,null,S,null,null,null,X,null,ca,fa,aa),mxUtils.bind(this,function(ha){try{var ea=new Image;ea.onload=mxUtils.bind(this,function(){try{var ua=function(){mxClient.IS_SF?window.setTimeout(function(){sa.drawImage(ea,0,0);n(na,ha)},
+0):(sa.drawImage(ea,0,0),n(na,ha))},na=document.createElement("canvas"),za=parseInt(ha.getAttribute("width")),ma=parseInt(ha.getAttribute("height"));T=null!=T?T:1;null!=z&&(T=Q?Math.min(1,Math.min(3*z/(4*ma),z/za)):z/za);T=this.getMaxCanvasScale(za,ma,T);za=Math.ceil(T*za);ma=Math.ceil(T*ma);na.setAttribute("width",za);na.setAttribute("height",ma);var sa=na.getContext("2d");if(null!=ja){var oa=mxUtils.getLightDarkColor(ja);sa.beginPath();sa.rect(0,0,za,ma);sa.fillStyle="dark"==ca&&"none"!=Y.getAdaptiveColors()?
+oa.dark:oa.light;sa.fill()}1!=T&&sa.scale(T,T);if(ia){var la=Y.view,Ea=la.scale;la.scale=1;var va=btoa(unescape(encodeURIComponent(la.createSvgGrid(la.gridColor))));la.scale=Ea;va="data:image/svg+xml;base64,"+va;var Ca=Y.gridSize*la.gridSteps*T,xa=Y.getGraphBounds(),Da=la.translate.x*Ea,Ba=la.translate.y*Ea,Ka=Da+(xa.x-Da)/Ea-ba,Ja=Ba+(xa.y-Ba)/Ea-ba,Ga=new Image;Ga.onload=function(){try{for(var Aa=-Math.round(Ca-mxUtils.mod((Da-Ka)*T,Ca)),Ma=-Math.round(Ca-mxUtils.mod((Ba-Ja)*T,Ca));Aa<za;Aa+=Ca)for(var Va=
+Ma;Va<ma;Va+=Ca)sa.drawImage(Ga,Aa/T,Va/T);ua()}catch(Ua){null!=N&&N(Ua)}};Ga.onerror=function(Aa){null!=N&&N(Aa)};Ga.src=va}else ua()}catch(Aa){null!=N&&N(Aa)}});ea.onerror=function(ua){null!=N&&N(ua)};X&&this.graph.addSvgShadow(ha);this.graph.mathEnabled&&this.addMathCss(ha);var ya=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(ha,this.resolvedFontCss),ea.src=Editor.createSvgDataUri(mxUtils.getXml(ha))}catch(ua){null!=N&&N(ua)}});this.embedExtFonts(mxUtils.bind(this,
+function(ua){try{null!=ua&&this.addFontCss(ha,ua),this.loadFonts(ya)}catch(na){null!=N&&N(na)}}))}catch(ua){null!=N&&N(ua)}}),G,Z)}catch(ha){null!=N&&N(ha)}};Editor.crcTable=[];for(var l=0;256>l;l++)for(var p=l,v=0;8>v;v++)p=1==(p&1)?3988292384^p>>>1:p>>>1,Editor.crcTable[l]=p;Editor.updateCRC=function(n,z,G,M){for(var N=0;N<M;N++)n=Editor.crcTable[(n^z.charCodeAt(G+N))&255]^n>>>8;return n};Editor.crc32=function(n){for(var z=-1,G=0;G<n.length;G++)z=z>>>8^Editor.crcTable[(z^n.charCodeAt(G))&255];return(z^
+-1)>>>0};Editor.writeGraphModelToPng=function(n,z,G,M,N){function Q(Z,Y){var ba=W;W+=Y;return Z.substring(ba,W)}function S(Z){Z=Q(Z,4);return Z.charCodeAt(3)+(Z.charCodeAt(2)<<8)+(Z.charCodeAt(1)<<16)+(Z.charCodeAt(0)<<24)}function T(Z){return String.fromCharCode(Z>>24&255,Z>>16&255,Z>>8&255,Z&255)}n=n.substring(n.indexOf(",")+1);n=window.atob?atob(n):Base64.decode(n,!0);var W=0;if(Q(n,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=N&&N();else if(Q(n,4),"IHDR"!=Q(n,4))null!=
+N&&N();else{Q(n,17);N=n.substring(0,W);do{var X=S(n);if("IDAT"==Q(n,4)){N=n.substring(0,W-8);"pHYs"==z&&"dpi"==G?(G=Math.round(M/.0254),G=T(G)+T(G)+String.fromCharCode(1)):G=G+String.fromCharCode(0)+("zTXt"==z?String.fromCharCode(0):"")+M;M=4294967295;M=Editor.updateCRC(M,z,0,4);M=Editor.updateCRC(M,G,0,G.length);N+=T(G.length)+z+G+T(M^4294967295);N+=n.substring(W-8,n.length);break}N+=n.substring(W-8,W-4+X);Q(n,X);Q(n,4)}while(X);return"data:image/png;base64,"+(window.btoa?btoa(N):Base64.encode(N,
+!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var t=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(n,z){t.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var E=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){E.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=
+function(n,z){var G=null;null!=n.editor.graph.getModel().getParent(z)?G=z.getId():null!=n.currentPage&&(G=n.currentPage.getId());return G});if(null!=window.StyleFormatPanel){var H=Format.prototype.init;Format.prototype.init=function(){H.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var B=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?B.apply(this,arguments):
+this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(n){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var d=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(n){n=d.apply(this,arguments);var z=this.editorUi,G=z.editor.graph;if(G.isEnabled()){var M=z.getCurrentFile();null!=M&&M.isAutosaveOptional()&&n.appendChild(this.createOption(mxResources.get("autosave"),function(){return z.editor.autosave},
+function(Q){z.editor.setAutosave(Q);z.editor.autosave&&M.isModified()&&M.fileChanged()},{install:function(Q){this.listener=function(){Q(z.editor.autosave)};z.editor.addListener("autosaveChanged",this.listener)},destroy:function(){z.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&G.isEnabled()&&"undefined"!==typeof MathJax){var N=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return G.mathEnabled},function(Q){z.actions.get("mathematicalTypesetting").funct()},
+{install:function(Q){this.listener=function(){Q(G.mathEnabled)};z.addListener("mathEnabledChanged",this.listener)},destroy:function(){z.removeListener(this.listener)}});n.appendChild(N);(!z.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&N.appendChild(z.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting"))}return n};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(n){return"0"==mxUtils.getValue(n.style,"fixedSize","0")}},{name:"size",dispName:"Slope Angle",type:"float",min:0,defVal:20,isVisible:function(n){return"1"==mxUtils.getValue(n.style,
@@ -12843,90 +12886,90 @@ 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;var g=StyleFormatPanel.prototype.init;
-StyleFormatPanel.prototype.init=function(){var n=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=n.style.shape&&!n.containsLabel&&0<n.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));g.apply(this,arguments);null!=n.customProperties&&this.container.appendChild(this.addProperties(this.createPanel(),n.customProperties,n))};var k=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(n){var A=
-this.editorUi.getSelectionState();1==A.cells.length?this.addActions(n,["copyStyle","pasteStyle"]):1<=A.cells.length&&this.addActions(n,["pasteStyle","pasteData"]);k.apply(this,arguments);return n};EditorUi.prototype.propertiesCollapsed=!0;BaseFormatPanel.prototype.addProperties=function(n,A,E,L){function O(ta,pa,ma,Da,wa){if(null!=ma.valueChanged)ma.valueChanged(pa,wa);else{ca.getModel().beginUpdate();try{wa=[];var ya=[];if(null!=ma.index){for(var xa=[],Fa=ma.parentRow.nextSibling;Fa&&Fa.getAttribute("data-pName")==
-ta;)xa.push(Fa.getAttribute("data-pValue")),Fa=Fa.nextSibling;ma.index<xa.length?null!=Da?xa.splice(Da,1):xa[ma.index]=pa:xa.push(pa);null!=ma.size&&xa.length>ma.size&&(xa=xa.slice(0,ma.size));pa=xa.join(",");null!=ma.countProperty&&(ca.setCellStyles(ma.countProperty,xa.length,ca.getSelectionCells()),wa.push(ma.countProperty),ya.push(xa.length))}ca.setCellStyles(ta,pa,ca.getSelectionCells());wa.push(ta);ya.push(pa);if(null!=ma.dependentProps)for(ta=0;ta<ma.dependentProps.length;ta++){var Ca=ma.dependentPropsDefVal[ta],
-Ia=ma.dependentPropsVals[ta];if(Ia.length>pa)Ia=Ia.slice(0,pa);else for(var La=Ia.length;La<pa;La++)Ia.push(Ca);Ia=Ia.join(",");ca.setCellStyles(ma.dependentProps[ta],Ia,ca.getSelectionCells());wa.push(ma.dependentProps[ta]);ya.push(Ia)}if("function"==typeof ma.onChange)ma.onChange(ca,pa);Z.editorUi.fireEvent(new mxEventObject("styleChanged","keys",wa,"values",ya,"cells",ca.getSelectionCells()))}finally{ca.getModel().endUpdate()}}}function R(ta,pa,ma){var Da=mxUtils.getOffset(n,!0),wa=mxUtils.getOffset(ta,
-!0);pa.style.position="absolute";pa.style.left=wa.x-Da.x+"px";pa.style.top=wa.y-Da.y+"px";pa.style.width=ta.offsetWidth+"px";pa.style.height=ta.offsetHeight-(ma?4:0)+"px";pa.style.zIndex=5}function T(ta,pa,ma){function Da(ya){if(null==ya||ya==mxConstants.NONE)wa.style.background="url('"+Dialog.prototype.noColorImage+"')";else if("default"==ya)wa.style.background="";else{var xa=mxUtils.getLightDarkColor(ya);mxUtils.isLightDarkColor(ya)&&xa.light!=xa.dark?wa.style.background="linear-gradient(to right bottom, "+
-xa.cssText+" 50%, "+mxUtils.invertLightDarkColor(xa).cssText+" 50.3%)":wa.style.background=ya}}var wa=document.createElement("div");wa.style.width="32px";wa.style.height="8px";wa.style.margin="2px";wa.style.borderStyle="solid";wa.style.borderWidth="1px";Da(pa);btn=mxUtils.button("",mxUtils.bind(Z,function(ya){this.editorUi.pickColor(pa,function(xa){O(ta,xa,ma);Da(xa)});mxEvent.consume(ya)}));btn.style.height="18px";btn.style.width="40px";btn.style.marginTop="1px";btn.style.marginLeft="1px";btn.className=
-"geColorBtn";btn.appendChild(wa);return btn}function U(ta,pa,ma,Da,wa,ya,xa){null!=pa&&(pa=pa.split(","),ea.push({name:ta,values:pa,type:ma,defVal:Da,countProperty:wa,parentRow:ya,isDeletable:!0,flipBkg:xa}));btn=mxUtils.button("+",mxUtils.bind(Z,function(Fa){for(var Ca=ya,Ia=0;null!=Ca.nextSibling;)if(Ca.nextSibling.getAttribute("data-pName")==ta)Ca=Ca.nextSibling,Ia++;else break;var La={type:ma,parentRow:ya,index:Ia,isDeletable:!0,defVal:Da,countProperty:wa};Ia=Y(ta,"",La,0==Ia%2,xa);O(ta,Da,La);
-Ca.parentNode.insertBefore(Ia,Ca.nextSibling);mxEvent.consume(Fa)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function W(ta,pa,ma,Da,wa,ya,xa){if(0<wa){var Fa=Array(wa);pa=null!=pa?pa.split(","):[];for(var Ca=0;Ca<wa;Ca++)Fa[Ca]=null!=pa[Ca]?pa[Ca]:null!=Da?Da:"";ea.push({name:ta,values:Fa,type:ma,defVal:Da,parentRow:ya,flipBkg:xa,size:wa})}return document.createElement("div")}function X(ta,pa,ma){var Da=document.createElement("input");Da.type="checkbox";
-Da.checked="1"==pa;mxEvent.addListener(Da,"change",function(){O(ta,Da.checked?"1":"0",ma)});return Da}function Y(ta,pa,ma,Da,wa){var ya=ma.dispName,xa=ma.type,Fa=document.createElement("tr");Fa.className="gePropRow"+(wa?"Dark":"")+(Da?"Alt":"")+" gePropNonHeaderRow";Fa.setAttribute("data-pName",ta);Fa.setAttribute("data-pValue",pa);Da=!1;null!=ma.index&&(Fa.setAttribute("data-index",ma.index),ya=(null!=ya?ya:"")+"["+ma.index+"]",Da=!0);var Ca=document.createElement("td");Ca.className="gePropRowCell";
-ya=mxResources.get(ya,null,ya);mxUtils.write(Ca,ya);Ca.setAttribute("title",ya);Da&&(Ca.style.textAlign="right");Fa.appendChild(Ca);Ca=document.createElement("td");Ca.className="gePropRowCell";Ca.setAttribute("title",null!=pa?pa:mxResources.get("none"));if("color"==xa)Ca.appendChild(T(ta,pa,ma));else if("bool"==xa||"boolean"==xa)Ca.appendChild(X(ta,pa,ma));else if("enum"==xa){var Ia=ma.enumList;for(wa=0;wa<Ia.length;wa++)if(ya=Ia[wa],ya.val==pa){mxUtils.write(Ca,mxResources.get(ya.dispName,null,ya.dispName));
-break}mxEvent.addListener(Ca,"click",mxUtils.bind(Z,function(){var La=document.createElement("select"),Ea=null;R(Ca,La);for(var za=0;za<Ia.length;za++){var Sa=Ia[za],Ta=document.createElement("option");Ta.value=mxUtils.htmlEntities(Sa.val);mxUtils.write(Ta,mxResources.get(Sa.dispName,null,Sa.dispName));La.appendChild(Ta);null==Sa.val&&(Ta.value="null",Ea=Ta)}La.value=null==pa&&null!=Ea?"null":pa;n.appendChild(La);mxEvent.addListener(La,"change",function(){var Ua=mxUtils.htmlEntities(La.value);if(La[La.selectedIndex]==
-Ea||"null"==Ua.value)Ua=null;O(ta,Ua,ma)});La.focus();mxEvent.addListener(La,"blur",function(){n.removeChild(La)})}))}else"dynamicArr"==xa?Ca.appendChild(U(ta,pa,ma.subType,ma.subDefVal,ma.countProperty,Fa,wa)):"staticArr"==xa?Ca.appendChild(W(ta,pa,ma.subType,ma.subDefVal,ma.size,Fa,wa)):"readOnly"==xa?(wa=document.createElement("input"),wa.setAttribute("readonly",""),wa.value=pa,wa.style.borderWidth="0px","id"==ta?(wa.style.width="190px",wa.style.position="relative",wa.style.right="6px",wa.style.float=
-"right",wa.style.background="none",wa.style.textAlign="right",Fa.firstChild.setAttribute("colspan","2"),wa.setAttribute("title",pa),Fa.firstChild.appendChild(wa)):(wa.style.width="96px",Ca.appendChild(wa))):(Ca.innerHTML=mxUtils.htmlEntities(decodeURIComponent(pa)),mxEvent.addListener(Ca,"click",mxUtils.bind(Z,function(){function La(){var za=Ea.value;za=0==za.length&&"string"!=xa&&"numbers"!=xa?0:za;ma.allowAuto&&(null!=za.trim&&"auto"==za.trim().toLowerCase()?(za="auto",xa="string"):(za=parseFloat(za),
-za=isNaN(za)?0:za));null!=ma.min&&za<ma.min?za=ma.min:null!=ma.max&&za>ma.max&&(za=ma.max);var Sa=null;try{Sa="numbers"==xa?za.match(/\d+/g).map(Number).join(" "):encodeURIComponent(("int"==xa?parseInt(za):za)+"")}catch(Ta){}O(ta,Sa,ma,null,Ea)}var Ea=document.createElement("input");R(Ca,Ea,!0);Ea.value=decodeURIComponent(pa);Ea.className="gePropEditor";"int"!=xa&&"float"!=xa||ma.allowAuto||(Ea.type="number",Ea.step="int"==xa?"1":"any",null!=ma.min&&(Ea.min=parseFloat(ma.min)),null!=ma.max&&(Ea.max=
-parseFloat(ma.max)));n.appendChild(Ea);mxEvent.addListener(Ea,"keypress",function(za){13==za.keyCode&&La()});Ea.focus();mxEvent.addListener(Ea,"blur",function(){La()})})));ma.isDeletable&&(wa=mxUtils.button("-",mxUtils.bind(Z,function(La){O(ta,"",ma,ma.index);mxEvent.consume(La)})),wa.style.height="16px",wa.style.width="25px",wa.style.float="right",wa.className="geColorBtn",Ca.appendChild(wa));Fa.appendChild(Ca);return Fa}var Z=this,ca=this.editorUi.editor.graph,ea=[],ia=document.createElement("table");
-ia.className="geProperties geFullWidthElement";var ba=document.createElement("tr");ba.className="gePropHeader";var fa=document.createElement("th");fa.className="gePropHeaderCell";fa.style.paddingLeft="16px";fa.style.backgroundRepeat="no-repeat";fa.style.backgroundPosition="-2px 50%";fa.style.backgroundSize="20px";mxUtils.write(fa,mxResources.get("property"));ba.style.cursor="pointer";var aa=function(){var ta=ia.querySelectorAll(".gePropNonHeaderRow");if(Z.editorUi.propertiesCollapsed){fa.style.backgroundImage=
-"url('"+Editor.arrowRightImage+"')";var pa="none";for(var ma=n.childNodes.length-1;0<=ma;ma--)try{var Da=n.childNodes[ma],wa=Da.nodeName.toUpperCase();"INPUT"!=wa&&"SELECT"!=wa||n.removeChild(Da)}catch(ya){}}else fa.style.backgroundImage="url('"+Editor.arrowDownImage+"')",pa="";for(ma=0;ma<ta.length;ma++)ta[ma].style.display=pa};mxEvent.addListener(ba,"click",function(){Z.editorUi.propertiesCollapsed=!Z.editorUi.propertiesCollapsed;aa()});ba.appendChild(fa);var ja=document.createElement("th");ja.className=
-"gePropHeaderCell";ja.style.paddingLeft="4px";mxUtils.write(ja,mxResources.get("value"));ba.appendChild(ja);ia.appendChild(ba);var ha=ja=!1;ba=null;1==E.vertices.length&&0==E.edges.length?ba=E.vertices[0].id:0==E.vertices.length&&1==E.edges.length&&(ba=E.edges[0].id);null==ba||L||ia.appendChild(Y("id",mxUtils.htmlEntities(ba),{dispName:"id",type:"readOnly"},!0,!1));for(var da in A)if(L=A[da],!L.primary&&("function"!=typeof L.isVisible||L.isVisible(E,this))){var Ba=null!=L.getValue?L.getValue():null!=
-E.style[da]?mxUtils.htmlEntities(E.style[da]+""):null!=L.getDefaultValue?L.getDefaultValue(E,this):L.defVal;if("separator"==L.type)ha=!ha;else{if("staticArr"==L.type)L.size=parseInt(E.style[L.sizeProperty]||A[L.sizeProperty].defVal)||0;else if(null!=L.dependentProps){var na=L.dependentProps,va=[],Aa=[];for(ba=0;ba<na.length;ba++){var ka=E.style[na[ba]];Aa.push(A[na[ba]].subDefVal);va.push(null!=ka?ka.split(","):[])}L.dependentPropsDefVal=Aa;L.dependentPropsVals=va}ia.appendChild(Y(da,Ba,L,ja,ha));
-ja=!ja}}for(ba=0;ba<ea.length;ba++)for(L=ea[ba],A=L.parentRow,E=0;E<L.values.length;E++)da=Y(L.name,L.values[E],{type:L.type,parentRow:L.parentRow,isDeletable:L.isDeletable,index:E,defVal:L.defVal,countProperty:L.countProperty,size:L.size},0==E%2,L.flipBkg),A.parentNode.insertBefore(da,A.nextSibling),A=da;n.appendChild(ia);aa();return n};StyleFormatPanel.prototype.addStyles=function(n){if(null!=this.defaultColorSchemes){var A=this.editorUi,E=A.editor.graph,L=document.createElement("div");L.style.padding=
-"6px 20px 0 24px";n.appendChild(L);var O=document.createElement("div");O.className="geSwitcher";O.style.padding="4px 18px 6px 0px";for(var R=[],T=0;T<this.defaultColorSchemes.length;T++){var U=document.createElement("div");U.className="geSwitcherDot";mxUtils.bind(this,function(ca){mxEvent.addListener(U,"click",mxUtils.bind(this,function(){W(ca)}))})(T);R.push(U);O.appendChild(U)}var W=mxUtils.bind(this,function(ca){null!=R[ca]&&(null!=this.format.currentScheme&&null!=R[this.format.currentScheme]&&
-(R[this.format.currentScheme].style.background="transparent"),this.format.currentScheme=ca,X(this.defaultColorSchemes[this.format.currentScheme]),R[this.format.currentScheme].style.background="#84d7ff")}),X=mxUtils.bind(this,function(ca){var ea=mxUtils.clone(E.defaultVertexStyle);ea[mxConstants.STYLE_STROKECOLOR]=null!=ea[mxConstants.STYLE_STROKECOLOR]?ea[mxConstants.STYLE_STROKECOLOR]:"default";ea[mxConstants.STYLE_FILLCOLOR]=null!=ea[mxConstants.STYLE_FILLCOLOR]?ea[mxConstants.STYLE_FILLCOLOR]:
-"default";ea[mxConstants.STYLE_FONTCOLOR]=null!=ea[mxConstants.STYLE_FONTCOLOR]?ea[mxConstants.STYLE_FONTCOLOR]:"default";E.replaceDefaultColors(new mxCell,ea);var ia=mxUtils.bind(this,function(fa){var aa=mxUtils.button("",mxUtils.bind(this,function(da){E.getModel().beginUpdate();try{for(var Ba=A.getSelectionState().cells,na=0;na<Ba.length;na++){var va=E.getModel().getStyle(Ba[na]);null!=fa?(mxEvent.isShiftDown(da)||(va=""==fa.fill||null==fa.fill?mxUtils.setStyle(va,mxConstants.STYLE_FILLCOLOR,null):
-mxUtils.setStyle(va,mxConstants.STYLE_FILLCOLOR,fa.fill),va=""==fa.gradient||null==fa.gradient?mxUtils.setStyle(va,mxConstants.STYLE_GRADIENTCOLOR,null):mxUtils.setStyle(va,mxConstants.STYLE_GRADIENTCOLOR,fa.gradient),mxEvent.isControlDown(da)||mxClient.IS_MAC&&mxEvent.isMetaDown(da)||!E.getModel().isVertex(Ba[na])||(va=""==fa.font||null==fa.font?mxUtils.setStyle(va,mxConstants.STYLE_FONTCOLOR,null):mxUtils.setStyle(va,mxConstants.STYLE_FONTCOLOR,fa.font))),mxEvent.isAltDown(da)||(va=""==fa.stroke||
-null==fa.fill?mxUtils.setStyle(va,mxConstants.STYLE_STROKECOLOR,null):mxUtils.setStyle(va,mxConstants.STYLE_STROKECOLOR,fa.stroke))):(va=mxUtils.setStyle(va,mxConstants.STYLE_FILLCOLOR,null),va=mxUtils.setStyle(va,mxConstants.STYLE_STROKECOLOR,null),va=mxUtils.setStyle(va,mxConstants.STYLE_GRADIENTCOLOR,null),E.getModel().isVertex(Ba[na])&&(va=mxUtils.setStyle(va,mxConstants.STYLE_FONTCOLOR,null)));E.getModel().setStyle(Ba[na],va)}}finally{E.getModel().endUpdate()}}));aa.className="geStyleButton";
+StyleFormatPanel.prototype.init=function(){var n=this.editorUi.getSelectionState();null!=this.defaultColorSchemes&&0<this.defaultColorSchemes.length&&"image"!=n.style.shape&&!n.containsLabel&&0<n.cells.length&&this.container.appendChild(this.addStyles(this.createPanel()));g.apply(this,arguments);null!=n.customProperties&&this.container.appendChild(this.addProperties(this.createPanel(),n.customProperties,n))};var k=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(n){var z=
+this.editorUi.getSelectionState();1==z.cells.length?this.addActions(n,["copyStyle","pasteStyle"]):1<=z.cells.length&&this.addActions(n,["pasteStyle","pasteData"]);k.apply(this,arguments);return n};EditorUi.prototype.propertiesCollapsed=!0;BaseFormatPanel.prototype.addProperties=function(n,z,G,M){function N(sa,oa,la,Ea,va){if(null!=la.valueChanged)la.valueChanged(oa,va);else{ba.getModel().beginUpdate();try{va=[];var Ca=[];if(null!=la.index){for(var xa=[],Da=la.parentRow.nextSibling;Da&&Da.getAttribute("data-pName")==
+sa;)xa.push(Da.getAttribute("data-pValue")),Da=Da.nextSibling;la.index<xa.length?null!=Ea?xa.splice(Ea,1):xa[la.index]=oa:xa.push(oa);null!=la.size&&xa.length>la.size&&(xa=xa.slice(0,la.size));oa=xa.join(",");null!=la.countProperty&&(ba.setCellStyles(la.countProperty,xa.length,ba.getSelectionCells()),va.push(la.countProperty),Ca.push(xa.length))}ba.setCellStyles(sa,oa,ba.getSelectionCells());va.push(sa);Ca.push(oa);if(null!=la.dependentProps)for(sa=0;sa<la.dependentProps.length;sa++){var Ba=la.dependentPropsDefVal[sa],
+Ka=la.dependentPropsVals[sa];if(Ka.length>oa)Ka=Ka.slice(0,oa);else for(var Ja=Ka.length;Ja<oa;Ja++)Ka.push(Ba);Ka=Ka.join(",");ba.setCellStyles(la.dependentProps[sa],Ka,ba.getSelectionCells());va.push(la.dependentProps[sa]);Ca.push(Ka)}if("function"==typeof la.onChange)la.onChange(ba,oa);Y.editorUi.fireEvent(new mxEventObject("styleChanged","keys",va,"values",Ca,"cells",ba.getSelectionCells()))}finally{ba.getModel().endUpdate()}}}function Q(sa,oa,la){var Ea=mxUtils.getOffset(n,!0),va=mxUtils.getOffset(sa,
+!0);oa.style.position="absolute";oa.style.left=va.x-Ea.x+"px";oa.style.top=va.y-Ea.y+"px";oa.style.width=sa.offsetWidth+"px";oa.style.height=sa.offsetHeight-(la?4:0)+"px";oa.style.zIndex=5}function S(sa,oa,la){function Ea(Ca){if(null==Ca||Ca==mxConstants.NONE)va.style.background="url('"+Dialog.prototype.noColorImage+"')";else if("default"==Ca)va.style.background="";else{var xa=mxUtils.getLightDarkColor(Ca);mxUtils.isLightDarkColor(Ca)&&xa.light!=xa.dark?va.style.background="linear-gradient(to right bottom, "+
+xa.cssText+" 50%, "+mxUtils.invertLightDarkColor(xa).cssText+" 50.3%)":va.style.background=Ca}}var va=document.createElement("div");va.style.width="32px";va.style.height="8px";va.style.margin="2px";va.style.borderStyle="solid";va.style.borderWidth="1px";Ea(oa);btn=mxUtils.button("",mxUtils.bind(Y,function(Ca){this.editorUi.pickColor(oa,function(xa){N(sa,xa,la);Ea(xa)});mxEvent.consume(Ca)}));btn.style.height="18px";btn.style.width="40px";btn.style.marginTop="1px";btn.style.marginLeft="1px";btn.className=
+"geColorBtn";btn.appendChild(va);return btn}function T(sa,oa,la,Ea,va,Ca,xa){null!=oa&&(oa=oa.split(","),da.push({name:sa,values:oa,type:la,defVal:Ea,countProperty:va,parentRow:Ca,isDeletable:!0,flipBkg:xa}));btn=mxUtils.button("+",mxUtils.bind(Y,function(Da){for(var Ba=Ca,Ka=0;null!=Ba.nextSibling;)if(Ba.nextSibling.getAttribute("data-pName")==sa)Ba=Ba.nextSibling,Ka++;else break;var Ja={type:la,parentRow:Ca,index:Ka,isDeletable:!0,defVal:Ea,countProperty:va};Ka=Z(sa,"",Ja,0==Ka%2,xa);N(sa,Ea,Ja);
+Ba.parentNode.insertBefore(Ka,Ba.nextSibling);mxEvent.consume(Da)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function W(sa,oa,la,Ea,va,Ca,xa){if(0<va){var Da=Array(va);oa=null!=oa?oa.split(","):[];for(var Ba=0;Ba<va;Ba++)Da[Ba]=null!=oa[Ba]?oa[Ba]:null!=Ea?Ea:"";da.push({name:sa,values:Da,type:la,defVal:Ea,parentRow:Ca,flipBkg:xa,size:va})}return document.createElement("div")}function X(sa,oa,la){var Ea=document.createElement("input");Ea.type="checkbox";
+Ea.checked="1"==oa;mxEvent.addListener(Ea,"change",function(){N(sa,Ea.checked?"1":"0",la)});return Ea}function Z(sa,oa,la,Ea,va){var Ca=la.dispName,xa=la.type,Da=document.createElement("tr");Da.className="gePropRow"+(va?"Dark":"")+(Ea?"Alt":"")+" gePropNonHeaderRow";Da.setAttribute("data-pName",sa);Da.setAttribute("data-pValue",oa);Ea=!1;null!=la.index&&(Da.setAttribute("data-index",la.index),Ca=(null!=Ca?Ca:"")+"["+la.index+"]",Ea=!0);var Ba=document.createElement("td");Ba.className="gePropRowCell";
+Ca=mxResources.get(Ca,null,Ca);mxUtils.write(Ba,Ca);Ba.setAttribute("title",Ca);Ea&&(Ba.style.textAlign="right");Da.appendChild(Ba);Ba=document.createElement("td");Ba.className="gePropRowCell";Ba.setAttribute("title",null!=oa?oa:mxResources.get("none"));if("color"==xa)Ba.appendChild(S(sa,oa,la));else if("bool"==xa||"boolean"==xa)Ba.appendChild(X(sa,oa,la));else if("enum"==xa){var Ka=la.enumList;for(va=0;va<Ka.length;va++)if(Ca=Ka[va],Ca.val==oa){mxUtils.write(Ba,mxResources.get(Ca.dispName,null,Ca.dispName));
+break}mxEvent.addListener(Ba,"click",mxUtils.bind(Y,function(){var Ja=document.createElement("select"),Ga=null;Q(Ba,Ja);for(var Aa=0;Aa<Ka.length;Aa++){var Ma=Ka[Aa],Va=document.createElement("option");Va.value=mxUtils.htmlEntities(Ma.val);mxUtils.write(Va,mxResources.get(Ma.dispName,null,Ma.dispName));Ja.appendChild(Va);null==Ma.val&&(Va.value="null",Ga=Va)}Ja.value=null==oa&&null!=Ga?"null":oa;n.appendChild(Ja);mxEvent.addListener(Ja,"change",function(){var Ua=mxUtils.htmlEntities(Ja.value);if(Ja[Ja.selectedIndex]==
+Ga||"null"==Ua.value)Ua=null;N(sa,Ua,la)});Ja.focus();mxEvent.addListener(Ja,"blur",function(){n.removeChild(Ja)})}))}else"dynamicArr"==xa?Ba.appendChild(T(sa,oa,la.subType,la.subDefVal,la.countProperty,Da,va)):"staticArr"==xa?Ba.appendChild(W(sa,oa,la.subType,la.subDefVal,la.size,Da,va)):"readOnly"==xa?(va=document.createElement("input"),va.setAttribute("readonly",""),va.value=oa,va.style.borderWidth="0px","id"==sa?(va.style.width="190px",va.style.position="relative",va.style.right="6px",va.style.float=
+"right",va.style.background="none",va.style.textAlign="right",Da.firstChild.setAttribute("colspan","2"),va.setAttribute("title",oa),Da.firstChild.appendChild(va)):(va.style.width="96px",Ba.appendChild(va))):(Ba.innerHTML=mxUtils.htmlEntities(decodeURIComponent(oa)),mxEvent.addListener(Ba,"click",mxUtils.bind(Y,function(){function Ja(){var Aa=Ga.value;Aa=0==Aa.length&&"string"!=xa&&"numbers"!=xa?0:Aa;la.allowAuto&&(null!=Aa.trim&&"auto"==Aa.trim().toLowerCase()?(Aa="auto",xa="string"):(Aa=parseFloat(Aa),
+Aa=isNaN(Aa)?0:Aa));null!=la.min&&Aa<la.min?Aa=la.min:null!=la.max&&Aa>la.max&&(Aa=la.max);var Ma=null;try{Ma="numbers"==xa?Aa.match(/\d+/g).map(Number).join(" "):encodeURIComponent(("int"==xa?parseInt(Aa):Aa)+"")}catch(Va){}N(sa,Ma,la,null,Ga)}var Ga=document.createElement("input");Q(Ba,Ga,!0);Ga.value=decodeURIComponent(oa);Ga.className="gePropEditor";"int"!=xa&&"float"!=xa||la.allowAuto||(Ga.type="number",Ga.step="int"==xa?"1":"any",null!=la.min&&(Ga.min=parseFloat(la.min)),null!=la.max&&(Ga.max=
+parseFloat(la.max)));n.appendChild(Ga);mxEvent.addListener(Ga,"keypress",function(Aa){13==Aa.keyCode&&Ja()});Ga.focus();mxEvent.addListener(Ga,"blur",function(){Ja()})})));la.isDeletable&&(va=mxUtils.button("-",mxUtils.bind(Y,function(Ja){N(sa,"",la,la.index);mxEvent.consume(Ja)})),va.style.height="16px",va.style.width="25px",va.style.float="right",va.className="geColorBtn",Ba.appendChild(va));Da.appendChild(Ba);return Da}var Y=this,ba=this.editorUi.editor.graph,da=[],ia=document.createElement("table");
+ia.className="geProperties geFullWidthElement";var ca=document.createElement("tr");ca.className="gePropHeader";var fa=document.createElement("th");fa.className="gePropHeaderCell";fa.style.paddingLeft="16px";fa.style.backgroundRepeat="no-repeat";fa.style.backgroundPosition="-2px 50%";fa.style.backgroundSize="20px";mxUtils.write(fa,mxResources.get("property"));ca.style.cursor="pointer";var aa=function(){var sa=ia.querySelectorAll(".gePropNonHeaderRow");if(Y.editorUi.propertiesCollapsed){fa.style.backgroundImage=
+"url('"+Editor.arrowRightImage+"')";var oa="none";for(var la=n.childNodes.length-1;0<=la;la--)try{var Ea=n.childNodes[la],va=Ea.nodeName.toUpperCase();"INPUT"!=va&&"SELECT"!=va||n.removeChild(Ea)}catch(Ca){}}else fa.style.backgroundImage="url('"+Editor.arrowDownImage+"')",oa="";for(la=0;la<sa.length;la++)sa[la].style.display=oa};mxEvent.addListener(ca,"click",function(){Y.editorUi.propertiesCollapsed=!Y.editorUi.propertiesCollapsed;aa()});ca.appendChild(fa);var ja=document.createElement("th");ja.className=
+"gePropHeaderCell";ja.style.paddingLeft="4px";mxUtils.write(ja,mxResources.get("value"));ca.appendChild(ja);ia.appendChild(ca);var ha=ja=!1;ca=null;1==G.vertices.length&&0==G.edges.length?ca=G.vertices[0].id:0==G.vertices.length&&1==G.edges.length&&(ca=G.edges[0].id);null==ca||M||ia.appendChild(Z("id",mxUtils.htmlEntities(ca),{dispName:"id",type:"readOnly"},!0,!1));for(var ea in z)if(M=z[ea],!M.primary&&("function"!=typeof M.isVisible||M.isVisible(G,this))){var ya=null!=M.getValue?M.getValue():null!=
+G.style[ea]?mxUtils.htmlEntities(G.style[ea]+""):null!=M.getDefaultValue?M.getDefaultValue(G,this):M.defVal;if("separator"==M.type)ha=!ha;else{if("staticArr"==M.type)M.size=parseInt(G.style[M.sizeProperty]||z[M.sizeProperty].defVal)||0;else if(null!=M.dependentProps){var ua=M.dependentProps,na=[],za=[];for(ca=0;ca<ua.length;ca++){var ma=G.style[ua[ca]];za.push(z[ua[ca]].subDefVal);na.push(null!=ma?ma.split(","):[])}M.dependentPropsDefVal=za;M.dependentPropsVals=na}ia.appendChild(Z(ea,ya,M,ja,ha));
+ja=!ja}}for(ca=0;ca<da.length;ca++)for(M=da[ca],z=M.parentRow,G=0;G<M.values.length;G++)ea=Z(M.name,M.values[G],{type:M.type,parentRow:M.parentRow,isDeletable:M.isDeletable,index:G,defVal:M.defVal,countProperty:M.countProperty,size:M.size},0==G%2,M.flipBkg),z.parentNode.insertBefore(ea,z.nextSibling),z=ea;n.appendChild(ia);aa();return n};StyleFormatPanel.prototype.addStyles=function(n){if(null!=this.defaultColorSchemes){var z=this.editorUi,G=z.editor.graph,M=document.createElement("div");M.style.padding=
+"6px 20px 0 24px";n.appendChild(M);var N=document.createElement("div");N.className="geSwitcher";N.style.padding="4px 18px 6px 0px";for(var Q=[],S=0;S<this.defaultColorSchemes.length;S++){var T=document.createElement("div");T.className="geSwitcherDot";mxUtils.bind(this,function(ba){mxEvent.addListener(T,"click",mxUtils.bind(this,function(){W(ba)}))})(S);Q.push(T);N.appendChild(T)}var W=mxUtils.bind(this,function(ba){null!=Q[ba]&&(null!=this.format.currentScheme&&null!=Q[this.format.currentScheme]&&
+(Q[this.format.currentScheme].style.background="transparent"),this.format.currentScheme=ba,X(this.defaultColorSchemes[this.format.currentScheme]),Q[this.format.currentScheme].style.background="#84d7ff")}),X=mxUtils.bind(this,function(ba){var da=mxUtils.clone(G.defaultVertexStyle);da[mxConstants.STYLE_STROKECOLOR]=null!=da[mxConstants.STYLE_STROKECOLOR]?da[mxConstants.STYLE_STROKECOLOR]:"default";da[mxConstants.STYLE_FILLCOLOR]=null!=da[mxConstants.STYLE_FILLCOLOR]?da[mxConstants.STYLE_FILLCOLOR]:
+"default";da[mxConstants.STYLE_FONTCOLOR]=null!=da[mxConstants.STYLE_FONTCOLOR]?da[mxConstants.STYLE_FONTCOLOR]:"default";G.replaceDefaultColors(new mxCell,da);var ia=mxUtils.bind(this,function(fa){var aa=mxUtils.button("",mxUtils.bind(this,function(ea){G.getModel().beginUpdate();try{for(var ya=z.getSelectionState().cells,ua=0;ua<ya.length;ua++){var na=G.getModel().getStyle(ya[ua]);null!=fa?(mxEvent.isShiftDown(ea)||(na=""==fa.fill||null==fa.fill?mxUtils.setStyle(na,mxConstants.STYLE_FILLCOLOR,null):
+mxUtils.setStyle(na,mxConstants.STYLE_FILLCOLOR,fa.fill),na=""==fa.gradient||null==fa.gradient?mxUtils.setStyle(na,mxConstants.STYLE_GRADIENTCOLOR,null):mxUtils.setStyle(na,mxConstants.STYLE_GRADIENTCOLOR,fa.gradient),mxEvent.isControlDown(ea)||mxClient.IS_MAC&&mxEvent.isMetaDown(ea)||!G.getModel().isVertex(ya[ua])||(na=""==fa.font||null==fa.font?mxUtils.setStyle(na,mxConstants.STYLE_FONTCOLOR,null):mxUtils.setStyle(na,mxConstants.STYLE_FONTCOLOR,fa.font))),mxEvent.isAltDown(ea)||(na=""==fa.stroke||
+null==fa.fill?mxUtils.setStyle(na,mxConstants.STYLE_STROKECOLOR,null):mxUtils.setStyle(na,mxConstants.STYLE_STROKECOLOR,fa.stroke))):(na=mxUtils.setStyle(na,mxConstants.STYLE_FILLCOLOR,null),na=mxUtils.setStyle(na,mxConstants.STYLE_STROKECOLOR,null),na=mxUtils.setStyle(na,mxConstants.STYLE_GRADIENTCOLOR,null),G.getModel().isVertex(ya[ua])&&(na=mxUtils.setStyle(na,mxConstants.STYLE_FONTCOLOR,null)));G.getModel().setStyle(ya[ua],na)}}finally{G.getModel().endUpdate()}}));aa.className="geStyleButton";
aa.style.width="36px";aa.style.height=10>=this.defaultColorSchemes.length?"24px":"30px";aa.style.margin="0px 6px 6px 0px";if(null!=fa){var ja="1px solid";null!=fa.border&&(ja=fa.border);if(null!=fa.gradient)aa.style.backgroundImage="linear-gradient("+mxUtils.getLightDarkColor(fa.fill).cssText+" 0px,"+mxUtils.getLightDarkColor(fa.gradient).cssText+" 100%)";else if(fa.fill==mxConstants.NONE)aa.style.background="url('"+Dialog.prototype.noColorImage+"')";else if(null==fa.fill||""==fa.fill)aa.style.backgroundColor=
-mxUtils.getLightDarkColor(mxUtils.getValue(ea,mxConstants.STYLE_FILLCOLOR,"#ffffff")).cssText;else{var ha=mxUtils.getLightDarkColor(fa.fill);aa.style.backgroundImage="linear-gradient(to right bottom, "+ha.cssText+" 50%, "+ha.light+" 50.3%)"}null==fa.stroke||fa.stroke==mxConstants.NONE?aa.style.border=ja+" transparent":""==fa.stroke?aa.style.border="1px solid "+mxUtils.getLightDarkColor(mxUtils.getValue(ea,mxConstants.STYLE_STROKECOLOR,"#000000")).cssText:(ha=mxUtils.getLightDarkColor(fa.stroke),aa.style.border=
-ja+" "+ha.cssText,aa.style.borderRightColor=ha.light,aa.style.borderBottomColor=aa.style.borderRightColor);null!=fa.title&&aa.setAttribute("title",fa.title)}else ja=mxUtils.getValue(ea,mxConstants.STYLE_FILLCOLOR,"#ffffff"),ha=mxUtils.getValue(ea,mxConstants.STYLE_STROKECOLOR,"#000000"),aa.style.backgroundColor=ja,aa.style.border="1px solid "+ha;aa.style.borderRadius="0";L.appendChild(aa);null!=fa&&null!=fa.gradient&&(ja=aa.cloneNode(!1),ja.style.backgroundImage="linear-gradient(light-dark(transparent, "+
-mxUtils.getLightDarkColor(fa.fill).light+") 0px, light-dark(transparent, "+mxUtils.getLightDarkColor(fa.gradient).light+") 100%)",ja.style.clipPath="polygon(0 100%, 100% 0, 100% 100%)",ja.style.backgroundColor="transparent",L.appendChild(ja),ja.style.marginLeft="-42px",mxEvent.addListener(ja,"click",function(){aa.click()}))});L.innerText="";if(null!=ca)for(var ba=0;ba<ca.length;ba++)0<ba&&0==mxUtils.mod(ba,4)&&mxUtils.br(L),ia(ca[ba])});null==this.format.currentScheme?W(Math.min(R.length-1,Editor.isDarkMode()?
-1:"1"==urlParams.sketch?5:0)):W(this.format.currentScheme);T=10>=this.defaultColorSchemes.length?43:23;var Y=document.createElement("div");Y.className="geButton";Y.style.cssText="position:absolute;left:0px;bottom:"+T+"px;width:20px;background-image:url("+Editor.chevronLeftImage+");";mxEvent.addListener(Y,"click",mxUtils.bind(this,function(){W(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var Z=document.createElement("div");Z.className="geButton";Z.style.cssText="position:absolute;left:186px;bottom:"+
-T+"px;width:20px;background-image:url("+Editor.chevronRightImage+");";1<this.defaultColorSchemes.length&&(n.appendChild(Y),n.appendChild(Z));mxEvent.addListener(Z,"click",mxUtils.bind(this,function(){W(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));X(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&n.appendChild(O)}return n}}Graph.fontMapping={"https://fonts.googleapis.com/css?family=Architects+Daughter":'@font-face { font-family: "Architects Daughter"; src: url('+
+mxUtils.getLightDarkColor(mxUtils.getValue(da,mxConstants.STYLE_FILLCOLOR,"#ffffff")).cssText;else{var ha=mxUtils.getLightDarkColor(fa.fill);aa.style.backgroundImage="linear-gradient(to right bottom, "+ha.cssText+" 50%, "+ha.light+" 50.3%)"}null==fa.stroke||fa.stroke==mxConstants.NONE?aa.style.border=ja+" transparent":""==fa.stroke?aa.style.border="1px solid "+mxUtils.getLightDarkColor(mxUtils.getValue(da,mxConstants.STYLE_STROKECOLOR,"#000000")).cssText:(ha=mxUtils.getLightDarkColor(fa.stroke),aa.style.border=
+ja+" "+ha.cssText,aa.style.borderRightColor=ha.light,aa.style.borderBottomColor=aa.style.borderRightColor);null!=fa.title&&aa.setAttribute("title",fa.title)}else ja=mxUtils.getValue(da,mxConstants.STYLE_FILLCOLOR,"#ffffff"),ha=mxUtils.getValue(da,mxConstants.STYLE_STROKECOLOR,"#000000"),aa.style.backgroundColor=ja,aa.style.border="1px solid "+ha;aa.style.borderRadius="0";M.appendChild(aa);null!=fa&&null!=fa.gradient&&(ja=aa.cloneNode(!1),ja.style.backgroundImage="linear-gradient(light-dark(transparent, "+
+mxUtils.getLightDarkColor(fa.fill).light+") 0px, light-dark(transparent, "+mxUtils.getLightDarkColor(fa.gradient).light+") 100%)",ja.style.clipPath="polygon(0 100%, 100% 0, 100% 100%)",ja.style.backgroundColor="transparent",M.appendChild(ja),ja.style.marginLeft="-42px",mxEvent.addListener(ja,"click",function(){aa.click()}))});M.innerText="";if(null!=ba)for(var ca=0;ca<ba.length;ca++)0<ca&&0==mxUtils.mod(ca,4)&&mxUtils.br(M),ia(ba[ca])});null==this.format.currentScheme?W(Math.min(Q.length-1,Editor.isDarkMode()?
+1:"1"==urlParams.sketch?5:0)):W(this.format.currentScheme);S=10>=this.defaultColorSchemes.length?43:23;var Z=document.createElement("div");Z.className="geButton";Z.style.cssText="position:absolute;left:0px;bottom:"+S+"px;width:20px;background-image:url("+Editor.chevronLeftImage+");";mxEvent.addListener(Z,"click",mxUtils.bind(this,function(){W(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var Y=document.createElement("div");Y.className="geButton";Y.style.cssText="position:absolute;left:186px;bottom:"+
+S+"px;width:20px;background-image:url("+Editor.chevronRightImage+");";1<this.defaultColorSchemes.length&&(n.appendChild(Z),n.appendChild(Y));mxEvent.addListener(Y,"click",mxUtils.bind(this,function(){W(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));X(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&n.appendChild(N)}return n}}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(n){return n.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS||n.substring(0,Editor.GOOGLE_FONTS_CSS2.length)==Editor.GOOGLE_FONTS_CSS2};Graph.isCssFontUrl=function(n){return Graph.isGoogleFontUrl(n)};Graph.rewriteGoogleFontUrl=function(n){null!=n&&n.substring(0,Editor.GOOGLE_FONTS.length)==Editor.GOOGLE_FONTS&&(n=Editor.GOOGLE_FONTS_CSS2+n.substring(Editor.GOOGLE_FONTS.length)+
-":wght@400;500");return n};Graph.createFontElement=function(n,A){var E=Graph.fontMapping[A];null==E&&Graph.isCssFontUrl(A)?(n=document.createElement("link"),n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("charset","UTF-8"),n.setAttribute("href",Graph.rewriteGoogleFontUrl(A))):(null==E&&(E='@font-face {\nfont-family: "'+n+'";\nsrc: url("'+A+'");\n}'),n=document.createElement("style"),mxUtils.write(n,E));return n};Graph.addRecentCustomFont=function(n,A){};Graph.addFont=
-function(n,A,E){if(null!=n&&0<n.length&&null!=A&&0<A.length){var L=n.toLowerCase();if("helvetica"!=L&&"arial"!=n&&"sans-serif"!=L){var O=Graph.customFontElements[L];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:n,url:A,elt:Graph.createFontElement(n,O)},Graph.customFontElements[L]=O,A=document.getElementsByTagName("head")[0],null!=E&&("link"==O.elt.nodeName.toLowerCase()?(O.elt.onload=E,O.elt.onerror=
-E):E()),null!=A&&A.appendChild(O.elt)):null!=E&&E()}else null!=E&&E()}else null!=E&&E();return n};Graph.getFontUrl=function(n,A){n=Graph.customFontElements[n.toLowerCase()];null!=n&&(A=n.url);return A};Graph.processFontAttributes=function(n){n=n.getElementsByTagName("*");for(var A=0;A<n.length;A++){var E=n[A].getAttribute("data-font-src");if(null!=E){var L="FONT"==n[A].nodeName?n[A].getAttribute("face"):n[A].style.fontFamily;null!=L&&Graph.addFont(L,E)}}};Graph.processFontStyle=function(n){if(null!=
-n){var A=mxUtils.getValue(n,"fontSource",null);if(null!=A){var E=mxUtils.getValue(n,mxConstants.STYLE_FONTFAMILY,null);if(null!=E)try{Graph.addFont(E,decodeURIComponent(A))}catch(L){}}}return n};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 m=Graph.prototype.init;Graph.prototype.init=function(){function n(O){A=O}m.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var A=null;mxEvent.addListener(this.container,"mouseenter",n);mxEvent.addListener(this.container,"mousemove",n);mxEvent.addListener(this.container,"mouseleave",
-function(O){A=null});this.isMouseInsertPoint=function(){return null!=A};var E=this.getInsertPoint;this.getInsertPoint=function(){return null!=A?this.getPointForEvent(A):E.apply(this,arguments)};var L=this.layoutManager.getLayout;this.layoutManager.getLayout=function(O){var R=this.graph.getCellStyle(O);if(null!=R&&"rack"==R.childLayout){var T=new mxStackLayout(this.graph,!1);T.gridSize=null!=R.rackUnitSize?parseFloat(R.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;
-T.marginLeft=R.marginLeft||0;T.marginRight=R.marginRight||0;T.marginTop=R.marginTop||0;T.marginBottom=R.marginBottom||0;T.allowGaps=R.allowGaps||0;T.horizontal="1"==mxUtils.getValue(R,"horizontalRack","0");T.resizeParent=!1;T.fill=!0;return T}return L.apply(this,arguments)};this.updateGlobalUrlVariables()};var t=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(n,A){return Graph.processFontStyle(t.apply(this,arguments))};var y=mxSvgCanvas2D.prototype.updateTextNodes;
-mxSvgCanvas2D.prototype.updateTextNodes=function(n,A,E,L,O,R,T,U,W,X,Y,Z){y.apply(this,arguments);Graph.processFontAttributes(Z)};var z=mxText.prototype.redraw;mxText.prototype.redraw=function(){z.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(n,A,E,L){function O(){for(var ba=U.getSelectionCells(),fa=[],aa=0;aa<ba.length;aa++)U.isCellVisible(ba[aa])&&fa.push(ba[aa]);U.setSelectionCells(fa)}function R(ba){U.setHiddenTags(ba?
-[]:W.slice());O();U.refresh()}function T(ba,fa){Y.innerText="";if(0<ba.length){var aa=document.createElement("table");aa.setAttribute("cellpadding","2");aa.style.boxSizing="border-box";aa.style.tableLayout="fixed";aa.style.width="100%";var ja=document.createElement("tbody");if(null!=ba&&0<ba.length)for(var ha=0;ha<ba.length;ha++)(function(da){function Ba(){var pa=U.getCellsForTags([da],null,null,!0);U.isEnabled()?U.setSelectionCells(pa):U.highlightCells(pa,null,null,70)}var na=0>mxUtils.indexOf(U.hiddenTags,
-da),va=document.createElement("tr"),Aa=document.createElement("td");Aa.style.align="center";Aa.style.width="16px";var ka=document.createElement("img");ka.setAttribute("src",na?Editor.visibleImage:Editor.hiddenImage);ka.setAttribute("title",mxResources.get(na?"hideIt":"show",[da]));mxUtils.setOpacity(ka,na?75:25);ka.className="geAdaptiveAsset";ka.style.verticalAlign="middle";ka.style.cursor="pointer";ka.style.width="16px";if(A||Editor.isDarkMode())ka.style.filter="invert(100%)";Aa.appendChild(ka);
-mxEvent.addListener(ka,"click",function(pa){mxEvent.isShiftDown(pa)?R(0<=mxUtils.indexOf(U.hiddenTags,da)):(U.toggleHiddenTag(da),O(),U.refresh());mxEvent.consume(pa)});va.appendChild(Aa);Aa=document.createElement("td");Aa.style.align="center";Aa.style.width="16px";ka=document.createElement("img");ka.setAttribute("src",Editor.selectImage);ka.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(ka,na?75:25);ka.className="geAdaptiveAsset";ka.style.verticalAlign="middle";ka.style.cursor=
-"pointer";ka.style.width="16px";if(A||Editor.isDarkMode())ka.style.filter="invert(100%)";mxEvent.addListener(ka,"click",function(pa){R(!0);Ba();mxEvent.consume(pa)});Aa.appendChild(ka);va.appendChild(Aa);Aa=document.createElement("td");Aa.style.overflow="hidden";Aa.style.whiteSpace="nowrap";Aa.style.textOverflow="ellipsis";Aa.style.verticalAlign="middle";Aa.style.cursor="pointer";Aa.setAttribute("title",da);a=document.createElement("a");mxUtils.write(a,da);a.style.textOverflow="ellipsis";a.style.position=
-"relative";mxUtils.setOpacity(a,na?100:40);Aa.appendChild(a);mxEvent.addListener(Aa,"click",function(pa){if(mxEvent.isShiftDown(pa))R(!0),Ba();else if(na&&0<U.hiddenTags.length)R(!0);else{var ma=W.slice(),Da=mxUtils.indexOf(ma,da);ma.splice(Da,1);U.setHiddenTags(ma);O();U.refresh()}mxEvent.consume(pa)});va.appendChild(Aa);if(U.isEnabled()){Aa=document.createElement("td");Aa.style.verticalAlign="middle";Aa.style.textAlign="center";Aa.style.width="18px";if(null==fa){Aa.style.align="center";Aa.style.width=
-"16px";ka=document.createElement("img");ka.setAttribute("src",Editor.trashImage);ka.setAttribute("title",mxResources.get("removeIt",[da]));mxUtils.setOpacity(ka,na?75:25);ka.className="geAdaptiveAsset";ka.style.verticalAlign="middle";ka.style.cursor="pointer";ka.style.width="16px";if(A||Editor.isDarkMode())ka.style.filter="invert(100%)";mxEvent.addListener(ka,"click",function(pa){var ma=mxUtils.indexOf(W,da);0<=ma&&W.splice(ma,1);U.removeTagsForCells(U.model.getDescendants(U.model.getRoot()),[da]);
-U.refresh();mxEvent.consume(pa)});Aa.appendChild(ka)}else{var ta=document.createElement("input");ta.setAttribute("type","checkbox");ta.style.margin="0px";ta.defaultChecked=null!=fa&&0<=mxUtils.indexOf(fa,da);ta.checked=ta.defaultChecked;ta.style.background="transparent";ta.setAttribute("title",mxResources.get(ta.defaultChecked?"removeIt":"add",[da]));mxEvent.addListener(ta,"change",function(pa){ta.checked?U.addTagsForCells(U.getSelectionCells(),[da]):U.removeTagsForCells(U.getSelectionCells(),[da]);
-mxEvent.consume(pa)});Aa.appendChild(ta)}va.appendChild(Aa)}ja.appendChild(va)})(ba[ha]);aa.appendChild(ja);Y.appendChild(aa)}}var U=this,W=U.hiddenTags.slice(),X=document.createElement("div");X.style.userSelect="none";X.style.overflow="hidden";X.style.padding="10px";X.style.height="100%";var Y=document.createElement("div");Y.style.position="absolute";Y.style.boxSizing="border-box";Y.style.userSelect="none";Y.style.overflow="auto";Y.style.padding="3px";Y.style.left="0px";Y.style.right="0px";Y.style.top=
-"0px";Y.style.bottom="0px";X.appendChild(Y);U.addListener(mxEvent.ROOT,function(){W=U.hiddenTags.slice()});var Z=mxUtils.bind(this,function(ba,fa){if(n()){ba=U.getAllTags();for(fa=0;fa<ba.length;fa++)0>mxUtils.indexOf(W,ba[fa])&&W.push(ba[fa]);W.sort();U.isSelectionEmpty()?T(W):T(W,U.getCommonTagsForCells(U.getSelectionCells()))}});U.selectionModel.addListener(mxEvent.CHANGE,Z);U.model.addListener(mxEvent.CHANGE,Z);U.addListener(mxEvent.REFRESH,Z);var ca=document.createElement("div");ca.className=
-"geToolbarContainer geDialogToolbar";ca.style.position="absolute";ca.style.display="flex";ca.style.bottom="0px";ca.style.left="0px";ca.style.right="0px";ca.style.height="32px";ca.style.overflow="hidden";ca.style.padding="3px 4px 4px 4px";ca.style.borderWidth="1px 0px 0px 0px";ca.style.borderStyle="solid";ca.style.whiteSpace="nowrap";if(U.isEnabled()){Y.style.bottom="32px";var ea=document.createElement("a");ea.className="geButton";var ia=ea.cloneNode(!1);ia.style.backgroundImage="url("+Editor.visibleImage+
-")";ia.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(ia,"click",function(ba){U.setHiddenTags([]);mxEvent.isShiftDown(ba)||(W=U.hiddenTags.slice());O();U.refresh();mxEvent.consume(ba)});ca.appendChild(ia);null!=E&&(ea=ea.cloneNode(!1),ea.style.backgroundImage="url("+Editor.plusImage+")",ea.setAttribute("title",mxResources.get("add")),mxEvent.addListener(ea,"click",function(ba){E(W,function(fa){W=fa;Z()});mxEvent.consume(ba)}),ca.appendChild(ea));X.appendChild(ca)}null!=L&&ca.appendChild(L);
-return{div:X,refresh:Z}};Graph.prototype.getCustomFonts=function(){var n=this.extFonts;n=null!=n?n.slice():[];for(var A in Graph.customFontElements){var E=Graph.customFontElements[A];n.push({name:E.name,url:E.url})}return n};Graph.prototype.setFont=function(n,A){Graph.addFont(n,A);var E=Editor.guid();document.execCommand("fontname",!1,E);for(var L=this.cellEditor.textarea.getElementsByTagName("font"),O=!1,R=0;R<L.length;R++)L[R].getAttribute("face")==E&&(O=!0,L[R].setAttribute("face",n),null!=A?L[R].setAttribute("data-font-src",
-A):L[R].removeAttribute("data-font-src"));O||document.execCommand("fontname",!1,n)};var I=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return I.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 n=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=n)for(var A in n)this.globalVars[A]=
-n[A]}catch(E){null!=window.console&&console.log("Error in vars URL parameter: "+E)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var F=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(n){var A=F.apply(this,arguments);null==A&&null!=this.globalVars&&(A=this.globalVars[n]);return A};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var n=this.themes["default-style2"];this.defaultStylesheet=
-(new mxCodec(n.ownerDocument)).decode(n)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var C=Graph.prototype.getSvg;Graph.prototype.getSvg=function(n,A,E,L,O,R,T,U,W,X,Y,Z,ca,ea,ia,ba){var fa=C.apply(this,arguments);if(null!=Z){var aa=fa.getAttribute("style");null==aa&&(aa="");Z="auto"==Z||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":Z;fa.setAttribute("style",aa+(" color-scheme: "+Z+";"))}var ja=this.getCustomFonts();
-if(Y&&0<ja.length){var ha=fa.ownerDocument;aa=null!=ha.createElementNS?ha.createElementNS(mxConstants.NS_SVG,"style"):ha.createElement("style");null!=ha.setAttributeNS?aa.setAttributeNS("type","text/css"):aa.setAttribute("type","text/css");for(var da="",Ba="",na=0;na<ja.length;na++){var va=ja[na].name,Aa=ja[na].url;Graph.isCssFontUrl(Aa)?da+="@import url("+Graph.rewriteGoogleFontUrl(Aa)+");\n":Ba+='@font-face {\nfont-family: "'+va+'";\nsrc: url("'+Aa+'");\n}\n'}aa.appendChild(ha.createTextNode(da+
-Ba));fa.getElementsByTagName("defs")[0].appendChild(aa)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(fa);this.mathEnabled&&(document.body.appendChild(fa),Editor.MathJaxRender(fa),fa.parentNode.removeChild(fa),aa=fa.ownerDocument.getElementById("MJX-SVG-styles"),null!=aa&&fa.getElementsByTagName("defs")[0].appendChild(aa.cloneNode(!0)));return fa};var Q=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(n){Q.apply(this,
-arguments);null!=n.secondLabel&&(n.secondLabel.destroy(),n.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(n){return[n.shape,n.text,n.secondLabel,n.control]};var S=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){S.apply(this,arguments);this.enumerationState=0};var V=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(n){null!=n.shape&&this.redrawEnumerationState(n);return V.apply(this,arguments)};
-mxGraphView.prototype.createEnumerationValue=function(n){n=decodeURIComponent(mxUtils.getValue(n.style,"enumerateValue",""));""==n&&(n=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(n)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(n){var A="1"==mxUtils.getValue(n.style,"enumerate",0);A&&null==n.secondLabel?(n.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),
-n.secondLabel.size=12,n.secondLabel.state=n,n.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(n,n.secondLabel)):A||null==n.secondLabel||(n.secondLabel.destroy(),n.secondLabel=null);A=n.secondLabel;if(null!=A){var E=n.view.scale,L=this.createEnumerationValue(n);n=this.graph.model.isVertex(n.cell)?new mxRectangle(n.x+n.width-4*E,n.y+4*E,0,0):mxRectangle.fromPoint(n.view.getPoint(n));A.bounds.equals(n)&&A.value==L&&A.scale==E||(A.bounds=n,A.value=L,A.scale=
-E,A.redraw())}};var P=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();P.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var u=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){u.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=
-function(n,A){"data:action/json,"==n.substring(0,17)&&(n=JSON.parse(n.substring(17)),null!=n.actions&&this.executeCustomActions(n.actions,null,A))};Graph.prototype.executeCustomActions=function(n,A,E){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 L=!1,O=0,R=0,T=mxUtils.bind(this,function(){L||(L=!0,this.model.beginUpdate())}),U=mxUtils.bind(this,function(){L&&(L=!1,this.model.endUpdate())}),W=mxUtils.bind(this,function(){0<O&&O--;0==O&&X()}),X=mxUtils.bind(this,function(){if(R<n.length){var Y=this.stoppingCustomActions,Z=n[R++],ca=[];if(null!=Z.open)if(U(),this.isCustomLink(Z.open)){if(!this.customLinkClicked(Z.open,E))return}else this.openLink(Z.open);null==Z.wait||Y||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=
-this.pendingExecuteNextAction=null;W()}),O++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=Z.wait?parseInt(Z.wait):1E3),U());null!=Z.opacity&&null!=Z.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(Z.opacity,!0)),Z.opacity.value);null!=Z.fadeIn&&(O++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Z.fadeIn,!0)),0,1,W,Y?0:Z.fadeIn.delay));null!=Z.fadeOut&&(O++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Z.fadeOut,
-!0)),1,0,W,Y?0:Z.fadeOut.delay));null!=Z.wipeIn&&(ca=ca.concat(this.createWipeAnimations(this.getCellsForAction(Z.wipeIn,!0),!0)));null!=Z.wipeOut&&(ca=ca.concat(this.createWipeAnimations(this.getCellsForAction(Z.wipeOut,!0),!1)));null!=Z.toggle&&(T(),this.toggleCells(this.getCellsForAction(Z.toggle,!0)));if(null!=Z.show){T();var ea=this.getCellsForAction(Z.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(ea),1);this.setCellsVisible(ea,!0)}null!=Z.hide&&(T(),ea=this.getCellsForAction(Z.hide,
-!0),Graph.setOpacityForNodes(this.getNodesForCells(ea),0),this.setCellsVisible(ea,!1));null!=Z.toggleStyle&&null!=Z.toggleStyle.key&&(T(),this.toggleCellStyles(Z.toggleStyle.key,null!=Z.toggleStyle.defaultValue?Z.toggleStyle.defaultValue:"0",this.getCellsForAction(Z.toggleStyle,!0)));null!=Z.style&&null!=Z.style.key&&(T(),this.setCellStyles(Z.style.key,Z.style.value,this.getCellsForAction(Z.style,!0)));ea=[];null!=Z.select&&this.isEnabled()&&(ea=this.getCellsForAction(Z.select),this.setSelectionCells(ea));
-null!=Z.highlight&&(ea=this.getCellsForAction(Z.highlight),this.highlightCells(ea,Z.highlight.color,Z.highlight.duration,Z.highlight.opacity));null!=Z.scroll&&(ea=this.getCellsForAction(Z.scroll));null!=Z.viewbox&&this.fitWindow(Z.viewbox,Z.viewbox.border);0<ea.length&&this.scrollCellToVisible(ea[0]);null!=E&&null!=Z.explore&&Graph.exploreFromCell(this,E,Z.explore);if(null!=Z.tags){if(null!=Z.tags.toggle){var ia=Z.tags.toggle;0==ia.length&&(ia=this.getAllTags());for(ea=0;ea<ia.length;ea++)this.toggleHiddenTag(ia[ea])}ia=
-null;null!=Z.tags.hidden&&(null==ia&&(ia=[]),ia=ia.concat(Z.tags.hidden));if(null!=Z.tags.visible){null==ia&&(ia=[]);var ba=this.getAllTags();for(ea=0;ea<ba.length;ea++)0>mxUtils.indexOf(Z.tags.visible,ba[ea])&&0>mxUtils.indexOf(ia,ba[ea])&&ia.push(ba[ea])}null!=ia&&this.setHiddenTags(ia);this.refresh()}0<ca.length&&(O++,this.executeAnimations(ca,W,Y?1:Z.steps,Y?0:Z.delay));0==O?X():U()}else this.stoppingCustomActions=this.executingCustomActions=!1,U(),null!=A&&A()});X()}};Graph.prototype.doUpdateCustomLinksForCell=
-function(n,A){var E=this.getLinkForCell(A);null!=E&&"data:action/json,"==E.substring(0,17)&&this.setLinkForCell(A,this.updateCustomLink(n,E));if(this.isHtmlLabel(A)){var L=document.createElement("div");L.innerHTML=Graph.sanitizeHtml(this.getLabel(A));for(var O=L.getElementsByTagName("a"),R=!1,T=0;T<O.length;T++)E=O[T].getAttribute("href"),null!=E&&"data:action/json,"==E.substring(0,17)&&(O[T].setAttribute("href",this.updateCustomLink(n,E)),R=!0);R&&this.labelChanged(A,L.innerHTML)}};Graph.prototype.updateCustomLink=
-function(n,A){if("data:action/json,"==A.substring(0,17))try{var E=JSON.parse(A.substring(17));null!=E.actions&&(this.updateCustomLinkActions(n,E.actions),A="data:action/json,"+JSON.stringify(E))}catch(L){}return A};Graph.prototype.updateCustomLinkActions=function(n,A){for(var E=0;E<A.length;E++){var L=A[E],O;for(O in L)this.updateCustomLinkAction(n,L[O],"cells"),this.updateCustomLinkAction(n,L[O],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(n,A,E){if(null!=A&&null!=A[E]){for(var L=
-[],O=0;O<A[E].length;O++)if("*"==A[E][O])L.push(A[E][O]);else{var R=n[A[E][O]];null!=R?""!=R&&L.push(R):L.push(A[E][O])}A[E]=L}};Graph.prototype.getCellsForAction=function(n,A){A=this.getCellsById(n.cells).concat(this.getCellsForTags(n.tags,null,A));if(null!=n.excludeCells){for(var E=[],L=0;L<A.length;L++)0>n.excludeCells.indexOf(A[L].id)&&E.push(A[L]);A=E}return A};Graph.prototype.getCellsById=function(n){var A=[];if(null!=n)for(var E=0;E<n.length;E++)if("*"==n[E]){var L=this.model.getRoot();A=A.concat(this.model.filterDescendants(function(R){return R!=
-L},L))}else{var O=this.model.getCell(n[E]);null!=O&&A.push(O)}return A};var x=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(n){return x.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(n))};Graph.prototype.setHiddenTags=function(n){this.hiddenTags=n;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(n){var A=mxUtils.indexOf(this.hiddenTags,n);0>A?this.hiddenTags.push(n):0<=A&&this.hiddenTags.splice(A,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};
-Graph.prototype.isAllTagsHidden=function(n){if(null==n||0==n.length||0==this.hiddenTags.length)return!1;n=n.split(" ");if(n.length>this.hiddenTags.length)return!1;for(var A=0;A<n.length;A++)if(0>mxUtils.indexOf(this.hiddenTags,n[A]))return!1;return!0};Graph.prototype.getCellsForTags=function(n,A,E,L){var O=[];if(null!=n){A=null!=A?A:this.model.getDescendants(this.model.getRoot());for(var R=0,T={},U=0;U<n.length;U++)0<n[U].length&&(T[n[U]]=!0,R++);for(U=0;U<A.length;U++)if(E&&this.model.getParent(A[U])==
-this.model.root||this.model.isVertex(A[U])||this.model.isEdge(A[U])){var W=this.getTagsForCell(A[U]),X=!1;if(0<W.length&&(W=W.split(" "),W.length>=n.length)){for(var Y=X=0;Y<W.length&&X<R;Y++)null!=T[W[Y]]&&X++;X=X==R}X&&(1!=L||this.isCellVisible(A[U]))&&O.push(A[U])}}return O};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(n){for(var A=null,E=[],L=0;L<n.length;L++){var O=this.getTagsForCell(n[L]);
-E=[];if(0<O.length){O=O.split(" ");for(var R={},T=0;T<O.length;T++)if(null==A||null!=A[O[T]])R[O[T]]=!0,E.push(O[T]);A=R}else return[]}return E};Graph.prototype.getTagsForCells=function(n){for(var A=[],E={},L=0;L<n.length;L++){var O=this.getTagsForCell(n[L]);if(0<O.length){O=O.split(" ");for(var R=0;R<O.length;R++)null==E[O[R]]&&(E[O[R]]=!0,A.push(O[R]))}}return A};Graph.prototype.getTagsForCell=function(n){return this.getAttributeForCell(n,"tags","")};Graph.prototype.addTagsForCells=function(n,A){if(0<
-n.length&&0<A.length){this.model.beginUpdate();try{for(var E=0;E<n.length;E++){for(var L=this.getTagsForCell(n[E]),O=L.split(" "),R=!1,T=0;T<A.length;T++){var U=mxUtils.trim(A[T]);""!=U&&0>mxUtils.indexOf(O,U)&&(L=0<L.length?L+" "+U:U,R=!0)}R&&this.setAttributeForCell(n[E],"tags",L)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(n,A){if(0<n.length&&0<A.length){this.model.beginUpdate();try{for(var E=0;E<n.length;E++){var L=this.getTagsForCell(n[E]);if(0<L.length){for(var O=
-L.split(" "),R=!1,T=0;T<A.length;T++){var U=mxUtils.indexOf(O,A[T]);0<=U&&(O.splice(U,1),R=!0)}R&&this.setAttributeForCell(n[E],"tags",O.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(n){this.model.beginUpdate();try{for(var A=0;A<n.length;A++)this.model.setVisible(n[A],!this.model.isVisible(n[A]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(n,A){this.model.beginUpdate();try{for(var E=0;E<n.length;E++)this.model.setVisible(n[E],A)}finally{this.model.endUpdate()}};
-Graph.prototype.highlightCells=function(n,A,E,L){for(var O=0;O<n.length;O++)this.highlightCell(n[O],A,E,L)};Graph.prototype.highlightCell=function(n,A,E,L,O){A=null!=A?A:mxConstants.DEFAULT_VALID_COLOR;E=null!=E?E:1E3;n=this.view.getState(n);var R=null;null!=n&&(O=null!=O?O:4,O=Math.max(O+1,mxUtils.getValue(n.style,mxConstants.STYLE_STROKEWIDTH,1)+O),R=new mxCellHighlight(this,A,O,!1),null!=L&&(R.opacity=L),R.highlight(n),window.setTimeout(function(){null!=R.shape&&(mxUtils.setPrefixedStyle(R.shape.node.style,
-"transition","all 1200ms ease-in-out"),R.shape.node.style.opacity=0);window.setTimeout(function(){R.destroy()},1200)},E));return R};Graph.prototype.addSvgShadow=function(n,A,E,L){E=null!=E?E:!1;L=null!=L?L:!0;var O=n.ownerDocument,R=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"filter"):O.createElement("filter");R.setAttribute("id",this.shadowId);var T=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feGaussianBlur"):O.createElement("feGaussianBlur");T.setAttribute("in",
-"SourceAlpha");T.setAttribute("stdDeviation",this.svgShadowBlur);T.setAttribute("result","blur");R.appendChild(T);T=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feOffset"):O.createElement("feOffset");T.setAttribute("in","blur");T.setAttribute("dx",this.svgShadowSize);T.setAttribute("dy",this.svgShadowSize);T.setAttribute("result","offsetBlur");R.appendChild(T);T=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feFlood"):O.createElement("feFlood");T.setAttribute("flood-color",
-this.svgShadowColor);T.setAttribute("flood-opacity",this.svgShadowOpacity);T.setAttribute("result","offsetColor");R.appendChild(T);T=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feComposite"):O.createElement("feComposite");T.setAttribute("in","offsetColor");T.setAttribute("in2","offsetBlur");T.setAttribute("operator","in");T.setAttribute("result","offsetBlur");R.appendChild(T);T=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feBlend"):O.createElement("feBlend");T.setAttribute("in",
-"SourceGraphic");T.setAttribute("in2","offsetBlur");R.appendChild(T);T=n.getElementsByTagName("defs");0==T.length?(O=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"defs"):O.createElement("defs"),null!=n.firstChild?n.insertBefore(O,n.firstChild):n.appendChild(O)):O=T[0];O.appendChild(R);E||(A=null!=A?A:n.getElementsByTagName("g")[0],null!=A&&(A.setAttribute("filter","url(#"+this.shadowId+")"),!isNaN(parseInt(n.getAttribute("width")))&&L&&(n.setAttribute("width",parseInt(n.getAttribute("width"))+
-6),n.setAttribute("height",parseInt(n.getAttribute("height"))+6),A=n.getAttribute("viewBox"),null!=A&&0<A.length&&(A=A.split(" "),3<A.length&&(w=parseFloat(A[2])+6,h=parseFloat(A[3])+6,n.setAttribute("viewBox",A[0]+" "+A[1]+" "+w+" "+h))))));return R};Graph.prototype.setShadowVisible=function(n,A){mxClient.IS_SVG&&!mxClient.IS_SF&&(A=null!=A?A:!0,(this.shadowVisible=n)?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 n=this.model.getChildCount(this.model.root),A=0;do var E=this.model.getChildAt(this.model.root,A);while(A++<n&&"1"==mxUtils.getValue(this.getCellStyle(E),"locked","0"));null!=E&&this.setDefaultParent(E)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+
+":wght@400;500");return n};Graph.createFontElement=function(n,z){var G=Graph.fontMapping[z];null==G&&Graph.isCssFontUrl(z)?(n=document.createElement("link"),n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("charset","UTF-8"),n.setAttribute("href",Graph.rewriteGoogleFontUrl(z))):(null==G&&(G='@font-face {\nfont-family: "'+n+'";\nsrc: url("'+z+'");\n}'),n=document.createElement("style"),mxUtils.write(n,G));return n};Graph.addRecentCustomFont=function(n,z){};Graph.addFont=
+function(n,z,G){if(null!=n&&0<n.length&&null!=z&&0<z.length){var M=n.toLowerCase();if("helvetica"!=M&&"arial"!=n&&"sans-serif"!=M){var N=Graph.customFontElements[M];null!=N&&N.url!=z&&(N.elt.parentNode.removeChild(N.elt),N=null);null==N?(N=z,"http:"==z.substring(0,5)&&(N=PROXY_URL+"?url="+encodeURIComponent(z)),N={name:n,url:z,elt:Graph.createFontElement(n,N)},Graph.customFontElements[M]=N,z=document.getElementsByTagName("head")[0],null!=G&&("link"==N.elt.nodeName.toLowerCase()?(N.elt.onload=G,N.elt.onerror=
+G):G()),null!=z&&z.appendChild(N.elt)):null!=G&&G()}else null!=G&&G()}else null!=G&&G();return n};Graph.getFontUrl=function(n,z){n=Graph.customFontElements[n.toLowerCase()];null!=n&&(z=n.url);return z};Graph.processFontAttributes=function(n){n=n.getElementsByTagName("*");for(var z=0;z<n.length;z++){var G=n[z].getAttribute("data-font-src");if(null!=G){var M="FONT"==n[z].nodeName?n[z].getAttribute("face"):n[z].style.fontFamily;null!=M&&Graph.addFont(M,G)}}};Graph.processFontStyle=function(n){if(null!=
+n){var z=mxUtils.getValue(n,"fontSource",null);if(null!=z){var G=mxUtils.getValue(n,mxConstants.STYLE_FONTFAMILY,null);if(null!=G)try{Graph.addFont(G,decodeURIComponent(z))}catch(M){}}}return n};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 m=Graph.prototype.init;Graph.prototype.init=function(){function n(N){z=N}m.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var z=null;mxEvent.addListener(this.container,"mouseenter",n);mxEvent.addListener(this.container,"mousemove",n);mxEvent.addListener(this.container,"mouseleave",
+function(N){z=null});this.isMouseInsertPoint=function(){return null!=z};var G=this.getInsertPoint;this.getInsertPoint=function(){return null!=z?this.getPointForEvent(z):G.apply(this,arguments)};var M=this.layoutManager.getLayout;this.layoutManager.getLayout=function(N){var Q=this.graph.getCellStyle(N);if(null!=Q&&"rack"==Q.childLayout){var S=new mxStackLayout(this.graph,!1);S.gridSize=null!=Q.rackUnitSize?parseFloat(Q.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;
+S.marginLeft=Q.marginLeft||0;S.marginRight=Q.marginRight||0;S.marginTop=Q.marginTop||0;S.marginBottom=Q.marginBottom||0;S.allowGaps=Q.allowGaps||0;S.horizontal="1"==mxUtils.getValue(Q,"horizontalRack","0");S.resizeParent=!1;S.fill=!0;return S}return M.apply(this,arguments)};this.updateGlobalUrlVariables()};var u=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(n,z){return Graph.processFontStyle(u.apply(this,arguments))};var x=mxSvgCanvas2D.prototype.updateTextNodes;
+mxSvgCanvas2D.prototype.updateTextNodes=function(n,z,G,M,N,Q,S,T,W,X,Z,Y){x.apply(this,arguments);Graph.processFontAttributes(Y)};var A=mxText.prototype.redraw;mxText.prototype.redraw=function(){A.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(n,z,G,M){function N(){for(var ca=T.getSelectionCells(),fa=[],aa=0;aa<ca.length;aa++)T.isCellVisible(ca[aa])&&fa.push(ca[aa]);T.setSelectionCells(fa)}function Q(ca){T.setHiddenTags(ca?
+[]:W.slice());N();T.refresh()}function S(ca,fa){Z.innerText="";if(0<ca.length){var aa=document.createElement("table");aa.setAttribute("cellpadding","2");aa.style.boxSizing="border-box";aa.style.tableLayout="fixed";aa.style.width="100%";var ja=document.createElement("tbody");if(null!=ca&&0<ca.length)for(var ha=0;ha<ca.length;ha++)(function(ea){function ya(){var oa=T.getCellsForTags([ea],null,null,!0);T.isEnabled()?T.setSelectionCells(oa):T.highlightCells(oa,null,null,70)}var ua=0>mxUtils.indexOf(T.hiddenTags,
+ea),na=document.createElement("tr"),za=document.createElement("td");za.style.align="center";za.style.width="16px";var ma=document.createElement("img");ma.setAttribute("src",ua?Editor.visibleImage:Editor.hiddenImage);ma.setAttribute("title",mxResources.get(ua?"hideIt":"show",[ea]));mxUtils.setOpacity(ma,ua?75:25);ma.className="geAdaptiveAsset";ma.style.verticalAlign="middle";ma.style.cursor="pointer";ma.style.width="16px";if(z||Editor.isDarkMode())ma.style.filter="invert(100%)";za.appendChild(ma);
+mxEvent.addListener(ma,"click",function(oa){mxEvent.isShiftDown(oa)?Q(0<=mxUtils.indexOf(T.hiddenTags,ea)):(T.toggleHiddenTag(ea),N(),T.refresh());mxEvent.consume(oa)});na.appendChild(za);za=document.createElement("td");za.style.align="center";za.style.width="16px";ma=document.createElement("img");ma.setAttribute("src",Editor.selectImage);ma.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(ma,ua?75:25);ma.className="geAdaptiveAsset";ma.style.verticalAlign="middle";ma.style.cursor=
+"pointer";ma.style.width="16px";if(z||Editor.isDarkMode())ma.style.filter="invert(100%)";mxEvent.addListener(ma,"click",function(oa){Q(!0);ya();mxEvent.consume(oa)});za.appendChild(ma);na.appendChild(za);za=document.createElement("td");za.style.overflow="hidden";za.style.whiteSpace="nowrap";za.style.textOverflow="ellipsis";za.style.verticalAlign="middle";za.style.cursor="pointer";za.setAttribute("title",ea);a=document.createElement("a");mxUtils.write(a,ea);a.style.textOverflow="ellipsis";a.style.position=
+"relative";mxUtils.setOpacity(a,ua?100:40);za.appendChild(a);mxEvent.addListener(za,"click",function(oa){if(mxEvent.isShiftDown(oa))Q(!0),ya();else if(ua&&0<T.hiddenTags.length)Q(!0);else{var la=W.slice(),Ea=mxUtils.indexOf(la,ea);la.splice(Ea,1);T.setHiddenTags(la);N();T.refresh()}mxEvent.consume(oa)});na.appendChild(za);if(T.isEnabled()){za=document.createElement("td");za.style.verticalAlign="middle";za.style.textAlign="center";za.style.width="18px";if(null==fa){za.style.align="center";za.style.width=
+"16px";ma=document.createElement("img");ma.setAttribute("src",Editor.trashImage);ma.setAttribute("title",mxResources.get("removeIt",[ea]));mxUtils.setOpacity(ma,ua?75:25);ma.className="geAdaptiveAsset";ma.style.verticalAlign="middle";ma.style.cursor="pointer";ma.style.width="16px";if(z||Editor.isDarkMode())ma.style.filter="invert(100%)";mxEvent.addListener(ma,"click",function(oa){var la=mxUtils.indexOf(W,ea);0<=la&&W.splice(la,1);T.removeTagsForCells(T.model.getDescendants(T.model.getRoot()),[ea]);
+T.refresh();mxEvent.consume(oa)});za.appendChild(ma)}else{var sa=document.createElement("input");sa.setAttribute("type","checkbox");sa.style.margin="0px";sa.defaultChecked=null!=fa&&0<=mxUtils.indexOf(fa,ea);sa.checked=sa.defaultChecked;sa.style.background="transparent";sa.setAttribute("title",mxResources.get(sa.defaultChecked?"removeIt":"add",[ea]));mxEvent.addListener(sa,"change",function(oa){sa.checked?T.addTagsForCells(T.getSelectionCells(),[ea]):T.removeTagsForCells(T.getSelectionCells(),[ea]);
+mxEvent.consume(oa)});za.appendChild(sa)}na.appendChild(za)}ja.appendChild(na)})(ca[ha]);aa.appendChild(ja);Z.appendChild(aa)}}var T=this,W=T.hiddenTags.slice(),X=document.createElement("div");X.style.userSelect="none";X.style.overflow="hidden";X.style.padding="10px";X.style.height="100%";var Z=document.createElement("div");Z.style.position="absolute";Z.style.boxSizing="border-box";Z.style.userSelect="none";Z.style.overflow="auto";Z.style.padding="3px";Z.style.left="0px";Z.style.right="0px";Z.style.top=
+"0px";Z.style.bottom="0px";X.appendChild(Z);T.addListener(mxEvent.ROOT,function(){W=T.hiddenTags.slice()});var Y=mxUtils.bind(this,function(ca,fa){if(n()){ca=T.getAllTags();for(fa=0;fa<ca.length;fa++)0>mxUtils.indexOf(W,ca[fa])&&W.push(ca[fa]);W.sort();T.isSelectionEmpty()?S(W):S(W,T.getCommonTagsForCells(T.getSelectionCells()))}});T.selectionModel.addListener(mxEvent.CHANGE,Y);T.model.addListener(mxEvent.CHANGE,Y);T.addListener(mxEvent.REFRESH,Y);var ba=document.createElement("div");ba.className=
+"geToolbarContainer geDialogToolbar";ba.style.position="absolute";ba.style.display="flex";ba.style.bottom="0px";ba.style.left="0px";ba.style.right="0px";ba.style.height="32px";ba.style.overflow="hidden";ba.style.padding="3px 4px 4px 4px";ba.style.borderWidth="1px 0px 0px 0px";ba.style.borderStyle="solid";ba.style.whiteSpace="nowrap";if(T.isEnabled()){Z.style.bottom="32px";var da=document.createElement("a");da.className="geButton";var ia=da.cloneNode(!1);ia.style.backgroundImage="url("+Editor.visibleImage+
+")";ia.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(ia,"click",function(ca){T.setHiddenTags([]);mxEvent.isShiftDown(ca)||(W=T.hiddenTags.slice());N();T.refresh();mxEvent.consume(ca)});ba.appendChild(ia);null!=G&&(da=da.cloneNode(!1),da.style.backgroundImage="url("+Editor.plusImage+")",da.setAttribute("title",mxResources.get("add")),mxEvent.addListener(da,"click",function(ca){G(W,function(fa){W=fa;Y()});mxEvent.consume(ca)}),ba.appendChild(da));X.appendChild(ba)}null!=M&&ba.appendChild(M);
+return{div:X,refresh:Y}};Graph.prototype.getCustomFonts=function(){var n=this.extFonts;n=null!=n?n.slice():[];for(var z in Graph.customFontElements){var G=Graph.customFontElements[z];n.push({name:G.name,url:G.url})}return n};Graph.prototype.setFont=function(n,z){Graph.addFont(n,z);var G=Editor.guid();document.execCommand("fontname",!1,G);for(var M=this.cellEditor.textarea.getElementsByTagName("font"),N=!1,Q=0;Q<M.length;Q++)M[Q].getAttribute("face")==G&&(N=!0,M[Q].setAttribute("face",n),null!=z?M[Q].setAttribute("data-font-src",
+z):M[Q].removeAttribute("data-font-src"));N||document.execCommand("fontname",!1,n)};var I=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return I.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 n=JSON.parse(decodeURIComponent(urlParams.vars));if(null!=n)for(var z in n)this.globalVars[z]=
+n[z]}catch(G){null!=window.console&&console.log("Error in vars URL parameter: "+G)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var F=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(n){var z=F.apply(this,arguments);null==z&&null!=this.globalVars&&(z=this.globalVars[n]);return z};Graph.prototype.getDefaultStylesheet=function(){if(null==this.defaultStylesheet){var n=this.themes["default-style2"];this.defaultStylesheet=
+(new mxCodec(n.ownerDocument)).decode(n)}return this.defaultStylesheet};Graph.prototype.isViewer=function(){return urlParams.viewer};var C=Graph.prototype.getSvg;Graph.prototype.getSvg=function(n,z,G,M,N,Q,S,T,W,X,Z,Y,ba,da,ia,ca){var fa=C.apply(this,arguments);if(null!=Y){var aa=fa.getAttribute("style");null==aa&&(aa="");Y="auto"==Y||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":Y;fa.setAttribute("style",aa+(" color-scheme: "+Y+";"))}var ja=this.getCustomFonts();
+if(Z&&0<ja.length){var ha=fa.ownerDocument;aa=null!=ha.createElementNS?ha.createElementNS(mxConstants.NS_SVG,"style"):ha.createElement("style");null!=ha.setAttributeNS?aa.setAttributeNS("type","text/css"):aa.setAttribute("type","text/css");for(var ea="",ya="",ua=0;ua<ja.length;ua++){var na=ja[ua].name,za=ja[ua].url;Graph.isCssFontUrl(za)?ea+="@import url("+Graph.rewriteGoogleFontUrl(za)+");\n":ya+='@font-face {\nfont-family: "'+na+'";\nsrc: url("'+za+'");\n}\n'}aa.appendChild(ha.createTextNode(ea+
+ya));fa.getElementsByTagName("defs")[0].appendChild(aa)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(fa);this.mathEnabled&&(document.body.appendChild(fa),Editor.MathJaxRender(fa),fa.parentNode.removeChild(fa),aa=fa.ownerDocument.getElementById("MJX-SVG-styles"),null!=aa&&fa.getElementsByTagName("defs")[0].appendChild(aa.cloneNode(!0)));return fa};var P=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(n){P.apply(this,
+arguments);null!=n.secondLabel&&(n.secondLabel.destroy(),n.secondLabel=null)};mxCellRenderer.prototype.getShapesForState=function(n){return[n.shape,n.text,n.secondLabel,n.control]};var R=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){R.apply(this,arguments);this.enumerationState=0};var U=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(n){null!=n.shape&&this.redrawEnumerationState(n);return U.apply(this,arguments)};
+mxGraphView.prototype.createEnumerationValue=function(n){n=decodeURIComponent(mxUtils.getValue(n.style,"enumerateValue",""));""==n&&(n=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(n)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(n){var z="1"==mxUtils.getValue(n.style,"enumerate",0);z&&null==n.secondLabel?(n.secondLabel=new mxText("",new mxRectangle,mxConstants.ALIGN_LEFT,mxConstants.ALIGN_BOTTOM),
+n.secondLabel.size=12,n.secondLabel.state=n,n.secondLabel.dialect=mxConstants.DIALECT_STRICTHTML,this.graph.cellRenderer.initializeLabel(n,n.secondLabel)):z||null==n.secondLabel||(n.secondLabel.destroy(),n.secondLabel=null);z=n.secondLabel;if(null!=z){var G=n.view.scale,M=this.createEnumerationValue(n);n=this.graph.model.isVertex(n.cell)?new mxRectangle(n.x+n.width-4*G,n.y+4*G,0,0):mxRectangle.fromPoint(n.view.getPoint(n));z.bounds.equals(n)&&z.value==M&&z.scale==G||(z.bounds=n,z.value=M,z.scale=
+G,z.redraw())}};var O=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();O.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var V=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){V.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=
+function(n,z){"data:action/json,"==n.substring(0,17)&&(n=JSON.parse(n.substring(17)),null!=n.actions&&this.executeCustomActions(n.actions,null,z))};Graph.prototype.executeCustomActions=function(n,z,G){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 M=!1,N=0,Q=0,S=mxUtils.bind(this,function(){M||(M=!0,this.model.beginUpdate())}),T=mxUtils.bind(this,function(){M&&(M=!1,this.model.endUpdate())}),W=mxUtils.bind(this,function(){0<N&&N--;0==N&&X()}),X=mxUtils.bind(this,function(){if(Q<n.length){var Z=this.stoppingCustomActions,Y=n[Q++],ba=[];if(null!=Y.open)if(T(),this.isCustomLink(Y.open)){if(!this.customLinkClicked(Y.open,G))return}else this.openLink(Y.open);null==Y.wait||Z||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=
+this.pendingExecuteNextAction=null;W()}),N++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=Y.wait?parseInt(Y.wait):1E3),T());null!=Y.opacity&&null!=Y.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(Y.opacity,!0)),Y.opacity.value);null!=Y.fadeIn&&(N++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Y.fadeIn,!0)),0,1,W,Z?0:Y.fadeIn.delay));null!=Y.fadeOut&&(N++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Y.fadeOut,
+!0)),1,0,W,Z?0:Y.fadeOut.delay));null!=Y.wipeIn&&(ba=ba.concat(this.createWipeAnimations(this.getCellsForAction(Y.wipeIn,!0),!0)));null!=Y.wipeOut&&(ba=ba.concat(this.createWipeAnimations(this.getCellsForAction(Y.wipeOut,!0),!1)));null!=Y.toggle&&(S(),this.toggleCells(this.getCellsForAction(Y.toggle,!0)));if(null!=Y.show){S();var da=this.getCellsForAction(Y.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(da),1);this.setCellsVisible(da,!0)}null!=Y.hide&&(S(),da=this.getCellsForAction(Y.hide,
+!0),Graph.setOpacityForNodes(this.getNodesForCells(da),0),this.setCellsVisible(da,!1));null!=Y.toggleStyle&&null!=Y.toggleStyle.key&&(S(),this.toggleCellStyles(Y.toggleStyle.key,null!=Y.toggleStyle.defaultValue?Y.toggleStyle.defaultValue:"0",this.getCellsForAction(Y.toggleStyle,!0)));null!=Y.style&&null!=Y.style.key&&(S(),this.setCellStyles(Y.style.key,Y.style.value,this.getCellsForAction(Y.style,!0)));da=[];null!=Y.select&&this.isEnabled()&&(da=this.getCellsForAction(Y.select),this.setSelectionCells(da));
+null!=Y.highlight&&(da=this.getCellsForAction(Y.highlight),this.highlightCells(da,Y.highlight.color,Y.highlight.duration,Y.highlight.opacity));null!=Y.scroll&&(da=this.getCellsForAction(Y.scroll));null!=Y.viewbox&&this.fitWindow(Y.viewbox,Y.viewbox.border);0<da.length&&this.scrollCellToVisible(da[0]);null!=G&&null!=Y.explore&&Graph.exploreFromCell(this,G,Y.explore);if(null!=Y.tags){if(null!=Y.tags.toggle){var ia=Y.tags.toggle;0==ia.length&&(ia=this.getAllTags());for(da=0;da<ia.length;da++)this.toggleHiddenTag(ia[da])}ia=
+null;null!=Y.tags.hidden&&(null==ia&&(ia=[]),ia=ia.concat(Y.tags.hidden));if(null!=Y.tags.visible){null==ia&&(ia=[]);var ca=this.getAllTags();for(da=0;da<ca.length;da++)0>mxUtils.indexOf(Y.tags.visible,ca[da])&&0>mxUtils.indexOf(ia,ca[da])&&ia.push(ca[da])}null!=ia&&this.setHiddenTags(ia);this.refresh()}0<ba.length&&(N++,this.executeAnimations(ba,W,Z?1:Y.steps,Z?0:Y.delay));0==N?X():T()}else this.stoppingCustomActions=this.executingCustomActions=!1,T(),null!=z&&z()});X()}};Graph.prototype.doUpdateCustomLinksForCell=
+function(n,z){var G=this.getLinkForCell(z);null!=G&&"data:action/json,"==G.substring(0,17)&&this.setLinkForCell(z,this.updateCustomLink(n,G));if(this.isHtmlLabel(z)){var M=document.createElement("div");M.innerHTML=Graph.sanitizeHtml(this.getLabel(z));for(var N=M.getElementsByTagName("a"),Q=!1,S=0;S<N.length;S++)G=N[S].getAttribute("href"),null!=G&&"data:action/json,"==G.substring(0,17)&&(N[S].setAttribute("href",this.updateCustomLink(n,G)),Q=!0);Q&&this.labelChanged(z,M.innerHTML)}};Graph.prototype.updateCustomLink=
+function(n,z){if("data:action/json,"==z.substring(0,17))try{var G=JSON.parse(z.substring(17));null!=G.actions&&(this.updateCustomLinkActions(n,G.actions),z="data:action/json,"+JSON.stringify(G))}catch(M){}return z};Graph.prototype.updateCustomLinkActions=function(n,z){for(var G=0;G<z.length;G++){var M=z[G],N;for(N in M)this.updateCustomLinkAction(n,M[N],"cells"),this.updateCustomLinkAction(n,M[N],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(n,z,G){if(null!=z&&null!=z[G]){for(var M=
+[],N=0;N<z[G].length;N++)if("*"==z[G][N])M.push(z[G][N]);else{var Q=n[z[G][N]];null!=Q?""!=Q&&M.push(Q):M.push(z[G][N])}z[G]=M}};Graph.prototype.getCellsForAction=function(n,z){z=this.getCellsById(n.cells).concat(this.getCellsForTags(n.tags,null,z));if(null!=n.excludeCells){for(var G=[],M=0;M<z.length;M++)0>n.excludeCells.indexOf(z[M].id)&&G.push(z[M]);z=G}return z};Graph.prototype.getCellsById=function(n){var z=[];if(null!=n)for(var G=0;G<n.length;G++)if("*"==n[G]){var M=this.model.getRoot();z=z.concat(this.model.filterDescendants(function(Q){return Q!=
+M},M))}else{var N=this.model.getCell(n[G]);null!=N&&z.push(N)}return z};var q=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(n){return q.apply(this,arguments)&&!this.isAllTagsHidden(this.getTagsForCell(n))};Graph.prototype.setHiddenTags=function(n){this.hiddenTags=n;this.fireEvent(new mxEventObject("hiddenTagsChanged"))};Graph.prototype.toggleHiddenTag=function(n){var z=mxUtils.indexOf(this.hiddenTags,n);0>z?this.hiddenTags.push(n):0<=z&&this.hiddenTags.splice(z,1);this.fireEvent(new mxEventObject("hiddenTagsChanged"))};
+Graph.prototype.isAllTagsHidden=function(n){if(null==n||0==n.length||0==this.hiddenTags.length)return!1;n=n.split(" ");if(n.length>this.hiddenTags.length)return!1;for(var z=0;z<n.length;z++)if(0>mxUtils.indexOf(this.hiddenTags,n[z]))return!1;return!0};Graph.prototype.getCellsForTags=function(n,z,G,M){var N=[];if(null!=n){z=null!=z?z:this.model.getDescendants(this.model.getRoot());for(var Q=0,S={},T=0;T<n.length;T++)0<n[T].length&&(S[n[T]]=!0,Q++);for(T=0;T<z.length;T++)if(G&&this.model.getParent(z[T])==
+this.model.root||this.model.isVertex(z[T])||this.model.isEdge(z[T])){var W=this.getTagsForCell(z[T]),X=!1;if(0<W.length&&(W=W.split(" "),W.length>=n.length)){for(var Z=X=0;Z<W.length&&X<Q;Z++)null!=S[W[Z]]&&X++;X=X==Q}X&&(1!=M||this.isCellVisible(z[T]))&&N.push(z[T])}}return N};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(n){for(var z=null,G=[],M=0;M<n.length;M++){var N=this.getTagsForCell(n[M]);
+G=[];if(0<N.length){N=N.split(" ");for(var Q={},S=0;S<N.length;S++)if(null==z||null!=z[N[S]])Q[N[S]]=!0,G.push(N[S]);z=Q}else return[]}return G};Graph.prototype.getTagsForCells=function(n){for(var z=[],G={},M=0;M<n.length;M++){var N=this.getTagsForCell(n[M]);if(0<N.length){N=N.split(" ");for(var Q=0;Q<N.length;Q++)null==G[N[Q]]&&(G[N[Q]]=!0,z.push(N[Q]))}}return z};Graph.prototype.getTagsForCell=function(n){return this.getAttributeForCell(n,"tags","")};Graph.prototype.addTagsForCells=function(n,z){if(0<
+n.length&&0<z.length){this.model.beginUpdate();try{for(var G=0;G<n.length;G++){for(var M=this.getTagsForCell(n[G]),N=M.split(" "),Q=!1,S=0;S<z.length;S++){var T=mxUtils.trim(z[S]);""!=T&&0>mxUtils.indexOf(N,T)&&(M=0<M.length?M+" "+T:T,Q=!0)}Q&&this.setAttributeForCell(n[G],"tags",M)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(n,z){if(0<n.length&&0<z.length){this.model.beginUpdate();try{for(var G=0;G<n.length;G++){var M=this.getTagsForCell(n[G]);if(0<M.length){for(var N=
+M.split(" "),Q=!1,S=0;S<z.length;S++){var T=mxUtils.indexOf(N,z[S]);0<=T&&(N.splice(T,1),Q=!0)}Q&&this.setAttributeForCell(n[G],"tags",N.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(n){this.model.beginUpdate();try{for(var z=0;z<n.length;z++)this.model.setVisible(n[z],!this.model.isVisible(n[z]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(n,z){this.model.beginUpdate();try{for(var G=0;G<n.length;G++)this.model.setVisible(n[G],z)}finally{this.model.endUpdate()}};
+Graph.prototype.highlightCells=function(n,z,G,M){for(var N=0;N<n.length;N++)this.highlightCell(n[N],z,G,M)};Graph.prototype.highlightCell=function(n,z,G,M,N){z=null!=z?z:mxConstants.DEFAULT_VALID_COLOR;G=null!=G?G:1E3;n=this.view.getState(n);var Q=null;null!=n&&(N=null!=N?N:4,N=Math.max(N+1,mxUtils.getValue(n.style,mxConstants.STYLE_STROKEWIDTH,1)+N),Q=new mxCellHighlight(this,z,N,!1),null!=M&&(Q.opacity=M),Q.highlight(n),window.setTimeout(function(){null!=Q.shape&&(mxUtils.setPrefixedStyle(Q.shape.node.style,
+"transition","all 1200ms ease-in-out"),Q.shape.node.style.opacity=0);window.setTimeout(function(){Q.destroy()},1200)},G));return Q};Graph.prototype.addSvgShadow=function(n,z,G,M){G=null!=G?G:!1;M=null!=M?M:!0;var N=n.ownerDocument,Q=null!=N.createElementNS?N.createElementNS(mxConstants.NS_SVG,"filter"):N.createElement("filter");Q.setAttribute("id",this.shadowId);var S=null!=N.createElementNS?N.createElementNS(mxConstants.NS_SVG,"feGaussianBlur"):N.createElement("feGaussianBlur");S.setAttribute("in",
+"SourceAlpha");S.setAttribute("stdDeviation",this.svgShadowBlur);S.setAttribute("result","blur");Q.appendChild(S);S=null!=N.createElementNS?N.createElementNS(mxConstants.NS_SVG,"feOffset"):N.createElement("feOffset");S.setAttribute("in","blur");S.setAttribute("dx",this.svgShadowSize);S.setAttribute("dy",this.svgShadowSize);S.setAttribute("result","offsetBlur");Q.appendChild(S);S=null!=N.createElementNS?N.createElementNS(mxConstants.NS_SVG,"feFlood"):N.createElement("feFlood");S.setAttribute("flood-color",
+this.svgShadowColor);S.setAttribute("flood-opacity",this.svgShadowOpacity);S.setAttribute("result","offsetColor");Q.appendChild(S);S=null!=N.createElementNS?N.createElementNS(mxConstants.NS_SVG,"feComposite"):N.createElement("feComposite");S.setAttribute("in","offsetColor");S.setAttribute("in2","offsetBlur");S.setAttribute("operator","in");S.setAttribute("result","offsetBlur");Q.appendChild(S);S=null!=N.createElementNS?N.createElementNS(mxConstants.NS_SVG,"feBlend"):N.createElement("feBlend");S.setAttribute("in",
+"SourceGraphic");S.setAttribute("in2","offsetBlur");Q.appendChild(S);S=n.getElementsByTagName("defs");0==S.length?(N=null!=N.createElementNS?N.createElementNS(mxConstants.NS_SVG,"defs"):N.createElement("defs"),null!=n.firstChild?n.insertBefore(N,n.firstChild):n.appendChild(N)):N=S[0];N.appendChild(Q);G||(z=null!=z?z:n.getElementsByTagName("g")[0],null!=z&&(z.setAttribute("filter","url(#"+this.shadowId+")"),!isNaN(parseInt(n.getAttribute("width")))&&M&&(n.setAttribute("width",parseInt(n.getAttribute("width"))+
+6),n.setAttribute("height",parseInt(n.getAttribute("height"))+6),z=n.getAttribute("viewBox"),null!=z&&0<z.length&&(z=z.split(" "),3<z.length&&(w=parseFloat(z[2])+6,h=parseFloat(z[3])+6,n.setAttribute("viewBox",z[0]+" "+z[1]+" "+w+" "+h))))));return Q};Graph.prototype.setShadowVisible=function(n,z){mxClient.IS_SVG&&!mxClient.IS_SF&&(z=null!=z?z:!0,(this.shadowVisible=n)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),z&&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 n=this.model.getChildCount(this.model.root),z=0;do var G=this.model.getChildAt(this.model.root,z);while(z++<n&&"1"==mxUtils.getValue(this.getCellStyle(G),"locked","0"));null!=G&&this.setDefaultParent(G)}};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=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+
@@ -12936,364 +12979,365 @@ Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.mod
mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];
mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+
"/gmdl.xml"];mxStencilRegistry.libraries.gcp2=[SHAPES_PATH+"/mxGCP2.js",STENCIL_PATH+"/gcp2.xml"];mxStencilRegistry.libraries.ibm=[SHAPES_PATH+"/mxIBM.js",STENCIL_PATH+"/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(n){var A=null;null!=n&&0<n.length&&("ER"==n.substring(0,2)?A="mxgraph.er":"sysML"==n.substring(0,5)&&(A="mxgraph.sysml"));return A};var J=
-mxMarker.createMarker;mxMarker.createMarker=function(n,A,E,L,O,R,T,U,W,X){if(null!=E&&null==mxMarker.markers[E]){var Y=this.getPackageForType(E);null!=Y&&mxStencilRegistry.getStencil(Y)}return J.apply(this,arguments)};var H=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(n,A,E,L,O,R){"1"==mxUtils.getValue(A.style,"lineShape",null)&&n.setFillColor(mxUtils.getValue(A.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return H.apply(this,arguments)};PrintDialog.prototype.create=function(n,
-A,E,L){function O(){ia.value=Math.max(1,Math.min(Y,Math.max(parseInt(ia.value),parseInt(ea.value))));ea.value=Math.max(1,Math.min(Y,Math.min(parseInt(ia.value),parseInt(ea.value))))}function R(Ea){n.lastPrintPagesRadioChecked=ca.checked;n.lastPrintSelectionOnlyChecked=fa.checked;n.lastPrintCropRadioChecked=ja.checked;n.lastPrintFitRadioChecked=ha.checked;ca.checked&&ea.value<ia.value?(n.lastPrintPagesFromInput=ea.value,n.lastPrintPagesToInput=ia.value):(n.lastPrintPagesFromInput=null,n.lastPrintPagesToInput=
-null);ya.value=Math.max(1,Math.min(1600,parseInt(ya.value)))+"%";n.lastPrintZoom=ya.value;n.lastPrintBorder=wa.value;n.lastPrintGrid=xa.checked;n.lastPrintTransparent=Fa.checked;n.lastPrintInclude=Ca.checked;n.lastPrintSheetsAcross=ma.value;n.lastPrintSheetsDown=Da.value;var za={};za.border=parseInt(wa.value);za.scale=parseInt(ya.value)/100;za.grid=xa.checked;za.transparent=Fa.checked;za.includeCopy=Ca.checked;za.sheetsAcross=parseInt(ma.value);za.sheetsDown=parseInt(Da.value);za.pagesFrom=parseInt(ea.value);
-za.pagesTo=parseInt(ia.value);za.allPages=Z.checked;za.selection=fa.checked;za.pageView=aa.checked;za.crop=ja.checked;za.fit=ha.checked;return null!=E?E(!Ea,za):n.print(!Ea,za)}var T=n.editor.graph,U=document.createElement("div"),W=document.createElement("h3");W.style.width="100%";W.style.textAlign="center";W.style.marginTop="0px";mxUtils.write(W,A||mxResources.get("print"));U.appendChild(W);var X=1,Y=1;W=document.createElement("div");W.style.whiteSpace="nowrap";var Z=document.createElement("input");
-Z.style.marginRight="8px";Z.style.marginBottom="8px";Z.setAttribute("type","radio");Z.setAttribute("name","pages-printdialog");W.appendChild(Z);A=document.createElement("span");mxUtils.write(A,mxResources.get("allPages"));mxEvent.addListener(A,"click",function(){Z.checked=!0});W.appendChild(A);mxUtils.br(W);var ca=Z.cloneNode(!0);W.appendChild(ca);A=document.createElement("span");mxUtils.write(A,mxResources.get("pages")+":");W.appendChild(A);mxEvent.addListener(A,"click",function(){ca.checked=!0});
-var ea=document.createElement("input");ea.style.margin="0 4px";ea.setAttribute("value","1");ea.setAttribute("type","number");ea.setAttribute("min","1");ea.style.width="40px";W.appendChild(ea);A=document.createElement("span");mxUtils.write(A,mxResources.get("to"));W.appendChild(A);var ia=ea.cloneNode(!0);W.appendChild(ia);mxEvent.addListener(ea,"focus",function(){ca.checked=!0});mxEvent.addListener(ia,"focus",function(){ca.checked=!0});mxEvent.addListener(ea,"change",O);mxEvent.addListener(ia,"change",
-O);if(null!=n.pages&&(Y=n.pages.length,null!=n.currentPage))for(var ba=0;ba<Y;ba++)if(n.currentPage==n.pages[ba]){X=ba+1;break}null!=n.lastPrintPagesFromInput&&null!=n.lastPrintPagesToInput?(ea.value=Math.min(Y,Math.max(1,n.lastPrintPagesFromInput)),ia.value=Math.min(Y,Math.max(1,n.lastPrintPagesToInput))):(ea.value=X,ia.value=X);ea.setAttribute("max",Y);ia.setAttribute("max",Y);ba=mxUtils.button(mxResources.get("currentPage"),function(Ea){ea.value=X;ia.value=X;ca.checked=!0});ba.setAttribute("title",
-mxResources.get("currentPage"));ba.style.marginLeft="4px";ba.style.maxWidth="100px";ba.style.overflow="hidden";ba.style.textOverflow="ellipsis";ba.style.whiteSpace="nowrap";W.appendChild(ba);1<Y&&U.appendChild(W);W=document.createElement("div");W.style.borderBottom="1px solid lightGray";W.style.paddingBottom="12px";W.style.marginBottom="12px";W.style.whiteSpace="nowrap";var fa=document.createElement("input");fa.setAttribute("name","pages-printdialog");fa.setAttribute("type",1==Y?"checkbox":"radio");
-fa.style.marginRight="8px";T.isSelectionEmpty()&&fa.setAttribute("disabled","disabled");T.isEnabled()&&(W.appendChild(fa),A=document.createElement("span"),mxUtils.write(A,mxResources.get("selectionOnly")),W.appendChild(A));(T.isEnabled()||1<Y)&&U.appendChild(W);!n.isPagesEnabled()||n.lastPrintPagesRadioChecked?ca.checked=!0:!T.isSelectionEmpty()&&n.lastPrintSelectionOnlyChecked?fa.checked=!0:Z.checked=!0;T.isSelectionEmpty()||mxEvent.addListener(A,"click",function(){fa.checked=!fa.checked});T=document.createElement("div");
-T.style.whiteSpace="nowrap";var aa=document.createElement("input");aa.style.marginBottom="8px";aa.style.marginRight="8px";aa.setAttribute("type","radio");aa.setAttribute("name","printSize");T.appendChild(aa);A=document.createElement("span");mxUtils.write(A,mxResources.get("pageView"));T.appendChild(A);mxEvent.addListener(T,"click",function(){aa.checked=!0});U.appendChild(T);T=document.createElement("div");T.style.whiteSpace="nowrap";var ja=document.createElement("input");ja.style.marginBottom="8px";
-ja.style.marginRight="8px";ja.setAttribute("type","radio");ja.setAttribute("name","printSize");T.appendChild(ja);A=document.createElement("span");mxUtils.write(A,mxResources.get("crop"));T.appendChild(A);mxEvent.addListener(T,"click",function(){ja.checked=!0});U.appendChild(T);T=document.createElement("div");T.style.whiteSpace="nowrap";var ha=document.createElement("input");ha.style.marginBottom="8px";ha.style.marginRight="8px";ha.setAttribute("type","radio");ha.setAttribute("name","printSize");A=
-document.createElement("div");A.style.display="inline-block";A.style.verticalAlign="top";A.style.paddingTop="2px";A.appendChild(ha);T.appendChild(A);W=document.createElement("table");W.style.display="inline-block";W.style.borderSpacing="0";ba=document.createElement("tbody");var da=document.createElement("tr"),Ba=da.cloneNode(!0),na=document.createElement("td"),va=na.cloneNode(!0),Aa=na.cloneNode(!0),ka=na.cloneNode(!0),ta=na.cloneNode(!0),pa=na.cloneNode(!0);na.style.textAlign="right";ka.style.textAlign=
-"right";mxUtils.write(na,mxResources.get("fitTo"));mxEvent.addListener(T,"click",function(Ea){mxEvent.getSource(Ea)!=ha&&(ha.checked=!ha.checked)});var ma=document.createElement("input");ma.style.margin="0 2px";ma.style.boxSizing="border-box";ma.setAttribute("value",n.lastPrintSheetsAcross||"1");ma.setAttribute("min","1");ma.setAttribute("type","number");ma.style.width="40px";va.appendChild(ma);A=document.createElement("span");mxUtils.write(A,mxResources.get("fitToSheetsAcross"));Aa.appendChild(A);
-mxUtils.write(ka,mxResources.get("fitToBy"));var Da=ma.cloneNode(!0);Da.setAttribute("value",n.lastPrintSheetsDown||"1");ta.appendChild(Da);mxEvent.addListener(ma,"click",function(Ea){ha.checked=!0;mxEvent.consume(Ea)});mxEvent.addListener(Da,"click",function(Ea){ha.checked=!0;mxEvent.consume(Ea)});n.lastPrintCropRadioChecked?ja.checked=!0:n.lastPrintFitRadioChecked?ha.checked=!0:aa.checked=!0;A=document.createElement("span");mxUtils.write(A,mxResources.get("fitToSheetsDown"));pa.appendChild(A);da.appendChild(na);
-da.appendChild(va);da.appendChild(Aa);Ba.appendChild(ka);Ba.appendChild(ta);Ba.appendChild(pa);ba.appendChild(da);ba.appendChild(Ba);W.appendChild(ba);T.appendChild(W);U.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 wa=document.createElement("input");wa.setAttribute("type","number");wa.setAttribute("min",
-"0");wa.style.width="40px";wa.style.marginLeft="4px";wa.value=null!=n.lastPrintBorder?n.lastPrintBorder:mxPrintPreview.prototype.pageMargin;T.appendChild(wa);A=document.createElement("span");A.style.marginLeft="8px";mxUtils.write(A,mxResources.get("zoom")+":");T.appendChild(A);var ya=document.createElement("input");ya.style.width="60px";ya.style.marginLeft="4px";ya.value=null!=n.lastPrintZoom?n.lastPrintZoom:"100%";T.appendChild(ya);mxUtils.br(T);var xa=document.createElement("input");xa.setAttribute("type",
-"checkbox");xa.style.marginTop="12px";xa.checked=null!=n.lastPrintGrid?n.lastPrintGrid:!1;T.appendChild(xa);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(Ea){xa.checked=!0;mxEvent.consume(Ea)});var Fa=document.createElement("input");Fa.setAttribute("type","checkbox");Fa.style.marginTop="10px";Fa.checked=null!=n.lastPrintTransparent?n.lastPrintTransparent:!1;null!=
-E&&(T.appendChild(Fa),A=document.createElement("span"),A.style.marginLeft="4px",mxUtils.write(A,mxResources.get("transparentBackground")),T.appendChild(A),mxEvent.addListener(A,"click",function(Ea){Fa.checked=!0;mxEvent.consume(Ea)}));var Ca=document.createElement("input");Ca.setAttribute("type","checkbox");Ca.style.marginTop="10px";Ca.checked=null!=n.lastPrintInclude?n.lastPrintInclude:Editor.defaultIncludeDiagram;null==E||mxClient.IS_CHROMEAPP||"draw.io"!=n.getServiceName()||(mxUtils.br(T),T.appendChild(Ca),
-A=document.createElement("span"),A.style.marginLeft="4px",mxUtils.write(A,mxResources.get("includeCopyOfMyDiagram")),T.appendChild(A),mxEvent.addListener(A,"click",function(Ea){Ca.checked=!0;mxEvent.consume(Ea)}));U.appendChild(T);A=document.createElement("div");A.style.marginTop="40px";A.style.textAlign="right";A.style.whiteSpace="nowrap";n.isOffline()||null!=E||A.appendChild(n.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));T=mxUtils.button(mxResources.get("cancel"),function(){n.hideDialog()});
-T.className="geBtn";n.editor.cancelFirst&&A.appendChild(T);PrintDialog.previewEnabled&&null==E&&(W=mxUtils.button(mxResources.get("preview"),function(){try{n.hideDialog(),R(!1)}catch(Ea){n.handleError(Ea)}}),W.className="geBtn",A.appendChild(W));L=null!=L?L:null!=E?"export":PrintDialog.previewEnabled?"print":"ok";L=mxUtils.button(mxResources.get(L),function(){try{n.hideDialog(),R(!0)}catch(Ea){n.handleError(Ea)}});L.className="geBtn gePrimaryBtn";A.appendChild(L);n.editor.cancelFirst||A.appendChild(T);
-U.appendChild(A);if(n.editor.isChromelessView()){var Ia=function(){Editor.isDarkMode()?(U.classList.add("geDarkMode"),U.style.colorScheme="dark"):(U.classList.remove("geDarkMode"),U.style.colorScheme="light")};n.addListener("darkModeChanged",Ia);Ia();var La=function(Ea,za){Ea=za.getProperty("dialog");U.parentNode==Ea.container&&(n.editor.removeListener(La),n.removeListener(Ia))};n.editor.addListener("hideDialog",La)}this.container=U};var K=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 n=this.image;null!=n&&null!=n.src&&Graph.isPageLink(n.src)&&(n={originalSrc:n.src});this.page.viewState.backgroundImage=n}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 K.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(n=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=
-null!=n?n:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var N=document.createElement("canvas"),M=new Image;M.onload=function(){try{N.getContext("2d").drawImage(M,0,0);var n=N.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=n&&6<n.length}catch(A){}};M.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(n){}Editor.prototype.useCanvasForExport=
-!1})();(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};b.afterDecode=function(e,f,c){c.previousColor=c.color;c.previousImage=c.image;c.previousFormat=c.format;c.previousAdaptiveColors=c.adaptiveColors;null!=c.foldingEnabled&&(c.foldingEnabled=!c.foldingEnabled);null!=c.mathEnabled&&(c.mathEnabled=!c.mathEnabled);null!=c.shadowVisible&&(c.shadowVisible=!c.shadowVisible);return c};mxCodecRegistry.register(b)})();
-(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.2.8";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&
+[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.networks2=[SHAPES_PATH+"/mxNetworks2.js",STENCIL_PATH+"/networks2.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(n){var z=null;null!=n&&0<n.length&&("ER"==n.substring(0,
+2)?z="mxgraph.er":"sysML"==n.substring(0,5)&&(z="mxgraph.sysml"));return z};var y=mxMarker.createMarker;mxMarker.createMarker=function(n,z,G,M,N,Q,S,T,W,X){if(null!=G&&null==mxMarker.markers[G]){var Z=this.getPackageForType(G);null!=Z&&mxStencilRegistry.getStencil(Z)}return y.apply(this,arguments)};var D=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(n,z,G,M,N,Q){"1"==mxUtils.getValue(z.style,"lineShape",null)&&n.setFillColor(mxUtils.getValue(z.style,mxConstants.STYLE_STROKECOLOR,
+this.stroke));return D.apply(this,arguments)};PrintDialog.prototype.create=function(n,z,G,M){function N(){ia.value=Math.max(1,Math.min(Z,Math.max(parseInt(ia.value),parseInt(da.value))));da.value=Math.max(1,Math.min(Z,Math.min(parseInt(ia.value),parseInt(da.value))))}function Q(Ga){n.lastPrintPagesRadioChecked=ba.checked;n.lastPrintSelectionOnlyChecked=fa.checked;n.lastPrintCropRadioChecked=ja.checked;n.lastPrintFitRadioChecked=ha.checked;ba.checked&&da.value<ia.value?(n.lastPrintPagesFromInput=da.value,
+n.lastPrintPagesToInput=ia.value):(n.lastPrintPagesFromInput=null,n.lastPrintPagesToInput=null);Ca.value=Math.max(1,Math.min(1600,parseInt(Ca.value)))+"%";n.lastPrintZoom=Ca.value;n.lastPrintBorder=va.value;n.lastPrintGrid=xa.checked;n.lastPrintTransparent=Da.checked;n.lastPrintInclude=Ba.checked;n.lastPrintSheetsAcross=la.value;n.lastPrintSheetsDown=Ea.value;var Aa={};Aa.border=parseInt(va.value);Aa.scale=parseInt(Ca.value)/100;Aa.grid=xa.checked;Aa.transparent=Da.checked;Aa.includeCopy=Ba.checked;
+Aa.sheetsAcross=parseInt(la.value);Aa.sheetsDown=parseInt(Ea.value);Aa.pagesFrom=parseInt(da.value);Aa.pagesTo=parseInt(ia.value);Aa.allPages=Y.checked;Aa.selection=fa.checked;Aa.pageView=aa.checked;Aa.crop=ja.checked;Aa.fit=ha.checked;return null!=G?G(!Ga,Aa):n.print(!Ga,Aa)}var S=n.editor.graph,T=document.createElement("div"),W=document.createElement("h3");W.style.width="100%";W.style.textAlign="center";W.style.marginTop="0px";mxUtils.write(W,z||mxResources.get("print"));T.appendChild(W);var X=
+1,Z=1;W=document.createElement("div");W.style.whiteSpace="nowrap";var Y=document.createElement("input");Y.style.marginRight="8px";Y.style.marginBottom="8px";Y.setAttribute("type","radio");Y.setAttribute("name","pages-printdialog");W.appendChild(Y);z=document.createElement("span");mxUtils.write(z,mxResources.get("allPages"));mxEvent.addListener(z,"click",function(){Y.checked=!0});W.appendChild(z);mxUtils.br(W);var ba=Y.cloneNode(!0);W.appendChild(ba);z=document.createElement("span");mxUtils.write(z,
+mxResources.get("pages")+":");W.appendChild(z);mxEvent.addListener(z,"click",function(){ba.checked=!0});var da=document.createElement("input");da.style.margin="0 4px";da.setAttribute("value","1");da.setAttribute("type","number");da.setAttribute("min","1");da.style.width="40px";W.appendChild(da);z=document.createElement("span");mxUtils.write(z,mxResources.get("to"));W.appendChild(z);var ia=da.cloneNode(!0);W.appendChild(ia);mxEvent.addListener(da,"focus",function(){ba.checked=!0});mxEvent.addListener(ia,
+"focus",function(){ba.checked=!0});mxEvent.addListener(da,"change",N);mxEvent.addListener(ia,"change",N);if(null!=n.pages&&(Z=n.pages.length,null!=n.currentPage))for(var ca=0;ca<Z;ca++)if(n.currentPage==n.pages[ca]){X=ca+1;break}null!=n.lastPrintPagesFromInput&&null!=n.lastPrintPagesToInput?(da.value=Math.min(Z,Math.max(1,n.lastPrintPagesFromInput)),ia.value=Math.min(Z,Math.max(1,n.lastPrintPagesToInput))):(da.value=X,ia.value=X);da.setAttribute("max",Z);ia.setAttribute("max",Z);ca=mxUtils.button(mxResources.get("currentPage"),
+function(Ga){da.value=X;ia.value=X;ba.checked=!0});ca.setAttribute("title",mxResources.get("currentPage"));ca.style.marginLeft="4px";ca.style.maxWidth="100px";ca.style.overflow="hidden";ca.style.textOverflow="ellipsis";ca.style.whiteSpace="nowrap";W.appendChild(ca);1<Z&&T.appendChild(W);W=document.createElement("div");W.style.borderBottom="1px solid lightGray";W.style.paddingBottom="12px";W.style.marginBottom="12px";W.style.whiteSpace="nowrap";var fa=document.createElement("input");fa.setAttribute("name",
+"pages-printdialog");fa.setAttribute("type",1==Z?"checkbox":"radio");fa.style.marginRight="8px";S.isSelectionEmpty()&&fa.setAttribute("disabled","disabled");S.isEnabled()&&(W.appendChild(fa),z=document.createElement("span"),mxUtils.write(z,mxResources.get("selectionOnly")),W.appendChild(z));(S.isEnabled()||1<Z)&&T.appendChild(W);!n.isPagesEnabled()||n.lastPrintPagesRadioChecked?ba.checked=!0:!S.isSelectionEmpty()&&n.lastPrintSelectionOnlyChecked?fa.checked=!0:Y.checked=!0;S.isSelectionEmpty()||mxEvent.addListener(z,
+"click",function(){fa.checked=!fa.checked});S=document.createElement("div");S.style.whiteSpace="nowrap";var aa=document.createElement("input");aa.style.marginBottom="8px";aa.style.marginRight="8px";aa.setAttribute("type","radio");aa.setAttribute("name","printSize");S.appendChild(aa);z=document.createElement("span");mxUtils.write(z,mxResources.get("pageView"));S.appendChild(z);mxEvent.addListener(S,"click",function(){aa.checked=!0});T.appendChild(S);S=document.createElement("div");S.style.whiteSpace=
+"nowrap";var ja=document.createElement("input");ja.style.marginBottom="8px";ja.style.marginRight="8px";ja.setAttribute("type","radio");ja.setAttribute("name","printSize");S.appendChild(ja);z=document.createElement("span");mxUtils.write(z,mxResources.get("crop"));S.appendChild(z);mxEvent.addListener(S,"click",function(){ja.checked=!0});T.appendChild(S);S=document.createElement("div");S.style.whiteSpace="nowrap";var ha=document.createElement("input");ha.style.marginBottom="8px";ha.style.marginRight=
+"8px";ha.setAttribute("type","radio");ha.setAttribute("name","printSize");z=document.createElement("div");z.style.display="inline-block";z.style.verticalAlign="top";z.style.paddingTop="2px";z.appendChild(ha);S.appendChild(z);W=document.createElement("table");W.style.display="inline-block";W.style.borderSpacing="0";ca=document.createElement("tbody");var ea=document.createElement("tr"),ya=ea.cloneNode(!0),ua=document.createElement("td"),na=ua.cloneNode(!0),za=ua.cloneNode(!0),ma=ua.cloneNode(!0),sa=
+ua.cloneNode(!0),oa=ua.cloneNode(!0);ua.style.textAlign="right";ma.style.textAlign="right";mxUtils.write(ua,mxResources.get("fitTo"));mxEvent.addListener(S,"click",function(Ga){mxEvent.getSource(Ga)!=ha&&(ha.checked=!ha.checked)});var la=document.createElement("input");la.style.margin="0 2px";la.style.boxSizing="border-box";la.setAttribute("value",n.lastPrintSheetsAcross||"1");la.setAttribute("min","1");la.setAttribute("type","number");la.style.width="40px";na.appendChild(la);z=document.createElement("span");
+mxUtils.write(z,mxResources.get("fitToSheetsAcross"));za.appendChild(z);mxUtils.write(ma,mxResources.get("fitToBy"));var Ea=la.cloneNode(!0);Ea.setAttribute("value",n.lastPrintSheetsDown||"1");sa.appendChild(Ea);mxEvent.addListener(la,"click",function(Ga){ha.checked=!0;mxEvent.consume(Ga)});mxEvent.addListener(Ea,"click",function(Ga){ha.checked=!0;mxEvent.consume(Ga)});n.lastPrintCropRadioChecked?ja.checked=!0:n.lastPrintFitRadioChecked?ha.checked=!0:aa.checked=!0;z=document.createElement("span");
+mxUtils.write(z,mxResources.get("fitToSheetsDown"));oa.appendChild(z);ea.appendChild(ua);ea.appendChild(na);ea.appendChild(za);ya.appendChild(ma);ya.appendChild(sa);ya.appendChild(oa);ca.appendChild(ea);ca.appendChild(ya);W.appendChild(ca);S.appendChild(W);T.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 va=document.createElement("input");va.setAttribute("type","number");va.setAttribute("min","0");va.style.width="40px";va.style.marginLeft="4px";va.value=null!=n.lastPrintBorder?n.lastPrintBorder:mxPrintPreview.prototype.pageMargin;S.appendChild(va);z=document.createElement("span");z.style.marginLeft="8px";mxUtils.write(z,mxResources.get("zoom")+":");S.appendChild(z);var Ca=document.createElement("input");Ca.style.width="60px";Ca.style.marginLeft="4px";Ca.value=null!=n.lastPrintZoom?n.lastPrintZoom:
+"100%";S.appendChild(Ca);mxUtils.br(S);var xa=document.createElement("input");xa.setAttribute("type","checkbox");xa.style.marginTop="12px";xa.checked=null!=n.lastPrintGrid?n.lastPrintGrid:!1;S.appendChild(xa);z=document.createElement("span");z.style.marginLeft="4px";z.style.marginRight="8px";mxUtils.write(z,mxResources.get("grid"));S.appendChild(z);mxEvent.addListener(z,"click",function(Ga){xa.checked=!0;mxEvent.consume(Ga)});var Da=document.createElement("input");Da.setAttribute("type","checkbox");
+Da.style.marginTop="10px";Da.checked=null!=n.lastPrintTransparent?n.lastPrintTransparent:!1;null!=G&&(S.appendChild(Da),z=document.createElement("span"),z.style.marginLeft="4px",mxUtils.write(z,mxResources.get("transparentBackground")),S.appendChild(z),mxEvent.addListener(z,"click",function(Ga){Da.checked=!0;mxEvent.consume(Ga)}));var Ba=document.createElement("input");Ba.setAttribute("type","checkbox");Ba.style.marginTop="10px";Ba.checked=null!=n.lastPrintInclude?n.lastPrintInclude:Editor.defaultIncludeDiagram;
+null==G||mxClient.IS_CHROMEAPP||"draw.io"!=n.getServiceName()||(mxUtils.br(S),S.appendChild(Ba),z=document.createElement("span"),z.style.marginLeft="4px",mxUtils.write(z,mxResources.get("includeCopyOfMyDiagram")),S.appendChild(z),mxEvent.addListener(z,"click",function(Ga){Ba.checked=!0;mxEvent.consume(Ga)}));T.appendChild(S);z=document.createElement("div");z.style.marginTop="40px";z.style.textAlign="right";z.style.whiteSpace="nowrap";n.isOffline()||null!=G||z.appendChild(n.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));
+S=mxUtils.button(mxResources.get("cancel"),function(){n.hideDialog()});S.className="geBtn";n.editor.cancelFirst&&z.appendChild(S);PrintDialog.previewEnabled&&null==G&&(W=mxUtils.button(mxResources.get("preview"),function(){try{n.hideDialog(),Q(!1)}catch(Ga){n.handleError(Ga)}}),W.className="geBtn",z.appendChild(W));M=null!=M?M:null!=G?"export":PrintDialog.previewEnabled?"print":"ok";M=mxUtils.button(mxResources.get(M),function(){try{n.hideDialog(),Q(!0)}catch(Ga){n.handleError(Ga)}});M.className=
+"geBtn gePrimaryBtn";z.appendChild(M);n.editor.cancelFirst||z.appendChild(S);T.appendChild(z);if(n.editor.isChromelessView()){var Ka=function(){Editor.isDarkMode()?(T.classList.add("geDarkMode"),T.style.colorScheme="dark"):(T.classList.remove("geDarkMode"),T.style.colorScheme="light")};n.addListener("darkModeChanged",Ka);Ka();var Ja=function(Ga,Aa){Ga=Aa.getProperty("dialog");T.parentNode==Ga.container&&(n.editor.removeListener(Ja),n.removeListener(Ka))};n.editor.addListener("hideDialog",Ja)}this.container=
+T};var J=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 n=this.image;null!=n&&null!=n.src&&Graph.isPageLink(n.src)&&(n={originalSrc:n.src});this.page.viewState.backgroundImage=n}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 J.apply(this,arguments),null!=this.mathEnabled&&this.mathEnabled!=this.ui.isMathEnabled()&&(this.ui.setMathEnabled(this.mathEnabled),this.mathEnabled=!this.mathEnabled),null!=this.adaptiveColors&&this.adaptiveColors!=this.ui.editor.graph.adaptiveColors&&(n=this.ui.editor.graph.adaptiveColors,this.ui.setAdaptiveColors(this.adaptiveColors),
+this.adaptiveColors=null!=n?n:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var L=document.createElement("canvas"),K=new Image;K.onload=function(){try{L.getContext("2d").drawImage(K,0,0);var n=L.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=n&&6<n.length}catch(z){}};K.src="data:image/svg+xml;base64,"+
+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(n){}Editor.prototype.useCanvasForExport=!1})();
+(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};b.afterDecode=function(e,f,c){c.previousColor=c.color;c.previousImage=c.image;c.previousFormat=c.format;c.previousAdaptiveColors=c.adaptiveColors;null!=c.foldingEnabled&&(c.foldingEnabled=!c.foldingEnabled);null!=c.mathEnabled&&(c.mathEnabled=!c.mathEnabled);null!=c.shadowVisible&&(c.shadowVisible=!c.shadowVisible);return c};mxCodecRegistry.register(b)})();
+(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.2.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&&
"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"}};
-EditorUi.logError=function(d,g,k,m,t,y,z){if(null!=d){t=null!=t?t:Error(d);t.stack=null!=t.stack?t.stack:"";y=null!=y?y:0>d.indexOf("NetworkError")&&0>d.indexOf("SecurityError")&&0>d.indexOf("NS_ERROR_FAILURE")&&0>d.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&d!=EditorUi.lastErrorMessage&&0>d.indexOf("extension:")&&0>d.indexOf("ResizeObserver loop completed with undelivered notifications")&&0>t.stack.indexOf("extension:")&&0>t.stack.indexOf("<anonymous>:")&&
-0>t.stack.indexOf("/math/es5/")&&(EditorUi.lastErrorMessage=d,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?severity="+y+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(d)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(k)+(null!=m?":colno:"+encodeURIComponent(m):"")+(""!=t.stack?"&stack="+encodeURIComponent(t.stack):""))}catch(I){}try{z||null==window.console||console.error(y,d,g,k,m,t)}catch(I){}}};EditorUi.logEvent=
+EditorUi.logError=function(d,g,k,m,u,x,A){if(null!=d){u=null!=u?u:Error(d);u.stack=null!=u.stack?u.stack:"";x=null!=x?x:0>d.indexOf("NetworkError")&&0>d.indexOf("SecurityError")&&0>d.indexOf("NS_ERROR_FAILURE")&&0>d.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&d!=EditorUi.lastErrorMessage&&0>d.indexOf("extension:")&&0>d.indexOf("ResizeObserver loop completed with undelivered notifications")&&0>u.stack.indexOf("extension:")&&0>u.stack.indexOf("<anonymous>:")&&
+0>u.stack.indexOf("/math/es5/")&&(EditorUi.lastErrorMessage=d,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?severity="+x+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(d)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(k)+(null!=m?":colno:"+encodeURIComponent(m):"")+(""!=u.stack?"&stack="+encodeURIComponent(u.stack):""))}catch(I){}try{A||null==window.console||console.error(x,d,g,k,m,u)}catch(I){}}};EditorUi.logEvent=
function(d){if("1"==urlParams.dev)EditorUi.debug("logEvent",d);else if(EditorUi.enableLogging)try{var g=null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"";(new Image).src=g+"/images/1x1.png?v="+encodeURIComponent(EditorUi.VERSION)+(null!=d?"&data="+encodeURIComponent(JSON.stringify(d)):"")}catch(k){}};EditorUi.sendReport=function(d,g){if("1"==urlParams.dev)EditorUi.debug("sendReport",d);else if(EditorUi.enableLogging)try{g=null!=g?g:5E4,d.length>g&&(d=d.substring(0,g)+"\n...[SHORTENED]"),mxUtils.post("/email",
"version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&data="+encodeURIComponent(d))}catch(k){}};EditorUi.debug=function(){try{if(null!=window.console&&"1"==urlParams.test){for(var d=[(new Date).toISOString()],g=0;g<arguments.length;g++)d.push(arguments[g]);console.log.apply(console,d)}}catch(k){}};EditorUi.removeChildNodes=function(d){for(;null!=d.firstChild;)d.removeChild(d.firstChild)};EditorUi.embedSvgImages=function(d){d=d.getElementsByTagName("image");
for(var g=[],k=0;k<d.length;k++)g.push(d[k]);for(k=0;k<g.length;k++)EditorUi.replaceSvgImage(g[k])};EditorUi.replaceSvgImage=function(d){try{var g=null;g=null==d.getAttributeNS?d.getAttribute("xlink:href"):d.getAttributeNS(mxConstants.NS_XLINK,"href");var k=EditorUi.getSvgSubtree(g);if(null!=k&&"svg"==k.nodeName){k.setAttribute("x",d.getAttribute("x"));k.setAttribute("y",d.getAttribute("y"));k.setAttribute("width",d.getAttribute("width"));k.setAttribute("height",d.getAttribute("height"));k.style.fontFamily=
-"initial";var m=mxUtils.createElementNs(k.ownerDocument,mxConstants.NS_SVG,"g");m.appendChild(k);d.hasAttribute("transform")&&m.setAttribute("transform",d.getAttribute("transform"));d.parentNode.replaceChild(m,d)}}catch(t){}};EditorUi.getSvgSubtree=function(d){var g=Graph.getSvgFromDataUri(d);d=null;if(null!=g){d=Graph.sanitizeNode(mxUtils.parseXml(g).documentElement);g=d.getElementsByTagName("style");if(0<g.length){var k="svg-image-"+Editor.guid();d.setAttribute("id",k);for(var m=document.implementation.createHTMLDocument(""),
-t=document.createElement("style"),y=0;y<g.length;y++){t.textContent=g[y].textContent;m.body.appendChild(t);for(var z="",I=0;I<t.sheet.cssRules.length;I++){var F=t.sheet.cssRules[I];if(null!=F.selectorText){for(var C=F.selectorText.split(","),Q=0;Q<C.length;Q++)C[Q]="#"+k+" "+C[Q];F.selectorText=C.join(",")}z+=F.cssText+"\n"}g[y].textContent=z}}g=d.getElementsByTagName("*");for(k=0;k<g.length;k++)g[k].removeAttribute("data-cell-id")}return d};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';
+"initial";var m=mxUtils.createElementNs(k.ownerDocument,mxConstants.NS_SVG,"g");m.appendChild(k);d.hasAttribute("transform")&&m.setAttribute("transform",d.getAttribute("transform"));d.parentNode.replaceChild(m,d)}}catch(u){}};EditorUi.getSvgSubtree=function(d){var g=Graph.getSvgFromDataUri(d);d=null;if(null!=g){d=Graph.sanitizeNode(mxUtils.parseXml(g).documentElement);g=d.getElementsByTagName("style");if(0<g.length){var k="svg-image-"+Editor.guid();d.setAttribute("id",k);for(var m=document.implementation.createHTMLDocument(""),
+u=document.createElement("style"),x=0;x<g.length;x++){u.textContent=g[x].textContent;m.body.appendChild(u);for(var A="",I=0;I<u.sheet.cssRules.length;I++){var F=u.sheet.cssRules[I];if(null!=F.selectorText){for(var C=F.selectorText.split(","),P=0;P<C.length;P++)C[P]="#"+k+" "+C[P];F.selectorText=C.join(",")}A+=F.cssText+"\n"}g[x].textContent=A}}g=d.getElementsByTagName("*");for(k=0;k<g.length;k++)g[k].removeAttribute("data-cell-id")}return d};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';
EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.mode=null;EditorUi.prototype.timeout=Editor.prototype.timeout;EditorUi.prototype.defaultCustomShapeStyle="shape=stencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE=);whiteSpace=wrap;html=1;";
EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=1200;EditorUi.prototype.maxTextWidth=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=2E6;EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.maxTextBytes=5E5;EditorUi.prototype.currentFile=null;EditorUi.prototype.printPdfExport=!1;EditorUi.prototype.pdfPageExport=!0;EditorUi.prototype.formatEnabled="0"!=urlParams.format;EditorUi.prototype.insertTemplateEnabled=!0;EditorUi.prototype.closableScratchpad=
-!0;EditorUi.prototype.embedExportBorder=8;EditorUi.prototype.embedExportTheme="auto";EditorUi.prototype.embedExportBackground=null;EditorUi.prototype.shareCursorPosition=!0;EditorUi.prototype.showRemoteCursors=!0;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;EditorUi.prototype.webpSupported=!1;try{var d=document.createElement("canvas");EditorUi.prototype.canvasSupported=!(!d.getContext||!d.getContext("2d"))}catch(t){}try{var g=document.createElement("canvas"),
-k=new Image;k.onload=function(){try{g.getContext("2d").drawImage(k,0,0);var t=g.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=t&&6<t.length}catch(y){}};k.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(t){}try{g=
-document.createElement("canvas");g.width=g.height=1;var m=g.toDataURL("image/jpeg");EditorUi.prototype.jpgSupported=null!==m.match("image/jpeg");m=g.toDataURL("image/webp");EditorUi.prototype.webpSupported=null!==m.match("image/webp")}catch(t){}})();EditorUi.prototype.createButtonContainer=function(){var d=document.createElement("div");d.className="geButtonContainer";return d};EditorUi.prototype.openLink=function(d,g,k){return this.editor.graph.openLink(d,g,k)};EditorUi.prototype.showSplash=function(d){};
+!0;EditorUi.prototype.embedExportBorder=8;EditorUi.prototype.embedExportTheme="auto";EditorUi.prototype.embedExportBackground=null;EditorUi.prototype.shareCursorPosition=!0;EditorUi.prototype.showRemoteCursors=!0;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;EditorUi.prototype.webpSupported=!1;try{var d=document.createElement("canvas");EditorUi.prototype.canvasSupported=!(!d.getContext||!d.getContext("2d"))}catch(u){}try{var g=document.createElement("canvas"),
+k=new Image;k.onload=function(){try{g.getContext("2d").drawImage(k,0,0);var u=g.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=u&&6<u.length}catch(x){}};k.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(u){}try{g=
+document.createElement("canvas");g.width=g.height=1;var m=g.toDataURL("image/jpeg");EditorUi.prototype.jpgSupported=null!==m.match("image/jpeg");m=g.toDataURL("image/webp");EditorUi.prototype.webpSupported=null!==m.match("image/webp")}catch(u){}})();EditorUi.prototype.createButtonContainer=function(){var d=document.createElement("div");d.className="geButtonContainer";return d};EditorUi.prototype.openLink=function(d,g,k){return this.editor.graph.openLink(d,g,k)};EditorUi.prototype.showSplash=function(d){};
EditorUi.prototype.getLocalData=function(d,g){g(localStorage.getItem(d))};EditorUi.prototype.setLocalData=function(d,g,k){localStorage.setItem(d,g);null!=k&&k()};EditorUi.prototype.isLocked=function(){var d=this.getCurrentFile();return null!=d&&d.isLocked()};EditorUi.prototype.removeLocalData=function(d,g){localStorage.removeItem(d);g()};EditorUi.prototype.setShareCursorPosition=function(d){this.shareCursorPosition=d;this.fireEvent(new mxEventObject("shareCursorPositionChanged"))};EditorUi.prototype.isShareCursorPosition=
function(){return this.shareCursorPosition};EditorUi.prototype.setShowRemoteCursors=function(d){this.showRemoteCursors=d;this.fireEvent(new mxEventObject("showRemoteCursorsChanged"))};EditorUi.prototype.isShowRemoteCursors=function(){return this.showRemoteCursors};EditorUi.prototype.setMathEnabled=function(d){var g=this.editor.graph;g.mathEnabled=d;null!=g.view.backgroundImage&&(g.view.backgroundImage.destroy(),g.view.backgroundImage=null);this.editor.updateGraphComponents();g.refresh();g.defaultMathEnabled=
d;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(d){return this.editor.graph.mathEnabled};EditorUi.prototype.setAdaptiveColors=function(d){this.editor.graph.setAdaptiveColors(d);this.editor.graph.view.clear();this.fireEvent(new mxEventObject("adaptiveColorsChanged"))};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.isOfflineApp()};EditorUi.prototype.isOfflineApp=function(){return"1"==urlParams.offline};
-EditorUi.prototype.isOffline=function(d){return this.isOfflineApp()||!navigator.onLine||!d&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(d,g,k){var m=null==d||null==g;k=null!=k?k:24;var t=new Spinner({lines:12,length:k,width:Math.round(k/3),radius:Math.round(k/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,
-hwaccel:!1,zIndex:2E9}),y=this.timeout,z=t.spin,I=null,F=null,C=mxUtils.bind(this,function(V){null!=V&&V()}),Q=this;t.spin=function(V,P,u,x){x=null!=x?x:y;var J=!1;if(!this.active){var H=Date.now();null!=u&&(I=window.setTimeout(function(){t.stop();I=null;u({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:F})},x));m&&(g=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,d=document.body.clientWidth/2-2);V==document.body&&"1"==urlParams.embedInline&&(V=
-Q.diagramContainer,d=V.scrollLeft+V.clientWidth/2,g=V.scrollTop+V.clientHeight/2);z.call(this,V);"1"==urlParams.embedInline&&null!=t.el&&(t.el.style.marginTop=V.scrollTop+"px",t.el.style.marginLeft=V.scrollLeft+"px");this.active=!0;null!=P&&(J=document.createElement("div"),J.className="geSpinnerStatus",J.style.position="absolute",J.style.whiteSpace="nowrap",J.style.background="#4B4243",J.style.color="white",J.style.fontFamily=Editor.defaultHtmlFont,J.style.fontSize="9pt",J.style.padding="6px",J.style.paddingLeft=
-"10px",J.style.paddingRight="10px",J.style.zIndex=2E9,J.style.left=Math.max(0,d)+"px",J.style.top=Math.max(0,g+70)+"px",mxUtils.setPrefixedStyle(J.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(J.style,"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(J.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=P.substring(P.length-3,P.length)&&"!"!=P.charAt(P.length-1)&&(P+="..."),J.innerText=P,V.appendChild(J),t.status=J);this.pause=mxUtils.bind(this,function(){var K=
-C;this.active&&(x=Math.max(0,x-(Date.now()-H)),K=mxUtils.bind(this,function(N){this.spin(V,P,u,x);if(null!=N)try{N(),F=mxUtils.bind(this,function(){this.spin(V,P,u,x);try{N()}catch(M){null!=u&&u(M)}})}catch(M){null!=u&&u(M)}}));this.stop();return K});J=!0}return J};var S=t.stop;t.stop=function(){S.call(this);this.active&&(this.active=!1,null!=I&&(window.clearTimeout(I),I=null),null!=t.status&&null!=t.status.parentNode&&t.status.parentNode.removeChild(t.status),t.status=null)};t.pause=function(){return C};
-return t};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),k=this.editor.extractGraphModel(g.documentElement,!0);return null!=k&&0==k.getElementsByTagName("parsererror").length}catch(m){}return!1};EditorUi.isVisioFilename=function(d){return/(\.v(dx|sdx?))($|\?)/i.test(d)||/(\.vs(x|sx?))($|\?)/i.test(d)};EditorUi.prototype.isVisioData=function(d){return 8<d.length&&(208==d.charCodeAt(0)&&207==d.charCodeAt(1)&&17==d.charCodeAt(2)&&224==d.charCodeAt(3)&&161==d.charCodeAt(4)&&
+EditorUi.prototype.isOffline=function(d){return this.isOfflineApp()||!navigator.onLine||!d&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(d,g,k){var m=null==d||null==g;k=null!=k?k:24;var u=new Spinner({lines:12,length:k,width:Math.round(k/3),radius:Math.round(k/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,
+hwaccel:!1,zIndex:2E9}),x=this.timeout,A=u.spin,I=null,F=null,C=mxUtils.bind(this,function(U){null!=U&&U()}),P=this;u.spin=function(U,O,V,q){q=null!=q?q:x;var y=!1;if(!this.active){var D=Date.now();null!=V&&(I=window.setTimeout(function(){u.stop();I=null;V({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:F})},q));m&&(g=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,d=document.body.clientWidth/2-2);U==document.body&&"1"==urlParams.embedInline&&(U=
+P.diagramContainer,d=U.scrollLeft+U.clientWidth/2,g=U.scrollTop+U.clientHeight/2);A.call(this,U);"1"==urlParams.embedInline&&null!=u.el&&(u.el.style.marginTop=U.scrollTop+"px",u.el.style.marginLeft=U.scrollLeft+"px");this.active=!0;null!=O&&(y=document.createElement("div"),y.className="geSpinnerStatus",y.style.position="absolute",y.style.whiteSpace="nowrap",y.style.background="#4B4243",y.style.color="white",y.style.fontFamily=Editor.defaultHtmlFont,y.style.fontSize="9pt",y.style.padding="6px",y.style.paddingLeft=
+"10px",y.style.paddingRight="10px",y.style.zIndex=2E9,y.style.left=Math.max(0,d)+"px",y.style.top=Math.max(0,g+70)+"px",mxUtils.setPrefixedStyle(y.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(y.style,"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(y.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=O.substring(O.length-3,O.length)&&"!"!=O.charAt(O.length-1)&&(O+="..."),y.innerText=O,U.appendChild(y),u.status=y);this.pause=mxUtils.bind(this,function(){var J=
+C;this.active&&(q=Math.max(0,q-(Date.now()-D)),J=mxUtils.bind(this,function(L){this.spin(U,O,V,q);if(null!=L)try{L(),F=mxUtils.bind(this,function(){this.spin(U,O,V,q);try{L()}catch(K){null!=V&&V(K)}})}catch(K){null!=V&&V(K)}}));this.stop();return J});y=!0}return y};var R=u.stop;u.stop=function(){R.call(this);this.active&&(this.active=!1,null!=I&&(window.clearTimeout(I),I=null),null!=u.status&&null!=u.status.parentNode&&u.status.parentNode.removeChild(u.status),u.status=null)};u.pause=function(){return C};
+return u};EditorUi.prototype.isCompatibleString=function(d){try{var g=mxUtils.parseXml(d),k=this.editor.extractGraphModel(g.documentElement,!0);return null!=k&&0==k.getElementsByTagName("parsererror").length}catch(m){}return!1};EditorUi.isVisioFilename=function(d){return/(\.v(dx|sdx?))($|\?)/i.test(d)||/(\.vs(x|sx?))($|\?)/i.test(d)};EditorUi.prototype.isVisioData=function(d){return 8<d.length&&(208==d.charCodeAt(0)&&207==d.charCodeAt(1)&&17==d.charCodeAt(2)&&224==d.charCodeAt(3)&&161==d.charCodeAt(4)&&
177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||80==d.charCodeAt(0)&&75==d.charCodeAt(1)&&3==d.charCodeAt(2)&&4==d.charCodeAt(3)||80==d.charCodeAt(0)&&75==d.charCodeAt(1)&&3==d.charCodeAt(2)&&6==d.charCodeAt(3))};EditorUi.prototype.isRemoteVisioData=function(d){return 8<d.length&&(208==d.charCodeAt(0)&&207==d.charCodeAt(1)&&17==d.charCodeAt(2)&&224==d.charCodeAt(3)&&161==d.charCodeAt(4)&&177==d.charCodeAt(5)&&26==d.charCodeAt(6)&&225==d.charCodeAt(7)||60==d.charCodeAt(0)&&63==d.charCodeAt(1)&&
-120==d.charCodeAt(2)&&109==d.charCodeAt(3)&&108==d.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(d){var g=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var k=g.getFunction,m=this.editor.graph,t=this;g.getFunction=function(y){if(m.isSelectionEmpty()&&null!=t.pages&&0<t.pages.length){var z=t.getSelectedPageIndex();if(mxEvent.isShiftDown(y)){if(37==y.keyCode)return function(){0<z&&t.movePage(z,z-1)};if(38==y.keyCode)return function(){0<
-z&&t.movePage(z,0)};if(39==y.keyCode)return function(){z<t.pages.length-1&&t.movePage(z,z+1)};if(40==y.keyCode)return function(){z<t.pages.length-1&&t.movePage(z,t.pages.length-1)}}else if(mxEvent.isControlDown(y)||mxClient.IS_MAC&&mxEvent.isMetaDown(y)){if(37==y.keyCode)return function(){0<z&&t.selectNextPage(!1)};if(38==y.keyCode)return function(){0<z&&t.selectPage(t.pages[0])};if(39==y.keyCode)return function(){z<t.pages.length-1&&t.selectNextPage(!0)};if(40==y.keyCode)return function(){z<t.pages.length-
-1&&t.selectPage(t.pages[t.pages.length-1])}}}return!(65<=y.keyCode&&90>=y.keyCode)||m.isSelectionEmpty()||mxEvent.isAltDown(y)||mxEvent.isShiftDown(y)||mxEvent.isControlDown(y)||mxClient.IS_MAC&&mxEvent.isMetaDown(y)?k.apply(this,arguments):null}}return g};var e=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(d){var g=e.apply(this,arguments);if(null==g)try{var k=d.indexOf("&lt;mxfile ");if(0<=k){var m=d.lastIndexOf("&lt;/mxfile&gt;");m>k&&(g=d.substring(k,
-m+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else{var t=mxUtils.parseXml(d),y=this.editor.extractGraphModel(t.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);g=null!=y?mxUtils.getXml(y):""}}catch(z){}return g};EditorUi.prototype.validateFileData=function(d){if(null!=d&&0<d.length){var g=d.indexOf('<meta charset="utf-8">');0<=g&&(d=d.slice(0,g)+'<meta charset="utf-8"/>'+d.slice(g+23-1,d.length));d=Graph.zapGremlins(d)}return d};
-EditorUi.prototype.replaceFileData=function(d,g){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[d],"patches",g);d=this.validateFileData(d);d=null!=d&&0<d.length?mxUtils.parseXml(d).documentElement:null;var k=null!=d?this.editor.extractGraphModel(d,!0):null;null!=k&&(d=k);if(null!=d){k=this.editor.graph;k.model.beginUpdate();try{var m=null!=this.pages?this.pages.slice():null,t=d.getElementsByTagName("diagram");if(1<t.length||1==t.length&&t[0].hasAttribute("name")){this.fileNode=d;this.pages=
-null!=this.pages?this.pages:[];for(var y=t.length-1;0<=y;y--){var z=this.updatePageRoot(new DiagramPage(t[y]));null==z.getName()&&z.setName(mxResources.get("pageWithNumber",[y+1]));k.model.execute(new ChangePage(this,z,0==y?z:null,0))}}else null==this.fileNode&&(this.fileNode=d.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(d.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),k.model.execute(new ChangePage(this,this.currentPage,
-this.currentPage,0))),this.editor.setGraphXml(d),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,k.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=m)for(y=0;y<m.length;y++)k.model.execute(new ChangePage(this,m[y],null));var I=this.getCurrentFile();null!=I&&I.fileReplaced(g)}finally{k.model.endUpdate()}}};EditorUi.prototype.createFileData=function(d,g,k,m,t,y,z,I,F,C,Q,S,V){g=null!=g?g:this.editor.graph;t=null!=t?t:!1;F=null!=F?F:!0;Q=null!=
-Q?Q:!Editor.defaultCompressed;var P=null;if(null==k||k.getMode()==App.MODE_DEVICE||k.getMode()==App.MODE_BROWSER)var u="_blank";else P=u=m;if(null==d)return"";var x=d;if("mxfile"!=x.nodeName.toLowerCase()){if(Q){var J=d.ownerDocument.createElement("diagram");J.setAttribute("name",mxResources.get("pageWithNumber",[1]));J.setAttribute("id",Editor.guid());J.appendChild(d)}else{J=Graph.zapGremlins(mxUtils.getXml(d));x=Graph.compress(J);if(Graph.decompress(x)!=J)return J;J=d.ownerDocument.createElement("diagram");
-J.setAttribute("name",mxResources.get("pageWithNumber",[1]));J.setAttribute("id",Editor.guid());mxUtils.setTextContent(J,x)}x=d.ownerDocument.createElement("mxfile");x.appendChild(J)}C?(x=x.cloneNode(!0),x.removeAttribute("modified"),x.removeAttribute("host"),x.removeAttribute("agent"),x.removeAttribute("etag"),x.removeAttribute("userAgent"),x.removeAttribute("version"),x.removeAttribute("editor"),x.removeAttribute("type")):(x.removeAttribute("userAgent"),x.removeAttribute("modified"),x.removeAttribute("version"),
-x.removeAttribute("editor"),x.removeAttribute("pages"),x.removeAttribute("type"),x.removeAttribute("etag"),mxClient.IS_CHROMEAPP?x.setAttribute("host","Chrome"):EditorUi.isElectronApp?x.setAttribute("host","Electron"):x.setAttribute("host",window.location.hostname),x.setAttribute("agent",null!=navigator.userAgent?navigator.userAgent:navigator.appVersion),x.setAttribute("version",EditorUi.VERSION),1<x.getElementsByTagName("diagram").length&&null!=this.pages&&x.setAttribute("pages",this.pages.length));
-null!=S&&(x=x.cloneNode(!0),x.setAttribute("scale",S));null!=V&&(x=x.cloneNode(!0),x.setAttribute("border",V));d=Q?mxUtils.getPrettyXml(x):mxUtils.getXml(x);if(!y&&!t&&(z||null!=k&&/(\.html)$/i.test(k.getTitle())))d=this.getHtml2(mxUtils.getXml(x),g,null!=k?k.getTitle():null,u,P);else if(y||!t&&null!=k&&/(\.svg)$/i.test(k.getTitle()))null==k||k.getMode()!=App.MODE_DEVICE&&k.getMode()!=App.MODE_BROWSER||(m=null),k=this.getSvgFileProperties(x),d=this.getEmbeddedSvg(d,g,m,null,I,F,P,null,null,k.scale,
-k.border,null,Editor.svgFileTheme);return d};EditorUi.prototype.getXmlFileData=function(d,g,k,m){d=null!=d?d:!0;g=null!=g?g:!1;k=null!=k?k:!Editor.defaultCompressed;var t=this.editor.getGraphXml(d,m);if(d&&null!=this.fileNode&&null!=this.currentPage)if(d=function(F){var C=F.getElementsByTagName("mxGraphModel"),Q=0<C.length?C[0]:null;C=F;null==Q&&k?(Q=mxUtils.getNodeValue(F),0<Q.length&&(Q=Graph.decompress(Q),null!=Q&&0<Q.length&&(C=F.cloneNode(!1),C.appendChild(mxUtils.parseXml(Q).documentElement)))):
-null==Q||k?C=F.cloneNode(!0):(C=F.cloneNode(!1),mxUtils.setTextContent(C,Graph.compressNode(Q)));t.appendChild(C)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(t),t=this.fileNode.cloneNode(!1),g)d(this.currentPage.node);else for(g=0;g<this.pages.length;g++){var y=this.pages[g],z=y.node;if(y!=this.currentPage)if(y.needsUpdate){var I=new mxCodec(mxUtils.createXmlDocument());I=I.encode(new mxGraphModel(y.root));this.editor.graph.saveViewState(y.viewState,I,null,
-m);EditorUi.removeChildNodes(z);z.appendChild(I);delete y.needsUpdate}else m&&(this.updatePageRoot(y),null!=y.viewState.backgroundImage&&(null!=y.viewState.backgroundImage.originalSrc?y.viewState.backgroundImage=this.createImageForPageLink(y.viewState.backgroundImage.originalSrc,y):Graph.isPageLink(y.viewState.backgroundImage.src)&&(y.viewState.backgroundImage=this.createImageForPageLink(y.viewState.backgroundImage.src,y))),null!=y.viewState.backgroundImage&&null!=y.viewState.backgroundImage.originalSrc&&
-(I=new mxCodec(mxUtils.createXmlDocument()),I=I.encode(new mxGraphModel(y.root)),this.editor.graph.saveViewState(y.viewState,I,null,m),z=z.cloneNode(!1),z.appendChild(I)));d(z)}return t};EditorUi.prototype.anonymizeString=function(d,g){for(var k=[],m=0;m<d.length;m++){var t=d.charAt(m);0<=EditorUi.ignoredAnonymizedChars.indexOf(t)?k.push(t):isNaN(parseInt(t))?t.toLowerCase()!=t?k.push(String.fromCharCode(65+Math.round(25*Math.random()))):t.toUpperCase()!=t?k.push(String.fromCharCode(97+Math.round(25*
-Math.random()))):/\s/.test(t)?k.push(" "):k.push("?"):k.push(g?"0":Math.round(9*Math.random()))}return k.join("")};EditorUi.prototype.anonymizePatch=function(d){d=mxUtils.clone(d);if(null!=d[EditorUi.DIFF_INSERT])for(var g=0;g<d[EditorUi.DIFF_INSERT].length;g++)try{var k=mxUtils.parseXml(d[EditorUi.DIFF_INSERT][g].data).documentElement.cloneNode(!1);null!=k.getAttribute("name")&&k.setAttribute("name",this.anonymizeString(k.getAttribute("name")));d[EditorUi.DIFF_INSERT][g].data=mxUtils.getXml(k)}catch(y){d[EditorUi.DIFF_INSERT][g].data=
-y.message}if(null!=d[EditorUi.DIFF_UPDATE]){for(var m in d[EditorUi.DIFF_UPDATE]){var t=d[EditorUi.DIFF_UPDATE][m];null!=t.name&&(t.name=this.anonymizeString(t.name));null!=t.cells&&(g=mxUtils.bind(this,function(y){var z=t.cells[y];if(null!=z){for(var I in z)null!=z[I].value&&(z[I].value="["+z[I].value.length+"]"),null!=z[I].xmlValue&&(z[I].xmlValue="["+z[I].xmlValue.length+"]"),null!=z[I].style&&(z[I].style="["+z[I].style.length+"]"),mxUtils.isEmptyObject(z[I])&&delete z[I];mxUtils.isEmptyObject(z)&&
-delete t.cells[y]}}),g(EditorUi.DIFF_INSERT),g(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(t.cells)&&delete t.cells);mxUtils.isEmptyObject(t)&&delete d[EditorUi.DIFF_UPDATE][m]}mxUtils.isEmptyObject(d[EditorUi.DIFF_UPDATE])&&delete d[EditorUi.DIFF_UPDATE]}return d};EditorUi.prototype.anonymizeAttributes=function(d,g){if(null!=d.attributes)for(var k=0;k<d.attributes.length;k++)"as"!=d.attributes[k].name&&d.setAttribute(d.attributes[k].name,this.anonymizeString(d.attributes[k].value,g));if(null!=d.childNodes)for(k=
+120==d.charCodeAt(2)&&109==d.charCodeAt(3)&&108==d.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(d){var g=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var k=g.getFunction,m=this.editor.graph,u=this;g.getFunction=function(x){if(m.isSelectionEmpty()&&null!=u.pages&&0<u.pages.length){var A=u.getSelectedPageIndex();if(mxEvent.isShiftDown(x)){if(37==x.keyCode)return function(){0<A&&u.movePage(A,A-1)};if(38==x.keyCode)return function(){0<
+A&&u.movePage(A,0)};if(39==x.keyCode)return function(){A<u.pages.length-1&&u.movePage(A,A+1)};if(40==x.keyCode)return function(){A<u.pages.length-1&&u.movePage(A,u.pages.length-1)}}else if(mxEvent.isControlDown(x)||mxClient.IS_MAC&&mxEvent.isMetaDown(x)){if(37==x.keyCode)return function(){0<A&&u.selectNextPage(!1)};if(38==x.keyCode)return function(){0<A&&u.selectPage(u.pages[0])};if(39==x.keyCode)return function(){A<u.pages.length-1&&u.selectNextPage(!0)};if(40==x.keyCode)return function(){A<u.pages.length-
+1&&u.selectPage(u.pages[u.pages.length-1])}}}return!(65<=x.keyCode&&90>=x.keyCode)||m.isSelectionEmpty()||mxEvent.isAltDown(x)||mxEvent.isShiftDown(x)||mxEvent.isControlDown(x)||mxClient.IS_MAC&&mxEvent.isMetaDown(x)?k.apply(this,arguments):null}}return g};var e=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(d){var g=e.apply(this,arguments);if(null==g)try{var k=d.indexOf("&lt;mxfile ");if(0<=k){var m=d.lastIndexOf("&lt;/mxfile&gt;");m>k&&(g=d.substring(k,
+m+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else{var u=mxUtils.parseXml(d),x=this.editor.extractGraphModel(u.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);g=null!=x?mxUtils.getXml(x):""}}catch(A){}return g};EditorUi.prototype.validateFileData=function(d){if(null!=d&&0<d.length){var g=d.indexOf('<meta charset="utf-8">');0<=g&&(d=d.slice(0,g)+'<meta charset="utf-8"/>'+d.slice(g+23-1,d.length));d=Graph.zapGremlins(d)}return d};
+EditorUi.prototype.replaceFileData=function(d,g){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[d],"patches",g);d=this.validateFileData(d);d=null!=d&&0<d.length?mxUtils.parseXml(d).documentElement:null;var k=null!=d?this.editor.extractGraphModel(d,!0):null;null!=k&&(d=k);if(null!=d){k=this.editor.graph;k.model.beginUpdate();try{var m=null!=this.pages?this.pages.slice():null,u=d.getElementsByTagName("diagram");if(1<u.length||1==u.length&&u[0].hasAttribute("name")){this.fileNode=d;this.pages=
+null!=this.pages?this.pages:[];for(var x=u.length-1;0<=x;x--){var A=this.updatePageRoot(new DiagramPage(u[x]));null==A.getName()&&A.setName(mxResources.get("pageWithNumber",[x+1]));k.model.execute(new ChangePage(this,A,0==x?A:null,0))}}else null==this.fileNode&&(this.fileNode=d.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(d.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),k.model.execute(new ChangePage(this,this.currentPage,
+this.currentPage,0))),this.editor.setGraphXml(d),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,k.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=m)for(x=0;x<m.length;x++)k.model.execute(new ChangePage(this,m[x],null));var I=this.getCurrentFile();null!=I&&I.fileReplaced(g)}finally{k.model.endUpdate()}}};EditorUi.prototype.createFileData=function(d,g,k,m,u,x,A,I,F,C,P,R,U){g=null!=g?g:this.editor.graph;u=null!=u?u:!1;F=null!=F?F:!0;P=null!=
+P?P:!Editor.defaultCompressed;var O=null;if(null==k||k.getMode()==App.MODE_DEVICE||k.getMode()==App.MODE_BROWSER)var V="_blank";else O=V=m;if(null==d)return"";var q=d;if("mxfile"!=q.nodeName.toLowerCase()){if(P){var y=d.ownerDocument.createElement("diagram");y.setAttribute("name",mxResources.get("pageWithNumber",[1]));y.setAttribute("id",Editor.guid());y.appendChild(d)}else{y=Graph.zapGremlins(mxUtils.getXml(d));q=Graph.compress(y);if(Graph.decompress(q)!=y)return y;y=d.ownerDocument.createElement("diagram");
+y.setAttribute("name",mxResources.get("pageWithNumber",[1]));y.setAttribute("id",Editor.guid());mxUtils.setTextContent(y,q)}q=d.ownerDocument.createElement("mxfile");q.appendChild(y)}C?(q=q.cloneNode(!0),q.removeAttribute("modified"),q.removeAttribute("host"),q.removeAttribute("agent"),q.removeAttribute("etag"),q.removeAttribute("userAgent"),q.removeAttribute("version"),q.removeAttribute("editor"),q.removeAttribute("type")):(q.removeAttribute("userAgent"),q.removeAttribute("modified"),q.removeAttribute("version"),
+q.removeAttribute("editor"),q.removeAttribute("pages"),q.removeAttribute("type"),q.removeAttribute("etag"),mxClient.IS_CHROMEAPP?q.setAttribute("host","Chrome"):EditorUi.isElectronApp?q.setAttribute("host","Electron"):q.setAttribute("host",window.location.hostname),q.setAttribute("agent",null!=navigator.userAgent?navigator.userAgent:navigator.appVersion),q.setAttribute("version",EditorUi.VERSION),1<q.getElementsByTagName("diagram").length&&null!=this.pages&&q.setAttribute("pages",this.pages.length));
+null!=R&&(q=q.cloneNode(!0),q.setAttribute("scale",R));null!=U&&(q=q.cloneNode(!0),q.setAttribute("border",U));d=P?mxUtils.getPrettyXml(q):mxUtils.getXml(q);if(!x&&!u&&(A||null!=k&&/(\.html)$/i.test(k.getTitle())))d=this.getHtml2(mxUtils.getXml(q),g,null!=k?k.getTitle():null,V,O);else if(x||!u&&null!=k&&/(\.svg)$/i.test(k.getTitle()))null==k||k.getMode()!=App.MODE_DEVICE&&k.getMode()!=App.MODE_BROWSER||(m=null),k=this.getSvgFileProperties(q),d=this.getEmbeddedSvg(d,g,m,null,I,F,O,null,null,k.scale,
+k.border,null,Editor.svgFileTheme);return d};EditorUi.prototype.getXmlFileData=function(d,g,k,m){d=null!=d?d:!0;g=null!=g?g:!1;k=null!=k?k:!Editor.defaultCompressed;var u=this.editor.getGraphXml(d,m);if(d&&null!=this.fileNode&&null!=this.currentPage)if(d=function(F){var C=F.getElementsByTagName("mxGraphModel"),P=0<C.length?C[0]:null;C=F;null==P&&k?(P=mxUtils.getNodeValue(F),0<P.length&&(P=Graph.decompress(P),null!=P&&0<P.length&&(C=F.cloneNode(!1),C.appendChild(mxUtils.parseXml(P).documentElement)))):
+null==P||k?C=F.cloneNode(!0):(C=F.cloneNode(!1),mxUtils.setTextContent(C,Graph.compressNode(P)));u.appendChild(C)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(u),u=this.fileNode.cloneNode(!1),g)d(this.currentPage.node);else for(g=0;g<this.pages.length;g++){var x=this.pages[g],A=x.node;if(x!=this.currentPage)if(x.needsUpdate){var I=new mxCodec(mxUtils.createXmlDocument());I=I.encode(new mxGraphModel(x.root));this.editor.graph.saveViewState(x.viewState,I,null,
+m);EditorUi.removeChildNodes(A);A.appendChild(I);delete x.needsUpdate}else m&&(this.updatePageRoot(x),null!=x.viewState.backgroundImage&&(null!=x.viewState.backgroundImage.originalSrc?x.viewState.backgroundImage=this.createImageForPageLink(x.viewState.backgroundImage.originalSrc,x):Graph.isPageLink(x.viewState.backgroundImage.src)&&(x.viewState.backgroundImage=this.createImageForPageLink(x.viewState.backgroundImage.src,x))),null!=x.viewState.backgroundImage&&null!=x.viewState.backgroundImage.originalSrc&&
+(I=new mxCodec(mxUtils.createXmlDocument()),I=I.encode(new mxGraphModel(x.root)),this.editor.graph.saveViewState(x.viewState,I,null,m),A=A.cloneNode(!1),A.appendChild(I)));d(A)}return u};EditorUi.prototype.anonymizeString=function(d,g){for(var k=[],m=0;m<d.length;m++){var u=d.charAt(m);0<=EditorUi.ignoredAnonymizedChars.indexOf(u)?k.push(u):isNaN(parseInt(u))?u.toLowerCase()!=u?k.push(String.fromCharCode(65+Math.round(25*Math.random()))):u.toUpperCase()!=u?k.push(String.fromCharCode(97+Math.round(25*
+Math.random()))):/\s/.test(u)?k.push(" "):k.push("?"):k.push(g?"0":Math.round(9*Math.random()))}return k.join("")};EditorUi.prototype.anonymizePatch=function(d){d=mxUtils.clone(d);if(null!=d[EditorUi.DIFF_INSERT])for(var g=0;g<d[EditorUi.DIFF_INSERT].length;g++)try{var k=mxUtils.parseXml(d[EditorUi.DIFF_INSERT][g].data).documentElement.cloneNode(!1);null!=k.getAttribute("name")&&k.setAttribute("name",this.anonymizeString(k.getAttribute("name")));d[EditorUi.DIFF_INSERT][g].data=mxUtils.getXml(k)}catch(x){d[EditorUi.DIFF_INSERT][g].data=
+x.message}if(null!=d[EditorUi.DIFF_UPDATE]){for(var m in d[EditorUi.DIFF_UPDATE]){var u=d[EditorUi.DIFF_UPDATE][m];null!=u.name&&(u.name=this.anonymizeString(u.name));null!=u.cells&&(g=mxUtils.bind(this,function(x){var A=u.cells[x];if(null!=A){for(var I in A)null!=A[I].value&&(A[I].value="["+A[I].value.length+"]"),null!=A[I].xmlValue&&(A[I].xmlValue="["+A[I].xmlValue.length+"]"),null!=A[I].style&&(A[I].style="["+A[I].style.length+"]"),mxUtils.isEmptyObject(A[I])&&delete A[I];mxUtils.isEmptyObject(A)&&
+delete u.cells[x]}}),g(EditorUi.DIFF_INSERT),g(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(u.cells)&&delete u.cells);mxUtils.isEmptyObject(u)&&delete d[EditorUi.DIFF_UPDATE][m]}mxUtils.isEmptyObject(d[EditorUi.DIFF_UPDATE])&&delete d[EditorUi.DIFF_UPDATE]}return d};EditorUi.prototype.anonymizeAttributes=function(d,g){if(null!=d.attributes)for(var k=0;k<d.attributes.length;k++)"as"!=d.attributes[k].name&&d.setAttribute(d.attributes[k].name,this.anonymizeString(d.attributes[k].value,g));if(null!=d.childNodes)for(k=
0;k<d.childNodes.length;k++)this.anonymizeAttributes(d.childNodes[k],g)};EditorUi.prototype.anonymizeNode=function(d,g){g=d.getElementsByTagName("mxCell");for(var k=0;k<g.length;k++)null!=g[k].getAttribute("value")&&g[k].setAttribute("value","["+g[k].getAttribute("value").length+"]"),null!=g[k].getAttribute("xmlValue")&&g[k].setAttribute("xmlValue","["+g[k].getAttribute("xmlValue").length+"]"),null!=g[k].getAttribute("style")&&g[k].setAttribute("style","["+g[k].getAttribute("style").length+"]"),null!=
g[k].parentNode&&"root"!=g[k].parentNode.nodeName&&null!=g[k].parentNode.parentNode&&(g[k].setAttribute("id",g[k].parentNode.getAttribute("id")),g[k].parentNode.parentNode.replaceChild(g[k],g[k].parentNode));return d};EditorUi.prototype.synchronizeCurrentFile=function(d){var g=this.getCurrentFile();null!=g&&(g.savingFile?this.handleError({message:mxResources.get("busy")}):!d&&g.invalidChecksum?g.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(g.clearAutosave(),
-this.clearStatus(),d?g.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){this.spinner.stop();g.handleFileError(k,!0)})):g.synchronizeFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){g.handleFileError(k,!0)}))))};EditorUi.prototype.getFileData=function(d,g,k,m,t,y,z,I,F,C,Q,S,V){t=null!=t?t:!0;y=null!=y?y:!1;C=null!=C?C:!Editor.defaultCompressed;var P=
-this.editor.graph;if((g||!d&&null!=F&&/(\.svg)$/i.test(F.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var u=P.getGlobalVariable;P=this.createTemporaryGraph(P.getStylesheet());P.setBackgroundImage=this.editor.graph.setBackgroundImage;P.background=this.editor.graph.background;var x=null!=this.pages?this.pages[0]:null;null==x||this.currentPage==x?P.setBackgroundImage(this.editor.graph.backgroundImage):null!=x.viewState&&null!=x.viewState&&P.setBackgroundImage(x.viewState.backgroundImage);
-P.getGlobalVariable=function(J){return"page"==J&&null!=x?x.getName():"pagenumber"==J?1:u.apply(this,arguments)};document.body.appendChild(P.container);null!=x&&P.model.setRoot(x.root)}z=null!=z?z:this.getXmlFileData(t,y,C,Q);F=null!=F?F:this.getCurrentFile();d=this.createFileData(z,P,F,window.location.href,d,g,k,m,t,I,C,S,V);P!=this.editor.graph&&P.container.parentNode.removeChild(P.container);return d};EditorUi.prototype.getHtml=function(d,g,k,m,t,y){y=null!=y?y:!0;var z=null,I=EditorUi.drawHost+
-"/js/embed-static.min.js";if(null!=g){z=y?g.getGraphBounds():g.getBoundingBox(g.getSelectionCells());var F=g.view.scale;y=Math.floor(z.x/F-g.view.translate.x);F=Math.floor(z.y/F-g.view.translate.y);z=g.background;null==t&&(g=this.getBasenames().join(";"),0<g.length&&(I=EditorUi.drawHost+"/embed.js?s="+g));d.setAttribute("x0",y);d.setAttribute("y0",F)}null!=d&&(d.setAttribute("pan","1"),d.setAttribute("zoom","1"),d.setAttribute("resize","0"),d.setAttribute("fit","0"),d.setAttribute("border","20"),
-d.setAttribute("links","1"),null!=m&&d.setAttribute("edit",m));null!=t&&(t=t.replace(/&/g,"&amp;"));d=null!=d?Graph.zapGremlins(mxUtils.getXml(d)):"";m=Graph.compress(d);Graph.decompress(m)!=d&&(m=encodeURIComponent(d));return(null==t?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=t?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==t?null!=k?"<title>"+mxUtils.htmlEntities(k)+"</title>\n":"":"<title>draw.io</title>\n")+
-(null!=t?'<meta http-equiv="refresh" content="0;URL=\''+t+"'\"/>\n":"")+"</head>\n<body"+(null==t&&null!=z&&z!=mxConstants.NONE?' style="background-color:'+z+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+m+"</div>\n</div>\n"+(null==t?'<script type="text/javascript" src="'+I+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+t+'" target="_blank"><img border="0" src="'+
-EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(d,g,k,m,t){g=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=t&&(t=t.replace(/&/g,"&amp;"));d={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,xml:Graph.zapGremlins(d),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(d.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==t?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':
-"")+"<!DOCTYPE html>\n<html"+(null!=t?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==t?null!=k?"<title>"+mxUtils.htmlEntities(k)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=t?'<meta http-equiv="refresh" content="0;URL=\''+t+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(d))+'"></div>\n'+(null==t?'<script type="text/javascript" src="'+g+'">\x3c/script>':
-'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+t+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.setFileData=function(d){d=this.validateFileData(d);this.pages=this.fileNode=this.currentPage=null;var g=null!=d&&0<d.length?mxUtils.parseXml(d).documentElement:null,k=Editor.extractParserError(g,mxResources.get("invalidOrMissingFile"));if(k)throw EditorUi.debug("EditorUi.setFileData ParserError",
-[this],"data",[d],"node",[g],"cause",[k]),Error(mxResources.get("notADiagramFile")+" ("+k+")");d=null!=g?this.editor.extractGraphModel(g,!0):null;null!=d&&(g=d);if(null!=g&&"mxfile"==g.nodeName&&(d=g.getElementsByTagName("diagram"),k={},0<d.length)){var m=this.getHashObject(),t=null;this.fileNode=g;this.pages=[];for(var y=0;y<d.length;y++){null==d[y].getAttribute("id")&&d[y].setAttribute("id",y);g=new DiagramPage(d[y]);null==g.getName()&&g.setName(mxResources.get("pageWithNumber",[y+1]));this.pages.push(g);
-if(null==m.pageId&&null!=urlParams["page-id"]&&g.getId()==urlParams["page-id"]||null!=m.pageId&&g.getId()==m.pageId)t=g;if(null==k[g.getId()])k[g.getId()]=g;else throw Error(g.getId()+": Duplicate page ID");}this.currentPage=null!=t?t:this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];g=this.currentPage.node}null==this.fileNode&&null!=g&&(this.fileNode=g.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(g.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",
-[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(g);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,this.currentPage.setDiagramModified(!1),this.scrollToPage());if(null!=urlParams["layer-ids"])try{var z=decodeURIComponent(urlParams["layer-ids"]).split(" ");g={};for(y=0;y<z.length;y++)g[z[y]]=!0;var I=this.editor.graph.getModel(),F=I.getChildren(I.root);for(y=0;y<F.length;y++){var C=F[y];I.setVisible(C,g[C.id]||!1)}}catch(Q){}};EditorUi.prototype.getBaseFilename=
+this.clearStatus(),d?g.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){this.spinner.stop();g.handleFileError(k,!0)})):g.synchronizeFile(mxUtils.bind(this,function(){g.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(k){g.handleFileError(k,!0)}))))};EditorUi.prototype.getFileData=function(d,g,k,m,u,x,A,I,F,C,P,R,U){u=null!=u?u:!0;x=null!=x?x:!1;C=null!=C?C:!Editor.defaultCompressed;var O=
+this.editor.graph;if((g||!d&&null!=F&&/(\.svg)$/i.test(F.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var V=O.getGlobalVariable;O=this.createTemporaryGraph(O.getStylesheet());O.setBackgroundImage=this.editor.graph.setBackgroundImage;O.background=this.editor.graph.background;var q=null!=this.pages?this.pages[0]:null;null==q||this.currentPage==q?O.setBackgroundImage(this.editor.graph.backgroundImage):null!=q.viewState&&null!=q.viewState&&O.setBackgroundImage(q.viewState.backgroundImage);
+O.getGlobalVariable=function(y){return"page"==y&&null!=q?q.getName():"pagenumber"==y?1:V.apply(this,arguments)};document.body.appendChild(O.container);null!=q&&O.model.setRoot(q.root)}A=null!=A?A:this.getXmlFileData(u,x,C,P);F=null!=F?F:this.getCurrentFile();d=this.createFileData(A,O,F,window.location.href,d,g,k,m,u,I,C,R,U);O!=this.editor.graph&&O.container.parentNode.removeChild(O.container);return d};EditorUi.prototype.getHtml=function(d,g,k,m,u,x){x=null!=x?x:!0;var A=null,I=EditorUi.drawHost+
+"/js/embed-static.min.js";if(null!=g){A=x?g.getGraphBounds():g.getBoundingBox(g.getSelectionCells());var F=g.view.scale;x=Math.floor(A.x/F-g.view.translate.x);F=Math.floor(A.y/F-g.view.translate.y);A=g.background;null==u&&(g=this.getBasenames().join(";"),0<g.length&&(I=EditorUi.drawHost+"/embed.js?s="+g));d.setAttribute("x0",x);d.setAttribute("y0",F)}null!=d&&(d.setAttribute("pan","1"),d.setAttribute("zoom","1"),d.setAttribute("resize","0"),d.setAttribute("fit","0"),d.setAttribute("border","20"),
+d.setAttribute("links","1"),null!=m&&d.setAttribute("edit",m));null!=u&&(u=u.replace(/&/g,"&amp;"));d=null!=d?Graph.zapGremlins(mxUtils.getXml(d)):"";m=Graph.compress(d);Graph.decompress(m)!=d&&(m=encodeURIComponent(d));return(null==u?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=u?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==u?null!=k?"<title>"+mxUtils.htmlEntities(k)+"</title>\n":"":"<title>draw.io</title>\n")+
+(null!=u?'<meta http-equiv="refresh" content="0;URL=\''+u+"'\"/>\n":"")+"</head>\n<body"+(null==u&&null!=A&&A!=mxConstants.NONE?' style="background-color:'+A+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+m+"</div>\n</div>\n"+(null==u?'<script type="text/javascript" src="'+I+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+u+'" target="_blank"><img border="0" src="'+
+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(d,g,k,m,u){g=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=u&&(u=u.replace(/&/g,"&amp;"));d={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,xml:Graph.zapGremlins(d),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(d.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==u?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':
+"")+"<!DOCTYPE html>\n<html"+(null!=u?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==u?null!=k?"<title>"+mxUtils.htmlEntities(k)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=u?'<meta http-equiv="refresh" content="0;URL=\''+u+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(d))+'"></div>\n'+(null==u?'<script type="text/javascript" src="'+g+'">\x3c/script>':
+'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+u+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.setFileData=function(d){d=this.validateFileData(d);this.pages=this.fileNode=this.currentPage=null;var g=null!=d&&0<d.length?mxUtils.parseXml(d).documentElement:null,k=Editor.extractParserError(g,mxResources.get("invalidOrMissingFile"));if(k)throw EditorUi.debug("EditorUi.setFileData ParserError",
+[this],"data",[d],"node",[g],"cause",[k]),Error(mxResources.get("notADiagramFile")+" ("+k+")");d=null!=g?this.editor.extractGraphModel(g,!0):null;null!=d&&(g=d);if(null!=g&&"mxfile"==g.nodeName&&(d=g.getElementsByTagName("diagram"),k={},0<d.length)){var m=this.getHashObject(),u=null;this.fileNode=g;this.pages=[];for(var x=0;x<d.length;x++){null==d[x].getAttribute("id")&&d[x].setAttribute("id",x);g=new DiagramPage(d[x]);null==g.getName()&&g.setName(mxResources.get("pageWithNumber",[x+1]));this.pages.push(g);
+if(null==m.pageId&&null!=urlParams["page-id"]&&g.getId()==urlParams["page-id"]||null!=m.pageId&&g.getId()==m.pageId)u=g;if(null==k[g.getId()])k[g.getId()]=g;else throw Error(g.getId()+": Duplicate page ID");}this.currentPage=null!=u?u:this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];g=this.currentPage.node}null==this.fileNode&&null!=g&&(this.fileNode=g.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(g.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",
+[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(g);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,this.currentPage.setDiagramModified(!1),this.scrollToPage());if(null!=urlParams["layer-ids"])try{var A=decodeURIComponent(urlParams["layer-ids"]).split(" ");g={};for(x=0;x<A.length;x++)g[A[x]]=!0;var I=this.editor.graph.getModel(),F=I.getChildren(I.root);for(x=0;x<F.length;x++){var C=F[x];I.setVisible(C,g[C.id]||!1)}}catch(P){}};EditorUi.prototype.getBaseFilename=
function(d){var g=this.getCurrentFile();g=null!=g&&null!=g.getTitle()?g.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(g)||/(\.html)$/i.test(g)||/(\.svg)$/i.test(g)||/(\.png)$/i.test(g))g=g.substring(0,g.lastIndexOf("."));/(\.drawio)$/i.test(g)&&(g=g.substring(0,g.lastIndexOf(".")));!d&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(g=g+"-"+this.currentPage.getName());return g};EditorUi.prototype.downloadFile=
-function(d,g,k,m,t,y,z,I,F,C,Q,S,V,P,u,x){try{m=null!=m?m:this.editor.graph.isSelectionEmpty();var J=this.getBaseFilename(!t),H=J+("xml"==d||"pdf"==d&&Q?".drawio":"")+"."+d;if("xml"==d){var K=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,m,t,null,null,null,g);this.saveData(H,d,K,"text/xml")}else if("html"==d)K=this.getHtml2(this.getFileData(!0),this.editor.graph,J),this.saveData(H,d,K,"text/html");else if("svg"!=d&&"xmlsvg"!=d||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==
-d?H=J+".png":"jpeg"==d&&(H=J+".jpg"),this.saveRequest(H,d,mxUtils.bind(this,function(E,L){try{return this.createDownloadRequest(E,d,m,L,z,t,I,F,C,Q,S,void 0,void 0,!y,V,P,u,x)}catch(O){this.handleError(O)}}));else{var N=null,M=mxUtils.bind(this,function(E){E.length<=MAX_REQUEST_SIZE?this.saveData(H,"svg",E,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(N)}))});if("svg"==d){var n=this.editor.graph.background;
-if(z||n==mxConstants.NONE)n=null;var A=this.editor.graph.getSvg(n,null,null,null,null,m);k&&this.editor.graph.addSvgShadow(A);this.editor.convertImages(A,mxUtils.bind(this,mxUtils.bind(this,function(E){this.spinner.stop();M(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(E))})))}else H=J+".svg",N=this.getFileData(!1,!0,null,mxUtils.bind(this,function(E){this.spinner.stop();M(E)}),m)}}catch(E){this.handleError(E)}};EditorUi.prototype.createDownloadRequest=function(d,g,k,m,t,y,z,I,F,
-C,Q,S,V,P,u,x,J,H){d=this.downloadRequestBuilder(d,g,k,m,t,y,z,I,F,C,Q,S,V,P,u,x,J,H);g="";for(var K in d)k=d[K],null!=k&&(g+=K+"="+encodeURIComponent(k)+"&");return new mxXmlRequest(EXPORT_URL,g)};EditorUi.prototype.downloadRequestBuilder=function(d,g,k,m,t,y,z,I,F,C,Q,S,V,P,u,x,J,H){var K=this.editor.graph,N=K.getGraphBounds();k=this.getFileData(!0,null,null,null,k,0==y?!1:"xmlpng"!=g,null,null,null,!Editor.defaultCompressed,"pdf"==g);var M=null,n=null,A=null;if(!EditorUi.isElectronApp&&(N.width*
-N.height>MAX_AREA||k.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};C=C?"1":"0";"pdf"==g&&(null!=Q?(M=Q.from,n=Q.to):0==y&&(A="1"));"xmlpng"==g&&(C="1",g="png");if(("xmlpng"==g||"svg"==g)&&null!=this.pages&&null!=this.currentPage)for(y=0;y<this.pages.length;y++)if(this.pages[y]==this.currentPage){M=y;break}y=K.background;"png"!=g&&"pdf"!=g&&"svg"!=g||!t?t||null!=y&&y!=mxConstants.NONE||(y="#ffffff"):y=mxConstants.NONE;t={globalVars:K.getExportVariables()};F&&(t.grid={size:K.gridSize,
-steps:K.view.gridSteps,color:Editor.isDarkMode()&&"pdf"==g?mxGraphView.prototype.defaultGridColor:K.view.gridColor});Graph.translateDiagram&&(t.diagramLanguage=Graph.diagramLanguage);return{format:g,from:M,to:n,allPages:A,bg:null!=y?y:mxConstants.NONE,base64:m,embedXml:C,xml:k,filename:null!=d?d:"",extras:JSON.stringify(t),scale:z,border:I,pageMargin:u,w:S&&isFinite(S)?S:null,h:V&&isFinite(V)?V:null,crop:null!=P&&P?"1":"0",fit:null!=x&&x?"1":"0",sheetsAcross:J,sheetsDown:H}};EditorUi.prototype.setMode=
+function(d,g,k,m,u,x,A,I,F,C,P,R,U,O,V,q){try{m=null!=m?m:this.editor.graph.isSelectionEmpty();var y=this.getBaseFilename(!u),D=y+("xml"==d||"pdf"==d&&P?".drawio":"")+"."+d;if("xml"==d){var J=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,m,u,null,null,null,g);this.saveData(D,d,J,"text/xml")}else if("html"==d)J=this.getHtml2(this.getFileData(!0),this.editor.graph,y),this.saveData(D,d,J,"text/html");else if("svg"!=d&&"xmlsvg"!=d||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==
+d?D=y+".png":"jpeg"==d&&(D=y+".jpg"),this.saveRequest(D,d,mxUtils.bind(this,function(G,M){try{return this.createDownloadRequest(G,d,m,M,A,u,I,F,C,P,R,void 0,void 0,!x,U,O,V,q)}catch(N){this.handleError(N)}}));else{var L=null,K=mxUtils.bind(this,function(G){G.length<=MAX_REQUEST_SIZE?this.saveData(D,"svg",G,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(L)}))});if("svg"==d){var n=this.editor.graph.background;
+if(A||n==mxConstants.NONE)n=null;var z=this.editor.graph.getSvg(n,null,null,null,null,m);k&&this.editor.graph.addSvgShadow(z);this.editor.convertImages(z,mxUtils.bind(this,mxUtils.bind(this,function(G){this.spinner.stop();K(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(G))})))}else D=y+".svg",L=this.getFileData(!1,!0,null,mxUtils.bind(this,function(G){this.spinner.stop();K(G)}),m)}}catch(G){this.handleError(G)}};EditorUi.prototype.createDownloadRequest=function(d,g,k,m,u,x,A,I,F,
+C,P,R,U,O,V,q,y,D){d=this.downloadRequestBuilder(d,g,k,m,u,x,A,I,F,C,P,R,U,O,V,q,y,D);g="";for(var J in d)k=d[J],null!=k&&(g+=J+"="+encodeURIComponent(k)+"&");return new mxXmlRequest(EXPORT_URL,g)};EditorUi.prototype.downloadRequestBuilder=function(d,g,k,m,u,x,A,I,F,C,P,R,U,O,V,q,y,D){var J=this.editor.graph,L=J.getGraphBounds();k=this.getFileData(!0,null,null,null,k,0==x?!1:"xmlpng"!=g,null,null,null,!Editor.defaultCompressed,"pdf"==g);var K=null,n=null,z=null;if(!EditorUi.isElectronApp&&(L.width*
+L.height>MAX_AREA||k.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};C=C?"1":"0";"pdf"==g&&(null!=P?(K=P.from,n=P.to):0==x&&(z="1"));"xmlpng"==g&&(C="1",g="png");if(("xmlpng"==g||"svg"==g)&&null!=this.pages&&null!=this.currentPage)for(x=0;x<this.pages.length;x++)if(this.pages[x]==this.currentPage){K=x;break}x=J.background;"png"!=g&&"pdf"!=g&&"svg"!=g||!u?u||null!=x&&x!=mxConstants.NONE||(x="#ffffff"):x=mxConstants.NONE;u={globalVars:J.getExportVariables()};F&&(u.grid={size:J.gridSize,
+steps:J.view.gridSteps,color:Editor.isDarkMode()&&"pdf"==g?mxGraphView.prototype.defaultGridColor:J.view.gridColor});Graph.translateDiagram&&(u.diagramLanguage=Graph.diagramLanguage);return{format:g,from:K,to:n,allPages:z,bg:null!=x?x:mxConstants.NONE,base64:m,embedXml:C,xml:k,filename:null!=d?d:"",extras:JSON.stringify(u),scale:A,border:I,pageMargin:V,w:R&&isFinite(R)?R:null,h:U&&isFinite(U)?U:null,crop:null!=O&&O?"1":"0",fit:null!=q&&q?"1":"0",sheetsAcross:y,sheetsDown:D}};EditorUi.prototype.setMode=
function(d,g){this.mode=d};EditorUi.prototype.getDiagramId=function(){var d=window.location.hash;null!=d&&0<d.length&&(d=d.substring(1));if(null!=d&&1<d.length){var g=d.indexOf("#");0<=g&&(d=d.substring(0,g))}return d};EditorUi.prototype.getHashObject=function(){var d=window.location.hash,g={};if(null!=d&&0<d.length){var k=d.lastIndexOf("#");if(0<k){d=decodeURIComponent(d.substring(k+1));try{g=JSON.parse(d)}catch(m){}}}return g};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&
null!=this.currentPage&&""!=this.currentFile.getHash()){var d=this.getHashObject();d.pageId=this.currentPage.getId();this.setHashObject(d)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(d){if(Editor.enableHashObjects){var g=window.location.hash;if(null==g||""==g)g="#";var k=g.lastIndexOf("#");0<k&&(g=g.substring(0,k));try{null==d||mxUtils.isEmptyObject(d)||(g=g+"#"+encodeURIComponent(JSON.stringify(d)))}catch(m){}0<k&&0<g.lastIndexOf("#")?window.location.hash=g:window.location.replace(g)}};
-EditorUi.prototype.loadDescriptor=function(d,g,k){var m=window.location.hash,t=mxUtils.bind(this,function(z){var I=null!=d.data?d.data:"";null!=z&&0<z.length&&(0<I.length&&(I+="\n"),I+=z);z=new LocalFile(this,"csv"!=d.format&&0<I.length?I:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);z.getHash=function(){return m};this.fileLoaded(z);"csv"==d.format&&this.importCsv(I,mxUtils.bind(this,function(V){this.editor.undoManager.clear();this.editor.setModified(!1);
-this.clearStatus()}));if(null!=d.update){var F=null!=d.interval?parseInt(d.interval):6E4,C=null,Q=mxUtils.bind(this,function(){var V=this.currentPage;mxUtils.post(d.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(P){V===this.currentPage&&(200<=P.getStatus()&&300>=P.getStatus()?(this.updateDiagram(P.getText()),S()):this.handleError({message:mxResources.get("error")+" "+P.getStatus()}))}),mxUtils.bind(this,function(P){this.handleError(P)}))}),S=
-mxUtils.bind(this,function(){window.clearTimeout(C);C=window.setTimeout(Q,F)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){S();Q()}));S();Q()}null!=g&&g()});if(null!=d.url&&0<d.url.length){var y=this.editor.getProxiedUrl(d.url);this.editor.loadUrl(y,mxUtils.bind(this,function(z){t(z)}),mxUtils.bind(this,function(z){null!=k&&k(z)}))}else t("")};EditorUi.prototype.updateDiagram=function(d){function g(N){var M=new mxCellOverlay(N.image||t.warningImage,N.tooltip,N.align,N.valign,
-N.offset);M.addListener(mxEvent.CLICK,function(n,A){m.alert(N.tooltip)});return M}var k=null,m=this;if(null!=d&&0<d.length&&(k=mxUtils.parseXml(d),d=null!=k?k.documentElement:null,null!=d&&"updates"==d.nodeName)){var t=this.editor.graph,y=t.getModel();y.beginUpdate();var z=null;try{for(d=d.firstChild;null!=d;){if("update"==d.nodeName){var I=y.getCell(d.getAttribute("id"));if(null!=I){try{var F=d.getAttribute("value");if(null!=F){var C=mxUtils.parseXml(F).documentElement;if(null!=C)if("1"==C.getAttribute("replace-value"))y.setValue(I,
-C);else for(var Q=C.attributes,S=0;S<Q.length;S++)t.setAttributeForCell(I,Q[S].nodeName,0<Q[S].nodeValue.length?Q[S].nodeValue:null)}}catch(N){null!=window.console&&console.log("Error in value for "+I.id+": "+N)}try{var V=d.getAttribute("style");null!=V&&t.model.setStyle(I,V)}catch(N){null!=window.console&&console.log("Error in style for "+I.id+": "+N)}try{var P=d.getAttribute("icon");if(null!=P){var u=0<P.length?JSON.parse(P):null;null!=u&&u.append||t.removeCellOverlays(I);null!=u&&t.addCellOverlay(I,
-g(u))}}catch(N){null!=window.console&&console.log("Error in icon for "+I.id+": "+N)}try{var x=d.getAttribute("geometry");if(null!=x){x=JSON.parse(x);var J=t.getCellGeometry(I);if(null!=J){J=J.clone();for(key in x){var H=parseFloat(x[key]);"dx"==key?J.x+=H:"dy"==key?J.y+=H:"dw"==key?J.width+=H:"dh"==key?J.height+=H:J[key]=parseFloat(x[key])}t.model.setGeometry(I,J)}}}catch(N){null!=window.console&&console.log("Error in icon for "+I.id+": "+N)}}}else if("model"==d.nodeName){for(var K=d.firstChild;null!=
-K&&K.nodeType!=mxConstants.NODETYPE_ELEMENT;)K=K.nextSibling;null!=K&&(new mxCodec(d.firstChild)).decode(K,y)}else if("view"==d.nodeName){if(d.hasAttribute("scale")&&(t.view.scale=parseFloat(d.getAttribute("scale"))),d.hasAttribute("dx")||d.hasAttribute("dy"))t.view.translate=new mxPoint(parseFloat(d.getAttribute("dx")||0),parseFloat(d.getAttribute("dy")||0))}else"fit"==d.nodeName&&(z=d.hasAttribute("max-scale")?parseFloat(d.getAttribute("max-scale")):1);d=d.nextSibling}}finally{y.endUpdate()}null!=
-z&&this.chromelessResize&&this.chromelessResize(!0,z)}return k};EditorUi.prototype.getCopyFilename=function(d,g){var k=null!=d&&null!=d.getTitle()?d.getTitle():this.defaultFilename;d="";var m=k.lastIndexOf(".");0<=m&&(d=k.substring(m),k=k.substring(0,m));if(g){g=k;var t=new Date;k=t.getFullYear();m=t.getMonth()+1;var y=t.getDate(),z=t.getHours(),I=t.getMinutes();t=t.getSeconds();k=g+(" "+(k+"-"+m+"-"+y+"-"+z+"-"+I+"-"+t))}return k=mxResources.get("copyOf",[k])+d};EditorUi.prototype.logIfModified=
-function(d,g){try{null!=d&&g&&EditorUi.debug("File.closed",[d])}catch(k){}};EditorUi.prototype.fileLoaded=function(d,g,k){var m=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var t=!1;this.hideDialog();null!=m&&(m.removeListener(this.descriptorChangedListener),this.logIfModified(m,!0),m.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var y=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=m&&
+EditorUi.prototype.loadDescriptor=function(d,g,k){var m=window.location.hash,u=mxUtils.bind(this,function(A){var I=null!=d.data?d.data:"";null!=A&&0<A.length&&(0<I.length&&(I+="\n"),I+=A);A=new LocalFile(this,"csv"!=d.format&&0<I.length?I:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);A.getHash=function(){return m};this.fileLoaded(A);"csv"==d.format&&this.importCsv(I,mxUtils.bind(this,function(U){this.editor.undoManager.clear();this.editor.setModified(!1);
+this.clearStatus()}));if(null!=d.update){var F=null!=d.interval?parseInt(d.interval):6E4,C=null,P=mxUtils.bind(this,function(){var U=this.currentPage;mxUtils.post(d.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(O){U===this.currentPage&&(200<=O.getStatus()&&300>=O.getStatus()?(this.updateDiagram(O.getText()),R()):this.handleError({message:mxResources.get("error")+" "+O.getStatus()}))}),mxUtils.bind(this,function(O){this.handleError(O)}))}),R=
+mxUtils.bind(this,function(){window.clearTimeout(C);C=window.setTimeout(P,F)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){R();P()}));R();P()}null!=g&&g()});if(null!=d.url&&0<d.url.length){var x=this.editor.getProxiedUrl(d.url);this.editor.loadUrl(x,mxUtils.bind(this,function(A){u(A)}),mxUtils.bind(this,function(A){null!=k&&k(A)}))}else u("")};EditorUi.prototype.updateDiagram=function(d){function g(L){var K=new mxCellOverlay(L.image||u.warningImage,L.tooltip,L.align,L.valign,
+L.offset);K.addListener(mxEvent.CLICK,function(n,z){m.alert(L.tooltip)});return K}var k=null,m=this;if(null!=d&&0<d.length&&(k=mxUtils.parseXml(d),d=null!=k?k.documentElement:null,null!=d&&"updates"==d.nodeName)){var u=this.editor.graph,x=u.getModel();x.beginUpdate();var A=null;try{for(d=d.firstChild;null!=d;){if("update"==d.nodeName){var I=x.getCell(d.getAttribute("id"));if(null!=I){try{var F=d.getAttribute("value");if(null!=F){var C=mxUtils.parseXml(F).documentElement;if(null!=C)if("1"==C.getAttribute("replace-value"))x.setValue(I,
+C);else for(var P=C.attributes,R=0;R<P.length;R++)u.setAttributeForCell(I,P[R].nodeName,0<P[R].nodeValue.length?P[R].nodeValue:null)}}catch(L){null!=window.console&&console.log("Error in value for "+I.id+": "+L)}try{var U=d.getAttribute("style");null!=U&&u.model.setStyle(I,U)}catch(L){null!=window.console&&console.log("Error in style for "+I.id+": "+L)}try{var O=d.getAttribute("icon");if(null!=O){var V=0<O.length?JSON.parse(O):null;null!=V&&V.append||u.removeCellOverlays(I);null!=V&&u.addCellOverlay(I,
+g(V))}}catch(L){null!=window.console&&console.log("Error in icon for "+I.id+": "+L)}try{var q=d.getAttribute("geometry");if(null!=q){q=JSON.parse(q);var y=u.getCellGeometry(I);if(null!=y){y=y.clone();for(key in q){var D=parseFloat(q[key]);"dx"==key?y.x+=D:"dy"==key?y.y+=D:"dw"==key?y.width+=D:"dh"==key?y.height+=D:y[key]=parseFloat(q[key])}u.model.setGeometry(I,y)}}}catch(L){null!=window.console&&console.log("Error in icon for "+I.id+": "+L)}}}else if("model"==d.nodeName){for(var J=d.firstChild;null!=
+J&&J.nodeType!=mxConstants.NODETYPE_ELEMENT;)J=J.nextSibling;null!=J&&(new mxCodec(d.firstChild)).decode(J,x)}else if("view"==d.nodeName){if(d.hasAttribute("scale")&&(u.view.scale=parseFloat(d.getAttribute("scale"))),d.hasAttribute("dx")||d.hasAttribute("dy"))u.view.translate=new mxPoint(parseFloat(d.getAttribute("dx")||0),parseFloat(d.getAttribute("dy")||0))}else"fit"==d.nodeName&&(A=d.hasAttribute("max-scale")?parseFloat(d.getAttribute("max-scale")):1);d=d.nextSibling}}finally{x.endUpdate()}null!=
+A&&this.chromelessResize&&this.chromelessResize(!0,A)}return k};EditorUi.prototype.getCopyFilename=function(d,g){var k=null!=d&&null!=d.getTitle()?d.getTitle():this.defaultFilename;d="";var m=k.lastIndexOf(".");0<=m&&(d=k.substring(m),k=k.substring(0,m));if(g){g=k;var u=new Date;k=u.getFullYear();m=u.getMonth()+1;var x=u.getDate(),A=u.getHours(),I=u.getMinutes();u=u.getSeconds();k=g+(" "+(k+"-"+m+"-"+x+"-"+A+"-"+I+"-"+u))}return k=mxResources.get("copyOf",[k])+d};EditorUi.prototype.logIfModified=
+function(d,g){try{null!=d&&g&&EditorUi.debug("File.closed",[d])}catch(k){}};EditorUi.prototype.fileLoaded=function(d,g,k){var m=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var u=!1;this.hideDialog();null!=m&&(m.removeListener(this.descriptorChangedListener),this.logIfModified(m,!0),m.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var x=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=m&&
this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();this.setBackgroundImage(null);!g&&null!=window.location.hash&&0<window.location.hash.length&&(window.location.hash="");null!=this.fname&&(this.fname.innerText="");this.clearStatus();this.updateUi();g||this.showSplash()});if(null!=d)try{this.openingFile=!0;this.setCurrentFile(d);d.addListener("descriptorChanged",this.descriptorChangedListener);d.addListener("contentChanged",this.descriptorChangedListener);d.open();
delete this.openingFile;this.setGraphEnabled(!0);this.setMode(d.getMode());this.editor.graph.model.prefix=Editor.guid()+"-";this.editor.undoManager.clear();this.descriptorChanged();this.updateUi();d.isEditable()?d.isModified()?d.addUnsavedStatus():this.clearStatus():this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus('<div class="geStatusBox" title="'+mxUtils.htmlEntities(mxResources.get("readOnly"))+'">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</div>")}));!this.editor.isChromelessView()||
-this.editor.editable?(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self!==window.top&&window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();null!=k&&k();this.editor.fireEvent(new mxEventObject("fileLoaded"));t=!0;if(!this.isOffline()&&null!=d.getMode()){var z="1"==urlParams.sketch?"sketch":uiTheme;if(null==z)z="default";else if("sketch"==z||"min"==z)z+=Editor.isDarkMode()?"-dark":"-light"}EditorUi.debug("File.opened",
+this.editor.editable?(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self!==window.top&&window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();null!=k&&k();this.editor.fireEvent(new mxEventObject("fileLoaded"));u=!0;if(!this.isOffline()&&null!=d.getMode()){var A="1"==urlParams.sketch?"sketch":uiTheme;if(null==A)A="default";else if("sketch"==A||"min"==A)A+=Editor.isDarkMode()?"-dark":"-light"}EditorUi.debug("File.opened",
[d]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==d.getMode()&&d.getMode()!=App.MODE_DEVICE&&null!=d.getMode())try{this.addRecent({id:d.getHash(),title:d.getTitle(),mode:d.getMode()})}catch(I){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(I){}}catch(I){this.fileLoadedError=I;if(null!=d)try{d.close()}catch(F){}d=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,
-mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=m?this.fileLoaded(m)||y():y()});g?d():(null!=I.fallbackFileData&&(I.alternateAction={label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var F=new LocalFile(this,I.fallbackFileData,this.defaultFilename,!0);this.fileLoaded(F)})}),this.handleError(I,mxResources.get("errorLoadingFile"),d,!0,null,null,!0))}else y();return t};EditorUi.prototype.getHashValueForPages=function(d,g){var k=
-0,m=new mxGraphModel,t=new mxCodec;null!=g&&(g.byteCount=0,g.attrCount=0,g.eltCount=0,g.nodeCount=0);for(var y=0;y<d.length;y++){this.updatePageRoot(d[y]);var z=d[y].node.cloneNode(!1);z.removeAttribute("name");m.root=d[y].root;var I=t.encode(m);this.editor.graph.saveViewState(d[y].viewState,I,!0);I.removeAttribute("pageWidth");I.removeAttribute("pageHeight");z.appendChild(I);null!=g&&(g.eltCount+=z.getElementsByTagName("*").length,g.nodeCount+=z.getElementsByTagName("mxCell").length);k=(k<<5)-k+
-this.hashValue(z,function(F,C,Q,S){return!S||"mxGeometry"!=F.nodeName&&"mxPoint"!=F.nodeName||"x"!=C&&"y"!=C&&"width"!=C&&"height"!=C?S&&"mxCell"==F.nodeName&&"previous"==C?null:Q:Math.round(Q)},g)<<0}return k};EditorUi.prototype.hashValue=function(d,g,k){var m=0;if(null!=d&&"object"===typeof d&&"number"===typeof d.nodeType&&"string"===typeof d.nodeName&&"function"===typeof d.getAttribute){null!=d.nodeName&&(m^=this.hashValue(d.nodeName,g,k));if(null!=d.attributes){null!=k&&(k.attrCount+=d.attributes.length);
-for(var t=0;t<d.attributes.length;t++){var y=d.attributes[t].name,z=null!=g?g(d,y,d.attributes[t].value,!0):d.attributes[t].value;null!=z&&(m^=this.hashValue(y,g,k)+this.hashValue(z,g,k))}}if(null!=d.childNodes)for(t=0;t<d.childNodes.length;t++)m=(m<<5)-m+this.hashValue(d.childNodes[t],g,k)<<0}else if(null!=d&&"function"!==typeof d){d=String(d);g=0;null!=k&&(k.byteCount+=d.length);for(t=0;t<d.length;t++)g=(g<<5)-g+d.charCodeAt(t)<<0;m^=g}return m};EditorUi.prototype.descriptorChanged=function(){};
-EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,g,k,m,t,y,z){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(d){null==d&&(d=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,d,".scratchpad"))})):this.closeLibrary(this.scratchpad))};
+mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=m?this.fileLoaded(m)||x():x()});g?d():(null!=I.fallbackFileData&&(I.alternateAction={label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var F=new LocalFile(this,I.fallbackFileData,this.defaultFilename,!0);this.fileLoaded(F)})}),this.handleError(I,mxResources.get("errorLoadingFile"),d,!0,null,null,!0))}else x();return u};EditorUi.prototype.getHashValueForPages=function(d,g){var k=
+0,m=new mxGraphModel,u=new mxCodec;null!=g&&(g.byteCount=0,g.attrCount=0,g.eltCount=0,g.nodeCount=0);for(var x=0;x<d.length;x++){this.updatePageRoot(d[x]);var A=d[x].node.cloneNode(!1);A.removeAttribute("name");m.root=d[x].root;var I=u.encode(m);this.editor.graph.saveViewState(d[x].viewState,I,!0);I.removeAttribute("pageWidth");I.removeAttribute("pageHeight");A.appendChild(I);null!=g&&(g.eltCount+=A.getElementsByTagName("*").length,g.nodeCount+=A.getElementsByTagName("mxCell").length);k=(k<<5)-k+
+this.hashValue(A,function(F,C,P,R){return!R||"mxGeometry"!=F.nodeName&&"mxPoint"!=F.nodeName||"x"!=C&&"y"!=C&&"width"!=C&&"height"!=C?R&&"mxCell"==F.nodeName&&"previous"==C?null:P:Math.round(P)},g)<<0}return k};EditorUi.prototype.hashValue=function(d,g,k){var m=0;if(null!=d&&"object"===typeof d&&"number"===typeof d.nodeType&&"string"===typeof d.nodeName&&"function"===typeof d.getAttribute){null!=d.nodeName&&(m^=this.hashValue(d.nodeName,g,k));if(null!=d.attributes){null!=k&&(k.attrCount+=d.attributes.length);
+for(var u=0;u<d.attributes.length;u++){var x=d.attributes[u].name,A=null!=g?g(d,x,d.attributes[u].value,!0):d.attributes[u].value;null!=A&&(m^=this.hashValue(x,g,k)+this.hashValue(A,g,k))}}if(null!=d.childNodes)for(u=0;u<d.childNodes.length;u++)m=(m<<5)-m+this.hashValue(d.childNodes[u],g,k)<<0}else if(null!=d&&"function"!==typeof d){d=String(d);g=0;null!=k&&(k.byteCount+=d.length);for(u=0;u<d.length;u++)g=(g<<5)-g+d.charCodeAt(u)<<0;m^=g}return m};EditorUi.prototype.descriptorChanged=function(){};
+EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(d,g,k,m,u,x,A){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(d){null==d&&(d=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,d,".scratchpad"))})):this.closeLibrary(this.scratchpad))};
EditorUi.prototype.createLibraryDataFromImages=function(d){if(!Editor.defaultCompressed)for(var g=0;g<d.length;g++)null!=d[g].xml&&"<"!=d[g].xml.charAt(0)&&(d[g].xml=mxUtils.trim(Graph.decompress(d[g].xml)));g=mxUtils.createXmlDocument();var k=g.createElement("mxlibrary");mxUtils.setTextContent(k,JSON.stringify(d,null,2));g.appendChild(k);return mxUtils.getXml(g,"\n")};EditorUi.prototype.closeLibrary=function(d){null!=d&&(this.removeLibrarySidebar(d.getHash()),d.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(d.getHash()),
".scratchpad"==d.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(d){var g=this.sidebar.palettes[d];if(null!=g){for(var k=0;k<g.length;k++)g[k].parentNode.removeChild(g[k]);delete this.sidebar.palettes[d]}};EditorUi.prototype.repositionLibrary=function(d,g){var k=this.sidebar.getEntryContainer();if(!this.sidebar.appendCustomLibraries||null!=d||!g){null==d&&(g=this.sidebar.palettes["L.scratchpad"],null==g&&(g=this.sidebar.palettes.search),null!=g&&(d=g[g.length-1].nextSibling));
d=null!=d?d:k.firstChild.nextSibling.nextSibling;g=k.lastChild;var m=g.previousSibling;k.insertBefore(g,d);k.insertBefore(m,g)}};EditorUi.prototype.loadLibrary=function(d,g){var k=mxUtils.parseXml(d.getData());if("mxlibrary"==k.documentElement.nodeName){var m=JSON.parse(mxUtils.getTextContent(k.documentElement));this.libraryLoaded(d,m,k.documentElement.getAttribute("title"),g)}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(d){return""};EditorUi.prototype.showSidebar=
-function(){null!=this.sidebarWindow?this.sidebarWindow.window.setVisible(!0):this.toggleShapesPanel(!0)};EditorUi.prototype.libraryLoaded=function(d,g,k,m){if(null!=this.sidebar){d.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(d.getHash());var t=null;if(d.constructor!=StorageLibrary||".scratchpad"!=d.title){null==this.openLibraries&&(this.openLibraries=[]);for(var y=0;y<this.openLibraries.length;y++)if(this.openLibraries[y].file.getHash()==d.getHash()){mxUtils.remove(this.openLibraries[y],
-this.openLibraries);break}t={file:d,images:g,title:k,expand:m};this.openLibraries.push(t)}else this.scratchpad=d;y=this.sidebar.palettes[d.getHash()];y=null!=y?y[y.length-1].nextSibling:null;this.removeLibrarySidebar(d.getHash());var z=null,I=mxUtils.bind(this,function(H,K){0==H.length&&d.isEditable()?(null==z&&(z=document.createElement("div"),z.className="geDropTarget",mxUtils.write(z,mxResources.get("dragElementsHere"))),K.appendChild(z)):this.addLibraryEntries(H,K)});null!=this.sidebar&&null!=
-g&&this.sidebar.addEntries(g);null==k&&(k=d.getTitle(),null!=k&&/(\.xml)$/i.test(k)&&(k=k.substring(0,k.lastIndexOf("."))));var F=this.sidebar.addPalette(d.getHash(),k,null!=m?m:!0,mxUtils.bind(this,function(H){I(g,H)}));null!=t&&(t.div=F);this.repositionLibrary(y,"L.scratchpad"!=d.getHash());m=F.parentNode.previousSibling;k=m.getAttribute("title");null!=k&&0<k.length&&".scratchpad"!=d.title&&m.setAttribute("title",this.getLibraryStorageHint(d)+"\n"+k);var C=document.createElement("div");C.style.backgroundColor=
-"inherit";m.style.position="relative";var Q=document.createElement("img");Q.className="geLibraryButton";Q.setAttribute("src",Editor.crossImage);Q.setAttribute("title",mxResources.get("close"));var S=null;if(".scratchpad"!=d.title||this.closableScratchpad)C.appendChild(Q),mxEvent.addListener(Q,"click",mxUtils.bind(this,function(H){if(!mxEvent.isConsumed(H)){var K=mxUtils.bind(this,function(){null!=t&&mxUtils.remove(t,this.openLibraries);this.closeLibrary(d)});null!=S?this.confirm(mxResources.get("allChangesLost"),
-null,K,mxResources.get("cancel"),mxResources.get("discardChanges")):K();mxEvent.consume(H)}}));if(d.isEditable()){var V=this.editor.graph,P=null;k=mxUtils.bind(this,function(H){this.showLibraryDialog(d.getTitle(),F,g,d,d.getMode());mxEvent.consume(H)});var u=mxUtils.bind(this,function(H){d.setModified(!0);d.isAutosave()?(null!=P&&null!=P.parentNode&&P.parentNode.removeChild(P),P=Q.cloneNode(!1),P.setAttribute("src",Editor.spinImage),P.setAttribute("title",mxResources.get("saving")),P.style.cursor=
-"default",P.style.marginRight="2px",P.style.marginTop="-2px",C.insertBefore(P,C.firstChild),this.saveLibrary(d.getTitle(),g,d,d.getMode(),!0,!0,function(){null!=P&&null!=P.parentNode&&P.parentNode.removeChild(P)})):null==S&&(S=Q.cloneNode(!1),S.setAttribute("src",Editor.saveImage),S.setAttribute("title",mxResources.get("save")),C.insertBefore(S,C.firstChild),mxEvent.addListener(S,"click",mxUtils.bind(this,function(K){this.saveLibrary(d.getTitle(),g,d,d.getMode(),d.constructor==LocalLibrary,!0,function(){null==
-S||d.isModified()||(S.parentNode.removeChild(S),S=null)});mxEvent.consume(K)})))}),x=mxUtils.bind(this,function(H,K,N,M){H=V.cloneCells(mxUtils.sortCells(V.model.getTopmostCells(H)));for(var n=0;n<H.length;n++){var A=V.getCellGeometry(H[n]);null!=A&&A.translate(-K.x,-K.y)}F.appendChild(this.sidebar.createVertexTemplateFromCells(H,K.width,K.height,M||"",!0,null,!1));H=mxUtils.getXml(this.editor.graph.encodeCells(H));Editor.defaultCompressed&&(H=Graph.compress(H));K={xml:H,w:K.width,h:K.height};null!=
-M&&(K.title=M);g.push(K);u(N);null!=z&&null!=z.parentNode&&0<g.length&&(z.parentNode.removeChild(z),z=null)}),J=mxUtils.bind(this,function(H){if(V.isSelectionEmpty())V.getRubberband().isActive()?(V.getRubberband().execute(H),V.getRubberband().reset()):this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var K=V.getSelectionCells(),N=V.view.getBounds(K);if(null!=N&&0<N.width&&0<N.height){var M=V.view.scale;N.x/=M;N.y/=M;N.width/=M;N.height/=M;N.x-=
-V.view.translate.x;N.y-=V.view.translate.y;x(K,N)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(H)});mxEvent.addGestureListeners(F,function(){},mxUtils.bind(this,function(H){V.isMouseDown&&null!=V.panningManager&&null!=V.graphHandler.first&&(V.graphHandler.suspend(),null!=V.graphHandler.hint&&(V.graphHandler.hint.style.visibility="hidden"),F.style.backgroundColor="light-dark(#fefefe, #000000)",F.style.cursor="copy",V.panningManager.stop(),
-V.autoScroll=!1,mxEvent.consume(H))}),mxUtils.bind(this,function(H){V.isMouseDown&&null!=V.panningManager&&null!=V.graphHandler&&(F.style.backgroundColor="",F.style.cursor="default",this.sidebar.showTooltips=!0,V.panningManager.stop(),V.graphHandler.reset(),V.isMouseDown=!1,V.autoScroll=!0,J(H),mxEvent.consume(H))}));mxEvent.addListener(F,"mouseleave",mxUtils.bind(this,function(H){V.isMouseDown&&null!=V.graphHandler.first&&(V.graphHandler.resume(),null!=V.graphHandler.hint&&(V.graphHandler.hint.style.visibility=
-"visible"),F.style.backgroundColor="",F.style.cursor="",V.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(F,"dragover",mxUtils.bind(this,function(H){F.style.backgroundColor="light-dark(#fefefe, #000000)";H.dataTransfer.dropEffect="copy";F.style.cursor="copy";this.sidebar.hideTooltip();H.stopPropagation();H.preventDefault()})),mxEvent.addListener(F,"drop",mxUtils.bind(this,function(H){F.style.cursor="";F.style.backgroundColor="";0<H.dataTransfer.files.length&&this.importFiles(H.dataTransfer.files,
-0,0,this.maxImageSize,mxUtils.bind(this,function(K,N,M,n,A,E,L,O,R){if(null!=K&&"image/"==N.substring(0,6))K="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(K),K=[new mxCell("",new mxGeometry(0,0,A,E),K)],K[0].vertex=!0,x(K,new mxRectangle(0,0,A,E),H,mxEvent.isAltDown(H)?null:L.substring(0,L.lastIndexOf(".")).replace(/_/g," ")),null!=z&&null!=z.parentNode&&0<g.length&&(z.parentNode.removeChild(z),z=null);else{var T=!1,U=mxUtils.bind(this,
-function(W,X){null!=W&&"application/pdf"==X&&(X=Editor.extractGraphModelFromPdf(W),null!=X&&0<X.length&&(W=X));if(null!=W)if(W=mxUtils.parseXml(W),"mxlibrary"==W.documentElement.nodeName)try{var Y=JSON.parse(mxUtils.getTextContent(W.documentElement));I(Y,F);g=g.concat(Y);u(H);this.spinner.stop();T=!0}catch(ia){}else if("mxfile"==W.documentElement.nodeName)try{var Z=W.documentElement.getElementsByTagName("diagram");for(Y=0;Y<Z.length;Y++){var ca=this.stringToCells(Editor.getDiagramNodeXml(Z[Y])),ea=
-this.editor.graph.getBoundingBoxFromGeometry(ca);null!=ea&&x(ca,new mxRectangle(0,0,ea.width,ea.height),H)}T=!0}catch(ia){null!=window.console&&console.log("error in drop handler:",ia)}T||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=z&&null!=z.parentNode&&0<g.length&&(z.parentNode.removeChild(z),z=null)});null!=R&&null!=L&&EditorUi.isVisioFilename(L)?this.importVisio(R,function(W){U(W,"text/xml")},null,L):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(K,
-L)&&null!=R?this.isExternalDataComms()?this.parseFile(R,mxUtils.bind(this,function(W){4==W.readyState&&(this.spinner.stop(),200<=W.status&&299>=W.status?U(W.responseText,"text/xml"):this.handleError({message:mxResources.get(413==W.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):U(K,N)}}));H.stopPropagation();H.preventDefault()})),mxEvent.addListener(F,"dragleave",
-function(H){F.style.cursor="";F.style.backgroundColor="";H.stopPropagation();H.preventDefault()}));Q=Q.cloneNode(!1);Q.setAttribute("src",Editor.editImage);Q.setAttribute("title",mxResources.get("edit"));C.insertBefore(Q,C.firstChild);mxEvent.addListener(Q,"click",k);k=Q.cloneNode(!1);k.setAttribute("src",Editor.plusImage);k.setAttribute("title",mxResources.get("add"));C.insertBefore(k,C.firstChild);mxEvent.addListener(k,"click",J);".scratchpad"==d.title&&(this.addSelectionToScratchpad=J);this.isOffline()||
-".scratchpad"!=d.title||null==EditorUi.scratchpadHelpLink||(k=this.createHelpIcon(EditorUi.scratchpadHelpLink,!0),k.className="geLibraryButton",C.insertBefore(k,C.firstChild))}m.appendChild(C);this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(d,g){for(var k=0;k<d.length;k++)try{var m=d[k],t=m.data;if(null!=t){t="data:"==t.substring(0,5)?this.convertDataUri(t):t;var y="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";
-"fixed"==m.aspect&&(y+="aspect=fixed;");y=y+"image="+t+";";null!=m.style&&(y+=m.style);g.appendChild(this.sidebar.createVertexTemplate(y,m.w,m.h,"",m.title||"",!1,null,!0))}else if(null!=m.xml){var z=this.stringToCells("<"==m.xml.charAt(0)?m.xml:Graph.decompress(m.xml)),I=0==z.length?mxResources.get("drawingEmpty"):null!=m.title?m.title:"";g.appendChild(this.sidebar.createVertexTemplateFromCells(z,m.w,m.h,I,!0,null,!0))}}catch(F){I=null!=F.message?mxResources.get("error")+": "+F.message:String(F),
-y=this.sidebar.createVertexTemplateFromCells(null,m.w,m.h,I,!0,null,!0),g.appendChild(y)}};EditorUi.prototype.getResource=function(d){return null!=d?d[mxLanguage]||d.main:null};"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=
-function(d,g,k,m,t,y,z){d=new ImageDialog(this,d,g,k,m,t,y,z);this.showDialog(d.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);d.init()};EditorUi.prototype.showLocalStorageDialog=function(d,g,k,m,t,y){var z=localStorage.getItem(g);d=new TextareaDialog(this,d,null!=z?JSON.stringify(JSON.parse(z),null,2):"",mxUtils.bind(this,function(I){if(null!=I)try{if(null!=y&&y(I),I==z)this.hideDialog();else{if(0<I.length){var F=JSON.parse(I);localStorage.setItem(g,JSON.stringify(F))}else localStorage.removeItem(g);
-this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(C){this.handleError(C)}}),null,mxResources.get("close"),null,null,null,!0,null,null,t,k,m);this.showDialog(d.container,660,480,!0,!1);d.init()};EditorUi.prototype.showBackgroundImageDialog=function(d,g,k,m){d=null!=d?d:mxUtils.bind(this,function(t,y,z,I){y||(t=new ChangePageSetup(this,m?z:null,t),t.ignoreColor=!m,null!=I&&m&&(t.shadowVisible=I),this.editor.graph.model.execute(t))});d=new BackgroundImageDialog(this,d,
-g,k,m);this.showDialog(d.container,400,m?240:220,!0,!0);d.init()};EditorUi.prototype.showLibraryDialog=function(d,g,k,m,t){d=new LibraryDialog(this,d,g,k,m,t);this.showDialog(d.container,640,440,!0,!1,mxUtils.bind(this,function(y){y&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));d.init()};var f=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(d){var g=f.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(k){this.editor.graph.isSelectionEmpty()&&
-g.refresh()}));return g};EditorUi.prototype.handleError=function(d,g,k,m,t,y,z){var I=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},F=null!=d&&null!=d.error?d.error:d;if(null!=d&&("1"==urlParams.test||null!=d.stack)&&null!=d.message)try{z||EditorUi.logError("Caught: "+(""==d.message&&null!=d.name)?d.name:d.message,d.filename,d.lineNumber,d.columnNumber,d,"INFO"),"1"!=urlParams.test&&!z||null==window.console||console.error("EditorUi.handleError:",d)}catch(V){}if(null!=
-F||null!=g){z=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var C=mxResources.get("ok"),Q=null;g=null!=g?g:mxResources.get("error");if(null!=F){null!=F.retry&&(C=mxResources.get("cancel"),Q=function(){I();F.retry()});if(404==F.code||404==F.status||403==F.code){z=403==F.code?null!=F.message?mxUtils.htmlEntities(F.message,!1):mxUtils.htmlEntities(mxResources.get("accessDenied"),!1):null!=t?t:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?
-" ("+this.drive.user.email+")":""),!1);var S=null!=t?null:null!=y?y:window.location.hash;if(null!=S&&("#G"==S.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==S.substring(0,45))&&(null!=d&&null!=d.error&&(null!=d.error.errors&&0<d.error.errors.length&&"fileAccess"==d.error.errors[0].reason||null!=d.error.data&&0<d.error.data.length&&"fileAccess"==d.error.data[0].reason)||404==F.code||404==F.status)){S="#U"==S.substring(0,2)?S.substring(45,S.lastIndexOf("%26ex")):S.substring(2);this.showError(g,
-z,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+S);null!=m&&m()}),Q,mxResources.get("changeUser"),mxUtils.bind(this,function(){function V(){J.innerText="";for(var H=0;H<P.length;H++){var K=document.createElement("option");mxUtils.write(K,P[H].displayName);K.value=H;J.appendChild(K);K=document.createElement("option");K.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(K,"<"+P[H].email+">");K.setAttribute("disabled","disabled");
-J.appendChild(K)}K=document.createElement("option");mxUtils.write(K,mxResources.get("addAccount"));K.value=P.length;J.appendChild(K)}var P=this.drive.getUsersList(),u=document.createElement("div"),x=document.createElement("div");x.style.marginBottom="6px";mxUtils.write(x,mxResources.get("changeUser")+": ");u.appendChild(x);var J=document.createElement("select");J.style.width="100%";V();mxEvent.addListener(J,"change",mxUtils.bind(this,function(){var H=J.value,K=P.length!=H;K&&this.drive.setUser(P[H]);
-this.drive.authorize(K,mxUtils.bind(this,function(){K||(P=this.drive.getUsersList(),V())}),mxUtils.bind(this,function(N){this.handleError(N)}),!0)}));u.appendChild(J);u=new CustomDialog(this,u,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),!0)}));this.showDialog(u.container,300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=k&&k()}),520,150);return}}null!=F.message?z=""==F.message&&null!=F.name?mxUtils.htmlEntities(F.name,!1):
-mxUtils.htmlEntities(F.message,!1):null!=F.response&&null!=F.response.error?z=mxUtils.htmlEntities(F.response.error,!1):"undefined"!==typeof window.App&&(F.code==App.ERROR_TIMEOUT?z=mxUtils.htmlEntities(mxResources.get("timeout"),!1):F.code==App.ERROR_BUSY?z=mxUtils.htmlEntities(mxResources.get("busy"),!1):"string"===typeof F&&0<F.length&&(z=mxUtils.htmlEntities(F,!1)))}t=d=null;null!=F&&null!=F.helpLink?(d=mxResources.get("help"),t=mxUtils.bind(this,function(){return this.editor.graph.openLink(F.helpLink)})):
-null!=F&&null!=F.ownerEmail?(d=mxResources.get("contactOwner"),z+=mxUtils.htmlEntities(" ("+d+": "+F.ownerEmail+")",!1),t=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(F.ownerEmail))})):null!=F&&null!=F.alternateAction&&(d=F.alternateAction.label,t=F.alternateAction.funct);this.showError(g,z,C,k,Q,null,null,d,t,null,null,null,m?k:null)}else null!=k&&k()};EditorUi.prototype.alert=function(d,g,k){d=new ErrorDialog(this,null,d,mxResources.get("ok"),g);this.showDialog(d.container,
-k||340,100,!0,!1);d.init()};EditorUi.prototype.confirm=function(d,g,k,m,t,y){d=null!=d?d:"";var z=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},I=Math.min(220,28*Math.ceil(Math.max(1,d.length)/50));d=new ConfirmDialog(this,d,function(){z();null!=g&&g()},function(){z();null!=k&&k()},m,t,null,null,null,null,I);this.showDialog(d.container,340,46+I,!0,y);d.init()};EditorUi.prototype.showBanner=function(d,g,k,m,t,y,z,I,F){y=!1;if(!(this.bannerShowing||this["hideBanner"+
-d]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+d])){z=null!=z?z:"translate(-50%,120%)";I=null!=I?I:"translate(-50%,0%)";var C=t?500:1E3,Q=document.createElement("div");Q.className="geBtn gePrimaryBtn geBanner"+(t?" geSmallBanner":"");Q.style.zIndex=mxPopupMenu.prototype.zIndex;mxUtils.setPrefixedStyle(Q.style,"transform",z);mxUtils.setPrefixedStyle(Q.style,"transition","all "+C+"ms ease");null!=F&&mxUtils.setPrefixedStyle(Q.style,"transform-origin",F);if(!t){var S=
-document.createElement("img");S.setAttribute("src",IMAGE_PATH+"/logo.png");S.setAttribute("border","0");S.setAttribute("align","absmiddle");S.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;";Q.appendChild(S);S=document.createElement("img");S.setAttribute("src",Dialog.prototype.closeImage);S.setAttribute("title",mxResources.get(m?"doNotShowAgain":"close"));S.setAttribute("border","0");S.style.cssText=(t?"right:6px;top:9px;":"right:10px;top:12px;")+"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;";
-Q.appendChild(S)}mxUtils.write(Q,g);document.body.appendChild(Q);this.bannerShowing=!0;g=document.createElement("div");g.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var V=document.createElement("input");V.setAttribute("type","checkbox");V.setAttribute("id","geDoNotShowAgainCheckbox");V.style.marginRight="6px";if(!m){g.appendChild(V);var P=document.createElement("label");P.setAttribute("for","geDoNotShowAgainCheckbox");
-mxUtils.write(P,mxResources.get("doNotShowAgain"));g.appendChild(P);Q.style.paddingBottom=t?"16px":"30px";Q.appendChild(g)}var u=mxUtils.bind(this,function(){null!=Q.parentNode&&(Q.parentNode.removeChild(Q),this.bannerShowing=!1,V.checked||m)&&(this["hideBanner"+d]=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings["close"+d]=Date.now(),mxSettings.save()))});null!=S&&mxEvent.addListener(S,"click",mxUtils.bind(this,function(J){mxEvent.consume(J);u()}));var x=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(Q.style,
-"transform",z);window.setTimeout(mxUtils.bind(this,function(){u()}),C)});mxEvent.addListener(Q,"click",mxUtils.bind(this,function(J){var H=mxEvent.getSource(J);H!=V&&H!=P?(null!=k&&k(),u(),mxEvent.consume(J)):x()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(Q.style,"transform",I)}),C/2);window.setTimeout(x,t?4E3:3E4);y=!0}return y};EditorUi.prototype.setCurrentFile=function(d){null!=d&&(d.opened=new Date);this.currentFile=d};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};
-EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(d,g,k,m){d=d.toDataURL("image/"+k);if(null!=d&&6<d.length)null!=g&&(d=Editor.writeGraphModelToPng(d,"tEXt","mxfile",encodeURIComponent(g))),0<m&&(d=Editor.writeGraphModelToPng(d,"pHYs","dpi",m));else throw{message:mxResources.get("unknownError")};return d};EditorUi.prototype.saveCanvas=function(d,g,k,m,t){var y="jpeg"==k?"jpg":k;m=this.getBaseFilename(m)+(null!=g?".drawio":
-"")+"."+y;d=this.createImageDataUri(d,g,k,t);this.saveData(m,y,d.substring(d.lastIndexOf(",")+1),"image/"+k,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(d,g){d=new TextareaDialog(this,d,g,null,null,mxResources.get("close"));
-this.showDialog(d.container,620,460,!0,!0,null,null,null,null,!0);d.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(d,g,k,m,t,y){"text/xml"!=k||/(\.drawio)$/i.test(g)||/(\.xml)$/i.test(g)||/(\.svg)$/i.test(g)||/(\.html)$/i.test(g)||(g=g+"."+(null!=y?y:"drawio"));if(window.Blob&&navigator.msSaveOrOpenBlob)d=m?this.base64ToBlob(d,k):new Blob([d],{type:k}),navigator.msSaveOrOpenBlob(d,g);else if(mxClient.IS_IE)k=window.open("about:blank","_blank"),null==
-k?mxUtils.popup(d,!0):(k.document.write(d),k.document.close(),k.document.execCommand("SaveAs",!0,g),k.close());else if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==k||"image/"!=k.substring(0,6)?this.showTextDialog(g+":",d):this.openInNewWindow(d,k,m);else{var z=document.createElement("a");y=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==typeof z.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var I=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
-y=65==(I?parseInt(I[2],10):!1)?!1:y}if(y||this.isOffline()){z.href=URL.createObjectURL(m?this.base64ToBlob(d,k):new Blob([d],{type:k}));y?z.download=g:z.setAttribute("target","_blank");document.body.appendChild(z);try{window.setTimeout(function(){URL.revokeObjectURL(z.href)},2E4),z.click(),z.parentNode.removeChild(z)}catch(F){}}else this.createEchoRequest(d,g,k,m,t).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(d,g,k,m,t,y){d="xml="+encodeURIComponent(d);return new mxXmlRequest(SAVE_URL,
-d+(null!=k?"&mime="+k:"")+(null!=t?"&format="+t:"")+(null!=y?"&base64="+y:"")+(null!=g?"&filename="+encodeURIComponent(g):"")+(m?"&binary=1":""))};EditorUi.prototype.saveLocalFile=function(d,g,k,m,t,y,z,I){y=null!=y?y:!1;z=null!=z?z:"vsdx"!=t&&(!mxClient.IS_IOS||!navigator.standalone);var F=mxUtils.bind(this,function(Q,S,V,P){try{if("_blank"==S)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(d,k,m);else if(null!=k&&"text/html"==k.substring(0,9)){var u=new EmbedDialog(this,d);this.showDialog(u.container,
-450,240,!0,!0);u.init()}else{var x=window.open("about:blank");null==x?mxUtils.popup(d,!0):(x.document.write("<pre>"+mxUtils.htmlEntities(d,!1)+"</pre>"),x.document.close())}else if(S==App.MODE_DEVICE||"download"==S)this.doSaveLocalFile(d,Q,k,m,null,I);else if(null!=Q&&0<Q.length){var J=mxUtils.bind(this,function(H){try{this.exportFile(d,Q,k,m,S,H)}catch(K){this.handleError(K)}});null!=P?J(P):this.pickFolder(S,J)}}catch(H){this.handleError(H)}});t=[];y||t.push(App.MODE_BROWSER);z||t.push("_blank");
-var C=new SaveDialog(this,g,mxUtils.bind(this,function(Q,S,V){F(Q.value,S,Q,V);this.hideDialog(null,null,C.container)}),t,d,k,m);this.showDialog(C.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));C.init()};EditorUi.prototype.openInNewWindow=function(d,g,k){var m=window.open("about:blank");if(null==m||null==m.document)mxUtils.popup(d,!0);else{var t="background: light-dark(rgb(255, 255, 255), rgb(18, 18, 18))";if("image/svg+xml"==g){var y=mxUtils.parseXml(d).documentElement.style.backgroundColor;
-""!=y&&(t="background: "+y+";")}t='<html><head><meta charset="UTF-8"></head><body style="color-scheme: light dark; '+t+'">';"image/svg+xml"!=g||mxClient.IS_SVG?"image/svg+xml"!=g||k?(y=k?d:btoa(unescape(encodeURIComponent(d))),m.document.write(t+'<img style="max-width:100%;" src="data:'+g+";base64,"+y+'"/></body></html>')):m.document.write(t+d+"</body></html>"):m.document.write(t+"<pre>"+mxUtils.htmlEntities(d,!1)+"</pre></body></html>");m.document.close()}};var c=EditorUi.prototype.addChromelessToolbarItems;
+function(){null!=this.sidebarWindow?this.sidebarWindow.window.setVisible(!0):this.toggleShapesPanel(!0)};EditorUi.prototype.libraryLoaded=function(d,g,k,m){if(null!=this.sidebar){d.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(d.getHash());var u=null;if(d.constructor!=StorageLibrary||".scratchpad"!=d.title){null==this.openLibraries&&(this.openLibraries=[]);for(var x=0;x<this.openLibraries.length;x++)if(this.openLibraries[x].file.getHash()==d.getHash()){mxUtils.remove(this.openLibraries[x],
+this.openLibraries);break}u={file:d,images:g,title:k,expand:m};this.openLibraries.push(u)}else this.scratchpad=d;x=this.sidebar.palettes[d.getHash()];x=null!=x?x[x.length-1].nextSibling:null;this.removeLibrarySidebar(d.getHash());var A=null,I=mxUtils.bind(this,function(D,J){0==D.length&&d.isEditable()?(null==A&&(A=document.createElement("div"),A.className="geDropTarget",mxUtils.write(A,mxResources.get("dragElementsHere"))),J.appendChild(A)):this.addLibraryEntries(D,J)});null!=this.sidebar&&null!=
+g&&this.sidebar.addEntries(g);null==k&&(k=d.getTitle(),null!=k&&/(\.xml)$/i.test(k)&&(k=k.substring(0,k.lastIndexOf("."))));var F=this.sidebar.addPalette(d.getHash(),k,null!=m?m:!0,mxUtils.bind(this,function(D){I(g,D)}));null!=u&&(u.div=F);this.repositionLibrary(x,"L.scratchpad"!=d.getHash());m=F.parentNode.previousSibling;k=m.getAttribute("title");null!=k&&0<k.length&&".scratchpad"!=d.title&&m.setAttribute("title",this.getLibraryStorageHint(d)+"\n"+k);var C=document.createElement("div");C.style.backgroundColor=
+"inherit";m.style.position="relative";var P=document.createElement("img");P.className="geLibraryButton";P.setAttribute("src",Editor.crossImage);P.setAttribute("title",mxResources.get("close"));var R=null;if(".scratchpad"!=d.title||this.closableScratchpad)C.appendChild(P),mxEvent.addListener(P,"click",mxUtils.bind(this,function(D){if(!mxEvent.isConsumed(D)){var J=mxUtils.bind(this,function(){null!=u&&mxUtils.remove(u,this.openLibraries);this.closeLibrary(d)});null!=R?this.confirm(mxResources.get("allChangesLost"),
+null,J,mxResources.get("cancel"),mxResources.get("discardChanges")):J();mxEvent.consume(D)}}));if(d.isEditable()){var U=this.editor.graph,O=null;k=mxUtils.bind(this,function(D){this.showLibraryDialog(d.getTitle(),F,g,d,d.getMode());mxEvent.consume(D)});var V=mxUtils.bind(this,function(D){d.setModified(!0);d.isAutosave()?(null!=O&&null!=O.parentNode&&O.parentNode.removeChild(O),O=P.cloneNode(!1),O.setAttribute("src",Editor.spinImage),O.setAttribute("title",mxResources.get("saving")),O.style.cursor=
+"default",O.style.marginRight="2px",O.style.marginTop="-2px",C.insertBefore(O,C.firstChild),this.saveLibrary(d.getTitle(),g,d,d.getMode(),!0,!0,function(){null!=O&&null!=O.parentNode&&O.parentNode.removeChild(O)})):null==R&&(R=P.cloneNode(!1),R.setAttribute("src",Editor.saveImage),R.setAttribute("title",mxResources.get("save")),C.insertBefore(R,C.firstChild),mxEvent.addListener(R,"click",mxUtils.bind(this,function(J){this.saveLibrary(d.getTitle(),g,d,d.getMode(),d.constructor==LocalLibrary,!0,function(){null==
+R||d.isModified()||(R.parentNode.removeChild(R),R=null)});mxEvent.consume(J)})))}),q=mxUtils.bind(this,function(D,J,L,K){D=U.cloneCells(mxUtils.sortCells(U.model.getTopmostCells(D)));for(var n=0;n<D.length;n++){var z=U.getCellGeometry(D[n]);null!=z&&z.translate(-J.x,-J.y)}F.appendChild(this.sidebar.createVertexTemplateFromCells(D,J.width,J.height,K||"",!0,null,!1));D=mxUtils.getXml(this.editor.graph.encodeCells(D));Editor.defaultCompressed&&(D=Graph.compress(D));J={xml:D,w:J.width,h:J.height};null!=
+K&&(J.title=K);g.push(J);V(L);null!=A&&null!=A.parentNode&&0<g.length&&(A.parentNode.removeChild(A),A=null)}),y=mxUtils.bind(this,function(D){if(U.isSelectionEmpty())U.getRubberband().isActive()?(U.getRubberband().execute(D),U.getRubberband().reset()):this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var J=U.getSelectionCells(),L=U.view.getBounds(J);if(null!=L&&0<L.width&&0<L.height){var K=U.view.scale;L.x/=K;L.y/=K;L.width/=K;L.height/=K;L.x-=
+U.view.translate.x;L.y-=U.view.translate.y;q(J,L)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(D)});mxEvent.addGestureListeners(F,function(){},mxUtils.bind(this,function(D){U.isMouseDown&&null!=U.panningManager&&null!=U.graphHandler.first&&(U.graphHandler.suspend(),null!=U.graphHandler.hint&&(U.graphHandler.hint.style.visibility="hidden"),F.style.backgroundColor="light-dark(#fefefe, #000000)",F.style.cursor="copy",U.panningManager.stop(),
+U.autoScroll=!1,mxEvent.consume(D))}),mxUtils.bind(this,function(D){U.isMouseDown&&null!=U.panningManager&&null!=U.graphHandler&&(F.style.backgroundColor="",F.style.cursor="default",this.sidebar.showTooltips=!0,U.panningManager.stop(),U.graphHandler.reset(),U.isMouseDown=!1,U.autoScroll=!0,y(D),mxEvent.consume(D))}));mxEvent.addListener(F,"mouseleave",mxUtils.bind(this,function(D){U.isMouseDown&&null!=U.graphHandler.first&&(U.graphHandler.resume(),null!=U.graphHandler.hint&&(U.graphHandler.hint.style.visibility=
+"visible"),F.style.backgroundColor="",F.style.cursor="",U.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(F,"dragover",mxUtils.bind(this,function(D){F.style.backgroundColor="light-dark(#fefefe, #000000)";D.dataTransfer.dropEffect="copy";F.style.cursor="copy";this.sidebar.hideTooltip();D.stopPropagation();D.preventDefault()})),mxEvent.addListener(F,"drop",mxUtils.bind(this,function(D){F.style.cursor="";F.style.backgroundColor="";0<D.dataTransfer.files.length&&this.importFiles(D.dataTransfer.files,
+0,0,this.maxImageSize,mxUtils.bind(this,function(J,L,K,n,z,G,M,N,Q){if(null!=J&&"image/"==L.substring(0,6))J="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(J),J=[new mxCell("",new mxGeometry(0,0,z,G),J)],J[0].vertex=!0,q(J,new mxRectangle(0,0,z,G),D,mxEvent.isAltDown(D)?null:M.substring(0,M.lastIndexOf(".")).replace(/_/g," ")),null!=A&&null!=A.parentNode&&0<g.length&&(A.parentNode.removeChild(A),A=null);else{var S=!1,T=mxUtils.bind(this,
+function(W,X){null!=W&&"application/pdf"==X&&(X=Editor.extractGraphModelFromPdf(W),null!=X&&0<X.length&&(W=X));if(null!=W)if(W=mxUtils.parseXml(W),"mxlibrary"==W.documentElement.nodeName)try{var Z=JSON.parse(mxUtils.getTextContent(W.documentElement));I(Z,F);g=g.concat(Z);V(D);this.spinner.stop();S=!0}catch(ia){}else if("mxfile"==W.documentElement.nodeName)try{var Y=W.documentElement.getElementsByTagName("diagram");for(Z=0;Z<Y.length;Z++){var ba=this.stringToCells(Editor.getDiagramNodeXml(Y[Z])),da=
+this.editor.graph.getBoundingBoxFromGeometry(ba);null!=da&&q(ba,new mxRectangle(0,0,da.width,da.height),D)}S=!0}catch(ia){null!=window.console&&console.log("error in drop handler:",ia)}S||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=A&&null!=A.parentNode&&0<g.length&&(A.parentNode.removeChild(A),A=null)});null!=Q&&null!=M&&EditorUi.isVisioFilename(M)?this.importVisio(Q,function(W){T(W,"text/xml")},null,M):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(J,
+M)&&null!=Q?this.isExternalDataComms()?this.parseFile(Q,mxUtils.bind(this,function(W){4==W.readyState&&(this.spinner.stop(),200<=W.status&&299>=W.status?T(W.responseText,"text/xml"):this.handleError({message:mxResources.get(413==W.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):T(J,L)}}));D.stopPropagation();D.preventDefault()})),mxEvent.addListener(F,"dragleave",
+function(D){F.style.cursor="";F.style.backgroundColor="";D.stopPropagation();D.preventDefault()}));P=P.cloneNode(!1);P.setAttribute("src",Editor.editImage);P.setAttribute("title",mxResources.get("edit"));C.insertBefore(P,C.firstChild);mxEvent.addListener(P,"click",k);k=P.cloneNode(!1);k.setAttribute("src",Editor.plusImage);k.setAttribute("title",mxResources.get("add"));C.insertBefore(k,C.firstChild);mxEvent.addListener(k,"click",y);".scratchpad"==d.title&&(this.addSelectionToScratchpad=y);this.isOffline()||
+".scratchpad"!=d.title||null==EditorUi.scratchpadHelpLink||(k=this.createHelpIcon(EditorUi.scratchpadHelpLink,!0),k.className="geLibraryButton",C.insertBefore(k,C.firstChild))}m.appendChild(C);this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(d,g){for(var k=0;k<d.length;k++)try{var m=d[k],u=m.data;if(null!=u){u="data:"==u.substring(0,5)?this.convertDataUri(u):u;var x="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";
+"fixed"==m.aspect&&(x+="aspect=fixed;");x=x+"image="+u+";";null!=m.style&&(x+=m.style);g.appendChild(this.sidebar.createVertexTemplate(x,m.w,m.h,"",m.title||"",!1,null,!0))}else if(null!=m.xml){var A=this.stringToCells("<"==m.xml.charAt(0)?m.xml:Graph.decompress(m.xml)),I=0==A.length?mxResources.get("drawingEmpty"):null!=m.title?m.title:"";g.appendChild(this.sidebar.createVertexTemplateFromCells(A,m.w,m.h,I,!0,null,!0))}}catch(F){I=null!=F.message?mxResources.get("error")+": "+F.message:String(F),
+x=this.sidebar.createVertexTemplateFromCells(null,m.w,m.h,I,!0,null,!0),g.appendChild(x)}};EditorUi.prototype.getResource=function(d){return null!=d?d[mxLanguage]||d.main:null};"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=
+function(d,g,k,m,u,x,A){d=new ImageDialog(this,d,g,k,m,u,x,A);this.showDialog(d.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);d.init()};EditorUi.prototype.showLocalStorageDialog=function(d,g,k,m,u,x){var A=localStorage.getItem(g);d=new TextareaDialog(this,d,null!=A?JSON.stringify(JSON.parse(A),null,2):"",mxUtils.bind(this,function(I){if(null!=I)try{if(null!=x&&x(I),I==A)this.hideDialog();else{if(0<I.length){var F=JSON.parse(I);localStorage.setItem(g,JSON.stringify(F))}else localStorage.removeItem(g);
+this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(C){this.handleError(C)}}),null,mxResources.get("close"),null,null,null,!0,null,null,u,k,m);this.showDialog(d.container,660,480,!0,!1);d.init()};EditorUi.prototype.showBackgroundImageDialog=function(d,g,k,m){d=null!=d?d:mxUtils.bind(this,function(u,x,A,I){x||(u=new ChangePageSetup(this,m?A:null,u),u.ignoreColor=!m,null!=I&&m&&(u.shadowVisible=I),this.editor.graph.model.execute(u))});d=new BackgroundImageDialog(this,d,
+g,k,m);this.showDialog(d.container,400,m?240:220,!0,!0);d.init()};EditorUi.prototype.showLibraryDialog=function(d,g,k,m,u){d=new LibraryDialog(this,d,g,k,m,u);this.showDialog(d.container,640,440,!0,!1,mxUtils.bind(this,function(x){x&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));d.init()};var f=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(d){var g=f.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(k){this.editor.graph.isSelectionEmpty()&&
+g.refresh()}));return g};EditorUi.prototype.handleError=function(d,g,k,m,u,x,A){var I=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},F=null!=d&&null!=d.error?d.error:d;if(null!=d&&("1"==urlParams.test||null!=d.stack)&&null!=d.message)try{A||EditorUi.logError("Caught: "+(""==d.message&&null!=d.name)?d.name:d.message,d.filename,d.lineNumber,d.columnNumber,d,"INFO"),"1"!=urlParams.test&&!A||null==window.console||console.error("EditorUi.handleError:",d)}catch(U){}if(null!=
+F||null!=g){A=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var C=mxResources.get("ok"),P=null;g=null!=g?g:mxResources.get("error");if(null!=F){null!=F.retry&&(C=mxResources.get("cancel"),P=function(){I();F.retry()});if(404==F.code||404==F.status||403==F.code){A=403==F.code?null!=F.message?mxUtils.htmlEntities(F.message,!1):mxUtils.htmlEntities(mxResources.get("accessDenied"),!1):null!=u?u:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?
+" ("+this.drive.user.email+")":""),!1);var R=null!=u?null:null!=x?x:window.location.hash;if(null!=R&&("#G"==R.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==R.substring(0,45))&&(null!=d&&null!=d.error&&(null!=d.error.errors&&0<d.error.errors.length&&"fileAccess"==d.error.errors[0].reason||null!=d.error.data&&0<d.error.data.length&&"fileAccess"==d.error.data[0].reason)||404==F.code||404==F.status)){R="#U"==R.substring(0,2)?R.substring(45,R.lastIndexOf("%26ex")):R.substring(2);this.showError(g,
+A,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+R);null!=m&&m()}),P,mxResources.get("changeUser"),mxUtils.bind(this,function(){function U(){y.innerText="";for(var D=0;D<O.length;D++){var J=document.createElement("option");mxUtils.write(J,O[D].displayName);J.value=D;y.appendChild(J);J=document.createElement("option");J.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(J,"<"+O[D].email+">");J.setAttribute("disabled","disabled");
+y.appendChild(J)}J=document.createElement("option");mxUtils.write(J,mxResources.get("addAccount"));J.value=O.length;y.appendChild(J)}var O=this.drive.getUsersList(),V=document.createElement("div"),q=document.createElement("div");q.style.marginBottom="6px";mxUtils.write(q,mxResources.get("changeUser")+": ");V.appendChild(q);var y=document.createElement("select");y.style.width="100%";U();mxEvent.addListener(y,"change",mxUtils.bind(this,function(){var D=y.value,J=O.length!=D;J&&this.drive.setUser(O[D]);
+this.drive.authorize(J,mxUtils.bind(this,function(){J||(O=this.drive.getUsersList(),U())}),mxUtils.bind(this,function(L){this.handleError(L)}),!0)}));V.appendChild(y);V=new CustomDialog(this,V,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),!0)}));this.showDialog(V.container,300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=k&&k()}),520,150);return}}null!=F.message?A=""==F.message&&null!=F.name?mxUtils.htmlEntities(F.name,!1):
+mxUtils.htmlEntities(F.message,!1):null!=F.response&&null!=F.response.error?A=mxUtils.htmlEntities(F.response.error,!1):"undefined"!==typeof window.App&&(F.code==App.ERROR_TIMEOUT?A=mxUtils.htmlEntities(mxResources.get("timeout"),!1):F.code==App.ERROR_BUSY?A=mxUtils.htmlEntities(mxResources.get("busy"),!1):"string"===typeof F&&0<F.length&&(A=mxUtils.htmlEntities(F,!1)))}u=d=null;null!=F&&null!=F.helpLink?(d=mxResources.get("help"),u=mxUtils.bind(this,function(){return this.editor.graph.openLink(F.helpLink)})):
+null!=F&&null!=F.ownerEmail?(d=mxResources.get("contactOwner"),A+=mxUtils.htmlEntities(" ("+d+": "+F.ownerEmail+")",!1),u=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(F.ownerEmail))})):null!=F&&null!=F.alternateAction&&(d=F.alternateAction.label,u=F.alternateAction.funct);this.showError(g,A,C,k,P,null,null,d,u,null,null,null,m?k:null)}else null!=k&&k()};EditorUi.prototype.alert=function(d,g,k){d=new ErrorDialog(this,null,d,mxResources.get("ok"),g);this.showDialog(d.container,
+k||340,100,!0,!1);d.init()};EditorUi.prototype.confirm=function(d,g,k,m,u,x){d=null!=d?d:"";var A=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},I=Math.min(220,28*Math.ceil(Math.max(1,d.length)/50));d=new ConfirmDialog(this,d,function(){A();null!=g&&g()},function(){A();null!=k&&k()},m,u,null,null,null,null,I);this.showDialog(d.container,340,46+I,!0,x);d.init()};EditorUi.prototype.showBanner=function(d,g,k,m,u,x,A,I,F){x=!1;if(!(this.bannerShowing||this["hideBanner"+
+d]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+d])){A=null!=A?A:"translate(-50%,120%)";I=null!=I?I:"translate(-50%,0%)";var C=u?500:1E3,P=document.createElement("div");P.className="geBtn gePrimaryBtn geBanner"+(u?" geSmallBanner":"");P.style.zIndex=mxPopupMenu.prototype.zIndex;mxUtils.setPrefixedStyle(P.style,"transform",A);mxUtils.setPrefixedStyle(P.style,"transition","all "+C+"ms ease");null!=F&&mxUtils.setPrefixedStyle(P.style,"transform-origin",F);if(!u){var R=
+document.createElement("img");R.setAttribute("src",IMAGE_PATH+"/logo.png");R.setAttribute("border","0");R.setAttribute("align","absmiddle");R.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;";P.appendChild(R);R=document.createElement("img");R.setAttribute("src",Dialog.prototype.closeImage);R.setAttribute("title",mxResources.get(m?"doNotShowAgain":"close"));R.setAttribute("border","0");R.style.cssText=(u?"right:6px;top:9px;":"right:10px;top:12px;")+"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;";
+P.appendChild(R)}mxUtils.write(P,g);document.body.appendChild(P);this.bannerShowing=!0;g=document.createElement("div");g.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var U=document.createElement("input");U.setAttribute("type","checkbox");U.setAttribute("id","geDoNotShowAgainCheckbox");U.style.marginRight="6px";if(!m){g.appendChild(U);var O=document.createElement("label");O.setAttribute("for","geDoNotShowAgainCheckbox");
+mxUtils.write(O,mxResources.get("doNotShowAgain"));g.appendChild(O);P.style.paddingBottom=u?"16px":"30px";P.appendChild(g)}var V=mxUtils.bind(this,function(){null!=P.parentNode&&(P.parentNode.removeChild(P),this.bannerShowing=!1,U.checked||m)&&(this["hideBanner"+d]=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings["close"+d]=Date.now(),mxSettings.save()))});null!=R&&mxEvent.addListener(R,"click",mxUtils.bind(this,function(y){mxEvent.consume(y);V()}));var q=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(P.style,
+"transform",A);window.setTimeout(mxUtils.bind(this,function(){V()}),C)});mxEvent.addListener(P,"click",mxUtils.bind(this,function(y){var D=mxEvent.getSource(y);D!=U&&D!=O?(null!=k&&k(),V(),mxEvent.consume(y)):q()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(P.style,"transform",I)}),C/2);window.setTimeout(q,u?4E3:3E4);x=!0}return x};EditorUi.prototype.setCurrentFile=function(d){null!=d&&(d.opened=new Date);this.currentFile=d};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};
+EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(d,g,k,m){d=d.toDataURL("image/"+k);if(null!=d&&6<d.length)null!=g&&(d=Editor.writeGraphModelToPng(d,"tEXt","mxfile",encodeURIComponent(g))),0<m&&(d=Editor.writeGraphModelToPng(d,"pHYs","dpi",m));else throw{message:mxResources.get("unknownError")};return d};EditorUi.prototype.saveCanvas=function(d,g,k,m,u){var x="jpeg"==k?"jpg":k;m=this.getBaseFilename(m)+(null!=g?".drawio":
+"")+"."+x;d=this.createImageDataUri(d,g,k,u);this.saveData(m,x,d.substring(d.lastIndexOf(",")+1),"image/"+k,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(d,g){d=new TextareaDialog(this,d,g,null,null,mxResources.get("close"));
+this.showDialog(d.container,620,460,!0,!0,null,null,null,null,!0);d.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(d,g,k,m,u,x){"text/xml"!=k||/(\.drawio)$/i.test(g)||/(\.xml)$/i.test(g)||/(\.svg)$/i.test(g)||/(\.html)$/i.test(g)||(g=g+"."+(null!=x?x:"drawio"));if(window.Blob&&navigator.msSaveOrOpenBlob)d=m?this.base64ToBlob(d,k):new Blob([d],{type:k}),navigator.msSaveOrOpenBlob(d,g);else if(mxClient.IS_IE)k=window.open("about:blank","_blank"),null==
+k?mxUtils.popup(d,!0):(k.document.write(d),k.document.close(),k.document.execCommand("SaveAs",!0,g),k.close());else if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==k||"image/"!=k.substring(0,6)?this.showTextDialog(g+":",d):this.openInNewWindow(d,k,m);else{var A=document.createElement("a");x=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==typeof A.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var I=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
+x=65==(I?parseInt(I[2],10):!1)?!1:x}if(x||this.isOffline()){A.href=URL.createObjectURL(m?this.base64ToBlob(d,k):new Blob([d],{type:k}));x?A.download=g:A.setAttribute("target","_blank");document.body.appendChild(A);try{window.setTimeout(function(){URL.revokeObjectURL(A.href)},2E4),A.click(),A.parentNode.removeChild(A)}catch(F){}}else this.createEchoRequest(d,g,k,m,u).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(d,g,k,m,u,x){d="xml="+encodeURIComponent(d);return new mxXmlRequest(SAVE_URL,
+d+(null!=k?"&mime="+k:"")+(null!=u?"&format="+u:"")+(null!=x?"&base64="+x:"")+(null!=g?"&filename="+encodeURIComponent(g):"")+(m?"&binary=1":""))};EditorUi.prototype.saveLocalFile=function(d,g,k,m,u,x,A,I){x=null!=x?x:!1;A=null!=A?A:"vsdx"!=u&&(!mxClient.IS_IOS||!navigator.standalone);var F=mxUtils.bind(this,function(P,R,U,O){try{if("_blank"==R)if(null!=k&&"image/"==k.substring(0,6))this.openInNewWindow(d,k,m);else if(null!=k&&"text/html"==k.substring(0,9)){var V=new EmbedDialog(this,d);this.showDialog(V.container,
+450,240,!0,!0);V.init()}else{var q=window.open("about:blank");null==q?mxUtils.popup(d,!0):(q.document.write("<pre>"+mxUtils.htmlEntities(d,!1)+"</pre>"),q.document.close())}else if(R==App.MODE_DEVICE||"download"==R)this.doSaveLocalFile(d,P,k,m,null,I);else if(null!=P&&0<P.length){var y=mxUtils.bind(this,function(D){try{this.exportFile(d,P,k,m,R,D)}catch(J){this.handleError(J)}});null!=O?y(O):this.pickFolder(R,y)}}catch(D){this.handleError(D)}});u=[];x||u.push(App.MODE_BROWSER);A||u.push("_blank");
+var C=new SaveDialog(this,g,mxUtils.bind(this,function(P,R,U){F(P.value,R,P,U);this.hideDialog(null,null,C.container)}),u,d,k,m);this.showDialog(C.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));C.init()};EditorUi.prototype.openInNewWindow=function(d,g,k){var m=window.open("about:blank");if(null==m||null==m.document)mxUtils.popup(d,!0);else{var u="background: light-dark(rgb(255, 255, 255), rgb(18, 18, 18))";if("image/svg+xml"==g){var x=mxUtils.parseXml(d).documentElement.style.backgroundColor;
+""!=x&&(u="background: "+x+";")}u='<html><head><meta charset="UTF-8"></head><body style="color-scheme: light dark; '+u+'">';"image/svg+xml"!=g||mxClient.IS_SVG?"image/svg+xml"!=g||k?(x=k?d:btoa(unescape(encodeURIComponent(d))),m.document.write(u+'<img style="max-width:100%;" src="data:'+g+";base64,"+x+'"/></body></html>')):m.document.write(u+d+"</body></html>"):m.document.write(u+"<pre>"+mxUtils.htmlEntities(d,!1)+"</pre></body></html>");m.document.close()}};var c=EditorUi.prototype.addChromelessToolbarItems;
EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(d){if(null!=urlParams.tags){this.tagsDialog=this.tagsComponent=null;var g=d(mxUtils.bind(this,function(m){null==this.tagsComponent&&(this.tagsComponent=this.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return null!=this.tagsDialog}),
!0),this.tagsComponent.div.getElementsByTagName("div")[0].style.position="",mxUtils.setPrefixedStyle(this.tagsComponent.div.style,"borderRadius","5px"),this.tagsComponent.div.style.maxHeight="160px",this.tagsComponent.div.style.maxWidth="120px",this.tagsComponent.div.style.padding="4px",this.tagsComponent.div.style.overflow="auto",this.tagsComponent.div.style.height="auto",this.tagsComponent.div.style.position="fixed",this.tagsComponent.div.style.fontFamily=Editor.defaultHtmlFont,this.tagsComponent.div.style.backgroundColor=
-"#000000",this.tagsComponent.div.style.color="#ffffff",mxUtils.setOpacity(this.tagsComponent.div,80));if(null!=this.tagsDialog)this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null;else{this.tagsDialog=this.tagsComponent.div;mxEvent.addListener(this.tagsDialog,"mouseleave",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));var t=g.getBoundingClientRect();this.tagsDialog.style.left=t.left+"px";
-this.tagsDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";t=mxUtils.getCurrentStyle(this.editor.graph.container);this.tagsDialog.style.zIndex=t.zIndex;document.body.appendChild(this.tagsDialog);this.tagsComponent.refresh();this.editor.fireEvent(new mxEventObject("tagsDialogShown"))}mxEvent.consume(m)}),Editor.tagsImage,mxResources.get("tags"));this.editor.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var m=this.editor.graph.getAllTags();
+"#000000",this.tagsComponent.div.style.color="#ffffff",mxUtils.setOpacity(this.tagsComponent.div,80));if(null!=this.tagsDialog)this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null;else{this.tagsDialog=this.tagsComponent.div;mxEvent.addListener(this.tagsDialog,"mouseleave",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));var u=g.getBoundingClientRect();this.tagsDialog.style.left=u.left+"px";
+this.tagsDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";u=mxUtils.getCurrentStyle(this.editor.graph.container);this.tagsDialog.style.zIndex=u.zIndex;document.body.appendChild(this.tagsDialog);this.tagsComponent.refresh();this.editor.fireEvent(new mxEventObject("tagsDialogShown"))}mxEvent.consume(m)}),Editor.tagsImage,mxResources.get("tags"));this.editor.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var m=this.editor.graph.getAllTags();
g.style.display=0<m.length?"":"none"}))}c.apply(this,arguments);this.editor.addListener("tagsDialogShown",mxUtils.bind(this,function(){null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));this.editor.addListener("layersDialogShown",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));this.editor.addListener("pageSelected",mxUtils.bind(this,function(){null!=this.tagsDialog&&
(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));mxEvent.addListener(this.editor.graph.container,"click",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));if(this.isExportToCanvas()&&
-this.isChromelessImageExportEnabled()){this.exportDialog=null;var k=d(mxUtils.bind(this,function(m){var t=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",t);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null)});if(null!=this.exportDialog)t.apply(this);else{this.exportDialog=document.createElement("div");var y=k.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");
-this.exportDialog.style.position="fixed";this.exportDialog.style.textAlign="center";this.exportDialog.style.fontFamily=Editor.defaultHtmlFont;this.exportDialog.style.backgroundColor="#000000";this.exportDialog.style.width="50px";this.exportDialog.style.height="50px";this.exportDialog.style.padding="4px 2px 4px 2px";this.exportDialog.style.color="#ffffff";mxUtils.setOpacity(this.exportDialog,80);this.exportDialog.style.left=y.left+"px";this.exportDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+
-this.chromelessToolbar.offsetHeight+4+"px";y=mxUtils.getCurrentStyle(this.editor.graph.container);this.exportDialog.style.zIndex=y.zIndex;var z=new Spinner({lines:8,length:6,width:5,radius:6,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});z.spin(this.exportDialog);document.body.appendChild(this.exportDialog);mxEvent.addListener(this.editor.graph.container,"click",t);this.editor.exportToCanvas(mxUtils.bind(this,function(I){z.stop();this.exportDialog.style.width=
+this.isChromelessImageExportEnabled()){this.exportDialog=null;var k=d(mxUtils.bind(this,function(m){var u=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",u);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null)});if(null!=this.exportDialog)u.apply(this);else{this.exportDialog=document.createElement("div");var x=k.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");
+this.exportDialog.style.position="fixed";this.exportDialog.style.textAlign="center";this.exportDialog.style.fontFamily=Editor.defaultHtmlFont;this.exportDialog.style.backgroundColor="#000000";this.exportDialog.style.width="50px";this.exportDialog.style.height="50px";this.exportDialog.style.padding="4px 2px 4px 2px";this.exportDialog.style.color="#ffffff";mxUtils.setOpacity(this.exportDialog,80);this.exportDialog.style.left=x.left+"px";this.exportDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+
+this.chromelessToolbar.offsetHeight+4+"px";x=mxUtils.getCurrentStyle(this.editor.graph.container);this.exportDialog.style.zIndex=x.zIndex;var A=new Spinner({lines:8,length:6,width:5,radius:6,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});A.spin(this.exportDialog);document.body.appendChild(this.exportDialog);mxEvent.addListener(this.editor.graph.container,"click",u);this.editor.exportToCanvas(mxUtils.bind(this,function(I){A.stop();this.exportDialog.style.width=
"auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding="10px";var F=this.createImageDataUri(I,null,"png");I=document.createElement("img");I.style.maxWidth="140px";I.style.maxHeight="140px";I.style.cursor="pointer";I.style.backgroundColor="white";I.setAttribute("title",mxResources.get("openInNewWindow"));I.setAttribute("border","0");I.setAttribute("src",F);this.exportDialog.appendChild(I);mxEvent.addListener(I,"click",mxUtils.bind(this,function(){this.openInNewWindow(F.substring(F.indexOf(",")+
-1),"image/png",!0);t.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(I){z.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(I)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(m)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(d,g,k,m,t){this.isLocalFileSave()?this.saveLocalFile(k,
-d,m,t,g):this.saveRequest(d,g,mxUtils.bind(this,function(y,z){return this.createEchoRequest(k,y,m,t,g,z)}),k,t,m)};EditorUi.prototype.saveRequest=function(d,g,k,m,t,y,z){z=null!=z?z:!mxClient.IS_IOS||!navigator.standalone;var I=mxUtils.bind(this,function(C,Q,S,V){if("_blank"==Q||null!=C&&0<C.length){var P=k("_blank"==Q?null:C,Q==App.MODE_DEVICE||"download"==Q||null==Q||"_blank"==Q?"0":"1");null!=P&&(Q==App.MODE_DEVICE||"download"==Q||"_blank"==Q?P.simulate(document,"_blank"):(S=mxUtils.bind(this,
-function(u){y=null!=y?y:"pdf"==g?"application/pdf":"image/"+g;if(null!=m)try{this.exportFile(m,C,y,!0,Q,u)}catch(x){this.handleError(x)}else this.spinner.spin(document.body,mxResources.get("saving"))&&P.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=P.getStatus()&&299>=P.getStatus())try{this.exportFile(P.getText(),C,y,!0,Q,u)}catch(x){this.handleError(x)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(x){this.spinner.stop();this.handleError(x)}))}),
-null!=V?S(V):this.pickFolder(Q,S)))}});t=[App.MODE_BROWSER];z||t.push("_blank");var F=new SaveDialog(this,d,mxUtils.bind(this,function(C,Q,S){I(C.value,Q,C,S);this.hideDialog(null,null,F.container)}),t,null,"application/pdf");this.showDialog(F.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));F.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(d,g,
-k,m,t,y){};EditorUi.prototype.getServiceForName=function(d){return null};EditorUi.prototype.getTitleForService=function(d){return mxResources.get(d)};EditorUi.prototype.pickFolder=function(d,g,k){g(null)};EditorUi.prototype.exportSvg=function(d,g,k,m,t,y,z,I,F,C,Q,S,V,P){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(O){Editor.addRetryToError(O,mxUtils.bind(this,function(){this.exportSvg(d,g,k,m,t,y,z,I,F,C,Q,S,V,P)}));this.handleError(O)})))try{var u=this.editor.graph.isSelectionEmpty();
-k=null!=k?k:u;var x=g?null:this.editor.graph.background;x==mxConstants.NONE&&(x=null);null==x&&0==g&&(x=this.editor.graph.shapeBackgroundColor);var J=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var H=mxUtils.lightDarkColorSupported,K=mxUtils.preferDarkColor;if("light"==Q||"dark"==Q)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==Q;var N=this.editor.graph.createSvgImageExport(t),M=this.editor.graph.getSvg(x,
-d,z,I,null,k,null,N,"blank"==C?"_blank":"self"==C?"_top":null,null,!V,Q,S);mxUtils.lightDarkColorSupported=H;mxUtils.preferDarkColor=K;this.editor.graph.addForeignObjectWarning=J;m&&this.editor.graph.addSvgShadow(M);var n=this.getBaseFilename()+(t?".drawio":"")+".svg";P=null!=P?P:mxUtils.bind(this,function(O){this.isLocalFileSave()||O.length<=MAX_REQUEST_SIZE?this.saveData(n,"svg",O,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,
-function(){mxUtils.popup(O)}))});var A=mxUtils.bind(this,function(O){this.spinner.stop();t&&O.setAttribute("content",this.getFileData(!0,null,null,null,k,F,null,null,null,null,null,d,z));P(Graph.xmlDeclaration+"\n"+(t?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(O))});this.editor.graph.mathEnabled&&this.editor.addMathCss(M);var E=mxUtils.bind(this,function(O){Editor.replaceSvgDataUris&&y&&EditorUi.embedSvgImages(O);Editor.foreignObjectImages&&V?this.replaceAlternateContent(O,
-Q,A):A(O)}),L=mxUtils.bind(this,function(O){y&&!this.isOffline()&&this.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(O,E,this.thumbImageCache)):E(O)});V?this.embedFonts(M,L):(this.editor.addFontCss(M),L(M))}catch(O){this.handleError(O)}};EditorUi.prototype.replaceAlternateContent=function(d,g,k){function m(S,V,P,u,x){var J=mxUtils.createElementNs(d.ownerDocument,mxConstants.NS_SVG,"image");J.setAttribute("x",V);J.setAttribute("y",P+.5);J.setAttribute("width",
-u.width);J.setAttribute("height",u.height);null==J.setAttributeNS?J.setAttribute("xlink:href",x):J.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",x);S.replaceChild(J,S.lastChild);I()}function t(){if(z<Q.length)Q[z++](t)}var y="";g=d.getElementsByTagName("style");for(var z=0;z<g.length;z++)y+=g[z].innerHTML;g=d.getElementsByTagName("switch");counter=g.length;var I=mxUtils.bind(this,function(){counter--;0==counter&&k(d)}),F={},C={},Q=[];for(z=0;z<g.length;z++)mxUtils.bind(this,function(S){var V=S.getElementsByTagName("div");
-if(0<V.length)try{var P=V[0].cloneNode(!0),u=parseInt(P.style.marginLeft),x=parseInt(P.style.paddingTop),J=P.getElementsByTagName("div")[1],H=V=!1,K=P.style.alignItems,N=P.style.justifyContent;if(null!=P.style.writingMode){var M=P.style.writingMode;H="vertical-"==M.substring(0,9);V="-rl"==M.substring(M.length-3)}var n=!H&&"1px"==P.style.width||H&&"1px"==P.style.height;if(!H&&"1px"==P.style.height||H&&"1px"==P.style.width)P.style.alignItems=H&&V?"unsafe flex-end":"unsafe flex-start";n&&(P.style.justifyContent=
-"unsafe flex-start");P.style.paddingTop="";P.style.marginLeft="";var A=P.outerHTML,E=F[A];null==E&&(P.style.position="absolute",P.style.visibility="hidden",document.body.appendChild(P),M=1,M="1px"==P.style.width?J.offsetWidth:parseInt(P.style.width),n=1,n="1px"==P.style.height?J.offsetHeight:parseInt(P.style.height),document.body.removeChild(P),E=new mxRectangle(u,x,M,n),F[A]=E);"1px"==P.style.height&&("unsafe center"==K?x-=E.height/2:"unsafe flex-end"==K&&(x-=E.height));if("1px"==P.style.width)if(!H&&
-"unsafe center"==N||H&&"unsafe center"==K)u-=E.width/2;else if(!H&&"unsafe flex-end"==N||H&&(!V&&"unsafe flex-end"==K||V&&"unsafe flex-start"==K))u-=E.width;E=new mxRectangle(u,x,E.width,E.height+parseInt(J.style.fontSize)/4);Q.push(mxUtils.bind(this,function(L){var O=C[A];null==O?Graph.htmlToPng(A,E.width,E.height,mxUtils.bind(this,function(R){m(S,u,x,E,R);C[A]=R;L()}),y):(m(S,u,x,E,O),L())}))}catch(L){I()}else I()})(g[z]);0==counter&&k(d);z=0;t()};EditorUi.prototype.addRadiobox=function(d,g,k,m,
-t,y,z){return this.addCheckbox(d,k,m,t,y,z,!0,g)};EditorUi.prototype.addCheckbox=function(d,g,k,m,t,y,z,I){y=null!=y?y:!0;var F=document.createElement("input");F.style.marginRight="8px";F.style.marginTop="16px";F.setAttribute("type",z?"radio":"checkbox");z="geCheckbox-"+Editor.guid();F.id=z;null!=I&&F.setAttribute("name",I);k&&(F.setAttribute("checked","checked"),F.defaultChecked=!0);m&&F.setAttribute("disabled","disabled");y&&(d.appendChild(F),k=document.createElement("label"),mxUtils.write(k,g),
-k.setAttribute("for",z),d.appendChild(k),t||mxUtils.br(d));return F};EditorUi.prototype.addEditButton=function(d,g){var k=this.addCheckbox(d,mxResources.get("edit")+":",!0,null,!0);k.style.marginLeft="24px";var m=this.getCurrentFile(),t="";null!=m&&m.getMode()!=App.MODE_DEVICE&&m.getMode()!=App.MODE_BROWSER&&(t=window.location.href);var y=document.createElement("select");y.style.maxWidth="200px";y.style.width="auto";y.style.marginLeft="8px";y.style.marginRight="10px";y.className="geBtn";m=document.createElement("option");
-m.setAttribute("value","blank");mxUtils.write(m,mxResources.get("makeCopy"));y.appendChild(m);var z=document.createElement("option");z.setAttribute("value","custom");mxUtils.write(z,mxResources.get("custom")+"...");y.appendChild(z);d.appendChild(y);mxEvent.addListener(y,"change",mxUtils.bind(this,function(){if("custom"==y.value){var I=new FilenameDialog(this,t,mxResources.get("ok"),function(F){null!=F?(t=F,z.setAttribute("title",F)):(y.value="blank",z.removeAttribute("title"))},mxResources.get("url"),
-null,null,null,null,function(){y.value="blank"});this.showDialog(I.container,300,80,!0,!1);I.init()}}));mxEvent.addListener(k,"change",mxUtils.bind(this,function(){k.checked&&(null==g||g.checked)?y.removeAttribute("disabled"):y.setAttribute("disabled","disabled")}));mxUtils.br(d);return{getLink:function(){return k.checked?"blank"===y.value?"_blank":t:null},getEditInput:function(){return k},getEditSelect:function(){return y}}};EditorUi.prototype.addLinkSection=function(d,g){function k(){var I=document.createElement("div");
-I.style.width="100%";I.style.height="100%";I.style.boxSizing="border-box";null!=y&&y!=mxConstants.NONE?(I.style.border="1px solid black",I.style.backgroundColor=y):(I.style.backgroundPosition="center center",I.style.backgroundRepeat="no-repeat",I.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");z.innerText="";z.appendChild(I)}mxUtils.write(d,mxResources.get("links")+":");var m=document.createElement("select");m.style.width="100px";m.style.padding="0px";m.style.marginLeft="8px";m.style.marginRight=
-"10px";m.className="geBtn";var t=document.createElement("option");t.setAttribute("value","auto");mxUtils.write(t,mxResources.get("automatic"));m.appendChild(t);t=document.createElement("option");t.setAttribute("value","blank");mxUtils.write(t,mxResources.get("openInNewWindow"));m.appendChild(t);t=document.createElement("option");t.setAttribute("value","self");mxUtils.write(t,mxResources.get("openInThisWindow"));m.appendChild(t);g&&(g=document.createElement("option"),g.setAttribute("value","frame"),
-mxUtils.write(g,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),m.appendChild(g));d.appendChild(m);mxUtils.write(d,mxResources.get("borderColor")+":");var y="#0000ff",z=null;z=mxUtils.button("",mxUtils.bind(this,function(I){this.pickColor(y||"none",function(F){y=F;k()});mxEvent.consume(I)}));k();z.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";z.style.marginLeft="4px";z.style.height="22px";z.style.width="22px";z.style.position="relative";z.style.top=mxClient.IS_IE||mxClient.IS_IE11||
-mxClient.IS_EDGE?"6px":"1px";z.className="geColorBtn";d.appendChild(z);mxUtils.br(d);return{getColor:function(){return y},getTarget:function(){return m.value},focus:function(){m.focus()}}};EditorUi.prototype.createUrlParameters=function(d,g,k,m,t,y){y=null!=y?y:[];k&&(y.push("lightbox=1"),"auto"!=d&&y.push("target="+d),null!=g&&g!=mxConstants.NONE&&y.push("highlight="+("#"==g.charAt(0)?g.substring(1):g)),null!=m&&0<m.length&&y.push("edit="+encodeURIComponent(m)),t&&y.push("layers=1"),this.editor.graph.foldingEnabled&&
-y.push("nav=1"));return y};EditorUi.prototype.createLink=function(d,g,k,m,t,y,z,I,F,C,Q,S,V){var P=this.getCurrentFile();F=this.createUrlParameters(d,g,m,t,y,F);d=!0;null!=z?k="#U"+encodeURIComponent(z):I||null==P||""==P.getHash()?k="#R"+encodeURIComponent(k?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(k="#"+P.getHash(),d=!1);d&&null!=P&&null!=P.getTitle()&&P.getTitle()!=this.defaultFilename&&F.push("title="+encodeURIComponent(P.getTitle()));
-C&&1<k.length&&(F.push("open="+k.substring(1)),k="");Q&&null!=this.currentPage&&F.push("page-id="+this.currentPage.getId());S&&F.push("transparent=1");null!=V&&F.push("dark="+V);return(m&&(null!=z||null!=P&&P.getMode()!=App.MODE_GITHUB&&P.getMode()!=App.MODE_GITLAB)?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<F.length?"?"+F.join("&"):"")+k};EditorUi.prototype.createHtml=
-function(d,g,k,m,t,y,z,I,F,C,Q,S,V){this.getBasenames();var P={};""!=t&&t!=mxConstants.NONE&&(P.highlight=t);"auto"!==m&&(P.target=m);C||(P.lightbox=!1);P.nav=this.editor.graph.foldingEnabled;k=parseInt(k);isNaN(k)||100==k||(P.zoom=k/100);k=[];z&&(k.push("pages"),P.resize=!0,null!=this.pages&&null!=this.currentPage&&(P.page=mxUtils.indexOf(this.pages,this.currentPage)));g&&(k.push("zoom"),P.resize=!0);I&&k.push("layers");F&&k.push("tags");null!=V&&(P["dark-mode"]=V);0<k.length&&(C&&k.push("lightbox"),
-P.toolbar=k.join(" "));null!=Q&&0<Q.length&&(P.edit=Q);null!=d?P.url=d:P.xml=this.getFileData(!0,null,null,null,null,!z);g='<div class="mxgraph" style="'+(y?"max-width:100%;":"")+(""!=k?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(P))+'"></div>';d=null!=d?"&fetch="+encodeURIComponent(d):"";S(g,'<script type="text/javascript" src="'+(0<d.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+d:"1"==urlParams.dev?
-"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(d,g,k,m){var t=document.createElement("div");t.style.whiteSpace="nowrap";var y=document.createElement("h3");mxUtils.write(y,mxResources.get("html"));y.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";t.appendChild(y);var z=document.createElement("div");z.style.cssText=
-"border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var I=document.createElement("input");I.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";I.setAttribute("value","url");I.setAttribute("type","radio");I.setAttribute("name","type-embedhtmldialog");y=I.cloneNode(!0);y.setAttribute("value","copy");z.appendChild(y);var F=document.createElement("span");mxUtils.write(F,mxResources.get("includeCopyOfMyDiagram"));z.appendChild(F);mxUtils.br(z);z.appendChild(I);F=
-document.createElement("span");mxUtils.write(F,mxResources.get("publicDiagramUrl"));z.appendChild(F);var C=this.getCurrentFile();null==k&&null!=C&&C.constructor==window.DriveFile&&(F=document.createElement("a"),F.style.paddingLeft="12px",F.style.color="gray",F.style.cursor="pointer",mxUtils.write(F,mxResources.get("share")),z.appendChild(F),mxEvent.addListener(F,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(C.getId(),C)})));y.setAttribute("checked","checked");null==
-k&&I.setAttribute("disabled","disabled");t.appendChild(z);z=380;var Q=this.addLinkSection(t),S=document.createElement("select");S.style.maxWidth="260px";S.style.marginLeft="8px";S.style.marginTop="16px";F=document.createElement("option");F.setAttribute("value","light");mxUtils.write(F,mxResources.get("light"));S.appendChild(F);F=document.createElement("option");F.setAttribute("value","dark");mxUtils.write(F,mxResources.get("dark"));S.appendChild(F);F=document.createElement("option");F.setAttribute("value",
-"auto");mxUtils.write(F,mxResources.get("automatic"));F.setAttribute("selected","selected");S.appendChild(F);F.setAttribute("selected","selected");mxUtils.write(t,mxResources.get("appearance")+":");t.appendChild(S);mxUtils.br(t);z+=26;var V=this.addCheckbox(t,mxResources.get("zoom"),!0,null,!0);mxUtils.write(t,":");var P=document.createElement("input");P.setAttribute("type","text");P.style.marginRight="16px";P.style.width="60px";P.style.marginLeft="4px";P.style.marginRight="12px";P.value="100%";t.appendChild(P);
-var u=this.addCheckbox(t,mxResources.get("fit"),!0);F=null!=this.pages&&1<this.pages.length;var x=x=this.addCheckbox(t,mxResources.get("allPages"),F,!F),J=this.addCheckbox(t,mxResources.get("layers"),!0),H=this.addCheckbox(t,mxResources.get("tags"),!0),K=this.addCheckbox(t,mxResources.get("lightbox"),!0),N=null;if(EditorUi.enableHtmlEditOption){N=this.addEditButton(t,K);var M=N.getEditInput();M.style.marginBottom="16px";z+=50;mxEvent.addListener(K,"change",function(){K.checked?M.removeAttribute("disabled"):
-M.setAttribute("disabled","disabled");M.checked&&K.checked?N.getEditSelect().removeAttribute("disabled"):N.getEditSelect().setAttribute("disabled","disabled")})}d=new CustomDialog(this,t,mxUtils.bind(this,function(){m(I.checked?k:null,V.checked,P.value,Q.getTarget(),Q.getColor(),u.checked,x.checked,J.checked,H.checked,K.checked,null!=N?N.getLink():null,null!=S?S.value:null)}),null,d,g);this.showDialog(d.container,340,z,!0,!0);y.focus()};EditorUi.prototype.showPublishLinkDialog=function(d,g,k,m,t,
-y,z,I,F,C,Q){var S=document.createElement("div");S.style.whiteSpace="nowrap";var V=document.createElement("h3");mxUtils.write(V,d||mxResources.get("publish"));V.style.width="100%";V.style.textAlign="center";V.style.marginTop="2px";V.style.marginBottom="20px";S.appendChild(V);var P=document.createElement("select");d=30;P.className="geBtn";P.style.marginBottom="8px";P.style.marginLeft="0px";P.style.width="100%";P.style.boxSizing="border-box";if(null==I||""==I.getHash())t=null!=t?t:"https://www.drawio.com/doc/faq/publish-diagram-as-link",
-V=document.createElement("option"),mxUtils.write(V,mxResources.get("makeCopy")),V.setAttribute("value","copy"),P.appendChild(V);V=document.createElement("option");mxUtils.write(V,mxResources.get("authorizationRequired"));V.setAttribute("value","auth");P.appendChild(V);null!=I&&""!=I.getHash()||V.setAttribute("disabled","disabled");I=document.createElement("option");I.setAttribute("value","public");P.appendChild(I);null!=z?(mxUtils.write(I,mxResources.get("publicDiagramUrl")),I.setAttribute("title",
-z),P.value="public"):(mxUtils.write(I,mxResources.get("publicDiagramUrl")+" ("+mxResources.get("diagramIsNotPublic")+")"),I.setAttribute("disabled","disabled"));S.appendChild(P);mxUtils.br(S);P.focus();var u=null,x=null;if(null!=g||null!=k)d+=30,mxUtils.write(S,mxResources.get("width")+":"),u=document.createElement("input"),u.setAttribute("type","text"),u.style.marginRight="16px",u.style.width="50px",u.style.marginLeft="6px",u.style.marginRight="16px",u.style.marginBottom="10px",u.value="100%",S.appendChild(u),
-mxUtils.write(S,mxResources.get("height")+":"),x=document.createElement("input"),x.setAttribute("type","text"),x.style.width="50px",x.style.marginLeft="6px",x.style.marginBottom="10px",x.value=k+"px",S.appendChild(x),mxUtils.br(S);var J=this.addLinkSection(S,m),H=C?this.addCheckbox(S,mxResources.get("transparentBackground"),!1):null;null!=H&&(d+=20);var K=null;null!=this.pages&&null!=this.currentPage&&0<this.getPageIndex(this.currentPage)&&(d+=30,g=null!=this.currentPage?this.currentPage.getName():
-"",16<g.length&&(g=g.substring(0,16)+"..."),K=this.addCheckbox(S,mxResources.get("selectedPage")+": "+g));var N=document.createElement("select");N.style.maxWidth="260px";N.style.marginLeft="8px";N.style.marginTop="16px";g=document.createElement("option");g.setAttribute("value","0");mxUtils.write(g,mxResources.get("light"));N.appendChild(g);g=document.createElement("option");g.setAttribute("value","1");mxUtils.write(g,mxResources.get("dark"));N.appendChild(g);g=document.createElement("option");g.setAttribute("value",
-"auto");mxUtils.write(g,mxResources.get("automatic"));g.setAttribute("selected","selected");N.appendChild(g);Q&&(mxUtils.write(S,mxResources.get("appearance")+":"),S.appendChild(N),mxUtils.br(S),d+=30);var M=this.addCheckbox(S,mxResources.get("lightbox"),!0,null,null,!m),n=this.addEditButton(S,M),A=n.getEditInput();m&&(A.style.marginLeft=M.style.marginLeft,M.style.display="none",d-=20);var E=this.addCheckbox(S,mxResources.get("layers"),!0);E.style.marginLeft=A.style.marginLeft;E.style.marginTop="8px";
-var L=this.addCheckbox(S,mxResources.get("tags"),!0);L.style.marginLeft=A.style.marginLeft;L.style.marginBottom="16px";L.style.marginTop="16px";mxEvent.addListener(M,"change",function(){M.checked?(E.removeAttribute("disabled"),A.removeAttribute("disabled"),L.removeAttribute("disabled")):(E.setAttribute("disabled","disabled"),A.setAttribute("disabled","disabled"),L.setAttribute("disabled","disabled"));A.checked&&M.checked?n.getEditSelect().removeAttribute("disabled"):n.getEditSelect().setAttribute("disabled",
-"disabled")});m=new CustomDialog(this,S,mxUtils.bind(this,function(){F(J.getTarget(),J.getColor(),null==K?!1:K.checked,M.checked,n.getLink(),E.checked,null!=u?u.value:null,null!=x?x.value:null,L.checked,P.value,null!=H?H.checked:!1,N.value)}),null,mxResources.get("create"),t,y);this.showDialog(m.container,340,296+d,!0,!0);null!=u?(u.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?u.select():document.execCommand("selectAll",!1,null)):null==P.parentNode;J.focus()};EditorUi.prototype.showRemoteExportDialog=
-function(d,g,k,m,t){var y=document.createElement("div");y.style.whiteSpace="nowrap";var z=document.createElement("h3");mxUtils.write(z,mxResources.get("image"));z.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(t?"10":"4")+"px";y.appendChild(z);if(t){mxUtils.write(y,mxResources.get("zoom")+":");var I=document.createElement("input");I.setAttribute("type","text");I.style.marginRight="16px";I.style.width="60px";I.style.marginLeft="4px";I.style.marginRight="12px";I.value=this.lastExportZoom||
-"100%";y.appendChild(I);mxUtils.write(y,mxResources.get("borderWidth")+":");var F=document.createElement("input");F.setAttribute("type","text");F.style.marginRight="16px";F.style.width="60px";F.style.marginLeft="4px";F.value=this.lastExportBorder||"0";y.appendChild(F);mxUtils.br(y)}var C=this.addCheckbox(y,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),Q=m?null:this.addCheckbox(y,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);z=this.editor.graph;
-var S=m?null:this.addCheckbox(y,mxResources.get("transparentBackground"),z.background==mxConstants.NONE||null==z.background);null!=S&&(S.style.marginBottom="16px");d=new CustomDialog(this,y,mxUtils.bind(this,function(){var V=parseInt(I.value)/100||1,P=parseInt(F.value)||0;k(!C.checked,null!=Q?Q.checked:!1,null!=S?S.checked:!1,V,P)}),null,d,g);this.showDialog(d.container,300,(t?25:0)+(m?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(d,g,k,m,t,y,z,I,F){z=null!=z?z:Editor.defaultIncludeDiagram;
-var C=document.createElement("div");C.style.whiteSpace="nowrap";var Q=this.editor.graph,S="jpeg"==I||"webp"==I?220:320,V=document.createElement("h3");mxUtils.write(V,d);V.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";C.appendChild(V);mxUtils.write(C,mxResources.get("zoom")+":");var P=document.createElement("input");P.setAttribute("type","text");P.style.marginRight="16px";P.style.width="60px";P.style.marginLeft="4px";P.style.marginRight="12px";P.value=this.lastExportZoom||
-"100%";C.appendChild(P);mxUtils.write(C,mxResources.get("borderWidth")+":");var u=document.createElement("input");u.setAttribute("type","text");u.style.marginRight="16px";u.style.width="60px";u.style.marginLeft="4px";u.value=this.lastExportBorder||"0";C.appendChild(u);mxUtils.br(C);var x=this.addCheckbox(C,mxResources.get("selectionOnly"),!1,Q.isSelectionEmpty()),J=document.createElement("input");J.style.marginTop="16px";J.style.marginRight="8px";J.style.marginLeft="24px";J.setAttribute("disabled",
-"disabled");J.setAttribute("type","checkbox");var H=document.createElement("select");H.style.marginTop="16px";H.style.marginLeft="8px";d=["selectionOnly","diagram","page"];for(V=0;V<d.length;V++)if(!Q.isSelectionEmpty()||"selectionOnly"!=d[V]){var K=document.createElement("option");mxUtils.write(K,mxResources.get(d[V]));K.setAttribute("value",d[V]);H.appendChild(K)}F?(mxUtils.write(C,mxResources.get("size")+":"),C.appendChild(H),mxUtils.br(C),S+=26,mxEvent.addListener(H,"change",function(){"selectionOnly"==
-H.value&&(x.checked=!0)})):y&&(C.appendChild(J),mxUtils.write(C,mxResources.get("crop")),mxUtils.br(C),S+=30,mxEvent.addListener(x,"change",function(){x.checked?J.removeAttribute("disabled"):J.setAttribute("disabled","disabled")}));Q.isSelectionEmpty()?F&&(x.style.display="none",x.nextSibling.style.display="none",x.nextSibling.nextSibling.style.display="none",S-=30):(H.value="diagram",J.setAttribute("checked","checked"),J.defaultChecked=!0,mxEvent.addListener(x,"change",function(){H.value=x.checked?
-"selectionOnly":"diagram"}));var N=this.addCheckbox(C,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=I&&"webp"!=I),M=document.createElement("select");M.style.maxWidth="260px";M.style.marginLeft="8px";M.style.marginTop="16px";y=document.createElement("option");y.setAttribute("value","light");mxUtils.write(y,mxResources.get("light"));M.appendChild(y);F=document.createElement("option");F.setAttribute("value","dark");mxUtils.write(F,mxResources.get("dark"));M.appendChild(F);"svg"==I&&mxUtils.lightDarkColorSupported?
-(y=document.createElement("option"),y.setAttribute("value","auto"),mxUtils.write(y,mxResources.get("automatic")),y.setAttribute("selected","selected"),M.appendChild(y)):Editor.isDarkMode()?F.setAttribute("selected","selected"):y.setAttribute("selected","selected");mxUtils.write(C,mxResources.get("appearance")+":");C.appendChild(M);mxUtils.br(C);S+=26;var n=this.addCheckbox(C,mxResources.get("shadow"),Q.shadowVisible),A=null;if("png"==I||"jpeg"==I||"webp"==I)A=this.addCheckbox(C,mxResources.get("grid"),
-!1,this.isOffline()||!this.canvasSupported,!1,!0),S+=30;var E=this.addCheckbox(C,mxResources.get("includeCopyOfMyDiagram")+":",z,null,null,"jpeg"!=I&&"webp"!=I),L=document.createElement("select");L.style.maxWidth="260px";L.style.marginLeft="28px";"png"==I||"svg"==I?(z=function(){E.checked?L.removeAttribute("disabled"):L.setAttribute("disabled","disabled")},Q=document.createElement("option"),Q.setAttribute("value","allPages"),mxUtils.write(Q,mxResources.get("allPages")),L.appendChild(Q),Q=document.createElement("option"),
-Q.setAttribute("value","currentPage"),mxUtils.write(Q,mxResources.get("currentPage")),L.appendChild(Q),E.style.marginBottom="12px",L.style.marginBottom="16px",C.appendChild(L),mxUtils.br(C),S+=20,null!=this.lastEmbedInclude&&(L.value=this.lastEmbedInclude),mxEvent.addListener(E,"change",z),z()):E.style.marginBottom="16px";var O=document.createElement("input");O.style.marginBottom="16px";O.style.marginRight="8px";O.setAttribute("type","checkbox");var R=document.createElement("input");R.style.marginBottom=
-"16px";R.style.marginRight="8px";R.setAttribute("type","checkbox");g&&(O.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,C.appendChild(O),mxUtils.write(C,mxResources.get("embedImages")),mxUtils.br(C),R.checked=null!=this.lastEmbedFonts?this.lastEmbedImages:!0,C.appendChild(R),mxUtils.write(C,mxResources.get("embedFonts")),mxUtils.br(C),S+=50);var T=document.createElement("select");T.style.maxWidth="260px";T.style.marginLeft="8px";y=document.createElement("option");y.setAttribute("value",
-"auto");mxUtils.write(y,mxResources.get("automatic"));T.appendChild(y);z=document.createElement("option");z.setAttribute("value","blank");mxUtils.write(z,mxResources.get("openInNewWindow"));T.appendChild(z);z=document.createElement("option");z.setAttribute("value","self");mxUtils.write(z,mxResources.get("openInThisWindow"));T.appendChild(z);z=document.createElement("div");mxUtils.write(z,mxResources.get("LinksLost"));z.style.margin="7px";z.style.display="none";"svg"==I&&(mxUtils.write(C,mxResources.get("links")+
-":"),C.appendChild(T),C.appendChild(z),mxUtils.br(C),mxUtils.br(C),S+=50);k=new CustomDialog(this,C,mxUtils.bind(this,function(){this.lastExportBorder=u.value;this.lastExportZoom=P.value;this.lastEmbedImages=O.checked;this.lastEmbedFonts=R.checked;this.lastEmbedInclude=L.value;t(P.value,N.checked,!x.checked,n.checked,E.checked,O.checked&&g,u.value,J.checked,("png"==I||"svg"==I)&&"currentPage"==L.value,T.value,null!=A?A.checked:null,null!=M?M.value:null,H.value,R.checked)}),null,k,m);this.showDialog(k.container,
-340,S,!0,!0,null,null,null,null,!0);P.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?P.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(d,g,k,m,t){var y=document.createElement("div");y.style.whiteSpace="nowrap";var z=this.editor.graph;if(null!=g){var I=document.createElement("h3");mxUtils.write(I,g);I.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";y.appendChild(I)}var F=this.addCheckbox(y,mxResources.get("fit"),
-!0),C=this.addCheckbox(y,mxResources.get("shadow"),z.shadowVisible&&m,!m),Q=this.addCheckbox(y,k),S=this.addCheckbox(y,mxResources.get("lightbox"),!0),V=this.addEditButton(y,S),P=V.getEditInput(),u=1<z.model.getChildCount(z.model.getRoot()),x=this.addCheckbox(y,mxResources.get("layers"),u,!u);x.style.marginLeft=P.style.marginLeft;x.style.marginBottom="12px";x.style.marginTop="8px";mxEvent.addListener(S,"change",function(){S.checked?(u&&x.removeAttribute("disabled"),P.removeAttribute("disabled")):
-(x.setAttribute("disabled","disabled"),P.setAttribute("disabled","disabled"));P.checked&&S.checked?V.getEditSelect().removeAttribute("disabled"):V.getEditSelect().setAttribute("disabled","disabled")});g=new CustomDialog(this,y,mxUtils.bind(this,function(){d(F.checked,C.checked,Q.checked,S.checked,V.getLink(),x.checked)}),null,mxResources.get("embed"),t);this.showDialog(g.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(d,g,k,m,t,y,z,I){function F(P){var u=" ",x="";m&&(u=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
-EditorUi.lightboxHost+"/?client=1"+(null!=Q?"&page="+Q:"")+(t?"&edit=_blank":"")+(y?"&layers=1":"")+"');}})(this);\"",x+="cursor:pointer;");d&&(x+="max-width:100%;");var J="";k&&(J=' width="'+Math.round(C.width)+'" height="'+Math.round(C.height)+'"');z('<img src="'+P+'"'+J+(""!=x?' style="'+x+'"':"")+u+"/>")}var C=this.editor.graph.getGraphBounds(),Q=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(P){var u=m?this.getFileData(!0):null;P=
-this.createImageDataUri(P,u,"png");F(P)}),null,null,null,mxUtils.bind(this,function(P){I({message:mxResources.get("unknownError")})}),null,!0,k?2:1,null,g,null,null,Editor.defaultBorder);else if(g=this.getFileData(!0),C.width*C.height<=MAX_AREA&&g.length<=MAX_REQUEST_SIZE){var S="";k&&(S="&w="+Math.round(2*C.width)+"&h="+Math.round(2*C.height));var V=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(m?"1":"0")+S+"&xml="+encodeURIComponent(g));V.send(mxUtils.bind(this,function(){200<=V.getStatus()&&
-299>=V.getStatus()?F("data:image/png;base64,"+V.getText()):I({message:mxResources.get("unknownError")})}))}else I({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(d,g,k,m,t,y,z){var I=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!k,"auto"),F=I.getElementsByTagName("a");if(null!=F)for(var C=0;C<F.length;C++){var Q=F[C].getAttribute("href");null!=Q&&"#"==Q.charAt(0)&&"_blank"==F[C].getAttribute("target")&&F[C].removeAttribute("target")}m&&
-I.setAttribute("content",this.getFileData(!0));g&&this.editor.graph.addSvgShadow(I);if(k){var S=" ",V="";m&&(S="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(t?"&edit=_blank":"")+(y?"&layers=1":
-"")+"');}})(this);\"",V+="cursor:pointer;");d&&(V+="max-width:100%;");this.editor.convertImages(I,mxUtils.bind(this,function(P){z('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(P))+'"'+(""!=V?' style="'+V+'"':"")+S+"/>")}))}else V="",m&&(g=this.getSelectedPageIndex(),I.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+
-EditorUi.lightboxHost+"/?client=1"+(null!=g?"&page="+g:"")+(t?"&edit=_blank":"")+(y?"&layers=1":"")+"');}}})(this);"),V+="cursor:pointer;"),d&&(d=parseInt(I.getAttribute("width")),t=parseInt(I.getAttribute("height")),I.setAttribute("viewBox","-0.5 -0.5 "+d+" "+t),V+="max-width:100%;max-height:"+t+"px;",I.removeAttribute("height")),""!=V&&I.setAttribute("style",V),this.editor.addFontCss(I),this.editor.graph.mathEnabled&&this.editor.addMathCss(I),z(mxUtils.getXml(I))};EditorUi.prototype.timeSince=function(d){d=
+1),"image/png",!0);u.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(I){A.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(I)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(m)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(d,g,k,m,u){this.isLocalFileSave()?this.saveLocalFile(k,
+d,m,u,g):this.saveRequest(d,g,mxUtils.bind(this,function(x,A){return this.createEchoRequest(k,x,m,u,g,A)}),k,u,m)};EditorUi.prototype.saveRequest=function(d,g,k,m,u,x,A){A=null!=A?A:!mxClient.IS_IOS||!navigator.standalone;var I=mxUtils.bind(this,function(C,P,R,U){if("_blank"==P||null!=C&&0<C.length){var O=k("_blank"==P?null:C,P==App.MODE_DEVICE||"download"==P||null==P||"_blank"==P?"0":"1");null!=O&&(P==App.MODE_DEVICE||"download"==P||"_blank"==P?O.simulate(document,"_blank"):(R=mxUtils.bind(this,
+function(V){x=null!=x?x:"pdf"==g?"application/pdf":"image/"+g;if(null!=m)try{this.exportFile(m,C,x,!0,P,V)}catch(q){this.handleError(q)}else this.spinner.spin(document.body,mxResources.get("saving"))&&O.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=O.getStatus()&&299>=O.getStatus())try{this.exportFile(O.getText(),C,x,!0,P,V)}catch(q){this.handleError(q)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(q){this.spinner.stop();this.handleError(q)}))}),
+null!=U?R(U):this.pickFolder(P,R)))}});u=[App.MODE_BROWSER];A||u.push("_blank");var F=new SaveDialog(this,d,mxUtils.bind(this,function(C,P,R){I(C.value,P,C,R);this.hideDialog(null,null,F.container)}),u,null,"application/pdf");this.showDialog(F.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));F.init()};EditorUi.prototype.isServices=function(d){return 1!=d};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(d,g,
+k,m,u,x){};EditorUi.prototype.getServiceForName=function(d){return null};EditorUi.prototype.getTitleForService=function(d){return mxResources.get(d)};EditorUi.prototype.pickFolder=function(d,g,k){g(null)};EditorUi.prototype.exportSvg=function(d,g,k,m,u,x,A,I,F,C,P,R,U,O){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(N){Editor.addRetryToError(N,mxUtils.bind(this,function(){this.exportSvg(d,g,k,m,u,x,A,I,F,C,P,R,U,O)}));this.handleError(N)})))try{var V=this.editor.graph.isSelectionEmpty();
+k=null!=k?k:V;var q=g?null:this.editor.graph.background;q==mxConstants.NONE&&(q=null);null==q&&0==g&&(q=this.editor.graph.shapeBackgroundColor);var y=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var D=mxUtils.lightDarkColorSupported,J=mxUtils.preferDarkColor;if("light"==P||"dark"==P)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==P;var L=this.editor.graph.createSvgImageExport(u),K=this.editor.graph.getSvg(q,
+d,A,I,null,k,null,L,"blank"==C?"_blank":"self"==C?"_top":null,null,!U,P,R);mxUtils.lightDarkColorSupported=D;mxUtils.preferDarkColor=J;this.editor.graph.addForeignObjectWarning=y;m&&this.editor.graph.addSvgShadow(K);var n=this.getBaseFilename()+(u?".drawio":"")+".svg";O=null!=O?O:mxUtils.bind(this,function(N){this.isLocalFileSave()||N.length<=MAX_REQUEST_SIZE?this.saveData(n,"svg",N,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,
+function(){mxUtils.popup(N)}))});var z=mxUtils.bind(this,function(N){this.spinner.stop();u&&N.setAttribute("content",this.getFileData(!0,null,null,null,k,F,null,null,null,null,null,d,A));O(Graph.xmlDeclaration+"\n"+(u?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(N))});this.editor.graph.mathEnabled&&this.editor.addMathCss(K);var G=mxUtils.bind(this,function(N){Editor.replaceSvgDataUris&&x&&EditorUi.embedSvgImages(N);Editor.foreignObjectImages&&U?this.replaceAlternateContent(N,
+P,z):z(N)}),M=mxUtils.bind(this,function(N){x&&!this.isOffline()&&this.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(N,G,this.thumbImageCache)):G(N)});U?this.embedFonts(K,M):(this.editor.addFontCss(K),M(K))}catch(N){this.handleError(N)}};EditorUi.prototype.replaceAlternateContent=function(d,g,k){function m(R,U,O,V,q){var y=mxUtils.createElementNs(d.ownerDocument,mxConstants.NS_SVG,"image");y.setAttribute("x",U);y.setAttribute("y",O+.5);y.setAttribute("width",
+V.width);y.setAttribute("height",V.height);null==y.setAttributeNS?y.setAttribute("xlink:href",q):y.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",q);R.replaceChild(y,R.lastChild);I()}function u(){if(A<P.length)P[A++](u)}var x="";g=d.getElementsByTagName("style");for(var A=0;A<g.length;A++)x+=g[A].innerHTML;g=d.getElementsByTagName("switch");counter=g.length;var I=mxUtils.bind(this,function(){counter--;0==counter&&k(d)}),F={},C={},P=[];for(A=0;A<g.length;A++)mxUtils.bind(this,function(R){var U=R.getElementsByTagName("div");
+if(0<U.length)try{var O=U[0].cloneNode(!0),V=parseInt(O.style.marginLeft),q=parseInt(O.style.paddingTop),y=O.getElementsByTagName("div")[1],D=U=!1,J=O.style.alignItems,L=O.style.justifyContent;if(null!=O.style.writingMode){var K=O.style.writingMode;D="vertical-"==K.substring(0,9);U="-rl"==K.substring(K.length-3)}var n=!D&&"1px"==O.style.width||D&&"1px"==O.style.height;if(!D&&"1px"==O.style.height||D&&"1px"==O.style.width)O.style.alignItems=D&&U?"unsafe flex-end":"unsafe flex-start";n&&(O.style.justifyContent=
+"unsafe flex-start");O.style.paddingTop="";O.style.marginLeft="";var z=O.outerHTML,G=F[z];null==G&&(O.style.position="absolute",O.style.visibility="hidden",document.body.appendChild(O),K=1,K="1px"==O.style.width?y.offsetWidth:parseInt(O.style.width),n=1,n="1px"==O.style.height?y.offsetHeight:parseInt(O.style.height),document.body.removeChild(O),G=new mxRectangle(V,q,K,n),F[z]=G);"1px"==O.style.height&&("unsafe center"==J?q-=G.height/2:"unsafe flex-end"==J&&(q-=G.height));if("1px"==O.style.width)if(!D&&
+"unsafe center"==L||D&&"unsafe center"==J)V-=G.width/2;else if(!D&&"unsafe flex-end"==L||D&&(!U&&"unsafe flex-end"==J||U&&"unsafe flex-start"==J))V-=G.width;G=new mxRectangle(V,q,G.width,G.height+parseInt(y.style.fontSize)/4);P.push(mxUtils.bind(this,function(M){var N=C[z];null==N?Graph.htmlToPng(z,G.width,G.height,mxUtils.bind(this,function(Q){m(R,V,q,G,Q);C[z]=Q;M()}),x):(m(R,V,q,G,N),M())}))}catch(M){I()}else I()})(g[A]);0==counter&&k(d);A=0;u()};EditorUi.prototype.addRadiobox=function(d,g,k,m,
+u,x,A){return this.addCheckbox(d,k,m,u,x,A,!0,g)};EditorUi.prototype.addCheckbox=function(d,g,k,m,u,x,A,I){x=null!=x?x:!0;var F=document.createElement("input");F.style.marginRight="8px";F.style.marginTop="16px";F.setAttribute("type",A?"radio":"checkbox");A="geCheckbox-"+Editor.guid();F.id=A;null!=I&&F.setAttribute("name",I);k&&(F.setAttribute("checked","checked"),F.defaultChecked=!0);m&&F.setAttribute("disabled","disabled");x&&(d.appendChild(F),k=document.createElement("label"),mxUtils.write(k,g),
+k.setAttribute("for",A),d.appendChild(k),u||mxUtils.br(d));return F};EditorUi.prototype.addEditButton=function(d,g){var k=this.addCheckbox(d,mxResources.get("edit")+":",!0,null,!0);k.style.marginLeft="24px";var m=this.getCurrentFile(),u="";null!=m&&m.getMode()!=App.MODE_DEVICE&&m.getMode()!=App.MODE_BROWSER&&(u=window.location.href);var x=document.createElement("select");x.style.maxWidth="200px";x.style.width="auto";x.style.marginLeft="8px";x.style.marginRight="10px";x.className="geBtn";m=document.createElement("option");
+m.setAttribute("value","blank");mxUtils.write(m,mxResources.get("makeCopy"));x.appendChild(m);var A=document.createElement("option");A.setAttribute("value","custom");mxUtils.write(A,mxResources.get("custom")+"...");x.appendChild(A);d.appendChild(x);mxEvent.addListener(x,"change",mxUtils.bind(this,function(){if("custom"==x.value){var I=new FilenameDialog(this,u,mxResources.get("ok"),function(F){null!=F?(u=F,A.setAttribute("title",F)):(x.value="blank",A.removeAttribute("title"))},mxResources.get("url"),
+null,null,null,null,function(){x.value="blank"});this.showDialog(I.container,300,80,!0,!1);I.init()}}));mxEvent.addListener(k,"change",mxUtils.bind(this,function(){k.checked&&(null==g||g.checked)?x.removeAttribute("disabled"):x.setAttribute("disabled","disabled")}));mxUtils.br(d);return{getLink:function(){return k.checked?"blank"===x.value?"_blank":u:null},getEditInput:function(){return k},getEditSelect:function(){return x}}};EditorUi.prototype.addLinkSection=function(d,g){function k(){var I=document.createElement("div");
+I.style.width="100%";I.style.height="100%";I.style.boxSizing="border-box";null!=x&&x!=mxConstants.NONE?(I.style.border="1px solid black",I.style.backgroundColor=x):(I.style.backgroundPosition="center center",I.style.backgroundRepeat="no-repeat",I.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");A.innerText="";A.appendChild(I)}mxUtils.write(d,mxResources.get("links")+":");var m=document.createElement("select");m.style.width="100px";m.style.padding="0px";m.style.marginLeft="8px";m.style.marginRight=
+"10px";m.className="geBtn";var u=document.createElement("option");u.setAttribute("value","auto");mxUtils.write(u,mxResources.get("automatic"));m.appendChild(u);u=document.createElement("option");u.setAttribute("value","blank");mxUtils.write(u,mxResources.get("openInNewWindow"));m.appendChild(u);u=document.createElement("option");u.setAttribute("value","self");mxUtils.write(u,mxResources.get("openInThisWindow"));m.appendChild(u);g&&(g=document.createElement("option"),g.setAttribute("value","frame"),
+mxUtils.write(g,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),m.appendChild(g));d.appendChild(m);mxUtils.write(d,mxResources.get("borderColor")+":");var x="#0000ff",A=null;A=mxUtils.button("",mxUtils.bind(this,function(I){this.pickColor(x||"none",function(F){x=F;k()});mxEvent.consume(I)}));k();A.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";A.style.marginLeft="4px";A.style.height="22px";A.style.width="22px";A.style.position="relative";A.style.top=mxClient.IS_IE||mxClient.IS_IE11||
+mxClient.IS_EDGE?"6px":"1px";A.className="geColorBtn";d.appendChild(A);mxUtils.br(d);return{getColor:function(){return x},getTarget:function(){return m.value},focus:function(){m.focus()}}};EditorUi.prototype.createUrlParameters=function(d,g,k,m,u,x){x=null!=x?x:[];k&&(x.push("lightbox=1"),"auto"!=d&&x.push("target="+d),null!=g&&g!=mxConstants.NONE&&x.push("highlight="+("#"==g.charAt(0)?g.substring(1):g)),null!=m&&0<m.length&&x.push("edit="+encodeURIComponent(m)),u&&x.push("layers=1"),this.editor.graph.foldingEnabled&&
+x.push("nav=1"));return x};EditorUi.prototype.createLink=function(d,g,k,m,u,x,A,I,F,C,P,R,U){var O=this.getCurrentFile();F=this.createUrlParameters(d,g,m,u,x,F);d=!0;null!=A?k="#U"+encodeURIComponent(A):I||null==O||""==O.getHash()?k="#R"+encodeURIComponent(k?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(k="#"+O.getHash(),d=!1);d&&null!=O&&null!=O.getTitle()&&O.getTitle()!=this.defaultFilename&&F.push("title="+encodeURIComponent(O.getTitle()));
+C&&1<k.length&&(F.push("open="+k.substring(1)),k="");P&&null!=this.currentPage&&F.push("page-id="+this.currentPage.getId());R&&F.push("transparent=1");null!=U&&F.push("dark="+U);return(m&&(null!=A||null!=O&&O.getMode()!=App.MODE_GITHUB&&O.getMode()!=App.MODE_GITLAB)?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<F.length?"?"+F.join("&"):"")+k};EditorUi.prototype.createHtml=
+function(d,g,k,m,u,x,A,I,F,C,P,R,U){this.getBasenames();var O={};""!=u&&u!=mxConstants.NONE&&(O.highlight=u);"auto"!==m&&(O.target=m);C||(O.lightbox=!1);O.nav=this.editor.graph.foldingEnabled;k=parseInt(k);isNaN(k)||100==k||(O.zoom=k/100);k=[];A&&(k.push("pages"),O.resize=!0,null!=this.pages&&null!=this.currentPage&&(O.page=mxUtils.indexOf(this.pages,this.currentPage)));g&&(k.push("zoom"),O.resize=!0);I&&k.push("layers");F&&k.push("tags");null!=U&&(O["dark-mode"]=U);0<k.length&&(C&&k.push("lightbox"),
+O.toolbar=k.join(" "));null!=P&&0<P.length&&(O.edit=P);null!=d?O.url=d:O.xml=this.getFileData(!0,null,null,null,null,!A);g='<div class="mxgraph" style="'+(x?"max-width:100%;":"")+(""!=k?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(O))+'"></div>';d=null!=d?"&fetch="+encodeURIComponent(d):"";R(g,'<script type="text/javascript" src="'+(0<d.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+d:"1"==urlParams.dev?
+"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(d,g,k,m){var u=document.createElement("div");u.style.whiteSpace="nowrap";var x=document.createElement("h3");mxUtils.write(x,mxResources.get("html"));x.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";u.appendChild(x);var A=document.createElement("div");A.style.cssText=
+"border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var I=document.createElement("input");I.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";I.setAttribute("value","url");I.setAttribute("type","radio");I.setAttribute("name","type-embedhtmldialog");x=I.cloneNode(!0);x.setAttribute("value","copy");A.appendChild(x);var F=document.createElement("span");mxUtils.write(F,mxResources.get("includeCopyOfMyDiagram"));A.appendChild(F);mxUtils.br(A);A.appendChild(I);F=
+document.createElement("span");mxUtils.write(F,mxResources.get("publicDiagramUrl"));A.appendChild(F);var C=this.getCurrentFile();null==k&&null!=C&&C.constructor==window.DriveFile&&(F=document.createElement("a"),F.style.paddingLeft="12px",F.style.color="gray",F.style.cursor="pointer",mxUtils.write(F,mxResources.get("share")),A.appendChild(F),mxEvent.addListener(F,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(C.getId(),C)})));x.setAttribute("checked","checked");null==
+k&&I.setAttribute("disabled","disabled");u.appendChild(A);A=380;var P=this.addLinkSection(u),R=document.createElement("select");R.style.maxWidth="260px";R.style.marginLeft="8px";R.style.marginTop="16px";F=document.createElement("option");F.setAttribute("value","light");mxUtils.write(F,mxResources.get("light"));R.appendChild(F);F=document.createElement("option");F.setAttribute("value","dark");mxUtils.write(F,mxResources.get("dark"));R.appendChild(F);F=document.createElement("option");F.setAttribute("value",
+"auto");mxUtils.write(F,mxResources.get("automatic"));F.setAttribute("selected","selected");R.appendChild(F);F.setAttribute("selected","selected");mxUtils.write(u,mxResources.get("appearance")+":");u.appendChild(R);mxUtils.br(u);A+=26;var U=this.addCheckbox(u,mxResources.get("zoom"),!0,null,!0);mxUtils.write(u,":");var O=document.createElement("input");O.setAttribute("type","text");O.style.marginRight="16px";O.style.width="60px";O.style.marginLeft="4px";O.style.marginRight="12px";O.value="100%";u.appendChild(O);
+var V=this.addCheckbox(u,mxResources.get("fit"),!0);F=null!=this.pages&&1<this.pages.length;var q=q=this.addCheckbox(u,mxResources.get("allPages"),F,!F),y=this.addCheckbox(u,mxResources.get("layers"),!0),D=this.addCheckbox(u,mxResources.get("tags"),!0),J=this.addCheckbox(u,mxResources.get("lightbox"),!0),L=null;if(EditorUi.enableHtmlEditOption){L=this.addEditButton(u,J);var K=L.getEditInput();K.style.marginBottom="16px";A+=50;mxEvent.addListener(J,"change",function(){J.checked?K.removeAttribute("disabled"):
+K.setAttribute("disabled","disabled");K.checked&&J.checked?L.getEditSelect().removeAttribute("disabled"):L.getEditSelect().setAttribute("disabled","disabled")})}d=new CustomDialog(this,u,mxUtils.bind(this,function(){m(I.checked?k:null,U.checked,O.value,P.getTarget(),P.getColor(),V.checked,q.checked,y.checked,D.checked,J.checked,null!=L?L.getLink():null,null!=R?R.value:null)}),null,d,g);this.showDialog(d.container,340,A,!0,!0);x.focus()};EditorUi.prototype.showPublishLinkDialog=function(d,g,k,m,u,
+x,A,I,F,C,P){var R=document.createElement("div");R.style.whiteSpace="nowrap";var U=document.createElement("h3");mxUtils.write(U,d||mxResources.get("publish"));U.style.width="100%";U.style.textAlign="center";U.style.marginTop="2px";U.style.marginBottom="20px";R.appendChild(U);var O=document.createElement("select");d=30;O.className="geBtn";O.style.marginBottom="8px";O.style.marginLeft="0px";O.style.width="100%";O.style.boxSizing="border-box";if(null==I||""==I.getHash())u=null!=u?u:"https://www.drawio.com/doc/faq/publish-diagram-as-link",
+U=document.createElement("option"),mxUtils.write(U,mxResources.get("makeCopy")),U.setAttribute("value","copy"),O.appendChild(U);U=document.createElement("option");mxUtils.write(U,mxResources.get("authorizationRequired"));U.setAttribute("value","auth");O.appendChild(U);null!=I&&""!=I.getHash()||U.setAttribute("disabled","disabled");I=document.createElement("option");I.setAttribute("value","public");O.appendChild(I);null!=A?(mxUtils.write(I,mxResources.get("publicDiagramUrl")),I.setAttribute("title",
+A),O.value="public"):(mxUtils.write(I,mxResources.get("publicDiagramUrl")+" ("+mxResources.get("diagramIsNotPublic")+")"),I.setAttribute("disabled","disabled"));R.appendChild(O);mxUtils.br(R);O.focus();var V=null,q=null;if(null!=g||null!=k)d+=30,mxUtils.write(R,mxResources.get("width")+":"),V=document.createElement("input"),V.setAttribute("type","text"),V.style.marginRight="16px",V.style.width="50px",V.style.marginLeft="6px",V.style.marginRight="16px",V.style.marginBottom="10px",V.value="100%",R.appendChild(V),
+mxUtils.write(R,mxResources.get("height")+":"),q=document.createElement("input"),q.setAttribute("type","text"),q.style.width="50px",q.style.marginLeft="6px",q.style.marginBottom="10px",q.value=k+"px",R.appendChild(q),mxUtils.br(R);var y=this.addLinkSection(R,m),D=C?this.addCheckbox(R,mxResources.get("transparentBackground"),!1):null;null!=D&&(d+=20);var J=null;null!=this.pages&&null!=this.currentPage&&0<this.getPageIndex(this.currentPage)&&(d+=30,g=null!=this.currentPage?this.currentPage.getName():
+"",16<g.length&&(g=g.substring(0,16)+"..."),J=this.addCheckbox(R,mxResources.get("selectedPage")+": "+g));var L=document.createElement("select");L.style.maxWidth="260px";L.style.marginLeft="8px";L.style.marginTop="16px";g=document.createElement("option");g.setAttribute("value","0");mxUtils.write(g,mxResources.get("light"));L.appendChild(g);g=document.createElement("option");g.setAttribute("value","1");mxUtils.write(g,mxResources.get("dark"));L.appendChild(g);g=document.createElement("option");g.setAttribute("value",
+"auto");mxUtils.write(g,mxResources.get("automatic"));g.setAttribute("selected","selected");L.appendChild(g);P&&(mxUtils.write(R,mxResources.get("appearance")+":"),R.appendChild(L),mxUtils.br(R),d+=30);var K=this.addCheckbox(R,mxResources.get("lightbox"),!0,null,null,!m),n=this.addEditButton(R,K),z=n.getEditInput();m&&(z.style.marginLeft=K.style.marginLeft,K.style.display="none",d-=20);var G=this.addCheckbox(R,mxResources.get("layers"),!0);G.style.marginLeft=z.style.marginLeft;G.style.marginTop="8px";
+var M=this.addCheckbox(R,mxResources.get("tags"),!0);M.style.marginLeft=z.style.marginLeft;M.style.marginBottom="16px";M.style.marginTop="16px";mxEvent.addListener(K,"change",function(){K.checked?(G.removeAttribute("disabled"),z.removeAttribute("disabled"),M.removeAttribute("disabled")):(G.setAttribute("disabled","disabled"),z.setAttribute("disabled","disabled"),M.setAttribute("disabled","disabled"));z.checked&&K.checked?n.getEditSelect().removeAttribute("disabled"):n.getEditSelect().setAttribute("disabled",
+"disabled")});m=new CustomDialog(this,R,mxUtils.bind(this,function(){F(y.getTarget(),y.getColor(),null==J?!1:J.checked,K.checked,n.getLink(),G.checked,null!=V?V.value:null,null!=q?q.value:null,M.checked,O.value,null!=D?D.checked:!1,L.value)}),null,mxResources.get("create"),u,x);this.showDialog(m.container,340,296+d,!0,!0);null!=V?(V.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?V.select():document.execCommand("selectAll",!1,null)):null==O.parentNode;y.focus()};EditorUi.prototype.showRemoteExportDialog=
+function(d,g,k,m,u){var x=document.createElement("div");x.style.whiteSpace="nowrap";var A=document.createElement("h3");mxUtils.write(A,mxResources.get("image"));A.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(u?"10":"4")+"px";x.appendChild(A);if(u){mxUtils.write(x,mxResources.get("zoom")+":");var I=document.createElement("input");I.setAttribute("type","text");I.style.marginRight="16px";I.style.width="60px";I.style.marginLeft="4px";I.style.marginRight="12px";I.value=this.lastExportZoom||
+"100%";x.appendChild(I);mxUtils.write(x,mxResources.get("borderWidth")+":");var F=document.createElement("input");F.setAttribute("type","text");F.style.marginRight="16px";F.style.width="60px";F.style.marginLeft="4px";F.value=this.lastExportBorder||"0";x.appendChild(F);mxUtils.br(x)}var C=this.addCheckbox(x,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),P=m?null:this.addCheckbox(x,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);A=this.editor.graph;
+var R=m?null:this.addCheckbox(x,mxResources.get("transparentBackground"),A.background==mxConstants.NONE||null==A.background);null!=R&&(R.style.marginBottom="16px");d=new CustomDialog(this,x,mxUtils.bind(this,function(){var U=parseInt(I.value)/100||1,O=parseInt(F.value)||0;k(!C.checked,null!=P?P.checked:!1,null!=R?R.checked:!1,U,O)}),null,d,g);this.showDialog(d.container,300,(u?25:0)+(m?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(d,g,k,m,u,x,A,I,F){A=null!=A?A:Editor.defaultIncludeDiagram;
+var C=document.createElement("div");C.style.whiteSpace="nowrap";var P=this.editor.graph,R="jpeg"==I||"webp"==I?220:320,U=document.createElement("h3");mxUtils.write(U,d);U.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";C.appendChild(U);mxUtils.write(C,mxResources.get("zoom")+":");var O=document.createElement("input");O.setAttribute("type","text");O.style.marginRight="16px";O.style.width="60px";O.style.marginLeft="4px";O.style.marginRight="12px";O.value=this.lastExportZoom||
+"100%";C.appendChild(O);mxUtils.write(C,mxResources.get("borderWidth")+":");var V=document.createElement("input");V.setAttribute("type","text");V.style.marginRight="16px";V.style.width="60px";V.style.marginLeft="4px";V.value=this.lastExportBorder||"0";C.appendChild(V);mxUtils.br(C);var q=this.addCheckbox(C,mxResources.get("selectionOnly"),!1,P.isSelectionEmpty()),y=document.createElement("input");y.style.marginTop="16px";y.style.marginRight="8px";y.style.marginLeft="24px";y.setAttribute("disabled",
+"disabled");y.setAttribute("type","checkbox");var D=document.createElement("select");D.style.marginTop="16px";D.style.marginLeft="8px";d=["selectionOnly","diagram","page"];for(U=0;U<d.length;U++)if(!P.isSelectionEmpty()||"selectionOnly"!=d[U]){var J=document.createElement("option");mxUtils.write(J,mxResources.get(d[U]));J.setAttribute("value",d[U]);D.appendChild(J)}F?(mxUtils.write(C,mxResources.get("size")+":"),C.appendChild(D),mxUtils.br(C),R+=26,mxEvent.addListener(D,"change",function(){"selectionOnly"==
+D.value&&(q.checked=!0)})):x&&(C.appendChild(y),mxUtils.write(C,mxResources.get("crop")),mxUtils.br(C),R+=30,mxEvent.addListener(q,"change",function(){q.checked?y.removeAttribute("disabled"):y.setAttribute("disabled","disabled")}));P.isSelectionEmpty()?F&&(q.style.display="none",q.nextSibling.style.display="none",q.nextSibling.nextSibling.style.display="none",R-=30):(D.value="diagram",y.setAttribute("checked","checked"),y.defaultChecked=!0,mxEvent.addListener(q,"change",function(){D.value=q.checked?
+"selectionOnly":"diagram"}));var L=this.addCheckbox(C,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=I&&"webp"!=I),K=document.createElement("select");K.style.maxWidth="260px";K.style.marginLeft="8px";K.style.marginTop="16px";x=document.createElement("option");x.setAttribute("value","light");mxUtils.write(x,mxResources.get("light"));K.appendChild(x);F=document.createElement("option");F.setAttribute("value","dark");mxUtils.write(F,mxResources.get("dark"));K.appendChild(F);"svg"==I&&mxUtils.lightDarkColorSupported?
+(x=document.createElement("option"),x.setAttribute("value","auto"),mxUtils.write(x,mxResources.get("automatic")),x.setAttribute("selected","selected"),K.appendChild(x)):Editor.isDarkMode()?F.setAttribute("selected","selected"):x.setAttribute("selected","selected");mxUtils.write(C,mxResources.get("appearance")+":");C.appendChild(K);mxUtils.br(C);R+=26;var n=this.addCheckbox(C,mxResources.get("shadow"),P.shadowVisible),z=null;if("png"==I||"jpeg"==I||"webp"==I)z=this.addCheckbox(C,mxResources.get("grid"),
+!1,this.isOffline()||!this.canvasSupported,!1,!0),R+=30;var G=this.addCheckbox(C,mxResources.get("includeCopyOfMyDiagram")+":",A,null,null,"jpeg"!=I&&"webp"!=I),M=document.createElement("select");M.style.maxWidth="260px";M.style.marginLeft="28px";"png"==I||"svg"==I?(A=function(){G.checked?M.removeAttribute("disabled"):M.setAttribute("disabled","disabled")},P=document.createElement("option"),P.setAttribute("value","allPages"),mxUtils.write(P,mxResources.get("allPages")),M.appendChild(P),P=document.createElement("option"),
+P.setAttribute("value","currentPage"),mxUtils.write(P,mxResources.get("currentPage")),M.appendChild(P),G.style.marginBottom="12px",M.style.marginBottom="16px",C.appendChild(M),mxUtils.br(C),R+=20,null!=this.lastEmbedInclude&&(M.value=this.lastEmbedInclude),mxEvent.addListener(G,"change",A),A()):G.style.marginBottom="16px";var N=document.createElement("input");N.style.marginBottom="16px";N.style.marginRight="8px";N.setAttribute("type","checkbox");var Q=document.createElement("input");Q.style.marginBottom=
+"16px";Q.style.marginRight="8px";Q.setAttribute("type","checkbox");g&&(N.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,C.appendChild(N),mxUtils.write(C,mxResources.get("embedImages")),mxUtils.br(C),Q.checked=null!=this.lastEmbedFonts?this.lastEmbedImages:!0,C.appendChild(Q),mxUtils.write(C,mxResources.get("embedFonts")),mxUtils.br(C),R+=50);var S=document.createElement("select");S.style.maxWidth="260px";S.style.marginLeft="8px";x=document.createElement("option");x.setAttribute("value",
+"auto");mxUtils.write(x,mxResources.get("automatic"));S.appendChild(x);A=document.createElement("option");A.setAttribute("value","blank");mxUtils.write(A,mxResources.get("openInNewWindow"));S.appendChild(A);A=document.createElement("option");A.setAttribute("value","self");mxUtils.write(A,mxResources.get("openInThisWindow"));S.appendChild(A);A=document.createElement("div");mxUtils.write(A,mxResources.get("LinksLost"));A.style.margin="7px";A.style.display="none";"svg"==I&&(mxUtils.write(C,mxResources.get("links")+
+":"),C.appendChild(S),C.appendChild(A),mxUtils.br(C),mxUtils.br(C),R+=50);k=new CustomDialog(this,C,mxUtils.bind(this,function(){this.lastExportBorder=V.value;this.lastExportZoom=O.value;this.lastEmbedImages=N.checked;this.lastEmbedFonts=Q.checked;this.lastEmbedInclude=M.value;u(O.value,L.checked,!q.checked,n.checked,G.checked,N.checked&&g,V.value,y.checked,("png"==I||"svg"==I)&&"currentPage"==M.value,S.value,null!=z?z.checked:null,null!=K?K.value:null,D.value,Q.checked)}),null,k,m);this.showDialog(k.container,
+340,R,!0,!0,null,null,null,null,!0);O.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?O.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(d,g,k,m,u){var x=document.createElement("div");x.style.whiteSpace="nowrap";var A=this.editor.graph;if(null!=g){var I=document.createElement("h3");mxUtils.write(I,g);I.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";x.appendChild(I)}var F=this.addCheckbox(x,mxResources.get("fit"),
+!0),C=this.addCheckbox(x,mxResources.get("shadow"),A.shadowVisible&&m,!m),P=this.addCheckbox(x,k),R=this.addCheckbox(x,mxResources.get("lightbox"),!0),U=this.addEditButton(x,R),O=U.getEditInput(),V=1<A.model.getChildCount(A.model.getRoot()),q=this.addCheckbox(x,mxResources.get("layers"),V,!V);q.style.marginLeft=O.style.marginLeft;q.style.marginBottom="12px";q.style.marginTop="8px";mxEvent.addListener(R,"change",function(){R.checked?(V&&q.removeAttribute("disabled"),O.removeAttribute("disabled")):
+(q.setAttribute("disabled","disabled"),O.setAttribute("disabled","disabled"));O.checked&&R.checked?U.getEditSelect().removeAttribute("disabled"):U.getEditSelect().setAttribute("disabled","disabled")});g=new CustomDialog(this,x,mxUtils.bind(this,function(){d(F.checked,C.checked,P.checked,R.checked,U.getLink(),q.checked)}),null,mxResources.get("embed"),u);this.showDialog(g.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(d,g,k,m,u,x,A,I){function F(O){var V=" ",q="";m&&(V=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
+EditorUi.lightboxHost+"/?client=1"+(null!=P?"&page="+P:"")+(u?"&edit=_blank":"")+(x?"&layers=1":"")+"');}})(this);\"",q+="cursor:pointer;");d&&(q+="max-width:100%;");var y="";k&&(y=' width="'+Math.round(C.width)+'" height="'+Math.round(C.height)+'"');A('<img src="'+O+'"'+y+(""!=q?' style="'+q+'"':"")+V+"/>")}var C=this.editor.graph.getGraphBounds(),P=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(O){var V=m?this.getFileData(!0):null;O=
+this.createImageDataUri(O,V,"png");F(O)}),null,null,null,mxUtils.bind(this,function(O){I({message:mxResources.get("unknownError")})}),null,!0,k?2:1,null,g,null,null,Editor.defaultBorder);else if(g=this.getFileData(!0),C.width*C.height<=MAX_AREA&&g.length<=MAX_REQUEST_SIZE){var R="";k&&(R="&w="+Math.round(2*C.width)+"&h="+Math.round(2*C.height));var U=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(m?"1":"0")+R+"&xml="+encodeURIComponent(g));U.send(mxUtils.bind(this,function(){200<=U.getStatus()&&
+299>=U.getStatus()?F("data:image/png;base64,"+U.getText()):I({message:mxResources.get("unknownError")})}))}else I({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(d,g,k,m,u,x,A){var I=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!k,"auto"),F=I.getElementsByTagName("a");if(null!=F)for(var C=0;C<F.length;C++){var P=F[C].getAttribute("href");null!=P&&"#"==P.charAt(0)&&"_blank"==F[C].getAttribute("target")&&F[C].removeAttribute("target")}m&&
+I.setAttribute("content",this.getFileData(!0));g&&this.editor.graph.addSvgShadow(I);if(k){var R=" ",U="";m&&(R="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(u?"&edit=_blank":"")+(x?"&layers=1":
+"")+"');}})(this);\"",U+="cursor:pointer;");d&&(U+="max-width:100%;");this.editor.convertImages(I,mxUtils.bind(this,function(O){A('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(O))+'"'+(""!=U?' style="'+U+'"':"")+R+"/>")}))}else U="",m&&(g=this.getSelectedPageIndex(),I.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+
+EditorUi.lightboxHost+"/?client=1"+(null!=g?"&page="+g:"")+(u?"&edit=_blank":"")+(x?"&layers=1":"")+"');}}})(this);"),U+="cursor:pointer;"),d&&(d=parseInt(I.getAttribute("width")),u=parseInt(I.getAttribute("height")),I.setAttribute("viewBox","-0.5 -0.5 "+d+" "+u),U+="max-width:100%;max-height:"+u+"px;",I.removeAttribute("height")),""!=U&&I.setAttribute("style",U),this.editor.addFontCss(I),this.editor.graph.mathEnabled&&this.editor.addMathCss(I),A(mxUtils.getXml(I))};EditorUi.prototype.timeSince=function(d){d=
Math.floor((new Date-d)/1E3);var g=Math.floor(d/31536E3);if(1<g)return g+" "+mxResources.get("years");g=Math.floor(d/2592E3);if(1<g)return g+" "+mxResources.get("months");g=Math.floor(d/86400);if(1<g)return g+" "+mxResources.get("days");g=Math.floor(d/3600);if(1<g)return g+" "+mxResources.get("hours");g=Math.floor(d/60);return 1<g?g+" "+mxResources.get("minutes"):1==g?g+" "+mxResources.get("minute"):null};EditorUi.prototype.decodeNodeIntoGraph=function(d,g){if(null!=d){var k=null;if("diagram"==d.nodeName)k=
-d;else if("mxfile"==d.nodeName){var m=d.getElementsByTagName("diagram");if(0<m.length){k=m[0];var t=g.getGlobalVariable;g.getGlobalVariable=function(y){return"page"==y?k.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==y?1:t.apply(this,arguments)}}}null!=k&&(d=Editor.parseDiagramNode(k))}m=this.editor.graph;try{this.editor.graph=g,this.editor.setGraphXml(d)}catch(y){}finally{this.editor.graph=m}return d};EditorUi.prototype.getSvgFileProperties=function(d){return this.getPngFileProperties(d)};
-EditorUi.prototype.getPngFileProperties=function(d){var g=1,k=0;if(null!=d){if(d.hasAttribute("scale")){var m=parseFloat(d.getAttribute("scale"));!isNaN(m)&&0<m&&(g=m)}d.hasAttribute("border")&&(m=parseInt(d.getAttribute("border")),!isNaN(m)&&0<m&&(k=m))}return{scale:g,border:k}};EditorUi.prototype.getEmbeddedPng=function(d,g,k,m,t){try{var y=this.editor.graph,z=null;if(null!=k&&0<k.length)y=this.createTemporaryGraph(y.getStylesheet()),document.body.appendChild(y.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(k).documentElement,
-!0),y),z=k;else if(null!=this.pages&&this.currentPage!=this.pages[0]){y=this.createTemporaryGraph(y.getStylesheet());var I=y.getGlobalVariable;y.setBackgroundImage=this.editor.graph.setBackgroundImage;var F=this.pages[0];this.currentPage==F?y.setBackgroundImage(this.editor.graph.backgroundImage):null!=F.viewState&&null!=F.viewState&&y.setBackgroundImage(F.viewState.backgroundImage);y.getGlobalVariable=function(C){return"page"==C?F.getName():"pagenumber"==C?1:I.apply(this,arguments)};document.body.appendChild(y.container);
-y.model.setRoot(F.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(C){try{null==z&&(z=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var Q=C.toDataURL("image/png");Q=Editor.writeGraphModelToPng(Q,"tEXt","mxfile",encodeURIComponent(z));d(Q.substring(Q.lastIndexOf(",")+1));y!=this.editor.graph&&y.container.parentNode.removeChild(y.container)}catch(S){null!=g&&g(S)}}),null,null,null,mxUtils.bind(this,function(C){null!=g&&g(C)}),null,null,m,null,y.shadowVisible,null,y,t,null,
-null,null,"diagram",null)}catch(C){null!=g&&g(C)}};EditorUi.prototype.getEmbeddedSvg=function(d,g,k,m,t,y,z,I,F,C,Q,S,V){I=null!=I?I:!0;Q=null!=Q?Q:0;z=null!=F?F:g.background;z==mxConstants.NONE&&(z=null);null==z&&"none"==g.getAdaptiveColors()&&(z="#ffffff");F=this.editor.graph.createSvgImageExport(null!=d);y=g.getSvg(z,C,Q,null,null,y,null,F,null,g.shadowVisible||S,null,V,"diagram");(g.shadowVisible||S)&&g.addSvgShadow(y,null,null,0==Q);null!=d&&y.setAttribute("content",d);null!=k&&y.setAttribute("resource",
-k);var P=mxUtils.bind(this,function(u){u=(m?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(u);null!=t&&t(u);return u});g.mathEnabled&&this.editor.addMathCss(y);if(null!=t)this.embedFonts(y,mxUtils.bind(this,function(u){I?this.editor.convertImages(u,mxUtils.bind(this,function(x){P(x)})):P(u)}));else return P(y)};EditorUi.prototype.embedFonts=function(d,g){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&this.editor.addFontCss(d,
-this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(d,k),g(d)}catch(m){g(d)}}))}catch(k){g(d)}}))};EditorUi.prototype.exportImage=function(d,g,k,m,t,y,z,I,F,C,Q,S,V){F=null!=F?F:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(u){Editor.addRetryToError(u,mxUtils.bind(this,function(){this.exportImage(d,g,k,m,t,y,z,I,F,C,Q,S,V)}));this.handleError(u)}))){var P=this.editor.graph.isSelectionEmpty();
-k=null!=k?k:P;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(u){this.spinner.stop();try{this.saveCanvas(u,t?this.getFileData(!0,null,null,null,k,I,null,null,null,null,null,d,y):null,F,null==this.pages||0==this.pages.length,Q)}catch(x){this.handleError(x)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(u){this.spinner.stop();this.handleError(u)}),null,k,d||1,g,m,null,null,y,z,C,S,V)}catch(u){this.spinner.stop(),this.handleError(u)}}};
-EditorUi.prototype.isCorsEnabledForUrl=function(d){return this.editor.isCorsEnabledForUrl(d)};EditorUi.prototype.addLocalPagesToMapping=function(d){d=null!=d?d:{};if(null!=this.pages)for(var g=0;g<this.pages.length;g++)d[this.pages[g].getId()]=this.pages[g].getId();return d};EditorUi.prototype.importXml=function(d,g,k,m,t,y,z){g=null!=g?g:0;k=null!=k?k:0;var I=[];try{var F=this.editor.graph;if(null!=d&&0<d.length){F.model.beginUpdate();try{var C=mxUtils.parseXml(d);d={};var Q=this.editor.extractGraphModel(C.documentElement,
-null!=this.pages);if(null!=Q&&"mxfile"==Q.nodeName&&null!=this.pages){var S=Q.getElementsByTagName("diagram");if(1==S.length&&!y){if(Q=Editor.parseDiagramNode(S[0]),null!=this.currentPage&&(d[S[0].getAttribute("id")]=this.currentPage.getId(),this.isBlankFile())){var V=S[0].getAttribute("name");null!=V&&""!=V&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,V))}}else if(0<S.length){y=[];var P=0;null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&(d[S[0].getAttribute("id")]=
-this.pages[0].getId(),V=S[0].getAttribute("name"),null!=V&&""!=V&&this.editor.graph.model.execute(new RenamePage(this,this.pages[0],V)),Q=Editor.parseDiagramNode(S[0]),m=!1,P=1);for(;P<S.length;P++){var u=S[P].getAttribute("id");S[P].removeAttribute("id");var x=this.updatePageRoot(new DiagramPage(S[P]));d[u]=S[P].getAttribute("id");var J=this.pages.length;null==x.getName()&&x.setName(mxResources.get("pageWithNumber",[J+1]));F.model.execute(new ChangePage(this,x,x,J,!0));y.push(x)}this.updatePageLinks(d,
-y)}}if(null!=Q&&"mxGraphModel"===Q.nodeName){I=F.importGraphModel(Q,g,k,m);if(null!=I)for(this.addLocalPagesToMapping(d),P=0;P<I.length;P++)this.updatePageLinksForCell(d,I[P]);var H=F.parseBackgroundImage(Q.getAttribute("backgroundImage"));if(null!=H&&null!=H.originalSrc){this.updateBackgroundPageLink(d,H);var K=new ChangePageSetup(this,null,H);K.ignoreColor=!0;F.model.execute(K)}}z&&F.pasteCellStyles(F.includeDescendants(I),F.defaultVertexStyle,F.defaultEdgeStyle)}finally{F.model.endUpdate()}}}catch(N){if(t)throw N;
-this.handleError(N)}return I};EditorUi.prototype.updatePageLinks=function(d,g){for(var k=0;k<g.length;k++)this.updatePageLinksForCell(d,g[k].root),null!=g[k].viewState&&this.updateBackgroundPageLink(d,g[k].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(d,g){try{if(null!=g&&Graph.isPageLink(g.originalSrc)){var k=d[g.originalSrc.substring(g.originalSrc.indexOf(",")+1)];null!=k&&(g.originalSrc="data:page/id,"+k)}}catch(m){}};EditorUi.prototype.updatePageLinksForCell=
-function(d,g){var k=document.createElement("div"),m=this.editor.graph,t=m.getLinkForCell(g);null!=t&&m.setLinkForCell(g,this.updatePageLink(d,t));if(m.isHtmlLabel(g)){k.innerHTML=Graph.sanitizeHtml(m.getLabel(g));for(var y=k.getElementsByTagName("a"),z=!1,I=0;I<y.length;I++)t=y[I].getAttribute("href"),null!=t&&(y[I].setAttribute("href",this.updatePageLink(d,t)),z=!0);z&&m.labelChanged(g,k.innerHTML)}for(I=0;I<m.model.getChildCount(g);I++)this.updatePageLinksForCell(d,m.model.getChildAt(g,I))};EditorUi.prototype.updatePageLink=
-function(d,g){if(Graph.isPageLink(g)){var k=d[g.substring(g.indexOf(",")+1)];g=null!=k?"data:page/id,"+k:null}else if("data:action/json,"==g.substring(0,17))try{var m=JSON.parse(g.substring(17));if(null!=m.actions){for(var t=0;t<m.actions.length;t++){var y=m.actions[t];if(null!=y.open&&Graph.isPageLink(y.open)){var z=y.open.substring(y.open.indexOf(",")+1);k=d[z];null!=k?y.open="data:page/id,"+k:null==this.getPageById(z)&&delete y.open}}g="data:action/json,"+JSON.stringify(m)}}catch(I){}return g};
-EditorUi.prototype.isRemoteVisioFormat=function(d){return/(\.v(sd|dx))($|\?)/i.test(d)||/(\.vs(s|x))($|\?)/i.test(d)};EditorUi.prototype.importVisio=function(d,g,k,m,t){var y=mxUtils.bind(this,function(z){this.loadingExtensions=!1;null!=k?k(z):this.handleError(z)});this.createTimeout(null,mxUtils.bind(this,function(z){m=null!=m?m:d.name;var I=mxUtils.bind(this,function(C){z.clear()&&y(C)}),F=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var C=this.isRemoteVisioFormat(m);
-try{var Q=m.lastIndexOf(".");if(0<=Q&&Q<m.length)m.substring(Q+1).toUpperCase();else{var S=m.lastIndexOf("/");0<=S&&S<m.length&&(m=m.substring(S+1))}}catch(P){}if(C)if(null==VSD_CONVERT_URL||this.isOffline())I({message:"draw.io"!=this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{C=new FormData;C.append("file1",d,m);var V=new XMLHttpRequest;V.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(m)?"?stencil=1":""));V.responseType="blob";this.addRemoteServiceSecurityCheck(V);
-null!=t&&V.setRequestHeader("x-convert-custom",t);V.onreadystatechange=mxUtils.bind(this,function(){if(4==V.readyState&&z.clear())if(200<=V.status&&299>=V.status)try{var P=V.response;if("text/xml"==P.type){var u=new FileReader;u.onload=mxUtils.bind(this,function(x){try{g(x.target.result)}catch(J){I({message:mxResources.get("errorLoadingFile")})}});u.readAsText(P)}else this.doImportVisio(P,g,I,m)}catch(x){I(x)}else try{""==V.responseType||"text"==V.responseType?I({message:V.responseText}):(u=new FileReader,
-u.onload=function(){try{I({message:JSON.parse(u.result).Message})}catch(x){I(x)}},u.readAsText(V.response))}catch(x){I({})}});V.send(C)}else if(z.clear())try{this.doImportVisio(d,g,I,m)}catch(P){I(P)}}else I({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?F():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",F,null,null,null,I))}),y)};EditorUi.prototype.importGraphML=function(d,g,k){var m=
-mxUtils.bind(this,function(t){this.loadingExtensions=!1;null!=k?k(t):this.handleError(t)});this.createTimeout(null,mxUtils.bind(this,function(t){var y=mxUtils.bind(this,function(I){t.clear()&&m(I)}),z=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(t.clear())if(this.doImportGraphML)try{this.doImportGraphML(d,g,m)}catch(I){y(I)}else y({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?z():(this.loadingExtensions=!0,
-mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,y))}),m)};EditorUi.prototype.exportVisio=function(d){if(this.spinner.spin(document.body,mxResources.get("loading"))){var g=mxUtils.bind(this,function(k){this.loadingExtensions=!1;this.handleError(k)});this.vsdxExportEnabled()?this.createTimeout(null,mxUtils.bind(this,function(k){var m=mxUtils.bind(this,function(y){k.clear()&&g(y)}),t=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(k.clear())if("undefined"!==typeof VsdxExport)try{this.spinner.stop(),
-(new VsdxExport(this)).exportCurrentDiagrams(d)||m({message:mxResources.get("unknownError")})}catch(y){m(y)}else m({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(t,0):(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",t,null,null,null,m))}),g):g({message:mxResources.get("serviceUnavailableOrBlocked")})}};EditorUi.prototype.convertLucidChart=function(d,g,k){var m=
-mxUtils.bind(this,function(t){this.loadingExtensions=!1;null!=k?k(t):this.handleError(t)});this.createTimeout(null,mxUtils.bind(this,function(t){var y=mxUtils.bind(this,function(I){t.clear()&&m(I)}),z=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(t.clear())if("undefined"!==typeof window.LucidImporter)try{var I=JSON.parse(d);g(LucidImporter.importState(I));try{if(null!=window.console&&"1"==urlParams.test){var F=[(new Date).toISOString(),"convertLucidChart",I];null!=I.state&&F.push(JSON.parse(I.state));
-if(null!=I.svgThumbs)for(var C=0;C<I.svgThumbs.length;C++)F.push(Editor.createSvgDataUri(I.svgThumbs[C]));null!=I.thumb&&F.push(I.thumb);console.log.apply(console,F)}}catch(Q){}}catch(Q){null!=window.console&&console.error(Q),y(Q)}else y({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof window.LucidImporter||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(z,0):(this.loadingExtensions=!0,"1"==urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){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",z,null,null,null,y)},null,null,null,y)},null,null,null,y)},null,null,null,y)},null,null,null,y):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,y))}),m)};EditorUi.prototype.createMermaidXml=function(d,g,k,m,t,y){var z=new Graph(document.createElement("div"));k=z.insertVertex(null,null,null,0,0,m,t,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+
-k+";");z.setAttributeForCell(k,"mermaidData",JSON.stringify({data:d,config:g},null,2));null!=y&&z.setAttributeForCell(k,"templatePrompt",y);d=(new mxCodec).encode(z.getModel());return mxUtils.getXml(d)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(d,g,k){var m=0,t=function(){for(var z=document.querySelectorAll('div[id*="dgeMermaidOutput-"]'),I=0;I<z.length;I++)null!=z[I].parentNode&&z[I].parentNode.removeChild(z[I])},y=mxUtils.bind(this,function(){this.createTimeout(1E4,mxUtils.bind(this,
-function(z){var I=new mxXmlRequest("https://www.draw.io/generate/v2",d,"POST"),F=mxUtils.bind(this,function(C){z.clear()&&(t(),k(C))});I.send(mxUtils.bind(this,function(C){if(z.isAlive())if(200<=C.getStatus()&&299>=C.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var S=mxUtils.trim(C.getText());this.generateMermaidImage(S,null,mxUtils.bind(this,function(V,P,u){this.tryAndHandle(mxUtils.bind(this,function(){z.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",
-d,"\nresult:",S),t(),g(S,V,P,u))}),F)}),F,mxUtils.bind(this,function(V){3>m++?z.clear()&&y():F(V)}))}),F);else{var Q={message:mxResources.get("error")+" "+C.getStatus()};try{Q=JSON.parse(C.getText()),Q=Q.error}catch(S){}F(Q)}}),F)}),k)});y()};EditorUi.prototype.extractMermaidDeclaration=function(d){d=mxUtils.trim(d);"o\n\n"==d.substring(0,3)&&(d=d.substring(3));var g=d.split("```");g=1<g.length?g:d.split("<pre>");g=1<g.length?g:d.split("~~~");g=1<g.length?g:d.split("%%");g=1<g.length?g:d.split("(Begins)");
-d=mxUtils.trim(1>=g.length?d:g[1]);g=d.split("\n");var k=1<g.length?g[1]:null;if(null!=k){var m=k.indexOf("-");0<m&&(k=k.substring(0,m))}if(0<g.length&&"mermaid"==mxUtils.trim(g[0])||null!=k&&0<=mxUtils.indexOf(EditorUi.mermaidDiagramTypes,k))g.shift(),d=mxUtils.trim(g.join("\n")),g=d.split("\n");k=g[0].split(" ")[0].replace(/:$/,"");m=k.indexOf("-");0<m&&(k=k.substring(0,m));try{"mindmap"==k&&2<g.length&&(d=extractMermaidMindmap(g))}catch(t){}0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,k)&&(d=
-null);return d};EditorUi.prototype.generateMermaidImage=function(d,g,k,m,t){var y=mxUtils.bind(this,function(I){this.loadingMermaid=!1;null!=m?m(I):this.handleError(I)}),z=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;g=null!=g?g:mxUtils.clone(EditorUi.defaultMermaidConfig);g.securityLevel="strict";g.startOnLoad=!1;g.maxTextSize=9E5;"undefined"!==typeof mxMermaidToDrawio&&g.flowchart&&0<=d.indexOf("$$")&&(g.flowchart.htmlLabels=!0,mxMermaidToDrawio.htmlLabels=!0);Editor.isDarkMode()&&(g.theme=
-"dark");var I=mxUtils.bind(this,function(F){try{if(mxClient.IS_IE||mxClient.IS_IE11)F=F.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var C=mxUtils.parseXml(F).getElementsByTagName("svg");if(0<C.length&&"error"!=C[0].getAttribute("aria-roledescription")){var Q=parseFloat(C[0].getAttribute("width")),S=parseFloat(C[0].getAttribute("height"));if(isNaN(Q)||isNaN(S))try{var V=C[0].getAttribute("viewBox").split(/\s+/);
-Q=parseFloat(V[2]);S=parseFloat(V[3])}catch(P){Q=Q||100,S=S||100}k(this.convertDataUri(Editor.createSvgDataUri(F)),Q,S)}else null!=t?t():m({message:mxResources.get("invalidInput")})}catch(P){m(P)}});mermaid.mermaidAPI.initialize(g);mermaid.mermaidAPI.render("geMermaidOutput-"+(new Date).getTime(),d).then(function(F){I(F.svg)}).catch(function(F){null!=t?t(F):m(F)})}catch(F){m(F)}});"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(z,0):(this.loadingMermaid=!0,
-"1"==urlParams.dev?("1"==urlParams.mermaidToDrawioTest&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(I){this.importXml(I,null,null,null,null,null,!0)})),mxscript("js/mermaid/mermaid.min.js",z,null,null,null,y)):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,y))};EditorUi.prototype.generatePlantUmlImage=function(d,g,k,m){function t(I,F,C){c1=I>>2;c2=(I&3)<<4|F>>4;c3=(F&15)<<2|C>>6;c4=C&63;r="";r+=y(c1&63);r+=y(c2&63);r+=y(c3&63);return r+=y(c4&63)}function y(I){if(10>
-I)return String.fromCharCode(48+I);I-=10;if(26>I)return String.fromCharCode(65+I);I-=26;if(26>I)return String.fromCharCode(97+I);I-=26;return 0==I?"-":1==I?"_":"?"}var z=new XMLHttpRequest;z.open("GET",("txt"==g?PLANT_URL+"/txt/":"png"==g?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(I){r="";for(i=0;i<I.length;i+=3)r=i+2==I.length?r+t(I.charCodeAt(i),I.charCodeAt(i+1),0):i+1==I.length?r+t(I.charCodeAt(i),0,0):r+t(I.charCodeAt(i),I.charCodeAt(i+1),I.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(d))),
-!0);"txt"!=g&&(z.responseType="blob");z.onload=function(I){if(200<=this.status&&300>this.status)if("txt"==g)k(this.response);else{var F=new FileReader;F.readAsDataURL(this.response);F.onloadend=function(C){var Q=new Image;Q.onload=function(){try{var S=Q.width,V=Q.height;if(0==S&&0==V){var P=F.result,u=P.indexOf(","),x=decodeURIComponent(escape(atob(P.substring(u+1)))),J=mxUtils.parseXml(x).getElementsByTagName("svg");0<J.length&&(S=parseFloat(J[0].getAttribute("width")),V=parseFloat(J[0].getAttribute("height")))}k(F.result,
-S,V)}catch(H){m(H)}};Q.src=F.result};F.onerror=function(C){m(C)}}else m(I)};z.onerror=function(I){m(I)};z.send()};EditorUi.prototype.insertAsPreText=function(d,g,k){var m=this.editor.graph,t=null;m.getModel().beginUpdate();try{t=m.insertVertex(null,null,"<pre>"+d+"</pre>",g,k,1,1,"text;html=1;align=left;verticalAlign=top;"),m.updateCellSize(t,!0)}finally{m.getModel().endUpdate()}return t};EditorUi.prototype.insertTextAt=function(d,g,k,m,t,y,z,I){y=null!=y?y:!0;z=null!=z?z:!0;if(null!=d)if(Graph.fileSupport&&
-(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d))this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(d.replace(/\s+/g," "),mxUtils.bind(this,function(V){4==V.readyState&&200<=V.status&&299>=V.status&&this.editor.graph.setSelectionCells(this.insertTextAt(V.responseText,g,k,!0))}));else if("data:"==d.substring(0,5)||!this.isOffline()&&(t||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(d))){var F=this.editor.graph;if("data:application/pdf;base64,"==
-d.substring(0,28)){var C=Editor.extractGraphModelFromPdf(d);if(null!=C&&0<C.length)return this.importXml(C,g,k,y,!0,I)}if(Editor.isPngDataUrl(d)&&(C=Editor.extractGraphModelFromPng(d),null!=C&&0<C.length))return this.importXml(C,g,k,y,!0,I);if("data:image/svg+xml;"==d.substring(0,19))try{C=null;"data:image/svg+xml;base64,"==d.substring(0,26)?(C=d.substring(d.indexOf(",")+1),C=window.atob&&!mxClient.IS_SF?atob(C):Base64.decode(C,!0)):C=decodeURIComponent(d.substring(d.indexOf(",")+1));var Q=this.importXml(C,
-g,k,y,!0,I);if(0<Q.length)return Q}catch(V){}this.loadImage(d,mxUtils.bind(this,function(V){if("data:"==d.substring(0,5))this.resizeImage(V,d,mxUtils.bind(this,function(x,J,H){F.setSelectionCell(F.insertVertex(null,null,"",F.snap(g),F.snap(k),J,H,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(x)+";"))}),z,this.maxImageSize);else{var P=Math.min(1,Math.min(this.maxImageSize/V.width,this.maxImageSize/V.height)),
-u=Math.round(V.width*P);V=Math.round(V.height*P);F.setSelectionCell(F.insertVertex(null,null,"",F.snap(g),F.snap(k),u,V,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+d+";"))}}),mxUtils.bind(this,function(){var V=null;F.getModel().beginUpdate();try{V=F.insertVertex(F.getDefaultParent(),null,d,F.snap(g),F.snap(k),1,1,"text;"+(m?"html=1;":"")),F.updateCellSize(V),F.fireEvent(new mxEventObject("textInserted","cells",[V]))}finally{F.getModel().endUpdate()}F.setSelectionCell(V)}))}else{d=
-Graph.zapGremlins(mxUtils.trim(d));if(this.isCompatibleString(d))return this.importXml(d,g,k,y,null,I);if(0<d.length)if(this.isLucidChartData(d))this.convertLucidChart(d,mxUtils.bind(this,function(V){this.editor.graph.setSelectionCells(this.importXml(V,g,k,y,null,I))}),mxUtils.bind(this,function(V){this.handleError(V)}));else{F=this.editor.graph;t=null;F.getModel().beginUpdate();try{t=F.insertVertex(F.getDefaultParent(),null,"",F.snap(g),F.snap(k),1,1,"text;whiteSpace=wrap;"+(m?"html=1;":""));F.fireEvent(new mxEventObject("textInserted",
-"cells",[t]));m&&(d=F.sanitizeHtml(d));d.length>this.maxTextBytes&&(d=d.substring(0,this.maxTextBytes)+"...");t.value=d;F.updateCellSize(t);if(0<this.maxTextWidth&&t.geometry.width>this.maxTextWidth){var S=F.getPreferredSizeForCell(t,this.maxTextWidth);t.geometry.width=S.width;t.geometry.height=S.height}Graph.isLink(t.value)&&F.setLinkForCell(t,t.value);t.geometry.width+=F.gridSize;t.geometry.height+=F.gridSize}finally{F.getModel().endUpdate()}return[t]}}return[]};EditorUi.prototype.formatFileSize=
+d;else if("mxfile"==d.nodeName){var m=d.getElementsByTagName("diagram");if(0<m.length){k=m[0];var u=g.getGlobalVariable;g.getGlobalVariable=function(x){return"page"==x?k.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==x?1:u.apply(this,arguments)}}}null!=k&&(d=Editor.parseDiagramNode(k))}m=this.editor.graph;try{this.editor.graph=g,this.editor.setGraphXml(d)}catch(x){}finally{this.editor.graph=m}return d};EditorUi.prototype.getSvgFileProperties=function(d){return this.getPngFileProperties(d)};
+EditorUi.prototype.getPngFileProperties=function(d){var g=1,k=0;if(null!=d){if(d.hasAttribute("scale")){var m=parseFloat(d.getAttribute("scale"));!isNaN(m)&&0<m&&(g=m)}d.hasAttribute("border")&&(m=parseInt(d.getAttribute("border")),!isNaN(m)&&0<m&&(k=m))}return{scale:g,border:k}};EditorUi.prototype.getEmbeddedPng=function(d,g,k,m,u){try{var x=this.editor.graph,A=null;if(null!=k&&0<k.length)x=this.createTemporaryGraph(x.getStylesheet()),document.body.appendChild(x.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(k).documentElement,
+!0),x),A=k;else if(null!=this.pages&&this.currentPage!=this.pages[0]){x=this.createTemporaryGraph(x.getStylesheet());var I=x.getGlobalVariable;x.setBackgroundImage=this.editor.graph.setBackgroundImage;var F=this.pages[0];this.currentPage==F?x.setBackgroundImage(this.editor.graph.backgroundImage):null!=F.viewState&&null!=F.viewState&&x.setBackgroundImage(F.viewState.backgroundImage);x.getGlobalVariable=function(C){return"page"==C?F.getName():"pagenumber"==C?1:I.apply(this,arguments)};document.body.appendChild(x.container);
+x.model.setRoot(F.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(C){try{null==A&&(A=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var P=C.toDataURL("image/png");P=Editor.writeGraphModelToPng(P,"tEXt","mxfile",encodeURIComponent(A));d(P.substring(P.lastIndexOf(",")+1));x!=this.editor.graph&&x.container.parentNode.removeChild(x.container)}catch(R){null!=g&&g(R)}}),null,null,null,mxUtils.bind(this,function(C){null!=g&&g(C)}),null,null,m,null,x.shadowVisible,null,x,u,null,
+null,null,"diagram",null)}catch(C){null!=g&&g(C)}};EditorUi.prototype.getEmbeddedSvg=function(d,g,k,m,u,x,A,I,F,C,P,R,U){I=null!=I?I:!0;P=null!=P?P:0;A=null!=F?F:g.background;A==mxConstants.NONE&&(A=null);null==A&&"none"==g.getAdaptiveColors()&&(A="#ffffff");F=this.editor.graph.createSvgImageExport(null!=d);x=g.getSvg(A,C,P,null,null,x,null,F,null,g.shadowVisible||R,null,U,"diagram");(g.shadowVisible||R)&&g.addSvgShadow(x,null,null,0==P);null!=d&&x.setAttribute("content",d);null!=k&&x.setAttribute("resource",
+k);var O=mxUtils.bind(this,function(V){V=(m?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(V);null!=u&&u(V);return V});g.mathEnabled&&this.editor.addMathCss(x);if(null!=u)this.embedFonts(x,mxUtils.bind(this,function(V){I?this.editor.convertImages(V,mxUtils.bind(this,function(q){O(q)})):O(V)}));else return O(x)};EditorUi.prototype.embedFonts=function(d,g){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&this.editor.addFontCss(d,
+this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(k){try{null!=k&&this.editor.addFontCss(d,k),g(d)}catch(m){g(d)}}))}catch(k){g(d)}}))};EditorUi.prototype.exportImage=function(d,g,k,m,u,x,A,I,F,C,P,R,U){F=null!=F?F:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(V){Editor.addRetryToError(V,mxUtils.bind(this,function(){this.exportImage(d,g,k,m,u,x,A,I,F,C,P,R,U)}));this.handleError(V)}))){var O=this.editor.graph.isSelectionEmpty();
+k=null!=k?k:O;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(V){this.spinner.stop();try{this.saveCanvas(V,u?this.getFileData(!0,null,null,null,k,I,null,null,null,null,null,d,x):null,F,null==this.pages||0==this.pages.length,P)}catch(q){this.handleError(q)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(V){this.spinner.stop();this.handleError(V)}),null,k,d||1,g,m,null,null,x,A,C,R,U)}catch(V){this.spinner.stop(),this.handleError(V)}}};
+EditorUi.prototype.isCorsEnabledForUrl=function(d){return this.editor.isCorsEnabledForUrl(d)};EditorUi.prototype.addLocalPagesToMapping=function(d){d=null!=d?d:{};if(null!=this.pages)for(var g=0;g<this.pages.length;g++)d[this.pages[g].getId()]=this.pages[g].getId();return d};EditorUi.prototype.importXml=function(d,g,k,m,u,x,A){g=null!=g?g:0;k=null!=k?k:0;var I=[];try{var F=this.editor.graph;if(null!=d&&0<d.length){F.model.beginUpdate();try{var C=mxUtils.parseXml(d);d={};var P=this.editor.extractGraphModel(C.documentElement,
+null!=this.pages);if(null!=P&&"mxfile"==P.nodeName&&null!=this.pages){var R=P.getElementsByTagName("diagram");if(1==R.length&&!x){if(P=Editor.parseDiagramNode(R[0]),null!=this.currentPage&&(d[R[0].getAttribute("id")]=this.currentPage.getId(),this.isBlankFile())){var U=R[0].getAttribute("name");null!=U&&""!=U&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,U))}}else if(0<R.length){x=[];var O=0;null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&(d[R[0].getAttribute("id")]=
+this.pages[0].getId(),U=R[0].getAttribute("name"),null!=U&&""!=U&&this.editor.graph.model.execute(new RenamePage(this,this.pages[0],U)),P=Editor.parseDiagramNode(R[0]),m=!1,O=1);for(;O<R.length;O++){var V=R[O].getAttribute("id");R[O].removeAttribute("id");var q=this.updatePageRoot(new DiagramPage(R[O]));d[V]=R[O].getAttribute("id");var y=this.pages.length;null==q.getName()&&q.setName(mxResources.get("pageWithNumber",[y+1]));F.model.execute(new ChangePage(this,q,q,y,!0));x.push(q)}this.updatePageLinks(d,
+x)}}if(null!=P&&"mxGraphModel"===P.nodeName){I=F.importGraphModel(P,g,k,m);if(null!=I)for(this.addLocalPagesToMapping(d),O=0;O<I.length;O++)this.updatePageLinksForCell(d,I[O]);var D=F.parseBackgroundImage(P.getAttribute("backgroundImage"));if(null!=D&&null!=D.originalSrc){this.updateBackgroundPageLink(d,D);var J=new ChangePageSetup(this,null,D);J.ignoreColor=!0;F.model.execute(J)}}A&&F.pasteCellStyles(F.includeDescendants(I),F.defaultVertexStyle,F.defaultEdgeStyle)}finally{F.model.endUpdate()}}}catch(L){if(u)throw L;
+this.handleError(L)}return I};EditorUi.prototype.updatePageLinks=function(d,g){for(var k=0;k<g.length;k++)this.updatePageLinksForCell(d,g[k].root),null!=g[k].viewState&&this.updateBackgroundPageLink(d,g[k].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(d,g){try{if(null!=g&&Graph.isPageLink(g.originalSrc)){var k=d[g.originalSrc.substring(g.originalSrc.indexOf(",")+1)];null!=k&&(g.originalSrc="data:page/id,"+k)}}catch(m){}};EditorUi.prototype.updatePageLinksForCell=
+function(d,g){var k=document.createElement("div"),m=this.editor.graph,u=m.getLinkForCell(g);null!=u&&m.setLinkForCell(g,this.updatePageLink(d,u));if(m.isHtmlLabel(g)){k.innerHTML=Graph.sanitizeHtml(m.getLabel(g));for(var x=k.getElementsByTagName("a"),A=!1,I=0;I<x.length;I++)u=x[I].getAttribute("href"),null!=u&&(x[I].setAttribute("href",this.updatePageLink(d,u)),A=!0);A&&m.labelChanged(g,k.innerHTML)}for(I=0;I<m.model.getChildCount(g);I++)this.updatePageLinksForCell(d,m.model.getChildAt(g,I))};EditorUi.prototype.updatePageLink=
+function(d,g){if(Graph.isPageLink(g)){var k=d[g.substring(g.indexOf(",")+1)];g=null!=k?"data:page/id,"+k:null}else if("data:action/json,"==g.substring(0,17))try{var m=JSON.parse(g.substring(17));if(null!=m.actions){for(var u=0;u<m.actions.length;u++){var x=m.actions[u];if(null!=x.open&&Graph.isPageLink(x.open)){var A=x.open.substring(x.open.indexOf(",")+1);k=d[A];null!=k?x.open="data:page/id,"+k:null==this.getPageById(A)&&delete x.open}}g="data:action/json,"+JSON.stringify(m)}}catch(I){}return g};
+EditorUi.prototype.isRemoteVisioFormat=function(d){return/(\.v(sd|dx))($|\?)/i.test(d)||/(\.vs(s|x))($|\?)/i.test(d)};EditorUi.prototype.importVisio=function(d,g,k,m,u){var x=mxUtils.bind(this,function(A){this.loadingExtensions=!1;null!=k?k(A):this.handleError(A)});this.createTimeout(null,mxUtils.bind(this,function(A){m=null!=m?m:d.name;var I=mxUtils.bind(this,function(C){A.clear()&&x(C)}),F=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var C=this.isRemoteVisioFormat(m);
+try{var P=m.lastIndexOf(".");if(0<=P&&P<m.length)m.substring(P+1).toUpperCase();else{var R=m.lastIndexOf("/");0<=R&&R<m.length&&(m=m.substring(R+1))}}catch(O){}if(C)if(null==VSD_CONVERT_URL||this.isOffline())I({message:"draw.io"!=this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{C=new FormData;C.append("file1",d,m);var U=new XMLHttpRequest;U.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(m)?"?stencil=1":""));U.responseType="blob";this.addRemoteServiceSecurityCheck(U);
+null!=u&&U.setRequestHeader("x-convert-custom",u);U.onreadystatechange=mxUtils.bind(this,function(){if(4==U.readyState&&A.clear())if(200<=U.status&&299>=U.status)try{var O=U.response;if("text/xml"==O.type){var V=new FileReader;V.onload=mxUtils.bind(this,function(q){try{g(q.target.result)}catch(y){I({message:mxResources.get("errorLoadingFile")})}});V.readAsText(O)}else this.doImportVisio(O,g,I,m)}catch(q){I(q)}else try{""==U.responseType||"text"==U.responseType?I({message:U.responseText}):(V=new FileReader,
+V.onload=function(){try{I({message:JSON.parse(V.result).Message})}catch(q){I(q)}},V.readAsText(U.response))}catch(q){I({})}});U.send(C)}else if(A.clear())try{this.doImportVisio(d,g,I,m)}catch(O){I(O)}}else I({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?F():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",F,null,null,null,I))}),x)};EditorUi.prototype.importGraphML=function(d,g,k){var m=
+mxUtils.bind(this,function(u){this.loadingExtensions=!1;null!=k?k(u):this.handleError(u)});this.createTimeout(null,mxUtils.bind(this,function(u){var x=mxUtils.bind(this,function(I){u.clear()&&m(I)}),A=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(u.clear())if(this.doImportGraphML)try{this.doImportGraphML(d,g,m)}catch(I){x(I)}else x({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?A():(this.loadingExtensions=!0,
+mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",A,null,null,null,x))}),m)};EditorUi.prototype.exportVisio=function(d){if(this.spinner.spin(document.body,mxResources.get("loading"))){var g=mxUtils.bind(this,function(k){this.loadingExtensions=!1;this.handleError(k)});this.vsdxExportEnabled()?this.createTimeout(null,mxUtils.bind(this,function(k){var m=mxUtils.bind(this,function(x){k.clear()&&g(x)}),u=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(k.clear())if("undefined"!==typeof VsdxExport)try{this.spinner.stop(),
+(new VsdxExport(this)).exportCurrentDiagrams(d)||m({message:mxResources.get("unknownError")})}catch(x){m(x)}else m({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(u,0):(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",u,null,null,null,m))}),g):g({message:mxResources.get("serviceUnavailableOrBlocked")})}};EditorUi.prototype.convertLucidChart=function(d,g,k){var m=
+mxUtils.bind(this,function(u){this.loadingExtensions=!1;null!=k?k(u):this.handleError(u)});this.createTimeout(null,mxUtils.bind(this,function(u){var x=mxUtils.bind(this,function(I){u.clear()&&m(I)}),A=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(u.clear())if("undefined"!==typeof window.LucidImporter)try{var I=JSON.parse(d);g(LucidImporter.importState(I));try{if(null!=window.console&&"1"==urlParams.test){var F=[(new Date).toISOString(),"convertLucidChart",I];null!=I.state&&F.push(JSON.parse(I.state));
+if(null!=I.svgThumbs)for(var C=0;C<I.svgThumbs.length;C++)F.push(Editor.createSvgDataUri(I.svgThumbs[C]));null!=I.thumb&&F.push(I.thumb);console.log.apply(console,F)}}catch(P){}}catch(P){null!=window.console&&console.error(P),x(P)}else x({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof window.LucidImporter||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(A,0):(this.loadingExtensions=!0,"1"==urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){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",A,null,null,null,x)},null,null,null,x)},null,null,null,x)},null,null,null,x)},null,null,null,x):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",A,null,null,null,x))}),m)};EditorUi.prototype.createMermaidXml=function(d,g,k,m,u,x){var A=new Graph(document.createElement("div"));k=A.insertVertex(null,null,null,0,0,m,u,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+
+k+";");A.setAttributeForCell(k,"mermaidData",JSON.stringify({data:d,config:g},null,2));null!=x&&A.setAttributeForCell(k,"templatePrompt",x);d=(new mxCodec).encode(A.getModel());return mxUtils.getXml(d)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(d,g,k){var m=0,u=function(){for(var A=document.querySelectorAll('div[id*="dgeMermaidOutput-"]'),I=0;I<A.length;I++)null!=A[I].parentNode&&A[I].parentNode.removeChild(A[I])},x=mxUtils.bind(this,function(){this.createTimeout(3E4,mxUtils.bind(this,
+function(A){var I=new mxXmlRequest("https://www.draw.io/generate/v2",d,"POST"),F=mxUtils.bind(this,function(C){A.clear()&&(u(),k(C))});I.send(mxUtils.bind(this,function(C){if(A.isAlive())if(200<=C.getStatus()&&299>=C.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var R=mxUtils.trim(C.getText());this.generateMermaidImage(R,null,mxUtils.bind(this,function(U,O,V){this.tryAndHandle(mxUtils.bind(this,function(){A.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"prompt",
+[d],"result",[R]),u(),g(R,U,O,V))}),F)}),F,mxUtils.bind(this,function(U){3>m++?A.clear()&&x():F(U)}))}),F);else{var P={message:mxResources.get("error")+" "+C.getStatus()};try{P=JSON.parse(C.getText()),P=P.error}catch(R){}F(P)}}),F)}),k)});x()};EditorUi.prototype.extractMermaidDeclaration=function(d){d=mxUtils.trim(d);"o\n\n"==d.substring(0,3)&&(d=d.substring(3));var g=d.split("```");g=1<g.length?g:d.split("<pre>");g=1<g.length?g:d.split("~~~");g=1<g.length?g:d.split("%%");g=1<g.length?g:d.split("(Begins)");
+d=mxUtils.trim(1>=g.length?d:g[1]);g=d.split("\n");var k=1<g.length?g[1]:null;if(null!=k){var m=k.indexOf("-");0<m&&(k=k.substring(0,m))}if(0<g.length&&"mermaid"==mxUtils.trim(g[0])||null!=k&&0<=mxUtils.indexOf(EditorUi.mermaidDiagramTypes,k))g.shift(),d=mxUtils.trim(g.join("\n")),g=d.split("\n");k=g[0].split(" ")[0].replace(/:$/,"");m=k.indexOf("-");0<m&&(k=k.substring(0,m));try{"mindmap"==k&&2<g.length&&(d=extractMermaidMindmap(g))}catch(u){}0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,k)&&(d=
+null);return d};EditorUi.prototype.generateMermaidImage=function(d,g,k,m,u){var x=mxUtils.bind(this,function(I){this.loadingMermaid=!1;null!=m?m(I):this.handleError(I)}),A=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;g=null!=g?g:mxUtils.clone(EditorUi.defaultMermaidConfig);g.securityLevel="strict";g.startOnLoad=!1;g.maxTextSize=9E5;"undefined"!==typeof mxMermaidToDrawio&&g.flowchart&&0<=d.indexOf("$$")&&(g.flowchart.htmlLabels=!0,mxMermaidToDrawio.htmlLabels=!0);Editor.isDarkMode()&&(g.theme=
+"dark");var I=mxUtils.bind(this,function(F){try{if(mxClient.IS_IE||mxClient.IS_IE11)F=F.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var C=mxUtils.parseXml(F).getElementsByTagName("svg");if(0<C.length&&"error"!=C[0].getAttribute("aria-roledescription")){var P=parseFloat(C[0].getAttribute("width")),R=parseFloat(C[0].getAttribute("height"));if(isNaN(P)||isNaN(R))try{var U=C[0].getAttribute("viewBox").split(/\s+/);
+P=parseFloat(U[2]);R=parseFloat(U[3])}catch(O){P=P||100,R=R||100}k(this.convertDataUri(Editor.createSvgDataUri(F)),P,R)}else null!=u?u():m({message:mxResources.get("invalidInput")})}catch(O){m(O)}});mermaid.mermaidAPI.initialize(g);mermaid.mermaidAPI.render("geMermaidOutput-"+(new Date).getTime(),d).then(function(F){I(F.svg)}).catch(function(F){null!=u?u(F):m(F)})}catch(F){m(F)}});"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(A,0):(this.loadingMermaid=!0,
+"1"==urlParams.dev?("1"==urlParams.mermaidToDrawioTest&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(I){this.importXml(I,null,null,null,null,null,!0)})),mxscript("js/mermaid/mermaid.min.js",A,null,null,null,x)):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",A,null,null,null,x))};EditorUi.prototype.generatePlantUmlImage=function(d,g,k,m){function u(I,F,C){c1=I>>2;c2=(I&3)<<4|F>>4;c3=(F&15)<<2|C>>6;c4=C&63;r="";r+=x(c1&63);r+=x(c2&63);r+=x(c3&63);return r+=x(c4&63)}function x(I){if(10>
+I)return String.fromCharCode(48+I);I-=10;if(26>I)return String.fromCharCode(65+I);I-=26;if(26>I)return String.fromCharCode(97+I);I-=26;return 0==I?"-":1==I?"_":"?"}var A=new XMLHttpRequest;A.open("GET",("txt"==g?PLANT_URL+"/txt/":"png"==g?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(I){r="";for(i=0;i<I.length;i+=3)r=i+2==I.length?r+u(I.charCodeAt(i),I.charCodeAt(i+1),0):i+1==I.length?r+u(I.charCodeAt(i),0,0):r+u(I.charCodeAt(i),I.charCodeAt(i+1),I.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(d))),
+!0);"txt"!=g&&(A.responseType="blob");A.onload=function(I){if(200<=this.status&&300>this.status)if("txt"==g)k(this.response);else{var F=new FileReader;F.readAsDataURL(this.response);F.onloadend=function(C){var P=new Image;P.onload=function(){try{var R=P.width,U=P.height;if(0==R&&0==U){var O=F.result,V=O.indexOf(","),q=decodeURIComponent(escape(atob(O.substring(V+1)))),y=mxUtils.parseXml(q).getElementsByTagName("svg");0<y.length&&(R=parseFloat(y[0].getAttribute("width")),U=parseFloat(y[0].getAttribute("height")))}k(F.result,
+R,U)}catch(D){m(D)}};P.src=F.result};F.onerror=function(C){m(C)}}else m(I)};A.onerror=function(I){m(I)};A.send()};EditorUi.prototype.insertAsPreText=function(d,g,k){var m=this.editor.graph,u=null;m.getModel().beginUpdate();try{u=m.insertVertex(null,null,"<pre>"+d+"</pre>",g,k,1,1,"text;html=1;align=left;verticalAlign=top;"),m.updateCellSize(u,!0)}finally{m.getModel().endUpdate()}return u};EditorUi.prototype.insertTextAt=function(d,g,k,m,u,x,A,I){x=null!=x?x:!0;A=null!=A?A:!0;if(null!=d)if(Graph.fileSupport&&
+(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d))this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(d.replace(/\s+/g," "),mxUtils.bind(this,function(U){4==U.readyState&&200<=U.status&&299>=U.status&&this.editor.graph.setSelectionCells(this.insertTextAt(U.responseText,g,k,!0))}));else if("data:"==d.substring(0,5)||!this.isOffline()&&(u||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(d))){var F=this.editor.graph;if("data:application/pdf;base64,"==
+d.substring(0,28)){var C=Editor.extractGraphModelFromPdf(d);if(null!=C&&0<C.length)return this.importXml(C,g,k,x,!0,I)}if(Editor.isPngDataUrl(d)&&(C=Editor.extractGraphModelFromPng(d),null!=C&&0<C.length))return this.importXml(C,g,k,x,!0,I);if("data:image/svg+xml;"==d.substring(0,19))try{C=null;"data:image/svg+xml;base64,"==d.substring(0,26)?(C=d.substring(d.indexOf(",")+1),C=window.atob&&!mxClient.IS_SF?atob(C):Base64.decode(C,!0)):C=decodeURIComponent(d.substring(d.indexOf(",")+1));var P=this.importXml(C,
+g,k,x,!0,I);if(0<P.length)return P}catch(U){}this.loadImage(d,mxUtils.bind(this,function(U){if("data:"==d.substring(0,5))this.resizeImage(U,d,mxUtils.bind(this,function(q,y,D){F.setSelectionCell(F.insertVertex(null,null,"",F.snap(g),F.snap(k),y,D,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(q)+";"))}),A,this.maxImageSize);else{var O=Math.min(1,Math.min(this.maxImageSize/U.width,this.maxImageSize/U.height)),
+V=Math.round(U.width*O);U=Math.round(U.height*O);F.setSelectionCell(F.insertVertex(null,null,"",F.snap(g),F.snap(k),V,U,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+d+";"))}}),mxUtils.bind(this,function(){var U=null;F.getModel().beginUpdate();try{U=F.insertVertex(F.getDefaultParent(),null,d,F.snap(g),F.snap(k),1,1,"text;"+(m?"html=1;":"")),F.updateCellSize(U),F.fireEvent(new mxEventObject("textInserted","cells",[U]))}finally{F.getModel().endUpdate()}F.setSelectionCell(U)}))}else{d=
+Graph.zapGremlins(mxUtils.trim(d));if(this.isCompatibleString(d))return this.importXml(d,g,k,x,null,I);if(0<d.length)if(this.isLucidChartData(d))this.convertLucidChart(d,mxUtils.bind(this,function(U){this.editor.graph.setSelectionCells(this.importXml(U,g,k,x,null,I))}),mxUtils.bind(this,function(U){this.handleError(U)}));else{F=this.editor.graph;u=null;F.getModel().beginUpdate();try{u=F.insertVertex(F.getDefaultParent(),null,"",F.snap(g),F.snap(k),1,1,"text;whiteSpace=wrap;"+(m?"html=1;":""));F.fireEvent(new mxEventObject("textInserted",
+"cells",[u]));m&&(d=F.sanitizeHtml(d));d.length>this.maxTextBytes&&(d=d.substring(0,this.maxTextBytes)+"...");u.value=d;F.updateCellSize(u);if(0<this.maxTextWidth&&u.geometry.width>this.maxTextWidth){var R=F.getPreferredSizeForCell(u,this.maxTextWidth);u.geometry.width=R.width;u.geometry.height=R.height}Graph.isLink(u.value)&&F.setLinkForCell(u,u.value);u.geometry.width+=F.gridSize;u.geometry.height+=F.gridSize}finally{F.getModel().endUpdate()}return[u]}}return[]};EditorUi.prototype.formatFileSize=
function(d){var g=-1;do d/=1024,g++;while(1024<d);return Math.max(d,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[g]};EditorUi.prototype.convertDataUri=function(d){if("data:"==d.substring(0,5)){var g=d.indexOf(";");0<g&&(d=d.substring(0,g)+d.substring(d.indexOf(",",g+1)))}return d};EditorUi.prototype.isRemoteFileFormat=function(d,g){return/("contentType":\s*"application\/gliffy\+json")/.test(d)};EditorUi.prototype.isLucidChartData=function(d){return null!=d&&('{"state":"{\\"Properties\\":'==
d.substring(0,26)||'{"Properties":'==d.substring(0,14))};EditorUi.prototype.importLocalFile=function(d,g){if(d&&Graph.fileSupport){if(null==this.importFileInputElt){var k=document.createElement("input");k.setAttribute("type","file");mxEvent.addListener(k,"change",mxUtils.bind(this,function(){null!=k.files&&(this.importFiles(k.files,null,null,this.maxImageSize),k.type="",k.type="file",k.value="")}));k.style.display="none";document.body.appendChild(k);this.importFileInputElt=k}this.importFileInputElt.click()}else{window.openNew=
-!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(z,I){StorageFile.listFiles(this,"F",z,I)});window.openBrowserFile=mxUtils.bind(this,function(z,I,F){StorageFile.getFileContent(this,z,I,F)});window.deleteBrowserFile=mxUtils.bind(this,function(z,I,F){StorageFile.deleteFile(this,z,I,F)});if(!g){var m=Editor.useLocalStorage;Editor.useLocalStorage=!d}window.openFile=new OpenFile(mxUtils.bind(this,function(z){this.hideDialog(z)}));window.openFile.setConsumer(mxUtils.bind(this,
-function(z,I){null!=I&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(I)?(z=new Blob([z],{type:"application/octet-stream"}),this.importVisio(z,mxUtils.bind(this,function(F){this.importXml(F,0,0,!0)}),null,I)):this.editor.graph.setSelectionCells(this.importXml(z,0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null});if(!g){var t=this.dialog,y=t.close;this.dialog.close=mxUtils.bind(this,function(z){Editor.useLocalStorage=
-m;y.apply(t,arguments);z&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(d,g,k){var m=this,t=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(d).then(function(y){if(mxUtils.isEmptyObject(y.files))k();else{var z=0,I,F=!1;y.forEach(function(C,Q){C=Q.name.toLowerCase();"diagram/diagram.xml"==C?(F=!0,Q.async("string").then(function(S){0==S.indexOf("<mxfile ")?g(S):k()})):0==C.indexOf("versions/")&&
-(C=parseInt(C.substr(9)),C>z&&(z=C,I=Q))});0<z?I.async("string").then(function(C){(new XMLHttpRequest).upload&&m.isRemoteFileFormat(C,d.name)?m.isOffline()?m.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,k):m.parseFileData(C,mxUtils.bind(this,function(Q){4==Q.readyState&&(200<=Q.status&&299>=Q.status?g(Q.responseText):k())}),d.name):k()}):F||k()}},function(y){k(y)}):k()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?t():(this.loadingExtensions=!0,
-mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",t,null,null,null,k))};EditorUi.prototype.importFile=function(d,g,k,m,t,y,z,I,F,C,Q,S){C=null!=C?C:!0;var V=!1,P=null,u=mxUtils.bind(this,function(x){var J=null;null!=x&&"<mxlibrary"==x.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,x,z)),this.showSidebar()):J=this.importXml(x,k,m,C,null,null!=S?mxEvent.isControlDown(S):null);null!=I&&I(J)});"image"==g.substring(0,5)?(F=!1,"image/png"==g.substring(0,9)&&(Q=Q?null:this.extractGraphModelFromPng(d),
-null!=Q&&0<Q.length&&(P=this.importXml(Q,k,m,C,null,null!=S?mxEvent.isControlDown(S):null),F=!0)),F||(F=this.editor.graph,Q=d.indexOf(";"),0<Q&&(d=d.substring(0,Q)+d.substring(d.indexOf(",",Q+1))),C&&F.isGridEnabled()&&(k=F.snap(k),m=F.snap(m)),Q="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==g.substring(0,9)&&(Q+="editableCssRules=.*;"),P=[F.insertVertex(null,null,"",k,m,t,y,Q+"image="+d+";")])):/(\.*<graphml )/.test(d)?
-(V=!0,this.importGraphML(d,u)):null!=F&&null!=z&&EditorUi.isVisioFilename(z)?(V=!0,this.importVisio(F,u)):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d,z)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(V=!0,g=mxUtils.bind(this,function(x){4==x.readyState&&(200<=x.status&&299>=x.status?u(x.responseText):null!=I&&(I(null),this.showError(mxResources.get("error"),413==x.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),
-null!=d?this.parseFileData(d,g,z):this.parseFile(F,g,z)):0==d.indexOf("PK")&&null!=F?(V=!0,this.importZipFile(F,u,mxUtils.bind(this,function(){P=this.insertTextAt(this.validateFileData(d),k,m,!0,null,C);I(P)}))):/(\.v(sd|dx))($|\?)/i.test(z)||/(\.vs(s|x))($|\?)/i.test(z)||(P=this.insertTextAt(this.validateFileData(d),k,m,!0,null,C,null,null!=S?mxEvent.isControlDown(S):null));V||null==I||I(P);return P};EditorUi.prototype.importFiles=function(d,g,k,m,t,y,z,I,F,C,Q,S,V){m=null!=m?m:this.maxImageSize;
-C=null!=C?C:this.maxImageBytes;var P=null!=g&&null!=k,u=!0;g=null!=g?g:0;k=null!=k?k:0;var x=!1;if(!mxClient.IS_CHROMEAPP&&null!=d)for(var J=Q||this.resampleThreshold,H=0;H<d.length;H++)if("image/svg"!==d[H].type.substring(0,9)&&"image/"===d[H].type.substring(0,6)&&d[H].size>J){x=!0;break}var K=mxUtils.bind(this,function(){var N=this.editor.graph,M=N.gridSize;t=null!=t?t:mxUtils.bind(this,function(R,T,U,W,X,Y,Z,ca,ea){try{if(null!=R&&"<mxlibrary"==R.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,
-R,Z)),this.showSidebar(),null;this.isCompatibleString(R)&&1==d.length&&null!=V&&"drop"==V.type&&this.isBlankFile()&&!this.canUndo()&&(P=!1,W=U=0);return this.importFile(R,T,U,W,X,Y,Z,ca,ea,P,S,V)}catch(ia){return this.handleError(ia),null}});y=null!=y?y:mxUtils.bind(this,function(R){N.setSelectionCells(R)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var n=d.length,A=n,E=[],L=mxUtils.bind(this,function(R,T){E[R]=T;if(0==--A){this.spinner.stop();if(null!=I)I(E);else{var U=[];
-N.getModel().beginUpdate();try{for(R=0;R<E.length;R++){var W=E[R]();null!=W&&(U=U.concat(W))}}finally{N.getModel().endUpdate()}}y(U)}}),O=0;O<n;O++)mxUtils.bind(this,function(R){var T=d[R];if(null!=T){var U=new FileReader;U.onload=mxUtils.bind(this,function(W){if(null==z||z(T))try{if("image/"==T.type.substring(0,6))if("image/svg"==T.type.substring(0,9)){var X=Graph.clipSvgDataUri(W.target.result),Y=X.indexOf(","),Z=decodeURIComponent(escape(atob(X.substring(Y+1)))),ca=mxUtils.parseXml(Z),ea=ca.getElementsByTagName("svg");
-if(0<ea.length){var ia=ea[0],ba=S?null:ia.getAttribute("content");null!=ba&&"<"!=ba.charAt(0)&&"%"!=ba.charAt(0)&&(ba=unescape(window.atob?atob(ba):Base64.decode(ba,!0)));null!=ba&&"%"==ba.charAt(0)&&(ba=decodeURIComponent(ba));null==ba||"<mxfile "!==ba.substring(0,8)&&"<mxGraphModel "!==ba.substring(0,14)?L(R,mxUtils.bind(this,function(){try{if(null!=ca){var ja=ca.getElementsByTagName("svg");if(0<ja.length){var ha=ja[0],da=ha.getAttribute("width"),Ba=ha.getAttribute("height");da=null!=da&&"%"!=da.charAt(da.length-
-1)?parseFloat(da):NaN;Ba=null!=Ba&&"%"!=Ba.charAt(Ba.length-1)?parseFloat(Ba):NaN;var na=ha.getAttribute("viewBox");if(null==na||0==na.length)ha.setAttribute("viewBox","0 0 "+da+" "+Ba);else if(isNaN(da)||isNaN(Ba)){var va=na.split(" ");3<va.length&&(da=parseFloat(va[2]),Ba=parseFloat(va[3]))}X=Editor.createSvgDataUri(mxUtils.getXml(ha));var Aa=Math.min(1,Math.min(m/Math.max(1,da)),m/Math.max(1,Ba)),ka=t(X,T.type,g+R*M,k+R*M,Math.max(1,Math.round(da*Aa)),Math.max(1,Math.round(Ba*Aa)),T.name);if(null!=
-ka&&(isNaN(da)||isNaN(Ba))){var ta=new Image;ta.onload=mxUtils.bind(this,function(){da=Math.max(1,ta.width);Ba=Math.max(1,ta.height);ka[0].geometry.width=da;ka[0].geometry.height=Ba;ha.setAttribute("viewBox","0 0 "+da+" "+Ba);X=Editor.createSvgDataUri(mxUtils.getXml(ha));var pa=X.indexOf(";");0<pa&&(X=X.substring(0,pa)+X.substring(X.indexOf(",",pa+1)));N.setCellStyles("image",X,[ka[0]])});ta.src=Editor.createSvgDataUri(mxUtils.getXml(ha))}return ka}}}catch(pa){}return null})):L(R,mxUtils.bind(this,
-function(){return t(ba,"text/xml",g+R*M,k+R*M,0,0,T.name)}))}else L(R,mxUtils.bind(this,function(){return null}))}else{Y=!1;if("image/png"==T.type){var fa=S?null:this.extractGraphModelFromPng(W.target.result);if(null!=fa&&0<fa.length){var aa=new Image;aa.src=W.target.result;L(R,mxUtils.bind(this,function(){return t(fa,"text/xml",g+R*M,k+R*M,aa.width,aa.height,T.name)}));Y=!0}}Y||(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(W.target.result,mxUtils.bind(this,function(ja){this.resizeImage(ja,W.target.result,mxUtils.bind(this,function(ha,da,Ba){L(R,mxUtils.bind(this,function(){if(null!=ha&&ha.length<C){var na=u&&this.isResampleImageSize(T.size,Q)?Math.min(1,Math.min(m/da,m/Ba)):1;return t(ha,T.type,g+R*M,k+R*M,Math.round(da*na),Math.round(Ba*na),T.name)}this.handleError({message:mxResources.get("imageTooBig")});
-return null}))}),u,m,Q,T.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else X=W.target.result,t(X,T.type,g+R*M,k+R*M,240,160,T.name,function(ja){L(R,function(){return ja})},T)}catch(ja){L(R,mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(ja,T)}else L(R,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(T.name)?t(null,T.type,g+R*M,k+R*M,240,160,T.name,function(W){L(R,function(){return W})},
-T):"image"==T.type.substring(0,5)||"application/pdf"==T.type?U.readAsDataURL(T):U.readAsText(T)}})(O)});if(x){x=[];for(H=0;H<d.length;H++)x.push(d[H]);d=x;this.confirmImageResize(function(N){u=N;K()},F)}else K()};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(d,g){g=null!=g?g:!1;var k=null!=this.spinner&&null!=this.spinner.pause?
-this.spinner.pause():function(){},m=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,t=function(y,z){if(y||g)mxSettings.setResizeImages(y?z:null),mxSettings.save();k();d(z)};null==m||g?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(y){t(y,!0)},function(y){t(y,!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):t(!1,m)};EditorUi.prototype.parseFile=function(d,g,k){k=null!=k?k:d.name;var m=new FileReader;m.onload=mxUtils.bind(this,function(){this.parseFileData(m.result,g,k)});m.readAsText(d)};EditorUi.prototype.parseFileData=function(d,g,k){var m=new XMLHttpRequest;m.open("POST",OPEN_URL);m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");m.onreadystatechange=function(){g(m)};m.send("format=xml&filename="+
-encodeURIComponent(k)+"&data="+encodeURIComponent(d));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(t){}};EditorUi.prototype.isResampleImageSize=function(d,g){g=null!=g?g:this.resampleThreshold;return d>g};EditorUi.prototype.resizeImage=function(d,g,k,m,t,y,z){t=null!=t?t:this.maxImageSize;var I=Math.max(1,d.width),F=Math.max(1,d.height),C=g;if(m&&this.isResampleImageSize(null!=z?z:g.length,y))try{var Q=Math.max(I/t,F/t);if(1<Q){var S=Math.round(I/Q),V=Math.round(F/
-Q),P=document.createElement("canvas");P.width=S;P.height=V;P.getContext("2d").drawImage(d,0,0,S,V);var u=P.toDataURL();if(u.length<g.length){var x=document.createElement("canvas");x.width=S;x.height=V;var J=x.toDataURL();u!==J&&(g=u,I=S,F=V)}}}catch(H){}m&&C!=g&&t>this.maxImageSize/2&&g.length>this.maxImageBytes?this.resizeImage(d,g,k,m,t/1.5,y,z):k(g,I,F)};EditorUi.prototype.extractGraphModelFromPng=function(d){return Editor.extractGraphModelFromPng(d)};EditorUi.prototype.loadImage=function(d,g,
-k){try{var m=new Image;m.onload=function(){m.width=0<m.width?m.width:120;m.height=0<m.height?m.height:120;g(m)};null!=k&&(m.onerror=k);m.src=d}catch(t){if(null!=k)k(t);else throw t;}};EditorUi.prototype.getDefaultSketchMode=function(){var d="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:d)};var l=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),
+!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(A,I){StorageFile.listFiles(this,"F",A,I)});window.openBrowserFile=mxUtils.bind(this,function(A,I,F){StorageFile.getFileContent(this,A,I,F)});window.deleteBrowserFile=mxUtils.bind(this,function(A,I,F){StorageFile.deleteFile(this,A,I,F)});if(!g){var m=Editor.useLocalStorage;Editor.useLocalStorage=!d}window.openFile=new OpenFile(mxUtils.bind(this,function(A){this.hideDialog(A)}));window.openFile.setConsumer(mxUtils.bind(this,
+function(A,I){null!=I&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(I)?(A=new Blob([A],{type:"application/octet-stream"}),this.importVisio(A,mxUtils.bind(this,function(F){this.importXml(F,0,0,!0)}),null,I)):this.editor.graph.setSelectionCells(this.importXml(A,0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null});if(!g){var u=this.dialog,x=u.close;this.dialog.close=mxUtils.bind(this,function(A){Editor.useLocalStorage=
+m;x.apply(u,arguments);A&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(d,g,k){var m=this,u=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(d).then(function(x){if(mxUtils.isEmptyObject(x.files))k();else{var A=0,I,F=!1;x.forEach(function(C,P){C=P.name.toLowerCase();"diagram/diagram.xml"==C?(F=!0,P.async("string").then(function(R){0==R.indexOf("<mxfile ")?g(R):k()})):0==C.indexOf("versions/")&&
+(C=parseInt(C.substr(9)),C>A&&(A=C,I=P))});0<A?I.async("string").then(function(C){(new XMLHttpRequest).upload&&m.isRemoteFileFormat(C,d.name)?m.isOffline()?m.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,k):m.parseFileData(C,mxUtils.bind(this,function(P){4==P.readyState&&(200<=P.status&&299>=P.status?g(P.responseText):k())}),d.name):k()}):F||k()}},function(x){k(x)}):k()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?u():(this.loadingExtensions=!0,
+mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",u,null,null,null,k))};EditorUi.prototype.importFile=function(d,g,k,m,u,x,A,I,F,C,P,R){C=null!=C?C:!0;var U=!1,O=null,V=mxUtils.bind(this,function(q){var y=null;null!=q&&"<mxlibrary"==q.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,q,A)),this.showSidebar()):y=this.importXml(q,k,m,C,null,null!=R?mxEvent.isControlDown(R):null);null!=I&&I(y)});"image"==g.substring(0,5)?(F=!1,"image/png"==g.substring(0,9)&&(P=P?null:this.extractGraphModelFromPng(d),
+null!=P&&0<P.length&&(O=this.importXml(P,k,m,C,null,null!=R?mxEvent.isControlDown(R):null),F=!0)),F||(F=this.editor.graph,P=d.indexOf(";"),0<P&&(d=d.substring(0,P)+d.substring(d.indexOf(",",P+1))),C&&F.isGridEnabled()&&(k=F.snap(k),m=F.snap(m)),P="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==g.substring(0,9)&&(P+="editableCssRules=.*;"),O=[F.insertVertex(null,null,"",k,m,u,x,P+"image="+d+";")])):/(\.*<graphml )/.test(d)?
+(U=!0,this.importGraphML(d,V)):null!=F&&null!=A&&EditorUi.isVisioFilename(A)?(U=!0,this.importVisio(F,V)):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d,A)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(U=!0,g=mxUtils.bind(this,function(q){4==q.readyState&&(200<=q.status&&299>=q.status?V(q.responseText):null!=I&&(I(null),this.showError(mxResources.get("error"),413==q.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),
+null!=d?this.parseFileData(d,g,A):this.parseFile(F,g,A)):0==d.indexOf("PK")&&null!=F?(U=!0,this.importZipFile(F,V,mxUtils.bind(this,function(){O=this.insertTextAt(this.validateFileData(d),k,m,!0,null,C);I(O)}))):/(\.v(sd|dx))($|\?)/i.test(A)||/(\.vs(s|x))($|\?)/i.test(A)||(O=this.insertTextAt(this.validateFileData(d),k,m,!0,null,C,null,null!=R?mxEvent.isControlDown(R):null));U||null==I||I(O);return O};EditorUi.prototype.importFiles=function(d,g,k,m,u,x,A,I,F,C,P,R,U){m=null!=m?m:this.maxImageSize;
+C=null!=C?C:this.maxImageBytes;var O=null!=g&&null!=k,V=!0;g=null!=g?g:0;k=null!=k?k:0;var q=!1;if(!mxClient.IS_CHROMEAPP&&null!=d)for(var y=P||this.resampleThreshold,D=0;D<d.length;D++)if("image/svg"!==d[D].type.substring(0,9)&&"image/"===d[D].type.substring(0,6)&&d[D].size>y){q=!0;break}var J=mxUtils.bind(this,function(){var L=this.editor.graph,K=L.gridSize;u=null!=u?u:mxUtils.bind(this,function(Q,S,T,W,X,Z,Y,ba,da){try{if(null!=Q&&"<mxlibrary"==Q.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,
+Q,Y)),this.showSidebar(),null;this.isCompatibleString(Q)&&1==d.length&&null!=U&&"drop"==U.type&&this.isBlankFile()&&!this.canUndo()&&(O=!1,W=T=0);return this.importFile(Q,S,T,W,X,Z,Y,ba,da,O,R,U)}catch(ia){return this.handleError(ia),null}});x=null!=x?x:mxUtils.bind(this,function(Q){L.setSelectionCells(Q)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var n=d.length,z=n,G=[],M=mxUtils.bind(this,function(Q,S){G[Q]=S;if(0==--z){this.spinner.stop();if(null!=I)I(G);else{var T=[];
+L.getModel().beginUpdate();try{for(Q=0;Q<G.length;Q++){var W=G[Q]();null!=W&&(T=T.concat(W))}}finally{L.getModel().endUpdate()}}x(T)}}),N=0;N<n;N++)mxUtils.bind(this,function(Q){var S=d[Q];if(null!=S){var T=new FileReader;T.onload=mxUtils.bind(this,function(W){if(null==A||A(S))try{if("image/"==S.type.substring(0,6))if("image/svg"==S.type.substring(0,9)){var X=Graph.clipSvgDataUri(W.target.result),Z=X.indexOf(","),Y=decodeURIComponent(escape(atob(X.substring(Z+1)))),ba=mxUtils.parseXml(Y),da=ba.getElementsByTagName("svg");
+if(0<da.length){var ia=da[0],ca=R?null:ia.getAttribute("content");null!=ca&&"<"!=ca.charAt(0)&&"%"!=ca.charAt(0)&&(ca=unescape(window.atob?atob(ca):Base64.decode(ca,!0)));null!=ca&&"%"==ca.charAt(0)&&(ca=decodeURIComponent(ca));null==ca||"<mxfile "!==ca.substring(0,8)&&"<mxGraphModel "!==ca.substring(0,14)?M(Q,mxUtils.bind(this,function(){try{if(null!=ba){var ja=ba.getElementsByTagName("svg");if(0<ja.length){var ha=ja[0],ea=ha.getAttribute("width"),ya=ha.getAttribute("height");ea=null!=ea&&"%"!=ea.charAt(ea.length-
+1)?parseFloat(ea):NaN;ya=null!=ya&&"%"!=ya.charAt(ya.length-1)?parseFloat(ya):NaN;var ua=ha.getAttribute("viewBox");if(null==ua||0==ua.length)ha.setAttribute("viewBox","0 0 "+ea+" "+ya);else if(isNaN(ea)||isNaN(ya)){var na=ua.split(" ");3<na.length&&(ea=parseFloat(na[2]),ya=parseFloat(na[3]))}X=Editor.createSvgDataUri(mxUtils.getXml(ha));var za=Math.min(1,Math.min(m/Math.max(1,ea)),m/Math.max(1,ya)),ma=u(X,S.type,g+Q*K,k+Q*K,Math.max(1,Math.round(ea*za)),Math.max(1,Math.round(ya*za)),S.name);if(null!=
+ma&&(isNaN(ea)||isNaN(ya))){var sa=new Image;sa.onload=mxUtils.bind(this,function(){ea=Math.max(1,sa.width);ya=Math.max(1,sa.height);ma[0].geometry.width=ea;ma[0].geometry.height=ya;ha.setAttribute("viewBox","0 0 "+ea+" "+ya);X=Editor.createSvgDataUri(mxUtils.getXml(ha));var oa=X.indexOf(";");0<oa&&(X=X.substring(0,oa)+X.substring(X.indexOf(",",oa+1)));L.setCellStyles("image",X,[ma[0]])});sa.src=Editor.createSvgDataUri(mxUtils.getXml(ha))}return ma}}}catch(oa){}return null})):M(Q,mxUtils.bind(this,
+function(){return u(ca,"text/xml",g+Q*K,k+Q*K,0,0,S.name)}))}else M(Q,mxUtils.bind(this,function(){return null}))}else{Z=!1;if("image/png"==S.type){var fa=R?null:this.extractGraphModelFromPng(W.target.result);if(null!=fa&&0<fa.length){var aa=new Image;aa.src=W.target.result;M(Q,mxUtils.bind(this,function(){return u(fa,"text/xml",g+Q*K,k+Q*K,aa.width,aa.height,S.name)}));Z=!0}}Z||(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(W.target.result,mxUtils.bind(this,function(ja){this.resizeImage(ja,W.target.result,mxUtils.bind(this,function(ha,ea,ya){M(Q,mxUtils.bind(this,function(){if(null!=ha&&ha.length<C){var ua=V&&this.isResampleImageSize(S.size,P)?Math.min(1,Math.min(m/ea,m/ya)):1;return u(ha,S.type,g+Q*K,k+Q*K,Math.round(ea*ua),Math.round(ya*ua),S.name)}this.handleError({message:mxResources.get("imageTooBig")});
+return null}))}),V,m,P,S.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else X=W.target.result,u(X,S.type,g+Q*K,k+Q*K,240,160,S.name,function(ja){M(Q,function(){return ja})},S)}catch(ja){M(Q,mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(ja,S)}else M(Q,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(S.name)?u(null,S.type,g+Q*K,k+Q*K,240,160,S.name,function(W){M(Q,function(){return W})},
+S):"image"==S.type.substring(0,5)||"application/pdf"==S.type?T.readAsDataURL(S):T.readAsText(S)}})(N)});if(q){q=[];for(D=0;D<d.length;D++)q.push(d[D]);d=q;this.confirmImageResize(function(L){V=L;J()},F)}else J()};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(d,g){g=null!=g?g:!1;var k=null!=this.spinner&&null!=this.spinner.pause?
+this.spinner.pause():function(){},m=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,u=function(x,A){if(x||g)mxSettings.setResizeImages(x?A:null),mxSettings.save();k();d(A)};null==m||g?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(x){u(x,!0)},function(x){u(x,!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):u(!1,m)};EditorUi.prototype.parseFile=function(d,g,k){k=null!=k?k:d.name;var m=new FileReader;m.onload=mxUtils.bind(this,function(){this.parseFileData(m.result,g,k)});m.readAsText(d)};EditorUi.prototype.parseFileData=function(d,g,k){var m=new XMLHttpRequest;m.open("POST",OPEN_URL);m.setRequestHeader("Content-Type","application/x-www-form-urlencoded");m.onreadystatechange=function(){g(m)};m.send("format=xml&filename="+
+encodeURIComponent(k)+"&data="+encodeURIComponent(d));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(u){}};EditorUi.prototype.isResampleImageSize=function(d,g){g=null!=g?g:this.resampleThreshold;return d>g};EditorUi.prototype.resizeImage=function(d,g,k,m,u,x,A){u=null!=u?u:this.maxImageSize;var I=Math.max(1,d.width),F=Math.max(1,d.height),C=g;if(m&&this.isResampleImageSize(null!=A?A:g.length,x))try{var P=Math.max(I/u,F/u);if(1<P){var R=Math.round(I/P),U=Math.round(F/
+P),O=document.createElement("canvas");O.width=R;O.height=U;O.getContext("2d").drawImage(d,0,0,R,U);var V=O.toDataURL();if(V.length<g.length){var q=document.createElement("canvas");q.width=R;q.height=U;var y=q.toDataURL();V!==y&&(g=V,I=R,F=U)}}}catch(D){}m&&C!=g&&u>this.maxImageSize/2&&g.length>this.maxImageBytes?this.resizeImage(d,g,k,m,u/1.5,x,A):k(g,I,F)};EditorUi.prototype.extractGraphModelFromPng=function(d){return Editor.extractGraphModelFromPng(d)};EditorUi.prototype.loadImage=function(d,g,
+k){try{var m=new Image;m.onload=function(){m.width=0<m.width?m.width:120;m.height=0<m.height?m.height:120;g(m)};null!=k&&(m.onerror=k);m.src=d}catch(u){if(null!=k)k(u);else throw u;}};EditorUi.prototype.getDefaultSketchMode=function(){var d="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:d)};var l=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),
this.formatWidth=mxSettings.getFormatWidth());l.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 d=this,g=this.editor.graph,k=g.isEnabled;g.isEnabled=function(){return k.apply(this,arguments)&&
-!d.isLocked()};Graph.touchStyle&&(g.panningHandler.isPanningTrigger=function(M){var n=M.getEvent();return null==M.getState()&&!mxEvent.isMouseEvent(n)&&!g.freehand.isDrawing()||mxEvent.isPopupTrigger(n)&&(null==M.getState()||mxEvent.isControlDown(n)||mxEvent.isShiftDown(n))});g.cellEditor.editPlantUmlData=function(M,n,A){var E=JSON.parse(A);n=new TextareaDialog(d,mxResources.get("plantUml")+":",E.data,function(L){null!=L&&d.spinner.spin(document.body,mxResources.get("inserting"))&&d.generatePlantUmlImage(L,
-E.format,function(O,R,T){d.spinner.stop();g.getModel().beginUpdate();try{if("txt"==E.format)g.labelChanged(M,"<pre>"+O+"</pre>"),g.updateCellSize(M,!0);else{g.setCellStyles("image",d.convertDataUri(O),[M]);var U=g.model.getGeometry(M);null!=U&&(U=U.clone(),U.width=R,U.height=T,g.cellsResized([M],[U],!1))}g.setAttributeForCell(M,"plantUmlData",JSON.stringify({data:L,format:E.format}))}finally{g.getModel().endUpdate()}},function(O){d.handleError(O)})},null,null,400,220);d.showDialog(n.container,420,
-300,!0,!0);n.init()};g.cellEditor.editMermaidData=function(M,n,A){var E=JSON.parse(A);n=new TextareaDialog(d,mxResources.get("mermaid")+":",E.data,function(L){null!=L&&d.spinner.spin(document.body,mxResources.get("inserting"))&&d.generateMermaidImage(L,E.config,function(O,R,T){d.spinner.stop();g.getModel().beginUpdate();try{g.setCellStyles("image",O,[M]);var U=g.model.getGeometry(M);null!=U&&(U=U.clone(),U.width=Math.max(U.width,R),U.height=Math.max(U.height,T),g.cellsResized([M],[U],!1));g.setAttributeForCell(M,
-"mermaidData",JSON.stringify({data:L,config:E.config},null,2))}finally{g.getModel().endUpdate()}},function(O){d.handleError(O)})},null,null,400,220);d.showDialog(n.container,420,300,!0,!0);n.init()};var m=g.cellEditor.startEditing;g.cellEditor.startEditing=function(M,n){try{var A=this.graph.getAttributeForCell(M,"plantUmlData");if(null!=A)this.editPlantUmlData(M,n,A);else if(A=this.graph.getAttributeForCell(M,"mermaidData"),null!=A&&window.isMermaidEnabled)this.editMermaidData(M,n,A);else{var E=g.getCellStyle(M);
-"1"==mxUtils.getValue(E,"metaEdit","0")?d.showDataDialog(M):m.apply(this,arguments)}}catch(L){d.handleError(L)}};g.getLinkTitle=function(M){return d.getLinkTitle(M)};g.customLinkClicked=function(M,n){var A=!1;try{var E=this.getGraphBounds();d.handleCustomLink(M,n);A=!0;d.chromelessResize&&!E.equals(this.getGraphBounds())&&(d.chromelessResize(),this.scrollCellToVisible(n))}catch(L){d.handleError(L)}return A};var t=g.parseBackgroundImage;g.parseBackgroundImage=function(M){var n=t.apply(this,arguments);
-null!=n&&null!=n.src&&Graph.isPageLink(n.src)&&(n={originalSrc:n.src});return n};var y=g.setBackgroundImage;g.setBackgroundImage=function(M){null!=M&&null!=M.originalSrc&&(M=d.createImageForPageLink(M.originalSrc,d.currentPage,this));y.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,
-function(M,n){M=null!=g.backgroundImage?g.backgroundImage.originalSrc:null;if(null!=M){var A=M.indexOf(",");if(0<A)for(M=M.substring(A+1),n=n.getProperty("patches"),A=0;A<n.length;A++)if(null!=n[A][EditorUi.DIFF_UPDATE]&&null!=n[A][EditorUi.DIFF_UPDATE][M]||null!=n[A][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(n[A][EditorUi.DIFF_REMOVE],M)){g.refreshBackgroundImage();break}}}));var z=g.getBackgroundImageObject;g.getBackgroundImageObject=function(M,n){var A=z.apply(this,arguments);null!=A&&null!=A.originalSrc&&
-(A=n?d.createImageForPageLink(A.originalSrc,null,null,!0):{src:A.originalSrc});return A};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 I=d.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(M){M=null!=M?M:"";"1"==
-urlParams.dev&&(M+=(0<M.length?"&":"?")+"dev=1");return I.apply(this,arguments)};var F=g.addClickHandler;g.addClickHandler=function(M,n,A){var E=n;n=function(L,O,R){if(null==O){var T=mxEvent.getSource(L);"a"==T.nodeName.toLowerCase()&&(O=T.getAttribute("href"))}null!=O&&g.isCustomLink(O)&&(mxEvent.isTouchEvent(L)||!mxEvent.isPopupTrigger(L))&&g.customLinkClicked(O,R)&&mxEvent.consume(L);null!=E&&E(L,O,R)};F.call(this,M,n,A)};p.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(g.view.canvas.ownerSVGElement,
-null,!0);if(null!=this.menus){var C=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(M,n,A){g.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(M,["zoomIn","zoomOut","-"],null,A);C.apply(this,arguments);g.isSelectionEmpty()||null==d.addSelectionToScratchpad||this.addMenuItems(M,["-","addToScratchpad"],null,A);g.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(M,["-","exitGroup","home"],null,A)};var Q=Menus.prototype.addPopupMenuEditItems;
-this.menus.addPopupMenuEditItems=function(M,n,A){if(d.editor.graph.isSelectionEmpty())Q.apply(this,arguments),d.menus.addMenuItems(M,["copyAsImage"],null,A);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(M,n,A):this.addPopupMenuArrangeItems(M,n,A),this.addMenuItems(M,"- cut copy copyAsImage duplicate -".split(" "),null,A),this.isShowCellEditItems()||this.addPopupDeleteItem(M,n,A),this.addMenuItems(M,["lockUnlock","-"],null,A),!this.isShowStyleItems()){if(1==g.getSelectionCount()&&!g.isCellLocked(n)&&
-g.isCellEditable(n)&&(this.addSubmenu("editCell",M,null,mxResources.get("edit")),M.addSeparator(),g.getModel().isEdge(n))){this.addSubmenu("line",M);var E=g.getModel().getGeometry(n);null!=E&&null!=E.points&&0<E.points.length&&this.addMenuItems(M,["clearWaypoints"],null,A)}1==g.getSelectionCount()&&this.addMenuItems(M,["enterGroup"],null,A);E=d.getSelectionState();null!=E.mergeCell?this.addMenuItem(M,"mergeCells"):(1<E.style.colspan||1<E.style.rowspan)&&this.addMenuItem(M,"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;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}this.dependsOnLanguage(mxUtils.bind(this,function(){this.defaultFilename=mxResources.get("untitledDiagram");this.defaultLibraryName=mxResources.get("untitledLibrary")}));var S=g.getExportVariables;g.getExportVariables=
-function(){var M=S.apply(this,arguments),n=d.getCurrentFile();null!=n&&(M.filename=n.getTitle());M.pagecount=null!=d.pages?d.pages.length:1;M.page=null!=d.currentPage?d.currentPage.getName():"";M.pagenumber=null!=d.pages&&null!=d.currentPage?mxUtils.indexOf(d.pages,d.currentPage)+1:1;return M};var V=g.getGlobalVariable;g.getGlobalVariable=function(M){var n=d.getCurrentFile();return"filename"==M&&null!=n?n.getTitle():"page"==M&&null!=d.currentPage?d.currentPage.getName():"pagenumber"==M?null!=d.currentPage&&
-null!=d.pages?mxUtils.indexOf(d.pages,d.currentPage)+1:1:"pagecount"==M?null!=d.pages?d.pages.length:1:V.apply(this,arguments)};var P=null,u=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var M=this.getCurrentFile(),n=null!=M&&null!=M.getTitle()?M.getTitle():this.defaultFilename;P!=n&&M==u&&(g.invalidateDescendantsWithPlaceholders(g.model.getRoot()),g.view.validate());P=n;u=M}));var x=g.labelLinkClicked;g.labelLinkClicked=function(M,n,A){var E=n.getAttribute("href");if(null==
-E||!g.isCustomLink(E)||!mxEvent.isTouchEvent(A)&&mxEvent.isPopupTrigger(A))x.apply(this,arguments);else{if(!g.isEnabled()||null!=M&&g.isCellLocked(M.cell))g.customLinkClicked(E),g.getRubberband().reset();mxEvent.consume(A)}};this.editor.getOrCreateFilename=function(){var M=d.defaultFilename,n=d.getCurrentFile();null!=n&&(M=null!=n.getTitle()?n.getTitle():M);return M};var J=this.actions.get("print");J.setEnabled(!mxClient.IS_IOS||!navigator.standalone);J.visible=J.isEnabled();if(!this.editor.chromeless||
+!d.isLocked()};Graph.touchStyle&&(g.panningHandler.isPanningTrigger=function(K){var n=K.getEvent();return null==K.getState()&&!mxEvent.isMouseEvent(n)&&!g.freehand.isDrawing()||mxEvent.isPopupTrigger(n)&&(null==K.getState()||mxEvent.isControlDown(n)||mxEvent.isShiftDown(n))});g.cellEditor.editPlantUmlData=function(K,n,z){var G=JSON.parse(z);n=new TextareaDialog(d,mxResources.get("plantUml")+":",G.data,function(M){null!=M&&d.spinner.spin(document.body,mxResources.get("inserting"))&&d.generatePlantUmlImage(M,
+G.format,function(N,Q,S){d.spinner.stop();g.getModel().beginUpdate();try{if("txt"==G.format)g.labelChanged(K,"<pre>"+N+"</pre>"),g.updateCellSize(K,!0);else{g.setCellStyles("image",d.convertDataUri(N),[K]);var T=g.model.getGeometry(K);null!=T&&(T=T.clone(),T.width=Q,T.height=S,g.cellsResized([K],[T],!1))}g.setAttributeForCell(K,"plantUmlData",JSON.stringify({data:M,format:G.format}))}finally{g.getModel().endUpdate()}},function(N){d.handleError(N)})},null,null,400,220);d.showDialog(n.container,420,
+300,!0,!0);n.init()};g.cellEditor.editMermaidData=function(K,n,z){var G=JSON.parse(z);n=new TextareaDialog(d,mxResources.get("mermaid")+":",G.data,function(M){null!=M&&d.spinner.spin(document.body,mxResources.get("inserting"))&&d.generateMermaidImage(M,G.config,function(N,Q,S){d.spinner.stop();g.getModel().beginUpdate();try{g.setCellStyles("image",N,[K]);var T=g.model.getGeometry(K);null!=T&&(T=T.clone(),T.width=Math.max(T.width,Q),T.height=Math.max(T.height,S),g.cellsResized([K],[T],!1));g.setAttributeForCell(K,
+"mermaidData",JSON.stringify({data:M,config:G.config},null,2))}finally{g.getModel().endUpdate()}},function(N){d.handleError(N)})},null,null,400,220);d.showDialog(n.container,420,300,!0,!0);n.init()};var m=g.cellEditor.startEditing;g.cellEditor.startEditing=function(K,n){try{var z=this.graph.getAttributeForCell(K,"plantUmlData");if(null!=z)this.editPlantUmlData(K,n,z);else if(z=this.graph.getAttributeForCell(K,"mermaidData"),null!=z&&window.isMermaidEnabled)this.editMermaidData(K,n,z);else{var G=g.getCellStyle(K);
+"1"==mxUtils.getValue(G,"metaEdit","0")?d.showDataDialog(K):m.apply(this,arguments)}}catch(M){d.handleError(M)}};g.getLinkTitle=function(K){return d.getLinkTitle(K)};g.customLinkClicked=function(K,n){var z=!1;try{var G=this.getGraphBounds();d.handleCustomLink(K,n);z=!0;d.chromelessResize&&!G.equals(this.getGraphBounds())&&(d.chromelessResize(),this.scrollCellToVisible(n))}catch(M){d.handleError(M)}return z};var u=g.parseBackgroundImage;g.parseBackgroundImage=function(K){var n=u.apply(this,arguments);
+null!=n&&null!=n.src&&Graph.isPageLink(n.src)&&(n={originalSrc:n.src});return n};var x=g.setBackgroundImage;g.setBackgroundImage=function(K){null!=K&&null!=K.originalSrc&&(K=d.createImageForPageLink(K.originalSrc,d.currentPage,this));x.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){g.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,
+function(K,n){K=null!=g.backgroundImage?g.backgroundImage.originalSrc:null;if(null!=K){var z=K.indexOf(",");if(0<z)for(K=K.substring(z+1),n=n.getProperty("patches"),z=0;z<n.length;z++)if(null!=n[z][EditorUi.DIFF_UPDATE]&&null!=n[z][EditorUi.DIFF_UPDATE][K]||null!=n[z][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(n[z][EditorUi.DIFF_REMOVE],K)){g.refreshBackgroundImage();break}}}));var A=g.getBackgroundImageObject;g.getBackgroundImageObject=function(K,n){var z=A.apply(this,arguments);null!=z&&null!=z.originalSrc&&
+(z=n?d.createImageForPageLink(z.originalSrc,null,null,!0):{src:z.originalSrc});return z};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 I=d.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(K){K=null!=K?K:"";"1"==
+urlParams.dev&&(K+=(0<K.length?"&":"?")+"dev=1");return I.apply(this,arguments)};var F=g.addClickHandler;g.addClickHandler=function(K,n,z){var G=n;n=function(M,N,Q){if(null==N){var S=mxEvent.getSource(M);"a"==S.nodeName.toLowerCase()&&(N=S.getAttribute("href"))}null!=N&&g.isCustomLink(N)&&(mxEvent.isTouchEvent(M)||!mxEvent.isPopupTrigger(M))&&g.customLinkClicked(N,Q)&&mxEvent.consume(M);null!=G&&G(M,N,Q)};F.call(this,K,n,z)};p.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(g.view.canvas.ownerSVGElement,
+null,!0);if(null!=this.menus){var C=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(K,n,z){g.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(K,["zoomIn","zoomOut","-"],null,z);C.apply(this,arguments);g.isSelectionEmpty()||null==d.addSelectionToScratchpad||this.addMenuItems(K,["-","addToScratchpad"],null,z);g.isSelectionEmpty()&&!this.isShowStyleItems()&&this.addMenuItems(K,["-","exitGroup","home"],null,z)};var P=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=
+function(K,n,z){if(d.editor.graph.isSelectionEmpty())P.apply(this,arguments),d.menus.addMenuItems(K,["copyAsImage"],null,z);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(K,n,z):this.addPopupMenuArrangeItems(K,n,z),this.addMenuItems(K,"- cut copy copyAsImage duplicate -".split(" "),null,z),this.isShowCellEditItems()||this.addPopupDeleteItem(K,n,z),this.addMenuItems(K,["lockUnlock","-"],null,z),!this.isShowStyleItems()){if(1==g.getSelectionCount()&&!g.isCellLocked(n)&&g.isCellEditable(n)&&
+(this.addSubmenu("editCell",K,null,mxResources.get("edit")),K.addSeparator(),g.getModel().isEdge(n))){this.addSubmenu("line",K);var G=g.getModel().getGeometry(n);null!=G&&null!=G.points&&0<G.points.length&&this.addMenuItems(K,["clearWaypoints"],null,z)}1==g.getSelectionCount()&&this.addMenuItems(K,["enterGroup"],null,z);G=d.getSelectionState();null!=G.mergeCell?this.addMenuItem(K,"mergeCells"):(1<G.style.colspan||1<G.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;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}this.dependsOnLanguage(mxUtils.bind(this,function(){this.defaultFilename=mxResources.get("untitledDiagram");this.defaultLibraryName=mxResources.get("untitledLibrary")}));var R=g.getExportVariables;g.getExportVariables=
+function(){var K=R.apply(this,arguments),n=d.getCurrentFile();null!=n&&(K.filename=n.getTitle());K.pagecount=null!=d.pages?d.pages.length:1;K.page=null!=d.currentPage?d.currentPage.getName():"";K.pagenumber=null!=d.pages&&null!=d.currentPage?mxUtils.indexOf(d.pages,d.currentPage)+1:1;return K};var U=g.getGlobalVariable;g.getGlobalVariable=function(K){var n=d.getCurrentFile();return"filename"==K&&null!=n?n.getTitle():"page"==K&&null!=d.currentPage?d.currentPage.getName():"pagenumber"==K?null!=d.currentPage&&
+null!=d.pages?mxUtils.indexOf(d.pages,d.currentPage)+1:1:"pagecount"==K?null!=d.pages?d.pages.length:1:U.apply(this,arguments)};var O=null,V=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var K=this.getCurrentFile(),n=null!=K&&null!=K.getTitle()?K.getTitle():this.defaultFilename;O!=n&&K==V&&(g.invalidateDescendantsWithPlaceholders(g.model.getRoot()),g.view.validate());O=n;V=K}));var q=g.labelLinkClicked;g.labelLinkClicked=function(K,n,z){var G=n.getAttribute("href");if(null==
+G||!g.isCustomLink(G)||!mxEvent.isTouchEvent(z)&&mxEvent.isPopupTrigger(z))q.apply(this,arguments);else{if(!g.isEnabled()||null!=K&&g.isCellLocked(K.cell))g.customLinkClicked(G),g.getRubberband().reset();mxEvent.consume(z)}};this.editor.getOrCreateFilename=function(){var K=d.defaultFilename,n=d.getCurrentFile();null!=n&&(K=null!=n.getTitle()?n.getTitle():K);return K};var y=this.actions.get("print");y.setEnabled(!mxClient.IS_IOS||!navigator.standalone);y.visible=y.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&&(document.body.classList.add("geEmbedInline"),g.addListener(mxEvent.ESCAPE,function(M,n){null!=n&&g.isEnabled()&&!g.isEditing()&&null!=n.getProperty("event")&&d.actions.get("exit").funct()})),this.installImagePasteHandler(),
-this.installNativeClipboardHandler();this.spinner=null!=this.spinner?this.spinner:this.createSpinner(null,null,24);Graph.fileSupport&&g.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(M){var n=g.cellEditor.text2,A=null;null!=n&&(mxEvent.addListener(n,"dragleave",function(E){null!=A&&(A.parentNode.removeChild(A),A=null);E.stopPropagation();E.preventDefault()}),mxEvent.addListener(n,"dragover",mxUtils.bind(this,function(E){null==A&&(!mxClient.IS_IE||10<document.documentMode)&&(A=this.highlightElement(n));
-E.stopPropagation();E.preventDefault()})),mxEvent.addListener(n,"drop",mxUtils.bind(this,function(E){null!=A&&(A.parentNode.removeChild(A),A=null);if(0<E.dataTransfer.files.length)this.importFiles(E.dataTransfer.files,0,0,this.maxImageSize,function(O,R,T,U,W,X){g.insertImage(O,W,X)},function(){},function(O){return"image/"==O.type.substring(0,6)},function(O){for(var R=0;R<O.length;R++)O[R]()},mxEvent.isControlDown(E));else if(0<=mxUtils.indexOf(E.dataTransfer.types,"text/uri-list")){var L=E.dataTransfer.getData("text/uri-list");
-/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(L)?this.loadImage(decodeURIComponent(L),mxUtils.bind(this,function(O){var R=Math.max(1,O.width);O=Math.max(1,O.height);var T=this.maxImageSize;T=Math.min(1,Math.min(T/Math.max(1,R)),T/Math.max(1,O));g.insertImage(decodeURIComponent(L),R*T,O*T)})):document.execCommand("insertHTML",!1,E.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(E.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,E.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(E.dataTransfer.types,
-"text/plain")&&document.execCommand("insertHTML",!1,E.dataTransfer.getData("text/plain"));E.stopPropagation();E.preventDefault()})))}));if(Editor.isSettingsEnabled()){J=this.editor.graph.view;var H=mxSettings.getUnit();J.setUnit(H);Editor.pageSizeUnit=H==mxConstants.METERS?mxConstants.MILLIMETERS:H;J.addListener("unitChanged",function(M,n){M=n.getProperty("unit");mxSettings.setUnit(M);mxSettings.save();Editor.pageSizeUnit=M==mxConstants.METERS?mxConstants.MILLIMETERS:M});this.ruler=!this.canvasSupported||
-9==document.documentMode||"1"!=urlParams.ruler&&!mxSettings.isRulerOn()||this.editor.isChromelessView()&&!this.editor.editable?null:new mxDualRuler(this,J.unit);this.refresh()}if("1"==urlParams.styledev){J=document.getElementById("geFooter");null!=J&&(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)})),J.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(M,n){0<this.editor.graph.getSelectionCount()?(M=this.editor.graph.getSelectionCell(),M=this.editor.graph.getModel().getStyle(M),this.styleInput.value=M||"",this.styleInput.style.visibility=
-"visible"):this.styleInput.style.visibility="hidden"})));var K=this.isSelectionAllowed;this.isSelectionAllowed=function(M){return mxEvent.getSource(M)==this.styleInput?!0:K.apply(this,arguments)}}J=document.getElementById("geInfo");null!=J&&J.parentNode.removeChild(J);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var N=null;mxEvent.addListener(g.container,"dragleave",function(M){g.isEnabled()&&(null!=N&&(N.parentNode.removeChild(N),N=null),M.stopPropagation(),M.preventDefault())});
-mxEvent.addListener(g.container,"dragover",mxUtils.bind(this,function(M){null==N&&(!mxClient.IS_IE||10<document.documentMode)&&(N=this.highlightElement(g.container));null!=this.sidebar&&this.sidebar.hideTooltip();M.stopPropagation();M.preventDefault()}));mxEvent.addListener(g.container,"drop",mxUtils.bind(this,function(M){null!=N&&(N.parentNode.removeChild(N),N=null);if(g.isEnabled()){var n=mxUtils.convertPoint(g.container,mxEvent.getClientX(M),mxEvent.getClientY(M)),A=M.dataTransfer.files,E=g.view.translate,
-L=g.view.scale,O=n.x/L-E.x,R=n.y/L-E.y;if(0<A.length)"1"!=urlParams.embed&&mxEvent.isShiftDown(M)?(this.isBlankFile()&&!this.canUndo()&&null!=this.getCurrentFile()&&this.fileLoaded(null),this.openFiles(A,!0)):(mxEvent.isAltDown(M)&&(R=O=null),this.importFiles(A,O,R,this.maxImageSize,null,null,null,null,mxEvent.isControlDown(M),null,null,mxEvent.isShiftDown(M),M));else{mxEvent.isAltDown(M)&&(R=O=0);var T=0<=mxUtils.indexOf(M.dataTransfer.types,"text/uri-list")?M.dataTransfer.getData("text/uri-list"):
-null;n=this.extractGraphModelFromEvent(M,null!=this.pages);if(null!=n)g.setSelectionCells(this.importXml(n,O,R,!0));else if(0<=mxUtils.indexOf(M.dataTransfer.types,"text/html")){var U=M.dataTransfer.getData("text/html");n=document.createElement("div");n.innerHTML=Graph.sanitizeHtml(U);var W=null;A=n.getElementsByTagName("img");null!=A&&1==A.length?(U=A[0].getAttribute("src"),null==U&&(U=A[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(U)||(W=!0)):(A=n.getElementsByTagName("a"),
-null!=A&&1==A.length?U=A[0].getAttribute("href"):(n=n.getElementsByTagName("pre"),null!=n&&1==n.length&&(U=mxUtils.getTextContent(n[0]))));var X=!0,Y=mxUtils.bind(this,function(){g.setSelectionCells(this.insertTextAt(U,O,R,!0,W,null,X,mxEvent.isControlDown(M)))});W&&null!=U&&U.length>this.resampleThreshold?this.confirmImageResize(function(Z){X=Z;Y()},mxEvent.isControlDown(M)):Y()}else null!=T&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(T)?this.loadImage(decodeURIComponent(T),mxUtils.bind(this,function(Z){var ca=
-Math.max(1,Z.width);Z=Math.max(1,Z.height);var ea=this.maxImageSize;ea=Math.min(1,Math.min(ea/Math.max(1,ca)),ea/Math.max(1,Z));g.setSelectionCell(g.insertVertex(null,null,"",O,R,ca*ea,Z*ea,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+T+";"))}),mxUtils.bind(this,function(Z){g.setSelectionCells(this.insertTextAt(T,O,R,!0))})):0<=mxUtils.indexOf(M.dataTransfer.types,"text/plain")&&g.setSelectionCells(this.insertTextAt(M.dataTransfer.getData("text/plain"),
-O,R,!0))}}M.stopPropagation();M.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(!0)}));this.addListener("realtimeStateChanged",mxUtils.bind(this,function(){this.updateButtonContainer()}));this.addListener("darkModeChanged",function(){mxClient.IS_SF&&g.view.validateBackground()});
-g.addListener("enabledChanged",mxUtils.bind(this,function(){g.isEnabled()||this.hideShapePicker();this.refresh()}));d=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==d.embedViewport)mxUtils.fit(this.div);else{var M=parseInt(this.div.offsetLeft),n=parseInt(this.div.offsetWidth),A=d.embedViewport.x+d.embedViewport.width,E=parseInt(this.div.offsetTop),L=parseInt(this.div.offsetHeight),O=d.embedViewport.y+d.embedViewport.height;this.div.style.left=Math.max(d.embedViewport.x,Math.min(M,
-A-n))+"px";this.div.style.top=Math.max(d.embedViewport.y,Math.min(E,O-L))+"px";this.div.style.height=Math.min(d.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(d.embedViewport.width,parseInt(this.div.style.width))+"px"}};if(!this.editor.chromeless||this.editor.editable)if(J=Editor.currentTheme,"simple"==J||"sketch"==J)this.doSetCurrentTheme(J,!0),"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(window.innerWidth||document.documentElement.clientWidth||
-document.body.clientWidth)<Editor.smallScreenWidth&&this.toggleFormatPanel(!1),this.fireEvent(new mxEventObject("themeInitialized"));J=!1;if(null!=urlParams.dark)J=urlParams.dark;else if(!this.editor.chromeless||this.editor.editable)J="dark"==Editor.currentTheme,!Editor.isSettingsEnabled()||"1"==urlParams.embed||J&&"auto"!=mxSettings.settings.darkMode||(J=mxSettings.settings.darkMode);"auto"==J&&this.isAutoDarkModeSupported()&&(J=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===
-typeof J?"1"==J:J);if(this.isAutoDarkModeSupported())try{window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",mxUtils.bind(this,function(M){this.isAutoDarkMode()&&this.setDarkMode(M.matches)}))}catch(M){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);Editor.isSettingsEnabled()&&
-(null!=mxSettings.settings.pages&&this.setTabContainerVisible(mxSettings.settings.pages),null!=mxSettings.settings.compactMode&&this.isDefaultTheme(Editor.currentTheme)&&this.setCompactMode(mxSettings.settings.compactMode));this.installSettings();this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(M,n){g.enableFlowAnimation=Editor.enableAnimations;g.refresh()}));g.enableFlowAnimation=Editor.enableAnimations;screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&
-d.editor.loadFonts();"atlas"==Editor.currentTheme&&document.body.classList.add("geAtlas")};var q=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme){var d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,g=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=g&&d<g?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<g&&d>=g&&(this.isFormatPanelVisible()||
-this.toggleFormatPanel(!0));this.lastWindowWidth=d}q.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var d=this.sketchFooterMenuElt,g=this.sketchMainMenuElt,k=this.sketchPickerMenuElt,m=this.editor.graph;k.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,mxUtils.bind(this,function(C){mxEvent.getSource(C)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(C),mxEvent.getClientY(C)),this.sendEmbeddedSvgExport())}));
-document.body.style.cursor="text";var t=document.createElement("div");t.style.position="absolute";t.style.width="10px";t.style.height="10px";t.style.borderRadius="5px";t.style.border="1px solid gray";t.style.background="#ffffff";t.style.cursor="row-resize";this.diagramContainer.parentNode.appendChild(t);this.bottomResizer=t;var y=null,z=null,I=null,F=null;mxEvent.addGestureListeners(t,mxUtils.bind(this,function(C){F=parseInt(this.diagramContainer.style.height);z=mxEvent.getClientY(C);m.popupMenuHandler.hideMenu();
-mxEvent.consume(C)}));t=t.cloneNode(!1);t.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(t);this.rightResizer=t;mxEvent.addGestureListeners(t,mxUtils.bind(this,function(C){I=parseInt(this.diagramContainer.style.width);y=mxEvent.getClientX(C);m.popupMenuHandler.hideMenu();mxEvent.consume(C)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(C){var Q=!1;null!=y&&(this.diagramContainer.style.width=Math.max(20,I+mxEvent.getClientX(C)-y)+"px",Q=!0);null!=
-z&&(this.diagramContainer.style.height=Math.max(20,F+mxEvent.getClientY(C)-z)+"px",Q=!0);Q&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),this.refresh())}),function(C){null==y&&null==z||mxEvent.consume(C);z=y=null});document.body.style.backgroundColor="transparent";this.diagramContainer.style.borderRadius="4px";this.bottomResizer.style.visibility="hidden";
+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&&(document.body.classList.add("geEmbedInline"),g.addListener(mxEvent.ESCAPE,function(K,n){null!=n&&g.isEnabled()&&!g.isEditing()&&null!=n.getProperty("event")&&d.actions.get("exit").funct()})),this.installImagePasteHandler(),
+this.installNativeClipboardHandler();this.spinner=null!=this.spinner?this.spinner:this.createSpinner(null,null,24);Graph.fileSupport&&g.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(K){var n=g.cellEditor.text2,z=null;null!=n&&(mxEvent.addListener(n,"dragleave",function(G){null!=z&&(z.parentNode.removeChild(z),z=null);G.stopPropagation();G.preventDefault()}),mxEvent.addListener(n,"dragover",mxUtils.bind(this,function(G){null==z&&(!mxClient.IS_IE||10<document.documentMode)&&(z=this.highlightElement(n));
+G.stopPropagation();G.preventDefault()})),mxEvent.addListener(n,"drop",mxUtils.bind(this,function(G){null!=z&&(z.parentNode.removeChild(z),z=null);if(0<G.dataTransfer.files.length)this.importFiles(G.dataTransfer.files,0,0,this.maxImageSize,function(N,Q,S,T,W,X){g.insertImage(N,W,X)},function(){},function(N){return"image/"==N.type.substring(0,6)},function(N){for(var Q=0;Q<N.length;Q++)N[Q]()},mxEvent.isControlDown(G));else if(0<=mxUtils.indexOf(G.dataTransfer.types,"text/uri-list")){var M=G.dataTransfer.getData("text/uri-list");
+/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(M)?this.loadImage(decodeURIComponent(M),mxUtils.bind(this,function(N){var Q=Math.max(1,N.width);N=Math.max(1,N.height);var S=this.maxImageSize;S=Math.min(1,Math.min(S/Math.max(1,Q)),S/Math.max(1,N));g.insertImage(decodeURIComponent(M),Q*S,N*S)})):document.execCommand("insertHTML",!1,G.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(G.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,G.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(G.dataTransfer.types,
+"text/plain")&&document.execCommand("insertHTML",!1,G.dataTransfer.getData("text/plain"));G.stopPropagation();G.preventDefault()})))}));if(Editor.isSettingsEnabled()){y=this.editor.graph.view;var D=mxSettings.getUnit();y.setUnit(D);Editor.pageSizeUnit=D==mxConstants.METERS?mxConstants.MILLIMETERS:D;y.addListener("unitChanged",function(K,n){K=n.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,y.unit);this.refresh()}if("1"==urlParams.styledev){y=document.getElementById("geFooter");null!=y&&(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)})),y.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(K,n){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 J=this.isSelectionAllowed;this.isSelectionAllowed=function(K){return mxEvent.getSource(K)==this.styleInput?!0:J.apply(this,arguments)}}y=document.getElementById("geInfo");null!=y&&y.parentNode.removeChild(y);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var L=null;mxEvent.addListener(g.container,"dragleave",function(K){g.isEnabled()&&(null!=L&&(L.parentNode.removeChild(L),L=null),K.stopPropagation(),K.preventDefault())});
+mxEvent.addListener(g.container,"dragover",mxUtils.bind(this,function(K){null==L&&(!mxClient.IS_IE||10<document.documentMode)&&(L=this.highlightElement(g.container));null!=this.sidebar&&this.sidebar.hideTooltip();K.stopPropagation();K.preventDefault()}));mxEvent.addListener(g.container,"drop",mxUtils.bind(this,function(K){null!=L&&(L.parentNode.removeChild(L),L=null);if(g.isEnabled()){var n=mxUtils.convertPoint(g.container,mxEvent.getClientX(K),mxEvent.getClientY(K)),z=K.dataTransfer.files,G=g.view.translate,
+M=g.view.scale,N=n.x/M-G.x,Q=n.y/M-G.y;if(0<z.length)"1"!=urlParams.embed&&mxEvent.isShiftDown(K)?(this.isBlankFile()&&!this.canUndo()&&null!=this.getCurrentFile()&&this.fileLoaded(null),this.openFiles(z,!0)):(mxEvent.isAltDown(K)&&(Q=N=null),this.importFiles(z,N,Q,this.maxImageSize,null,null,null,null,mxEvent.isControlDown(K),null,null,mxEvent.isShiftDown(K),K));else{mxEvent.isAltDown(K)&&(Q=N=0);var S=0<=mxUtils.indexOf(K.dataTransfer.types,"text/uri-list")?K.dataTransfer.getData("text/uri-list"):
+null;n=this.extractGraphModelFromEvent(K,null!=this.pages);if(null!=n)g.setSelectionCells(this.importXml(n,N,Q,!0));else if(0<=mxUtils.indexOf(K.dataTransfer.types,"text/html")){var T=K.dataTransfer.getData("text/html");n=document.createElement("div");n.innerHTML=Graph.sanitizeHtml(T);var W=null;z=n.getElementsByTagName("img");null!=z&&1==z.length?(T=z[0].getAttribute("src"),null==T&&(T=z[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(T)||(W=!0)):(z=n.getElementsByTagName("a"),
+null!=z&&1==z.length?T=z[0].getAttribute("href"):(n=n.getElementsByTagName("pre"),null!=n&&1==n.length&&(T=mxUtils.getTextContent(n[0]))));var X=!0,Z=mxUtils.bind(this,function(){g.setSelectionCells(this.insertTextAt(T,N,Q,!0,W,null,X,mxEvent.isControlDown(K)))});W&&null!=T&&T.length>this.resampleThreshold?this.confirmImageResize(function(Y){X=Y;Z()},mxEvent.isControlDown(K)):Z()}else null!=S&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(S)?this.loadImage(decodeURIComponent(S),mxUtils.bind(this,function(Y){var ba=
+Math.max(1,Y.width);Y=Math.max(1,Y.height);var da=this.maxImageSize;da=Math.min(1,Math.min(da/Math.max(1,ba)),da/Math.max(1,Y));g.setSelectionCell(g.insertVertex(null,null,"",N,Q,ba*da,Y*da,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+S+";"))}),mxUtils.bind(this,function(Y){g.setSelectionCells(this.insertTextAt(S,N,Q,!0))})):0<=mxUtils.indexOf(K.dataTransfer.types,"text/plain")&&g.setSelectionCells(this.insertTextAt(K.dataTransfer.getData("text/plain"),
+N,Q,!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(!0)}));this.addListener("realtimeStateChanged",mxUtils.bind(this,function(){this.updateButtonContainer()}));this.addListener("darkModeChanged",function(){mxClient.IS_SF&&g.view.validateBackground()});
+g.addListener("enabledChanged",mxUtils.bind(this,function(){g.isEnabled()||this.hideShapePicker();this.refresh()}));d=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==d.embedViewport)mxUtils.fit(this.div);else{var K=parseInt(this.div.offsetLeft),n=parseInt(this.div.offsetWidth),z=d.embedViewport.x+d.embedViewport.width,G=parseInt(this.div.offsetTop),M=parseInt(this.div.offsetHeight),N=d.embedViewport.y+d.embedViewport.height;this.div.style.left=Math.max(d.embedViewport.x,Math.min(K,
+z-n))+"px";this.div.style.top=Math.max(d.embedViewport.y,Math.min(G,N-M))+"px";this.div.style.height=Math.min(d.embedViewport.height,parseInt(this.div.style.height))+"px";this.div.style.width=Math.min(d.embedViewport.width,parseInt(this.div.style.width))+"px"}};if(!this.editor.chromeless||this.editor.editable)if(y=Editor.currentTheme,"simple"==y||"sketch"==y)this.doSetCurrentTheme(y,!0),"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(window.innerWidth||document.documentElement.clientWidth||
+document.body.clientWidth)<Editor.smallScreenWidth&&this.toggleFormatPanel(!1),this.fireEvent(new mxEventObject("themeInitialized"));y=!1;if(null!=urlParams.dark)y=urlParams.dark;else if(!this.editor.chromeless||this.editor.editable)y="dark"==Editor.currentTheme,!Editor.isSettingsEnabled()||"1"==urlParams.embed||y&&"auto"!=mxSettings.settings.darkMode||(y=mxSettings.settings.darkMode);"auto"==y&&this.isAutoDarkModeSupported()&&(y=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===
+typeof y?"1"==y:y);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);Editor.isSettingsEnabled()&&
+(null!=mxSettings.settings.pages&&this.setTabContainerVisible(mxSettings.settings.pages),null!=mxSettings.settings.compactMode&&this.isDefaultTheme(Editor.currentTheme)&&this.setCompactMode(mxSettings.settings.compactMode));this.installSettings();this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(K,n){g.enableFlowAnimation=Editor.enableAnimations;g.refresh()}));g.enableFlowAnimation=Editor.enableAnimations;screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&
+d.editor.loadFonts();"atlas"==Editor.currentTheme&&document.body.classList.add("geAtlas")};var v=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme){var d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,g=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=g&&d<g?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<g&&d>=g&&(this.isFormatPanelVisible()||
+this.toggleFormatPanel(!0));this.lastWindowWidth=d}v.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var d=this.sketchFooterMenuElt,g=this.sketchMainMenuElt,k=this.sketchPickerMenuElt,m=this.editor.graph;k.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,mxUtils.bind(this,function(C){mxEvent.getSource(C)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(C),mxEvent.getClientY(C)),this.sendEmbeddedSvgExport())}));
+document.body.style.cursor="text";var u=document.createElement("div");u.style.position="absolute";u.style.width="10px";u.style.height="10px";u.style.borderRadius="5px";u.style.border="1px solid gray";u.style.background="#ffffff";u.style.cursor="row-resize";this.diagramContainer.parentNode.appendChild(u);this.bottomResizer=u;var x=null,A=null,I=null,F=null;mxEvent.addGestureListeners(u,mxUtils.bind(this,function(C){F=parseInt(this.diagramContainer.style.height);A=mxEvent.getClientY(C);m.popupMenuHandler.hideMenu();
+mxEvent.consume(C)}));u=u.cloneNode(!1);u.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(u);this.rightResizer=u;mxEvent.addGestureListeners(u,mxUtils.bind(this,function(C){I=parseInt(this.diagramContainer.style.width);x=mxEvent.getClientX(C);m.popupMenuHandler.hideMenu();mxEvent.consume(C)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(C){var P=!1;null!=x&&(this.diagramContainer.style.width=Math.max(20,I+mxEvent.getClientX(C)-x)+"px",P=!0);null!=
+A&&(this.diagramContainer.style.height=Math.max(20,F+mxEvent.getClientY(C)-A)+"px",P=!0);P&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),this.refresh())}),function(C){null==x&&null==A||mxEvent.consume(C);A=x=null});document.body.style.backgroundColor="transparent";this.diagramContainer.style.borderRadius="4px";this.bottomResizer.style.visibility="hidden";
this.rightResizer.style.visibility="hidden";this.sketchMenubarElt.style.display="none";g.style.visibility="hidden";d.style.visibility="hidden";k.style.display="none";this.addListener("editInlineStart",mxUtils.bind(this,function(C){this.inlineSizeChanged();this.fitWindows()}));this.addListener("editInlineStop",mxUtils.bind(this,function(C){this.diagramContainer.style.width="10px";this.diagramContainer.style.height="10px";this.diagramContainer.style.border="";this.bottomResizer.style.visibility="hidden";
-this.rightResizer.style.visibility="hidden";g.style.visibility="hidden";d.style.visibility="hidden";k.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()};EditorUi.prototype.installImagePasteHandler=function(){if(!mxClient.IS_IE){var d=this.editor.graph;d.container.addEventListener("paste",mxUtils.bind(this,function(g){if(!mxEvent.isConsumed(g))try{for(var k=g.clipboardData||g.originalEvent.clipboardData,m=!1,t=0;t<k.types.length;t++)if("text/"===k.types[t].substring(0,
-5)){m=!0;break}if(!m){var y=k.items;for(index in y){var z=y[index];if("file"===z.kind){if(d.isEditing())this.importFiles([z.getAsFile()],0,0,this.maxImageSize,function(F,C,Q,S,V,P){d.insertImage(F,V,P)},function(){},function(F){return"image/"==F.type.substring(0,6)},function(F){for(var C=0;C<F.length;C++)F[C]()});else{var I=this.editor.graph.getInsertPoint();this.importFiles([z.getAsFile()],I.x,I.y,this.maxImageSize);mxEvent.consume(g)}break}}}}catch(F){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=
+this.rightResizer.style.visibility="hidden";g.style.visibility="hidden";d.style.visibility="hidden";k.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()};EditorUi.prototype.installImagePasteHandler=function(){if(!mxClient.IS_IE){var d=this.editor.graph;d.container.addEventListener("paste",mxUtils.bind(this,function(g){if(!mxEvent.isConsumed(g))try{for(var k=g.clipboardData||g.originalEvent.clipboardData,m=!1,u=0;u<k.types.length;u++)if("text/"===k.types[u].substring(0,
+5)){m=!0;break}if(!m){var x=k.items;for(index in x){var A=x[index];if("file"===A.kind){if(d.isEditing())this.importFiles([A.getAsFile()],0,0,this.maxImageSize,function(F,C,P,R,U,O){d.insertImage(F,U,O)},function(){},function(F){return"image/"==F.type.substring(0,6)},function(F){for(var C=0;C<F.length;C++)F[C]()});else{var I=this.editor.graph.getInsertPoint();this.importFiles([A.getAsFile()],I.x,I.y,this.maxImageSize);mxEvent.consume(g)}break}}}}catch(F){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=
function(){function d(){window.setTimeout(function(){k.innerHTML="&nbsp;";k.focus();document.execCommand("selectAll",!1,null)},0)}var g=this.editor.graph,k=document.createElement("div");k.setAttribute("autocomplete","off");k.setAttribute("autocorrect","off");k.setAttribute("autocapitalize","off");k.setAttribute("spellcheck","false");k.style.textRendering="optimizeSpeed";k.style.fontFamily="monospace";k.style.wordBreak="break-all";k.style.background="transparent";k.style.color="transparent";k.style.position=
-"absolute";k.style.whiteSpace="nowrap";k.style.overflow="hidden";k.style.display="block";k.style.fontSize="1";k.style.zIndex="-1";k.style.resize="none";k.style.outline="none";k.style.width="1px";k.style.height="1px";mxUtils.setOpacity(k,0);k.contentEditable=!0;k.innerHTML="&nbsp;";var m=!1;this.keyHandler.bindControlKey(88,null);this.keyHandler.bindControlKey(67,null);this.keyHandler.bindControlKey(86,null);mxEvent.addListener(document,"keydown",mxUtils.bind(this,function(y){var z=mxEvent.getSource(y);
-null==g.container||!g.isEnabled()||g.isMouseDown||g.isEditing()||null!=this.dialog||"INPUT"==z.nodeName||"TEXTAREA"==z.nodeName||"true"==z.contentEditable||224!=y.keyCode&&(mxClient.IS_MAC||17!=y.keyCode)&&(!mxClient.IS_MAC||91!=y.keyCode&&93!=y.keyCode)||m||(k.style.left=g.container.scrollLeft+10+"px",k.style.top=g.container.scrollTop+10+"px",y=g.container.scrollLeft,z=g.container.scrollTop,g.container.appendChild(k),m=!0,k.focus(),document.execCommand("selectAll",!1,null),g.container.scrollLeft=
-y,g.container.scrollTop=z)}));mxEvent.addListener(document,"keyup",mxUtils.bind(this,function(y){var z=y.keyCode;window.setTimeout(mxUtils.bind(this,function(){!m||224!=z&&17!=z&&91!=z&&93!=z||(m=!1,g.isEditing()||null!=this.dialog||null==g.container||g.container.focus(),k.parentNode.removeChild(k),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(k,"copy",mxUtils.bind(this,function(y){if(g.isEnabled())try{mxClipboard.copy(g),this.copyCells(k),d()}catch(z){this.handleError(z)}}));
-mxEvent.addListener(k,"cut",mxUtils.bind(this,function(y){if(g.isEnabled())try{mxClipboard.copy(g),this.copyCells(k,!0),d()}catch(z){this.handleError(z)}}));mxEvent.addListener(k,"paste",mxUtils.bind(this,function(y){if(g.isEnabled()&&!g.isCellLocked(g.getDefaultParent()))try{if(k.innerHTML="&nbsp;",k.focus(),null!=y.clipboardData&&(Graph.removePasteFormatting(k.firstChild),this.pasteCells(y,k,!0,!0)),!mxEvent.isConsumed(y)){var z=g.container.scrollLeft,I=g.container.scrollTop;window.setTimeout(mxUtils.bind(this,
-function(){try{g.container.scrollLeft=z,g.container.scrollTop=I,Graph.removePasteFormatting(k.firstChild),this.pasteCells(y,k,!1,!0)}catch(F){this.handleError(F)}}),0)}}catch(F){this.handleError(F)}}),!0);var t=this.isSelectionAllowed;this.isSelectionAllowed=function(y){return mxEvent.getSource(y)==k?!0:t.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(d,g){mxSettings.setUi(d);(g=this.doSetCurrentTheme(d)||g)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=
+"absolute";k.style.whiteSpace="nowrap";k.style.overflow="hidden";k.style.display="block";k.style.fontSize="1";k.style.zIndex="-1";k.style.resize="none";k.style.outline="none";k.style.width="1px";k.style.height="1px";mxUtils.setOpacity(k,0);k.contentEditable=!0;k.innerHTML="&nbsp;";var m=!1;this.keyHandler.bindControlKey(88,null);this.keyHandler.bindControlKey(67,null);this.keyHandler.bindControlKey(86,null);mxEvent.addListener(document,"keydown",mxUtils.bind(this,function(x){var A=mxEvent.getSource(x);
+null==g.container||!g.isEnabled()||g.isMouseDown||g.isEditing()||null!=this.dialog||"INPUT"==A.nodeName||"TEXTAREA"==A.nodeName||"true"==A.contentEditable||224!=x.keyCode&&(mxClient.IS_MAC||17!=x.keyCode)&&(!mxClient.IS_MAC||91!=x.keyCode&&93!=x.keyCode)||m||(k.style.left=g.container.scrollLeft+10+"px",k.style.top=g.container.scrollTop+10+"px",x=g.container.scrollLeft,A=g.container.scrollTop,g.container.appendChild(k),m=!0,k.focus(),document.execCommand("selectAll",!1,null),g.container.scrollLeft=
+x,g.container.scrollTop=A)}));mxEvent.addListener(document,"keyup",mxUtils.bind(this,function(x){var A=x.keyCode;window.setTimeout(mxUtils.bind(this,function(){!m||224!=A&&17!=A&&91!=A&&93!=A||(m=!1,g.isEditing()||null!=this.dialog||null==g.container||g.container.focus(),k.parentNode.removeChild(k),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(k,"copy",mxUtils.bind(this,function(x){if(g.isEnabled())try{mxClipboard.copy(g),this.copyCells(k),d()}catch(A){this.handleError(A)}}));
+mxEvent.addListener(k,"cut",mxUtils.bind(this,function(x){if(g.isEnabled())try{mxClipboard.copy(g),this.copyCells(k,!0),d()}catch(A){this.handleError(A)}}));mxEvent.addListener(k,"paste",mxUtils.bind(this,function(x){if(g.isEnabled()&&!g.isCellLocked(g.getDefaultParent()))try{if(k.innerHTML="&nbsp;",k.focus(),null!=x.clipboardData&&(Graph.removePasteFormatting(k.firstChild),this.pasteCells(x,k,!0,!0)),!mxEvent.isConsumed(x)){var A=g.container.scrollLeft,I=g.container.scrollTop;window.setTimeout(mxUtils.bind(this,
+function(){try{g.container.scrollLeft=A,g.container.scrollTop=I,Graph.removePasteFormatting(k.firstChild),this.pasteCells(x,k,!1,!0)}catch(F){this.handleError(F)}}),0)}}catch(F){this.handleError(F)}}),!0);var u=this.isSelectionAllowed;this.isSelectionAllowed=function(x){return mxEvent.getSource(x)==k?!0:u.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(d,g){mxSettings.setUi(d);(g=this.doSetCurrentTheme(d)||g)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=
function(d){return""==d||"dark"==d||"default"==d||"kennedy"==d||null==d};EditorUi.prototype.doSetCurrentTheme=function(d,g){if(null==d||""==d)d=App.isSimpleThemePreferred()?"simple":"kennedy";var k="simple"==Editor.currentTheme&&this.isDefaultTheme(d)||this.isDefaultTheme(Editor.currentTheme)&&"simple"==d||d==Editor.currentTheme;if(k||g)g=this.saveScrollState(),this.editor.graph.stopEditing(!1),Editor.currentTheme=d,this.switchTheme(d),this.fireEvent(new mxEventObject("currentThemeChanged")),this.editor.fireEvent(new mxEventObject("statusChanged")),
this.restoreScrollState(g);return k};EditorUi.prototype.saveScrollState=function(d){var g=this.editor.graph.view.translate,k=this.diagramContainer.scrollLeft,m=this.diagramContainer.scrollTop;null!=this.embedViewport&&(Editor.inlineFullscreen?(k-=this.embedViewport.x,m-=this.embedViewport.y):(k+=this.embedViewport.x,m+=this.embedViewport.y));g={x:k,y:m,tx:g.x,ty:g.y};d&&(g.boundingRect=this.diagramContainer.getBoundingClientRect());return g};EditorUi.prototype.restoreScrollState=function(d){var g=
this.editor.graph.view.scale,k=this.editor.graph.view.translate;if(null!=d.boundingRect){var m=this.diagramContainer.getBoundingClientRect();d.x-=d.boundingRect.x-m.x;d.y-=d.boundingRect.y-m.y}this.diagramContainer.scrollLeft=d.x+(k.x-d.tx)*g;this.diagramContainer.scrollTop=d.y+(k.y-d.ty)*g};EditorUi.prototype.installStatusMinimizer=function(d){d=null!=d?d:this.statusContainer.parentNode;var g=!1;mxEvent.addListener(d,"mouseenter",mxUtils.bind(this,function(){"sketch"==Editor.currentTheme&&""!=this.editor.getStatus()&&
-(this.statusContainer.style.display="")}));mxEvent.addListener(d,"mouseleave",mxUtils.bind(this,function(){"sketch"!=Editor.currentTheme||g||(this.statusContainer.style.display="none")}));var k=mxUtils.bind(this,function(){if("sketch"==Editor.currentTheme){var m=null!=this.statusContainer.firstChild&&"function"===typeof this.statusContainer.firstChild.getAttribute?this.statusContainer.firstChild:null;g=null!=m&&null!=m.getAttribute("class");if(!g&&null!=m){m=m.getAttribute("title");var t=this.getCurrentFile();
-t=null!=t?t.savingStatusKey:DrawioFile.prototype.savingStatusKey;m==mxResources.get(t)+"..."&&(this.statusContainer.innerHTML='<div><img title="'+mxUtils.htmlEntities(mxResources.get(t))+'..."src="'+Editor.tailSpin+'"></div>',g=!0)}this.statusContainer.style.display="none";m=32>=d.clientWidth;d.style.visibility=m&&""==this.editor.getStatus()?"hidden":"";if(m||g)this.statusContainer.style.display="",g=!0}else"simple"==Editor.currentTheme?(this.statusContainer.style.display="",this.statusContainer.style.display=
+(this.statusContainer.style.display="")}));mxEvent.addListener(d,"mouseleave",mxUtils.bind(this,function(){"sketch"!=Editor.currentTheme||g||(this.statusContainer.style.display="none")}));var k=mxUtils.bind(this,function(){if("sketch"==Editor.currentTheme){var m=null!=this.statusContainer.firstChild&&"function"===typeof this.statusContainer.firstChild.getAttribute?this.statusContainer.firstChild:null;g=null!=m&&null!=m.getAttribute("class");if(!g&&null!=m){m=m.getAttribute("title");var u=this.getCurrentFile();
+u=null!=u?u.savingStatusKey:DrawioFile.prototype.savingStatusKey;m==mxResources.get(u)+"..."&&(this.statusContainer.innerHTML='<div><img title="'+mxUtils.htmlEntities(mxResources.get(u))+'..."src="'+Editor.tailSpin+'"></div>',g=!0)}this.statusContainer.style.display="none";m=32>=d.clientWidth;d.style.visibility=m&&""==this.editor.getStatus()?"hidden":"";if(m||g)this.statusContainer.style.display="",g=!0}else"simple"==Editor.currentTheme?(this.statusContainer.style.display="",this.statusContainer.style.display=
0==this.statusContainer.clientWidth?"none":""):this.statusContainer.style.display=""});this.editor.addListener("statusChanged",k);k()};EditorUi.prototype.switchTheme=function(d){this.destroyWindows(!0);this.updateDefaultStyles();this.switchThemeConstants(d);this.switchCssForTheme(d);this.createMainMenuForTheme(d);this.createFooterMenuForTheme(d);this.createPickerMenuForTheme(d);this.createMenubarForTheme(d);"sketch"==d&&(this.createFormatWindow(),this.createShapesWindow())};EditorUi.prototype.getWindows=
function(){var d=[this.sidebarWindow,this.formatWindow,this.freehandWindow];null!=this.actions&&(d=d.concat([this.actions.outlineWindow,this.actions.layersWindow]));null!=this.menus&&(d=d.concat([this.menus.tagsWindow,this.menus.findWindow,this.menus.findReplaceWindow,this.menus.commentsWindow]));return d};EditorUi.prototype.fitWindows=function(){for(var d=this.getWindows(),g=0;g<d.length;g++)null!=d[g]&&d[g].window.fit()};EditorUi.prototype.hideWindows=function(){for(var d=this.getWindows(),g=0;g<
d.length;g++)null!=d[g]&&d[g].window.setVisible(!1)};EditorUi.prototype.destroyWindows=function(d){null==this.sidebarWindow||d||(this.sidebarWindow.destroy(),this.sidebarWindow=null);null==this.formatWindow||d||(this.formatWindow.destroy(),this.formatWindow=null);null!=this.freehandWindow&&(this.freehandWindow.destroy(),this.freehandWindow=null);null!=this.actions.outlineWindow&&(this.actions.outlineWindow.destroy(),this.actions.outlineWindow=null);null!=this.actions.layersWindow&&(this.actions.layersWindow.destroy(),
@@ -13302,18 +13346,18 @@ this.menus.commentsWindow=null))};EditorUi.prototype.switchThemeConstants=functi
120;null==urlParams.grid&&(g.defaultGridEnabled=!1);null==urlParams.pv&&(g.defaultPageVisible=!1)}else Editor.fitWindowBorders=null};EditorUi.prototype.isPageMenuVisible=function(){return null!=this.pages&&("0"!=urlParams.pages||1<this.pages.length||Editor.pagesVisible)};EditorUi.prototype.switchCssForTheme=function(d){};EditorUi.prototype.createMainMenuForTheme=function(d){};EditorUi.prototype.createFooterMenuForTheme=function(d){};EditorUi.prototype.createPickerMenuForTheme=function(d){};EditorUi.prototype.getNetworkStatus=
function(){var d=null;if(this.isOffline(!0))d=mxResources.get("offline");else{var g=this.getCurrentFile();null!=g&&(g.invalidChecksum?d=mxResources.get("error")+": "+mxResources.get("checksum"):null==g.sync||g.sync.enabled&&g.sync.isRealtimeActive()||"atlassian"==this.getServiceName()?null==g.sync||g.sync.isConnected()?g.isRealtimeEnabled()&&g.isRealtimeSupported()&&1<g.getRealtimeState()&&(d=g.getRealtimeError(),d=mxResources.get("realtimeCollaboration")+": "+(null!=d&&null!=d.message?d.message:
mxResources.get("error"))):d=mxResources.get("notConnected"):d=mxResources.get("realtimeCollaboration")+": "+mxResources.get("disabled"))}return d};EditorUi.prototype.createMenubarForTheme=function(d){null!=this.statusContainer&&(this.statusContainer.style.flexGrow="",this.statusContainer.style.flexShrink="",this.statusContainer.style.width="",this.statusContainer.style.marginTop="",this.statusContainer.style.justifyContent="",this.statusContainer.style.opacity="");null!=this.userElement&&this.menubarContainer.appendChild(this.userElement);
-null!=this.buttonContainer&&null!=this.menubar&&(this.buttonContainer.style.display="",this.menubar.container.appendChild(this.buttonContainer))};EditorUi.prototype.createMenu=function(d,g,k,m){k=null!=k?k:"geButton";var t=this.menus.get(d);m=this.menubar.addMenu(mxResources.get(d),t.funct,null,m);m.className=k;m.setAttribute("title",mxResources.get(d));this.menus.menuCreated(t,m,k);null!=g&&(m.style.backgroundImage="url("+g+")",m.innerText="");return m};EditorUi.prototype.addButton=function(d,g,
-k,m){d=this.createToolbarButton(d,g,k);m=null!=m?m:this.container;m.appendChild(d);return d};EditorUi.prototype.createToolbarButton=function(d,g,k){var m=document.createElement("a");m.className="geButton";null!=d&&"data:"==d.substring(0,5)&&(m.style.backgroundImage="url("+d+")");null!=g&&m.setAttribute("title",g);null!=k&&mxEvent.addListener(m,"click",function(t){"disabled"!=m.getAttribute("disabled")&&k(t);mxEvent.consume(t)});mxEvent.preventDefault(m);return m};EditorUi.prototype.createMenuItem=
-function(d,g,k){var m=this.actions.get(d),t=null!=m?m.funct:null,y=this.createToolbarButton(g,mxResources.get(d)+(null!=m&&null!=m.shortcut?" ("+m.shortcut+")":""),t);null==m||k||(d=function(){m.isEnabled()?y.removeAttribute("disabled"):y.setAttribute("disabled","disabled")},this.editor.graph.addListener("enabledChanged",d),m.addListener("stateChanged",d),d());return y};EditorUi.prototype.createFormatWindow=function(){if(null==this.formatWindow){var d=Math.max(10,this.diagramContainer.parentNode.clientWidth-
-256),g="1"==urlParams.embedInline?580:"1"==urlParams.sketch?580:Math.min(566,this.editor.graph.container.clientHeight-10);this.formatWindow=new WrapperWindow(this,mxResources.get("format"),d,60,240,g,mxUtils.bind(this,function(t){t.appendChild(this.formatContainer)}));this.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.formatWindow.window.fit()}));var k=this.formatWindow.window.toggleMinimized,m=240;this.formatWindow.window.toggleMinimized=function(){k.apply(this,arguments);
-this.minimized?(m=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+m-140+"px"):(this.div.style.width=m+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-m+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(t){mxEvent.getSource(t)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}));
-this.formatWindow.window.minimumSize=new mxRectangle(0,0,240,80);"sketch"==Editor.currentTheme?window.setTimeout(mxUtils.bind(this,mxUtils.bind(this,function(){var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,y=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.formatWindow.window.setVisible(!0);(1E3>t||690>y)&&this.formatWindow.window.toggleMinimized()}),0)):this.formatWindow.window.setVisible(!1)}};var v=EditorUi.prototype.toggleFormatPanel;
-EditorUi.prototype.toggleFormatPanel=function(d){var g=this.formatWindow;null!=g?g.window.setVisible(null!=d?d:!this.isFormatPanelVisible()):v.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(d){if(this.isShapesPanelVisible()!=d){var g=EditorUi.prototype.hsplitPosition;0==g&&(g=this.defaultSidebarWidth);var k=this.hsplitPosition,m=mxUtils.bind(this,function(){this.hsplitPosition=t;this.refresh();this.diagramContainer.scrollLeft-=k-this.hsplitPosition}),t=d?g:0,y=Editor.transitionDelay;
-mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==t?"translateX(0)":"translateX(-100%)");0!=t&&m();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==t?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform "+y+"s 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==t&&m()}),1E3*y)}),0)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var D=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var d=this.formatWindow;return null!=d?d.window.isVisible():D.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(d){var g=
-mxUtils.bind(this,function(z,I){var F=this.menus.get(z);z=this.createMenuElement(I,mxUtils.bind(this,function(){F.funct.apply(this,arguments)}));z.setAttribute("title",I);z.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;";z.className="geButton";d.parentNode.appendChild(z);return z});if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=this.actions.get("newLibrary"))g=document.createElement("div"),
+null!=this.buttonContainer&&null!=this.menubar&&(this.buttonContainer.style.display="",this.menubar.container.appendChild(this.buttonContainer))};EditorUi.prototype.createMenu=function(d,g,k,m){k=null!=k?k:"geButton";var u=this.menus.get(d);m=this.menubar.addMenu(mxResources.get(d),u.funct,null,m);m.className=k;m.setAttribute("title",mxResources.get(d));this.menus.menuCreated(u,m,k);null!=g&&(m.style.backgroundImage="url("+g+")",m.innerText="");return m};EditorUi.prototype.addButton=function(d,g,
+k,m){d=this.createToolbarButton(d,g,k);m=null!=m?m:this.container;m.appendChild(d);return d};EditorUi.prototype.createToolbarButton=function(d,g,k){var m=document.createElement("a");m.className="geButton";null!=d&&"data:"==d.substring(0,5)&&(m.style.backgroundImage="url("+d+")");null!=g&&m.setAttribute("title",g);null!=k&&mxEvent.addListener(m,"click",function(u){"disabled"!=m.getAttribute("disabled")&&k(u);mxEvent.consume(u)});mxEvent.preventDefault(m);return m};EditorUi.prototype.createMenuItem=
+function(d,g,k){var m=this.actions.get(d),u=null!=m?m.funct:null,x=this.createToolbarButton(g,mxResources.get(d)+(null!=m&&null!=m.shortcut?" ("+m.shortcut+")":""),u);null==m||k||(d=function(){m.isEnabled()?x.removeAttribute("disabled"):x.setAttribute("disabled","disabled")},this.editor.graph.addListener("enabledChanged",d),m.addListener("stateChanged",d),d());return x};EditorUi.prototype.createFormatWindow=function(){if(null==this.formatWindow){var d=Math.max(10,this.diagramContainer.parentNode.clientWidth-
+256),g="1"==urlParams.embedInline?580:"1"==urlParams.sketch?580:Math.min(566,this.editor.graph.container.clientHeight-10);this.formatWindow=new WrapperWindow(this,mxResources.get("format"),d,60,240,g,mxUtils.bind(this,function(u){u.appendChild(this.formatContainer)}));this.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.formatWindow.window.fit()}));var k=this.formatWindow.window.toggleMinimized,m=240;this.formatWindow.window.toggleMinimized=function(){k.apply(this,arguments);
+this.minimized?(m=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+m-140+"px"):(this.div.style.width=m+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-m+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(u){mxEvent.getSource(u)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}));
+this.formatWindow.window.minimumSize=new mxRectangle(0,0,240,80);"sketch"==Editor.currentTheme?window.setTimeout(mxUtils.bind(this,mxUtils.bind(this,function(){var u=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,x=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.formatWindow.window.setVisible(!0);(1E3>u||690>x)&&this.formatWindow.window.toggleMinimized()}),0)):this.formatWindow.window.setVisible(!1)}};var t=EditorUi.prototype.toggleFormatPanel;
+EditorUi.prototype.toggleFormatPanel=function(d){var g=this.formatWindow;null!=g?g.window.setVisible(null!=d?d:!this.isFormatPanelVisible()):t.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(d){if(this.isShapesPanelVisible()!=d){var g=EditorUi.prototype.hsplitPosition;0==g&&(g=this.defaultSidebarWidth);var k=this.hsplitPosition,m=mxUtils.bind(this,function(){this.hsplitPosition=u;this.refresh();this.diagramContainer.scrollLeft-=k-this.hsplitPosition}),u=d?g:0,x=Editor.transitionDelay;
+mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==u?"translateX(0)":"translateX(-100%)");0!=u&&m();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==u?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform "+x+"s 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==u&&m()}),1E3*x)}),0)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var E=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var d=this.formatWindow;return null!=d?d.window.isVisible():E.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(d){var g=
+mxUtils.bind(this,function(A,I){var F=this.menus.get(A);A=this.createMenuElement(I,mxUtils.bind(this,function(){F.funct.apply(this,arguments)}));A.setAttribute("title",I);A.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;";A.className="geButton";d.parentNode.appendChild(A);return A});if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=this.actions.get("newLibrary"))g=document.createElement("div"),
g.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;",g.className="geButton",g.style.left="0px",g.style.right="50%",mxUtils.write(g,mxResources.get("newLibrary")),d.appendChild(g),mxEvent.addListener(g,"click",this.actions.get("newLibrary").funct),g=g.cloneNode(!1),g.style.left="50%",g.style.right="0px",mxUtils.write(g,mxResources.get("openLibrary")),d.appendChild(g),mxEvent.addListener(g,"click",this.actions.get("openLibrary").funct);else{var k=
-g("newLibrary","");k.style.left="0px";k.style.right="50%";var m=document.createElement("span");k.appendChild(m);var t=g("openLibraryFrom","");t.style.borderLeftWidth="1px";t.style.left="50%";t.style.right="0px";var y=document.createElement("span");t.appendChild(y);this.dependsOnLanguage(mxUtils.bind(this,function(){m.innerHTML="";mxUtils.write(m,mxResources.get("newLibrary"));k.setAttribute("title",mxResources.get("newLibrary"));y.innerHTML="";mxUtils.write(y,mxResources.get("openLibraryFrom"));t.setAttribute("title",
+g("newLibrary","");k.style.left="0px";k.style.right="50%";var m=document.createElement("span");k.appendChild(m);var u=g("openLibraryFrom","");u.style.borderLeftWidth="1px";u.style.left="50%";u.style.right="0px";var x=document.createElement("span");u.appendChild(x);this.dependsOnLanguage(mxUtils.bind(this,function(){m.innerHTML="";mxUtils.write(m,mxResources.get("newLibrary"));k.setAttribute("title",mxResources.get("newLibrary"));x.innerHTML="";mxUtils.write(x,mxResources.get("openLibraryFrom"));u.setAttribute("title",
mxResources.get("openLibraryFrom"))}))}d.appendChild(this.sidebar.container);d.style.overflow="hidden"};EditorUi.prototype.createShapesWindow=function(){if(null==this.sidebarWindow){var d=Math.min(this.diagramContainer.parentNode.clientWidth-10,218),g="1"==urlParams.embedInline?650:Math.min(this.diagramContainer.parentNode.clientHeight,650),k="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;this.sidebarWindow=new WrapperWindow(this,mxResources.get("shapes"),k&&"1"!=urlParams.embedInline?
66:10,k&&"1"!=urlParams.embedInline?Math.max(30,(this.diagramContainer.parentNode.clientHeight-g)/2):56,d-6,g-6,mxUtils.bind(this,function(m){this.createShapesPanel(m)}));this.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.sidebarWindow.window.fit()}));this.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90);this.sidebarWindow.window.setVisible(!1)}};EditorUi.prototype.setSketchMode=function(d){this.doSetSketchMode(d);null==urlParams.rough&&(mxSettings.settings.sketchMode=
d,mxSettings.save());this.fireEvent(new mxEventObject("sketchModeChanged"))};EditorUi.prototype.setAndPersistDarkMode=function(d){var g=d;"auto"==d&&(g=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode(g);mxSettings.settings.darkMode=d;mxSettings.save();d=mxSettings.getUi();null==urlParams.ui&&"dark"==d&&this.setCurrentTheme("kennedy",!0)};EditorUi.prototype.setAndPersistLanguage=function(d){this.spinner.spin(document.body,mxResources.get("working"))&&
@@ -13325,8 +13369,8 @@ function(d){mxUtils.lightDarkColorSupported&&(Editor.darkMode=d,d=mxUtils.isAnce
EditorUi.prototype.setPagesVisible=function(d){Editor.pagesVisible!=d&&(Editor.pagesVisible=d,mxSettings.settings.pagesVisible=d,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototype.setSidebarTitles=function(d,g){this.sidebar.sidebarTitles!=d&&(this.sidebar.sidebarTitles=d,Editor.isSettingsEnabled()&&g&&(mxSettings.settings.sidebarTitles=d,mxSettings.save()),this.fireEvent(new mxEventObject("sidebarTitlesChanged")))};EditorUi.prototype.setInlineFullscreen=
function(d){Editor.inlineFullscreen!=d&&(this.diagramContainer.setAttribute("data-scrollState",JSON.stringify(this.saveScrollState(!0))),(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:d,rect:this.diagramContainer.getBoundingClientRect()}),"*"))};EditorUi.prototype.inlineSizeChanged=function(){var d=this.sketchFooterMenuElt,g=this.sketchMainMenuElt,k=this.sketchPickerMenuElt;if(Editor.inlineFullscreen)g.style.left="10px",g.style.top="10px",k.style.left="10px",
k.style.top="60px",d.style.top="10px",d.style.right="12px",d.style.left="",null==this.diagramContainer.getAttribute("data-bounds")&&(this.diagramContainer.setAttribute("data-bounds",this.diagramContainer.style.top+" "+this.diagramContainer.style.left+" "+this.diagramContainer.style.width+" "+this.diagramContainer.style.height),this.diagramContainer.style.top="0px",this.diagramContainer.style.left="0px",this.diagramContainer.style.bottom="0px",this.diagramContainer.style.right="0px",this.diagramContainer.style.width=
-"",this.diagramContainer.style.height="");else{var m=this.diagramContainer.getAttribute("data-bounds");if(null!=m){this.diagramContainer.removeAttribute("data-bounds");var t=m.split(" ");m=mxUtils.getDocumentSize();this.diagramContainer.style.top=t[0];this.diagramContainer.style.left=t[1];var y=parseInt(t[2]);t=parseInt(t[3]);y=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,y):y,m.width-80);t=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,t):t,m.height-80);this.diagramContainer.style.width=
-y+"px";this.diagramContainer.style.height=t+"px";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",rect:this.diagramContainer.getBoundingClientRect()}),"*")}g.style.left=this.diagramContainer.offsetLeft+"px";g.style.top=this.diagramContainer.offsetTop-g.offsetHeight-4+"px";k.style.display="";k.style.left=this.diagramContainer.offsetLeft-k.offsetWidth-4+"px";k.style.top=this.diagramContainer.offsetTop+
+"",this.diagramContainer.style.height="");else{var m=this.diagramContainer.getAttribute("data-bounds");if(null!=m){this.diagramContainer.removeAttribute("data-bounds");var u=m.split(" ");m=mxUtils.getDocumentSize();this.diagramContainer.style.top=u[0];this.diagramContainer.style.left=u[1];var x=parseInt(u[2]);u=parseInt(u[3]);x=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,x):x,m.width-80);u=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,u):u,m.height-80);this.diagramContainer.style.width=
+x+"px";this.diagramContainer.style.height=u+"px";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",rect:this.diagramContainer.getBoundingClientRect()}),"*")}g.style.left=this.diagramContainer.offsetLeft+"px";g.style.top=this.diagramContainer.offsetTop-g.offsetHeight-4+"px";k.style.display="";k.style.left=this.diagramContainer.offsetLeft-k.offsetWidth-4+"px";k.style.top=this.diagramContainer.offsetTop+
"px";d.style.left=this.diagramContainer.offsetLeft+this.diagramContainer.offsetWidth-d.offsetWidth+"px";d.style.top=g.style.top;d.style.right="";this.bottomResizer.style.left=this.diagramContainer.offsetLeft+(this.diagramContainer.offsetWidth-this.bottomResizer.offsetWidth)/2+"px";this.bottomResizer.style.top=this.diagramContainer.offsetTop+this.diagramContainer.offsetHeight-this.bottomResizer.offsetHeight/2-1+"px";this.rightResizer.style.left=this.diagramContainer.offsetLeft+this.diagramContainer.offsetWidth-
this.rightResizer.offsetWidth/2-1+"px";this.rightResizer.style.top=this.diagramContainer.offsetTop+(this.diagramContainer.offsetHeight-this.bottomResizer.offsetHeight)/2+"px"}this.bottomResizer.style.visibility=Editor.inlineFullscreen?"hidden":"";this.rightResizer.style.visibility=this.bottomResizer.style.visibility;g.style.visibility="";d.style.visibility=""};EditorUi.prototype.doSetSketchMode=function(d){Editor.sketchMode!=d&&(Editor.sketchMode=d,this.updateDefaultStyles())};EditorUi.prototype.updateDefaultStyles=
function(){var d=this.editor.graph;d.defaultVertexStyle=mxUtils.clone(Graph.prototype.defaultVertexStyle);d.defaultEdgeStyle=mxUtils.clone(Graph.prototype.defaultEdgeStyle);if(null==Editor.config||null==Editor.config.defaultVertexStyle&&null==Editor.config.defaultEdgeStyle)"simple"==Editor.currentTheme||"1"==urlParams.embedInline?(d.vertexFontSize=16,d.edgeFontSize=d.vertexFontSize-4):"sketch"==Editor.currentTheme?(d.vertexFontSize=20,d.edgeFontSize=d.vertexFontSize-4):(d.vertexFontSize=Graph.prototype.vertexFontSize,
@@ -13340,208 +13384,208 @@ Editor.sketchDefaultJiggle,d.defaultEdgeStyle.hachureGap="4")}this.menus.default
mxSettings.save()}));d.pageFormat=null!=d.defaultPageFormat?d.defaultPageFormat:mxSettings.getPageFormat();this.addListener("pageFormatChanged",mxUtils.bind(this,function(g,k){mxSettings.setPageFormat(d.pageFormat);mxSettings.save()}));d.view.defaultDarkGridColor=mxSettings.getGridColor(!0);d.view.defaultGridColor=mxSettings.getGridColor(!1);d.view.gridColor="light-dark("+d.view.defaultGridColor+", "+d.view.defaultDarkGridColor+")";this.addListener("gridColorChanged",mxUtils.bind(this,function(g,
k){mxSettings.setGridColor(d.view.defaultGridColor,!1);mxSettings.setGridColor(d.view.defaultDarkGridColor,!0);mxSettings.save()}));if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(g,k){mxSettings.setAutosave(this.editor.autosave);mxSettings.save()})),this.editor.autosave=mxSettings.getAutosave();if(!this.editor.chromeless||this.editor.editable)null!=mxSettings.settings.enableAnimations&&(Editor.enableAnimations=mxSettings.settings.enableAnimations),
this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(g,k){mxSettings.settings.enableAnimations=Editor.enableAnimations;mxSettings.save()}));null!=this.sidebar&&(null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes?(this.sidebar.searchShapes(decodeURIComponent(urlParams["search-shapes"])),this.sidebar.showEntries("search")):(this.sidebar.showPalette("search",mxSettings.settings.search),this.editor.chromeless&&!this.editor.editable||!(mxSettings.settings.isNew||8>=parseInt(mxSettings.settings.version||
-0))||(this.toggleScratchpad(),mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);mxSettings.save()})}};EditorUi.prototype.copyImage=function(d,g,k){try{null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this,function(m,t){try{this.spinner.stop();var y=this.createImageDataUri(m,g,"png"),z=parseInt(t.getAttribute("width")),
-I=parseInt(t.getAttribute("height"));this.writeImageToClipboard(y,z,I,mxUtils.bind(this,function(F){this.handleError(F)}))}catch(F){this.handleError(F)}}),null,null,null,mxUtils.bind(this,function(m){this.spinner.stop();this.handleError(m)}),null,null,null!=k?k:4,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<d.length?d:null)}catch(m){this.handleError(m)}};EditorUi.prototype.copyCells=function(d,g){var k=this.editor.graph;if(k.isSelectionEmpty())d.innerText=
-"";else{var m=mxUtils.sortCells(k.model.getTopmostCells(k.getSelectionCells())),t=mxUtils.getXml(k.encodeCells(m));mxUtils.setTextContent(d,encodeURIComponent(t));g?(k.removeCells(m,!1),k.lastPasteXml=null):(k.lastPasteXml=t,k.pasteCounter=0);d.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var d=null;if(Editor.enableNativeCipboard){var g=this.editor.graph;g.isSelectionEmpty()||(d=mxUtils.sortCells(g.getExportableCells(g.model.getTopmostCells(g.getSelectionCells()))),
-g=mxUtils.getXml(g.encodeCells(d)),navigator.clipboard.writeText(g))}return d};EditorUi.prototype.pasteXml=function(d,g,k,m,t){t=null!=t?t:!0;var y=this.editor.graph,z=null;y.lastPasteXml==d?y.pasteCounter++:(y.lastPasteXml=d,y.pasteCounter=0);var I=y.pasteCounter*y.gridSize;if(k||this.isCompatibleString(d))z=this.importXml(d,I,I),y.setSelectionCells(z);else if(g&&1==y.getSelectionCount()){t=y.getStartEditingCell(y.getSelectionCell(),m);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(d)&&"image"==y.getCurrentCellStyle(t)[mxConstants.STYLE_SHAPE])y.setCellStyles(mxConstants.STYLE_IMAGE,
-d,[t]);else{y.model.beginUpdate();try{y.labelChanged(t,d),Graph.isLink(d)&&y.setLinkForCell(t,d)}finally{y.model.endUpdate()}}y.setSelectionCell(t)}else z=y.getInsertPoint(),y.isMouseInsertPoint()&&(I=0,y.lastPasteXml==d&&0<y.pasteCounter&&y.pasteCounter--),z=this.insertTextAt(d,z.x+I,z.y+I,t),y.setSelectionCells(z);y.isSelectionEmpty()||(y.scrollCellToVisible(y.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(y.view.getState(y.getSelectionCell())));return z};EditorUi.prototype.pasteCells=
-function(d,g,k,m){if(!mxEvent.isConsumed(d)){var t=g,y=!1;if(k&&null!=d.clipboardData&&d.clipboardData.getData){var z=d.clipboardData.getData("text/plain"),I=!1;if(null!=z&&0<z.length&&"%3CmxGraphModel%3E"==z.substring(0,18))try{var F=decodeURIComponent(z);this.isCompatibleString(F)&&(I=!0,z=F)}catch(u){}I=I?null:d.clipboardData.getData("text/html");null!=I&&0<I.length?(t=this.parseHtmlData(I),y="text/plain"!=t.getAttribute("data-type")):null!=z&&0<z.length&&(t=document.createElement("div"),mxUtils.setTextContent(t,
-I))}z=t.getElementsByTagName("span");if(null!=z&&0<z.length&&"application/vnd.lucid.chart.objects"===z[0].getAttribute("data-lucid-type"))k=z[0].getAttribute("data-lucid-content"),null!=k&&0<k.length&&(this.convertLucidChart(k,mxUtils.bind(this,function(u){var x=this.editor.graph;x.lastPasteXml==u?x.pasteCounter++:(x.lastPasteXml=u,x.pasteCounter=0);var J=x.pasteCounter*x.gridSize;x.setSelectionCells(this.importXml(u,J,J));x.scrollCellToVisible(x.getSelectionCell())}),mxUtils.bind(this,function(u){this.handleError(u)})),
-mxEvent.consume(d));else{var C=!1,Q="";Q=y?null!=t.textContent&&"<mxfile"==t.textContent.substring(0,7)&&"</mxfile>"==t.textContent.substring(t.textContent.length-9)||"<mxGraphModel"==t.textContent.substring(0,13)&&"</mxGraphModel>"==t.textContent.substring(t.textContent.length-15)?t.textContent.replace(/\u00a0/g," "):t.innerHTML:mxUtils.trim(null==t.innerText?mxUtils.getTextContent(t):t.innerText);try{var S=Q.lastIndexOf("%3E");0<=S&&S<Q.length-3&&(Q=Q.substring(0,S+3))}catch(u){}try{z=t.getElementsByTagName("span"),
-(F=null!=z&&0<z.length?mxUtils.trim(decodeURIComponent(z[0].textContent)):decodeURIComponent(Q))&&(this.isCompatibleString(F)||0==F.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(C=!0,Q=F)}catch(u){}try{if(null!=Q&&0<Q.length){if(0==Q.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var V=mxUtils.bind(this,function(){try{Q=(new MiroImporter).importMiroJson(JSON.parse(Q)),this.pasteXml(Q,m,C,d)}catch(u){console.log("Miro import error:",u)}});"undefined"===typeof MiroImporter?
-mxscript("js/diagramly/miro/MiroImporter.js",V):V()}else this.pasteXml(Q,m,C,d,y);try{mxEvent.consume(d)}catch(u){}}else if(!k){var P=this.editor.graph;P.lastPasteXml=null;P.pasteCounter=0}}catch(u){this.handleError(u)}}}g.innerHTML="&nbsp;"};EditorUi.prototype.showPrintDialog=function(d,g,k){var m=320;this.editor.graph.isEnabled()&&(m+=40);null!=this.pages&&1<this.pages.length&&(m+=40,this.editor.graph.isEnabled()||(m+=10));null==g||mxClient.IS_CHROMEAPP||"draw.io"!=this.getServiceName()||(m+=20);
-this.showDialog((new PrintDialog(this,d,g,k)).container,320,m,!0,!0)};EditorUi.prototype.print=function(d,g){var k=this.editor,m=k.graph,t=this.getPageIndex(this.currentPage),y=null!=t?t+1:1,z=mxUtils.bind(this,function(J,H,K,N){var M=J.useCssTransforms,n=J.currentTranslate,A=J.currentScale,E=J.view.translate,L=J.view.scale;J.useCssTransforms&&(J.useCssTransforms=!1,J.currentTranslate=new mxPoint(0,0),J.currentScale=1,J.view.translate=new mxPoint(0,0),J.view.scale=1);var O=J.getGraphBounds(),R=0,
-T=0,U=mxRectangle.fromRectangle(J.pageFormat),W=g.fit||g.crop||!J.pageVisible,X=g.scale;U.width=Math.ceil(U.width*J.pageScale);U.height=Math.ceil(U.height*J.pageScale);var Y=1;if(g.fit){Y=g.sheetsAcross;var Z=g.sheetsDown;isNaN(X)||(U.width=Math.ceil(U.width*X),U.height=Math.ceil(U.height*X));Y=Math.min(U.height*Z/(O.height/J.view.scale),U.width*Y/(O.width/J.view.scale))}else Y=isNaN(X)?1:X;Y*=1;!W&&J.pageVisible?(X=J.getPageLayout(),R-=X.x*U.width,T-=X.y*U.height):W=!0;g.crop&&(g.selection&&(O=m.getBoundingBox(m.getSelectionCells())),
-U.width=(O.width+1)*Y/J.view.scale,U.height=(O.height+1)*Y/J.view.scale);U.width=Math.ceil(1*U.width);U.height=Math.ceil(1*U.height);N=null!=N?"page/id,"+N:null;if(null==H){H=PrintDialog.createPrintPreview(J,Y,null,0,R,T,W);H.title=this.getBaseFilename(!0);H.pageSelector=!1;H.mathEnabled=!1;R=g.border;isNaN(R)||(H.pageMargin=R);g.selection&&(H.isCellVisible=function(ba){return J.isCellSelected(ba)});var ca=H.writeHead;H.writeHead=function(ba){ca.apply(this,arguments);mxClient.IS_GC&&(ba.writeln('<style type="text/css">'),
-ba.writeln("@media print {"),ba.writeln(".MathJax svg { shape-rendering: crispEdges; }"),ba.writeln("}"),ba.writeln("</style>"));null!=k.fontCss&&(ba.writeln('<style type="text/css">'),ba.writeln(mxUtils.htmlEntities(k.fontCss,!1,!1,!1)),ba.writeln("</style>"));for(var fa=J.getCustomFonts(),aa=0;aa<fa.length;aa++){var ja=fa[aa].name,ha=fa[aa].url;Graph.isCssFontUrl(ha)?ba.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(ha))+'" charset="UTF-8" type="text/css">'):
-(ba.writeln('<style type="text/css">'),ba.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(ja)+'";\nsrc: url("'+mxUtils.htmlEntities(ha)+'");\n}'),ba.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var ea=H.drawBackgroundImage;H.drawBackgroundImage=function(ba){ea.apply(this,arguments);null!=ba.node&&(EditorUi.embedSvgImages(ba.node),m.disableSvgLinks(ba.node,function(fa){fa.setAttribute("href","javascript:void(0)")}))}}var ia=H.addGraphFragment;H.addGraphFragment=function(ba,fa,aa,
-ja,ha,da){ia.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:ha.classList.add("geDisableMathJax")};g.grid&&(H.gridSize=J.gridSize,H.gridSteps=J.view.gridSteps,H.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:J.view.gridColor);H.open(null,null,K,!0,N,U,g.selection?J.getSelectionCells():null)}else{O=J.background;if(null==O||""==O||O==mxConstants.NONE)O="#ffffff";H.backgroundColor=O;H.autoOrigin=W;g.grid&&(H.gridSize=J.gridSize,H.gridSteps=J.view.gridSteps,
-H.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:J.view.gridColor);H.appendGraph(J,Y,R,T,K,!0,N,U,g.selection?J.getSelectionCells():null);K=J.getCustomFonts();if(null!=H.wnd)for(U=0;U<K.length;U++)R=K[U].name,T=K[U].url,Graph.isCssFontUrl(T)?H.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(T)+'" charset="UTF-8" type="text/css">'):(H.wnd.document.writeln('<style type="text/css">'),H.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(R)+
-'";\nsrc: url("'+mxUtils.htmlEntities(T)+'");\n}'),H.wnd.document.writeln("</style>"))}M&&(J.useCssTransforms=M,J.currentTranslate=n,J.currentScale=A,J.view.translate=E,J.view.scale=L);return H}),I=g.pagesFrom,F=g.pagesTo,C=!g.allPages;t=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,g);else{C&&(C=g.selection||I==y&&F==y);if(!C&&null!=this.pages&&this.pages.length){C=0;y=this.pages.length-1;g.allPages||(C=parseInt(I)-1,y=parseInt(F)-1);for(var Q=C;Q<=y;Q++){var S=this.pages[Q];I=S==
-this.currentPage?m:null;if(null==I){I=this.createTemporaryGraph(m.stylesheet);I.shapeForegroundColor=m.shapeForegroundColor;I.shapeBackgroundColor=m.shapeBackgroundColor;F=!0;C=!1;var V=null,P=null;null==S.viewState&&null==S.root&&this.updatePageRoot(S);null!=S.viewState&&(F=S.viewState.pageVisible,C=S.viewState.mathEnabled,V=S.viewState.background,P=S.viewState.backgroundImage,I.pageFormat=S.viewState.pageFormat,I.gridSize=S.viewState.gridSize);null!=P&&null!=P.originalSrc&&(P=this.createImageForPageLink(P.originalSrc,
-S));I.background=V;I.backgroundImage=null!=P?new mxImage(P.src,P.width,P.height,P.x,P.y):null;I.pageVisible=F;I.mathEnabled=C;var u=I.getGraphBounds;I.getGraphBounds=function(){var J=u.apply(this,arguments),H=this.backgroundImage;if(null!=H&&null!=H.width&&null!=H.height){var K=this.view.translate,N=this.view.scale;J=mxRectangle.fromRectangle(J);J.add(new mxRectangle((K.x+H.x)*N,(K.y+H.y)*N,H.width*N,H.height*N))}return J};var x=I.getGlobalVariable;I.getGlobalVariable=function(J){return"page"==J?
-S.getName():"pagenumber"==J?Q+1:"pagecount"==J?null!=this.pages?this.pages.length:1:x.apply(this,arguments)};document.body.appendChild(I.container);this.updatePageRoot(S);I.model.setRoot(S.root)}t=z(I,t,Q!=y,S.getId());I!=m&&I.container.parentNode.removeChild(I.container)}}else t=z(m);null==t||null==t.wnd?this.handleError({message:mxResources.get("errorUpdatingPreview")}):(t.mathEnabled&&(z=t.wnd.document,d||(t.wnd.IMMEDIATE_PRINT=!0),z.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>')),
-t.closeDocument(),Graph.rewritePageLinks(t.wnd.document,!0),t.mathEnabled||d||PrintDialog.printPreview(t));return t}};EditorUi.prototype.addFileDropHandler=function(d){if(Graph.fileSupport)for(var g=null,k=0;k<d.length;k++)mxEvent.addListener(d[k],"dragleave",function(m){null!=g&&(g.parentNode.removeChild(g),g=null);m.stopPropagation();m.preventDefault()}),mxEvent.addListener(d[k],"dragover",mxUtils.bind(this,function(m){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==g&&(!mxClient.IS_IE||
+0))||(this.toggleScratchpad(),mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);mxSettings.save()})}};EditorUi.prototype.copyImage=function(d,g,k){try{null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this,function(m,u){try{this.spinner.stop();var x=this.createImageDataUri(m,g,"png"),A=parseInt(u.getAttribute("width")),
+I=parseInt(u.getAttribute("height"));this.writeImageToClipboard(x,A,I,mxUtils.bind(this,function(F){this.handleError(F)}))}catch(F){this.handleError(F)}}),null,null,null,mxUtils.bind(this,function(m){this.spinner.stop();this.handleError(m)}),null,null,null!=k?k:4,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<d.length?d:null)}catch(m){this.handleError(m)}};EditorUi.prototype.copyCells=function(d,g){var k=this.editor.graph;if(k.isSelectionEmpty())d.innerText=
+"";else{var m=mxUtils.sortCells(k.model.getTopmostCells(k.getSelectionCells())),u=mxUtils.getXml(k.encodeCells(m));mxUtils.setTextContent(d,encodeURIComponent(u));g?(k.removeCells(m,!1),k.lastPasteXml=null):(k.lastPasteXml=u,k.pasteCounter=0);d.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var d=null;if(Editor.enableNativeCipboard){var g=this.editor.graph;g.isSelectionEmpty()||(d=mxUtils.sortCells(g.getExportableCells(g.model.getTopmostCells(g.getSelectionCells()))),
+g=mxUtils.getXml(g.encodeCells(d)),navigator.clipboard.writeText(g))}return d};EditorUi.prototype.pasteXml=function(d,g,k,m,u){u=null!=u?u:!0;var x=this.editor.graph,A=null;x.lastPasteXml==d?x.pasteCounter++:(x.lastPasteXml=d,x.pasteCounter=0);var I=x.pasteCounter*x.gridSize;if(k||this.isCompatibleString(d))A=this.importXml(d,I,I),x.setSelectionCells(A);else if(g&&1==x.getSelectionCount()){u=x.getStartEditingCell(x.getSelectionCell(),m);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(d)&&"image"==x.getCurrentCellStyle(u)[mxConstants.STYLE_SHAPE])x.setCellStyles(mxConstants.STYLE_IMAGE,
+d,[u]);else{x.model.beginUpdate();try{x.labelChanged(u,d),Graph.isLink(d)&&x.setLinkForCell(u,d)}finally{x.model.endUpdate()}}x.setSelectionCell(u)}else A=x.getInsertPoint(),x.isMouseInsertPoint()&&(I=0,x.lastPasteXml==d&&0<x.pasteCounter&&x.pasteCounter--),A=this.insertTextAt(d,A.x+I,A.y+I,u),x.setSelectionCells(A);x.isSelectionEmpty()||(x.scrollCellToVisible(x.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(x.view.getState(x.getSelectionCell())));return A};EditorUi.prototype.pasteCells=
+function(d,g,k,m){if(!mxEvent.isConsumed(d)){var u=g,x=!1;if(k&&null!=d.clipboardData&&d.clipboardData.getData){var A=d.clipboardData.getData("text/plain"),I=!1;if(null!=A&&0<A.length&&"%3CmxGraphModel%3E"==A.substring(0,18))try{var F=decodeURIComponent(A);this.isCompatibleString(F)&&(I=!0,A=F)}catch(V){}I=I?null:d.clipboardData.getData("text/html");null!=I&&0<I.length?(u=this.parseHtmlData(I),x="text/plain"!=u.getAttribute("data-type")):null!=A&&0<A.length&&(u=document.createElement("div"),mxUtils.setTextContent(u,
+I))}A=u.getElementsByTagName("span");if(null!=A&&0<A.length&&"application/vnd.lucid.chart.objects"===A[0].getAttribute("data-lucid-type"))k=A[0].getAttribute("data-lucid-content"),null!=k&&0<k.length&&(this.convertLucidChart(k,mxUtils.bind(this,function(V){var q=this.editor.graph;q.lastPasteXml==V?q.pasteCounter++:(q.lastPasteXml=V,q.pasteCounter=0);var y=q.pasteCounter*q.gridSize;q.setSelectionCells(this.importXml(V,y,y));q.scrollCellToVisible(q.getSelectionCell())}),mxUtils.bind(this,function(V){this.handleError(V)})),
+mxEvent.consume(d));else{var C=!1,P="";P=x?null!=u.textContent&&"<mxfile"==u.textContent.substring(0,7)&&"</mxfile>"==u.textContent.substring(u.textContent.length-9)||"<mxGraphModel"==u.textContent.substring(0,13)&&"</mxGraphModel>"==u.textContent.substring(u.textContent.length-15)?u.textContent.replace(/\u00a0/g," "):u.innerHTML:mxUtils.trim(null==u.innerText?mxUtils.getTextContent(u):u.innerText);try{var R=P.lastIndexOf("%3E");0<=R&&R<P.length-3&&(P=P.substring(0,R+3))}catch(V){}try{A=u.getElementsByTagName("span"),
+(F=null!=A&&0<A.length?mxUtils.trim(decodeURIComponent(A[0].textContent)):decodeURIComponent(P))&&(this.isCompatibleString(F)||0==F.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(C=!0,P=F)}catch(V){}try{if(null!=P&&0<P.length){if(0==P.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var U=mxUtils.bind(this,function(){try{P=(new MiroImporter).importMiroJson(JSON.parse(P)),this.pasteXml(P,m,C,d)}catch(V){console.log("Miro import error:",V)}});"undefined"===typeof MiroImporter?
+mxscript("js/diagramly/miro/MiroImporter.js",U):U()}else this.pasteXml(P,m,C,d,x);try{mxEvent.consume(d)}catch(V){}}else if(!k){var O=this.editor.graph;O.lastPasteXml=null;O.pasteCounter=0}}catch(V){this.handleError(V)}}}g.innerHTML="&nbsp;"};EditorUi.prototype.showPrintDialog=function(d,g,k){var m=320;this.editor.graph.isEnabled()&&(m+=40);null!=this.pages&&1<this.pages.length&&(m+=40,this.editor.graph.isEnabled()||(m+=10));null==g||mxClient.IS_CHROMEAPP||"draw.io"!=this.getServiceName()||(m+=20);
+this.showDialog((new PrintDialog(this,d,g,k)).container,320,m,!0,!0)};EditorUi.prototype.print=function(d,g){var k=this.editor,m=k.graph,u=this.getPageIndex(this.currentPage),x=null!=u?u+1:1,A=mxUtils.bind(this,function(y,D,J,L){var K=y.useCssTransforms,n=y.currentTranslate,z=y.currentScale,G=y.view.translate,M=y.view.scale;y.useCssTransforms&&(y.useCssTransforms=!1,y.currentTranslate=new mxPoint(0,0),y.currentScale=1,y.view.translate=new mxPoint(0,0),y.view.scale=1);var N=y.getGraphBounds(),Q=0,
+S=0,T=mxRectangle.fromRectangle(y.pageFormat),W=g.fit||g.crop||!y.pageVisible,X=g.scale;T.width=Math.ceil(T.width*y.pageScale);T.height=Math.ceil(T.height*y.pageScale);var Z=1;if(g.fit){Z=g.sheetsAcross;var Y=g.sheetsDown;isNaN(X)||(T.width=Math.ceil(T.width*X),T.height=Math.ceil(T.height*X));Z=Math.min(T.height*Y/(N.height/y.view.scale),T.width*Z/(N.width/y.view.scale))}else Z=isNaN(X)?1:X;Z*=1;!W&&y.pageVisible?(X=y.getPageLayout(),Q-=X.x*T.width,S-=X.y*T.height):W=!0;g.crop&&(g.selection&&(N=m.getBoundingBox(m.getSelectionCells())),
+T.width=(N.width+1)*Z/y.view.scale,T.height=(N.height+1)*Z/y.view.scale);T.width=Math.ceil(1*T.width);T.height=Math.ceil(1*T.height);L=null!=L?"page/id,"+L:null;if(null==D){D=PrintDialog.createPrintPreview(y,Z,null,0,Q,S,W);D.title=this.getBaseFilename(!0);D.pageSelector=!1;D.mathEnabled=!1;Q=g.border;isNaN(Q)||(D.pageMargin=Q);g.selection&&(D.isCellVisible=function(ca){return y.isCellSelected(ca)});var ba=D.writeHead;D.writeHead=function(ca){ba.apply(this,arguments);mxClient.IS_GC&&(ca.writeln('<style type="text/css">'),
+ca.writeln("@media print {"),ca.writeln(".MathJax svg { shape-rendering: crispEdges; }"),ca.writeln("}"),ca.writeln("</style>"));null!=k.fontCss&&(ca.writeln('<style type="text/css">'),ca.writeln(mxUtils.htmlEntities(k.fontCss,!1,!1,!1)),ca.writeln("</style>"));for(var fa=y.getCustomFonts(),aa=0;aa<fa.length;aa++){var ja=fa[aa].name,ha=fa[aa].url;Graph.isCssFontUrl(ha)?ca.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(ha))+'" charset="UTF-8" type="text/css">'):
+(ca.writeln('<style type="text/css">'),ca.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(ja)+'";\nsrc: url("'+mxUtils.htmlEntities(ha)+'");\n}'),ca.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var da=D.drawBackgroundImage;D.drawBackgroundImage=function(ca){da.apply(this,arguments);null!=ca.node&&(EditorUi.embedSvgImages(ca.node),m.disableSvgLinks(ca.node,function(fa){fa.setAttribute("href","javascript:void(0)")}))}}var ia=D.addGraphFragment;D.addGraphFragment=function(ca,fa,aa,
+ja,ha,ea){ia.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:ha.classList.add("geDisableMathJax")};g.grid&&(D.gridSize=y.gridSize,D.gridSteps=y.view.gridSteps,D.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:y.view.gridColor);D.open(null,null,J,!0,L,T,g.selection?y.getSelectionCells():null)}else{N=y.background;if(null==N||""==N||N==mxConstants.NONE)N="#ffffff";D.backgroundColor=N;D.autoOrigin=W;g.grid&&(D.gridSize=y.gridSize,D.gridSteps=y.view.gridSteps,
+D.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:y.view.gridColor);D.appendGraph(y,Z,Q,S,J,!0,L,T,g.selection?y.getSelectionCells():null);J=y.getCustomFonts();if(null!=D.wnd)for(T=0;T<J.length;T++)Q=J[T].name,S=J[T].url,Graph.isCssFontUrl(S)?D.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(S)+'" charset="UTF-8" type="text/css">'):(D.wnd.document.writeln('<style type="text/css">'),D.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Q)+
+'";\nsrc: url("'+mxUtils.htmlEntities(S)+'");\n}'),D.wnd.document.writeln("</style>"))}K&&(y.useCssTransforms=K,y.currentTranslate=n,y.currentScale=z,y.view.translate=G,y.view.scale=M);return D}),I=g.pagesFrom,F=g.pagesTo,C=!g.allPages;u=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,g);else{C&&(C=g.selection||I==x&&F==x);if(!C&&null!=this.pages&&this.pages.length){C=0;x=this.pages.length-1;g.allPages||(C=parseInt(I)-1,x=parseInt(F)-1);for(var P=C;P<=x;P++){var R=this.pages[P];I=R==
+this.currentPage?m:null;if(null==I){I=this.createTemporaryGraph(m.stylesheet);I.shapeForegroundColor=m.shapeForegroundColor;I.shapeBackgroundColor=m.shapeBackgroundColor;F=!0;C=!1;var U=null,O=null;null==R.viewState&&null==R.root&&this.updatePageRoot(R);null!=R.viewState&&(F=R.viewState.pageVisible,C=R.viewState.mathEnabled,U=R.viewState.background,O=R.viewState.backgroundImage,I.pageFormat=R.viewState.pageFormat,I.gridSize=R.viewState.gridSize);null!=O&&null!=O.originalSrc&&(O=this.createImageForPageLink(O.originalSrc,
+R));I.background=U;I.backgroundImage=null!=O?new mxImage(O.src,O.width,O.height,O.x,O.y):null;I.pageVisible=F;I.mathEnabled=C;var V=I.getGraphBounds;I.getGraphBounds=function(){var y=V.apply(this,arguments),D=this.backgroundImage;if(null!=D&&null!=D.width&&null!=D.height){var J=this.view.translate,L=this.view.scale;y=mxRectangle.fromRectangle(y);y.add(new mxRectangle((J.x+D.x)*L,(J.y+D.y)*L,D.width*L,D.height*L))}return y};var q=I.getGlobalVariable;I.getGlobalVariable=function(y){return"page"==y?
+R.getName():"pagenumber"==y?P+1:"pagecount"==y?null!=this.pages?this.pages.length:1:q.apply(this,arguments)};document.body.appendChild(I.container);this.updatePageRoot(R);I.model.setRoot(R.root)}u=A(I,u,P!=x,R.getId());I!=m&&I.container.parentNode.removeChild(I.container)}}else u=A(m);null==u||null==u.wnd?this.handleError({message:mxResources.get("errorUpdatingPreview")}):(u.mathEnabled&&(A=u.wnd.document,d||(u.wnd.IMMEDIATE_PRINT=!0),A.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>')),
+u.closeDocument(),Graph.rewritePageLinks(u.wnd.document,!0),u.mathEnabled||d||PrintDialog.printPreview(u));return u}};EditorUi.prototype.addFileDropHandler=function(d){if(Graph.fileSupport)for(var g=null,k=0;k<d.length;k++)mxEvent.addListener(d[k],"dragleave",function(m){null!=g&&(g.parentNode.removeChild(g),g=null);m.stopPropagation();m.preventDefault()}),mxEvent.addListener(d[k],"dragover",mxUtils.bind(this,function(m){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==g&&(!mxClient.IS_IE||
10<document.documentMode&&12>document.documentMode)&&(g=this.highlightElement());m.stopPropagation();m.preventDefault()})),mxEvent.addListener(d[k],"drop",mxUtils.bind(this,function(m){null!=g&&(g.parentNode.removeChild(g),g=null);if(this.editor.graph.isEnabled()||"1"!=urlParams.embed)if(0<m.dataTransfer.files.length)this.hideDialog(),"1"==urlParams.embed?this.importFiles(m.dataTransfer.files,0,0,this.maxImageSize,null,null,null,null,!mxEvent.isControlDown(m)&&!mxEvent.isShiftDown(m)):this.openFiles(m.dataTransfer.files,
-!0);else{var t=this.extractGraphModelFromEvent(m);if(null==t){var y=null!=m.dataTransfer?m.dataTransfer:m.clipboardData;null!=y&&(10==document.documentMode||11==document.documentMode?t=y.getData("Text"):(t=null,t=0<=mxUtils.indexOf(y.types,"text/uri-list")?m.dataTransfer.getData("text/uri-list"):0<=mxUtils.indexOf(y.types,"text/html")?y.getData("text/html"):null,null!=t&&0<t.length?(y=document.createElement("div"),y.innerHTML=Graph.sanitizeHtml(t),y=y.getElementsByTagName("img"),0<y.length&&(t=y[0].getAttribute("src"))):
-0<=mxUtils.indexOf(y.types,"text/plain")&&(t=y.getData("text/plain"))),null!=t&&(Editor.isPngDataUrl(t)?(t=Editor.extractGraphModelFromPng(t),null!=t&&0<t.length&&this.openLocalFile(t,null,!0)):this.isRemoteFileFormat(t)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(new mxXmlRequest(OPEN_URL,"format=xml&data="+encodeURIComponent(t))).send(mxUtils.bind(this,function(z){200<=z.getStatus()&&299>=z.getStatus()?this.openLocalFile(z.getText(),null,!0):this.showError(mxResources.get("error"),
-413==z.getStatus()?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))})):/^https?:\/\//.test(t)&&(null==this.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(t):window.geOpenWindow((mxClient.IS_CHROMEAPP?EditorUi.drawHost+"/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(t)))))}else this.openLocalFile(t,null,!0)}m.stopPropagation();m.preventDefault()}))};EditorUi.prototype.highlightElement=function(d){var g=0,k=0;if(null==d){var m=document.body;
-var t=document.documentElement;var y=(m.clientWidth||t.clientWidth)-3;m=Math.max(m.clientHeight||0,t.clientHeight)-3}else g=d.offsetTop,k=d.offsetLeft,y=d.clientWidth,m=d.clientHeight;t=document.createElement("div");t.style.zIndex=mxPopupMenu.prototype.zIndex+2;t.style.border="3px dotted rgb(254, 137, 12)";t.style.pointerEvents="none";t.style.position="absolute";t.style.top=g+"px";t.style.left=k+"px";t.style.width=Math.max(0,y-3)+"px";t.style.height=Math.max(0,m-3)+"px";null!=d&&d.parentNode==this.editor.graph.container?
-this.editor.graph.container.appendChild(t):document.body.appendChild(t);return t};EditorUi.prototype.stringToCells=function(d){d=mxUtils.parseXml(d);var g=this.editor.extractGraphModel(d.documentElement);d=[];if(null!=g){var k=new mxCodec(g.ownerDocument),m=new mxGraphModel;k.decode(g,m);g=m.getChildAt(m.getRoot(),0);for(k=0;k<m.getChildCount(g);k++)d.push(m.getChildAt(g,k))}return d};EditorUi.prototype.openFileHandle=function(d,g,k,m,t,y){if(null!=g&&0<g.length){if(!this.useCanvasForExport&&/(\.png)$/i.test(g)||
-/(\.pdf)$/i.test(g))g=g.substring(0,g.length-4),/(\.drawio)$/i.test(g)||(g+=".drawio");var z=mxUtils.bind(this,function(F){g=0<=g.lastIndexOf(".")?g.substring(0,g.lastIndexOf("."))+".drawio":g+".drawio";if("<mxlibrary"==F.substring(0,10)){null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,m);try{this.loadLibrary(new LocalLibrary(this,F,g)),this.showSidebar()}catch(C){this.handleError(C,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(F,
-g,m)});if(EditorUi.isVisioFilename(g))this.importVisio(k,mxUtils.bind(this,function(F){this.spinner.stop();z(F)}));else if(/(\.*<graphml )/.test(d))this.importGraphML(d,mxUtils.bind(this,function(F){this.spinner.stop();z(F)}));else if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d,g))this.isOffline()?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(k,mxUtils.bind(this,function(F){4==F.readyState&&(this.spinner.stop(),
-200<=F.status&&299>=F.status?z(F.responseText):this.handleError({message:mxResources.get(413==F.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(d))/(\.json)$/i.test(g)&&(g=g.substring(0,g.length-5)+".drawio"),this.convertLucidChart(d,mxUtils.bind(this,function(F){this.spinner.stop();this.openLocalFile(F,g,m)}),mxUtils.bind(this,function(F){this.spinner.stop();this.handleError(F)}));else if("<mxlibrary"==d.substring(0,10)){this.spinner.stop();
-null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,m);try{this.loadLibrary(new LocalLibrary(this,d,k.name)),this.showSidebar()}catch(F){this.handleError(F,mxResources.get("errorLoadingFile"))}}else if(0==d.indexOf("PK"))this.importZipFile(k,mxUtils.bind(this,function(F){this.spinner.stop();z(F)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(d,g,m)}));else{if("image/png"==k.type.substring(0,9))d=this.extractGraphModelFromPng(d);
-else if("application/pdf"==k.type){var I=Editor.extractGraphModelFromPdf(d);null!=I&&(t=null,m=!0,d=I)}this.spinner.stop();this.openLocalFile(d,g,m,t,null!=t?k:null,y)}}};EditorUi.prototype.openFiles=function(d,g){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var k=0;k<d.length;k++)mxUtils.bind(this,function(m){var t=new FileReader;t.onload=mxUtils.bind(this,function(y){try{this.openFileHandle(y.target.result,m.name,m,g)}catch(z){this.handleError(z)}});t.onerror=mxUtils.bind(this,
-function(y){this.spinner.stop();this.handleError(y);window.openFile=null});"image"!==m.type.substring(0,5)&&"application/pdf"!==m.type||"image/svg"===m.type.substring(0,9)?t.readAsText(m):t.readAsDataURL(m)})(d[k])};EditorUi.prototype.openLocalFile=function(d,g,k,m,t,y){var z=this.getCurrentFile(),I=mxUtils.bind(this,function(){window.openFile=null;if(null==g&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var F=mxUtils.parseXml(d);null!=F&&(this.editor.setGraphXml(F.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,
-d,g||this.defaultFilename,k,m,t,y))});if(null!=d&&0<d.length)null==z||!z.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=m)?I():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=m)&&null!=z&&z.isModified()?this.confirm(mxResources.get("allChangesLost"),null,I,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(d,g),window.geOpenWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=
-z&&z.isModified()?this.confirm(mxResources.get("allChangesLost"),null,I,mxResources.get("cancel"),mxResources.get("discardChanges")):I()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var d={};if(null!=this.pages)for(var g=0;g<this.pages.length;g++)this.updatePageRoot(this.pages[g]),this.addBasenamesForCell(this.pages[g].root,d);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),d);g=[];for(var k in d)g.push(k);return g};EditorUi.prototype.addBasenamesForCell=
-function(d,g){function k(z){if(null!=z){var I=z.lastIndexOf(".");0<I&&(z=z.substring(I+1,z.length));null==g[z]&&(g[z]=!0)}}var m=this.editor.graph,t=m.getCellStyle(d);k(mxStencilRegistry.getBasenameForStencil(t[mxConstants.STYLE_SHAPE]));m.model.isEdge(d)&&(k(mxMarker.getPackageForType(t[mxConstants.STYLE_STARTARROW])),k(mxMarker.getPackageForType(t[mxConstants.STYLE_ENDARROW])));t=m.model.getChildCount(d);for(var y=0;y<t;y++)this.addBasenamesForCell(m.model.getChildAt(d,y),g)};EditorUi.prototype.setGraphEnabled=
+!0);else{var u=this.extractGraphModelFromEvent(m);if(null==u){var x=null!=m.dataTransfer?m.dataTransfer:m.clipboardData;null!=x&&(10==document.documentMode||11==document.documentMode?u=x.getData("Text"):(u=null,u=0<=mxUtils.indexOf(x.types,"text/uri-list")?m.dataTransfer.getData("text/uri-list"):0<=mxUtils.indexOf(x.types,"text/html")?x.getData("text/html"):null,null!=u&&0<u.length?(x=document.createElement("div"),x.innerHTML=Graph.sanitizeHtml(u),x=x.getElementsByTagName("img"),0<x.length&&(u=x[0].getAttribute("src"))):
+0<=mxUtils.indexOf(x.types,"text/plain")&&(u=x.getData("text/plain"))),null!=u&&(Editor.isPngDataUrl(u)?(u=Editor.extractGraphModelFromPng(u),null!=u&&0<u.length&&this.openLocalFile(u,null,!0)):this.isRemoteFileFormat(u)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(new mxXmlRequest(OPEN_URL,"format=xml&data="+encodeURIComponent(u))).send(mxUtils.bind(this,function(A){200<=A.getStatus()&&299>=A.getStatus()?this.openLocalFile(A.getText(),null,!0):this.showError(mxResources.get("error"),
+413==A.getStatus()?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))})):/^https?:\/\//.test(u)&&(null==this.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(u):window.geOpenWindow((mxClient.IS_CHROMEAPP?EditorUi.drawHost+"/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(u)))))}else this.openLocalFile(u,null,!0)}m.stopPropagation();m.preventDefault()}))};EditorUi.prototype.highlightElement=function(d){var g=0,k=0;if(null==d){var m=document.body;
+var u=document.documentElement;var x=(m.clientWidth||u.clientWidth)-3;m=Math.max(m.clientHeight||0,u.clientHeight)-3}else g=d.offsetTop,k=d.offsetLeft,x=d.clientWidth,m=d.clientHeight;u=document.createElement("div");u.style.zIndex=mxPopupMenu.prototype.zIndex+2;u.style.border="3px dotted rgb(254, 137, 12)";u.style.pointerEvents="none";u.style.position="absolute";u.style.top=g+"px";u.style.left=k+"px";u.style.width=Math.max(0,x-3)+"px";u.style.height=Math.max(0,m-3)+"px";null!=d&&d.parentNode==this.editor.graph.container?
+this.editor.graph.container.appendChild(u):document.body.appendChild(u);return u};EditorUi.prototype.stringToCells=function(d){d=mxUtils.parseXml(d);var g=this.editor.extractGraphModel(d.documentElement);d=[];if(null!=g){var k=new mxCodec(g.ownerDocument),m=new mxGraphModel;k.decode(g,m);g=m.getChildAt(m.getRoot(),0);for(k=0;k<m.getChildCount(g);k++)d.push(m.getChildAt(g,k))}return d};EditorUi.prototype.openFileHandle=function(d,g,k,m,u,x){if(null!=g&&0<g.length){if(!this.useCanvasForExport&&/(\.png)$/i.test(g)||
+/(\.pdf)$/i.test(g))g=g.substring(0,g.length-4),/(\.drawio)$/i.test(g)||(g+=".drawio");var A=mxUtils.bind(this,function(F){g=0<=g.lastIndexOf(".")?g.substring(0,g.lastIndexOf("."))+".drawio":g+".drawio";if("<mxlibrary"==F.substring(0,10)){null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,m);try{this.loadLibrary(new LocalLibrary(this,F,g)),this.showSidebar()}catch(C){this.handleError(C,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(F,
+g,m)});if(EditorUi.isVisioFilename(g))this.importVisio(k,mxUtils.bind(this,function(F){this.spinner.stop();A(F)}));else if(/(\.*<graphml )/.test(d))this.importGraphML(d,mxUtils.bind(this,function(F){this.spinner.stop();A(F)}));else if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(d,g))this.isOffline()?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(k,mxUtils.bind(this,function(F){4==F.readyState&&(this.spinner.stop(),
+200<=F.status&&299>=F.status?A(F.responseText):this.handleError({message:mxResources.get(413==F.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(d))/(\.json)$/i.test(g)&&(g=g.substring(0,g.length-5)+".drawio"),this.convertLucidChart(d,mxUtils.bind(this,function(F){this.spinner.stop();this.openLocalFile(F,g,m)}),mxUtils.bind(this,function(F){this.spinner.stop();this.handleError(F)}));else if("<mxlibrary"==d.substring(0,10)){this.spinner.stop();
+null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,m);try{this.loadLibrary(new LocalLibrary(this,d,k.name)),this.showSidebar()}catch(F){this.handleError(F,mxResources.get("errorLoadingFile"))}}else if(0==d.indexOf("PK"))this.importZipFile(k,mxUtils.bind(this,function(F){this.spinner.stop();A(F)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(d,g,m)}));else{if("image/png"==k.type.substring(0,9))d=this.extractGraphModelFromPng(d);
+else if("application/pdf"==k.type){var I=Editor.extractGraphModelFromPdf(d);null!=I&&(u=null,m=!0,d=I)}this.spinner.stop();this.openLocalFile(d,g,m,u,null!=u?k:null,x)}}};EditorUi.prototype.openFiles=function(d,g){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var k=0;k<d.length;k++)mxUtils.bind(this,function(m){var u=new FileReader;u.onload=mxUtils.bind(this,function(x){try{this.openFileHandle(x.target.result,m.name,m,g)}catch(A){this.handleError(A)}});u.onerror=mxUtils.bind(this,
+function(x){this.spinner.stop();this.handleError(x);window.openFile=null});"image"!==m.type.substring(0,5)&&"application/pdf"!==m.type||"image/svg"===m.type.substring(0,9)?u.readAsText(m):u.readAsDataURL(m)})(d[k])};EditorUi.prototype.openLocalFile=function(d,g,k,m,u,x){var A=this.getCurrentFile(),I=mxUtils.bind(this,function(){window.openFile=null;if(null==g&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var F=mxUtils.parseXml(d);null!=F&&(this.editor.setGraphXml(F.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,
+d,g||this.defaultFilename,k,m,u,x))});if(null!=d&&0<d.length)null==A||!A.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=m)?I():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=m)&&null!=A&&A.isModified()?this.confirm(mxResources.get("allChangesLost"),null,I,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(d,g),window.geOpenWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=
+A&&A.isModified()?this.confirm(mxResources.get("allChangesLost"),null,I,mxResources.get("cancel"),mxResources.get("discardChanges")):I()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var d={};if(null!=this.pages)for(var g=0;g<this.pages.length;g++)this.updatePageRoot(this.pages[g]),this.addBasenamesForCell(this.pages[g].root,d);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),d);g=[];for(var k in d)g.push(k);return g};EditorUi.prototype.addBasenamesForCell=
+function(d,g){function k(A){if(null!=A){var I=A.lastIndexOf(".");0<I&&(A=A.substring(I+1,A.length));null==g[A]&&(g[A]=!0)}}var m=this.editor.graph,u=m.getCellStyle(d);k(mxStencilRegistry.getBasenameForStencil(u[mxConstants.STYLE_SHAPE]));m.model.isEdge(d)&&(k(mxMarker.getPackageForType(u[mxConstants.STYLE_STARTARROW])),k(mxMarker.getPackageForType(u[mxConstants.STYLE_ENDARROW])));u=m.model.getChildCount(d);for(var x=0;x<u;x++)this.addBasenamesForCell(m.model.getChildAt(d,x),g)};EditorUi.prototype.setGraphEnabled=
function(d){this.diagramContainer.style.visibility=d?"":"hidden";this.formatContainer.style.visibility=this.diagramContainer.style.visibility;this.sidebarContainer.style.display=d?"":"none";this.hsplit.style.display=this.sidebarContainer.style.display;this.editor.graph.setEnabled(d);null!=this.tabContainer&&(this.tabContainer.style.visibility=this.diagramContainer.style.visibility);d||this.hideWindows();this.editor.graph.sizeDidChange();this.resetScrollbars()};EditorUi.prototype.initializeEmbedMode=
-function(){this.setGraphEnabled(!1);if((window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var d=!1;this.installMessageHandler(mxUtils.bind(this,function(g,k,m,t){d||(d=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==g||0==g.length)g=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,g,{}));this.mode=App.MODE_EMBED;this.setFileData(g);if(t)try{var y=this.editor.graph;y.setGridEnabled(!1);
-y.pageVisible=!1;var z=y.model.cells,I;for(I in z){var F=z[I];null!=F&&null!=F.style&&(F.style+=";sketch=1;"+(-1==F.style.indexOf("fontFamily=")||-1<F.style.indexOf("fontFamily=Helvetica;")?"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;":""))}}catch(C){console.log(C)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();
+function(){this.setGraphEnabled(!1);if((window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var d=!1;this.installMessageHandler(mxUtils.bind(this,function(g,k,m,u){d||(d=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==g||0==g.length)g=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,g,{}));this.mode=App.MODE_EMBED;this.setFileData(g);if(u)try{var x=this.editor.graph;x.setGridEnabled(!1);
+x.pageVisible=!1;var A=x.model.cells,I;for(I in A){var F=A[I];null!=F&&null!=F.style&&(F.style+=";sketch=1;"+(-1==F.style.indexOf("fontFamily=")||-1<F.style.indexOf("fontFamily=Helvetica;")?"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;":""))}}catch(C){console.log(C)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();
this.editor.modified=null!=m?m:!1;this.updateUi();window.self!==window.top&&window.focus();null!=this.format&&this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(d,g){null!=d?this.spinner.spin(document.body,mxResources.get("loading"))&&
d.getPublicUrl(mxUtils.bind(this,function(k){this.spinner.stop();g(k)})):g(null)};EditorUi.prototype.createLoadMessage=function(d){var g=this.editor.graph;return{event:d,pageVisible:g.pageVisible,translate:g.view.translate,bounds:g.getGraphBounds(),currentPage:this.getSelectedPageIndex(),scale:g.view.scale,page:g.view.getBackgroundPageBounds()}};EditorUi.prototype.sendEmbeddedSvgExport=function(d){try{var g=this.editor.graph;g.isEditing()&&g.stopEditing(!g.isInvokesStopCellEditing());var k=window.opener||
-window.parent;if(this.editor.modified){var m=g.background;if(null==m||m==mxConstants.NONE)m=this.embedExportBackground;this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),g,null,!0,mxUtils.bind(this,function(t){k.postMessage(JSON.stringify({event:"export",point:this.embedExitPoint,exit:null!=d?!d:!0,data:Editor.createSvgDataUri(t)}),"*")}),null,null,!0,m,1,this.embedExportBorder,null,this.embedExportTheme)}else d||k.postMessage(JSON.stringify({event:"exit",point:this.embedExitPoint}),
-"*");d||(this.diagramContainer.removeAttribute("data-bounds"),Editor.inlineFullscreen=!1,g.model.clear(),this.editor.undoManager.clear(),this.setBackgroundImage(null),this.editor.modified=!1,"1"!=urlParams.embed&&this.fireEvent(new mxEventObject("editInlineStop")))}catch(t){d||this.handleError(t)}};EditorUi.prototype.installMessageHandler=function(d){var g=null,k=!1,m=!1,t=null,y=mxUtils.bind(this,function(F,C){this.editor.modified&&"0"!=urlParams.modified?null!=urlParams.modified&&this.updateStatus(mxUtils.bind(this,
-function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified)))})):this.clearStatus()});this.editor.graph.model.addListener(mxEvent.CHANGE,y);mxEvent.addListener(window,"message",mxUtils.bind(this,function(F){if(F.source==(window.opener||window.parent)){var C=F.data,Q=null,S=mxUtils.bind(this,function(aa){if(null!=aa&&"function"===typeof aa.charAt&&"<"!=aa.charAt(0))try{Editor.isPngDataUrl(aa)?aa=Editor.extractGraphModelFromPng(aa):"data:image/svg+xml;base64,"==aa.substring(0,
-26)?aa=atob(aa.substring(26)):"data:image/svg+xml;utf8,"==aa.substring(0,24)&&(aa=aa.substring(24)),null!=aa&&(""==aa.trim()?aa=null:"%"==aa.charAt(0)?aa=decodeURIComponent(aa):"<"!=aa.charAt(0)&&(aa=Graph.decompress(aa)))}catch(ja){}return aa});if("json"==urlParams.proto){var V=!1;try{C=JSON.parse(C),EditorUi.debug("EditorUi.installMessageHandler",[this],"evt",[F],"data",[C])}catch(aa){C=null}try{if(null==C)return;if("dialog"==C.action){this.showError(null!=C.titleKey?mxResources.get(C.titleKey):
-C.title,null!=C.messageKey?mxResources.get(C.messageKey):mxUtils.htmlEntities(C.message),null!=C.buttonKey?mxResources.get(C.buttonKey):C.button);null!=C.modified&&(this.editor.modified=C.modified);return}if("layout"==C.action){this.executeLayouts(this.editor.graph.createLayouts(C.layouts));return}if("prompt"==C.action){this.spinner.stop();var P=new FilenameDialog(this,C.defaultValue||"",null!=C.okKey?mxResources.get(C.okKey):C.ok,function(aa){null!=aa?z.postMessage(JSON.stringify({event:"prompt",
-value:aa,message:C}),"*"):z.postMessage(JSON.stringify({event:"prompt-cancel",message:C}),"*")},null!=C.titleKey?mxResources.get(C.titleKey):C.title,null,null,null,null,function(){z.postMessage(JSON.stringify({event:"prompt-cancel",message:C}),"*")});this.showDialog(P.container,300,80,!0,!1);P.init();return}if("draft"==C.action){var u=S(C.xml);this.spinner.stop();P=new DraftDialog(this,mxResources.get("draftFound",[C.name||this.defaultFilename]),u,mxUtils.bind(this,function(){this.hideDialog();z.postMessage(JSON.stringify({event:"draft",
-result:"edit",message:C}),"*")}),mxUtils.bind(this,function(){this.hideDialog();z.postMessage(JSON.stringify({event:"draft",result:"discard",message:C}),"*")}),C.editKey?mxResources.get(C.editKey):null,C.discardKey?mxResources.get(C.discardKey):null,C.ignore?mxUtils.bind(this,function(){this.hideDialog();z.postMessage(JSON.stringify({event:"draft",result:"ignore",message:C}),"*")}):null);this.showDialog(P.container,640,480,!0,!1,mxUtils.bind(this,function(aa){aa&&this.actions.get("exit").funct()}));
-try{P.init()}catch(aa){z.postMessage(JSON.stringify({event:"draft",error:aa.toString(),message:C}),"*")}return}if("template"==C.action){this.spinner.stop();var x=1==C.enableRecent,J=1==C.enableSearch,H=1==C.enableCustomTemp;P=new NewDialog(this,!1,C.templatesOnly?!1:null!=C.callback,mxUtils.bind(this,function(aa,ja,ha,da){aa=aa||this.emptyDiagramXml;null!=C.callback?z.postMessage(JSON.stringify({event:"template",xml:aa,blank:aa==this.emptyDiagramXml,name:ja,tempUrl:ha,libs:da,builtIn:!0,message:C}),
-"*"):(d(aa,F,aa!=this.emptyDiagramXml,C.toSketch),this.editor.modified||this.clearStatus())}),null,null,null,null,null,null,null,x?mxUtils.bind(this,function(aa){this.remoteInvoke("getRecentDiagrams",[null],null,aa,function(){aa(null,"Network Error!")})}):null,J?mxUtils.bind(this,function(aa,ja){this.remoteInvoke("searchDiagrams",[aa,null],null,ja,function(){ja(null,"Network Error!")})}):null,mxUtils.bind(this,function(aa,ja,ha){z.postMessage(JSON.stringify({event:"template",docUrl:aa,info:ja,name:ha}),
-"*")}),null,null,H?mxUtils.bind(this,function(aa){this.remoteInvoke("getCustomTemplates",null,null,aa,function(){aa({},0)})}):null,1==C.withoutType);this.showDialog(P.container,620,460,!0,!1,mxUtils.bind(this,function(aa){null!=this.sidebar&&this.sidebar.hideTooltip();aa&&this.actions.get("exit").funct()}));P.init();return}if("textContent"==C.action){var K=this.getDiagramTextContent();z.postMessage(JSON.stringify({event:"textContent",data:K,message:C}),"*");return}if("status"==C.action){this.updateStatus(mxUtils.bind(this,
-function(){null!=C.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(C.messageKey))):null!=C.message&&this.editor.setStatus(mxUtils.htmlEntities(C.message))}));null!=C.modified&&(this.editor.modified=C.modified);return}if("spinner"==C.action){var N=null!=C.messageKey?mxResources.get(C.messageKey):C.message;null==C.show||C.show?this.spinner.spin(document.body,N):this.spinner.stop();return}if("exit"==C.action){this.actions.get("exit").funct();return}if("viewport"==C.action){if(null!=
-C.viewport){var M=this.editor.graph,n=M.view.translate.x,A=M.view.translate.y;this.embedViewport=C.viewport;M.refresh();this.diagramContainer.scrollTop-=(A-M.view.translate.y)*M.view.scale;this.diagramContainer.scrollLeft-=(n-M.view.translate.x)*M.view.scale;this.fireEvent(new mxEventObject("embedViewportChanged"))}return}if("fullscreenChanged"==C.action){P=null;try{var E=this.diagramContainer.getAttribute("data-scrollState");null!=E&&(this.diagramContainer.removeAttribute("data-scrollState"),P=JSON.parse(E))}catch(aa){}Editor.inlineFullscreen=
-C.value;this.fireEvent(new mxEventObject("inlineFullscreenChanged"));null!=P&&this.restoreScrollState(P);return}if("snapshot"==C.action){this.sendEmbeddedSvgExport(!0);return}if("export"==C.action){if("png"==C.format||"xmlpng"==C.format){if(null==C.spin&&null==C.spinKey||this.spinner.spin(document.body,null!=C.spinKey?mxResources.get(C.spinKey):C.spin)){var L=null!=C.xml?C.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);M=this.editor.graph;var O=mxUtils.bind(this,function(aa,ja){if(C.withSvg)C.withSvg=
-!1,this.getEmbeddedSvg(L,this.editor.graph,null,!0,function(da){O(aa,da)},null,null,C.embedImages,this.editor.graph.background,C.scale,C.border,C.shadow,"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var ha=this.createLoadMessage("export");ha.format=C.format;ha.message=C;ha.data=aa;ha.svg=ja;ha.xml=L;z.postMessage(JSON.stringify(ha),"*")}}),R=mxUtils.bind(this,function(aa){null==aa&&(aa=Editor.blankImage);"xmlpng"==C.format&&(aa=Editor.writeGraphModelToPng(aa,"tEXt","mxfile",encodeURIComponent(L)));
-M!=this.editor.graph&&M.container.parentNode.removeChild(M.container);O(aa)}),T=C.pageId||(null!=this.pages?C.currentPage?this.currentPage.getId():this.pages[0].getId():null);if(this.isExportToCanvas()){var U=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=T){var aa=M.getGlobalVariable;M=this.createTemporaryGraph(M.getStylesheet());for(var ja,ha=0;ha<this.pages.length;ha++)if(this.pages[ha].getId()==T){ja=this.updatePageRoot(this.pages[ha]);break}null==ja&&(ja=this.currentPage);
-M.getGlobalVariable=function(va){return"page"==va?ja.getName():"pagenumber"==va?1:aa.apply(this,arguments)};document.body.appendChild(M.container);M.model.setRoot(ja.root)}if(null!=C.layerIds){var da=M.model,Ba=da.getChildCells(da.getRoot()),na={};for(ha=0;ha<C.layerIds.length;ha++)na[C.layerIds[ha]]=!0;for(ha=0;ha<Ba.length;ha++)da.setVisible(Ba[ha],na[Ba[ha].id]||!1)}ha=null;C.keepTheme&&(ha=Editor.isDarkMode()?"dark":"light");this.editor.exportToCanvas(mxUtils.bind(this,function(va){R(va.toDataURL("image/png"))}),
-C.width,null,C.background,mxUtils.bind(this,function(){R(null)}),null,null,C.scale,C.transparent,C.shadow,null,M,C.border,null,C.grid,ha)});null!=C.xml&&0<C.xml.length&&(k=!0,this.setFileData(L),k=!1);U()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==C.format?"1":"0")+(null!=T?"&pageId="+T:"")+(null!=C.layerIds&&0<C.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:C.layerIds})):"")+(null!=C.scale?"&scale="+C.scale:"")+"&base64=1&xml="+encodeURIComponent(L))).send(mxUtils.bind(this,
-function(aa){200<=aa.getStatus()&&299>=aa.getStatus()?O("data:image/png;base64,"+aa.getText()):R(null)}),mxUtils.bind(this,function(){R(null)}))}}else if(U=mxUtils.bind(this,function(){var aa=this.createLoadMessage("export");aa.message=C;if("html2"==C.format||"html"==C.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var ja=this.getXmlFileData();aa.xml=mxUtils.getXml(ja);aa.data=this.getFileData(null,null,!0,null,null,null,ja);aa.format=C.format}else if("html"==C.format)ja=this.editor.getGraphXml(),
-aa.data=this.getHtml(ja,this.editor.graph),aa.xml=mxUtils.getXml(ja),aa.format=C.format;else{mxSvgCanvas2D.prototype.foAltText=null;ja=null!=C.background?C.background:this.editor.graph.background;ja==mxConstants.NONE&&(ja=null);aa.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);aa.format="svg";var ha=mxUtils.bind(this,function(Ba){this.editor.graph.setEnabled(!0);this.spinner.stop();aa.data=Editor.createSvgDataUri(Ba);z.postMessage(JSON.stringify(aa),"*")}),da="auto";C.keepTheme&&
-(da=Editor.isDarkMode()?"dark":"light");null!=C.theme&&(da=C.theme);if("xmlsvg"==C.format){if(null==C.spin&&null==C.spinKey||this.spinner.spin(document.body,null!=C.spinKey?mxResources.get(C.spinKey):C.spin)){da=null;if(this.isAutoDarkMode()||Editor.isDarkMode())da="auto";null!=C.theme&&(da=C.theme);this.getEmbeddedSvg(aa.xml,this.editor.graph,null,!0,ha,null,null,C.embedImages,ja,C.scale,C.border,C.shadow,da)}}else if(null==C.spin&&null==C.spinKey||this.spinner.spin(document.body,null!=C.spinKey?
-mxResources.get(C.spinKey):C.spin))this.editor.graph.setEnabled(!1),ja=this.editor.graph.getSvg(ja,C.scale,C.border,null,null,null,null,null,null,this.editor.graph.shadowVisible||C.shadow,null,da),(this.editor.graph.shadowVisible||C.shadow)&&this.editor.graph.addSvgShadow(ja),this.embedFonts(ja,mxUtils.bind(this,function(Ba){C.embedImages||null==C.embedImages?this.editor.convertImages(Ba,mxUtils.bind(this,function(na){ha(mxUtils.getXml(na))})):ha(mxUtils.getXml(Ba))}));return}z.postMessage(JSON.stringify(aa),
-"*")}),null!=C.xml&&0<C.xml.length){if(this.editor.graph.mathEnabled){var W=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){W.apply(this,arguments);U()}}k=!0;this.setFileData(C.xml);k=!1;this.editor.graph.mathEnabled||U()}else U();return}if("load"==C.action){V=C.toSketch;m=1==C.autosave;this.hideDialog();null!=C.modified&&null==urlParams.modified&&(urlParams.modified=C.modified);null!=C.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=C.saveAndExit);if("1"==urlParams.saveAndExit||
+window.parent;if(this.editor.modified){var m=g.background;if(null==m||m==mxConstants.NONE)m=this.embedExportBackground;this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),g,null,!0,mxUtils.bind(this,function(u){k.postMessage(JSON.stringify({event:"export",point:this.embedExitPoint,exit:null!=d?!d:!0,data:Editor.createSvgDataUri(u)}),"*")}),null,null,!0,m,1,this.embedExportBorder,null,this.embedExportTheme)}else d||k.postMessage(JSON.stringify({event:"exit",point:this.embedExitPoint}),
+"*");d||(this.diagramContainer.removeAttribute("data-bounds"),Editor.inlineFullscreen=!1,g.model.clear(),this.editor.undoManager.clear(),this.setBackgroundImage(null),this.editor.modified=!1,"1"!=urlParams.embed&&this.fireEvent(new mxEventObject("editInlineStop")))}catch(u){d||this.handleError(u)}};EditorUi.prototype.installMessageHandler=function(d){var g=null,k=!1,m=!1,u=null,x=mxUtils.bind(this,function(F,C){this.editor.modified&&"0"!=urlParams.modified?null!=urlParams.modified&&this.updateStatus(mxUtils.bind(this,
+function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified)))})):this.clearStatus()});this.editor.graph.model.addListener(mxEvent.CHANGE,x);mxEvent.addListener(window,"message",mxUtils.bind(this,function(F){if(F.source==(window.opener||window.parent)){var C=F.data,P=null,R=mxUtils.bind(this,function(aa){if(null!=aa&&"function"===typeof aa.charAt&&"<"!=aa.charAt(0))try{Editor.isPngDataUrl(aa)?aa=Editor.extractGraphModelFromPng(aa):"data:image/svg+xml;base64,"==aa.substring(0,
+26)?aa=atob(aa.substring(26)):"data:image/svg+xml;utf8,"==aa.substring(0,24)&&(aa=aa.substring(24)),null!=aa&&(""==aa.trim()?aa=null:"%"==aa.charAt(0)?aa=decodeURIComponent(aa):"<"!=aa.charAt(0)&&(aa=Graph.decompress(aa)))}catch(ja){}return aa});if("json"==urlParams.proto){var U=!1;try{C=JSON.parse(C),EditorUi.debug("EditorUi.installMessageHandler",[this],"evt",[F],"data",[C])}catch(aa){C=null}try{if(null==C)return;if("dialog"==C.action){this.showError(null!=C.titleKey?mxResources.get(C.titleKey):
+C.title,null!=C.messageKey?mxResources.get(C.messageKey):mxUtils.htmlEntities(C.message),null!=C.buttonKey?mxResources.get(C.buttonKey):C.button);null!=C.modified&&(this.editor.modified=C.modified);return}if("layout"==C.action){this.executeLayouts(this.editor.graph.createLayouts(C.layouts));return}if("prompt"==C.action){this.spinner.stop();var O=new FilenameDialog(this,C.defaultValue||"",null!=C.okKey?mxResources.get(C.okKey):C.ok,function(aa){null!=aa?A.postMessage(JSON.stringify({event:"prompt",
+value:aa,message:C}),"*"):A.postMessage(JSON.stringify({event:"prompt-cancel",message:C}),"*")},null!=C.titleKey?mxResources.get(C.titleKey):C.title,null,null,null,null,function(){A.postMessage(JSON.stringify({event:"prompt-cancel",message:C}),"*")});this.showDialog(O.container,300,80,!0,!1);O.init();return}if("draft"==C.action){var V=R(C.xml);this.spinner.stop();O=new DraftDialog(this,mxResources.get("draftFound",[C.name||this.defaultFilename]),V,mxUtils.bind(this,function(){this.hideDialog();A.postMessage(JSON.stringify({event:"draft",
+result:"edit",message:C}),"*")}),mxUtils.bind(this,function(){this.hideDialog();A.postMessage(JSON.stringify({event:"draft",result:"discard",message:C}),"*")}),C.editKey?mxResources.get(C.editKey):null,C.discardKey?mxResources.get(C.discardKey):null,C.ignore?mxUtils.bind(this,function(){this.hideDialog();A.postMessage(JSON.stringify({event:"draft",result:"ignore",message:C}),"*")}):null);this.showDialog(O.container,640,480,!0,!1,mxUtils.bind(this,function(aa){aa&&this.actions.get("exit").funct()}));
+try{O.init()}catch(aa){A.postMessage(JSON.stringify({event:"draft",error:aa.toString(),message:C}),"*")}return}if("template"==C.action){this.spinner.stop();var q=1==C.enableRecent,y=1==C.enableSearch,D=1==C.enableCustomTemp;O=new NewDialog(this,!1,C.templatesOnly?!1:null!=C.callback,mxUtils.bind(this,function(aa,ja,ha,ea){aa=aa||this.emptyDiagramXml;null!=C.callback?A.postMessage(JSON.stringify({event:"template",xml:aa,blank:aa==this.emptyDiagramXml,name:ja,tempUrl:ha,libs:ea,builtIn:!0,message:C}),
+"*"):(d(aa,F,aa!=this.emptyDiagramXml,C.toSketch),this.editor.modified||this.clearStatus())}),null,null,null,null,null,null,null,q?mxUtils.bind(this,function(aa){this.remoteInvoke("getRecentDiagrams",[null],null,aa,function(){aa(null,"Network Error!")})}):null,y?mxUtils.bind(this,function(aa,ja){this.remoteInvoke("searchDiagrams",[aa,null],null,ja,function(){ja(null,"Network Error!")})}):null,mxUtils.bind(this,function(aa,ja,ha){A.postMessage(JSON.stringify({event:"template",docUrl:aa,info:ja,name:ha}),
+"*")}),null,null,D?mxUtils.bind(this,function(aa){this.remoteInvoke("getCustomTemplates",null,null,aa,function(){aa({},0)})}):null,1==C.withoutType);this.showDialog(O.container,620,460,!0,!1,mxUtils.bind(this,function(aa){null!=this.sidebar&&this.sidebar.hideTooltip();aa&&this.actions.get("exit").funct()}));O.init();return}if("textContent"==C.action){var J=this.getDiagramTextContent();A.postMessage(JSON.stringify({event:"textContent",data:J,message:C}),"*");return}if("status"==C.action){this.updateStatus(mxUtils.bind(this,
+function(){null!=C.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(C.messageKey))):null!=C.message&&this.editor.setStatus(mxUtils.htmlEntities(C.message))}));null!=C.modified&&(this.editor.modified=C.modified);return}if("spinner"==C.action){var L=null!=C.messageKey?mxResources.get(C.messageKey):C.message;null==C.show||C.show?this.spinner.spin(document.body,L):this.spinner.stop();return}if("exit"==C.action){this.actions.get("exit").funct();return}if("viewport"==C.action){if(null!=
+C.viewport){var K=this.editor.graph,n=K.view.translate.x,z=K.view.translate.y;this.embedViewport=C.viewport;K.refresh();this.diagramContainer.scrollTop-=(z-K.view.translate.y)*K.view.scale;this.diagramContainer.scrollLeft-=(n-K.view.translate.x)*K.view.scale;this.fireEvent(new mxEventObject("embedViewportChanged"))}return}if("fullscreenChanged"==C.action){O=null;try{var G=this.diagramContainer.getAttribute("data-scrollState");null!=G&&(this.diagramContainer.removeAttribute("data-scrollState"),O=JSON.parse(G))}catch(aa){}Editor.inlineFullscreen=
+C.value;this.fireEvent(new mxEventObject("inlineFullscreenChanged"));null!=O&&this.restoreScrollState(O);return}if("snapshot"==C.action){this.sendEmbeddedSvgExport(!0);return}if("export"==C.action){if("png"==C.format||"xmlpng"==C.format){if(null==C.spin&&null==C.spinKey||this.spinner.spin(document.body,null!=C.spinKey?mxResources.get(C.spinKey):C.spin)){var M=null!=C.xml?C.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);K=this.editor.graph;var N=mxUtils.bind(this,function(aa,ja){if(C.withSvg)C.withSvg=
+!1,this.getEmbeddedSvg(M,this.editor.graph,null,!0,function(ea){N(aa,ea)},null,null,C.embedImages,this.editor.graph.background,C.scale,C.border,C.shadow,"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var ha=this.createLoadMessage("export");ha.format=C.format;ha.message=C;ha.data=aa;ha.svg=ja;ha.xml=M;A.postMessage(JSON.stringify(ha),"*")}}),Q=mxUtils.bind(this,function(aa){null==aa&&(aa=Editor.blankImage);"xmlpng"==C.format&&(aa=Editor.writeGraphModelToPng(aa,"tEXt","mxfile",encodeURIComponent(M)));
+K!=this.editor.graph&&K.container.parentNode.removeChild(K.container);N(aa)}),S=C.pageId||(null!=this.pages?C.currentPage?this.currentPage.getId():this.pages[0].getId():null);if(this.isExportToCanvas()){var T=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=S){var aa=K.getGlobalVariable;K=this.createTemporaryGraph(K.getStylesheet());for(var ja,ha=0;ha<this.pages.length;ha++)if(this.pages[ha].getId()==S){ja=this.updatePageRoot(this.pages[ha]);break}null==ja&&(ja=this.currentPage);
+K.getGlobalVariable=function(na){return"page"==na?ja.getName():"pagenumber"==na?1:aa.apply(this,arguments)};document.body.appendChild(K.container);K.model.setRoot(ja.root)}if(null!=C.layerIds){var ea=K.model,ya=ea.getChildCells(ea.getRoot()),ua={};for(ha=0;ha<C.layerIds.length;ha++)ua[C.layerIds[ha]]=!0;for(ha=0;ha<ya.length;ha++)ea.setVisible(ya[ha],ua[ya[ha].id]||!1)}ha=null;C.keepTheme&&(ha=Editor.isDarkMode()?"dark":"light");this.editor.exportToCanvas(mxUtils.bind(this,function(na){Q(na.toDataURL("image/png"))}),
+C.width,null,C.background,mxUtils.bind(this,function(){Q(null)}),null,null,C.scale,C.transparent,C.shadow,null,K,C.border,null,C.grid,ha)});null!=C.xml&&0<C.xml.length&&(k=!0,this.setFileData(M),k=!1);T()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==C.format?"1":"0")+(null!=S?"&pageId="+S:"")+(null!=C.layerIds&&0<C.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:C.layerIds})):"")+(null!=C.scale?"&scale="+C.scale:"")+"&base64=1&xml="+encodeURIComponent(M))).send(mxUtils.bind(this,
+function(aa){200<=aa.getStatus()&&299>=aa.getStatus()?N("data:image/png;base64,"+aa.getText()):Q(null)}),mxUtils.bind(this,function(){Q(null)}))}}else if(T=mxUtils.bind(this,function(){var aa=this.createLoadMessage("export");aa.message=C;if("html2"==C.format||"html"==C.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var ja=this.getXmlFileData();aa.xml=mxUtils.getXml(ja);aa.data=this.getFileData(null,null,!0,null,null,null,ja);aa.format=C.format}else if("html"==C.format)ja=this.editor.getGraphXml(),
+aa.data=this.getHtml(ja,this.editor.graph),aa.xml=mxUtils.getXml(ja),aa.format=C.format;else{mxSvgCanvas2D.prototype.foAltText=null;ja=null!=C.background?C.background:this.editor.graph.background;ja==mxConstants.NONE&&(ja=null);aa.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);aa.format="svg";var ha=mxUtils.bind(this,function(ya){this.editor.graph.setEnabled(!0);this.spinner.stop();aa.data=Editor.createSvgDataUri(ya);A.postMessage(JSON.stringify(aa),"*")}),ea="auto";C.keepTheme&&
+(ea=Editor.isDarkMode()?"dark":"light");null!=C.theme&&(ea=C.theme);if("xmlsvg"==C.format){if(null==C.spin&&null==C.spinKey||this.spinner.spin(document.body,null!=C.spinKey?mxResources.get(C.spinKey):C.spin)){ea=null;if(this.isAutoDarkMode()||Editor.isDarkMode())ea="auto";null!=C.theme&&(ea=C.theme);this.getEmbeddedSvg(aa.xml,this.editor.graph,null,!0,ha,null,null,C.embedImages,ja,C.scale,C.border,C.shadow,ea)}}else if(null==C.spin&&null==C.spinKey||this.spinner.spin(document.body,null!=C.spinKey?
+mxResources.get(C.spinKey):C.spin))this.editor.graph.setEnabled(!1),ja=this.editor.graph.getSvg(ja,C.scale,C.border,null,null,null,null,null,null,this.editor.graph.shadowVisible||C.shadow,null,ea),(this.editor.graph.shadowVisible||C.shadow)&&this.editor.graph.addSvgShadow(ja),this.embedFonts(ja,mxUtils.bind(this,function(ya){C.embedImages||null==C.embedImages?this.editor.convertImages(ya,mxUtils.bind(this,function(ua){ha(mxUtils.getXml(ua))})):ha(mxUtils.getXml(ya))}));return}A.postMessage(JSON.stringify(aa),
+"*")}),null!=C.xml&&0<C.xml.length){if(this.editor.graph.mathEnabled){var W=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){W.apply(this,arguments);T()}}k=!0;this.setFileData(C.xml);k=!1;this.editor.graph.mathEnabled||T()}else T();return}if("load"==C.action){U=C.toSketch;m=1==C.autosave;this.hideDialog();null!=C.modified&&null==urlParams.modified&&(urlParams.modified=C.modified);null!=C.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=C.saveAndExit);if("1"==urlParams.saveAndExit||
"1"==urlParams.publishClose)if(this.actions.get("save").shortcut=null,!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(83,!0,"saveAndExit"),"1"!=urlParams.noSaveBtn&&(this.actions.get("save").shortcut=Editor.ctrlKey+"+Shift+S",this.keyHandler.bindAction(83,!0,"save",!0));null!=C.noSaveBtn&&null==urlParams.noSaveBtn&&(urlParams.noSaveBtn=C.noSaveBtn);if(null!=C.rough){var X=Editor.sketchMode;this.doSetSketchMode(C.rough);X!=Editor.sketchMode&&this.fireEvent(new mxEventObject("sketchModeChanged"))}null!=
-C.dark&&this.setDarkMode(C.dark);null!=C.border&&(this.embedExportBorder=C.border);null!=C.theme&&(this.embedExportTheme=C.theme);null!=C.background&&(this.embedExportBackground=C.background);null!=C.viewport&&(this.embedViewport=C.viewport);this.embedExitPoint=null;if(null!=C.rect){var Y=this.embedExportBorder;this.diagramContainer.style.left=Math.max(60,C.rect.left)+"px";this.diagramContainer.style.top=Math.max(40,C.rect.top)+"px";this.minInlineWidth=C.minWidth;this.minInlineHeight=C.minHeight;
-this.diagramContainer.style.border="2px solid #295fcc";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";var Z=C.maxFitScale,ca=C.rect.width+2*Y,ea=C.rect.height+2*Y;Q=mxUtils.bind(this,function(){var aa=mxUtils.getDocumentSize();ca=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,ca):ca,aa.width-80);aa=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,ea):ea,aa.height-80);this.diagramContainer.style.width=ca+"px";this.diagramContainer.style.height=
-aa+"px";var ja=this.editor.graph;aa=ja.maxFitScale;ja.maxFitScale=Z;ja.fit(2*Y,null,null,null,null,null,ea);this.setPageVisible(!1);if(null!=this.minInlineWidth&&ja.getGraphBounds().width<this.minInlineWidth){var ha=ja.container.scrollTop;this.resetScrollbars();ja.container.scrollTop=ha}ja.maxFitScale=aa;ja.container.scrollTop-=Y;ja.container.scrollLeft-=Y;window.setTimeout(mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("editInlineStart","data",[C]));ja.container.focus();null!=this.formatWindow&&
-null!=this.formatWindow.window&&this.formatWindow.window.isVisible()&&(this.formatWindow.window.div.style.top=ja.container.style.top);var da=ja.getGraphBounds();ja.container.clientWidth>da.width+2*Y&&(ja.container.scrollLeft=da.x+(da.width+Y-ja.container.clientWidth)/2)}),10)})}null!=C.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=C.noExitBtn);null!=C.title&&null!=this.buttonContainer&&this.setEmbedTitle(C.title);try{C.libs&&this.sidebar.showEntries(C.libs)}catch(aa){}C=null!=C.xmlpng?
-this.extractGraphModelFromPng(C.xmlpng):null!=C.descriptor?C.descriptor:C.xml}else{if("merge"==C.action){var ia=this.getCurrentFile();null!=ia&&(u=S(C.xml),null!=u&&""!=u&&ia.mergeFile(new LocalFile(this,u),function(){z.postMessage(JSON.stringify({event:"merge",message:C}),"*")},function(aa){z.postMessage(JSON.stringify({event:"merge",message:C,error:aa}),"*")}))}else"remoteInvokeReady"==C.action?this.handleRemoteInvokeReady(z):"remoteInvoke"==C.action?this.handleRemoteInvoke(C,F.origin):"remoteInvokeResponse"==
-C.action?this.handleRemoteInvokeResponse(C):z.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(C)}),"*");return}}catch(aa){this.handleError(aa)}}var ba=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),fa=mxUtils.bind(this,function(aa,ja){k=!0;try{d(aa,ja,null,V)}catch(ha){this.handleError(ha)}k=!1;null!=urlParams.modified&&this.clearStatus();t=ba();m&&null==g&&(g=mxUtils.bind(this,
-function(ha,da){ha=ba();ha==t||k||(da=this.createLoadMessage("autosave"),da.xml=ha,(window.opener||window.parent).postMessage(JSON.stringify(da),"*"));t=ha}),this.editor.graph.model.addListener(mxEvent.CHANGE,g),this.editor.graph.addListener("gridSizeChanged",g),this.editor.graph.addListener("shadowVisibleChanged",g),this.addListener("pageFormatChanged",g),this.addListener("pageScaleChanged",g),this.addListener("backgroundColorChanged",g),this.addListener("backgroundImageChanged",g),this.addListener("foldingEnabledChanged",
-g),this.addListener("mathEnabledChanged",g),this.addListener("gridEnabledChanged",g),this.addListener("guidesEnabledChanged",g),this.addListener("pageViewChanged",g));if("1"==urlParams.returnbounds||"json"==urlParams.proto)ja=this.createLoadMessage("load"),ja.xml=aa,z.postMessage(JSON.stringify(ja),"*");null!=Q&&Q()});null!=C&&"function"===typeof C.substring&&"data:application/vnd.visio;base64,"==C.substring(0,34)?(S="0M8R4KGxGuE"==C.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(C.substring(C.indexOf(",")+
-1)),function(aa){fa(aa,F)},mxUtils.bind(this,function(aa){this.handleError(aa)}),S)):null!=C&&"function"===typeof C.substring&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(C,"")?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(C,mxUtils.bind(this,function(aa){4==aa.readyState&&(200<=aa.status&&299>=aa.status&&"<mxGraphModel"==aa.responseText.substring(0,13)?fa(aa.responseText,F):this.handleError({message:413==aa.status?mxResources.get("diagramTooLarge"):
-mxResources.get("unknownError")}))}),""):null!=C&&"function"===typeof C.substring&&this.isLucidChartData(C)?this.convertLucidChart(C,mxUtils.bind(this,function(aa){fa(aa)}),mxUtils.bind(this,function(aa){this.handleError(aa)})):null==C||"object"!==typeof C||null==C.format||null==C.data&&null==C.url?(C=S(C),fa(C,F)):this.loadDescriptor(C,mxUtils.bind(this,function(aa){fa(ba(),F)}),mxUtils.bind(this,function(aa){this.handleError(aa,mxResources.get("errorLoadingFile"))}))}}));var z=window.opener||window.parent;
-y="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";z.postMessage(y,"*");if("json"==urlParams.proto){var I=this.editor.graph.openLink;this.editor.graph.openLink=function(F,C,Q){I.apply(this,arguments);z.postMessage(JSON.stringify({event:"openLink",href:F,target:C,allowOpener:Q}),"*")}}};EditorUi.prototype.createEmbedButton=function(d,g,k,m){var t=document.createElement("button");t.className="geEmbedBtn geBtn";t.setAttribute("title",d+(null!=k?" ("+k+")":""));mxUtils.write(t,
-d);m&&t.classList.add("gePrimaryBtn");mxEvent.addListener(t,"click",g);return t};EditorUi.prototype.setEmbedTitle=function(d){d=this.createStatusDiv(d);null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan);"kennedy"==Editor.currentTheme||"atlas"==Editor.currentTheme?this.menubarContainer.appendChild(d):this.buttonContainer.appendChild(d);this.embedFilenameSpan=d};EditorUi.prototype.addEmbedButtons=function(){this.dependsOnLanguage(mxUtils.bind(this,function(){var d=
+C.dark&&this.setDarkMode(C.dark);null!=C.border&&(this.embedExportBorder=C.border);null!=C.theme&&(this.embedExportTheme=C.theme);null!=C.background&&(this.embedExportBackground=C.background);null!=C.viewport&&(this.embedViewport=C.viewport);this.embedExitPoint=null;if(null!=C.rect){var Z=this.embedExportBorder;this.diagramContainer.style.left=Math.max(60,C.rect.left)+"px";this.diagramContainer.style.top=Math.max(40,C.rect.top)+"px";this.minInlineWidth=C.minWidth;this.minInlineHeight=C.minHeight;
+this.diagramContainer.style.border="2px solid #295fcc";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";var Y=C.maxFitScale,ba=C.rect.width+2*Z,da=C.rect.height+2*Z;P=mxUtils.bind(this,function(){var aa=mxUtils.getDocumentSize();ba=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,ba):ba,aa.width-80);aa=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,da):da,aa.height-80);this.diagramContainer.style.width=ba+"px";this.diagramContainer.style.height=
+aa+"px";var ja=this.editor.graph;aa=ja.maxFitScale;ja.maxFitScale=Y;ja.fit(2*Z,null,null,null,null,null,da);this.setPageVisible(!1);if(null!=this.minInlineWidth&&ja.getGraphBounds().width<this.minInlineWidth){var ha=ja.container.scrollTop;this.resetScrollbars();ja.container.scrollTop=ha}ja.maxFitScale=aa;ja.container.scrollTop-=Z;ja.container.scrollLeft-=Z;window.setTimeout(mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("editInlineStart","data",[C]));ja.container.focus();null!=this.formatWindow&&
+null!=this.formatWindow.window&&this.formatWindow.window.isVisible()&&(this.formatWindow.window.div.style.top=ja.container.style.top);var ea=ja.getGraphBounds();ja.container.clientWidth>ea.width+2*Z&&(ja.container.scrollLeft=ea.x+(ea.width+Z-ja.container.clientWidth)/2)}),10)})}null!=C.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=C.noExitBtn);null!=C.title&&null!=this.buttonContainer&&this.setEmbedTitle(C.title);try{C.libs&&this.sidebar.showEntries(C.libs)}catch(aa){}C=null!=C.xmlpng?
+this.extractGraphModelFromPng(C.xmlpng):null!=C.descriptor?C.descriptor:C.xml}else{if("merge"==C.action){var ia=this.getCurrentFile();null!=ia&&(V=R(C.xml),null!=V&&""!=V&&ia.mergeFile(new LocalFile(this,V),function(){A.postMessage(JSON.stringify({event:"merge",message:C}),"*")},function(aa){A.postMessage(JSON.stringify({event:"merge",message:C,error:aa}),"*")}))}else"remoteInvokeReady"==C.action?this.handleRemoteInvokeReady(A):"remoteInvoke"==C.action?this.handleRemoteInvoke(C,F.origin):"remoteInvokeResponse"==
+C.action?this.handleRemoteInvokeResponse(C):A.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(C)}),"*");return}}catch(aa){this.handleError(aa)}}var ca=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),fa=mxUtils.bind(this,function(aa,ja){k=!0;try{d(aa,ja,null,U)}catch(ha){this.handleError(ha)}k=!1;null!=urlParams.modified&&this.clearStatus();u=ca();m&&null==g&&(g=mxUtils.bind(this,
+function(ha,ea){ha=ca();ha==u||k||(ea=this.createLoadMessage("autosave"),ea.xml=ha,(window.opener||window.parent).postMessage(JSON.stringify(ea),"*"));u=ha}),this.editor.graph.model.addListener(mxEvent.CHANGE,g),this.editor.graph.addListener("gridSizeChanged",g),this.editor.graph.addListener("shadowVisibleChanged",g),this.addListener("pageFormatChanged",g),this.addListener("pageScaleChanged",g),this.addListener("backgroundColorChanged",g),this.addListener("backgroundImageChanged",g),this.addListener("foldingEnabledChanged",
+g),this.addListener("mathEnabledChanged",g),this.addListener("gridEnabledChanged",g),this.addListener("guidesEnabledChanged",g),this.addListener("pageViewChanged",g));if("1"==urlParams.returnbounds||"json"==urlParams.proto)ja=this.createLoadMessage("load"),ja.xml=aa,A.postMessage(JSON.stringify(ja),"*");null!=P&&P()});null!=C&&"function"===typeof C.substring&&"data:application/vnd.visio;base64,"==C.substring(0,34)?(R="0M8R4KGxGuE"==C.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(C.substring(C.indexOf(",")+
+1)),function(aa){fa(aa,F)},mxUtils.bind(this,function(aa){this.handleError(aa)}),R)):null!=C&&"function"===typeof C.substring&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(C,"")?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(C,mxUtils.bind(this,function(aa){4==aa.readyState&&(200<=aa.status&&299>=aa.status&&"<mxGraphModel"==aa.responseText.substring(0,13)?fa(aa.responseText,F):this.handleError({message:413==aa.status?mxResources.get("diagramTooLarge"):
+mxResources.get("unknownError")}))}),""):null!=C&&"function"===typeof C.substring&&this.isLucidChartData(C)?this.convertLucidChart(C,mxUtils.bind(this,function(aa){fa(aa)}),mxUtils.bind(this,function(aa){this.handleError(aa)})):null==C||"object"!==typeof C||null==C.format||null==C.data&&null==C.url?(C=R(C),fa(C,F)):this.loadDescriptor(C,mxUtils.bind(this,function(aa){fa(ca(),F)}),mxUtils.bind(this,function(aa){this.handleError(aa,mxResources.get("errorLoadingFile"))}))}}));var A=window.opener||window.parent;
+x="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";A.postMessage(x,"*");if("json"==urlParams.proto){var I=this.editor.graph.openLink;this.editor.graph.openLink=function(F,C,P){I.apply(this,arguments);A.postMessage(JSON.stringify({event:"openLink",href:F,target:C,allowOpener:P}),"*")}}};EditorUi.prototype.createEmbedButton=function(d,g,k,m){var u=document.createElement("button");u.className="geEmbedBtn geBtn";u.setAttribute("title",d+(null!=k?" ("+k+")":""));mxUtils.write(u,
+d);m&&u.classList.add("gePrimaryBtn");mxEvent.addListener(u,"click",g);return u};EditorUi.prototype.setEmbedTitle=function(d){d=this.createStatusDiv(d);null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan);"kennedy"==Editor.currentTheme||"atlas"==Editor.currentTheme?this.menubarContainer.appendChild(d):this.buttonContainer.appendChild(d);this.embedFilenameSpan=d};EditorUi.prototype.addEmbedButtons=function(){this.dependsOnLanguage(mxUtils.bind(this,function(){var d=
null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode==this.buttonContainer;this.buttonContainer.innerText="";d&&this.buttonContainer.appendChild(this.embedFilenameSpan);this.commentsSupported()&&null!=this.commentButton&&this.buttonContainer.appendChild(this.commentButton);"1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&this.buttonContainer.appendChild(this.createEmbedButton("1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,
Editor.ctrlKey+"+S",!0)):(this.buttonContainer.appendChild(this.createEmbedButton(mxResources.get("save"),mxUtils.bind(this,function(){this.actions.get("save").funct(!1)}),"1"==urlParams.saveAndExit?Editor.ctrlKey+"+Shift+S":Editor.ctrlKey+"+S",!0)),"1"==urlParams.saveAndExit&&this.buttonContainer.appendChild(this.createEmbedButton(mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S")));"1"!=urlParams.noExitBtn&&this.buttonContainer.appendChild(this.createEmbedButton("1"==
urlParams.publishClose?mxResources.get("close"):mxResources.get("exit"),this.actions.get("exit").funct))}))};EditorUi.prototype.showImportCsvDialog=function(){null==this.importCsvDialog&&(this.importCsvDialog=new TextareaDialog(this,mxResources.get("csv")+":",Editor.defaultCsvValue,mxUtils.bind(this,function(d){this.importCsv(d)}),null,null,620,430,null,!0,!0,mxResources.get("import"),this.isOffline()?null:"https://drawio-app.com/import-from-csv-to-drawio/"));this.showDialog(this.importCsvDialog.container,
-640,520,!0,!0,null,null,null,null,!0);this.importCsvDialog.init()};EditorUi.prototype.showCustomLayoutDialog=function(d){this.loadOrgChartLayouts(mxUtils.bind(this,function(){var g=new TextareaDialog(this,mxResources.get("layout"),d,mxUtils.bind(this,function(k){if(0<k.length)try{var m=JSON.parse(k);this.executeLayouts(this.editor.graph.createLayouts(m));this.customLayoutConfig=m;this.hideDialog()}catch(t){this.handleError(t)}}),null,null,null,null,mxUtils.bind(this,function(k,m){var t=mxUtils.button(mxResources.get("copy"),
-mxUtils.bind(this,function(){try{var y=m.value;m.value=JSON.stringify(JSON.parse(y));m.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?m.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));m.value=y}catch(z){this.handleError(z)}}));t.setAttribute("title","copy");t.className="geBtn";k.appendChild(t)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(g.container,620,460,!0,!0);g.init()}))};
-EditorUi.prototype.loadOrgChartLayouts=function(d){this.createTimeout(null,mxUtils.bind(this,function(g){var k=mxUtils.bind(this,function(){this.loadingOrgChart=!1;g.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),this.spinner.stop(),d())}),m=mxUtils.bind(this,function(t){this.loadingOrgChart=!1;g.clear()&&this.handleError(t)});"undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0)?k():this.spinner.spin(document.body,mxResources.get("loading"))&&(this.loadingOrgChart=
+640,520,!0,!0,null,null,null,null,!0);this.importCsvDialog.init()};EditorUi.prototype.showCustomLayoutDialog=function(d){this.loadOrgChartLayouts(mxUtils.bind(this,function(){var g=new TextareaDialog(this,mxResources.get("layout"),d,mxUtils.bind(this,function(k){if(0<k.length)try{var m=JSON.parse(k);this.executeLayouts(this.editor.graph.createLayouts(m));this.customLayoutConfig=m;this.hideDialog()}catch(u){this.handleError(u)}}),null,null,null,null,mxUtils.bind(this,function(k,m){var u=mxUtils.button(mxResources.get("copy"),
+mxUtils.bind(this,function(){try{var x=m.value;m.value=JSON.stringify(JSON.parse(x));m.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?m.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));m.value=x}catch(A){this.handleError(A)}}));u.setAttribute("title","copy");u.className="geBtn";k.appendChild(u)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(g.container,620,460,!0,!0);g.init()}))};
+EditorUi.prototype.loadOrgChartLayouts=function(d){this.createTimeout(null,mxUtils.bind(this,function(g){var k=mxUtils.bind(this,function(){this.loadingOrgChart=!1;g.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),this.spinner.stop(),d())}),m=mxUtils.bind(this,function(u){this.loadingOrgChart=!1;g.clear()&&this.handleError(u)});"undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0)?k():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",k,null,null,null,m)},null,null,null,m)},null,null,null,m)},null,null,null,m):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",k,null,null,null,m))}),onerror)};EditorUi.prototype.importCsv=function(d,g){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(d,
-g)}))};EditorUi.prototype.doImportCsv=function(d,g){try{var k=d.split("\n"),m=[],t=[],y=[],z={};if(0<k.length){var I={},F=this.editor.graph,C=null,Q=null,S=null,V=null,P=null,u=null,x=null,J="whiteSpace=wrap;html=1;",H=null,K=null,N="",M="auto",n="auto",A=!1,E=null,L=null,O=40,R=40,T=100,U=0,W=mxUtils.bind(this,function(){null!=g?g(Ia):(F.setSelectionCells(Ia),F.scrollCellToVisible(F.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),
-0)}),X=F.getFreeInsertPoint(),Y=X.x,Z=X.y;X=Z;var ca=null,ea="auto";K=null;for(var ia=[],ba=null,fa=null,aa=0;aa<k.length&&"#"==k[aa].charAt(0);){d=k[aa].replace(/\r$/,"");for(aa++;aa<k.length&&"\\"==d.charAt(d.length-1)&&"#"==k[aa].charAt(0);)d=d.substring(0,d.length-1)+mxUtils.trim(k[aa].substring(1)),aa++;if("#"!=d.charAt(1)){var ja=d.indexOf(":");if(0<ja){var ha=mxUtils.trim(d.substring(1,ja)),da=mxUtils.trim(d.substring(ja+1));"label"==ha?ca=Graph.sanitizeHtml(da):"labelname"==ha&&0<da.length&&
-"-"!=da?P=da:"labels"==ha&&0<da.length&&"-"!=da?x=JSON.parse(da):"style"==ha?Q=da:"parentstyle"==ha?J=da:"unknownStyle"==ha&&"-"!=da?u=da:"stylename"==ha&&0<da.length&&"-"!=da?V=da:"styles"==ha&&0<da.length&&"-"!=da?S=JSON.parse(da):"vars"==ha&&0<da.length&&"-"!=da?C=JSON.parse(da):"identity"==ha&&0<da.length&&"-"!=da?H=da:"parent"==ha&&0<da.length&&"-"!=da?K=da:"namespace"==ha&&0<da.length&&"-"!=da?N=da:"width"==ha?M=da:"height"==ha?n=da:"collapsed"==ha&&"-"!=da?A="true"==da:"left"==ha&&0<da.length?
-E=da:"top"==ha&&0<da.length?L=da:"ignore"==ha?fa=da.split(","):"connect"==ha?ia.push(JSON.parse(da)):"link"==ha?ba=da:"padding"==ha?U=parseFloat(da):"edgespacing"==ha?O=parseFloat(da):"nodespacing"==ha?R=parseFloat(da):"levelspacing"==ha?T=parseFloat(da):"layout"==ha&&(ea=da)}}}if(null==k[aa])throw Error(mxResources.get("invalidOrMissingFile"));var Ba=this.editor.csvToArray(k[aa].replace(/\r$/,""));ja=d=null;ha=[];for(da=0;da<Ba.length;da++)H==Ba[da]&&(d=da),K==Ba[da]&&(ja=da),ha.push(mxUtils.trim(Ba[da]).replace(/[^a-z0-9]+/ig,
-"_").replace(/^\d+/,"").replace(/_+$/,""));null==ca&&(ca="%"+ha[0]+"%");if(null!=ia)for(var na=0;na<ia.length;na++)null==I[ia[na].to]&&(I[ia[na].to]={});H=[];for(da=aa+1;da<k.length;da++){var va=this.editor.csvToArray(k[da].replace(/\r$/,""));if(null==va){var Aa=40<k[da].length?k[da].substring(0,40)+"...":k[da];throw Error(Aa+" ("+da+"):\n"+mxResources.get("containsValidationErrors"));}0<va.length&&H.push(va)}F.model.beginUpdate();try{for(da=0;da<H.length;da++){va=H[da];var ka=null,ta=null!=d?N+va[d]:
-null;k=!1;null!=ta&&(ka=F.model.getCell(ta),k=null==ka||0<=mxUtils.indexOf(m,ka));var pa=new mxCell(ca,new mxGeometry(Y,X,0,0),Q||"whiteSpace=wrap;html=1;");pa.collapsed=A;pa.vertex=!0;pa.id=ta;null==ka||k||F.model.setCollapsed(ka,A);for(var ma=0;ma<va.length;ma++)F.setAttributeForCell(pa,ha[ma],va[ma]),null==ka||k||F.setAttributeForCell(ka,ha[ma],va[ma]);if(null!=P&&null!=x){var Da=x[pa.getAttribute(P)];null!=Da&&(F.labelChanged(pa,Da),null==ka||k||F.cellLabelChanged(ka,Da))}if(null!=V&&null!=S){var wa=
-S[pa.getAttribute(V)];null!=wa&&(pa.style=wa)}F.setAttributeForCell(pa,"placeholders","1");pa.style=F.replacePlaceholders(pa,pa.style,C);null==ka||k?F.fireEvent(new mxEventObject("cellsInserted","cells",[pa])):(F.model.setStyle(ka,pa.style),0>mxUtils.indexOf(y,ka)&&y.push(ka),F.fireEvent(new mxEventObject("cellsInserted","cells",[ka])));k=null!=ka;ka=pa;if(!k)for(na=0;na<ia.length;na++)I[ia[na].to][ka.getAttribute(ia[na].to)]=ka;null!=ba&&"link"!=ba&&(F.setLinkForCell(ka,ka.getAttribute(ba)),F.setAttributeForCell(ka,
-ba,null));var ya=this.editor.graph.getPreferredSizeForCell(ka);K=null!=ja?F.model.getCell(N+va[ja]):null;if(ka.vertex){Aa=null!=K?0:Y;aa=null!=K?0:Z;null!=E&&null!=ka.getAttribute(E)&&(ka.geometry.x=Aa+parseFloat(ka.getAttribute(E)));null!=L&&null!=ka.getAttribute(L)&&(ka.geometry.y=aa+parseFloat(ka.getAttribute(L)));var xa="@"==M.charAt(0)?ka.getAttribute(M.substring(1)):null;ka.geometry.width=null!=xa&&"auto"!=xa?parseFloat(ka.getAttribute(M.substring(1))):"auto"==M||"auto"==xa?ya.width+U:parseFloat(M);
-var Fa="@"==n.charAt(0)?ka.getAttribute(n.substring(1)):null;ka.geometry.height=null!=Fa&&"auto"!=Fa&&"width"!=n?parseFloat(Fa):"auto"==n||"auto"==Fa?ya.height+U:"width"==n?ka.geometry.width:parseFloat(n);X+=ka.geometry.height+R}k?(null==z[ta]&&(z[ta]=[]),z[ta].push(ka)):(m.push(ka),null!=K?(K.style=F.replacePlaceholders(K,J,C),F.addCell(ka,K),t.push(K)):y.push(F.addCell(ka)))}for(da=0;da<t.length;da++)xa="@"==M.charAt(0)?t[da].getAttribute(M.substring(1)):null,Fa="@"==n.charAt(0)?t[da].getAttribute(n.substring(1)):
-null,"auto"!=M&&"auto"!=xa||"auto"!=n&&"auto"!=Fa||F.updateGroupBounds([t[da]],U,!0);var Ca=y.slice(),Ia=y.slice();for(na=0;na<ia.length;na++){var La=ia[na];for(da=0;da<m.length;da++){ka=m[da];var Ea=mxUtils.bind(this,function(la,sa,oa){var qa=sa.getAttribute(oa.from);if(null!=qa&&""!=qa){qa=qa.split(",");for(var ra=0;ra<qa.length;ra++){var ua=I[oa.to][qa[ra]];if(null==ua&&null!=u){ua=new mxCell(qa[ra],new mxGeometry(Y,Z,0,0),u);ua.style=F.replacePlaceholders(sa,ua.style,C);var Ga=this.editor.graph.getPreferredSizeForCell(ua);
-ua.geometry.width=Ga.width+U;ua.geometry.height=Ga.height+U;I[oa.to][qa[ra]]=ua;ua.vertex=!0;ua.id=qa[ra];y.push(F.addCell(ua))}if(null!=ua){Ga=oa.label;null!=oa.fromlabel&&(Ga=(sa.getAttribute(oa.fromlabel)||"")+(Ga||""));null!=oa.sourcelabel&&(Ga=F.replacePlaceholders(sa,oa.sourcelabel,C)+(Ga||""));null!=oa.tolabel&&(Ga=(Ga||"")+(ua.getAttribute(oa.tolabel)||""));null!=oa.targetlabel&&(Ga=(Ga||"")+F.replacePlaceholders(ua,oa.targetlabel,C));var Ja="target"==oa.placeholders==!oa.invert?ua:la;Ja=
-null!=oa.style?F.replacePlaceholders(Ja,oa.style,C):F.createCurrentEdgeStyle();Ga=F.insertEdge(null,null,Ga||"",oa.invert?ua:la,oa.invert?la:ua,Ja);if(null!=oa.labels)for(Ja=0;Ja<oa.labels.length;Ja++){var Ka=oa.labels[Ja],Na=new mxCell(Ka.label||Ja,new mxGeometry(null!=Ka.x?Ka.x:0,null!=Ka.y?Ka.y:0,0,0),"resizable=0;html=1;");Na.vertex=!0;Na.connectable=!1;Na.geometry.relative=!0;null!=Ka.placeholders&&(Na.value=F.replacePlaceholders("target"==Ka.placeholders==!oa.invert?ua:la,Na.value,C));if(null!=
-Ka.dx||null!=Ka.dy)Na.geometry.offset=new mxPoint(null!=Ka.dx?Ka.dx:0,null!=Ka.dy?Ka.dy:0);Ga.insert(Na)}if(null!=oa.data)for(var Pa in oa.data)F.setAttributeForCell(Ga,Pa,oa.data[Pa]);Ia.push(Ga);mxUtils.remove(oa.invert?la:ua,Ca)}}}});Ea(ka,ka,La);if(null!=z[ka.id])for(ma=0;ma<z[ka.id].length;ma++)Ea(ka,z[ka.id][ma],La)}}if(null!=fa)for(da=0;da<m.length;da++)for(ka=m[da],ma=0;ma<fa.length;ma++)F.setAttributeForCell(ka,mxUtils.trim(fa[ma]),null);if(0<y.length){var za=new mxParallelEdgeLayout(F);
-za.spacing=O;za.checkOverlap=!0;var Sa=function(){0<za.spacing&&za.execute(F.getDefaultParent());for(var la=0;la<y.length;la++){var sa=F.getCellGeometry(y[la]);sa.x=Math.round(F.snap(sa.x));sa.y=Math.round(F.snap(sa.y));"auto"==M&&(sa.width=Math.round(F.snap(sa.width)));"auto"==n&&(sa.height=Math.round(F.snap(sa.height)))}};if("["==ea.charAt(0)){var Ta=W;F.view.validate();this.executeLayouts(F.createLayouts(JSON.parse(ea)),function(){Sa();Ta()});W=null}else if("circle"==ea){var Ua=new mxCircleLayout(F);
-Ua.disableEdgeStyle=!1;Ua.resetEdges=!1;var hb=Ua.isVertexIgnored;Ua.isVertexIgnored=function(la){return hb.apply(this,arguments)||0>mxUtils.indexOf(y,la)};this.executeLayout(function(){Ua.execute(F.getDefaultParent());Sa()},!0,W);W=null}else if("horizontaltree"==ea||"verticaltree"==ea||"auto"==ea&&Ia.length==2*y.length-1&&1==Ca.length){F.view.validate();var Ra=new mxCompactTreeLayout(F,"horizontaltree"==ea);Ra.levelDistance=R;Ra.edgeRouting=!1;Ra.resetEdges=!1;Ra.sortEdges=!0;this.executeLayout(function(){Ra.execute(F.getDefaultParent(),
-0<Ca.length?Ca[0]:null)},!0,W);W=null}else if("horizontalflow"==ea||"verticalflow"==ea||"auto"==ea&&1==Ca.length){F.view.validate();var Wa=new mxHierarchicalLayout(F,"horizontalflow"==ea?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);Wa.intraCellSpacing=R;Wa.parallelEdgeSpacing=O;Wa.interRankCellSpacing=T;Wa.disableEdgeStyle=!1;this.executeLayout(function(){Wa.execute(F.getDefaultParent(),Ia);F.moveCells(Ia,Y,Z)},!0,W);W=null}else if("orgchart"==ea){F.view.validate();var Va=new mxOrgChartLayout(F,
-2,T,R),fb=Va.isVertexIgnored;Va.isVertexIgnored=function(la){return fb.apply(this,arguments)||0>mxUtils.indexOf(y,la)};this.executeLayout(function(){Va.execute(F.getDefaultParent());Sa()},!0,W);W=null}else if("organic"==ea||"auto"==ea&&Ia.length>y.length){F.view.validate();var ab=new mxFastOrganicLayout(F);ab.forceConstant=3*R;ab.disableEdgeStyle=!1;ab.resetEdges=!1;var db=ab.isVertexIgnored;ab.isVertexIgnored=function(la){return db.apply(this,arguments)||0>mxUtils.indexOf(y,la)};this.executeLayout(function(){ab.execute(F.getDefaultParent());
-Sa()},!0,W);W=null}}this.hideDialog()}finally{F.model.endUpdate()}null!=W&&W()}}catch(la){this.handleError(la)}};EditorUi.prototype.getSearch=function(d){var g="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=d&&0<window.location.search.length){var k="?",m;for(m in urlParams)0>mxUtils.indexOf(d,m)&&null!=urlParams[m]&&(g+=k+m+"="+urlParams[m],k="&")}else g=window.location.search;return g};EditorUi.prototype.getUrl=function(d){d=null!=d?d:window.location.pathname;var g=0<d.indexOf("?")?1:0;
-if("1"==urlParams.offline)d+=window.location.search;else{var k="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),m;for(m in urlParams)0>mxUtils.indexOf(k,m)&&(d=0==g?d+"?":d+"&",null!=urlParams[m]&&(d+=m+"="+urlParams[m],g++))}return d};EditorUi.prototype.showLinkDialog=function(d,g,k,m,t){d=new LinkDialog(this,d,g,k,!0,m,t);this.showDialog(d.container,440,120,!0,!0);d.init()};EditorUi.prototype.getServiceCount=function(d){var g=1;null==this.drive&&
+g)}))};EditorUi.prototype.doImportCsv=function(d,g){try{var k=d.split("\n"),m=[],u=[],x=[],A={};if(0<k.length){var I={},F=this.editor.graph,C=null,P=null,R=null,U=null,O=null,V=null,q=null,y="whiteSpace=wrap;html=1;",D=null,J=null,L="",K="auto",n="auto",z=!1,G=null,M=null,N=40,Q=40,S=100,T=0,W=mxUtils.bind(this,function(){null!=g?g(Ka):(F.setSelectionCells(Ka),F.scrollCellToVisible(F.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),
+0)}),X=F.getFreeInsertPoint(),Z=X.x,Y=X.y;X=Y;var ba=null,da="auto";J=null;for(var ia=[],ca=null,fa=null,aa=0;aa<k.length&&"#"==k[aa].charAt(0);){d=k[aa].replace(/\r$/,"");for(aa++;aa<k.length&&"\\"==d.charAt(d.length-1)&&"#"==k[aa].charAt(0);)d=d.substring(0,d.length-1)+mxUtils.trim(k[aa].substring(1)),aa++;if("#"!=d.charAt(1)){var ja=d.indexOf(":");if(0<ja){var ha=mxUtils.trim(d.substring(1,ja)),ea=mxUtils.trim(d.substring(ja+1));"label"==ha?ba=Graph.sanitizeHtml(ea):"labelname"==ha&&0<ea.length&&
+"-"!=ea?O=ea:"labels"==ha&&0<ea.length&&"-"!=ea?q=JSON.parse(ea):"style"==ha?P=ea:"parentstyle"==ha?y=ea:"unknownStyle"==ha&&"-"!=ea?V=ea:"stylename"==ha&&0<ea.length&&"-"!=ea?U=ea:"styles"==ha&&0<ea.length&&"-"!=ea?R=JSON.parse(ea):"vars"==ha&&0<ea.length&&"-"!=ea?C=JSON.parse(ea):"identity"==ha&&0<ea.length&&"-"!=ea?D=ea:"parent"==ha&&0<ea.length&&"-"!=ea?J=ea:"namespace"==ha&&0<ea.length&&"-"!=ea?L=ea:"width"==ha?K=ea:"height"==ha?n=ea:"collapsed"==ha&&"-"!=ea?z="true"==ea:"left"==ha&&0<ea.length?
+G=ea:"top"==ha&&0<ea.length?M=ea:"ignore"==ha?fa=ea.split(","):"connect"==ha?ia.push(JSON.parse(ea)):"link"==ha?ca=ea:"padding"==ha?T=parseFloat(ea):"edgespacing"==ha?N=parseFloat(ea):"nodespacing"==ha?Q=parseFloat(ea):"levelspacing"==ha?S=parseFloat(ea):"layout"==ha&&(da=ea)}}}if(null==k[aa])throw Error(mxResources.get("invalidOrMissingFile"));var ya=this.editor.csvToArray(k[aa].replace(/\r$/,""));ja=d=null;ha=[];for(ea=0;ea<ya.length;ea++)D==ya[ea]&&(d=ea),J==ya[ea]&&(ja=ea),ha.push(mxUtils.trim(ya[ea]).replace(/[^a-z0-9]+/ig,
+"_").replace(/^\d+/,"").replace(/_+$/,""));null==ba&&(ba="%"+ha[0]+"%");if(null!=ia)for(var ua=0;ua<ia.length;ua++)null==I[ia[ua].to]&&(I[ia[ua].to]={});D=[];for(ea=aa+1;ea<k.length;ea++){var na=this.editor.csvToArray(k[ea].replace(/\r$/,""));if(null==na){var za=40<k[ea].length?k[ea].substring(0,40)+"...":k[ea];throw Error(za+" ("+ea+"):\n"+mxResources.get("containsValidationErrors"));}0<na.length&&D.push(na)}F.model.beginUpdate();try{for(ea=0;ea<D.length;ea++){na=D[ea];var ma=null,sa=null!=d?L+na[d]:
+null;k=!1;null!=sa&&(ma=F.model.getCell(sa),k=null==ma||0<=mxUtils.indexOf(m,ma));var oa=new mxCell(ba,new mxGeometry(Z,X,0,0),P||"whiteSpace=wrap;html=1;");oa.collapsed=z;oa.vertex=!0;oa.id=sa;null==ma||k||F.model.setCollapsed(ma,z);for(var la=0;la<na.length;la++)F.setAttributeForCell(oa,ha[la],na[la]),null==ma||k||F.setAttributeForCell(ma,ha[la],na[la]);if(null!=O&&null!=q){var Ea=q[oa.getAttribute(O)];null!=Ea&&(F.labelChanged(oa,Ea),null==ma||k||F.cellLabelChanged(ma,Ea))}if(null!=U&&null!=R){var va=
+R[oa.getAttribute(U)];null!=va&&(oa.style=va)}F.setAttributeForCell(oa,"placeholders","1");oa.style=F.replacePlaceholders(oa,oa.style,C);null==ma||k?F.fireEvent(new mxEventObject("cellsInserted","cells",[oa])):(F.model.setStyle(ma,oa.style),0>mxUtils.indexOf(x,ma)&&x.push(ma),F.fireEvent(new mxEventObject("cellsInserted","cells",[ma])));k=null!=ma;ma=oa;if(!k)for(ua=0;ua<ia.length;ua++)I[ia[ua].to][ma.getAttribute(ia[ua].to)]=ma;null!=ca&&"link"!=ca&&(F.setLinkForCell(ma,ma.getAttribute(ca)),F.setAttributeForCell(ma,
+ca,null));var Ca=this.editor.graph.getPreferredSizeForCell(ma);J=null!=ja?F.model.getCell(L+na[ja]):null;if(ma.vertex){za=null!=J?0:Z;aa=null!=J?0:Y;null!=G&&null!=ma.getAttribute(G)&&(ma.geometry.x=za+parseFloat(ma.getAttribute(G)));null!=M&&null!=ma.getAttribute(M)&&(ma.geometry.y=aa+parseFloat(ma.getAttribute(M)));var xa="@"==K.charAt(0)?ma.getAttribute(K.substring(1)):null;ma.geometry.width=null!=xa&&"auto"!=xa?parseFloat(ma.getAttribute(K.substring(1))):"auto"==K||"auto"==xa?Ca.width+T:parseFloat(K);
+var Da="@"==n.charAt(0)?ma.getAttribute(n.substring(1)):null;ma.geometry.height=null!=Da&&"auto"!=Da&&"width"!=n?parseFloat(Da):"auto"==n||"auto"==Da?Ca.height+T:"width"==n?ma.geometry.width:parseFloat(n);X+=ma.geometry.height+Q}k?(null==A[sa]&&(A[sa]=[]),A[sa].push(ma)):(m.push(ma),null!=J?(J.style=F.replacePlaceholders(J,y,C),F.addCell(ma,J),u.push(J)):x.push(F.addCell(ma)))}for(ea=0;ea<u.length;ea++)xa="@"==K.charAt(0)?u[ea].getAttribute(K.substring(1)):null,Da="@"==n.charAt(0)?u[ea].getAttribute(n.substring(1)):
+null,"auto"!=K&&"auto"!=xa||"auto"!=n&&"auto"!=Da||F.updateGroupBounds([u[ea]],T,!0);var Ba=x.slice(),Ka=x.slice();for(ua=0;ua<ia.length;ua++){var Ja=ia[ua];for(ea=0;ea<m.length;ea++){ma=m[ea];var Ga=mxUtils.bind(this,function(Ra,ka,qa){var ta=ka.getAttribute(qa.from);if(null!=ta&&""!=ta){ta=ta.split(",");for(var ra=0;ra<ta.length;ra++){var pa=I[qa.to][ta[ra]];if(null==pa&&null!=V){pa=new mxCell(ta[ra],new mxGeometry(Z,Y,0,0),V);pa.style=F.replacePlaceholders(ka,pa.style,C);var wa=this.editor.graph.getPreferredSizeForCell(pa);
+pa.geometry.width=wa.width+T;pa.geometry.height=wa.height+T;I[qa.to][ta[ra]]=pa;pa.vertex=!0;pa.id=ta[ra];x.push(F.addCell(pa))}if(null!=pa){wa=qa.label;null!=qa.fromlabel&&(wa=(ka.getAttribute(qa.fromlabel)||"")+(wa||""));null!=qa.sourcelabel&&(wa=F.replacePlaceholders(ka,qa.sourcelabel,C)+(wa||""));null!=qa.tolabel&&(wa=(wa||"")+(pa.getAttribute(qa.tolabel)||""));null!=qa.targetlabel&&(wa=(wa||"")+F.replacePlaceholders(pa,qa.targetlabel,C));var Ha="target"==qa.placeholders==!qa.invert?pa:Ra;Ha=
+null!=qa.style?F.replacePlaceholders(Ha,qa.style,C):F.createCurrentEdgeStyle();wa=F.insertEdge(null,null,wa||"",qa.invert?pa:Ra,qa.invert?Ra:pa,Ha);if(null!=qa.labels)for(Ha=0;Ha<qa.labels.length;Ha++){var Fa=qa.labels[Ha],La=new mxCell(Fa.label||Ha,new mxGeometry(null!=Fa.x?Fa.x:0,null!=Fa.y?Fa.y:0,0,0),"resizable=0;html=1;");La.vertex=!0;La.connectable=!1;La.geometry.relative=!0;null!=Fa.placeholders&&(La.value=F.replacePlaceholders("target"==Fa.placeholders==!qa.invert?pa:Ra,La.value,C));if(null!=
+Fa.dx||null!=Fa.dy)La.geometry.offset=new mxPoint(null!=Fa.dx?Fa.dx:0,null!=Fa.dy?Fa.dy:0);wa.insert(La)}if(null!=qa.data)for(var Pa in qa.data)F.setAttributeForCell(wa,Pa,qa.data[Pa]);Ka.push(wa);mxUtils.remove(qa.invert?Ra:pa,Ba)}}}});Ga(ma,ma,Ja);if(null!=A[ma.id])for(la=0;la<A[ma.id].length;la++)Ga(ma,A[ma.id][la],Ja)}}if(null!=fa)for(ea=0;ea<m.length;ea++)for(ma=m[ea],la=0;la<fa.length;la++)F.setAttributeForCell(ma,mxUtils.trim(fa[la]),null);if(0<x.length){var Aa=new mxParallelEdgeLayout(F);
+Aa.spacing=N;Aa.checkOverlap=!0;var Ma=function(){0<Aa.spacing&&Aa.execute(F.getDefaultParent());for(var Ra=0;Ra<x.length;Ra++){var ka=F.getCellGeometry(x[Ra]);ka.x=Math.round(F.snap(ka.x));ka.y=Math.round(F.snap(ka.y));"auto"==K&&(ka.width=Math.round(F.snap(ka.width)));"auto"==n&&(ka.height=Math.round(F.snap(ka.height)))}};if("["==da.charAt(0)){var Va=W;F.view.validate();this.executeLayouts(F.createLayouts(JSON.parse(da)),function(){Ma();Va()});W=null}else if("circle"==da){var Ua=new mxCircleLayout(F);
+Ua.disableEdgeStyle=!1;Ua.resetEdges=!1;var fb=Ua.isVertexIgnored;Ua.isVertexIgnored=function(Ra){return fb.apply(this,arguments)||0>mxUtils.indexOf(x,Ra)};this.executeLayout(function(){Ua.execute(F.getDefaultParent());Ma()},!0,W);W=null}else if("horizontaltree"==da||"verticaltree"==da||"auto"==da&&Ka.length==2*x.length-1&&1==Ba.length){F.view.validate();var cb=new mxCompactTreeLayout(F,"horizontaltree"==da);cb.levelDistance=Q;cb.edgeRouting=!1;cb.resetEdges=!1;cb.sortEdges=!0;this.executeLayout(function(){cb.execute(F.getDefaultParent(),
+0<Ba.length?Ba[0]:null)},!0,W);W=null}else if("horizontalflow"==da||"verticalflow"==da||"auto"==da&&1==Ba.length){F.view.validate();var Ta=new mxHierarchicalLayout(F,"horizontalflow"==da?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);Ta.intraCellSpacing=Q;Ta.parallelEdgeSpacing=N;Ta.interRankCellSpacing=S;Ta.disableEdgeStyle=!1;this.executeLayout(function(){Ta.execute(F.getDefaultParent(),Ka);F.moveCells(Ka,Z,Y)},!0,W);W=null}else if("orgchart"==da){F.view.validate();var $a=new mxOrgChartLayout(F,
+2,S,Q),Wa=$a.isVertexIgnored;$a.isVertexIgnored=function(Ra){return Wa.apply(this,arguments)||0>mxUtils.indexOf(x,Ra)};this.executeLayout(function(){$a.execute(F.getDefaultParent());Ma()},!0,W);W=null}else if("organic"==da||"auto"==da&&Ka.length>x.length){F.view.validate();var ab=new mxFastOrganicLayout(F);ab.forceConstant=3*Q;ab.disableEdgeStyle=!1;ab.resetEdges=!1;var ib=ab.isVertexIgnored;ab.isVertexIgnored=function(Ra){return ib.apply(this,arguments)||0>mxUtils.indexOf(x,Ra)};this.executeLayout(function(){ab.execute(F.getDefaultParent());
+Ma()},!0,W);W=null}}this.hideDialog()}finally{F.model.endUpdate()}null!=W&&W()}}catch(Ra){this.handleError(Ra)}};EditorUi.prototype.getSearch=function(d){var g="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=d&&0<window.location.search.length){var k="?",m;for(m in urlParams)0>mxUtils.indexOf(d,m)&&null!=urlParams[m]&&(g+=k+m+"="+urlParams[m],k="&")}else g=window.location.search;return g};EditorUi.prototype.getUrl=function(d){d=null!=d?d:window.location.pathname;var g=0<d.indexOf("?")?1:0;
+if("1"==urlParams.offline)d+=window.location.search;else{var k="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),m;for(m in urlParams)0>mxUtils.indexOf(k,m)&&(d=0==g?d+"?":d+"&",null!=urlParams[m]&&(d+=m+"="+urlParams[m],g++))}return d};EditorUi.prototype.showLinkDialog=function(d,g,k,m,u){d=new LinkDialog(this,d,g,k,!0,m,u);this.showDialog(d.container,440,120,!0,!0);d.init()};EditorUi.prototype.getServiceCount=function(d){var g=1;null==this.drive&&
"function"!==typeof window.DriveClient||g++;null==this.dropbox&&"function"!==typeof window.DropboxClient||g++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||g++;null!=this.gitHub&&g++;null!=this.gitLab&&g++;d&&isLocalStorage&&"1"==urlParams.browser&&g++;return g};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var d=this.getCurrentFile(),g=null!=d||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(g);
this.menus.get("viewZoom").setEnabled(g);var k=("1"!=urlParams.embed||"1"==urlParams.embedRT||!this.editor.graph.isEnabled())&&(null==d||d.isRestricted());this.actions.get("makeCopy").setEnabled(!k);this.actions.get("print").setEnabled(!k);this.menus.get("exportAs").setEnabled(!k);this.menus.get("embed").setEnabled(!k);k="1"!=urlParams.embed||this.editor.graph.isEnabled();this.menus.get("extras").setEnabled(k);Editor.enableCustomLibraries&&(this.menus.get("openLibraryFrom").setEnabled(k),this.menus.get("newLibrary").setEnabled(k));
d="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=d&&d.isEditable();this.actions.get("image").setEnabled(g);this.actions.get("zoomIn").setEnabled(g);this.actions.get("zoomOut").setEnabled(g);this.actions.get("smartFit").setEnabled(g);this.actions.get("resetView").setEnabled(g);this.menus.get("edit").setEnabled(g);this.menus.get("view").setEnabled(g);this.menus.get("importFrom").setEnabled(d);this.menus.get("arrange").setEnabled(d);this.menus.get("edgeShape").setEnabled(d);this.menus.get("edgeStyle").setEnabled(d);
this.menus.get("appearance").setEnabled(mxUtils.lightDarkColorSupported)};EditorUi.prototype.updateButtonContainer=function(){};EditorUi.prototype.scheduleSanityCheck=function(){};EditorUi.prototype.stopSanityCheck=function(){};EditorUi.prototype.isDiagramActive=function(){var d=this.getCurrentFile();return null!=d&&d.isEditable()||"1"==urlParams.embed&&this.editor.graph.isEnabled()};EditorUi.prototype.restoreOpenLibraries=function(){var d=this.openLibraries;this.openLibraries=null;if(null!=d)for(var g=
-0;g<d.length;g++)this.libraryLoaded(d[g].file,d[g].images,d[g].title,null!=d[g].div?"none"!=d[g].div.style.display:d[g].expand)};var G=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){G.apply(this,arguments);var d=this.editor.graph,g=this.getCurrentFile(),k=this.getSelectionState(),m=this.isDiagramActive(),t="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=g&&g.isEditable();this.actions.get("undo").setEnabled(this.canUndo()&&t);this.actions.get("redo").setEnabled(this.canRedo()&&
-t);this.actions.get("autosave").setEnabled(null!=g&&g.isEditable()&&g.isAutosaveOptional());this.actions.get("guides").setEnabled(m);this.actions.get("editData").setEnabled(d.isEnabled());this.actions.get("editConnectionPoints").setEnabled(m&&0==k.edges.length&&1==k.vertices.length);this.actions.get("editImage").setEnabled(m&&k.image&&0<k.cells.length);this.actions.get("crop").setEnabled(m&&k.image&&0<k.cells.length);this.actions.get("pageSetup").setEnabled(m);this.actions.get("shadowVisible").setEnabled(m);
+0;g<d.length;g++)this.libraryLoaded(d[g].file,d[g].images,d[g].title,null!=d[g].div?"none"!=d[g].div.style.display:d[g].expand)};var H=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){H.apply(this,arguments);var d=this.editor.graph,g=this.getCurrentFile(),k=this.getSelectionState(),m=this.isDiagramActive(),u="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=g&&g.isEditable();this.actions.get("undo").setEnabled(this.canUndo()&&u);this.actions.get("redo").setEnabled(this.canRedo()&&
+u);this.actions.get("autosave").setEnabled(null!=g&&g.isEditable()&&g.isAutosaveOptional());this.actions.get("guides").setEnabled(m);this.actions.get("editData").setEnabled(d.isEnabled());this.actions.get("editConnectionPoints").setEnabled(m&&0==k.edges.length&&1==k.vertices.length);this.actions.get("editImage").setEnabled(m&&k.image&&0<k.cells.length);this.actions.get("crop").setEnabled(m&&k.image&&0<k.cells.length);this.actions.get("pageSetup").setEnabled(m);this.actions.get("shadowVisible").setEnabled(m);
this.actions.get("connectionArrows").setEnabled(m);this.actions.get("connectionPoints").setEnabled(m);this.actions.get("copyStyle").setEnabled(m&&!d.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(null!=this.copiedStyle&&m&&0<k.cells.length);this.actions.get("editGeometry").setEnabled(0<k.vertices.length);this.actions.get("createShape").setEnabled(m);this.actions.get("createRevision").setEnabled(m);this.actions.get("moveToFolder").setEnabled(null!=g);this.actions.get("makeCopy").setEnabled(null!=
g&&!g.isRestricted());this.actions.get("editDiagram").setEnabled(m&&(null==g||!g.isRestricted()));this.actions.get("publishLink").setEnabled(null!=g&&!g.isRestricted());this.actions.get("removeFormat").setEnabled(d.isEnabled()&&!d.isSelectionEmpty()&&!d.isEditing());this.actions.get("tags").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("layers").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("outline").setEnabled("none"!=this.diagramContainer.style.display);
this.actions.get("rename").setEnabled(null!=g&&g.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=g);this.actions.get("properties").setEnabled(null!=g);this.menus.get("publish").setEnabled(null!=g&&!g.isRestricted());g=this.actions.get("findReplace");g.setEnabled("none"!=this.diagramContainer.style.display);g.label=mxResources.get("find")+(d.isEnabled()?"/"+mxResources.get("replace"):"");d=d.view.getState(d.getSelectionCell());this.actions.get("editShape").setEnabled(m&&
-null!=d&&null!=d.shape&&null!=d.shape.stencil)};var B=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);B.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(d,g,k,m,t,y,z,I){var F=d.editor.graph;if("xml"==k)d.hideDialog(),d.saveData(g,"xml",mxUtils.getXml(d.editor.getGraphXml()),"text/xml");
-else if("svg"==k)d.hideDialog(),d.saveData(g,"svg",mxUtils.getXml(F.getSvg(m,t,y)),"image/svg+xml");else{var C=d.getFileData(!0,null,null,null,null,!0),Q=F.getGraphBounds(),S=Math.floor(Q.width*t/F.view.scale),V=Math.floor(Q.height*t/F.view.scale);if(C.length<=MAX_REQUEST_SIZE&&S*V<MAX_AREA)if(d.hideDialog(),"png"!=k&&"jpg"!=k&&"jpeg"!=k||!d.isExportToCanvas()){var P={globalVars:F.getExportVariables()};I&&(P.grid={size:F.gridSize,steps:F.view.gridSteps,color:F.view.gridColor});d.saveRequest(g,k,function(u,
-x){return new mxXmlRequest(EXPORT_URL,"format="+k+"&base64="+(x||"0")+(null!=u?"&filename="+encodeURIComponent(u):"")+"&extras="+encodeURIComponent(JSON.stringify(P))+(0<z?"&dpi="+z:"")+"&bg="+(null!=m?m:"none")+"&w="+S+"&h="+V+"&border="+y+"&xml="+encodeURIComponent(C))})}else"png"==k?d.exportImage(t,null==m||"none"==m,!0,!1,!1,y,!0,!1,null,I,z):d.exportImage(t,!1,!0,!1,!1,y,!0,!1,"jpeg",I);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);
+null!=d&&null!=d.shape&&null!=d.shape.stencil)};var B=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);B.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(d,g,k,m,u,x,A,I){var F=d.editor.graph;if("xml"==k)d.hideDialog(),d.saveData(g,"xml",mxUtils.getXml(d.editor.getGraphXml()),"text/xml");
+else if("svg"==k)d.hideDialog(),d.saveData(g,"svg",mxUtils.getXml(F.getSvg(m,u,x)),"image/svg+xml");else{var C=d.getFileData(!0,null,null,null,null,!0),P=F.getGraphBounds(),R=Math.floor(P.width*u/F.view.scale),U=Math.floor(P.height*u/F.view.scale);if(C.length<=MAX_REQUEST_SIZE&&R*U<MAX_AREA)if(d.hideDialog(),"png"!=k&&"jpg"!=k&&"jpeg"!=k||!d.isExportToCanvas()){var O={globalVars:F.getExportVariables()};I&&(O.grid={size:F.gridSize,steps:F.view.gridSteps,color:F.view.gridColor});d.saveRequest(g,k,function(V,
+q){return new mxXmlRequest(EXPORT_URL,"format="+k+"&base64="+(q||"0")+(null!=V?"&filename="+encodeURIComponent(V):"")+"&extras="+encodeURIComponent(JSON.stringify(O))+(0<A?"&dpi="+A:"")+"&bg="+(null!=m?m:"none")+"&w="+R+"&h="+U+"&border="+x+"&xml="+encodeURIComponent(C))})}else"png"==k?d.exportImage(u,null==m||"none"==m,!0,!1,!1,x,!0,!1,null,I,A):d.exportImage(u,!1,!0,!1,!1,x,!0,!1,"jpeg",I);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);
var d=this.editor.graph,g="";if(null!=this.pages)for(var k=0;k<this.pages.length;k++){var m=d;this.currentPage!=this.pages[k]&&(m=this.createTemporaryGraph(d.getStylesheet()),this.updatePageRoot(this.pages[k]),m.model.setRoot(this.pages[k].root));g+=this.pages[k].getName()+" "+m.getIndexableText()+" "}else g=d.getIndexableText();this.editor.graph.setEnabled(!0);return g};EditorUi.prototype.showRemotelyStoredLibrary=function(d){var g={},k=document.createElement("div");k.style.whiteSpace="nowrap";var m=
-document.createElement("h3");mxUtils.write(m,mxUtils.htmlEntities(d));m.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";k.appendChild(m);var t=document.createElement("div");t.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";t.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var y={};try{var z=mxSettings.getCustomLibraries();for(d=0;d<z.length;d++){var I=z[d];if("R"==I.substring(0,1)){var F=JSON.parse(decodeURIComponent(I.substring(1)));
-y[F[0]]={id:F[0],title:F[1],downloadUrl:F[2]}}}}catch(C){}this.remoteInvoke("getCustomLibraries",null,null,function(C){t.innerText="";if(0==C.length)t.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var Q=0;Q<C.length;Q++){var S=C[Q];y[S.id]&&(g[S.id]=S);var V=this.addCheckbox(t,S.title,y[S.id]);(function(P,u){mxEvent.addListener(u,"change",function(){this.checked?g[P.id]=P:delete g[P.id]})})(S,V)}},mxUtils.bind(this,
-function(C){t.innerText="";var Q=document.createElement("div");Q.style.padding="8px";Q.style.textAlign="center";mxUtils.write(Q,mxResources.get("error")+": ");mxUtils.write(Q,null!=C&&null!=C.message?C.message:mxResources.get("unknownError"));t.appendChild(Q)}));k.appendChild(t);k=new CustomDialog(this,k,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var C=0,Q;for(Q in g)null==y[Q]&&(C++,mxUtils.bind(this,function(S){this.remoteInvoke("getFileContent",[S.downloadUrl],
-null,mxUtils.bind(this,function(V){C--;0==C&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,V,S)),this.showSidebar()}catch(P){this.handleError(P,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){C--;0==C&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(g[Q]));for(Q in y)g[Q]||this.closeLibrary(new RemoteLibrary(this,null,y[Q]));0==C&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");
+document.createElement("h3");mxUtils.write(m,mxUtils.htmlEntities(d));m.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";k.appendChild(m);var u=document.createElement("div");u.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";u.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var x={};try{var A=mxSettings.getCustomLibraries();for(d=0;d<A.length;d++){var I=A[d];if("R"==I.substring(0,1)){var F=JSON.parse(decodeURIComponent(I.substring(1)));
+x[F[0]]={id:F[0],title:F[1],downloadUrl:F[2]}}}}catch(C){}this.remoteInvoke("getCustomLibraries",null,null,function(C){u.innerText="";if(0==C.length)u.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var P=0;P<C.length;P++){var R=C[P];x[R.id]&&(g[R.id]=R);var U=this.addCheckbox(u,R.title,x[R.id]);(function(O,V){mxEvent.addListener(V,"change",function(){this.checked?g[O.id]=O:delete g[O.id]})})(R,U)}},mxUtils.bind(this,
+function(C){u.innerText="";var P=document.createElement("div");P.style.padding="8px";P.style.textAlign="center";mxUtils.write(P,mxResources.get("error")+": ");mxUtils.write(P,null!=C&&null!=C.message?C.message:mxResources.get("unknownError"));u.appendChild(P)}));k.appendChild(u);k=new CustomDialog(this,k,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var C=0,P;for(P in g)null==x[P]&&(C++,mxUtils.bind(this,function(R){this.remoteInvoke("getFileContent",[R.downloadUrl],
+null,mxUtils.bind(this,function(U){C--;0==C&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,U,R)),this.showSidebar()}catch(O){this.handleError(O,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){C--;0==C&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(g[P]));for(P in x)g[P]||this.closeLibrary(new RemoteLibrary(this,null,x[P]));0==C&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");
this.showDialog(k.container,340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(d){this.remoteWin=
-d;for(var g=0;g<this.remoteInvokeQueue.length;g++)d.postMessage(this.remoteInvokeQueue[g],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(d){var g=d.msgMarkers,k=this.remoteInvokeCallbacks[g.callbackId];if(null==k)throw Error("No callback for "+(null!=g?g.callbackId:"null"));d.error?k.error&&k.error(d.error.errResp):k.callback&&k.callback.apply(this,d.resp);this.remoteInvokeCallbacks[g.callbackId]=null};EditorUi.prototype.remoteInvoke=function(d,g,k,m,t){var y=
-!0,z=window.setTimeout(mxUtils.bind(this,function(){y=!1;t({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),I=mxUtils.bind(this,function(){window.clearTimeout(z);y&&m.apply(this,arguments)}),F=mxUtils.bind(this,function(){window.clearTimeout(z);y&&t.apply(this,arguments)});k=k||{};k.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:I,error:F});d=JSON.stringify({event:"remoteInvoke",funtionName:d,functionArgs:g,msgMarkers:k});null!=this.remoteWin?
-this.remoteWin.postMessage(d,"*"):this.remoteInvokeQueue.push(d)};EditorUi.prototype.handleRemoteInvoke=function(d,g){var k=mxUtils.bind(this,function(C,Q){var S={event:"remoteInvokeResponse",msgMarkers:d.msgMarkers};null!=Q?S.error={errResp:Q}:null!=C&&(S.resp=C);this.remoteWin.postMessage(JSON.stringify(S),"*")});try{var m=d.funtionName,t=this.remoteInvokableFns[m];if(null!=t&&"function"===typeof this[m]){if(t.allowedDomains){for(var y=!1,z=0;z<t.allowedDomains.length;z++)if(g=="https://"+t.allowedDomains[z]){y=
-!0;break}if(!y){k(null,"Invalid Call: "+m+" is not allowed.");return}}var I=d.functionArgs;Array.isArray(I)||(I=[]);if(t.isAsync)I.push(function(){k(Array.prototype.slice.apply(arguments))}),I.push(function(C){k(null,C||"Unkown Error")}),this[m].apply(this,I);else{var F=this[m].apply(this,I);k([F])}}else k(null,"Invalid Call: "+m+" is not found.")}catch(C){k(null,"Invalid Call: An error occurred, "+C.message)}};EditorUi.prototype.openDatabase=function(d,g){if(null==this.database){var k=window.indexedDB||
-window.mozIndexedDB||window.webkitIndexedDB;if(null!=k)try{var m=k.open("database",2);m.onupgradeneeded=function(t){try{var y=m.result;1>t.oldVersion&&y.createObjectStore("objects",{keyPath:"key"});2>t.oldVersion&&(y.createObjectStore("files",{keyPath:"title"}),y.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(z){null!=g&&g(z)}};m.onsuccess=mxUtils.bind(this,function(t){try{var y=m.result;this.database=y;EditorUi.migrateStorageFiles&&(StorageFile.migrate(y),
-EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(z){if(!z||"1"==urlParams.forceMigration){var I=document.createElement("iframe");I.style.display="none";I.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(I);var F=!0,C=!1,Q,S=0,V=mxUtils.bind(this,function(){C=!0;this.setDatabaseItem(".drawioMigrated3",
-!0);I.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),P=mxUtils.bind(this,function(){S++;u()}),u=mxUtils.bind(this,function(){try{if(S>=Q.length)V();else{var J=Q[S];StorageFile.getFileContent(this,J,mxUtils.bind(this,function(H){null==H||".scratchpad"==J&&H==this.emptyLibraryXml?I.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[J]}),"*"):P()}),P)}}catch(H){console.log(H)}}),x=mxUtils.bind(this,
-function(J){try{this.setDatabaseItem(null,[{title:J.title,size:J.data.length,lastModified:Date.now(),type:J.isLib?"L":"F"},{title:J.title,data:J.data}],P,P,["filesInfo","files"])}catch(H){console.log(H)}});z=mxUtils.bind(this,function(J){try{if(J.source==I.contentWindow){var H={};try{H=JSON.parse(J.data)}catch(K){}"init"==H.event?(I.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),I.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),
-"*")):"remoteInvokeResponse"!=H.event||C||(F?null!=H.resp&&0<H.resp.length&&null!=H.resp[0]?(Q=H.resp[0],F=!1,u()):V():null!=H.resp&&0<H.resp.length&&null!=H.resp[0]?x(H.resp[0]):P())}}catch(K){console.log(K)}});window.addEventListener("message",z)}})));d(y);y.onversionchange=function(){y.close()}}catch(z){null!=g?g(z):null!=window.console&&console.warn(z)}});m.onerror=g;m.onblocked=function(){}}catch(t){null!=g?g(t):null!=window.console&&console.error(t)}else null!=g&&g(Error("IndexedDB not supported"))}else d(this.database)};
-EditorUi.prototype.setDatabaseItem=function(d,g,k,m,t){this.openDatabase(mxUtils.bind(this,function(y){try{t=t||"objects";Array.isArray(t)||(t=[t],d=[d],g=[g]);var z=y.transaction(t,"readwrite");z.oncomplete=k;z.onerror=m;for(y=0;y<t.length;y++)z.objectStore(t[y]).put(null!=d&&null!=d[y]?{key:d[y],data:g[y]}:g[y])}catch(I){null!=m&&m(I)}}),m)};EditorUi.prototype.removeDatabaseItem=function(d,g,k,m){this.openDatabase(mxUtils.bind(this,function(t){try{m=m||"objects";Array.isArray(m)||(m=[m],d=[d]);
-var y=t.transaction(m,"readwrite");y.oncomplete=g;y.onerror=k;for(t=0;t<m.length;t++)y.objectStore(m[t]).delete(d[t])}catch(z){null!=k&&k(z)}}),k)};EditorUi.prototype.getDatabaseItem=function(d,g,k,m){this.openDatabase(mxUtils.bind(this,function(t){try{m=m||"objects";var y=t.transaction([m],"readonly").objectStore(m).get(d);y.onsuccess=function(){g(y.result)};y.onerror=k}catch(z){null!=k&&k(z)}}),k)};EditorUi.prototype.getDatabaseItems=function(d,g,k){this.openDatabase(mxUtils.bind(this,function(m){try{k=
-k||"objects";var t=m.transaction([k],"readonly").objectStore(k).openCursor(IDBKeyRange.lowerBound(0)),y=[];t.onsuccess=function(z){null==z.target.result?d(y):(y.push(z.target.result.value),z.target.result.continue())};t.onerror=g}catch(z){null!=g&&g(z)}}),g)};EditorUi.prototype.getDatabaseItemKeys=function(d,g,k){this.openDatabase(mxUtils.bind(this,function(m){try{k=k||"objects";var t=m.transaction([k],"readonly").objectStore(k).getAllKeys();t.onsuccess=function(){d(t.result)};t.onerror=g}catch(y){null!=
-g&&g(y)}}),g)};EditorUi.prototype.commentsSupported=function(){var d=this.getCurrentFile();return null!=d?d.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var d=this.getCurrentFile();return null!=d?d.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var d=this.getCurrentFile();return null!=d?d.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(d,g){var k=this.getCurrentFile();null!=k?k.getComments(d,g):d([])};EditorUi.prototype.addComment=
+d;for(var g=0;g<this.remoteInvokeQueue.length;g++)d.postMessage(this.remoteInvokeQueue[g],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(d){var g=d.msgMarkers,k=this.remoteInvokeCallbacks[g.callbackId];if(null==k)throw Error("No callback for "+(null!=g?g.callbackId:"null"));d.error?k.error&&k.error(d.error.errResp):k.callback&&k.callback.apply(this,d.resp);this.remoteInvokeCallbacks[g.callbackId]=null};EditorUi.prototype.remoteInvoke=function(d,g,k,m,u){var x=
+!0,A=window.setTimeout(mxUtils.bind(this,function(){x=!1;u({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),I=mxUtils.bind(this,function(){window.clearTimeout(A);x&&m.apply(this,arguments)}),F=mxUtils.bind(this,function(){window.clearTimeout(A);x&&u.apply(this,arguments)});k=k||{};k.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:I,error:F});d=JSON.stringify({event:"remoteInvoke",funtionName:d,functionArgs:g,msgMarkers:k});null!=this.remoteWin?
+this.remoteWin.postMessage(d,"*"):this.remoteInvokeQueue.push(d)};EditorUi.prototype.handleRemoteInvoke=function(d,g){var k=mxUtils.bind(this,function(C,P){var R={event:"remoteInvokeResponse",msgMarkers:d.msgMarkers};null!=P?R.error={errResp:P}:null!=C&&(R.resp=C);this.remoteWin.postMessage(JSON.stringify(R),"*")});try{var m=d.funtionName,u=this.remoteInvokableFns[m];if(null!=u&&"function"===typeof this[m]){if(u.allowedDomains){for(var x=!1,A=0;A<u.allowedDomains.length;A++)if(g=="https://"+u.allowedDomains[A]){x=
+!0;break}if(!x){k(null,"Invalid Call: "+m+" is not allowed.");return}}var I=d.functionArgs;Array.isArray(I)||(I=[]);if(u.isAsync)I.push(function(){k(Array.prototype.slice.apply(arguments))}),I.push(function(C){k(null,C||"Unkown Error")}),this[m].apply(this,I);else{var F=this[m].apply(this,I);k([F])}}else k(null,"Invalid Call: "+m+" is not found.")}catch(C){k(null,"Invalid Call: An error occurred, "+C.message)}};EditorUi.prototype.openDatabase=function(d,g){if(null==this.database){var k=window.indexedDB||
+window.mozIndexedDB||window.webkitIndexedDB;if(null!=k)try{var m=k.open("database",2);m.onupgradeneeded=function(u){try{var x=m.result;1>u.oldVersion&&x.createObjectStore("objects",{keyPath:"key"});2>u.oldVersion&&(x.createObjectStore("files",{keyPath:"title"}),x.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(A){null!=g&&g(A)}};m.onsuccess=mxUtils.bind(this,function(u){try{var x=m.result;this.database=x;EditorUi.migrateStorageFiles&&(StorageFile.migrate(x),
+EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(A){if(!A||"1"==urlParams.forceMigration){var I=document.createElement("iframe");I.style.display="none";I.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(I);var F=!0,C=!1,P,R=0,U=mxUtils.bind(this,function(){C=!0;this.setDatabaseItem(".drawioMigrated3",
+!0);I.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),O=mxUtils.bind(this,function(){R++;V()}),V=mxUtils.bind(this,function(){try{if(R>=P.length)U();else{var y=P[R];StorageFile.getFileContent(this,y,mxUtils.bind(this,function(D){null==D||".scratchpad"==y&&D==this.emptyLibraryXml?I.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[y]}),"*"):O()}),O)}}catch(D){console.log(D)}}),q=mxUtils.bind(this,
+function(y){try{this.setDatabaseItem(null,[{title:y.title,size:y.data.length,lastModified:Date.now(),type:y.isLib?"L":"F"},{title:y.title,data:y.data}],O,O,["filesInfo","files"])}catch(D){console.log(D)}});A=mxUtils.bind(this,function(y){try{if(y.source==I.contentWindow){var D={};try{D=JSON.parse(y.data)}catch(J){}"init"==D.event?(I.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),I.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),
+"*")):"remoteInvokeResponse"!=D.event||C||(F?null!=D.resp&&0<D.resp.length&&null!=D.resp[0]?(P=D.resp[0],F=!1,V()):U():null!=D.resp&&0<D.resp.length&&null!=D.resp[0]?q(D.resp[0]):O())}}catch(J){console.log(J)}});window.addEventListener("message",A)}})));d(x);x.onversionchange=function(){x.close()}}catch(A){null!=g?g(A):null!=window.console&&console.warn(A)}});m.onerror=g;m.onblocked=function(){}}catch(u){null!=g?g(u):null!=window.console&&console.error(u)}else null!=g&&g(Error("IndexedDB not supported"))}else d(this.database)};
+EditorUi.prototype.setDatabaseItem=function(d,g,k,m,u){this.openDatabase(mxUtils.bind(this,function(x){try{u=u||"objects";Array.isArray(u)||(u=[u],d=[d],g=[g]);var A=x.transaction(u,"readwrite");A.oncomplete=k;A.onerror=m;for(x=0;x<u.length;x++)A.objectStore(u[x]).put(null!=d&&null!=d[x]?{key:d[x],data:g[x]}:g[x])}catch(I){null!=m&&m(I)}}),m)};EditorUi.prototype.removeDatabaseItem=function(d,g,k,m){this.openDatabase(mxUtils.bind(this,function(u){try{m=m||"objects";Array.isArray(m)||(m=[m],d=[d]);
+var x=u.transaction(m,"readwrite");x.oncomplete=g;x.onerror=k;for(u=0;u<m.length;u++)x.objectStore(m[u]).delete(d[u])}catch(A){null!=k&&k(A)}}),k)};EditorUi.prototype.getDatabaseItem=function(d,g,k,m){this.openDatabase(mxUtils.bind(this,function(u){try{m=m||"objects";var x=u.transaction([m],"readonly").objectStore(m).get(d);x.onsuccess=function(){g(x.result)};x.onerror=k}catch(A){null!=k&&k(A)}}),k)};EditorUi.prototype.getDatabaseItems=function(d,g,k){this.openDatabase(mxUtils.bind(this,function(m){try{k=
+k||"objects";var u=m.transaction([k],"readonly").objectStore(k).openCursor(IDBKeyRange.lowerBound(0)),x=[];u.onsuccess=function(A){null==A.target.result?d(x):(x.push(A.target.result.value),A.target.result.continue())};u.onerror=g}catch(A){null!=g&&g(A)}}),g)};EditorUi.prototype.getDatabaseItemKeys=function(d,g,k){this.openDatabase(mxUtils.bind(this,function(m){try{k=k||"objects";var u=m.transaction([k],"readonly").objectStore(k).getAllKeys();u.onsuccess=function(){d(u.result)};u.onerror=g}catch(x){null!=
+g&&g(x)}}),g)};EditorUi.prototype.commentsSupported=function(){var d=this.getCurrentFile();return null!=d?d.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var d=this.getCurrentFile();return null!=d?d.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var d=this.getCurrentFile();return null!=d?d.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(d,g){var k=this.getCurrentFile();null!=k?k.getComments(d,g):d([])};EditorUi.prototype.addComment=
function(d,g,k){var m=this.getCurrentFile();null!=m?m.addComment(d,g,k):g(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var d=this.getCurrentFile();return null!=d?d.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var d=this.getCurrentFile();return null!=d?d.canComment():!0};EditorUi.prototype.newComment=function(d,g){var k=this.getCurrentFile();return null!=k?k.newComment(d,g):new DrawioComment(this,null,d,Date.now(),Date.now(),!1,g)};EditorUi.prototype.isRevisionHistorySupported=
function(){var d=this.getCurrentFile();return null!=d&&d.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=function(d,g){var k=this.getCurrentFile();null!=k&&k.getRevisions?k.getRevisions(d,g):g({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var d=this.getCurrentFile();return null!=d&&(d.constructor==DriveFile&&d.isEditable()||d.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.vsdxExportEnabled=
-function(){return"atlassian"==this.getServiceName()};EditorUi.prototype.addRemoteServiceSecurityCheck=function(d){d.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(d,g,k,m,t,y,z,I){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(d,g,k,m,t,y,z,I)};EditorUi.prototype.loadFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(d)};EditorUi.prototype.createSvgDataUri=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");
-return Editor.createSvgDataUri(d)};EditorUi.prototype.embedCssFonts=function(d,g){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(d,g)};EditorUi.prototype.embedExtFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(d)};EditorUi.prototype.exportToCanvas=function(d,g,k,m,t,y,z,I,F,C,Q,S,V,P,u,x){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(d,g,k,m,t,y,z,I,
-F,C,Q,S,V,P,u,x)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(d,g,k,m){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(d,g,k,m)};EditorUi.prototype.convertImageToDataUri=function(d,g){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(d,g)};
-EditorUi.prototype.base64Encode=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(d)};EditorUi.prototype.updateCRC=function(d,g,k,m){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(d,g,k,m)};EditorUi.prototype.crc32=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(d)};EditorUi.prototype.writeGraphModelToPng=function(d,g,k,m,t){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(d,
-g,k,m,t)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var d=[],g=0;g<localStorage.length;g++){var k=localStorage.key(g),m=localStorage.getItem(k);if(0<k.length&&(".scratchpad"==k||"."!=k.charAt(0))&&0<m.length){var t="<mxfile "===m.substring(0,8)||"<?xml"===m.substring(0,5)||"\x3c!--[if IE]>"===m.substring(0,12);m="<mxlibrary>"===m.substring(0,11);(t||m)&&d.push(k)}}return d};EditorUi.prototype.getLocalStorageFile=
+function(){return"atlassian"==this.getServiceName()};EditorUi.prototype.addRemoteServiceSecurityCheck=function(d){d.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(d,g,k,m,u,x,A,I){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(d,g,k,m,u,x,A,I)};EditorUi.prototype.loadFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(d)};EditorUi.prototype.createSvgDataUri=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");
+return Editor.createSvgDataUri(d)};EditorUi.prototype.embedCssFonts=function(d,g){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(d,g)};EditorUi.prototype.embedExtFonts=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(d)};EditorUi.prototype.exportToCanvas=function(d,g,k,m,u,x,A,I,F,C,P,R,U,O,V,q){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(d,g,k,m,u,x,A,I,
+F,C,P,R,U,O,V,q)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(d,g,k,m){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(d,g,k,m)};EditorUi.prototype.convertImageToDataUri=function(d,g){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(d,g)};
+EditorUi.prototype.base64Encode=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(d)};EditorUi.prototype.updateCRC=function(d,g,k,m){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(d,g,k,m)};EditorUi.prototype.crc32=function(d){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(d)};EditorUi.prototype.writeGraphModelToPng=function(d,g,k,m,u){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(d,
+g,k,m,u)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var d=[],g=0;g<localStorage.length;g++){var k=localStorage.key(g),m=localStorage.getItem(k);if(0<k.length&&(".scratchpad"==k||"."!=k.charAt(0))&&0<m.length){var u="<mxfile "===m.substring(0,8)||"<?xml"===m.substring(0,5)||"\x3c!--[if IE]>"===m.substring(0,12);m="<mxlibrary>"===m.substring(0,11);(u||m)&&d.push(k)}}return d};EditorUi.prototype.getLocalStorageFile=
function(d){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var g=localStorage.getItem(d);return{title:d,data:g,isLib:"<mxlibrary>"===g.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();
-var CommentsWindow=function(b,e,f,c,l,p){function q(){for(var x=I.getElementsByTagName("div"),J=0,H=0;H<x.length;H++)"none"!=x[H].style.display&&x[H].parentNode==I&&J++;F.style.display=0==J?"block":"none"}function v(x,J,H,K){function N(){J.removeChild(A);J.removeChild(E);n.style.display="block";M.style.display="block"}t={div:J,comment:x,saveCallback:H,deleteOnCancel:K};var M=J.querySelector(".geCommentTxt"),n=J.querySelector(".geCommentActionsList"),A=document.createElement("textarea");A.className=
-"geCommentEditTxtArea";A.style.minHeight=M.offsetHeight+"px";A.value=x.content;J.insertBefore(A,M);var E=document.createElement("div");E.className="geCommentEditBtns";var L=mxUtils.button(mxResources.get("cancel"),function(){K?(J.parentNode.removeChild(J),q()):N();t=null});L.className="geCommentEditBtn";E.appendChild(L);var O=mxUtils.button(mxResources.get("save"),function(){M.innerText="";x.content=A.value;mxUtils.write(M,x.content);N();H(x);t=null});mxEvent.addListener(A,"keydown",mxUtils.bind(this,
-function(R){mxEvent.isConsumed(R)||((mxEvent.isControlDown(R)||mxClient.IS_MAC&&mxEvent.isMetaDown(R))&&13==R.keyCode?(O.click(),mxEvent.consume(R)):27==R.keyCode&&(L.click(),mxEvent.consume(R)))}));O.focus();O.className="geCommentEditBtn gePrimaryBtn";E.appendChild(O);J.insertBefore(E,M);n.style.display="none";M.style.display="none";A.focus()}function D(x,J){J.innerText="";x=new Date(x.modifiedDate);var H=b.timeSince(x);null==H&&(H=mxResources.get("lessThanAMinute"));mxUtils.write(J,mxResources.get("timeAgo",
-[H],"{1} ago"));J.setAttribute("title",x.toLocaleDateString()+" "+x.toLocaleTimeString())}function G(x){var J=document.createElement("img");J.className="geCommentBusyImg";J.src=IMAGE_PATH+"/spin.gif";x.appendChild(J);x.busyImg=J}function B(x){x.style.border="1px solid red";x.busyImg.parentNode==x&&x.removeChild(x.busyImg)}function d(x){x.style.border="";x.busyImg.parentNode==x&&x.removeChild(x.busyImg)}function g(x,J,H,K,N){function M(U,W,X){var Y=document.createElement("li");Y.className="geCommentAction";
-var Z=document.createElement("a");Z.className="geCommentActionLnk";mxUtils.write(Z,U);Y.appendChild(Z);mxEvent.addListener(Z,"click",function(ca){W(ca,x);ca.preventDefault();mxEvent.consume(ca)});T.appendChild(Y);X&&(Y.style.display="none")}function n(){function U(Y){W.push(X);if(null!=Y.replies)for(var Z=0;Z<Y.replies.length;Z++)X=X.nextSibling,U(Y.replies[Z])}var W=[],X=E;U(x);return{pdiv:X,replies:W}}function A(U,W,X,Y,Z){function ca(){G(fa);x.addReply(ba,function(aa){ba.id=aa;x.replies.push(ba);
-d(fa);X&&X()},function(aa){ea();B(fa);b.handleError(aa,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},Y,Z)}function ea(){v(ba,fa,function(aa){ca()},!0)}var ia=n().pdiv,ba=b.newComment(U,b.getCurrentUser());ba.pCommentId=x.id;null==x.replies&&(x.replies=[]);var fa=g(ba,x.replies,ia,K+1);W?ea():ca()}if(N||!x.isResolved){F.style.display="none";var E=document.createElement("div");E.className="geCommentContainer";E.setAttribute("data-commentId",x.id);E.style.marginLeft=20*K+5+
-"px";x.isResolved&&(y.style.opacity="0.7");var L=document.createElement("div");L.className="geCommentHeader";var O=document.createElement("img");O.className="geCommentUserImg";O.src=null!=x.user&&null!=x.user.pictureUrl?x.user.pictureUrl:Editor.userImage;L.appendChild(O);O=document.createElement("div");O.className="geCommentHeaderTxt";L.appendChild(O);var R=document.createElement("div");R.className="geCommentUsername";mxUtils.write(R,null!=x.user?x.user.displayName:mxResources.get("unknownUser"));
-O.appendChild(R);R=document.createElement("div");R.className="geCommentDate";R.setAttribute("data-commentId",x.id);D(x,R);O.appendChild(R);E.appendChild(L);L=document.createElement("div");L.className="geCommentTxt";mxUtils.write(L,x.content||"");E.appendChild(L);x.isLocked&&(E.style.opacity="0.5");L=document.createElement("div");L.className="geCommentActions";var T=document.createElement("ul");T.className="geCommentActionsList";L.appendChild(T);k||x.isLocked||0!=K&&!m||M(mxResources.get("reply"),
-function(){A("",!0)},x.isResolved);O=b.getCurrentUser();null==O||null==x.user||O.id!=x.user.id||k||x.isLocked||(M(mxResources.get("edit"),function(){function U(){v(x,E,function(){G(E);x.editComment(x.content,function(){d(E)},function(W){B(E);U();b.handleError(W,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}U()},x.isResolved),M(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){G(E);x.deleteComment(function(U){if(!0===U){U=E.querySelector(".geCommentTxt");
-U.innerText="";mxUtils.write(U,mxResources.get("msgDeleted"));var W=E.querySelectorAll(".geCommentAction");for(U=0;U<W.length;U++)W[U].parentNode.removeChild(W[U]);d(E);E.style.opacity="0.5"}else{W=n(x).replies;for(U=0;U<W.length;U++)I.removeChild(W[U]);for(U=0;U<J.length;U++)if(J[U]==x){J.splice(U,1);break}F.style.display=0==I.getElementsByTagName("div").length?"block":"none"}},function(U){B(E);b.handleError(U,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},x.isResolved));
-k||x.isLocked||0!=K||M(x.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(U){function W(){var X=U.target;X.innerText="";x.isResolved=!x.isResolved;mxUtils.write(X,x.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var Y=x.isResolved?"none":"",Z=n(x).replies,ca="light-dark("+(x.isResolved?"ghostWhite":"white")+", transparent)",ea=0;ea<Z.length;ea++){Z[ea].style.backgroundColor=ca;for(var ia=Z[ea].querySelectorAll(".geCommentAction"),ba=0;ba<ia.length;ba++)ia[ba]!=
-X.parentNode&&(ia[ba].style.display=Y);V||(Z[ea].style.display="none")}q()}x.isResolved?A(mxResources.get("reOpened")+": ",!0,W,!1,!0):A(mxResources.get("markedAsResolved"),!1,W,!0)});E.appendChild(L);null!=H?I.insertBefore(E,H.nextSibling):I.appendChild(E);for(H=0;null!=x.replies&&H<x.replies.length;H++)L=x.replies[H],L.isResolved=x.isResolved,g(L,x.replies,null,K+1,N);null!=t&&(t.comment.id==x.id?(N=x.content,x.content=t.comment.content,v(x,E,t.saveCallback,t.deleteOnCancel),x.content=N):null==
-t.comment.id&&t.comment.pCommentId==x.id&&(I.appendChild(t.div),v(t.comment,t.div,t.saveCallback,t.deleteOnCancel)));return E}}var k=!b.canComment(),m=b.canReplyToReplies(),t=null,y=document.createElement("div");y.className="geCommentsWin";var z=EditorUi.compactUi?"26px":"30px",I=document.createElement("div");I.className="geCommentsList";I.style.bottom=parseInt(z)+7+"px";y.appendChild(I);var F=document.createElement("span");F.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(F,
-mxResources.get("noCommentsFound"));var C=document.createElement("div");C.className="geToolbarContainer geCommentsToolbar";C.style.height=z;C.style.padding="3px 4px 4px 4px";z=document.createElement("a");z.className="geButton";if(!k){var Q=z.cloneNode();Q.style.backgroundImage="url("+Editor.plusImage+")";Q.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(Q,"click",function(x){function J(){v(H,K,function(N){G(K);b.addComment(N,function(M){N.id=M;P.push(N);d(K)},function(M){B(K);
-J();b.handleError(M,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var H=b.newComment("",b.getCurrentUser()),K=g(H,P,null,0);J();x.preventDefault();mxEvent.consume(x)});C.appendChild(Q)}var S=z.cloneNode();S.style.backgroundImage="url("+Editor.checkImage+")";S.setAttribute("title",mxResources.get("showResolved"));var V=!1;mxEvent.addListener(S,"click",function(x){(V=!V)?S.classList.add("geActiveItem"):S.classList.remove("geActiveItem");u();x.preventDefault();mxEvent.consume(x)});
-C.appendChild(S);b.commentsRefreshNeeded()&&(Q=z.cloneNode(),Q.style.backgroundImage="url("+Editor.refreshImage+")",Q.setAttribute("title",mxResources.get("refresh")),mxEvent.addListener(Q,"click",function(x){u();x.preventDefault();mxEvent.consume(x)}),C.appendChild(Q));b.commentsSaveNeeded()&&(z=z.cloneNode(),z.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',z.setAttribute("title",mxResources.get("save")),z.className="geButton geAdaptiveAsset",mxEvent.addListener(z,
-"click",function(x){p();x.preventDefault();mxEvent.consume(x)}),C.appendChild(z));y.appendChild(C);var P=[],u=mxUtils.bind(this,function(){this.hasError=!1;if(null!=t)try{t.div=t.div.cloneNode(!0);var x=t.div.querySelector(".geCommentEditTxtArea"),J=t.div.querySelector(".geCommentEditBtns");t.comment.content=x.value;x.parentNode.removeChild(x);J.parentNode.removeChild(J)}catch(H){b.handleError(H)}I.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+
-mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";m=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(H){function K(N){if(null!=N){N.sort(function(n,A){return new Date(n.modifiedDate)-new Date(A.modifiedDate)});for(var M=0;M<N.length;M++)K(N[M].replies)}}H.sort(function(N,M){return new Date(N.modifiedDate)-new Date(M.modifiedDate)});I.innerText="";I.appendChild(F);F.style.display="block";P=H;for(H=0;H<P.length;H++)K(P[H].replies),g(P[H],P,null,0,V);null!=t&&null==t.comment.id&&
-null==t.comment.pCommentId&&(I.appendChild(t.div),v(t.comment,t.div,t.saveCallback,t.deleteOnCancel))},mxUtils.bind(this,function(H){I.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(H&&H.message?": "+H.message:""));this.hasError=!0})):I.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});u();this.refreshComments=u;C=mxUtils.bind(this,function(){function x(M){var n=H[M.id];if(null!=n)for(D(M,n),n=0;null!=M.replies&&n<M.replies.length;n++)x(M.replies[n])}if(this.window.isVisible()){for(var J=
-I.querySelectorAll(".geCommentDate"),H={},K=0;K<J.length;K++){var N=J[K];H[N.getAttribute("data-commentId")]=N}for(K=0;K<P.length;K++)x(P[K])}});setInterval(C,6E4);this.refreshCommentsTime=C;this.window=new mxWindow(mxResources.get("comments"),y,e,f,c,l,!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,f,c,l,p,q,v,D,G,B){var d=document.createElement("div");d.style.textAlign="center";B=null!=B?B:44;var g=document.createElement("div");g.style.padding="6px";g.style.overflow="auto";g.style.maxHeight=B+"px";g.style.lineHeight="1.2em";mxUtils.write(g,e);d.appendChild(g);null!=G&&(g=document.createElement("div"),g.style.padding="6px 0 6px 0",e=document.createElement("img"),e.setAttribute("src",G),g.appendChild(e),
-d.appendChild(g));G=document.createElement("div");G.style.textAlign="center";G.style.whiteSpace="nowrap";var k=document.createElement("input");k.setAttribute("type","checkbox");p=mxUtils.button(p||mxResources.get("cancel"),function(){b.hideDialog();null!=c&&c(k.checked)});p.className="geBtn";null!=v&&(p.innerHTML=v+"<br>"+p.innerHTML,p.style.display="inline-block",p.style.paddingBottom="8px",p.style.paddingTop="8px",p.style.height="auto",p.style.width="40%");b.editor.cancelFirst&&G.appendChild(p);
-var m=mxUtils.button(l||mxResources.get("ok"),function(){b.hideDialog();null!=f&&f(k.checked)});G.appendChild(m);null!=q?(m.innerHTML=q+"<br>"+m.innerHTML+"<br>",m.style.display="inline-block",m.style.paddingBottom="8px",m.style.paddingTop="8px",m.style.height="auto",m.className="geBtn",m.style.width="40%"):m.className="geBtn gePrimaryBtn";b.editor.cancelFirst||G.appendChild(p);d.appendChild(G);D?(G.style.marginTop="10px",g=document.createElement("p"),g.style.marginTop="20px",g.style.marginBottom=
-"0px",g.appendChild(k),l=document.createElement("span"),mxUtils.write(l," "+mxResources.get("rememberThisSetting")),g.appendChild(l),d.appendChild(g),mxEvent.addListener(l,"click",function(t){k.checked=!k.checked;mxEvent.consume(t)})):G.style.marginTop="12px";this.init=function(){m.focus()};this.container=d},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};
+var CommentsWindow=function(b,e,f,c,l,p){function v(){for(var q=I.getElementsByTagName("div"),y=0,D=0;D<q.length;D++)"none"!=q[D].style.display&&q[D].parentNode==I&&y++;F.style.display=0==y?"block":"none"}function t(q,y,D,J){function L(){y.removeChild(z);y.removeChild(G);n.style.display="block";K.style.display="block"}u={div:y,comment:q,saveCallback:D,deleteOnCancel:J};var K=y.querySelector(".geCommentTxt"),n=y.querySelector(".geCommentActionsList"),z=document.createElement("textarea");z.className=
+"geCommentEditTxtArea";z.style.minHeight=K.offsetHeight+"px";z.value=q.content;y.insertBefore(z,K);var G=document.createElement("div");G.className="geCommentEditBtns";var M=mxUtils.button(mxResources.get("cancel"),function(){J?(y.parentNode.removeChild(y),v()):L();u=null});M.className="geCommentEditBtn";G.appendChild(M);var N=mxUtils.button(mxResources.get("save"),function(){K.innerText="";q.content=z.value;mxUtils.write(K,q.content);L();D(q);u=null});mxEvent.addListener(z,"keydown",mxUtils.bind(this,
+function(Q){mxEvent.isConsumed(Q)||((mxEvent.isControlDown(Q)||mxClient.IS_MAC&&mxEvent.isMetaDown(Q))&&13==Q.keyCode?(N.click(),mxEvent.consume(Q)):27==Q.keyCode&&(M.click(),mxEvent.consume(Q)))}));N.focus();N.className="geCommentEditBtn gePrimaryBtn";G.appendChild(N);y.insertBefore(G,K);n.style.display="none";K.style.display="none";z.focus()}function E(q,y){y.innerText="";q=new Date(q.modifiedDate);var D=b.timeSince(q);null==D&&(D=mxResources.get("lessThanAMinute"));mxUtils.write(y,mxResources.get("timeAgo",
+[D],"{1} ago"));y.setAttribute("title",q.toLocaleDateString()+" "+q.toLocaleTimeString())}function H(q){var y=document.createElement("img");y.className="geCommentBusyImg";y.src=IMAGE_PATH+"/spin.gif";q.appendChild(y);q.busyImg=y}function B(q){q.style.border="1px solid red";q.busyImg.parentNode==q&&q.removeChild(q.busyImg)}function d(q){q.style.border="";q.busyImg.parentNode==q&&q.removeChild(q.busyImg)}function g(q,y,D,J,L){function K(T,W,X){var Z=document.createElement("li");Z.className="geCommentAction";
+var Y=document.createElement("a");Y.className="geCommentActionLnk";mxUtils.write(Y,T);Z.appendChild(Y);mxEvent.addListener(Y,"click",function(ba){W(ba,q);ba.preventDefault();mxEvent.consume(ba)});S.appendChild(Z);X&&(Z.style.display="none")}function n(){function T(Z){W.push(X);if(null!=Z.replies)for(var Y=0;Y<Z.replies.length;Y++)X=X.nextSibling,T(Z.replies[Y])}var W=[],X=G;T(q);return{pdiv:X,replies:W}}function z(T,W,X,Z,Y){function ba(){H(fa);q.addReply(ca,function(aa){ca.id=aa;q.replies.push(ca);
+d(fa);X&&X()},function(aa){da();B(fa);b.handleError(aa,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},Z,Y)}function da(){t(ca,fa,function(aa){ba()},!0)}var ia=n().pdiv,ca=b.newComment(T,b.getCurrentUser());ca.pCommentId=q.id;null==q.replies&&(q.replies=[]);var fa=g(ca,q.replies,ia,J+1);W?da():ba()}if(L||!q.isResolved){F.style.display="none";var G=document.createElement("div");G.className="geCommentContainer";G.setAttribute("data-commentId",q.id);G.style.marginLeft=20*J+5+
+"px";q.isResolved&&(x.style.opacity="0.7");var M=document.createElement("div");M.className="geCommentHeader";var N=document.createElement("img");N.className="geCommentUserImg";N.src=null!=q.user&&null!=q.user.pictureUrl?q.user.pictureUrl:Editor.userImage;M.appendChild(N);N=document.createElement("div");N.className="geCommentHeaderTxt";M.appendChild(N);var Q=document.createElement("div");Q.className="geCommentUsername";mxUtils.write(Q,null!=q.user?q.user.displayName:mxResources.get("unknownUser"));
+N.appendChild(Q);Q=document.createElement("div");Q.className="geCommentDate";Q.setAttribute("data-commentId",q.id);E(q,Q);N.appendChild(Q);G.appendChild(M);M=document.createElement("div");M.className="geCommentTxt";mxUtils.write(M,q.content||"");G.appendChild(M);q.isLocked&&(G.style.opacity="0.5");M=document.createElement("div");M.className="geCommentActions";var S=document.createElement("ul");S.className="geCommentActionsList";M.appendChild(S);k||q.isLocked||0!=J&&!m||K(mxResources.get("reply"),
+function(){z("",!0)},q.isResolved);N=b.getCurrentUser();null==N||null==q.user||N.id!=q.user.id||k||q.isLocked||(K(mxResources.get("edit"),function(){function T(){t(q,G,function(){H(G);q.editComment(q.content,function(){d(G)},function(W){B(G);T();b.handleError(W,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}T()},q.isResolved),K(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){H(G);q.deleteComment(function(T){if(!0===T){T=G.querySelector(".geCommentTxt");
+T.innerText="";mxUtils.write(T,mxResources.get("msgDeleted"));var W=G.querySelectorAll(".geCommentAction");for(T=0;T<W.length;T++)W[T].parentNode.removeChild(W[T]);d(G);G.style.opacity="0.5"}else{W=n(q).replies;for(T=0;T<W.length;T++)I.removeChild(W[T]);for(T=0;T<y.length;T++)if(y[T]==q){y.splice(T,1);break}F.style.display=0==I.getElementsByTagName("div").length?"block":"none"}},function(T){B(G);b.handleError(T,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},q.isResolved));
+k||q.isLocked||0!=J||K(q.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(T){function W(){var X=T.target;X.innerText="";q.isResolved=!q.isResolved;mxUtils.write(X,q.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var Z=q.isResolved?"none":"",Y=n(q).replies,ba="light-dark("+(q.isResolved?"ghostWhite":"white")+", transparent)",da=0;da<Y.length;da++){Y[da].style.backgroundColor=ba;for(var ia=Y[da].querySelectorAll(".geCommentAction"),ca=0;ca<ia.length;ca++)ia[ca]!=
+X.parentNode&&(ia[ca].style.display=Z);U||(Y[da].style.display="none")}v()}q.isResolved?z(mxResources.get("reOpened")+": ",!0,W,!1,!0):z(mxResources.get("markedAsResolved"),!1,W,!0)});G.appendChild(M);null!=D?I.insertBefore(G,D.nextSibling):I.appendChild(G);for(D=0;null!=q.replies&&D<q.replies.length;D++)M=q.replies[D],M.isResolved=q.isResolved,g(M,q.replies,null,J+1,L);null!=u&&(u.comment.id==q.id?(L=q.content,q.content=u.comment.content,t(q,G,u.saveCallback,u.deleteOnCancel),q.content=L):null==
+u.comment.id&&u.comment.pCommentId==q.id&&(I.appendChild(u.div),t(u.comment,u.div,u.saveCallback,u.deleteOnCancel)));return G}}var k=!b.canComment(),m=b.canReplyToReplies(),u=null,x=document.createElement("div");x.className="geCommentsWin";var A=EditorUi.compactUi?"26px":"30px",I=document.createElement("div");I.className="geCommentsList";I.style.bottom=parseInt(A)+7+"px";x.appendChild(I);var F=document.createElement("span");F.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(F,
+mxResources.get("noCommentsFound"));var C=document.createElement("div");C.className="geToolbarContainer geCommentsToolbar";C.style.height=A;C.style.padding="3px 4px 4px 4px";A=document.createElement("a");A.className="geButton";if(!k){var P=A.cloneNode();P.style.backgroundImage="url("+Editor.plusImage+")";P.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(P,"click",function(q){function y(){t(D,J,function(L){H(J);b.addComment(L,function(K){L.id=K;O.push(L);d(J)},function(K){B(J);
+y();b.handleError(K,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var D=b.newComment("",b.getCurrentUser()),J=g(D,O,null,0);y();q.preventDefault();mxEvent.consume(q)});C.appendChild(P)}var R=A.cloneNode();R.style.backgroundImage="url("+Editor.checkImage+")";R.setAttribute("title",mxResources.get("showResolved"));var U=!1;mxEvent.addListener(R,"click",function(q){(U=!U)?R.classList.add("geActiveItem"):R.classList.remove("geActiveItem");V();q.preventDefault();mxEvent.consume(q)});
+C.appendChild(R);b.commentsRefreshNeeded()&&(P=A.cloneNode(),P.style.backgroundImage="url("+Editor.refreshImage+")",P.setAttribute("title",mxResources.get("refresh")),mxEvent.addListener(P,"click",function(q){V();q.preventDefault();mxEvent.consume(q)}),C.appendChild(P));b.commentsSaveNeeded()&&(A=A.cloneNode(),A.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',A.setAttribute("title",mxResources.get("save")),A.className="geButton geAdaptiveAsset",mxEvent.addListener(A,
+"click",function(q){p();q.preventDefault();mxEvent.consume(q)}),C.appendChild(A));x.appendChild(C);var O=[],V=mxUtils.bind(this,function(){this.hasError=!1;if(null!=u)try{u.div=u.div.cloneNode(!0);var q=u.div.querySelector(".geCommentEditTxtArea"),y=u.div.querySelector(".geCommentEditBtns");u.comment.content=q.value;q.parentNode.removeChild(q);y.parentNode.removeChild(y)}catch(D){b.handleError(D)}I.innerHTML='<div style="padding-top:10px;text-align:center;"><img src="'+IMAGE_PATH+'/spin.gif" valign="middle"> '+
+mxUtils.htmlEntities(mxResources.get("loading"))+"...</div>";m=b.canReplyToReplies();b.commentsSupported()?b.getComments(function(D){function J(L){if(null!=L){L.sort(function(n,z){return new Date(n.modifiedDate)-new Date(z.modifiedDate)});for(var K=0;K<L.length;K++)J(L[K].replies)}}D.sort(function(L,K){return new Date(L.modifiedDate)-new Date(K.modifiedDate)});I.innerText="";I.appendChild(F);F.style.display="block";O=D;for(D=0;D<O.length;D++)J(O[D].replies),g(O[D],O,null,0,U);null!=u&&null==u.comment.id&&
+null==u.comment.pCommentId&&(I.appendChild(u.div),t(u.comment,u.div,u.saveCallback,u.deleteOnCancel))},mxUtils.bind(this,function(D){I.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(D&&D.message?": "+D.message:""));this.hasError=!0})):I.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});V();this.refreshComments=V;C=mxUtils.bind(this,function(){function q(K){var n=D[K.id];if(null!=n)for(E(K,n),n=0;null!=K.replies&&n<K.replies.length;n++)q(K.replies[n])}if(this.window.isVisible()){for(var y=
+I.querySelectorAll(".geCommentDate"),D={},J=0;J<y.length;J++){var L=y[J];D[L.getAttribute("data-commentId")]=L}for(J=0;J<O.length;J++)q(O[J])}});setInterval(C,6E4);this.refreshCommentsTime=C;this.window=new mxWindow(mxResources.get("comments"),x,e,f,c,l,!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,f,c,l,p,v,t,E,H,B){var d=document.createElement("div");d.style.textAlign="center";B=null!=B?B:44;var g=document.createElement("div");g.style.padding="6px";g.style.overflow="auto";g.style.maxHeight=B+"px";g.style.lineHeight="1.2em";mxUtils.write(g,e);d.appendChild(g);null!=H&&(g=document.createElement("div"),g.style.padding="6px 0 6px 0",e=document.createElement("img"),e.setAttribute("src",H),g.appendChild(e),
+d.appendChild(g));H=document.createElement("div");H.style.textAlign="center";H.style.whiteSpace="nowrap";var k=document.createElement("input");k.setAttribute("type","checkbox");p=mxUtils.button(p||mxResources.get("cancel"),function(){b.hideDialog();null!=c&&c(k.checked)});p.className="geBtn";null!=t&&(p.innerHTML=t+"<br>"+p.innerHTML,p.style.display="inline-block",p.style.paddingBottom="8px",p.style.paddingTop="8px",p.style.height="auto",p.style.width="40%");b.editor.cancelFirst&&H.appendChild(p);
+var m=mxUtils.button(l||mxResources.get("ok"),function(){b.hideDialog();null!=f&&f(k.checked)});H.appendChild(m);null!=v?(m.innerHTML=v+"<br>"+m.innerHTML+"<br>",m.style.display="inline-block",m.style.paddingBottom="8px",m.style.paddingTop="8px",m.style.height="auto",m.className="geBtn",m.style.width="40%"):m.className="geBtn gePrimaryBtn";b.editor.cancelFirst||H.appendChild(p);d.appendChild(H);E?(H.style.marginTop="10px",g=document.createElement("p"),g.style.marginTop="20px",g.style.marginBottom=
+"0px",g.appendChild(k),l=document.createElement("span"),mxUtils.write(l," "+mxResources.get("rememberThisSetting")),g.appendChild(l),d.appendChild(g),mxEvent.addListener(l,"click",function(u){k.checked=!k.checked;mxEvent.consume(u)})):H.style.marginTop="12px";this.init=function(){m.focus()};this.container=d},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(){};EditorUi.DIFF_INSERT="i";EditorUi.DIFF_REMOVE="r";EditorUi.DIFF_UPDATE="u";EditorUi.transientViewStateProperties="defaultParent currentRoot scrollLeft scrollTop scale translate lastPasteXml pasteCounter".split(" ");EditorUi.prototype.viewStateProperties={background:!0,backgroundImage:!0,shadowVisible:!0,foldingEnabled:!0,pageScale:!0,mathEnabled:!0,pageFormat:!0,extFonts:!0};
EditorUi.prototype.cellProperties={id:!0,value:!0,xmlValue:!0,vertex:!0,edge:!0,visible:!0,collapsed:!0,connectable:!0,parent:!0,children:!0,previous:!0,source:!0,target:!0,edges:!0,geometry:!0,style:!0,overlays:!0,mxObjectId:!0,mxTransient:!0};EditorUi.prototype.codec=new mxCodec;EditorUi.prototype.applyPatches=function(b,e,f,c,l){if(null!=e)for(var p=0;p<e.length;p++)null!=e[p]&&(b=this.patchPages(b,e[p],f,c,l));return b};
-EditorUi.prototype.patchPages=function(b,e,f,c,l){var p={},q=[],v={},D={},G={},B={};if(null!=c&&null!=c[EditorUi.DIFF_UPDATE])for(var d in c[EditorUi.DIFF_UPDATE])p[d]=c[EditorUi.DIFF_UPDATE][d];if(null!=e[EditorUi.DIFF_REMOVE])for(c=0;c<e[EditorUi.DIFF_REMOVE].length;c++)D[e[EditorUi.DIFF_REMOVE][c]]=!0;if(null!=e[EditorUi.DIFF_INSERT])for(c=0;c<e[EditorUi.DIFF_INSERT].length;c++)v[e[EditorUi.DIFF_INSERT][c].previous]=e[EditorUi.DIFF_INSERT][c];if(null!=e[EditorUi.DIFF_UPDATE])for(d in e[EditorUi.DIFF_UPDATE])c=
-e[EditorUi.DIFF_UPDATE][d],null!=c.previous&&(B[c.previous]=d);if(null!=b){var g="";for(c=0;c<b.length;c++){var k=b[c].getId();G[k]=b[c];null!=B[g]||D[k]||null!=e[EditorUi.DIFF_UPDATE]&&null!=e[EditorUi.DIFF_UPDATE][k]&&null!=e[EditorUi.DIFF_UPDATE][k].previous||(B[g]=k);g=k}}var m={},t=mxUtils.bind(this,function(z){var I=null!=z?z.getId():"";if(null!=z&&!m[I]){m[I]=!0;q.push(z);var F=null!=e[EditorUi.DIFF_UPDATE]?e[EditorUi.DIFF_UPDATE][I]:null;null!=F&&(this.updatePageRoot(z),null!=F.name&&z.setName(F.name),
-null!=F.view&&this.patchViewState(z,F.view),null!=F.cells&&this.patchPage(z,F.cells,p[z.getId()],l),!f||null==F.cells&&null==F.view||(z.needsUpdate=!0))}z=B[I];null!=z&&(delete B[I],t(G[z]));z=v[I];null!=z&&(delete v[I],y(z))}),y=mxUtils.bind(this,function(z){z=mxUtils.parseXml(z.data).documentElement;z=new DiagramPage(z);this.updatePageRoot(z);var I=G[z.getId()];null==I?t(z):(this.patchPage(I,this.diffPages([I],[z]),p[I.getId()],l),f&&(I.needsUpdate=!0))});t();for(d in B)t(G[B[d]]),delete B[d];for(d in v)y(v[d]),
-delete v[d];return q};EditorUi.prototype.patchViewState=function(b,e){if(null!=b.viewState&&null!=e){b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var f in e)try{this.patchViewStateProperty(b,e,f)}catch(c){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototype.patchViewStateProperty=function(b,e,f){b.viewState[f]=JSON.parse(e[f])};
-EditorUi.prototype.createParentLookup=function(b,e){function f(G){var B=c[G];null==B&&(B={inserted:[],moved:{}},c[G]=B);return B}var c={};if(null!=e[EditorUi.DIFF_INSERT])for(var l=0;l<e[EditorUi.DIFF_INSERT].length;l++){var p=e[EditorUi.DIFF_INSERT][l],q=null!=p.parent?p.parent:"",v=null!=p.previous?p.previous:"";f(q).inserted[v]=p}if(null!=e[EditorUi.DIFF_UPDATE])for(var D in e[EditorUi.DIFF_UPDATE])p=e[EditorUi.DIFF_UPDATE][D],null!=p.previous&&(q=p.parent,null==q&&(l=b.getCell(D),null!=l&&(l=
-b.getParent(l),null!=l&&(q=l.getId()))),null!=q&&(f(q).moved[p.previous]=D));return c};
-EditorUi.prototype.patchPage=function(b,e,f,c){var l=b==this.currentPage?this.editor.graph.model:new mxGraphModel(b.root),p=this.createParentLookup(l,e);l.beginUpdate();try{var q=l.updateEdgeParent,v=new mxDictionary,D=[];l.updateEdgeParent=function(y,z){!v.get(y)&&c&&(v.put(y,!0),D.push(y))};var G=p[""],B=null!=G&&null!=G.inserted?G.inserted[""]:null,d=null;null!=B&&(d=this.getCellForJson(B));if(null==d){var g=null!=G&&null!=G.moved?G.moved[""]:null;null!=g&&(d=l.getCell(g))}null!=d&&(l.setRoot(d),
-b.root=d,EditorUi.debug("EditorUi.patchPage: Root changed",d.id));this.patchCellRecursive(b,l,l.root,p,e);if(null!=e[EditorUi.DIFF_REMOVE])for(var k=0;k<e[EditorUi.DIFF_REMOVE].length;k++){g=e[EditorUi.DIFF_REMOVE][k];var m=l.getCell(g);null!=m&&l.remove(m)}if(null!=e[EditorUi.DIFF_UPDATE]){var t=null!=f&&null!=f.cells?f.cells[EditorUi.DIFF_UPDATE]:null;for(g in e[EditorUi.DIFF_UPDATE])m=l.getCell(g),null!=m?this.patchCell(l,m,e[EditorUi.DIFF_UPDATE][g],null!=t?t[g]:null):EditorUi.debug("EditorUi.patchPage: Updated cell not found",
-g,"diff",[e[EditorUi.DIFF_UPDATE][g]])}if(null!=e[EditorUi.DIFF_INSERT])for(k=0;k<e[EditorUi.DIFF_INSERT].length;k++)B=e[EditorUi.DIFF_INSERT][k],m=l.getCell(B.id),null!=m&&(l.setTerminal(m,l.getCell(B.source),!0),l.setTerminal(m,l.getCell(B.target),!1));l.updateEdgeParent=q;if(c&&0<D.length)for(k=0;k<D.length;k++)l.contains(D[k])&&l.updateEdgeParent(D[k])}finally{l.endUpdate()}};
-EditorUi.prototype.patchCellRecursive=function(b,e,f,c,l){if(null!=f){var p=c[f.getId()],q=null!=p&&null!=p.inserted?p.inserted:{};p=null!=p&&null!=p.moved?p.moved:{};for(var v=0,D=e.getChildCount(f),G="",B=0;B<D;B++){var d=e.getChildAt(f,B).getId();null==p[G]&&(null==l[EditorUi.DIFF_UPDATE]||null==l[EditorUi.DIFF_UPDATE][d]||null==l[EditorUi.DIFF_UPDATE][d].previous&&null==l[EditorUi.DIFF_UPDATE][d].parent)&&(p[G]=d);G=d}D=mxUtils.bind(this,function(g,k){var m=null!=g?g.getId():"";null==m&&EditorUi.debug("EditorUi.patchCellRecursive: Inserting cell with null id",
-"cell",g);null!=g&&k&&(k=e.getCell(m),null!=k&&k!=g&&(g=null));null!=g&&(e.getChildAt(f,v)!=g&&e.add(f,g,v),this.patchCellRecursive(b,e,g,c,l),v++);return m});for(G=[null];0<G.length;)if(B=G.shift(),B=D(null!=B?B.child:null,null!=B?B.insert:!1),d=p[B],null!=d&&(delete p[B],G.push({child:e.getCell(d)})),d=q[B],null!=d&&(delete q[B],G.push({child:this.getCellForJson(d),insert:!0})),0==G.length){for(B in p)G.push({child:e.getCell(p[B])}),delete p[B];for(B in q)G.push({child:this.getCellForJson(q[B]),
-insert:!0}),delete q[B]}}};
+EditorUi.prototype.patchPages=function(b,e,f,c,l){var p={},v=[],t={},E={},H={},B={};if(null!=c&&null!=c[EditorUi.DIFF_UPDATE])for(var d in c[EditorUi.DIFF_UPDATE])p[d]=c[EditorUi.DIFF_UPDATE][d];if(null!=e[EditorUi.DIFF_REMOVE])for(c=0;c<e[EditorUi.DIFF_REMOVE].length;c++)E[e[EditorUi.DIFF_REMOVE][c]]=!0;if(null!=e[EditorUi.DIFF_INSERT])for(c=0;c<e[EditorUi.DIFF_INSERT].length;c++)t[e[EditorUi.DIFF_INSERT][c].previous]=e[EditorUi.DIFF_INSERT][c];if(null!=e[EditorUi.DIFF_UPDATE])for(d in e[EditorUi.DIFF_UPDATE])c=
+e[EditorUi.DIFF_UPDATE][d],null!=c.previous&&(B[c.previous]=d);if(null!=b){var g="";for(c=0;c<b.length;c++){var k=b[c].getId();H[k]=b[c];null!=B[g]||E[k]||null!=e[EditorUi.DIFF_UPDATE]&&null!=e[EditorUi.DIFF_UPDATE][k]&&null!=e[EditorUi.DIFF_UPDATE][k].previous||(B[g]=k);g=k}}var m={},u=mxUtils.bind(this,function(A){var I=null!=A?A.getId():"";if(null!=A&&!m[I]){m[I]=!0;v.push(A);var F=null!=e[EditorUi.DIFF_UPDATE]?e[EditorUi.DIFF_UPDATE][I]:null;null!=F&&(this.updatePageRoot(A),null!=F.name&&A.setName(F.name),
+null!=F.view&&this.patchViewState(A,F.view),null!=F.cells&&this.patchPage(A,F.cells,p[A.getId()],l),!f||null==F.cells&&null==F.view||(A.needsUpdate=!0))}A=B[I];null!=A&&(delete B[I],u(H[A]));A=t[I];null!=A&&(delete t[I],x(A))}),x=mxUtils.bind(this,function(A){A=mxUtils.parseXml(A.data).documentElement;A=new DiagramPage(A);this.updatePageRoot(A);var I=H[A.getId()];null==I?u(A):(this.patchPage(I,this.diffPages([I],[A]),p[I.getId()],l),f&&(I.needsUpdate=!0))});u();for(d in B)u(H[B[d]]),delete B[d];for(d in t)x(t[d]),
+delete t[d];return v};EditorUi.prototype.patchViewState=function(b,e){if(null!=b.viewState&&null!=e){b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var f in e)try{this.patchViewStateProperty(b,e,f)}catch(c){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototype.patchViewStateProperty=function(b,e,f){b.viewState[f]=JSON.parse(e[f])};
+EditorUi.prototype.createParentLookup=function(b,e){function f(H){var B=c[H];null==B&&(B={inserted:[],moved:{}},c[H]=B);return B}var c={};if(null!=e[EditorUi.DIFF_INSERT])for(var l=0;l<e[EditorUi.DIFF_INSERT].length;l++){var p=e[EditorUi.DIFF_INSERT][l],v=null!=p.parent?p.parent:"",t=null!=p.previous?p.previous:"";f(v).inserted[t]=p}if(null!=e[EditorUi.DIFF_UPDATE])for(var E in e[EditorUi.DIFF_UPDATE])p=e[EditorUi.DIFF_UPDATE][E],null!=p.previous&&(v=p.parent,null==v&&(l=b.getCell(E),null!=l&&(l=
+b.getParent(l),null!=l&&(v=l.getId()))),null!=v&&(f(v).moved[p.previous]=E));return c};
+EditorUi.prototype.patchPage=function(b,e,f,c){var l=b==this.currentPage?this.editor.graph.model:new mxGraphModel(b.root),p=this.createParentLookup(l,e);l.beginUpdate();try{var v=l.updateEdgeParent,t=new mxDictionary,E=[];l.updateEdgeParent=function(x,A){!t.get(x)&&c&&(t.put(x,!0),E.push(x))};var H=p[""],B=null!=H&&null!=H.inserted?H.inserted[""]:null,d=null;null!=B&&(d=this.getCellForJson(B));if(null==d){var g=null!=H&&null!=H.moved?H.moved[""]:null;null!=g&&(d=l.getCell(g))}null!=d&&(l.setRoot(d),
+b.root=d,EditorUi.debug("EditorUi.patchPage: Root changed",d.id));this.patchCellRecursive(b,l,l.root,p,e);if(null!=e[EditorUi.DIFF_REMOVE])for(var k=0;k<e[EditorUi.DIFF_REMOVE].length;k++){g=e[EditorUi.DIFF_REMOVE][k];var m=l.getCell(g);null!=m&&l.remove(m)}if(null!=e[EditorUi.DIFF_UPDATE]){var u=null!=f&&null!=f.cells?f.cells[EditorUi.DIFF_UPDATE]:null;for(g in e[EditorUi.DIFF_UPDATE])m=l.getCell(g),null!=m?this.patchCell(l,m,e[EditorUi.DIFF_UPDATE][g],null!=u?u[g]:null):EditorUi.debug("EditorUi.patchPage: Updated cell not found",
+g,"diff",[e[EditorUi.DIFF_UPDATE][g]])}if(null!=e[EditorUi.DIFF_INSERT])for(k=0;k<e[EditorUi.DIFF_INSERT].length;k++)B=e[EditorUi.DIFF_INSERT][k],m=l.getCell(B.id),null!=m&&(l.setTerminal(m,l.getCell(B.source),!0),l.setTerminal(m,l.getCell(B.target),!1));l.updateEdgeParent=v;if(c&&0<E.length)for(k=0;k<E.length;k++)l.contains(E[k])&&l.updateEdgeParent(E[k])}finally{l.endUpdate()}};
+EditorUi.prototype.patchCellRecursive=function(b,e,f,c,l){if(null!=f){var p=c[f.getId()],v=null!=p&&null!=p.inserted?p.inserted:{};p=null!=p&&null!=p.moved?p.moved:{};for(var t=0,E=e.getChildCount(f),H="",B=0;B<E;B++){var d=e.getChildAt(f,B).getId();null==p[H]&&(null==l[EditorUi.DIFF_UPDATE]||null==l[EditorUi.DIFF_UPDATE][d]||null==l[EditorUi.DIFF_UPDATE][d].previous&&null==l[EditorUi.DIFF_UPDATE][d].parent)&&(p[H]=d);H=d}E=mxUtils.bind(this,function(g,k){var m=null!=g?g.getId():"";null==m&&EditorUi.debug("EditorUi.patchCellRecursive: Inserting cell with null id",
+"cell",g);null!=g&&k&&(k=e.getCell(m),null!=k&&k!=g&&(g=null));null!=g&&(e.getChildAt(f,t)!=g&&e.add(f,g,t),this.patchCellRecursive(b,e,g,c,l),t++);return m});for(H=[null];0<H.length;)if(B=H.shift(),B=E(null!=B?B.child:null,null!=B?B.insert:!1),d=p[B],null!=d&&(delete p[B],H.push({child:e.getCell(d)})),d=v[B],null!=d&&(delete v[B],H.push({child:this.getCellForJson(d),insert:!0})),0==H.length){for(B in p)H.push({child:e.getCell(p[B])}),delete p[B];for(B in v)H.push({child:this.getCellForJson(v[B]),
+insert:!0}),delete v[B]}}};
EditorUi.prototype.patchCell=function(b,e,f,c){if(null!=e&&null!=f){if(null==c||null==c.xmlValue&&(null==c.value||""==c.value))"value"in f?b.setValue(e,f.value):null!=f.xmlValue&&b.setValue(e,mxUtils.parseXml(f.xmlValue).documentElement);null!=c&&null!=c.style||null==f.style||b.setStyle(e,f.style);null!=f.visible&&b.setVisible(e,1==f.visible);null!=f.collapsed&&b.setCollapsed(e,1==f.collapsed);null!=f.vertex&&(e.vertex=1==f.vertex);null!=f.edge&&(e.edge=1==f.edge);null!=f.connectable&&(e.connectable=
1==f.connectable);null!=f.geometry&&b.setGeometry(e,this.codec.decode(mxUtils.parseXml(f.geometry).documentElement));null!=f.source&&b.setTerminal(e,b.getCell(f.source),!0);null!=f.target&&b.setTerminal(e,b.getCell(f.target),!1);for(var l in f)this.cellProperties[l]||(e[l]=f[l])}};EditorUi.prototype.getXmlForPages=function(b){b=this.getNodeForPages(b);var e=null;null!=b&&(e=mxUtils.getXml(b));return e};
EditorUi.prototype.getNodeForPages=function(b){var e=null;if(null!=this.fileNode&&null!=b){e=this.fileNode.cloneNode(!1);for(var f=0;f<b.length;f++){var c=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b[f].root));this.editor.graph.saveViewState(b[f].viewState,c);var l=b[f].node.cloneNode(!1);l.appendChild(c);e.appendChild(l)}}return e};EditorUi.prototype.getPagesForXml=function(b){b=mxUtils.parseXml(b);return this.getPagesForNode(b.documentElement)};
EditorUi.prototype.getPagesForNode=function(b,e){var f=this.editor.extractGraphModel(b,!0,!0);null!=f&&(b=f);e=b.getElementsByTagName(e||"diagram");f=[];if(0<e.length)for(b=0;b<e.length;b++){var c=new DiagramPage(e[b]);this.updatePageRoot(c,!0);f.push(c)}else"mxGraphModel"==b.nodeName&&(c=new DiagramPage(b.ownerDocument.createElement("diagram")),c.setName(mxResources.get("pageWithNumber",[1])),c.node.appendChild(b.cloneNode(!0)),f.push(c));return f};
-EditorUi.prototype.diffPages=function(b,e){var f=[],c=[],l={},p={},q={},v=null;if(null!=b&&null!=e){for(var D=0;D<e.length;D++)p[e[D].getId()]={page:e[D],prev:v},v=e[D];v=null;for(D=0;D<b.length;D++){var G=b[D].getId();e=p[G];if(null==e)c.push(G);else{this.updatePageRoot(b[D]);this.updatePageRoot(e.page);var B=this.diffCells(b[D].root,e.page.root),d={};mxUtils.isEmptyObject(B)||(d.cells=B);B=this.diffViewState(b[D],e.page);mxUtils.isEmptyObject(B)||(d.view=B);if((null!=e.prev?null==v:null!=v)||null!=
-v&&null!=e.prev&&v.getId()!=e.prev.getId())d.previous=null!=e.prev?e.prev.getId():"";null!=e.page.getName()&&b[D].getName()!=e.page.getName()&&(d.name=e.page.getName());mxUtils.isEmptyObject(d)||(q[G]=d)}delete p[b[D].getId()];v=b[D]}for(G in p)e=p[G],f.push({id:e.page.getId(),data:mxUtils.getXml(e.page.node),previous:null!=e.prev?e.prev.getId():""});mxUtils.isEmptyObject(q)||(l[EditorUi.DIFF_UPDATE]=q);0<c.length&&(l[EditorUi.DIFF_REMOVE]=c);0<f.length&&(l[EditorUi.DIFF_INSERT]=f)}return l};
+EditorUi.prototype.diffPages=function(b,e){var f=[],c=[],l={},p={},v={},t=null;if(null!=b&&null!=e){for(var E=0;E<e.length;E++)p[e[E].getId()]={page:e[E],prev:t},t=e[E];t=null;for(E=0;E<b.length;E++){var H=b[E].getId();e=p[H];if(null==e)c.push(H);else{this.updatePageRoot(b[E]);this.updatePageRoot(e.page);var B=this.diffCells(b[E].root,e.page.root),d={};mxUtils.isEmptyObject(B)||(d.cells=B);B=this.diffViewState(b[E],e.page);mxUtils.isEmptyObject(B)||(d.view=B);if((null!=e.prev?null==t:null!=t)||null!=
+t&&null!=e.prev&&t.getId()!=e.prev.getId())d.previous=null!=e.prev?e.prev.getId():"";null!=e.page.getName()&&b[E].getName()!=e.page.getName()&&(d.name=e.page.getName());mxUtils.isEmptyObject(d)||(v[H]=d)}delete p[b[E].getId()];t=b[E]}for(H in p)e=p[H],f.push({id:e.page.getId(),data:mxUtils.getXml(e.page.node),previous:null!=e.prev?e.prev.getId():""});mxUtils.isEmptyObject(v)||(l[EditorUi.DIFF_UPDATE]=v);0<c.length&&(l[EditorUi.DIFF_REMOVE]=c);0<f.length&&(l[EditorUi.DIFF_INSERT]=f)}return l};
EditorUi.prototype.createCellLookup=function(b,e,f){f=null!=f?f:{};null==b.getId()?EditorUi.debug("EditorUi.createCellLookup: Ignored inserted cell with no id",b):f[b.getId()]={cell:b,prev:e};var c=b.getChildCount();e=null;for(var l=0;l<c;l++){var p=b.getChildAt(l);this.createCellLookup(p,e,f);e=p}return f};
-EditorUi.prototype.diffCellRecursive=function(b,e,f,c,l){c=null!=c?c:{};var p=f[b.getId()];delete f[b.getId()];if(null==p)null==b.getId()?EditorUi.debug("EditorUi.diffCellRecursive: Ignored removed cell with no id",b):l.push(b.getId());else{var q=this.diffCell(b,p.cell);if(null!=q.parent||(null!=p.prev?null==e:null!=e)||null!=e&&null!=p.prev&&e.getId()!=p.prev.getId())q.previous=null!=p.prev?p.prev.getId():"";mxUtils.isEmptyObject(q)||(null==b.getId()?EditorUi.debug("EditorUi.diffCellRecursive: Ignored changed cell with no id",
-b,"diff",q):c[b.getId()]=q)}p=b.getChildCount();e=null;for(q=0;q<p;q++){var v=b.getChildAt(q);this.diffCellRecursive(v,e,f,c,l);e=v}return c};
+EditorUi.prototype.diffCellRecursive=function(b,e,f,c,l){c=null!=c?c:{};var p=f[b.getId()];delete f[b.getId()];if(null==p)null==b.getId()?EditorUi.debug("EditorUi.diffCellRecursive: Ignored removed cell with no id",b):l.push(b.getId());else{var v=this.diffCell(b,p.cell);if(null!=v.parent||(null!=p.prev?null==e:null!=e)||null!=e&&null!=p.prev&&e.getId()!=p.prev.getId())v.previous=null!=p.prev?p.prev.getId():"";mxUtils.isEmptyObject(v)||(null==b.getId()?EditorUi.debug("EditorUi.diffCellRecursive: Ignored changed cell with no id",
+b,"diff",v):c[b.getId()]=v)}p=b.getChildCount();e=null;for(v=0;v<p;v++){var t=b.getChildAt(v);this.diffCellRecursive(t,e,f,c,l);e=t}return c};
EditorUi.prototype.diffCells=function(b,e){var f={},c=[],l=this.createCellLookup(e);e.id==b.id?(e=[],b=this.diffCellRecursive(b,null,l,null,e),mxUtils.isEmptyObject(b)||(f[EditorUi.DIFF_UPDATE]=b),0<e.length&&(f[EditorUi.DIFF_REMOVE]=e)):EditorUi.debug("EditorUi.diffCells: Root changed",e.id);for(var p in l)b=l[p],c.push(this.getJsonForCell(b.cell,b.prev));0<c.length&&(f[EditorUi.DIFF_INSERT]=c);return f};
EditorUi.prototype.diffViewState=function(b,e){var f=b.viewState,c=e.viewState,l={};b==this.currentPage&&(f=this.editor.graph.getViewState());e==this.currentPage&&(c=this.editor.graph.getViewState());if(null!=f&&null!=c)for(var p in this.viewStateProperties)this.diffViewStateProperty(f,c,p,l);return l};EditorUi.prototype.diffViewStateProperty=function(b,e,f,c){b=JSON.stringify(this.getViewStateProperty(b,f));e=JSON.stringify(this.getViewStateProperty(e,f));b!=e&&(c[f]=e)};
EditorUi.prototype.getViewStateProperty=function(b,e){b=b[e];"backgroundImage"==e&&null!=b&&null!=b.originalSrc?b={originalSrc:b.originalSrc}:"extFonts"==e&&null==b&&(b=[]);return b};
EditorUi.prototype.getCellForJson=function(b){var e=null!=b.geometry?this.codec.decode(mxUtils.parseXml(b.geometry).documentElement):null,f=b.value;null!=b.xmlValue&&(f=mxUtils.parseXml(b.xmlValue).documentElement);e=new mxCell(f,e,b.style);e.connectable=0!=b.connectable;e.collapsed=1==b.collapsed;e.visible=0!=b.visible;e.vertex=1==b.vertex;e.edge=1==b.edge;e.id=b.id;for(var c in b)this.cellProperties[c]||(e[c]=b[c]);return e};
EditorUi.prototype.getJsonForCell=function(b,e){var f={id:b.getId()};b.vertex&&(f.vertex=1);b.edge&&(f.edge=1);b.connectable||(f.connectable=0);null!=b.parent&&(f.parent=b.parent.getId());null!=e&&(f.previous=e.getId());null!=b.source&&(f.source=b.source.getId());null!=b.target&&(f.target=b.target.getId());null!=b.style&&(f.style=b.style);null!=b.geometry&&(f.geometry=mxUtils.getXml(this.codec.encode(b.geometry)));b.collapsed&&(f.collapsed=1);b.visible||(f.visible=0);null!=b.value&&("object"===typeof b.value&&
"number"===typeof b.value.nodeType&&"string"===typeof b.value.nodeName&&"function"===typeof b.value.getAttribute?f.xmlValue=mxUtils.getXml(b.value):f.value=b.value);for(var c in b)this.cellProperties[c]||"function"===typeof b[c]||(f[c]=b[c]);return f};
-EditorUi.prototype.diffCell=function(b,e){function f(q){return null!=q&&"object"===typeof q&&"number"===typeof q.nodeType&&"string"===typeof q.nodeName&&"function"===typeof q.getAttribute}var c={};b.vertex!=e.vertex&&(c.vertex=e.vertex?1:0);b.edge!=e.edge&&(c.edge=e.edge?1:0);b.connectable!=e.connectable&&(c.connectable=e.connectable?1:0);if((null!=b.parent?null==e.parent:null!=e.parent)||null!=b.parent&&null!=e.parent&&b.parent.getId()!=e.parent.getId())c.parent=null!=e.parent?e.parent.getId():"";
+EditorUi.prototype.diffCell=function(b,e){function f(v){return null!=v&&"object"===typeof v&&"number"===typeof v.nodeType&&"string"===typeof v.nodeName&&"function"===typeof v.getAttribute}var c={};b.vertex!=e.vertex&&(c.vertex=e.vertex?1:0);b.edge!=e.edge&&(c.edge=e.edge?1:0);b.connectable!=e.connectable&&(c.connectable=e.connectable?1:0);if((null!=b.parent?null==e.parent:null!=e.parent)||null!=b.parent&&null!=e.parent&&b.parent.getId()!=e.parent.getId())c.parent=null!=e.parent?e.parent.getId():"";
if((null!=b.source?null==e.source:null!=e.source)||null!=b.source&&null!=e.source&&b.source.getId()!=e.source.getId())c.source=null!=e.source?e.source.getId():"";if((null!=b.target?null==e.target:null!=e.target)||null!=b.target&&null!=e.target&&b.target.getId()!=e.target.getId())c.target=null!=e.target?e.target.getId():"";f(b.value)&&f(e.value)?b.value.isEqualNode(e.value)||(c.xmlValue=mxUtils.getXml(e.value)):b.value!=e.value&&(f(e.value)?c.xmlValue=mxUtils.getXml(e.value):c.value=null!=e.value?
e.value:null);b.style!=e.style&&(c.style=e.style);b.visible!=e.visible&&(c.visible=e.visible?1:0);b.collapsed!=e.collapsed&&(c.collapsed=e.collapsed?1:0);if(!this.isObjectEqual(b.geometry,e.geometry,new mxGeometry)){var l=this.codec.encode(e.geometry);null!=l&&(c.geometry=mxUtils.getXml(l))}for(var p in b)this.cellProperties[p]||"function"===typeof b[p]||"function"===typeof e[p]||b[p]==e[p]||(c[p]=void 0===e[p]?null:e[p]);for(p in e)p in b||this.cellProperties[p]||"function"===typeof b[p]||"function"===
typeof e[p]||b[p]==e[p]||(c[p]=void 0===e[p]?null:e[p]);return c};EditorUi.prototype.resolveCrossReferences=function(b,e){var f={};mxUtils.isEmptyObject(e)||(this.adoptTheirPages(b,e,f),this.adoptTheirCells(b,e,f));EditorUi.debug("EditorUi.resolveCrossReferences",[this],"ownDiff",b,"theirDiff",e,"resolve",f);return f};
EditorUi.prototype.adoptTheirPages=function(b,e,f){var c={};if(null!=e[EditorUi.DIFF_INSERT])for(var l=0;l<e[EditorUi.DIFF_INSERT].length;l++)c[e[EditorUi.DIFF_INSERT][l].id]=e[EditorUi.DIFF_INSERT][l];for(var p in b[EditorUi.DIFF_UPDATE])null!=c[p]&&(null==f[EditorUi.DIFF_INSERT]&&(f[EditorUi.DIFF_INSERT]=[]),null==f[EditorUi.DIFF_UPDATE]&&(f[EditorUi.DIFF_UPDATE]={}),f[EditorUi.DIFF_INSERT].push(c[p]),f[EditorUi.DIFF_UPDATE][p]=b[EditorUi.DIFF_UPDATE][p],delete b[EditorUi.DIFF_UPDATE][p])};
EditorUi.prototype.adoptTheirCells=function(b,e,f){for(var c in b[EditorUi.DIFF_UPDATE]){var l=b[EditorUi.DIFF_UPDATE][c];null!=l.cells&&this.adoptTheirCellsFromPage(l,e,c,f)}};
-EditorUi.prototype.adoptTheirCellsFromPage=function(b,e,f,c){var l=null!=e[EditorUi.DIFF_UPDATE]?e[EditorUi.DIFF_UPDATE][f]:null;if(null!=l&&null!=l.cells&&null!=l.cells[EditorUi.DIFF_INSERT]){e=l.cells[EditorUi.DIFF_UPDATE];for(var p={},q=0;q<l.cells[EditorUi.DIFF_INSERT].length;q++){var v=l.cells[EditorUi.DIFF_INSERT][q];p[v.id]=v}l={cells:{}};l.cells[EditorUi.DIFF_INSERT]=[];l.cells[EditorUi.DIFF_UPDATE]={};l.inserted={};this.resolveOwnInsertedCells(b.cells[EditorUi.DIFF_INSERT],p,l);this.resolveOwnUpdatedCells(b.cells[EditorUi.DIFF_UPDATE],
+EditorUi.prototype.adoptTheirCellsFromPage=function(b,e,f,c){var l=null!=e[EditorUi.DIFF_UPDATE]?e[EditorUi.DIFF_UPDATE][f]:null;if(null!=l&&null!=l.cells&&null!=l.cells[EditorUi.DIFF_INSERT]){e=l.cells[EditorUi.DIFF_UPDATE];for(var p={},v=0;v<l.cells[EditorUi.DIFF_INSERT].length;v++){var t=l.cells[EditorUi.DIFF_INSERT][v];p[t.id]=t}l={cells:{}};l.cells[EditorUi.DIFF_INSERT]=[];l.cells[EditorUi.DIFF_UPDATE]={};l.inserted={};this.resolveOwnInsertedCells(b.cells[EditorUi.DIFF_INSERT],p,l);this.resolveOwnUpdatedCells(b.cells[EditorUi.DIFF_UPDATE],
p,e,l);null==c[EditorUi.DIFF_UPDATE]&&(c[EditorUi.DIFF_UPDATE]={});delete l.inserted;c[EditorUi.DIFF_UPDATE][f]=l}};EditorUi.prototype.resolveOwnInsertedCells=function(b,e,f){if(null!=b)for(var c=0;c<b.length;c++){var l=b[c];null!=l&&(this.adoptParentCell(l.id,null,e,f),this.adoptTerminalCell(l.id,l,e,!0,f),this.adoptTerminalCell(l.id,l,e,!1,f))}};
EditorUi.prototype.resolveOwnUpdatedCells=function(b,e,f,c){if(null!=b)for(var l in b){var p=e[l];null!=p?(c.inserted[l]||(c.cells[EditorUi.DIFF_INSERT].push(p),c.inserted[l]=!0),c.cells[EditorUi.DIFF_UPDATE][l]=b[l]):null!=f&&(p=f[l],null!=p&&(this.adoptParentCell(l,p,e,c),this.adoptTerminalCell(l,p,e,!0,c,l),this.adoptTerminalCell(l,p,e,!1,c,l)))}};
EditorUi.prototype.adoptParentCell=function(b,e,f,c){var l=f[b],p=null!=e?e.parent:null!=l?l.parent:null;null!=p&&this.adoptParentCell(p,null,f,c);null!=l?c.inserted[b]||(c.cells[EditorUi.DIFF_INSERT].push(l),c.inserted[b]=!0):null!=e&&(null==c.cells[EditorUi.DIFF_UPDATE][b]&&(c.cells[EditorUi.DIFF_UPDATE][b]={}),c.cells[EditorUi.DIFF_UPDATE][b]=e)};
@@ -13595,39 +13639,39 @@ DrawioFileSync.prototype.receiveRemoteChanges=function(b){this.file.ignorePatche
e=c}}this.receivedData=null}),this.syncReceiveMessageDelay)):this.receivedData.push(b))};
DrawioFileSync.prototype.scheduleCleanup=function(b){var e=Math.min(15,Math.floor(this.file.getSize()/5E6));e=0==b?0:this.cleanupDelay+1E3*e;var f=this.cleanupThread;if(1!=b||null!=this.cleanupThread)window.clearTimeout(this.cleanupThread),this.cleanupThread=window.setTimeout(mxUtils.bind(this,function(){this.cleanup(null,mxUtils.bind(this,function(c){this.file.handleFileError(c)}))}),e);EditorUi.debug("DrawioFileSync.scheduleCleanup",[this],"lazy",b,"delay",e,"prev",f,"thread",this.cleanupThread)};
DrawioFileSync.prototype.cleanup=function(b,e,f){var c=this.cleanupThread;window.clearTimeout(this.cleanupThread);this.cleanupThread=null;if(this.isValidState()&&!this.file.inConflictState&&this.file.isRealtime()&&!this.file.isModified()){var l=[this.ui.diffPages(this.ui.pages,this.file.ownPages)];this.file.theirPages=this.ui.clonePages(this.file.ownPages);"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.cleanup",[this],"thread",c,"patches",l,"checkFile",f,"checksum",this.ui.getHashValueForPages(this.ui.pages));
-this.file.ignorePatches(l)||this.file.patch(l);f?this.file.getLatestVersion(mxUtils.bind(this,function(p){try{if(this.isValidState()&&!this.file.inConflictState&&this.file.isRealtime()){var q=p.getShadowPages();l=[this.ui.diffPages(this.ui.pages,q),this.ui.diffPages(q,this.file.ownPages)];this.file.ignorePatches(l)||this.file.patch(l);EditorUi.debug("DrawioFileSync.cleanup",[this],"newFile",p,"patches",l)}null!=b&&b()}catch(v){null!=e&&e(v)}}),e):(document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||
+this.file.ignorePatches(l)||this.file.patch(l);f?this.file.getLatestVersion(mxUtils.bind(this,function(p){try{if(this.isValidState()&&!this.file.inConflictState&&this.file.isRealtime()){var v=p.getShadowPages();l=[this.ui.diffPages(this.ui.pages,v),this.ui.diffPages(v,this.file.ownPages)];this.file.ignorePatches(l)||this.file.patch(l);EditorUi.debug("DrawioFileSync.cleanup",[this],"newFile",p,"patches",l)}null!=b&&b()}catch(t){null!=e&&e(t)}}),e):(document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||
this.testChecksum(),null!=b&&b())}else null!=b&&(b(),EditorUi.debug("DrawioFileSync.cleanup",[this],"checkFile",f,"modified",this.file.isModified()))};
DrawioFileSync.prototype.testChecksum=function(){var b=this.ui.getHashValueForPages(this.ui.pages),e=this.file.getCurrentRevisionId();this.file.getLatestVersion(mxUtils.bind(this,function(f){if(!document.hidden){var c=this.ui.getHashValueForPages(f.getShadowPages()),l=f.getDescriptorChecksum(f.getDescriptor()),p=f.getCurrentRevisionId();EditorUi.debug("DrawioFileSync.testChecksum","local",[this.file],"modified",this.file.isModified(),"inConflictState",this.file.inConflictState,"autosaveThread",this.file.autosaveThread,
"savingFile",this.file.savingFile,"localFileWasChanged",this.localFileWasChanged,"remoteFileChanged",this.remoteFileChanged,"cleanup",this.cleanupThread,"checksum",b);EditorUi.debug("DrawioFileSync.testChecksum","remote",[f],"rev",p==e,"desc",l==c,"checksum",c);c!=b?(EditorUi.debug("DrawioFileSync.testChecksum",[this],"checksums do not match"),this.ui.alert("Checksums do not match")):EditorUi.debug("DrawioFileSync.testChecksum",[this],"checksums match")}}),mxUtils.bind(this,function(f){EditorUi.debug("DrawioFileSync.testChecksum",
[this],"checksum test error",f)}))};DrawioFileSync.prototype.extractLocal=function(b){return mxUtils.isEmptyObject(b)?{}:this.ui.diffPages(this.file.theirPages,this.ui.patchPages(this.ui.clonePages(this.file.theirPages),b))};
DrawioFileSync.prototype.extractRemove=function(b){var e={};null!=b[EditorUi.DIFF_REMOVE]&&(e[EditorUi.DIFF_REMOVE]=b[EditorUi.DIFF_REMOVE]);if(null!=b[EditorUi.DIFF_UPDATE])for(var f in b[EditorUi.DIFF_UPDATE]){var c=b[EditorUi.DIFF_UPDATE][f];if(null!=c.cells&&null!=c.cells[EditorUi.DIFF_REMOVE]){null==e[EditorUi.DIFF_UPDATE]&&(e[EditorUi.DIFF_UPDATE]={});e[EditorUi.DIFF_UPDATE][f]={};var l=e[EditorUi.DIFF_UPDATE][f];l.cells={};l.cells[EditorUi.DIFF_REMOVE]=c.cells[EditorUi.DIFF_REMOVE]}}return e};
-DrawioFileSync.prototype.patchRealtime=function(b,e,f,c){var l=null;if(this.file.isRealtime()){l=this.extractRemove(this.ui.diffPages(this.file.getShadowPages(),this.ui.pages));var p=this.extractRemove(this.extractLocal(l)),q=(null==f?b:b.concat(f)).concat([p]);this.file.ownPages=this.ui.applyPatches(this.file.ownPages,q,!0,e);mxUtils.isEmptyObject(p)?this.scheduleCleanup(null!=c?!1:null):this.file.fileChanged(!1);EditorUi.debug("DrawioFileSync.patchRealtime",[this],"patches",b,"backup",e,"own",f,
-"all",l,"local",p,"applied",q,"immediate",c)}return l};DrawioFileSync.prototype.isRealtimeActive=function(){return this.ui.editor.autosave};
+DrawioFileSync.prototype.patchRealtime=function(b,e,f,c){var l=null;if(this.file.isRealtime()){l=this.extractRemove(this.ui.diffPages(this.file.getShadowPages(),this.ui.pages));var p=this.extractRemove(this.extractLocal(l)),v=(null==f?b:b.concat(f)).concat([p]);this.file.ownPages=this.ui.applyPatches(this.file.ownPages,v,!0,e);mxUtils.isEmptyObject(p)?this.scheduleCleanup(null!=c?!1:null):this.file.fileChanged(!1);EditorUi.debug("DrawioFileSync.patchRealtime",[this],"patches",b,"backup",e,"own",f,
+"all",l,"local",p,"applied",v,"immediate",c)}return l};DrawioFileSync.prototype.isRealtimeActive=function(){return this.ui.editor.autosave};
DrawioFileSync.prototype.sendLocalChanges=function(){try{if(this.file.isRealtime()&&this.localFileWasChanged){var b=this.ui.clonePages(this.ui.pages),e=this.ui.diffPages(this.snapshot,b);this.file.ownPages=this.ui.patchPages(this.file.ownPages,e,!0);this.snapshot=b;var f=this.ui.resolveCrossReferences(e,this.ui.diffPages(this.file.ownPages,this.ui.pages));this.file.ownPages=this.ui.patchPages(this.file.ownPages,f,!0);this.isRealtimeActive()&&this.doSendLocalChanges([f,e])}this.localFileWasChanged=
!1}catch(c){b=this.file.getCurrentUser(),b=null!=b?b.id:"unknown",EditorUi.logError("Error in sendLocalChanges",null,this.file.getMode()+"."+this.file.getId(),b,c)}};DrawioFileSync.prototype.doReceiveRemoteChanges=function(b){this.file.isRealtime()&&this.isRealtimeActive()&&(this.sendLocalChanges(),this.file.patch(b),this.file.theirPages=this.ui.applyPatches(this.file.theirPages,b),this.scheduleCleanup(),EditorUi.debug("DrawioFileSync.doReceiveRemoteChanges",[this],"changes",b))};
-DrawioFileSync.prototype.merge=function(b,e,f,c,l,p,q){try{this.file.stats.merged++;this.lastModified=new Date;var v=this.file.getDescriptorRevisionId(f);if(!this.file.ignorePatches(b)){this.sendLocalChanges();var D=this.ui.clonePages(this.file.getShadowPages()),G=this.file.isModified()&&!this.file.isRealtime()?this.ui.diffPages(D,this.ui.pages):null,B=this.file.isRealtime()?this.ui.diffPages(D,this.file.ownPages):null;D=this.ui.applyPatches(D,b);var d=null==e?null:this.ui.getHashValueForPages(D);
-EditorUi.debug("DrawioFileSync.merge",[this],"patches",b,"changes",G,"pending",B,"checksum",e,"current",d,"valid",e==d,"attempt",this.catchupRetryCount,"of",this.maxCatchupRetries,"from",this.file.getCurrentRevisionId(),"to",v,"etag",this.file.getDescriptorEtag(f),"immediate",q);if(null!=e&&e!=d){this.reload(mxUtils.bind(this,function(){null!=c&&c()}),mxUtils.bind(this,function(){null!=l&&l()}),p,null,q);return}this.file.setShadowPages(D);null==this.patchRealtime(b,null,B,q)&&this.file.patch(b,DrawioFile.LAST_WRITE_WINS?
-G:null)}this.file.invalidChecksum=!1;this.file.inConflictState=!1;this.file.patchDescriptor(this.file.getDescriptor(),f);null!=c&&c(!0)}catch(m){this.file.inConflictState=!0;this.file.invalidChecksum=!0;this.file.descriptorChanged();null!=l&&l(m);try{var g=this.file.getCurrentUser(),k=null!=g?g.id:"unknown";EditorUi.logError("Error in merge",null,this.file.getMode()+"."+this.file.getId(),k,m)}catch(t){}}};
-DrawioFileSync.prototype.fileChanged=function(b,e,f,c,l){var p=window.setTimeout(mxUtils.bind(this,function(){null!=f&&f()||(EditorUi.debug("DrawioFileSync.fileChanged",[this],"lazy",c,"immediate",l,"remoteFileChanged",this.remoteFileChanged,"valid",this.isValidState()),this.isValidState()?(this.remoteFileChanged=!1,this.file.loadPatchDescriptor(mxUtils.bind(this,function(q){null!=f&&f()||(this.isValidState()?this.catchup(q,b,e,f,l):null!=e&&e())}),e)):null!=e&&e())}),c?this.cacheReadyDelay:0);return this.notifyThread=
+DrawioFileSync.prototype.merge=function(b,e,f,c,l,p,v){try{this.file.stats.merged++;this.lastModified=new Date;var t=this.file.getDescriptorRevisionId(f);if(!this.file.ignorePatches(b)){this.sendLocalChanges();var E=this.ui.clonePages(this.file.getShadowPages()),H=this.file.isModified()&&!this.file.isRealtime()?this.ui.diffPages(E,this.ui.pages):null,B=this.file.isRealtime()?this.ui.diffPages(E,this.file.ownPages):null;E=this.ui.applyPatches(E,b);var d=null==e?null:this.ui.getHashValueForPages(E);
+EditorUi.debug("DrawioFileSync.merge",[this],"patches",b,"changes",H,"pending",B,"checksum",e,"current",d,"valid",e==d,"attempt",this.catchupRetryCount,"of",this.maxCatchupRetries,"from",this.file.getCurrentRevisionId(),"to",t,"etag",this.file.getDescriptorEtag(f),"immediate",v);if(null!=e&&e!=d){this.reload(mxUtils.bind(this,function(){null!=c&&c()}),mxUtils.bind(this,function(){null!=l&&l()}),p,null,v);return}this.file.setShadowPages(E);null==this.patchRealtime(b,null,B,v)&&this.file.patch(b,DrawioFile.LAST_WRITE_WINS?
+H:null)}this.file.invalidChecksum=!1;this.file.inConflictState=!1;this.file.patchDescriptor(this.file.getDescriptor(),f);null!=c&&c(!0)}catch(m){this.file.inConflictState=!0;this.file.invalidChecksum=!0;this.file.descriptorChanged();null!=l&&l(m);try{var g=this.file.getCurrentUser(),k=null!=g?g.id:"unknown";EditorUi.logError("Error in merge",null,this.file.getMode()+"."+this.file.getId(),k,m)}catch(u){}}};
+DrawioFileSync.prototype.fileChanged=function(b,e,f,c,l){var p=window.setTimeout(mxUtils.bind(this,function(){null!=f&&f()||(EditorUi.debug("DrawioFileSync.fileChanged",[this],"lazy",c,"immediate",l,"remoteFileChanged",this.remoteFileChanged,"valid",this.isValidState()),this.isValidState()?(this.remoteFileChanged=!1,this.file.loadPatchDescriptor(mxUtils.bind(this,function(v){null!=f&&f()||(this.isValidState()?this.catchup(v,b,e,f,l):null!=e&&e())}),e)):null!=e&&e())}),c?this.cacheReadyDelay:0);return this.notifyThread=
p};
DrawioFileSync.prototype.fastForward=function(b){this.file.patchDescriptor(this.file.getDescriptor(),b);this.file.setShadowPages(this.ui.clonePages(this.ui.pages));this.file.theirPages=this.ui.clonePages(this.ui.pages);var e=this.file.ownPages;this.file.ownPages=this.ui.clonePages(this.ui.pages);for(var f=0;f<this.file.ownPages.length;f++)null!=e[f]&&this.ui.getHashValueForPages([this.file.ownPages[f]])!=this.ui.getHashValueForPages([e[f]])&&(this.file.ownPages[f].needsUpdate=!0);e=this.cleanupThread;window.clearTimeout(this.cleanupThread);
this.cleanupThread=null;"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.fastForward",[this],"desc",[b],"cleanup",e,"checksum",this.ui.getHashValueForPages(this.ui.pages));document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||null!=this.cleanupThread||this.testChecksum()};
DrawioFileSync.prototype.reloadDescriptor=function(){this.file.loadDescriptor(mxUtils.bind(this,function(b){null!=b?(this.file.setDescriptorRevisionId(b,this.file.getCurrentRevisionId()),this.updateDescriptor(b),this.fileChangedNotify()):(this.file.inConflictState=!0,this.file.handleFileError())}),mxUtils.bind(this,function(b){this.file.inConflictState=!0;this.file.handleFileError(b)}))};
DrawioFileSync.prototype.updateDescriptor=function(b){this.file.setDescriptor(b);this.file.descriptorChanged();this.start()};
-DrawioFileSync.prototype.catchup=function(b,e,f,c,l){if(null!=b&&(null==c||!c())){var p=this.file.getCurrentRevisionId(),q=this.file.getDescriptorRevisionId(b);EditorUi.debug("DrawioFileSync.catchup",[this],"desc",[b],"from",p,"to",q,"immediate",l,"valid",this.isValidState());if(p==q)this.file.patchDescriptor(this.file.getDescriptor(),b),"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.catchup",[this],"up to date","cleanup",this.cleanupThread,"checksum",this.ui.getHashValueForPages(this.ui.pages)),
-document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||null!=this.cleanupThread||this.testChecksum(),null!=e&&e(!0);else if(this.isValidState()){var v=this.file.getDescriptorChecksum(b),D=this.file.getDescriptorSecret(b);if(null!=v&&v==this.ui.getHashValueForPages(this.ui.pages))this.fastForward(b),null!=e&&e(!0);else if(Editor.enableRealtimeCache&&null!=D&&"1"!=urlParams.lockdown){var G=0,B=!1,d=mxUtils.bind(this,function(){if(null==c||!c())if(p!=this.file.getCurrentRevisionId())null!=e&&
-e(!0);else if(this.isValidState()){this.scheduleCleanup(!0);var g=!0,k=window.setTimeout(mxUtils.bind(this,function(){g=!1;this.reload(e,f,c,null,l)}),this.ui.timeout);mxUtils.get(EditorUi.cacheUrl+"?id="+encodeURIComponent(this.channelId)+"&from="+encodeURIComponent(p)+"&to="+encodeURIComponent(q)+(null!=D?"&secret="+encodeURIComponent(D):""),mxUtils.bind(this,function(m){this.file.stats.bytesReceived+=m.getText().length;window.clearTimeout(k);if(g&&(null==c||!c()))if(p!=this.file.getCurrentRevisionId())null!=
-e&&e(!0);else if(this.isValidState()){var t=null,y=[];EditorUi.debug("DrawioFileSync.doCatchup",[this],"request",[m],"status",m.getStatus(),"cacheReadyRetryCount",G,"maxCacheReadyRetries",this.maxCacheReadyRetries);if(200<=m.getStatus()&&299>=m.getStatus()&&0<m.getText().length)try{var z=JSON.parse(m.getText());if(null!=z&&0<z.length)for(var I=0;I<z.length;I++){var F=this.stringToObject(z[I]);if(F.v>DrawioFileSync.PROTOCOL){B=!0;y=[];break}else if(F.v===DrawioFileSync.PROTOCOL&&null!=F.d)t=F.d.checksum,
-y.push(F.d.patch);else{B=!0;y=[];break}}EditorUi.debug("DrawioFileSync.doCatchup",[this],"response",[z],"status",B?"failed":"ok","temp",y,"checksum",t)}catch(C){y=[],null!=window.console&&"1"==urlParams.test&&console.log(C)}try{0<y.length?(this.file.stats.cacheHits++,this.merge(y,t,b,e,f,c,l)):G<=this.maxCacheReadyRetries-1&&!B&&401!=m.getStatus()&&503!=m.getStatus()&&410!=m.getStatus()?(G++,this.file.stats.cacheMiss++,window.setTimeout(d,(G+1)*this.cacheReadyDelay)):(this.file.stats.cacheFail++,
+DrawioFileSync.prototype.catchup=function(b,e,f,c,l){if(null!=b&&(null==c||!c())){var p=this.file.getCurrentRevisionId(),v=this.file.getDescriptorRevisionId(b);EditorUi.debug("DrawioFileSync.catchup",[this],"desc",[b],"from",p,"to",v,"immediate",l,"valid",this.isValidState());if(p==v)this.file.patchDescriptor(this.file.getDescriptor(),b),"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.catchup",[this],"up to date","cleanup",this.cleanupThread,"checksum",this.ui.getHashValueForPages(this.ui.pages)),
+document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||null!=this.cleanupThread||this.testChecksum(),null!=e&&e(!0);else if(this.isValidState()){var t=this.file.getDescriptorChecksum(b),E=this.file.getDescriptorSecret(b);if(null!=t&&t==this.ui.getHashValueForPages(this.ui.pages))this.fastForward(b),null!=e&&e(!0);else if(Editor.enableRealtimeCache&&null!=E&&"1"!=urlParams.lockdown){var H=0,B=!1,d=mxUtils.bind(this,function(){if(null==c||!c())if(p!=this.file.getCurrentRevisionId())null!=e&&
+e(!0);else if(this.isValidState()){this.scheduleCleanup(!0);var g=!0,k=window.setTimeout(mxUtils.bind(this,function(){g=!1;this.reload(e,f,c,null,l)}),this.ui.timeout);mxUtils.get(EditorUi.cacheUrl+"?id="+encodeURIComponent(this.channelId)+"&from="+encodeURIComponent(p)+"&to="+encodeURIComponent(v)+(null!=E?"&secret="+encodeURIComponent(E):""),mxUtils.bind(this,function(m){this.file.stats.bytesReceived+=m.getText().length;window.clearTimeout(k);if(g&&(null==c||!c()))if(p!=this.file.getCurrentRevisionId())null!=
+e&&e(!0);else if(this.isValidState()){var u=null,x=[];EditorUi.debug("DrawioFileSync.doCatchup",[this],"request",[m],"status",m.getStatus(),"cacheReadyRetryCount",H,"maxCacheReadyRetries",this.maxCacheReadyRetries);if(200<=m.getStatus()&&299>=m.getStatus()&&0<m.getText().length)try{var A=JSON.parse(m.getText());if(null!=A&&0<A.length)for(var I=0;I<A.length;I++){var F=this.stringToObject(A[I]);if(F.v>DrawioFileSync.PROTOCOL){B=!0;x=[];break}else if(F.v===DrawioFileSync.PROTOCOL&&null!=F.d)u=F.d.checksum,
+x.push(F.d.patch);else{B=!0;x=[];break}}EditorUi.debug("DrawioFileSync.doCatchup",[this],"response",[A],"status",B?"failed":"ok","temp",x,"checksum",u)}catch(C){x=[],null!=window.console&&"1"==urlParams.test&&console.log(C)}try{0<x.length?(this.file.stats.cacheHits++,this.merge(x,u,b,e,f,c,l)):H<=this.maxCacheReadyRetries-1&&!B&&401!=m.getStatus()&&503!=m.getStatus()&&410!=m.getStatus()?(H++,this.file.stats.cacheMiss++,window.setTimeout(d,(H+1)*this.cacheReadyDelay)):(this.file.stats.cacheFail++,
this.reload(e,f,c,null,l))}catch(C){null!=f&&f(C)}}else null!=f&&f()}),f)}else null!=f&&f()});window.setTimeout(d,this.cacheReadyDelay)}else this.reload(e,f,c,null,l)}else null!=f&&f()}};DrawioFileSync.prototype.reload=function(b,e,f,c,l){EditorUi.debug("DrawioFileSync.reload",[this],"immediate",l);this.file.updateFile(mxUtils.bind(this,function(){this.lastModified=this.file.getLastModifiedDate();this.updateStatus();this.start();null!=b&&b()}),mxUtils.bind(this,function(p){null!=e&&e(p)}),f,c,l)};
DrawioFileSync.prototype.descriptorChanged=function(b){this.lastModified=this.file.getLastModifiedDate();if(null!=this.channelId){var e=this.objectToString(this.createMessage({a:"desc",m:this.lastModified.getTime()})),f=this.file.getCurrentRevisionId(),c=this.objectToString({});mxUtils.post(EditorUi.cacheUrl,this.getIdParameters()+"&from="+encodeURIComponent(b)+"&to="+encodeURIComponent(f)+"&msg="+encodeURIComponent(e)+"&data="+encodeURIComponent(c));this.file.stats.bytesSent+=c.length;this.file.stats.msgSent++;
EditorUi.debug("DrawioFileSync.descriptorChanged",[this],"from",b,"to",f)}this.updateStatus()};DrawioFileSync.prototype.objectToString=function(b){b=Graph.compress(JSON.stringify(b));null!=this.key&&"undefined"!==typeof CryptoJS&&(b=CryptoJS.AES.encrypt(b,this.key).toString());return b};DrawioFileSync.prototype.stringToObject=function(b){null!=this.key&&"undefined"!==typeof CryptoJS&&(b=CryptoJS.AES.decrypt(b,this.key).toString(CryptoJS.enc.Utf8));return JSON.parse(Graph.decompress(b))};
DrawioFileSync.prototype.createToken=function(b,e,f){var c=!0,l=window.setTimeout(mxUtils.bind(this,function(){c=!1;f({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout);mxUtils.get(EditorUi.cacheUrl+"?id="+encodeURIComponent(this.channelId)+"&secret="+encodeURIComponent(b),mxUtils.bind(this,function(p){window.clearTimeout(l);c&&(200<=p.getStatus()&&299>=p.getStatus()?e(p.getText()):f({code:p.getStatus(),message:"Token Error "+p.getStatus()}))}),f)};
DrawioFileSync.prototype.fileSaving=function(){this.file.isOptimisticSync()&&this.notify(this.createMessage({m:Date.now(),type:"optimistic"}));EditorUi.debug("DrawioFileSync.fileSaving",[this],"optimistic",this.file.isOptimisticSync())};DrawioFileSync.prototype.fileDataUpdated=function(){this.scheduleCleanup(!0);EditorUi.debug("DrawioFileSync.fileDataUpdated",[this])};
-DrawioFileSync.prototype.fileSaved=function(b,e,f,c,l,p){this.lastModified=this.file.getLastModifiedDate();this.resetUpdateStatusThread();this.catchupRetryCount=0;if(!this.ui.isOffline(!0)&&!this.file.inConflictState&&!this.file.redirectDialogShowing&&(this.start(),null!=this.channelId)){var q=this.file.getDescriptorSecret(this.file.getDescriptor()),v=this.createMessage({m:this.lastModified.getTime()}),D=this.file.getDescriptorRevisionId(e),G=this.file.getCurrentRevisionId();if(null!=q&&null!=l&&
+DrawioFileSync.prototype.fileSaved=function(b,e,f,c,l,p){this.lastModified=this.file.getLastModifiedDate();this.resetUpdateStatusThread();this.catchupRetryCount=0;if(!this.ui.isOffline(!0)&&!this.file.inConflictState&&!this.file.redirectDialogShowing&&(this.start(),null!=this.channelId)){var v=this.file.getDescriptorSecret(this.file.getDescriptor()),t=this.createMessage({m:this.lastModified.getTime()}),E=this.file.getDescriptorRevisionId(e),H=this.file.getCurrentRevisionId();if(null!=v&&null!=l&&
"1"!=urlParams.lockdown&&Editor.enableRealtimeCache){var B=this.ui.diffPages(this.file.getShadowPages(),b);e=this.file.getDescriptorSecret(e);p=null!=p?p:this.ui.getHashValueForPages(b);var d=this.objectToString(this.createMessage({patch:B,checksum:p}));this.file.stats.bytesSent+=d.length;this.file.stats.msgSent++;var g=!0,k=window.setTimeout(mxUtils.bind(this,function(){g=!1;c({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout);mxUtils.post(EditorUi.cacheUrl,this.getIdParameters()+
-"&from="+encodeURIComponent(D)+"&to="+encodeURIComponent(G)+(Editor.p2pSyncNotify?"":"&msg="+encodeURIComponent(this.objectToString(v)))+(null!=q?"&secret="+encodeURIComponent(q):"")+(null!=e?"&last-secret="+encodeURIComponent(e):"")+(d.length<this.maxCacheEntrySize?"&data="+encodeURIComponent(d):"")+(null!=l?"&token="+encodeURIComponent(l):""),mxUtils.bind(this,function(m){window.clearTimeout(k);g&&(200<=m.getStatus()&&299>=m.getStatus()?(Editor.p2pSyncNotify&&this.notify(v),null!=f&&f()):c({message:mxResources.get("realtimeCollaboration")+
-(0!=m.getStatus()?": "+m.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",D,"to",G,"etag",this.file.getCurrentEtag(),"diff",B,d.length,"bytes","msg",v,"checksum",p)}else this.notify(v),null!=f&&f(),EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",D,"to",G,"etag",this.file.getCurrentEtag())}this.file.setShadowPages(b);this.scheduleCleanup()};
+"&from="+encodeURIComponent(E)+"&to="+encodeURIComponent(H)+(Editor.p2pSyncNotify?"":"&msg="+encodeURIComponent(this.objectToString(t)))+(null!=v?"&secret="+encodeURIComponent(v):"")+(null!=e?"&last-secret="+encodeURIComponent(e):"")+(d.length<this.maxCacheEntrySize?"&data="+encodeURIComponent(d):"")+(null!=l?"&token="+encodeURIComponent(l):""),mxUtils.bind(this,function(m){window.clearTimeout(k);g&&(200<=m.getStatus()&&299>=m.getStatus()?(Editor.p2pSyncNotify&&this.notify(t),null!=f&&f()):c({message:mxResources.get("realtimeCollaboration")+
+(0!=m.getStatus()?": "+m.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",E,"to",H,"etag",this.file.getCurrentEtag(),"diff",B,d.length,"bytes","msg",t,"checksum",p)}else this.notify(t),null!=f&&f(),EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",E,"to",H,"etag",this.file.getCurrentEtag())}this.file.setShadowPages(b);this.scheduleCleanup()};
DrawioFileSync.prototype.getIdParameters=function(){var b="id="+this.channelId;null!=this.pusher&&null!=this.pusher.connection&&null!=this.pusher.connection.socket_id&&(b+="&sid="+this.pusher.connection.socket_id);return b};DrawioFileSync.prototype.createMessage=function(b){return{v:DrawioFileSync.PROTOCOL,d:b,c:this.clientId}};
DrawioFileSync.prototype.fileConflict=function(b,e,f){this.catchupRetryCount++;EditorUi.debug("DrawioFileSync.fileConflict",[this],"desc",[b],"catchupRetryCount",this.catchupRetryCount,"maxCatchupRetries",this.maxCatchupRetries);this.catchupRetryCount<this.maxCatchupRetries?(this.file.stats.conflicts++,null!=b?this.catchup(b,e,f):this.fileChanged(e,f)):(this.file.stats.timeouts++,this.catchupRetryCount=0,null!=f&&f({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")}))};
DrawioFileSync.prototype.stop=function(){null!=this.pusher?(null!=this.pusher.connection&&(this.pusher.connection.unbind("state_change",this.connectionListener),this.pusher.connection.unbind("error",this.pusherErrorListener)),null!=this.channel&&(this.channel.unbind("changed",this.changeListener),this.channel=null),this.pusher.disconnect(),this.pusher=null,null!=this.p2pCollab&&(this.p2pCollab.destroy(),this.p2pCollab=null),EditorUi.debug("DrawioFileSync.stop",[this])):null!=this.polling&&(this.polling.stop(),
@@ -13639,29 +13683,29 @@ Graph.prototype.defaultThemes.darkTheme=Graph.prototype.defaultThemes["default-s
mxAsyncCanvas.prototype.decWaitCounter=function(){this.waitCounter--;0==this.waitCounter&&null!=this.onComplete&&(this.onComplete(),this.onComplete=null)};mxAsyncCanvas.prototype.updateFont=function(){var b="";(this.state.fontStyle&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(b+="bold ");(this.state.fontStyle&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&(b+="italic ");this.ctx.font=b+this.state.fontSize+"px "+this.state.fontFamily};mxAsyncCanvas.prototype.rotate=function(b,e,f,c,l){};
mxAsyncCanvas.prototype.setAlpha=function(b){this.state.alpha=b};mxAsyncCanvas.prototype.setFontColor=function(b){this.state.fontColor=b};mxAsyncCanvas.prototype.setFontBackgroundColor=function(b){b==mxConstants.NONE&&(b=null);this.state.fontBackgroundColor=b};mxAsyncCanvas.prototype.setFontBorderColor=function(b){b==mxConstants.NONE&&(b=null);this.state.fontBorderColor=b};mxAsyncCanvas.prototype.setFontSize=function(b){this.state.fontSize=b};
mxAsyncCanvas.prototype.setFontFamily=function(b){this.state.fontFamily=b};mxAsyncCanvas.prototype.setFontStyle=function(b){this.state.fontStyle=b};mxAsyncCanvas.prototype.rect=function(b,e,f,c){};mxAsyncCanvas.prototype.roundrect=function(b,e,f,c,l,p){};mxAsyncCanvas.prototype.ellipse=function(b,e,f,c){};mxAsyncCanvas.prototype.rewriteImageSource=function(b){if("http://"==b.substring(0,7)||"https://"==b.substring(0,8))b="/proxy?url="+encodeURIComponent(b);return b};
-mxAsyncCanvas.prototype.image=function(b,e,f,c,l,p,q,v){l=this.rewriteImageSource(l);b=this.htmlCanvas.images[l];null==b&&(b=new Image,b.onload=mxUtils.bind(this,function(){this.decWaitCounter()}),b.onerror=mxUtils.bind(this,function(){this.decWaitCounter()}),this.incWaitCounter(),this.htmlCanvas.images[l]=b,b.src=l)};mxAsyncCanvas.prototype.fill=function(){};mxAsyncCanvas.prototype.stroke=function(){};mxAsyncCanvas.prototype.fillAndStroke=function(){};
-mxAsyncCanvas.prototype.text=function(b,e,f,c,l,p,q,v,D,G,B,d){if(null!=l&&0!=l.length&&(b=this.state.scale,"html"==D&&"function"===typeof html2canvas)){this.incWaitCounter();var g=this.canvasIndex++;html2canvas(l,{onrendered:mxUtils.bind(this,function(k){this.htmlCanvas.subCanvas[g]=k;this.decWaitCounter()}),scale:b,logging:!0})}};mxAsyncCanvas.prototype.finish=function(b){0==this.waitCounter?b():this.onComplete=b};function mxJsCanvas(b){mxAbstractCanvas2D.call(this);this.ctx=b.getContext("2d");this.ctx.textBaseline="top";this.ctx.fillStyle="rgba(255,255,255,0)";this.ctx.strokeStyle="rgba(0, 0, 0, 0)";this.M_RAD_PER_DEG=Math.PI/180;this.images=null==this.images?[]:this.images;this.subCanvas=null==this.subCanvas?[]:this.subCanvas}mxUtils.extend(mxJsCanvas,mxAbstractCanvas2D);mxJsCanvas.prototype.ctx=null;mxJsCanvas.prototype.waitCounter=0;mxJsCanvas.prototype.onComplete=null;mxJsCanvas.prototype.images=null;
+mxAsyncCanvas.prototype.image=function(b,e,f,c,l,p,v,t){l=this.rewriteImageSource(l);b=this.htmlCanvas.images[l];null==b&&(b=new Image,b.onload=mxUtils.bind(this,function(){this.decWaitCounter()}),b.onerror=mxUtils.bind(this,function(){this.decWaitCounter()}),this.incWaitCounter(),this.htmlCanvas.images[l]=b,b.src=l)};mxAsyncCanvas.prototype.fill=function(){};mxAsyncCanvas.prototype.stroke=function(){};mxAsyncCanvas.prototype.fillAndStroke=function(){};
+mxAsyncCanvas.prototype.text=function(b,e,f,c,l,p,v,t,E,H,B,d){if(null!=l&&0!=l.length&&(b=this.state.scale,"html"==E&&"function"===typeof html2canvas)){this.incWaitCounter();var g=this.canvasIndex++;html2canvas(l,{onrendered:mxUtils.bind(this,function(k){this.htmlCanvas.subCanvas[g]=k;this.decWaitCounter()}),scale:b,logging:!0})}};mxAsyncCanvas.prototype.finish=function(b){0==this.waitCounter?b():this.onComplete=b};function mxJsCanvas(b){mxAbstractCanvas2D.call(this);this.ctx=b.getContext("2d");this.ctx.textBaseline="top";this.ctx.fillStyle="rgba(255,255,255,0)";this.ctx.strokeStyle="rgba(0, 0, 0, 0)";this.M_RAD_PER_DEG=Math.PI/180;this.images=null==this.images?[]:this.images;this.subCanvas=null==this.subCanvas?[]:this.subCanvas}mxUtils.extend(mxJsCanvas,mxAbstractCanvas2D);mxJsCanvas.prototype.ctx=null;mxJsCanvas.prototype.waitCounter=0;mxJsCanvas.prototype.onComplete=null;mxJsCanvas.prototype.images=null;
mxJsCanvas.prototype.subCanvas=null;mxJsCanvas.prototype.canvasIndex=0;mxJsCanvas.prototype.hexToRgb=function(b){b=b.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,function(e,f,c,l){return f+f+c+c+l+l});return(b=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(b))?{r:parseInt(b[1],16),g:parseInt(b[2],16),b:parseInt(b[3],16)}:null};mxJsCanvas.prototype.incWaitCounter=function(){this.waitCounter++};
mxJsCanvas.prototype.decWaitCounter=function(){this.waitCounter--;0==this.waitCounter&&null!=this.onComplete&&(this.onComplete(),this.onComplete=null)};mxJsCanvas.prototype.updateFont=function(){var b="";(this.state.fontStyle&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(b+="bold ");(this.state.fontStyle&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&(b+="italic ");this.ctx.font=b+this.state.fontSize+"px "+this.state.fontFamily};
mxJsCanvas.prototype.save=function(){this.states.push(this.state);this.state=mxUtils.clone(this.state);this.ctx.save()};mxJsCanvas.prototype.restore=function(){this.state=this.states.pop();this.ctx.restore()};mxJsCanvas.prototype.scale=function(b){this.state.scale*=b;this.state.strokeWidth*=b;this.ctx.scale(b,b)};mxJsCanvas.prototype.translate=function(b,e){this.state.dx+=b;this.state.dy+=e;this.ctx.translate(b,e)};
mxJsCanvas.prototype.rotate=function(b,e,f,c,l){c-=this.state.dx;l-=this.state.dy;this.ctx.translate(c,l);(e||f)&&this.ctx.scale(e?-1:1,f?-1:1);this.ctx.rotate(b*this.M_RAD_PER_DEG);this.ctx.translate(-c,-l)};mxJsCanvas.prototype.setAlpha=function(b){this.state.alpha=b;this.ctx.globalAlpha=b};mxJsCanvas.prototype.setFillColor=function(b){b==mxConstants.NONE&&(b=null);this.state.fillColor=b;this.state.gradientColor=null;this.ctx.fillStyle=b};
-mxJsCanvas.prototype.setGradient=function(b,e,f,c,l,p,q,v,D){f=this.ctx.createLinearGradient(0,c,0,c+p);c=this.state;c.fillColor=b;c.fillAlpha=null!=v?v:1;c.gradientColor=e;c.gradientAlpha=null!=D?D:1;c.gradientDirection=q;b=this.hexToRgb(b);e=this.hexToRgb(e);null!=b&&f.addColorStop(0,"rgba("+b.r+","+b.g+","+b.b+","+c.fillAlpha+")");null!=e&&f.addColorStop(1,"rgba("+e.r+","+e.g+","+e.b+","+c.gradientAlpha+")");this.ctx.fillStyle=f};
+mxJsCanvas.prototype.setGradient=function(b,e,f,c,l,p,v,t,E){f=this.ctx.createLinearGradient(0,c,0,c+p);c=this.state;c.fillColor=b;c.fillAlpha=null!=t?t:1;c.gradientColor=e;c.gradientAlpha=null!=E?E:1;c.gradientDirection=v;b=this.hexToRgb(b);e=this.hexToRgb(e);null!=b&&f.addColorStop(0,"rgba("+b.r+","+b.g+","+b.b+","+c.fillAlpha+")");null!=e&&f.addColorStop(1,"rgba("+e.r+","+e.g+","+e.b+","+c.gradientAlpha+")");this.ctx.fillStyle=f};
mxJsCanvas.prototype.setStrokeColor=function(b){null!=b&&(b==mxConstants.NONE?(this.state.strokeColor=null,this.ctx.strokeStyle="rgba(0, 0, 0, 0)"):(this.ctx.strokeStyle=b,this.state.strokeColor=b))};mxJsCanvas.prototype.setStrokeWidth=function(b){this.ctx.lineWidth=b};mxJsCanvas.prototype.setDashed=function(b){if(this.state.dashed=b){b=this.state.dashPattern.split(" ");for(var e=0;e<b.length;e++)b[e]=parseInt(b[e],10);this.setLineDash(b)}else this.setLineDash([0])};
mxJsCanvas.prototype.setLineDash=function(b){try{"function"===typeof this.ctx.setLineDash&&this.ctx.setLineDash(b)}catch(e){}};mxJsCanvas.prototype.setDashPattern=function(b){this.state.dashPattern=b;if(this.state.dashed){b=b.split(" ");for(var e=0;e<b.length;e++)b[e]=parseInt(b[e],10);this.ctx.setLineDash(b)}};mxJsCanvas.prototype.setLineCap=function(b){this.ctx.lineCap=b};mxJsCanvas.prototype.setLineJoin=function(b){this.ctx.lineJoin=b};
mxJsCanvas.prototype.setMiterLimit=function(b){this.ctx.lineJoin=b};mxJsCanvas.prototype.setFontColor=function(b){this.ctx.fillStyle=b};mxJsCanvas.prototype.setFontBackgroundColor=function(b){b==mxConstants.NONE&&(b=null);this.state.fontBackgroundColor=b};mxJsCanvas.prototype.setFontBorderColor=function(b){b==mxConstants.NONE&&(b=null);this.state.fontBorderColor=b};mxJsCanvas.prototype.setFontSize=function(b){this.state.fontSize=b};
mxJsCanvas.prototype.setFontFamily=function(b){this.state.fontFamily=b};mxJsCanvas.prototype.setFontStyle=function(b){this.state.fontStyle=b};mxJsCanvas.prototype.setShadow=function(b){(this.state.shadow=b)?(this.setShadowOffset(this.state.shadowDx,this.state.shadowDy),this.setShadowAlpha(this.state.shadowAlpha)):(this.ctx.shadowColor="transparent",this.ctx.shadowBlur=0,this.ctx.shadowOffsetX=0,this.ctx.shadowOffsetY=0)};
mxJsCanvas.prototype.setShadowColor=function(b){if(null==b||b==mxConstants.NONE)b=null,this.ctx.shadowColor="transparent";this.state.shadowColor=b;if(this.state.shadow&&null!=b){var e=null!=this.state.shadowAlpha?this.state.shadowAlpha:1;b=this.hexToRgb(b);this.ctx.shadowColor="rgba("+b.r+","+b.g+","+b.b+","+e+")"}};mxJsCanvas.prototype.setShadowAlpha=function(b){this.state.shadowAlpha=b;this.setShadowColor(this.state.shadowColor)};
mxJsCanvas.prototype.setShadowOffset=function(b,e){this.state.shadowDx=b;this.state.shadowDy=e;this.state.shadow&&(this.ctx.shadowOffsetX=b,this.ctx.shadowOffsetY=e)};mxJsCanvas.prototype.moveTo=function(b,e){this.ctx.moveTo(b,e);this.lastMoveX=b;this.lastMoveY=e};mxJsCanvas.prototype.lineTo=function(b,e){this.ctx.lineTo(b,e);this.lastMoveX=b;this.lastMoveY=e};mxJsCanvas.prototype.quadTo=function(b,e,f,c){this.ctx.quadraticCurveTo(b,e,f,c);this.lastMoveX=f;this.lastMoveY=c};
-mxJsCanvas.prototype.arcTo=function(b,e,f,c,l,p,q){b=mxUtils.arcToCurves(this.lastMoveX,this.lastMoveY,b,e,f,c,l,p,q);if(null!=b)for(e=0;e<b.length;e+=6)this.curveTo(b[e],b[e+1],b[e+2],b[e+3],b[e+4],b[e+5])};mxJsCanvas.prototype.curveTo=function(b,e,f,c,l,p){this.ctx.bezierCurveTo(b,e,f,c,l,p);this.lastMoveX=l;this.lastMoveY=p};mxJsCanvas.prototype.rect=function(b,e,f,c){this.begin();this.moveTo(b,e);this.lineTo(b+f,e);this.lineTo(b+f,e+c);this.lineTo(b,e+c);this.close()};
+mxJsCanvas.prototype.arcTo=function(b,e,f,c,l,p,v){b=mxUtils.arcToCurves(this.lastMoveX,this.lastMoveY,b,e,f,c,l,p,v);if(null!=b)for(e=0;e<b.length;e+=6)this.curveTo(b[e],b[e+1],b[e+2],b[e+3],b[e+4],b[e+5])};mxJsCanvas.prototype.curveTo=function(b,e,f,c,l,p){this.ctx.bezierCurveTo(b,e,f,c,l,p);this.lastMoveX=l;this.lastMoveY=p};mxJsCanvas.prototype.rect=function(b,e,f,c){this.begin();this.moveTo(b,e);this.lineTo(b+f,e);this.lineTo(b+f,e+c);this.lineTo(b,e+c);this.close()};
mxJsCanvas.prototype.roundrect=function(b,e,f,c,l,p){this.begin();this.moveTo(b+l,e);this.lineTo(b+f-l,e);this.quadTo(b+f,e,b+f,e+p);this.lineTo(b+f,e+c-p);this.quadTo(b+f,e+c,b+f-l,e+c);this.lineTo(b+l,e+c);this.quadTo(b,e+c,b,e+c-p);this.lineTo(b,e+p);this.quadTo(b,e,b+l,e)};mxJsCanvas.prototype.ellipse=function(b,e,f,c){this.ctx.save();this.ctx.translate(b+f/2,e+c/2);this.ctx.scale(f/2,c/2);this.ctx.beginPath();this.ctx.arc(0,0,1,0,2*Math.PI,!1);this.ctx.restore()};
mxJsCanvas.prototype.rewriteImageSource=function(b){if("http://"==b.substring(0,7)||"https://"==b.substring(0,8))b="/proxy?url="+encodeURIComponent(b);return b};
-mxJsCanvas.prototype.image=function(b,e,f,c,l,p,q,v){l=this.rewriteImageSource(l);l=this.images[l];if(null!=l&&0<l.height&&0<l.width){var D=this.ctx;D.save();if(p){p=l.width;var G=l.height,B=Math.min(f/p,c/G);b+=(f-p*B)/2;e+=(c-G*B)/2;f=p*B;c=G*B}q&&(D.translate(2*b+f,0),D.scale(-1,1));v&&(D.translate(0,2*e+c),D.scale(1,-1));D.drawImage(l,b,e,f,c);D.restore()}};mxJsCanvas.prototype.begin=function(){this.ctx.beginPath()};mxJsCanvas.prototype.close=function(){this.ctx.closePath()};
+mxJsCanvas.prototype.image=function(b,e,f,c,l,p,v,t){l=this.rewriteImageSource(l);l=this.images[l];if(null!=l&&0<l.height&&0<l.width){var E=this.ctx;E.save();if(p){p=l.width;var H=l.height,B=Math.min(f/p,c/H);b+=(f-p*B)/2;e+=(c-H*B)/2;f=p*B;c=H*B}v&&(E.translate(2*b+f,0),E.scale(-1,1));t&&(E.translate(0,2*e+c),E.scale(1,-1));E.drawImage(l,b,e,f,c);E.restore()}};mxJsCanvas.prototype.begin=function(){this.ctx.beginPath()};mxJsCanvas.prototype.close=function(){this.ctx.closePath()};
mxJsCanvas.prototype.fill=function(){this.ctx.fill()};mxJsCanvas.prototype.stroke=function(){this.ctx.stroke()};mxJsCanvas.prototype.fillAndStroke=function(){if(this.state.shadow){this.ctx.stroke();this.ctx.fill();var b=this.ctx.shadowColor,e=this.ctx.shadowOffsetX,f=this.ctx.shadowOffsetY;this.ctx.shadowColor="transparent";this.ctx.shadowOffsetX=0;this.ctx.shadowOffsetY=0;this.ctx.stroke();this.ctx.shadowColor=b;this.ctx.shadowOffsetX=e;this.ctx.shadowOffsetY=f}else this.ctx.fill(),this.ctx.stroke()};
-mxJsCanvas.prototype.text=function(b,e,f,c,l,p,q,v,D,G,B,d){if(null!=l&&0!=l.length){f=this.state.scale;0!=d&&(this.ctx.translate(Math.round(b),Math.round(e)),this.ctx.rotate(d*Math.PI/180),this.ctx.translate(Math.round(-b),Math.round(-e)));if("html"==D){l=this.subCanvas[this.canvasIndex++];D=l.height;d=l.width;switch(q){case mxConstants.ALIGN_MIDDLE:e-=D/2/f;break;case mxConstants.ALIGN_BOTTOM:e-=D/f}switch(p){case mxConstants.ALIGN_CENTER:b-=d/2/f;break;case mxConstants.ALIGN_RIGHT:b-=d/f}this.ctx.save();
+mxJsCanvas.prototype.text=function(b,e,f,c,l,p,v,t,E,H,B,d){if(null!=l&&0!=l.length){f=this.state.scale;0!=d&&(this.ctx.translate(Math.round(b),Math.round(e)),this.ctx.rotate(d*Math.PI/180),this.ctx.translate(Math.round(-b),Math.round(-e)));if("html"==E){l=this.subCanvas[this.canvasIndex++];E=l.height;d=l.width;switch(v){case mxConstants.ALIGN_MIDDLE:e-=E/2/f;break;case mxConstants.ALIGN_BOTTOM:e-=E/f}switch(p){case mxConstants.ALIGN_CENTER:b-=d/2/f;break;case mxConstants.ALIGN_RIGHT:b-=d/f}this.ctx.save();
if(null!=this.state.fontBackgroundColor||null!=this.state.fontBorderColor)null!=this.state.fontBackgroundColor&&(this.ctx.fillStyle=this.state.fontBackgroundColor,this.ctx.fillRect(Math.round(b)-.5,Math.round(e)-.5,Math.round(l.width/f),Math.round(l.height/f))),null!=this.state.fontBorderColor&&(this.ctx.strokeStyle=this.state.fontBorderColor,this.ctx.lineWidth=1,this.ctx.strokeRect(Math.round(b)-.5,Math.round(e)-.5,Math.round(l.width/f),Math.round(l.height/f)));this.ctx.scale(1/f,1/f);this.ctx.drawImage(l,
-Math.round(b*f),Math.round(e*f))}else{this.ctx.save();this.updateFont();d=document.createElement("div");d.innerHTML=l;d.style.position="absolute";d.style.top="-9999px";d.style.left="-9999px";d.style.fontFamily=this.state.fontFamily;d.style.fontWeight="bold";d.style.fontSize=this.state.fontSize+"pt";document.body.appendChild(d);D=[d.offsetWidth,d.offsetHeight];document.body.removeChild(d);l=l.split("\n");d=D[1];this.ctx.textBaseline="top";D=e;switch(q){case mxConstants.ALIGN_MIDDLE:this.ctx.textBaseline=
-"middle";e-=(l.length-1)*d/2;D=e-this.state.fontSize/2;break;case mxConstants.ALIGN_BOTTOM:this.ctx.textBaseline="alphabetic",e-=d*(l.length-1),D=e-this.state.fontSize}q=[];d=[];for(f=0;f<l.length;f++)d[f]=b,q[f]=this.ctx.measureText(l[f]).width,null!=p&&p!=mxConstants.ALIGN_LEFT&&(d[f]-=q[f],p==mxConstants.ALIGN_CENTER&&(d[f]+=q[f]/2));if(null!=this.state.fontBackgroundColor||null!=this.state.fontBorderColor){b=d[0];p=q[0];for(f=1;f<l.length;f++)b=Math.min(b,d[f]),p=Math.max(p,q[f]);this.ctx.save();
-b=Math.round(b)-.5;D=Math.round(D)-.5;null!=this.state.fontBackgroundColor&&(this.ctx.fillStyle=this.state.fontBackgroundColor,this.ctx.fillRect(b,D,p,this.state.fontSize*mxConstants.LINE_HEIGHT*l.length));null!=this.state.fontBorderColor&&(this.ctx.strokeStyle=this.state.fontBorderColor,this.ctx.lineWidth=1,this.ctx.strokeRect(b,D,p,this.state.fontSize*mxConstants.LINE_HEIGHT*l.length));this.ctx.restore()}for(f=0;f<l.length;f++)this.ctx.fillText(l[f],d[f],e),e+=this.state.fontSize*mxConstants.LINE_HEIGHT}this.ctx.restore()}};
+Math.round(b*f),Math.round(e*f))}else{this.ctx.save();this.updateFont();d=document.createElement("div");d.innerHTML=l;d.style.position="absolute";d.style.top="-9999px";d.style.left="-9999px";d.style.fontFamily=this.state.fontFamily;d.style.fontWeight="bold";d.style.fontSize=this.state.fontSize+"pt";document.body.appendChild(d);E=[d.offsetWidth,d.offsetHeight];document.body.removeChild(d);l=l.split("\n");d=E[1];this.ctx.textBaseline="top";E=e;switch(v){case mxConstants.ALIGN_MIDDLE:this.ctx.textBaseline=
+"middle";e-=(l.length-1)*d/2;E=e-this.state.fontSize/2;break;case mxConstants.ALIGN_BOTTOM:this.ctx.textBaseline="alphabetic",e-=d*(l.length-1),E=e-this.state.fontSize}v=[];d=[];for(f=0;f<l.length;f++)d[f]=b,v[f]=this.ctx.measureText(l[f]).width,null!=p&&p!=mxConstants.ALIGN_LEFT&&(d[f]-=v[f],p==mxConstants.ALIGN_CENTER&&(d[f]+=v[f]/2));if(null!=this.state.fontBackgroundColor||null!=this.state.fontBorderColor){b=d[0];p=v[0];for(f=1;f<l.length;f++)b=Math.min(b,d[f]),p=Math.max(p,v[f]);this.ctx.save();
+b=Math.round(b)-.5;E=Math.round(E)-.5;null!=this.state.fontBackgroundColor&&(this.ctx.fillStyle=this.state.fontBackgroundColor,this.ctx.fillRect(b,E,p,this.state.fontSize*mxConstants.LINE_HEIGHT*l.length));null!=this.state.fontBorderColor&&(this.ctx.strokeStyle=this.state.fontBorderColor,this.ctx.lineWidth=1,this.ctx.strokeRect(b,E,p,this.state.fontSize*mxConstants.LINE_HEIGHT*l.length));this.ctx.restore()}for(f=0;f<l.length;f++)this.ctx.fillText(l[f],d[f],e),e+=this.state.fontSize*mxConstants.LINE_HEIGHT}this.ctx.restore()}};
mxJsCanvas.prototype.getCanvas=function(){return canvas};mxJsCanvas.prototype.finish=function(b){0==this.waitCounter?b():this.onComplete=b};DrawioClient=function(b,e){mxEventSource.call(this);this.ui=b;this.cookieName=e;this.token=this.getPersistentToken()};mxUtils.extend(DrawioClient,mxEventSource);DrawioClient.prototype.token=null;DrawioClient.prototype.user=null;DrawioClient.prototype.setUser=function(b){this.user=b;this.fireEvent(new mxEventObject("userChanged"))};DrawioClient.prototype.getUser=function(){return this.user};
DrawioClient.prototype.clearPersistentToken=function(){if(isLocalStorage)localStorage.removeItem("."+this.cookieName),sessionStorage.removeItem("."+this.cookieName);else if("undefined"!=typeof Storage){var b=new Date;b.setYear(b.getFullYear()-1);document.cookie=this.cookieName+"=; expires="+b.toUTCString()}};
DrawioClient.prototype.getPersistentToken=function(b){var e=null;isLocalStorage&&(e=localStorage.getItem("."+this.cookieName),null==e&&b&&(e=sessionStorage.getItem("."+this.cookieName)));if(null==e&&"undefined"!=typeof Storage){var f=document.cookie;b=this.cookieName+"=";var c=f.indexOf(b);0<=c&&(c+=b.length,e=f.indexOf(";",c),0>e?e=f.length:postCookie=f.substring(e),e=f.substring(c,e),e=0<e.length?e:null,null!=e&&isLocalStorage&&(f=new Date,f.setYear(f.getFullYear()-1),document.cookie=b+"; expires="+
@@ -13670,9 +13714,9 @@ DriveFile.prototype.isConflict=function(b){return null!=b&&null!=b.error&&412==b
DriveFile.prototype.getFolderUrl=function(){return null!=this.desc.labels&&this.desc.labels.trashed?"https://drive.google.com/drive/trash":null!=this.desc.parents&&0<this.desc.parents.length?"https://drive.google.com/drive/folders/"+this.desc.parents[0].id:null};
DriveFile.prototype.getPublicUrl=function(b){this.ui.drive.executeRequest({url:"/files/"+this.desc.id+"/permissions?supportsAllDrives=true"},mxUtils.bind(this,function(e){if(null!=e&&null!=e.items)for(var f=0;f<e.items.length;f++)if("anyoneWithLink"===e.items[f].id||"anyone"===e.items[f].id){b(this.desc.webContentLink);return}b(null)}),mxUtils.bind(this,function(){b(null)}))};DriveFile.prototype.isAutosaveOptional=function(){return!0};
DriveFile.prototype.isRenamable=function(){return this.isEditable()&&DrawioFile.prototype.isEditable.apply(this,arguments)};DriveFile.prototype.isMovable=function(){return this.isEditable()};DriveFile.prototype.isTrashed=function(){return this.desc.labels.trashed};DriveFile.prototype.save=function(b,e,f,c,l){DrawioFile.prototype.save.apply(this,[b,mxUtils.bind(this,function(){this.saveFile(null,b,e,f,c,l)}),f,c,l])};
-DriveFile.prototype.saveFile=function(b,e,f,c,l,p){try{this.isEditable()?this.savingFile||(this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.createSecret(mxUtils.bind(this,function(q,v){var D=mxUtils.bind(this,function(G,B){try{var d=this.desc;null!=this.sync&&this.sync.fileSaving();this.ui.drive.saveFile(this,B,mxUtils.bind(this,function(g,k,m,t){try{this.savingFile=!1,0!=g?(this.setModified(this.getShadowModified()),e&&(this.lastAutosaveRevision=(new Date).getTime()),
-this.autosaveDelay=Math.round(Math.min(1E4,Math.max(DriveFile.prototype.autosaveDelay,this.saveDelay))),this.desc=g,this.fileSaved(k,d,mxUtils.bind(this,function(){this.contentChanged();null!=f&&f(g)}),c,v,m,t)):null!=c&&c(g)}catch(y){if(this.savingFile=!1,null!=c)c(y);else throw y;}}),mxUtils.bind(this,function(g,k){try{this.savingFile=!1,this.isConflict(g)?(this.inConflictState=!0,null!=this.sync?(this.savingFile=!0,this.sync.fileConflict(k,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,
-function(){this.updateFileData();this.setShadowModified(!1);D(G,!0)}),100+500*Math.random())}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}))):null!=c&&c()):null!=c&&c(g)}catch(m){if(this.savingFile=!1,null!=c)c(m);else throw m;}}),l,l,G,null,q)}catch(g){if(this.savingFile=!1,null!=c)c(g);else throw g;}});D(p,e)}))):null!=f&&f()}catch(q){if(null!=c)c(q);else throw q;}};
+DriveFile.prototype.saveFile=function(b,e,f,c,l,p){try{this.isEditable()?this.savingFile||(this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.createSecret(mxUtils.bind(this,function(v,t){var E=mxUtils.bind(this,function(H,B){try{var d=this.desc;null!=this.sync&&this.sync.fileSaving();this.ui.drive.saveFile(this,B,mxUtils.bind(this,function(g,k,m,u){try{this.savingFile=!1,0!=g?(this.setModified(this.getShadowModified()),e&&(this.lastAutosaveRevision=(new Date).getTime()),
+this.autosaveDelay=Math.round(Math.min(1E4,Math.max(DriveFile.prototype.autosaveDelay,this.saveDelay))),this.desc=g,this.fileSaved(k,d,mxUtils.bind(this,function(){this.contentChanged();null!=f&&f(g)}),c,t,m,u)):null!=c&&c(g)}catch(x){if(this.savingFile=!1,null!=c)c(x);else throw x;}}),mxUtils.bind(this,function(g,k){try{this.savingFile=!1,this.isConflict(g)?(this.inConflictState=!0,null!=this.sync?(this.savingFile=!0,this.sync.fileConflict(k,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,
+function(){this.updateFileData();this.setShadowModified(!1);E(H,!0)}),100+500*Math.random())}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}))):null!=c&&c()):null!=c&&c(g)}catch(m){if(this.savingFile=!1,null!=c)c(m);else throw m;}}),l,l,H,null,v)}catch(g){if(this.savingFile=!1,null!=c)c(g);else throw g;}});E(p,e)}))):null!=f&&f()}catch(v){if(null!=c)c(v);else throw v;}};
DriveFile.prototype.copyFile=function(b,e){this.isRestricted()?DrawioFile.prototype.copyFile.apply(this,arguments):this.makeCopy(mxUtils.bind(this,function(){if(this.ui.spinner.spin(document.body,mxResources.get("saving")))try{this.save(!0,b,e)}catch(f){e(f)}}),e,!0)};
DriveFile.prototype.makeCopy=function(b,e,f){this.ui.spinner.spin(document.body,mxResources.get("saving"))&&this.saveAs(this.ui.getCopyFilename(this,f),mxUtils.bind(this,function(c){this.desc=c;this.ui.spinner.stop();this.setModified(!1);this.inConflictState=this.invalidChecksum=!1;this.descriptorChanged();b()}),mxUtils.bind(this,function(){this.ui.spinner.stop();null!=e&&e()}))};DriveFile.prototype.saveAs=function(b,e,f){this.ui.drive.copyFile(this.getId(),b,e,f)};
DriveFile.prototype.rename=function(b,e,f){var c=this.getCurrentRevisionId();this.ui.drive.renameFile(this.getId(),b,mxUtils.bind(this,function(l){this.hasSameExtension(b,this.getTitle())?(this.desc=l,this.descriptorChanged(),null!=this.sync&&this.sync.descriptorChanged(c),null!=e&&e(l)):(this.desc=l,null!=this.sync&&this.sync.descriptorChanged(c),this.save(!0,e,f))}),f)};
@@ -13680,13 +13724,13 @@ DriveFile.prototype.move=function(b,e,f){this.ui.drive.moveFile(this.getId(),b,m
DriveFile.prototype.isEditable=function(){return DrawioFile.prototype.isEditable.apply(this,arguments)&&this.desc.editable};DriveFile.prototype.isSyncSupported=function(){return!0};DriveFile.prototype.isRealtimeSupported=function(){return!0};DriveFile.prototype.isRealtimeOptional=function(){return null!=this.sync&&this.sync.isConnected()};
DriveFile.prototype.setRealtimeEnabled=function(b,e,f){null!=this.sync?this.ui.drive.executeRequest({url:"/files/"+this.getId()+"/properties?alt=json&supportsAllDrives=true",method:"POST",contentType:"application/json; charset=UTF-8",params:{key:"collaboration",value:b?"enabled":"0"!=urlParams["fast-sync"]?"disabled":""}},mxUtils.bind(this,function(){this.loadDescriptor(mxUtils.bind(this,function(c){null!=c?(this.sync.descriptorChanged(this.getCurrentEtag()),this.sync.updateDescriptor(c),e()):f()}),
f)}),f):f()};DriveFile.prototype.isRealtimeEnabled=function(){var b=this.ui.drive.getCustomProperty(this.desc,"collaboration");return DrawioFile.prototype.isRealtimeEnabled.apply(this,arguments)&&"disabled"!=b||Editor.enableRealtime&&"enabled"==b};DriveFile.prototype.isRevisionHistorySupported=function(){return!0};
-DriveFile.prototype.getRevisions=function(b,e){this.ui.drive.executeRequest({url:"/files/"+this.getId()+"/revisions"},mxUtils.bind(this,function(f){for(var c=0;c<f.items.length;c++)mxUtils.bind(this,function(l){l.title=l.originalFilename;l.getXml=mxUtils.bind(this,function(p,q){this.ui.drive.getXmlFile(l,mxUtils.bind(this,function(v){p(v.getData())}),q)});l.getUrl=mxUtils.bind(this,function(p){return this.ui.getUrl(window.location.pathname+"?rev="+l.id+"&chrome=0&nav=1&layers=1&edit=_blank"+(null!=
+DriveFile.prototype.getRevisions=function(b,e){this.ui.drive.executeRequest({url:"/files/"+this.getId()+"/revisions"},mxUtils.bind(this,function(f){for(var c=0;c<f.items.length;c++)mxUtils.bind(this,function(l){l.title=l.originalFilename;l.getXml=mxUtils.bind(this,function(p,v){this.ui.drive.getXmlFile(l,mxUtils.bind(this,function(t){p(t.getData())}),v)});l.getUrl=mxUtils.bind(this,function(p){return this.ui.getUrl(window.location.pathname+"?rev="+l.id+"&chrome=0&nav=1&layers=1&edit=_blank"+(null!=
p?"&page="+p:""))+window.location.hash})})(f.items[c]);b(f.items)}),e)};DriveFile.prototype.getLatestVersion=function(b,e){this.ui.drive.getFile(this.getId(),b,e,!0)};DriveFile.prototype.getChannelId=function(){var b=this.ui.drive.getCustomProperty(this.desc,"channel");null!=b&&(b="G-"+this.getId()+"."+b);return b};DriveFile.prototype.getChannelKey=function(){return this.ui.drive.getCustomProperty(this.desc,"key")};DriveFile.prototype.getLastModifiedDate=function(){return new Date(this.desc.modifiedDate)};
DriveFile.prototype.getDescriptor=function(){return this.desc};DriveFile.prototype.setDescriptor=function(b){this.desc=b};DriveFile.prototype.getDescriptorChecksum=function(b){var e=this.ui.drive.getCustomProperty(b,"checksum");b=this.getDescriptorSecret(b);var f=null;null!=e&&null!=b&&(tokens=e.split(":"),2==tokens.length&&tokens[0]==b&&(f=tokens[1]));return f};DriveFile.prototype.getDescriptorSecret=function(b){return this.ui.drive.getCustomProperty(b,"secret")};
DriveFile.prototype.setDescriptorRevisionId=function(b,e){b.headRevisionId=e};DriveFile.prototype.getDescriptorRevisionId=function(b){return b.headRevisionId};DriveFile.prototype.getDescriptorEtag=function(b){return b.etag};DriveFile.prototype.setDescriptorEtag=function(b,e){b.etag=e};DriveFile.prototype.loadPatchDescriptor=function(b,e){this.ui.drive.executeRequest({url:"/files/"+this.getId()+"?supportsAllDrives=true&fields="+this.ui.drive.catchupFields},mxUtils.bind(this,function(f){b(f)}),e)};
DriveFile.prototype.patchDescriptor=function(b,e){b.headRevisionId=e.headRevisionId;b.modifiedDate=e.modifiedDate;DrawioFile.prototype.patchDescriptor.apply(this,arguments)};DriveFile.prototype.loadDescriptor=function(b,e){this.ui.drive.loadDescriptor(this.getId(),b,e)};DriveFile.prototype.commentsSupported=function(){return!0};
-DriveFile.prototype.getComments=function(b,e){function f(l,p,q){if(p.deleted)return null;q=new DriveComment(l,p.commentId||p.replyId,p.content,p.modifiedDate,p.createdDate,"resolved"==p.status,p.author.isAuthenticatedUser?c:new DrawioUser(p.author.permissionId,p.author.emailAddress,p.author.displayName,p.author.picture.url),q);for(var v=0;null!=p.replies&&v<p.replies.length;v++)q.addReplyDirect(f(l,p.replies[v],p.commentId));return q}var c=this.ui.getCurrentUser();this.ui.drive.executeRequest({url:"/files/"+
-this.getId()+"/comments"},mxUtils.bind(this,function(l){for(var p=[],q=0;q<l.items.length;q++){var v=f(this,l.items[q]);null!=v&&p.push(v)}b(p)}),e)};DriveFile.prototype.addComment=function(b,e,f){b={content:b.content};this.ui.drive.executeRequest({url:"/files/"+this.getId()+"/comments",method:"POST",params:b},mxUtils.bind(this,function(c){e(c.commentId)}),f)};DriveFile.prototype.canReplyToReplies=function(){return!1};DriveFile.prototype.canComment=function(){return this.desc.canComment};
+DriveFile.prototype.getComments=function(b,e){function f(l,p,v){if(p.deleted)return null;v=new DriveComment(l,p.commentId||p.replyId,p.content,p.modifiedDate,p.createdDate,"resolved"==p.status,p.author.isAuthenticatedUser?c:new DrawioUser(p.author.permissionId,p.author.emailAddress,p.author.displayName,p.author.picture.url),v);for(var t=0;null!=p.replies&&t<p.replies.length;t++)v.addReplyDirect(f(l,p.replies[t],p.commentId));return v}var c=this.ui.getCurrentUser();this.ui.drive.executeRequest({url:"/files/"+
+this.getId()+"/comments"},mxUtils.bind(this,function(l){for(var p=[],v=0;v<l.items.length;v++){var t=f(this,l.items[v]);null!=t&&p.push(t)}b(p)}),e)};DriveFile.prototype.addComment=function(b,e,f){b={content:b.content};this.ui.drive.executeRequest({url:"/files/"+this.getId()+"/comments",method:"POST",params:b},mxUtils.bind(this,function(c){e(c.commentId)}),f)};DriveFile.prototype.canReplyToReplies=function(){return!1};DriveFile.prototype.canComment=function(){return this.desc.canComment};
DriveFile.prototype.newComment=function(b,e){return new DriveComment(this,null,b,Date.now(),Date.now(),!1,e)};DriveLibrary=function(b,e,f){DriveFile.call(this,b,e,f)};mxUtils.extend(DriveLibrary,DriveFile);DriveLibrary.prototype.isAutosave=function(){return!0};DriveLibrary.prototype.save=function(b,e,f){this.ui.drive.saveFile(this,b,mxUtils.bind(this,function(c){this.desc=c;null!=e&&e(c)}),f)};DriveLibrary.prototype.open=function(){};(function(){var b=null,e={};window.DriveClient=function(f,c){null==c&&null!=window.urlParams&&"1"==window.urlParams.extAuth&&(c=!0);mxEventSource.call(this);DrawioClient.call(this,f,"gDriveAuthInfo");this.isExtAuth=c;this.ui=f;this.xmlMimeType="application/vnd.jgraph.mxfile";this.mimeType="application/vnd.jgraph.mxfile.realtime";this.ui.editor.chromeless&&!this.ui.editor.editable&&"1"!=urlParams.rt&&"1"!=urlParams.extAuth&&(this.cookieName="gDriveViewerAuthInfo",this.token=this.getPersistentToken());
this.appId=window.DRAWIO_GOOGLE_APP_ID||"671128082532";this.clientId=window.DRAWIO_GOOGLE_CLIENT_ID||"671128082532-jhphbq6d0e1gnsus9mn7vf8a6fjn10mp.apps.googleusercontent.com";this.mimeTypes=this.xmlMimeType+",application/mxe,application/mxr,application/vnd.jgraph.mxfile.realtime,application/vnd.jgraph.mxfile.rtlegacy";f=JSON.parse(this.token);null!=f&&null!=f.current&&(this.userId=f.current.userId,this.authCalled=!1)};mxUtils.extend(DriveClient,mxEventSource);mxUtils.extend(DriveClient,DrawioClient);
DriveClient.prototype.redirectUri=window.DRAWIO_SERVER_URL+"google";DriveClient.prototype.GDriveBaseUrl="https://www.googleapis.com/drive/v2";DriveClient.prototype.scopes=["https://www.googleapis.com/auth/drive.file","https://www.googleapis.com/auth/drive.install","https://www.googleapis.com/auth/userinfo.profile"];DriveClient.prototype.allFields="kind,id,parents,headRevisionId,etag,title,mimeType,modifiedDate,editable,copyable,canComment,labels,properties,downloadUrl,webContentLink,userPermission,fileSize";
@@ -13694,90 +13738,90 @@ DriveClient.prototype.catchupFields="etag,headRevisionId,modifiedDate,properties
"-").replace(/\//g,"_");DriveClient.prototype.placeholderMimeType="image/png";DriveClient.prototype.libraryMimeType="application/vnd.jgraph.mxlibrary";DriveClient.prototype.newAppHostname="app.diagrams.net";DriveClient.prototype.extension=".drawio";DriveClient.prototype.tokenRefreshInterval=0;DriveClient.prototype.lastTokenRefresh=0;DriveClient.prototype.maxRetries=5;DriveClient.prototype.staleEtagMaxRetries=4;DriveClient.prototype.coolOff=1E3;DriveClient.prototype.mimeTypeCheckCoolOff=6E4;DriveClient.prototype.user=
null;DriveClient.prototype.sameWinAuthMode=!1;DriveClient.prototype.sameWinRedirectUrl=null;DriveClient.prototype.setUser=function(f){this.user=f;null==this.user?(this.userId=null,null!=this.tokenRefreshThread&&(window.clearTimeout(this.tokenRefreshThread),this.tokenRefreshThread=null)):this.userId=f.id;this.fireEvent(new mxEventObject("userChanged"))};DriveClient.prototype.setUserId=function(f){this.userId=f;null!=this.user&&this.user.id!=this.userId&&(this.user=null)};DriveClient.prototype.getUser=
function(){return this.user};DriveClient.prototype.getUsersList=function(){var f=[],c=JSON.parse(this.getPersistentToken(!0)),l=null;if(null!=c){null!=c.current&&(l=c.current.userId,f.push(c[l].user),f[0].isCurrent=!0);for(var p in c)"current"!=p&&p!=l&&f.push(c[p].user)}return f};DriveClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&userId="+this.userId+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();
-this.setUser(null);b=null};DriveClient.prototype.execute=function(f){var c=mxUtils.bind(this,function(l){this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(p,q){this.authorize(!1,mxUtils.bind(this,function(){null!=q&&q();f()}),mxUtils.bind(this,function(v){var D=null!=v.message?v.message:mxResources.get("cannotLogin");null!=v&&null!=v.error&&403==v.error.code&&null!=v.error.data&&0<v.error.data.length&&"domainPolicy"==v.error.data[0].reason&&(D=v.error.message);this.logout();this.ui.showError(mxResources.get("error"),
-D,mxResources.get("help"),mxUtils.bind(this,function(){this.ui.openLink("https://www.drawio.com/doc/faq/gsuite-authorisation-troubleshoot")}),null,mxResources.get("ok"))}),p)}))});this.authorize(!0,f,c)};DriveClient.prototype.executeRequest=function(f,c,l){try{var p=!0,q=null,v=0;null!=this.requestThread&&window.clearTimeout(this.requestThread);var D=mxUtils.bind(this,function(){try{this.requestThread=null;this.currentRequest=f;null!=q&&window.clearTimeout(q);q=window.setTimeout(mxUtils.bind(this,
-function(){p=!1;null!=l&&l({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:D})}),this.ui.timeout);var G=null,B=!1;"string"===typeof f.params?G=f.params:null!=f.params&&(G=JSON.stringify(f.params),B=!0);var d=f.fullUrl||this.GDriveBaseUrl+f.url;B&&(d+=(0<d.indexOf("?")?"&":"?")+"alt=json");var g=new mxXmlRequest(d,G,f.method||"GET");g.setRequestHeaders=mxUtils.bind(this,function(k,m){if(null!=f.headers)for(var t in f.headers)k.setRequestHeader(t,f.headers[t]);else null!=f.contentType?
-k.setRequestHeader("Content-Type",f.contentType):B&&k.setRequestHeader("Content-Type","application/json");k.setRequestHeader("Authorization","Bearer "+b)});g.send(mxUtils.bind(this,function(k){try{if(window.clearTimeout(q),p){try{var m=JSON.parse(k.getText())}catch(z){m=null}if(200<=k.getStatus()&&299>=k.getStatus())null!=c&&c(m);else{var t=null!=m&&null!=m.error?null!=m.error.data?m.error.data:m.error.errors:null,y=null!=t&&0<t.length?t[0].reason:null;null==l||null==m||null==m.error||-1!=m.error.code&&
-(403!=m.error.code||"domainPolicy"!=y&&"The requested mime type change is forbidden."!=m.error.message)?null!=m&&null!=m.error&&(401==m.error.code||403==m.error.code&&"rateLimitExceeded"!=y)?403==m.error.code&&this.retryAuth||401==m.error.code&&this.retryAuth&&"authError"==y?(null!=l&&l(m),this.retryAuth=!1):(this.retryAuth=!0,this.execute(D)):null!=m&&null!=m.error&&412!=m.error.code&&404!=m.error.code&&400!=m.error.code&&this.currentRequest==f&&v<this.maxRetries?(v++,this.requestThread=window.setTimeout(D,
-Math.round(Math.pow(2,v)*(1+.1*(Math.random()-.5))*this.coolOff))):null!=l&&l(m):l(m)}}}catch(z){if(null!=l)l(z);else throw z;}}))}catch(k){if(null!=l)l(k);else throw k;}});null!=b&&this.authCalled?D():this.execute(D)}catch(G){if(null!=l)l(G);else throw G;}};DriveClient.prototype.createAuthWin=function(f){return window.open(f?f:"about:blank","gdauth",["width=525,height=525","top="+(window.screenY+Math.max(window.outerHeight-525,0)/2),"left="+(window.screenX+Math.max(window.outerWidth-525,0)/2),"status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes"].join())};
-DriveClient.prototype.authorize=function(f,c,l,p,q){this.isExtAuth&&!f?window.parent.driveAuth(mxUtils.bind(this,function(v){this.updateAuthInfo(v,!0,!0,c,l)}),l):(new mxXmlRequest(this.redirectUri+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(v){200<=v.getStatus()&&299>=v.getStatus()?this.authorizeStep2(v.getText(),f,c,l,p,q):null!=l&&l(v)}),l)};DriveClient.prototype.updateAuthInfo=function(f,c,l,p,q){b=f.access_token;delete f.access_token;f.expires=Date.now()+1E3*parseInt(f.expires_in);
-f.remember=c;this.resetTokenRefresh(f);this.authCalled=!0;if(l||null==this.user){var v=JSON.stringify(f);this.updateUser(mxUtils.bind(this,function(){var D=JSON.parse(v);this.setPersistentToken(D,!c);null!=p&&p()}),q)}else null!=p&&(this.setPersistentToken(f,!c),p())};DriveClient.prototype.authorizeStep2=function(f,c,l,p,q,v){try{null!=this.ui.stateArg&&null!=this.ui.stateArg.userId&&(this.userId=this.ui.stateArg.userId,null!=this.user&&this.user.id!=this.userId&&(this.user=null));if(null==this.userId){var D=
-JSON.parse(this.getPersistentToken(!0));D&&null!=D.current&&(this.userId=D.current.userId)}if(c&&null==this.userId)null!=p&&p();else if(c)(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+f)+"&userId="+this.userId,null,"GET")).send(mxUtils.bind(this,function(B){try{if(200<=B.getStatus()&&299>=B.getStatus()){var d=JSON.parse(B.getText());this.updateAuthInfo(d,!0,!1,l,p)}else 0!=B.getStatus()&&this.logout(),null!=p&&p(B)}catch(g){if(null!=
-window.console&&console.log("DriveClient.authorizeStep2",g),null!=p)p(g);else throw g;}}),p);else{var G="https://accounts.google.com/o/oauth2/v2/auth?client_id="+this.clientId+"&redirect_uri="+encodeURIComponent(this.redirectUri)+"&response_type=code&include_granted_scopes=true"+(q?"&access_type=offline&prompt=consent%20select_account":"")+"&scope="+encodeURIComponent(this.scopes.join(" "))+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+f+(this.sameWinRedirectUrl?
-"&redirect="+this.sameWinRedirectUrl:""));this.sameWinAuthMode?(window.location.assign(G),v=null):null==v?v=this.createAuthWin(G):v.location=G;null!=v?(window.onGoogleDriveCallback=mxUtils.bind(this,function(B,d){window.onGoogleDriveCallback=null;try{null==B?null!=p&&p({message:mxResources.get("accessDenied")}):this.updateAuthInfo(B,q,!0,l,p)}catch(g){null!=p&&p(g)}finally{null!=d&&d.close()}}),v.focus()):null!=p&&p({message:mxResources.get("allowPopups")})}}catch(B){if(null!=p)p(B);else throw B;
+this.setUser(null);b=null};DriveClient.prototype.execute=function(f){var c=mxUtils.bind(this,function(l){this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(p,v){this.authorize(!1,mxUtils.bind(this,function(){null!=v&&v();f()}),mxUtils.bind(this,function(t){var E=null!=t.message?t.message:mxResources.get("cannotLogin");null!=t&&null!=t.error&&403==t.error.code&&null!=t.error.data&&0<t.error.data.length&&"domainPolicy"==t.error.data[0].reason&&(E=t.error.message);this.logout();this.ui.showError(mxResources.get("error"),
+E,mxResources.get("help"),mxUtils.bind(this,function(){this.ui.openLink("https://www.drawio.com/doc/faq/gsuite-authorisation-troubleshoot")}),null,mxResources.get("ok"))}),p)}))});this.authorize(!0,f,c)};DriveClient.prototype.executeRequest=function(f,c,l){try{var p=!0,v=null,t=0;null!=this.requestThread&&window.clearTimeout(this.requestThread);var E=mxUtils.bind(this,function(){try{this.requestThread=null;this.currentRequest=f;null!=v&&window.clearTimeout(v);v=window.setTimeout(mxUtils.bind(this,
+function(){p=!1;null!=l&&l({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:E})}),this.ui.timeout);var H=null,B=!1;"string"===typeof f.params?H=f.params:null!=f.params&&(H=JSON.stringify(f.params),B=!0);var d=f.fullUrl||this.GDriveBaseUrl+f.url;B&&(d+=(0<d.indexOf("?")?"&":"?")+"alt=json");var g=new mxXmlRequest(d,H,f.method||"GET");g.setRequestHeaders=mxUtils.bind(this,function(k,m){if(null!=f.headers)for(var u in f.headers)k.setRequestHeader(u,f.headers[u]);else null!=f.contentType?
+k.setRequestHeader("Content-Type",f.contentType):B&&k.setRequestHeader("Content-Type","application/json");k.setRequestHeader("Authorization","Bearer "+b)});g.send(mxUtils.bind(this,function(k){try{if(window.clearTimeout(v),p){try{var m=JSON.parse(k.getText())}catch(A){m=null}if(200<=k.getStatus()&&299>=k.getStatus())null!=c&&c(m);else{var u=null!=m&&null!=m.error?null!=m.error.data?m.error.data:m.error.errors:null,x=null!=u&&0<u.length?u[0].reason:null;null==l||null==m||null==m.error||-1!=m.error.code&&
+(403!=m.error.code||"domainPolicy"!=x&&"The requested mime type change is forbidden."!=m.error.message)?null!=m&&null!=m.error&&(401==m.error.code||403==m.error.code&&"rateLimitExceeded"!=x)?403==m.error.code&&this.retryAuth||401==m.error.code&&this.retryAuth&&"authError"==x?(null!=l&&l(m),this.retryAuth=!1):(this.retryAuth=!0,this.execute(E)):null!=m&&null!=m.error&&412!=m.error.code&&404!=m.error.code&&400!=m.error.code&&this.currentRequest==f&&t<this.maxRetries?(t++,this.requestThread=window.setTimeout(E,
+Math.round(Math.pow(2,t)*(1+.1*(Math.random()-.5))*this.coolOff))):null!=l&&l(m):l(m)}}}catch(A){if(null!=l)l(A);else throw A;}}))}catch(k){if(null!=l)l(k);else throw k;}});null!=b&&this.authCalled?E():this.execute(E)}catch(H){if(null!=l)l(H);else throw H;}};DriveClient.prototype.createAuthWin=function(f){return window.open(f?f:"about:blank","gdauth",["width=525,height=525","top="+(window.screenY+Math.max(window.outerHeight-525,0)/2),"left="+(window.screenX+Math.max(window.outerWidth-525,0)/2),"status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes"].join())};
+DriveClient.prototype.authorize=function(f,c,l,p,v){this.isExtAuth&&!f?window.parent.driveAuth(mxUtils.bind(this,function(t){this.updateAuthInfo(t,!0,!0,c,l)}),l):(new mxXmlRequest(this.redirectUri+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(t){200<=t.getStatus()&&299>=t.getStatus()?this.authorizeStep2(t.getText(),f,c,l,p,v):null!=l&&l(t)}),l)};DriveClient.prototype.updateAuthInfo=function(f,c,l,p,v){b=f.access_token;delete f.access_token;f.expires=Date.now()+1E3*parseInt(f.expires_in);
+f.remember=c;this.resetTokenRefresh(f);this.authCalled=!0;if(l||null==this.user){var t=JSON.stringify(f);this.updateUser(mxUtils.bind(this,function(){var E=JSON.parse(t);this.setPersistentToken(E,!c);null!=p&&p()}),v)}else null!=p&&(this.setPersistentToken(f,!c),p())};DriveClient.prototype.authorizeStep2=function(f,c,l,p,v,t){try{null!=this.ui.stateArg&&null!=this.ui.stateArg.userId&&(this.userId=this.ui.stateArg.userId,null!=this.user&&this.user.id!=this.userId&&(this.user=null));if(null==this.userId){var E=
+JSON.parse(this.getPersistentToken(!0));E&&null!=E.current&&(this.userId=E.current.userId)}if(c&&null==this.userId)null!=p&&p();else if(c)(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+f)+"&userId="+this.userId,null,"GET")).send(mxUtils.bind(this,function(B){try{if(200<=B.getStatus()&&299>=B.getStatus()){var d=JSON.parse(B.getText());this.updateAuthInfo(d,!0,!1,l,p)}else 0!=B.getStatus()&&this.logout(),null!=p&&p(B)}catch(g){if(null!=
+window.console&&console.log("DriveClient.authorizeStep2",g),null!=p)p(g);else throw g;}}),p);else{var H="https://accounts.google.com/o/oauth2/v2/auth?client_id="+this.clientId+"&redirect_uri="+encodeURIComponent(this.redirectUri)+"&response_type=code&include_granted_scopes=true"+(v?"&access_type=offline&prompt=consent%20select_account":"")+"&scope="+encodeURIComponent(this.scopes.join(" "))+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+f+(this.sameWinRedirectUrl?
+"&redirect="+this.sameWinRedirectUrl:""));this.sameWinAuthMode?(window.location.assign(H),t=null):null==t?t=this.createAuthWin(H):t.location=H;null!=t?(window.onGoogleDriveCallback=mxUtils.bind(this,function(B,d){window.onGoogleDriveCallback=null;try{null==B?null!=p&&p({message:mxResources.get("accessDenied")}):this.updateAuthInfo(B,v,!0,l,p)}catch(g){null!=p&&p(g)}finally{null!=d&&d.close()}}),t.focus()):null!=p&&p({message:mxResources.get("allowPopups")})}}catch(B){if(null!=p)p(B);else throw B;
}};DriveClient.prototype.resetTokenRefresh=function(f){null!=this.tokenRefreshThread&&(window.clearTimeout(this.tokenRefreshThread),this.tokenRefreshThread=null);null!=f&&null==f.error&&0<f.expires_in&&(this.tokenRefreshInterval=1E3*parseInt(f.expires_in),this.lastTokenRefresh=Date.now(),this.tokenRefreshThread=window.setTimeout(mxUtils.bind(this,function(){this.authorize(!0,mxUtils.bind(this,function(){}),mxUtils.bind(this,function(){}))}),900*f.expires_in))};DriveClient.prototype.checkToken=function(f){var c=
-0<this.lastTokenRefresh;Date.now()-this.lastTokenRefresh>this.tokenRefreshInterval||null==this.tokenRefreshThread?this.execute(mxUtils.bind(this,function(){f();c&&this.fireEvent(new mxEventObject("disconnected"))})):f()};DriveClient.prototype.updateUser=function(f,c){try{var l={Authorization:"Bearer "+b};this.ui.editor.loadUrl("https://www.googleapis.com/oauth2/v2/userinfo?alt=json",mxUtils.bind(this,function(p){try{var q=JSON.parse(p);this.executeRequest({url:"/about"},mxUtils.bind(this,function(v){var D=
-mxResources.get("notAvailable"),G=D,B=null;null!=v&&null!=v.user&&(D=v.user.emailAddress,G=v.user.displayName,B=null!=v.user.picture?v.user.picture.url:null);this.setUser(new DrawioUser(q.id,D,G,B,q.locale));this.userId=q.id;null!=f&&f()}),c)}catch(v){null!=c&&c(v)}}),c,null,null,null,null,l)}catch(p){if(null!=c)c(p);else throw p;}};DriveClient.prototype.copyFile=function(f,c,l,p){null!=f&&null!=c&&this.executeRequest({url:"/files/"+f+"/copy?fields="+encodeURIComponent(this.allFields)+"&supportsAllDrives=true&enforceSingleParent=true",
+0<this.lastTokenRefresh;Date.now()-this.lastTokenRefresh>this.tokenRefreshInterval||null==this.tokenRefreshThread?this.execute(mxUtils.bind(this,function(){f();c&&this.fireEvent(new mxEventObject("disconnected"))})):f()};DriveClient.prototype.updateUser=function(f,c){try{var l={Authorization:"Bearer "+b};this.ui.editor.loadUrl("https://www.googleapis.com/oauth2/v2/userinfo?alt=json",mxUtils.bind(this,function(p){try{var v=JSON.parse(p);this.executeRequest({url:"/about"},mxUtils.bind(this,function(t){var E=
+mxResources.get("notAvailable"),H=E,B=null;null!=t&&null!=t.user&&(E=t.user.emailAddress,H=t.user.displayName,B=null!=t.user.picture?t.user.picture.url:null);this.setUser(new DrawioUser(v.id,E,H,B,v.locale));this.userId=v.id;null!=f&&f()}),c)}catch(t){null!=c&&c(t)}}),c,null,null,null,null,l)}catch(p){if(null!=c)c(p);else throw p;}};DriveClient.prototype.copyFile=function(f,c,l,p){null!=f&&null!=c&&this.executeRequest({url:"/files/"+f+"/copy?fields="+encodeURIComponent(this.allFields)+"&supportsAllDrives=true&enforceSingleParent=true",
method:"POST",params:{title:c,properties:[{key:"channel",value:Editor.guid()}]}},l,p)};DriveClient.prototype.renameFile=function(f,c,l,p){null!=f&&null!=c&&this.executeRequest(this.createDriveRequest(f,{title:c}),l,p)};DriveClient.prototype.moveFile=function(f,c,l,p){null!=f&&null!=c&&this.executeRequest(this.createDriveRequest(f,{parents:[{kind:"drive#fileLink",id:c}]}),l,p)};DriveClient.prototype.createDriveRequest=function(f,c){return{url:"/files/"+f+"?uploadType=multipart&supportsAllDrives=true",
-method:"PUT",contentType:"application/json; charset=UTF-8",params:c}};DriveClient.prototype.getLibrary=function(f,c,l){return this.getFile(f,c,l,!0,!0)};DriveClient.prototype.loadDescriptor=function(f,c,l,p){this.executeRequest({url:"/files/"+f+"?supportsAllDrives=true&fields="+(null!=p?p:this.allFields)},c,l)};DriveClient.prototype.listFiles=function(f,c,l,p,q){this.executeRequest({url:"/files?supportsAllDrives=true&includeItemsFromAllDrives=true&q="+encodeURIComponent("(mimeType contains '"+this.xmlMimeType+
-"') "+(f?" and (title contains '"+f+"')":"")+(c?" and (modifiedDate > '"+c.toISOString()+"')":"")+(l?" and ('me' in owners)":""))+"&orderBy=modifiedDate desc,title"},p,q)};DriveClient.prototype.getCustomProperty=function(f,c){f=f.properties;var l=null;if(null!=f)for(var p=0;p<f.length;p++)if(f[p].key==c){l=f[p].value;break}return l};DriveClient.prototype.getFile=function(f,c,l,p,q){p=null!=p?p:!1;q=null!=q?q:!1;null!=urlParams.rev?this.executeRequest({url:"/files/"+f+"/revisions/"+urlParams.rev+"?supportsAllDrives=true"},
-mxUtils.bind(this,function(v){v.title=v.originalFilename;v.headRevisionId=v.id;v.id=f;this.getXmlFile(v,c,l)}),l):this.loadDescriptor(f,mxUtils.bind(this,function(v){try{if(null!=this.user){var D=/\.png$/i.test(v.title);/\.v(dx|sdx?)$/i.test(v.title)||/\.gliffy$/i.test(v.title)||!this.ui.useCanvasForExport&&D?this.ui.convertFile(v.downloadUrl,v.title,v.mimeType,this.extension,c,l,null,{Authorization:"Bearer "+b}):p||q||v.mimeType==this.libraryMimeType||v.mimeType==this.xmlMimeType?this.getXmlFile(v,
-c,l,!0,q):this.getXmlFile(v,c,l)}else l({message:mxResources.get("loggedOut")})}catch(G){if(null!=l)l(G);else throw G;}}),l)};DriveClient.prototype.isGoogleRealtimeMimeType=function(f){return null!=f&&"application/vnd.jgraph.mxfile."==f.substring(0,30)};DriveClient.prototype.getXmlFile=function(f,c,l,p,q){try{var v={Authorization:"Bearer "+b},D=f.downloadUrl;if(null==D)null!=l&&l({message:mxResources.get("exportOptionsDisabledDetails")});else{var G=0,B=mxUtils.bind(this,function(){this.ui.editor.loadUrl(D,
-mxUtils.bind(this,function(d){try{if(null==d)l({message:mxResources.get("invalidOrMissingFile")});else if(f.mimeType==this.libraryMimeType||q)f.mimeType!=this.libraryMimeType||q?c(new DriveLibrary(this.ui,d,f)):l({message:mxResources.get("notADiagramFile")});else{var g=!1;if(/\.png$/i.test(f.title)){var k=d.lastIndexOf(",");if(0<k){var m=this.ui.extractGraphModelFromPng(d);if(null!=m&&0<m.length)d=m;else try{m=d.substring(k+1);var t=!window.atob||mxClient.IS_IE||mxClient.IS_IE11?Base64.decode(m):
-atob(m),y=this.ui.editor.extractGraphModel(mxUtils.parseXml(t).documentElement,!0);null==y||0<y.getElementsByTagName("parsererror").length?g=!0:d=t}catch(z){g=!0}}}else/\.pdf$/i.test(f.title)?(m=Editor.extractGraphModelFromPdf(d),null!=m&&0<m.length&&(g=!0,d=m)):"data:image/png;base64,PG14ZmlsZS"==d.substring(0,32)&&(t=d.substring(22),d=window.atob&&!mxClient.IS_SF?atob(t):Base64.decode(t));Graph.fileSupport&&(new XMLHttpRequest).upload&&this.ui.isRemoteFileFormat(d,D)?this.ui.parseFileData(d,mxUtils.bind(this,
-function(z){try{4==z.readyState&&(200<=z.status&&299>=z.status?c(new LocalFile(this.ui,z.responseText,f.title+this.extension,!0)):null!=l&&l({message:mxResources.get("errorLoadingFile")}))}catch(I){if(null!=l)l(I);else throw I;}}),f.title):c(g?new LocalFile(this.ui,d,f.title,!0):new DriveFile(this.ui,d,f))}}catch(z){if(null!=l)l(z);else throw z;}}),mxUtils.bind(this,function(d,g){if(G<this.maxRetries&&null!=g&&403==g.getStatus())G++,window.setTimeout(B,2*G*this.coolOff*(1+.1*(Math.random()-.5)));
-else if(null!=l)l(d);else throw d;}),null!=f.mimeType&&"image/"==f.mimeType.substring(0,6)&&"image/svg"!=f.mimeType.substring(0,9)||/\.png$/i.test(f.title)||/\.jpe?g$/i.test(f.title)||/\.pdf$/i.test(f.title),null,null,null,v)});B()}}catch(d){if(null!=l)l(d);else throw d;}};DriveClient.prototype.saveFile=function(f,c,l,p,q,v,D,G,B){try{var d=0;f.saveLevel=1;var g=mxUtils.bind(this,function(V){if(null!=p)p(V);else throw V;}),k=mxUtils.bind(this,function(V){g(V);try{EditorUi.logError(V.message,null,
-null,null,V)}catch(P){}});if(f.isEditable()&&null!=f.desc){var m=Date.now(),t=f.desc.etag,y=f.desc.modifiedDate,z=f.desc.headRevisionId,I=this.ui.useCanvasForExport&&/(\.png)$/i.test(f.getTitle());v=null!=v?v:!1;var F=null,C=!1,Q={mimeType:f.desc.mimeType,title:f.getTitle()};if(this.isGoogleRealtimeMimeType(Q.mimeType))Q.mimeType=this.xmlMimeType,F=f.desc,C=c=!0;else if("application/octet-stream"==Q.mimeType||"1"==urlParams["override-mime"]&&Q.mimeType!=this.xmlMimeType)Q.mimeType=this.xmlMimeType;
-var S=mxUtils.bind(this,function(V,P,u){try{f.saveLevel=3;var x=f.getData(),J=null,H=null;f.constructor==DriveFile&&(null==G&&(G=[]),null==f.getChannelId()&&G.push({key:"channel",value:Editor.guid(32)}),null==f.getChannelKey()&&G.push({key:"key",value:Editor.guid(32)}),B=null!=B?B:Editor.guid(32),G.push({key:"secret",value:B}),H=this.ui.getPagesForXml(x),J=this.ui.getHashValueForPages(H),G.push({key:"checksum",value:B+":"+J}));u||(null!=V||v||(V=this.placeholderThumbnail,P=this.placeholderMimeType),
-null!=V&&null!=P&&(Q.thumbnail={image:V,mimeType:P}));var K=mxUtils.bind(this,function(n){try{if(f.saveDelay=Date.now()-m,f.saveLevel=null,l(n,x,H,J),null!=F){this.executeRequest({url:"/files/"+F.id+"/revisions/"+F.headRevisionId+"?supportsAllDrives=true"},mxUtils.bind(this,mxUtils.bind(this,function(A){A.pinned=!0;this.executeRequest({url:"/files/"+F.id+"/revisions/"+F.headRevisionId,method:"PUT",params:A})})));try{EditorUi.logEvent({category:f.convertedFrom+"-CONVERT-FILE-"+f.getHash(),action:"from_"+
-F.id+"."+F.headRevisionId+"-to_"+f.desc.id+"."+f.desc.headRevisionId,label:null!=this.user?"user_"+this.user.id:"nouser"+(null!=f.sync?"-client_"+f.sync.clientId:"nosync")})}catch(A){}}}catch(A){k(A)}}),N=mxUtils.bind(this,function(n,A){f.saveLevel=4;try{null!=G&&(Q.properties=G);var E=D||f.constructor!=DriveFile||"manual"!=DrawioFile.SYNC&&"auto"!=DrawioFile.SYNC?null:f.getCurrentEtag(),L=mxUtils.bind(this,function(T){f.saveLevel=5;try{var U=f.desc.mimeType!=this.xmlMimeType&&f.desc.mimeType!=this.mimeType&&
-f.desc.mimeType!=this.libraryMimeType,W=!0,X=null;try{X=window.setTimeout(mxUtils.bind(this,function(){W=!1;g({code:App.ERROR_TIMEOUT})}),5*this.ui.timeout)}catch(Y){}this.executeRequest(this.createUploadRequest(f.getId(),Q,n,c||T||U,A,T?null:E,C),mxUtils.bind(this,function(Y){window.clearTimeout(X);if(W){var Z=null!=Y?(new Date(Y.modifiedDate)).getTime()-(new Date(y)).getTime():0;if(0>=Z||t==Y.etag||c&&z==Y.headRevisionId){var ca=[];null==Y?ca.push("Empty response"):(0>=Z&&ca.push("Invalid modified time"),
-t==Y.etag&&ca.push("Stale etag"),c&&z==Y.headRevisionId&&ca.push("Stale revision"),E=Y.etag);0==ca.length&&ca.push(mxResources.get("unknownError"));Z=ca.join(", ");if(d<this.staleEtagMaxRetries)d++,ca=Math.round(Math.pow(2,d)*this.coolOff*(1+.1*(Math.random()-.5))),window.setTimeout(L,ca),"1"==urlParams.test&&EditorUi.debug("DriveClient: Invalid response","retry",d,"delay",ca,"rev",null!=Y?Y.headRevisionId:"null","errors",Z);else{f.saveLevel=12;g({message:mxResources.get("error")+": "+Z},Y);try{EditorUi.logError("Saving to Google Drive failed",
-null,"id-"+f.desc.id+"-from-"+z+"."+y+"-"+this.ui.hashValue(t)+"-to-"+Y.headRevisionId+"."+Y.modifiedDate+"-"+this.ui.hashValue(Y.etag)+(0<Z.length?"-errors-"+Z:""),"user-"+(null!=this.user?this.user.id:"nouser")+(null!=f.sync?"-client_"+f.sync.clientId:"-nosync")+"-retries-"+d+"-delay-"+(Date.now()-m))}catch(ea){}}}else K(Y)}}),mxUtils.bind(this,function(Y){window.clearTimeout(X);if(W){f.saveLevel=6;try{f.isConflict(Y)?this.executeRequest({url:"/files/"+f.getId()+"?supportsAllDrives=true&fields="+
-this.catchupFields},mxUtils.bind(this,function(Z){f.saveLevel=7;try{if(null!=Z&&Z.etag==E)if(d<this.staleEtagMaxRetries){d++;var ca=Math.round(2*d*this.coolOff*(1+.1*(Math.random()-.5)));window.setTimeout(O,ca);"1"==urlParams.test&&EditorUi.debug("DriveClient: Stale Etag Detected","retry",d,"delay",ca)}else{O(!0);try{EditorUi.logEvent({category:"STALE-ETAG-SAVE-FILE-"+f.getHash(),action:"rev_"+f.desc.headRevisionId+"-mod_"+f.desc.modifiedDate+"-size_"+f.getSize()+"-mime_"+f.desc.mimeType+(this.ui.editor.autosave?
-"":"-nosave")+(f.isAutosave()?"":"-noauto")+(f.changeListenerEnabled?"":"-nolisten")+(f.inConflictState?"-conflict":"")+(f.invalidChecksum?"-invalid":""),label:(null!=this.user?"user_"+this.user.id:"nouser")+(null!=f.sync?"-client_"+f.sync.clientId:"-nosync")})}catch(ea){}}else"1"==urlParams.test&&Z.headRevisionId==z&&EditorUi.debug("DriveClient: Remote Etag Changed","local",E,"remote",Z.etag,"rev",f.desc.headRevisionId,"response",[Z],"file",[f]),g(Y,Z)}catch(ea){k(ea)}}),mxUtils.bind(this,function(){g(Y)})):
-g(Y)}catch(Z){k(Z)}}}))}catch(Y){k(Y)}}),O=mxUtils.bind(this,function(T){f.saveLevel=9;if(T||null==E)L(T);else{var U=!0,W=null;try{W=window.setTimeout(mxUtils.bind(this,function(){U=!1;g({code:App.ERROR_TIMEOUT})}),3*this.ui.timeout)}catch(X){}this.executeRequest({url:"/files/"+f.getId()+"?supportsAllDrives=true&fields="+this.catchupFields},mxUtils.bind(this,function(X){window.clearTimeout(W);if(U){f.saveLevel=10;try{null!=X&&X.headRevisionId==z?("1"==urlParams.test&&E!=X.etag&&EditorUi.debug("DriveClient: Preflight Etag Update",
-"from",E,"to",X.etag,"rev",f.desc.headRevisionId,"response",[X],"file",[f]),E=X.etag,L(T)):g({error:{code:412}},X)}catch(Y){k(Y)}}}),mxUtils.bind(this,function(X){window.clearTimeout(W);U&&(f.saveLevel=11,g(X))}))}});if(I&&null==V){f.saveLevel=8;var R=new Image;R.onload=mxUtils.bind(this,function(){try{var T=this.thumbnailWidth/R.width,U=document.createElement("canvas");U.width=this.thumbnailWidth;U.height=Math.floor(R.height*T);U.getContext("2d").drawImage(R,0,0,U.width,U.height);var W=U.toDataURL();
-W=W.substring(W.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_");Q.thumbnail={image:W,mimeType:"image/png"};O(!1)}catch(X){try{O(!1)}catch(Y){k(Y)}}});R.src="data:image/png;base64,"+n}else O(!1)}catch(T){k(T)}});if(I){var M=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(n){N(n,!0)}),g,this.ui.getCurrentFile()!=f?x:null,M.scale,M.border)}else N(x,!1)}catch(n){k(n)}});try{f.saveLevel=2,(v||I||f.constructor==DriveLibrary||!this.enableThumbnails||
-"0"==urlParams.thumb||null!=Q.mimeType&&"application/vnd.jgraph.mxfile"!=Q.mimeType.substring(0,29)||!this.ui.getThumbnail(this.thumbnailWidth,mxUtils.bind(this,function(V){try{var P=null;try{null!=V&&(P=V.toDataURL("image/png")),null!=P&&(P=P.length>this.maxThumbnailSize?null:P.substring(P.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_"))}catch(u){P=null}S(P,"image/png")}catch(u){k(u)}}),20))&&S(null,null,f.constructor!=DriveLibrary)}catch(V){k(V)}}else this.ui.editor.graph.reset(),g({message:mxResources.get("readOnly")})}catch(V){k(V)}};
-DriveClient.prototype.insertFile=function(f,c,l,p,q,v,D){v=null!=v?v:this.xmlMimeType;f={mimeType:v,title:f};null!=l&&(f.parents=[{kind:"drive#fileLink",id:l}]);this.executeRequest(this.createUploadRequest(null,f,c,!1,D),mxUtils.bind(this,function(G){v==this.libraryMimeType?p(new DriveLibrary(this.ui,c,G)):0==G?null!=q&&q({message:mxResources.get("errorSavingFile")}):p(new DriveFile(this.ui,c,G))}),q)};DriveClient.prototype.createUploadRequest=function(f,c,l,p,q,v,D){q=null!=q?q:!1;var G={"Content-Type":'multipart/mixed; boundary="-------314159265358979323846"'};
-null!=v&&(G["If-Match"]=v);f={fullUrl:"https://content.googleapis.com/upload/drive/v2/files"+(null!=f?"/"+f:"")+"?uploadType=multipart&supportsAllDrives=true&enforceSingleParent=true&fields="+this.allFields,method:null!=f?"PUT":"POST",headers:G,params:"\r\n---------314159265358979323846\r\nContent-Type: application/json\r\n\r\n"+JSON.stringify(c)+"\r\n---------314159265358979323846\r\nContent-Type: application/octect-stream\r\nContent-Transfer-Encoding: base64\r\n\r\n"+(null!=l?q?l:!window.btoa||
-mxClient.IS_IE||mxClient.IS_IE11?Base64.encode(l):Graph.base64EncodeUnicode(l):"")+"\r\n---------314159265358979323846--"};p||(f.fullUrl+="&newRevision=false");D&&(f.fullUrl+="&pinned=true");return f};DriveClient.prototype.createLinkPicker=function(){var f=e.linkPicker;if(null==f||e.linkPickerToken!=b){e.linkPickerToken=b;f=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setSelectFolderEnabled(!0);var c=(new google.picker.DocsView).setIncludeFolders(!0).setSelectFolderEnabled(!0),
+method:"PUT",contentType:"application/json; charset=UTF-8",params:c}};DriveClient.prototype.getLibrary=function(f,c,l){return this.getFile(f,c,l,!0,!0)};DriveClient.prototype.loadDescriptor=function(f,c,l,p){this.executeRequest({url:"/files/"+f+"?supportsAllDrives=true&fields="+(null!=p?p:this.allFields)},c,l)};DriveClient.prototype.listFiles=function(f,c,l,p,v){this.executeRequest({url:"/files?supportsAllDrives=true&includeItemsFromAllDrives=true&q="+encodeURIComponent("(mimeType contains '"+this.xmlMimeType+
+"') "+(f?" and (title contains '"+f+"')":"")+(c?" and (modifiedDate > '"+c.toISOString()+"')":"")+(l?" and ('me' in owners)":""))+"&orderBy=modifiedDate desc,title"},p,v)};DriveClient.prototype.getCustomProperty=function(f,c){f=f.properties;var l=null;if(null!=f)for(var p=0;p<f.length;p++)if(f[p].key==c){l=f[p].value;break}return l};DriveClient.prototype.getFile=function(f,c,l,p,v){p=null!=p?p:!1;v=null!=v?v:!1;null!=urlParams.rev?this.executeRequest({url:"/files/"+f+"/revisions/"+urlParams.rev+"?supportsAllDrives=true"},
+mxUtils.bind(this,function(t){t.title=t.originalFilename;t.headRevisionId=t.id;t.id=f;this.getXmlFile(t,c,l)}),l):this.loadDescriptor(f,mxUtils.bind(this,function(t){try{if(null!=this.user){var E=/\.png$/i.test(t.title);/\.v(dx|sdx?)$/i.test(t.title)||/\.gliffy$/i.test(t.title)||!this.ui.useCanvasForExport&&E?this.ui.convertFile(t.downloadUrl,t.title,t.mimeType,this.extension,c,l,null,{Authorization:"Bearer "+b}):p||v||t.mimeType==this.libraryMimeType||t.mimeType==this.xmlMimeType?this.getXmlFile(t,
+c,l,!0,v):this.getXmlFile(t,c,l)}else l({message:mxResources.get("loggedOut")})}catch(H){if(null!=l)l(H);else throw H;}}),l)};DriveClient.prototype.isGoogleRealtimeMimeType=function(f){return null!=f&&"application/vnd.jgraph.mxfile."==f.substring(0,30)};DriveClient.prototype.getXmlFile=function(f,c,l,p,v){try{var t={Authorization:"Bearer "+b},E=f.downloadUrl;if(null==E)null!=l&&l({message:mxResources.get("exportOptionsDisabledDetails")});else{var H=0,B=mxUtils.bind(this,function(){this.ui.editor.loadUrl(E,
+mxUtils.bind(this,function(d){try{if(null==d)l({message:mxResources.get("invalidOrMissingFile")});else if(f.mimeType==this.libraryMimeType||v)f.mimeType!=this.libraryMimeType||v?c(new DriveLibrary(this.ui,d,f)):l({message:mxResources.get("notADiagramFile")});else{var g=!1;if(/\.png$/i.test(f.title)){var k=d.lastIndexOf(",");if(0<k){var m=this.ui.extractGraphModelFromPng(d);if(null!=m&&0<m.length)d=m;else try{m=d.substring(k+1);var u=!window.atob||mxClient.IS_IE||mxClient.IS_IE11?Base64.decode(m):
+atob(m),x=this.ui.editor.extractGraphModel(mxUtils.parseXml(u).documentElement,!0);null==x||0<x.getElementsByTagName("parsererror").length?g=!0:d=u}catch(A){g=!0}}}else/\.pdf$/i.test(f.title)?(m=Editor.extractGraphModelFromPdf(d),null!=m&&0<m.length&&(g=!0,d=m)):"data:image/png;base64,PG14ZmlsZS"==d.substring(0,32)&&(u=d.substring(22),d=window.atob&&!mxClient.IS_SF?atob(u):Base64.decode(u));Graph.fileSupport&&(new XMLHttpRequest).upload&&this.ui.isRemoteFileFormat(d,E)?this.ui.parseFileData(d,mxUtils.bind(this,
+function(A){try{4==A.readyState&&(200<=A.status&&299>=A.status?c(new LocalFile(this.ui,A.responseText,f.title+this.extension,!0)):null!=l&&l({message:mxResources.get("errorLoadingFile")}))}catch(I){if(null!=l)l(I);else throw I;}}),f.title):c(g?new LocalFile(this.ui,d,f.title,!0):new DriveFile(this.ui,d,f))}}catch(A){if(null!=l)l(A);else throw A;}}),mxUtils.bind(this,function(d,g){if(H<this.maxRetries&&null!=g&&403==g.getStatus())H++,window.setTimeout(B,2*H*this.coolOff*(1+.1*(Math.random()-.5)));
+else if(null!=l)l(d);else throw d;}),null!=f.mimeType&&"image/"==f.mimeType.substring(0,6)&&"image/svg"!=f.mimeType.substring(0,9)||/\.png$/i.test(f.title)||/\.jpe?g$/i.test(f.title)||/\.pdf$/i.test(f.title),null,null,null,t)});B()}}catch(d){if(null!=l)l(d);else throw d;}};DriveClient.prototype.saveFile=function(f,c,l,p,v,t,E,H,B){try{var d=0;f.saveLevel=1;var g=mxUtils.bind(this,function(U){if(null!=p)p(U);else throw U;}),k=mxUtils.bind(this,function(U){g(U);try{EditorUi.logError(U.message,null,
+null,null,U)}catch(O){}});if(f.isEditable()&&null!=f.desc){var m=Date.now(),u=f.desc.etag,x=f.desc.modifiedDate,A=f.desc.headRevisionId,I=this.ui.useCanvasForExport&&/(\.png)$/i.test(f.getTitle());t=null!=t?t:!1;var F=null,C=!1,P={mimeType:f.desc.mimeType,title:f.getTitle()};if(this.isGoogleRealtimeMimeType(P.mimeType))P.mimeType=this.xmlMimeType,F=f.desc,C=c=!0;else if("application/octet-stream"==P.mimeType||"1"==urlParams["override-mime"]&&P.mimeType!=this.xmlMimeType)P.mimeType=this.xmlMimeType;
+var R=mxUtils.bind(this,function(U,O,V){try{f.saveLevel=3;var q=f.getData(),y=null,D=null;f.constructor==DriveFile&&(null==H&&(H=[]),null==f.getChannelId()&&H.push({key:"channel",value:Editor.guid(32)}),null==f.getChannelKey()&&H.push({key:"key",value:Editor.guid(32)}),B=null!=B?B:Editor.guid(32),H.push({key:"secret",value:B}),D=this.ui.getPagesForXml(q),y=this.ui.getHashValueForPages(D),H.push({key:"checksum",value:B+":"+y}));V||(null!=U||t||(U=this.placeholderThumbnail,O=this.placeholderMimeType),
+null!=U&&null!=O&&(P.thumbnail={image:U,mimeType:O}));var J=mxUtils.bind(this,function(n){try{if(f.saveDelay=Date.now()-m,f.saveLevel=null,l(n,q,D,y),null!=F){this.executeRequest({url:"/files/"+F.id+"/revisions/"+F.headRevisionId+"?supportsAllDrives=true"},mxUtils.bind(this,mxUtils.bind(this,function(z){z.pinned=!0;this.executeRequest({url:"/files/"+F.id+"/revisions/"+F.headRevisionId,method:"PUT",params:z})})));try{EditorUi.logEvent({category:f.convertedFrom+"-CONVERT-FILE-"+f.getHash(),action:"from_"+
+F.id+"."+F.headRevisionId+"-to_"+f.desc.id+"."+f.desc.headRevisionId,label:null!=this.user?"user_"+this.user.id:"nouser"+(null!=f.sync?"-client_"+f.sync.clientId:"nosync")})}catch(z){}}}catch(z){k(z)}}),L=mxUtils.bind(this,function(n,z){f.saveLevel=4;try{null!=H&&(P.properties=H);var G=E||f.constructor!=DriveFile||"manual"!=DrawioFile.SYNC&&"auto"!=DrawioFile.SYNC?null:f.getCurrentEtag(),M=mxUtils.bind(this,function(S){f.saveLevel=5;try{var T=f.desc.mimeType!=this.xmlMimeType&&f.desc.mimeType!=this.mimeType&&
+f.desc.mimeType!=this.libraryMimeType,W=!0,X=null;try{X=window.setTimeout(mxUtils.bind(this,function(){W=!1;g({code:App.ERROR_TIMEOUT})}),5*this.ui.timeout)}catch(Z){}this.executeRequest(this.createUploadRequest(f.getId(),P,n,c||S||T,z,S?null:G,C),mxUtils.bind(this,function(Z){window.clearTimeout(X);if(W){var Y=null!=Z?(new Date(Z.modifiedDate)).getTime()-(new Date(x)).getTime():0;if(0>=Y||u==Z.etag||c&&A==Z.headRevisionId){var ba=[];null==Z?ba.push("Empty response"):(0>=Y&&ba.push("Invalid modified time"),
+u==Z.etag&&ba.push("Stale etag"),c&&A==Z.headRevisionId&&ba.push("Stale revision"),G=Z.etag);0==ba.length&&ba.push(mxResources.get("unknownError"));Y=ba.join(", ");if(d<this.staleEtagMaxRetries)d++,ba=Math.round(Math.pow(2,d)*this.coolOff*(1+.1*(Math.random()-.5))),window.setTimeout(M,ba),"1"==urlParams.test&&EditorUi.debug("DriveClient: Invalid response","retry",d,"delay",ba,"rev",null!=Z?Z.headRevisionId:"null","errors",Y);else{f.saveLevel=12;g({message:mxResources.get("error")+": "+Y},Z);try{EditorUi.logError("Saving to Google Drive failed",
+null,"id-"+f.desc.id+"-from-"+A+"."+x+"-"+this.ui.hashValue(u)+"-to-"+Z.headRevisionId+"."+Z.modifiedDate+"-"+this.ui.hashValue(Z.etag)+(0<Y.length?"-errors-"+Y:""),"user-"+(null!=this.user?this.user.id:"nouser")+(null!=f.sync?"-client_"+f.sync.clientId:"-nosync")+"-retries-"+d+"-delay-"+(Date.now()-m))}catch(da){}}}else J(Z)}}),mxUtils.bind(this,function(Z){window.clearTimeout(X);if(W){f.saveLevel=6;try{f.isConflict(Z)?this.executeRequest({url:"/files/"+f.getId()+"?supportsAllDrives=true&fields="+
+this.catchupFields},mxUtils.bind(this,function(Y){f.saveLevel=7;try{if(null!=Y&&Y.etag==G)if(d<this.staleEtagMaxRetries){d++;var ba=Math.round(2*d*this.coolOff*(1+.1*(Math.random()-.5)));window.setTimeout(N,ba);"1"==urlParams.test&&EditorUi.debug("DriveClient: Stale Etag Detected","retry",d,"delay",ba)}else{N(!0);try{EditorUi.logEvent({category:"STALE-ETAG-SAVE-FILE-"+f.getHash(),action:"rev_"+f.desc.headRevisionId+"-mod_"+f.desc.modifiedDate+"-size_"+f.getSize()+"-mime_"+f.desc.mimeType+(this.ui.editor.autosave?
+"":"-nosave")+(f.isAutosave()?"":"-noauto")+(f.changeListenerEnabled?"":"-nolisten")+(f.inConflictState?"-conflict":"")+(f.invalidChecksum?"-invalid":""),label:(null!=this.user?"user_"+this.user.id:"nouser")+(null!=f.sync?"-client_"+f.sync.clientId:"-nosync")})}catch(da){}}else"1"==urlParams.test&&Y.headRevisionId==A&&EditorUi.debug("DriveClient: Remote Etag Changed","local",G,"remote",Y.etag,"rev",f.desc.headRevisionId,"response",[Y],"file",[f]),g(Z,Y)}catch(da){k(da)}}),mxUtils.bind(this,function(){g(Z)})):
+g(Z)}catch(Y){k(Y)}}}))}catch(Z){k(Z)}}),N=mxUtils.bind(this,function(S){f.saveLevel=9;if(S||null==G)M(S);else{var T=!0,W=null;try{W=window.setTimeout(mxUtils.bind(this,function(){T=!1;g({code:App.ERROR_TIMEOUT})}),3*this.ui.timeout)}catch(X){}this.executeRequest({url:"/files/"+f.getId()+"?supportsAllDrives=true&fields="+this.catchupFields},mxUtils.bind(this,function(X){window.clearTimeout(W);if(T){f.saveLevel=10;try{null!=X&&X.headRevisionId==A?("1"==urlParams.test&&G!=X.etag&&EditorUi.debug("DriveClient: Preflight Etag Update",
+"from",G,"to",X.etag,"rev",f.desc.headRevisionId,"response",[X],"file",[f]),G=X.etag,M(S)):g({error:{code:412}},X)}catch(Z){k(Z)}}}),mxUtils.bind(this,function(X){window.clearTimeout(W);T&&(f.saveLevel=11,g(X))}))}});if(I&&null==U){f.saveLevel=8;var Q=new Image;Q.onload=mxUtils.bind(this,function(){try{var S=this.thumbnailWidth/Q.width,T=document.createElement("canvas");T.width=this.thumbnailWidth;T.height=Math.floor(Q.height*S);T.getContext("2d").drawImage(Q,0,0,T.width,T.height);var W=T.toDataURL();
+W=W.substring(W.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_");P.thumbnail={image:W,mimeType:"image/png"};N(!1)}catch(X){try{N(!1)}catch(Z){k(Z)}}});Q.src="data:image/png;base64,"+n}else N(!1)}catch(S){k(S)}});if(I){var K=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(n){L(n,!0)}),g,this.ui.getCurrentFile()!=f?q:null,K.scale,K.border)}else L(q,!1)}catch(n){k(n)}});try{f.saveLevel=2,(t||I||f.constructor==DriveLibrary||!this.enableThumbnails||
+"0"==urlParams.thumb||null!=P.mimeType&&"application/vnd.jgraph.mxfile"!=P.mimeType.substring(0,29)||!this.ui.getThumbnail(this.thumbnailWidth,mxUtils.bind(this,function(U){try{var O=null;try{null!=U&&(O=U.toDataURL("image/png")),null!=O&&(O=O.length>this.maxThumbnailSize?null:O.substring(O.indexOf(",")+1).replace(/\+/g,"-").replace(/\//g,"_"))}catch(V){O=null}R(O,"image/png")}catch(V){k(V)}}),20))&&R(null,null,f.constructor!=DriveLibrary)}catch(U){k(U)}}else this.ui.editor.graph.reset(),g({message:mxResources.get("readOnly")})}catch(U){k(U)}};
+DriveClient.prototype.insertFile=function(f,c,l,p,v,t,E){t=null!=t?t:this.xmlMimeType;f={mimeType:t,title:f};null!=l&&(f.parents=[{kind:"drive#fileLink",id:l}]);this.executeRequest(this.createUploadRequest(null,f,c,!1,E),mxUtils.bind(this,function(H){t==this.libraryMimeType?p(new DriveLibrary(this.ui,c,H)):0==H?null!=v&&v({message:mxResources.get("errorSavingFile")}):p(new DriveFile(this.ui,c,H))}),v)};DriveClient.prototype.createUploadRequest=function(f,c,l,p,v,t,E){v=null!=v?v:!1;var H={"Content-Type":'multipart/mixed; boundary="-------314159265358979323846"'};
+null!=t&&(H["If-Match"]=t);f={fullUrl:"https://content.googleapis.com/upload/drive/v2/files"+(null!=f?"/"+f:"")+"?uploadType=multipart&supportsAllDrives=true&enforceSingleParent=true&fields="+this.allFields,method:null!=f?"PUT":"POST",headers:H,params:"\r\n---------314159265358979323846\r\nContent-Type: application/json\r\n\r\n"+JSON.stringify(c)+"\r\n---------314159265358979323846\r\nContent-Type: application/octect-stream\r\nContent-Transfer-Encoding: base64\r\n\r\n"+(null!=l?v?l:!window.btoa||
+mxClient.IS_IE||mxClient.IS_IE11?Base64.encode(l):Graph.base64EncodeUnicode(l):"")+"\r\n---------314159265358979323846--"};p||(f.fullUrl+="&newRevision=false");E&&(f.fullUrl+="&pinned=true");return f};DriveClient.prototype.createLinkPicker=function(){var f=e.linkPicker;if(null==f||e.linkPickerToken!=b){e.linkPickerToken=b;f=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setSelectFolderEnabled(!0);var c=(new google.picker.DocsView).setIncludeFolders(!0).setSelectFolderEnabled(!0),
l=(new google.picker.DocsView).setIncludeFolders(!0).setEnableDrives(!0).setSelectFolderEnabled(!0);f=(new google.picker.PickerBuilder).setAppId(this.appId).setLocale(mxLanguage).setOAuthToken(e.linkPickerToken).enableFeature(google.picker.Feature.SUPPORT_DRIVES).addView(f).addView(c).addView(l).addView(google.picker.ViewId.RECENTLY_PICKED)}return f};DriveClient.prototype.pickFile=function(f,c,l){this.filePickerCallback=null!=f?f:mxUtils.bind(this,function(p){this.ui.loadFile("G"+p)});this.filePicked=
-mxUtils.bind(this,function(p){p.action==google.picker.Action.PICKED&&this.filePickerCallback(p.docs[0].id,p.docs[0])});this.ui.spinner.spin(document.body,mxResources.get("authorizing"))&&this.execute(mxUtils.bind(this,function(){try{this.ui.spinner.stop();var p=c?"genericPicker":"filePicker",q=mxUtils.bind(this,function(g){"picker modal-dialog-bg picker-dialog-bg"==mxEvent.getSource(g).className&&(mxEvent.removeListener(document,"click",q),this[p].setVisible(!1),l&&l())});if(null==e[p]||e[p+"Token"]!=
-b){e[p+"Token"]=b;var v=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0),D=(new google.picker.DocsView).setIncludeFolders(!0),G=(new google.picker.DocsView).setEnableDrives(!0).setIncludeFolders(!0),B=(new google.picker.DocsUploadView).setIncludeFolders(!0);c?(v.setMimeTypes("*/*"),D.setMimeTypes("*/*"),G.setMimeTypes("*/*")):(v.setMimeTypes(this.mimeTypes),D.setMimeTypes(this.mimeTypes),G.setMimeTypes(this.mimeTypes));e[p]=(new google.picker.PickerBuilder).setOAuthToken(e[p+
-"Token"]).setLocale(mxLanguage).setAppId(this.appId).enableFeature(google.picker.Feature.SUPPORT_DRIVES).addView(v).addView(D).addView(G).addView(google.picker.ViewId.RECENTLY_PICKED).addView(B);if(urlParams.gPickerSize){var d=urlParams.gPickerSize.split(",");e[p]=e[p].setSize(d[0],d[1])}urlParams.topBaseUrl&&(e[p]=e[p].setOrigin(decodeURIComponent(urlParams.topBaseUrl)));e[p]=e[p].setCallback(mxUtils.bind(this,function(g){if(g.action==google.picker.Action.PICKED||g.action==google.picker.Action.CANCEL)mxEvent.removeListener(document,
-"click",q),l&&g.action==google.picker.Action.CANCEL&&l();g.action==google.picker.Action.PICKED&&this.filePicked(g)})).build()}mxEvent.addListener(document,"click",q);e[p].setVisible(!0)}catch(g){this.ui.spinner.stop(),this.ui.handleError(g)}}))};DriveClient.prototype.pickFolder=function(f,c){this.folderPickerCallback=f;var l=mxUtils.bind(this,function(){try{this.ui.spinner.spin(document.body,mxResources.get("authorizing"))&&this.execute(mxUtils.bind(this,function(){try{this.ui.spinner.stop();var p=
-mxUtils.bind(this,function(B){"picker modal-dialog-bg picker-dialog-bg"==mxEvent.getSource(B).className&&(mxEvent.removeListener(document,"click",p),e.folderPicker.setVisible(!1))});if(null==e.folderPicker||e.folderPickerToken!=b){e.folderPickerToken=b;var q=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setSelectFolderEnabled(!0).setMimeTypes("application/vnd.google-apps.folder"),v=(new google.picker.DocsView).setIncludeFolders(!0).setSelectFolderEnabled(!0).setMimeTypes("application/vnd.google-apps.folder"),
-D=(new google.picker.DocsView).setIncludeFolders(!0).setEnableDrives(!0).setSelectFolderEnabled(!0).setMimeTypes("application/vnd.google-apps.folder");e.folderPicker=(new google.picker.PickerBuilder).setSelectableMimeTypes("application/vnd.google-apps.folder").setOAuthToken(e.folderPickerToken).setLocale(mxLanguage).setAppId(this.appId).enableFeature(google.picker.Feature.SUPPORT_DRIVES).addView(q).addView(v).addView(D).addView(google.picker.ViewId.RECENTLY_PICKED).setTitle(mxResources.get("pickFolder"));
-if(urlParams.gPickerSize){var G=urlParams.gPickerSize.split(",");e.folderPicker=e.folderPicker.setSize(G[0],G[1])}urlParams.topBaseUrl&&(e.folderPicker=e.folderPicker.setOrigin(decodeURIComponent(urlParams.topBaseUrl)));e.folderPicker=e.folderPicker.setCallback(mxUtils.bind(this,function(B){B.action!=google.picker.Action.PICKED&&B.action!=google.picker.Action.CANCEL||mxEvent.removeListener(document,"click",p);this.folderPickerCallback(B)})).build()}mxEvent.addListener(document,"click",p);e.folderPicker.setVisible(!0)}catch(B){this.ui.spinner.stop(),
+mxUtils.bind(this,function(p){p.action==google.picker.Action.PICKED&&this.filePickerCallback(p.docs[0].id,p.docs[0])});this.ui.spinner.spin(document.body,mxResources.get("authorizing"))&&this.execute(mxUtils.bind(this,function(){try{this.ui.spinner.stop();var p=c?"genericPicker":"filePicker",v=mxUtils.bind(this,function(g){"picker modal-dialog-bg picker-dialog-bg"==mxEvent.getSource(g).className&&(mxEvent.removeListener(document,"click",v),this[p].setVisible(!1),l&&l())});if(null==e[p]||e[p+"Token"]!=
+b){e[p+"Token"]=b;var t=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0),E=(new google.picker.DocsView).setIncludeFolders(!0),H=(new google.picker.DocsView).setEnableDrives(!0).setIncludeFolders(!0),B=(new google.picker.DocsUploadView).setIncludeFolders(!0);c?(t.setMimeTypes("*/*"),E.setMimeTypes("*/*"),H.setMimeTypes("*/*")):(t.setMimeTypes(this.mimeTypes),E.setMimeTypes(this.mimeTypes),H.setMimeTypes(this.mimeTypes));e[p]=(new google.picker.PickerBuilder).setOAuthToken(e[p+
+"Token"]).setLocale(mxLanguage).setAppId(this.appId).enableFeature(google.picker.Feature.SUPPORT_DRIVES).addView(t).addView(E).addView(H).addView(google.picker.ViewId.RECENTLY_PICKED).addView(B);if(urlParams.gPickerSize){var d=urlParams.gPickerSize.split(",");e[p]=e[p].setSize(d[0],d[1])}urlParams.topBaseUrl&&(e[p]=e[p].setOrigin(decodeURIComponent(urlParams.topBaseUrl)));e[p]=e[p].setCallback(mxUtils.bind(this,function(g){if(g.action==google.picker.Action.PICKED||g.action==google.picker.Action.CANCEL)mxEvent.removeListener(document,
+"click",v),l&&g.action==google.picker.Action.CANCEL&&l();g.action==google.picker.Action.PICKED&&this.filePicked(g)})).build()}mxEvent.addListener(document,"click",v);e[p].setVisible(!0)}catch(g){this.ui.spinner.stop(),this.ui.handleError(g)}}))};DriveClient.prototype.pickFolder=function(f,c){this.folderPickerCallback=f;var l=mxUtils.bind(this,function(){try{this.ui.spinner.spin(document.body,mxResources.get("authorizing"))&&this.execute(mxUtils.bind(this,function(){try{this.ui.spinner.stop();var p=
+mxUtils.bind(this,function(B){"picker modal-dialog-bg picker-dialog-bg"==mxEvent.getSource(B).className&&(mxEvent.removeListener(document,"click",p),e.folderPicker.setVisible(!1))});if(null==e.folderPicker||e.folderPickerToken!=b){e.folderPickerToken=b;var v=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setSelectFolderEnabled(!0).setMimeTypes("application/vnd.google-apps.folder"),t=(new google.picker.DocsView).setIncludeFolders(!0).setSelectFolderEnabled(!0).setMimeTypes("application/vnd.google-apps.folder"),
+E=(new google.picker.DocsView).setIncludeFolders(!0).setEnableDrives(!0).setSelectFolderEnabled(!0).setMimeTypes("application/vnd.google-apps.folder");e.folderPicker=(new google.picker.PickerBuilder).setSelectableMimeTypes("application/vnd.google-apps.folder").setOAuthToken(e.folderPickerToken).setLocale(mxLanguage).setAppId(this.appId).enableFeature(google.picker.Feature.SUPPORT_DRIVES).addView(v).addView(t).addView(E).addView(google.picker.ViewId.RECENTLY_PICKED).setTitle(mxResources.get("pickFolder"));
+if(urlParams.gPickerSize){var H=urlParams.gPickerSize.split(",");e.folderPicker=e.folderPicker.setSize(H[0],H[1])}urlParams.topBaseUrl&&(e.folderPicker=e.folderPicker.setOrigin(decodeURIComponent(urlParams.topBaseUrl)));e.folderPicker=e.folderPicker.setCallback(mxUtils.bind(this,function(B){B.action!=google.picker.Action.PICKED&&B.action!=google.picker.Action.CANCEL||mxEvent.removeListener(document,"click",p);this.folderPickerCallback(B)})).build()}mxEvent.addListener(document,"click",p);e.folderPicker.setVisible(!0)}catch(B){this.ui.spinner.stop(),
this.ui.handleError(B)}}))}catch(p){this.ui.handleError(p)}});c?l():this.ui.spinner.spin(document.body,mxResources.get("authorizing"))&&this.execute(mxUtils.bind(this,function(){try{this.ui.spinner.stop(),this.ui.confirm(mxResources.get("useRootFolder"),mxUtils.bind(this,function(){this.folderPickerCallback({action:google.picker.Action.PICKED,docs:[{type:"folder",id:"root"}]})}),mxUtils.bind(this,function(){l()}),mxResources.get("yes"),mxResources.get("noPickFolder")+"...",!0)}catch(p){this.ui.handleError(p)}}))};
-DriveClient.prototype.pickLibrary=function(f){this.filePickerCallback=f;this.filePicked=mxUtils.bind(this,function(c){c.action==google.picker.Action.PICKED?this.filePickerCallback(c.docs[0].id):c.action==google.picker.Action.CANCEL&&null==this.ui.getCurrentFile()&&this.ui.showSplash()});this.ui.spinner.spin(document.body,mxResources.get("authorizing"))&&this.execute(mxUtils.bind(this,function(){try{this.ui.spinner.stop();var c=mxUtils.bind(this,function(G){"picker modal-dialog-bg picker-dialog-bg"==
-mxEvent.getSource(G).className&&(mxEvent.removeListener(document,"click",c),e.libraryPicker.setVisible(!1))});if(null==e.libraryPicker||e.libraryPickerToken!=b){e.libraryPickerToken=b;var l=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setMimeTypes(this.libraryMimeType+",application/xml,text/plain,application/octet-stream"),p=(new google.picker.DocsView).setIncludeFolders(!0).setMimeTypes(this.libraryMimeType+",application/xml,text/plain,application/octet-stream"),
-q=(new google.picker.DocsView).setEnableDrives(!0).setIncludeFolders(!0).setMimeTypes(this.libraryMimeType+",application/xml,text/plain,application/octet-stream"),v=(new google.picker.DocsUploadView).setIncludeFolders(!0);e.libraryPicker=(new google.picker.PickerBuilder).setOAuthToken(e.libraryPickerToken).setLocale(mxLanguage).setAppId(this.appId).enableFeature(google.picker.Feature.SUPPORT_DRIVES).addView(l).addView(p).addView(q).addView(google.picker.ViewId.RECENTLY_PICKED).addView(v);if(urlParams.gPickerSize){var D=
-urlParams.gPickerSize.split(",");e.libraryPicker=e.libraryPicker.setSize(D[0],D[1])}urlParams.topBaseUrl&&(e.libraryPicker=e.libraryPicker.setOrigin(decodeURIComponent(urlParams.topBaseUrl)));e.libraryPicker=e.libraryPicker.setCallback(mxUtils.bind(this,function(G){G.action!=google.picker.Action.PICKED&&G.action!=google.picker.Action.CANCEL||mxEvent.removeListener(document,"click",c);G.action==google.picker.Action.PICKED&&this.filePicked(G)})).build()}mxEvent.addListener(document,"click",c);e.libraryPicker.setVisible(!0)}catch(G){this.ui.spinner.stop(),
-this.ui.handleError(G)}}))};DriveClient.prototype.showPermissions=function(f,c){var l=mxUtils.bind(this,function(){var p=new ConfirmDialog(this.ui,mxResources.get("googleSharingNotAvailable"),mxUtils.bind(this,function(){var q=null!=c?c.getFolderUrl():"https://drive.google.com/open?id="+f;this.ui.editor.graph.openLink(q)}),null,mxResources.get("open"),null,null,null,null,IMAGE_PATH+"/google-share.png");this.ui.showDialog(p.container,400,150,!0,!0);p.init()});this.sharingFailed?l():this.checkToken(mxUtils.bind(this,
-function(){try{var p=new gapi.drive.share.ShareClient(this.appId);p.setOAuthToken(b);p.setItemIds([f]);p.showSettingsDialog();"MutationObserver"in window&&(null!=this.sharingObserver&&(this.sharingObserver.disconnect(),this.sharingObserver=null),this.sharingObserver=new MutationObserver(mxUtils.bind(this,function(q){for(var v=!1,D=0;D<q.length;D++)for(var G=0;G<q[D].addedNodes.length;G++){var B=q[D].addedNodes[G];"BUTTON"==B.nodeName&&"ok"==B.getAttribute("name")&&null!=B.parentNode&&null!=B.parentNode.parentNode&&
-"dialog"==B.parentNode.parentNode.getAttribute("role")?(this.sharingFailed=!0,B.click(),l(),v=!0):"DIV"==B.nodeName&&"shr-q-shr-r-shr-xb"==B.className&&(v=!0)}v&&(this.sharingObserver.disconnect(),this.sharingObserver=null)})),this.sharingObserver.observe(document,{childList:!0,subtree:!0}))}catch(q){this.ui.handleError(q)}}))};DriveClient.prototype.clearPersistentToken=function(){var f=JSON.parse(this.getPersistentToken(!0))||{};delete f.current;delete f[this.userId];for(var c in f){f.current={userId:c,
+DriveClient.prototype.pickLibrary=function(f){this.filePickerCallback=f;this.filePicked=mxUtils.bind(this,function(c){c.action==google.picker.Action.PICKED?this.filePickerCallback(c.docs[0].id):c.action==google.picker.Action.CANCEL&&null==this.ui.getCurrentFile()&&this.ui.showSplash()});this.ui.spinner.spin(document.body,mxResources.get("authorizing"))&&this.execute(mxUtils.bind(this,function(){try{this.ui.spinner.stop();var c=mxUtils.bind(this,function(H){"picker modal-dialog-bg picker-dialog-bg"==
+mxEvent.getSource(H).className&&(mxEvent.removeListener(document,"click",c),e.libraryPicker.setVisible(!1))});if(null==e.libraryPicker||e.libraryPickerToken!=b){e.libraryPickerToken=b;var l=(new google.picker.DocsView(google.picker.ViewId.FOLDERS)).setParent("root").setIncludeFolders(!0).setMimeTypes(this.libraryMimeType+",application/xml,text/plain,application/octet-stream"),p=(new google.picker.DocsView).setIncludeFolders(!0).setMimeTypes(this.libraryMimeType+",application/xml,text/plain,application/octet-stream"),
+v=(new google.picker.DocsView).setEnableDrives(!0).setIncludeFolders(!0).setMimeTypes(this.libraryMimeType+",application/xml,text/plain,application/octet-stream"),t=(new google.picker.DocsUploadView).setIncludeFolders(!0);e.libraryPicker=(new google.picker.PickerBuilder).setOAuthToken(e.libraryPickerToken).setLocale(mxLanguage).setAppId(this.appId).enableFeature(google.picker.Feature.SUPPORT_DRIVES).addView(l).addView(p).addView(v).addView(google.picker.ViewId.RECENTLY_PICKED).addView(t);if(urlParams.gPickerSize){var E=
+urlParams.gPickerSize.split(",");e.libraryPicker=e.libraryPicker.setSize(E[0],E[1])}urlParams.topBaseUrl&&(e.libraryPicker=e.libraryPicker.setOrigin(decodeURIComponent(urlParams.topBaseUrl)));e.libraryPicker=e.libraryPicker.setCallback(mxUtils.bind(this,function(H){H.action!=google.picker.Action.PICKED&&H.action!=google.picker.Action.CANCEL||mxEvent.removeListener(document,"click",c);H.action==google.picker.Action.PICKED&&this.filePicked(H)})).build()}mxEvent.addListener(document,"click",c);e.libraryPicker.setVisible(!0)}catch(H){this.ui.spinner.stop(),
+this.ui.handleError(H)}}))};DriveClient.prototype.showPermissions=function(f,c){var l=mxUtils.bind(this,function(){var p=new ConfirmDialog(this.ui,mxResources.get("googleSharingNotAvailable"),mxUtils.bind(this,function(){var v=null!=c?c.getFolderUrl():"https://drive.google.com/open?id="+f;this.ui.editor.graph.openLink(v)}),null,mxResources.get("open"),null,null,null,null,IMAGE_PATH+"/google-share.png");this.ui.showDialog(p.container,400,150,!0,!0);p.init()});this.sharingFailed?l():this.checkToken(mxUtils.bind(this,
+function(){try{var p=new gapi.drive.share.ShareClient(this.appId);p.setOAuthToken(b);p.setItemIds([f]);p.showSettingsDialog();"MutationObserver"in window&&(null!=this.sharingObserver&&(this.sharingObserver.disconnect(),this.sharingObserver=null),this.sharingObserver=new MutationObserver(mxUtils.bind(this,function(v){for(var t=!1,E=0;E<v.length;E++)for(var H=0;H<v[E].addedNodes.length;H++){var B=v[E].addedNodes[H];"BUTTON"==B.nodeName&&"ok"==B.getAttribute("name")&&null!=B.parentNode&&null!=B.parentNode.parentNode&&
+"dialog"==B.parentNode.parentNode.getAttribute("role")?(this.sharingFailed=!0,B.click(),l(),t=!0):"DIV"==B.nodeName&&"shr-q-shr-r-shr-xb"==B.className&&(t=!0)}t&&(this.sharingObserver.disconnect(),this.sharingObserver=null)})),this.sharingObserver.observe(document,{childList:!0,subtree:!0}))}catch(v){this.ui.handleError(v)}}))};DriveClient.prototype.clearPersistentToken=function(){var f=JSON.parse(this.getPersistentToken(!0))||{};delete f.current;delete f[this.userId];for(var c in f){f.current={userId:c,
expires:0};break}DrawioClient.prototype.setPersistentToken.call(this,JSON.stringify(f))};DriveClient.prototype.setPersistentToken=function(f,c){var l=JSON.parse(this.getPersistentToken(!0))||{};f.userId=this.userId;l.current=f;l[this.userId]={user:this.user};DrawioClient.prototype.setPersistentToken.call(this,JSON.stringify(l),c)}})();DropboxFile=function(b,e,f){DrawioFile.call(this,b,e);this.stat=f};mxUtils.extend(DropboxFile,DrawioFile);DropboxFile.prototype.getId=function(){return this.stat.path_display.substring(1)};DropboxFile.prototype.getHash=function(){return"D"+encodeURIComponent(this.getId())};DropboxFile.prototype.getMode=function(){return App.MODE_DROPBOX};DropboxFile.prototype.isAutosaveOptional=function(){return!0};DropboxFile.prototype.getTitle=function(){return this.stat.name};
DropboxFile.prototype.isRenamable=function(){return!0};DropboxFile.prototype.getSize=function(){return this.stat.size};DropboxFile.prototype.isRevisionHistorySupported=function(){return!0};DropboxFile.prototype.getFileUrl=function(){return"https://www.dropbox.com/home/Apps"+this.ui.dropbox.appPath+this.stat.path_display};DropboxFile.prototype.getFolderUrl=function(){var b=this.getFileUrl();return b.substring(0,b.lastIndexOf("/"))};
-DropboxFile.prototype.getRevisions=function(b,e){var f=this.ui.dropbox.client.filesListRevisions({path:this.stat.path_lower,limit:100});f.then(mxUtils.bind(this,function(c){try{for(var l=[],p=c.entries.length-1;0<=p;p--)mxUtils.bind(this,function(q){l.push({modifiedDate:q.client_modified,fileSize:q.size,getXml:mxUtils.bind(this,function(v,D){this.ui.dropbox.readFile({path:this.stat.path_lower,rev:q.rev},v,D)}),getUrl:mxUtils.bind(this,function(v){return this.ui.getUrl(window.location.pathname+"?rev="+
-q.rev+"&chrome=0&nav=1&layers=1&edit=_blank"+(null!=v?"&page="+v:""))+window.location.hash})})})(c.entries[p]);b(l)}catch(q){e(q)}}));f["catch"](function(c){e(c)})};DropboxFile.prototype.getLatestVersion=function(b,e){this.ui.dropbox.getFile(this.getId(),b,e)};DropboxFile.prototype.updateDescriptor=function(b){this.stat=b.stat};DropboxFile.prototype.save=function(b,e,f,c,l){this.doSave(this.getTitle(),b,e,f,c,l)};DropboxFile.prototype.saveAs=function(b,e,f){this.doSave(b,!1,e,f)};
-DropboxFile.prototype.doSave=function(b,e,f,c,l,p){var q=this.stat.name;this.stat.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.stat.name=q;this.saveFile(b,e,f,c,l,p)}),c,l,p])};
-DropboxFile.prototype.saveFile=function(b,e,f,c){this.isEditable()?this.savingFile?null!=c&&c({code:App.ERROR_BUSY}):(e=mxUtils.bind(this,function(l){if(l)try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var p=mxUtils.bind(this,function(v){var D=this.stat.path_display.lastIndexOf("/");D=1<D?this.stat.path_display.substring(1,D+1):null;this.ui.dropbox.saveFile(b,v,mxUtils.bind(this,function(G){this.setModified(this.getShadowModified());this.savingFile=!1;this.stat=G;this.contentChanged();
-null!=f&&f()}),mxUtils.bind(this,function(G){this.savingFile=!1;null!=c&&c(G)}),D)});if(this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle())){var q=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(v){p(this.ui.base64ToBlob(v,"image/png"))}),c,this.ui.getCurrentFile()!=this?this.getData():null,q.scale,q.border)}else p(this.getData())}catch(v){if(this.savingFile=!1,null!=c)c(v);else throw v;}else null!=c&&c()}),this.getTitle()==b?e(!0):this.ui.dropbox.checkExists(b,
+DropboxFile.prototype.getRevisions=function(b,e){var f=this.ui.dropbox.client.filesListRevisions({path:this.stat.path_lower,limit:100});f.then(mxUtils.bind(this,function(c){try{for(var l=[],p=c.entries.length-1;0<=p;p--)mxUtils.bind(this,function(v){l.push({modifiedDate:v.client_modified,fileSize:v.size,getXml:mxUtils.bind(this,function(t,E){this.ui.dropbox.readFile({path:this.stat.path_lower,rev:v.rev},t,E)}),getUrl:mxUtils.bind(this,function(t){return this.ui.getUrl(window.location.pathname+"?rev="+
+v.rev+"&chrome=0&nav=1&layers=1&edit=_blank"+(null!=t?"&page="+t:""))+window.location.hash})})})(c.entries[p]);b(l)}catch(v){e(v)}}));f["catch"](function(c){e(c)})};DropboxFile.prototype.getLatestVersion=function(b,e){this.ui.dropbox.getFile(this.getId(),b,e)};DropboxFile.prototype.updateDescriptor=function(b){this.stat=b.stat};DropboxFile.prototype.save=function(b,e,f,c,l){this.doSave(this.getTitle(),b,e,f,c,l)};DropboxFile.prototype.saveAs=function(b,e,f){this.doSave(b,!1,e,f)};
+DropboxFile.prototype.doSave=function(b,e,f,c,l,p){var v=this.stat.name;this.stat.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.stat.name=v;this.saveFile(b,e,f,c,l,p)}),c,l,p])};
+DropboxFile.prototype.saveFile=function(b,e,f,c){this.isEditable()?this.savingFile?null!=c&&c({code:App.ERROR_BUSY}):(e=mxUtils.bind(this,function(l){if(l)try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var p=mxUtils.bind(this,function(t){var E=this.stat.path_display.lastIndexOf("/");E=1<E?this.stat.path_display.substring(1,E+1):null;this.ui.dropbox.saveFile(b,t,mxUtils.bind(this,function(H){this.setModified(this.getShadowModified());this.savingFile=!1;this.stat=H;this.contentChanged();
+null!=f&&f()}),mxUtils.bind(this,function(H){this.savingFile=!1;null!=c&&c(H)}),E)});if(this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle())){var v=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(t){p(this.ui.base64ToBlob(t,"image/png"))}),c,this.ui.getCurrentFile()!=this?this.getData():null,v.scale,v.border)}else p(this.getData())}catch(t){if(this.savingFile=!1,null!=c)c(t);else throw t;}else null!=c&&c()}),this.getTitle()==b?e(!0):this.ui.dropbox.checkExists(b,
e)):null!=f&&f()};DropboxFile.prototype.rename=function(b,e,f){this.ui.dropbox.renameFile(this,b,mxUtils.bind(this,function(c){this.hasSameExtension(b,this.getTitle())?(this.stat=c,this.descriptorChanged(),null!=e&&e()):(this.stat=c,this.descriptorChanged(),this.save(!0,e,f))}),f)};DropboxLibrary=function(b,e,f){DropboxFile.call(this,b,e,f)};mxUtils.extend(DropboxLibrary,DropboxFile);DropboxLibrary.prototype.isAutosave=function(){return!0};DropboxLibrary.prototype.doSave=function(b,e,f){this.saveFile(b,!1,e,f)};DropboxLibrary.prototype.open=function(){};(function(){var b=null;window.DropboxClient=function(e){DrawioClient.call(this,e,"dbauth");this.client=new Dropbox({clientId:this.clientId})};mxUtils.extend(DropboxClient,DrawioClient);DropboxClient.prototype.appPath="/drawio-diagrams/";DropboxClient.prototype.extension=".drawio";DropboxClient.prototype.writingFile=!1;DropboxClient.prototype.maxRetries=4;DropboxClient.prototype.clientId=window.DRAWIO_DROPBOX_ID;DropboxClient.prototype.redirectUri=window.DRAWIO_SERVER_URL+"dropbox";DropboxClient.prototype.logout=
-function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();this.setUser(null);b=null;this.client.authTokenRevoke().then(mxUtils.bind(this,function(){this.client.setAccessToken(null)}))};DropboxClient.prototype.updateUser=function(e,f,c){var l=!0,p=window.setTimeout(mxUtils.bind(this,function(){l=!1;f({code:App.ERROR_TIMEOUT})}),this.ui.timeout),q=this.client.usersGetCurrentAccount();
-q.then(mxUtils.bind(this,function(v){window.clearTimeout(p);l&&(this.setUser(new DrawioUser(v.account_id,v.email,v.name.display_name)),e())}));q["catch"](mxUtils.bind(this,function(v){window.clearTimeout(p);l&&(null==v||401!==v.status||c?f({message:mxResources.get("accessDenied")}):(this.setUser(null),this.client.setAccessToken(null),b=null,this.authenticate(mxUtils.bind(this,function(){this.updateUser(e,f,!0)}),f)))}))};DropboxClient.prototype.authenticate=function(e,f){(new mxXmlRequest(this.redirectUri+
-"?getState=1",null,"GET")).send(mxUtils.bind(this,function(c){200<=c.getStatus()&&299>=c.getStatus()?this.authenticateStep2(c.getText(),e,f):null!=f&&f(c)}),f)};DropboxClient.prototype.authenticateStep2=function(e,f,c){if(null==window.onDropboxCallback){var l=mxUtils.bind(this,function(){var p=!0;null!=this.getPersistentToken(!0)?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+e),null,"GET")).send(mxUtils.bind(this,function(q){if(200<=
-q.getStatus()&&299>=q.getStatus())try{b=JSON.parse(q.getText()).access_token,this.client.setAccessToken(b),this.setUser(null),f()}catch(v){c({message:mxResources.get("authFailed"),retry:l})}else this.clearPersistentToken(),this.setUser(null),b=null,this.client.setAccessToken(null),401==q.getStatus()?l():c({message:mxResources.get("accessDenied"),retry:l})}),c):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(q,v){null!=window.open("https://www.dropbox.com/oauth2/authorize?client_id="+this.clientId+
-(q?"&token_access_type=offline":"")+"&redirect_uri="+encodeURIComponent(this.redirectUri)+"&response_type=code&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+e),"dbauth")?window.onDropboxCallback=mxUtils.bind(this,function(D,G){if(p){window.onDropboxCallback=null;p=!1;try{null==D?c({message:mxResources.get("accessDenied"),retry:l}):(null!=v&&v(),b=D.access_token,this.client.setAccessToken(b),this.setUser(null),q&&this.setPersistentToken("remembered"),f())}catch(B){c(B)}finally{null!=
-G&&G.close()}}else null!=G&&G.close()}):c({message:mxResources.get("serviceUnavailableOrBlocked"),retry:l})}),mxUtils.bind(this,function(){p&&(window.onDropboxCallback=null,p=!1,c({message:mxResources.get("accessDenied"),retry:l}))}))});l()}else c({code:App.ERROR_BUSY})};DropboxClient.prototype.executePromise=function(e,f,c){var l=mxUtils.bind(this,function(q){var v=!0,D=window.setTimeout(mxUtils.bind(this,function(){v=!1;c({code:App.ERROR_TIMEOUT,retry:p})}),this.ui.timeout),G=e();G.then(mxUtils.bind(this,
-function(B){window.clearTimeout(D);v&&null!=f&&f(B)}));G["catch"](mxUtils.bind(this,function(B){window.clearTimeout(D);v&&(null==B||500!=B.status&&400!=B.status&&401!=B.status?c({message:mxResources.get("error")+" "+B.status}):(this.setUser(null),this.client.setAccessToken(null),b=null,q?c({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){p(!0)},c)})}):this.authenticate(function(){l(!0)},c)))}))}),p=mxUtils.bind(this,function(q){null==this.user?
-this.updateUser(function(){p(!0)},c,q):l(q)});null==b?this.authenticate(function(){p(!0)},c):p(!1)};DropboxClient.prototype.getLibrary=function(e,f,c){this.getFile(e,f,c,!0)};DropboxClient.prototype.getFile=function(e,f,c,l){l=null!=l?l:!1;var p=/\.png$/i.test(e);if(/^https:\/\//i.test(e)||/\.v(dx|sdx?)$/i.test(e)||/\.gliffy$/i.test(e)||/\.pdf$/i.test(e)||!this.ui.useCanvasForExport&&p){var q=mxUtils.bind(this,function(){var v=e.split("/");this.ui.convertFile(e,0<v.length?v[v.length-1]:e,null,this.extension,
-f,c)});null!=b?q():this.authenticate(q,c)}else q={path:"/"+e},null!=urlParams.rev&&(q.rev=urlParams.rev),this.readFile(q,mxUtils.bind(this,function(v,D){var G=null;if(0<(p?v.lastIndexOf(","):-1)){var B=this.ui.extractGraphModelFromPng(v);null!=B&&0<B.length?v=B:G=new LocalFile(this,v,e,!0)}f(null!=G?G:l?new DropboxLibrary(this.ui,v,D):new DropboxFile(this.ui,v,D))}),c,p)};DropboxClient.prototype.readFile=function(e,f,c,l){var p=mxUtils.bind(this,function(v){var D=!0,G=window.setTimeout(mxUtils.bind(this,
-function(){D=!1;c({code:App.ERROR_TIMEOUT})}),this.ui.timeout),B=this.client.filesGetMetadata({path:"/"+e.path.substring(1),include_deleted:!1});B.then(mxUtils.bind(this,function(d){}));B["catch"](function(d){window.clearTimeout(G);D&&null!=d&&409==d.status&&(D=!1,c({message:mxResources.get("fileNotFound")}))});B=this.client.filesDownload(e);B.then(mxUtils.bind(this,function(d){window.clearTimeout(G);if(D){D=!1;try{var g=new FileReader;g.onload=mxUtils.bind(this,function(k){f(g.result,d)});l?g.readAsDataURL(d.fileBlob):
-g.readAsText(d.fileBlob)}catch(k){c(k)}}}));B["catch"](mxUtils.bind(this,function(d){window.clearTimeout(G);D&&(D=!1,null==d||500!=d.status&&400!=d.status&&401!=d.status?c({message:mxResources.get("error")+" "+d.status}):(this.client.setAccessToken(null),this.setUser(null),b=null,v?c({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){q(!0)},c)})}):this.authenticate(function(){p(!0)},c)))}))}),q=mxUtils.bind(this,function(v){null==this.user?this.updateUser(function(){q(!0)},
-c,v):p(v)});null==b?this.authenticate(function(){q(!0)},c):q(!1)};DropboxClient.prototype.checkExists=function(e,f,c){var l=mxUtils.bind(this,function(){return this.client.filesGetMetadata({path:"/"+e.toLowerCase(),include_deleted:!1})});this.executePromise(l,mxUtils.bind(this,function(p){c?f(!1,!0,p):this.ui.confirm(mxResources.get("replaceIt",[e]),function(){f(!0,!0,p)},function(){f(!1,!0,p)})}),function(p){f(!0,!1)})};DropboxClient.prototype.renameFile=function(e,f,c,l){if(/[\\\/:\?\*"\|]/.test(f))l({message:mxResources.get("dropboxCharsNotAllowed")});
-else{if(null!=e&&null!=f){var p=e.stat.path_display.substring(1),q=p.lastIndexOf("/");0<q&&(f=p.substring(0,q+1)+f)}null!=e&&null!=f&&e.stat.path_lower.substring(1)!==f.toLowerCase()?this.checkExists(f,mxUtils.bind(this,function(v,D,G){v?(v=mxUtils.bind(this,function(B){B=mxUtils.bind(this,function(){return this.client.filesMove({from_path:e.stat.path_display,to_path:"/"+f,autorename:!1})});this.executePromise(B,c,l)}),D&&G.path_lower.substring(1)!==f.toLowerCase()?(D=mxUtils.bind(this,function(){return this.client.filesDelete({path:"/"+
-f.toLowerCase()})}),this.executePromise(D,v,l)):v()):l()})):l({message:mxResources.get("invalidName")})}};DropboxClient.prototype.insertLibrary=function(e,f,c,l){this.insertFile(e,f,c,l,!0)};DropboxClient.prototype.insertFile=function(e,f,c,l,p){p=null!=p?p:!1;this.checkExists(e,mxUtils.bind(this,function(q){q?this.saveFile(e,f,mxUtils.bind(this,function(v){p?c(new DropboxLibrary(this.ui,f,v)):c(new DropboxFile(this.ui,f,v))}),l):l()}))};DropboxClient.prototype.saveFile=function(e,f,c,l,p){if(/[\\\/:\?\*"\|]/.test(e))l({message:mxResources.get("dropboxCharsNotAllowed")});
-else if(15E7<=f.length)l({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(f.length)+" / 150 MB)"});else{p=null!=p?p:"";var q=mxUtils.bind(this,function(){return this.client.filesUpload({path:"/"+p+e,mode:{".tag":"overwrite"},mute:!0,contents:new Blob([f],{type:"text/plain"})})});this.executePromise(q,c,l)}};DropboxClient.prototype.pickLibrary=function(e){Dropbox.choose({linkType:"direct",cancel:mxUtils.bind(this,function(){}),success:mxUtils.bind(this,function(f){if(this.ui.spinner.spin(document.body,
-mxResources.get("loading"))){var c=mxUtils.bind(this,function(q){this.ui.spinner.stop();this.ui.handleError(q)}),l=null!=f[0].link?f[0].link.indexOf(this.appPath):-1;if(0<l){var p=decodeURIComponent(f[0].link.substring(l+this.appPath.length-1));this.readFile({path:p},mxUtils.bind(this,function(q,v){if(null!=v&&v.id==f[0].id)try{this.ui.spinner.stop(),e(p.substring(1),new DropboxLibrary(this.ui,q,v))}catch(D){this.ui.handleError(D)}else this.createLibrary(f[0],e,c)}),c)}else this.createLibrary(f[0],
-e,c)}})})};DropboxClient.prototype.createLibrary=function(e,f,c){this.ui.confirm(mxResources.get("note")+": "+mxResources.get("fileWillBeSavedInAppFolder",[e.name]),mxUtils.bind(this,function(){this.ui.editor.loadUrl(e.link,mxUtils.bind(this,function(l){this.insertFile(e.name,l,mxUtils.bind(this,function(p){try{this.ui.spinner.stop(),f(p.getHash().substring(1),p)}catch(q){c(q)}}),c,!0)}),c)}),mxUtils.bind(this,function(){this.ui.spinner.stop()}))};DropboxClient.prototype.pickFile=function(e,f){null!=
-Dropbox.choose?(e=null!=e?e:mxUtils.bind(this,function(c,l){this.ui.loadFile(null!=c?"D"+encodeURIComponent(c):l.getHash(),null,l)}),Dropbox.choose({linkType:"direct",cancel:mxUtils.bind(this,function(){}),success:mxUtils.bind(this,function(c){if(this.ui.spinner.spin(document.body,mxResources.get("loading")))if(f)this.ui.spinner.stop(),e(c[0].link);else{var l=mxUtils.bind(this,function(G){this.ui.spinner.stop();this.ui.handleError(G)}),p=mxUtils.bind(this,function(G,B){this.ui.spinner.stop();e(G,
-B)}),q=/\.png$/i.test(c[0].name);if(/\.vsdx$/i.test(c[0].name)||/\.gliffy$/i.test(c[0].name)||!this.ui.useCanvasForExport&&q)p(c[0].link);else{var v=null!=c[0].link?c[0].link.indexOf(this.appPath):-1;if(0<v){var D=decodeURIComponent(c[0].link.substring(v+this.appPath.length-1));this.readFile({path:D},mxUtils.bind(this,function(G,B){if(null!=B&&B.id==c[0].id){var d=q?G.lastIndexOf(","):-1;this.ui.spinner.stop();var g=null;0<d&&(d=this.ui.extractGraphModelFromPng(G),null!=d&&0<d.length?G=d:g=new LocalFile(this,
-G,D,!0));e(D.substring(1),null!=g?g:new DropboxFile(this.ui,G,B))}else this.createFile(c[0],p,l)}),l,q)}else this.createFile(c[0],p,l)}}})})):this.ui.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})};DropboxClient.prototype.createFile=function(e,f,c){var l=/(\.png)$/i.test(e.name);this.ui.editor.loadUrl(e.link,mxUtils.bind(this,function(p){null!=p&&0<p.length?this.ui.confirm(mxResources.get("note")+": "+mxResources.get("fileWillBeSavedInAppFolder",[e.name]),mxUtils.bind(this,
-function(){var q=l?p.lastIndexOf(","):-1;0<q&&(q=this.ui.extractGraphModelFromPng(p.substring(q+1)),null!=q&&0<q.length&&(p=q));this.insertFile(e.name,p,mxUtils.bind(this,function(v){f(e.name,v)}),c)}),mxUtils.bind(this,function(){this.ui.spinner.stop()})):(this.ui.spinner.stop(),c({message:mxResources.get("errorLoadingFile")}))}),c,l)}})();OneDriveFile=function(b,e,f){DrawioFile.call(this,b,e);this.meta=f};mxUtils.extend(OneDriveFile,DrawioFile);OneDriveFile.prototype.autosaveDelay=500;OneDriveFile.prototype.isRealtimeSupported=function(){return!0};
+function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));this.clearPersistentToken();this.setUser(null);b=null;this.client.authTokenRevoke().then(mxUtils.bind(this,function(){this.client.setAccessToken(null)}))};DropboxClient.prototype.updateUser=function(e,f,c){var l=!0,p=window.setTimeout(mxUtils.bind(this,function(){l=!1;f({code:App.ERROR_TIMEOUT})}),this.ui.timeout),v=this.client.usersGetCurrentAccount();
+v.then(mxUtils.bind(this,function(t){window.clearTimeout(p);l&&(this.setUser(new DrawioUser(t.account_id,t.email,t.name.display_name)),e())}));v["catch"](mxUtils.bind(this,function(t){window.clearTimeout(p);l&&(null==t||401!==t.status||c?f({message:mxResources.get("accessDenied")}):(this.setUser(null),this.client.setAccessToken(null),b=null,this.authenticate(mxUtils.bind(this,function(){this.updateUser(e,f,!0)}),f)))}))};DropboxClient.prototype.authenticate=function(e,f){(new mxXmlRequest(this.redirectUri+
+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(c){200<=c.getStatus()&&299>=c.getStatus()?this.authenticateStep2(c.getText(),e,f):null!=f&&f(c)}),f)};DropboxClient.prototype.authenticateStep2=function(e,f,c){if(null==window.onDropboxCallback){var l=mxUtils.bind(this,function(){var p=!0;null!=this.getPersistentToken(!0)?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+e),null,"GET")).send(mxUtils.bind(this,function(v){if(200<=
+v.getStatus()&&299>=v.getStatus())try{b=JSON.parse(v.getText()).access_token,this.client.setAccessToken(b),this.setUser(null),f()}catch(t){c({message:mxResources.get("authFailed"),retry:l})}else this.clearPersistentToken(),this.setUser(null),b=null,this.client.setAccessToken(null),401==v.getStatus()?l():c({message:mxResources.get("accessDenied"),retry:l})}),c):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(v,t){null!=window.open("https://www.dropbox.com/oauth2/authorize?client_id="+this.clientId+
+(v?"&token_access_type=offline":"")+"&redirect_uri="+encodeURIComponent(this.redirectUri)+"&response_type=code&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+e),"dbauth")?window.onDropboxCallback=mxUtils.bind(this,function(E,H){if(p){window.onDropboxCallback=null;p=!1;try{null==E?c({message:mxResources.get("accessDenied"),retry:l}):(null!=t&&t(),b=E.access_token,this.client.setAccessToken(b),this.setUser(null),v&&this.setPersistentToken("remembered"),f())}catch(B){c(B)}finally{null!=
+H&&H.close()}}else null!=H&&H.close()}):c({message:mxResources.get("serviceUnavailableOrBlocked"),retry:l})}),mxUtils.bind(this,function(){p&&(window.onDropboxCallback=null,p=!1,c({message:mxResources.get("accessDenied"),retry:l}))}))});l()}else c({code:App.ERROR_BUSY})};DropboxClient.prototype.executePromise=function(e,f,c){var l=mxUtils.bind(this,function(v){var t=!0,E=window.setTimeout(mxUtils.bind(this,function(){t=!1;c({code:App.ERROR_TIMEOUT,retry:p})}),this.ui.timeout),H=e();H.then(mxUtils.bind(this,
+function(B){window.clearTimeout(E);t&&null!=f&&f(B)}));H["catch"](mxUtils.bind(this,function(B){window.clearTimeout(E);t&&(null==B||500!=B.status&&400!=B.status&&401!=B.status?c({message:mxResources.get("error")+" "+B.status}):(this.setUser(null),this.client.setAccessToken(null),b=null,v?c({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){p(!0)},c)})}):this.authenticate(function(){l(!0)},c)))}))}),p=mxUtils.bind(this,function(v){null==this.user?
+this.updateUser(function(){p(!0)},c,v):l(v)});null==b?this.authenticate(function(){p(!0)},c):p(!1)};DropboxClient.prototype.getLibrary=function(e,f,c){this.getFile(e,f,c,!0)};DropboxClient.prototype.getFile=function(e,f,c,l){l=null!=l?l:!1;var p=/\.png$/i.test(e);if(/^https:\/\//i.test(e)||/\.v(dx|sdx?)$/i.test(e)||/\.gliffy$/i.test(e)||/\.pdf$/i.test(e)||!this.ui.useCanvasForExport&&p){var v=mxUtils.bind(this,function(){var t=e.split("/");this.ui.convertFile(e,0<t.length?t[t.length-1]:e,null,this.extension,
+f,c)});null!=b?v():this.authenticate(v,c)}else v={path:"/"+e},null!=urlParams.rev&&(v.rev=urlParams.rev),this.readFile(v,mxUtils.bind(this,function(t,E){var H=null;if(0<(p?t.lastIndexOf(","):-1)){var B=this.ui.extractGraphModelFromPng(t);null!=B&&0<B.length?t=B:H=new LocalFile(this,t,e,!0)}f(null!=H?H:l?new DropboxLibrary(this.ui,t,E):new DropboxFile(this.ui,t,E))}),c,p)};DropboxClient.prototype.readFile=function(e,f,c,l){var p=mxUtils.bind(this,function(t){var E=!0,H=window.setTimeout(mxUtils.bind(this,
+function(){E=!1;c({code:App.ERROR_TIMEOUT})}),this.ui.timeout),B=this.client.filesGetMetadata({path:"/"+e.path.substring(1),include_deleted:!1});B.then(mxUtils.bind(this,function(d){}));B["catch"](function(d){window.clearTimeout(H);E&&null!=d&&409==d.status&&(E=!1,c({message:mxResources.get("fileNotFound")}))});B=this.client.filesDownload(e);B.then(mxUtils.bind(this,function(d){window.clearTimeout(H);if(E){E=!1;try{var g=new FileReader;g.onload=mxUtils.bind(this,function(k){f(g.result,d)});l?g.readAsDataURL(d.fileBlob):
+g.readAsText(d.fileBlob)}catch(k){c(k)}}}));B["catch"](mxUtils.bind(this,function(d){window.clearTimeout(H);E&&(E=!1,null==d||500!=d.status&&400!=d.status&&401!=d.status?c({message:mxResources.get("error")+" "+d.status}):(this.client.setAccessToken(null),this.setUser(null),b=null,t?c({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){v(!0)},c)})}):this.authenticate(function(){p(!0)},c)))}))}),v=mxUtils.bind(this,function(t){null==this.user?this.updateUser(function(){v(!0)},
+c,t):p(t)});null==b?this.authenticate(function(){v(!0)},c):v(!1)};DropboxClient.prototype.checkExists=function(e,f,c){var l=mxUtils.bind(this,function(){return this.client.filesGetMetadata({path:"/"+e.toLowerCase(),include_deleted:!1})});this.executePromise(l,mxUtils.bind(this,function(p){c?f(!1,!0,p):this.ui.confirm(mxResources.get("replaceIt",[e]),function(){f(!0,!0,p)},function(){f(!1,!0,p)})}),function(p){f(!0,!1)})};DropboxClient.prototype.renameFile=function(e,f,c,l){if(/[\\\/:\?\*"\|]/.test(f))l({message:mxResources.get("dropboxCharsNotAllowed")});
+else{if(null!=e&&null!=f){var p=e.stat.path_display.substring(1),v=p.lastIndexOf("/");0<v&&(f=p.substring(0,v+1)+f)}null!=e&&null!=f&&e.stat.path_lower.substring(1)!==f.toLowerCase()?this.checkExists(f,mxUtils.bind(this,function(t,E,H){t?(t=mxUtils.bind(this,function(B){B=mxUtils.bind(this,function(){return this.client.filesMove({from_path:e.stat.path_display,to_path:"/"+f,autorename:!1})});this.executePromise(B,c,l)}),E&&H.path_lower.substring(1)!==f.toLowerCase()?(E=mxUtils.bind(this,function(){return this.client.filesDelete({path:"/"+
+f.toLowerCase()})}),this.executePromise(E,t,l)):t()):l()})):l({message:mxResources.get("invalidName")})}};DropboxClient.prototype.insertLibrary=function(e,f,c,l){this.insertFile(e,f,c,l,!0)};DropboxClient.prototype.insertFile=function(e,f,c,l,p){p=null!=p?p:!1;this.checkExists(e,mxUtils.bind(this,function(v){v?this.saveFile(e,f,mxUtils.bind(this,function(t){p?c(new DropboxLibrary(this.ui,f,t)):c(new DropboxFile(this.ui,f,t))}),l):l()}))};DropboxClient.prototype.saveFile=function(e,f,c,l,p){if(/[\\\/:\?\*"\|]/.test(e))l({message:mxResources.get("dropboxCharsNotAllowed")});
+else if(15E7<=f.length)l({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(f.length)+" / 150 MB)"});else{p=null!=p?p:"";var v=mxUtils.bind(this,function(){return this.client.filesUpload({path:"/"+p+e,mode:{".tag":"overwrite"},mute:!0,contents:new Blob([f],{type:"text/plain"})})});this.executePromise(v,c,l)}};DropboxClient.prototype.pickLibrary=function(e){Dropbox.choose({linkType:"direct",cancel:mxUtils.bind(this,function(){}),success:mxUtils.bind(this,function(f){if(this.ui.spinner.spin(document.body,
+mxResources.get("loading"))){var c=mxUtils.bind(this,function(v){this.ui.spinner.stop();this.ui.handleError(v)}),l=null!=f[0].link?f[0].link.indexOf(this.appPath):-1;if(0<l){var p=decodeURIComponent(f[0].link.substring(l+this.appPath.length-1));this.readFile({path:p},mxUtils.bind(this,function(v,t){if(null!=t&&t.id==f[0].id)try{this.ui.spinner.stop(),e(p.substring(1),new DropboxLibrary(this.ui,v,t))}catch(E){this.ui.handleError(E)}else this.createLibrary(f[0],e,c)}),c)}else this.createLibrary(f[0],
+e,c)}})})};DropboxClient.prototype.createLibrary=function(e,f,c){this.ui.confirm(mxResources.get("note")+": "+mxResources.get("fileWillBeSavedInAppFolder",[e.name]),mxUtils.bind(this,function(){this.ui.editor.loadUrl(e.link,mxUtils.bind(this,function(l){this.insertFile(e.name,l,mxUtils.bind(this,function(p){try{this.ui.spinner.stop(),f(p.getHash().substring(1),p)}catch(v){c(v)}}),c,!0)}),c)}),mxUtils.bind(this,function(){this.ui.spinner.stop()}))};DropboxClient.prototype.pickFile=function(e,f){null!=
+Dropbox.choose?(e=null!=e?e:mxUtils.bind(this,function(c,l){this.ui.loadFile(null!=c?"D"+encodeURIComponent(c):l.getHash(),null,l)}),Dropbox.choose({linkType:"direct",cancel:mxUtils.bind(this,function(){}),success:mxUtils.bind(this,function(c){if(this.ui.spinner.spin(document.body,mxResources.get("loading")))if(f)this.ui.spinner.stop(),e(c[0].link);else{var l=mxUtils.bind(this,function(H){this.ui.spinner.stop();this.ui.handleError(H)}),p=mxUtils.bind(this,function(H,B){this.ui.spinner.stop();e(H,
+B)}),v=/\.png$/i.test(c[0].name);if(/\.vsdx$/i.test(c[0].name)||/\.gliffy$/i.test(c[0].name)||!this.ui.useCanvasForExport&&v)p(c[0].link);else{var t=null!=c[0].link?c[0].link.indexOf(this.appPath):-1;if(0<t){var E=decodeURIComponent(c[0].link.substring(t+this.appPath.length-1));this.readFile({path:E},mxUtils.bind(this,function(H,B){if(null!=B&&B.id==c[0].id){var d=v?H.lastIndexOf(","):-1;this.ui.spinner.stop();var g=null;0<d&&(d=this.ui.extractGraphModelFromPng(H),null!=d&&0<d.length?H=d:g=new LocalFile(this,
+H,E,!0));e(E.substring(1),null!=g?g:new DropboxFile(this.ui,H,B))}else this.createFile(c[0],p,l)}),l,v)}else this.createFile(c[0],p,l)}}})})):this.ui.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})};DropboxClient.prototype.createFile=function(e,f,c){var l=/(\.png)$/i.test(e.name);this.ui.editor.loadUrl(e.link,mxUtils.bind(this,function(p){null!=p&&0<p.length?this.ui.confirm(mxResources.get("note")+": "+mxResources.get("fileWillBeSavedInAppFolder",[e.name]),mxUtils.bind(this,
+function(){var v=l?p.lastIndexOf(","):-1;0<v&&(v=this.ui.extractGraphModelFromPng(p.substring(v+1)),null!=v&&0<v.length&&(p=v));this.insertFile(e.name,p,mxUtils.bind(this,function(t){f(e.name,t)}),c)}),mxUtils.bind(this,function(){this.ui.spinner.stop()})):(this.ui.spinner.stop(),c({message:mxResources.get("errorLoadingFile")}))}),c,l)}})();OneDriveFile=function(b,e,f){DrawioFile.call(this,b,e);this.meta=f};mxUtils.extend(OneDriveFile,DrawioFile);OneDriveFile.prototype.autosaveDelay=500;OneDriveFile.prototype.isRealtimeSupported=function(){return!0};
OneDriveFile.prototype.getFileUrl=function(){var b=this.meta.webUrl;b=b.substring(0,b.lastIndexOf("/"));if(null!=this.meta.parentReference)try{if("personal"==this.meta.parentReference.driveType)b="https://onedrive.live.com/?cid="+encodeURIComponent(this.meta.parentReference.driveId)+"&id="+encodeURIComponent(this.meta.id);else if("documentLibrary"==this.meta.parentReference.driveType){var e=this.meta.parentReference.path;e=e.substring(e.indexOf("/root:")+6);var f=this.meta.webUrl;b=f.substring(0,
f.length-e.length-encodeURIComponent(this.meta.name).length-1);f=f.substring(f.indexOf("/",8));b=b+"/Forms/AllItems.aspx?id="+f+"&parent="+f.substring(0,f.lastIndexOf("/"))}else if("business"==this.meta.parentReference.driveType){b=this.meta["@microsoft.graph.downloadUrl"];var c=b.indexOf("/_layouts/15/download.aspx?");e=f=this.meta.webUrl;f=f.substring(8);f=f.substring(f.indexOf("/"));e=e.substring(0,e.lastIndexOf("/"));e=e.substring(e.indexOf("/",8));b=b.substring(0,c)+"/_layouts/15/onedrive.aspx?id="+
f+"&parent="+e}}catch(l){}return b};OneDriveFile.prototype.getFolderUrl=function(){var b=this.meta.webUrl,e=encodeURIComponent(this.meta.name);b.substring(b.length-e.length,b.length)==e&&(b=b.substring(0,b.length-e.length));return b};OneDriveFile.prototype.share=function(){this.ui.openLink(this.getFileUrl())};OneDriveFile.prototype.getId=function(){return this.getIdOf(this.meta)};OneDriveFile.prototype.getParentId=function(){return this.getIdOf(this.meta,!0)};
@@ -13786,47 +13830,47 @@ OneDriveFile.prototype.isAutosaveOptional=function(){return!0};OneDriveFile.prot
OneDriveFile.prototype.getCurrentUser=function(){return null!=this.ui.oneDrive?this.ui.oneDrive.user:null};OneDriveFile.prototype.loadDescriptor=function(b,e){this.ui.oneDrive.executeRequest(this.ui.oneDrive.getItemURL(this.getId()),mxUtils.bind(this,function(f){200<=f.getStatus()&&299>=f.getStatus()?b(JSON.parse(f.getText())):null!=e&&e()}),e)};OneDriveFile.prototype.getLatestVersion=function(b,e){this.ui.oneDrive.getFile(this.getId(),b,e)};OneDriveFile.prototype.getDescriptor=function(){return this.meta};
OneDriveFile.prototype.setDescriptor=function(b){this.meta=b};OneDriveFile.prototype.getDescriptorEtag=function(b){return b.eTag};OneDriveFile.prototype.setDescriptorEtag=function(b,e){b.eTag=e};OneDriveFile.prototype.loadPatchDescriptor=function(b,e){var f=this.ui.oneDrive.getItemURL(this.getId());this.ui.oneDrive.executeRequest(f+"?select=etag,file",mxUtils.bind(this,function(c){200<=c.getStatus()&&299>=c.getStatus()?b(JSON.parse(c.getText())):e(this.ui.oneDrive.parseRequestText(c))}),e)};
OneDriveFile.prototype.getChannelKey=function(){return"undefined"!==typeof CryptoJS?CryptoJS.MD5(this.meta.createdDateTime+(null!=this.meta.createdBy&&null!=this.meta.createdBy.user?this.meta.createdBy.user.id:"")).toString():null};OneDriveFile.prototype.getLastModifiedDate=function(){return new Date(this.meta.lastModifiedDateTime)};OneDriveFile.prototype.save=function(b,e,f,c,l){this.doSave(this.getTitle(),b,e,f,c,l)};OneDriveFile.prototype.saveAs=function(b,e,f){this.doSave(b,!1,e,f)};
-OneDriveFile.prototype.doSave=function(b,e,f,c,l,p){var q=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=q;this.saveFile(b,e,f,c,l,p)}),c,l,p])};
-OneDriveFile.prototype.saveFile=function(b,e,f,c,l,p){if(!this.isEditable())null!=f&&f();else if(!this.savingFile)if(this.getTitle()==b){var q=mxUtils.bind(this,function(){try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var v=p||this.constructor!=OneDriveFile||"manual"!=DrawioFile.SYNC&&"auto"!=DrawioFile.SYNC?null:this.getCurrentEtag(),D=this.meta;null!=this.sync&&this.sync.fileSaving();this.ui.oneDrive.saveFile(this,mxUtils.bind(this,function(G,B){this.setModified(this.getShadowModified());
-this.savingFile=!1;this.meta=G;this.fileSaved(B,D,mxUtils.bind(this,function(){this.contentChanged();null!=f&&f()}),c)}),mxUtils.bind(this,function(G,B){try{this.savingFile=!1,this.isConflict(B)?(this.inConflictState=!0,null!=this.sync?(this.savingFile=!0,this.sync.fileConflict(null,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){this.updateFileData();q()}),100+500*Math.random())}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}))):null!=c&&c()):null!=c&&
-c(G)}catch(d){if(this.savingFile=!1,null!=c)c(d);else throw d;}}),v)}catch(G){if(this.savingFile=!1,null!=c)c(G);else throw G;}});q()}else this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.ui.oneDrive.insertFile(b,this.getData(),mxUtils.bind(this,function(v){this.setModified(this.getShadowModified());this.savingFile=!1;null!=f&&f();this.ui.fileLoaded(v)}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}))};
+OneDriveFile.prototype.doSave=function(b,e,f,c,l,p){var v=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=v;this.saveFile(b,e,f,c,l,p)}),c,l,p])};
+OneDriveFile.prototype.saveFile=function(b,e,f,c,l,p){if(!this.isEditable())null!=f&&f();else if(!this.savingFile)if(this.getTitle()==b){var v=mxUtils.bind(this,function(){try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var t=p||this.constructor!=OneDriveFile||"manual"!=DrawioFile.SYNC&&"auto"!=DrawioFile.SYNC?null:this.getCurrentEtag(),E=this.meta;null!=this.sync&&this.sync.fileSaving();this.ui.oneDrive.saveFile(this,mxUtils.bind(this,function(H,B){this.setModified(this.getShadowModified());
+this.savingFile=!1;this.meta=H;this.fileSaved(B,E,mxUtils.bind(this,function(){this.contentChanged();null!=f&&f()}),c)}),mxUtils.bind(this,function(H,B){try{this.savingFile=!1,this.isConflict(B)?(this.inConflictState=!0,null!=this.sync?(this.savingFile=!0,this.sync.fileConflict(null,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){this.updateFileData();v()}),100+500*Math.random())}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}))):null!=c&&c()):null!=c&&
+c(H)}catch(d){if(this.savingFile=!1,null!=c)c(d);else throw d;}}),t)}catch(H){if(this.savingFile=!1,null!=c)c(H);else throw H;}});v()}else this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.ui.oneDrive.insertFile(b,this.getData(),mxUtils.bind(this,function(t){this.setModified(this.getShadowModified());this.savingFile=!1;null!=f&&f();this.ui.fileLoaded(t)}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}))};
OneDriveFile.prototype.rename=function(b,e,f){var c=this.getCurrentRevisionId();this.ui.oneDrive.renameFile(this,b,mxUtils.bind(this,function(l){this.hasSameExtension(b,this.getTitle())?(this.meta=l,this.descriptorChanged(),null!=this.sync&&this.sync.descriptorChanged(c),null!=e&&e(l)):(this.meta=l,null!=this.sync&&this.sync.descriptorChanged(c),this.save(!0,e,f))}),f)};
OneDriveFile.prototype.move=function(b,e,f){this.ui.oneDrive.moveFile(this.getId(),b,mxUtils.bind(this,function(c){this.meta=c;this.descriptorChanged();null!=e&&e(c)}),f)};OneDriveLibrary=function(b,e,f){OneDriveFile.call(this,b,e,f)};mxUtils.extend(OneDriveLibrary,OneDriveFile);OneDriveLibrary.prototype.isAutosave=function(){return!0};OneDriveLibrary.prototype.save=function(b,e,f){this.ui.oneDrive.saveFile(this,mxUtils.bind(this,function(c){this.desc=c;null!=e&&e(c)}),f)};OneDriveLibrary.prototype.open=function(){};(function(){var b=null;window.OneDriveClient=function(e,f,c,l){null==f&&null!=window.urlParams&&"1"==window.urlParams.extAuth&&(f=!0);null==c&&(c=null!=window.Editor?Editor.oneDriveInlinePicker:!0);null==l&&null!=window.urlParams&&"1"==window.urlParams.noLogoutOD&&(l=!0);DrawioClient.call(this,e,f?"oneDriveExtAuthInfo":"oneDriveAuthInfo");this.isExtAuth=f;this.inlinePicker=c;this.noLogout=l;e=JSON.parse(this.token);null!=e&&(this.endpointHint=null!=e.endpointHint?e.endpointHint.replace("/Documents",
"/_layouts/15/onedrive.aspx"):e.endpointHint)};mxUtils.extend(OneDriveClient,DrawioClient);OneDriveClient.prototype.clientId=window.DRAWIO_MSGRAPH_CLIENT_ID||("test.draw.io"==window.location.hostname?"95e4b4ed-ed5c-4a05-935b-b411b4562ef2":"24b129a6-117b-4394-bdc8-3b9955e5cdef");OneDriveClient.prototype.clientId="app.diagrams.net"==window.location.hostname?"b5ff67d6-3155-4fca-965a-59a3655c4476":OneDriveClient.prototype.clientId;OneDriveClient.prototype.clientId="viewer.diagrams.net"==window.location.hostname?
"417a451a-a343-4788-b6c1-901e63182565":OneDriveClient.prototype.clientId;OneDriveClient.prototype.scopes="user.read files.readwrite.all sites.read.all";OneDriveClient.prototype.redirectUri=window.DRAWIO_SERVER_URL+"microsoft";OneDriveClient.prototype.pickerRedirectUri=window.DRAWIO_SERVER_URL+"onedrive3.html";OneDriveClient.prototype.defEndpointHint="api.onedrive.com";OneDriveClient.prototype.endpointHint=OneDriveClient.prototype.defEndpointHint;OneDriveClient.prototype.rootId={id:"root",name:"root",
parentReference:{driveId:"me"}};OneDriveClient.prototype.extension=".drawio";OneDriveClient.prototype.baseUrl="https://graph.microsoft.com/v1.0";OneDriveClient.prototype.authUrl="https://login.microsoftonline.com/"+(window.DRAWIO_MSGRAPH_TENANT_ID||"common");OneDriveClient.prototype.emptyFn=function(){};OneDriveClient.prototype.invalidFilenameRegExs=[/[~"#%\*:<>\?\/\\{\|}]/,/^\.lock$/i,/^CON$/i,/^PRN$/i,/^AUX$/i,/^NUL$/i,/^COM\d$/i,/^LPT\d$/i,/^desktop\.ini$/i,/_vti_/i];OneDriveClient.prototype.isValidFilename=
function(e){if(null==e||""===e)return!1;for(var f=0;f<this.invalidFilenameRegExs.length;f++)if(this.invalidFilenameRegExs[f].test(e))return!1;return!0};OneDriveClient.prototype.get=function(e,f,c){e=new mxXmlRequest(e,null,"GET");e.setRequestHeaders=mxUtils.bind(this,function(l,p){l.setRequestHeader("Authorization","Bearer "+b)});e.send(f,c);return e};OneDriveClient.prototype.updateUser=function(e,f,c){var l=!0,p=window.setTimeout(mxUtils.bind(this,function(){l=!1;f({code:App.ERROR_TIMEOUT})}),this.ui.timeout);
-this.get(this.baseUrl+"/me",mxUtils.bind(this,function(q){window.clearTimeout(p);if(l)if(200>q.getStatus()||300<=q.getStatus())c?f({message:mxResources.get("accessDenied")}):(this.logout(),this.authenticate(mxUtils.bind(this,function(){this.updateUser(e,f,!0)}),f));else try{var v=JSON.parse(q.getText());this.setUser(new DrawioUser(v.id,v.mail,v.displayName));e()}catch(D){f(D)}}),mxUtils.bind(this,function(q){window.clearTimeout(p);l&&f(q)}))};OneDriveClient.prototype.resetTokenRefresh=function(e){null!=
+this.get(this.baseUrl+"/me",mxUtils.bind(this,function(v){window.clearTimeout(p);if(l)if(200>v.getStatus()||300<=v.getStatus())c?f({message:mxResources.get("accessDenied")}):(this.logout(),this.authenticate(mxUtils.bind(this,function(){this.updateUser(e,f,!0)}),f));else try{var t=JSON.parse(v.getText());this.setUser(new DrawioUser(t.id,t.mail,t.displayName));e()}catch(E){f(E)}}),mxUtils.bind(this,function(v){window.clearTimeout(p);l&&f(v)}))};OneDriveClient.prototype.resetTokenRefresh=function(e){null!=
this.tokenRefreshThread&&(window.clearTimeout(this.tokenRefreshThread),this.tokenRefreshThread=null);0<e&&(this.tokenRefreshInterval=1E3*e,this.tokenRefreshThread=window.setTimeout(mxUtils.bind(this,function(){this.authenticate(this.emptyFn,this.emptyFn,!0)}),900*e))};OneDriveClient.prototype.authenticate=function(e,f,c){this.isExtAuth?(window.oneDriveAuth?window.oneDriveAuth:window.parent.oneDriveAuth)(mxUtils.bind(this,function(l){this.updateAuthInfo(l,!0,null==this.endpointHint,e,f)}),f,null!=
window.urlParams&&"1"==urlParams.odAuthCancellable):(new mxXmlRequest(this.redirectUri+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(l){200<=l.getStatus()&&299>=l.getStatus()?this.authenticateStep2(l.getText(),e,f,c):null!=f&&f(l)}),f)};OneDriveClient.prototype.updateAuthInfo=function(e,f,c,l,p){c&&this.setUser(null);b=e.access_token;delete e.access_token;e.expiresOn=Date.now()+1E3*e.expires_in;this.tokenExpiresOn=e.expiresOn;e.remember=f;this.setPersistentToken(JSON.stringify(e),!f);
-this.resetTokenRefresh(e.expires_in);c?this.getAccountTypeAndEndpoint(mxUtils.bind(this,function(){l()}),p):l()};OneDriveClient.prototype.authenticateStep2=function(e,f,c,l){if(null==window.onOneDriveCallback){var p=mxUtils.bind(this,function(){var q=!0,v=JSON.parse(this.getPersistentToken(!0));null!=v?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+e),null,"GET")).send(mxUtils.bind(this,function(D){if(200<=D.getStatus()&&
-299>=D.getStatus())try{this.updateAuthInfo(JSON.parse(D.getText()),v.remember,!1,f,c)}catch(G){c({message:mxResources.get("authFailed"),retry:p})}else this.clearPersistentToken(),this.setUser(null),b=null,401!=D.getStatus()&&400!=D.getStatus()||l?c({message:mxResources.get("accessDenied"),retry:p}):p()}),c):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(D,G){var B=this.authUrl+"/oauth2/v2.0/authorize?client_id="+this.clientId+"&response_type=code&redirect_uri="+encodeURIComponent(this.redirectUri)+
-"&scope="+encodeURIComponent(this.scopes+(D?" offline_access":""))+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+e);B=window.open(B,"odauth",["width=525,height=525","top="+(window.screenY+Math.max(window.outerHeight-525,0)/2),"left="+(window.screenX+Math.max(window.outerWidth-525,0)/2),"status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes"].join());null!=B&&(window.onOneDriveCallback=mxUtils.bind(this,function(d,g){if(q){window.onOneDriveCallback=
-null;q=!1;try{null==d?c({message:mxResources.get("accessDenied"),retry:p}):(null!=G&&G(),this.updateAuthInfo(d,D,!0,f,c))}catch(k){c(k)}finally{null!=g&&g.close()}}else null!=g&&g.close()}),B.focus())}),mxUtils.bind(this,function(){q&&(window.onOneDriveCallback=null,q=!1,c({message:mxResources.get("accessDenied"),retry:p}))}))});p()}else c({code:App.ERROR_BUSY})};OneDriveClient.prototype.getAccountTypeAndEndpoint=function(e,f){this.get(this.baseUrl+"/me/drive/root",mxUtils.bind(this,function(c){try{if(200<=
-c.getStatus()&&299>=c.getStatus()){var l=JSON.parse(c.getText());0<l.webUrl.indexOf(".sharepoint.com")?this.endpointHint=l.webUrl.replace("/Documents","/_layouts/15/onedrive.aspx"):this.endpointHint=this.defEndpointHint;var p=JSON.parse(this.getPersistentToken(!0));null!=p&&(p.endpointHint=this.endpointHint,this.setPersistentToken(JSON.stringify(p),!p.remember));e();return}}catch(q){}f({message:mxResources.get("unknownError")+" (Code: "+c.getStatus()+")"})}),f)};OneDriveClient.prototype.executeRequest=
-function(e,f,c){var l=mxUtils.bind(this,function(p){var q=!0,v=window.setTimeout(mxUtils.bind(this,function(){q=!1;c({code:App.ERROR_TIMEOUT,retry:l})}),this.ui.timeout);this.get(e,mxUtils.bind(this,function(D){window.clearTimeout(v);q&&(200<=D.getStatus()&&299>=D.getStatus()||404==D.getStatus()?(null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0),f(D)):p||401!==D.getStatus()&&400!==D.getStatus()?c(this.parseRequestText(D)):this.authenticate(function(){l(!0)},c,p))}),mxUtils.bind(this,
-function(D){window.clearTimeout(v);q&&c(D)}))});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(function(){l(!0)},c):l(!1)};OneDriveClient.prototype.checkToken=function(e,f){null==b||null==this.tokenRefreshThread||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(e,null!=f?f:this.emptyFn):e()};OneDriveClient.prototype.getItemRef=function(e){var f=e.split("/");return 1<f.length?{driveId:f[0],id:f[1]}:{id:e}};OneDriveClient.prototype.getItemURL=function(e,f){var c=e.split("/");return 1<
+this.resetTokenRefresh(e.expires_in);c?this.getAccountTypeAndEndpoint(mxUtils.bind(this,function(){l()}),p):l()};OneDriveClient.prototype.authenticateStep2=function(e,f,c,l){if(null==window.onOneDriveCallback){var p=mxUtils.bind(this,function(){var v=!0,t=JSON.parse(this.getPersistentToken(!0));null!=t?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+e),null,"GET")).send(mxUtils.bind(this,function(E){if(200<=E.getStatus()&&
+299>=E.getStatus())try{this.updateAuthInfo(JSON.parse(E.getText()),t.remember,!1,f,c)}catch(H){c({message:mxResources.get("authFailed"),retry:p})}else this.clearPersistentToken(),this.setUser(null),b=null,401!=E.getStatus()&&400!=E.getStatus()||l?c({message:mxResources.get("accessDenied"),retry:p}):p()}),c):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(E,H){var B=this.authUrl+"/oauth2/v2.0/authorize?client_id="+this.clientId+"&response_type=code&redirect_uri="+encodeURIComponent(this.redirectUri)+
+"&scope="+encodeURIComponent(this.scopes+(E?" offline_access":""))+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+e);B=window.open(B,"odauth",["width=525,height=525","top="+(window.screenY+Math.max(window.outerHeight-525,0)/2),"left="+(window.screenX+Math.max(window.outerWidth-525,0)/2),"status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes"].join());null!=B&&(window.onOneDriveCallback=mxUtils.bind(this,function(d,g){if(v){window.onOneDriveCallback=
+null;v=!1;try{null==d?c({message:mxResources.get("accessDenied"),retry:p}):(null!=H&&H(),this.updateAuthInfo(d,E,!0,f,c))}catch(k){c(k)}finally{null!=g&&g.close()}}else null!=g&&g.close()}),B.focus())}),mxUtils.bind(this,function(){v&&(window.onOneDriveCallback=null,v=!1,c({message:mxResources.get("accessDenied"),retry:p}))}))});p()}else c({code:App.ERROR_BUSY})};OneDriveClient.prototype.getAccountTypeAndEndpoint=function(e,f){this.get(this.baseUrl+"/me/drive/root",mxUtils.bind(this,function(c){try{if(200<=
+c.getStatus()&&299>=c.getStatus()){var l=JSON.parse(c.getText());0<l.webUrl.indexOf(".sharepoint.com")?this.endpointHint=l.webUrl.replace("/Documents","/_layouts/15/onedrive.aspx"):this.endpointHint=this.defEndpointHint;var p=JSON.parse(this.getPersistentToken(!0));null!=p&&(p.endpointHint=this.endpointHint,this.setPersistentToken(JSON.stringify(p),!p.remember));e();return}}catch(v){}f({message:mxResources.get("unknownError")+" (Code: "+c.getStatus()+")"})}),f)};OneDriveClient.prototype.executeRequest=
+function(e,f,c){var l=mxUtils.bind(this,function(p){var v=!0,t=window.setTimeout(mxUtils.bind(this,function(){v=!1;c({code:App.ERROR_TIMEOUT,retry:l})}),this.ui.timeout);this.get(e,mxUtils.bind(this,function(E){window.clearTimeout(t);v&&(200<=E.getStatus()&&299>=E.getStatus()||404==E.getStatus()?(null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0),f(E)):p||401!==E.getStatus()&&400!==E.getStatus()?c(this.parseRequestText(E)):this.authenticate(function(){l(!0)},c,p))}),mxUtils.bind(this,
+function(E){window.clearTimeout(t);v&&c(E)}))});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(function(){l(!0)},c):l(!1)};OneDriveClient.prototype.checkToken=function(e,f){null==b||null==this.tokenRefreshThread||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(e,null!=f?f:this.emptyFn):e()};OneDriveClient.prototype.getItemRef=function(e){var f=e.split("/");return 1<f.length?{driveId:f[0],id:f[1]}:{id:e}};OneDriveClient.prototype.getItemURL=function(e,f){var c=e.split("/");return 1<
c.length?(e=c[1],(f?"":this.baseUrl)+"/drives/"+c[0]+("root"==e?"/root":"/items/"+e)):(f?"":this.baseUrl)+"/me/drive/items/"+e};OneDriveClient.prototype.getLibrary=function(e,f,c){this.getFile(e,f,c,!1,!0)};OneDriveClient.prototype.removeExtraHtmlContent=function(e){var f=e.lastIndexOf('<html><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"><meta name="Robots" ');0<f&&(e=e.substring(0,f));return e};OneDriveClient.prototype.getFile=function(e,f,c,l,p){p=null!=p?p:!1;this.executeRequest(this.getItemURL(e),
-mxUtils.bind(this,function(q){if(200<=q.getStatus()&&299>=q.getStatus()){var v=JSON.parse(q.getText()),D=/\.png$/i.test(v.name);if(/\.v(dx|sdx?)$/i.test(v.name)||/\.gliffy$/i.test(v.name)||/\.pdf$/i.test(v.name)||!this.ui.useCanvasForExport&&D)this.ui.convertFile(v["@microsoft.graph.downloadUrl"],v.name,null!=v.file?v.file.mimeType:null,this.extension,f,c);else{var G=!0,B=window.setTimeout(mxUtils.bind(this,function(){G=!1;c({code:App.ERROR_TIMEOUT})}),this.ui.timeout);this.ui.editor.loadUrl(v["@microsoft.graph.downloadUrl"],
-mxUtils.bind(this,function(d){try{if(window.clearTimeout(B),G){/\.html$/i.test(v.name)&&(d=this.removeExtraHtmlContent(d));var g=null;if(0<(D?d.lastIndexOf(","):-1)){var k=this.ui.extractGraphModelFromPng(d);null!=k&&0<k.length?d=k:g=new LocalFile(this.ui,d,v.name,!0)}else if("data:image/png;base64,PG14ZmlsZS"==d.substring(0,32)){var m=d.substring(22);d=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m)}Graph.fileSupport&&(new XMLHttpRequest).upload&&this.ui.isRemoteFileFormat(d,v["@microsoft.graph.downloadUrl"])?
-this.ui.parseFileData(d,mxUtils.bind(this,function(t){try{4==t.readyState&&(200<=t.status&&299>=t.status?f(new LocalFile(this.ui,t.responseText,v.name+this.extension,!0)):null!=c&&c({message:mxResources.get("errorLoadingFile")}))}catch(y){if(null!=c)c(y);else throw y;}}),v.name):null!=g?f(g):p?f(new OneDriveLibrary(this.ui,d,v)):f(new OneDriveFile(this.ui,d,v))}}catch(t){if(null!=c)c(t);else throw t;}}),mxUtils.bind(this,function(d){window.clearTimeout(B);G&&c(this.parseRequestText(d))}),D||null!=
-v.file&&null!=v.file.mimeType&&("image/"==v.file.mimeType.substring(0,6)&&"image/svg"!=v.file.mimeType.substring(0,9)||"application/pdf"==v.file.mimeType))}}else this.isExtAuth?c({message:mxResources.get("fileNotFoundOrDenied"),ownerEmail:null!=window.urlParams?urlParams.ownerEml:null}):c(this.parseRequestText(q))}),function(q){null!=c&&(null!=q&&null!=q.error&&"ObjectHandle is Invalid"===q.error.message&&(q.error.message=mxResources.get("fileNotFoundOrDenied")),c(q))})};OneDriveClient.prototype.renameFile=
+mxUtils.bind(this,function(v){if(200<=v.getStatus()&&299>=v.getStatus()){var t=JSON.parse(v.getText()),E=/\.png$/i.test(t.name);if(/\.v(dx|sdx?)$/i.test(t.name)||/\.gliffy$/i.test(t.name)||/\.pdf$/i.test(t.name)||!this.ui.useCanvasForExport&&E)this.ui.convertFile(t["@microsoft.graph.downloadUrl"],t.name,null!=t.file?t.file.mimeType:null,this.extension,f,c);else{var H=!0,B=window.setTimeout(mxUtils.bind(this,function(){H=!1;c({code:App.ERROR_TIMEOUT})}),this.ui.timeout);this.ui.editor.loadUrl(t["@microsoft.graph.downloadUrl"],
+mxUtils.bind(this,function(d){try{if(window.clearTimeout(B),H){/\.html$/i.test(t.name)&&(d=this.removeExtraHtmlContent(d));var g=null;if(0<(E?d.lastIndexOf(","):-1)){var k=this.ui.extractGraphModelFromPng(d);null!=k&&0<k.length?d=k:g=new LocalFile(this.ui,d,t.name,!0)}else if("data:image/png;base64,PG14ZmlsZS"==d.substring(0,32)){var m=d.substring(22);d=window.atob&&!mxClient.IS_SF?atob(m):Base64.decode(m)}Graph.fileSupport&&(new XMLHttpRequest).upload&&this.ui.isRemoteFileFormat(d,t["@microsoft.graph.downloadUrl"])?
+this.ui.parseFileData(d,mxUtils.bind(this,function(u){try{4==u.readyState&&(200<=u.status&&299>=u.status?f(new LocalFile(this.ui,u.responseText,t.name+this.extension,!0)):null!=c&&c({message:mxResources.get("errorLoadingFile")}))}catch(x){if(null!=c)c(x);else throw x;}}),t.name):null!=g?f(g):p?f(new OneDriveLibrary(this.ui,d,t)):f(new OneDriveFile(this.ui,d,t))}}catch(u){if(null!=c)c(u);else throw u;}}),mxUtils.bind(this,function(d){window.clearTimeout(B);H&&c(this.parseRequestText(d))}),E||null!=
+t.file&&null!=t.file.mimeType&&("image/"==t.file.mimeType.substring(0,6)&&"image/svg"!=t.file.mimeType.substring(0,9)||"application/pdf"==t.file.mimeType))}}else this.isExtAuth?c({message:mxResources.get("fileNotFoundOrDenied"),ownerEmail:null!=window.urlParams?urlParams.ownerEml:null}):c(this.parseRequestText(v))}),function(v){null!=c&&(null!=v&&null!=v.error&&"ObjectHandle is Invalid"===v.error.message&&(v.error.message=mxResources.get("fileNotFoundOrDenied")),c(v))})};OneDriveClient.prototype.renameFile=
function(e,f,c,l){null!=e&&null!=f&&(this.isValidFilename(f)?this.checkExists(e.getParentId(),f,!1,mxUtils.bind(this,function(p){p?this.writeFile(this.getItemURL(e.getId()),JSON.stringify({name:f}),"PATCH","application/json",c,l):l()})):l({message:this.invalidFilenameRegExs[0].test(f)?mxResources.get("oneDriveCharsNotAllowed"):mxResources.get("oneDriveInvalidDeviceName")}))};OneDriveClient.prototype.moveFile=function(e,f,c,l){f=this.getItemRef(f);var p=this.getItemRef(e);f.driveId!=p.driveId?l({message:mxResources.get("cannotMoveOneDrive",
-null,"Moving a file between accounts is not supported yet.")}):this.writeFile(this.getItemURL(e),JSON.stringify({parentReference:f}),"PATCH","application/json",c,l)};OneDriveClient.prototype.insertLibrary=function(e,f,c,l,p){this.insertFile(e,f,c,l,!0,p)};OneDriveClient.prototype.insertFile=function(e,f,c,l,p,q){this.isValidFilename(e)?(p=null!=p?p:!1,this.checkExists(q,e,!0,mxUtils.bind(this,function(v){if(v){v="/me/drive/root";null!=q&&(v=this.getItemURL(q,!0));var D=mxUtils.bind(this,function(G){p?
-c(new OneDriveLibrary(this.ui,f,G)):c(new OneDriveFile(this.ui,f,G))});v=this.baseUrl+v+"/children/"+encodeURIComponent(e)+"/content";4E6<=f.length?this.writeFile(v,"","PUT",null,mxUtils.bind(this,function(G){this.writeLargeFile(this.getItemURL(G.id),f,D,l)}),l):this.writeFile(v,f,"PUT",null,D,l)}else l()}))):l({message:this.invalidFilenameRegExs[0].test(e)?mxResources.get("oneDriveCharsNotAllowed"):mxResources.get("oneDriveInvalidDeviceName")})};OneDriveClient.prototype.checkExists=function(e,f,
-c,l){var p="/me/drive/root";null!=e&&(p=this.getItemURL(e,!0));this.executeRequest(this.baseUrl+p+"/children/"+encodeURIComponent(f),mxUtils.bind(this,function(q){404==q.getStatus()?l(!0):c?(this.ui.spinner.stop(),this.ui.confirm(mxResources.get("replaceIt",[f]),function(){l(!0)},function(){l(!1)})):(this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){l(!1)}))}),function(q){l(!1)},!0)};OneDriveClient.prototype.saveFile=function(e,
-f,c,l){try{var p=e.getData(),q=mxUtils.bind(this,function(D){var G=mxUtils.bind(this,function(d){f(d,p)}),B=this.getItemURL(e.getId());4E6<=D.length?this.writeLargeFile(B,D,G,c,l):this.writeFile(B+"/content/",D,"PUT",null,G,c,l)});if(this.ui.useCanvasForExport&&/(\.png)$/i.test(e.meta.name)){var v=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(D){q(this.ui.base64ToBlob(D,"image/png"))}),c,this.ui.getCurrentFile()!=e?p:null,v.scale,v.border)}else q(p)}catch(D){c(D)}};
-OneDriveClient.prototype.writeLargeFile=function(e,f,c,l,p){try{if(null!=f){var q=(new TextEncoder).encode(f).length,v=mxUtils.bind(this,function(G,B,d,g){try{g=g||0;var k=!0,m=null;m=window.setTimeout(mxUtils.bind(this,function(){k=!1;l({code:App.ERROR_TIMEOUT})}),this.ui.timeout);var t=f.substr(B,4194304),y=(new TextEncoder).encode(t).length,z=new mxXmlRequest(G,t,"PUT");z.setRequestHeaders=mxUtils.bind(this,function(I,F){I.setRequestHeader("Content-Range","bytes "+d+"-"+(d+y-1)+"/"+q)});z.send(mxUtils.bind(this,
-function(I){window.clearTimeout(m);if(k){var F=I.getStatus();200<=F&&299>=F?(F=B+t.length,F==f.length?c(JSON.parse(I.getText())):v(G,F,d+y,g)):500<=F&&599>=F&&2>g?(g++,v(G,B,d,g)):l(this.parseRequestText(I),I)}}),mxUtils.bind(this,function(I){window.clearTimeout(m);k&&l(this.parseRequestText(I))}))}catch(I){l(I)}}),D=mxUtils.bind(this,function(G){try{var B=!0,d=null;try{d=window.setTimeout(mxUtils.bind(this,function(){B=!1;l({code:App.ERROR_TIMEOUT})}),this.ui.timeout)}catch(k){}var g=new mxXmlRequest(e+
-"/createUploadSession","{}","POST");g.setRequestHeaders=mxUtils.bind(this,function(k,m){k.setRequestHeader("Content-Type","application/json");k.setRequestHeader("Authorization","Bearer "+b);null!=p&&k.setRequestHeader("If-Match",p)});g.send(mxUtils.bind(this,function(k){window.clearTimeout(d);B&&(200<=k.getStatus()&&299>=k.getStatus()?(k=JSON.parse(k.getText()),v(k.uploadUrl,0,0)):G||401!==k.getStatus()?l(this.parseRequestText(k),k):this.authenticate(function(){D(!0)},l,G))}),mxUtils.bind(this,function(k){window.clearTimeout(d);
-B&&l(this.parseRequestText(k))}))}catch(k){l(k)}});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(function(){D(!0)},l):D(!1)}else l({message:mxResources.get("unknownError")})}catch(G){l(G)}};OneDriveClient.prototype.writeFile=function(e,f,c,l,p,q,v){try{if(null!=e&&null!=f){var D=mxUtils.bind(this,function(G){try{var B=!0,d=null;try{d=window.setTimeout(mxUtils.bind(this,function(){B=!1;q({code:App.ERROR_TIMEOUT})}),this.ui.timeout)}catch(k){}var g=new mxXmlRequest(e,f,c);g.setRequestHeaders=
-mxUtils.bind(this,function(k,m){k.setRequestHeader("Content-Type",l||" ");k.setRequestHeader("Authorization","Bearer "+b);null!=v&&k.setRequestHeader("If-Match",v)});g.send(mxUtils.bind(this,function(k){window.clearTimeout(d);B&&(200<=k.getStatus()&&299>=k.getStatus()?(null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0),p(JSON.parse(k.getText()))):G||401!==k.getStatus()?q(this.parseRequestText(k),k):this.authenticate(function(){D(!0)},q,G))}),mxUtils.bind(this,function(k){window.clearTimeout(d);
-B&&q(this.parseRequestText(k))}))}catch(k){q(k)}});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(function(){D(!0)},q):D(!1)}else q({message:mxResources.get("unknownError")})}catch(G){q(G)}};OneDriveClient.prototype.parseRequestText=function(e){var f={message:mxResources.get("unknownError")};try{f=JSON.parse(e.getText()),f.status=e.getStatus(),f.error&&(f.error.status=f.status,f.error.code=f.status)}catch(c){}return f};OneDriveClient.prototype.pickLibrary=function(e){this.pickFile(function(f){e(f)})};
-OneDriveClient.prototype.createInlinePicker=function(e,f,c){return mxUtils.bind(this,function(){var l=null,p=document.createElement("div");p.style.position="relative";var q=new CustomDialog(this.ui,p,mxUtils.bind(this,function(){var v=l.getSelectedItem();if(null!=v)if(f&&"object"==typeof v.folder)e({value:[v]});else{if(!v.folder&&this.ui.spinner.spin(document.body,mxResources.get("loading"))){var D=OneDriveFile.prototype.getIdOf(v);this.executeRequest(this.getItemURL(D),mxUtils.bind(this,function(G){this.ui.spinner.stop();
-200<=G.getStatus()&&299>=G.getStatus()?(G=JSON.parse(G.getText()),e(D,{value:[G]})):this.ui.handleError({code:G.getStatus()})}),mxUtils.bind(this,function(G){this.ui.spinner.stop();this.ui.handleError(G)}))}}else return mxResources.get("invalidSel",null,"Invalid selection")}),null,mxResources.get(f?"select":"open"),null,null,null,null,!0);this.ui.showDialog(q.container,550,500,!0,!0);p.style.width=parseInt(q.container.parentNode.style.width)-60+"px";p.style.height=parseInt(q.container.parentNode.style.height)-
-120+"px";l=new mxODPicker(p,null,mxUtils.bind(this,function(v,D,G,B){this.executeRequest(B?v:this.baseUrl+v,function(d){D(JSON.parse(d.getText()))},G)}),mxUtils.bind(this,function(v,D,G,B){this.executeRequest(this.baseUrl+"/drives/"+D+"/items/"+v,function(d){G(JSON.parse(d.getText()))},B)}),null,null,function(v){f?e({value:[v]}):e(OneDriveFile.prototype.getIdOf(v))},mxUtils.bind(this,function(v){this.ui.showError(mxResources.get("error"),v)}),f,null,null,null,null,c)})};OneDriveClient.prototype.pickFolder=
-function(e,f){var c=mxUtils.bind(this,function(p){this.ui.showError(mxResources.get("error"),p&&p.message?p.message:p)}),l=mxUtils.bind(this,function(p){var q=this.inlinePicker?this.createInlinePicker(e,!0):mxUtils.bind(this,function(){OneDrive.save({clientId:this.clientId,action:"query",openInNewWindow:!0,advanced:{endpointHint:mxClient.IS_IE11?null:this.endpointHint,redirectUri:this.pickerRedirectUri,queryParameters:"select=id,name,parentReference",accessToken:b,isConsumerAccount:!1},success:mxUtils.bind(this,
-function(v){e(v);mxClient.IS_IE11&&(b=v.accessToken)}),cancel:mxUtils.bind(this,function(){}),error:c})});p?q():this.ui.confirm(mxResources.get("useRootFolder"),mxUtils.bind(this,function(){e({value:[this.rootId]})}),q,mxResources.get("yes"),mxResources.get("noPickFolder")+"...",!0);null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0)});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(mxUtils.bind(this,function(){l(this.inlinePicker&&f)}),c):l(f)};OneDriveClient.prototype.pickFile=
+null,"Moving a file between accounts is not supported yet.")}):this.writeFile(this.getItemURL(e),JSON.stringify({parentReference:f}),"PATCH","application/json",c,l)};OneDriveClient.prototype.insertLibrary=function(e,f,c,l,p){this.insertFile(e,f,c,l,!0,p)};OneDriveClient.prototype.insertFile=function(e,f,c,l,p,v){this.isValidFilename(e)?(p=null!=p?p:!1,this.checkExists(v,e,!0,mxUtils.bind(this,function(t){if(t){t="/me/drive/root";null!=v&&(t=this.getItemURL(v,!0));var E=mxUtils.bind(this,function(H){p?
+c(new OneDriveLibrary(this.ui,f,H)):c(new OneDriveFile(this.ui,f,H))});t=this.baseUrl+t+"/children/"+encodeURIComponent(e)+"/content";4E6<=f.length?this.writeFile(t,"","PUT",null,mxUtils.bind(this,function(H){this.writeLargeFile(this.getItemURL(H.id),f,E,l)}),l):this.writeFile(t,f,"PUT",null,E,l)}else l()}))):l({message:this.invalidFilenameRegExs[0].test(e)?mxResources.get("oneDriveCharsNotAllowed"):mxResources.get("oneDriveInvalidDeviceName")})};OneDriveClient.prototype.checkExists=function(e,f,
+c,l){var p="/me/drive/root";null!=e&&(p=this.getItemURL(e,!0));this.executeRequest(this.baseUrl+p+"/children/"+encodeURIComponent(f),mxUtils.bind(this,function(v){404==v.getStatus()?l(!0):c?(this.ui.spinner.stop(),this.ui.confirm(mxResources.get("replaceIt",[f]),function(){l(!0)},function(){l(!1)})):(this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){l(!1)}))}),function(v){l(!1)},!0)};OneDriveClient.prototype.saveFile=function(e,
+f,c,l){try{var p=e.getData(),v=mxUtils.bind(this,function(E){var H=mxUtils.bind(this,function(d){f(d,p)}),B=this.getItemURL(e.getId());4E6<=E.length?this.writeLargeFile(B,E,H,c,l):this.writeFile(B+"/content/",E,"PUT",null,H,c,l)});if(this.ui.useCanvasForExport&&/(\.png)$/i.test(e.meta.name)){var t=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(E){v(this.ui.base64ToBlob(E,"image/png"))}),c,this.ui.getCurrentFile()!=e?p:null,t.scale,t.border)}else v(p)}catch(E){c(E)}};
+OneDriveClient.prototype.writeLargeFile=function(e,f,c,l,p){try{if(null!=f){var v=(new TextEncoder).encode(f).length,t=mxUtils.bind(this,function(H,B,d,g){try{g=g||0;var k=!0,m=null;m=window.setTimeout(mxUtils.bind(this,function(){k=!1;l({code:App.ERROR_TIMEOUT})}),this.ui.timeout);var u=f.substr(B,4194304),x=(new TextEncoder).encode(u).length,A=new mxXmlRequest(H,u,"PUT");A.setRequestHeaders=mxUtils.bind(this,function(I,F){I.setRequestHeader("Content-Range","bytes "+d+"-"+(d+x-1)+"/"+v)});A.send(mxUtils.bind(this,
+function(I){window.clearTimeout(m);if(k){var F=I.getStatus();200<=F&&299>=F?(F=B+u.length,F==f.length?c(JSON.parse(I.getText())):t(H,F,d+x,g)):500<=F&&599>=F&&2>g?(g++,t(H,B,d,g)):l(this.parseRequestText(I),I)}}),mxUtils.bind(this,function(I){window.clearTimeout(m);k&&l(this.parseRequestText(I))}))}catch(I){l(I)}}),E=mxUtils.bind(this,function(H){try{var B=!0,d=null;try{d=window.setTimeout(mxUtils.bind(this,function(){B=!1;l({code:App.ERROR_TIMEOUT})}),this.ui.timeout)}catch(k){}var g=new mxXmlRequest(e+
+"/createUploadSession","{}","POST");g.setRequestHeaders=mxUtils.bind(this,function(k,m){k.setRequestHeader("Content-Type","application/json");k.setRequestHeader("Authorization","Bearer "+b);null!=p&&k.setRequestHeader("If-Match",p)});g.send(mxUtils.bind(this,function(k){window.clearTimeout(d);B&&(200<=k.getStatus()&&299>=k.getStatus()?(k=JSON.parse(k.getText()),t(k.uploadUrl,0,0)):H||401!==k.getStatus()?l(this.parseRequestText(k),k):this.authenticate(function(){E(!0)},l,H))}),mxUtils.bind(this,function(k){window.clearTimeout(d);
+B&&l(this.parseRequestText(k))}))}catch(k){l(k)}});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(function(){E(!0)},l):E(!1)}else l({message:mxResources.get("unknownError")})}catch(H){l(H)}};OneDriveClient.prototype.writeFile=function(e,f,c,l,p,v,t){try{if(null!=e&&null!=f){var E=mxUtils.bind(this,function(H){try{var B=!0,d=null;try{d=window.setTimeout(mxUtils.bind(this,function(){B=!1;v({code:App.ERROR_TIMEOUT})}),this.ui.timeout)}catch(k){}var g=new mxXmlRequest(e,f,c);g.setRequestHeaders=
+mxUtils.bind(this,function(k,m){k.setRequestHeader("Content-Type",l||" ");k.setRequestHeader("Authorization","Bearer "+b);null!=t&&k.setRequestHeader("If-Match",t)});g.send(mxUtils.bind(this,function(k){window.clearTimeout(d);B&&(200<=k.getStatus()&&299>=k.getStatus()?(null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0),p(JSON.parse(k.getText()))):H||401!==k.getStatus()?v(this.parseRequestText(k),k):this.authenticate(function(){E(!0)},v,H))}),mxUtils.bind(this,function(k){window.clearTimeout(d);
+B&&v(this.parseRequestText(k))}))}catch(k){v(k)}});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(function(){E(!0)},v):E(!1)}else v({message:mxResources.get("unknownError")})}catch(H){v(H)}};OneDriveClient.prototype.parseRequestText=function(e){var f={message:mxResources.get("unknownError")};try{f=JSON.parse(e.getText()),f.status=e.getStatus(),f.error&&(f.error.status=f.status,f.error.code=f.status)}catch(c){}return f};OneDriveClient.prototype.pickLibrary=function(e){this.pickFile(function(f){e(f)})};
+OneDriveClient.prototype.createInlinePicker=function(e,f,c){return mxUtils.bind(this,function(){var l=null,p=document.createElement("div");p.style.position="relative";var v=new CustomDialog(this.ui,p,mxUtils.bind(this,function(){var t=l.getSelectedItem();if(null!=t)if(f&&"object"==typeof t.folder)e({value:[t]});else{if(!t.folder&&this.ui.spinner.spin(document.body,mxResources.get("loading"))){var E=OneDriveFile.prototype.getIdOf(t);this.executeRequest(this.getItemURL(E),mxUtils.bind(this,function(H){this.ui.spinner.stop();
+200<=H.getStatus()&&299>=H.getStatus()?(H=JSON.parse(H.getText()),e(E,{value:[H]})):this.ui.handleError({code:H.getStatus()})}),mxUtils.bind(this,function(H){this.ui.spinner.stop();this.ui.handleError(H)}))}}else return mxResources.get("invalidSel",null,"Invalid selection")}),null,mxResources.get(f?"select":"open"),null,null,null,null,!0);this.ui.showDialog(v.container,550,500,!0,!0);p.style.width=parseInt(v.container.parentNode.style.width)-60+"px";p.style.height=parseInt(v.container.parentNode.style.height)-
+120+"px";l=new mxODPicker(p,null,mxUtils.bind(this,function(t,E,H,B){this.executeRequest(B?t:this.baseUrl+t,function(d){E(JSON.parse(d.getText()))},H)}),mxUtils.bind(this,function(t,E,H,B){this.executeRequest(this.baseUrl+"/drives/"+E+"/items/"+t,function(d){H(JSON.parse(d.getText()))},B)}),null,null,function(t){f?e({value:[t]}):e(OneDriveFile.prototype.getIdOf(t))},mxUtils.bind(this,function(t){this.ui.showError(mxResources.get("error"),t)}),f,null,null,null,null,c)})};OneDriveClient.prototype.pickFolder=
+function(e,f){var c=mxUtils.bind(this,function(p){this.ui.showError(mxResources.get("error"),p&&p.message?p.message:p)}),l=mxUtils.bind(this,function(p){var v=this.inlinePicker?this.createInlinePicker(e,!0):mxUtils.bind(this,function(){OneDrive.save({clientId:this.clientId,action:"query",openInNewWindow:!0,advanced:{endpointHint:mxClient.IS_IE11?null:this.endpointHint,redirectUri:this.pickerRedirectUri,queryParameters:"select=id,name,parentReference",accessToken:b,isConsumerAccount:!1},success:mxUtils.bind(this,
+function(t){e(t);mxClient.IS_IE11&&(b=t.accessToken)}),cancel:mxUtils.bind(this,function(){}),error:c})});p?v():this.ui.confirm(mxResources.get("useRootFolder"),mxUtils.bind(this,function(){e({value:[this.rootId]})}),v,mxResources.get("yes"),mxResources.get("noPickFolder")+"...",!0);null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0)});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(mxUtils.bind(this,function(){l(this.inlinePicker&&f)}),c):l(f)};OneDriveClient.prototype.pickFile=
function(e,f){e=null!=e?e:mxUtils.bind(this,function(p){this.ui.loadFile("W"+encodeURIComponent(p))});var c=mxUtils.bind(this,function(p){this.ui.showError(mxResources.get("error"),p&&p.message?p.message:p)}),l=this.inlinePicker?this.createInlinePicker(e,null,f):mxUtils.bind(this,function(){OneDrive.open({clientId:this.clientId,action:"query",multiSelect:!1,advanced:{endpointHint:mxClient.IS_IE11?null:this.endpointHint,redirectUri:this.pickerRedirectUri,queryParameters:"select=id,name,parentReference,webUrl",
accessToken:b,isConsumerAccount:!1},success:mxUtils.bind(this,function(p){null!=p&&null!=p.value&&0<p.value.length&&(mxClient.IS_IE11&&(b=p.accessToken),e(OneDriveFile.prototype.getIdOf(p.value[0]),p))}),cancel:mxUtils.bind(this,function(){}),error:c});null==this.user&&this.updateUser(this.emptyFn,this.emptyFn,!0)});null==b||6E4>this.tokenExpiresOn-Date.now()?this.authenticate(mxUtils.bind(this,function(){this.inlinePicker?l():this.ui.showDialog((new BtnDialog(this.ui,this,mxResources.get("open"),
mxUtils.bind(this,function(){this.ui.hideDialog();l()}))).container,300,140,!0,!0)}),c):l()};OneDriveClient.prototype.logout=function(){if(isLocalStorage){var e=localStorage.getItem("odpickerv7cache");null!=e&&'{"odsdkLoginHint":{'==e.substring(0,19)&&localStorage.removeItem("odpickerv7cache")}window.open(this.authUrl+"/oauth2/v2.0/logout","logout","width=525,height=525,status=no,resizable=yes,toolbar=no,menubar=no,scrollbars=yes");this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+
@@ -13835,134 +13879,134 @@ GitHubFile.prototype.getId=function(){return encodeURIComponent(this.meta.org)+"
GitHubFile.prototype.getFolderUrl=function(){return"https://github.com/"+encodeURIComponent(this.meta.org)+"/"+encodeURIComponent(this.meta.repo)+"/tree/"+this.meta.ref+"/"+this.meta.path.split("/").slice(0,-1).join("/")};
GitHubFile.prototype.getPublicUrl=function(b){if(null!=this.meta.download_url)try{""!=(new URL(this.meta.download_url)).search?b(null):mxUtils.get(this.meta.download_url,mxUtils.bind(this,function(e){b(200<=e.getStatus()&&299>=e.getStatus()?this.meta.download_url:null)}),mxUtils.bind(this,function(){b(null)}))}catch(e){b(null)}else b(null)};GitHubFile.prototype.isConflict=function(b){return null!=b&&409==b.status};GitHubFile.prototype.getMode=function(){return App.MODE_GITHUB};
GitHubFile.prototype.isAutosave=function(){return!1};GitHubFile.prototype.getTitle=function(){return this.meta.name};GitHubFile.prototype.isRenamable=function(){return!1};GitHubFile.prototype.getLatestVersion=function(b,e){this.peer.getFile(this.getId(),b,e)};GitHubFile.prototype.getDescriptor=function(){return this.meta};GitHubFile.prototype.setDescriptor=function(b){this.meta=b};GitHubFile.prototype.getDescriptorEtag=function(b){return b.sha};
-GitHubFile.prototype.setDescriptorEtag=function(b,e){b.sha=e};GitHubFile.prototype.save=function(b,e,f,c,l,p){this.doSave(this.getTitle(),e,f,c,l,p)};GitHubFile.prototype.saveAs=function(b,e,f){this.doSave(b,e,f)};GitHubFile.prototype.doSave=function(b,e,f,c,l,p){var q=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=q;this.saveFile(b,!1,e,f,c,l,p)}),f,c,l])};
-GitHubFile.prototype.saveFile=function(b,e,f,c,l,p,q){if(this.isEditable())if(this.savingFile)null!=c&&c({code:App.ERROR_BUSY});else{var v=mxUtils.bind(this,function(D){if(this.getTitle()==b)try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var G=this.getCurrentEtag(),B=this.data;this.peer.saveFile(this,mxUtils.bind(this,function(d){this.setModified(this.getShadowModified());this.savingFile=!1;this.setDescriptorEtag(this.meta,d);this.fileSaved(B,G,mxUtils.bind(this,function(){this.contentChanged();
-null!=f&&f()}),c)}),mxUtils.bind(this,function(d){this.savingFile=!1;this.isConflict(d)?(this.inConflictState=!0,null!=c&&(d.commitMessage=D,c(d))):null!=c&&c(d)}),p,D)}catch(d){if(this.savingFile=!1,null!=c)c(d);else throw d;}else this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.ui.pickFolder(this.getMode(),mxUtils.bind(this,function(d){this.peer.insertFile(b,this.getData(),mxUtils.bind(this,function(g){this.setModified(this.getShadowModified());this.savingFile=!1;
-null!=f&&f();this.ui.fileLoaded(g)}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}),!1,d,D)}))});null!=q?v(q):this.peer.showCommitDialog(this.meta.name,null==this.getDescriptorEtag(this.meta)||this.meta.isNew,mxUtils.bind(this,function(D){v(D)}),c)}else null!=f&&f()};GitHubLibrary=function(b,e,f){GitHubFile.call(this,b,e,f)};mxUtils.extend(GitHubLibrary,GitHubFile);GitHubLibrary.prototype.doSave=function(b,e,f){this.saveFile(b,!1,e,f)};GitHubLibrary.prototype.open=function(){};(function(){var b=null;window.GitHubClient=function(e,f){DrawioClient.call(this,e,f||"ghauth")};mxUtils.extend(GitHubClient,DrawioClient);GitHubClient.prototype.clientId="test.draw.io"==window.location.hostname?"Iv1.1218f5567fbc258a":window.DRAWIO_GITHUB_ID;GitHubClient.prototype.extension=".drawio";GitHubClient.prototype.baseUrl=DRAWIO_GITHUB_API_URL;GitHubClient.prototype.baseHostUrl=DRAWIO_GITHUB_URL;GitHubClient.prototype.redirectUri=window.DRAWIO_SERVER_URL+"github2";GitHubClient.prototype.maxFileSize=
-5E7;GitHubClient.prototype.authToken="token";GitHubClient.prototype.setToken=function(e){b=e};GitHubClient.prototype.updateUser=function(e,f,c){var l=!0,p=window.setTimeout(mxUtils.bind(this,function(){l=!1;f({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout),q=new mxXmlRequest(this.baseUrl+"/user",null,"GET"),v=this.authToken+" "+b;q.setRequestHeaders=function(D,G){D.setRequestHeader("Authorization",v)};q.send(mxUtils.bind(this,function(){window.clearTimeout(p);l&&(401===
-q.getStatus()?c?f({code:q.getStatus(),message:this.getErrorMessage(q,mxResources.get("accessDenied"))}):(this.logout(),this.authenticate(mxUtils.bind(this,function(){this.updateUser(e,f,!0)}),f)):200>q.getStatus()||300<=q.getStatus()?f({message:mxResources.get("accessDenied")}):(this.setUser(this.createUser(JSON.parse(q.getText()))),e()))}),f)};GitHubClient.prototype.createUser=function(e){return new DrawioUser(e.id,e.email,e.name)};GitHubClient.prototype.authenticate=function(e,f){(new mxXmlRequest(this.redirectUri+
-"?getState=1",null,"GET")).send(mxUtils.bind(this,function(c){200<=c.getStatus()&&299>=c.getStatus()?this.authenticateStep2(c.getText(),e,f):null!=f&&f(c)}),f)};GitHubClient.prototype.authenticateStep2=function(e,f,c){if(null==window.onGitHubCallback){var l=mxUtils.bind(this,function(){var p=!0;null!=this.getPersistentToken(!0)?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+e),null,"GET")).send(mxUtils.bind(this,function(q){if(200<=
-q.getStatus()&&299>=q.getStatus())try{b=JSON.parse(q.getText()).access_token,this.setUser(null),f()}catch(v){c({message:mxResources.get("authFailed"),retry:l})}else this.clearPersistentToken(),this.setUser(null),b=null,401==q.getStatus()?l():c({message:mxResources.get("accessDenied"),retry:l})}),c):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(q,v){null!=window.open(this.baseHostUrl+"/login/oauth/authorize?client_id="+this.clientId+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+
-window.location.host+"&token="+e),"ghauth")?window.onGitHubCallback=mxUtils.bind(this,function(D,G){p?(window.onGitHubCallback=null,p=!1,null==D?c({message:mxResources.get("accessDenied"),retry:l}):(null!=v&&v(),b=D.access_token,this.setUser(null),q&&this.setPersistentToken("remembered"),f(),null!=G&&G.close())):null!=G&&G.close()}):c({message:mxResources.get("serviceUnavailableOrBlocked"),retry:l})}),mxUtils.bind(this,function(){p&&(window.onGitHubCallback=null,p=!1,c({message:mxResources.get("accessDenied"),
+GitHubFile.prototype.setDescriptorEtag=function(b,e){b.sha=e};GitHubFile.prototype.save=function(b,e,f,c,l,p){this.doSave(this.getTitle(),e,f,c,l,p)};GitHubFile.prototype.saveAs=function(b,e,f){this.doSave(b,e,f)};GitHubFile.prototype.doSave=function(b,e,f,c,l,p){var v=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=v;this.saveFile(b,!1,e,f,c,l,p)}),f,c,l])};
+GitHubFile.prototype.saveFile=function(b,e,f,c,l,p,v){if(this.isEditable())if(this.savingFile)null!=c&&c({code:App.ERROR_BUSY});else{var t=mxUtils.bind(this,function(E){if(this.getTitle()==b)try{this.savingFileTime=new Date;this.setShadowModified(!1);this.savingFile=!0;var H=this.getCurrentEtag(),B=this.data;this.peer.saveFile(this,mxUtils.bind(this,function(d){this.setModified(this.getShadowModified());this.savingFile=!1;this.setDescriptorEtag(this.meta,d);this.fileSaved(B,H,mxUtils.bind(this,function(){this.contentChanged();
+null!=f&&f()}),c)}),mxUtils.bind(this,function(d){this.savingFile=!1;this.isConflict(d)?(this.inConflictState=!0,null!=c&&(d.commitMessage=E,c(d))):null!=c&&c(d)}),p,E)}catch(d){if(this.savingFile=!1,null!=c)c(d);else throw d;}else this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.ui.pickFolder(this.getMode(),mxUtils.bind(this,function(d){this.peer.insertFile(b,this.getData(),mxUtils.bind(this,function(g){this.setModified(this.getShadowModified());this.savingFile=!1;
+null!=f&&f();this.ui.fileLoaded(g)}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}),!1,d,E)}))});null!=v?t(v):this.peer.showCommitDialog(this.meta.name,null==this.getDescriptorEtag(this.meta)||this.meta.isNew,mxUtils.bind(this,function(E){t(E)}),c)}else null!=f&&f()};GitHubLibrary=function(b,e,f){GitHubFile.call(this,b,e,f)};mxUtils.extend(GitHubLibrary,GitHubFile);GitHubLibrary.prototype.doSave=function(b,e,f){this.saveFile(b,!1,e,f)};GitHubLibrary.prototype.open=function(){};(function(){var b=null;window.GitHubClient=function(e,f){DrawioClient.call(this,e,f||"ghauth")};mxUtils.extend(GitHubClient,DrawioClient);GitHubClient.prototype.clientId="test.draw.io"==window.location.hostname?"Iv1.1218f5567fbc258a":window.DRAWIO_GITHUB_ID;GitHubClient.prototype.extension=".drawio";GitHubClient.prototype.baseUrl=DRAWIO_GITHUB_API_URL;GitHubClient.prototype.baseHostUrl=DRAWIO_GITHUB_URL;GitHubClient.prototype.redirectUri=window.DRAWIO_SERVER_URL+"github2";GitHubClient.prototype.maxFileSize=
+5E7;GitHubClient.prototype.authToken="token";GitHubClient.prototype.setToken=function(e){b=e};GitHubClient.prototype.updateUser=function(e,f,c){var l=!0,p=window.setTimeout(mxUtils.bind(this,function(){l=!1;f({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout),v=new mxXmlRequest(this.baseUrl+"/user",null,"GET"),t=this.authToken+" "+b;v.setRequestHeaders=function(E,H){E.setRequestHeader("Authorization",t)};v.send(mxUtils.bind(this,function(){window.clearTimeout(p);l&&(401===
+v.getStatus()?c?f({code:v.getStatus(),message:this.getErrorMessage(v,mxResources.get("accessDenied"))}):(this.logout(),this.authenticate(mxUtils.bind(this,function(){this.updateUser(e,f,!0)}),f)):200>v.getStatus()||300<=v.getStatus()?f({message:mxResources.get("accessDenied")}):(this.setUser(this.createUser(JSON.parse(v.getText()))),e()))}),f)};GitHubClient.prototype.createUser=function(e){return new DrawioUser(e.id,e.email,e.name)};GitHubClient.prototype.authenticate=function(e,f){(new mxXmlRequest(this.redirectUri+
+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(c){200<=c.getStatus()&&299>=c.getStatus()?this.authenticateStep2(c.getText(),e,f):null!=f&&f(c)}),f)};GitHubClient.prototype.authenticateStep2=function(e,f,c){if(null==window.onGitHubCallback){var l=mxUtils.bind(this,function(){var p=!0;null!=this.getPersistentToken(!0)?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+e),null,"GET")).send(mxUtils.bind(this,function(v){if(200<=
+v.getStatus()&&299>=v.getStatus())try{b=JSON.parse(v.getText()).access_token,this.setUser(null),f()}catch(t){c({message:mxResources.get("authFailed"),retry:l})}else this.clearPersistentToken(),this.setUser(null),b=null,401==v.getStatus()?l():c({message:mxResources.get("accessDenied"),retry:l})}),c):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(v,t){null!=window.open(this.baseHostUrl+"/login/oauth/authorize?client_id="+this.clientId+"&state="+encodeURIComponent("cId="+this.clientId+"&domain="+
+window.location.host+"&token="+e),"ghauth")?window.onGitHubCallback=mxUtils.bind(this,function(E,H){p?(window.onGitHubCallback=null,p=!1,null==E?c({message:mxResources.get("accessDenied"),retry:l}):(null!=t&&t(),b=E.access_token,this.setUser(null),v&&this.setPersistentToken("remembered"),f(),null!=H&&H.close())):null!=H&&H.close()}):c({message:mxResources.get("serviceUnavailableOrBlocked"),retry:l})}),mxUtils.bind(this,function(){p&&(window.onGitHubCallback=null,p=!1,c({message:mxResources.get("accessDenied"),
retry:l}))}))});l()}else c({code:App.ERROR_BUSY})};GitHubClient.prototype.getErrorMessage=function(e,f){try{var c=JSON.parse(e.getText());null!=c&&null!=c.message&&(f=c.message)}catch(l){}return f};GitHubClient.prototype.showAuthorizeDialog=function(e,f){this.ui.showError(mxResources.get("accessDenied"),mxResources.get("authorizationRequired"),mxResources.get("help"),mxUtils.bind(this,function(){this.ui.openLink("https://www.drawio.com/blog/single-repository-diagrams")}),e,mxResources.get("authorize"),
-mxUtils.bind(this,function(){this.ui.openLink("test.draw.io"==window.location.hostname?"https://github.com/apps/diagrams-net-app-test":"https://github.com/apps/draw-io-app")}),mxResources.get("cancel"),f,480,null,!1)};GitHubClient.prototype.executeRequest=function(e,f,c,l,p){var q=mxUtils.bind(this,function(D){var G=!0,B=window.setTimeout(mxUtils.bind(this,function(){G=!1;c({code:App.ERROR_TIMEOUT,retry:v})}),this.ui.timeout),d=this.authToken+" "+b;e.setRequestHeaders=function(g,k){g.setRequestHeader("Authorization",
-d)};e.send(mxUtils.bind(this,function(){window.clearTimeout(B);var g=mxUtils.bind(this,function(){var t=this.ui.spinner.pause();this.showAuthorizeDialog(mxUtils.bind(this,function(){t();v()}),mxUtils.bind(this,function(){this.ui.hideDialog();c({name:"AbortError"})}))});if(G)if(200<=e.getStatus()&&299>=e.getStatus()||l&&404==e.getStatus())f(e);else if(401===e.getStatus())D?c({code:e.getStatus(),message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){v(!0)},
-c)})}):this.authenticate(function(){q(!0)},c);else if(403===e.getStatus()){var k=!1;try{var m=JSON.parse(e.getText());null!=m&&"Resource not accessible by integration"==m.message?g():(null!=m&&null!=m.errors&&0<m.errors.length&&(k="too_large"==m.errors[0].code),c({message:mxResources.get(k?"drawingTooLarge":"forbidden")}))}catch(t){c({message:mxResources.get(k?"drawingTooLarge":"forbidden")})}}else 404===e.getStatus()?p?c({code:e.getStatus(),message:this.getErrorMessage(e,mxResources.get("fileNotFound"))}):
-g():409===e.getStatus()?c({code:e.getStatus(),status:409}):c({code:e.getStatus(),message:this.getErrorMessage(e,mxResources.get("error")+" "+e.getStatus())})}),mxUtils.bind(this,function(g){window.clearTimeout(B);G&&c(g)}))}),v=mxUtils.bind(this,function(D){null==this.user?this.updateUser(function(){v(!0)},c,D):q(D)});null==b?this.authenticate(function(){v(!0)},c):v(!1)};GitHubClient.prototype.getLibrary=function(e,f,c){this.getFile(e,f,c,!0)};GitHubClient.prototype.getSha=function(e,f,c,l,p,q,v){var D=
-"&t="+(new Date).getTime();e=new mxXmlRequest(this.baseUrl+"/repos/"+e+"/"+f+"/contents/"+c+"?ref="+l+D,null,"HEAD");this.executeRequest(e,mxUtils.bind(this,function(G){try{p(G.request.getResponseHeader("Etag").match(/"([^"]+)"/)[1])}catch(B){q(B)}}),q,null,v)};GitHubClient.prototype.getFile=function(e,f,c,l,p){l=null!=l?l:!1;var q=e.split("/"),v=q[0],D=q[1],G=q[2];e=q.slice(3,q.length).join("/");q=/\.png$/i.test(e);if(!p&&(/\.v(dx|sdx?)$/i.test(e)||/\.gliffy$/i.test(e)||/\.pdf$/i.test(e)||!this.ui.useCanvasForExport&&
-q))if(null!=b){p=this.baseUrl+"/repos/"+v+"/"+D+"/contents/"+e+"?ref="+G;var B={Authorization:"token "+b};q=e.split("/");this.ui.convertFile(p,0<q.length?q[q.length-1]:e,null,this.extension,f,c,null,B)}else c({message:mxResources.get("accessDenied")});else q="&t="+(new Date).getTime(),e=new mxXmlRequest(this.baseUrl+"/repos/"+v+"/"+D+"/contents/"+e+"?ref="+G+q,null,"GET"),this.executeRequest(e,mxUtils.bind(this,function(d){try{var g=JSON.parse(d.getText());if(""==g.content&&null!=g.git_url){var k=
-new mxXmlRequest(g.git_url,null,"GET");this.executeRequest(k,mxUtils.bind(this,function(m){m=JSON.parse(m.getText());""!=m.content?(g.content=m.content,g.encoding=m.encoding,f(this.createGitHubFile(v,D,G,g,l))):c({message:mxResources.get("errorLoadingFile")})}),c)}else f(this.createGitHubFile(v,D,G,g,l))}catch(m){c(m)}}),c)};GitHubClient.prototype.createGitHubFile=function(e,f,c,l,p){e={org:e,repo:f,ref:c,name:l.name,path:l.path,sha:l.sha,html_url:l.html_url,download_url:l.download_url};f=l.content;
-"base64"===l.encoding&&(/\.jpe?g$/i.test(l.name)?f="data:image/jpeg;base64,"+f:/\.gif$/i.test(l.name)?f="data:image/gif;base64,"+f:/\.png$/i.test(l.name)?(l=this.ui.extractGraphModelFromPng(f),f=null!=l&&0<l.length?l:"data:image/png;base64,"+f):f=Base64.decode(f));return p?new GitHubLibrary(this.ui,f,e):new GitHubFile(this.ui,f,e)};GitHubClient.prototype.insertLibrary=function(e,f,c,l,p){this.insertFile(e,f,c,l,!0,p,!1)};GitHubClient.prototype.insertFile=function(e,f,c,l,p,q,v){p=null!=p?p:!1;q=q.split("/");
-var D=q[0],G=q[1],B=q[2],d=q.slice(3,q.length).join("/");0<d.length&&(d+="/");d+=e;this.checkExists(D+"/"+G+"/"+B+"/"+d,!0,mxUtils.bind(this,function(g,k){g?p?(v||(f=Base64.encode(f)),this.showCommitDialog(e,!0,mxUtils.bind(this,function(m){this.writeFile(D,G,B,d,m,f,k,mxUtils.bind(this,function(t){try{var y=JSON.parse(t.getText());c(this.createGitHubFile(D,G,B,y.content,p))}catch(z){l(z)}}),l)}),l)):c(new GitHubFile(this.ui,f,{org:D,repo:G,ref:B,name:e,path:d,sha:k,isNew:!0})):l()}))};GitHubClient.prototype.showCommitDialog=
-function(e,f,c,l){var p=this.ui.spinner.pause();e=new FilenameDialog(this.ui,mxResources.get(f?"addedFile":"updateFile",[e]),mxResources.get("ok"),mxUtils.bind(this,function(q){p(function(){c(q)})}),mxResources.get("commitMessage"),null,null,null,null,mxUtils.bind(this,function(){l()}));this.ui.showDialog(e.container,400,80,!0,!1);e.init()};GitHubClient.prototype.writeFile=function(e,f,c,l,p,q,v,D,G){q.length>=this.maxFileSize?G({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(q.length)+
-" / 1 MB)"}):(c={path:l,branch:decodeURIComponent(c),message:p,content:q},null!=v&&(c.sha=v),e=new mxXmlRequest(this.baseUrl+"/repos/"+e+"/"+f+"/contents/"+l,JSON.stringify(c),"PUT"),this.executeRequest(e,mxUtils.bind(this,function(B){D(B)}),mxUtils.bind(this,function(B){404==B.code&&(B.helpLink=this.baseHostUrl+"/settings/connections/applications/"+this.clientId,B.code=null);G(B)})))};GitHubClient.prototype.checkExists=function(e,f,c){var l=e.split("/"),p=l[0],q=l[1],v=l[2];e=l.slice(3,l.length).join("/");
-this.getSha(p,q,e,v,mxUtils.bind(this,function(D){if(f){var G=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[e]),function(){G();c(!0,D)},function(){G();c(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){c(!1)})}),mxUtils.bind(this,function(D){c(!0)}),!0)};GitHubClient.prototype.saveFile=function(e,f,c,l,p){var q=e.meta.org,v=e.meta.repo,D=e.meta.ref,G=e.meta.path,B=mxUtils.bind(this,function(g,
-k){this.writeFile(q,v,D,G,p,k,g,mxUtils.bind(this,function(m){delete e.meta.isNew;f(JSON.parse(m.getText()).content.sha)}),mxUtils.bind(this,function(m){c(m)}))}),d=mxUtils.bind(this,function(){if(this.ui.useCanvasForExport&&/(\.png)$/i.test(G)){var g=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(k){B(e.meta.sha,k)}),c,this.ui.getCurrentFile()!=e?e.getData():null,g.scale,g.border)}else B(e.meta.sha,Base64.encode(e.getData()))});l?this.getSha(q,v,
-G,D,mxUtils.bind(this,function(g){e.meta.sha=g;d()}),c):d()};GitHubClient.prototype.pickLibrary=function(e){this.pickFile(e)};GitHubClient.prototype.pickFolder=function(e){this.showGitHubDialog(!1,e,!0)};GitHubClient.prototype.pickFile=function(e){e=null!=e?e:mxUtils.bind(this,function(f){this.ui.loadFile("H"+encodeURIComponent(f))});this.showGitHubDialog(!0,e)};GitHubClient.prototype.showGitHubDialog=function(e,f,c){var l=null,p=null,q=null,v=null,D=document.createElement("div");D.style.whiteSpace=
-"nowrap";D.style.overflow="hidden";D.style.height="320px";var G=document.createElement("h3");mxUtils.write(G,mxResources.get(e?"selectFile":"selectFolder"));G.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";D.appendChild(G);G=this.ui.createToolbarButton(Editor.refreshImage,mxResources.get("refresh"),mxUtils.bind(this,function(){C()}));G.style.position="absolute";G.style.right="40px";G.style.top="26px";D.appendChild(G);var B=document.createElement("div");B.style.whiteSpace=
-"nowrap";B.style.border="1px solid lightgray";B.style.boxSizing="border-box";B.style.padding="4px";B.style.overflow="auto";B.style.lineHeight="1.2em";B.style.height="290px";D.appendChild(B);var d=document.createElement("div");d.style.textOverflow="ellipsis";d.style.boxSizing="border-box";d.style.overflow="hidden";d.style.padding="4px";d.style.width="100%";var g=new CustomDialog(this.ui,D,mxUtils.bind(this,function(){f(l+"/"+p+"/"+encodeURIComponent(q)+"/"+v)}),null,null,"https://www.drawio.com/blog/single-repository-diagrams",
-null,null,null,null,[[mxResources.get("authorize"),mxUtils.bind(this,function(){this.ui.openLink("test.draw.io"==window.location.hostname?"https://github.com/apps/diagrams-net-app-test":"https://github.com/apps/draw-io-app")})]],"16px");this.ui.showDialog(g.container,420,370,!0,!0);e&&g.okButton.parentNode.removeChild(g.okButton);var k=mxUtils.bind(this,function(Q,S,V,P){var u=document.createElement("a");u.setAttribute("title",Q);u.style.cursor="pointer";mxUtils.write(u,Q);mxEvent.addListener(u,"click",
-S);P&&(u.style.textDecoration="underline");null!=V&&(Q=d.cloneNode(),Q.style.padding=V,Q.appendChild(u),u=Q);return u}),m=mxUtils.bind(this,function(Q){var S=document.createElement("div");S.style.marginBottom="8px";S.appendChild(k(l+"/"+p,mxUtils.bind(this,function(){v=null;C()}),null,!0));Q||(mxUtils.write(S," / "),S.appendChild(k(decodeURIComponent(q),mxUtils.bind(this,function(){v=null;F()}),null,!0)));if(null!=v&&0<v.length){var V=v.split("/");for(Q=0;Q<V.length;Q++)(function(P){mxUtils.write(S,
-" / ");S.appendChild(k(V[P],mxUtils.bind(this,function(){v=V.slice(0,P+1).join("/");I()}),null,!0))})(Q)}B.appendChild(S)}),t=mxUtils.bind(this,function(Q){this.ui.handleError(Q,null,mxUtils.bind(this,function(){this.ui.spinner.stop();null!=this.getUser()?(v=q=p=l=null,C()):this.ui.hideDialog()}),null,{})}),y=null,z=null,I=mxUtils.bind(this,function(Q){null==Q&&(B.innerText="",Q=1);var S=new mxXmlRequest(this.baseUrl+"/repos/"+l+"/"+p+"/contents/"+v+"?ref="+encodeURIComponent(q)+"&per_page=100&page="+
-Q,null,"GET");this.ui.spinner.spin(B,mxResources.get("loading"));g.okButton.removeAttribute("disabled");null!=z&&(mxEvent.removeListener(B,"scroll",z),z=null);null!=y&&null!=y.parentNode&&y.parentNode.removeChild(y);y=document.createElement("a");y.style.display="block";y.style.cursor="pointer";mxUtils.write(y,mxResources.get("more")+"...");var V=mxUtils.bind(this,function(){I(Q+1)});mxEvent.addListener(y,"click",V);this.executeRequest(S,mxUtils.bind(this,function(P){this.ui.tryAndHandle(mxUtils.bind(this,
-function(){this.ui.spinner.stop();1==Q&&(m(),B.appendChild(k("../ [Up]",mxUtils.bind(this,function(){if(""==v)v=null,C();else{var K=v.split("/");v=K.slice(0,K.length-1).join("/");I()}}),"4px")));var u=JSON.parse(P.getText());if(null==u||0==u.length)c||(mxUtils.br(B),mxUtils.write(B,mxResources.get("noFiles")));else{var x=!0,J=0,H=mxUtils.bind(this,function(K){for(var N=0;N<u.length;N++)mxUtils.bind(this,function(M,n){if(K==("dir"==M.type)){n=d.cloneNode();n.style.backgroundColor=x?Editor.isDarkMode()?
-"#000000":"#eeeeee":"";x=!x;var A=document.createElement("img");A.src=IMAGE_PATH+"/"+("dir"==M.type?"folder.png":"file.png");A.setAttribute("align","absmiddle");A.style.marginRight="4px";A.style.marginTop="-4px";A.width=20;n.appendChild(A);n.appendChild(k(M.name+("dir"==M.type?"/":""),mxUtils.bind(this,function(){"dir"==M.type?(v=M.path,I()):e&&"file"==M.type&&(this.ui.hideDialog(),f(l+"/"+p+"/"+encodeURIComponent(q)+"/"+M.path))})));B.appendChild(n);J++}})(u[N],N)});H(!0);e&&H(!1)}}))}),t,!0)}),
-F=mxUtils.bind(this,function(Q,S){null==Q&&(B.innerText="",Q=1);var V=new mxXmlRequest(this.baseUrl+"/repos/"+l+"/"+p+"/branches?per_page=100&page="+Q,null,"GET");g.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(B,mxResources.get("loading"));null!=z&&(mxEvent.removeListener(B,"scroll",z),z=null);null!=y&&null!=y.parentNode&&y.parentNode.removeChild(y);y=document.createElement("a");y.style.display="block";y.style.cursor="pointer";mxUtils.write(y,mxResources.get("more")+"...");var P=
-mxUtils.bind(this,function(){F(Q+1)});mxEvent.addListener(y,"click",P);this.executeRequest(V,mxUtils.bind(this,function(u){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==Q&&(m(!0),B.appendChild(k("../ [Up]",mxUtils.bind(this,function(){v=null;C()}),"4px")));var x=JSON.parse(u.getText());if(null==x||0==x.length)mxUtils.br(B),mxUtils.write(B,mxResources.get("repositoryNotFound"));else if(1==x.length&&S)q=x[0].name,v="",I();else{for(var J=0;J<x.length;J++)mxUtils.bind(this,
-function(H,K){var N=d.cloneNode();N.style.backgroundColor=0==K%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";N.appendChild(k(H.name,mxUtils.bind(this,function(){q=H.name;v="";I()})));B.appendChild(N)})(x[J],J);100==x.length&&(B.appendChild(y),z=function(){B.scrollTop>=B.scrollHeight-B.offsetHeight&&P()},mxEvent.addListener(B,"scroll",z))}}))}),t)}),C=mxUtils.bind(this,function(Q){null==Q&&(B.innerText="",Q=1);var S=new mxXmlRequest(this.baseUrl+"/user/repos?per_page=100&page="+Q,null,"GET");g.okButton.setAttribute("disabled",
-"disabled");this.ui.spinner.spin(B,mxResources.get("loading"));null!=z&&mxEvent.removeListener(B,"scroll",z);null!=y&&null!=y.parentNode&&y.parentNode.removeChild(y);y=document.createElement("a");y.style.display="block";y.style.cursor="pointer";mxUtils.write(y,mxResources.get("more")+"...");var V=mxUtils.bind(this,function(){C(Q+1)});mxEvent.addListener(y,"click",V);this.executeRequest(S,mxUtils.bind(this,function(P){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();var u=JSON.parse(P.getText());
-if(null==u||0==u.length)mxUtils.br(B),mxUtils.write(B,mxResources.get("repositoryNotFound"));else{1==Q&&(B.appendChild(k(mxResources.get("enterValue")+"...",mxUtils.bind(this,function(){var J=new FilenameDialog(this.ui,"org/repo/ref",mxResources.get("ok"),mxUtils.bind(this,function(H){if(null!=H){var K=H.split("/");if(1<K.length){H=K[0];var N=K[1];3>K.length?(l=H,p=N,v=q=null,F()):this.ui.spinner.spin(B,mxResources.get("loading"))&&(K=encodeURIComponent(K.slice(2,K.length).join("/")),this.getFile(H+
-"/"+N+"/"+K,mxUtils.bind(this,function(M){this.ui.spinner.stop();l=M.meta.org;p=M.meta.repo;q=decodeURIComponent(M.meta.ref);v="";I()}),mxUtils.bind(this,function(M){this.ui.spinner.stop();this.ui.handleError({message:mxResources.get("fileNotFound")})})))}else this.ui.spinner.stop(),this.ui.handleError({message:mxResources.get("invalidName")})}}),mxResources.get("enterValue"));this.ui.showDialog(J.container,300,80,!0,!1);J.init()}))),mxUtils.br(B),mxUtils.br(B));for(var x=0;x<u.length;x++)mxUtils.bind(this,
-function(J,H){var K=d.cloneNode();K.style.backgroundColor=0==H%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";K.appendChild(k(J.full_name,mxUtils.bind(this,function(){l=J.owner.login;p=J.name;v="";F(null,!0)})));B.appendChild(K)})(u[x],x)}100==u.length&&(B.appendChild(y),z=function(){B.scrollTop>=B.scrollHeight-B.offsetHeight&&V()},mxEvent.addListener(B,"scroll",z))}))}),t)});C()};GitHubClient.prototype.logout=function(){this.clearPersistentToken();this.setUser(null);b=null}})();TrelloFile=function(b,e,f){DrawioFile.call(this,b,e);this.meta=f;this.saveNeededCounter=0};mxUtils.extend(TrelloFile,DrawioFile);TrelloFile.prototype.getHash=function(){return"T"+encodeURIComponent(this.meta.compoundId)};TrelloFile.prototype.getMode=function(){return App.MODE_TRELLO};TrelloFile.prototype.isAutosave=function(){return!0};TrelloFile.prototype.getTitle=function(){return this.meta.name};TrelloFile.prototype.isRenamable=function(){return!1};TrelloFile.prototype.getSize=function(){return this.meta.bytes};
+mxUtils.bind(this,function(){this.ui.openLink("test.draw.io"==window.location.hostname?"https://github.com/apps/diagrams-net-app-test":"https://github.com/apps/draw-io-app")}),mxResources.get("cancel"),f,480,null,!1)};GitHubClient.prototype.executeRequest=function(e,f,c,l,p){var v=mxUtils.bind(this,function(E){var H=!0,B=window.setTimeout(mxUtils.bind(this,function(){H=!1;c({code:App.ERROR_TIMEOUT,retry:t})}),this.ui.timeout),d=this.authToken+" "+b;e.setRequestHeaders=function(g,k){g.setRequestHeader("Authorization",
+d)};e.send(mxUtils.bind(this,function(){window.clearTimeout(B);var g=mxUtils.bind(this,function(){var u=this.ui.spinner.pause();this.showAuthorizeDialog(mxUtils.bind(this,function(){u();t()}),mxUtils.bind(this,function(){this.ui.hideDialog();c({name:"AbortError"})}))});if(H)if(200<=e.getStatus()&&299>=e.getStatus()||l&&404==e.getStatus())f(e);else if(401===e.getStatus())E?c({code:e.getStatus(),message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){t(!0)},
+c)})}):this.authenticate(function(){v(!0)},c);else if(403===e.getStatus()){var k=!1;try{var m=JSON.parse(e.getText());null!=m&&"Resource not accessible by integration"==m.message?g():(null!=m&&null!=m.errors&&0<m.errors.length&&(k="too_large"==m.errors[0].code),c({message:mxResources.get(k?"drawingTooLarge":"forbidden")}))}catch(u){c({message:mxResources.get(k?"drawingTooLarge":"forbidden")})}}else 404===e.getStatus()?p?c({code:e.getStatus(),message:this.getErrorMessage(e,mxResources.get("fileNotFound"))}):
+g():409===e.getStatus()?c({code:e.getStatus(),status:409}):c({code:e.getStatus(),message:this.getErrorMessage(e,mxResources.get("error")+" "+e.getStatus())})}),mxUtils.bind(this,function(g){window.clearTimeout(B);H&&c(g)}))}),t=mxUtils.bind(this,function(E){null==this.user?this.updateUser(function(){t(!0)},c,E):v(E)});null==b?this.authenticate(function(){t(!0)},c):t(!1)};GitHubClient.prototype.getLibrary=function(e,f,c){this.getFile(e,f,c,!0)};GitHubClient.prototype.getSha=function(e,f,c,l,p,v,t){var E=
+"&t="+(new Date).getTime();e=new mxXmlRequest(this.baseUrl+"/repos/"+e+"/"+f+"/contents/"+c+"?ref="+l+E,null,"HEAD");this.executeRequest(e,mxUtils.bind(this,function(H){try{p(H.request.getResponseHeader("Etag").match(/"([^"]+)"/)[1])}catch(B){v(B)}}),v,null,t)};GitHubClient.prototype.getFile=function(e,f,c,l,p){l=null!=l?l:!1;var v=e.split("/"),t=v[0],E=v[1],H=v[2];e=v.slice(3,v.length).join("/");v=/\.png$/i.test(e);if(!p&&(/\.v(dx|sdx?)$/i.test(e)||/\.gliffy$/i.test(e)||/\.pdf$/i.test(e)||!this.ui.useCanvasForExport&&
+v))if(null!=b){p=this.baseUrl+"/repos/"+t+"/"+E+"/contents/"+e+"?ref="+H;var B={Authorization:"token "+b};v=e.split("/");this.ui.convertFile(p,0<v.length?v[v.length-1]:e,null,this.extension,f,c,null,B)}else c({message:mxResources.get("accessDenied")});else v="&t="+(new Date).getTime(),e=new mxXmlRequest(this.baseUrl+"/repos/"+t+"/"+E+"/contents/"+e+"?ref="+H+v,null,"GET"),this.executeRequest(e,mxUtils.bind(this,function(d){try{var g=JSON.parse(d.getText());if(""==g.content&&null!=g.git_url){var k=
+new mxXmlRequest(g.git_url,null,"GET");this.executeRequest(k,mxUtils.bind(this,function(m){m=JSON.parse(m.getText());""!=m.content?(g.content=m.content,g.encoding=m.encoding,f(this.createGitHubFile(t,E,H,g,l))):c({message:mxResources.get("errorLoadingFile")})}),c)}else f(this.createGitHubFile(t,E,H,g,l))}catch(m){c(m)}}),c)};GitHubClient.prototype.createGitHubFile=function(e,f,c,l,p){e={org:e,repo:f,ref:c,name:l.name,path:l.path,sha:l.sha,html_url:l.html_url,download_url:l.download_url};f=l.content;
+"base64"===l.encoding&&(/\.jpe?g$/i.test(l.name)?f="data:image/jpeg;base64,"+f:/\.gif$/i.test(l.name)?f="data:image/gif;base64,"+f:/\.png$/i.test(l.name)?(l=this.ui.extractGraphModelFromPng(f),f=null!=l&&0<l.length?l:"data:image/png;base64,"+f):f=Base64.decode(f));return p?new GitHubLibrary(this.ui,f,e):new GitHubFile(this.ui,f,e)};GitHubClient.prototype.insertLibrary=function(e,f,c,l,p){this.insertFile(e,f,c,l,!0,p,!1)};GitHubClient.prototype.insertFile=function(e,f,c,l,p,v,t){p=null!=p?p:!1;v=v.split("/");
+var E=v[0],H=v[1],B=v[2],d=v.slice(3,v.length).join("/");0<d.length&&(d+="/");d+=e;this.checkExists(E+"/"+H+"/"+B+"/"+d,!0,mxUtils.bind(this,function(g,k){g?p?(t||(f=Base64.encode(f)),this.showCommitDialog(e,!0,mxUtils.bind(this,function(m){this.writeFile(E,H,B,d,m,f,k,mxUtils.bind(this,function(u){try{var x=JSON.parse(u.getText());c(this.createGitHubFile(E,H,B,x.content,p))}catch(A){l(A)}}),l)}),l)):c(new GitHubFile(this.ui,f,{org:E,repo:H,ref:B,name:e,path:d,sha:k,isNew:!0})):l()}))};GitHubClient.prototype.showCommitDialog=
+function(e,f,c,l){var p=this.ui.spinner.pause();e=new FilenameDialog(this.ui,mxResources.get(f?"addedFile":"updateFile",[e]),mxResources.get("ok"),mxUtils.bind(this,function(v){p(function(){c(v)})}),mxResources.get("commitMessage"),null,null,null,null,mxUtils.bind(this,function(){l()}));this.ui.showDialog(e.container,400,80,!0,!1);e.init()};GitHubClient.prototype.writeFile=function(e,f,c,l,p,v,t,E,H){v.length>=this.maxFileSize?H({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(v.length)+
+" / 1 MB)"}):(c={path:l,branch:decodeURIComponent(c),message:p,content:v},null!=t&&(c.sha=t),e=new mxXmlRequest(this.baseUrl+"/repos/"+e+"/"+f+"/contents/"+l,JSON.stringify(c),"PUT"),this.executeRequest(e,mxUtils.bind(this,function(B){E(B)}),mxUtils.bind(this,function(B){404==B.code&&(B.helpLink=this.baseHostUrl+"/settings/connections/applications/"+this.clientId,B.code=null);H(B)})))};GitHubClient.prototype.checkExists=function(e,f,c){var l=e.split("/"),p=l[0],v=l[1],t=l[2];e=l.slice(3,l.length).join("/");
+this.getSha(p,v,e,t,mxUtils.bind(this,function(E){if(f){var H=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[e]),function(){H();c(!0,E)},function(){H();c(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),mxResources.get("ok"),function(){c(!1)})}),mxUtils.bind(this,function(E){c(!0)}),!0)};GitHubClient.prototype.saveFile=function(e,f,c,l,p){var v=e.meta.org,t=e.meta.repo,E=e.meta.ref,H=e.meta.path,B=mxUtils.bind(this,function(g,
+k){this.writeFile(v,t,E,H,p,k,g,mxUtils.bind(this,function(m){delete e.meta.isNew;f(JSON.parse(m.getText()).content.sha)}),mxUtils.bind(this,function(m){c(m)}))}),d=mxUtils.bind(this,function(){if(this.ui.useCanvasForExport&&/(\.png)$/i.test(H)){var g=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(k){B(e.meta.sha,k)}),c,this.ui.getCurrentFile()!=e?e.getData():null,g.scale,g.border)}else B(e.meta.sha,Base64.encode(e.getData()))});l?this.getSha(v,t,
+H,E,mxUtils.bind(this,function(g){e.meta.sha=g;d()}),c):d()};GitHubClient.prototype.pickLibrary=function(e){this.pickFile(e)};GitHubClient.prototype.pickFolder=function(e){this.showGitHubDialog(!1,e,!0)};GitHubClient.prototype.pickFile=function(e){e=null!=e?e:mxUtils.bind(this,function(f){this.ui.loadFile("H"+encodeURIComponent(f))});this.showGitHubDialog(!0,e)};GitHubClient.prototype.showGitHubDialog=function(e,f,c){var l=null,p=null,v=null,t=null,E=document.createElement("div");E.style.whiteSpace=
+"nowrap";E.style.overflow="hidden";E.style.height="320px";var H=document.createElement("h3");mxUtils.write(H,mxResources.get(e?"selectFile":"selectFolder"));H.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";E.appendChild(H);H=this.ui.createToolbarButton(Editor.refreshImage,mxResources.get("refresh"),mxUtils.bind(this,function(){C()}));H.style.position="absolute";H.style.right="40px";H.style.top="26px";E.appendChild(H);var B=document.createElement("div");B.style.whiteSpace=
+"nowrap";B.style.border="1px solid lightgray";B.style.boxSizing="border-box";B.style.padding="4px";B.style.overflow="auto";B.style.lineHeight="1.2em";B.style.height="290px";E.appendChild(B);var d=document.createElement("div");d.style.textOverflow="ellipsis";d.style.boxSizing="border-box";d.style.overflow="hidden";d.style.padding="4px";d.style.width="100%";var g=new CustomDialog(this.ui,E,mxUtils.bind(this,function(){f(l+"/"+p+"/"+encodeURIComponent(v)+"/"+t)}),null,null,"https://www.drawio.com/blog/single-repository-diagrams",
+null,null,null,null,[[mxResources.get("authorize"),mxUtils.bind(this,function(){this.ui.openLink("test.draw.io"==window.location.hostname?"https://github.com/apps/diagrams-net-app-test":"https://github.com/apps/draw-io-app")})]],"16px");this.ui.showDialog(g.container,420,370,!0,!0);e&&g.okButton.parentNode.removeChild(g.okButton);var k=mxUtils.bind(this,function(P,R,U,O){var V=document.createElement("a");V.setAttribute("title",P);V.style.cursor="pointer";mxUtils.write(V,P);mxEvent.addListener(V,"click",
+R);O&&(V.style.textDecoration="underline");null!=U&&(P=d.cloneNode(),P.style.padding=U,P.appendChild(V),V=P);return V}),m=mxUtils.bind(this,function(P){var R=document.createElement("div");R.style.marginBottom="8px";R.appendChild(k(l+"/"+p,mxUtils.bind(this,function(){t=null;C()}),null,!0));P||(mxUtils.write(R," / "),R.appendChild(k(decodeURIComponent(v),mxUtils.bind(this,function(){t=null;F()}),null,!0)));if(null!=t&&0<t.length){var U=t.split("/");for(P=0;P<U.length;P++)(function(O){mxUtils.write(R,
+" / ");R.appendChild(k(U[O],mxUtils.bind(this,function(){t=U.slice(0,O+1).join("/");I()}),null,!0))})(P)}B.appendChild(R)}),u=mxUtils.bind(this,function(P){this.ui.handleError(P,null,mxUtils.bind(this,function(){this.ui.spinner.stop();null!=this.getUser()?(t=v=p=l=null,C()):this.ui.hideDialog()}),null,{})}),x=null,A=null,I=mxUtils.bind(this,function(P){null==P&&(B.innerText="",P=1);var R=new mxXmlRequest(this.baseUrl+"/repos/"+l+"/"+p+"/contents/"+t+"?ref="+encodeURIComponent(v)+"&per_page=100&page="+
+P,null,"GET");this.ui.spinner.spin(B,mxResources.get("loading"));g.okButton.removeAttribute("disabled");null!=A&&(mxEvent.removeListener(B,"scroll",A),A=null);null!=x&&null!=x.parentNode&&x.parentNode.removeChild(x);x=document.createElement("a");x.style.display="block";x.style.cursor="pointer";mxUtils.write(x,mxResources.get("more")+"...");var U=mxUtils.bind(this,function(){I(P+1)});mxEvent.addListener(x,"click",U);this.executeRequest(R,mxUtils.bind(this,function(O){this.ui.tryAndHandle(mxUtils.bind(this,
+function(){this.ui.spinner.stop();1==P&&(m(),B.appendChild(k("../ [Up]",mxUtils.bind(this,function(){if(""==t)t=null,C();else{var J=t.split("/");t=J.slice(0,J.length-1).join("/");I()}}),"4px")));var V=JSON.parse(O.getText());if(null==V||0==V.length)c||(mxUtils.br(B),mxUtils.write(B,mxResources.get("noFiles")));else{var q=!0,y=0,D=mxUtils.bind(this,function(J){for(var L=0;L<V.length;L++)mxUtils.bind(this,function(K,n){if(J==("dir"==K.type)){n=d.cloneNode();n.style.backgroundColor=q?Editor.isDarkMode()?
+"#000000":"#eeeeee":"";q=!q;var z=document.createElement("img");z.src=IMAGE_PATH+"/"+("dir"==K.type?"folder.png":"file.png");z.setAttribute("align","absmiddle");z.style.marginRight="4px";z.style.marginTop="-4px";z.width=20;n.appendChild(z);n.appendChild(k(K.name+("dir"==K.type?"/":""),mxUtils.bind(this,function(){"dir"==K.type?(t=K.path,I()):e&&"file"==K.type&&(this.ui.hideDialog(),f(l+"/"+p+"/"+encodeURIComponent(v)+"/"+K.path))})));B.appendChild(n);y++}})(V[L],L)});D(!0);e&&D(!1)}}))}),u,!0)}),
+F=mxUtils.bind(this,function(P,R){null==P&&(B.innerText="",P=1);var U=new mxXmlRequest(this.baseUrl+"/repos/"+l+"/"+p+"/branches?per_page=100&page="+P,null,"GET");g.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(B,mxResources.get("loading"));null!=A&&(mxEvent.removeListener(B,"scroll",A),A=null);null!=x&&null!=x.parentNode&&x.parentNode.removeChild(x);x=document.createElement("a");x.style.display="block";x.style.cursor="pointer";mxUtils.write(x,mxResources.get("more")+"...");var O=
+mxUtils.bind(this,function(){F(P+1)});mxEvent.addListener(x,"click",O);this.executeRequest(U,mxUtils.bind(this,function(V){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==P&&(m(!0),B.appendChild(k("../ [Up]",mxUtils.bind(this,function(){t=null;C()}),"4px")));var q=JSON.parse(V.getText());if(null==q||0==q.length)mxUtils.br(B),mxUtils.write(B,mxResources.get("repositoryNotFound"));else if(1==q.length&&R)v=q[0].name,t="",I();else{for(var y=0;y<q.length;y++)mxUtils.bind(this,
+function(D,J){var L=d.cloneNode();L.style.backgroundColor=0==J%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";L.appendChild(k(D.name,mxUtils.bind(this,function(){v=D.name;t="";I()})));B.appendChild(L)})(q[y],y);100==q.length&&(B.appendChild(x),A=function(){B.scrollTop>=B.scrollHeight-B.offsetHeight&&O()},mxEvent.addListener(B,"scroll",A))}}))}),u)}),C=mxUtils.bind(this,function(P){null==P&&(B.innerText="",P=1);var R=new mxXmlRequest(this.baseUrl+"/user/repos?per_page=100&page="+P,null,"GET");g.okButton.setAttribute("disabled",
+"disabled");this.ui.spinner.spin(B,mxResources.get("loading"));null!=A&&mxEvent.removeListener(B,"scroll",A);null!=x&&null!=x.parentNode&&x.parentNode.removeChild(x);x=document.createElement("a");x.style.display="block";x.style.cursor="pointer";mxUtils.write(x,mxResources.get("more")+"...");var U=mxUtils.bind(this,function(){C(P+1)});mxEvent.addListener(x,"click",U);this.executeRequest(R,mxUtils.bind(this,function(O){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();var V=JSON.parse(O.getText());
+if(null==V||0==V.length)mxUtils.br(B),mxUtils.write(B,mxResources.get("repositoryNotFound"));else{1==P&&(B.appendChild(k(mxResources.get("enterValue")+"...",mxUtils.bind(this,function(){var y=new FilenameDialog(this.ui,"org/repo/ref",mxResources.get("ok"),mxUtils.bind(this,function(D){if(null!=D){var J=D.split("/");if(1<J.length){D=J[0];var L=J[1];3>J.length?(l=D,p=L,t=v=null,F()):this.ui.spinner.spin(B,mxResources.get("loading"))&&(J=encodeURIComponent(J.slice(2,J.length).join("/")),this.getFile(D+
+"/"+L+"/"+J,mxUtils.bind(this,function(K){this.ui.spinner.stop();l=K.meta.org;p=K.meta.repo;v=decodeURIComponent(K.meta.ref);t="";I()}),mxUtils.bind(this,function(K){this.ui.spinner.stop();this.ui.handleError({message:mxResources.get("fileNotFound")})})))}else this.ui.spinner.stop(),this.ui.handleError({message:mxResources.get("invalidName")})}}),mxResources.get("enterValue"));this.ui.showDialog(y.container,300,80,!0,!1);y.init()}))),mxUtils.br(B),mxUtils.br(B));for(var q=0;q<V.length;q++)mxUtils.bind(this,
+function(y,D){var J=d.cloneNode();J.style.backgroundColor=0==D%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";J.appendChild(k(y.full_name,mxUtils.bind(this,function(){l=y.owner.login;p=y.name;t="";F(null,!0)})));B.appendChild(J)})(V[q],q)}100==V.length&&(B.appendChild(x),A=function(){B.scrollTop>=B.scrollHeight-B.offsetHeight&&U()},mxEvent.addListener(B,"scroll",A))}))}),u)});C()};GitHubClient.prototype.logout=function(){this.clearPersistentToken();this.setUser(null);b=null}})();TrelloFile=function(b,e,f){DrawioFile.call(this,b,e);this.meta=f;this.saveNeededCounter=0};mxUtils.extend(TrelloFile,DrawioFile);TrelloFile.prototype.getHash=function(){return"T"+encodeURIComponent(this.meta.compoundId)};TrelloFile.prototype.getMode=function(){return App.MODE_TRELLO};TrelloFile.prototype.isAutosave=function(){return!0};TrelloFile.prototype.getTitle=function(){return this.meta.name};TrelloFile.prototype.isRenamable=function(){return!1};TrelloFile.prototype.getSize=function(){return this.meta.bytes};
TrelloFile.prototype.save=function(b,e,f){this.doSave(this.getTitle(),e,f)};TrelloFile.prototype.saveAs=function(b,e,f){this.doSave(b,e,f)};TrelloFile.prototype.doSave=function(b,e,f){var c=this.meta.name;this.meta.name=b;DrawioFile.prototype.save.apply(this,[null,mxUtils.bind(this,function(){this.meta.name=c;this.saveFile(b,!1,e,f)}),f])};
TrelloFile.prototype.saveFile=function(b,e,f,c){this.isEditable()?this.savingFile?null!=c&&(this.saveNeededCounter++,c({code:App.ERROR_BUSY})):(this.savingFileTime=new Date,this.setShadowModified(!1),this.savingFile=!0,this.getTitle()==b?this.ui.trello.saveFile(this,mxUtils.bind(this,function(l){this.setModified(this.getShadowModified());this.savingFile=!1;this.meta=l;this.contentChanged();null!=f&&f();0<this.saveNeededCounter&&(this.saveNeededCounter--,this.saveFile(b,e,f,c))}),mxUtils.bind(this,
function(l){this.savingFile=!1;null!=c&&c(l)})):this.ui.pickFolder(App.MODE_TRELLO,mxUtils.bind(this,function(l){this.ui.trello.insertFile(b,this.getData(),mxUtils.bind(this,function(p){this.savingFile=!1;null!=f&&f();this.ui.fileLoaded(p);0<this.saveNeededCounter&&(this.saveNeededCounter--,this.saveFile(b,e,f,c))}),mxUtils.bind(this,function(){this.savingFile=!1;null!=c&&c()}),!1,l)}))):null!=f&&f()};TrelloLibrary=function(b,e,f){TrelloFile.call(this,b,e,f)};mxUtils.extend(TrelloLibrary,TrelloFile);TrelloLibrary.prototype.doSave=function(b,e,f){this.saveFile(b,!1,e,f)};TrelloLibrary.prototype.open=function(){};TrelloClient=function(b){DrawioClient.call(this,b,"tauth");Trello.setKey(this.key)};mxUtils.extend(TrelloClient,DrawioClient);TrelloClient.prototype.key="e89d109082298ce91f6576f82f458551";TrelloClient.prototype.baseUrl="https://api.trello.com/1/";TrelloClient.prototype.SEPARATOR="|$|";TrelloClient.prototype.maxFileSize=1E7;TrelloClient.prototype.extension=".xml";
TrelloClient.prototype.authenticate=function(b,e,f){f&&this.logout();f=mxUtils.bind(this,function(c,l){Trello.authorize({type:"popup",name:"draw.io",scope:{read:"true",write:"true"},expiration:c?"never":"1hour",success:function(){localStorage.setItem("drawio_trello_token",localStorage.trello_token);null!=l&&l();b()},error:function(){null!=l&&l();null!=e&&e(mxResources.get("loggedOut"))}})});this.isAuthorized()?f(!0):this.ui.showAuthDialog(this,!0,f)};
TrelloClient.prototype.getLibrary=function(b,e,f){this.getFile(b,e,f,!1,!0)};
-TrelloClient.prototype.getFile=function(b,e,f,c,l){l=null!=l?l:!1;var p=mxUtils.bind(this,function(){var q=b.split(this.SEPARATOR),v=!0,D=window.setTimeout(mxUtils.bind(this,function(){v=!1;f({code:App.ERROR_TIMEOUT,retry:p})}),this.ui.timeout);Trello.cards.get(q[0]+"/attachments/"+q[1],mxUtils.bind(this,function(G){window.clearTimeout(D);if(v){var B=/\.png$/i.test(G.name),d={Authorization:'OAuth oauth_consumer_key="'+Trello.key()+'", oauth_token="'+Trello.token()+'"'};/\.v(dx|sdx?)$/i.test(G.name)||
-/\.gliffy$/i.test(G.name)||!this.ui.useCanvasForExport&&B?this.ui.convertFile(PROXY_URL+"?url="+encodeURIComponent(G.url),G.name,G.mimeType,this.extension,e,f,null,d):(v=!0,D=window.setTimeout(mxUtils.bind(this,function(){v=!1;f({code:App.ERROR_TIMEOUT})}),this.ui.timeout),this.ui.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(G.url),mxUtils.bind(this,function(g){window.clearTimeout(D);if(v){G.compoundId=b;if(0<(B?g.lastIndexOf(","):-1)){var k=this.ui.extractGraphModelFromPng(g);null!=k&&0<k.length&&
-(g=k)}l?e(new TrelloLibrary(this.ui,g,G)):e(new TrelloFile(this.ui,g,G))}}),mxUtils.bind(this,function(g,k){window.clearTimeout(D);v&&(401==k.status?this.authenticate(p,f,!0):f())}),B||null!=G.mimeType&&"image/"==G.mimeType.substring(0,6),null,null,null,d))}}),mxUtils.bind(this,function(G){window.clearTimeout(D);v&&(null!=G&&401==G.status?this.authenticate(p,f,!0):f())}))});this.authenticate(p,f)};TrelloClient.prototype.insertLibrary=function(b,e,f,c,l){this.insertFile(b,e,f,c,!0,l)};
-TrelloClient.prototype.insertFile=function(b,e,f,c,l,p){l=null!=l?l:!1;var q=mxUtils.bind(this,function(){var v=mxUtils.bind(this,function(D){this.writeFile(b,D,p,mxUtils.bind(this,function(G){l?f(new TrelloLibrary(this.ui,e,G)):f(new TrelloFile(this.ui,e,G))}),c)});this.ui.useCanvasForExport&&/(\.png)$/i.test(b)?this.ui.getEmbeddedPng(mxUtils.bind(this,function(D){v(this.ui.base64ToBlob(D,"image/png"))}),c,e):v(e)});this.authenticate(q,c)};
-TrelloClient.prototype.saveFile=function(b,e,f){var c=b.meta.compoundId.split(this.SEPARATOR),l=mxUtils.bind(this,function(q){this.writeFile(b.meta.name,q,c[0],function(v){Trello.del("cards/"+c[0]+"/attachments/"+c[1],mxUtils.bind(this,function(){e(v)}),mxUtils.bind(this,function(D){null!=D&&401==D.status?this.authenticate(p,f,!0):f()}))},f)}),p=mxUtils.bind(this,function(){this.ui.useCanvasForExport&&/(\.png)$/i.test(b.meta.name)?this.ui.getEmbeddedPng(mxUtils.bind(this,function(q){l(this.ui.base64ToBlob(q,
+TrelloClient.prototype.getFile=function(b,e,f,c,l){l=null!=l?l:!1;var p=mxUtils.bind(this,function(){var v=b.split(this.SEPARATOR),t=!0,E=window.setTimeout(mxUtils.bind(this,function(){t=!1;f({code:App.ERROR_TIMEOUT,retry:p})}),this.ui.timeout);Trello.cards.get(v[0]+"/attachments/"+v[1],mxUtils.bind(this,function(H){window.clearTimeout(E);if(t){var B=/\.png$/i.test(H.name),d={Authorization:'OAuth oauth_consumer_key="'+Trello.key()+'", oauth_token="'+Trello.token()+'"'};/\.v(dx|sdx?)$/i.test(H.name)||
+/\.gliffy$/i.test(H.name)||!this.ui.useCanvasForExport&&B?this.ui.convertFile(PROXY_URL+"?url="+encodeURIComponent(H.url),H.name,H.mimeType,this.extension,e,f,null,d):(t=!0,E=window.setTimeout(mxUtils.bind(this,function(){t=!1;f({code:App.ERROR_TIMEOUT})}),this.ui.timeout),this.ui.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(H.url),mxUtils.bind(this,function(g){window.clearTimeout(E);if(t){H.compoundId=b;if(0<(B?g.lastIndexOf(","):-1)){var k=this.ui.extractGraphModelFromPng(g);null!=k&&0<k.length&&
+(g=k)}l?e(new TrelloLibrary(this.ui,g,H)):e(new TrelloFile(this.ui,g,H))}}),mxUtils.bind(this,function(g,k){window.clearTimeout(E);t&&(401==k.status?this.authenticate(p,f,!0):f())}),B||null!=H.mimeType&&"image/"==H.mimeType.substring(0,6),null,null,null,d))}}),mxUtils.bind(this,function(H){window.clearTimeout(E);t&&(null!=H&&401==H.status?this.authenticate(p,f,!0):f())}))});this.authenticate(p,f)};TrelloClient.prototype.insertLibrary=function(b,e,f,c,l){this.insertFile(b,e,f,c,!0,l)};
+TrelloClient.prototype.insertFile=function(b,e,f,c,l,p){l=null!=l?l:!1;var v=mxUtils.bind(this,function(){var t=mxUtils.bind(this,function(E){this.writeFile(b,E,p,mxUtils.bind(this,function(H){l?f(new TrelloLibrary(this.ui,e,H)):f(new TrelloFile(this.ui,e,H))}),c)});this.ui.useCanvasForExport&&/(\.png)$/i.test(b)?this.ui.getEmbeddedPng(mxUtils.bind(this,function(E){t(this.ui.base64ToBlob(E,"image/png"))}),c,e):t(e)});this.authenticate(v,c)};
+TrelloClient.prototype.saveFile=function(b,e,f){var c=b.meta.compoundId.split(this.SEPARATOR),l=mxUtils.bind(this,function(v){this.writeFile(b.meta.name,v,c[0],function(t){Trello.del("cards/"+c[0]+"/attachments/"+c[1],mxUtils.bind(this,function(){e(t)}),mxUtils.bind(this,function(E){null!=E&&401==E.status?this.authenticate(p,f,!0):f()}))},f)}),p=mxUtils.bind(this,function(){this.ui.useCanvasForExport&&/(\.png)$/i.test(b.meta.name)?this.ui.getEmbeddedPng(mxUtils.bind(this,function(v){l(this.ui.base64ToBlob(v,
"image/png"))}),f,this.ui.getCurrentFile()!=b?b.getData():null):l(b.getData())});this.authenticate(p,f)};
-TrelloClient.prototype.writeFile=function(b,e,f,c,l){if(null!=b&&null!=e)if(e.length>=this.maxFileSize)l({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(e.length)+" / 10 MB)"});else{var p=mxUtils.bind(this,function(){var q=!0,v=window.setTimeout(mxUtils.bind(this,function(){q=!1;l({code:App.ERROR_TIMEOUT,retry:p})}),this.ui.timeout),D=new FormData;D.append("key",Trello.key());D.append("token",Trello.token());D.append("file","string"===typeof e?new Blob([e]):e,b);D.append("name",
-b);var G=new XMLHttpRequest;G.responseType="json";G.onreadystatechange=mxUtils.bind(this,function(){if(4===G.readyState&&(window.clearTimeout(v),q))if(200==G.status){var B=G.response;B.compoundId=f+this.SEPARATOR+B.id;c(B)}else 401==G.status?this.authenticate(p,l,!0):l()});G.open("POST",this.baseUrl+"cards/"+f+"/attachments");G.send(D)});this.authenticate(p,l)}else l({message:mxResources.get("unknownError")})};TrelloClient.prototype.pickLibrary=function(b){this.pickFile(b)};
+TrelloClient.prototype.writeFile=function(b,e,f,c,l){if(null!=b&&null!=e)if(e.length>=this.maxFileSize)l({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(e.length)+" / 10 MB)"});else{var p=mxUtils.bind(this,function(){var v=!0,t=window.setTimeout(mxUtils.bind(this,function(){v=!1;l({code:App.ERROR_TIMEOUT,retry:p})}),this.ui.timeout),E=new FormData;E.append("key",Trello.key());E.append("token",Trello.token());E.append("file","string"===typeof e?new Blob([e]):e,b);E.append("name",
+b);var H=new XMLHttpRequest;H.responseType="json";H.onreadystatechange=mxUtils.bind(this,function(){if(4===H.readyState&&(window.clearTimeout(t),v))if(200==H.status){var B=H.response;B.compoundId=f+this.SEPARATOR+B.id;c(B)}else 401==H.status?this.authenticate(p,l,!0):l()});H.open("POST",this.baseUrl+"cards/"+f+"/attachments");H.send(E)});this.authenticate(p,l)}else l({message:mxResources.get("unknownError")})};TrelloClient.prototype.pickLibrary=function(b){this.pickFile(b)};
TrelloClient.prototype.pickFolder=function(b){this.authenticate(mxUtils.bind(this,function(){this.showTrelloDialog(!1,b)}),mxUtils.bind(this,function(e){this.ui.showError(mxResources.get("error"),e)}))};TrelloClient.prototype.pickFile=function(b,e){b=null!=b?b:mxUtils.bind(this,function(f){this.ui.loadFile("T"+encodeURIComponent(f))});this.authenticate(mxUtils.bind(this,function(){this.showTrelloDialog(!0,b)}),mxUtils.bind(this,function(f){this.ui.showError(mxResources.get("error"),f,mxResources.get("ok"))}))};
-TrelloClient.prototype.showTrelloDialog=function(b,e){var f=null,c="@me",l=0,p=document.createElement("div");p.style.whiteSpace="nowrap";p.style.overflow="hidden";p.style.height="224px";var q=document.createElement("h3");mxUtils.write(q,b?mxResources.get("selectFile"):mxResources.get("selectCard"));q.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";p.appendChild(q);var v=document.createElement("div");v.style.whiteSpace="nowrap";v.style.overflow="auto";v.style.height=
-"194px";p.appendChild(v);p=new CustomDialog(this.ui,p);this.ui.showDialog(p.container,340,290,!0,!0);p.okButton.parentNode.removeChild(p.okButton);var D=mxUtils.bind(this,function(m,t,y){l++;var z=document.createElement("div");z.style="width:100%;text-overflow:ellipsis;overflow:hidden;vertical-align:middle;padding:2px 0 2px 0;background:"+(0==l%2?Editor.isDarkMode()?"#000":"#eee":Editor.isDarkMode()?"":"#fff");var I=document.createElement("a");I.style.cursor="pointer";if(null!=y){var F=document.createElement("img");
-F.src=y.url;F.width=y.width;F.height=y.height;F.style="border: 1px solid black;margin:5px;vertical-align:middle";I.appendChild(F)}mxUtils.write(I,m);mxEvent.addListener(I,"click",t);z.appendChild(I);return z}),G=mxUtils.bind(this,function(m){this.ui.handleError(m,null,mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.hideDialog()}))}),B=mxUtils.bind(this,function(){l=0;v.innerText="";this.ui.spinner.spin(v,mxResources.get("loading"));var m=mxUtils.bind(this,function(){Trello.cards.get(f+
-"/attachments",{fields:"id,name,previews"},mxUtils.bind(this,function(t){this.ui.spinner.stop();v.appendChild(D("../ [Up]",mxUtils.bind(this,function(){k()})));mxUtils.br(v);null==t||0==t.length?mxUtils.write(v,mxResources.get("noFiles")):mxUtils.bind(this,function(){for(var y=0;y<t.length;y++)mxUtils.bind(this,function(z){v.appendChild(D(z.name,mxUtils.bind(this,function(){this.ui.hideDialog();e(f+this.SEPARATOR+z.id)}),null!=z.previews?z.previews[0]:null))})(t[y])})()}),mxUtils.bind(this,function(t){401==
-t.status?this.authenticate(m,G,!0):null!=G&&G(t)}))});m()}),d=null,g=null,k=mxUtils.bind(this,function(m){null==m&&(l=0,v.innerText="",m=1);this.ui.spinner.spin(v,mxResources.get("loading"));null!=d&&null!=d.parentNode&&d.parentNode.removeChild(d);d=document.createElement("a");d.style.display="block";d.style.cursor="pointer";mxUtils.write(d,mxResources.get("more")+"...");var t=mxUtils.bind(this,function(){mxEvent.removeListener(v,"scroll",g);k(m+1)});mxEvent.addListener(d,"click",t);var y=mxUtils.bind(this,
-function(){Trello.get("search",{query:""==mxUtils.trim(c)?"is:open":c,cards_limit:100,cards_page:m-1},mxUtils.bind(this,function(z){this.ui.spinner.stop();z=null!=z?z.cards:null;if(null==z||0==z.length)mxUtils.write(v,mxResources.get("noFiles"));else{1==m&&(v.appendChild(D(mxResources.get("filterCards")+"...",mxUtils.bind(this,function(){var F=new FilenameDialog(this.ui,c,mxResources.get("ok"),mxUtils.bind(this,function(C){null!=C&&(c=C,k())}),mxResources.get("filterCards"),null,null,"http://help.trello.com/article/808-searching-for-cards-all-boards");
-this.ui.showDialog(F.container,300,80,!0,!1);F.init()}))),mxUtils.br(v));for(var I=0;I<z.length;I++)mxUtils.bind(this,function(F){v.appendChild(D(F.name,mxUtils.bind(this,function(){b?(f=F.id,B()):(this.ui.hideDialog(),e(F.id))})))})(z[I]);100==z.length&&(v.appendChild(d),g=function(){v.scrollTop>=v.scrollHeight-v.offsetHeight&&t()},mxEvent.addListener(v,"scroll",g))}}),mxUtils.bind(this,function(z){401==z.status?this.authenticate(y,G,!0):null!=G&&G({message:z.responseText})}))});y()});k()};
+TrelloClient.prototype.showTrelloDialog=function(b,e){var f=null,c="@me",l=0,p=document.createElement("div");p.style.whiteSpace="nowrap";p.style.overflow="hidden";p.style.height="224px";var v=document.createElement("h3");mxUtils.write(v,b?mxResources.get("selectFile"):mxResources.get("selectCard"));v.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";p.appendChild(v);var t=document.createElement("div");t.style.whiteSpace="nowrap";t.style.overflow="auto";t.style.height=
+"194px";p.appendChild(t);p=new CustomDialog(this.ui,p);this.ui.showDialog(p.container,340,290,!0,!0);p.okButton.parentNode.removeChild(p.okButton);var E=mxUtils.bind(this,function(m,u,x){l++;var A=document.createElement("div");A.style="width:100%;text-overflow:ellipsis;overflow:hidden;vertical-align:middle;padding:2px 0 2px 0;background:"+(0==l%2?Editor.isDarkMode()?"#000":"#eee":Editor.isDarkMode()?"":"#fff");var I=document.createElement("a");I.style.cursor="pointer";if(null!=x){var F=document.createElement("img");
+F.src=x.url;F.width=x.width;F.height=x.height;F.style="border: 1px solid black;margin:5px;vertical-align:middle";I.appendChild(F)}mxUtils.write(I,m);mxEvent.addListener(I,"click",u);A.appendChild(I);return A}),H=mxUtils.bind(this,function(m){this.ui.handleError(m,null,mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.hideDialog()}))}),B=mxUtils.bind(this,function(){l=0;t.innerText="";this.ui.spinner.spin(t,mxResources.get("loading"));var m=mxUtils.bind(this,function(){Trello.cards.get(f+
+"/attachments",{fields:"id,name,previews"},mxUtils.bind(this,function(u){this.ui.spinner.stop();t.appendChild(E("../ [Up]",mxUtils.bind(this,function(){k()})));mxUtils.br(t);null==u||0==u.length?mxUtils.write(t,mxResources.get("noFiles")):mxUtils.bind(this,function(){for(var x=0;x<u.length;x++)mxUtils.bind(this,function(A){t.appendChild(E(A.name,mxUtils.bind(this,function(){this.ui.hideDialog();e(f+this.SEPARATOR+A.id)}),null!=A.previews?A.previews[0]:null))})(u[x])})()}),mxUtils.bind(this,function(u){401==
+u.status?this.authenticate(m,H,!0):null!=H&&H(u)}))});m()}),d=null,g=null,k=mxUtils.bind(this,function(m){null==m&&(l=0,t.innerText="",m=1);this.ui.spinner.spin(t,mxResources.get("loading"));null!=d&&null!=d.parentNode&&d.parentNode.removeChild(d);d=document.createElement("a");d.style.display="block";d.style.cursor="pointer";mxUtils.write(d,mxResources.get("more")+"...");var u=mxUtils.bind(this,function(){mxEvent.removeListener(t,"scroll",g);k(m+1)});mxEvent.addListener(d,"click",u);var x=mxUtils.bind(this,
+function(){Trello.get("search",{query:""==mxUtils.trim(c)?"is:open":c,cards_limit:100,cards_page:m-1},mxUtils.bind(this,function(A){this.ui.spinner.stop();A=null!=A?A.cards:null;if(null==A||0==A.length)mxUtils.write(t,mxResources.get("noFiles"));else{1==m&&(t.appendChild(E(mxResources.get("filterCards")+"...",mxUtils.bind(this,function(){var F=new FilenameDialog(this.ui,c,mxResources.get("ok"),mxUtils.bind(this,function(C){null!=C&&(c=C,k())}),mxResources.get("filterCards"),null,null,"http://help.trello.com/article/808-searching-for-cards-all-boards");
+this.ui.showDialog(F.container,300,80,!0,!1);F.init()}))),mxUtils.br(t));for(var I=0;I<A.length;I++)mxUtils.bind(this,function(F){t.appendChild(E(F.name,mxUtils.bind(this,function(){b?(f=F.id,B()):(this.ui.hideDialog(),e(F.id))})))})(A[I]);100==A.length&&(t.appendChild(d),g=function(){t.scrollTop>=t.scrollHeight-t.offsetHeight&&u()},mxEvent.addListener(t,"scroll",g))}}),mxUtils.bind(this,function(A){401==A.status?this.authenticate(x,H,!0):null!=H&&H({message:A.responseText})}))});x()});k()};
TrelloClient.prototype.isAuthorized=function(){try{var b=localStorage.trello_token;null==b&&(b=localStorage.drawio_trello_token,null!=b&&localStorage.setItem("trello_token",b));return null!=b}catch(e){}return!1};TrelloClient.prototype.logout=function(){localStorage.removeItem("drawio_trello_token");Trello.deauthorize()};GitLabFile=function(b,e,f){GitHubFile.call(this,b,e,f);this.peer=this.ui.gitLab};mxUtils.extend(GitLabFile,GitHubFile);GitLabFile.prototype.getFileUrl=function(){return this.meta.html_url};GitLabFile.prototype.getFolderUrl=function(){var b=this.getFileUrl();return b.substring(0,b.lastIndexOf("/"))};GitLabFile.prototype.share=function(){this.ui.editor.graph.openLink(DRAWIO_GITLAB_URL+"/"+this.meta.org+"/"+encodeURIComponent(this.meta.repo)+"/-/project_members")};
GitLabFile.prototype.getId=function(){return this.meta.org+"/"+(null!=this.meta.repo?encodeURIComponent(this.meta.repo)+"/"+(null!=this.meta.ref?this.meta.ref+(null!=this.meta.path?"/"+this.meta.path:""):""):"")};GitLabFile.prototype.getHash=function(){return encodeURIComponent("A"+this.getId())};GitLabFile.prototype.isConflict=function(b){return null!=b&&400==b.status};GitLabFile.prototype.getMode=function(){return App.MODE_GITLAB};GitLabFile.prototype.getDescriptorEtag=function(b){return b.last_commit_id};
GitLabFile.prototype.setDescriptorEtag=function(b,e){b.last_commit_id=e};GitLabLibrary=function(b,e,f){GitLabFile.call(this,b,e,f)};mxUtils.extend(GitLabLibrary,GitLabFile);GitLabLibrary.prototype.doSave=function(b,e,f){this.saveFile(b,!1,e,f)};GitLabLibrary.prototype.open=function(){};(function(){var b=null;window.GitLabClient=function(e){GitHubClient.call(this,e,"gitlabauth")};mxUtils.extend(GitLabClient,GitHubClient);GitLabClient.prototype.clientId=DRAWIO_GITLAB_ID;GitLabClient.prototype.scope="api%20read_repository%20write_repository";GitLabClient.prototype.baseUrl=DRAWIO_GITLAB_URL+"/api/v4";GitLabClient.prototype.maxFileSize=1E7;GitLabClient.prototype.authToken="Bearer";GitLabClient.prototype.redirectUri=window.DRAWIO_SERVER_URL+"gitlab";GitLabClient.prototype.authenticate=
function(e,f){(new mxXmlRequest(this.redirectUri+"?getState=1",null,"GET")).send(mxUtils.bind(this,function(c){200<=c.getStatus()&&299>=c.getStatus()?this.authenticateStep2(c.getText(),e,f):null!=f&&f(c)}),f)};GitLabClient.prototype.authenticateStep2=function(e,f,c){if(null==window.onGitLabCallback){var l=mxUtils.bind(this,function(){var p=!0;null!=this.getPersistentToken(!0)?(new mxXmlRequest(this.redirectUri+"?state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+
-e),null,"GET")).send(mxUtils.bind(this,function(q){if(200<=q.getStatus()&&299>=q.getStatus())try{b=JSON.parse(q.getText()).access_token,this.setToken(b),this.setUser(null),f()}catch(v){c({message:mxResources.get("authFailed"),retry:l})}else this.clearPersistentToken(),this.setUser(null),b=null,this.setToken(null),401==q.getStatus()?l():c({message:mxResources.get("accessDenied"),retry:l})}),c):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(q,v){null!=window.open(DRAWIO_GITLAB_URL+"/oauth/authorize?client_id="+
-this.clientId+"&scope="+this.scope+"&redirect_uri="+encodeURIComponent(this.redirectUri)+"&response_type=code&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+e),"gitlabauth")?window.onGitLabCallback=mxUtils.bind(this,function(D,G){p?(window.onGitLabCallback=null,p=!1,null==D?c({message:mxResources.get("accessDenied"),retry:l}):(null!=v&&v(),b=D.access_token,this.setToken(b),this.setUser(null),q&&this.setPersistentToken("remembered"),f(),null!=G&&G.close())):
-null!=G&&G.close()}):c({message:mxResources.get("serviceUnavailableOrBlocked"),retry:l})}),mxUtils.bind(this,function(){p&&(window.onGitLabCallback=null,p=!1,c({message:mxResources.get("accessDenied"),retry:l}))}))});l()}else c({code:App.ERROR_BUSY})};GitLabClient.prototype.executeRequest=function(e,f,c,l){var p=mxUtils.bind(this,function(v){var D=!0,G=window.setTimeout(mxUtils.bind(this,function(){D=!1;c({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout),B=this.authToken+
-" "+b;e.setRequestHeaders=function(d,g){d.setRequestHeader("Authorization",B);d.setRequestHeader("PRIVATE_TOKEN",B);d.setRequestHeader("Content-Type","application/json")};e.send(mxUtils.bind(this,function(){window.clearTimeout(G);if(D)if(200<=e.getStatus()&&299>=e.getStatus()||l&&404==e.getStatus())f(e);else if(401===e.getStatus())v?c({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){q(!0)},c)})}):this.authenticate(function(){p(!0)},c);else if(403===
-e.getStatus()){var d=!1;try{var g=JSON.parse(e.getText());null!=g&&null!=g.errors&&0<g.errors.length&&(d="too_large"==g.errors[0].code)}catch(k){}c({message:mxResources.get(d?"drawingTooLarge":"forbidden")})}else 404===e.getStatus()?c({message:this.getErrorMessage(e,mxResources.get("fileNotFound"))}):c({status:e.getStatus(),message:this.getErrorMessage(e,mxResources.get("error")+" "+e.getStatus())})}),mxUtils.bind(this,function(d){window.clearTimeout(G);D&&c(d)}))}),q=mxUtils.bind(this,function(v){null==
-this.user?this.updateUser(function(){q(!0)},c,v):p(v)});null==b?this.authenticate(function(){q(!0)},c):q(!1)};GitLabClient.prototype.getRefIndex=function(e,f,c,l,p,q){if(null!=p)c(e,p);else{var v=e.length-2,D=mxUtils.bind(this,function(){if(2>v)l({message:mxResources.get("fileNotFound")});else{var G=Math.max(v-1,0),B=e.slice(0,G).join("/");G=e[G];var d=e[v],g=e.slice(v+1,e.length).join("/");B=this.baseUrl+"/projects/"+encodeURIComponent(B+"/"+G)+"/repository/"+(f?q?"branches?per_page=1&page=1&ref="+
-d:"tree?path="+g+"&ref="+d:"files/"+encodeURIComponent(g)+"?ref="+d);var k=new mxXmlRequest(B,null,"HEAD");this.executeRequest(k,mxUtils.bind(this,function(){200==k.getStatus()?c(e,v):l({message:mxResources.get("fileNotFound")})}),mxUtils.bind(this,function(){404==k.getStatus()?(v--,D()):l({message:mxResources.get("fileNotFound")})}))}});D()}};GitLabClient.prototype.getFile=function(e,f,c,l,p,q){l=null!=l?l:!1;this.getRefIndex(e.split("/"),!1,mxUtils.bind(this,function(v,D){var G=Math.max(D-1,0),
-B=v.slice(0,G).join("/"),d=v[G],g=v[D];e=v.slice(D+1,v.length).join("/");v=/\.png$/i.test(e);if(!p&&(/\.v(dx|sdx?)$/i.test(e)||/\.gliffy$/i.test(e)||/\.pdf$/i.test(e)||!this.ui.useCanvasForExport&&v))if(null!=b){G="&t="+(new Date).getTime();var k=this.baseUrl+"/projects/"+encodeURIComponent(B+"/"+d)+"/repository/files/"+encodeURIComponent(e)+"?ref="+g;v=e.split("/");this.ui.convertFile(k+G,0<v.length?v[v.length-1]:e,null,this.extension,f,c,mxUtils.bind(this,function(m,t,y){m=new mxXmlRequest(m,null,
-"GET");this.executeRequest(m,mxUtils.bind(this,function(z){try{t(this.getFileContent(JSON.parse(z.getText())))}catch(I){y(I)}}),y)}))}else c({message:mxResources.get("accessDenied")});else G="&t="+(new Date).getTime(),k=this.baseUrl+"/projects/"+encodeURIComponent(B+"/"+d)+"/repository/files/"+encodeURIComponent(e)+"?ref="+g,v=new mxXmlRequest(k+G,null,"GET"),this.executeRequest(v,mxUtils.bind(this,function(m){try{f(this.createGitLabFile(B,d,g,JSON.parse(m.getText()),l,D))}catch(t){c(t)}}),c)}),c,
-q)};GitLabClient.prototype.getFileContent=function(e){var f=e.file_name,c=e.content;"base64"===e.encoding&&(/\.jpe?g$/i.test(f)?c="data:image/jpeg;base64,"+c:/\.gif$/i.test(f)?c="data:image/gif;base64,"+c:/\.pdf$/i.test(f)?c="data:application/pdf;base64,"+c:/\.png$/i.test(f)?(e=this.ui.extractGraphModelFromPng(c),c=null!=e&&0<e.length?e:"data:image/png;base64,"+c):c=Base64.decode(c));return c};GitLabClient.prototype.createGitLabFile=function(e,f,c,l,p,q){var v=DRAWIO_GITLAB_URL+"/";e={org:e,repo:f,
-ref:c,name:l.file_name,path:l.file_path,html_url:v+e+"/"+f+"/blob/"+c+"/"+l.file_path,download_url:v+e+"/"+f+"/raw/"+c+"/"+l.file_path+"?inline=false",last_commit_id:l.last_commit_id,refPos:q};l=this.getFileContent(l);return p?new GitLabLibrary(this.ui,l,e):new GitLabFile(this.ui,l,e)};GitLabClient.prototype.insertFile=function(e,f,c,l,p,q,v){p=null!=p?p:!1;q=q.split("/");this.getRefIndex(q,!0,mxUtils.bind(this,function(D,G){var B=Math.max(G-1,0),d=D.slice(0,B).join("/"),g=D[B],k=D[G];path=D.slice(G+
-1,D.length).join("/");0<path.length&&(path+="/");path+=e;this.checkExists(d+"/"+g+"/"+k+"/"+path,!0,mxUtils.bind(this,function(m,t){m?p?(v||(f=Base64.encode(f)),this.showCommitDialog(e,!0,mxUtils.bind(this,function(y){this.writeFile(d,g,k,path,y,f,t,mxUtils.bind(this,function(z){try{var I=JSON.parse(z.getText());c(this.createGitLabFile(d,g,k,null!=I.content?I.content:I,p,G))}catch(F){l(F)}}),l)}),l)):(m=DRAWIO_GITLAB_URL+"/",c(new GitLabFile(this.ui,f,{org:d,repo:g,ref:k,name:e,path:path,html_url:m+
-d+"/"+g+"/blob/"+k+"/"+path,download_url:m+d+"/"+g+"/raw/"+k+"/"+path+"?inline=false",refPos:G,last_commit_id:t,isNew:!0}))):l()}))}),l,null,4>=q.length)};GitLabClient.prototype.checkExists=function(e,f,c){this.getFile(e,mxUtils.bind(this,function(l){if(f){var p=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[e]),function(){p();c(!0,l.getCurrentEtag())},function(){p();c(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),
-mxResources.get("ok"),function(){c(!1)})}),mxUtils.bind(this,function(l){c(!0)}),null,!0)};GitLabClient.prototype.writeFile=function(e,f,c,l,p,q,v,D,G){if(q.length>=this.maxFileSize)G({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(q.length)+" / 10 MB)"});else{var B="POST";c={path:encodeURIComponent(l),branch:decodeURIComponent(c),commit_message:p,content:q,encoding:"base64"};null!=v&&(c.last_commit_id=v,B="PUT");e=this.baseUrl+"/projects/"+encodeURIComponent(e+"/"+f)+"/repository/files/"+
-encodeURIComponent(l);B=new mxXmlRequest(e,JSON.stringify(c),B);this.executeRequest(B,mxUtils.bind(this,function(d){D(d)}),G)}};GitLabClient.prototype.saveFile=function(e,f,c,l,p){var q=e.meta.org,v=e.meta.repo,D=e.meta.ref,G=e.meta.path,B=mxUtils.bind(this,function(g,k){this.writeFile(q,v,D,G,p,k,g,mxUtils.bind(this,function(m){delete e.meta.isNew;this.getFile(q+"/"+v+"/"+D+"/"+G,mxUtils.bind(this,function(t){t.getData()==e.getData()?f(t.getCurrentEtag()):f({content:e.getCurrentEtag()})}),c,null,
-null,e.meta.refPos)}),c)}),d=mxUtils.bind(this,function(){if(this.ui.useCanvasForExport&&/(\.png)$/i.test(G)){var g=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(k){B(e.meta.last_commit_id,k)}),c,this.ui.getCurrentFile()!=e?e.getData():null,g.scale,g.border)}else B(e.meta.last_commit_id,Base64.encode(e.getData()))});l?this.getFile(q+"/"+v+"/"+D+"/"+G,mxUtils.bind(this,function(g){e.meta.last_commit_id=g.meta.last_commit_id;d()}),c):d()};GitLabClient.prototype.pickFolder=
-function(e){this.showGitLabDialog(!1,e,!0)};GitLabClient.prototype.pickFile=function(e){e=null!=e?e:mxUtils.bind(this,function(f){this.ui.loadFile("A"+encodeURIComponent(f))});this.showGitLabDialog(!0,e)};GitLabClient.prototype.showGitLabDialog=function(e,f,c){var l=null,p=null,q=null,v=null,D=document.createElement("div");D.style.whiteSpace="nowrap";D.style.overflow="hidden";D.style.height="304px";var G=document.createElement("h3");mxUtils.write(G,mxResources.get(e?"selectFile":"selectFolder"));
-G.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";D.appendChild(G);var B=document.createElement("div");B.style.whiteSpace="nowrap";B.style.border="1px solid lightgray";B.style.boxSizing="border-box";B.style.padding="4px";B.style.overflow="auto";B.style.lineHeight="1.2em";B.style.height="274px";D.appendChild(B);var d=document.createElement("div");d.style.textOverflow="ellipsis";d.style.boxSizing="border-box";d.style.overflow="hidden";d.style.padding="4px";d.style.width=
-"100%";var g=new CustomDialog(this.ui,D,mxUtils.bind(this,function(){f(l+"/"+p+"/"+encodeURIComponent(q)+"/"+v)}));this.ui.showDialog(g.container,420,370,!0,!0);e&&g.okButton.parentNode.removeChild(g.okButton);var k=mxUtils.bind(this,function(Q,S,V,P){var u=document.createElement("a");u.setAttribute("title",Q);u.style.cursor="pointer";mxUtils.write(u,Q);mxEvent.addListener(u,"click",S);P&&(u.style.textDecoration="underline");null!=V&&(Q=d.cloneNode(),Q.style.padding=V,Q.appendChild(u),u=Q);return u}),
-m=mxUtils.bind(this,function(Q){var S=document.createElement("div");S.style.marginBottom="8px";S.appendChild(k(l+"/"+p,mxUtils.bind(this,function(){v=null;C()}),null,!0));Q||(mxUtils.write(S," / "),S.appendChild(k(decodeURIComponent(q),mxUtils.bind(this,function(){v=null;F()}),null,!0)));if(null!=v&&0<v.length){var V=v.split("/");for(Q=0;Q<V.length;Q++)(function(P){mxUtils.write(S," / ");S.appendChild(k(V[P],mxUtils.bind(this,function(){v=V.slice(0,P+1).join("/");I()}),null,!0))})(Q)}B.appendChild(S)}),
-t=mxUtils.bind(this,function(Q){this.ui.handleError(Q,null,mxUtils.bind(this,function(){this.ui.spinner.stop();null!=this.getUser()?(v=q=p=l=null,C()):this.ui.hideDialog()}))}),y=null,z=null,I=mxUtils.bind(this,function(Q){null==Q&&(B.innerText="",Q=1);var S=new mxXmlRequest(this.baseUrl+"/projects/"+encodeURIComponent(l+"/"+p)+"/repository/tree?path="+v+"&ref="+q+"&per_page=100&page="+Q,null,"GET");this.ui.spinner.spin(B,mxResources.get("loading"));g.okButton.removeAttribute("disabled");null!=z&&
-(mxEvent.removeListener(B,"scroll",z),z=null);null!=y&&null!=y.parentNode&&y.parentNode.removeChild(y);y=document.createElement("a");y.style.display="block";y.style.cursor="pointer";mxUtils.write(y,mxResources.get("more")+"...");var V=mxUtils.bind(this,function(){I(Q+1)});mxEvent.addListener(y,"click",V);this.executeRequest(S,mxUtils.bind(this,function(P){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==Q&&(m(!q),B.appendChild(k("../ [Up]",mxUtils.bind(this,function(){if(""==
-v||null==v)v=null,C();else{var K=v.split("/");v=K.slice(0,K.length-1).join("/");I()}}),"4px")));var u=JSON.parse(P.getText());if(null==u||0==u.length)c||(mxUtils.br(B),mxUtils.write(B,mxResources.get("noFiles")));else{var x=!0,J=0,H=mxUtils.bind(this,function(K){for(var N=0;N<u.length;N++)mxUtils.bind(this,function(M){if(K==("tree"==M.type)){var n=d.cloneNode();n.style.backgroundColor=x?Editor.isDarkMode()?"#000000":"#eeeeee":"";x=!x;var A=document.createElement("img");A.src=IMAGE_PATH+"/"+("tree"==
-M.type?"folder.png":"file.png");A.setAttribute("align","absmiddle");A.style.marginRight="4px";A.style.marginTop="-4px";A.width=20;n.appendChild(A);n.appendChild(k(M.name+("tree"==M.type?"/":""),mxUtils.bind(this,function(){"tree"==M.type?(v=M.path,I()):e&&"blob"==M.type&&(this.ui.hideDialog(),f(l+"/"+p+"/"+q+"/"+M.path))})));B.appendChild(n);J++}})(u[N])});H(!0);e&&H(!1);100==J&&(B.appendChild(y),z=function(){B.scrollTop>=B.scrollHeight-B.offsetHeight&&V()},mxEvent.addListener(B,"scroll",z))}}))}),
-t,!0)}),F=mxUtils.bind(this,function(Q,S){null==Q&&(B.innerText="",Q=1);var V=new mxXmlRequest(this.baseUrl+"/projects/"+encodeURIComponent(l+"/"+p)+"/repository/branches?per_page=100&page="+Q,null,"GET");g.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(B,mxResources.get("loading"));null!=z&&(mxEvent.removeListener(B,"scroll",z),z=null);null!=y&&null!=y.parentNode&&y.parentNode.removeChild(y);y=document.createElement("a");y.style.display="block";y.style.cursor="pointer";mxUtils.write(y,
-mxResources.get("more")+"...");var P=mxUtils.bind(this,function(){F(Q+1)});mxEvent.addListener(y,"click",P);this.executeRequest(V,mxUtils.bind(this,function(u){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==Q&&(m(!0),B.appendChild(k("../ [Up]",mxUtils.bind(this,function(){v=null;C()}),"4px")));var x=JSON.parse(u.getText());if(null==x||0==x.length)mxUtils.br(B),mxUtils.write(B,mxResources.get("repositoryNotFound"));else if(1==x.length&&S)q=x[0].name,v="",I();else{for(var J=
-0;J<x.length;J++)mxUtils.bind(this,function(H,K){var N=d.cloneNode();N.style.backgroundColor=0==K%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";N.appendChild(k(H.name,mxUtils.bind(this,function(){q=encodeURIComponent(H.name);v="";I()})));B.appendChild(N)})(x[J],J);100==x.length&&(B.appendChild(y),z=function(){B.scrollTop>=B.scrollHeight-B.offsetHeight&&P()},mxEvent.addListener(B,"scroll",z))}}))}),t)});g.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(B,mxResources.get("loading"));
-var C=mxUtils.bind(this,function(Q){var S=this.ui.spinner,V=0;this.ui.spinner.stop();var P=function(){S.spin(B,mxResources.get("loading"));V+=1},u=function(){--V;0===V&&S.stop()};null==Q&&(B.innerText="",Q=1);null!=z&&(mxEvent.removeListener(B,"scroll",z),z=null);null!=y&&null!=y.parentNode&&y.parentNode.removeChild(y);y=document.createElement("a");y.style.display="block";y.style.cursor="pointer";mxUtils.write(y,mxResources.get("more")+"...");var x=mxUtils.bind(this,function(){0===V&&C(Q+1)});mxEvent.addListener(y,
-"click",x);var J=mxUtils.bind(this,function(K){P();var N=new mxXmlRequest(this.baseUrl+"/groups?per_page=100",null,"GET");this.executeRequest(N,mxUtils.bind(this,function(M){this.ui.tryAndHandle(mxUtils.bind(this,function(){K(JSON.parse(M.getText()));u()}))}),t)}),H=mxUtils.bind(this,function(K,N){P();var M=new mxXmlRequest(this.baseUrl+"/groups/"+K.id+"/projects?per_page=100",null,"GET");this.executeRequest(M,mxUtils.bind(this,function(n){this.ui.tryAndHandle(mxUtils.bind(this,function(){N(K,JSON.parse(n.getText()));
-u()}))}),t)});J(mxUtils.bind(this,function(K){if(null==this.user)mxUtils.write(B,mxResources.get("loggedOut"));else{P();var N=new mxXmlRequest(this.baseUrl+"/users/"+this.user.id+"/projects?per_page=100&page="+Q,null,"GET");this.executeRequest(N,mxUtils.bind(this,function(M){M=JSON.parse(M.getText());if(null!=M&&0!=M.length||null!=K&&0!=K.length){1==Q&&(B.appendChild(k(mxResources.get("enterValue")+"...",mxUtils.bind(this,function(){if(0===V){var E=new FilenameDialog(this.ui,"group/project",mxResources.get("ok"),
-mxUtils.bind(this,function(L){null!=L&&(L=L.split("/"),1<L.length?(l=L.slice(0,L.length-1).join("/"),p=L[L.length-1],v="",F(null,!0)):(this.ui.spinner.stop(),this.ui.handleError({message:mxResources.get("invalidName")})))}),mxResources.get("enterValue"));this.ui.showDialog(E.container,300,80,!0,!1);E.init()}}))),mxUtils.br(B),mxUtils.br(B));for(var n=!0,A=0;A<M.length;A++)mxUtils.bind(this,function(E){var L=d.cloneNode();L.style.backgroundColor=n?Editor.isDarkMode()?"#000000":"#eeeeee":"";n=!n;L.appendChild(k(E.name_with_namespace,
-mxUtils.bind(this,function(){0===V&&(l=E.owner.username,p=E.path,v="",F(null,!0))})));B.appendChild(L)})(M[A]);for(A=0;A<K.length;A++)P(),H(K[A],mxUtils.bind(this,function(E,L){u();for(var O=0;O<L.length;O++){var R=d.cloneNode();R.style.backgroundColor=n?Editor.isDarkMode()?"#000000":"#eeeeee":"";n=!n;mxUtils.bind(this,function(T){R.appendChild(k(T.name_with_namespace,mxUtils.bind(this,function(){0===V&&(l=E.full_path,p=T.path,v="",F(null,!0))})));B.appendChild(R)})(L[O])}}));u()}else u(),mxUtils.br(B),
-mxUtils.write(B,mxResources.get("repositoryNotFound"));100==M.length&&(B.appendChild(y),z=function(){B.scrollTop>=B.scrollHeight-B.offsetHeight&&x()},mxEvent.addListener(B,"scroll",z))}),t)}}))});b?this.user?C():this.updateUser(function(){C()},t,!0):this.authenticate(mxUtils.bind(this,function(){this.updateUser(function(){C()},t,!0)}),t)};GitLabClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));
-this.clearPersistentToken();this.setUser(null);b=null;this.setToken(null)}})();DrawioComment=function(b,e,f,c,l,p,q){this.file=b;this.id=e;this.content=f;this.modifiedDate=c;this.createdDate=l;this.isResolved=p;this.user=q;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,f,c,l){e()};DrawioComment.prototype.editComment=function(b,e,f){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DriveComment=function(b,e,f,c,l,p,q,v){DrawioComment.call(this,b,e,f,c,l,p,q);this.pCommentId=v};mxUtils.extend(DriveComment,DrawioComment);DriveComment.prototype.addReply=function(b,e,f,c,l){b={content:b.content};c?b.verb="resolve":l&&(b.verb="reopen");this.file.ui.drive.executeRequest({url:"/files/"+this.file.getId()+"/comments/"+this.id+"/replies",params:b,method:"POST"},mxUtils.bind(this,function(p){e(p.replyId)}),f)};
+e),null,"GET")).send(mxUtils.bind(this,function(v){if(200<=v.getStatus()&&299>=v.getStatus())try{b=JSON.parse(v.getText()).access_token,this.setToken(b),this.setUser(null),f()}catch(t){c({message:mxResources.get("authFailed"),retry:l})}else this.clearPersistentToken(),this.setUser(null),b=null,this.setToken(null),401==v.getStatus()?l():c({message:mxResources.get("accessDenied"),retry:l})}),c):this.ui.showAuthDialog(this,!0,mxUtils.bind(this,function(v,t){null!=window.open(DRAWIO_GITLAB_URL+"/oauth/authorize?client_id="+
+this.clientId+"&scope="+this.scope+"&redirect_uri="+encodeURIComponent(this.redirectUri)+"&response_type=code&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host+"&token="+e),"gitlabauth")?window.onGitLabCallback=mxUtils.bind(this,function(E,H){p?(window.onGitLabCallback=null,p=!1,null==E?c({message:mxResources.get("accessDenied"),retry:l}):(null!=t&&t(),b=E.access_token,this.setToken(b),this.setUser(null),v&&this.setPersistentToken("remembered"),f(),null!=H&&H.close())):
+null!=H&&H.close()}):c({message:mxResources.get("serviceUnavailableOrBlocked"),retry:l})}),mxUtils.bind(this,function(){p&&(window.onGitLabCallback=null,p=!1,c({message:mxResources.get("accessDenied"),retry:l}))}))});l()}else c({code:App.ERROR_BUSY})};GitLabClient.prototype.executeRequest=function(e,f,c,l){var p=mxUtils.bind(this,function(t){var E=!0,H=window.setTimeout(mxUtils.bind(this,function(){E=!1;c({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout),B=this.authToken+
+" "+b;e.setRequestHeaders=function(d,g){d.setRequestHeader("Authorization",B);d.setRequestHeader("PRIVATE_TOKEN",B);d.setRequestHeader("Content-Type","application/json")};e.send(mxUtils.bind(this,function(){window.clearTimeout(H);if(E)if(200<=e.getStatus()&&299>=e.getStatus()||l&&404==e.getStatus())f(e);else if(401===e.getStatus())t?c({message:mxResources.get("accessDenied"),retry:mxUtils.bind(this,function(){this.authenticate(function(){v(!0)},c)})}):this.authenticate(function(){p(!0)},c);else if(403===
+e.getStatus()){var d=!1;try{var g=JSON.parse(e.getText());null!=g&&null!=g.errors&&0<g.errors.length&&(d="too_large"==g.errors[0].code)}catch(k){}c({message:mxResources.get(d?"drawingTooLarge":"forbidden")})}else 404===e.getStatus()?c({message:this.getErrorMessage(e,mxResources.get("fileNotFound"))}):c({status:e.getStatus(),message:this.getErrorMessage(e,mxResources.get("error")+" "+e.getStatus())})}),mxUtils.bind(this,function(d){window.clearTimeout(H);E&&c(d)}))}),v=mxUtils.bind(this,function(t){null==
+this.user?this.updateUser(function(){v(!0)},c,t):p(t)});null==b?this.authenticate(function(){v(!0)},c):v(!1)};GitLabClient.prototype.getRefIndex=function(e,f,c,l,p,v){if(null!=p)c(e,p);else{var t=e.length-2,E=mxUtils.bind(this,function(){if(2>t)l({message:mxResources.get("fileNotFound")});else{var H=Math.max(t-1,0),B=e.slice(0,H).join("/");H=e[H];var d=e[t],g=e.slice(t+1,e.length).join("/");B=this.baseUrl+"/projects/"+encodeURIComponent(B+"/"+H)+"/repository/"+(f?v?"branches?per_page=1&page=1&ref="+
+d:"tree?path="+g+"&ref="+d:"files/"+encodeURIComponent(g)+"?ref="+d);var k=new mxXmlRequest(B,null,"HEAD");this.executeRequest(k,mxUtils.bind(this,function(){200==k.getStatus()?c(e,t):l({message:mxResources.get("fileNotFound")})}),mxUtils.bind(this,function(){404==k.getStatus()?(t--,E()):l({message:mxResources.get("fileNotFound")})}))}});E()}};GitLabClient.prototype.getFile=function(e,f,c,l,p,v){l=null!=l?l:!1;this.getRefIndex(e.split("/"),!1,mxUtils.bind(this,function(t,E){var H=Math.max(E-1,0),
+B=t.slice(0,H).join("/"),d=t[H],g=t[E];e=t.slice(E+1,t.length).join("/");t=/\.png$/i.test(e);if(!p&&(/\.v(dx|sdx?)$/i.test(e)||/\.gliffy$/i.test(e)||/\.pdf$/i.test(e)||!this.ui.useCanvasForExport&&t))if(null!=b){H="&t="+(new Date).getTime();var k=this.baseUrl+"/projects/"+encodeURIComponent(B+"/"+d)+"/repository/files/"+encodeURIComponent(e)+"?ref="+g;t=e.split("/");this.ui.convertFile(k+H,0<t.length?t[t.length-1]:e,null,this.extension,f,c,mxUtils.bind(this,function(m,u,x){m=new mxXmlRequest(m,null,
+"GET");this.executeRequest(m,mxUtils.bind(this,function(A){try{u(this.getFileContent(JSON.parse(A.getText())))}catch(I){x(I)}}),x)}))}else c({message:mxResources.get("accessDenied")});else H="&t="+(new Date).getTime(),k=this.baseUrl+"/projects/"+encodeURIComponent(B+"/"+d)+"/repository/files/"+encodeURIComponent(e)+"?ref="+g,t=new mxXmlRequest(k+H,null,"GET"),this.executeRequest(t,mxUtils.bind(this,function(m){try{f(this.createGitLabFile(B,d,g,JSON.parse(m.getText()),l,E))}catch(u){c(u)}}),c)}),c,
+v)};GitLabClient.prototype.getFileContent=function(e){var f=e.file_name,c=e.content;"base64"===e.encoding&&(/\.jpe?g$/i.test(f)?c="data:image/jpeg;base64,"+c:/\.gif$/i.test(f)?c="data:image/gif;base64,"+c:/\.pdf$/i.test(f)?c="data:application/pdf;base64,"+c:/\.png$/i.test(f)?(e=this.ui.extractGraphModelFromPng(c),c=null!=e&&0<e.length?e:"data:image/png;base64,"+c):c=Base64.decode(c));return c};GitLabClient.prototype.createGitLabFile=function(e,f,c,l,p,v){var t=DRAWIO_GITLAB_URL+"/";e={org:e,repo:f,
+ref:c,name:l.file_name,path:l.file_path,html_url:t+e+"/"+f+"/blob/"+c+"/"+l.file_path,download_url:t+e+"/"+f+"/raw/"+c+"/"+l.file_path+"?inline=false",last_commit_id:l.last_commit_id,refPos:v};l=this.getFileContent(l);return p?new GitLabLibrary(this.ui,l,e):new GitLabFile(this.ui,l,e)};GitLabClient.prototype.insertFile=function(e,f,c,l,p,v,t){p=null!=p?p:!1;v=v.split("/");this.getRefIndex(v,!0,mxUtils.bind(this,function(E,H){var B=Math.max(H-1,0),d=E.slice(0,B).join("/"),g=E[B],k=E[H];path=E.slice(H+
+1,E.length).join("/");0<path.length&&(path+="/");path+=e;this.checkExists(d+"/"+g+"/"+k+"/"+path,!0,mxUtils.bind(this,function(m,u){m?p?(t||(f=Base64.encode(f)),this.showCommitDialog(e,!0,mxUtils.bind(this,function(x){this.writeFile(d,g,k,path,x,f,u,mxUtils.bind(this,function(A){try{var I=JSON.parse(A.getText());c(this.createGitLabFile(d,g,k,null!=I.content?I.content:I,p,H))}catch(F){l(F)}}),l)}),l)):(m=DRAWIO_GITLAB_URL+"/",c(new GitLabFile(this.ui,f,{org:d,repo:g,ref:k,name:e,path:path,html_url:m+
+d+"/"+g+"/blob/"+k+"/"+path,download_url:m+d+"/"+g+"/raw/"+k+"/"+path+"?inline=false",refPos:H,last_commit_id:u,isNew:!0}))):l()}))}),l,null,4>=v.length)};GitLabClient.prototype.checkExists=function(e,f,c){this.getFile(e,mxUtils.bind(this,function(l){if(f){var p=this.ui.spinner.pause();this.ui.confirm(mxResources.get("replaceIt",[e]),function(){p();c(!0,l.getCurrentEtag())},function(){p();c(!1)})}else this.ui.spinner.stop(),this.ui.showError(mxResources.get("error"),mxResources.get("fileExists"),
+mxResources.get("ok"),function(){c(!1)})}),mxUtils.bind(this,function(l){c(!0)}),null,!0)};GitLabClient.prototype.writeFile=function(e,f,c,l,p,v,t,E,H){if(v.length>=this.maxFileSize)H({message:mxResources.get("drawingTooLarge")+" ("+this.ui.formatFileSize(v.length)+" / 10 MB)"});else{var B="POST";c={path:encodeURIComponent(l),branch:decodeURIComponent(c),commit_message:p,content:v,encoding:"base64"};null!=t&&(c.last_commit_id=t,B="PUT");e=this.baseUrl+"/projects/"+encodeURIComponent(e+"/"+f)+"/repository/files/"+
+encodeURIComponent(l);B=new mxXmlRequest(e,JSON.stringify(c),B);this.executeRequest(B,mxUtils.bind(this,function(d){E(d)}),H)}};GitLabClient.prototype.saveFile=function(e,f,c,l,p){var v=e.meta.org,t=e.meta.repo,E=e.meta.ref,H=e.meta.path,B=mxUtils.bind(this,function(g,k){this.writeFile(v,t,E,H,p,k,g,mxUtils.bind(this,function(m){delete e.meta.isNew;this.getFile(v+"/"+t+"/"+E+"/"+H,mxUtils.bind(this,function(u){u.getData()==e.getData()?f(u.getCurrentEtag()):f({content:e.getCurrentEtag()})}),c,null,
+null,e.meta.refPos)}),c)}),d=mxUtils.bind(this,function(){if(this.ui.useCanvasForExport&&/(\.png)$/i.test(H)){var g=this.ui.getPngFileProperties(this.ui.fileNode);this.ui.getEmbeddedPng(mxUtils.bind(this,function(k){B(e.meta.last_commit_id,k)}),c,this.ui.getCurrentFile()!=e?e.getData():null,g.scale,g.border)}else B(e.meta.last_commit_id,Base64.encode(e.getData()))});l?this.getFile(v+"/"+t+"/"+E+"/"+H,mxUtils.bind(this,function(g){e.meta.last_commit_id=g.meta.last_commit_id;d()}),c):d()};GitLabClient.prototype.pickFolder=
+function(e){this.showGitLabDialog(!1,e,!0)};GitLabClient.prototype.pickFile=function(e){e=null!=e?e:mxUtils.bind(this,function(f){this.ui.loadFile("A"+encodeURIComponent(f))});this.showGitLabDialog(!0,e)};GitLabClient.prototype.showGitLabDialog=function(e,f,c){var l=null,p=null,v=null,t=null,E=document.createElement("div");E.style.whiteSpace="nowrap";E.style.overflow="hidden";E.style.height="304px";var H=document.createElement("h3");mxUtils.write(H,mxResources.get(e?"selectFile":"selectFolder"));
+H.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";E.appendChild(H);var B=document.createElement("div");B.style.whiteSpace="nowrap";B.style.border="1px solid lightgray";B.style.boxSizing="border-box";B.style.padding="4px";B.style.overflow="auto";B.style.lineHeight="1.2em";B.style.height="274px";E.appendChild(B);var d=document.createElement("div");d.style.textOverflow="ellipsis";d.style.boxSizing="border-box";d.style.overflow="hidden";d.style.padding="4px";d.style.width=
+"100%";var g=new CustomDialog(this.ui,E,mxUtils.bind(this,function(){f(l+"/"+p+"/"+encodeURIComponent(v)+"/"+t)}));this.ui.showDialog(g.container,420,370,!0,!0);e&&g.okButton.parentNode.removeChild(g.okButton);var k=mxUtils.bind(this,function(P,R,U,O){var V=document.createElement("a");V.setAttribute("title",P);V.style.cursor="pointer";mxUtils.write(V,P);mxEvent.addListener(V,"click",R);O&&(V.style.textDecoration="underline");null!=U&&(P=d.cloneNode(),P.style.padding=U,P.appendChild(V),V=P);return V}),
+m=mxUtils.bind(this,function(P){var R=document.createElement("div");R.style.marginBottom="8px";R.appendChild(k(l+"/"+p,mxUtils.bind(this,function(){t=null;C()}),null,!0));P||(mxUtils.write(R," / "),R.appendChild(k(decodeURIComponent(v),mxUtils.bind(this,function(){t=null;F()}),null,!0)));if(null!=t&&0<t.length){var U=t.split("/");for(P=0;P<U.length;P++)(function(O){mxUtils.write(R," / ");R.appendChild(k(U[O],mxUtils.bind(this,function(){t=U.slice(0,O+1).join("/");I()}),null,!0))})(P)}B.appendChild(R)}),
+u=mxUtils.bind(this,function(P){this.ui.handleError(P,null,mxUtils.bind(this,function(){this.ui.spinner.stop();null!=this.getUser()?(t=v=p=l=null,C()):this.ui.hideDialog()}))}),x=null,A=null,I=mxUtils.bind(this,function(P){null==P&&(B.innerText="",P=1);var R=new mxXmlRequest(this.baseUrl+"/projects/"+encodeURIComponent(l+"/"+p)+"/repository/tree?path="+t+"&ref="+v+"&per_page=100&page="+P,null,"GET");this.ui.spinner.spin(B,mxResources.get("loading"));g.okButton.removeAttribute("disabled");null!=A&&
+(mxEvent.removeListener(B,"scroll",A),A=null);null!=x&&null!=x.parentNode&&x.parentNode.removeChild(x);x=document.createElement("a");x.style.display="block";x.style.cursor="pointer";mxUtils.write(x,mxResources.get("more")+"...");var U=mxUtils.bind(this,function(){I(P+1)});mxEvent.addListener(x,"click",U);this.executeRequest(R,mxUtils.bind(this,function(O){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==P&&(m(!v),B.appendChild(k("../ [Up]",mxUtils.bind(this,function(){if(""==
+t||null==t)t=null,C();else{var J=t.split("/");t=J.slice(0,J.length-1).join("/");I()}}),"4px")));var V=JSON.parse(O.getText());if(null==V||0==V.length)c||(mxUtils.br(B),mxUtils.write(B,mxResources.get("noFiles")));else{var q=!0,y=0,D=mxUtils.bind(this,function(J){for(var L=0;L<V.length;L++)mxUtils.bind(this,function(K){if(J==("tree"==K.type)){var n=d.cloneNode();n.style.backgroundColor=q?Editor.isDarkMode()?"#000000":"#eeeeee":"";q=!q;var z=document.createElement("img");z.src=IMAGE_PATH+"/"+("tree"==
+K.type?"folder.png":"file.png");z.setAttribute("align","absmiddle");z.style.marginRight="4px";z.style.marginTop="-4px";z.width=20;n.appendChild(z);n.appendChild(k(K.name+("tree"==K.type?"/":""),mxUtils.bind(this,function(){"tree"==K.type?(t=K.path,I()):e&&"blob"==K.type&&(this.ui.hideDialog(),f(l+"/"+p+"/"+v+"/"+K.path))})));B.appendChild(n);y++}})(V[L])});D(!0);e&&D(!1);100==y&&(B.appendChild(x),A=function(){B.scrollTop>=B.scrollHeight-B.offsetHeight&&U()},mxEvent.addListener(B,"scroll",A))}}))}),
+u,!0)}),F=mxUtils.bind(this,function(P,R){null==P&&(B.innerText="",P=1);var U=new mxXmlRequest(this.baseUrl+"/projects/"+encodeURIComponent(l+"/"+p)+"/repository/branches?per_page=100&page="+P,null,"GET");g.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(B,mxResources.get("loading"));null!=A&&(mxEvent.removeListener(B,"scroll",A),A=null);null!=x&&null!=x.parentNode&&x.parentNode.removeChild(x);x=document.createElement("a");x.style.display="block";x.style.cursor="pointer";mxUtils.write(x,
+mxResources.get("more")+"...");var O=mxUtils.bind(this,function(){F(P+1)});mxEvent.addListener(x,"click",O);this.executeRequest(U,mxUtils.bind(this,function(V){this.ui.tryAndHandle(mxUtils.bind(this,function(){this.ui.spinner.stop();1==P&&(m(!0),B.appendChild(k("../ [Up]",mxUtils.bind(this,function(){t=null;C()}),"4px")));var q=JSON.parse(V.getText());if(null==q||0==q.length)mxUtils.br(B),mxUtils.write(B,mxResources.get("repositoryNotFound"));else if(1==q.length&&R)v=q[0].name,t="",I();else{for(var y=
+0;y<q.length;y++)mxUtils.bind(this,function(D,J){var L=d.cloneNode();L.style.backgroundColor=0==J%2?Editor.isDarkMode()?"#000000":"#eeeeee":"";L.appendChild(k(D.name,mxUtils.bind(this,function(){v=encodeURIComponent(D.name);t="";I()})));B.appendChild(L)})(q[y],y);100==q.length&&(B.appendChild(x),A=function(){B.scrollTop>=B.scrollHeight-B.offsetHeight&&O()},mxEvent.addListener(B,"scroll",A))}}))}),u)});g.okButton.setAttribute("disabled","disabled");this.ui.spinner.spin(B,mxResources.get("loading"));
+var C=mxUtils.bind(this,function(P){var R=this.ui.spinner,U=0;this.ui.spinner.stop();var O=function(){R.spin(B,mxResources.get("loading"));U+=1},V=function(){--U;0===U&&R.stop()};null==P&&(B.innerText="",P=1);null!=A&&(mxEvent.removeListener(B,"scroll",A),A=null);null!=x&&null!=x.parentNode&&x.parentNode.removeChild(x);x=document.createElement("a");x.style.display="block";x.style.cursor="pointer";mxUtils.write(x,mxResources.get("more")+"...");var q=mxUtils.bind(this,function(){0===U&&C(P+1)});mxEvent.addListener(x,
+"click",q);var y=mxUtils.bind(this,function(J){O();var L=new mxXmlRequest(this.baseUrl+"/groups?per_page=100",null,"GET");this.executeRequest(L,mxUtils.bind(this,function(K){this.ui.tryAndHandle(mxUtils.bind(this,function(){J(JSON.parse(K.getText()));V()}))}),u)}),D=mxUtils.bind(this,function(J,L){O();var K=new mxXmlRequest(this.baseUrl+"/groups/"+J.id+"/projects?per_page=100",null,"GET");this.executeRequest(K,mxUtils.bind(this,function(n){this.ui.tryAndHandle(mxUtils.bind(this,function(){L(J,JSON.parse(n.getText()));
+V()}))}),u)});y(mxUtils.bind(this,function(J){if(null==this.user)mxUtils.write(B,mxResources.get("loggedOut"));else{O();var L=new mxXmlRequest(this.baseUrl+"/users/"+this.user.id+"/projects?per_page=100&page="+P,null,"GET");this.executeRequest(L,mxUtils.bind(this,function(K){K=JSON.parse(K.getText());if(null!=K&&0!=K.length||null!=J&&0!=J.length){1==P&&(B.appendChild(k(mxResources.get("enterValue")+"...",mxUtils.bind(this,function(){if(0===U){var G=new FilenameDialog(this.ui,"group/project",mxResources.get("ok"),
+mxUtils.bind(this,function(M){null!=M&&(M=M.split("/"),1<M.length?(l=M.slice(0,M.length-1).join("/"),p=M[M.length-1],t="",F(null,!0)):(this.ui.spinner.stop(),this.ui.handleError({message:mxResources.get("invalidName")})))}),mxResources.get("enterValue"));this.ui.showDialog(G.container,300,80,!0,!1);G.init()}}))),mxUtils.br(B),mxUtils.br(B));for(var n=!0,z=0;z<K.length;z++)mxUtils.bind(this,function(G){var M=d.cloneNode();M.style.backgroundColor=n?Editor.isDarkMode()?"#000000":"#eeeeee":"";n=!n;M.appendChild(k(G.name_with_namespace,
+mxUtils.bind(this,function(){0===U&&(l=G.owner.username,p=G.path,t="",F(null,!0))})));B.appendChild(M)})(K[z]);for(z=0;z<J.length;z++)O(),D(J[z],mxUtils.bind(this,function(G,M){V();for(var N=0;N<M.length;N++){var Q=d.cloneNode();Q.style.backgroundColor=n?Editor.isDarkMode()?"#000000":"#eeeeee":"";n=!n;mxUtils.bind(this,function(S){Q.appendChild(k(S.name_with_namespace,mxUtils.bind(this,function(){0===U&&(l=G.full_path,p=S.path,t="",F(null,!0))})));B.appendChild(Q)})(M[N])}}));V()}else V(),mxUtils.br(B),
+mxUtils.write(B,mxResources.get("repositoryNotFound"));100==K.length&&(B.appendChild(x),A=function(){B.scrollTop>=B.scrollHeight-B.offsetHeight&&q()},mxEvent.addListener(B,"scroll",A))}),u)}}))});b?this.user?C():this.updateUser(function(){C()},u,!0):this.authenticate(mxUtils.bind(this,function(){this.updateUser(function(){C()},u,!0)}),u)};GitLabClient.prototype.logout=function(){this.ui.editor.loadUrl(this.redirectUri+"?doLogout=1&state="+encodeURIComponent("cId="+this.clientId+"&domain="+window.location.host));
+this.clearPersistentToken();this.setUser(null);b=null;this.setToken(null)}})();DrawioComment=function(b,e,f,c,l,p,v){this.file=b;this.id=e;this.content=f;this.modifiedDate=c;this.createdDate=l;this.isResolved=p;this.user=v;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,e,f,c,l){e()};DrawioComment.prototype.editComment=function(b,e,f){e()};DrawioComment.prototype.deleteComment=function(b,e){b()};DriveComment=function(b,e,f,c,l,p,v,t){DrawioComment.call(this,b,e,f,c,l,p,v);this.pCommentId=t};mxUtils.extend(DriveComment,DrawioComment);DriveComment.prototype.addReply=function(b,e,f,c,l){b={content:b.content};c?b.verb="resolve":l&&(b.verb="reopen");this.file.ui.drive.executeRequest({url:"/files/"+this.file.getId()+"/comments/"+this.id+"/replies",params:b,method:"POST"},mxUtils.bind(this,function(p){e(p.replyId)}),f)};
DriveComment.prototype.editComment=function(b,e,f){this.content=b;b={content:b};this.file.ui.drive.executeRequest(this.pCommentId?{url:"/files/"+this.file.getId()+"/comments/"+this.pCommentId+"/replies/"+this.id,params:b,method:"PATCH"}:{url:"/files/"+this.file.getId()+"/comments/"+this.id,params:b,method:"PATCH"},e,f)};
-DriveComment.prototype.deleteComment=function(b,e){this.file.ui.drive.executeRequest(this.pCommentId?{url:"/files/"+this.file.getId()+"/comments/"+this.pCommentId+"/replies/"+this.id,method:"DELETE"}:{url:"/files/"+this.file.getId()+"/comments/"+this.id,method:"DELETE"},b,e)};function mxODPicker(b,e,f,c,l,p,q,v,D,G,B,d,g,k){function m(U,W){W=W||document;return W.querySelector(U)}function t(U,W,X){if(null==U["@microsoft.graph.downloadUrl"])if(null==U.parentReference)X();else{c(U.id,U.parentReference.driveId,function(ca){t(ca,W,X)},X);return}var Y=new XMLHttpRequest;Y.open("GET",U["@microsoft.graph.downloadUrl"]);var Z=U.file?"image/png"==U.file.mimeType:!1;Y.onreadystatechange=function(){if(4==this.readyState){if(200<=this.status&&299>=this.status)try{var ca=Y.responseText;
-Z?(ca="data:image/png;base64,"+Editor.base64Encode(ca),ca=Editor.extractGraphModelFromPng(ca)):/\.pdf$/.test(U.name)&&(ca="data:application/pdf;base64,"+Editor.base64Encode(ca),ca=Editor.extractGraphModelFromPdf(ca));var ea=mxUtils.parseXml(ca),ia="mxlibrary"==ea.documentElement.nodeName?ea.documentElement:Editor.extractGraphModel(ea.documentElement);if(null!=ia){W(ia.ownerDocument);return}}catch(ba){}X()}};(Z||/\.pdf$/.test(U.name))&&Y.overrideMimeType&&Y.overrideMimeType("text/plain; charset=x-user-defined");
-Y.send()}function y(){d&&null!=J?x.exportToCanvas(function(U){U=EditorUi.prototype.createImageDataUri(U,null,"png");q(H,U);p(H)},400,null,null,function(U){console.log(U)},600,null,null,null,null,null,J):(q(H,void 0),p(H))}function z(U){function W(X){O.style.background="transparent";O.innerText="";var Y=document.createElement("div");Y.className="odPreviewStatus";mxUtils.write(Y,X);O.appendChild(Y);u.stop()}if(null!=O)if(O.style.background="transparent",O.innerText="",null==U||U.folder||/\.drawiolib$/.test(U.name))W(mxResources.get("noPreview"));
-else try{null!=U.remoteItem&&(U=U.remoteItem),A=U,u.spin(O),t(U,function(X){u.stop();if(A==U)if("mxlibrary"==X.documentElement.nodeName)W(mxResources.get("noPreview"));else{var Y=X.getElementsByTagName("diagram");J=AspectDialog.prototype.createViewer(O,0==Y.length?X.documentElement:Y[0],null,"transparent")}},function(){H=null;W(mxResources.get("notADiagramFile"))})}catch(X){H=null,W(mxResources.get("notADiagramFile"))}}function I(){var U=m(".odFilesBreadcrumb");if(null!=U){U.innerText="";for(var W=
-0;W<M.length-1;W++){var X=document.createElement("span");X.className="odBCFolder";X.innerHTML=mxUtils.htmlEntities(M[W].name||mxResources.get("home"));U.appendChild(X);(function(Z,ca){X.addEventListener("click",function(){e(null);M=M.slice(0,ca);C(Z.driveId,Z.folderId,Z.siteId,Z.name)})})(M[W],W);var Y=document.createElement("span");Y.innerHTML=" &gt; ";U.appendChild(Y)}null!=M[M.length-1]&&(W=document.createElement("span"),W.innerHTML=mxUtils.htmlEntities(1==M.length?mxResources.get(D?"selectFolder":
-"officeSelDiag"):M[M.length-1].name||mxResources.get("home")),U.appendChild(W))}}function F(){if(null!=H&&!N)if("sharepoint"==K)C("site",null,H.id,H.displayName);else if("site"==K)C("subsite",null,H.id,H.name);else{var U=H.folder;H=H.remoteItem?H.remoteItem:H;var W=(H.parentReference?H.parentReference.driveId:null)||K,X=H.id;U?C(W,X,null,H.name):y()}}function C(U,W,X,Y,Z){function ca(va){u.stop();var Aa=document.createElement("table");Aa.className="odFileListGrid";for(var ka=null,ta=0,pa=0;null!=
-va&&pa<va.length;pa++){var ma=va[pa];if(1!=ba||!ma.webUrl||0<ma.webUrl.indexOf("sharepoint.com/sites/")||0>ma.webUrl.indexOf("sharepoint.com/")){var Da=ma.displayName||ma.name,wa=mxUtils.htmlEntities(ma.description||Da);ba&&(ma.folder=2==ba?{isRoot:!0}:!0);var ya=null!=ma.folder;if(!D||ya){var xa=document.createElement("tr");xa.className=ta++%2?"odOddRow":"odEvenRow";var Fa=document.createElement("td");Fa.style.width="36px";var Ca=document.createElement("img");Ca.src="/images/"+(ya?"folder.png":"file.png");
-Ca.className="odFileImg";Fa.appendChild(Ca);xa.appendChild(Fa);Fa=document.createElement("td");ya=document.createElement("div");ya.className="odFileTitle";ya.innerHTML=mxUtils.htmlEntities(Da);ya.setAttribute("title",wa);Fa.appendChild(ya);xa.appendChild(Fa);Aa.appendChild(xa);null==ka&&(ka=xa,ka.className+=" odRowSelected",H=ma,K=U,k||e(H));(function(Ia,La){xa.addEventListener("dblclick",F);xa.addEventListener("click",function(){ka!=La&&(ka.className=ka.className.replace("odRowSelected",""),ka=La,
-ka.className+=" odRowSelected",H=Ia,K=U,k||e(H))})})(ma,xa)}}}0==ta?(va=document.createElement("div"),va.className="odEmptyFolder",va.innerHTML=mxUtils.htmlEntities(mxResources.get("folderEmpty",null,"Folder is empty!")),aa.appendChild(va)):aa.appendChild(Aa);I();N=!1}function ea(va){f(va?va:Ba,function(Aa){if(ia){var ka=Aa.value||[];if(k||ba)Array.prototype.push.apply(na,ka);else{for(var ta=0;ta<ka.length;ta++){var pa=ka[ta],ma=pa.file?pa.file.mimeType:null;(pa.folder||"text/html"==ma||"text/xml"==
-ma||"application/xml"==ma||"image/png"==ma||/\.svg$/.test(pa.name)||/\.html$/.test(pa.name)||/\.xml$/.test(pa.name)||/\.png$/.test(pa.name)||/\.drawio$/.test(pa.name)||/\.drawiolib$/.test(pa.name)||/\.pdf$/.test(pa.name))&&na.push(pa)}na.sort(function(Da,wa){var ya=Da.name.toLowerCase(),xa=wa.name.toLowerCase();return Da.folder&&!wa.folder?-1:!Da.folder&&wa.folder?1:ya<xa?-1:ya>xa?1:0})}Aa["@odata.nextLink"]&&1E3>na.length?ea(Aa["@odata.nextLink"]):(clearTimeout(fa),ca(na))}},function(Aa){if(ia){clearTimeout(fa);
-var ka=null;try{ka=JSON.parse(Aa.responseText).error.message}catch(ta){}v(mxResources.get("errorFetchingFolder",null,"Error fetching folder items")+(null!=ka?" ("+ka+")":""));N=!1;u.stop()}},null!=va)}if(!N){m(".odCatsList").style.display="block";m(".odFilesSec").style.display="block";null!=O&&(O.innerText="",O.style.top="50%");var ia=N=!0,ba=0;n=arguments;var fa=setTimeout(function(){N=ia=!1;u.stop();v(mxResources.get("timeout"))},2E4),aa=m(".odFilesList");aa.innerText="";u.spin(aa);switch(U){case "recent":M=
-[{name:mxResources.get("recent",null,"Recent"),driveId:U}];var ja=l()||{},ha=[],da;for(da in ja)ha.push(ja[da]);clearTimeout(fa);ca(ha);return;case "shared":var Ba="/me/drive/sharedWithMe";M=[{name:mxResources.get("sharedWithMe",null,"Shared With Me"),driveId:U}];break;case "sharepoint":Ba="/sites?search=";M=[{name:mxResources.get("sharepointSites",null,"Sharepoint Sites"),driveId:U}];ba=1;break;case "site":M.push({name:Y,driveId:U,folderId:W,siteId:X});Ba="/sites/"+X+"/drives";ba=2;break;case "subsite":M.push({name:Y,
-driveId:U,folderId:W,siteId:X});Ba="/drives/"+X+(W?"/items/"+W:"/root")+"/children";break;case "search":U=K;M=[{driveId:U,name:mxResources.get("back",null,"Back")}];Z=encodeURIComponent(Z.replace(/'/g,"\\'"));Ba=U?"/drives/"+U+"/root/search(q='"+Z+"')":"/me/drive/root/search(q='"+Z+"')";break;default:null==W?M=[{driveId:U}]:M.push({name:Y,driveId:U,folderId:W}),Ba=(U?"/drives/"+U:"/me/drive")+(W?"/items/"+W:"/root")+"/children"}ba||(Ba+=(0<Ba.indexOf("?")?"&":"?")+"select=id,name,description,parentReference,file,createdBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.graph.downloadUrl");
-var na=[];ea()}}function Q(U){R.className=R.className.replace("odCatSelected","");R=U;R.className+=" odCatSelected"}function S(U){N||(T=null,C("search",null,null,null,U))}var V="";null==e&&(e=z,V='<div style="text-align: center;" class="odPreview"></div>');null==l&&(l=function(){var U=null;try{U=JSON.parse(localStorage.getItem("mxODPickerRecentList"))}catch(W){}return U});null==p&&(p=function(U){if(null!=U){var W=l()||{};delete U["@microsoft.graph.downloadUrl"];W[U.id]=U;localStorage.setItem("mxODPickerRecentList",
-JSON.stringify(W))}});V='<div class="odCatsList"><div class="odCatsListLbl">OneDrive</div><div id="odFiles" class="odCatListTitle odCatSelected">'+mxUtils.htmlEntities(mxResources.get("files"))+'</div><div id="odRecent" class="odCatListTitle">'+mxUtils.htmlEntities(mxResources.get("recent"))+'</div><div id="odShared" class="odCatListTitle">'+mxUtils.htmlEntities(mxResources.get("shared"))+'</div><div id="odSharepoint" class="odCatListTitle">'+mxUtils.htmlEntities(mxResources.get("sharepoint"))+'</div></div><div class="odFilesSec"><div class="searchBar" style="display:none"><input type="search" id="odSearchBox" placeholder="'+
-mxUtils.htmlEntities(mxResources.get("search"))+'"></div><div class="odFilesBreadcrumb"></div><div id="refreshOD" class="odRefreshButton"><img class="geAdaptiveAsset" src="/images/update32.png" width="16" height="16" title="'+mxUtils.htmlEntities(mxResources.get("refresh"))+'Refresh" border="0"/></div><div class="odFilesList"></div></div>'+V+(G?'<div id="odBackBtn" class="odLinkBtn">&lt; '+mxUtils.htmlEntities(mxResources.get("back"))+"</div>":"")+(B?'<button id="odSubmitBtn" class="odSubmitBtn">'+
-mxUtils.htmlEntities(mxResources.get(D?"select":"open"))+"</button>":"");var P=null!=window.Editor&&null!=Editor.isDarkMode&&Editor.isDarkMode();P=".odCatsList *, .odFilesSec * { user-select: none; }.odCatsList {\tbox-sizing: border-box;\tposition:absolute;\ttop:0px;\tbottom:50%;\twidth:30%;\tborder: 1px solid #CCCCCC;\tborder-bottom:none;\tdisplay: inline-block;\toverflow-x: hidden;\toverflow-y: auto;}.odCatsListLbl {\theight: 17px;\tcolor: #6D6D6D;\tfont-size: 14px;\tfont-weight: bold;\tline-height: 17px;\tmargin: 10px 0 3px 5px;}.odFilesSec {\tbox-sizing: border-box;\tposition:absolute;\tleft:30%;\ttop:0px;\tbottom:50%;\twidth: 70%;\tborder: 1px solid #CCCCCC;\tborder-left:none;\tborder-bottom:none;\tdisplay: inline-block;\toverflow: hidden;}.odFilesBreadcrumb {\tbox-sizing: border-box;\tposition:absolute;\tmin-height: 32px;\tleft:0px;\tright:20px;\ttext-overflow:ellipsis;\toverflow:hidden;\tfont-size: 13px;\tcolor: #6D6D6D;\tpadding: 5px;}.odRefreshButton {\tbox-sizing: border-box;\tposition:absolute;\tright:0px;\ttop:0px;\tpadding: 4px;\tmargin: 1px;\theight:24px;\tcursor:default;}.odRefreshButton>img {\topacity:0.5;}.odRefreshButton:hover {\tbackground-color:#ddd;\tborder-radius:50%;}.odRefreshButton:active {\topacity:0.7;}.odFilesList {\tbox-sizing: border-box;\tposition:absolute;\ttop:32px;\tbottom:0px;\twidth: 100%;\toverflow-x: hidden;\toverflow-y: auto;}.odFileImg {\twidth: 24px;\tpadding-left: 5px;\tpadding-right: 5px;}.odFileTitle {\tcursor: default;\tfont-weight: normal;\tcolor: #666666 !important;\twidth: calc(100% - 20px);\twhite-space: nowrap;\toverflow: hidden;\ttext-overflow: ellipsis;}.odFileListGrid {\twidth: 100%;\twhite-space: nowrap;\tfont-size: 13px; box-sizing: border-box; border-spacing: 0;}.odOddRow {"+
-(P?"":"\tbackground-color: #eeeeee;")+"}.odEvenRow {"+(P?"":"\tbackground-color: #FFFFFF;")+"}.odRowSelected {\tbackground-color: #cadfff;}.odCatListTitle {\tbox-sizing: border-box;\theight: 17px;\tcursor: default;\tcolor: #666666;\tfont-size: 14px;\tline-height: 17px;\tmargin: 5px 0 5px 0px; padding-left: 10px;}.odCatSelected {\tfont-weight: bold;\tbackground-color: #cadfff;}.odEmptyFolder {\theight: 17px;\tcolor: #6D6D6D;\tfont-size: 14px;\tfont-weight: bold;\tline-height: 17px;\tmargin: 10px 0 3px 5px;\twidth: 100%; text-align: center;}.odBCFolder {\tcursor: pointer;\tcolor: #0432ff;}.odPreviewStatus {\tposition:absolute;\ttext-align:center;\twidth:100%;\ttop:50%;\ttransform: translateY(-50%);\tfont-size:13px;\topacity:0.5;}.odPreview { position:absolute;\t overflow:hidden;\t border: 1px solid #CCCCCC; bottom:0px; top: 50%; left:0px; right:0px;}.odLinkBtn { position: absolute;\tfont-size: 12px;\tcursor: pointer;\tcolor: #6D6D6D;\tleft: 5px;\tbottom: 3px;}.odSubmitBtn { position: absolute;\tcolor: #333;\tright: 5px;\tbottom: 5px;}";
-var u=new Spinner({left:"50%",lines:12,length:8,width:3,radius:5,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9}),x=new Editor,J=null,H=null,K=null,N=!1,M=[],n=null,A=null;this.getSelectedItem=function(){null!=H&&p(H);return H};if(null==m("#mxODPickerCss")){var E=document.head||document.getElementsByTagName("head")[0],L=document.createElement("style");E.appendChild(L);L.type="text/css";L.id="mxODPickerCss";L.appendChild(document.createTextNode(P))}b.innerHTML=
-V;var O=m(".odPreview"),R=m("#odFiles");b=function(U,W){W=W||document;return W.querySelectorAll(U)}(".odCatListTitle");for(V=0;V<b.length;V++)b[V].addEventListener("click",function(){H=A=null;if(!N)switch(Q(this),this.id){case "odFiles":C();break;case "odRecent":C("recent");break;case "odShared":C("shared");break;case "odSharepoint":C("sharepoint")}});var T=null;m("#odSearchBox").addEventListener("keyup",function(U){var W=this;null!=T&&clearTimeout(T);13==U.keyCode?S(W.value):T=setTimeout(function(){S(W.value)},
-500)});m("#refreshOD").addEventListener("click",function(){if(null!=n){e(null);var U=M.slice();C.apply(this,n);M=U}});G&&m("#odBackBtn").addEventListener("click",G);B&&m("#odSubmitBtn").addEventListener("click",y);null!=g?(G=g.pop(),"sharepoint"==g[0].driveId&&Q(m("#odSharepoint")),M=g,C(G.driveId,G.folderId,G.siteId,G.name)):C()};App=function(b,e,f){EditorUi.call(this,b,e,null!=f?f:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||(window.onunload=mxUtils.bind(this,function(){var c=this.getCurrentFile();null!=c&&c.isModified()&&(c.getHash(),c.savingFile&&null!=c.savingFileTime&&(Date.now(),c.savingFileTime.getTime()),null!=c.ageStart&&(Date.now(),c.ageStart.getTime()),c.isAutosave(),null!=c.opened&&(Date.now(),c.opened.getTime()),null!=c.lastSaved&&(Date.now(),c.lastSaved.getTime()),
+DriveComment.prototype.deleteComment=function(b,e){this.file.ui.drive.executeRequest(this.pCommentId?{url:"/files/"+this.file.getId()+"/comments/"+this.pCommentId+"/replies/"+this.id,method:"DELETE"}:{url:"/files/"+this.file.getId()+"/comments/"+this.id,method:"DELETE"},b,e)};function mxODPicker(b,e,f,c,l,p,v,t,E,H,B,d,g,k){function m(T,W){W=W||document;return W.querySelector(T)}function u(T,W,X){if(null==T["@microsoft.graph.downloadUrl"])if(null==T.parentReference)X();else{c(T.id,T.parentReference.driveId,function(ba){u(ba,W,X)},X);return}var Z=new XMLHttpRequest;Z.open("GET",T["@microsoft.graph.downloadUrl"]);var Y=T.file?"image/png"==T.file.mimeType:!1;Z.onreadystatechange=function(){if(4==this.readyState){if(200<=this.status&&299>=this.status)try{var ba=Z.responseText;
+Y?(ba="data:image/png;base64,"+Editor.base64Encode(ba),ba=Editor.extractGraphModelFromPng(ba)):/\.pdf$/.test(T.name)&&(ba="data:application/pdf;base64,"+Editor.base64Encode(ba),ba=Editor.extractGraphModelFromPdf(ba));var da=mxUtils.parseXml(ba),ia="mxlibrary"==da.documentElement.nodeName?da.documentElement:Editor.extractGraphModel(da.documentElement);if(null!=ia){W(ia.ownerDocument);return}}catch(ca){}X()}};(Y||/\.pdf$/.test(T.name))&&Z.overrideMimeType&&Z.overrideMimeType("text/plain; charset=x-user-defined");
+Z.send()}function x(){d&&null!=y?q.exportToCanvas(function(T){T=EditorUi.prototype.createImageDataUri(T,null,"png");v(D,T);p(D)},400,null,null,function(T){console.log(T)},600,null,null,null,null,null,y):(v(D,void 0),p(D))}function A(T){function W(X){N.style.background="transparent";N.innerText="";var Z=document.createElement("div");Z.className="odPreviewStatus";mxUtils.write(Z,X);N.appendChild(Z);V.stop()}if(null!=N)if(N.style.background="transparent",N.innerText="",null==T||T.folder||/\.drawiolib$/.test(T.name))W(mxResources.get("noPreview"));
+else try{null!=T.remoteItem&&(T=T.remoteItem),z=T,V.spin(N),u(T,function(X){V.stop();if(z==T)if("mxlibrary"==X.documentElement.nodeName)W(mxResources.get("noPreview"));else{var Z=X.getElementsByTagName("diagram");y=AspectDialog.prototype.createViewer(N,0==Z.length?X.documentElement:Z[0],null,"transparent")}},function(){D=null;W(mxResources.get("notADiagramFile"))})}catch(X){D=null,W(mxResources.get("notADiagramFile"))}}function I(){var T=m(".odFilesBreadcrumb");if(null!=T){T.innerText="";for(var W=
+0;W<K.length-1;W++){var X=document.createElement("span");X.className="odBCFolder";X.innerHTML=mxUtils.htmlEntities(K[W].name||mxResources.get("home"));T.appendChild(X);(function(Y,ba){X.addEventListener("click",function(){e(null);K=K.slice(0,ba);C(Y.driveId,Y.folderId,Y.siteId,Y.name)})})(K[W],W);var Z=document.createElement("span");Z.innerHTML=" &gt; ";T.appendChild(Z)}null!=K[K.length-1]&&(W=document.createElement("span"),W.innerHTML=mxUtils.htmlEntities(1==K.length?mxResources.get(E?"selectFolder":
+"officeSelDiag"):K[K.length-1].name||mxResources.get("home")),T.appendChild(W))}}function F(){if(null!=D&&!L)if("sharepoint"==J)C("site",null,D.id,D.displayName);else if("site"==J)C("subsite",null,D.id,D.name);else{var T=D.folder;D=D.remoteItem?D.remoteItem:D;var W=(D.parentReference?D.parentReference.driveId:null)||J,X=D.id;T?C(W,X,null,D.name):x()}}function C(T,W,X,Z,Y){function ba(na){V.stop();var za=document.createElement("table");za.className="odFileListGrid";for(var ma=null,sa=0,oa=0;null!=
+na&&oa<na.length;oa++){var la=na[oa];if(1!=ca||!la.webUrl||0<la.webUrl.indexOf("sharepoint.com/sites/")||0>la.webUrl.indexOf("sharepoint.com/")){var Ea=la.displayName||la.name,va=mxUtils.htmlEntities(la.description||Ea);ca&&(la.folder=2==ca?{isRoot:!0}:!0);var Ca=null!=la.folder;if(!E||Ca){var xa=document.createElement("tr");xa.className=sa++%2?"odOddRow":"odEvenRow";var Da=document.createElement("td");Da.style.width="36px";var Ba=document.createElement("img");Ba.src="/images/"+(Ca?"folder.png":"file.png");
+Ba.className="odFileImg";Da.appendChild(Ba);xa.appendChild(Da);Da=document.createElement("td");Ca=document.createElement("div");Ca.className="odFileTitle";Ca.innerHTML=mxUtils.htmlEntities(Ea);Ca.setAttribute("title",va);Da.appendChild(Ca);xa.appendChild(Da);za.appendChild(xa);null==ma&&(ma=xa,ma.className+=" odRowSelected",D=la,J=T,k||e(D));(function(Ka,Ja){xa.addEventListener("dblclick",F);xa.addEventListener("click",function(){ma!=Ja&&(ma.className=ma.className.replace("odRowSelected",""),ma=Ja,
+ma.className+=" odRowSelected",D=Ka,J=T,k||e(D))})})(la,xa)}}}0==sa?(na=document.createElement("div"),na.className="odEmptyFolder",na.innerHTML=mxUtils.htmlEntities(mxResources.get("folderEmpty",null,"Folder is empty!")),aa.appendChild(na)):aa.appendChild(za);I();L=!1}function da(na){f(na?na:ya,function(za){if(ia){var ma=za.value||[];if(k||ca)Array.prototype.push.apply(ua,ma);else{for(var sa=0;sa<ma.length;sa++){var oa=ma[sa],la=oa.file?oa.file.mimeType:null;(oa.folder||"text/html"==la||"text/xml"==
+la||"application/xml"==la||"image/png"==la||/\.svg$/.test(oa.name)||/\.html$/.test(oa.name)||/\.xml$/.test(oa.name)||/\.png$/.test(oa.name)||/\.drawio$/.test(oa.name)||/\.drawiolib$/.test(oa.name)||/\.pdf$/.test(oa.name))&&ua.push(oa)}ua.sort(function(Ea,va){var Ca=Ea.name.toLowerCase(),xa=va.name.toLowerCase();return Ea.folder&&!va.folder?-1:!Ea.folder&&va.folder?1:Ca<xa?-1:Ca>xa?1:0})}za["@odata.nextLink"]&&1E3>ua.length?da(za["@odata.nextLink"]):(clearTimeout(fa),ba(ua))}},function(za){if(ia){clearTimeout(fa);
+var ma=null;try{ma=JSON.parse(za.responseText).error.message}catch(sa){}t(mxResources.get("errorFetchingFolder",null,"Error fetching folder items")+(null!=ma?" ("+ma+")":""));L=!1;V.stop()}},null!=na)}if(!L){m(".odCatsList").style.display="block";m(".odFilesSec").style.display="block";null!=N&&(N.innerText="",N.style.top="50%");var ia=L=!0,ca=0;n=arguments;var fa=setTimeout(function(){L=ia=!1;V.stop();t(mxResources.get("timeout"))},2E4),aa=m(".odFilesList");aa.innerText="";V.spin(aa);switch(T){case "recent":K=
+[{name:mxResources.get("recent",null,"Recent"),driveId:T}];var ja=l()||{},ha=[],ea;for(ea in ja)ha.push(ja[ea]);clearTimeout(fa);ba(ha);return;case "shared":var ya="/me/drive/sharedWithMe";K=[{name:mxResources.get("sharedWithMe",null,"Shared With Me"),driveId:T}];break;case "sharepoint":ya="/sites?search=";K=[{name:mxResources.get("sharepointSites",null,"Sharepoint Sites"),driveId:T}];ca=1;break;case "site":K.push({name:Z,driveId:T,folderId:W,siteId:X});ya="/sites/"+X+"/drives";ca=2;break;case "subsite":K.push({name:Z,
+driveId:T,folderId:W,siteId:X});ya="/drives/"+X+(W?"/items/"+W:"/root")+"/children";break;case "search":T=J;K=[{driveId:T,name:mxResources.get("back",null,"Back")}];Y=encodeURIComponent(Y.replace(/'/g,"\\'"));ya=T?"/drives/"+T+"/root/search(q='"+Y+"')":"/me/drive/root/search(q='"+Y+"')";break;default:null==W?K=[{driveId:T}]:K.push({name:Z,driveId:T,folderId:W}),ya=(T?"/drives/"+T:"/me/drive")+(W?"/items/"+W:"/root")+"/children"}ca||(ya+=(0<ya.indexOf("?")?"&":"?")+"select=id,name,description,parentReference,file,createdBy,lastModifiedBy,lastModifiedDateTime,size,folder,remoteItem,@microsoft.graph.downloadUrl");
+var ua=[];da()}}function P(T){Q.className=Q.className.replace("odCatSelected","");Q=T;Q.className+=" odCatSelected"}function R(T){L||(S=null,C("search",null,null,null,T))}var U="";null==e&&(e=A,U='<div style="text-align: center;" class="odPreview"></div>');null==l&&(l=function(){var T=null;try{T=JSON.parse(localStorage.getItem("mxODPickerRecentList"))}catch(W){}return T});null==p&&(p=function(T){if(null!=T){var W=l()||{};delete T["@microsoft.graph.downloadUrl"];W[T.id]=T;localStorage.setItem("mxODPickerRecentList",
+JSON.stringify(W))}});U='<div class="odCatsList"><div class="odCatsListLbl">OneDrive</div><div id="odFiles" class="odCatListTitle odCatSelected">'+mxUtils.htmlEntities(mxResources.get("files"))+'</div><div id="odRecent" class="odCatListTitle">'+mxUtils.htmlEntities(mxResources.get("recent"))+'</div><div id="odShared" class="odCatListTitle">'+mxUtils.htmlEntities(mxResources.get("shared"))+'</div><div id="odSharepoint" class="odCatListTitle">'+mxUtils.htmlEntities(mxResources.get("sharepoint"))+'</div></div><div class="odFilesSec"><div class="searchBar" style="display:none"><input type="search" id="odSearchBox" placeholder="'+
+mxUtils.htmlEntities(mxResources.get("search"))+'"></div><div class="odFilesBreadcrumb"></div><div id="refreshOD" class="odRefreshButton"><img class="geAdaptiveAsset" src="/images/update32.png" width="16" height="16" title="'+mxUtils.htmlEntities(mxResources.get("refresh"))+'Refresh" border="0"/></div><div class="odFilesList"></div></div>'+U+(H?'<div id="odBackBtn" class="odLinkBtn">&lt; '+mxUtils.htmlEntities(mxResources.get("back"))+"</div>":"")+(B?'<button id="odSubmitBtn" class="odSubmitBtn">'+
+mxUtils.htmlEntities(mxResources.get(E?"select":"open"))+"</button>":"");var O=null!=window.Editor&&null!=Editor.isDarkMode&&Editor.isDarkMode();O=".odCatsList *, .odFilesSec * { user-select: none; }.odCatsList {\tbox-sizing: border-box;\tposition:absolute;\ttop:0px;\tbottom:50%;\twidth:30%;\tborder: 1px solid #CCCCCC;\tborder-bottom:none;\tdisplay: inline-block;\toverflow-x: hidden;\toverflow-y: auto;}.odCatsListLbl {\theight: 17px;\tcolor: #6D6D6D;\tfont-size: 14px;\tfont-weight: bold;\tline-height: 17px;\tmargin: 10px 0 3px 5px;}.odFilesSec {\tbox-sizing: border-box;\tposition:absolute;\tleft:30%;\ttop:0px;\tbottom:50%;\twidth: 70%;\tborder: 1px solid #CCCCCC;\tborder-left:none;\tborder-bottom:none;\tdisplay: inline-block;\toverflow: hidden;}.odFilesBreadcrumb {\tbox-sizing: border-box;\tposition:absolute;\tmin-height: 32px;\tleft:0px;\tright:20px;\ttext-overflow:ellipsis;\toverflow:hidden;\tfont-size: 13px;\tcolor: #6D6D6D;\tpadding: 5px;}.odRefreshButton {\tbox-sizing: border-box;\tposition:absolute;\tright:0px;\ttop:0px;\tpadding: 4px;\tmargin: 1px;\theight:24px;\tcursor:default;}.odRefreshButton>img {\topacity:0.5;}.odRefreshButton:hover {\tbackground-color:#ddd;\tborder-radius:50%;}.odRefreshButton:active {\topacity:0.7;}.odFilesList {\tbox-sizing: border-box;\tposition:absolute;\ttop:32px;\tbottom:0px;\twidth: 100%;\toverflow-x: hidden;\toverflow-y: auto;}.odFileImg {\twidth: 24px;\tpadding-left: 5px;\tpadding-right: 5px;}.odFileTitle {\tcursor: default;\tfont-weight: normal;\tcolor: #666666 !important;\twidth: calc(100% - 20px);\twhite-space: nowrap;\toverflow: hidden;\ttext-overflow: ellipsis;}.odFileListGrid {\twidth: 100%;\twhite-space: nowrap;\tfont-size: 13px; box-sizing: border-box; border-spacing: 0;}.odOddRow {"+
+(O?"":"\tbackground-color: #eeeeee;")+"}.odEvenRow {"+(O?"":"\tbackground-color: #FFFFFF;")+"}.odRowSelected {\tbackground-color: #cadfff;}.odCatListTitle {\tbox-sizing: border-box;\theight: 17px;\tcursor: default;\tcolor: #666666;\tfont-size: 14px;\tline-height: 17px;\tmargin: 5px 0 5px 0px; padding-left: 10px;}.odCatSelected {\tfont-weight: bold;\tbackground-color: #cadfff;}.odEmptyFolder {\theight: 17px;\tcolor: #6D6D6D;\tfont-size: 14px;\tfont-weight: bold;\tline-height: 17px;\tmargin: 10px 0 3px 5px;\twidth: 100%; text-align: center;}.odBCFolder {\tcursor: pointer;\tcolor: #0432ff;}.odPreviewStatus {\tposition:absolute;\ttext-align:center;\twidth:100%;\ttop:50%;\ttransform: translateY(-50%);\tfont-size:13px;\topacity:0.5;}.odPreview { position:absolute;\t overflow:hidden;\t border: 1px solid #CCCCCC; bottom:0px; top: 50%; left:0px; right:0px;}.odLinkBtn { position: absolute;\tfont-size: 12px;\tcursor: pointer;\tcolor: #6D6D6D;\tleft: 5px;\tbottom: 3px;}.odSubmitBtn { position: absolute;\tcolor: #333;\tright: 5px;\tbottom: 5px;}";
+var V=new Spinner({left:"50%",lines:12,length:8,width:3,radius:5,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9}),q=new Editor,y=null,D=null,J=null,L=!1,K=[],n=null,z=null;this.getSelectedItem=function(){null!=D&&p(D);return D};if(null==m("#mxODPickerCss")){var G=document.head||document.getElementsByTagName("head")[0],M=document.createElement("style");G.appendChild(M);M.type="text/css";M.id="mxODPickerCss";M.appendChild(document.createTextNode(O))}b.innerHTML=
+U;var N=m(".odPreview"),Q=m("#odFiles");b=function(T,W){W=W||document;return W.querySelectorAll(T)}(".odCatListTitle");for(U=0;U<b.length;U++)b[U].addEventListener("click",function(){D=z=null;if(!L)switch(P(this),this.id){case "odFiles":C();break;case "odRecent":C("recent");break;case "odShared":C("shared");break;case "odSharepoint":C("sharepoint")}});var S=null;m("#odSearchBox").addEventListener("keyup",function(T){var W=this;null!=S&&clearTimeout(S);13==T.keyCode?R(W.value):S=setTimeout(function(){R(W.value)},
+500)});m("#refreshOD").addEventListener("click",function(){if(null!=n){e(null);var T=K.slice();C.apply(this,n);K=T}});H&&m("#odBackBtn").addEventListener("click",H);B&&m("#odSubmitBtn").addEventListener("click",x);null!=g?(H=g.pop(),"sharepoint"==g[0].driveId&&P(m("#odSharepoint")),K=g,C(H.driveId,H.folderId,H.siteId,H.name)):C()};App=function(b,e,f){EditorUi.call(this,b,e,null!=f?f:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||(window.onunload=mxUtils.bind(this,function(){var c=this.getCurrentFile();null!=c&&c.isModified()&&(c.getHash(),c.savingFile&&null!=c.savingFileTime&&(Date.now(),c.savingFileTime.getTime()),null!=c.ageStart&&(Date.now(),c.ageStart.getTime()),c.isAutosave(),null!=c.opened&&(Date.now(),c.opened.getTime()),null!=c.lastSaved&&(Date.now(),c.lastSaved.getTime()),
null!=c.lastChanged&&(Date.now(),c.lastChanged.getTime()),Date.now(),App.startTime.getTime(),c.constructor==DriveFile&&null!=c.desc&&null!=this.drive&&c.getSize())}));this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(){var c=this.getCurrentFile();null!=c&&EditorUi.logEvent({category:(this.editor.autosave?"ON":"OFF")+"-AUTOSAVE-FILE-"+c.getHash(),action:"changed",label:"autosave_"+(this.editor.autosave?"on":"off")})}));mxClient.IS_SVG?mxGraph.prototype.warningImage.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAE7SURBVHjaYvz//z8DJQAggBjwGXDuHMP/tWuD/uPTCxBAOA0AaQRK/f/+XeJ/cbHlf1wGAAQQTgPu3QNLgfHSpZo4DQAIIKwGwGyH4e/fFbG6AiQJEEAs2Ew2NFzH8OOHBMO6dT/A/KCg7wxGRh+wuhQggDBcALMdFIAcHBxgDGJjcwVIIUAAYbhAUXEdVos4OO4DXcGBIQ4QQCguQPY7sgtgAYruCpAgQACx4LJdU1OCwctLEcyWlLwPJF+AXQE0EMUBAAEEdwF6yMOiD4RRY0QT7gqQAEAAseDzu6XldYYPH9DD4joQa8L5AAEENgWb7SBcXa0JDQMBrK4AcQACiAlfyOMCEFdAnAYQQEz4FLa0XGf4/v0H0IIPONUABBAjyBmMjIwMS5cK/L927QORbtBkaG29DtYLEGAAH6f7oq3Zc+kAAAAASUVORK5CYII=":
-(new Image).src=mxGraph.prototype.warningImage.src;window.geOpenWindow=mxUtils.bind(this,function(c,l,p){if("1"==urlParams.openInSameWin||navigator.standalone)null!=p&&p();else{var q=null;try{q=window.open(c)}catch(v){}null==q||void 0===q?this.showDialog((new PopupDialog(this,c,l,p)).container,340,140,!0,!0):null!=l&&l()}});this.updateDocumentTitle();this.updateUi();window.showOpenAlert=mxUtils.bind(this,function(c){null!=window.openFile&&window.openFile.cancel(!0);this.handleError(c)});this.editor.chromeless&&
+(new Image).src=mxGraph.prototype.warningImage.src;window.geOpenWindow=mxUtils.bind(this,function(c,l,p){if("1"==urlParams.openInSameWin||navigator.standalone)null!=p&&p();else{var v=null;try{v=window.open(c)}catch(t){}null==v||void 0===v?this.showDialog((new PopupDialog(this,c,l,p)).container,340,140,!0,!0):null!=l&&l()}});this.updateDocumentTitle();this.updateUi();window.showOpenAlert=mxUtils.bind(this,function(c){null!=window.openFile&&window.openFile.cancel(!0);this.handleError(c)});this.editor.chromeless&&
!this.editor.editable||this.addFileDropHandler([document]);if(null!=App.DrawPlugins){for(b=0;b<App.DrawPlugins.length;b++)try{App.DrawPlugins[b](this)}catch(c){null!=window.console&&console.log("Plugin Error:",c,App.DrawPlugins[b])}finally{App.embedModePluginsCount--,this.initializeEmbedMode()}window.Draw.loadPlugin=mxUtils.bind(this,function(c){try{c(this)}finally{App.embedModePluginsCount--,this.initializeEmbedMode()}});setTimeout(mxUtils.bind(this,function(){0<App.embedModePluginsCount&&(App.embedModePluginsCount=
0,this.initializeEmbedMode())}),5E3)}this.load()};App.ERROR_TIMEOUT="timeout";App.ERROR_BUSY="busy";App.ERROR_UNKNOWN="unknown";App.MODE_GOOGLE="google";App.MODE_DROPBOX="dropbox";App.MODE_ONEDRIVE="onedrive";App.MODE_GITHUB="github";App.MODE_GITLAB="gitlab";App.MODE_DEVICE="device";App.MODE_BROWSER="browser";App.MODE_TRELLO="trello";App.MODE_EMBED="embed";App.MODE_ATLAS="atlas";App.DROPBOX_APPKEY=window.DRAWIO_DROPBOX_ID;App.DROPBOX_URL="js/dropbox/Dropbox-sdk.min.js";App.DROPINS_URL="https://www.dropbox.com/static/api/2/dropins.js";
App.ONEDRIVE_URL=mxClient.IS_IE11?"https://js.live.net/v7.2/OneDrive.js":"js/onedrive/OneDrive.js";App.TRELLO_URL="https://api.trello.com/1/client.js";App.TRELLO_JQUERY_URL="js/jquery/jquery-3.6.0.min.js";App.PUSHER_KEY="1e756b07a690c5bdb054";App.PUSHER_CLUSTER="eu";App.PUSHER_URL="https://js.pusher.com/7.0.3/pusher.min.js";App.SIMPLE_PEER_URL="js/simplepeer/simplepeer9.10.0.min.js";App.GOOGLE_APIS="drive-share";App.startTime=new Date;
App.pluginRegistry={"4xAKTrabTpTzahoLthkwPNUn":"plugins/explore.js",ex:"plugins/explore.js",ac:"plugins/connect.js",acj:"plugins/connectJira.js",ac148:"plugins/cConf-1-4-8.js",ac148cmnt:"plugins/cConf-comments.js",nxtcld:"plugins/nextcloud.js",monday:"plugins/monday.js",tips:"plugins/tooltips.js",svgdata:"plugins/svgdata.js",number:"plugins/number.js",sql:"plugins/sql.js",props:"plugins/props.js",text:"plugins/text.js",anim:"plugins/animation.js",update:"plugins/update.js",trees:"plugins/trees/trees.js",
"import":"plugins/import.js",replay:"plugins/replay.js",anon:"plugins/anonymize.js",tr:"plugins/trello.js",f5:"plugins/rackF5.js",webcola:"plugins/webcola/webcola.js",rnd:"plugins/random.js",page:"plugins/page.js",gd:"plugins/googledrive.js",tags:"plugins/tags.js"};App.publicPlugin="ex tips svgdata number sql props text anim update trees replay anon webcola tags".split(" ");
-App.loadScripts=function(b,e,f){for(var c=b.length,l=!1,p=0;p<b.length;p++)mxscript(b[p],function(){0!=--c||l||null==e||e()},null,null,null,function(q,v){l=!0;null!=f&&f(Error(q));console.error("Error loading script",q,v,v.stack)})};
+App.loadScripts=function(b,e,f){for(var c=b.length,l=!1,p=0;p<b.length;p++)mxscript(b[p],function(){0!=--c||l||null==e||e()},null,null,null,function(v,t){l=!0;null!=f&&f(Error(v));console.error("Error loading script",v,t,t.stack)})};
App.getStoredMode=function(){var b=null;null==b&&isLocalStorage&&(b=localStorage.getItem(".mode"));if(null==b&&"undefined"!=typeof Storage)try{for(var e=document.cookie.split(";"),f=0;f<e.length;f++){var c=mxUtils.trim(e[f]);if("MODE="==c.substring(0,5)){b=c.substring(5);break}}if(null!=b&&isLocalStorage){var l=new Date;l.setYear(l.getFullYear()-1);document.cookie="MODE=; expires="+l.toUTCString();localStorage.setItem(".mode",b)}}catch(p){}return b};
(function(){mxClient.IS_CHROMEAPP||("1"!=urlParams.offline&&("db.draw.io"==window.location.hostname&&null==urlParams.mode&&(urlParams.mode="dropbox"),App.mode=urlParams.mode),null==App.mode&&"1"!=urlParams.embed&&(App.mode=App.getStoredMode()),null!=window.mxscript&&"1"!=urlParams.embed&&("function"===typeof window.DriveClient&&("0"!=urlParams.gapi&&isSvgBrowser&&(null==document.documentMode||10<=document.documentMode)?App.mode==App.MODE_GOOGLE||null!=urlParams.state&&""==window.location.hash||null!=
window.location.hash&&"#G"==window.location.hash.substring(0,2)?mxscript("https://apis.google.com/js/api.js"):"0"!=urlParams.chrome||null!=window.location.hash&&"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"===window.location.hash.substring(0,45)||(window.DriveClient=null):window.DriveClient=null),"function"===typeof window.DropboxClient&&("0"!=urlParams.db&&isSvgBrowser&&(null==document.documentMode||9<document.documentMode)?App.mode==App.MODE_DROPBOX||null!=window.location.hash&&"#D"==window.location.hash.substring(0,
@@ -13971,43 +14015,43 @@ null):window.OneDriveClient=null),"function"===typeof window.TrelloClient&&("1"=
App.clearServiceWorker=function(b,e){navigator.serviceWorker.getRegistrations().then(function(f){if(null!=f&&0<f.length){for(var c=0;c<f.length;c++)f[c].unregister();null!=b&&b()}})["catch"](function(){null!=e&&e()})};App.isSameDomain=function(b){var e=document.createElement("a");e.href=b;return e.protocol===window.location.protocol||e.host===window.location.host};App.isBuiltInPlugin=function(b){for(var e in App.pluginRegistry)if(App.pluginRegistry[e]==b)return!0;return!1};
App.isSimpleThemePreferred=function(){var b=navigator.userAgent||navigator.vendor||window.opera;return 1024>=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||/android/i.test(b)||/iPad|iPhone|iPod/.test(b)&&!window.MSStream||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints};
App.main=function(b,e){try{var f=function(){try{if(null!=mxSettings.settings){if(null!=mxSettings.settings.autosaveDelay){var k=parseInt(mxSettings.settings.autosaveDelay);!isNaN(k)&&0<k?(DrawioFile.prototype.autosaveDelay=k,EditorUi.debug("Setting autosaveDelay",k)):EditorUi.debug("Invalid autosaveDelay",k)}null!=mxSettings.settings.defaultEdgeLength&&(k=parseInt(mxSettings.settings.defaultEdgeLength),!isNaN(k)&&0<k?(Graph.prototype.defaultEdgeLength=k,EditorUi.debug("Using defaultEdgeLength",k)):
-EditorUi.debug("Invalid defaultEdgeLength",k))}}catch(t){null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(t.stack)):console.error(t)}try{if(null!=Menus.prototype.defaultFonts)for(k=0;k<Menus.prototype.defaultFonts.length;k++){var m=Menus.prototype.defaultFonts[k];"string"!==typeof m&&null!=m.fontFamily&&null!=m.fontUrl&&Graph.addFont(m.fontFamily,m.fontUrl)}mxResources.loadDefaultBundle=!1;c(mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,
-mxLanguage))}catch(t){document.body.innerHTML="",m=document.createElement("pre"),mxUtils.write(m,t.stack),document.body.appendChild(m)}},c=function(k){mxUtils.getAll("1"!=urlParams.dev?[k]:[k,STYLE_PATH+"/default.xml"],function(m){function t(){try{try{null==Editor.currentTheme&&"1"!=urlParams.embed&&(1==urlParams.dev||1==urlParams.test||"test.draw.io"===window.location.hostname||"www.draw.io"===window.location.hostname||"preprod.diagrams.net"===window.location.hostname||"app.diagrams.net"===window.location.hostname||
-"jgraph.github.io"===window.location.hostname||/drawio-dev\.pages\.dev$/.test(window.location.hostname))&&App.isSimpleThemePreferred()&&(Editor.currentTheme="simple")}catch(Q){}"kennedy"!=Editor.currentTheme&&0>mxUtils.indexOf(Editor.themes,Editor.currentTheme)&&(Editor.currentTheme="kennedy");"1"==urlParams.transparent&&(document.body.style.background="transparent");var C=null!=e?e():new App(new Editor("0"==urlParams.chrome||"min"==uiTheme,null,null,null,"0"!=urlParams.chrome));null!=window.mxscript&&
+EditorUi.debug("Invalid defaultEdgeLength",k))}}catch(u){null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(u.stack)):console.error(u)}try{if(null!=Menus.prototype.defaultFonts)for(k=0;k<Menus.prototype.defaultFonts.length;k++){var m=Menus.prototype.defaultFonts[k];"string"!==typeof m&&null!=m.fontFamily&&null!=m.fontUrl&&Graph.addFont(m.fontFamily,m.fontUrl)}mxResources.loadDefaultBundle=!1;c(mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,
+mxLanguage))}catch(u){document.body.innerHTML="",m=document.createElement("pre"),mxUtils.write(m,u.stack),document.body.appendChild(m)}},c=function(k){mxUtils.getAll("1"!=urlParams.dev?[k]:[k,STYLE_PATH+"/default.xml"],function(m){function u(){try{try{null==Editor.currentTheme&&"1"!=urlParams.embed&&(1==urlParams.dev||1==urlParams.test||"test.draw.io"===window.location.hostname||"www.draw.io"===window.location.hostname||"preprod.diagrams.net"===window.location.hostname||"app.diagrams.net"===window.location.hostname||
+"jgraph.github.io"===window.location.hostname||/drawio-dev\.pages\.dev$/.test(window.location.hostname))&&App.isSimpleThemePreferred()&&(Editor.currentTheme="simple")}catch(P){}"kennedy"!=Editor.currentTheme&&0>mxUtils.indexOf(Editor.themes,Editor.currentTheme)&&(Editor.currentTheme="kennedy");"1"==urlParams.transparent&&(document.body.style.background="transparent");var C=null!=e?e():new App(new Editor("0"==urlParams.chrome||"min"==uiTheme,null,null,null,"0"!=urlParams.chrome));null!=window.mxscript&&
("function"===typeof window.DropboxClient&&null==window.Dropbox&&null!=window.DrawDropboxClientCallback&&("1"!=urlParams.embed&&"0"!=urlParams.db||"1"==urlParams.embed&&"1"==urlParams.db)&&isSvgBrowser&&(null==document.documentMode||9<document.documentMode)?mxscript(App.DROPBOX_URL,function(){mxscript(App.DROPINS_URL,function(){DrawDropboxClientCallback()},"dropboxjs",App.DROPBOX_APPKEY)}):"undefined"===typeof window.Dropbox&&(window.DropboxClient=null),"function"===typeof window.OneDriveClient&&
"undefined"===typeof OneDrive&&null!=window.DrawOneDriveClientCallback&&("1"!=urlParams.embed&&"0"!=urlParams.od||"1"==urlParams.embed&&"1"==urlParams.od)&&(null==navigator.userAgent||0>navigator.userAgent.indexOf("MSIE")||10<=document.documentMode)?mxscript(App.ONEDRIVE_URL,window.DrawOneDriveClientCallback):"undefined"===typeof window.OneDrive&&(window.OneDriveClient=null),"function"===typeof window.TrelloClient&&!mxClient.IS_IE11&&"undefined"===typeof window.Trello&&null!=window.DrawTrelloClientCallback&&
-"1"==urlParams.tr&&(null==navigator.userAgent||0>navigator.userAgent.indexOf("MSIE")||10<=document.documentMode)?mxscript(App.TRELLO_JQUERY_URL,function(){mxscript(App.TRELLO_URL,function(){DrawTrelloClientCallback()})}):"undefined"===typeof window.Trello&&(window.TrelloClient=null));null!=b&&b(C);"0"!=urlParams.chrome&&"1"==urlParams.test&&(EditorUi.debug("App.start",["v"+EditorUi.VERSION,C,(new Date).getTime()-t0.getTime()+"ms"]),null!=urlParams["export"]&&EditorUi.debug("Export:",EXPORT_URL))}catch(Q){EditorUi.isElectronApp?
-(mxLog.show(),mxLog.debug(Q.stack)):(EditorUi.logError(Q.message,null,null,null,Q),window.setTimeout(function(){alert(Q.message)},1))}}mxResources.parse(m[0].getText());if(isLocalStorage&&null!=localStorage&&null!=window.location.hash&&"#_CONFIG_"==window.location.hash.substring(0,9))try{var y=JSON.parse(Graph.decompress(window.location.hash.substring(9)));if(null!=y){EditorUi.debug("Setting configuration",JSON.stringify(y));if(null!=y.merge){var z=localStorage.getItem(Editor.configurationKey);if(null!=
-z)try{var I=JSON.parse(z),F;for(F in y.merge)I[F]=y.merge[F];y=I}catch(C){window.location.hash="",alert(C)}else y=y.merge}confirm(mxResources.get("configLinkWarn"))&&confirm(mxResources.get("configLinkConfirm"))&&(localStorage.setItem(Editor.configurationKey,JSON.stringify(y)),window.location.hash="",window.location.reload())}window.location.hash=""}catch(C){window.location.hash="",alert(C)}1<m.length&&(Graph.prototype.defaultThemes["default-style2"]=m[1].getDocumentElement(),Graph.prototype.defaultThemes.darkTheme=
-m[1].getDocumentElement());"1"==urlParams.dev||EditorUi.isElectronApp?t():(mxStencilRegistry.allowEval=!1,App.loadScripts(["js/shapes-14-6-5.min.js","js/stencils.min.js","js/extensions.min.js"],t,function(C){document.body.innerHTML="";var Q=document.createElement("pre");mxUtils.write(Q,C.stack);document.body.appendChild(Q)}))},function(m){m=document.getElementById("geStatus");null!=m&&(m.innerHTML="Error loading page. <a>Please try refreshing.</a>",m.getElementsByTagName("a")[0].onclick=function(){mxLanguage=
+"1"==urlParams.tr&&(null==navigator.userAgent||0>navigator.userAgent.indexOf("MSIE")||10<=document.documentMode)?mxscript(App.TRELLO_JQUERY_URL,function(){mxscript(App.TRELLO_URL,function(){DrawTrelloClientCallback()})}):"undefined"===typeof window.Trello&&(window.TrelloClient=null));null!=b&&b(C);"0"!=urlParams.chrome&&"1"==urlParams.test&&(EditorUi.debug("App.start",["v"+EditorUi.VERSION,C,(new Date).getTime()-t0.getTime()+"ms"]),null!=urlParams["export"]&&EditorUi.debug("Export:",EXPORT_URL))}catch(P){EditorUi.isElectronApp?
+(mxLog.show(),mxLog.debug(P.stack)):(EditorUi.logError(P.message,null,null,null,P),window.setTimeout(function(){alert(P.message)},1))}}mxResources.parse(m[0].getText());if(isLocalStorage&&null!=localStorage&&null!=window.location.hash&&"#_CONFIG_"==window.location.hash.substring(0,9))try{var x=JSON.parse(Graph.decompress(window.location.hash.substring(9)));if(null!=x){EditorUi.debug("Setting configuration",JSON.stringify(x));if(null!=x.merge){var A=localStorage.getItem(Editor.configurationKey);if(null!=
+A)try{var I=JSON.parse(A),F;for(F in x.merge)I[F]=x.merge[F];x=I}catch(C){window.location.hash="",alert(C)}else x=x.merge}confirm(mxResources.get("configLinkWarn"))&&confirm(mxResources.get("configLinkConfirm"))&&(localStorage.setItem(Editor.configurationKey,JSON.stringify(x)),window.location.hash="",window.location.reload())}window.location.hash=""}catch(C){window.location.hash="",alert(C)}1<m.length&&(Graph.prototype.defaultThemes["default-style2"]=m[1].getDocumentElement(),Graph.prototype.defaultThemes.darkTheme=
+m[1].getDocumentElement());"1"==urlParams.dev||EditorUi.isElectronApp?u():(mxStencilRegistry.allowEval=!1,App.loadScripts(["js/shapes-14-6-5.min.js","js/stencils.min.js","js/extensions.min.js"],u,function(C){document.body.innerHTML="";var P=document.createElement("pre");mxUtils.write(P,C.stack);document.body.appendChild(P)}))},function(m){m=document.getElementById("geStatus");null!=m&&(m.innerHTML="Error loading page. <a>Please try refreshing.</a>",m.getElementsByTagName("a")[0].onclick=function(){mxLanguage=
"en";c(mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,mxLanguage))})})};if(!App.isMainCalled)if(mxIsElectron&&"undefined"===typeof electron)alert("Runtime Environment not found."),document.body.innerHTML='<div style="margin-top:10%;text-align:center;"><img src="mxgraph/images/warning.png" align="top" style="padding-right:6px;"/>Runtime Environment not found.</div>';else if(mxUtils.lightDarkColorSupported||mxUtils.get("styles/grapheditor.css",mxUtils.bind(this,
-function(k){if(200<=k.getStatus()&&299>=k.getStatus()){var m=document.createElement("style");m.type="text/css";m.appendChild(document.createTextNode(k.getText().replace(/light-dark\(\s*(var\([^\)]+\)|[^,]+)\s*,\s*(var\([^\)]+\)|[^)]+)\s*\)/g,"$1")));document.head.appendChild(m)}})),App.isMainCalled=!0,window.onerror=function(k,m,t,y,z){EditorUi.logError("Global: "+(null!=k?k:""),m,t,y,z,null,!0);null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug("Message:",k,"\nURL:",m,"\nLine:",
-t,"\nColumn:",y,"\nError:",z)):console.error("Message:",k,"\nURL:",m,"\nLine:",t,"\nColumn:",y,"\nError:",z);window.setTimeout(function(){alert("Error: "+(null!=k?k:""))},100)},window.top!=window.self||"import.diagrams.net"!==window.location.hostname&&"ac.draw.io"!==window.location.hostname&&"aj.draw.io"!==window.location.hostname){if("1"==urlParams.embed||"1"==urlParams.lightbox){var l=document.getElementById("geInfo");null!=l&&l.parentNode.removeChild(l)}"1"==urlParams.embed&&document.body.classList.add("geEmbed");
-null!=document.referrer&&"aws3"==urlParams.libs&&"https://aws.amazon.com/architecture/icons/"==document.referrer.substring(0,42)&&(urlParams.libs="aws4");if(null!=window.mxscript){if("1"==urlParams.dev&&!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&null!=CryptoJS&&App.mode!=App.MODE_DROPBOX&&App.mode!=App.MODE_TRELLO){var p=document.getElementById("geBootstrap");if(null!=p){var q=mxUtils.getTextContent(p);"ff68e9badc5b6bcb8f482e0c64b103a7"!=CryptoJS.MD5(q).toString()&&(console.log("Change bootstrap script MD5 in the previous line:",
-CryptoJS.MD5(q).toString()),alert("[Dev] Bootstrap script change requires update of CSP"))}var v=document.getElementById("geMain");null!=v&&(q=mxUtils.getTextContent(v),"69c25556b6237c57cdb7d017147af34b"!=CryptoJS.MD5(q).toString()&&(console.log("Change main script MD5 in the previous line:",CryptoJS.MD5(q).toString()),alert("[Dev] Main script change requires update of CSP")))}try{Editor.enableServiceWorker&&("0"==urlParams.offline||/www\.draw\.io$/.test(window.location.hostname)||"1"!=urlParams.offline&&
+function(k){if(200<=k.getStatus()&&299>=k.getStatus()){var m=document.createElement("style");m.type="text/css";m.appendChild(document.createTextNode(k.getText().replace(/light-dark\(\s*(var\([^\)]+\)|[^,]+)\s*,\s*(var\([^\)]+\)|[^)]+)\s*\)/g,"$1")));document.head.appendChild(m)}})),App.isMainCalled=!0,window.onerror=function(k,m,u,x,A){EditorUi.logError("Global: "+(null!=k?k:""),m,u,x,A,null,!0);null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug("Message:",k,"\nURL:",m,"\nLine:",
+u,"\nColumn:",x,"\nError:",A)):console.error("Message:",k,"\nURL:",m,"\nLine:",u,"\nColumn:",x,"\nError:",A);window.setTimeout(function(){alert("Error: "+(null!=k?k:""))},100)},window.top!=window.self||"import.diagrams.net"!==window.location.hostname&&"ac.draw.io"!==window.location.hostname&&"aj.draw.io"!==window.location.hostname){if("1"==urlParams.embed||"1"==urlParams.lightbox){var l=document.getElementById("geInfo");null!=l&&l.parentNode.removeChild(l)}"1"==urlParams.embed&&document.body.classList.add("geEmbed");
+null!=document.referrer&&"aws3"==urlParams.libs&&"https://aws.amazon.com/architecture/icons/"==document.referrer.substring(0,42)&&(urlParams.libs="aws4");if(null!=window.mxscript){if("1"==urlParams.dev&&!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&null!=CryptoJS&&App.mode!=App.MODE_DROPBOX&&App.mode!=App.MODE_TRELLO){var p=document.getElementById("geBootstrap");if(null!=p){var v=mxUtils.getTextContent(p);"ff68e9badc5b6bcb8f482e0c64b103a7"!=CryptoJS.MD5(v).toString()&&(console.log("Change bootstrap script MD5 in the previous line:",
+CryptoJS.MD5(v).toString()),alert("[Dev] Bootstrap script change requires update of CSP"))}var t=document.getElementById("geMain");null!=t&&(v=mxUtils.getTextContent(t),"69c25556b6237c57cdb7d017147af34b"!=CryptoJS.MD5(v).toString()&&(console.log("Change main script MD5 in the previous line:",CryptoJS.MD5(v).toString()),alert("[Dev] Main script change requires update of CSP")))}try{Editor.enableServiceWorker&&("0"==urlParams.offline||/www\.draw\.io$/.test(window.location.hostname)||"1"!=urlParams.offline&&
"1"==urlParams.dev)?App.clearServiceWorker(function(){"0"==urlParams.offline&&alert("Cache cleared")}):Editor.enableServiceWorker&&navigator.serviceWorker.register("service-worker.js")}catch(k){}!("ArrayBuffer"in window)||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"auto"!=DrawioFile.SYNC||"1"==urlParams.embed&&("1"!=urlParams.embedRT||"1"==urlParams.lockdown)||"1"==urlParams.local||"0"==urlParams.chrome&&"1"!=urlParams.rt||"1"==urlParams.stealth||"1"==urlParams.offline||(mxscript(App.PUSHER_URL),
-"1"==urlParams["fast-sync"]&&mxscript(App.SIMPLE_PEER_URL));if("0"!=urlParams.plugins&&"1"!=urlParams.offline){var D=null!=mxSettings.settings?mxSettings.getPlugins():null;if(null==mxSettings.settings&&isLocalStorage&&"undefined"!==typeof JSON)try{var G=JSON.parse(localStorage.getItem(mxSettings.key));null!=G&&(D=G.plugins)}catch(k){}G=urlParams.p;App.initPluginCallback();null!=G&&App.loadPlugins(G.split(";"));if(null!=D&&0<D.length&&"0"!=urlParams.plugins)for(l=0;l<D.length;l++)try{("/"==D[l].charAt(0)&&
-(D[l]=PLUGINS_BASE_PATH+D[l]),App.isSameDomain(D[l]))?ALLOW_CUSTOM_PLUGINS||App.isBuiltInPlugin(D[l])?null==App.pluginsLoaded[D[l]]&&(App.pluginsLoaded[D[l]]=!0,App.embedModePluginsCount++,mxscript(D[l])):null!=window.console&&console.log("Unknown plugin:",D[l]):null!=window.console&&console.log("Blocked plugin:",D[l])}catch(k){}}"function"===typeof window.DriveClient&&"undefined"===typeof gapi&&("1"!=urlParams.embed&&"0"!=urlParams.gapi||"1"==urlParams.embed&&"1"==urlParams.gapi)&&isSvgBrowser&&
+"1"==urlParams["fast-sync"]&&mxscript(App.SIMPLE_PEER_URL));if("0"!=urlParams.plugins&&"1"!=urlParams.offline){var E=null!=mxSettings.settings?mxSettings.getPlugins():null;if(null==mxSettings.settings&&isLocalStorage&&"undefined"!==typeof JSON)try{var H=JSON.parse(localStorage.getItem(mxSettings.key));null!=H&&(E=H.plugins)}catch(k){}H=urlParams.p;App.initPluginCallback();null!=H&&App.loadPlugins(H.split(";"));if(null!=E&&0<E.length&&"0"!=urlParams.plugins)for(l=0;l<E.length;l++)try{("/"==E[l].charAt(0)&&
+(E[l]=PLUGINS_BASE_PATH+E[l]),App.isSameDomain(E[l]))?ALLOW_CUSTOM_PLUGINS||App.isBuiltInPlugin(E[l])?null==App.pluginsLoaded[E[l]]&&(App.pluginsLoaded[E[l]]=!0,App.embedModePluginsCount++,mxscript(E[l])):null!=window.console&&console.log("Unknown plugin:",E[l]):null!=window.console&&console.log("Blocked plugin:",E[l])}catch(k){}}"function"===typeof window.DriveClient&&"undefined"===typeof gapi&&("1"!=urlParams.embed&&"0"!=urlParams.gapi||"1"==urlParams.embed&&"1"==urlParams.gapi)&&isSvgBrowser&&
isLocalStorage&&(null==document.documentMode||10<=document.documentMode)?mxscript("https://apis.google.com/js/api.js?onload=DrawGapiClientCallback",null,null,null,mxClient.IS_SVG):"undefined"===typeof window.gapi&&(window.DriveClient=null)}"0"!=urlParams.math&&Editor.initMath();if("1"==urlParams.configure){var B=window.opener||window.parent,d=function(k){if(k.source==B)try{var m=JSON.parse(k.data);null!=m&&"configure"==m.action&&(mxEvent.removeListener(window,"message",d),Editor.configure(m.config),
-mxSettings.load(),null!=m.config.darkColor&&document.body.style.setProperty("--dark-color",m.config.darkColor),m.colorSchemeMeta&&mxmeta("color-scheme","dark light"),f())}catch(t){null!=window.console&&console.log("Error in configure message: "+t,k.data)}};mxEvent.addListener(window,"message",d);B.postMessage(JSON.stringify({event:"configure"}),"*")}else{if(null==Editor.config){if(null!=window.DRAWIO_CONFIG)try{EditorUi.debug("Using global configuration",window.DRAWIO_CONFIG),Editor.configure(window.DRAWIO_CONFIG),
+mxSettings.load(),null!=m.config.darkColor&&document.body.style.setProperty("--dark-color",m.config.darkColor),m.colorSchemeMeta&&mxmeta("color-scheme","dark light"),f())}catch(u){null!=window.console&&console.log("Error in configure message: "+u,k.data)}};mxEvent.addListener(window,"message",d);B.postMessage(JSON.stringify({event:"configure"}),"*")}else{if(null==Editor.config){if(null!=window.DRAWIO_CONFIG)try{EditorUi.debug("Using global configuration",window.DRAWIO_CONFIG),Editor.configure(window.DRAWIO_CONFIG),
mxSettings.load()}catch(k){null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(k.stack)):console.error(k)}if(isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed){var g=localStorage.getItem(Editor.configurationKey);if(null!=g)try{g=JSON.parse(g),null!=g&&(EditorUi.debug("Using local configuration",g),Editor.configure(g),mxSettings.load())}catch(k){null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(k.stack)):console.error(k)}}}f()}}else document.body.innerHTML=
-'<div style="margin-top:10%;text-align:center;">Stand-alone mode not allowed for this domain.</div>'}catch(k){document.body.innerHTML="",D=document.createElement("pre"),mxUtils.write(D,k.stack),document.body.appendChild(D)}};mxUtils.extend(App,EditorUi);App.prototype.warnInterval=3E5;App.prototype.compactMode=!1;App.prototype.fullscreenMode=!1;App.initPluginCallback=function(){null==App.DrawPlugins&&(App.DrawPlugins=[],window.Draw={},window.Draw.loadPlugin=function(b){App.DrawPlugins.push(b)})};
+'<div style="margin-top:10%;text-align:center;">Stand-alone mode not allowed for this domain.</div>'}catch(k){document.body.innerHTML="",E=document.createElement("pre"),mxUtils.write(E,k.stack),document.body.appendChild(E)}};mxUtils.extend(App,EditorUi);App.prototype.warnInterval=3E5;App.prototype.compactMode=!1;App.prototype.fullscreenMode=!1;App.initPluginCallback=function(){null==App.DrawPlugins&&(App.DrawPlugins=[],window.Draw={},window.Draw.loadPlugin=function(b){App.DrawPlugins.push(b)})};
App.pluginsLoaded={};App.embedModePluginsCount=0;
App.loadPlugins=function(b,e){EditorUi.debug("Loading plugins",b);for(var f=0;f<b.length;f++)if(null!=b[f]&&0<b[f].length)try{if(null!=App.pluginRegistry[b[f]]){var c=PLUGINS_BASE_PATH+App.pluginRegistry[b[f]];null==App.pluginsLoaded[c]&&(App.pluginsLoaded[c]=!0,App.embedModePluginsCount++,"undefined"===typeof window.drawDevUrl?e?mxinclude(c):mxscript(c):e?mxinclude(c):mxscript(drawDevUrl+c))}else null!=window.console&&console.log("Unknown plugin:",b[f])}catch(l){null!=window.console&&console.log("Error loading plugin:",
b[f],l)}};App.prototype.initializeEmbedMode=function(){"1"==urlParams.embed&&("app.diagrams.net"==window.location.hostname&&this.showBanner("EmbedDeprecationFooter","app.diagrams.net will stop working for embed mode. Please use embed.diagrams.net."),0<App.embedModePluginsCount||this.initEmbedDone||(this.initEmbedDone=!0,EditorUi.prototype.initializeEmbedMode.apply(this,arguments)))};
App.prototype.initializeViewerMode=function(){var b=window.opener||window.parent;null!=b&&this.editor.graph.addListener(mxEvent.SIZE,mxUtils.bind(this,function(){b.postMessage(JSON.stringify(this.createLoadMessage("size")),"*")}))};
App.prototype.init=function(){if(!App.blockedAncestorFrames()){this.buttonContainer=this.createButtonContainer();EditorUi.prototype.init.apply(this,arguments);this.descriptorChangedListener=mxUtils.bind(this,this.descriptorChanged);this.addListener("currentThemeChanged",mxUtils.bind(this,function(){this.compactMode&&this.isDefaultTheme(Editor.currentTheme)&&this.setCompactMode(!0)}));try{this.gitHub=mxClient.IS_IE&&10!=document.documentMode&&!mxClient.IS_IE11&&!mxClient.IS_EDGE||"0"==urlParams.gh||
-"1"==urlParams.embed&&"1"!=urlParams.gh?null:new GitHubClient(this),null!=this.gitHub&&this.gitHub.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()}))}catch(q){null!=window.console&&console.log("GitHubClient disabled: "+q.message)}try{this.gitLab=mxClient.IS_IE&&10!=document.documentMode&&!mxClient.IS_IE11&&!mxClient.IS_EDGE||"0"==urlParams.gl||"1"==urlParams.embed&&"1"!=urlParams.gl?null:new GitLabClient(this),null!=this.gitLab&&this.gitLab.addListener("userChanged",
-mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()}))}catch(q){null!=window.console&&console.log("GitLabClient disabled: "+q.message)}if("1"!=urlParams.embed||"1"==urlParams.od){var b=mxUtils.bind(this,function(){if("undefined"!==typeof OneDrive)try{this.oneDrive=new OneDriveClient(this),this.oneDrive.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded","client",
-this.oneDrive))}catch(q){null!=window.console&&console.log("OneDriveClient disabled: "+q.message)}else null==window.DrawOneDriveClientCallback&&(window.DrawOneDriveClientCallback=b)});b()}if("1"!=urlParams.embed||"1"==urlParams.tr){var e=mxUtils.bind(this,function(){if("undefined"!==typeof window.Trello)try{this.trello=new TrelloClient(this),this.trello.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded",
-"client",this.trello))}catch(q){null!=window.console&&console.log("TrelloClient disabled: "+q.message)}else null==window.DrawTrelloClientCallback&&(window.DrawTrelloClientCallback=e)});e()}if("1"!=urlParams.embed||"1"==urlParams.gapi){var f=mxUtils.bind(this,function(){if("undefined"!==typeof gapi){var q=mxUtils.bind(this,function(){try{this.drive=new DriveClient(this),this.drive.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries();"1"!=urlParams.dev&&
-this.checkLicense()})),this.fireEvent(new mxEventObject("clientLoaded","client",this.drive))}catch(v){null!=window.console&&console.log("DriveClient disabled: "+v.message)}});null!=window.DrawGapiClientCallback?(gapi.load(("0"!=urlParams.picker?"picker,":"")+App.GOOGLE_APIS,q),window.DrawGapiClientCallback=null):q()}else null==window.DrawGapiClientCallback&&(window.DrawGapiClientCallback=f)});f()}if("1"!=urlParams.embed||"1"==urlParams.db){var c=mxUtils.bind(this,function(){if("function"===typeof Dropbox){window.DrawDropboxClientCallback=
-null;try{this.dropbox=new DropboxClient(this),this.dropbox.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded","client",this.dropbox))}catch(q){null!=window.console&&console.log("DropboxClient disabled: "+q.message)}}else null==window.DrawDropboxClientCallback&&(window.DrawDropboxClientCallback=c)});c()}if("1"!=urlParams.embed&&(this.setGraphEnabled(!1),"1"==urlParams.local?this.setMode(App.MODE_DEVICE):
-this.mode=App.mode,"serviceWorker"in navigator&&!this.editor.isChromelessView()&&(mxClient.IS_ANDROID||mxClient.IS_IOS)&&window.addEventListener("beforeinstallprompt",mxUtils.bind(this,function(q){this.showBanner("AddToHomeScreenFooter",mxResources.get("installApp"),function(){q.prompt()})})),!this.isOwnDomain()||this.editor.chromeless&&!this.editor.editable||this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){var q=this.getCurrentFile();q=null!=q?q.getMode():null;mxClient.IS_CHROMEAPP||
-mxClient.IS_ANDROID||mxClient.IS_IOS||EditorUi.isElectronApp||this.isOffline()||null!=urlParams.open||"1"==urlParams.extAuth||q!=App.MODE_DEVICE&&q!=App.MODE_BROWSER||this.showDownloadDesktopBanner()})),!(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"auto"!=DrawioFile.SYNC||"1"==urlParams.local||"1"==urlParams.stealth||this.isOffline()||!Editor.enableRealtimeCache||this.editor.chromeless&&!this.editor.editable))){var l=window.setTimeout(mxUtils.bind(this,function(){Editor.enableRealtimeCache=!1}),
-Editor.cacheTimeout);mxUtils.get(EditorUi.cacheUrl+"?alive",mxUtils.bind(this,function(q){Editor.enableRealtimeCache=200<=q.getStatus()&&299>=q.getStatus();window.clearTimeout(l)}),function(){Editor.enableRealtimeCache=!1;window.clearTimeout(l)})}this.updateHeader();if(null!=this.menubar){if("sketch"!=Editor.currentTheme&&("simple"!=Editor.currentTheme||"1"!=urlParams.embed)){var p=mxUtils.bind(this,function(){"1"!=urlParams.embed?this.menubar.container.appendChild(this.buttonContainer):this.toolbarContainer.appendChild(this.buttonContainer)});
+"1"==urlParams.embed&&"1"!=urlParams.gh?null:new GitHubClient(this),null!=this.gitHub&&this.gitHub.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()}))}catch(v){null!=window.console&&console.log("GitHubClient disabled: "+v.message)}try{this.gitLab=mxClient.IS_IE&&10!=document.documentMode&&!mxClient.IS_IE11&&!mxClient.IS_EDGE||"0"==urlParams.gl||"1"==urlParams.embed&&"1"!=urlParams.gl?null:new GitLabClient(this),null!=this.gitLab&&this.gitLab.addListener("userChanged",
+mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()}))}catch(v){null!=window.console&&console.log("GitLabClient disabled: "+v.message)}if("1"!=urlParams.embed||"1"==urlParams.od){var b=mxUtils.bind(this,function(){if("undefined"!==typeof OneDrive)try{this.oneDrive=new OneDriveClient(this),this.oneDrive.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded","client",
+this.oneDrive))}catch(v){null!=window.console&&console.log("OneDriveClient disabled: "+v.message)}else null==window.DrawOneDriveClientCallback&&(window.DrawOneDriveClientCallback=b)});b()}if("1"!=urlParams.embed||"1"==urlParams.tr){var e=mxUtils.bind(this,function(){if("undefined"!==typeof window.Trello)try{this.trello=new TrelloClient(this),this.trello.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded",
+"client",this.trello))}catch(v){null!=window.console&&console.log("TrelloClient disabled: "+v.message)}else null==window.DrawTrelloClientCallback&&(window.DrawTrelloClientCallback=e)});e()}if("1"!=urlParams.embed||"1"==urlParams.gapi){var f=mxUtils.bind(this,function(){if("undefined"!==typeof gapi){var v=mxUtils.bind(this,function(){try{this.drive=new DriveClient(this),this.drive.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries();"1"!=urlParams.dev&&
+this.checkLicense()})),this.fireEvent(new mxEventObject("clientLoaded","client",this.drive))}catch(t){null!=window.console&&console.log("DriveClient disabled: "+t.message)}});null!=window.DrawGapiClientCallback?(gapi.load(("0"!=urlParams.picker?"picker,":"")+App.GOOGLE_APIS,v),window.DrawGapiClientCallback=null):v()}else null==window.DrawGapiClientCallback&&(window.DrawGapiClientCallback=f)});f()}if("1"!=urlParams.embed||"1"==urlParams.db){var c=mxUtils.bind(this,function(){if("function"===typeof Dropbox){window.DrawDropboxClientCallback=
+null;try{this.dropbox=new DropboxClient(this),this.dropbox.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded","client",this.dropbox))}catch(v){null!=window.console&&console.log("DropboxClient disabled: "+v.message)}}else null==window.DrawDropboxClientCallback&&(window.DrawDropboxClientCallback=c)});c()}if("1"!=urlParams.embed&&(this.setGraphEnabled(!1),"1"==urlParams.local?this.setMode(App.MODE_DEVICE):
+this.mode=App.mode,"serviceWorker"in navigator&&!this.editor.isChromelessView()&&(mxClient.IS_ANDROID||mxClient.IS_IOS)&&window.addEventListener("beforeinstallprompt",mxUtils.bind(this,function(v){this.showBanner("AddToHomeScreenFooter",mxResources.get("installApp"),function(){v.prompt()})})),!this.isOwnDomain()||this.editor.chromeless&&!this.editor.editable||this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){var v=this.getCurrentFile();v=null!=v?v.getMode():null;mxClient.IS_CHROMEAPP||
+mxClient.IS_ANDROID||mxClient.IS_IOS||EditorUi.isElectronApp||this.isOffline()||null!=urlParams.open||"1"==urlParams.extAuth||v!=App.MODE_DEVICE&&v!=App.MODE_BROWSER||this.showDownloadDesktopBanner()})),!(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"auto"!=DrawioFile.SYNC||"1"==urlParams.local||"1"==urlParams.stealth||this.isOffline()||!Editor.enableRealtimeCache||this.editor.chromeless&&!this.editor.editable))){var l=window.setTimeout(mxUtils.bind(this,function(){Editor.enableRealtimeCache=!1}),
+Editor.cacheTimeout);mxUtils.get(EditorUi.cacheUrl+"?alive",mxUtils.bind(this,function(v){Editor.enableRealtimeCache=200<=v.getStatus()&&299>=v.getStatus();window.clearTimeout(l)}),function(){Editor.enableRealtimeCache=!1;window.clearTimeout(l)})}this.updateHeader();if(null!=this.menubar){if("sketch"!=Editor.currentTheme&&("simple"!=Editor.currentTheme||"1"!=urlParams.embed)){var p=mxUtils.bind(this,function(){"1"!=urlParams.embed?this.menubar.container.appendChild(this.buttonContainer):this.toolbarContainer.appendChild(this.buttonContainer)});
this.addListener("languageChanged",p);this.addListener("currentThemeChanged",p);p()}("kennedy"==Editor.currentTheme&&"1"==urlParams.embed||"atlas"==Editor.currentTheme&&"1"!=urlParams.embed)&&this.setCompactMode(!0);if("atlas"==Editor.currentTheme||"1"==urlParams.atlas)this.icon=document.createElement("img"),this.icon.setAttribute("src",IMAGE_PATH+"/logo-flat-small.png"),this.icon.setAttribute("title",mxResources.get("draw.io")),this.icon.className="geSmallAppIcon","1"!=urlParams.embed&&(this.icon.style.cursor=
-"pointer",mxEvent.addListener(this.icon,"click",mxUtils.bind(this,function(q){this.appIconClicked(q)}))),this.menubar.container.insertBefore(this.icon,this.menubar.container.firstChild)}this.editor.graph.isViewer()&&this.initializeViewerMode()}};
+"pointer",mxEvent.addListener(this.icon,"click",mxUtils.bind(this,function(v){this.appIconClicked(v)}))),this.menubar.container.insertBefore(this.icon,this.menubar.container.firstChild)}this.editor.graph.isViewer()&&this.initializeViewerMode()}};
App.blockedAncestorFrames=function(){try{if(window.location.ancestorOrigins&&window.location.hostname&&window.location.ancestorOrigins.length&&0<window.location.ancestorOrigins.length){var b=window.location.hostname;b&&1<b.length&&"/"==b.charAt(b.length-1)&&b.substring(0,b.length-1);b="";for(var e=0;e<window.location.ancestorOrigins.length;e++)if(b+=" -> "+window.location.ancestorOrigins[e],b.endsWith("dan6v7pm1f1a1.cloudfront.net")||b.endsWith("confluence-cloud-excalidraw-ll3likebca-uc.a.run.app"))return!0}}catch(f){}return!1};
App.prototype.scheduleSanityCheck=function(){mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=this.sanityCheckThread||(this.sanityCheckThread=window.setTimeout(mxUtils.bind(this,function(){this.sanityCheckThread=null;this.sanityCheck()}),this.warnInterval))};App.prototype.stopSanityCheck=function(){null!=this.sanityCheckThread&&(window.clearTimeout(this.sanityCheckThread),this.sanityCheckThread=null)};
App.prototype.sanityCheck=function(){var b=this.getCurrentFile();if(null!=b&&b.isModified()&&b.isAutosave()&&b.isOverdue()){b.getHash();b.savingFile&&null!=b.savingFileTime&&(Date.now(),b.savingFileTime.getTime());null!=b.ageStart&&(Date.now(),b.ageStart.getTime());b.isAutosave();null!=b.opened&&(Date.now(),b.opened.getTime());null!=b.lastSaved&&(Date.now(),b.lastSaved.getTime());null!=b.lastChanged&&(Date.now(),b.lastChanged.getTime());Date.now();App.startTime.getTime();var e=null!=b.sync?"client_"+
@@ -14022,21 +14066,21 @@ f.setAttribute("border","0");f.setAttribute("align","absmiddle");f.setAttribute(
b.appendChild(f);var c=document.createElement("img");c.setAttribute("border","0");c.setAttribute("align","absmiddle");c.setAttribute("title","2 star");c.setAttribute("style","margin-top:-6px;margin-left:3px;cursor:pointer;");c.setAttribute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zpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIIImu8AAAAAVdEVYdENyZWF0aW9uIFRpbWUAMi8xNy8wOCCcqlgAAAHuSURBVDiNlZJBi1JRGIbfk+fc0ZuMXorJe4XujWoMdREaA23HICj6AQeLINr0C4I27ab27VqOI9+q/sH8gMDceG1RkIwgClEXFMbRc5zTZgZURmG+5fu9PN/7Hg6wZohoh4h21nn4uqXW+q0xZgzg+SrPlTXX73uet+26bp6ICpcGaK1fua57M5vN3tZav7gUgIiSqVTqcRAEm0EQbCaTyQoRXb3Iy4hoG8CT6XSaY4xtMMaSQohMPp8v+r7vAEC3243CMGwqpfoApsaYE8uyfgM45ABOjDEvXdfNlMvlzFINAIDneY7neZVzvdlsDgaDQYtzfsjOIjtKqU+e5+0Wi0V3VV8ACMOw3+/3v3HOX0sp/7K53te11h/S6fRuoVAIhBAL76OUOm2320dRFH0VQuxJKf8BAFu+UKvVvpRKpWe2bYt5fTweq0ajQUKIN1LK43N94SMR0Y1YLLYlhBBKqQUw51wkEol7WmuzoC8FuJtIJLaUUoii6Ljb7f4yxpz6vp9zHMe2bfvacDi8BeDHKkBuNps5rVbr52QyaVuW9ZExttHpdN73ej0/Ho+nADxYCdBaV0aj0RGAz5ZlHUgpx2erR/V6/d1wOHwK4CGA/QsBnPN9AN+llH+WkqFare4R0QGAO/M6M8Ysey81/wGqa8MlVvHPNAAAAABJRU5ErkJggg==");
b.appendChild(c);var l=document.createElement("img");l.setAttribute("border","0");l.setAttribute("align","absmiddle");l.setAttribute("title","3 star");l.setAttribute("style","margin-top:-6px;margin-left:3px;cursor:pointer;");l.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAQRdEVYdFhNTDpjb20uYWRvYmUueG1wADw/eHBhY2tldCBiZWdpbj0iICAgIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDQuMS1jMDM0IDQ2LjI3Mjk3NiwgU2F0IEphbiAyNyAyMDA3IDIyOjExOjQxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4YXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8eGFwOkNyZWF0b3JUb29sPkFkb2JlIEZpcmV3b3JrcyBDUzM8L3hhcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhhcDpDcmVhdGVEYXRlPjIwMDgtMDItMTdUMDI6MzY6NDVaPC94YXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhhcDpNb2RpZnlEYXRlPjIwMDktMDMtMTdUMTQ6MTI6MDJaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIIImu8AAAAAVdEVYdENyZWF0aW9uIFRpbWUAMi8xNy8wOCCcqlgAAAHuSURBVDiNlZJBi1JRGIbfk+fc0ZuMXorJe4XujWoMdREaA23HICj6AQeLINr0C4I27ab27VqOI9+q/sH8gMDceG1RkIwgClEXFMbRc5zTZgZURmG+5fu9PN/7Hg6wZohoh4h21nn4uqXW+q0xZgzg+SrPlTXX73uet+26bp6ICpcGaK1fua57M5vN3tZav7gUgIiSqVTqcRAEm0EQbCaTyQoRXb3Iy4hoG8CT6XSaY4xtMMaSQohMPp8v+r7vAEC3243CMGwqpfoApsaYE8uyfgM45ABOjDEvXdfNlMvlzFINAIDneY7neZVzvdlsDgaDQYtzfsjOIjtKqU+e5+0Wi0V3VV8ACMOw3+/3v3HOX0sp/7K53te11h/S6fRuoVAIhBAL76OUOm2320dRFH0VQuxJKf8BAFu+UKvVvpRKpWe2bYt5fTweq0ajQUKIN1LK43N94SMR0Y1YLLYlhBBKqQUw51wkEol7WmuzoC8FuJtIJLaUUoii6Ljb7f4yxpz6vp9zHMe2bfvacDi8BeDHKkBuNps5rVbr52QyaVuW9ZExttHpdN73ej0/Ho+nADxYCdBaV0aj0RGAz5ZlHUgpx2erR/V6/d1wOHwK4CGA/QsBnPN9AN+llH+WkqFare4R0QGAO/M6M8Ysey81/wGqa8MlVvHPNAAAAABJRU5ErkJggg==");
b.appendChild(l);var p=document.createElement("img");p.setAttribute("border","0");p.setAttribute("align","absmiddle");p.setAttribute("title","4 star");p.setAttribute("style","margin-top:-6px;margin-left:3px;cursor:pointer;");p.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAQRdEVYdFhNTDpjb20uYWRvYmUueG1wADw/eHBhY2tldCBiZWdpbj0iICAgIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDQuMS1jMDM0IDQ2LjI3Mjk3NiwgU2F0IEphbiAyNyAyMDA3IDIyOjExOjQxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4YXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8eGFwOkNyZWF0b3JUb29sPkFkb2JlIEZpcmV3b3JrcyBDUzM8L3hhcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhhcDpDcmVhdGVEYXRlPjIwMDgtMDItMTdUMDI6MzY6NDVaPC94YXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhhcDpNb2RpZnlEYXRlPjIwMDktMDMtMTdUMTQ6MTI6MDJaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIIImu8AAAAAVdEVYdENyZWF0aW9uIFRpbWUAMi8xNy8wOCCcqlgAAAHuSURBVDiNlZJBi1JRGIbfk+fc0ZuMXorJe4XujWoMdREaA23HICj6AQeLINr0C4I27ab27VqOI9+q/sH8gMDceG1RkIwgClEXFMbRc5zTZgZURmG+5fu9PN/7Hg6wZohoh4h21nn4uqXW+q0xZgzg+SrPlTXX73uet+26bp6ICpcGaK1fua57M5vN3tZav7gUgIiSqVTqcRAEm0EQbCaTyQoRXb3Iy4hoG8CT6XSaY4xtMMaSQohMPp8v+r7vAEC3243CMGwqpfoApsaYE8uyfgM45ABOjDEvXdfNlMvlzFINAIDneY7neZVzvdlsDgaDQYtzfsjOIjtKqU+e5+0Wi0V3VV8ACMOw3+/3v3HOX0sp/7K53te11h/S6fRuoVAIhBAL76OUOm2320dRFH0VQuxJKf8BAFu+UKvVvpRKpWe2bYt5fTweq0ajQUKIN1LK43N94SMR0Y1YLLYlhBBKqQUw51wkEol7WmuzoC8FuJtIJLaUUoii6Ljb7f4yxpz6vp9zHMe2bfvacDi8BeDHKkBuNps5rVbr52QyaVuW9ZExttHpdN73ej0/Ho+nADxYCdBaV0aj0RGAz5ZlHUgpx2erR/V6/d1wOHwK4CGA/QsBnPN9AN+llH+WkqFare4R0QGAO/M6M8Ysey81/wGqa8MlVvHPNAAAAABJRU5ErkJggg==");
-b.appendChild(p);this.bannerShowing=!0;var q=mxUtils.bind(this,function(){null!=b.parentNode&&(b.parentNode.removeChild(b),this.bannerShowing=!1,this.hideBannerratingFooter=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings.closeratingFooter=Date.now(),mxSettings.save()))});mxEvent.addListener(e,"click",mxUtils.bind(this,function(v){mxEvent.consume(v);q()}));mxEvent.addListener(f,"click",mxUtils.bind(this,function(v){mxEvent.consume(v);q()}));mxEvent.addListener(c,"click",mxUtils.bind(this,
-function(v){mxEvent.consume(v);q()}));mxEvent.addListener(l,"click",mxUtils.bind(this,function(v){mxEvent.consume(v);q()}));mxEvent.addListener(p,"click",mxUtils.bind(this,function(v){mxEvent.consume(v);window.open("https://marketplace.atlassian.com/apps/1210933/draw-io-diagrams-for-confluence?hosting=datacenter&tab=reviews");q()}));e=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(b.style,"transform","translate(-50%,120%)");window.setTimeout(mxUtils.bind(this,function(){q()}),1E3)});window.setTimeout(mxUtils.bind(this,
+b.appendChild(p);this.bannerShowing=!0;var v=mxUtils.bind(this,function(){null!=b.parentNode&&(b.parentNode.removeChild(b),this.bannerShowing=!1,this.hideBannerratingFooter=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings.closeratingFooter=Date.now(),mxSettings.save()))});mxEvent.addListener(e,"click",mxUtils.bind(this,function(t){mxEvent.consume(t);v()}));mxEvent.addListener(f,"click",mxUtils.bind(this,function(t){mxEvent.consume(t);v()}));mxEvent.addListener(c,"click",mxUtils.bind(this,
+function(t){mxEvent.consume(t);v()}));mxEvent.addListener(l,"click",mxUtils.bind(this,function(t){mxEvent.consume(t);v()}));mxEvent.addListener(p,"click",mxUtils.bind(this,function(t){mxEvent.consume(t);window.open("https://marketplace.atlassian.com/apps/1210933/draw-io-diagrams-for-confluence?hosting=datacenter&tab=reviews");v()}));e=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(b.style,"transform","translate(-50%,120%)");window.setTimeout(mxUtils.bind(this,function(){v()}),1E3)});window.setTimeout(mxUtils.bind(this,
function(){mxUtils.setPrefixedStyle(b.style,"transform","translate(-50%,0%)")}),500);window.setTimeout(e,6E4)}};
-App.prototype.checkLicense=function(){var b=this.drive.getUser(),e=null!=b?b.email:null;if(!this.isOffline()&&!this.editor.chromeless&&null!=e&&null!=b.id){var f=e.lastIndexOf("@"),c=0<=f?e.substring(f+1):"";b=Editor.crc32(b.id);mxUtils.post("/license","domain="+encodeURIComponent(c)+"&id="+encodeURIComponent(b)+"&ts="+(new Date).getTime(),mxUtils.bind(this,function(l){try{if(200<=l.getStatus()&&299>=l.getStatus()){var p=l.getText();if(0<p.length){var q=JSON.parse(p);null!=q&&this.handleLicense(q,
-c)}}}catch(v){}}))}};App.prototype.handleLicense=function(b,e){};App.prototype.getEditBlankXml=function(){var b=this.getCurrentFile();return null!=b&&this.editor.isChromelessView()&&this.editor.graph.isLightboxView()?b.getData():this.getFileData(!0)};App.prototype.updateActionStates=function(){EditorUi.prototype.updateActionStates.apply(this,arguments);this.actions.get("revisionHistory").setEnabled(this.isRevisionHistoryEnabled())};
+App.prototype.checkLicense=function(){var b=this.drive.getUser(),e=null!=b?b.email:null;if(!this.isOffline()&&!this.editor.chromeless&&null!=e&&null!=b.id){var f=e.lastIndexOf("@"),c=0<=f?e.substring(f+1):"";b=Editor.crc32(b.id);mxUtils.post("/license","domain="+encodeURIComponent(c)+"&id="+encodeURIComponent(b)+"&ts="+(new Date).getTime(),mxUtils.bind(this,function(l){try{if(200<=l.getStatus()&&299>=l.getStatus()){var p=l.getText();if(0<p.length){var v=JSON.parse(p);null!=v&&this.handleLicense(v,
+c)}}}catch(t){}}))}};App.prototype.handleLicense=function(b,e){};App.prototype.getEditBlankXml=function(){var b=this.getCurrentFile();return null!=b&&this.editor.isChromelessView()&&this.editor.graph.isLightboxView()?b.getData():this.getFileData(!0)};App.prototype.updateActionStates=function(){EditorUi.prototype.updateActionStates.apply(this,arguments);this.actions.get("revisionHistory").setEnabled(this.isRevisionHistoryEnabled())};
App.prototype.addRecent=function(b,e,f){if(isLocalStorage&&null!=localStorage){e=null!=e?e:"";var c=this.getRecent(e);if(null==c)c=[];else for(var l=0;l<c.length;l++)c[l].mode==b.mode&&c[l].id==b.id&&c.splice(l,1);null!=c&&(f=null!=f?f:10,c.unshift(b),c=c.slice(0,f),localStorage.setItem(".recent"+e,JSON.stringify(c)))}};App.prototype.getRecent=function(b){if(isLocalStorage&&null!=localStorage){try{var e=localStorage.getItem(".recent"+(null!=b?b:""));if(null!=e)return JSON.parse(e)}catch(f){}return null}};
App.prototype.resetRecent=function(b){if(isLocalStorage&&null!=localStorage)try{localStorage.removeItem(".recent"+(null!=b?b:""))}catch(e){}};
App.prototype.onBeforeUnload=function(){if("1"==urlParams.embed&&this.editor.modified)return mxResources.get("allChangesLost");this.unloading=!0;var b=this.getCurrentFile();if(null!=b)if(b.constructor!=LocalFile||""!=b.getHash()||b.isModified()||"1"==urlParams.nowarn||this.isDiagramEmpty()||null!=urlParams.url||this.editor.isChromelessView()||null!=b.fileHandle){if(b.isModified())return this.logIfModified(b),mxResources.get("allChangesLost");b.close(!0)}else return mxResources.get("ensureDataSaved")};
App.prototype.updateDocumentTitle=function(){var b=this.editor.appName,e=this.getCurrentFile();null==e||!this.editor.graph.isLightboxView()&&"simple"!=Editor.currentTheme||null==this.pages||null==this.currentPage?this.isOfflineApp()&&(b+=" app"):b=this.getShortPageName(this.currentPage);null!=e&&(b=(null!=e.getTitle()?e.getTitle():this.defaultFilename)+" - "+b);document.title!=b&&(document.title=b)};
-App.prototype.getThumbnail=function(b,e,f){f=null!=f?f:0;var c=!1;try{var l=!0,p=window.setTimeout(mxUtils.bind(this,function(){l=!1;e(null)}),this.timeout),q=mxUtils.bind(this,function(P){window.clearTimeout(p);l&&e(P)});null==this.thumbImageCache&&(this.thumbImageCache={});var v=this.editor.graph,D=v.backgroundImage;if(null!=this.pages&&this.currentPage!=this.pages[0]){var G=v.getGlobalVariable;v=this.createTemporaryGraph(v.getStylesheet());v.setBackgroundImage=this.editor.graph.setBackgroundImage;
-var B=this.pages[0];this.currentPage==B?v.setBackgroundImage(D):null!=B.viewState&&null!=B.viewState&&(D=B.viewState.backgroundImage,v.setBackgroundImage(D));v.getGlobalVariable=function(P){return"page"==P?B.getName():"pagenumber"==P?1:G.apply(this,arguments)};v.getGlobalVariable=G;document.body.appendChild(v.container);v.model.setRoot(B.root)}if(mxClient.IS_CHROMEAPP||this.useCanvasForExport)this.editor.exportToCanvas(mxUtils.bind(this,function(P){try{v!=this.editor.graph&&null!=v.container.parentNode&&
-v.container.parentNode.removeChild(v.container)}catch(u){P=null}q(P)}),b,this.thumbImageCache,"#ffffff",function(){q()},null,null,null,null,null,null,v,f,null,null,null,"diagram",null),c=!0;else if(this.canvasSupported&&null!=this.getCurrentFile()){var d=document.createElement("canvas"),g=v.getGraphBounds(),k=v.view.translate,m=v.view.scale;null!=D&&(g=mxRectangle.fromRectangle(g),g.add(new mxRectangle((k.x+D.x)*m,(k.y+D.y)*m,D.width*m,D.height*m)));var t=b/g.width;t=Math.min(1,Math.min(3*b/(4*g.height),
-t));var y=Math.floor(g.x),z=Math.floor(g.y);d.setAttribute("width",Math.ceil(t*(g.width+4)));d.setAttribute("height",Math.ceil(t*(g.height+4)));var I=d.getContext("2d");I.scale(t,t);I.translate(-y,-z);var F=v.background;if(null==F||""==F||F==mxConstants.NONE)F="#ffffff";I.save();I.fillStyle=F;I.fillRect(y,z,Math.ceil(g.width+4),Math.ceil(g.height+4));I.restore();if(null!=D){var C=new Image;C.src=D.src;I.drawImage(C,D.x*t,D.y*t,D.width*t,D.height*t)}var Q=new mxJsCanvas(d),S=new mxAsyncCanvas(this.thumbImageCache);
-Q.images=this.thumbImageCache.images;var V=new mxImageExport;V.drawShape=function(P,u){P.shape instanceof mxShape&&P.shape.checkBounds()&&(u.save(),u.translate(.5,.5),P.shape.paint(u),u.translate(-.5,-.5),u.restore())};V.drawText=function(P,u){};V.drawState(v.getView().getState(v.model.root),S);S.finish(mxUtils.bind(this,function(){try{V.drawState(v.getView().getState(v.model.root),Q),v!=this.editor.graph&&null!=v.container.parentNode&&v.container.parentNode.removeChild(v.container)}catch(P){d=null}q(d)}));
-c=!0}}catch(P){c=!1,null!=v&&v!=this.editor.graph&&null!=v.container.parentNode&&v.container.parentNode.removeChild(v.container)}c||window.clearTimeout(p);return c};
+App.prototype.getThumbnail=function(b,e,f){f=null!=f?f:0;var c=!1;try{var l=!0,p=window.setTimeout(mxUtils.bind(this,function(){l=!1;e(null)}),this.timeout),v=mxUtils.bind(this,function(O){window.clearTimeout(p);l&&e(O)});null==this.thumbImageCache&&(this.thumbImageCache={});var t=this.editor.graph,E=t.backgroundImage;if(null!=this.pages&&this.currentPage!=this.pages[0]){var H=t.getGlobalVariable;t=this.createTemporaryGraph(t.getStylesheet());t.setBackgroundImage=this.editor.graph.setBackgroundImage;
+var B=this.pages[0];this.currentPage==B?t.setBackgroundImage(E):null!=B.viewState&&null!=B.viewState&&(E=B.viewState.backgroundImage,t.setBackgroundImage(E));t.getGlobalVariable=function(O){return"page"==O?B.getName():"pagenumber"==O?1:H.apply(this,arguments)};t.getGlobalVariable=H;document.body.appendChild(t.container);t.model.setRoot(B.root)}if(mxClient.IS_CHROMEAPP||this.useCanvasForExport)this.editor.exportToCanvas(mxUtils.bind(this,function(O){try{t!=this.editor.graph&&null!=t.container.parentNode&&
+t.container.parentNode.removeChild(t.container)}catch(V){O=null}v(O)}),b,this.thumbImageCache,"#ffffff",function(){v()},null,null,null,null,null,null,t,f,null,null,null,"diagram",null),c=!0;else if(this.canvasSupported&&null!=this.getCurrentFile()){var d=document.createElement("canvas"),g=t.getGraphBounds(),k=t.view.translate,m=t.view.scale;null!=E&&(g=mxRectangle.fromRectangle(g),g.add(new mxRectangle((k.x+E.x)*m,(k.y+E.y)*m,E.width*m,E.height*m)));var u=b/g.width;u=Math.min(1,Math.min(3*b/(4*g.height),
+u));var x=Math.floor(g.x),A=Math.floor(g.y);d.setAttribute("width",Math.ceil(u*(g.width+4)));d.setAttribute("height",Math.ceil(u*(g.height+4)));var I=d.getContext("2d");I.scale(u,u);I.translate(-x,-A);var F=t.background;if(null==F||""==F||F==mxConstants.NONE)F="#ffffff";I.save();I.fillStyle=F;I.fillRect(x,A,Math.ceil(g.width+4),Math.ceil(g.height+4));I.restore();if(null!=E){var C=new Image;C.src=E.src;I.drawImage(C,E.x*u,E.y*u,E.width*u,E.height*u)}var P=new mxJsCanvas(d),R=new mxAsyncCanvas(this.thumbImageCache);
+P.images=this.thumbImageCache.images;var U=new mxImageExport;U.drawShape=function(O,V){O.shape instanceof mxShape&&O.shape.checkBounds()&&(V.save(),V.translate(.5,.5),O.shape.paint(V),V.translate(-.5,-.5),V.restore())};U.drawText=function(O,V){};U.drawState(t.getView().getState(t.model.root),R);R.finish(mxUtils.bind(this,function(){try{U.drawState(t.getView().getState(t.model.root),P),t!=this.editor.graph&&null!=t.container.parentNode&&t.container.parentNode.removeChild(t.container)}catch(O){d=null}v(d)}));
+c=!0}}catch(O){c=!1,null!=t&&t!=this.editor.graph&&null!=t.container.parentNode&&t.container.parentNode.removeChild(t.container)}c||window.clearTimeout(p);return c};
(function(){var b=EditorUi.prototype.setMode;App.prototype.setMode=function(e,f){b.apply(this,arguments);null!=this.mode&&(Editor.useLocalStorage=this.mode==App.MODE_BROWSER);if(null!=this.appIcon){var c=this.getCurrentFile();e=null!=c?c.getMode():e;null==this.updateTitleListener&&(this.updateTitleListener=mxUtils.bind(this,function(){e==App.MODE_GOOGLE?this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("googleDrive")])):e==App.MODE_DROPBOX?this.appIcon.setAttribute("title",
mxResources.get("openIt",[mxResources.get("dropbox")])):e==App.MODE_ONEDRIVE?this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("oneDrive")])):this.appIcon.removeAttribute("title")}),this.addListener("languageChanged",mxUtils.bind(this,function(){this.updateTitleListener()})));this.updateTitleListener()}if(f)try{if(isLocalStorage)localStorage.setItem(".mode",e);else if("undefined"!=typeof Storage){var l=new Date;l.setYear(l.getFullYear()+1);document.cookie="MODE="+e+"; expires="+
l.toUTCString()}}catch(p){}}})();
@@ -14051,335 +14095,338 @@ App.prototype.showRefreshDialog=function(b,e){this.showingRefreshDialog||(this.s
App.prototype.showAlert=function(b){if(null!=b&&0<b.length){var e=document.createElement("div");e.className="geAlert";e.style.zIndex=2E9;e.style.left="50%";e.style.top="-100%";e.style.maxWidth="80%";e.style.width="max-content";e.style.whiteSpace="pre-wrap";mxUtils.setPrefixedStyle(e.style,"transform","translate(-50%,0%)");mxUtils.setPrefixedStyle(e.style,"transition","all 1s ease");e.innerHTML=b;b=document.createElement("a");b.className="geAlertLink";b.style.textAlign="right";b.style.marginTop="20px";
b.style.display="block";b.setAttribute("title",mxResources.get("close"));b.innerHTML=mxResources.get("close");e.appendChild(b);mxEvent.addListener(b,"click",function(f){null!=e.parentNode&&(e.parentNode.removeChild(e),mxEvent.consume(f))});document.body.appendChild(e);window.setTimeout(function(){e.style.top="30px"},10);window.setTimeout(function(){mxUtils.setPrefixedStyle(e.style,"transition","all 2s ease");e.style.opacity="0";window.setTimeout(function(){null!=e.parentNode&&e.parentNode.removeChild(e)},
2E3)},15E3)}};
-App.prototype.start=function(){try{this.restoreLibraries();this.spinner.stop();var b=this;window.onerror=function(q,v,D,G,B){"ResizeObserver loop limit exceeded"!=q&&(EditorUi.logError("Uncaught: "+(null!=q?q:""),v,D,G,B,null,!0),b.handleError({message:q},mxResources.get("unknownError"),null,null,null,null,!0))};if("1"!=urlParams.client&&"1"!=urlParams.embed){try{isLocalStorage&&window.addEventListener("storage",mxUtils.bind(this,function(q){var v=this.getCurrentFile();EditorUi.debug("storage event",[q],
-[v]);null!=v&&".draft-alive-check"==q.key&&null!=q.newValue&&null!=v.draftId&&(this.draftAliveCheck=q.newValue,v.saveDraft())}))}catch(q){}var e=this.getDiagramId();mxEvent.addListener(window,"hashchange",mxUtils.bind(this,function(q){try{var v=this.getDiagramId();if(v!=e){e=v;var D=this.getCurrentFile();null!=D&&D.getHash()==v||this.loadFile(v,!0)}else{var G=this.getHashObject();if(null!=G&&null!=G.pageId&&null!=this.currentPage&&G.pageId!=this.currentPage.getId()){var B=this.getPageById(G.pageId);
-null!=B&&this.selectPage(B)}}}catch(d){null!=document.body&&this.handleError(d,mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var g=this.getCurrentFile();window.location.hash=null!=g?g.getHash():""}))}}))}if((null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.desc)try{this.loadDescriptor(JSON.parse(Graph.decompress(urlParams.desc)),null,mxUtils.bind(this,function(q){this.handleError(q,mxResources.get("errorLoadingFile"))}))}catch(q){this.handleError(q,mxResources.get("errorLoadingFile"))}else if((null==
-window.location.hash||1>=window.location.hash.length)&&null!=urlParams.url)this.loadFile("U"+urlParams.url,!0);else if(null==this.getCurrentFile()){var f=mxUtils.bind(this,function(){if("1"==urlParams.client&&(null==window.location.hash||0==window.location.hash.length||"#P"==window.location.hash.substring(0,2))){var q=mxUtils.bind(this,function(G){Editor.isPngDataUrl(G)&&(G=Editor.extractGraphModelFromPng(G));var B=urlParams.title;B=null!=B?decodeURIComponent(B):this.defaultFilename;G=new LocalFile(this,
-G,B,!0);null!=window.location.hash&&"#P"==window.location.hash.substring(0,2)&&(G.getHash=function(){return window.location.hash.substring(1)});this.fileLoaded(G);this.editor.chromeless||(G.fileChanged(),window.setTimeout(mxUtils.bind(this,function(){this.actions.get("resetView").funct()}),0))}),v=window.opener||window.parent;if(v!=window){var D=urlParams.create;null!=D?q(v[decodeURIComponent(D)]):(D=urlParams.data,null!=D?q(decodeURIComponent(D)):this.installMessageHandler(mxUtils.bind(this,function(G,
-B){B.source==v&&q(G)})))}}else if(null==this.dialog)if("1"==urlParams.demo)D=Editor.useLocalStorage,this.createFile(this.defaultFilename,null,null,null,null,null,null,!0),Editor.useLocalStorage=D;else if(null!=urlParams["smart-template"])this.createFile(this.defaultFilename,null,null,null,null,null,null,!0),this.actions.get("insertTemplate").funct();else{D=!1;try{D=null!=window.opener&&null!=window.opener.openFile}catch(G){}D?this.spinner.spin(document.body,mxResources.get("loading")):(D=this.getDiagramId(),
-!EditorUi.enableDrafts||null!=urlParams.mode||"draw.io"!=this.getServiceName()||null!=D&&0!=D.length||this.editor.isChromelessView()?null!=D&&0<D.length?this.loadFile(D,null,null,mxUtils.bind(this,function(){var G=decodeURIComponent(urlParams.viewbox||"");if(""!=G)try{var B=JSON.parse(G);this.editor.graph.fitWindow(B,B.border)}catch(d){console.error(d)}})):"0"!=urlParams.splash||null!=urlParams.mode&&!EditorUi.isElectronApp?this.loadFile():this.createFile(this.defaultFilename,this.getFileData(),null,
-null,null,null,null,!0):this.checkDrafts())}}),c=decodeURIComponent(urlParams.create||"");if((null==window.location.hash||1>=window.location.hash.length)&&0<c.length&&this.spinner.spin(document.body,mxResources.get("loading"))){var l=mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("reconnecting"))&&(window.location.search=this.getSearch(["create","title"]))}),p=mxUtils.bind(this,function(q){this.spinner.stop();if("0"!=urlParams.splash){this.fileLoaded(new LocalFile(this,
-q,null));this.editor.graph.setEnabled(!1);this.mode=urlParams.mode;var v=urlParams.title;v=null!=v?decodeURIComponent(v):this.defaultFilename;q=this.getServiceCount(!0);isLocalStorage&&q++;var D=4>=q?2:6<q?4:3;v=new CreateDialog(this,v,mxUtils.bind(this,function(G,B){if(null==B){this.hideDialog();var d=Editor.useLocalStorage;this.createFile(0<G.length?G:this.defaultFilename,this.getFileData(),null,null,null,!0,null,!0);Editor.useLocalStorage=d}else this.pickFolder(B,mxUtils.bind(this,function(g){this.createFile(G,
-this.getFileData(!0),null,B,null,!0,g)}))}),null,null,null,null,"1"==urlParams.browser,null,null,!0,D,null,null,null,this.editor.fileExtensions);this.showDialog(v.container,420,q>D?390:280,!0,!1,mxUtils.bind(this,function(G){G&&null==this.getCurrentFile()&&this.showSplash()}));v.init()}});if("http://"!=c.substring(0,7)&&"https://"!=c.substring(0,8))if("{"==c.charAt(0))this.spinner.stop(),c=JSON.parse(c),window.isMermaidEnabled&&"mermaid"==c.type?(mxMermaidToDrawio.addListener(mxUtils.bind(this,function(q){q!=
-this.emptyDiagramXml&&(window.history.replaceState(null,null,window.location.pathname+this.getSearch(["create"])),this.createFile(null!=q.filename?q.filename:this.defaultFilename,q,null,null,null,!0,null,!0),this.editor.chromeless&&!this.editor.editable||this.actions.get("fitWindow").funct())})),this.generateMermaidImage(c.data,null,function(){},mxUtils.bind(this,function(q){for(var v=document.querySelectorAll('div[id^="dgeMermaidOutput"]'),D=0;D<v.length;D++)v[D].parentNode.removeChild(v[D]);mxMermaidToDrawio.resetListeners();
-this.handleError(q)}))):this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"));else try{null!=window.opener&&null!=window.opener[c]?p(window.opener[c]):this.handleError(null,mxResources.get("errorLoadingFile"))}catch(q){this.handleError(q,mxResources.get("errorLoadingFile"))}else this.loadTemplate(c,function(q){p(q)},mxUtils.bind(this,function(q){this.handleError(q,mxResources.get("errorLoadingFile"),l)}))}else(null==window.location.hash||1>=
-window.location.hash.length)&&null!=urlParams.state&&null!=this.stateArg&&"open"==this.stateArg.action?null!=this.stateArg.ids&&(window.history&&window.history.replaceState&&window.history.replaceState(null,null,window.location.pathname+this.getSearch(["state"])),window.location.hash="G"+this.stateArg.ids[0]):(null==window.location.hash||1>=window.location.hash.length)&&null!=this.drive&&null!=this.stateArg&&"create"==this.stateArg.action?(window.history&&window.history.replaceState&&window.history.replaceState(null,
-null,window.location.pathname+this.getSearch(["state"])),this.setMode(App.MODE_GOOGLE),"0"==urlParams.splash?this.createFile(null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename):this.actions.get("new").funct()):(null!=urlParams.open&&window.history&&window.history.replaceState&&(window.history.replaceState(null,null,window.location.pathname+this.getSearch(["open","sketch"])),window.location.hash=urlParams.open),f())}}catch(q){this.handleError(q)}};
+App.prototype.start=function(){try{this.restoreLibraries();this.spinner.stop();var b=this;window.onerror=function(E,H,B,d,g){"ResizeObserver loop limit exceeded"!=E&&(EditorUi.logError("Uncaught: "+(null!=E?E:""),H,B,d,g,null,!0),b.handleError({message:E},mxResources.get("unknownError"),null,null,null,null,!0))};if("1"!=urlParams.client&&"1"!=urlParams.embed){try{isLocalStorage&&window.addEventListener("storage",mxUtils.bind(this,function(E){var H=this.getCurrentFile();EditorUi.debug("storage event",[E],
+[H]);null!=H&&".draft-alive-check"==E.key&&null!=E.newValue&&null!=H.draftId&&(this.draftAliveCheck=E.newValue,H.saveDraft())}))}catch(E){}var e=this.getDiagramId();mxEvent.addListener(window,"hashchange",mxUtils.bind(this,function(E){try{var H=this.getDiagramId();if(H!=e){e=H;var B=this.getCurrentFile();null!=B&&B.getHash()==H||this.loadFile(H,!0)}else{var d=this.getHashObject();if(null!=d&&null!=d.pageId&&null!=this.currentPage&&d.pageId!=this.currentPage.getId()){var g=this.getPageById(d.pageId);
+null!=g&&this.selectPage(g)}}}catch(k){null!=document.body&&this.handleError(k,mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var m=this.getCurrentFile();window.location.hash=null!=m?m.getHash():""}))}}))}if((null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.desc)try{this.loadDescriptor(JSON.parse(Graph.decompress(urlParams.desc)),null,mxUtils.bind(this,function(E){this.handleError(E,mxResources.get("errorLoadingFile"))}))}catch(E){this.handleError(E,mxResources.get("errorLoadingFile"))}else if((null==
+window.location.hash||1>=window.location.hash.length)&&null!=urlParams.url)this.loadFile("U"+urlParams.url,!0);else if(null==this.getCurrentFile()){var f=mxUtils.bind(this,function(){if("1"==urlParams.client&&(null==window.location.hash||0==window.location.hash.length||"#P"==window.location.hash.substring(0,2))){var E=mxUtils.bind(this,function(d){Editor.isPngDataUrl(d)&&(d=Editor.extractGraphModelFromPng(d));var g=urlParams.title;g=null!=g?decodeURIComponent(g):this.defaultFilename;d=new LocalFile(this,
+d,g,!0);null!=window.location.hash&&"#P"==window.location.hash.substring(0,2)&&(d.getHash=function(){return window.location.hash.substring(1)});this.fileLoaded(d);this.editor.chromeless||(d.fileChanged(),window.setTimeout(mxUtils.bind(this,function(){this.actions.get("resetView").funct()}),0))}),H=window.opener||window.parent;if(H!=window){var B=urlParams.create;null!=B?E(H[decodeURIComponent(B)]):(B=urlParams.data,null!=B?E(decodeURIComponent(B)):this.installMessageHandler(mxUtils.bind(this,function(d,
+g){g.source==H&&E(d)})))}}else if(null==this.dialog)if("1"==urlParams.demo)B=Editor.useLocalStorage,this.createFile(this.defaultFilename,null,null,null,null,null,null,!0),Editor.useLocalStorage=B;else if(null!=urlParams["smart-template"])this.createFile(this.defaultFilename,null,null,null,null,null,null,!0),this.actions.get("insertTemplate").funct();else{B=!1;try{B=null!=window.opener&&null!=window.opener.openFile}catch(d){}B?this.spinner.spin(document.body,mxResources.get("loading")):(B=this.getDiagramId(),
+!EditorUi.enableDrafts||null!=urlParams.mode||"draw.io"!=this.getServiceName()||null!=B&&0!=B.length||this.editor.isChromelessView()?null!=B&&0<B.length?this.loadFile(B,null,null,mxUtils.bind(this,function(){var d=decodeURIComponent(urlParams.viewbox||"");if(""!=d)try{var g=JSON.parse(d);this.editor.graph.fitWindow(g,g.border)}catch(k){console.error(k)}})):"0"!=urlParams.splash||null!=urlParams.mode&&!EditorUi.isElectronApp?this.loadFile():this.createFile(this.defaultFilename,this.getFileData(),null,
+null,null,null,null,!0):this.checkDrafts())}}),c=decodeURIComponent(urlParams.create||"");null!=window.location.hash&&"#create="==window.location.hash.substring(0,8)&&(c=decodeURIComponent(window.location.hash.substring(8)));if((null==window.location.hash||1>=window.location.hash.length||"#create="==window.location.hash.substring(0,8))&&0<c.length&&this.spinner.spin(document.body,mxResources.get("loading"))){var l=mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("reconnecting"))&&
+(window.location.search=this.getSearch(["create","title"]))}),p=mxUtils.bind(this,function(E){this.spinner.stop();if("0"!=urlParams.splash){this.fileLoaded(new LocalFile(this,E,null));this.editor.graph.setEnabled(!1);this.mode=urlParams.mode;var H=urlParams.title;H=null!=H?decodeURIComponent(H):this.defaultFilename;E=this.getServiceCount(!0);isLocalStorage&&E++;var B=4>=E?2:6<E?4:3;H=new CreateDialog(this,H,mxUtils.bind(this,function(d,g){if(null==g){this.hideDialog();var k=Editor.useLocalStorage;
+this.createFile(0<d.length?d:this.defaultFilename,this.getFileData(),null,null,null,!0,null,!0);Editor.useLocalStorage=k}else this.pickFolder(g,mxUtils.bind(this,function(m){this.createFile(d,this.getFileData(!0),null,g,null,!0,m)}))}),null,null,null,null,"1"==urlParams.browser,null,null,!0,B,null,null,null,this.editor.fileExtensions);this.showDialog(H.container,420,E>B?390:280,!0,!1,mxUtils.bind(this,function(d){d&&null==this.getCurrentFile()&&this.showSplash()}));H.init()}});if("http://"!=c.substring(0,
+7)&&"https://"!=c.substring(0,8))if("{"==c.charAt(0)){this.spinner.stop();c=JSON.parse(c);var v=mxUtils.bind(this,function(E){this.createFile(null!=E.filename?E.filename:this.defaultFilename,E,null,null,mxUtils.bind(this,function(){this.editor.chromeless&&!this.editor.editable||this.actions.get("fitWindow").funct();window.history.replaceState(null,null,window.location.pathname+this.getSearch(["create"]));window.location.hash="R"+Graph.compress(E)}),!0,null,!0)}),t=c.data;c.compressed&&(t=Graph.decompress(t));
+"mermaid"==c.type?window.isMermaidEnabled?(mxMermaidToDrawio.addListener(mxUtils.bind(this,function(E){E!=this.emptyDiagramXml&&v(E)})),this.generateMermaidImage(t,null,function(){},mxUtils.bind(this,function(E){for(var H=document.querySelectorAll('div[id^="dgeMermaidOutput"]'),B=0;B<H.length;B++)H[B].parentNode.removeChild(H[B]);mxMermaidToDrawio.resetListeners();this.handleError(E)}))):this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile")):
+v(t)}else try{null!=window.opener&&null!=window.opener[c]?p(window.opener[c]):this.handleError(null,mxResources.get("errorLoadingFile"))}catch(E){this.handleError(E,mxResources.get("errorLoadingFile"))}else this.loadTemplate(c,function(E){p(E)},mxUtils.bind(this,function(E){this.handleError(E,mxResources.get("errorLoadingFile"),l)}))}else(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.state&&null!=this.stateArg&&"open"==this.stateArg.action?null!=this.stateArg.ids&&(window.history&&
+window.history.replaceState&&window.history.replaceState(null,null,window.location.pathname+this.getSearch(["state"])),window.location.hash="G"+this.stateArg.ids[0]):(null==window.location.hash||1>=window.location.hash.length)&&null!=this.drive&&null!=this.stateArg&&"create"==this.stateArg.action?(window.history&&window.history.replaceState&&window.history.replaceState(null,null,window.location.pathname+this.getSearch(["state"])),this.setMode(App.MODE_GOOGLE),"0"==urlParams.splash?this.createFile(null!=
+urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename):this.actions.get("new").funct()):(null!=urlParams.open&&window.history&&window.history.replaceState&&(window.history.replaceState(null,null,window.location.pathname+this.getSearch(["open","sketch"])),window.location.hash=urlParams.open),f())}}catch(E){this.handleError(E)}};
App.prototype.loadDraft=function(b,e){this.createFile(this.defaultFilename,b,null,null,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){var f=this.getCurrentFile();null!=f&&(f.fileChanged(),null!=e&&e())}),0)}),null,null,!0)};
-App.prototype.filterDrafts=function(b,e,f){function c(){f(l)}var l=[];try{this.getDatabaseItems(mxUtils.bind(this,function(p){EditorUi.debug("App.filterDrafts",[this],"items",p);for(var q=0;q<p.length;q++)try{var v=p[q].key;if(null!=v&&".draft_"==v.substring(0,7)){var D=JSON.parse(p[q].data);null!=D&&"draft"==D.type&&D.aliveCheck!=e&&(null==b&&null==D.fileObject||null!=D.fileObject&&D.fileObject.path==b)&&(D.key=v,l.push(D))}}catch(G){}c()}),c)}catch(p){c()}};
+App.prototype.filterDrafts=function(b,e,f){function c(){f(l)}var l=[];try{this.getDatabaseItems(mxUtils.bind(this,function(p){EditorUi.debug("App.filterDrafts",[this],"items",p);for(var v=0;v<p.length;v++)try{var t=p[v].key;if(null!=t&&".draft_"==t.substring(0,7)){var E=JSON.parse(p[v].data);null!=E&&"draft"==E.type&&E.aliveCheck!=e&&(null==b&&null==E.fileObject||null!=E.fileObject&&E.fileObject.path==b)&&(E.key=t,l.push(E))}}catch(H){}c()}),c)}catch(p){c()}};
App.prototype.checkDrafts=function(){try{var b=Editor.guid();localStorage.setItem(".draft-alive-check",b);window.setTimeout(mxUtils.bind(this,function(){localStorage.removeItem(".draft-alive-check");this.filterDrafts(null,b,mxUtils.bind(this,function(e){if(1==e.length)this.loadDraft(e[0].data,mxUtils.bind(this,function(){this.removeDatabaseItem(e[0].key)}));else if(1<e.length){var f=new Date(e[0].modified);f=new DraftDialog(this,1<e.length?mxResources.get("selectDraft"):mxResources.get("draftFound",
[f.toLocaleDateString()+" "+f.toLocaleTimeString()]),1<e.length?null:e[0].data,mxUtils.bind(this,function(c){this.hideDialog();c=""!=c&&null!=e[c]?c:0;this.loadDraft(e[c].data,mxUtils.bind(this,function(){this.removeDatabaseItem(e[c].key)}))}),mxUtils.bind(this,function(c,l){this.removeDatabaseItem(e[""!=c?c:0].key);null!=l&&l()}),null,null,null,1<e.length?e:null);this.showDialog(f.container,640,480,!0,!1,mxUtils.bind(this,function(c){"0"!=urlParams.splash?this.loadFile():this.createFile(this.defaultFilename,
this.getFileData(),null,null,null,null,null,!0)}));f.init()}else"0"!=urlParams.splash?this.loadFile():this.createFile(this.defaultFilename,this.getFileData(),null,null,null,null,null,!0)}))}),0)}catch(e){}};
-App.prototype.showSplash=function(b){if("1"!=urlParams.noFileMenu){var e=this.getServiceCount(!0),f=mxUtils.bind(this,function(){var l=new SplashDialog(this);this.showDialog(l.container,340,mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?200:230,!0,!0,mxUtils.bind(this,function(p,q){!p&&!q||mxClient.IS_CHROMEAPP||(p=Editor.useLocalStorage,this.createFile(this.defaultFilename+(EditorUi.isElectronApp?".drawio":""),null,null,null,null,null,null,"1"!=urlParams.local),Editor.useLocalStorage=p)}),!0)});if(this.editor.isChromelessView())this.handleError({message:mxResources.get("noFileSelected")},
+App.prototype.showSplash=function(b){if("1"!=urlParams.noFileMenu){var e=this.getServiceCount(!0),f=mxUtils.bind(this,function(){var l=new SplashDialog(this);this.showDialog(l.container,340,mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?200:230,!0,!0,mxUtils.bind(this,function(p,v){!p&&!v||mxClient.IS_CHROMEAPP||(p=Editor.useLocalStorage,this.createFile(this.defaultFilename+(EditorUi.isElectronApp?".drawio":""),null,null,null,null,null,null,"1"!=urlParams.local),Editor.useLocalStorage=p)}),!0)});if(this.editor.isChromelessView())this.handleError({message:mxResources.get("noFileSelected")},
mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){this.showSplash()}));else if(mxClient.IS_CHROMEAPP||null!=this.mode&&!b)null==urlParams.create&&f();else{b=4==e?2:3;var c=new StorageDialog(this,mxUtils.bind(this,function(){this.hideDialog();f()}),b);this.showDialog(c.container,3>b?200:300,3<e?320:210,!0,!1)}}};
App.prototype.addLanguageMenu=function(b,e,f){var c=null;null!=this.menus.get("language")&&(c=document.createElement("div"),this.setElementTitle(c,"language"),c.className="geAdaptiveAsset",c.style.backgroundImage="url("+Editor.globeImage+")",c.style.backgroundPosition="right center",c.style.backgroundRepeat="no-repeat",c.style.backgroundSize="19px 19px",c.style.width="19px",c.style.height="19px",mxUtils.setOpacity(c,40),c.style.position="absolute",c.style.cursor="pointer",c.style.bottom="20px",c.style.right=
null!=f?f:"22px",e&&(c.style.direction="rtl",c.style.textAlign="right",c.style.right=null!=f?f:"24px",e=document.createElement("span"),e.style.display="inline-block",e.style.fontSize="12px",e.style.margin="2px 24px 0 0",e.style.userSelect="none",mxUtils.write(e,mxResources.get("language")),c.appendChild(e),e.className="geAdaptiveAsset"),mxEvent.addListener(c,"click",mxUtils.bind(this,function(l){this.editor.graph.popupMenuHandler.hideMenu();var p=new mxPopupMenu(this.menus.get("language").funct);
-p.smartSeparators=!0;p.showDisabled=!0;p.autoExpand=!0;p.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(p,arguments);p.destroy()});var q=mxUtils.getOffset(c);p.popup(q.x,q.y+c.offsetHeight,null,l);this.setCurrentMenu(p)})),b.appendChild(c));return c};
-App.prototype.loadFileSystemEntry=function(b,e,f){f=null!=f?f:mxUtils.bind(this,function(c){this.handleError(c)});try{b.getFile().then(mxUtils.bind(this,function(c){var l=new FileReader;l.onload=mxUtils.bind(this,function(p){var q=mxUtils.bind(this,function(v){try{if(null!=e){var D=p.target.result;"image/png"==c.type&&(D=this.extractGraphModelFromPng(D));e(new LocalFile(this,D,c.name,null,b,c,v))}else this.openFileHandle(p.target.result,c.name,c,!1,b,v)}catch(G){f(G)}});b.queryPermission?b.queryPermission({mode:"readwrite"}).then(mxUtils.bind(this,
-function(v){q("denied"!==v)})):b.createWritable().then(mxUtils.bind(this,function(){q(!0)}),mxUtils.bind(this,function(v){q(!1)}))});l.onerror=f;"image"!==c.type.substring(0,5)&&"application/pdf"!==c.type||"image/svg"===c.type.substring(0,9)?l.readAsText(c):l.readAsDataURL(c)}),f)}catch(c){f(c)}};
+p.smartSeparators=!0;p.showDisabled=!0;p.autoExpand=!0;p.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(p,arguments);p.destroy()});var v=mxUtils.getOffset(c);p.popup(v.x,v.y+c.offsetHeight,null,l);this.setCurrentMenu(p)})),b.appendChild(c));return c};
+App.prototype.loadFileSystemEntry=function(b,e,f){f=null!=f?f:mxUtils.bind(this,function(c){this.handleError(c)});try{b.getFile().then(mxUtils.bind(this,function(c){var l=new FileReader;l.onload=mxUtils.bind(this,function(p){var v=mxUtils.bind(this,function(t){try{if(null!=e){var E=p.target.result;"image/png"==c.type&&(E=this.extractGraphModelFromPng(E));e(new LocalFile(this,E,c.name,null,b,c,t))}else this.openFileHandle(p.target.result,c.name,c,!1,b,t)}catch(H){f(H)}});b.queryPermission?b.queryPermission({mode:"readwrite"}).then(mxUtils.bind(this,
+function(t){v("denied"!==t)})):b.createWritable().then(mxUtils.bind(this,function(){v(!0)}),mxUtils.bind(this,function(t){v(!1)}))});l.onerror=f;"image"!==c.type.substring(0,5)&&"application/pdf"!==c.type||"image/svg"===c.type.substring(0,9)?l.readAsText(c):l.readAsDataURL(c)}),f)}catch(c){f(c)}};
App.prototype.createFileSystemOptions=function(b){var e=[],f=null;if(null!=b){var c=b.lastIndexOf(".");0<c&&(f=b.substring(c+1))}for(c=0;c<this.editor.diagramFileTypes.length;c++){var l={description:mxResources.get(this.editor.diagramFileTypes[c].description)+(mxClient.IS_MAC?" (."+this.editor.diagramFileTypes[c].extension+")":""),accept:{}};l.accept[this.editor.diagramFileTypes[c].mimeType]=["."+this.editor.diagramFileTypes[c].extension];this.editor.diagramFileTypes[c].extension==f?e.splice(0,0,
l):this.editor.diagramFileTypes[c].extension==f?e.splice(0,0,l):e.push(l)}return{types:e,suggestedName:b}};App.prototype.showSaveFilePicker=function(b,e,f){e=null!=e?e:mxUtils.bind(this,function(c){"AbortError"!=c.name&&this.handleError(c)});f=null!=f?f:this.createFileSystemOptions();window.showSaveFilePicker(f).then(mxUtils.bind(this,function(c){null!=c&&c.getFile().then(mxUtils.bind(this,function(l){b(c,l)}),e)}),e)};
-App.prototype.pickFile=function(b){try{if(b=null!=b?b:this.mode,b==App.MODE_GOOGLE)null!=this.drive&&"undefined"!=typeof google&&"undefined"!=typeof google.picker?this.drive.pickFile():this.openLink("https://drive.google.com");else{var e=this.getServiceForName(b);if(null!=e)e.pickFile();else if(b==App.MODE_DEVICE&&EditorUi.nativeFileSupport)window.showOpenFilePicker().then(mxUtils.bind(this,function(q){null!=q&&0<q.length&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.loadFileSystemEntry(q[0])}),
-mxUtils.bind(this,function(q){"AbortError"!=q.name&&this.handleError(q)}));else if(b==App.MODE_DEVICE&&Graph.fileSupport){if(null==this.openFileInputElt){var f=document.createElement("input");f.setAttribute("type","file");mxEvent.addListener(f,"change",mxUtils.bind(this,function(){null!=f.files&&(this.openFiles(f.files),f.type="",f.type="file",f.value="")}));f.style.display="none";document.body.appendChild(f);this.openFileInputElt=f}this.openFileInputElt.click()}else{this.hideDialog();window.openNew=
-null!=this.getCurrentFile()&&!this.isDiagramEmpty();window.baseUrl=this.getUrl();window.openKey="open";window.listBrowserFiles=mxUtils.bind(this,function(q,v){StorageFile.listFiles(this,"F",q,v)});window.openBrowserFile=mxUtils.bind(this,function(q,v,D){StorageFile.getFileContent(this,q,v,D)});window.deleteBrowserFile=mxUtils.bind(this,function(q,v,D){StorageFile.deleteFile(this,q,v,D)});var c=Editor.useLocalStorage;Editor.useLocalStorage=b==App.MODE_BROWSER;this.openFile();window.openFile.setConsumer(mxUtils.bind(this,
-function(q,v){var D=mxUtils.bind(this,function(){this.useCanvasForExport||".png"!=v.substring(v.length-4)||(v=v.substring(0,v.length-4)+".drawio");this.fileLoaded(b==App.MODE_BROWSER?new StorageFile(this,q,v):new LocalFile(this,q,v))}),G=this.getCurrentFile();null!=G&&G.isModified()?this.confirm(mxResources.get("allChangesLost"),null,D,mxResources.get("cancel"),mxResources.get("discardChanges")):D()}));var l=this.dialog,p=l.close;this.dialog.close=mxUtils.bind(this,function(q){Editor.useLocalStorage=
-c;p.apply(l,arguments);null==this.getCurrentFile()&&this.showSplash()})}}}catch(q){this.handleError(q)}};
-App.prototype.pickLibrary=function(b){b=null!=b?b:this.mode;var e=mxUtils.bind(this,function(p){try{this.loadLibrary(p);this.showSidebar();try{this.sidebar.palettes[p.getHash()][0].scrollIntoView({behavior:"smooth"})}catch(q){}}catch(q){this.handleError(q,mxResources.get("errorLoadingFile"))}});if(b==App.MODE_GOOGLE||b==App.MODE_DROPBOX||b==App.MODE_ONEDRIVE||b==App.MODE_GITHUB||b==App.MODE_GITLAB||b==App.MODE_TRELLO){var f=b==App.MODE_GOOGLE?this.drive:b==App.MODE_ONEDRIVE?this.oneDrive:b==App.MODE_GITHUB?
-this.gitHub:b==App.MODE_GITLAB?this.gitLab:b==App.MODE_TRELLO?this.trello:this.dropbox;null!=f&&f.pickLibrary(mxUtils.bind(this,function(p,q){null!=q?e(q):this.spinner.spin(document.body,mxResources.get("loading"))&&f.getLibrary(p,mxUtils.bind(this,function(v){this.spinner.stop();e(v)}),mxUtils.bind(this,function(v){this.handleError(v,null!=v?mxResources.get("errorLoadingFile"):null)}))}))}else if(b==App.MODE_DEVICE&&Graph.fileSupport){if(null==this.libFileInputElt){var c=document.createElement("input");
-c.setAttribute("type","file");mxEvent.addListener(c,"change",mxUtils.bind(this,function(){if(null!=c.files){for(var p=0;p<c.files.length;p++)mxUtils.bind(this,function(q){var v=new FileReader;v.onload=mxUtils.bind(this,function(D){e(new LocalLibrary(this,D.target.result,q.name))});v.readAsText(q)})(c.files[p]);c.type="";c.type="file";c.value=""}}));c.style.display="none";document.body.appendChild(c);this.libFileInputElt=c}this.libFileInputElt.click()}else{window.openNew=!1;window.openKey="open";window.listBrowserFiles=
-mxUtils.bind(this,function(p,q){StorageFile.listFiles(this,"L",p,q)});window.openBrowserFile=mxUtils.bind(this,function(p,q,v){StorageFile.getFileContent(this,p,q,v)});window.deleteBrowserFile=mxUtils.bind(this,function(p,q,v){StorageFile.deleteFile(this,p,q,v)});var l=Editor.useLocalStorage;Editor.useLocalStorage=b==App.MODE_BROWSER;window.openFile=new OpenFile(mxUtils.bind(this,function(p){this.hideDialog(p)}));window.openFile.setConsumer(mxUtils.bind(this,function(p,q){e(b==App.MODE_BROWSER?new StorageLibrary(this,
-p,q):new LocalLibrary(this,p,q))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){Editor.useLocalStorage=l;window.openFile=null})}};
-App.prototype.saveLibrary=function(b,e,f,c,l,p,q){try{c=null!=c?c:this.mode;l=null!=l?l:!1;p=null!=p?p:!1;var v=this.createLibraryDataFromImages(e),D=mxUtils.bind(this,function(d){this.spinner.stop();null!=q&&q();this.handleError(d,null!=d?mxResources.get("errorSavingFile"):null)});null==f&&c==App.MODE_DEVICE&&(f=new LocalLibrary(this,v,b));if(null==f)this.pickFolder(c,mxUtils.bind(this,function(d){c==App.MODE_GOOGLE&&null!=this.drive&&this.spinner.spin(document.body,mxResources.get("inserting"))?
-this.drive.insertFile(b,v,d,mxUtils.bind(this,function(g){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(g,e)}),D,this.drive.libraryMimeType):c==App.MODE_GITHUB&&null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.gitHub.insertLibrary(b,v,mxUtils.bind(this,function(g){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(g,e)}),D,d):c==App.MODE_GITLAB&&null!=this.gitLab&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.gitLab.insertLibrary(b,
-v,mxUtils.bind(this,function(g){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(g,e)}),D,d):c==App.MODE_TRELLO&&null!=this.trello&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.trello.insertLibrary(b,v,mxUtils.bind(this,function(g){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(g,e)}),D,d):c==App.MODE_DROPBOX&&null!=this.dropbox&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.dropbox.insertLibrary(b,v,mxUtils.bind(this,function(g){this.spinner.stop();
-this.hideDialog(!0);this.libraryLoaded(g,e)}),D,d):c==App.MODE_ONEDRIVE&&null!=this.oneDrive&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.oneDrive.insertLibrary(b,v,mxUtils.bind(this,function(g){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(g,e)}),D,d):c==App.MODE_BROWSER?StorageFile.doInsertFile(new StorageLibrary(this,v,b),mxUtils.bind(this,function(g){this.hideDialog(!0);this.libraryLoaded(g,e)}),D):this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})}));
-else if(l||this.spinner.spin(document.body,mxResources.get("saving"))){f.setData(v);var G=mxUtils.bind(this,function(){f.save(!0,mxUtils.bind(this,function(d){this.spinner.stop();this.hideDialog(!0);p||this.libraryLoaded(f,e);null!=q&&q()}),D)});if(b!=f.getTitle()){var B=f.getHash();f.rename(b,mxUtils.bind(this,function(d){f.constructor!=LocalLibrary&&B!=f.getHash()&&(mxSettings.removeCustomLibrary(B),mxSettings.addCustomLibrary(f.getHash()));this.removeLibrarySidebar(B);G()}),D)}else G()}}catch(d){this.handleError(d)}};
+App.prototype.pickFile=function(b){try{if(b=null!=b?b:this.mode,b==App.MODE_GOOGLE)null!=this.drive&&"undefined"!=typeof google&&"undefined"!=typeof google.picker?this.drive.pickFile():this.openLink("https://drive.google.com");else{var e=this.getServiceForName(b);if(null!=e)e.pickFile();else if(b==App.MODE_DEVICE&&EditorUi.nativeFileSupport)window.showOpenFilePicker().then(mxUtils.bind(this,function(v){null!=v&&0<v.length&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.loadFileSystemEntry(v[0])}),
+mxUtils.bind(this,function(v){"AbortError"!=v.name&&this.handleError(v)}));else if(b==App.MODE_DEVICE&&Graph.fileSupport){if(null==this.openFileInputElt){var f=document.createElement("input");f.setAttribute("type","file");mxEvent.addListener(f,"change",mxUtils.bind(this,function(){null!=f.files&&(this.openFiles(f.files),f.type="",f.type="file",f.value="")}));f.style.display="none";document.body.appendChild(f);this.openFileInputElt=f}this.openFileInputElt.click()}else{this.hideDialog();window.openNew=
+null!=this.getCurrentFile()&&!this.isDiagramEmpty();window.baseUrl=this.getUrl();window.openKey="open";window.listBrowserFiles=mxUtils.bind(this,function(v,t){StorageFile.listFiles(this,"F",v,t)});window.openBrowserFile=mxUtils.bind(this,function(v,t,E){StorageFile.getFileContent(this,v,t,E)});window.deleteBrowserFile=mxUtils.bind(this,function(v,t,E){StorageFile.deleteFile(this,v,t,E)});var c=Editor.useLocalStorage;Editor.useLocalStorage=b==App.MODE_BROWSER;this.openFile();window.openFile.setConsumer(mxUtils.bind(this,
+function(v,t){var E=mxUtils.bind(this,function(){this.useCanvasForExport||".png"!=t.substring(t.length-4)||(t=t.substring(0,t.length-4)+".drawio");this.fileLoaded(b==App.MODE_BROWSER?new StorageFile(this,v,t):new LocalFile(this,v,t))}),H=this.getCurrentFile();null!=H&&H.isModified()?this.confirm(mxResources.get("allChangesLost"),null,E,mxResources.get("cancel"),mxResources.get("discardChanges")):E()}));var l=this.dialog,p=l.close;this.dialog.close=mxUtils.bind(this,function(v){Editor.useLocalStorage=
+c;p.apply(l,arguments);null==this.getCurrentFile()&&this.showSplash()})}}}catch(v){this.handleError(v)}};
+App.prototype.pickLibrary=function(b){b=null!=b?b:this.mode;var e=mxUtils.bind(this,function(p){try{this.loadLibrary(p);this.showSidebar();try{this.sidebar.palettes[p.getHash()][0].scrollIntoView({behavior:"smooth"})}catch(v){}}catch(v){this.handleError(v,mxResources.get("errorLoadingFile"))}});if(b==App.MODE_GOOGLE||b==App.MODE_DROPBOX||b==App.MODE_ONEDRIVE||b==App.MODE_GITHUB||b==App.MODE_GITLAB||b==App.MODE_TRELLO){var f=b==App.MODE_GOOGLE?this.drive:b==App.MODE_ONEDRIVE?this.oneDrive:b==App.MODE_GITHUB?
+this.gitHub:b==App.MODE_GITLAB?this.gitLab:b==App.MODE_TRELLO?this.trello:this.dropbox;null!=f&&f.pickLibrary(mxUtils.bind(this,function(p,v){null!=v?e(v):this.spinner.spin(document.body,mxResources.get("loading"))&&f.getLibrary(p,mxUtils.bind(this,function(t){this.spinner.stop();e(t)}),mxUtils.bind(this,function(t){this.handleError(t,null!=t?mxResources.get("errorLoadingFile"):null)}))}))}else if(b==App.MODE_DEVICE&&Graph.fileSupport){if(null==this.libFileInputElt){var c=document.createElement("input");
+c.setAttribute("type","file");mxEvent.addListener(c,"change",mxUtils.bind(this,function(){if(null!=c.files){for(var p=0;p<c.files.length;p++)mxUtils.bind(this,function(v){var t=new FileReader;t.onload=mxUtils.bind(this,function(E){e(new LocalLibrary(this,E.target.result,v.name))});t.readAsText(v)})(c.files[p]);c.type="";c.type="file";c.value=""}}));c.style.display="none";document.body.appendChild(c);this.libFileInputElt=c}this.libFileInputElt.click()}else{window.openNew=!1;window.openKey="open";window.listBrowserFiles=
+mxUtils.bind(this,function(p,v){StorageFile.listFiles(this,"L",p,v)});window.openBrowserFile=mxUtils.bind(this,function(p,v,t){StorageFile.getFileContent(this,p,v,t)});window.deleteBrowserFile=mxUtils.bind(this,function(p,v,t){StorageFile.deleteFile(this,p,v,t)});var l=Editor.useLocalStorage;Editor.useLocalStorage=b==App.MODE_BROWSER;window.openFile=new OpenFile(mxUtils.bind(this,function(p){this.hideDialog(p)}));window.openFile.setConsumer(mxUtils.bind(this,function(p,v){e(b==App.MODE_BROWSER?new StorageLibrary(this,
+p,v):new LocalLibrary(this,p,v))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){Editor.useLocalStorage=l;window.openFile=null})}};
+App.prototype.saveLibrary=function(b,e,f,c,l,p,v){try{c=null!=c?c:this.mode;l=null!=l?l:!1;p=null!=p?p:!1;var t=this.createLibraryDataFromImages(e),E=mxUtils.bind(this,function(d){this.spinner.stop();null!=v&&v();this.handleError(d,null!=d?mxResources.get("errorSavingFile"):null)});null==f&&c==App.MODE_DEVICE&&(f=new LocalLibrary(this,t,b));if(null==f)this.pickFolder(c,mxUtils.bind(this,function(d){c==App.MODE_GOOGLE&&null!=this.drive&&this.spinner.spin(document.body,mxResources.get("inserting"))?
+this.drive.insertFile(b,t,d,mxUtils.bind(this,function(g){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(g,e)}),E,this.drive.libraryMimeType):c==App.MODE_GITHUB&&null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.gitHub.insertLibrary(b,t,mxUtils.bind(this,function(g){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(g,e)}),E,d):c==App.MODE_GITLAB&&null!=this.gitLab&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.gitLab.insertLibrary(b,
+t,mxUtils.bind(this,function(g){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(g,e)}),E,d):c==App.MODE_TRELLO&&null!=this.trello&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.trello.insertLibrary(b,t,mxUtils.bind(this,function(g){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(g,e)}),E,d):c==App.MODE_DROPBOX&&null!=this.dropbox&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.dropbox.insertLibrary(b,t,mxUtils.bind(this,function(g){this.spinner.stop();
+this.hideDialog(!0);this.libraryLoaded(g,e)}),E,d):c==App.MODE_ONEDRIVE&&null!=this.oneDrive&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.oneDrive.insertLibrary(b,t,mxUtils.bind(this,function(g){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(g,e)}),E,d):c==App.MODE_BROWSER?StorageFile.doInsertFile(new StorageLibrary(this,t,b),mxUtils.bind(this,function(g){this.hideDialog(!0);this.libraryLoaded(g,e)}),E):this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})}));
+else if(l||this.spinner.spin(document.body,mxResources.get("saving"))){f.setData(t);var H=mxUtils.bind(this,function(){f.save(!0,mxUtils.bind(this,function(d){this.spinner.stop();this.hideDialog(!0);p||this.libraryLoaded(f,e);null!=v&&v()}),E)});if(b!=f.getTitle()){var B=f.getHash();f.rename(b,mxUtils.bind(this,function(d){f.constructor!=LocalLibrary&&B!=f.getHash()&&(mxSettings.removeCustomLibrary(B),mxSettings.addCustomLibrary(f.getHash()));this.removeLibrarySidebar(B);H()}),E)}else H()}}catch(d){this.handleError(d)}};
App.prototype.saveFile=function(b,e){var f=this.getCurrentFile(),c=this.mode;if(null!=f){var l=mxUtils.bind(this,function(){EditorUi.enableDrafts&&f.removeDraft();this.getCurrentFile()==f||f.isModified()||(f.getMode()!=App.MODE_DEVICE?this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get("allChangesSaved")))})):this.clearStatus());null!=e&&e()});if(b||null==f.getTitle()||null!=f.invalidFileHandle||null==this.mode)if(null!=f&&f.constructor==LocalFile&&
-null!=f.fileHandle)this.showSaveFilePicker(mxUtils.bind(this,function(v,D){f.invalidFileHandle=null;f.fileHandle=v;f.title=D.name;f.desc=D;f.editable=null;this.save(D.name,l)}),null,this.createFileSystemOptions(f.getTitle()));else{b=null!=f.getTitle()?f.getTitle():this.defaultFilename;var p=mxUtils.bind(this,function(v,D,G,B){if(null!=v&&0<v.length)if(/(\.pdf)$/i.test(v))this.confirm(mxResources.get("didYouMeanToExportToPdf"),mxUtils.bind(this,function(){this.hideDialog();this.actions.get("exportPdf").funct()}),
-mxUtils.bind(this,function(){G.value=v.split(".").slice(0,-1).join(".");G.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?G.select():document.execCommand("selectAll",!1,null)}),mxResources.get("yes"),mxResources.get("no"));else if(this.hideDialog(),null==c&&D==App.MODE_DEVICE)null!=f&&EditorUi.nativeFileSupport?this.showSaveFilePicker(mxUtils.bind(this,function(g,k){f.fileHandle=g;f.mode=App.MODE_DEVICE;f.title=k.name;f.desc=k;this.setMode(App.MODE_DEVICE);this.save(k.name,l)}),mxUtils.bind(this,
-function(g){"AbortError"!=g.name&&this.handleError(g)}),this.createFileSystemOptions(v)):(this.setMode(App.MODE_DEVICE),this.save(v,l));else if("download"==D)(new LocalFile(this,null,v)).save();else if("_blank"==D)window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(this.getFileData(!0)),this.openLink(this.getUrl(window.location.pathname),null,!0);else if(c!=D){var d=mxUtils.bind(this,function(g){var k=this.editor.graph,m=k.getSelectionCells(),t=k.getViewState(),
-y=this.currentPage;this.createFile(v,this.getFileData(/(\.xml)$/i.test(v)||0>v.indexOf(".")||/(\.drawio)$/i.test(v),/(\.svg)$/i.test(v),/(\.html)$/i.test(v)),null,D,l,null==this.mode,g,null,null,mxUtils.bind(this,function(){this.restoreViewState(y,t,m)}))});null!=B?d(B):this.pickFolder(D,d)}else null!=D&&this.save(v,l)}),q=!mxClient.IS_IOS||!navigator.standalone;b=new SaveDialog(this,b,mxUtils.bind(this,function(v,D,G){p(v.value,D,v,G);this.hideDialog()}),q?null:["_blank"]);this.showDialog(b.container,
+null!=f.fileHandle)this.showSaveFilePicker(mxUtils.bind(this,function(t,E){f.invalidFileHandle=null;f.fileHandle=t;f.title=E.name;f.desc=E;f.editable=null;this.save(E.name,l)}),null,this.createFileSystemOptions(f.getTitle()));else{b=null!=f.getTitle()?f.getTitle():this.defaultFilename;var p=mxUtils.bind(this,function(t,E,H,B){if(null!=t&&0<t.length)if(/(\.pdf)$/i.test(t))this.confirm(mxResources.get("didYouMeanToExportToPdf"),mxUtils.bind(this,function(){this.hideDialog();this.actions.get("exportPdf").funct()}),
+mxUtils.bind(this,function(){H.value=t.split(".").slice(0,-1).join(".");H.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?H.select():document.execCommand("selectAll",!1,null)}),mxResources.get("yes"),mxResources.get("no"));else if(this.hideDialog(),null==c&&E==App.MODE_DEVICE)null!=f&&EditorUi.nativeFileSupport?this.showSaveFilePicker(mxUtils.bind(this,function(g,k){f.fileHandle=g;f.mode=App.MODE_DEVICE;f.title=k.name;f.desc=k;this.setMode(App.MODE_DEVICE);this.save(k.name,l)}),mxUtils.bind(this,
+function(g){"AbortError"!=g.name&&this.handleError(g)}),this.createFileSystemOptions(t)):(this.setMode(App.MODE_DEVICE),this.save(t,l));else if("download"==E)(new LocalFile(this,null,t)).save();else if("_blank"==E)window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(this.getFileData(!0)),this.openLink(this.getUrl(window.location.pathname),null,!0);else if(c!=E){var d=mxUtils.bind(this,function(g){var k=this.editor.graph,m=k.getSelectionCells(),u=k.getViewState(),
+x=this.currentPage;this.createFile(t,this.getFileData(/(\.xml)$/i.test(t)||0>t.indexOf(".")||/(\.drawio)$/i.test(t),/(\.svg)$/i.test(t),/(\.html)$/i.test(t)),null,E,l,null==this.mode,g,null,null,mxUtils.bind(this,function(){this.restoreViewState(x,u,m)}))});null!=B?d(B):this.pickFolder(E,d)}else null!=E&&this.save(t,l)}),v=!mxClient.IS_IOS||!navigator.standalone;b=new SaveDialog(this,b,mxUtils.bind(this,function(t,E,H){p(t.value,E,t,H);this.hideDialog()}),v?null:["_blank"]);this.showDialog(b.container,
420,150,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));b.init()}else this.save(f.getTitle(),l)}};
-App.prototype.loadTemplate=function(b,e,f,c,l){var p=!1,q=b,v=null!=c?c:b;c=/\.png$/i.test(v)||/\.pdf$/i.test(v);var D=EditorUi.isVisioFilename(v);this.editor.isCorsEnabledForUrl(q)||(p=c||D,q="t="+(new Date).getTime(),q=PROXY_URL+"?url="+encodeURIComponent(b)+"&"+q+(p?"&base64=1":""));this.editor.loadUrl(q,mxUtils.bind(this,function(G){try{var B=p?!window.atob||mxClient.IS_IE||mxClient.IS_IE11?Base64.decode(G):atob(G):G;if(D||this.isVisioData(B))D||(v=l?this.isRemoteVisioData(B)?"raw.vss":"raw.vssx":
-this.isRemoteVisioData(B)?"raw.vsd":"raw.vsdx"),this.importVisio(this.base64ToBlob(G.substring(G.indexOf(",")+1)),function(d){e(d)},f,v);else if((new XMLHttpRequest).upload&&this.isRemoteFileFormat(B,v))this.isExternalDataComms()?this.parseFileData(B,mxUtils.bind(this,function(d){4==d.readyState&&200<=d.status&&299>=d.status&&"<mxGraphModel"==d.responseText.substring(0,13)&&e(d.responseText)}),b):this.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,f);else if(this.isLucidChartData(B))this.convertLucidChart(B,
-mxUtils.bind(this,function(d){e(d)}),mxUtils.bind(this,function(d){f(d)}));else{if(/(\.png)($|\?)/i.test(v)||Editor.isPngData(B))B=Editor.extractGraphModelFromPng(G);e(B)}}catch(d){f(d)}}),f,/(\.png)($|\?)/i.test(v)||D,null,null,p)};App.prototype.getModeForChar=function(b){return"G"==b?App.MODE_GOOGLE:"D"==b?App.MODE_DROPBOX:"W"==b?App.MODE_ONEDRIVE:"H"==b?App.MODE_GITHUB:"A"==b?App.MODE_GITLAB:"T"==b?App.MODE_TRELLO:null};
+App.prototype.loadTemplate=function(b,e,f,c,l){var p=!1,v=b,t=null!=c?c:b;c=/\.png$/i.test(t)||/\.pdf$/i.test(t);var E=EditorUi.isVisioFilename(t);this.editor.isCorsEnabledForUrl(v)||(p=c||E,v="t="+(new Date).getTime(),v=PROXY_URL+"?url="+encodeURIComponent(b)+"&"+v+(p?"&base64=1":""));this.editor.loadUrl(v,mxUtils.bind(this,function(H){try{var B=p?!window.atob||mxClient.IS_IE||mxClient.IS_IE11?Base64.decode(H):atob(H):H;if(E||this.isVisioData(B))E||(t=l?this.isRemoteVisioData(B)?"raw.vss":"raw.vssx":
+this.isRemoteVisioData(B)?"raw.vsd":"raw.vsdx"),this.importVisio(this.base64ToBlob(H.substring(H.indexOf(",")+1)),function(d){e(d)},f,t);else if((new XMLHttpRequest).upload&&this.isRemoteFileFormat(B,t))this.isExternalDataComms()?this.parseFileData(B,mxUtils.bind(this,function(d){4==d.readyState&&200<=d.status&&299>=d.status&&"<mxGraphModel"==d.responseText.substring(0,13)&&e(d.responseText)}),b):this.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,f);else if(this.isLucidChartData(B))this.convertLucidChart(B,
+mxUtils.bind(this,function(d){e(d)}),mxUtils.bind(this,function(d){f(d)}));else{if(/(\.png)($|\?)/i.test(t)||Editor.isPngData(B))B=Editor.extractGraphModelFromPng(H);e(B)}}catch(d){f(d)}}),f,/(\.png)($|\?)/i.test(t)||E,null,null,p)};App.prototype.getModeForChar=function(b){return"G"==b?App.MODE_GOOGLE:"D"==b?App.MODE_DROPBOX:"W"==b?App.MODE_ONEDRIVE:"H"==b?App.MODE_GITHUB:"A"==b?App.MODE_GITLAB:"T"==b?App.MODE_TRELLO:null};
App.prototype.isModeEnabled=function(b){return b==App.MODE_GOOGLE?"function"===typeof window.DriveClient&&("1"!=urlParams.embed&&"0"!=urlParams.gapi||"1"==urlParams.embed&&"1"==urlParams.gapi)&&mxClient.IS_SVG&&isLocalStorage&&(null==document.documentMode||10<=document.documentMode):b==App.MODE_GITHUB?null!=this.gitHub:b==App.MODE_GITLAB?null!=this.gitLab:b==App.MODE_DROPBOX?"function"===typeof window.DropboxClient&&("1"!=urlParams.embed&&"0"!=urlParams.db||"1"==urlParams.embed&&"1"==urlParams.db)&&
mxClient.IS_SVG&&(null==document.documentMode||9<document.documentMode):b==App.MODE_ONEDRIVE?"function"===typeof window.OneDriveClient&&("www.draw.io"==window.location.hostname||"test.draw.io"==window.location.hostname||"drive.draw.io"==window.location.hostname||"app.diagrams.net"==window.location.hostname)&&("1"!=urlParams.embed&&"0"!=urlParams.od||"1"==urlParams.embed&&"1"==urlParams.od)&&!mxClient.IS_IOS&&(0>navigator.userAgent.indexOf("MSIE")||10<=document.documentMode):b==App.MODE_TRELLO?"function"===
typeof window.TrelloClient&&"1"==urlParams.tr&&mxClient.IS_SVG&&(null==document.documentMode||9<document.documentMode):!1};App.prototype.isModeReady=function(b){return null!=this.getServiceForName(b)&&(b!=App.MODE_DROPBOX||"undefined"!==typeof Dropbox.choose)};
App.prototype.uncompressPages=function(b){if(null!=b)try{var e=mxUtils.parseXml(b);if("mxfile"==e.documentElement.nodeName){for(var f=e.documentElement.getElementsByTagName("diagram"),c=0;c<f.length;c++){var l=Editor.parseDiagramNode(f[c],!0);null!=l&&(mxUtils.setTextContent(f[c],""),f[c].appendChild(l))}b=mxUtils.getPrettyXml(e.documentElement)}}catch(p){}return b};
-App.prototype.createFile=function(b,e,f,c,l,p,q,v,D,G){c=v?null:null!=c?c:this.mode;if(null!=b&&this.spinner.spin(document.body,mxResources.get("inserting"))){e=null!=e?e:this.emptyDiagramXml;null==e||Editor.defaultCompressed||(e=this.uncompressPages(e));var B=mxUtils.bind(this,function(){this.spinner.stop()}),d=mxUtils.bind(this,function(k){B();null==k&&null==this.getCurrentFile()&&null==this.dialog?this.showSplash():null!=k&&this.handleError(k)});try{var g=mxUtils.bind(this,function(k){B();this.fileCreated(k,
-f,p,l,D,G)});c==App.MODE_GOOGLE&&null!=this.drive?(null==q&&null!=this.stateArg&&null!=this.stateArg.folderId&&(q=this.stateArg.folderId),this.drive.insertFile(b,e,q,g,d)):c==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.insertFile(b,e,g,d,!1,q):c==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.insertFile(b,e,g,d,!1,q):c==App.MODE_TRELLO&&null!=this.trello?this.trello.insertFile(b,e,g,d,!1,q):c==App.MODE_DROPBOX&&null!=this.dropbox?this.dropbox.insertFile(b,e,g,d):c==App.MODE_ONEDRIVE&&null!=this.oneDrive?
-this.oneDrive.insertFile(b,e,g,d,!1,q):c==App.MODE_BROWSER?StorageFile.insertFile(this,b,e,g,d):!v&&c==App.MODE_DEVICE&&EditorUi.nativeFileSupport?(B(),this.showSaveFilePicker(mxUtils.bind(this,function(k,m){var t=new LocalFile(this,e,m.name,null,k,m);t.saveFile(m.name,!1,mxUtils.bind(this,function(){this.fileCreated(t,f,p,l,D,G)}),d,!0)}),mxUtils.bind(this,function(k){"AbortError"!=k.name&&d(k)}),this.createFileSystemOptions(b))):(B(),this.fileCreated(new LocalFile(this,e,b,null==c),f,p,l,D,G))}catch(k){B(),
+App.prototype.createFile=function(b,e,f,c,l,p,v,t,E,H){c=t?null:null!=c?c:this.mode;if(null!=b&&this.spinner.spin(document.body,mxResources.get("inserting"))){e=null!=e?e:this.emptyDiagramXml;null==e||Editor.defaultCompressed||(e=this.uncompressPages(e));var B=mxUtils.bind(this,function(){this.spinner.stop()}),d=mxUtils.bind(this,function(k){B();null==k&&null==this.getCurrentFile()&&null==this.dialog?this.showSplash():null!=k&&this.handleError(k)});try{var g=mxUtils.bind(this,function(k){B();this.fileCreated(k,
+f,p,l,E,H)});c==App.MODE_GOOGLE&&null!=this.drive?(null==v&&null!=this.stateArg&&null!=this.stateArg.folderId&&(v=this.stateArg.folderId),this.drive.insertFile(b,e,v,g,d)):c==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.insertFile(b,e,g,d,!1,v):c==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.insertFile(b,e,g,d,!1,v):c==App.MODE_TRELLO&&null!=this.trello?this.trello.insertFile(b,e,g,d,!1,v):c==App.MODE_DROPBOX&&null!=this.dropbox?this.dropbox.insertFile(b,e,g,d):c==App.MODE_ONEDRIVE&&null!=this.oneDrive?
+this.oneDrive.insertFile(b,e,g,d,!1,v):c==App.MODE_BROWSER?StorageFile.insertFile(this,b,e,g,d):!t&&c==App.MODE_DEVICE&&EditorUi.nativeFileSupport?(B(),this.showSaveFilePicker(mxUtils.bind(this,function(k,m){var u=new LocalFile(this,e,m.name,null,k,m);u.saveFile(m.name,!1,mxUtils.bind(this,function(){this.fileCreated(u,f,p,l,E,H)}),d,!0)}),mxUtils.bind(this,function(k){"AbortError"!=k.name&&d(k)}),this.createFileSystemOptions(b))):(B(),this.fileCreated(new LocalFile(this,e,b,null==c),f,p,l,E,H))}catch(k){B(),
this.handleError(k)}}};
-App.prototype.fileCreated=function(b,e,f,c,l,p){var q=window.location.pathname;null!=e&&0<e.length&&(q+="?libs="+e);null!=l&&0<l.length&&(q+="?clibs="+l);q=this.getUrl(q);b.getMode()!=App.MODE_DEVICE&&(q+="#"+b.getHash());if(this.spinner.spin(document.body,mxResources.get("inserting"))){var v=b.getData();v=0<v.length?this.editor.extractGraphModel(mxUtils.parseXml(v).documentElement,!0):null;var D=window.location.protocol+"//"+window.location.hostname+q,G=v,B=null;null!=v&&/\.svg$/i.test(b.getTitle())&&(B=
-this.createTemporaryGraph(this.editor.graph.getStylesheet()),document.body.appendChild(B.container),G=this.decodeNodeIntoGraph(G,B));b.setData(this.createFileData(v,B,b,D));null!=B&&B.container.parentNode.removeChild(B.container);var d=mxUtils.bind(this,function(){this.spinner.stop()}),g=mxUtils.bind(this,function(){d();var k=this.getCurrentFile();null==f&&null!=k&&(f=!k.isModified()&&null==k.getMode());var m=mxUtils.bind(this,function(){window.openFile=null;this.fileLoaded(b,null,p);f&&this.updateStatus(mxUtils.bind(this,
-function(){b.addAllSavedStatus()}));null!=e&&this.sidebar.showEntries(e);if(null!=l){for(var y=[],z=l.split(";"),I=0;I<z.length;I++)y.push(decodeURIComponent(z[I]));this.loadLibraries(y)}null!=c&&c()}),t=mxUtils.bind(this,function(){f||null==k||!k.isModified()?m():this.confirm(mxResources.get("allChangesLost"),null,m,mxResources.get("cancel"),mxResources.get("discardChanges"))});null==f||f?t():(b.constructor==LocalFile&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(b.getData(),
-b.getTitle(),null==b.getMode())),window.geOpenWindow(q,null,t))});b.constructor==LocalFile?g():b.saveFile(b.getTitle(),!1,mxUtils.bind(this,function(){g()}),mxUtils.bind(this,function(k){d();null!=k&&"AbortError"==k.name||this.handleError(k)}))}};
-App.prototype.loadFile=function(b,e,f,c,l){if("1"==urlParams.openInSameWin||navigator.standalone)e=!0;this.hideDialog();var p=mxUtils.bind(this,function(){if(null==b||0==b.length)this.clearStatus(),this.fileLoaded(null);else if(this.spinner.spin(document.body,mxResources.get("loading")))if("L"==b.charAt(0))if(this.spinner.stop(),isLocalStorage){var D=mxUtils.bind(this,function(k){this.handleError(k,mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var m=this.getCurrentFile();window.location.hash=
-null!=m?m.getHash():""}))});b=decodeURIComponent(b.substring(1));StorageFile.getFileContent(this,b,mxUtils.bind(this,function(k){null!=k?(this.fileLoaded(new StorageFile(this,k,b)),null!=c&&c()):D({message:mxResources.get("fileNotFound")})}),D)}else this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var k=this.getCurrentFile();window.location.hash=null!=k?k.getHash():""}));else if(null!=f)this.spinner.stop(),this.fileLoaded(f),
-null!=c&&c();else if("S"==b.charAt(0))this.spinner.stop(),this.alert("[Deprecation] #S is no longer supported, go to https://app.diagrams.net/?desc="+b.substring(1).substring(0,10),mxUtils.bind(this,function(){window.location.href="https://app.diagrams.net/?desc="+b.substring(1)}));else if("R"==b.charAt(0)){this.spinner.stop();var G=decodeURIComponent(b.substring(1));"<"!=G.charAt(0)&&(G=Graph.decompress(G));G=new LocalFile(this,G,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,
-!0);G.getHash=function(){return b};this.fileLoaded(G);null!=c&&c()}else if("E"==b.charAt(0))null==this.getCurrentFile()?this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile")):this.remoteInvoke("getDraftFileContent",null,null,mxUtils.bind(this,function(k,m){this.spinner.stop();this.fileLoaded(new EmbedFile(this,k,m));null!=c&&c()}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"))}));
-else if("U"==b.charAt(0)){var B=decodeURIComponent(b.substring(1)),d=mxUtils.bind(this,function(){if("https://drive.google.com/uc?id="!=B.substring(0,31)||null==this.drive&&"function"!==typeof window.DriveClient)return!1;this.hideDialog();var k=mxUtils.bind(this,function(){this.spinner.stop();if(null!=this.drive){var m=B.substring(31,B.lastIndexOf("&ex"));this.loadFile("G"+m,e,null,mxUtils.bind(this,function(){var t=this.getCurrentFile();null!=t&&this.editor.chromeless&&!this.editor.editable&&(t.getHash=
-function(){return"G"+m},window.location.hash="#"+t.getHash());null!=c&&c()}));return!0}return!1});!k()&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.addListener("clientLoaded",k);return!0});this.loadTemplate(B,mxUtils.bind(this,function(k){this.spinner.stop();if(null!=k&&0<k.length){var m=this.defaultFilename;if(null==urlParams.title&&"1"!=urlParams.notitle){var t=B,y=B.lastIndexOf("."),z=t.lastIndexOf("/");y>z&&0<z&&(t=t.substring(z+1,y),y=B.substring(y),this.useCanvasForExport||
-".png"!=y||(y=".drawio"),".svg"===y||".xml"===y||".html"===y||".png"===y||".drawio"===y)&&(m=t+y)}k=new LocalFile(this,k,null!=urlParams.title?decodeURIComponent(urlParams.title):m,!0);k.getHash=function(){return b};this.fileLoaded(k,!0)?null!=c&&c():d()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}else d()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}),mxUtils.bind(this,function(){d()||(this.spinner.stop(),
-this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile")))}),null!=urlParams["template-filename"]?decodeURIComponent(urlParams["template-filename"]):null)}else{var g=this.getModeForChar(b.charAt(0));mxUtils.bind(this,function(){var k=this.getServiceForName(g);if(null==k)this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var t=this.getCurrentFile();window.location.hash=null!=
-t?t.getHash():""}));else{var m=b.charAt(0);b=decodeURIComponent(b.substring(1));k.getFile(b,mxUtils.bind(this,function(t){this.spinner.stop();this.fileLoaded(t);var y=this.getCurrentFile();if(null==y)window.location.hash="",this.showSplash();else if(this.editor.chromeless&&!this.editor.editable){y.getHash=function(){return m+b};t="#"+y.getHash();try{var z=this.getHashObject();null==z||mxUtils.isEmptyObject(z)||(t=t+"#"+encodeURIComponent(JSON.stringify(z)))}catch(I){}window.location.replace(t)}else t==
-y&&null==t.getMode()&&this.updateStatus(mxUtils.bind(this,function(){var I=mxResources.get("copyCreated");this.editor.setStatus('<div title="'+I+'" class="geStatusAlert">'+I+"</div>")}));null!=c&&c()}),mxUtils.bind(this,function(t){null!=window.console&&null!=t&&console.log("error in loadFile:",b,t);var y=mxUtils.bind(this,function(){var z=this.getCurrentFile();null==z?(window.location.hash="",this.showSplash()):window.location.hash="#"+z.getHash()});null==t||"AbortError"!=t.name?this.handleError(t,
-null!=t?mxResources.get("errorLoadingFile"):null,y,null,null,"#"+m+b):y()}))}})()}}),q=this.getCurrentFile(),v=mxUtils.bind(this,function(){l||null==q||!q.isModified()?p():this.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){null!=q&&(window.location.hash=q.getHash())}),p,mxResources.get("cancel"),mxResources.get("discardChanges"))});null==b||0==b.length?v():null==q||e?v():this.showDialog((new PopupDialog(this,this.getUrl()+"#"+b,null,v)).container,340,140,!0,!0)};
+App.prototype.fileCreated=function(b,e,f,c,l,p){var v=window.location.pathname;null!=e&&0<e.length&&(v+="?libs="+e);null!=l&&0<l.length&&(v+="?clibs="+l);v=this.getUrl(v);b.getMode()!=App.MODE_DEVICE&&(v+="#"+b.getHash());if(this.spinner.spin(document.body,mxResources.get("inserting"))){var t=b.getData();t=0<t.length?this.editor.extractGraphModel(mxUtils.parseXml(t).documentElement,!0):null;var E=window.location.protocol+"//"+window.location.hostname+v,H=t,B=null;null!=t&&/\.svg$/i.test(b.getTitle())&&(B=
+this.createTemporaryGraph(this.editor.graph.getStylesheet()),document.body.appendChild(B.container),H=this.decodeNodeIntoGraph(H,B));b.setData(this.createFileData(t,B,b,E));null!=B&&B.container.parentNode.removeChild(B.container);var d=mxUtils.bind(this,function(){this.spinner.stop()}),g=mxUtils.bind(this,function(){d();var k=this.getCurrentFile();null==f&&null!=k&&(f=!k.isModified()&&null==k.getMode());var m=mxUtils.bind(this,function(){window.openFile=null;this.fileLoaded(b,null,p);f&&this.updateStatus(mxUtils.bind(this,
+function(){b.addAllSavedStatus()}));null!=e&&this.sidebar.showEntries(e);if(null!=l){for(var x=[],A=l.split(";"),I=0;I<A.length;I++)x.push(decodeURIComponent(A[I]));this.loadLibraries(x)}null!=c&&c()}),u=mxUtils.bind(this,function(){f||null==k||!k.isModified()?m():this.confirm(mxResources.get("allChangesLost"),null,m,mxResources.get("cancel"),mxResources.get("discardChanges"))});null==f||f?u():(b.constructor==LocalFile&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(b.getData(),
+b.getTitle(),null==b.getMode())),window.geOpenWindow(v,null,u))});b.constructor==LocalFile?g():b.saveFile(b.getTitle(),!1,mxUtils.bind(this,function(){g()}),mxUtils.bind(this,function(k){d();null!=k&&"AbortError"==k.name||this.handleError(k)}))}};
+App.prototype.loadFile=function(b,e,f,c,l){if("1"==urlParams.openInSameWin||navigator.standalone)e=!0;this.hideDialog();var p=mxUtils.bind(this,function(){if(null==b||0==b.length)this.clearStatus(),this.fileLoaded(null);else if(this.spinner.spin(document.body,mxResources.get("loading")))if("L"==b.charAt(0))if(this.spinner.stop(),isLocalStorage){var E=mxUtils.bind(this,function(k){this.handleError(k,mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var m=this.getCurrentFile();window.location.hash=
+null!=m?m.getHash():""}))});b=decodeURIComponent(b.substring(1));StorageFile.getFileContent(this,b,mxUtils.bind(this,function(k){null!=k?(this.fileLoaded(new StorageFile(this,k,b)),null!=c&&c()):E({message:mxResources.get("fileNotFound")})}),E)}else this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var k=this.getCurrentFile();window.location.hash=null!=k?k.getHash():""}));else if(null!=f)this.spinner.stop(),this.fileLoaded(f),
+null!=c&&c();else if("S"==b.charAt(0))this.spinner.stop(),this.alert("[Deprecation] #S is no longer supported, go to https://app.diagrams.net/?desc="+b.substring(1).substring(0,10),mxUtils.bind(this,function(){window.location.href="https://app.diagrams.net/?desc="+b.substring(1)}));else if("R"==b.charAt(0)){this.spinner.stop();var H=decodeURIComponent(b.substring(1));"<"!=H.charAt(0)&&(H=Graph.decompress(H));H=new LocalFile(this,H,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,
+!0);H.getHash=function(){return b};this.fileLoaded(H);null!=c&&c()}else if("E"==b.charAt(0))null==this.getCurrentFile()?this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile")):this.remoteInvoke("getDraftFileContent",null,null,mxUtils.bind(this,function(k,m){this.spinner.stop();this.fileLoaded(new EmbedFile(this,k,m));null!=c&&c()}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"))}));
+else if("U"==b.charAt(0)){var B=decodeURIComponent(b.substring(1)),d=mxUtils.bind(this,function(){if("https://drive.google.com/uc?id="!=B.substring(0,31)||null==this.drive&&"function"!==typeof window.DriveClient)return!1;this.hideDialog();var k=mxUtils.bind(this,function(){this.spinner.stop();if(null!=this.drive){var m=B.substring(31,B.lastIndexOf("&ex"));this.loadFile("G"+m,e,null,mxUtils.bind(this,function(){var u=this.getCurrentFile();null!=u&&this.editor.chromeless&&!this.editor.editable&&(u.getHash=
+function(){return"G"+m},window.location.hash="#"+u.getHash());null!=c&&c()}));return!0}return!1});!k()&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.addListener("clientLoaded",k);return!0});this.loadTemplate(B,mxUtils.bind(this,function(k){this.spinner.stop();if(null!=k&&0<k.length){var m=this.defaultFilename;if(null==urlParams.title&&"1"!=urlParams.notitle){var u=B,x=B.lastIndexOf("."),A=u.lastIndexOf("/");x>A&&0<A&&(u=u.substring(A+1,x),x=B.substring(x),this.useCanvasForExport||
+".png"!=x||(x=".drawio"),".svg"===x||".xml"===x||".html"===x||".png"===x||".drawio"===x)&&(m=u+x)}k=new LocalFile(this,k,null!=urlParams.title?decodeURIComponent(urlParams.title):m,!0);k.getHash=function(){return b};this.fileLoaded(k,!0)?null!=c&&c():d()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}else d()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}),mxUtils.bind(this,function(){d()||(this.spinner.stop(),
+this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile")))}),null!=urlParams["template-filename"]?decodeURIComponent(urlParams["template-filename"]):null)}else{var g=this.getModeForChar(b.charAt(0));mxUtils.bind(this,function(){var k=this.getServiceForName(g);if(null==k)this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var u=this.getCurrentFile();window.location.hash=null!=
+u?u.getHash():""}));else{var m=b.charAt(0);b=decodeURIComponent(b.substring(1));k.getFile(b,mxUtils.bind(this,function(u){this.spinner.stop();this.fileLoaded(u);var x=this.getCurrentFile();if(null==x)window.location.hash="",this.showSplash();else if(this.editor.chromeless&&!this.editor.editable){x.getHash=function(){return m+b};u="#"+x.getHash();try{var A=this.getHashObject();null==A||mxUtils.isEmptyObject(A)||(u=u+"#"+encodeURIComponent(JSON.stringify(A)))}catch(I){}window.location.replace(u)}else u==
+x&&null==u.getMode()&&this.updateStatus(mxUtils.bind(this,function(){var I=mxResources.get("copyCreated");this.editor.setStatus('<div title="'+I+'" class="geStatusAlert">'+I+"</div>")}));null!=c&&c()}),mxUtils.bind(this,function(u){null!=window.console&&null!=u&&console.log("error in loadFile:",b,u);var x=mxUtils.bind(this,function(){var A=this.getCurrentFile();null==A?(window.location.hash="",this.showSplash()):window.location.hash="#"+A.getHash()});null==u||"AbortError"!=u.name?this.handleError(u,
+null!=u?mxResources.get("errorLoadingFile"):null,x,null,null,"#"+m+b):x()}))}})()}}),v=this.getCurrentFile(),t=mxUtils.bind(this,function(){l||null==v||!v.isModified()?p():this.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){null!=v&&(window.location.hash=v.getHash())}),p,mxResources.get("cancel"),mxResources.get("discardChanges"))});null==b||0==b.length?t():null==v||e?t():this.showDialog((new PopupDialog(this,this.getUrl()+"#"+b,null,t)).container,340,140,!0,!0)};
App.prototype.getLibraryStorageHint=function(b){var e=b.getTitle();b.constructor!=LocalLibrary&&(e+="\n"+b.getHash());b.constructor==DriveLibrary?e+=" ("+mxResources.get("googleDrive")+")":b.constructor==GitHubLibrary?e+=" ("+mxResources.get("github")+")":b.constructor==TrelloLibrary?e+=" ("+mxResources.get("trello")+")":b.constructor==DropboxLibrary?e+=" ("+mxResources.get("dropbox")+")":b.constructor==OneDriveLibrary?e+=" ("+mxResources.get("oneDrive")+")":b.constructor==StorageLibrary?e+=" ("+
mxResources.get("browser")+")":b.constructor==LocalLibrary&&(e+=" ("+mxResources.get("device")+")");return e};App.prototype.restoreLibraries=function(){function b(f){for(var c=0;c<f.length;c++)""!=f[c]&&0>mxUtils.indexOf(e,f[c])&&e.push(f[c])}var e=[];b(mxSettings.getCustomLibraries());b((urlParams.clibs||"").split(";"));this.loadLibraries(e)};
-App.prototype.loadLibraries=function(b,e){if(null!=this.sidebar){null==this.loadedLibraries&&(this.loadedLibraries={});var f=mxUtils.bind(this,function(G,B){B||mxSettings.removeCustomLibrary(G);delete this.loadedLibraries[G]}),c=0,l=[],p=0<b.length&&"L.scratchpad"==b[0]?1:0,q=mxUtils.bind(this,function(){if(0==c){if(null!=b)for(var G=b.length-1;0<=G;G--)null!=l[G]&&this.loadLibrary(l[G],G<=p);null!=e&&e()}});if(null!=b)for(var v=0;v<b.length;v++){var D=encodeURIComponent(decodeURIComponent(b[v]));
-mxUtils.bind(this,function(G,B){if(null!=G&&0<G.length&&null==this.loadedLibraries[G]&&null==this.sidebar.palettes[G]){this.loadedLibraries[G]=!0;c++;var d=mxUtils.bind(this,function(z){l[B]=z;c--;q()}),g=mxUtils.bind(this,function(z){f(G,z);c--;q()}),k=G.substring(0,1);if("L"==k)(isLocalStorage||mxClient.IS_CHROMEAPP)&&window.setTimeout(mxUtils.bind(this,function(){try{var z=decodeURIComponent(G.substring(1));StorageFile.getFileContent(this,z,mxUtils.bind(this,function(I){".scratchpad"==z&&null==
-I&&(I=this.emptyLibraryXml);null!=I?d(new StorageLibrary(this,I,z)):g()}),g)}catch(I){g()}}),0);else if("U"==k){var m=decodeURIComponent(G.substring(1));this.isOffline()?g(!0):this.loadTemplate(m,mxUtils.bind(this,function(z){null!=z&&0<z.length?d(new UrlLibrary(this,z,m)):g()}),function(){g()},null,!0)}else if("R"==k){k=decodeURIComponent(G.substring(1));try{k=JSON.parse(k);var t={id:k[0],title:k[1],downloadUrl:k[2]};this.remoteInvoke("getFileContent",[t.downloadUrl],null,mxUtils.bind(this,function(z){try{d(new RemoteLibrary(this,
-z,t))}catch(I){g()}}),function(){g()})}catch(z){g()}}else if("S"==k&&null!=this.loadDesktopLib)try{this.loadDesktopLib(decodeURIComponent(G.substring(1)),function(z){d(z)},g)}catch(z){g()}else{var y=null;"G"==k?null!=this.drive&&null!=this.drive.user&&(y=this.drive):"H"==k?null!=this.gitHub&&null!=this.gitHub.getUser()&&(y=this.gitHub):"T"==k?null!=this.trello&&this.trello.isAuthorized()&&(y=this.trello):"D"==k?null!=this.dropbox&&null!=this.dropbox.getUser()&&(y=this.dropbox):"W"==k&&null!=this.oneDrive&&
-null!=this.oneDrive.getUser()&&(y=this.oneDrive);null!=y?y.getLibrary(decodeURIComponent(G.substring(1)),mxUtils.bind(this,function(z){try{d(z)}catch(I){g()}}),function(z){g()}):g(!0)}}})(D,v)}q()}};
+App.prototype.loadLibraries=function(b,e){if(null!=this.sidebar){null==this.loadedLibraries&&(this.loadedLibraries={});var f=mxUtils.bind(this,function(H,B){B||mxSettings.removeCustomLibrary(H);delete this.loadedLibraries[H]}),c=0,l=[],p=0<b.length&&"L.scratchpad"==b[0]?1:0,v=mxUtils.bind(this,function(){if(0==c){if(null!=b)for(var H=b.length-1;0<=H;H--)null!=l[H]&&this.loadLibrary(l[H],H<=p);null!=e&&e()}});if(null!=b)for(var t=0;t<b.length;t++){var E=encodeURIComponent(decodeURIComponent(b[t]));
+mxUtils.bind(this,function(H,B){if(null!=H&&0<H.length&&null==this.loadedLibraries[H]&&null==this.sidebar.palettes[H]){this.loadedLibraries[H]=!0;c++;var d=mxUtils.bind(this,function(A){l[B]=A;c--;v()}),g=mxUtils.bind(this,function(A){f(H,A);c--;v()}),k=H.substring(0,1);if("L"==k)(isLocalStorage||mxClient.IS_CHROMEAPP)&&window.setTimeout(mxUtils.bind(this,function(){try{var A=decodeURIComponent(H.substring(1));StorageFile.getFileContent(this,A,mxUtils.bind(this,function(I){".scratchpad"==A&&null==
+I&&(I=this.emptyLibraryXml);null!=I?d(new StorageLibrary(this,I,A)):g()}),g)}catch(I){g()}}),0);else if("U"==k){var m=decodeURIComponent(H.substring(1));this.isOffline()?g(!0):this.loadTemplate(m,mxUtils.bind(this,function(A){null!=A&&0<A.length?d(new UrlLibrary(this,A,m)):g()}),function(){g()},null,!0)}else if("R"==k){k=decodeURIComponent(H.substring(1));try{k=JSON.parse(k);var u={id:k[0],title:k[1],downloadUrl:k[2]};this.remoteInvoke("getFileContent",[u.downloadUrl],null,mxUtils.bind(this,function(A){try{d(new RemoteLibrary(this,
+A,u))}catch(I){g()}}),function(){g()})}catch(A){g()}}else if("S"==k&&null!=this.loadDesktopLib)try{this.loadDesktopLib(decodeURIComponent(H.substring(1)),function(A){d(A)},g)}catch(A){g()}else{var x=null;"G"==k?null!=this.drive&&null!=this.drive.user&&(x=this.drive):"H"==k?null!=this.gitHub&&null!=this.gitHub.getUser()&&(x=this.gitHub):"T"==k?null!=this.trello&&this.trello.isAuthorized()&&(x=this.trello):"D"==k?null!=this.dropbox&&null!=this.dropbox.getUser()&&(x=this.dropbox):"W"==k&&null!=this.oneDrive&&
+null!=this.oneDrive.getUser()&&(x=this.oneDrive);null!=x?x.getLibrary(decodeURIComponent(H.substring(1)),mxUtils.bind(this,function(A){try{d(A)}catch(I){g()}}),function(A){g()}):g(!0)}}})(E,t)}v()}};
App.prototype.updateButtonContainer=function(){if(null!=this.buttonContainer)if(null!=urlParams.notif?this.fetchAndShowNotification(urlParams.notif):"1"!=urlParams.extAuth&&"atlas"!=Editor.currentTheme&&this.fetchAndShowNotification("online",this.mode),this.isStandaloneApp()||"simple"==Editor.currentTheme&&"1"!=urlParams.embed)this.buttonContainer.style.display="none",null!=this.notificationBtn&&this.notificationBtn.parentNode!=this.sketchMenubarElt&&this.sketchMenubarElt.appendChild(this.notificationBtn);
else{this.buttonContainer.style.display="";var b=this.getCurrentFile();null!=this.notificationBtn&&this.notificationBtn.parentNode!=this.buttonContainer&&this.buttonContainer.appendChild(this.notificationBtn);"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&(null==this.commentButton&&(this.commentButton=document.createElement("a"),this.setElementTitle(this.commentButton,"comments"),this.commentButton.className="geButton geRoundButton",this.commentButton.style.backgroundImage="url("+Editor.commentImage+
")",mxEvent.addListener(this.commentButton,"click",mxUtils.bind(this,function(){this.actions.get("comments").funct()})),this.buttonContainer.appendChild(this.commentButton)),this.commentButton.style.display=this.commentsSupported()?"":"none");if(null==this.shareButton){this.shareButton=document.createElement("button");this.shareButton.className="geBtn gePrimaryBtn";var e=document.createElement("div");e.className="geButton";e.style.backgroundImage="url("+Editor.groupImage+")";this.shareButton.appendChild(e);
this.dependsOnLanguage(mxUtils.bind(this,function(){e.innerHTML="";mxUtils.write(e,mxResources.get("share"));this.shareButton.setAttribute("title",mxResources.get("share"))}));mxEvent.addListener(this.shareButton,"click",mxUtils.bind(this,function(){this.actions.get("share").funct()}));this.buttonContainer.appendChild(this.shareButton)}this.shareButton.style.display=null!=b&&"kennedy"==Editor.currentTheme&&"1"!=urlParams.embed?"":"none";if("simple"!=Editor.currentTheme){if(null==this.userButton){this.userButton=
-document.createElement("a");this.userButton.className="geButton geRoundButton";var f=document.createElement("img");this.userButton.appendChild(f);mxEvent.addListener(this.userButton,"click",mxUtils.bind(this,function(v){this.toggleUserPanel();var D=this.userButton.getBoundingClientRect(),G=window.innerWidth||document.documentElement.clientWidth;this.userPanel.style.top=D.bottom+"px";this.userPanel.style.right=G-D.right+"px";mxEvent.consume(v)}));var c=document.createElement("img");c.style.position=
+document.createElement("a");this.userButton.className="geButton geRoundButton";var f=document.createElement("img");this.userButton.appendChild(f);mxEvent.addListener(this.userButton,"click",mxUtils.bind(this,function(t){this.toggleUserPanel();var E=this.userButton.getBoundingClientRect(),H=window.innerWidth||document.documentElement.clientWidth;this.userPanel.style.top=E.bottom+"px";this.userPanel.style.right=H-E.right+"px";mxEvent.consume(t)}));var c=document.createElement("img");c.style.position=
"absolute";c.style.width="10px";this.userButton.appendChild(c);this.buttonContainer.appendChild(this.userButton)}if(!this.unloading){f=this.userButton.getElementsByTagName("img")[0];c=this.userButton.getElementsByTagName("img")[1];var l=mxResources.get("changeUser"),p=this.getMainUser();null!=p&&null!=p.displayName&&(l=p.displayName);null!=p&&null!=p.pictureUrl?(f.classList.remove("geAdaptiveAsset"),f.src=p.pictureUrl,c.style.top="3px",c.style.right="0"):(f.classList.add("geAdaptiveAsset"),f.src=
-Editor.userImage,c.style.top="6px",c.style.right="4px");if(null!=b&&b.isRealtimeEnabled()&&b.isRealtimeSupported()){c.style.display="";f=b.getRealtimeError();var q=b.getRealtimeState();l+=" (";1==q?(c.src=Editor.syncImage,l+=mxResources.get("online")):(c.src=Editor.syncProblemImage,l=null!=f&&null!=f.message?l+f.message:l+mxResources.get("disconnected"));l+=")"}else c.style.display="none",c.src=Editor.cloudImage;this.userButton.setAttribute("title",l);this.userButton.style.display="draw.io"!=this.getServiceName()||
+Editor.userImage,c.style.top="6px",c.style.right="4px");if(null!=b&&b.isRealtimeEnabled()&&b.isRealtimeSupported()){c.style.display="";f=b.getRealtimeError();var v=b.getRealtimeState();l+=" (";1==v?(c.src=Editor.syncImage,l+=mxResources.get("online")):(c.src=Editor.syncProblemImage,l=null!=f&&null!=f.message?l+f.message:l+mxResources.get("disconnected"));l+=")"}else c.style.display="none",c.src=Editor.cloudImage;this.userButton.setAttribute("title",l);this.userButton.style.display="draw.io"!=this.getServiceName()||
null==p||"1"==urlParams.embed||this.isStandaloneApp()||null==b?"none":""}}}};
-App.prototype.fetchAndShowNotification=function(b,e){if(!this.fetchingNotif){b=b||"online";var f=null,c=mxUtils.bind(this,function(l){l=l.filter(function(D){return!D.targets||-1<D.targets.indexOf(b)||null!=e&&-1<D.targets.indexOf(e)});for(var p=b+"NotifReadTS",q=isLocalStorage?parseInt(localStorage.getItem(p)):!0,v=0;v<l.length;v++)l[v].isNew=!q||l[v].timestamp>q;this.showNotification(l,p)});try{isLocalStorage&&(f=JSON.parse(localStorage.getItem(".notifCache")))}catch(l){}null==f||f.ts+864E5<Date.now()?
-(this.fetchingNotif=!0,mxUtils.get(NOTIFICATIONS_URL,mxUtils.bind(this,function(l){if(200<=l.getStatus()&&299>=l.getStatus())try{var p=JSON.parse(l.getText());p.sort(function(q,v){return v.timestamp-q.timestamp});isLocalStorage&&localStorage.setItem(".notifCache",JSON.stringify({ts:Date.now(),notifs:p}));this.fetchingNotif=!1;c(p)}catch(q){}}))):c(f.notifs)}};
-App.prototype.showNotification=function(b,e){function f(G){var B=document.querySelector(".geNotification-count");null!=B&&(B.innerHTML=G,B.style.display=0==G?"none":"",B=document.querySelector(".geNotification-bell"),B.style.animation=0==G?"none":"",B.className="geNotification-bell"+(0==G?" geNotification-bellOff":""),document.querySelector(".geBell-rad").style.animation=0==G?"none":"")}var c=b.length;if("min"==Editor.currentTheme||"simple"==Editor.currentTheme)for(var l=c=0;l<b.length;l++)b[l].isNew&&
-c++;if(0==c)null!=this.notificationBtn&&(this.notificationBtn.style.display="none",this.editor.fireEvent(new mxEventObject("statusChanged")));else{var p=mxUtils.bind(this,function(){this.notificationWin.style.display="none";for(var G=this.notificationWin.querySelectorAll(".circle.active"),B=0;B<G.length;B++)G[B].className="circle";isLocalStorage&&b[0]&&localStorage.setItem(e,b[0].timestamp)});if(null==this.notificationBtn){this.notificationBtn=document.createElement("div");this.notificationBtn.className=
+App.prototype.fetchAndShowNotification=function(b,e){if(!this.fetchingNotif){b=b||"online";var f=null,c=mxUtils.bind(this,function(l){l=l.filter(function(E){return!E.targets||-1<E.targets.indexOf(b)||null!=e&&-1<E.targets.indexOf(e)});for(var p=b+"NotifReadTS",v=isLocalStorage?parseInt(localStorage.getItem(p)):!0,t=0;t<l.length;t++)l[t].isNew=!v||l[t].timestamp>v;this.showNotification(l,p)});try{isLocalStorage&&(f=JSON.parse(localStorage.getItem(".notifCache")))}catch(l){}null==f||f.ts+864E5<Date.now()?
+(this.fetchingNotif=!0,mxUtils.get(NOTIFICATIONS_URL,mxUtils.bind(this,function(l){if(200<=l.getStatus()&&299>=l.getStatus())try{var p=JSON.parse(l.getText());p.sort(function(v,t){return t.timestamp-v.timestamp});isLocalStorage&&localStorage.setItem(".notifCache",JSON.stringify({ts:Date.now(),notifs:p}));this.fetchingNotif=!1;c(p)}catch(v){}}))):c(f.notifs)}};
+App.prototype.showNotification=function(b,e){function f(H){var B=document.querySelector(".geNotification-count");null!=B&&(B.innerHTML=H,B.style.display=0==H?"none":"",B=document.querySelector(".geNotification-bell"),B.style.animation=0==H?"none":"",B.className="geNotification-bell"+(0==H?" geNotification-bellOff":""),document.querySelector(".geBell-rad").style.animation=0==H?"none":"")}var c=b.length;if("min"==Editor.currentTheme||"simple"==Editor.currentTheme)for(var l=c=0;l<b.length;l++)b[l].isNew&&
+c++;if(0==c)null!=this.notificationBtn&&(this.notificationBtn.style.display="none",this.editor.fireEvent(new mxEventObject("statusChanged")));else{var p=mxUtils.bind(this,function(){this.notificationWin.style.display="none";for(var H=this.notificationWin.querySelectorAll(".circle.active"),B=0;B<H.length;B++)H[B].className="circle";isLocalStorage&&b[0]&&localStorage.setItem(e,b[0].timestamp)});if(null==this.notificationBtn){this.notificationBtn=document.createElement("div");this.notificationBtn.className=
"geNotification-box";c=document.createElement("span");c.className="geNotification-count";this.notificationBtn.appendChild(c);this.notifCount=c;c=document.createElement("div");c.className="geNotification-bell";l=document.createElement("span");l.className="geBell-top";c.appendChild(l);l=document.createElement("span");l.className="geBell-middle";c.appendChild(l);l=document.createElement("span");l.className="geBell-bottom";c.appendChild(l);l=document.createElement("span");l.className="geBell-rad";c.appendChild(l);
this.notificationBtn.appendChild(c);this.notificationWin=document.createElement("div");this.notificationWin.className="geNotifPanel";this.notificationWin.style.display="none";document.body.appendChild(this.notificationWin);l=document.createElement("div");l.className="header";c=document.createElement("span");c.className="title";c.textContent=mxResources.get("notifications");l.appendChild(c);c=document.createElement("span");c.className="closeBtn";c.textContent="x";l.appendChild(c);this.notificationWin.appendChild(l);
-l=document.createElement("div");l.className="notifications clearfix";var q=document.createElement("div");q.setAttribute("id","geNotifList");q.style.position="relative";l.appendChild(q);this.notificationWin.appendChild(l);mxEvent.addListener(this.notificationBtn,"click",mxUtils.bind(this,function(){if("none"==this.notificationWin.style.display){this.notificationWin.style.display="";document.querySelector(".notifications").scrollTop=0;var G=this.notificationBtn.getBoundingClientRect();this.notificationWin.style.top=
-G.top+this.notificationBtn.clientHeight+"px";this.notificationWin.style.left=G.right-this.notificationWin.clientWidth+"px";f(0)}else p()}));mxEvent.addListener(c,"click",p)}else this.notificationBtn.style.display="";var v=0,D=document.getElementById("geNotifList");if(null!=D){D.innerHTML='<div class="line"></div>';for(l=0;l<b.length;l++)(function(G,B){B.isNew&&v++;var d=document.createElement("div");d.className="notification";G=G.timeSince(new Date(B.timestamp));null==G&&(G=mxResources.get("lessThanAMinute"));
-d.innerHTML='<div class="circle'+(B.isNew?" active":"")+'"></div><span class="time">'+mxUtils.htmlEntities(mxResources.get("timeAgo",[G],"{1} ago"))+"</span><p>"+mxUtils.htmlEntities(B.content)+"</p>";B.link&&mxEvent.addListener(d,"click",function(){window.open(B.link,"notifWin")});D.appendChild(d)})(this,b[l]);f(v)}}};
-App.prototype.save=function(b,e){var f=this.getCurrentFile(),c=!0,l=mxUtils.bind(this,function(){c&&(c=!1,f.handleFileSuccess(!0),null!=e&&e())}),p=mxUtils.bind(this,function(q){if(c){c=!1;Editor.addRetryToError(q,mxUtils.bind(this,function(){this.save(b,e)}));if(null!=q&&null!=q.retry){var v=q.retry;q.retry=function(){c=!0;try{f.isModified()?v():l()}catch(D){p(D)}}}f.handleFileError(q,null==q||"AbortError"!=q.name)}});if(null!=f&&this.spinner.spin(document.body,mxResources.get("saving"),p,3*this.timeout))try{this.clearStatus(),
-this.editor.graph.isEditing()&&this.editor.graph.stopEditing(),b==f.getTitle()?f.save(!0,l,p):f.saveAs(b,l,p)}catch(q){p(q)}};App.prototype.getExtensionForService=function(b){b=this.getServiceForName(b);return null!=b?b.extension:".drawio"};App.prototype.getServiceForName=function(b){return b==App.MODE_GOOGLE?this.drive:b==App.MODE_ONEDRIVE?this.oneDrive:b==App.MODE_DROPBOX?this.dropbox:b==App.MODE_GITHUB?this.gitHub:b==App.MODE_GITLAB?this.gitLab:b==App.MODE_TRELLO?this.trello:null};
+l=document.createElement("div");l.className="notifications clearfix";var v=document.createElement("div");v.setAttribute("id","geNotifList");v.style.position="relative";l.appendChild(v);this.notificationWin.appendChild(l);mxEvent.addListener(this.notificationBtn,"click",mxUtils.bind(this,function(){if("none"==this.notificationWin.style.display){this.notificationWin.style.display="";document.querySelector(".notifications").scrollTop=0;var H=this.notificationBtn.getBoundingClientRect();this.notificationWin.style.top=
+H.top+this.notificationBtn.clientHeight+"px";this.notificationWin.style.left=H.right-this.notificationWin.clientWidth+"px";f(0)}else p()}));mxEvent.addListener(c,"click",p)}else this.notificationBtn.style.display="";var t=0,E=document.getElementById("geNotifList");if(null!=E){E.innerHTML='<div class="line"></div>';for(l=0;l<b.length;l++)(function(H,B){B.isNew&&t++;var d=document.createElement("div");d.className="notification";H=H.timeSince(new Date(B.timestamp));null==H&&(H=mxResources.get("lessThanAMinute"));
+d.innerHTML='<div class="circle'+(B.isNew?" active":"")+'"></div><span class="time">'+mxUtils.htmlEntities(mxResources.get("timeAgo",[H],"{1} ago"))+"</span><p>"+mxUtils.htmlEntities(B.content)+"</p>";B.link&&mxEvent.addListener(d,"click",function(){window.open(B.link,"notifWin")});E.appendChild(d)})(this,b[l]);f(t)}}};
+App.prototype.save=function(b,e){var f=this.getCurrentFile(),c=!0,l=mxUtils.bind(this,function(){c&&(c=!1,f.handleFileSuccess(!0),null!=e&&e())}),p=mxUtils.bind(this,function(v){if(c){c=!1;Editor.addRetryToError(v,mxUtils.bind(this,function(){this.save(b,e)}));if(null!=v&&null!=v.retry){var t=v.retry;v.retry=function(){c=!0;try{f.isModified()?t():l()}catch(E){p(E)}}}f.handleFileError(v,null==v||"AbortError"!=v.name)}});if(null!=f&&this.spinner.spin(document.body,mxResources.get("saving"),p,3*this.timeout))try{this.clearStatus(),
+this.editor.graph.isEditing()&&this.editor.graph.stopEditing(),b==f.getTitle()?f.save(!0,l,p):f.saveAs(b,l,p)}catch(v){p(v)}};App.prototype.getExtensionForService=function(b){b=this.getServiceForName(b);return null!=b?b.extension:".drawio"};App.prototype.getServiceForName=function(b){return b==App.MODE_GOOGLE?this.drive:b==App.MODE_ONEDRIVE?this.oneDrive:b==App.MODE_DROPBOX?this.dropbox:b==App.MODE_GITHUB?this.gitHub:b==App.MODE_GITLAB?this.gitLab:b==App.MODE_TRELLO?this.trello:null};
App.prototype.getTitleForService=function(b){return b==App.MODE_GOOGLE?mxResources.get("googleDrive"):b==App.MODE_ONEDRIVE?mxResources.get("oneDrive"):EditorUi.prototype.getTitleForService.apply(this,arguments)};
-App.prototype.pickFolder=function(b,e,f,c,l,p){f=null!=f?f:!0;this.spinner=null!=this.spinner?this.spinner:this.createSpinner(null,null,24);var q=this.spinner.pause();f&&b==App.MODE_GOOGLE&&null!=this.drive?this.drive.pickFolder(mxUtils.bind(this,function(v){q();if(v.action==google.picker.Action.PICKED){var D=null;null!=v.docs&&0<v.docs.length&&"folder"==v.docs[0].type&&(D=v.docs[0].id);e(p?v:D)}}),l):f&&b==App.MODE_ONEDRIVE&&null!=this.oneDrive?this.oneDrive.pickFolder(mxUtils.bind(this,function(v){q();
-if(null!=v&&null!=v.value&&0<v.value.length){var D=OneDriveFile.prototype.getIdOf(v.value[0]);e(p?v:D)}}),c):f&&b==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.pickFolder(mxUtils.bind(this,function(v){q();e(v)})):f&&b==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.pickFolder(mxUtils.bind(this,function(v){q();e(v)})):f&&b==App.MODE_TRELLO&&null!=this.trello?this.trello.pickFolder(mxUtils.bind(this,function(v){q();e(v)})):EditorUi.prototype.pickFolder.apply(this,arguments)};
-App.prototype.exportFile=function(b,e,f,c,l,p){l==App.MODE_DROPBOX?null!=this.dropbox&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.dropbox.insertFile(e,c?this.base64ToBlob(b,f):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(q){this.spinner.stop();this.handleError(q)})):l==App.MODE_GOOGLE?null!=this.drive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.drive.insertFile(e,b,p,mxUtils.bind(this,function(q){this.spinner.stop()}),
-mxUtils.bind(this,function(q){this.spinner.stop();this.handleError(q)}),f,c):l==App.MODE_ONEDRIVE?null!=this.oneDrive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.oneDrive.insertFile(e,c?this.base64ToBlob(b,f):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(q){this.spinner.stop();this.handleError(q)}),!1,p):l==App.MODE_GITHUB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitHub.insertFile(e,b,mxUtils.bind(this,
-function(){this.spinner.stop()}),mxUtils.bind(this,function(q){this.spinner.stop();this.handleError(q)}),!0,p,c):l==App.MODE_GITLAB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitLab.insertFile(e,b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(q){this.spinner.stop();this.handleError(q)}),!0,p,c):l==App.MODE_TRELLO?null!=this.trello&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.trello.insertFile(e,c?this.base64ToBlob(b,
-f):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(q){this.spinner.stop();this.handleError(q)}),!1,p):l==App.MODE_BROWSER&&(null!=window.StorageFile&&!c&&this.spinner.spin(document.body,mxResources.get("saving"))?(f="<mxlibrary"==b.substring(0,10)?new StorageLibrary(this,b,e):new StorageFile(this,b,e),StorageFile.doInsertFile(f,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(q){this.spinner.stop();this.handleError(q)}))):(f=mxUtils.bind(this,
+App.prototype.pickFolder=function(b,e,f,c,l,p){f=null!=f?f:!0;this.spinner=null!=this.spinner?this.spinner:this.createSpinner(null,null,24);var v=this.spinner.pause();f&&b==App.MODE_GOOGLE&&null!=this.drive?this.drive.pickFolder(mxUtils.bind(this,function(t){v();if(t.action==google.picker.Action.PICKED){var E=null;null!=t.docs&&0<t.docs.length&&"folder"==t.docs[0].type&&(E=t.docs[0].id);e(p?t:E)}}),l):f&&b==App.MODE_ONEDRIVE&&null!=this.oneDrive?this.oneDrive.pickFolder(mxUtils.bind(this,function(t){v();
+if(null!=t&&null!=t.value&&0<t.value.length){var E=OneDriveFile.prototype.getIdOf(t.value[0]);e(p?t:E)}}),c):f&&b==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.pickFolder(mxUtils.bind(this,function(t){v();e(t)})):f&&b==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.pickFolder(mxUtils.bind(this,function(t){v();e(t)})):f&&b==App.MODE_TRELLO&&null!=this.trello?this.trello.pickFolder(mxUtils.bind(this,function(t){v();e(t)})):EditorUi.prototype.pickFolder.apply(this,arguments)};
+App.prototype.exportFile=function(b,e,f,c,l,p){l==App.MODE_DROPBOX?null!=this.dropbox&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.dropbox.insertFile(e,c?this.base64ToBlob(b,f):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)})):l==App.MODE_GOOGLE?null!=this.drive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.drive.insertFile(e,b,p,mxUtils.bind(this,function(v){this.spinner.stop()}),
+mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)}),f,c):l==App.MODE_ONEDRIVE?null!=this.oneDrive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.oneDrive.insertFile(e,c?this.base64ToBlob(b,f):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)}),!1,p):l==App.MODE_GITHUB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitHub.insertFile(e,b,mxUtils.bind(this,
+function(){this.spinner.stop()}),mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)}),!0,p,c):l==App.MODE_GITLAB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitLab.insertFile(e,b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)}),!0,p,c):l==App.MODE_TRELLO?null!=this.trello&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.trello.insertFile(e,c?this.base64ToBlob(b,
+f):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)}),!1,p):l==App.MODE_BROWSER&&(null!=window.StorageFile&&!c&&this.spinner.spin(document.body,mxResources.get("saving"))?(f="<mxlibrary"==b.substring(0,10)?new StorageLibrary(this,b,e):new StorageFile(this,b,e),StorageFile.doInsertFile(f,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)}))):(f=mxUtils.bind(this,
function(){localStorage.setItem(e,b)}),null==localStorage.getItem(e)?f():this.confirm(mxResources.get("replaceIt",[e]),f)))};
App.prototype.descriptorChanged=function(){var b=this.getCurrentFile();if(null!=b){if(null!=this.fname){this.fname.innerText="";var e=null!=b.getTitle()?b.getTitle():this.defaultFilename;mxUtils.write(this.fname,e)}e=this.editor.graph;var f=b.isEditable();e.isEnabled()&&!f&&e.reset();e.setEnabled(f);null==urlParams.rev&&(this.updateDocumentTitle(),e=b.getHash(),0<e.length?(e!=this.getDiagramId()&&(window.location.hash=e),this.updateHashObject()):0<window.location.hash.length&&(window.location.hash=
""))}this.updateUi();null==this.format||null!=b&&this.fileEditable==b.isEditable()||!this.editor.graph.isSelectionEmpty()||(this.format.refresh(),this.fileEditable=null!=b?b.isEditable():null);this.fireEvent(new mxEventObject("fileDescriptorChanged","file",b))};
-App.prototype.showAuthDialog=function(b,e,f,c){var l=this.spinner.pause();this.showDialog((new AuthDialog(this,b,e,mxUtils.bind(this,function(p){try{null!=f&&f(p,mxUtils.bind(this,function(){this.hideDialog();l()}))}catch(q){this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(q.message))}))}}))).container,300,e?180:140,!0,!0,mxUtils.bind(this,function(p){null!=c&&c(p);p&&null==this.getCurrentFile()&&null==this.dialog&&this.showSplash()}))};
-App.prototype.convertFile=function(b,e,f,c,l,p,q,v){var D=e;/\.svg$/i.test(D)||(D=D.substring(0,e.lastIndexOf("."))+c);var G=!1;null!=this.gitHub&&b.substring(0,this.gitHub.baseUrl.length)==this.gitHub.baseUrl&&(G=!0);if(/\.v(dx|sdx?)$/i.test(e)&&Graph.fileSupport&&(new XMLHttpRequest).upload&&"string"===typeof(new XMLHttpRequest).responseType){var B=new XMLHttpRequest;B.open("GET",b,!0);G||(B.responseType="blob");if(v)for(var d in v)B.setRequestHeader(d,v[d]);B.onload=mxUtils.bind(this,function(){if(200<=
-B.status&&299>=B.status){var k=null;G?(k=JSON.parse(B.responseText),k=this.base64ToBlob(k.content,"application/octet-stream")):k=new Blob([B.response],{type:"application/octet-stream"});this.importVisio(k,mxUtils.bind(this,function(m){l(new LocalFile(this,m,D,!0))}),p,e)}else null!=p&&p({message:mxResources.get("errorLoadingFile")})});B.onerror=p;B.send()}else{var g=mxUtils.bind(this,function(k){try{if(/\.pdf$/i.test(e)){var m=Editor.extractGraphModelFromPdf(k);null!=m&&0<m.length&&l(new LocalFile(this,
-m,D,!0))}else/\.png$/i.test(e)?(m=this.extractGraphModelFromPng(k),null!=m?l(new LocalFile(this,m,D,!0)):l(new LocalFile(this,k,e,!0))):Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(k,b)?this.parseFileData(k,mxUtils.bind(this,function(t){4==t.readyState&&(200<=t.status&&299>=t.status?l(new LocalFile(this,t.responseText,D,!0)):null!=p&&p({message:mxResources.get("errorLoadingFile")}))}),e):l(new LocalFile(this,k,D,!0))}catch(t){null!=p&&p(t)}});f=/\.png$/i.test(e)||/\.jpe?g$/i.test(e)||
-/\.pdf$/i.test(e)||null!=f&&"image/"==f.substring(0,6);G?mxUtils.get(b,mxUtils.bind(this,function(k){if(200<=k.getStatus()&&299>=k.getStatus()){if(null!=l){k=JSON.parse(k.getText());var m=k.content;"base64"===k.encoding&&(m=/\.png$/i.test(e)?"data:image/png;base64,"+m:/\.pdf$/i.test(e)?"data:application/pdf;base64,"+m:!window.atob||mxClient.IS_IE||mxClient.IS_IE11?Base64.decode(m):atob(m));g(m)}}else null!=p&&p({code:App.ERROR_UNKNOWN})}),function(){null!=p&&p({code:App.ERROR_UNKNOWN})},!1,this.timeout,
-function(){null!=p&&p({code:App.ERROR_TIMEOUT,retry:fn})},v):null!=q?q(b,g,p,f):this.editor.loadUrl(b,g,p,f,null,null,null,v)}};
-App.prototype.updateHeader=function(){if(null!=this.menubar){var b="url("+Editor.logoImage+")";this.appIcon=document.createElement("a");this.appIcon.className="geAppIcon";this.appIcon.style.backgroundImage=b;mxEvent.disableContextMenu(this.appIcon);mxEvent.addListener(this.appIcon,"click",mxUtils.bind(this,function(q){this.appIconClicked(q)}));mxEvent.addListener(this.appIcon,"mouseover",mxUtils.bind(this,function(){var q=this.getCurrentFile();null!=q&&(q=q.getMode(),q==App.MODE_GOOGLE?(this.appIcon.style.backgroundImage=
-"url("+IMAGE_PATH+"/google-drive-logo-white.svg)",this.appIcon.style.backgroundSize="70%"):q==App.MODE_DROPBOX?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/dropbox-logo-white.svg)",this.appIcon.style.backgroundSize="70%"):q==App.MODE_ONEDRIVE?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/onedrive-logo-white.svg)",this.appIcon.style.backgroundSize="70%"):q==App.MODE_GITHUB?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/github-logo-white.svg)",this.appIcon.style.backgroundSize=
-"70%"):q==App.MODE_GITLAB?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/gitlab-logo-white.svg)",this.appIcon.style.backgroundSize="90%"):q==App.MODE_TRELLO&&(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/trello-logo-white-orange.svg)",this.appIcon.style.backgroundSize="70%"))}));mxEvent.addListener(this.appIcon,"mouseout",mxUtils.bind(this,function(){this.appIcon.style.backgroundImage=b;this.appIcon.style.backgroundSize=""}));"1"!=urlParams.embed&&this.menubarContainer.appendChild(this.appIcon);
-this.fnameWrapper=document.createElement("div");this.fname=document.createElement("a");this.fnameWrapper.className="geFilenameContainer";this.fname.className="geFilename";mxEvent.addListener(this.fname,"click",mxUtils.bind(this,function(q){var v=this.getCurrentFile();null!=v&&v.isRenamable()&&(this.editor.graph.isEditing()&&this.editor.graph.stopEditing(),this.actions.get("rename").funct());mxEvent.consume(q)}));mxEvent.preventDefault(this.fname);this.fnameWrapper.appendChild(this.fname);"1"!=urlParams.embed&&
-this.menubarContainer.appendChild(this.fnameWrapper);var e=document.createElement("div");e.className="geToolbar geToolbarEnd";this.toolbarContainer.appendChild(e);var f=document.createElement("a");f.style.backgroundImage="url('"+Editor.fullscreenImage+"')";f.className="geButton";e.appendChild(f);mxEvent.addListener(f,"click",mxUtils.bind(this,function(q){var v=this.fullscreenMode;"atlas"!=Editor.currentTheme&&"1"!=urlParams.embed&&this.setCompactMode(!v,null,Editor.transitionDelay);this.toggleShapesPanel(v);
-this.toggleFormatPanel(v);this.fullscreenMode=!v;f.style.backgroundImage="url('"+(this.fullscreenMode?Editor.fullscreenExitImage:Editor.fullscreenImage)+"')";mxEvent.consume(q)}));mxEvent.preventDefault(f);var c=document.createElement("a");c.className="geButton";e.appendChild(c);mxEvent.addListener(c,"click",mxUtils.bind(this,function(q){this.actions.get("format").funct();mxEvent.consume(q)}));mxEvent.preventDefault(c);var l=mxUtils.bind(this,function(){c.style.backgroundImage=0<this.formatWidth?
-"url('"+Editor.rightPanelCloseImage+"')":"url('"+Editor.rightPanelOpenImage+"')"});this.addListener("formatWidthChanged",l);l();var p=document.createElement("a");p.style.backgroundImage="url('"+(this.compactMode?Editor.chevronDownImage:Editor.chevronUpImage)+"')";p.className="geButton";"1"!=urlParams.embed&&"atlas"!=Editor.currentTheme&&(e.appendChild(p),mxEvent.addListener(p,"click",mxUtils.bind(this,function(q){this.setCompactMode(!this.compactMode,!0,Editor.transitionDelay);mxEvent.consume(q)})),
+App.prototype.showAuthDialog=function(b,e,f,c){var l=this.spinner.pause();this.showDialog((new AuthDialog(this,b,e,mxUtils.bind(this,function(p){try{null!=f&&f(p,mxUtils.bind(this,function(){this.hideDialog();l()}))}catch(v){this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(v.message))}))}}))).container,300,e?180:140,!0,!0,mxUtils.bind(this,function(p){null!=c&&c(p);p&&null==this.getCurrentFile()&&null==this.dialog&&this.showSplash()}))};
+App.prototype.convertFile=function(b,e,f,c,l,p,v,t){var E=e;/\.svg$/i.test(E)||(E=E.substring(0,e.lastIndexOf("."))+c);var H=!1;null!=this.gitHub&&b.substring(0,this.gitHub.baseUrl.length)==this.gitHub.baseUrl&&(H=!0);if(/\.v(dx|sdx?)$/i.test(e)&&Graph.fileSupport&&(new XMLHttpRequest).upload&&"string"===typeof(new XMLHttpRequest).responseType){var B=new XMLHttpRequest;B.open("GET",b,!0);H||(B.responseType="blob");if(t)for(var d in t)B.setRequestHeader(d,t[d]);B.onload=mxUtils.bind(this,function(){if(200<=
+B.status&&299>=B.status){var k=null;H?(k=JSON.parse(B.responseText),k=this.base64ToBlob(k.content,"application/octet-stream")):k=new Blob([B.response],{type:"application/octet-stream"});this.importVisio(k,mxUtils.bind(this,function(m){l(new LocalFile(this,m,E,!0))}),p,e)}else null!=p&&p({message:mxResources.get("errorLoadingFile")})});B.onerror=p;B.send()}else{var g=mxUtils.bind(this,function(k){try{if(/\.pdf$/i.test(e)){var m=Editor.extractGraphModelFromPdf(k);null!=m&&0<m.length&&l(new LocalFile(this,
+m,E,!0))}else/\.png$/i.test(e)?(m=this.extractGraphModelFromPng(k),null!=m?l(new LocalFile(this,m,E,!0)):l(new LocalFile(this,k,e,!0))):Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(k,b)?this.parseFileData(k,mxUtils.bind(this,function(u){4==u.readyState&&(200<=u.status&&299>=u.status?l(new LocalFile(this,u.responseText,E,!0)):null!=p&&p({message:mxResources.get("errorLoadingFile")}))}),e):l(new LocalFile(this,k,E,!0))}catch(u){null!=p&&p(u)}});f=/\.png$/i.test(e)||/\.jpe?g$/i.test(e)||
+/\.pdf$/i.test(e)||null!=f&&"image/"==f.substring(0,6);H?mxUtils.get(b,mxUtils.bind(this,function(k){if(200<=k.getStatus()&&299>=k.getStatus()){if(null!=l){k=JSON.parse(k.getText());var m=k.content;"base64"===k.encoding&&(m=/\.png$/i.test(e)?"data:image/png;base64,"+m:/\.pdf$/i.test(e)?"data:application/pdf;base64,"+m:!window.atob||mxClient.IS_IE||mxClient.IS_IE11?Base64.decode(m):atob(m));g(m)}}else null!=p&&p({code:App.ERROR_UNKNOWN})}),function(){null!=p&&p({code:App.ERROR_UNKNOWN})},!1,this.timeout,
+function(){null!=p&&p({code:App.ERROR_TIMEOUT,retry:fn})},t):null!=v?v(b,g,p,f):this.editor.loadUrl(b,g,p,f,null,null,null,t)}};
+App.prototype.updateHeader=function(){if(null!=this.menubar){var b="url("+Editor.logoImage+")";this.appIcon=document.createElement("a");this.appIcon.className="geAppIcon";this.appIcon.style.backgroundImage=b;mxEvent.disableContextMenu(this.appIcon);mxEvent.addListener(this.appIcon,"click",mxUtils.bind(this,function(v){this.appIconClicked(v)}));mxEvent.addListener(this.appIcon,"mouseover",mxUtils.bind(this,function(){var v=this.getCurrentFile();null!=v&&(v=v.getMode(),v==App.MODE_GOOGLE?(this.appIcon.style.backgroundImage=
+"url("+IMAGE_PATH+"/google-drive-logo-white.svg)",this.appIcon.style.backgroundSize="70%"):v==App.MODE_DROPBOX?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/dropbox-logo-white.svg)",this.appIcon.style.backgroundSize="70%"):v==App.MODE_ONEDRIVE?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/onedrive-logo-white.svg)",this.appIcon.style.backgroundSize="70%"):v==App.MODE_GITHUB?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/github-logo-white.svg)",this.appIcon.style.backgroundSize=
+"70%"):v==App.MODE_GITLAB?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/gitlab-logo-white.svg)",this.appIcon.style.backgroundSize="90%"):v==App.MODE_TRELLO&&(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/trello-logo-white-orange.svg)",this.appIcon.style.backgroundSize="70%"))}));mxEvent.addListener(this.appIcon,"mouseout",mxUtils.bind(this,function(){this.appIcon.style.backgroundImage=b;this.appIcon.style.backgroundSize=""}));"1"!=urlParams.embed&&this.menubarContainer.appendChild(this.appIcon);
+this.fnameWrapper=document.createElement("div");this.fname=document.createElement("a");this.fnameWrapper.className="geFilenameContainer";this.fname.className="geFilename";mxEvent.addListener(this.fname,"click",mxUtils.bind(this,function(v){var t=this.getCurrentFile();null!=t&&t.isRenamable()&&(this.editor.graph.isEditing()&&this.editor.graph.stopEditing(),this.actions.get("rename").funct());mxEvent.consume(v)}));mxEvent.preventDefault(this.fname);this.fnameWrapper.appendChild(this.fname);"1"!=urlParams.embed&&
+this.menubarContainer.appendChild(this.fnameWrapper);var e=document.createElement("div");e.className="geToolbar geToolbarEnd";this.toolbarContainer.appendChild(e);var f=document.createElement("a");f.style.backgroundImage="url('"+Editor.fullscreenImage+"')";f.className="geButton";e.appendChild(f);mxEvent.addListener(f,"click",mxUtils.bind(this,function(v){var t=this.fullscreenMode;"atlas"!=Editor.currentTheme&&"1"!=urlParams.embed&&this.setCompactMode(!t,null,Editor.transitionDelay);this.toggleShapesPanel(t);
+this.toggleFormatPanel(t);this.fullscreenMode=!t;f.style.backgroundImage="url('"+(this.fullscreenMode?Editor.fullscreenExitImage:Editor.fullscreenImage)+"')";mxEvent.consume(v)}));mxEvent.preventDefault(f);var c=document.createElement("a");c.className="geButton";e.appendChild(c);mxEvent.addListener(c,"click",mxUtils.bind(this,function(v){this.actions.get("format").funct();mxEvent.consume(v)}));mxEvent.preventDefault(c);var l=mxUtils.bind(this,function(){c.style.backgroundImage=0<this.formatWidth?
+"url('"+Editor.rightPanelCloseImage+"')":"url('"+Editor.rightPanelOpenImage+"')"});this.addListener("formatWidthChanged",l);l();var p=document.createElement("a");p.style.backgroundImage="url('"+(this.compactMode?Editor.chevronDownImage:Editor.chevronUpImage)+"')";p.className="geButton";"1"!=urlParams.embed&&"atlas"!=Editor.currentTheme&&(e.appendChild(p),mxEvent.addListener(p,"click",mxUtils.bind(this,function(v){this.setCompactMode(!this.compactMode,!0,Editor.transitionDelay);mxEvent.consume(v)})),
mxEvent.preventDefault(p),!mxClient.IS_FF&&740>=screen.height&&"undefined"!==typeof p.click&&window.setTimeout(mxUtils.bind(this,function(){p.click()}),0),this.addListener("compactModeChanged",mxUtils.bind(this,function(){p.style.backgroundImage="url('"+(this.compactMode?Editor.chevronDownImage:Editor.chevronUpImage)+"')"})));this.dependsOnLanguage(mxUtils.bind(this,function(){this.fname.setAttribute("title",mxResources.get("rename"));f.setAttribute("title",mxResources.get("fullscreen"));p.setAttribute("title",
mxResources.get("collapseExpand"));c.setAttribute("title",mxResources.get("format")+" ("+Editor.ctrlKey+"+Shift+P)")}))}};
App.prototype.setCompactMode=function(b,e,f){var c=mxUtils.isAncestorNode(document.body,this.container)||null==this.editor?this.container:this.editor.graph.container;f=null!=f?f:0;window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.menubarContainer.style,"transition","all "+f+"s ease-in-out");mxUtils.setPrefixedStyle(this.toolbarContainer.style,"transition","all "+f+"s ease-in-out");b?c.classList.add("geCompactMode"):c.classList.remove("geCompactMode");window.setTimeout(mxUtils.bind(this,
function(){mxUtils.setPrefixedStyle(this.menubarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.toolbarContainer.style,"transition",null);this.compactMode=b;this.refresh(!0);this.fireEvent(new mxEventObject("compactModeChanged"));isLocalStorage&&e&&(mxSettings.settings.compactMode=this.compactMode,mxSettings.save())}),1E3*f)}),0)};
App.prototype.getMainUser=function(){var b=null;null!=this.drive&&null!=this.drive.getUser()?b=this.drive.getUser():null!=this.oneDrive&&null!=this.oneDrive.getUser()?b=this.oneDrive.getUser():null!=this.dropbox&&null!=this.dropbox.getUser()?b=this.dropbox.getUser():null!=this.gitHub&&null!=this.gitHub.getUser()?b=this.gitHub.getUser():null!=this.gitLab&&null!=this.gitLab.getUser()&&(b=this.gitLab.getUser());return b};
App.prototype.hideUserPanel=function(){null!=this.userPanel&&null!=this.userPanel.parentNode&&this.userPanel.parentNode.removeChild(this.userPanel)};
-App.prototype.toggleUserPanel=function(){if(null==this.userPanel){var b=document.createElement("div");b.className="geDialog geInlineDialog";b.style.minWidth="300px";this.userPanel=b;mxEvent.addListener(document.body,"click",mxUtils.bind(this,function(q){mxEvent.isConsumed(q)||this.hideUserPanel()}))}if(null!=this.userPanel.parentNode)this.userPanel.parentNode.removeChild(this.userPanel);else{var e=!1;this.userPanel.innerText="";b=document.createElement("div");b.className="geButton";b.setAttribute("title",
-mxResources.get("close"));b.style.backgroundImage="url("+Editor.crossImage+")";b.style.position="absolute";b.style.right="0px";mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.hideUserPanel()}));this.userPanel.appendChild(b);if(null!=this.drive){var f=this.drive.getUsersList();if(0<f.length){var c=mxUtils.bind(this,function(q,v){var D=this.getCurrentFile();null!=D&&D.constructor==DriveFile?(this.spinner.spin(document.body,v),this.fileLoaded(null),window.setTimeout(mxUtils.bind(this,
-function(){this.spinner.stop();q()}),2E3)):q()});b=mxUtils.bind(this,function(q){var v=document.createElement("tr"),D=document.createElement("td");D.setAttribute("valig","middle");D.style.height="59px";D.style.width="66px";var G=document.createElement("img");G.setAttribute("width","50");G.setAttribute("height","50");G.setAttribute("border","0");G.setAttribute("src",null!=q.pictureUrl?q.pictureUrl:Editor.userImage);G.style.borderRadius="50%";G.style.margin="4px 8px 0 8px";D.appendChild(G);v.appendChild(D);
-D=document.createElement("td");D.setAttribute("valign","middle");D.style.whiteSpace="nowrap";D.style.paddingTop="4px";D.style.maxWidth="0";D.style.overflow="hidden";D.style.textOverflow="ellipsis";mxUtils.write(D,q.displayName+(q.isCurrent&&1<f.length?" ("+mxResources.get("default")+")":""));null!=q.email&&(mxUtils.br(D),G=document.createElement("small"),G.style.color="gray",mxUtils.write(G,q.email),D.appendChild(G));G=document.createElement("div");G.style.marginTop="4px";var B=document.createElement("i");
-mxUtils.write(B,mxResources.get("googleDrive"));G.appendChild(B);D.appendChild(G);v.appendChild(D);q.isCurrent?v.setAttribute("title","User ID: "+q.id):(v.setAttribute("title",mxResources.get("login")+" (User ID: "+q.id+")"),v.style.cursor="pointer",v.style.opacity="0.3",mxEvent.addListener(v,"mouseenter",mxUtils.bind(this,function(){v.style.opacity="1"})),mxEvent.addListener(v,"mouseleave",mxUtils.bind(this,function(){v.style.opacity="0.3"})),mxEvent.addListener(v,"click",mxUtils.bind(this,function(d){this.hideUserPanel();
-c(mxUtils.bind(this,function(){this.stateArg=null;this.drive.setUser(q);this.drive.authorize(!0,mxUtils.bind(this,function(){this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxUtils.bind(this,function(g){this.handleError(g)}),!0)}),mxResources.get("changeUser")+"...");mxEvent.consume(d)})));return v});e=!0;var l=document.createElement("table");l.style.borderSpacing="0";l.style.fontSize="10pt";l.style.width="100%";l.style.padding="10px";for(var p=0;p<f.length;p++)l.appendChild(b(f[p]));
+App.prototype.toggleUserPanel=function(){if(null==this.userPanel){var b=document.createElement("div");b.className="geDialog geInlineDialog";b.style.minWidth="300px";this.userPanel=b;mxEvent.addListener(document.body,"click",mxUtils.bind(this,function(v){mxEvent.isConsumed(v)||this.hideUserPanel()}))}if(null!=this.userPanel.parentNode)this.userPanel.parentNode.removeChild(this.userPanel);else{var e=!1;this.userPanel.innerText="";b=document.createElement("div");b.className="geButton";b.setAttribute("title",
+mxResources.get("close"));b.style.backgroundImage="url("+Editor.crossImage+")";b.style.position="absolute";b.style.right="0px";mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.hideUserPanel()}));this.userPanel.appendChild(b);if(null!=this.drive){var f=this.drive.getUsersList();if(0<f.length){var c=mxUtils.bind(this,function(v,t){var E=this.getCurrentFile();null!=E&&E.constructor==DriveFile?(this.spinner.spin(document.body,t),this.fileLoaded(null),window.setTimeout(mxUtils.bind(this,
+function(){this.spinner.stop();v()}),2E3)):v()});b=mxUtils.bind(this,function(v){var t=document.createElement("tr"),E=document.createElement("td");E.setAttribute("valig","middle");E.style.height="59px";E.style.width="66px";var H=document.createElement("img");H.setAttribute("width","50");H.setAttribute("height","50");H.setAttribute("border","0");H.setAttribute("src",null!=v.pictureUrl?v.pictureUrl:Editor.userImage);H.style.borderRadius="50%";H.style.margin="4px 8px 0 8px";E.appendChild(H);t.appendChild(E);
+E=document.createElement("td");E.setAttribute("valign","middle");E.style.whiteSpace="nowrap";E.style.paddingTop="4px";E.style.maxWidth="0";E.style.overflow="hidden";E.style.textOverflow="ellipsis";mxUtils.write(E,v.displayName+(v.isCurrent&&1<f.length?" ("+mxResources.get("default")+")":""));null!=v.email&&(mxUtils.br(E),H=document.createElement("small"),H.style.color="gray",mxUtils.write(H,v.email),E.appendChild(H));H=document.createElement("div");H.style.marginTop="4px";var B=document.createElement("i");
+mxUtils.write(B,mxResources.get("googleDrive"));H.appendChild(B);E.appendChild(H);t.appendChild(E);v.isCurrent?t.setAttribute("title","User ID: "+v.id):(t.setAttribute("title",mxResources.get("login")+" (User ID: "+v.id+")"),t.style.cursor="pointer",t.style.opacity="0.3",mxEvent.addListener(t,"mouseenter",mxUtils.bind(this,function(){t.style.opacity="1"})),mxEvent.addListener(t,"mouseleave",mxUtils.bind(this,function(){t.style.opacity="0.3"})),mxEvent.addListener(t,"click",mxUtils.bind(this,function(d){this.hideUserPanel();
+c(mxUtils.bind(this,function(){this.stateArg=null;this.drive.setUser(v);this.drive.authorize(!0,mxUtils.bind(this,function(){this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxUtils.bind(this,function(g){this.handleError(g)}),!0)}),mxResources.get("changeUser")+"...");mxEvent.consume(d)})));return t});e=!0;var l=document.createElement("table");l.style.borderSpacing="0";l.style.fontSize="10pt";l.style.width="100%";l.style.padding="10px";for(var p=0;p<f.length;p++)l.appendChild(b(f[p]));
this.userPanel.appendChild(l);b=document.createElement("div");b.style.textAlign="left";b.style.padding="10px";b.style.whiteSpace="nowrap";b.style.borderTopStyle="solid";b.style.borderTopWidth="1px";l=mxUtils.button(mxResources.get("signOut"),mxUtils.bind(this,function(){this.confirm(mxResources.get("areYouSure"),mxUtils.bind(this,function(){c(mxUtils.bind(this,function(){this.stateArg=null;this.drive.logout();this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxResources.get("signOut"))}))}));
-l.className="geBtn";l.style.float="right";b.appendChild(l);l=mxUtils.button(mxResources.get("addAccount"),mxUtils.bind(this,function(){var q=this.drive.createAuthWin();q.blur();window.focus();c(mxUtils.bind(this,function(){this.stateArg=null;this.drive.authorize(!1,mxUtils.bind(this,function(){this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxUtils.bind(this,function(v){this.handleError(v)}),!0,q)}),mxResources.get("closingFile")+"...")}));l.className="geBtn";l.style.margin="0px";
-b.appendChild(l);this.userPanel.appendChild(b)}}b=mxUtils.bind(this,function(q,v,D,G){if(null!=q){e&&this.userPanel.appendChild(document.createElement("hr"));e=!0;var B=document.createElement("table");B.style.borderSpacing="0";B.style.fontSize="10pt";B.style.width="100%";B.style.padding="10px";var d=document.createElement("tbody"),g=document.createElement("tr"),k=document.createElement("td");k.setAttribute("valig","top");k.style.width="40px";if(null!=v){var m=document.createElement("img");m.setAttribute("width",
-"40");m.setAttribute("height","40");m.setAttribute("border","0");m.setAttribute("src",v);m.style.marginRight="6px";k.appendChild(m)}g.appendChild(k);k=document.createElement("td");k.setAttribute("valign","middle");k.style.whiteSpace="nowrap";k.style.maxWidth="0";k.style.overflow="hidden";k.style.textOverflow="ellipsis";mxUtils.write(k,q.displayName);null!=q.email&&(mxUtils.br(k),v=document.createElement("small"),v.style.color="gray",mxUtils.write(v,q.email),k.appendChild(v));null!=G&&(q=document.createElement("div"),
-q.style.marginTop="4px",v=document.createElement("i"),mxUtils.write(v,G),q.appendChild(v),k.appendChild(q));g.appendChild(k);d.appendChild(g);B.appendChild(d);this.userPanel.appendChild(B);q=document.createElement("div");q.style.textAlign="center";q.style.padding="10px";q.style.whiteSpace="nowrap";null!=D&&(D=mxUtils.button(mxResources.get("signOut"),D),D.className="geBtn",q.appendChild(D));this.userPanel.appendChild(q)}});null!=this.dropbox&&b(this.dropbox.getUser(),IMAGE_PATH+"/dropbox-logo.svg",
-mxUtils.bind(this,function(){var q=this.getCurrentFile();if(null!=q&&q.constructor==DropboxFile){var v=mxUtils.bind(this,function(){this.dropbox.logout();window.location.hash=""});q.isModified()?this.confirm(mxResources.get("allChangesLost"),null,v,mxResources.get("cancel"),mxResources.get("discardChanges")):v()}else this.dropbox.logout()}),mxResources.get("dropbox"));null!=this.oneDrive&&b(this.oneDrive.getUser(),IMAGE_PATH+"/onedrive-logo.svg",this.oneDrive.noLogout?null:mxUtils.bind(this,function(){var q=
-this.getCurrentFile();if(null!=q&&q.constructor==OneDriveFile){var v=mxUtils.bind(this,function(){this.oneDrive.logout();window.location.hash=""});q.isModified()?this.confirm(mxResources.get("allChangesLost"),null,v,mxResources.get("cancel"),mxResources.get("discardChanges")):v()}else this.oneDrive.logout()}),mxResources.get("oneDrive"));null!=this.gitHub&&b(this.gitHub.getUser(),IMAGE_PATH+"/github-logo.svg",mxUtils.bind(this,function(){var q=this.getCurrentFile();if(null!=q&&q.constructor==GitHubFile){var v=
-mxUtils.bind(this,function(){this.gitHub.logout();window.location.hash=""});q.isModified()?this.confirm(mxResources.get("allChangesLost"),null,v,mxResources.get("cancel"),mxResources.get("discardChanges")):v()}else this.gitHub.logout()}),mxResources.get("github"));null!=this.gitLab&&b(this.gitLab.getUser(),IMAGE_PATH+"/gitlab-logo.svg",mxUtils.bind(this,function(){var q=this.getCurrentFile();if(null!=q&&q.constructor==GitLabFile){var v=mxUtils.bind(this,function(){this.gitLab.logout();window.location.hash=
-""});q.isModified()?this.confirm(mxResources.get("allChangesLost"),null,v,mxResources.get("cancel"),mxResources.get("discardChanges")):v()}else this.gitLab.logout()}),mxResources.get("gitlab"));null!=this.trello&&b(this.trello.getUser(),IMAGE_PATH+"/trello-logo.svg",mxUtils.bind(this,function(){var q=this.getCurrentFile();if(null!=q&&q.constructor==TrelloFile){var v=mxUtils.bind(this,function(){this.trello.logout();window.location.hash=""});q.isModified()?this.confirm(mxResources.get("allChangesLost"),
-null,v,mxResources.get("cancel"),mxResources.get("discardChanges")):v()}else this.trello.logout()}),mxResources.get("trello"));"min"==uiTheme&&(l=this.getCurrentFile(),null!=l&&l.isRealtimeEnabled()&&l.isRealtimeSupported()&&(b=document.createElement("div"),b.style.padding="10px",b.style.whiteSpace="nowrap",b.style.borderTop="1px solid rgb(224, 224, 224)",b.style.marginTop="4px",b.style.textAlign="center",b.style.padding="10px",b.style.fontSize="9pt",p=l.getRealtimeError(),1!=l.getRealtimeState()&&
+l.className="geBtn";l.style.float="right";b.appendChild(l);l=mxUtils.button(mxResources.get("addAccount"),mxUtils.bind(this,function(){var v=this.drive.createAuthWin();v.blur();window.focus();c(mxUtils.bind(this,function(){this.stateArg=null;this.drive.authorize(!1,mxUtils.bind(this,function(){this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxUtils.bind(this,function(t){this.handleError(t)}),!0,v)}),mxResources.get("closingFile")+"...")}));l.className="geBtn";l.style.margin="0px";
+b.appendChild(l);this.userPanel.appendChild(b)}}b=mxUtils.bind(this,function(v,t,E,H){if(null!=v){e&&this.userPanel.appendChild(document.createElement("hr"));e=!0;var B=document.createElement("table");B.style.borderSpacing="0";B.style.fontSize="10pt";B.style.width="100%";B.style.padding="10px";var d=document.createElement("tbody"),g=document.createElement("tr"),k=document.createElement("td");k.setAttribute("valig","top");k.style.width="40px";if(null!=t){var m=document.createElement("img");m.setAttribute("width",
+"40");m.setAttribute("height","40");m.setAttribute("border","0");m.setAttribute("src",t);m.style.marginRight="6px";k.appendChild(m)}g.appendChild(k);k=document.createElement("td");k.setAttribute("valign","middle");k.style.whiteSpace="nowrap";k.style.maxWidth="0";k.style.overflow="hidden";k.style.textOverflow="ellipsis";mxUtils.write(k,v.displayName);null!=v.email&&(mxUtils.br(k),t=document.createElement("small"),t.style.color="gray",mxUtils.write(t,v.email),k.appendChild(t));null!=H&&(v=document.createElement("div"),
+v.style.marginTop="4px",t=document.createElement("i"),mxUtils.write(t,H),v.appendChild(t),k.appendChild(v));g.appendChild(k);d.appendChild(g);B.appendChild(d);this.userPanel.appendChild(B);v=document.createElement("div");v.style.textAlign="center";v.style.padding="10px";v.style.whiteSpace="nowrap";null!=E&&(E=mxUtils.button(mxResources.get("signOut"),E),E.className="geBtn",v.appendChild(E));this.userPanel.appendChild(v)}});null!=this.dropbox&&b(this.dropbox.getUser(),IMAGE_PATH+"/dropbox-logo.svg",
+mxUtils.bind(this,function(){var v=this.getCurrentFile();if(null!=v&&v.constructor==DropboxFile){var t=mxUtils.bind(this,function(){this.dropbox.logout();window.location.hash=""});v.isModified()?this.confirm(mxResources.get("allChangesLost"),null,t,mxResources.get("cancel"),mxResources.get("discardChanges")):t()}else this.dropbox.logout()}),mxResources.get("dropbox"));null!=this.oneDrive&&b(this.oneDrive.getUser(),IMAGE_PATH+"/onedrive-logo.svg",this.oneDrive.noLogout?null:mxUtils.bind(this,function(){var v=
+this.getCurrentFile();if(null!=v&&v.constructor==OneDriveFile){var t=mxUtils.bind(this,function(){this.oneDrive.logout();window.location.hash=""});v.isModified()?this.confirm(mxResources.get("allChangesLost"),null,t,mxResources.get("cancel"),mxResources.get("discardChanges")):t()}else this.oneDrive.logout()}),mxResources.get("oneDrive"));null!=this.gitHub&&b(this.gitHub.getUser(),IMAGE_PATH+"/github-logo.svg",mxUtils.bind(this,function(){var v=this.getCurrentFile();if(null!=v&&v.constructor==GitHubFile){var t=
+mxUtils.bind(this,function(){this.gitHub.logout();window.location.hash=""});v.isModified()?this.confirm(mxResources.get("allChangesLost"),null,t,mxResources.get("cancel"),mxResources.get("discardChanges")):t()}else this.gitHub.logout()}),mxResources.get("github"));null!=this.gitLab&&b(this.gitLab.getUser(),IMAGE_PATH+"/gitlab-logo.svg",mxUtils.bind(this,function(){var v=this.getCurrentFile();if(null!=v&&v.constructor==GitLabFile){var t=mxUtils.bind(this,function(){this.gitLab.logout();window.location.hash=
+""});v.isModified()?this.confirm(mxResources.get("allChangesLost"),null,t,mxResources.get("cancel"),mxResources.get("discardChanges")):t()}else this.gitLab.logout()}),mxResources.get("gitlab"));null!=this.trello&&b(this.trello.getUser(),IMAGE_PATH+"/trello-logo.svg",mxUtils.bind(this,function(){var v=this.getCurrentFile();if(null!=v&&v.constructor==TrelloFile){var t=mxUtils.bind(this,function(){this.trello.logout();window.location.hash=""});v.isModified()?this.confirm(mxResources.get("allChangesLost"),
+null,t,mxResources.get("cancel"),mxResources.get("discardChanges")):t()}else this.trello.logout()}),mxResources.get("trello"));"min"==uiTheme&&(l=this.getCurrentFile(),null!=l&&l.isRealtimeEnabled()&&l.isRealtimeSupported()&&(b=document.createElement("div"),b.style.padding="10px",b.style.whiteSpace="nowrap",b.style.borderTop="1px solid rgb(224, 224, 224)",b.style.marginTop="4px",b.style.textAlign="center",b.style.padding="10px",b.style.fontSize="9pt",p=l.getRealtimeError(),1!=l.getRealtimeState()&&
(mxUtils.write(b,mxResources.get("realtimeCollaboration")+": "+(null!=p&&null!=p.message?p.message:mxResources.get("disconnected"))),this.userPanel.appendChild(b))));document.body.appendChild(this.userPanel)}};
App.prototype.getCurrentUser=function(){var b=null;null!=this.drive&&null!=this.drive.getUser()?b=this.drive.getUser():null!=this.oneDrive&&null!=this.oneDrive.getUser()?b=this.oneDrive.getUser():null!=this.dropbox&&null!=this.dropbox.getUser()?b=this.dropbox.getUser():null!=this.gitHub&&null!=this.gitHub.getUser()&&(b=this.gitHub.getUser());return b};var editorResetGraph=Editor.prototype.resetGraph;
Editor.prototype.resetGraph=function(){editorResetGraph.apply(this,arguments);null==this.graph.defaultPageFormat&&(this.graph.pageFormat=mxSettings.getPageFormat())};(function(){var b=mxPopupMenu.prototype.showMenu;mxPopupMenu.prototype.showMenu=function(){this.div.style.overflowY="auto";this.div.style.overflowX="hidden";this.div.style.maxHeight=Math.max(document.body.clientHeight,document.documentElement.clientHeight)-(EditorUi.isElectronApp?50:10)+"px";b.apply(this,arguments)};Menus.prototype.createHelpLink=function(f){return this.editorUi.createHelpIcon(f)};Menus.prototype.addLinkToItem=function(f,c){null!=f&&f.firstChild.nextSibling.appendChild(this.createHelpLink(c))};
Menus.prototype.removeCustomFont=function(f,c){for(var l=0;l<this.customFonts.length;l++)if(this.customFonts[l].name==f&&this.customFonts[l].url==c){this.customFonts.splice(l,1);this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts));break}};Menus.prototype.containsFont=function(f,c){for(var l=0;l<this.customFonts.length;l++)if(this.customFonts[l].name==f&&this.customFonts[l].url==c)return!0;for(l=0;l<this.defaultFonts.length;l++){var p=this.defaultFonts[l];
-if("string"!==typeof p&&p.fontFamily==f&&p.fontUrl==c||"string"===typeof p&&p==f&&null==c)return!0}return!1};Menus.prototype.addCustomFont=function(f,c){null==f||this.containsFont(f,c)||(this.customFonts.push({name:f,url:c}),this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts)))};var e=Menus.prototype.init;Menus.prototype.init=function(){function f(u,x,J){c.isExportToCanvas()?c.showExportDialog(mxResources.get("image"),!1,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",
-mxUtils.bind(this,function(H,K,N,M,n,A,E,L,O,R,T,U,W){var X=parseInt(H);!isNaN(X)&&0<X&&(c.exportImage(X/100,K&&"png"==u,N,M,n&&"png"==u,E,!L,O,u,T,null,U,W),null!=J&&J(H,K,N,M,n,A,E,L,O,R,T,U,W))}),!0,x,u,!0):c.isOffline()||mxClient.IS_IOS&&navigator.standalone||c.showRemoteExportDialog(mxResources.get("export"),null,mxUtils.bind(this,function(H,K,N,M,n){c.downloadFile(K&&"png"==u?"xmlpng":u,null,null,H,null,null,N,M,n)}),!1,!0)}e.apply(this,arguments);var c=this.editorUi,l=c.editor.graph,p=mxUtils.bind(l,
-l.isEnabled);"1"==urlParams.noFileMenu&&(this.defaultMenuItems=this.defaultMenuItems.filter(function(u){return"file"!=u}));c.actions.addAction("new...",function(){var u=c.isOffline(),x=new NewDialog(c,u,!(c.mode==App.MODE_DEVICE&&"chooseFileSystemEntries"in window));c.showDialog(x.container,u?350:620,u?70:460,!0,!0,function(J){null!=c.sidebar&&c.sidebar.hideTooltip();J&&null==c.getCurrentFile()&&c.showSplash()});x.init()});c.actions.put("insertTemplate",new Action("template...",function(){if(l.isEnabled()&&
-!l.isCellLocked(l.getDefaultParent())){var u=new NewDialog(c,null,!1,function(x){c.hideDialog();if(null!=x){var J=c.editor.graph.getFreeInsertPoint();l.setSelectionCells(c.importXml(x,Math.max(J.x,20),Math.max(J.y,20),!0,null,null,!0));l.scrollCellToVisible(l.getSelectionCell())}},null,null,null,null,null,null,null,null,null,null,!1,mxResources.get("insert"));c.showDialog(u.container,620,460,!0,!0,function(){c.sidebar.hideTooltip()});u.init()}})).isEnabled=p;var q=c.actions.addAction("shareCursor",
-function(){c.setShareCursorPosition(!c.isShareCursorPosition())});q.setToggleAction(!0);q.setSelectedCallback(function(){return c.isShareCursorPosition()});q=c.actions.addAction("showRemoteCursors",function(){c.setShowRemoteCursors(!c.isShowRemoteCursors())});q.setToggleAction(!0);q.setSelectedCallback(function(){return c.isShowRemoteCursors()});q=c.actions.addAction("points",function(){c.editor.graph.view.setUnit(mxConstants.POINTS)});q.setToggleAction(!0);q.setSelectedCallback(function(){return c.editor.graph.view.unit==
-mxConstants.POINTS});q=c.actions.addAction("inches",function(){c.editor.graph.view.setUnit(mxConstants.INCHES)});q.setToggleAction(!0);q.setSelectedCallback(function(){return c.editor.graph.view.unit==mxConstants.INCHES});q=c.actions.addAction("millimeters",function(){c.editor.graph.view.setUnit(mxConstants.MILLIMETERS)});q.setToggleAction(!0);q.setSelectedCallback(function(){return c.editor.graph.view.unit==mxConstants.MILLIMETERS});q=c.actions.addAction("meters",function(){c.editor.graph.view.setUnit(mxConstants.METERS)});
-q.setToggleAction(!0);q.setSelectedCallback(function(){return c.editor.graph.view.unit==mxConstants.METERS});this.put("units",new Menu(mxUtils.bind(this,function(u,x){this.addMenuItems(u,["points","inches","millimeters","meters"],x);"min"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme||c.menus.addMenuItems(u,["-","pageScale"],x)})));q=c.actions.addAction("pageTabs",function(){c.setTabContainerVisible(!c.isTabContainerVisible(),!0)});q.setToggleAction(!0);q.setSelectedCallback(function(){return c.isTabContainerVisible()});
-q=c.actions.addAction("ruler",function(){c.setRulerVisible(!c.isRulerVisible())});q.setEnabled(c.canvasSupported&&9!=document.documentMode);q.setToggleAction(!0);q.setSelectedCallback(function(){return c.isRulerVisible()});q=c.actions.addAction("fullscreen",function(){"1"==urlParams.embedInline?c.setInlineFullscreen(!Editor.inlineFullscreen):null==document.fullscreenElement?document.body.requestFullscreen():document.exitFullscreen()});q.visible="1"==urlParams.embedInline||window==window.top&&document.fullscreenEnabled&&
-null!=document.body.requestFullscreen;q.setToggleAction(!0);q.setSelectedCallback(function(){return"1"==urlParams.embedInline?Editor.inlineFullscreen:null!=document.fullscreenElement});q=c.actions.put("lightMode",new Action("light",function(u){c.setAndPersistDarkMode(!1)}));q.setToggleAction(!0);q.setSelectedCallback(function(){return!c.isAutoDarkMode(!0)&&!Editor.isDarkMode()});q=c.actions.put("darkMode",new Action("dark",function(u){c.setAndPersistDarkMode(!0)}));q.setToggleAction(!0);q.setSelectedCallback(function(){return!c.isAutoDarkMode(!0)&&
-Editor.isDarkMode()});q=c.actions.put("autoMode",new Action("automatic",function(u){c.setAndPersistDarkMode("auto")}));q.setToggleAction(!0);q.setSelectedCallback(function(){return c.isAutoDarkMode(!0)});c.actions.addAction("properties...",function(){c.getPublicUrl(c.getCurrentFile(),function(u){u=new FilePropertiesDialog(c,u);c.showDialog(u.container,340,200,!0,!0);u.init()})}).isEnabled=p;window.mxFreehand&&(c.actions.put("insertFreehand",new Action("freehand...",function(){if(l.isEnabled()){if(null==
-c.freehandWindow){var u=!mxClient.IS_IE&&!mxClient.IS_IE11;c.freehandWindow=new FreehandWindow(c,document.body.offsetWidth-420,102,176,u?126:90,u)}l.freehand.isDrawing()?l.freehand.stopDrawing():l.freehand.startDrawing();c.freehandWindow.window.setVisible(!0)}},null,null,"X")).isEnabled=function(){return p()&&mxClient.IS_SVG});c.actions.put("exportXml",new Action("formatXml...",function(){var u=document.createElement("div");u.style.whiteSpace="nowrap";var x=null==c.pages||1>=c.pages.length,J=document.createElement("h3");
-mxUtils.write(J,mxResources.get("formatXml"));J.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";u.appendChild(J);var H=c.addCheckbox(u,mxResources.get("selectionOnly"),!1,l.isSelectionEmpty()),K=c.addCheckbox(u,mxResources.get("compressed"),Editor.defaultCompressed),N=c.addCheckbox(u,mxResources.get("allPages"),!x,x);N.style.marginBottom="16px";mxEvent.addListener(H,"change",function(){H.checked?N.setAttribute("disabled","disabled"):N.removeAttribute("disabled")});u=
-new CustomDialog(c,u,mxUtils.bind(this,function(){c.downloadFile("xml",!K.checked,null,!H.checked,x||!N.checked)}),null,mxResources.get("export"));c.showDialog(u.container,300,200,!0,!0)}));Editor.enableExportUrl&&c.actions.put("exportUrl",new Action("url...",function(){c.showPublishLinkDialog(mxResources.get("url"),null,null,null,null,null,null,null,function(u,x,J,H,K,N,M,n,A,E,L,O){M=[];H&&A&&M.push("tags=%7B%7D");u=new EmbedDialog(c,c.createLink(u,x,!0,H,K,N,null,!0,M,null,J,null,O));c.showDialog(u.container,
-450,240,!0,!0);u.init()},null,!0)}));c.actions.put("exportHtml",new Action("formatHtmlEmbedded...",function(){c.getPublicUrl(c.getCurrentFile(),function(u){c.showHtmlDialog(mxResources.get("export"),null,u,function(x,J,H,K,N,M,n,A,E,L,O,R){c.createHtml(x,J,H,K,N,M,n,A,E,L,O,mxUtils.bind(this,function(T,U){var W=c.getBaseFilename(n);T='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n<!DOCTYPE html>\n<html>\n<head>\n<title>'+mxUtils.htmlEntities(W)+'</title>\n<meta charset="utf-8"/>\n</head>\n<body>'+
-T+"\n"+U+"\n</body>\n</html>";c.saveData(W+(".drawio"==W.substring(W.lenth-7)?"":".drawio")+".html","html",T,"text/html")}),R)})})}));c.actions.put("exportPdf",new Action("formatPdf...",function(){c.showPrintDialog(mxResources.get("formatPdf"),EditorUi.isElectronApp||!c.isOffline()&&!c.printPdfExport?mxUtils.bind(this,function(u,x){u=null!=c.pages?c.pages.length:1;var J=null==c.pages||1>=c.pages.length,H=c.getPageIndex(c.currentPage);H=null!=H?H+1:1;c.downloadFile("pdf",null,null,!x.selection,J||
-!x.allPages&&x.pagesFrom==H&&x.pagesTo==H,!x.crop,x.transparent,x.scale,null,x.grid,x.includeCopy,x.allPages||x.pagesFrom==H&&x.pagesTo==H?null:{from:Math.max(0,Math.min(u-1,x.pagesFrom-1)),to:Math.max(0,Math.min(u-1,x.pagesTo-1))},x.border,x.fit,x.sheetsAcross,x.sheetsDown)}):null,mxResources.get("export"))}));c.actions.addAction("open...",function(){c.pickFile()});c.actions.addAction("close",function(){function u(){null!=x&&x.removeDraft();c.fileLoaded(null)}var x=c.getCurrentFile();null!=x&&x.isModified()?
-c.confirm(mxResources.get("allChangesLost"),null,u,mxResources.get("cancel"),mxResources.get("discardChanges")):u()});c.actions.addAction("editShape...",mxUtils.bind(this,function(){l.getSelectionCells();if(1==l.getSelectionCount()){var u=l.getSelectionCell(),x=l.view.getState(u);null!=x&&null!=x.shape&&null!=x.shape.stencil&&(u=new EditShapeDialog(c,u,mxResources.get("editShape")+":",630,400),c.showDialog(u.container,640,480,!0,!1),u.init())}}));c.actions.addAction("revisionHistory...",function(){c.isRevisionHistorySupported()?
-c.spinner.spin(document.body,mxResources.get("loading"))&&c.getRevisions(mxUtils.bind(this,function(u,x){c.spinner.stop();u=new RevisionDialog(c,u,x);c.showDialog(u.container,640,480,!0,!0);u.init()}),mxUtils.bind(this,function(u){c.handleError(null!=u?u:mxResources.get("notAvailable"))})):c.showError(mxResources.get("error"),mxResources.get("notAvailable"),mxResources.get("ok"))});c.actions.addAction("createRevision",function(){c.actions.get("save").funct()},null,null,Editor.ctrlKey+"+S");q=c.actions.addAction("synchronize",
-function(){c.synchronizeCurrentFile("none"==DrawioFile.SYNC)},null,null,"Alt+Shift+S");"none"==DrawioFile.SYNC&&(q.label=mxResources.get("refresh"));c.actions.addAction("upload...",function(){var u=c.getCurrentFile();null!=u&&(window.drawdata=c.getFileData(),u=null!=u.getTitle()?u.getTitle():c.defaultFilename,c.openLink(window.location.protocol+"//"+window.location.host+"/?create=drawdata&"+(c.mode==App.MODE_DROPBOX?"mode=dropbox&":"")+"title="+encodeURIComponent(u),null,!0))});"undefined"!==typeof MathJax&&
-(q=c.actions.addAction("mathematicalTypesetting",function(){var u=new ChangePageSetup(c);u.ignoreColor=!0;u.ignoreImage=!0;u.mathEnabled=!c.isMathEnabled();l.model.execute(u)}),q.setToggleAction(!0),q.setSelectedCallback(function(){return c.isMathEnabled()}),q.isEnabled=p);q=c.actions.put("defaultAdaptiveColors",new Action("defaultAdaptiveColors",function(){var u=new ChangePageSetup(c);u.ignoreColor=!0;u.ignoreImage=!0;u.adaptiveColors="default";l.model.execute(u)}));q.getTitle=function(){return mxResources.get("default")+
-" ("+mxResources.get(Graph.getDefaultAdaptiveColorsKey())+")"};q.setToggleAction(!0);q.setSelectedCallback(function(){return null==l.adaptiveColors});q=c.actions.put("automaticAdaptiveColors",new Action("automatic",function(){var u=new ChangePageSetup(c);u.ignoreColor=!0;u.ignoreImage=!0;u.adaptiveColors="auto";l.model.execute(u)}));q.setToggleAction(!0);q.setSelectedCallback(function(){return"auto"==l.adaptiveColors});q=c.actions.put("simpleAdaptiveColors",new Action("simple",function(){var u=new ChangePageSetup(c);
-u.ignoreColor=!0;u.ignoreImage=!0;u.adaptiveColors="simple";l.model.execute(u)}));q.setToggleAction(!0);q.setSelectedCallback(function(){return"simple"==l.adaptiveColors});q=c.actions.put("noAdaptiveColors",new Action("none",function(){var u=new ChangePageSetup(c);u.ignoreColor=!0;u.ignoreImage=!0;u.adaptiveColors="none";l.model.execute(u)}));q.setToggleAction(!0);q.setSelectedCallback(function(){return"none"==l.adaptiveColors});this.put("adaptiveColors",new Menu(mxUtils.bind(this,function(u,x){this.addMenuItems(u,
-["defaultAdaptiveColors","-","automaticAdaptiveColors","simpleAdaptiveColors","noAdaptiveColors"],x)})));isLocalStorage&&(q=c.actions.addAction("showStartScreen",function(){mxSettings.setShowStartScreen(!mxSettings.getShowStartScreen());mxSettings.save()}),q.setToggleAction(!0),q.setSelectedCallback(function(){return mxSettings.getShowStartScreen()}));var v=c.actions.addAction("autosave",function(){c.editor.setAutosave(!c.editor.autosave)});v.setToggleAction(!0);v.setSelectedCallback(function(){return v.isEnabled()&&
-c.editor.autosave});c.actions.addAction("editGeometry...",function(){for(var u=l.getSelectionCells(),x=[],J=0;J<u.length;J++)l.getModel().isVertex(u[J])&&x.push(u[J]);0<x.length&&(u=new EditGeometryDialog(c,x),c.showDialog(u.container,200,270,!0,!0),u.init())},null,null,Editor.ctrlKey+"+Shift+M");c.actions.addAction("copyStyle",function(){if(l.isEnabled()&&1==l.getSelectionCount()){var u=l.getSelectionCell(),x=l.getCellStyle(u,!1);c.copiedStyle={};var J=[],H=[],K;for(K in x)J.push(x[K]),H.push(K);
-l.copyCellStyles([u],H,J,c.copiedStyle,c.copiedStyle,null,null,null,!0)}},null,null,"Alt+C");c.actions.addAction("pasteStyle",function(){l.isEnabled()&&!l.isSelectionEmpty()&&null!=c.copiedStyle&&l.pasteCellStyles(l.includeDescendants(l.getSelectionCells()),c.copiedStyle,c.copiedStyle,!0)},null,null,"Alt+V");c.actions.put("exportSvg",new Action("formatSvg...",function(){c.showExportDialog(mxResources.get("formatSvg"),!0,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,
-function(u,x,J,H,K,N,M,n,A,E,L,O,R,T){u=parseInt(u);c.lastExportSvgEditable=K;!isNaN(u)&&0<u&&c.exportSvg(u/100,x,J,H,K,N,M,!n,A,E,O,R,T)}),!0,c.lastExportSvgEditable,"svg",!0)}));c.actions.put("exportPng",new Action("formatPng...",function(){f("png",c.lastExportPngEditable,function(u,x,J,H,K){c.lastExportPngEditable=K})}));c.actions.put("exportJpg",new Action("formatJpg...",function(){f("jpeg")}));c.actions.put("exportWebp",new Action("formatWebp...",function(){f("webp")}));q=c.actions.addAction("copyAsImage",
-mxUtils.bind(this,function(){var u=mxUtils.sortCells(l.model.getTopmostCells(l.getSelectionCells())),x=mxUtils.getXml(0==u.length?c.editor.getGraphXml():l.encodeCells(u));c.copyImage(u,x)}),null,null,"Ctrl+Alt+X");q.visible=Editor.enableNativeCipboard&&c.isExportToCanvas()&&!mxClient.IS_SF;q=c.actions.put("shadowVisible",new Action("shadow",function(){l.setShadowVisible(!l.shadowVisible)}));q.setToggleAction(!0);q.setSelectedCallback(function(){return l.shadowVisible});c.actions.put("about",new Action("v"+
-EditorUi.VERSION,function(u,x){c.isOwnDomain()&&mxEvent.isShiftDown(x)&&("1"==urlParams.test?(EditorUi.debug("Debug output disabled"),urlParams.test="0"):(urlParams.test="1",EditorUi.debug("Debug output enabled")))}));c.actions.addAction("support...",function(){EditorUi.isElectronApp?c.openLink("https://github.com/jgraph/drawio-desktop/wiki/Getting-Support"):c.openLink("https://github.com/jgraph/drawio/wiki/Getting-Support")});c.actions.addAction("exportOptionsDisabled...",function(){c.handleError({message:mxResources.get("exportOptionsDisabledDetails")},
-mxResources.get("exportOptionsDisabled"))});c.actions.addAction("keyboardShortcuts...",function(){!mxClient.IS_SVG||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?c.openLink("https://viewer.diagrams.net/#Uhttps%3A%2F%2Fviewer.diagrams.net%2Fshortcuts.svg"):c.openLink("shortcuts.svg")});c.actions.addAction("feedback...",function(){var u=new FeedbackDialog(c);c.showDialog(u.container,610,360,!0,!1);u.init()});c.actions.addAction("quickStart...",function(){"ac.draw.io"===window.location.hostname?c.openLink("https://www.youtube.com/watch?v=s5BG0705MHU"):
-c.openLink("https://www.youtube.com/watch?v=Z0D96ZikMkc")});q=c.actions.addAction("tags",mxUtils.bind(this,function(){null==this.tagsWindow?(this.tagsWindow=new TagsWindow(c,document.body.offsetWidth-400,60,212,200),this.tagsWindow.window.addListener("show",mxUtils.bind(this,function(){c.fireEvent(new mxEventObject("tags"))})),this.tagsWindow.window.addListener("hide",function(){c.fireEvent(new mxEventObject("tags"))}),this.tagsWindow.window.setVisible(!0),c.fireEvent(new mxEventObject("tags"))):
-this.tagsWindow.window.setVisible(!this.tagsWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+K");q.setToggleAction(!0);q.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.tagsWindow&&this.tagsWindow.window.isVisible()}));null==Editor.gptApiKey||null==Editor.gptModel||null==Editor.gptUrl||c.isOffline()||EditorUi.isElectronApp||(q=c.actions.addAction("chatWindowTitle",mxUtils.bind(this,function(){null==this.chatWindow?(this.chatWindow=new ChatWindow(c,220,document.body.offsetHeight-
-380,250,320),this.chatWindow.window.addListener("show",mxUtils.bind(this,function(){c.fireEvent(new mxEventObject("chat"))})),this.chatWindow.window.addListener("hide",function(){c.fireEvent(new mxEventObject("chat"))}),this.chatWindow.window.setVisible(!0),c.fireEvent(new mxEventObject("chat"))):this.chatWindow.window.setVisible(!this.chatWindow.window.isVisible())})),q.setToggleAction(!0),q.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.chatWindow&&this.chatWindow.window.isVisible()})));
-q=c.actions.addAction("findReplace",mxUtils.bind(this,function(u,x){var J=(u=l.isEnabled()&&(null==x||!mxEvent.isShiftDown(x)))?"findReplace":"find";x=J+"Window";if(null==this[x]){var H="min"==Editor.currentTheme||"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,K=u?H?330:300:240;this[x]=new FindWindow(c,document.body.offsetWidth-(K+20),100,K,u?H?304:288:170,u);this[x].window.addListener("show",function(){c.fireEvent(new mxEventObject(J))});this[x].window.addListener("hide",function(){c.fireEvent(new mxEventObject(J))})}this[x].window.setVisible(!0);
-this[x].focus()}),null,null,Editor.ctrlKey+"+F");q=new Action("exportVsdx",function(){var u=null==c.pages||1>=c.pages.length;if(u)c.exportVisio();else{var x=document.createElement("div");x.style.whiteSpace="nowrap";var J=document.createElement("h3");mxUtils.write(J,mxResources.get("formatVsdx"));J.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";x.appendChild(J);var H=c.addCheckbox(x,mxResources.get("allPages"),!u,u);H.style.marginBottom="16px";u=new CustomDialog(c,x,
-mxUtils.bind(this,function(){c.exportVisio(!H.checked)}),null,mxResources.get("export"));c.showDialog(u.container,300,130,!0,!0)}});q.getTitle=function(){return mxResources.get("formatVsdx")+" (beta)..."};c.actions.put("exportVsdx",q);isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&c.actions.addAction("configuration...",function(){var u=document.createElement("input");u.setAttribute("type","checkbox");u.style.marginRight="8px";u.checked=mxSettings.getShowStartScreen();u.defaultChecked=u.checked;
-if(Editor.isSettingsEnabled()&&("sketch"==Editor.currentTheme||"simple"==Editor.currentTheme||"min"==Editor.currentTheme)){var x=document.createElement("span");x.style.display="flex";x.style.alignItems="center";x.style.cssFloat="right";x.style.cursor="pointer";x.style.userSelect="none";x.style.marginTop="-3px";x.appendChild(u);mxUtils.write(x,mxResources.get("showStartScreen"));mxEvent.addListener(x,"click",function(H){mxEvent.getSource(H)!=u&&(u.checked=!u.checked)});header=x}x=[[mxResources.get("reset"),
-function(){c.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),c.hideDialog(),c.alert(mxResources.get("restartForChangeRequired"))}catch(H){c.handleError(H)}})}]];if(!c.isOfflineApp()&&isLocalStorage&&c.mode!=App.MODE_ATLAS){var J=c.actions.get("plugins");null==J||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||x.push([mxResources.get("plugins"),J.funct])}EditorUi.isElectronApp||x.push([mxResources.get("link"),
-function(H,K){if(0<K.value.length)try{var N=JSON.parse(K.value),M=window.location.protocol+"//"+window.location.host+"/"+c.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(N)),n=new EmbedDialog(c,M);c.showDialog(n.container,450,240,!0);n.init()}catch(A){c.handleError(A)}else c.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=c.getServiceName()&&"1"!=urlParams.embed&&x.push([mxResources.get("preferences"),function(){c.showLocalStorageDialog(mxResources.get("preferences")+
-":",Editor.settingsKey,[[mxResources.get("reset"),function(){c.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config"),c.hideDialog(),c.alert(mxResources.get("restartForChangeRequired"))}catch(H){c.handleError(H)}})}]])}]);c.showLocalStorageDialog(mxResources.get("configuration")+":",Editor.configurationKey,x,u.parentNode,"https://www.drawio.com/doc/faq/configure-diagram-editor",function(){null!=u.parentNode&&(mxSettings.setShowStartScreen(u.checked),
-mxSettings.save())})});(mxClient.IS_CHROMEAPP||isLocalStorage)&&this.put("language",new Menu(mxUtils.bind(this,function(u,x){var J=mxLanguage;null==urlParams.lang&&isLocalStorage&&(J=mxSettings.settings.language);var H=mxUtils.bind(this,function(N){var M=""==N?mxResources.get("automatic"):mxLanguageMap[N],n=null;""!=M&&(n=u.addItem(M,null,mxUtils.bind(this,function(){c.setAndPersistLanguage(N)}),x),(N==J||""==N&&null==J)&&u.addCheckmark(n,Editor.checkmarkImage));return n});H("");u.addSeparator(x);
-for(var K in mxLanguageMap)H(K)})));c.customLayoutConfig=[{layout:"mxHierarchicalLayout",config:{orientation:"west",intraCellSpacing:30,interRankCellSpacing:100,interHierarchySpacing:60,parallelEdgeSpacing:10}}];c.actions.addAction("runLayout",function(){c.showCustomLayoutDialog(JSON.stringify(c.customLayoutConfig,null,2))});c.actions.put("adaptiveColors",new Action("adaptiveColors",function(u){null==c.adaptiveColorsWindow&&(c.adaptiveColorsWindow=new AdaptiveColorsWindow(c,document.body.offsetWidth-
-520,80,200,160));c.adaptiveColorsWindow.window.setVisible(!0)}));q=this.get("viewZoom");var D=q.funct;q.funct=mxUtils.bind(this,function(u,x){D.apply(this,arguments);"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(u,["-","outline","fullscreen"],x)});q=this.get("layout");var G=q.funct;q.funct=function(u,x){G.apply(this,arguments);u.addItem(mxResources.get("orgChart"),null,function(){var J=null,H=20,K=20,N=function(){"undefined"!==typeof mxOrgChartLayout&&null!=J&&c.tryAndHandle(mxUtils.bind(this,
-function(){var T=c.editor.graph,U=new mxOrgChartLayout(T,J,H,K),W=T.getDefaultParent();1<T.model.getChildCount(T.getSelectionCell())&&(W=T.getSelectionCell());U.execute(W)}))},M=document.createElement("div"),n=document.createElement("div");n.style.marginTop="6px";n.style.display="inline-block";n.style.width="180px";mxUtils.write(n,mxResources.get("orgChartType")+": ");M.appendChild(n);var A=document.createElement("select");A.style.width="160px";A.style.boxSizing="border-box";n=[mxResources.get("linear"),
-mxResources.get("hanger2"),mxResources.get("hanger4"),mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),mxResources.get("smart")];for(var E=0;E<n.length;E++){var L=document.createElement("option");mxUtils.write(L,n[E]);L.value=E;2==E&&L.setAttribute("selected","selected");A.appendChild(L)}mxEvent.addListener(A,"change",function(){J=A.value});M.appendChild(A);n=document.createElement("div");n.style.marginTop="6px";n.style.display=
-"inline-block";n.style.width="180px";mxUtils.write(n,mxResources.get("parentChildSpacing")+": ");M.appendChild(n);var O=document.createElement("input");O.type="number";O.value=H;O.style.width="160px";O.style.boxSizing="border-box";M.appendChild(O);mxEvent.addListener(O,"change",function(){H=O.value});n=document.createElement("div");n.style.marginTop="6px";n.style.display="inline-block";n.style.width="180px";mxUtils.write(n,mxResources.get("siblingSpacing")+": ");M.appendChild(n);var R=document.createElement("input");
-R.type="number";R.value=K;R.style.width="160px";R.style.boxSizing="border-box";M.appendChild(R);mxEvent.addListener(R,"change",function(){K=R.value});n=mxUtils.button(mxResources.get("custom")+"...",function(){var T=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(A.value),parentChildSpacing:parseInt(O.value),siblingSpacing:parseInt(R.value)}}];c.hideDialog();c.showCustomLayoutDialog(JSON.stringify(T,null,2))});n.className="geBtn";M=new CustomDialog(c,M,function(){null==J&&(J=2);c.loadOrgChartLayouts(N)},
-null,null,null,n);c.showDialog(M.container,355,140,!0,!0)},x,null,p());u.addSeparator(x);u.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){c.tryAndHandle(mxUtils.bind(this,function(){var J=new mxParallelEdgeLayout(l);J.checkOverlap=!0;c.prompt(mxResources.get("spacing"),J.spacing,mxUtils.bind(this,function(H){c.tryAndHandle(mxUtils.bind(this,function(){J.spacing=H;c.executeLayout(function(){J.execute(l.getDefaultParent(),l.isSelectionEmpty()?null:l.getSelectionCells())},!1)}))}))}))}),
-x);u.addSeparator(x);c.menus.addMenuItem(u,"runLayout",x,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(u,x){if(!mxClient.IS_CHROMEAPP&&c.isOffline())this.addMenuItems(u,["keyboardShortcuts","-","about"],x);else{var J=u.addItem("Search:",null,null,x,null,null,!1);J.style.cursor="default";var H=document.createElement("input");H.setAttribute("type","text");H.setAttribute("size","25");H.style.borderWidth="1px";H.style.marginLeft="8px";mxEvent.addListener(H,
-"keydown",mxUtils.bind(this,function(K){var N=mxUtils.trim(H.value);13==K.keyCode&&0<N.length?(this.editorUi.openLink("https://www.drawio.com/search?src="+(EditorUi.isElectronApp?"DESKTOP":encodeURIComponent(location.host))+"&search="+encodeURIComponent(N)),H.value="",EditorUi.logEvent({category:"SEARCH-HELP",action:"search",label:N}),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0)):27==K.keyCode&&(H.value="")}));J.firstChild.nextSibling.appendChild(H);mxEvent.addGestureListeners(H,
-function(K){document.activeElement!=H&&H.focus();mxEvent.consume(K)},function(K){mxEvent.consume(K)},function(K){mxEvent.consume(K)});window.setTimeout(function(){H.focus()},0);EditorUi.isElectronApp?(c.actions.addAction("website...",function(){c.openLink("https://www.drawio.com")}),c.actions.addAction("check4Updates",function(){c.checkForUpdates()}),c.actions.put("desktopZoomIn",new Action("zoomIn",function(){c.desktopZoomIn()})),c.actions.put("desktopZoomOut",new Action("zoomOut",function(){c.desktopZoomOut()})),
-c.actions.put("desktopResetZoom",new Action("actualSize",function(){c.desktopResetZoom()})),this.addMenuItems(u,"- keyboardShortcuts quickStart website support -".split(" "),x),"1"!=urlParams.disableUpdate&&this.addMenuItems(u,["check4Updates","-"],x),this.addMenuItems(u,"desktopResetZoom desktopZoomIn desktopZoomOut - openDevTools - about".split(" "),x)):this.addMenuItems(u,"- keyboardShortcuts quickStart support - about".split(" "),x)}"1"==urlParams.test&&(u.addSeparator(x),this.addSubmenu("testDevelop",
-u,x))})));c.actions.addAction("languageCode...",function(){var u=new FilenameDialog(c,Graph.diagramLanguage||"",mxResources.get("ok"),mxUtils.bind(this,function(x){null!=x&&(Graph.diagramLanguage=0<x.length?x:null,Graph.translateDiagram=!0,l.refresh())}),mxResources.get("languageCode"),null,null,"https://www.drawio.com/blog/translate-diagrams");c.showDialog(u.container,340,80,!0,!0);u.init()});this.put("diagramLanguage",new Menu(mxUtils.bind(this,function(u,x){this.addMenuItems(u,["languageCode",
-"-"],x);x=u.addItem(mxResources.get("disabled"),null,function(){Graph.translateDiagram=!1;l.refresh()},x);Graph.translateDiagram||u.addCheckmark(x,Editor.checkmarkImage)})));if("1"==urlParams.test){mxResources.parse("testDevelop=Develop");mxResources.parse("showBoundingBox=Show bounding box");mxResources.parse("createSidebarEntry=Create Sidebar Entry");mxResources.parse("testCheckFile=Check File");mxResources.parse("testDiff=Diff/Sync");mxResources.parse("testChecksum=Checksum");mxResources.parse("testCheckPages=Check Pages");
-mxResources.parse("testFixPages=Fix Pages");mxResources.parse("testInspect=Inspect");mxResources.parse("testShowConsole=Show Console");mxResources.parse("testXmlImageExport=XML Image Export");mxResources.parse("testOptimize=Remove Inline Images");mxResources.parse("testPerformance=Performance");c.actions.addAction("createSidebarEntry",mxUtils.bind(this,function(){if(!l.isSelectionEmpty()){var u=l.cloneCells(l.getSelectionCells()),x=l.getBoundingBoxFromGeometry(u,!0);u=l.moveCells(u,-x.x,-x.y);c.showTextDialog("Create Sidebar Entry",
-"this.addDataEntry('tag1 tag2', "+x.width+", "+x.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(l.encodeCells(u)))+"'),")}}));c.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function u(M){return null==M||null==M.boundingBox||!isNaN(M.boundingBox.x)&&!isNaN(M.boundingBox.y)&&!isNaN(M.boundingBox.width)&&!isNaN(M.boundingBox.height)}var x=l.isSelectionEmpty()?l.getGraphBounds():l.getBoundingBox(l.getSelectionCells()),J=l.view.translate,H=l.view.scale;l.insertVertex(l.getDefaultParent(),
-null,"",x.x/H-J.x,x.y/H-J.y,x.width/H,x.height/H,"fillColor=none;strokeColor=red;");var K=0,N=0;l.view.states.visit(function(M,n){M=!0;u(n.shape)||(console.log("invalid shape",n.cell.id,n.shape),M=!1);u(n.text)||(console.log("invalid text",n.cell.id,n.text),M=!1);M||K++;N++});console.log("states checked",N,"invalid",K)}));c.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var u=null!=c.pages&&null!=c.getCurrentFile()?c.getCurrentFile().getAnonymizedXmlForPages(c.pages):"";u=new TextareaDialog(c,
-"Paste Data:",u,function(x){if(0<x.length)try{var J=function(n){function A(Z){if(null==Y[Z]){if(Y[Z]=!0,null!=O[Z]){for(;0<O[Z].length;){var ca=O[Z].pop();A(ca)}delete O[Z]}}else mxLog.debug(E+": Visited: "+Z)}var E=n.parentNode.id,L=n.childNodes;n={};for(var O={},R=null,T={},U=0;U<L.length;U++){var W=L[U];if(null!=W.id&&0<W.id.length)if(null==n[W.id]){n[W.id]=W.id;var X=W.getAttribute("parent");null==X?null!=R?mxLog.debug(E+": Multiple roots: "+W.id):R=W.id:(null==O[X]&&(O[X]=[]),O[X].push(W.id))}else T[W.id]=
-W.id}L=Object.keys(T);0<L.length?(L=E+": "+L.length+" Duplicates: "+L.join(", "),mxLog.debug(L+" (see console)")):mxLog.debug(E+": Checked");var Y={};null==R?mxLog.debug(E+": No root"):(A(R),Object.keys(Y).length!=Object.keys(n).length&&(mxLog.debug(E+": Invalid tree: (see console)"),console.log(E+": Invalid tree",O)))};"<"!=x.charAt(0)&&(x=Graph.decompress(x),mxLog.debug("See console for uncompressed XML"),console.log("xml",x));var H=mxUtils.parseXml(x),K=c.getPagesForNode(H.documentElement,"mxGraphModel");
-if(null!=K&&0<K.length)try{var N=c.getHashValueForPages(K);mxLog.debug("Checksum: ",N)}catch(n){mxLog.debug("Error: ",n.message)}else mxLog.debug("No pages found for checksum");var M=H.getElementsByTagName("root");for(x=0;x<M.length;x++)J(M[x]);mxLog.show()}catch(n){c.handleError(n),null!=window.console&&console.error(n)}});c.showDialog(u.container,620,460,!0,!0);u.init()}));var B=null;c.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=c.pages){var u=new TextareaDialog(c,"Diff/Sync:",
-"",function(x){var J=c.getCurrentFile();if(0<x.length&&null!=J)try{var H=JSON.parse(x);J.patch([H],null,!0,!0);c.hideDialog()}catch(K){c.handleError(K)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",function(x,J){B=c.getPagesForXml(c.getFileData(!0));u.textarea.value="Snapshot updated "+(new Date).toLocaleString()+" Checksum "+c.getHashValueForPages(B)}],["Diff",function(x,J){try{u.textarea.value=JSON.stringify(c.diffPages(B,c.pages),null,2)}catch(H){c.handleError(H)}}]]);null==B?
-(B=c.getPagesForXml(c.getFileData(!0)),u.textarea.value="Snapshot created "+(new Date).toLocaleString()+" Checksum "+c.getHashValueForPages(B)):u.textarea.value=JSON.stringify(c.diffPages(B,c.pages),null,2);c.showDialog(u.container,620,460,!0,!0);u.init()}else c.alert("No pages")}));c.actions.addAction("testChecksum",mxUtils.bind(this,function(){var u=c.getCurrentFile();null!=c.pages&&null!=u?c.spinner.spin(document.body,mxResources.get("loading"))&&u.getLatestVersion(function(x){c.spinner.stop();
-var J=c.getHashValueForPages(c.pages),H=u.getCurrentRevisionId(),K=c.getHashValueForPages(x.getShadowPages()),N=x.getDescriptorChecksum(x.getDescriptor()),M=x.getCurrentRevisionId();console.log("Local File",[u],"modified",u.isModified(),"checksum",J);console.log("Remote File",[x],"rev",M==H,"desc",N==K,"checksum",K);c.alert("Checksums "+(K==J?"match":"no not match"))},function(x){console.log("Error getLatestVersion",x);c.handleError(x)}):console.log("Checksum: no file or pages")}));c.actions.addAction("testCheckPages",
-mxUtils.bind(this,function(){var u=c.getCurrentFile();console.log("editorUi",c,"file",u);if(null!=u&&u.isRealtime()){console.log("Checksum ownPages",c.getHashValueForPages(u.ownPages));console.log("Checksum theirPages",c.getHashValueForPages(u.theirPages));console.log("diff ownPages/theirPages",c.diffPages(u.ownPages,u.theirPages));var x=u.getShadowPages();null!=x&&(console.log("Checksum shadowPages",c.getHashValueForPages(x)),console.log("diff shadowPages/ownPages",c.diffPages(x,u.ownPages)),console.log("diff ownPages/shadowPages",
-c.diffPages(u.ownPages,x)),console.log("diff theirPages/shadowPages",c.diffPages(u.theirPages,x)));null!=u.sync&&null!=u.sync.snapshot&&(console.log("Checksum snapshot",c.getHashValueForPages(u.sync.snapshot)),console.log("diff ownPages/snapshot",c.diffPages(u.ownPages,u.sync.snapshot)),console.log("diff theirPages/snapshot",c.diffPages(u.theirPages,u.sync.snapshot)),null!=c.pages&&console.log("diff snapshot/actualPages",c.diffPages(u.sync.snapshot,c.pages)));null!=c.pages&&(console.log("diff ownPages/actualPages",
-c.diffPages(u.ownPages,c.pages)),console.log("diff theirPages/actualPages",c.diffPages(u.theirPages,c.pages)))}null!=u&&console.log("Shadow pages",[c.getXmlForPages(u.getShadowPages())]);null!=c.pages&&console.log("Checksum actualPages",c.getHashValueForPages(c.pages))}));c.actions.addAction("testFixPages",mxUtils.bind(this,function(){console.log("editorUi",c);var u=c.getCurrentFile();null!=u&&u.isRealtime()&&null!=u.shadowPages&&(console.log("patching actualPages to shadowPages",u.patch([c.diffPages(u.shadowPages,
-c.pages)])),u.ownPages=c.clonePages(c.pages),u.theirPages=c.clonePages(c.pages),u.shadowPages=c.clonePages(c.pages),null!=u.sync&&(u.sync.snapshot=c.clonePages(c.pages)))}));c.actions.addAction("testOptimize",mxUtils.bind(this,function(){l.model.beginUpdate();try{var u=l.model.cells,x=0,J=[],H=[],K;for(K in u){var N=u[K],M=l.getCurrentCellStyle(N)[mxConstants.STYLE_IMAGE];null!=M&&"data:"==M.substring(0,5)&&(null==J[M]&&(J[M]=(J[M]||0)+1,x++),H.push(N))}l.setCellStyles(mxConstants.STYLE_IMAGE,null,
-H);console.log("Removed",x,"image(s) from",H.length,"cell(s): ",[H,J])}finally{l.model.endUpdate()}}));c.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(c,l.getModel())}));c.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var u=new mxImageExport,x=l.getGraphBounds(),J=l.view.scale,H=mxUtils.createXmlDocument(),K=H.createElement("output");H.appendChild(K);H=new mxXmlCanvas2D(K);H.translate(Math.floor((1-x.x)/J),Math.floor((1-x.y)/J));H.scale(1/J);var N=
-0,M=H.save;H.save=function(){N++;M.apply(this,arguments)};var n=H.restore;H.restore=function(){N--;n.apply(this,arguments)};var A=u.drawShape;u.drawShape=function(E){mxLog.debug("entering shape",E,N);A.apply(this,arguments);mxLog.debug("leaving shape",E,N)};u.drawState(l.getView().getState(l.model.root),H);mxLog.show();mxLog.debug(mxUtils.getXml(K));mxLog.debug("stateCounter",N)}));c.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=
-mxPopupMenu.prototype.zIndex-2});var d=null,g=null,k=null,m=null,t=null,y=null,z=null,I=null;c.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=d?(l.view.revalidate=d,d=null):(d=l.view.revalidate,l.view.revalidate=function(){var u=Date.now(),x=d.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",[this],"time",Date.now()-u+" ms","args",arguments);return x});null!=g?(c.selectPage=g,g=null):(g=c.selectPage,c.selectPage=function(){var u=Date.now(),x=g.apply(this,
-arguments);EditorUi.debug("[Performance] EditorUi.selectPage",[this],"time",Date.now()-u+" ms","args",arguments);return x});null!=k?(c.diffPages=k,k=null):(k=c.diffPages,c.diffPages=function(){var u=Date.now(),x=k.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-u+" ms","args",arguments);return x});null!=m?(c.patchPages=m,m=null):(m=c.patchPages,c.patchPages=function(){var u=Date.now(),x=m.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",
-[this],"time",Date.now()-u+" ms","args",arguments);return x});null!=t?(c.clonePages=t,t=null):(t=c.clonePages,c.clonePages=function(){var u=Date.now(),x=t.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-u+" ms","args",arguments);return x});null!=z?(c.getHashValueForPages=z,z=null):(z=c.getHashValueForPages,c.getHashValueForPages=function(){var u=Date.now(),x=z.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],
-"time",Date.now()-u+" ms","args",arguments);return x});null!=I?(c.resolveCrossReferences=I,I=null):(I=c.resolveCrossReferences,c.resolveCrossReferences=function(){var u=Date.now(),x=I.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.resolveCrossReferences",[this],"time",Date.now()-u+" ms","args",arguments);return x});null!=y?(c.getFileData=y,y=null):(y=c.getFileData,c.getFileData=function(){var u=Date.now(),x=y.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getFileData",
-[this],"time",Date.now()-u+" ms","args",arguments);return x});EditorUi.debug("[Performance]",null!=d?"Enabled":"Disabled")}));this.put("testDevelop",new Menu(mxUtils.bind(this,function(u,x){this.addMenuItems(u,"createSidebarEntry showBoundingBox - testCheckPages testChecksum testFixPages - testCheckFile testDiff - testInspect testOptimize - testXmlImageExport -".split(" "),x);var J=u.addItem(mxResources.get("testPerformance"),null,function(){c.actions.get("testPerformance").funct()},x);null!=d&&u.addCheckmark(J,
-Editor.checkmarkImage);this.addMenuItems(u,["-","testShowConsole"],x)})))}c.actions.put("shapes",new Action("moreShapes...",function(u){mxClient.IS_CHROMEAPP||!c.isOffline()?c.showDialog((new MoreShapesDialog(c,!0)).container,640,isLocalStorage?mxClient.IS_IOS?480:460:440,!0,!0):c.showDialog((new MoreShapesDialog(c,!1)).container,360,isLocalStorage?mxClient.IS_IOS?300:280:260,!0,!0)}));c.actions.put("createShape",new Action("shape...",function(u){l.isEnabled()&&(u=new mxCell("",new mxGeometry(0,0,
-120,120),c.defaultCustomShapeStyle),u.vertex=!0,u=new EditShapeDialog(c,u,mxResources.get("editShape")+":",630,400),c.showDialog(u.container,640,480,!0,!1),u.init())})).isEnabled=p;c.actions.put("embedHtml",new Action("html...",function(){c.getPublicUrl(c.getCurrentFile(),function(u){c.showHtmlDialog(mxResources.get("create"),"https://www.drawio.com/doc/faq/embed-html-options",u,function(x,J,H,K,N,M,n,A,E,L,O,R){c.createHtml(x,J,H,K,N,M,n,A,E,L,O,mxUtils.bind(this,function(T,U){var W=new EmbedDialog(c,
-"\x3c!-- "+c.editor.appName+" diagram --\x3e\n"+T+"\n"+U+"\n",null,null,function(){try{var X=window.open();if(null!=X&&null!=X.document){var Y=X.document;"CSS1Compat"===document.compatMode&&Y.writeln("<!DOCTYPE html>");Y.writeln("<html>");Y.writeln("<head><title>"+encodeURIComponent(mxResources.get("preview"))+'</title><meta charset="utf-8"></head>');Y.writeln("<body>");Y.writeln(T);var Z=mxClient.IS_IE||mxClient.IS_EDGE||null!=document.documentMode;Z&&Y.writeln(U);Y.writeln("</body>");Y.writeln("</html>");
-Y.close();if(!Z){var ca=X.document.createElement("div");ca.marginLeft="26px";ca.marginTop="26px";mxUtils.write(ca,mxResources.get("updatingDocument"));var ea=X.document.createElement("img");ea.setAttribute("src",window.location.protocol+"//"+window.location.hostname+"/"+IMAGE_PATH+"/spin.gif");ea.style.marginLeft="6px";ca.appendChild(ea);X.document.body.insertBefore(ca,X.document.body.firstChild);window.setTimeout(function(){var ia=document.createElement("script");ia.type="text/javascript";ia.src=
-/<script.*?src="(.*?)"/.exec(U)[1];Y.body.appendChild(ia);ca.parentNode.removeChild(ca)},20)}}else c.handleError({message:mxResources.get("errorUpdatingPreview")})}catch(ia){c.handleError(ia)}});c.showDialog(W.container,450,240,!0,!0);W.init()}),R)})})}));c.actions.put("liveImage",new Action("Live image...",function(){var u=c.getCurrentFile();null!=u&&c.getPublicUrl(u,function(x){null!=x?(x=new EmbedDialog(c,'<img src="'+(u.constructor!=DriveFile?x:"https://drive.google.com/uc?id="+u.getId())+'"/>'),
-c.showDialog(x.container,450,240,!0,!0),x.init()):c.handleError({message:mxResources.get("invalidPublicUrl")})})}));c.actions.put("embedImage",new Action("image...",function(){c.showEmbedImageDialog(function(u,x,J,H,K,N){c.spinner.spin(document.body,mxResources.get("loading"))&&c.createEmbedImage(u,x,J,H,K,N,function(M){c.spinner.stop();M=new EmbedDialog(c,M);c.showDialog(M.container,450,240,!0,!0);M.init()},function(M){c.spinner.stop();c.handleError(M)})},mxResources.get("image"),mxResources.get("retina"),
-c.isExportToCanvas())}));c.actions.put("embedSvg",new Action("formatSvg...",function(){c.showEmbedImageDialog(function(u,x,J,H,K,N){c.spinner.spin(document.body,mxResources.get("loading"))&&c.createEmbedSvg(u,x,J,H,K,N,function(M){c.spinner.stop();M=new EmbedDialog(c,M);c.showDialog(M.container,450,240,!0,!0);M.init()},function(M){c.spinner.stop();c.handleError(M)})},mxResources.get("formatSvg"),mxResources.get("image"),!0,"https://www.drawio.com/doc/faq/embed-svg.html")}));c.actions.put("embedIframe",
-new Action("iframe...",function(){c.getPublicUrl(c.getCurrentFile(),function(u){var x=l.getGraphBounds();c.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,x.height/l.view.scale))+2,null,null,null,u,c.getCurrentFile(),function(J,H,K,N,M,n,A,E,L,O,R,T){var U=[];L&&U.push("tags=%7B%7D");J=new EmbedDialog(c,'<iframe frameborder="0" style="width:'+A+";height:"+E+';" src="'+c.createLink(J,H,!0,N,M,n,"public"==O?u:null,null,U,null,K,R,T)+'"'+(R?' allowtransparency="true"':"")+
-"></iframe>");c.showDialog(J.container,450,240,!0,!0);J.init()},!0,!0)})}));c.actions.put("embedNotion",new Action("notion...",function(){var u=document.createElement("div");u.style.position="absolute";u.style.bottom="30px";u.style.textAlign="center";u.style.width="100%";u.style.left="0px";var x=document.createElement("a");x.setAttribute("href","javascript:void(0);");x.setAttribute("target","_blank");x.style.cursor="pointer";mxUtils.write(x,mxResources.get("getNotionChromeExtension"));u.appendChild(x);
-mxUtils.setPrefixedStyle(x.style,"transition","all 1s ease");mxUtils.setOpacity(x,0);window.setTimeout(function(){mxUtils.setOpacity(x,100)},300);mxEvent.addListener(x,"click",function(J){c.openLink("https://chrome.google.com/webstore/detail/drawio-for-notion/plhaalebpkihaccllnkdaokdoeaokmle");mxEvent.consume(J)});c.getPublicUrl(c.getCurrentFile(),function(J){c.showPublishLinkDialog(mxResources.get("notion"),null,null,!0,"https://www.drawio.com/blog/drawio-notion",u,J,c.getCurrentFile(),function(H,
-K,N,M,n,A,E,L,O,R,T,U){E=["border=0"];O&&E.push("tags=%7B%7D");H=new EmbedDialog(c,c.createLink(H,K,!0,M,n,A,"public"==R?J:null,null,E,null,N,null,U));c.showDialog(H.container,450,240,!0,!0);H.init()},null,!0)})}));c.actions.put("publishLink",new Action("link...",function(){c.getPublicUrl(c.getCurrentFile(),function(u){c.showPublishLinkDialog(null,null,null,null,null,null,u,c.getCurrentFile(),function(x,J,H,K,N,M,n,A,E,L,O,R){n=[];K&&E&&n.push("tags=%7B%7D");x=new EmbedDialog(c,c.createLink(x,J,!0,
-K,N,M,"public"==L?u:null,null,n,null,H,null,R));c.showDialog(x.container,450,240,!0,!0);x.init()},null,!0)})}));c.actions.addAction("microsoftOffice...",function(){c.openLink("https://office.draw.io")});c.actions.addAction("googleDocs...",function(){c.openLink("http://docsaddon.draw.io")});c.actions.addAction("googleSlides...",function(){c.openLink("https://slidesaddon.draw.io")});c.actions.addAction("googleSheets...",function(){c.openLink("https://sheetsaddon.draw.io")});c.actions.addAction("googleSites...",
-function(){c.getPublicUrl(c.getCurrentFile(),function(u){u=new GoogleSitesDialog(c,u);c.showDialog(u.container,420,256,!0,!0);u.init()})});if(isLocalStorage||mxClient.IS_CHROMEAPP)q=c.actions.addAction("scratchpad",function(){c.toggleScratchpad()}),q.setToggleAction(!0),q.setSelectedCallback(function(){return null!=c.scratchpad}),"0"!=urlParams.plugins&&c.actions.addAction("plugins...",function(){c.showDialog((new PluginsDialog(c)).container,380,240,!0,!1)});window.matchMedia&&null!=document.getElementById("high-contrast-stylesheet")&&
-(q=c.actions.addAction("highContrast",function(){c.setAndPersistHighContrast(!c.isHighContrast())}),q.setToggleAction(!0),q.setSelectedCallback(function(){return c.isHighContrast()}));q=c.actions.addAction("search",function(){if(null!=c.sidebar){var u=c.sidebar.isEntryVisible("search");c.sidebar.showPalette("search",!u);Editor.isSettingsEnabled()&&(mxSettings.settings.search=!u,mxSettings.save())}});q.label=mxResources.get("searchShapes");q.setToggleAction(!0);q.setSelectedCallback(function(){return null!=
-c.sidebar&&c.sidebar.isEntryVisible("search")});c.actions.get("clearDefaultStyle").funct=function(u){l.isEnabled()&&(c.clearDefaultStyle(),Editor.sketchMode&&c.setSketchMode(!1))};"1"==urlParams.embed&&(c.actions.get("saveAs").setEnabled(!1),c.actions.get("save").funct=function(u){l.isEditing()&&l.stopEditing();var x="0"!=urlParams.pages||null!=c.pages&&1<c.pages.length?c.getFileData(!0):mxUtils.getXml(c.editor.getGraphXml());if("json"==urlParams.proto){var J=c.createLoadMessage("save");J.xml=x;!0!==
-u||"1"!=urlParams.saveAndExit&&"1"!=urlParams.publishClose||(J.exit=!0);x=JSON.stringify(J)}(window.opener||window.parent).postMessage(x,"*");"0"!=urlParams.modified&&"1"!=urlParams.keepmodified&&(c.editor.modified=!1,c.clearStatus());u=c.getCurrentFile();null==u||u.constructor==EmbedFile||u.constructor==LocalFile&&null==u.mode||c.saveFile()},c.actions.addAction("saveAndExit",function(){"1"==urlParams.toSvg?c.sendEmbeddedSvgExport():c.actions.get("save").funct(!0)},null,null,Editor.ctrlKey+"+S").label=
-"1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),c.actions.addAction("exit",function(){if("1"==urlParams.embedInline)c.sendEmbeddedSvgExport();else{var u=function(){c.editor.modified=!1;var x="json"==urlParams.proto?JSON.stringify({event:"exit",modified:c.editor.modified}):"";(window.opener||window.parent).postMessage(x,"*")};c.editor.modified?c.confirm(mxResources.get("allChangesLost"),null,u,mxResources.get("cancel"),mxResources.get("discardChanges")):u()}},
-null,null,"1"==urlParams.embedInline?"Escape":null));this.put("exportAs",new Menu(mxUtils.bind(this,function(u,x){c.isExportToCanvas()?(this.addMenuItems(u,["exportPng"],x),c.jpgSupported&&this.addMenuItems(u,["exportJpg"],x),c.webpSupported&&this.addMenuItems(u,["exportWebp"],x)):c.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(u,["exportPng","exportJpg"],x);this.addMenuItems(u,["exportSvg","-"],x);c.isOffline()||c.printPdfExport?this.addMenuItems(u,["exportPdf"],x):c.isOffline()||
-mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(u,["exportPdf"],x);!c.vsdxExportEnabled()||mxClient.IS_IE||"undefined"===typeof VsdxExport&&c.isOffline()||this.addMenuItems(u,["exportVsdx"],x);this.addMenuItems(u,["-","exportHtml","exportXml","exportUrl"],x);c.isOffline()||(u.addSeparator(x),this.addMenuItem(u,"export",x).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...");mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"min"!=Editor.currentTheme||this.addMenuItems(u,["publishLink"],
-x);c.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||(u.addSeparator(x),c.menus.addSubmenu("embed",u,x))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(u,x){function J(N){N.pickFile(function(M){c.spinner.spin(document.body,mxResources.get("loading"))&&N.getFile(M,function(n){var A="data:image/"==n.getData().substring(0,11)?K(n.getTitle()):"text/xml";/\.svg$/i.test(n.getTitle())&&!c.editor.isDataSvg(n.getData())&&
-(n.setData(Editor.createSvgDataUri(n.getData())),A="image/svg+xml");H(n.getData(),A,n.getTitle())},function(n){c.handleError(n,null!=n?mxResources.get("errorLoadingFile"):null)},N==c.drive)},!0)}var H=mxUtils.bind(this,function(N,M,n){var A=l.view,E=l.getGraphBounds(),L=l.snap(Math.ceil(Math.max(0,E.x/A.scale-A.translate.x)+4*l.gridSize)),O=l.snap(Math.ceil(Math.max(0,(E.y+E.height)/A.scale-A.translate.y)+4*l.gridSize));"data:image/"==N.substring(0,11)?c.loadImage(N,mxUtils.bind(this,function(R){var T=
-!0,U=mxUtils.bind(this,function(){c.resizeImage(R,N,mxUtils.bind(this,function(W,X,Y){W=T?Math.min(1,Math.min(c.maxImageSize/X,c.maxImageSize/Y)):1;c.importFile(N,M,L,O,Math.round(X*W),Math.round(Y*W),n,function(Z){c.spinner.stop();l.setSelectionCells(Z);l.scrollCellToVisible(l.getSelectionCell())})}),T)});N.length>c.resampleThreshold?c.confirmImageResize(function(W){T=W;U()}):U()}),mxUtils.bind(this,function(){c.handleError({message:mxResources.get("cannotOpenFile")})})):c.importFile(N,M,L,O,0,0,
-n,function(R){c.spinner.stop();l.setSelectionCells(R);l.scrollCellToVisible(l.getSelectionCell())})}),K=mxUtils.bind(this,function(N){var M="text/xml";/\.png$/i.test(N)?M="image/png":/\.jpe?g$/i.test(N)?M="image/jpg":/\.gif$/i.test(N)?M="image/gif":/\.pdf$/i.test(N)&&(M="application/pdf");return M});"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=c.drive?u.addItem(mxResources.get("googleDrive")+"...",null,function(){J(c.drive)},x):c.isModeEnabled(App.MODE_GOOGLE)&&u.addItem(mxResources.get("googleDrive")+
-" ("+mxResources.get("loading")+"...)",null,function(){},x,null,!1));c.isModeReady(App.MODE_ONEDRIVE)?u.addItem(mxResources.get("oneDrive")+"...",null,function(){J(c.oneDrive)},x):c.isModeEnabled(App.MODE_ONEDRIVE)&&u.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},x,null,!1);c.isModeReady(App.MODE_DROPBOX)?u.addItem(mxResources.get("dropbox")+"...",null,function(){J(c.dropbox)},x):c.isModeEnabled(App.MODE_DROPBOX)&&u.addItem(mxResources.get("dropbox")+
-" ("+mxResources.get("loading")+"...)",null,function(){},x,null,!1);u.addSeparator(x);c.isModeReady(App.MODE_GITHUB)&&u.addItem(mxResources.get("github")+"...",null,function(){J(c.gitHub)},x);c.isModeReady(App.MODE_GITLAB)&&u.addItem(mxResources.get("gitlab")+"...",null,function(){J(c.gitLab)},x);c.isModeReady(App.MODE_TRELLO)?u.addItem(mxResources.get("trello")+"...",null,function(){J(c.trello)},x):c.isModeEnabled(App.MODE_TRELLO)&&u.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+
-"...)",null,function(){},x,null,!1);u.addSeparator(x);isLocalStorage&&"0"!=urlParams.browser&&u.addItem(mxResources.get("browser")+"...",null,function(){c.importLocalFile(!1)},x);"1"!=urlParams.noDevice&&u.addItem(mxResources.get("device")+"...",null,function(){c.importLocalFile(!0)},x);c.isOffline()||(u.addSeparator(x),u.addItem(mxResources.get("url")+"...",null,function(){var N=new FilenameDialog(c,"",mxResources.get("import"),function(M){if(null!=M&&0<M.length&&c.spinner.spin(document.body,mxResources.get("loading"))){var n=
-/(\.png)($|\?)/i.test(M)?"image/png":"text/xml";c.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(M),function(A){H(A,n,M)},function(){c.spinner.stop();c.handleError(null,mxResources.get("errorLoadingFile"))},"image/png"==n)}},mxResources.get("url"));c.showDialog(N.container,300,80,!0,!0);N.init()},x))}))).isEnabled=p;this.put("dynamicAppearance",new Menu(mxUtils.bind(this,function(u,x){var J=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;"simple"==Editor.currentTheme&&
-(750>J&&this.addSubmenu("viewZoom",u,x,mxResources.get("zoom")),460>J&&c.isPageMenuVisible()&&this.addSubmenu("pages",u,x),320>J&&this.addSubmenu("insert",u,x),360>J&&"1"!=urlParams.embed&&"draw.io"==c.getServiceName()&&this.addSubmenu("share",u,x))})));this.put("appearance",new Menu(mxUtils.bind(this,function(u,x){if(c.isAutoDarkModeSupported()){var J=c.menus.addMenuItem(u,"autoMode",x);null!=J&&J.setAttribute("title",mxResources.get("automatic")+" ("+mxResources.get(Editor.isDarkMode()?"dark":"light")+
-")")}this.addMenuItems(u,["lightMode","darkMode","-"],x);J=c.menus.addMenuItem(u,"highContrast",x);(!c.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&c.menus.addLinkToItem(J,"https://github.com/jgraph/drawio/issues/4296")})));c.actions.addAction("addToScratchpad",function(u){l.isSelectionEmpty()||null==c.addSelectionToScratchpad||c.addSelectionToScratchpad(u)});c.actions.addAction("accounts...",function(){c.toggleUserPanel();c.userPanel.style.right="10px";c.userPanel.style.top="10px"});
-this.put("theme",new Menu(mxUtils.bind(this,function(u,x){var J="1"==urlParams.sketch?"sketch":mxSettings.getUi(),H=u.addItem(mxResources.get("automatic"),null,function(){c.setCurrentTheme("")},x),K=u.addItem(mxResources.get("classic"),null,function(){c.setCurrentTheme("kennedy")},x),N=!1;if("kennedy"==J||"dark"==J)u.addCheckmark(K,Editor.checkmarkImage),N=!0;for(var M=0;M<Editor.themes.length;M++)mxUtils.bind(this,function(n){K=u.addItem(mxResources.get("min"==n?"minimal":n),null,function(){c.setCurrentTheme(n)},
-x);J==n&&(u.addCheckmark(K,Editor.checkmarkImage),N=!0);"simple"==n&&u.addSeparator(x)})(Editor.themes[M]);N||u.addCheckmark(H,Editor.checkmarkImage)})));q=this.editorUi.actions.addAction("rename...",mxUtils.bind(this,function(){var u=this.editorUi.getCurrentFile();if(null!=u)if(u.constructor==LocalFile&&null!=u.fileHandle)c.showSaveFilePicker(mxUtils.bind(c,function(J,H){u.invalidFileHandle=null;u.fileHandle=J;u.title=H.name;u.desc=H;c.save(H.name)}),null,c.createFileSystemOptions(u.getTitle()));
-else{var x=null!=u.getTitle()?u.getTitle():this.editorUi.defaultFilename;x=new FilenameDialog(this.editorUi,x,mxResources.get("rename"),mxUtils.bind(this,function(J){null!=J&&0<J.length&&null!=u&&J!=u.getTitle()&&this.editorUi.spinner.spin(document.body,mxResources.get("renaming"))&&u.rename(J,mxUtils.bind(this,function(H){this.editorUi.spinner.stop()}),mxUtils.bind(this,function(H){this.editorUi.handleError(H,null!=H?mxResources.get("errorRenamingFile"):null)}))}),u.constructor==DriveFile||u.constructor==
-StorageFile?mxResources.get("diagramName"):null,function(J){if(null!=J&&0<J.length)return!0;c.showError(mxResources.get("error"),mxResources.get("invalidName"),mxResources.get("ok"));return!1},null,FilenameDialog.filenameHelpLink,null,null,c.editor.fileExtensions);this.editorUi.showDialog(x.container,340,100,!0,!0);x.init()}}));q.isEnabled=function(){return this.enabled&&p.apply(this,arguments)};q.visible="1"!=urlParams.embed;c.actions.addAction("makeCopy...",mxUtils.bind(this,function(){var u=c.getCurrentFile();
-if(null!=u){var x=c.getCopyFilename(u);u.constructor==DriveFile?(x=new CreateDialog(c,x,mxUtils.bind(this,function(J,H){"_blank"==H?c.editor.editAsNew(c.getFileData(),J):("download"==H&&(H=App.MODE_GOOGLE),null!=J&&0<J.length&&(H==App.MODE_GOOGLE?c.spinner.spin(document.body,mxResources.get("saving"))&&u.saveAs(J,mxUtils.bind(this,function(K){u.desc=K;u.save(!1,mxUtils.bind(this,function(){c.spinner.stop();u.setModified(!1);c.updateStatus(mxUtils.bind(this,function(){u.addAllSavedStatus()}))}),mxUtils.bind(this,
-function(N){c.handleError(N)}))}),mxUtils.bind(this,function(K){c.handleError(K)})):c.createFile(J,c.getFileData(!0),null,H)))}),mxUtils.bind(this,function(){c.hideDialog()}),mxResources.get("makeCopy"),mxResources.get("create"),null,null,!0,null,!0,null,null,null,null,c.editor.fileExtensions),c.showDialog(x.container,420,380,!0,!0),x.init()):c.editor.editAsNew(this.editorUi.getFileData(!0),x)}}));q=new Action("openFolder",function(u,x){u=c.getCurrentFile();null!=u&&c.openLink(u.getFolderUrl())});
-q.getTitle=function(){return mxResources.get("openIt",[mxResources.get("folder")])+"..."};c.actions.put("openFolder",q);c.actions.addAction("openFile...",mxUtils.bind(this,function(){var u=c.getCurrentFile();null!=u&&c.openLink(u.getFileUrl())}));c.actions.addAction("moveToFolder...",mxUtils.bind(this,function(){var u=c.getCurrentFile();if(u.getMode()==App.MODE_GOOGLE||u.getMode()==App.MODE_ONEDRIVE){var x=!1;if(u.getMode()==App.MODE_GOOGLE&&null!=u.desc.parents)for(var J=0;J<u.desc.parents.length;J++)if(u.desc.parents[J].isRoot){x=
-!0;break}c.pickFolder(u.getMode(),mxUtils.bind(this,function(H){c.spinner.spin(document.body,mxResources.get("moving"))&&u.move(H,mxUtils.bind(this,function(K){c.spinner.stop()}),mxUtils.bind(this,function(K){c.handleError(K)}))}),null,!0,x)}}));this.put("publish",new Menu(mxUtils.bind(this,function(u,x){this.addMenuItems(u,["publishLink"],x)})));c.actions.put("useOffline",new Action("useOffline...",function(){c.openLink("https://app.draw.io/")}));this.editorUi.actions.addAction("share...",mxUtils.bind(this,
-function(){try{var u=c.getCurrentFile();null!=u&&u.share()}catch(x){c.handleError(x)}})).isEnabled=p;this.put("embed",new Menu(mxUtils.bind(this,function(u,x){var J=c.getCurrentFile();null==J||J.getMode()!=App.MODE_GOOGLE&&J.getMode()!=App.MODE_GITHUB||!/(\.png)$/i.test(J.getTitle())||this.addMenuItems(u,["liveImage","-"],x);this.addMenuItems(u,["embedImage","embedSvg","-","embedHtml"],x);navigator.standalone||c.isOffline()||this.addMenuItems(u,["embedIframe"],x);"1"==urlParams.embed||c.isOffline()||
-this.addMenuItems(u,"- googleDocs googleSlides googleSheets - microsoftOffice - embedNotion".split(" "),x)})));c.addInsertItem=function(u,x,J,H){("plantUml"!=H||EditorUi.enablePlantUml&&!c.isOffline())&&u.addItem(J,null,mxUtils.bind(this,function(){if("fromText"==H||"formatSql"==H||"plantUml"==H||"mermaid"==H){var K=new ParseDialog(c,J,H);c.showDialog(K.container,620,420,!0,!1);c.dialog.container.style.overflow="auto"}else K=new CreateGraphDialog(c,J,H),c.showDialog(K.container,620,420,!0,!1,function(N,
-M){if(M)return c.confirm(mxResources.get("areYouSure"),function(){c.hideDialog()}),!1;null!=K.graph&&(null!=K.graph.container.parentNode&&K.graph.container.parentNode.removeChild(K.graph.container),K.graph.destroy(),K.graph=null)});K.init()}),x,null,p())};var F=function(u){l.getModel().beginUpdate();try{u=l.addCell(u),l.fireEvent(new mxEventObject("cellsInserted","cells",[u])),l.model.isVertex(u)&&l.isAutoSizeCell(u)&&l.updateCellSize(u)}finally{l.getModel().endUpdate()}l.scrollCellToVisible(u);l.setSelectionCell(u);
-l.container.focus();l.editAfterInsert&&l.startEditing(u);window.setTimeout(function(){null!=c.hoverIcons&&c.hoverIcons.update(l.view.getState(u))},0);return u},C=function(u,x,J,H,K){u=new mxCell(u,new mxGeometry(0,0,x,J),H);u.vertex=!0;null==K&&(K=l.getCenterInsertPoint(l.getBoundingBoxFromGeometry([u],!0)));u.geometry.x=K.x;u.geometry.y=K.y;return F(u)};c.actions.put("insertText",new Action("text",function(u){l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())&&l.startEditingAtCell(C("Text",60,
-30,l.appendFontSize("text;strokeColor=none;align=center;fillColor=none;html=1;verticalAlign=middle;whiteSpace=wrap;rounded=0;",l.vertexFontSize),null==u||mxEvent.isControlDown(u)||mxEvent.isMetaDown(u)||!l.isMouseInsertPoint()?null:l.getInsertPoint()))},null,null,"A")).isEnabled=p;c.actions.put("insertRectangle",new Action("rectangle",function(u){l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())&&C("",120,60,"whiteSpace=wrap;html=1;",null==u||mxEvent.isControlDown(u)||mxEvent.isMetaDown(u)||!l.isMouseInsertPoint()?
-null:l.getInsertPoint())},null,null,"D")).isEnabled=p;c.actions.put("insertNote",new Action("note",function(u){l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())&&C("",140,160,"shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;fontColor=#000000;darkOpacity=0.05;fillColor=#FFF9B2;strokeColor=none;fillStyle=solid;direction=west;gradientDirection=north;gradientColor=#FFF2A1;shadow=1;size=20;pointerEvents=1;",null==u||mxEvent.isControlDown(u)||mxEvent.isMetaDown(u)||!l.isMouseInsertPoint()?null:
-l.getInsertPoint())},null,null,"S")).isEnabled=p;c.actions.put("insertEllipse",new Action("ellipse",function(u){l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())&&C("",80,80,"ellipse;whiteSpace=wrap;html=1;",null==u||mxEvent.isControlDown(u)||mxEvent.isMetaDown(u)||!l.isMouseInsertPoint()?null:l.getInsertPoint())},null,null,"F")).isEnabled=p;c.actions.put("insertRhombus",new Action("rhombus",function(u){l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())&&C("",80,80,"rhombus;whiteSpace=wrap;html=1;",
-null==u||mxEvent.isControlDown(u)||mxEvent.isMetaDown(u)||!l.isMouseInsertPoint()?null:l.getInsertPoint())},null,null,"R")).isEnabled=p;c.actions.put("insertEdge",new Action("line",function(u){if(l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())){var x=l.defaultEdgeLength;u=null==u||mxEvent.isControlDown(u)||mxEvent.isMetaDown(u)||!l.isMouseInsertPoint()?null:l.getInsertPoint();null==u&&(u=l.getCenterInsertPoint(l.getBoundingBoxFromGeometry([J],!0)));var J=new mxCell("",new mxGeometry(0,0,x,0),
-"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;");J.geometry.setTerminalPoint(u,!0);J.geometry.setTerminalPoint(new mxPoint(u.x+J.geometry.width,u.y),!1);J.geometry.points=[];J.geometry.relative=!0;J.edge=!0;F(J)}},null,null,"C")).isEnabled=p;q=c.actions.put("toggleShapes",new Action("shapes",function(){null!=c.sidebarWindow?c.sidebarWindow.window.setVisible(!c.sidebarWindow.window.isVisible()):c.toggleShapesPanel(!c.isShapesPanelVisible())},null,null,Editor.ctrlKey+"+Shift+K"));q.setToggleAction(!0);
-q.setSelectedCallback(mxUtils.bind(this,function(){return null!=c.sidebarWindow&&c.sidebarWindow.window.isVisible()||null==c.sidebarWindow&&0<c.hsplitPosition}));c.addInsertMenuItems=mxUtils.bind(this,function(u,x,J){for(var H=0;H<J.length;H++)"-"==J[H]?u.addSeparator(x):c.addInsertItem(u,x,mxResources.get(J[H])+"...",J[H])});this.put("insert",new Menu(mxUtils.bind(this,function(u,x){"sketch"==Editor.currentTheme?(c.menus.addMenuItems(u,["toggleShapes"],x),c.menus.addSubmenu("table",u,x),u.addSeparator(x),
-c.insertTemplateEnabled&&!c.isOffline()&&c.menus.addMenuItems(u,["insertTemplate"],x),c.menus.addMenuItems(u,["insertImage","insertLink","-"],x),c.menus.addSubmenu("insertAdvanced",u,x,mxResources.get("advanced")),c.menus.addSubmenu("layout",u,x)):(this.addMenuItems(u,"insertRectangle insertEllipse insertRhombus - insertEdge insertNote - insertText insertLink - createShape insertFreehand - insertImage".split(" "),x),c.insertTemplateEnabled&&!c.isOffline()&&this.addMenuItems(u,["insertTemplate"],x),
-u.addSeparator(x),"min"==uiTheme||"simple"==Editor.currentTheme?(this.addSubmenu("layout",u,x),this.addSubmenu("insertLayout",u,x,mxResources.get("insert")),u.addSeparator(x),this.addSubmenu("table",u,x)):this.addSubmenu("insertLayout",u,x,mxResources.get("layout")),this.addSubmenu("insertAdvanced",u,x,mxResources.get("advanced")))})));this.put("table",new Menu(mxUtils.bind(this,function(u,x){c.menus.addInsertTableCellItem(u,x)})));this.put("insertLayout",new Menu(mxUtils.bind(this,function(u,x){c.addInsertMenuItems(u,
-x,"horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "))})));this.put("insertAdvanced",new Menu(mxUtils.bind(this,function(u,x){var J=["fromText","plantUml"].concat(window.isMermaidEnabled?["mermaid"]:[]).concat(["-","formatSql"]);c.addInsertMenuItems(u,x,J);u.addItem(mxResources.get("csv")+"...",null,function(){l.popupMenuHandler.hideMenu();c.showImportCsvDialog()},x,null,p());"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(u,
-["-","createShape","editDiagram"],x)})));this.put("openRecent",new Menu(function(u,x){var J=c.getRecent();if(null!=J){for(var H=0;H<J.length;H++)(function(K){var N=K.mode;N==App.MODE_GOOGLE?N="googleDrive":N==App.MODE_ONEDRIVE&&(N="oneDrive");u.addItem(K.title+" ("+mxResources.get(N)+")",null,function(){c.loadFile(K.id)},x)})(J[H]);u.addSeparator(x)}u.addItem(mxResources.get("reset"),null,function(){c.resetRecent()},x)}));this.put("openFrom",new Menu(function(u,x){null!=c.drive?u.addItem(mxResources.get("googleDrive")+
-"...",null,function(){c.pickFile(App.MODE_GOOGLE)},x):c.isModeEnabled(App.MODE_GOOGLE)&&u.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},x,null,!1);c.isModeReady(App.MODE_ONEDRIVE)?u.addItem(mxResources.get("oneDrive")+"...",null,function(){c.pickFile(App.MODE_ONEDRIVE)},x):c.isModeEnabled(App.MODE_ONEDRIVE)&&u.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},x,null,!1);c.isModeReady(App.MODE_DROPBOX)?u.addItem(mxResources.get("dropbox")+
-"...",null,function(){c.pickFile(App.MODE_DROPBOX)},x):c.isModeEnabled(App.MODE_DROPBOX)&&u.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},x,null,!1);u.addSeparator(x);c.isModeReady(App.MODE_GITHUB)&&u.addItem(mxResources.get("github")+"...",null,function(){c.pickFile(App.MODE_GITHUB)},x);c.isModeReady(App.MODE_GITLAB)&&u.addItem(mxResources.get("gitlab")+"...",null,function(){c.pickFile(App.MODE_GITLAB)},x);c.isModeReady(App.MODE_TRELLO)?u.addItem(mxResources.get("trello")+
-"...",null,function(){c.pickFile(App.MODE_TRELLO)},x):c.isModeEnabled(App.MODE_TRELLO)&&u.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},x,null,!1);u.addSeparator(x);isLocalStorage&&"0"!=urlParams.browser&&u.addItem(mxResources.get("browser")+"...",null,function(){c.pickFile(App.MODE_BROWSER)},x);"1"!=urlParams.noDevice&&u.addItem(mxResources.get("device")+"...",null,function(){c.pickFile(App.MODE_DEVICE)},x);c.isOffline()||(u.addSeparator(x),u.addItem(mxResources.get("url")+
-"...",null,function(){var J=new FilenameDialog(c,"",mxResources.get("open"),function(H){null!=H&&0<H.length&&(null==c.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(H):window.geOpenWindow((mxClient.IS_CHROMEAPP?"https://www.draw.io/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(H)))},mxResources.get("url"));c.showDialog(J.container,300,80,!0,!0);J.init()},x))}));Editor.enableCustomLibraries&&(this.put("newLibrary",new Menu(function(u,x){"undefined"!=
-typeof google&&"undefined"!=typeof google.picker&&(null!=c.drive?u.addItem(mxResources.get("googleDrive")+"...",null,function(){c.showLibraryDialog(null,null,null,null,App.MODE_GOOGLE)},x):c.isModeEnabled(App.MODE_GOOGLE)&&u.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},x,null,!1));c.isModeReady(App.MODE_ONEDRIVE)?u.addItem(mxResources.get("oneDrive")+"...",null,function(){c.showLibraryDialog(null,null,null,null,App.MODE_ONEDRIVE)},x):c.isModeEnabled(App.MODE_ONEDRIVE)&&
-u.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},x,null,!1);c.isModeReady(App.MODE_DROPBOX)?u.addItem(mxResources.get("dropbox")+"...",null,function(){c.showLibraryDialog(null,null,null,null,App.MODE_DROPBOX)},x):c.isModeEnabled(App.MODE_DROPBOX)&&u.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},x,null,!1);u.addSeparator(x);c.isModeReady(App.MODE_GITHUB)&&u.addItem(mxResources.get("github")+"...",null,function(){c.showLibraryDialog(null,
-null,null,null,App.MODE_GITHUB)},x);c.isModeReady(App.MODE_GITLAB)&&u.addItem(mxResources.get("gitlab")+"...",null,function(){c.showLibraryDialog(null,null,null,null,App.MODE_GITLAB)},x);c.isModeReady(App.MODE_TRELLO)?u.addItem(mxResources.get("trello")+"...",null,function(){c.showLibraryDialog(null,null,null,null,App.MODE_TRELLO)},x):c.isModeEnabled(App.MODE_TRELLO)&&u.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},x,null,!1);u.addSeparator(x);isLocalStorage&&
-"0"!=urlParams.browser&&u.addItem(mxResources.get("browser")+"...",null,function(){c.showLibraryDialog(null,null,null,null,App.MODE_BROWSER)},x);"1"!=urlParams.noDevice&&u.addItem(mxResources.get("device")+"...",null,function(){c.showLibraryDialog(null,null,null,null,App.MODE_DEVICE)},x);"1"==urlParams.confLib&&u.addItem(mxResources.get("confluenceCloud")+"...",null,function(){c.showLibraryDialog(null,null,null,null,"CONF_LIB")},x)})),this.put("openLibraryFrom",new Menu(function(u,x){"undefined"!=
-typeof google&&"undefined"!=typeof google.picker&&(null!=c.drive?u.addItem(mxResources.get("googleDrive")+"...",null,function(){c.pickLibrary(App.MODE_GOOGLE)},x):c.isModeEnabled(App.MODE_GOOGLE)&&u.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},x,null,!1));c.isModeReady(App.MODE_ONEDRIVE)?u.addItem(mxResources.get("oneDrive")+"...",null,function(){c.pickLibrary(App.MODE_ONEDRIVE)},x):c.isModeEnabled(App.MODE_ONEDRIVE)&&u.addItem(mxResources.get("oneDrive")+
-" ("+mxResources.get("loading")+"...)",null,function(){},x,null,!1);c.isModeReady(App.MODE_DROPBOX)?u.addItem(mxResources.get("dropbox")+"...",null,function(){c.pickLibrary(App.MODE_DROPBOX)},x):c.isModeEnabled(App.MODE_DROPBOX)&&u.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},x,null,!1);u.addSeparator(x);c.isModeReady(App.MODE_GITHUB)&&u.addItem(mxResources.get("github")+"...",null,function(){c.pickLibrary(App.MODE_GITHUB)},x);c.isModeReady(App.MODE_GITLAB)&&
-u.addItem(mxResources.get("gitlab")+"...",null,function(){c.pickLibrary(App.MODE_GITLAB)},x);c.isModeReady(App.MODE_TRELLO)?u.addItem(mxResources.get("trello")+"...",null,function(){c.pickLibrary(App.MODE_TRELLO)},x):c.isModeEnabled(App.MODE_TRELLO)&&u.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},x,null,!1);u.addSeparator(x);isLocalStorage&&"0"!=urlParams.browser&&u.addItem(mxResources.get("browser")+"...",null,function(){c.pickLibrary(App.MODE_BROWSER)},
-x);"1"!=urlParams.noDevice&&u.addItem(mxResources.get("device")+"...",null,function(){c.pickLibrary(App.MODE_DEVICE)},x);c.isOffline()||(u.addSeparator(x),u.addItem(mxResources.get("url")+"...",null,function(){var J=new FilenameDialog(c,"",mxResources.get("open"),function(H){if(null!=H&&0<H.length&&c.spinner.spin(document.body,mxResources.get("loading"))){var K=H;c.editor.isCorsEnabledForUrl(H)||(K=PROXY_URL+"?url="+encodeURIComponent(H));mxUtils.get(K,function(N){if(200<=N.getStatus()&&299>=N.getStatus()){c.spinner.stop();
-try{c.loadLibrary(new UrlLibrary(c,N.getText(),H)),c.showSidebar()}catch(M){c.handleError(M,mxResources.get("errorLoadingFile"))}}else c.spinner.stop(),c.handleError(null,mxResources.get("errorLoadingFile"))},function(){c.spinner.stop();c.handleError(null,mxResources.get("errorLoadingFile"))})}},mxResources.get("url"));c.showDialog(J.container,300,80,!0,!0);J.init()},x));"1"==urlParams.confLib&&(u.addSeparator(x),u.addItem(mxResources.get("confluenceCloud")+"...",null,function(){c.showRemotelyStoredLibrary(mxResources.get("libraries"))},
-x))})));this.put("edit",new Menu(mxUtils.bind(this,function(u,x){this.addMenuItems(u,"undo redo - cut copy copyAsImage paste delete - duplicate - findReplace - editData editTooltip - editStyle editGeometry - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));q=c.actions.addAction("comments",mxUtils.bind(this,function(){if(null==this.commentsWindow)this.commentsWindow=new CommentsWindow(c,document.body.offsetWidth-380,120,300,350),this.commentsWindow.window.addListener("show",
-function(){c.fireEvent(new mxEventObject("comments"))}),this.commentsWindow.window.addListener("hide",function(){c.fireEvent(new mxEventObject("comments"))}),this.commentsWindow.window.setVisible(!0),c.fireEvent(new mxEventObject("comments"));else{var u=!this.commentsWindow.window.isVisible();this.commentsWindow.window.setVisible(u);this.commentsWindow.refreshCommentsTime();u&&this.commentsWindow.hasError&&this.commentsWindow.refreshComments()}}));q.setToggleAction(!0);q.setSelectedCallback(mxUtils.bind(this,
-function(){return null!=this.commentsWindow&&this.commentsWindow.window.isVisible()}));c.editor.addListener("fileLoaded",mxUtils.bind(this,function(){null!=this.commentsWindow&&(this.commentsWindow.destroy(),this.commentsWindow=null)}));this.get("viewPanels").funct=function(u,x){var J=c.getCurrentFile();c.menus.addMenuItems(u,"toggleShapes format ruler - findReplace layers tags chatWindowTitle outline -".split(" "),x);c.commentsSupported()&&c.menus.addMenuItems(u,["-","comments"],x);null!=J&&J.isRealtimeEnabled()&&
-J.isRealtimeSupported()&&c.menus.addMenuItems(u,["-","showRemoteCursors","shareCursor"],x);c.menus.addMenuItems(u,["-","fullscreen"],x)};this.put("view",new Menu(mxUtils.bind(this,function(u,x){if("simple"==Editor.currentTheme){var J=c.getCurrentFile();c.menus.addMenuItems(u,["toggleShapes","format"],x);c.isPageMenuVisible()&&c.menus.addMenuItems(u,["pageTabs"],x);c.menus.addMenuItems(u,["ruler","-","search"],x);if(isLocalStorage||mxClient.IS_CHROMEAPP){var H=c.menus.addMenuItem(u,"scratchpad",x);
-(!c.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&c.menus.addLinkToItem(H,"https://www.drawio.com/doc/faq/scratchpad")}c.menus.addMenuItems(u,"- findReplace layers tags chatWindowTitle outline -".split(" "),x);c.commentsSupported()&&c.menus.addMenuItems(u,["comments"],x);null!=J&&J.isRealtimeEnabled()&&J.isRealtimeSupported()&&this.addMenuItems(u,["showRemoteCursors"],x);this.addMenuItems(u,["-","fullscreen"],x)}else{this.addMenuItems(u,["format","outline","layers","tags","chatWindowTitle"].concat(c.commentsSupported()?
-["comments","-"]:["-"]));this.addMenuItems(u,["-","search"],x);if(isLocalStorage||mxClient.IS_CHROMEAPP)H=this.addMenuItem(u,"scratchpad",x),(!c.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(H,"https://www.drawio.com/doc/faq/scratchpad");this.addMenuItems(u,["toggleShapes","-","pageView","pageScale"]);this.addSubmenu("units",u,x);u.addSeparator(x);c.isPageMenuVisible()&&c.menus.addMenuItems(u,["pageTabs"],x);this.addMenuItems(u,"ruler - tooltips animations - grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),
-x);"1"!=urlParams.sketch&&this.addMenuItems(u,["-","fullscreen"],x)}})));this.put("editCell",new Menu(mxUtils.bind(this,function(u,x){this.addMenuItems(u,"editLink editShape editImage crop - editData copyData pasteData - editConnectionPoints editGeometry - editTooltip editStyle - edit".split(" "),x)})));this.put("currentPage",new Menu(mxUtils.bind(this,function(u,x){var J=c.currentPage;null!=J&&(u.addItem(mxResources.get("rename")+"...",null,mxUtils.bind(this,function(){c.renamePage(J,J.getName())}),
-x),u.addItem(mxResources.get("delete"),null,mxUtils.bind(this,function(){c.removePage(J)}),x),1<c.pages.length&&(c.menus.addSubmenu("movePage",u,x,mxResources.get("move")),u.addSeparator(x)),u.addSeparator(x),u.addItem(mxResources.get("duplicate"),null,mxUtils.bind(this,function(){c.duplicatePage(J,mxResources.get("copyOf",[J.getName()]))}),x),1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=c.getServiceName()||u.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,
-function(){c.editor.editAsNew(c.getFileData(!0,null,null,null,!0,!0))}),x)))})));this.put("pages",new Menu(mxUtils.bind(this,function(u,x){var J=c.currentPage;c.editor.graph.isLightboxView()||(u.addItem(mxResources.get("insertPage"),null,mxUtils.bind(this,function(){try{c.insertPage()}catch(K){c.handleError(K)}}),x,null,c.editor.graph.isEnabled()),u.addSeparator(x));if(null!=c.pages)for(var H=0;H<c.pages.length;H++)mxUtils.bind(this,function(K){var N=null;N=c.pages[K]==J&&!c.editor.graph.isLightboxView()&&
-c.editor.graph.isEnabled()?c.menus.addSubmenu("currentPage",u,x,c.getShortPageName(J)):u.addItem(c.getShortPageName(c.pages[K]),null,mxUtils.bind(this,function(){c.selectPage(c.pages[K])}),x);var M=c.pages[K].getId();N.setAttribute("title",c.pages[K].getName()+" ("+(K+1)+"/"+c.pages.length+")"+(null!=M?" ["+M+"]":""));c.pages[K]==J&&u.addCheckmark(N,Editor.checkmarkImage)})(H)})));if(EditorUi.isElectronApp){var Q="1"==urlParams.enableSpellCheck;q=c.actions.addAction("spellCheck",function(){c.toggleSpellCheck();
-Q=!Q;c.alert(mxResources.get("restartForChangeRequired"))});q.setToggleAction(!0);q.setSelectedCallback(function(){return Q});var S="1"==urlParams.enableStoreBkp;q=c.actions.addAction("autoBkp",function(){c.toggleStoreBkp();S=!S});q.setToggleAction(!0);q.setSelectedCallback(function(){return S});var V="1"==urlParams.isGoogleFontsEnabled;q=c.actions.addAction("googleFonts",function(){c.toggleGoogleFonts();V=!V;c.alert(mxResources.get("restartForChangeRequired"))});q.setToggleAction(!0);q.setSelectedCallback(function(){return V});
-c.actions.addAction("openDevTools",function(){c.openDevTools()});c.actions.addAction("drafts...",function(){var u=new FilenameDialog(c,EditorUi.draftSaveDelay/1E3+"",mxResources.get("apply"),mxUtils.bind(this,function(x){x=parseInt(x);0<=x&&(EditorUi.draftSaveDelay=1E3*x,EditorUi.enableDrafts=0<x,mxSettings.setDraftSaveDelay(x),mxSettings.save())}),mxResources.get("draftSaveInt"));c.showDialog(u.container,320,80,!0,!0);u.init()})}var P=this.get("language");this.put("extras",new Menu(mxUtils.bind(this,
-function(u,x){if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme){null==P||"1"==urlParams.embed&&null!=urlParams.lang||c.menus.addSubmenu("language",u,x);"1"==urlParams.embed&&"1"!=urlParams.atlas||"1"==urlParams.extAuth||"1"==urlParams.embedInline||c.menus.addSubmenu("appearance",u,x);"1"!=urlParams.embed&&"1"!=urlParams.extAuth&&c.mode!=App.MODE_ATLAS&&c.menus.addSubmenu("theme",u,x);u.addSeparator(x);c.menus.addSubmenu("units",u,x);c.menus.addMenuItems(u,
-"- copyConnect collapseExpand - tooltips animations -".split(" "),x);var J=c.getCurrentFile();"simple"!=Editor.currentTheme&&(null!=J&&J.isRealtimeEnabled()&&J.isRealtimeSupported()&&this.addMenuItems(u,["showRemoteCursors"],x),c.menus.addMenuItems(u,["ruler","-"],x));EditorUi.isElectronApp&&c.menus.addMenuItems(u,"- googleFonts spellCheck autoBkp drafts -".split(" "),x);this.addSubmenu("diagramLanguage",u,x);u.addSeparator(x);c.mode!=App.MODE_ATLAS&&c.menus.addMenuItem(u,"configuration",x);u.addSeparator(x)}else"1"==
-urlParams.embed&&null!=urlParams.lang||this.addSubmenu("language",u,x),"1"==urlParams.embed&&"1"!=urlParams.atlas||c.menus.addSubmenu("appearance",u,x),"1"!=urlParams.embed&&"1"!=urlParams.extAuth&&c.mode!=App.MODE_ATLAS&&this.addSubmenu("theme",u,x),EditorUi.isElectronApp&&this.addMenuItems(u,"- googleFonts spellCheck autoBkp drafts -".split(" "),x),u.addSeparator(x),J=this.addSubmenu("adaptiveColors",u,x),(!c.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&c.menus.addLinkToItem(J,"https://github.com/jgraph/drawio/discussions/4713"),
-"undefined"!==typeof MathJax&&(J=this.addMenuItem(u,"mathematicalTypesetting",x),(!c.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(J,"https://www.drawio.com/doc/faq/math-typesetting")),"1"!=urlParams.embed&&(J=c.getCurrentFile(),null!=J&&J.isRealtimeEnabled()&&J.isRealtimeSupported()&&this.addMenuItems(u,["-","showRemoteCursors","shareCursor"],x),u.addSeparator(x),(isLocalStorage||mxClient.IS_CHROMEAPP)&&this.addMenuItems(u,["showStartScreen"],x),this.addMenuItems(u,
-["autosave"],x)),this.addMenuItems(u,["-","copyConnect","collapseExpand","-"],x),this.addSubmenu("diagramLanguage",u,x),this.addMenuItems(u,["editDiagram","-"],x),!c.isOfflineApp()&&isLocalStorage&&this.addMenuItem(u,"plugins",x),this.addMenuItems(u,["configuration"],x)})));this.put("movePage",new Menu(mxUtils.bind(this,function(u,x){var J=c.currentPage,H=c.getPageIndex(J);if(null!=c.pages)for(var K=0;K<c.pages.length;K++)K!=H&&function(N){u.addItem(c.getShortPageName(c.pages[N]),null,function(){c.movePage(H,
-N);c.scrollToPage(J,!0)},x)}(K)})));this.put("share",new Menu(mxUtils.bind(this,function(u,x){if(!c.isStandaloneApp()){var J=c.isOffline(!0)?mxResources.get("offline"):c.getNetworkStatus();null!=J&&(u.addItem(J,null,null,x,null,!1),u.addSeparator(x));c.menus.addMenuItems(u,["share"],x)}this.addMenuItem(u,"publishLink",x,null,null,mxResources.get("publish")+"...");null!=c.getMainUser()&&this.addMenuItems(u,["accounts"],x)})));this.put("diagram",new Menu(mxUtils.bind(this,function(u,x){var J=c.getCurrentFile();
-"simple"!=Editor.currentTheme&&(c.menus.addSubmenu("extras",u,x,mxResources.get("settings")),u.addSeparator(x));var H="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)c.menus.addMenuItems(u,"new open - synchronize properties - save saveAs -".split(" "),x);else if(c.mode==App.MODE_ATLAS){"1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&c.menus.addMenuItems(u,["-","save"],x);if("1"==urlParams.saveAndExit||"1"==urlParams.noSaveBtn&&"0"!=
-urlParams.saveAndExit||c.mode==App.MODE_ATLAS)c.menus.addMenuItems(u,["saveAndExit"],x),null!=J&&J.isRevisionHistorySupported()&&c.menus.addMenuItems(u,["revisionHistory"],x);u.addSeparator(x)}else c.mode==App.MODE_ATLAS?c.menus.addMenuItems(u,["save","synchronize","-"],x):"1"!=urlParams.noFileMenu&&(c.menus.addSubmenu("file",u,x),u.addSeparator(x),"min"==Editor.currentTheme&&(c.menus.addMenuItems(u,"toggleShapes format layers tags chatWindowTitle - findReplace".split(" "),x),c.commentsSupported()&&
-c.menus.addMenuItems(u,["comments"],x),u.addSeparator(x)));c.menus.addSubmenu("exportAs",u,x);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"atlassian"==c.getServiceName()?c.menus.addMenuItems(u,["import"],x):"1"!=urlParams.noFileMenu&&c.menus.addSubmenu("importFrom",u,x);"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme?(c.menus.addMenuItems(u,["-","findReplace"],x),c.commentsSupported()&&c.menus.addMenuItems(u,["comments","-"],x),c.menus.addMenuItems(u,"toggleShapes format layers tags chatWindowTitle -".split(" "),
-x),c.menus.addMenuItems(u,["pageSetup"],x)):"min"!=Editor.currentTheme&&(this.addMenuItems(u,["-"],x),this.addSubmenu("newLibrary",u,x),this.addSubmenu("openLibraryFrom",u,x));u.addSeparator(x);"1"==urlParams.noFileMenu||mxClient.IS_IOS&&navigator.standalone||c.menus.addMenuItems(u,["print"],x);H||"min"==Editor.currentTheme||null==J||null==c.fileNode||"1"==urlParams.embedInline||(H=null!=J.getTitle()?J.getTitle():c.defaultFilename,/(\.html)$/i.test(H)||this.addMenuItems(u,["-","properties"]));u.addSeparator(x);
-"simple"==Editor.currentTheme&&(c.menus.addSubmenu("extras",u,x,mxResources.get("settings")),u.addSeparator(x));c.menus.addSubmenu("help",u,x);u.addSeparator(x);"1"==urlParams.embed&&("1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&c.menus.addMenuItems(u,["save"],x),"1"==urlParams.saveAndExit||"1"==urlParams.noSaveBtn&&"0"!=urlParams.saveAndExit)&&(c.menus.addMenuItems(u,["saveAndExit"],x),null!=J&&J.isRevisionHistorySupported()&&c.menus.addMenuItems(u,["revisionHistory"],x));"1"!=urlParams.embed&&
-c.mode!=App.MODE_ATLAS||"1"==urlParams.noExitBtn&&c.mode!=App.MODE_ATLAS||c.menus.addMenuItems(u,["exit"],x);"1"!=urlParams.embed&&null!=J&&"undefined"==typeof AtlasFile&&c.menus.addMenuItems(u,["-","close"],x)})));this.put("save",new Menu(mxUtils.bind(this,function(u,x){var J=c.getCurrentFile();null==J||J.constructor!=DriveFile&&J.constructor!=OneDriveFile?(c.menus.addMenuItems(u,["save","saveAs","-","rename"],x),c.isOfflineApp()?navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&
-this.addMenuItems(u,["upload"],x):c.menus.addMenuItems(u,["makeCopy"],x)):c.menus.addMenuItems(u,["save","makeCopy","-","rename","moveToFolder"],x);c.menus.addMenuItems(u,["-","autosave"],x);null!=J&&J.isRevisionHistorySupported()&&c.menus.addMenuItems(u,["-","revisionHistory"],x)})));this.put("file",new Menu(mxUtils.bind(this,function(u,x){var J="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme;if("1"==urlParams.embed)this.addSubmenu("importFrom",u,x),this.addSubmenu("exportAs",
-u,x),this.addSubmenu("embed",u,x),"1"==urlParams.libraries&&(this.addMenuItems(u,["-"],x),this.addSubmenu("newLibrary",u,x),this.addSubmenu("openLibraryFrom",u,x)),c.isRevisionHistorySupported()&&this.addMenuItems(u,["-","revisionHistory"],x),this.addMenuItems(u,["-","pageSetup","print","-","rename"],x),"1"!=urlParams.embedInline&&("1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&this.addMenuItems(u,["saveAndExit"],x):(this.addMenuItems(u,["save"],x),"1"==urlParams.saveAndExit&&this.addMenuItems(u,
-["saveAndExit"],x))),"1"!=urlParams.noExitBtn&&this.addMenuItems(u,["exit"],x);else if(J){J=c.getCurrentFile();c.menus.addMenuItems(u,["new"],x);c.menus.addSubmenu("openFrom",u,x);isLocalStorage&&this.addSubmenu("openRecent",u,x);u.addSeparator(x);c.menus.addMenuItems(u,["-","save"],x);null!=J&&J.constructor==DriveFile||c.menus.addMenuItems(u,["saveAs"],x);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null==J||J.constructor==LocalFile&&null==J.fileHandle||c.menus.addMenuItems(u,["synchronize"],x);
-u.addSeparator(x);null!=J&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"sketch"!=Editor.currentTheme||this.addMenuItem(u,"publishLink",x,null,null,mxResources.get("publish")+"..."),"simple"==Editor.currentTheme||J.constructor!=DriveFile&&J.constructor!=GitHubFile&&J.constructor!=OneDriveFile||c.menus.addMenuItems(u,["share"],x));u.addSeparator(x);null!=J&&J.isRenamable()&&this.addMenuItems(u,["rename"],x);c.isOfflineApp()?navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&this.addMenuItems(u,
-["upload"],x):(c.menus.addMenuItems(u,["makeCopy"],x),null!=J&&(J.constructor!=OneDriveFile&&J.constructor!=DriveFile||c.menus.addMenuItems(u,["moveToFolder"],x),u.addSeparator(x),null!=J.getFolderUrl()&&c.menus.addMenuItems(u,["openFolder"],x),null!=J.getFileUrl()&&c.menus.addMenuItems(u,["openFile"],x)));u.addSeparator(x);null!=J&&J.isRevisionHistorySupported()&&c.menus.addMenuItems(u,["revisionHistory"],x);if(null!=J&&null!=c.fileNode&&"1"!=urlParams.embedInline){var H=null!=J.getTitle()?J.getTitle():
-c.defaultFilename;(J.constructor==DriveFile&&null!=J.sync&&J.sync.isConnected()||!/(\.html)$/i.test(H))&&this.addMenuItems(u,["properties"],x)}"simple"==Editor.currentTheme&&c.menus.addMenuItems(u,["-","autosave"],x)}else J=this.editorUi.getCurrentFile(),null!=J&&J.constructor==DriveFile?(J.isRestricted()&&this.addMenuItems(u,["exportOptionsDisabled"],x),this.addMenuItems(u,["save","-","share"],x),H=this.addMenuItem(u,"synchronize",x),(!c.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&
-this.addLinkToItem(H,"https://www.drawio.com/doc/faq/synchronize"),u.addSeparator(x)):this.addMenuItems(u,["new"],x),this.addSubmenu("openFrom",u,x),isLocalStorage&&this.addSubmenu("openRecent",u,x),null!=J&&J.constructor==DriveFile?this.addMenuItems(u,"new - rename makeCopy openFolder moveToFolder".split(" "),x):(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null==J||J.constructor==LocalFile&&null==J.fileHandle||(u.addSeparator(x),H=this.addMenuItem(u,"synchronize",x),(!c.isOffline()||mxClient.IS_CHROMEAPP||
-EditorUi.isElectronApp)&&this.addLinkToItem(H,"https://www.drawio.com/doc/faq/synchronize")),this.addMenuItems(u,["-","save","saveAs","-"],x),mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=c.getServiceName()||c.isOfflineApp()||null==J||this.addMenuItems(u,["share","-"],x),null!=J&&J.isRenamable()&&this.addMenuItems(u,["rename"],x),c.isOfflineApp()?navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&this.addMenuItems(u,["upload"],x):(this.addMenuItems(u,["makeCopy"],x),null!=
-J&&(J.constructor==OneDriveFile&&this.addMenuItems(u,["moveToFolder"],x),null!=J.getFolderUrl()&&c.menus.addMenuItems(u,["openFolder"],x)))),u.addSeparator(x),this.addSubmenu("importFrom",u,x),this.addSubmenu("exportAs",u,x),u.addSeparator(x),this.addSubmenu("embed",u,x),this.addSubmenu("publish",u,x),u.addSeparator(x),this.addSubmenu("newLibrary",u,x),this.addSubmenu("openLibraryFrom",u,x),c.isRevisionHistorySupported()&&this.addMenuItems(u,["-","revisionHistory"],x),null!=J&&null!=c.fileNode&&"1"!=
-urlParams.embedInline&&(H=null!=J.getTitle()?J.getTitle():c.defaultFilename,(J.constructor==DriveFile&&null!=J.sync&&J.sync.isConnected()||!/(\.html)$/i.test(H))&&this.addMenuItems(u,["-","properties"])),this.addMenuItems(u,["-","pageSetup"],x),mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(u,["print"],x),this.addMenuItems(u,["-","close"])})));this.put("fontFamily",new Menu(mxUtils.bind(this,function(u,x){function J(L){var O=encodeURIComponent(L.name)+(null==L.url?"":"@"+encodeURIComponent(L.url));
-if(!K[O]){for(var R=L.name,T=0;null!=A[R.toLowerCase()];)R=L.name+" ("+ ++T+")";null==n[O]&&(E.push({name:L.name,url:L.url,label:R,title:L.url}),A[R.toLowerCase()]=L,n[O]=L)}}for(var H=mxUtils.bind(this,function(L,O,R,T,U){var W=c.editor.graph,X=this.styleChange(u,null!=T?T:L,[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],[L,null!=O?encodeURIComponent(O):null,null],null,x,function(){W.setFont(L,O);c.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY,"fontSource",
-"FType"],"values",[L,null!=O?encodeURIComponent(O):null,null],"cells",[W.cellEditor.getEditingCell()]))},function(){W.updateLabelElements(W.getSelectionCells(),function(Y){Y.removeAttribute("face");Y.style.fontFamily=null;"PRE"==Y.nodeName&&W.replaceElement(Y,"div")})});R&&(R=document.createElement("img"),R.className="geAdaptiveAsset",R.setAttribute("src",Editor.crossImage),R.setAttribute("title",mxResources.get("delete")),R.setAttribute("valign","absmiddle"),R.setAttribute("border","0"),R.style.position=
-"relative",R.style.top="2px",R.style.width="14px",R.style.cursor="default",R.style.margin="0 3px",X.firstChild.nextSibling.nextSibling.appendChild(R),mxEvent.addListener(R,mxClient.IS_POINTER?"pointerup":"mouseup",mxUtils.bind(this,function(Y){this.removeCustomFont(L,O);this.editorUi.hideCurrentMenu();mxEvent.consume(Y)})));Graph.addFont(L,O);X.firstChild.nextSibling.style.fontFamily=L;U=null!=T?T:L;null!=O&&(U+=" ("+O+")");X.setAttribute("title",U)}),K={},N=0;N<this.defaultFonts.length;N++){var M=
-this.defaultFonts[N];"string"===typeof M?H(M):null!=M.fontFamily&&null!=M.fontUrl&&(K[encodeURIComponent(M.fontFamily)+"@"+encodeURIComponent(M.fontUrl)]=!0,H(M.fontFamily,M.fontUrl))}u.addSeparator(x);var n={},A={},E=[];for(N=0;N<this.customFonts.length;N++)J(this.customFonts[N]);E.sort(function(L,O){return L.label<O.label?-1:L.label>O.label?1:0});if(0<E.length){for(N=0;N<E.length;N++)H(E[N].name,E[N].url,!0,E[N].label);u.addSeparator(x)}u.addItem(mxResources.get("reset"),null,mxUtils.bind(this,
-function(){this.customFonts=[];c.fireEvent(new mxEventObject("customFontsChanged"))}),x);u.addSeparator(x);u.addItem(mxResources.get("custom")+"...",null,mxUtils.bind(this,function(){var L=this.editorUi.editor.graph,O=L.getStylesheet().getDefaultVertexStyle()[mxConstants.STYLE_FONTFAMILY],R="s",T=null;if(L.isEditing()){var U=L.getSelectedEditingElement();if(null!=U){var W=mxUtils.getCurrentStyle(U);if(null!=W){O=mxUtils.getCssFontFamily(W.fontFamily);W=L.getView().getState(L.cellEditor.getEditingCell());
-T=null!=W?W.style.fontSource:null;for(null!=T&&(T=decodeURIComponent(T));null!=U&&U!=L.cellEditor.textarea;){if(U.nodeType==mxConstants.NODETYPE_ELEMENT)if(null!=U.getAttribute("data-font-src")){T=U.getAttribute("data-font-src");break}else if(U.getAttribute("face")==O){T=null;break}U=U.parentNode}null!=T&&(Graph.isGoogleFontUrl(T)?(T=null,R="g"):R="w")}}}else W=L.getView().getState(L.getSelectionCell()),null!=W&&(O=W.style[mxConstants.STYLE_FONTFAMILY]||O,U=W.style.fontSource,null!=U&&(U=decodeURIComponent(U),
-Graph.isGoogleFontUrl(U)?R="g":(R="w",T=U)));null!=T&&T.substring(0,PROXY_URL.length)==PROXY_URL&&(T=decodeURIComponent(T.substr((PROXY_URL+"?url=").length)));var X=null;document.activeElement==L.cellEditor.textarea&&(X=L.cellEditor.saveSelection());O=new FontDialog(this.editorUi,O,T,R,mxUtils.bind(this,function(Y,Z,ca){null!=X&&(L.cellEditor.restoreSelection(X),X=null);if(null!=Y&&0<Y.length)if(this.addCustomFont(Y,Z),L.isEditing())L.setFont(Y,Z);else{L.getModel().beginUpdate();try{L.stopEditing(!1),
-L.setCellStyles(mxConstants.STYLE_FONTFAMILY,Y),L.setCellStyles("fontSource",null!=Z?encodeURIComponent(Z):null),L.setCellStyles("FType",null)}finally{L.getModel().endUpdate()}}}));this.editorUi.showDialog(O.container,380,130+(Editor.enableWebFonts?70:0)+("0"!=urlParams.isGoogleFontsEnabled?50:0),!0,!0);O.init()}),x,null,!0)})))}})();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")};
+if("string"!==typeof p&&p.fontFamily==f&&p.fontUrl==c||"string"===typeof p&&p==f&&null==c)return!0}return!1};Menus.prototype.addCustomFont=function(f,c){null==f||this.containsFont(f,c)||(this.customFonts.push({name:f,url:c}),this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts)))};var e=Menus.prototype.init;Menus.prototype.init=function(){function f(q,y,D){c.isExportToCanvas()?c.showExportDialog(mxResources.get("image"),!1,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",
+mxUtils.bind(this,function(J,L,K,n,z,G,M,N,Q,S,T,W,X){var Z=parseInt(J);!isNaN(Z)&&0<Z&&(c.exportImage(Z/100,L&&"png"==q,K,n,z&&"png"==q,M,!N,Q,q,T,null,W,X),null!=D&&D(J,L,K,n,z,G,M,N,Q,S,T,W,X))}),!0,y,q,!0):c.isOffline()||mxClient.IS_IOS&&navigator.standalone||c.showRemoteExportDialog(mxResources.get("export"),null,mxUtils.bind(this,function(J,L,K,n,z){c.downloadFile(L&&"png"==q?"xmlpng":q,null,null,J,null,null,K,n,z)}),!1,!0)}e.apply(this,arguments);var c=this.editorUi,l=c.editor.graph,p=mxUtils.bind(l,
+l.isEnabled);"1"==urlParams.noFileMenu&&(this.defaultMenuItems=this.defaultMenuItems.filter(function(q){return"file"!=q}));c.actions.addAction("new...",function(){var q=c.isOffline(),y=new NewDialog(c,q,!(c.mode==App.MODE_DEVICE&&"chooseFileSystemEntries"in window));c.showDialog(y.container,q?350:620,q?70:460,!0,!0,function(D){null!=c.sidebar&&c.sidebar.hideTooltip();D&&null==c.getCurrentFile()&&c.showSplash()});y.init()});var v=mxUtils.bind(this,function(q){l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())&&
+(q=new NewDialog(c,null,!1,function(y){c.hideDialog();if(null!=y){var D=c.editor.graph.getFreeInsertPoint();l.setSelectionCells(c.importXml(y,Math.max(D.x,20),Math.max(D.y,20),!0,null,null,!0));l.scrollCellToVisible(l.getSelectionCell())}},null,null,null,null,null,null,null,null,null,null,!1,mxResources.get("insert"),null,null,q),c.showDialog(q.container,620,460,!0,!0,function(){c.sidebar.hideTooltip()}),q.init())});Editor.enableChatGpt&&c.isExternalDataComms()&&"draw.io"==c.getServiceName()&&"undefined"!==
+typeof mxMermaidToDrawio&&window.isMermaidEnabled&&(c.actions.put("generate",new Action("generate...",function(){v(!0)})).isEnabled=p);c.actions.put("insertTemplate",new Action("template...",function(){v()})).isEnabled=p;var t=c.actions.addAction("shareCursor",function(){c.setShareCursorPosition(!c.isShareCursorPosition())});t.setToggleAction(!0);t.setSelectedCallback(function(){return c.isShareCursorPosition()});t=c.actions.addAction("showRemoteCursors",function(){c.setShowRemoteCursors(!c.isShowRemoteCursors())});
+t.setToggleAction(!0);t.setSelectedCallback(function(){return c.isShowRemoteCursors()});t=c.actions.addAction("points",function(){c.editor.graph.view.setUnit(mxConstants.POINTS)});t.setToggleAction(!0);t.setSelectedCallback(function(){return c.editor.graph.view.unit==mxConstants.POINTS});t=c.actions.addAction("inches",function(){c.editor.graph.view.setUnit(mxConstants.INCHES)});t.setToggleAction(!0);t.setSelectedCallback(function(){return c.editor.graph.view.unit==mxConstants.INCHES});t=c.actions.addAction("millimeters",
+function(){c.editor.graph.view.setUnit(mxConstants.MILLIMETERS)});t.setToggleAction(!0);t.setSelectedCallback(function(){return c.editor.graph.view.unit==mxConstants.MILLIMETERS});t=c.actions.addAction("meters",function(){c.editor.graph.view.setUnit(mxConstants.METERS)});t.setToggleAction(!0);t.setSelectedCallback(function(){return c.editor.graph.view.unit==mxConstants.METERS});this.put("units",new Menu(mxUtils.bind(this,function(q,y){this.addMenuItems(q,["points","inches","millimeters","meters"],
+y);"min"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme||c.menus.addMenuItems(q,["-","pageScale"],y)})));t=c.actions.addAction("pageTabs",function(){c.setTabContainerVisible(!c.isTabContainerVisible(),!0)});t.setToggleAction(!0);t.setSelectedCallback(function(){return c.isTabContainerVisible()});t=c.actions.addAction("ruler",function(){c.setRulerVisible(!c.isRulerVisible())});t.setEnabled(c.canvasSupported&&9!=document.documentMode);t.setToggleAction(!0);t.setSelectedCallback(function(){return c.isRulerVisible()});
+t=c.actions.addAction("fullscreen",function(){if("1"==urlParams.embedInline)c.setInlineFullscreen(!Editor.inlineFullscreen);else{var q=mxUtils.isAncestorNode(document.body,c.container)?c.container:c.editor.graph.container;null!=q&&(null==document.fullscreenElement?(document.body.requestFullscreen(),q.classList.add("geFullscreen")):(document.exitFullscreen(),q.classList.remove("geFullscreen")))}});t.visible="1"==urlParams.embedInline||window==window.top&&document.fullscreenEnabled&&null!=document.body.requestFullscreen;
+t.setToggleAction(!0);t.setSelectedCallback(function(){return"1"==urlParams.embedInline?Editor.inlineFullscreen:null!=document.fullscreenElement});t=c.actions.put("lightMode",new Action("light",function(q){c.setAndPersistDarkMode(!1)}));t.setToggleAction(!0);t.setSelectedCallback(function(){return!c.isAutoDarkMode(!0)&&!Editor.isDarkMode()});t=c.actions.put("darkMode",new Action("dark",function(q){c.setAndPersistDarkMode(!0)}));t.setToggleAction(!0);t.setSelectedCallback(function(){return!c.isAutoDarkMode(!0)&&
+Editor.isDarkMode()});t=c.actions.put("autoMode",new Action("automatic",function(q){c.setAndPersistDarkMode("auto")}));t.setToggleAction(!0);t.setSelectedCallback(function(){return c.isAutoDarkMode(!0)});c.actions.addAction("properties...",function(){c.getPublicUrl(c.getCurrentFile(),function(q){q=new FilePropertiesDialog(c,q);c.showDialog(q.container,340,200,!0,!0);q.init()})}).isEnabled=p;window.mxFreehand&&(c.actions.put("insertFreehand",new Action("freehand...",function(){if(l.isEnabled()){if(null==
+c.freehandWindow){var q=!mxClient.IS_IE&&!mxClient.IS_IE11;c.freehandWindow=new FreehandWindow(c,document.body.offsetWidth-420,102,176,q?126:90,q)}l.freehand.isDrawing()?l.freehand.stopDrawing():l.freehand.startDrawing();c.freehandWindow.window.setVisible(!0)}},null,null,"X")).isEnabled=function(){return p()&&mxClient.IS_SVG});c.actions.put("exportXml",new Action("formatXml...",function(){var q=document.createElement("div");q.style.whiteSpace="nowrap";var y=null==c.pages||1>=c.pages.length,D=document.createElement("h3");
+mxUtils.write(D,mxResources.get("formatXml"));D.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";q.appendChild(D);var J=c.addCheckbox(q,mxResources.get("selectionOnly"),!1,l.isSelectionEmpty()),L=c.addCheckbox(q,mxResources.get("compressed"),Editor.defaultCompressed),K=c.addCheckbox(q,mxResources.get("allPages"),!y,y);K.style.marginBottom="16px";mxEvent.addListener(J,"change",function(){J.checked?K.setAttribute("disabled","disabled"):K.removeAttribute("disabled")});q=
+new CustomDialog(c,q,mxUtils.bind(this,function(){c.downloadFile("xml",!L.checked,null,!J.checked,y||!K.checked)}),null,mxResources.get("export"));c.showDialog(q.container,300,200,!0,!0)}));Editor.enableExportUrl&&c.actions.put("exportUrl",new Action("url...",function(){c.showPublishLinkDialog(mxResources.get("url"),null,null,null,null,null,null,null,function(q,y,D,J,L,K,n,z,G,M,N,Q){n=[];J&&G&&n.push("tags=%7B%7D");q=new EmbedDialog(c,c.createLink(q,y,!0,J,L,K,null,!0,n,null,D,null,Q));c.showDialog(q.container,
+450,240,!0,!0);q.init()},null,!0)}));c.actions.put("exportHtml",new Action("formatHtmlEmbedded...",function(){c.getPublicUrl(c.getCurrentFile(),function(q){c.showHtmlDialog(mxResources.get("export"),null,q,function(y,D,J,L,K,n,z,G,M,N,Q,S){c.createHtml(y,D,J,L,K,n,z,G,M,N,Q,mxUtils.bind(this,function(T,W){var X=c.getBaseFilename(z);T='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n<!DOCTYPE html>\n<html>\n<head>\n<title>'+mxUtils.htmlEntities(X)+'</title>\n<meta charset="utf-8"/>\n</head>\n<body>'+
+T+"\n"+W+"\n</body>\n</html>";c.saveData(X+(".drawio"==X.substring(X.lenth-7)?"":".drawio")+".html","html",T,"text/html")}),S)})})}));c.actions.put("exportPdf",new Action("formatPdf...",function(){c.showPrintDialog(mxResources.get("formatPdf"),EditorUi.isElectronApp||!c.isOffline()&&!c.printPdfExport?mxUtils.bind(this,function(q,y){q=null!=c.pages?c.pages.length:1;var D=null==c.pages||1>=c.pages.length,J=c.getPageIndex(c.currentPage);J=null!=J?J+1:1;c.downloadFile("pdf",null,null,!y.selection,D||
+!y.allPages&&y.pagesFrom==J&&y.pagesTo==J,!y.crop,y.transparent,y.scale,null,y.grid,y.includeCopy,y.allPages||y.pagesFrom==J&&y.pagesTo==J?null:{from:Math.max(0,Math.min(q-1,y.pagesFrom-1)),to:Math.max(0,Math.min(q-1,y.pagesTo-1))},y.border,y.fit,y.sheetsAcross,y.sheetsDown)}):null,mxResources.get("export"))}));c.actions.addAction("open...",function(){c.pickFile()});c.actions.addAction("close",function(){function q(){null!=y&&y.removeDraft();c.fileLoaded(null)}var y=c.getCurrentFile();null!=y&&y.isModified()?
+c.confirm(mxResources.get("allChangesLost"),null,q,mxResources.get("cancel"),mxResources.get("discardChanges")):q()});c.actions.addAction("editShape...",mxUtils.bind(this,function(){l.getSelectionCells();if(1==l.getSelectionCount()){var q=l.getSelectionCell(),y=l.view.getState(q);null!=y&&null!=y.shape&&null!=y.shape.stencil&&(q=new EditShapeDialog(c,q,mxResources.get("editShape")+":",630,400),c.showDialog(q.container,640,480,!0,!1),q.init())}}));c.actions.addAction("revisionHistory...",function(){c.isRevisionHistorySupported()?
+c.spinner.spin(document.body,mxResources.get("loading"))&&c.getRevisions(mxUtils.bind(this,function(q,y){c.spinner.stop();q=new RevisionDialog(c,q,y);c.showDialog(q.container,640,480,!0,!0);q.init()}),mxUtils.bind(this,function(q){c.handleError(null!=q?q:mxResources.get("notAvailable"))})):c.showError(mxResources.get("error"),mxResources.get("notAvailable"),mxResources.get("ok"))});c.actions.addAction("createRevision",function(){c.actions.get("save").funct()},null,null,Editor.ctrlKey+"+S");t=c.actions.addAction("synchronize",
+function(){c.synchronizeCurrentFile("none"==DrawioFile.SYNC)},null,null,"Alt+Shift+S");"none"==DrawioFile.SYNC&&(t.label=mxResources.get("refresh"));c.actions.addAction("upload...",function(){var q=c.getCurrentFile();null!=q&&(window.drawdata=c.getFileData(),q=null!=q.getTitle()?q.getTitle():c.defaultFilename,c.openLink(window.location.protocol+"//"+window.location.host+"/?create=drawdata&"+(c.mode==App.MODE_DROPBOX?"mode=dropbox&":"")+"title="+encodeURIComponent(q),null,!0))});"undefined"!==typeof MathJax&&
+(t=c.actions.addAction("mathematicalTypesetting",function(){var q=new ChangePageSetup(c);q.ignoreColor=!0;q.ignoreImage=!0;q.mathEnabled=!c.isMathEnabled();l.model.execute(q)}),t.setToggleAction(!0),t.setSelectedCallback(function(){return c.isMathEnabled()}),t.isEnabled=p);t=c.actions.put("defaultAdaptiveColors",new Action("defaultAdaptiveColors",function(){var q=new ChangePageSetup(c);q.ignoreColor=!0;q.ignoreImage=!0;q.adaptiveColors="default";l.model.execute(q)}));t.getTitle=function(){return mxResources.get("default")+
+" ("+mxResources.get(Graph.getDefaultAdaptiveColorsKey())+")"};t.setToggleAction(!0);t.setSelectedCallback(function(){return null==l.adaptiveColors});t=c.actions.put("automaticAdaptiveColors",new Action("automatic",function(){var q=new ChangePageSetup(c);q.ignoreColor=!0;q.ignoreImage=!0;q.adaptiveColors="auto";l.model.execute(q)}));t.setToggleAction(!0);t.setSelectedCallback(function(){return"auto"==l.adaptiveColors});t=c.actions.put("simpleAdaptiveColors",new Action("simple",function(){var q=new ChangePageSetup(c);
+q.ignoreColor=!0;q.ignoreImage=!0;q.adaptiveColors="simple";l.model.execute(q)}));t.setToggleAction(!0);t.setSelectedCallback(function(){return"simple"==l.adaptiveColors});t=c.actions.put("noAdaptiveColors",new Action("none",function(){var q=new ChangePageSetup(c);q.ignoreColor=!0;q.ignoreImage=!0;q.adaptiveColors="none";l.model.execute(q)}));t.setToggleAction(!0);t.setSelectedCallback(function(){return"none"==l.adaptiveColors});this.put("adaptiveColors",new Menu(mxUtils.bind(this,function(q,y){this.addMenuItems(q,
+["defaultAdaptiveColors","-","automaticAdaptiveColors","simpleAdaptiveColors","noAdaptiveColors"],y)})));isLocalStorage&&(t=c.actions.addAction("showStartScreen",function(){mxSettings.setShowStartScreen(!mxSettings.getShowStartScreen());mxSettings.save()}),t.setToggleAction(!0),t.setSelectedCallback(function(){return mxSettings.getShowStartScreen()}));var E=c.actions.addAction("autosave",function(){c.editor.setAutosave(!c.editor.autosave)});E.setToggleAction(!0);E.setSelectedCallback(function(){return E.isEnabled()&&
+c.editor.autosave});c.actions.addAction("editGeometry...",function(){for(var q=l.getSelectionCells(),y=[],D=0;D<q.length;D++)l.getModel().isVertex(q[D])&&y.push(q[D]);0<y.length&&(q=new EditGeometryDialog(c,y),c.showDialog(q.container,200,270,!0,!0),q.init())},null,null,Editor.ctrlKey+"+Shift+M");c.actions.addAction("copyStyle",function(){if(l.isEnabled()&&1==l.getSelectionCount()){var q=l.getSelectionCell(),y=l.getCellStyle(q,!1);c.copiedStyle={};var D=[],J=[],L;for(L in y)D.push(y[L]),J.push(L);
+l.copyCellStyles([q],J,D,c.copiedStyle,c.copiedStyle,null,null,null,!0)}},null,null,"Alt+C");c.actions.addAction("pasteStyle",function(){l.isEnabled()&&!l.isSelectionEmpty()&&null!=c.copiedStyle&&l.pasteCellStyles(l.includeDescendants(l.getSelectionCells()),c.copiedStyle,c.copiedStyle,!0)},null,null,"Alt+V");c.actions.put("exportSvg",new Action("formatSvg...",function(){c.showExportDialog(mxResources.get("formatSvg"),!0,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,
+function(q,y,D,J,L,K,n,z,G,M,N,Q,S,T){q=parseInt(q);c.lastExportSvgEditable=L;!isNaN(q)&&0<q&&c.exportSvg(q/100,y,D,J,L,K,n,!z,G,M,Q,S,T)}),!0,c.lastExportSvgEditable,"svg",!0)}));c.actions.put("exportPng",new Action("formatPng...",function(){f("png",c.lastExportPngEditable,function(q,y,D,J,L){c.lastExportPngEditable=L})}));c.actions.put("exportJpg",new Action("formatJpg...",function(){f("jpeg")}));c.actions.put("exportWebp",new Action("formatWebp...",function(){f("webp")}));t=c.actions.addAction("copyAsImage",
+mxUtils.bind(this,function(){var q=mxUtils.sortCells(l.model.getTopmostCells(l.getSelectionCells())),y=mxUtils.getXml(0==q.length?c.editor.getGraphXml():l.encodeCells(q));c.copyImage(q,y)}),null,null,"Ctrl+Alt+X");t.visible=Editor.enableNativeCipboard&&c.isExportToCanvas()&&!mxClient.IS_SF;t=c.actions.put("shadowVisible",new Action("shadow",function(){l.setShadowVisible(!l.shadowVisible)}));t.setToggleAction(!0);t.setSelectedCallback(function(){return l.shadowVisible});c.actions.put("about",new Action("v"+
+EditorUi.VERSION,function(q,y){c.isOwnDomain()&&mxEvent.isShiftDown(y)&&("1"==urlParams.test?(EditorUi.debug("Debug output disabled"),urlParams.test="0"):(urlParams.test="1",EditorUi.debug("Debug output enabled")))}));c.actions.addAction("support...",function(){EditorUi.isElectronApp?c.openLink("https://github.com/jgraph/drawio-desktop/wiki/Getting-Support"):c.openLink("https://github.com/jgraph/drawio/wiki/Getting-Support")});c.actions.addAction("exportOptionsDisabled...",function(){c.handleError({message:mxResources.get("exportOptionsDisabledDetails")},
+mxResources.get("exportOptionsDisabled"))});c.actions.addAction("keyboardShortcuts...",function(){!mxClient.IS_SVG||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?c.openLink("https://viewer.diagrams.net/#Uhttps%3A%2F%2Fviewer.diagrams.net%2Fshortcuts.svg"):c.openLink("shortcuts.svg")});c.actions.addAction("feedback...",function(){var q=new FeedbackDialog(c);c.showDialog(q.container,610,360,!0,!1);q.init()});c.actions.addAction("quickStart...",function(){"ac.draw.io"===window.location.hostname?c.openLink("https://www.youtube.com/watch?v=s5BG0705MHU"):
+c.openLink("https://www.youtube.com/watch?v=Z0D96ZikMkc")});t=c.actions.addAction("tags",mxUtils.bind(this,function(){null==this.tagsWindow?(this.tagsWindow=new TagsWindow(c,document.body.offsetWidth-400,60,212,200),this.tagsWindow.window.addListener("show",mxUtils.bind(this,function(){c.fireEvent(new mxEventObject("tags"))})),this.tagsWindow.window.addListener("hide",function(){c.fireEvent(new mxEventObject("tags"))}),this.tagsWindow.window.setVisible(!0),c.fireEvent(new mxEventObject("tags"))):
+this.tagsWindow.window.setVisible(!this.tagsWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+K");t.setToggleAction(!0);t.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.tagsWindow&&this.tagsWindow.window.isVisible()}));null==Editor.gptApiKey||null==Editor.gptModel||null==Editor.gptUrl||c.isOffline()||EditorUi.isElectronApp||(t=c.actions.addAction("chatWindowTitle",mxUtils.bind(this,function(){null==this.chatWindow?(this.chatWindow=new ChatWindow(c,220,document.body.offsetHeight-
+380,250,320),this.chatWindow.window.addListener("show",mxUtils.bind(this,function(){c.fireEvent(new mxEventObject("chat"))})),this.chatWindow.window.addListener("hide",function(){c.fireEvent(new mxEventObject("chat"))}),this.chatWindow.window.setVisible(!0),c.fireEvent(new mxEventObject("chat"))):this.chatWindow.window.setVisible(!this.chatWindow.window.isVisible())})),t.setToggleAction(!0),t.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.chatWindow&&this.chatWindow.window.isVisible()})));
+t=c.actions.addAction("findReplace",mxUtils.bind(this,function(q,y){var D=(q=l.isEnabled()&&(null==y||!mxEvent.isShiftDown(y)))?"findReplace":"find";y=D+"Window";if(null==this[y]){var J="min"==Editor.currentTheme||"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,L=q?J?330:300:240;this[y]=new FindWindow(c,document.body.offsetWidth-(L+20),100,L,q?J?304:288:170,q);this[y].window.addListener("show",function(){c.fireEvent(new mxEventObject(D))});this[y].window.addListener("hide",function(){c.fireEvent(new mxEventObject(D))})}this[y].window.setVisible(!0);
+this[y].focus()}),null,null,Editor.ctrlKey+"+F");t=new Action("exportVsdx",function(){var q=null==c.pages||1>=c.pages.length;if(q)c.exportVisio();else{var y=document.createElement("div");y.style.whiteSpace="nowrap";var D=document.createElement("h3");mxUtils.write(D,mxResources.get("formatVsdx"));D.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";y.appendChild(D);var J=c.addCheckbox(y,mxResources.get("allPages"),!q,q);J.style.marginBottom="16px";q=new CustomDialog(c,y,
+mxUtils.bind(this,function(){c.exportVisio(!J.checked)}),null,mxResources.get("export"));c.showDialog(q.container,300,130,!0,!0)}});t.getTitle=function(){return mxResources.get("formatVsdx")+" (beta)..."};c.actions.put("exportVsdx",t);isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&c.actions.addAction("configuration...",function(){var q=document.createElement("input");q.setAttribute("type","checkbox");q.style.marginRight="8px";q.checked=mxSettings.getShowStartScreen();q.defaultChecked=q.checked;
+if(Editor.isSettingsEnabled()&&("sketch"==Editor.currentTheme||"simple"==Editor.currentTheme||"min"==Editor.currentTheme)){var y=document.createElement("span");y.style.display="flex";y.style.alignItems="center";y.style.cssFloat="right";y.style.cursor="pointer";y.style.userSelect="none";y.style.marginTop="-3px";y.appendChild(q);mxUtils.write(y,mxResources.get("showStartScreen"));mxEvent.addListener(y,"click",function(J){mxEvent.getSource(J)!=q&&(q.checked=!q.checked)});header=y}y=[[mxResources.get("reset"),
+function(){c.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),c.hideDialog(),c.alert(mxResources.get("restartForChangeRequired"))}catch(J){c.handleError(J)}})}]];if(!c.isOfflineApp()&&isLocalStorage&&c.mode!=App.MODE_ATLAS){var D=c.actions.get("plugins");null==D||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||y.push([mxResources.get("plugins"),D.funct])}EditorUi.isElectronApp||y.push([mxResources.get("link"),
+function(J,L){if(0<L.value.length)try{var K=JSON.parse(L.value),n=window.location.protocol+"//"+window.location.host+"/"+c.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(K)),z=new EmbedDialog(c,n);c.showDialog(z.container,450,240,!0);z.init()}catch(G){c.handleError(G)}else c.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=c.getServiceName()&&"1"!=urlParams.embed&&y.push([mxResources.get("preferences"),function(){c.showLocalStorageDialog(mxResources.get("preferences")+
+":",Editor.settingsKey,[[mxResources.get("reset"),function(){c.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config"),c.hideDialog(),c.alert(mxResources.get("restartForChangeRequired"))}catch(J){c.handleError(J)}})}]])}]);c.showLocalStorageDialog(mxResources.get("configuration")+":",Editor.configurationKey,y,q.parentNode,"https://www.drawio.com/doc/faq/configure-diagram-editor",function(){null!=q.parentNode&&(mxSettings.setShowStartScreen(q.checked),
+mxSettings.save())})});(mxClient.IS_CHROMEAPP||isLocalStorage)&&this.put("language",new Menu(mxUtils.bind(this,function(q,y){var D=mxLanguage;null==urlParams.lang&&isLocalStorage&&(D=mxSettings.settings.language);var J=mxUtils.bind(this,function(K){var n=""==K?mxResources.get("automatic"):mxLanguageMap[K],z=null;""!=n&&(z=q.addItem(n,null,mxUtils.bind(this,function(){c.setAndPersistLanguage(K)}),y),(K==D||""==K&&null==D)&&q.addCheckmark(z,Editor.checkmarkImage));return z});J("");q.addSeparator(y);
+for(var L in mxLanguageMap)J(L)})));c.customLayoutConfig=[{layout:"mxHierarchicalLayout",config:{orientation:"west",intraCellSpacing:30,interRankCellSpacing:100,interHierarchySpacing:60,parallelEdgeSpacing:10}}];c.actions.addAction("runLayout",function(){c.showCustomLayoutDialog(JSON.stringify(c.customLayoutConfig,null,2))});c.actions.put("adaptiveColors",new Action("adaptiveColors",function(q){null==c.adaptiveColorsWindow&&(c.adaptiveColorsWindow=new AdaptiveColorsWindow(c,document.body.offsetWidth-
+520,80,200,160));c.adaptiveColorsWindow.window.setVisible(!0)}));t=this.get("viewZoom");var H=t.funct;t.funct=mxUtils.bind(this,function(q,y){H.apply(this,arguments);"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(q,["-","outline","fullscreen"],y)});t=this.get("layout");var B=t.funct;t.funct=function(q,y){B.apply(this,arguments);q.addItem(mxResources.get("orgChart"),null,function(){var D=null,J=20,L=20,K=function(){"undefined"!==typeof mxOrgChartLayout&&null!=D&&c.tryAndHandle(mxUtils.bind(this,
+function(){var T=c.editor.graph,W=new mxOrgChartLayout(T,D,J,L),X=T.getDefaultParent();1<T.model.getChildCount(T.getSelectionCell())&&(X=T.getSelectionCell());W.execute(X)}))},n=document.createElement("div"),z=document.createElement("div");z.style.marginTop="6px";z.style.display="inline-block";z.style.width="180px";mxUtils.write(z,mxResources.get("orgChartType")+": ");n.appendChild(z);var G=document.createElement("select");G.style.width="160px";G.style.boxSizing="border-box";z=[mxResources.get("linear"),
+mxResources.get("hanger2"),mxResources.get("hanger4"),mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),mxResources.get("smart")];for(var M=0;M<z.length;M++){var N=document.createElement("option");mxUtils.write(N,z[M]);N.value=M;2==M&&N.setAttribute("selected","selected");G.appendChild(N)}mxEvent.addListener(G,"change",function(){D=G.value});n.appendChild(G);z=document.createElement("div");z.style.marginTop="6px";z.style.display=
+"inline-block";z.style.width="180px";mxUtils.write(z,mxResources.get("parentChildSpacing")+": ");n.appendChild(z);var Q=document.createElement("input");Q.type="number";Q.value=J;Q.style.width="160px";Q.style.boxSizing="border-box";n.appendChild(Q);mxEvent.addListener(Q,"change",function(){J=Q.value});z=document.createElement("div");z.style.marginTop="6px";z.style.display="inline-block";z.style.width="180px";mxUtils.write(z,mxResources.get("siblingSpacing")+": ");n.appendChild(z);var S=document.createElement("input");
+S.type="number";S.value=L;S.style.width="160px";S.style.boxSizing="border-box";n.appendChild(S);mxEvent.addListener(S,"change",function(){L=S.value});z=mxUtils.button(mxResources.get("custom")+"...",function(){var T=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(G.value),parentChildSpacing:parseInt(Q.value),siblingSpacing:parseInt(S.value)}}];c.hideDialog();c.showCustomLayoutDialog(JSON.stringify(T,null,2))});z.className="geBtn";n=new CustomDialog(c,n,function(){null==D&&(D=2);c.loadOrgChartLayouts(K)},
+null,null,null,z);c.showDialog(n.container,355,140,!0,!0)},y,null,p());q.addSeparator(y);q.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){c.tryAndHandle(mxUtils.bind(this,function(){var D=new mxParallelEdgeLayout(l);D.checkOverlap=!0;c.prompt(mxResources.get("spacing"),D.spacing,mxUtils.bind(this,function(J){c.tryAndHandle(mxUtils.bind(this,function(){D.spacing=J;c.executeLayout(function(){D.execute(l.getDefaultParent(),l.isSelectionEmpty()?null:l.getSelectionCells())},!1)}))}))}))}),
+y);q.addSeparator(y);c.menus.addMenuItem(q,"runLayout",y,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(q,y){if(!mxClient.IS_CHROMEAPP&&c.isOffline())this.addMenuItems(q,["keyboardShortcuts","-","about"],y);else{var D=q.addItem("Search:",null,null,y,null,null,!1);D.style.cursor="default";var J=document.createElement("input");J.setAttribute("type","text");J.setAttribute("size","25");J.style.borderWidth="1px";J.style.marginLeft="8px";mxEvent.addListener(J,
+"keydown",mxUtils.bind(this,function(L){var K=mxUtils.trim(J.value);13==L.keyCode&&0<K.length?(this.editorUi.openLink("https://www.drawio.com/search?src="+(EditorUi.isElectronApp?"DESKTOP":encodeURIComponent(location.host))+"&search="+encodeURIComponent(K)),J.value="",EditorUi.logEvent({category:"SEARCH-HELP",action:"search",label:K}),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0)):27==L.keyCode&&(J.value="")}));D.firstChild.nextSibling.appendChild(J);mxEvent.addGestureListeners(J,
+function(L){document.activeElement!=J&&J.focus();mxEvent.consume(L)},function(L){mxEvent.consume(L)},function(L){mxEvent.consume(L)});window.setTimeout(function(){J.focus()},0);EditorUi.isElectronApp?(c.actions.addAction("website...",function(){c.openLink("https://www.drawio.com")}),c.actions.addAction("check4Updates",function(){c.checkForUpdates()}),c.actions.put("desktopZoomIn",new Action("zoomIn",function(){c.desktopZoomIn()})),c.actions.put("desktopZoomOut",new Action("zoomOut",function(){c.desktopZoomOut()})),
+c.actions.put("desktopResetZoom",new Action("actualSize",function(){c.desktopResetZoom()})),this.addMenuItems(q,"- keyboardShortcuts quickStart website support -".split(" "),y),"1"!=urlParams.disableUpdate&&this.addMenuItems(q,["check4Updates","-"],y),this.addMenuItems(q,"desktopResetZoom desktopZoomIn desktopZoomOut - openDevTools - about".split(" "),y)):this.addMenuItems(q,"- keyboardShortcuts quickStart support - about".split(" "),y)}"1"==urlParams.test&&(q.addSeparator(y),this.addSubmenu("testDevelop",
+q,y))})));c.actions.addAction("languageCode...",function(){var q=new FilenameDialog(c,Graph.diagramLanguage||"",mxResources.get("ok"),mxUtils.bind(this,function(y){null!=y&&(Graph.diagramLanguage=0<y.length?y:null,Graph.translateDiagram=!0,l.refresh())}),mxResources.get("languageCode"),null,null,"https://www.drawio.com/blog/translate-diagrams");c.showDialog(q.container,340,80,!0,!0);q.init()});this.put("diagramLanguage",new Menu(mxUtils.bind(this,function(q,y){this.addMenuItems(q,["languageCode",
+"-"],y);y=q.addItem(mxResources.get("disabled"),null,function(){Graph.translateDiagram=!1;l.refresh()},y);Graph.translateDiagram||q.addCheckmark(y,Editor.checkmarkImage)})));if("1"==urlParams.test){mxResources.parse("testDevelop=Develop");mxResources.parse("showBoundingBox=Show bounding box");mxResources.parse("createSidebarEntry=Create Sidebar Entry");mxResources.parse("testCheckFile=Check File");mxResources.parse("testDiff=Diff/Sync");mxResources.parse("testChecksum=Checksum");mxResources.parse("testCheckPages=Check Pages");
+mxResources.parse("testFixPages=Fix Pages");mxResources.parse("testInspect=Inspect");mxResources.parse("testShowConsole=Show Console");mxResources.parse("testXmlImageExport=XML Image Export");mxResources.parse("testOptimize=Remove Inline Images");mxResources.parse("testPerformance=Performance");c.actions.addAction("createSidebarEntry",mxUtils.bind(this,function(){if(!l.isSelectionEmpty()){var q=l.cloneCells(l.getSelectionCells()),y=l.getBoundingBoxFromGeometry(q,!0);q=l.moveCells(q,-y.x,-y.y);c.showTextDialog("Create Sidebar Entry",
+"this.addDataEntry('tag1 tag2', "+y.width+", "+y.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(l.encodeCells(q)))+"'),")}}));c.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function q(n){return null==n||null==n.boundingBox||!isNaN(n.boundingBox.x)&&!isNaN(n.boundingBox.y)&&!isNaN(n.boundingBox.width)&&!isNaN(n.boundingBox.height)}var y=l.isSelectionEmpty()?l.getGraphBounds():l.getBoundingBox(l.getSelectionCells()),D=l.view.translate,J=l.view.scale;l.insertVertex(l.getDefaultParent(),
+null,"",y.x/J-D.x,y.y/J-D.y,y.width/J,y.height/J,"fillColor=none;strokeColor=red;");var L=0,K=0;l.view.states.visit(function(n,z){n=!0;q(z.shape)||(console.log("invalid shape",z.cell.id,z.shape),n=!1);q(z.text)||(console.log("invalid text",z.cell.id,z.text),n=!1);n||L++;K++});console.log("states checked",K,"invalid",L)}));c.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var q=null!=c.pages&&null!=c.getCurrentFile()?c.getCurrentFile().getAnonymizedXmlForPages(c.pages):"";q=new TextareaDialog(c,
+"Paste Data:",q,function(y){if(0<y.length)try{var D=function(z){function G(ba){if(null==Y[ba]){if(Y[ba]=!0,null!=Q[ba]){for(;0<Q[ba].length;){var da=Q[ba].pop();G(da)}delete Q[ba]}}else mxLog.debug(M+": Visited: "+ba)}var M=z.parentNode.id,N=z.childNodes;z={};for(var Q={},S=null,T={},W=0;W<N.length;W++){var X=N[W];if(null!=X.id&&0<X.id.length)if(null==z[X.id]){z[X.id]=X.id;var Z=X.getAttribute("parent");null==Z?null!=S?mxLog.debug(M+": Multiple roots: "+X.id):S=X.id:(null==Q[Z]&&(Q[Z]=[]),Q[Z].push(X.id))}else T[X.id]=
+X.id}N=Object.keys(T);0<N.length?(N=M+": "+N.length+" Duplicates: "+N.join(", "),mxLog.debug(N+" (see console)")):mxLog.debug(M+": Checked");var Y={};null==S?mxLog.debug(M+": No root"):(G(S),Object.keys(Y).length!=Object.keys(z).length&&(mxLog.debug(M+": Invalid tree: (see console)"),console.log(M+": Invalid tree",Q)))};"<"!=y.charAt(0)&&(y=Graph.decompress(y),mxLog.debug("See console for uncompressed XML"),console.log("xml",y));var J=mxUtils.parseXml(y),L=c.getPagesForNode(J.documentElement,"mxGraphModel");
+if(null!=L&&0<L.length)try{var K=c.getHashValueForPages(L);mxLog.debug("Checksum: ",K)}catch(z){mxLog.debug("Error: ",z.message)}else mxLog.debug("No pages found for checksum");var n=J.getElementsByTagName("root");for(y=0;y<n.length;y++)D(n[y]);mxLog.show()}catch(z){c.handleError(z),null!=window.console&&console.error(z)}});c.showDialog(q.container,620,460,!0,!0);q.init()}));var d=null;c.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=c.pages){var q=new TextareaDialog(c,"Diff/Sync:",
+"",function(y){var D=c.getCurrentFile();if(0<y.length&&null!=D)try{var J=JSON.parse(y);D.patch([J],null,!0,!0);c.hideDialog()}catch(L){c.handleError(L)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",function(y,D){d=c.getPagesForXml(c.getFileData(!0));q.textarea.value="Snapshot updated "+(new Date).toLocaleString()+" Checksum "+c.getHashValueForPages(d)}],["Diff",function(y,D){try{q.textarea.value=JSON.stringify(c.diffPages(d,c.pages),null,2)}catch(J){c.handleError(J)}}]]);null==d?
+(d=c.getPagesForXml(c.getFileData(!0)),q.textarea.value="Snapshot created "+(new Date).toLocaleString()+" Checksum "+c.getHashValueForPages(d)):q.textarea.value=JSON.stringify(c.diffPages(d,c.pages),null,2);c.showDialog(q.container,620,460,!0,!0);q.init()}else c.alert("No pages")}));c.actions.addAction("testChecksum",mxUtils.bind(this,function(){var q=c.getCurrentFile();null!=c.pages&&null!=q?c.spinner.spin(document.body,mxResources.get("loading"))&&q.getLatestVersion(function(y){c.spinner.stop();
+var D=c.getHashValueForPages(c.pages),J=q.getCurrentRevisionId(),L=c.getHashValueForPages(y.getShadowPages()),K=y.getDescriptorChecksum(y.getDescriptor()),n=y.getCurrentRevisionId();console.log("Local File",[q],"modified",q.isModified(),"checksum",D);console.log("Remote File",[y],"rev",n==J,"desc",K==L,"checksum",L);c.alert("Checksums "+(L==D?"match":"no not match"))},function(y){console.log("Error getLatestVersion",y);c.handleError(y)}):console.log("Checksum: no file or pages")}));c.actions.addAction("testCheckPages",
+mxUtils.bind(this,function(){var q=c.getCurrentFile();console.log("editorUi",c,"file",q);if(null!=q&&q.isRealtime()){console.log("Checksum ownPages",c.getHashValueForPages(q.ownPages));console.log("Checksum theirPages",c.getHashValueForPages(q.theirPages));console.log("diff ownPages/theirPages",c.diffPages(q.ownPages,q.theirPages));var y=q.getShadowPages();null!=y&&(console.log("Checksum shadowPages",c.getHashValueForPages(y)),console.log("diff shadowPages/ownPages",c.diffPages(y,q.ownPages)),console.log("diff ownPages/shadowPages",
+c.diffPages(q.ownPages,y)),console.log("diff theirPages/shadowPages",c.diffPages(q.theirPages,y)));null!=q.sync&&null!=q.sync.snapshot&&(console.log("Checksum snapshot",c.getHashValueForPages(q.sync.snapshot)),console.log("diff ownPages/snapshot",c.diffPages(q.ownPages,q.sync.snapshot)),console.log("diff theirPages/snapshot",c.diffPages(q.theirPages,q.sync.snapshot)),null!=c.pages&&console.log("diff snapshot/actualPages",c.diffPages(q.sync.snapshot,c.pages)));null!=c.pages&&(console.log("diff ownPages/actualPages",
+c.diffPages(q.ownPages,c.pages)),console.log("diff theirPages/actualPages",c.diffPages(q.theirPages,c.pages)))}null!=q&&console.log("Shadow pages",[c.getXmlForPages(q.getShadowPages())]);null!=c.pages&&console.log("Checksum actualPages",c.getHashValueForPages(c.pages))}));c.actions.addAction("testFixPages",mxUtils.bind(this,function(){console.log("editorUi",c);var q=c.getCurrentFile();null!=q&&q.isRealtime()&&null!=q.shadowPages&&(console.log("patching actualPages to shadowPages",q.patch([c.diffPages(q.shadowPages,
+c.pages)])),q.ownPages=c.clonePages(c.pages),q.theirPages=c.clonePages(c.pages),q.shadowPages=c.clonePages(c.pages),null!=q.sync&&(q.sync.snapshot=c.clonePages(c.pages)))}));c.actions.addAction("testOptimize",mxUtils.bind(this,function(){l.model.beginUpdate();try{var q=l.model.cells,y=0,D=[],J=[],L;for(L in q){var K=q[L],n=l.getCurrentCellStyle(K)[mxConstants.STYLE_IMAGE];null!=n&&"data:"==n.substring(0,5)&&(null==D[n]&&(D[n]=(D[n]||0)+1,y++),J.push(K))}l.setCellStyles(mxConstants.STYLE_IMAGE,null,
+J);console.log("Removed",y,"image(s) from",J.length,"cell(s): ",[J,D])}finally{l.model.endUpdate()}}));c.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(c,l.getModel())}));c.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var q=new mxImageExport,y=l.getGraphBounds(),D=l.view.scale,J=mxUtils.createXmlDocument(),L=J.createElement("output");J.appendChild(L);J=new mxXmlCanvas2D(L);J.translate(Math.floor((1-y.x)/D),Math.floor((1-y.y)/D));J.scale(1/D);var K=
+0,n=J.save;J.save=function(){K++;n.apply(this,arguments)};var z=J.restore;J.restore=function(){K--;z.apply(this,arguments)};var G=q.drawShape;q.drawShape=function(M){mxLog.debug("entering shape",M,K);G.apply(this,arguments);mxLog.debug("leaving shape",M,K)};q.drawState(l.getView().getState(l.model.root),J);mxLog.show();mxLog.debug(mxUtils.getXml(L));mxLog.debug("stateCounter",K)}));c.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=
+mxPopupMenu.prototype.zIndex-2});var g=null,k=null,m=null,u=null,x=null,A=null,I=null,F=null;c.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=g?(l.view.revalidate=g,g=null):(g=l.view.revalidate,l.view.revalidate=function(){var q=Date.now(),y=g.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=k?(c.selectPage=k,k=null):(k=c.selectPage,c.selectPage=function(){var q=Date.now(),y=k.apply(this,
+arguments);EditorUi.debug("[Performance] EditorUi.selectPage",[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=m?(c.diffPages=m,m=null):(m=c.diffPages,c.diffPages=function(){var q=Date.now(),y=m.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=u?(c.patchPages=u,u=null):(u=c.patchPages,c.patchPages=function(){var q=Date.now(),y=u.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",
+[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=x?(c.clonePages=x,x=null):(x=c.clonePages,c.clonePages=function(){var q=Date.now(),y=x.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=I?(c.getHashValueForPages=I,I=null):(I=c.getHashValueForPages,c.getHashValueForPages=function(){var q=Date.now(),y=I.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],
+"time",Date.now()-q+" ms","args",arguments);return y});null!=F?(c.resolveCrossReferences=F,F=null):(F=c.resolveCrossReferences,c.resolveCrossReferences=function(){var q=Date.now(),y=F.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.resolveCrossReferences",[this],"time",Date.now()-q+" ms","args",arguments);return y});null!=A?(c.getFileData=A,A=null):(A=c.getFileData,c.getFileData=function(){var q=Date.now(),y=A.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getFileData",
+[this],"time",Date.now()-q+" ms","args",arguments);return y});EditorUi.debug("[Performance]",null!=g?"Enabled":"Disabled")}));this.put("testDevelop",new Menu(mxUtils.bind(this,function(q,y){this.addMenuItems(q,"createSidebarEntry showBoundingBox - testCheckPages testChecksum testFixPages - testCheckFile testDiff - testInspect testOptimize - testXmlImageExport -".split(" "),y);var D=q.addItem(mxResources.get("testPerformance"),null,function(){c.actions.get("testPerformance").funct()},y);null!=g&&q.addCheckmark(D,
+Editor.checkmarkImage);this.addMenuItems(q,["-","testShowConsole"],y)})))}c.actions.put("shapes",new Action("moreShapes...",function(q){mxClient.IS_CHROMEAPP||!c.isOffline()?c.showDialog((new MoreShapesDialog(c,!0)).container,640,isLocalStorage?mxClient.IS_IOS?480:460:440,!0,!0):c.showDialog((new MoreShapesDialog(c,!1)).container,360,isLocalStorage?mxClient.IS_IOS?300:280:260,!0,!0)}));c.actions.put("createShape",new Action("shape...",function(q){l.isEnabled()&&(q=new mxCell("",new mxGeometry(0,0,
+120,120),c.defaultCustomShapeStyle),q.vertex=!0,q=new EditShapeDialog(c,q,mxResources.get("editShape")+":",630,400),c.showDialog(q.container,640,480,!0,!1),q.init())})).isEnabled=p;c.actions.put("embedHtml",new Action("html...",function(){c.getPublicUrl(c.getCurrentFile(),function(q){c.showHtmlDialog(mxResources.get("create"),"https://www.drawio.com/doc/faq/embed-html-options",q,function(y,D,J,L,K,n,z,G,M,N,Q,S){c.createHtml(y,D,J,L,K,n,z,G,M,N,Q,mxUtils.bind(this,function(T,W){var X=new EmbedDialog(c,
+"\x3c!-- "+c.editor.appName+" diagram --\x3e\n"+T+"\n"+W+"\n",null,null,function(){try{var Z=window.open();if(null!=Z&&null!=Z.document){var Y=Z.document;"CSS1Compat"===document.compatMode&&Y.writeln("<!DOCTYPE html>");Y.writeln("<html>");Y.writeln("<head><title>"+encodeURIComponent(mxResources.get("preview"))+'</title><meta charset="utf-8"></head>');Y.writeln("<body>");Y.writeln(T);var ba=mxClient.IS_IE||mxClient.IS_EDGE||null!=document.documentMode;ba&&Y.writeln(W);Y.writeln("</body>");Y.writeln("</html>");
+Y.close();if(!ba){var da=Z.document.createElement("div");da.marginLeft="26px";da.marginTop="26px";mxUtils.write(da,mxResources.get("updatingDocument"));var ia=Z.document.createElement("img");ia.setAttribute("src",window.location.protocol+"//"+window.location.hostname+"/"+IMAGE_PATH+"/spin.gif");ia.style.marginLeft="6px";da.appendChild(ia);Z.document.body.insertBefore(da,Z.document.body.firstChild);window.setTimeout(function(){var ca=document.createElement("script");ca.type="text/javascript";ca.src=
+/<script.*?src="(.*?)"/.exec(W)[1];Y.body.appendChild(ca);da.parentNode.removeChild(da)},20)}}else c.handleError({message:mxResources.get("errorUpdatingPreview")})}catch(ca){c.handleError(ca)}});c.showDialog(X.container,450,240,!0,!0);X.init()}),S)})})}));c.actions.put("liveImage",new Action("Live image...",function(){var q=c.getCurrentFile();null!=q&&c.getPublicUrl(q,function(y){null!=y?(y=new EmbedDialog(c,'<img src="'+(q.constructor!=DriveFile?y:"https://drive.google.com/uc?id="+q.getId())+'"/>'),
+c.showDialog(y.container,450,240,!0,!0),y.init()):c.handleError({message:mxResources.get("invalidPublicUrl")})})}));c.actions.put("embedImage",new Action("image...",function(){c.showEmbedImageDialog(function(q,y,D,J,L,K){c.spinner.spin(document.body,mxResources.get("loading"))&&c.createEmbedImage(q,y,D,J,L,K,function(n){c.spinner.stop();n=new EmbedDialog(c,n);c.showDialog(n.container,450,240,!0,!0);n.init()},function(n){c.spinner.stop();c.handleError(n)})},mxResources.get("image"),mxResources.get("retina"),
+c.isExportToCanvas())}));c.actions.put("embedSvg",new Action("formatSvg...",function(){c.showEmbedImageDialog(function(q,y,D,J,L,K){c.spinner.spin(document.body,mxResources.get("loading"))&&c.createEmbedSvg(q,y,D,J,L,K,function(n){c.spinner.stop();n=new EmbedDialog(c,n);c.showDialog(n.container,450,240,!0,!0);n.init()},function(n){c.spinner.stop();c.handleError(n)})},mxResources.get("formatSvg"),mxResources.get("image"),!0,"https://www.drawio.com/doc/faq/embed-svg.html")}));c.actions.put("embedIframe",
+new Action("iframe...",function(){c.getPublicUrl(c.getCurrentFile(),function(q){var y=l.getGraphBounds();c.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,y.height/l.view.scale))+2,null,null,null,q,c.getCurrentFile(),function(D,J,L,K,n,z,G,M,N,Q,S,T){var W=[];N&&W.push("tags=%7B%7D");D=new EmbedDialog(c,'<iframe frameborder="0" style="width:'+G+";height:"+M+';" src="'+c.createLink(D,J,!0,K,n,z,"public"==Q?q:null,null,W,null,L,S,T)+'"'+(S?' allowtransparency="true"':"")+
+"></iframe>");c.showDialog(D.container,450,240,!0,!0);D.init()},!0,!0)})}));c.actions.put("embedNotion",new Action("notion...",function(){var q=document.createElement("div");q.style.position="absolute";q.style.bottom="30px";q.style.textAlign="center";q.style.width="100%";q.style.left="0px";var y=document.createElement("a");y.setAttribute("href","javascript:void(0);");y.setAttribute("target","_blank");y.style.cursor="pointer";mxUtils.write(y,mxResources.get("getNotionChromeExtension"));q.appendChild(y);
+mxUtils.setPrefixedStyle(y.style,"transition","all 1s ease");mxUtils.setOpacity(y,0);window.setTimeout(function(){mxUtils.setOpacity(y,100)},300);mxEvent.addListener(y,"click",function(D){c.openLink("https://chrome.google.com/webstore/detail/drawio-for-notion/plhaalebpkihaccllnkdaokdoeaokmle");mxEvent.consume(D)});c.getPublicUrl(c.getCurrentFile(),function(D){c.showPublishLinkDialog(mxResources.get("notion"),null,null,!0,"https://www.drawio.com/blog/drawio-notion",q,D,c.getCurrentFile(),function(J,
+L,K,n,z,G,M,N,Q,S,T,W){M=["border=0"];Q&&M.push("tags=%7B%7D");J=new EmbedDialog(c,c.createLink(J,L,!0,n,z,G,"public"==S?D:null,null,M,null,K,null,W));c.showDialog(J.container,450,240,!0,!0);J.init()},null,!0)})}));c.actions.put("publishLink",new Action("link...",function(){c.getPublicUrl(c.getCurrentFile(),function(q){c.showPublishLinkDialog(null,null,null,null,null,null,q,c.getCurrentFile(),function(y,D,J,L,K,n,z,G,M,N,Q,S){z=[];L&&M&&z.push("tags=%7B%7D");y=new EmbedDialog(c,c.createLink(y,D,!0,
+L,K,n,"public"==N?q:null,null,z,null,J,null,S));c.showDialog(y.container,450,240,!0,!0);y.init()},null,!0)})}));c.actions.addAction("microsoftOffice...",function(){c.openLink("https://office.draw.io")});c.actions.addAction("googleDocs...",function(){c.openLink("http://docsaddon.draw.io")});c.actions.addAction("googleSlides...",function(){c.openLink("https://slidesaddon.draw.io")});c.actions.addAction("googleSheets...",function(){c.openLink("https://sheetsaddon.draw.io")});c.actions.addAction("googleSites...",
+function(){c.getPublicUrl(c.getCurrentFile(),function(q){q=new GoogleSitesDialog(c,q);c.showDialog(q.container,420,256,!0,!0);q.init()})});if(isLocalStorage||mxClient.IS_CHROMEAPP)t=c.actions.addAction("scratchpad",function(){c.toggleScratchpad()}),t.setToggleAction(!0),t.setSelectedCallback(function(){return null!=c.scratchpad}),"0"!=urlParams.plugins&&c.actions.addAction("plugins...",function(){c.showDialog((new PluginsDialog(c)).container,380,240,!0,!1)});window.matchMedia&&null!=document.getElementById("high-contrast-stylesheet")&&
+(t=c.actions.addAction("highContrast",function(){c.setAndPersistHighContrast(!c.isHighContrast())}),t.setToggleAction(!0),t.setSelectedCallback(function(){return c.isHighContrast()}));t=c.actions.addAction("search",function(){if(null!=c.sidebar){var q=c.sidebar.isEntryVisible("search");c.sidebar.showPalette("search",!q);Editor.isSettingsEnabled()&&(mxSettings.settings.search=!q,mxSettings.save())}});t.label=mxResources.get("searchShapes");t.setToggleAction(!0);t.setSelectedCallback(function(){return null!=
+c.sidebar&&c.sidebar.isEntryVisible("search")});c.actions.get("clearDefaultStyle").funct=function(q){l.isEnabled()&&(c.clearDefaultStyle(),Editor.sketchMode&&c.setSketchMode(!1))};"1"==urlParams.embed&&(c.actions.get("saveAs").setEnabled(!1),c.actions.get("save").funct=function(q){l.isEditing()&&l.stopEditing();var y="0"!=urlParams.pages||null!=c.pages&&1<c.pages.length?c.getFileData(!0):mxUtils.getXml(c.editor.getGraphXml());if("json"==urlParams.proto){var D=c.createLoadMessage("save");D.xml=y;!0!==
+q||"1"!=urlParams.saveAndExit&&"1"!=urlParams.publishClose||(D.exit=!0);y=JSON.stringify(D)}(window.opener||window.parent).postMessage(y,"*");"0"!=urlParams.modified&&"1"!=urlParams.keepmodified&&(c.editor.modified=!1,c.clearStatus());q=c.getCurrentFile();null==q||q.constructor==EmbedFile||q.constructor==LocalFile&&null==q.mode||c.saveFile()},c.actions.addAction("saveAndExit",function(){"1"==urlParams.toSvg?c.sendEmbeddedSvgExport():c.actions.get("save").funct(!0)},null,null,Editor.ctrlKey+"+S").label=
+"1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),c.actions.addAction("exit",function(){if("1"==urlParams.embedInline)c.sendEmbeddedSvgExport();else{var q=function(){c.editor.modified=!1;var y="json"==urlParams.proto?JSON.stringify({event:"exit",modified:c.editor.modified}):"";(window.opener||window.parent).postMessage(y,"*")};c.editor.modified?c.confirm(mxResources.get("allChangesLost"),null,q,mxResources.get("cancel"),mxResources.get("discardChanges")):q()}},
+null,null,"1"==urlParams.embedInline?"Escape":null));this.put("exportAs",new Menu(mxUtils.bind(this,function(q,y){c.isExportToCanvas()?(this.addMenuItems(q,["exportPng"],y),c.jpgSupported&&this.addMenuItems(q,["exportJpg"],y),c.webpSupported&&this.addMenuItems(q,["exportWebp"],y)):c.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(q,["exportPng","exportJpg"],y);this.addMenuItems(q,["exportSvg","-"],y);c.isOffline()||c.printPdfExport?this.addMenuItems(q,["exportPdf"],y):c.isOffline()||
+mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(q,["exportPdf"],y);!c.vsdxExportEnabled()||mxClient.IS_IE||"undefined"===typeof VsdxExport&&c.isOffline()||this.addMenuItems(q,["exportVsdx"],y);this.addMenuItems(q,["-","exportHtml","exportXml","exportUrl"],y);c.isOffline()||(q.addSeparator(y),this.addMenuItem(q,"export",y).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...");mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"min"!=Editor.currentTheme||this.addMenuItems(q,["publishLink"],
+y);c.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||(q.addSeparator(y),c.menus.addSubmenu("embed",q,y))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(q,y){function D(K){K.pickFile(function(n){c.spinner.spin(document.body,mxResources.get("loading"))&&K.getFile(n,function(z){var G="data:image/"==z.getData().substring(0,11)?L(z.getTitle()):"text/xml";/\.svg$/i.test(z.getTitle())&&!c.editor.isDataSvg(z.getData())&&
+(z.setData(Editor.createSvgDataUri(z.getData())),G="image/svg+xml");J(z.getData(),G,z.getTitle())},function(z){c.handleError(z,null!=z?mxResources.get("errorLoadingFile"):null)},K==c.drive)},!0)}var J=mxUtils.bind(this,function(K,n,z){var G=l.view,M=l.getGraphBounds(),N=l.snap(Math.ceil(Math.max(0,M.x/G.scale-G.translate.x)+4*l.gridSize)),Q=l.snap(Math.ceil(Math.max(0,(M.y+M.height)/G.scale-G.translate.y)+4*l.gridSize));"data:image/"==K.substring(0,11)?c.loadImage(K,mxUtils.bind(this,function(S){var T=
+!0,W=mxUtils.bind(this,function(){c.resizeImage(S,K,mxUtils.bind(this,function(X,Z,Y){X=T?Math.min(1,Math.min(c.maxImageSize/Z,c.maxImageSize/Y)):1;c.importFile(K,n,N,Q,Math.round(Z*X),Math.round(Y*X),z,function(ba){c.spinner.stop();l.setSelectionCells(ba);l.scrollCellToVisible(l.getSelectionCell())})}),T)});K.length>c.resampleThreshold?c.confirmImageResize(function(X){T=X;W()}):W()}),mxUtils.bind(this,function(){c.handleError({message:mxResources.get("cannotOpenFile")})})):c.importFile(K,n,N,Q,0,
+0,z,function(S){c.spinner.stop();l.setSelectionCells(S);l.scrollCellToVisible(l.getSelectionCell())})}),L=mxUtils.bind(this,function(K){var n="text/xml";/\.png$/i.test(K)?n="image/png":/\.jpe?g$/i.test(K)?n="image/jpg":/\.gif$/i.test(K)?n="image/gif":/\.pdf$/i.test(K)&&(n="application/pdf");return n});"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=c.drive?q.addItem(mxResources.get("googleDrive")+"...",null,function(){D(c.drive)},y):c.isModeEnabled(App.MODE_GOOGLE)&&q.addItem(mxResources.get("googleDrive")+
+" ("+mxResources.get("loading")+"...)",null,function(){},y,null,!1));c.isModeReady(App.MODE_ONEDRIVE)?q.addItem(mxResources.get("oneDrive")+"...",null,function(){D(c.oneDrive)},y):c.isModeEnabled(App.MODE_ONEDRIVE)&&q.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},y,null,!1);c.isModeReady(App.MODE_DROPBOX)?q.addItem(mxResources.get("dropbox")+"...",null,function(){D(c.dropbox)},y):c.isModeEnabled(App.MODE_DROPBOX)&&q.addItem(mxResources.get("dropbox")+
+" ("+mxResources.get("loading")+"...)",null,function(){},y,null,!1);q.addSeparator(y);c.isModeReady(App.MODE_GITHUB)&&q.addItem(mxResources.get("github")+"...",null,function(){D(c.gitHub)},y);c.isModeReady(App.MODE_GITLAB)&&q.addItem(mxResources.get("gitlab")+"...",null,function(){D(c.gitLab)},y);c.isModeReady(App.MODE_TRELLO)?q.addItem(mxResources.get("trello")+"...",null,function(){D(c.trello)},y):c.isModeEnabled(App.MODE_TRELLO)&&q.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+
+"...)",null,function(){},y,null,!1);q.addSeparator(y);isLocalStorage&&"0"!=urlParams.browser&&q.addItem(mxResources.get("browser")+"...",null,function(){c.importLocalFile(!1)},y);"1"!=urlParams.noDevice&&q.addItem(mxResources.get("device")+"...",null,function(){c.importLocalFile(!0)},y);c.isOffline()||(q.addSeparator(y),q.addItem(mxResources.get("url")+"...",null,function(){var K=new FilenameDialog(c,"",mxResources.get("import"),function(n){if(null!=n&&0<n.length&&c.spinner.spin(document.body,mxResources.get("loading"))){var z=
+/(\.png)($|\?)/i.test(n)?"image/png":"text/xml";c.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(n),function(G){J(G,z,n)},function(){c.spinner.stop();c.handleError(null,mxResources.get("errorLoadingFile"))},"image/png"==z)}},mxResources.get("url"));c.showDialog(K.container,300,80,!0,!0);K.init()},y))}))).isEnabled=p;this.put("dynamicAppearance",new Menu(mxUtils.bind(this,function(q,y){var D=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;"simple"==Editor.currentTheme&&
+(750>D&&this.addSubmenu("viewZoom",q,y,mxResources.get("zoom")),460>D&&c.isPageMenuVisible()&&this.addSubmenu("pages",q,y),320>D&&this.addSubmenu("insert",q,y),360>D&&"1"!=urlParams.embed&&"draw.io"==c.getServiceName()&&this.addSubmenu("share",q,y))})));this.put("appearance",new Menu(mxUtils.bind(this,function(q,y){if(c.isAutoDarkModeSupported()){var D=c.menus.addMenuItem(q,"autoMode",y);null!=D&&D.setAttribute("title",mxResources.get("automatic")+" ("+mxResources.get(Editor.isDarkMode()?"dark":"light")+
+")")}this.addMenuItems(q,["lightMode","darkMode","-"],y);D=c.menus.addMenuItem(q,"highContrast",y);(!c.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&c.menus.addLinkToItem(D,"https://github.com/jgraph/drawio/issues/4296")})));c.actions.addAction("addToScratchpad",function(q){l.isSelectionEmpty()||null==c.addSelectionToScratchpad||c.addSelectionToScratchpad(q)});c.actions.addAction("accounts...",function(){c.toggleUserPanel();c.userPanel.style.right="10px";c.userPanel.style.top="10px"});
+this.put("theme",new Menu(mxUtils.bind(this,function(q,y){var D="1"==urlParams.sketch?"sketch":mxSettings.getUi(),J=q.addItem(mxResources.get("automatic"),null,function(){c.setCurrentTheme("")},y),L=q.addItem(mxResources.get("classic"),null,function(){c.setCurrentTheme("kennedy")},y),K=!1;if("kennedy"==D||"dark"==D)q.addCheckmark(L,Editor.checkmarkImage),K=!0;for(var n=0;n<Editor.themes.length;n++)mxUtils.bind(this,function(z){L=q.addItem(mxResources.get("min"==z?"minimal":z),null,function(){c.setCurrentTheme(z)},
+y);D==z&&(q.addCheckmark(L,Editor.checkmarkImage),K=!0);"simple"==z&&q.addSeparator(y)})(Editor.themes[n]);K||q.addCheckmark(J,Editor.checkmarkImage)})));t=this.editorUi.actions.addAction("rename...",mxUtils.bind(this,function(){var q=this.editorUi.getCurrentFile();if(null!=q)if(q.constructor==LocalFile&&null!=q.fileHandle)c.showSaveFilePicker(mxUtils.bind(c,function(D,J){q.invalidFileHandle=null;q.fileHandle=D;q.title=J.name;q.desc=J;c.save(J.name)}),null,c.createFileSystemOptions(q.getTitle()));
+else{var y=null!=q.getTitle()?q.getTitle():this.editorUi.defaultFilename;y=new FilenameDialog(this.editorUi,y,mxResources.get("rename"),mxUtils.bind(this,function(D){null!=D&&0<D.length&&null!=q&&D!=q.getTitle()&&this.editorUi.spinner.spin(document.body,mxResources.get("renaming"))&&q.rename(D,mxUtils.bind(this,function(J){this.editorUi.spinner.stop()}),mxUtils.bind(this,function(J){this.editorUi.handleError(J,null!=J?mxResources.get("errorRenamingFile"):null)}))}),q.constructor==DriveFile||q.constructor==
+StorageFile?mxResources.get("diagramName"):null,function(D){if(null!=D&&0<D.length)return!0;c.showError(mxResources.get("error"),mxResources.get("invalidName"),mxResources.get("ok"));return!1},null,FilenameDialog.filenameHelpLink,null,null,c.editor.fileExtensions);this.editorUi.showDialog(y.container,340,100,!0,!0);y.init()}}));t.isEnabled=function(){return this.enabled&&p.apply(this,arguments)};t.visible="1"!=urlParams.embed;c.actions.addAction("makeCopy...",mxUtils.bind(this,function(){var q=c.getCurrentFile();
+if(null!=q){var y=c.getCopyFilename(q);q.constructor==DriveFile?(y=new CreateDialog(c,y,mxUtils.bind(this,function(D,J){"_blank"==J?c.editor.editAsNew(c.getFileData(),D):("download"==J&&(J=App.MODE_GOOGLE),null!=D&&0<D.length&&(J==App.MODE_GOOGLE?c.spinner.spin(document.body,mxResources.get("saving"))&&q.saveAs(D,mxUtils.bind(this,function(L){q.desc=L;q.save(!1,mxUtils.bind(this,function(){c.spinner.stop();q.setModified(!1);c.updateStatus(mxUtils.bind(this,function(){q.addAllSavedStatus()}))}),mxUtils.bind(this,
+function(K){c.handleError(K)}))}),mxUtils.bind(this,function(L){c.handleError(L)})):c.createFile(D,c.getFileData(!0),null,J)))}),mxUtils.bind(this,function(){c.hideDialog()}),mxResources.get("makeCopy"),mxResources.get("create"),null,null,!0,null,!0,null,null,null,null,c.editor.fileExtensions),c.showDialog(y.container,420,380,!0,!0),y.init()):c.editor.editAsNew(this.editorUi.getFileData(!0),y)}}));t=new Action("openFolder",function(q,y){q=c.getCurrentFile();null!=q&&c.openLink(q.getFolderUrl())});
+t.getTitle=function(){return mxResources.get("openIt",[mxResources.get("folder")])+"..."};c.actions.put("openFolder",t);c.actions.addAction("openFile...",mxUtils.bind(this,function(){var q=c.getCurrentFile();null!=q&&c.openLink(q.getFileUrl())}));c.actions.addAction("moveToFolder...",mxUtils.bind(this,function(){var q=c.getCurrentFile();if(q.getMode()==App.MODE_GOOGLE||q.getMode()==App.MODE_ONEDRIVE){var y=!1;if(q.getMode()==App.MODE_GOOGLE&&null!=q.desc.parents)for(var D=0;D<q.desc.parents.length;D++)if(q.desc.parents[D].isRoot){y=
+!0;break}c.pickFolder(q.getMode(),mxUtils.bind(this,function(J){c.spinner.spin(document.body,mxResources.get("moving"))&&q.move(J,mxUtils.bind(this,function(L){c.spinner.stop()}),mxUtils.bind(this,function(L){c.handleError(L)}))}),null,!0,y)}}));this.put("publish",new Menu(mxUtils.bind(this,function(q,y){this.addMenuItems(q,["publishLink"],y)})));c.actions.put("useOffline",new Action("useOffline...",function(){c.openLink("https://app.draw.io/")}));this.editorUi.actions.addAction("share...",mxUtils.bind(this,
+function(){try{var q=c.getCurrentFile();null!=q&&q.share()}catch(y){c.handleError(y)}})).isEnabled=p;this.put("embed",new Menu(mxUtils.bind(this,function(q,y){var D=c.getCurrentFile();null==D||D.getMode()!=App.MODE_GOOGLE&&D.getMode()!=App.MODE_GITHUB||!/(\.png)$/i.test(D.getTitle())||this.addMenuItems(q,["liveImage","-"],y);this.addMenuItems(q,["embedImage","embedSvg","-","embedHtml"],y);navigator.standalone||c.isOffline()||this.addMenuItems(q,["embedIframe"],y);"1"==urlParams.embed||c.isOffline()||
+this.addMenuItems(q,"- googleDocs googleSlides googleSheets - microsoftOffice - embedNotion".split(" "),y)})));c.addInsertItem=function(q,y,D,J){("plantUml"!=J||EditorUi.enablePlantUml&&!c.isOffline())&&q.addItem(D,null,mxUtils.bind(this,function(){if("fromText"==J||"formatSql"==J||"plantUml"==J||"mermaid"==J){var L=new ParseDialog(c,D,J);c.showDialog(L.container,620,420,!0,!1);c.dialog.container.style.overflow="auto"}else L=new CreateGraphDialog(c,D,J),c.showDialog(L.container,620,420,!0,!1,function(K,
+n){if(n)return c.confirm(mxResources.get("areYouSure"),function(){c.hideDialog()}),!1;null!=L.graph&&(null!=L.graph.container.parentNode&&L.graph.container.parentNode.removeChild(L.graph.container),L.graph.destroy(),L.graph=null)});L.init()}),y,null,p())};var C=function(q){l.getModel().beginUpdate();try{q=l.addCell(q),l.fireEvent(new mxEventObject("cellsInserted","cells",[q])),l.model.isVertex(q)&&l.isAutoSizeCell(q)&&l.updateCellSize(q)}finally{l.getModel().endUpdate()}l.scrollCellToVisible(q);l.setSelectionCell(q);
+l.container.focus();l.editAfterInsert&&l.startEditing(q);window.setTimeout(function(){null!=c.hoverIcons&&c.hoverIcons.update(l.view.getState(q))},0);return q},P=function(q,y,D,J,L){q=new mxCell(q,new mxGeometry(0,0,y,D),J);q.vertex=!0;null==L&&(L=l.getCenterInsertPoint(l.getBoundingBoxFromGeometry([q],!0)));q.geometry.x=L.x;q.geometry.y=L.y;return C(q)};c.actions.put("insertText",new Action("text",function(q){l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())&&l.startEditingAtCell(P("Text",60,
+30,l.appendFontSize("text;strokeColor=none;align=center;fillColor=none;html=1;verticalAlign=middle;whiteSpace=wrap;rounded=0;",l.vertexFontSize),null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!l.isMouseInsertPoint()?null:l.getInsertPoint()))},null,null,"A")).isEnabled=p;c.actions.put("insertRectangle",new Action("rectangle",function(q){l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())&&P("",120,60,"whiteSpace=wrap;html=1;",null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!l.isMouseInsertPoint()?
+null:l.getInsertPoint())},null,null,"D")).isEnabled=p;c.actions.put("insertNote",new Action("note",function(q){l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())&&P("",140,160,"shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;fontColor=#000000;darkOpacity=0.05;fillColor=#FFF9B2;strokeColor=none;fillStyle=solid;direction=west;gradientDirection=north;gradientColor=#FFF2A1;shadow=1;size=20;pointerEvents=1;",null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!l.isMouseInsertPoint()?null:
+l.getInsertPoint())},null,null,"S")).isEnabled=p;c.actions.put("insertEllipse",new Action("ellipse",function(q){l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())&&P("",80,80,"ellipse;whiteSpace=wrap;html=1;",null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!l.isMouseInsertPoint()?null:l.getInsertPoint())},null,null,"F")).isEnabled=p;c.actions.put("insertRhombus",new Action("rhombus",function(q){l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())&&P("",80,80,"rhombus;whiteSpace=wrap;html=1;",
+null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!l.isMouseInsertPoint()?null:l.getInsertPoint())},null,null,"R")).isEnabled=p;c.actions.put("insertEdge",new Action("line",function(q){if(l.isEnabled()&&!l.isCellLocked(l.getDefaultParent())){var y=l.defaultEdgeLength;q=null==q||mxEvent.isControlDown(q)||mxEvent.isMetaDown(q)||!l.isMouseInsertPoint()?null:l.getInsertPoint();null==q&&(q=l.getCenterInsertPoint(l.getBoundingBoxFromGeometry([D],!0)));var D=new mxCell("",new mxGeometry(0,0,y,0),
+"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;");D.geometry.setTerminalPoint(q,!0);D.geometry.setTerminalPoint(new mxPoint(q.x+D.geometry.width,q.y),!1);D.geometry.points=[];D.geometry.relative=!0;D.edge=!0;C(D)}},null,null,"C")).isEnabled=p;t=c.actions.put("toggleShapes",new Action("shapes",function(){null!=c.sidebarWindow?c.sidebarWindow.window.setVisible(!c.sidebarWindow.window.isVisible()):c.toggleShapesPanel(!c.isShapesPanelVisible())},null,null,Editor.ctrlKey+"+Shift+K"));t.setToggleAction(!0);
+t.setSelectedCallback(mxUtils.bind(this,function(){return null!=c.sidebarWindow&&c.sidebarWindow.window.isVisible()||null==c.sidebarWindow&&0<c.hsplitPosition}));c.addInsertMenuItems=mxUtils.bind(this,function(q,y,D){for(var J=0;J<D.length;J++)"-"==D[J]?q.addSeparator(y):c.addInsertItem(q,y,mxResources.get(D[J])+"...",D[J])});this.put("insert",new Menu(mxUtils.bind(this,function(q,y){"sketch"==Editor.currentTheme?(c.menus.addMenuItems(q,["toggleShapes"],y),c.menus.addSubmenu("table",q,y),q.addSeparator(y),
+c.menus.addMenuItems(q,["insertImage","insertLink","-"],y),c.insertTemplateEnabled&&!c.isOffline()&&c.menus.addMenuItems(q,["insertTemplate"],y),c.menus.addMenuItems(q,["generate"],y),window.isMermaidEnabled&&c.addInsertMenuItems(q,y,["mermaid"]),q.addSeparator(y),c.menus.addSubmenu("insertAdvanced",q,y,mxResources.get("advanced")),c.menus.addSubmenu("layout",q,y)):(this.addMenuItems(q,"insertRectangle insertEllipse insertRhombus - insertEdge insertNote - insertText insertLink - createShape insertFreehand - insertImage".split(" "),
+y),window.isMermaidEnabled&&c.addInsertMenuItems(q,y,["mermaid"]),c.insertTemplateEnabled&&!c.isOffline()&&this.addMenuItems(q,["-","insertTemplate"],y),c.menus.addMenuItems(q,["generate","-"],y),"min"==uiTheme||"simple"==Editor.currentTheme?(this.addSubmenu("layout",q,y),this.addSubmenu("insertLayout",q,y,mxResources.get("insert")),q.addSeparator(y),this.addSubmenu("table",q,y)):this.addSubmenu("insertLayout",q,y,mxResources.get("layout")),this.addSubmenu("insertAdvanced",q,y,mxResources.get("advanced")))})));
+this.put("table",new Menu(mxUtils.bind(this,function(q,y){c.menus.addInsertTableCellItem(q,y)})));this.put("insertLayout",new Menu(mxUtils.bind(this,function(q,y){c.addInsertMenuItems(q,y,"horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "))})));this.put("insertAdvanced",new Menu(mxUtils.bind(this,function(q,y){c.addInsertMenuItems(q,y,["fromText","plantUml","formatSql"]);q.addItem(mxResources.get("csv")+"...",null,function(){l.popupMenuHandler.hideMenu();
+c.showImportCsvDialog()},y,null,p());"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(q,["-","createShape","editDiagram"],y)})));this.put("openRecent",new Menu(function(q,y){var D=c.getRecent();if(null!=D){for(var J=0;J<D.length;J++)(function(L){var K=L.mode;K==App.MODE_GOOGLE?K="googleDrive":K==App.MODE_ONEDRIVE&&(K="oneDrive");q.addItem(L.title+" ("+mxResources.get(K)+")",null,function(){c.loadFile(L.id)},y)})(D[J]);q.addSeparator(y)}q.addItem(mxResources.get("reset"),
+null,function(){c.resetRecent()},y)}));this.put("openFrom",new Menu(function(q,y){null!=c.drive?q.addItem(mxResources.get("googleDrive")+"...",null,function(){c.pickFile(App.MODE_GOOGLE)},y):c.isModeEnabled(App.MODE_GOOGLE)&&q.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},y,null,!1);c.isModeReady(App.MODE_ONEDRIVE)?q.addItem(mxResources.get("oneDrive")+"...",null,function(){c.pickFile(App.MODE_ONEDRIVE)},y):c.isModeEnabled(App.MODE_ONEDRIVE)&&q.addItem(mxResources.get("oneDrive")+
+" ("+mxResources.get("loading")+"...)",null,function(){},y,null,!1);c.isModeReady(App.MODE_DROPBOX)?q.addItem(mxResources.get("dropbox")+"...",null,function(){c.pickFile(App.MODE_DROPBOX)},y):c.isModeEnabled(App.MODE_DROPBOX)&&q.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},y,null,!1);q.addSeparator(y);c.isModeReady(App.MODE_GITHUB)&&q.addItem(mxResources.get("github")+"...",null,function(){c.pickFile(App.MODE_GITHUB)},y);c.isModeReady(App.MODE_GITLAB)&&
+q.addItem(mxResources.get("gitlab")+"...",null,function(){c.pickFile(App.MODE_GITLAB)},y);c.isModeReady(App.MODE_TRELLO)?q.addItem(mxResources.get("trello")+"...",null,function(){c.pickFile(App.MODE_TRELLO)},y):c.isModeEnabled(App.MODE_TRELLO)&&q.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},y,null,!1);q.addSeparator(y);isLocalStorage&&"0"!=urlParams.browser&&q.addItem(mxResources.get("browser")+"...",null,function(){c.pickFile(App.MODE_BROWSER)},y);"1"!=
+urlParams.noDevice&&q.addItem(mxResources.get("device")+"...",null,function(){c.pickFile(App.MODE_DEVICE)},y);c.isOffline()||(q.addSeparator(y),q.addItem(mxResources.get("url")+"...",null,function(){var D=new FilenameDialog(c,"",mxResources.get("open"),function(J){null!=J&&0<J.length&&(null==c.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(J):window.geOpenWindow((mxClient.IS_CHROMEAPP?"https://www.draw.io/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(J)))},
+mxResources.get("url"));c.showDialog(D.container,300,80,!0,!0);D.init()},y))}));Editor.enableCustomLibraries&&(this.put("newLibrary",new Menu(function(q,y){"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=c.drive?q.addItem(mxResources.get("googleDrive")+"...",null,function(){c.showLibraryDialog(null,null,null,null,App.MODE_GOOGLE)},y):c.isModeEnabled(App.MODE_GOOGLE)&&q.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},y,null,!1));
+c.isModeReady(App.MODE_ONEDRIVE)?q.addItem(mxResources.get("oneDrive")+"...",null,function(){c.showLibraryDialog(null,null,null,null,App.MODE_ONEDRIVE)},y):c.isModeEnabled(App.MODE_ONEDRIVE)&&q.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},y,null,!1);c.isModeReady(App.MODE_DROPBOX)?q.addItem(mxResources.get("dropbox")+"...",null,function(){c.showLibraryDialog(null,null,null,null,App.MODE_DROPBOX)},y):c.isModeEnabled(App.MODE_DROPBOX)&&q.addItem(mxResources.get("dropbox")+
+" ("+mxResources.get("loading")+"...)",null,function(){},y,null,!1);q.addSeparator(y);c.isModeReady(App.MODE_GITHUB)&&q.addItem(mxResources.get("github")+"...",null,function(){c.showLibraryDialog(null,null,null,null,App.MODE_GITHUB)},y);c.isModeReady(App.MODE_GITLAB)&&q.addItem(mxResources.get("gitlab")+"...",null,function(){c.showLibraryDialog(null,null,null,null,App.MODE_GITLAB)},y);c.isModeReady(App.MODE_TRELLO)?q.addItem(mxResources.get("trello")+"...",null,function(){c.showLibraryDialog(null,
+null,null,null,App.MODE_TRELLO)},y):c.isModeEnabled(App.MODE_TRELLO)&&q.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},y,null,!1);q.addSeparator(y);isLocalStorage&&"0"!=urlParams.browser&&q.addItem(mxResources.get("browser")+"...",null,function(){c.showLibraryDialog(null,null,null,null,App.MODE_BROWSER)},y);"1"!=urlParams.noDevice&&q.addItem(mxResources.get("device")+"...",null,function(){c.showLibraryDialog(null,null,null,null,App.MODE_DEVICE)},y);"1"==
+urlParams.confLib&&q.addItem(mxResources.get("confluenceCloud")+"...",null,function(){c.showLibraryDialog(null,null,null,null,"CONF_LIB")},y)})),this.put("openLibraryFrom",new Menu(function(q,y){"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=c.drive?q.addItem(mxResources.get("googleDrive")+"...",null,function(){c.pickLibrary(App.MODE_GOOGLE)},y):c.isModeEnabled(App.MODE_GOOGLE)&&q.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},
+y,null,!1));c.isModeReady(App.MODE_ONEDRIVE)?q.addItem(mxResources.get("oneDrive")+"...",null,function(){c.pickLibrary(App.MODE_ONEDRIVE)},y):c.isModeEnabled(App.MODE_ONEDRIVE)&&q.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},y,null,!1);c.isModeReady(App.MODE_DROPBOX)?q.addItem(mxResources.get("dropbox")+"...",null,function(){c.pickLibrary(App.MODE_DROPBOX)},y):c.isModeEnabled(App.MODE_DROPBOX)&&q.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+
+"...)",null,function(){},y,null,!1);q.addSeparator(y);c.isModeReady(App.MODE_GITHUB)&&q.addItem(mxResources.get("github")+"...",null,function(){c.pickLibrary(App.MODE_GITHUB)},y);c.isModeReady(App.MODE_GITLAB)&&q.addItem(mxResources.get("gitlab")+"...",null,function(){c.pickLibrary(App.MODE_GITLAB)},y);c.isModeReady(App.MODE_TRELLO)?q.addItem(mxResources.get("trello")+"...",null,function(){c.pickLibrary(App.MODE_TRELLO)},y):c.isModeEnabled(App.MODE_TRELLO)&&q.addItem(mxResources.get("trello")+" ("+
+mxResources.get("loading")+"...)",null,function(){},y,null,!1);q.addSeparator(y);isLocalStorage&&"0"!=urlParams.browser&&q.addItem(mxResources.get("browser")+"...",null,function(){c.pickLibrary(App.MODE_BROWSER)},y);"1"!=urlParams.noDevice&&q.addItem(mxResources.get("device")+"...",null,function(){c.pickLibrary(App.MODE_DEVICE)},y);c.isOffline()||(q.addSeparator(y),q.addItem(mxResources.get("url")+"...",null,function(){var D=new FilenameDialog(c,"",mxResources.get("open"),function(J){if(null!=J&&
+0<J.length&&c.spinner.spin(document.body,mxResources.get("loading"))){var L=J;c.editor.isCorsEnabledForUrl(J)||(L=PROXY_URL+"?url="+encodeURIComponent(J));mxUtils.get(L,function(K){if(200<=K.getStatus()&&299>=K.getStatus()){c.spinner.stop();try{c.loadLibrary(new UrlLibrary(c,K.getText(),J)),c.showSidebar()}catch(n){c.handleError(n,mxResources.get("errorLoadingFile"))}}else c.spinner.stop(),c.handleError(null,mxResources.get("errorLoadingFile"))},function(){c.spinner.stop();c.handleError(null,mxResources.get("errorLoadingFile"))})}},
+mxResources.get("url"));c.showDialog(D.container,300,80,!0,!0);D.init()},y));"1"==urlParams.confLib&&(q.addSeparator(y),q.addItem(mxResources.get("confluenceCloud")+"...",null,function(){c.showRemotelyStoredLibrary(mxResources.get("libraries"))},y))})));this.put("edit",new Menu(mxUtils.bind(this,function(q,y){this.addMenuItems(q,"undo redo - cut copy copyAsImage paste delete - duplicate - findReplace - editData editTooltip - editStyle editGeometry - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));
+t=c.actions.addAction("comments",mxUtils.bind(this,function(){if(null==this.commentsWindow)this.commentsWindow=new CommentsWindow(c,document.body.offsetWidth-380,120,300,350),this.commentsWindow.window.addListener("show",function(){c.fireEvent(new mxEventObject("comments"))}),this.commentsWindow.window.addListener("hide",function(){c.fireEvent(new mxEventObject("comments"))}),this.commentsWindow.window.setVisible(!0),c.fireEvent(new mxEventObject("comments"));else{var q=!this.commentsWindow.window.isVisible();
+this.commentsWindow.window.setVisible(q);this.commentsWindow.refreshCommentsTime();q&&this.commentsWindow.hasError&&this.commentsWindow.refreshComments()}}));t.setToggleAction(!0);t.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.commentsWindow&&this.commentsWindow.window.isVisible()}));c.editor.addListener("fileLoaded",mxUtils.bind(this,function(){null!=this.commentsWindow&&(this.commentsWindow.destroy(),this.commentsWindow=null)}));this.get("viewPanels").funct=function(q,y){var D=
+c.getCurrentFile();c.menus.addMenuItems(q,"toggleShapes format ruler - findReplace layers tags chatWindowTitle outline -".split(" "),y);c.commentsSupported()&&c.menus.addMenuItems(q,["-","comments"],y);null!=D&&D.isRealtimeEnabled()&&D.isRealtimeSupported()&&c.menus.addMenuItems(q,["-","showRemoteCursors","shareCursor"],y);c.menus.addMenuItems(q,["-","fullscreen"],y)};this.put("view",new Menu(mxUtils.bind(this,function(q,y){if("simple"==Editor.currentTheme){var D=c.getCurrentFile();c.menus.addMenuItems(q,
+["toggleShapes","format"],y);c.isPageMenuVisible()&&c.menus.addMenuItems(q,["pageTabs"],y);c.menus.addMenuItems(q,["ruler","-","search"],y);if(isLocalStorage||mxClient.IS_CHROMEAPP){var J=c.menus.addMenuItem(q,"scratchpad",y);(!c.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&c.menus.addLinkToItem(J,"https://www.drawio.com/doc/faq/scratchpad")}c.menus.addMenuItems(q,"- findReplace layers tags chatWindowTitle outline -".split(" "),y);c.commentsSupported()&&c.menus.addMenuItems(q,["comments"],
+y);null!=D&&D.isRealtimeEnabled()&&D.isRealtimeSupported()&&this.addMenuItems(q,["showRemoteCursors"],y);this.addMenuItems(q,["-","fullscreen"],y)}else{this.addMenuItems(q,["format","outline","layers","tags","chatWindowTitle"].concat(c.commentsSupported()?["comments","-"]:["-"]));this.addMenuItems(q,["-","search"],y);if(isLocalStorage||mxClient.IS_CHROMEAPP)J=this.addMenuItem(q,"scratchpad",y),(!c.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(J,"https://www.drawio.com/doc/faq/scratchpad");
+this.addMenuItems(q,["toggleShapes","-","pageView","pageScale"]);this.addSubmenu("units",q,y);q.addSeparator(y);c.isPageMenuVisible()&&c.menus.addMenuItems(q,["pageTabs"],y);this.addMenuItems(q,"ruler - tooltips animations - grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),y);"1"!=urlParams.sketch&&this.addMenuItems(q,["-","fullscreen"],y)}})));this.put("editCell",new Menu(mxUtils.bind(this,function(q,y){this.addMenuItems(q,"editLink editShape editImage crop - editData copyData pasteData - editConnectionPoints editGeometry - editTooltip editStyle - edit".split(" "),
+y)})));this.put("currentPage",new Menu(mxUtils.bind(this,function(q,y){var D=c.currentPage;null!=D&&(q.addItem(mxResources.get("rename")+"...",null,mxUtils.bind(this,function(){c.renamePage(D,D.getName())}),y),q.addItem(mxResources.get("delete"),null,mxUtils.bind(this,function(){c.removePage(D)}),y),1<c.pages.length&&(c.menus.addSubmenu("movePage",q,y,mxResources.get("move")),q.addSeparator(y)),q.addSeparator(y),q.addItem(mxResources.get("duplicate"),null,mxUtils.bind(this,function(){c.duplicatePage(D,
+mxResources.get("copyOf",[D.getName()]))}),y),1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=c.getServiceName()||q.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){c.editor.editAsNew(c.getFileData(!0,null,null,null,!0,!0))}),y)))})));this.put("pages",new Menu(mxUtils.bind(this,function(q,y){var D=c.currentPage;c.editor.graph.isLightboxView()||(q.addItem(mxResources.get("insertPage"),null,mxUtils.bind(this,function(){try{c.insertPage()}catch(L){c.handleError(L)}}),
+y,null,c.editor.graph.isEnabled()),q.addSeparator(y));if(null!=c.pages)for(var J=0;J<c.pages.length;J++)mxUtils.bind(this,function(L){var K=null;K=c.pages[L]==D&&!c.editor.graph.isLightboxView()&&c.editor.graph.isEnabled()?c.menus.addSubmenu("currentPage",q,y,c.getShortPageName(D)):q.addItem(c.getShortPageName(c.pages[L]),null,mxUtils.bind(this,function(){c.selectPage(c.pages[L])}),y);var n=c.pages[L].getId();K.setAttribute("title",c.pages[L].getName()+" ("+(L+1)+"/"+c.pages.length+")"+(null!=n?" ["+
+n+"]":""));c.pages[L]==D&&q.addCheckmark(K,Editor.checkmarkImage)})(J)})));if(EditorUi.isElectronApp){var R="1"==urlParams.enableSpellCheck;t=c.actions.addAction("spellCheck",function(){c.toggleSpellCheck();R=!R;c.alert(mxResources.get("restartForChangeRequired"))});t.setToggleAction(!0);t.setSelectedCallback(function(){return R});var U="1"==urlParams.enableStoreBkp;t=c.actions.addAction("autoBkp",function(){c.toggleStoreBkp();U=!U});t.setToggleAction(!0);t.setSelectedCallback(function(){return U});
+var O="1"==urlParams.isGoogleFontsEnabled;t=c.actions.addAction("googleFonts",function(){c.toggleGoogleFonts();O=!O;c.alert(mxResources.get("restartForChangeRequired"))});t.setToggleAction(!0);t.setSelectedCallback(function(){return O});c.actions.addAction("openDevTools",function(){c.openDevTools()});c.actions.addAction("drafts...",function(){var q=new FilenameDialog(c,EditorUi.draftSaveDelay/1E3+"",mxResources.get("apply"),mxUtils.bind(this,function(y){y=parseInt(y);0<=y&&(EditorUi.draftSaveDelay=
+1E3*y,EditorUi.enableDrafts=0<y,mxSettings.setDraftSaveDelay(y),mxSettings.save())}),mxResources.get("draftSaveInt"));c.showDialog(q.container,320,80,!0,!0);q.init()})}var V=this.get("language");this.put("extras",new Menu(mxUtils.bind(this,function(q,y){if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme){null==V||"1"==urlParams.embed&&null!=urlParams.lang||c.menus.addSubmenu("language",q,y);"1"==urlParams.embed&&"1"!=urlParams.atlas||"1"==urlParams.extAuth||
+"1"==urlParams.embedInline||c.menus.addSubmenu("appearance",q,y);"1"!=urlParams.embed&&"1"!=urlParams.extAuth&&c.mode!=App.MODE_ATLAS&&c.menus.addSubmenu("theme",q,y);q.addSeparator(y);c.menus.addSubmenu("units",q,y);c.menus.addMenuItems(q,"- copyConnect collapseExpand - tooltips animations -".split(" "),y);var D=c.getCurrentFile();"simple"!=Editor.currentTheme&&(null!=D&&D.isRealtimeEnabled()&&D.isRealtimeSupported()&&this.addMenuItems(q,["showRemoteCursors"],y),c.menus.addMenuItems(q,["ruler","-"],
+y));EditorUi.isElectronApp&&c.menus.addMenuItems(q,"- googleFonts spellCheck autoBkp drafts -".split(" "),y);this.addSubmenu("diagramLanguage",q,y);q.addSeparator(y);c.mode!=App.MODE_ATLAS&&c.menus.addMenuItem(q,"configuration",y);q.addSeparator(y)}else"1"==urlParams.embed&&null!=urlParams.lang||this.addSubmenu("language",q,y),"1"==urlParams.embed&&"1"!=urlParams.atlas||c.menus.addSubmenu("appearance",q,y),"1"!=urlParams.embed&&"1"!=urlParams.extAuth&&c.mode!=App.MODE_ATLAS&&this.addSubmenu("theme",
+q,y),EditorUi.isElectronApp&&this.addMenuItems(q,"- googleFonts spellCheck autoBkp drafts -".split(" "),y),q.addSeparator(y),D=this.addSubmenu("adaptiveColors",q,y),(!c.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&c.menus.addLinkToItem(D,"https://github.com/jgraph/drawio/discussions/4713"),"undefined"!==typeof MathJax&&(D=this.addMenuItem(q,"mathematicalTypesetting",y),(!c.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(D,"https://www.drawio.com/doc/faq/math-typesetting")),
+"1"!=urlParams.embed&&(D=c.getCurrentFile(),null!=D&&D.isRealtimeEnabled()&&D.isRealtimeSupported()&&this.addMenuItems(q,["-","showRemoteCursors","shareCursor"],y),q.addSeparator(y),(isLocalStorage||mxClient.IS_CHROMEAPP)&&this.addMenuItems(q,["showStartScreen"],y),this.addMenuItems(q,["autosave"],y)),this.addMenuItems(q,["-","copyConnect","collapseExpand","-"],y),this.addSubmenu("diagramLanguage",q,y),this.addMenuItems(q,["editDiagram","-"],y),!c.isOfflineApp()&&isLocalStorage&&this.addMenuItem(q,
+"plugins",y),this.addMenuItems(q,["configuration"],y)})));this.put("movePage",new Menu(mxUtils.bind(this,function(q,y){var D=c.currentPage,J=c.getPageIndex(D);if(null!=c.pages)for(var L=0;L<c.pages.length;L++)L!=J&&function(K){q.addItem(c.getShortPageName(c.pages[K]),null,function(){c.movePage(J,K);c.scrollToPage(D,!0)},y)}(L)})));this.put("share",new Menu(mxUtils.bind(this,function(q,y){if(!c.isStandaloneApp()){var D=c.isOffline(!0)?mxResources.get("offline"):c.getNetworkStatus();null!=D&&(q.addItem(D,
+null,null,y,null,!1),q.addSeparator(y));c.menus.addMenuItems(q,["share"],y)}this.addMenuItem(q,"publishLink",y,null,null,mxResources.get("publish")+"...");null!=c.getMainUser()&&this.addMenuItems(q,["accounts"],y)})));this.put("diagram",new Menu(mxUtils.bind(this,function(q,y){var D=c.getCurrentFile();"simple"!=Editor.currentTheme&&(c.menus.addSubmenu("extras",q,y,mxResources.get("settings")),q.addSeparator(y));var J="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;if(mxClient.IS_CHROMEAPP||
+EditorUi.isElectronApp)c.menus.addMenuItems(q,"new open - synchronize properties - save saveAs -".split(" "),y);else if(c.mode==App.MODE_ATLAS){"1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&c.menus.addMenuItems(q,["-","save"],y);if("1"==urlParams.saveAndExit||"1"==urlParams.noSaveBtn&&"0"!=urlParams.saveAndExit||c.mode==App.MODE_ATLAS)c.menus.addMenuItems(q,["saveAndExit"],y),null!=D&&D.isRevisionHistorySupported()&&c.menus.addMenuItems(q,["revisionHistory"],y);q.addSeparator(y)}else c.mode==
+App.MODE_ATLAS?c.menus.addMenuItems(q,["save","synchronize","-"],y):"1"!=urlParams.noFileMenu&&(c.menus.addSubmenu("file",q,y),q.addSeparator(y),"min"==Editor.currentTheme&&(c.menus.addMenuItems(q,"toggleShapes format layers tags chatWindowTitle - findReplace".split(" "),y),c.commentsSupported()&&c.menus.addMenuItems(q,["comments"],y),q.addSeparator(y)));c.menus.addSubmenu("exportAs",q,y);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"atlassian"==c.getServiceName()?c.menus.addMenuItems(q,["import"],
+y):"1"!=urlParams.noFileMenu&&c.menus.addSubmenu("importFrom",q,y);"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme?(c.menus.addMenuItems(q,["-","findReplace"],y),c.commentsSupported()&&c.menus.addMenuItems(q,["comments","-"],y),c.menus.addMenuItems(q,"toggleShapes format layers tags chatWindowTitle -".split(" "),y),c.menus.addMenuItems(q,["pageSetup"],y)):"min"!=Editor.currentTheme&&(this.addMenuItems(q,["-"],y),this.addSubmenu("newLibrary",q,y),this.addSubmenu("openLibraryFrom",q,y));q.addSeparator(y);
+"1"==urlParams.noFileMenu||mxClient.IS_IOS&&navigator.standalone||c.menus.addMenuItems(q,["print"],y);J||"min"==Editor.currentTheme||null==D||null==c.fileNode||"1"==urlParams.embedInline||(J=null!=D.getTitle()?D.getTitle():c.defaultFilename,/(\.html)$/i.test(J)||this.addMenuItems(q,["-","properties"]));q.addSeparator(y);"simple"==Editor.currentTheme&&(c.menus.addSubmenu("extras",q,y,mxResources.get("settings")),q.addSeparator(y));c.menus.addSubmenu("help",q,y);q.addSeparator(y);"1"==urlParams.embed&&
+("1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&c.menus.addMenuItems(q,["save"],y),"1"==urlParams.saveAndExit||"1"==urlParams.noSaveBtn&&"0"!=urlParams.saveAndExit)&&(c.menus.addMenuItems(q,["saveAndExit"],y),null!=D&&D.isRevisionHistorySupported()&&c.menus.addMenuItems(q,["revisionHistory"],y));"1"!=urlParams.embed&&c.mode!=App.MODE_ATLAS||"1"==urlParams.noExitBtn&&c.mode!=App.MODE_ATLAS||c.menus.addMenuItems(q,["exit"],y);"1"!=urlParams.embed&&null!=D&&"undefined"==typeof AtlasFile&&c.menus.addMenuItems(q,
+["-","close"],y)})));this.put("save",new Menu(mxUtils.bind(this,function(q,y){var D=c.getCurrentFile();null==D||D.constructor!=DriveFile&&D.constructor!=OneDriveFile?(c.menus.addMenuItems(q,["save","saveAs","-","rename"],y),c.isOfflineApp()?navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&this.addMenuItems(q,["upload"],y):c.menus.addMenuItems(q,["makeCopy"],y)):c.menus.addMenuItems(q,["save","makeCopy","-","rename","moveToFolder"],y);c.menus.addMenuItems(q,["-","autosave"],y);null!=
+D&&D.isRevisionHistorySupported()&&c.menus.addMenuItems(q,["-","revisionHistory"],y)})));this.put("file",new Menu(mxUtils.bind(this,function(q,y){var D="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme;if("1"==urlParams.embed)this.addSubmenu("importFrom",q,y),this.addSubmenu("exportAs",q,y),this.addSubmenu("embed",q,y),"1"==urlParams.libraries&&(this.addMenuItems(q,["-"],y),this.addSubmenu("newLibrary",q,y),this.addSubmenu("openLibraryFrom",q,y)),c.isRevisionHistorySupported()&&
+this.addMenuItems(q,["-","revisionHistory"],y),this.addMenuItems(q,["-","pageSetup","print","-","rename"],y),"1"!=urlParams.embedInline&&("1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&this.addMenuItems(q,["saveAndExit"],y):(this.addMenuItems(q,["save"],y),"1"==urlParams.saveAndExit&&this.addMenuItems(q,["saveAndExit"],y))),"1"!=urlParams.noExitBtn&&this.addMenuItems(q,["exit"],y);else if(D){D=c.getCurrentFile();c.menus.addMenuItems(q,["new"],y);c.menus.addSubmenu("openFrom",q,y);isLocalStorage&&
+this.addSubmenu("openRecent",q,y);q.addSeparator(y);c.menus.addMenuItems(q,["-","save"],y);null!=D&&D.constructor==DriveFile||c.menus.addMenuItems(q,["saveAs"],y);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null==D||D.constructor==LocalFile&&null==D.fileHandle||c.menus.addMenuItems(q,["synchronize"],y);q.addSeparator(y);null!=D&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"sketch"!=Editor.currentTheme||this.addMenuItem(q,"publishLink",y,null,null,mxResources.get("publish")+"..."),"simple"==
+Editor.currentTheme||D.constructor!=DriveFile&&D.constructor!=GitHubFile&&D.constructor!=OneDriveFile||c.menus.addMenuItems(q,["share"],y));q.addSeparator(y);null!=D&&D.isRenamable()&&this.addMenuItems(q,["rename"],y);c.isOfflineApp()?navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&this.addMenuItems(q,["upload"],y):(c.menus.addMenuItems(q,["makeCopy"],y),null!=D&&(D.constructor!=OneDriveFile&&D.constructor!=DriveFile||c.menus.addMenuItems(q,["moveToFolder"],y),q.addSeparator(y),
+null!=D.getFolderUrl()&&c.menus.addMenuItems(q,["openFolder"],y),null!=D.getFileUrl()&&c.menus.addMenuItems(q,["openFile"],y)));q.addSeparator(y);null!=D&&D.isRevisionHistorySupported()&&c.menus.addMenuItems(q,["revisionHistory"],y);if(null!=D&&null!=c.fileNode&&"1"!=urlParams.embedInline){var J=null!=D.getTitle()?D.getTitle():c.defaultFilename;(D.constructor==DriveFile&&null!=D.sync&&D.sync.isConnected()||!/(\.html)$/i.test(J))&&this.addMenuItems(q,["properties"],y)}"simple"==Editor.currentTheme&&
+c.menus.addMenuItems(q,["-","autosave"],y)}else D=this.editorUi.getCurrentFile(),null!=D&&D.constructor==DriveFile?(D.isRestricted()&&this.addMenuItems(q,["exportOptionsDisabled"],y),this.addMenuItems(q,["save","-","share"],y),J=this.addMenuItem(q,"synchronize",y),(!c.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(J,"https://www.drawio.com/doc/faq/synchronize"),q.addSeparator(y)):this.addMenuItems(q,["new"],y),this.addSubmenu("openFrom",q,y),isLocalStorage&&this.addSubmenu("openRecent",
+q,y),null!=D&&D.constructor==DriveFile?this.addMenuItems(q,"new - rename makeCopy openFolder moveToFolder".split(" "),y):(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null==D||D.constructor==LocalFile&&null==D.fileHandle||(q.addSeparator(y),J=this.addMenuItem(q,"synchronize",y),(!c.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(J,"https://www.drawio.com/doc/faq/synchronize")),this.addMenuItems(q,["-","save","saveAs","-"],y),mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||
+"draw.io"!=c.getServiceName()||c.isOfflineApp()||null==D||this.addMenuItems(q,["share","-"],y),null!=D&&D.isRenamable()&&this.addMenuItems(q,["rename"],y),c.isOfflineApp()?navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&this.addMenuItems(q,["upload"],y):(this.addMenuItems(q,["makeCopy"],y),null!=D&&(D.constructor==OneDriveFile&&this.addMenuItems(q,["moveToFolder"],y),null!=D.getFolderUrl()&&c.menus.addMenuItems(q,["openFolder"],y)))),q.addSeparator(y),this.addSubmenu("importFrom",
+q,y),this.addSubmenu("exportAs",q,y),q.addSeparator(y),this.addSubmenu("embed",q,y),this.addSubmenu("publish",q,y),q.addSeparator(y),this.addSubmenu("newLibrary",q,y),this.addSubmenu("openLibraryFrom",q,y),c.isRevisionHistorySupported()&&this.addMenuItems(q,["-","revisionHistory"],y),null!=D&&null!=c.fileNode&&"1"!=urlParams.embedInline&&(J=null!=D.getTitle()?D.getTitle():c.defaultFilename,(D.constructor==DriveFile&&null!=D.sync&&D.sync.isConnected()||!/(\.html)$/i.test(J))&&this.addMenuItems(q,["-",
+"properties"])),this.addMenuItems(q,["-","pageSetup"],y),mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(q,["print"],y),this.addMenuItems(q,["-","close"])})));this.put("fontFamily",new Menu(mxUtils.bind(this,function(q,y){function D(N){var Q=encodeURIComponent(N.name)+(null==N.url?"":"@"+encodeURIComponent(N.url));if(!L[Q]){for(var S=N.name,T=0;null!=G[S.toLowerCase()];)S=N.name+" ("+ ++T+")";null==z[Q]&&(M.push({name:N.name,url:N.url,label:S,title:N.url}),G[S.toLowerCase()]=N,z[Q]=N)}}for(var J=
+mxUtils.bind(this,function(N,Q,S,T,W){var X=c.editor.graph,Z=this.styleChange(q,null!=T?T:N,[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],[N,null!=Q?encodeURIComponent(Q):null,null],null,y,function(){X.setFont(N,Q);c.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],"values",[N,null!=Q?encodeURIComponent(Q):null,null],"cells",[X.cellEditor.getEditingCell()]))},function(){X.updateLabelElements(X.getSelectionCells(),function(Y){Y.removeAttribute("face");
+Y.style.fontFamily=null;"PRE"==Y.nodeName&&X.replaceElement(Y,"div")})});S&&(S=document.createElement("img"),S.className="geAdaptiveAsset",S.setAttribute("src",Editor.crossImage),S.setAttribute("title",mxResources.get("delete")),S.setAttribute("valign","absmiddle"),S.setAttribute("border","0"),S.style.position="relative",S.style.top="2px",S.style.width="14px",S.style.cursor="default",S.style.margin="0 3px",Z.firstChild.nextSibling.nextSibling.appendChild(S),mxEvent.addListener(S,mxClient.IS_POINTER?
+"pointerup":"mouseup",mxUtils.bind(this,function(Y){this.removeCustomFont(N,Q);this.editorUi.hideCurrentMenu();mxEvent.consume(Y)})));Graph.addFont(N,Q);Z.firstChild.nextSibling.style.fontFamily=N;W=null!=T?T:N;null!=Q&&(W+=" ("+Q+")");Z.setAttribute("title",W)}),L={},K=0;K<this.defaultFonts.length;K++){var n=this.defaultFonts[K];"string"===typeof n?J(n):null!=n.fontFamily&&null!=n.fontUrl&&(L[encodeURIComponent(n.fontFamily)+"@"+encodeURIComponent(n.fontUrl)]=!0,J(n.fontFamily,n.fontUrl))}q.addSeparator(y);
+var z={},G={},M=[];for(K=0;K<this.customFonts.length;K++)D(this.customFonts[K]);M.sort(function(N,Q){return N.label<Q.label?-1:N.label>Q.label?1:0});if(0<M.length){for(K=0;K<M.length;K++)J(M[K].name,M[K].url,!0,M[K].label);q.addSeparator(y)}q.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];c.fireEvent(new mxEventObject("customFontsChanged"))}),y);q.addSeparator(y);q.addItem(mxResources.get("custom")+"...",null,mxUtils.bind(this,function(){var N=this.editorUi.editor.graph,
+Q=N.getStylesheet().getDefaultVertexStyle()[mxConstants.STYLE_FONTFAMILY],S="s",T=null;if(N.isEditing()){var W=N.getSelectedEditingElement();if(null!=W){var X=mxUtils.getCurrentStyle(W);if(null!=X){Q=mxUtils.getCssFontFamily(X.fontFamily);X=N.getView().getState(N.cellEditor.getEditingCell());T=null!=X?X.style.fontSource:null;for(null!=T&&(T=decodeURIComponent(T));null!=W&&W!=N.cellEditor.textarea;){if(W.nodeType==mxConstants.NODETYPE_ELEMENT)if(null!=W.getAttribute("data-font-src")){T=W.getAttribute("data-font-src");
+break}else if(W.getAttribute("face")==Q){T=null;break}W=W.parentNode}null!=T&&(Graph.isGoogleFontUrl(T)?(T=null,S="g"):S="w")}}}else X=N.getView().getState(N.getSelectionCell()),null!=X&&(Q=X.style[mxConstants.STYLE_FONTFAMILY]||Q,W=X.style.fontSource,null!=W&&(W=decodeURIComponent(W),Graph.isGoogleFontUrl(W)?S="g":(S="w",T=W)));null!=T&&T.substring(0,PROXY_URL.length)==PROXY_URL&&(T=decodeURIComponent(T.substr((PROXY_URL+"?url=").length)));var Z=null;document.activeElement==N.cellEditor.textarea&&
+(Z=N.cellEditor.saveSelection());Q=new FontDialog(this.editorUi,Q,T,S,mxUtils.bind(this,function(Y,ba,da){null!=Z&&(N.cellEditor.restoreSelection(Z),Z=null);if(null!=Y&&0<Y.length)if(this.addCustomFont(Y,ba),N.isEditing())N.setFont(Y,ba);else{N.getModel().beginUpdate();try{N.stopEditing(!1),N.setCellStyles(mxConstants.STYLE_FONTFAMILY,Y),N.setCellStyles("fontSource",null!=ba?encodeURIComponent(ba):null),N.setCellStyles("FType",null)}finally{N.getModel().endUpdate()}}}));this.editorUi.showDialog(Q.container,
+380,130+(Editor.enableWebFonts?70:0)+("0"!=urlParams.isGoogleFontsEnabled?50:0),!0,!0);Q.init()}),y,null,!0)})))}})();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,f){this.ui=b;this.page=e;this.previous=this.name=f}
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,f){this.ui=b;this.oldIndex=e;this.newIndex=f}
MovePage.prototype.execute=function(){this.ui.pages.splice(this.newIndex,0,this.ui.pages.splice(this.oldIndex,1)[0]);var b=this.oldIndex;this.oldIndex=this.newIndex;this.newIndex=b;this.ui.editor.graph.updatePlaceholders();this.ui.editor.fireEvent(new mxEventObject("pageMoved"))};function SelectPage(b,e,f){this.ui=b;this.previousPage=this.page=e;null!=e&&(this.ui.updatePageRoot(e),null!=f&&(e.viewState=f))}
@@ -14391,17 +14438,17 @@ ReplaceDiagram.prototype.execute=function(){var b=this.ui.editor.graph,e=this.ui
EditorUi.prototype.getPageIndex=function(b){var e=null;if(null!=this.pages&&null!=b)for(var f=0;f<this.pages.length;f++)if(this.pages[f]==b){e=f;break}return e};EditorUi.prototype.getPageById=function(b,e){e=null!=e?e:this.pages;if(null!=e)for(var f=0;f<e.length;f++)if(e[f].getId()==b)return e[f];return null};
EditorUi.prototype.createImageForPageLink=function(b,e,f,c){var l=b.indexOf(","),p=null;0<l&&(l=this.getPageById(b.substring(l+1)),null!=l&&l!=e&&(p=this.getImageForPage(l,e,f,c),p.originalSrc=b));null==p&&(p={originalSrc:b});return p};
EditorUi.prototype.pageSelected=function(){var b=this.editor.graph,e=this.currentPage;null!=e&&(b.tooltipHandler.hide(),null==e.viewState||null==e.viewState.scrollTop||null==e.viewState.scrollLeft?(b.selectUnlockedLayer(),this.resetScrollbars(),b.isLightboxView()&&this.lightboxFit(),null!=this.chromelessResize&&(b.container.scrollleft=0,b.container.scrollTop=0,this.chromelessResize())):b.setScrollbarPositions(e.viewState,b.view.translate.x,b.view.translate.y),this.updateTabContainer(),this.scrollToPage())};
-EditorUi.prototype.getImageForPage=function(b,e,f,c){f=null!=f?f:this.editor.graph;var l=f.getGlobalVariable;f=this.createTemporaryGraph(f.getStylesheet());var p=this.getPageIndex(null!=e?e:this.currentPage);f.getGlobalVariable=function(v){return"pagenumber"==v?p+1:"page"==v&&null!=e?e.getName():l.apply(this,arguments)};document.body.appendChild(f.container);this.updatePageRoot(b);f.setAdaptiveColors(b.viewState.adaptiveColors);f.model.setRoot(b.root);b=Graph.foreignObjectWarningText;Graph.foreignObjectWarningText=
-"";c=f.getSvg(null,null,null,null,null,null,null,null,null,null,c,null,null,null,!0,!0);var q=f.getGraphBounds();document.body.removeChild(f.container);Graph.foreignObjectWarningText=b;return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(c)),q.width,q.height,q.x,q.y)};
+EditorUi.prototype.getImageForPage=function(b,e,f,c){f=null!=f?f:this.editor.graph;var l=f.getGlobalVariable;f=this.createTemporaryGraph(f.getStylesheet());var p=this.getPageIndex(null!=e?e:this.currentPage);f.getGlobalVariable=function(t){return"pagenumber"==t?p+1:"page"==t&&null!=e?e.getName():l.apply(this,arguments)};document.body.appendChild(f.container);this.updatePageRoot(b);f.setAdaptiveColors(b.viewState.adaptiveColors);f.model.setRoot(b.root);b=Graph.foreignObjectWarningText;Graph.foreignObjectWarningText=
+"";c=f.getSvg(null,null,null,null,null,null,null,null,null,null,c,null,null,null,!0,!0);var v=f.getGraphBounds();document.body.removeChild(f.container);Graph.foreignObjectWarningText=b;return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(c)),v.width,v.height,v.x,v.y)};
EditorUi.prototype.initPages=function(){if(!this.editor.graph.standalone){this.actions.addAction("previousPage",mxUtils.bind(this,function(){this.selectNextPage(!1)}));this.actions.addAction("nextPage",mxUtils.bind(this,function(){this.selectNextPage(!0)}));this.isPagesEnabled()&&(this.keyHandler.bindAction(33,!0,"previousPage",!0),this.keyHandler.bindAction(34,!0,"nextPage",!0));var b=this.editor.graph,e=b.view.validateBackground;b.view.validateBackground=mxUtils.bind(this,function(){e.apply(b.view,
-arguments);null!=b.view.backgroundImage&&EditorUi.embedSvgImages(b.view.backgroundImage.node)});this.editor.graph.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(q,v){q=v.getProperty("edit").changes;for(v=0;v<q.length;v++)if(q[v]instanceof RenamePage||q[v]instanceof ChangePage||q[v]instanceof mxRootChange){this.updateTabContainer();break}null==this.currentPage||1==q.length&&q[0]instanceof SelectPage||this.currentPage.setDiagramModified(!0)}));var f=b.sizeDidChange,c=null,l=this;b.sizeDidChange=
-function(){var q=f.apply(this,arguments);null!=l.currentPage&&c!=l.currentPage&&(c=l.currentPage,l.pageSelected());return q};b.addListener(mxEvent.ROOT,mxUtils.bind(this,function(){b.checkDefaultParent()}));var p=mxUtils.bind(this,function(){this.updateDocumentTitle();this.updateTabContainer()});this.addListener("currentThemeChanged",p);this.editor.addListener("pagesPatched",p);this.editor.addListener("pageRenamed",p);this.editor.addListener("pageMoved",p);this.editor.addListener("fileLoaded",p);
-this.editor.addListener("pageSelected",mxUtils.bind(this,function(q,v){this.scrollToPage();this.updateHashObject();this.updateTabContainer();this.updateDocumentTitle()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(q,v){this.scrollToPage();this.updateHashObject()}));mxEvent.addListener(window,"resize",mxUtils.bind(this,function(){this.checkTabScrollerOverflow()}));this.addListener("languageChanged",mxUtils.bind(this,function(){this.updateTabContainer()}))}};
+arguments);null!=b.view.backgroundImage&&EditorUi.embedSvgImages(b.view.backgroundImage.node)});this.editor.graph.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(v,t){v=t.getProperty("edit").changes;for(t=0;t<v.length;t++)if(v[t]instanceof RenamePage||v[t]instanceof ChangePage||v[t]instanceof mxRootChange){this.updateTabContainer();break}null==this.currentPage||1==v.length&&v[0]instanceof SelectPage||this.currentPage.setDiagramModified(!0)}));var f=b.sizeDidChange,c=null,l=this;b.sizeDidChange=
+function(){var v=f.apply(this,arguments);null!=l.currentPage&&c!=l.currentPage&&(c=l.currentPage,l.pageSelected());return v};b.addListener(mxEvent.ROOT,mxUtils.bind(this,function(){b.checkDefaultParent()}));var p=mxUtils.bind(this,function(){this.updateDocumentTitle();this.updateTabContainer()});this.addListener("currentThemeChanged",p);this.editor.addListener("pagesPatched",p);this.editor.addListener("pageRenamed",p);this.editor.addListener("pageMoved",p);this.editor.addListener("fileLoaded",p);
+this.editor.addListener("pageSelected",mxUtils.bind(this,function(v,t){this.scrollToPage();this.updateHashObject();this.updateTabContainer();this.updateDocumentTitle()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(v,t){this.scrollToPage();this.updateHashObject()}));mxEvent.addListener(window,"resize",mxUtils.bind(this,function(){this.checkTabScrollerOverflow()}));this.addListener("languageChanged",mxUtils.bind(this,function(){this.updateTabContainer()}))}};
EditorUi.prototype.scrollToPage=function(b,e){var f=null!=b?this.getPageIndex(b):this.getSelectedPageIndex(),c=null!=b?b:this.currentPage;null!=f&&null!=this.tabScroller&&this.tabScroller.children.length>f&&null!=this.tabScroller.children[f]&&(c!=this.lastScrollPage||e)&&(this.tabScroller.children[f].scrollIntoView({block:"nearest",inline:null!=b?"nearest":"center"}),this.tabScroller.children[f].className="geTab gePageTab geActivePage",this.lastScrollPage=c)};
EditorUi.prototype.restoreViewState=function(b,e,f){b=null!=b?this.getPageById(b.getId()):null;var c=this.editor.graph;null!=b&&null!=this.currentPage&&null!=this.pages&&(b!=this.currentPage?this.selectPage(b,!0,e):(c.setViewState(e),this.editor.updateGraphComponents(),c.view.revalidate(),c.sizeDidChange()),c.container.scrollLeft=c.view.translate.x*c.view.scale+e.scrollLeft,c.container.scrollTop=c.view.translate.y*c.view.scale+e.scrollTop,c.restoreSelection(f))};
-Graph.prototype.createViewState=function(b){var e=b.getAttribute("page"),f=parseFloat(b.getAttribute("pageScale")),c=parseFloat(b.getAttribute("pageWidth")),l=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),q=this.parseBackgroundImage(b.getAttribute("backgroundImage")),v=b.getAttribute("extFonts");if(v)try{v=v.split("|").map(function(D){D=D.split("^");return{name:D[0],url:D[1]}})}catch(D){console.log("ExtFonts format error: "+D.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:q,pageScale:isNaN(f)?mxGraph.prototype.pageScale:f,pageFormat:isNaN(c)||isNaN(l)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:
-mxSettings.getPageFormat():new mxRectangle(0,0,c,l),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:v||[]}};
+Graph.prototype.createViewState=function(b){var e=b.getAttribute("page"),f=parseFloat(b.getAttribute("pageScale")),c=parseFloat(b.getAttribute("pageWidth")),l=parseFloat(b.getAttribute("pageHeight")),p=b.getAttribute("background"),v=this.parseBackgroundImage(b.getAttribute("backgroundImage")),t=b.getAttribute("extFonts");if(t)try{t=t.split("|").map(function(E){E=E.split("^");return{name:E[0],url:E[1]}})}catch(E){console.log("ExtFonts format error: "+E.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:v,pageScale:isNaN(f)?mxGraph.prototype.pageScale:f,pageFormat:isNaN(c)||isNaN(l)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:
+mxSettings.getPageFormat():new mxRectangle(0,0,c,l),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:t||[]}};
Graph.prototype.saveViewState=function(b,e,f,c){f||(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",
null==b||b.foldingEnabled?"1":"0"));e.setAttribute("pageScale",null!=b&&null!=b.pageScale?b.pageScale:mxGraph.prototype.pageScale);f=null!=b?b.pageFormat:"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat();null!=f&&(e.setAttribute("pageWidth",f.width),e.setAttribute("pageHeight",f.height));null!=b&&(null!=b.background&&e.setAttribute("background",b.background),c=this.getBackgroundImageObject(b.backgroundImage,c),null!=c&&e.setAttribute("backgroundImage",
JSON.stringify(c)));e.setAttribute("math",(null==b?this.defaultMathEnabled:b.mathEnabled)?"1":"0");e.setAttribute("shadow",null!=b&&b.shadowVisible?"1":"0");null==b||null==b.adaptiveColors?e.removeAttribute("adaptiveColors"):e.setAttribute("adaptiveColors",b.adaptiveColors);null!=b&&null!=b.extFonts&&0<b.extFonts.length&&e.setAttribute("extFonts",b.extFonts.map(function(l){return l.name+"^"+l.url}).join("|"))};
@@ -14417,20 +14464,20 @@ c=!0;for(l=0;l<f.length;l++)if(f[l].name==b){c=!1;break}c&&this.extFonts.push({n
EditorUi.prototype.updatePageRoot=function(b,e){if(null==b.root){e=this.editor.extractGraphModel(b.node,null,e);var f=Editor.extractParserError(e);if(f)throw Error(f);null!=e?(b.graphModelNode=e,b.viewState=this.editor.graph.createViewState(e),f=new mxCodec(e.ownerDocument),b.root=f.decode(e).root):(b.root=this.editor.graph.model.createRoot(),b.root.setId("0"),b.root.children[0].setId("1"),b.needsUpdate=!0)}else if(null==b.viewState){if(null==b.graphModelNode){e=this.editor.extractGraphModel(b.node);
if(f=Editor.extractParserError(e))throw Error(f);null!=e&&(b.graphModelNode=e)}null!=b.graphModelNode&&(b.viewState=this.editor.graph.createViewState(b.graphModelNode))}if(null==b.root.children||0==b.root.children.length)e=new mxCell,e.setId("1"),b.root.insert(e),b.needsUpdate=!0;return b};EditorUi.prototype.getDiagramSnapshot=function(){return{node:this.editor.getGraphXml(),page:this.currentPage}};
EditorUi.prototype.updateDiagramData=function(b,e){if(null==this.getPageIndex(b.page))this.insertPage(null,null,e);else{var f=new mxCodec(b.node.ownerDocument),c=new mxGraphModel;f.decode(b.node,c);f=new mxCodec(e.ownerDocument);var l=new mxGraphModel;f.decode(e,l);this.selectPage(b.page);e=this.diffCells(c.root,l.root);this.patchPage(b.page,e,null,!0)}};EditorUi.prototype.replaceDiagramData=function(b){this.editor.graph.model.execute(new ReplaceDiagram(this,mxUtils.parseXml(b).documentElement))};
-EditorUi.prototype.selectPage=function(b,e,f){try{if(b!=this.currentPage){var c=this.editor.graph;c.isEditing()&&c.stopEditing(!1);e=null!=e?e:!1;c.isMouseDown=!1;c.reset();var l=c.model.createUndoableEdit();l.ignoreEdit=!0;var p=new SelectPage(this,b,f);p.execute();l.add(p);l.notify();e||c.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",l))}}catch(q){this.handleError(q)}};
+EditorUi.prototype.selectPage=function(b,e,f){try{if(b!=this.currentPage){var c=this.editor.graph;c.isEditing()&&c.stopEditing(!1);e=null!=e?e:!1;c.isMouseDown=!1;c.reset();var l=c.model.createUndoableEdit();l.ignoreEdit=!0;var p=new SelectPage(this,b,f);p.execute();l.add(p);l.notify();e||c.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",l))}}catch(v){this.handleError(v)}};
EditorUi.prototype.selectNextPage=function(b){var e=this.currentPage;null!=e&&null!=this.pages&&(e=mxUtils.indexOf(this.pages,e),b?this.selectPage(this.pages[mxUtils.mod(e+1,this.pages.length)]):b||this.selectPage(this.pages[mxUtils.mod(e-1,this.pages.length)]))};
EditorUi.prototype.insertPage=function(b,e,f){this.editor.graph.isEnabled()&&(this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1),b=null!=b?b:this.createPage(null,this.createPageId(),f),e=null!=e?e:this.pages.length,e=new ChangePage(this,b,b,e),this.editor.graph.model.execute(e));return b};EditorUi.prototype.createPageId=function(){do var b=Editor.guid();while(null!=this.getPageById(b));return b};
EditorUi.prototype.createPage=function(b,e,f){e=new DiagramPage((null!=this.fileNode?this.fileNode.ownerDocument:document).createElement("diagram"),e);e.setName(null!=b?b:this.createPageName());this.initDiagramNode(e,f);return e};EditorUi.prototype.createPageName=function(){for(var b={},e=0;e<this.pages.length;e++){var f=this.pages[e].getName();null!=f&&0<f.length&&(b[f]=f)}e=this.pages.length;do f=mxResources.get("pageWithNumber",[++e]);while(null!=b[f]);return f};
EditorUi.prototype.removePage=function(b){try{var e=this.editor.graph,f=mxUtils.indexOf(this.pages,b);if(e.isEnabled()&&0<=f){this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1);e.model.beginUpdate();try{var c=this.currentPage;c==b&&1<this.pages.length?(f==this.pages.length-1?f--:f++,c=this.pages[f]):1>=this.pages.length&&(c=this.insertPage(),e.model.execute(new RenamePage(this,c,mxResources.get("pageWithNumber",[1]))));e.model.execute(new ChangePage(this,b,c))}finally{e.model.endUpdate()}}}catch(l){this.handleError(l)}return b};
-EditorUi.prototype.duplicatePage=function(b,e){var f=null;try{var c=this.editor.graph;if(c.isEnabled()){c.isEditing()&&c.stopEditing();var l=b.node.cloneNode(!1);l.removeAttribute("id");var p={},q=c.createCellLookup([c.model.root]);f=new DiagramPage(l);f.root=c.cloneCell(c.model.root,null,p);var v=new mxGraphModel;v.prefix=Editor.guid()+"-";v.setRoot(f.root);c.updateCustomLinks(c.createCellMapping(p,q),[f.root]);f.viewState=b==this.currentPage?c.getViewState():b.viewState;this.initDiagramNode(f);
-f.viewState.scale=1;delete f.viewState.scrollLeft;delete f.viewState.scrollTop;delete f.viewState.currentRoot;delete f.viewState.defaultParent;f.setName(e);f=this.insertPage(f,mxUtils.indexOf(this.pages,b)+1)}}catch(D){this.handleError(D)}return f};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.duplicatePage=function(b,e){var f=null;try{var c=this.editor.graph;if(c.isEnabled()){c.isEditing()&&c.stopEditing();var l=b.node.cloneNode(!1);l.removeAttribute("id");var p={},v=c.createCellLookup([c.model.root]);f=new DiagramPage(l);f.root=c.cloneCell(c.model.root,null,p);var t=new mxGraphModel;t.prefix=Editor.guid()+"-";t.setRoot(f.root);c.updateCustomLinks(c.createCellMapping(p,v),[f.root]);f.viewState=b==this.currentPage?c.getViewState():b.viewState;this.initDiagramNode(f);
+f.viewState.scale=1;delete f.viewState.scrollLeft;delete f.viewState.scrollTop;delete f.viewState.currentRoot;delete f.viewState.defaultParent;f.setName(e);f=this.insertPage(f,mxUtils.indexOf(this.pages,b)+1)}}catch(E){this.handleError(E)}return f};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=[],f=[],c=0;c<b.length;c++)try{f.push(this.clonePage(b[c]))}catch(l){e.push(mxResources.get("pageWithNumber",[c+1])+": "+l.toString())}if(0<e.length){b=Error(e.join("\n"));try{0<f.length&&(b.fallbackFileData=this.getXmlForPages(f))}catch(l){}throw b;}return f};
EditorUi.prototype.clonePage=function(b){this.updatePageRoot(b);var e=new DiagramPage(b.node.cloneNode(!0)),f=b==this.currentPage?this.editor.graph.getViewState():b.viewState;e.viewState=mxUtils.clone(f,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(f){null!=f&&0<f.length&&this.editor.graph.model.execute(new RenamePage(this,b,f))}),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))};
EditorUi.prototype.createTabContainer=function(){var b=document.createElement("div");b.className="geTabContainer geTabItem";return b};
EditorUi.prototype.updateTabContainer=function(){if(null!=this.tabContainer&&!this.isTabContainerVisible())this.tabContainer.style.display="none";else if(null!=this.tabContainer&&null!=this.pages){this.tabContainer.style.display="";var b=this.editor.graph,e=document.createElement("div");e.className="geTabScroller";for(var f=null,c=0;c<this.pages.length;c++)mxUtils.bind(this,function(l,p){p.className="geTab gePageTab";this.pages[l]==this.currentPage&&p.classList.add("geActivePage");p.setAttribute("draggable",
-"true");mxEvent.addListener(p,"dragstart",mxUtils.bind(this,function(q){b.isEnabled()?(mxClient.IS_FF&&q.dataTransfer.setData("Text","<diagram/>"),f=l):mxEvent.consume(q)}));mxEvent.addListener(p,"dragend",mxUtils.bind(this,function(q){f=null;q.stopPropagation();q.preventDefault()}));mxEvent.addListener(p,"dragover",mxUtils.bind(this,function(q){null!=f&&(q.dataTransfer.dropEffect="move");q.stopPropagation();q.preventDefault()}));mxEvent.addListener(p,"drop",mxUtils.bind(this,function(q){null!=f&&
-l!=f&&this.movePage(f,l);q.stopPropagation();q.preventDefault()}));e.appendChild(p)})(c,this.createTabForPage(this.pages[c],c+1));c=null!=this.tabScroller?this.tabScroller.scrollLeft:0;this.tabContainer.innerText="";this.isPageInsertTabVisible()&&this.tabContainer.appendChild(this.createPageInsertTab());"simple"!=Editor.currentTheme&&(this.pageMenuTab=this.createPageMenuTab(),this.tabContainer.appendChild(this.pageMenuTab));this.tabContainer.appendChild(e);this.leftScrollTab=this.createLeftScrollTab();
+"true");mxEvent.addListener(p,"dragstart",mxUtils.bind(this,function(v){b.isEnabled()?(mxClient.IS_FF&&v.dataTransfer.setData("Text","<diagram/>"),f=l):mxEvent.consume(v)}));mxEvent.addListener(p,"dragend",mxUtils.bind(this,function(v){f=null;v.stopPropagation();v.preventDefault()}));mxEvent.addListener(p,"dragover",mxUtils.bind(this,function(v){null!=f&&(v.dataTransfer.dropEffect="move");v.stopPropagation();v.preventDefault()}));mxEvent.addListener(p,"drop",mxUtils.bind(this,function(v){null!=f&&
+l!=f&&this.movePage(f,l);v.stopPropagation();v.preventDefault()}));e.appendChild(p)})(c,this.createTabForPage(this.pages[c],c+1));c=null!=this.tabScroller?this.tabScroller.scrollLeft:0;this.tabContainer.innerText="";this.isPageInsertTabVisible()&&this.tabContainer.appendChild(this.createPageInsertTab());"simple"!=Editor.currentTheme&&(this.pageMenuTab=this.createPageMenuTab(),this.tabContainer.appendChild(this.pageMenuTab));this.tabContainer.appendChild(e);this.leftScrollTab=this.createLeftScrollTab();
this.tabContainer.appendChild(this.leftScrollTab);this.rightScrollTab=this.createRightScrollTab();this.tabContainer.appendChild(this.rightScrollTab);this.tabScroller=e;this.tabScroller.scrollLeft=c;this.checkTabScrollerOverflow();mxEvent.addListener(this.tabScroller,"scroll",mxUtils.bind(this,function(l){this.checkTabScrollerOverflow()}))}};
EditorUi.prototype.checkTabScrollerOverflow=function(){null!=this.tabScroller&&null!=this.tabContainer&&2<this.tabContainer.children.length&&(this.tabScroller.scrollWidth>this.tabScroller.offsetWidth?(this.leftScrollTab.style.display="",this.rightScrollTab.style.display="",0==this.tabScroller.scrollLeft?this.leftScrollTab.classList.add("mxDisabled"):this.leftScrollTab.classList.remove("mxDisabled"),Math.ceil(this.tabScroller.scrollLeft)+this.tabScroller.offsetWidth>=this.tabScroller.scrollWidth?this.rightScrollTab.classList.add("mxDisabled"):
this.rightScrollTab.classList.remove("mxDisabled")):(this.leftScrollTab.style.display="none",this.rightScrollTab.style.display="none"))};EditorUi.prototype.isPageInsertTabVisible=function(){return 1==urlParams.embed||null!=this.getCurrentFile()&&this.getCurrentFile().isEditable()};EditorUi.prototype.createTab=function(){var b=document.createElement("div");b.className="geTab";return b};
@@ -14440,63 +14487,63 @@ EditorUi.prototype.createLeftScrollTab=function(){return this.createControlTab(n
EditorUi.prototype.createRightScrollTab=function(){return this.createControlTab(null,Editor.chevronRightImage,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.menuImage,mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.hideMenu();var e=new mxPopupMenu(mxUtils.bind(this,function(l,p){this.menus.get("pages").funct(l,p)}));e.smartSeparators=!0;e.showDisabled=!0;e.autoExpand=!0;e.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(e,arguments);e.destroy()});var f=mxEvent.getClientX(b),c=mxEvent.getClientY(b);e.popup(f,
c,null,b);this.setCurrentMenu(e);mxEvent.consume(b)}))};EditorUi.prototype.createTabForPage=function(b,e){var f=this.createTab(),c=b.getName()||mxResources.get("untitled"),l=b.getId();f.setAttribute("title",c+(null!=l?" ("+l+")":"")+" ["+e+"]");e=document.createElement("span");e.style.maxWidth="160px";e.style.textOverflow="ellipsis";e.style.overflow="hidden";mxUtils.write(e,c);f.appendChild(e);this.addTabListeners(b,f);return f};
-EditorUi.prototype.addTabListeners=function(b,e){mxEvent.disableContextMenu(e);var f=this.editor.graph;mxEvent.addListener(e,"dblclick",mxUtils.bind(this,function(D){this.renamePage(b);mxEvent.consume(D)}));var c=document.createElement("div");c.style.backgroundImage="url("+Editor.thinExpandImage+")";c.className="geButton";e.appendChild(c);var l=!1,p=!1,q=mxUtils.bind(this,function(D){l=null!=this.currentMenu;p=b==this.currentPage;this.scrollToPage(b);f.isMouseDown||p||this.selectPage(b)}),v=mxUtils.bind(this,
-function(D){if(!f.isMouseDown&&(p&&(mxEvent.isTouchEvent(D)||mxEvent.getSource(D)==c)||mxEvent.isPopupTrigger(D))&&(f.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(D)||!l)){var G=new mxPopupMenu(this.createPageMenu(b));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 B=mxEvent.getClientX(D),d=mxEvent.getClientY(D);G.popup(B,d,null,D);
-this.setCurrentMenu(G,e)}mxEvent.consume(D)});mxEvent.addGestureListeners(c,q,null,v);mxEvent.addGestureListeners(e,q,null,v)};
+EditorUi.prototype.addTabListeners=function(b,e){mxEvent.disableContextMenu(e);var f=this.editor.graph;mxEvent.addListener(e,"dblclick",mxUtils.bind(this,function(E){this.renamePage(b);mxEvent.consume(E)}));var c=document.createElement("div");c.style.backgroundImage="url("+Editor.thinExpandImage+")";c.className="geButton";e.appendChild(c);var l=!1,p=!1,v=mxUtils.bind(this,function(E){l=null!=this.currentMenu;p=b==this.currentPage;this.scrollToPage(b);f.isMouseDown||p||this.selectPage(b)}),t=mxUtils.bind(this,
+function(E){if(!f.isMouseDown&&(p&&(mxEvent.isTouchEvent(E)||mxEvent.getSource(E)==c)||mxEvent.isPopupTrigger(E))&&(f.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(E)||!l)){var H=new mxPopupMenu(this.createPageMenu(b));H.smartSeparators=!0;H.showDisabled=!0;H.autoExpand=!0;H.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(H,arguments);this.resetCurrentMenu();H.destroy()});var B=mxEvent.getClientX(E),d=mxEvent.getClientY(E);H.popup(B,d,null,E);
+this.setCurrentMenu(H,e)}mxEvent.consume(E)});mxEvent.addGestureListeners(c,v,null,t);mxEvent.addGestureListeners(e,v,null,t)};
EditorUi.prototype.createPageMenu=function(b,e){return mxUtils.bind(this,function(f,c){1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=this.getServiceName()||f.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){this.editor.editAsNew(this.getFileData(!0,null,null,null,!0,!0))}),c));this.editor.graph.isEnabled()&&(f.addItem(mxResources.get("duplicate"),null,mxUtils.bind(this,function(){this.duplicatePage(b,mxResources.get("copyOf",[b.getName()]))}),
c),f.addSeparator(c),this.currentPage==b&&1<this.pages.length&&this.menus.addSubmenu("movePage",f,c,mxResources.get("move")),f.addItem(mxResources.get("delete"),null,mxUtils.bind(this,function(){this.removePage(b)}),c),f.addItem(mxResources.get("rename")+"...",null,mxUtils.bind(this,function(){this.renamePage(b,e)}),c))})};(function(){mxCodecRegistry.getCodec(ChangePageSetup).exclude.push("page")})();
(function(){var b=new mxObjectCodec(new MovePage,["ui"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};b.afterDecode=function(e,f,c){e=c.oldIndex;c.oldIndex=c.newIndex;c.newIndex=e;return c};mxCodecRegistry.register(b)})();(function(){var b=new mxObjectCodec(new RenamePage,["ui","page"]);b.beforeDecode=function(e,f,c){c.ui=e.ui;return f};b.afterDecode=function(e,f,c){e=c.previous;c.previous=c.name;c.name=e;return c};mxCodecRegistry.register(b)})();
(function(){var b=new mxObjectCodec(new ChangePage,["ui","relatedPage","index","page","previousPage"]);b.afterEncode=function(e,f,c){c.setAttribute("relatedPage",f.relatedPage.getId());null==f.index&&(c.setAttribute("name",f.relatedPage.getName()),null!=f.relatedPage.viewState&&c.setAttribute("viewState",JSON.stringify(f.relatedPage.viewState,function(l,p){return 0>mxUtils.indexOf(EditorUi.transientViewStateProperties,l)?p:void 0})),null!=f.relatedPage.root&&e.encodeCell(f.relatedPage.root,c));return c};
b.beforeDecode=function(e,f,c){c.ui=e.ui;c.relatedPage=c.ui.getPageById(f.getAttribute("relatedPage"));if(null==c.relatedPage){var l=f.ownerDocument.createElement("diagram");l.setAttribute("id",f.getAttribute("relatedPage"));l.setAttribute("name",f.getAttribute("name"));c.relatedPage=new DiagramPage(l);l=f.getAttribute("viewState");null!=l&&(c.relatedPage.viewState=JSON.parse(l),f.removeAttribute("viewState"));f=f.cloneNode(!0);l=f.firstChild;if(null!=l)for(c.relatedPage.root=e.decodeCell(l,!1),c=
-l.nextSibling,l.parentNode.removeChild(l),l=c;null!=l;){c=l.nextSibling;if(l.nodeType==mxConstants.NODETYPE_ELEMENT){var p=l.getAttribute("id");null==e.lookup(p)&&e.decodeCell(l)}l.parentNode.removeChild(l);l=c}}return f};b.afterDecode=function(e,f,c){c.index=c.previousIndex;return c};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(c,l,p,q,v){l=null!=l?l:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),c));this.stopEditing();this.model.beginUpdate();try{for(var D=p.slice(),G=0;G<p.length;G++)"1"==mxUtils.getValue(this.getCurrentCellStyle(p[G]),"treeFolding","0")&&this.foldTreeCell(c,p[G]);p=D;p=b.apply(this,arguments)}finally{this.model.endUpdate()}return p};Graph.prototype.foldTreeCell=function(c,l){this.model.beginUpdate();try{var p=
-[];this.traverse(l,!0,mxUtils.bind(this,function(v,D){var G=null!=D&&this.isTreeEdge(D);G&&p.push(D);v==l||null!=D&&!G||p.push(v);return(null==D||G)&&(v==l||!this.model.isCollapsed(v))}));this.model.setCollapsed(l,c);for(var q=0;q<p.length;q++)this.model.setVisible(p[q],!c)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(c){return!this.isEdgeIgnored(c)};Graph.prototype.getTreeEdges=function(c,l,p,q,v,D){return this.model.filterCells(this.getEdges(c,l,p,q,v,D),mxUtils.bind(this,
-function(G){return this.isTreeEdge(G)}))};Graph.prototype.getIncomingTreeEdges=function(c,l){return this.getTreeEdges(c,l,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,l){return this.getTreeEdges(c,l,!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 c(K){return t.isVertex(K)&&p(K)}function l(K){var N=!1;null!=K&&(N="1"==
-m.getCurrentCellStyle(K).treeMoving);return N}function p(K){var N=!1;null!=K&&(K=t.getParent(K),N=m.view.getState(K),N="tree"==(null!=N?N.style:m.getCellStyle(K)).containerType);return N}function q(K){var N=!1;null!=K&&(K=t.getParent(K),N=m.view.getState(K),m.view.getState(K),N=null!=(null!=N?N.style:m.getCellStyle(K)).childLayout);return N}function v(K){K=m.view.getState(K);if(null!=K){var N=m.getIncomingTreeEdges(K.cell);if(0<N.length&&(N=m.view.getState(N[0]),null!=N&&(N=N.absolutePoints,null!=
-N&&0<N.length&&(N=N[N.length-1],null!=N)))){if(N.y==K.y&&Math.abs(N.x-K.getCenterX())<K.width/2)return mxConstants.DIRECTION_SOUTH;if(N.y==K.y+K.height&&Math.abs(N.x-K.getCenterX())<K.width/2)return mxConstants.DIRECTION_NORTH;if(N.x>K.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function D(K,N){N=null!=N?N:!0;m.model.beginUpdate();try{var M=m.model.getParent(K),n=m.getIncomingTreeEdges(K),A=m.cloneCells([n[0],K]);m.model.setTerminal(A[0],m.model.getTerminal(n[0],
-!0),!0);var E=v(K),L=M.geometry;E==mxConstants.DIRECTION_SOUTH||E==mxConstants.DIRECTION_NORTH?A[1].geometry.x+=N?K.geometry.width+10:-A[1].geometry.width-10:A[1].geometry.y+=N?K.geometry.height+10:-A[1].geometry.height-10;m.view.currentRoot!=M&&(A[1].geometry.x-=L.x,A[1].geometry.y-=L.y);var O=m.view.getState(K),R=m.view.scale;if(null!=O){var T=mxRectangle.fromRectangle(O);E==mxConstants.DIRECTION_SOUTH||E==mxConstants.DIRECTION_NORTH?T.x+=(N?K.geometry.width+10:-A[1].geometry.width-10)*R:T.y+=(N?
-K.geometry.height+10:-A[1].geometry.height-10)*R;var U=m.getOutgoingTreeEdges(m.model.getTerminal(n[0],!0));if(null!=U){for(var W=E==mxConstants.DIRECTION_SOUTH||E==mxConstants.DIRECTION_NORTH,X=L=n=0;X<U.length;X++){var Y=m.model.getTerminal(U[X],!1);if(E==v(Y)){var Z=m.view.getState(Y);Y!=K&&null!=Z&&(W&&N!=Z.getCenterX()<O.getCenterX()||!W&&N!=Z.getCenterY()<O.getCenterY())&&mxUtils.intersects(T,Z)&&(n=10+Math.max(n,(Math.min(T.x+T.width,Z.x+Z.width)-Math.max(T.x,Z.x))/R),L=10+Math.max(L,(Math.min(T.y+
-T.height,Z.y+Z.height)-Math.max(T.y,Z.y))/R))}}W?L=0:n=0;for(X=0;X<U.length;X++)if(Y=m.model.getTerminal(U[X],!1),E==v(Y)&&(Z=m.view.getState(Y),Y!=K&&null!=Z&&(W&&N!=Z.getCenterX()<O.getCenterX()||!W&&N!=Z.getCenterY()<O.getCenterY()))){var ca=[];m.traverse(Z.cell,!0,function(ea,ia){var ba=null!=ia&&m.isTreeEdge(ia);ba&&ca.push(ia);(null==ia||ba)&&ca.push(ea);return null==ia||ba});m.moveCells(ca,(N?1:-1)*n,(N?1:-1)*L)}}}return m.addCells(A,M)}finally{m.model.endUpdate()}}function G(K){m.model.beginUpdate();
-try{var N=v(K),M=m.getIncomingTreeEdges(K),n=m.cloneCells([M[0],K]);m.model.setTerminal(M[0],n[1],!1);m.model.setTerminal(n[0],n[1],!0);m.model.setTerminal(n[0],K,!1);var A=m.model.getParent(K),E=A.geometry,L=[];m.view.currentRoot!=A&&(n[1].geometry.x-=E.x,n[1].geometry.y-=E.y);m.traverse(K,!0,function(T,U){var W=null!=U&&m.isTreeEdge(U);W&&L.push(U);(null==U||W)&&L.push(T);return null==U||W});var O=K.geometry.width+40,R=K.geometry.height+40;N==mxConstants.DIRECTION_SOUTH?O=0:N==mxConstants.DIRECTION_NORTH?
-(O=0,R=-R):N==mxConstants.DIRECTION_WEST?(O=-O,R=0):N==mxConstants.DIRECTION_EAST&&(R=0);m.moveCells(L,O,R);return m.addCells(n,A)}finally{m.model.endUpdate()}}function B(K,N){m.model.beginUpdate();try{var M=m.model.getParent(K),n=m.getIncomingTreeEdges(K),A=v(K);0==n.length&&(n=[m.createEdge(M,null,"",null,null,m.createCurrentEdgeStyle())],A=N);var E=m.cloneCells([n[0],K]);m.model.setTerminal(E[0],K,!0);null==m.model.getTerminal(E[0],!1)&&(m.model.setTerminal(E[0],E[1],!1),m.applyNewEdgeStyle(E[1],
-[E[0]],A));n=m.getOutgoingTreeEdges(K);var L=M.geometry;N=[];m.view.currentRoot==M&&(L=new mxRectangle);for(var O=0;O<n.length;O++){var R=m.model.getTerminal(n[O],!1);null!=R&&N.push(R)}var T=m.view.getBounds(N),U=m.view.translate,W=m.view.scale;A==mxConstants.DIRECTION_SOUTH?(E[1].geometry.x=null==T?K.geometry.x+(K.geometry.width-E[1].geometry.width)/2:(T.x+T.width)/W-U.x-L.x+10,E[1].geometry.y+=E[1].geometry.height-L.y+40):A==mxConstants.DIRECTION_NORTH?(E[1].geometry.x=null==T?K.geometry.x+(K.geometry.width-
-E[1].geometry.width)/2:(T.x+T.width)/W-U.x+-L.x+10,E[1].geometry.y-=E[1].geometry.height+L.y+40):(E[1].geometry.x=A==mxConstants.DIRECTION_WEST?E[1].geometry.x-(E[1].geometry.width+L.x+40):E[1].geometry.x+(E[1].geometry.width-L.x+40),E[1].geometry.y=null==T?K.geometry.y+(K.geometry.height-E[1].geometry.height)/2:(T.y+T.height)/W-U.y+-L.y+10);return m.addCells(E,M)}finally{m.model.endUpdate()}}function d(K,N,M){K=m.getOutgoingTreeEdges(K);M=m.view.getState(M);var n=[];if(null!=M&&null!=K){for(var A=
-0;A<K.length;A++){var E=m.view.getState(m.model.getTerminal(K[A],!1));null!=E&&(!N&&Math.min(E.x+E.width,M.x+M.width)>=Math.max(E.x,M.x)||N&&Math.min(E.y+E.height,M.y+M.height)>=Math.max(E.y,M.y))&&n.push(E)}n.sort(function(L,O){return N?L.x+L.width-O.x-O.width:L.y+L.height-O.y-O.height})}return n}function g(K,N){var M=v(K),n=N==mxConstants.DIRECTION_EAST||N==mxConstants.DIRECTION_WEST;(M==mxConstants.DIRECTION_EAST||M==mxConstants.DIRECTION_WEST)==n&&M!=N?k.actions.get("selectParent").funct():M==
-N?(N=m.getOutgoingTreeEdges(K),null!=N&&0<N.length&&m.setSelectionCell(m.model.getTerminal(N[0],!1))):(M=m.getIncomingTreeEdges(K),null!=M&&0<M.length&&(n=d(m.model.getTerminal(M[0],!0),n,K),K=m.view.getState(K),null!=K&&(K=mxUtils.indexOf(n,K),0<=K&&(K+=N==mxConstants.DIRECTION_NORTH||N==mxConstants.DIRECTION_WEST?-1:1,0<=K&&K<=n.length-1&&m.setSelectionCell(n[K].cell)))))}var k=this,m=k.editor.graph,t=m.getModel(),y=k.menus.createPopupMenu;k.menus.createPopupMenu=function(K,N,M){y.apply(this,arguments);
-if(1==m.getSelectionCount()){N=m.getSelectionCell();var n=m.getOutgoingTreeEdges(N);K.addSeparator();0<n.length&&(c(m.getSelectionCell())&&this.addMenuItems(K,["selectChildren"],null,M),this.addMenuItems(K,["selectDescendants"],null,M));c(m.getSelectionCell())?(K.addSeparator(),0<m.getIncomingTreeEdges(N).length&&this.addMenuItems(K,["selectSiblings","selectParent"],null,M)):0<m.model.getEdgeCount(N)&&this.addMenuItems(K,["selectConnections"],null,M)}};k.actions.addAction("selectChildren",function(K){if(m.isEnabled()&&
-1==m.getSelectionCount()){var N=m.getSelectionCell();K=mxEvent.isControlDown(K)?null:m.getOutgoingTreeEdges(N);if(null!=K&&0<K.length){N=[];for(var M=0;M<K.length;M++)N.push(m.model.getTerminal(K[M],!1));m.setSelectionCells(N)}else m.setSelectionCells(m.model.getChildren(N))}},null,null,"Alt+Shift+C");k.actions.addAction("selectDescendants",function(K){var N=m.getSelectionCell();if(m.isEnabled()&&null!=N){var M=[];mxEvent.isControlDown(K)||m.traverse(N,!0,function(n,A){var E=null!=A&&m.isTreeEdge(A);
-E&&mxEvent.isControlDown(K)&&M.push(A);(null==A||E)&&M.push(n);return null==A||E});if(0==M.length||1==M.length&&M[0]==N)M=m.model.getDescendants(N);m.setSelectionCells(M)}},null,null,"Alt+Shift+X");k.actions.addAction("selectParent",function(K){var N=m.getSelectionCell();m.isEnabled()&&null!=N&&(K=mxEvent.isControlDown(K)?null:m.getIncomingTreeEdges(N),null!=K&&0<K.length?m.setSelectionCell(m.model.getTerminal(K[0],!0)):m.selectParentCell())},null,null,"Alt+Shift+P");k.actions.addAction("selectSiblings",
-function(K){if(m.isEnabled()&&1==m.getSelectionCount()){var N=m.getSelectionCell(),M=mxEvent.isControlDown(K)?null:m.getIncomingTreeEdges(N);K=[];if(null!=M&&0<M.length&&(M=m.getOutgoingTreeEdges(m.model.getTerminal(M[0],!0)),null!=M))for(var n=0;n<M.length;n++)K.push(m.model.getTerminal(M[n],!1));0==K.length&&(K=m.model.getChildren(m.model.getParent(N)));m.setSelectionCells(K)}},null,null,"Alt+Shift+S");var z=m.removeCells;m.removeCells=function(K,N){N=null!=N?N:!0;null==K&&(K=this.getDeletableCells(this.getSelectionCells()));
-N&&(K=this.getDeletableCells(this.addAllEdges(K)));for(var M=[],n=0;n<K.length;n++){var A=K[n];t.isEdge(A)&&p(A)&&(M.push(A),A=t.getTerminal(A,!1));if(c(A)){var E=[];m.traverse(A,!0,function(L,O){var R=null!=O&&m.isTreeEdge(O);R&&E.push(O);(null==O||R)&&E.push(L);return null==O||R});0<E.length&&(M=M.concat(E),A=m.getIncomingTreeEdges(K[n]),K=K.concat(A))}else null!=A&&M.push(K[n])}K=M;return z.apply(this,arguments)};k.hoverIcons.getStateAt=function(K,N,M){return c(K.cell)?null:this.graph.view.getState(this.graph.getCellAt(N,
-M))};var I=m.duplicateCells;m.duplicateCells=function(K,N){K=null!=K?K:this.getSelectionCells();for(var M=K.slice(0),n=0;n<M.length;n++){var A=m.view.getState(M[n]);if(null!=A&&c(A.cell)){var E=m.getIncomingTreeEdges(A.cell);for(A=0;A<E.length;A++)mxUtils.remove(E[A],K)}}this.model.beginUpdate();try{var L=I.call(this,K,N);if(L.length==K.length)for(n=0;n<K.length;n++)if(c(K[n])){var O=m.getIncomingTreeEdges(L[n]);E=m.getIncomingTreeEdges(K[n]);if(0==O.length&&0<E.length){var R=this.cloneCell(E[0]);
-this.addEdge(R,m.getDefaultParent(),this.model.getTerminal(E[0],!0),L[n])}}}finally{this.model.endUpdate()}return L};var F=m.moveCells;m.moveCells=function(K,N,M,n,A,E,L){for(var O=null,R=[],T=0;T<K.length;T++)(l(K[T])||c(K[T]))&&!q(K[T])&&this.isCellCollapsed(K[T])?R=R.concat(this.getSubtree(K[T])):R.push(K[T]);K=mxUtils.removeDuplicates(R);this.model.beginUpdate();try{R=A;var U=this.getCurrentCellStyle(A);if(null!=K&&c(A)&&"1"==mxUtils.getValue(U,"treeFolding","0")){for(T=0;T<K.length;T++)if(c(K[T])||
-m.model.isEdge(K[T])&&null==m.model.getTerminal(K[T],!0)){A=m.model.getParent(K[T]);break}if(null!=R&&A!=R&&null!=this.view.getState(K[0])){var W=m.getIncomingTreeEdges(K[0]);if(0<W.length){var X=m.view.getState(m.model.getTerminal(W[0],!0));if(null!=X){var Y=m.view.getState(R);null!=Y&&(N=(Y.getCenterX()-X.getCenterX())/m.view.scale,M=(Y.getCenterY()-X.getCenterY())/m.view.scale)}}}}O=F.apply(this,arguments);if(null!=O&&null!=K&&O.length==K.length)for(T=0;T<O.length;T++)if(this.model.isEdge(O[T]))c(R)&&
-0>mxUtils.indexOf(O,this.model.getTerminal(O[T],!0))&&this.model.setTerminal(O[T],R,!0);else if(c(K[T])&&(W=m.getIncomingTreeEdges(K[T]),0<W.length))if(!n)c(R)&&0>mxUtils.indexOf(K,this.model.getTerminal(W[0],!0))&&this.model.setTerminal(W[0],R,!0);else if(0==m.getIncomingTreeEdges(O[T]).length){U=R;if(null==U||U==m.model.getParent(K[T]))U=m.model.getTerminal(W[0],!0);n=this.cloneCell(W[0]);this.addEdge(n,m.getDefaultParent(),U,O[T])}}finally{this.model.endUpdate()}return O};if(null!=k.sidebar){var C=
-k.sidebar.dropAndConnect;k.sidebar.dropAndConnect=function(K,N,M,n){var A=m.model,E=null;A.beginUpdate();try{if(E=C.apply(this,arguments),c(K))for(var L=0;L<E.length;L++)if(A.isEdge(E[L])&&null==A.getTerminal(E[L],!0)){A.setTerminal(E[L],K,!0);var O=m.getCellGeometry(E[L]);O.points=null;null!=O.getTerminalPoint(!0)&&O.setTerminalPoint(null,!0)}}finally{A.endUpdate()}return E}}var Q={67:k.actions.get("selectChildren"),88:k.actions.get("selectDescendants"),80:k.actions.get("selectParent"),83:k.actions.get("selectSiblings")},
-S={67:k.actions.get("copyStyle"),86:k.actions.get("pasteStyle")},V=k.onKeyDown;k.onKeyDown=function(K){try{var N=m.getSelectionCell();if(m.isEnabled()&&!m.isEditing()&&null!=N){var M=mxEvent.isAltDown(K)&&mxEvent.isShiftDown(K)?Q[K.keyCode]:mxEvent.isAltDown(K)?S[K.keyCode]:null;null!=M?(M.funct(K),mxEvent.consume(K)):c(N)&&(M=null,0<m.getIncomingTreeEdges(N).length&&(9==K.which?M=mxEvent.isShiftDown(K)?G(N):B(N):13==K.which&&(M=D(N,!mxEvent.isShiftDown(K)))),null!=M&&0<M.length?(1==M.length&&m.model.isEdge(M[0])?
-m.setSelectionCell(m.model.getTerminal(M[0],!1)):m.setSelectionCell(M[M.length-1]),null!=k.hoverIcons&&k.hoverIcons.update(m.view.getState(N)),m.startEditingAtCell(N),mxEvent.consume(K)):37==K.keyCode?(g(N,mxConstants.DIRECTION_WEST),mxEvent.consume(K)):38==K.keyCode?(g(N,mxConstants.DIRECTION_NORTH),mxEvent.consume(K)):39==K.keyCode?(g(N,mxConstants.DIRECTION_EAST),mxEvent.consume(K)):40==K.keyCode&&(g(N,mxConstants.DIRECTION_SOUTH),mxEvent.consume(K)))}}catch(n){k.handleError(n)}mxEvent.isConsumed(K)||
-V.apply(this,arguments)};var P=m.connectVertex;m.connectVertex=function(K,N,M,n,A,E,L){var O=m.getIncomingTreeEdges(K);if(c(K)){var R=v(K),T=R==mxConstants.DIRECTION_EAST||R==mxConstants.DIRECTION_WEST,U=N==mxConstants.DIRECTION_EAST||N==mxConstants.DIRECTION_WEST;return R==N||0==O.length?B(K,N):T==U?G(K):D(K,N!=mxConstants.DIRECTION_NORTH&&N!=mxConstants.DIRECTION_WEST)}return P.apply(this,arguments)};m.getSubtree=function(K){var N=[K];!l(K)&&!c(K)||q(K)||m.traverse(K,!0,function(M,n){var A=null!=
-n&&m.isTreeEdge(n);A&&0>mxUtils.indexOf(N,n)&&N.push(n);(null==n||A)&&0>mxUtils.indexOf(N,M)&&N.push(M);return null==n||A});return N};var u=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){u.apply(this,arguments);(l(this.state.cell)||c(this.state.cell))&&!q(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(K){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(K),mxEvent.getClientY(K),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=
-mxEvent.isMouseEvent(K);this.graph.isMouseDown=!0;k.hoverIcons.reset();mxEvent.consume(K)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var x=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){x.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 J=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(K){J.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=K?"":"none")};var H=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(K,N){H.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=
-null)}};if("undefined"!==typeof Sidebar){var f=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var c=f.apply(this,arguments),l=this.graph,p=this;return c.concat([this.addEntry("tree container",function(){var q=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");q.vertex=!0;var v=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
-v.vertex=!0;var D=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');D.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;v.insertEdge(G,!0);D.insertEdge(G,!1);q.insert(G);q.insert(v);q.insert(D);
-return p.createVertexTemplateFromCells([q],q.geometry.width,q.geometry.height,q.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var q=new mxCell("Mindmap",new mxGeometry(0,0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");q.vertex=!0;var v=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};');
-v.vertex=!0;var D=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};');D.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;v.insertEdge(G,!0);D.insertEdge(G,!1);var B=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};');
-B.vertex=!0;var d=new mxCell("",new mxGeometry(0,0,0,0),G.style);d.geometry.relative=!0;d.edge=!0;v.insertEdge(d,!0);B.insertEdge(d,!1);var g=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};');
-g.vertex=!0;var k=new mxCell("",new mxGeometry(0,0,0,0),G.style);k.geometry.relative=!0;k.edge=!0;v.insertEdge(k,!0);g.insertEdge(k,!1);var m=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};');
-m.vertex=!0;var t=new mxCell("",new mxGeometry(0,0,0,0),G.style);t.geometry.relative=!0;t.edge=!0;v.insertEdge(t,!0);m.insertEdge(t,!1);q.insert(G);q.insert(d);q.insert(k);q.insert(t);q.insert(v);q.insert(D);q.insert(B);q.insert(g);q.insert(m);return p.createVertexTemplateFromCells([q],q.geometry.width,q.geometry.height,q.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var q=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;');
-q.vertex=!0;return p.createVertexTemplateFromCells([q],q.geometry.width,q.geometry.height,q.value)}),this.addEntry("tree mindmap mindmaps branch",function(){var q=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};');
-q.vertex=!0;var v=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");v.geometry.setTerminalPoint(new mxPoint(-40,40),!0);v.geometry.relative=!0;v.edge=!0;q.insertEdge(v,!1);return p.createVertexTemplateFromCells([q,v],q.geometry.width,q.geometry.height,q.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var q=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};');q.vertex=!0;var v=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
-v.geometry.setTerminalPoint(new mxPoint(-40,40),!0);v.geometry.relative=!0;v.edge=!0;q.insertEdge(v,!1);return p.createVertexTemplateFromCells([q,v],q.geometry.width,q.geometry.height,q.value)}),this.addEntry("tree orgchart organization division",function(){var q=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');q.vertex=!0;var v=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"};');l.setAttributeForCell(v,"treeRoot","1");v.vertex=!0;var D=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"};');D.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;v.insertEdge(G,!0);D.insertEdge(G,!1);var B=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"};');B.vertex=!0;var d=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");d.geometry.relative=
-!0;d.edge=!0;v.insertEdge(d,!0);B.insertEdge(d,!1);q.insert(G);q.insert(d);q.insert(v);q.insert(D);q.insert(B);return p.createVertexTemplateFromCells([q],q.geometry.width,q.geometry.height,q.value)}),this.addEntry("tree root",function(){var q=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"};');l.setAttributeForCell(q,"treeRoot","1");q.vertex=!0;return p.createVertexTemplateFromCells([q],
-q.geometry.width,q.geometry.height,q.value)}),this.addEntry("tree division",function(){var q=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"};');q.vertex=!0;var v=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
-v.geometry.setTerminalPoint(new mxPoint(0,0),!0);v.geometry.relative=!0;v.edge=!0;q.insertEdge(v,!1);return p.createVertexTemplateFromCells([q,v],q.geometry.width,q.geometry.height,q.value)}),this.addEntry("tree sub sections",function(){var q=new mxCell("Sub Section",new mxGeometry(0,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");q.vertex=!0;var v=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;");
-v.geometry.setTerminalPoint(new mxPoint(110,-40),!0);v.geometry.relative=!0;v.edge=!0;q.insertEdge(v,!1);var D=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");D.vertex=!0;var G=new mxCell("",new mxGeometry(0,0,0,0),v.style);G.geometry.setTerminalPoint(new mxPoint(110,-40),!0);G.geometry.relative=!0;G.edge=!0;D.insertEdge(G,!1);return p.createVertexTemplateFromCells([v,G,q,D],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows;
+l.nextSibling,l.parentNode.removeChild(l),l=c;null!=l;){c=l.nextSibling;if(l.nodeType==mxConstants.NODETYPE_ELEMENT){var p=l.getAttribute("id");null==e.lookup(p)&&e.decodeCell(l)}l.parentNode.removeChild(l);l=c}}return f};b.afterDecode=function(e,f,c){c.index=c.previousIndex;return c};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(c,l,p,v,t){l=null!=l?l:!1;null==p&&(p=this.getFoldableCells(this.getSelectionCells(),c));this.stopEditing();this.model.beginUpdate();try{for(var E=p.slice(),H=0;H<p.length;H++)"1"==mxUtils.getValue(this.getCurrentCellStyle(p[H]),"treeFolding","0")&&this.foldTreeCell(c,p[H]);p=E;p=b.apply(this,arguments)}finally{this.model.endUpdate()}return p};Graph.prototype.foldTreeCell=function(c,l){this.model.beginUpdate();try{var p=
+[];this.traverse(l,!0,mxUtils.bind(this,function(t,E){var H=null!=E&&this.isTreeEdge(E);H&&p.push(E);t==l||null!=E&&!H||p.push(t);return(null==E||H)&&(t==l||!this.model.isCollapsed(t))}));this.model.setCollapsed(l,c);for(var v=0;v<p.length;v++)this.model.setVisible(p[v],!c)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(c){return!this.isEdgeIgnored(c)};Graph.prototype.getTreeEdges=function(c,l,p,v,t,E){return this.model.filterCells(this.getEdges(c,l,p,v,t,E),mxUtils.bind(this,
+function(H){return this.isTreeEdge(H)}))};Graph.prototype.getIncomingTreeEdges=function(c,l){return this.getTreeEdges(c,l,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(c,l){return this.getTreeEdges(c,l,!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 c(J){return u.isVertex(J)&&p(J)}function l(J){var L=!1;null!=J&&(L="1"==
+m.getCurrentCellStyle(J).treeMoving);return L}function p(J){var L=!1;null!=J&&(J=u.getParent(J),L=m.view.getState(J),L="tree"==(null!=L?L.style:m.getCellStyle(J)).containerType);return L}function v(J){var L=!1;null!=J&&(J=u.getParent(J),L=m.view.getState(J),m.view.getState(J),L=null!=(null!=L?L.style:m.getCellStyle(J)).childLayout);return L}function t(J){J=m.view.getState(J);if(null!=J){var L=m.getIncomingTreeEdges(J.cell);if(0<L.length&&(L=m.view.getState(L[0]),null!=L&&(L=L.absolutePoints,null!=
+L&&0<L.length&&(L=L[L.length-1],null!=L)))){if(L.y==J.y&&Math.abs(L.x-J.getCenterX())<J.width/2)return mxConstants.DIRECTION_SOUTH;if(L.y==J.y+J.height&&Math.abs(L.x-J.getCenterX())<J.width/2)return mxConstants.DIRECTION_NORTH;if(L.x>J.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function E(J,L){L=null!=L?L:!0;m.model.beginUpdate();try{var K=m.model.getParent(J),n=m.getIncomingTreeEdges(J),z=m.cloneCells([n[0],J]);m.model.setTerminal(z[0],m.model.getTerminal(n[0],
+!0),!0);var G=t(J),M=K.geometry;G==mxConstants.DIRECTION_SOUTH||G==mxConstants.DIRECTION_NORTH?z[1].geometry.x+=L?J.geometry.width+10:-z[1].geometry.width-10:z[1].geometry.y+=L?J.geometry.height+10:-z[1].geometry.height-10;m.view.currentRoot!=K&&(z[1].geometry.x-=M.x,z[1].geometry.y-=M.y);var N=m.view.getState(J),Q=m.view.scale;if(null!=N){var S=mxRectangle.fromRectangle(N);G==mxConstants.DIRECTION_SOUTH||G==mxConstants.DIRECTION_NORTH?S.x+=(L?J.geometry.width+10:-z[1].geometry.width-10)*Q:S.y+=(L?
+J.geometry.height+10:-z[1].geometry.height-10)*Q;var T=m.getOutgoingTreeEdges(m.model.getTerminal(n[0],!0));if(null!=T){for(var W=G==mxConstants.DIRECTION_SOUTH||G==mxConstants.DIRECTION_NORTH,X=M=n=0;X<T.length;X++){var Z=m.model.getTerminal(T[X],!1);if(G==t(Z)){var Y=m.view.getState(Z);Z!=J&&null!=Y&&(W&&L!=Y.getCenterX()<N.getCenterX()||!W&&L!=Y.getCenterY()<N.getCenterY())&&mxUtils.intersects(S,Y)&&(n=10+Math.max(n,(Math.min(S.x+S.width,Y.x+Y.width)-Math.max(S.x,Y.x))/Q),M=10+Math.max(M,(Math.min(S.y+
+S.height,Y.y+Y.height)-Math.max(S.y,Y.y))/Q))}}W?M=0:n=0;for(X=0;X<T.length;X++)if(Z=m.model.getTerminal(T[X],!1),G==t(Z)&&(Y=m.view.getState(Z),Z!=J&&null!=Y&&(W&&L!=Y.getCenterX()<N.getCenterX()||!W&&L!=Y.getCenterY()<N.getCenterY()))){var ba=[];m.traverse(Y.cell,!0,function(da,ia){var ca=null!=ia&&m.isTreeEdge(ia);ca&&ba.push(ia);(null==ia||ca)&&ba.push(da);return null==ia||ca});m.moveCells(ba,(L?1:-1)*n,(L?1:-1)*M)}}}return m.addCells(z,K)}finally{m.model.endUpdate()}}function H(J){m.model.beginUpdate();
+try{var L=t(J),K=m.getIncomingTreeEdges(J),n=m.cloneCells([K[0],J]);m.model.setTerminal(K[0],n[1],!1);m.model.setTerminal(n[0],n[1],!0);m.model.setTerminal(n[0],J,!1);var z=m.model.getParent(J),G=z.geometry,M=[];m.view.currentRoot!=z&&(n[1].geometry.x-=G.x,n[1].geometry.y-=G.y);m.traverse(J,!0,function(S,T){var W=null!=T&&m.isTreeEdge(T);W&&M.push(T);(null==T||W)&&M.push(S);return null==T||W});var N=J.geometry.width+40,Q=J.geometry.height+40;L==mxConstants.DIRECTION_SOUTH?N=0:L==mxConstants.DIRECTION_NORTH?
+(N=0,Q=-Q):L==mxConstants.DIRECTION_WEST?(N=-N,Q=0):L==mxConstants.DIRECTION_EAST&&(Q=0);m.moveCells(M,N,Q);return m.addCells(n,z)}finally{m.model.endUpdate()}}function B(J,L){m.model.beginUpdate();try{var K=m.model.getParent(J),n=m.getIncomingTreeEdges(J),z=t(J);0==n.length&&(n=[m.createEdge(K,null,"",null,null,m.createCurrentEdgeStyle())],z=L);var G=m.cloneCells([n[0],J]);m.model.setTerminal(G[0],J,!0);null==m.model.getTerminal(G[0],!1)&&(m.model.setTerminal(G[0],G[1],!1),m.applyNewEdgeStyle(G[1],
+[G[0]],z));n=m.getOutgoingTreeEdges(J);var M=K.geometry;L=[];m.view.currentRoot==K&&(M=new mxRectangle);for(var N=0;N<n.length;N++){var Q=m.model.getTerminal(n[N],!1);null!=Q&&L.push(Q)}var S=m.view.getBounds(L),T=m.view.translate,W=m.view.scale;z==mxConstants.DIRECTION_SOUTH?(G[1].geometry.x=null==S?J.geometry.x+(J.geometry.width-G[1].geometry.width)/2:(S.x+S.width)/W-T.x-M.x+10,G[1].geometry.y+=G[1].geometry.height-M.y+40):z==mxConstants.DIRECTION_NORTH?(G[1].geometry.x=null==S?J.geometry.x+(J.geometry.width-
+G[1].geometry.width)/2:(S.x+S.width)/W-T.x+-M.x+10,G[1].geometry.y-=G[1].geometry.height+M.y+40):(G[1].geometry.x=z==mxConstants.DIRECTION_WEST?G[1].geometry.x-(G[1].geometry.width+M.x+40):G[1].geometry.x+(G[1].geometry.width-M.x+40),G[1].geometry.y=null==S?J.geometry.y+(J.geometry.height-G[1].geometry.height)/2:(S.y+S.height)/W-T.y+-M.y+10);return m.addCells(G,K)}finally{m.model.endUpdate()}}function d(J,L,K){J=m.getOutgoingTreeEdges(J);K=m.view.getState(K);var n=[];if(null!=K&&null!=J){for(var z=
+0;z<J.length;z++){var G=m.view.getState(m.model.getTerminal(J[z],!1));null!=G&&(!L&&Math.min(G.x+G.width,K.x+K.width)>=Math.max(G.x,K.x)||L&&Math.min(G.y+G.height,K.y+K.height)>=Math.max(G.y,K.y))&&n.push(G)}n.sort(function(M,N){return L?M.x+M.width-N.x-N.width:M.y+M.height-N.y-N.height})}return n}function g(J,L){var K=t(J),n=L==mxConstants.DIRECTION_EAST||L==mxConstants.DIRECTION_WEST;(K==mxConstants.DIRECTION_EAST||K==mxConstants.DIRECTION_WEST)==n&&K!=L?k.actions.get("selectParent").funct():K==
+L?(L=m.getOutgoingTreeEdges(J),null!=L&&0<L.length&&m.setSelectionCell(m.model.getTerminal(L[0],!1))):(K=m.getIncomingTreeEdges(J),null!=K&&0<K.length&&(n=d(m.model.getTerminal(K[0],!0),n,J),J=m.view.getState(J),null!=J&&(J=mxUtils.indexOf(n,J),0<=J&&(J+=L==mxConstants.DIRECTION_NORTH||L==mxConstants.DIRECTION_WEST?-1:1,0<=J&&J<=n.length-1&&m.setSelectionCell(n[J].cell)))))}var k=this,m=k.editor.graph,u=m.getModel(),x=k.menus.createPopupMenu;k.menus.createPopupMenu=function(J,L,K){x.apply(this,arguments);
+if(1==m.getSelectionCount()){L=m.getSelectionCell();var n=m.getOutgoingTreeEdges(L);J.addSeparator();0<n.length&&(c(m.getSelectionCell())&&this.addMenuItems(J,["selectChildren"],null,K),this.addMenuItems(J,["selectDescendants"],null,K));c(m.getSelectionCell())?(J.addSeparator(),0<m.getIncomingTreeEdges(L).length&&this.addMenuItems(J,["selectSiblings","selectParent"],null,K)):0<m.model.getEdgeCount(L)&&this.addMenuItems(J,["selectConnections"],null,K)}};k.actions.addAction("selectChildren",function(J){if(m.isEnabled()&&
+1==m.getSelectionCount()){var L=m.getSelectionCell();J=mxEvent.isControlDown(J)?null:m.getOutgoingTreeEdges(L);if(null!=J&&0<J.length){L=[];for(var K=0;K<J.length;K++)L.push(m.model.getTerminal(J[K],!1));m.setSelectionCells(L)}else m.setSelectionCells(m.model.getChildren(L))}},null,null,"Alt+Shift+C");k.actions.addAction("selectDescendants",function(J){var L=m.getSelectionCell();if(m.isEnabled()&&null!=L){var K=[];mxEvent.isControlDown(J)||m.traverse(L,!0,function(n,z){var G=null!=z&&m.isTreeEdge(z);
+G&&mxEvent.isControlDown(J)&&K.push(z);(null==z||G)&&K.push(n);return null==z||G});if(0==K.length||1==K.length&&K[0]==L)K=m.model.getDescendants(L);m.setSelectionCells(K)}},null,null,"Alt+Shift+X");k.actions.addAction("selectParent",function(J){var L=m.getSelectionCell();m.isEnabled()&&null!=L&&(J=mxEvent.isControlDown(J)?null:m.getIncomingTreeEdges(L),null!=J&&0<J.length?m.setSelectionCell(m.model.getTerminal(J[0],!0)):m.selectParentCell())},null,null,"Alt+Shift+P");k.actions.addAction("selectSiblings",
+function(J){if(m.isEnabled()&&1==m.getSelectionCount()){var L=m.getSelectionCell(),K=mxEvent.isControlDown(J)?null:m.getIncomingTreeEdges(L);J=[];if(null!=K&&0<K.length&&(K=m.getOutgoingTreeEdges(m.model.getTerminal(K[0],!0)),null!=K))for(var n=0;n<K.length;n++)J.push(m.model.getTerminal(K[n],!1));0==J.length&&(J=m.model.getChildren(m.model.getParent(L)));m.setSelectionCells(J)}},null,null,"Alt+Shift+S");var A=m.removeCells;m.removeCells=function(J,L){L=null!=L?L:!0;null==J&&(J=this.getDeletableCells(this.getSelectionCells()));
+L&&(J=this.getDeletableCells(this.addAllEdges(J)));for(var K=[],n=0;n<J.length;n++){var z=J[n];u.isEdge(z)&&p(z)&&(K.push(z),z=u.getTerminal(z,!1));if(c(z)){var G=[];m.traverse(z,!0,function(M,N){var Q=null!=N&&m.isTreeEdge(N);Q&&G.push(N);(null==N||Q)&&G.push(M);return null==N||Q});0<G.length&&(K=K.concat(G),z=m.getIncomingTreeEdges(J[n]),J=J.concat(z))}else null!=z&&K.push(J[n])}J=K;return A.apply(this,arguments)};k.hoverIcons.getStateAt=function(J,L,K){return c(J.cell)?null:this.graph.view.getState(this.graph.getCellAt(L,
+K))};var I=m.duplicateCells;m.duplicateCells=function(J,L){J=null!=J?J:this.getSelectionCells();for(var K=J.slice(0),n=0;n<K.length;n++){var z=m.view.getState(K[n]);if(null!=z&&c(z.cell)){var G=m.getIncomingTreeEdges(z.cell);for(z=0;z<G.length;z++)mxUtils.remove(G[z],J)}}this.model.beginUpdate();try{var M=I.call(this,J,L);if(M.length==J.length)for(n=0;n<J.length;n++)if(c(J[n])){var N=m.getIncomingTreeEdges(M[n]);G=m.getIncomingTreeEdges(J[n]);if(0==N.length&&0<G.length){var Q=this.cloneCell(G[0]);
+this.addEdge(Q,m.getDefaultParent(),this.model.getTerminal(G[0],!0),M[n])}}}finally{this.model.endUpdate()}return M};var F=m.moveCells;m.moveCells=function(J,L,K,n,z,G,M){for(var N=null,Q=[],S=0;S<J.length;S++)(l(J[S])||c(J[S]))&&!v(J[S])&&this.isCellCollapsed(J[S])?Q=Q.concat(this.getSubtree(J[S])):Q.push(J[S]);J=mxUtils.removeDuplicates(Q);this.model.beginUpdate();try{Q=z;var T=this.getCurrentCellStyle(z);if(null!=J&&c(z)&&"1"==mxUtils.getValue(T,"treeFolding","0")){for(S=0;S<J.length;S++)if(c(J[S])||
+m.model.isEdge(J[S])&&null==m.model.getTerminal(J[S],!0)){z=m.model.getParent(J[S]);break}if(null!=Q&&z!=Q&&null!=this.view.getState(J[0])){var W=m.getIncomingTreeEdges(J[0]);if(0<W.length){var X=m.view.getState(m.model.getTerminal(W[0],!0));if(null!=X){var Z=m.view.getState(Q);null!=Z&&(L=(Z.getCenterX()-X.getCenterX())/m.view.scale,K=(Z.getCenterY()-X.getCenterY())/m.view.scale)}}}}N=F.apply(this,arguments);if(null!=N&&null!=J&&N.length==J.length)for(S=0;S<N.length;S++)if(this.model.isEdge(N[S]))c(Q)&&
+0>mxUtils.indexOf(N,this.model.getTerminal(N[S],!0))&&this.model.setTerminal(N[S],Q,!0);else if(c(J[S])&&(W=m.getIncomingTreeEdges(J[S]),0<W.length))if(!n)c(Q)&&0>mxUtils.indexOf(J,this.model.getTerminal(W[0],!0))&&this.model.setTerminal(W[0],Q,!0);else if(0==m.getIncomingTreeEdges(N[S]).length){T=Q;if(null==T||T==m.model.getParent(J[S]))T=m.model.getTerminal(W[0],!0);n=this.cloneCell(W[0]);this.addEdge(n,m.getDefaultParent(),T,N[S])}}finally{this.model.endUpdate()}return N};if(null!=k.sidebar){var C=
+k.sidebar.dropAndConnect;k.sidebar.dropAndConnect=function(J,L,K,n){var z=m.model,G=null;z.beginUpdate();try{if(G=C.apply(this,arguments),c(J))for(var M=0;M<G.length;M++)if(z.isEdge(G[M])&&null==z.getTerminal(G[M],!0)){z.setTerminal(G[M],J,!0);var N=m.getCellGeometry(G[M]);N.points=null;null!=N.getTerminalPoint(!0)&&N.setTerminalPoint(null,!0)}}finally{z.endUpdate()}return G}}var P={67:k.actions.get("selectChildren"),88:k.actions.get("selectDescendants"),80:k.actions.get("selectParent"),83:k.actions.get("selectSiblings")},
+R={67:k.actions.get("copyStyle"),86:k.actions.get("pasteStyle")},U=k.onKeyDown;k.onKeyDown=function(J){try{var L=m.getSelectionCell();if(m.isEnabled()&&!m.isEditing()&&null!=L){var K=mxEvent.isAltDown(J)&&mxEvent.isShiftDown(J)?P[J.keyCode]:mxEvent.isAltDown(J)?R[J.keyCode]:null;null!=K?(K.funct(J),mxEvent.consume(J)):c(L)&&(K=null,0<m.getIncomingTreeEdges(L).length&&(9==J.which?K=mxEvent.isShiftDown(J)?H(L):B(L):13==J.which&&(K=E(L,!mxEvent.isShiftDown(J)))),null!=K&&0<K.length?(1==K.length&&m.model.isEdge(K[0])?
+m.setSelectionCell(m.model.getTerminal(K[0],!1)):m.setSelectionCell(K[K.length-1]),null!=k.hoverIcons&&k.hoverIcons.update(m.view.getState(L)),m.startEditingAtCell(L),mxEvent.consume(J)):37==J.keyCode?(g(L,mxConstants.DIRECTION_WEST),mxEvent.consume(J)):38==J.keyCode?(g(L,mxConstants.DIRECTION_NORTH),mxEvent.consume(J)):39==J.keyCode?(g(L,mxConstants.DIRECTION_EAST),mxEvent.consume(J)):40==J.keyCode&&(g(L,mxConstants.DIRECTION_SOUTH),mxEvent.consume(J)))}}catch(n){k.handleError(n)}mxEvent.isConsumed(J)||
+U.apply(this,arguments)};var O=m.connectVertex;m.connectVertex=function(J,L,K,n,z,G,M){var N=m.getIncomingTreeEdges(J);if(c(J)){var Q=t(J),S=Q==mxConstants.DIRECTION_EAST||Q==mxConstants.DIRECTION_WEST,T=L==mxConstants.DIRECTION_EAST||L==mxConstants.DIRECTION_WEST;return Q==L||0==N.length?B(J,L):S==T?H(J):E(J,L!=mxConstants.DIRECTION_NORTH&&L!=mxConstants.DIRECTION_WEST)}return O.apply(this,arguments)};m.getSubtree=function(J){var L=[J];!l(J)&&!c(J)||v(J)||m.traverse(J,!0,function(K,n){var z=null!=
+n&&m.isTreeEdge(n);z&&0>mxUtils.indexOf(L,n)&&L.push(n);(null==n||z)&&0>mxUtils.indexOf(L,K)&&L.push(K);return null==n||z});return L};var V=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){V.apply(this,arguments);(l(this.state.cell)||c(this.state.cell))&&!v(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(J){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(J),mxEvent.getClientY(J),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=
+mxEvent.isMouseEvent(J);this.graph.isMouseDown=!0;k.hoverIcons.reset();mxEvent.consume(J)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var q=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){q.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 y=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(J){y.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=J?"":"none")};var D=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(J,L){D.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=
+null)}};if("undefined"!==typeof Sidebar){var f=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var c=f.apply(this,arguments),l=this.graph,p=this;return c.concat([this.addEntry("tree container",function(){var v=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");v.vertex=!0;var t=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
+t.vertex=!0;var E=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');E.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.relative=!0;H.edge=!0;t.insertEdge(H,!0);E.insertEdge(H,!1);v.insert(H);v.insert(t);v.insert(E);
+return p.createVertexTemplateFromCells([v],v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var v=new mxCell("Mindmap",new mxGeometry(0,0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");v.vertex=!0;var t=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};');
+t.vertex=!0;var E=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};');E.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.relative=!0;H.edge=!0;t.insertEdge(H,!0);E.insertEdge(H,!1);var B=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};');
+B.vertex=!0;var d=new mxCell("",new mxGeometry(0,0,0,0),H.style);d.geometry.relative=!0;d.edge=!0;t.insertEdge(d,!0);B.insertEdge(d,!1);var g=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};');
+g.vertex=!0;var k=new mxCell("",new mxGeometry(0,0,0,0),H.style);k.geometry.relative=!0;k.edge=!0;t.insertEdge(k,!0);g.insertEdge(k,!1);var m=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};');
+m.vertex=!0;var u=new mxCell("",new mxGeometry(0,0,0,0),H.style);u.geometry.relative=!0;u.edge=!0;t.insertEdge(u,!0);m.insertEdge(u,!1);v.insert(H);v.insert(d);v.insert(k);v.insert(u);v.insert(t);v.insert(E);v.insert(B);v.insert(g);v.insert(m);return p.createVertexTemplateFromCells([v],v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var v=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;');
+v.vertex=!0;return p.createVertexTemplateFromCells([v],v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree mindmap mindmaps branch",function(){var v=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};');
+v.vertex=!0;var t=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");t.geometry.setTerminalPoint(new mxPoint(-40,40),!0);t.geometry.relative=!0;t.edge=!0;v.insertEdge(t,!1);return p.createVertexTemplateFromCells([v,t],v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var v=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};');v.vertex=!0;var t=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
+t.geometry.setTerminalPoint(new mxPoint(-40,40),!0);t.geometry.relative=!0;t.edge=!0;v.insertEdge(t,!1);return p.createVertexTemplateFromCells([v,t],v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree orgchart organization division",function(){var v=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');v.vertex=!0;var t=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"};');l.setAttributeForCell(t,"treeRoot","1");t.vertex=!0;var E=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"};');E.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.relative=!0;H.edge=!0;t.insertEdge(H,!0);E.insertEdge(H,!1);var B=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"};');B.vertex=!0;var d=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");d.geometry.relative=
+!0;d.edge=!0;t.insertEdge(d,!0);B.insertEdge(d,!1);v.insert(H);v.insert(d);v.insert(t);v.insert(E);v.insert(B);return p.createVertexTemplateFromCells([v],v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree root",function(){var v=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"};');l.setAttributeForCell(v,"treeRoot","1");v.vertex=!0;return p.createVertexTemplateFromCells([v],
+v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree division",function(){var v=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"};');v.vertex=!0;var t=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
+t.geometry.setTerminalPoint(new mxPoint(0,0),!0);t.geometry.relative=!0;t.edge=!0;v.insertEdge(t,!1);return p.createVertexTemplateFromCells([v,t],v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree sub sections",function(){var v=new mxCell("Sub Section",new mxGeometry(0,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");v.vertex=!0;var t=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;");
+t.geometry.setTerminalPoint(new mxPoint(110,-40),!0);t.geometry.relative=!0;t.edge=!0;v.insertEdge(t,!1);var E=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");E.vertex=!0;var H=new mxCell("",new mxGeometry(0,0,0,0),t.style);H.geometry.setTerminalPoint(new mxPoint(110,-40),!0);H.geometry.relative=!0;H.edge=!0;E.insertEdge(H,!1);return p.createVertexTemplateFromCells([t,H,v,E],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows;
EditorUi.initMinimalTheme=function(){function b(B,d){if(EditorUi.windowed){var g=B.editor.graph;g.popupMenuHandler.hideMenu();null==B.formatWindow?(B.formatWindow=new WrapperWindow(B,"",Math.max(10,B.diagramContainer.clientWidth-248),60,240,Math.min(566,g.container.clientHeight-10),function(k){k.className="geSidebarContainer geFormatContainer";B.createFormat(k).init()}),B.dependsOnLanguage(mxUtils.bind(this,function(){B.formatWindow.window.setTitle(mxResources.get("format"))})),B.formatWindow.window.addListener(mxEvent.SHOW,
mxUtils.bind(this,function(){B.formatWindow.window.fit()})),B.formatWindow.window.minimumSize=new mxRectangle(0,0,240,80)):B.formatWindow.window.setVisible(null!=d?d:!B.formatWindow.window.isVisible())}else null==B.formatElt&&(B.formatElt=B.createSidebarContainer(),B.createFormat(B.formatElt).init(),B.formatElt.style.border="none",B.formatElt.style.width="240px",B.formatElt.style.borderLeftWidth="1px",B.formatElt.style.borderLeftStyle="solid",B.formatElt.style.right="0px"),d=B.diagramContainer.parentNode,
null!=B.formatElt.parentNode?(B.formatElt.parentNode.removeChild(B.formatElt),d.style.right="0px"):(d.parentNode.appendChild(B.formatElt),d.style.right=B.formatElt.style.width)}function e(B,d){if(EditorUi.windowed){var g=B.editor.graph;g.popupMenuHandler.hideMenu();null==B.sidebarWindow?(B.sidebarWindow=new WrapperWindow(B,"",10,56,Math.min(g.container.clientWidth-10,218)-6,Math.min(g.container.clientHeight-40,650)-6,function(k){B.createShapesPanel(k)}),B.dependsOnLanguage(mxUtils.bind(this,function(){B.sidebarWindow.window.setTitle(mxResources.get("shapes"))})),
@@ -14505,79 +14552,79 @@ B.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){B.s
document.body.clientWidth}catch(B){}Menus.prototype.autoPopup=!1;mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'<path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke-width="2" style="stroke-opacity:0.4" stroke="#ffffff"/><path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke="#29b6f2"/>');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;EditorUi.prototype.closableScratchpad=!1;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.prototype.isChromelessView=
function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var c=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){c.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var l=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(B,d){null!=d.shortcut&&900>f&&!mxClient.IS_IOS?B.firstChild.nextSibling.setAttribute("title",d.shortcut):l.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=
-function(B){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=B?B:!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 p=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();p.apply(this,arguments)};var q=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(B){q.apply(this,
-arguments);if(B){var d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=d&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=d&&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 v=Menus.prototype.init;Menus.prototype.init=function(){v.apply(this,
+function(B){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=B?B:!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 p=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();p.apply(this,arguments)};var v=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(B){v.apply(this,
+arguments);if(B){var d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=d&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=d&&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 t=Menus.prototype.init;Menus.prototype.init=function(){t.apply(this,
arguments);var B=this.editorUi;EditorUi.enablePlantUml&&!B.isOffline()&&B.actions.put("plantUml",new Action("plantUml...",function(){var k=new ParseDialog(B,mxResources.get("plantUml")+"...","plantUml");B.showDialog(k.container,620,420,!0,!1);k.init()}));B.actions.put("mermaid",new Action("mermaid...",function(){var k=new ParseDialog(B,mxResources.get("mermaid")+"...","mermaid");B.showDialog(k.container,620,420,!0,!1);k.init()}));var d="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),
-g=function(k,m,t,y){k.addItem(t,null,mxUtils.bind(this,function(){var z=new CreateGraphDialog(B,t,y);B.showDialog(z.container,620,420,!0,!1);z.init()}),m)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(k,m){for(var t=0;t<d.length;t++)"-"==d[t]?k.addSeparator(m):g(k,m,mxResources.get(d[t])+"...",d[t])})))};EditorUi.prototype.installFormatToolbar=function(B){var d=this.editor.graph,g=document.createElement("div");g.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%;";
-d.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(k,m){0<d.getSelectionCount()?(B.appendChild(g),g.innerHTML="Selected: "+d.getSelectionCount()):null!=g.parentNode&&g.parentNode.removeChild(g)}))};var D=!1;EditorUi.prototype.initFormatWindow=function(){if(!D&&null!=this.formatWindow){D=!0;var B=this.formatWindow.window.toggleMinimized,d=240;this.formatWindow.window.toggleMinimized=function(){B.apply(this,arguments);this.minimized?(d=parseInt(this.div.style.width),this.div.style.width=
-"140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+d-140+"px"):(this.div.style.width=d+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-d+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(g){mxEvent.getSource(g)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var G=EditorUi.prototype.init;EditorUi.prototype.init=
-function(){function B(A,E,L){var O=t.menus.get(A);E=I.addMenu(mxResources.get(A),mxUtils.bind(this,function(){O.funct.apply(this,arguments)}));E.className="geButton";E.setAttribute("title",mxResources.get(A));t.menus.menuCreated(O,E,"geButton");null!=L&&(E.style.backgroundImage="url("+L+")",E.innerText="");return E}function d(A,E,L,O,R,T){var U=document.createElement("a");U.className="geButton";z.appendChild(U);null!=T?U.style.backgroundImage="url("+T+")":mxUtils.write(U,A);mxEvent.addListener(U,
-"click",function(W){"disabled"!=U.getAttribute("disabled")&&E(W);mxEvent.consume(W)});mxEvent.preventDefault(U);null!=O&&U.setAttribute("title",O);null!=R&&(A=function(){R.isEnabled()?U.removeAttribute("disabled"):U.setAttribute("disabled","disabled")},R.addListener("stateChanged",A),y.addListener("enabledChanged",A),A());return U}function g(A,E,L){E=document.createElement("div");E.className="geButtonGroup";for(L=0;L<A.length;L++)null!=A[L]&&E.appendChild(A[L]);z.appendChild(E);return E}function k(){f=
-window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;z.innerHTML="";var A=1E3>f,E=B("diagram",null,A?Editor.menuImage:null);g([E,d(mxResources.get("shapes"),t.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),t.actions.get("image"),A?Editor.shapesImage:null),d(mxResources.get("format"),t.actions.get("format").funct,null,mxResources.get("format")+" ("+t.actions.get("format").shortcut+")",t.actions.get("image"),A?Editor.formatImage:null)]);E=B("insert",!0,
-A?V:null);g([E,d(mxResources.get("delete"),t.actions.get("delete").funct,null,mxResources.get("delete"),t.actions.get("delete"),A?Editor.trashImage:null)]);y.isEnabled()||E.setAttribute("disabled","disabled");N.setAttribute("title",mxResources.get("undo")+" ("+H.shortcut+")");M.setAttribute("title",mxResources.get("redo")+" ("+K.shortcut+")");n.setAttribute("title",mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)");411<=f&&(g([N,M]),520<=f&&g([n,640<=f?d("",x.funct,!0,mxResources.get("zoomIn")+" ("+
-Editor.ctrlKey+" +)",x,Editor.zoomInImage):null,640<=f?d("",J.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",J,Editor.zoomOutImage):null]));z.appendChild(t.statusContainer);z.appendChild(t.buttonContainer)}G.apply(this,arguments);var m=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=m&&(m.classList.add("geSimple"),m.classList.add("geMinimal"),m.classList.remove("geClassic"));this.sidebar=this.createSidebar(this.sidebarContainer);
-if(1E3<=f||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])e(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<=f&&(b(this,!0),this.formatWindow.window.setVisible(!0));var t=this,y=t.editor.graph;t.toolbar=this.createToolbar(t.createDiv("geToolbar"));var z=document.createElement("div");z.className="geMenubarContainer";
-var I=new Menubar(t,z),F=t.hideCurrentMenu;t.hideCurrentMenu=function(){F.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var C=t.descriptorChanged;t.descriptorChanged=function(){C.apply(this,arguments);var A=t.getCurrentFile();if(null!=A&&null!=A.getTitle()){var E=A.getMode();"google"==E?E="googleDrive":"github"==E?E="gitHub":"gitlab"==E?E="gitLab":"onedrive"==E&&(E="oneDrive");E=mxResources.get(E);z.setAttribute("title",A.getTitle()+(null!=E?" ("+E+")":""))}else z.removeAttribute("title")};
-t.setStatusText(t.editor.getStatus());z.appendChild(t.statusContainer);t.buttonContainer=this.createButtonContainer();z.appendChild(t.buttonContainer);t.menubarContainer=t.buttonContainer;t.tabContainer=this.createTabContainer();var Q=this.createZoomInput(!0),S=t.updateTabContainer;t.updateTabContainer=function(){S.apply(this,arguments);t.tabContainer.appendChild(Q)};var V=Editor.addBoxImage;if(null!=t.hoverIcons){var P=t.hoverIcons.update;t.hoverIcons.update=function(){y.freehand.isDrawing()||P.apply(this,
-arguments)}}if(null!=y.freehand){var u=y.freehand.createStyle;y.freehand.createStyle=function(A){return u.apply(this,arguments)+"sketch=0;"}}t.editor.addListener("statusChanged",mxUtils.bind(this,function(){t.setStatusText(t.editor.getStatus())}));t.setStatusText(t.editor.getStatus());var x=t.actions.get("zoomIn"),J=t.actions.get("zoomOut");m=t.actions.get("resetView");var H=t.actions.get("undo"),K=t.actions.get("redo"),N=d("",H.funct,null,"",H,Editor.undoImage),M=d("",K.funct,null,"",K,Editor.redoImage),
-n=d("",function(A){mxEvent.isAltDown(A)?(t.hideCurrentMenu(),t.actions.get("customZoom").funct()):(t.hideCurrentMenu(),t.actions.get("smartFit").funct());mxEvent.consume(A)},!0,"",m,Editor.zoomFitImage);t.container.appendChild(t.tabContainer);t.container.appendChild(z);t.updateTabContainer();!EditorUi.windowed&&1E3<=f&&b(this,!0);k();t.addListener("lockedChanged",k);t.addListener("languageChanged",k);t.editor.graph.addListener("enabledChanged",k);mxEvent.addListener(window,"resize",function(){k();
-null!=t.sidebarWindow&&t.sidebarWindow.window.fit();null!=t.formatWindow&&t.formatWindow.window.fit();null!=t.actions.outlineWindow&&t.actions.outlineWindow.window.fit();null!=t.actions.layersWindow&&t.actions.layersWindow.window.fit();null!=t.menus.chatWindow&&t.menus.chatWindow.window.fit();null!=t.menus.tagsWindow&&t.menus.tagsWindow.window.fit();null!=t.menus.findWindow&&t.menus.findWindow.window.fit();null!=t.menus.findReplaceWindow&&t.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)}})();(function(){var b=mxGuide.prototype.move;mxGuide.prototype.move=function(c,l,p,q){var v=l.y,D=l.x,G=!1,B=!1;if(null!=this.states&&null!=c&&null!=l){var d=this,g=new mxCellState,k=this.graph.getView().scale,m=Math.max(2,this.getGuideTolerance()/2);g.x=c.x+D;g.y=c.y+v;g.width=c.width;g.height=c.height;for(var t=[],y=[],z=0;z<this.states.length;z++){var I=this.states[z];I instanceof mxCellState&&(q||!this.graph.isCellSelected(I.cell))&&((g.x>=I.x&&g.x<=I.x+I.width||I.x>=g.x&&I.x<=g.x+g.width)&&(g.y>
-I.y+I.height+4||g.y+g.height+4<I.y)?t.push(I):(g.y>=I.y&&g.y<=I.y+I.height||I.y>=g.y&&I.y<=g.y+g.height)&&(g.x>I.x+I.width+4||g.x+g.width+4<I.x)&&y.push(I))}var F=0,C=0,Q=I=0,S=0,V=0,P=0,u=0,x=5*k;if(1<t.length){t.push(g);t.sort(function(N,M){return N.y-M.y});var J=!1;z=g==t[0];k=g==t[t.length-1];if(!z&&!k)for(z=1;z<t.length-1;z++)if(g==t[z]){k=t[z-1];z=t[z+1];I=C=Q=(z.y-k.y-k.height-g.height)/2;break}for(z=0;z<t.length-1;z++){k=t[z];var H=t[z+1],K=g==k||g==H;H=H.y-k.y-k.height;J|=g==k;if(0==C&&0==
-F)C=H,F=1;else if(Math.abs(C-H)<=(K||1==z&&J?m:0))F+=1;else if(1<F&&J){t=t.slice(0,z+1);break}else if(3<=t.length-z&&!J)F=0,I=C=0!=Q?Q:0,t.splice(0,0==z?1:z),z=-1;else break;0!=I||K||(C=I=H)}3==t.length&&t[1]==g&&(I=0)}if(1<y.length){y.push(g);y.sort(function(N,M){return N.x-M.x});J=!1;z=g==y[0];k=g==y[y.length-1];if(!z&&!k)for(z=1;z<y.length-1;z++)if(g==y[z]){k=y[z-1];z=y[z+1];P=V=u=(z.x-k.x-k.width-g.width)/2;break}for(z=0;z<y.length-1;z++){k=y[z];H=y[z+1];K=g==k||g==H;H=H.x-k.x-k.width;J|=g==k;
-if(0==V&&0==S)V=H,S=1;else if(Math.abs(V-H)<=(K||1==z&&J?m:0))S+=1;else if(1<S&&J){y=y.slice(0,z+1);break}else if(3<=y.length-z&&!J)S=0,P=V=0!=u?u:0,y.splice(0,0==z?1:z),z=-1;else break;0!=P||K||(V=P=H)}3==y.length&&y[1]==g&&(P=0)}m=function(N,M,n,A){var E=[];if(A){A=x;var L=0}else A=0,L=x;E.push(new mxPoint(N.x-A,N.y-L));E.push(new mxPoint(N.x+A,N.y+L));E.push(N);E.push(M);E.push(new mxPoint(M.x-A,M.y-L));E.push(new mxPoint(M.x+A,M.y+L));if(null!=n)return n.points=E,n;N=new mxPolyline(E,mxConstants.GUIDE_COLOR,
-mxConstants.GUIDE_STROKEWIDTH);N.dialect=mxConstants.DIALECT_SVG;N.pointerEvents=!1;N.init(d.graph.getView().getOverlayPane());return N};V=function(N,M){if(N&&null!=d.guidesArrHor)for(N=0;N<d.guidesArrHor.length;N++)d.guidesArrHor[N].node.style.visibility="hidden";if(M&&null!=d.guidesArrVer)for(N=0;N<d.guidesArrVer.length;N++)d.guidesArrVer[N].node.style.visibility="hidden"};if(1<S&&S==y.length-1){S=[];u=d.guidesArrHor;G=[];D=0;z=y[0]==g?1:0;J=y[z].y+y[z].height;if(0<P)for(z=0;z<y.length-1;z++)k=
-y[z],H=y[z+1],g==k?(D=H.x-k.width-P,G.push(new mxPoint(D+k.width+x,J)),G.push(new mxPoint(H.x-x,J))):g==H?(G.push(new mxPoint(k.x+k.width+x,J)),D=k.x+k.width+P,G.push(new mxPoint(D-x,J))):(G.push(new mxPoint(k.x+k.width+x,J)),G.push(new mxPoint(H.x-x,J)));else k=y[0],z=y[2],D=k.x+k.width+(z.x-k.x-k.width-g.width)/2,G.push(new mxPoint(k.x+k.width+x,J)),G.push(new mxPoint(D-x,J)),G.push(new mxPoint(D+g.width+x,J)),G.push(new mxPoint(z.x-x,J));for(z=0;z<G.length;z+=2)y=G[z],P=G[z+1],y=m(y,P,null!=u?
-u[z/2]:null),y.node.style.visibility="visible",y.redraw(),S.push(y);for(z=G.length/2;null!=u&&z<u.length;z++)u[z].destroy();d.guidesArrHor=S;D-=c.x;G=!0}else V(!0);if(1<F&&F==t.length-1){S=[];u=d.guidesArrVer;B=[];v=0;z=t[0]==g?1:0;F=t[z].x+t[z].width;if(0<I)for(z=0;z<t.length-1;z++)k=t[z],H=t[z+1],g==k?(v=H.y-k.height-I,B.push(new mxPoint(F,v+k.height+x)),B.push(new mxPoint(F,H.y-x))):g==H?(B.push(new mxPoint(F,k.y+k.height+x)),v=k.y+k.height+I,B.push(new mxPoint(F,v-x))):(B.push(new mxPoint(F,k.y+
-k.height+x)),B.push(new mxPoint(F,H.y-x)));else k=t[0],z=t[2],v=k.y+k.height+(z.y-k.y-k.height-g.height)/2,B.push(new mxPoint(F,k.y+k.height+x)),B.push(new mxPoint(F,v-x)),B.push(new mxPoint(F,v+g.height+x)),B.push(new mxPoint(F,z.y-x));for(z=0;z<B.length;z+=2)y=B[z],P=B[z+1],y=m(y,P,null!=u?u[z/2]:null,!0),y.node.style.visibility="visible",y.redraw(),S.push(y);for(z=B.length/2;null!=u&&z<u.length;z++)u[z].destroy();d.guidesArrVer=S;v-=c.y;B=!0}else V(!1,!0)}if(G||B)return g=new mxPoint(D,v),t=b.call(this,
-c,g,p,q),G&&!B?g.y=t.y:B&&!G&&(g.x=t.x),t.y!=g.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),t.x!=g.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),g;V(!0,!0);return b.apply(this,arguments)};var e=mxGuide.prototype.setVisible;mxGuide.prototype.setVisible=function(c){e.call(this,c);var l=this.guidesArrVer,p=this.guidesArrHor;if(null!=l)for(var q=0;q<l.length;q++)l[q].node.style.visibility=c?"visible":"hidden";if(null!=
-p)for(q=0;q<p.length;q++)p[q].node.style.visibility=c?"visible":"hidden"};var f=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){f.call(this);var c=this.guidesArrVer,l=this.guidesArrHor;if(null!=c){for(var p=0;p<c.length;p++)c[p].destroy();this.guidesArrVer=null}if(null!=l){for(p=0;p<l.length;p++)l[p].destroy();this.guidesArrHor=null}}})();function mxRuler(b,e,f,c){function l(){var F=b.getDiagramContainerOffset(),C=b.diagramContainer;d.style.top=C.offsetTop-F.y+"px";d.style.left=C.offsetLeft-F.x+"px";d.style.width=(f?0:C.offsetWidth)+D+"px";d.style.height=(f?C.offsetHeight:0)+D+"px"}function p(F,C,Q){if(null!=q)return F;var S;return function(){var V=this,P=arguments,u=Q&&!S;clearTimeout(S);S=setTimeout(function(){S=null;Q||F.apply(V,P)},C);u&&F.apply(V,P)}}var q=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
-window.msRequestAnimationFrame,v=window.cancelAnimationFrame||window.mozCancelAnimationFrame,D=this.RULER_THICKNESS,G=this;this.unit=e;var B=Editor.isDarkMode()?{bkgClr:"#202020",outBkgClr:"#1B1D1E",cornerClr:"#1B1D1E",strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{bkgClr:"#ffffff",outBkgClr:"#f1f3f4",cornerClr:"#f1f3f4",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"},d=document.createElement("div");d.className="geRuler";d.style.position="fixed";this.updateStyle=mxUtils.bind(this,
-function(){B=Editor.isDarkMode()?{outBkgClr:"#1B1D1E",cornerClr:"#1B1D1E",strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#f1f3f4",cornerClr:"#f1f3f4",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};d.style[f?"borderRight":"borderBottom"]="0.5px solid "+B.strokeClr;d.style.borderLeft="0.5px solid "+B.strokeClr});this.updateStyle();b.diagramContainer.appendChild(d);mxEvent.disableContextMenu(d);this.editorUiRefresh=b.refresh;b.refresh=function(F){G.editorUiRefresh.apply(b,
-arguments);l()};l();var g=document.createElement("canvas");g.width=d.offsetWidth;g.height=d.offsetHeight;d.style.overflow="hidden";g.style.position="relative";d.appendChild(g);var k=g.getContext("2d");this.ui=b;var m=b.editor.graph;this.graph=m;this.container=d;this.canvas=g;var t=function(F,C,Q,S,V){F=Math.round(F);C=Math.round(C);Q=Math.round(Q);S=Math.round(S);k.beginPath();k.moveTo(F+.5,C+.5);k.lineTo(Q+.5,S+.5);k.stroke();V&&(f?(k.save(),k.translate(F,C),k.rotate(-Math.PI/2),k.fillText(V,0,0),
-k.restore()):k.fillText(V,F,C))},y=function(){k.clearRect(0,0,g.width,g.height);k.beginPath();k.lineWidth=.7;k.strokeStyle=B.strokeClr;k.setLineDash([]);k.font="9px Arial";k.textAlign="center";var F=m.view.scale,C=m.view.getBackgroundPageBounds(),Q=m.view.translate,S=m.pageVisible;Q=S?D+(f?C.y-m.container.scrollTop:C.x-m.container.scrollLeft):D+(f?Q.y*F-m.container.scrollTop:Q.x*F-m.container.scrollLeft);var V=0;S&&(V=m.getPageLayout(),V=f?V.y*m.pageFormat.height:V.x*m.pageFormat.width);var P;switch(G.unit){case mxConstants.POINTS:var u=
-P=10;var x=[3,5,5,5,5,10,5,5,5,5];break;case mxConstants.MILLIMETERS:P=10;u=mxConstants.PIXELS_PER_MM;x=[5,3,3,3,3,6,3,3,3,3];break;case mxConstants.METERS:P=20;u=mxConstants.PIXELS_PER_MM;x=[5,3,3,3,3,6,3,3,3,3,10,3,3,3,3,6,3,3,3,3];break;case mxConstants.INCHES:P=.5>=F||4<=F?8:16,u=mxConstants.PIXELS_PER_INCH/P,x=[5,3,5,3,7,3,5,3,7,3,5,3,7,3,5,3]}var J=u;2<=F?J=u/(2*Math.floor(F/2)):.5>=F&&(J=u*Math.floor(1/F/2)*(G.unit==mxConstants.MILLIMETERS?2:1));u=null;C=S?Math.min(Q+(f?C.height:C.width),f?
-g.height:g.width):f?g.height:g.width;if(S)if(k.fillStyle=B.outBkgClr,f){var H=Q-D;0<H&&k.fillRect(0,D,D,H);C<g.height&&k.fillRect(0,C,D,g.height)}else H=Q-D,0<H&&k.fillRect(D,0,H,D),C<g.width&&k.fillRect(C,0,g.width,D);k.fillStyle=B.fontClr;for(S=S?Q:Q%(J*F);S<=C;S+=J*F)if(H=Math.round((S-Q)/F/J),!(S<D||H==u)){u=H;var K=null;0==H%P&&(K=G.formatText(V+H*J)+"");f?t(D-x[Math.abs(H)%P],S,D,S,K):t(S,D-x[Math.abs(H)%P],S,D,K)}k.lineWidth=1;t(f?0:D,f?D:0,D,D);k.fillStyle=B.cornerClr;k.fillRect(0,0,D,D)},
-z=-1,I=function(){null!=q?(null!=v&&v(z),z=q(y)):y()};this.drawRuler=I;this.sizeListener=e=p(function(){var F=m.container;f?(F=F.offsetHeight+D,g.height!=F&&(g.height=F,d.style.height=F+"px",I())):(F=F.offsetWidth+D,g.width!=F&&(g.width=F,d.style.width=F+"px",I()))},10);this.pageListener=function(){I()};this.scrollListener=c=p(function(){var F=f?m.container.scrollTop:m.container.scrollLeft;G.lastScroll!=F&&(G.lastScroll=F,I())},10);this.unitListener=function(F,C){G.setUnit(C.getProperty("unit"))};
-m.addListener(mxEvent.SIZE,e);m.container.addEventListener("scroll",c);m.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(F){B=F;d.style.background=B.bkgClr;y()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(F,C,Q,S){if(f&&4<F.height||!f&&4<F.width){if(null!=G.guidePart)try{k.putImageData(G.guidePart.imgData1,
-G.guidePart.x1,G.guidePart.y1),k.putImageData(G.guidePart.imgData2,G.guidePart.x2,G.guidePart.y2),k.putImageData(G.guidePart.imgData3,G.guidePart.x3,G.guidePart.y3)}catch(A){}var V=G.origGuideMove.apply(this,arguments);try{k.lineWidth=.5;k.strokeStyle=B.guideClr;k.setLineDash([2]);if(f){var P=F.y+V.y+D-this.graph.container.scrollTop;var u=0;var x=P+F.height/2;var J=D/2;var H=P+F.height;var K=0;var N=k.getImageData(u,P-1,D,3);t(u,P,D,P);P--;var M=k.getImageData(J,x-1,D,3);t(J,x,D,x);x--;var n=k.getImageData(K,
-H-1,D,3);t(K,H,D,H);H--}else P=0,u=F.x+V.x+D-this.graph.container.scrollLeft,x=D/2,J=u+F.width/2,H=0,K=u+F.width,N=k.getImageData(u-1,P,3,D),t(u,P,u,D),u--,M=k.getImageData(J-1,x,3,D),t(J,x,J,D),J--,n=k.getImageData(K-1,H,3,D),t(K,H,K,D),K--;if(null==G.guidePart||G.guidePart.x1!=u||G.guidePart.y1!=P)G.guidePart={imgData1:N,x1:u,y1:P,imgData2:M,x2:J,y2:x,imgData3:n,x3:K,y3:H}}catch(A){}}else V=G.origGuideMove.apply(this,arguments);return V};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=
-function(){var F=G.origGuideDestroy.apply(this,arguments);if(null!=G.guidePart)try{k.putImageData(G.guidePart.imgData1,G.guidePart.x1,G.guidePart.y1),k.putImageData(G.guidePart.imgData2,G.guidePart.x2,G.guidePart.y2),k.putImageData(G.guidePart.imgData3,G.guidePart.x3,G.guidePart.y3),G.guidePart=null}catch(C){}return F}}mxRuler.prototype.RULER_THICKNESS=14;mxRuler.prototype.unit=mxConstants.POINTS;mxRuler.prototype.setUnit=function(b){this.unit=b;this.drawRuler()};
+g=function(k,m,u,x){k.addItem(u,null,mxUtils.bind(this,function(){var A=new CreateGraphDialog(B,u,x);B.showDialog(A.container,620,420,!0,!1);A.init()}),m)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(k,m){for(var u=0;u<d.length;u++)"-"==d[u]?k.addSeparator(m):g(k,m,mxResources.get(d[u])+"...",d[u])})))};EditorUi.prototype.installFormatToolbar=function(B){var d=this.editor.graph,g=document.createElement("div");g.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%;";
+d.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(k,m){0<d.getSelectionCount()?(B.appendChild(g),g.innerHTML="Selected: "+d.getSelectionCount()):null!=g.parentNode&&g.parentNode.removeChild(g)}))};var E=!1;EditorUi.prototype.initFormatWindow=function(){if(!E&&null!=this.formatWindow){E=!0;var B=this.formatWindow.window.toggleMinimized,d=240;this.formatWindow.window.toggleMinimized=function(){B.apply(this,arguments);this.minimized?(d=parseInt(this.div.style.width),this.div.style.width=
+"140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+d-140+"px"):(this.div.style.width=d+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-d+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(g){mxEvent.getSource(g)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var H=EditorUi.prototype.init;EditorUi.prototype.init=
+function(){function B(z,G,M){var N=u.menus.get(z);G=I.addMenu(mxResources.get(z),mxUtils.bind(this,function(){N.funct.apply(this,arguments)}));G.className="geButton";G.setAttribute("title",mxResources.get(z));u.menus.menuCreated(N,G,"geButton");null!=M&&(G.style.backgroundImage="url("+M+")",G.innerText="");return G}function d(z,G,M,N,Q,S){var T=document.createElement("a");T.className="geButton";A.appendChild(T);null!=S?T.style.backgroundImage="url("+S+")":mxUtils.write(T,z);mxEvent.addListener(T,
+"click",function(W){"disabled"!=T.getAttribute("disabled")&&G(W);mxEvent.consume(W)});mxEvent.preventDefault(T);null!=N&&T.setAttribute("title",N);null!=Q&&(z=function(){Q.isEnabled()?T.removeAttribute("disabled"):T.setAttribute("disabled","disabled")},Q.addListener("stateChanged",z),x.addListener("enabledChanged",z),z());return T}function g(z,G,M){G=document.createElement("div");G.className="geButtonGroup";for(M=0;M<z.length;M++)null!=z[M]&&G.appendChild(z[M]);A.appendChild(G);return G}function k(){f=
+window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;A.innerHTML="";var z=1E3>f,G=B("diagram",null,z?Editor.menuImage:null);g([G,d(mxResources.get("shapes"),u.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),u.actions.get("image"),z?Editor.shapesImage:null),d(mxResources.get("format"),u.actions.get("format").funct,null,mxResources.get("format")+" ("+u.actions.get("format").shortcut+")",u.actions.get("image"),z?Editor.formatImage:null)]);G=B("insert",!0,
+z?U:null);g([G,d(mxResources.get("delete"),u.actions.get("delete").funct,null,mxResources.get("delete"),u.actions.get("delete"),z?Editor.trashImage:null)]);x.isEnabled()||G.setAttribute("disabled","disabled");L.setAttribute("title",mxResources.get("undo")+" ("+D.shortcut+")");K.setAttribute("title",mxResources.get("redo")+" ("+J.shortcut+")");n.setAttribute("title",mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)");411<=f&&(g([L,K]),520<=f&&g([n,640<=f?d("",q.funct,!0,mxResources.get("zoomIn")+" ("+
+Editor.ctrlKey+" +)",q,Editor.zoomInImage):null,640<=f?d("",y.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",y,Editor.zoomOutImage):null]));A.appendChild(u.statusContainer);A.appendChild(u.buttonContainer)}H.apply(this,arguments);var m=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=m&&(m.classList.add("geSimple"),m.classList.add("geMinimal"),m.classList.remove("geClassic"));this.sidebar=this.createSidebar(this.sidebarContainer);
+if(1E3<=f||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])e(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<=f&&(b(this,!0),this.formatWindow.window.setVisible(!0));var u=this,x=u.editor.graph;u.toolbar=this.createToolbar(u.createDiv("geToolbar"));var A=document.createElement("div");A.className="geMenubarContainer";
+var I=new Menubar(u,A),F=u.hideCurrentMenu;u.hideCurrentMenu=function(){F.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var C=u.descriptorChanged;u.descriptorChanged=function(){C.apply(this,arguments);var z=u.getCurrentFile();if(null!=z&&null!=z.getTitle()){var G=z.getMode();"google"==G?G="googleDrive":"github"==G?G="gitHub":"gitlab"==G?G="gitLab":"onedrive"==G&&(G="oneDrive");G=mxResources.get(G);A.setAttribute("title",z.getTitle()+(null!=G?" ("+G+")":""))}else A.removeAttribute("title")};
+u.setStatusText(u.editor.getStatus());A.appendChild(u.statusContainer);u.buttonContainer=this.createButtonContainer();A.appendChild(u.buttonContainer);u.menubarContainer=u.buttonContainer;u.tabContainer=this.createTabContainer();var P=this.createZoomInput(!0),R=u.updateTabContainer;u.updateTabContainer=function(){R.apply(this,arguments);u.tabContainer.appendChild(P)};var U=Editor.addBoxImage;if(null!=u.hoverIcons){var O=u.hoverIcons.update;u.hoverIcons.update=function(){x.freehand.isDrawing()||O.apply(this,
+arguments)}}if(null!=x.freehand){var V=x.freehand.createStyle;x.freehand.createStyle=function(z){return V.apply(this,arguments)+"sketch=0;"}}u.editor.addListener("statusChanged",mxUtils.bind(this,function(){u.setStatusText(u.editor.getStatus())}));u.setStatusText(u.editor.getStatus());var q=u.actions.get("zoomIn"),y=u.actions.get("zoomOut");m=u.actions.get("resetView");var D=u.actions.get("undo"),J=u.actions.get("redo"),L=d("",D.funct,null,"",D,Editor.undoImage),K=d("",J.funct,null,"",J,Editor.redoImage),
+n=d("",function(z){mxEvent.isAltDown(z)?(u.hideCurrentMenu(),u.actions.get("customZoom").funct()):(u.hideCurrentMenu(),u.actions.get("smartFit").funct());mxEvent.consume(z)},!0,"",m,Editor.zoomFitImage);u.container.appendChild(u.tabContainer);u.container.appendChild(A);u.updateTabContainer();!EditorUi.windowed&&1E3<=f&&b(this,!0);k();u.addListener("lockedChanged",k);u.addListener("languageChanged",k);u.editor.graph.addListener("enabledChanged",k);mxEvent.addListener(window,"resize",function(){k();
+null!=u.sidebarWindow&&u.sidebarWindow.window.fit();null!=u.formatWindow&&u.formatWindow.window.fit();null!=u.actions.outlineWindow&&u.actions.outlineWindow.window.fit();null!=u.actions.layersWindow&&u.actions.layersWindow.window.fit();null!=u.menus.chatWindow&&u.menus.chatWindow.window.fit();null!=u.menus.tagsWindow&&u.menus.tagsWindow.window.fit();null!=u.menus.findWindow&&u.menus.findWindow.window.fit();null!=u.menus.findReplaceWindow&&u.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)}})();(function(){var b=mxGuide.prototype.move;mxGuide.prototype.move=function(c,l,p,v){var t=l.y,E=l.x,H=!1,B=!1;if(null!=this.states&&null!=c&&null!=l){var d=this,g=new mxCellState,k=this.graph.getView().scale,m=Math.max(2,this.getGuideTolerance()/2);g.x=c.x+E;g.y=c.y+t;g.width=c.width;g.height=c.height;for(var u=[],x=[],A=0;A<this.states.length;A++){var I=this.states[A];I instanceof mxCellState&&(v||!this.graph.isCellSelected(I.cell))&&((g.x>=I.x&&g.x<=I.x+I.width||I.x>=g.x&&I.x<=g.x+g.width)&&(g.y>
+I.y+I.height+4||g.y+g.height+4<I.y)?u.push(I):(g.y>=I.y&&g.y<=I.y+I.height||I.y>=g.y&&I.y<=g.y+g.height)&&(g.x>I.x+I.width+4||g.x+g.width+4<I.x)&&x.push(I))}var F=0,C=0,P=I=0,R=0,U=0,O=0,V=0,q=5*k;if(1<u.length){u.push(g);u.sort(function(L,K){return L.y-K.y});var y=!1;A=g==u[0];k=g==u[u.length-1];if(!A&&!k)for(A=1;A<u.length-1;A++)if(g==u[A]){k=u[A-1];A=u[A+1];I=C=P=(A.y-k.y-k.height-g.height)/2;break}for(A=0;A<u.length-1;A++){k=u[A];var D=u[A+1],J=g==k||g==D;D=D.y-k.y-k.height;y|=g==k;if(0==C&&0==
+F)C=D,F=1;else if(Math.abs(C-D)<=(J||1==A&&y?m:0))F+=1;else if(1<F&&y){u=u.slice(0,A+1);break}else if(3<=u.length-A&&!y)F=0,I=C=0!=P?P:0,u.splice(0,0==A?1:A),A=-1;else break;0!=I||J||(C=I=D)}3==u.length&&u[1]==g&&(I=0)}if(1<x.length){x.push(g);x.sort(function(L,K){return L.x-K.x});y=!1;A=g==x[0];k=g==x[x.length-1];if(!A&&!k)for(A=1;A<x.length-1;A++)if(g==x[A]){k=x[A-1];A=x[A+1];O=U=V=(A.x-k.x-k.width-g.width)/2;break}for(A=0;A<x.length-1;A++){k=x[A];D=x[A+1];J=g==k||g==D;D=D.x-k.x-k.width;y|=g==k;
+if(0==U&&0==R)U=D,R=1;else if(Math.abs(U-D)<=(J||1==A&&y?m:0))R+=1;else if(1<R&&y){x=x.slice(0,A+1);break}else if(3<=x.length-A&&!y)R=0,O=U=0!=V?V:0,x.splice(0,0==A?1:A),A=-1;else break;0!=O||J||(U=O=D)}3==x.length&&x[1]==g&&(O=0)}m=function(L,K,n,z){var G=[];if(z){z=q;var M=0}else z=0,M=q;G.push(new mxPoint(L.x-z,L.y-M));G.push(new mxPoint(L.x+z,L.y+M));G.push(L);G.push(K);G.push(new mxPoint(K.x-z,K.y-M));G.push(new mxPoint(K.x+z,K.y+M));if(null!=n)return n.points=G,n;L=new mxPolyline(G,mxConstants.GUIDE_COLOR,
+mxConstants.GUIDE_STROKEWIDTH);L.dialect=mxConstants.DIALECT_SVG;L.pointerEvents=!1;L.init(d.graph.getView().getOverlayPane());return L};U=function(L,K){if(L&&null!=d.guidesArrHor)for(L=0;L<d.guidesArrHor.length;L++)d.guidesArrHor[L].node.style.visibility="hidden";if(K&&null!=d.guidesArrVer)for(L=0;L<d.guidesArrVer.length;L++)d.guidesArrVer[L].node.style.visibility="hidden"};if(1<R&&R==x.length-1){R=[];V=d.guidesArrHor;H=[];E=0;A=x[0]==g?1:0;y=x[A].y+x[A].height;if(0<O)for(A=0;A<x.length-1;A++)k=
+x[A],D=x[A+1],g==k?(E=D.x-k.width-O,H.push(new mxPoint(E+k.width+q,y)),H.push(new mxPoint(D.x-q,y))):g==D?(H.push(new mxPoint(k.x+k.width+q,y)),E=k.x+k.width+O,H.push(new mxPoint(E-q,y))):(H.push(new mxPoint(k.x+k.width+q,y)),H.push(new mxPoint(D.x-q,y)));else k=x[0],A=x[2],E=k.x+k.width+(A.x-k.x-k.width-g.width)/2,H.push(new mxPoint(k.x+k.width+q,y)),H.push(new mxPoint(E-q,y)),H.push(new mxPoint(E+g.width+q,y)),H.push(new mxPoint(A.x-q,y));for(A=0;A<H.length;A+=2)x=H[A],O=H[A+1],x=m(x,O,null!=V?
+V[A/2]:null),x.node.style.visibility="visible",x.redraw(),R.push(x);for(A=H.length/2;null!=V&&A<V.length;A++)V[A].destroy();d.guidesArrHor=R;E-=c.x;H=!0}else U(!0);if(1<F&&F==u.length-1){R=[];V=d.guidesArrVer;B=[];t=0;A=u[0]==g?1:0;F=u[A].x+u[A].width;if(0<I)for(A=0;A<u.length-1;A++)k=u[A],D=u[A+1],g==k?(t=D.y-k.height-I,B.push(new mxPoint(F,t+k.height+q)),B.push(new mxPoint(F,D.y-q))):g==D?(B.push(new mxPoint(F,k.y+k.height+q)),t=k.y+k.height+I,B.push(new mxPoint(F,t-q))):(B.push(new mxPoint(F,k.y+
+k.height+q)),B.push(new mxPoint(F,D.y-q)));else k=u[0],A=u[2],t=k.y+k.height+(A.y-k.y-k.height-g.height)/2,B.push(new mxPoint(F,k.y+k.height+q)),B.push(new mxPoint(F,t-q)),B.push(new mxPoint(F,t+g.height+q)),B.push(new mxPoint(F,A.y-q));for(A=0;A<B.length;A+=2)x=B[A],O=B[A+1],x=m(x,O,null!=V?V[A/2]:null,!0),x.node.style.visibility="visible",x.redraw(),R.push(x);for(A=B.length/2;null!=V&&A<V.length;A++)V[A].destroy();d.guidesArrVer=R;t-=c.y;B=!0}else U(!1,!0)}if(H||B)return g=new mxPoint(E,t),u=b.call(this,
+c,g,p,v),H&&!B?g.y=u.y:B&&!H&&(g.x=u.x),u.y!=g.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),u.x!=g.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),g;U(!0,!0);return b.apply(this,arguments)};var e=mxGuide.prototype.setVisible;mxGuide.prototype.setVisible=function(c){e.call(this,c);var l=this.guidesArrVer,p=this.guidesArrHor;if(null!=l)for(var v=0;v<l.length;v++)l[v].node.style.visibility=c?"visible":"hidden";if(null!=
+p)for(v=0;v<p.length;v++)p[v].node.style.visibility=c?"visible":"hidden"};var f=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){f.call(this);var c=this.guidesArrVer,l=this.guidesArrHor;if(null!=c){for(var p=0;p<c.length;p++)c[p].destroy();this.guidesArrVer=null}if(null!=l){for(p=0;p<l.length;p++)l[p].destroy();this.guidesArrHor=null}}})();function mxRuler(b,e,f,c){function l(){var F=b.getDiagramContainerOffset(),C=b.diagramContainer;d.style.top=C.offsetTop-F.y+"px";d.style.left=C.offsetLeft-F.x+"px";d.style.width=(f?0:C.offsetWidth)+E+"px";d.style.height=(f?C.offsetHeight:0)+E+"px"}function p(F,C,P){if(null!=v)return F;var R;return function(){var U=this,O=arguments,V=P&&!R;clearTimeout(R);R=setTimeout(function(){R=null;P||F.apply(U,O)},C);V&&F.apply(U,O)}}var v=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
+window.msRequestAnimationFrame,t=window.cancelAnimationFrame||window.mozCancelAnimationFrame,E=this.RULER_THICKNESS,H=this;this.unit=e;var B=Editor.isDarkMode()?{bkgClr:"#202020",outBkgClr:"#1B1D1E",cornerClr:"#1B1D1E",strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{bkgClr:"#ffffff",outBkgClr:"#f1f3f4",cornerClr:"#f1f3f4",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"},d=document.createElement("div");d.className="geRuler";d.style.position="fixed";this.updateStyle=mxUtils.bind(this,
+function(){B=Editor.isDarkMode()?{outBkgClr:"#1B1D1E",cornerClr:"#1B1D1E",strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#f1f3f4",cornerClr:"#f1f3f4",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};d.style[f?"borderRight":"borderBottom"]="0.5px solid "+B.strokeClr;d.style.borderLeft="0.5px solid "+B.strokeClr});this.updateStyle();b.diagramContainer.appendChild(d);mxEvent.disableContextMenu(d);this.editorUiRefresh=b.refresh;b.refresh=function(F){H.editorUiRefresh.apply(b,
+arguments);l()};l();var g=document.createElement("canvas");g.width=d.offsetWidth;g.height=d.offsetHeight;d.style.overflow="hidden";g.style.position="relative";d.appendChild(g);var k=g.getContext("2d");this.ui=b;var m=b.editor.graph;this.graph=m;this.container=d;this.canvas=g;var u=function(F,C,P,R,U){F=Math.round(F);C=Math.round(C);P=Math.round(P);R=Math.round(R);k.beginPath();k.moveTo(F+.5,C+.5);k.lineTo(P+.5,R+.5);k.stroke();U&&(f?(k.save(),k.translate(F,C),k.rotate(-Math.PI/2),k.fillText(U,0,0),
+k.restore()):k.fillText(U,F,C))},x=function(){k.clearRect(0,0,g.width,g.height);k.beginPath();k.lineWidth=.7;k.strokeStyle=B.strokeClr;k.setLineDash([]);k.font="9px Arial";k.textAlign="center";var F=m.view.scale,C=m.view.getBackgroundPageBounds(),P=m.view.translate,R=m.pageVisible;P=R?E+(f?C.y-m.container.scrollTop:C.x-m.container.scrollLeft):E+(f?P.y*F-m.container.scrollTop:P.x*F-m.container.scrollLeft);var U=0;R&&(U=m.getPageLayout(),U=f?U.y*m.pageFormat.height:U.x*m.pageFormat.width);var O;switch(H.unit){case mxConstants.POINTS:var V=
+O=10;var q=[3,5,5,5,5,10,5,5,5,5];break;case mxConstants.MILLIMETERS:O=10;V=mxConstants.PIXELS_PER_MM;q=[5,3,3,3,3,6,3,3,3,3];break;case mxConstants.METERS:O=20;V=mxConstants.PIXELS_PER_MM;q=[5,3,3,3,3,6,3,3,3,3,10,3,3,3,3,6,3,3,3,3];break;case mxConstants.INCHES:O=.5>=F||4<=F?8:16,V=mxConstants.PIXELS_PER_INCH/O,q=[5,3,5,3,7,3,5,3,7,3,5,3,7,3,5,3]}var y=V;2<=F?y=V/(2*Math.floor(F/2)):.5>=F&&(y=V*Math.floor(1/F/2)*(H.unit==mxConstants.MILLIMETERS?2:1));V=null;C=R?Math.min(P+(f?C.height:C.width),f?
+g.height:g.width):f?g.height:g.width;if(R)if(k.fillStyle=B.outBkgClr,f){var D=P-E;0<D&&k.fillRect(0,E,E,D);C<g.height&&k.fillRect(0,C,E,g.height)}else D=P-E,0<D&&k.fillRect(E,0,D,E),C<g.width&&k.fillRect(C,0,g.width,E);k.fillStyle=B.fontClr;for(R=R?P:P%(y*F);R<=C;R+=y*F)if(D=Math.round((R-P)/F/y),!(R<E||D==V)){V=D;var J=null;0==D%O&&(J=H.formatText(U+D*y)+"");f?u(E-q[Math.abs(D)%O],R,E,R,J):u(R,E-q[Math.abs(D)%O],R,E,J)}k.lineWidth=1;u(f?0:E,f?E:0,E,E);k.fillStyle=B.cornerClr;k.fillRect(0,0,E,E)},
+A=-1,I=function(){null!=v?(null!=t&&t(A),A=v(x)):x()};this.drawRuler=I;this.sizeListener=e=p(function(){var F=m.container;f?(F=F.offsetHeight+E,g.height!=F&&(g.height=F,d.style.height=F+"px",I())):(F=F.offsetWidth+E,g.width!=F&&(g.width=F,d.style.width=F+"px",I()))},10);this.pageListener=function(){I()};this.scrollListener=c=p(function(){var F=f?m.container.scrollTop:m.container.scrollLeft;H.lastScroll!=F&&(H.lastScroll=F,I())},10);this.unitListener=function(F,C){H.setUnit(C.getProperty("unit"))};
+m.addListener(mxEvent.SIZE,e);m.container.addEventListener("scroll",c);m.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(F){B=F;d.style.background=B.bkgClr;x()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(F,C,P,R){if(f&&4<F.height||!f&&4<F.width){if(null!=H.guidePart)try{k.putImageData(H.guidePart.imgData1,
+H.guidePart.x1,H.guidePart.y1),k.putImageData(H.guidePart.imgData2,H.guidePart.x2,H.guidePart.y2),k.putImageData(H.guidePart.imgData3,H.guidePart.x3,H.guidePart.y3)}catch(z){}var U=H.origGuideMove.apply(this,arguments);try{k.lineWidth=.5;k.strokeStyle=B.guideClr;k.setLineDash([2]);if(f){var O=F.y+U.y+E-this.graph.container.scrollTop;var V=0;var q=O+F.height/2;var y=E/2;var D=O+F.height;var J=0;var L=k.getImageData(V,O-1,E,3);u(V,O,E,O);O--;var K=k.getImageData(y,q-1,E,3);u(y,q,E,q);q--;var n=k.getImageData(J,
+D-1,E,3);u(J,D,E,D);D--}else O=0,V=F.x+U.x+E-this.graph.container.scrollLeft,q=E/2,y=V+F.width/2,D=0,J=V+F.width,L=k.getImageData(V-1,O,3,E),u(V,O,V,E),V--,K=k.getImageData(y-1,q,3,E),u(y,q,y,E),y--,n=k.getImageData(J-1,D,3,E),u(J,D,J,E),J--;if(null==H.guidePart||H.guidePart.x1!=V||H.guidePart.y1!=O)H.guidePart={imgData1:L,x1:V,y1:O,imgData2:K,x2:y,y2:q,imgData3:n,x3:J,y3:D}}catch(z){}}else U=H.origGuideMove.apply(this,arguments);return U};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=
+function(){var F=H.origGuideDestroy.apply(this,arguments);if(null!=H.guidePart)try{k.putImageData(H.guidePart.imgData1,H.guidePart.x1,H.guidePart.y1),k.putImageData(H.guidePart.imgData2,H.guidePart.x2,H.guidePart.y2),k.putImageData(H.guidePart.imgData3,H.guidePart.x3,H.guidePart.y3),H.guidePart=null}catch(C){}return F}}mxRuler.prototype.RULER_THICKNESS=14;mxRuler.prototype.unit=mxConstants.POINTS;mxRuler.prototype.setUnit=function(b){this.unit=b;this.drawRuler()};
mxRuler.prototype.formatText=function(b){switch(this.unit){case mxConstants.POINTS:return Math.round(b);case mxConstants.MILLIMETERS:return(b/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(b/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(b/mxConstants.PIXELS_PER_INCH).toFixed(2)}};
mxRuler.prototype.destroy=function(){this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.graph.removeListener(this.sizeListener);this.graph.container.removeEventListener("scroll",this.scrollListener);this.graph.view.removeListener(this.unitListener);this.ui.removeListener(this.pageListener);null!=this.container&&this.container.parentNode.removeChild(this.container)};
function mxDualRuler(b,e){var f=new mxPoint(mxRuler.prototype.RULER_THICKNESS,mxRuler.prototype.RULER_THICKNESS);this.editorUiGetDiagContOffset=b.getDiagramContainerOffset;b.getDiagramContainerOffset=function(){return f};this.editorUiRefresh=b.refresh;this.ui=b;this.origGuideMove=mxGuide.prototype.move;this.origGuideDestroy=mxGuide.prototype.destroy;this.vRuler=new mxRuler(b,e,!0);this.hRuler=new mxRuler(b,e,!1,!0);e=mxUtils.bind(this,function(c){var l=!1;mxEvent.addGestureListeners(c,mxUtils.bind(this,
-function(p){l=null!=b.currentMenu;mxEvent.consume(p)}),null,mxUtils.bind(this,function(p){if(b.editor.graph.isEnabled()&&!b.editor.graph.isMouseDown&&(mxEvent.isTouchEvent(p)||mxEvent.isPopupTrigger(p))){b.editor.graph.popupMenuHandler.hideMenu();b.hideCurrentMenu();if(!mxEvent.isTouchEvent(p)||!l){var q=new mxPopupMenu(mxUtils.bind(this,function(G,B){b.menus.addMenuItems(G,["points","inches","millimeters","meters"],B)}));q.smartSeparators=!0;q.showDisabled=!0;q.autoExpand=!0;q.hideMenu=mxUtils.bind(this,
-function(){mxPopupMenu.prototype.hideMenu.apply(q,arguments);b.resetCurrentMenu();q.destroy()});var v=mxEvent.getClientX(p),D=mxEvent.getClientY(p);q.popup(v,D,null,p);b.setCurrentMenu(q,c)}mxEvent.consume(p)}}))});e(this.hRuler.container);e(this.vRuler.container);this.vRuler.drawRuler();this.hRuler.drawRuler()}mxDualRuler.prototype.updateStyle=function(){this.vRuler.updateStyle();this.hRuler.updateStyle();this.vRuler.drawRuler();this.hRuler.drawRuler()};
-mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var e=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=e){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var f=mxFreehand.prototype.MILD_SMOOTHING,c=null,l=[],p,q=[],v,D=!1,G=!0,B=!0,d=!0,g=!0,k=[],m=!1,t=!1,y=!1,z="default",I={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},F=!0;this.setClosedPath=function(x){D=x};this.setAutoClose=function(x){G=x};this.setAutoInsert=
-function(x){B=x};this.setAutoScroll=function(x){d=x};this.setOpenFill=function(x){g=x};this.setStopClickEnabled=function(x){t=x};this.setSelectInserted=function(x){y=x};this.setSmoothing=function(x){f=x};this.getSmoothing=function(){return f};this.setPerfectFreehandMode=function(x){F=x};this.isPerfectFreehandMode=function(){return F};this.setBrushSize=function(x){I.size=x};this.getBrushSize=function(){return I.size};var C=function(x){m=x;b.getRubberband().setEnabled(!x);b.graphHandler.setSelectEnabled(!x);
-b.graphHandler.setMoveEnabled(!x);b.container.style.cursor=x?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){C(!0)};this.isDrawing=function(){return m};var Q=mxUtils.bind(this,function(x){if(c){var J=v.length,H=t&&0<q.length&&null!=v&&2>v.length;H||q.push.apply(q,v);v=[];q.push(null);l.push(c);c=null;(H||B)&&this.stopDrawing();B&&(!H||2<=J)&&this.startDrawing();mxEvent.consume(x)}}),S=new mxCell;S.edge=!0;this.getStrokeColor=function(x){var J=null!=
-z?z:mxUtils.getValue(b.currentVertexStyle,mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(b.getCurrentCellStyle(S),mxConstants.STYLE_STROKECOLOR,"#000"));"default"!=J||x||(J=b.shapeForegroundColor);return J};this.setStrokeColor=function(x){z=x};this.createStyle=function(x){var J=";fillColor=none;";F&&(J=";lineShape=1;");J+="strokeColor="+this.getStrokeColor(!0)+";";return mxConstants.STYLE_SHAPE+"="+x+J};this.stopDrawing=function(){if(0<l.length){if(F){for(var x=[],J=0;J<q.length;J++)null!=q[J]&&x.push([q[J].x,
-q[J].y]);x=PerfectFreehand.getStroke(x,I);q=[];for(J=0;J<x.length;J++)q.push({x:x[J][0],y:x[J][1]});q.push(null)}x=q[0].x;var H=q[0].x,K=q[0].y,N=q[0].y;for(J=1;J<q.length;J++)null!=q[J]&&(x=Math.max(x,q[J].x),H=Math.min(H,q[J].x),K=Math.max(K,q[J].y),N=Math.min(N,q[J].y));x-=H;K-=N;if(0<x&&0<K){var M=100/x,n=100/K;q.map(function(R){if(null==R)return R;R.x=(R.x-H)*M;R.y=(R.y-N)*n;return R});var A='<shape strokewidth="inherit"><foreground>',E=0;for(J=0;J<q.length;J++){var L=q[J];if(null==L){L=!1;E=
-q[E];var O=q[J-1];!D&&G&&(L=E.x-O.x,O=E.y-O.y,L=Math.sqrt(L*L+O*O)<=b.tolerance);if(D||L)A+='<line x="'+E.x.toFixed(2)+'" y="'+E.y.toFixed(2)+'"/>';A+="</path>"+(g||D||L?"<fillstroke/>":"<stroke/>");E=J+1}else A=J==E?A+('<path><move x="'+L.x.toFixed(2)+'" y="'+L.y.toFixed(2)+'"/>'):A+('<line x="'+L.x.toFixed(2)+'" y="'+L.y.toFixed(2)+'"/>')}A+="</foreground></shape>";if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){J=this.createStyle("stencil("+Graph.compress(A)+")");A=b.view.scale;E=b.view.translate;
-J=new mxCell("",new mxGeometry(H/A-E.x,N/A-E.y,x/A,K/A),J);J.vertex=1;b.model.beginUpdate();try{J=b.addCell(J),b.fireEvent(new mxEventObject("cellsInserted","cells",[J])),b.fireEvent(new mxEventObject("freehandInserted","cell",J))}finally{b.model.endUpdate()}y&&b.setSelectionCells([J])}}for(J=0;J<l.length;J++)l[J].parentNode.removeChild(l[J]);c=null;l=[];q=[]}C(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(x,J){x=J.getProperty("eventName");J=J.getProperty("event");x==mxEvent.MOUSE_MOVE&&
-m&&(null!=J.sourceState&&J.sourceState.setCursor("crosshair"),J.consume())}));b.addMouseListener({mouseDown:mxUtils.bind(this,function(x,J){if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(x=J.getEvent(),m&&!mxEvent.isPopupTrigger(x)&&!mxEvent.isMiddleMouseButton(x)&&!mxEvent.isMultiTouchEvent(x))){var H=parseFloat(b.currentVertexStyle[mxConstants.STYLE_STROKEWIDTH]||1);H=Math.max(1,H*b.view.scale);var K=this.getStrokeColor();c=document.createElementNS("http://www.w3.org/2000/svg","path");
-c.setAttribute("fill",F?K:"none");c.setAttribute("pointer-events","none");c.setAttribute("stroke",K);c.setAttribute("stroke-width",H);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(K=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3",K=K.split(" ").map(function(N){return parseFloat(N)*H}).join(" "),c.setAttribute("stroke-dasharray",K));k=[];x=V(x);P(x);p="M"+x.x+" "+x.y;q.push(x);v=[];c.setAttribute("d",F?PerfectFreehand.getSvgPathFromStroke([[x.x,x.y]],I):p);e.appendChild(c);J.consume()}}),
-mouseMove:mxUtils.bind(this,function(x,J){if(null!=c&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){x=J.getEvent();x=V(x);P(x);var H=u(0);if(H)if(q.push(H),F){var K=[];for(H=0;H<q.length;H++)K.push([q[H].x,q[H].y]);v=[];for(var N=2;N<k.length;N+=2)H=u(N),K.push([H.x,H.y]),v.push(H);c.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(K,I))}else{p+=" L"+H.x+" "+H.y;K="";v=[];for(N=2;N<k.length;N+=2)H=u(N),K+=" L"+H.x+" "+H.y,v.push(H);c.setAttribute("d",p+K)}d&&(H=b.view.translate,b.scrollRectToVisible((new mxRectangle(x.x-
-H.x,x.y-H.y)).grow(20)));J.consume()}}),mouseUp:mxUtils.bind(this,function(x,J){null!=c&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(Q(J.getEvent()),J.consume())})});var V=function(x){return mxUtils.convertPoint(b.container,mxEvent.getClientX(x),mxEvent.getClientY(x))},P=function(x){for(k.push(x);k.length>f;)k.shift()},u=function(x){var J=k.length;if(1===J%2||J>=f){var H=0,K=0,N,M=0;for(N=x;N<J;N++)M++,x=k[N],H+=x.x,K+=x.y;return{x:H/M,y:K/M}}return null}}}
-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;function P2PCollab(b,e,f){function c(E,L){try{if(!u){var O=e.file.getCurrentUser();if(P&&null!=O&&null!=O.displayName){var R={from:C,id:t,type:E,sessionId:e.clientId,userId:O.id,username:O.displayName,data:L,protocol:DrawioFileSync.PROTOCOL,editor:EditorUi.VERSION};R={bytes:e.objectToString(R),data:"aes"};R=JSON.stringify(R);x&&"cursor"!=E&&EditorUi.debug("P2PCollab: sending to socket server",[R]);t++;O=!x&&("cursor"==E||"selectionChange"==E);V&&!O&&N("message",R);if(O)for(p2pId in S)S[p2pId].send(R)}}}catch(T){null!=
-window.console&&console.error(T,E,L)}}function l(E){if(b.shareCursorPosition&&!B.isMouseDown){var L=mxUtils.getOffset(B.container),O=B.view.translate,R=B.view.scale,T=null!=b.currentPage?b.currentPage.getId():null;c("cursor",{pageId:T,x:Math.round((E.getX()-L.x+B.container.scrollLeft)/R-O.x),y:Math.round((E.getY()-L.y+B.container.scrollTop)/R-O.y)})}}function p(E,L){var O=null!=b.currentPage?b.currentPage.getId():null;if(null!=E&&null!=E.cursor&&null!=E.lastCursor)if(null!=E.lastCursor.hide||!b.isShowRemoteCursors()||
-null!=E.lastCursor.pageId&&E.lastCursor.pageId!=O)E.cursor.style.display="none";else{O=function(){var Y=Math.max(B.container.scrollLeft,Math.min(B.container.scrollLeft+B.container.clientWidth-E.cursor.clientWidth,U)),Z=Math.max(B.container.scrollTop-22,Math.min(B.container.scrollTop+B.container.clientHeight-E.cursor.clientHeight,W));X.style.opacity=Y!=U||Z!=W?0:1;E.cursor.style.left=Y+"px";E.cursor.style.top=Z+"px";E.cursor.style.display=""};var R=B.view.translate,T=B.view.scale,U=(R.x+E.lastCursor.x)*
-T+8,W=(R.y+E.lastCursor.y)*T-12,X=E.cursor.getElementsByTagName("img")[0];L?(mxUtils.setPrefixedStyle(E.cursor.style,"transition","all 900ms ease-out"),mxUtils.setPrefixedStyle(X.style,"transition","all 900ms ease-out"),window.setTimeout(O,0)):(mxUtils.setPrefixedStyle(E.cursor.style,"transition",null),mxUtils.setPrefixedStyle(X.style,"transition",null),O())}}function q(E,L){try{var O=function(){if(null==m[T]){var ia=F[T];null==ia&&(ia=d%k.length,F[T]=ia,d++);var ba=k[ia];ia=11<ia?"black":"white";
-m[T]={cursor:document.createElement("div"),color:ba,selection:{}};z[L]=T;U=m[T].cursor;U.style.pointerEvents="none";U.style.position="absolute";U.style.display="none";U.style.opacity="0.9";var fa=document.createElement("img");mxUtils.setPrefixedStyle(fa.style,"transform","rotate(-45deg)translateX(-14px)");fa.setAttribute("src",Graph.createSvgImage(8,12,'<path d="M 4 0 L 8 12 L 4 10 L 0 12 Z" stroke="'+ba+'" fill="'+ba+'"/>').src);fa.style.width="10px";U.appendChild(fa);fa=document.createElement("div");
-fa.style.backgroundColor=ba;fa.style.color=ia;fa.style.fontSize="9pt";fa.style.padding="3px 7px";fa.style.marginTop="8px";fa.style.borderRadius="10px";fa.style.maxWidth="100px";fa.style.overflow="hidden";fa.style.textOverflow="ellipsis";fa.style.whiteSpace="nowrap";mxUtils.write(fa,R);U.appendChild(fa);b.diagramContainer.appendChild(U)}else U=m[T].cursor;W=m[T].selection};if(!u){E=JSON.parse(E);null!=E.bytes&&(E=e.stringToObject(E.bytes));x&&"cursor"!=E.type&&EditorUi.debug("P2PCollab: msg received",
-[E]);if(null!=L){if(E.from==C||y[E.from]>=E.id){EditorUi.debug("P2PCollab: Dropped Message",E,C,y[E.from]);return}y[E.from]=E.id}var R=E.username?E.username:"Anonymous",T=E.sessionId,U,W;null!=m[T]&&(clearTimeout(m[T].inactiveTO),m[T].inactiveTO=setTimeout(function(){D(null,T)},12E4));var X=E.data;switch(E.type){case "cursor":O();m[T].lastCursor=X;p(m[T],!0);break;case "diff":try{E=null!=X.patch?e.stringToObject(decodeURIComponent(X.patch)):X.diff,e.receiveRemoteChanges(E.d)}catch(ia){EditorUi.debug("P2PCollab: Diff msg error",
-ia)}break;case "selectionChange":if("0"!=urlParams["remote-selection"]){var Y=null!=b.currentPage?b.currentPage.getId():null;if(null==Y||null!=X.pageId&&X.pageId==Y){O();for(O=0;O<X.removed.length;O++){var Z=X.removed[O];if(null!=Z){var ca=W[Z];delete W[Z];null!=ca&&ca.destroy()}}for(O=0;O<X.added.length;O++)if(Z=X.added[O],null!=Z){var ea=B.model.getCell(Z);null!=ea&&(W[Z]=B.highlightCell(ea,m[T].color,6E4,70,3))}}}break;case "notify":E=null!=X.data?e.stringToObject(decodeURIComponent(X.data)):X.msg,
-e.handleMessageData(E.d)}e.file.fireEvent(new mxEventObject("realtimeMessage","message",E))}}catch(ia){null!=window.console&&console.warn(ia,E,L)}}function v(E,L){if(!x&&SimplePeer.WEBRTC_SUPPORT){var O=new SimplePeer({initiator:L,config:{iceServers:[{urls:"stun:54.89.235.160:3478"}]}});O.on("signal",function(R){N("sendSignal",{to:E,from:C,signal:R})});O.on("error",function(R){delete Q[E];EditorUi.debug("P2PCollab: p2p socket error",R);!u&&L&&O.destroyed&&I[E]&&(EditorUi.debug("P2PCollab: p2p socket reconnecting",
-E),v(E,!0))});O.on("connect",function(){delete Q[E];null==S[E]||S[E].destroyed?(S[E]=O,I[E]=!0,EditorUi.debug("P2PCollab: p2p socket connected",E)):(O.noP2PMapDel=!0,O.destroy(),EditorUi.debug("P2PCollab: p2p socket duplicate",E))});O.on("close",function(){O.noP2PMapDel||(EditorUi.debug("P2PCollab: p2p socket closed",E),G(z[E]),delete S[E])});O.on("data",q);return Q[E]=O}}function D(E,L){G(L||z[E]);null!=E&&(delete z[E],I[E]=!1)}function G(E){var L=m[E];if(null!=L){var O=L.selection,R;for(R in O)null!=
-O[R]&&O[R].destroy();null!=L.cursor&&null!=L.cursor.parentNode&&L.cursor.parentNode.removeChild(L.cursor);clearTimeout(L.inactiveTO);delete m[E]}}var B=b.editor.graph,d=0,g=null,k="#e6194b #3cb44b #4363d8 #f58231 #911eb4 #f032e6 #469990 #9A6324 #800000 #808000 #000075 #a9a9a9 #ffe119 #42d4f4 #bfef45 #fabed4 #dcbeff #fffac8 #aaffc3 #ffd8b1".split(" "),m={},t=1,y={},z={},I={},F={},C,Q={},S={},V=!0,P=!1,u=!1,x="0"!=urlParams["no-p2p"],J=!1,H=0,K=null,N=mxUtils.bind(this,function(E,L){if(!u)try{null!=
-g?(g.send(JSON.stringify({action:E,msg:L})),x||EditorUi.debug("P2PCollab: sending to socket server",[E],[L])):this.joinFile(!0)}catch(O){K=O,e.file.fireEvent(new mxEventObject("realtimeStateChanged")),EditorUi.debug("P2PCollab:","sendReply error",arguments,O)}});this.sendMessage=c;this.sendDiff=function(E){this.sendMessage("diff",{diff:E})};this.sendNotification=function(E){this.sendMessage("notify",{msg:E})};this.getState=function(){return null!=g?g.readyState:3};this.getLastError=function(){return K};
-this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(E,L){},mouseMove:function(E,L){var O,R=-1;return function(){clearTimeout(O);var T=this,U=arguments,W=function(){O=null;R=Date.now();E.apply(T,U)};Date.now()-R>L?W():O=setTimeout(W,L)}}(function(E,L){l(L)},300),mouseUp:function(E,L){l(L)}};B.addMouseListener(this.mouseListeners);this.shareCursorPositionListener=function(){b.isShareCursorPosition()||c("cursor",{hide:!0})};b.addListener("shareCursorPositionChanged",this.shareCursorPositionListener);
-var M=mxGraphHandler.prototype.maxCells,n=null,A={};this.selectionChangeListener=function(E,L){var O=function(R){return null!=R?R.id:null};null!=n&&window.clearTimeout(n);n=window.setTimeout(function(){for(var R=B.getSelectionCount()>M?[]:B.getSelectionCells().map(O),T=null!=b.currentPage?b.currentPage.getId():null,U={},W=[],X=[],Y=0;Y<R.length;Y++){var Z=R[Y];null!=Z&&(U[Z]=!0,null==A[Z]&&X.push(Z))}for(Z in A)U[Z]||W.push(Z);A=U;c("selectionChange",{pageId:T,removed:W,added:X})},300)};B.getSelectionModel().addListener(mxEvent.CHANGE,
-this.selectionChangeListener);this.cursorHandler=mxUtils.bind(this,function(){for(var E in m)p(m[E])});mxEvent.addListener(B.container,"scroll",this.cursorHandler);B.getView().addListener(mxEvent.SCALE,this.cursorHandler);B.getView().addListener(mxEvent.TRANSLATE,this.cursorHandler);B.getView().addListener(mxEvent.SCALE_AND_TRANSLATE,this.cursorHandler);b.addListener("showRemoteCursorsChanged",this.cursorHandler);b.editor.addListener("pageSelected",this.cursorHandler);this.joinFile=function(E){if(!u)try{J&&
-(EditorUi.debug("P2PCollab: joinInProgress on",J),K="busy");J=++H;try{null!=g&&1==g.readyState&&(EditorUi.debug("P2PCollab: force closing socket on",g.joinId),g.close(1E3),g=null)}catch(R){EditorUi.debug("P2PCollab: closing socket error",R)}var L=new WebSocket(window.RT_WEBSOCKET_URL+"?id="+f);null==g&&(g=L);L.addEventListener("open",function(R){g=L;g.joinId=J;J=!1;e.file.fireEvent(new mxEventObject("realtimeStateChanged"));EditorUi.debug("P2PCollab: open socket",g.joinId);Editor.enableRealtimeCache||
-window.setTimeout(function(){e.sendJoinMessage()},0);E&&e.scheduleCleanup()});L.addEventListener("message",function(R){try{x||EditorUi.debug("P2PCollab: msg received",[R]);var T=JSON.parse(R.data);x&&"message"!=T.action&&EditorUi.debug("P2PCollab: msg received",[R]);switch(T.action){case "message":q(T.msg,T.from);break;case "clientsList":var U=T.msg;C=U.cId;P=!0;for(T=0;T<U.list.length;T++)v(U.list[T],!0);break;case "signal":var W=T.msg;if(!x){if(Q[W.from])var X=Q[W.from];else X=v(W.from,!1),V=!0;
-X.signal(W.signal)}break;case "newClient":V=!0;break;case "clientLeft":D(T.msg);break;case "sendSignalFailed":var Y=T.msg;EditorUi.debug("P2PCollab: signal failed (socket not found on server)",Y);delete Q[Y.to];I[Y.to]=!1}}catch(Z){null!=window.console&&console.warn(Z,R)}});var O=!1;L.addEventListener("close",mxUtils.bind(this,function(R){EditorUi.debug("P2PCollab: WebSocket closed",L.joinId,"reconnecting",R.code,R.reason);EditorUi.debug("P2PCollab: closing socket on",L.joinId);u||1E3==R.code||H!=
-L.joinId||(J==H&&(EditorUi.debug("P2PCollab: joinInProgress in close on",L.joinId),J=!1),O||(EditorUi.debug("P2PCollab: calling rejoin on",L.joinId),window.setTimeout(mxUtils.bind(this,function(){O=!0;this.joinFile(!0)}),500)));e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));L.addEventListener("error",mxUtils.bind(this,function(R){EditorUi.debug("P2PCollab: WebSocket error, reconnecting",R);EditorUi.debug("P2PCollab: error socket on",L.joinId);u||H!=L.joinId||(J==H&&(EditorUi.debug("P2PCollab: joinInProgress in error on",
-L.joinId),J=!1),O||(EditorUi.debug("P2PCollab: calling rejoin on",L.joinId),O=!0,this.joinFile(!0)));e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}catch(R){K=R,e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}};this.destroy=function(){if(!u){EditorUi.debug("P2PCollab: destroyed");u=!0;for(sessionId in m)G(sessionId);null!=this.mouseListeners&&B.removeMouseListener(this.mouseListeners);null!=this.selectionChangeListener&&
-B.getSelectionModel().removeListener(this.selectionChangeListener);null!=this.shareCursorPositionListener&&b.removeListener(this.shareCursorPositionListener);null!=this.cursorHandler&&(mxEvent.removeListener(B.container,"scroll",this.cursorHandler),B.view.removeListener(this.cursorHandler),b.editor.removeListener(this.cursorHandler),b.removeListener(this.cursorHandler));null!=g&&1<=g.readyState&&(g.close(1E3),g=null);for(var E in S)null!=S[E]&&S[E].destroy();e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}}}
+function(p){l=null!=b.currentMenu;mxEvent.consume(p)}),null,mxUtils.bind(this,function(p){if(b.editor.graph.isEnabled()&&!b.editor.graph.isMouseDown&&(mxEvent.isTouchEvent(p)||mxEvent.isPopupTrigger(p))){b.editor.graph.popupMenuHandler.hideMenu();b.hideCurrentMenu();if(!mxEvent.isTouchEvent(p)||!l){var v=new mxPopupMenu(mxUtils.bind(this,function(H,B){b.menus.addMenuItems(H,["points","inches","millimeters","meters"],B)}));v.smartSeparators=!0;v.showDisabled=!0;v.autoExpand=!0;v.hideMenu=mxUtils.bind(this,
+function(){mxPopupMenu.prototype.hideMenu.apply(v,arguments);b.resetCurrentMenu();v.destroy()});var t=mxEvent.getClientX(p),E=mxEvent.getClientY(p);v.popup(t,E,null,p);b.setCurrentMenu(v,c)}mxEvent.consume(p)}}))});e(this.hRuler.container);e(this.vRuler.container);this.vRuler.drawRuler();this.hRuler.drawRuler()}mxDualRuler.prototype.updateStyle=function(){this.vRuler.updateStyle();this.hRuler.updateStyle();this.vRuler.drawRuler();this.hRuler.drawRuler()};
+mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var e=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=e){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var f=mxFreehand.prototype.MILD_SMOOTHING,c=null,l=[],p,v=[],t,E=!1,H=!0,B=!0,d=!0,g=!0,k=[],m=!1,u=!1,x=!1,A="default",I={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},F=!0;this.setClosedPath=function(q){E=q};this.setAutoClose=function(q){H=q};this.setAutoInsert=
+function(q){B=q};this.setAutoScroll=function(q){d=q};this.setOpenFill=function(q){g=q};this.setStopClickEnabled=function(q){u=q};this.setSelectInserted=function(q){x=q};this.setSmoothing=function(q){f=q};this.getSmoothing=function(){return f};this.setPerfectFreehandMode=function(q){F=q};this.isPerfectFreehandMode=function(){return F};this.setBrushSize=function(q){I.size=q};this.getBrushSize=function(){return I.size};var C=function(q){m=q;b.getRubberband().setEnabled(!q);b.graphHandler.setSelectEnabled(!q);
+b.graphHandler.setMoveEnabled(!q);b.container.style.cursor=q?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){C(!0)};this.isDrawing=function(){return m};var P=mxUtils.bind(this,function(q){if(c){var y=t.length,D=u&&0<v.length&&null!=t&&2>t.length;D||v.push.apply(v,t);t=[];v.push(null);l.push(c);c=null;(D||B)&&this.stopDrawing();B&&(!D||2<=y)&&this.startDrawing();mxEvent.consume(q)}}),R=new mxCell;R.edge=!0;this.getStrokeColor=function(q){var y=null!=
+A?A:mxUtils.getValue(b.currentVertexStyle,mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(b.getCurrentCellStyle(R),mxConstants.STYLE_STROKECOLOR,"#000"));"default"!=y||q||(y=b.shapeForegroundColor);return y};this.setStrokeColor=function(q){A=q};this.createStyle=function(q){var y=";fillColor=none;";F&&(y=";lineShape=1;");y+="strokeColor="+this.getStrokeColor(!0)+";";return mxConstants.STYLE_SHAPE+"="+q+y};this.stopDrawing=function(){if(0<l.length){if(F){for(var q=[],y=0;y<v.length;y++)null!=v[y]&&q.push([v[y].x,
+v[y].y]);q=PerfectFreehand.getStroke(q,I);v=[];for(y=0;y<q.length;y++)v.push({x:q[y][0],y:q[y][1]});v.push(null)}q=v[0].x;var D=v[0].x,J=v[0].y,L=v[0].y;for(y=1;y<v.length;y++)null!=v[y]&&(q=Math.max(q,v[y].x),D=Math.min(D,v[y].x),J=Math.max(J,v[y].y),L=Math.min(L,v[y].y));q-=D;J-=L;if(0<q&&0<J){var K=100/q,n=100/J;v.map(function(Q){if(null==Q)return Q;Q.x=(Q.x-D)*K;Q.y=(Q.y-L)*n;return Q});var z='<shape strokewidth="inherit"><foreground>',G=0;for(y=0;y<v.length;y++){var M=v[y];if(null==M){M=!1;G=
+v[G];var N=v[y-1];!E&&H&&(M=G.x-N.x,N=G.y-N.y,M=Math.sqrt(M*M+N*N)<=b.tolerance);if(E||M)z+='<line x="'+G.x.toFixed(2)+'" y="'+G.y.toFixed(2)+'"/>';z+="</path>"+(g||E||M?"<fillstroke/>":"<stroke/>");G=y+1}else z=y==G?z+('<path><move x="'+M.x.toFixed(2)+'" y="'+M.y.toFixed(2)+'"/>'):z+('<line x="'+M.x.toFixed(2)+'" y="'+M.y.toFixed(2)+'"/>')}z+="</foreground></shape>";if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){y=this.createStyle("stencil("+Graph.compress(z)+")");z=b.view.scale;G=b.view.translate;
+y=new mxCell("",new mxGeometry(D/z-G.x,L/z-G.y,q/z,J/z),y);y.vertex=1;b.model.beginUpdate();try{y=b.addCell(y),b.fireEvent(new mxEventObject("cellsInserted","cells",[y])),b.fireEvent(new mxEventObject("freehandInserted","cell",y))}finally{b.model.endUpdate()}x&&b.setSelectionCells([y])}}for(y=0;y<l.length;y++)l[y].parentNode.removeChild(l[y]);c=null;l=[];v=[]}C(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(q,y){q=y.getProperty("eventName");y=y.getProperty("event");q==mxEvent.MOUSE_MOVE&&
+m&&(null!=y.sourceState&&y.sourceState.setCursor("crosshair"),y.consume())}));b.addMouseListener({mouseDown:mxUtils.bind(this,function(q,y){if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(q=y.getEvent(),m&&!mxEvent.isPopupTrigger(q)&&!mxEvent.isMiddleMouseButton(q)&&!mxEvent.isMultiTouchEvent(q))){var D=parseFloat(b.currentVertexStyle[mxConstants.STYLE_STROKEWIDTH]||1);D=Math.max(1,D*b.view.scale);var J=this.getStrokeColor();c=document.createElementNS("http://www.w3.org/2000/svg","path");
+c.setAttribute("fill",F?J:"none");c.setAttribute("pointer-events","none");c.setAttribute("stroke",J);c.setAttribute("stroke-width",D);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(J=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3",J=J.split(" ").map(function(L){return parseFloat(L)*D}).join(" "),c.setAttribute("stroke-dasharray",J));k=[];q=U(q);O(q);p="M"+q.x+" "+q.y;v.push(q);t=[];c.setAttribute("d",F?PerfectFreehand.getSvgPathFromStroke([[q.x,q.y]],I):p);e.appendChild(c);y.consume()}}),
+mouseMove:mxUtils.bind(this,function(q,y){if(null!=c&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){q=y.getEvent();q=U(q);O(q);var D=V(0);if(D)if(v.push(D),F){var J=[];for(D=0;D<v.length;D++)J.push([v[D].x,v[D].y]);t=[];for(var L=2;L<k.length;L+=2)D=V(L),J.push([D.x,D.y]),t.push(D);c.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(J,I))}else{p+=" L"+D.x+" "+D.y;J="";t=[];for(L=2;L<k.length;L+=2)D=V(L),J+=" L"+D.x+" "+D.y,t.push(D);c.setAttribute("d",p+J)}d&&(D=b.view.translate,b.scrollRectToVisible((new mxRectangle(q.x-
+D.x,q.y-D.y)).grow(20)));y.consume()}}),mouseUp:mxUtils.bind(this,function(q,y){null!=c&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(P(y.getEvent()),y.consume())})});var U=function(q){return mxUtils.convertPoint(b.container,mxEvent.getClientX(q),mxEvent.getClientY(q))},O=function(q){for(k.push(q);k.length>f;)k.shift()},V=function(q){var y=k.length;if(1===y%2||y>=f){var D=0,J=0,L,K=0;for(L=q;L<y;L++)K++,q=k[L],D+=q.x,J+=q.y;return{x:D/K,y:J/K}}return null}}}
+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;function P2PCollab(b,e,f){function c(G,M){try{if(!V){var N=e.file.getCurrentUser();if(O&&null!=N&&null!=N.displayName){var Q={from:C,id:u,type:G,sessionId:e.clientId,userId:N.id,username:N.displayName,data:M,protocol:DrawioFileSync.PROTOCOL,editor:EditorUi.VERSION};Q={bytes:e.objectToString(Q),data:"aes"};Q=JSON.stringify(Q);q&&"cursor"!=G&&EditorUi.debug("P2PCollab: sending to socket server",[Q]);u++;N=!q&&("cursor"==G||"selectionChange"==G);U&&!N&&L("message",Q);if(N)for(p2pId in R)R[p2pId].send(Q)}}}catch(S){null!=
+window.console&&console.error(S,G,M)}}function l(G){if(b.shareCursorPosition&&!B.isMouseDown){var M=mxUtils.getOffset(B.container),N=B.view.translate,Q=B.view.scale,S=null!=b.currentPage?b.currentPage.getId():null;c("cursor",{pageId:S,x:Math.round((G.getX()-M.x+B.container.scrollLeft)/Q-N.x),y:Math.round((G.getY()-M.y+B.container.scrollTop)/Q-N.y)})}}function p(G,M){var N=null!=b.currentPage?b.currentPage.getId():null;if(null!=G&&null!=G.cursor&&null!=G.lastCursor)if(null!=G.lastCursor.hide||!b.isShowRemoteCursors()||
+null!=G.lastCursor.pageId&&G.lastCursor.pageId!=N)G.cursor.style.display="none";else{N=function(){var Z=Math.max(B.container.scrollLeft,Math.min(B.container.scrollLeft+B.container.clientWidth-G.cursor.clientWidth,T)),Y=Math.max(B.container.scrollTop-22,Math.min(B.container.scrollTop+B.container.clientHeight-G.cursor.clientHeight,W));X.style.opacity=Z!=T||Y!=W?0:1;G.cursor.style.left=Z+"px";G.cursor.style.top=Y+"px";G.cursor.style.display=""};var Q=B.view.translate,S=B.view.scale,T=(Q.x+G.lastCursor.x)*
+S+8,W=(Q.y+G.lastCursor.y)*S-12,X=G.cursor.getElementsByTagName("img")[0];M?(mxUtils.setPrefixedStyle(G.cursor.style,"transition","all 900ms ease-out"),mxUtils.setPrefixedStyle(X.style,"transition","all 900ms ease-out"),window.setTimeout(N,0)):(mxUtils.setPrefixedStyle(G.cursor.style,"transition",null),mxUtils.setPrefixedStyle(X.style,"transition",null),N())}}function v(G,M){try{var N=function(){if(null==m[S]){var ia=F[S];null==ia&&(ia=d%k.length,F[S]=ia,d++);var ca=k[ia];ia=11<ia?"black":"white";
+m[S]={cursor:document.createElement("div"),color:ca,selection:{}};A[M]=S;T=m[S].cursor;T.style.pointerEvents="none";T.style.position="absolute";T.style.display="none";T.style.opacity="0.9";var fa=document.createElement("img");mxUtils.setPrefixedStyle(fa.style,"transform","rotate(-45deg)translateX(-14px)");fa.setAttribute("src",Graph.createSvgImage(8,12,'<path d="M 4 0 L 8 12 L 4 10 L 0 12 Z" stroke="'+ca+'" fill="'+ca+'"/>').src);fa.style.width="10px";T.appendChild(fa);fa=document.createElement("div");
+fa.style.backgroundColor=ca;fa.style.color=ia;fa.style.fontSize="9pt";fa.style.padding="3px 7px";fa.style.marginTop="8px";fa.style.borderRadius="10px";fa.style.maxWidth="100px";fa.style.overflow="hidden";fa.style.textOverflow="ellipsis";fa.style.whiteSpace="nowrap";mxUtils.write(fa,Q);T.appendChild(fa);b.diagramContainer.appendChild(T)}else T=m[S].cursor;W=m[S].selection};if(!V){G=JSON.parse(G);null!=G.bytes&&(G=e.stringToObject(G.bytes));q&&"cursor"!=G.type&&EditorUi.debug("P2PCollab: msg received",
+[G]);if(null!=M){if(G.from==C||x[G.from]>=G.id){EditorUi.debug("P2PCollab: Dropped Message",G,C,x[G.from]);return}x[G.from]=G.id}var Q=G.username?G.username:"Anonymous",S=G.sessionId,T,W;null!=m[S]&&(clearTimeout(m[S].inactiveTO),m[S].inactiveTO=setTimeout(function(){E(null,S)},12E4));var X=G.data;switch(G.type){case "cursor":N();m[S].lastCursor=X;p(m[S],!0);break;case "diff":try{G=null!=X.patch?e.stringToObject(decodeURIComponent(X.patch)):X.diff,e.receiveRemoteChanges(G.d)}catch(ia){EditorUi.debug("P2PCollab: Diff msg error",
+ia)}break;case "selectionChange":if("0"!=urlParams["remote-selection"]){var Z=null!=b.currentPage?b.currentPage.getId():null;if(null==Z||null!=X.pageId&&X.pageId==Z){N();for(N=0;N<X.removed.length;N++){var Y=X.removed[N];if(null!=Y){var ba=W[Y];delete W[Y];null!=ba&&ba.destroy()}}for(N=0;N<X.added.length;N++)if(Y=X.added[N],null!=Y){var da=B.model.getCell(Y);null!=da&&(W[Y]=B.highlightCell(da,m[S].color,6E4,70,3))}}}break;case "notify":G=null!=X.data?e.stringToObject(decodeURIComponent(X.data)):X.msg,
+e.handleMessageData(G.d)}e.file.fireEvent(new mxEventObject("realtimeMessage","message",G))}}catch(ia){null!=window.console&&console.warn(ia,G,M)}}function t(G,M){if(!q&&SimplePeer.WEBRTC_SUPPORT){var N=new SimplePeer({initiator:M,config:{iceServers:[{urls:"stun:54.89.235.160:3478"}]}});N.on("signal",function(Q){L("sendSignal",{to:G,from:C,signal:Q})});N.on("error",function(Q){delete P[G];EditorUi.debug("P2PCollab: p2p socket error",Q);!V&&M&&N.destroyed&&I[G]&&(EditorUi.debug("P2PCollab: p2p socket reconnecting",
+G),t(G,!0))});N.on("connect",function(){delete P[G];null==R[G]||R[G].destroyed?(R[G]=N,I[G]=!0,EditorUi.debug("P2PCollab: p2p socket connected",G)):(N.noP2PMapDel=!0,N.destroy(),EditorUi.debug("P2PCollab: p2p socket duplicate",G))});N.on("close",function(){N.noP2PMapDel||(EditorUi.debug("P2PCollab: p2p socket closed",G),H(A[G]),delete R[G])});N.on("data",v);return P[G]=N}}function E(G,M){H(M||A[G]);null!=G&&(delete A[G],I[G]=!1)}function H(G){var M=m[G];if(null!=M){var N=M.selection,Q;for(Q in N)null!=
+N[Q]&&N[Q].destroy();null!=M.cursor&&null!=M.cursor.parentNode&&M.cursor.parentNode.removeChild(M.cursor);clearTimeout(M.inactiveTO);delete m[G]}}var B=b.editor.graph,d=0,g=null,k="#e6194b #3cb44b #4363d8 #f58231 #911eb4 #f032e6 #469990 #9A6324 #800000 #808000 #000075 #a9a9a9 #ffe119 #42d4f4 #bfef45 #fabed4 #dcbeff #fffac8 #aaffc3 #ffd8b1".split(" "),m={},u=1,x={},A={},I={},F={},C,P={},R={},U=!0,O=!1,V=!1,q="0"!=urlParams["no-p2p"],y=!1,D=0,J=null,L=mxUtils.bind(this,function(G,M){if(!V)try{null!=
+g?(g.send(JSON.stringify({action:G,msg:M})),q||EditorUi.debug("P2PCollab: sending to socket server",[G],[M])):this.joinFile(!0)}catch(N){J=N,e.file.fireEvent(new mxEventObject("realtimeStateChanged")),EditorUi.debug("P2PCollab:","sendReply error",arguments,N)}});this.sendMessage=c;this.sendDiff=function(G){this.sendMessage("diff",{diff:G})};this.sendNotification=function(G){this.sendMessage("notify",{msg:G})};this.getState=function(){return null!=g?g.readyState:3};this.getLastError=function(){return J};
+this.mouseListeners={startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(G,M){},mouseMove:function(G,M){var N,Q=-1;return function(){clearTimeout(N);var S=this,T=arguments,W=function(){N=null;Q=Date.now();G.apply(S,T)};Date.now()-Q>M?W():N=setTimeout(W,M)}}(function(G,M){l(M)},300),mouseUp:function(G,M){l(M)}};B.addMouseListener(this.mouseListeners);this.shareCursorPositionListener=function(){b.isShareCursorPosition()||c("cursor",{hide:!0})};b.addListener("shareCursorPositionChanged",this.shareCursorPositionListener);
+var K=mxGraphHandler.prototype.maxCells,n=null,z={};this.selectionChangeListener=function(G,M){var N=function(Q){return null!=Q?Q.id:null};null!=n&&window.clearTimeout(n);n=window.setTimeout(function(){for(var Q=B.getSelectionCount()>K?[]:B.getSelectionCells().map(N),S=null!=b.currentPage?b.currentPage.getId():null,T={},W=[],X=[],Z=0;Z<Q.length;Z++){var Y=Q[Z];null!=Y&&(T[Y]=!0,null==z[Y]&&X.push(Y))}for(Y in z)T[Y]||W.push(Y);z=T;c("selectionChange",{pageId:S,removed:W,added:X})},300)};B.getSelectionModel().addListener(mxEvent.CHANGE,
+this.selectionChangeListener);this.cursorHandler=mxUtils.bind(this,function(){for(var G in m)p(m[G])});mxEvent.addListener(B.container,"scroll",this.cursorHandler);B.getView().addListener(mxEvent.SCALE,this.cursorHandler);B.getView().addListener(mxEvent.TRANSLATE,this.cursorHandler);B.getView().addListener(mxEvent.SCALE_AND_TRANSLATE,this.cursorHandler);b.addListener("showRemoteCursorsChanged",this.cursorHandler);b.editor.addListener("pageSelected",this.cursorHandler);this.joinFile=function(G){if(!V)try{y&&
+(EditorUi.debug("P2PCollab: joinInProgress on",y),J="busy");y=++D;try{null!=g&&1==g.readyState&&(EditorUi.debug("P2PCollab: force closing socket on",g.joinId),g.close(1E3),g=null)}catch(Q){EditorUi.debug("P2PCollab: closing socket error",Q)}var M=new WebSocket(window.RT_WEBSOCKET_URL+"?id="+f);null==g&&(g=M);M.addEventListener("open",function(Q){g=M;g.joinId=y;y=!1;e.file.fireEvent(new mxEventObject("realtimeStateChanged"));EditorUi.debug("P2PCollab: open socket",g.joinId);Editor.enableRealtimeCache||
+window.setTimeout(function(){e.sendJoinMessage()},0);G&&e.scheduleCleanup()});M.addEventListener("message",function(Q){try{q||EditorUi.debug("P2PCollab: msg received",[Q]);var S=JSON.parse(Q.data);q&&"message"!=S.action&&EditorUi.debug("P2PCollab: msg received",[Q]);switch(S.action){case "message":v(S.msg,S.from);break;case "clientsList":var T=S.msg;C=T.cId;O=!0;for(S=0;S<T.list.length;S++)t(T.list[S],!0);break;case "signal":var W=S.msg;if(!q){if(P[W.from])var X=P[W.from];else X=t(W.from,!1),U=!0;
+X.signal(W.signal)}break;case "newClient":U=!0;break;case "clientLeft":E(S.msg);break;case "sendSignalFailed":var Z=S.msg;EditorUi.debug("P2PCollab: signal failed (socket not found on server)",Z);delete P[Z.to];I[Z.to]=!1}}catch(Y){null!=window.console&&console.warn(Y,Q)}});var N=!1;M.addEventListener("close",mxUtils.bind(this,function(Q){EditorUi.debug("P2PCollab: WebSocket closed",M.joinId,"reconnecting",Q.code,Q.reason);EditorUi.debug("P2PCollab: closing socket on",M.joinId);V||1E3==Q.code||D!=
+M.joinId||(y==D&&(EditorUi.debug("P2PCollab: joinInProgress in close on",M.joinId),y=!1),N||(EditorUi.debug("P2PCollab: calling rejoin on",M.joinId),window.setTimeout(mxUtils.bind(this,function(){N=!0;this.joinFile(!0)}),500)));e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));M.addEventListener("error",mxUtils.bind(this,function(Q){EditorUi.debug("P2PCollab: WebSocket error, reconnecting",Q);EditorUi.debug("P2PCollab: error socket on",M.joinId);V||D!=M.joinId||(y==D&&(EditorUi.debug("P2PCollab: joinInProgress in error on",
+M.joinId),y=!1),N||(EditorUi.debug("P2PCollab: calling rejoin on",M.joinId),N=!0,this.joinFile(!0)));e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}));e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}catch(Q){J=Q,e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}};this.destroy=function(){if(!V){EditorUi.debug("P2PCollab: destroyed");V=!0;for(sessionId in m)H(sessionId);null!=this.mouseListeners&&B.removeMouseListener(this.mouseListeners);null!=this.selectionChangeListener&&
+B.getSelectionModel().removeListener(this.selectionChangeListener);null!=this.shareCursorPositionListener&&b.removeListener(this.shareCursorPositionListener);null!=this.cursorHandler&&(mxEvent.removeListener(B.container,"scroll",this.cursorHandler),B.view.removeListener(this.cursorHandler),b.editor.removeListener(this.cursorHandler),b.removeListener(this.cursorHandler));null!=g&&1<=g.readyState&&(g.close(1E3),g=null);for(var G in R)null!=R[G]&&R[G].destroy();e.file.fireEvent(new mxEventObject("realtimeStateChanged"))}}}
;
diff --git a/src/main/webapp/js/integrate.min.js b/src/main/webapp/js/integrate.min.js
index e67a68429..5fd347ad5 100644
--- a/src/main/webapp/js/integrate.min.js
+++ b/src/main/webapp/js/integrate.min.js
@@ -62,7 +62,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url
"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");
"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";
window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";
-window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.2.8",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.2.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/"),
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||
@@ -2097,7 +2097,7 @@ this.gestureHandler);var W=null;this.resizeHandler=mxUtils.bind(this,function(){
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(){g.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){g.view.validateBackground()}));g.addListener("gridSizeChanged",mxUtils.bind(this,function(){g.isGridEnabled()&&g.view.validateBackground()}));
this.editor.resetGraph()}this.init();g.standalone||this.open()};EditorUi.compactUi=!0;
EditorUi.parsePng=function(a,b,e){function f(m,q){var k=d;d+=q;return m.substring(k,d)}function g(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=g(a);var h=f(a,4);if(null!=b&&b(d-8,h,e))break;value=f(a,e);f(a,4);if("IEND"==h)break}while(e)}};mxUtils.extend(EditorUi,mxEventSource);
-EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?218:230);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.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?220:230);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,
"keydown",mxUtils.bind(this,function(f){this.onKeyDown(f)}));mxEvent.addListener(a.container,"keypress",mxUtils.bind(this,function(f){this.onKeyPress(f)}));this.addUndoListener();this.addBeforeUnloadListener();a.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));a.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));var b=a.setDefaultParent,e=this;this.editor.graph.setDefaultParent=function(){b.apply(this,
@@ -2283,8 +2283,8 @@ EditorUi.prototype.createMenuElement=function(a,b,e){var f=document.createElemen
EditorUi.prototype.addMenuHandler=function(a,b,e){if(null!=b){var f=!0,g=mxUtils.bind(this,function(d){null!=e&&e(d);if(!mxEvent.isConsumed(d)&&f&&(null==a.enabled||a.enabled)){this.editor.graph.popupMenuHandler.hideMenu();var h=new mxPopupMenu(b);h.smartSeparators=!0;h.showDisabled=!0;h.autoExpand=!0;h.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(h,arguments);this.resetCurrentMenu();h.destroy()});this.menus.autoPopup||null==this.currentMenu||this.hideCurrentMenu();var m=
mxUtils.getOffset(a);h.popup(m.x,m.y+a.offsetHeight,null,d);this.setCurrentMenu(h,a)}mxEvent.consume(d)});mxEvent.addListener(a,"mousemove",mxUtils.bind(this,function(d){if(this.menus.autoPopup&&null!=this.currentMenu&&this.currentMenuElt!=a&&null!=this.currentMenuElt){var h=this.currentMenuElt;this.hideCurrentMenu();h.parentNode==a.parentNode&&"INPUT"!=a.nodeName&&g(d)}}));mxEvent.addListener(a,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(d){!this.menus.autoPopup&&null!=
this.currentMenu&&this.currentMenuElt!=a&&mxEvent.isMouseEvent(d)&&this.hideCurrentMenu();f=null==this.currentMenu;"INPUT"!=mxEvent.getSource(d).nodeName?d.preventDefault():d.stopPropagation()}));mxEvent.addListener(a,"click",mxUtils.bind(this,function(d){g(d);f=!0}))}};
-EditorUi.prototype.createZoomInput=function(a){var b=document.createElement("input");b.className="geButton geZoomInput";b.style.backgroundImage="url("+Editor.thinExpandImage+")";b.setAttribute("type","text");b.setAttribute("value","100%");var e=this.menus.get("viewZoom");this.dependsOnLanguage(mxUtils.bind(this,function(){b.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)")}));a&&b.setAttribute("readonly","true");var f=!1;mxEvent.addGestureListeners(b,mxUtils.bind(this,function(g){f=
-!1;mxClient.IS_TOUCH||mxEvent.getSource(g)!=b||document.activeElement==b||(b.focus(),mxClient.IS_GC||mxClient.IS_FF?b.select():document.execCommand("selectAll",!1,null),f=!0)}),mxUtils.bind(this,function(g){mxEvent.getSource(g)==b&&f&&mxEvent.consume(g)}),mxUtils.bind(this,function(g){f&&(mxEvent.consume(g),f=!1)}));this.addMenuHandler(b,e.funct);mxUtils.bind(this,function(g){mxEvent.addListener(g,"click",mxUtils.bind(this,function(h){mxEvent.isAltDown(h)?(this.hideCurrentMenu(),this.actions.get("customZoom").funct(),
+EditorUi.prototype.createZoomInput=function(a){var b=document.createElement("input");b.className="geButton geZoomInput";b.style.backgroundImage="url("+Editor.thinExpandImage+")";b.setAttribute("type","text");b.setAttribute("value","100%");var e=this.menus.get("viewZoom");this.dependsOnLanguage(mxUtils.bind(this,function(){b.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)")}));(a||mxClient.IS_TOUCH)&&b.setAttribute("readonly","true");var f=!1;mxEvent.addGestureListeners(b,mxUtils.bind(this,
+function(g){f=!1;mxClient.IS_TOUCH||mxEvent.getSource(g)!=b||document.activeElement==b||(b.focus(),mxClient.IS_GC||mxClient.IS_FF?b.select():document.execCommand("selectAll",!1,null),f=!0)}),mxUtils.bind(this,function(g){mxEvent.getSource(g)==b&&f&&mxEvent.consume(g)}),mxUtils.bind(this,function(g){f&&(mxEvent.consume(g),f=!1)}));this.addMenuHandler(b,e.funct);mxUtils.bind(this,function(g){mxEvent.addListener(g,"click",mxUtils.bind(this,function(h){mxEvent.isAltDown(h)?(this.hideCurrentMenu(),this.actions.get("customZoom").funct(),
mxEvent.consume(h)):mxEvent.isShiftDown(h)&&(this.hideCurrentMenu(),this.actions.get("smartFit").funct(),mxEvent.consume(h))}));var d=mxUtils.bind(this,function(h,m,q){b.value=Math.round(100*this.editor.graph.view.scale*(null!=q?q:1))+"%";document.activeElement==b&&this.editor.graph.container.focus()});mxEvent.addListener(b,"keydown",mxUtils.bind(this,function(h){if(27==h.keyCode||13==h.keyCode||9==h.keyCode)27==h.keyCode||isNaN(parseInt(b.value))?d():this.editor.graph.zoomTo(parseInt(b.value)/100),
this.hideCurrentMenu(),mxEvent.consume(h)}));this.editor.graph.view.addListener(mxEvent.EVENT_SCALE,d);this.editor.addListener("resetGraphView",d);this.editor.addListener("pageSelected",d);mxEvent.addListener(b,"blur",d);this.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(h,m){d(h,m,m.getProperty("factor"))}))})(b);return b};
EditorUi.prototype.createHelpIcon=function(a,b){b=document.createElement("img");b.setAttribute("src",Editor.helpImage);b.setAttribute("title",mxResources.get("help"));b.className="geHelpIcon";mxEvent.addGestureListeners(b,mxUtils.bind(this,function(e){this.hideCurrentMenu();this.openLink(a);mxEvent.consume(e)}));return b};
@@ -3836,7 +3836,7 @@ Sidebar.prototype.aws4="Arrows;General Resources;Illustrations;Groups;Analytics;
Sidebar.prototype.office="Clouds Communications Concepts Databases Devices Security Servers Services Sites Users".split(" ");Sidebar.prototype.openstack=["Blue","Grey","Green","Red"];Sidebar.prototype.veeam="Data Center;Misc;Software;Storage;UsersStatus;VASComponents;Backup Replication;Products;VMs and Tape;2D;3D".split(";");Sidebar.prototype.veeam2="Auxiliary;Data Center;Features;General;Products and Components;Software;States;Storage;3D".split(";");Sidebar.prototype.archimate3="Application;Business;Generic;Implementation and Migration;Motivation;Relationships;Strategy;Technology".split(";");
Sidebar.prototype.electrical="LogicGates Resistors Capacitors Inductors SwitchesRelays Diodes Sources Transistors Misc Audio PlcLadder Abstract Optical VacuumTubes Waveforms Instruments RotMech Transmission".split(" ");Sidebar.prototype.customEntries=null;Sidebar.prototype.appendCustomLibraries=!1;Sidebar.prototype.enabledLibraries=null;Sidebar.prototype.maxPreloadCount=20;Sidebar.prototype.configuration=[{id:"general",libs:["general","misc","advanced"]},{id:"uml"},{id:"uml25"},{id:"search"},{id:"er"},
{id:"alibaba_cloud"},{id:"azure2",prefix:"azure2",libs:"AI Machine Learning;Analytics;App Services;Azure Ecosystem;Azure Stack;Azure VMware Solution;Blockchain;Compute;Containers;CXP;Databases;DevOps;General;Hybrid and Multicloud;Identity;Integration;Intune;IoT;Management Governance;Menu;Migrate;Mixed Reality;Mobile;Monitor;Networking;Other;Power Platform;Preview;Security;Storage;Web".split(";")},{id:"dynamics365",prefix:"dynamics365",libs:["App","Mixed Reality","Product Family","Sub App"]},{id:"ios",
-prefix:"ios",libs:["","7icons","7ui"]},{id:"android",prefix:"android",libs:[""]},{id:"aws3d"},{id:"flowchart"},{id:"basic"},{id:"infographic"},{id:"arrows"},{id:"arrows2"},{id:"lean_mapping"},{id:"citrix"},{id:"azure"},{id:"network"},{id:"vvd"},{id:"sitemap"},{id:"c4"},{id:"dfd"},{id:"threatModeling"},{id:"kubernetes"},{id:"cisco19",prefix:"cisco19",libs:Sidebar.prototype.cisco19},{id:"citrix2",prefix:"citrix2",libs:"Authentication;Cloud Services;Components;Locations;NetScaler;Networking;Resources;Users and Devices".split(";")},
+prefix:"ios",libs:["","7icons","7ui"]},{id:"android",prefix:"android",libs:[""]},{id:"aws3d"},{id:"flowchart"},{id:"basic"},{id:"infographic"},{id:"arrows"},{id:"arrows2"},{id:"lean_mapping"},{id:"citrix"},{id:"azure"},{id:"network"},{id:"network2"},{id:"vvd"},{id:"sitemap"},{id:"c4"},{id:"dfd"},{id:"threatModeling"},{id:"kubernetes"},{id:"cisco19",prefix:"cisco19",libs:Sidebar.prototype.cisco19},{id:"citrix2",prefix:"citrix2",libs:"Authentication;Cloud Services;Components;Locations;NetScaler;Networking;Resources;Users and Devices".split(";")},
{id:"mscae",prefix:"mscae",libs:"Companies;EnterpriseFlat;IntuneFlat;OMSFlat;System CenterFlat;AI and ML Service;Analytics Service;Compute Service;Compute Service VM;Container Service;Databases Service;DevOps Service;General Service;Identity Service;Integration Service;Internet of Things Service;Intune Service;Management and Governance Service;Management and Governance Service Media;Migrate Service;Mixed Reality Service;Mobile Service;Networking Service;Other Category Service;Security Service;Storage Service;Web Service".split(";")},
{id:"active_directory"},{id:"bpmn2",prefix:"bpmn2",libs:["General","Tasks","Choreographies","Events","Gateways"]},{id:"clipart",prefix:null,libs:"computer finance clipart networking people telco".split(" ")},{id:"ibm",prefix:"ibm",libs:Sidebar.prototype.ibm},{id:"ibm_cloud",prefix:"ibm_cloud",libs:Sidebar.prototype.ibm_cloud},{id:"allied_telesis",prefix:"allied_telesis",libs:Sidebar.prototype.allied_telesis},{id:"cumulus",libs:["cumulus"]},{id:"eip",prefix:"eip",libs:Sidebar.prototype.eip},{id:"mockups",
prefix:"mockup",libs:"Buttons Containers Forms Graphics Markup Misc Navigation Text".split(" ")},{id:"pid2",prefix:"pid2",libs:"Agitators;Apparatus Elements;Centrifuges;Compressors;Compressors ISO;Crushers Grinding;Driers;Engines;Feeders;Filters;Fittings;Flow Sensors;Heat Exchangers;Instruments;Misc;Mixers;Piping;Pumps;Pumps DIN;Pumps ISO;Separators;Shaping Machines;Valves;Vessels".split(";")},{id:"salesforce",prefix:"salesforce",libs:["Components","Product","Platform","Industry"]},{id:"signs",prefix:"signs",
@@ -3855,32 +3855,32 @@ id:"bootstrap",image:IMAGE_PATH+"/sidebar-bootstrap.png"},{title:"C4",id:"c4",im
{title:"Salesforce",id:"salesforce",image:IMAGE_PATH+"/sidebar-salesforce.png"},{title:mxResources.get("uml")+" 2.5",id:"uml25",image:IMAGE_PATH+"/sidebar-uml25.png"},{title:mxResources.get("uml"),id:"uml",image:IMAGE_PATH+"/sidebar-uml.png"}]},{title:mxResources.get("networking"),entries:[{title:"Alibaba Cloud",id:"alibaba_cloud",image:IMAGE_PATH+"/sidebar-alibaba_cloud.png"},{title:"Allied Telesis",id:"allied_telesis",image:IMAGE_PATH+"/sidebar-allied_telesis.png"},{title:"AWS17",id:"aws3",image:IMAGE_PATH+
"/sidebar-aws3.png"},{title:"AWS18",id:"aws4b",image:IMAGE_PATH+"/sidebar-aws4b.png"},{title:"AWS "+k,id:"aws4",image:IMAGE_PATH+"/sidebar-aws4.png"},{title:mxResources.get("aws3d"),id:"aws3d",image:IMAGE_PATH+"/sidebar-aws3d.png"},{title:mxResources.get("azure"),id:"azure2",image:IMAGE_PATH+"/sidebar-azure.png"},{title:"Cloud & Enterprise",id:"mscae",image:IMAGE_PATH+"/sidebar-mscae.png"},{title:mxResources.get("cisco"),id:"cisco",image:IMAGE_PATH+"/sidebar-cisco.png"},{title:"Cisco19",id:"cisco19",
image:IMAGE_PATH+"/sidebar-cisco19.png"},{title:"Cisco Safe",id:"cisco_safe",image:IMAGE_PATH+"/sidebar-cisco_safe.png"},{title:"Cumulus",id:"cumulus",image:IMAGE_PATH+"/sidebar-cumulus.png"},{title:"Citrix",id:"citrix2",image:IMAGE_PATH+"/sidebar-citrix2.png"},{title:"Citrix (legacy)",id:"citrix",image:IMAGE_PATH+"/sidebar-citrix.png"},{title:"Dynamics365",id:"dynamics365",image:IMAGE_PATH+"/sidebar-dynamics365.png"},{title:"Google Cloud Platform",id:"gcp2",image:IMAGE_PATH+"/sidebar-gcp2.png"},
-{title:"GCP Icons",id:"gcpicons",image:IMAGE_PATH+"/sidebar-gcpicons.png"},{title:"IBM",id:"ibm",image:IMAGE_PATH+"/sidebar-ibm.png"},{title:"IBM Cloud",id:"ibm_cloud",image:IMAGE_PATH+"/sidebar-ibmcloud.png"},{title:"Kubernetes",id:"kubernetes",image:IMAGE_PATH+"/sidebar-kubernetes.png"},{title:"Network",id:"network",image:IMAGE_PATH+"/sidebar-network.png"},{title:"Office",id:"office",image:IMAGE_PATH+"/sidebar-office.png"},{title:"OpenStack",id:"openstack",image:IMAGE_PATH+"/sidebar-openstack.png"},
-{title:mxResources.get("rack"),id:"rack",image:IMAGE_PATH+"/sidebar-rack.png"},{title:"SAP",id:"sap",image:IMAGE_PATH+"/sidebar-sap.png"},{title:"Veeam",id:"veeam2",image:IMAGE_PATH+"/sidebar-veeam.png"},{title:"VMware",id:"vvd",image:IMAGE_PATH+"/sidebar-vvd.png"}]},{title:mxResources.get("business"),entries:[{title:"ArchiMate 3.2",id:"archimate3",image:IMAGE_PATH+"/sidebar-archimate3.png"},{title:mxResources.get("archiMate21"),id:"archimate",image:IMAGE_PATH+"/sidebar-archimate.png"},{title:mxResources.get("bpmn")+
-" 2.0",id:"bpmn2",image:IMAGE_PATH+"/sidebar-bpmn.png"},{title:mxResources.get("sysml"),id:"sysml",image:IMAGE_PATH+"/sidebar-sysml.png"},{title:"Value Stream Mapping",id:"lean_mapping",image:IMAGE_PATH+"/sidebar-leanmapping.png"}]},{title:mxResources.get("other"),entries:[{title:mxResources.get("cabinets"),id:"cabinets",image:IMAGE_PATH+"/sidebar-cabinets.png"},{title:"Infographic",id:"infographic",image:IMAGE_PATH+"/sidebar-infographic.png"},{title:mxResources.get("eip"),id:"eip",image:IMAGE_PATH+
-"/sidebar-eip.png"},{title:mxResources.get("electrical"),id:"electrical",image:IMAGE_PATH+"/sidebar-electrical.png"},{title:mxResources.get("floorplans"),id:"floorplan",image:IMAGE_PATH+"/sidebar-floorplans.png"},{title:"Fluid Power (ISO 1219)",id:"fluid_power",image:IMAGE_PATH+"/sidebar-fluid_power.png"},{title:mxResources.get("gmdl"),id:"gmdl",image:IMAGE_PATH+"/sidebar-gmdl.png"},{title:mxResources.get("procEng"),id:"pid",image:IMAGE_PATH+"/sidebar-pid.png"},{title:"Threat Modeling",id:"threatModeling",
-image:IMAGE_PATH+"/sidebar-threatmodeling.png"},{title:"Web Icons",id:"webicons",image:IMAGE_PATH+"/sidebar-webIcons.png"},{title:mxResources.get("signs"),id:"signs",image:IMAGE_PATH+"/sidebar-signs.png"}]}]};"1"==urlParams.savesidebar&&(Sidebar.prototype.addFoldingHandler=function(h,k,l){var m=!1;h.style.backgroundImage="none"==k.style.display?"url('"+Editor.arrowRightImage+"')":"url('"+Editor.arrowDownImage+"')";var n=document.createElement("button");n.style.marginLeft="4px";mxUtils.write(n,"Save");
-mxEvent.addListener(h,"click",mxUtils.bind(this,function(p){if("BUTTON"==mxEvent.getSource(p).nodeName){p=k.getElementsByTagName("svg");var q=68*Math.ceil(p.length/6)+36,t=Graph.createSvgNode(0,0,432,q,mxUtils.getLightDarkColor("#ffffff")),v=new mxSvgCanvas2D(t);v.setFontFamily(mxConstants.DEFAULT_FONTFAMILY);v.setFontStyle(mxConstants.FONT_BOLD);v.setFontColor("rgb(80, 80, 80)");v.setFontSize(14);var u=h.getElementsByTagName("span");0<u.length&&v.text(6,0,0,0,mxUtils.getTextContent(u[0]));for(v=
-0;v<p.length;v++)u=p[v].cloneNode(!0),u.removeAttribute("style"),u.setAttribute("width",this.thumbWidth),u.setAttribute("height",this.thumbHeight),u.setAttribute("x",12+68*mxUtils.mod(v,6)),u.setAttribute("y",24+68*Math.floor(v/6)),t.appendChild(u);this.editorUi.editor.convertImages(t,mxUtils.bind(this,function(r){var x=document.createElement("canvas");x.width=432;x.height=q;var y=document.createElement("img");y.onload=mxUtils.bind(this,function(){x.getContext("2d").drawImage(y,0,0);this.editorUi.saveCanvas(x,
-null,"png")});r=Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(t);y.src=Editor.createSvgDataUri(r)}))}else{if("none"==k.style.display){if(m)h.appendChild(n);else if(m=!0,null!=l){null!=n.parentNode&&n.parentNode.removeChild(n);h.style.cursor="wait";var w=h.innerHTML;h.innerHTML=mxResources.get("loading")+"...";window.setTimeout(function(){l(k);h.style.cursor="";h.innerHTML=w;h.appendChild(n)},0)}else h.appendChild(n);h.style.backgroundImage="url('"+Editor.arrowDownImage+"')";k.style.display=
-"block"}else h.style.backgroundImage="url('"+Editor.arrowRightImage+"')",k.style.display="none",null!=n.parentNode&&n.parentNode.removeChild(n);mxEvent.consume(p)}}))});Sidebar.prototype.extractShapeStyle=function(h){if(null!=h&&"shape="==h.substring(0,6)){var k=h.indexOf(";");0>k&&(k=h.length);return h.substring(6,k)}return null};var d=Sidebar.prototype.getTagsForStencil;Sidebar.prototype.getTagsForStencil=function(h,k,l){var m=d.apply(this,arguments);null!=this.shapetags&&(h=h.toLowerCase(),k=k.toLowerCase(),
-null!=this.shapetags[h]&&m.push(this.shapetags[h]),k=h+"."+k,null!=this.shapetags[k]&&m.push(this.shapetags[k]));return m};Sidebar.prototype.addTagIndex=function(h){h=String(h).split("\n");for(var k=0;k<h.length;k++)if(null!=h[k]){var l=h[k].split("\t");if(1<l.length){var m=l[0].toLowerCase().replace(" ","_");l=mxUtils.trim(l.slice(1,l.length).join(" ").toLowerCase());0<l.length&&(this.shapetags[m]=l)}}};Sidebar.prototype.getUniqueLibraries=function(h){for(var k={},l=[],m=0;m<h.length;m++){var n=
-JSON.stringify(h[m]);null==k[n]&&(k[n]=!0,l.push(h[m]))}return l};Sidebar.prototype.openLibraries=function(h){h=this.getUniqueLibraries(h);for(var k=null,l=0;l<h.length;l++){var m=this.getConfigurationById(h[l].id);null!=m&&(m=this.openLibrary(m,h[l].lib||h[l].id),null!=m&&null==k&&(k=m))}null!=k&&window.setTimeout(function(){k[0].scrollIntoView({behavior:"smooth"})},0)};Sidebar.prototype.openLibrary=function(h,k){this.showPalettes(h.prefix||"",h.libs||[h.id],!0);h=this.showPalette(k,!0);null!=h&&
-1<h.length&&null!=h[1].firstChild&&(null==h[1].firstChild.firstChild||"none"==h[1].firstChild.style.display)&&h[0].click();return h};Sidebar.prototype.showPopupMenuForEntry=function(h,k,l){if(null!=k&&0<k.length){var m=mxUtils.getOffset(h);this.editorUi.showPopupMenu(mxUtils.bind(this,function(n,p){n.addItem(mxResources.get("openLibrary"),null,mxUtils.bind(this,function(){this.openLibraries(k)}))}),m.x,m.y+h.offsetHeight,l);mxEvent.consume(l)}};Sidebar.prototype.addSearchIndex=function(h){if(null!=
-h)for(var k=0;k<h.length;k++)if(null!=h[k].style){var l=h[k].style,m=this.extractShapeStyle(l);if(null!=m){var n=m.lastIndexOf(".");if(0<n){var p=m.substring(0,n);m=m.substring(n+1,m.length);n=this.getTagsForStencil(p,m,h[k].tags);if(null!=n){var q=l.indexOf(";");l="shape="+p+"."+m.toLowerCase()+";"+(0>q?"":l.substring(q+1));this.setCurrentSearchEntryLibrary(h[k].id,h[k].lib);this.createVertexTemplateEntry(l,parseInt(h[k].w),parseInt(h[k].h),"",m.replace(/_/g," "),null,null,this.filterTags(n.join(" ")));
-null!=this.currentSearchEntryLibrary&&this.addLibForStyle(this.getKeyStyle(l),this.currentSearchEntryLibrary);this.setCurrentSearchEntryLibrary()}}}}};Sidebar.prototype.initPalettes=function(){var h=GRAPH_IMAGE_PATH,k=STENCIL_PATH,l=this.signs,m=this.rack,n=this.pids,p=this.cisco,q=this.sysml;"1"==urlParams.createindex&&(this.createdSearchIndex=[]);this.addSearchPalette(!0);this.appendCustomLibraries||this.addCustomEntries();this.addGeneralPalette(null==this.customEntries);this.addMiscPalette(!1);
-this.addAdvancedPalette(!1);this.addBasicPalette();this.addStencilPalette("arrows",mxResources.get("arrows"),k+"/arrows.xml",";html=1;"+mxConstants.STYLE_VERTICAL_LABEL_POSITION+"=bottom;"+mxConstants.STYLE_VERTICAL_ALIGN+"=top;"+mxConstants.STYLE_STROKEWIDTH+"=2;strokeColor=#000000;",null,null,null,null,null,"arrows");this.addArrows2Palette();this.setCurrentSearchEntryLibrary("clipart","computer");this.addImagePalette("computer","Clipart / Computer",h+"/lib/clip_art/computers/","_128x128.png","Antivirus Data_Filtering Database Database_Add Database_Minus Database_Move_Stack Database_Remove Fujitsu_Tablet Harddrive IBM_Tablet iMac iPad Laptop MacBook Mainframe Monitor Monitor_Tower Monitor_Tower_Behind Netbook Network Network_2 Printer Printer_Commercial Secure_System Server Server_Rack Server_Rack_Empty Server_Rack_Partial Server_Tower Software Stylus Touch USB_Hub Virtual_Application Virtual_Machine Virus Workstation".split(" "),
-"Antivirus;Data Filtering;Database;Database Add;Database Minus;Database Move Stack;Database Remove;Fujitsu Tablet;Harddrive;IBMTablet;iMac;iPad;Laptop;MacBook;Mainframe;Monitor;Monitor Tower;Monitor Tower Behind;Netbook;Network;Network 2;Printer;Printer Commercial;Secure System;Server;Server Rack;Server Rack Empty;Server Rack Partial;Server Tower;Software;Stylus;Touch;USB Hub;Virtual Application;Virtual Machine;Virus;Workstation".split(";"));this.setCurrentSearchEntryLibrary("clipart","finance");
-this.addImagePalette("finance","Clipart / Finance",h+"/lib/clip_art/finance/","_128x128.png","Arrow_Down Arrow_Up Coins Credit_Card Dollar Graph Pie_Chart Piggy_Bank Safe Shopping_Cart Stock_Down Stock_Up".split(" "),"Arrow_Down;Arrow Up;Coins;Credit Card;Dollar;Graph;Pie Chart;Piggy Bank;Safe;Shopping Basket;Stock Down;Stock Up".split(";"));this.setCurrentSearchEntryLibrary("clipart","clipart");this.addImagePalette("clipart","Clipart / Various",h+"/lib/clip_art/general/","_128x128.png","Battery_0 Battery_100 Battery_50 Battery_75 Battery_allstates Bluetooth Earth_globe Empty_Folder Full_Folder Gear Keys Lock Mouse_Pointer Plug Ships_Wheel Star Tire".split(" "),
-"Battery 0%;Battery 100%;Battery 50%;Battery 75%;Battery;Bluetooth;Globe;Empty Folder;Full Folder;Gear;Keys;Lock;Mousepointer;Plug;Ships Wheel;Star;Tire".split(";"));this.setCurrentSearchEntryLibrary("clipart","networking");this.addImagePalette("networking","Clipart / Networking",h+"/lib/clip_art/networking/","_128x128.png","Bridge Certificate Certificate_Off Cloud Cloud_Computer Cloud_Computer_Private Cloud_Rack Cloud_Rack_Private Cloud_Server Cloud_Server_Private Cloud_Storage Concentrator Email Firewall_02 Firewall Firewall-page1 Ip_Camera Modem power_distribution_unit Print_Server Print_Server_Wireless Repeater Router Router_Icon Switch UPS Wireless_Router Wireless_Router_N".split(" "),
-"Bridge;Certificate;Certificate Off;Cloud;Cloud Computer;Cloud Computer Private;Cloud Rack;Cloud Rack Private;Cloud Server;Cloud Server Private;Cloud Storage;Concentrator;Email;Firewall 1;Firewall 2;Firewall;Camera;Modem;Power Distribution Unit;Print Server;Print Server Wireless;Repeater;Router;Router Icon;Switch;UPS;Wireless Router;Wireless Router N".split(";"),{Wireless_Router:"wireless router switch wap wifi access point wlan",Wireless_Router_N:"wireless router switch wap wifi access point wlan",
-Router:"router switch",Router_Icon:"router switch"});this.setCurrentSearchEntryLibrary("clipart","people");this.addImagePalette("people","Clipart / People",h+"/lib/clip_art/people/","_128x128.png","Suit_Man Suit_Man_Black Suit_Man_Blue Suit_Man_Green Suit_Man_Green_Black Suit_Woman Suit_Woman_Black Suit_Woman_Blue Suit_Woman_Green Suit_Woman_Green_Black Construction_Worker_Man Construction_Worker_Man_Black Construction_Worker_Woman Construction_Worker_Woman_Black Doctor_Man Doctor_Man_Black Doctor_Woman Doctor_Woman_Black Farmer_Man Farmer_Man_Black Farmer_Woman Farmer_Woman_Black Nurse_Man Nurse_Man_Black Nurse_Woman Nurse_Woman_Black Military_Officer Military_Officer_Black Military_Officer_Woman Military_Officer_Woman_Black Pilot_Man Pilot_Man_Black Pilot_Woman Pilot_Woman_Black Scientist_Man Scientist_Man_Black Scientist_Woman Scientist_Woman_Black Security_Man Security_Man_Black Security_Woman Security_Woman_Black Tech_Man Tech_Man_Black Telesales_Man Telesales_Man_Black Telesales_Woman Telesales_Woman_Black Waiter Waiter_Black Waiter_Woman Waiter_Woman_Black Worker_Black Worker_Man Worker_Woman Worker_Woman_Black".split(" "));
+{title:"GCP Icons",id:"gcpicons",image:IMAGE_PATH+"/sidebar-gcpicons.png"},{title:"IBM",id:"ibm",image:IMAGE_PATH+"/sidebar-ibm.png"},{title:"IBM Cloud",id:"ibm_cloud",image:IMAGE_PATH+"/sidebar-ibmcloud.png"},{title:"Kubernetes",id:"kubernetes",image:IMAGE_PATH+"/sidebar-kubernetes.png"},{title:"Network",id:"network",image:IMAGE_PATH+"/sidebar-network.png"},{title:"Network",id:"network2",image:IMAGE_PATH+"/sidebar-network2.png"},{title:"Office",id:"office",image:IMAGE_PATH+"/sidebar-office.png"},
+{title:"OpenStack",id:"openstack",image:IMAGE_PATH+"/sidebar-openstack.png"},{title:mxResources.get("rack"),id:"rack",image:IMAGE_PATH+"/sidebar-rack.png"},{title:"SAP",id:"sap",image:IMAGE_PATH+"/sidebar-sap.png"},{title:"Veeam",id:"veeam2",image:IMAGE_PATH+"/sidebar-veeam.png"},{title:"VMware",id:"vvd",image:IMAGE_PATH+"/sidebar-vvd.png"}]},{title:mxResources.get("business"),entries:[{title:"ArchiMate 3.2",id:"archimate3",image:IMAGE_PATH+"/sidebar-archimate3.png"},{title:mxResources.get("archiMate21"),
+id:"archimate",image:IMAGE_PATH+"/sidebar-archimate.png"},{title:mxResources.get("bpmn")+" 2.0",id:"bpmn2",image:IMAGE_PATH+"/sidebar-bpmn.png"},{title:mxResources.get("sysml"),id:"sysml",image:IMAGE_PATH+"/sidebar-sysml.png"},{title:"Value Stream Mapping",id:"lean_mapping",image:IMAGE_PATH+"/sidebar-leanmapping.png"}]},{title:mxResources.get("other"),entries:[{title:mxResources.get("cabinets"),id:"cabinets",image:IMAGE_PATH+"/sidebar-cabinets.png"},{title:"Infographic",id:"infographic",image:IMAGE_PATH+
+"/sidebar-infographic.png"},{title:mxResources.get("eip"),id:"eip",image:IMAGE_PATH+"/sidebar-eip.png"},{title:mxResources.get("electrical"),id:"electrical",image:IMAGE_PATH+"/sidebar-electrical.png"},{title:mxResources.get("floorplans"),id:"floorplan",image:IMAGE_PATH+"/sidebar-floorplans.png"},{title:"Fluid Power (ISO 1219)",id:"fluid_power",image:IMAGE_PATH+"/sidebar-fluid_power.png"},{title:mxResources.get("gmdl"),id:"gmdl",image:IMAGE_PATH+"/sidebar-gmdl.png"},{title:mxResources.get("procEng"),
+id:"pid",image:IMAGE_PATH+"/sidebar-pid.png"},{title:"Threat Modeling",id:"threatModeling",image:IMAGE_PATH+"/sidebar-threatmodeling.png"},{title:"Web Icons",id:"webicons",image:IMAGE_PATH+"/sidebar-webIcons.png"},{title:mxResources.get("signs"),id:"signs",image:IMAGE_PATH+"/sidebar-signs.png"}]}]};"1"==urlParams.savesidebar&&(Sidebar.prototype.addFoldingHandler=function(h,k,l){var m=!1;h.style.backgroundImage="none"==k.style.display?"url('"+Editor.arrowRightImage+"')":"url('"+Editor.arrowDownImage+
+"')";var n=document.createElement("button");n.style.marginLeft="4px";mxUtils.write(n,"Save");mxEvent.addListener(h,"click",mxUtils.bind(this,function(p){if("BUTTON"==mxEvent.getSource(p).nodeName){p=k.getElementsByTagName("svg");var q=68*Math.ceil(p.length/6)+36,t=Graph.createSvgNode(0,0,432,q,mxUtils.getLightDarkColor("#ffffff")),v=new mxSvgCanvas2D(t);v.setFontFamily(mxConstants.DEFAULT_FONTFAMILY);v.setFontStyle(mxConstants.FONT_BOLD);v.setFontColor("rgb(80, 80, 80)");v.setFontSize(14);var u=h.getElementsByTagName("span");
+0<u.length&&v.text(6,0,0,0,mxUtils.getTextContent(u[0]));for(v=0;v<p.length;v++)u=p[v].cloneNode(!0),u.removeAttribute("style"),u.setAttribute("width",this.thumbWidth),u.setAttribute("height",this.thumbHeight),u.setAttribute("x",12+68*mxUtils.mod(v,6)),u.setAttribute("y",24+68*Math.floor(v/6)),t.appendChild(u);this.editorUi.editor.convertImages(t,mxUtils.bind(this,function(r){var x=document.createElement("canvas");x.width=432;x.height=q;var y=document.createElement("img");y.onload=mxUtils.bind(this,
+function(){x.getContext("2d").drawImage(y,0,0);this.editorUi.saveCanvas(x,null,"png")});r=Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(t);y.src=Editor.createSvgDataUri(r)}))}else{if("none"==k.style.display){if(m)h.appendChild(n);else if(m=!0,null!=l){null!=n.parentNode&&n.parentNode.removeChild(n);h.style.cursor="wait";var w=h.innerHTML;h.innerHTML=mxResources.get("loading")+"...";window.setTimeout(function(){l(k);h.style.cursor="";h.innerHTML=w;h.appendChild(n)},0)}else h.appendChild(n);
+h.style.backgroundImage="url('"+Editor.arrowDownImage+"')";k.style.display="block"}else h.style.backgroundImage="url('"+Editor.arrowRightImage+"')",k.style.display="none",null!=n.parentNode&&n.parentNode.removeChild(n);mxEvent.consume(p)}}))});Sidebar.prototype.extractShapeStyle=function(h){if(null!=h&&"shape="==h.substring(0,6)){var k=h.indexOf(";");0>k&&(k=h.length);return h.substring(6,k)}return null};var d=Sidebar.prototype.getTagsForStencil;Sidebar.prototype.getTagsForStencil=function(h,k,l){var m=
+d.apply(this,arguments);null!=this.shapetags&&(h=h.toLowerCase(),k=k.toLowerCase(),null!=this.shapetags[h]&&m.push(this.shapetags[h]),k=h+"."+k,null!=this.shapetags[k]&&m.push(this.shapetags[k]));return m};Sidebar.prototype.addTagIndex=function(h){h=String(h).split("\n");for(var k=0;k<h.length;k++)if(null!=h[k]){var l=h[k].split("\t");if(1<l.length){var m=l[0].toLowerCase().replace(" ","_");l=mxUtils.trim(l.slice(1,l.length).join(" ").toLowerCase());0<l.length&&(this.shapetags[m]=l)}}};Sidebar.prototype.getUniqueLibraries=
+function(h){for(var k={},l=[],m=0;m<h.length;m++){var n=JSON.stringify(h[m]);null==k[n]&&(k[n]=!0,l.push(h[m]))}return l};Sidebar.prototype.openLibraries=function(h){h=this.getUniqueLibraries(h);for(var k=null,l=0;l<h.length;l++){var m=this.getConfigurationById(h[l].id);null!=m&&(m=this.openLibrary(m,h[l].lib||h[l].id),null!=m&&null==k&&(k=m))}null!=k&&window.setTimeout(function(){k[0].scrollIntoView({behavior:"smooth"})},0)};Sidebar.prototype.openLibrary=function(h,k){this.showPalettes(h.prefix||
+"",h.libs||[h.id],!0);h=this.showPalette(k,!0);null!=h&&1<h.length&&null!=h[1].firstChild&&(null==h[1].firstChild.firstChild||"none"==h[1].firstChild.style.display)&&h[0].click();return h};Sidebar.prototype.showPopupMenuForEntry=function(h,k,l){if(null!=k&&0<k.length){var m=mxUtils.getOffset(h);this.editorUi.showPopupMenu(mxUtils.bind(this,function(n,p){n.addItem(mxResources.get("openLibrary"),null,mxUtils.bind(this,function(){this.openLibraries(k)}))}),m.x,m.y+h.offsetHeight,l);mxEvent.consume(l)}};
+Sidebar.prototype.addSearchIndex=function(h){if(null!=h)for(var k=0;k<h.length;k++)if(null!=h[k].style){var l=h[k].style,m=this.extractShapeStyle(l);if(null!=m){var n=m.lastIndexOf(".");if(0<n){var p=m.substring(0,n);m=m.substring(n+1,m.length);n=this.getTagsForStencil(p,m,h[k].tags);if(null!=n){var q=l.indexOf(";");l="shape="+p+"."+m.toLowerCase()+";"+(0>q?"":l.substring(q+1));this.setCurrentSearchEntryLibrary(h[k].id,h[k].lib);this.createVertexTemplateEntry(l,parseInt(h[k].w),parseInt(h[k].h),"",
+m.replace(/_/g," "),null,null,this.filterTags(n.join(" ")));null!=this.currentSearchEntryLibrary&&this.addLibForStyle(this.getKeyStyle(l),this.currentSearchEntryLibrary);this.setCurrentSearchEntryLibrary()}}}}};Sidebar.prototype.initPalettes=function(){var h=GRAPH_IMAGE_PATH,k=STENCIL_PATH,l=this.signs,m=this.rack,n=this.pids,p=this.cisco,q=this.sysml;"1"==urlParams.createindex&&(this.createdSearchIndex=[]);this.addSearchPalette(!0);this.appendCustomLibraries||this.addCustomEntries();this.addGeneralPalette(null==
+this.customEntries);this.addMiscPalette(!1);this.addAdvancedPalette(!1);this.addBasicPalette();this.addStencilPalette("arrows",mxResources.get("arrows"),k+"/arrows.xml",";html=1;"+mxConstants.STYLE_VERTICAL_LABEL_POSITION+"=bottom;"+mxConstants.STYLE_VERTICAL_ALIGN+"=top;"+mxConstants.STYLE_STROKEWIDTH+"=2;strokeColor=#000000;",null,null,null,null,null,"arrows");this.addArrows2Palette();this.setCurrentSearchEntryLibrary("clipart","computer");this.addImagePalette("computer","Clipart / Computer",h+
+"/lib/clip_art/computers/","_128x128.png","Antivirus Data_Filtering Database Database_Add Database_Minus Database_Move_Stack Database_Remove Fujitsu_Tablet Harddrive IBM_Tablet iMac iPad Laptop MacBook Mainframe Monitor Monitor_Tower Monitor_Tower_Behind Netbook Network Network_2 Printer Printer_Commercial Secure_System Server Server_Rack Server_Rack_Empty Server_Rack_Partial Server_Tower Software Stylus Touch USB_Hub Virtual_Application Virtual_Machine Virus Workstation".split(" "),"Antivirus;Data Filtering;Database;Database Add;Database Minus;Database Move Stack;Database Remove;Fujitsu Tablet;Harddrive;IBMTablet;iMac;iPad;Laptop;MacBook;Mainframe;Monitor;Monitor Tower;Monitor Tower Behind;Netbook;Network;Network 2;Printer;Printer Commercial;Secure System;Server;Server Rack;Server Rack Empty;Server Rack Partial;Server Tower;Software;Stylus;Touch;USB Hub;Virtual Application;Virtual Machine;Virus;Workstation".split(";"));
+this.setCurrentSearchEntryLibrary("clipart","finance");this.addImagePalette("finance","Clipart / Finance",h+"/lib/clip_art/finance/","_128x128.png","Arrow_Down Arrow_Up Coins Credit_Card Dollar Graph Pie_Chart Piggy_Bank Safe Shopping_Cart Stock_Down Stock_Up".split(" "),"Arrow_Down;Arrow Up;Coins;Credit Card;Dollar;Graph;Pie Chart;Piggy Bank;Safe;Shopping Basket;Stock Down;Stock Up".split(";"));this.setCurrentSearchEntryLibrary("clipart","clipart");this.addImagePalette("clipart","Clipart / Various",
+h+"/lib/clip_art/general/","_128x128.png","Battery_0 Battery_100 Battery_50 Battery_75 Battery_allstates Bluetooth Earth_globe Empty_Folder Full_Folder Gear Keys Lock Mouse_Pointer Plug Ships_Wheel Star Tire".split(" "),"Battery 0%;Battery 100%;Battery 50%;Battery 75%;Battery;Bluetooth;Globe;Empty Folder;Full Folder;Gear;Keys;Lock;Mousepointer;Plug;Ships Wheel;Star;Tire".split(";"));this.setCurrentSearchEntryLibrary("clipart","networking");this.addImagePalette("networking","Clipart / Networking",
+h+"/lib/clip_art/networking/","_128x128.png","Bridge Certificate Certificate_Off Cloud Cloud_Computer Cloud_Computer_Private Cloud_Rack Cloud_Rack_Private Cloud_Server Cloud_Server_Private Cloud_Storage Concentrator Email Firewall_02 Firewall Firewall-page1 Ip_Camera Modem power_distribution_unit Print_Server Print_Server_Wireless Repeater Router Router_Icon Switch UPS Wireless_Router Wireless_Router_N".split(" "),"Bridge;Certificate;Certificate Off;Cloud;Cloud Computer;Cloud Computer Private;Cloud Rack;Cloud Rack Private;Cloud Server;Cloud Server Private;Cloud Storage;Concentrator;Email;Firewall 1;Firewall 2;Firewall;Camera;Modem;Power Distribution Unit;Print Server;Print Server Wireless;Repeater;Router;Router Icon;Switch;UPS;Wireless Router;Wireless Router N".split(";"),
+{Wireless_Router:"wireless router switch wap wifi access point wlan",Wireless_Router_N:"wireless router switch wap wifi access point wlan",Router:"router switch",Router_Icon:"router switch"});this.setCurrentSearchEntryLibrary("clipart","people");this.addImagePalette("people","Clipart / People",h+"/lib/clip_art/people/","_128x128.png","Suit_Man Suit_Man_Black Suit_Man_Blue Suit_Man_Green Suit_Man_Green_Black Suit_Woman Suit_Woman_Black Suit_Woman_Blue Suit_Woman_Green Suit_Woman_Green_Black Construction_Worker_Man Construction_Worker_Man_Black Construction_Worker_Woman Construction_Worker_Woman_Black Doctor_Man Doctor_Man_Black Doctor_Woman Doctor_Woman_Black Farmer_Man Farmer_Man_Black Farmer_Woman Farmer_Woman_Black Nurse_Man Nurse_Man_Black Nurse_Woman Nurse_Woman_Black Military_Officer Military_Officer_Black Military_Officer_Woman Military_Officer_Woman_Black Pilot_Man Pilot_Man_Black Pilot_Woman Pilot_Woman_Black Scientist_Man Scientist_Man_Black Scientist_Woman Scientist_Woman_Black Security_Man Security_Man_Black Security_Woman Security_Woman_Black Tech_Man Tech_Man_Black Telesales_Man Telesales_Man_Black Telesales_Woman Telesales_Woman_Black Waiter Waiter_Black Waiter_Woman Waiter_Woman_Black Worker_Black Worker_Man Worker_Woman Worker_Woman_Black".split(" "));
this.setCurrentSearchEntryLibrary("clipart","telco");this.addImagePalette("telco","Clipart / Telecommunication",h+"/lib/clip_art/telecommunication/","_128x128.png","BlackBerry Cellphone HTC_smartphone iPhone Palm_Treo Signal_tower_off Signal_tower_on".split(" "),"BlackBerry;Cellphone;HTC smartphone;iPhone;Palm Treo;Signaltower off;Signaltower on".split(";"));this.setCurrentSearchEntryLibrary();this.addFlowchartPalette();this.addActiveDirectoryPalette();this.addAndroidPalette();this.addAtlassianPalette();
this.addBootstrapPalette();this.addDFDPalette();this.addErPalette();this.addIos7Palette();this.addIosPalette();this.addKubernetesPalette();this.addMockupPalette();this.addSitemapPalette();this.addSalesforcePalette();this.addUml25Palette();this.addUmlPalette(!1);this.addAlibabaCloudPalette();this.addAlliedTelesisPalette();this.addAWS3Palette();this.addAWS4bPalette();this.addAWS4Palette();this.addAWS3DPalette();this.addAzurePalette();this.addAzure2Palette();this.addMSCAEPalette();this.addC4Palette();
-this.addCiscoPalette(p,k);this.addCisco19Palette();this.addCiscoSafePalette();this.addCumulusPalette();this.addCitrix2Palette();this.addCitrixPalette();this.addDynamics365Palette();this.addGCP2Palette();this.addGCPIconsPalette();this.addIBMPalette();this.addIBMCloudPalette();this.addNetworkPalette();this.addSAPPalette();this.addOfficePalette();this.addOpenStackPalette();this.addRackPalette(m,k);this.addVeeamPalette();this.addVeeam2Palette();this.addVVDPalette();this.addArchimate3Palette();this.addArchiMatePalette();
-this.addBpmn2Palette();this.addSysMLPalette(q,k);this.addLeanMappingPalette();this.addCabinetsPalette();this.addInfographicPalette();this.addEipPalette();this.addElectricalPalette();this.addFloorplanPalette();this.addFluidPowerPalette();this.addGMDLPalette();this.addPidPalette(n,k);this.addThreatModelingPalette();this.addWebIconsPalette();this.addWebLogosPalette();this.addSignsPalette(l,k);this.appendCustomLibraries&&this.addCustomEntries();this.showEntries();null!=this.createdSearchIndex&&console.log("searchFileData",
-Graph.compress(JSON.stringify(this.createdSearchIndex)))};Sidebar.prototype.addCustomEntries=function(){if(null!=this.customEntries)for(var h=0,k=0;k<this.customEntries.length;k++)for(var l=this.customEntries[k]||{},m=0;null!=l.entries&&m<l.entries.length;m++)for(var n=l.entries[m],p=0;p<n.libs.length;p++)mxUtils.bind(this,function(q){var t=null,v=null,u=null,w=null,r=mxUtils.bind(this,function(z,A){var B=document.createElement("span");B.style.paddingBottom="6px";B.style.paddingTop="6px";B.style.fontSize=
-"11px";mxUtils.write(B,z);A.innerHTML='<img align="top" src="'+mxGraph.prototype.warningImage.src+'"/> ';A.appendChild(B)}),x=mxUtils.bind(this,function(){null!=u&&null!=w&&(null!=v?(u.style.display="block",w.innerText="",mxUtils.write(w,this.editorUi.getResource(q.title)),r(v,u)):null!=t?(this.editorUi.addLibraryEntries(t,u),u.style.display="block",w.innerText="",mxUtils.write(w,this.editorUi.getResource(q.title))):(u.style.display="none",w.innerText="",mxUtils.write(w,mxResources.get("loading")+
+this.addCiscoPalette(p,k);this.addCisco19Palette();this.addCiscoSafePalette();this.addCumulusPalette();this.addCitrix2Palette();this.addCitrixPalette();this.addDynamics365Palette();this.addGCP2Palette();this.addGCPIconsPalette();this.addIBMPalette();this.addIBMCloudPalette();this.addNetworkPalette();this.addNetwork2Palette();this.addSAPPalette();this.addOfficePalette();this.addOpenStackPalette();this.addRackPalette(m,k);this.addVeeamPalette();this.addVeeam2Palette();this.addVVDPalette();this.addArchimate3Palette();
+this.addArchiMatePalette();this.addBpmn2Palette();this.addSysMLPalette(q,k);this.addLeanMappingPalette();this.addCabinetsPalette();this.addInfographicPalette();this.addEipPalette();this.addElectricalPalette();this.addFloorplanPalette();this.addFluidPowerPalette();this.addGMDLPalette();this.addPidPalette(n,k);this.addThreatModelingPalette();this.addWebIconsPalette();this.addWebLogosPalette();this.addSignsPalette(l,k);this.appendCustomLibraries&&this.addCustomEntries();this.showEntries();null!=this.createdSearchIndex&&
+console.log("searchFileData",Graph.compress(JSON.stringify(this.createdSearchIndex)))};Sidebar.prototype.addCustomEntries=function(){if(null!=this.customEntries)for(var h=0,k=0;k<this.customEntries.length;k++)for(var l=this.customEntries[k]||{},m=0;null!=l.entries&&m<l.entries.length;m++)for(var n=l.entries[m],p=0;p<n.libs.length;p++)mxUtils.bind(this,function(q){var t=null,v=null,u=null,w=null,r=mxUtils.bind(this,function(z,A){var B=document.createElement("span");B.style.paddingBottom="6px";B.style.paddingTop=
+"6px";B.style.fontSize="11px";mxUtils.write(B,z);A.innerHTML='<img align="top" src="'+mxGraph.prototype.warningImage.src+'"/> ';A.appendChild(B)}),x=mxUtils.bind(this,function(){null!=u&&null!=w&&(null!=v?(u.style.display="block",w.innerText="",mxUtils.write(w,this.editorUi.getResource(q.title)),r(v,u)):null!=t?(this.editorUi.addLibraryEntries(t,u),u.style.display="block",w.innerText="",mxUtils.write(w,this.editorUi.getResource(q.title))):(u.style.display="none",w.innerText="",mxUtils.write(w,mxResources.get("loading")+
"...")))});if(null==q.data&&null!=q.url&&!q.preload&&h>=this.maxPreloadCount)this.addPalette(n.id+"."+p,this.editorUi.getResource(q.title),!1,mxUtils.bind(this,function(z,A){var B=mxUtils.bind(this,function(C){this.setCurrentSearchEntryLibrary(n.id,n.id+"."+p);this.addEntries(C);this.setCurrentSearchEntryLibrary();this.editorUi.addLibraryEntries(C,z)});z.style.display="none";A.innerText="";mxUtils.write(A,mxResources.get("loading")+"...");var D=q.url;this.editorUi.editor.isCorsEnabledForUrl(D)||(D=
PROXY_URL+"?url="+encodeURIComponent(D));this.editorUi.editor.loadUrl(D,mxUtils.bind(this,function(C){z.style.display="block";A.innerText="";mxUtils.write(A,this.editorUi.getResource(q.title));try{var E=mxUtils.parseXml(C);if("mxlibrary"==E.documentElement.nodeName){var F=JSON.parse(mxUtils.getTextContent(E.documentElement));B(F)}else r(mxResources.get("notALibraryFile"),z)}catch(G){r(mxResources.get("error")+": "+G.message,z)}}))}));else if(this.addPalette(n.id+"."+p,this.editorUi.getResource(q.title),
!1,mxUtils.bind(this,function(z,A){u=z;w=A;x()})),null!=q.data)this.setCurrentSearchEntryLibrary(n.id,n.id+"."+p),this.addEntries(q.data),this.setCurrentSearchEntryLibrary(),t=q.data,x();else if(null!=q.url){h++;var y=q.url;this.editorUi.editor.isCorsEnabledForUrl(y)||(y=PROXY_URL+"?url="+encodeURIComponent(y));this.editorUi.editor.loadUrl(y,mxUtils.bind(this,function(z){try{var A=mxUtils.parseXml(z);"mxlibrary"==A.documentElement.nodeName?(t=JSON.parse(mxUtils.getTextContent(A.documentElement)),
@@ -9733,7 +9733,50 @@ this.createVertexTemplateEntry("fontColor=#0066CC;verticalAlign=top;verticalLabe
"virtual_pc","computer network ").join(" ")),this.createVertexTemplateEntry("fontColor=#0066CC;verticalAlign=top;verticalLabelPosition=bottom;labelPosition=center;align=center;html=1;outlineConnect=0;fillColor=#CCCCCC;strokeColor=#6881B3;gradientColor=none;gradientDirection=north;strokeWidth=2;shape=mxgraph.networks.virtual_server;",110,120,"","Virtual Server",null,null,this.getTagsForStencil("mxgraph.networks","virtual_server","computer network ").join(" ")),this.createVertexTemplateEntry("fontColor=#0066CC;verticalAlign=top;verticalLabelPosition=bottom;labelPosition=center;align=center;html=1;outlineConnect=0;fillColor=#CCCCCC;strokeColor=#6881B3;gradientColor=none;gradientDirection=north;strokeWidth=2;shape=mxgraph.networks.virus;",
100,90,"","Virus",null,null,this.getTagsForStencil("mxgraph.networks","virus","computer network ").join(" ")),this.createVertexTemplateEntry("fontColor=#0066CC;verticalAlign=top;verticalLabelPosition=bottom;labelPosition=center;align=center;html=1;outlineConnect=0;fillColor=#CCCCCC;strokeColor=#6881B3;gradientColor=none;gradientDirection=north;strokeWidth=2;shape=mxgraph.networks.web_server;",105,105,"","Web Server",null,null,this.getTagsForStencil("mxgraph.networks","web_server","computer network ").join(" ")),
this.createVertexTemplateEntry("fontColor=#0066CC;verticalAlign=top;verticalLabelPosition=bottom;labelPosition=center;align=center;html=1;outlineConnect=0;fillColor=#CCCCCC;strokeColor=#6881B3;gradientColor=none;gradientDirection=north;strokeWidth=2;shape=mxgraph.networks.wireless_hub;",100,85,"","Wireless Hub",null,null,this.getTagsForStencil("mxgraph.networks","wireless_hub","computer network ").join(" ")),this.createVertexTemplateEntry("fontColor=#0066CC;verticalAlign=top;verticalLabelPosition=bottom;labelPosition=center;align=center;html=1;outlineConnect=0;fillColor=#CCCCCC;strokeColor=#6881B3;gradientColor=none;gradientDirection=north;strokeWidth=2;shape=mxgraph.networks.wireless_modem;",
-100,85,"","Wireless Modem",null,null,this.getTagsForStencil("mxgraph.networks","wireless_modem","computer network ").join(" "))]);this.setCurrentSearchEntryLibrary()}})();(function(){Sidebar.prototype.addOfficePalette=function(){this.setCurrentSearchEntryLibrary("office","officeClouds");this.addOfficeCloudsPalette();this.setCurrentSearchEntryLibrary("office","officeCommunications");this.addOfficeCommunicationsPalette();this.setCurrentSearchEntryLibrary("office","officeConcepts");this.addOfficeConceptsPalette();this.setCurrentSearchEntryLibrary("office","officeDatabases");this.addOfficeDatabasesPalette();this.setCurrentSearchEntryLibrary("office","officeDevices");this.addOfficeDevicesPalette();
+100,85,"","Wireless Modem",null,null,this.getTagsForStencil("mxgraph.networks","wireless_modem","computer network ").join(" "))]);this.setCurrentSearchEntryLibrary()}})();(function(){Sidebar.prototype.addNetwork2Palette=function(){var a,b,d=[];this.setCurrentSearchEntryLibrary("network2");d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.antenna;network2IconYOffset=0.0004;network2IconW="+(a=.508)+";network2IconH="+(b=.9997)+";",50*a,50*b,"","Antenna",null,null,this.getTagsForStencil("mxgraph.networks2",
+"antenna","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.application;network2IconXOffset=0.0048;network2IconYOffset=-0.0000;network2IconW="+(a=.5927)+";network2IconH="+(b=1.02)+";",50*a,50*b,"","Application",null,null,this.getTagsForStencil("mxgraph.networks2","application","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.big_data;network2IconXOffset=-0.0002;network2IconYOffset=0.0015;network2IconW="+(a=1)+";network2IconH= "+(b=.996)+";",50*a,50*b,"","Big Data",null,null,this.getTagsForStencil("mxgraph.networks2","big data","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.biohazard;network2IconXOffset=-0.0048;network2IconYOffset=-0.001;network2IconW="+
+(a=1.0124)+";network2IconH="+(b=.93)+";",50*a,50*b,"","Biohazard",null,null,this.getTagsForStencil("mxgraph.networks2","biohazard","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.biometric_reader;network2IconXOffset=0.00008;network2IconYOffset=0.00161;network2IconW="+(a=.8407)+";network2IconH="+(b=
+.9971)+";",50*a,50*b,"","Biometric Reader",null,null,this.getTagsForStencil("mxgraph.networks2","biometric_reader","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.cctv;network2IconXOffset=-0.0002;network2IconYOffset=-0.0355;network2IconW="+(a=1.0004)+";network2IconH="+(b=.7279)+";",50*a,50*b,"","CCTV",
+null,null,this.getTagsForStencil("mxgraph.networks2","cctv","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.cloud;network2IconYOffset=-0.08;network2IconW="+(a=1.0004)+";network2IconH="+(b=.7222)+";",50*a,50*b,"","Cloud",null,null,this.getTagsForStencil("mxgraph.networks2","cloud","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.community;network2IconXOffset=-0.0036;network2IconYOffset=0.00087;network2IconW="+(a=.876)+";network2IconH="+(b=1.0029)+";",50*a,50*b,"","Community",null,null,this.getTagsForStencil("mxgraph.networks2","community","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.copier;network2IconXOffset=0.04746;network2IconYOffset=-0.00027;network2IconW="+
+(a=.8861)+";network2IconH="+(b=.9979)+";",50*a,50*b,"","Copier",null,null,this.getTagsForStencil("mxgraph.networks2","copier","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.data_management;network2IconW="+(a=.8252)+";network2IconH="+(b=.9989)+";",50*a,50*b,"","Data Management",null,null,this.getTagsForStencil("mxgraph.networks2",
+"data management","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.data_storage;network2IconW="+(a=.8252)+";network2IconH="+(b=.9989)+";",50*a,50*b,"","Data Storage",null,null,this.getTagsForStencil("mxgraph.networks2","data storage","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.desktop_pc;network2IconXOffset=-0.0034;network2IconYOffset=0.00035;network2IconW="+
+(a=.453)+";network2IconH="+(b=.9995)+";",50*a,50*b,"","Desktop PC",null,null,this.getTagsForStencil("mxgraph.networks2","desktop pc personal computer","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.encryption;network2IconXOffset=0.0006;network2IconYOffset=0.0881;network2IconW="+(a=1.0001)+";network2IconH="+
+(b=.7019)+";",50*a,50*b,"","Encryption",null,null,this.getTagsForStencil("mxgraph.networks2","encryption","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.external_storage;network2IconYOffset=-0.0267;network2IconW="+(a=1)+";network2IconH="+(b=.7987)+";",50*a,50*b,"","External Storage",null,null,this.getTagsForStencil("mxgraph.networks2",
+"external storage","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.firewall;network2IconXOffset=0.0001;network2IconYOffset=0.0001;network2IconW="+(a=1)+";network2IconH="+(b=.608)+";",50*a,50*b,"","Firewall",null,null,this.getTagsForStencil("mxgraph.networks2","firewall","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.gamepad;network2IconXOffset=0.00005;network2IconYOffset=0.00163;network2IconW="+(a=1.0021)+";network2IconH="+(b=.7358)+";",50*a,50*b,"","Gamepad",null,null,this.getTagsForStencil("mxgraph.networks2","gamepad","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.global_server;network2IconW="+
+(a=1)+";network2IconH="+(b=1)+";",50*a,50*b,"","Global Server",null,null,this.getTagsForStencil("mxgraph.networks2","global server","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.globe;network2IconW="+(a=1)+";network2IconH="+(b=1)+";",50*a,50*b,"","Globe",null,null,this.getTagsForStencil("mxgraph.networks2",
+"globe","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.hub;network2IconXOffset=0.0001;network2IconYOffset=0.0129;network2IconW="+(a=1)+";network2IconH="+(b=.2938)+";",50*a,50*b,"","Hub",null,null,this.getTagsForStencil("mxgraph.networks2","hub","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.internet;network2IconXOffset=0.0012;network2IconYOffset=0.0035;network2IconW="+(a=.9677)+";network2IconH="+(b=.7722)+";",50*a,50*b,"","Internet",null,null,this.getTagsForStencil("mxgraph.networks2","internet","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.internet_security;network2IconW="+
+(a=1)+";network2IconH="+(b=1)+";",50*a,50*b,"","Internet Security",null,null,this.getTagsForStencil("mxgraph.networks2","internet security","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.lan;network2IconYOffset=0.0558;network2IconW="+(a=1.0834)+";network2IconH="+(b=.7564)+";",50*a,50*b,"","LAN",null,
+null,this.getTagsForStencil("mxgraph.networks2","lan local area network","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.laptop;network2IconW="+(a=1)+";network2IconH="+(b=.5734)+";",50*a,50*b,"","Laptop",null,null,this.getTagsForStencil("mxgraph.networks2","laptop","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.load_balancer;network2IconW="+(a=.86)+";network2IconH="+(b=.76)+";",50*a,50*b,"","Load Balancer",null,null,this.getTagsForStencil("mxgraph.networks2","load balancer","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.lock;network2IconW="+
+(a=.8)+";network2IconH="+(b=.9999)+";",50*a,50*b,"","Lock",null,null,this.getTagsForStencil("mxgraph.networks2","lock","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.mail_server;network2IconYOffset=-0.02556;network2IconW="+(a=1)+";network2IconH="+(b=
+.7875)+";",50*a,50*b,"","Mail Server",null,null,this.getTagsForStencil("mxgraph.networks2","mail server","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.mainframe;network2IconW="+(a=.4721)+";network2IconH="+(b=1)+";",50*a,50*b,"","Mainframe",null,null,
+this.getTagsForStencil("mxgraph.networks2","mainframe","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.mobile_network;network2IconXOffset=0.0049;network2IconW="+(a=.5297)+";network2IconH="+(b=1.02)+";",50*a,50*b,"","Mobile Network",null,null,this.getTagsForStencil("mxgraph.networks2","mobile network",
+"computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.mobile_phone;network2IconXOffset=0.0049;network2IconW="+(a=.5297)+";network2IconH="+(b=1.02)+";",50*a,50*b,"","Mobile Phone",null,null,this.getTagsForStencil("mxgraph.networks2","mobile phone cell","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.modem;network2IconYOffset=0.0131;network2IconW="+
+(a=1)+";network2IconH="+(b=.2938)+";",50*a,50*b,"","Modem",null,null,this.getTagsForStencil("mxgraph.networks2","modem","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.monitor;network2IconYOffset=-0.009;network2IconW="+(a=1)+";network2IconH="+(b=.742)+";",50*a,50*b,"","Monitor",null,null,this.getTagsForStencil("mxgraph.networks2",
+"monitor","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.nas_filer;network2IconW="+(a=1)+";network2IconH="+(b=.62)+";",50*a,50*b,"","NAS Filer",null,null,this.getTagsForStencil("mxgraph.networks2","nas filer","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.network;network2IconW="+
+(a=1)+";network2IconH="+(b=.8601)+";",50*a,50*b,"","Network",null,null,this.getTagsForStencil("mxgraph.networks2","network","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.network_security;network2IconW="+(a=1)+";network2IconH="+(b=.86)+";",50*a,50*b,"","Network Security",null,null,this.getTagsForStencil("mxgraph.networks2",
+"network security","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.patch_panel;network2IconXOffset=0.0001;network2IconYOffset=-0.0211;network2IconW="+(a=1)+";network2IconH="+(b=.3359)+";",50*a,50*b,"","Patch Panel",null,null,this.getTagsForStencil("mxgraph.networks2","patch panel","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.pc;network2IconYOffset=-0.0593;network2IconW="+(a=.9999)+";network2IconH="+(b=.7096)+";",50*a,50*b,"","PC",null,null,this.getTagsForStencil("mxgraph.networks2","pc personal computer","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.phone;network2IconXOffset=0.0009;network2IconYOffset=-0.0064;network2IconW="+
+(a=.9947)+";network2IconH="+(b=.7947)+";",50*a,50*b,"","Phone",null,null,this.getTagsForStencil("mxgraph.networks2","phone","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.printer;network2IconW="+(a=1)+";network2IconH="+(b=1.04)+";",50*a,50*b,"","Printer",
+null,null,this.getTagsForStencil("mxgraph.networks2","printer","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.projector_canvas;network2IconW="+(a=1)+";network2IconH="+(b=1.04)+";",50*a,50*b,"","Projector Canvas",null,null,this.getTagsForStencil("mxgraph.networks2","projector canvas","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.rack_cabinet;network2IconW="+(a=.4721)+";network2IconH="+(b=1)+";",50*a,50*b,"","Rack Cabinet",null,null,this.getTagsForStencil("mxgraph.networks2","rack cabinet","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.router;network2IconXOffset=0.0001;network2IconYOffset=-0.1142;network2IconW="+
+(a=1)+";network2IconH="+(b=.5485)+";",50*a,50*b,"","Router",null,null,this.getTagsForStencil("mxgraph.networks2","router","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.satellite_dish;network2IconXOffset=-0.0067;network2IconYOffset=0.0022;network2IconW="+(a=1.0065)+";network2IconH="+(b=.9957)+";",
+50*a,50*b,"","Satellite Dish",null,null,this.getTagsForStencil("mxgraph.networks2","satellite dish","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.satellite;network2IconXOffset=0.0149;network2IconYOffset=-0.00046;network2IconW="+(a=1.1553)+";network2IconH="+(b=.9741)+";",50*a,50*b,"","Satellite",
+null,null,this.getTagsForStencil("mxgraph.networks2","satellite","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.scanner;network2IconXOffset=0.00024;network2IconYOffset=-0.08;network2IconW="+(a=1.0001)+";network2IconH="+(b=.5965)+";",50*a,50*b,"","Scanner",null,null,this.getTagsForStencil("mxgraph.networks2",
+"scanner","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.server;network2IconW="+(a=1.0001)+";network2IconH="+(b=.5812)+";",50*a,50*b,"","Server",null,null,this.getTagsForStencil("mxgraph.networks2","server","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.social_media;network2IconYOffset=0.0153;network2IconW="+
+(a=1.02)+";network2IconH="+(b=.932)+";",50*a,50*b,"","Social Media",null,null,this.getTagsForStencil("mxgraph.networks2","social media","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.tablet;network2IconW="+(a=1)+";network2IconH="+(b=.6566)+";",50*a,50*b,"","Tablet",null,null,this.getTagsForStencil("mxgraph.networks2",
+"tablet","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.terminal;network2IconW="+(a=.8554)+";network2IconH="+(b=1)+";",50*a,50*b,"","Terminal",null,null,this.getTagsForStencil("mxgraph.networks2","terminal","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.threat;network2IconYOffset=-0.0472;network2IconW="+
+(a=1.0625)+";network2IconH="+(b=.9583)+";",50*a,50*b,"","Threat",null,null,this.getTagsForStencil("mxgraph.networks2","threat","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.ups;network2IconXOffset=-0.0006;network2IconYOffset=0.0003;network2IconW="+(a=.62)+";network2IconH="+(b=1.0006)+";",50*a,50*
+b,"","UPS",null,null,this.getTagsForStencil("mxgraph.networks2","ups uninterruptible power supply","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.user_female;network2IconXOffset=-0.0011;network2IconYOffset=-0.003;network2IconW="+(a=.8096)+";network2IconH="+(b=.994)+";",50*a,50*b,"","User, Female",
+null,null,this.getTagsForStencil("mxgraph.networks2","user female","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.user_male;network2IconW="+(a=.8918)+";network2IconH="+(b=1.0003)+";",50*a,50*b,"","User, Male",null,null,this.getTagsForStencil("mxgraph.networks2","user male","computer network ").join(" ")));
+d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.users;network2IconXOffset=0.0019;network2IconYOffset=-0.0004;network2IconW="+(a=1.0353)+";network2IconH="+(b=.6623)+";",50*a,50*b,"","Users",null,null,this.getTagsForStencil("mxgraph.networks2","users","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.video_projector;network2IconYOffset=0.013;network2IconW="+
+(a=1)+";network2IconH="+(b=.294)+";",50*a,50*b,"","Video Projector",null,null,this.getTagsForStencil("mxgraph.networks2","video projector","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.vr;network2IconYOffset=-0.015;network2IconW="+(a=1)+";network2IconH="+(b=.45)+";",50*a,50*b,"","VR",null,null,this.getTagsForStencil("mxgraph.networks2",
+"vr virtual reality","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.web_hosting;network2IconW="+(a=1)+";network2IconH="+(b=.9125)+";",50*a,50*b,"","Web Hosting",null,null,this.getTagsForStencil("mxgraph.networks2","web hosting","computer network ").join(" ")));d.push(this.createVertexTemplateEntry("fillColorStyles=neutralFill;neutralFill=#9DA6A8;shape=mxgraph.networks2.icon;aspect=fixed;fillColor=#EDEDED;strokeColor=#000000;gradientColor=#5B6163;network2IconShadow=1;network2bgFillColor=none;network2Icon=mxgraph.networks2.wireless_hub;network2IconYOffset=-0.1142;network2IconW="+
+(a=1)+";network2IconH="+(b=.5485)+";",50*a,50*b,"","Wireless Hub",null,null,this.getTagsForStencil("mxgraph.networks2","wireless hub","computer network ").join(" ")));this.addPaletteFunctions("network2","Network",!1,d);this.setCurrentSearchEntryLibrary()}})();(function(){Sidebar.prototype.addOfficePalette=function(){this.setCurrentSearchEntryLibrary("office","officeClouds");this.addOfficeCloudsPalette();this.setCurrentSearchEntryLibrary("office","officeCommunications");this.addOfficeCommunicationsPalette();this.setCurrentSearchEntryLibrary("office","officeConcepts");this.addOfficeConceptsPalette();this.setCurrentSearchEntryLibrary("office","officeDatabases");this.addOfficeDatabasesPalette();this.setCurrentSearchEntryLibrary("office","officeDevices");this.addOfficeDevicesPalette();
this.setCurrentSearchEntryLibrary("office","officeSecurity");this.addOfficeSecurityPalette();this.setCurrentSearchEntryLibrary("office","officeServers");this.addOfficeServersPalette();this.setCurrentSearchEntryLibrary("office","officeServices");this.addOfficeServicesPalette();this.setCurrentSearchEntryLibrary("office","officeSites");this.addOfficeSitesPalette();this.setCurrentSearchEntryLibrary("office","officeUsers");this.addOfficeUsersPalette();this.setCurrentSearchEntryLibrary()};Sidebar.prototype.addOfficeCloudsPalette=
function(){var a=[this.createVertexTemplateEntry("sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;outlineConnect=0;verticalAlign=top;align=center;shape=mxgraph.office.clouds.azure;",103,66,"","Azure",null,null,this.getTagsForStencil("mxgraph.office.clouds","azure","office cloud ").join(" ")),this.createVertexTemplateEntry("sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;outlineConnect=0;verticalAlign=top;align=center;shape=mxgraph.office.clouds.cloud;",
94,55,"","Cloud",null,null,this.getTagsForStencil("mxgraph.office.clouds","cloud","office cloud ").join(" ")),this.createVertexTemplateEntry("sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;fillColor=#505050;labelPosition=center;verticalLabelPosition=bottom;outlineConnect=0;verticalAlign=top;align=center;shape=mxgraph.office.clouds.cloud_disaster;",94,74,"","Cloud Disaster",null,null,this.getTagsForStencil("mxgraph.office.clouds","cloud disaster","office cloud ").join(" ")),this.createVertexTemplateEntry("sketch=0;pointerEvents=1;shadow=0;dashed=0;html=1;strokeColor=none;labelPosition=center;verticalLabelPosition=bottom;outlineConnect=0;verticalAlign=top;align=center;shape=mxgraph.office.clouds.cloud_disaster;fillColor=#ff0000;",
@@ -12106,9 +12149,9 @@ var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.createTemplateTagFirstArg=funct
$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(b,f,m){if(b==Array.prototype||b==Object.prototype)return b;b[f]=m.value;return b};
$jscomp.getGlobal=function(b){b=["object"==typeof globalThis&&globalThis,b,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var f=0;f<b.length;++f){var m=b[f];if(m&&m.Math==Math)return m}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(b,f){var m=$jscomp.propertyToPolyfillSymbol[f];if(null==m)return b[f];m=b[m];return void 0!==m?m:b[f]};$jscomp.polyfill=function(b,f,m,d){f&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(b,f,m,d):$jscomp.polyfillUnisolated(b,f,m,d))};
-$jscomp.polyfillUnisolated=function(b,f,m,d){m=$jscomp.global;b=b.split(".");for(d=0;d<b.length-1;d++){var t=b[d];if(!(t in m))return;m=m[t]}b=b[b.length-1];d=m[b];f=f(d);f!=d&&null!=f&&$jscomp.defineProperty(m,b,{configurable:!0,writable:!0,value:f})};
-$jscomp.polyfillIsolated=function(b,f,m,d){var t=b.split(".");b=1===t.length;d=t[0];d=!b&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var x=0;x<t.length-1;x++){var v=t[x];if(!(v in d))return;d=d[v]}t=t[t.length-1];m=$jscomp.IS_SYMBOL_NATIVE&&"es6"===m?d[t]:null;f=f(m);null!=f&&(b?$jscomp.defineProperty($jscomp.polyfills,t,{configurable:!0,writable:!0,value:f}):f!==m&&(void 0===$jscomp.propertyToPolyfillSymbol[t]&&(m=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[t]=$jscomp.IS_SYMBOL_NATIVE?
-$jscomp.global.Symbol(t):$jscomp.POLYFILL_PREFIX+m+"$"+t),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[t],{configurable:!0,writable:!0,value:f})))};$jscomp.underscoreProtoCanBeSet=function(){var b={a:!0},f={};try{return f.__proto__=b,f.a}catch(m){}return!1};
+$jscomp.polyfillUnisolated=function(b,f,m,d){m=$jscomp.global;b=b.split(".");for(d=0;d<b.length-1;d++){var q=b[d];if(!(q in m))return;m=m[q]}b=b[b.length-1];d=m[b];f=f(d);f!=d&&null!=f&&$jscomp.defineProperty(m,b,{configurable:!0,writable:!0,value:f})};
+$jscomp.polyfillIsolated=function(b,f,m,d){var q=b.split(".");b=1===q.length;d=q[0];d=!b&&d in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var x=0;x<q.length-1;x++){var C=q[x];if(!(C in d))return;d=d[C]}q=q[q.length-1];m=$jscomp.IS_SYMBOL_NATIVE&&"es6"===m?d[q]:null;f=f(m);null!=f&&(b?$jscomp.defineProperty($jscomp.polyfills,q,{configurable:!0,writable:!0,value:f}):f!==m&&(void 0===$jscomp.propertyToPolyfillSymbol[q]&&(m=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[q]=$jscomp.IS_SYMBOL_NATIVE?
+$jscomp.global.Symbol(q):$jscomp.POLYFILL_PREFIX+m+"$"+q),$jscomp.defineProperty(d,$jscomp.propertyToPolyfillSymbol[q],{configurable:!0,writable:!0,value:f})))};$jscomp.underscoreProtoCanBeSet=function(){var b={a:!0},f={};try{return f.__proto__=b,f.a}catch(m){}return!1};
$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(b,f){b.__proto__=f;if(b.__proto__!==f)throw new TypeError(b+" is not extensible");return b}:null;$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(b){if(!(b instanceof Object))throw new TypeError("Iterator result "+b+" is not an object");};
$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};
$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(b){this.yieldResult=b};$jscomp.generator.Context.prototype.throw_=function(b){this.abruptCompletion_={exception:b,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(b){this.abruptCompletion_={return:b};this.nextAddress=this.finallyAddress_};
@@ -12120,45 +12163,45 @@ $jscomp.generator.Context.PropertyIterator=function(b){this.object_=b;this.prope
$jscomp.generator.Engine_.prototype.next_=function(b){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,b,this.context_.next_);this.context_.next_(b);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.return_=function(b){this.context_.start_();var f=this.context_.yieldAllIterator_;if(f)return this.yieldAllStep_("return"in f?f["return"]:function(m){return{value:m,done:!0}},b,this.context_.return);this.context_.return(b);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.throw_=function(b){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],b,this.context_.next_);this.context_.throw_(b);return this.nextStep_()};
-$jscomp.generator.Engine_.prototype.yieldAllStep_=function(b,f,m){try{var d=b.call(this.context_.yieldAllIterator_,f);$jscomp.generator.ensureIteratorResultIsObject_(d);if(!d.done)return this.context_.stop_(),d;var t=d.value}catch(x){return this.context_.yieldAllIterator_=null,this.context_.throw_(x),this.nextStep_()}this.context_.yieldAllIterator_=null;m.call(this.context_,t);return this.nextStep_()};
+$jscomp.generator.Engine_.prototype.yieldAllStep_=function(b,f,m){try{var d=b.call(this.context_.yieldAllIterator_,f);$jscomp.generator.ensureIteratorResultIsObject_(d);if(!d.done)return this.context_.stop_(),d;var q=d.value}catch(x){return this.context_.yieldAllIterator_=null,this.context_.throw_(x),this.nextStep_()}this.context_.yieldAllIterator_=null;m.call(this.context_,q);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var b=this.program_(this.context_);if(b)return this.context_.stop_(),{value:b.value,done:!1}}catch(f){this.context_.yieldResult=void 0,this.context_.throw_(f)}this.context_.stop_();if(this.context_.abruptCompletion_){b=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(b.isException)throw b.exception;return{value:b.return,done:!0}}return{value:void 0,done:!0}};
$jscomp.generator.Generator_=function(b){this.next=function(f){return b.next_(f)};this.throw=function(f){return b.throw_(f)};this.return=function(f){return b.return_(f)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(b,f){f=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(f));$jscomp.setPrototypeOf&&b.prototype&&$jscomp.setPrototypeOf(f,b.prototype);return f};
-$jscomp.asyncExecutePromiseGenerator=function(b){function f(d){return b.next(d)}function m(d){return b.throw(d)}return new Promise(function(d,t){function x(v){v.done?d(v.value):Promise.resolve(v.value).then(f,m).then(x,t)}x(b.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(b){return $jscomp.asyncExecutePromiseGenerator(b())};$jscomp.asyncExecutePromiseGeneratorProgram=function(b){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b)))};
+$jscomp.asyncExecutePromiseGenerator=function(b){function f(d){return b.next(d)}function m(d){return b.throw(d)}return new Promise(function(d,q){function x(C){C.done?d(C.value):Promise.resolve(C.value).then(f,m).then(x,q)}x(b.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(b){return $jscomp.asyncExecutePromiseGenerator(b())};$jscomp.asyncExecutePromiseGeneratorProgram=function(b){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b)))};
DrawioFile=function(b,f){mxEventSource.call(this);this.ui=b;this.setData(f||"");this.initialData=this.getData();this.created=(new Date).getTime();this.stats={opened:0,merged:0,fileMerged:0,fileReloaded:0,conflicts:0,timeouts:0,saved:0,closed:0,destroyed:0,joined:0,checksumErrors:0,bytesSent:0,bytesReceived:0,msgSent:0,msgReceived:0,cacheHits:0,cacheMiss:0,cacheFail:0}};DrawioFile.SYNC=urlParams.sync||"auto";DrawioFile.LAST_WRITE_WINS=!0;DrawioFile.RESTRICT_EXPORT=!1;mxUtils.extend(DrawioFile,mxEventSource);
DrawioFile.prototype.allChangesSavedKey="allChangesSaved";DrawioFile.prototype.savingSpinnerKey="saving";DrawioFile.prototype.savingStatusKey="saving";DrawioFile.prototype.autosaveDelay=1500;DrawioFile.prototype.maxAutosaveDelay=3E4;DrawioFile.prototype.optimisticSyncDelay=300;DrawioFile.prototype.autosaveThread=null;DrawioFile.prototype.lastAutosave=null;DrawioFile.prototype.lastSaved=null;DrawioFile.prototype.lastChanged=null;DrawioFile.prototype.opened=null;DrawioFile.prototype.modified=!1;
DrawioFile.prototype.shadowModified=!1;DrawioFile.prototype.data=null;DrawioFile.prototype.shadowPages=null;DrawioFile.prototype.changeListenerEnabled=!0;DrawioFile.prototype.lastAutosaveRevision=null;DrawioFile.prototype.maxAutosaveRevisionDelay=3E5;DrawioFile.prototype.inConflictState=!1;DrawioFile.prototype.invalidChecksum=!1;DrawioFile.prototype.ageStart=null;DrawioFile.prototype.getSize=function(){return null!=this.data?this.data.length:0};
DrawioFile.prototype.getShadowPages=function(){null==this.shadowPages&&(this.shadowPages=this.ui.getPagesForXml(this.initialData));return this.shadowPages};DrawioFile.prototype.setShadowPages=function(b){this.shadowPages=b};
-DrawioFile.prototype.synchronizeFile=function(b,f){if(this.savingFile)null!=f&&f({message:mxResources.get("busy")});else{var m=!0,d=window.setTimeout(mxUtils.bind(this,function(){m=!1;null!=f&&f({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,f)})})}),this.ui.timeout),t=mxUtils.bind(this,function(v){m&&(window.clearTimeout(d),null!=f&&f(v))}),x=mxUtils.bind(this,function(){return!m});null!=this.sync?this.sync.fileChanged(mxUtils.bind(this,
-function(v){m&&(window.clearTimeout(d),this.sync.cleanup(b,f,v))}),t,x):this.updateFile(mxUtils.bind(this,function(){m&&(window.clearTimeout(d),null!=b&&b())}),t,x)}};
-DrawioFile.prototype.updateFile=function(b,f,m,d,t){null!=m&&m()||(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",t,"invalidChecksum",this.invalidChecksum),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=f&&f():this.getLatestVersion(mxUtils.bind(this,function(x){try{null!=m&&m()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[x]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=f&&f():null!=x?this.mergeFile(x,b,f,
-d,t):this.reloadFile(b,f))}catch(v){null!=f&&f(v)}}),f))};
-DrawioFile.prototype.mergeFile=function(b,f,m,d,t){try{var x=b.getShadowPages();if(null!=x&&0<x.length){var v=this.getShadowPages(),B=[this.ui.diffPages(null!=d?d:v,x)],J=this.ignorePatches(B);if(J)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",J),null!=f&&f();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var N=this.isModified()?this.ui.diffPages(v,
-this.isRealtime()?this.ownPages:this.ui.pages):null,I=this.ui.patchPages(this.ui.clonePages(v),B[0]),c=this.ui.getHashValueForPages(I,{}),e=this.ui.getHashValueForPages(x,{});EditorUi.debug("File.mergeFile",[this],"file",[b],"ui",this.ui.pages,"shadow",v,"pages",x,"patched",I,"patches",B,"changes",N,"checksum",c,"current",e,"valid",c==e,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",t);if(null!=c&&c!=e)this.checksumError(m,B,null,null,"mergeFile",
-c,e,b.getCurrentRevisionId());else{this.setShadowPages(x);if(null!=this.sync){var g=this.sync.patchRealtime(B,DrawioFile.LAST_WRITE_WINS?N:null,null,t);null==g||mxUtils.isEmptyObject(g)||B.push(g)}this.patch(B,DrawioFile.LAST_WRITE_WINS?N:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());this.descriptorChanged();null!=f&&f()}}catch(u){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=m&&m(u);try{var l=this.getCurrentUser(),n=null!=l?
-l.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),n,u)}catch(z){}}}else throw Error(mxResources.get("notADiagramFile"));}catch(u){null!=m&&m(u)}};
-DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var f=new mxCodec(mxUtils.createXmlDocument()),m=f.document.createElement("mxfile");if(null!=b)for(var d=0;d<b.length;d++){var t=f.encode(new mxGraphModel(b[d].root));"1"!=urlParams.dev&&(t=this.ui.anonymizeNode(t,!0));t.setAttribute("id",b[d].getId());b[d].viewState&&this.ui.editor.graph.saveViewState(b[d].viewState,t,!0);m.appendChild(t)}return mxUtils.getPrettyXml(m)};
+DrawioFile.prototype.synchronizeFile=function(b,f){if(this.savingFile)null!=f&&f({message:mxResources.get("busy")});else{var m=!0,d=window.setTimeout(mxUtils.bind(this,function(){m=!1;null!=f&&f({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:mxUtils.bind(this,function(){this.synchronizeFile(b,f)})})}),this.ui.timeout),q=mxUtils.bind(this,function(C){m&&(window.clearTimeout(d),null!=f&&f(C))}),x=mxUtils.bind(this,function(){return!m});null!=this.sync?this.sync.fileChanged(mxUtils.bind(this,
+function(C){m&&(window.clearTimeout(d),this.sync.cleanup(b,f,C))}),q,x):this.updateFile(mxUtils.bind(this,function(){m&&(window.clearTimeout(d),null!=b&&b())}),q,x)}};
+DrawioFile.prototype.updateFile=function(b,f,m,d,q){null!=m&&m()||(EditorUi.debug("DrawioFile.updateFile",[this],"immediate",q,"invalidChecksum",this.invalidChecksum),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=f&&f():this.getLatestVersion(mxUtils.bind(this,function(x){try{null!=m&&m()||(EditorUi.debug("DrawioFile.updateFile",[this],"invalidChecksum",this.invalidChecksum,"latestFile",[x]),this.ui.getCurrentFile()!=this||this.invalidChecksum?null!=f&&f():null!=x?this.mergeFile(x,b,f,
+d,q):this.reloadFile(b,f))}catch(C){null!=f&&f(C)}}),f))};
+DrawioFile.prototype.mergeFile=function(b,f,m,d,q){try{var x=b.getShadowPages();if(null!=x&&0<x.length){var C=this.getShadowPages(),y=[this.ui.diffPages(null!=d?d:C,x)],I=this.ignorePatches(y);if(I)this.inConflictState=this.invalidChecksum=!1,this.setDescriptor(b.getDescriptor()),this.descriptorChanged(),EditorUi.debug("File.mergeFile",[this],"file",[b],"ignored",I),null!=f&&f();else try{this.stats.fileMerged++;null!=this.sync&&this.sync.sendLocalChanges();var M=this.isModified()?this.ui.diffPages(C,
+this.isRealtime()?this.ownPages:this.ui.pages):null,H=this.ui.patchPages(this.ui.clonePages(C),y[0]),c=this.ui.getHashValueForPages(H,{}),e=this.ui.getHashValueForPages(x,{});EditorUi.debug("File.mergeFile",[this],"file",[b],"ui",this.ui.pages,"shadow",C,"pages",x,"patched",H,"patches",y,"changes",M,"checksum",c,"current",e,"valid",c==e,"from",this.getCurrentRevisionId(),"to",b.getCurrentRevisionId(),"modified",this.isModified(),"immediate",q);if(null!=c&&c!=e)this.checksumError(m,y,null,null,"mergeFile",
+c,e,b.getCurrentRevisionId());else{this.setShadowPages(x);if(null!=this.sync){var g=this.sync.patchRealtime(y,DrawioFile.LAST_WRITE_WINS?M:null,null,q);null==g||mxUtils.isEmptyObject(g)||y.push(g)}this.patch(y,DrawioFile.LAST_WRITE_WINS?M:null);this.inConflictState=this.invalidChecksum=!1;this.setDescriptor(b.getDescriptor());this.descriptorChanged();null!=f&&f()}}catch(u){this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=m&&m(u);try{var l=this.getCurrentUser(),p=null!=l?
+l.id:"unknown";EditorUi.logError("Error in mergeFile",null,this.getMode()+"."+this.getId(),p,u)}catch(z){}}}else throw Error(mxResources.get("notADiagramFile"));}catch(u){null!=m&&m(u)}};
+DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var f=new mxCodec(mxUtils.createXmlDocument()),m=f.document.createElement("mxfile");if(null!=b)for(var d=0;d<b.length;d++){var q=f.encode(new mxGraphModel(b[d].root));"1"!=urlParams.dev&&(q=this.ui.anonymizeNode(q,!0));q.setAttribute("id",b[d].getId());b[d].viewState&&this.ui.editor.graph.saveViewState(b[d].viewState,q,!0);m.appendChild(q)}return mxUtils.getPrettyXml(m)};
DrawioFile.prototype.compressReportData=function(b,f,m){f=null!=f?f:1E4;null!=m&&null!=b&&b.length>m?b=b.substring(0,m)+"[...]":null!=b&&b.length>f&&(b=Graph.compress(b)+"\n");return b};
-DrawioFile.prototype.checksumError=function(b,f,m,d,t,x,v,B){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var J=this.getCurrentUser(),N=null!=J?J.id:"unknown",I=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",c=JSON.stringify(f).length,e=null;if(null!=f&&1E3>c){b=[];for(m=0;m<f.length;m++)b.push(this.ui.anonymizePatch(f[m]));e=JSON.stringify(b);e=null!=e&&1E3>
-e.length?Graph.compress(e):null}this.getLatestVersion(mxUtils.bind(this,function(g){try{var l=null!=e?"report":"error",n=this.ui.getHashValueForPages(g.getShadowPages()),u="unknown",z="unknown",D="unknown";try{var C=null!=g.initialData&&0<g.initialData.length?mxUtils.parseXml(g.initialData).documentElement:null;null!=C&&(null!=C.getAttribute("version")&&(u=C.getAttribute("version")),null!=C.getAttribute("agent")&&(z=C.getAttribute("agent")),null!=C.getAttribute("type")&&(D=C.getAttribute("type")))}catch(A){}EditorUi.logError("Checksum "+
-l+" in "+t,null,this.getMode()+"."+I,"user_"+N+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+f.length+(null!=e?"-json_"+e:"")+"-size_"+this.getSize()+(null!=x?"-expected_"+x:"")+(null!=v?"-current_"+v:"")+(null!=B?"-rev_"+this.ui.hashValue(B):"")+(null!=n?"-latest_"+n:"")+"-latestRev_"+this.ui.hashValue(g.getCurrentRevisionId())+("-latestVersion_"+u)+("-latestAgent_"+z)+("-latestType_"+D));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+I,action:t,label:"user_"+
-N+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+f.length+"-size_"+this.getSize()})}catch(A){}}),function(){})}catch(g){}};
-DrawioFile.prototype.sendErrorReport=function(b,f,m,d){try{var t=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),x=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),v=this.getCurrentUser(),B=null!=v?this.ui.hashValue(v.id):"unknown",J=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",N=this.getTitle(),I=N.lastIndexOf(".");v="xml";0<I&&(v=N.substring(I));var c=null!=m?m.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()+" ("+v+")\nUser="+B+J+"\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!=f?"\n\n"+f:
-"")+(null!=m?"\n\nError: "+m.message:"")+"\n\nStack:\n"+c+"\n\nShadow:\n"+t+"\n\nData:\n"+x,d)}catch(e){}};
-DrawioFile.prototype.reloadFile=function(b,f){try{this.stats.fileReloaded++;var m=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),d=this.ui.editor.graph,t=d.getSelectionCells(),x=d.getViewState(),v=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(B){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[m],"viewState",[x],"latestFile",B);null!=B?(this.ui.replaceFileData(B.getData(),
-[m]),this.ui.restoreViewState(v,x,t),this.setDescriptor(B.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 J=this.ui.getCurrentFile();null!=J&&(J.stats=this.stats,J.patch([m]),J.fileChanged());this.ui.restoreViewState(v,x,t);null!=b&&b()}else null!=f&&f(this.ui.fileLoadedError)}),!0))}),f)}catch(B){null!=f&&f(B)}};
+DrawioFile.prototype.checksumError=function(b,f,m,d,q,x,C,y){this.stats.checksumErrors++;this.invalidChecksum=this.inConflictState=!0;this.descriptorChanged();null!=this.sync&&this.sync.updateOnlineState();null!=b&&b();try{var I=this.getCurrentUser(),M=null!=I?I.id:"unknown",H=""!=this.getId()?this.getId():"("+this.ui.hashValue(this.getTitle())+")",c=JSON.stringify(f).length,e=null;if(null!=f&&1E3>c){b=[];for(m=0;m<f.length;m++)b.push(this.ui.anonymizePatch(f[m]));e=JSON.stringify(b);e=null!=e&&1E3>
+e.length?Graph.compress(e):null}this.getLatestVersion(mxUtils.bind(this,function(g){try{var l=null!=e?"report":"error",p=this.ui.getHashValueForPages(g.getShadowPages()),u="unknown",z="unknown",E="unknown";try{var D=null!=g.initialData&&0<g.initialData.length?mxUtils.parseXml(g.initialData).documentElement:null;null!=D&&(null!=D.getAttribute("version")&&(u=D.getAttribute("version")),null!=D.getAttribute("agent")&&(z=D.getAttribute("agent")),null!=D.getAttribute("type")&&(E=D.getAttribute("type")))}catch(A){}EditorUi.logError("Checksum "+
+l+" in "+q,null,this.getMode()+"."+H,"user_"+M+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+f.length+(null!=e?"-json_"+e:"")+"-size_"+this.getSize()+(null!=x?"-expected_"+x:"")+(null!=C?"-current_"+C:"")+(null!=y?"-rev_"+this.ui.hashValue(y):"")+(null!=p?"-latest_"+p:"")+"-latestRev_"+this.ui.hashValue(g.getCurrentRevisionId())+("-latestVersion_"+u)+("-latestAgent_"+z)+("-latestType_"+E));EditorUi.logEvent({category:"CHECKSUM-ERROR-SYNC-FILE-"+H,action:q,label:"user_"+
+M+(null!=this.sync?"-client_"+this.sync.clientId:"-nosync")+"-bytes_"+c+"-patches_"+f.length+"-size_"+this.getSize()})}catch(A){}}),function(){})}catch(g){}};
+DrawioFile.prototype.sendErrorReport=function(b,f,m,d){try{var q=this.compressReportData(this.getAnonymizedXmlForPages(this.getShadowPages()),25E3),x=this.compressReportData(this.getAnonymizedXmlForPages(this.ui.pages),25E3),C=this.getCurrentUser(),y=null!=C?this.ui.hashValue(C.id):"unknown",I=null!=this.sync?"-client_"+this.sync.clientId:"-nosync",M=this.getTitle(),H=M.lastIndexOf(".");C="xml";0<H&&(C=M.substring(H));var c=null!=m?m.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()+" ("+C+")\nUser="+y+I+"\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!=f?"\n\n"+f:
+"")+(null!=m?"\n\nError: "+m.message:"")+"\n\nStack:\n"+c+"\n\nShadow:\n"+q+"\n\nData:\n"+x,d)}catch(e){}};
+DrawioFile.prototype.reloadFile=function(b,f){try{this.stats.fileReloaded++;var m=this.ui.diffPages(this.getShadowPages(),this.isRealtime()?this.ownPages:this.ui.pages),d=this.ui.editor.graph,q=d.getSelectionCells(),x=d.getViewState(),C=this.ui.currentPage;this.getLatestVersion(mxUtils.bind(this,function(y){EditorUi.debug("DrawioFile.reloadFile",[this],"modified",this.isModified(),"rev",this.getCurrentRevisionId(),"changes",[m],"viewState",[x],"latestFile",y);null!=y?(this.ui.replaceFileData(y.getData(),
+[m]),this.ui.restoreViewState(C,x,q),this.setDescriptor(y.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 I=this.ui.getCurrentFile();null!=I&&(I.stats=this.stats,I.patch([m]),I.fileChanged());this.ui.restoreViewState(C,x,q);null!=b&&b()}else null!=f&&f(this.ui.fileLoadedError)}),!0))}),f)}catch(y){null!=f&&f(y)}};
DrawioFile.prototype.copyFile=function(b,f){this.ui.editor.editAsNew(this.ui.getFileData(!0),this.ui.getCopyFilename(this))};DrawioFile.prototype.ignorePatches=function(b){var f=!0;if(null!=b)for(var m=0;m<b.length&&f;m++)f=f&&mxUtils.isEmptyObject(b[m]);return f};
-DrawioFile.prototype.patch=function(b,f,m,d){if(null!=b){var t=this.ui.editor.undoManager,x=t.history.slice(),v=t.indexOfNextAdd,B=this.ui.editor.graph;B.container.style.visibility="hidden";var J=this.changeListenerEnabled;this.changeListenerEnabled=m;var N=B.foldingEnabled,I=B.mathEnabled,c=B.cellRenderer.redraw;B.cellRenderer.redraw=function(z){z.view.graph.isEditing(z.cell)&&(z.view.graph.scrollCellToVisible(z.cell),z.view.graph.cellEditor.resize());c.apply(this,arguments)};B.model.beginUpdate();
-try{if(m){for(var e=this.ui.pages.slice(),g=this.ui.currentPage,l=this.ui.applyPatches(this.ui.pages,b,!0,f,this.isModified()),n=0;n<l.length;n++){var u=mxUtils.indexOf(this.ui.pages,l[n]);0>u?this.ui.insertPage(l[n],Math.min(n,this.ui.pages.length)):this.ui.movePage(u,n)}for(n=0;n<e.length;n++)0>mxUtils.indexOf(l,e[n])&&this.ui.removePage(e[n]);0<=mxUtils.indexOf(this.ui.pages,g)&&this.ui.selectPage(g,!0)}else this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,f,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);B.checkDefaultParent()}finally{B.container.style.visibility="";B.model.endUpdate();B.cellRenderer.redraw=c;this.changeListenerEnabled=J;m||(t.history=x,t.indexOfNextAdd=v,t.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)I!=B.mathEnabled?(this.ui.editor.updateGraphComponents(),B.refresh()):(N!=B.foldingEnabled?
-B.view.revalidate():B.view.validate(),B.sizeDidChange());null!=this.sync&&this.isRealtime()&&!d&&(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",f,"undoable",m)}return b};
-DrawioFile.prototype.save=function(b,f,m,d,t,x){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",d,"overwrite",t,"manual",x,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!t&&this.invalidChecksum)if(null!=m)m({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=f&&f();else if(null!=m)m({message:mxResources.get("readOnly")});
-else throw Error(mxResources.get("readOnly"));}catch(v){if(null!=m)m(v);else throw v;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var f=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=f&&(f.viewState=this.ui.editor.graph.getViewState(),f.needsUpdate=!0)}f=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return f};
+DrawioFile.prototype.patch=function(b,f,m,d){if(null!=b){var q=this.ui.editor.undoManager,x=q.history.slice(),C=q.indexOfNextAdd,y=this.ui.editor.graph;y.container.style.visibility="hidden";var I=this.changeListenerEnabled;this.changeListenerEnabled=m;var M=y.foldingEnabled,H=y.mathEnabled,c=y.cellRenderer.redraw;y.cellRenderer.redraw=function(z){z.view.graph.isEditing(z.cell)&&(z.view.graph.scrollCellToVisible(z.cell),z.view.graph.cellEditor.resize());c.apply(this,arguments)};y.model.beginUpdate();
+try{if(m){for(var e=this.ui.pages.slice(),g=this.ui.currentPage,l=this.ui.applyPatches(this.ui.pages,b,!0,f,this.isModified()),p=0;p<l.length;p++){var u=mxUtils.indexOf(this.ui.pages,l[p]);0>u?this.ui.insertPage(l[p],Math.min(p,this.ui.pages.length)):this.ui.movePage(u,p)}for(p=0;p<e.length;p++)0>mxUtils.indexOf(l,e[p])&&this.ui.removePage(e[p]);0<=mxUtils.indexOf(this.ui.pages,g)&&this.ui.selectPage(g,!0)}else this.ui.pages=this.ui.applyPatches(this.ui.pages,b,!0,f,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);y.checkDefaultParent()}finally{y.container.style.visibility="";y.model.endUpdate();y.cellRenderer.redraw=c;this.changeListenerEnabled=I;m||(q.history=x,q.indexOfNextAdd=C,q.fireEvent(new mxEventObject(mxEvent.CLEAR)));if(null==this.ui.currentPage||this.ui.currentPage.needsUpdate)H!=y.mathEnabled?(this.ui.editor.updateGraphComponents(),y.refresh()):(M!=y.foldingEnabled?
+y.view.revalidate():y.view.validate(),y.sizeDidChange());null!=this.sync&&this.isRealtime()&&!d&&(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",f,"undoable",m)}return b};
+DrawioFile.prototype.save=function(b,f,m,d,q,x){try{if(EditorUi.debug("DrawioFile.save",[this],"revision",b,"unloading",d,"overwrite",q,"manual",x,"saving",this.savingFile,"editable",this.isEditable(),"invalidChecksum",this.invalidChecksum),this.isEditable())if(!q&&this.invalidChecksum)if(null!=m)m({message:mxResources.get("checksum")});else throw Error(mxResources.get("checksum"));else this.updateFileData(),this.clearAutosave(),null!=f&&f();else if(null!=m)m({message:mxResources.get("readOnly")});
+else throw Error(mxResources.get("readOnly"));}catch(C){if(null!=m)m(C);else throw C;}};DrawioFile.prototype.createData=function(){var b=this.ui.pages;if(this.isRealtime()&&(this.ui.pages=this.ownPages,null!=this.ui.currentPage)){var f=this.ui.getPageById(this.ui.currentPage.getId(),this.ownPages);null!=f&&(f.viewState=this.ui.editor.graph.getViewState(),f.needsUpdate=!0)}f=this.ui.getFileData(null,null,null,null,null,null,null,null,this,!this.isCompressed());this.ui.pages=b;return f};
DrawioFile.prototype.updateFileData=function(){null!=this.sync&&this.sync.sendLocalChanges();this.setData(this.createData());null!=this.sync&&this.sync.fileDataUpdated()};DrawioFile.prototype.isCompressedStorage=function(){return Editor.defaultCompressed};DrawioFile.prototype.isCompressed=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("compressed"):null;return null!=b?"false"!=b:this.isCompressedStorage()&&Editor.compressXml};
DrawioFile.prototype.setLocked=function(b){this.ui.fileNode.setAttribute("locked",b?"true":"false");this.ui.fireEvent(new mxEventObject("lockedChanged"));this.fileChanged();b&&this.ui.editor.graph.clearSelection()};DrawioFile.prototype.isLocked=function(){var b=null!=this.ui.fileNode?this.ui.fileNode.getAttribute("locked"):null;return null!=b?"true"==b:!1};DrawioFile.prototype.saveAs=function(b,f,m){};DrawioFile.prototype.saveFile=function(b,f,m,d){};DrawioFile.prototype.getFileUrl=function(){return null};
DrawioFile.prototype.getFolderUrl=function(b){return null};DrawioFile.prototype.getPublicUrl=function(b){b(null)};DrawioFile.prototype.isRestricted=function(){return DrawioFile.RESTRICT_EXPORT};DrawioFile.prototype.isModified=function(){return this.modified};DrawioFile.prototype.getShadowModified=function(){return this.shadowModified};DrawioFile.prototype.setShadowModified=function(b){this.shadowModified=b};DrawioFile.prototype.setModified=function(b){this.shadowModified=this.modified=b};
DrawioFile.prototype.isAutosaveOptional=function(){return!1};DrawioFile.prototype.isAutosave=function(){return!this.inConflictState&&this.ui.editor.autosave};DrawioFile.prototype.isRenamable=function(){return!1};DrawioFile.prototype.rename=function(b,f,m){};DrawioFile.prototype.isMovable=function(){return!1};DrawioFile.prototype.isTrashed=function(){return!1};DrawioFile.prototype.move=function(b,f,m){};
-DrawioFile.prototype.share=function(){null!=this.ui.drive?this.ui.confirm(mxResources.get("saveItToGoogleDriveToCollaborate",[this.getTitle()]),mxUtils.bind(this,function(){this.ui.pickFolder(App.MODE_GOOGLE,mxUtils.bind(this,function(b){var f=this.ui.editor.graph,m=f.getSelectionCells(),d=f.getViewState(),t=this.ui.currentPage;this.ui.createFile(this.getTitle(),this.ui.getFileData(null,null,null,null,null,null,null,null,this),null,App.MODE_GOOGLE,null,!0,b,null,null,mxUtils.bind(this,function(){this.ui.restoreViewState(t,
+DrawioFile.prototype.share=function(){null!=this.ui.drive?this.ui.confirm(mxResources.get("saveItToGoogleDriveToCollaborate",[this.getTitle()]),mxUtils.bind(this,function(){this.ui.pickFolder(App.MODE_GOOGLE,mxUtils.bind(this,function(b){var f=this.ui.editor.graph,m=f.getSelectionCells(),d=f.getViewState(),q=this.ui.currentPage;this.ui.createFile(this.getTitle(),this.ui.getFileData(null,null,null,null,null,null,null,null,this),null,App.MODE_GOOGLE,null,!0,b,null,null,mxUtils.bind(this,function(){this.ui.restoreViewState(q,
d,m);this.ui.actions.get("share").funct()}))}))}),null,mxResources.get("saveToGoogleDrive",null,"Save to Google Drive"),mxResources.get("cancel")):this.ui.alert(mxResources.get("sharingAvailable"),null,380)};DrawioFile.prototype.getHash=function(){return""};DrawioFile.prototype.getId=function(){return""};DrawioFile.prototype.isEditable=function(){return!this.ui.editor.isChromelessView()||this.ui.editor.editable};DrawioFile.prototype.getUi=function(){return this.ui};DrawioFile.prototype.getTitle=function(){return""};
DrawioFile.prototype.setData=function(b){this.data=b;EditorUi.debug("DrawioFile.setData",[this],"data",[b])};DrawioFile.prototype.getData=function(){return this.data};DrawioFile.prototype.removeExtFonts=function(b){for(var f=0;null!=b&&f<b.length;f++){var m=b[f];null!=m.id&&0==m.id.indexOf("extFont_")&&m.parentNode.removeChild(m)}};
DrawioFile.prototype.open=function(){this.stats.opened++;var b=this.getData();null!=b&&(this.ui.setFileData(b),this.isModified()||this.setShadowPages(this.ui.clonePages(this.ui.pages)));this.installListeners();this.isSyncSupported()&&this.startSync();EditorUi.debug("DrawioFile.open",[this])};DrawioFile.prototype.isPolling=function(){return!1};DrawioFile.prototype.getPollingInterval=function(){return 1E4};DrawioFile.prototype.isSyncSupported=function(){return!1};
@@ -12185,475 +12228,475 @@ DrawioFile.prototype.showRefreshDialog=function(b,f,m){null==m&&(m=mxResources.g
function(){null!=b&&b();this.ui.alert(mxResources.get("copyCreated"))}),f)}),null,mxResources.get("merge"),mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&this.reloadFile(mxUtils.bind(this,function(){this.ui.spinner.stop();null!=b&&b()}),mxUtils.bind(this,function(){this.ui.spinner.stop();null!=f&&f()}))}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.ui.hideDialog()}),380,130))};
DrawioFile.prototype.showCopyDialog=function(b,f,m){this.invalidChecksum=this.inConflictState=!1;this.addUnsavedStatus();this.ui.showError(mxResources.get("externalChanges"),mxResources.get("fileChangedOverwriteDialog"),mxResources.get("makeCopy"),mxUtils.bind(this,function(){this.copyFile(b,f)}),null,mxResources.get("overwrite"),m,mxResources.get("cancel"),mxUtils.bind(this,function(){this.ui.hideDialog()}),380,150)};
DrawioFile.prototype.showConflictDialog=function(b,f){this.ui.showError(mxResources.get("externalChanges"),mxResources.get("fileChangedSyncDialog"),mxResources.get("overwrite"),b,null,mxResources.get("merge"),f,mxResources.get("cancel"),mxUtils.bind(this,function(){this.ui.hideDialog();this.handleFileError(null,!1)}),380,130)};
-DrawioFile.prototype.redirectToNewApp=function(b,f){this.ui.spinner.stop();if(!this.redirectDialogShowing){this.redirectDialogShowing=!0;var m=window.location.protocol+"//"+window.location.host+"/"+this.ui.getSearch("create title mode url drive splash state".split(" "))+"#"+this.getHash(),d=mxResources.get("redirectToNewApp");null!=f&&(d+=" ("+f+")");f=mxUtils.bind(this,function(){var t=mxUtils.bind(this,function(){this.redirectDialogShowing=!1;window.location.href==m?window.location.reload():window.location.href=
-m});null==b&&this.isModified()?this.ui.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){this.redirectDialogShowing=!1}),t,mxResources.get("cancel"),mxResources.get("discardChanges")):t()});null!=b?this.isModified()?this.ui.confirm(d,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()}),f,mxResources.get("cancel"),mxResources.get("discardChanges")):this.ui.confirm(d,f,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()})):this.ui.alert(mxResources.get("redirectToNewApp"),
+DrawioFile.prototype.redirectToNewApp=function(b,f){this.ui.spinner.stop();if(!this.redirectDialogShowing){this.redirectDialogShowing=!0;var m=window.location.protocol+"//"+window.location.host+"/"+this.ui.getSearch("create title mode url drive splash state".split(" "))+"#"+this.getHash(),d=mxResources.get("redirectToNewApp");null!=f&&(d+=" ("+f+")");f=mxUtils.bind(this,function(){var q=mxUtils.bind(this,function(){this.redirectDialogShowing=!1;window.location.href==m?window.location.reload():window.location.href=
+m});null==b&&this.isModified()?this.ui.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){this.redirectDialogShowing=!1}),q,mxResources.get("cancel"),mxResources.get("discardChanges")):q()});null!=b?this.isModified()?this.ui.confirm(d,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()}),f,mxResources.get("cancel"),mxResources.get("discardChanges")):this.ui.confirm(d,f,mxUtils.bind(this,function(){this.redirectDialogShowing=!1;b()})):this.ui.alert(mxResources.get("redirectToNewApp"),
f)}};
DrawioFile.prototype.handleFileSuccess=function(b){this.ui.spinner.stop();this.ui.getCurrentFile()==this&&(EditorUi.debug("DrawioFile.handleFileSuccess",[this],"saved",b,"modified",this.isModified(),"remoteFileChanged",null==this.sync?"n/a":this.sync.remoteFileChanged),this.isModified()?this.fileChanged():b?(this.isTrashed()?this.ui.updateStatus(mxUtils.bind(this,function(){this.addAllSavedStatus(mxUtils.htmlEntities(mxResources.get(this.allChangesSavedKey))+" ("+mxUtils.htmlEntities(mxResources.get("fileMovedToTrash"))+")")})):
this.ui.updateStatus(mxUtils.bind(this,function(){this.addAllSavedStatus()})),null!=this.sync&&(this.sync.resetUpdateStatusThread(),this.sync.remoteFileChanged&&(this.sync.remoteFileChanged=!1,this.sync.fileChangedNotify()))):this.ui.clearStatus())};
DrawioFile.prototype.handleFileError=function(b,f){this.ui.spinner.stop();this.ui.getCurrentFile()==this&&(this.inConflictState?this.handleConflictError(b,f):(this.isModified()&&this.addUnsavedStatus(b),f?this.ui.handleError(b,null!=b?mxResources.get("errorSavingFile"):null):this.isModified()||this.ui.updateStatus(mxUtils.bind(this,function(){var m=this.getErrorMessage(b);null!=m&&60<m.length&&(m=m.substring(0,60)+"...");this.ui.editor.setStatus('<div class="geStatusAlert">'+mxUtils.htmlEntities(mxResources.get("error"))+
(null!=m?" ("+mxUtils.htmlEntities(m)+")":"")+"</div>")}))))};
-DrawioFile.prototype.handleConflictError=function(b,f){var m=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),d=mxUtils.bind(this,function(v){this.handleFileError(v,!0)}),t=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.clearStatus(),this.save(!0,m,d,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),x=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
-this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,m,d,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),d)});"none"==DrawioFile.SYNC?this.showCopyDialog(m,d,t):this.invalidChecksum&&f?this.showRefreshDialog(m,d,this.getErrorMessage(b)):f?this.showConflictDialog(t,x):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument")));
+DrawioFile.prototype.handleConflictError=function(b,f){var m=mxUtils.bind(this,function(){this.handleFileSuccess(!0)}),d=mxUtils.bind(this,function(C){this.handleFileError(C,!0)}),q=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&(this.ui.clearStatus(),this.save(!0,m,d,null,!0,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage))}),x=mxUtils.bind(this,function(){this.ui.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
+this.synchronizeFile(mxUtils.bind(this,function(){this.ui.spinner.stop();this.ui.spinner.spin(document.body,mxResources.get(this.savingSpinnerKey))&&this.save(!0,m,d,null,null,this.constructor!=GitHubFile&&this.constructor!=GitLabFile||null==b?null:b.commitMessage)}),d)});"none"==DrawioFile.SYNC?this.showCopyDialog(m,d,q):this.invalidChecksum&&f?this.showRefreshDialog(m,d,this.getErrorMessage(b)):f?this.showConflictDialog(q,x):this.addConflictStatus(this.getErrorMessage(b),mxUtils.bind(this,function(){this.ui.editor.setStatus(mxUtils.htmlEntities(mxResources.get("updatingDocument")));
this.synchronizeFile(m,d)}))};DrawioFile.prototype.getErrorMessage=function(b){var f=null!=b?null!=b.error?b.error.message:b.message:null;null==f&&null!=b&&b.code==App.ERROR_TIMEOUT?f=mxResources.get("timeout"):"0"==f&&(f=mxResources.get("noResponse"));return f};DrawioFile.prototype.isOverdue=function(){return null!=this.ageStart&&Date.now()-this.ageStart.getTime()>=this.ui.warnInterval};
-DrawioFile.prototype.compressionChanged=function(b){var f=null!=this.ownPages?this.ownPages:this.ui.pages;if(null!=f)for(var m=0;m<f.length;m++){var d=f[m].node;if(null!=d&&(null==this.ui.currentPage||this.ui.currentPage.getId()!=f[m].getId())){var t=d.getElementsByTagName("mxGraphModel");t=0<t.length?t[0]:null;var x=Graph.decompress(mxUtils.getNodeValue(d));b?0==x.length&&null!=t&&(EditorUi.removeChildNodes(d),mxUtils.setTextContent(d,Graph.compressNode(t)),EditorUi.debug("DrawioFile.compressionChanged",
-[this],"Page "+m+" compressed")):0<x.length&&null==t&&(EditorUi.removeChildNodes(d),d.appendChild(mxUtils.parseXml(x).documentElement),EditorUi.debug("DrawioFile.compressionChanged",[this],"Page "+m+" decompressed"))}}};DrawioFile.prototype.fileReplaced=function(b){this.inConflictState=this.invalidChecksum=!1;null!=b&&this.patch(b);null!=this.sync&&this.sync.initRealtime();EditorUi.debug("DrawioFile.fileReplaced",[this],"patches",b)};
+DrawioFile.prototype.compressionChanged=function(b){var f=null!=this.ownPages?this.ownPages:this.ui.pages;if(null!=f)for(var m=0;m<f.length;m++){var d=f[m].node;if(null!=d&&(null==this.ui.currentPage||this.ui.currentPage.getId()!=f[m].getId())){var q=d.getElementsByTagName("mxGraphModel");q=0<q.length?q[0]:null;var x=Graph.decompress(mxUtils.getNodeValue(d));b?0==x.length&&null!=q&&(EditorUi.removeChildNodes(d),mxUtils.setTextContent(d,Graph.compressNode(q)),EditorUi.debug("DrawioFile.compressionChanged",
+[this],"Page "+m+" compressed")):0<x.length&&null==q&&(EditorUi.removeChildNodes(d),d.appendChild(mxUtils.parseXml(x).documentElement),EditorUi.debug("DrawioFile.compressionChanged",[this],"Page "+m+" decompressed"))}}};DrawioFile.prototype.fileReplaced=function(b){this.inConflictState=this.invalidChecksum=!1;null!=b&&this.patch(b);null!=this.sync&&this.sync.initRealtime();EditorUi.debug("DrawioFile.fileReplaced",[this],"patches",b)};
DrawioFile.prototype.fileChanged=function(b){b=null!=b?b:!0;this.lastChanged=new Date;this.setModified(!0);EditorUi.debug("DrawioFile.fileChanged",[this],"autosaveDelay",this.autosaveDelay,"autosave",this.isAutosave(),"saving",this.savingFile);this.isAutosave()?(null!=this.savingStatusKey&&this.ui.updateStatus(mxUtils.bind(this,function(){this.addAllSavedStatus(mxUtils.htmlEntities(mxResources.get(this.savingStatusKey))+"...")})),this.ui.scheduleSanityCheck(),null==this.ageStart&&(this.ageStart=new Date),
this.autosave(this.autosaveDelay,this.maxAutosaveDelay,mxUtils.bind(this,function(f){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(f){this.handleFileError(f)}))):(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 f=Editor.guid(32);Editor.enableRealtimeCache&&null!=this.sync&&!this.isOptimisticSync()?this.sync.createToken(f,mxUtils.bind(this,function(m){EditorUi.debug("DrawioFile.createSecret",[this],"secret",f,"token",m);b(f,m)}),mxUtils.bind(this,function(){b(f)})):b(f)};DrawioFile.prototype.fileSaving=function(){null!=this.sync&&this.sync.fileSaving()};
-DrawioFile.prototype.fileSaved=function(b,f,m,d,t,x,v){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;x=null!=x?x:this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(x),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=m&&m()):this.sync.fileSaved(x,f,m,d,t,v)}catch(N){this.invalidChecksum=
-this.inConflictState=!0;this.descriptorChanged();null!=d&&d(N);try{var B=this.getCurrentUser(),J=null!=B?B.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),J,N)}catch(I){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[f],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(N){this.descriptorChanged(),null!=d&&d(N)}};
-DrawioFile.prototype.autosave=function(b,f,m,d){null==this.lastAutosave&&(this.lastAutosave=Date.now());var t=Date.now()-this.lastAutosave<f?b:0;this.clearAutosave();var x=window.setTimeout(mxUtils.bind(this,function(){try{if(this.lastAutosave=null,this.autosaveThread==x&&(this.autosaveThread=null),EditorUi.debug("DrawioFile.autosave",[this],"thread",x,"modified",this.isModified(),"now",this.isAutosaveNow(),"saving",this.savingFile),this.isModified()&&this.isAutosaveNow()){var v=this.isAutosaveRevision();
-v&&(this.lastAutosaveRevision=(new Date).getTime());this.save(v,mxUtils.bind(this,function(B){this.autosaveCompleted();null!=m&&m(B)}),mxUtils.bind(this,function(B){null!=d&&d(B)}))}else this.isModified()||this.ui.clearStatus(),null!=m&&m(null)}catch(B){null!=d&&d(B)}}),t);this.autosaveThread=x;EditorUi.debug("DrawioFile.autosave",[this],"thread",x,"delay",b,"maxDelay",f,"actualDelay",t,"lastAutosave",this.lastAutosave,"saving",this.savingFile)};DrawioFile.prototype.isAutosaveNow=function(){return!0};
+DrawioFile.prototype.fileSaved=function(b,f,m,d,q,x,C){this.lastSaved=new Date;this.ageStart=null;this.stats.saved++;try{this.invalidChecksum=this.inConflictState=!1;x=null!=x?x:this.ui.getPagesForXml(b);try{null==this.sync||this.isOptimisticSync()?(this.setShadowPages(x),null!=this.sync&&(this.sync.lastModified=this.getLastModifiedDate(),this.sync.resetUpdateStatusThread(),this.isRealtime()&&this.sync.scheduleCleanup()),null!=m&&m()):this.sync.fileSaved(x,f,m,d,q,C)}catch(M){this.invalidChecksum=
+this.inConflictState=!0;this.descriptorChanged();null!=d&&d(M);try{var y=this.getCurrentUser(),I=null!=y?y.id:"unknown";EditorUi.logError("Error in fileSaved",null,this.getMode()+"."+this.getId(),I,M)}catch(H){}}EditorUi.debug("DrawioFile.fileSaved",[this],"savedData",[b],"desc",[f],"inConflictState",this.inConflictState,"invalidChecksum",this.invalidChecksum)}catch(M){this.descriptorChanged(),null!=d&&d(M)}};
+DrawioFile.prototype.autosave=function(b,f,m,d){null==this.lastAutosave&&(this.lastAutosave=Date.now());var q=Date.now()-this.lastAutosave<f?b:0;this.clearAutosave();var x=window.setTimeout(mxUtils.bind(this,function(){try{if(this.lastAutosave=null,this.autosaveThread==x&&(this.autosaveThread=null),EditorUi.debug("DrawioFile.autosave",[this],"thread",x,"modified",this.isModified(),"now",this.isAutosaveNow(),"saving",this.savingFile),this.isModified()&&this.isAutosaveNow()){var C=this.isAutosaveRevision();
+C&&(this.lastAutosaveRevision=(new Date).getTime());this.save(C,mxUtils.bind(this,function(y){this.autosaveCompleted();null!=m&&m(y)}),mxUtils.bind(this,function(y){null!=d&&d(y)}))}else this.isModified()||this.ui.clearStatus(),null!=m&&m(null)}catch(y){null!=d&&d(y)}}),q);this.autosaveThread=x;EditorUi.debug("DrawioFile.autosave",[this],"thread",x,"delay",b,"maxDelay",f,"actualDelay",q,"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"))};
DrawioFile.prototype.contentChanged=function(){this.fireEvent(new mxEventObject("contentChanged"))};DrawioFile.prototype.close=function(b){try{this.isAutosave()&&this.isModified()&&(this.updateFileData(),this.save(this.isAutosaveRevision(),null,null,b))}catch(f){}this.stats.closed++;this.destroy()};DrawioFile.prototype.hasSameExtension=function(b,f){if(null!=b&&null!=f){var m=b.lastIndexOf(".");b=0<m?b.substring(m):"";m=f.lastIndexOf(".");return b===(0<m?f.substring(m):"")}return b==f};
DrawioFile.prototype.removeListeners=function(){null!=this.changeListener&&(this.ui.editor.graph.model.removeListener(this.changeListener),this.ui.editor.graph.removeListener(this.changeListener),this.ui.removeListener(this.changeListener),this.changeListener=null)};DrawioFile.prototype.destroy=function(){this.clearAutosave();this.removeListeners();this.stats.destroyed++;null!=this.sync&&(this.sync.destroy(),this.sync=null)};DrawioFile.prototype.commentsSupported=function(){return!1};
-DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,f){b([])};DrawioFile.prototype.addComment=function(b,f,m){f(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,f){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,f)};LocalFile=function(b,f,m,d,t,x,v){DrawioFile.call(this,b,f);this.title=m;this.mode=d?null:App.MODE_DEVICE;this.fileHandle=t;this.desc=x;this.editable=v};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,f,m,d,t){this.saveAs(this.title,f,m,d,t)};LocalFile.prototype.saveAs=function(b,f,m,d,t){this.saveFile(b,!1,f,m,null,d,t)};
+DrawioFile.prototype.commentsRefreshNeeded=function(){return!0};DrawioFile.prototype.commentsSaveNeeded=function(){return!1};DrawioFile.prototype.getComments=function(b,f){b([])};DrawioFile.prototype.addComment=function(b,f,m){f(Date.now())};DrawioFile.prototype.canReplyToReplies=function(){return!0};DrawioFile.prototype.canComment=function(){return!0};DrawioFile.prototype.newComment=function(b,f){return new DrawioComment(this,null,b,Date.now(),Date.now(),!1,f)};LocalFile=function(b,f,m,d,q,x,C){DrawioFile.call(this,b,f);this.title=m;this.mode=d?null:App.MODE_DEVICE;this.fileHandle=q;this.desc=x;this.editable=C};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,f,m,d,q){this.saveAs(this.title,f,m,d,q)};LocalFile.prototype.saveAs=function(b,f,m,d,q){this.saveFile(b,!1,f,m,null,d,q)};
LocalFile.prototype.getDescriptor=function(){return this.desc};LocalFile.prototype.setDescriptor=function(b){this.desc=b};LocalFile.prototype.getLatestVersion=function(b,f){null==this.fileHandle?null!=f&&f({message:mxResources.get("cannotOpenFile")}):this.ui.loadFileSystemEntry(this.fileHandle,b,f)};
-LocalFile.prototype.saveFile=function(b,f,m,d,t,x,v){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;t||this.updateFileData();var B=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var J=this.getData(),N=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=m&&m()}),I=mxUtils.bind(this,function(c){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
-!0;var e=mxUtils.bind(this,function(l){this.savingFile=!1;null!=d&&d({error:l})});this.saveDraft(J);this.fileHandle.createWritable().then(mxUtils.bind(this,function(l){this.fileHandle.getFile().then(mxUtils.bind(this,function(n){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[n],"conflict",this.desc.lastModified!=n.lastModified);v||this.desc.lastModified==n.lastModified?l.write(B?this.ui.base64ToBlob(c,"image/png"):c).then(mxUtils.bind(this,function(){l.close().then(mxUtils.bind(this,
-function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(u){try{var z=this.desc;this.savingFile=!1;this.desc=u;this.fileSaved(J,z,N,e);this.removeDraft()}catch(D){e(D)}}),e)}),e)}),e):(this.inConflictState=!0,e())}),mxUtils.bind(this,function(n){this.invalidFileHandle=!0;e(n)}))}),e)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(c,b,B?"image/png":"text/xml",B);else if(c.length<MAX_REQUEST_SIZE){var g=b.lastIndexOf(".");g=0<g?b.substring(g+1):"xml";
-(new mxXmlRequest(SAVE_URL,"format="+g+"&xml="+encodeURIComponent(c)+"&filename="+encodeURIComponent(b)+(B?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(c)}));N()}});B?(f=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(c){I(c)}),d,this.ui.getCurrentFile()!=this?J:null,f.scale,f.border)):I(J)};
+LocalFile.prototype.saveFile=function(b,f,m,d,q,x,C){b!=this.title&&(this.editable=this.desc=this.fileHandle=null);this.title=b;q||this.updateFileData();var y=this.ui.useCanvasForExport&&/(\.png)$/i.test(this.getTitle());this.setShadowModified(!1);var I=this.getData(),M=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.contentChanged();null!=m&&m()}),H=mxUtils.bind(this,function(c){if(null!=this.fileHandle){if(!this.savingFile){this.savingFileTime=new Date;this.savingFile=
+!0;var e=mxUtils.bind(this,function(l){this.savingFile=!1;null!=d&&d({error:l})});this.saveDraft(I);this.fileHandle.createWritable().then(mxUtils.bind(this,function(l){this.fileHandle.getFile().then(mxUtils.bind(this,function(p){this.invalidFileHandle=null;EditorUi.debug("LocalFile.saveFile",[this],"desc",[this.desc],"newDesc",[p],"conflict",this.desc.lastModified!=p.lastModified);C||this.desc.lastModified==p.lastModified?l.write(y?this.ui.base64ToBlob(c,"image/png"):c).then(mxUtils.bind(this,function(){l.close().then(mxUtils.bind(this,
+function(){this.fileHandle.getFile().then(mxUtils.bind(this,function(u){try{var z=this.desc;this.savingFile=!1;this.desc=u;this.fileSaved(I,z,M,e);this.removeDraft()}catch(E){e(E)}}),e)}),e)}),e):(this.inConflictState=!0,e())}),mxUtils.bind(this,function(p){this.invalidFileHandle=!0;e(p)}))}),e)}}else{if(this.ui.isOfflineApp()||this.ui.isLocalFileSave())this.ui.doSaveLocalFile(c,b,y?"image/png":"text/xml",y);else if(c.length<MAX_REQUEST_SIZE){var g=b.lastIndexOf(".");g=0<g?b.substring(g+1):"xml";
+(new mxXmlRequest(SAVE_URL,"format="+g+"&xml="+encodeURIComponent(c)+"&filename="+encodeURIComponent(b)+(y?"&binary=1":""))).simulate(document,"_blank")}else this.ui.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(c)}));M()}});y?(f=this.ui.getPngFileProperties(this.ui.fileNode),this.ui.getEmbeddedPng(mxUtils.bind(this,function(c){H(c)}),d,this.ui.getCurrentFile()!=this?I:null,f.scale,f.border)):H(I)};
LocalFile.prototype.rename=function(b,f,m){this.title=b;this.descriptorChanged();null!=f&&f()};LocalLibrary=function(b,f,m){LocalFile.call(this,b,f,m)};mxUtils.extend(LocalLibrary,LocalFile);LocalLibrary.prototype.getHash=function(){return"F"+this.getTitle()};LocalLibrary.prototype.isAutosave=function(){return!1};LocalLibrary.prototype.saveAs=function(b,f,m){this.saveFile(b,!1,f,m)};LocalLibrary.prototype.updateFileData=function(){};LocalLibrary.prototype.open=function(){};StorageFile=function(b,f,m){DrawioFile.call(this,b,f);this.title=m;this.etag=this.getEtag(f)};mxUtils.extend(StorageFile,DrawioFile);StorageFile.prototype.getEtag=function(b){return this.ui.hashValue(null!=b?b:"")};StorageFile.prototype.autosaveDelay=500;StorageFile.prototype.maxAutosaveDelay=2E4;StorageFile.prototype.maxRetries=5;StorageFile.prototype.type="F";StorageFile.prototype.getMode=function(){return App.MODE_BROWSER};StorageFile.prototype.isSyncSupported=function(){return!0};
StorageFile.prototype.isPolling=function(){return this.isSyncSupported()};StorageFile.prototype.getPollingInterval=function(){return 1E4};StorageFile.prototype.loadDescriptor=function(b,f){this.getLatestVersionId(b,f)};StorageFile.prototype.getLatestVersionId=function(b,f){StorageFile.getFileContent(this.ui,this.title,mxUtils.bind(this,function(m){b(this.getEtag(m))}),f)};StorageFile.prototype.isAutosaveOptional=function(){return!0};StorageFile.prototype.getHash=function(){return"L"+encodeURIComponent(this.getTitle())};
StorageFile.prototype.getTitle=function(){return this.title};StorageFile.prototype.isRenamable=function(){return!0};StorageFile.prototype.getDescriptor=function(){return this.etag};StorageFile.prototype.setDescriptor=function(b){this.etag=b};StorageFile.prototype.getDescriptorEtag=function(b){return b};StorageFile.prototype.save=function(b,f,m){this.saveAs(this.getTitle(),f,m)};
-StorageFile.prototype.saveAs=function(b,f,m){DrawioFile.prototype.save.apply(this,[!1,mxUtils.bind(this,function(){this.saveFile(this.getTitle(),!1,f,m)}),m])};StorageFile.insertFile=function(b,f,m,d,t,x){StorageFile.doInsertFile(null!=x?x:new StorageFile(b,m,f),d,t)};
-StorageFile.doInsertFile=function(b,f,m){var d=b.getTitle(),t=b.getUi(),x=mxUtils.bind(this,function(v){var B=function(){b.writeFile(d,function(){f(b)},m)};v?t.confirm(mxResources.get("replaceIt",[d]),B,m):B()});StorageFile.getFileContent(t,d,function(v){x(null!=v)},function(){x(!1)})};StorageFile.getFileContent=function(b,f,m,d){b.getDatabaseItem(f,function(t){m(null!=t?t.data:null)},mxUtils.bind(this,function(){null==b.database?b.getLocalData(f,m):null!=d&&d()}),"files")};
-StorageFile.getFileInfo=function(b,f,m,d){b.getDatabaseItem(f,function(t){m(t)},mxUtils.bind(this,function(){null==b.database?b.getLocalData(f,function(t){m(null!=t?{title:f}:null)}):null!=d&&d()}),"filesInfo")};
-StorageFile.prototype.saveFile=function(b,f,m,d,t){t=null!=t?t:0;if(this.isEditable()){var x=mxUtils.bind(this,function(){this.writeFile(b,m,d)});this.isRenamable()&&"."==b.charAt(0)&&null!=d?d({message:mxResources.get("invalidName")}):this instanceof StorageLibrary?x():StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(v){this.isRenamable()&&this.getTitle()!=b&&null!=v?this.ui.confirm(mxResources.get("replaceIt",[b]),x,d):this.getLatestVersion(mxUtils.bind(this,function(B){B.getDescriptor()!=
-this.getDescriptor()?(EditorUi.debug("StorageFile.saveFile",[this],"conflict",[B]),this.mergeFile(B,mxUtils.bind(this,function(){t>=this.maxRetries||this.invalidChecksum||this.inConflictState?(this.inConflictState=!0,null!=d&&d()):this.retrySave(mxUtils.bind(this,function(){this.updateFileData();this.saveFile(b,f,m,d,t+1)}))}),d)):x()}),d)}),d)}else null!=m&&m();EditorUi.debug("StorageFile.saveFile",[this],"title",b,"revision",f,"retry",t)};
+StorageFile.prototype.saveAs=function(b,f,m){DrawioFile.prototype.save.apply(this,[!1,mxUtils.bind(this,function(){this.saveFile(this.getTitle(),!1,f,m)}),m])};StorageFile.insertFile=function(b,f,m,d,q,x){StorageFile.doInsertFile(null!=x?x:new StorageFile(b,m,f),d,q)};
+StorageFile.doInsertFile=function(b,f,m){var d=b.getTitle(),q=b.getUi(),x=mxUtils.bind(this,function(C){var y=function(){b.writeFile(d,function(){f(b)},m)};C?q.confirm(mxResources.get("replaceIt",[d]),y,m):y()});StorageFile.getFileContent(q,d,function(C){x(null!=C)},function(){x(!1)})};StorageFile.getFileContent=function(b,f,m,d){b.getDatabaseItem(f,function(q){m(null!=q?q.data:null)},mxUtils.bind(this,function(){null==b.database?b.getLocalData(f,m):null!=d&&d()}),"files")};
+StorageFile.getFileInfo=function(b,f,m,d){b.getDatabaseItem(f,function(q){m(q)},mxUtils.bind(this,function(){null==b.database?b.getLocalData(f,function(q){m(null!=q?{title:f}:null)}):null!=d&&d()}),"filesInfo")};
+StorageFile.prototype.saveFile=function(b,f,m,d,q){q=null!=q?q:0;if(this.isEditable()){var x=mxUtils.bind(this,function(){this.writeFile(b,m,d)});this.isRenamable()&&"."==b.charAt(0)&&null!=d?d({message:mxResources.get("invalidName")}):this instanceof StorageLibrary?x():StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(C){this.isRenamable()&&this.getTitle()!=b&&null!=C?this.ui.confirm(mxResources.get("replaceIt",[b]),x,d):this.getLatestVersion(mxUtils.bind(this,function(y){y.getDescriptor()!=
+this.getDescriptor()?(EditorUi.debug("StorageFile.saveFile",[this],"conflict",[y]),this.mergeFile(y,mxUtils.bind(this,function(){q>=this.maxRetries||this.invalidChecksum||this.inConflictState?(this.inConflictState=!0,null!=d&&d()):this.retrySave(mxUtils.bind(this,function(){this.updateFileData();this.saveFile(b,f,m,d,q+1)}))}),d)):x()}),d)}),d)}else null!=m&&m();EditorUi.debug("StorageFile.saveFile",[this],"title",b,"revision",f,"retry",q)};
StorageFile.prototype.retrySave=function(b){var f=300+300*Math.random();window.setTimeout(b,f);EditorUi.debug("StorageFile.retrySave",[this],"delay",f)};
-StorageFile.prototype.writeFile=function(b,f,m){this.isRenamable()&&(this.title=b);try{var d=this.getDescriptor(),t=this.getData(),x=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.setDescriptor(this.getEtag(t));this.contentChanged();this.fileSaved(t,d,f,m)});this.setShadowModified(!1);this.ui.setDatabaseItem(null,[{title:this.title,size:t.length,lastModified:Date.now(),type:this.type},{title:this.title,data:t}],x,mxUtils.bind(this,function(){if(null==this.ui.database)try{this.ui.setLocalData(this.title,
-t,x)}catch(v){null!=m&&m(v)}else null!=m&&m()}),["filesInfo","files"])}catch(v){null!=m&&m(v)}};StorageFile.prototype.rename=function(b,f,m){var d=this.getTitle();d!=b?StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(t){var x=mxUtils.bind(this,function(){this.title=b;this.hasSameExtension(d,b)||this.setData(this.ui.getFileData());this.saveFile(b,!1,mxUtils.bind(this,function(){this.ui.removeLocalData(d,f)}),m)});null!=t?this.ui.confirm(mxResources.get("replaceIt",[b]),x,m):x()}),m):f()};
+StorageFile.prototype.writeFile=function(b,f,m){this.isRenamable()&&(this.title=b);try{var d=this.getDescriptor(),q=this.getData(),x=mxUtils.bind(this,function(){this.setModified(this.getShadowModified());this.setDescriptor(this.getEtag(q));this.contentChanged();this.fileSaved(q,d,f,m)});this.setShadowModified(!1);this.ui.setDatabaseItem(null,[{title:this.title,size:q.length,lastModified:Date.now(),type:this.type},{title:this.title,data:q}],x,mxUtils.bind(this,function(){if(null==this.ui.database)try{this.ui.setLocalData(this.title,
+q,x)}catch(C){null!=m&&m(C)}else null!=m&&m()}),["filesInfo","files"])}catch(C){null!=m&&m(C)}};StorageFile.prototype.rename=function(b,f,m){var d=this.getTitle();d!=b?StorageFile.getFileInfo(this.ui,b,mxUtils.bind(this,function(q){var x=mxUtils.bind(this,function(){this.title=b;this.hasSameExtension(d,b)||this.setData(this.ui.getFileData());this.saveFile(b,!1,mxUtils.bind(this,function(){this.ui.removeLocalData(d,f)}),m)});null!=q?this.ui.confirm(mxResources.get("replaceIt",[b]),x,m):x()}),m):f()};
StorageFile.prototype.getLatestVersion=function(b,f){StorageFile.getFileContent(this.ui,this.title,mxUtils.bind(this,function(m){b(new StorageFile(this.ui,m,this.title))}),f)};StorageFile.prototype.destroy=function(){DrawioFile.prototype.destroy.apply(this,arguments);null!=this.storageListener&&(mxEvent.removeListener(window,"storage",this.storageListener),this.storageListener=null)};
-StorageFile.listLocalStorageFiles=function(b){for(var f=[],m=0;m<localStorage.length;m++){var d=localStorage.key(m),t=localStorage.getItem(d);if(0<d.length&&"."!=d.charAt(0)&&0<t.length){var x=(null==b||"F"==b)&&("<mxfile "===t.substring(0,8)||"<?xml"===t.substring(0,5)||"\x3c!--[if IE]>"===t.substring(0,12)),v=(null==b||"L"==b)&&"<mxlibrary>"===t.substring(0,11);(x||v)&&f.push({title:d,type:x?"F":"L",size:t.length,lastModified:Date.now()})}}return f};
-StorageFile.migrate=function(b){var f=StorageFile.listLocalStorageFiles();f.push({title:".scratchpad",type:"L"});var m=b.transaction(["files","filesInfo"],"readwrite");b=m.objectStore("files");m=m.objectStore("filesInfo");for(var d=0;d<f.length;d++){var t=f[d],x=localStorage.getItem(t.title);b.add({title:t.title,data:x});m.add(t)}};
-StorageFile.listFiles=function(b,f,m,d){b.getDatabaseItems(function(t){var x=[];if(null!=t)for(var v=0;v<t.length;v++)"."==t[v].title.charAt(0)||null!=f&&t[v].type!=f||x.push(t[v]);m(x)},function(){null==b.database?m(StorageFile.listLocalStorageFiles(f)):null!=d&&d()},"filesInfo")};StorageFile.deleteFile=function(b,f,m,d){b.removeDatabaseItem([f,f],m,function(){null==b.database?(localStorage.removeItem(f),m()):null!=d&&d()},["files","filesInfo"])};StorageLibrary=function(b,f,m){StorageFile.call(this,b,f,m)};mxUtils.extend(StorageLibrary,StorageFile);StorageLibrary.prototype.type="L";StorageLibrary.prototype.isAutosave=function(){return!0};StorageLibrary.prototype.saveAs=function(b,f,m){this.saveFile(b,!1,f,m)};StorageLibrary.prototype.getHash=function(){return"L"+encodeURIComponent(this.title)};StorageLibrary.prototype.getTitle=function(){return".scratchpad"==this.title?mxResources.get("scratchpad"):this.title};
+StorageFile.listLocalStorageFiles=function(b){for(var f=[],m=0;m<localStorage.length;m++){var d=localStorage.key(m),q=localStorage.getItem(d);if(0<d.length&&"."!=d.charAt(0)&&0<q.length){var x=(null==b||"F"==b)&&("<mxfile "===q.substring(0,8)||"<?xml"===q.substring(0,5)||"\x3c!--[if IE]>"===q.substring(0,12)),C=(null==b||"L"==b)&&"<mxlibrary>"===q.substring(0,11);(x||C)&&f.push({title:d,type:x?"F":"L",size:q.length,lastModified:Date.now()})}}return f};
+StorageFile.migrate=function(b){var f=StorageFile.listLocalStorageFiles();f.push({title:".scratchpad",type:"L"});var m=b.transaction(["files","filesInfo"],"readwrite");b=m.objectStore("files");m=m.objectStore("filesInfo");for(var d=0;d<f.length;d++){var q=f[d],x=localStorage.getItem(q.title);b.add({title:q.title,data:x});m.add(q)}};
+StorageFile.listFiles=function(b,f,m,d){b.getDatabaseItems(function(q){var x=[];if(null!=q)for(var C=0;C<q.length;C++)"."==q[C].title.charAt(0)||null!=f&&q[C].type!=f||x.push(q[C]);m(x)},function(){null==b.database?m(StorageFile.listLocalStorageFiles(f)):null!=d&&d()},"filesInfo")};StorageFile.deleteFile=function(b,f,m,d){b.removeDatabaseItem([f,f],m,function(){null==b.database?(localStorage.removeItem(f),m()):null!=d&&d()},["files","filesInfo"])};StorageLibrary=function(b,f,m){StorageFile.call(this,b,f,m)};mxUtils.extend(StorageLibrary,StorageFile);StorageLibrary.prototype.type="L";StorageLibrary.prototype.isAutosave=function(){return!0};StorageLibrary.prototype.saveAs=function(b,f,m){this.saveFile(b,!1,f,m)};StorageLibrary.prototype.getHash=function(){return"L"+encodeURIComponent(this.title)};StorageLibrary.prototype.getTitle=function(){return".scratchpad"==this.title?mxResources.get("scratchpad"):this.title};
StorageLibrary.prototype.isRenamable=function(b,f,m){return".scratchpad"!=this.title};StorageLibrary.prototype.open=function(){};RemoteFile=function(b,f,m){DrawioFile.call(this,b,f);this.title=m;this.mode=null};mxUtils.extend(RemoteFile,DrawioFile);RemoteFile.prototype.isAutosave=function(){return!1};RemoteFile.prototype.getMode=function(){return this.mode};RemoteFile.prototype.getTitle=function(){return this.title};RemoteFile.prototype.isRenamable=function(){return!1};RemoteFile.prototype.open=function(){this.ui.setFileData(this.getData());this.installListeners()};RemoteLibrary=function(b,f,m){RemoteFile.call(this,b,f,m.title);this.libObj=m};mxUtils.extend(RemoteLibrary,LocalFile);RemoteLibrary.prototype.getHash=function(){return"R"+encodeURIComponent(JSON.stringify([this.libObj.id,this.libObj.title,this.libObj.downloadUrl]))};RemoteLibrary.prototype.isEditable=function(){return!1};RemoteLibrary.prototype.isRenamable=function(){return!1};RemoteLibrary.prototype.isAutosave=function(){return!1};RemoteLibrary.prototype.save=function(b,f,m){};
RemoteLibrary.prototype.saveAs=function(b,f,m){};RemoteLibrary.prototype.updateFileData=function(){};RemoteLibrary.prototype.open=function(){};UrlLibrary=function(b,f,m){StorageFile.call(this,b,f,m);b=m;f=b.lastIndexOf("/");0<=f&&(b=b.substring(f+1));this.fname=b};mxUtils.extend(UrlLibrary,StorageFile);UrlLibrary.prototype.getHash=function(){return"U"+encodeURIComponent(this.title)};UrlLibrary.prototype.getTitle=function(){return this.fname};UrlLibrary.prototype.isAutosave=function(){return!1};UrlLibrary.prototype.isEditable=function(b,f,m){return!1};UrlLibrary.prototype.saveAs=function(b,f,m){};UrlLibrary.prototype.open=function(){};EmbedFile=function(b,f,m){DrawioFile.call(this,b,f);this.desc=m||{};this.mode=App.MODE_EMBED};mxUtils.extend(EmbedFile,DrawioFile);EmbedFile.prototype.getMode=function(){return this.mode};EmbedFile.prototype.getTitle=function(){return this.desc.title||""};/*
mxClient.IS_IOS || */
-var StorageDialog=function(b,f,m){function d(c,e,g,l,n,u){function z(){mxEvent.addListener(D,"click",null!=u?u:function(){g==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(g,!0);f()})):g==App.MODE_ONEDRIVE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.oneDrive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(g,!0);f()}),function(U){b.spinner.stop();b.handleError(U)}):
-(b.setMode(g,!0),f())})}B++;++v>m&&(mxUtils.br(J),v=1);var D=document.createElement("a");D.style.overflow="hidden";D.style.display="inline-block";D.className="geBaseButton";D.style.boxSizing="border-box";D.style.fontSize="11px";D.style.position="relative";D.style.margin="4px";D.style.marginTop="8px";D.style.marginBottom="0px";D.style.padding="8px 10px 8px 10px";D.style.width="88px";D.style.height="100px";D.style.whiteSpace="nowrap";D.setAttribute("title",e);var C=document.createElement("div");C.style.textOverflow=
-"ellipsis";C.style.overflow="hidden";C.style.position="absolute";C.style.bottom="8px";C.style.left="0px";C.style.right="0px";mxUtils.write(C,e);D.appendChild(C);if(null!=c){var A=document.createElement("img");A.setAttribute("src",c);A.setAttribute("border","0");A.setAttribute("align","absmiddle");A.style.width="60px";A.style.height="60px";A.style.paddingBottom="6px";D.appendChild(A)}else C.style.paddingTop="5px",C.style.whiteSpace="normal",mxClient.IS_IOS?(D.style.padding="0px 10px 20px 10px",D.style.top=
-"6px"):mxClient.IS_FF&&(C.style.paddingTop="0px",C.style.marginTop="-2px");if(null!=n)for(c=0;c<n.length;c++)mxUtils.br(C),mxUtils.write(C,n[c]);if(null!=l&&null==b[l]){A.style.visibility="hidden";mxUtils.setOpacity(C,10);var Q=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});Q.spin(D);var S=window.setTimeout(function(){null==b[l]&&(Q.stop(),D.style.display="none")},3E4);b.addListener("clientLoaded",
-mxUtils.bind(this,function(U,O){null!=b[l]&&O.getProperty("client")==b[l]&&(window.clearTimeout(S),mxUtils.setOpacity(C,100),A.style.visibility="",Q.stop(),z(),"drive"==l&&null!=N.parentNode&&N.parentNode.removeChild(N))}))}else z();J.appendChild(D)}m=null!=m?m:2;var t=document.createElement("div");t.style.textAlign="center";t.style.whiteSpace="nowrap";t.style.paddingTop="0px";t.style.paddingBottom="20px";var x=document.createElement("div");x.style.border="1px solid #d3d3d3";x.style.borderWidth="1px 0px 1px 0px";
-x.style.padding="10px 0px 20px 0px";var v=0,B=0,J=document.createElement("div");J.style.paddingTop="2px";x.appendChild(J);var N=document.createElement("p"),I=document.createElement("p");I.style.cssText="font-size:22px;padding:4px 0 16px 0;margin:0;color:gray;";mxUtils.write(I,mxResources.get("saveDiagramsTo")+":");t.appendChild(I);t.appendChild(x);v=0;"function"===typeof window.DriveClient&&d(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive");"function"===
+var StorageDialog=function(b,f,m){function d(c,e,g,l,p,u){function z(){mxEvent.addListener(E,"click",null!=u?u:function(){g==App.MODE_GOOGLE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(g,!0);f()})):g==App.MODE_ONEDRIVE&&b.spinner.spin(document.body,mxResources.get("authorizing"))?b.oneDrive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();b.setMode(g,!0);f()}),function(T){b.spinner.stop();b.handleError(T)}):
+(b.setMode(g,!0),f())})}y++;++C>m&&(mxUtils.br(I),C=1);var E=document.createElement("a");E.style.overflow="hidden";E.style.display="inline-block";E.className="geBaseButton";E.style.boxSizing="border-box";E.style.fontSize="11px";E.style.position="relative";E.style.margin="4px";E.style.marginTop="8px";E.style.marginBottom="0px";E.style.padding="8px 10px 8px 10px";E.style.width="88px";E.style.height="100px";E.style.whiteSpace="nowrap";E.setAttribute("title",e);var D=document.createElement("div");D.style.textOverflow=
+"ellipsis";D.style.overflow="hidden";D.style.position="absolute";D.style.bottom="8px";D.style.left="0px";D.style.right="0px";mxUtils.write(D,e);E.appendChild(D);if(null!=c){var A=document.createElement("img");A.setAttribute("src",c);A.setAttribute("border","0");A.setAttribute("align","absmiddle");A.style.width="60px";A.style.height="60px";A.style.paddingBottom="6px";E.appendChild(A)}else D.style.paddingTop="5px",D.style.whiteSpace="normal",mxClient.IS_IOS?(E.style.padding="0px 10px 20px 10px",E.style.top=
+"6px"):mxClient.IS_FF&&(D.style.paddingTop="0px",D.style.marginTop="-2px");if(null!=p)for(c=0;c<p.length;c++)mxUtils.br(D),mxUtils.write(D,p[c]);if(null!=l&&null==b[l]){A.style.visibility="hidden";mxUtils.setOpacity(D,10);var P=new Spinner({lines:12,length:12,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});P.spin(E);var R=window.setTimeout(function(){null==b[l]&&(P.stop(),E.style.display="none")},3E4);b.addListener("clientLoaded",
+mxUtils.bind(this,function(T,L){null!=b[l]&&L.getProperty("client")==b[l]&&(window.clearTimeout(R),mxUtils.setOpacity(D,100),A.style.visibility="",P.stop(),z(),"drive"==l&&null!=M.parentNode&&M.parentNode.removeChild(M))}))}else z();I.appendChild(E)}m=null!=m?m:2;var q=document.createElement("div");q.style.textAlign="center";q.style.whiteSpace="nowrap";q.style.paddingTop="0px";q.style.paddingBottom="20px";var x=document.createElement("div");x.style.border="1px solid #d3d3d3";x.style.borderWidth="1px 0px 1px 0px";
+x.style.padding="10px 0px 20px 0px";var C=0,y=0,I=document.createElement("div");I.style.paddingTop="2px";x.appendChild(I);var M=document.createElement("p"),H=document.createElement("p");H.style.cssText="font-size:22px;padding:4px 0 16px 0;margin:0;color:gray;";mxUtils.write(H,mxResources.get("saveDiagramsTo")+":");q.appendChild(H);q.appendChild(x);C=0;"function"===typeof window.DriveClient&&d(IMAGE_PATH+"/google-drive-logo.svg",mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive");"function"===
typeof window.OneDriveClient&&d(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive");"1"!=urlParams.noDevice&&d(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);!isLocalStorage||"1"!=urlParams.browser&&"1"!=urlParams.offline||d(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER);"function"===typeof window.DropboxClient&&d(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),App.MODE_DROPBOX,"dropbox");
null!=b.gitHub&&d(IMAGE_PATH+"/github-logo.svg",mxResources.get("github"),App.MODE_GITHUB,"gitHub");null!=b.gitLab&&d(IMAGE_PATH+"/gitlab-logo.svg",mxResources.get("gitlab"),App.MODE_GITLAB,"gitLab");x=document.createElement("span");x.style.position="absolute";x.style.cursor="pointer";x.style.bottom="27px";x.style.color="gray";x.style.userSelect="none";x.style.textAlign="center";x.style.left="50%";mxUtils.setPrefixedStyle(x.style,"transform","translate(-50%,0)");mxUtils.write(x,mxResources.get("decideLater"));
-t.appendChild(x);mxEvent.addListener(x,"click",function(){b.hideDialog();var c=Editor.useLocalStorage;b.createFile(b.defaultFilename,null,null,null,null,null,null,!0);Editor.useLocalStorage=c});mxClient.IS_SVG&&isLocalStorage&&"0"!=urlParams.gapi&&(null==document.documentMode||10<=document.documentMode)&&window.setTimeout(function(){null==b.drive&&(N.style.padding="7px",N.style.fontSize="9pt",N.style.marginTop="-14px",N.innerHTML='<a style="background-color:#dcdcdc;padding:6px;color:black;text-decoration:none;" href="https://www.drawio.com/doc/faq/google-drive-connection-problems" target="_blank"><img border="0" src="'+
-mxGraph.prototype.warningImage.src+'" align="absmiddle" style="margin-top:-4px"> '+mxResources.get("googleDriveMissingClickHere")+"</a>",t.appendChild(N))},5E3);this.container=t},SplashDialog=function(b){var f=document.createElement("div");f.style.textAlign="center";if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp){var m=b.addLanguageMenu(f,!1,"28px");null!=m&&(m.style.bottom="24px")}var d=document.createElement("img");d.setAttribute("border","0");d.setAttribute("align","absmiddle");d.style.width=
-"32px";d.style.height="32px";d.style.marginRight="8px";d.style.marginTop="-4px";var t=document.createElement("div");t.style.margin="8px 0px 0px 0px";t.style.padding="18px 0px 24px 0px";m="";b.mode==App.MODE_GOOGLE?(d.src=IMAGE_PATH+"/google-drive-logo.svg",m=mxResources.get("googleDrive")):b.mode==App.MODE_DROPBOX?(d.src=IMAGE_PATH+"/dropbox-logo.svg",m=mxResources.get("dropbox")):b.mode==App.MODE_ONEDRIVE?(d.src=IMAGE_PATH+"/onedrive-logo.svg",m=mxResources.get("oneDrive")):b.mode==App.MODE_GITHUB?
-(d.src=IMAGE_PATH+"/github-logo.svg",m=mxResources.get("github")):b.mode==App.MODE_GITLAB?(d.src=IMAGE_PATH+"/gitlab-logo.svg",m=mxResources.get("gitlab")):b.mode==App.MODE_BROWSER?(d.src=IMAGE_PATH+"/osa_database.png",m=mxResources.get("browser")):b.mode==App.MODE_TRELLO?(d.src=IMAGE_PATH+"/trello-logo.svg",m=mxResources.get("trello")):(d.src=IMAGE_PATH+"/osa_drive-harddisk.png",t.style.paddingBottom="10px",t.style.paddingTop="30px",m=mxResources.get("device"));var x=document.createElement("button");
-x.className="geBigButton";x.style.marginBottom="8px";x.style.fontSize="18px";x.style.padding="10px";x.style.width="340px";if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)t.style.padding="42px 0px 10px 0px",x.style.marginBottom="12px";else{t.style.border="1px solid #d3d3d3";t.style.borderWidth="1px 0px 1px 0px";var v=document.createElement("table"),B=document.createElement("tbody"),J=document.createElement("tr"),N=document.createElement("td"),I=document.createElement("td");v.setAttribute("align",
-"center");N.appendChild(d);d=document.createElement("div");d.style.fontSize="22px";d.style.paddingBottom="6px";d.style.color="gray";mxUtils.write(d,m);I.style.textAlign="left";I.appendChild(d);J.appendChild(N);J.appendChild(I);B.appendChild(J);v.appendChild(B);f.appendChild(v);m=document.createElement("span");m.style.cssText="position:absolute;cursor:pointer;bottom:27px;color:gray;userSelect:none;text-align:center;left:50%;";mxUtils.setPrefixedStyle(m.style,"transform","translate(-50%,0)");mxUtils.write(m,
-mxResources.get("changeStorage"));mxEvent.addListener(m,"click",function(){b.hideDialog(!1);b.setMode(null);b.clearMode();b.showSplash(!0)});f.appendChild(m)}mxUtils.write(x,mxResources.get("createNewDiagram"));mxEvent.addListener(x,"click",function(){b.hideDialog();b.actions.get("new").funct()});t.appendChild(x);mxUtils.br(t);x=document.createElement("button");x.className="geBigButton";x.style.marginBottom="22px";x.style.fontSize="18px";x.style.padding="10px";x.style.width="340px";mxUtils.write(x,
-mxResources.get("openExistingDiagram"));mxEvent.addListener(x,"click",function(){b.actions.get("open").funct()});t.appendChild(x);b.mode==App.MODE_GOOGLE?mxResources.get("googleDrive"):b.mode==App.MODE_DROPBOX?mxResources.get("dropbox"):b.mode==App.MODE_ONEDRIVE?mxResources.get("oneDrive"):b.mode==App.MODE_GITHUB?mxResources.get("github"):b.mode==App.MODE_GITLAB?mxResources.get("gitlab"):b.mode==App.MODE_TRELLO?mxResources.get("trello"):b.mode==App.MODE_DEVICE?mxResources.get("device"):b.mode==App.MODE_BROWSER&&
-mxResources.get("browser");if(!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp)if(m=function(g){x.style.marginBottom="24px";var l=document.createElement("a");l.style.display="inline-block";l.style.color="gray";l.style.cursor="pointer";l.style.marginTop="6px";mxUtils.write(l,mxResources.get("signOut"));x.style.marginBottom="16px";t.style.paddingBottom="18px";mxEvent.addListener(l,"click",function(){b.confirm(mxResources.get("areYouSure"),function(){g()})});t.appendChild(l)},b.mode==App.MODE_GOOGLE&&
-null!=b.drive){var c=b.drive.getUsersList();if(0<c.length){d=document.createElement("span");d.style.marginTop="6px";mxUtils.write(d,mxResources.get("changeUser")+":");x.style.marginBottom="16px";t.style.paddingBottom="18px";t.appendChild(d);var e=document.createElement("select");e.style.marginLeft="4px";e.style.width="140px";for(m=0;m<c.length;m++)v=document.createElement("option"),mxUtils.write(v,c[m].displayName),v.value=m,e.appendChild(v),v=document.createElement("option"),v.innerHTML="&nbsp;&nbsp;&nbsp;",
-mxUtils.write(v,"<"+c[m].email+">"),v.setAttribute("disabled","disabled"),e.appendChild(v);v=document.createElement("option");mxUtils.write(v,mxResources.get("addAccount"));v.value=c.length;e.appendChild(v);mxEvent.addListener(e,"change",function(){var g=e.value,l=c.length!=g;l&&b.drive.setUser(c[g]);b.drive.authorize(l,function(){b.setMode(App.MODE_GOOGLE);b.hideDialog();b.showSplash()},function(n){b.handleError(n,null,function(){b.hideDialog();b.showSplash()})},!0)});t.appendChild(e)}else m(function(){b.drive.logout()})}else b.mode!=
+q.appendChild(x);mxEvent.addListener(x,"click",function(){b.hideDialog();var c=Editor.useLocalStorage;b.createFile(b.defaultFilename,null,null,null,null,null,null,!0);Editor.useLocalStorage=c});mxClient.IS_SVG&&isLocalStorage&&"0"!=urlParams.gapi&&(null==document.documentMode||10<=document.documentMode)&&window.setTimeout(function(){null==b.drive&&(M.style.padding="7px",M.style.fontSize="9pt",M.style.marginTop="-14px",M.innerHTML='<a style="background-color:#dcdcdc;padding:6px;color:black;text-decoration:none;" href="https://www.drawio.com/doc/faq/google-drive-connection-problems" target="_blank"><img border="0" src="'+
+mxGraph.prototype.warningImage.src+'" align="absmiddle" style="margin-top:-4px"> '+mxResources.get("googleDriveMissingClickHere")+"</a>",q.appendChild(M))},5E3);this.container=q},SplashDialog=function(b){var f=document.createElement("div");f.style.textAlign="center";if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp){var m=b.addLanguageMenu(f,!1,"28px");null!=m&&(m.style.bottom="24px")}var d=document.createElement("img");d.setAttribute("border","0");d.setAttribute("align","absmiddle");d.style.width=
+"32px";d.style.height="32px";d.style.marginRight="8px";d.style.marginTop="-4px";var q=document.createElement("div");q.style.margin="8px 0px 0px 0px";q.style.padding="18px 0px 24px 0px";m="";b.mode==App.MODE_GOOGLE?(d.src=IMAGE_PATH+"/google-drive-logo.svg",m=mxResources.get("googleDrive")):b.mode==App.MODE_DROPBOX?(d.src=IMAGE_PATH+"/dropbox-logo.svg",m=mxResources.get("dropbox")):b.mode==App.MODE_ONEDRIVE?(d.src=IMAGE_PATH+"/onedrive-logo.svg",m=mxResources.get("oneDrive")):b.mode==App.MODE_GITHUB?
+(d.src=IMAGE_PATH+"/github-logo.svg",m=mxResources.get("github")):b.mode==App.MODE_GITLAB?(d.src=IMAGE_PATH+"/gitlab-logo.svg",m=mxResources.get("gitlab")):b.mode==App.MODE_BROWSER?(d.src=IMAGE_PATH+"/osa_database.png",m=mxResources.get("browser")):b.mode==App.MODE_TRELLO?(d.src=IMAGE_PATH+"/trello-logo.svg",m=mxResources.get("trello")):(d.src=IMAGE_PATH+"/osa_drive-harddisk.png",q.style.paddingBottom="10px",q.style.paddingTop="30px",m=mxResources.get("device"));var x=document.createElement("button");
+x.className="geBigButton";x.style.marginBottom="8px";x.style.fontSize="18px";x.style.padding="10px";x.style.width="340px";if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)q.style.padding="42px 0px 10px 0px",x.style.marginBottom="12px";else{q.style.border="1px solid #d3d3d3";q.style.borderWidth="1px 0px 1px 0px";var C=document.createElement("table"),y=document.createElement("tbody"),I=document.createElement("tr"),M=document.createElement("td"),H=document.createElement("td");C.setAttribute("align",
+"center");M.appendChild(d);d=document.createElement("div");d.style.fontSize="22px";d.style.paddingBottom="6px";d.style.color="gray";mxUtils.write(d,m);H.style.textAlign="left";H.appendChild(d);I.appendChild(M);I.appendChild(H);y.appendChild(I);C.appendChild(y);f.appendChild(C);m=document.createElement("span");m.style.cssText="position:absolute;cursor:pointer;bottom:27px;color:gray;userSelect:none;text-align:center;left:50%;";mxUtils.setPrefixedStyle(m.style,"transform","translate(-50%,0)");mxUtils.write(m,
+mxResources.get("changeStorage"));mxEvent.addListener(m,"click",function(){b.hideDialog(!1);b.setMode(null);b.clearMode();b.showSplash(!0)});f.appendChild(m)}mxUtils.write(x,mxResources.get("createNewDiagram"));mxEvent.addListener(x,"click",function(){b.hideDialog();b.actions.get("new").funct()});q.appendChild(x);mxUtils.br(q);x=document.createElement("button");x.className="geBigButton";x.style.marginBottom="22px";x.style.fontSize="18px";x.style.padding="10px";x.style.width="340px";mxUtils.write(x,
+mxResources.get("openExistingDiagram"));mxEvent.addListener(x,"click",function(){b.actions.get("open").funct()});q.appendChild(x);b.mode==App.MODE_GOOGLE?mxResources.get("googleDrive"):b.mode==App.MODE_DROPBOX?mxResources.get("dropbox"):b.mode==App.MODE_ONEDRIVE?mxResources.get("oneDrive"):b.mode==App.MODE_GITHUB?mxResources.get("github"):b.mode==App.MODE_GITLAB?mxResources.get("gitlab"):b.mode==App.MODE_TRELLO?mxResources.get("trello"):b.mode==App.MODE_DEVICE?mxResources.get("device"):b.mode==App.MODE_BROWSER&&
+mxResources.get("browser");if(!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp)if(m=function(g){x.style.marginBottom="24px";var l=document.createElement("a");l.style.display="inline-block";l.style.color="gray";l.style.cursor="pointer";l.style.marginTop="6px";mxUtils.write(l,mxResources.get("signOut"));x.style.marginBottom="16px";q.style.paddingBottom="18px";mxEvent.addListener(l,"click",function(){b.confirm(mxResources.get("areYouSure"),function(){g()})});q.appendChild(l)},b.mode==App.MODE_GOOGLE&&
+null!=b.drive){var c=b.drive.getUsersList();if(0<c.length){d=document.createElement("span");d.style.marginTop="6px";mxUtils.write(d,mxResources.get("changeUser")+":");x.style.marginBottom="16px";q.style.paddingBottom="18px";q.appendChild(d);var e=document.createElement("select");e.style.marginLeft="4px";e.style.width="140px";for(m=0;m<c.length;m++)C=document.createElement("option"),mxUtils.write(C,c[m].displayName),C.value=m,e.appendChild(C),C=document.createElement("option"),C.innerHTML="&nbsp;&nbsp;&nbsp;",
+mxUtils.write(C,"<"+c[m].email+">"),C.setAttribute("disabled","disabled"),e.appendChild(C);C=document.createElement("option");mxUtils.write(C,mxResources.get("addAccount"));C.value=c.length;e.appendChild(C);mxEvent.addListener(e,"change",function(){var g=e.value,l=c.length!=g;l&&b.drive.setUser(c[g]);b.drive.authorize(l,function(){b.setMode(App.MODE_GOOGLE);b.hideDialog();b.showSplash()},function(p){b.handleError(p,null,function(){b.hideDialog();b.showSplash()})},!0)});q.appendChild(e)}else m(function(){b.drive.logout()})}else b.mode!=
App.MODE_ONEDRIVE||null==b.oneDrive||b.oneDrive.noLogout?b.mode==App.MODE_GITHUB&&null!=b.gitHub?m(function(){b.gitHub.logout();b.openLink("https://www.github.com/logout")}):b.mode==App.MODE_GITLAB&&null!=b.gitLab?m(function(){b.gitLab.logout();var g=document.createElement("form");g.setAttribute("method","post");g.setAttribute("action",DRAWIO_GITLAB_URL+"/users/sign_out");g.setAttribute("target","_blank");document.body.appendChild(g);g.submit();g.parentNode.removeChild(g)}):b.mode==App.MODE_TRELLO&&
-null!=b.trello?b.trello.isAuthorized()&&m(function(){b.trello.logout()}):b.mode==App.MODE_DROPBOX&&null!=b.dropbox&&m(function(){b.dropbox.logout();b.openLink("https://www.dropbox.com/logout")}):m(function(){b.oneDrive.logout()});f.appendChild(t);this.container=f},EmbedDialog=function(b,f,m,d,t,x,v,B,J){v=null!=v?v:"Check out the diagram I made using @drawio";d=document.createElement("div");var N=/^https?:\/\//.test(f)||/^mailto:\/\//.test(f);null!=x?mxUtils.write(d,x):mxUtils.write(d,mxResources.get(5E5>
-f.length?N?"link":"mainEmbedNotice":"preview")+":");mxUtils.br(d);x=document.createElement("div");x.style.position="absolute";x.style.top="30px";x.style.right="30px";x.style.color="gray";mxUtils.write(x,b.formatFileSize(f.length));d.appendChild(x);var I=document.createElement("textarea");I.setAttribute("autocomplete","off");I.setAttribute("autocorrect","off");I.setAttribute("autocapitalize","off");I.setAttribute("spellcheck","false");I.style.fontFamily="monospace";I.style.wordBreak="break-all";I.style.marginTop=
-"10px";I.style.resize="none";I.style.height="150px";I.style.width="440px";I.style.border="1px solid gray";I.value=mxResources.get("updatingDocument");d.appendChild(I);mxUtils.br(d);this.init=function(){window.setTimeout(function(){5E5>f.length?(I.value=f,I.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?I.select():document.execCommand("selectAll",!1,null)):(I.setAttribute("readonly","true"),I.value=mxResources.get("tooLargeUseDownload"))},0)};x=document.createElement("div");x.style.position=
-"absolute";x.style.bottom="36px";x.style.right="32px";var c=null;!EmbedDialog.showPreviewOption||mxIsElectron||mxClient.IS_CHROMEAPP&&!N||navigator.standalone||!(N||mxClient.IS_SVG&&(null==document.documentMode||9<document.documentMode))||(c=mxUtils.button(null!=B?B:mxResources.get(5E5>f.length?"preview":"openInNewWindow"),function(){var g=5E5>f.length?I.value:f;if(null!=t)t(g);else if(N)try{var l=b.openLink(g);null!=l&&(null==m||0<m)&&window.setTimeout(mxUtils.bind(this,function(){try{null!=l&&null!=
-l.location.href&&l.location.href.substring(0,8)!=g.substring(0,8)&&(l.close(),b.handleError({message:mxResources.get("drawingTooLarge")}))}catch(u){}}),m||500)}catch(u){b.handleError({message:u.message||mxResources.get("drawingTooLarge")})}else{var n=window.open();n=null!=n?n.document:null;null!=n?(n.writeln("<html><head><title>"+mxUtils.htmlEntities(mxResources.get("preview"))+'</title><meta charset="utf-8"></head><body>'+("<iframe"==f.substring(0,7)?f:mxUtils.htmlEntities(f))+"</body></html>"),
-n.close()):b.handleError({message:mxResources.get("errorUpdatingPreview")})}}),c.className="geBtn",x.appendChild(c));if(!N||7500<f.length)B=mxUtils.button(mxResources.get(mxIsElectron?"save":"download"),function(){b.hideDialog();b.saveData(null!=J?J:"embed.txt","txt",f,"text/plain")}),B.className="geBtn",x.appendChild(B);if(N&&(!b.isOffline()||mxClient.IS_CHROMEAPP)){if(51200>f.length){var e=mxUtils.button("",function(){try{var g="https://www.facebook.com/sharer.php?p[url]="+encodeURIComponent(I.value);
-b.openLink(g)}catch(l){b.handleError({message:l.message||mxResources.get("drawingTooLarge")})}});B=document.createElement("img");B.setAttribute("src",Editor.facebookImage);B.setAttribute("width","18");B.setAttribute("height","18");B.setAttribute("border","0");e.appendChild(B);e.setAttribute("title",mxResources.get("facebook")+" ("+b.formatFileSize(51200)+" max)");e.style.verticalAlign="bottom";e.style.paddingTop="4px";e.style.minWidth="46px";e.className="geBtn";x.appendChild(e)}7168>f.length&&(e=
-mxUtils.button("",function(){try{var g="https://twitter.com/intent/tweet?text="+encodeURIComponent(v)+"&url="+encodeURIComponent(I.value);b.openLink(g)}catch(l){b.handleError({message:l.message||mxResources.get("drawingTooLarge")})}}),B=document.createElement("img"),B.setAttribute("src",Editor.tweetImage),B.setAttribute("width","18"),B.setAttribute("height","18"),B.setAttribute("border","0"),B.style.marginBottom="5px",e.appendChild(B),e.setAttribute("title",mxResources.get("twitter")+" ("+b.formatFileSize(7168)+
-" max)"),e.style.verticalAlign="bottom",e.style.paddingTop="4px",e.style.minWidth="46px",e.className="geBtn",x.appendChild(e))}!b.isOffline()&&5E5>f.length&&(e=mxUtils.button("",function(){try{var g="mailto:?subject="+encodeURIComponent(J||b.defaultFilename)+"&body="+encodeURIComponent(I.value);b.openLink(g)}catch(l){b.handleError({message:l.message||mxResources.get("drawingTooLarge")})}}),B=document.createElement("img"),B.className="geAdaptiveAsset",B.setAttribute("src",Editor.mailImage),B.setAttribute("width",
-"18"),B.setAttribute("height","18"),B.setAttribute("border","0"),B.style.marginBottom="5px",e.appendChild(B),e.style.verticalAlign="bottom",e.style.paddingTop="4px",e.style.minWidth="46px",e.className="geBtn",x.appendChild(e));B=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});x.appendChild(B);e=mxUtils.button(mxResources.get("copy"),function(){I.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?I.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");
-b.alert(mxResources.get("copiedToClipboard"))});5E5>f.length?mxClient.IS_SF||null!=document.documentMode?B.className="geBtn gePrimaryBtn":(x.appendChild(e),e.className="geBtn gePrimaryBtn",B.className="geBtn"):null!=c&&(x.appendChild(c),B.className="geBtn",c.className="geBtn gePrimaryBtn");d.appendChild(x);this.container=d};EmbedDialog.showPreviewOption=!0;
-var GoogleSitesDialog=function(b,f){function m(){var U=null!=S&&null!=S.getTitle()?S.getTitle():this.defaultFilename;if(A.checked&&""!=e.value){var O="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(e.value));null!=U&&(O+="&title="+encodeURIComponent(U));0<Q.length&&(O+="&s="+Q);""!=g.value&&"0"!=g.value&&(O+="&border="+g.value);""!=c.value&&(O+="&height="+c.value);O+="&pan="+(l.checked?"1":"0");O+="&zoom="+(n.checked?"1":"0");O+="&fit="+(C.checked?"1":"0");
-O+="&resize="+(D.checked?"1":"0");O+="&x0="+Number(I.value);O+="&y0="+J;t.mathEnabled&&(O+="&math=1");z.checked?O+="&edit=_blank":u.checked&&(O+="&edit="+encodeURIComponent(mxUtils.htmlEntities(window.location.href)));N.value=O}else S.constructor==DriveFile||S.constructor==DropboxFile?(O="https://www.draw.io/gadget.xml?embed=0&diagram=",""!=e.value?O+=encodeURIComponent(mxUtils.htmlEntities(e.value))+"&type=3":(O+=S.getHash().substring(1),O=S.constructor==DropboxFile?O+"&type=2":O+"&type=1"),null!=
-U&&(O+="&title="+encodeURIComponent(U)),""!=c.value&&(U=parseInt(c.value)+parseInt(I.value),O+="&height="+U),N.value=O):N.value=""}var d=document.createElement("div"),t=b.editor.graph,x=t.getGraphBounds(),v=t.view.scale,B=Math.floor(x.x/v-t.view.translate.x),J=Math.floor(x.y/v-t.view.translate.y);mxUtils.write(d,mxResources.get("googleGadget")+":");mxUtils.br(d);var N=document.createElement("input");N.setAttribute("type","text");N.style.marginBottom="8px";N.style.marginTop="2px";N.style.width="410px";
-d.appendChild(N);mxUtils.br(d);this.init=function(){N.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?N.select():document.execCommand("selectAll",!1,null)};mxUtils.write(d,mxResources.get("top")+":");var I=document.createElement("input");I.setAttribute("type","text");I.setAttribute("size","4");I.style.marginRight="16px";I.style.marginLeft="4px";I.value=B;d.appendChild(I);mxUtils.write(d,mxResources.get("height")+":");var c=document.createElement("input");c.setAttribute("type","text");
-c.setAttribute("size","4");c.style.marginLeft="4px";c.value=Math.ceil(x.height/v);d.appendChild(c);mxUtils.br(d);x=document.createElement("hr");x.setAttribute("size","1");x.style.marginBottom="16px";x.style.marginTop="16px";d.appendChild(x);mxUtils.write(d,mxResources.get("publicDiagramUrl")+":");mxUtils.br(d);var e=document.createElement("input");e.setAttribute("type","text");e.setAttribute("size","28");e.style.marginBottom="8px";e.style.marginTop="2px";e.style.width="410px";e.value=f||"";d.appendChild(e);
-mxUtils.br(d);mxUtils.write(d,mxResources.get("borderWidth")+":");var g=document.createElement("input");g.setAttribute("type","text");g.setAttribute("size","3");g.style.marginBottom="8px";g.style.marginLeft="4px";g.value="0";d.appendChild(g);mxUtils.br(d);var l=document.createElement("input");l.setAttribute("type","checkbox");l.setAttribute("checked","checked");l.defaultChecked=!0;l.style.marginLeft="16px";d.appendChild(l);mxUtils.write(d,mxResources.get("pan")+" ");var n=document.createElement("input");
-n.setAttribute("type","checkbox");n.setAttribute("checked","checked");n.defaultChecked=!0;n.style.marginLeft="8px";d.appendChild(n);mxUtils.write(d,mxResources.get("zoom")+" ");var u=document.createElement("input");u.setAttribute("type","checkbox");u.style.marginLeft="8px";u.setAttribute("title",window.location.href);d.appendChild(u);mxUtils.write(d,mxResources.get("edit")+" ");var z=document.createElement("input");z.setAttribute("type","checkbox");z.style.marginLeft="8px";d.appendChild(z);mxUtils.write(d,
-mxResources.get("asNew")+" ");mxUtils.br(d);var D=document.createElement("input");D.setAttribute("type","checkbox");D.setAttribute("checked","checked");D.defaultChecked=!0;D.style.marginLeft="16px";d.appendChild(D);mxUtils.write(d,mxResources.get("resize")+" ");var C=document.createElement("input");C.setAttribute("type","checkbox");C.style.marginLeft="8px";d.appendChild(C);mxUtils.write(d,mxResources.get("fit")+" ");var A=document.createElement("input");A.setAttribute("type","checkbox");A.style.marginLeft=
-"8px";d.appendChild(A);mxUtils.write(d,mxResources.get("embed")+" ");var Q=b.getBasenames().join(";"),S=b.getCurrentFile();mxEvent.addListener(l,"change",m);mxEvent.addListener(n,"change",m);mxEvent.addListener(D,"change",m);mxEvent.addListener(C,"change",m);mxEvent.addListener(u,"change",m);mxEvent.addListener(z,"change",m);mxEvent.addListener(A,"change",m);mxEvent.addListener(c,"change",m);mxEvent.addListener(I,"change",m);mxEvent.addListener(g,"change",m);mxEvent.addListener(e,"change",m);m();
-mxEvent.addListener(N,"click",function(){N.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?N.select():document.execCommand("selectAll",!1,null)});f=document.createElement("div");f.style.paddingTop="12px";f.style.textAlign="right";x=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});x.className="geBtn gePrimaryBtn";f.appendChild(x);d.appendChild(f);this.container=d},CreateGraphDialog=function(b,f,m){var d=document.createElement("div");d.style.textAlign="right";this.init=
-function(){var t=document.createElement("div");t.style.position="relative";t.style.border="1px solid gray";t.style.boxSizing="border-box";t.style.width="100%";t.style.height="360px";t.style.overflow="hidden";t.style.marginBottom="16px";mxEvent.disableContextMenu(t);d.appendChild(t);var x=new Graph(t);x.setCellsCloneable(!0);x.setPanning(!0);x.setAllowDanglingEdges(!1);x.connectionHandler.select=!1;x.view.setTranslate(20,20);x.border=20;x.panningHandler.useLeftButtonForPanning=!0;mxClient.IS_SVG&&
-null!=x.view.getDrawPane()&&(t=x.view.getDrawPane().ownerSVGElement,null!=t&&(t.style.position="absolute"));var v="curved=1;";x.cellRenderer.installCellOverlayListeners=function(l,n,u){mxCellRenderer.prototype.installCellOverlayListeners.apply(this,arguments);mxEvent.addListener(u.node,mxClient.IS_POINTER?"pointerdown":"mousedown",function(z){n.fireEvent(new mxEventObject("pointerdown","event",z,"state",l))});!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&mxEvent.addListener(u.node,"touchstart",function(z){n.fireEvent(new mxEventObject("pointerdown",
-"event",z,"state",l))})};x.getAllConnectionConstraints=function(){return null};x.connectionHandler.marker.highlight.keepOnTop=!1;x.connectionHandler.createEdgeState=function(l){l=x.createEdge(null,null,null,null,null,v);return new mxCellState(this.graph.view,l,this.graph.getCellStyle(l))};var B=x.getDefaultParent(),J=mxUtils.bind(this,function(l){var n=new mxCellOverlay(this.connectImage,"Add outgoing");n.cursor="hand";n.addListener(mxEvent.CLICK,function(u,z){x.connectionHandler.reset();x.clearSelection();
-var D=x.getCellGeometry(l),C;c(function(){C=x.insertVertex(B,null,"Entry",D.x,D.y,80,30,"rounded=1;");J(C);x.view.refresh(C);x.insertEdge(B,null,"",l,C,v)},function(){x.scrollCellToVisible(C)})});n.addListener("pointerdown",function(u,z){u=z.getProperty("event");z=z.getProperty("state");x.popupMenuHandler.hideMenu();x.stopEditing(!1);var D=mxUtils.convertPoint(x.container,mxEvent.getClientX(u),mxEvent.getClientY(u));x.connectionHandler.start(z,D.x,D.y);x.isMouseDown=!0;x.isMouseTrigger=mxEvent.isMouseEvent(u);
-mxEvent.consume(u)});x.addCellOverlay(l,n)});x.getModel().beginUpdate();try{var N=x.insertVertex(B,null,"Start",0,0,80,30,"ellipse");J(N)}finally{x.getModel().endUpdate()}if("horizontalTree"==m){var I=new mxCompactTreeLayout(x);I.edgeRouting=!1;I.levelDistance=30;I.sortEdges=!0;v="edgeStyle=elbowEdgeStyle;elbow=horizontal;"}else"verticalTree"==m?(I=new mxCompactTreeLayout(x,!1),I.edgeRouting=!1,I.levelDistance=30,I.sortEdges=!0,v="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"radialTree"==m?(I=new mxRadialTreeLayout(x,
-!1),I.edgeRouting=!1,I.levelDistance=80):"verticalFlow"==m?I=new mxHierarchicalLayout(x,mxConstants.DIRECTION_NORTH):"horizontalFlow"==m?I=new mxHierarchicalLayout(x,mxConstants.DIRECTION_WEST):"circle"==m?I=new mxCircleLayout(x):(I=new mxFastOrganicLayout(x,!1),I.forceConstant=80);if(null!=I){var c=function(l,n){x.getModel().beginUpdate();try{null!=l&&l(),I.execute(x.getDefaultParent(),N)}catch(u){throw u;}finally{l=new mxMorphing(x),l.addListener(mxEvent.DONE,mxUtils.bind(this,function(){x.getModel().endUpdate();
-null!=n&&n()})),l.startAnimation()}},e=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(l,n,u,z,D){e.apply(this,arguments);c()};x.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);c()};x.connectionHandler.addListener(mxEvent.CONNECT,function(){c()})}t=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});t.className="geBtn";b.editor.cancelFirst&&d.appendChild(t);var g=mxUtils.button(mxResources.get("insert"),
-function(l){x.clearCellOverlays();var n=x.getModel().getChildren(x.getDefaultParent());l=mxEvent.isAltDown(l)?b.editor.graph.getFreeInsertPoint():b.editor.graph.getCenterInsertPoint(x.getBoundingBoxFromGeometry(n,!0));n=b.editor.graph.importCells(n,l.x,l.y);l=b.editor.graph.view;var u=l.getBounds(n);null!=u&&(u.x-=l.translate.x,u.y-=l.translate.y,b.editor.graph.scrollRectToVisible(u),b.editor.graph.setSelectionCells(n));b.hideDialog()});d.appendChild(g);g.className="geBtn gePrimaryBtn";b.editor.cancelFirst||
-d.appendChild(t);this.graph=x};this.container=d};
+null!=b.trello?b.trello.isAuthorized()&&m(function(){b.trello.logout()}):b.mode==App.MODE_DROPBOX&&null!=b.dropbox&&m(function(){b.dropbox.logout();b.openLink("https://www.dropbox.com/logout")}):m(function(){b.oneDrive.logout()});f.appendChild(q);this.container=f},EmbedDialog=function(b,f,m,d,q,x,C,y,I){C=null!=C?C:"Check out the diagram I made using @drawio";d=document.createElement("div");var M=/^https?:\/\//.test(f)||/^mailto:\/\//.test(f);null!=x?mxUtils.write(d,x):mxUtils.write(d,mxResources.get(5E5>
+f.length?M?"link":"mainEmbedNotice":"preview")+":");mxUtils.br(d);x=document.createElement("div");x.style.position="absolute";x.style.top="30px";x.style.right="30px";x.style.color="gray";mxUtils.write(x,b.formatFileSize(f.length));d.appendChild(x);var H=document.createElement("textarea");H.setAttribute("autocomplete","off");H.setAttribute("autocorrect","off");H.setAttribute("autocapitalize","off");H.setAttribute("spellcheck","false");H.style.fontFamily="monospace";H.style.wordBreak="break-all";H.style.marginTop=
+"10px";H.style.resize="none";H.style.height="150px";H.style.width="440px";H.style.border="1px solid gray";H.value=mxResources.get("updatingDocument");d.appendChild(H);mxUtils.br(d);this.init=function(){window.setTimeout(function(){5E5>f.length?(H.value=f,H.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?H.select():document.execCommand("selectAll",!1,null)):(H.setAttribute("readonly","true"),H.value=mxResources.get("tooLargeUseDownload"))},0)};x=document.createElement("div");x.style.position=
+"absolute";x.style.bottom="36px";x.style.right="32px";var c=null;!EmbedDialog.showPreviewOption||mxIsElectron||mxClient.IS_CHROMEAPP&&!M||navigator.standalone||!(M||mxClient.IS_SVG&&(null==document.documentMode||9<document.documentMode))||(c=mxUtils.button(null!=y?y:mxResources.get(5E5>f.length?"preview":"openInNewWindow"),function(){var g=5E5>f.length?H.value:f;if(null!=q)q(g);else if(M)try{var l=b.openLink(g);null!=l&&(null==m||0<m)&&window.setTimeout(mxUtils.bind(this,function(){try{null!=l&&null!=
+l.location.href&&l.location.href.substring(0,8)!=g.substring(0,8)&&(l.close(),b.handleError({message:mxResources.get("drawingTooLarge")}))}catch(u){}}),m||500)}catch(u){b.handleError({message:u.message||mxResources.get("drawingTooLarge")})}else{var p=window.open();p=null!=p?p.document:null;null!=p?(p.writeln("<html><head><title>"+mxUtils.htmlEntities(mxResources.get("preview"))+'</title><meta charset="utf-8"></head><body>'+("<iframe"==f.substring(0,7)?f:mxUtils.htmlEntities(f))+"</body></html>"),
+p.close()):b.handleError({message:mxResources.get("errorUpdatingPreview")})}}),c.className="geBtn",x.appendChild(c));if(!M||7500<f.length)y=mxUtils.button(mxResources.get(mxIsElectron?"save":"download"),function(){b.hideDialog();b.saveData(null!=I?I:"embed.txt","txt",f,"text/plain")}),y.className="geBtn",x.appendChild(y);if(M&&(!b.isOffline()||mxClient.IS_CHROMEAPP)){if(51200>f.length){var e=mxUtils.button("",function(){try{var g="https://www.facebook.com/sharer.php?p[url]="+encodeURIComponent(H.value);
+b.openLink(g)}catch(l){b.handleError({message:l.message||mxResources.get("drawingTooLarge")})}});y=document.createElement("img");y.setAttribute("src",Editor.facebookImage);y.setAttribute("width","18");y.setAttribute("height","18");y.setAttribute("border","0");e.appendChild(y);e.setAttribute("title",mxResources.get("facebook")+" ("+b.formatFileSize(51200)+" max)");e.style.verticalAlign="bottom";e.style.paddingTop="4px";e.style.minWidth="46px";e.className="geBtn";x.appendChild(e)}7168>f.length&&(e=
+mxUtils.button("",function(){try{var g="https://twitter.com/intent/tweet?text="+encodeURIComponent(C)+"&url="+encodeURIComponent(H.value);b.openLink(g)}catch(l){b.handleError({message:l.message||mxResources.get("drawingTooLarge")})}}),y=document.createElement("img"),y.setAttribute("src",Editor.tweetImage),y.setAttribute("width","18"),y.setAttribute("height","18"),y.setAttribute("border","0"),y.style.marginBottom="5px",e.appendChild(y),e.setAttribute("title",mxResources.get("twitter")+" ("+b.formatFileSize(7168)+
+" max)"),e.style.verticalAlign="bottom",e.style.paddingTop="4px",e.style.minWidth="46px",e.className="geBtn",x.appendChild(e))}!b.isOffline()&&5E5>f.length&&(e=mxUtils.button("",function(){try{var g="mailto:?subject="+encodeURIComponent(I||b.defaultFilename)+"&body="+encodeURIComponent(H.value);b.openLink(g)}catch(l){b.handleError({message:l.message||mxResources.get("drawingTooLarge")})}}),y=document.createElement("img"),y.className="geAdaptiveAsset",y.setAttribute("src",Editor.mailImage),y.setAttribute("width",
+"18"),y.setAttribute("height","18"),y.setAttribute("border","0"),y.style.marginBottom="5px",e.appendChild(y),e.style.verticalAlign="bottom",e.style.paddingTop="4px",e.style.minWidth="46px",e.className="geBtn",x.appendChild(e));y=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});x.appendChild(y);e=mxUtils.button(mxResources.get("copy"),function(){H.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?H.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");
+b.alert(mxResources.get("copiedToClipboard"))});5E5>f.length?mxClient.IS_SF||null!=document.documentMode?y.className="geBtn gePrimaryBtn":(x.appendChild(e),e.className="geBtn gePrimaryBtn",y.className="geBtn"):null!=c&&(x.appendChild(c),y.className="geBtn",c.className="geBtn gePrimaryBtn");d.appendChild(x);this.container=d};EmbedDialog.showPreviewOption=!0;
+var GoogleSitesDialog=function(b,f){function m(){var T=null!=R&&null!=R.getTitle()?R.getTitle():this.defaultFilename;if(A.checked&&""!=e.value){var L="https://www.draw.io/gadget.xml?type=4&diagram="+encodeURIComponent(mxUtils.htmlEntities(e.value));null!=T&&(L+="&title="+encodeURIComponent(T));0<P.length&&(L+="&s="+P);""!=g.value&&"0"!=g.value&&(L+="&border="+g.value);""!=c.value&&(L+="&height="+c.value);L+="&pan="+(l.checked?"1":"0");L+="&zoom="+(p.checked?"1":"0");L+="&fit="+(D.checked?"1":"0");
+L+="&resize="+(E.checked?"1":"0");L+="&x0="+Number(H.value);L+="&y0="+I;q.mathEnabled&&(L+="&math=1");z.checked?L+="&edit=_blank":u.checked&&(L+="&edit="+encodeURIComponent(mxUtils.htmlEntities(window.location.href)));M.value=L}else R.constructor==DriveFile||R.constructor==DropboxFile?(L="https://www.draw.io/gadget.xml?embed=0&diagram=",""!=e.value?L+=encodeURIComponent(mxUtils.htmlEntities(e.value))+"&type=3":(L+=R.getHash().substring(1),L=R.constructor==DropboxFile?L+"&type=2":L+"&type=1"),null!=
+T&&(L+="&title="+encodeURIComponent(T)),""!=c.value&&(T=parseInt(c.value)+parseInt(H.value),L+="&height="+T),M.value=L):M.value=""}var d=document.createElement("div"),q=b.editor.graph,x=q.getGraphBounds(),C=q.view.scale,y=Math.floor(x.x/C-q.view.translate.x),I=Math.floor(x.y/C-q.view.translate.y);mxUtils.write(d,mxResources.get("googleGadget")+":");mxUtils.br(d);var M=document.createElement("input");M.setAttribute("type","text");M.style.marginBottom="8px";M.style.marginTop="2px";M.style.width="410px";
+d.appendChild(M);mxUtils.br(d);this.init=function(){M.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?M.select():document.execCommand("selectAll",!1,null)};mxUtils.write(d,mxResources.get("top")+":");var H=document.createElement("input");H.setAttribute("type","text");H.setAttribute("size","4");H.style.marginRight="16px";H.style.marginLeft="4px";H.value=y;d.appendChild(H);mxUtils.write(d,mxResources.get("height")+":");var c=document.createElement("input");c.setAttribute("type","text");
+c.setAttribute("size","4");c.style.marginLeft="4px";c.value=Math.ceil(x.height/C);d.appendChild(c);mxUtils.br(d);x=document.createElement("hr");x.setAttribute("size","1");x.style.marginBottom="16px";x.style.marginTop="16px";d.appendChild(x);mxUtils.write(d,mxResources.get("publicDiagramUrl")+":");mxUtils.br(d);var e=document.createElement("input");e.setAttribute("type","text");e.setAttribute("size","28");e.style.marginBottom="8px";e.style.marginTop="2px";e.style.width="410px";e.value=f||"";d.appendChild(e);
+mxUtils.br(d);mxUtils.write(d,mxResources.get("borderWidth")+":");var g=document.createElement("input");g.setAttribute("type","text");g.setAttribute("size","3");g.style.marginBottom="8px";g.style.marginLeft="4px";g.value="0";d.appendChild(g);mxUtils.br(d);var l=document.createElement("input");l.setAttribute("type","checkbox");l.setAttribute("checked","checked");l.defaultChecked=!0;l.style.marginLeft="16px";d.appendChild(l);mxUtils.write(d,mxResources.get("pan")+" ");var p=document.createElement("input");
+p.setAttribute("type","checkbox");p.setAttribute("checked","checked");p.defaultChecked=!0;p.style.marginLeft="8px";d.appendChild(p);mxUtils.write(d,mxResources.get("zoom")+" ");var u=document.createElement("input");u.setAttribute("type","checkbox");u.style.marginLeft="8px";u.setAttribute("title",window.location.href);d.appendChild(u);mxUtils.write(d,mxResources.get("edit")+" ");var z=document.createElement("input");z.setAttribute("type","checkbox");z.style.marginLeft="8px";d.appendChild(z);mxUtils.write(d,
+mxResources.get("asNew")+" ");mxUtils.br(d);var E=document.createElement("input");E.setAttribute("type","checkbox");E.setAttribute("checked","checked");E.defaultChecked=!0;E.style.marginLeft="16px";d.appendChild(E);mxUtils.write(d,mxResources.get("resize")+" ");var D=document.createElement("input");D.setAttribute("type","checkbox");D.style.marginLeft="8px";d.appendChild(D);mxUtils.write(d,mxResources.get("fit")+" ");var A=document.createElement("input");A.setAttribute("type","checkbox");A.style.marginLeft=
+"8px";d.appendChild(A);mxUtils.write(d,mxResources.get("embed")+" ");var P=b.getBasenames().join(";"),R=b.getCurrentFile();mxEvent.addListener(l,"change",m);mxEvent.addListener(p,"change",m);mxEvent.addListener(E,"change",m);mxEvent.addListener(D,"change",m);mxEvent.addListener(u,"change",m);mxEvent.addListener(z,"change",m);mxEvent.addListener(A,"change",m);mxEvent.addListener(c,"change",m);mxEvent.addListener(H,"change",m);mxEvent.addListener(g,"change",m);mxEvent.addListener(e,"change",m);m();
+mxEvent.addListener(M,"click",function(){M.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?M.select():document.execCommand("selectAll",!1,null)});f=document.createElement("div");f.style.paddingTop="12px";f.style.textAlign="right";x=mxUtils.button(mxResources.get("close"),function(){b.hideDialog()});x.className="geBtn gePrimaryBtn";f.appendChild(x);d.appendChild(f);this.container=d},CreateGraphDialog=function(b,f,m){var d=document.createElement("div");d.style.textAlign="right";this.init=
+function(){var q=document.createElement("div");q.style.position="relative";q.style.border="1px solid gray";q.style.boxSizing="border-box";q.style.width="100%";q.style.height="360px";q.style.overflow="hidden";q.style.marginBottom="16px";mxEvent.disableContextMenu(q);d.appendChild(q);var x=new Graph(q);x.setCellsCloneable(!0);x.setPanning(!0);x.setAllowDanglingEdges(!1);x.connectionHandler.select=!1;x.view.setTranslate(20,20);x.border=20;x.panningHandler.useLeftButtonForPanning=!0;mxClient.IS_SVG&&
+null!=x.view.getDrawPane()&&(q=x.view.getDrawPane().ownerSVGElement,null!=q&&(q.style.position="absolute"));var C="curved=1;";x.cellRenderer.installCellOverlayListeners=function(l,p,u){mxCellRenderer.prototype.installCellOverlayListeners.apply(this,arguments);mxEvent.addListener(u.node,mxClient.IS_POINTER?"pointerdown":"mousedown",function(z){p.fireEvent(new mxEventObject("pointerdown","event",z,"state",l))});!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&mxEvent.addListener(u.node,"touchstart",function(z){p.fireEvent(new mxEventObject("pointerdown",
+"event",z,"state",l))})};x.getAllConnectionConstraints=function(){return null};x.connectionHandler.marker.highlight.keepOnTop=!1;x.connectionHandler.createEdgeState=function(l){l=x.createEdge(null,null,null,null,null,C);return new mxCellState(this.graph.view,l,this.graph.getCellStyle(l))};var y=x.getDefaultParent(),I=mxUtils.bind(this,function(l){var p=new mxCellOverlay(this.connectImage,"Add outgoing");p.cursor="hand";p.addListener(mxEvent.CLICK,function(u,z){x.connectionHandler.reset();x.clearSelection();
+var E=x.getCellGeometry(l),D;c(function(){D=x.insertVertex(y,null,"Entry",E.x,E.y,80,30,"rounded=1;");I(D);x.view.refresh(D);x.insertEdge(y,null,"",l,D,C)},function(){x.scrollCellToVisible(D)})});p.addListener("pointerdown",function(u,z){u=z.getProperty("event");z=z.getProperty("state");x.popupMenuHandler.hideMenu();x.stopEditing(!1);var E=mxUtils.convertPoint(x.container,mxEvent.getClientX(u),mxEvent.getClientY(u));x.connectionHandler.start(z,E.x,E.y);x.isMouseDown=!0;x.isMouseTrigger=mxEvent.isMouseEvent(u);
+mxEvent.consume(u)});x.addCellOverlay(l,p)});x.getModel().beginUpdate();try{var M=x.insertVertex(y,null,"Start",0,0,80,30,"ellipse");I(M)}finally{x.getModel().endUpdate()}if("horizontalTree"==m){var H=new mxCompactTreeLayout(x);H.edgeRouting=!1;H.levelDistance=30;H.sortEdges=!0;C="edgeStyle=elbowEdgeStyle;elbow=horizontal;"}else"verticalTree"==m?(H=new mxCompactTreeLayout(x,!1),H.edgeRouting=!1,H.levelDistance=30,H.sortEdges=!0,C="edgeStyle=elbowEdgeStyle;elbow=vertical;"):"radialTree"==m?(H=new mxRadialTreeLayout(x,
+!1),H.edgeRouting=!1,H.levelDistance=80):"verticalFlow"==m?H=new mxHierarchicalLayout(x,mxConstants.DIRECTION_NORTH):"horizontalFlow"==m?H=new mxHierarchicalLayout(x,mxConstants.DIRECTION_WEST):"circle"==m?H=new mxCircleLayout(x):(H=new mxFastOrganicLayout(x,!1),H.forceConstant=80);if(null!=H){var c=function(l,p){x.getModel().beginUpdate();try{null!=l&&l(),H.execute(x.getDefaultParent(),M)}catch(u){throw u;}finally{l=new mxMorphing(x),l.addListener(mxEvent.DONE,mxUtils.bind(this,function(){x.getModel().endUpdate();
+null!=p&&p()})),l.startAnimation()}},e=mxEdgeHandler.prototype.connect;mxEdgeHandler.prototype.connect=function(l,p,u,z,E){e.apply(this,arguments);c()};x.resizeCell=function(){mxGraph.prototype.resizeCell.apply(this,arguments);c()};x.connectionHandler.addListener(mxEvent.CONNECT,function(){c()})}q=mxUtils.button(mxResources.get("close"),function(){b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});q.className="geBtn";b.editor.cancelFirst&&d.appendChild(q);var g=mxUtils.button(mxResources.get("insert"),
+function(l){x.clearCellOverlays();var p=x.getModel().getChildren(x.getDefaultParent());l=mxEvent.isAltDown(l)?b.editor.graph.getFreeInsertPoint():b.editor.graph.getCenterInsertPoint(x.getBoundingBoxFromGeometry(p,!0));p=b.editor.graph.importCells(p,l.x,l.y);l=b.editor.graph.view;var u=l.getBounds(p);null!=u&&(u.x-=l.translate.x,u.y-=l.translate.y,b.editor.graph.scrollRectToVisible(u),b.editor.graph.setSelectionCells(p));b.hideDialog()});d.appendChild(g);g.className="geBtn gePrimaryBtn";b.editor.cancelFirst||
+d.appendChild(q);this.graph=x};this.container=d};
CreateGraphDialog.prototype.connectImage=new mxImage("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1s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J12QIeL6SyeDz+Kfp8ZrNWjgDTsVjsQ7qXyTjztXJhm9ePxFLfMTg4eG9tbe1RTP9KFFYQfHliYmIS69kCC7jKYmKwxxD5P88tkVkqbPPcIps9t4T/+HjcuJ/s5BFJgf4WYABCtxGuxIZ90gAAAABJRU5ErkJggg==",26,
26);
-var BackgroundImageDialog=function(b,f,m,d,t){function x(){null==q||q==mxConstants.NONE?(p.style.display="none",U.checked=!1):(p.style.backgroundColor=q,p.style.display="",U.checked=!0)}var v=b.editor.graph,B=document.createElement("div");B.style.whiteSpace="nowrap";var J=document.createElement("h2");mxUtils.write(J,mxResources.get("background"));J.style.marginTop="0px";B.appendChild(J);var N=null!=m&&null!=m.originalSrc;J=!1;var I=document.createElement("input");I.style.cssText="margin-right:8px;margin-bottom:8px;";I.setAttribute("value",
-"url");I.setAttribute("type","radio");I.setAttribute("name","geBackgroundImageDialogOption");var c=document.createElement("input");c.style.cssText="margin-right:8px;margin-bottom:8px;";c.setAttribute("value","url");c.setAttribute("type","radio");c.setAttribute("name","geBackgroundImageDialogOption");var e=document.createElement("input");e.setAttribute("type","text");e.style.marginBottom="8px";e.style.width="360px";e.value=N||null==m?"":m.src;var g=document.createElement("select");g.style.width="360px";
-if(null!=b.pages)for(var l=0;l<b.pages.length;l++){var n=document.createElement("option");mxUtils.write(n,b.pages[l].getName()||mxResources.get("pageWithNumber",[l+1]));n.setAttribute("value","data:page/id,"+b.pages[l].getId());b.pages[l]==b.currentPage&&n.setAttribute("disabled","disabled");null!=m&&m.originalSrc==n.getAttribute("value")&&(n.setAttribute("selected","selected"),J=!0);g.appendChild(n)}N||null!=b.pages&&1!=b.pages.length||(I.style.display="none",c.style.display="none",g.style.display=
-"none");var u=document.createElement("option"),z=!1,D=!1,C=function(E,H){z||null!=E&&D||(c.checked?null!=H&&H(u.selected?null:g.value):""==e.value||b.isOffline()?(Q.value="",S.value="",null!=H&&H("")):(e.value=mxUtils.trim(e.value),b.loadImage(e.value,function(L){Q.value=L.width;S.value=L.height;null!=H&&H(e.value)},function(){b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"));Q.value="";S.value="";null!=H&&H(null)})))},A=mxUtils.bind(this,function(E){b.importFiles(E,
-0,0,b.maxBackgroundSize,function(H,L,K,k,y,F){e.value=H;C();e.focus()},function(){},function(H){return"image/"==H.type.substring(0,6)},function(H){for(var L=0;L<H.length;L++)H[L]()},!0,b.maxBackgroundBytes,b.maxBackgroundBytes,!0)});this.init=function(){N?g.focus():e.focus();mxEvent.addListener(g,"focus",function(){I.removeAttribute("checked");c.setAttribute("checked","checked");c.checked=!0});mxEvent.addListener(e,"focus",function(){c.removeAttribute("checked");I.setAttribute("checked","checked");
-I.checked=!0});if(Graph.fileSupport){e.setAttribute("placeholder",mxResources.get("dragImagesHere"));var E=B.parentNode,H=null;mxEvent.addListener(E,"dragleave",function(L){null!=H&&(H.parentNode.removeChild(H),H=null);L.stopPropagation();L.preventDefault()});mxEvent.addListener(E,"dragover",mxUtils.bind(this,function(L){null==H&&(!mxClient.IS_IE||10<document.documentMode)&&(H=b.highlightElement(E));L.stopPropagation();L.preventDefault()}));mxEvent.addListener(E,"drop",mxUtils.bind(this,function(L){null!=
-H&&(H.parentNode.removeChild(H),H=null);if(0<L.dataTransfer.files.length)A(L.dataTransfer.files);else if(0<=mxUtils.indexOf(L.dataTransfer.types,"text/uri-list")){var K=L.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(K)&&(e.value=decodeURIComponent(K),C())}L.stopPropagation();L.preventDefault()}),!1)}};B.appendChild(I);B.appendChild(e);mxUtils.br(B);l=document.createElement("span");l.style.marginLeft="30px";mxUtils.write(l,mxResources.get("width")+":");B.appendChild(l);
-var Q=document.createElement("input");Q.setAttribute("type","text");Q.style.width="60px";Q.style.marginLeft="8px";Q.style.marginRight="16px";Q.value=null==m||N?"":m.width;B.appendChild(Q);mxUtils.write(B,mxResources.get("height")+":");var S=document.createElement("input");S.setAttribute("type","text");S.style.width="60px";S.style.marginLeft="8px";S.style.marginRight="16px";S.value=null==m||N?"":m.height;B.appendChild(S);mxUtils.br(B);mxUtils.br(B);mxEvent.addListener(e,"change",C);ImageDialog.filePicked=
-function(E){E.action==google.picker.Action.PICKED&&null!=E.docs[0].thumbnails&&(E=E.docs[0].thumbnails[E.docs[0].thumbnails.length-1],null!=E&&(e.value=E.url,C()));e.focus()};B.appendChild(c);B.appendChild(g);mxUtils.br(B);mxUtils.br(B);N?(c.setAttribute("checked","checked"),c.checked=!0):(I.setAttribute("checked","checked"),I.checked=!0);!J&&c.checked&&(mxUtils.write(u,mxResources.get("pageNotFound")),u.setAttribute("disabled","disabled"),u.setAttribute("selected","selected"),u.setAttribute("value",
-"pageNotFound"),g.appendChild(u),mxEvent.addListener(g,"change",function(){null==u.parentNode||u.selected||u.parentNode.removeChild(u)}));m=document.createElement("div");m.style.display=t?"inline-flex":"none";m.style.alignItems="center";m.style.cursor="default";m.style.minWidth="40%";m.style.height="20px";var U=document.createElement("input");U.setAttribute("type","checkbox");U.style.margin="0px 10px 0px 4px";U.style.verticalAlign="bottom";U.defaultChecked=d!=mxConstants.NONE&&null!=d;U.checked=U.defaultChecked;
-m.appendChild(U);mxUtils.write(m,mxResources.get("fillColor"));t=m.cloneNode(!1);var O=document.createElement("input");O.setAttribute("type","checkbox");O.style.margin="0px 10px 0px 30px";O.style.verticalAlign="bottom";O.defaultChecked=v.shadowVisible;O.checked=O.defaultChecked;t.appendChild(O);mxUtils.write(t,mxResources.get("shadow"));mxClient.IS_SVG&&!mxClient.IS_SF||O.setAttribute("disabled","disabled");mxEvent.addListener(t,"click",function(E){mxEvent.getSource(E)!=O&&(O.checked=!O.checked)});
-var p=document.createElement("button");p.style.width="36px";p.style.height="18px";p.style.cursor="pointer";p.style.marginLeft="10px";p.style.backgroundPosition="center center";p.style.backgroundRepeat="no-repeat";p.style.verticalAlign="bottom";p.className="geColorBtn";var q=d;x();mxEvent.addListener(m,"click",function(E){mxEvent.getSource(E)!=U&&(U.checked=!U.checked);q=U.checked?"#ffffff":null;x()});mxEvent.addListener(p,"click",function(E){b.pickColor(q||"none",function(H){q=H;x()});mxEvent.consume(E)});
-m.appendChild(p);B.appendChild(m);B.appendChild(t);mxUtils.br(B);d=document.createElement("div");d.style.marginTop="30px";d.style.textAlign="right";v=mxUtils.button(mxResources.get("cancel"),function(){z=!0;b.hideDialog()});v.className="geBtn";b.editor.cancelFirst&&d.appendChild(v);t=mxUtils.button(mxResources.get("reset"),function(){e.value="";Q.value="";S.value="";I.checked=!0;q=mxConstants.NONE;x();z=!1});mxEvent.addGestureListeners(t,function(){z=!0});t.className="geBtn";t.width="100";d.appendChild(t);
-if(Graph.fileSupport){var G=document.createElement("input");G.setAttribute("multiple","multiple");G.setAttribute("type","file");mxEvent.addListener(G,"change",function(E){null!=G.files&&(A(G.files),G.type="",G.type="file",G.value="")});G.style.display="none";B.appendChild(G);t=mxUtils.button(mxResources.get("open"),function(){G.click()});t.className="geBtn";d.appendChild(t)}applyBtn=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();C(null,function(E){f(""!=E&&null!=E?new mxImage(E,
-Q.value,S.value):null,null==E,q,!mxClient.IS_SVG||mxClient.IS_SF?null:O.checked)})});mxEvent.addGestureListeners(applyBtn,function(){D=!0});applyBtn.className="geBtn gePrimaryBtn";d.appendChild(applyBtn);b.editor.cancelFirst||d.appendChild(v);B.appendChild(d);this.container=B},ParseDialog=function(b,f,m){function d(g,l,n){var u=g.split("\n");if("plantUmlPng"==l||"plantUmlSvg"==l||"plantUmlTxt"==l){if(b.spinner.spin(document.body,mxResources.get("inserting"))){var z=function(K,k,y,F,M){x=mxEvent.isAltDown(n)?
-x:D.getCenterInsertPoint(new mxRectangle(0,0,F,M));var P=null;D.getModel().beginUpdate();try{P="txt"==k?b.insertAsPreText(y,x.x,x.y):D.insertVertex(null,null,null,x.x,x.y,F,M,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b.convertDataUri(y)+";"),D.setAttributeForCell(P,"plantUmlData",JSON.stringify({data:K,format:k},null,2))}finally{D.getModel().endUpdate()}null!=P&&(D.setSelectionCell(P),D.scrollCellToVisible(P))},D=b.editor.graph,C="plantUmlTxt"==l?"txt":"plantUmlPng"==
-l?"png":"svg";"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml"==g&&"svg"==C?window.setTimeout(function(){b.spinner.stop();z(g,C,"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBjb250ZW50U2NyaXB0VHlwZT0iYXBwbGljYXRpb24vZWNtYXNjcmlwdCIgY29udGVudFN0eWxlVHlwZT0idGV4dC9jc3MiIGhlaWdodD0iMjEycHgiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHN0eWxlPSJ3aWR0aDoyOTVweDtoZWlnaHQ6MjEycHg7IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyOTUgMjEyIiB3aWR0aD0iMjk1cHgiIHpvb21BbmRQYW49Im1hZ25pZnkiPjxkZWZzLz48Zz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsgc3Ryb2tlLWRhc2hhcnJheTogNS4wLDUuMDsiIHgxPSIzMSIgeDI9IjMxIiB5MT0iMzQuNDg4MyIgeTI9IjE3MS43MzA1Ii8+PGxpbmUgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7IHN0cm9rZS1kYXNoYXJyYXk6IDUuMCw1LjA7IiB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mF0aW5nIFN5c3RlbTogTWFjIE9TIFgKRGVmYXVsdCBFbmNvZGluZzogVVRGLTgKTGFuZ3VhZ2U6IGVuCkNvdW50cnk6IFVTCi0tPjwvZz48L3N2Zz4=",
-295,212)},200):b.generatePlantUmlImage(g,C,function(K,k,y){b.spinner.stop();z(g,C,K,k,y)},function(K){b.handleError(K)})}}else if("mermaid"==l||"mermaid2drawio"==l){if(b.spinner.spin(document.body,mxResources.get("inserting"))){for(var A=0;A<u.length&&(0==u[A].trim().length||"%%"==u[A].substring(0,2));)A++;if("---"==u[A].trim()){do A++;while(A<u.length&&"---"!=u[A].trim());A++}A=u[A].trim().toLowerCase();u=A.indexOf(" ");A=A.substring(0,0<u?u:A.length);var Q="undefined"!==typeof mxMermaidToDrawio&&
-"mermaid2drawio"==l&&("graph"==A||"flowchart"==A||"sequencediagram"==A||"classdiagram"==A||"statediagram-v2"==A||"statediagram"==A||"erdiagram"==A||"requirementdiagram"==A||"gitgraph"==A||"mindmap"==A||"journey"==A);D=b.editor.graph;Q&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(K){b.spinner.stop();D.setSelectionCells(b.importXml(K,Math.max(x.x,20),Math.max(x.y,20),!0,null,null,!0));D.scrollCellToVisible(D.getSelectionCell())}));b.generateMermaidImage(g,null,function(K,k,y){if(!Q){x=
-mxEvent.isAltDown(n)?x:D.getCenterInsertPoint(new mxRectangle(0,0,k,y));b.spinner.stop();var F=null;D.getModel().beginUpdate();try{F=D.insertVertex(null,null,null,x.x,x.y,k,y,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+K+";"),D.setAttributeForCell(F,"mermaidData",JSON.stringify({data:g},null,2))}finally{D.getModel().endUpdate()}null!=F&&(D.setSelectionCell(F),D.scrollCellToVisible(F))}},function(K){"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.resetListeners();b.handleError(K)})}}else if("table"==
-l){l=null;var S=[],U=0,O={};for(A=0;A<u.length;A++){var p=mxUtils.trim(u[A]);if("primary key"==p.substring(0,11).toLowerCase()){var q=p.match(/\((.+)\)/);q&&q[1]&&(O[q[1]]=!0);u.splice(A,1)}else 0<p.toLowerCase().indexOf("primary key")&&(O[p.split(" ")[0]]=!0,u[A]=mxUtils.trim(p.replace(/primary key/i,"")))}for(A=0;A<u.length;A++)if(p=mxUtils.trim(u[A]),"create table"==p.substring(0,12).toLowerCase())p=mxUtils.trim(p.substring(12)),"("==p.charAt(p.length-1)&&(p=mxUtils.trim(p.substring(0,p.length-
-1))),l=new mxCell(p,new mxGeometry(U,0,160,30),"shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;"),l.vertex=!0,S.push(l),p=b.editor.graph.getPreferredSizeForCell(G),null!=p&&(l.geometry.width=p.width+10);else if(null!=l&&")"==p.charAt(0))U+=l.geometry.width+40,l=null;else if("("!=p&&null!=l){p=p.substring(0,","==p.charAt(p.length-1)?p.length-1:p.length);q=O[p.split(" ")[0]];var G=new mxCell("",new mxGeometry(0,
-0,160,30),"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;strokeColor=inherit;top=0;left=0;right=0;bottom="+(q?"1":"0")+";");G.vertex=!0;var E=new mxCell(q?"PK":"",new mxGeometry(0,0,30,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;strokeColor=inherit;top=0;left=0;bottom=0;right=0;"+(q?"fontStyle=1;":""));E.vertex=!0;G.insert(E);p=new mxCell(p,new mxGeometry(30,
-0,130,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;align=left;strokeColor=inherit;top=0;left=0;bottom=0;right=0;spacingLeft=6;"+(q?"fontStyle=5;":""));p.vertex=!0;G.insert(p);p=b.editor.graph.getPreferredSizeForCell(p);null!=p&&l.geometry.width<p.width+30&&(l.geometry.width=Math.min(320,Math.max(l.geometry.width,p.width+30)));l.insert(G,q?0:null);l.geometry.height+=30}0<S.length&&(D=b.editor.graph,x=mxEvent.isAltDown(n)?x:D.getCenterInsertPoint(D.getBoundingBoxFromGeometry(S,
-!0)),D.setSelectionCells(D.importCells(S,x.x,x.y)),D.scrollCellToVisible(D.getSelectionCell()))}else if("list"==l){if(0<u.length){D=b.editor.graph;l=null;S=[];for(A=G=0;A<u.length;A++)";"!=u[A].charAt(0)&&(0==u[A].length?l=null:null==l?(l=new mxCell(u[A],new mxGeometry(G,0,160,30),"swimlane;fontStyle=1;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"),l.vertex=!0,S.push(l),p=D.getPreferredSizeForCell(l),
-null!=p&&l.geometry.width<p.width+10&&(l.geometry.width=p.width+10),G+=l.geometry.width+40):"--"==u[A]?(p=new mxCell("",new mxGeometry(0,0,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),p.vertex=!0,l.geometry.height+=p.geometry.height,l.insert(p)):0<u[A].length&&(U=new mxCell(u[A],new mxGeometry(0,0,60,26),"text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
-U.vertex=!0,p=D.getPreferredSizeForCell(U),null!=p&&U.geometry.width<p.width&&(U.geometry.width=p.width),l.geometry.width=Math.max(l.geometry.width,U.geometry.width),l.geometry.height+=U.geometry.height,l.insert(U)));if(0<S.length){x=mxEvent.isAltDown(n)?x:D.getCenterInsertPoint(D.getBoundingBoxFromGeometry(S,!0));D.getModel().beginUpdate();try{S=D.importCells(S,x.x,x.y);p=[];for(A=0;A<S.length;A++)p.push(S[A]),p=p.concat(S[A].children);D.fireEvent(new mxEventObject("cellsInserted","cells",p))}finally{D.getModel().endUpdate()}D.setSelectionCells(S);
-D.scrollCellToVisible(D.getSelectionCell())}}}else{G=function(K){var k=H[K];null==k&&(k=new mxCell(K,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),k.vertex=!0,H[K]=k,S.push(k));return k};var H={};S=[];for(A=0;A<u.length;A++)if(";"!=u[A].charAt(0)){var L=u[A].split("->");2<=L.length&&(q=G(L[0]),E=G(L[L.length-1]),L=new mxCell(2<L.length?L[1]:"",new mxGeometry),L.edge=!0,L.geometry.relative=!0,q.insertEdge(L,!0),E.insertEdge(L,!1),S.push(L))}if(0<S.length){u=document.createElement("div");u.style.visibility=
-"hidden";document.body.appendChild(u);D=new Graph(u);D.getModel().beginUpdate();try{S=D.importCells(S);for(A=0;A<S.length;A++)D.getModel().isVertex(S[A])&&(p=D.getPreferredSizeForCell(S[A]),S[A].geometry.width=Math.max(S[A].geometry.width,p.width),S[A].geometry.height=Math.max(S[A].geometry.height,p.height));A=!0;"horizontalFlow"==l||"verticalFlow"==l?((new mxHierarchicalLayout(D,"horizontalFlow"==l?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH)).execute(D.getDefaultParent(),S),A=!1):"circle"==
-l?(new mxCircleLayout(D)).execute(D.getDefaultParent()):(U=new mxFastOrganicLayout(D),U.disableEdgeStyle=!1,U.forceConstant=180,U.execute(D.getDefaultParent()));A&&(O=new mxParallelEdgeLayout(D),O.spacing=30,O.execute(D.getDefaultParent()))}finally{D.getModel().endUpdate()}D.clearCellOverlays();p=[];b.editor.graph.getModel().beginUpdate();try{S=D.getModel().getChildren(D.getDefaultParent()),x=mxEvent.isAltDown(n)?x:b.editor.graph.getCenterInsertPoint(D.getBoundingBoxFromGeometry(S,!0)),p=b.editor.graph.importCells(S,
-x.x,x.y),b.editor.graph.fireEvent(new mxEventObject("cellsInserted","cells",p))}finally{b.editor.graph.getModel().endUpdate()}b.editor.graph.setSelectionCells(p);b.editor.graph.scrollCellToVisible(b.editor.graph.getSelectionCell());D.destroy();u.parentNode.removeChild(u)}}}function t(){return"list"==B.value?"Person\n-name: String\n-birthDate: Date\n--\n+getName(): String\n+setName(String): void\n+isBirthday(): boolean\n\nAddress\n-street: String\n-city: String\n-state: String":"mermaid"==B.value||
-"mermaid2drawio"==B.value?"graph TD;\n A--\x3eB;\n A--\x3eC;\n B--\x3eD;\n C--\x3eD;":"table"==B.value?"CREATE TABLE Suppliers\n(\nsupplier_id int NOT NULL PRIMARY KEY,\nsupplier_name char(50) NOT NULL,\ncontact_name char(50),\n);\nCREATE TABLE Customers\n(\ncustomer_id int NOT NULL PRIMARY KEY,\ncustomer_name char(50) NOT NULL,\naddress char(50),\ncity char(50),\nstate char(25),\nzip_code char(10)\n);\n":"plantUmlPng"==B.value?"@startuml\nskinparam backgroundcolor transparent\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml":
-"plantUmlSvg"==B.value||"plantUmlTxt"==B.value?"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml":";Example:\na->b\nb->edge label->c\nc->a\n"}var x=b.editor.graph.getFreeInsertPoint();f=document.createElement("div");f.style.textAlign="right";var v=document.createElement("textarea");v.style.boxSizing="border-box";v.style.resize=
-"none";v.style.width="100%";v.style.height="354px";v.style.marginBottom="16px";var B=document.createElement("select");B.className="geBtn";if("formatSql"==m||"mermaid"==m&&"draw.io"!=b.getServiceName()&&"atlassian"!=b.getServiceName())B.style.display="none";var J=document.createElement("option");J.setAttribute("value","list");mxUtils.write(J,mxResources.get("list"));"plantUml"!=m&&"mermaid"!=m&&B.appendChild(J);null!=m&&"fromText"!=m||J.setAttribute("selected","selected");J=document.createElement("option");
-J.setAttribute("value","table");mxUtils.write(J,mxResources.get("formatSql"));"formatSql"==m&&(B.appendChild(J),J.setAttribute("selected","selected"));J=document.createElement("option");J.setAttribute("value","mermaid");mxUtils.write(J,mxResources.get("image"));if("mermaid"==m)if("undefined"!==typeof mxMermaidToDrawio){var N=document.createElement("option");N.setAttribute("value","mermaid2drawio");N.setAttribute("selected","selected");mxUtils.write(N,mxResources.get("diagram"));B.appendChild(N)}else B.style.display=
-"none";B.appendChild(J);J=document.createElement("option");J.setAttribute("value","diagram");mxUtils.write(J,mxResources.get("diagram"));N=document.createElement("option");N.setAttribute("value","circle");mxUtils.write(N,mxResources.get("circle"));var I=document.createElement("option");I.setAttribute("value","horizontalFlow");mxUtils.write(I,mxResources.get("horizontalFlow"));var c=document.createElement("option");c.setAttribute("value","verticalFlow");mxUtils.write(c,mxResources.get("verticalFlow"));
-"plantUml"!=m&&"mermaid"!=m&&(B.appendChild(J),B.appendChild(N),B.appendChild(I),B.appendChild(c));J=document.createElement("option");J.setAttribute("value","plantUmlSvg");mxUtils.write(J,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");"plantUml"==m&&J.setAttribute("selected","selected");N=document.createElement("option");N.setAttribute("value","plantUmlPng");mxUtils.write(N,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+")");I=document.createElement("option");I.setAttribute("value",
-"plantUmlTxt");mxUtils.write(I,mxResources.get("plantUml")+" ("+mxResources.get("text")+")");EditorUi.enablePlantUml&&Graph.fileSupport&&!b.isOffline()&&"plantUml"==m&&(B.appendChild(J),B.appendChild(N),B.appendChild(I));var e=t();v.value=e;f.appendChild(v);this.init=function(){v.focus()};Graph.fileSupport&&(v.addEventListener("dragover",function(g){g.stopPropagation();g.preventDefault()},!1),v.addEventListener("drop",function(g){g.stopPropagation();g.preventDefault();if(0<g.dataTransfer.files.length){g=
-g.dataTransfer.files[0];var l=new FileReader;l.onload=function(n){v.value=n.target.result};l.readAsText(g)}},!1));f.appendChild(B);mxEvent.addListener(B,"change",function(){var g=t();if(0==v.value.length||v.value==e)e=g,v.value=e});b.isOffline()||"mermaid"!=m&&"plantUml"!=m||(J=mxUtils.button(mxResources.get("help"),function(){b.openLink("mermaid"==m?"https://mermaid-js.github.io/mermaid/#/":"https://plantuml.com/")}),J.className="geBtn",f.appendChild(J));J=mxUtils.button(mxResources.get("close"),
-function(){v.value==e?b.hideDialog():b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});J.className="geBtn";b.editor.cancelFirst&&f.appendChild(J);N=mxUtils.button(mxResources.get("insert"),function(g){try{b.hideDialog(),d(v.value,B.value,g)}catch(l){b.handleError(l)}});N.className="geBtn gePrimaryBtn";f.appendChild(N);b.editor.cancelFirst||f.appendChild(J);this.container=f},NewDialog=function(b,f,m,d,t,x,v,B,J,N,I,c,e,g,l,n,u,z){function D(ja){null!=ja&&(ra=oa=ja?135:140);ja=!0;
-if(null!=Va)for(;K<Va.length&&(ja||0!=mxUtils.mod(K,30));){var sa=Va[K++];sa=q(sa.url,sa.libs,sa.title,sa.tooltip?sa.tooltip:sa.title,sa.select,sa.imgUrl,sa.info,sa.onClick,sa.preview,sa.noImg,sa.clibs,sa.type);ja&&sa.click();ja=!1}}function C(ja,sa,na,pa,qa,ta){if(null!=ja&&mxUtils.isAncestorNode(document.body,pa)){ja=mxUtils.parseXml(ja);ja=Editor.parseDiagramNode(ja.documentElement,null,!0);var Fa=new mxCodec(ja.ownerDocument),Ia=new mxGraphModel;Fa.decode(ja,Ia);b.sidebar.createTooltip(pa,Ia.root.children,
-Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-120,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-120,800),null!=qa?mxResources.get(qa):null,!0,new mxPoint(sa,na),!0,function(){R=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;null!=ta&&S(pa,null,null,ta,infoObj,clibs)},!0,!1)}}function A(){var ja=document.createElement("div");ja.style.position="absolute";ja.style.overflow="visible";
-ja.style.left="8px";ja.style.right="8px";ja.style.bottom="8px";ja.style.top="8px";mxUtils.write(ja,mxResources.get("describeYourDiagram")+":");mxUtils.br(ja);var sa=document.createElement("input");sa.setAttribute("type","text");sa.setAttribute("placeholder",mxResources.get("processForHiringNewEmployee"));sa.style.width="100%";sa.style.marginTop="6px";sa.style.marginBottom="4px";sa.style.boxSizing="border-box";ja.appendChild(sa);ja.init=function(){sa.focus()};mxUtils.br(ja);var na=document.createElement("div");
-na.style.top="86px";na.style.left="2px";na.style.right="2px";na.style.bottom="2px";na.style.position="absolute";na.style.border="1px solid #424242";var pa=document.createElement("div");pa.style.boxSizing="border-box";pa.style.position="relative";pa.style.textAlign="center";pa.style.top="50%";mxUtils.write(pa,mxResources.get("blankDiagram"));na.appendChild(pa);var qa=document.createElement("select");qa.className="geBtn";qa.style.maxWidth="160px";qa.style.marginLeft="0px";pa=document.createElement("option");
-mxUtils.write(pa,mxResources.get("diagramType"));pa.setAttribute("value","");qa.appendChild(pa);for(var ta=0;ta<EditorUi.mermaidDiagramTypes.length;ta++){pa=document.createElement("option");var Fa=EditorUi.mermaidDiagramTypes[ta],Ia=Fa;Fa==urlParams["smart-template-type"]&&pa.setAttribute("selected","selected");"erDiagram"==Ia&&(Ia="entityRelationshipDiagram");Ia=mxResources.get(Ia,null,Ia.charAt(0).toUpperCase()+Ia.substring(1).replace(/[A-Z]/g," $&"));pa.setAttribute("value",Fa);mxUtils.write(pa,
-Ia);qa.appendChild(pa)}var Ja=mxUtils.button(mxResources.get("generate"),function(){var Na=sa.value,Pa=qa.value.replace(/([A-Z])/g," $1").toLowerCase();Na="Write the declaration code for a detailed and complex "+(""!=Pa?Pa:"graph")+' that shows "'+(""!=Na?Na:"something random")+'" using correct MermaidJS syntax and do not provide additional text in your response.';Pa=""!=qa.value?" ("+mxUtils.trim(mxUtils.getTextContent(qa.options[qa.selectedIndex]))+")":"";var Xa="gantt"==qa.value||"pie"==qa.value||
-"timeline"==qa.value||"quadrantchart"==qa.value||"c4context"==qa.value,La=sa.value+Pa;"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(Oa){Xa||(ca=ba=Oa,Ba="Smart Template: "+La)}));b.spinner.spin(document.body,mxResources.get("loading"))&&b.generateOpenAiMermaidDiagram(Na,function(Oa,Ha,$a,Za){b.spinner.stop();na.innerHTML="";var Ya=document.createElement("img");Ya.setAttribute("title",La);Ya.src="data:image/svg+xml;base64,"+Ha.substring(Ha.indexOf(",")+
-1);Ya.style.cursor="pointer";Ya.style.width="100%";Ya.style.height="100%";na.appendChild(Ya);Oa=b.createMermaidXml(Oa,EditorUi.defaultMermaidConfig,Ha,$a,Za,La);var gb="<mxfile><diagram>"+Graph.compress(Oa)+"</diagram></mxfile>";if(Xa||"undefined"===typeof mxMermaidToDrawio)ca=ba=Oa;Oa=F.cloneNode(!0);na.appendChild(Oa);Ha=function(eb){R=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display};$a=function(eb){R||C(gb,mxEvent.getClientX(eb),mxEvent.getClientY(eb),Ya,La)};mxEvent.addGestureListeners(Ya,
-Ha,null,$a);mxEvent.addGestureListeners(Oa,Ha,null,$a)},function(Oa){b.spinner.stop();null!=mxMermaidToDrawio.resetListeners&&mxMermaidToDrawio.resetListeners();b.handleError(Oa)})});Ja.setAttribute("disabled","disabled");Ja.className="geBtn gePrimaryBtn";pa=function(){window.setTimeout(function(){""!=sa.value?Ja.removeAttribute("disabled"):Ja.setAttribute("disabled","disabled")},0)};ta=urlParams["smart-template"];null!=ta&&"1"!=ta&&(sa.value=decodeURIComponent(ta),pa(),"1"==urlParams["smart-template-generate"]&&
-window.setTimeout(function(){Ja.click()},0));mxEvent.addListener(sa,"change",pa);mxEvent.addListener(sa,"keydown",pa);mxEvent.addListener(sa,"cut",pa);mxEvent.addListener(sa,"paste",pa);mxEvent.addListener(sa,"keydown",function(Na){13==Na.keyCode&&Ja.click()});pa=document.createElement("div");pa.style.height="40px";pa.style.marginTop="4px";pa.style.marginBottom="4px";pa.style.whiteSpace="nowrap";pa.style.overflowX="auto";pa.style.overflowY="hidden";pa.appendChild(qa);pa.appendChild(Ja);ja.appendChild(pa);
-ja.appendChild(na);return ja}function Q(){null!=ba&&ba==ca&&EditorUi.logEvent({category:"OPENAI-DIAGRAM",action:"templateGenerated",label:Ba});if(aa&&null!=g)m||b.hideDialog(),g(aa,fa,L.value);else if(d)m||b.hideDialog(),d(ba,L.value,ia,ea);else{var ja=L.value;if(null!=ja&&0<ja.length){var sa=function(pa,qa,ta){b.createFile(ta,ba,null!=ea&&0<ea.length?ea:null,pa,function(){b.hideDialog()},null,qa,null,null!=ka&&0<ka.length?ka:null)};if(b.mode==App.MODE_GOOGLE||b.mode==App.MODE_ONEDRIVE){var na=new SaveDialog(b,
-ja,mxUtils.bind(this,function(pa,qa,ta){sa(qa,ta,pa.value)}),null,null,null,null,b.mode);b.showDialog(na.container,420,150,!0,!1);na.init()}else b.pickFolder(b.mode,function(pa){sa(b.mode,pa,ja)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}}function S(ja,sa,na,pa,qa,ta,Fa){return ha!=ja?(null!=ha&&(ha.classList.remove("geTemplateSelected"),ha==Ea&&(ya.style.display="none",za.style.display="",Da.style.visibility="hidden",Ka.style.visibility=null!=ca?"visible":"hidden")),
-ja==Ea&&(sa=ca,null!=sa?(Ka.style.visibility="visible",Ka.style.visibility=null!=ca?"visible":"hidden",Da.style.visibility="visible"):(ya.style.display="",Da.style.visibility="hidden",Ka.style.visibility="hidden")),y.removeAttribute("disabled"),ba=sa,ea=na,ka=ta,ha=ja,aa=pa,ia=Fa,fa=qa,ha.classList.add("geTemplateSelected"),!0):!1}function U(){ya.style.display="";za.style.display="none";Da.style.visibility="hidden";Ka.style.visibility="hidden";Ga.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?
-Ga.select():document.execCommand("selectAll",!1,null)}function O(){za.style.backgroundImage=va;za.style.backgroundSize="contain";ya.style.display="none";za.style.display="";Da.style.visibility="visible";Ka.style.visibility="visible"}function p(ja){var sa=mxUtils.trim(Ga.value);if(ja||""==sa)null!=Ba&&(Ga.value=Ba,O());else{var na=!1;ja='Write a detailed and complex MermaidJS declaration for "'+(""!=sa?sa:"something random")+'" using correct MermaidJS syntax and do not provide additional text in your response.';
-"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(pa){pa!=b.emptyDiagramXml&&(na=!0,ba=pa)}));za.style.backgroundImage="url("+Editor.spinImage+")";za.style.backgroundSize="12px 12px";za.style.display="";ya.style.display="none";b.generateOpenAiMermaidDiagram(ja,function(pa,qa,ta,Fa){ha==Ea&&"none"==ya.style.display&&(va="url(data:image/svg+xml;base64,"+qa.substring(qa.indexOf(",")+1)+")",Ea.setAttribute("title",sa),Ka.style.display="",ca=ba=pa=na?ba:b.createMermaidXml(pa,
-EditorUi.defaultMermaidConfig,qa,ta,Fa,sa),Ba=sa,O())},function(pa){ha==Ea&&(ya.style.display="",Da.style.visibility="visible",Ka.style.visibility="hidden",b.handleError(pa))})}}function q(ja,sa,na,pa,qa,ta,Fa,Ia,Ja,Na,Pa,Xa){function La(Qa,bb){null==$a?(Za=Qa,Za=/^https?:\/\//.test(Za)?b.editor.isCorsEnabledForUrl(Za)?Za:PROXY_URL+"?url="+encodeURIComponent(Za):TEMPLATE_PATH+"/"+Za,mxUtils.get(Za,mxUtils.bind(this,function(cb){200<=cb.getStatus()&&299>=cb.getStatus()&&($a=cb.getText());bb($a,Za)}))):
-bb($a,Za)}function Oa(Qa,bb){if(null==ja||M||b.sidebar.currentElt==Ha)b.sidebar.hideTooltip();else if(b.sidebar.hideTooltip(),null!=P){var cb="<mxfile><diagram>"+Graph.compress('<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" value="" style="shape=image;image='+P.src+';imageAspect=1;" parent="1" vertex="1"><mxGeometry width="'+P.naturalWidth+'" height="'+P.naturalHeight+'" as="geometry" /></mxCell></root></mxGraphModel>')+"</diagram></mxfile>";C(cb,mxEvent.getClientX(Qa),
-mxEvent.getClientY(Qa),na,ja)}else b.sidebar.currentElt=Ha,M=!0,La(ja,function(ib){if(M&&b.sidebar.currentElt==Ha)try{C(ib,mxEvent.getClientX(Qa),mxEvent.getClientY(Qa),Ha,bb)}catch(jb){b.sidebar.currentElt=null,b.handleError(jb)}M=!1})}var Ha=null;if("generative"!=Xa||null==Ea){Ha=document.createElement("div");Ha.className="geTemplate";var $a=null,Za=ja;null!=na?Ha.setAttribute("title",mxResources.get(na,null,na)):null!=pa&&0<pa.length&&Ha.setAttribute("title",pa)}else Ha=Ea;var Ya=document.createElement("span");
-Ya.className="geAdaptiveAsset";mxUtils.write(Ya,mxResources.get(na,null,na));if(null!=ta){Ha.style.display="inline-flex";Ha.style.justifyContent="center";Ha.style.alignItems="center";Ja=document.createElement("img");Ja.setAttribute("src",ta);Ja.setAttribute("alt",pa);Ja.style.maxWidth=ra+"px";Ja.style.maxHeight=oa+"px";P=Ja;var gb=ta.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");Ha.appendChild(Ja);Ja.onerror=function(){this.src!=gb?this.src=gb:(this.src=Editor.errorImage,this.onerror=
-null)};mxEvent.addGestureListeners(Ha,mxUtils.bind(this,function(Qa){S(Ha,null,null,ja,Fa,Pa)}),null,null);mxEvent.addListener(Ha,"dblclick",function(Qa){Q();mxEvent.consume(Qa)})}else if(!Na&&null!=ja&&0<ja.length){var eb=function(Qa){k.spin(la)&&La(ja,function(bb,cb){k.stop();null!=bb&&(S(Ha,bb,sa,null,null,Pa,cb),Qa&&Q())})};ta=Ja||TEMPLATE_PATH+"/"+ja.substring(0,ja.length-4)+".png";Ja=za.cloneNode(!1);Ja.style.backgroundImage="url("+ta+")";Ja.style.display="";Ha.appendChild(Ja);null!=na&&Ha.appendChild(Ya);
-mxEvent.addGestureListeners(Ha,mxUtils.bind(this,function(Qa){eb()}),null,null);mxEvent.addListener(Ha,"dblclick",function(Qa){eb(!0);mxEvent.consume(Qa)})}else Ha.appendChild(Ya),"generative"==Xa&&null==Ea&&(Ha.appendChild(za),Ha.appendChild(ya),Ha.appendChild(Ka),Ha.appendChild(Da),Ea=Ha),qa&&S(Ha),null!=Ia?(mxEvent.addGestureListeners(Ha,null,null,mxUtils.bind(this,function(Qa){S(Ha,null,null,ja,Fa)})),mxEvent.addListener(Ha,"click",Ia)):(mxEvent.addListener(Ha,"click",function(Qa){S(Ha,null,null,
-ja,Fa)&&"generative"==Xa&&null==ca&&U()}),mxEvent.addListener(Ha,"dblclick",function(Qa){"generative"!=Xa?Q():"none"==ya.style.display&&U();mxEvent.consume(Qa)}));null!=ja&&(ta=F.cloneNode(!0),Ha.appendChild(ta),mxEvent.addGestureListeners(ta,mxUtils.bind(this,function(Qa){R=b.sidebar.currentElt==Ha}),null,null),mxEvent.addListener(ta,"click",mxUtils.bind(this,function(Qa){R||Oa(Qa,null!=na?na:pa);mxEvent.consume(Qa)})));la.appendChild(Ha);return Ha}function G(){function ja(La,Oa){La=mxResources.get(La,
-null,La.substring(0,1).toUpperCase()+La.substring(1));18<La.length&&(La=La.substring(0,18)+"&hellip;");return La+(null!=Oa?" ("+Oa.length+")":"")}function sa(La,Oa,Ha){mxEvent.addListener(Oa,"click",function(){Ra!=Oa&&(null!=Ra&&(Ra.style.backgroundColor=""),Ra=Oa,Ra.style.backgroundColor=v,la.scrollTop=0,la.innerText="",K=0,null!=wa[La].content?(la.appendChild(wa[La].content),ba=ca,Va=null,null!=wa[La].content.init&&wa[La].content.init()):(Va=Ha?Sa[La][Ha]:wa[La],V=null,D(!1)))});null!=urlParams["smart-template"]&&
-"smartTemplate"==La&&Oa.click()}hb&&(hb=!1,mxEvent.addListener(la,"scroll",function(La){la.scrollTop+la.clientHeight>=la.scrollHeight&&(D(),mxEvent.consume(La))}));if(0<Ua){var na=document.createElement("div");na.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(na,mxResources.get("custom"));ua.appendChild(na);for(var pa in Ta){var qa=document.createElement("div");na=pa;var ta=Ta[pa];18<na.length&&(na=na.substring(0,18)+"&hellip;");qa.style.cssText=
-"display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;";qa.setAttribute("title",na+" ("+ta.length+")");mxUtils.write(qa,qa.getAttribute("title"));null!=N&&(qa.style.padding=N);ua.appendChild(qa);(function(La,Oa){mxEvent.addListener(qa,"click",function(){Ra!=Oa&&(Ra.style.backgroundColor="",Ra=Oa,Ra.style.backgroundColor=v,la.scrollTop=0,la.innerText="",K=0,Va=Ta[La],V=null,D(!1))})})(pa,qa)}na=document.createElement("div");
-na.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(na,"draw.io");ua.appendChild(na)}for(pa in wa){na=ta=null;if(null!=wa[pa].content)qa=document.createElement(Fa?"ul":"div"),na=ja(pa),qa.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;transition: all 0.5s;",qa.setAttribute("title",na),mxUtils.write(qa,na),ua.appendChild(qa),na=qa;else{var Fa=
-Sa[pa];na=qa=document.createElement(Fa?"ul":"div");ta=wa[pa];var Ia=ja(pa,ta);if(null!=Fa){ta=document.createElement("li");var Ja=document.createElement("div");Ja.className="geTempTreeCaret";Ja.setAttribute("title",Ia);mxUtils.write(Ja,Ia);na=Ja;ta.appendChild(Ja);Ia=document.createElement("ul");Ia.className="geTempTreeNested";Ia.style.visibility="hidden";for(var Na in Fa){var Pa=document.createElement("li"),Xa=ja(Na,Fa[Na]);Pa.setAttribute("title",Xa);mxUtils.write(Pa,Xa);sa(pa,Pa,Na);Ia.appendChild(Pa)}ta.appendChild(Ia);
-qa.className="geTempTree";qa.appendChild(ta);(function(La,Oa){mxEvent.addListener(Oa,"click",function(){La.style.visibility="visible";La.classList.toggle("geTempTreeActive");La.classList.toggle("geTempTreeNested")&&setTimeout(function(){La.style.visibility="hidden"},550);Oa.classList.toggle("geTempTreeCaret-down")})})(Ia,Ja)}else qa.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;transition: all 0.5s;",
-qa.setAttribute("title",Ia),mxUtils.write(qa,Ia);null!=N&&(qa.style.padding=N);ua.appendChild(qa)}sa(pa,na);null==Ra&&na.click()}D(!1)}B=500>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);m=null!=m?m:!0;t=null!=t?t:!1;v=null!=v?v:"light-dark(#ebf2f9, "+Editor.darkColor+")";I=null!=I?I:EditorUi.templateFile;var E=document.createElement("div");E.style.userSelect="none";E.style.height="100%";J=document.createElement("div");J.style.whiteSpace="nowrap";J.style.height=
-"46px";m&&E.appendChild(J);var H=document.createElement("img");H.setAttribute("border","0");H.setAttribute("align","absmiddle");H.style.width="40px";H.style.height="40px";H.style.marginRight="10px";H.style.paddingBottom="4px";H.src=b.mode==App.MODE_GOOGLE?IMAGE_PATH+"/google-drive-logo.svg":b.mode==App.MODE_DROPBOX?IMAGE_PATH+"/dropbox-logo.svg":b.mode==App.MODE_ONEDRIVE?IMAGE_PATH+"/onedrive-logo.svg":b.mode==App.MODE_GITHUB?IMAGE_PATH+"/github-logo.svg":b.mode==App.MODE_GITLAB?IMAGE_PATH+"/gitlab-logo.svg":
-b.mode==App.MODE_TRELLO?IMAGE_PATH+"/trello-logo.svg":b.mode==App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";f||B||!m||J.appendChild(H);m&&mxUtils.write(J,(B?mxResources.get("name"):null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");H=".drawio";b.mode==App.MODE_GOOGLE&&null!=b.drive?H=b.drive.extension:b.mode==App.MODE_DROPBOX&&null!=b.dropbox?H=b.dropbox.extension:b.mode==App.MODE_ONEDRIVE&&
-null!=b.oneDrive?H=b.oneDrive.extension:b.mode==App.MODE_GITHUB&&null!=b.gitHub?H=b.gitHub.extension:b.mode==App.MODE_GITLAB&&null!=b.gitLab?H=b.gitLab.extension:b.mode==App.MODE_TRELLO&&null!=b.trello&&(H=b.trello.extension);var L=document.createElement("input");L.setAttribute("value",b.defaultFilename+H);L.style.marginLeft="10px";L.style.width=f||B?"144px":"244px";this.init=function(){m&&Editor.selectFilename(L);null!=la.parentNode&&null!=la.parentNode.parentNode&&mxEvent.addGestureListeners(la.parentNode.parentNode,
-mxUtils.bind(this,function(ja){null!=b.sidebar&&b.sidebar.hideTooltip()}),null,null)};m&&(J.appendChild(L),z?L.style.width=f||B?"350px":"450px":null!=b.editor.diagramFileTypes&&(z=FilenameDialog.createFileTypes(b,L,b.editor.diagramFileTypes),z.style.marginLeft="6px",z.style.width=f||B?"80px":"180px",J.appendChild(z)));z=!1;var K=0,k=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),y=mxUtils.button(n||
-mxResources.get("create"),function(){y.setAttribute("disabled","disabled");Q();y.removeAttribute("disabled")});y.className="geBtn gePrimaryBtn";var F=document.createElement("img");F.setAttribute("src",Editor.magnifyImage);F.setAttribute("title",mxResources.get("preview"));F.className="geButton geRoundButton";var M=!1,P=null,R=!1;if(c||e){var T=[],V=null,W=null,X=null,Y=function(ja){y.setAttribute("disabled","disabled");for(var sa=0;sa<T.length;sa++)T[sa].className=sa==ja?"geBtn gePrimaryBtn":"geBtn"};
-z=!0;n=document.createElement("div");n.style.whiteSpace="nowrap";n.style.height="30px";E.appendChild(n);B=mxUtils.button(mxResources.get("Templates",null,"Templates"),function(){ua.style.display="";xa.style.display="";la.style.left="160px";Y(0);la.scrollTop=0;la.innerText="";K=0;V!=Va&&(Va=V,wa=W,Ua=X,ua.innerText="",G(),V=null)});T.push(B);n.appendChild(B);var Z=function(ja){ua.style.display="none";xa.style.display="none";la.style.left="30px";Y(ja?-1:1);null==V&&(V=Va);la.scrollTop=0;la.innerText=
-"";k.spin(la);var sa=function(na,pa,qa){K=0;k.stop();Va=na;qa=qa||{};var ta=0,Fa;for(Fa in qa)ta+=qa[Fa].length;if(pa)la.innerText=pa;else if(0==na.length&&0==ta)la.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(la.innerText="",0<ta){ua.style.display="";la.style.left="160px";ua.innerText="";Ua=0;wa={"draw.io":na};for(Fa in qa)wa[Fa]=qa[Fa];G()}else D(!0)};ja?e(da.value,sa):c(sa)};c&&(B=mxUtils.button(mxResources.get("Recent",null,"Recent"),function(){Z()}),n.appendChild(B),
-T.push(B));if(e){B=document.createElement("span");B.style.marginLeft="10px";B.innerText=mxResources.get("search")+":";n.appendChild(B);var da=document.createElement("input");da.style.marginRight="10px";da.style.marginLeft="10px";da.style.width="220px";mxEvent.addListener(da,"keypress",function(ja){13==ja.keyCode&&Z(!0)});n.appendChild(da);B=mxUtils.button(mxResources.get("search"),function(){Z(!0)});B.className="geBtn";n.appendChild(B)}Y(0)}var ea=null,ka=null,ba=null,ha=null,aa=null,ia=null,fa=null,
-ca=null,Ba=null,la=document.createElement("div");la.style.border="1px solid #d3d3d3";la.style.position="absolute";la.style.left="160px";la.style.right="34px";n=(m?72:40)+(z?30:0);la.style.top=n+"px";la.style.bottom="68px";la.style.margin="6px 0 0 -1px";la.style.padding="6px";la.style.overflow="auto";var xa=document.createElement("div");xa.style.cssText="position:absolute;left:30px;width:128px;top:"+n+"px;height:22px;margin-top: 6px;white-space: nowrap;";var Aa=document.createElement("input");Aa.style.cssText=
-"width:105px;height:16px;border:1px solid #d3d3d3;padding: 3px 20px 3px 3px;font-size: 12px;border-radius:0px;";Aa.setAttribute("placeholder",mxResources.get("search"));Aa.setAttribute("type","text");xa.appendChild(Aa);var ma=document.createElement("img");ma.setAttribute("src",Editor.magnifyImage);ma.setAttribute("title",mxResources.get("search"));ma.className="geAdaptiveAsset";ma.style.position="relative";ma.style.cursor="pointer";ma.style.outline="none";ma.style.opacity="0.5";ma.style.height="16px";
-ma.style.left="-20px";ma.style.top="4px";xa.appendChild(ma);mxEvent.addListener(ma,"click",function(){ma.getAttribute("src")!=Editor.magnifyImage&&(ma.setAttribute("src",Editor.magnifyImage),ma.setAttribute("title",mxResources.get("search")),Aa.value="",null!=Wa&&(Wa.click(),Wa=null));Aa.focus()});mxEvent.addListener(Aa,"keydown",mxUtils.bind(this,function(ja){if(13==ja.keyCode){var sa=Aa.value;if(""==sa)null!=Wa&&(Wa.click(),Wa=null);else{if(null==NewDialog.tagsList[I]){var na={};for(Pa in wa)if(null==
-wa[Pa].content)for(var pa=wa[Pa],qa=0;qa<pa.length;qa++){var ta=pa[qa];if(null!=ta.tags)for(var Fa=ta.tags.toLowerCase().split(";"),Ia=0;Ia<Fa.length;Ia++)null==na[Fa[Ia]]&&(na[Fa[Ia]]=[]),na[Fa[Ia]].push(ta)}NewDialog.tagsList[I]=na}var Ja=sa.toLowerCase().split(" ");na=NewDialog.tagsList[I];if(0<Ua&&null==na.__tagsList__){for(Pa in Ta)for(pa=Ta[Pa],qa=0;qa<pa.length;qa++)for(ta=pa[qa],Fa=ta.title.split(" "),Fa.push(Pa),Ia=0;Ia<Fa.length;Ia++){var Na=Fa[Ia].toLowerCase();null==na[Na]&&(na[Na]=[]);
-na[Na].push(ta)}na.__tagsList__=!0}var Pa=[];pa={};for(qa=Fa=0;qa<Ja.length;qa++)if(0<Ja[qa].length){Na=na[Ja[qa]];var Xa={};Pa=[];if(null!=Na)for(Ia=0;Ia<Na.length;Ia++)ta=Na[Ia],0==Fa==(null==pa[ta.url])&&(Xa[ta.url]=!0,Pa.push(ta));pa=Xa;Fa++}la.scrollTop=0;la.innerText="";K=0;na=document.createElement("div");na.style.padding="6px";na.style.whiteSpace="nowrap";na.style.overflow="hidden";na.style.textOverflow="ellipsis";ta=mxResources.get(0==Pa.length?"noResultsFor":"resultsFor",[sa]);na.setAttribute("title",
-ta);mxUtils.write(na,ta);la.appendChild(na);null!=Ra&&null==Wa&&(Ra.style.backgroundColor="",Wa=Ra,Ra=na);Va=Pa;V=null;D(!1)}mxEvent.consume(ja)}}));mxEvent.addListener(Aa,"keyup",mxUtils.bind(this,function(ja){""==Aa.value?(ma.setAttribute("src",Editor.magnifyImage),ma.setAttribute("title",mxResources.get("search"))):(ma.setAttribute("src",Editor.crossImage),ma.setAttribute("title",mxResources.get("reset")))}));n+=23;var ua=document.createElement("div");ua.style.cssText="position:absolute;left:30px;width:128px;top:"+
-n+"px;bottom:68px;margin-top:6px;overflow:auto;border:1px solid #d3d3d3;";mxEvent.addListener(la,"scroll",function(){null!=b.sidebar&&b.sidebar.hideTooltip()});var ra=140,oa=ra,Ea=null,va="url("+Editor.sparklesImage+")",ya=document.createElement("div");ya.className="geGenerateDiagramForm";ya.style.position="absolute";ya.style.width="100%";ya.style.height="100%";var za=document.createElement("div");za.className="geTemplatePreview geAdaptiveAsset";za.style.backgroundImage=va;var Ga=document.createElement("textarea");
-Ga.setAttribute("placeholder",mxResources.get("describeYourDiagram"));Ga.className="geGenerateDiagramDescription";var Ca=document.createElement("button");Ca.className="geBtn gePrimaryBtn geGenerateDiagramButton";Ca.setAttribute("disabled","disabled");Ca.setAttribute("title",mxResources.get("ok"));mxUtils.write(Ca,mxResources.get("ok"));var Ka=F.cloneNode(!0);Ka.style.display="none";var Ma=!1;mxEvent.addGestureListeners(Ka,function(ja){Ma=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display},
-null,function(ja){if(!Ma&&null!=ca){var sa="<mxfile><diagram>"+Graph.compress(ca)+"</diagram></mxfile>";C(sa,mxEvent.getClientX(ja),mxEvent.getClientY(ja),Ea,Ba)}});var Da=F.cloneNode(!0);Da.setAttribute("src",Editor.editImage);Da.setAttribute("title",mxResources.get("edit"));Da.style.visibility="hidden";Da.style.left="0px";n=F.cloneNode(!0);n.setAttribute("src",Editor.helpImage);n.setAttribute("title",mxResources.get("help"));mxEvent.addListener(n,"click",function(ja){b.openLink("https://www.drawio.com/blog/write-query-generate-diagram");
-mxEvent.consume(ja)});ya.appendChild(Ga);ya.appendChild(Ca);ya.appendChild(n);ya.style.display="none";mxEvent.addListener(Da,"click",U);mxEvent.addListener(Ga,"input",function(){""!=Ga.value?Ca.removeAttribute("disabled"):Ca.setAttribute("disabled","disabled")});mxEvent.addListener(Ca,"click",function(){p()});mxEvent.addListener(Ga,"keydown",function(ja){13!=ja.keyCode||mxEvent.isShiftDown(ja)?27==ja.keyCode&&(p(!0),mxEvent.consume(ja)):(p(),mxEvent.consume(ja))});var wa={},Sa={},Ta={},Ua=0,hb=!0,
-Ra=null,Wa=null;wa.basic=[{title:"blankDiagram"}];var Va=wa.basic;Editor.enableChatGpt&&b.isExternalDataComms()&&"draw.io"==b.getServiceName()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&wa.basic.push({title:"generate",type:"generative"});Editor.enableChatGpt&&b.isExternalDataComms()&&"draw.io"==b.getServiceName()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&(wa.smartTemplate={content:A()});if(!f){var fb=function(){mxUtils.get(db,function(ja){if(!ab){ab=
-!0;ja=ja.getXml().documentElement.firstChild;for(var sa={};null!=ja;){if("undefined"!==typeof ja.getAttribute)if("parsererror"==ja.nodeName)null!=window.console&&console.log("Parser error in "+I+": "+ja.textContent);else if("clibs"==ja.nodeName){for(var na=ja.getAttribute("name"),pa=ja.getElementsByTagName("add"),qa=[],ta=0;ta<pa.length;ta++)qa.push(encodeURIComponent(mxUtils.getTextContent(pa[ta])));null!=na&&0<qa.length&&(sa[na]=qa.join(";"))}else if(qa=ja.getAttribute("url"),null!=qa){pa=ja.getAttribute("section");
-na=ja.getAttribute("subsection");if(null==pa&&(ta=qa.indexOf("/"),pa=qa.substring(0,ta),null==na)){var Fa=qa.indexOf("/",ta+1);-1<Fa&&(na=qa.substring(ta+1,Fa))}ta=wa[pa];null==ta&&(ta=[],wa[pa]=ta);qa=ja.getAttribute("clibs");null!=sa[qa]&&(qa=sa[qa]);qa={url:ja.getAttribute("url"),libs:ja.getAttribute("libs"),title:ja.getAttribute("title"),tooltip:ja.getAttribute("name")||ja.getAttribute("url"),preview:ja.getAttribute("preview"),clibs:qa,tags:ja.getAttribute("tags")};ta.push(qa);null!=na&&(ta=Sa[pa],
-null==ta&&(ta={},Sa[pa]=ta),pa=ta[na],null==pa&&(pa=[],ta[na]=pa),pa.push(qa))}ja=ja.nextSibling}k.stop();G()}})};E.appendChild(xa);E.appendChild(ua);E.appendChild(la);var ab=!1,db=I;/^https?:\/\//.test(db)&&!b.editor.isCorsEnabledForUrl(db)&&(db=PROXY_URL+"?url="+encodeURIComponent(db));k.spin(la);null!=u?u(function(ja,sa){Ta=ja;X=Ua=sa;fb()},fb):fb();W=wa}mxEvent.addListener(L,"keypress",function(ja){b.dialog.container.firstChild==E&&13==ja.keyCode&&Q()});u=document.createElement("div");u.style.marginTop=
-f?"4px":"16px";u.style.textAlign="right";u.style.position="absolute";u.style.left="40px";u.style.bottom="24px";u.style.right="40px";n=mxUtils.button(mxResources.get("cancel"),function(){null!=x&&x();b.hideDialog(!0)});n.className="geBtn";!b.editor.cancelFirst||t&&null==x||u.appendChild(n);f||"1"==urlParams.embed||t||mxClient.IS_ANDROID||mxClient.IS_IOS||"1"==urlParams.noDevice||(f=mxUtils.button(mxResources.get("fromTemplateUrl"),function(){var ja=new FilenameDialog(b,"",mxResources.get("create"),
-function(sa){null!=sa&&0<sa.length&&b.editor.loadUrl(b.editor.getProxiedUrl(sa),function(na){ba=na;ea=null;templateRealURl=sa;b.hideDialog();Q()},function(na){b.handleError(na)})},mxResources.get("url"),null,null,null,!1);b.showDialog(ja.container,300,80,!0,!0);ja.init()}),f.className="geBtn",u.appendChild(f));Graph.fileSupport&&l&&(l=mxUtils.button(mxResources.get("import"),function(){if(null==b.newDlgFileInputElt){var ja=document.createElement("input");ja.setAttribute("multiple","multiple");ja.setAttribute("type",
-"file");mxEvent.addListener(ja,"change",function(sa){b.openFiles(ja.files,!0);ja.value=""});ja.style.display="none";document.body.appendChild(ja);b.newDlgFileInputElt=ja}b.newDlgFileInputElt.click()}),l.className="geBtn",u.appendChild(l));u.appendChild(y);b.editor.cancelFirst||null!=d||t&&null==x||u.appendChild(n);E.appendChild(u);this.container=E};NewDialog.tagsList={};
-var SaveDialog=function(b,f,m,d,t,x,v,B){function J(E,H,L,K,k,y){var F=null;if(null==d||0>mxUtils.indexOf(d,E))if(k=null!=k?k:b.getTitleForService(E),0<=mxUtils.indexOf(U,E)||null!=b.getServiceForName(E)){F=document.createElement("option");if("pick"==y)F.innerHTML=mxUtils.htmlEntities(k)+"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(mxResources.get("pickFolder"))+"...",F.setAttribute("value","pickFolder-"+E),F.setAttribute("title",k+" - "+mxResources.get("pickFolder")+"...");else{var M=E+
-(null!=L?"-"+L:""),P=q[M];null!=P&&null!=P.option&&P.option.parentNode.removeChild(P.option);P=null;if(null!=H){"/"==H.charAt(H.length-1)&&(H=H.substring(0,H.length-1));"/"==H.charAt(0)&&(H=H.substring(1));P=H;if(E!=App.MODE_GITHUB&&E==App.MODE_GITLAB){var R=P.lastIndexOf("/");0<=R&&(P=P.substring(R+1))}40<P.length&&(P=P.substring(0,20)+"..."+P.substring(P.length-20))}F.innerHTML=mxUtils.htmlEntities(k)+(null!=P?"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(P):"");F.setAttribute("title",k+
-(null!=H?" ("+H+")":"")+(null!=L&&decodeURIComponent(L)!=H?" ["+L+"]":""));F.setAttribute("value",M);q[M]={option:F,mode:E,path:H,id:L};SaveDialog.lastValue==M&&null==B?K=!0:null==K&&("root"==y?K=null==B&&b.mode==E||null!=E&&E==B:"pickFolder-"==Q.value.substring(0,11)&&(K=!0));K&&F.setAttribute("selected","selected")}Q.appendChild(F)}return F}function N(E){b.pickFolder(E,function(H){var L=null;E==App.MODE_GOOGLE&&null!=H.docs&&0<H.docs.length?L={mode:E,path:H.docs[0].name,id:H.docs[0].id}:E==App.MODE_ONEDRIVE&&
-null!=H.value&&0<H.value.length?L={mode:E,path:H.value[0].name,id:OneDriveFile.prototype.getIdOf(H.value[0])}:(E==App.MODE_GITHUB||E==App.MODE_GITLAB)&&null!=H&&0<H.length&&(L={mode:E,path:decodeURIComponent(H),id:H});null!=L&&(S.style.display="",b.addRecent(L,"Folders",5),H=J(L.mode,L.path,L.id,!0),Q.innerHTML="",q={},I(),L=Q.selectedIndex,Q.value=H.value,0>Q.selectedIndex&&(Q.selectedIndex=L))},!0,!0,!0,!0)}function I(){var E=b.getRecent("Folders"),H=0;if(null!=E&&0<E.length){for(var L=0;L<E.length;L++)null!=
-J(E[L].mode,E[L].path,E[L].id)&&H++;0<H&&Q.appendChild(O.cloneNode(!0))}J(App.MODE_GOOGLE,mxResources.get("myDrive"),"root",null,null,"root");J(App.MODE_GOOGLE,null,null,null,null,"pick");null!=b.oneDrive&&(J(App.MODE_ONEDRIVE,mxResources.get("myFiles"),OneDriveFile.prototype.getIdOf(b.oneDrive.rootId),null,null,"root"),J(App.MODE_ONEDRIVE,null,null,null,null,"pick"));null!=b.dropbox&&J(App.MODE_DROPBOX,"Apps"+b.dropbox.appPath);J(App.MODE_GITHUB,null,null,null,null,"pick");J(App.MODE_GITLAB,null,
-null,null,null,"pick");J(App.MODE_TRELLO);E=!Editor.useLocalStorage||"device"==urlParams.storage||null!=b.getCurrentFile()&&"1"!=urlParams.noDevice;EditorUi.nativeFileSupport&&E&&J(App.MODE_DEVICE,null,null,b.mode==App.MODE_DEVICE||null!=d&&0<=mxUtils.indexOf(d,App.MODE_BROWSER)?!0:null);isLocalStorage&&"0"!=urlParams.browser&&J(App.MODE_BROWSER);E&&J("download");Editor.popupsAllowed&&J("_blank",null,null,null,mxResources.get("openInNewWindow"));0<H&&(Q.appendChild(O.cloneNode(!0)),H=Q.value,Q.appendChild(S),
-Q.value=H);if("pickFolder-"==Q.value.substring(0,11)||"reset"==Q.value)H=document.createElement("option"),H.setAttribute("value",""),H.setAttribute("selected","selected"),mxUtils.write(H,mxResources.get("pickFolder")+"..."),Q.insertBefore(H,Q.firstChild);p=Q.value}function c(){if("reset"==Q.value)b.resetRecent("Folders"),Q.innerHTML="",Q.value="",pickFolderOption=null,q={},I();else if("pickFolder-"==Q.value.substring(0,11)){var E=Q.value.substring(11);Q.value=p;N(E)}else if(null!=A&&null!=q[Q.value]&&
-null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[A.value].extension){E=b.getExtensionForService(q[Q.value].mode);var H=C.value;null!=E&&0>f.indexOf(".")&&0>H.indexOf(".")&&(C.value=H+E)}G.innerHTML="";mxUtils.write(G,mxResources.get("download"==Q.value||"_blank"==Q.value?"ok":"save"));""==Q.value?G.setAttribute("disabled","disabled"):G.removeAttribute("disabled")}var e=document.createElement("div");e.style.display="flex";e.style.flexWrap="wrap";e.style.whiteSpace="nowrap";var g=
-document.createElement("div");g.style.display="grid";g.style.gap="5px 8px";g.style.gridAutoRows="auto auto 44px";g.style.gridAutoColumns="0fr minmax(0,1fr)";g.style.width="100%";var l=null,n=null;if(null!=t&&null!=x&&"image/"==x.substring(0,6)&&("image/svg"!=x.substring(0,9)||mxClient.IS_SVG)){g.style.display="inline-grid";g.style.flexBasis="75%";l=document.createElement("div");l.style.display="inline-block";l.style.height="auto";l.style.maxWidth="25%";l.style.margin="auto";var u=document.createElement("img"),
-z=v?t:btoa(unescape(encodeURIComponent(t)));u.setAttribute("src","data:"+x+";base64,"+z);u.style.boxSizing="border-box";u.style.maxHeight="50px";u.style.maxWidth="100%";u.style.paddingLeft="10px";l.appendChild(u);mxClient.IS_FF||"image/png"!=x||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||(n=mxUtils.button(mxResources.get("copy"),function(){var E=b.base64ToBlob(z,"image/png");E=new ClipboardItem({"image/png":E,"text/html":new Blob(['<img src="data:'+x+";base64,"+z+'">'],{type:"text/html"})});
-navigator.clipboard.write([E]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(H){b.handleError(H)}))},null,"geBtn"));Editor.popupsAllowed&&(null==d||0>mxUtils.indexOf(d,"_blank"))?(l.setAttribute("title",mxResources.get("openInNewWindow")),l.style.cursor="pointer",mxEvent.addGestureListeners(l,null,null,function(E){mxEvent.isPopupTrigger(E)||b.openInNewWindow(t,x,v)})):l.setAttribute("title",mxResources.get("preview"))}u=document.createElement("div");
-u.style.display="flex";u.style.padding="1px";u.style.alignItems="center";u.style.justifyContent="flex-end";u.style.gridColumn="1";u.style.whiteSpace="nowrap";var D=document.createElement("div");D.style.display="grid";D.style.padding="1px";D.style.alignItems="center";D.style.gridColumn="2";D.style.gridAutoColumns="minmax(0,1fr) auto";D.style.gap="6px";mxUtils.write(u,mxResources.get("saveAs")+":");var C=document.createElement("input");C.setAttribute("type","text");C.setAttribute("value",f);C.style.boxSizing=
-"border-box";C.style.width="100%";D.appendChild(C);g.appendChild(u);g.appendChild(D);var A=null;null!=b.editor.diagramFileTypes&&null==x&&(u=u.cloneNode(!1),D=D.cloneNode(!1),mxUtils.write(u,mxResources.get("type")+":"),A=FilenameDialog.createFileTypes(b,C,b.editor.diagramFileTypes),A.style.boxSizing="border-box",A.style.width="100%",D.appendChild(A),g.appendChild(u),g.appendChild(D));u=u.cloneNode(!1);D=D.cloneNode(!1);mxUtils.write(u,mxResources.get("where")+":");var Q=document.createElement("select");
-Q.style.textOverflow="ellipsis";Q.style.gridColumn="1";var S=document.createElement("option");mxUtils.write(S,mxResources.get("reset"));S.setAttribute("value","reset");var U=["browser","device","download","_blank"],O=document.createElement("option");O.setAttribute("disabled","disabled");O.innerHTML="-----------------";var p=null,q={},G=mxUtils.button(mxResources.get("save"),function(){SaveDialog.lastValue=Q.value;var E=q[SaveDialog.lastValue];null!=E&&m(C,E.mode,E.id)},null,"geBtn gePrimaryBtn");
-mxEvent.addListener(C,"keypress",function(E){13==E.keyCode&&G.click()});mxEvent.addListener(Q,"change",c);I();c();D.appendChild(Q);null!=SaveDialog.lastValue&&null!=q[SaveDialog.lastValue]&&(Q.value=SaveDialog.lastValue);g.appendChild(u);g.appendChild(D);e.appendChild(g);null!=l&&e.appendChild(l);g=document.createElement("div");g.style.flexBasis="100%";g.style.textAlign="right";g.style.marginTop=null!=x?"16px":"8px";b.isOffline()&&!mxClient.IS_CHROMEAPP||g.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/save-file-formats"));
-l=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()},null,"geBtn");b.editor.cancelFirst&&g.appendChild(l);null!=n&&g.appendChild(n);g.appendChild(G);b.editor.cancelFirst||g.appendChild(l);e.appendChild(g);this.init=function(){Editor.selectFilename(C)};this.container=e},CreateDialog=function(b,f,m,d,t,x,v,B,J,N,I,c,e,g,l,n,u){function z(p,q,G,E){function H(){mxEvent.addListener(L,"click",function(){var M=G;if(v){var P=A.value,R=P.lastIndexOf(".");if(0>f.lastIndexOf(".")&&0>R){M=null!=
-M?M:O.value;var T="";M==App.MODE_GOOGLE?T=b.drive.extension:M==App.MODE_GITHUB?T=b.gitHub.extension:M==App.MODE_GITLAB?T=b.gitLab.extension:M==App.MODE_TRELLO?T=b.trello.extension:M==App.MODE_DROPBOX?T=b.dropbox.extension:M==App.MODE_ONEDRIVE?T=b.oneDrive.extension:M==App.MODE_DEVICE&&(T=".drawio");0<=R&&(P=P.substring(0,R));A.value=P+T}}D(G)})}var L=document.createElement("a");L.style.overflow="hidden";var K=document.createElement("img");K.src=p;K.setAttribute("border","0");K.setAttribute("align",
-"absmiddle");K.style.width="60px";K.style.height="60px";K.style.paddingBottom="6px";L.style.display="inline-block";L.className="geBaseButton";L.style.position="relative";L.style.margin="4px";L.style.padding="8px 8px 10px 8px";L.style.whiteSpace="nowrap";L.appendChild(K);L.style.color="gray";L.style.fontSize="11px";var k=document.createElement("div");L.appendChild(k);mxUtils.write(k,q);if(null!=E&&null==b[E]){K.style.visibility="hidden";mxUtils.setOpacity(k,10);var y=new Spinner({lines:12,length:12,
-width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});y.spin(L);var F=window.setTimeout(function(){null==b[E]&&(y.stop(),L.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[E]&&(window.clearTimeout(F),mxUtils.setOpacity(k,100),K.style.visibility="",y.stop(),H())}))}else H();S.appendChild(L);++U==c&&(mxUtils.br(S),U=0)}function D(p){var q=A.value;if(null==p||null!=q&&0<q.length)u&&b.hideDialog(),
-m(q,p,A)}I="1"==urlParams.noDevice?!1:I;v=null!=v?v:!0;B=null!=B?B:!0;c=null!=c?c:4;u=null!=u?u:!0;x=document.createElement("div");x.style.whiteSpace="nowrap";null==d&&b.addLanguageMenu(x);var C=document.createElement("h2");mxUtils.write(C,t||mxResources.get("create"));C.style.marginTop="0px";C.style.marginBottom="24px";x.appendChild(C);t=document.createElement("span");mxUtils.write(t,mxResources.get("filename")+":");t.style.maxWidth="106px";t.style.overflow="hidden";t.style.textOverflow="ellipsis";
-t.style.display="inline-block";x.appendChild(t);var A=document.createElement("input");A.setAttribute("value",f);A.style.width="180px";A.style.marginLeft="10px";A.style.marginBottom="20px";A.style.maxWidth="70%";this.init=function(){Editor.selectFilename(A)};x.appendChild(A);null!=n&&null!=b.editor.diagramFileTypes&&(n=FilenameDialog.createFileTypes(b,A,b.editor.diagramFileTypes),n.style.marginLeft="6px",n.style.width="90px",x.appendChild(n));n=null;if("1"!=urlParams.noDevice&&null!=e&&null!=g&&"image/"==
-g.substring(0,6)&&("image/svg"!=g.substring(0,9)||mxClient.IS_SVG)){A.style.width="160px";t=document.createElement("img");var Q=l?e:btoa(unescape(encodeURIComponent(e)));t.setAttribute("src","data:"+g+";base64,"+Q);t.style.position="absolute";t.style.top="70px";t.style.right="100px";t.style.maxWidth="120px";t.style.maxHeight="80px";mxUtils.setPrefixedStyle(t.style,"transform","translate(50%,-50%)");x.appendChild(t);mxClient.IS_FF||"image/png"!=g||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||
-(n=mxUtils.button(mxResources.get("copy"),function(p){p=b.base64ToBlob(Q,"image/png");p=new ClipboardItem({"image/png":p,"text/html":new Blob(['<img src="data:'+g+";base64,"+Q+'">'],{type:"text/html"})});navigator.clipboard.write([p]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(q){b.handleError(q)}))}),n.style.marginTop="6px",n.className="geBtn");J&&Editor.popupsAllowed&&(t.style.cursor="pointer",mxEvent.addGestureListeners(t,
-null,null,function(p){mxEvent.isPopupTrigger(p)||D("_blank")}))}mxUtils.br(x);var S=document.createElement("div");S.style.textAlign="center";var U=0;S.style.marginTop="6px";x.appendChild(S);var O=document.createElement("select");O.style.marginLeft="10px";b.isOfflineApp()||b.isOffline()||("function"===typeof window.DriveClient&&(e=document.createElement("option"),e.setAttribute("value",App.MODE_GOOGLE),mxUtils.write(e,mxResources.get("googleDrive")),O.appendChild(e),z(IMAGE_PATH+"/google-drive-logo.svg",
-mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive")),"function"===typeof window.OneDriveClient&&(e=document.createElement("option"),e.setAttribute("value",App.MODE_ONEDRIVE),mxUtils.write(e,mxResources.get("oneDrive")),O.appendChild(e),b.mode==App.MODE_ONEDRIVE&&e.setAttribute("selected","selected"),z(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive")),"function"===typeof window.DropboxClient&&(e=document.createElement("option"),e.setAttribute("value",App.MODE_DROPBOX),
-mxUtils.write(e,mxResources.get("dropbox")),O.appendChild(e),b.mode==App.MODE_DROPBOX&&e.setAttribute("selected","selected"),z(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),App.MODE_DROPBOX,"dropbox")),null!=b.gitHub&&(e=document.createElement("option"),e.setAttribute("value",App.MODE_GITHUB),mxUtils.write(e,mxResources.get("github")),O.appendChild(e),z(IMAGE_PATH+"/github-logo.svg",mxResources.get("github"),App.MODE_GITHUB,"gitHub")),null!=b.gitLab&&(e=document.createElement("option"),
-e.setAttribute("value",App.MODE_GITLAB),mxUtils.write(e,mxResources.get("gitlab")),O.appendChild(e),z(IMAGE_PATH+"/gitlab-logo.svg",mxResources.get("gitlab"),App.MODE_GITLAB,"gitLab")),"function"===typeof window.TrelloClient&&(e=document.createElement("option"),e.setAttribute("value",App.MODE_TRELLO),mxUtils.write(e,mxResources.get("trello")),O.appendChild(e),z(IMAGE_PATH+"/trello-logo.svg",mxResources.get("trello"),App.MODE_TRELLO,"trello")));if(!Editor.useLocalStorage||"device"==urlParams.storage||
-null!=b.getCurrentFile()&&"1"!=urlParams.noDevice)e=document.createElement("option"),e.setAttribute("value",App.MODE_DEVICE),mxUtils.write(e,mxResources.get("device")),O.appendChild(e),b.mode!=App.MODE_DEVICE&&B||e.setAttribute("selected","selected"),I&&z(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);B&&isLocalStorage&&"0"!=urlParams.browser&&(B=document.createElement("option"),B.setAttribute("value",App.MODE_BROWSER),mxUtils.write(B,mxResources.get("browser")),O.appendChild(B),
-b.mode==App.MODE_BROWSER&&B.setAttribute("selected","selected"),z(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER));B=document.createElement("div");B.style.marginTop="26px";B.style.textAlign="center";null!=N&&(I=mxUtils.button(mxResources.get("help"),function(){b.openLink(N)}),I.className="geBtn",B.appendChild(I));I=mxUtils.button(mxResources.get(null!=d?"close":"cancel"),function(){null!=d?d():(b.fileLoaded(null),b.hideDialog(),window.close(),window.location.href=b.getUrl())});
-I.className="geBtn";b.editor.cancelFirst&&null==d&&B.appendChild(I);null==d&&(e=mxUtils.button(mxResources.get("decideLater"),function(){D(null)}),e.className="geBtn",B.appendChild(e));J&&Editor.popupsAllowed&&(J=mxUtils.button(mxResources.get("openInNewWindow"),function(){D("_blank")}),J.className="geBtn",B.appendChild(J));CreateDialog.showDownloadButton&&(J=mxUtils.button(mxResources.get("download"),function(){D("download")}),J.className="geBtn",B.appendChild(J),null!=n&&(J.style.marginTop="6px",
-B.style.marginTop="6px"));null!=n&&(mxUtils.br(B),B.appendChild(n));b.editor.cancelFirst&&null==d||B.appendChild(I);mxEvent.addListener(A,"keypress",function(p){13==p.keyCode?D(App.MODE_DEVICE):27==p.keyCode&&(b.fileLoaded(null),b.hideDialog(),window.close())});x.appendChild(B);this.container=x};CreateDialog.showDownloadButton="1"!=urlParams.noDevice;
-var PopupDialog=function(b,f,m,d,t){t=null!=t?t:!0;var x=document.createElement("div");x.style.textAlign="center";x.style.height="100%";mxUtils.write(x,mxResources.get("fileOpenLocation"));mxUtils.br(x);mxUtils.br(x);var v=mxUtils.button(mxResources.get("openInThisWindow"),function(){t&&b.hideDialog();null!=d&&d()});v.className="geBtn";v.style.marginBottom="8px";v.style.width="280px";x.appendChild(v);mxUtils.br(x);var B=mxUtils.button(mxResources.get("openInNewWindow"),function(){t&&b.hideDialog();
-null!=m&&m();b.openLink(f,null,!0)});B.className="geBtn gePrimaryBtn";B.style.width=v.style.width;x.appendChild(B);mxUtils.br(x);mxUtils.br(x);mxUtils.write(x,mxResources.get("allowPopups"));this.container=x},ImageDialog=function(b,f,m,d,t,x,v,B){function J(){0<c.value.length?D.removeAttribute("disabled"):D.setAttribute("disabled","disabled");"data:"!=c.value.substring(0,5)?C.removeAttribute("disabled"):C.setAttribute("disabled","disabled")}x=null!=x?x:!0;var N=b.editor.graph,I=document.createElement("div");
-mxUtils.write(I,f);f=document.createElement("div");f.className="geTitle";f.style.backgroundColor="transparent";f.style.borderColor="transparent";f.style.whiteSpace="nowrap";f.style.textOverflow="clip";f.style.cursor="default";f.style.paddingRight="20px";var c=document.createElement("input");c.setAttribute("value",m);c.setAttribute("type","text");c.setAttribute("spellcheck","false");c.setAttribute("autocorrect","off");c.setAttribute("autocomplete","off");c.setAttribute("autocapitalize","off");c.style.marginTop=
+var BackgroundImageDialog=function(b,f,m,d,q){function x(){null==n||n==mxConstants.NONE?(U.style.display="none",T.checked=!1):(U.style.backgroundColor=n,U.style.display="",T.checked=!0)}var C=b.editor.graph,y=document.createElement("div");y.style.whiteSpace="nowrap";var I=document.createElement("h2");mxUtils.write(I,mxResources.get("background"));I.style.marginTop="0px";y.appendChild(I);var M=null!=m&&null!=m.originalSrc;I=!1;var H=document.createElement("input");H.style.cssText="margin-right:8px;margin-bottom:8px;";H.setAttribute("value",
+"url");H.setAttribute("type","radio");H.setAttribute("name","geBackgroundImageDialogOption");var c=document.createElement("input");c.style.cssText="margin-right:8px;margin-bottom:8px;";c.setAttribute("value","url");c.setAttribute("type","radio");c.setAttribute("name","geBackgroundImageDialogOption");var e=document.createElement("input");e.setAttribute("type","text");e.style.marginBottom="8px";e.style.width="360px";e.value=M||null==m?"":m.src;var g=document.createElement("select");g.style.width="360px";
+if(null!=b.pages)for(var l=0;l<b.pages.length;l++){var p=document.createElement("option");mxUtils.write(p,b.pages[l].getName()||mxResources.get("pageWithNumber",[l+1]));p.setAttribute("value","data:page/id,"+b.pages[l].getId());b.pages[l]==b.currentPage&&p.setAttribute("disabled","disabled");null!=m&&m.originalSrc==p.getAttribute("value")&&(p.setAttribute("selected","selected"),I=!0);g.appendChild(p)}M||null!=b.pages&&1!=b.pages.length||(H.style.display="none",c.style.display="none",g.style.display=
+"none");var u=document.createElement("option"),z=!1,E=!1,D=function(B,F){z||null!=B&&E||(c.checked?null!=F&&F(u.selected?null:g.value):""==e.value||b.isOffline()?(P.value="",R.value="",null!=F&&F("")):(e.value=mxUtils.trim(e.value),b.loadImage(e.value,function(J){P.value=J.width;R.value=J.height;null!=F&&F(e.value)},function(){b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"));P.value="";R.value="";null!=F&&F(null)})))},A=mxUtils.bind(this,function(B){b.importFiles(B,
+0,0,b.maxBackgroundSize,function(F,J,K,k,v,G){e.value=F;D();e.focus()},function(){},function(F){return"image/"==F.type.substring(0,6)},function(F){for(var J=0;J<F.length;J++)F[J]()},!0,b.maxBackgroundBytes,b.maxBackgroundBytes,!0)});this.init=function(){M?g.focus():e.focus();mxEvent.addListener(g,"focus",function(){H.removeAttribute("checked");c.setAttribute("checked","checked");c.checked=!0});mxEvent.addListener(e,"focus",function(){c.removeAttribute("checked");H.setAttribute("checked","checked");
+H.checked=!0});if(Graph.fileSupport){e.setAttribute("placeholder",mxResources.get("dragImagesHere"));var B=y.parentNode,F=null;mxEvent.addListener(B,"dragleave",function(J){null!=F&&(F.parentNode.removeChild(F),F=null);J.stopPropagation();J.preventDefault()});mxEvent.addListener(B,"dragover",mxUtils.bind(this,function(J){null==F&&(!mxClient.IS_IE||10<document.documentMode)&&(F=b.highlightElement(B));J.stopPropagation();J.preventDefault()}));mxEvent.addListener(B,"drop",mxUtils.bind(this,function(J){null!=
+F&&(F.parentNode.removeChild(F),F=null);if(0<J.dataTransfer.files.length)A(J.dataTransfer.files);else if(0<=mxUtils.indexOf(J.dataTransfer.types,"text/uri-list")){var K=J.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(K)&&(e.value=decodeURIComponent(K),D())}J.stopPropagation();J.preventDefault()}),!1)}};y.appendChild(H);y.appendChild(e);mxUtils.br(y);l=document.createElement("span");l.style.marginLeft="30px";mxUtils.write(l,mxResources.get("width")+":");y.appendChild(l);
+var P=document.createElement("input");P.setAttribute("type","text");P.style.width="60px";P.style.marginLeft="8px";P.style.marginRight="16px";P.value=null==m||M?"":m.width;y.appendChild(P);mxUtils.write(y,mxResources.get("height")+":");var R=document.createElement("input");R.setAttribute("type","text");R.style.width="60px";R.style.marginLeft="8px";R.style.marginRight="16px";R.value=null==m||M?"":m.height;y.appendChild(R);mxUtils.br(y);mxUtils.br(y);mxEvent.addListener(e,"change",D);ImageDialog.filePicked=
+function(B){B.action==google.picker.Action.PICKED&&null!=B.docs[0].thumbnails&&(B=B.docs[0].thumbnails[B.docs[0].thumbnails.length-1],null!=B&&(e.value=B.url,D()));e.focus()};y.appendChild(c);y.appendChild(g);mxUtils.br(y);mxUtils.br(y);M?(c.setAttribute("checked","checked"),c.checked=!0):(H.setAttribute("checked","checked"),H.checked=!0);!I&&c.checked&&(mxUtils.write(u,mxResources.get("pageNotFound")),u.setAttribute("disabled","disabled"),u.setAttribute("selected","selected"),u.setAttribute("value",
+"pageNotFound"),g.appendChild(u),mxEvent.addListener(g,"change",function(){null==u.parentNode||u.selected||u.parentNode.removeChild(u)}));m=document.createElement("div");m.style.display=q?"inline-flex":"none";m.style.alignItems="center";m.style.cursor="default";m.style.minWidth="40%";m.style.height="20px";var T=document.createElement("input");T.setAttribute("type","checkbox");T.style.margin="0px 10px 0px 4px";T.style.verticalAlign="bottom";T.defaultChecked=d!=mxConstants.NONE&&null!=d;T.checked=T.defaultChecked;
+m.appendChild(T);mxUtils.write(m,mxResources.get("fillColor"));q=m.cloneNode(!1);var L=document.createElement("input");L.setAttribute("type","checkbox");L.style.margin="0px 10px 0px 30px";L.style.verticalAlign="bottom";L.defaultChecked=C.shadowVisible;L.checked=L.defaultChecked;q.appendChild(L);mxUtils.write(q,mxResources.get("shadow"));mxClient.IS_SVG&&!mxClient.IS_SF||L.setAttribute("disabled","disabled");mxEvent.addListener(q,"click",function(B){mxEvent.getSource(B)!=L&&(L.checked=!L.checked)});
+var U=document.createElement("button");U.style.width="36px";U.style.height="18px";U.style.cursor="pointer";U.style.marginLeft="10px";U.style.backgroundPosition="center center";U.style.backgroundRepeat="no-repeat";U.style.verticalAlign="bottom";U.className="geColorBtn";var n=d;x();mxEvent.addListener(m,"click",function(B){mxEvent.getSource(B)!=T&&(T.checked=!T.checked);n=T.checked?"#ffffff":null;x()});mxEvent.addListener(U,"click",function(B){b.pickColor(n||"none",function(F){n=F;x()});mxEvent.consume(B)});
+m.appendChild(U);y.appendChild(m);y.appendChild(q);mxUtils.br(y);d=document.createElement("div");d.style.marginTop="30px";d.style.textAlign="right";C=mxUtils.button(mxResources.get("cancel"),function(){z=!0;b.hideDialog()});C.className="geBtn";b.editor.cancelFirst&&d.appendChild(C);q=mxUtils.button(mxResources.get("reset"),function(){e.value="";P.value="";R.value="";H.checked=!0;n=mxConstants.NONE;x();z=!1});mxEvent.addGestureListeners(q,function(){z=!0});q.className="geBtn";q.width="100";d.appendChild(q);
+if(Graph.fileSupport){var t=document.createElement("input");t.setAttribute("multiple","multiple");t.setAttribute("type","file");mxEvent.addListener(t,"change",function(B){null!=t.files&&(A(t.files),t.type="",t.type="file",t.value="")});t.style.display="none";y.appendChild(t);q=mxUtils.button(mxResources.get("open"),function(){t.click()});q.className="geBtn";d.appendChild(q)}applyBtn=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();D(null,function(B){f(""!=B&&null!=B?new mxImage(B,
+P.value,R.value):null,null==B,n,!mxClient.IS_SVG||mxClient.IS_SF?null:L.checked)})});mxEvent.addGestureListeners(applyBtn,function(){E=!0});applyBtn.className="geBtn gePrimaryBtn";d.appendChild(applyBtn);b.editor.cancelFirst||d.appendChild(C);y.appendChild(d);this.container=y},ParseDialog=function(b,f,m){function d(g,l,p){var u=g.split("\n");if("plantUmlPng"==l||"plantUmlSvg"==l||"plantUmlTxt"==l){if(b.spinner.spin(document.body,mxResources.get("inserting"))){var z=function(K,k,v,G,N){x=mxEvent.isAltDown(p)?
+x:E.getCenterInsertPoint(new mxRectangle(0,0,G,N));var O=null;E.getModel().beginUpdate();try{O="txt"==k?b.insertAsPreText(v,x.x,x.y):E.insertVertex(null,null,null,x.x,x.y,G,N,"shape=image;noLabel=1;verticalAlign=top;aspect=fixed;imageAspect=0;image="+b.convertDataUri(v)+";"),E.setAttributeForCell(O,"plantUmlData",JSON.stringify({data:K,format:k},null,2))}finally{E.getModel().endUpdate()}null!=O&&(E.setSelectionCell(O),E.scrollCellToVisible(O))},E=b.editor.graph,D="plantUmlTxt"==l?"txt":"plantUmlPng"==
+l?"png":"svg";"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml"==g&&"svg"==D?window.setTimeout(function(){b.spinner.stop();z(g,D,"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiBjb250ZW50U2NyaXB0VHlwZT0iYXBwbGljYXRpb24vZWNtYXNjcmlwdCIgY29udGVudFN0eWxlVHlwZT0idGV4dC9jc3MiIGhlaWdodD0iMjEycHgiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHN0eWxlPSJ3aWR0aDoyOTVweDtoZWlnaHQ6MjEycHg7IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAyOTUgMjEyIiB3aWR0aD0iMjk1cHgiIHpvb21BbmRQYW49Im1hZ25pZnkiPjxkZWZzLz48Zz48bGluZSBzdHlsZT0ic3Ryb2tlOiAjQTgwMDM2OyBzdHJva2Utd2lkdGg6IDEuMDsgc3Ryb2tlLWRhc2hhcnJheTogNS4wLDUuMDsiIHgxPSIzMSIgeDI9IjMxIiB5MT0iMzQuNDg4MyIgeTI9IjE3MS43MzA1Ii8+PGxpbmUgc3R5bGU9InN0cm9rZTogI0E4MDAzNjsgc3Ryb2tlLXdpZHRoOiAxLjA7IHN0cm9rZS1kYXNoYXJyYXk6IDUuMCw1LjA7IiB4MT0iMjY0LjUiIHgyPSIyNjQuNSIgeTE9IjM0LjQ4ODMiIHkyPSIxNzEuNzMwNSIvPjxyZWN0IGZpbGw9IiNGRUZFQ0UiIGhlaWdodD0iMzAuNDg4MyIgc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)},200):b.generatePlantUmlImage(g,D,function(K,k,v){b.spinner.stop();z(g,D,K,k,v)},function(K){b.handleError(K)})}}else if("mermaid"==l||"mermaid2drawio"==l){if(b.spinner.spin(document.body,mxResources.get("inserting"))){for(var A=0;A<u.length&&(0==u[A].trim().length||"%%"==u[A].substring(0,2));)A++;if("---"==u[A].trim()){do A++;while(A<u.length&&"---"!=u[A].trim());A++}A=u[A].trim().toLowerCase();u=A.indexOf(" ");A=A.substring(0,0<u?u:A.length);var P="undefined"!==typeof mxMermaidToDrawio&&
+"mermaid2drawio"==l&&("graph"==A||"flowchart"==A||"sequencediagram"==A||"classdiagram"==A||"statediagram-v2"==A||"statediagram"==A||"erdiagram"==A||"requirementdiagram"==A||"gitgraph"==A||"mindmap"==A||"journey"==A);E=b.editor.graph;P&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(K){b.spinner.stop();E.setSelectionCells(b.importXml(K,Math.max(x.x,20),Math.max(x.y,20),!0,null,null,!0));E.scrollCellToVisible(E.getSelectionCell())}));b.generateMermaidImage(g,null,function(K,k,v){if(!P){x=
+mxEvent.isAltDown(p)?x:E.getCenterInsertPoint(new mxRectangle(0,0,k,v));b.spinner.stop();var G=null;E.getModel().beginUpdate();try{G=E.insertVertex(null,null,null,x.x,x.y,k,v,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+K+";"),E.setAttributeForCell(G,"mermaidData",JSON.stringify({data:g},null,2))}finally{E.getModel().endUpdate()}null!=G&&(E.setSelectionCell(G),E.scrollCellToVisible(G))}},function(K){"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.resetListeners();b.handleError(K)})}}else if("table"==
+l){l=null;var R=[],T=0,L={};for(A=0;A<u.length;A++){var U=mxUtils.trim(u[A]);if("primary key"==U.substring(0,11).toLowerCase()){var n=U.match(/\((.+)\)/);n&&n[1]&&(L[n[1]]=!0);u.splice(A,1)}else 0<U.toLowerCase().indexOf("primary key")&&(L[U.split(" ")[0]]=!0,u[A]=mxUtils.trim(U.replace(/primary key/i,"")))}for(A=0;A<u.length;A++)if(U=mxUtils.trim(u[A]),"create table"==U.substring(0,12).toLowerCase())U=mxUtils.trim(U.substring(12)),"("==U.charAt(U.length-1)&&(U=mxUtils.trim(U.substring(0,U.length-
+1))),l=new mxCell(U,new mxGeometry(T,0,160,30),"shape=table;startSize=30;container=1;collapsible=1;childLayout=tableLayout;fixedRows=1;rowLines=0;fontStyle=1;align=center;resizeLast=1;"),l.vertex=!0,R.push(l),U=b.editor.graph.getPreferredSizeForCell(t),null!=U&&(l.geometry.width=U.width+10);else if(null!=l&&")"==U.charAt(0))T+=l.geometry.width+40,l=null;else if("("!=U&&null!=l){U=U.substring(0,","==U.charAt(U.length-1)?U.length-1:U.length);n=L[U.split(" ")[0]];var t=new mxCell("",new mxGeometry(0,
+0,160,30),"shape=tableRow;horizontal=0;startSize=0;swimlaneHead=0;swimlaneBody=0;fillColor=none;collapsible=0;dropTarget=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;strokeColor=inherit;top=0;left=0;right=0;bottom="+(n?"1":"0")+";");t.vertex=!0;var B=new mxCell(n?"PK":"",new mxGeometry(0,0,30,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;strokeColor=inherit;top=0;left=0;bottom=0;right=0;"+(n?"fontStyle=1;":""));B.vertex=!0;t.insert(B);U=new mxCell(U,new mxGeometry(30,
+0,130,30),"shape=partialRectangle;overflow=hidden;connectable=0;fillColor=none;align=left;strokeColor=inherit;top=0;left=0;bottom=0;right=0;spacingLeft=6;"+(n?"fontStyle=5;":""));U.vertex=!0;t.insert(U);U=b.editor.graph.getPreferredSizeForCell(U);null!=U&&l.geometry.width<U.width+30&&(l.geometry.width=Math.min(320,Math.max(l.geometry.width,U.width+30)));l.insert(t,n?0:null);l.geometry.height+=30}0<R.length&&(E=b.editor.graph,x=mxEvent.isAltDown(p)?x:E.getCenterInsertPoint(E.getBoundingBoxFromGeometry(R,
+!0)),E.setSelectionCells(E.importCells(R,x.x,x.y)),E.scrollCellToVisible(E.getSelectionCell()))}else if("list"==l){if(0<u.length){E=b.editor.graph;l=null;R=[];for(A=t=0;A<u.length;A++)";"!=u[A].charAt(0)&&(0==u[A].length?l=null:null==l?(l=new mxCell(u[A],new mxGeometry(t,0,160,30),"swimlane;fontStyle=1;childLayout=stackLayout;horizontal=1;startSize=26;horizontalStack=0;resizeParent=1;resizeParentMax=0;resizeLast=0;collapsible=1;marginBottom=0;"),l.vertex=!0,R.push(l),U=E.getPreferredSizeForCell(l),
+null!=U&&l.geometry.width<U.width+10&&(l.geometry.width=U.width+10),t+=l.geometry.width+40):"--"==u[A]?(U=new mxCell("",new mxGeometry(0,0,40,8),"line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=3;spacingRight=3;rotatable=0;labelPosition=right;points=[];portConstraint=eastwest;"),U.vertex=!0,l.geometry.height+=U.geometry.height,l.insert(U)):0<u[A].length&&(T=new mxCell(u[A],new mxGeometry(0,0,60,26),"text;strokeColor=none;fillColor=none;align=left;verticalAlign=top;spacingLeft=4;spacingRight=4;overflow=hidden;rotatable=0;points=[[0,0.5],[1,0.5]];portConstraint=eastwest;"),
+T.vertex=!0,U=E.getPreferredSizeForCell(T),null!=U&&T.geometry.width<U.width&&(T.geometry.width=U.width),l.geometry.width=Math.max(l.geometry.width,T.geometry.width),l.geometry.height+=T.geometry.height,l.insert(T)));if(0<R.length){x=mxEvent.isAltDown(p)?x:E.getCenterInsertPoint(E.getBoundingBoxFromGeometry(R,!0));E.getModel().beginUpdate();try{R=E.importCells(R,x.x,x.y);U=[];for(A=0;A<R.length;A++)U.push(R[A]),U=U.concat(R[A].children);E.fireEvent(new mxEventObject("cellsInserted","cells",U))}finally{E.getModel().endUpdate()}E.setSelectionCells(R);
+E.scrollCellToVisible(E.getSelectionCell())}}}else{t=function(K){var k=F[K];null==k&&(k=new mxCell(K,new mxGeometry(0,0,80,30),"whiteSpace=wrap;html=1;"),k.vertex=!0,F[K]=k,R.push(k));return k};var F={};R=[];for(A=0;A<u.length;A++)if(";"!=u[A].charAt(0)){var J=u[A].split("->");2<=J.length&&(n=t(J[0]),B=t(J[J.length-1]),J=new mxCell(2<J.length?J[1]:"",new mxGeometry),J.edge=!0,J.geometry.relative=!0,n.insertEdge(J,!0),B.insertEdge(J,!1),R.push(J))}if(0<R.length){u=document.createElement("div");u.style.visibility=
+"hidden";document.body.appendChild(u);E=new Graph(u);E.getModel().beginUpdate();try{R=E.importCells(R);for(A=0;A<R.length;A++)E.getModel().isVertex(R[A])&&(U=E.getPreferredSizeForCell(R[A]),R[A].geometry.width=Math.max(R[A].geometry.width,U.width),R[A].geometry.height=Math.max(R[A].geometry.height,U.height));A=!0;"horizontalFlow"==l||"verticalFlow"==l?((new mxHierarchicalLayout(E,"horizontalFlow"==l?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH)).execute(E.getDefaultParent(),R),A=!1):"circle"==
+l?(new mxCircleLayout(E)).execute(E.getDefaultParent()):(T=new mxFastOrganicLayout(E),T.disableEdgeStyle=!1,T.forceConstant=180,T.execute(E.getDefaultParent()));A&&(L=new mxParallelEdgeLayout(E),L.spacing=30,L.execute(E.getDefaultParent()))}finally{E.getModel().endUpdate()}E.clearCellOverlays();U=[];b.editor.graph.getModel().beginUpdate();try{R=E.getModel().getChildren(E.getDefaultParent()),x=mxEvent.isAltDown(p)?x:b.editor.graph.getCenterInsertPoint(E.getBoundingBoxFromGeometry(R,!0)),U=b.editor.graph.importCells(R,
+x.x,x.y),b.editor.graph.fireEvent(new mxEventObject("cellsInserted","cells",U))}finally{b.editor.graph.getModel().endUpdate()}b.editor.graph.setSelectionCells(U);b.editor.graph.scrollCellToVisible(b.editor.graph.getSelectionCell());E.destroy();u.parentNode.removeChild(u)}}}function q(){return"list"==y.value?"Person\n-name: String\n-birthDate: Date\n--\n+getName(): String\n+setName(String): void\n+isBirthday(): boolean\n\nAddress\n-street: String\n-city: String\n-state: String":"mermaid"==y.value||
+"mermaid2drawio"==y.value?"graph TD;\n A--\x3eB;\n A--\x3eC;\n B--\x3eD;\n C--\x3eD;":"table"==y.value?"CREATE TABLE Suppliers\n(\nsupplier_id int NOT NULL PRIMARY KEY,\nsupplier_name char(50) NOT NULL,\ncontact_name char(50),\n);\nCREATE TABLE Customers\n(\ncustomer_id int NOT NULL PRIMARY KEY,\ncustomer_name char(50) NOT NULL,\naddress char(50),\ncity char(50),\nstate char(25),\nzip_code char(10)\n);\n":"plantUmlPng"==y.value?"@startuml\nskinparam backgroundcolor transparent\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml":
+"plantUmlSvg"==y.value||"plantUmlTxt"==y.value?"@startuml\nskinparam shadowing false\nAlice -> Bob: Authentication Request\nBob --\x3e Alice: Authentication Response\n\nAlice -> Bob: Another authentication Request\nAlice <-- Bob: Another authentication Response\n@enduml":";Example:\na->b\nb->edge label->c\nc->a\n"}var x=b.editor.graph.getFreeInsertPoint();f=document.createElement("div");f.style.textAlign="right";var C=document.createElement("textarea");C.style.boxSizing="border-box";C.style.resize=
+"none";C.style.width="100%";C.style.height="354px";C.style.marginBottom="16px";var y=document.createElement("select");y.className="geBtn";if("formatSql"==m||"mermaid"==m&&"draw.io"!=b.getServiceName()&&"atlassian"!=b.getServiceName())y.style.display="none";var I=document.createElement("option");I.setAttribute("value","list");mxUtils.write(I,mxResources.get("list"));"plantUml"!=m&&"mermaid"!=m&&y.appendChild(I);null!=m&&"fromText"!=m||I.setAttribute("selected","selected");I=document.createElement("option");
+I.setAttribute("value","table");mxUtils.write(I,mxResources.get("formatSql"));"formatSql"==m&&(y.appendChild(I),I.setAttribute("selected","selected"));I=document.createElement("option");I.setAttribute("value","mermaid");mxUtils.write(I,mxResources.get("image"));if("mermaid"==m)if("undefined"!==typeof mxMermaidToDrawio){var M=document.createElement("option");M.setAttribute("value","mermaid2drawio");M.setAttribute("selected","selected");mxUtils.write(M,mxResources.get("diagram"));y.appendChild(M)}else y.style.display=
+"none";y.appendChild(I);I=document.createElement("option");I.setAttribute("value","diagram");mxUtils.write(I,mxResources.get("diagram"));M=document.createElement("option");M.setAttribute("value","circle");mxUtils.write(M,mxResources.get("circle"));var H=document.createElement("option");H.setAttribute("value","horizontalFlow");mxUtils.write(H,mxResources.get("horizontalFlow"));var c=document.createElement("option");c.setAttribute("value","verticalFlow");mxUtils.write(c,mxResources.get("verticalFlow"));
+"plantUml"!=m&&"mermaid"!=m&&(y.appendChild(I),y.appendChild(M),y.appendChild(H),y.appendChild(c));I=document.createElement("option");I.setAttribute("value","plantUmlSvg");mxUtils.write(I,mxResources.get("plantUml")+" ("+mxResources.get("formatSvg")+")");"plantUml"==m&&I.setAttribute("selected","selected");M=document.createElement("option");M.setAttribute("value","plantUmlPng");mxUtils.write(M,mxResources.get("plantUml")+" ("+mxResources.get("formatPng")+")");H=document.createElement("option");H.setAttribute("value",
+"plantUmlTxt");mxUtils.write(H,mxResources.get("plantUml")+" ("+mxResources.get("text")+")");EditorUi.enablePlantUml&&Graph.fileSupport&&!b.isOffline()&&"plantUml"==m&&(y.appendChild(I),y.appendChild(M),y.appendChild(H));var e=q();C.value=e;f.appendChild(C);this.init=function(){C.focus()};Graph.fileSupport&&(C.addEventListener("dragover",function(g){g.stopPropagation();g.preventDefault()},!1),C.addEventListener("drop",function(g){g.stopPropagation();g.preventDefault();if(0<g.dataTransfer.files.length){g=
+g.dataTransfer.files[0];var l=new FileReader;l.onload=function(p){C.value=p.target.result};l.readAsText(g)}},!1));f.appendChild(y);mxEvent.addListener(y,"change",function(){var g=q();if(0==C.value.length||C.value==e)e=g,C.value=e});b.isOffline()||"mermaid"!=m&&"plantUml"!=m||(I=mxUtils.button(mxResources.get("help"),function(){b.openLink("mermaid"==m?"https://mermaid-js.github.io/mermaid/#/":"https://plantuml.com/")}),I.className="geBtn",f.appendChild(I));I=mxUtils.button(mxResources.get("close"),
+function(){C.value==e?b.hideDialog():b.confirm(mxResources.get("areYouSure"),function(){b.hideDialog()})});I.className="geBtn";b.editor.cancelFirst&&f.appendChild(I);M=mxUtils.button(mxResources.get("insert"),function(g){try{b.hideDialog(),d(C.value,y.value,g)}catch(l){b.handleError(l)}});M.className="geBtn gePrimaryBtn";f.appendChild(M);b.editor.cancelFirst||f.appendChild(I);this.container=f},NewDialog=function(b,f,m,d,q,x,C,y,I,M,H,c,e,g,l,p,u,z,E){function D(ja){null!=ja&&(la=Fa=ja?135:140);ja=
+!0;if(null!=Wa)for(;k<Wa.length&&(ja||0!=mxUtils.mod(k,30));){var pa=Wa[k++];pa=t(pa.url,pa.libs,pa.title,pa.tooltip?pa.tooltip:pa.title,pa.select,pa.imgUrl,pa.info,pa.onClick,pa.preview,pa.noImg,pa.clibs,pa.type);ja&&pa.click();ja=!1}}function A(ja,pa,sa,ra,na,ua){if(null!=ja&&mxUtils.isAncestorNode(document.body,ra)){ja=mxUtils.parseXml(ja);ja=Editor.parseDiagramNode(ja.documentElement,null,!0);var Ha=new mxCodec(ja.ownerDocument),Ea=new mxGraphModel;Ha.decode(ja,Ea);b.sidebar.createTooltip(ra,
+Ea.root.children,Math.min((window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)-120,1E3),Math.min((window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)-120,800),null!=na?mxResources.get(na):null,!0,new mxPoint(pa,sa),!0,function(){S=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display;null!=ua&&T(ra,null,null,ua,infoObj,clibs)},!0,!1)}}function P(){var ja=document.createElement("div");ja.style.position="absolute";ja.style.overflow=
+"visible";ja.style.left="8px";ja.style.right="8px";ja.style.bottom="8px";ja.style.top="8px";mxUtils.write(ja,mxResources.get("describeYourDiagram")+":");mxUtils.br(ja);var pa=document.createElement("input");pa.setAttribute("type","text");pa.setAttribute("placeholder",mxResources.get("processForHiringNewEmployee"));pa.style.width="100%";pa.style.marginTop="6px";pa.style.marginBottom="4px";pa.style.boxSizing="border-box";ja.appendChild(pa);ja.init=function(){pa.focus()};mxUtils.br(ja);var sa=document.createElement("div");
+sa.style.top="86px";sa.style.left="2px";sa.style.right="2px";sa.style.bottom="2px";sa.style.position="absolute";sa.style.border="1px solid #424242";var ra=document.createElement("div");ra.style.boxSizing="border-box";ra.style.position="relative";ra.style.textAlign="center";ra.style.top="50%";mxUtils.write(ra,mxResources.get("blankDiagram"));sa.appendChild(ra);var na=document.createElement("select");na.className="geBtn";na.style.maxWidth="160px";na.style.marginLeft="0px";ra=document.createElement("option");
+mxUtils.write(ra,mxResources.get("diagramType"));ra.setAttribute("value","");na.appendChild(ra);for(var ua=0;ua<EditorUi.mermaidDiagramTypes.length;ua++){ra=document.createElement("option");var Ha=EditorUi.mermaidDiagramTypes[ua],Ea=Ha;Ha==urlParams["smart-template-type"]&&ra.setAttribute("selected","selected");"erDiagram"==Ea&&(Ea="entityRelationshipDiagram");Ea=mxResources.get(Ea,null,Ea.charAt(0).toUpperCase()+Ea.substring(1).replace(/[A-Z]/g," $&"));ra.setAttribute("value",Ha);mxUtils.write(ra,
+Ea);na.appendChild(ra)}var La=mxUtils.button(mxResources.get("generate"),function(){var Pa=pa.value,Qa=na.value.replace(/([A-Z])/g," $1").toLowerCase();Pa="Write the declaration code for a detailed and complex "+(""!=Qa?Qa:"graph")+' that shows "'+(""!=Pa?Pa:"something random")+'" using correct MermaidJS syntax and do not provide additional text in your response.';Qa=""!=na.value?" ("+mxUtils.trim(mxUtils.getTextContent(na.options[na.selectedIndex]))+")":"";var Xa="gantt"==na.value||"pie"==na.value||
+"timeline"==na.value||"quadrantchart"==na.value||"c4context"==na.value,Na=pa.value+Qa;"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(Oa){Xa||(za=ha=Oa,va="Smart Template: "+Na)}));b.spinner.spin(document.body,mxResources.get("loading"))&&b.generateOpenAiMermaidDiagram(Pa,function(Oa,Ia,bb,Za){b.spinner.stop();sa.innerHTML="";var Ya=document.createElement("img");Ya.setAttribute("title",Na);Ya.src="data:image/svg+xml;base64,"+Ia.substring(Ia.indexOf(",")+
+1);Ya.style.cursor="pointer";Ya.style.width="100%";Ya.style.height="100%";sa.appendChild(Ya);Oa=b.createMermaidXml(Oa,EditorUi.defaultMermaidConfig,Ia,bb,Za,Na);var hb="<mxfile><diagram>"+Graph.compress(Oa)+"</diagram></mxfile>";if(Xa||"undefined"===typeof mxMermaidToDrawio)za=ha=Oa;Oa=N.cloneNode(!0);sa.appendChild(Oa);Ia=function(gb){S=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display};bb=function(gb){S||A(hb,mxEvent.getClientX(gb),mxEvent.getClientY(gb),Ya,Na)};mxEvent.addGestureListeners(Ya,
+Ia,null,bb);mxEvent.addGestureListeners(Oa,Ia,null,bb)},function(Oa){b.spinner.stop();null!=mxMermaidToDrawio.resetListeners&&mxMermaidToDrawio.resetListeners();b.handleError(Oa)})});La.setAttribute("disabled","disabled");La.className="geBtn gePrimaryBtn";ra=function(){window.setTimeout(function(){""!=pa.value?La.removeAttribute("disabled"):La.setAttribute("disabled","disabled")},0)};ua=urlParams["smart-template"];null!=ua&&"1"!=ua&&(pa.value=decodeURIComponent(ua),ra(),"1"==urlParams["smart-template-generate"]&&
+window.setTimeout(function(){La.click()},0));mxEvent.addListener(pa,"change",ra);mxEvent.addListener(pa,"keydown",ra);mxEvent.addListener(pa,"cut",ra);mxEvent.addListener(pa,"paste",ra);mxEvent.addListener(pa,"keydown",function(Pa){13==Pa.keyCode&&La.click()});ra=document.createElement("div");ra.style.height="40px";ra.style.marginTop="4px";ra.style.marginBottom="4px";ra.style.whiteSpace="nowrap";ra.style.overflowX="auto";ra.style.overflowY="hidden";ra.appendChild(na);ra.appendChild(La);ja.appendChild(ra);
+ja.appendChild(sa);return ja}function R(){if(ia&&null!=g)m||b.hideDialog(),g(ia,da,K.value);else if(d)m||b.hideDialog(),d(ha,K.value,fa,ka);else{var ja=K.value;if(null!=ja&&0<ja.length){var pa=function(ra,na,ua){b.createFile(ua,ha,null!=ka&&0<ka.length?ka:null,ra,function(){b.hideDialog()},null,na,null,null!=ba&&0<ba.length?ba:null)};if(b.mode==App.MODE_GOOGLE||b.mode==App.MODE_ONEDRIVE){var sa=new SaveDialog(b,ja,mxUtils.bind(this,function(ra,na,ua){pa(na,ua,ra.value)}),null,null,null,null,b.mode);
+b.showDialog(sa.container,420,150,!0,!1);sa.init()}else b.pickFolder(b.mode,function(ra){pa(b.mode,ra,ja)},b.mode!=App.MODE_GOOGLE||null==b.stateArg||null==b.stateArg.folderId)}}}function T(ja,pa,sa,ra,na,ua,Ha){return aa!=ja?(null!=aa&&(aa.classList.remove("geTemplateSelected"),aa==wa&&(xa.style.display="none",Da.style.display="",ya.style.visibility="hidden",Ka.style.visibility=null!=za?"visible":"hidden")),ja==wa&&(pa=za,null!=pa?(Ka.style.visibility="visible",Ka.style.visibility=null!=za?"visible":
+"hidden",ya.style.visibility="visible"):(xa.style.display="",ya.style.visibility="hidden",Ka.style.visibility="hidden")),G.removeAttribute("disabled"),ha=pa,ka=sa,ba=ua,aa=ja,ia=ra,fa=Ha,da=na,aa.classList.add("geTemplateSelected"),!0):!1}function L(){xa.style.display="";Da.style.display="none";ya.style.visibility="hidden";Ka.style.visibility="hidden";Aa.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?Aa.select():document.execCommand("selectAll",!1,null)}function U(){Da.style.backgroundImage=
+Ca;Da.style.backgroundSize="contain";xa.style.display="none";Da.style.display="";ya.style.visibility="visible";Ka.style.visibility="visible"}function n(ja){var pa=mxUtils.trim(Aa.value);if(ja||""==pa)null!=va&&(Aa.value=va,U());else{var sa=!1;ja='Write a detailed and complex MermaidJS declaration for "'+(""!=pa?pa:"something random")+'" using correct MermaidJS syntax and do not provide additional text in your response.';"undefined"!==typeof mxMermaidToDrawio&&mxMermaidToDrawio.addListener(mxUtils.bind(this,
+function(ra){ra!=b.emptyDiagramXml&&(sa=!0,ha=ra)}));Da.style.backgroundImage="url("+Editor.spinImage+")";Da.style.backgroundSize="12px 12px";Da.style.display="";xa.style.display="none";b.generateOpenAiMermaidDiagram(ja,function(ra,na,ua,Ha){aa==wa&&"none"==xa.style.display&&(Ca="url(data:image/svg+xml;base64,"+na.substring(na.indexOf(",")+1)+")",wa.setAttribute("title",pa),Ka.style.display="",za=ha=ra=sa?ha:b.createMermaidXml(ra,EditorUi.defaultMermaidConfig,na,ua,Ha,pa),va=pa,U())},function(ra){aa==
+wa&&(xa.style.display="",Da.style.display="none",ya.style.visibility="hidden",Ka.style.visibility="hidden",b.handleError(ra))})}}function t(ja,pa,sa,ra,na,ua,Ha,Ea,La,Pa,Qa,Xa){function Na(Sa,db){null==bb?(Za=Sa,Za=/^https?:\/\//.test(Za)?b.editor.isCorsEnabledForUrl(Za)?Za:PROXY_URL+"?url="+encodeURIComponent(Za):TEMPLATE_PATH+"/"+Za,mxUtils.get(Za,mxUtils.bind(this,function(eb){200<=eb.getStatus()&&299>=eb.getStatus()&&(bb=eb.getText());db(bb,Za)}))):db(bb,Za)}function Oa(Sa,db){if(null==ja||O||
+b.sidebar.currentElt==Ia)b.sidebar.hideTooltip();else if(b.sidebar.hideTooltip(),null!=Q){var eb="<mxfile><diagram>"+Graph.compress('<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/><mxCell id="2" value="" style="shape=image;image='+Q.src+';imageAspect=1;" parent="1" vertex="1"><mxGeometry width="'+Q.naturalWidth+'" height="'+Q.naturalHeight+'" as="geometry" /></mxCell></root></mxGraphModel>')+"</diagram></mxfile>";A(eb,mxEvent.getClientX(Sa),mxEvent.getClientY(Sa),sa,ja)}else b.sidebar.currentElt=
+Ia,O=!0,Na(ja,function(jb){if(O&&b.sidebar.currentElt==Ia)try{A(jb,mxEvent.getClientX(Sa),mxEvent.getClientY(Sa),Ia,db)}catch(kb){b.sidebar.currentElt=null,b.handleError(kb)}O=!1})}var Ia=null;if("generative"!=Xa||null==wa){Ia=document.createElement("div");Ia.className="geTemplate";var bb=null,Za=ja;null!=sa?Ia.setAttribute("title",mxResources.get(sa,null,sa)):null!=ra&&0<ra.length&&Ia.setAttribute("title",ra)}else Ia=wa;var Ya=document.createElement("span");Ya.className="geAdaptiveAsset";mxUtils.write(Ya,
+mxResources.get(sa,null,sa));if(null!=ua){Ia.style.display="inline-flex";Ia.style.justifyContent="center";Ia.style.alignItems="center";La=document.createElement("img");La.setAttribute("src",ua);La.setAttribute("alt",ra);La.style.maxWidth=la+"px";La.style.maxHeight=Fa+"px";Q=La;var hb=ua.replace(".drawio.xml","").replace(".drawio","").replace(".xml","");Ia.appendChild(La);La.onerror=function(){this.src!=hb?this.src=hb:(this.src=Editor.errorImage,this.onerror=null)};mxEvent.addGestureListeners(Ia,mxUtils.bind(this,
+function(Sa){T(Ia,null,null,ja,Ha,Qa)}),null,null);mxEvent.addListener(Ia,"dblclick",function(Sa){R();mxEvent.consume(Sa)})}else if(!Pa&&null!=ja&&0<ja.length){var gb=function(Sa){v.spin(oa)&&Na(ja,function(db,eb){v.stop();null!=db&&(T(Ia,db,pa,null,null,Qa,eb),Sa&&R())})};ua=La||TEMPLATE_PATH+"/"+ja.substring(0,ja.length-4)+".png";La=Da.cloneNode(!1);La.style.backgroundImage="url("+ua+")";La.style.display="";Ia.appendChild(La);null!=sa&&Ia.appendChild(Ya);mxEvent.addGestureListeners(Ia,mxUtils.bind(this,
+function(Sa){gb()}),null,null);mxEvent.addListener(Ia,"dblclick",function(Sa){gb(!0);mxEvent.consume(Sa)})}else Ia.appendChild(Ya),"generative"==Xa&&null==wa&&(Ia.appendChild(Da),Ia.appendChild(xa),Ia.appendChild(Ka),Ia.appendChild(ya),wa=Ia),na&&T(Ia),null!=Ea?(mxEvent.addGestureListeners(Ia,null,null,mxUtils.bind(this,function(Sa){T(Ia,null,null,ja,Ha)})),mxEvent.addListener(Ia,"click",Ea)):(mxEvent.addListener(Ia,"click",function(Sa){T(Ia,null,null,ja,Ha)&&"generative"==Xa&&null==za&&L()}),mxEvent.addListener(Ia,
+"dblclick",function(Sa){"generative"!=Xa?R():"none"==xa.style.display&&L();mxEvent.consume(Sa)}));null!=ja&&(ua=N.cloneNode(!0),Ia.appendChild(ua),mxEvent.addGestureListeners(ua,mxUtils.bind(this,function(Sa){S=b.sidebar.currentElt==Ia}),null,null),mxEvent.addListener(ua,"click",mxUtils.bind(this,function(Sa){S||Oa(Sa,null!=sa?sa:ra);mxEvent.consume(Sa)})));oa.appendChild(Ia);return Ia}function B(){function ja(Na,Oa){Na=mxResources.get(Na,null,Na.substring(0,1).toUpperCase()+Na.substring(1));18<Na.length&&
+(Na=Na.substring(0,18)+"&hellip;");return Na+(null!=Oa?" ("+Oa.length+")":"")}function pa(Na,Oa,Ia){mxEvent.addListener(Oa,"click",function(){Ta!=Oa&&(null!=Ta&&(Ta.style.backgroundColor=""),Ta=Oa,Ta.style.backgroundColor=C,oa.scrollTop=0,oa.innerText="",k=0,null!=Ma[Na].content?(oa.appendChild(Ma[Na].content),ha=za,Wa=null,null!=Ma[Na].content.init&&Ma[Na].content.init()):(Wa=Ia?Va[Na][Ia]:Ma[Na],W=null,D(!1)))});"smartTemplate"!=Na||!E&&null==urlParams["smart-template"]||Oa.click()}cb&&(cb=!1,mxEvent.addListener(oa,
+"scroll",function(Na){oa.scrollTop+oa.clientHeight>=oa.scrollHeight&&(D(),mxEvent.consume(Na))}));if(0<fb){var sa=document.createElement("div");sa.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(sa,mxResources.get("custom"));qa.appendChild(sa);for(var ra in Ua){var na=document.createElement("div");sa=ra;var ua=Ua[ra];18<sa.length&&(sa=sa.substring(0,18)+"&hellip;");na.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;";
+na.setAttribute("title",sa+" ("+ua.length+")");mxUtils.write(na,na.getAttribute("title"));null!=M&&(na.style.padding=M);qa.appendChild(na);(function(Na,Oa){mxEvent.addListener(na,"click",function(){Ta!=Oa&&(Ta.style.backgroundColor="",Ta=Oa,Ta.style.backgroundColor=C,oa.scrollTop=0,oa.innerText="",k=0,Wa=Ua[Na],W=null,D(!1))})})(ra,na)}sa=document.createElement("div");sa.style.cssText="font-weight: bold;background: #f9f9f9;padding: 5px 0 5px 0;text-align: center;";mxUtils.write(sa,"draw.io");qa.appendChild(sa)}for(ra in Ma){sa=
+ua=null;if(null!=Ma[ra].content)na=document.createElement(Ha?"ul":"div"),sa=ja(ra),na.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;transition: all 0.5s;",na.setAttribute("title",sa),mxUtils.write(na,sa),qa.appendChild(na),sa=na;else{var Ha=Va[ra];sa=na=document.createElement(Ha?"ul":"div");ua=Ma[ra];var Ea=ja(ra,ua);if(null!=Ha){ua=document.createElement("li");var La=document.createElement("div");
+La.className="geTempTreeCaret";La.setAttribute("title",Ea);mxUtils.write(La,Ea);sa=La;ua.appendChild(La);Ea=document.createElement("ul");Ea.className="geTempTreeNested";Ea.style.visibility="hidden";for(var Pa in Ha){var Qa=document.createElement("li"),Xa=ja(Pa,Ha[Pa]);Qa.setAttribute("title",Xa);mxUtils.write(Qa,Xa);pa(ra,Qa,Pa);Ea.appendChild(Qa)}ua.appendChild(Ea);na.className="geTempTree";na.appendChild(ua);(function(Na,Oa){mxEvent.addListener(Oa,"click",function(){Na.style.visibility="visible";
+Na.classList.toggle("geTempTreeActive");Na.classList.toggle("geTempTreeNested")&&setTimeout(function(){Na.style.visibility="hidden"},550);Oa.classList.toggle("geTempTreeCaret-down")})})(Ea,La)}else na.style.cssText="display:block;cursor:pointer;padding:6px;white-space:nowrap;margin-bottom:-1px;overflow:hidden;text-overflow:ellipsis;user-select:none;transition: all 0.5s;",na.setAttribute("title",Ea),mxUtils.write(na,Ea);null!=M&&(na.style.padding=M);qa.appendChild(na)}pa(ra,sa);null==Ta&&sa.click()}D(!1)}
+y=500>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth);m=null!=m?m:!0;q=null!=q?q:!1;C=null!=C?C:"light-dark(#ebf2f9, "+Editor.darkColor+")";H=null!=H?H:EditorUi.templateFile;var F=document.createElement("div");F.style.userSelect="none";F.style.height="100%";I=document.createElement("div");I.style.whiteSpace="nowrap";I.style.height="46px";m&&F.appendChild(I);var J=document.createElement("img");J.setAttribute("border","0");J.setAttribute("align","absmiddle");J.style.width=
+"40px";J.style.height="40px";J.style.marginRight="10px";J.style.paddingBottom="4px";J.src=b.mode==App.MODE_GOOGLE?IMAGE_PATH+"/google-drive-logo.svg":b.mode==App.MODE_DROPBOX?IMAGE_PATH+"/dropbox-logo.svg":b.mode==App.MODE_ONEDRIVE?IMAGE_PATH+"/onedrive-logo.svg":b.mode==App.MODE_GITHUB?IMAGE_PATH+"/github-logo.svg":b.mode==App.MODE_GITLAB?IMAGE_PATH+"/gitlab-logo.svg":b.mode==App.MODE_TRELLO?IMAGE_PATH+"/trello-logo.svg":b.mode==App.MODE_BROWSER?IMAGE_PATH+"/osa_database.png":IMAGE_PATH+"/osa_drive-harddisk.png";
+f||y||!m||I.appendChild(J);m&&mxUtils.write(I,(y?mxResources.get("name"):null==b.mode||b.mode==App.MODE_GOOGLE||b.mode==App.MODE_BROWSER?mxResources.get("diagramName"):mxResources.get("filename"))+":");J=".drawio";b.mode==App.MODE_GOOGLE&&null!=b.drive?J=b.drive.extension:b.mode==App.MODE_DROPBOX&&null!=b.dropbox?J=b.dropbox.extension:b.mode==App.MODE_ONEDRIVE&&null!=b.oneDrive?J=b.oneDrive.extension:b.mode==App.MODE_GITHUB&&null!=b.gitHub?J=b.gitHub.extension:b.mode==App.MODE_GITLAB&&null!=b.gitLab?
+J=b.gitLab.extension:b.mode==App.MODE_TRELLO&&null!=b.trello&&(J=b.trello.extension);var K=document.createElement("input");K.setAttribute("value",b.defaultFilename+J);K.style.marginLeft="10px";K.style.width=f||y?"144px":"244px";this.init=function(){m&&Editor.selectFilename(K);null!=oa.parentNode&&null!=oa.parentNode.parentNode&&mxEvent.addGestureListeners(oa.parentNode.parentNode,mxUtils.bind(this,function(ja){null!=b.sidebar&&b.sidebar.hideTooltip()}),null,null)};m&&(I.appendChild(K),z?K.style.width=
+f||y?"350px":"450px":null!=b.editor.diagramFileTypes&&(z=FilenameDialog.createFileTypes(b,K,b.editor.diagramFileTypes),z.style.marginLeft="6px",z.style.width=f||y?"80px":"180px",I.appendChild(z)));z=!1;var k=0,v=new Spinner({lines:12,length:10,width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9}),G=mxUtils.button(p||mxResources.get("create"),function(){G.setAttribute("disabled","disabled");R();G.removeAttribute("disabled")});
+G.className="geBtn gePrimaryBtn";var N=document.createElement("img");N.setAttribute("src",Editor.magnifyImage);N.setAttribute("title",mxResources.get("preview"));N.className="geButton geRoundButton";var O=!1,Q=null,S=!1;if(c||e){var V=[],W=null,X=null,Z=null,Y=function(ja){G.setAttribute("disabled","disabled");for(var pa=0;pa<V.length;pa++)V[pa].className=pa==ja?"geBtn gePrimaryBtn":"geBtn"};z=!0;p=document.createElement("div");p.style.whiteSpace="nowrap";p.style.height="30px";F.appendChild(p);y=
+mxUtils.button(mxResources.get("Templates",null,"Templates"),function(){qa.style.display="";Ba.style.display="";oa.style.left="160px";Y(0);oa.scrollTop=0;oa.innerText="";k=0;W!=Wa&&(Wa=W,Ma=X,fb=Z,qa.innerText="",B(),W=null)});V.push(y);p.appendChild(y);var ea=function(ja){qa.style.display="none";Ba.style.display="none";oa.style.left="30px";Y(ja?-1:1);null==W&&(W=Wa);oa.scrollTop=0;oa.innerText="";v.spin(oa);var pa=function(sa,ra,na){k=0;v.stop();Wa=sa;na=na||{};var ua=0,Ha;for(Ha in na)ua+=na[Ha].length;
+if(ra)oa.innerText=ra;else if(0==sa.length&&0==ua)oa.innerText=mxResources.get("noDiagrams",null,"No Diagrams Found");else if(oa.innerText="",0<ua){qa.style.display="";oa.style.left="160px";qa.innerText="";fb=0;Ma={"draw.io":sa};for(Ha in na)Ma[Ha]=na[Ha];B()}else D(!0)};ja?e(ca.value,pa):c(pa)};c&&(y=mxUtils.button(mxResources.get("Recent",null,"Recent"),function(){ea()}),p.appendChild(y),V.push(y));if(e){y=document.createElement("span");y.style.marginLeft="10px";y.innerText=mxResources.get("search")+
+":";p.appendChild(y);var ca=document.createElement("input");ca.style.marginRight="10px";ca.style.marginLeft="10px";ca.style.width="220px";mxEvent.addListener(ca,"keypress",function(ja){13==ja.keyCode&&ea(!0)});p.appendChild(ca);y=mxUtils.button(mxResources.get("search"),function(){ea(!0)});y.className="geBtn";p.appendChild(y)}Y(0)}var ka=null,ba=null,ha=null,aa=null,ia=null,fa=null,da=null,za=null,va=null,oa=document.createElement("div");oa.style.border="1px solid #d3d3d3";oa.style.position="absolute";
+oa.style.left="160px";oa.style.right="34px";p=(m?72:40)+(z?30:0);oa.style.top=p+"px";oa.style.bottom="68px";oa.style.margin="6px 0 0 -1px";oa.style.padding="6px";oa.style.overflow="auto";var Ba=document.createElement("div");Ba.style.cssText="position:absolute;left:30px;width:128px;top:"+p+"px;height:22px;margin-top: 6px;white-space: nowrap;";var ma=document.createElement("input");ma.style.cssText="width:105px;height:16px;border:1px solid #d3d3d3;padding: 3px 20px 3px 3px;font-size: 12px;border-radius:0px;";
+ma.setAttribute("placeholder",mxResources.get("search"));ma.setAttribute("type","text");Ba.appendChild(ma);var ta=document.createElement("img");ta.setAttribute("src",Editor.magnifyImage);ta.setAttribute("title",mxResources.get("search"));ta.className="geAdaptiveAsset";ta.style.position="relative";ta.style.cursor="pointer";ta.style.outline="none";ta.style.opacity="0.5";ta.style.height="16px";ta.style.left="-20px";ta.style.top="4px";Ba.appendChild(ta);mxEvent.addListener(ta,"click",function(){ta.getAttribute("src")!=
+Editor.magnifyImage&&(ta.setAttribute("src",Editor.magnifyImage),ta.setAttribute("title",mxResources.get("search")),ma.value="",null!=$a&&($a.click(),$a=null));ma.focus()});mxEvent.addListener(ma,"keydown",mxUtils.bind(this,function(ja){if(13==ja.keyCode){var pa=ma.value;if(""==pa)null!=$a&&($a.click(),$a=null);else{if(null==NewDialog.tagsList[H]){var sa={};for(Qa in Ma)if(null==Ma[Qa].content)for(var ra=Ma[Qa],na=0;na<ra.length;na++){var ua=ra[na];if(null!=ua.tags)for(var Ha=ua.tags.toLowerCase().split(";"),
+Ea=0;Ea<Ha.length;Ea++)null==sa[Ha[Ea]]&&(sa[Ha[Ea]]=[]),sa[Ha[Ea]].push(ua)}NewDialog.tagsList[H]=sa}var La=pa.toLowerCase().split(" ");sa=NewDialog.tagsList[H];if(0<fb&&null==sa.__tagsList__){for(Qa in Ua)for(ra=Ua[Qa],na=0;na<ra.length;na++)for(ua=ra[na],Ha=ua.title.split(" "),Ha.push(Qa),Ea=0;Ea<Ha.length;Ea++){var Pa=Ha[Ea].toLowerCase();null==sa[Pa]&&(sa[Pa]=[]);sa[Pa].push(ua)}sa.__tagsList__=!0}var Qa=[];ra={};for(na=Ha=0;na<La.length;na++)if(0<La[na].length){Pa=sa[La[na]];var Xa={};Qa=[];
+if(null!=Pa)for(Ea=0;Ea<Pa.length;Ea++)ua=Pa[Ea],0==Ha==(null==ra[ua.url])&&(Xa[ua.url]=!0,Qa.push(ua));ra=Xa;Ha++}oa.scrollTop=0;oa.innerText="";k=0;sa=document.createElement("div");sa.style.padding="6px";sa.style.whiteSpace="nowrap";sa.style.overflow="hidden";sa.style.textOverflow="ellipsis";ua=mxResources.get(0==Qa.length?"noResultsFor":"resultsFor",[pa]);sa.setAttribute("title",ua);mxUtils.write(sa,ua);oa.appendChild(sa);null!=Ta&&null==$a&&(Ta.style.backgroundColor="",$a=Ta,Ta=sa);Wa=Qa;W=null;
+D(!1)}mxEvent.consume(ja)}}));mxEvent.addListener(ma,"keyup",mxUtils.bind(this,function(ja){""==ma.value?(ta.setAttribute("src",Editor.magnifyImage),ta.setAttribute("title",mxResources.get("search"))):(ta.setAttribute("src",Editor.crossImage),ta.setAttribute("title",mxResources.get("reset")))}));p+=23;var qa=document.createElement("div");qa.style.cssText="position:absolute;left:30px;width:128px;top:"+p+"px;bottom:68px;margin-top:6px;overflow:auto;border:1px solid #d3d3d3;";mxEvent.addListener(oa,
+"scroll",function(){null!=b.sidebar&&b.sidebar.hideTooltip()});var la=140,Fa=la,wa=null,Ca="url("+Editor.sparklesImage+")",xa=document.createElement("div");xa.className="geGenerateDiagramForm";xa.style.position="absolute";xa.style.width="100%";xa.style.height="100%";var Da=document.createElement("div");Da.className="geTemplatePreview geAdaptiveAsset";Da.style.backgroundImage=Ca;var Aa=document.createElement("textarea");Aa.setAttribute("placeholder",mxResources.get("describeYourDiagram"));Aa.className=
+"geGenerateDiagramDescription";var Ja=document.createElement("button");Ja.className="geBtn gePrimaryBtn geGenerateDiagramButton";Ja.setAttribute("disabled","disabled");Ja.setAttribute("title",mxResources.get("ok"));mxUtils.write(Ja,mxResources.get("ok"));var Ka=N.cloneNode(!0);Ka.style.display="none";var Ga=!1;mxEvent.addGestureListeners(Ka,function(ja){Ga=null!=b.sidebar.tooltip&&"none"!=b.sidebar.tooltip.style.display},null,function(ja){if(!Ga&&null!=za){var pa="<mxfile><diagram>"+Graph.compress(za)+
+"</diagram></mxfile>";A(pa,mxEvent.getClientX(ja),mxEvent.getClientY(ja),wa,va)}});var ya=N.cloneNode(!0);ya.setAttribute("src",Editor.editImage);ya.setAttribute("title",mxResources.get("edit"));ya.style.visibility="hidden";ya.style.left="0px";p=N.cloneNode(!0);p.setAttribute("src",Editor.helpImage);p.setAttribute("title",mxResources.get("help"));mxEvent.addListener(p,"click",function(ja){b.openLink("https://www.drawio.com/blog/write-query-generate-diagram");mxEvent.consume(ja)});xa.appendChild(Aa);
+xa.appendChild(Ja);xa.appendChild(p);xa.style.display="none";mxEvent.addListener(ya,"click",L);mxEvent.addListener(Aa,"input",function(){""!=Aa.value?Ja.removeAttribute("disabled"):Ja.setAttribute("disabled","disabled")});mxEvent.addListener(Ja,"click",function(){n()});mxEvent.addListener(Aa,"keydown",function(ja){13!=ja.keyCode||mxEvent.isShiftDown(ja)?27==ja.keyCode&&(n(!0),mxEvent.consume(ja)):(n(),mxEvent.consume(ja))});var Ma={},Va={},Ua={},fb=0,cb=!0,Ta=null,$a=null;Ma.basic=[{title:"blankDiagram"}];
+var Wa=Ma.basic;Editor.enableChatGpt&&b.isExternalDataComms()&&"draw.io"==b.getServiceName()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&Ma.basic.push({title:"generate",type:"generative"});Editor.enableChatGpt&&b.isExternalDataComms()&&"draw.io"==b.getServiceName()&&"undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled&&(Ma.smartTemplate={content:P()});if(!f){var ab=function(){mxUtils.get(Ra,function(ja){if(!ib){ib=!0;ja=ja.getXml().documentElement.firstChild;for(var pa=
+{};null!=ja;){if("undefined"!==typeof ja.getAttribute)if("parsererror"==ja.nodeName)null!=window.console&&console.log("Parser error in "+H+": "+ja.textContent);else if("clibs"==ja.nodeName){for(var sa=ja.getAttribute("name"),ra=ja.getElementsByTagName("add"),na=[],ua=0;ua<ra.length;ua++)na.push(encodeURIComponent(mxUtils.getTextContent(ra[ua])));null!=sa&&0<na.length&&(pa[sa]=na.join(";"))}else if(na=ja.getAttribute("url"),null!=na){ra=ja.getAttribute("section");sa=ja.getAttribute("subsection");if(null==
+ra&&(ua=na.indexOf("/"),ra=na.substring(0,ua),null==sa)){var Ha=na.indexOf("/",ua+1);-1<Ha&&(sa=na.substring(ua+1,Ha))}ua=Ma[ra];null==ua&&(ua=[],Ma[ra]=ua);na=ja.getAttribute("clibs");null!=pa[na]&&(na=pa[na]);na={url:ja.getAttribute("url"),libs:ja.getAttribute("libs"),title:ja.getAttribute("title"),tooltip:ja.getAttribute("name")||ja.getAttribute("url"),preview:ja.getAttribute("preview"),clibs:na,tags:ja.getAttribute("tags")};ua.push(na);null!=sa&&(ua=Va[ra],null==ua&&(ua={},Va[ra]=ua),ra=ua[sa],
+null==ra&&(ra=[],ua[sa]=ra),ra.push(na))}ja=ja.nextSibling}v.stop();B()}})};F.appendChild(Ba);F.appendChild(qa);F.appendChild(oa);var ib=!1,Ra=H;/^https?:\/\//.test(Ra)&&!b.editor.isCorsEnabledForUrl(Ra)&&(Ra=PROXY_URL+"?url="+encodeURIComponent(Ra));v.spin(oa);null!=u?u(function(ja,pa){Ua=ja;Z=fb=pa;ab()},ab):ab();X=Ma}mxEvent.addListener(K,"keypress",function(ja){b.dialog.container.firstChild==F&&13==ja.keyCode&&R()});u=document.createElement("div");u.style.marginTop=f?"4px":"16px";u.style.textAlign=
+"right";u.style.position="absolute";u.style.left="40px";u.style.bottom="24px";u.style.right="40px";p=mxUtils.button(mxResources.get("cancel"),function(){null!=x&&x();b.hideDialog(!0)});p.className="geBtn";!b.editor.cancelFirst||q&&null==x||u.appendChild(p);f||"1"==urlParams.embed||q||mxClient.IS_ANDROID||mxClient.IS_IOS||"1"==urlParams.noDevice||(f=mxUtils.button(mxResources.get("fromTemplateUrl"),function(){var ja=new FilenameDialog(b,"",mxResources.get("create"),function(pa){null!=pa&&0<pa.length&&
+b.editor.loadUrl(b.editor.getProxiedUrl(pa),function(sa){ha=sa;ka=null;templateRealURl=pa;b.hideDialog();R()},function(sa){b.handleError(sa)})},mxResources.get("url"),null,null,null,!1);b.showDialog(ja.container,300,80,!0,!0);ja.init()}),f.className="geBtn",u.appendChild(f));Graph.fileSupport&&l&&(l=mxUtils.button(mxResources.get("import"),function(){if(null==b.newDlgFileInputElt){var ja=document.createElement("input");ja.setAttribute("multiple","multiple");ja.setAttribute("type","file");mxEvent.addListener(ja,
+"change",function(pa){b.openFiles(ja.files,!0);ja.value=""});ja.style.display="none";document.body.appendChild(ja);b.newDlgFileInputElt=ja}b.newDlgFileInputElt.click()}),l.className="geBtn",u.appendChild(l));u.appendChild(G);b.editor.cancelFirst||null!=d||q&&null==x||u.appendChild(p);F.appendChild(u);this.container=F};NewDialog.tagsList={};
+var SaveDialog=function(b,f,m,d,q,x,C,y){function I(B,F,J,K,k,v){var G=null;if(null==d||0>mxUtils.indexOf(d,B))if(k=null!=k?k:b.getTitleForService(B),0<=mxUtils.indexOf(T,B)||null!=b.getServiceForName(B)){G=document.createElement("option");if("pick"==v)G.innerHTML=mxUtils.htmlEntities(k)+"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(mxResources.get("pickFolder"))+"...",G.setAttribute("value","pickFolder-"+B),G.setAttribute("title",k+" - "+mxResources.get("pickFolder")+"...");else{var N=B+
+(null!=J?"-"+J:""),O=n[N];null!=O&&null!=O.option&&O.option.parentNode.removeChild(O.option);O=null;if(null!=F){"/"==F.charAt(F.length-1)&&(F=F.substring(0,F.length-1));"/"==F.charAt(0)&&(F=F.substring(1));O=F;if(B!=App.MODE_GITHUB&&B==App.MODE_GITLAB){var Q=O.lastIndexOf("/");0<=Q&&(O=O.substring(Q+1))}40<O.length&&(O=O.substring(0,20)+"..."+O.substring(O.length-20))}G.innerHTML=mxUtils.htmlEntities(k)+(null!=O?"&nbsp;&nbsp;&#8211&nbsp;&nbsp;"+mxUtils.htmlEntities(O):"");G.setAttribute("title",k+
+(null!=F?" ("+F+")":"")+(null!=J&&decodeURIComponent(J)!=F?" ["+J+"]":""));G.setAttribute("value",N);n[N]={option:G,mode:B,path:F,id:J};SaveDialog.lastValue==N&&null==y?K=!0:null==K&&("root"==v?K=null==y&&b.mode==B||null!=B&&B==y:"pickFolder-"==P.value.substring(0,11)&&(K=!0));K&&G.setAttribute("selected","selected")}P.appendChild(G)}return G}function M(B){b.pickFolder(B,function(F){var J=null;B==App.MODE_GOOGLE&&null!=F.docs&&0<F.docs.length?J={mode:B,path:F.docs[0].name,id:F.docs[0].id}:B==App.MODE_ONEDRIVE&&
+null!=F.value&&0<F.value.length?J={mode:B,path:F.value[0].name,id:OneDriveFile.prototype.getIdOf(F.value[0])}:(B==App.MODE_GITHUB||B==App.MODE_GITLAB)&&null!=F&&0<F.length&&(J={mode:B,path:decodeURIComponent(F),id:F});null!=J&&(R.style.display="",b.addRecent(J,"Folders",5),F=I(J.mode,J.path,J.id,!0),P.innerHTML="",n={},H(),J=P.selectedIndex,P.value=F.value,0>P.selectedIndex&&(P.selectedIndex=J))},!0,!0,!0,!0)}function H(){var B=b.getRecent("Folders"),F=0;if(null!=B&&0<B.length){for(var J=0;J<B.length;J++)null!=
+I(B[J].mode,B[J].path,B[J].id)&&F++;0<F&&P.appendChild(L.cloneNode(!0))}I(App.MODE_GOOGLE,mxResources.get("myDrive"),"root",null,null,"root");I(App.MODE_GOOGLE,null,null,null,null,"pick");null!=b.oneDrive&&(I(App.MODE_ONEDRIVE,mxResources.get("myFiles"),OneDriveFile.prototype.getIdOf(b.oneDrive.rootId),null,null,"root"),I(App.MODE_ONEDRIVE,null,null,null,null,"pick"));null!=b.dropbox&&I(App.MODE_DROPBOX,"Apps"+b.dropbox.appPath);I(App.MODE_GITHUB,null,null,null,null,"pick");I(App.MODE_GITLAB,null,
+null,null,null,"pick");I(App.MODE_TRELLO);B=!Editor.useLocalStorage||"device"==urlParams.storage||null!=b.getCurrentFile()&&"1"!=urlParams.noDevice;EditorUi.nativeFileSupport&&B&&I(App.MODE_DEVICE,null,null,b.mode==App.MODE_DEVICE||null!=d&&0<=mxUtils.indexOf(d,App.MODE_BROWSER)?!0:null);isLocalStorage&&"0"!=urlParams.browser&&I(App.MODE_BROWSER);B&&I("download");Editor.popupsAllowed&&I("_blank",null,null,null,mxResources.get("openInNewWindow"));0<F&&(P.appendChild(L.cloneNode(!0)),F=P.value,P.appendChild(R),
+P.value=F);if("pickFolder-"==P.value.substring(0,11)||"reset"==P.value)F=document.createElement("option"),F.setAttribute("value",""),F.setAttribute("selected","selected"),mxUtils.write(F,mxResources.get("pickFolder")+"..."),P.insertBefore(F,P.firstChild);U=P.value}function c(){if("reset"==P.value)b.resetRecent("Folders"),P.innerHTML="",P.value="",pickFolderOption=null,n={},H();else if("pickFolder-"==P.value.substring(0,11)){var B=P.value.substring(11);P.value=U;M(B)}else if(null!=A&&null!=n[P.value]&&
+null!=b.editor.diagramFileTypes&&"drawio"==b.editor.diagramFileTypes[A.value].extension){B=b.getExtensionForService(n[P.value].mode);var F=D.value;null!=B&&0>f.indexOf(".")&&0>F.indexOf(".")&&(D.value=F+B)}t.innerHTML="";mxUtils.write(t,mxResources.get("download"==P.value||"_blank"==P.value?"ok":"save"));""==P.value?t.setAttribute("disabled","disabled"):t.removeAttribute("disabled")}var e=document.createElement("div");e.style.display="flex";e.style.flexWrap="wrap";e.style.whiteSpace="nowrap";var g=
+document.createElement("div");g.style.display="grid";g.style.gap="5px 8px";g.style.gridAutoRows="auto auto 44px";g.style.gridAutoColumns="0fr minmax(0,1fr)";g.style.width="100%";var l=null,p=null;if(null!=q&&null!=x&&"image/"==x.substring(0,6)&&("image/svg"!=x.substring(0,9)||mxClient.IS_SVG)){g.style.display="inline-grid";g.style.flexBasis="75%";l=document.createElement("div");l.style.display="inline-block";l.style.height="auto";l.style.maxWidth="25%";l.style.margin="auto";var u=document.createElement("img"),
+z=C?q:btoa(unescape(encodeURIComponent(q)));u.setAttribute("src","data:"+x+";base64,"+z);u.style.boxSizing="border-box";u.style.maxHeight="50px";u.style.maxWidth="100%";u.style.paddingLeft="10px";l.appendChild(u);mxClient.IS_FF||"image/png"!=x||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||(p=mxUtils.button(mxResources.get("copy"),function(){var B=b.base64ToBlob(z,"image/png");B=new ClipboardItem({"image/png":B,"text/html":new Blob(['<img src="data:'+x+";base64,"+z+'">'],{type:"text/html"})});
+navigator.clipboard.write([B]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(F){b.handleError(F)}))},null,"geBtn"));Editor.popupsAllowed&&(null==d||0>mxUtils.indexOf(d,"_blank"))?(l.setAttribute("title",mxResources.get("openInNewWindow")),l.style.cursor="pointer",mxEvent.addGestureListeners(l,null,null,function(B){mxEvent.isPopupTrigger(B)||b.openInNewWindow(q,x,C)})):l.setAttribute("title",mxResources.get("preview"))}u=document.createElement("div");
+u.style.display="flex";u.style.padding="1px";u.style.alignItems="center";u.style.justifyContent="flex-end";u.style.gridColumn="1";u.style.whiteSpace="nowrap";var E=document.createElement("div");E.style.display="grid";E.style.padding="1px";E.style.alignItems="center";E.style.gridColumn="2";E.style.gridAutoColumns="minmax(0,1fr) auto";E.style.gap="6px";mxUtils.write(u,mxResources.get("saveAs")+":");var D=document.createElement("input");D.setAttribute("type","text");D.setAttribute("value",f);D.style.boxSizing=
+"border-box";D.style.width="100%";E.appendChild(D);g.appendChild(u);g.appendChild(E);var A=null;null!=b.editor.diagramFileTypes&&null==x&&(u=u.cloneNode(!1),E=E.cloneNode(!1),mxUtils.write(u,mxResources.get("type")+":"),A=FilenameDialog.createFileTypes(b,D,b.editor.diagramFileTypes),A.style.boxSizing="border-box",A.style.width="100%",E.appendChild(A),g.appendChild(u),g.appendChild(E));u=u.cloneNode(!1);E=E.cloneNode(!1);mxUtils.write(u,mxResources.get("where")+":");var P=document.createElement("select");
+P.style.textOverflow="ellipsis";P.style.gridColumn="1";var R=document.createElement("option");mxUtils.write(R,mxResources.get("reset"));R.setAttribute("value","reset");var T=["browser","device","download","_blank"],L=document.createElement("option");L.setAttribute("disabled","disabled");L.innerHTML="-----------------";var U=null,n={},t=mxUtils.button(mxResources.get("save"),function(){SaveDialog.lastValue=P.value;var B=n[SaveDialog.lastValue];null!=B&&m(D,B.mode,B.id)},null,"geBtn gePrimaryBtn");
+mxEvent.addListener(D,"keypress",function(B){13==B.keyCode&&t.click()});mxEvent.addListener(P,"change",c);H();c();E.appendChild(P);null!=SaveDialog.lastValue&&null!=n[SaveDialog.lastValue]&&(P.value=SaveDialog.lastValue);g.appendChild(u);g.appendChild(E);e.appendChild(g);null!=l&&e.appendChild(l);g=document.createElement("div");g.style.flexBasis="100%";g.style.textAlign="right";g.style.marginTop=null!=x?"16px":"8px";b.isOffline()&&!mxClient.IS_CHROMEAPP||g.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/save-file-formats"));
+l=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()},null,"geBtn");b.editor.cancelFirst&&g.appendChild(l);null!=p&&g.appendChild(p);g.appendChild(t);b.editor.cancelFirst||g.appendChild(l);e.appendChild(g);this.init=function(){Editor.selectFilename(D)};this.container=e},CreateDialog=function(b,f,m,d,q,x,C,y,I,M,H,c,e,g,l,p,u){function z(U,n,t,B){function F(){mxEvent.addListener(J,"click",function(){var N=t;if(C){var O=A.value,Q=O.lastIndexOf(".");if(0>f.lastIndexOf(".")&&0>Q){N=null!=
+N?N:L.value;var S="";N==App.MODE_GOOGLE?S=b.drive.extension:N==App.MODE_GITHUB?S=b.gitHub.extension:N==App.MODE_GITLAB?S=b.gitLab.extension:N==App.MODE_TRELLO?S=b.trello.extension:N==App.MODE_DROPBOX?S=b.dropbox.extension:N==App.MODE_ONEDRIVE?S=b.oneDrive.extension:N==App.MODE_DEVICE&&(S=".drawio");0<=Q&&(O=O.substring(0,Q));A.value=O+S}}E(t)})}var J=document.createElement("a");J.style.overflow="hidden";var K=document.createElement("img");K.src=U;K.setAttribute("border","0");K.setAttribute("align",
+"absmiddle");K.style.width="60px";K.style.height="60px";K.style.paddingBottom="6px";J.style.display="inline-block";J.className="geBaseButton";J.style.position="relative";J.style.margin="4px";J.style.padding="8px 8px 10px 8px";J.style.whiteSpace="nowrap";J.appendChild(K);J.style.color="gray";J.style.fontSize="11px";var k=document.createElement("div");J.appendChild(k);mxUtils.write(k,n);if(null!=B&&null==b[B]){K.style.visibility="hidden";mxUtils.setOpacity(k,10);var v=new Spinner({lines:12,length:12,
+width:5,radius:10,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"40%",zIndex:2E9});v.spin(J);var G=window.setTimeout(function(){null==b[B]&&(v.stop(),J.style.display="none")},3E4);b.addListener("clientLoaded",mxUtils.bind(this,function(){null!=b[B]&&(window.clearTimeout(G),mxUtils.setOpacity(k,100),K.style.visibility="",v.stop(),F())}))}else F();R.appendChild(J);++T==c&&(mxUtils.br(R),T=0)}function E(U){var n=A.value;if(null==U||null!=n&&0<n.length)u&&b.hideDialog(),
+m(n,U,A)}H="1"==urlParams.noDevice?!1:H;C=null!=C?C:!0;y=null!=y?y:!0;c=null!=c?c:4;u=null!=u?u:!0;x=document.createElement("div");x.style.whiteSpace="nowrap";null==d&&b.addLanguageMenu(x);var D=document.createElement("h2");mxUtils.write(D,q||mxResources.get("create"));D.style.marginTop="0px";D.style.marginBottom="24px";x.appendChild(D);q=document.createElement("span");mxUtils.write(q,mxResources.get("filename")+":");q.style.maxWidth="106px";q.style.overflow="hidden";q.style.textOverflow="ellipsis";
+q.style.display="inline-block";x.appendChild(q);var A=document.createElement("input");A.setAttribute("value",f);A.style.width="180px";A.style.marginLeft="10px";A.style.marginBottom="20px";A.style.maxWidth="70%";this.init=function(){Editor.selectFilename(A)};x.appendChild(A);null!=p&&null!=b.editor.diagramFileTypes&&(p=FilenameDialog.createFileTypes(b,A,b.editor.diagramFileTypes),p.style.marginLeft="6px",p.style.width="90px",x.appendChild(p));p=null;if("1"!=urlParams.noDevice&&null!=e&&null!=g&&"image/"==
+g.substring(0,6)&&("image/svg"!=g.substring(0,9)||mxClient.IS_SVG)){A.style.width="160px";q=document.createElement("img");var P=l?e:btoa(unescape(encodeURIComponent(e)));q.setAttribute("src","data:"+g+";base64,"+P);q.style.position="absolute";q.style.top="70px";q.style.right="100px";q.style.maxWidth="120px";q.style.maxHeight="80px";mxUtils.setPrefixedStyle(q.style,"transform","translate(50%,-50%)");x.appendChild(q);mxClient.IS_FF||"image/png"!=g||null==navigator.clipboard||"function"!==typeof window.ClipboardItem||
+(p=mxUtils.button(mxResources.get("copy"),function(U){U=b.base64ToBlob(P,"image/png");U=new ClipboardItem({"image/png":U,"text/html":new Blob(['<img src="data:'+g+";base64,"+P+'">'],{type:"text/html"})});navigator.clipboard.write([U]).then(mxUtils.bind(this,function(){b.alert(mxResources.get("copiedToClipboard"))}))["catch"](mxUtils.bind(this,function(n){b.handleError(n)}))}),p.style.marginTop="6px",p.className="geBtn");I&&Editor.popupsAllowed&&(q.style.cursor="pointer",mxEvent.addGestureListeners(q,
+null,null,function(U){mxEvent.isPopupTrigger(U)||E("_blank")}))}mxUtils.br(x);var R=document.createElement("div");R.style.textAlign="center";var T=0;R.style.marginTop="6px";x.appendChild(R);var L=document.createElement("select");L.style.marginLeft="10px";b.isOfflineApp()||b.isOffline()||("function"===typeof window.DriveClient&&(e=document.createElement("option"),e.setAttribute("value",App.MODE_GOOGLE),mxUtils.write(e,mxResources.get("googleDrive")),L.appendChild(e),z(IMAGE_PATH+"/google-drive-logo.svg",
+mxResources.get("googleDrive"),App.MODE_GOOGLE,"drive")),"function"===typeof window.OneDriveClient&&(e=document.createElement("option"),e.setAttribute("value",App.MODE_ONEDRIVE),mxUtils.write(e,mxResources.get("oneDrive")),L.appendChild(e),b.mode==App.MODE_ONEDRIVE&&e.setAttribute("selected","selected"),z(IMAGE_PATH+"/onedrive-logo.svg",mxResources.get("oneDrive"),App.MODE_ONEDRIVE,"oneDrive")),"function"===typeof window.DropboxClient&&(e=document.createElement("option"),e.setAttribute("value",App.MODE_DROPBOX),
+mxUtils.write(e,mxResources.get("dropbox")),L.appendChild(e),b.mode==App.MODE_DROPBOX&&e.setAttribute("selected","selected"),z(IMAGE_PATH+"/dropbox-logo.svg",mxResources.get("dropbox"),App.MODE_DROPBOX,"dropbox")),null!=b.gitHub&&(e=document.createElement("option"),e.setAttribute("value",App.MODE_GITHUB),mxUtils.write(e,mxResources.get("github")),L.appendChild(e),z(IMAGE_PATH+"/github-logo.svg",mxResources.get("github"),App.MODE_GITHUB,"gitHub")),null!=b.gitLab&&(e=document.createElement("option"),
+e.setAttribute("value",App.MODE_GITLAB),mxUtils.write(e,mxResources.get("gitlab")),L.appendChild(e),z(IMAGE_PATH+"/gitlab-logo.svg",mxResources.get("gitlab"),App.MODE_GITLAB,"gitLab")),"function"===typeof window.TrelloClient&&(e=document.createElement("option"),e.setAttribute("value",App.MODE_TRELLO),mxUtils.write(e,mxResources.get("trello")),L.appendChild(e),z(IMAGE_PATH+"/trello-logo.svg",mxResources.get("trello"),App.MODE_TRELLO,"trello")));if(!Editor.useLocalStorage||"device"==urlParams.storage||
+null!=b.getCurrentFile()&&"1"!=urlParams.noDevice)e=document.createElement("option"),e.setAttribute("value",App.MODE_DEVICE),mxUtils.write(e,mxResources.get("device")),L.appendChild(e),b.mode!=App.MODE_DEVICE&&y||e.setAttribute("selected","selected"),H&&z(IMAGE_PATH+"/osa_drive-harddisk.png",mxResources.get("device"),App.MODE_DEVICE);y&&isLocalStorage&&"0"!=urlParams.browser&&(y=document.createElement("option"),y.setAttribute("value",App.MODE_BROWSER),mxUtils.write(y,mxResources.get("browser")),L.appendChild(y),
+b.mode==App.MODE_BROWSER&&y.setAttribute("selected","selected"),z(IMAGE_PATH+"/osa_database.png",mxResources.get("browser"),App.MODE_BROWSER));y=document.createElement("div");y.style.marginTop="26px";y.style.textAlign="center";null!=M&&(H=mxUtils.button(mxResources.get("help"),function(){b.openLink(M)}),H.className="geBtn",y.appendChild(H));H=mxUtils.button(mxResources.get(null!=d?"close":"cancel"),function(){null!=d?d():(b.fileLoaded(null),b.hideDialog(),window.close(),window.location.href=b.getUrl())});
+H.className="geBtn";b.editor.cancelFirst&&null==d&&y.appendChild(H);null==d&&(e=mxUtils.button(mxResources.get("decideLater"),function(){E(null)}),e.className="geBtn",y.appendChild(e));I&&Editor.popupsAllowed&&(I=mxUtils.button(mxResources.get("openInNewWindow"),function(){E("_blank")}),I.className="geBtn",y.appendChild(I));CreateDialog.showDownloadButton&&(I=mxUtils.button(mxResources.get("download"),function(){E("download")}),I.className="geBtn",y.appendChild(I),null!=p&&(I.style.marginTop="6px",
+y.style.marginTop="6px"));null!=p&&(mxUtils.br(y),y.appendChild(p));b.editor.cancelFirst&&null==d||y.appendChild(H);mxEvent.addListener(A,"keypress",function(U){13==U.keyCode?E(App.MODE_DEVICE):27==U.keyCode&&(b.fileLoaded(null),b.hideDialog(),window.close())});x.appendChild(y);this.container=x};CreateDialog.showDownloadButton="1"!=urlParams.noDevice;
+var PopupDialog=function(b,f,m,d,q){q=null!=q?q:!0;var x=document.createElement("div");x.style.textAlign="center";x.style.height="100%";mxUtils.write(x,mxResources.get("fileOpenLocation"));mxUtils.br(x);mxUtils.br(x);var C=mxUtils.button(mxResources.get("openInThisWindow"),function(){q&&b.hideDialog();null!=d&&d()});C.className="geBtn";C.style.marginBottom="8px";C.style.width="280px";x.appendChild(C);mxUtils.br(x);var y=mxUtils.button(mxResources.get("openInNewWindow"),function(){q&&b.hideDialog();
+null!=m&&m();b.openLink(f,null,!0)});y.className="geBtn gePrimaryBtn";y.style.width=C.style.width;x.appendChild(y);mxUtils.br(x);mxUtils.br(x);mxUtils.write(x,mxResources.get("allowPopups"));this.container=x},ImageDialog=function(b,f,m,d,q,x,C,y){function I(){0<c.value.length?E.removeAttribute("disabled"):E.setAttribute("disabled","disabled");"data:"!=c.value.substring(0,5)?D.removeAttribute("disabled"):D.setAttribute("disabled","disabled")}x=null!=x?x:!0;var M=b.editor.graph,H=document.createElement("div");
+mxUtils.write(H,f);f=document.createElement("div");f.className="geTitle";f.style.backgroundColor="transparent";f.style.borderColor="transparent";f.style.whiteSpace="nowrap";f.style.textOverflow="clip";f.style.cursor="default";f.style.paddingRight="20px";var c=document.createElement("input");c.setAttribute("value",m);c.setAttribute("type","text");c.setAttribute("spellcheck","false");c.setAttribute("autocorrect","off");c.setAttribute("autocomplete","off");c.setAttribute("autocapitalize","off");c.style.marginTop=
"6px";c.style.width=(Graph.fileSupport?460:340)-20+"px";c.style.backgroundImage="url('"+Editor.crossImage+"')";c.style.backgroundRepeat="no-repeat";c.style.backgroundPosition="100% 50%";c.style.paddingRight="14px";m=document.createElement("div");m.setAttribute("title",mxResources.get("reset"));m.style.position="relative";m.style.left="-16px";m.style.width="12px";m.style.height="14px";m.style.cursor="pointer";m.style.display="inline-block";m.style.top="3px";m.style.background="url('"+b.editor.transparentImage+
-"')";mxEvent.addListener(m,"click",function(){c.value="";c.focus()});f.appendChild(c);f.appendChild(m);I.appendChild(f);var e=B,g,l,n=function(A,Q,S,U){var O="data:"==A.substring(0,5);!b.isOffline()||O&&"undefined"===typeof chrome?0<A.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(A,function(p){b.spinner.stop();b.hideDialog();var q=!1===U?1:null!=Q&&null!=S?Math.max(Q/p.width,S/p.height):Math.min(1,Math.min(520/p.width,520/p.height));x&&(A=b.convertDataUri(A));d(A,
-Math.round(Number(p.width)*q),Math.round(Number(p.height)*q),e,g,l)},function(){b.spinner.stop();d(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),d(A,null,null,e,g,l)):(A=b.convertDataUri(A),Q=null==Q?120:Q,S=null==S?100:S,b.hideDialog(),d(A,Q,S,e,g,l))},u=function(A,Q){if(null!=A){var S=t?null:N.getModel().getGeometry(N.getSelectionCell());null!=S?n(A,S.width,S.height,Q):n(A,null,null,Q)}else b.hideDialog(),d(null)};this.init=function(){c.focus();
-if(Graph.fileSupport){c.setAttribute("placeholder",mxResources.get("dragImagesHere"));var A=I.parentNode,Q=null;mxEvent.addListener(A,"dragleave",function(S){null!=Q&&(Q.parentNode.removeChild(Q),Q=null);S.stopPropagation();S.preventDefault()});mxEvent.addListener(A,"dragover",mxUtils.bind(this,function(S){null==Q&&(!mxClient.IS_IE||10<document.documentMode)&&(Q=b.highlightElement(A));S.stopPropagation();S.preventDefault()}));mxEvent.addListener(A,"drop",mxUtils.bind(this,function(S){null!=Q&&(Q.parentNode.removeChild(Q),
-Q=null);if(0<S.dataTransfer.files.length)b.importFiles(S.dataTransfer.files,0,0,b.maxImageSize,function(O,p,q,G,E,H,L,K){u(O,K)},function(){},function(O){return"image/"==O.type.substring(0,6)},function(O){for(var p=0;p<O.length;p++)O[p]()},!mxEvent.isControlDown(S),null,null,!0);else if(0<=mxUtils.indexOf(S.dataTransfer.types,"text/uri-list")){var U=S.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)($|\?)/i.test(U)&&u(decodeURIComponent(U))}S.stopPropagation();S.preventDefault()}),
-!1)}};B=document.createElement("div");B.style.marginTop="14px";B.style.textAlign="center";m=mxUtils.button(mxResources.get("cancel"),function(){b.spinner.stop();b.hideDialog()});m.className="geBtn";b.editor.cancelFirst&&B.appendChild(m);ImageDialog.filePicked=function(A){A.action==google.picker.Action.PICKED&&null!=A.docs[0].thumbnails&&(A=A.docs[0].thumbnails[A.docs[0].thumbnails.length-1],null!=A&&(c.value=A.url));c.focus()};if(Graph.fileSupport){if(null==b.imgDlgFileInputElt){var z=document.createElement("input");
-z.setAttribute("multiple","multiple");z.setAttribute("type","file");mxEvent.addListener(z,"change",function(A){null!=z.files&&(b.importFiles(z.files,0,0,b.maxImageSize,function(Q,S,U,O,p,q){u(Q)},function(){},function(Q){return"image/"==Q.type.substring(0,6)},function(Q){for(var S=0;S<Q.length;S++)Q[S]()},!0),z.type="",z.type="file",z.value="")});z.style.display="none";document.body.appendChild(z);b.imgDlgFileInputElt=z}f=mxUtils.button(mxResources.get("open"),function(){b.imgDlgFileInputElt.click()});
-f.className="geBtn";B.appendChild(f)}mxEvent.addListener(c,"keypress",function(A){13==A.keyCode&&u(c.value)});var D=mxUtils.button(mxResources.get("crop"),function(){var A=new CropImageDialog(b,c.value,e,function(Q,S,U){e=Q;g=S;l=U});b.showDialog(A.container,300,390,!0,!0)});v&&(D.className="geBtn",B.appendChild(D));var C=mxUtils.button(mxResources.get("embed"),function(){if("data:"!=c.value.substring(0,5)&&b.spinner.spin(document.body,mxResources.get("loading"))){var A=b.editor.createImageUrlConverter().convert(c.value),
-Q=new Image;Q.onload=function(){b.editor.convertImageToDataUri(A,function(S){b.confirmImageResize(function(U){b.resizeImage(Q,S,mxUtils.bind(this,function(O,p,q){b.spinner.stop();null!=O&&O.length<b.maxImageBytes?(c.value=O,J()):b.handleError({message:mxResources.get("imageTooBig")})}),U,b.maxImageSize)},Q.width>b.maxImageSize||Q.height>b.maxImageSize||S.length>b.maxImageBytes)},mxUtils.bind(this,function(){b.handleError({message:mxResources.get("fileNotFound")})}))};Q.onerror=function(){b.spinner.stop();
-b.handleError({message:mxResources.get("fileNotFound")})};Q.src=A}});C.className="geBtn";mxEvent.addListener(c,"change",function(A){e=null;J()});J();B.appendChild(C);v=mxUtils.button(mxResources.get("apply"),function(){u(c.value)});v.className="geBtn gePrimaryBtn";B.appendChild(v);b.editor.cancelFirst||B.appendChild(m);Graph.fileSupport&&(B.style.marginTop="120px",I.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",I.style.backgroundPosition="center 65%",I.style.backgroundRepeat="no-repeat",
-v=document.createElement("div"),v.style.position="absolute",v.style.width="420px",v.style.top="58%",v.style.textAlign="center",v.style.fontSize="18px",v.style.color="#a0c3ff",mxUtils.write(v,mxResources.get("dragImagesHere")),I.appendChild(v));I.appendChild(B);this.container=I},LinkDialog=function(b,f,m,d,t,x,v){function B(A,Q){var S=document.createElement("option");mxUtils.write(S,mxResources.get(A));S.value=A;D.appendChild(S);C[A]=Q}var J=document.createElement("div");J.style.height="100%";mxUtils.write(J,
-mxResources.get("editLink")+":");var N=document.createElement("div");N.className="geUrlLinkContainer";N.style.backgroundColor="transparent";N.style.borderColor="transparent";N.style.whiteSpace="nowrap";N.style.textOverflow="clip";N.style.cursor="default";var I=document.createElement("input");I.setAttribute("placeholder",mxResources.get("dragUrlsHere"));I.setAttribute("type","text");I.style.marginTop="6px";I.style.width="414px";I.style.boxSizing="border-box";I.style.backgroundRepeat="no-repeat";I.style.backgroundPosition=
-"100% 50%";I.style.paddingRight="16px";I.style.marginBottom="4px";var c=document.createElement("div");c.setAttribute("title",mxResources.get("reset"));c.style.backgroundImage="url("+Editor.crossImage+")";c.className="geAdaptiveAsset";c.style.display="inline-block";c.style.position="relative";c.style.top="3px";c.style.left="-16px";c.style.width="12px";c.style.height="14px";c.style.cursor="pointer";mxEvent.addListener(c,"click",function(){I.value="";I.focus()});var e=document.createElement("input");
-e.style.cssText="margin-right:8px;margin-bottom:8px;";e.setAttribute("value","url");e.setAttribute("type","radio");e.setAttribute("name","geLinkDialogOption");var g=document.createElement("input");g.style.cssText="margin-right:8px;margin-bottom:8px;";g.setAttribute("value","url");g.setAttribute("type","radio");g.setAttribute("name","geLinkDialogOption");var l=document.createElement("select");l.style.width="414px";var n=document.createElement("input");n.setAttribute("type","checkbox");n.style.margin=
-"0 6p 0 6px";null!=v&&(n.setAttribute("checked","checked"),n.defaultChecked=!0);v=null!=v?v:"_blank";n.setAttribute("title",v);x&&(I.style.width="200px");if(t&&null!=b.pages){null!=f&&Graph.isPageLink(f)?(g.setAttribute("checked","checked"),g.defaultChecked=!0):(I.setAttribute("value",f),e.setAttribute("checked","checked"),e.defaultChecked=!0);N.appendChild(e);N.appendChild(I);N.appendChild(c);x&&(N.appendChild(n),mxUtils.write(N,mxResources.get("openInNewWindow")));mxUtils.br(N);N.appendChild(g);
-t=!1;for(x=0;x<b.pages.length;x++)c=document.createElement("option"),mxUtils.write(c,b.pages[x].getName()||mxResources.get("pageWithNumber",[x+1])),c.setAttribute("value","data:page/id,"+b.pages[x].getId()),f==c.getAttribute("value")&&(c.setAttribute("selected","selected"),t=!0),l.appendChild(c);if(!t&&g.checked){var u=document.createElement("option");mxUtils.write(u,mxResources.get("pageNotFound"));u.setAttribute("disabled","disabled");u.setAttribute("selected","selected");u.setAttribute("value",
-"pageNotFound");l.appendChild(u);mxEvent.addListener(l,"change",function(){null==u.parentNode||u.selected||u.parentNode.removeChild(u)})}N.appendChild(l)}else I.setAttribute("value",f),N.appendChild(I),N.appendChild(c);J.appendChild(N);var z=mxUtils.button(m,function(){b.hideDialog();d(g.checked?"pageNotFound"!==l.value?l.value:f:I.value,LinkDialog.selectedDocs,n.checked?v:null)});z.style.verticalAlign="middle";z.className="geBtn gePrimaryBtn";this.init=function(){g.checked?l.focus():(I.focus(),mxClient.IS_GC||
-mxClient.IS_FF||5<=document.documentMode?I.select():document.execCommand("selectAll",!1,null));mxEvent.addListener(l,"focus",function(){e.removeAttribute("checked");g.setAttribute("checked","checked");g.checked=!0});mxEvent.addListener(I,"focus",function(){g.removeAttribute("checked");e.setAttribute("checked","checked");e.checked=!0});if(Graph.fileSupport){var A=J.parentNode,Q=null;mxEvent.addListener(A,"dragleave",function(S){null!=Q&&(Q.parentNode.removeChild(Q),Q=null);S.stopPropagation();S.preventDefault()});
-mxEvent.addListener(A,"dragover",mxUtils.bind(this,function(S){null==Q&&(!mxClient.IS_IE||10<document.documentMode)&&(Q=b.highlightElement(A));S.stopPropagation();S.preventDefault()}));mxEvent.addListener(A,"drop",mxUtils.bind(this,function(S){try{null!=Q&&(Q.parentNode.removeChild(Q),Q=null),0<=mxUtils.indexOf(S.dataTransfer.types,"text/uri-list")&&(I.value=decodeURIComponent(S.dataTransfer.getData("text/uri-list")),e.setAttribute("checked","checked"),e.checked=!0,z.click())}catch(U){b.handleError(U)}S.stopPropagation();
-S.preventDefault()}),!1)}};m=document.createElement("div");m.style.marginTop="16px";m.style.textAlign="right";b.isOffline()||m.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/custom-links"));N=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});N.style.verticalAlign="middle";N.className="geBtn";b.editor.cancelFirst&&m.appendChild(N);LinkDialog.selectedDocs=null;LinkDialog.filePicked=function(A){if(A.action==google.picker.Action.PICKED){LinkDialog.selectedDocs=A.docs;
-var Q=A.docs[0].url;"application/mxe"==A.docs[0].mimeType||null!=A.docs[0].mimeType&&"application/vnd.jgraph."==A.docs[0].mimeType.substring(0,23)?Q="https://www.draw.io/#G"+A.docs[0].id:"application/vnd.google-apps.folder"==A.docs[0].mimeType&&(Q="https://drive.google.com/#folders/"+A.docs[0].id);I.value=Q;I.focus()}else LinkDialog.selectedDocs=null;I.focus()};var D=document.createElement("select");D.className="geBtn";D.style.position="relative";D.style.top="1px";D.style.maxWidth="120px";var C={};
-t=document.createElement("option");mxUtils.write(t,mxResources.get("select")+"...");t.value="";D.appendChild(t);"undefined"!=typeof google&&"undefined"!=typeof google.picker&&null!=b.drive&&B("googleDrive",function(){b.spinner.spin(document.body,mxResources.get("authorizing"))&&b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();if(null==b.linkPicker){var A=b.drive.createLinkPicker();b.linkPicker=A.setCallback(function(Q){LinkDialog.filePicked(Q)}).build()}b.linkPicker.setVisible(!0)}))});
-"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&B("dropbox",function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(A){I.value=A[0].link;I.focus()}})});null!=b.oneDrive&&B("oneDrive",function(){b.oneDrive.pickFile(function(A,Q){null!=Q&&null!=Q.value&&0<Q.value.length&&(I.value=Q.value[0].webUrl,I.focus())},!0)});null!=b.gitHub&&B("github",function(){b.gitHub.pickFile(function(A){if(null!=A){A=A.split("/");var Q=A[0],S=A[1],U=A[2];A=A.slice(3,A.length).join("/");
-I.value="https://github.com/"+Q+"/"+S+"/blob/"+U+"/"+A;I.focus()}})});null!=b.gitLab&&B("gitlab",function(){b.gitLab.pickFile(function(A){if(null!=A){A=A.split("/");var Q=A[0],S=A[1],U=A[2];A=A.slice(3,A.length).join("/");I.value=DRAWIO_GITLAB_URL+"/"+Q+"/"+S+"/blob/"+U+"/"+A;I.focus()}})});1<D.children.length&&(m.appendChild(D),mxEvent.addListener(D,"change",function(A){null!=C[D.value]&&(C[D.value](),D.value="")}));mxEvent.addListener(I,"keypress",function(A){13==A.keyCode&&z.click()});m.appendChild(z);
-b.editor.cancelFirst||m.appendChild(N);J.appendChild(m);this.container=J},FeedbackDialog=function(b,f,m,d){var t=document.createElement("div"),x=document.createElement("div");mxUtils.write(x,mxResources.get("sendYourFeedback"));x.style.fontSize="18px";x.style.marginBottom="18px";t.appendChild(x);x=document.createElement("div");mxUtils.write(x,mxResources.get("yourEmailAddress")+(m?"":" ("+mxResources.get("required")+")"));t.appendChild(x);var v=document.createElement("input");v.setAttribute("type",
-"text");v.style.marginTop="6px";v.style.width="600px";var B=mxUtils.button(mxResources.get("sendMessage"),function(){var c=I.value+(N.checked?"\nDiagram:\n"+(null!=d?d:mxUtils.getXml(b.getXmlFileData())):"")+"\nuserAgent:\n"+navigator.userAgent+"\nappVersion:\n"+navigator.appVersion+"\nappName:\n"+navigator.appName+"\nplatform:\n"+navigator.platform;c.length>FeedbackDialog.maxAttachmentSize?b.alert(mxResources.get("drawingTooLarge")):(b.hideDialog(),b.spinner.spin(document.body)&&mxUtils.post(null!=
-FeedbackDialog.feedbackUrl?FeedbackDialog.feedbackUrl:"/email","email="+encodeURIComponent(v.value)+"&version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&body="+encodeURIComponent((null!=f?f:"Feedback")+":\n"+c),function(e){b.spinner.stop();200<=e.getStatus()&&299>=e.getStatus()?b.alert(mxResources.get("feedbackSent")):b.alert(mxResources.get("errorSendingFeedback"))},function(){b.spinner.stop();b.alert(mxResources.get("errorSendingFeedback"))}))});B.className=
-"geBtn gePrimaryBtn";if(!m){B.setAttribute("disabled","disabled");var J=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;mxEvent.addListener(v,"change",function(){0<v.value.length&&0<J.test(v.value)?B.removeAttribute("disabled"):B.setAttribute("disabled","disabled")});mxEvent.addListener(v,"keyup",function(){0<v.value.length&&J.test(v.value)?B.removeAttribute("disabled"):B.setAttribute("disabled",
-"disabled")})}t.appendChild(v);this.init=function(){v.focus()};var N=document.createElement("input");N.setAttribute("type","checkbox");N.setAttribute("checked","checked");N.defaultChecked=!0;m=document.createElement("p");m.style.marginTop="14px";m.appendChild(N);x=document.createElement("span");mxUtils.write(x," "+mxResources.get("includeCopyOfMyDiagram"));m.appendChild(x);mxEvent.addListener(x,"click",function(c){N.checked=!N.checked;mxEvent.consume(c)});t.appendChild(m);x=document.createElement("div");
-mxUtils.write(x,mxResources.get("feedback"));t.appendChild(x);var I=document.createElement("textarea");I.style.resize="none";I.style.width="600px";I.style.height="140px";I.style.marginTop="6px";I.setAttribute("placeholder",mxResources.get("comments"));t.appendChild(I);m=document.createElement("div");m.style.marginTop="26px";m.style.textAlign="right";x=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});x.className="geBtn";b.editor.cancelFirst?(m.appendChild(x),m.appendChild(B)):(m.appendChild(B),
-m.appendChild(x));t.appendChild(m);this.container=t};FeedbackDialog.maxAttachmentSize=1E6;
-var RevisionDialog=function(b,f,m){var d=document.createElement("div"),t=document.createElement("h3");t.style.marginTop="3px";mxUtils.write(t,mxResources.get("revisionHistory"));d.appendChild(t);t=document.createElement("div");t.style.position="absolute";t.style.overflow="auto";t.style.width="170px";t.style.height="378px";d.appendChild(t);var x=document.createElement("div");x.style.position="absolute";x.style.left="200px";x.style.width="470px";x.style.height="376px";x.style.overflow="hidden";x.style.borderWidth=
-"1px";x.style.borderStyle="solid";var v=document.createElement("div");v.style.position="absolute";v.style.display="none";v.style.textAlign="center";v.style.padding="8px";v.style.borderRadius="8px";v.style.left="50%";v.style.top="50%";v.style.whiteSpace="nowrap";v.style.transform="translate(-50%, -50%)";v.style.background="inherit";v.style.border="1px solid";x.appendChild(v);mxEvent.disableContextMenu(x);d.appendChild(x);var B=new Graph(x);B.setTooltips(!1);B.setEnabled(!1);B.setPanning(!0);B.panningHandler.ignoreCell=
-!0;B.panningHandler.useLeftButtonForPanning=!0;B.minFitScale=null;B.maxFitScale=null;B.centerZoom=!0;var J=0,N=null,I=0,c=B.getGlobalVariable;B.getGlobalVariable=function(X){return"page"==X&&null!=N&&null!=N[I]?N[I].getAttribute("name"):"pagenumber"==X?I+1:"pagecount"==X?null!=N?N.length:1:c.apply(this,arguments)};B.getLinkForCell=function(){return null};for(var e=new Spinner({lines:11,length:15,width:6,radius:10,corners:1,rotate:0,direction:1,color:"light-dark(#000000, #C0C0C0)",speed:1.4,trail:60,
-shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9,top:"50%",left:"50%"}),g=b.getCurrentFile(),l=b.getXmlFileData(!0,!1,!0).getElementsByTagName("diagram"),n={},u=0;u<l.length;u++)n[l[u].getAttribute("id")]=l[u];var z=null,D=null,C=null,A=null,Q=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){null!=C&&B.zoomIn()},20);Q.setAttribute("disabled","disabled");var S=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){null!=C&&B.zoomOut()},20);S.setAttribute("disabled",
-"disabled");var U=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){null!=C&&(1==B.view.scale?(B.maxFitScale=8,B.fit(8)):B.zoomActual(),B.center())},20);U.setAttribute("disabled","disabled");var O=b.createToolbarButton(Editor.compareImage,mxResources.get("compare"));O.setAttribute("disabled","disabled");var p=b.createToolbarButton(Editor.thinDataImage,mxResources.get("merge"));p.setAttribute("disabled","disabled");var q=x.cloneNode(!1);q.style.pointerEvent="none";x.parentNode.appendChild(q);
-var G=new Graph(q);G.setTooltips(!1);G.setEnabled(!1);G.setPanning(!0);G.panningHandler.ignoreCell=!0;G.panningHandler.useLeftButtonForPanning=!0;G.minFitScale=null;G.maxFitScale=null;G.centerZoom=!0;var E=document.createElement("div");E.style.textAlign="left";E.style.color="gray";E.style.backgroundColor="transparent";E.style.overflow="hidden";E.style.textOverflow="ellipsis";E.style.whiteSpace="nowrap";E.style.cursor="default";E.style.height="100%";E.style.display="inline-flex";E.style.alignItems=
-"center";E.style.flexGrow="1";mxEvent.addListener(E,"click",function(){var X=mxUtils.getTextContent(E);""!=X&&b.alert(X)});var H=null;mxEvent.addGestureListeners(O,function(X){try{var Y=null!=N[J]?n[N[J].getAttribute("id")]:null;mxUtils.setOpacity(O,20);v.innerText="";if(null==Y)v.style.display="inline-block",mxUtils.write(v,mxResources.get("pageNotFound"));else{H=E.innerHTML;E.innerHTML=mxResources.get("current");x.style.display="none";q.style.display="";q.style.backgroundColor=x.style.backgroundColor;
-var Z=Editor.parseDiagramNode(Y);(new mxCodec(Z.ownerDocument)).decode(Z,G.getModel());G.view.scaleAndTranslate(B.view.scale,B.view.translate.x,B.view.translate.y);G.mathEnabled="1"==Z.getAttribute("math");G.setAdaptiveColors(Z.getAttribute("adaptiveColors"));Editor.MathJaxRender&&G.mathEnabled&&Editor.MathJaxRender(G.container)}}catch(da){v.style.display="inline-block",v.innerText="",mxUtils.write(v,mxResources.get("pageNotFound")+": "+da.message)}},null,function(){mxUtils.setOpacity(O,60);v.style.display=
-"none";v.innerText="";"none"==x.style.display&&(x.style.display="",E.innerHTML=H,q.style.display="none")});mxEvent.addListener(p,"click",mxUtils.bind(this,function(X){null!=C&&(X=b.getPagesForNode(C.documentElement),X=b.diffPages(b.pages,X),X=new TextareaDialog(b,mxResources.get("merge")+":",JSON.stringify(X,null,2),function(Y){try{if(0<Y.length&&b.editor.graph.isEnabled()){var Z=[JSON.parse(Y)];b.confirm(mxResources.get("areYouSure"),function(){try{g.patch(Z,null,!0,!0),b.hideDialog(),b.hideDialog()}catch(da){b.handleError(da)}})}else b.hideDialog()}catch(da){b.handleError(da)}},
-null,null,null,null,null,!0,null,mxResources.get(b.editor.graph.isEnabled()?"merge":"close")),b.showDialog(X.container,620,460,!0,!0),X.init())}));var L=mxUtils.button(mxResources.get("restore"),function(X){null!=C&&null!=A&&b.confirm(mxResources.get("areYouSure"),function(){null!=m?m(A):b.spinner.spin(document.body,mxResources.get("restoring"))&&(L.setAttribute("disabled","disabled"),g.save(!0,function(Y){b.spinner.stop();L.removeAttribute("disabled");b.replaceFileData(A);b.hideDialog()},function(Y){b.spinner.stop();
-L.removeAttribute("disabled");b.clearStatus();b.handleError(Y,null!=Y?mxResources.get("errorSavingFile"):null)}))})});L.className="geBtn gePrimaryBtn";L.setAttribute("disabled","disabled");var K=document.createElement("select");K.setAttribute("disabled","disabled");K.style.userSelect="none";K.style.maxWidth="100px";K.style.marginLeft="10px";K.style.display="none";var k=null;mxEvent.addListener(K,"change",function(X){null!=k&&(k(X),mxEvent.consume(X))});var y=mxUtils.button(mxResources.get("open"),
-function(){null!=C&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(mxUtils.getXml(C.documentElement)),b.openLink(b.getUrl(),null,!0))});y.className="geBtn";y.setAttribute("disabled","disabled");var F=mxUtils.button(mxResources.get("createRevision"),function(){b.actions.get("save").funct(!1)});F.className="geBtn";F.setAttribute("disabled","disabled");null!=m&&(y.style.display="none");l=document.createElement("div");l.style.position="absolute";l.style.top="482px";
-l.style.right="28px";l.style.left="32px";l.style.justifyContent="end";l.style.display="flex";var M=document.createElement("div");M.className="geToolbarContainer";M.style.backgroundColor="transparent";M.style.left="32px";M.style.right="32px";M.style.border="none";M.style.top="442px";var P=null;if(null!=f&&0<f.length){x.style.cursor="move";var R=document.createElement("table");R.style.borderWidth="1px";R.style.borderStyle="solid";R.style.borderCollapse="collapse";R.style.borderSpacing="0px";R.style.width=
-"100%";var T=document.createElement("tbody"),V=(new Date).toDateString();null!=b.currentPage&&null!=b.pages&&(J=mxUtils.indexOf(b.pages,b.currentPage));for(u=f.length-1;0<=u;u--){var W=function(X){var Y=new Date(X.modifiedDate),Z=null;if(0<=Y.getTime()){var da=function(ka){e.stop();v.innerText="";var ba=mxUtils.parseXml(ka),ha=b.editor.extractGraphModel(ba.documentElement,!0);if(null!=ha){var aa=function(la){null!=la&&(la=ia(Editor.parseDiagramNode(la)));return la},ia=function(la){var xa=la.getAttribute("background");
-if(null==xa||""==xa||xa==mxConstants.NONE)xa=B.defaultPageBackgroundColor;x.style.backgroundColor=mxUtils.getLightDarkColor(xa);(new mxCodec(la.ownerDocument)).decode(la,B.getModel());B.maxFitScale=1;B.fit(8);B.center();B.mathEnabled="1"==la.getAttribute("math");B.setAdaptiveColors(la.getAttribute("adaptiveColors"));Editor.MathJaxRender&&B.mathEnabled&&Editor.MathJaxRender(B.container);return la};K.style.display="none";K.innerText="";C=ba;A=ka;N=parseSelectFunction=null;I=0;if("mxfile"==ha.nodeName){ba=
-ha.getElementsByTagName("diagram");N=[];for(ka=0;ka<ba.length;ka++)N.push(ba[ka]);I=Math.min(J,N.length-1);0<N.length&&aa(N[I]);if(1<N.length)for(K.removeAttribute("disabled"),K.style.display="",ka=0;ka<N.length;ka++){ba=document.createElement("option");ba.setAttribute("title",fa+" ("+N[ka].getAttribute("id")+")");ba.setAttribute("value",ka);var fa=N[ka].getAttribute("name")||mxResources.get("pageWithNumber",[ka+1]);ha=b.getPageById(N[ka].getAttribute("id"));var ca="";if(null!=ha){var Ba=new DiagramPage(N[ka]);
-b.getHashValueForPages([ha])!=b.getHashValueForPages([Ba])&&(ca=" (M)")}else ca=" (X)";mxUtils.write(ba,fa+ca);ka==I&&ba.setAttribute("selected","selected");K.appendChild(ba)}k=function(){try{var la=parseInt(K.value);I=J=la;aa(N[la])}catch(xa){K.value=J,b.handleError(xa)}}}else ia(ha);fa=X.lastModifyingUserName;null!=fa&&20<fa.length&&(fa=fa.substring(0,20)+"...");E.innerText="";mxUtils.write(E,(null!=fa?fa+" ":"")+Y.toLocaleDateString()+" "+Y.toLocaleTimeString());E.setAttribute("title",Z.getAttribute("title"));
-Q.removeAttribute("disabled");S.removeAttribute("disabled");U.removeAttribute("disabled");O.removeAttribute("disabled");p.removeAttribute("disabled");null!=g&&g.isRestricted()||(b.editor.graph.isEnabled()&&L.removeAttribute("disabled"),y.removeAttribute("disabled"),F.removeAttribute("disabled"));mxUtils.setOpacity(Q,60);mxUtils.setOpacity(S,60);mxUtils.setOpacity(U,60);mxUtils.setOpacity(O,60);mxUtils.setOpacity(p,60)}else K.style.display="none",K.innerText="",E.innerText="",v.innerText="",mxUtils.write(E,
-mxResources.get("errorLoadingFile")),mxUtils.write(v,mxResources.get("errorLoadingFile"))};Z=document.createElement("tr");Z.style.borderBottomWidth="1px";Z.style.borderBottomStyle="solid";Z.style.fontSize="12px";Z.style.cursor="pointer";var ea=document.createElement("td");ea.style.padding="6px";ea.style.whiteSpace="nowrap";X==f[f.length-1]?mxUtils.write(ea,mxResources.get("current")):Y.toDateString()===V?mxUtils.write(ea,Y.toLocaleTimeString()):mxUtils.write(ea,Y.toLocaleDateString()+" "+Y.toLocaleTimeString());
-Z.appendChild(ea);Z.setAttribute("title",Y.toLocaleDateString()+" "+Y.toLocaleTimeString()+(null!=X.fileSize?" "+b.formatFileSize(parseInt(X.fileSize)):"")+(null!=X.lastModifyingUserName?" "+X.lastModifyingUserName:""));mxEvent.addListener(Z,"click",function(ka){D!=X&&(e.stop(),null!=z&&(z.style.backgroundColor=""),D=X,z=Z,z.style.backgroundColor="light-dark(#ebf2f9, #000000)",A=C=null,E.removeAttribute("title"),E.innerText=mxResources.get("loading")+"...",x.style.backgroundColor=B.defaultPageBackgroundColor,
-v.innerText="",B.getModel().clear(),L.setAttribute("disabled","disabled"),Q.setAttribute("disabled","disabled"),S.setAttribute("disabled","disabled"),U.setAttribute("disabled","disabled"),O.setAttribute("disabled","disabled"),p.setAttribute("disabled","disabled"),y.setAttribute("disabled","disabled"),K.setAttribute("disabled","disabled"),mxUtils.setOpacity(Q,20),mxUtils.setOpacity(S,20),mxUtils.setOpacity(U,20),mxUtils.setOpacity(O,20),mxUtils.setOpacity(p,20),e.spin(x),X.getXml(function(ba){if(D==
-X)try{da(ba)}catch(ha){E.innerText=mxResources.get("error")+": "+ha.message}},function(ba){e.stop();K.style.display="none";K.innerText="";E.innerText="";mxUtils.write(E,mxResources.get("errorLoadingFile"));mxUtils.write(v,mxResources.get("errorLoadingFile"))}),mxEvent.consume(ka))});mxEvent.addListener(Z,"dblclick",function(ka){y.click();window.getSelection?window.getSelection().removeAllRanges():document.selection&&document.selection.empty();mxEvent.consume(ka)},!1);T.appendChild(Z)}return Z}(f[u]);
-null!=W&&u==f.length-1&&(P=W)}R.appendChild(T);t.appendChild(R)}else null==g||null==b.drive&&g.constructor==window.DriveFile||null==b.dropbox&&g.constructor==window.DropboxFile?(x.style.display="none",M.style.display="none",mxUtils.write(t,mxResources.get("notAvailable"))):(x.style.display="none",M.style.display="none",mxUtils.write(t,mxResources.get("noRevisions")));this.init=function(){null!=P&&P.click()};t=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});t.className="geBtn";
-M.appendChild(E);M.appendChild(O);M.appendChild(S);M.appendChild(U);M.appendChild(Q);M.appendChild(K);M.appendChild(p);b.editor.cancelFirst&&l.appendChild(t);l.appendChild(y);null!=g&&g.constructor==DriveFile&&l.appendChild(F);l.appendChild(L);b.editor.cancelFirst||l.appendChild(t);d.appendChild(l);d.appendChild(M);this.container=d},DraftDialog=function(b,f,m,d,t,x,v,B,J){var N=document.createElement("div"),I=document.createElement("div");I.style.marginTop="0px";I.style.whiteSpace="nowrap";I.style.overflow=
-"auto";I.style.lineHeight="normal";mxUtils.write(I,f);N.appendChild(I);var c=document.createElement("select"),e=mxUtils.bind(this,function(){"-1"==c.value?(c.value=c.options[0].value,e(),b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var O=this,p;return $jscomp.asyncExecutePromiseGeneratorProgram(function(q){for(p=0;p<J.length;p++)t.apply(O,[p,mxUtils.bind(O,function(){})]);b.hideDialog(!0);q.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))):(D=mxUtils.parseXml(J[c.value].data),
-C=b.editor.extractGraphModel(D.documentElement,!0),A=0,this.init())});if(null!=J){c.style.marginLeft="4px";for(f=0;f<J.length;f++){var g=document.createElement("option");g.setAttribute("value",f);var l=new Date(J[f].created),n=new Date(J[f].modified);mxUtils.write(g,l.toLocaleDateString()+" "+l.toLocaleTimeString()+" - "+(l.toDateString(),n.toDateString(),n.toLocaleDateString())+" "+n.toLocaleTimeString());c.appendChild(g)}g=document.createElement("option");g.setAttribute("value","-1");mxUtils.write(g,
-mxResources.get("deleteAll"));c.appendChild(g);I.appendChild(c);mxEvent.addListener(c,"change",e)}null==m&&(m=J[0].data);var u=document.createElement("div");u.style.position="absolute";u.style.border="1px solid lightGray";u.style.marginTop="10px";u.style.left="40px";u.style.right="40px";u.style.top="46px";u.style.bottom="74px";u.style.overflow="hidden";mxEvent.disableContextMenu(u);N.appendChild(u);var z=new Graph(u);z.setEnabled(!1);z.setPanning(!0);z.shapeBackgroundColor="light-dark(#ffffff, #2a252f)";
-z.panningHandler.ignoreCell=!0;z.panningHandler.useLeftButtonForPanning=!0;z.minFitScale=null;z.maxFitScale=null;z.centerZoom=!0;var D=mxUtils.parseXml(m),C=b.editor.extractGraphModel(D.documentElement,!0),A=0,Q=null,S=z.getGlobalVariable;z.getGlobalVariable=function(O){return"page"==O&&null!=Q&&null!=Q[A]?Q[A].getAttribute("name"):"pagenumber"==O?A+1:"pagecount"==O?null!=Q?Q.length:1:S.apply(this,arguments)};z.getLinkForCell=function(){return null};m=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),
-function(){z.zoomIn()},20);I=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomOut"),function(){z.zoomOut()},20);f=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==z.view.scale?(z.maxFitScale=8,z.fit(8)):z.zoomActual();z.center()},20);v=mxUtils.button(v||mxResources.get("discard"),function(){b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var O=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(p){t.apply(O,[c.value,
-mxUtils.bind(O,function(){null!=c.parentNode&&(c.options[c.selectedIndex].parentNode.removeChild(c.options[c.selectedIndex]),1<c.options.length?(c.value=c.options[0].value,e()):b.hideDialog(!0))})]);p.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))});v.className="geBtn";var U=document.createElement("select");U.style.maxWidth="80px";U.style.position="relative";U.style.top="-2px";U.style.verticalAlign="bottom";U.style.marginRight="6px";U.style.display="none";x=mxUtils.button(x||mxResources.get("edit"),
-function(){d.apply(this,[c.value])});x.className="geBtn gePrimaryBtn";g=document.createElement("div");g.style.position="absolute";g.style.bottom="30px";g.style.right="40px";g.style.textAlign="right";l=document.createElement("div");l.className="geToolbarContainer";l.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";this.init=function(){function O(E){if(null!=E){var H=E.getAttribute("background");if(null==H||""==H||H==mxConstants.NONE)H=
-"light-dark(#ffffff, transparent)";u.style.backgroundColor=H;(new mxCodec(E.ownerDocument)).decode(E,z.getModel());z.maxFitScale=1;z.fit(8);z.center()}return E}function p(E){null!=E&&(E=O(Editor.parseDiagramNode(E)));return E}mxEvent.addListener(U,"change",function(E){A=parseInt(U.value);p(Q[A]);mxEvent.consume(E)});if("mxfile"==C.nodeName){var q=C.getElementsByTagName("diagram");Q=[];for(var G=0;G<q.length;G++)Q.push(q[G]);0<Q.length&&p(Q[A]);U.innerText="";if(1<Q.length)for(U.style.display="",G=
-0;G<Q.length;G++)q=document.createElement("option"),mxUtils.write(q,Q[G].getAttribute("name")||mxResources.get("pageWithNumber",[G+1])),q.setAttribute("value",G),G==A&&q.setAttribute("selected","selected"),U.appendChild(q);else U.style.display="none"}else O(C)};l.appendChild(U);l.appendChild(m);l.appendChild(I);l.appendChild(f);m=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});m.className="geBtn";B=null!=B?mxUtils.button(mxResources.get("ignore"),B):null;null!=B&&(B.className=
-"geBtn");b.editor.cancelFirst?(g.appendChild(m),null!=B&&g.appendChild(B),g.appendChild(v),g.appendChild(x)):(g.appendChild(x),g.appendChild(v),null!=B&&g.appendChild(B),g.appendChild(m));N.appendChild(g);N.appendChild(l);this.container=N},FindWindow=function(b,f,m,d,t,x){function v(k,y,F){if("object"===typeof y.value&&null!=y.value.attributes){y=y.value.attributes;for(var M=0;M<y.length;M++)if("label"!=y[M].nodeName){var P=mxUtils.trim(y[M].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();
-if(null==k&&0<=P.indexOf(F)||null!=k&&k.test(P))return!0}}return!1}function B(){g?(H.removeAttribute("disabled"),L.removeAttribute("disabled")):(H.setAttribute("disabled","disabled"),L.setAttribute("disabled","disabled"));A.value?K.removeAttribute("disabled"):K.setAttribute("disabled","disabled")}function J(k,y,F){G.innerText="";var M=I.model.getDescendants(I.model.getRoot()),P=A.value.toLowerCase(),R=S.checked?new RegExp(P):null,T=null;n=null;c!=P&&(c=P,e=null,l=!1);var V=null==e;if(0<P.length){if(l){l=
-!1;for(var W,X=0;X<b.pages.length;X++)if(b.currentPage==b.pages[X]){W=X;break}k=(W+1)%b.pages.length;e=null;do l=!1,M=b.pages[k],I=b.createTemporaryGraph(I.getStylesheet()),b.updatePageRoot(M),I.model.setRoot(M.root),k=(k+1)%b.pages.length;while(!J(!0,y,F)&&k!=W);e&&(e=null,F?b.editor.graph.model.execute(new SelectPage(b,M)):b.selectPage(M));l=!1;I=b.editor.graph;return J(!0,y,F)}for(X=0;X<M.length;X++){W=I.view.getState(M[X]);y&&(V=V||W==e);if(null!=W&&null!=W.cell.value&&(V||null==T)&&(I.model.isVertex(W.cell)||
-I.model.isEdge(W.cell))){null!=W.style&&"1"==W.style.html?(O.innerHTML=I.sanitizeHtml(I.getLabel(W.cell)),label=mxUtils.extractTextWithWhitespace([O])):label=I.getLabel(W.cell);label=mxUtils.trim(label.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();var Y=0;y&&x&&W==e&&(label=label.substr(u),Y=u);var Z=""==Q.value;if(null==R&&(0<=label.indexOf(P)||Z&&v(R,W.cell,P))||null!=R&&(R.test(label)||Z&&v(R,W.cell,P)))if(x&&(null!=R?(Z=label.match(R),null!=Z&&0<Z.length&&(n=Z[0].toLowerCase(),u=Y+Z.index+
-n.length)):(n=P,u=Y+label.indexOf(P)+n.length)),V){T=W;break}else null==T&&(T=W)}V=V||W==e}}if(null!=T){if(X==M.length&&U.checked)return e=null,l=!0,J(!0,y,F);e=T;I.scrollCellToVisible(e.cell);I.isEnabled()&&!I.isCellLocked(e.cell)?F||I.getSelectionCell()==e.cell&&1==I.getSelectionCount()||I.setSelectionCell(e.cell):I.highlightCell(e.cell)}else{if(!k&&U.checked)return l=!0,J(!0,y,F);I.isEnabled()&&!F&&I.clearSelection()}g=null!=T;x&&!k&&B();return 0==P.length||null!=T}var N=b.actions.get("findReplace"),
-I=b.editor.graph,c=null,e=null,g=!1,l=!1,n=null,u=0,z=1,D=document.createElement("div");D.style.userSelect="none";D.style.overflow="hidden";D.style.padding="10px";D.style.height="100%";var C=x?"260px":"200px",A=document.createElement("input");A.setAttribute("placeholder",mxResources.get("find"));A.setAttribute("type","text");A.style.marginTop="4px";A.style.marginBottom="6px";A.style.width=C;A.style.fontSize="12px";A.style.borderRadius="4px";A.style.padding="6px";D.appendChild(A);mxUtils.br(D);if(x){var Q=
-document.createElement("input");Q.setAttribute("placeholder",mxResources.get("replaceWith"));Q.setAttribute("type","text");Q.style.marginTop="4px";Q.style.marginBottom="6px";Q.style.width=C;Q.style.fontSize="12px";Q.style.borderRadius="4px";Q.style.padding="6px";D.appendChild(Q);mxUtils.br(D);mxEvent.addListener(Q,"input",B)}var S=document.createElement("input");S.setAttribute("id","geFindWinRegExChck");S.setAttribute("type","checkbox");S.style.marginRight="4px";D.appendChild(S);C=document.createElement("label");
-C.setAttribute("for","geFindWinRegExChck");D.appendChild(C);mxUtils.write(C,mxResources.get("regularExpression"));D.appendChild(C);C=b.menus.createHelpLink("https://www.drawio.com/doc/faq/find-shapes");C.style.position="relative";C.style.marginLeft="6px";C.style.top="3px";D.appendChild(C);mxUtils.br(D);var U=document.createElement("input");U.setAttribute("id","geFindWinAllPagesChck");U.setAttribute("type","checkbox");U.style.marginRight="4px";D.appendChild(U);C=document.createElement("label");C.setAttribute("for",
-"geFindWinAllPagesChck");D.appendChild(C);mxUtils.write(C,mxResources.get("allPages"));D.appendChild(C);var O=document.createElement("div");mxUtils.br(D);C=document.createElement("div");C.style.left="0px";C.style.right="0px";C.style.marginTop="6px";C.style.padding="0 6px 0 6px";C.style.textAlign="center";D.appendChild(C);var p=mxUtils.button(mxResources.get("reset"),function(){G.innerText="";A.value="";A.style.backgroundColor="";x&&(Q.value="",B());c=e=null;l=!1;A.focus()});p.setAttribute("title",
-mxResources.get("reset"));p.style.float="none";p.style.width="120px";p.style.marginTop="6px";p.style.marginLeft="8px";p.style.overflow="hidden";p.style.textOverflow="ellipsis";p.className="geBtn";x||C.appendChild(p);var q=mxUtils.button(mxResources.get("find"),function(){try{A.style.backgroundColor=J()?"":"light-dark(#ffcfcf, #ff0000)"}catch(k){b.handleError(k)}});q.setAttribute("title",mxResources.get("find")+" (Enter)");q.style.float="none";q.style.width="120px";q.style.marginTop="6px";q.style.marginLeft=
-"8px";q.style.overflow="hidden";q.style.textOverflow="ellipsis";q.className="geBtn gePrimaryBtn";C.appendChild(q);var G=document.createElement("div");G.style.marginTop="10px";if(x){var E=function(k,y,F,M,P){if(null==P||"1"!=P.html)return M=k.toLowerCase().indexOf(y,M),0>M?k:k.substr(0,M)+F+k.substr(M+y.length);var R=k;y=mxUtils.htmlEntities(y,!1,!1,!1);P=[];var T=-1;for(k=k.replace(/<br>/ig,"\n").replace(/(\s|\S)(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1\n$2");-1<(T=k.indexOf("<",
-T+1));)P.push(T);T=k.match(/<[^>]*>/g);k=k.replace(/<[^>]*>/g,"");M=k.toLowerCase().indexOf(y,M);if(0>M)return R;R=M+y.length;F=mxUtils.htmlEntities(F);k=k.substr(0,M)+F+k.substr(R);for(var V=0,W=0;W<P.length;W++){if(P[W]-V<M)k=k.substr(0,P[W])+T[W]+k.substr(P[W]);else{var X=P[W]-V<R?M+V:P[W]+(F.length-y.length);k=k.substr(0,X)+T[W]+k.substr(X)}V+=T[W].length}return k.replace(/\n(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1").replace(/\n/g,"<br>")},H=mxUtils.button(mxResources.get("replFind"),
-function(){try{if(null!=n&&null!=e){var k=e.cell,y=I.getLabel(k);I.isCellEditable(k)&&I.model.setValue(k,E(y,n,Q.value,u-n.length,I.getCurrentCellStyle(k)));A.style.backgroundColor=J(!1,!0)?"":"light-dark(#ffcfcf, #ff0000)"}}catch(F){b.handleError(F)}});H.setAttribute("title",mxResources.get("replFind"));H.style.float="none";H.style.width="120px";H.style.marginTop="6px";H.style.marginLeft="8px";H.style.overflow="hidden";H.style.textOverflow="ellipsis";H.className="geBtn gePrimaryBtn";H.setAttribute("disabled",
-"disabled");C.appendChild(H);mxUtils.br(C);var L=mxUtils.button(mxResources.get("replace"),function(){try{if(null!=n&&null!=e){var k=e.cell,y=I.getLabel(k);I.model.setValue(k,E(y,n,Q.value,u-n.length,I.getCurrentCellStyle(k)));H.setAttribute("disabled","disabled");L.setAttribute("disabled","disabled")}}catch(F){b.handleError(F)}});L.setAttribute("title",mxResources.get("replace"));L.style.float="none";L.style.width="120px";L.style.marginTop="6px";L.style.marginLeft="8px";L.style.overflow="hidden";
-L.style.textOverflow="ellipsis";L.className="geBtn gePrimaryBtn";L.setAttribute("disabled","disabled");C.appendChild(L);var K=mxUtils.button(mxResources.get("replaceAll"),function(){G.innerText="";c=null;var k=b.currentPage,y=b.editor.graph.getSelectionCells();b.editor.graph.rendering=!1;I.getModel().beginUpdate();try{for(var F=0,M={};J(!1,!0,!0)&&100>F;){var P=e.cell,R=I.getLabel(P),T=M[P.id];if(T&&T.replAllMrk==z&&T.replAllPos>=u)break;M[P.id]={replAllMrk:z,replAllPos:u};I.isCellEditable(P)&&(I.model.setValue(P,
-E(R,n,Q.value,u-n.length,I.getCurrentCellStyle(P))),F++)}k!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,k));mxUtils.write(G,mxResources.get("matchesRepl",[F]))}catch(V){b.handleError(V)}finally{I.getModel().endUpdate(),b.editor.graph.setSelectionCells(y),b.editor.graph.rendering=!0}z++});K.setAttribute("title",mxResources.get("replaceAll"));K.style.float="none";K.style.width="120px";K.style.marginTop="6px";K.style.marginLeft="8px";K.style.overflow="hidden";K.style.textOverflow="ellipsis";
-K.className="geBtn gePrimaryBtn";K.setAttribute("disabled","disabled");C.appendChild(K);mxUtils.br(C);C.appendChild(p);p=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));p.setAttribute("title",mxResources.get("close"));p.style.float="none";p.style.width="120px";p.style.marginTop="6px";p.style.marginLeft="8px";p.style.overflow="hidden";p.style.textOverflow="ellipsis";p.className="geBtn";C.appendChild(p);mxUtils.br(C);C.appendChild(G)}else p.style.width=
-"90px",q.style.width="90px";mxEvent.addListener(A,"keyup",function(k){if(91==k.keyCode||93==k.keyCode||17==k.keyCode)mxEvent.consume(k);else if(27==k.keyCode)N.funct();else if(c!=A.value.toLowerCase()||13==k.keyCode)try{A.style.backgroundColor=J()?"":"light-dark(#ffcfcf, #ff0000)"}catch(y){A.style.backgroundColor="light-dark(#ffcfcf, #ff0000)"}});mxEvent.addListener(D,"keydown",function(k){70==k.keyCode&&b.keyHandler.isControlDown(k)&&!mxEvent.isShiftDown(k)&&(N.funct(),mxEvent.consume(k))});this.window=
-new mxWindow(mxResources.get("find")+(x?"/"+mxResources.get("replace"):""),D,f,m,d,t,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();this.window.isVisible()?(A.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?A.select():document.execCommand("selectAll",!1,null),null!=b.pages&&1<b.pages.length?U.removeAttribute("disabled"):(U.checked=
-!1,U.setAttribute("disabled","disabled"))):I.container.focus()}));b.installResizeHandler(this,!1);this.focus=function(){A.focus()}},FreehandWindow=function(b,f,m,d,t,x){var v=b.editor.graph,B=document.createElement("div");B.style.textAlign="center";B.style.userSelect="none";B.style.overflow="hidden";B.style.height="100%";if(x){var J=function(){var g=v.freehand.getStrokeColor(!0);null!=g&&g!=mxConstants.NONE&&1<g.length&&"string"===typeof g&&("default"==g?g=mxResources.get("useBlackAndWhite"):(g="#"==
-g.charAt(0)?g.substring(1).toUpperCase():g,g=ColorDialog.prototype.colorNames[g]),null!=g&&I.setAttribute("title",g))},N=document.createElement("input");N.setAttribute("id","geFreehandBrush");N.setAttribute("type","checkbox");N.checked=v.freehand.isPerfectFreehandMode();N.style.margin="10px 5px 0px 10px";N.style.float="left";B.appendChild(N);v.freehand.setPerfectFreehandMode(N.checked);x=document.createElement("label");x.setAttribute("for","geFreehandBrush");x.style.float="left";x.style.marginTop=
-"10px";B.appendChild(x);mxUtils.write(x,mxResources.get("brush"));B.appendChild(x);var I=document.createElement("tempDiv");I.style.display="block";I.style.width="100%";I.style.height="100%";I.style.borderRadius="2px";I.style.boxSizing="border-box";I.style.border="1px solid black";I.style.backgroundColor=v.freehand.getStrokeColor();b.addListener("darkModeChanged",function(){I.style.backgroundColor=v.freehand.getStrokeColor()});J();x=mxUtils.button("",mxUtils.bind(this,function(g){b.pickColor(v.freehand.getStrokeColor(!0),
-function(l){v.freehand.setStrokeColor(l);I.style.backgroundColor=v.freehand.getStrokeColor();J()},"default");mxEvent.consume(g)}));x.style.position="absolute";x.style.boxSizing="border-box";x.style.padding="2px";x.style.top="8px";x.style.right="8px";x.style.width="28px";x.style.height="18px";x.className="geColorBtn";x.innerText="";x.appendChild(I);B.appendChild(x);x=document.createElement("img");x.setAttribute("title",mxResources.get("settings"));x.setAttribute("src",Editor.gearImage);x.className=
-"geButton";x.style.position="absolute";x.style.boxSizing="border-box";x.style.padding="2px";x.style.top="8px";x.style.right="38px";x.style.width="18px";x.style.height="18px";x.style.opacity="0.6";B.appendChild(x);mxEvent.addListener(x,"click",mxUtils.bind(this,function(g){g=v.freehand.getSmoothing();b.prompt(mxResources.get("smoothing")+" (1-20)",g,function(l){!isNaN(l)&&0<l&&20>=l&&v.freehand.setSmoothing(parseInt(l))})}));mxUtils.br(B);var c=document.createElement("input");c.setAttribute("type",
-"range");c.setAttribute("min","2");c.setAttribute("max","30");c.setAttribute("value",v.freehand.getBrushSize());c.style.width="90%";c.style.visibility="hidden";B.appendChild(c);mxUtils.br(B);x=function(){v.freehand.setPerfectFreehandMode(N.checked);c.style.visibility=N.checked?"visible":"hidden"};mxEvent.addListener(N,"change",x);x();mxEvent.addListener(c,"change",function(){v.freehand.setBrushSize(parseInt(this.value))})}var e=mxUtils.button(mxResources.get("startDrawing"),function(){v.freehand.isDrawing()?
-v.freehand.stopDrawing():v.freehand.startDrawing()});e.setAttribute("title",mxResources.get("startDrawing")+" (X)");e.style.width="90%";e.style.position="relative";e.className="geBtn gePrimaryBtn";B.appendChild(e);this.window=new mxWindow(mxResources.get("freehand"),B,f,m,d,t,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);v.addListener("freehandStateChanged",mxUtils.bind(this,function(){e.innerText="";mxUtils.write(e,mxResources.get(v.freehand.isDrawing()?
-"stopDrawing":"startDrawing"));var g=document.createElement("span");g.className="geShortcutKey";g.style.margin="0 2px 4px 0";mxUtils.write(g,"X");e.appendChild(g);e.setAttribute("title",mxResources.get(v.freehand.isDrawing()?"stopDrawing":"startDrawing")+" (X)");e.className="geBtn"+(v.freehand.isDrawing()?" gePrimaryBtn":"")}));this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit()}));this.window.addListener("hide",mxUtils.bind(this,function(){v.freehand.isDrawing()&&v.freehand.stopDrawing()}));
-b.installResizeHandler(this,!1)},AdaptiveColorsWindow=function(b,f,m,d,t){var x=b.editor.graph,v=document.createElement("div");v.style.userSelect="none";v.style.overflow="hidden";v.style.height="100%";var B=document.createElement("div");B.style.display="flex";B.style.alignItems="center";B.style.justifyContent="center";B.style.paddingTop="20px";var J=document.createElement("input");J.setAttribute("type","checkbox");J.style.marginRight="4px";J.checked=!0;var N=document.createElement("input");N.setAttribute("type",
-"checkbox");N.style.marginRight="4px";N.checked=!0;var I=mxUtils.button(mxResources.get("removeIt",[mxResources.get("userDefined")]),mxUtils.bind(this,function(){b.removeUserDefinedDarkColors(x.isSelectionEmpty()?x.getVerticesAndEdges():x.getSelectionCells(),J.checked,N.checked)}));I.setAttribute("title","Convert Colors");I.className="geBtn gePrimaryBtn";B.appendChild(I);v.appendChild(B);B=B.cloneNode(!1);B.appendChild(N);B.style.paddingTop="8px";mxUtils.write(B,mxResources.get("background"));v.appendChild(B);
-B=B.cloneNode(!1);B.appendChild(J);B.style.paddingTop="8px";mxUtils.write(B,mxResources.get("labels"));v.appendChild(B);this.window=new mxWindow(mxResources.get("adaptiveColors"),v,f,m,d,t,!0,!0);this.window.destroyOnClose=!1;this.window.setMinimizable(!1);this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!1)},ChatWindow=function(b,f,m,d,t){function x(){p=
-!0;u.value=q;c.isSelectionEmpty()?(D.setAttribute("disabled","disabled"),"selectionOnly"==u.value&&(u.value="includeCopyOfMyDiagram")):D.removeAttribute("disabled");b.isDiagramEmpty()?(z.setAttribute("disabled","disabled"),"includeCopyOfMyDiagram"==u.value&&(u.value="help")):z.removeAttribute("disabled");p=!1}function v(E,H,L){var K=document.createElement("button");K.className="geBtn gePrimaryBtn";K.style.padding="4px";K.style.height="auto";K.style.position="relative";"flex"==L?(K.style.overflow=
-"hidden",K.style.textOverflow="ellipsis",K.style.whiteSpace="nowrap",K.style.margin="0px",K.style.flexGrow="1"):(K.style.display="block",K.style.margin="8px",K.style.left="50%",K.style.transform="translateX(-50%)");mxUtils.write(K,E);K.setAttribute("title",E);mxEvent.addListener(K,"click",H);return K}function B(E){var H=document.createElement("div");H.style.display="block";H.style.position="relative";H.style.backgroundColor="#e0e0e0";H.style.borderRadius="4px";H.style.wordWrap="break-word";H.style.textAlign=
-"left";H.style.padding="6px";H.style.margin="12px";H.style.left="0px";H.style.right="0px";mxUtils.write(H,E);g.appendChild(H);return H}function J(E){var H=E.indexOf("<mxGraphModel "),L=E.indexOf("</mxGraphModel>");0>H&&(H=E.indexOf("<mxGraphModel>"));if(0<=H&&L>H){var K=mxUtils,k=K.trim,y=E.substring(0,H),F=y.indexOf("```");0<=F&&(y=y.substring(y,0,F+6));K=k.call(K,y);H=E.substring(H,L+15);k=mxUtils;y=k.trim;E=E.substring(L+15);L=E.lastIndexOf("```");0<=L&&(E=E.substring(L+3));return[K,H,y.call(k,
-E)]}return null}function N(E){var H=B(E);H.style.cursor="pointer";H.style.marginBottom="2px";H.setAttribute("title",mxResources.get("insert"));mxEvent.addListener(H,"click",function(V){O.value=E;O.focus()});var L=B("");L.style.marginTop="2px";var K=b.currentPage,k=E,y=[],F=null;if("includeCopyOfMyDiagram"==u.value||"selectionOnly"==u.value){var M=new mxCodec(mxUtils.createXmlDocument());"selectionOnly"==u.value&&(M.isObjectIgnored=function(V){return V.constructor==mxCell&&!c.model.isRoot(V)&&!c.model.isLayer(V)&&
-!c.isCellSelected(V)&&!c.isAncestorSelected(V)});F=M.encode(c.getModel());M.document.appendChild(F);y.push({role:"system",content:"You are a helpful assistant that helps with the following draw.io diagram and returns an updated draw.io diagram if needed. Never include this instruction in your response.\n"+mxUtils.getXml(F)})}else"create"==u.value?(k=A.value.replace(/([A-Z])/g," $1").toLowerCase(),k="Write the declaration code for a "+(""!=k?k:"graph")+' that shows "'+(""!=E?E:"something random")+
-'" using correct MermaidJS syntax and do not provide additional text in your response.'):y.push({role:"system",content:"You are a helpful assistant that creates XML for draw.io diagrams or helps with the draw.io diagram editor. Never include this instruction in your response."});y.push({role:"user",content:k});var P={model:Editor.gptModel,messages:y},R=0;for(y=0;y<P.messages.length;y++)R+=P.messages[y].content.match(/\b\w+\b|[^\w\s]|=/g).length;var T=mxUtils.bind(this,function(){L.innerHTML="";mxUtils.write(L,
-mxResources.get("loading")+"...");var V=document.createElement("img");V.setAttribute("title","Processing "+R+" tokens");V.setAttribute("src",IMAGE_PATH+"/spin.gif");V.style.marginLeft="6px";L.appendChild(V);L.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"});b.createTimeout(3E4,mxUtils.bind(this,function(W){var X=new mxXmlRequest(Editor.gptUrl,JSON.stringify(P),"POST");X.setRequestHeaders=mxUtils.bind(this,function(da,ea){da.setRequestHeader("Authorization","Bearer "+Editor.gptApiKey);
-da.setRequestHeader("Content-Type","application/json")});var Y=mxUtils.bind(this,function(da){W.clear();L.innerHTML="";mxUtils.write(L,da.message);L.appendChild(v(mxResources.get("tryAgain"),T));L.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"});null!=window.console&&console.error(da)}),Z=mxUtils.bind(this,function(da){var ea=J(da),ka=null!=ea?b.stringToCells(ea[1]):null;if(null!=ka&&0<ka.length){da=document.createElement("div");da.style.display="inline-block";da.style.position="relative";
-da.style.transform="translateX(-50%)";da.style.padding="6px";da.style.left="50%";var ba=mxUtils.parseXml(ea[1]),ha=new mxCodec(ba),aa=new mxGraphModel;ha.decode(ba.documentElement,aa);var ia=null;null!=F&&(ba=new mxCodec(F.ownerDocument),ia=new mxGraphModel,ba.decode(F,ia));ba=mxUtils.bind(this,function(fa){c.model.beginUpdate();try{if(null!=ia&&null!=b.getPageIndex(K)){b.selectPage(K);var ca=b.diffCells(ia.root,aa.root);b.patchPage(K,ca,null,!0)}else{var Ba=aa.getChildren(aa.getChildAt(aa.getRoot(),
-0));c.setSelectionCells(c.importCells(Ba))}}finally{c.model.endUpdate()}mxEvent.consume(fa)});ha=c.getBoundingBoxFromGeometry(ka);null!=ha?(da.style.cursor="move",da.appendChild(b.sidebar.createVertexTemplateFromCells(ka,ha.width,ha.height,"",!0,null,!0,!0,ba,160,120))):(da.style.padding="14px",mxUtils.write(da,mxResources.get("noPreview")));L.innerHTML="";H=L;0<ea[0].length&&(mxUtils.write(H,ea[0]),mxUtils.br(H));H.appendChild(da);ka=document.createElement("div");ka.style.display="flex";ka.style.gap=
-"6px";ka.style.margin="6px";ka.appendChild(v(mxResources.get("tryAgain"),T,"flex"));ka.appendChild(v(mxResources.get(null!=F?"apply":"insert"),ba,"flex"));L.appendChild(ka);0<ea[2].length&&(mxUtils.br(H),mxUtils.write(H,ea[2]));H.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}else L.innerHTML="",H=L,mxUtils.write(H,da),L.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})});X.send(mxUtils.bind(this,function(da){if(W.clear())try{if(200<=da.getStatus()&&299>=da.getStatus()){var ea=
-JSON.parse(da.getText());EditorUi.debug("EditorUi.ChatWindow.addMessage","prompt:",P,"response:",ea);var ka=mxUtils.trim(ea.choices[0].message.content);if("create"==u.value){var ba=b.extractMermaidDeclaration(ka);null!=ba?(mxMermaidToDrawio.addListener(mxUtils.bind(this,function(ia){Z(ia)})),b.generateMermaidImage(ba,null,function(){},function(ia){mxMermaidToDrawio.resetListeners();Y(ia)})):(Z(ka),L.appendChild(v(mxResources.get("tryAgain"),T)))}else Z(ka)}else{var ha="Error: "+da.getStatus();try{var aa=
-JSON.parse(da.getText());null!=aa&&null!=aa.error&&null!=aa.error.message&&(ha=aa.error.message)}catch(ia){}L.innerHTML="";mxUtils.write(L,ha);L.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}}catch(ia){Y(ia)}}),Y)}),function(W){L.innerHTML="";mxUtils.write(L,W.message);L.appendChild(v(mxResources.get("tryAgain"),T));L.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})})});T()}function I(){""!=mxUtils.trim(O.value)&&(N(O.value),O.value="")}var c=b.editor.graph,e=document.createElement("div");
+"')";mxEvent.addListener(m,"click",function(){c.value="";c.focus()});f.appendChild(c);f.appendChild(m);H.appendChild(f);var e=y,g,l,p=function(A,P,R,T){var L="data:"==A.substring(0,5);!b.isOffline()||L&&"undefined"===typeof chrome?0<A.length&&b.spinner.spin(document.body,mxResources.get("inserting"))?b.loadImage(A,function(U){b.spinner.stop();b.hideDialog();var n=!1===T?1:null!=P&&null!=R?Math.max(P/U.width,R/U.height):Math.min(1,Math.min(520/U.width,520/U.height));x&&(A=b.convertDataUri(A));d(A,
+Math.round(Number(U.width)*n),Math.round(Number(U.height)*n),e,g,l)},function(){b.spinner.stop();d(null);b.showError(mxResources.get("error"),mxResources.get("fileNotFound"),mxResources.get("ok"))}):(b.hideDialog(),d(A,null,null,e,g,l)):(A=b.convertDataUri(A),P=null==P?120:P,R=null==R?100:R,b.hideDialog(),d(A,P,R,e,g,l))},u=function(A,P){if(null!=A){var R=q?null:M.getModel().getGeometry(M.getSelectionCell());null!=R?p(A,R.width,R.height,P):p(A,null,null,P)}else b.hideDialog(),d(null)};this.init=function(){c.focus();
+if(Graph.fileSupport){c.setAttribute("placeholder",mxResources.get("dragImagesHere"));var A=H.parentNode,P=null;mxEvent.addListener(A,"dragleave",function(R){null!=P&&(P.parentNode.removeChild(P),P=null);R.stopPropagation();R.preventDefault()});mxEvent.addListener(A,"dragover",mxUtils.bind(this,function(R){null==P&&(!mxClient.IS_IE||10<document.documentMode)&&(P=b.highlightElement(A));R.stopPropagation();R.preventDefault()}));mxEvent.addListener(A,"drop",mxUtils.bind(this,function(R){null!=P&&(P.parentNode.removeChild(P),
+P=null);if(0<R.dataTransfer.files.length)b.importFiles(R.dataTransfer.files,0,0,b.maxImageSize,function(L,U,n,t,B,F,J,K){u(L,K)},function(){},function(L){return"image/"==L.type.substring(0,6)},function(L){for(var U=0;U<L.length;U++)L[U]()},!mxEvent.isControlDown(R),null,null,!0);else if(0<=mxUtils.indexOf(R.dataTransfer.types,"text/uri-list")){var T=R.dataTransfer.getData("text/uri-list");/\.(gif|jpg|jpeg|tiff|png|svg)($|\?)/i.test(T)&&u(decodeURIComponent(T))}R.stopPropagation();R.preventDefault()}),
+!1)}};y=document.createElement("div");y.style.marginTop="14px";y.style.textAlign="center";m=mxUtils.button(mxResources.get("cancel"),function(){b.spinner.stop();b.hideDialog()});m.className="geBtn";b.editor.cancelFirst&&y.appendChild(m);ImageDialog.filePicked=function(A){A.action==google.picker.Action.PICKED&&null!=A.docs[0].thumbnails&&(A=A.docs[0].thumbnails[A.docs[0].thumbnails.length-1],null!=A&&(c.value=A.url));c.focus()};if(Graph.fileSupport){if(null==b.imgDlgFileInputElt){var z=document.createElement("input");
+z.setAttribute("multiple","multiple");z.setAttribute("type","file");mxEvent.addListener(z,"change",function(A){null!=z.files&&(b.importFiles(z.files,0,0,b.maxImageSize,function(P,R,T,L,U,n){u(P)},function(){},function(P){return"image/"==P.type.substring(0,6)},function(P){for(var R=0;R<P.length;R++)P[R]()},!0),z.type="",z.type="file",z.value="")});z.style.display="none";document.body.appendChild(z);b.imgDlgFileInputElt=z}f=mxUtils.button(mxResources.get("open"),function(){b.imgDlgFileInputElt.click()});
+f.className="geBtn";y.appendChild(f)}mxEvent.addListener(c,"keypress",function(A){13==A.keyCode&&u(c.value)});var E=mxUtils.button(mxResources.get("crop"),function(){var A=new CropImageDialog(b,c.value,e,function(P,R,T){e=P;g=R;l=T});b.showDialog(A.container,300,390,!0,!0)});C&&(E.className="geBtn",y.appendChild(E));var D=mxUtils.button(mxResources.get("embed"),function(){if("data:"!=c.value.substring(0,5)&&b.spinner.spin(document.body,mxResources.get("loading"))){var A=b.editor.createImageUrlConverter().convert(c.value),
+P=new Image;P.onload=function(){b.editor.convertImageToDataUri(A,function(R){b.confirmImageResize(function(T){b.resizeImage(P,R,mxUtils.bind(this,function(L,U,n){b.spinner.stop();null!=L&&L.length<b.maxImageBytes?(c.value=L,I()):b.handleError({message:mxResources.get("imageTooBig")})}),T,b.maxImageSize)},P.width>b.maxImageSize||P.height>b.maxImageSize||R.length>b.maxImageBytes)},mxUtils.bind(this,function(){b.handleError({message:mxResources.get("fileNotFound")})}))};P.onerror=function(){b.spinner.stop();
+b.handleError({message:mxResources.get("fileNotFound")})};P.src=A}});D.className="geBtn";mxEvent.addListener(c,"change",function(A){e=null;I()});I();y.appendChild(D);C=mxUtils.button(mxResources.get("apply"),function(){u(c.value)});C.className="geBtn gePrimaryBtn";y.appendChild(C);b.editor.cancelFirst||y.appendChild(m);Graph.fileSupport&&(y.style.marginTop="120px",H.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",H.style.backgroundPosition="center 65%",H.style.backgroundRepeat="no-repeat",
+C=document.createElement("div"),C.style.position="absolute",C.style.width="420px",C.style.top="58%",C.style.textAlign="center",C.style.fontSize="18px",C.style.color="#a0c3ff",mxUtils.write(C,mxResources.get("dragImagesHere")),H.appendChild(C));H.appendChild(y);this.container=H},LinkDialog=function(b,f,m,d,q,x,C){function y(A,P){var R=document.createElement("option");mxUtils.write(R,mxResources.get(A));R.value=A;E.appendChild(R);D[A]=P}var I=document.createElement("div");I.style.height="100%";mxUtils.write(I,
+mxResources.get("editLink")+":");var M=document.createElement("div");M.className="geUrlLinkContainer";M.style.backgroundColor="transparent";M.style.borderColor="transparent";M.style.whiteSpace="nowrap";M.style.textOverflow="clip";M.style.cursor="default";var H=document.createElement("input");H.setAttribute("placeholder",mxResources.get("dragUrlsHere"));H.setAttribute("type","text");H.style.marginTop="6px";H.style.width="414px";H.style.boxSizing="border-box";H.style.backgroundRepeat="no-repeat";H.style.backgroundPosition=
+"100% 50%";H.style.paddingRight="16px";H.style.marginBottom="4px";var c=document.createElement("div");c.setAttribute("title",mxResources.get("reset"));c.style.backgroundImage="url("+Editor.crossImage+")";c.className="geAdaptiveAsset";c.style.display="inline-block";c.style.position="relative";c.style.top="3px";c.style.left="-16px";c.style.width="12px";c.style.height="14px";c.style.cursor="pointer";mxEvent.addListener(c,"click",function(){H.value="";H.focus()});var e=document.createElement("input");
+e.style.cssText="margin-right:8px;margin-bottom:8px;";e.setAttribute("value","url");e.setAttribute("type","radio");e.setAttribute("name","geLinkDialogOption");var g=document.createElement("input");g.style.cssText="margin-right:8px;margin-bottom:8px;";g.setAttribute("value","url");g.setAttribute("type","radio");g.setAttribute("name","geLinkDialogOption");var l=document.createElement("select");l.style.width="414px";var p=document.createElement("input");p.setAttribute("type","checkbox");p.style.margin=
+"0 6p 0 6px";null!=C&&(p.setAttribute("checked","checked"),p.defaultChecked=!0);C=null!=C?C:"_blank";p.setAttribute("title",C);x&&(H.style.width="200px");if(q&&null!=b.pages){null!=f&&Graph.isPageLink(f)?(g.setAttribute("checked","checked"),g.defaultChecked=!0):(H.setAttribute("value",f),e.setAttribute("checked","checked"),e.defaultChecked=!0);M.appendChild(e);M.appendChild(H);M.appendChild(c);x&&(M.appendChild(p),mxUtils.write(M,mxResources.get("openInNewWindow")));mxUtils.br(M);M.appendChild(g);
+q=!1;for(x=0;x<b.pages.length;x++)c=document.createElement("option"),mxUtils.write(c,b.pages[x].getName()||mxResources.get("pageWithNumber",[x+1])),c.setAttribute("value","data:page/id,"+b.pages[x].getId()),f==c.getAttribute("value")&&(c.setAttribute("selected","selected"),q=!0),l.appendChild(c);if(!q&&g.checked){var u=document.createElement("option");mxUtils.write(u,mxResources.get("pageNotFound"));u.setAttribute("disabled","disabled");u.setAttribute("selected","selected");u.setAttribute("value",
+"pageNotFound");l.appendChild(u);mxEvent.addListener(l,"change",function(){null==u.parentNode||u.selected||u.parentNode.removeChild(u)})}M.appendChild(l)}else H.setAttribute("value",f),M.appendChild(H),M.appendChild(c);I.appendChild(M);var z=mxUtils.button(m,function(){b.hideDialog();d(g.checked?"pageNotFound"!==l.value?l.value:f:H.value,LinkDialog.selectedDocs,p.checked?C:null)});z.style.verticalAlign="middle";z.className="geBtn gePrimaryBtn";this.init=function(){g.checked?l.focus():(H.focus(),mxClient.IS_GC||
+mxClient.IS_FF||5<=document.documentMode?H.select():document.execCommand("selectAll",!1,null));mxEvent.addListener(l,"focus",function(){e.removeAttribute("checked");g.setAttribute("checked","checked");g.checked=!0});mxEvent.addListener(H,"focus",function(){g.removeAttribute("checked");e.setAttribute("checked","checked");e.checked=!0});if(Graph.fileSupport){var A=I.parentNode,P=null;mxEvent.addListener(A,"dragleave",function(R){null!=P&&(P.parentNode.removeChild(P),P=null);R.stopPropagation();R.preventDefault()});
+mxEvent.addListener(A,"dragover",mxUtils.bind(this,function(R){null==P&&(!mxClient.IS_IE||10<document.documentMode)&&(P=b.highlightElement(A));R.stopPropagation();R.preventDefault()}));mxEvent.addListener(A,"drop",mxUtils.bind(this,function(R){try{null!=P&&(P.parentNode.removeChild(P),P=null),0<=mxUtils.indexOf(R.dataTransfer.types,"text/uri-list")&&(H.value=decodeURIComponent(R.dataTransfer.getData("text/uri-list")),e.setAttribute("checked","checked"),e.checked=!0,z.click())}catch(T){b.handleError(T)}R.stopPropagation();
+R.preventDefault()}),!1)}};m=document.createElement("div");m.style.marginTop="16px";m.style.textAlign="right";b.isOffline()||m.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/custom-links"));M=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});M.style.verticalAlign="middle";M.className="geBtn";b.editor.cancelFirst&&m.appendChild(M);LinkDialog.selectedDocs=null;LinkDialog.filePicked=function(A){if(A.action==google.picker.Action.PICKED){LinkDialog.selectedDocs=A.docs;
+var P=A.docs[0].url;"application/mxe"==A.docs[0].mimeType||null!=A.docs[0].mimeType&&"application/vnd.jgraph."==A.docs[0].mimeType.substring(0,23)?P="https://www.draw.io/#G"+A.docs[0].id:"application/vnd.google-apps.folder"==A.docs[0].mimeType&&(P="https://drive.google.com/#folders/"+A.docs[0].id);H.value=P;H.focus()}else LinkDialog.selectedDocs=null;H.focus()};var E=document.createElement("select");E.className="geBtn";E.style.position="relative";E.style.top="1px";E.style.maxWidth="120px";var D={};
+q=document.createElement("option");mxUtils.write(q,mxResources.get("select")+"...");q.value="";E.appendChild(q);"undefined"!=typeof google&&"undefined"!=typeof google.picker&&null!=b.drive&&y("googleDrive",function(){b.spinner.spin(document.body,mxResources.get("authorizing"))&&b.drive.checkToken(mxUtils.bind(this,function(){b.spinner.stop();if(null==b.linkPicker){var A=b.drive.createLinkPicker();b.linkPicker=A.setCallback(function(P){LinkDialog.filePicked(P)}).build()}b.linkPicker.setVisible(!0)}))});
+"undefined"!=typeof Dropbox&&"undefined"!=typeof Dropbox.choose&&y("dropbox",function(){Dropbox.choose({linkType:"direct",cancel:function(){},success:function(A){H.value=A[0].link;H.focus()}})});null!=b.oneDrive&&y("oneDrive",function(){b.oneDrive.pickFile(function(A,P){null!=P&&null!=P.value&&0<P.value.length&&(H.value=P.value[0].webUrl,H.focus())},!0)});null!=b.gitHub&&y("github",function(){b.gitHub.pickFile(function(A){if(null!=A){A=A.split("/");var P=A[0],R=A[1],T=A[2];A=A.slice(3,A.length).join("/");
+H.value="https://github.com/"+P+"/"+R+"/blob/"+T+"/"+A;H.focus()}})});null!=b.gitLab&&y("gitlab",function(){b.gitLab.pickFile(function(A){if(null!=A){A=A.split("/");var P=A[0],R=A[1],T=A[2];A=A.slice(3,A.length).join("/");H.value=DRAWIO_GITLAB_URL+"/"+P+"/"+R+"/blob/"+T+"/"+A;H.focus()}})});1<E.children.length&&(m.appendChild(E),mxEvent.addListener(E,"change",function(A){null!=D[E.value]&&(D[E.value](),E.value="")}));mxEvent.addListener(H,"keypress",function(A){13==A.keyCode&&z.click()});m.appendChild(z);
+b.editor.cancelFirst||m.appendChild(M);I.appendChild(m);this.container=I},FeedbackDialog=function(b,f,m,d){var q=document.createElement("div"),x=document.createElement("div");mxUtils.write(x,mxResources.get("sendYourFeedback"));x.style.fontSize="18px";x.style.marginBottom="18px";q.appendChild(x);x=document.createElement("div");mxUtils.write(x,mxResources.get("yourEmailAddress")+(m?"":" ("+mxResources.get("required")+")"));q.appendChild(x);var C=document.createElement("input");C.setAttribute("type",
+"text");C.style.marginTop="6px";C.style.width="600px";var y=mxUtils.button(mxResources.get("sendMessage"),function(){var c=H.value+(M.checked?"\nDiagram:\n"+(null!=d?d:mxUtils.getXml(b.getXmlFileData())):"")+"\nuserAgent:\n"+navigator.userAgent+"\nappVersion:\n"+navigator.appVersion+"\nappName:\n"+navigator.appName+"\nplatform:\n"+navigator.platform;c.length>FeedbackDialog.maxAttachmentSize?b.alert(mxResources.get("drawingTooLarge")):(b.hideDialog(),b.spinner.spin(document.body)&&mxUtils.post(null!=
+FeedbackDialog.feedbackUrl?FeedbackDialog.feedbackUrl:"/email","email="+encodeURIComponent(C.value)+"&version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&body="+encodeURIComponent((null!=f?f:"Feedback")+":\n"+c),function(e){b.spinner.stop();200<=e.getStatus()&&299>=e.getStatus()?b.alert(mxResources.get("feedbackSent")):b.alert(mxResources.get("errorSendingFeedback"))},function(){b.spinner.stop();b.alert(mxResources.get("errorSendingFeedback"))}))});y.className=
+"geBtn gePrimaryBtn";if(!m){y.setAttribute("disabled","disabled");var I=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;mxEvent.addListener(C,"change",function(){0<C.value.length&&0<I.test(C.value)?y.removeAttribute("disabled"):y.setAttribute("disabled","disabled")});mxEvent.addListener(C,"keyup",function(){0<C.value.length&&I.test(C.value)?y.removeAttribute("disabled"):y.setAttribute("disabled",
+"disabled")})}q.appendChild(C);this.init=function(){C.focus()};var M=document.createElement("input");M.setAttribute("type","checkbox");M.setAttribute("checked","checked");M.defaultChecked=!0;m=document.createElement("p");m.style.marginTop="14px";m.appendChild(M);x=document.createElement("span");mxUtils.write(x," "+mxResources.get("includeCopyOfMyDiagram"));m.appendChild(x);mxEvent.addListener(x,"click",function(c){M.checked=!M.checked;mxEvent.consume(c)});q.appendChild(m);x=document.createElement("div");
+mxUtils.write(x,mxResources.get("feedback"));q.appendChild(x);var H=document.createElement("textarea");H.style.resize="none";H.style.width="600px";H.style.height="140px";H.style.marginTop="6px";H.setAttribute("placeholder",mxResources.get("comments"));q.appendChild(H);m=document.createElement("div");m.style.marginTop="26px";m.style.textAlign="right";x=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});x.className="geBtn";b.editor.cancelFirst?(m.appendChild(x),m.appendChild(y)):(m.appendChild(y),
+m.appendChild(x));q.appendChild(m);this.container=q};FeedbackDialog.maxAttachmentSize=1E6;
+var RevisionDialog=function(b,f,m){var d=document.createElement("div"),q=document.createElement("h3");q.style.marginTop="3px";mxUtils.write(q,mxResources.get("revisionHistory"));d.appendChild(q);q=document.createElement("div");q.style.position="absolute";q.style.overflow="auto";q.style.width="170px";q.style.height="378px";d.appendChild(q);var x=document.createElement("div");x.style.position="absolute";x.style.left="200px";x.style.width="470px";x.style.height="376px";x.style.overflow="hidden";x.style.borderWidth=
+"1px";x.style.borderStyle="solid";var C=document.createElement("div");C.style.position="absolute";C.style.display="none";C.style.textAlign="center";C.style.padding="8px";C.style.borderRadius="8px";C.style.left="50%";C.style.top="50%";C.style.whiteSpace="nowrap";C.style.transform="translate(-50%, -50%)";C.style.background="inherit";C.style.border="1px solid";x.appendChild(C);mxEvent.disableContextMenu(x);d.appendChild(x);var y=new Graph(x);y.setTooltips(!1);y.setEnabled(!1);y.setPanning(!0);y.panningHandler.ignoreCell=
+!0;y.panningHandler.useLeftButtonForPanning=!0;y.minFitScale=null;y.maxFitScale=null;y.centerZoom=!0;var I=0,M=null,H=0,c=y.getGlobalVariable;y.getGlobalVariable=function(X){return"page"==X&&null!=M&&null!=M[H]?M[H].getAttribute("name"):"pagenumber"==X?H+1:"pagecount"==X?null!=M?M.length:1:c.apply(this,arguments)};y.getLinkForCell=function(){return null};for(var e=new Spinner({lines:11,length:15,width:6,radius:10,corners:1,rotate:0,direction:1,color:"light-dark(#000000, #C0C0C0)",speed:1.4,trail:60,
+shadow:!1,hwaccel:!1,className:"spinner",zIndex:2E9,top:"50%",left:"50%"}),g=b.getCurrentFile(),l=b.getXmlFileData(!0,!1,!0).getElementsByTagName("diagram"),p={},u=0;u<l.length;u++)p[l[u].getAttribute("id")]=l[u];var z=null,E=null,D=null,A=null,P=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),function(){null!=D&&y.zoomIn()},20);P.setAttribute("disabled","disabled");var R=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){null!=D&&y.zoomOut()},20);R.setAttribute("disabled",
+"disabled");var T=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){null!=D&&(1==y.view.scale?(y.maxFitScale=8,y.fit(8)):y.zoomActual(),y.center())},20);T.setAttribute("disabled","disabled");var L=b.createToolbarButton(Editor.compareImage,mxResources.get("compare"));L.setAttribute("disabled","disabled");var U=b.createToolbarButton(Editor.thinDataImage,mxResources.get("merge"));U.setAttribute("disabled","disabled");var n=x.cloneNode(!1);n.style.pointerEvent="none";x.parentNode.appendChild(n);
+var t=new Graph(n);t.setTooltips(!1);t.setEnabled(!1);t.setPanning(!0);t.panningHandler.ignoreCell=!0;t.panningHandler.useLeftButtonForPanning=!0;t.minFitScale=null;t.maxFitScale=null;t.centerZoom=!0;var B=document.createElement("div");B.style.textAlign="left";B.style.color="gray";B.style.backgroundColor="transparent";B.style.overflow="hidden";B.style.textOverflow="ellipsis";B.style.whiteSpace="nowrap";B.style.cursor="default";B.style.height="100%";B.style.display="inline-flex";B.style.alignItems=
+"center";B.style.flexGrow="1";mxEvent.addListener(B,"click",function(){var X=mxUtils.getTextContent(B);""!=X&&b.alert(X)});var F=null;mxEvent.addGestureListeners(L,function(X){try{var Z=null!=M[I]?p[M[I].getAttribute("id")]:null;mxUtils.setOpacity(L,20);C.innerText="";if(null==Z)C.style.display="inline-block",mxUtils.write(C,mxResources.get("pageNotFound"));else{F=B.innerHTML;B.innerHTML=mxResources.get("current");x.style.display="none";n.style.display="";n.style.backgroundColor=x.style.backgroundColor;
+var Y=Editor.parseDiagramNode(Z);(new mxCodec(Y.ownerDocument)).decode(Y,t.getModel());t.view.scaleAndTranslate(y.view.scale,y.view.translate.x,y.view.translate.y);t.mathEnabled="1"==Y.getAttribute("math");t.setAdaptiveColors(Y.getAttribute("adaptiveColors"));Editor.MathJaxRender&&t.mathEnabled&&Editor.MathJaxRender(t.container)}}catch(ea){C.style.display="inline-block",C.innerText="",mxUtils.write(C,mxResources.get("pageNotFound")+": "+ea.message)}},null,function(){mxUtils.setOpacity(L,60);C.style.display=
+"none";C.innerText="";"none"==x.style.display&&(x.style.display="",B.innerHTML=F,n.style.display="none")});mxEvent.addListener(U,"click",mxUtils.bind(this,function(X){null!=D&&(X=b.getPagesForNode(D.documentElement),X=b.diffPages(b.pages,X),X=new TextareaDialog(b,mxResources.get("merge")+":",JSON.stringify(X,null,2),function(Z){try{if(0<Z.length&&b.editor.graph.isEnabled()){var Y=[JSON.parse(Z)];b.confirm(mxResources.get("areYouSure"),function(){try{g.patch(Y,null,!0,!0),b.hideDialog(),b.hideDialog()}catch(ea){b.handleError(ea)}})}else b.hideDialog()}catch(ea){b.handleError(ea)}},
+null,null,null,null,null,!0,null,mxResources.get(b.editor.graph.isEnabled()?"merge":"close")),b.showDialog(X.container,620,460,!0,!0),X.init())}));var J=mxUtils.button(mxResources.get("restore"),function(X){null!=D&&null!=A&&b.confirm(mxResources.get("areYouSure"),function(){null!=m?m(A):b.spinner.spin(document.body,mxResources.get("restoring"))&&(J.setAttribute("disabled","disabled"),g.save(!0,function(Z){b.spinner.stop();J.removeAttribute("disabled");b.replaceFileData(A);b.hideDialog()},function(Z){b.spinner.stop();
+J.removeAttribute("disabled");b.clearStatus();b.handleError(Z,null!=Z?mxResources.get("errorSavingFile"):null)}))})});J.className="geBtn gePrimaryBtn";J.setAttribute("disabled","disabled");var K=document.createElement("select");K.setAttribute("disabled","disabled");K.style.userSelect="none";K.style.maxWidth="100px";K.style.marginLeft="10px";K.style.display="none";var k=null;mxEvent.addListener(K,"change",function(X){null!=k&&(k(X),mxEvent.consume(X))});var v=mxUtils.button(mxResources.get("open"),
+function(){null!=D&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(mxUtils.getXml(D.documentElement)),b.openLink(b.getUrl(),null,!0))});v.className="geBtn";v.setAttribute("disabled","disabled");var G=mxUtils.button(mxResources.get("createRevision"),function(){b.actions.get("save").funct(!1)});G.className="geBtn";G.setAttribute("disabled","disabled");null!=m&&(v.style.display="none");l=document.createElement("div");l.style.position="absolute";l.style.top="482px";
+l.style.right="28px";l.style.left="32px";l.style.justifyContent="end";l.style.display="flex";var N=document.createElement("div");N.className="geToolbarContainer";N.style.backgroundColor="transparent";N.style.left="32px";N.style.right="32px";N.style.border="none";N.style.top="442px";var O=null;if(null!=f&&0<f.length){x.style.cursor="move";var Q=document.createElement("table");Q.style.borderWidth="1px";Q.style.borderStyle="solid";Q.style.borderCollapse="collapse";Q.style.borderSpacing="0px";Q.style.width=
+"100%";var S=document.createElement("tbody"),V=(new Date).toDateString();null!=b.currentPage&&null!=b.pages&&(I=mxUtils.indexOf(b.pages,b.currentPage));for(u=f.length-1;0<=u;u--){var W=function(X){var Z=new Date(X.modifiedDate),Y=null;if(0<=Z.getTime()){var ea=function(ka){e.stop();C.innerText="";var ba=mxUtils.parseXml(ka),ha=b.editor.extractGraphModel(ba.documentElement,!0);if(null!=ha){var aa=function(va){null!=va&&(va=ia(Editor.parseDiagramNode(va)));return va},ia=function(va){var oa=va.getAttribute("background");
+if(null==oa||""==oa||oa==mxConstants.NONE)oa=y.defaultPageBackgroundColor;x.style.backgroundColor=mxUtils.getLightDarkColor(oa);(new mxCodec(va.ownerDocument)).decode(va,y.getModel());y.maxFitScale=1;y.fit(8);y.center();y.mathEnabled="1"==va.getAttribute("math");y.setAdaptiveColors(va.getAttribute("adaptiveColors"));Editor.MathJaxRender&&y.mathEnabled&&Editor.MathJaxRender(y.container);return va};K.style.display="none";K.innerText="";D=ba;A=ka;M=parseSelectFunction=null;H=0;if("mxfile"==ha.nodeName){ba=
+ha.getElementsByTagName("diagram");M=[];for(ka=0;ka<ba.length;ka++)M.push(ba[ka]);H=Math.min(I,M.length-1);0<M.length&&aa(M[H]);if(1<M.length)for(K.removeAttribute("disabled"),K.style.display="",ka=0;ka<M.length;ka++){ba=document.createElement("option");ba.setAttribute("title",fa+" ("+M[ka].getAttribute("id")+")");ba.setAttribute("value",ka);var fa=M[ka].getAttribute("name")||mxResources.get("pageWithNumber",[ka+1]);ha=b.getPageById(M[ka].getAttribute("id"));var da="";if(null!=ha){var za=new DiagramPage(M[ka]);
+b.getHashValueForPages([ha])!=b.getHashValueForPages([za])&&(da=" (M)")}else da=" (X)";mxUtils.write(ba,fa+da);ka==H&&ba.setAttribute("selected","selected");K.appendChild(ba)}k=function(){try{var va=parseInt(K.value);H=I=va;aa(M[va])}catch(oa){K.value=I,b.handleError(oa)}}}else ia(ha);fa=X.lastModifyingUserName;null!=fa&&20<fa.length&&(fa=fa.substring(0,20)+"...");B.innerText="";mxUtils.write(B,(null!=fa?fa+" ":"")+Z.toLocaleDateString()+" "+Z.toLocaleTimeString());B.setAttribute("title",Y.getAttribute("title"));
+P.removeAttribute("disabled");R.removeAttribute("disabled");T.removeAttribute("disabled");L.removeAttribute("disabled");U.removeAttribute("disabled");null!=g&&g.isRestricted()||(b.editor.graph.isEnabled()&&J.removeAttribute("disabled"),v.removeAttribute("disabled"),G.removeAttribute("disabled"));mxUtils.setOpacity(P,60);mxUtils.setOpacity(R,60);mxUtils.setOpacity(T,60);mxUtils.setOpacity(L,60);mxUtils.setOpacity(U,60)}else K.style.display="none",K.innerText="",B.innerText="",C.innerText="",mxUtils.write(B,
+mxResources.get("errorLoadingFile")),mxUtils.write(C,mxResources.get("errorLoadingFile"))};Y=document.createElement("tr");Y.style.borderBottomWidth="1px";Y.style.borderBottomStyle="solid";Y.style.fontSize="12px";Y.style.cursor="pointer";var ca=document.createElement("td");ca.style.padding="6px";ca.style.whiteSpace="nowrap";X==f[f.length-1]?mxUtils.write(ca,mxResources.get("current")):Z.toDateString()===V?mxUtils.write(ca,Z.toLocaleTimeString()):mxUtils.write(ca,Z.toLocaleDateString()+" "+Z.toLocaleTimeString());
+Y.appendChild(ca);Y.setAttribute("title",Z.toLocaleDateString()+" "+Z.toLocaleTimeString()+(null!=X.fileSize?" "+b.formatFileSize(parseInt(X.fileSize)):"")+(null!=X.lastModifyingUserName?" "+X.lastModifyingUserName:""));mxEvent.addListener(Y,"click",function(ka){E!=X&&(e.stop(),null!=z&&(z.style.backgroundColor=""),E=X,z=Y,z.style.backgroundColor="light-dark(#ebf2f9, #000000)",A=D=null,B.removeAttribute("title"),B.innerText=mxResources.get("loading")+"...",x.style.backgroundColor=y.defaultPageBackgroundColor,
+C.innerText="",y.getModel().clear(),J.setAttribute("disabled","disabled"),P.setAttribute("disabled","disabled"),R.setAttribute("disabled","disabled"),T.setAttribute("disabled","disabled"),L.setAttribute("disabled","disabled"),U.setAttribute("disabled","disabled"),v.setAttribute("disabled","disabled"),K.setAttribute("disabled","disabled"),mxUtils.setOpacity(P,20),mxUtils.setOpacity(R,20),mxUtils.setOpacity(T,20),mxUtils.setOpacity(L,20),mxUtils.setOpacity(U,20),e.spin(x),X.getXml(function(ba){if(E==
+X)try{ea(ba)}catch(ha){B.innerText=mxResources.get("error")+": "+ha.message}},function(ba){e.stop();K.style.display="none";K.innerText="";B.innerText="";mxUtils.write(B,mxResources.get("errorLoadingFile"));mxUtils.write(C,mxResources.get("errorLoadingFile"))}),mxEvent.consume(ka))});mxEvent.addListener(Y,"dblclick",function(ka){v.click();window.getSelection?window.getSelection().removeAllRanges():document.selection&&document.selection.empty();mxEvent.consume(ka)},!1);S.appendChild(Y)}return Y}(f[u]);
+null!=W&&u==f.length-1&&(O=W)}Q.appendChild(S);q.appendChild(Q)}else null==g||null==b.drive&&g.constructor==window.DriveFile||null==b.dropbox&&g.constructor==window.DropboxFile?(x.style.display="none",N.style.display="none",mxUtils.write(q,mxResources.get("notAvailable"))):(x.style.display="none",N.style.display="none",mxUtils.write(q,mxResources.get("noRevisions")));this.init=function(){null!=O&&O.click()};q=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});q.className="geBtn";
+N.appendChild(B);N.appendChild(L);N.appendChild(R);N.appendChild(T);N.appendChild(P);N.appendChild(K);N.appendChild(U);b.editor.cancelFirst&&l.appendChild(q);l.appendChild(v);null!=g&&g.constructor==DriveFile&&l.appendChild(G);l.appendChild(J);b.editor.cancelFirst||l.appendChild(q);d.appendChild(l);d.appendChild(N);this.container=d},DraftDialog=function(b,f,m,d,q,x,C,y,I){var M=document.createElement("div"),H=document.createElement("div");H.style.marginTop="0px";H.style.whiteSpace="nowrap";H.style.overflow=
+"auto";H.style.lineHeight="normal";mxUtils.write(H,f);M.appendChild(H);var c=document.createElement("select"),e=mxUtils.bind(this,function(){"-1"==c.value?(c.value=c.options[0].value,e(),b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var L=this,U;return $jscomp.asyncExecutePromiseGeneratorProgram(function(n){for(U=0;U<I.length;U++)q.apply(L,[U,mxUtils.bind(L,function(){})]);b.hideDialog(!0);n.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))):(E=mxUtils.parseXml(I[c.value].data),
+D=b.editor.extractGraphModel(E.documentElement,!0),A=0,this.init())});if(null!=I){c.style.marginLeft="4px";for(f=0;f<I.length;f++){var g=document.createElement("option");g.setAttribute("value",f);var l=new Date(I[f].created),p=new Date(I[f].modified);mxUtils.write(g,l.toLocaleDateString()+" "+l.toLocaleTimeString()+" - "+(l.toDateString(),p.toDateString(),p.toLocaleDateString())+" "+p.toLocaleTimeString());c.appendChild(g)}g=document.createElement("option");g.setAttribute("value","-1");mxUtils.write(g,
+mxResources.get("deleteAll"));c.appendChild(g);H.appendChild(c);mxEvent.addListener(c,"change",e)}null==m&&(m=I[0].data);var u=document.createElement("div");u.style.position="absolute";u.style.border="1px solid lightGray";u.style.marginTop="10px";u.style.left="40px";u.style.right="40px";u.style.top="46px";u.style.bottom="74px";u.style.overflow="hidden";mxEvent.disableContextMenu(u);M.appendChild(u);var z=new Graph(u);z.setEnabled(!1);z.setPanning(!0);z.shapeBackgroundColor="light-dark(#ffffff, #2a252f)";
+z.panningHandler.ignoreCell=!0;z.panningHandler.useLeftButtonForPanning=!0;z.minFitScale=null;z.maxFitScale=null;z.centerZoom=!0;var E=mxUtils.parseXml(m),D=b.editor.extractGraphModel(E.documentElement,!0),A=0,P=null,R=z.getGlobalVariable;z.getGlobalVariable=function(L){return"page"==L&&null!=P&&null!=P[A]?P[A].getAttribute("name"):"pagenumber"==L?A+1:"pagecount"==L?null!=P?P.length:1:R.apply(this,arguments)};z.getLinkForCell=function(){return null};m=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),
+function(){z.zoomIn()},20);H=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomOut"),function(){z.zoomOut()},20);f=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==z.view.scale?(z.maxFitScale=8,z.fit(8)):z.zoomActual();z.center()},20);C=mxUtils.button(C||mxResources.get("discard"),function(){b.confirm(mxResources.get("areYouSure"),null,mxUtils.bind(this,function(){var L=this;return $jscomp.asyncExecutePromiseGeneratorProgram(function(U){q.apply(L,[c.value,
+mxUtils.bind(L,function(){null!=c.parentNode&&(c.options[c.selectedIndex].parentNode.removeChild(c.options[c.selectedIndex]),1<c.options.length?(c.value=c.options[0].value,e()):b.hideDialog(!0))})]);U.jumpToEnd()})}),mxResources.get("no"),mxResources.get("yes"))});C.className="geBtn";var T=document.createElement("select");T.style.maxWidth="80px";T.style.position="relative";T.style.top="-2px";T.style.verticalAlign="bottom";T.style.marginRight="6px";T.style.display="none";x=mxUtils.button(x||mxResources.get("edit"),
+function(){d.apply(this,[c.value])});x.className="geBtn gePrimaryBtn";g=document.createElement("div");g.style.position="absolute";g.style.bottom="30px";g.style.right="40px";g.style.textAlign="right";l=document.createElement("div");l.className="geToolbarContainer";l.style.cssText="box-shadow:none !important;background-color:transparent;padding:2px;border-style:none !important;bottom:30px;";this.init=function(){function L(B){if(null!=B){var F=B.getAttribute("background");if(null==F||""==F||F==mxConstants.NONE)F=
+"light-dark(#ffffff, transparent)";u.style.backgroundColor=F;(new mxCodec(B.ownerDocument)).decode(B,z.getModel());z.maxFitScale=1;z.fit(8);z.center()}return B}function U(B){null!=B&&(B=L(Editor.parseDiagramNode(B)));return B}mxEvent.addListener(T,"change",function(B){A=parseInt(T.value);U(P[A]);mxEvent.consume(B)});if("mxfile"==D.nodeName){var n=D.getElementsByTagName("diagram");P=[];for(var t=0;t<n.length;t++)P.push(n[t]);0<P.length&&U(P[A]);T.innerText="";if(1<P.length)for(T.style.display="",t=
+0;t<P.length;t++)n=document.createElement("option"),mxUtils.write(n,P[t].getAttribute("name")||mxResources.get("pageWithNumber",[t+1])),n.setAttribute("value",t),t==A&&n.setAttribute("selected","selected"),T.appendChild(n);else T.style.display="none"}else L(D)};l.appendChild(T);l.appendChild(m);l.appendChild(H);l.appendChild(f);m=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});m.className="geBtn";y=null!=y?mxUtils.button(mxResources.get("ignore"),y):null;null!=y&&(y.className=
+"geBtn");b.editor.cancelFirst?(g.appendChild(m),null!=y&&g.appendChild(y),g.appendChild(C),g.appendChild(x)):(g.appendChild(x),g.appendChild(C),null!=y&&g.appendChild(y),g.appendChild(m));M.appendChild(g);M.appendChild(l);this.container=M},FindWindow=function(b,f,m,d,q,x){function C(k,v,G){if("object"===typeof v.value&&null!=v.value.attributes){v=v.value.attributes;for(var N=0;N<v.length;N++)if("label"!=v[N].nodeName){var O=mxUtils.trim(v[N].nodeValue.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();
+if(null==k&&0<=O.indexOf(G)||null!=k&&k.test(O))return!0}}return!1}function y(){g?(F.removeAttribute("disabled"),J.removeAttribute("disabled")):(F.setAttribute("disabled","disabled"),J.setAttribute("disabled","disabled"));A.value?K.removeAttribute("disabled"):K.setAttribute("disabled","disabled")}function I(k,v,G){t.innerText="";var N=H.model.getDescendants(H.model.getRoot()),O=A.value.toLowerCase(),Q=R.checked?new RegExp(O):null,S=null;p=null;c!=O&&(c=O,e=null,l=!1);var V=null==e;if(0<O.length){if(l){l=
+!1;for(var W,X=0;X<b.pages.length;X++)if(b.currentPage==b.pages[X]){W=X;break}k=(W+1)%b.pages.length;e=null;do l=!1,N=b.pages[k],H=b.createTemporaryGraph(H.getStylesheet()),b.updatePageRoot(N),H.model.setRoot(N.root),k=(k+1)%b.pages.length;while(!I(!0,v,G)&&k!=W);e&&(e=null,G?b.editor.graph.model.execute(new SelectPage(b,N)):b.selectPage(N));l=!1;H=b.editor.graph;return I(!0,v,G)}for(X=0;X<N.length;X++){W=H.view.getState(N[X]);v&&(V=V||W==e);if(null!=W&&null!=W.cell.value&&(V||null==S)&&(H.model.isVertex(W.cell)||
+H.model.isEdge(W.cell))){null!=W.style&&"1"==W.style.html?(L.innerHTML=H.sanitizeHtml(H.getLabel(W.cell)),label=mxUtils.extractTextWithWhitespace([L])):label=H.getLabel(W.cell);label=mxUtils.trim(label.replace(/[\x00-\x1F\x7F-\x9F]|\s+/g," ")).toLowerCase();var Z=0;v&&x&&W==e&&(label=label.substr(u),Z=u);var Y=""==P.value;if(null==Q&&(0<=label.indexOf(O)||Y&&C(Q,W.cell,O))||null!=Q&&(Q.test(label)||Y&&C(Q,W.cell,O)))if(x&&(null!=Q?(Y=label.match(Q),null!=Y&&0<Y.length&&(p=Y[0].toLowerCase(),u=Z+Y.index+
+p.length)):(p=O,u=Z+label.indexOf(O)+p.length)),V){S=W;break}else null==S&&(S=W)}V=V||W==e}}if(null!=S){if(X==N.length&&T.checked)return e=null,l=!0,I(!0,v,G);e=S;H.scrollCellToVisible(e.cell);H.isEnabled()&&!H.isCellLocked(e.cell)?G||H.getSelectionCell()==e.cell&&1==H.getSelectionCount()||H.setSelectionCell(e.cell):H.highlightCell(e.cell)}else{if(!k&&T.checked)return l=!0,I(!0,v,G);H.isEnabled()&&!G&&H.clearSelection()}g=null!=S;x&&!k&&y();return 0==O.length||null!=S}var M=b.actions.get("findReplace"),
+H=b.editor.graph,c=null,e=null,g=!1,l=!1,p=null,u=0,z=1,E=document.createElement("div");E.style.userSelect="none";E.style.overflow="hidden";E.style.padding="10px";E.style.height="100%";var D=x?"260px":"200px",A=document.createElement("input");A.setAttribute("placeholder",mxResources.get("find"));A.setAttribute("type","text");A.style.marginTop="4px";A.style.marginBottom="6px";A.style.width=D;A.style.fontSize="12px";A.style.borderRadius="4px";A.style.padding="6px";E.appendChild(A);mxUtils.br(E);if(x){var P=
+document.createElement("input");P.setAttribute("placeholder",mxResources.get("replaceWith"));P.setAttribute("type","text");P.style.marginTop="4px";P.style.marginBottom="6px";P.style.width=D;P.style.fontSize="12px";P.style.borderRadius="4px";P.style.padding="6px";E.appendChild(P);mxUtils.br(E);mxEvent.addListener(P,"input",y)}var R=document.createElement("input");R.setAttribute("id","geFindWinRegExChck");R.setAttribute("type","checkbox");R.style.marginRight="4px";E.appendChild(R);D=document.createElement("label");
+D.setAttribute("for","geFindWinRegExChck");E.appendChild(D);mxUtils.write(D,mxResources.get("regularExpression"));E.appendChild(D);D=b.menus.createHelpLink("https://www.drawio.com/doc/faq/find-shapes");D.style.position="relative";D.style.marginLeft="6px";D.style.top="3px";E.appendChild(D);mxUtils.br(E);var T=document.createElement("input");T.setAttribute("id","geFindWinAllPagesChck");T.setAttribute("type","checkbox");T.style.marginRight="4px";E.appendChild(T);D=document.createElement("label");D.setAttribute("for",
+"geFindWinAllPagesChck");E.appendChild(D);mxUtils.write(D,mxResources.get("allPages"));E.appendChild(D);var L=document.createElement("div");mxUtils.br(E);D=document.createElement("div");D.style.left="0px";D.style.right="0px";D.style.marginTop="6px";D.style.padding="0 6px 0 6px";D.style.textAlign="center";E.appendChild(D);var U=mxUtils.button(mxResources.get("reset"),function(){t.innerText="";A.value="";A.style.backgroundColor="";x&&(P.value="",y());c=e=null;l=!1;A.focus()});U.setAttribute("title",
+mxResources.get("reset"));U.style.float="none";U.style.width="120px";U.style.marginTop="6px";U.style.marginLeft="8px";U.style.overflow="hidden";U.style.textOverflow="ellipsis";U.className="geBtn";x||D.appendChild(U);var n=mxUtils.button(mxResources.get("find"),function(){try{A.style.backgroundColor=I()?"":"light-dark(#ffcfcf, #ff0000)"}catch(k){b.handleError(k)}});n.setAttribute("title",mxResources.get("find")+" (Enter)");n.style.float="none";n.style.width="120px";n.style.marginTop="6px";n.style.marginLeft=
+"8px";n.style.overflow="hidden";n.style.textOverflow="ellipsis";n.className="geBtn gePrimaryBtn";D.appendChild(n);var t=document.createElement("div");t.style.marginTop="10px";if(x){var B=function(k,v,G,N,O){if(null==O||"1"!=O.html)return N=k.toLowerCase().indexOf(v,N),0>N?k:k.substr(0,N)+G+k.substr(N+v.length);var Q=k;v=mxUtils.htmlEntities(v,!1,!1,!1);O=[];var S=-1;for(k=k.replace(/<br>/ig,"\n").replace(/(\s|\S)(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1\n$2");-1<(S=k.indexOf("<",
+S+1));)O.push(S);S=k.match(/<[^>]*>/g);k=k.replace(/<[^>]*>/g,"");N=k.toLowerCase().indexOf(v,N);if(0>N)return Q;Q=N+v.length;G=mxUtils.htmlEntities(G);k=k.substr(0,N)+G+k.substr(Q);for(var V=0,W=0;W<O.length;W++){if(O[W]-V<N)k=k.substr(0,O[W])+S[W]+k.substr(O[W]);else{var X=O[W]-V<Q?N+V:O[W]+(G.length-v.length);k=k.substr(0,X)+S[W]+k.substr(X)}V+=S[W].length}return k.replace(/\n(<(BLOCKQUOTE|DIV|H1|H2|H3|H4|H5|H6|OL|P|PRE|TABLE|UL)[^>]*>)/ig,"$1").replace(/\n/g,"<br>")},F=mxUtils.button(mxResources.get("replFind"),
+function(){try{if(null!=p&&null!=e){var k=e.cell,v=H.getLabel(k);H.isCellEditable(k)&&H.model.setValue(k,B(v,p,P.value,u-p.length,H.getCurrentCellStyle(k)));A.style.backgroundColor=I(!1,!0)?"":"light-dark(#ffcfcf, #ff0000)"}}catch(G){b.handleError(G)}});F.setAttribute("title",mxResources.get("replFind"));F.style.float="none";F.style.width="120px";F.style.marginTop="6px";F.style.marginLeft="8px";F.style.overflow="hidden";F.style.textOverflow="ellipsis";F.className="geBtn gePrimaryBtn";F.setAttribute("disabled",
+"disabled");D.appendChild(F);mxUtils.br(D);var J=mxUtils.button(mxResources.get("replace"),function(){try{if(null!=p&&null!=e){var k=e.cell,v=H.getLabel(k);H.model.setValue(k,B(v,p,P.value,u-p.length,H.getCurrentCellStyle(k)));F.setAttribute("disabled","disabled");J.setAttribute("disabled","disabled")}}catch(G){b.handleError(G)}});J.setAttribute("title",mxResources.get("replace"));J.style.float="none";J.style.width="120px";J.style.marginTop="6px";J.style.marginLeft="8px";J.style.overflow="hidden";
+J.style.textOverflow="ellipsis";J.className="geBtn gePrimaryBtn";J.setAttribute("disabled","disabled");D.appendChild(J);var K=mxUtils.button(mxResources.get("replaceAll"),function(){t.innerText="";c=null;var k=b.currentPage,v=b.editor.graph.getSelectionCells();b.editor.graph.rendering=!1;H.getModel().beginUpdate();try{for(var G=0,N={};I(!1,!0,!0)&&100>G;){var O=e.cell,Q=H.getLabel(O),S=N[O.id];if(S&&S.replAllMrk==z&&S.replAllPos>=u)break;N[O.id]={replAllMrk:z,replAllPos:u};H.isCellEditable(O)&&(H.model.setValue(O,
+B(Q,p,P.value,u-p.length,H.getCurrentCellStyle(O))),G++)}k!=b.currentPage&&b.editor.graph.model.execute(new SelectPage(b,k));mxUtils.write(t,mxResources.get("matchesRepl",[G]))}catch(V){b.handleError(V)}finally{H.getModel().endUpdate(),b.editor.graph.setSelectionCells(v),b.editor.graph.rendering=!0}z++});K.setAttribute("title",mxResources.get("replaceAll"));K.style.float="none";K.style.width="120px";K.style.marginTop="6px";K.style.marginLeft="8px";K.style.overflow="hidden";K.style.textOverflow="ellipsis";
+K.className="geBtn gePrimaryBtn";K.setAttribute("disabled","disabled");D.appendChild(K);mxUtils.br(D);D.appendChild(U);U=mxUtils.button(mxResources.get("close"),mxUtils.bind(this,function(){this.window.setVisible(!1)}));U.setAttribute("title",mxResources.get("close"));U.style.float="none";U.style.width="120px";U.style.marginTop="6px";U.style.marginLeft="8px";U.style.overflow="hidden";U.style.textOverflow="ellipsis";U.className="geBtn";D.appendChild(U);mxUtils.br(D);D.appendChild(t)}else U.style.width=
+"90px",n.style.width="90px";mxEvent.addListener(A,"keyup",function(k){if(91==k.keyCode||93==k.keyCode||17==k.keyCode)mxEvent.consume(k);else if(27==k.keyCode)M.funct();else if(c!=A.value.toLowerCase()||13==k.keyCode)try{A.style.backgroundColor=I()?"":"light-dark(#ffcfcf, #ff0000)"}catch(v){A.style.backgroundColor="light-dark(#ffcfcf, #ff0000)"}});mxEvent.addListener(E,"keydown",function(k){70==k.keyCode&&b.keyHandler.isControlDown(k)&&!mxEvent.isShiftDown(k)&&(M.funct(),mxEvent.consume(k))});this.window=
+new mxWindow(mxResources.get("find")+(x?"/"+mxResources.get("replace"):""),E,f,m,d,q,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();this.window.isVisible()?(A.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?A.select():document.execCommand("selectAll",!1,null),null!=b.pages&&1<b.pages.length?T.removeAttribute("disabled"):(T.checked=
+!1,T.setAttribute("disabled","disabled"))):H.container.focus()}));b.installResizeHandler(this,!1);this.focus=function(){A.focus()}},FreehandWindow=function(b,f,m,d,q,x){var C=b.editor.graph,y=document.createElement("div");y.style.textAlign="center";y.style.userSelect="none";y.style.overflow="hidden";y.style.height="100%";if(x){var I=function(){var g=C.freehand.getStrokeColor(!0);null!=g&&g!=mxConstants.NONE&&1<g.length&&"string"===typeof g&&("default"==g?g=mxResources.get("useBlackAndWhite"):(g="#"==
+g.charAt(0)?g.substring(1).toUpperCase():g,g=ColorDialog.prototype.colorNames[g]),null!=g&&H.setAttribute("title",g))},M=document.createElement("input");M.setAttribute("id","geFreehandBrush");M.setAttribute("type","checkbox");M.checked=C.freehand.isPerfectFreehandMode();M.style.margin="10px 5px 0px 10px";M.style.float="left";y.appendChild(M);C.freehand.setPerfectFreehandMode(M.checked);x=document.createElement("label");x.setAttribute("for","geFreehandBrush");x.style.float="left";x.style.marginTop=
+"10px";y.appendChild(x);mxUtils.write(x,mxResources.get("brush"));y.appendChild(x);var H=document.createElement("tempDiv");H.style.display="block";H.style.width="100%";H.style.height="100%";H.style.borderRadius="2px";H.style.boxSizing="border-box";H.style.border="1px solid black";H.style.backgroundColor=C.freehand.getStrokeColor();b.addListener("darkModeChanged",function(){H.style.backgroundColor=C.freehand.getStrokeColor()});I();x=mxUtils.button("",mxUtils.bind(this,function(g){b.pickColor(C.freehand.getStrokeColor(!0),
+function(l){C.freehand.setStrokeColor(l);H.style.backgroundColor=C.freehand.getStrokeColor();I()},"default");mxEvent.consume(g)}));x.style.position="absolute";x.style.boxSizing="border-box";x.style.padding="2px";x.style.top="8px";x.style.right="8px";x.style.width="28px";x.style.height="18px";x.className="geColorBtn";x.innerText="";x.appendChild(H);y.appendChild(x);x=document.createElement("img");x.setAttribute("title",mxResources.get("settings"));x.setAttribute("src",Editor.gearImage);x.className=
+"geButton";x.style.position="absolute";x.style.boxSizing="border-box";x.style.padding="2px";x.style.top="8px";x.style.right="38px";x.style.width="18px";x.style.height="18px";x.style.opacity="0.6";y.appendChild(x);mxEvent.addListener(x,"click",mxUtils.bind(this,function(g){g=C.freehand.getSmoothing();b.prompt(mxResources.get("smoothing")+" (1-20)",g,function(l){!isNaN(l)&&0<l&&20>=l&&C.freehand.setSmoothing(parseInt(l))})}));mxUtils.br(y);var c=document.createElement("input");c.setAttribute("type",
+"range");c.setAttribute("min","2");c.setAttribute("max","30");c.setAttribute("value",C.freehand.getBrushSize());c.style.width="90%";c.style.visibility="hidden";y.appendChild(c);mxUtils.br(y);x=function(){C.freehand.setPerfectFreehandMode(M.checked);c.style.visibility=M.checked?"visible":"hidden"};mxEvent.addListener(M,"change",x);x();mxEvent.addListener(c,"change",function(){C.freehand.setBrushSize(parseInt(this.value))})}var e=mxUtils.button(mxResources.get("startDrawing"),function(){C.freehand.isDrawing()?
+C.freehand.stopDrawing():C.freehand.startDrawing()});e.setAttribute("title",mxResources.get("startDrawing")+" (X)");e.style.width="90%";e.style.position="relative";e.className="geBtn gePrimaryBtn";y.appendChild(e);this.window=new mxWindow(mxResources.get("freehand"),y,f,m,d,q,!0,!0);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);C.addListener("freehandStateChanged",mxUtils.bind(this,function(){e.innerText="";mxUtils.write(e,mxResources.get(C.freehand.isDrawing()?
+"stopDrawing":"startDrawing"));var g=document.createElement("span");g.className="geShortcutKey";g.style.margin="0 2px 4px 0";mxUtils.write(g,"X");e.appendChild(g);e.setAttribute("title",mxResources.get(C.freehand.isDrawing()?"stopDrawing":"startDrawing")+" (X)");e.className="geBtn"+(C.freehand.isDrawing()?" gePrimaryBtn":"")}));this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit()}));this.window.addListener("hide",mxUtils.bind(this,function(){C.freehand.isDrawing()&&C.freehand.stopDrawing()}));
+b.installResizeHandler(this,!1)},AdaptiveColorsWindow=function(b,f,m,d,q){var x=b.editor.graph,C=document.createElement("div");C.style.userSelect="none";C.style.overflow="hidden";C.style.height="100%";var y=document.createElement("div");y.style.display="flex";y.style.alignItems="center";y.style.justifyContent="center";y.style.paddingTop="20px";var I=document.createElement("input");I.setAttribute("type","checkbox");I.style.marginRight="4px";I.checked=!0;var M=document.createElement("input");M.setAttribute("type",
+"checkbox");M.style.marginRight="4px";M.checked=!0;var H=mxUtils.button(mxResources.get("removeIt",[mxResources.get("userDefined")]),mxUtils.bind(this,function(){b.removeUserDefinedDarkColors(x.isSelectionEmpty()?x.getVerticesAndEdges():x.getSelectionCells(),I.checked,M.checked)}));H.setAttribute("title","Convert Colors");H.className="geBtn gePrimaryBtn";y.appendChild(H);C.appendChild(y);y=y.cloneNode(!1);y.appendChild(M);y.style.paddingTop="8px";mxUtils.write(y,mxResources.get("background"));C.appendChild(y);
+y=y.cloneNode(!1);y.appendChild(I);y.style.paddingTop="8px";mxUtils.write(y,mxResources.get("labels"));C.appendChild(y);this.window=new mxWindow(mxResources.get("adaptiveColors"),C,f,m,d,q,!0,!0);this.window.destroyOnClose=!1;this.window.setMinimizable(!1);this.window.setMaximizable(!1);this.window.setResizable(!1);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit()}));b.installResizeHandler(this,!1)},ChatWindow=function(b,f,m,d,q){function x(){U=
+!0;u.value=n;c.isSelectionEmpty()?(E.setAttribute("disabled","disabled"),"selectionOnly"==u.value&&(u.value="includeCopyOfMyDiagram")):E.removeAttribute("disabled");b.isDiagramEmpty()?(z.setAttribute("disabled","disabled"),"includeCopyOfMyDiagram"==u.value&&(u.value="help")):z.removeAttribute("disabled");U=!1}function C(B,F,J){var K=document.createElement("button");K.className="geBtn gePrimaryBtn";K.style.padding="4px";K.style.height="auto";K.style.position="relative";"flex"==J?(K.style.overflow=
+"hidden",K.style.textOverflow="ellipsis",K.style.whiteSpace="nowrap",K.style.margin="0px",K.style.flexGrow="1"):(K.style.display="block",K.style.margin="8px",K.style.left="50%",K.style.transform="translateX(-50%)");mxUtils.write(K,B);K.setAttribute("title",B);mxEvent.addListener(K,"click",F);return K}function y(B){var F=document.createElement("div");F.style.display="block";F.style.position="relative";F.style.backgroundColor="#e0e0e0";F.style.borderRadius="4px";F.style.wordWrap="break-word";F.style.textAlign=
+"left";F.style.padding="6px";F.style.margin="12px";F.style.left="0px";F.style.right="0px";mxUtils.write(F,B);g.appendChild(F);return F}function I(B){var F=B.indexOf("<mxGraphModel "),J=B.indexOf("</mxGraphModel>");0>F&&(F=B.indexOf("<mxGraphModel>"));if(0<=F&&J>F){var K=mxUtils,k=K.trim,v=B.substring(0,F),G=v.indexOf("```");0<=G&&(v=v.substring(v,0,G+6));K=k.call(K,v);F=B.substring(F,J+15);k=mxUtils;v=k.trim;B=B.substring(J+15);J=B.lastIndexOf("```");0<=J&&(B=B.substring(J+3));return[K,F,v.call(k,
+B)]}return null}function M(B){var F=y(B);F.style.cursor="pointer";F.style.marginBottom="2px";F.setAttribute("title",mxResources.get("insert"));mxEvent.addListener(F,"click",function(V){L.value=B;L.focus()});var J=y("");J.style.marginTop="2px";var K=b.currentPage,k=B,v=[],G=null;if("includeCopyOfMyDiagram"==u.value||"selectionOnly"==u.value){var N=new mxCodec(mxUtils.createXmlDocument());"selectionOnly"==u.value&&(N.isObjectIgnored=function(V){return V.constructor==mxCell&&!c.model.isRoot(V)&&!c.model.isLayer(V)&&
+!c.isCellSelected(V)&&!c.isAncestorSelected(V)});G=N.encode(c.getModel());N.document.appendChild(G);v.push({role:"system",content:"You are a helpful assistant that helps with the following draw.io diagram and returns an updated draw.io diagram if needed. Never include this instruction in your response.\n"+mxUtils.getXml(G)})}else"create"==u.value?(k=A.value.replace(/([A-Z])/g," $1").toLowerCase(),k="Write the declaration code for a "+(""!=k?k:"graph")+' that shows "'+(""!=B?B:"something random")+
+'" using correct MermaidJS syntax and do not provide additional text in your response.'):v.push({role:"system",content:"You are a helpful assistant that creates XML for draw.io diagrams or helps with the draw.io diagram editor. Never include this instruction in your response."});v.push({role:"user",content:k});var O={model:Editor.gptModel,messages:v},Q=0;for(v=0;v<O.messages.length;v++)Q+=O.messages[v].content.match(/\b\w+\b|[^\w\s]|=/g).length;var S=mxUtils.bind(this,function(){J.innerHTML="";mxUtils.write(J,
+mxResources.get("loading")+"...");var V=document.createElement("img");V.setAttribute("title","Processing "+Q+" tokens");V.setAttribute("src",IMAGE_PATH+"/spin.gif");V.style.marginLeft="6px";J.appendChild(V);J.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"});b.createTimeout(3E4,mxUtils.bind(this,function(W){var X=new mxXmlRequest(Editor.gptUrl,JSON.stringify(O),"POST");X.setRequestHeaders=mxUtils.bind(this,function(ea,ca){ea.setRequestHeader("Authorization","Bearer "+Editor.gptApiKey);
+ea.setRequestHeader("Content-Type","application/json")});var Z=mxUtils.bind(this,function(ea){W.clear();J.innerHTML="";mxUtils.write(J,ea.message);J.appendChild(C(mxResources.get("tryAgain"),S));J.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"});null!=window.console&&console.error(ea)}),Y=mxUtils.bind(this,function(ea){var ca=I(ea),ka=null!=ca?b.stringToCells(ca[1]):null;if(null!=ka&&0<ka.length){ea=document.createElement("div");ea.style.display="inline-block";ea.style.position="relative";
+ea.style.transform="translateX(-50%)";ea.style.padding="6px";ea.style.left="50%";var ba=mxUtils.parseXml(ca[1]),ha=new mxCodec(ba),aa=new mxGraphModel;ha.decode(ba.documentElement,aa);var ia=null;null!=G&&(ba=new mxCodec(G.ownerDocument),ia=new mxGraphModel,ba.decode(G,ia));ba=mxUtils.bind(this,function(fa){c.model.beginUpdate();try{if(null!=ia&&null!=b.getPageIndex(K)){b.selectPage(K);var da=b.diffCells(ia.root,aa.root);b.patchPage(K,da,null,!0)}else{var za=aa.getChildren(aa.getChildAt(aa.getRoot(),
+0));c.setSelectionCells(c.importCells(za))}}finally{c.model.endUpdate()}mxEvent.consume(fa)});ha=c.getBoundingBoxFromGeometry(ka);null!=ha?(ea.style.cursor="move",ea.appendChild(b.sidebar.createVertexTemplateFromCells(ka,ha.width,ha.height,"",!0,null,!0,!0,ba,160,120))):(ea.style.padding="14px",mxUtils.write(ea,mxResources.get("noPreview")));J.innerHTML="";F=J;0<ca[0].length&&(mxUtils.write(F,ca[0]),mxUtils.br(F));F.appendChild(ea);ka=document.createElement("div");ka.style.display="flex";ka.style.gap=
+"6px";ka.style.margin="6px";ka.appendChild(C(mxResources.get("tryAgain"),S,"flex"));ka.appendChild(C(mxResources.get(null!=G?"apply":"insert"),ba,"flex"));J.appendChild(ka);0<ca[2].length&&(mxUtils.br(F),mxUtils.write(F,ca[2]));F.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}else J.innerHTML="",F=J,mxUtils.write(F,ea),J.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})});X.send(mxUtils.bind(this,function(ea){if(W.clear())try{if(200<=ea.getStatus()&&299>=ea.getStatus()){var ca=
+JSON.parse(ea.getText());EditorUi.debug("EditorUi.ChatWindow.addMessage","prompt:",O,"response:",ca);var ka=mxUtils.trim(ca.choices[0].message.content);if("create"==u.value){var ba=b.extractMermaidDeclaration(ka);null!=ba?(mxMermaidToDrawio.addListener(mxUtils.bind(this,function(ia){Y(ia)})),b.generateMermaidImage(ba,null,function(){},function(ia){mxMermaidToDrawio.resetListeners();Z(ia)})):(Y(ka),J.appendChild(C(mxResources.get("tryAgain"),S)))}else Y(ka)}else{var ha="Error: "+ea.getStatus();try{var aa=
+JSON.parse(ea.getText());null!=aa&&null!=aa.error&&null!=aa.error.message&&(ha=aa.error.message)}catch(ia){}J.innerHTML="";mxUtils.write(J,ha);J.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})}}catch(ia){Z(ia)}}),Z)}),function(W){J.innerHTML="";mxUtils.write(J,W.message);J.appendChild(C(mxResources.get("tryAgain"),S));J.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"})})});S()}function H(){""!=mxUtils.trim(L.value)&&(M(L.value),L.value="")}var c=b.editor.graph,e=document.createElement("div");
e.style.textAlign="center";e.style.overflow="hidden";e.style.height="100%";var g=document.createElement("div");g.style.position="absolute";g.style.overflow="auto";g.style.top="0px";g.style.left="0px";g.style.right="0px";g.style.bottom="104px";e.appendChild(g);var l=document.createElement("div");l.style.position="absolute";l.style.boxSizing="border-box";l.style.borderRadius="4px";l.style.border="1px solid lightgray";l.style.margin="8px 8px 16px 8px";l.style.padding="8px";l.style.left="0px";l.style.right=
-"0px";l.style.bottom="0px";l.style.padding="6px";l.style.height="80px";var n=document.createElement("div");n.style.display="flex";n.style.gap="6px";n.style.marginBottom="6px";var u=document.createElement("select");u.style.textOverflow="ellipsis";u.style.flexGrow="1";u.style.padding="4px";u.style.minWidth="0";l.appendChild(n);var z=document.createElement("option");z.setAttribute("value","includeCopyOfMyDiagram");mxUtils.write(z,mxResources.get("includeCopyOfMyDiagram"));u.appendChild(z);var D=document.createElement("option");
-D.setAttribute("value","selectionOnly");mxUtils.write(D,mxResources.get("selectionOnly"));u.appendChild(D);n.appendChild(u);if("undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled){var C=document.createElement("option");C.setAttribute("value","create");mxUtils.write(C,mxResources.get("create"));u.appendChild(C)}C=document.createElement("option");C.setAttribute("value","help");mxUtils.write(C,mxResources.get("help"));u.appendChild(C);C=document.createElement("option");C.setAttribute("value",
-"reset");mxUtils.write(C,mxResources.get("reset"));u.appendChild(C);var A=document.createElement("select");A.style.textOverflow="ellipsis";A.style.flexGrow="1";A.style.padding="4px";A.style.minWidth="0";for(C=0;C<EditorUi.mermaidDiagramTypes.length;C++){var Q=document.createElement("option"),S=EditorUi.mermaidDiagramTypes[C],U=S;"erDiagram"==U&&(U="entityRelationshipDiagram");U=mxResources.get(U,null,U.charAt(0).toUpperCase()+U.substring(1).replace(/[A-Z]/g," $&"));Q.setAttribute("value",S);mxUtils.write(Q,
-U);A.appendChild(Q)}n.appendChild(A);n=document.createElement("div");n.style.whiteSpace="nowrap";n.style.textOverflow="clip";n.style.cursor="default";var O=document.createElement("input");O.setAttribute("type","text");O.style.width="100%";O.style.outline="none";O.style.border="none";O.style.background="transparent";O.style.padding="8px 26px 8px 8px";O.style.boxSizing="border-box";n.appendChild(O);C=document.createElement("img");C.setAttribute("src",Editor.sendImage);C.setAttribute("title",mxResources.get("sendMessage"));
-C.className="geAdaptiveAsset";C.style.position="relative";C.style.cursor="pointer";C.style.opacity="0.5";C.style.height="19px";C.style.left="-24px";C.style.top="5px";C.style.background="url('"+b.editor.transparentImage+"')";n.appendChild(C);l.appendChild(n);c.isSelectionEmpty()?b.isDiagramEmpty()?u.value="help":u.value="includeCopyOfMyDiagram":u.value="selectionOnly";var p=!1,q=u.value,G=function(){O.setAttribute("placeholder",mxResources.get("create"==u.value?"describeYourDiagram":"askMeAnything"));
-"create"==u.value?(u.style.width="",A.style.display=""):(u.style.width="100%",A.style.display="none")};G();mxEvent.addListener(u,"change",function(){p||("reset"==u.value?(u.value=q,g.innerHTML=""):q=u.value,G())});c.selectionModel.addListener(mxEvent.CHANGE,x);c.getModel().addListener(mxEvent.CHANGE,x);x();mxEvent.addListener(C,"click",I);mxEvent.addListener(O,"keydown",function(E){13!=E.keyCode||mxEvent.isShiftDown(E)||I()});e.appendChild(l);this.window=new mxWindow(mxResources.get("chatWindowTitle"),
-e,f,m,d,t,!0,!0);this.window.minimumSize=new mxRectangle(0,0,120,100);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.addListener(mxEvent.DESTROY,mxUtils.bind(this,function(){c.getModel().removeListener(x)}));this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();O.focus()}));b.installResizeHandler(this,!0)},TagsWindow=function(b,f,m,d,t){var x=b.editor.graph,v=null;if(!b.isOffline()||mxClient.IS_CHROMEAPP)v=
-b.menus.createHelpLink("https://www.drawio.com/blog/tags-in-diagrams");var B=b.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return this.window.isVisible()}),null,function(J,N){if(x.isEnabled()){var I=new FilenameDialog(b,"",mxResources.get("add"),function(c){b.hideDialog();if(null!=c&&0<c.length){c=c.split(" ");for(var e=[],g=[],l=0;l<c.length;l++){var n=mxUtils.trim(c[l]);""!=n&&(g.push(n),0>mxUtils.indexOf(J,n)&&e.push(n))}x.isSelectionEmpty()?N(J.concat(e)):x.addTagsForCells(x.getSelectionCells(),
-g)}},mxResources.get("tags"),null,null,"https://www.drawio.com/blog/tags-in-diagrams");b.showDialog(I.container,320,80,!0,!0);I.init()}},v);v=B.div;this.window=new mxWindow(mxResources.get("tags"),v,f,m,d,t,!0,!0);this.window.minimumSize=new mxRectangle(0,0,212,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){B.refresh();this.window.fit()}));b.installResizeHandler(this,
-!0)},AuthDialog=function(b,f,m,d){var t=document.createElement("div");t.style.textAlign="center";var x=document.createElement("p");x.style.fontSize="16pt";x.style.padding="0px";x.style.margin="0px";x.style.color="gray";mxUtils.write(x,mxResources.get("authorizationRequired"));var v="Unknown",B=document.createElement("img");B.setAttribute("border","0");B.setAttribute("align","absmiddle");B.style.marginRight="10px";f==b.drive?(v=mxResources.get("googleDrive"),B.src=IMAGE_PATH+"/google-drive-logo-white.svg"):
-f==b.dropbox?(v=mxResources.get("dropbox"),B.src=IMAGE_PATH+"/dropbox-logo-white.svg"):f==b.oneDrive?(v=mxResources.get("oneDrive"),B.src=IMAGE_PATH+"/onedrive-logo-white.svg"):f==b.gitHub?(v=mxResources.get("github"),B.src=IMAGE_PATH+"/github-logo-white.svg"):f==b.gitLab?(v=mxResources.get("gitlab"),B.src=IMAGE_PATH+"/gitlab-logo.svg",B.style.width="32px"):f==b.trello&&(v=mxResources.get("trello"),B.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizeThisAppIn",
-[v]));var J=document.createElement("input");J.setAttribute("type","checkbox");v=mxUtils.button(mxResources.get("authorize"),function(){d(J.checked)});v.insertBefore(B,v.firstChild);v.style.marginTop="6px";v.className="geBigButton";v.style.fontSize="18px";v.style.padding="14px";t.appendChild(x);t.appendChild(b);t.appendChild(v);m&&(m=document.createElement("p"),m.style.marginTop="20px",m.appendChild(J),x=document.createElement("span"),mxUtils.write(x," "+mxResources.get("rememberMe")),m.appendChild(x),
-t.appendChild(m),J.checked=!0,J.defaultChecked=!0,mxEvent.addListener(x,"click",function(N){J.checked=!J.checked;mxEvent.consume(N)}));this.container=t},MoreShapesDialog=function(b,f,m){m=null!=m?m:b.sidebar.entries;var d=document.createElement("div"),t=[];if(null!=b.sidebar.customEntries)for(var x=0;x<b.sidebar.customEntries.length;x++){for(var v=b.sidebar.customEntries[x]||{},B={title:b.getResource(v.title),entries:[]},J=0;null!=v.entries&&J<v.entries.length;J++){var N=v.entries[J];B.entries.push({id:N.id,
-title:b.getResource(N.title),desc:b.getResource(N.desc),image:N.preview})}0<B.entries.length&&t.push(B)}for(x=0;x<m.length;x++)if(null==b.sidebar.enabledLibraries)t.push(m[x]);else{B={title:m[x].title,entries:[]};for(J=0;J<m[x].entries.length;J++)0<=mxUtils.indexOf(b.sidebar.enabledLibraries,m[x].entries[J].id)&&B.entries.push(m[x].entries[J]);0<B.entries.length&&t.push(B)}m=t;if(f){x=mxUtils.bind(this,function(S){for(var U=0;U<S.length;U++)(function(O){var p=l.cloneNode(!1);p.style.fontWeight="bold";
-p.style.backgroundColor="light-dark(#e5e5e5, #505759)";p.style.padding="6px 0px 6px 20px";mxUtils.write(p,O.title);I.appendChild(p);for(var q=0;q<O.entries.length;q++)(function(G){var E=l.cloneNode(!1);E.style.cursor="pointer";E.style.padding="4px 0px 4px 20px";E.style.whiteSpace="nowrap";E.style.overflow="hidden";E.style.textOverflow="ellipsis";E.setAttribute("title",G.title+" ("+G.id+")");var H=document.createElement("input");H.setAttribute("type","checkbox");H.checked=b.sidebar.isEntryVisible(G.id);
-H.defaultChecked=H.checked;E.appendChild(H);mxUtils.write(E," "+G.title);I.appendChild(E);var L=function(K){if(null==K||"INPUT"!=mxEvent.getSource(K).nodeName){c.style.textAlign="center";c.style.padding="0px";c.style.color="";c.innerText="";if(null!=G.desc){var k=document.createElement("pre");k.style.boxSizing="border-box";k.style.fontFamily="inherit";k.style.margin="20px";k.style.right="0px";k.style.textAlign="left";mxUtils.write(k,G.desc);c.appendChild(k)}null!=G.imageCallback?G.imageCallback(c):
-null!=G.image?(k=document.createElement("img"),k.setAttribute("border","0"),k.style.maxWidth="100%",k.setAttribute("src",G.image),c.appendChild(k)):null==G.desc&&(c.style.padding="20px",c.style.color="rgb(179, 179, 179)",mxUtils.write(c,mxResources.get("noPreview")));null!=e&&(e.style.backgroundColor="");e=E;e.style.backgroundColor="light-dark(#ebf2f9, #000000)";null!=K&&mxEvent.consume(K)}};mxEvent.addListener(E,"click",L);mxEvent.addListener(E,"dblclick",function(K){H.checked=!H.checked;mxEvent.consume(K)});
-g.push(function(){return H.checked?G.id:null});0==U&&0==q&&L()})(O.entries[q])})(S[U])});J=document.createElement("div");J.className="geDialogTitle";mxUtils.write(J,mxResources.get("shapes"));J.style.position="absolute";J.style.top="0px";J.style.left="0px";J.style.lineHeight="40px";J.style.height="40px";J.style.right="0px";var I=document.createElement("div"),c=document.createElement("div");I.style.position="absolute";I.style.top="40px";I.style.left="0px";I.style.width="202px";I.style.bottom="60px";
-I.style.overflow="auto";c.style.position="absolute";c.style.left="202px";c.style.right="0px";c.style.top="40px";c.style.bottom="60px";c.style.overflow="auto";c.style.borderLeftStyle="solid";c.style.borderLeftWidth="1px";c.style.textAlign="center";var e=null,g=[],l=document.createElement("div");l.style.position="relative";l.style.left="0px";l.style.right="0px";x(m);d.style.padding="30px";d.appendChild(J);d.appendChild(I);d.appendChild(c);m=document.createElement("div");m.className="geDialogFooter";
-m.style.position="absolute";m.style.paddingRight="16px";m.style.left="0px";m.style.right="0px";m.style.bottom="0px";m.style.height="60px";m.style.lineHeight="52px";var n=document.createElement("input");n.setAttribute("type","checkbox");n.style.position="relative";n.style.top="1px";n.checked=b.sidebar.sidebarTitles;n.defaultChecked=n.checked;m.appendChild(n);x=document.createElement("span");mxUtils.write(x," "+mxResources.get("labels"));x.style.paddingRight="20px";m.appendChild(x);mxEvent.addListener(x,
-"click",function(S){n.checked=!n.checked;mxEvent.consume(S)});var u=document.createElement("input");u.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)x=document.createElement("span"),x.style.paddingRight="20px",x.appendChild(u),mxUtils.write(x," "+mxResources.get("rememberThisSetting")),u.style.position="relative",u.style.top="1px",u.checked=!0,u.defaultChecked=!0,mxEvent.addListener(x,"click",function(S){mxEvent.getSource(S)!=u&&(u.checked=!u.checked,mxEvent.consume(S))}),
-m.appendChild(x);x=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});x.className="geBtn";J=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();for(var S=[],U=0;U<g.length;U++){var O=g[U].apply(this,arguments);null!=O&&S.push(O)}"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||!Editor.isSettingsEnabled()||(U=mxUtils.indexOf(S,".scratchpad"),null!=b.scratchpad!=(0<=U&&0<S.splice(U,1).length)&&b.toggleScratchpad(),U=mxUtils.indexOf(S,
-"search"),mxSettings.settings.search=0<=U&&0<S.splice(U,1).length,b.sidebar.showPalette("search",mxSettings.settings.search),u.checked&&mxSettings.save());b.sidebar.showEntries(S.join(";"),u.checked,!0);b.setSidebarTitles(n.checked,u.checked)});J.className="geBtn gePrimaryBtn"}else{var z=document.createElement("table");x=document.createElement("tbody");d.style.height="100%";d.style.overflow="auto";J=document.createElement("tr");z.style.width="100%";f=document.createElement("td");t=document.createElement("td");
-v=document.createElement("td");var D=mxUtils.bind(this,function(S,U,O){var p=document.createElement("input");p.type="checkbox";z.appendChild(p);p.checked=b.sidebar.isEntryVisible(O);var q=document.createElement("span");mxUtils.write(q,U);U=document.createElement("div");U.style.display="block";U.appendChild(p);U.appendChild(q);mxEvent.addListener(q,"click",function(G){p.checked=!p.checked;mxEvent.consume(G)});S.appendChild(U);return function(){return p.checked?O:null}});J.appendChild(f);J.appendChild(t);
-J.appendChild(v);x.appendChild(J);z.appendChild(x);g=[];var C=0;for(x=0;x<m.length;x++)for(J=0;J<m[x].entries.length;J++)C++;var A=[f,t,v],Q=0;for(x=0;x<m.length;x++)(function(S){for(var U=0;U<S.entries.length;U++){var O=S.entries[U];g.push(D(A[Math.floor(Q/(C/3))],O.title,O.id));Q++}})(m[x]);d.appendChild(z);m=document.createElement("div");m.style.marginTop="18px";m.style.textAlign="center";u=document.createElement("input");isLocalStorage&&(u.setAttribute("type","checkbox"),u.checked=!0,u.defaultChecked=
-!0,m.appendChild(u),x=document.createElement("span"),mxUtils.write(x," "+mxResources.get("rememberThisSetting")),m.appendChild(x),mxEvent.addListener(x,"click",function(S){u.checked=!u.checked;mxEvent.consume(S)}));d.appendChild(m);x=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});x.className="geBtn";J=mxUtils.button(mxResources.get("apply"),function(){for(var S=["search"],U=0;U<g.length;U++){var O=g[U].apply(this,arguments);null!=O&&S.push(O)}b.sidebar.showEntries(0<S.length?
-S.join(";"):"",u.checked);b.hideDialog()});J.className="geBtn gePrimaryBtn";m=document.createElement("div");m.style.marginTop="26px";m.style.textAlign="right"}b.editor.cancelFirst?(m.appendChild(x),m.appendChild(J)):(m.appendChild(J),m.appendChild(x));d.appendChild(m);this.container=d},PluginsDialog=function(b,f,m,d){function t(){J=!0;if(0==B.length)v.innerText=mxResources.get("noPlugins");else{v.innerText="";for(var g=0;g<B.length;g++){var l=document.createElement("span");l.style.display="flex";
-l.style.alignItems="center";l.style.whiteSpace="nowrap";var n=document.createElement("img");n.src=Editor.trashImage;n.style.position="relative";n.style.cursor="pointer";n.style.marginRight="4px";n.style.display="inline-block";n.style.width="18px";n.setAttribute("title",mxResources.get("delete"));l.appendChild(n);mxUtils.write(l,B[g]);v.appendChild(l);mxUtils.br(v);mxEvent.addListener(n,"click",function(u){return function(){b.confirm(mxResources.get("delete")+' "'+B[u]+'"?',function(){null!=m&&m(B[u]);
-B.splice(u,1);t()})}}(g))}}}var x=document.createElement("div"),v=document.createElement("div");v.style.height="180px";v.style.overflow="auto";var B=mxSettings.getPlugins().slice(),J=!1;x.appendChild(v);t();J=!1;var N=mxUtils.button(mxResources.get("add"),null!=f?function(){f(function(g){g&&0>mxUtils.indexOf(B,g)&&B.push(g);t()})}:function(){var g=document.createElement("div"),l=document.createElement("span");l.style.marginTop="6px";mxUtils.write(l,mxResources.get("builtinPlugins")+": ");g.appendChild(l);
-var n=document.createElement("select");n.style.width="150px";for(l=0;l<App.publicPlugin.length;l++){var u=document.createElement("option");mxUtils.write(u,App.publicPlugin[l]);u.value=App.publicPlugin[l];n.appendChild(u)}g.appendChild(n);mxUtils.br(g);mxUtils.br(g);l=mxUtils.button(mxResources.get("custom")+"...",function(){var z=new FilenameDialog(b,"",mxResources.get("add"),function(D){b.hideDialog();if(null!=D&&0<D.length){D=D.split(";");for(var C=0;C<D.length;C++){var A=D[C],Q=App.pluginRegistry[A];
-null!=Q&&(A=Q);0<A.length&&0>mxUtils.indexOf(B,A)&&B.push(A)}t()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(z.container,300,80,!0,!0);z.init()});l.className="geBtn";ALLOW_CUSTOM_PLUGINS||(l.style.display="none");g=new CustomDialog(b,g,mxUtils.bind(this,function(){var z=App.pluginRegistry[n.value];0>mxUtils.indexOf(B,z)&&(B.push(z),t())}),null,null,null,l);b.showDialog(g.container,360,100,!0,!0)});N.className="geBtn";var I=mxUtils.button(mxResources.get("cancel"),
-function(){b.hideDialog()});I.className="geBtn";var c=mxUtils.button(d?mxResources.get("close"):mxResources.get("apply"),function(){J?(mxSettings.setPlugins(B),mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):b.hideDialog()});c.className="geBtn gePrimaryBtn";var e=document.createElement("div");e.style.marginTop="14px";e.style.textAlign="right";b.isOffline()||e.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/plugins"));b.editor.cancelFirst?(d||e.appendChild(I),
-e.appendChild(N),e.appendChild(c)):(e.appendChild(N),e.appendChild(c),d||e.appendChild(I));x.appendChild(e);this.container=x},CropImageDialog=function(b,f,m,d){function t(){var S=u.checked,U=z.checked,O=g.geometry,p=J.width,q=J.height,G=(300-p)/2,E=(300-q)/2;O.x<G?(O.width-=G-O.x,O.x=G):O.x+O.width>G+p&&(O.width=G+p-O.x,O.x=Math.min(O.x,G+p));O.y<E?(O.height-=E-O.y,O.y=E):O.y+O.height>E+q&&(O.height=E+q-O.y,O.y=Math.min(O.y,E+q));var H=(O.x-G)/p*100;p=100-(O.x+O.width-G)/p*100;G=(O.y-E)/q*100;O=100-
-(O.y+O.height-E)/q*100;return"inset("+mxUtils.format(G)+"% "+mxUtils.format(p)+"% "+mxUtils.format(O)+"% "+mxUtils.format(H)+"%"+(S?" round "+e+"%":U?" round 50%":"")+")"}function x(S){null!=I&&(!0!==S&&(I.model.setGeometry(g,c.clone()),e=5,C.value=e),I.model.setStyle(g,l+t()),I.selectAll(),D.style.visibility=u.checked?"visible":"hidden")}var v=document.createElement("div"),B=document.createElement("div");B.style.height="300px";B.style.width="300px";B.style.display="inline-flex";B.style.justifyContent=
-"center";B.style.alignItems="center";B.style.position="absolute";var J=document.createElement("img");J.onload=function(){function S(){I.model.setStyle(g,l+t())}I=new Graph(N);I.autoExtend=!1;I.autoScroll=!1;I.setGridEnabled(!1);I.setEnabled(!0);I.setPanning(!1);I.setConnectable(!1);I.getRubberband().setEnabled(!1);I.graphHandler.allowLivePreview=!1;var U=I.createVertexHandler;I.createVertexHandler=function(){var R=U.apply(this,arguments);R.livePreview=!1;return R};if(null!=m)try{if("inset"==m.substring(0,
-5)){var O=g.geometry,p=J.width,q=J.height,G=(300-p)/2,E=(300-q)/2,H=m.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),L=parseFloat(H[0]),K=parseFloat(H[1]),k=parseFloat(H[2]),y=parseFloat(H[3]);isFinite(L)&&isFinite(K)&&isFinite(k)&&isFinite(y)?(O.x=y/100*p+G,O.y=L/100*q+E,O.width=(100-K)/100*p+G-O.x,O.height=(100-k)/100*q+E-O.y,"round"==H[4]?"50%"==H[5]?z.setAttribute("checked","checked"):(e=parseInt(H[5]),C.value=e,u.setAttribute("checked","checked"),D.style.visibility="visible"):n.setAttribute("checked",
-"checked")):m=null}else m=null}catch(R){}g.style=l+(m?m:t());g.vertex=!0;I.addCell(g,null,null,null,null);I.selectAll();I.addListener(mxEvent.CELLS_MOVED,S);I.addListener(mxEvent.CELLS_RESIZED,S);var F=I.graphHandler.mouseUp,M=I.graphHandler.mouseDown;I.graphHandler.mouseUp=function(){F.apply(this,arguments);N.style.backgroundColor="#fff9"};I.graphHandler.mouseDown=function(){M.apply(this,arguments);N.style.backgroundColor=""};I.dblClick=function(){};var P=I.getSelectionModel().changeSelection;I.getSelectionModel().changeSelection=
-function(){P.call(this,[g],[g])}};J.onerror=function(){J.onload=null;J.src=Editor.errorImage};J.setAttribute("src",f);J.style.maxWidth="300px";J.style.maxHeight="300px";B.appendChild(J);v.appendChild(B);var N=document.createElement("div");N.style.width="300px";N.style.height="300px";N.style.overflow="hidden";N.style.backgroundColor="#fff9";v.appendChild(N);var I=null,c=new mxGeometry(100,100,100,100),e=5,g=new mxCell("",c.clone(),""),l="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+
-f.replace(";base64","")+";clipPath=",n=document.createElement("input");n.setAttribute("type","radio");n.setAttribute("id","croppingRect");n.setAttribute("name","croppingShape");n.setAttribute("checked","checked");n.style.margin="5px";v.appendChild(n);f=document.createElement("label");f.setAttribute("for","croppingRect");mxUtils.write(f,mxResources.get("rectangle"));v.appendChild(f);var u=document.createElement("input");u.setAttribute("type","radio");u.setAttribute("id","croppingRounded");u.setAttribute("name",
-"croppingShape");u.style.margin="5px";v.appendChild(u);f=document.createElement("label");f.setAttribute("for","croppingRounded");mxUtils.write(f,mxResources.get("rounded"));v.appendChild(f);var z=document.createElement("input");z.setAttribute("type","radio");z.setAttribute("id","croppingEllipse");z.setAttribute("name","croppingShape");z.style.margin="5px";v.appendChild(z);f=document.createElement("label");f.setAttribute("for","croppingEllipse");mxUtils.write(f,mxResources.get("ellipse"));v.appendChild(f);
-mxEvent.addListener(n,"change",x);mxEvent.addListener(u,"change",x);mxEvent.addListener(z,"change",x);var D=document.createElement("div");D.style.textAlign="center";D.style.visibility="hidden";var C=document.createElement("input");C.setAttribute("type","range");C.setAttribute("min","1");C.setAttribute("max","49");C.setAttribute("value",e);C.setAttribute("title",mxResources.get("arcSize"));D.appendChild(C);v.appendChild(D);mxEvent.addListener(C,"change",function(){e=this.value;x(!0)});f=mxUtils.button(mxResources.get("cancel"),
-function(){b.hideDialog()});f.className="geBtn";B=mxUtils.button(mxResources.get("apply"),function(){d(t(),g.geometry.width,g.geometry.height);b.hideDialog()});B.className="geBtn gePrimaryBtn";var A=mxUtils.button(mxResources.get("reset"),function(){d(null,J.width,J.height);b.hideDialog()});A.className="geBtn";var Q=document.createElement("div");Q.style.marginTop="10px";Q.style.textAlign="right";b.editor.cancelFirst?(Q.appendChild(f),Q.appendChild(A),Q.appendChild(B)):(Q.appendChild(A),Q.appendChild(B),
-Q.appendChild(f));v.appendChild(Q);this.container=v},EditGeometryDialog=function(b,f){var m=b.editor.graph,d=1==f.length?m.getCellGeometry(f[0]):null,t=document.createElement("div"),x=document.createElement("table"),v=document.createElement("tbody"),B=document.createElement("tr"),J=document.createElement("td"),N=document.createElement("td");x.style.paddingLeft="6px";mxUtils.write(J,mxResources.get("relative")+":");var I=document.createElement("input");I.setAttribute("type","checkbox");null!=d&&d.relative&&
-(I.setAttribute("checked","checked"),I.defaultChecked=!0);this.init=function(){I.focus()};N.appendChild(I);B.appendChild(J);B.appendChild(N);v.appendChild(B);B=document.createElement("tr");J=document.createElement("td");N=document.createElement("td");mxUtils.write(J,mxResources.get("left")+":");var c=document.createElement("input");c.setAttribute("type","text");c.style.width="100px";c.value=null!=d?d.x:"";N.appendChild(c);B.appendChild(J);B.appendChild(N);v.appendChild(B);B=document.createElement("tr");
-J=document.createElement("td");N=document.createElement("td");mxUtils.write(J,mxResources.get("top")+":");var e=document.createElement("input");e.setAttribute("type","text");e.style.width="100px";e.value=null!=d?d.y:"";N.appendChild(e);B.appendChild(J);B.appendChild(N);v.appendChild(B);B=document.createElement("tr");J=document.createElement("td");N=document.createElement("td");mxUtils.write(J,mxResources.get("dx")+":");var g=document.createElement("input");g.setAttribute("type","text");g.style.width=
-"100px";g.value=null!=d&&null!=d.offset?d.offset.x:"";N.appendChild(g);B.appendChild(J);B.appendChild(N);v.appendChild(B);B=document.createElement("tr");J=document.createElement("td");N=document.createElement("td");mxUtils.write(J,mxResources.get("dy")+":");var l=document.createElement("input");l.setAttribute("type","text");l.style.width="100px";l.value=null!=d&&null!=d.offset?d.offset.y:"";N.appendChild(l);B.appendChild(J);B.appendChild(N);v.appendChild(B);B=document.createElement("tr");J=document.createElement("td");
-N=document.createElement("td");mxUtils.write(J,mxResources.get("width")+":");var n=document.createElement("input");n.setAttribute("type","text");n.style.width="100px";n.value=null!=d?d.width:"";N.appendChild(n);B.appendChild(J);B.appendChild(N);v.appendChild(B);B=document.createElement("tr");J=document.createElement("td");N=document.createElement("td");mxUtils.write(J,mxResources.get("height")+":");var u=document.createElement("input");u.setAttribute("type","text");u.style.width="100px";u.value=null!=
-d?d.height:"";N.appendChild(u);B.appendChild(J);B.appendChild(N);v.appendChild(B);B=document.createElement("tr");J=document.createElement("td");N=document.createElement("td");mxUtils.write(J,mxResources.get("rotation")+":");var z=document.createElement("input");z.setAttribute("type","text");z.style.width="100px";z.value=1==f.length?mxUtils.getValue(m.getCellStyle(f[0]),mxConstants.STYLE_ROTATION,0):"";N.appendChild(z);B.appendChild(J);B.appendChild(N);v.appendChild(B);x.appendChild(v);t.appendChild(x);
-d=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});d.className="geBtn";var D=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();m.getModel().beginUpdate();try{for(var C=0;C<f.length;C++){var A=m.getCellGeometry(f[C]);null!=A&&(A=A.clone(),m.isCellMovable(f[C])&&(A.relative=I.checked,0<mxUtils.trim(c.value).length&&(A.x=Number(c.value)),0<mxUtils.trim(e.value).length&&(A.y=Number(e.value)),0<mxUtils.trim(g.value).length&&(null==A.offset&&(A.offset=new mxPoint),A.offset.x=
-Number(g.value)),0<mxUtils.trim(l.value).length&&(null==A.offset&&(A.offset=new mxPoint),A.offset.y=Number(l.value))),m.isCellResizable(f[C])&&(0<mxUtils.trim(n.value).length&&(A.width=Number(n.value)),0<mxUtils.trim(u.value).length&&(A.height=Number(u.value))),m.getModel().setGeometry(f[C],A));0<mxUtils.trim(z.value).length&&m.setCellStyles(mxConstants.STYLE_ROTATION,Number(z.value),[f[C]])}}finally{m.getModel().endUpdate()}});D.className="geBtn gePrimaryBtn";mxEvent.addListener(t,"keypress",function(C){13==
-C.keyCode&&D.click()});x=document.createElement("div");x.style.marginTop="20px";x.style.textAlign="right";b.editor.cancelFirst?(x.appendChild(d),x.appendChild(D)):(x.appendChild(D),x.appendChild(d));t.appendChild(x);this.container=t},LibraryDialog=function(b,f,m,d,t,x,v){function B(O){for(O=document.elementFromPoint(O.clientX,O.clientY);null!=O&&O.parentNode!=l;)O=O.parentNode;var p=null;if(null!=O){var q=l.firstChild;for(p=0;null!=q&&q!=O;)q=q.nextSibling,p++}return p}function J(O,p,q,G,E,H,L,K,
-k){try{if(b.spinner.stop(),null==p||"image/"==p.substring(0,6))if(null==O&&null!=L||null==u[O]){var y=function(){X.innerText="";X.style.cursor="pointer";X.style.whiteSpace="nowrap";X.style.textOverflow="ellipsis";mxUtils.write(X,null!=Y.title&&0<Y.title.length?Y.title:mxResources.get("untitled"));X.style.color=null==Y.title||0==Y.title.length?"#d0d0d0":""};l.style.backgroundImage="";n.style.display="none";var F=E,M=H;if(E>b.maxImageSize||H>b.maxImageSize){var P=Math.min(1,Math.min(b.maxImageSize/
-Math.max(1,E)),b.maxImageSize/Math.max(1,H));E*=P;H*=P}F>M?(M=Math.round(100*M/F),F=100):(F=Math.round(100*F/M),M=100);var R=document.createElement("div");R.setAttribute("draggable","true");R.style.display="inline-block";R.style.position="relative";R.style.padding="0 12px";R.style.cursor="move";mxUtils.setPrefixedStyle(R.style,"transition","transform .1s ease-in-out");if(null!=O){var T=document.createElement("img");T.setAttribute("src",A.convert(O));T.style.width=F+"px";T.style.height=M+"px";T.style.margin=
-"10px";T.style.paddingBottom=Math.floor((100-M)/2)+"px";T.style.paddingLeft=Math.floor((100-F)/2)+"px";R.appendChild(T)}else if(null!=L){var V=b.stringToCells("<"==L.xml.charAt(0)?L.xml:Graph.decompress(L.xml));0<V.length&&(b.sidebar.createThumb(V,100,100,R,null,!0,!1,null,null,Editor.isDarkMode()?"#2a252f":"#ffffff"),R.firstChild.style.display="inline-block",R.firstChild.style.cursor="")}var W=document.createElement("img");W.setAttribute("src",Editor.closeBlackImage);W.setAttribute("border","0");
-W.setAttribute("title",mxResources.get("delete"));W.setAttribute("align","top");W.style.paddingTop="4px";W.style.position="absolute";W.style.marginLeft="-12px";W.style.zIndex="1";W.style.cursor="pointer";mxEvent.addListener(W,"dragstart",function(ba){mxEvent.consume(ba)});(function(ba,ha,aa){mxEvent.addListener(W,"click",function(ia){u[ha]=null;for(var fa=0;fa<c.length;fa++)if(null!=c[fa].data&&c[fa].data==ha||null!=c[fa].xml&&null!=aa&&c[fa].xml==aa.xml){c.splice(fa,1);break}R.parentNode.removeChild(ba);
-0==c.length&&(l.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",n.style.display="");mxEvent.consume(ia)});mxEvent.addListener(W,"dblclick",function(ia){mxEvent.consume(ia)})})(R,O,L);R.appendChild(W);R.style.marginBottom="30px";var X=document.createElement("div");X.style.position="absolute";X.style.boxSizing="border-box";X.style.bottom="-18px";X.style.left="10px";X.style.right="10px";X.style.backgroundColor="light-dark(#ffffff, transparent)";X.style.overflow="hidden";X.style.textAlign=
-"center";X.setAttribute("title",mxResources.get("rename"));var Y=null;null!=O?(Y={data:O,w:E,h:H,title:k},null!=K&&(Y.aspect=K),u[O]=T,c.push(Y)):null!=L&&(L.aspect="fixed",c.push(L),Y=L);mxEvent.addListener(X,"keydown",function(ba){13==ba.keyCode&&null!=C&&(C(),C=null,mxEvent.consume(ba))});y();R.appendChild(X);mxEvent.addListener(X,"mousedown",function(ba){"true"!=X.getAttribute("contentEditable")&&mxEvent.consume(ba)});V=function(ba){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||
-9<document.documentMode)){var ha=new FilenameDialog(b,Y.title||"",mxResources.get("ok"),function(aa){null!=aa&&(Y.title=aa,y())},mxResources.get("enterValue"));b.showDialog(ha.container,300,80,!0,!0);ha.init();mxEvent.consume(ba)}else if("true"!=X.getAttribute("contentEditable")){null!=C&&(C(),C=null);if(null==Y.title||0==Y.title.length)X.innerText="";X.style.textOverflow="";X.style.whiteSpace="";X.style.cursor="text";X.style.color="";X.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(X.style,
-"user-select","text");X.focus();document.execCommand("selectAll",!1,null);C=function(){X.removeAttribute("contentEditable");X.style.cursor="pointer";Y.title=mxUtils.getTextContent(X);y()};mxEvent.consume(ba)}};mxEvent.addListener(X,"click",V);mxEvent.addListener(R,"dblclick",V);l.appendChild(R);mxEvent.addListener(R,"dragstart",function(ba){null==C&&(null==O&&null!=L&&(W.style.visibility="hidden",X.style.visibility="hidden"),mxClient.IS_FF&&null!=L.xml&&ba.dataTransfer.setData("Text",L.xml),z=B(ba),
-mxClient.IS_GC&&(R.style.opacity="0.9"),window.setTimeout(function(){mxUtils.setPrefixedStyle(R.style,"transform","scale(0.5,0.5)");mxUtils.setOpacity(R,30);W.style.visibility="";X.style.visibility=""},0))});mxEvent.addListener(R,"dragend",function(ba){"hidden"==W.style.visibility&&(W.style.visibility="",X.style.visibility="");z=null;mxUtils.setOpacity(R,100);mxUtils.setPrefixedStyle(R.style,"transform",null)})}else Q||(Q=!0,b.handleError({message:mxResources.get("fileExists")}));else{E=!1;try{if(F=
-mxUtils.parseXml(O),"mxlibrary"==F.documentElement.nodeName){M=JSON.parse(mxUtils.getTextContent(F.documentElement));if(null!=M&&0<M.length)for(var Z=0;Z<M.length;Z++)null!=M[Z].xml?J(null,null,0,0,0,0,M[Z]):J(M[Z].data,null,0,0,M[Z].w,M[Z].h,null,"fixed",M[Z].title);E=!0}else if("mxfile"==F.documentElement.nodeName){var da=F.documentElement.getElementsByTagName("diagram");for(Z=0;Z<da.length;Z++){var ea=Editor.getDiagramNodeXml(da[Z]);V=b.stringToCells(ea);if(0<V.length){var ka=b.editor.graph.getBoundingBoxFromGeometry(V);
-null!=ka&&J(null,null,0,0,0,0,{xml:ea,w:ka.width,h:ka.height})}}E=!0}}catch(ba){null!=window.console&&console.error("Error in library dialog: "+ba)}E||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(ba){null!=window.console&&console.log("Error in library dialog: "+ba)}return null}function N(O){O.dataTransfer.dropEffect=null!=z?"move":"copy";O.stopPropagation();O.preventDefault()}function I(O){O.stopPropagation();O.preventDefault();Q=!1;D=B(O);if(null!=z)null!=
-D&&D<l.children.length?(c.splice(D>z?D-1:D,0,c.splice(z,1)[0]),l.insertBefore(l.children[z],l.children[D])):(c.push(c.splice(z,1)[0]),l.appendChild(l.children[z]));else if(0<O.dataTransfer.files.length)b.importFiles(O.dataTransfer.files,0,0,b.maxImageSize,S(O));else if(0<=mxUtils.indexOf(O.dataTransfer.types,"text/uri-list")){var p=decodeURIComponent(O.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(p)||/(\.png)($|\?)/i.test(p)||/(\.gif)($|\?)/i.test(p)||/(\.svg)($|\?)/i.test(p))&&b.loadImage(p,
-function(q){J(p,null,0,0,q.width,q.height);l.scrollTop=l.scrollHeight})}O.stopPropagation();O.preventDefault()}var c=[];m=document.createElement("div");m.style.height="100%";var e=document.createElement("div");e.style.whiteSpace="nowrap";e.style.height="40px";m.appendChild(e);mxUtils.write(e,mxResources.get("filename")+":");null==f&&(f=b.defaultLibraryName+".xml");var g=document.createElement("input");g.setAttribute("value",f);g.style.marginRight="20px";g.style.marginLeft="10px";g.style.width="500px";
-null==t||t.isRenamable()||g.setAttribute("disabled","true");this.init=function(){if(null==t||t.isRenamable())g.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?g.select():document.execCommand("selectAll",!1,null)};e.appendChild(g);Editor.enableUncompressedLibraries&&(g.style.width="420px",f=document.createElement("input"),f.setAttribute("type","checkbox"),f.style.marginRight="10px",e.appendChild(f),mxUtils.write(e,mxResources.get("compressed")));var l=document.createElement("div");
-l.style.borderWidth="1px 0px 1px 0px";l.style.borderColor="#d3d3d3";l.style.borderStyle="solid";l.style.marginTop="6px";l.style.overflow="auto";l.style.height="340px";l.style.backgroundPosition="center center";l.style.backgroundRepeat="no-repeat";0==c.length&&Graph.fileSupport&&(l.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')");var n=document.createElement("div");n.style.position="absolute";n.style.width="640px";n.style.top="260px";n.style.textAlign="center";n.style.fontSize="22px";
-n.style.color="#a0c3ff";mxUtils.write(n,mxResources.get("dragImagesHere"));m.appendChild(n);var u={},z=null,D=null,C=null;e=function(O){"true"!=mxEvent.getSource(O).getAttribute("contentEditable")&&null!=C&&(C(),C=null,mxEvent.consume(O))};mxEvent.addListener(l,"mousedown",e);mxEvent.addListener(l,"pointerdown",e);mxEvent.addListener(l,"touchstart",e);var A=new mxUrlConverter,Q=!1;if(null!=d)for(e=0;e<d.length;e++)f=d[e],J(f.data,null,0,0,f.w,f.h,f,f.aspect,f.title);mxEvent.addListener(l,"dragleave",
-function(O){n.style.cursor="";for(var p=mxEvent.getSource(O);null!=p;){if(p==l||p==n){O.stopPropagation();O.preventDefault();break}p=p.parentNode}});var S=function(O){return function(p,q,G,E,H,L,K,k,y){null!=y&&EditorUi.isVisioFilename(y.name)?b.importVisio(y,mxUtils.bind(this,function(F){J(F,q,G,E,H,L,K,"fixed",mxEvent.isAltDown(O)?null:K.substring(0,K.lastIndexOf(".")).replace(/_/g," "))})):null!=y&&(new XMLHttpRequest).upload&&b.isRemoteFileFormat(p,y.name)?b.isExternalDataComms()?b.parseFile(y,
-mxUtils.bind(this,function(F){4==F.readyState&&(b.spinner.stop(),200<=F.status&&299>=F.status&&(J(F.responseText,q,G,E,H,L,K,"fixed",mxEvent.isAltDown(O)?null:K.substring(0,K.lastIndexOf(".")).replace(/_/g," ")),l.scrollTop=l.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(J(p,q,G,E,H,L,K,"fixed",mxEvent.isAltDown(O)?null:K.substring(0,K.lastIndexOf(".")).replace(/_/g," ")),l.scrollTop=l.scrollHeight)}};mxEvent.addListener(l,"dragover",N);
-mxEvent.addListener(l,"drop",I);mxEvent.addListener(n,"dragover",N);mxEvent.addListener(n,"drop",I);m.appendChild(l);d=document.createElement("div");d.style.textAlign="right";d.style.marginTop="20px";e=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});e.setAttribute("id","btnCancel");e.className="geBtn";b.editor.cancelFirst&&d.appendChild(e);"draw.io"!=b.getServiceName()||null==t||t.constructor!=DriveLibrary&&t.constructor!=GitHubLibrary||(f=mxUtils.button(mxResources.get("link"),
-function(){b.getPublicUrl(t,function(O){if(null!=O){var p=b.getSearch("create title mode url drive splash state clibs ui".split(" "));p+=(0==p.length?"?":"&")+"splash=0&clibs=U"+encodeURIComponent(O);O=new EmbedDialog(b,window.location.protocol+"//"+window.location.host+"/"+p,null,null,null,null,"Check out the library I made using @drawio");b.showDialog(O.container,450,240,!0);O.init()}else t.constructor==DriveLibrary?b.showError(mxResources.get("error"),mxResources.get("diagramIsNotPublic"),mxResources.get("share"),
-mxUtils.bind(this,function(){b.drive.showPermissions(t.getId(),t)}),null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({message:mxResources.get("diagramIsNotPublic")})})}),f.className="geBtn",d.appendChild(f));f=mxUtils.button(mxResources.get("export"),function(){var O=b.createLibraryDataFromImages(c),p=g.value;/(\.xml)$/i.test(p)||(p+=".xml");b.isLocalFileSave()?b.saveLocalFile(O,p,"text/xml",null,null,null!=v?v:!0,null,"xml"):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(p)+
-"&format=xml&xml="+encodeURIComponent(O))).simulate(document,"_blank")});f.setAttribute("id","btnDownload");f.className="geBtn";d.appendChild(f);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var U=document.createElement("input");U.setAttribute("multiple","multiple");U.setAttribute("type","file");mxEvent.addListener(U,"change",function(O){Q=!1;b.importFiles(U.files,0,0,b.maxImageSize,function(p,q,G,E,H,L,K,k,y){null!=U.files&&(S(O)(p,q,G,E,H,L,K,k,y),U.type="",U.type="file",U.value="")});l.scrollTop=
-l.scrollHeight});U.style.display="none";document.body.appendChild(U);b.libDlgFileInputElt=U}f=mxUtils.button(mxResources.get("import"),function(){null!=C&&(C(),C=null);b.libDlgFileInputElt.click()});f.setAttribute("id","btnAddImage");f.className="geBtn";d.appendChild(f)}f=mxUtils.button(mxResources.get("addImages"),function(){null!=C&&(C(),C=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(O,p,q){Q=!1;if(null!=O){if("data:image/"==O.substring(0,11)){var G=O.indexOf(",");0<G&&(O=
-O.substring(0,G)+";base64,"+O.substring(G+1))}J(O,null,0,0,p,q);l.scrollTop=l.scrollHeight}})});f.setAttribute("id","btnAddImageUrl");f.className="geBtn";d.appendChild(f);this.saveBtnClickHandler=function(O,p,q,G){b.saveLibrary(O,p,q,G)};f=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=C&&(C(),C=null);this.saveBtnClickHandler(g.value,c,t,x)}));f.setAttribute("id","btnSave");f.className="geBtn gePrimaryBtn";d.appendChild(f);b.editor.cancelFirst||d.appendChild(e);m.appendChild(d);
-this.container=m},EditShapeDialog=function(b,f,m,d,t){d=null!=d?d:300;t=null!=t?t:120;var x=document.createElement("table"),v=document.createElement("tbody");x.style.cellPadding="4px";var B=document.createElement("tr");var J=document.createElement("td");J.setAttribute("colspan","2");J.style.fontSize="10pt";mxUtils.write(J,m);B.appendChild(J);v.appendChild(B);B=document.createElement("tr");J=document.createElement("td");var N=document.createElement("textarea");N.style.outline="none";N.style.resize=
-"none";N.style.width=d-200+"px";N.style.height=t+"px";this.textarea=N;this.init=function(){N.focus();N.scrollTop=0};J.appendChild(N);B.appendChild(J);J=document.createElement("td");m=document.createElement("div");m.style.position="relative";m.style.border="1px solid gray";m.style.top="6px";m.style.width="200px";m.style.height=t+4+"px";m.style.overflow="hidden";m.style.marginBottom="16px";mxEvent.disableContextMenu(m);J.appendChild(m);var I=new Graph(m);I.setEnabled(!1);var c=b.editor.graph.cloneCell(f);
-I.addCells([c]);m=I.view.getState(c);var e="";null!=m.shape&&null!=m.shape.stencil&&(e=mxUtils.getPrettyXml(m.shape.stencil.desc));mxUtils.write(N,e||"");m=I.getGraphBounds();t=Math.min(160/m.width,(t-40)/m.height);I.view.scaleAndTranslate(t,20/t-m.x,20/t-m.y);B.appendChild(J);v.appendChild(B);B=document.createElement("tr");J=document.createElement("td");J.setAttribute("colspan","2");J.style.paddingTop="2px";J.style.whiteSpace="nowrap";J.setAttribute("align","right");b.isOffline()||(t=mxUtils.button(mxResources.get("help"),
-function(){b.openLink("https://www.drawio.com/doc/faq/shape-complex-create-edit")}),t.className="geBtn",J.appendChild(t));t=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});t.className="geBtn";b.editor.cancelFirst&&J.appendChild(t);var g=function(l,n,u){var z=N.value,D=mxUtils.parseXml(z);z=mxUtils.getPrettyXml(D.documentElement);D=D.documentElement.getElementsByTagName("parsererror");if(null!=D&&0<D.length)b.showError(mxResources.get("error"),mxResources.get("containsValidationErrors"),
-mxResources.get("ok"));else if(u&&b.hideDialog(),D=!l.model.contains(n),!u||D||z!=e){z=Graph.compress(z);l.getModel().beginUpdate();try{if(D){var C=b.editor.graph.getFreeInsertPoint();n.geometry.x=C.x;n.geometry.y=C.y;l.addCell(n)}l.setCellStyles(mxConstants.STYLE_SHAPE,"stencil("+z+")",[n])}catch(A){throw A;}finally{l.getModel().endUpdate()}D&&(l.setSelectionCell(n),l.scrollCellToVisible(n))}};m=mxUtils.button(mxResources.get("preview"),function(){g(I,c,!1)});m.className="geBtn";J.appendChild(m);
-m=mxUtils.button(mxResources.get("apply"),function(){g(b.editor.graph,f,!0)});m.className="geBtn gePrimaryBtn";J.appendChild(m);b.editor.cancelFirst||J.appendChild(t);B.appendChild(J);v.appendChild(B);x.appendChild(v);this.container=x},CustomDialog=function(b,f,m,d,t,x,v,B,J,N,I,c){var e=document.createElement("div");e.appendChild(f);var g=document.createElement("div");g.style.marginTop=null!=c?c:"30px";g.style.textAlign="right";null!=v&&g.appendChild(v);b.isOffline()||null==x||g.appendChild(b.createHelpIcon(x));
-f=mxUtils.button(J||mxResources.get("cancel"),function(){b.hideDialog();null!=d&&d()});f.className="geBtn";B&&(f.style.display="none");b.editor.cancelFirst&&g.appendChild(f);t=mxUtils.button(t||mxResources.get("ok"),mxUtils.bind(this,function(){N||b.hideDialog(null,null,this.container);if(null!=m){var l=m();if("string"===typeof l){b.showError(mxResources.get("error"),l);return}}N&&b.hideDialog(null,null,this.container)}));g.appendChild(t);t.className="geBtn gePrimaryBtn";b.editor.cancelFirst||g.appendChild(f);
-if(null!=I)for(B=0;B<I.length;B++)(function(l,n,u){l=mxUtils.button(l,function(z){n(z)});null!=u&&l.setAttribute("title",u);l.className="geBtn";g.appendChild(l)})(I[B][0],I[B][1],I[B][2]);e.appendChild(g);this.cancelBtn=f;this.okButton=t;this.container=e},BtnDialog=function(b,f,m,d){var t=document.createElement("div");t.style.textAlign="center";var x=document.createElement("p");x.style.fontSize="16pt";x.style.padding="0px";x.style.margin="0px";x.style.color="gray";mxUtils.write(x,mxResources.get("done"));
-var v="Unknown",B=document.createElement("img");B.setAttribute("border","0");B.setAttribute("align","absmiddle");B.style.marginRight="10px";f==b.drive?(v=mxResources.get("googleDrive"),B.src=IMAGE_PATH+"/google-drive-logo-white.svg"):f==b.dropbox?(v=mxResources.get("dropbox"),B.src=IMAGE_PATH+"/dropbox-logo-white.svg"):f==b.oneDrive?(v=mxResources.get("oneDrive"),B.src=IMAGE_PATH+"/onedrive-logo-white.svg"):f==b.gitHub?(v=mxResources.get("github"),B.src=IMAGE_PATH+"/github-logo-white.svg"):f==b.gitLab?
-(v=mxResources.get("gitlab"),B.src=IMAGE_PATH+"/gitlab-logo.svg"):f==b.trello&&(v=mxResources.get("trello"),B.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizedIn",[v],"You are now authorized in {1}"));m=mxUtils.button(m,d);m.insertBefore(B,m.firstChild);m.style.marginTop="6px";m.className="geBigButton";m.style.fontSize="18px";m.style.padding="14px";t.appendChild(x);t.appendChild(b);t.appendChild(m);this.container=t},FontDialog=function(b,
-f,m,d,t){function x(C){this.style.border="";13==C.keyCode&&D.click()}var v=document.createElement("table"),B=document.createElement("tbody");v.style.marginTop="8px";var J=document.createElement("tr");var N=document.createElement("td");N.colSpan=2;N.style.whiteSpace="nowrap";N.style.fontSize="10pt";N.style.fontWeight="bold";var I=document.createElement("input");I.style.cssText="margin-right:8px;margin-bottom:8px;";I.setAttribute("value","sysfonts");I.setAttribute("type","radio");I.setAttribute("name",
-"current-fontdialog");I.setAttribute("id","fontdialog-sysfonts");N.appendChild(I);var c=document.createElement("label");c.setAttribute("for","fontdialog-sysfonts");mxUtils.write(c,mxResources.get("sysFonts",null,"System Fonts"));N.appendChild(c);J.appendChild(N);B.appendChild(J);J=document.createElement("tr");N=document.createElement("td");N.style.whiteSpace="nowrap";N.style.fontSize="10pt";N.style.width="120px";N.style.paddingLeft="15px";mxUtils.write(N,mxResources.get("fontname",null,"Font Name")+
-":");J.appendChild(N);var e=document.createElement("input");"s"==d&&e.setAttribute("value",f);e.style.marginLeft="4px";e.style.width="250px";e.className="dlg_fontName_s";N=document.createElement("td");N.appendChild(e);J.appendChild(N);B.appendChild(J);J=document.createElement("tr");N=document.createElement("td");N.colSpan=2;N.style.whiteSpace="nowrap";N.style.fontSize="10pt";N.style.fontWeight="bold";var g=document.createElement("input");g.style.cssText="margin-right:8px;margin-bottom:8px;";g.setAttribute("value",
-"googlefonts");g.setAttribute("type","radio");g.setAttribute("name","current-fontdialog");g.setAttribute("id","fontdialog-googlefonts");N.appendChild(g);c=document.createElement("label");c.setAttribute("for","fontdialog-googlefonts");mxUtils.write(c,mxResources.get("googleFonts",null,"Google Fonts"));N.appendChild(c);if(!b.isOffline()||EditorUi.isElectronApp)c=b.createHelpIcon("https://fonts.google.com/"),N.appendChild(c);J.appendChild(N);"0"!=urlParams.isGoogleFontsEnabled&&B.appendChild(J);J=document.createElement("tr");
-N=document.createElement("td");N.style.whiteSpace="nowrap";N.style.fontSize="10pt";N.style.width="120px";N.style.paddingLeft="15px";mxUtils.write(N,mxResources.get("fontname",null,"Font Name")+":");J.appendChild(N);var l=document.createElement("input");"g"==d&&l.setAttribute("value",f);l.style.marginLeft="4px";l.style.width="250px";l.className="dlg_fontName_g";N=document.createElement("td");N.appendChild(l);J.appendChild(N);"0"!=urlParams.isGoogleFontsEnabled&&B.appendChild(J);J=document.createElement("tr");
-N=document.createElement("td");N.colSpan=2;N.style.whiteSpace="nowrap";N.style.fontSize="10pt";N.style.fontWeight="bold";var n=document.createElement("input");n.style.cssText="margin-right:8px;margin-bottom:8px;";n.setAttribute("value","webfonts");n.setAttribute("type","radio");n.setAttribute("name","current-fontdialog");n.setAttribute("id","fontdialog-webfonts");N.appendChild(n);c=document.createElement("label");c.setAttribute("for","fontdialog-webfonts");mxUtils.write(c,mxResources.get("webfonts",
-null,"Web Fonts"));N.appendChild(c);J.appendChild(N);Editor.enableWebFonts&&B.appendChild(J);J=document.createElement("tr");N=document.createElement("td");N.style.whiteSpace="nowrap";N.style.fontSize="10pt";N.style.width="120px";N.style.paddingLeft="15px";mxUtils.write(N,mxResources.get("fontname",null,"Font Name")+":");J.appendChild(N);var u=document.createElement("input");"w"==d&&(Editor.enableWebFonts?u.setAttribute("value",f):e.setAttribute("value",f));u.style.marginLeft="4px";u.style.width="250px";
-u.className="dlg_fontName_w";N=document.createElement("td");N.appendChild(u);J.appendChild(N);Editor.enableWebFonts&&B.appendChild(J);J=document.createElement("tr");N=document.createElement("td");N.style.whiteSpace="nowrap";N.style.fontSize="10pt";N.style.width="120px";N.style.paddingLeft="15px";mxUtils.write(N,mxResources.get("fontUrl",null,"Font URL")+":");J.appendChild(N);var z=document.createElement("input");z.setAttribute("value",m||"");z.style.marginLeft="4px";z.style.width="250px";z.className=
-"dlg_fontUrl";N=document.createElement("td");N.appendChild(z);J.appendChild(N);Editor.enableWebFonts&&B.appendChild(J);this.init=function(){var C=e;"g"==d?C=l:"w"==d&&Editor.enableWebFonts&&(C=u);C.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?C.select():document.execCommand("selectAll",!1,null)};J=document.createElement("tr");N=document.createElement("td");N.colSpan=2;N.style.paddingTop="20px";N.style.whiteSpace="nowrap";N.setAttribute("align","right");b.isOffline()||N.appendChild(b.createHelpIcon("https://www.drawio.com/blog/external-fonts"));
-f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();t()});f.className="geBtn";b.editor.cancelFirst&&N.appendChild(f);var D=mxUtils.button(mxResources.get("apply"),function(){if(I.checked){var C=e.value;var A="s"}else if(g.checked){C=l.value;var Q=Editor.GOOGLE_FONTS+encodeURIComponent(C).replace(/%20/g,"+");A="g"}else n.checked&&(C=u.value,Q=z.value,A="w");var S=C;var U=Q,O=A,p=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/,q=v.querySelector(".dlg_fontName_"+
-O);null==q||null!=S&&0!=S.length?(q=v.querySelector(".dlg_fontUrl"),null==q||"w"!=O||p.test(U)?S=!0:(q.style.border="1px solid red",S=!1)):(q.style.border="1px solid red",S=!1);S&&(t(C,Q,A),b.hideDialog())});D.className="geBtn gePrimaryBtn";mxEvent.addListener(e,"keypress",x);mxEvent.addListener(l,"keypress",x);mxEvent.addListener(u,"keypress",x);mxEvent.addListener(z,"keypress",x);mxEvent.addListener(e,"focus",function(){I.setAttribute("checked","checked");I.checked=!0});mxEvent.addListener(l,"focus",
-function(){g.setAttribute("checked","checked");g.checked=!0});mxEvent.addListener(u,"focus",function(){n.setAttribute("checked","checked");n.checked=!0});mxEvent.addListener(z,"focus",function(){n.setAttribute("checked","checked");n.checked=!0});N.appendChild(D);b.editor.cancelFirst||N.appendChild(f);J.appendChild(N);B.appendChild(J);v.appendChild(B);this.container=v};
-function AspectDialog(b,f,m,d,t){this.aspect={pageId:f||(b.pages?b.pages[0].getId():null),layerIds:m||[]};f=document.createElement("div");var x=document.createElement("h5");x.style.margin="0 0 10px";mxUtils.write(x,mxResources.get("pages"));f.appendChild(x);m=document.createElement("div");m.className="geAspectDlgList";f.appendChild(m);x=document.createElement("h5");x.style.margin="0 0 10px";mxUtils.write(x,mxResources.get("layers"));f.appendChild(x);x=document.createElement("div");x.className="geAspectDlgList";
-f.appendChild(x);this.pagesContainer=m;this.layersContainer=x;this.ui=b;m=document.createElement("div");m.style.marginTop="16px";m.style.textAlign="center";x=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=t&&t()});x.className="geBtn";b.editor.cancelFirst&&m.appendChild(x);var v=mxUtils.button(mxResources.get("ok"),mxUtils.bind(this,function(){b.hideDialog();d({pageId:this.selectedPage,layerIds:Object.keys(this.selectedLayers)})}));m.appendChild(v);v.className="geBtn gePrimaryBtn";
-b.editor.cancelFirst||m.appendChild(x);v.setAttribute("disabled","disabled");this.okBtn=v;f.appendChild(m);this.container=f}AspectDialog.prototype.init=function(){var b=this.ui.getFileData(!0);if(this.ui.pages)for(b=0;b<this.ui.pages.length;b++){var f=this.ui.updatePageRoot(this.ui.pages[b]);this.createPageItem(f.getId(),f.getName(),f.node)}else this.createPageItem("1","Page-1",mxUtils.parseXml(b).documentElement)};
-AspectDialog.prototype.createViewer=function(b,f,m,d){mxEvent.disableContextMenu(b);b.style.userSelect="none";var t=new Graph(b);t.setTooltips(!1);t.setEnabled(!1);t.setPanning(!1);t.minFitScale=null;t.maxFitScale=null;t.centerZoom=!0;f="mxGraphModel"==f.nodeName?f:Editor.parseDiagramNode(f);if(null!=f){var x=f.getAttribute("background");if(null==x||""==x||x==mxConstants.NONE)x=null!=d?d:"#ffffff";b.style.backgroundColor=x;d=new mxCodec(f.ownerDocument);b=t.getModel();d.decode(f,b);f=b.getChildCount(b.root);
-d=null==m;for(x=0;x<f;x++){var v=b.getChildAt(b.root,x);b.setVisible(v,d||m==v.id)}t.maxFitScale=1;t.fit(0);t.center()}return t};
-AspectDialog.prototype.createPageItem=function(b,f,m){var d=document.createElement("div");d.className="geAspectDlgListItem";d.setAttribute("data-page-id",b);d.innerHTML='<div style="max-width: 100%; max-height: 100%;"></div><div class="geAspectDlgListItemText">'+mxUtils.htmlEntities(f)+"</div>";this.pagesContainer.appendChild(d);var t=this.createViewer(d.childNodes[0],m);f=mxUtils.bind(this,function(){null!=this.selectedItem&&(this.selectedItem.className="geAspectDlgListItem");this.selectedItem=d;
-this.selectedPage=b;d.className+=" geAspectDlgListItemSelected";this.layersContainer.innerText="";this.selectedLayers={};this.okBtn.setAttribute("disabled","disabled");var x=t.model;x=x.getChildCells(x.getRoot());for(var v=0;v<x.length;v++)this.createLayerItem(x[v],b,t,m)});mxEvent.addListener(d,"click",f);this.aspect.pageId==b&&f()};
-AspectDialog.prototype.createLayerItem=function(b,f,m,d){f=m.convertValueToString(b)||mxResources.get("background")||"Background";var t=document.createElement("div");t.setAttribute("data-layer-id",b.id);t.className="geAspectDlgListItem";t.innerHTML='<div style="max-width: 100%; max-height: 100%;"></div><div class="geAspectDlgListItemText">'+mxUtils.htmlEntities(f)+"</div>";this.layersContainer.appendChild(t);this.createViewer(t.childNodes[0],d,b.id);d=mxUtils.bind(this,function(){0<=t.className.indexOf("geAspectDlgListItemSelected")?
-(t.className="geAspectDlgListItem",delete this.selectedLayers[b.id],mxUtils.isEmptyObject(this.selectedLayers)&&this.okBtn.setAttribute("disabled","disabled")):(t.className+=" geAspectDlgListItemSelected",this.selectedLayers[b.id]=!0,this.okBtn.removeAttribute("disabled"))});mxEvent.addListener(t,"click",d);-1!=this.aspect.layerIds.indexOf(b.id)&&d()};
-var FilePropertiesDialog=function(b,f){function m(A){var Q=N;N=function(S,U){try{A(function(){Q(S,U)},U)}catch(O){U(O)}}}var d=document.createElement("table"),t=document.createElement("tbody");d.style.width="100%";d.style.marginTop="8px";d.style.tableLayout="fixed";var x=b.getCurrentFile(),v=null!=x&&null!=x.getTitle()?x.getTitle():b.defaultFilename,B=/(\.png)$/i.test(v),J=/(\.svg)$/i.test(v),N=function(A,Q){A()},I=null!=x?x.isLocked():!1;var c=document.createElement("tr");var e=document.createElement("td");
-e.style.whiteSpace="nowrap";e.style.overflow="hidden";e.style.textOverflow="ellipsis";e.style.fontSize="10pt";mxUtils.write(e,mxResources.get("locked")+":");c.appendChild(e);var g=document.createElement("input");g.setAttribute("type","checkbox");I&&(g.setAttribute("checked","checked"),g.defaultChecked=!0);e=document.createElement("td");e.style.whiteSpace="nowrap";e.appendChild(g);c.appendChild(e);t.appendChild(c);this.init=function(){g.focus()};m(function(A,Q){null!=b.fileNode&&I!=g.checked?window.setTimeout(function(){null!=
-x&&x.setLocked(g.checked);A()},0):A()});if(B||J){v=1;B=0;c=b.fileNode;null!=c&&(c.hasAttribute("scale")&&(v=parseFloat(c.getAttribute("scale"))),c.hasAttribute("border")&&(B=parseInt(c.getAttribute("border"))));c=document.createElement("tr");e=document.createElement("td");e.style.whiteSpace="nowrap";e.style.fontSize="10pt";mxUtils.write(e,mxResources.get("zoom")+":");c.appendChild(e);var l=document.createElement("input");l.setAttribute("value",100*v+"%");l.style.marginLeft="4px";l.style.width="100%";
-e=document.createElement("td");e.style.whiteSpace="nowrap";e.appendChild(l);c.appendChild(e);t.appendChild(c);c=document.createElement("tr");e=document.createElement("td");e.style.whiteSpace="nowrap";e.style.fontSize="10pt";mxUtils.write(e,mxResources.get("borderWidth")+":");c.appendChild(e);var n=document.createElement("input");n.setAttribute("value",B);n.style.marginLeft="4px";n.style.width="100%";e=document.createElement("td");e.style.whiteSpace="nowrap";e.appendChild(n);c.appendChild(e);t.appendChild(c);
-this.init=this.init||function(){l.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?l.select():document.execCommand("selectAll",!1,null)};m(function(A,Q){null!=b.fileNode&&(b.fileNode.setAttribute("scale",Math.max(0,parseInt(l.value)/100)),b.fileNode.setAttribute("border",Math.max(0,parseInt(n.value))),null!=x&&x.fileChanged());A()})}else if(!/(\.html)$/i.test(v)&&!/(\.svg)$/i.test(v)){var u=null!=x?x.isCompressed():Editor.defaultCompressed;c=document.createElement("tr");e=document.createElement("td");
-e.style.whiteSpace="nowrap";e.style.overflow="hidden";e.style.textOverflow="ellipsis";e.style.fontSize="10pt";mxUtils.write(e,mxResources.get("compressed")+":");c.appendChild(e);var z=document.createElement("input");z.setAttribute("type","checkbox");u&&(z.setAttribute("checked","checked"),z.defaultChecked=!0);e=document.createElement("td");e.style.whiteSpace="nowrap";e.appendChild(z);c.appendChild(e);t.appendChild(c);this.init=this.init||function(){z.focus()};m(function(A,Q){null!=b.fileNode&&u!=
-z.checked?window.setTimeout(function(){b.fileNode.setAttribute("compressed",z.checked?"true":"false");null!=x&&(x.compressionChanged(z.checked),x.fileChanged());A()},0):A()})}if(null!=x&&x.isRealtimeOptional()){c=document.createElement("tr");e=document.createElement("td");e.style.whiteSpace="nowrap";e.style.overflow="hidden";e.style.textOverflow="ellipsis";e.style.fontSize="10pt";mxUtils.write(e,mxResources.get("realtimeCollaboration")+":");c.appendChild(e);var D=document.createElement("input");D.setAttribute("type",
-"checkbox");var C=x.isRealtimeEnabled();if(C="disabled"!=b.drive.getCustomProperty(x.desc,"collaboration"))D.setAttribute("checked","checked"),D.defaultChecked=!0;m(function(A,Q){D.checked!=C?x.setRealtimeEnabled(D.checked,A,Q):A()});this.init=null!=this.init?this.init:function(){D.focus()};e=document.createElement("td");e.style.whiteSpace="nowrap";e.appendChild(D);e.appendChild(b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/2672"));c.appendChild(e);t.appendChild(c)}null!=x&&
-"draw.io"==b.getServiceName()&&0<x.getSize()&&"1"!=urlParams.embed&&(c=document.createElement("tr"),e=document.createElement("td"),e.style.whiteSpace="nowrap",e.style.overflow="hidden",e.style.textOverflow="ellipsis",e.style.fontSize="10pt",mxUtils.write(e,mxResources.get("size")+":"),c.appendChild(e),e=b.formatFileSize(x.getSize()),v=document.createElement("input"),v.setAttribute("title",e),v.setAttribute("value",e),v.setAttribute("disabled","disabled"),v.style.marginLeft="4px",v.style.width="100%",
-e=document.createElement("td"),e.style.whiteSpace="nowrap",e.appendChild(v),c.appendChild(e),t.appendChild(c));null!=f&&(c=document.createElement("tr"),e=document.createElement("td"),e.style.whiteSpace="nowrap",e.style.overflow="hidden",e.style.textOverflow="ellipsis",e.style.fontSize="10pt",mxUtils.write(e,mxResources.get("publicDiagramUrl")+":"),c.appendChild(e),v=document.createElement("a"),v.setAttribute("href",f),v.setAttribute("title",f),v.style.whiteSpace="nowrap",v.style.overflow="hidden",
-v.style.textOverflow="ellipsis",v.style.display="block",v.style.margin="2px 0px 2px 8px",v.style.fontSize="10pt",mxUtils.write(v,f),mxEvent.addListener(v,"click",function(A){b.openLink(f);mxEvent.consume(A)}),e=document.createElement("td"),e.appendChild(v),c.appendChild(e),t.appendChild(c));null!=x&&null!=x.fileObject&&null!=x.fileObject.path&&(c=document.createElement("tr"),e=document.createElement("td"),e.style.whiteSpace="nowrap",e.style.overflow="hidden",e.style.textOverflow="ellipsis",e.style.fontSize=
-"10pt",mxUtils.write(e,mxResources.get("pathFilename")+":"),c.appendChild(e),v=document.createElement("input"),v.setAttribute("title",x.fileObject.path),v.setAttribute("value",x.fileObject.path),v.setAttribute("disabled","disabled"),v.style.marginLeft="4px",v.style.width="100%",e=document.createElement("td"),e.appendChild(v),c.appendChild(e),t.appendChild(c));this.init=null!=this.init?this.init:function(){};v=mxUtils.button(mxResources.get("apply"),function(){b.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
-N(function(){b.spinner.stop();b.hideDialog()},function(A){b.spinner.stop();b.handleError(A,mxResources.get("error"))})});v.className="geBtn gePrimaryBtn";c=document.createElement("tr");e=document.createElement("td");e.colSpan=2;e.style.paddingTop="20px";e.style.whiteSpace="nowrap";e.setAttribute("align","right");B=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});B.className="geBtn";b.editor.cancelFirst&&e.appendChild(B);e.appendChild(v);b.editor.cancelFirst||e.appendChild(B);c.appendChild(e);
-t.appendChild(c);d.appendChild(t);this.container=d},ConnectionPointsDialog=function(b,f){function m(){null!=t&&t.destroy()}var d=document.createElement("div");d.style.userSelect="none";var t=null;this.init=function(){function x(E,H,L){E=new mxCell("",new mxGeometry(E,H,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0;connectable=0;editable=0;");E.vertex=!0;E.cp=!0;E.constObj=L;return c.addCell(E)}function v(E){E=c.getSelectionCells();c.deleteCells(E)}
-function B(){var E=parseInt(O.value)||0;E=0>E?0:100<E?100:E;O.value=E;var H=parseInt(q.value)||0;H=0>H?0:100<H?100:H;q.value=H;var L=parseInt(p.value)||0,K=parseInt(G.value)||0;L=new mxConnectionConstraint(new mxPoint(E/100,H/100),!1,null,L,K);E=c.getConnectionPoint(l,L);H=c.getSelectionCell();if(null!=H){H.constObj=L;L=H.geometry.clone();K=c.view.scale;var k=c.view.translate;L.x=(E.x-3*K)/K-k.x;L.y=(E.y-3*K)/K-k.y;c.model.setGeometry(H,L)}}function J(E){if(E.constObj)return{x:E.constObj.point.x,
-y:E.constObj.point.y,dx:E.constObj.dx,dy:E.constObj.dy};var H=0,L=0,K=e.geometry,k=mxUtils.format((E.geometry.x+3-K.x)/K.width);E=mxUtils.format((E.geometry.y+3-K.y)/K.height);0>k?(H=k*K.width,k=0):1<k&&(H=(k-1)*K.width,k=1);0>E?(L=E*K.height,E=0):1<E&&(L=(E-1)*K.height,E=1);return{x:k,y:E,dx:parseInt(H),dy:parseInt(L)}}function N(E){if(1==c.getSelectionCount()){var H=c.getSelectionCell();E&&(H.constObj=null);E=J(H);O.value=100*E.x;q.value=100*E.y;p.value=E.dx;G.value=E.dy;U.style.visibility=""}else U.style.visibility=
-"hidden"}var I=document.createElement("div");I.style.width="350px";I.style.height="350px";I.style.overflow="hidden";I.style.border="1px solid lightGray";I.style.boxSizing="border-box";mxEvent.disableContextMenu(I);d.appendChild(I);var c=new Graph(I);c.transparentBackground=!1;c.autoExtend=!1;c.autoScroll=!1;c.setGridEnabled(!1);c.setEnabled(!0);c.setPanning(!0);c.setConnectable(!1);c.setTooltips(!1);c.minFitScale=null;c.maxFitScale=null;c.centerZoom=!0;c.maxFitScale=2;I=f.geometry;var e=new mxCell(f.value,
-new mxGeometry(0,0,I.width,I.height),f.style+";rotatable=0;resizable=0;connectable=0;editable=0;movable=0;fillColor=none;");e.vertex=!0;c.addCell(e);c.dblClick=function(E,H){if(null!=H&&H!=e)c.setSelectionCell(H);else{H=mxUtils.convertPoint(c.container,mxEvent.getClientX(E),mxEvent.getClientY(E));mxEvent.consume(E);E=c.view.scale;var L=c.view.translate;c.setSelectionCell(x((H.x-3*E)/E-L.x,(H.y-3*E)/E-L.y))}};t=new mxKeyHandler(c);t.bindKey(46,v);t.bindKey(8,v);c.getRubberband().isForceRubberbandEvent=
-function(E){return 0==E.evt.button&&(null==E.getCell()||E.getCell()==e)};c.panningHandler.isForcePanningEvent=function(E){return 2==E.evt.button};var g=c.isCellSelectable;c.isCellSelectable=function(E){return E==e?!1:g.apply(this,arguments)};c.getLinkForCell=function(){return null};var l=c.view.getState(e);I=c.getAllConnectionConstraints(l);for(var n=0;null!=I&&n<I.length;n++){var u=c.getConnectionPoint(l,I[n]);x(u.x-3,u.y-3,I[n])}c.fit(8);c.center();n=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),
-function(){c.zoomIn()});u=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){c.zoomOut()});var z=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==c.view.scale?(c.maxFitScale=8,c.fit(8)):c.zoomActual();c.center()}),D=function(){b.prompt(mxResources.get("gridSize"),c.gridSize,function(E){!isNaN(E)&&0<E&&(c.setGridSize(E),c.setGridEnabled(!0),c.refresh())})},C=b.createToolbarButton(Editor.thinGridImage,mxResources.get("grid"),function(E){mxEvent.isShiftDown(E)?
-D():(c.setGridEnabled(!c.isGridEnabled()),c.refresh())});mxEvent.addListener(C,"dblclick",D);var A=b.createToolbarButton(Editor.trashImage,mxResources.get("delete"),v);mxUtils.setOpacity(A,10);I=document.createElement("div");I.style.display="flex";I.style.alignItems="center";I.style.paddingTop="6px";I.appendChild(n);I.appendChild(u);I.appendChild(z);I.appendChild(C);I.appendChild(A);d.appendChild(I);var Q=document.createElement("input");Q.setAttribute("type","number");Q.setAttribute("min","1");Q.setAttribute("value",
-"1");Q.style.width="45px";Q.style.position="relative";Q.style.margin="0 4px 0 4px";var S=document.createElement("select");S.style.position="relative";u=["left","right","top","bottom"];for(n=0;n<u.length;n++)z=u[n],C=document.createElement("option"),mxUtils.write(C,mxResources.get(z)),C.value=z,S.appendChild(C);n=mxUtils.button(mxResources.get("add"),function(){var E=parseInt(Q.value);E=1>E?1:100<E?100:E;Q.value=E;for(var H=S.value,L=e.geometry,K=[],k=0;k<E;k++){switch(H){case "left":var y=L.x;var F=
-L.y+(k+1)*L.height/(E+1);break;case "right":y=L.x+L.width;F=L.y+(k+1)*L.height/(E+1);break;case "top":y=L.x+(k+1)*L.width/(E+1);F=L.y;break;case "bottom":y=L.x+(k+1)*L.width/(E+1),F=L.y+L.height}K.push(x(y-3,F-3))}c.setSelectionCells(K)});n.style.marginLeft="auto";I.appendChild(n);I.appendChild(Q);I.appendChild(S);var U=document.createElement("div");U.style.margin="4px 0px 8px 0px";U.style.whiteSpace="nowrap";U.style.height="24px";I=document.createElement("span");mxUtils.write(I,mxResources.get("dx"));
-U.appendChild(I);var O=document.createElement("input");O.setAttribute("type","number");O.setAttribute("min","0");O.setAttribute("max","100");O.style.width="45px";O.style.margin="0 4px 0 4px";U.appendChild(O);mxUtils.write(U,"%");var p=document.createElement("input");p.setAttribute("type","number");p.style.width="45px";p.style.margin="0 4px 0 4px";U.appendChild(p);mxUtils.write(U,"pt");I=document.createElement("span");mxUtils.write(I,mxResources.get("dy"));I.style.marginLeft="12px";U.appendChild(I);
-var q=document.createElement("input");q.setAttribute("type","number");q.setAttribute("min","0");q.setAttribute("max","100");q.style.width="45px";q.style.margin="0 4px 0 4px";U.appendChild(q);mxUtils.write(U,"%");var G=document.createElement("input");G.setAttribute("type","number");G.style.width="45px";G.style.margin="0 4px 0 4px";U.appendChild(G);mxUtils.write(U,"pt");d.appendChild(U);N();c.getSelectionModel().addListener(mxEvent.CHANGE,function(){0<c.getSelectionCount()?mxUtils.setOpacity(A,60):
-mxUtils.setOpacity(A,10);N()});c.addListener(mxEvent.CELLS_MOVED,N);mxEvent.addListener(O,"change",B);mxEvent.addListener(q,"change",B);mxEvent.addListener(p,"change",B);mxEvent.addListener(G,"change",B);I=mxUtils.button(mxResources.get("cancel"),function(){m();b.hideDialog()});I.className="geBtn";n=mxUtils.button(mxResources.get("apply"),function(){var E=c.model.cells,H=[],L=[],K;for(K in E){var k=E[K];k.cp&&L.push(J(k))}L.sort(function(y,F){return y.x!=F.x?y.x-F.x:y.y!=F.y?y.y-F.y:y.dx!=F.dx?y.dx-
-F.dx:y.dy-F.dy});for(E=0;E<L.length;E++)0<E&&L[E].x==L[E-1].x&&L[E].y==L[E-1].y&&L[E].dx==L[E-1].dx&&L[E].dy==L[E-1].dy||H.push("["+L[E].x+","+L[E].y+",0,"+L[E].dx+","+L[E].dy+"]");b.editor.graph.setCellStyles("points","["+H.join(",")+"]",[f]);m();b.hideDialog()});n.className="geBtn gePrimaryBtn";u=mxUtils.button(mxResources.get("reset"),function(){b.editor.graph.setCellStyles("points",null,[f]);m();b.hideDialog()});u.className="geBtn";z=document.createElement("div");z.style.marginTop="10px";z.style.textAlign=
-"right";b.isOffline()||z.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/shape-connection-points-customise"));b.editor.cancelFirst&&z.appendChild(I);z.appendChild(u);z.appendChild(n);b.editor.cancelFirst||z.appendChild(I);d.appendChild(z)};this.destroy=m;this.container=d};(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=
+"0px";l.style.bottom="0px";l.style.padding="6px";l.style.height="80px";var p=document.createElement("div");p.style.display="flex";p.style.gap="6px";p.style.marginBottom="6px";var u=document.createElement("select");u.style.textOverflow="ellipsis";u.style.flexGrow="1";u.style.padding="4px";u.style.minWidth="0";l.appendChild(p);var z=document.createElement("option");z.setAttribute("value","includeCopyOfMyDiagram");mxUtils.write(z,mxResources.get("includeCopyOfMyDiagram"));u.appendChild(z);var E=document.createElement("option");
+E.setAttribute("value","selectionOnly");mxUtils.write(E,mxResources.get("selectionOnly"));u.appendChild(E);p.appendChild(u);if("undefined"!==typeof mxMermaidToDrawio&&window.isMermaidEnabled){var D=document.createElement("option");D.setAttribute("value","create");mxUtils.write(D,mxResources.get("create"));u.appendChild(D)}D=document.createElement("option");D.setAttribute("value","help");mxUtils.write(D,mxResources.get("help"));u.appendChild(D);D=document.createElement("option");D.setAttribute("value",
+"reset");mxUtils.write(D,mxResources.get("reset"));u.appendChild(D);var A=document.createElement("select");A.style.textOverflow="ellipsis";A.style.flexGrow="1";A.style.padding="4px";A.style.minWidth="0";for(D=0;D<EditorUi.mermaidDiagramTypes.length;D++){var P=document.createElement("option"),R=EditorUi.mermaidDiagramTypes[D],T=R;"erDiagram"==T&&(T="entityRelationshipDiagram");T=mxResources.get(T,null,T.charAt(0).toUpperCase()+T.substring(1).replace(/[A-Z]/g," $&"));P.setAttribute("value",R);mxUtils.write(P,
+T);A.appendChild(P)}p.appendChild(A);p=document.createElement("div");p.style.whiteSpace="nowrap";p.style.textOverflow="clip";p.style.cursor="default";var L=document.createElement("input");L.setAttribute("type","text");L.style.width="100%";L.style.outline="none";L.style.border="none";L.style.background="transparent";L.style.padding="8px 26px 8px 8px";L.style.boxSizing="border-box";p.appendChild(L);D=document.createElement("img");D.setAttribute("src",Editor.sendImage);D.setAttribute("title",mxResources.get("sendMessage"));
+D.className="geAdaptiveAsset";D.style.position="relative";D.style.cursor="pointer";D.style.opacity="0.5";D.style.height="19px";D.style.left="-24px";D.style.top="5px";D.style.background="url('"+b.editor.transparentImage+"')";p.appendChild(D);l.appendChild(p);c.isSelectionEmpty()?b.isDiagramEmpty()?u.value="help":u.value="includeCopyOfMyDiagram":u.value="selectionOnly";var U=!1,n=u.value,t=function(){L.setAttribute("placeholder",mxResources.get("create"==u.value?"describeYourDiagram":"askMeAnything"));
+"create"==u.value?(u.style.width="",A.style.display=""):(u.style.width="100%",A.style.display="none")};t();mxEvent.addListener(u,"change",function(){U||("reset"==u.value?(u.value=n,g.innerHTML=""):n=u.value,t())});c.selectionModel.addListener(mxEvent.CHANGE,x);c.getModel().addListener(mxEvent.CHANGE,x);x();mxEvent.addListener(D,"click",H);mxEvent.addListener(L,"keydown",function(B){13!=B.keyCode||mxEvent.isShiftDown(B)||H()});e.appendChild(l);this.window=new mxWindow(mxResources.get("chatWindowTitle"),
+e,f,m,d,q,!0,!0);this.window.minimumSize=new mxRectangle(0,0,120,100);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.addListener(mxEvent.DESTROY,mxUtils.bind(this,function(){c.getModel().removeListener(x)}));this.window.addListener("show",mxUtils.bind(this,function(){this.window.fit();L.focus()}));b.installResizeHandler(this,!0)},TagsWindow=function(b,f,m,d,q){var x=b.editor.graph,C=null;if(!b.isOffline()||mxClient.IS_CHROMEAPP)C=
+b.menus.createHelpLink("https://www.drawio.com/blog/tags-in-diagrams");var y=b.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return this.window.isVisible()}),null,function(I,M){if(x.isEnabled()){var H=new FilenameDialog(b,"",mxResources.get("add"),function(c){b.hideDialog();if(null!=c&&0<c.length){c=c.split(" ");for(var e=[],g=[],l=0;l<c.length;l++){var p=mxUtils.trim(c[l]);""!=p&&(g.push(p),0>mxUtils.indexOf(I,p)&&e.push(p))}x.isSelectionEmpty()?M(I.concat(e)):x.addTagsForCells(x.getSelectionCells(),
+g)}},mxResources.get("tags"),null,null,"https://www.drawio.com/blog/tags-in-diagrams");b.showDialog(H.container,320,80,!0,!0);H.init()}},C);C=y.div;this.window=new mxWindow(mxResources.get("tags"),C,f,m,d,q,!0,!0);this.window.minimumSize=new mxRectangle(0,0,212,120);this.window.destroyOnClose=!1;this.window.setMaximizable(!1);this.window.setResizable(!0);this.window.setClosable(!0);this.window.addListener("show",mxUtils.bind(this,function(){y.refresh();this.window.fit()}));b.installResizeHandler(this,
+!0)},AuthDialog=function(b,f,m,d){var q=document.createElement("div");q.style.textAlign="center";var x=document.createElement("p");x.style.fontSize="16pt";x.style.padding="0px";x.style.margin="0px";x.style.color="gray";mxUtils.write(x,mxResources.get("authorizationRequired"));var C="Unknown",y=document.createElement("img");y.setAttribute("border","0");y.setAttribute("align","absmiddle");y.style.marginRight="10px";f==b.drive?(C=mxResources.get("googleDrive"),y.src=IMAGE_PATH+"/google-drive-logo-white.svg"):
+f==b.dropbox?(C=mxResources.get("dropbox"),y.src=IMAGE_PATH+"/dropbox-logo-white.svg"):f==b.oneDrive?(C=mxResources.get("oneDrive"),y.src=IMAGE_PATH+"/onedrive-logo-white.svg"):f==b.gitHub?(C=mxResources.get("github"),y.src=IMAGE_PATH+"/github-logo-white.svg"):f==b.gitLab?(C=mxResources.get("gitlab"),y.src=IMAGE_PATH+"/gitlab-logo.svg",y.style.width="32px"):f==b.trello&&(C=mxResources.get("trello"),y.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizeThisAppIn",
+[C]));var I=document.createElement("input");I.setAttribute("type","checkbox");C=mxUtils.button(mxResources.get("authorize"),function(){d(I.checked)});C.insertBefore(y,C.firstChild);C.style.marginTop="6px";C.className="geBigButton";C.style.fontSize="18px";C.style.padding="14px";q.appendChild(x);q.appendChild(b);q.appendChild(C);m&&(m=document.createElement("p"),m.style.marginTop="20px",m.appendChild(I),x=document.createElement("span"),mxUtils.write(x," "+mxResources.get("rememberMe")),m.appendChild(x),
+q.appendChild(m),I.checked=!0,I.defaultChecked=!0,mxEvent.addListener(x,"click",function(M){I.checked=!I.checked;mxEvent.consume(M)}));this.container=q},MoreShapesDialog=function(b,f,m){m=null!=m?m:b.sidebar.entries;var d=document.createElement("div"),q=[];if(null!=b.sidebar.customEntries)for(var x=0;x<b.sidebar.customEntries.length;x++){for(var C=b.sidebar.customEntries[x]||{},y={title:b.getResource(C.title),entries:[]},I=0;null!=C.entries&&I<C.entries.length;I++){var M=C.entries[I];y.entries.push({id:M.id,
+title:b.getResource(M.title),desc:b.getResource(M.desc),image:M.preview})}0<y.entries.length&&q.push(y)}for(x=0;x<m.length;x++)if(null==b.sidebar.enabledLibraries)q.push(m[x]);else{y={title:m[x].title,entries:[]};for(I=0;I<m[x].entries.length;I++)0<=mxUtils.indexOf(b.sidebar.enabledLibraries,m[x].entries[I].id)&&y.entries.push(m[x].entries[I]);0<y.entries.length&&q.push(y)}m=q;if(f){x=mxUtils.bind(this,function(R){for(var T=0;T<R.length;T++)(function(L){var U=l.cloneNode(!1);U.style.fontWeight="bold";
+U.style.backgroundColor="light-dark(#e5e5e5, #505759)";U.style.padding="6px 0px 6px 20px";mxUtils.write(U,L.title);H.appendChild(U);for(var n=0;n<L.entries.length;n++)(function(t){var B=l.cloneNode(!1);B.style.cursor="pointer";B.style.padding="4px 0px 4px 20px";B.style.whiteSpace="nowrap";B.style.overflow="hidden";B.style.textOverflow="ellipsis";B.setAttribute("title",t.title+" ("+t.id+")");var F=document.createElement("input");F.setAttribute("type","checkbox");F.checked=b.sidebar.isEntryVisible(t.id);
+F.defaultChecked=F.checked;B.appendChild(F);mxUtils.write(B," "+t.title);H.appendChild(B);var J=function(K){if(null==K||"INPUT"!=mxEvent.getSource(K).nodeName){c.style.textAlign="center";c.style.padding="0px";c.style.color="";c.innerText="";if(null!=t.desc){var k=document.createElement("pre");k.style.boxSizing="border-box";k.style.fontFamily="inherit";k.style.margin="20px";k.style.right="0px";k.style.textAlign="left";mxUtils.write(k,t.desc);c.appendChild(k)}null!=t.imageCallback?t.imageCallback(c):
+null!=t.image?(k=document.createElement("img"),k.setAttribute("border","0"),k.style.maxWidth="100%",k.setAttribute("src",t.image),c.appendChild(k)):null==t.desc&&(c.style.padding="20px",c.style.color="rgb(179, 179, 179)",mxUtils.write(c,mxResources.get("noPreview")));null!=e&&(e.style.backgroundColor="");e=B;e.style.backgroundColor="light-dark(#ebf2f9, #000000)";null!=K&&mxEvent.consume(K)}};mxEvent.addListener(B,"click",J);mxEvent.addListener(B,"dblclick",function(K){F.checked=!F.checked;mxEvent.consume(K)});
+g.push(function(){return F.checked?t.id:null});0==T&&0==n&&J()})(L.entries[n])})(R[T])});I=document.createElement("div");I.className="geDialogTitle";mxUtils.write(I,mxResources.get("shapes"));I.style.position="absolute";I.style.top="0px";I.style.left="0px";I.style.lineHeight="40px";I.style.height="40px";I.style.right="0px";var H=document.createElement("div"),c=document.createElement("div");H.style.position="absolute";H.style.top="40px";H.style.left="0px";H.style.width="202px";H.style.bottom="60px";
+H.style.overflow="auto";c.style.position="absolute";c.style.left="202px";c.style.right="0px";c.style.top="40px";c.style.bottom="60px";c.style.overflow="auto";c.style.borderLeftStyle="solid";c.style.borderLeftWidth="1px";c.style.textAlign="center";var e=null,g=[],l=document.createElement("div");l.style.position="relative";l.style.left="0px";l.style.right="0px";x(m);d.style.padding="30px";d.appendChild(I);d.appendChild(H);d.appendChild(c);m=document.createElement("div");m.className="geDialogFooter";
+m.style.position="absolute";m.style.paddingRight="16px";m.style.left="0px";m.style.right="0px";m.style.bottom="0px";m.style.height="60px";m.style.lineHeight="52px";var p=document.createElement("input");p.setAttribute("type","checkbox");p.style.position="relative";p.style.top="1px";p.checked=b.sidebar.sidebarTitles;p.defaultChecked=p.checked;m.appendChild(p);x=document.createElement("span");mxUtils.write(x," "+mxResources.get("labels"));x.style.paddingRight="20px";m.appendChild(x);mxEvent.addListener(x,
+"click",function(R){p.checked=!p.checked;mxEvent.consume(R)});var u=document.createElement("input");u.setAttribute("type","checkbox");if(isLocalStorage||mxClient.IS_CHROMEAPP)x=document.createElement("span"),x.style.paddingRight="20px",x.appendChild(u),mxUtils.write(x," "+mxResources.get("rememberThisSetting")),u.style.position="relative",u.style.top="1px",u.checked=!0,u.defaultChecked=!0,mxEvent.addListener(x,"click",function(R){mxEvent.getSource(R)!=u&&(u.checked=!u.checked,mxEvent.consume(R))}),
+m.appendChild(x);x=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});x.className="geBtn";I=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();for(var R=[],T=0;T<g.length;T++){var L=g[T].apply(this,arguments);null!=L&&R.push(L)}"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||!Editor.isSettingsEnabled()||(T=mxUtils.indexOf(R,".scratchpad"),null!=b.scratchpad!=(0<=T&&0<R.splice(T,1).length)&&b.toggleScratchpad(),T=mxUtils.indexOf(R,
+"search"),mxSettings.settings.search=0<=T&&0<R.splice(T,1).length,b.sidebar.showPalette("search",mxSettings.settings.search),u.checked&&mxSettings.save());b.sidebar.showEntries(R.join(";"),u.checked,!0);b.setSidebarTitles(p.checked,u.checked)});I.className="geBtn gePrimaryBtn"}else{var z=document.createElement("table");x=document.createElement("tbody");d.style.height="100%";d.style.overflow="auto";I=document.createElement("tr");z.style.width="100%";f=document.createElement("td");q=document.createElement("td");
+C=document.createElement("td");var E=mxUtils.bind(this,function(R,T,L){var U=document.createElement("input");U.type="checkbox";z.appendChild(U);U.checked=b.sidebar.isEntryVisible(L);var n=document.createElement("span");mxUtils.write(n,T);T=document.createElement("div");T.style.display="block";T.appendChild(U);T.appendChild(n);mxEvent.addListener(n,"click",function(t){U.checked=!U.checked;mxEvent.consume(t)});R.appendChild(T);return function(){return U.checked?L:null}});I.appendChild(f);I.appendChild(q);
+I.appendChild(C);x.appendChild(I);z.appendChild(x);g=[];var D=0;for(x=0;x<m.length;x++)for(I=0;I<m[x].entries.length;I++)D++;var A=[f,q,C],P=0;for(x=0;x<m.length;x++)(function(R){for(var T=0;T<R.entries.length;T++){var L=R.entries[T];g.push(E(A[Math.floor(P/(D/3))],L.title,L.id));P++}})(m[x]);d.appendChild(z);m=document.createElement("div");m.style.marginTop="18px";m.style.textAlign="center";u=document.createElement("input");isLocalStorage&&(u.setAttribute("type","checkbox"),u.checked=!0,u.defaultChecked=
+!0,m.appendChild(u),x=document.createElement("span"),mxUtils.write(x," "+mxResources.get("rememberThisSetting")),m.appendChild(x),mxEvent.addListener(x,"click",function(R){u.checked=!u.checked;mxEvent.consume(R)}));d.appendChild(m);x=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});x.className="geBtn";I=mxUtils.button(mxResources.get("apply"),function(){for(var R=["search"],T=0;T<g.length;T++){var L=g[T].apply(this,arguments);null!=L&&R.push(L)}b.sidebar.showEntries(0<R.length?
+R.join(";"):"",u.checked);b.hideDialog()});I.className="geBtn gePrimaryBtn";m=document.createElement("div");m.style.marginTop="26px";m.style.textAlign="right"}b.editor.cancelFirst?(m.appendChild(x),m.appendChild(I)):(m.appendChild(I),m.appendChild(x));d.appendChild(m);this.container=d},PluginsDialog=function(b,f,m,d){function q(){I=!0;if(0==y.length)C.innerText=mxResources.get("noPlugins");else{C.innerText="";for(var g=0;g<y.length;g++){var l=document.createElement("span");l.style.display="flex";
+l.style.alignItems="center";l.style.whiteSpace="nowrap";var p=document.createElement("img");p.src=Editor.trashImage;p.style.position="relative";p.style.cursor="pointer";p.style.marginRight="4px";p.style.display="inline-block";p.style.width="18px";p.setAttribute("title",mxResources.get("delete"));l.appendChild(p);mxUtils.write(l,y[g]);C.appendChild(l);mxUtils.br(C);mxEvent.addListener(p,"click",function(u){return function(){b.confirm(mxResources.get("delete")+' "'+y[u]+'"?',function(){null!=m&&m(y[u]);
+y.splice(u,1);q()})}}(g))}}}var x=document.createElement("div"),C=document.createElement("div");C.style.height="180px";C.style.overflow="auto";var y=mxSettings.getPlugins().slice(),I=!1;x.appendChild(C);q();I=!1;var M=mxUtils.button(mxResources.get("add"),null!=f?function(){f(function(g){g&&0>mxUtils.indexOf(y,g)&&y.push(g);q()})}:function(){var g=document.createElement("div"),l=document.createElement("span");l.style.marginTop="6px";mxUtils.write(l,mxResources.get("builtinPlugins")+": ");g.appendChild(l);
+var p=document.createElement("select");p.style.width="150px";for(l=0;l<App.publicPlugin.length;l++){var u=document.createElement("option");mxUtils.write(u,App.publicPlugin[l]);u.value=App.publicPlugin[l];p.appendChild(u)}g.appendChild(p);mxUtils.br(g);mxUtils.br(g);l=mxUtils.button(mxResources.get("custom")+"...",function(){var z=new FilenameDialog(b,"",mxResources.get("add"),function(E){b.hideDialog();if(null!=E&&0<E.length){E=E.split(";");for(var D=0;D<E.length;D++){var A=E[D],P=App.pluginRegistry[A];
+null!=P&&(A=P);0<A.length&&0>mxUtils.indexOf(y,A)&&y.push(A)}q()}},mxResources.get("enterValue")+" ("+mxResources.get("url")+")");b.showDialog(z.container,300,80,!0,!0);z.init()});l.className="geBtn";ALLOW_CUSTOM_PLUGINS||(l.style.display="none");g=new CustomDialog(b,g,mxUtils.bind(this,function(){var z=App.pluginRegistry[p.value];0>mxUtils.indexOf(y,z)&&(y.push(z),q())}),null,null,null,l);b.showDialog(g.container,360,100,!0,!0)});M.className="geBtn";var H=mxUtils.button(mxResources.get("cancel"),
+function(){b.hideDialog()});H.className="geBtn";var c=mxUtils.button(d?mxResources.get("close"):mxResources.get("apply"),function(){I?(mxSettings.setPlugins(y),mxSettings.save(),b.hideDialog(),b.alert(mxResources.get("restartForChangeRequired"))):b.hideDialog()});c.className="geBtn gePrimaryBtn";var e=document.createElement("div");e.style.marginTop="14px";e.style.textAlign="right";b.isOffline()||e.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/plugins"));b.editor.cancelFirst?(d||e.appendChild(H),
+e.appendChild(M),e.appendChild(c)):(e.appendChild(M),e.appendChild(c),d||e.appendChild(H));x.appendChild(e);this.container=x},CropImageDialog=function(b,f,m,d){function q(){var R=u.checked,T=z.checked,L=g.geometry,U=I.width,n=I.height,t=(300-U)/2,B=(300-n)/2;L.x<t?(L.width-=t-L.x,L.x=t):L.x+L.width>t+U&&(L.width=t+U-L.x,L.x=Math.min(L.x,t+U));L.y<B?(L.height-=B-L.y,L.y=B):L.y+L.height>B+n&&(L.height=B+n-L.y,L.y=Math.min(L.y,B+n));var F=(L.x-t)/U*100;U=100-(L.x+L.width-t)/U*100;t=(L.y-B)/n*100;L=100-
+(L.y+L.height-B)/n*100;return"inset("+mxUtils.format(t)+"% "+mxUtils.format(U)+"% "+mxUtils.format(L)+"% "+mxUtils.format(F)+"%"+(R?" round "+e+"%":T?" round 50%":"")+")"}function x(R){null!=H&&(!0!==R&&(H.model.setGeometry(g,c.clone()),e=5,D.value=e),H.model.setStyle(g,l+q()),H.selectAll(),E.style.visibility=u.checked?"visible":"hidden")}var C=document.createElement("div"),y=document.createElement("div");y.style.height="300px";y.style.width="300px";y.style.display="inline-flex";y.style.justifyContent=
+"center";y.style.alignItems="center";y.style.position="absolute";var I=document.createElement("img");I.onload=function(){function R(){H.model.setStyle(g,l+q())}H=new Graph(M);H.autoExtend=!1;H.autoScroll=!1;H.setGridEnabled(!1);H.setEnabled(!0);H.setPanning(!1);H.setConnectable(!1);H.getRubberband().setEnabled(!1);H.graphHandler.allowLivePreview=!1;var T=H.createVertexHandler;H.createVertexHandler=function(){var Q=T.apply(this,arguments);Q.livePreview=!1;return Q};if(null!=m)try{if("inset"==m.substring(0,
+5)){var L=g.geometry,U=I.width,n=I.height,t=(300-U)/2,B=(300-n)/2,F=m.match(/\(([^)]+)\)/)[1].split(/[ ,]+/),J=parseFloat(F[0]),K=parseFloat(F[1]),k=parseFloat(F[2]),v=parseFloat(F[3]);isFinite(J)&&isFinite(K)&&isFinite(k)&&isFinite(v)?(L.x=v/100*U+t,L.y=J/100*n+B,L.width=(100-K)/100*U+t-L.x,L.height=(100-k)/100*n+B-L.y,"round"==F[4]?"50%"==F[5]?z.setAttribute("checked","checked"):(e=parseInt(F[5]),D.value=e,u.setAttribute("checked","checked"),E.style.visibility="visible"):p.setAttribute("checked",
+"checked")):m=null}else m=null}catch(Q){}g.style=l+(m?m:q());g.vertex=!0;H.addCell(g,null,null,null,null);H.selectAll();H.addListener(mxEvent.CELLS_MOVED,R);H.addListener(mxEvent.CELLS_RESIZED,R);var G=H.graphHandler.mouseUp,N=H.graphHandler.mouseDown;H.graphHandler.mouseUp=function(){G.apply(this,arguments);M.style.backgroundColor="#fff9"};H.graphHandler.mouseDown=function(){N.apply(this,arguments);M.style.backgroundColor=""};H.dblClick=function(){};var O=H.getSelectionModel().changeSelection;H.getSelectionModel().changeSelection=
+function(){O.call(this,[g],[g])}};I.onerror=function(){I.onload=null;I.src=Editor.errorImage};I.setAttribute("src",f);I.style.maxWidth="300px";I.style.maxHeight="300px";y.appendChild(I);C.appendChild(y);var M=document.createElement("div");M.style.width="300px";M.style.height="300px";M.style.overflow="hidden";M.style.backgroundColor="#fff9";C.appendChild(M);var H=null,c=new mxGeometry(100,100,100,100),e=5,g=new mxCell("",c.clone(),""),l="shape=image;fillColor=none;rotatable=0;cloneable=0;deletable=0;image="+
+f.replace(";base64","")+";clipPath=",p=document.createElement("input");p.setAttribute("type","radio");p.setAttribute("id","croppingRect");p.setAttribute("name","croppingShape");p.setAttribute("checked","checked");p.style.margin="5px";C.appendChild(p);f=document.createElement("label");f.setAttribute("for","croppingRect");mxUtils.write(f,mxResources.get("rectangle"));C.appendChild(f);var u=document.createElement("input");u.setAttribute("type","radio");u.setAttribute("id","croppingRounded");u.setAttribute("name",
+"croppingShape");u.style.margin="5px";C.appendChild(u);f=document.createElement("label");f.setAttribute("for","croppingRounded");mxUtils.write(f,mxResources.get("rounded"));C.appendChild(f);var z=document.createElement("input");z.setAttribute("type","radio");z.setAttribute("id","croppingEllipse");z.setAttribute("name","croppingShape");z.style.margin="5px";C.appendChild(z);f=document.createElement("label");f.setAttribute("for","croppingEllipse");mxUtils.write(f,mxResources.get("ellipse"));C.appendChild(f);
+mxEvent.addListener(p,"change",x);mxEvent.addListener(u,"change",x);mxEvent.addListener(z,"change",x);var E=document.createElement("div");E.style.textAlign="center";E.style.visibility="hidden";var D=document.createElement("input");D.setAttribute("type","range");D.setAttribute("min","1");D.setAttribute("max","49");D.setAttribute("value",e);D.setAttribute("title",mxResources.get("arcSize"));E.appendChild(D);C.appendChild(E);mxEvent.addListener(D,"change",function(){e=this.value;x(!0)});f=mxUtils.button(mxResources.get("cancel"),
+function(){b.hideDialog()});f.className="geBtn";y=mxUtils.button(mxResources.get("apply"),function(){d(q(),g.geometry.width,g.geometry.height);b.hideDialog()});y.className="geBtn gePrimaryBtn";var A=mxUtils.button(mxResources.get("reset"),function(){d(null,I.width,I.height);b.hideDialog()});A.className="geBtn";var P=document.createElement("div");P.style.marginTop="10px";P.style.textAlign="right";b.editor.cancelFirst?(P.appendChild(f),P.appendChild(A),P.appendChild(y)):(P.appendChild(A),P.appendChild(y),
+P.appendChild(f));C.appendChild(P);this.container=C},EditGeometryDialog=function(b,f){var m=b.editor.graph,d=1==f.length?m.getCellGeometry(f[0]):null,q=document.createElement("div"),x=document.createElement("table"),C=document.createElement("tbody"),y=document.createElement("tr"),I=document.createElement("td"),M=document.createElement("td");x.style.paddingLeft="6px";mxUtils.write(I,mxResources.get("relative")+":");var H=document.createElement("input");H.setAttribute("type","checkbox");null!=d&&d.relative&&
+(H.setAttribute("checked","checked"),H.defaultChecked=!0);this.init=function(){H.focus()};M.appendChild(H);y.appendChild(I);y.appendChild(M);C.appendChild(y);y=document.createElement("tr");I=document.createElement("td");M=document.createElement("td");mxUtils.write(I,mxResources.get("left")+":");var c=document.createElement("input");c.setAttribute("type","text");c.style.width="100px";c.value=null!=d?d.x:"";M.appendChild(c);y.appendChild(I);y.appendChild(M);C.appendChild(y);y=document.createElement("tr");
+I=document.createElement("td");M=document.createElement("td");mxUtils.write(I,mxResources.get("top")+":");var e=document.createElement("input");e.setAttribute("type","text");e.style.width="100px";e.value=null!=d?d.y:"";M.appendChild(e);y.appendChild(I);y.appendChild(M);C.appendChild(y);y=document.createElement("tr");I=document.createElement("td");M=document.createElement("td");mxUtils.write(I,mxResources.get("dx")+":");var g=document.createElement("input");g.setAttribute("type","text");g.style.width=
+"100px";g.value=null!=d&&null!=d.offset?d.offset.x:"";M.appendChild(g);y.appendChild(I);y.appendChild(M);C.appendChild(y);y=document.createElement("tr");I=document.createElement("td");M=document.createElement("td");mxUtils.write(I,mxResources.get("dy")+":");var l=document.createElement("input");l.setAttribute("type","text");l.style.width="100px";l.value=null!=d&&null!=d.offset?d.offset.y:"";M.appendChild(l);y.appendChild(I);y.appendChild(M);C.appendChild(y);y=document.createElement("tr");I=document.createElement("td");
+M=document.createElement("td");mxUtils.write(I,mxResources.get("width")+":");var p=document.createElement("input");p.setAttribute("type","text");p.style.width="100px";p.value=null!=d?d.width:"";M.appendChild(p);y.appendChild(I);y.appendChild(M);C.appendChild(y);y=document.createElement("tr");I=document.createElement("td");M=document.createElement("td");mxUtils.write(I,mxResources.get("height")+":");var u=document.createElement("input");u.setAttribute("type","text");u.style.width="100px";u.value=null!=
+d?d.height:"";M.appendChild(u);y.appendChild(I);y.appendChild(M);C.appendChild(y);y=document.createElement("tr");I=document.createElement("td");M=document.createElement("td");mxUtils.write(I,mxResources.get("rotation")+":");var z=document.createElement("input");z.setAttribute("type","text");z.style.width="100px";z.value=1==f.length?mxUtils.getValue(m.getCellStyle(f[0]),mxConstants.STYLE_ROTATION,0):"";M.appendChild(z);y.appendChild(I);y.appendChild(M);C.appendChild(y);x.appendChild(C);q.appendChild(x);
+d=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});d.className="geBtn";var E=mxUtils.button(mxResources.get("apply"),function(){b.hideDialog();m.getModel().beginUpdate();try{for(var D=0;D<f.length;D++){var A=m.getCellGeometry(f[D]);null!=A&&(A=A.clone(),m.isCellMovable(f[D])&&(A.relative=H.checked,0<mxUtils.trim(c.value).length&&(A.x=Number(c.value)),0<mxUtils.trim(e.value).length&&(A.y=Number(e.value)),0<mxUtils.trim(g.value).length&&(null==A.offset&&(A.offset=new mxPoint),A.offset.x=
+Number(g.value)),0<mxUtils.trim(l.value).length&&(null==A.offset&&(A.offset=new mxPoint),A.offset.y=Number(l.value))),m.isCellResizable(f[D])&&(0<mxUtils.trim(p.value).length&&(A.width=Number(p.value)),0<mxUtils.trim(u.value).length&&(A.height=Number(u.value))),m.getModel().setGeometry(f[D],A));0<mxUtils.trim(z.value).length&&m.setCellStyles(mxConstants.STYLE_ROTATION,Number(z.value),[f[D]])}}finally{m.getModel().endUpdate()}});E.className="geBtn gePrimaryBtn";mxEvent.addListener(q,"keypress",function(D){13==
+D.keyCode&&E.click()});x=document.createElement("div");x.style.marginTop="20px";x.style.textAlign="right";b.editor.cancelFirst?(x.appendChild(d),x.appendChild(E)):(x.appendChild(E),x.appendChild(d));q.appendChild(x);this.container=q},LibraryDialog=function(b,f,m,d,q,x,C){function y(L){for(L=document.elementFromPoint(L.clientX,L.clientY);null!=L&&L.parentNode!=l;)L=L.parentNode;var U=null;if(null!=L){var n=l.firstChild;for(U=0;null!=n&&n!=L;)n=n.nextSibling,U++}return U}function I(L,U,n,t,B,F,J,K,
+k){try{if(b.spinner.stop(),null==U||"image/"==U.substring(0,6))if(null==L&&null!=J||null==u[L]){var v=function(){X.innerText="";X.style.cursor="pointer";X.style.whiteSpace="nowrap";X.style.textOverflow="ellipsis";mxUtils.write(X,null!=Z.title&&0<Z.title.length?Z.title:mxResources.get("untitled"));X.style.color=null==Z.title||0==Z.title.length?"#d0d0d0":""};l.style.backgroundImage="";p.style.display="none";var G=B,N=F;if(B>b.maxImageSize||F>b.maxImageSize){var O=Math.min(1,Math.min(b.maxImageSize/
+Math.max(1,B)),b.maxImageSize/Math.max(1,F));B*=O;F*=O}G>N?(N=Math.round(100*N/G),G=100):(G=Math.round(100*G/N),N=100);var Q=document.createElement("div");Q.setAttribute("draggable","true");Q.style.display="inline-block";Q.style.position="relative";Q.style.padding="0 12px";Q.style.cursor="move";mxUtils.setPrefixedStyle(Q.style,"transition","transform .1s ease-in-out");if(null!=L){var S=document.createElement("img");S.setAttribute("src",A.convert(L));S.style.width=G+"px";S.style.height=N+"px";S.style.margin=
+"10px";S.style.paddingBottom=Math.floor((100-N)/2)+"px";S.style.paddingLeft=Math.floor((100-G)/2)+"px";Q.appendChild(S)}else if(null!=J){var V=b.stringToCells("<"==J.xml.charAt(0)?J.xml:Graph.decompress(J.xml));0<V.length&&(b.sidebar.createThumb(V,100,100,Q,null,!0,!1,null,null,Editor.isDarkMode()?"#2a252f":"#ffffff"),Q.firstChild.style.display="inline-block",Q.firstChild.style.cursor="")}var W=document.createElement("img");W.setAttribute("src",Editor.closeBlackImage);W.setAttribute("border","0");
+W.setAttribute("title",mxResources.get("delete"));W.setAttribute("align","top");W.style.paddingTop="4px";W.style.position="absolute";W.style.marginLeft="-12px";W.style.zIndex="1";W.style.cursor="pointer";mxEvent.addListener(W,"dragstart",function(ba){mxEvent.consume(ba)});(function(ba,ha,aa){mxEvent.addListener(W,"click",function(ia){u[ha]=null;for(var fa=0;fa<c.length;fa++)if(null!=c[fa].data&&c[fa].data==ha||null!=c[fa].xml&&null!=aa&&c[fa].xml==aa.xml){c.splice(fa,1);break}Q.parentNode.removeChild(ba);
+0==c.length&&(l.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')",p.style.display="");mxEvent.consume(ia)});mxEvent.addListener(W,"dblclick",function(ia){mxEvent.consume(ia)})})(Q,L,J);Q.appendChild(W);Q.style.marginBottom="30px";var X=document.createElement("div");X.style.position="absolute";X.style.boxSizing="border-box";X.style.bottom="-18px";X.style.left="10px";X.style.right="10px";X.style.backgroundColor="light-dark(#ffffff, transparent)";X.style.overflow="hidden";X.style.textAlign=
+"center";X.setAttribute("title",mxResources.get("rename"));var Z=null;null!=L?(Z={data:L,w:B,h:F,title:k},null!=K&&(Z.aspect=K),u[L]=S,c.push(Z)):null!=J&&(J.aspect="fixed",c.push(J),Z=J);mxEvent.addListener(X,"keydown",function(ba){13==ba.keyCode&&null!=D&&(D(),D=null,mxEvent.consume(ba))});v();Q.appendChild(X);mxEvent.addListener(X,"mousedown",function(ba){"true"!=X.getAttribute("contentEditable")&&mxEvent.consume(ba)});V=function(ba){if(mxClient.IS_IOS||mxClient.IS_FF||!(null==document.documentMode||
+9<document.documentMode)){var ha=new FilenameDialog(b,Z.title||"",mxResources.get("ok"),function(aa){null!=aa&&(Z.title=aa,v())},mxResources.get("enterValue"));b.showDialog(ha.container,300,80,!0,!0);ha.init();mxEvent.consume(ba)}else if("true"!=X.getAttribute("contentEditable")){null!=D&&(D(),D=null);if(null==Z.title||0==Z.title.length)X.innerText="";X.style.textOverflow="";X.style.whiteSpace="";X.style.cursor="text";X.style.color="";X.setAttribute("contentEditable","true");mxUtils.setPrefixedStyle(X.style,
+"user-select","text");X.focus();document.execCommand("selectAll",!1,null);D=function(){X.removeAttribute("contentEditable");X.style.cursor="pointer";Z.title=mxUtils.getTextContent(X);v()};mxEvent.consume(ba)}};mxEvent.addListener(X,"click",V);mxEvent.addListener(Q,"dblclick",V);l.appendChild(Q);mxEvent.addListener(Q,"dragstart",function(ba){null==D&&(null==L&&null!=J&&(W.style.visibility="hidden",X.style.visibility="hidden"),mxClient.IS_FF&&null!=J.xml&&ba.dataTransfer.setData("Text",J.xml),z=y(ba),
+mxClient.IS_GC&&(Q.style.opacity="0.9"),window.setTimeout(function(){mxUtils.setPrefixedStyle(Q.style,"transform","scale(0.5,0.5)");mxUtils.setOpacity(Q,30);W.style.visibility="";X.style.visibility=""},0))});mxEvent.addListener(Q,"dragend",function(ba){"hidden"==W.style.visibility&&(W.style.visibility="",X.style.visibility="");z=null;mxUtils.setOpacity(Q,100);mxUtils.setPrefixedStyle(Q.style,"transform",null)})}else P||(P=!0,b.handleError({message:mxResources.get("fileExists")}));else{B=!1;try{if(G=
+mxUtils.parseXml(L),"mxlibrary"==G.documentElement.nodeName){N=JSON.parse(mxUtils.getTextContent(G.documentElement));if(null!=N&&0<N.length)for(var Y=0;Y<N.length;Y++)null!=N[Y].xml?I(null,null,0,0,0,0,N[Y]):I(N[Y].data,null,0,0,N[Y].w,N[Y].h,null,"fixed",N[Y].title);B=!0}else if("mxfile"==G.documentElement.nodeName){var ea=G.documentElement.getElementsByTagName("diagram");for(Y=0;Y<ea.length;Y++){var ca=Editor.getDiagramNodeXml(ea[Y]);V=b.stringToCells(ca);if(0<V.length){var ka=b.editor.graph.getBoundingBoxFromGeometry(V);
+null!=ka&&I(null,null,0,0,0,0,{xml:ca,w:ka.width,h:ka.height})}}B=!0}}catch(ba){null!=window.console&&console.error("Error in library dialog: "+ba)}B||(b.spinner.stop(),b.handleError({message:mxResources.get("errorLoadingFile")}))}}catch(ba){null!=window.console&&console.log("Error in library dialog: "+ba)}return null}function M(L){L.dataTransfer.dropEffect=null!=z?"move":"copy";L.stopPropagation();L.preventDefault()}function H(L){L.stopPropagation();L.preventDefault();P=!1;E=y(L);if(null!=z)null!=
+E&&E<l.children.length?(c.splice(E>z?E-1:E,0,c.splice(z,1)[0]),l.insertBefore(l.children[z],l.children[E])):(c.push(c.splice(z,1)[0]),l.appendChild(l.children[z]));else if(0<L.dataTransfer.files.length)b.importFiles(L.dataTransfer.files,0,0,b.maxImageSize,R(L));else if(0<=mxUtils.indexOf(L.dataTransfer.types,"text/uri-list")){var U=decodeURIComponent(L.dataTransfer.getData("text/uri-list"));(/(\.jpg)($|\?)/i.test(U)||/(\.png)($|\?)/i.test(U)||/(\.gif)($|\?)/i.test(U)||/(\.svg)($|\?)/i.test(U))&&b.loadImage(U,
+function(n){I(U,null,0,0,n.width,n.height);l.scrollTop=l.scrollHeight})}L.stopPropagation();L.preventDefault()}var c=[];m=document.createElement("div");m.style.height="100%";var e=document.createElement("div");e.style.whiteSpace="nowrap";e.style.height="40px";m.appendChild(e);mxUtils.write(e,mxResources.get("filename")+":");null==f&&(f=b.defaultLibraryName+".xml");var g=document.createElement("input");g.setAttribute("value",f);g.style.marginRight="20px";g.style.marginLeft="10px";g.style.width="500px";
+null==q||q.isRenamable()||g.setAttribute("disabled","true");this.init=function(){if(null==q||q.isRenamable())g.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?g.select():document.execCommand("selectAll",!1,null)};e.appendChild(g);Editor.enableUncompressedLibraries&&(g.style.width="420px",f=document.createElement("input"),f.setAttribute("type","checkbox"),f.style.marginRight="10px",e.appendChild(f),mxUtils.write(e,mxResources.get("compressed")));var l=document.createElement("div");
+l.style.borderWidth="1px 0px 1px 0px";l.style.borderColor="#d3d3d3";l.style.borderStyle="solid";l.style.marginTop="6px";l.style.overflow="auto";l.style.height="340px";l.style.backgroundPosition="center center";l.style.backgroundRepeat="no-repeat";0==c.length&&Graph.fileSupport&&(l.style.backgroundImage="url('"+IMAGE_PATH+"/droptarget.png')");var p=document.createElement("div");p.style.position="absolute";p.style.width="640px";p.style.top="260px";p.style.textAlign="center";p.style.fontSize="22px";
+p.style.color="#a0c3ff";mxUtils.write(p,mxResources.get("dragImagesHere"));m.appendChild(p);var u={},z=null,E=null,D=null;e=function(L){"true"!=mxEvent.getSource(L).getAttribute("contentEditable")&&null!=D&&(D(),D=null,mxEvent.consume(L))};mxEvent.addListener(l,"mousedown",e);mxEvent.addListener(l,"pointerdown",e);mxEvent.addListener(l,"touchstart",e);var A=new mxUrlConverter,P=!1;if(null!=d)for(e=0;e<d.length;e++)f=d[e],I(f.data,null,0,0,f.w,f.h,f,f.aspect,f.title);mxEvent.addListener(l,"dragleave",
+function(L){p.style.cursor="";for(var U=mxEvent.getSource(L);null!=U;){if(U==l||U==p){L.stopPropagation();L.preventDefault();break}U=U.parentNode}});var R=function(L){return function(U,n,t,B,F,J,K,k,v){null!=v&&EditorUi.isVisioFilename(v.name)?b.importVisio(v,mxUtils.bind(this,function(G){I(G,n,t,B,F,J,K,"fixed",mxEvent.isAltDown(L)?null:K.substring(0,K.lastIndexOf(".")).replace(/_/g," "))})):null!=v&&(new XMLHttpRequest).upload&&b.isRemoteFileFormat(U,v.name)?b.isExternalDataComms()?b.parseFile(v,
+mxUtils.bind(this,function(G){4==G.readyState&&(b.spinner.stop(),200<=G.status&&299>=G.status&&(I(G.responseText,n,t,B,F,J,K,"fixed",mxEvent.isAltDown(L)?null:K.substring(0,K.lastIndexOf(".")).replace(/_/g," ")),l.scrollTop=l.scrollHeight))})):(b.spinner.stop(),b.showError(mxResources.get("error"),mxResources.get("notInOffline"))):(I(U,n,t,B,F,J,K,"fixed",mxEvent.isAltDown(L)?null:K.substring(0,K.lastIndexOf(".")).replace(/_/g," ")),l.scrollTop=l.scrollHeight)}};mxEvent.addListener(l,"dragover",M);
+mxEvent.addListener(l,"drop",H);mxEvent.addListener(p,"dragover",M);mxEvent.addListener(p,"drop",H);m.appendChild(l);d=document.createElement("div");d.style.textAlign="right";d.style.marginTop="20px";e=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog(!0)});e.setAttribute("id","btnCancel");e.className="geBtn";b.editor.cancelFirst&&d.appendChild(e);"draw.io"!=b.getServiceName()||null==q||q.constructor!=DriveLibrary&&q.constructor!=GitHubLibrary||(f=mxUtils.button(mxResources.get("link"),
+function(){b.getPublicUrl(q,function(L){if(null!=L){var U=b.getSearch("create title mode url drive splash state clibs ui".split(" "));U+=(0==U.length?"?":"&")+"splash=0&clibs=U"+encodeURIComponent(L);L=new EmbedDialog(b,window.location.protocol+"//"+window.location.host+"/"+U,null,null,null,null,"Check out the library I made using @drawio");b.showDialog(L.container,450,240,!0);L.init()}else q.constructor==DriveLibrary?b.showError(mxResources.get("error"),mxResources.get("diagramIsNotPublic"),mxResources.get("share"),
+mxUtils.bind(this,function(){b.drive.showPermissions(q.getId(),q)}),null,mxResources.get("ok"),mxUtils.bind(this,function(){})):b.handleError({message:mxResources.get("diagramIsNotPublic")})})}),f.className="geBtn",d.appendChild(f));f=mxUtils.button(mxResources.get("export"),function(){var L=b.createLibraryDataFromImages(c),U=g.value;/(\.xml)$/i.test(U)||(U+=".xml");b.isLocalFileSave()?b.saveLocalFile(L,U,"text/xml",null,null,null!=C?C:!0,null,"xml"):(new mxXmlRequest(SAVE_URL,"filename="+encodeURIComponent(U)+
+"&format=xml&xml="+encodeURIComponent(L))).simulate(document,"_blank")});f.setAttribute("id","btnDownload");f.className="geBtn";d.appendChild(f);if(Graph.fileSupport){if(null==b.libDlgFileInputElt){var T=document.createElement("input");T.setAttribute("multiple","multiple");T.setAttribute("type","file");mxEvent.addListener(T,"change",function(L){P=!1;b.importFiles(T.files,0,0,b.maxImageSize,function(U,n,t,B,F,J,K,k,v){null!=T.files&&(R(L)(U,n,t,B,F,J,K,k,v),T.type="",T.type="file",T.value="")});l.scrollTop=
+l.scrollHeight});T.style.display="none";document.body.appendChild(T);b.libDlgFileInputElt=T}f=mxUtils.button(mxResources.get("import"),function(){null!=D&&(D(),D=null);b.libDlgFileInputElt.click()});f.setAttribute("id","btnAddImage");f.className="geBtn";d.appendChild(f)}f=mxUtils.button(mxResources.get("addImages"),function(){null!=D&&(D(),D=null);b.showImageDialog(mxResources.get("addImageUrl"),"",function(L,U,n){P=!1;if(null!=L){if("data:image/"==L.substring(0,11)){var t=L.indexOf(",");0<t&&(L=
+L.substring(0,t)+";base64,"+L.substring(t+1))}I(L,null,0,0,U,n);l.scrollTop=l.scrollHeight}})});f.setAttribute("id","btnAddImageUrl");f.className="geBtn";d.appendChild(f);this.saveBtnClickHandler=function(L,U,n,t){b.saveLibrary(L,U,n,t)};f=mxUtils.button(mxResources.get("save"),mxUtils.bind(this,function(){null!=D&&(D(),D=null);this.saveBtnClickHandler(g.value,c,q,x)}));f.setAttribute("id","btnSave");f.className="geBtn gePrimaryBtn";d.appendChild(f);b.editor.cancelFirst||d.appendChild(e);m.appendChild(d);
+this.container=m},EditShapeDialog=function(b,f,m,d,q){d=null!=d?d:300;q=null!=q?q:120;var x=document.createElement("table"),C=document.createElement("tbody");x.style.cellPadding="4px";var y=document.createElement("tr");var I=document.createElement("td");I.setAttribute("colspan","2");I.style.fontSize="10pt";mxUtils.write(I,m);y.appendChild(I);C.appendChild(y);y=document.createElement("tr");I=document.createElement("td");var M=document.createElement("textarea");M.style.outline="none";M.style.resize=
+"none";M.style.width=d-200+"px";M.style.height=q+"px";this.textarea=M;this.init=function(){M.focus();M.scrollTop=0};I.appendChild(M);y.appendChild(I);I=document.createElement("td");m=document.createElement("div");m.style.position="relative";m.style.border="1px solid gray";m.style.top="6px";m.style.width="200px";m.style.height=q+4+"px";m.style.overflow="hidden";m.style.marginBottom="16px";mxEvent.disableContextMenu(m);I.appendChild(m);var H=new Graph(m);H.setEnabled(!1);var c=b.editor.graph.cloneCell(f);
+H.addCells([c]);m=H.view.getState(c);var e="";null!=m.shape&&null!=m.shape.stencil&&(e=mxUtils.getPrettyXml(m.shape.stencil.desc));mxUtils.write(M,e||"");m=H.getGraphBounds();q=Math.min(160/m.width,(q-40)/m.height);H.view.scaleAndTranslate(q,20/q-m.x,20/q-m.y);y.appendChild(I);C.appendChild(y);y=document.createElement("tr");I=document.createElement("td");I.setAttribute("colspan","2");I.style.paddingTop="2px";I.style.whiteSpace="nowrap";I.setAttribute("align","right");b.isOffline()||(q=mxUtils.button(mxResources.get("help"),
+function(){b.openLink("https://www.drawio.com/doc/faq/shape-complex-create-edit")}),q.className="geBtn",I.appendChild(q));q=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});q.className="geBtn";b.editor.cancelFirst&&I.appendChild(q);var g=function(l,p,u){var z=M.value,E=mxUtils.parseXml(z);z=mxUtils.getPrettyXml(E.documentElement);E=E.documentElement.getElementsByTagName("parsererror");if(null!=E&&0<E.length)b.showError(mxResources.get("error"),mxResources.get("containsValidationErrors"),
+mxResources.get("ok"));else if(u&&b.hideDialog(),E=!l.model.contains(p),!u||E||z!=e){z=Graph.compress(z);l.getModel().beginUpdate();try{if(E){var D=b.editor.graph.getFreeInsertPoint();p.geometry.x=D.x;p.geometry.y=D.y;l.addCell(p)}l.setCellStyles(mxConstants.STYLE_SHAPE,"stencil("+z+")",[p])}catch(A){throw A;}finally{l.getModel().endUpdate()}E&&(l.setSelectionCell(p),l.scrollCellToVisible(p))}};m=mxUtils.button(mxResources.get("preview"),function(){g(H,c,!1)});m.className="geBtn";I.appendChild(m);
+m=mxUtils.button(mxResources.get("apply"),function(){g(b.editor.graph,f,!0)});m.className="geBtn gePrimaryBtn";I.appendChild(m);b.editor.cancelFirst||I.appendChild(q);y.appendChild(I);C.appendChild(y);x.appendChild(C);this.container=x},CustomDialog=function(b,f,m,d,q,x,C,y,I,M,H,c){var e=document.createElement("div");e.appendChild(f);var g=document.createElement("div");g.style.marginTop=null!=c?c:"30px";g.style.textAlign="right";null!=C&&g.appendChild(C);b.isOffline()||null==x||g.appendChild(b.createHelpIcon(x));
+f=mxUtils.button(I||mxResources.get("cancel"),function(){b.hideDialog();null!=d&&d()});f.className="geBtn";y&&(f.style.display="none");b.editor.cancelFirst&&g.appendChild(f);q=mxUtils.button(q||mxResources.get("ok"),mxUtils.bind(this,function(){M||b.hideDialog(null,null,this.container);if(null!=m){var l=m();if("string"===typeof l){b.showError(mxResources.get("error"),l);return}}M&&b.hideDialog(null,null,this.container)}));g.appendChild(q);q.className="geBtn gePrimaryBtn";b.editor.cancelFirst||g.appendChild(f);
+if(null!=H)for(y=0;y<H.length;y++)(function(l,p,u){l=mxUtils.button(l,function(z){p(z)});null!=u&&l.setAttribute("title",u);l.className="geBtn";g.appendChild(l)})(H[y][0],H[y][1],H[y][2]);e.appendChild(g);this.cancelBtn=f;this.okButton=q;this.container=e},BtnDialog=function(b,f,m,d){var q=document.createElement("div");q.style.textAlign="center";var x=document.createElement("p");x.style.fontSize="16pt";x.style.padding="0px";x.style.margin="0px";x.style.color="gray";mxUtils.write(x,mxResources.get("done"));
+var C="Unknown",y=document.createElement("img");y.setAttribute("border","0");y.setAttribute("align","absmiddle");y.style.marginRight="10px";f==b.drive?(C=mxResources.get("googleDrive"),y.src=IMAGE_PATH+"/google-drive-logo-white.svg"):f==b.dropbox?(C=mxResources.get("dropbox"),y.src=IMAGE_PATH+"/dropbox-logo-white.svg"):f==b.oneDrive?(C=mxResources.get("oneDrive"),y.src=IMAGE_PATH+"/onedrive-logo-white.svg"):f==b.gitHub?(C=mxResources.get("github"),y.src=IMAGE_PATH+"/github-logo-white.svg"):f==b.gitLab?
+(C=mxResources.get("gitlab"),y.src=IMAGE_PATH+"/gitlab-logo.svg"):f==b.trello&&(C=mxResources.get("trello"),y.src=IMAGE_PATH+"/trello-logo-white.svg");b=document.createElement("p");mxUtils.write(b,mxResources.get("authorizedIn",[C],"You are now authorized in {1}"));m=mxUtils.button(m,d);m.insertBefore(y,m.firstChild);m.style.marginTop="6px";m.className="geBigButton";m.style.fontSize="18px";m.style.padding="14px";q.appendChild(x);q.appendChild(b);q.appendChild(m);this.container=q},FontDialog=function(b,
+f,m,d,q){function x(D){this.style.border="";13==D.keyCode&&E.click()}var C=document.createElement("table"),y=document.createElement("tbody");C.style.marginTop="8px";var I=document.createElement("tr");var M=document.createElement("td");M.colSpan=2;M.style.whiteSpace="nowrap";M.style.fontSize="10pt";M.style.fontWeight="bold";var H=document.createElement("input");H.style.cssText="margin-right:8px;margin-bottom:8px;";H.setAttribute("value","sysfonts");H.setAttribute("type","radio");H.setAttribute("name",
+"current-fontdialog");H.setAttribute("id","fontdialog-sysfonts");M.appendChild(H);var c=document.createElement("label");c.setAttribute("for","fontdialog-sysfonts");mxUtils.write(c,mxResources.get("sysFonts",null,"System Fonts"));M.appendChild(c);I.appendChild(M);y.appendChild(I);I=document.createElement("tr");M=document.createElement("td");M.style.whiteSpace="nowrap";M.style.fontSize="10pt";M.style.width="120px";M.style.paddingLeft="15px";mxUtils.write(M,mxResources.get("fontname",null,"Font Name")+
+":");I.appendChild(M);var e=document.createElement("input");"s"==d&&e.setAttribute("value",f);e.style.marginLeft="4px";e.style.width="250px";e.className="dlg_fontName_s";M=document.createElement("td");M.appendChild(e);I.appendChild(M);y.appendChild(I);I=document.createElement("tr");M=document.createElement("td");M.colSpan=2;M.style.whiteSpace="nowrap";M.style.fontSize="10pt";M.style.fontWeight="bold";var g=document.createElement("input");g.style.cssText="margin-right:8px;margin-bottom:8px;";g.setAttribute("value",
+"googlefonts");g.setAttribute("type","radio");g.setAttribute("name","current-fontdialog");g.setAttribute("id","fontdialog-googlefonts");M.appendChild(g);c=document.createElement("label");c.setAttribute("for","fontdialog-googlefonts");mxUtils.write(c,mxResources.get("googleFonts",null,"Google Fonts"));M.appendChild(c);if(!b.isOffline()||EditorUi.isElectronApp)c=b.createHelpIcon("https://fonts.google.com/"),M.appendChild(c);I.appendChild(M);"0"!=urlParams.isGoogleFontsEnabled&&y.appendChild(I);I=document.createElement("tr");
+M=document.createElement("td");M.style.whiteSpace="nowrap";M.style.fontSize="10pt";M.style.width="120px";M.style.paddingLeft="15px";mxUtils.write(M,mxResources.get("fontname",null,"Font Name")+":");I.appendChild(M);var l=document.createElement("input");"g"==d&&l.setAttribute("value",f);l.style.marginLeft="4px";l.style.width="250px";l.className="dlg_fontName_g";M=document.createElement("td");M.appendChild(l);I.appendChild(M);"0"!=urlParams.isGoogleFontsEnabled&&y.appendChild(I);I=document.createElement("tr");
+M=document.createElement("td");M.colSpan=2;M.style.whiteSpace="nowrap";M.style.fontSize="10pt";M.style.fontWeight="bold";var p=document.createElement("input");p.style.cssText="margin-right:8px;margin-bottom:8px;";p.setAttribute("value","webfonts");p.setAttribute("type","radio");p.setAttribute("name","current-fontdialog");p.setAttribute("id","fontdialog-webfonts");M.appendChild(p);c=document.createElement("label");c.setAttribute("for","fontdialog-webfonts");mxUtils.write(c,mxResources.get("webfonts",
+null,"Web Fonts"));M.appendChild(c);I.appendChild(M);Editor.enableWebFonts&&y.appendChild(I);I=document.createElement("tr");M=document.createElement("td");M.style.whiteSpace="nowrap";M.style.fontSize="10pt";M.style.width="120px";M.style.paddingLeft="15px";mxUtils.write(M,mxResources.get("fontname",null,"Font Name")+":");I.appendChild(M);var u=document.createElement("input");"w"==d&&(Editor.enableWebFonts?u.setAttribute("value",f):e.setAttribute("value",f));u.style.marginLeft="4px";u.style.width="250px";
+u.className="dlg_fontName_w";M=document.createElement("td");M.appendChild(u);I.appendChild(M);Editor.enableWebFonts&&y.appendChild(I);I=document.createElement("tr");M=document.createElement("td");M.style.whiteSpace="nowrap";M.style.fontSize="10pt";M.style.width="120px";M.style.paddingLeft="15px";mxUtils.write(M,mxResources.get("fontUrl",null,"Font URL")+":");I.appendChild(M);var z=document.createElement("input");z.setAttribute("value",m||"");z.style.marginLeft="4px";z.style.width="250px";z.className=
+"dlg_fontUrl";M=document.createElement("td");M.appendChild(z);I.appendChild(M);Editor.enableWebFonts&&y.appendChild(I);this.init=function(){var D=e;"g"==d?D=l:"w"==d&&Editor.enableWebFonts&&(D=u);D.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?D.select():document.execCommand("selectAll",!1,null)};I=document.createElement("tr");M=document.createElement("td");M.colSpan=2;M.style.paddingTop="20px";M.style.whiteSpace="nowrap";M.setAttribute("align","right");b.isOffline()||M.appendChild(b.createHelpIcon("https://www.drawio.com/blog/external-fonts"));
+f=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();q()});f.className="geBtn";b.editor.cancelFirst&&M.appendChild(f);var E=mxUtils.button(mxResources.get("apply"),function(){if(H.checked){var D=e.value;var A="s"}else if(g.checked){D=l.value;var P=Editor.GOOGLE_FONTS+encodeURIComponent(D).replace(/%20/g,"+");A="g"}else p.checked&&(D=u.value,P=z.value,A="w");var R=D;var T=P,L=A,U=/(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/,n=C.querySelector(".dlg_fontName_"+
+L);null==n||null!=R&&0!=R.length?(n=C.querySelector(".dlg_fontUrl"),null==n||"w"!=L||U.test(T)?R=!0:(n.style.border="1px solid red",R=!1)):(n.style.border="1px solid red",R=!1);R&&(q(D,P,A),b.hideDialog())});E.className="geBtn gePrimaryBtn";mxEvent.addListener(e,"keypress",x);mxEvent.addListener(l,"keypress",x);mxEvent.addListener(u,"keypress",x);mxEvent.addListener(z,"keypress",x);mxEvent.addListener(e,"focus",function(){H.setAttribute("checked","checked");H.checked=!0});mxEvent.addListener(l,"focus",
+function(){g.setAttribute("checked","checked");g.checked=!0});mxEvent.addListener(u,"focus",function(){p.setAttribute("checked","checked");p.checked=!0});mxEvent.addListener(z,"focus",function(){p.setAttribute("checked","checked");p.checked=!0});M.appendChild(E);b.editor.cancelFirst||M.appendChild(f);I.appendChild(M);y.appendChild(I);C.appendChild(y);this.container=C};
+function AspectDialog(b,f,m,d,q){this.aspect={pageId:f||(b.pages?b.pages[0].getId():null),layerIds:m||[]};f=document.createElement("div");var x=document.createElement("h5");x.style.margin="0 0 10px";mxUtils.write(x,mxResources.get("pages"));f.appendChild(x);m=document.createElement("div");m.className="geAspectDlgList";f.appendChild(m);x=document.createElement("h5");x.style.margin="0 0 10px";mxUtils.write(x,mxResources.get("layers"));f.appendChild(x);x=document.createElement("div");x.className="geAspectDlgList";
+f.appendChild(x);this.pagesContainer=m;this.layersContainer=x;this.ui=b;m=document.createElement("div");m.style.marginTop="16px";m.style.textAlign="center";x=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog();null!=q&&q()});x.className="geBtn";b.editor.cancelFirst&&m.appendChild(x);var C=mxUtils.button(mxResources.get("ok"),mxUtils.bind(this,function(){b.hideDialog();d({pageId:this.selectedPage,layerIds:Object.keys(this.selectedLayers)})}));m.appendChild(C);C.className="geBtn gePrimaryBtn";
+b.editor.cancelFirst||m.appendChild(x);C.setAttribute("disabled","disabled");this.okBtn=C;f.appendChild(m);this.container=f}AspectDialog.prototype.init=function(){var b=this.ui.getFileData(!0);if(this.ui.pages)for(b=0;b<this.ui.pages.length;b++){var f=this.ui.updatePageRoot(this.ui.pages[b]);this.createPageItem(f.getId(),f.getName(),f.node)}else this.createPageItem("1","Page-1",mxUtils.parseXml(b).documentElement)};
+AspectDialog.prototype.createViewer=function(b,f,m,d){mxEvent.disableContextMenu(b);b.style.userSelect="none";var q=new Graph(b);q.setTooltips(!1);q.setEnabled(!1);q.setPanning(!1);q.minFitScale=null;q.maxFitScale=null;q.centerZoom=!0;f="mxGraphModel"==f.nodeName?f:Editor.parseDiagramNode(f);if(null!=f){var x=f.getAttribute("background");if(null==x||""==x||x==mxConstants.NONE)x=null!=d?d:"#ffffff";b.style.backgroundColor=x;d=new mxCodec(f.ownerDocument);b=q.getModel();d.decode(f,b);f=b.getChildCount(b.root);
+d=null==m;for(x=0;x<f;x++){var C=b.getChildAt(b.root,x);b.setVisible(C,d||m==C.id)}q.maxFitScale=1;q.fit(0);q.center()}return q};
+AspectDialog.prototype.createPageItem=function(b,f,m){var d=document.createElement("div");d.className="geAspectDlgListItem";d.setAttribute("data-page-id",b);d.innerHTML='<div style="max-width: 100%; max-height: 100%;"></div><div class="geAspectDlgListItemText">'+mxUtils.htmlEntities(f)+"</div>";this.pagesContainer.appendChild(d);var q=this.createViewer(d.childNodes[0],m);f=mxUtils.bind(this,function(){null!=this.selectedItem&&(this.selectedItem.className="geAspectDlgListItem");this.selectedItem=d;
+this.selectedPage=b;d.className+=" geAspectDlgListItemSelected";this.layersContainer.innerText="";this.selectedLayers={};this.okBtn.setAttribute("disabled","disabled");var x=q.model;x=x.getChildCells(x.getRoot());for(var C=0;C<x.length;C++)this.createLayerItem(x[C],b,q,m)});mxEvent.addListener(d,"click",f);this.aspect.pageId==b&&f()};
+AspectDialog.prototype.createLayerItem=function(b,f,m,d){f=m.convertValueToString(b)||mxResources.get("background")||"Background";var q=document.createElement("div");q.setAttribute("data-layer-id",b.id);q.className="geAspectDlgListItem";q.innerHTML='<div style="max-width: 100%; max-height: 100%;"></div><div class="geAspectDlgListItemText">'+mxUtils.htmlEntities(f)+"</div>";this.layersContainer.appendChild(q);this.createViewer(q.childNodes[0],d,b.id);d=mxUtils.bind(this,function(){0<=q.className.indexOf("geAspectDlgListItemSelected")?
+(q.className="geAspectDlgListItem",delete this.selectedLayers[b.id],mxUtils.isEmptyObject(this.selectedLayers)&&this.okBtn.setAttribute("disabled","disabled")):(q.className+=" geAspectDlgListItemSelected",this.selectedLayers[b.id]=!0,this.okBtn.removeAttribute("disabled"))});mxEvent.addListener(q,"click",d);-1!=this.aspect.layerIds.indexOf(b.id)&&d()};
+var FilePropertiesDialog=function(b,f){function m(A){var P=M;M=function(R,T){try{A(function(){P(R,T)},T)}catch(L){T(L)}}}var d=document.createElement("table"),q=document.createElement("tbody");d.style.width="100%";d.style.marginTop="8px";d.style.tableLayout="fixed";var x=b.getCurrentFile(),C=null!=x&&null!=x.getTitle()?x.getTitle():b.defaultFilename,y=/(\.png)$/i.test(C),I=/(\.svg)$/i.test(C),M=function(A,P){A()},H=null!=x?x.isLocked():!1;var c=document.createElement("tr");var e=document.createElement("td");
+e.style.whiteSpace="nowrap";e.style.overflow="hidden";e.style.textOverflow="ellipsis";e.style.fontSize="10pt";mxUtils.write(e,mxResources.get("locked")+":");c.appendChild(e);var g=document.createElement("input");g.setAttribute("type","checkbox");H&&(g.setAttribute("checked","checked"),g.defaultChecked=!0);e=document.createElement("td");e.style.whiteSpace="nowrap";e.appendChild(g);c.appendChild(e);q.appendChild(c);this.init=function(){g.focus()};m(function(A,P){null!=b.fileNode&&H!=g.checked?window.setTimeout(function(){null!=
+x&&x.setLocked(g.checked);A()},0):A()});if(y||I){C=1;y=0;c=b.fileNode;null!=c&&(c.hasAttribute("scale")&&(C=parseFloat(c.getAttribute("scale"))),c.hasAttribute("border")&&(y=parseInt(c.getAttribute("border"))));c=document.createElement("tr");e=document.createElement("td");e.style.whiteSpace="nowrap";e.style.fontSize="10pt";mxUtils.write(e,mxResources.get("zoom")+":");c.appendChild(e);var l=document.createElement("input");l.setAttribute("value",100*C+"%");l.style.marginLeft="4px";l.style.width="100%";
+e=document.createElement("td");e.style.whiteSpace="nowrap";e.appendChild(l);c.appendChild(e);q.appendChild(c);c=document.createElement("tr");e=document.createElement("td");e.style.whiteSpace="nowrap";e.style.fontSize="10pt";mxUtils.write(e,mxResources.get("borderWidth")+":");c.appendChild(e);var p=document.createElement("input");p.setAttribute("value",y);p.style.marginLeft="4px";p.style.width="100%";e=document.createElement("td");e.style.whiteSpace="nowrap";e.appendChild(p);c.appendChild(e);q.appendChild(c);
+this.init=this.init||function(){l.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?l.select():document.execCommand("selectAll",!1,null)};m(function(A,P){null!=b.fileNode&&(b.fileNode.setAttribute("scale",Math.max(0,parseInt(l.value)/100)),b.fileNode.setAttribute("border",Math.max(0,parseInt(p.value))),null!=x&&x.fileChanged());A()})}else if(!/(\.html)$/i.test(C)&&!/(\.svg)$/i.test(C)){var u=null!=x?x.isCompressed():Editor.defaultCompressed;c=document.createElement("tr");e=document.createElement("td");
+e.style.whiteSpace="nowrap";e.style.overflow="hidden";e.style.textOverflow="ellipsis";e.style.fontSize="10pt";mxUtils.write(e,mxResources.get("compressed")+":");c.appendChild(e);var z=document.createElement("input");z.setAttribute("type","checkbox");u&&(z.setAttribute("checked","checked"),z.defaultChecked=!0);e=document.createElement("td");e.style.whiteSpace="nowrap";e.appendChild(z);c.appendChild(e);q.appendChild(c);this.init=this.init||function(){z.focus()};m(function(A,P){null!=b.fileNode&&u!=
+z.checked?window.setTimeout(function(){b.fileNode.setAttribute("compressed",z.checked?"true":"false");null!=x&&(x.compressionChanged(z.checked),x.fileChanged());A()},0):A()})}if(null!=x&&x.isRealtimeOptional()){c=document.createElement("tr");e=document.createElement("td");e.style.whiteSpace="nowrap";e.style.overflow="hidden";e.style.textOverflow="ellipsis";e.style.fontSize="10pt";mxUtils.write(e,mxResources.get("realtimeCollaboration")+":");c.appendChild(e);var E=document.createElement("input");E.setAttribute("type",
+"checkbox");var D=x.isRealtimeEnabled();if(D="disabled"!=b.drive.getCustomProperty(x.desc,"collaboration"))E.setAttribute("checked","checked"),E.defaultChecked=!0;m(function(A,P){E.checked!=D?x.setRealtimeEnabled(E.checked,A,P):A()});this.init=null!=this.init?this.init:function(){E.focus()};e=document.createElement("td");e.style.whiteSpace="nowrap";e.appendChild(E);e.appendChild(b.menus.createHelpLink("https://github.com/jgraph/drawio/discussions/2672"));c.appendChild(e);q.appendChild(c)}null!=x&&
+"draw.io"==b.getServiceName()&&0<x.getSize()&&"1"!=urlParams.embed&&(c=document.createElement("tr"),e=document.createElement("td"),e.style.whiteSpace="nowrap",e.style.overflow="hidden",e.style.textOverflow="ellipsis",e.style.fontSize="10pt",mxUtils.write(e,mxResources.get("size")+":"),c.appendChild(e),e=b.formatFileSize(x.getSize()),C=document.createElement("input"),C.setAttribute("title",e),C.setAttribute("value",e),C.setAttribute("disabled","disabled"),C.style.marginLeft="4px",C.style.width="100%",
+e=document.createElement("td"),e.style.whiteSpace="nowrap",e.appendChild(C),c.appendChild(e),q.appendChild(c));null!=f&&(c=document.createElement("tr"),e=document.createElement("td"),e.style.whiteSpace="nowrap",e.style.overflow="hidden",e.style.textOverflow="ellipsis",e.style.fontSize="10pt",mxUtils.write(e,mxResources.get("publicDiagramUrl")+":"),c.appendChild(e),C=document.createElement("a"),C.setAttribute("href",f),C.setAttribute("title",f),C.style.whiteSpace="nowrap",C.style.overflow="hidden",
+C.style.textOverflow="ellipsis",C.style.display="block",C.style.margin="2px 0px 2px 8px",C.style.fontSize="10pt",mxUtils.write(C,f),mxEvent.addListener(C,"click",function(A){b.openLink(f);mxEvent.consume(A)}),e=document.createElement("td"),e.appendChild(C),c.appendChild(e),q.appendChild(c));null!=x&&null!=x.fileObject&&null!=x.fileObject.path&&(c=document.createElement("tr"),e=document.createElement("td"),e.style.whiteSpace="nowrap",e.style.overflow="hidden",e.style.textOverflow="ellipsis",e.style.fontSize=
+"10pt",mxUtils.write(e,mxResources.get("pathFilename")+":"),c.appendChild(e),C=document.createElement("input"),C.setAttribute("title",x.fileObject.path),C.setAttribute("value",x.fileObject.path),C.setAttribute("disabled","disabled"),C.style.marginLeft="4px",C.style.width="100%",e=document.createElement("td"),e.appendChild(C),c.appendChild(e),q.appendChild(c));this.init=null!=this.init?this.init:function(){};C=mxUtils.button(mxResources.get("apply"),function(){b.spinner.spin(document.body,mxResources.get("updatingDocument"))&&
+M(function(){b.spinner.stop();b.hideDialog()},function(A){b.spinner.stop();b.handleError(A,mxResources.get("error"))})});C.className="geBtn gePrimaryBtn";c=document.createElement("tr");e=document.createElement("td");e.colSpan=2;e.style.paddingTop="20px";e.style.whiteSpace="nowrap";e.setAttribute("align","right");y=mxUtils.button(mxResources.get("cancel"),function(){b.hideDialog()});y.className="geBtn";b.editor.cancelFirst&&e.appendChild(y);e.appendChild(C);b.editor.cancelFirst||e.appendChild(y);c.appendChild(e);
+q.appendChild(c);d.appendChild(q);this.container=d},ConnectionPointsDialog=function(b,f){function m(){null!=q&&q.destroy()}var d=document.createElement("div");d.style.userSelect="none";var q=null;this.init=function(){function x(B,F,J){B=new mxCell("",new mxGeometry(B,F,6,6),"shape=mxgraph.basic.x;fillColor=#29b6f2;strokeColor=#29b6f2;points=[];rotatable=0;resizable=0;connectable=0;editable=0;");B.vertex=!0;B.cp=!0;B.constObj=J;return c.addCell(B)}function C(B){B=c.getSelectionCells();c.deleteCells(B)}
+function y(){var B=parseInt(L.value)||0;B=0>B?0:100<B?100:B;L.value=B;var F=parseInt(n.value)||0;F=0>F?0:100<F?100:F;n.value=F;var J=parseInt(U.value)||0,K=parseInt(t.value)||0;J=new mxConnectionConstraint(new mxPoint(B/100,F/100),!1,null,J,K);B=c.getConnectionPoint(l,J);F=c.getSelectionCell();if(null!=F){F.constObj=J;J=F.geometry.clone();K=c.view.scale;var k=c.view.translate;J.x=(B.x-3*K)/K-k.x;J.y=(B.y-3*K)/K-k.y;c.model.setGeometry(F,J)}}function I(B){if(B.constObj)return{x:B.constObj.point.x,
+y:B.constObj.point.y,dx:B.constObj.dx,dy:B.constObj.dy};var F=0,J=0,K=e.geometry,k=mxUtils.format((B.geometry.x+3-K.x)/K.width);B=mxUtils.format((B.geometry.y+3-K.y)/K.height);0>k?(F=k*K.width,k=0):1<k&&(F=(k-1)*K.width,k=1);0>B?(J=B*K.height,B=0):1<B&&(J=(B-1)*K.height,B=1);return{x:k,y:B,dx:parseInt(F),dy:parseInt(J)}}function M(B){if(1==c.getSelectionCount()){var F=c.getSelectionCell();B&&(F.constObj=null);B=I(F);L.value=100*B.x;n.value=100*B.y;U.value=B.dx;t.value=B.dy;T.style.visibility=""}else T.style.visibility=
+"hidden"}var H=document.createElement("div");H.style.width="350px";H.style.height="350px";H.style.overflow="hidden";H.style.border="1px solid lightGray";H.style.boxSizing="border-box";mxEvent.disableContextMenu(H);d.appendChild(H);var c=new Graph(H);c.transparentBackground=!1;c.autoExtend=!1;c.autoScroll=!1;c.setGridEnabled(!1);c.setEnabled(!0);c.setPanning(!0);c.setConnectable(!1);c.setTooltips(!1);c.minFitScale=null;c.maxFitScale=null;c.centerZoom=!0;c.maxFitScale=2;H=f.geometry;var e=new mxCell(f.value,
+new mxGeometry(0,0,H.width,H.height),f.style+";rotatable=0;resizable=0;connectable=0;editable=0;movable=0;fillColor=none;");e.vertex=!0;c.addCell(e);c.dblClick=function(B,F){if(null!=F&&F!=e)c.setSelectionCell(F);else{F=mxUtils.convertPoint(c.container,mxEvent.getClientX(B),mxEvent.getClientY(B));mxEvent.consume(B);B=c.view.scale;var J=c.view.translate;c.setSelectionCell(x((F.x-3*B)/B-J.x,(F.y-3*B)/B-J.y))}};q=new mxKeyHandler(c);q.bindKey(46,C);q.bindKey(8,C);c.getRubberband().isForceRubberbandEvent=
+function(B){return 0==B.evt.button&&(null==B.getCell()||B.getCell()==e)};c.panningHandler.isForcePanningEvent=function(B){return 2==B.evt.button};var g=c.isCellSelectable;c.isCellSelectable=function(B){return B==e?!1:g.apply(this,arguments)};c.getLinkForCell=function(){return null};var l=c.view.getState(e);H=c.getAllConnectionConstraints(l);for(var p=0;null!=H&&p<H.length;p++){var u=c.getConnectionPoint(l,H[p]);x(u.x-3,u.y-3,H[p])}c.fit(8);c.center();p=b.createToolbarButton(Editor.zoomInImage,mxResources.get("zoomIn"),
+function(){c.zoomIn()});u=b.createToolbarButton(Editor.zoomOutImage,mxResources.get("zoomOut"),function(){c.zoomOut()});var z=b.createToolbarButton(Editor.zoomFitImage,mxResources.get("fit"),function(){1==c.view.scale?(c.maxFitScale=8,c.fit(8)):c.zoomActual();c.center()}),E=function(){b.prompt(mxResources.get("gridSize"),c.gridSize,function(B){!isNaN(B)&&0<B&&(c.setGridSize(B),c.setGridEnabled(!0),c.refresh())})},D=b.createToolbarButton(Editor.thinGridImage,mxResources.get("grid"),function(B){mxEvent.isShiftDown(B)?
+E():(c.setGridEnabled(!c.isGridEnabled()),c.refresh())});mxEvent.addListener(D,"dblclick",E);var A=b.createToolbarButton(Editor.trashImage,mxResources.get("delete"),C);mxUtils.setOpacity(A,10);H=document.createElement("div");H.style.display="flex";H.style.alignItems="center";H.style.paddingTop="6px";H.appendChild(p);H.appendChild(u);H.appendChild(z);H.appendChild(D);H.appendChild(A);d.appendChild(H);var P=document.createElement("input");P.setAttribute("type","number");P.setAttribute("min","1");P.setAttribute("value",
+"1");P.style.width="45px";P.style.position="relative";P.style.margin="0 4px 0 4px";var R=document.createElement("select");R.style.position="relative";u=["left","right","top","bottom"];for(p=0;p<u.length;p++)z=u[p],D=document.createElement("option"),mxUtils.write(D,mxResources.get(z)),D.value=z,R.appendChild(D);p=mxUtils.button(mxResources.get("add"),function(){var B=parseInt(P.value);B=1>B?1:100<B?100:B;P.value=B;for(var F=R.value,J=e.geometry,K=[],k=0;k<B;k++){switch(F){case "left":var v=J.x;var G=
+J.y+(k+1)*J.height/(B+1);break;case "right":v=J.x+J.width;G=J.y+(k+1)*J.height/(B+1);break;case "top":v=J.x+(k+1)*J.width/(B+1);G=J.y;break;case "bottom":v=J.x+(k+1)*J.width/(B+1),G=J.y+J.height}K.push(x(v-3,G-3))}c.setSelectionCells(K)});p.style.marginLeft="auto";H.appendChild(p);H.appendChild(P);H.appendChild(R);var T=document.createElement("div");T.style.margin="4px 0px 8px 0px";T.style.whiteSpace="nowrap";T.style.height="24px";H=document.createElement("span");mxUtils.write(H,mxResources.get("dx"));
+T.appendChild(H);var L=document.createElement("input");L.setAttribute("type","number");L.setAttribute("min","0");L.setAttribute("max","100");L.style.width="45px";L.style.margin="0 4px 0 4px";T.appendChild(L);mxUtils.write(T,"%");var U=document.createElement("input");U.setAttribute("type","number");U.style.width="45px";U.style.margin="0 4px 0 4px";T.appendChild(U);mxUtils.write(T,"pt");H=document.createElement("span");mxUtils.write(H,mxResources.get("dy"));H.style.marginLeft="12px";T.appendChild(H);
+var n=document.createElement("input");n.setAttribute("type","number");n.setAttribute("min","0");n.setAttribute("max","100");n.style.width="45px";n.style.margin="0 4px 0 4px";T.appendChild(n);mxUtils.write(T,"%");var t=document.createElement("input");t.setAttribute("type","number");t.style.width="45px";t.style.margin="0 4px 0 4px";T.appendChild(t);mxUtils.write(T,"pt");d.appendChild(T);M();c.getSelectionModel().addListener(mxEvent.CHANGE,function(){0<c.getSelectionCount()?mxUtils.setOpacity(A,60):
+mxUtils.setOpacity(A,10);M()});c.addListener(mxEvent.CELLS_MOVED,M);mxEvent.addListener(L,"change",y);mxEvent.addListener(n,"change",y);mxEvent.addListener(U,"change",y);mxEvent.addListener(t,"change",y);H=mxUtils.button(mxResources.get("cancel"),function(){m();b.hideDialog()});H.className="geBtn";p=mxUtils.button(mxResources.get("apply"),function(){var B=c.model.cells,F=[],J=[],K;for(K in B){var k=B[K];k.cp&&J.push(I(k))}J.sort(function(v,G){return v.x!=G.x?v.x-G.x:v.y!=G.y?v.y-G.y:v.dx!=G.dx?v.dx-
+G.dx:v.dy-G.dy});for(B=0;B<J.length;B++)0<B&&J[B].x==J[B-1].x&&J[B].y==J[B-1].y&&J[B].dx==J[B-1].dx&&J[B].dy==J[B-1].dy||F.push("["+J[B].x+","+J[B].y+",0,"+J[B].dx+","+J[B].dy+"]");b.editor.graph.setCellStyles("points","["+F.join(",")+"]",[f]);m();b.hideDialog()});p.className="geBtn gePrimaryBtn";u=mxUtils.button(mxResources.get("reset"),function(){b.editor.graph.setCellStyles("points",null,[f]);m();b.hideDialog()});u.className="geBtn";z=document.createElement("div");z.style.marginTop="10px";z.style.textAlign=
+"right";b.isOffline()||z.appendChild(b.createHelpIcon("https://www.drawio.com/doc/faq/shape-connection-points-customise"));b.editor.cancelFirst&&z.appendChild(H);z.appendChild(u);z.appendChild(p);b.editor.cancelFirst||z.appendChild(H);d.appendChild(z)};this.destroy=m;this.container=d};(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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iNDgiIHdpZHRo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g==";Editor.blankImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==";
Editor.facebookImage=IMAGE_PATH+"/facebook.png";Editor.tweetImage=IMAGE_PATH+"/tweet.png";Editor.svgBrokenImage=Graph.createSvgImage(10,10,'<rect x="0" y="0" width="10" height="10" stroke="#000" fill="transparent"/><path d="m 0 0 L 10 10 L 0 10 L 10 0" stroke="#000" fill="transparent"/>');Editor.configurationKey=".configuration";Editor.settingsKey=".drawio-config";Editor.defaultCustomLibraries=[];Editor.enableCustomLibraries=!0;Editor.enableUncompressedLibraries=!1;Editor.enableCustomProperties=!0;
-Editor.enableSimpleTheme=!0;Editor.enableHashObjects=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&"1"!=urlParams.embed&&window.top==window.self;Editor.defaultIncludeDiagram=!0;Editor.enableServiceWorker="0"!=urlParams.pwa&&"serviceWorker"in navigator&&("1"==urlParams.offline||/.*\.diagrams\.net$/.test(window.location.hostname)||/.*\.draw\.io$/.test(window.location.hostname));try{Editor.enableServiceWorker&&navigator.serviceWorker}catch(k){Editor.enableServiceWorker=!1}Editor.enableWebFonts="1"!=
-urlParams["safe-style-src"]&&!window.mxIsElectron;Editor.enableShadowOption=!mxClient.IS_SF;Editor.enableExportUrl=!0;Editor.enableRealtime=!0;Editor.enableRealtimeCache=!0;Editor.p2pSyncNotify=!1;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.defaultBorder=5;Editor.addSvgMetadata=!1;Editor.enableAnimations=!0;Editor.enableChatGpt=/test\.draw\.io$/.test(window.location.hostname)||
+Editor.enableSimpleTheme=!0;Editor.enableHashObjects=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&"1"!=urlParams.embed&&window.top==window.self;Editor.defaultIncludeDiagram=!0;Editor.enableServiceWorker="0"!=urlParams.pwa&&"serviceWorker"in navigator&&("1"==urlParams.offline||"1"==urlParams.enableSW||/.*\.diagrams\.net$/.test(window.location.hostname)||/.*\.draw\.io$/.test(window.location.hostname));try{Editor.enableServiceWorker&&navigator.serviceWorker}catch(k){Editor.enableServiceWorker=!1}Editor.enableWebFonts=
+"1"!=urlParams["safe-style-src"]&&!window.mxIsElectron;Editor.enableShadowOption=!mxClient.IS_SF;Editor.enableExportUrl=!0;Editor.enableRealtime=!0;Editor.enableRealtimeCache=!0;Editor.p2pSyncNotify=!1;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.defaultBorder=5;Editor.addSvgMetadata=!1;Editor.enableAnimations=!0;Editor.enableChatGpt=/test\.draw\.io$/.test(window.location.hostname)||
/preprod\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname);Editor.gptApiKey=null!=urlParams["gpt-api-key"]?decodeURIComponent(urlParams["gpt-api-key"]):null;Editor.gptModel=null!=urlParams["gpt-model"]?decodeURIComponent(urlParams["gpt-model"]):"gpt-3.5-turbo";Editor.gptUrl=null!=urlParams["gpt-url"]?decodeURIComponent(urlParams["gpt-url"]):"https://api.openai.com/v1/chat/completions";Editor.replaceSvgDataUris=
-!0;Editor.foreignObjectImages=!0;Editor.svgFileTheme="auto";Editor.svgRasterScale=4;Editor.htmlRasterScale=4;Editor.config=null;Editor.configVersion=null;Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(k){k.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,"enumerate","0")}},{name:"comic",dispName:"Comic",type:"bool",defVal:!1,isVisible:function(k,
-y){return"1"!=mxUtils.getValue(k.style,"sketch","0")}},{name:"jiggle",dispName:"Jiggle",type:"float",min:0,defVal:1,isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,"comic","0")||"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"fillWeight",dispName:"Fill Weight",type:"int",defVal:-1,isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"hachureGap",dispName:"Hachure Gap",type:"int",defVal:-1,
-isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"hachureAngle",dispName:"Hachure Angle",type:"int",defVal:-41,isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"curveFitting",dispName:"Curve Fitting",type:"float",defVal:.95,isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"simplification",
-dispName:"Simplification",type:"float",defVal:0,min:0,max:1,isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStroke",dispName:"Disable Multi Stroke",type:"bool",defVal:!1,isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStrokeFill",dispName:"Disable Multi Stroke Fill",type:"bool",defVal:!1,isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,"sketch",
-"1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"dashOffset",dispName:"Dash Offset",type:"int",defVal:-1,isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"dashGap",dispName:"Dash Gap",type:"int",defVal:-1,isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"zigzagOffset",dispName:"ZigZag Offset",type:"int",defVal:-1,isVisible:function(k,
-y){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"sketchStyle",dispName:"Sketch Style",type:"enum",defVal:"rough",enumList:[{val:"rough",dispName:"Rough"},{val:"comic",dispName:"Comic"}],isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:mxConstants.STYLE_SHADOWCOLOR,dispName:"Shadow Color",type:"color",getDefaultValue:function(){return mxConstants.SHADOWCOLOR},isVisible:function(k,y){return"1"==
-mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OPACITY,dispName:"Shadow Opacity",type:"int",min:0,max:100,getDefaultValue:function(){return 100*mxConstants.SHADOW_OPACITY},isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_X,dispName:"Shadow Offset X",
-type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_X},isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_Y,dispName:"Shadow Offset Y",type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_Y},isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,
-"0")}},{name:mxConstants.STYLE_SHADOW_BLUR,dispName:"Shadow Blur",type:"int",min:0,getDefaultValue:function(){return mxConstants.SHADOW_BLUR},isVisible:function(k,y){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:"linecap",dispName:"Line Cap",type:"enum",defVal:null,enumList:[{val:null,dispName:"Flat"},{val:"round",dispName:"Round"},{val:"square",dispName:"Square"}]},{name:"linejoin",dispName:"Line Join",
+!0;Editor.foreignObjectImages=!0;Editor.svgFileTheme="auto";Editor.svgRasterScale=4;Editor.htmlRasterScale=4;Editor.config=null;Editor.configVersion=null;Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(k){k.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"enumerate","0")}},{name:"comic",dispName:"Comic",type:"bool",defVal:!1,isVisible:function(k,
+v){return"1"!=mxUtils.getValue(k.style,"sketch","0")}},{name:"jiggle",dispName:"Jiggle",type:"float",min:0,defVal:1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"comic","0")||"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"fillWeight",dispName:"Fill Weight",type:"int",defVal:-1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"hachureGap",dispName:"Hachure Gap",type:"int",defVal:-1,
+isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"hachureAngle",dispName:"Hachure Angle",type:"int",defVal:-41,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"curveFitting",dispName:"Curve Fitting",type:"float",defVal:.95,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"simplification",
+dispName:"Simplification",type:"float",defVal:0,min:0,max:1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStroke",dispName:"Disable Multi Stroke",type:"bool",defVal:!1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"disableMultiStrokeFill",dispName:"Disable Multi Stroke Fill",type:"bool",defVal:!1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch",
+"1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"dashOffset",dispName:"Dash Offset",type:"int",defVal:-1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"dashGap",dispName:"Dash Gap",type:"int",defVal:-1,isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"zigzagOffset",dispName:"ZigZag Offset",type:"int",defVal:-1,isVisible:function(k,
+v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"sketchStyle",dispName:"Sketch Style",type:"enum",defVal:"rough",enumList:[{val:"rough",dispName:"Rough"},{val:"comic",dispName:"Comic"}],isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:mxConstants.STYLE_SHADOWCOLOR,dispName:"Shadow Color",type:"color",getDefaultValue:function(){return mxConstants.SHADOWCOLOR},isVisible:function(k,v){return"1"==
+mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OPACITY,dispName:"Shadow Opacity",type:"int",min:0,max:100,getDefaultValue:function(){return 100*mxConstants.SHADOW_OPACITY},isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_X,dispName:"Shadow Offset X",
+type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_X},isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:mxConstants.STYLE_SHADOW_OFFSET_Y,dispName:"Shadow Offset Y",type:"int",getDefaultValue:function(){return mxConstants.SHADOW_OFFSET_Y},isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,
+"0")}},{name:mxConstants.STYLE_SHADOW_BLUR,dispName:"Shadow Blur",type:"int",min:0,getDefaultValue:function(){return mxConstants.SHADOW_BLUR},isVisible:function(k,v){return"1"==mxUtils.getValue(k.style,mxConstants.STYLE_SHADOW,"0")||"1"==mxUtils.getValue(k.style,mxConstants.STYLE_TEXT_SHADOW,"0")}},{name:"linecap",dispName:"Line Cap",type:"enum",defVal:null,enumList:[{val:null,dispName:"Flat"},{val:"round",dispName:"Round"},{val:"square",dispName:"Square"}]},{name:"linejoin",dispName:"Line Join",
type:"enum",defVal:null,enumList:[{val:null,dispName:"Miter"},{val:"arcs",dispName:"Arcs"},{val:"bevel",dispName:"Bevel"},{val:"miter-clip",dispName:"Miter-Clip"},{val:"round",dispName:"Round"}]}];Editor.commonEdgeProperties=[{type:"separator"},{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},{name:"sourcePortConstraint",dispName:"Source Constraint",type:"enum",defVal:"none",enumList:[{val:"none",dispName:"None"},{val:"north",dispName:"North"},{val:"east",dispName:"East"},
{val:"south",dispName:"South"},{val:"west",dispName:"West"}]},{name:"targetPortConstraint",dispName:"Target Constraint",type:"enum",defVal:"none",enumList:[{val:"none",dispName:"None"},{val:"north",dispName:"North"},{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"}]},{name:"jettySize",dispName:"Jetty Size",type:"int",min:0,defVal:"auto",allowAuto:!0,isVisible:function(k){return"orthogonalEdgeStyle"==mxUtils.getValue(k.style,mxConstants.STYLE_EDGE,null)}},{name:"segment",
dispName:"Segment Size",type:"int",min:0,defVal:mxConstants.ENTITY_SEGMENT,isVisible:function(k){return"entityRelationEdgeStyle"==mxUtils.getValue(k.style,mxConstants.STYLE_EDGE,null)}},{name:"fillOpacity",dispName:"Fill Opacity",type:"int",min:0,max:100,defVal:100},{name:"strokeOpacity",dispName:"Stroke Opacity",type:"int",min:0,max:100,defVal:100},{name:"startFill",dispName:"Start Fill",type:"bool",defVal:!0},{name:"startFillColor",dispName:"Start Fill Color",type:"color",defVal:null},{name:"endFill",
@@ -12719,107 +12762,107 @@ dispName:"End Fill",type:"bool",defVal:!0},{name:"endFillColor",dispName:"End Fi
dispName:"Flow Duration",type:"int",defVal:500,isVisible:function(k){return"1"==mxUtils.getValue(k.style,"flowAnimation",null)}},{name:"flowAnimationTimingFunction",dispName:"Flow Timing",type:"enum",defVal:"linear",enumList:[{val:"linear",dispName:"Linear"},{val:"ease",dispName:"Ease"},{val:"ease-in",dispName:"Ease-in"},{val:"ease-out",dispName:"Ease-out"},{val:"ease-in-out",dispName:"Ease-in-out"}],isVisible:function(k){return"1"==mxUtils.getValue(k.style,"flowAnimation",null)}},{name:"flowAnimationDirection",
dispName:"Flow Direction",type:"enum",defVal:"normal",enumList:[{val:"normal",dispName:"Normal"},{val:"reverse",dispName:"Reverse"},{val:"alternate",dispName:"Alternate"},{val:"alternate-reverse",dispName:"Alternate-Reverse"}],isVisible:function(k){return"1"==mxUtils.getValue(k.style,"flowAnimation",null)}},{name:"editable",dispName:"Editable",type:"bool",defVal:!0},{name:"metaEdit",dispName:"Edit Dialog",type:"bool",defVal:!1},{name:"backgroundOutline",dispName:"Background Outline",type:"bool",defVal:!1},
{name:"bendable",dispName:"Bendable",type:"bool",defVal:!0},{name:"movable",dispName:"Movable",type:"bool",defVal:!0},{name:"cloneable",dispName:"Cloneable",type:"bool",defVal:!0},{name:"deletable",dispName:"Deletable",type:"bool",defVal:!0},{name:"noJump",dispName:"No Jumps",type:"bool",defVal:!1},{name:"ignoreEdge",dispName:"Ignore Edge",type:"bool",defVal:!1},{name:"orthogonalLoop",dispName:"Loop Routing",type:"bool",defVal:!1},{name:"orthogonal",dispName:"Orthogonal",type:"bool",defVal:!1}].concat(Editor.commonProperties);
-Editor.commonVertexProperties=[{name:"colspan",dispName:"Colspan",type:"int",min:1,defVal:1,isVisible:function(k,y){y=y.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&y.isTableCell(k.vertices[0])}},{name:"rowspan",dispName:"Rowspan",type:"int",min:1,defVal:1,isVisible:function(k,y){y=y.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&y.isTableCell(k.vertices[0])}},{type:"separator"},{name:"resizeLastRow",dispName:"Resize Last Row",type:"bool",getDefaultValue:function(k,
-y){k=y.editorUi.editor.graph.getCellStyle(1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null);return"1"==mxUtils.getValue(k,"resizeLastRow","0")},isVisible:function(k,y){y=y.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&y.isTable(k.vertices[0])}},{name:"resizeLast",dispName:"Resize Last Column",type:"bool",getDefaultValue:function(k,y){k=y.editorUi.editor.graph.getCellStyle(1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null);return"1"==mxUtils.getValue(k,"resizeLast",
-"0")},isVisible:function(k,y){y=y.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&y.isTable(k.vertices[0])}},{name:"fillOpacity",dispName:"Fill Opacity",type:"int",min:0,max:100,defVal:100},{name:"strokeOpacity",dispName:"Stroke Opacity",type:"int",min:0,max:100,defVal:100},{name:"overflow",dispName:"Text Overflow",defVal:"visible",type:"enum",enumList:[{val:"visible",dispName:"Visible"},{val:"hidden",dispName:"Hidden"},{val:"block",dispName:"Block"},{val:"fill",dispName:"Fill"},
+Editor.commonVertexProperties=[{name:"colspan",dispName:"Colspan",type:"int",min:1,defVal:1,isVisible:function(k,v){v=v.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&v.isTableCell(k.vertices[0])}},{name:"rowspan",dispName:"Rowspan",type:"int",min:1,defVal:1,isVisible:function(k,v){v=v.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&v.isTableCell(k.vertices[0])}},{type:"separator"},{name:"resizeLastRow",dispName:"Resize Last Row",type:"bool",getDefaultValue:function(k,
+v){k=v.editorUi.editor.graph.getCellStyle(1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null);return"1"==mxUtils.getValue(k,"resizeLastRow","0")},isVisible:function(k,v){v=v.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&v.isTable(k.vertices[0])}},{name:"resizeLast",dispName:"Resize Last Column",type:"bool",getDefaultValue:function(k,v){k=v.editorUi.editor.graph.getCellStyle(1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null);return"1"==mxUtils.getValue(k,"resizeLast",
+"0")},isVisible:function(k,v){v=v.editorUi.editor.graph;return 1==k.vertices.length&&0==k.edges.length&&v.isTable(k.vertices[0])}},{name:"fillOpacity",dispName:"Fill Opacity",type:"int",min:0,max:100,defVal:100},{name:"strokeOpacity",dispName:"Stroke Opacity",type:"int",min:0,max:100,defVal:100},{name:"overflow",dispName:"Text Overflow",defVal:"visible",type:"enum",enumList:[{val:"visible",dispName:"Visible"},{val:"hidden",dispName:"Hidden"},{val:"block",dispName:"Block"},{val:"fill",dispName:"Fill"},
{val:"width",dispName:"Width"}]},{name:"noLabel",dispName:"Hide Label",type:"bool",defVal:!1},{name:"labelPadding",dispName:"Label Padding",type:"float",defVal:0},{name:"direction",dispName:"Direction",type:"enum",defVal:"east",enumList:[{val:"north",dispName:"North"},{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"}]},{name:"portConstraint",dispName:"Constraint",type:"enum",defVal:"none",enumList:[{val:"none",dispName:"None"},{val:"north",dispName:"North"},
-{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"}]},{name:"portConstraintRotation",dispName:"Rotate Constraint",type:"bool",defVal:!1},{name:"connectable",dispName:"Connectable",type:"bool",getDefaultValue:function(k,y){return y.editorUi.editor.graph.isCellConnectable(0<k.vertices.length&&0==k.edges.length?k.vertices[0]:null)},isVisible:function(k,y){return 0<k.vertices.length&&0==k.edges.length}},{name:"allowArrows",dispName:"Allow Arrows",type:"bool",defVal:!0},
+{val:"east",dispName:"East"},{val:"south",dispName:"South"},{val:"west",dispName:"West"}]},{name:"portConstraintRotation",dispName:"Rotate Constraint",type:"bool",defVal:!1},{name:"connectable",dispName:"Connectable",type:"bool",getDefaultValue:function(k,v){return v.editorUi.editor.graph.isCellConnectable(0<k.vertices.length&&0==k.edges.length?k.vertices[0]:null)},isVisible:function(k,v){return 0<k.vertices.length&&0==k.edges.length}},{name:"allowArrows",dispName:"Allow Arrows",type:"bool",defVal:!0},
{name:"snapToPoint",dispName:"Snap to Point",type:"bool",defVal:!1},{name:"perimeter",dispName:"Perimeter",defVal:"none",type:"enum",enumList:[{val:"none",dispName:"None"},{val:"rectanglePerimeter",dispName:"Rectangle"},{val:"ellipsePerimeter",dispName:"Ellipse"},{val:"rhombusPerimeter",dispName:"Rhombus"},{val:"trianglePerimeter",dispName:"Triangle"},{val:"hexagonPerimeter2",dispName:"Hexagon"},{val:"lifelinePerimeter",dispName:"Lifeline"},{val:"orthogonalPerimeter",dispName:"Orthogonal"},{val:"backbonePerimeter",
-dispName:"Backbone"},{val:"calloutPerimeter",dispName:"Callout"},{val:"parallelogramPerimeter",dispName:"Parallelogram"},{val:"trapezoidPerimeter",dispName:"Trapezoid"},{val:"stepPerimeter",dispName:"Step"},{val:"centerPerimeter",dispName:"Center"}]},{name:"fixDash",dispName:"Fixed Dash",type:"bool",defVal:!1},{name:"container",dispName:"Container",type:"bool",getDefaultValue:function(k,y){k=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;y=y.editorUi.editor.graph;return null!=k&&y.isSwimlane(k)},
-isVisible:function(k,y){return 1==k.vertices.length&&0==k.edges.length}},{name:"dropTarget",dispName:"Drop Target",type:"bool",getDefaultValue:function(k,y){k=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;y=y.editorUi.editor.graph;return null!=k&&(y.isSwimlane(k)||0<y.model.getChildCount(k))},isVisible:function(k,y){return 1==k.vertices.length&&0==k.edges.length}},{name:"collapsible",dispName:"Collapsible",type:"bool",getDefaultValue:function(k,y){var F=1==k.vertices.length&&0==k.edges.length?
-k.vertices[0]:null;y=y.editorUi.editor.graph;return null!=F&&(y.isContainer(F)&&"0"!=k.style.collapsible||!y.isContainer(F)&&"1"==k.style.collapsible)},isVisible:function(k,y){return 1==k.vertices.length&&0==k.edges.length}},{name:"recursiveResize",dispName:"Resize Children",type:"bool",defVal:!0,isVisible:function(k,y){return 1==k.vertices.length&&0==k.edges.length&&!y.editorUi.editor.graph.isSwimlane(k.vertices[0])&&null==mxUtils.getValue(k.style,"childLayout",null)}},{name:"expand",dispName:"Expand",
-type:"bool",defVal:!0},{name:"part",dispName:"Part",type:"bool",defVal:!1,isVisible:function(k,y){y=y.editorUi.editor.graph.model;return 0<k.vertices.length?y.isVertex(y.getParent(k.vertices[0])):!1}},{name:"editable",dispName:"Editable",type:"bool",defVal:!0},{name:"metaEdit",dispName:"Edit Dialog",type:"bool",defVal:!1},{name:"backgroundOutline",dispName:"Background Outline",type:"bool",defVal:!1},{name:"movable",dispName:"Movable",type:"bool",defVal:!0},{name:"movableLabel",dispName:"Movable Label",
-type:"bool",defVal:!1,isVisible:function(k,y){k=0<k.vertices.length?y.editorUi.editor.graph.getCellGeometry(k.vertices[0]):null;return null!=k&&!k.relative}},{name:"autosize",dispName:"Autosize",type:"bool",defVal:!1},{name:"autosizeGrid",dispName:"Autosize Grid",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"1",dispName:"Enabled"},{val:"0",dispName:"Disabled"}],isVisible:function(k,y){return 0<k.vertices.length&&y.editorUi.editor.graph.isAutoSizeCell(k.vertices[0])}},{name:"fixedWidth",
+dispName:"Backbone"},{val:"calloutPerimeter",dispName:"Callout"},{val:"parallelogramPerimeter",dispName:"Parallelogram"},{val:"trapezoidPerimeter",dispName:"Trapezoid"},{val:"stepPerimeter",dispName:"Step"},{val:"centerPerimeter",dispName:"Center"}]},{name:"fixDash",dispName:"Fixed Dash",type:"bool",defVal:!1},{name:"container",dispName:"Container",type:"bool",getDefaultValue:function(k,v){k=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;v=v.editorUi.editor.graph;return null!=k&&v.isSwimlane(k)},
+isVisible:function(k,v){return 1==k.vertices.length&&0==k.edges.length}},{name:"dropTarget",dispName:"Drop Target",type:"bool",getDefaultValue:function(k,v){k=1==k.vertices.length&&0==k.edges.length?k.vertices[0]:null;v=v.editorUi.editor.graph;return null!=k&&(v.isSwimlane(k)||0<v.model.getChildCount(k))},isVisible:function(k,v){return 1==k.vertices.length&&0==k.edges.length}},{name:"collapsible",dispName:"Collapsible",type:"bool",getDefaultValue:function(k,v){var G=1==k.vertices.length&&0==k.edges.length?
+k.vertices[0]:null;v=v.editorUi.editor.graph;return null!=G&&(v.isContainer(G)&&"0"!=k.style.collapsible||!v.isContainer(G)&&"1"==k.style.collapsible)},isVisible:function(k,v){return 1==k.vertices.length&&0==k.edges.length}},{name:"recursiveResize",dispName:"Resize Children",type:"bool",defVal:!0,isVisible:function(k,v){return 1==k.vertices.length&&0==k.edges.length&&!v.editorUi.editor.graph.isSwimlane(k.vertices[0])&&null==mxUtils.getValue(k.style,"childLayout",null)}},{name:"expand",dispName:"Expand",
+type:"bool",defVal:!0},{name:"part",dispName:"Part",type:"bool",defVal:!1,isVisible:function(k,v){v=v.editorUi.editor.graph.model;return 0<k.vertices.length?v.isVertex(v.getParent(k.vertices[0])):!1}},{name:"editable",dispName:"Editable",type:"bool",defVal:!0},{name:"metaEdit",dispName:"Edit Dialog",type:"bool",defVal:!1},{name:"backgroundOutline",dispName:"Background Outline",type:"bool",defVal:!1},{name:"movable",dispName:"Movable",type:"bool",defVal:!0},{name:"movableLabel",dispName:"Movable Label",
+type:"bool",defVal:!1,isVisible:function(k,v){k=0<k.vertices.length?v.editorUi.editor.graph.getCellGeometry(k.vertices[0]):null;return null!=k&&!k.relative}},{name:"autosize",dispName:"Autosize",type:"bool",defVal:!1},{name:"autosizeGrid",dispName:"Autosize Grid",type:"enum",defVal:null,enumList:[{val:null,dispName:"Default"},{val:"1",dispName:"Enabled"},{val:"0",dispName:"Disabled"}],isVisible:function(k,v){return 0<k.vertices.length&&v.editorUi.editor.graph.isAutoSizeCell(k.vertices[0])}},{name:"fixedWidth",
dispName:"Fixed Width",type:"bool",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,y){var F=mxUtils.getValue(k.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||y.editorUi.editor.graph.isSwimlane(k.vertices[0])||null==F||F==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,y){return 0<k.vertices.length&&y.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 y=rough.canvas({getContext:function(){return k}});y.draw=function(F){var M=F.sets||[];F=F.options||this.getDefaultOptions();for(var P=0;P<M.length;P++){var R=M[P];switch(R.type){case "path":null!=F.stroke&&this._drawToContext(k,R,F);break;case "fillPath":this._drawToContext(k,R,F);break;case "fillSketch":this.fillSketch(k,R,F)}}};y.fillSketch=function(F,M,P){var R=k.state.strokeColor,T=k.state.strokeWidth,V=k.state.strokeAlpha,W=k.state.dashed,X=P.fillWeight;
-0>X&&(X=P.strokeWidth/2);k.setStrokeAlpha(k.state.fillAlpha);k.setStrokeColor(P.fill||"");k.setStrokeWidth(X);k.setDashed(!1);this._drawToContext(F,M,P);k.setDashed(W);k.setStrokeWidth(T);k.setStrokeColor(R);k.setStrokeAlpha(V)};y._drawToContext=function(F,M,P){F.begin();for(var R=0;R<M.ops.length;R++){var T=M.ops[R],V=T.data;switch(T.op){case "move":F.moveTo(V[0],V[1]);break;case "bcurveTo":F.curveTo(V[0],V[1],V[2],V[3],V[4],V[5]);break;case "lineTo":F.lineTo(V[0],V[1])}}F.end();"fillPath"===M.type&&
-P.filled?F.fill():F.stroke()};return y};(function(){function k(R,T,V){this.canvas=R;this.rc=T;this.shape=V;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=
+dispName:"Tree Moving",type:"bool",defVal:!1},{name:"pointerEvents",dispName:"Pointer Events",type:"bool",defVal:!0,isVisible:function(k,v){var G=mxUtils.getValue(k.style,mxConstants.STYLE_FILLCOLOR,null);return!mxShape.forceFilledPointerEvents||v.editorUi.editor.graph.isSwimlane(k.vertices[0])||null==G||G==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,v){return 0<k.vertices.length&&v.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 v=rough.canvas({getContext:function(){return k}});v.draw=function(G){var N=G.sets||[];G=G.options||this.getDefaultOptions();for(var O=0;O<N.length;O++){var Q=N[O];switch(Q.type){case "path":null!=G.stroke&&this._drawToContext(k,Q,G);break;case "fillPath":this._drawToContext(k,Q,G);break;case "fillSketch":this.fillSketch(k,Q,G)}}};v.fillSketch=function(G,N,O){var Q=k.state.strokeColor,S=k.state.strokeWidth,V=k.state.strokeAlpha,W=k.state.dashed,X=O.fillWeight;
+0>X&&(X=O.strokeWidth/2);k.setStrokeAlpha(k.state.fillAlpha);k.setStrokeColor(O.fill||"");k.setStrokeWidth(X);k.setDashed(!1);this._drawToContext(G,N,O);k.setDashed(W);k.setStrokeWidth(S);k.setStrokeColor(Q);k.setStrokeAlpha(V)};v._drawToContext=function(G,N,O){G.begin();for(var Q=0;Q<N.ops.length;Q++){var S=N.ops[Q],V=S.data;switch(S.op){case "move":G.moveTo(V[0],V[1]);break;case "bcurveTo":G.curveTo(V[0],V[1],V[2],V[3],V[4],V[5]);break;case "lineTo":G.lineTo(V[0],V[1])}}G.end();"fillPath"===N.type&&
+O.filled?G.fill():G.stroke()};return v};(function(){function k(Q,S,V){this.canvas=Q;this.rc=S;this.shape=V;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(R,T){var V=1;if(null!=this.shape.state){var W=this.shape.state.cell.id;if(null!=W)for(var X=0;X<W.length;X++)V=(V<<5)-V+W.charCodeAt(X)<<0}V={strokeWidth:this.canvas.state.strokeWidth,seed:V,preserveVertices:!0};W=this.rc.getDefaultOptions();V.stroke=R?this.canvas.state.strokeColor===mxConstants.NONE?"transparent":this.canvas.state.strokeColor:
-mxConstants.NONE;R=null;(V.filled=T)?(V.fill=this.canvas.state.fillColor===mxConstants.NONE?"":this.canvas.state.fillColor,R=this.canvas.state.gradientColor===mxConstants.NONE?null:this.canvas.state.gradientColor):V.fill="";V.bowing=mxUtils.getValue(this.shape.style,"bowing",W.bowing);V.hachureAngle=mxUtils.getValue(this.shape.style,"hachureAngle",W.hachureAngle);V.curveFitting=mxUtils.getValue(this.shape.style,"curveFitting",W.curveFitting);V.roughness=mxUtils.getValue(this.shape.style,"jiggle",
-W.roughness);V.simplification=mxUtils.getValue(this.shape.style,"simplification",W.simplification);V.disableMultiStroke=mxUtils.getValue(this.shape.style,"disableMultiStroke",W.disableMultiStroke);V.disableMultiStrokeFill=mxUtils.getValue(this.shape.style,"disableMultiStrokeFill",W.disableMultiStrokeFill);T=mxUtils.getValue(this.shape.style,"hachureGap",-1);V.hachureGap="auto"==T?-1:T;V.dashGap=mxUtils.getValue(this.shape.style,"dashGap",T);V.dashOffset=mxUtils.getValue(this.shape.style,"dashOffset",
-T);V.zigzagOffset=mxUtils.getValue(this.shape.style,"zigzagOffset",T);T=mxUtils.getValue(this.shape.style,"fillWeight",-1);V.fillWeight="auto"==T?-1:T;T=mxUtils.getValue(this.shape.style,"fillStyle","auto");"dots"==T&&(T="auto");"auto"==T&&(T=[mxUtils.hex2rgb("#ffffff")],null!=this.shape.state&&T.push(mxUtils.hex2rgb(this.shape.state.view.graph.shapeBackgroundColor)),Editor.isDarkMode()&&T.push(mxUtils.hex2rgb(Editor.darkColor)),T=null!=V.fill&&(null!=R||0<=mxUtils.indexOf(T,mxUtils.hex2rgb(V.fill)))?
-"solid":W.fillStyle);V.fillStyle=T;return V};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 R=2;R<arguments.length;R+=2)this.lastX=arguments[R-1],this.lastY=arguments[R],this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};
-k.prototype.lineTo=function(R,T){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,R,T),this.lastX=R,this.lastY=T)};k.prototype.moveTo=function(R,T){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,R,T),this.lastX=R,this.lastY=T,this.firstX=R,this.firstY=T)};k.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};k.prototype.quadTo=function(R,T,V,W){this.passThrough?
-this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,R,T,V,W),this.lastX=V,this.lastY=W)};k.prototype.curveTo=function(R,T,V,W,X,Y){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,R,T,V,W,X,Y),this.lastX=X,this.lastY=Y)};k.prototype.arcTo=function(R,T,V,W,X,Y,Z){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var da=mxUtils.arcToCurves(this.lastX,this.lastY,R,T,V,W,X,Y,Z);if(null!=da)for(var ea=0;ea<da.length;ea+=
-6)this.curveTo(da[ea],da[ea+1],da[ea+2],da[ea+3],da[ea+4],da[ea+5]);this.lastX=Y;this.lastY=Z}};k.prototype.rect=function(R,T,V,W){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(R,T,V,W,this.getStyle(!0,!0)))};k.prototype.ellipse=function(R,T,V,W){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(R+V/2,T+W/2,V,W,this.getStyle(!0,!0)))};k.prototype.roundrect=
-function(R,T,V,W,X,Y){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(R+X,T),this.lineTo(R+V-X,T),this.quadTo(R+V,T,R+V,T+Y),this.lineTo(R+V,T+W-Y),this.quadTo(R+V,T+W,R+V-X,T+W),this.lineTo(R+X,T+W),this.quadTo(R,T+W,R,T+W-Y),this.lineTo(R,T+Y),this.quadTo(R,T,R+X,T))};k.prototype.drawPath=function(R){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),R)}catch(V){}this.passThrough=!1}else if(null!=this.nextShape){for(var T in R)this.nextShape.options[T]=
-R[T];R.stroke!=mxConstants.NONE&&null!=R.stroke||delete this.nextShape.options.stroke;R.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.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(Q,S){var V=1;if(null!=this.shape.state){var W=this.shape.state.cell.id;if(null!=W)for(var X=0;X<W.length;X++)V=(V<<5)-V+W.charCodeAt(X)<<0}V={strokeWidth:this.canvas.state.strokeWidth,seed:V,preserveVertices:!0};W=this.rc.getDefaultOptions();V.stroke=Q?this.canvas.state.strokeColor===mxConstants.NONE?"transparent":this.canvas.state.strokeColor:
+mxConstants.NONE;Q=null;(V.filled=S)?(V.fill=this.canvas.state.fillColor===mxConstants.NONE?"":this.canvas.state.fillColor,Q=this.canvas.state.gradientColor===mxConstants.NONE?null:this.canvas.state.gradientColor):V.fill="";V.bowing=mxUtils.getValue(this.shape.style,"bowing",W.bowing);V.hachureAngle=mxUtils.getValue(this.shape.style,"hachureAngle",W.hachureAngle);V.curveFitting=mxUtils.getValue(this.shape.style,"curveFitting",W.curveFitting);V.roughness=mxUtils.getValue(this.shape.style,"jiggle",
+W.roughness);V.simplification=mxUtils.getValue(this.shape.style,"simplification",W.simplification);V.disableMultiStroke=mxUtils.getValue(this.shape.style,"disableMultiStroke",W.disableMultiStroke);V.disableMultiStrokeFill=mxUtils.getValue(this.shape.style,"disableMultiStrokeFill",W.disableMultiStrokeFill);S=mxUtils.getValue(this.shape.style,"hachureGap",-1);V.hachureGap="auto"==S?-1:S;V.dashGap=mxUtils.getValue(this.shape.style,"dashGap",S);V.dashOffset=mxUtils.getValue(this.shape.style,"dashOffset",
+S);V.zigzagOffset=mxUtils.getValue(this.shape.style,"zigzagOffset",S);S=mxUtils.getValue(this.shape.style,"fillWeight",-1);V.fillWeight="auto"==S?-1:S;S=mxUtils.getValue(this.shape.style,"fillStyle","auto");"dots"==S&&(S="auto");"auto"==S&&(S=[mxUtils.hex2rgb("#ffffff")],null!=this.shape.state&&S.push(mxUtils.hex2rgb(this.shape.state.view.graph.shapeBackgroundColor)),Editor.isDarkMode()&&S.push(mxUtils.hex2rgb(Editor.darkColor)),S=null!=V.fill&&(null!=Q||0<=mxUtils.indexOf(S,mxUtils.hex2rgb(V.fill)))?
+"solid":W.fillStyle);V.fillStyle=S;return V};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 Q=2;Q<arguments.length;Q+=2)this.lastX=arguments[Q-1],this.lastY=arguments[Q],this.path.push(this.canvas.format(this.lastX)),this.path.push(this.canvas.format(this.lastY))};
+k.prototype.lineTo=function(Q,S){this.passThrough?this.originalLineTo.apply(this.canvas,arguments):(this.addOp(this.lineOp,Q,S),this.lastX=Q,this.lastY=S)};k.prototype.moveTo=function(Q,S){this.passThrough?this.originalMoveTo.apply(this.canvas,arguments):(this.addOp(this.moveOp,Q,S),this.lastX=Q,this.lastY=S,this.firstX=Q,this.firstY=S)};k.prototype.close=function(){this.passThrough?this.originalClose.apply(this.canvas,arguments):this.addOp(this.closeOp)};k.prototype.quadTo=function(Q,S,V,W){this.passThrough?
+this.originalQuadTo.apply(this.canvas,arguments):(this.addOp(this.quadOp,Q,S,V,W),this.lastX=V,this.lastY=W)};k.prototype.curveTo=function(Q,S,V,W,X,Z){this.passThrough?this.originalCurveTo.apply(this.canvas,arguments):(this.addOp(this.curveOp,Q,S,V,W,X,Z),this.lastX=X,this.lastY=Z)};k.prototype.arcTo=function(Q,S,V,W,X,Z,Y){if(this.passThrough)this.originalArcTo.apply(this.canvas,arguments);else{var ea=mxUtils.arcToCurves(this.lastX,this.lastY,Q,S,V,W,X,Z,Y);if(null!=ea)for(var ca=0;ca<ea.length;ca+=
+6)this.curveTo(ea[ca],ea[ca+1],ea[ca+2],ea[ca+3],ea[ca+4],ea[ca+5]);this.lastX=Z;this.lastY=Y}};k.prototype.rect=function(Q,S,V,W){this.passThrough?this.originalRect.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.rectangle(Q,S,V,W,this.getStyle(!0,!0)))};k.prototype.ellipse=function(Q,S,V,W){this.passThrough?this.originalEllipse.apply(this.canvas,arguments):(this.path=[],this.nextShape=this.rc.generator.ellipse(Q+V/2,S+W/2,V,W,this.getStyle(!0,!0)))};k.prototype.roundrect=
+function(Q,S,V,W,X,Z){this.passThrough?this.originalRoundrect.apply(this.canvas,arguments):(this.begin(),this.moveTo(Q+X,S),this.lineTo(Q+V-X,S),this.quadTo(Q+V,S,Q+V,S+Z),this.lineTo(Q+V,S+W-Z),this.quadTo(Q+V,S+W,Q+V-X,S+W),this.lineTo(Q+X,S+W),this.quadTo(Q,S+W,Q,S+W-Z),this.lineTo(Q,S+Z),this.quadTo(Q,S,Q+X,S))};k.prototype.drawPath=function(Q){if(0<this.path.length){this.passThrough=!0;try{this.rc.path(this.path.join(" "),Q)}catch(V){}this.passThrough=!1}else if(null!=this.nextShape){for(var S in Q)this.nextShape.options[S]=
+Q[S];Q.stroke!=mxConstants.NONE&&null!=Q.stroke||delete this.nextShape.options.stroke;Q.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(R){return new k(R,Editor.createRoughCanvas(R),this)};var y=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(R){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?y.apply(this,arguments):"comic"==mxUtils.getValue(this.style,
-"sketchStyle","rough")?this.createComicCanvas(R):this.createRoughCanvas(R)};var F=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(R,T,V,W,X){null!=R.handJiggle&&R.handJiggle.passThrough||F.apply(this,arguments)};var M=mxShape.prototype.paint;mxShape.prototype.paint=function(R){var T=R.addTolerance,V=!0;null!=this.style&&(V="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=R.handJiggle&&R.handJiggle.constructor==k&&!this.outline){R.save();
-var W=this.fill,X=this.stroke;this.stroke=this.fill=null;var Y=this.configurePointerEvents,Z=R.setStrokeColor;R.setStrokeColor=function(){};var da=R.setFillColor;R.setFillColor=function(){};V||null==W||(this.configurePointerEvents=function(){});R.handJiggle.passThrough=!0;M.apply(this,arguments);R.handJiggle.passThrough=!1;R.setFillColor=da;R.setStrokeColor=Z;this.configurePointerEvents=Y;this.stroke=X;this.fill=W;R.restore();V&&null!=W&&(R.addTolerance=function(){})}M.apply(this,arguments);R.addTolerance=
-T};var P=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(R,T,V,W,X,Y){null!=R.handJiggle&&R.handJiggle.constructor==k?(R.handJiggle.passThrough=!0,P.apply(this,arguments),R.handJiggle.passThrough=!1):P.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,y,F){if(null!=k&&"undefined"!==typeof pako){var M=k.ownerDocument.getElementsByTagName("div"),P=[];if(null!=M&&0<M.length)for(var R=0;R<M.length;R++)if("mxgraph"==M[R].getAttribute("class")){P.push(M[R]);break}0<P.length&&(M=P[0].getAttribute("data-mxgraph"),null!=M?(P=JSON.parse(M),null!=P&&null!=P.xml&&(k=mxUtils.parseXml(P.xml),k=k.documentElement)):(P=P[0].getElementsByTagName("div"),0<P.length&&(M=mxUtils.getTextContent(P[0]),M=Graph.decompress(M,
-null,F),0<M.length&&(k=mxUtils.parseXml(M),k=k.documentElement))))}if(null!=k&&"svg"==k.nodeName)if(M=k.getAttribute("content"),null!=M&&"<"!=M.charAt(0)&&"%"!=M.charAt(0)&&(M=unescape(window.atob?atob(M):Base64.decode(cont,M))),null!=M&&"%"==M.charAt(0)&&(M=decodeURIComponent(M)),null!=M&&0<M.length)k=mxUtils.parseXml(M).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==k||y||(P=null,"diagram"==k.nodeName?P=k:"mxfile"==k.nodeName&&(M=k.getElementsByTagName("diagram"),0<
-M.length&&(P=M[Math.max(0,Math.min(M.length-1,urlParams.page||0))])),null!=P&&(k=Editor.parseDiagramNode(P,F)));null==k||"mxGraphModel"==k.nodeName||y&&"mxfile"==k.nodeName||(k=null);return k};Editor.parseDiagramNode=function(k,y,F){Editor.validateDiagramNode(k);var M=mxUtils.trim(mxUtils.getTextContent(k)),P=null;0<M.length?(y=Graph.decompress(M,null,y),null!=y&&0<y.length&&(P=mxUtils.parseXml(y).documentElement)):(k=mxUtils.getChildNodes(k),0<k.length&&(P=k[0],F&&(P=Editor.parseDiagramNode(P,y,
-!1)),y=mxUtils.createXmlDocument(),y.appendChild(y.importNode(P,!0)),P=y.documentElement));return P};Editor.getDiagramNodeXml=function(k){Editor.validateDiagramNode(k);var y=mxUtils.getNodeValue(k),F=null;0<y.length?F=Graph.decompress(y):(k=k.getElementsByTagName("mxGraphModel"),null!=k&&0<k.length&&(F=mxUtils.getXml(k[0])));return F};Editor.validateDiagramNode=function(k){if(0==mxUtils.trim(mxUtils.getTextContent(k)).length&&0==mxUtils.getChildNodes(k).length){var y=new mxCodec,F=new mxGraphModel;
-k.appendChild(y.encode(F))}return k};Editor.extractGraphModelFromPdf=function(k){var y=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 F=k.indexOf("EmbeddedFile");if(-1<F){var M=k.indexOf("stream",F)+9;if(0<k.substring(F,M).indexOf("application#2Fvnd.jgraph.mxfile")){var P=k.indexOf("endstream",M-1);return pako.inflateRaw(Graph.stringToArrayBuffer(k.substring(M,P)),{to:"string"})}}for(F=k.indexOf("/ObjStm");0<F;){M=
-k.indexOf("stream",F)+9;P=k.indexOf("endstream",M-1);M=pako.inflateRaw(Graph.stringToArrayBuffer(k.substring(M,P)),{to:"string"});P=M.indexOf("/Subject <");if(0<P){F=M.substring(P+14,M.indexOf(">",P));if(null!=F){y=F;F=[];for(M=0;M<y.length;M+=2)P=y.substr(M,2),"00"!=P&&F.push(String.fromCharCode(parseInt(P,16)));y=F.join("")}break}F=k.indexOf("/ObjStm",F+1)}}if(null==y&&"%PDF-1.4"==k.substring(0,8)){F="";P=M=0;for(var R=[],T=null;P<k.length;){var V=k.charCodeAt(P);P+=1;10!=V&&(F+=String.fromCharCode(V));
-V=="/Subject (%3Cmxfile".charCodeAt(M)?M++:M=0;if(19==M){var W=k.indexOf("%3C%2Fmxfile%3E",P)+15;P-=9;if(W>P){y=k.substring(P,W);break}}10==V&&("endobj"==F?T=null:"obj"==F.substring(F.length-3,F.length)||"xref"==F||"trailer"==F?(T=[],R[F.split(" ")[0]]=T):null!=T&&T.push(F),F="")}}null==y&&null!=R&&(y=Editor.extractGraphModelFromXref(R));null!=y&&(y=decodeURIComponent(y.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return y};Editor.extractGraphModelFromXref=function(k){var y=k.trailer,F=null;null!=
-y&&(y=/.* \/Info (\d+) (\d+) R/g.exec(y.join("\n")),null!=y&&0<y.length&&(y=k[y[1]],null!=y&&(y=/.* \/Subject (\d+) (\d+) R/g.exec(y.join("\n")),null!=y&&0<y.length&&(k=k[y[1]],null!=k&&(k=k.join("\n"),F=k.substring(1,k.length-1))))));return F};Editor.extractParserError=function(k,y){var F=null;k=null!=k?k.getElementsByTagName("parsererror"):null;null!=k&&0<k.length&&(F=y||mxResources.get("invalidChars"),y=k[0].getElementsByTagName("div"),0<y.length&&(F=mxUtils.getTextContent(y[0])));return null!=
-F?mxUtils.trim(F):F};Editor.addRetryToError=function(k,y){null!=k&&(k=null!=k.error?k.error:k,null==k.retry&&(k.retry=y))};Editor.mermaidToDrawio=function(k,y,F){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(k,y,F)};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!=
+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(Q){return new k(Q,Editor.createRoughCanvas(Q),this)};var v=mxShape.prototype.createHandJiggle;mxShape.prototype.createHandJiggle=function(Q){return this.outline||null==this.style||"0"==mxUtils.getValue(this.style,"sketch","0")?v.apply(this,arguments):"comic"==mxUtils.getValue(this.style,
+"sketchStyle","rough")?this.createComicCanvas(Q):this.createRoughCanvas(Q)};var G=mxImageShape.prototype.paintVertexShape;mxImageShape.prototype.paintVertexShape=function(Q,S,V,W,X){null!=Q.handJiggle&&Q.handJiggle.passThrough||G.apply(this,arguments)};var N=mxShape.prototype.paint;mxShape.prototype.paint=function(Q){var S=Q.addTolerance,V=!0;null!=this.style&&(V="1"==mxUtils.getValue(this.style,mxConstants.STYLE_POINTER_EVENTS,"1"));if(null!=Q.handJiggle&&Q.handJiggle.constructor==k&&!this.outline){Q.save();
+var W=this.fill,X=this.stroke;this.stroke=this.fill=null;var Z=this.configurePointerEvents,Y=Q.setStrokeColor;Q.setStrokeColor=function(){};var ea=Q.setFillColor;Q.setFillColor=function(){};V||null==W||(this.configurePointerEvents=function(){});Q.handJiggle.passThrough=!0;N.apply(this,arguments);Q.handJiggle.passThrough=!1;Q.setFillColor=ea;Q.setStrokeColor=Y;this.configurePointerEvents=Z;this.stroke=X;this.fill=W;Q.restore();V&&null!=W&&(Q.addTolerance=function(){})}N.apply(this,arguments);Q.addTolerance=
+S};var O=mxShape.prototype.paintGlassEffect;mxShape.prototype.paintGlassEffect=function(Q,S,V,W,X,Z){null!=Q.handJiggle&&Q.handJiggle.constructor==k?(Q.handJiggle.passThrough=!0,O.apply(this,arguments),Q.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,v,G){if(null!=k&&"undefined"!==typeof pako){var N=k.ownerDocument.getElementsByTagName("div"),O=[];if(null!=N&&0<N.length)for(var Q=0;Q<N.length;Q++)if("mxgraph"==N[Q].getAttribute("class")){O.push(N[Q]);break}0<O.length&&(N=O[0].getAttribute("data-mxgraph"),null!=N?(O=JSON.parse(N),null!=O&&null!=O.xml&&(k=mxUtils.parseXml(O.xml),k=k.documentElement)):(O=O[0].getElementsByTagName("div"),0<O.length&&(N=mxUtils.getTextContent(O[0]),N=Graph.decompress(N,
+null,G),0<N.length&&(k=mxUtils.parseXml(N),k=k.documentElement))))}if(null!=k&&"svg"==k.nodeName)if(N=k.getAttribute("content"),null!=N&&"<"!=N.charAt(0)&&"%"!=N.charAt(0)&&(N=unescape(window.atob?atob(N):Base64.decode(cont,N))),null!=N&&"%"==N.charAt(0)&&(N=decodeURIComponent(N)),null!=N&&0<N.length)k=mxUtils.parseXml(N).documentElement;else throw{message:mxResources.get("notADiagramFile")};null==k||v||(O=null,"diagram"==k.nodeName?O=k:"mxfile"==k.nodeName&&(N=k.getElementsByTagName("diagram"),0<
+N.length&&(O=N[Math.max(0,Math.min(N.length-1,urlParams.page||0))])),null!=O&&(k=Editor.parseDiagramNode(O,G)));null==k||"mxGraphModel"==k.nodeName||v&&"mxfile"==k.nodeName||(k=null);return k};Editor.parseDiagramNode=function(k,v,G){Editor.validateDiagramNode(k);var N=mxUtils.trim(mxUtils.getTextContent(k)),O=null;0<N.length?(v=Graph.decompress(N,null,v),null!=v&&0<v.length&&(O=mxUtils.parseXml(v).documentElement)):(k=mxUtils.getChildNodes(k),0<k.length&&(O=k[0],G&&(O=Editor.parseDiagramNode(O,v,
+!1)),v=mxUtils.createXmlDocument(),v.appendChild(v.importNode(O,!0)),O=v.documentElement));return O};Editor.getDiagramNodeXml=function(k){Editor.validateDiagramNode(k);var v=mxUtils.getNodeValue(k),G=null;0<v.length?G=Graph.decompress(v):(k=k.getElementsByTagName("mxGraphModel"),null!=k&&0<k.length&&(G=mxUtils.getXml(k[0])));return G};Editor.validateDiagramNode=function(k){if(0==mxUtils.trim(mxUtils.getTextContent(k)).length&&0==mxUtils.getChildNodes(k).length){var v=new mxCodec,G=new mxGraphModel;
+k.appendChild(v.encode(G))}return k};Editor.extractGraphModelFromPdf=function(k){var v=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 G=k.indexOf("EmbeddedFile");if(-1<G){var N=k.indexOf("stream",G)+9;if(0<k.substring(G,N).indexOf("application#2Fvnd.jgraph.mxfile")){var O=k.indexOf("endstream",N-1);return pako.inflateRaw(Graph.stringToArrayBuffer(k.substring(N,O)),{to:"string"})}}for(G=k.indexOf("/ObjStm");0<G;){N=
+k.indexOf("stream",G)+9;O=k.indexOf("endstream",N-1);N=pako.inflateRaw(Graph.stringToArrayBuffer(k.substring(N,O)),{to:"string"});O=N.indexOf("/Subject <");if(0<O){G=N.substring(O+14,N.indexOf(">",O));if(null!=G){v=G;G=[];for(N=0;N<v.length;N+=2)O=v.substr(N,2),"00"!=O&&G.push(String.fromCharCode(parseInt(O,16)));v=G.join("")}break}G=k.indexOf("/ObjStm",G+1)}}if(null==v&&"%PDF-1.4"==k.substring(0,8)){G="";O=N=0;for(var Q=[],S=null;O<k.length;){var V=k.charCodeAt(O);O+=1;10!=V&&(G+=String.fromCharCode(V));
+V=="/Subject (%3Cmxfile".charCodeAt(N)?N++:N=0;if(19==N){var W=k.indexOf("%3C%2Fmxfile%3E",O)+15;O-=9;if(W>O){v=k.substring(O,W);break}}10==V&&("endobj"==G?S=null:"obj"==G.substring(G.length-3,G.length)||"xref"==G||"trailer"==G?(S=[],Q[G.split(" ")[0]]=S):null!=S&&S.push(G),G="")}}null==v&&null!=Q&&(v=Editor.extractGraphModelFromXref(Q));null!=v&&(v=decodeURIComponent(v.replace(/\\\(/g,"(").replace(/\\\)/g,")")));return v};Editor.extractGraphModelFromXref=function(k){var v=k.trailer,G=null;null!=
+v&&(v=/.* \/Info (\d+) (\d+) R/g.exec(v.join("\n")),null!=v&&0<v.length&&(v=k[v[1]],null!=v&&(v=/.* \/Subject (\d+) (\d+) R/g.exec(v.join("\n")),null!=v&&0<v.length&&(k=k[v[1]],null!=k&&(k=k.join("\n"),G=k.substring(1,k.length-1))))));return G};Editor.extractParserError=function(k,v){var G=null;k=null!=k?k.getElementsByTagName("parsererror"):null;null!=k&&0<k.length&&(G=v||mxResources.get("invalidChars"),v=k[0].getElementsByTagName("div"),0<v.length&&(G=mxUtils.getTextContent(v[0])));return null!=
+G?mxUtils.trim(G):G};Editor.addRetryToError=function(k,v){null!=k&&(k=null!=k.error?k.error:k,null==k.retry&&(k.retry=v))};Editor.mermaidToDrawio=function(k,v,G){if("function"===typeof mxMermaidToDrawio)return mxMermaidToDrawio(k,v,G)};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&&(Editor.defaultIncludeDiagram=k.includeDiagram);null!=k.simpleLabels&&(Editor.simpleLabels=k.simpleLabels);null!=k.oneDriveInlinePicker&&(Editor.oneDriveInlinePicker=k.oneDriveInlinePicker);
null!=k.defaultAdaptiveColors?Graph.defaultAdaptiveColors=k.defaultAdaptiveColors:0==k.enableCssDarkMode&&(Graph.defaultAdaptiveColors="simple");null!=k.enableLightDarkColors&&(mxUtils.lightDarkColorSupported=k.enableLightDarkColors);null!=k.darkColor&&(Editor.darkColor=k.darkColor);null!=k.darkColorVar&&(Editor.darkColorVar=k.darkColorVar);Graph.prototype.defaultPageBackgroundColor="light-dark(#ffffff, "+Editor.darkColor+")";Graph.prototype.shapeBackgroundColor="light-dark(#ffffff, var("+Editor.darkColorVar+
", "+Editor.darkColor+"))";null!=k.settingsName&&(Editor.configurationKey="."+k.settingsName+"-configuration",Editor.settingsKey="."+k.settingsName+"-config",mxSettings.key=Editor.settingsKey);null!=k.customFonts&&(Menus.prototype.defaultFonts=k.customFonts.concat(Menus.prototype.defaultFonts));null!=k.customPresetColors&&(ColorDialog.prototype.presetColors=k.customPresetColors.concat(ColorDialog.prototype.presetColors));null!=k.customColorSchemes&&(StyleFormatPanel.prototype.defaultColorSchemes=
-k.customColorSchemes.concat(StyleFormatPanel.prototype.defaultColorSchemes));if(null!=k.css){var y=document.createElement("style");y.setAttribute("type","text/css");y.appendChild(document.createTextNode(k.css));var F=document.getElementsByTagName("script")[0];F.parentNode.insertBefore(y,F)}null!=k.expandLibraries&&(Sidebar.prototype.expandLibraries=k.expandLibraries);null!=k.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=k.appendCustomLibraries);null!=k.libraries&&(Sidebar.prototype.customEntries=
+k.customColorSchemes.concat(StyleFormatPanel.prototype.defaultColorSchemes));if(null!=k.css){var v=document.createElement("style");v.setAttribute("type","text/css");v.appendChild(document.createTextNode(k.css));var G=document.getElementsByTagName("script")[0];G.parentNode.insertBefore(v,G)}null!=k.expandLibraries&&(Sidebar.prototype.expandLibraries=k.expandLibraries);null!=k.appendCustomLibraries&&(Sidebar.prototype.appendCustomLibraries=k.appendCustomLibraries);null!=k.libraries&&(Sidebar.prototype.customEntries=
k.libraries);null!=k.enabledLibraries&&(Array.isArray(k.enabledLibraries)?Sidebar.prototype.enabledLibraries=k.enabledLibraries:EditorUi.debug("Configuration Error: Array expected for enabledLibraries"));null!=k.defaultLibraries&&(Sidebar.prototype.defaultEntries=k.defaultLibraries);null!=k.defaultCustomLibraries&&(Editor.defaultCustomLibraries=k.defaultCustomLibraries);null!=k.enableCustomLibraries&&(Editor.enableCustomLibraries=k.enableCustomLibraries);null!=k.defaultVertexStyle&&(Graph.prototype.defaultVertexStyle=
-k.defaultVertexStyle);null!=k.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=k.defaultEdgeStyle);null!=k.defaultPageVisible&&(Graph.prototype.defaultPageVisible=k.defaultPageVisible);null!=k.defaultGridEnabled&&(Graph.prototype.defaultGridEnabled=k.defaultGridEnabled);null!=k.zoomWheel&&(Graph.zoomWheel=k.zoomWheel);null!=k.zoomFactor&&(y=parseFloat(k.zoomFactor),!isNaN(y)&&1<y?Graph.prototype.zoomFactor=y:EditorUi.debug("Configuration Error: Float > 1 expected for zoomFactor"));null!=k.defaultGridSize&&
-(y=parseInt(k.defaultGridSize),!isNaN(y)&&0<y?mxGraph.prototype.gridSize=y:EditorUi.debug("Configuration Error: Int > 0 expected for defaultGridSize"));null!=k.gridSteps&&(y=parseInt(k.gridSteps),!isNaN(y)&&0<y?mxGraphView.prototype.gridSteps=y:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));null!=k.pageFormat&&(y=parseInt(k.pageFormat.width),F=parseInt(k.pageFormat.height),!isNaN(y)&&0<y&&!isNaN(F)&&0<F?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,y,F),mxGraph.prototype.pageFormat=
+k.defaultVertexStyle);null!=k.defaultEdgeStyle&&(Graph.prototype.defaultEdgeStyle=k.defaultEdgeStyle);null!=k.defaultPageVisible&&(Graph.prototype.defaultPageVisible=k.defaultPageVisible);null!=k.defaultGridEnabled&&(Graph.prototype.defaultGridEnabled=k.defaultGridEnabled);null!=k.zoomWheel&&(Graph.zoomWheel=k.zoomWheel);null!=k.zoomFactor&&(v=parseFloat(k.zoomFactor),!isNaN(v)&&1<v?Graph.prototype.zoomFactor=v:EditorUi.debug("Configuration Error: Float > 1 expected for zoomFactor"));null!=k.defaultGridSize&&
+(v=parseInt(k.defaultGridSize),!isNaN(v)&&0<v?mxGraph.prototype.gridSize=v:EditorUi.debug("Configuration Error: Int > 0 expected for defaultGridSize"));null!=k.gridSteps&&(v=parseInt(k.gridSteps),!isNaN(v)&&0<v?mxGraphView.prototype.gridSteps=v:EditorUi.debug("Configuration Error: Int > 0 expected for gridSteps"));null!=k.pageFormat&&(v=parseInt(k.pageFormat.width),G=parseInt(k.pageFormat.height),!isNaN(v)&&0<v&&!isNaN(G)&&0<G?(mxGraph.prototype.defaultPageFormat=new mxRectangle(0,0,v,G),mxGraph.prototype.pageFormat=
mxGraph.prototype.defaultPageFormat):EditorUi.debug("Configuration Error: {width: int, height: int} expected for pageFormat"));null!=k.thumbWidth&&(Sidebar.prototype.thumbWidth=k.thumbWidth);null!=k.thumbHeight&&(Sidebar.prototype.thumbHeight=k.thumbHeight);null!=k.emptyLibraryXml&&(EditorUi.prototype.emptyLibraryXml=k.emptyLibraryXml);null!=k.emptyDiagramXml&&(EditorUi.prototype.emptyDiagramXml=k.emptyDiagramXml);null!=k.sidebarWidth&&(EditorUi.prototype.hsplitPosition=k.sidebarWidth);null!=k.updateDefaultStyle&&
-(EditorUi.prototype.updateDefaultStyle=k.updateDefaultStyle);null!=k.sidebarTitles&&(Sidebar.prototype.sidebarTitles=k.sidebarTitles);null!=k.sidebarTitleSize&&(y=parseInt(k.sidebarTitleSize),!isNaN(y)&&0<y?Sidebar.prototype.sidebarTitleSize=y:EditorUi.debug("Configuration Error: Int > 0 expected for sidebarTitleSize"));null!=k.fontCss&&("string"===typeof k.fontCss?Editor.configureFontCss(k.fontCss):EditorUi.debug("Configuration Error: String expected for fontCss"));null!=k.autosaveDelay&&(y=parseInt(k.autosaveDelay),
-!isNaN(y)&&0<y?DrawioFile.prototype.autosaveDelay=y:EditorUi.debug("Configuration Error: Int > 0 expected for autosaveDelay"));null!=k.maxImageBytes&&(EditorUi.prototype.maxImageBytes=k.maxImageBytes);null!=k.maxImageSize&&(EditorUi.prototype.maxImageSize=k.maxImageSize);null!=k.shareCursorPosition&&(EditorUi.prototype.shareCursorPosition=k.shareCursorPosition);null!=k.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=k.showRemoteCursors);null!=k.restrictExport&&(DrawioFile.RESTRICT_EXPORT=
+(EditorUi.prototype.updateDefaultStyle=k.updateDefaultStyle);null!=k.sidebarTitles&&(Sidebar.prototype.sidebarTitles=k.sidebarTitles);null!=k.sidebarTitleSize&&(v=parseInt(k.sidebarTitleSize),!isNaN(v)&&0<v?Sidebar.prototype.sidebarTitleSize=v:EditorUi.debug("Configuration Error: Int > 0 expected for sidebarTitleSize"));null!=k.fontCss&&("string"===typeof k.fontCss?Editor.configureFontCss(k.fontCss):EditorUi.debug("Configuration Error: String expected for fontCss"));null!=k.autosaveDelay&&(v=parseInt(k.autosaveDelay),
+!isNaN(v)&&0<v?DrawioFile.prototype.autosaveDelay=v:EditorUi.debug("Configuration Error: Int > 0 expected for autosaveDelay"));null!=k.maxImageBytes&&(EditorUi.prototype.maxImageBytes=k.maxImageBytes);null!=k.maxImageSize&&(EditorUi.prototype.maxImageSize=k.maxImageSize);null!=k.shareCursorPosition&&(EditorUi.prototype.shareCursorPosition=k.shareCursorPosition);null!=k.showRemoteCursors&&(EditorUi.prototype.showRemoteCursors=k.showRemoteCursors);null!=k.restrictExport&&(DrawioFile.RESTRICT_EXPORT=
k.restrictExport);null!=k.replaceSvgDataUris&&(Editor.replaceSvgDataUris=k.replaceSvgDataUris);null!=k.foreignObjectImages&&(Editor.foreignObjectImages=k.foreignObjectImages);null!=k.shadowColor&&(mxConstants.SHADOW_COLOR=k.shadowColor);null!=k.shadowOpacity&&(mxConstants.SHADOW_OPACITY=k.shadowOpacity);null!=k.shadowOffsetX&&(mxConstants.SHADOW_OFFSET_X=k.shadowOffsetX);null!=k.shadowOffsetY&&(mxConstants.SHADOW_OFFSET_Y=k.shadowOffsetY);null!=k.shadowBlur&&(mxConstants.SHADOW_BLUR=k.shadowBlur);
-null!=k.enableAnimations&&(Editor.enableAnimations=k.enableAnimations);null!=k.enableChatGpt&&(Editor.enableChatGpt=k.enableChatGpt);null!=k.gptApiKey&&(Editor.gptApiKey=k.gptApiKey);null!=k.gptModel&&(Editor.gptModel=k.gptModel);null!=k.gptUrl&&(Editor.gptUrl=k.gptUrl)}};Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.configureFontCss=function(k){if(null!=k){Editor.prototype.fontCss=k;var y=document.getElementsByTagName("script")[0];
-if(null!=y&&null!=y.parentNode){var F=document.createElement("style");F.setAttribute("type","text/css");F.appendChild(document.createTextNode(k));y.parentNode.insertBefore(F,y);k=k.split("url(");for(F=1;F<k.length;F++){var M=k[F].indexOf(")");M=Editor.trimCssUrl(k[F].substring(0,M));var P=document.createElement("link");P.setAttribute("rel","preload");P.setAttribute("href",M);P.setAttribute("as","font");P.setAttribute("crossorigin","");y.parentNode.insertBefore(P,y)}}}};Editor.trimCssUrl=function(k){return k.replace(RegExp("^[\\s\"']+",
-"g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(k){k=null!=k?k:Editor.GUID_LENGTH;for(var y=[],F=0;F<k;F++)y.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return y.join("")};Editor.updateStatusInterval=
+null!=k.enableAnimations&&(Editor.enableAnimations=k.enableAnimations);null!=k.enableChatGpt&&(Editor.enableChatGpt=k.enableChatGpt);null!=k.gptApiKey&&(Editor.gptApiKey=k.gptApiKey);null!=k.gptModel&&(Editor.gptModel=k.gptModel);null!=k.gptUrl&&(Editor.gptUrl=k.gptUrl)}};Editor.isSettingsEnabled=function(){return"undefined"!==typeof window.mxSettings&&(isLocalStorage||mxClient.IS_CHROMEAPP)};Editor.configureFontCss=function(k){if(null!=k){Editor.prototype.fontCss=k;var v=document.getElementsByTagName("script")[0];
+if(null!=v&&null!=v.parentNode){var G=document.createElement("style");G.setAttribute("type","text/css");G.appendChild(document.createTextNode(k));v.parentNode.insertBefore(G,v);k=k.split("url(");for(G=1;G<k.length;G++){var N=k[G].indexOf(")");N=Editor.trimCssUrl(k[G].substring(0,N));var O=document.createElement("link");O.setAttribute("rel","preload");O.setAttribute("href",N);O.setAttribute("as","font");O.setAttribute("crossorigin","");v.parentNode.insertBefore(O,v)}}}};Editor.trimCssUrl=function(k){return k.replace(RegExp("^[\\s\"']+",
+"g"),"").replace(RegExp("[\\s\"']+$","g"),"")};Editor.GOOGLE_FONTS="https://fonts.googleapis.com/css?family=";Editor.GOOGLE_FONTS_CSS2="https://fonts.googleapis.com/css2?family=";Editor.GUID_ALPHABET="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-_";Editor.GUID_LENGTH=20;Editor.guid=function(k){k=null!=k?k:Editor.GUID_LENGTH;for(var v=[],G=0;G<k;G++)v.push(Editor.GUID_ALPHABET.charAt(Math.floor(Math.random()*Editor.GUID_ALPHABET.length)));return v.join("")};Editor.updateStatusInterval=
1E4;Editor.prototype.appName="draw.io";Editor.prototype.diagramFileTypes=[{description:"diagramXmlDesc",extension:"drawio",mimeType:"text/xml"},{description:"diagramPngDesc",extension:"png",mimeType:"image/png"},{description:"diagramSvgDesc",extension:"svg",mimeType:"image/svg"},{description:"diagramHtmlDesc",extension:"html",mimeType:"text/html"}];Editor.prototype.libraryFileTypes=[{description:"Library (.drawiolib, .xml)",extensions:["drawiolib","xml"]}];Editor.prototype.fileExtensions=[{ext:"html",
-title:"filetypeHtml"},{ext:"png",title:"filetypePng"},{ext:"svg",title:"filetypeSvg"}];Editor.prototype.timeout=25E3;Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.crossOriginImages=!mxClient.IS_IE;var b=Editor.prototype.setGraphXml;Editor.prototype.setGraphXml=function(k){k=null!=k&&"mxlibrary"!=k.nodeName?this.extractGraphModel(k):null;if(null!=k){var y=Editor.extractParserError(k,mxResources.get("invalidOrMissingFile"));if(y)throw EditorUi.debug("Editor.setGraphXml ParserError",
-[this],"node",[k],"cause",[y]),Error(mxResources.get("notADiagramFile")+" ("+y+")");if("mxGraphModel"==k.nodeName){y=k.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=y&&""!=y)y!=this.graph.currentStyle&&(F=null!=this.graph.themes?this.graph.themes[y]:mxUtils.load(STYLE_PATH+"/"+y+".xml").getDocumentElement(),null!=F&&(M=new mxCodec(F.ownerDocument),M.decode(F,this.graph.getStylesheet())));else{var F=null!=this.graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+
-"/default-old.xml").getDocumentElement();if(null!=F){var M=new mxCodec(F.ownerDocument);M.decode(F,this.graph.getStylesheet())}}this.graph.currentStyle=y;this.graph.mathEnabled="1"==urlParams.math||"1"==k.getAttribute("math");this.graph.setAdaptiveColors(k.getAttribute("adaptiveColors"));y=k.getAttribute("backgroundImage");null!=y?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(y)):this.graph.setBackgroundImage(null);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&
-this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==k.getAttribute("shadow"),!1);if(y=k.getAttribute("extFonts"))try{for(y=y.split("|").map(function(P){P=P.split("^");return{name:P[0],url:P[1]}}),F=0;F<y.length;F++)this.graph.addExtFont(y[F].name,y[F].url)}catch(P){console.log("ExtFonts format error: "+P.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||
-"Invalid data",toString:function(){return this.message}};};var f=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(k,y){k=null!=k?k:!0;var F=f.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&F.setAttribute("style",this.graph.currentStyle);var M=this.graph.getBackgroundImageObject(this.graph.backgroundImage,y);null!=M&&F.setAttribute("backgroundImage",JSON.stringify(M));F.setAttribute("math",this.graph.mathEnabled?"1":"0");F.setAttribute("shadow",
-this.graph.shadowVisible?"1":"0");null!=this.graph.adaptiveColors?F.setAttribute("adaptiveColors",this.graph.adaptiveColors):F.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(M=this.graph.extFonts.map(function(P){return P.name+"^"+P.url}),F.setAttribute("extFonts",M.join("|")));return F};Editor.prototype.isDataSvg=function(k){try{var y=mxUtils.parseXml(k).documentElement.getAttribute("content");if(null!=y&&(null!=y&&"<"!=y.charAt(0)&&"%"!=y.charAt(0)&&(y=
-unescape(window.atob?atob(y):Base64.decode(cont,y))),null!=y&&"%"==y.charAt(0)&&(y=decodeURIComponent(y)),null!=y&&0<y.length)){var F=mxUtils.parseXml(y).documentElement;return"mxfile"==F.nodeName||"mxGraphModel"==F.nodeName}}catch(M){}return!1};Editor.prototype.extractGraphModel=function(k,y,F){return Editor.extractGraphModel.apply(this,arguments)};var m=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.setAdaptiveColors(null);
-this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();m.apply(this,arguments)};var d=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){d.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(k,y){if("undefined"===
-typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var F=function(){M=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 M=null;Editor.doMathJaxRender=function(T){try{null==M?(MathJax.typesetClear([T]),MathJax.typeset([T]),F()):M!=T&&Editor.mathJaxQueue.push(T)}catch(V){MathJax.typesetClear([T]),null!=V.retry?(M=T,V.retry.then(function(){MathJax.typesetPromise([T]).then(F)["catch"](function(W){console.log("Error in MathJax.typesetPromise: "+
-W.toString());F()})})["catch"](function(W){console.log("Error in MathJax.retry: "+W.toString());F()})):null!=window.console&&console.log("Error in MathJax.typeset: "+V.toString())}};window.MathJax=null!=y?y:{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 T=0;T<Editor.mathJaxQueue.length;T++)Editor.doMathJaxRender(Editor.mathJaxQueue[T])}}};
-Editor.MathJaxRender=function(T){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(T):Editor.mathJaxQueue.push(T)};Editor.onMathJaxDone=function(){};var P=Editor.prototype.init;Editor.prototype.init=function(){P.apply(this,arguments);var T=mxUtils.bind(this,function(V,W){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,T);this.graph.addListener(mxEvent.REFRESH,T)};y=document.getElementsByTagName("script");
-if(null!=y&&0<y.length){var R=document.createElement("script");R.setAttribute("type","text/javascript");R.setAttribute("src",k);y[0].parentNode.appendChild(R)}}};Editor.prototype.csvToArray=function(k){if(0<k.length){var y="",F=[""],M=0,P=!0,R;k=$jscomp.makeIterator(k);for(R=k.next();!R.done;R=k.next())R=R.value,'"'===R?(P&&R===y&&(F[M]+=R),P=!P):","===R&&P?R=F[++M]="":F[M]+=R,y=R;return F}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 y=EditorUi.isVisioFilename(k);y=/\.png$/i.test(k)||/\.pdf$/i.test(k)||y;var F="t="+(new Date).getTime();k=PROXY_URL+"?url="+encodeURIComponent(k)+"&"+F+(y?"&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 y=k.convert,F=this;k.convert=function(M){null!=M&&navigator.onLine&&("http://"!=M.substring(0,7)&&"https://"!=M.substring(0,8)||M.substring(0,k.baseUrl.length)==k.baseUrl||F.crossOriginImages&&
-F.isCorsEnabledForUrl(M)?"chrome-extension://"!=M.substring(0,19)&&(M=y.apply(this,arguments)):M=PROXY_URL+"?url="+encodeURIComponent(M));return M};return k};Editor.createSvgDataUri=function(k){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(k)))};Editor.prototype.convertImageToDataUri=function(k,y,F,M,P){try{var R=!0,T=window.setTimeout(mxUtils.bind(this,function(){R=!1;y(k)}),this.timeout),V=mxUtils.bind(this,function(){null!=M?this.convertImageToDataUri(k,y,F,M,!0):y(k)});if(/(\.svg)$/i.test(k)&&
-!P)mxUtils.get(k,mxUtils.bind(this,function(X){window.clearTimeout(T);R&&(200>X.getStatus()||299<X.getStatus()?V():y(Editor.createSvgDataUri(X.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(T);R&&V()}));else{var W=new Image;this.crossOriginImages&&(W.crossOrigin="anonymous");W.onload=function(){window.clearTimeout(T);if(R)try{M=null!=M&&P?M:1;var X=document.createElement("canvas"),Y=X.getContext("2d");Y.scale(M,M);X.height=W.height*M;X.width=W.width*M;Y.drawImage(W,0,0);y(X.toDataURL())}catch(Z){y(k)}};
-W.onerror=function(){window.clearTimeout(T);R&&(null!=F?F():y(k))};W.src=k}}catch(X){null!=F?F():y(k)}};Editor.prototype.convertImages=function(k,y,F,M){function P(){0<R.length?R.shift()():y(k)}null==M&&(M=this.createImageUrlConverter());var R=[],T=F||{};F=mxUtils.bind(this,function(V,W){V=k.getElementsByTagName(V);for(var X=0;X<V.length;X++)mxUtils.bind(this,function(Y){R.push(mxUtils.bind(this,function(){try{if(null!=Y){var Z=M.convert(Y.getAttribute(W));if(null!=Z&&"data:"!=Z.substring(0,5)){var da=
-T[Z];null==da?this.convertImageToDataUri(Z,function(ea){null!=ea&&(T[Z]=ea,Y.setAttribute(W,ea));P()},null,Editor.svgRasterScale):(Y.setAttribute(W,da),P())}else null!=Z&&Y.setAttribute(W,Z),P()}}catch(ea){P()}}))})(V[X])});F("image","xlink:href");F("img","src");P()};Editor.base64Encode=function(k){for(var y="",F=0,M=k.length,P,R,T;F<M;){P=k.charCodeAt(F++)&255;if(F==M){y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(P>>2);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((P&
-3)<<4);y+="==";break}R=k.charCodeAt(F++);if(F==M){y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(P>>2);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((P&3)<<4|(R&240)>>4);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((R&15)<<2);y+="=";break}T=k.charCodeAt(F++);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(P>>2);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((P&
-3)<<4|(R&240)>>4);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((R&15)<<2|(T&192)>>6);y+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(T&63)}return y};Editor.prototype.loadUrl=function(k,y,F,M,P,R,T,V){try{var W=!T&&(M||/(\.png)($|\?)/i.test(k)||/(\.jpe?g)($|\?)/i.test(k)||/(\.gif)($|\?)/i.test(k)||/(\.pdf)($|\?)/i.test(k));P=null!=P?P:!0;var X=mxUtils.bind(this,function(){mxUtils.get(k,mxUtils.bind(this,function(Y){200<=Y.getStatus()&&299>=
-Y.getStatus()?null!=y&&(Y=Y.getText(),W&&(R=null!=R?R:"data:image/png;base64,",Y=R+Editor.base64Encode(Y)),y(Y)):null!=F&&(0==Y.getStatus()?F({message:mxResources.get("accessDenied")},Y):404==Y.getStatus()?F({message:mxResources.get("fileNotFound"),code:Y.getStatus()},Y):F({message:this.getErrorMessage(Y)},Y))}),function(Y){null!=F&&F({message:mxResources.get("error")+" "+Y.getStatus()})},W,this.timeout,function(){P&&null!=F&&F({code:App.ERROR_TIMEOUT,retry:X})},V)});X()}catch(Y){null!=F&&F(Y)}};
-Editor.prototype.getErrorMessage=function(k){var y=mxResources.get("error")+" "+k.getStatus();try{var F=k.getText(),M=JSON.parse(F);null!=M&&null!=M.error&&null!=M.error.message&&(y=M.error.message+" ("+y+")")}catch(P){}return y};Editor.prototype.absoluteCssFonts=function(k){var y=null;if(null!=k){var F=k.split("url(");if(0<F.length){y=[F[0]];k=window.location.pathname;var M=null!=k?k.lastIndexOf("/"):-1;0<=M&&(k=k.substring(0,M+1));M=document.getElementsByTagName("base");var P=null;null!=M&&0<M.length&&
-(P=M[0].getAttribute("href"));for(var R=1;R<F.length;R++)if(M=F[R].indexOf(")"),0<M){var T=Editor.trimCssUrl(F[R].substring(0,M));this.graph.isRelativeUrl(T)&&(T=null!=P?P+T:window.location.protocol+"//"+window.location.hostname+("/"==T.charAt(0)?"":k)+T);y.push('url("'+T+'"'+F[R].substring(M))}else y.push(F[R])}else y=[k]}return null!=y?y.join(""):null};Editor.prototype.mapFontUrl=function(k,y,F){/^https?:\/\//.test(y)&&!this.isCorsEnabledForUrl(y)&&(y=PROXY_URL+"?url="+encodeURIComponent(y));F(k,
-y)};Editor.prototype.embedCssFonts=function(k,y){var F=k.split("url("),M=0;null==this.cachedFonts&&(this.cachedFonts={});var P=mxUtils.bind(this,function(){if(0==M){for(var W=[F[0]],X=1;X<F.length;X++){var Y=F[X].indexOf(")");W.push('url("');W.push(this.cachedFonts[Editor.trimCssUrl(F[X].substring(0,Y))]);W.push('"'+F[X].substring(Y))}y(W.join(""))}});if(0<F.length){for(k=1;k<F.length;k++){var R=F[k].indexOf(")"),T=null,V=F[k].indexOf("format(",R);0<V&&(T=Editor.trimCssUrl(F[k].substring(V+7,F[k].indexOf(")",
-V))));mxUtils.bind(this,function(W){if(null==this.cachedFonts[W]){this.cachedFonts[W]=W;M++;var X="application/x-font-ttf";if("svg"==T||/(\.svg)($|\?)/i.test(W))X="image/svg+xml";else if("otf"==T||"embedded-opentype"==T||/(\.otf)($|\?)/i.test(W))X="application/x-font-opentype";else if("woff"==T||/(\.woff)($|\?)/i.test(W))X="application/font-woff";else if("woff2"==T||/(\.woff2)($|\?)/i.test(W))X="application/font-woff2";else if("eot"==T||/(\.eot)($|\?)/i.test(W))X="application/vnd.ms-fontobject";else if("sfnt"==
-T||/(\.sfnt)($|\?)/i.test(W))X="application/font-sfnt";this.mapFontUrl(X,W,mxUtils.bind(this,function(Y,Z){this.loadUrl(Z,mxUtils.bind(this,function(da){this.cachedFonts[W]=da;M--;P()}),mxUtils.bind(this,function(da){M--;P()}),!0,null,"data:"+Y+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(F[k].substring(0,R)),T)}P()}else y(k)};Editor.prototype.loadFonts=function(k){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(y){this.resolvedFontCss=
-y;null!=k&&k()})):null!=k&&k()};Editor.prototype.createGoogleFontCache=function(){var k={},y;for(y in Graph.fontMapping)Graph.isCssFontUrl(y)&&(k[y]=Graph.fontMapping[y]);return k};Editor.prototype.embedExtFonts=function(k){var y=this.graph.getCustomFonts();if(0<y.length){var F=[],M=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var P=mxUtils.bind(this,function(){0==M&&this.embedCssFonts(F.join(""),k)}),R=0;R<y.length;R++)mxUtils.bind(this,function(T,V){Graph.isCssFontUrl(V)?
-null==this.cachedGoogleFonts[V]?(M++,this.loadUrl(Graph.rewriteGoogleFontUrl(V),mxUtils.bind(this,function(W){this.cachedGoogleFonts[V]=W;F.push(W+"\n");M--;P()}),mxUtils.bind(this,function(W){M--;F.push("@import url("+V+");\n");P()}))):F.push(this.cachedGoogleFonts[V]+"\n"):F.push('@font-face {font-family: "'+T+'";src: url("'+V+'")}\n')})(y[R].name,y[R].url);P()}else k()};Editor.prototype.addMathCss=function(k){k=k.getElementsByTagName("defs");if(null!=k&&0<k.length)for(var y=document.getElementsByTagName("style"),
-F=0;F<y.length;F++){var M=mxUtils.getTextContent(y[F]);0>M.indexOf("mxPageSelector")&&0<M.indexOf("MathJax")&&k[0].appendChild(y[F].cloneNode(!0))}};Editor.prototype.addFontCss=function(k,y){y=null!=y?y:this.absoluteCssFonts(this.fontCss);if(null!=y){var F=mxUtils.getSvgDefs(k),M=y.split("\n");y=[];for(var P=[],R=0;R<M.length;R++)"@import"==M[R].substring(0,7)?y.push(M[R]):P.push(M[R]);k=k.ownerDocument;k=null!=k.createElementNS?k.createElementNS(mxConstants.NS_SVG,"style"):k.createElement("style");
-k.setAttribute("type","text/css");0<y.length&&(mxUtils.setTextContent(k,y.join("\n")),F.appendChild(k));0<P.length&&(k=k.cloneNode(!1),mxUtils.setTextContent(k,P.join("\n")),F.appendChild(k))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(k,y,F){var M=mxClient.IS_FF?8192:16384;return Math.min(F,Math.min(M/k,M/y))};Editor.prototype.exportToCanvas=function(k,y,F,M,P,R,T,V,W,X,Y,Z,da,ea,ka,ba,ha,aa){try{R=
-null!=R?R:!0;T=null!=T?T:!0;Z=null!=Z?Z:this.graph;da=null!=da?da:0;var ia=W?null:Z.background;ia==mxConstants.NONE&&(ia=null);null==ia&&(ia=M);null==ia&&0==W&&(ia="dark"==ba&&"none"!=Z.getAdaptiveColors()?Editor.darkColor:"#ffffff");this.convertImages(Z.getSvg(null,null,da,ea,null,T,null,null,null,X,null,ba,ha,aa),mxUtils.bind(this,function(fa){try{var ca=new Image;ca.onload=mxUtils.bind(this,function(){try{var la=function(){mxClient.IS_SF?window.setTimeout(function(){ua.drawImage(ca,0,0);k(xa,fa)},
-0):(ua.drawImage(ca,0,0),k(xa,fa))},xa=document.createElement("canvas"),Aa=parseInt(fa.getAttribute("width")),ma=parseInt(fa.getAttribute("height"));V=null!=V?V:1;null!=y&&(V=R?Math.min(1,Math.min(3*y/(4*ma),y/Aa)):y/Aa);V=this.getMaxCanvasScale(Aa,ma,V);Aa=Math.ceil(V*Aa);ma=Math.ceil(V*ma);xa.setAttribute("width",Aa);xa.setAttribute("height",ma);var ua=xa.getContext("2d");if(null!=ia){var ra=mxUtils.getLightDarkColor(ia);ua.beginPath();ua.rect(0,0,Aa,ma);ua.fillStyle="dark"==ba&&"none"!=Z.getAdaptiveColors()?
-ra.dark:ra.light;ua.fill()}1!=V&&ua.scale(V,V);if(ka){var oa=Z.view,Ea=oa.scale;oa.scale=1;var va=btoa(unescape(encodeURIComponent(oa.createSvgGrid(oa.gridColor))));oa.scale=Ea;va="data:image/svg+xml;base64,"+va;var ya=Z.gridSize*oa.gridSteps*V,za=Z.getGraphBounds(),Ga=oa.translate.x*Ea,Ca=oa.translate.y*Ea,Ka=Ga+(za.x-Ga)/Ea-da,Ma=Ca+(za.y-Ca)/Ea-da,Da=new Image;Da.onload=function(){try{for(var wa=-Math.round(ya-mxUtils.mod((Ga-Ka)*V,ya)),Sa=-Math.round(ya-mxUtils.mod((Ca-Ma)*V,ya));wa<Aa;wa+=ya)for(var Ta=
-Sa;Ta<ma;Ta+=ya)ua.drawImage(Da,wa/V,Ta/V);la()}catch(Ua){null!=P&&P(Ua)}};Da.onerror=function(wa){null!=P&&P(wa)};Da.src=va}else la()}catch(wa){null!=P&&P(wa)}});ca.onerror=function(la){null!=P&&P(la)};X&&this.graph.addSvgShadow(fa);this.graph.mathEnabled&&this.addMathCss(fa);var Ba=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(fa,this.resolvedFontCss),ca.src=Editor.createSvgDataUri(mxUtils.getXml(fa))}catch(la){null!=P&&P(la)}});this.embedExtFonts(mxUtils.bind(this,
-function(la){try{null!=la&&this.addFontCss(fa,la),this.loadFonts(Ba)}catch(xa){null!=P&&P(xa)}}))}catch(la){null!=P&&P(la)}}),F,Y)}catch(fa){null!=P&&P(fa)}};Editor.crcTable=[];for(var t=0;256>t;t++)for(var x=t,v=0;8>v;v++)x=1==(x&1)?3988292384^x>>>1:x>>>1,Editor.crcTable[t]=x;Editor.updateCRC=function(k,y,F,M){for(var P=0;P<M;P++)k=Editor.crcTable[(k^y.charCodeAt(F+P))&255]^k>>>8;return k};Editor.crc32=function(k){for(var y=-1,F=0;F<k.length;F++)y=y>>>8^Editor.crcTable[(y^k.charCodeAt(F))&255];return(y^
--1)>>>0};Editor.writeGraphModelToPng=function(k,y,F,M,P){function R(Y,Z){var da=W;W+=Z;return Y.substring(da,W)}function T(Y){Y=R(Y,4);return Y.charCodeAt(3)+(Y.charCodeAt(2)<<8)+(Y.charCodeAt(1)<<16)+(Y.charCodeAt(0)<<24)}function V(Y){return String.fromCharCode(Y>>24&255,Y>>16&255,Y>>8&255,Y&255)}k=k.substring(k.indexOf(",")+1);k=window.atob?atob(k):Base64.decode(k,!0);var W=0;if(R(k,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=P&&P();else if(R(k,4),"IHDR"!=R(k,4))null!=
-P&&P();else{R(k,17);P=k.substring(0,W);do{var X=T(k);if("IDAT"==R(k,4)){P=k.substring(0,W-8);"pHYs"==y&&"dpi"==F?(F=Math.round(M/.0254),F=V(F)+V(F)+String.fromCharCode(1)):F=F+String.fromCharCode(0)+("zTXt"==y?String.fromCharCode(0):"")+M;M=4294967295;M=Editor.updateCRC(M,y,0,4);M=Editor.updateCRC(M,F,0,F.length);P+=V(F.length)+y+F+V(M^4294967295);P+=k.substring(W-8,k.length);break}P+=k.substring(W-8,W-4+X);R(k,X);R(k,4)}while(X);return"data:image/png;base64,"+(window.btoa?btoa(P):Base64.encode(P,
-!0))}};if(window.ColorDialog){FilenameDialog.filenameHelpLink="https://www.drawio.com/doc/faq/save-file-formats";var B=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(k,y){B.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var J=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){J.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=
-function(k,y){var F=null;null!=k.editor.graph.getModel().getParent(y)?F=y.getId():null!=k.currentPage&&(F=k.currentPage.getId());return F});if(null!=window.StyleFormatPanel){var N=Format.prototype.init;Format.prototype.init=function(){N.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var I=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?I.apply(this,arguments):
-this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(k){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var c=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(k){k=c.apply(this,arguments);var y=this.editorUi,F=y.editor.graph;if(F.isEnabled()){var M=y.getCurrentFile();null!=M&&M.isAutosaveOptional()&&k.appendChild(this.createOption(mxResources.get("autosave"),function(){return y.editor.autosave},
-function(R){y.editor.setAutosave(R);y.editor.autosave&&M.isModified()&&M.fileChanged()},{install:function(R){this.listener=function(){R(y.editor.autosave)};y.editor.addListener("autosaveChanged",this.listener)},destroy:function(){y.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&F.isEnabled()&&"undefined"!==typeof MathJax){var P=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return F.mathEnabled},function(R){y.actions.get("mathematicalTypesetting").funct()},
-{install:function(R){this.listener=function(){R(F.mathEnabled)};y.addListener("mathEnabledChanged",this.listener)},destroy:function(){y.removeListener(this.listener)}});k.appendChild(P);(!y.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&P.appendChild(y.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting"))}return k};mxCellRenderer.prototype.defaultVertexShape.prototype.customProperties=[{name:"arcSize",dispName:"Arc Size",type:"float",min:0,defVal:mxConstants.LINE_ARCSIZE},
+title:"filetypeHtml"},{ext:"png",title:"filetypePng"},{ext:"svg",title:"filetypeSvg"}];Editor.prototype.timeout=25E3;Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null;Editor.prototype.crossOriginImages=!mxClient.IS_IE;var b=Editor.prototype.setGraphXml;Editor.prototype.setGraphXml=function(k){k=null!=k&&"mxlibrary"!=k.nodeName?this.extractGraphModel(k):null;if(null!=k){var v=Editor.extractParserError(k,mxResources.get("invalidOrMissingFile"));if(v)throw EditorUi.debug("Editor.setGraphXml ParserError",
+[this],"node",[k],"cause",[v]),Error(mxResources.get("notADiagramFile")+" ("+v+")");if("mxGraphModel"==k.nodeName){v=k.getAttribute("style")||"default-style2";if("1"==urlParams.embed||null!=v&&""!=v)v!=this.graph.currentStyle&&(G=null!=this.graph.themes?this.graph.themes[v]:mxUtils.load(STYLE_PATH+"/"+v+".xml").getDocumentElement(),null!=G&&(N=new mxCodec(G.ownerDocument),N.decode(G,this.graph.getStylesheet())));else{var G=null!=this.graph.themes?this.graph.themes["default-old"]:mxUtils.load(STYLE_PATH+
+"/default-old.xml").getDocumentElement();if(null!=G){var N=new mxCodec(G.ownerDocument);N.decode(G,this.graph.getStylesheet())}}this.graph.currentStyle=v;this.graph.mathEnabled="1"==urlParams.math||"1"==k.getAttribute("math");this.graph.setAdaptiveColors(k.getAttribute("adaptiveColors"));v=k.getAttribute("backgroundImage");null!=v?this.graph.setBackgroundImage(this.graph.parseBackgroundImage(v)):this.graph.setBackgroundImage(null);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&
+this.graph.isCssTransformsSupported();this.graph.updateCssTransform();this.graph.setShadowVisible("1"==k.getAttribute("shadow"),!1);if(v=k.getAttribute("extFonts"))try{for(v=v.split("|").map(function(O){O=O.split("^");return{name:O[0],url:O[1]}}),G=0;G<v.length;G++)this.graph.addExtFont(v[G].name,v[G].url)}catch(O){console.log("ExtFonts format error: "+O.message)}else null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(this.graph.extFonts=[])}b.apply(this,arguments)}else throw{message:mxResources.get("notADiagramFile")||
+"Invalid data",toString:function(){return this.message}};};var f=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(k,v){k=null!=k?k:!0;var G=f.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&G.setAttribute("style",this.graph.currentStyle);var N=this.graph.getBackgroundImageObject(this.graph.backgroundImage,v);null!=N&&G.setAttribute("backgroundImage",JSON.stringify(N));G.setAttribute("math",this.graph.mathEnabled?"1":"0");G.setAttribute("shadow",
+this.graph.shadowVisible?"1":"0");null!=this.graph.adaptiveColors?G.setAttribute("adaptiveColors",this.graph.adaptiveColors):G.removeAttribute("adaptiveColors");null!=this.graph.extFonts&&0<this.graph.extFonts.length&&(N=this.graph.extFonts.map(function(O){return O.name+"^"+O.url}),G.setAttribute("extFonts",N.join("|")));return G};Editor.prototype.isDataSvg=function(k){try{var v=mxUtils.parseXml(k).documentElement.getAttribute("content");if(null!=v&&(null!=v&&"<"!=v.charAt(0)&&"%"!=v.charAt(0)&&(v=
+unescape(window.atob?atob(v):Base64.decode(cont,v))),null!=v&&"%"==v.charAt(0)&&(v=decodeURIComponent(v)),null!=v&&0<v.length)){var G=mxUtils.parseXml(v).documentElement;return"mxfile"==G.nodeName||"mxGraphModel"==G.nodeName}}catch(N){}return!1};Editor.prototype.extractGraphModel=function(k,v,G){return Editor.extractGraphModel.apply(this,arguments)};var m=Editor.prototype.resetGraph;Editor.prototype.resetGraph=function(){this.graph.mathEnabled="1"==urlParams.math;this.graph.setAdaptiveColors(null);
+this.graph.view.x0=null;this.graph.view.y0=null;this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform();m.apply(this,arguments)};var d=Editor.prototype.updateGraphComponents;Editor.prototype.updateGraphComponents=function(){d.apply(this,arguments);this.graph.useCssTransforms=!mxClient.NO_FO&&this.isChromelessView()&&this.graph.isCssTransformsSupported();this.graph.updateCssTransform()};Editor.initMath=function(k,v){if("undefined"===
+typeof window.MathJax&&!mxClient.IS_IE&&!mxClient.IS_IE11){var G=function(){N=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 N=null;Editor.doMathJaxRender=function(S){try{null==N?(MathJax.typesetClear([S]),MathJax.typeset([S]),G()):N!=S&&Editor.mathJaxQueue.push(S)}catch(V){MathJax.typesetClear([S]),null!=V.retry?(N=S,V.retry.then(function(){MathJax.typesetPromise([S]).then(G)["catch"](function(W){console.log("Error in MathJax.typesetPromise: "+
+W.toString());G()})})["catch"](function(W){console.log("Error in MathJax.retry: "+W.toString());G()})):null!=window.console&&console.log("Error in MathJax.typeset: "+V.toString())}};window.MathJax=null!=v?v:{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 S=0;S<Editor.mathJaxQueue.length;S++)Editor.doMathJaxRender(Editor.mathJaxQueue[S])}}};
+Editor.MathJaxRender=function(S){"undefined"!==typeof MathJax&&"function"===typeof MathJax.typeset?Editor.doMathJaxRender(S):Editor.mathJaxQueue.push(S)};Editor.onMathJaxDone=function(){};var O=Editor.prototype.init;Editor.prototype.init=function(){O.apply(this,arguments);var S=mxUtils.bind(this,function(V,W){null!=this.graph.container&&this.graph.mathEnabled&&Editor.MathJaxRender(this.graph.container)});this.graph.model.addListener(mxEvent.CHANGE,S);this.graph.addListener(mxEvent.REFRESH,S)};v=document.getElementsByTagName("script");
+if(null!=v&&0<v.length){var Q=document.createElement("script");Q.setAttribute("type","text/javascript");Q.setAttribute("src",k);v[0].parentNode.appendChild(Q)}}};Editor.prototype.csvToArray=function(k){if(0<k.length){var v="",G=[""],N=0,O=!0,Q;k=$jscomp.makeIterator(k);for(Q=k.next();!Q.done;Q=k.next())Q=Q.value,'"'===Q?(O&&Q===v&&(G[N]+=Q),O=!O):","===Q&&O?Q=G[++N]="":G[N]+=Q,v=Q;return G}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 v=EditorUi.isVisioFilename(k);v=/\.png$/i.test(k)||/\.pdf$/i.test(k)||v;var G="t="+(new Date).getTime();k=PROXY_URL+"?url="+encodeURIComponent(k)+"&"+G+(v?"&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 v=k.convert,G=this;k.convert=function(N){null!=N&&navigator.onLine&&("http://"!=N.substring(0,7)&&"https://"!=N.substring(0,8)||N.substring(0,k.baseUrl.length)==k.baseUrl||G.crossOriginImages&&
+G.isCorsEnabledForUrl(N)?"chrome-extension://"!=N.substring(0,19)&&(N=v.apply(this,arguments)):N=PROXY_URL+"?url="+encodeURIComponent(N));return N};return k};Editor.createSvgDataUri=function(k){return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(k)))};Editor.prototype.convertImageToDataUri=function(k,v,G,N,O){try{var Q=!0,S=window.setTimeout(mxUtils.bind(this,function(){Q=!1;v(k)}),this.timeout),V=mxUtils.bind(this,function(){null!=N?this.convertImageToDataUri(k,v,G,N,!0):v(k)});if(/(\.svg)$/i.test(k)&&
+!O)mxUtils.get(k,mxUtils.bind(this,function(X){window.clearTimeout(S);Q&&(200>X.getStatus()||299<X.getStatus()?V():v(Editor.createSvgDataUri(X.getText())))}),mxUtils.bind(this,function(){window.clearTimeout(S);Q&&V()}));else{var W=new Image;this.crossOriginImages&&(W.crossOrigin="anonymous");W.onload=function(){window.clearTimeout(S);if(Q)try{N=null!=N&&O?N:1;var X=document.createElement("canvas"),Z=X.getContext("2d");Z.scale(N,N);X.height=W.height*N;X.width=W.width*N;Z.drawImage(W,0,0);v(X.toDataURL())}catch(Y){v(k)}};
+W.onerror=function(){window.clearTimeout(S);Q&&(null!=G?G():v(k))};W.src=k}}catch(X){null!=G?G():v(k)}};Editor.prototype.convertImages=function(k,v,G,N){function O(){0<Q.length?Q.shift()():v(k)}null==N&&(N=this.createImageUrlConverter());var Q=[],S=G||{};G=mxUtils.bind(this,function(V,W){V=k.getElementsByTagName(V);for(var X=0;X<V.length;X++)mxUtils.bind(this,function(Z){Q.push(mxUtils.bind(this,function(){try{if(null!=Z){var Y=N.convert(Z.getAttribute(W));if(null!=Y&&"data:"!=Y.substring(0,5)){var ea=
+S[Y];null==ea?this.convertImageToDataUri(Y,function(ca){null!=ca&&(S[Y]=ca,Z.setAttribute(W,ca));O()},null,Editor.svgRasterScale):(Z.setAttribute(W,ea),O())}else null!=Y&&Z.setAttribute(W,Y),O()}}catch(ca){O()}}))})(V[X])});G("image","xlink:href");G("img","src");O()};Editor.base64Encode=function(k){for(var v="",G=0,N=k.length,O,Q,S;G<N;){O=k.charCodeAt(G++)&255;if(G==N){v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&
+3)<<4);v+="==";break}Q=k.charCodeAt(G++);if(G==N){v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&3)<<4|(Q&240)>>4);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Q&15)<<2);v+="=";break}S=k.charCodeAt(G++);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(O>>2);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((O&
+3)<<4|(Q&240)>>4);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((Q&15)<<2|(S&192)>>6);v+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(S&63)}return v};Editor.prototype.loadUrl=function(k,v,G,N,O,Q,S,V){try{var W=!S&&(N||/(\.png)($|\?)/i.test(k)||/(\.jpe?g)($|\?)/i.test(k)||/(\.gif)($|\?)/i.test(k)||/(\.pdf)($|\?)/i.test(k));O=null!=O?O:!0;var X=mxUtils.bind(this,function(){mxUtils.get(k,mxUtils.bind(this,function(Z){200<=Z.getStatus()&&299>=
+Z.getStatus()?null!=v&&(Z=Z.getText(),W&&(Q=null!=Q?Q:"data:image/png;base64,",Z=Q+Editor.base64Encode(Z)),v(Z)):null!=G&&(0==Z.getStatus()?G({message:mxResources.get("accessDenied")},Z):404==Z.getStatus()?G({message:mxResources.get("fileNotFound"),code:Z.getStatus()},Z):G({message:this.getErrorMessage(Z)},Z))}),function(Z){null!=G&&G({message:mxResources.get("error")+" "+Z.getStatus()})},W,this.timeout,function(){O&&null!=G&&G({code:App.ERROR_TIMEOUT,retry:X})},V)});X()}catch(Z){null!=G&&G(Z)}};
+Editor.prototype.getErrorMessage=function(k){var v=mxResources.get("error")+" "+k.getStatus();try{var G=k.getText(),N=JSON.parse(G);null!=N&&null!=N.error&&null!=N.error.message&&(v=N.error.message+" ("+v+")")}catch(O){}return v};Editor.prototype.absoluteCssFonts=function(k){var v=null;if(null!=k){var G=k.split("url(");if(0<G.length){v=[G[0]];k=window.location.pathname;var N=null!=k?k.lastIndexOf("/"):-1;0<=N&&(k=k.substring(0,N+1));N=document.getElementsByTagName("base");var O=null;null!=N&&0<N.length&&
+(O=N[0].getAttribute("href"));for(var Q=1;Q<G.length;Q++)if(N=G[Q].indexOf(")"),0<N){var S=Editor.trimCssUrl(G[Q].substring(0,N));this.graph.isRelativeUrl(S)&&(S=null!=O?O+S:window.location.protocol+"//"+window.location.hostname+("/"==S.charAt(0)?"":k)+S);v.push('url("'+S+'"'+G[Q].substring(N))}else v.push(G[Q])}else v=[k]}return null!=v?v.join(""):null};Editor.prototype.mapFontUrl=function(k,v,G){/^https?:\/\//.test(v)&&!this.isCorsEnabledForUrl(v)&&(v=PROXY_URL+"?url="+encodeURIComponent(v));G(k,
+v)};Editor.prototype.embedCssFonts=function(k,v){var G=k.split("url("),N=0;null==this.cachedFonts&&(this.cachedFonts={});var O=mxUtils.bind(this,function(){if(0==N){for(var W=[G[0]],X=1;X<G.length;X++){var Z=G[X].indexOf(")");W.push('url("');W.push(this.cachedFonts[Editor.trimCssUrl(G[X].substring(0,Z))]);W.push('"'+G[X].substring(Z))}v(W.join(""))}});if(0<G.length){for(k=1;k<G.length;k++){var Q=G[k].indexOf(")"),S=null,V=G[k].indexOf("format(",Q);0<V&&(S=Editor.trimCssUrl(G[k].substring(V+7,G[k].indexOf(")",
+V))));mxUtils.bind(this,function(W){if(null==this.cachedFonts[W]){this.cachedFonts[W]=W;N++;var X="application/x-font-ttf";if("svg"==S||/(\.svg)($|\?)/i.test(W))X="image/svg+xml";else if("otf"==S||"embedded-opentype"==S||/(\.otf)($|\?)/i.test(W))X="application/x-font-opentype";else if("woff"==S||/(\.woff)($|\?)/i.test(W))X="application/font-woff";else if("woff2"==S||/(\.woff2)($|\?)/i.test(W))X="application/font-woff2";else if("eot"==S||/(\.eot)($|\?)/i.test(W))X="application/vnd.ms-fontobject";else if("sfnt"==
+S||/(\.sfnt)($|\?)/i.test(W))X="application/font-sfnt";this.mapFontUrl(X,W,mxUtils.bind(this,function(Z,Y){this.loadUrl(Y,mxUtils.bind(this,function(ea){this.cachedFonts[W]=ea;N--;O()}),mxUtils.bind(this,function(ea){N--;O()}),!0,null,"data:"+Z+";charset=utf-8;base64,")}))}})(Editor.trimCssUrl(G[k].substring(0,Q)),S)}O()}else v(k)};Editor.prototype.loadFonts=function(k){null!=this.fontCss&&null==this.resolvedFontCss?this.embedCssFonts(this.fontCss,mxUtils.bind(this,function(v){this.resolvedFontCss=
+v;null!=k&&k()})):null!=k&&k()};Editor.prototype.createGoogleFontCache=function(){var k={},v;for(v in Graph.fontMapping)Graph.isCssFontUrl(v)&&(k[v]=Graph.fontMapping[v]);return k};Editor.prototype.embedExtFonts=function(k){var v=this.graph.getCustomFonts();if(0<v.length){var G=[],N=0;null==this.cachedGoogleFonts&&(this.cachedGoogleFonts=this.createGoogleFontCache());for(var O=mxUtils.bind(this,function(){0==N&&this.embedCssFonts(G.join(""),k)}),Q=0;Q<v.length;Q++)mxUtils.bind(this,function(S,V){Graph.isCssFontUrl(V)?
+null==this.cachedGoogleFonts[V]?(N++,this.loadUrl(Graph.rewriteGoogleFontUrl(V),mxUtils.bind(this,function(W){this.cachedGoogleFonts[V]=W;G.push(W+"\n");N--;O()}),mxUtils.bind(this,function(W){N--;G.push("@import url("+V+");\n");O()}))):G.push(this.cachedGoogleFonts[V]+"\n"):G.push('@font-face {font-family: "'+S+'";src: url("'+V+'")}\n')})(v[Q].name,v[Q].url);O()}else k()};Editor.prototype.addMathCss=function(k){k=k.getElementsByTagName("defs");if(null!=k&&0<k.length)for(var v=document.getElementsByTagName("style"),
+G=0;G<v.length;G++){var N=mxUtils.getTextContent(v[G]);0>N.indexOf("mxPageSelector")&&0<N.indexOf("MathJax")&&k[0].appendChild(v[G].cloneNode(!0))}};Editor.prototype.addFontCss=function(k,v){v=null!=v?v:this.absoluteCssFonts(this.fontCss);if(null!=v){var G=mxUtils.getSvgDefs(k),N=v.split("\n");v=[];for(var O=[],Q=0;Q<N.length;Q++)"@import"==N[Q].substring(0,7)?v.push(N[Q]):O.push(N[Q]);k=k.ownerDocument;k=null!=k.createElementNS?k.createElementNS(mxConstants.NS_SVG,"style"):k.createElement("style");
+k.setAttribute("type","text/css");0<v.length&&(mxUtils.setTextContent(k,v.join("\n")),G.appendChild(k));0<O.length&&(k=k.cloneNode(!1),mxUtils.setTextContent(k,O.join("\n")),G.appendChild(k))}};Editor.prototype.isExportToCanvas=function(){return mxClient.IS_CHROMEAPP||this.useCanvasForExport};Editor.prototype.getMaxCanvasScale=function(k,v,G){var N=mxClient.IS_FF?8192:16384;return Math.min(G,Math.min(N/k,N/v))};Editor.prototype.exportToCanvas=function(k,v,G,N,O,Q,S,V,W,X,Z,Y,ea,ca,ka,ba,ha,aa){try{Q=
+null!=Q?Q:!0;S=null!=S?S:!0;Y=null!=Y?Y:this.graph;ea=null!=ea?ea:0;var ia=W?null:Y.background;ia==mxConstants.NONE&&(ia=null);null==ia&&(ia=N);null==ia&&0==W&&(ia="dark"==ba&&"none"!=Y.getAdaptiveColors()?Editor.darkColor:"#ffffff");this.convertImages(Y.getSvg(null,null,ea,ca,null,S,null,null,null,X,null,ba,ha,aa),mxUtils.bind(this,function(fa){try{var da=new Image;da.onload=mxUtils.bind(this,function(){try{var va=function(){mxClient.IS_SF?window.setTimeout(function(){ta.drawImage(da,0,0);k(oa,fa)},
+0):(ta.drawImage(da,0,0),k(oa,fa))},oa=document.createElement("canvas"),Ba=parseInt(fa.getAttribute("width")),ma=parseInt(fa.getAttribute("height"));V=null!=V?V:1;null!=v&&(V=Q?Math.min(1,Math.min(3*v/(4*ma),v/Ba)):v/Ba);V=this.getMaxCanvasScale(Ba,ma,V);Ba=Math.ceil(V*Ba);ma=Math.ceil(V*ma);oa.setAttribute("width",Ba);oa.setAttribute("height",ma);var ta=oa.getContext("2d");if(null!=ia){var qa=mxUtils.getLightDarkColor(ia);ta.beginPath();ta.rect(0,0,Ba,ma);ta.fillStyle="dark"==ba&&"none"!=Y.getAdaptiveColors()?
+qa.dark:qa.light;ta.fill()}1!=V&&ta.scale(V,V);if(ka){var la=Y.view,Fa=la.scale;la.scale=1;var wa=btoa(unescape(encodeURIComponent(la.createSvgGrid(la.gridColor))));la.scale=Fa;wa="data:image/svg+xml;base64,"+wa;var Ca=Y.gridSize*la.gridSteps*V,xa=Y.getGraphBounds(),Da=la.translate.x*Fa,Aa=la.translate.y*Fa,Ja=Da+(xa.x-Da)/Fa-ea,Ka=Aa+(xa.y-Aa)/Fa-ea,Ga=new Image;Ga.onload=function(){try{for(var ya=-Math.round(Ca-mxUtils.mod((Da-Ja)*V,Ca)),Ma=-Math.round(Ca-mxUtils.mod((Aa-Ka)*V,Ca));ya<Ba;ya+=Ca)for(var Va=
+Ma;Va<ma;Va+=Ca)ta.drawImage(Ga,ya/V,Va/V);va()}catch(Ua){null!=O&&O(Ua)}};Ga.onerror=function(ya){null!=O&&O(ya)};Ga.src=wa}else va()}catch(ya){null!=O&&O(ya)}});da.onerror=function(va){null!=O&&O(va)};X&&this.graph.addSvgShadow(fa);this.graph.mathEnabled&&this.addMathCss(fa);var za=mxUtils.bind(this,function(){try{null!=this.resolvedFontCss&&this.addFontCss(fa,this.resolvedFontCss),da.src=Editor.createSvgDataUri(mxUtils.getXml(fa))}catch(va){null!=O&&O(va)}});this.embedExtFonts(mxUtils.bind(this,
+function(va){try{null!=va&&this.addFontCss(fa,va),this.loadFonts(za)}catch(oa){null!=O&&O(oa)}}))}catch(va){null!=O&&O(va)}}),G,Z)}catch(fa){null!=O&&O(fa)}};Editor.crcTable=[];for(var q=0;256>q;q++)for(var x=q,C=0;8>C;C++)x=1==(x&1)?3988292384^x>>>1:x>>>1,Editor.crcTable[q]=x;Editor.updateCRC=function(k,v,G,N){for(var O=0;O<N;O++)k=Editor.crcTable[(k^v.charCodeAt(G+O))&255]^k>>>8;return k};Editor.crc32=function(k){for(var v=-1,G=0;G<k.length;G++)v=v>>>8^Editor.crcTable[(v^k.charCodeAt(G))&255];return(v^
+-1)>>>0};Editor.writeGraphModelToPng=function(k,v,G,N,O){function Q(Z,Y){var ea=W;W+=Y;return Z.substring(ea,W)}function S(Z){Z=Q(Z,4);return Z.charCodeAt(3)+(Z.charCodeAt(2)<<8)+(Z.charCodeAt(1)<<16)+(Z.charCodeAt(0)<<24)}function V(Z){return String.fromCharCode(Z>>24&255,Z>>16&255,Z>>8&255,Z&255)}k=k.substring(k.indexOf(",")+1);k=window.atob?atob(k):Base64.decode(k,!0);var W=0;if(Q(k,8)!=String.fromCharCode(137)+"PNG"+String.fromCharCode(13,10,26,10))null!=O&&O();else if(Q(k,4),"IHDR"!=Q(k,4))null!=
+O&&O();else{Q(k,17);O=k.substring(0,W);do{var X=S(k);if("IDAT"==Q(k,4)){O=k.substring(0,W-8);"pHYs"==v&&"dpi"==G?(G=Math.round(N/.0254),G=V(G)+V(G)+String.fromCharCode(1)):G=G+String.fromCharCode(0)+("zTXt"==v?String.fromCharCode(0):"")+N;N=4294967295;N=Editor.updateCRC(N,v,0,4);N=Editor.updateCRC(N,G,0,G.length);O+=V(G.length)+v+G+V(N^4294967295);O+=k.substring(W-8,k.length);break}O+=k.substring(W-8,W-4+X);Q(k,X);Q(k,4)}while(X);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 y=ColorDialog.addRecentColor;ColorDialog.addRecentColor=function(k,v){y.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()};var I=ColorDialog.resetRecentColors;ColorDialog.resetRecentColors=function(){I.apply(this,arguments);mxSettings.setRecentColors(ColorDialog.recentColors);mxSettings.save()}}"undefined"!==typeof window.EditDataDialog&&(EditDataDialog.getDisplayIdForCell=
+function(k,v){var G=null;null!=k.editor.graph.getModel().getParent(v)?G=v.getId():null!=k.currentPage&&(G=k.currentPage.getId());return G});if(null!=window.StyleFormatPanel){var M=Format.prototype.init;Format.prototype.init=function(){M.apply(this,arguments);this.editorUi.editor.addListener("fileLoaded",this.update)};var H=Format.prototype.refresh;Format.prototype.refresh=function(){null!=this.editorUi.getCurrentFile()||"1"==urlParams.embed||this.editorUi.editor.chromeless?H.apply(this,arguments):
+this.clear()};DiagramFormatPanel.prototype.isMathOptionVisible=function(k){return"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme};var c=DiagramFormatPanel.prototype.addOptions;DiagramFormatPanel.prototype.addOptions=function(k){k=c.apply(this,arguments);var v=this.editorUi,G=v.editor.graph;if(G.isEnabled()){var N=v.getCurrentFile();null!=N&&N.isAutosaveOptional()&&k.appendChild(this.createOption(mxResources.get("autosave"),function(){return v.editor.autosave},
+function(Q){v.editor.setAutosave(Q);v.editor.autosave&&N.isModified()&&N.fileChanged()},{install:function(Q){this.listener=function(){Q(v.editor.autosave)};v.editor.addListener("autosaveChanged",this.listener)},destroy:function(){v.editor.removeListener(this.listener)}}))}if(this.isMathOptionVisible()&&G.isEnabled()&&"undefined"!==typeof MathJax){var O=this.createOption(mxResources.get("mathematicalTypesetting"),function(){return G.mathEnabled},function(Q){v.actions.get("mathematicalTypesetting").funct()},
+{install:function(Q){this.listener=function(){Q(G.mathEnabled)};v.addListener("mathEnabledChanged",this.listener)},destroy:function(){v.removeListener(this.listener)}});k.appendChild(O);(!v.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&O.appendChild(v.menus.createHelpLink("https://www.drawio.com/doc/faq/math-typesetting"))}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,
@@ -12843,90 +12886,90 @@ 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;var e=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()));e.apply(this,arguments);null!=k.customProperties&&this.container.appendChild(this.addProperties(this.createPanel(),k.customProperties,k))};var g=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(k){var y=
-this.editorUi.getSelectionState();1==y.cells.length?this.addActions(k,["copyStyle","pasteStyle"]):1<=y.cells.length&&this.addActions(k,["pasteStyle","pasteData"]);g.apply(this,arguments);return k};EditorUi.prototype.propertiesCollapsed=!0;BaseFormatPanel.prototype.addProperties=function(k,y,F,M){function P(ua,ra,oa,Ea,va){if(null!=oa.valueChanged)oa.valueChanged(ra,va);else{da.getModel().beginUpdate();try{va=[];var ya=[];if(null!=oa.index){for(var za=[],Ga=oa.parentRow.nextSibling;Ga&&Ga.getAttribute("data-pName")==
-ua;)za.push(Ga.getAttribute("data-pValue")),Ga=Ga.nextSibling;oa.index<za.length?null!=Ea?za.splice(Ea,1):za[oa.index]=ra:za.push(ra);null!=oa.size&&za.length>oa.size&&(za=za.slice(0,oa.size));ra=za.join(",");null!=oa.countProperty&&(da.setCellStyles(oa.countProperty,za.length,da.getSelectionCells()),va.push(oa.countProperty),ya.push(za.length))}da.setCellStyles(ua,ra,da.getSelectionCells());va.push(ua);ya.push(ra);if(null!=oa.dependentProps)for(ua=0;ua<oa.dependentProps.length;ua++){var Ca=oa.dependentPropsDefVal[ua],
-Ka=oa.dependentPropsVals[ua];if(Ka.length>ra)Ka=Ka.slice(0,ra);else for(var Ma=Ka.length;Ma<ra;Ma++)Ka.push(Ca);Ka=Ka.join(",");da.setCellStyles(oa.dependentProps[ua],Ka,da.getSelectionCells());va.push(oa.dependentProps[ua]);ya.push(Ka)}if("function"==typeof oa.onChange)oa.onChange(da,ra);Z.editorUi.fireEvent(new mxEventObject("styleChanged","keys",va,"values",ya,"cells",da.getSelectionCells()))}finally{da.getModel().endUpdate()}}}function R(ua,ra,oa){var Ea=mxUtils.getOffset(k,!0),va=mxUtils.getOffset(ua,
-!0);ra.style.position="absolute";ra.style.left=va.x-Ea.x+"px";ra.style.top=va.y-Ea.y+"px";ra.style.width=ua.offsetWidth+"px";ra.style.height=ua.offsetHeight-(oa?4:0)+"px";ra.style.zIndex=5}function T(ua,ra,oa){function Ea(ya){if(null==ya||ya==mxConstants.NONE)va.style.background="url('"+Dialog.prototype.noColorImage+"')";else if("default"==ya)va.style.background="";else{var za=mxUtils.getLightDarkColor(ya);mxUtils.isLightDarkColor(ya)&&za.light!=za.dark?va.style.background="linear-gradient(to right bottom, "+
-za.cssText+" 50%, "+mxUtils.invertLightDarkColor(za).cssText+" 50.3%)":va.style.background=ya}}var va=document.createElement("div");va.style.width="32px";va.style.height="8px";va.style.margin="2px";va.style.borderStyle="solid";va.style.borderWidth="1px";Ea(ra);btn=mxUtils.button("",mxUtils.bind(Z,function(ya){this.editorUi.pickColor(ra,function(za){P(ua,za,oa);Ea(za)});mxEvent.consume(ya)}));btn.style.height="18px";btn.style.width="40px";btn.style.marginTop="1px";btn.style.marginLeft="1px";btn.className=
-"geColorBtn";btn.appendChild(va);return btn}function V(ua,ra,oa,Ea,va,ya,za){null!=ra&&(ra=ra.split(","),ea.push({name:ua,values:ra,type:oa,defVal:Ea,countProperty:va,parentRow:ya,isDeletable:!0,flipBkg:za}));btn=mxUtils.button("+",mxUtils.bind(Z,function(Ga){for(var Ca=ya,Ka=0;null!=Ca.nextSibling;)if(Ca.nextSibling.getAttribute("data-pName")==ua)Ca=Ca.nextSibling,Ka++;else break;var Ma={type:oa,parentRow:ya,index:Ka,isDeletable:!0,defVal:Ea,countProperty:va};Ka=Y(ua,"",Ma,0==Ka%2,za);P(ua,Ea,Ma);
-Ca.parentNode.insertBefore(Ka,Ca.nextSibling);mxEvent.consume(Ga)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function W(ua,ra,oa,Ea,va,ya,za){if(0<va){var Ga=Array(va);ra=null!=ra?ra.split(","):[];for(var Ca=0;Ca<va;Ca++)Ga[Ca]=null!=ra[Ca]?ra[Ca]:null!=Ea?Ea:"";ea.push({name:ua,values:Ga,type:oa,defVal:Ea,parentRow:ya,flipBkg:za,size:va})}return document.createElement("div")}function X(ua,ra,oa){var Ea=document.createElement("input");Ea.type="checkbox";
-Ea.checked="1"==ra;mxEvent.addListener(Ea,"change",function(){P(ua,Ea.checked?"1":"0",oa)});return Ea}function Y(ua,ra,oa,Ea,va){var ya=oa.dispName,za=oa.type,Ga=document.createElement("tr");Ga.className="gePropRow"+(va?"Dark":"")+(Ea?"Alt":"")+" gePropNonHeaderRow";Ga.setAttribute("data-pName",ua);Ga.setAttribute("data-pValue",ra);Ea=!1;null!=oa.index&&(Ga.setAttribute("data-index",oa.index),ya=(null!=ya?ya:"")+"["+oa.index+"]",Ea=!0);var Ca=document.createElement("td");Ca.className="gePropRowCell";
-ya=mxResources.get(ya,null,ya);mxUtils.write(Ca,ya);Ca.setAttribute("title",ya);Ea&&(Ca.style.textAlign="right");Ga.appendChild(Ca);Ca=document.createElement("td");Ca.className="gePropRowCell";Ca.setAttribute("title",null!=ra?ra:mxResources.get("none"));if("color"==za)Ca.appendChild(T(ua,ra,oa));else if("bool"==za||"boolean"==za)Ca.appendChild(X(ua,ra,oa));else if("enum"==za){var Ka=oa.enumList;for(va=0;va<Ka.length;va++)if(ya=Ka[va],ya.val==ra){mxUtils.write(Ca,mxResources.get(ya.dispName,null,ya.dispName));
-break}mxEvent.addListener(Ca,"click",mxUtils.bind(Z,function(){var Ma=document.createElement("select"),Da=null;R(Ca,Ma);for(var wa=0;wa<Ka.length;wa++){var Sa=Ka[wa],Ta=document.createElement("option");Ta.value=mxUtils.htmlEntities(Sa.val);mxUtils.write(Ta,mxResources.get(Sa.dispName,null,Sa.dispName));Ma.appendChild(Ta);null==Sa.val&&(Ta.value="null",Da=Ta)}Ma.value=null==ra&&null!=Da?"null":ra;k.appendChild(Ma);mxEvent.addListener(Ma,"change",function(){var Ua=mxUtils.htmlEntities(Ma.value);if(Ma[Ma.selectedIndex]==
-Da||"null"==Ua.value)Ua=null;P(ua,Ua,oa)});Ma.focus();mxEvent.addListener(Ma,"blur",function(){k.removeChild(Ma)})}))}else"dynamicArr"==za?Ca.appendChild(V(ua,ra,oa.subType,oa.subDefVal,oa.countProperty,Ga,va)):"staticArr"==za?Ca.appendChild(W(ua,ra,oa.subType,oa.subDefVal,oa.size,Ga,va)):"readOnly"==za?(va=document.createElement("input"),va.setAttribute("readonly",""),va.value=ra,va.style.borderWidth="0px","id"==ua?(va.style.width="190px",va.style.position="relative",va.style.right="6px",va.style.float=
-"right",va.style.background="none",va.style.textAlign="right",Ga.firstChild.setAttribute("colspan","2"),va.setAttribute("title",ra),Ga.firstChild.appendChild(va)):(va.style.width="96px",Ca.appendChild(va))):(Ca.innerHTML=mxUtils.htmlEntities(decodeURIComponent(ra)),mxEvent.addListener(Ca,"click",mxUtils.bind(Z,function(){function Ma(){var wa=Da.value;wa=0==wa.length&&"string"!=za&&"numbers"!=za?0:wa;oa.allowAuto&&(null!=wa.trim&&"auto"==wa.trim().toLowerCase()?(wa="auto",za="string"):(wa=parseFloat(wa),
-wa=isNaN(wa)?0:wa));null!=oa.min&&wa<oa.min?wa=oa.min:null!=oa.max&&wa>oa.max&&(wa=oa.max);var Sa=null;try{Sa="numbers"==za?wa.match(/\d+/g).map(Number).join(" "):encodeURIComponent(("int"==za?parseInt(wa):wa)+"")}catch(Ta){}P(ua,Sa,oa,null,Da)}var Da=document.createElement("input");R(Ca,Da,!0);Da.value=decodeURIComponent(ra);Da.className="gePropEditor";"int"!=za&&"float"!=za||oa.allowAuto||(Da.type="number",Da.step="int"==za?"1":"any",null!=oa.min&&(Da.min=parseFloat(oa.min)),null!=oa.max&&(Da.max=
-parseFloat(oa.max)));k.appendChild(Da);mxEvent.addListener(Da,"keypress",function(wa){13==wa.keyCode&&Ma()});Da.focus();mxEvent.addListener(Da,"blur",function(){Ma()})})));oa.isDeletable&&(va=mxUtils.button("-",mxUtils.bind(Z,function(Ma){P(ua,"",oa,oa.index);mxEvent.consume(Ma)})),va.style.height="16px",va.style.width="25px",va.style.float="right",va.className="geColorBtn",Ca.appendChild(va));Ga.appendChild(Ca);return Ga}var Z=this,da=this.editorUi.editor.graph,ea=[],ka=document.createElement("table");
-ka.className="geProperties geFullWidthElement";var ba=document.createElement("tr");ba.className="gePropHeader";var ha=document.createElement("th");ha.className="gePropHeaderCell";ha.style.paddingLeft="16px";ha.style.backgroundRepeat="no-repeat";ha.style.backgroundPosition="-2px 50%";ha.style.backgroundSize="20px";mxUtils.write(ha,mxResources.get("property"));ba.style.cursor="pointer";var aa=function(){var ua=ka.querySelectorAll(".gePropNonHeaderRow");if(Z.editorUi.propertiesCollapsed){ha.style.backgroundImage=
-"url('"+Editor.arrowRightImage+"')";var ra="none";for(var oa=k.childNodes.length-1;0<=oa;oa--)try{var Ea=k.childNodes[oa],va=Ea.nodeName.toUpperCase();"INPUT"!=va&&"SELECT"!=va||k.removeChild(Ea)}catch(ya){}}else ha.style.backgroundImage="url('"+Editor.arrowDownImage+"')",ra="";for(oa=0;oa<ua.length;oa++)ua[oa].style.display=ra};mxEvent.addListener(ba,"click",function(){Z.editorUi.propertiesCollapsed=!Z.editorUi.propertiesCollapsed;aa()});ba.appendChild(ha);var ia=document.createElement("th");ia.className=
-"gePropHeaderCell";ia.style.paddingLeft="4px";mxUtils.write(ia,mxResources.get("value"));ba.appendChild(ia);ka.appendChild(ba);var fa=ia=!1;ba=null;1==F.vertices.length&&0==F.edges.length?ba=F.vertices[0].id:0==F.vertices.length&&1==F.edges.length&&(ba=F.edges[0].id);null==ba||M||ka.appendChild(Y("id",mxUtils.htmlEntities(ba),{dispName:"id",type:"readOnly"},!0,!1));for(var ca in y)if(M=y[ca],!M.primary&&("function"!=typeof M.isVisible||M.isVisible(F,this))){var Ba=null!=M.getValue?M.getValue():null!=
-F.style[ca]?mxUtils.htmlEntities(F.style[ca]+""):null!=M.getDefaultValue?M.getDefaultValue(F,this):M.defVal;if("separator"==M.type)fa=!fa;else{if("staticArr"==M.type)M.size=parseInt(F.style[M.sizeProperty]||y[M.sizeProperty].defVal)||0;else if(null!=M.dependentProps){var la=M.dependentProps,xa=[],Aa=[];for(ba=0;ba<la.length;ba++){var ma=F.style[la[ba]];Aa.push(y[la[ba]].subDefVal);xa.push(null!=ma?ma.split(","):[])}M.dependentPropsDefVal=Aa;M.dependentPropsVals=xa}ka.appendChild(Y(ca,Ba,M,ia,fa));
-ia=!ia}}for(ba=0;ba<ea.length;ba++)for(M=ea[ba],y=M.parentRow,F=0;F<M.values.length;F++)ca=Y(M.name,M.values[F],{type:M.type,parentRow:M.parentRow,isDeletable:M.isDeletable,index:F,defVal:M.defVal,countProperty:M.countProperty,size:M.size},0==F%2,M.flipBkg),y.parentNode.insertBefore(ca,y.nextSibling),y=ca;k.appendChild(ka);aa();return k};StyleFormatPanel.prototype.addStyles=function(k){if(null!=this.defaultColorSchemes){var y=this.editorUi,F=y.editor.graph,M=document.createElement("div");M.style.padding=
-"6px 20px 0 24px";k.appendChild(M);var P=document.createElement("div");P.className="geSwitcher";P.style.padding="4px 18px 6px 0px";for(var R=[],T=0;T<this.defaultColorSchemes.length;T++){var V=document.createElement("div");V.className="geSwitcherDot";mxUtils.bind(this,function(da){mxEvent.addListener(V,"click",mxUtils.bind(this,function(){W(da)}))})(T);R.push(V);P.appendChild(V)}var W=mxUtils.bind(this,function(da){null!=R[da]&&(null!=this.format.currentScheme&&null!=R[this.format.currentScheme]&&
-(R[this.format.currentScheme].style.background="transparent"),this.format.currentScheme=da,X(this.defaultColorSchemes[this.format.currentScheme]),R[this.format.currentScheme].style.background="#84d7ff")}),X=mxUtils.bind(this,function(da){var ea=mxUtils.clone(F.defaultVertexStyle);ea[mxConstants.STYLE_STROKECOLOR]=null!=ea[mxConstants.STYLE_STROKECOLOR]?ea[mxConstants.STYLE_STROKECOLOR]:"default";ea[mxConstants.STYLE_FILLCOLOR]=null!=ea[mxConstants.STYLE_FILLCOLOR]?ea[mxConstants.STYLE_FILLCOLOR]:
-"default";ea[mxConstants.STYLE_FONTCOLOR]=null!=ea[mxConstants.STYLE_FONTCOLOR]?ea[mxConstants.STYLE_FONTCOLOR]:"default";F.replaceDefaultColors(new mxCell,ea);var ka=mxUtils.bind(this,function(ha){var aa=mxUtils.button("",mxUtils.bind(this,function(ca){F.getModel().beginUpdate();try{for(var Ba=y.getSelectionState().cells,la=0;la<Ba.length;la++){var xa=F.getModel().getStyle(Ba[la]);null!=ha?(mxEvent.isShiftDown(ca)||(xa=""==ha.fill||null==ha.fill?mxUtils.setStyle(xa,mxConstants.STYLE_FILLCOLOR,null):
-mxUtils.setStyle(xa,mxConstants.STYLE_FILLCOLOR,ha.fill),xa=""==ha.gradient||null==ha.gradient?mxUtils.setStyle(xa,mxConstants.STYLE_GRADIENTCOLOR,null):mxUtils.setStyle(xa,mxConstants.STYLE_GRADIENTCOLOR,ha.gradient),mxEvent.isControlDown(ca)||mxClient.IS_MAC&&mxEvent.isMetaDown(ca)||!F.getModel().isVertex(Ba[la])||(xa=""==ha.font||null==ha.font?mxUtils.setStyle(xa,mxConstants.STYLE_FONTCOLOR,null):mxUtils.setStyle(xa,mxConstants.STYLE_FONTCOLOR,ha.font))),mxEvent.isAltDown(ca)||(xa=""==ha.stroke||
-null==ha.fill?mxUtils.setStyle(xa,mxConstants.STYLE_STROKECOLOR,null):mxUtils.setStyle(xa,mxConstants.STYLE_STROKECOLOR,ha.stroke))):(xa=mxUtils.setStyle(xa,mxConstants.STYLE_FILLCOLOR,null),xa=mxUtils.setStyle(xa,mxConstants.STYLE_STROKECOLOR,null),xa=mxUtils.setStyle(xa,mxConstants.STYLE_GRADIENTCOLOR,null),F.getModel().isVertex(Ba[la])&&(xa=mxUtils.setStyle(xa,mxConstants.STYLE_FONTCOLOR,null)));F.getModel().setStyle(Ba[la],xa)}}finally{F.getModel().endUpdate()}}));aa.className="geStyleButton";
+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()));e.apply(this,arguments);null!=k.customProperties&&this.container.appendChild(this.addProperties(this.createPanel(),k.customProperties,k))};var g=StyleFormatPanel.prototype.addStyleOps;StyleFormatPanel.prototype.addStyleOps=function(k){var v=
+this.editorUi.getSelectionState();1==v.cells.length?this.addActions(k,["copyStyle","pasteStyle"]):1<=v.cells.length&&this.addActions(k,["pasteStyle","pasteData"]);g.apply(this,arguments);return k};EditorUi.prototype.propertiesCollapsed=!0;BaseFormatPanel.prototype.addProperties=function(k,v,G,N){function O(ta,qa,la,Fa,wa){if(null!=la.valueChanged)la.valueChanged(qa,wa);else{ea.getModel().beginUpdate();try{wa=[];var Ca=[];if(null!=la.index){for(var xa=[],Da=la.parentRow.nextSibling;Da&&Da.getAttribute("data-pName")==
+ta;)xa.push(Da.getAttribute("data-pValue")),Da=Da.nextSibling;la.index<xa.length?null!=Fa?xa.splice(Fa,1):xa[la.index]=qa:xa.push(qa);null!=la.size&&xa.length>la.size&&(xa=xa.slice(0,la.size));qa=xa.join(",");null!=la.countProperty&&(ea.setCellStyles(la.countProperty,xa.length,ea.getSelectionCells()),wa.push(la.countProperty),Ca.push(xa.length))}ea.setCellStyles(ta,qa,ea.getSelectionCells());wa.push(ta);Ca.push(qa);if(null!=la.dependentProps)for(ta=0;ta<la.dependentProps.length;ta++){var Aa=la.dependentPropsDefVal[ta],
+Ja=la.dependentPropsVals[ta];if(Ja.length>qa)Ja=Ja.slice(0,qa);else for(var Ka=Ja.length;Ka<qa;Ka++)Ja.push(Aa);Ja=Ja.join(",");ea.setCellStyles(la.dependentProps[ta],Ja,ea.getSelectionCells());wa.push(la.dependentProps[ta]);Ca.push(Ja)}if("function"==typeof la.onChange)la.onChange(ea,qa);Y.editorUi.fireEvent(new mxEventObject("styleChanged","keys",wa,"values",Ca,"cells",ea.getSelectionCells()))}finally{ea.getModel().endUpdate()}}}function Q(ta,qa,la){var Fa=mxUtils.getOffset(k,!0),wa=mxUtils.getOffset(ta,
+!0);qa.style.position="absolute";qa.style.left=wa.x-Fa.x+"px";qa.style.top=wa.y-Fa.y+"px";qa.style.width=ta.offsetWidth+"px";qa.style.height=ta.offsetHeight-(la?4:0)+"px";qa.style.zIndex=5}function S(ta,qa,la){function Fa(Ca){if(null==Ca||Ca==mxConstants.NONE)wa.style.background="url('"+Dialog.prototype.noColorImage+"')";else if("default"==Ca)wa.style.background="";else{var xa=mxUtils.getLightDarkColor(Ca);mxUtils.isLightDarkColor(Ca)&&xa.light!=xa.dark?wa.style.background="linear-gradient(to right bottom, "+
+xa.cssText+" 50%, "+mxUtils.invertLightDarkColor(xa).cssText+" 50.3%)":wa.style.background=Ca}}var wa=document.createElement("div");wa.style.width="32px";wa.style.height="8px";wa.style.margin="2px";wa.style.borderStyle="solid";wa.style.borderWidth="1px";Fa(qa);btn=mxUtils.button("",mxUtils.bind(Y,function(Ca){this.editorUi.pickColor(qa,function(xa){O(ta,xa,la);Fa(xa)});mxEvent.consume(Ca)}));btn.style.height="18px";btn.style.width="40px";btn.style.marginTop="1px";btn.style.marginLeft="1px";btn.className=
+"geColorBtn";btn.appendChild(wa);return btn}function V(ta,qa,la,Fa,wa,Ca,xa){null!=qa&&(qa=qa.split(","),ca.push({name:ta,values:qa,type:la,defVal:Fa,countProperty:wa,parentRow:Ca,isDeletable:!0,flipBkg:xa}));btn=mxUtils.button("+",mxUtils.bind(Y,function(Da){for(var Aa=Ca,Ja=0;null!=Aa.nextSibling;)if(Aa.nextSibling.getAttribute("data-pName")==ta)Aa=Aa.nextSibling,Ja++;else break;var Ka={type:la,parentRow:Ca,index:Ja,isDeletable:!0,defVal:Fa,countProperty:wa};Ja=Z(ta,"",Ka,0==Ja%2,xa);O(ta,Fa,Ka);
+Aa.parentNode.insertBefore(Ja,Aa.nextSibling);mxEvent.consume(Da)}));btn.style.height="16px";btn.style.width="25px";btn.className="geColorBtn";return btn}function W(ta,qa,la,Fa,wa,Ca,xa){if(0<wa){var Da=Array(wa);qa=null!=qa?qa.split(","):[];for(var Aa=0;Aa<wa;Aa++)Da[Aa]=null!=qa[Aa]?qa[Aa]:null!=Fa?Fa:"";ca.push({name:ta,values:Da,type:la,defVal:Fa,parentRow:Ca,flipBkg:xa,size:wa})}return document.createElement("div")}function X(ta,qa,la){var Fa=document.createElement("input");Fa.type="checkbox";
+Fa.checked="1"==qa;mxEvent.addListener(Fa,"change",function(){O(ta,Fa.checked?"1":"0",la)});return Fa}function Z(ta,qa,la,Fa,wa){var Ca=la.dispName,xa=la.type,Da=document.createElement("tr");Da.className="gePropRow"+(wa?"Dark":"")+(Fa?"Alt":"")+" gePropNonHeaderRow";Da.setAttribute("data-pName",ta);Da.setAttribute("data-pValue",qa);Fa=!1;null!=la.index&&(Da.setAttribute("data-index",la.index),Ca=(null!=Ca?Ca:"")+"["+la.index+"]",Fa=!0);var Aa=document.createElement("td");Aa.className="gePropRowCell";
+Ca=mxResources.get(Ca,null,Ca);mxUtils.write(Aa,Ca);Aa.setAttribute("title",Ca);Fa&&(Aa.style.textAlign="right");Da.appendChild(Aa);Aa=document.createElement("td");Aa.className="gePropRowCell";Aa.setAttribute("title",null!=qa?qa:mxResources.get("none"));if("color"==xa)Aa.appendChild(S(ta,qa,la));else if("bool"==xa||"boolean"==xa)Aa.appendChild(X(ta,qa,la));else if("enum"==xa){var Ja=la.enumList;for(wa=0;wa<Ja.length;wa++)if(Ca=Ja[wa],Ca.val==qa){mxUtils.write(Aa,mxResources.get(Ca.dispName,null,Ca.dispName));
+break}mxEvent.addListener(Aa,"click",mxUtils.bind(Y,function(){var Ka=document.createElement("select"),Ga=null;Q(Aa,Ka);for(var ya=0;ya<Ja.length;ya++){var Ma=Ja[ya],Va=document.createElement("option");Va.value=mxUtils.htmlEntities(Ma.val);mxUtils.write(Va,mxResources.get(Ma.dispName,null,Ma.dispName));Ka.appendChild(Va);null==Ma.val&&(Va.value="null",Ga=Va)}Ka.value=null==qa&&null!=Ga?"null":qa;k.appendChild(Ka);mxEvent.addListener(Ka,"change",function(){var Ua=mxUtils.htmlEntities(Ka.value);if(Ka[Ka.selectedIndex]==
+Ga||"null"==Ua.value)Ua=null;O(ta,Ua,la)});Ka.focus();mxEvent.addListener(Ka,"blur",function(){k.removeChild(Ka)})}))}else"dynamicArr"==xa?Aa.appendChild(V(ta,qa,la.subType,la.subDefVal,la.countProperty,Da,wa)):"staticArr"==xa?Aa.appendChild(W(ta,qa,la.subType,la.subDefVal,la.size,Da,wa)):"readOnly"==xa?(wa=document.createElement("input"),wa.setAttribute("readonly",""),wa.value=qa,wa.style.borderWidth="0px","id"==ta?(wa.style.width="190px",wa.style.position="relative",wa.style.right="6px",wa.style.float=
+"right",wa.style.background="none",wa.style.textAlign="right",Da.firstChild.setAttribute("colspan","2"),wa.setAttribute("title",qa),Da.firstChild.appendChild(wa)):(wa.style.width="96px",Aa.appendChild(wa))):(Aa.innerHTML=mxUtils.htmlEntities(decodeURIComponent(qa)),mxEvent.addListener(Aa,"click",mxUtils.bind(Y,function(){function Ka(){var ya=Ga.value;ya=0==ya.length&&"string"!=xa&&"numbers"!=xa?0:ya;la.allowAuto&&(null!=ya.trim&&"auto"==ya.trim().toLowerCase()?(ya="auto",xa="string"):(ya=parseFloat(ya),
+ya=isNaN(ya)?0:ya));null!=la.min&&ya<la.min?ya=la.min:null!=la.max&&ya>la.max&&(ya=la.max);var Ma=null;try{Ma="numbers"==xa?ya.match(/\d+/g).map(Number).join(" "):encodeURIComponent(("int"==xa?parseInt(ya):ya)+"")}catch(Va){}O(ta,Ma,la,null,Ga)}var Ga=document.createElement("input");Q(Aa,Ga,!0);Ga.value=decodeURIComponent(qa);Ga.className="gePropEditor";"int"!=xa&&"float"!=xa||la.allowAuto||(Ga.type="number",Ga.step="int"==xa?"1":"any",null!=la.min&&(Ga.min=parseFloat(la.min)),null!=la.max&&(Ga.max=
+parseFloat(la.max)));k.appendChild(Ga);mxEvent.addListener(Ga,"keypress",function(ya){13==ya.keyCode&&Ka()});Ga.focus();mxEvent.addListener(Ga,"blur",function(){Ka()})})));la.isDeletable&&(wa=mxUtils.button("-",mxUtils.bind(Y,function(Ka){O(ta,"",la,la.index);mxEvent.consume(Ka)})),wa.style.height="16px",wa.style.width="25px",wa.style.float="right",wa.className="geColorBtn",Aa.appendChild(wa));Da.appendChild(Aa);return Da}var Y=this,ea=this.editorUi.editor.graph,ca=[],ka=document.createElement("table");
+ka.className="geProperties geFullWidthElement";var ba=document.createElement("tr");ba.className="gePropHeader";var ha=document.createElement("th");ha.className="gePropHeaderCell";ha.style.paddingLeft="16px";ha.style.backgroundRepeat="no-repeat";ha.style.backgroundPosition="-2px 50%";ha.style.backgroundSize="20px";mxUtils.write(ha,mxResources.get("property"));ba.style.cursor="pointer";var aa=function(){var ta=ka.querySelectorAll(".gePropNonHeaderRow");if(Y.editorUi.propertiesCollapsed){ha.style.backgroundImage=
+"url('"+Editor.arrowRightImage+"')";var qa="none";for(var la=k.childNodes.length-1;0<=la;la--)try{var Fa=k.childNodes[la],wa=Fa.nodeName.toUpperCase();"INPUT"!=wa&&"SELECT"!=wa||k.removeChild(Fa)}catch(Ca){}}else ha.style.backgroundImage="url('"+Editor.arrowDownImage+"')",qa="";for(la=0;la<ta.length;la++)ta[la].style.display=qa};mxEvent.addListener(ba,"click",function(){Y.editorUi.propertiesCollapsed=!Y.editorUi.propertiesCollapsed;aa()});ba.appendChild(ha);var ia=document.createElement("th");ia.className=
+"gePropHeaderCell";ia.style.paddingLeft="4px";mxUtils.write(ia,mxResources.get("value"));ba.appendChild(ia);ka.appendChild(ba);var fa=ia=!1;ba=null;1==G.vertices.length&&0==G.edges.length?ba=G.vertices[0].id:0==G.vertices.length&&1==G.edges.length&&(ba=G.edges[0].id);null==ba||N||ka.appendChild(Z("id",mxUtils.htmlEntities(ba),{dispName:"id",type:"readOnly"},!0,!1));for(var da in v)if(N=v[da],!N.primary&&("function"!=typeof N.isVisible||N.isVisible(G,this))){var za=null!=N.getValue?N.getValue():null!=
+G.style[da]?mxUtils.htmlEntities(G.style[da]+""):null!=N.getDefaultValue?N.getDefaultValue(G,this):N.defVal;if("separator"==N.type)fa=!fa;else{if("staticArr"==N.type)N.size=parseInt(G.style[N.sizeProperty]||v[N.sizeProperty].defVal)||0;else if(null!=N.dependentProps){var va=N.dependentProps,oa=[],Ba=[];for(ba=0;ba<va.length;ba++){var ma=G.style[va[ba]];Ba.push(v[va[ba]].subDefVal);oa.push(null!=ma?ma.split(","):[])}N.dependentPropsDefVal=Ba;N.dependentPropsVals=oa}ka.appendChild(Z(da,za,N,ia,fa));
+ia=!ia}}for(ba=0;ba<ca.length;ba++)for(N=ca[ba],v=N.parentRow,G=0;G<N.values.length;G++)da=Z(N.name,N.values[G],{type:N.type,parentRow:N.parentRow,isDeletable:N.isDeletable,index:G,defVal:N.defVal,countProperty:N.countProperty,size:N.size},0==G%2,N.flipBkg),v.parentNode.insertBefore(da,v.nextSibling),v=da;k.appendChild(ka);aa();return k};StyleFormatPanel.prototype.addStyles=function(k){if(null!=this.defaultColorSchemes){var v=this.editorUi,G=v.editor.graph,N=document.createElement("div");N.style.padding=
+"6px 20px 0 24px";k.appendChild(N);var O=document.createElement("div");O.className="geSwitcher";O.style.padding="4px 18px 6px 0px";for(var Q=[],S=0;S<this.defaultColorSchemes.length;S++){var V=document.createElement("div");V.className="geSwitcherDot";mxUtils.bind(this,function(ea){mxEvent.addListener(V,"click",mxUtils.bind(this,function(){W(ea)}))})(S);Q.push(V);O.appendChild(V)}var W=mxUtils.bind(this,function(ea){null!=Q[ea]&&(null!=this.format.currentScheme&&null!=Q[this.format.currentScheme]&&
+(Q[this.format.currentScheme].style.background="transparent"),this.format.currentScheme=ea,X(this.defaultColorSchemes[this.format.currentScheme]),Q[this.format.currentScheme].style.background="#84d7ff")}),X=mxUtils.bind(this,function(ea){var ca=mxUtils.clone(G.defaultVertexStyle);ca[mxConstants.STYLE_STROKECOLOR]=null!=ca[mxConstants.STYLE_STROKECOLOR]?ca[mxConstants.STYLE_STROKECOLOR]:"default";ca[mxConstants.STYLE_FILLCOLOR]=null!=ca[mxConstants.STYLE_FILLCOLOR]?ca[mxConstants.STYLE_FILLCOLOR]:
+"default";ca[mxConstants.STYLE_FONTCOLOR]=null!=ca[mxConstants.STYLE_FONTCOLOR]?ca[mxConstants.STYLE_FONTCOLOR]:"default";G.replaceDefaultColors(new mxCell,ca);var ka=mxUtils.bind(this,function(ha){var aa=mxUtils.button("",mxUtils.bind(this,function(da){G.getModel().beginUpdate();try{for(var za=v.getSelectionState().cells,va=0;va<za.length;va++){var oa=G.getModel().getStyle(za[va]);null!=ha?(mxEvent.isShiftDown(da)||(oa=""==ha.fill||null==ha.fill?mxUtils.setStyle(oa,mxConstants.STYLE_FILLCOLOR,null):
+mxUtils.setStyle(oa,mxConstants.STYLE_FILLCOLOR,ha.fill),oa=""==ha.gradient||null==ha.gradient?mxUtils.setStyle(oa,mxConstants.STYLE_GRADIENTCOLOR,null):mxUtils.setStyle(oa,mxConstants.STYLE_GRADIENTCOLOR,ha.gradient),mxEvent.isControlDown(da)||mxClient.IS_MAC&&mxEvent.isMetaDown(da)||!G.getModel().isVertex(za[va])||(oa=""==ha.font||null==ha.font?mxUtils.setStyle(oa,mxConstants.STYLE_FONTCOLOR,null):mxUtils.setStyle(oa,mxConstants.STYLE_FONTCOLOR,ha.font))),mxEvent.isAltDown(da)||(oa=""==ha.stroke||
+null==ha.fill?mxUtils.setStyle(oa,mxConstants.STYLE_STROKECOLOR,null):mxUtils.setStyle(oa,mxConstants.STYLE_STROKECOLOR,ha.stroke))):(oa=mxUtils.setStyle(oa,mxConstants.STYLE_FILLCOLOR,null),oa=mxUtils.setStyle(oa,mxConstants.STYLE_STROKECOLOR,null),oa=mxUtils.setStyle(oa,mxConstants.STYLE_GRADIENTCOLOR,null),G.getModel().isVertex(za[va])&&(oa=mxUtils.setStyle(oa,mxConstants.STYLE_FONTCOLOR,null)));G.getModel().setStyle(za[va],oa)}}finally{G.getModel().endUpdate()}}));aa.className="geStyleButton";
aa.style.width="36px";aa.style.height=10>=this.defaultColorSchemes.length?"24px":"30px";aa.style.margin="0px 6px 6px 0px";if(null!=ha){var ia="1px solid";null!=ha.border&&(ia=ha.border);if(null!=ha.gradient)aa.style.backgroundImage="linear-gradient("+mxUtils.getLightDarkColor(ha.fill).cssText+" 0px,"+mxUtils.getLightDarkColor(ha.gradient).cssText+" 100%)";else if(ha.fill==mxConstants.NONE)aa.style.background="url('"+Dialog.prototype.noColorImage+"')";else if(null==ha.fill||""==ha.fill)aa.style.backgroundColor=
-mxUtils.getLightDarkColor(mxUtils.getValue(ea,mxConstants.STYLE_FILLCOLOR,"#ffffff")).cssText;else{var fa=mxUtils.getLightDarkColor(ha.fill);aa.style.backgroundImage="linear-gradient(to right bottom, "+fa.cssText+" 50%, "+fa.light+" 50.3%)"}null==ha.stroke||ha.stroke==mxConstants.NONE?aa.style.border=ia+" transparent":""==ha.stroke?aa.style.border="1px solid "+mxUtils.getLightDarkColor(mxUtils.getValue(ea,mxConstants.STYLE_STROKECOLOR,"#000000")).cssText:(fa=mxUtils.getLightDarkColor(ha.stroke),aa.style.border=
-ia+" "+fa.cssText,aa.style.borderRightColor=fa.light,aa.style.borderBottomColor=aa.style.borderRightColor);null!=ha.title&&aa.setAttribute("title",ha.title)}else ia=mxUtils.getValue(ea,mxConstants.STYLE_FILLCOLOR,"#ffffff"),fa=mxUtils.getValue(ea,mxConstants.STYLE_STROKECOLOR,"#000000"),aa.style.backgroundColor=ia,aa.style.border="1px solid "+fa;aa.style.borderRadius="0";M.appendChild(aa);null!=ha&&null!=ha.gradient&&(ia=aa.cloneNode(!1),ia.style.backgroundImage="linear-gradient(light-dark(transparent, "+
-mxUtils.getLightDarkColor(ha.fill).light+") 0px, light-dark(transparent, "+mxUtils.getLightDarkColor(ha.gradient).light+") 100%)",ia.style.clipPath="polygon(0 100%, 100% 0, 100% 100%)",ia.style.backgroundColor="transparent",M.appendChild(ia),ia.style.marginLeft="-42px",mxEvent.addListener(ia,"click",function(){aa.click()}))});M.innerText="";if(null!=da)for(var ba=0;ba<da.length;ba++)0<ba&&0==mxUtils.mod(ba,4)&&mxUtils.br(M),ka(da[ba])});null==this.format.currentScheme?W(Math.min(R.length-1,Editor.isDarkMode()?
-1:"1"==urlParams.sketch?5:0)):W(this.format.currentScheme);T=10>=this.defaultColorSchemes.length?43:23;var Y=document.createElement("div");Y.className="geButton";Y.style.cssText="position:absolute;left:0px;bottom:"+T+"px;width:20px;background-image:url("+Editor.chevronLeftImage+");";mxEvent.addListener(Y,"click",mxUtils.bind(this,function(){W(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var Z=document.createElement("div");Z.className="geButton";Z.style.cssText="position:absolute;left:186px;bottom:"+
-T+"px;width:20px;background-image:url("+Editor.chevronRightImage+");";1<this.defaultColorSchemes.length&&(k.appendChild(Y),k.appendChild(Z));mxEvent.addListener(Z,"click",mxUtils.bind(this,function(){W(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));X(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&k.appendChild(P)}return k}}Graph.fontMapping={"https://fonts.googleapis.com/css?family=Architects+Daughter":'@font-face { font-family: "Architects Daughter"; src: url('+
+mxUtils.getLightDarkColor(mxUtils.getValue(ca,mxConstants.STYLE_FILLCOLOR,"#ffffff")).cssText;else{var fa=mxUtils.getLightDarkColor(ha.fill);aa.style.backgroundImage="linear-gradient(to right bottom, "+fa.cssText+" 50%, "+fa.light+" 50.3%)"}null==ha.stroke||ha.stroke==mxConstants.NONE?aa.style.border=ia+" transparent":""==ha.stroke?aa.style.border="1px solid "+mxUtils.getLightDarkColor(mxUtils.getValue(ca,mxConstants.STYLE_STROKECOLOR,"#000000")).cssText:(fa=mxUtils.getLightDarkColor(ha.stroke),aa.style.border=
+ia+" "+fa.cssText,aa.style.borderRightColor=fa.light,aa.style.borderBottomColor=aa.style.borderRightColor);null!=ha.title&&aa.setAttribute("title",ha.title)}else ia=mxUtils.getValue(ca,mxConstants.STYLE_FILLCOLOR,"#ffffff"),fa=mxUtils.getValue(ca,mxConstants.STYLE_STROKECOLOR,"#000000"),aa.style.backgroundColor=ia,aa.style.border="1px solid "+fa;aa.style.borderRadius="0";N.appendChild(aa);null!=ha&&null!=ha.gradient&&(ia=aa.cloneNode(!1),ia.style.backgroundImage="linear-gradient(light-dark(transparent, "+
+mxUtils.getLightDarkColor(ha.fill).light+") 0px, light-dark(transparent, "+mxUtils.getLightDarkColor(ha.gradient).light+") 100%)",ia.style.clipPath="polygon(0 100%, 100% 0, 100% 100%)",ia.style.backgroundColor="transparent",N.appendChild(ia),ia.style.marginLeft="-42px",mxEvent.addListener(ia,"click",function(){aa.click()}))});N.innerText="";if(null!=ea)for(var ba=0;ba<ea.length;ba++)0<ba&&0==mxUtils.mod(ba,4)&&mxUtils.br(N),ka(ea[ba])});null==this.format.currentScheme?W(Math.min(Q.length-1,Editor.isDarkMode()?
+1:"1"==urlParams.sketch?5:0)):W(this.format.currentScheme);S=10>=this.defaultColorSchemes.length?43:23;var Z=document.createElement("div");Z.className="geButton";Z.style.cssText="position:absolute;left:0px;bottom:"+S+"px;width:20px;background-image:url("+Editor.chevronLeftImage+");";mxEvent.addListener(Z,"click",mxUtils.bind(this,function(){W(mxUtils.mod(this.format.currentScheme-1,this.defaultColorSchemes.length))}));var Y=document.createElement("div");Y.className="geButton";Y.style.cssText="position:absolute;left:186px;bottom:"+
+S+"px;width:20px;background-image:url("+Editor.chevronRightImage+");";1<this.defaultColorSchemes.length&&(k.appendChild(Z),k.appendChild(Y));mxEvent.addListener(Y,"click",mxUtils.bind(this,function(){W(mxUtils.mod(this.format.currentScheme+1,this.defaultColorSchemes.length))}));X(this.defaultColorSchemes[this.format.currentScheme]);10>=this.defaultColorSchemes.length&&k.appendChild(O)}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,y){var F=Graph.fontMapping[y];null==F&&Graph.isCssFontUrl(y)?(k=document.createElement("link"),k.setAttribute("rel","stylesheet"),k.setAttribute("type","text/css"),k.setAttribute("charset","UTF-8"),k.setAttribute("href",Graph.rewriteGoogleFontUrl(y))):(null==F&&(F='@font-face {\nfont-family: "'+k+'";\nsrc: url("'+y+'");\n}'),k=document.createElement("style"),mxUtils.write(k,F));return k};Graph.addRecentCustomFont=function(k,y){};Graph.addFont=
-function(k,y,F){if(null!=k&&0<k.length&&null!=y&&0<y.length){var M=k.toLowerCase();if("helvetica"!=M&&"arial"!=k&&"sans-serif"!=M){var P=Graph.customFontElements[M];null!=P&&P.url!=y&&(P.elt.parentNode.removeChild(P.elt),P=null);null==P?(P=y,"http:"==y.substring(0,5)&&(P=PROXY_URL+"?url="+encodeURIComponent(y)),P={name:k,url:y,elt:Graph.createFontElement(k,P)},Graph.customFontElements[M]=P,y=document.getElementsByTagName("head")[0],null!=F&&("link"==P.elt.nodeName.toLowerCase()?(P.elt.onload=F,P.elt.onerror=
-F):F()),null!=y&&y.appendChild(P.elt)):null!=F&&F()}else null!=F&&F()}else null!=F&&F();return k};Graph.getFontUrl=function(k,y){k=Graph.customFontElements[k.toLowerCase()];null!=k&&(y=k.url);return y};Graph.processFontAttributes=function(k){k=k.getElementsByTagName("*");for(var y=0;y<k.length;y++){var F=k[y].getAttribute("data-font-src");if(null!=F){var M="FONT"==k[y].nodeName?k[y].getAttribute("face"):k[y].style.fontFamily;null!=M&&Graph.addFont(M,F)}}};Graph.processFontStyle=function(k){if(null!=
-k){var y=mxUtils.getValue(k,"fontSource",null);if(null!=y){var F=mxUtils.getValue(k,mxConstants.STYLE_FONTFAMILY,null);if(null!=F)try{Graph.addFont(F,decodeURIComponent(y))}catch(M){}}}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(P){y=P}l.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var y=null;mxEvent.addListener(this.container,"mouseenter",k);mxEvent.addListener(this.container,"mousemove",k);mxEvent.addListener(this.container,"mouseleave",
-function(P){y=null});this.isMouseInsertPoint=function(){return null!=y};var F=this.getInsertPoint;this.getInsertPoint=function(){return null!=y?this.getPointForEvent(y):F.apply(this,arguments)};var M=this.layoutManager.getLayout;this.layoutManager.getLayout=function(P){var R=this.graph.getCellStyle(P);if(null!=R&&"rack"==R.childLayout){var T=new mxStackLayout(this.graph,!1);T.gridSize=null!=R.rackUnitSize?parseFloat(R.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;
-T.marginLeft=R.marginLeft||0;T.marginRight=R.marginRight||0;T.marginTop=R.marginTop||0;T.marginBottom=R.marginBottom||0;T.allowGaps=R.allowGaps||0;T.horizontal="1"==mxUtils.getValue(R,"horizontalRack","0");T.resizeParent=!1;T.fill=!0;return T}return M.apply(this,arguments)};this.updateGlobalUrlVariables()};var n=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(k,y){return Graph.processFontStyle(n.apply(this,arguments))};var u=mxSvgCanvas2D.prototype.updateTextNodes;
-mxSvgCanvas2D.prototype.updateTextNodes=function(k,y,F,M,P,R,T,V,W,X,Y,Z){u.apply(this,arguments);Graph.processFontAttributes(Z)};var z=mxText.prototype.redraw;mxText.prototype.redraw=function(){z.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(k,y,F,M){function P(){for(var ba=V.getSelectionCells(),ha=[],aa=0;aa<ba.length;aa++)V.isCellVisible(ba[aa])&&ha.push(ba[aa]);V.setSelectionCells(ha)}function R(ba){V.setHiddenTags(ba?
-[]:W.slice());P();V.refresh()}function T(ba,ha){Y.innerText="";if(0<ba.length){var aa=document.createElement("table");aa.setAttribute("cellpadding","2");aa.style.boxSizing="border-box";aa.style.tableLayout="fixed";aa.style.width="100%";var ia=document.createElement("tbody");if(null!=ba&&0<ba.length)for(var fa=0;fa<ba.length;fa++)(function(ca){function Ba(){var ra=V.getCellsForTags([ca],null,null,!0);V.isEnabled()?V.setSelectionCells(ra):V.highlightCells(ra,null,null,70)}var la=0>mxUtils.indexOf(V.hiddenTags,
-ca),xa=document.createElement("tr"),Aa=document.createElement("td");Aa.style.align="center";Aa.style.width="16px";var ma=document.createElement("img");ma.setAttribute("src",la?Editor.visibleImage:Editor.hiddenImage);ma.setAttribute("title",mxResources.get(la?"hideIt":"show",[ca]));mxUtils.setOpacity(ma,la?75:25);ma.className="geAdaptiveAsset";ma.style.verticalAlign="middle";ma.style.cursor="pointer";ma.style.width="16px";if(y||Editor.isDarkMode())ma.style.filter="invert(100%)";Aa.appendChild(ma);
-mxEvent.addListener(ma,"click",function(ra){mxEvent.isShiftDown(ra)?R(0<=mxUtils.indexOf(V.hiddenTags,ca)):(V.toggleHiddenTag(ca),P(),V.refresh());mxEvent.consume(ra)});xa.appendChild(Aa);Aa=document.createElement("td");Aa.style.align="center";Aa.style.width="16px";ma=document.createElement("img");ma.setAttribute("src",Editor.selectImage);ma.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(ma,la?75:25);ma.className="geAdaptiveAsset";ma.style.verticalAlign="middle";ma.style.cursor=
-"pointer";ma.style.width="16px";if(y||Editor.isDarkMode())ma.style.filter="invert(100%)";mxEvent.addListener(ma,"click",function(ra){R(!0);Ba();mxEvent.consume(ra)});Aa.appendChild(ma);xa.appendChild(Aa);Aa=document.createElement("td");Aa.style.overflow="hidden";Aa.style.whiteSpace="nowrap";Aa.style.textOverflow="ellipsis";Aa.style.verticalAlign="middle";Aa.style.cursor="pointer";Aa.setAttribute("title",ca);a=document.createElement("a");mxUtils.write(a,ca);a.style.textOverflow="ellipsis";a.style.position=
-"relative";mxUtils.setOpacity(a,la?100:40);Aa.appendChild(a);mxEvent.addListener(Aa,"click",function(ra){if(mxEvent.isShiftDown(ra))R(!0),Ba();else if(la&&0<V.hiddenTags.length)R(!0);else{var oa=W.slice(),Ea=mxUtils.indexOf(oa,ca);oa.splice(Ea,1);V.setHiddenTags(oa);P();V.refresh()}mxEvent.consume(ra)});xa.appendChild(Aa);if(V.isEnabled()){Aa=document.createElement("td");Aa.style.verticalAlign="middle";Aa.style.textAlign="center";Aa.style.width="18px";if(null==ha){Aa.style.align="center";Aa.style.width=
-"16px";ma=document.createElement("img");ma.setAttribute("src",Editor.trashImage);ma.setAttribute("title",mxResources.get("removeIt",[ca]));mxUtils.setOpacity(ma,la?75:25);ma.className="geAdaptiveAsset";ma.style.verticalAlign="middle";ma.style.cursor="pointer";ma.style.width="16px";if(y||Editor.isDarkMode())ma.style.filter="invert(100%)";mxEvent.addListener(ma,"click",function(ra){var oa=mxUtils.indexOf(W,ca);0<=oa&&W.splice(oa,1);V.removeTagsForCells(V.model.getDescendants(V.model.getRoot()),[ca]);
-V.refresh();mxEvent.consume(ra)});Aa.appendChild(ma)}else{var ua=document.createElement("input");ua.setAttribute("type","checkbox");ua.style.margin="0px";ua.defaultChecked=null!=ha&&0<=mxUtils.indexOf(ha,ca);ua.checked=ua.defaultChecked;ua.style.background="transparent";ua.setAttribute("title",mxResources.get(ua.defaultChecked?"removeIt":"add",[ca]));mxEvent.addListener(ua,"change",function(ra){ua.checked?V.addTagsForCells(V.getSelectionCells(),[ca]):V.removeTagsForCells(V.getSelectionCells(),[ca]);
-mxEvent.consume(ra)});Aa.appendChild(ua)}xa.appendChild(Aa)}ia.appendChild(xa)})(ba[fa]);aa.appendChild(ia);Y.appendChild(aa)}}var V=this,W=V.hiddenTags.slice(),X=document.createElement("div");X.style.userSelect="none";X.style.overflow="hidden";X.style.padding="10px";X.style.height="100%";var Y=document.createElement("div");Y.style.position="absolute";Y.style.boxSizing="border-box";Y.style.userSelect="none";Y.style.overflow="auto";Y.style.padding="3px";Y.style.left="0px";Y.style.right="0px";Y.style.top=
-"0px";Y.style.bottom="0px";X.appendChild(Y);V.addListener(mxEvent.ROOT,function(){W=V.hiddenTags.slice()});var Z=mxUtils.bind(this,function(ba,ha){if(k()){ba=V.getAllTags();for(ha=0;ha<ba.length;ha++)0>mxUtils.indexOf(W,ba[ha])&&W.push(ba[ha]);W.sort();V.isSelectionEmpty()?T(W):T(W,V.getCommonTagsForCells(V.getSelectionCells()))}});V.selectionModel.addListener(mxEvent.CHANGE,Z);V.model.addListener(mxEvent.CHANGE,Z);V.addListener(mxEvent.REFRESH,Z);var da=document.createElement("div");da.className=
-"geToolbarContainer geDialogToolbar";da.style.position="absolute";da.style.display="flex";da.style.bottom="0px";da.style.left="0px";da.style.right="0px";da.style.height="32px";da.style.overflow="hidden";da.style.padding="3px 4px 4px 4px";da.style.borderWidth="1px 0px 0px 0px";da.style.borderStyle="solid";da.style.whiteSpace="nowrap";if(V.isEnabled()){Y.style.bottom="32px";var ea=document.createElement("a");ea.className="geButton";var ka=ea.cloneNode(!1);ka.style.backgroundImage="url("+Editor.visibleImage+
-")";ka.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(ka,"click",function(ba){V.setHiddenTags([]);mxEvent.isShiftDown(ba)||(W=V.hiddenTags.slice());P();V.refresh();mxEvent.consume(ba)});da.appendChild(ka);null!=F&&(ea=ea.cloneNode(!1),ea.style.backgroundImage="url("+Editor.plusImage+")",ea.setAttribute("title",mxResources.get("add")),mxEvent.addListener(ea,"click",function(ba){F(W,function(ha){W=ha;Z()});mxEvent.consume(ba)}),da.appendChild(ea));X.appendChild(da)}null!=M&&da.appendChild(M);
-return{div:X,refresh:Z}};Graph.prototype.getCustomFonts=function(){var k=this.extFonts;k=null!=k?k.slice():[];for(var y in Graph.customFontElements){var F=Graph.customFontElements[y];k.push({name:F.name,url:F.url})}return k};Graph.prototype.setFont=function(k,y){Graph.addFont(k,y);var F=Editor.guid();document.execCommand("fontname",!1,F);for(var M=this.cellEditor.textarea.getElementsByTagName("font"),P=!1,R=0;R<M.length;R++)M[R].getAttribute("face")==F&&(P=!0,M[R].setAttribute("face",k),null!=y?M[R].setAttribute("data-font-src",
-y):M[R].removeAttribute("data-font-src"));P||document.execCommand("fontname",!1,k)};var D=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return D.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 y in k)this.globalVars[y]=
-k[y]}catch(F){null!=window.console&&console.log("Error in vars URL parameter: "+F)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var C=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(k){var y=C.apply(this,arguments);null==y&&null!=this.globalVars&&(y=this.globalVars[k]);return y};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 A=Graph.prototype.getSvg;Graph.prototype.getSvg=function(k,y,F,M,P,R,T,V,W,X,Y,Z,da,ea,ka,ba){var ha=A.apply(this,arguments);if(null!=Z){var aa=ha.getAttribute("style");null==aa&&(aa="");Z="auto"==Z||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":Z;ha.setAttribute("style",aa+(" color-scheme: "+Z+";"))}var ia=this.getCustomFonts();
-if(Y&&0<ia.length){var fa=ha.ownerDocument;aa=null!=fa.createElementNS?fa.createElementNS(mxConstants.NS_SVG,"style"):fa.createElement("style");null!=fa.setAttributeNS?aa.setAttributeNS("type","text/css"):aa.setAttribute("type","text/css");for(var ca="",Ba="",la=0;la<ia.length;la++){var xa=ia[la].name,Aa=ia[la].url;Graph.isCssFontUrl(Aa)?ca+="@import url("+Graph.rewriteGoogleFontUrl(Aa)+");\n":Ba+='@font-face {\nfont-family: "'+xa+'";\nsrc: url("'+Aa+'");\n}\n'}aa.appendChild(fa.createTextNode(ca+
-Ba));ha.getElementsByTagName("defs")[0].appendChild(aa)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(ha);this.mathEnabled&&(document.body.appendChild(ha),Editor.MathJaxRender(ha),ha.parentNode.removeChild(ha),aa=ha.ownerDocument.getElementById("MJX-SVG-styles"),null!=aa&&ha.getElementsByTagName("defs")[0].appendChild(aa.cloneNode(!0)));return ha};var Q=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(k){Q.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 S=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){S.apply(this,arguments);this.enumerationState=0};var U=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(k){null!=k.shape&&this.redrawEnumerationState(k);return U.apply(this,arguments)};
-mxGraphView.prototype.createEnumerationValue=function(k){k=decodeURIComponent(mxUtils.getValue(k.style,"enumerateValue",""));""==k&&(k=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(k)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(k){var y="1"==mxUtils.getValue(k.style,"enumerate",0);y&&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)):y||null==k.secondLabel||(k.secondLabel.destroy(),k.secondLabel=null);y=k.secondLabel;if(null!=y){var F=k.view.scale,M=this.createEnumerationValue(k);k=this.graph.model.isVertex(k.cell)?new mxRectangle(k.x+k.width-4*F,k.y+4*F,0,0):mxRectangle.fromPoint(k.view.getPoint(k));y.bounds.equals(k)&&y.value==M&&y.scale==F||(y.bounds=k,y.value=M,y.scale=
-F,y.redraw())}};var O=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();O.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var p=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){p.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=
-function(k,y){"data:action/json,"==k.substring(0,17)&&(k=JSON.parse(k.substring(17)),null!=k.actions&&this.executeCustomActions(k.actions,null,y))};Graph.prototype.executeCustomActions=function(k,y,F){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 M=!1,P=0,R=0,T=mxUtils.bind(this,function(){M||(M=!0,this.model.beginUpdate())}),V=mxUtils.bind(this,function(){M&&(M=!1,this.model.endUpdate())}),W=mxUtils.bind(this,function(){0<P&&P--;0==P&&X()}),X=mxUtils.bind(this,function(){if(R<k.length){var Y=this.stoppingCustomActions,Z=k[R++],da=[];if(null!=Z.open)if(V(),this.isCustomLink(Z.open)){if(!this.customLinkClicked(Z.open,F))return}else this.openLink(Z.open);null==Z.wait||Y||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=
-this.pendingExecuteNextAction=null;W()}),P++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=Z.wait?parseInt(Z.wait):1E3),V());null!=Z.opacity&&null!=Z.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(Z.opacity,!0)),Z.opacity.value);null!=Z.fadeIn&&(P++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Z.fadeIn,!0)),0,1,W,Y?0:Z.fadeIn.delay));null!=Z.fadeOut&&(P++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Z.fadeOut,
-!0)),1,0,W,Y?0:Z.fadeOut.delay));null!=Z.wipeIn&&(da=da.concat(this.createWipeAnimations(this.getCellsForAction(Z.wipeIn,!0),!0)));null!=Z.wipeOut&&(da=da.concat(this.createWipeAnimations(this.getCellsForAction(Z.wipeOut,!0),!1)));null!=Z.toggle&&(T(),this.toggleCells(this.getCellsForAction(Z.toggle,!0)));if(null!=Z.show){T();var ea=this.getCellsForAction(Z.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(ea),1);this.setCellsVisible(ea,!0)}null!=Z.hide&&(T(),ea=this.getCellsForAction(Z.hide,
-!0),Graph.setOpacityForNodes(this.getNodesForCells(ea),0),this.setCellsVisible(ea,!1));null!=Z.toggleStyle&&null!=Z.toggleStyle.key&&(T(),this.toggleCellStyles(Z.toggleStyle.key,null!=Z.toggleStyle.defaultValue?Z.toggleStyle.defaultValue:"0",this.getCellsForAction(Z.toggleStyle,!0)));null!=Z.style&&null!=Z.style.key&&(T(),this.setCellStyles(Z.style.key,Z.style.value,this.getCellsForAction(Z.style,!0)));ea=[];null!=Z.select&&this.isEnabled()&&(ea=this.getCellsForAction(Z.select),this.setSelectionCells(ea));
-null!=Z.highlight&&(ea=this.getCellsForAction(Z.highlight),this.highlightCells(ea,Z.highlight.color,Z.highlight.duration,Z.highlight.opacity));null!=Z.scroll&&(ea=this.getCellsForAction(Z.scroll));null!=Z.viewbox&&this.fitWindow(Z.viewbox,Z.viewbox.border);0<ea.length&&this.scrollCellToVisible(ea[0]);null!=F&&null!=Z.explore&&Graph.exploreFromCell(this,F,Z.explore);if(null!=Z.tags){if(null!=Z.tags.toggle){var ka=Z.tags.toggle;0==ka.length&&(ka=this.getAllTags());for(ea=0;ea<ka.length;ea++)this.toggleHiddenTag(ka[ea])}ka=
-null;null!=Z.tags.hidden&&(null==ka&&(ka=[]),ka=ka.concat(Z.tags.hidden));if(null!=Z.tags.visible){null==ka&&(ka=[]);var ba=this.getAllTags();for(ea=0;ea<ba.length;ea++)0>mxUtils.indexOf(Z.tags.visible,ba[ea])&&0>mxUtils.indexOf(ka,ba[ea])&&ka.push(ba[ea])}null!=ka&&this.setHiddenTags(ka);this.refresh()}0<da.length&&(P++,this.executeAnimations(da,W,Y?1:Z.steps,Y?0:Z.delay));0==P?X():V()}else this.stoppingCustomActions=this.executingCustomActions=!1,V(),null!=y&&y()});X()}};Graph.prototype.doUpdateCustomLinksForCell=
-function(k,y){var F=this.getLinkForCell(y);null!=F&&"data:action/json,"==F.substring(0,17)&&this.setLinkForCell(y,this.updateCustomLink(k,F));if(this.isHtmlLabel(y)){var M=document.createElement("div");M.innerHTML=Graph.sanitizeHtml(this.getLabel(y));for(var P=M.getElementsByTagName("a"),R=!1,T=0;T<P.length;T++)F=P[T].getAttribute("href"),null!=F&&"data:action/json,"==F.substring(0,17)&&(P[T].setAttribute("href",this.updateCustomLink(k,F)),R=!0);R&&this.labelChanged(y,M.innerHTML)}};Graph.prototype.updateCustomLink=
-function(k,y){if("data:action/json,"==y.substring(0,17))try{var F=JSON.parse(y.substring(17));null!=F.actions&&(this.updateCustomLinkActions(k,F.actions),y="data:action/json,"+JSON.stringify(F))}catch(M){}return y};Graph.prototype.updateCustomLinkActions=function(k,y){for(var F=0;F<y.length;F++){var M=y[F],P;for(P in M)this.updateCustomLinkAction(k,M[P],"cells"),this.updateCustomLinkAction(k,M[P],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(k,y,F){if(null!=y&&null!=y[F]){for(var M=
-[],P=0;P<y[F].length;P++)if("*"==y[F][P])M.push(y[F][P]);else{var R=k[y[F][P]];null!=R?""!=R&&M.push(R):M.push(y[F][P])}y[F]=M}};Graph.prototype.getCellsForAction=function(k,y){y=this.getCellsById(k.cells).concat(this.getCellsForTags(k.tags,null,y));if(null!=k.excludeCells){for(var F=[],M=0;M<y.length;M++)0>k.excludeCells.indexOf(y[M].id)&&F.push(y[M]);y=F}return y};Graph.prototype.getCellsById=function(k){var y=[];if(null!=k)for(var F=0;F<k.length;F++)if("*"==k[F]){var M=this.model.getRoot();y=y.concat(this.model.filterDescendants(function(R){return R!=
-M},M))}else{var P=this.model.getCell(k[F]);null!=P&&y.push(P)}return y};var q=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(k){return q.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 y=mxUtils.indexOf(this.hiddenTags,k);0>y?this.hiddenTags.push(k):0<=y&&this.hiddenTags.splice(y,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 y=0;y<k.length;y++)if(0>mxUtils.indexOf(this.hiddenTags,k[y]))return!1;return!0};Graph.prototype.getCellsForTags=function(k,y,F,M){var P=[];if(null!=k){y=null!=y?y:this.model.getDescendants(this.model.getRoot());for(var R=0,T={},V=0;V<k.length;V++)0<k[V].length&&(T[k[V]]=!0,R++);for(V=0;V<y.length;V++)if(F&&this.model.getParent(y[V])==
-this.model.root||this.model.isVertex(y[V])||this.model.isEdge(y[V])){var W=this.getTagsForCell(y[V]),X=!1;if(0<W.length&&(W=W.split(" "),W.length>=k.length)){for(var Y=X=0;Y<W.length&&X<R;Y++)null!=T[W[Y]]&&X++;X=X==R}X&&(1!=M||this.isCellVisible(y[V]))&&P.push(y[V])}}return P};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(k){for(var y=null,F=[],M=0;M<k.length;M++){var P=this.getTagsForCell(k[M]);
-F=[];if(0<P.length){P=P.split(" ");for(var R={},T=0;T<P.length;T++)if(null==y||null!=y[P[T]])R[P[T]]=!0,F.push(P[T]);y=R}else return[]}return F};Graph.prototype.getTagsForCells=function(k){for(var y=[],F={},M=0;M<k.length;M++){var P=this.getTagsForCell(k[M]);if(0<P.length){P=P.split(" ");for(var R=0;R<P.length;R++)null==F[P[R]]&&(F[P[R]]=!0,y.push(P[R]))}}return y};Graph.prototype.getTagsForCell=function(k){return this.getAttributeForCell(k,"tags","")};Graph.prototype.addTagsForCells=function(k,y){if(0<
-k.length&&0<y.length){this.model.beginUpdate();try{for(var F=0;F<k.length;F++){for(var M=this.getTagsForCell(k[F]),P=M.split(" "),R=!1,T=0;T<y.length;T++){var V=mxUtils.trim(y[T]);""!=V&&0>mxUtils.indexOf(P,V)&&(M=0<M.length?M+" "+V:V,R=!0)}R&&this.setAttributeForCell(k[F],"tags",M)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(k,y){if(0<k.length&&0<y.length){this.model.beginUpdate();try{for(var F=0;F<k.length;F++){var M=this.getTagsForCell(k[F]);if(0<M.length){for(var P=
-M.split(" "),R=!1,T=0;T<y.length;T++){var V=mxUtils.indexOf(P,y[T]);0<=V&&(P.splice(V,1),R=!0)}R&&this.setAttributeForCell(k[F],"tags",P.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(k){this.model.beginUpdate();try{for(var y=0;y<k.length;y++)this.model.setVisible(k[y],!this.model.isVisible(k[y]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(k,y){this.model.beginUpdate();try{for(var F=0;F<k.length;F++)this.model.setVisible(k[F],y)}finally{this.model.endUpdate()}};
-Graph.prototype.highlightCells=function(k,y,F,M){for(var P=0;P<k.length;P++)this.highlightCell(k[P],y,F,M)};Graph.prototype.highlightCell=function(k,y,F,M,P){y=null!=y?y:mxConstants.DEFAULT_VALID_COLOR;F=null!=F?F:1E3;k=this.view.getState(k);var R=null;null!=k&&(P=null!=P?P:4,P=Math.max(P+1,mxUtils.getValue(k.style,mxConstants.STYLE_STROKEWIDTH,1)+P),R=new mxCellHighlight(this,y,P,!1),null!=M&&(R.opacity=M),R.highlight(k),window.setTimeout(function(){null!=R.shape&&(mxUtils.setPrefixedStyle(R.shape.node.style,
-"transition","all 1200ms ease-in-out"),R.shape.node.style.opacity=0);window.setTimeout(function(){R.destroy()},1200)},F));return R};Graph.prototype.addSvgShadow=function(k,y,F,M){F=null!=F?F:!1;M=null!=M?M:!0;var P=k.ownerDocument,R=null!=P.createElementNS?P.createElementNS(mxConstants.NS_SVG,"filter"):P.createElement("filter");R.setAttribute("id",this.shadowId);var T=null!=P.createElementNS?P.createElementNS(mxConstants.NS_SVG,"feGaussianBlur"):P.createElement("feGaussianBlur");T.setAttribute("in",
-"SourceAlpha");T.setAttribute("stdDeviation",this.svgShadowBlur);T.setAttribute("result","blur");R.appendChild(T);T=null!=P.createElementNS?P.createElementNS(mxConstants.NS_SVG,"feOffset"):P.createElement("feOffset");T.setAttribute("in","blur");T.setAttribute("dx",this.svgShadowSize);T.setAttribute("dy",this.svgShadowSize);T.setAttribute("result","offsetBlur");R.appendChild(T);T=null!=P.createElementNS?P.createElementNS(mxConstants.NS_SVG,"feFlood"):P.createElement("feFlood");T.setAttribute("flood-color",
-this.svgShadowColor);T.setAttribute("flood-opacity",this.svgShadowOpacity);T.setAttribute("result","offsetColor");R.appendChild(T);T=null!=P.createElementNS?P.createElementNS(mxConstants.NS_SVG,"feComposite"):P.createElement("feComposite");T.setAttribute("in","offsetColor");T.setAttribute("in2","offsetBlur");T.setAttribute("operator","in");T.setAttribute("result","offsetBlur");R.appendChild(T);T=null!=P.createElementNS?P.createElementNS(mxConstants.NS_SVG,"feBlend"):P.createElement("feBlend");T.setAttribute("in",
-"SourceGraphic");T.setAttribute("in2","offsetBlur");R.appendChild(T);T=k.getElementsByTagName("defs");0==T.length?(P=null!=P.createElementNS?P.createElementNS(mxConstants.NS_SVG,"defs"):P.createElement("defs"),null!=k.firstChild?k.insertBefore(P,k.firstChild):k.appendChild(P)):P=T[0];P.appendChild(R);F||(y=null!=y?y:k.getElementsByTagName("g")[0],null!=y&&(y.setAttribute("filter","url(#"+this.shadowId+")"),!isNaN(parseInt(k.getAttribute("width")))&&M&&(k.setAttribute("width",parseInt(k.getAttribute("width"))+
-6),k.setAttribute("height",parseInt(k.getAttribute("height"))+6),y=k.getAttribute("viewBox"),null!=y&&0<y.length&&(y=y.split(" "),3<y.length&&(w=parseFloat(y[2])+6,h=parseFloat(y[3])+6,k.setAttribute("viewBox",y[0]+" "+y[1]+" "+w+" "+h))))));return R};Graph.prototype.setShadowVisible=function(k,y){mxClient.IS_SVG&&!mxClient.IS_SF&&(y=null!=y?y:!0,(this.shadowVisible=k)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),y&&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),y=0;do var F=this.model.getChildAt(this.model.root,y);while(y++<k&&"1"==mxUtils.getValue(this.getCellStyle(F),"locked","0"));null!=F&&this.setDefaultParent(F)}};mxStencilRegistry.libraries.mockup=[SHAPES_PATH+
+":wght@400;500");return k};Graph.createFontElement=function(k,v){var G=Graph.fontMapping[v];null==G&&Graph.isCssFontUrl(v)?(k=document.createElement("link"),k.setAttribute("rel","stylesheet"),k.setAttribute("type","text/css"),k.setAttribute("charset","UTF-8"),k.setAttribute("href",Graph.rewriteGoogleFontUrl(v))):(null==G&&(G='@font-face {\nfont-family: "'+k+'";\nsrc: url("'+v+'");\n}'),k=document.createElement("style"),mxUtils.write(k,G));return k};Graph.addRecentCustomFont=function(k,v){};Graph.addFont=
+function(k,v,G){if(null!=k&&0<k.length&&null!=v&&0<v.length){var N=k.toLowerCase();if("helvetica"!=N&&"arial"!=k&&"sans-serif"!=N){var O=Graph.customFontElements[N];null!=O&&O.url!=v&&(O.elt.parentNode.removeChild(O.elt),O=null);null==O?(O=v,"http:"==v.substring(0,5)&&(O=PROXY_URL+"?url="+encodeURIComponent(v)),O={name:k,url:v,elt:Graph.createFontElement(k,O)},Graph.customFontElements[N]=O,v=document.getElementsByTagName("head")[0],null!=G&&("link"==O.elt.nodeName.toLowerCase()?(O.elt.onload=G,O.elt.onerror=
+G):G()),null!=v&&v.appendChild(O.elt)):null!=G&&G()}else null!=G&&G()}else null!=G&&G();return k};Graph.getFontUrl=function(k,v){k=Graph.customFontElements[k.toLowerCase()];null!=k&&(v=k.url);return v};Graph.processFontAttributes=function(k){k=k.getElementsByTagName("*");for(var v=0;v<k.length;v++){var G=k[v].getAttribute("data-font-src");if(null!=G){var N="FONT"==k[v].nodeName?k[v].getAttribute("face"):k[v].style.fontFamily;null!=N&&Graph.addFont(N,G)}}};Graph.processFontStyle=function(k){if(null!=
+k){var v=mxUtils.getValue(k,"fontSource",null);if(null!=v){var G=mxUtils.getValue(k,mxConstants.STYLE_FONTFAMILY,null);if(null!=G)try{Graph.addFont(G,decodeURIComponent(v))}catch(N){}}}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){v=O}l.apply(this,arguments);this.hiddenTags=[];window.mxFreehand&&(this.freehand=new mxFreehand(this));var v=null;mxEvent.addListener(this.container,"mouseenter",k);mxEvent.addListener(this.container,"mousemove",k);mxEvent.addListener(this.container,"mouseleave",
+function(O){v=null});this.isMouseInsertPoint=function(){return null!=v};var G=this.getInsertPoint;this.getInsertPoint=function(){return null!=v?this.getPointForEvent(v):G.apply(this,arguments)};var N=this.layoutManager.getLayout;this.layoutManager.getLayout=function(O){var Q=this.graph.getCellStyle(O);if(null!=Q&&"rack"==Q.childLayout){var S=new mxStackLayout(this.graph,!1);S.gridSize=null!=Q.rackUnitSize?parseFloat(Q.rackUnitSize):"undefined"!==typeof mxRackContainer?mxRackContainer.unitSize:20;
+S.marginLeft=Q.marginLeft||0;S.marginRight=Q.marginRight||0;S.marginTop=Q.marginTop||0;S.marginBottom=Q.marginBottom||0;S.allowGaps=Q.allowGaps||0;S.horizontal="1"==mxUtils.getValue(Q,"horizontalRack","0");S.resizeParent=!1;S.fill=!0;return S}return N.apply(this,arguments)};this.updateGlobalUrlVariables()};var p=Graph.prototype.postProcessCellStyle;Graph.prototype.postProcessCellStyle=function(k,v){return Graph.processFontStyle(p.apply(this,arguments))};var u=mxSvgCanvas2D.prototype.updateTextNodes;
+mxSvgCanvas2D.prototype.updateTextNodes=function(k,v,G,N,O,Q,S,V,W,X,Z,Y){u.apply(this,arguments);Graph.processFontAttributes(Y)};var z=mxText.prototype.redraw;mxText.prototype.redraw=function(){z.apply(this,arguments);null!=this.node&&"DIV"==this.node.nodeName&&Graph.processFontAttributes(this.node)};Graph.prototype.createTagsDialog=function(k,v,G,N){function O(){for(var ba=V.getSelectionCells(),ha=[],aa=0;aa<ba.length;aa++)V.isCellVisible(ba[aa])&&ha.push(ba[aa]);V.setSelectionCells(ha)}function Q(ba){V.setHiddenTags(ba?
+[]:W.slice());O();V.refresh()}function S(ba,ha){Z.innerText="";if(0<ba.length){var aa=document.createElement("table");aa.setAttribute("cellpadding","2");aa.style.boxSizing="border-box";aa.style.tableLayout="fixed";aa.style.width="100%";var ia=document.createElement("tbody");if(null!=ba&&0<ba.length)for(var fa=0;fa<ba.length;fa++)(function(da){function za(){var qa=V.getCellsForTags([da],null,null,!0);V.isEnabled()?V.setSelectionCells(qa):V.highlightCells(qa,null,null,70)}var va=0>mxUtils.indexOf(V.hiddenTags,
+da),oa=document.createElement("tr"),Ba=document.createElement("td");Ba.style.align="center";Ba.style.width="16px";var ma=document.createElement("img");ma.setAttribute("src",va?Editor.visibleImage:Editor.hiddenImage);ma.setAttribute("title",mxResources.get(va?"hideIt":"show",[da]));mxUtils.setOpacity(ma,va?75:25);ma.className="geAdaptiveAsset";ma.style.verticalAlign="middle";ma.style.cursor="pointer";ma.style.width="16px";if(v||Editor.isDarkMode())ma.style.filter="invert(100%)";Ba.appendChild(ma);
+mxEvent.addListener(ma,"click",function(qa){mxEvent.isShiftDown(qa)?Q(0<=mxUtils.indexOf(V.hiddenTags,da)):(V.toggleHiddenTag(da),O(),V.refresh());mxEvent.consume(qa)});oa.appendChild(Ba);Ba=document.createElement("td");Ba.style.align="center";Ba.style.width="16px";ma=document.createElement("img");ma.setAttribute("src",Editor.selectImage);ma.setAttribute("title",mxResources.get("select"));mxUtils.setOpacity(ma,va?75:25);ma.className="geAdaptiveAsset";ma.style.verticalAlign="middle";ma.style.cursor=
+"pointer";ma.style.width="16px";if(v||Editor.isDarkMode())ma.style.filter="invert(100%)";mxEvent.addListener(ma,"click",function(qa){Q(!0);za();mxEvent.consume(qa)});Ba.appendChild(ma);oa.appendChild(Ba);Ba=document.createElement("td");Ba.style.overflow="hidden";Ba.style.whiteSpace="nowrap";Ba.style.textOverflow="ellipsis";Ba.style.verticalAlign="middle";Ba.style.cursor="pointer";Ba.setAttribute("title",da);a=document.createElement("a");mxUtils.write(a,da);a.style.textOverflow="ellipsis";a.style.position=
+"relative";mxUtils.setOpacity(a,va?100:40);Ba.appendChild(a);mxEvent.addListener(Ba,"click",function(qa){if(mxEvent.isShiftDown(qa))Q(!0),za();else if(va&&0<V.hiddenTags.length)Q(!0);else{var la=W.slice(),Fa=mxUtils.indexOf(la,da);la.splice(Fa,1);V.setHiddenTags(la);O();V.refresh()}mxEvent.consume(qa)});oa.appendChild(Ba);if(V.isEnabled()){Ba=document.createElement("td");Ba.style.verticalAlign="middle";Ba.style.textAlign="center";Ba.style.width="18px";if(null==ha){Ba.style.align="center";Ba.style.width=
+"16px";ma=document.createElement("img");ma.setAttribute("src",Editor.trashImage);ma.setAttribute("title",mxResources.get("removeIt",[da]));mxUtils.setOpacity(ma,va?75:25);ma.className="geAdaptiveAsset";ma.style.verticalAlign="middle";ma.style.cursor="pointer";ma.style.width="16px";if(v||Editor.isDarkMode())ma.style.filter="invert(100%)";mxEvent.addListener(ma,"click",function(qa){var la=mxUtils.indexOf(W,da);0<=la&&W.splice(la,1);V.removeTagsForCells(V.model.getDescendants(V.model.getRoot()),[da]);
+V.refresh();mxEvent.consume(qa)});Ba.appendChild(ma)}else{var ta=document.createElement("input");ta.setAttribute("type","checkbox");ta.style.margin="0px";ta.defaultChecked=null!=ha&&0<=mxUtils.indexOf(ha,da);ta.checked=ta.defaultChecked;ta.style.background="transparent";ta.setAttribute("title",mxResources.get(ta.defaultChecked?"removeIt":"add",[da]));mxEvent.addListener(ta,"change",function(qa){ta.checked?V.addTagsForCells(V.getSelectionCells(),[da]):V.removeTagsForCells(V.getSelectionCells(),[da]);
+mxEvent.consume(qa)});Ba.appendChild(ta)}oa.appendChild(Ba)}ia.appendChild(oa)})(ba[fa]);aa.appendChild(ia);Z.appendChild(aa)}}var V=this,W=V.hiddenTags.slice(),X=document.createElement("div");X.style.userSelect="none";X.style.overflow="hidden";X.style.padding="10px";X.style.height="100%";var Z=document.createElement("div");Z.style.position="absolute";Z.style.boxSizing="border-box";Z.style.userSelect="none";Z.style.overflow="auto";Z.style.padding="3px";Z.style.left="0px";Z.style.right="0px";Z.style.top=
+"0px";Z.style.bottom="0px";X.appendChild(Z);V.addListener(mxEvent.ROOT,function(){W=V.hiddenTags.slice()});var Y=mxUtils.bind(this,function(ba,ha){if(k()){ba=V.getAllTags();for(ha=0;ha<ba.length;ha++)0>mxUtils.indexOf(W,ba[ha])&&W.push(ba[ha]);W.sort();V.isSelectionEmpty()?S(W):S(W,V.getCommonTagsForCells(V.getSelectionCells()))}});V.selectionModel.addListener(mxEvent.CHANGE,Y);V.model.addListener(mxEvent.CHANGE,Y);V.addListener(mxEvent.REFRESH,Y);var ea=document.createElement("div");ea.className=
+"geToolbarContainer geDialogToolbar";ea.style.position="absolute";ea.style.display="flex";ea.style.bottom="0px";ea.style.left="0px";ea.style.right="0px";ea.style.height="32px";ea.style.overflow="hidden";ea.style.padding="3px 4px 4px 4px";ea.style.borderWidth="1px 0px 0px 0px";ea.style.borderStyle="solid";ea.style.whiteSpace="nowrap";if(V.isEnabled()){Z.style.bottom="32px";var ca=document.createElement("a");ca.className="geButton";var ka=ca.cloneNode(!1);ka.style.backgroundImage="url("+Editor.visibleImage+
+")";ka.setAttribute("title",mxResources.get("reset"));mxEvent.addListener(ka,"click",function(ba){V.setHiddenTags([]);mxEvent.isShiftDown(ba)||(W=V.hiddenTags.slice());O();V.refresh();mxEvent.consume(ba)});ea.appendChild(ka);null!=G&&(ca=ca.cloneNode(!1),ca.style.backgroundImage="url("+Editor.plusImage+")",ca.setAttribute("title",mxResources.get("add")),mxEvent.addListener(ca,"click",function(ba){G(W,function(ha){W=ha;Y()});mxEvent.consume(ba)}),ea.appendChild(ca));X.appendChild(ea)}null!=N&&ea.appendChild(N);
+return{div:X,refresh:Y}};Graph.prototype.getCustomFonts=function(){var k=this.extFonts;k=null!=k?k.slice():[];for(var v in Graph.customFontElements){var G=Graph.customFontElements[v];k.push({name:G.name,url:G.url})}return k};Graph.prototype.setFont=function(k,v){Graph.addFont(k,v);var G=Editor.guid();document.execCommand("fontname",!1,G);for(var N=this.cellEditor.textarea.getElementsByTagName("font"),O=!1,Q=0;Q<N.length;Q++)N[Q].getAttribute("face")==G&&(O=!0,N[Q].setAttribute("face",k),null!=v?N[Q].setAttribute("data-font-src",
+v):N[Q].removeAttribute("data-font-src"));O||document.execCommand("fontname",!1,k)};var E=Graph.prototype.isFastZoomEnabled;Graph.prototype.isFastZoomEnabled=function(){return E.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 v in k)this.globalVars[v]=
+k[v]}catch(G){null!=window.console&&console.log("Error in vars URL parameter: "+G)}};Graph.prototype.getExportVariables=function(){return null!=this.globalVars?mxUtils.clone(this.globalVars):{}};var D=Graph.prototype.getGlobalVariable;Graph.prototype.getGlobalVariable=function(k){var v=D.apply(this,arguments);null==v&&null!=this.globalVars&&(v=this.globalVars[k]);return v};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 A=Graph.prototype.getSvg;Graph.prototype.getSvg=function(k,v,G,N,O,Q,S,V,W,X,Z,Y,ea,ca,ka,ba){var ha=A.apply(this,arguments);if(null!=Y){var aa=ha.getAttribute("style");null==aa&&(aa="");Y="auto"==Y||"none"==this.getAdaptiveColors()?"none"==this.getAdaptiveColors()?"light":"light dark":Y;ha.setAttribute("style",aa+(" color-scheme: "+Y+";"))}var ia=this.getCustomFonts();
+if(Z&&0<ia.length){var fa=ha.ownerDocument;aa=null!=fa.createElementNS?fa.createElementNS(mxConstants.NS_SVG,"style"):fa.createElement("style");null!=fa.setAttributeNS?aa.setAttributeNS("type","text/css"):aa.setAttribute("type","text/css");for(var da="",za="",va=0;va<ia.length;va++){var oa=ia[va].name,Ba=ia[va].url;Graph.isCssFontUrl(Ba)?da+="@import url("+Graph.rewriteGoogleFontUrl(Ba)+");\n":za+='@font-face {\nfont-family: "'+oa+'";\nsrc: url("'+Ba+'");\n}\n'}aa.appendChild(fa.createTextNode(da+
+za));ha.getElementsByTagName("defs")[0].appendChild(aa)}Editor.replaceSvgDataUris&&null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&EditorUi.embedSvgImages(ha);this.mathEnabled&&(document.body.appendChild(ha),Editor.MathJaxRender(ha),ha.parentNode.removeChild(ha),aa=ha.ownerDocument.getElementById("MJX-SVG-styles"),null!=aa&&ha.getElementsByTagName("defs")[0].appendChild(aa.cloneNode(!0)));return ha};var P=mxCellRenderer.prototype.destroy;mxCellRenderer.prototype.destroy=function(k){P.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 R=mxGraphView.prototype.resetValidationState;mxGraphView.prototype.resetValidationState=function(){R.apply(this,arguments);this.enumerationState=0};var T=mxGraphView.prototype.stateValidated;mxGraphView.prototype.stateValidated=function(k){null!=k.shape&&this.redrawEnumerationState(k);return T.apply(this,arguments)};
+mxGraphView.prototype.createEnumerationValue=function(k){k=decodeURIComponent(mxUtils.getValue(k.style,"enumerateValue",""));""==k&&(k=++this.enumerationState);return'<div style="padding:2px;border:1px solid gray;background:yellow;border-radius:2px;">'+mxUtils.htmlEntities(k)+"</div>"};mxGraphView.prototype.redrawEnumerationState=function(k){var v="1"==mxUtils.getValue(k.style,"enumerate",0);v&&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)):v||null==k.secondLabel||(k.secondLabel.destroy(),k.secondLabel=null);v=k.secondLabel;if(null!=v){var G=k.view.scale,N=this.createEnumerationValue(k);k=this.graph.model.isVertex(k.cell)?new mxRectangle(k.x+k.width-4*G,k.y+4*G,0,0):mxRectangle.fromPoint(k.view.getPoint(k));v.bounds.equals(k)&&v.value==N&&v.scale==G||(v.bounds=k,v.value=N,v.scale=
+G,v.redraw())}};var L=Graph.prototype.refresh;Graph.prototype.refresh=function(){this.refreshBackgroundImage();L.apply(this,arguments)};Graph.prototype.refreshBackgroundImage=function(){null!=this.backgroundImage&&null!=this.backgroundImage.originalSrc&&(this.setBackgroundImage(this.backgroundImage),this.view.validateBackgroundImage())};var U=Graph.prototype.loadStylesheet;Graph.prototype.loadStylesheet=function(){U.apply(this,arguments);this.currentStyle="default-style2"};Graph.prototype.handleCustomLink=
+function(k,v){"data:action/json,"==k.substring(0,17)&&(k=JSON.parse(k.substring(17)),null!=k.actions&&this.executeCustomActions(k.actions,null,v))};Graph.prototype.executeCustomActions=function(k,v,G){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 N=!1,O=0,Q=0,S=mxUtils.bind(this,function(){N||(N=!0,this.model.beginUpdate())}),V=mxUtils.bind(this,function(){N&&(N=!1,this.model.endUpdate())}),W=mxUtils.bind(this,function(){0<O&&O--;0==O&&X()}),X=mxUtils.bind(this,function(){if(Q<k.length){var Z=this.stoppingCustomActions,Y=k[Q++],ea=[];if(null!=Y.open)if(V(),this.isCustomLink(Y.open)){if(!this.customLinkClicked(Y.open,G))return}else this.openLink(Y.open);null==Y.wait||Z||(this.pendingExecuteNextAction=mxUtils.bind(this,function(){this.pendingWaitThread=
+this.pendingExecuteNextAction=null;W()}),O++,this.pendingWaitThread=window.setTimeout(this.pendingExecuteNextAction,""!=Y.wait?parseInt(Y.wait):1E3),V());null!=Y.opacity&&null!=Y.opacity.value&&Graph.setOpacityForNodes(this.getNodesForCells(this.getCellsForAction(Y.opacity,!0)),Y.opacity.value);null!=Y.fadeIn&&(O++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Y.fadeIn,!0)),0,1,W,Z?0:Y.fadeIn.delay));null!=Y.fadeOut&&(O++,Graph.fadeNodes(this.getNodesForCells(this.getCellsForAction(Y.fadeOut,
+!0)),1,0,W,Z?0:Y.fadeOut.delay));null!=Y.wipeIn&&(ea=ea.concat(this.createWipeAnimations(this.getCellsForAction(Y.wipeIn,!0),!0)));null!=Y.wipeOut&&(ea=ea.concat(this.createWipeAnimations(this.getCellsForAction(Y.wipeOut,!0),!1)));null!=Y.toggle&&(S(),this.toggleCells(this.getCellsForAction(Y.toggle,!0)));if(null!=Y.show){S();var ca=this.getCellsForAction(Y.show,!0);Graph.setOpacityForNodes(this.getNodesForCells(ca),1);this.setCellsVisible(ca,!0)}null!=Y.hide&&(S(),ca=this.getCellsForAction(Y.hide,
+!0),Graph.setOpacityForNodes(this.getNodesForCells(ca),0),this.setCellsVisible(ca,!1));null!=Y.toggleStyle&&null!=Y.toggleStyle.key&&(S(),this.toggleCellStyles(Y.toggleStyle.key,null!=Y.toggleStyle.defaultValue?Y.toggleStyle.defaultValue:"0",this.getCellsForAction(Y.toggleStyle,!0)));null!=Y.style&&null!=Y.style.key&&(S(),this.setCellStyles(Y.style.key,Y.style.value,this.getCellsForAction(Y.style,!0)));ca=[];null!=Y.select&&this.isEnabled()&&(ca=this.getCellsForAction(Y.select),this.setSelectionCells(ca));
+null!=Y.highlight&&(ca=this.getCellsForAction(Y.highlight),this.highlightCells(ca,Y.highlight.color,Y.highlight.duration,Y.highlight.opacity));null!=Y.scroll&&(ca=this.getCellsForAction(Y.scroll));null!=Y.viewbox&&this.fitWindow(Y.viewbox,Y.viewbox.border);0<ca.length&&this.scrollCellToVisible(ca[0]);null!=G&&null!=Y.explore&&Graph.exploreFromCell(this,G,Y.explore);if(null!=Y.tags){if(null!=Y.tags.toggle){var ka=Y.tags.toggle;0==ka.length&&(ka=this.getAllTags());for(ca=0;ca<ka.length;ca++)this.toggleHiddenTag(ka[ca])}ka=
+null;null!=Y.tags.hidden&&(null==ka&&(ka=[]),ka=ka.concat(Y.tags.hidden));if(null!=Y.tags.visible){null==ka&&(ka=[]);var ba=this.getAllTags();for(ca=0;ca<ba.length;ca++)0>mxUtils.indexOf(Y.tags.visible,ba[ca])&&0>mxUtils.indexOf(ka,ba[ca])&&ka.push(ba[ca])}null!=ka&&this.setHiddenTags(ka);this.refresh()}0<ea.length&&(O++,this.executeAnimations(ea,W,Z?1:Y.steps,Z?0:Y.delay));0==O?X():V()}else this.stoppingCustomActions=this.executingCustomActions=!1,V(),null!=v&&v()});X()}};Graph.prototype.doUpdateCustomLinksForCell=
+function(k,v){var G=this.getLinkForCell(v);null!=G&&"data:action/json,"==G.substring(0,17)&&this.setLinkForCell(v,this.updateCustomLink(k,G));if(this.isHtmlLabel(v)){var N=document.createElement("div");N.innerHTML=Graph.sanitizeHtml(this.getLabel(v));for(var O=N.getElementsByTagName("a"),Q=!1,S=0;S<O.length;S++)G=O[S].getAttribute("href"),null!=G&&"data:action/json,"==G.substring(0,17)&&(O[S].setAttribute("href",this.updateCustomLink(k,G)),Q=!0);Q&&this.labelChanged(v,N.innerHTML)}};Graph.prototype.updateCustomLink=
+function(k,v){if("data:action/json,"==v.substring(0,17))try{var G=JSON.parse(v.substring(17));null!=G.actions&&(this.updateCustomLinkActions(k,G.actions),v="data:action/json,"+JSON.stringify(G))}catch(N){}return v};Graph.prototype.updateCustomLinkActions=function(k,v){for(var G=0;G<v.length;G++){var N=v[G],O;for(O in N)this.updateCustomLinkAction(k,N[O],"cells"),this.updateCustomLinkAction(k,N[O],"excludeCells")}};Graph.prototype.updateCustomLinkAction=function(k,v,G){if(null!=v&&null!=v[G]){for(var N=
+[],O=0;O<v[G].length;O++)if("*"==v[G][O])N.push(v[G][O]);else{var Q=k[v[G][O]];null!=Q?""!=Q&&N.push(Q):N.push(v[G][O])}v[G]=N}};Graph.prototype.getCellsForAction=function(k,v){v=this.getCellsById(k.cells).concat(this.getCellsForTags(k.tags,null,v));if(null!=k.excludeCells){for(var G=[],N=0;N<v.length;N++)0>k.excludeCells.indexOf(v[N].id)&&G.push(v[N]);v=G}return v};Graph.prototype.getCellsById=function(k){var v=[];if(null!=k)for(var G=0;G<k.length;G++)if("*"==k[G]){var N=this.model.getRoot();v=v.concat(this.model.filterDescendants(function(Q){return Q!=
+N},N))}else{var O=this.model.getCell(k[G]);null!=O&&v.push(O)}return v};var n=Graph.prototype.isCellVisible;Graph.prototype.isCellVisible=function(k){return n.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 v=mxUtils.indexOf(this.hiddenTags,k);0>v?this.hiddenTags.push(k):0<=v&&this.hiddenTags.splice(v,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 v=0;v<k.length;v++)if(0>mxUtils.indexOf(this.hiddenTags,k[v]))return!1;return!0};Graph.prototype.getCellsForTags=function(k,v,G,N){var O=[];if(null!=k){v=null!=v?v:this.model.getDescendants(this.model.getRoot());for(var Q=0,S={},V=0;V<k.length;V++)0<k[V].length&&(S[k[V]]=!0,Q++);for(V=0;V<v.length;V++)if(G&&this.model.getParent(v[V])==
+this.model.root||this.model.isVertex(v[V])||this.model.isEdge(v[V])){var W=this.getTagsForCell(v[V]),X=!1;if(0<W.length&&(W=W.split(" "),W.length>=k.length)){for(var Z=X=0;Z<W.length&&X<Q;Z++)null!=S[W[Z]]&&X++;X=X==Q}X&&(1!=N||this.isCellVisible(v[V]))&&O.push(v[V])}}return O};Graph.prototype.getAllTags=function(){return this.getTagsForCells(this.model.getDescendants(this.model.getRoot()))};Graph.prototype.getCommonTagsForCells=function(k){for(var v=null,G=[],N=0;N<k.length;N++){var O=this.getTagsForCell(k[N]);
+G=[];if(0<O.length){O=O.split(" ");for(var Q={},S=0;S<O.length;S++)if(null==v||null!=v[O[S]])Q[O[S]]=!0,G.push(O[S]);v=Q}else return[]}return G};Graph.prototype.getTagsForCells=function(k){for(var v=[],G={},N=0;N<k.length;N++){var O=this.getTagsForCell(k[N]);if(0<O.length){O=O.split(" ");for(var Q=0;Q<O.length;Q++)null==G[O[Q]]&&(G[O[Q]]=!0,v.push(O[Q]))}}return v};Graph.prototype.getTagsForCell=function(k){return this.getAttributeForCell(k,"tags","")};Graph.prototype.addTagsForCells=function(k,v){if(0<
+k.length&&0<v.length){this.model.beginUpdate();try{for(var G=0;G<k.length;G++){for(var N=this.getTagsForCell(k[G]),O=N.split(" "),Q=!1,S=0;S<v.length;S++){var V=mxUtils.trim(v[S]);""!=V&&0>mxUtils.indexOf(O,V)&&(N=0<N.length?N+" "+V:V,Q=!0)}Q&&this.setAttributeForCell(k[G],"tags",N)}}finally{this.model.endUpdate()}}};Graph.prototype.removeTagsForCells=function(k,v){if(0<k.length&&0<v.length){this.model.beginUpdate();try{for(var G=0;G<k.length;G++){var N=this.getTagsForCell(k[G]);if(0<N.length){for(var O=
+N.split(" "),Q=!1,S=0;S<v.length;S++){var V=mxUtils.indexOf(O,v[S]);0<=V&&(O.splice(V,1),Q=!0)}Q&&this.setAttributeForCell(k[G],"tags",O.join(" "))}}}finally{this.model.endUpdate()}}};Graph.prototype.toggleCells=function(k){this.model.beginUpdate();try{for(var v=0;v<k.length;v++)this.model.setVisible(k[v],!this.model.isVisible(k[v]))}finally{this.model.endUpdate()}};Graph.prototype.setCellsVisible=function(k,v){this.model.beginUpdate();try{for(var G=0;G<k.length;G++)this.model.setVisible(k[G],v)}finally{this.model.endUpdate()}};
+Graph.prototype.highlightCells=function(k,v,G,N){for(var O=0;O<k.length;O++)this.highlightCell(k[O],v,G,N)};Graph.prototype.highlightCell=function(k,v,G,N,O){v=null!=v?v:mxConstants.DEFAULT_VALID_COLOR;G=null!=G?G:1E3;k=this.view.getState(k);var Q=null;null!=k&&(O=null!=O?O:4,O=Math.max(O+1,mxUtils.getValue(k.style,mxConstants.STYLE_STROKEWIDTH,1)+O),Q=new mxCellHighlight(this,v,O,!1),null!=N&&(Q.opacity=N),Q.highlight(k),window.setTimeout(function(){null!=Q.shape&&(mxUtils.setPrefixedStyle(Q.shape.node.style,
+"transition","all 1200ms ease-in-out"),Q.shape.node.style.opacity=0);window.setTimeout(function(){Q.destroy()},1200)},G));return Q};Graph.prototype.addSvgShadow=function(k,v,G,N){G=null!=G?G:!1;N=null!=N?N:!0;var O=k.ownerDocument,Q=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"filter"):O.createElement("filter");Q.setAttribute("id",this.shadowId);var S=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feGaussianBlur"):O.createElement("feGaussianBlur");S.setAttribute("in",
+"SourceAlpha");S.setAttribute("stdDeviation",this.svgShadowBlur);S.setAttribute("result","blur");Q.appendChild(S);S=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feOffset"):O.createElement("feOffset");S.setAttribute("in","blur");S.setAttribute("dx",this.svgShadowSize);S.setAttribute("dy",this.svgShadowSize);S.setAttribute("result","offsetBlur");Q.appendChild(S);S=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feFlood"):O.createElement("feFlood");S.setAttribute("flood-color",
+this.svgShadowColor);S.setAttribute("flood-opacity",this.svgShadowOpacity);S.setAttribute("result","offsetColor");Q.appendChild(S);S=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feComposite"):O.createElement("feComposite");S.setAttribute("in","offsetColor");S.setAttribute("in2","offsetBlur");S.setAttribute("operator","in");S.setAttribute("result","offsetBlur");Q.appendChild(S);S=null!=O.createElementNS?O.createElementNS(mxConstants.NS_SVG,"feBlend"):O.createElement("feBlend");S.setAttribute("in",
+"SourceGraphic");S.setAttribute("in2","offsetBlur");Q.appendChild(S);S=k.getElementsByTagName("defs");0==S.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=S[0];O.appendChild(Q);G||(v=null!=v?v:k.getElementsByTagName("g")[0],null!=v&&(v.setAttribute("filter","url(#"+this.shadowId+")"),!isNaN(parseInt(k.getAttribute("width")))&&N&&(k.setAttribute("width",parseInt(k.getAttribute("width"))+
+6),k.setAttribute("height",parseInt(k.getAttribute("height"))+6),v=k.getAttribute("viewBox"),null!=v&&0<v.length&&(v=v.split(" "),3<v.length&&(w=parseFloat(v[2])+6,h=parseFloat(v[3])+6,k.setAttribute("viewBox",v[0]+" "+v[1]+" "+w+" "+h))))));return Q};Graph.prototype.setShadowVisible=function(k,v){mxClient.IS_SVG&&!mxClient.IS_SF&&(v=null!=v?v:!0,(this.shadowVisible=k)?this.view.getDrawPane().setAttribute("filter","url(#"+this.shadowId+")"):this.view.getDrawPane().removeAttribute("filter"),v&&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),v=0;do var G=this.model.getChildAt(this.model.root,v);while(v++<k&&"1"==mxUtils.getValue(this.getCellStyle(G),"locked","0"));null!=G&&this.setDefaultParent(G)}};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=[SHAPES_PATH+"/mxDFD.js"];mxStencilRegistry.libraries.er=[SHAPES_PATH+"/er/mxER.js"];mxStencilRegistry.libraries.kubernetes=[SHAPES_PATH+"/mxKubernetes.js",STENCIL_PATH+"/kubernetes.xml",STENCIL_PATH+"/kubernetes2.xml"];mxStencilRegistry.libraries.flowchart=[SHAPES_PATH+"/mxFlowchart.js",STENCIL_PATH+"/flowchart.xml"];mxStencilRegistry.libraries.ios=[SHAPES_PATH+"/mockup/mxMockupiOS.js"];mxStencilRegistry.libraries.rackGeneral=[SHAPES_PATH+
@@ -12936,364 +12979,365 @@ Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.mod
mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];
mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+
"/gmdl.xml"];mxStencilRegistry.libraries.gcp2=[SHAPES_PATH+"/mxGCP2.js",STENCIL_PATH+"/gcp2.xml"];mxStencilRegistry.libraries.ibm=[SHAPES_PATH+"/mxIBM.js",STENCIL_PATH+"/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 y=null;null!=k&&0<k.length&&("ER"==k.substring(0,2)?y="mxgraph.er":"sysML"==k.substring(0,5)&&(y="mxgraph.sysml"));return y};var G=
-mxMarker.createMarker;mxMarker.createMarker=function(k,y,F,M,P,R,T,V,W,X){if(null!=F&&null==mxMarker.markers[F]){var Y=this.getPackageForType(F);null!=Y&&mxStencilRegistry.getStencil(Y)}return G.apply(this,arguments)};var E=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,y,F,M,P,R){"1"==mxUtils.getValue(y.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(y.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return E.apply(this,arguments)};PrintDialog.prototype.create=function(k,
-y,F,M){function P(){ka.value=Math.max(1,Math.min(Y,Math.max(parseInt(ka.value),parseInt(ea.value))));ea.value=Math.max(1,Math.min(Y,Math.min(parseInt(ka.value),parseInt(ea.value))))}function R(Da){k.lastPrintPagesRadioChecked=da.checked;k.lastPrintSelectionOnlyChecked=ha.checked;k.lastPrintCropRadioChecked=ia.checked;k.lastPrintFitRadioChecked=fa.checked;da.checked&&ea.value<ka.value?(k.lastPrintPagesFromInput=ea.value,k.lastPrintPagesToInput=ka.value):(k.lastPrintPagesFromInput=null,k.lastPrintPagesToInput=
-null);ya.value=Math.max(1,Math.min(1600,parseInt(ya.value)))+"%";k.lastPrintZoom=ya.value;k.lastPrintBorder=va.value;k.lastPrintGrid=za.checked;k.lastPrintTransparent=Ga.checked;k.lastPrintInclude=Ca.checked;k.lastPrintSheetsAcross=oa.value;k.lastPrintSheetsDown=Ea.value;var wa={};wa.border=parseInt(va.value);wa.scale=parseInt(ya.value)/100;wa.grid=za.checked;wa.transparent=Ga.checked;wa.includeCopy=Ca.checked;wa.sheetsAcross=parseInt(oa.value);wa.sheetsDown=parseInt(Ea.value);wa.pagesFrom=parseInt(ea.value);
-wa.pagesTo=parseInt(ka.value);wa.allPages=Z.checked;wa.selection=ha.checked;wa.pageView=aa.checked;wa.crop=ia.checked;wa.fit=fa.checked;return null!=F?F(!Da,wa):k.print(!Da,wa)}var T=k.editor.graph,V=document.createElement("div"),W=document.createElement("h3");W.style.width="100%";W.style.textAlign="center";W.style.marginTop="0px";mxUtils.write(W,y||mxResources.get("print"));V.appendChild(W);var X=1,Y=1;W=document.createElement("div");W.style.whiteSpace="nowrap";var Z=document.createElement("input");
-Z.style.marginRight="8px";Z.style.marginBottom="8px";Z.setAttribute("type","radio");Z.setAttribute("name","pages-printdialog");W.appendChild(Z);y=document.createElement("span");mxUtils.write(y,mxResources.get("allPages"));mxEvent.addListener(y,"click",function(){Z.checked=!0});W.appendChild(y);mxUtils.br(W);var da=Z.cloneNode(!0);W.appendChild(da);y=document.createElement("span");mxUtils.write(y,mxResources.get("pages")+":");W.appendChild(y);mxEvent.addListener(y,"click",function(){da.checked=!0});
-var ea=document.createElement("input");ea.style.margin="0 4px";ea.setAttribute("value","1");ea.setAttribute("type","number");ea.setAttribute("min","1");ea.style.width="40px";W.appendChild(ea);y=document.createElement("span");mxUtils.write(y,mxResources.get("to"));W.appendChild(y);var ka=ea.cloneNode(!0);W.appendChild(ka);mxEvent.addListener(ea,"focus",function(){da.checked=!0});mxEvent.addListener(ka,"focus",function(){da.checked=!0});mxEvent.addListener(ea,"change",P);mxEvent.addListener(ka,"change",
-P);if(null!=k.pages&&(Y=k.pages.length,null!=k.currentPage))for(var ba=0;ba<Y;ba++)if(k.currentPage==k.pages[ba]){X=ba+1;break}null!=k.lastPrintPagesFromInput&&null!=k.lastPrintPagesToInput?(ea.value=Math.min(Y,Math.max(1,k.lastPrintPagesFromInput)),ka.value=Math.min(Y,Math.max(1,k.lastPrintPagesToInput))):(ea.value=X,ka.value=X);ea.setAttribute("max",Y);ka.setAttribute("max",Y);ba=mxUtils.button(mxResources.get("currentPage"),function(Da){ea.value=X;ka.value=X;da.checked=!0});ba.setAttribute("title",
-mxResources.get("currentPage"));ba.style.marginLeft="4px";ba.style.maxWidth="100px";ba.style.overflow="hidden";ba.style.textOverflow="ellipsis";ba.style.whiteSpace="nowrap";W.appendChild(ba);1<Y&&V.appendChild(W);W=document.createElement("div");W.style.borderBottom="1px solid lightGray";W.style.paddingBottom="12px";W.style.marginBottom="12px";W.style.whiteSpace="nowrap";var ha=document.createElement("input");ha.setAttribute("name","pages-printdialog");ha.setAttribute("type",1==Y?"checkbox":"radio");
-ha.style.marginRight="8px";T.isSelectionEmpty()&&ha.setAttribute("disabled","disabled");T.isEnabled()&&(W.appendChild(ha),y=document.createElement("span"),mxUtils.write(y,mxResources.get("selectionOnly")),W.appendChild(y));(T.isEnabled()||1<Y)&&V.appendChild(W);!k.isPagesEnabled()||k.lastPrintPagesRadioChecked?da.checked=!0:!T.isSelectionEmpty()&&k.lastPrintSelectionOnlyChecked?ha.checked=!0:Z.checked=!0;T.isSelectionEmpty()||mxEvent.addListener(y,"click",function(){ha.checked=!ha.checked});T=document.createElement("div");
-T.style.whiteSpace="nowrap";var aa=document.createElement("input");aa.style.marginBottom="8px";aa.style.marginRight="8px";aa.setAttribute("type","radio");aa.setAttribute("name","printSize");T.appendChild(aa);y=document.createElement("span");mxUtils.write(y,mxResources.get("pageView"));T.appendChild(y);mxEvent.addListener(T,"click",function(){aa.checked=!0});V.appendChild(T);T=document.createElement("div");T.style.whiteSpace="nowrap";var ia=document.createElement("input");ia.style.marginBottom="8px";
-ia.style.marginRight="8px";ia.setAttribute("type","radio");ia.setAttribute("name","printSize");T.appendChild(ia);y=document.createElement("span");mxUtils.write(y,mxResources.get("crop"));T.appendChild(y);mxEvent.addListener(T,"click",function(){ia.checked=!0});V.appendChild(T);T=document.createElement("div");T.style.whiteSpace="nowrap";var fa=document.createElement("input");fa.style.marginBottom="8px";fa.style.marginRight="8px";fa.setAttribute("type","radio");fa.setAttribute("name","printSize");y=
-document.createElement("div");y.style.display="inline-block";y.style.verticalAlign="top";y.style.paddingTop="2px";y.appendChild(fa);T.appendChild(y);W=document.createElement("table");W.style.display="inline-block";W.style.borderSpacing="0";ba=document.createElement("tbody");var ca=document.createElement("tr"),Ba=ca.cloneNode(!0),la=document.createElement("td"),xa=la.cloneNode(!0),Aa=la.cloneNode(!0),ma=la.cloneNode(!0),ua=la.cloneNode(!0),ra=la.cloneNode(!0);la.style.textAlign="right";ma.style.textAlign=
-"right";mxUtils.write(la,mxResources.get("fitTo"));mxEvent.addListener(T,"click",function(Da){mxEvent.getSource(Da)!=fa&&(fa.checked=!fa.checked)});var oa=document.createElement("input");oa.style.margin="0 2px";oa.style.boxSizing="border-box";oa.setAttribute("value",k.lastPrintSheetsAcross||"1");oa.setAttribute("min","1");oa.setAttribute("type","number");oa.style.width="40px";xa.appendChild(oa);y=document.createElement("span");mxUtils.write(y,mxResources.get("fitToSheetsAcross"));Aa.appendChild(y);
-mxUtils.write(ma,mxResources.get("fitToBy"));var Ea=oa.cloneNode(!0);Ea.setAttribute("value",k.lastPrintSheetsDown||"1");ua.appendChild(Ea);mxEvent.addListener(oa,"click",function(Da){fa.checked=!0;mxEvent.consume(Da)});mxEvent.addListener(Ea,"click",function(Da){fa.checked=!0;mxEvent.consume(Da)});k.lastPrintCropRadioChecked?ia.checked=!0:k.lastPrintFitRadioChecked?fa.checked=!0:aa.checked=!0;y=document.createElement("span");mxUtils.write(y,mxResources.get("fitToSheetsDown"));ra.appendChild(y);ca.appendChild(la);
-ca.appendChild(xa);ca.appendChild(Aa);Ba.appendChild(ma);Ba.appendChild(ua);Ba.appendChild(ra);ba.appendChild(ca);ba.appendChild(Ba);W.appendChild(ba);T.appendChild(W);V.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 va=document.createElement("input");va.setAttribute("type","number");va.setAttribute("min",
-"0");va.style.width="40px";va.style.marginLeft="4px";va.value=null!=k.lastPrintBorder?k.lastPrintBorder:mxPrintPreview.prototype.pageMargin;T.appendChild(va);y=document.createElement("span");y.style.marginLeft="8px";mxUtils.write(y,mxResources.get("zoom")+":");T.appendChild(y);var ya=document.createElement("input");ya.style.width="60px";ya.style.marginLeft="4px";ya.value=null!=k.lastPrintZoom?k.lastPrintZoom:"100%";T.appendChild(ya);mxUtils.br(T);var za=document.createElement("input");za.setAttribute("type",
-"checkbox");za.style.marginTop="12px";za.checked=null!=k.lastPrintGrid?k.lastPrintGrid:!1;T.appendChild(za);y=document.createElement("span");y.style.marginLeft="4px";y.style.marginRight="8px";mxUtils.write(y,mxResources.get("grid"));T.appendChild(y);mxEvent.addListener(y,"click",function(Da){za.checked=!0;mxEvent.consume(Da)});var Ga=document.createElement("input");Ga.setAttribute("type","checkbox");Ga.style.marginTop="10px";Ga.checked=null!=k.lastPrintTransparent?k.lastPrintTransparent:!1;null!=
-F&&(T.appendChild(Ga),y=document.createElement("span"),y.style.marginLeft="4px",mxUtils.write(y,mxResources.get("transparentBackground")),T.appendChild(y),mxEvent.addListener(y,"click",function(Da){Ga.checked=!0;mxEvent.consume(Da)}));var Ca=document.createElement("input");Ca.setAttribute("type","checkbox");Ca.style.marginTop="10px";Ca.checked=null!=k.lastPrintInclude?k.lastPrintInclude:Editor.defaultIncludeDiagram;null==F||mxClient.IS_CHROMEAPP||"draw.io"!=k.getServiceName()||(mxUtils.br(T),T.appendChild(Ca),
-y=document.createElement("span"),y.style.marginLeft="4px",mxUtils.write(y,mxResources.get("includeCopyOfMyDiagram")),T.appendChild(y),mxEvent.addListener(y,"click",function(Da){Ca.checked=!0;mxEvent.consume(Da)}));V.appendChild(T);y=document.createElement("div");y.style.marginTop="40px";y.style.textAlign="right";y.style.whiteSpace="nowrap";k.isOffline()||null!=F||y.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&&y.appendChild(T);PrintDialog.previewEnabled&&null==F&&(W=mxUtils.button(mxResources.get("preview"),function(){try{k.hideDialog(),R(!1)}catch(Da){k.handleError(Da)}}),W.className="geBtn",y.appendChild(W));M=null!=M?M:null!=F?"export":PrintDialog.previewEnabled?"print":"ok";M=mxUtils.button(mxResources.get(M),function(){try{k.hideDialog(),R(!0)}catch(Da){k.handleError(Da)}});M.className="geBtn gePrimaryBtn";y.appendChild(M);k.editor.cancelFirst||y.appendChild(T);
-V.appendChild(y);if(k.editor.isChromelessView()){var Ka=function(){Editor.isDarkMode()?(V.classList.add("geDarkMode"),V.style.colorScheme="dark"):(V.classList.remove("geDarkMode"),V.style.colorScheme="light")};k.addListener("darkModeChanged",Ka);Ka();var Ma=function(Da,wa){Da=wa.getProperty("dialog");V.parentNode==Da.container&&(k.editor.removeListener(Ma),k.removeListener(Ka))};k.editor.addListener("hideDialog",Ma)}this.container=V};var H=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 H.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 L=document.createElement("canvas"),K=new Image;K.onload=function(){try{L.getContext("2d").drawImage(K,0,0);var k=L.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=k&&6<k.length}catch(y){}};K.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(f,m,d){d.ui=f.ui;return m};b.afterDecode=function(f,m,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(f,m,d){d.ui=f.ui;return m};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.2.8";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&
+[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.networks2=[SHAPES_PATH+"/mxNetworks2.js",STENCIL_PATH+"/networks2.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 v=null;null!=k&&0<k.length&&("ER"==k.substring(0,
+2)?v="mxgraph.er":"sysML"==k.substring(0,5)&&(v="mxgraph.sysml"));return v};var t=mxMarker.createMarker;mxMarker.createMarker=function(k,v,G,N,O,Q,S,V,W,X){if(null!=G&&null==mxMarker.markers[G]){var Z=this.getPackageForType(G);null!=Z&&mxStencilRegistry.getStencil(Z)}return t.apply(this,arguments)};var B=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,v,G,N,O,Q){"1"==mxUtils.getValue(v.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(v.style,mxConstants.STYLE_STROKECOLOR,
+this.stroke));return B.apply(this,arguments)};PrintDialog.prototype.create=function(k,v,G,N){function O(){ka.value=Math.max(1,Math.min(Z,Math.max(parseInt(ka.value),parseInt(ca.value))));ca.value=Math.max(1,Math.min(Z,Math.min(parseInt(ka.value),parseInt(ca.value))))}function Q(Ga){k.lastPrintPagesRadioChecked=ea.checked;k.lastPrintSelectionOnlyChecked=ha.checked;k.lastPrintCropRadioChecked=ia.checked;k.lastPrintFitRadioChecked=fa.checked;ea.checked&&ca.value<ka.value?(k.lastPrintPagesFromInput=ca.value,
+k.lastPrintPagesToInput=ka.value):(k.lastPrintPagesFromInput=null,k.lastPrintPagesToInput=null);Ca.value=Math.max(1,Math.min(1600,parseInt(Ca.value)))+"%";k.lastPrintZoom=Ca.value;k.lastPrintBorder=wa.value;k.lastPrintGrid=xa.checked;k.lastPrintTransparent=Da.checked;k.lastPrintInclude=Aa.checked;k.lastPrintSheetsAcross=la.value;k.lastPrintSheetsDown=Fa.value;var ya={};ya.border=parseInt(wa.value);ya.scale=parseInt(Ca.value)/100;ya.grid=xa.checked;ya.transparent=Da.checked;ya.includeCopy=Aa.checked;
+ya.sheetsAcross=parseInt(la.value);ya.sheetsDown=parseInt(Fa.value);ya.pagesFrom=parseInt(ca.value);ya.pagesTo=parseInt(ka.value);ya.allPages=Y.checked;ya.selection=ha.checked;ya.pageView=aa.checked;ya.crop=ia.checked;ya.fit=fa.checked;return null!=G?G(!Ga,ya):k.print(!Ga,ya)}var S=k.editor.graph,V=document.createElement("div"),W=document.createElement("h3");W.style.width="100%";W.style.textAlign="center";W.style.marginTop="0px";mxUtils.write(W,v||mxResources.get("print"));V.appendChild(W);var X=
+1,Z=1;W=document.createElement("div");W.style.whiteSpace="nowrap";var Y=document.createElement("input");Y.style.marginRight="8px";Y.style.marginBottom="8px";Y.setAttribute("type","radio");Y.setAttribute("name","pages-printdialog");W.appendChild(Y);v=document.createElement("span");mxUtils.write(v,mxResources.get("allPages"));mxEvent.addListener(v,"click",function(){Y.checked=!0});W.appendChild(v);mxUtils.br(W);var ea=Y.cloneNode(!0);W.appendChild(ea);v=document.createElement("span");mxUtils.write(v,
+mxResources.get("pages")+":");W.appendChild(v);mxEvent.addListener(v,"click",function(){ea.checked=!0});var ca=document.createElement("input");ca.style.margin="0 4px";ca.setAttribute("value","1");ca.setAttribute("type","number");ca.setAttribute("min","1");ca.style.width="40px";W.appendChild(ca);v=document.createElement("span");mxUtils.write(v,mxResources.get("to"));W.appendChild(v);var ka=ca.cloneNode(!0);W.appendChild(ka);mxEvent.addListener(ca,"focus",function(){ea.checked=!0});mxEvent.addListener(ka,
+"focus",function(){ea.checked=!0});mxEvent.addListener(ca,"change",O);mxEvent.addListener(ka,"change",O);if(null!=k.pages&&(Z=k.pages.length,null!=k.currentPage))for(var ba=0;ba<Z;ba++)if(k.currentPage==k.pages[ba]){X=ba+1;break}null!=k.lastPrintPagesFromInput&&null!=k.lastPrintPagesToInput?(ca.value=Math.min(Z,Math.max(1,k.lastPrintPagesFromInput)),ka.value=Math.min(Z,Math.max(1,k.lastPrintPagesToInput))):(ca.value=X,ka.value=X);ca.setAttribute("max",Z);ka.setAttribute("max",Z);ba=mxUtils.button(mxResources.get("currentPage"),
+function(Ga){ca.value=X;ka.value=X;ea.checked=!0});ba.setAttribute("title",mxResources.get("currentPage"));ba.style.marginLeft="4px";ba.style.maxWidth="100px";ba.style.overflow="hidden";ba.style.textOverflow="ellipsis";ba.style.whiteSpace="nowrap";W.appendChild(ba);1<Z&&V.appendChild(W);W=document.createElement("div");W.style.borderBottom="1px solid lightGray";W.style.paddingBottom="12px";W.style.marginBottom="12px";W.style.whiteSpace="nowrap";var ha=document.createElement("input");ha.setAttribute("name",
+"pages-printdialog");ha.setAttribute("type",1==Z?"checkbox":"radio");ha.style.marginRight="8px";S.isSelectionEmpty()&&ha.setAttribute("disabled","disabled");S.isEnabled()&&(W.appendChild(ha),v=document.createElement("span"),mxUtils.write(v,mxResources.get("selectionOnly")),W.appendChild(v));(S.isEnabled()||1<Z)&&V.appendChild(W);!k.isPagesEnabled()||k.lastPrintPagesRadioChecked?ea.checked=!0:!S.isSelectionEmpty()&&k.lastPrintSelectionOnlyChecked?ha.checked=!0:Y.checked=!0;S.isSelectionEmpty()||mxEvent.addListener(v,
+"click",function(){ha.checked=!ha.checked});S=document.createElement("div");S.style.whiteSpace="nowrap";var aa=document.createElement("input");aa.style.marginBottom="8px";aa.style.marginRight="8px";aa.setAttribute("type","radio");aa.setAttribute("name","printSize");S.appendChild(aa);v=document.createElement("span");mxUtils.write(v,mxResources.get("pageView"));S.appendChild(v);mxEvent.addListener(S,"click",function(){aa.checked=!0});V.appendChild(S);S=document.createElement("div");S.style.whiteSpace=
+"nowrap";var ia=document.createElement("input");ia.style.marginBottom="8px";ia.style.marginRight="8px";ia.setAttribute("type","radio");ia.setAttribute("name","printSize");S.appendChild(ia);v=document.createElement("span");mxUtils.write(v,mxResources.get("crop"));S.appendChild(v);mxEvent.addListener(S,"click",function(){ia.checked=!0});V.appendChild(S);S=document.createElement("div");S.style.whiteSpace="nowrap";var fa=document.createElement("input");fa.style.marginBottom="8px";fa.style.marginRight=
+"8px";fa.setAttribute("type","radio");fa.setAttribute("name","printSize");v=document.createElement("div");v.style.display="inline-block";v.style.verticalAlign="top";v.style.paddingTop="2px";v.appendChild(fa);S.appendChild(v);W=document.createElement("table");W.style.display="inline-block";W.style.borderSpacing="0";ba=document.createElement("tbody");var da=document.createElement("tr"),za=da.cloneNode(!0),va=document.createElement("td"),oa=va.cloneNode(!0),Ba=va.cloneNode(!0),ma=va.cloneNode(!0),ta=
+va.cloneNode(!0),qa=va.cloneNode(!0);va.style.textAlign="right";ma.style.textAlign="right";mxUtils.write(va,mxResources.get("fitTo"));mxEvent.addListener(S,"click",function(Ga){mxEvent.getSource(Ga)!=fa&&(fa.checked=!fa.checked)});var la=document.createElement("input");la.style.margin="0 2px";la.style.boxSizing="border-box";la.setAttribute("value",k.lastPrintSheetsAcross||"1");la.setAttribute("min","1");la.setAttribute("type","number");la.style.width="40px";oa.appendChild(la);v=document.createElement("span");
+mxUtils.write(v,mxResources.get("fitToSheetsAcross"));Ba.appendChild(v);mxUtils.write(ma,mxResources.get("fitToBy"));var Fa=la.cloneNode(!0);Fa.setAttribute("value",k.lastPrintSheetsDown||"1");ta.appendChild(Fa);mxEvent.addListener(la,"click",function(Ga){fa.checked=!0;mxEvent.consume(Ga)});mxEvent.addListener(Fa,"click",function(Ga){fa.checked=!0;mxEvent.consume(Ga)});k.lastPrintCropRadioChecked?ia.checked=!0:k.lastPrintFitRadioChecked?fa.checked=!0:aa.checked=!0;v=document.createElement("span");
+mxUtils.write(v,mxResources.get("fitToSheetsDown"));qa.appendChild(v);da.appendChild(va);da.appendChild(oa);da.appendChild(Ba);za.appendChild(ma);za.appendChild(ta);za.appendChild(qa);ba.appendChild(da);ba.appendChild(za);W.appendChild(ba);S.appendChild(W);V.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 wa=document.createElement("input");wa.setAttribute("type","number");wa.setAttribute("min","0");wa.style.width="40px";wa.style.marginLeft="4px";wa.value=null!=k.lastPrintBorder?k.lastPrintBorder:mxPrintPreview.prototype.pageMargin;S.appendChild(wa);v=document.createElement("span");v.style.marginLeft="8px";mxUtils.write(v,mxResources.get("zoom")+":");S.appendChild(v);var Ca=document.createElement("input");Ca.style.width="60px";Ca.style.marginLeft="4px";Ca.value=null!=k.lastPrintZoom?k.lastPrintZoom:
+"100%";S.appendChild(Ca);mxUtils.br(S);var xa=document.createElement("input");xa.setAttribute("type","checkbox");xa.style.marginTop="12px";xa.checked=null!=k.lastPrintGrid?k.lastPrintGrid:!1;S.appendChild(xa);v=document.createElement("span");v.style.marginLeft="4px";v.style.marginRight="8px";mxUtils.write(v,mxResources.get("grid"));S.appendChild(v);mxEvent.addListener(v,"click",function(Ga){xa.checked=!0;mxEvent.consume(Ga)});var Da=document.createElement("input");Da.setAttribute("type","checkbox");
+Da.style.marginTop="10px";Da.checked=null!=k.lastPrintTransparent?k.lastPrintTransparent:!1;null!=G&&(S.appendChild(Da),v=document.createElement("span"),v.style.marginLeft="4px",mxUtils.write(v,mxResources.get("transparentBackground")),S.appendChild(v),mxEvent.addListener(v,"click",function(Ga){Da.checked=!0;mxEvent.consume(Ga)}));var Aa=document.createElement("input");Aa.setAttribute("type","checkbox");Aa.style.marginTop="10px";Aa.checked=null!=k.lastPrintInclude?k.lastPrintInclude:Editor.defaultIncludeDiagram;
+null==G||mxClient.IS_CHROMEAPP||"draw.io"!=k.getServiceName()||(mxUtils.br(S),S.appendChild(Aa),v=document.createElement("span"),v.style.marginLeft="4px",mxUtils.write(v,mxResources.get("includeCopyOfMyDiagram")),S.appendChild(v),mxEvent.addListener(v,"click",function(Ga){Aa.checked=!0;mxEvent.consume(Ga)}));V.appendChild(S);v=document.createElement("div");v.style.marginTop="40px";v.style.textAlign="right";v.style.whiteSpace="nowrap";k.isOffline()||null!=G||v.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&&v.appendChild(S);PrintDialog.previewEnabled&&null==G&&(W=mxUtils.button(mxResources.get("preview"),function(){try{k.hideDialog(),Q(!1)}catch(Ga){k.handleError(Ga)}}),W.className="geBtn",v.appendChild(W));N=null!=N?N:null!=G?"export":PrintDialog.previewEnabled?"print":"ok";N=mxUtils.button(mxResources.get(N),function(){try{k.hideDialog(),Q(!0)}catch(Ga){k.handleError(Ga)}});N.className=
+"geBtn gePrimaryBtn";v.appendChild(N);k.editor.cancelFirst||v.appendChild(S);V.appendChild(v);if(k.editor.isChromelessView()){var Ja=function(){Editor.isDarkMode()?(V.classList.add("geDarkMode"),V.style.colorScheme="dark"):(V.classList.remove("geDarkMode"),V.style.colorScheme="light")};k.addListener("darkModeChanged",Ja);Ja();var Ka=function(Ga,ya){Ga=ya.getProperty("dialog");V.parentNode==Ga.container&&(k.editor.removeListener(Ka),k.removeListener(Ja))};k.editor.addListener("hideDialog",Ka)}this.container=
+V};var F=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 F.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 J=document.createElement("canvas"),K=new Image;K.onload=function(){try{J.getContext("2d").drawImage(K,0,0);var k=J.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=k&&6<k.length}catch(v){}};K.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(f,m,d){d.ui=f.ui;return m};b.afterDecode=function(f,m,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(f,m,d){d.ui=f.ui;return m};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.2.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&&
"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"}};
-EditorUi.logError=function(c,e,g,l,n,u,z){if(null!=c){n=null!=n?n:Error(c);n.stack=null!=n.stack?n.stack:"";u=null!=u?u:0>c.indexOf("NetworkError")&&0>c.indexOf("SecurityError")&&0>c.indexOf("NS_ERROR_FAILURE")&&0>c.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&c!=EditorUi.lastErrorMessage&&0>c.indexOf("extension:")&&0>c.indexOf("ResizeObserver loop completed with undelivered notifications")&&0>n.stack.indexOf("extension:")&&0>n.stack.indexOf("<anonymous>:")&&
-0>n.stack.indexOf("/math/es5/")&&(EditorUi.lastErrorMessage=c,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?severity="+u+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(c)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(g)+(null!=l?":colno:"+encodeURIComponent(l):"")+(""!=n.stack?"&stack="+encodeURIComponent(n.stack):""))}catch(D){}try{z||null==window.console||console.error(u,c,e,g,l,n)}catch(D){}}};EditorUi.logEvent=
+EditorUi.logError=function(c,e,g,l,p,u,z){if(null!=c){p=null!=p?p:Error(c);p.stack=null!=p.stack?p.stack:"";u=null!=u?u:0>c.indexOf("NetworkError")&&0>c.indexOf("SecurityError")&&0>c.indexOf("NS_ERROR_FAILURE")&&0>c.indexOf("out of memory")?"SEVERE":"CONFIG";try{EditorUi.enableLogging&&"1"!=urlParams.dev&&c!=EditorUi.lastErrorMessage&&0>c.indexOf("extension:")&&0>c.indexOf("ResizeObserver loop completed with undelivered notifications")&&0>p.stack.indexOf("extension:")&&0>p.stack.indexOf("<anonymous>:")&&
+0>p.stack.indexOf("/math/es5/")&&(EditorUi.lastErrorMessage=c,(new Image).src=(null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"")+"/log?severity="+u+"&v="+encodeURIComponent(EditorUi.VERSION)+"&msg=clientError:"+encodeURIComponent(c)+":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(g)+(null!=l?":colno:"+encodeURIComponent(l):"")+(""!=p.stack?"&stack="+encodeURIComponent(p.stack):""))}catch(E){}try{z||null==window.console||console.error(u,c,e,g,l,p)}catch(E){}}};EditorUi.logEvent=
function(c){if("1"==urlParams.dev)EditorUi.debug("logEvent",c);else if(EditorUi.enableLogging)try{var e=null!=window.DRAWIO_LOG_URL?window.DRAWIO_LOG_URL:"";(new Image).src=e+"/images/1x1.png?v="+encodeURIComponent(EditorUi.VERSION)+(null!=c?"&data="+encodeURIComponent(JSON.stringify(c)):"")}catch(g){}};EditorUi.sendReport=function(c,e){if("1"==urlParams.dev)EditorUi.debug("sendReport",c);else if(EditorUi.enableLogging)try{e=null!=e?e:5E4,c.length>e&&(c=c.substring(0,e)+"\n...[SHORTENED]"),mxUtils.post("/email",
"version="+encodeURIComponent(EditorUi.VERSION)+"&url="+encodeURIComponent(window.location.href)+"&data="+encodeURIComponent(c))}catch(g){}};EditorUi.debug=function(){try{if(null!=window.console&&"1"==urlParams.test){for(var c=[(new Date).toISOString()],e=0;e<arguments.length;e++)c.push(arguments[e]);console.log.apply(console,c)}}catch(g){}};EditorUi.removeChildNodes=function(c){for(;null!=c.firstChild;)c.removeChild(c.firstChild)};EditorUi.embedSvgImages=function(c){c=c.getElementsByTagName("image");
for(var e=[],g=0;g<c.length;g++)e.push(c[g]);for(g=0;g<e.length;g++)EditorUi.replaceSvgImage(e[g])};EditorUi.replaceSvgImage=function(c){try{var e=null;e=null==c.getAttributeNS?c.getAttribute("xlink:href"):c.getAttributeNS(mxConstants.NS_XLINK,"href");var g=EditorUi.getSvgSubtree(e);if(null!=g&&"svg"==g.nodeName){g.setAttribute("x",c.getAttribute("x"));g.setAttribute("y",c.getAttribute("y"));g.setAttribute("width",c.getAttribute("width"));g.setAttribute("height",c.getAttribute("height"));g.style.fontFamily=
-"initial";var l=mxUtils.createElementNs(g.ownerDocument,mxConstants.NS_SVG,"g");l.appendChild(g);c.hasAttribute("transform")&&l.setAttribute("transform",c.getAttribute("transform"));c.parentNode.replaceChild(l,c)}}catch(n){}};EditorUi.getSvgSubtree=function(c){var e=Graph.getSvgFromDataUri(c);c=null;if(null!=e){c=Graph.sanitizeNode(mxUtils.parseXml(e).documentElement);e=c.getElementsByTagName("style");if(0<e.length){var g="svg-image-"+Editor.guid();c.setAttribute("id",g);for(var l=document.implementation.createHTMLDocument(""),
-n=document.createElement("style"),u=0;u<e.length;u++){n.textContent=e[u].textContent;l.body.appendChild(n);for(var z="",D=0;D<n.sheet.cssRules.length;D++){var C=n.sheet.cssRules[D];if(null!=C.selectorText){for(var A=C.selectorText.split(","),Q=0;Q<A.length;Q++)A[Q]="#"+g+" "+A[Q];C.selectorText=A.join(",")}z+=C.cssText+"\n"}e[u].textContent=z}}e=c.getElementsByTagName("*");for(g=0;g<e.length;g++)e[g].removeAttribute("data-cell-id")}return c};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';
+"initial";var l=mxUtils.createElementNs(g.ownerDocument,mxConstants.NS_SVG,"g");l.appendChild(g);c.hasAttribute("transform")&&l.setAttribute("transform",c.getAttribute("transform"));c.parentNode.replaceChild(l,c)}}catch(p){}};EditorUi.getSvgSubtree=function(c){var e=Graph.getSvgFromDataUri(c);c=null;if(null!=e){c=Graph.sanitizeNode(mxUtils.parseXml(e).documentElement);e=c.getElementsByTagName("style");if(0<e.length){var g="svg-image-"+Editor.guid();c.setAttribute("id",g);for(var l=document.implementation.createHTMLDocument(""),
+p=document.createElement("style"),u=0;u<e.length;u++){p.textContent=e[u].textContent;l.body.appendChild(p);for(var z="",E=0;E<p.sheet.cssRules.length;E++){var D=p.sheet.cssRules[E];if(null!=D.selectorText){for(var A=D.selectorText.split(","),P=0;P<A.length;P++)A[P]="#"+g+" "+A[P];D.selectorText=A.join(",")}z+=D.cssText+"\n"}e[u].textContent=z}}e=c.getElementsByTagName("*");for(g=0;g<e.length;g++)e[g].removeAttribute("data-cell-id")}return c};EditorUi.prototype.emptyDiagramXml='<mxGraphModel><root><mxCell id="0"/><mxCell id="1" parent="0"/></root></mxGraphModel>';
EditorUi.prototype.emptyLibraryXml="<mxlibrary>[]</mxlibrary>";EditorUi.prototype.mode=null;EditorUi.prototype.timeout=Editor.prototype.timeout;EditorUi.prototype.defaultCustomShapeStyle="shape=stencil(tZRtTsQgEEBPw1+DJR7AoN6DbWftpAgE0Ortd/jYRGq72R+YNE2YgTePloEJGWblgA18ZuKFDcMj5/Sm8boZq+BgjCX4pTyqk6ZlKROitwusOMXKQDODx5iy4pXxZ5qTHiFHawxB0JrQZH7lCabQ0Fr+XWC1/E8zcsT/gAi+Subo2/3Mh6d/oJb5nU1b5tW7r2knautaa3T+U32o7f7vZwpJkaNDLORJjcu7t59m2jXxqX9un+tt022acsfmoKaQZ+vhhswZtS6Ne/ThQGt0IV0N3Yyv6P3CeT9/tHO0XFI5cAE=);whiteSpace=wrap;html=1;";
EditorUi.prototype.maxBackgroundSize=1600;EditorUi.prototype.maxImageSize=1200;EditorUi.prototype.maxTextWidth=520;EditorUi.prototype.resampleThreshold=1E5;EditorUi.prototype.maxImageBytes=2E6;EditorUi.prototype.maxBackgroundBytes=25E5;EditorUi.prototype.maxTextBytes=5E5;EditorUi.prototype.currentFile=null;EditorUi.prototype.printPdfExport=!1;EditorUi.prototype.pdfPageExport=!0;EditorUi.prototype.formatEnabled="0"!=urlParams.format;EditorUi.prototype.insertTemplateEnabled=!0;EditorUi.prototype.closableScratchpad=
-!0;EditorUi.prototype.embedExportBorder=8;EditorUi.prototype.embedExportTheme="auto";EditorUi.prototype.embedExportBackground=null;EditorUi.prototype.shareCursorPosition=!0;EditorUi.prototype.showRemoteCursors=!0;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;EditorUi.prototype.webpSupported=!1;try{var c=document.createElement("canvas");EditorUi.prototype.canvasSupported=!(!c.getContext||!c.getContext("2d"))}catch(n){}try{var e=document.createElement("canvas"),
-g=new Image;g.onload=function(){try{e.getContext("2d").drawImage(g,0,0);var n=e.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=n&&6<n.length}catch(u){}};g.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(n){}try{e=
-document.createElement("canvas");e.width=e.height=1;var l=e.toDataURL("image/jpeg");EditorUi.prototype.jpgSupported=null!==l.match("image/jpeg");l=e.toDataURL("image/webp");EditorUi.prototype.webpSupported=null!==l.match("image/webp")}catch(n){}})();EditorUi.prototype.createButtonContainer=function(){var c=document.createElement("div");c.className="geButtonContainer";return c};EditorUi.prototype.openLink=function(c,e,g){return this.editor.graph.openLink(c,e,g)};EditorUi.prototype.showSplash=function(c){};
+!0;EditorUi.prototype.embedExportBorder=8;EditorUi.prototype.embedExportTheme="auto";EditorUi.prototype.embedExportBackground=null;EditorUi.prototype.shareCursorPosition=!0;EditorUi.prototype.showRemoteCursors=!0;(function(){EditorUi.prototype.useCanvasForExport=!1;EditorUi.prototype.jpgSupported=!1;EditorUi.prototype.webpSupported=!1;try{var c=document.createElement("canvas");EditorUi.prototype.canvasSupported=!(!c.getContext||!c.getContext("2d"))}catch(p){}try{var e=document.createElement("canvas"),
+g=new Image;g.onload=function(){try{e.getContext("2d").drawImage(g,0,0);var p=e.toDataURL("image/png");EditorUi.prototype.useCanvasForExport=null!=p&&6<p.length}catch(u){}};g.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(p){}try{e=
+document.createElement("canvas");e.width=e.height=1;var l=e.toDataURL("image/jpeg");EditorUi.prototype.jpgSupported=null!==l.match("image/jpeg");l=e.toDataURL("image/webp");EditorUi.prototype.webpSupported=null!==l.match("image/webp")}catch(p){}})();EditorUi.prototype.createButtonContainer=function(){var c=document.createElement("div");c.className="geButtonContainer";return c};EditorUi.prototype.openLink=function(c,e,g){return this.editor.graph.openLink(c,e,g)};EditorUi.prototype.showSplash=function(c){};
EditorUi.prototype.getLocalData=function(c,e){e(localStorage.getItem(c))};EditorUi.prototype.setLocalData=function(c,e,g){localStorage.setItem(c,e);null!=g&&g()};EditorUi.prototype.isLocked=function(){var c=this.getCurrentFile();return null!=c&&c.isLocked()};EditorUi.prototype.removeLocalData=function(c,e){localStorage.removeItem(c);e()};EditorUi.prototype.setShareCursorPosition=function(c){this.shareCursorPosition=c;this.fireEvent(new mxEventObject("shareCursorPositionChanged"))};EditorUi.prototype.isShareCursorPosition=
function(){return this.shareCursorPosition};EditorUi.prototype.setShowRemoteCursors=function(c){this.showRemoteCursors=c;this.fireEvent(new mxEventObject("showRemoteCursorsChanged"))};EditorUi.prototype.isShowRemoteCursors=function(){return this.showRemoteCursors};EditorUi.prototype.setMathEnabled=function(c){var e=this.editor.graph;e.mathEnabled=c;null!=e.view.backgroundImage&&(e.view.backgroundImage.destroy(),e.view.backgroundImage=null);this.editor.updateGraphComponents();e.refresh();e.defaultMathEnabled=
c;this.fireEvent(new mxEventObject("mathEnabledChanged"))};EditorUi.prototype.isMathEnabled=function(c){return this.editor.graph.mathEnabled};EditorUi.prototype.setAdaptiveColors=function(c){this.editor.graph.setAdaptiveColors(c);this.editor.graph.view.clear();this.fireEvent(new mxEventObject("adaptiveColorsChanged"))};EditorUi.prototype.isStandaloneApp=function(){return mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||this.isOfflineApp()};EditorUi.prototype.isOfflineApp=function(){return"1"==urlParams.offline};
-EditorUi.prototype.isOffline=function(c){return this.isOfflineApp()||!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,e,g){var l=null==c||null==e;g=null!=g?g:24;var n=new Spinner({lines:12,length:g,width:Math.round(g/3),radius:Math.round(g/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,
-hwaccel:!1,zIndex:2E9}),u=this.timeout,z=n.spin,D=null,C=null,A=mxUtils.bind(this,function(U){null!=U&&U()}),Q=this;n.spin=function(U,O,p,q){q=null!=q?q:u;var G=!1;if(!this.active){var E=Date.now();null!=p&&(D=window.setTimeout(function(){n.stop();D=null;p({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:C})},q));l&&(e=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,c=document.body.clientWidth/2-2);U==document.body&&"1"==urlParams.embedInline&&(U=
-Q.diagramContainer,c=U.scrollLeft+U.clientWidth/2,e=U.scrollTop+U.clientHeight/2);z.call(this,U);"1"==urlParams.embedInline&&null!=n.el&&(n.el.style.marginTop=U.scrollTop+"px",n.el.style.marginLeft=U.scrollLeft+"px");this.active=!0;null!=O&&(G=document.createElement("div"),G.className="geSpinnerStatus",G.style.position="absolute",G.style.whiteSpace="nowrap",G.style.background="#4B4243",G.style.color="white",G.style.fontFamily=Editor.defaultHtmlFont,G.style.fontSize="9pt",G.style.padding="6px",G.style.paddingLeft=
-"10px",G.style.paddingRight="10px",G.style.zIndex=2E9,G.style.left=Math.max(0,c)+"px",G.style.top=Math.max(0,e+70)+"px",mxUtils.setPrefixedStyle(G.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(G.style,"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(G.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=O.substring(O.length-3,O.length)&&"!"!=O.charAt(O.length-1)&&(O+="..."),G.innerText=O,U.appendChild(G),n.status=G);this.pause=mxUtils.bind(this,function(){var H=
-A;this.active&&(q=Math.max(0,q-(Date.now()-E)),H=mxUtils.bind(this,function(L){this.spin(U,O,p,q);if(null!=L)try{L(),C=mxUtils.bind(this,function(){this.spin(U,O,p,q);try{L()}catch(K){null!=p&&p(K)}})}catch(K){null!=p&&p(K)}}));this.stop();return H});G=!0}return G};var S=n.stop;n.stop=function(){S.call(this);this.active&&(this.active=!1,null!=D&&(window.clearTimeout(D),D=null),null!=n.status&&null!=n.status.parentNode&&n.status.parentNode.removeChild(n.status),n.status=null)};n.pause=function(){return A};
-return n};EditorUi.prototype.isCompatibleString=function(c){try{var e=mxUtils.parseXml(c),g=this.editor.extractGraphModel(e.documentElement,!0);return null!=g&&0==g.getElementsByTagName("parsererror").length}catch(l){}return!1};EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&
+EditorUi.prototype.isOffline=function(c){return this.isOfflineApp()||!navigator.onLine||!c&&("1"==urlParams.stealth||"1"==urlParams.lockdown)};EditorUi.prototype.isExternalDataComms=function(){return"1"!=urlParams.offline&&!this.isOffline()&&!this.isOfflineApp()};EditorUi.prototype.createSpinner=function(c,e,g){var l=null==c||null==e;g=null!=g?g:24;var p=new Spinner({lines:12,length:g,width:Math.round(g/3),radius:Math.round(g/2),rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,
+hwaccel:!1,zIndex:2E9}),u=this.timeout,z=p.spin,E=null,D=null,A=mxUtils.bind(this,function(T){null!=T&&T()}),P=this;p.spin=function(T,L,U,n){n=null!=n?n:u;var t=!1;if(!this.active){var B=Date.now();null!=U&&(E=window.setTimeout(function(){p.stop();E=null;U({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout"),retry:D})},n));l&&(e=Math.max(document.body.clientHeight||0,document.documentElement.clientHeight||0)/2,c=document.body.clientWidth/2-2);T==document.body&&"1"==urlParams.embedInline&&(T=
+P.diagramContainer,c=T.scrollLeft+T.clientWidth/2,e=T.scrollTop+T.clientHeight/2);z.call(this,T);"1"==urlParams.embedInline&&null!=p.el&&(p.el.style.marginTop=T.scrollTop+"px",p.el.style.marginLeft=T.scrollLeft+"px");this.active=!0;null!=L&&(t=document.createElement("div"),t.className="geSpinnerStatus",t.style.position="absolute",t.style.whiteSpace="nowrap",t.style.background="#4B4243",t.style.color="white",t.style.fontFamily=Editor.defaultHtmlFont,t.style.fontSize="9pt",t.style.padding="6px",t.style.paddingLeft=
+"10px",t.style.paddingRight="10px",t.style.zIndex=2E9,t.style.left=Math.max(0,c)+"px",t.style.top=Math.max(0,e+70)+"px",mxUtils.setPrefixedStyle(t.style,"borderRadius","6px"),mxUtils.setPrefixedStyle(t.style,"transform","translate(-50%,-50%)"),Editor.isDarkMode()||mxUtils.setPrefixedStyle(t.style,"boxShadow","2px 2px 3px 0px #ddd"),"..."!=L.substring(L.length-3,L.length)&&"!"!=L.charAt(L.length-1)&&(L+="..."),t.innerText=L,T.appendChild(t),p.status=t);this.pause=mxUtils.bind(this,function(){var F=
+A;this.active&&(n=Math.max(0,n-(Date.now()-B)),F=mxUtils.bind(this,function(J){this.spin(T,L,U,n);if(null!=J)try{J(),D=mxUtils.bind(this,function(){this.spin(T,L,U,n);try{J()}catch(K){null!=U&&U(K)}})}catch(K){null!=U&&U(K)}}));this.stop();return F});t=!0}return t};var R=p.stop;p.stop=function(){R.call(this);this.active&&(this.active=!1,null!=E&&(window.clearTimeout(E),E=null),null!=p.status&&null!=p.status.parentNode&&p.status.parentNode.removeChild(p.status),p.status=null)};p.pause=function(){return A};
+return p};EditorUi.prototype.isCompatibleString=function(c){try{var e=mxUtils.parseXml(c),g=this.editor.extractGraphModel(e.documentElement,!0);return null!=g&&0==g.getElementsByTagName("parsererror").length}catch(l){}return!1};EditorUi.isVisioFilename=function(c){return/(\.v(dx|sdx?))($|\?)/i.test(c)||/(\.vs(x|sx?))($|\?)/i.test(c)};EditorUi.prototype.isVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&
177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&4==c.charCodeAt(3)||80==c.charCodeAt(0)&&75==c.charCodeAt(1)&&3==c.charCodeAt(2)&&6==c.charCodeAt(3))};EditorUi.prototype.isRemoteVisioData=function(c){return 8<c.length&&(208==c.charCodeAt(0)&&207==c.charCodeAt(1)&&17==c.charCodeAt(2)&&224==c.charCodeAt(3)&&161==c.charCodeAt(4)&&177==c.charCodeAt(5)&&26==c.charCodeAt(6)&&225==c.charCodeAt(7)||60==c.charCodeAt(0)&&63==c.charCodeAt(1)&&
-120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var e=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var g=e.getFunction,l=this.editor.graph,n=this;e.getFunction=function(u){if(l.isSelectionEmpty()&&null!=n.pages&&0<n.pages.length){var z=n.getSelectedPageIndex();if(mxEvent.isShiftDown(u)){if(37==u.keyCode)return function(){0<z&&n.movePage(z,z-1)};if(38==u.keyCode)return function(){0<
-z&&n.movePage(z,0)};if(39==u.keyCode)return function(){z<n.pages.length-1&&n.movePage(z,z+1)};if(40==u.keyCode)return function(){z<n.pages.length-1&&n.movePage(z,n.pages.length-1)}}else if(mxEvent.isControlDown(u)||mxClient.IS_MAC&&mxEvent.isMetaDown(u)){if(37==u.keyCode)return function(){0<z&&n.selectNextPage(!1)};if(38==u.keyCode)return function(){0<z&&n.selectPage(n.pages[0])};if(39==u.keyCode)return function(){z<n.pages.length-1&&n.selectNextPage(!0)};if(40==u.keyCode)return function(){z<n.pages.length-
-1&&n.selectPage(n.pages[n.pages.length-1])}}}return!(65<=u.keyCode&&90>=u.keyCode)||l.isSelectionEmpty()||mxEvent.isAltDown(u)||mxEvent.isShiftDown(u)||mxEvent.isControlDown(u)||mxClient.IS_MAC&&mxEvent.isMetaDown(u)?g.apply(this,arguments):null}}return e};var f=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(c){var e=f.apply(this,arguments);if(null==e)try{var g=c.indexOf("&lt;mxfile ");if(0<=g){var l=c.lastIndexOf("&lt;/mxfile&gt;");l>g&&(e=c.substring(g,
-l+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else{var n=mxUtils.parseXml(c),u=this.editor.extractGraphModel(n.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);e=null!=u?mxUtils.getXml(u):""}}catch(z){}return e};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var e=c.indexOf('<meta charset="utf-8">');0<=e&&(c=c.slice(0,e)+'<meta charset="utf-8"/>'+c.slice(e+23-1,c.length));c=Graph.zapGremlins(c)}return c};
-EditorUi.prototype.replaceFileData=function(c,e){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",e);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var g=null!=c?this.editor.extractGraphModel(c,!0):null;null!=g&&(c=g);if(null!=c){g=this.editor.graph;g.model.beginUpdate();try{var l=null!=this.pages?this.pages.slice():null,n=c.getElementsByTagName("diagram");if(1<n.length||1==n.length&&n[0].hasAttribute("name")){this.fileNode=c;this.pages=
-null!=this.pages?this.pages:[];for(var u=n.length-1;0<=u;u--){var z=this.updatePageRoot(new DiagramPage(n[u]));null==z.getName()&&z.setName(mxResources.get("pageWithNumber",[u+1]));g.model.execute(new ChangePage(this,z,0==u?z:null,0))}}else null==this.fileNode&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),g.model.execute(new ChangePage(this,this.currentPage,
-this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,g.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=l)for(u=0;u<l.length;u++)g.model.execute(new ChangePage(this,l[u],null));var D=this.getCurrentFile();null!=D&&D.fileReplaced(e)}finally{g.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,e,g,l,n,u,z,D,C,A,Q,S,U){e=null!=e?e:this.editor.graph;n=null!=n?n:!1;C=null!=C?C:!0;Q=null!=
-Q?Q:!Editor.defaultCompressed;var O=null;if(null==g||g.getMode()==App.MODE_DEVICE||g.getMode()==App.MODE_BROWSER)var p="_blank";else O=p=l;if(null==c)return"";var q=c;if("mxfile"!=q.nodeName.toLowerCase()){if(Q){var G=c.ownerDocument.createElement("diagram");G.setAttribute("name",mxResources.get("pageWithNumber",[1]));G.setAttribute("id",Editor.guid());G.appendChild(c)}else{G=Graph.zapGremlins(mxUtils.getXml(c));q=Graph.compress(G);if(Graph.decompress(q)!=G)return G;G=c.ownerDocument.createElement("diagram");
-G.setAttribute("name",mxResources.get("pageWithNumber",[1]));G.setAttribute("id",Editor.guid());mxUtils.setTextContent(G,q)}q=c.ownerDocument.createElement("mxfile");q.appendChild(G)}A?(q=q.cloneNode(!0),q.removeAttribute("modified"),q.removeAttribute("host"),q.removeAttribute("agent"),q.removeAttribute("etag"),q.removeAttribute("userAgent"),q.removeAttribute("version"),q.removeAttribute("editor"),q.removeAttribute("type")):(q.removeAttribute("userAgent"),q.removeAttribute("modified"),q.removeAttribute("version"),
-q.removeAttribute("editor"),q.removeAttribute("pages"),q.removeAttribute("type"),q.removeAttribute("etag"),mxClient.IS_CHROMEAPP?q.setAttribute("host","Chrome"):EditorUi.isElectronApp?q.setAttribute("host","Electron"):q.setAttribute("host",window.location.hostname),q.setAttribute("agent",null!=navigator.userAgent?navigator.userAgent:navigator.appVersion),q.setAttribute("version",EditorUi.VERSION),1<q.getElementsByTagName("diagram").length&&null!=this.pages&&q.setAttribute("pages",this.pages.length));
-null!=S&&(q=q.cloneNode(!0),q.setAttribute("scale",S));null!=U&&(q=q.cloneNode(!0),q.setAttribute("border",U));c=Q?mxUtils.getPrettyXml(q):mxUtils.getXml(q);if(!u&&!n&&(z||null!=g&&/(\.html)$/i.test(g.getTitle())))c=this.getHtml2(mxUtils.getXml(q),e,null!=g?g.getTitle():null,p,O);else if(u||!n&&null!=g&&/(\.svg)$/i.test(g.getTitle()))null==g||g.getMode()!=App.MODE_DEVICE&&g.getMode()!=App.MODE_BROWSER||(l=null),g=this.getSvgFileProperties(q),c=this.getEmbeddedSvg(c,e,l,null,D,C,O,null,null,g.scale,
-g.border,null,Editor.svgFileTheme);return c};EditorUi.prototype.getXmlFileData=function(c,e,g,l){c=null!=c?c:!0;e=null!=e?e:!1;g=null!=g?g:!Editor.defaultCompressed;var n=this.editor.getGraphXml(c,l);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(C){var A=C.getElementsByTagName("mxGraphModel"),Q=0<A.length?A[0]:null;A=C;null==Q&&g?(Q=mxUtils.getNodeValue(C),0<Q.length&&(Q=Graph.decompress(Q),null!=Q&&0<Q.length&&(A=C.cloneNode(!1),A.appendChild(mxUtils.parseXml(Q).documentElement)))):
-null==Q||g?A=C.cloneNode(!0):(A=C.cloneNode(!1),mxUtils.setTextContent(A,Graph.compressNode(Q)));n.appendChild(A)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(n),n=this.fileNode.cloneNode(!1),e)c(this.currentPage.node);else for(e=0;e<this.pages.length;e++){var u=this.pages[e],z=u.node;if(u!=this.currentPage)if(u.needsUpdate){var D=new mxCodec(mxUtils.createXmlDocument());D=D.encode(new mxGraphModel(u.root));this.editor.graph.saveViewState(u.viewState,D,null,
-l);EditorUi.removeChildNodes(z);z.appendChild(D);delete u.needsUpdate}else l&&(this.updatePageRoot(u),null!=u.viewState.backgroundImage&&(null!=u.viewState.backgroundImage.originalSrc?u.viewState.backgroundImage=this.createImageForPageLink(u.viewState.backgroundImage.originalSrc,u):Graph.isPageLink(u.viewState.backgroundImage.src)&&(u.viewState.backgroundImage=this.createImageForPageLink(u.viewState.backgroundImage.src,u))),null!=u.viewState.backgroundImage&&null!=u.viewState.backgroundImage.originalSrc&&
-(D=new mxCodec(mxUtils.createXmlDocument()),D=D.encode(new mxGraphModel(u.root)),this.editor.graph.saveViewState(u.viewState,D,null,l),z=z.cloneNode(!1),z.appendChild(D)));c(z)}return n};EditorUi.prototype.anonymizeString=function(c,e){for(var g=[],l=0;l<c.length;l++){var n=c.charAt(l);0<=EditorUi.ignoredAnonymizedChars.indexOf(n)?g.push(n):isNaN(parseInt(n))?n.toLowerCase()!=n?g.push(String.fromCharCode(65+Math.round(25*Math.random()))):n.toUpperCase()!=n?g.push(String.fromCharCode(97+Math.round(25*
-Math.random()))):/\s/.test(n)?g.push(" "):g.push("?"):g.push(e?"0":Math.round(9*Math.random()))}return g.join("")};EditorUi.prototype.anonymizePatch=function(c){c=mxUtils.clone(c);if(null!=c[EditorUi.DIFF_INSERT])for(var e=0;e<c[EditorUi.DIFF_INSERT].length;e++)try{var g=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][e].data).documentElement.cloneNode(!1);null!=g.getAttribute("name")&&g.setAttribute("name",this.anonymizeString(g.getAttribute("name")));c[EditorUi.DIFF_INSERT][e].data=mxUtils.getXml(g)}catch(u){c[EditorUi.DIFF_INSERT][e].data=
-u.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var l in c[EditorUi.DIFF_UPDATE]){var n=c[EditorUi.DIFF_UPDATE][l];null!=n.name&&(n.name=this.anonymizeString(n.name));null!=n.cells&&(e=mxUtils.bind(this,function(u){var z=n.cells[u];if(null!=z){for(var D in z)null!=z[D].value&&(z[D].value="["+z[D].value.length+"]"),null!=z[D].xmlValue&&(z[D].xmlValue="["+z[D].xmlValue.length+"]"),null!=z[D].style&&(z[D].style="["+z[D].style.length+"]"),mxUtils.isEmptyObject(z[D])&&delete z[D];mxUtils.isEmptyObject(z)&&
-delete n.cells[u]}}),e(EditorUi.DIFF_INSERT),e(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(n.cells)&&delete n.cells);mxUtils.isEmptyObject(n)&&delete c[EditorUi.DIFF_UPDATE][l]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,e){if(null!=c.attributes)for(var g=0;g<c.attributes.length;g++)"as"!=c.attributes[g].name&&c.setAttribute(c.attributes[g].name,this.anonymizeString(c.attributes[g].value,e));if(null!=c.childNodes)for(g=
+120==c.charCodeAt(2)&&109==c.charCodeAt(3)&&108==c.charCodeAt(3))};var b=EditorUi.prototype.createKeyHandler;EditorUi.prototype.createKeyHandler=function(c){var e=b.apply(this,arguments);if(!this.editor.chromeless||this.editor.editable){var g=e.getFunction,l=this.editor.graph,p=this;e.getFunction=function(u){if(l.isSelectionEmpty()&&null!=p.pages&&0<p.pages.length){var z=p.getSelectedPageIndex();if(mxEvent.isShiftDown(u)){if(37==u.keyCode)return function(){0<z&&p.movePage(z,z-1)};if(38==u.keyCode)return function(){0<
+z&&p.movePage(z,0)};if(39==u.keyCode)return function(){z<p.pages.length-1&&p.movePage(z,z+1)};if(40==u.keyCode)return function(){z<p.pages.length-1&&p.movePage(z,p.pages.length-1)}}else if(mxEvent.isControlDown(u)||mxClient.IS_MAC&&mxEvent.isMetaDown(u)){if(37==u.keyCode)return function(){0<z&&p.selectNextPage(!1)};if(38==u.keyCode)return function(){0<z&&p.selectPage(p.pages[0])};if(39==u.keyCode)return function(){z<p.pages.length-1&&p.selectNextPage(!0)};if(40==u.keyCode)return function(){z<p.pages.length-
+1&&p.selectPage(p.pages[p.pages.length-1])}}}return!(65<=u.keyCode&&90>=u.keyCode)||l.isSelectionEmpty()||mxEvent.isAltDown(u)||mxEvent.isShiftDown(u)||mxEvent.isControlDown(u)||mxClient.IS_MAC&&mxEvent.isMetaDown(u)?g.apply(this,arguments):null}}return e};var f=EditorUi.prototype.extractGraphModelFromHtml;EditorUi.prototype.extractGraphModelFromHtml=function(c){var e=f.apply(this,arguments);if(null==e)try{var g=c.indexOf("&lt;mxfile ");if(0<=g){var l=c.lastIndexOf("&lt;/mxfile&gt;");l>g&&(e=c.substring(g,
+l+15).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}else{var p=mxUtils.parseXml(c),u=this.editor.extractGraphModel(p.documentElement,null!=this.pages||"hidden"==this.diagramContainer.style.visibility);e=null!=u?mxUtils.getXml(u):""}}catch(z){}return e};EditorUi.prototype.validateFileData=function(c){if(null!=c&&0<c.length){var e=c.indexOf('<meta charset="utf-8">');0<=e&&(c=c.slice(0,e)+'<meta charset="utf-8"/>'+c.slice(e+23-1,c.length));c=Graph.zapGremlins(c)}return c};
+EditorUi.prototype.replaceFileData=function(c,e){EditorUi.debug("EditorUi.replaceFileData",[this],"data",[c],"patches",e);c=this.validateFileData(c);c=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null;var g=null!=c?this.editor.extractGraphModel(c,!0):null;null!=g&&(c=g);if(null!=c){g=this.editor.graph;g.model.beginUpdate();try{var l=null!=this.pages?this.pages.slice():null,p=c.getElementsByTagName("diagram");if(1<p.length||1==p.length&&p[0].hasAttribute("name")){this.fileNode=c;this.pages=
+null!=this.pages?this.pages:[];for(var u=p.length-1;0<=u;u--){var z=this.updatePageRoot(new DiagramPage(p[u]));null==z.getName()&&z.setName(mxResources.get("pageWithNumber",[u+1]));g.model.execute(new ChangePage(this,z,0==u?z:null,0))}}else null==this.fileNode&&(this.fileNode=c.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(c.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",[1])),g.model.execute(new ChangePage(this,this.currentPage,
+this.currentPage,0))),this.editor.setGraphXml(c),null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,g.model.execute(new ChangePage(this,this.currentPage,this.currentPage,0)));if(null!=l)for(u=0;u<l.length;u++)g.model.execute(new ChangePage(this,l[u],null));var E=this.getCurrentFile();null!=E&&E.fileReplaced(e)}finally{g.model.endUpdate()}}};EditorUi.prototype.createFileData=function(c,e,g,l,p,u,z,E,D,A,P,R,T){e=null!=e?e:this.editor.graph;p=null!=p?p:!1;D=null!=D?D:!0;P=null!=
+P?P:!Editor.defaultCompressed;var L=null;if(null==g||g.getMode()==App.MODE_DEVICE||g.getMode()==App.MODE_BROWSER)var U="_blank";else L=U=l;if(null==c)return"";var n=c;if("mxfile"!=n.nodeName.toLowerCase()){if(P){var t=c.ownerDocument.createElement("diagram");t.setAttribute("name",mxResources.get("pageWithNumber",[1]));t.setAttribute("id",Editor.guid());t.appendChild(c)}else{t=Graph.zapGremlins(mxUtils.getXml(c));n=Graph.compress(t);if(Graph.decompress(n)!=t)return t;t=c.ownerDocument.createElement("diagram");
+t.setAttribute("name",mxResources.get("pageWithNumber",[1]));t.setAttribute("id",Editor.guid());mxUtils.setTextContent(t,n)}n=c.ownerDocument.createElement("mxfile");n.appendChild(t)}A?(n=n.cloneNode(!0),n.removeAttribute("modified"),n.removeAttribute("host"),n.removeAttribute("agent"),n.removeAttribute("etag"),n.removeAttribute("userAgent"),n.removeAttribute("version"),n.removeAttribute("editor"),n.removeAttribute("type")):(n.removeAttribute("userAgent"),n.removeAttribute("modified"),n.removeAttribute("version"),
+n.removeAttribute("editor"),n.removeAttribute("pages"),n.removeAttribute("type"),n.removeAttribute("etag"),mxClient.IS_CHROMEAPP?n.setAttribute("host","Chrome"):EditorUi.isElectronApp?n.setAttribute("host","Electron"):n.setAttribute("host",window.location.hostname),n.setAttribute("agent",null!=navigator.userAgent?navigator.userAgent:navigator.appVersion),n.setAttribute("version",EditorUi.VERSION),1<n.getElementsByTagName("diagram").length&&null!=this.pages&&n.setAttribute("pages",this.pages.length));
+null!=R&&(n=n.cloneNode(!0),n.setAttribute("scale",R));null!=T&&(n=n.cloneNode(!0),n.setAttribute("border",T));c=P?mxUtils.getPrettyXml(n):mxUtils.getXml(n);if(!u&&!p&&(z||null!=g&&/(\.html)$/i.test(g.getTitle())))c=this.getHtml2(mxUtils.getXml(n),e,null!=g?g.getTitle():null,U,L);else if(u||!p&&null!=g&&/(\.svg)$/i.test(g.getTitle()))null==g||g.getMode()!=App.MODE_DEVICE&&g.getMode()!=App.MODE_BROWSER||(l=null),g=this.getSvgFileProperties(n),c=this.getEmbeddedSvg(c,e,l,null,E,D,L,null,null,g.scale,
+g.border,null,Editor.svgFileTheme);return c};EditorUi.prototype.getXmlFileData=function(c,e,g,l){c=null!=c?c:!0;e=null!=e?e:!1;g=null!=g?g:!Editor.defaultCompressed;var p=this.editor.getGraphXml(c,l);if(c&&null!=this.fileNode&&null!=this.currentPage)if(c=function(D){var A=D.getElementsByTagName("mxGraphModel"),P=0<A.length?A[0]:null;A=D;null==P&&g?(P=mxUtils.getNodeValue(D),0<P.length&&(P=Graph.decompress(P),null!=P&&0<P.length&&(A=D.cloneNode(!1),A.appendChild(mxUtils.parseXml(P).documentElement)))):
+null==P||g?A=D.cloneNode(!0):(A=D.cloneNode(!1),mxUtils.setTextContent(A,Graph.compressNode(P)));p.appendChild(A)},EditorUi.removeChildNodes(this.currentPage.node),this.currentPage.node.appendChild(p),p=this.fileNode.cloneNode(!1),e)c(this.currentPage.node);else for(e=0;e<this.pages.length;e++){var u=this.pages[e],z=u.node;if(u!=this.currentPage)if(u.needsUpdate){var E=new mxCodec(mxUtils.createXmlDocument());E=E.encode(new mxGraphModel(u.root));this.editor.graph.saveViewState(u.viewState,E,null,
+l);EditorUi.removeChildNodes(z);z.appendChild(E);delete u.needsUpdate}else l&&(this.updatePageRoot(u),null!=u.viewState.backgroundImage&&(null!=u.viewState.backgroundImage.originalSrc?u.viewState.backgroundImage=this.createImageForPageLink(u.viewState.backgroundImage.originalSrc,u):Graph.isPageLink(u.viewState.backgroundImage.src)&&(u.viewState.backgroundImage=this.createImageForPageLink(u.viewState.backgroundImage.src,u))),null!=u.viewState.backgroundImage&&null!=u.viewState.backgroundImage.originalSrc&&
+(E=new mxCodec(mxUtils.createXmlDocument()),E=E.encode(new mxGraphModel(u.root)),this.editor.graph.saveViewState(u.viewState,E,null,l),z=z.cloneNode(!1),z.appendChild(E)));c(z)}return p};EditorUi.prototype.anonymizeString=function(c,e){for(var g=[],l=0;l<c.length;l++){var p=c.charAt(l);0<=EditorUi.ignoredAnonymizedChars.indexOf(p)?g.push(p):isNaN(parseInt(p))?p.toLowerCase()!=p?g.push(String.fromCharCode(65+Math.round(25*Math.random()))):p.toUpperCase()!=p?g.push(String.fromCharCode(97+Math.round(25*
+Math.random()))):/\s/.test(p)?g.push(" "):g.push("?"):g.push(e?"0":Math.round(9*Math.random()))}return g.join("")};EditorUi.prototype.anonymizePatch=function(c){c=mxUtils.clone(c);if(null!=c[EditorUi.DIFF_INSERT])for(var e=0;e<c[EditorUi.DIFF_INSERT].length;e++)try{var g=mxUtils.parseXml(c[EditorUi.DIFF_INSERT][e].data).documentElement.cloneNode(!1);null!=g.getAttribute("name")&&g.setAttribute("name",this.anonymizeString(g.getAttribute("name")));c[EditorUi.DIFF_INSERT][e].data=mxUtils.getXml(g)}catch(u){c[EditorUi.DIFF_INSERT][e].data=
+u.message}if(null!=c[EditorUi.DIFF_UPDATE]){for(var l in c[EditorUi.DIFF_UPDATE]){var p=c[EditorUi.DIFF_UPDATE][l];null!=p.name&&(p.name=this.anonymizeString(p.name));null!=p.cells&&(e=mxUtils.bind(this,function(u){var z=p.cells[u];if(null!=z){for(var E in z)null!=z[E].value&&(z[E].value="["+z[E].value.length+"]"),null!=z[E].xmlValue&&(z[E].xmlValue="["+z[E].xmlValue.length+"]"),null!=z[E].style&&(z[E].style="["+z[E].style.length+"]"),mxUtils.isEmptyObject(z[E])&&delete z[E];mxUtils.isEmptyObject(z)&&
+delete p.cells[u]}}),e(EditorUi.DIFF_INSERT),e(EditorUi.DIFF_UPDATE),mxUtils.isEmptyObject(p.cells)&&delete p.cells);mxUtils.isEmptyObject(p)&&delete c[EditorUi.DIFF_UPDATE][l]}mxUtils.isEmptyObject(c[EditorUi.DIFF_UPDATE])&&delete c[EditorUi.DIFF_UPDATE]}return c};EditorUi.prototype.anonymizeAttributes=function(c,e){if(null!=c.attributes)for(var g=0;g<c.attributes.length;g++)"as"!=c.attributes[g].name&&c.setAttribute(c.attributes[g].name,this.anonymizeString(c.attributes[g].value,e));if(null!=c.childNodes)for(g=
0;g<c.childNodes.length;g++)this.anonymizeAttributes(c.childNodes[g],e)};EditorUi.prototype.anonymizeNode=function(c,e){e=c.getElementsByTagName("mxCell");for(var g=0;g<e.length;g++)null!=e[g].getAttribute("value")&&e[g].setAttribute("value","["+e[g].getAttribute("value").length+"]"),null!=e[g].getAttribute("xmlValue")&&e[g].setAttribute("xmlValue","["+e[g].getAttribute("xmlValue").length+"]"),null!=e[g].getAttribute("style")&&e[g].setAttribute("style","["+e[g].getAttribute("style").length+"]"),null!=
e[g].parentNode&&"root"!=e[g].parentNode.nodeName&&null!=e[g].parentNode.parentNode&&(e[g].setAttribute("id",e[g].parentNode.getAttribute("id")),e[g].parentNode.parentNode.replaceChild(e[g],e[g].parentNode));return c};EditorUi.prototype.synchronizeCurrentFile=function(c){var e=this.getCurrentFile();null!=e&&(e.savingFile?this.handleError({message:mxResources.get("busy")}):!c&&e.invalidChecksum?e.handleFileError(null,!0):this.spinner.spin(document.body,mxResources.get("updatingDocument"))&&(e.clearAutosave(),
-this.clearStatus(),c?e.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();e.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(g){this.spinner.stop();e.handleFileError(g,!0)})):e.synchronizeFile(mxUtils.bind(this,function(){e.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(g){e.handleFileError(g,!0)}))))};EditorUi.prototype.getFileData=function(c,e,g,l,n,u,z,D,C,A,Q,S,U){n=null!=n?n:!0;u=null!=u?u:!1;A=null!=A?A:!Editor.defaultCompressed;var O=
-this.editor.graph;if((e||!c&&null!=C&&/(\.svg)$/i.test(C.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var p=O.getGlobalVariable;O=this.createTemporaryGraph(O.getStylesheet());O.setBackgroundImage=this.editor.graph.setBackgroundImage;O.background=this.editor.graph.background;var q=null!=this.pages?this.pages[0]:null;null==q||this.currentPage==q?O.setBackgroundImage(this.editor.graph.backgroundImage):null!=q.viewState&&null!=q.viewState&&O.setBackgroundImage(q.viewState.backgroundImage);
-O.getGlobalVariable=function(G){return"page"==G&&null!=q?q.getName():"pagenumber"==G?1:p.apply(this,arguments)};document.body.appendChild(O.container);null!=q&&O.model.setRoot(q.root)}z=null!=z?z:this.getXmlFileData(n,u,A,Q);C=null!=C?C:this.getCurrentFile();c=this.createFileData(z,O,C,window.location.href,c,e,g,l,n,D,A,S,U);O!=this.editor.graph&&O.container.parentNode.removeChild(O.container);return c};EditorUi.prototype.getHtml=function(c,e,g,l,n,u){u=null!=u?u:!0;var z=null,D=EditorUi.drawHost+
-"/js/embed-static.min.js";if(null!=e){z=u?e.getGraphBounds():e.getBoundingBox(e.getSelectionCells());var C=e.view.scale;u=Math.floor(z.x/C-e.view.translate.x);C=Math.floor(z.y/C-e.view.translate.y);z=e.background;null==n&&(e=this.getBasenames().join(";"),0<e.length&&(D=EditorUi.drawHost+"/embed.js?s="+e));c.setAttribute("x0",u);c.setAttribute("y0",C)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),
-c.setAttribute("links","1"),null!=l&&c.setAttribute("edit",l));null!=n&&(n=n.replace(/&/g,"&amp;"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";l=Graph.compress(c);Graph.decompress(l)!=c&&(l=encodeURIComponent(c));return(null==n?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=n?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==n?null!=g?"<title>"+mxUtils.htmlEntities(g)+"</title>\n":"":"<title>draw.io</title>\n")+
-(null!=n?'<meta http-equiv="refresh" content="0;URL=\''+n+"'\"/>\n":"")+"</head>\n<body"+(null==n&&null!=z&&z!=mxConstants.NONE?' style="background-color:'+z+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+l+"</div>\n</div>\n"+(null==n?'<script type="text/javascript" src="'+D+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+n+'" target="_blank"><img border="0" src="'+
-EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,e,g,l,n){e=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=n&&(n=n.replace(/&/g,"&amp;"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,xml:Graph.zapGremlins(c),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==n?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':
-"")+"<!DOCTYPE html>\n<html"+(null!=n?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==n?null!=g?"<title>"+mxUtils.htmlEntities(g)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=n?'<meta http-equiv="refresh" content="0;URL=\''+n+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(c))+'"></div>\n'+(null==n?'<script type="text/javascript" src="'+e+'">\x3c/script>':
-'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+n+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.setFileData=function(c){c=this.validateFileData(c);this.pages=this.fileNode=this.currentPage=null;var e=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null,g=Editor.extractParserError(e,mxResources.get("invalidOrMissingFile"));if(g)throw EditorUi.debug("EditorUi.setFileData ParserError",
-[this],"data",[c],"node",[e],"cause",[g]),Error(mxResources.get("notADiagramFile")+" ("+g+")");c=null!=e?this.editor.extractGraphModel(e,!0):null;null!=c&&(e=c);if(null!=e&&"mxfile"==e.nodeName&&(c=e.getElementsByTagName("diagram"),g={},0<c.length)){var l=this.getHashObject(),n=null;this.fileNode=e;this.pages=[];for(var u=0;u<c.length;u++){null==c[u].getAttribute("id")&&c[u].setAttribute("id",u);e=new DiagramPage(c[u]);null==e.getName()&&e.setName(mxResources.get("pageWithNumber",[u+1]));this.pages.push(e);
-if(null==l.pageId&&null!=urlParams["page-id"]&&e.getId()==urlParams["page-id"]||null!=l.pageId&&e.getId()==l.pageId)n=e;if(null==g[e.getId()])g[e.getId()]=e;else throw Error(e.getId()+": Duplicate page ID");}this.currentPage=null!=n?n:this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];e=this.currentPage.node}null==this.fileNode&&null!=e&&(this.fileNode=e.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(e.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",
-[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(e);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,this.currentPage.setDiagramModified(!1),this.scrollToPage());if(null!=urlParams["layer-ids"])try{var z=decodeURIComponent(urlParams["layer-ids"]).split(" ");e={};for(u=0;u<z.length;u++)e[z[u]]=!0;var D=this.editor.graph.getModel(),C=D.getChildren(D.root);for(u=0;u<C.length;u++){var A=C[u];D.setVisible(A,e[A.id]||!1)}}catch(Q){}};EditorUi.prototype.getBaseFilename=
+this.clearStatus(),c?e.reloadFile(mxUtils.bind(this,function(){this.spinner.stop();e.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(g){this.spinner.stop();e.handleFileError(g,!0)})):e.synchronizeFile(mxUtils.bind(this,function(){e.handleFileSuccess("manual"==DrawioFile.SYNC)}),mxUtils.bind(this,function(g){e.handleFileError(g,!0)}))))};EditorUi.prototype.getFileData=function(c,e,g,l,p,u,z,E,D,A,P,R,T){p=null!=p?p:!0;u=null!=u?u:!1;A=null!=A?A:!Editor.defaultCompressed;var L=
+this.editor.graph;if((e||!c&&null!=D&&/(\.svg)$/i.test(D.getTitle()))&&null!=this.pages&&this.currentPage!=this.pages[0]){var U=L.getGlobalVariable;L=this.createTemporaryGraph(L.getStylesheet());L.setBackgroundImage=this.editor.graph.setBackgroundImage;L.background=this.editor.graph.background;var n=null!=this.pages?this.pages[0]:null;null==n||this.currentPage==n?L.setBackgroundImage(this.editor.graph.backgroundImage):null!=n.viewState&&null!=n.viewState&&L.setBackgroundImage(n.viewState.backgroundImage);
+L.getGlobalVariable=function(t){return"page"==t&&null!=n?n.getName():"pagenumber"==t?1:U.apply(this,arguments)};document.body.appendChild(L.container);null!=n&&L.model.setRoot(n.root)}z=null!=z?z:this.getXmlFileData(p,u,A,P);D=null!=D?D:this.getCurrentFile();c=this.createFileData(z,L,D,window.location.href,c,e,g,l,p,E,A,R,T);L!=this.editor.graph&&L.container.parentNode.removeChild(L.container);return c};EditorUi.prototype.getHtml=function(c,e,g,l,p,u){u=null!=u?u:!0;var z=null,E=EditorUi.drawHost+
+"/js/embed-static.min.js";if(null!=e){z=u?e.getGraphBounds():e.getBoundingBox(e.getSelectionCells());var D=e.view.scale;u=Math.floor(z.x/D-e.view.translate.x);D=Math.floor(z.y/D-e.view.translate.y);z=e.background;null==p&&(e=this.getBasenames().join(";"),0<e.length&&(E=EditorUi.drawHost+"/embed.js?s="+e));c.setAttribute("x0",u);c.setAttribute("y0",D)}null!=c&&(c.setAttribute("pan","1"),c.setAttribute("zoom","1"),c.setAttribute("resize","0"),c.setAttribute("fit","0"),c.setAttribute("border","20"),
+c.setAttribute("links","1"),null!=l&&c.setAttribute("edit",l));null!=p&&(p=p.replace(/&/g,"&amp;"));c=null!=c?Graph.zapGremlins(mxUtils.getXml(c)):"";l=Graph.compress(c);Graph.decompress(l)!=c&&(l=encodeURIComponent(c));return(null==p?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':"")+"<!DOCTYPE html>\n<html"+(null!=p?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==p?null!=g?"<title>"+mxUtils.htmlEntities(g)+"</title>\n":"":"<title>draw.io</title>\n")+
+(null!=p?'<meta http-equiv="refresh" content="0;URL=\''+p+"'\"/>\n":"")+"</head>\n<body"+(null==p&&null!=z&&z!=mxConstants.NONE?' style="background-color:'+z+';">':">")+'\n<div class="mxgraph" style="position:relative;overflow:auto;width:100%;">\n<div style="width:1px;height:1px;overflow:hidden;">'+l+"</div>\n</div>\n"+(null==p?'<script type="text/javascript" src="'+E+'">\x3c/script>':'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+p+'" target="_blank"><img border="0" src="'+
+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.getHtml2=function(c,e,g,l,p){e=window.DRAWIO_VIEWER_URL||EditorUi.drawHost+"/js/viewer-static.min.js";null!=p&&(p=p.replace(/&/g,"&amp;"));c={highlight:"#0000ff",nav:this.editor.graph.foldingEnabled,resize:!0,xml:Graph.zapGremlins(c),toolbar:"pages zoom layers lightbox"};null!=this.pages&&null!=this.currentPage&&(c.page=mxUtils.indexOf(this.pages,this.currentPage));return(null==p?'\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n':
+"")+"<!DOCTYPE html>\n<html"+(null!=p?' xmlns="http://www.w3.org/1999/xhtml">':">")+"\n<head>\n"+(null==p?null!=g?"<title>"+mxUtils.htmlEntities(g)+"</title>\n":"":"<title>draw.io</title>\n")+(null!=p?'<meta http-equiv="refresh" content="0;URL=\''+p+"'\"/>\n":"")+'<meta charset="utf-8"/>\n</head>\n<body>\n<div class="mxgraph" style="max-width:100%;border:1px solid transparent;" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(c))+'"></div>\n'+(null==p?'<script type="text/javascript" src="'+e+'">\x3c/script>':
+'<a style="position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href="'+p+'" target="_blank"><img border="0" src="'+EditorUi.drawHost+'/images/drawlogo128.png"/></a>')+"\n</body>\n</html>\n"};EditorUi.prototype.setFileData=function(c){c=this.validateFileData(c);this.pages=this.fileNode=this.currentPage=null;var e=null!=c&&0<c.length?mxUtils.parseXml(c).documentElement:null,g=Editor.extractParserError(e,mxResources.get("invalidOrMissingFile"));if(g)throw EditorUi.debug("EditorUi.setFileData ParserError",
+[this],"data",[c],"node",[e],"cause",[g]),Error(mxResources.get("notADiagramFile")+" ("+g+")");c=null!=e?this.editor.extractGraphModel(e,!0):null;null!=c&&(e=c);if(null!=e&&"mxfile"==e.nodeName&&(c=e.getElementsByTagName("diagram"),g={},0<c.length)){var l=this.getHashObject(),p=null;this.fileNode=e;this.pages=[];for(var u=0;u<c.length;u++){null==c[u].getAttribute("id")&&c[u].setAttribute("id",u);e=new DiagramPage(c[u]);null==e.getName()&&e.setName(mxResources.get("pageWithNumber",[u+1]));this.pages.push(e);
+if(null==l.pageId&&null!=urlParams["page-id"]&&e.getId()==urlParams["page-id"]||null!=l.pageId&&e.getId()==l.pageId)p=e;if(null==g[e.getId()])g[e.getId()]=e;else throw Error(e.getId()+": Duplicate page ID");}this.currentPage=null!=p?p:this.pages[Math.max(0,Math.min(this.pages.length-1,urlParams.page||0))];e=this.currentPage.node}null==this.fileNode&&null!=e&&(this.fileNode=e.ownerDocument.createElement("mxfile"),this.currentPage=new DiagramPage(e.ownerDocument.createElement("diagram")),this.currentPage.setName(mxResources.get("pageWithNumber",
+[1])),this.pages=[this.currentPage]);this.editor.setGraphXml(e);null!=this.currentPage&&(this.currentPage.root=this.editor.graph.model.root,this.currentPage.setDiagramModified(!1),this.scrollToPage());if(null!=urlParams["layer-ids"])try{var z=decodeURIComponent(urlParams["layer-ids"]).split(" ");e={};for(u=0;u<z.length;u++)e[z[u]]=!0;var E=this.editor.graph.getModel(),D=E.getChildren(E.root);for(u=0;u<D.length;u++){var A=D[u];E.setVisible(A,e[A.id]||!1)}}catch(P){}};EditorUi.prototype.getBaseFilename=
function(c){var e=this.getCurrentFile();e=null!=e&&null!=e.getTitle()?e.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(e)||/(\.html)$/i.test(e)||/(\.svg)$/i.test(e)||/(\.png)$/i.test(e))e=e.substring(0,e.lastIndexOf("."));/(\.drawio)$/i.test(e)&&(e=e.substring(0,e.lastIndexOf(".")));!c&&null!=this.pages&&1<this.pages.length&&null!=this.currentPage&&null!=this.currentPage.node.getAttribute("name")&&0<this.currentPage.getName().length&&(e=e+"-"+this.currentPage.getName());return e};EditorUi.prototype.downloadFile=
-function(c,e,g,l,n,u,z,D,C,A,Q,S,U,O,p,q){try{l=null!=l?l:this.editor.graph.isSelectionEmpty();var G=this.getBaseFilename(!n),E=G+("xml"==c||"pdf"==c&&Q?".drawio":"")+"."+c;if("xml"==c){var H=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,l,n,null,null,null,e);this.saveData(E,c,H,"text/xml")}else if("html"==c)H=this.getHtml2(this.getFileData(!0),this.editor.graph,G),this.saveData(E,c,H,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==
-c?E=G+".png":"jpeg"==c&&(E=G+".jpg"),this.saveRequest(E,c,mxUtils.bind(this,function(F,M){try{return this.createDownloadRequest(F,c,l,M,z,n,D,C,A,Q,S,void 0,void 0,!u,U,O,p,q)}catch(P){this.handleError(P)}}));else{var L=null,K=mxUtils.bind(this,function(F){F.length<=MAX_REQUEST_SIZE?this.saveData(E,"svg",F,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(L)}))});if("svg"==c){var k=this.editor.graph.background;
-if(z||k==mxConstants.NONE)k=null;var y=this.editor.graph.getSvg(k,null,null,null,null,l);g&&this.editor.graph.addSvgShadow(y);this.editor.convertImages(y,mxUtils.bind(this,mxUtils.bind(this,function(F){this.spinner.stop();K(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(F))})))}else E=G+".svg",L=this.getFileData(!1,!0,null,mxUtils.bind(this,function(F){this.spinner.stop();K(F)}),l)}}catch(F){this.handleError(F)}};EditorUi.prototype.createDownloadRequest=function(c,e,g,l,n,u,z,D,C,
-A,Q,S,U,O,p,q,G,E){c=this.downloadRequestBuilder(c,e,g,l,n,u,z,D,C,A,Q,S,U,O,p,q,G,E);e="";for(var H in c)g=c[H],null!=g&&(e+=H+"="+encodeURIComponent(g)+"&");return new mxXmlRequest(EXPORT_URL,e)};EditorUi.prototype.downloadRequestBuilder=function(c,e,g,l,n,u,z,D,C,A,Q,S,U,O,p,q,G,E){var H=this.editor.graph,L=H.getGraphBounds();g=this.getFileData(!0,null,null,null,g,0==u?!1:"xmlpng"!=e,null,null,null,!Editor.defaultCompressed,"pdf"==e);var K=null,k=null,y=null;if(!EditorUi.isElectronApp&&(L.width*
-L.height>MAX_AREA||g.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};A=A?"1":"0";"pdf"==e&&(null!=Q?(K=Q.from,k=Q.to):0==u&&(y="1"));"xmlpng"==e&&(A="1",e="png");if(("xmlpng"==e||"svg"==e)&&null!=this.pages&&null!=this.currentPage)for(u=0;u<this.pages.length;u++)if(this.pages[u]==this.currentPage){K=u;break}u=H.background;"png"!=e&&"pdf"!=e&&"svg"!=e||!n?n||null!=u&&u!=mxConstants.NONE||(u="#ffffff"):u=mxConstants.NONE;n={globalVars:H.getExportVariables()};C&&(n.grid={size:H.gridSize,
-steps:H.view.gridSteps,color:Editor.isDarkMode()&&"pdf"==e?mxGraphView.prototype.defaultGridColor:H.view.gridColor});Graph.translateDiagram&&(n.diagramLanguage=Graph.diagramLanguage);return{format:e,from:K,to:k,allPages:y,bg:null!=u?u:mxConstants.NONE,base64:l,embedXml:A,xml:g,filename:null!=c?c:"",extras:JSON.stringify(n),scale:z,border:D,pageMargin:p,w:S&&isFinite(S)?S:null,h:U&&isFinite(U)?U:null,crop:null!=O&&O?"1":"0",fit:null!=q&&q?"1":"0",sheetsAcross:G,sheetsDown:E}};EditorUi.prototype.setMode=
+function(c,e,g,l,p,u,z,E,D,A,P,R,T,L,U,n){try{l=null!=l?l:this.editor.graph.isSelectionEmpty();var t=this.getBaseFilename(!p),B=t+("xml"==c||"pdf"==c&&P?".drawio":"")+"."+c;if("xml"==c){var F=Graph.xmlDeclaration+"\n"+this.getFileData(!0,null,null,null,l,p,null,null,null,e);this.saveData(B,c,F,"text/xml")}else if("html"==c)F=this.getHtml2(this.getFileData(!0),this.editor.graph,t),this.saveData(B,c,F,"text/html");else if("svg"!=c&&"xmlsvg"!=c||!this.spinner.spin(document.body,mxResources.get("export")))"xmlpng"==
+c?B=t+".png":"jpeg"==c&&(B=t+".jpg"),this.saveRequest(B,c,mxUtils.bind(this,function(G,N){try{return this.createDownloadRequest(G,c,l,N,z,p,E,D,A,P,R,void 0,void 0,!u,T,L,U,n)}catch(O){this.handleError(O)}}));else{var J=null,K=mxUtils.bind(this,function(G){G.length<=MAX_REQUEST_SIZE?this.saveData(B,"svg",G,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(J)}))});if("svg"==c){var k=this.editor.graph.background;
+if(z||k==mxConstants.NONE)k=null;var v=this.editor.graph.getSvg(k,null,null,null,null,l);g&&this.editor.graph.addSvgShadow(v);this.editor.convertImages(v,mxUtils.bind(this,mxUtils.bind(this,function(G){this.spinner.stop();K(Graph.xmlDeclaration+"\n"+Graph.svgDoctype+"\n"+mxUtils.getXml(G))})))}else B=t+".svg",J=this.getFileData(!1,!0,null,mxUtils.bind(this,function(G){this.spinner.stop();K(G)}),l)}}catch(G){this.handleError(G)}};EditorUi.prototype.createDownloadRequest=function(c,e,g,l,p,u,z,E,D,
+A,P,R,T,L,U,n,t,B){c=this.downloadRequestBuilder(c,e,g,l,p,u,z,E,D,A,P,R,T,L,U,n,t,B);e="";for(var F in c)g=c[F],null!=g&&(e+=F+"="+encodeURIComponent(g)+"&");return new mxXmlRequest(EXPORT_URL,e)};EditorUi.prototype.downloadRequestBuilder=function(c,e,g,l,p,u,z,E,D,A,P,R,T,L,U,n,t,B){var F=this.editor.graph,J=F.getGraphBounds();g=this.getFileData(!0,null,null,null,g,0==u?!1:"xmlpng"!=e,null,null,null,!Editor.defaultCompressed,"pdf"==e);var K=null,k=null,v=null;if(!EditorUi.isElectronApp&&(J.width*
+J.height>MAX_AREA||g.length>MAX_REQUEST_SIZE))throw{message:mxResources.get("drawingTooLarge")};A=A?"1":"0";"pdf"==e&&(null!=P?(K=P.from,k=P.to):0==u&&(v="1"));"xmlpng"==e&&(A="1",e="png");if(("xmlpng"==e||"svg"==e)&&null!=this.pages&&null!=this.currentPage)for(u=0;u<this.pages.length;u++)if(this.pages[u]==this.currentPage){K=u;break}u=F.background;"png"!=e&&"pdf"!=e&&"svg"!=e||!p?p||null!=u&&u!=mxConstants.NONE||(u="#ffffff"):u=mxConstants.NONE;p={globalVars:F.getExportVariables()};D&&(p.grid={size:F.gridSize,
+steps:F.view.gridSteps,color:Editor.isDarkMode()&&"pdf"==e?mxGraphView.prototype.defaultGridColor:F.view.gridColor});Graph.translateDiagram&&(p.diagramLanguage=Graph.diagramLanguage);return{format:e,from:K,to:k,allPages:v,bg:null!=u?u:mxConstants.NONE,base64:l,embedXml:A,xml:g,filename:null!=c?c:"",extras:JSON.stringify(p),scale:z,border:E,pageMargin:U,w:R&&isFinite(R)?R:null,h:T&&isFinite(T)?T:null,crop:null!=L&&L?"1":"0",fit:null!=n&&n?"1":"0",sheetsAcross:t,sheetsDown:B}};EditorUi.prototype.setMode=
function(c,e){this.mode=c};EditorUi.prototype.getDiagramId=function(){var c=window.location.hash;null!=c&&0<c.length&&(c=c.substring(1));if(null!=c&&1<c.length){var e=c.indexOf("#");0<=e&&(c=c.substring(0,e))}return c};EditorUi.prototype.getHashObject=function(){var c=window.location.hash,e={};if(null!=c&&0<c.length){var g=c.lastIndexOf("#");if(0<g){c=decodeURIComponent(c.substring(g+1));try{e=JSON.parse(c)}catch(l){}}}return e};EditorUi.prototype.updateHashObject=function(){if(null!=this.currentFile&&
null!=this.currentPage&&""!=this.currentFile.getHash()){var c=this.getHashObject();c.pageId=this.currentPage.getId();this.setHashObject(c)}else this.setHashObject(null)};EditorUi.prototype.setHashObject=function(c){if(Editor.enableHashObjects){var e=window.location.hash;if(null==e||""==e)e="#";var g=e.lastIndexOf("#");0<g&&(e=e.substring(0,g));try{null==c||mxUtils.isEmptyObject(c)||(e=e+"#"+encodeURIComponent(JSON.stringify(c)))}catch(l){}0<g&&0<e.lastIndexOf("#")?window.location.hash=e:window.location.replace(e)}};
-EditorUi.prototype.loadDescriptor=function(c,e,g){var l=window.location.hash,n=mxUtils.bind(this,function(z){var D=null!=c.data?c.data:"";null!=z&&0<z.length&&(0<D.length&&(D+="\n"),D+=z);z=new LocalFile(this,"csv"!=c.format&&0<D.length?D:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);z.getHash=function(){return l};this.fileLoaded(z);"csv"==c.format&&this.importCsv(D,mxUtils.bind(this,function(U){this.editor.undoManager.clear();this.editor.setModified(!1);
-this.clearStatus()}));if(null!=c.update){var C=null!=c.interval?parseInt(c.interval):6E4,A=null,Q=mxUtils.bind(this,function(){var U=this.currentPage;mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(O){U===this.currentPage&&(200<=O.getStatus()&&300>=O.getStatus()?(this.updateDiagram(O.getText()),S()):this.handleError({message:mxResources.get("error")+" "+O.getStatus()}))}),mxUtils.bind(this,function(O){this.handleError(O)}))}),S=
-mxUtils.bind(this,function(){window.clearTimeout(A);A=window.setTimeout(Q,C)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){S();Q()}));S();Q()}null!=e&&e()});if(null!=c.url&&0<c.url.length){var u=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(u,mxUtils.bind(this,function(z){n(z)}),mxUtils.bind(this,function(z){null!=g&&g(z)}))}else n("")};EditorUi.prototype.updateDiagram=function(c){function e(L){var K=new mxCellOverlay(L.image||n.warningImage,L.tooltip,L.align,L.valign,
-L.offset);K.addListener(mxEvent.CLICK,function(k,y){l.alert(L.tooltip)});return K}var g=null,l=this;if(null!=c&&0<c.length&&(g=mxUtils.parseXml(c),c=null!=g?g.documentElement:null,null!=c&&"updates"==c.nodeName)){var n=this.editor.graph,u=n.getModel();u.beginUpdate();var z=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var D=u.getCell(c.getAttribute("id"));if(null!=D){try{var C=c.getAttribute("value");if(null!=C){var A=mxUtils.parseXml(C).documentElement;if(null!=A)if("1"==A.getAttribute("replace-value"))u.setValue(D,
-A);else for(var Q=A.attributes,S=0;S<Q.length;S++)n.setAttributeForCell(D,Q[S].nodeName,0<Q[S].nodeValue.length?Q[S].nodeValue:null)}}catch(L){null!=window.console&&console.log("Error in value for "+D.id+": "+L)}try{var U=c.getAttribute("style");null!=U&&n.model.setStyle(D,U)}catch(L){null!=window.console&&console.log("Error in style for "+D.id+": "+L)}try{var O=c.getAttribute("icon");if(null!=O){var p=0<O.length?JSON.parse(O):null;null!=p&&p.append||n.removeCellOverlays(D);null!=p&&n.addCellOverlay(D,
-e(p))}}catch(L){null!=window.console&&console.log("Error in icon for "+D.id+": "+L)}try{var q=c.getAttribute("geometry");if(null!=q){q=JSON.parse(q);var G=n.getCellGeometry(D);if(null!=G){G=G.clone();for(key in q){var E=parseFloat(q[key]);"dx"==key?G.x+=E:"dy"==key?G.y+=E:"dw"==key?G.width+=E:"dh"==key?G.height+=E:G[key]=parseFloat(q[key])}n.model.setGeometry(D,G)}}}catch(L){null!=window.console&&console.log("Error in icon for "+D.id+": "+L)}}}else if("model"==c.nodeName){for(var H=c.firstChild;null!=
-H&&H.nodeType!=mxConstants.NODETYPE_ELEMENT;)H=H.nextSibling;null!=H&&(new mxCodec(c.firstChild)).decode(H,u)}else if("view"==c.nodeName){if(c.hasAttribute("scale")&&(n.view.scale=parseFloat(c.getAttribute("scale"))),c.hasAttribute("dx")||c.hasAttribute("dy"))n.view.translate=new mxPoint(parseFloat(c.getAttribute("dx")||0),parseFloat(c.getAttribute("dy")||0))}else"fit"==c.nodeName&&(z=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{u.endUpdate()}null!=
-z&&this.chromelessResize&&this.chromelessResize(!0,z)}return g};EditorUi.prototype.getCopyFilename=function(c,e){var g=null!=c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var l=g.lastIndexOf(".");0<=l&&(c=g.substring(l),g=g.substring(0,l));if(e){e=g;var n=new Date;g=n.getFullYear();l=n.getMonth()+1;var u=n.getDate(),z=n.getHours(),D=n.getMinutes();n=n.getSeconds();g=e+(" "+(g+"-"+l+"-"+u+"-"+z+"-"+D+"-"+n))}return g=mxResources.get("copyOf",[g])+c};EditorUi.prototype.logIfModified=
-function(c,e){try{null!=c&&e&&EditorUi.debug("File.closed",[c])}catch(g){}};EditorUi.prototype.fileLoaded=function(c,e,g){var l=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var n=!1;this.hideDialog();null!=l&&(l.removeListener(this.descriptorChangedListener),this.logIfModified(l,!0),l.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var u=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=l&&
+EditorUi.prototype.loadDescriptor=function(c,e,g){var l=window.location.hash,p=mxUtils.bind(this,function(z){var E=null!=c.data?c.data:"";null!=z&&0<z.length&&(0<E.length&&(E+="\n"),E+=z);z=new LocalFile(this,"csv"!=c.format&&0<E.length?E:this.emptyDiagramXml,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,!0);z.getHash=function(){return l};this.fileLoaded(z);"csv"==c.format&&this.importCsv(E,mxUtils.bind(this,function(T){this.editor.undoManager.clear();this.editor.setModified(!1);
+this.clearStatus()}));if(null!=c.update){var D=null!=c.interval?parseInt(c.interval):6E4,A=null,P=mxUtils.bind(this,function(){var T=this.currentPage;mxUtils.post(c.update,"xml="+encodeURIComponent(mxUtils.getXml(this.editor.getGraphXml())),mxUtils.bind(this,function(L){T===this.currentPage&&(200<=L.getStatus()&&300>=L.getStatus()?(this.updateDiagram(L.getText()),R()):this.handleError({message:mxResources.get("error")+" "+L.getStatus()}))}),mxUtils.bind(this,function(L){this.handleError(L)}))}),R=
+mxUtils.bind(this,function(){window.clearTimeout(A);A=window.setTimeout(P,D)});this.editor.addListener("pageSelected",mxUtils.bind(this,function(){R();P()}));R();P()}null!=e&&e()});if(null!=c.url&&0<c.url.length){var u=this.editor.getProxiedUrl(c.url);this.editor.loadUrl(u,mxUtils.bind(this,function(z){p(z)}),mxUtils.bind(this,function(z){null!=g&&g(z)}))}else p("")};EditorUi.prototype.updateDiagram=function(c){function e(J){var K=new mxCellOverlay(J.image||p.warningImage,J.tooltip,J.align,J.valign,
+J.offset);K.addListener(mxEvent.CLICK,function(k,v){l.alert(J.tooltip)});return K}var g=null,l=this;if(null!=c&&0<c.length&&(g=mxUtils.parseXml(c),c=null!=g?g.documentElement:null,null!=c&&"updates"==c.nodeName)){var p=this.editor.graph,u=p.getModel();u.beginUpdate();var z=null;try{for(c=c.firstChild;null!=c;){if("update"==c.nodeName){var E=u.getCell(c.getAttribute("id"));if(null!=E){try{var D=c.getAttribute("value");if(null!=D){var A=mxUtils.parseXml(D).documentElement;if(null!=A)if("1"==A.getAttribute("replace-value"))u.setValue(E,
+A);else for(var P=A.attributes,R=0;R<P.length;R++)p.setAttributeForCell(E,P[R].nodeName,0<P[R].nodeValue.length?P[R].nodeValue:null)}}catch(J){null!=window.console&&console.log("Error in value for "+E.id+": "+J)}try{var T=c.getAttribute("style");null!=T&&p.model.setStyle(E,T)}catch(J){null!=window.console&&console.log("Error in style for "+E.id+": "+J)}try{var L=c.getAttribute("icon");if(null!=L){var U=0<L.length?JSON.parse(L):null;null!=U&&U.append||p.removeCellOverlays(E);null!=U&&p.addCellOverlay(E,
+e(U))}}catch(J){null!=window.console&&console.log("Error in icon for "+E.id+": "+J)}try{var n=c.getAttribute("geometry");if(null!=n){n=JSON.parse(n);var t=p.getCellGeometry(E);if(null!=t){t=t.clone();for(key in n){var B=parseFloat(n[key]);"dx"==key?t.x+=B:"dy"==key?t.y+=B:"dw"==key?t.width+=B:"dh"==key?t.height+=B:t[key]=parseFloat(n[key])}p.model.setGeometry(E,t)}}}catch(J){null!=window.console&&console.log("Error in icon for "+E.id+": "+J)}}}else if("model"==c.nodeName){for(var F=c.firstChild;null!=
+F&&F.nodeType!=mxConstants.NODETYPE_ELEMENT;)F=F.nextSibling;null!=F&&(new mxCodec(c.firstChild)).decode(F,u)}else if("view"==c.nodeName){if(c.hasAttribute("scale")&&(p.view.scale=parseFloat(c.getAttribute("scale"))),c.hasAttribute("dx")||c.hasAttribute("dy"))p.view.translate=new mxPoint(parseFloat(c.getAttribute("dx")||0),parseFloat(c.getAttribute("dy")||0))}else"fit"==c.nodeName&&(z=c.hasAttribute("max-scale")?parseFloat(c.getAttribute("max-scale")):1);c=c.nextSibling}}finally{u.endUpdate()}null!=
+z&&this.chromelessResize&&this.chromelessResize(!0,z)}return g};EditorUi.prototype.getCopyFilename=function(c,e){var g=null!=c&&null!=c.getTitle()?c.getTitle():this.defaultFilename;c="";var l=g.lastIndexOf(".");0<=l&&(c=g.substring(l),g=g.substring(0,l));if(e){e=g;var p=new Date;g=p.getFullYear();l=p.getMonth()+1;var u=p.getDate(),z=p.getHours(),E=p.getMinutes();p=p.getSeconds();g=e+(" "+(g+"-"+l+"-"+u+"-"+z+"-"+E+"-"+p))}return g=mxResources.get("copyOf",[g])+c};EditorUi.prototype.logIfModified=
+function(c,e){try{null!=c&&e&&EditorUi.debug("File.closed",[c])}catch(g){}};EditorUi.prototype.fileLoaded=function(c,e,g){var l=this.getCurrentFile();this.fileEditable=this.fileLoadedError=null;this.setCurrentFile(null);var p=!1;this.hideDialog();null!=l&&(l.removeListener(this.descriptorChangedListener),this.logIfModified(l,!0),l.close());this.editor.graph.model.clear();this.editor.undoManager.clear();var u=mxUtils.bind(this,function(){this.setGraphEnabled(!1);this.setCurrentFile(null);null!=l&&
this.updateDocumentTitle();this.editor.graph.model.clear();this.editor.undoManager.clear();this.setBackgroundImage(null);!e&&null!=window.location.hash&&0<window.location.hash.length&&(window.location.hash="");null!=this.fname&&(this.fname.innerText="");this.clearStatus();this.updateUi();e||this.showSplash()});if(null!=c)try{this.openingFile=!0;this.setCurrentFile(c);c.addListener("descriptorChanged",this.descriptorChangedListener);c.addListener("contentChanged",this.descriptorChangedListener);c.open();
delete this.openingFile;this.setGraphEnabled(!0);this.setMode(c.getMode());this.editor.graph.model.prefix=Editor.guid()+"-";this.editor.undoManager.clear();this.descriptorChanged();this.updateUi();c.isEditable()?c.isModified()?c.addUnsavedStatus():this.clearStatus():this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus('<div class="geStatusBox" title="'+mxUtils.htmlEntities(mxResources.get("readOnly"))+'">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</div>")}));!this.editor.isChromelessView()||
-this.editor.editable?(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self!==window.top&&window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();null!=g&&g();this.editor.fireEvent(new mxEventObject("fileLoaded"));n=!0;if(!this.isOffline()&&null!=c.getMode()){var z="1"==urlParams.sketch?"sketch":uiTheme;if(null==z)z="default";else if("sketch"==z||"min"==z)z+=Editor.isDarkMode()?"-dark":"-light"}EditorUi.debug("File.opened",
-[c]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==c.getMode()&&c.getMode()!=App.MODE_DEVICE&&null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(D){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(D){}}catch(D){this.fileLoadedError=D;if(null!=c)try{c.close()}catch(C){}c=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,
-mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=l?this.fileLoaded(l)||u():u()});e?c():(null!=D.fallbackFileData&&(D.alternateAction={label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var C=new LocalFile(this,D.fallbackFileData,this.defaultFilename,!0);this.fileLoaded(C)})}),this.handleError(D,mxResources.get("errorLoadingFile"),c,!0,null,null,!0))}else u();return n};EditorUi.prototype.getHashValueForPages=function(c,e){var g=
-0,l=new mxGraphModel,n=new mxCodec;null!=e&&(e.byteCount=0,e.attrCount=0,e.eltCount=0,e.nodeCount=0);for(var u=0;u<c.length;u++){this.updatePageRoot(c[u]);var z=c[u].node.cloneNode(!1);z.removeAttribute("name");l.root=c[u].root;var D=n.encode(l);this.editor.graph.saveViewState(c[u].viewState,D,!0);D.removeAttribute("pageWidth");D.removeAttribute("pageHeight");z.appendChild(D);null!=e&&(e.eltCount+=z.getElementsByTagName("*").length,e.nodeCount+=z.getElementsByTagName("mxCell").length);g=(g<<5)-g+
-this.hashValue(z,function(C,A,Q,S){return!S||"mxGeometry"!=C.nodeName&&"mxPoint"!=C.nodeName||"x"!=A&&"y"!=A&&"width"!=A&&"height"!=A?S&&"mxCell"==C.nodeName&&"previous"==A?null:Q:Math.round(Q)},e)<<0}return g};EditorUi.prototype.hashValue=function(c,e,g){var l=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===typeof c.nodeName&&"function"===typeof c.getAttribute){null!=c.nodeName&&(l^=this.hashValue(c.nodeName,e,g));if(null!=c.attributes){null!=g&&(g.attrCount+=c.attributes.length);
-for(var n=0;n<c.attributes.length;n++){var u=c.attributes[n].name,z=null!=e?e(c,u,c.attributes[n].value,!0):c.attributes[n].value;null!=z&&(l^=this.hashValue(u,e,g)+this.hashValue(z,e,g))}}if(null!=c.childNodes)for(n=0;n<c.childNodes.length;n++)l=(l<<5)-l+this.hashValue(c.childNodes[n],e,g)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);e=0;null!=g&&(g.byteCount+=c.length);for(n=0;n<c.length;n++)e=(e<<5)-e+c.charCodeAt(n)<<0;l^=e}return l};EditorUi.prototype.descriptorChanged=function(){};
-EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,e,g,l,n,u,z){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(c){null==c&&(c=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};
+this.editor.editable?(this.editor.graph.selectUnlockedLayer(),this.showLayersDialog(),this.restoreLibraries(),window.self!==window.top&&window.focus()):this.editor.graph.isLightboxView()&&this.lightboxFit();this.chromelessResize&&this.chromelessResize();null!=g&&g();this.editor.fireEvent(new mxEventObject("fileLoaded"));p=!0;if(!this.isOffline()&&null!=c.getMode()){var z="1"==urlParams.sketch?"sketch":uiTheme;if(null==z)z="default";else if("sketch"==z||"min"==z)z+=Editor.isDarkMode()?"-dark":"-light"}EditorUi.debug("File.opened",
+[c]);"1"==urlParams.viewerOnlyMsg&&this.showAlert(mxResources.get("viewerOnlyMsg"));if(this.editor.editable&&this.mode==c.getMode()&&c.getMode()!=App.MODE_DEVICE&&null!=c.getMode())try{this.addRecent({id:c.getHash(),title:c.getTitle(),mode:c.getMode()})}catch(E){}try{mxSettings.setOpenCounter(mxSettings.getOpenCounter()+1),mxSettings.save()}catch(E){}}catch(E){this.fileLoadedError=E;if(null!=c)try{c.close()}catch(D){}c=mxUtils.bind(this,function(){null!=urlParams.url&&this.spinner.spin(document.body,
+mxResources.get("reconnecting"))?window.location.search=this.getSearch(["url"]):null!=l?this.fileLoaded(l)||u():u()});e?c():(null!=E.fallbackFileData&&(E.alternateAction={label:mxResources.get("makeCopy"),funct:mxUtils.bind(this,function(){this.hideDialog();var D=new LocalFile(this,E.fallbackFileData,this.defaultFilename,!0);this.fileLoaded(D)})}),this.handleError(E,mxResources.get("errorLoadingFile"),c,!0,null,null,!0))}else u();return p};EditorUi.prototype.getHashValueForPages=function(c,e){var g=
+0,l=new mxGraphModel,p=new mxCodec;null!=e&&(e.byteCount=0,e.attrCount=0,e.eltCount=0,e.nodeCount=0);for(var u=0;u<c.length;u++){this.updatePageRoot(c[u]);var z=c[u].node.cloneNode(!1);z.removeAttribute("name");l.root=c[u].root;var E=p.encode(l);this.editor.graph.saveViewState(c[u].viewState,E,!0);E.removeAttribute("pageWidth");E.removeAttribute("pageHeight");z.appendChild(E);null!=e&&(e.eltCount+=z.getElementsByTagName("*").length,e.nodeCount+=z.getElementsByTagName("mxCell").length);g=(g<<5)-g+
+this.hashValue(z,function(D,A,P,R){return!R||"mxGeometry"!=D.nodeName&&"mxPoint"!=D.nodeName||"x"!=A&&"y"!=A&&"width"!=A&&"height"!=A?R&&"mxCell"==D.nodeName&&"previous"==A?null:P:Math.round(P)},e)<<0}return g};EditorUi.prototype.hashValue=function(c,e,g){var l=0;if(null!=c&&"object"===typeof c&&"number"===typeof c.nodeType&&"string"===typeof c.nodeName&&"function"===typeof c.getAttribute){null!=c.nodeName&&(l^=this.hashValue(c.nodeName,e,g));if(null!=c.attributes){null!=g&&(g.attrCount+=c.attributes.length);
+for(var p=0;p<c.attributes.length;p++){var u=c.attributes[p].name,z=null!=e?e(c,u,c.attributes[p].value,!0):c.attributes[p].value;null!=z&&(l^=this.hashValue(u,e,g)+this.hashValue(z,e,g))}}if(null!=c.childNodes)for(p=0;p<c.childNodes.length;p++)l=(l<<5)-l+this.hashValue(c.childNodes[p],e,g)<<0}else if(null!=c&&"function"!==typeof c){c=String(c);e=0;null!=g&&(g.byteCount+=c.length);for(p=0;p<c.length;p++)e=(e<<5)-e+c.charCodeAt(p)<<0;l^=e}return l};EditorUi.prototype.descriptorChanged=function(){};
+EditorUi.prototype.restoreLibraries=function(){};EditorUi.prototype.saveLibrary=function(c,e,g,l,p,u,z){};EditorUi.prototype.isScratchpadEnabled=function(){return isLocalStorage||mxClient.IS_CHROMEAPP};EditorUi.prototype.toggleScratchpad=function(){this.isScratchpadEnabled()&&(null==this.scratchpad?StorageFile.getFileContent(this,".scratchpad",mxUtils.bind(this,function(c){null==c&&(c=this.emptyLibraryXml);this.loadLibrary(new StorageLibrary(this,c,".scratchpad"))})):this.closeLibrary(this.scratchpad))};
EditorUi.prototype.createLibraryDataFromImages=function(c){if(!Editor.defaultCompressed)for(var e=0;e<c.length;e++)null!=c[e].xml&&"<"!=c[e].xml.charAt(0)&&(c[e].xml=mxUtils.trim(Graph.decompress(c[e].xml)));e=mxUtils.createXmlDocument();var g=e.createElement("mxlibrary");mxUtils.setTextContent(g,JSON.stringify(c,null,2));e.appendChild(g);return mxUtils.getXml(e,"\n")};EditorUi.prototype.closeLibrary=function(c){null!=c&&(this.removeLibrarySidebar(c.getHash()),c.constructor!=LocalLibrary&&mxSettings.removeCustomLibrary(c.getHash()),
".scratchpad"==c.title&&(this.scratchpad=null))};EditorUi.prototype.removeLibrarySidebar=function(c){var e=this.sidebar.palettes[c];if(null!=e){for(var g=0;g<e.length;g++)e[g].parentNode.removeChild(e[g]);delete this.sidebar.palettes[c]}};EditorUi.prototype.repositionLibrary=function(c,e){var g=this.sidebar.getEntryContainer();if(!this.sidebar.appendCustomLibraries||null!=c||!e){null==c&&(e=this.sidebar.palettes["L.scratchpad"],null==e&&(e=this.sidebar.palettes.search),null!=e&&(c=e[e.length-1].nextSibling));
c=null!=c?c:g.firstChild.nextSibling.nextSibling;e=g.lastChild;var l=e.previousSibling;g.insertBefore(e,c);g.insertBefore(l,e)}};EditorUi.prototype.loadLibrary=function(c,e){var g=mxUtils.parseXml(c.getData());if("mxlibrary"==g.documentElement.nodeName){var l=JSON.parse(mxUtils.getTextContent(g.documentElement));this.libraryLoaded(c,l,g.documentElement.getAttribute("title"),e)}else throw{message:mxResources.get("notALibraryFile")};};EditorUi.prototype.getLibraryStorageHint=function(c){return""};EditorUi.prototype.showSidebar=
-function(){null!=this.sidebarWindow?this.sidebarWindow.window.setVisible(!0):this.toggleShapesPanel(!0)};EditorUi.prototype.libraryLoaded=function(c,e,g,l){if(null!=this.sidebar){c.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(c.getHash());var n=null;if(c.constructor!=StorageLibrary||".scratchpad"!=c.title){null==this.openLibraries&&(this.openLibraries=[]);for(var u=0;u<this.openLibraries.length;u++)if(this.openLibraries[u].file.getHash()==c.getHash()){mxUtils.remove(this.openLibraries[u],
-this.openLibraries);break}n={file:c,images:e,title:g,expand:l};this.openLibraries.push(n)}else this.scratchpad=c;u=this.sidebar.palettes[c.getHash()];u=null!=u?u[u.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var z=null,D=mxUtils.bind(this,function(E,H){0==E.length&&c.isEditable()?(null==z&&(z=document.createElement("div"),z.className="geDropTarget",mxUtils.write(z,mxResources.get("dragElementsHere"))),H.appendChild(z)):this.addLibraryEntries(E,H)});null!=this.sidebar&&null!=
-e&&this.sidebar.addEntries(e);null==g&&(g=c.getTitle(),null!=g&&/(\.xml)$/i.test(g)&&(g=g.substring(0,g.lastIndexOf("."))));var C=this.sidebar.addPalette(c.getHash(),g,null!=l?l:!0,mxUtils.bind(this,function(E){D(e,E)}));null!=n&&(n.div=C);this.repositionLibrary(u,"L.scratchpad"!=c.getHash());l=C.parentNode.previousSibling;g=l.getAttribute("title");null!=g&&0<g.length&&".scratchpad"!=c.title&&l.setAttribute("title",this.getLibraryStorageHint(c)+"\n"+g);var A=document.createElement("div");A.style.backgroundColor=
-"inherit";l.style.position="relative";var Q=document.createElement("img");Q.className="geLibraryButton";Q.setAttribute("src",Editor.crossImage);Q.setAttribute("title",mxResources.get("close"));var S=null;if(".scratchpad"!=c.title||this.closableScratchpad)A.appendChild(Q),mxEvent.addListener(Q,"click",mxUtils.bind(this,function(E){if(!mxEvent.isConsumed(E)){var H=mxUtils.bind(this,function(){null!=n&&mxUtils.remove(n,this.openLibraries);this.closeLibrary(c)});null!=S?this.confirm(mxResources.get("allChangesLost"),
-null,H,mxResources.get("cancel"),mxResources.get("discardChanges")):H();mxEvent.consume(E)}}));if(c.isEditable()){var U=this.editor.graph,O=null;g=mxUtils.bind(this,function(E){this.showLibraryDialog(c.getTitle(),C,e,c,c.getMode());mxEvent.consume(E)});var p=mxUtils.bind(this,function(E){c.setModified(!0);c.isAutosave()?(null!=O&&null!=O.parentNode&&O.parentNode.removeChild(O),O=Q.cloneNode(!1),O.setAttribute("src",Editor.spinImage),O.setAttribute("title",mxResources.get("saving")),O.style.cursor=
-"default",O.style.marginRight="2px",O.style.marginTop="-2px",A.insertBefore(O,A.firstChild),this.saveLibrary(c.getTitle(),e,c,c.getMode(),!0,!0,function(){null!=O&&null!=O.parentNode&&O.parentNode.removeChild(O)})):null==S&&(S=Q.cloneNode(!1),S.setAttribute("src",Editor.saveImage),S.setAttribute("title",mxResources.get("save")),A.insertBefore(S,A.firstChild),mxEvent.addListener(S,"click",mxUtils.bind(this,function(H){this.saveLibrary(c.getTitle(),e,c,c.getMode(),c.constructor==LocalLibrary,!0,function(){null==
-S||c.isModified()||(S.parentNode.removeChild(S),S=null)});mxEvent.consume(H)})))}),q=mxUtils.bind(this,function(E,H,L,K){E=U.cloneCells(mxUtils.sortCells(U.model.getTopmostCells(E)));for(var k=0;k<E.length;k++){var y=U.getCellGeometry(E[k]);null!=y&&y.translate(-H.x,-H.y)}C.appendChild(this.sidebar.createVertexTemplateFromCells(E,H.width,H.height,K||"",!0,null,!1));E=mxUtils.getXml(this.editor.graph.encodeCells(E));Editor.defaultCompressed&&(E=Graph.compress(E));H={xml:E,w:H.width,h:H.height};null!=
-K&&(H.title=K);e.push(H);p(L);null!=z&&null!=z.parentNode&&0<e.length&&(z.parentNode.removeChild(z),z=null)}),G=mxUtils.bind(this,function(E){if(U.isSelectionEmpty())U.getRubberband().isActive()?(U.getRubberband().execute(E),U.getRubberband().reset()):this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var H=U.getSelectionCells(),L=U.view.getBounds(H);if(null!=L&&0<L.width&&0<L.height){var K=U.view.scale;L.x/=K;L.y/=K;L.width/=K;L.height/=K;L.x-=
-U.view.translate.x;L.y-=U.view.translate.y;q(H,L)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(E)});mxEvent.addGestureListeners(C,function(){},mxUtils.bind(this,function(E){U.isMouseDown&&null!=U.panningManager&&null!=U.graphHandler.first&&(U.graphHandler.suspend(),null!=U.graphHandler.hint&&(U.graphHandler.hint.style.visibility="hidden"),C.style.backgroundColor="light-dark(#fefefe, #000000)",C.style.cursor="copy",U.panningManager.stop(),
-U.autoScroll=!1,mxEvent.consume(E))}),mxUtils.bind(this,function(E){U.isMouseDown&&null!=U.panningManager&&null!=U.graphHandler&&(C.style.backgroundColor="",C.style.cursor="default",this.sidebar.showTooltips=!0,U.panningManager.stop(),U.graphHandler.reset(),U.isMouseDown=!1,U.autoScroll=!0,G(E),mxEvent.consume(E))}));mxEvent.addListener(C,"mouseleave",mxUtils.bind(this,function(E){U.isMouseDown&&null!=U.graphHandler.first&&(U.graphHandler.resume(),null!=U.graphHandler.hint&&(U.graphHandler.hint.style.visibility=
-"visible"),C.style.backgroundColor="",C.style.cursor="",U.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(C,"dragover",mxUtils.bind(this,function(E){C.style.backgroundColor="light-dark(#fefefe, #000000)";E.dataTransfer.dropEffect="copy";C.style.cursor="copy";this.sidebar.hideTooltip();E.stopPropagation();E.preventDefault()})),mxEvent.addListener(C,"drop",mxUtils.bind(this,function(E){C.style.cursor="";C.style.backgroundColor="";0<E.dataTransfer.files.length&&this.importFiles(E.dataTransfer.files,
-0,0,this.maxImageSize,mxUtils.bind(this,function(H,L,K,k,y,F,M,P,R){if(null!=H&&"image/"==L.substring(0,6))H="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(H),H=[new mxCell("",new mxGeometry(0,0,y,F),H)],H[0].vertex=!0,q(H,new mxRectangle(0,0,y,F),E,mxEvent.isAltDown(E)?null:M.substring(0,M.lastIndexOf(".")).replace(/_/g," ")),null!=z&&null!=z.parentNode&&0<e.length&&(z.parentNode.removeChild(z),z=null);else{var T=!1,V=mxUtils.bind(this,
-function(W,X){null!=W&&"application/pdf"==X&&(X=Editor.extractGraphModelFromPdf(W),null!=X&&0<X.length&&(W=X));if(null!=W)if(W=mxUtils.parseXml(W),"mxlibrary"==W.documentElement.nodeName)try{var Y=JSON.parse(mxUtils.getTextContent(W.documentElement));D(Y,C);e=e.concat(Y);p(E);this.spinner.stop();T=!0}catch(ka){}else if("mxfile"==W.documentElement.nodeName)try{var Z=W.documentElement.getElementsByTagName("diagram");for(Y=0;Y<Z.length;Y++){var da=this.stringToCells(Editor.getDiagramNodeXml(Z[Y])),ea=
-this.editor.graph.getBoundingBoxFromGeometry(da);null!=ea&&q(da,new mxRectangle(0,0,ea.width,ea.height),E)}T=!0}catch(ka){null!=window.console&&console.log("error in drop handler:",ka)}T||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=z&&null!=z.parentNode&&0<e.length&&(z.parentNode.removeChild(z),z=null)});null!=R&&null!=M&&EditorUi.isVisioFilename(M)?this.importVisio(R,function(W){V(W,"text/xml")},null,M):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(H,
-M)&&null!=R?this.isExternalDataComms()?this.parseFile(R,mxUtils.bind(this,function(W){4==W.readyState&&(this.spinner.stop(),200<=W.status&&299>=W.status?V(W.responseText,"text/xml"):this.handleError({message:mxResources.get(413==W.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):V(H,L)}}));E.stopPropagation();E.preventDefault()})),mxEvent.addListener(C,"dragleave",
-function(E){C.style.cursor="";C.style.backgroundColor="";E.stopPropagation();E.preventDefault()}));Q=Q.cloneNode(!1);Q.setAttribute("src",Editor.editImage);Q.setAttribute("title",mxResources.get("edit"));A.insertBefore(Q,A.firstChild);mxEvent.addListener(Q,"click",g);g=Q.cloneNode(!1);g.setAttribute("src",Editor.plusImage);g.setAttribute("title",mxResources.get("add"));A.insertBefore(g,A.firstChild);mxEvent.addListener(g,"click",G);".scratchpad"==c.title&&(this.addSelectionToScratchpad=G);this.isOffline()||
-".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(g=this.createHelpIcon(EditorUi.scratchpadHelpLink,!0),g.className="geLibraryButton",A.insertBefore(g,A.firstChild))}l.appendChild(A);this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(c,e){for(var g=0;g<c.length;g++)try{var l=c[g],n=l.data;if(null!=n){n="data:"==n.substring(0,5)?this.convertDataUri(n):n;var u="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";
-"fixed"==l.aspect&&(u+="aspect=fixed;");u=u+"image="+n+";";null!=l.style&&(u+=l.style);e.appendChild(this.sidebar.createVertexTemplate(u,l.w,l.h,"",l.title||"",!1,null,!0))}else if(null!=l.xml){var z=this.stringToCells("<"==l.xml.charAt(0)?l.xml:Graph.decompress(l.xml)),D=0==z.length?mxResources.get("drawingEmpty"):null!=l.title?l.title:"";e.appendChild(this.sidebar.createVertexTemplateFromCells(z,l.w,l.h,D,!0,null,!0))}}catch(C){D=null!=C.message?mxResources.get("error")+": "+C.message:String(C),
-u=this.sidebar.createVertexTemplateFromCells(null,l.w,l.h,D,!0,null,!0),e.appendChild(u)}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=
-function(c,e,g,l,n,u,z){c=new ImageDialog(this,c,e,g,l,n,u,z);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,e,g,l,n,u){var z=localStorage.getItem(e);c=new TextareaDialog(this,c,null!=z?JSON.stringify(JSON.parse(z),null,2):"",mxUtils.bind(this,function(D){if(null!=D)try{if(null!=u&&u(D),D==z)this.hideDialog();else{if(0<D.length){var C=JSON.parse(D);localStorage.setItem(e,JSON.stringify(C))}else localStorage.removeItem(e);
-this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(A){this.handleError(A)}}),null,mxResources.get("close"),null,null,null,!0,null,null,n,g,l);this.showDialog(c.container,660,480,!0,!1);c.init()};EditorUi.prototype.showBackgroundImageDialog=function(c,e,g,l){c=null!=c?c:mxUtils.bind(this,function(n,u,z,D){u||(n=new ChangePageSetup(this,l?z:null,n),n.ignoreColor=!l,null!=D&&l&&(n.shadowVisible=D),this.editor.graph.model.execute(n))});c=new BackgroundImageDialog(this,c,
-e,g,l);this.showDialog(c.container,400,l?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,e,g,l,n){c=new LibraryDialog(this,c,e,g,l,n);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(u){u&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));c.init()};var m=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(c){var e=m.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(g){this.editor.graph.isSelectionEmpty()&&
-e.refresh()}));return e};EditorUi.prototype.handleError=function(c,e,g,l,n,u,z){var D=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},C=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&null!=c.message)try{z||EditorUi.logError("Caught: "+(""==c.message&&null!=c.name)?c.name:c.message,c.filename,c.lineNumber,c.columnNumber,c,"INFO"),"1"!=urlParams.test&&!z||null==window.console||console.error("EditorUi.handleError:",c)}catch(U){}if(null!=
-C||null!=e){z=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var A=mxResources.get("ok"),Q=null;e=null!=e?e:mxResources.get("error");if(null!=C){null!=C.retry&&(A=mxResources.get("cancel"),Q=function(){D();C.retry()});if(404==C.code||404==C.status||403==C.code){z=403==C.code?null!=C.message?mxUtils.htmlEntities(C.message,!1):mxUtils.htmlEntities(mxResources.get("accessDenied"),!1):null!=n?n:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?
-" ("+this.drive.user.email+")":""),!1);var S=null!=n?null:null!=u?u:window.location.hash;if(null!=S&&("#G"==S.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==S.substring(0,45))&&(null!=c&&null!=c.error&&(null!=c.error.errors&&0<c.error.errors.length&&"fileAccess"==c.error.errors[0].reason||null!=c.error.data&&0<c.error.data.length&&"fileAccess"==c.error.data[0].reason)||404==C.code||404==C.status)){S="#U"==S.substring(0,2)?S.substring(45,S.lastIndexOf("%26ex")):S.substring(2);this.showError(e,
-z,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+S);null!=l&&l()}),Q,mxResources.get("changeUser"),mxUtils.bind(this,function(){function U(){G.innerText="";for(var E=0;E<O.length;E++){var H=document.createElement("option");mxUtils.write(H,O[E].displayName);H.value=E;G.appendChild(H);H=document.createElement("option");H.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(H,"<"+O[E].email+">");H.setAttribute("disabled","disabled");
-G.appendChild(H)}H=document.createElement("option");mxUtils.write(H,mxResources.get("addAccount"));H.value=O.length;G.appendChild(H)}var O=this.drive.getUsersList(),p=document.createElement("div"),q=document.createElement("div");q.style.marginBottom="6px";mxUtils.write(q,mxResources.get("changeUser")+": ");p.appendChild(q);var G=document.createElement("select");G.style.width="100%";U();mxEvent.addListener(G,"change",mxUtils.bind(this,function(){var E=G.value,H=O.length!=E;H&&this.drive.setUser(O[E]);
-this.drive.authorize(H,mxUtils.bind(this,function(){H||(O=this.drive.getUsersList(),U())}),mxUtils.bind(this,function(L){this.handleError(L)}),!0)}));p.appendChild(G);p=new CustomDialog(this,p,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),!0)}));this.showDialog(p.container,300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=g&&g()}),520,150);return}}null!=C.message?z=""==C.message&&null!=C.name?mxUtils.htmlEntities(C.name,!1):
-mxUtils.htmlEntities(C.message,!1):null!=C.response&&null!=C.response.error?z=mxUtils.htmlEntities(C.response.error,!1):"undefined"!==typeof window.App&&(C.code==App.ERROR_TIMEOUT?z=mxUtils.htmlEntities(mxResources.get("timeout"),!1):C.code==App.ERROR_BUSY?z=mxUtils.htmlEntities(mxResources.get("busy"),!1):"string"===typeof C&&0<C.length&&(z=mxUtils.htmlEntities(C,!1)))}n=c=null;null!=C&&null!=C.helpLink?(c=mxResources.get("help"),n=mxUtils.bind(this,function(){return this.editor.graph.openLink(C.helpLink)})):
-null!=C&&null!=C.ownerEmail?(c=mxResources.get("contactOwner"),z+=mxUtils.htmlEntities(" ("+c+": "+C.ownerEmail+")",!1),n=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(C.ownerEmail))})):null!=C&&null!=C.alternateAction&&(c=C.alternateAction.label,n=C.alternateAction.funct);this.showError(e,z,A,g,Q,null,null,c,n,null,null,null,l?g:null)}else null!=g&&g()};EditorUi.prototype.alert=function(c,e,g){c=new ErrorDialog(this,null,c,mxResources.get("ok"),e);this.showDialog(c.container,
-g||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,e,g,l,n,u){c=null!=c?c:"";var z=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},D=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){z();null!=e&&e()},function(){z();null!=g&&g()},l,n,null,null,null,null,D);this.showDialog(c.container,340,46+D,!0,u);c.init()};EditorUi.prototype.showBanner=function(c,e,g,l,n,u,z,D,C){u=!1;if(!(this.bannerShowing||this["hideBanner"+
-c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){z=null!=z?z:"translate(-50%,120%)";D=null!=D?D:"translate(-50%,0%)";var A=n?500:1E3,Q=document.createElement("div");Q.className="geBtn gePrimaryBtn geBanner"+(n?" geSmallBanner":"");Q.style.zIndex=mxPopupMenu.prototype.zIndex;mxUtils.setPrefixedStyle(Q.style,"transform",z);mxUtils.setPrefixedStyle(Q.style,"transition","all "+A+"ms ease");null!=C&&mxUtils.setPrefixedStyle(Q.style,"transform-origin",C);if(!n){var S=
-document.createElement("img");S.setAttribute("src",IMAGE_PATH+"/logo.png");S.setAttribute("border","0");S.setAttribute("align","absmiddle");S.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;";Q.appendChild(S);S=document.createElement("img");S.setAttribute("src",Dialog.prototype.closeImage);S.setAttribute("title",mxResources.get(l?"doNotShowAgain":"close"));S.setAttribute("border","0");S.style.cssText=(n?"right:6px;top:9px;":"right:10px;top:12px;")+"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;";
-Q.appendChild(S)}mxUtils.write(Q,e);document.body.appendChild(Q);this.bannerShowing=!0;e=document.createElement("div");e.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var U=document.createElement("input");U.setAttribute("type","checkbox");U.setAttribute("id","geDoNotShowAgainCheckbox");U.style.marginRight="6px";if(!l){e.appendChild(U);var O=document.createElement("label");O.setAttribute("for","geDoNotShowAgainCheckbox");
-mxUtils.write(O,mxResources.get("doNotShowAgain"));e.appendChild(O);Q.style.paddingBottom=n?"16px":"30px";Q.appendChild(e)}var p=mxUtils.bind(this,function(){null!=Q.parentNode&&(Q.parentNode.removeChild(Q),this.bannerShowing=!1,U.checked||l)&&(this["hideBanner"+c]=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings["close"+c]=Date.now(),mxSettings.save()))});null!=S&&mxEvent.addListener(S,"click",mxUtils.bind(this,function(G){mxEvent.consume(G);p()}));var q=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(Q.style,
-"transform",z);window.setTimeout(mxUtils.bind(this,function(){p()}),A)});mxEvent.addListener(Q,"click",mxUtils.bind(this,function(G){var E=mxEvent.getSource(G);E!=U&&E!=O?(null!=g&&g(),p(),mxEvent.consume(G)):q()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(Q.style,"transform",D)}),A/2);window.setTimeout(q,n?4E3:3E4);u=!0}return u};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};
-EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(c,e,g,l){c=c.toDataURL("image/"+g);if(null!=c&&6<c.length)null!=e&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(e))),0<l&&(c=Editor.writeGraphModelToPng(c,"pHYs","dpi",l));else throw{message:mxResources.get("unknownError")};return c};EditorUi.prototype.saveCanvas=function(c,e,g,l,n){var u="jpeg"==g?"jpg":g;l=this.getBaseFilename(l)+(null!=e?".drawio":
-"")+"."+u;c=this.createImageDataUri(c,e,g,n);this.saveData(l,u,c.substring(c.lastIndexOf(",")+1),"image/"+g,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,e){c=new TextareaDialog(this,c,e,null,null,mxResources.get("close"));
-this.showDialog(c.container,620,460,!0,!0,null,null,null,null,!0);c.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(c,e,g,l,n,u){"text/xml"!=g||/(\.drawio)$/i.test(e)||/(\.xml)$/i.test(e)||/(\.svg)$/i.test(e)||/(\.html)$/i.test(e)||(e=e+"."+(null!=u?u:"drawio"));if(window.Blob&&navigator.msSaveOrOpenBlob)c=l?this.base64ToBlob(c,g):new Blob([c],{type:g}),navigator.msSaveOrOpenBlob(c,e);else if(mxClient.IS_IE)g=window.open("about:blank","_blank"),null==
-g?mxUtils.popup(c,!0):(g.document.write(c),g.document.close(),g.document.execCommand("SaveAs",!0,e),g.close());else if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==g||"image/"!=g.substring(0,6)?this.showTextDialog(e+":",c):this.openInNewWindow(c,g,l);else{var z=document.createElement("a");u=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==typeof z.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var D=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
-u=65==(D?parseInt(D[2],10):!1)?!1:u}if(u||this.isOffline()){z.href=URL.createObjectURL(l?this.base64ToBlob(c,g):new Blob([c],{type:g}));u?z.download=e:z.setAttribute("target","_blank");document.body.appendChild(z);try{window.setTimeout(function(){URL.revokeObjectURL(z.href)},2E4),z.click(),z.parentNode.removeChild(z)}catch(C){}}else this.createEchoRequest(c,e,g,l,n).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,e,g,l,n,u){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,
-c+(null!=g?"&mime="+g:"")+(null!=n?"&format="+n:"")+(null!=u?"&base64="+u:"")+(null!=e?"&filename="+encodeURIComponent(e):"")+(l?"&binary=1":""))};EditorUi.prototype.saveLocalFile=function(c,e,g,l,n,u,z,D){u=null!=u?u:!1;z=null!=z?z:"vsdx"!=n&&(!mxClient.IS_IOS||!navigator.standalone);var C=mxUtils.bind(this,function(Q,S,U,O){try{if("_blank"==S)if(null!=g&&"image/"==g.substring(0,6))this.openInNewWindow(c,g,l);else if(null!=g&&"text/html"==g.substring(0,9)){var p=new EmbedDialog(this,c);this.showDialog(p.container,
-450,240,!0,!0);p.init()}else{var q=window.open("about:blank");null==q?mxUtils.popup(c,!0):(q.document.write("<pre>"+mxUtils.htmlEntities(c,!1)+"</pre>"),q.document.close())}else if(S==App.MODE_DEVICE||"download"==S)this.doSaveLocalFile(c,Q,g,l,null,D);else if(null!=Q&&0<Q.length){var G=mxUtils.bind(this,function(E){try{this.exportFile(c,Q,g,l,S,E)}catch(H){this.handleError(H)}});null!=O?G(O):this.pickFolder(S,G)}}catch(E){this.handleError(E)}});n=[];u||n.push(App.MODE_BROWSER);z||n.push("_blank");
-var A=new SaveDialog(this,e,mxUtils.bind(this,function(Q,S,U){C(Q.value,S,Q,U);this.hideDialog(null,null,A.container)}),n,c,g,l);this.showDialog(A.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));A.init()};EditorUi.prototype.openInNewWindow=function(c,e,g){var l=window.open("about:blank");if(null==l||null==l.document)mxUtils.popup(c,!0);else{var n="background: light-dark(rgb(255, 255, 255), rgb(18, 18, 18))";if("image/svg+xml"==e){var u=mxUtils.parseXml(c).documentElement.style.backgroundColor;
-""!=u&&(n="background: "+u+";")}n='<html><head><meta charset="UTF-8"></head><body style="color-scheme: light dark; '+n+'">';"image/svg+xml"!=e||mxClient.IS_SVG?"image/svg+xml"!=e||g?(u=g?c:btoa(unescape(encodeURIComponent(c))),l.document.write(n+'<img style="max-width:100%;" src="data:'+e+";base64,"+u+'"/></body></html>')):l.document.write(n+c+"</body></html>"):l.document.write(n+"<pre>"+mxUtils.htmlEntities(c,!1)+"</pre></body></html>");l.document.close()}};var d=EditorUi.prototype.addChromelessToolbarItems;
+function(){null!=this.sidebarWindow?this.sidebarWindow.window.setVisible(!0):this.toggleShapesPanel(!0)};EditorUi.prototype.libraryLoaded=function(c,e,g,l){if(null!=this.sidebar){c.constructor!=LocalLibrary&&mxSettings.addCustomLibrary(c.getHash());var p=null;if(c.constructor!=StorageLibrary||".scratchpad"!=c.title){null==this.openLibraries&&(this.openLibraries=[]);for(var u=0;u<this.openLibraries.length;u++)if(this.openLibraries[u].file.getHash()==c.getHash()){mxUtils.remove(this.openLibraries[u],
+this.openLibraries);break}p={file:c,images:e,title:g,expand:l};this.openLibraries.push(p)}else this.scratchpad=c;u=this.sidebar.palettes[c.getHash()];u=null!=u?u[u.length-1].nextSibling:null;this.removeLibrarySidebar(c.getHash());var z=null,E=mxUtils.bind(this,function(B,F){0==B.length&&c.isEditable()?(null==z&&(z=document.createElement("div"),z.className="geDropTarget",mxUtils.write(z,mxResources.get("dragElementsHere"))),F.appendChild(z)):this.addLibraryEntries(B,F)});null!=this.sidebar&&null!=
+e&&this.sidebar.addEntries(e);null==g&&(g=c.getTitle(),null!=g&&/(\.xml)$/i.test(g)&&(g=g.substring(0,g.lastIndexOf("."))));var D=this.sidebar.addPalette(c.getHash(),g,null!=l?l:!0,mxUtils.bind(this,function(B){E(e,B)}));null!=p&&(p.div=D);this.repositionLibrary(u,"L.scratchpad"!=c.getHash());l=D.parentNode.previousSibling;g=l.getAttribute("title");null!=g&&0<g.length&&".scratchpad"!=c.title&&l.setAttribute("title",this.getLibraryStorageHint(c)+"\n"+g);var A=document.createElement("div");A.style.backgroundColor=
+"inherit";l.style.position="relative";var P=document.createElement("img");P.className="geLibraryButton";P.setAttribute("src",Editor.crossImage);P.setAttribute("title",mxResources.get("close"));var R=null;if(".scratchpad"!=c.title||this.closableScratchpad)A.appendChild(P),mxEvent.addListener(P,"click",mxUtils.bind(this,function(B){if(!mxEvent.isConsumed(B)){var F=mxUtils.bind(this,function(){null!=p&&mxUtils.remove(p,this.openLibraries);this.closeLibrary(c)});null!=R?this.confirm(mxResources.get("allChangesLost"),
+null,F,mxResources.get("cancel"),mxResources.get("discardChanges")):F();mxEvent.consume(B)}}));if(c.isEditable()){var T=this.editor.graph,L=null;g=mxUtils.bind(this,function(B){this.showLibraryDialog(c.getTitle(),D,e,c,c.getMode());mxEvent.consume(B)});var U=mxUtils.bind(this,function(B){c.setModified(!0);c.isAutosave()?(null!=L&&null!=L.parentNode&&L.parentNode.removeChild(L),L=P.cloneNode(!1),L.setAttribute("src",Editor.spinImage),L.setAttribute("title",mxResources.get("saving")),L.style.cursor=
+"default",L.style.marginRight="2px",L.style.marginTop="-2px",A.insertBefore(L,A.firstChild),this.saveLibrary(c.getTitle(),e,c,c.getMode(),!0,!0,function(){null!=L&&null!=L.parentNode&&L.parentNode.removeChild(L)})):null==R&&(R=P.cloneNode(!1),R.setAttribute("src",Editor.saveImage),R.setAttribute("title",mxResources.get("save")),A.insertBefore(R,A.firstChild),mxEvent.addListener(R,"click",mxUtils.bind(this,function(F){this.saveLibrary(c.getTitle(),e,c,c.getMode(),c.constructor==LocalLibrary,!0,function(){null==
+R||c.isModified()||(R.parentNode.removeChild(R),R=null)});mxEvent.consume(F)})))}),n=mxUtils.bind(this,function(B,F,J,K){B=T.cloneCells(mxUtils.sortCells(T.model.getTopmostCells(B)));for(var k=0;k<B.length;k++){var v=T.getCellGeometry(B[k]);null!=v&&v.translate(-F.x,-F.y)}D.appendChild(this.sidebar.createVertexTemplateFromCells(B,F.width,F.height,K||"",!0,null,!1));B=mxUtils.getXml(this.editor.graph.encodeCells(B));Editor.defaultCompressed&&(B=Graph.compress(B));F={xml:B,w:F.width,h:F.height};null!=
+K&&(F.title=K);e.push(F);U(J);null!=z&&null!=z.parentNode&&0<e.length&&(z.parentNode.removeChild(z),z=null)}),t=mxUtils.bind(this,function(B){if(T.isSelectionEmpty())T.getRubberband().isActive()?(T.getRubberband().execute(B),T.getRubberband().reset()):this.showError(mxResources.get("error"),mxResources.get("nothingIsSelected"),mxResources.get("ok"));else{var F=T.getSelectionCells(),J=T.view.getBounds(F);if(null!=J&&0<J.width&&0<J.height){var K=T.view.scale;J.x/=K;J.y/=K;J.width/=K;J.height/=K;J.x-=
+T.view.translate.x;J.y-=T.view.translate.y;n(F,J)}else this.showError(mxResources.get("error"),mxResources.get("invalidSel"),mxResources.get("ok"))}mxEvent.consume(B)});mxEvent.addGestureListeners(D,function(){},mxUtils.bind(this,function(B){T.isMouseDown&&null!=T.panningManager&&null!=T.graphHandler.first&&(T.graphHandler.suspend(),null!=T.graphHandler.hint&&(T.graphHandler.hint.style.visibility="hidden"),D.style.backgroundColor="light-dark(#fefefe, #000000)",D.style.cursor="copy",T.panningManager.stop(),
+T.autoScroll=!1,mxEvent.consume(B))}),mxUtils.bind(this,function(B){T.isMouseDown&&null!=T.panningManager&&null!=T.graphHandler&&(D.style.backgroundColor="",D.style.cursor="default",this.sidebar.showTooltips=!0,T.panningManager.stop(),T.graphHandler.reset(),T.isMouseDown=!1,T.autoScroll=!0,t(B),mxEvent.consume(B))}));mxEvent.addListener(D,"mouseleave",mxUtils.bind(this,function(B){T.isMouseDown&&null!=T.graphHandler.first&&(T.graphHandler.resume(),null!=T.graphHandler.hint&&(T.graphHandler.hint.style.visibility=
+"visible"),D.style.backgroundColor="",D.style.cursor="",T.autoScroll=!0)}));Graph.fileSupport&&(mxEvent.addListener(D,"dragover",mxUtils.bind(this,function(B){D.style.backgroundColor="light-dark(#fefefe, #000000)";B.dataTransfer.dropEffect="copy";D.style.cursor="copy";this.sidebar.hideTooltip();B.stopPropagation();B.preventDefault()})),mxEvent.addListener(D,"drop",mxUtils.bind(this,function(B){D.style.cursor="";D.style.backgroundColor="";0<B.dataTransfer.files.length&&this.importFiles(B.dataTransfer.files,
+0,0,this.maxImageSize,mxUtils.bind(this,function(F,J,K,k,v,G,N,O,Q){if(null!=F&&"image/"==J.substring(0,6))F="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;aspect=fixed;image="+this.convertDataUri(F),F=[new mxCell("",new mxGeometry(0,0,v,G),F)],F[0].vertex=!0,n(F,new mxRectangle(0,0,v,G),B,mxEvent.isAltDown(B)?null:N.substring(0,N.lastIndexOf(".")).replace(/_/g," ")),null!=z&&null!=z.parentNode&&0<e.length&&(z.parentNode.removeChild(z),z=null);else{var S=!1,V=mxUtils.bind(this,
+function(W,X){null!=W&&"application/pdf"==X&&(X=Editor.extractGraphModelFromPdf(W),null!=X&&0<X.length&&(W=X));if(null!=W)if(W=mxUtils.parseXml(W),"mxlibrary"==W.documentElement.nodeName)try{var Z=JSON.parse(mxUtils.getTextContent(W.documentElement));E(Z,D);e=e.concat(Z);U(B);this.spinner.stop();S=!0}catch(ka){}else if("mxfile"==W.documentElement.nodeName)try{var Y=W.documentElement.getElementsByTagName("diagram");for(Z=0;Z<Y.length;Z++){var ea=this.stringToCells(Editor.getDiagramNodeXml(Y[Z])),ca=
+this.editor.graph.getBoundingBoxFromGeometry(ea);null!=ca&&n(ea,new mxRectangle(0,0,ca.width,ca.height),B)}S=!0}catch(ka){null!=window.console&&console.log("error in drop handler:",ka)}S||(this.spinner.stop(),this.handleError({message:mxResources.get("errorLoadingFile")}));null!=z&&null!=z.parentNode&&0<e.length&&(z.parentNode.removeChild(z),z=null)});null!=Q&&null!=N&&EditorUi.isVisioFilename(N)?this.importVisio(Q,function(W){V(W,"text/xml")},null,N):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(F,
+N)&&null!=Q?this.isExternalDataComms()?this.parseFile(Q,mxUtils.bind(this,function(W){4==W.readyState&&(this.spinner.stop(),200<=W.status&&299>=W.status?V(W.responseText,"text/xml"):this.handleError({message:mxResources.get(413==W.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))})):(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):V(F,J)}}));B.stopPropagation();B.preventDefault()})),mxEvent.addListener(D,"dragleave",
+function(B){D.style.cursor="";D.style.backgroundColor="";B.stopPropagation();B.preventDefault()}));P=P.cloneNode(!1);P.setAttribute("src",Editor.editImage);P.setAttribute("title",mxResources.get("edit"));A.insertBefore(P,A.firstChild);mxEvent.addListener(P,"click",g);g=P.cloneNode(!1);g.setAttribute("src",Editor.plusImage);g.setAttribute("title",mxResources.get("add"));A.insertBefore(g,A.firstChild);mxEvent.addListener(g,"click",t);".scratchpad"==c.title&&(this.addSelectionToScratchpad=t);this.isOffline()||
+".scratchpad"!=c.title||null==EditorUi.scratchpadHelpLink||(g=this.createHelpIcon(EditorUi.scratchpadHelpLink,!0),g.className="geLibraryButton",A.insertBefore(g,A.firstChild))}l.appendChild(A);this.editor.fireEvent(new mxEventObject("libraryLoaded"))}};EditorUi.prototype.addLibraryEntries=function(c,e){for(var g=0;g<c.length;g++)try{var l=c[g],p=l.data;if(null!=p){p="data:"==p.substring(0,5)?this.convertDataUri(p):p;var u="shape=image;verticalLabelPosition=bottom;verticalAlign=top;imageAspect=0;";
+"fixed"==l.aspect&&(u+="aspect=fixed;");u=u+"image="+p+";";null!=l.style&&(u+=l.style);e.appendChild(this.sidebar.createVertexTemplate(u,l.w,l.h,"",l.title||"",!1,null,!0))}else if(null!=l.xml){var z=this.stringToCells("<"==l.xml.charAt(0)?l.xml:Graph.decompress(l.xml)),E=0==z.length?mxResources.get("drawingEmpty"):null!=l.title?l.title:"";e.appendChild(this.sidebar.createVertexTemplateFromCells(z,l.w,l.h,E,!0,null,!0))}}catch(D){E=null!=D.message?mxResources.get("error")+": "+D.message:String(D),
+u=this.sidebar.createVertexTemplateFromCells(null,l.w,l.h,E,!0,null,!0),e.appendChild(u)}};EditorUi.prototype.getResource=function(c){return null!=c?c[mxLanguage]||c.main:null};"1"==urlParams.savesidebar&&(Sidebar.prototype.thumbWidth=64,Sidebar.prototype.thumbHeight=64);EditorUi.initTheme=function(){"sketch"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD||(Editor.configurationKey=".sketch-configuration",Editor.settingsKey=".sketch-config")};EditorUi.initTheme();EditorUi.prototype.showImageDialog=
+function(c,e,g,l,p,u,z){c=new ImageDialog(this,c,e,g,l,p,u,z);this.showDialog(c.container,Graph.fileSupport?480:360,Graph.fileSupport?200:90,!0,!0);c.init()};EditorUi.prototype.showLocalStorageDialog=function(c,e,g,l,p,u){var z=localStorage.getItem(e);c=new TextareaDialog(this,c,null!=z?JSON.stringify(JSON.parse(z),null,2):"",mxUtils.bind(this,function(E){if(null!=E)try{if(null!=u&&u(E),E==z)this.hideDialog();else{if(0<E.length){var D=JSON.parse(E);localStorage.setItem(e,JSON.stringify(D))}else localStorage.removeItem(e);
+this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(A){this.handleError(A)}}),null,mxResources.get("close"),null,null,null,!0,null,null,p,g,l);this.showDialog(c.container,660,480,!0,!1);c.init()};EditorUi.prototype.showBackgroundImageDialog=function(c,e,g,l){c=null!=c?c:mxUtils.bind(this,function(p,u,z,E){u||(p=new ChangePageSetup(this,l?z:null,p),p.ignoreColor=!l,null!=E&&l&&(p.shadowVisible=E),this.editor.graph.model.execute(p))});c=new BackgroundImageDialog(this,c,
+e,g,l);this.showDialog(c.container,400,l?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,e,g,l,p){c=new LibraryDialog(this,c,e,g,l,p);this.showDialog(c.container,640,440,!0,!1,mxUtils.bind(this,function(u){u&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()}));c.init()};var m=EditorUi.prototype.createFormat;EditorUi.prototype.createFormat=function(c){var e=m.apply(this,arguments);this.editor.graph.addListener("viewStateChanged",mxUtils.bind(this,function(g){this.editor.graph.isSelectionEmpty()&&
+e.refresh()}));return e};EditorUi.prototype.handleError=function(c,e,g,l,p,u,z){var E=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},D=null!=c&&null!=c.error?c.error:c;if(null!=c&&("1"==urlParams.test||null!=c.stack)&&null!=c.message)try{z||EditorUi.logError("Caught: "+(""==c.message&&null!=c.name)?c.name:c.message,c.filename,c.lineNumber,c.columnNumber,c,"INFO"),"1"!=urlParams.test&&!z||null==window.console||console.error("EditorUi.handleError:",c)}catch(T){}if(null!=
+D||null!=e){z=mxUtils.htmlEntities(mxResources.get("unknownError"),!1);var A=mxResources.get("ok"),P=null;e=null!=e?e:mxResources.get("error");if(null!=D){null!=D.retry&&(A=mxResources.get("cancel"),P=function(){E();D.retry()});if(404==D.code||404==D.status||403==D.code){z=403==D.code?null!=D.message?mxUtils.htmlEntities(D.message,!1):mxUtils.htmlEntities(mxResources.get("accessDenied"),!1):null!=p?p:mxUtils.htmlEntities(mxResources.get("fileNotFoundOrDenied")+(null!=this.drive&&null!=this.drive.user?
+" ("+this.drive.user.email+")":""),!1);var R=null!=p?null:null!=u?u:window.location.hash;if(null!=R&&("#G"==R.substring(0,2)||"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"==R.substring(0,45))&&(null!=c&&null!=c.error&&(null!=c.error.errors&&0<c.error.errors.length&&"fileAccess"==c.error.errors[0].reason||null!=c.error.data&&0<c.error.data.length&&"fileAccess"==c.error.data[0].reason)||404==D.code||404==D.status)){R="#U"==R.substring(0,2)?R.substring(45,R.lastIndexOf("%26ex")):R.substring(2);this.showError(e,
+z,mxResources.get("tryOpeningViaThisPage"),mxUtils.bind(this,function(){this.editor.graph.openLink("https://drive.google.com/open?id="+R);null!=l&&l()}),P,mxResources.get("changeUser"),mxUtils.bind(this,function(){function T(){t.innerText="";for(var B=0;B<L.length;B++){var F=document.createElement("option");mxUtils.write(F,L[B].displayName);F.value=B;t.appendChild(F);F=document.createElement("option");F.innerHTML="&nbsp;&nbsp;&nbsp;";mxUtils.write(F,"<"+L[B].email+">");F.setAttribute("disabled","disabled");
+t.appendChild(F)}F=document.createElement("option");mxUtils.write(F,mxResources.get("addAccount"));F.value=L.length;t.appendChild(F)}var L=this.drive.getUsersList(),U=document.createElement("div"),n=document.createElement("div");n.style.marginBottom="6px";mxUtils.write(n,mxResources.get("changeUser")+": ");U.appendChild(n);var t=document.createElement("select");t.style.width="100%";T();mxEvent.addListener(t,"change",mxUtils.bind(this,function(){var B=t.value,F=L.length!=B;F&&this.drive.setUser(L[B]);
+this.drive.authorize(F,mxUtils.bind(this,function(){F||(L=this.drive.getUsersList(),T())}),mxUtils.bind(this,function(J){this.handleError(J)}),!0)}));U.appendChild(t);U=new CustomDialog(this,U,mxUtils.bind(this,function(){this.loadFile(window.location.hash.substr(1),!0)}));this.showDialog(U.container,300,100,!0,!0)}),mxResources.get("cancel"),mxUtils.bind(this,function(){this.hideDialog();null!=g&&g()}),520,150);return}}null!=D.message?z=""==D.message&&null!=D.name?mxUtils.htmlEntities(D.name,!1):
+mxUtils.htmlEntities(D.message,!1):null!=D.response&&null!=D.response.error?z=mxUtils.htmlEntities(D.response.error,!1):"undefined"!==typeof window.App&&(D.code==App.ERROR_TIMEOUT?z=mxUtils.htmlEntities(mxResources.get("timeout"),!1):D.code==App.ERROR_BUSY?z=mxUtils.htmlEntities(mxResources.get("busy"),!1):"string"===typeof D&&0<D.length&&(z=mxUtils.htmlEntities(D,!1)))}p=c=null;null!=D&&null!=D.helpLink?(c=mxResources.get("help"),p=mxUtils.bind(this,function(){return this.editor.graph.openLink(D.helpLink)})):
+null!=D&&null!=D.ownerEmail?(c=mxResources.get("contactOwner"),z+=mxUtils.htmlEntities(" ("+c+": "+D.ownerEmail+")",!1),p=mxUtils.bind(this,function(){return this.openLink("mailto:"+mxUtils.htmlEntities(D.ownerEmail))})):null!=D&&null!=D.alternateAction&&(c=D.alternateAction.label,p=D.alternateAction.funct);this.showError(e,z,A,g,P,null,null,c,p,null,null,null,l?g:null)}else null!=g&&g()};EditorUi.prototype.alert=function(c,e,g){c=new ErrorDialog(this,null,c,mxResources.get("ok"),e);this.showDialog(c.container,
+g||340,100,!0,!1);c.init()};EditorUi.prototype.confirm=function(c,e,g,l,p,u){c=null!=c?c:"";var z=null!=this.spinner&&null!=this.spinner.pause?this.spinner.pause():function(){},E=Math.min(220,28*Math.ceil(Math.max(1,c.length)/50));c=new ConfirmDialog(this,c,function(){z();null!=e&&e()},function(){z();null!=g&&g()},l,p,null,null,null,null,E);this.showDialog(c.container,340,46+E,!0,u);c.init()};EditorUi.prototype.showBanner=function(c,e,g,l,p,u,z,E,D){u=!1;if(!(this.bannerShowing||this["hideBanner"+
+c]||isLocalStorage&&null!=mxSettings.settings&&null!=mxSettings.settings["close"+c])){z=null!=z?z:"translate(-50%,120%)";E=null!=E?E:"translate(-50%,0%)";var A=p?500:1E3,P=document.createElement("div");P.className="geBtn gePrimaryBtn geBanner"+(p?" geSmallBanner":"");P.style.zIndex=mxPopupMenu.prototype.zIndex;mxUtils.setPrefixedStyle(P.style,"transform",z);mxUtils.setPrefixedStyle(P.style,"transition","all "+A+"ms ease");null!=D&&mxUtils.setPrefixedStyle(P.style,"transform-origin",D);if(!p){var R=
+document.createElement("img");R.setAttribute("src",IMAGE_PATH+"/logo.png");R.setAttribute("border","0");R.setAttribute("align","absmiddle");R.style.cssText="margin-top:-4px;margin-left:8px;margin-right:12px;width:26px;height:26px;";P.appendChild(R);R=document.createElement("img");R.setAttribute("src",Dialog.prototype.closeImage);R.setAttribute("title",mxResources.get(l?"doNotShowAgain":"close"));R.setAttribute("border","0");R.style.cssText=(p?"right:6px;top:9px;":"right:10px;top:12px;")+"position:absolute;filter:invert(1);padding:6px;margin:-6px;cursor:default;";
+P.appendChild(R)}mxUtils.write(P,e);document.body.appendChild(P);this.bannerShowing=!0;e=document.createElement("div");e.style.cssText="display:flex;align-items:center;justify-content:center;padding-top:6px;font-size:11px;text-align:center;font-weight:normal;";var T=document.createElement("input");T.setAttribute("type","checkbox");T.setAttribute("id","geDoNotShowAgainCheckbox");T.style.marginRight="6px";if(!l){e.appendChild(T);var L=document.createElement("label");L.setAttribute("for","geDoNotShowAgainCheckbox");
+mxUtils.write(L,mxResources.get("doNotShowAgain"));e.appendChild(L);P.style.paddingBottom=p?"16px":"30px";P.appendChild(e)}var U=mxUtils.bind(this,function(){null!=P.parentNode&&(P.parentNode.removeChild(P),this.bannerShowing=!1,T.checked||l)&&(this["hideBanner"+c]=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings["close"+c]=Date.now(),mxSettings.save()))});null!=R&&mxEvent.addListener(R,"click",mxUtils.bind(this,function(t){mxEvent.consume(t);U()}));var n=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(P.style,
+"transform",z);window.setTimeout(mxUtils.bind(this,function(){U()}),A)});mxEvent.addListener(P,"click",mxUtils.bind(this,function(t){var B=mxEvent.getSource(t);B!=T&&B!=L?(null!=g&&g(),U(),mxEvent.consume(t)):n()}));window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(P.style,"transform",E)}),A/2);window.setTimeout(n,p?4E3:3E4);u=!0}return u};EditorUi.prototype.setCurrentFile=function(c){null!=c&&(c.opened=new Date);this.currentFile=c};EditorUi.prototype.getCurrentFile=function(){return this.currentFile};
+EditorUi.prototype.isExportToCanvas=function(){return this.editor.isExportToCanvas()};EditorUi.prototype.createImageDataUri=function(c,e,g,l){c=c.toDataURL("image/"+g);if(null!=c&&6<c.length)null!=e&&(c=Editor.writeGraphModelToPng(c,"tEXt","mxfile",encodeURIComponent(e))),0<l&&(c=Editor.writeGraphModelToPng(c,"pHYs","dpi",l));else throw{message:mxResources.get("unknownError")};return c};EditorUi.prototype.saveCanvas=function(c,e,g,l,p){var u="jpeg"==g?"jpg":g;l=this.getBaseFilename(l)+(null!=e?".drawio":
+"")+"."+u;c=this.createImageDataUri(c,e,g,p);this.saveData(l,u,c.substring(c.lastIndexOf(",")+1),"image/"+g,!0)};EditorUi.prototype.isLocalFileSave=function(){return"remote"!=urlParams.save&&(mxClient.IS_IE||"undefined"!==typeof window.Blob&&"undefined"!==typeof window.URL)&&9!=document.documentMode&&8!=document.documentMode&&7!=document.documentMode||this.isOfflineApp()||mxClient.IS_IOS};EditorUi.prototype.showTextDialog=function(c,e){c=new TextareaDialog(this,c,e,null,null,mxResources.get("close"));
+this.showDialog(c.container,620,460,!0,!0,null,null,null,null,!0);c.init();document.execCommand("selectall",!1,null)};EditorUi.prototype.doSaveLocalFile=function(c,e,g,l,p,u){"text/xml"!=g||/(\.drawio)$/i.test(e)||/(\.xml)$/i.test(e)||/(\.svg)$/i.test(e)||/(\.html)$/i.test(e)||(e=e+"."+(null!=u?u:"drawio"));if(window.Blob&&navigator.msSaveOrOpenBlob)c=l?this.base64ToBlob(c,g):new Blob([c],{type:g}),navigator.msSaveOrOpenBlob(c,e);else if(mxClient.IS_IE)g=window.open("about:blank","_blank"),null==
+g?mxUtils.popup(c,!0):(g.document.write(c),g.document.close(),g.document.execCommand("SaveAs",!0,e),g.close());else if(mxClient.IS_IOS&&this.isOffline())navigator.standalone||null==g||"image/"!=g.substring(0,6)?this.showTextDialog(e+":",c):this.openInNewWindow(c,g,l);else{var z=document.createElement("a");u=(null==navigator.userAgent||0>navigator.userAgent.indexOf("PaleMoon/"))&&"undefined"!==typeof z.download;if(mxClient.IS_GC&&null!=navigator.userAgent){var E=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
+u=65==(E?parseInt(E[2],10):!1)?!1:u}if(u||this.isOffline()){z.href=URL.createObjectURL(l?this.base64ToBlob(c,g):new Blob([c],{type:g}));u?z.download=e:z.setAttribute("target","_blank");document.body.appendChild(z);try{window.setTimeout(function(){URL.revokeObjectURL(z.href)},2E4),z.click(),z.parentNode.removeChild(z)}catch(D){}}else this.createEchoRequest(c,e,g,l,p).simulate(document,"_blank")}};EditorUi.prototype.createEchoRequest=function(c,e,g,l,p,u){c="xml="+encodeURIComponent(c);return new mxXmlRequest(SAVE_URL,
+c+(null!=g?"&mime="+g:"")+(null!=p?"&format="+p:"")+(null!=u?"&base64="+u:"")+(null!=e?"&filename="+encodeURIComponent(e):"")+(l?"&binary=1":""))};EditorUi.prototype.saveLocalFile=function(c,e,g,l,p,u,z,E){u=null!=u?u:!1;z=null!=z?z:"vsdx"!=p&&(!mxClient.IS_IOS||!navigator.standalone);var D=mxUtils.bind(this,function(P,R,T,L){try{if("_blank"==R)if(null!=g&&"image/"==g.substring(0,6))this.openInNewWindow(c,g,l);else if(null!=g&&"text/html"==g.substring(0,9)){var U=new EmbedDialog(this,c);this.showDialog(U.container,
+450,240,!0,!0);U.init()}else{var n=window.open("about:blank");null==n?mxUtils.popup(c,!0):(n.document.write("<pre>"+mxUtils.htmlEntities(c,!1)+"</pre>"),n.document.close())}else if(R==App.MODE_DEVICE||"download"==R)this.doSaveLocalFile(c,P,g,l,null,E);else if(null!=P&&0<P.length){var t=mxUtils.bind(this,function(B){try{this.exportFile(c,P,g,l,R,B)}catch(F){this.handleError(F)}});null!=L?t(L):this.pickFolder(R,t)}}catch(B){this.handleError(B)}});p=[];u||p.push(App.MODE_BROWSER);z||p.push("_blank");
+var A=new SaveDialog(this,e,mxUtils.bind(this,function(P,R,T){D(P.value,R,P,T);this.hideDialog(null,null,A.container)}),p,c,g,l);this.showDialog(A.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));A.init()};EditorUi.prototype.openInNewWindow=function(c,e,g){var l=window.open("about:blank");if(null==l||null==l.document)mxUtils.popup(c,!0);else{var p="background: light-dark(rgb(255, 255, 255), rgb(18, 18, 18))";if("image/svg+xml"==e){var u=mxUtils.parseXml(c).documentElement.style.backgroundColor;
+""!=u&&(p="background: "+u+";")}p='<html><head><meta charset="UTF-8"></head><body style="color-scheme: light dark; '+p+'">';"image/svg+xml"!=e||mxClient.IS_SVG?"image/svg+xml"!=e||g?(u=g?c:btoa(unescape(encodeURIComponent(c))),l.document.write(p+'<img style="max-width:100%;" src="data:'+e+";base64,"+u+'"/></body></html>')):l.document.write(p+c+"</body></html>"):l.document.write(p+"<pre>"+mxUtils.htmlEntities(c,!1)+"</pre></body></html>");l.document.close()}};var d=EditorUi.prototype.addChromelessToolbarItems;
EditorUi.prototype.isChromelessImageExportEnabled=function(){return"draw.io"!=this.getServiceName()||/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname)};EditorUi.prototype.addChromelessToolbarItems=function(c){if(null!=urlParams.tags){this.tagsDialog=this.tagsComponent=null;var e=c(mxUtils.bind(this,function(l){null==this.tagsComponent&&(this.tagsComponent=this.editor.graph.createTagsDialog(mxUtils.bind(this,function(){return null!=this.tagsDialog}),
!0),this.tagsComponent.div.getElementsByTagName("div")[0].style.position="",mxUtils.setPrefixedStyle(this.tagsComponent.div.style,"borderRadius","5px"),this.tagsComponent.div.style.maxHeight="160px",this.tagsComponent.div.style.maxWidth="120px",this.tagsComponent.div.style.padding="4px",this.tagsComponent.div.style.overflow="auto",this.tagsComponent.div.style.height="auto",this.tagsComponent.div.style.position="fixed",this.tagsComponent.div.style.fontFamily=Editor.defaultHtmlFont,this.tagsComponent.div.style.backgroundColor=
-"#000000",this.tagsComponent.div.style.color="#ffffff",mxUtils.setOpacity(this.tagsComponent.div,80));if(null!=this.tagsDialog)this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null;else{this.tagsDialog=this.tagsComponent.div;mxEvent.addListener(this.tagsDialog,"mouseleave",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));var n=e.getBoundingClientRect();this.tagsDialog.style.left=n.left+"px";
-this.tagsDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";n=mxUtils.getCurrentStyle(this.editor.graph.container);this.tagsDialog.style.zIndex=n.zIndex;document.body.appendChild(this.tagsDialog);this.tagsComponent.refresh();this.editor.fireEvent(new mxEventObject("tagsDialogShown"))}mxEvent.consume(l)}),Editor.tagsImage,mxResources.get("tags"));this.editor.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var l=this.editor.graph.getAllTags();
+"#000000",this.tagsComponent.div.style.color="#ffffff",mxUtils.setOpacity(this.tagsComponent.div,80));if(null!=this.tagsDialog)this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null;else{this.tagsDialog=this.tagsComponent.div;mxEvent.addListener(this.tagsDialog,"mouseleave",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));var p=e.getBoundingClientRect();this.tagsDialog.style.left=p.left+"px";
+this.tagsDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+this.chromelessToolbar.offsetHeight+4+"px";p=mxUtils.getCurrentStyle(this.editor.graph.container);this.tagsDialog.style.zIndex=p.zIndex;document.body.appendChild(this.tagsDialog);this.tagsComponent.refresh();this.editor.fireEvent(new mxEventObject("tagsDialogShown"))}mxEvent.consume(l)}),Editor.tagsImage,mxResources.get("tags"));this.editor.graph.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){var l=this.editor.graph.getAllTags();
e.style.display=0<l.length?"":"none"}))}d.apply(this,arguments);this.editor.addListener("tagsDialogShown",mxUtils.bind(this,function(){null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));this.editor.addListener("layersDialogShown",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null)}));this.editor.addListener("pageSelected",mxUtils.bind(this,function(){null!=this.tagsDialog&&
(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));mxEvent.addListener(this.editor.graph.container,"click",mxUtils.bind(this,function(){null!=this.tagsDialog&&(this.tagsDialog.parentNode.removeChild(this.tagsDialog),this.tagsDialog=null);null!=this.layersDialog&&(this.layersDialog.parentNode.removeChild(this.layersDialog),this.layersDialog=null)}));if(this.isExportToCanvas()&&
-this.isChromelessImageExportEnabled()){this.exportDialog=null;var g=c(mxUtils.bind(this,function(l){var n=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",n);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null)});if(null!=this.exportDialog)n.apply(this);else{this.exportDialog=document.createElement("div");var u=g.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");
+this.isChromelessImageExportEnabled()){this.exportDialog=null;var g=c(mxUtils.bind(this,function(l){var p=mxUtils.bind(this,function(){mxEvent.removeListener(this.editor.graph.container,"click",p);null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null)});if(null!=this.exportDialog)p.apply(this);else{this.exportDialog=document.createElement("div");var u=g.getBoundingClientRect();mxUtils.setPrefixedStyle(this.exportDialog.style,"borderRadius","5px");
this.exportDialog.style.position="fixed";this.exportDialog.style.textAlign="center";this.exportDialog.style.fontFamily=Editor.defaultHtmlFont;this.exportDialog.style.backgroundColor="#000000";this.exportDialog.style.width="50px";this.exportDialog.style.height="50px";this.exportDialog.style.padding="4px 2px 4px 2px";this.exportDialog.style.color="#ffffff";mxUtils.setOpacity(this.exportDialog,80);this.exportDialog.style.left=u.left+"px";this.exportDialog.style.bottom=parseInt(this.chromelessToolbar.style.bottom)+
-this.chromelessToolbar.offsetHeight+4+"px";u=mxUtils.getCurrentStyle(this.editor.graph.container);this.exportDialog.style.zIndex=u.zIndex;var z=new Spinner({lines:8,length:6,width:5,radius:6,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});z.spin(this.exportDialog);document.body.appendChild(this.exportDialog);mxEvent.addListener(this.editor.graph.container,"click",n);this.editor.exportToCanvas(mxUtils.bind(this,function(D){z.stop();this.exportDialog.style.width=
-"auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding="10px";var C=this.createImageDataUri(D,null,"png");D=document.createElement("img");D.style.maxWidth="140px";D.style.maxHeight="140px";D.style.cursor="pointer";D.style.backgroundColor="white";D.setAttribute("title",mxResources.get("openInNewWindow"));D.setAttribute("border","0");D.setAttribute("src",C);this.exportDialog.appendChild(D);mxEvent.addListener(D,"click",mxUtils.bind(this,function(){this.openInNewWindow(C.substring(C.indexOf(",")+
-1),"image/png",!0);n.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(D){z.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(D)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(l)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,e,g,l,n){this.isLocalFileSave()?this.saveLocalFile(g,
-c,l,n,e):this.saveRequest(c,e,mxUtils.bind(this,function(u,z){return this.createEchoRequest(g,u,l,n,e,z)}),g,n,l)};EditorUi.prototype.saveRequest=function(c,e,g,l,n,u,z){z=null!=z?z:!mxClient.IS_IOS||!navigator.standalone;var D=mxUtils.bind(this,function(A,Q,S,U){if("_blank"==Q||null!=A&&0<A.length){var O=g("_blank"==Q?null:A,Q==App.MODE_DEVICE||"download"==Q||null==Q||"_blank"==Q?"0":"1");null!=O&&(Q==App.MODE_DEVICE||"download"==Q||"_blank"==Q?O.simulate(document,"_blank"):(S=mxUtils.bind(this,
-function(p){u=null!=u?u:"pdf"==e?"application/pdf":"image/"+e;if(null!=l)try{this.exportFile(l,A,u,!0,Q,p)}catch(q){this.handleError(q)}else this.spinner.spin(document.body,mxResources.get("saving"))&&O.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=O.getStatus()&&299>=O.getStatus())try{this.exportFile(O.getText(),A,u,!0,Q,p)}catch(q){this.handleError(q)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(q){this.spinner.stop();this.handleError(q)}))}),
-null!=U?S(U):this.pickFolder(Q,S)))}});n=[App.MODE_BROWSER];z||n.push("_blank");var C=new SaveDialog(this,c,mxUtils.bind(this,function(A,Q,S){D(A.value,Q,A,S);this.hideDialog(null,null,C.container)}),n,null,"application/pdf");this.showDialog(C.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));C.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,e,
-g,l,n,u){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,e,g){e(null)};EditorUi.prototype.exportSvg=function(c,e,g,l,n,u,z,D,C,A,Q,S,U,O){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(P){Editor.addRetryToError(P,mxUtils.bind(this,function(){this.exportSvg(c,e,g,l,n,u,z,D,C,A,Q,S,U,O)}));this.handleError(P)})))try{var p=this.editor.graph.isSelectionEmpty();
-g=null!=g?g:p;var q=e?null:this.editor.graph.background;q==mxConstants.NONE&&(q=null);null==q&&0==e&&(q=this.editor.graph.shapeBackgroundColor);var G=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var E=mxUtils.lightDarkColorSupported,H=mxUtils.preferDarkColor;if("light"==Q||"dark"==Q)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==Q;var L=this.editor.graph.createSvgImageExport(n),K=this.editor.graph.getSvg(q,
-c,z,D,null,g,null,L,"blank"==A?"_blank":"self"==A?"_top":null,null,!U,Q,S);mxUtils.lightDarkColorSupported=E;mxUtils.preferDarkColor=H;this.editor.graph.addForeignObjectWarning=G;l&&this.editor.graph.addSvgShadow(K);var k=this.getBaseFilename()+(n?".drawio":"")+".svg";O=null!=O?O:mxUtils.bind(this,function(P){this.isLocalFileSave()||P.length<=MAX_REQUEST_SIZE?this.saveData(k,"svg",P,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,
-function(){mxUtils.popup(P)}))});var y=mxUtils.bind(this,function(P){this.spinner.stop();n&&P.setAttribute("content",this.getFileData(!0,null,null,null,g,C,null,null,null,null,null,c,z));O(Graph.xmlDeclaration+"\n"+(n?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(P))});this.editor.graph.mathEnabled&&this.editor.addMathCss(K);var F=mxUtils.bind(this,function(P){Editor.replaceSvgDataUris&&u&&EditorUi.embedSvgImages(P);Editor.foreignObjectImages&&U?this.replaceAlternateContent(P,
-Q,y):y(P)}),M=mxUtils.bind(this,function(P){u&&!this.isOffline()&&this.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(P,F,this.thumbImageCache)):F(P)});U?this.embedFonts(K,M):(this.editor.addFontCss(K),M(K))}catch(P){this.handleError(P)}};EditorUi.prototype.replaceAlternateContent=function(c,e,g){function l(S,U,O,p,q){var G=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");G.setAttribute("x",U);G.setAttribute("y",O+.5);G.setAttribute("width",
-p.width);G.setAttribute("height",p.height);null==G.setAttributeNS?G.setAttribute("xlink:href",q):G.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",q);S.replaceChild(G,S.lastChild);D()}function n(){if(z<Q.length)Q[z++](n)}var u="";e=c.getElementsByTagName("style");for(var z=0;z<e.length;z++)u+=e[z].innerHTML;e=c.getElementsByTagName("switch");counter=e.length;var D=mxUtils.bind(this,function(){counter--;0==counter&&g(c)}),C={},A={},Q=[];for(z=0;z<e.length;z++)mxUtils.bind(this,function(S){var U=S.getElementsByTagName("div");
-if(0<U.length)try{var O=U[0].cloneNode(!0),p=parseInt(O.style.marginLeft),q=parseInt(O.style.paddingTop),G=O.getElementsByTagName("div")[1],E=U=!1,H=O.style.alignItems,L=O.style.justifyContent;if(null!=O.style.writingMode){var K=O.style.writingMode;E="vertical-"==K.substring(0,9);U="-rl"==K.substring(K.length-3)}var k=!E&&"1px"==O.style.width||E&&"1px"==O.style.height;if(!E&&"1px"==O.style.height||E&&"1px"==O.style.width)O.style.alignItems=E&&U?"unsafe flex-end":"unsafe flex-start";k&&(O.style.justifyContent=
-"unsafe flex-start");O.style.paddingTop="";O.style.marginLeft="";var y=O.outerHTML,F=C[y];null==F&&(O.style.position="absolute",O.style.visibility="hidden",document.body.appendChild(O),K=1,K="1px"==O.style.width?G.offsetWidth:parseInt(O.style.width),k=1,k="1px"==O.style.height?G.offsetHeight:parseInt(O.style.height),document.body.removeChild(O),F=new mxRectangle(p,q,K,k),C[y]=F);"1px"==O.style.height&&("unsafe center"==H?q-=F.height/2:"unsafe flex-end"==H&&(q-=F.height));if("1px"==O.style.width)if(!E&&
-"unsafe center"==L||E&&"unsafe center"==H)p-=F.width/2;else if(!E&&"unsafe flex-end"==L||E&&(!U&&"unsafe flex-end"==H||U&&"unsafe flex-start"==H))p-=F.width;F=new mxRectangle(p,q,F.width,F.height+parseInt(G.style.fontSize)/4);Q.push(mxUtils.bind(this,function(M){var P=A[y];null==P?Graph.htmlToPng(y,F.width,F.height,mxUtils.bind(this,function(R){l(S,p,q,F,R);A[y]=R;M()}),u):(l(S,p,q,F,P),M())}))}catch(M){D()}else D()})(e[z]);0==counter&&g(c);z=0;n()};EditorUi.prototype.addRadiobox=function(c,e,g,l,
-n,u,z){return this.addCheckbox(c,g,l,n,u,z,!0,e)};EditorUi.prototype.addCheckbox=function(c,e,g,l,n,u,z,D){u=null!=u?u:!0;var C=document.createElement("input");C.style.marginRight="8px";C.style.marginTop="16px";C.setAttribute("type",z?"radio":"checkbox");z="geCheckbox-"+Editor.guid();C.id=z;null!=D&&C.setAttribute("name",D);g&&(C.setAttribute("checked","checked"),C.defaultChecked=!0);l&&C.setAttribute("disabled","disabled");u&&(c.appendChild(C),g=document.createElement("label"),mxUtils.write(g,e),
-g.setAttribute("for",z),c.appendChild(g),n||mxUtils.br(c));return C};EditorUi.prototype.addEditButton=function(c,e){var g=this.addCheckbox(c,mxResources.get("edit")+":",!0,null,!0);g.style.marginLeft="24px";var l=this.getCurrentFile(),n="";null!=l&&l.getMode()!=App.MODE_DEVICE&&l.getMode()!=App.MODE_BROWSER&&(n=window.location.href);var u=document.createElement("select");u.style.maxWidth="200px";u.style.width="auto";u.style.marginLeft="8px";u.style.marginRight="10px";u.className="geBtn";l=document.createElement("option");
-l.setAttribute("value","blank");mxUtils.write(l,mxResources.get("makeCopy"));u.appendChild(l);var z=document.createElement("option");z.setAttribute("value","custom");mxUtils.write(z,mxResources.get("custom")+"...");u.appendChild(z);c.appendChild(u);mxEvent.addListener(u,"change",mxUtils.bind(this,function(){if("custom"==u.value){var D=new FilenameDialog(this,n,mxResources.get("ok"),function(C){null!=C?(n=C,z.setAttribute("title",C)):(u.value="blank",z.removeAttribute("title"))},mxResources.get("url"),
-null,null,null,null,function(){u.value="blank"});this.showDialog(D.container,300,80,!0,!1);D.init()}}));mxEvent.addListener(g,"change",mxUtils.bind(this,function(){g.checked&&(null==e||e.checked)?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return g.checked?"blank"===u.value?"_blank":n:null},getEditInput:function(){return g},getEditSelect:function(){return u}}};EditorUi.prototype.addLinkSection=function(c,e){function g(){var D=document.createElement("div");
-D.style.width="100%";D.style.height="100%";D.style.boxSizing="border-box";null!=u&&u!=mxConstants.NONE?(D.style.border="1px solid black",D.style.backgroundColor=u):(D.style.backgroundPosition="center center",D.style.backgroundRepeat="no-repeat",D.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");z.innerText="";z.appendChild(D)}mxUtils.write(c,mxResources.get("links")+":");var l=document.createElement("select");l.style.width="100px";l.style.padding="0px";l.style.marginLeft="8px";l.style.marginRight=
-"10px";l.className="geBtn";var n=document.createElement("option");n.setAttribute("value","auto");mxUtils.write(n,mxResources.get("automatic"));l.appendChild(n);n=document.createElement("option");n.setAttribute("value","blank");mxUtils.write(n,mxResources.get("openInNewWindow"));l.appendChild(n);n=document.createElement("option");n.setAttribute("value","self");mxUtils.write(n,mxResources.get("openInThisWindow"));l.appendChild(n);e&&(e=document.createElement("option"),e.setAttribute("value","frame"),
-mxUtils.write(e,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),l.appendChild(e));c.appendChild(l);mxUtils.write(c,mxResources.get("borderColor")+":");var u="#0000ff",z=null;z=mxUtils.button("",mxUtils.bind(this,function(D){this.pickColor(u||"none",function(C){u=C;g()});mxEvent.consume(D)}));g();z.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";z.style.marginLeft="4px";z.style.height="22px";z.style.width="22px";z.style.position="relative";z.style.top=mxClient.IS_IE||mxClient.IS_IE11||
-mxClient.IS_EDGE?"6px":"1px";z.className="geColorBtn";c.appendChild(z);mxUtils.br(c);return{getColor:function(){return u},getTarget:function(){return l.value},focus:function(){l.focus()}}};EditorUi.prototype.createUrlParameters=function(c,e,g,l,n,u){u=null!=u?u:[];g&&(u.push("lightbox=1"),"auto"!=c&&u.push("target="+c),null!=e&&e!=mxConstants.NONE&&u.push("highlight="+("#"==e.charAt(0)?e.substring(1):e)),null!=l&&0<l.length&&u.push("edit="+encodeURIComponent(l)),n&&u.push("layers=1"),this.editor.graph.foldingEnabled&&
-u.push("nav=1"));return u};EditorUi.prototype.createLink=function(c,e,g,l,n,u,z,D,C,A,Q,S,U){var O=this.getCurrentFile();C=this.createUrlParameters(c,e,l,n,u,C);c=!0;null!=z?g="#U"+encodeURIComponent(z):D||null==O||""==O.getHash()?g="#R"+encodeURIComponent(g?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(g="#"+O.getHash(),c=!1);c&&null!=O&&null!=O.getTitle()&&O.getTitle()!=this.defaultFilename&&C.push("title="+encodeURIComponent(O.getTitle()));
-A&&1<g.length&&(C.push("open="+g.substring(1)),g="");Q&&null!=this.currentPage&&C.push("page-id="+this.currentPage.getId());S&&C.push("transparent=1");null!=U&&C.push("dark="+U);return(l&&(null!=z||null!=O&&O.getMode()!=App.MODE_GITHUB&&O.getMode()!=App.MODE_GITLAB)?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<C.length?"?"+C.join("&"):"")+g};EditorUi.prototype.createHtml=
-function(c,e,g,l,n,u,z,D,C,A,Q,S,U){this.getBasenames();var O={};""!=n&&n!=mxConstants.NONE&&(O.highlight=n);"auto"!==l&&(O.target=l);A||(O.lightbox=!1);O.nav=this.editor.graph.foldingEnabled;g=parseInt(g);isNaN(g)||100==g||(O.zoom=g/100);g=[];z&&(g.push("pages"),O.resize=!0,null!=this.pages&&null!=this.currentPage&&(O.page=mxUtils.indexOf(this.pages,this.currentPage)));e&&(g.push("zoom"),O.resize=!0);D&&g.push("layers");C&&g.push("tags");null!=U&&(O["dark-mode"]=U);0<g.length&&(A&&g.push("lightbox"),
-O.toolbar=g.join(" "));null!=Q&&0<Q.length&&(O.edit=Q);null!=c?O.url=c:O.xml=this.getFileData(!0,null,null,null,null,!z);e='<div class="mxgraph" style="'+(u?"max-width:100%;":"")+(""!=g?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(O))+'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";S(e,'<script type="text/javascript" src="'+(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"1"==urlParams.dev?
-"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(c,e,g,l){var n=document.createElement("div");n.style.whiteSpace="nowrap";var u=document.createElement("h3");mxUtils.write(u,mxResources.get("html"));u.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";n.appendChild(u);var z=document.createElement("div");z.style.cssText=
-"border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var D=document.createElement("input");D.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";D.setAttribute("value","url");D.setAttribute("type","radio");D.setAttribute("name","type-embedhtmldialog");u=D.cloneNode(!0);u.setAttribute("value","copy");z.appendChild(u);var C=document.createElement("span");mxUtils.write(C,mxResources.get("includeCopyOfMyDiagram"));z.appendChild(C);mxUtils.br(z);z.appendChild(D);C=
-document.createElement("span");mxUtils.write(C,mxResources.get("publicDiagramUrl"));z.appendChild(C);var A=this.getCurrentFile();null==g&&null!=A&&A.constructor==window.DriveFile&&(C=document.createElement("a"),C.style.paddingLeft="12px",C.style.color="gray",C.style.cursor="pointer",mxUtils.write(C,mxResources.get("share")),z.appendChild(C),mxEvent.addListener(C,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(A.getId(),A)})));u.setAttribute("checked","checked");null==
-g&&D.setAttribute("disabled","disabled");n.appendChild(z);z=380;var Q=this.addLinkSection(n),S=document.createElement("select");S.style.maxWidth="260px";S.style.marginLeft="8px";S.style.marginTop="16px";C=document.createElement("option");C.setAttribute("value","light");mxUtils.write(C,mxResources.get("light"));S.appendChild(C);C=document.createElement("option");C.setAttribute("value","dark");mxUtils.write(C,mxResources.get("dark"));S.appendChild(C);C=document.createElement("option");C.setAttribute("value",
-"auto");mxUtils.write(C,mxResources.get("automatic"));C.setAttribute("selected","selected");S.appendChild(C);C.setAttribute("selected","selected");mxUtils.write(n,mxResources.get("appearance")+":");n.appendChild(S);mxUtils.br(n);z+=26;var U=this.addCheckbox(n,mxResources.get("zoom"),!0,null,!0);mxUtils.write(n,":");var O=document.createElement("input");O.setAttribute("type","text");O.style.marginRight="16px";O.style.width="60px";O.style.marginLeft="4px";O.style.marginRight="12px";O.value="100%";n.appendChild(O);
-var p=this.addCheckbox(n,mxResources.get("fit"),!0);C=null!=this.pages&&1<this.pages.length;var q=q=this.addCheckbox(n,mxResources.get("allPages"),C,!C),G=this.addCheckbox(n,mxResources.get("layers"),!0),E=this.addCheckbox(n,mxResources.get("tags"),!0),H=this.addCheckbox(n,mxResources.get("lightbox"),!0),L=null;if(EditorUi.enableHtmlEditOption){L=this.addEditButton(n,H);var K=L.getEditInput();K.style.marginBottom="16px";z+=50;mxEvent.addListener(H,"change",function(){H.checked?K.removeAttribute("disabled"):
-K.setAttribute("disabled","disabled");K.checked&&H.checked?L.getEditSelect().removeAttribute("disabled"):L.getEditSelect().setAttribute("disabled","disabled")})}c=new CustomDialog(this,n,mxUtils.bind(this,function(){l(D.checked?g:null,U.checked,O.value,Q.getTarget(),Q.getColor(),p.checked,q.checked,G.checked,E.checked,H.checked,null!=L?L.getLink():null,null!=S?S.value:null)}),null,c,e);this.showDialog(c.container,340,z,!0,!0);u.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,e,g,l,n,
-u,z,D,C,A,Q){var S=document.createElement("div");S.style.whiteSpace="nowrap";var U=document.createElement("h3");mxUtils.write(U,c||mxResources.get("publish"));U.style.width="100%";U.style.textAlign="center";U.style.marginTop="2px";U.style.marginBottom="20px";S.appendChild(U);var O=document.createElement("select");c=30;O.className="geBtn";O.style.marginBottom="8px";O.style.marginLeft="0px";O.style.width="100%";O.style.boxSizing="border-box";if(null==D||""==D.getHash())n=null!=n?n:"https://www.drawio.com/doc/faq/publish-diagram-as-link",
-U=document.createElement("option"),mxUtils.write(U,mxResources.get("makeCopy")),U.setAttribute("value","copy"),O.appendChild(U);U=document.createElement("option");mxUtils.write(U,mxResources.get("authorizationRequired"));U.setAttribute("value","auth");O.appendChild(U);null!=D&&""!=D.getHash()||U.setAttribute("disabled","disabled");D=document.createElement("option");D.setAttribute("value","public");O.appendChild(D);null!=z?(mxUtils.write(D,mxResources.get("publicDiagramUrl")),D.setAttribute("title",
-z),O.value="public"):(mxUtils.write(D,mxResources.get("publicDiagramUrl")+" ("+mxResources.get("diagramIsNotPublic")+")"),D.setAttribute("disabled","disabled"));S.appendChild(O);mxUtils.br(S);O.focus();var p=null,q=null;if(null!=e||null!=g)c+=30,mxUtils.write(S,mxResources.get("width")+":"),p=document.createElement("input"),p.setAttribute("type","text"),p.style.marginRight="16px",p.style.width="50px",p.style.marginLeft="6px",p.style.marginRight="16px",p.style.marginBottom="10px",p.value="100%",S.appendChild(p),
-mxUtils.write(S,mxResources.get("height")+":"),q=document.createElement("input"),q.setAttribute("type","text"),q.style.width="50px",q.style.marginLeft="6px",q.style.marginBottom="10px",q.value=g+"px",S.appendChild(q),mxUtils.br(S);var G=this.addLinkSection(S,l),E=A?this.addCheckbox(S,mxResources.get("transparentBackground"),!1):null;null!=E&&(c+=20);var H=null;null!=this.pages&&null!=this.currentPage&&0<this.getPageIndex(this.currentPage)&&(c+=30,e=null!=this.currentPage?this.currentPage.getName():
-"",16<e.length&&(e=e.substring(0,16)+"..."),H=this.addCheckbox(S,mxResources.get("selectedPage")+": "+e));var L=document.createElement("select");L.style.maxWidth="260px";L.style.marginLeft="8px";L.style.marginTop="16px";e=document.createElement("option");e.setAttribute("value","0");mxUtils.write(e,mxResources.get("light"));L.appendChild(e);e=document.createElement("option");e.setAttribute("value","1");mxUtils.write(e,mxResources.get("dark"));L.appendChild(e);e=document.createElement("option");e.setAttribute("value",
-"auto");mxUtils.write(e,mxResources.get("automatic"));e.setAttribute("selected","selected");L.appendChild(e);Q&&(mxUtils.write(S,mxResources.get("appearance")+":"),S.appendChild(L),mxUtils.br(S),c+=30);var K=this.addCheckbox(S,mxResources.get("lightbox"),!0,null,null,!l),k=this.addEditButton(S,K),y=k.getEditInput();l&&(y.style.marginLeft=K.style.marginLeft,K.style.display="none",c-=20);var F=this.addCheckbox(S,mxResources.get("layers"),!0);F.style.marginLeft=y.style.marginLeft;F.style.marginTop="8px";
-var M=this.addCheckbox(S,mxResources.get("tags"),!0);M.style.marginLeft=y.style.marginLeft;M.style.marginBottom="16px";M.style.marginTop="16px";mxEvent.addListener(K,"change",function(){K.checked?(F.removeAttribute("disabled"),y.removeAttribute("disabled"),M.removeAttribute("disabled")):(F.setAttribute("disabled","disabled"),y.setAttribute("disabled","disabled"),M.setAttribute("disabled","disabled"));y.checked&&K.checked?k.getEditSelect().removeAttribute("disabled"):k.getEditSelect().setAttribute("disabled",
-"disabled")});l=new CustomDialog(this,S,mxUtils.bind(this,function(){C(G.getTarget(),G.getColor(),null==H?!1:H.checked,K.checked,k.getLink(),F.checked,null!=p?p.value:null,null!=q?q.value:null,M.checked,O.value,null!=E?E.checked:!1,L.value)}),null,mxResources.get("create"),n,u);this.showDialog(l.container,340,296+c,!0,!0);null!=p?(p.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?p.select():document.execCommand("selectAll",!1,null)):null==O.parentNode;G.focus()};EditorUi.prototype.showRemoteExportDialog=
-function(c,e,g,l,n){var u=document.createElement("div");u.style.whiteSpace="nowrap";var z=document.createElement("h3");mxUtils.write(z,mxResources.get("image"));z.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(n?"10":"4")+"px";u.appendChild(z);if(n){mxUtils.write(u,mxResources.get("zoom")+":");var D=document.createElement("input");D.setAttribute("type","text");D.style.marginRight="16px";D.style.width="60px";D.style.marginLeft="4px";D.style.marginRight="12px";D.value=this.lastExportZoom||
-"100%";u.appendChild(D);mxUtils.write(u,mxResources.get("borderWidth")+":");var C=document.createElement("input");C.setAttribute("type","text");C.style.marginRight="16px";C.style.width="60px";C.style.marginLeft="4px";C.value=this.lastExportBorder||"0";u.appendChild(C);mxUtils.br(u)}var A=this.addCheckbox(u,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),Q=l?null:this.addCheckbox(u,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);z=this.editor.graph;
-var S=l?null:this.addCheckbox(u,mxResources.get("transparentBackground"),z.background==mxConstants.NONE||null==z.background);null!=S&&(S.style.marginBottom="16px");c=new CustomDialog(this,u,mxUtils.bind(this,function(){var U=parseInt(D.value)/100||1,O=parseInt(C.value)||0;g(!A.checked,null!=Q?Q.checked:!1,null!=S?S.checked:!1,U,O)}),null,c,e);this.showDialog(c.container,300,(n?25:0)+(l?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(c,e,g,l,n,u,z,D,C){z=null!=z?z:Editor.defaultIncludeDiagram;
-var A=document.createElement("div");A.style.whiteSpace="nowrap";var Q=this.editor.graph,S="jpeg"==D||"webp"==D?220:320,U=document.createElement("h3");mxUtils.write(U,c);U.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";A.appendChild(U);mxUtils.write(A,mxResources.get("zoom")+":");var O=document.createElement("input");O.setAttribute("type","text");O.style.marginRight="16px";O.style.width="60px";O.style.marginLeft="4px";O.style.marginRight="12px";O.value=this.lastExportZoom||
-"100%";A.appendChild(O);mxUtils.write(A,mxResources.get("borderWidth")+":");var p=document.createElement("input");p.setAttribute("type","text");p.style.marginRight="16px";p.style.width="60px";p.style.marginLeft="4px";p.value=this.lastExportBorder||"0";A.appendChild(p);mxUtils.br(A);var q=this.addCheckbox(A,mxResources.get("selectionOnly"),!1,Q.isSelectionEmpty()),G=document.createElement("input");G.style.marginTop="16px";G.style.marginRight="8px";G.style.marginLeft="24px";G.setAttribute("disabled",
-"disabled");G.setAttribute("type","checkbox");var E=document.createElement("select");E.style.marginTop="16px";E.style.marginLeft="8px";c=["selectionOnly","diagram","page"];for(U=0;U<c.length;U++)if(!Q.isSelectionEmpty()||"selectionOnly"!=c[U]){var H=document.createElement("option");mxUtils.write(H,mxResources.get(c[U]));H.setAttribute("value",c[U]);E.appendChild(H)}C?(mxUtils.write(A,mxResources.get("size")+":"),A.appendChild(E),mxUtils.br(A),S+=26,mxEvent.addListener(E,"change",function(){"selectionOnly"==
-E.value&&(q.checked=!0)})):u&&(A.appendChild(G),mxUtils.write(A,mxResources.get("crop")),mxUtils.br(A),S+=30,mxEvent.addListener(q,"change",function(){q.checked?G.removeAttribute("disabled"):G.setAttribute("disabled","disabled")}));Q.isSelectionEmpty()?C&&(q.style.display="none",q.nextSibling.style.display="none",q.nextSibling.nextSibling.style.display="none",S-=30):(E.value="diagram",G.setAttribute("checked","checked"),G.defaultChecked=!0,mxEvent.addListener(q,"change",function(){E.value=q.checked?
-"selectionOnly":"diagram"}));var L=this.addCheckbox(A,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=D&&"webp"!=D),K=document.createElement("select");K.style.maxWidth="260px";K.style.marginLeft="8px";K.style.marginTop="16px";u=document.createElement("option");u.setAttribute("value","light");mxUtils.write(u,mxResources.get("light"));K.appendChild(u);C=document.createElement("option");C.setAttribute("value","dark");mxUtils.write(C,mxResources.get("dark"));K.appendChild(C);"svg"==D&&mxUtils.lightDarkColorSupported?
-(u=document.createElement("option"),u.setAttribute("value","auto"),mxUtils.write(u,mxResources.get("automatic")),u.setAttribute("selected","selected"),K.appendChild(u)):Editor.isDarkMode()?C.setAttribute("selected","selected"):u.setAttribute("selected","selected");mxUtils.write(A,mxResources.get("appearance")+":");A.appendChild(K);mxUtils.br(A);S+=26;var k=this.addCheckbox(A,mxResources.get("shadow"),Q.shadowVisible),y=null;if("png"==D||"jpeg"==D||"webp"==D)y=this.addCheckbox(A,mxResources.get("grid"),
-!1,this.isOffline()||!this.canvasSupported,!1,!0),S+=30;var F=this.addCheckbox(A,mxResources.get("includeCopyOfMyDiagram")+":",z,null,null,"jpeg"!=D&&"webp"!=D),M=document.createElement("select");M.style.maxWidth="260px";M.style.marginLeft="28px";"png"==D||"svg"==D?(z=function(){F.checked?M.removeAttribute("disabled"):M.setAttribute("disabled","disabled")},Q=document.createElement("option"),Q.setAttribute("value","allPages"),mxUtils.write(Q,mxResources.get("allPages")),M.appendChild(Q),Q=document.createElement("option"),
-Q.setAttribute("value","currentPage"),mxUtils.write(Q,mxResources.get("currentPage")),M.appendChild(Q),F.style.marginBottom="12px",M.style.marginBottom="16px",A.appendChild(M),mxUtils.br(A),S+=20,null!=this.lastEmbedInclude&&(M.value=this.lastEmbedInclude),mxEvent.addListener(F,"change",z),z()):F.style.marginBottom="16px";var P=document.createElement("input");P.style.marginBottom="16px";P.style.marginRight="8px";P.setAttribute("type","checkbox");var R=document.createElement("input");R.style.marginBottom=
-"16px";R.style.marginRight="8px";R.setAttribute("type","checkbox");e&&(P.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,A.appendChild(P),mxUtils.write(A,mxResources.get("embedImages")),mxUtils.br(A),R.checked=null!=this.lastEmbedFonts?this.lastEmbedImages:!0,A.appendChild(R),mxUtils.write(A,mxResources.get("embedFonts")),mxUtils.br(A),S+=50);var T=document.createElement("select");T.style.maxWidth="260px";T.style.marginLeft="8px";u=document.createElement("option");u.setAttribute("value",
-"auto");mxUtils.write(u,mxResources.get("automatic"));T.appendChild(u);z=document.createElement("option");z.setAttribute("value","blank");mxUtils.write(z,mxResources.get("openInNewWindow"));T.appendChild(z);z=document.createElement("option");z.setAttribute("value","self");mxUtils.write(z,mxResources.get("openInThisWindow"));T.appendChild(z);z=document.createElement("div");mxUtils.write(z,mxResources.get("LinksLost"));z.style.margin="7px";z.style.display="none";"svg"==D&&(mxUtils.write(A,mxResources.get("links")+
-":"),A.appendChild(T),A.appendChild(z),mxUtils.br(A),mxUtils.br(A),S+=50);g=new CustomDialog(this,A,mxUtils.bind(this,function(){this.lastExportBorder=p.value;this.lastExportZoom=O.value;this.lastEmbedImages=P.checked;this.lastEmbedFonts=R.checked;this.lastEmbedInclude=M.value;n(O.value,L.checked,!q.checked,k.checked,F.checked,P.checked&&e,p.value,G.checked,("png"==D||"svg"==D)&&"currentPage"==M.value,T.value,null!=y?y.checked:null,null!=K?K.value:null,E.value,R.checked)}),null,g,l);this.showDialog(g.container,
-340,S,!0,!0,null,null,null,null,!0);O.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?O.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,e,g,l,n){var u=document.createElement("div");u.style.whiteSpace="nowrap";var z=this.editor.graph;if(null!=e){var D=document.createElement("h3");mxUtils.write(D,e);D.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";u.appendChild(D)}var C=this.addCheckbox(u,mxResources.get("fit"),
-!0),A=this.addCheckbox(u,mxResources.get("shadow"),z.shadowVisible&&l,!l),Q=this.addCheckbox(u,g),S=this.addCheckbox(u,mxResources.get("lightbox"),!0),U=this.addEditButton(u,S),O=U.getEditInput(),p=1<z.model.getChildCount(z.model.getRoot()),q=this.addCheckbox(u,mxResources.get("layers"),p,!p);q.style.marginLeft=O.style.marginLeft;q.style.marginBottom="12px";q.style.marginTop="8px";mxEvent.addListener(S,"change",function(){S.checked?(p&&q.removeAttribute("disabled"),O.removeAttribute("disabled")):
-(q.setAttribute("disabled","disabled"),O.setAttribute("disabled","disabled"));O.checked&&S.checked?U.getEditSelect().removeAttribute("disabled"):U.getEditSelect().setAttribute("disabled","disabled")});e=new CustomDialog(this,u,mxUtils.bind(this,function(){c(C.checked,A.checked,Q.checked,S.checked,U.getLink(),q.checked)}),null,mxResources.get("embed"),n);this.showDialog(e.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,e,g,l,n,u,z,D){function C(O){var p=" ",q="";l&&(p=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
-EditorUi.lightboxHost+"/?client=1"+(null!=Q?"&page="+Q:"")+(n?"&edit=_blank":"")+(u?"&layers=1":"")+"');}})(this);\"",q+="cursor:pointer;");c&&(q+="max-width:100%;");var G="";g&&(G=' width="'+Math.round(A.width)+'" height="'+Math.round(A.height)+'"');z('<img src="'+O+'"'+G+(""!=q?' style="'+q+'"':"")+p+"/>")}var A=this.editor.graph.getGraphBounds(),Q=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(O){var p=l?this.getFileData(!0):null;O=
-this.createImageDataUri(O,p,"png");C(O)}),null,null,null,mxUtils.bind(this,function(O){D({message:mxResources.get("unknownError")})}),null,!0,g?2:1,null,e,null,null,Editor.defaultBorder);else if(e=this.getFileData(!0),A.width*A.height<=MAX_AREA&&e.length<=MAX_REQUEST_SIZE){var S="";g&&(S="&w="+Math.round(2*A.width)+"&h="+Math.round(2*A.height));var U=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(l?"1":"0")+S+"&xml="+encodeURIComponent(e));U.send(mxUtils.bind(this,function(){200<=U.getStatus()&&
-299>=U.getStatus()?C("data:image/png;base64,"+U.getText()):D({message:mxResources.get("unknownError")})}))}else D({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(c,e,g,l,n,u,z){var D=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!g,"auto"),C=D.getElementsByTagName("a");if(null!=C)for(var A=0;A<C.length;A++){var Q=C[A].getAttribute("href");null!=Q&&"#"==Q.charAt(0)&&"_blank"==C[A].getAttribute("target")&&C[A].removeAttribute("target")}l&&
-D.setAttribute("content",this.getFileData(!0));e&&this.editor.graph.addSvgShadow(D);if(g){var S=" ",U="";l&&(S="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(n?"&edit=_blank":"")+(u?"&layers=1":
-"")+"');}})(this);\"",U+="cursor:pointer;");c&&(U+="max-width:100%;");this.editor.convertImages(D,mxUtils.bind(this,function(O){z('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(O))+'"'+(""!=U?' style="'+U+'"':"")+S+"/>")}))}else U="",l&&(e=this.getSelectedPageIndex(),D.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+
-EditorUi.lightboxHost+"/?client=1"+(null!=e?"&page="+e:"")+(n?"&edit=_blank":"")+(u?"&layers=1":"")+"');}}})(this);"),U+="cursor:pointer;"),c&&(c=parseInt(D.getAttribute("width")),n=parseInt(D.getAttribute("height")),D.setAttribute("viewBox","-0.5 -0.5 "+c+" "+n),U+="max-width:100%;max-height:"+n+"px;",D.removeAttribute("height")),""!=U&&D.setAttribute("style",U),this.editor.addFontCss(D),this.editor.graph.mathEnabled&&this.editor.addMathCss(D),z(mxUtils.getXml(D))};EditorUi.prototype.timeSince=function(c){c=
+this.chromelessToolbar.offsetHeight+4+"px";u=mxUtils.getCurrentStyle(this.editor.graph.container);this.exportDialog.style.zIndex=u.zIndex;var z=new Spinner({lines:8,length:6,width:5,radius:6,rotate:0,color:"light-dark(#000000, #C0C0C0)",speed:1.5,trail:60,shadow:!1,hwaccel:!1,top:"28px",zIndex:2E9});z.spin(this.exportDialog);document.body.appendChild(this.exportDialog);mxEvent.addListener(this.editor.graph.container,"click",p);this.editor.exportToCanvas(mxUtils.bind(this,function(E){z.stop();this.exportDialog.style.width=
+"auto";this.exportDialog.style.height="auto";this.exportDialog.style.padding="10px";var D=this.createImageDataUri(E,null,"png");E=document.createElement("img");E.style.maxWidth="140px";E.style.maxHeight="140px";E.style.cursor="pointer";E.style.backgroundColor="white";E.setAttribute("title",mxResources.get("openInNewWindow"));E.setAttribute("border","0");E.setAttribute("src",D);this.exportDialog.appendChild(E);mxEvent.addListener(E,"click",mxUtils.bind(this,function(){this.openInNewWindow(D.substring(D.indexOf(",")+
+1),"image/png",!0);p.apply(this,arguments)}))}),null,this.thumbImageCache,null,mxUtils.bind(this,function(E){z.stop();null!=this.exportDialog&&null!=this.exportDialog.parentNode&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);this.handleError(E)}),null,null,null,null,null,null,null,Editor.defaultBorder)}mxEvent.consume(l)}),Editor.cameraImage,mxResources.get("export"))}};EditorUi.prototype.saveData=function(c,e,g,l,p){this.isLocalFileSave()?this.saveLocalFile(g,
+c,l,p,e):this.saveRequest(c,e,mxUtils.bind(this,function(u,z){return this.createEchoRequest(g,u,l,p,e,z)}),g,p,l)};EditorUi.prototype.saveRequest=function(c,e,g,l,p,u,z){z=null!=z?z:!mxClient.IS_IOS||!navigator.standalone;var E=mxUtils.bind(this,function(A,P,R,T){if("_blank"==P||null!=A&&0<A.length){var L=g("_blank"==P?null:A,P==App.MODE_DEVICE||"download"==P||null==P||"_blank"==P?"0":"1");null!=L&&(P==App.MODE_DEVICE||"download"==P||"_blank"==P?L.simulate(document,"_blank"):(R=mxUtils.bind(this,
+function(U){u=null!=u?u:"pdf"==e?"application/pdf":"image/"+e;if(null!=l)try{this.exportFile(l,A,u,!0,P,U)}catch(n){this.handleError(n)}else this.spinner.spin(document.body,mxResources.get("saving"))&&L.send(mxUtils.bind(this,function(){this.spinner.stop();if(200<=L.getStatus()&&299>=L.getStatus())try{this.exportFile(L.getText(),A,u,!0,P,U)}catch(n){this.handleError(n)}else this.handleError({message:mxResources.get("errorSavingFile")})}),mxUtils.bind(this,function(n){this.spinner.stop();this.handleError(n)}))}),
+null!=T?R(T):this.pickFolder(P,R)))}});p=[App.MODE_BROWSER];z||p.push("_blank");var D=new SaveDialog(this,c,mxUtils.bind(this,function(A,P,R){E(A.value,P,A,R);this.hideDialog(null,null,D.container)}),p,null,"application/pdf");this.showDialog(D.container,420,110,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));D.init()};EditorUi.prototype.isServices=function(c){return 1!=c};EditorUi.prototype.getEditBlankXml=function(){return this.getFileData(!0)};EditorUi.prototype.exportFile=function(c,e,
+g,l,p,u){};EditorUi.prototype.getServiceForName=function(c){return null};EditorUi.prototype.getTitleForService=function(c){return mxResources.get(c)};EditorUi.prototype.pickFolder=function(c,e,g){e(null)};EditorUi.prototype.exportSvg=function(c,e,g,l,p,u,z,E,D,A,P,R,T,L){if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(O){Editor.addRetryToError(O,mxUtils.bind(this,function(){this.exportSvg(c,e,g,l,p,u,z,E,D,A,P,R,T,L)}));this.handleError(O)})))try{var U=this.editor.graph.isSelectionEmpty();
+g=null!=g?g:U;var n=e?null:this.editor.graph.background;n==mxConstants.NONE&&(n=null);null==n&&0==e&&(n=this.editor.graph.shapeBackgroundColor);var t=this.editor.graph.addForeignObjectWarning;Editor.foreignObjectImages&&(this.editor.graph.addForeignObjectWarning=function(){});var B=mxUtils.lightDarkColorSupported,F=mxUtils.preferDarkColor;if("light"==P||"dark"==P)mxUtils.lightDarkColorSupported=!1,mxUtils.preferDarkColor="dark"==P;var J=this.editor.graph.createSvgImageExport(p),K=this.editor.graph.getSvg(n,
+c,z,E,null,g,null,J,"blank"==A?"_blank":"self"==A?"_top":null,null,!T,P,R);mxUtils.lightDarkColorSupported=B;mxUtils.preferDarkColor=F;this.editor.graph.addForeignObjectWarning=t;l&&this.editor.graph.addSvgShadow(K);var k=this.getBaseFilename()+(p?".drawio":"")+".svg";L=null!=L?L:mxUtils.bind(this,function(O){this.isLocalFileSave()||O.length<=MAX_REQUEST_SIZE?this.saveData(k,"svg",O,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,
+function(){mxUtils.popup(O)}))});var v=mxUtils.bind(this,function(O){this.spinner.stop();p&&O.setAttribute("content",this.getFileData(!0,null,null,null,g,D,null,null,null,null,null,c,z));L(Graph.xmlDeclaration+"\n"+(p?Graph.svgFileComment+"\n":"")+Graph.svgDoctype+"\n"+mxUtils.getXml(O))});this.editor.graph.mathEnabled&&this.editor.addMathCss(K);var G=mxUtils.bind(this,function(O){Editor.replaceSvgDataUris&&u&&EditorUi.embedSvgImages(O);Editor.foreignObjectImages&&T?this.replaceAlternateContent(O,
+P,v):v(O)}),N=mxUtils.bind(this,function(O){u&&!this.isOffline()&&this.canvasSupported?(null==this.thumbImageCache&&(this.thumbImageCache={}),this.editor.convertImages(O,G,this.thumbImageCache)):G(O)});T?this.embedFonts(K,N):(this.editor.addFontCss(K),N(K))}catch(O){this.handleError(O)}};EditorUi.prototype.replaceAlternateContent=function(c,e,g){function l(R,T,L,U,n){var t=mxUtils.createElementNs(c.ownerDocument,mxConstants.NS_SVG,"image");t.setAttribute("x",T);t.setAttribute("y",L+.5);t.setAttribute("width",
+U.width);t.setAttribute("height",U.height);null==t.setAttributeNS?t.setAttribute("xlink:href",n):t.setAttributeNS(mxConstants.NS_XLINK,"xlink:href",n);R.replaceChild(t,R.lastChild);E()}function p(){if(z<P.length)P[z++](p)}var u="";e=c.getElementsByTagName("style");for(var z=0;z<e.length;z++)u+=e[z].innerHTML;e=c.getElementsByTagName("switch");counter=e.length;var E=mxUtils.bind(this,function(){counter--;0==counter&&g(c)}),D={},A={},P=[];for(z=0;z<e.length;z++)mxUtils.bind(this,function(R){var T=R.getElementsByTagName("div");
+if(0<T.length)try{var L=T[0].cloneNode(!0),U=parseInt(L.style.marginLeft),n=parseInt(L.style.paddingTop),t=L.getElementsByTagName("div")[1],B=T=!1,F=L.style.alignItems,J=L.style.justifyContent;if(null!=L.style.writingMode){var K=L.style.writingMode;B="vertical-"==K.substring(0,9);T="-rl"==K.substring(K.length-3)}var k=!B&&"1px"==L.style.width||B&&"1px"==L.style.height;if(!B&&"1px"==L.style.height||B&&"1px"==L.style.width)L.style.alignItems=B&&T?"unsafe flex-end":"unsafe flex-start";k&&(L.style.justifyContent=
+"unsafe flex-start");L.style.paddingTop="";L.style.marginLeft="";var v=L.outerHTML,G=D[v];null==G&&(L.style.position="absolute",L.style.visibility="hidden",document.body.appendChild(L),K=1,K="1px"==L.style.width?t.offsetWidth:parseInt(L.style.width),k=1,k="1px"==L.style.height?t.offsetHeight:parseInt(L.style.height),document.body.removeChild(L),G=new mxRectangle(U,n,K,k),D[v]=G);"1px"==L.style.height&&("unsafe center"==F?n-=G.height/2:"unsafe flex-end"==F&&(n-=G.height));if("1px"==L.style.width)if(!B&&
+"unsafe center"==J||B&&"unsafe center"==F)U-=G.width/2;else if(!B&&"unsafe flex-end"==J||B&&(!T&&"unsafe flex-end"==F||T&&"unsafe flex-start"==F))U-=G.width;G=new mxRectangle(U,n,G.width,G.height+parseInt(t.style.fontSize)/4);P.push(mxUtils.bind(this,function(N){var O=A[v];null==O?Graph.htmlToPng(v,G.width,G.height,mxUtils.bind(this,function(Q){l(R,U,n,G,Q);A[v]=Q;N()}),u):(l(R,U,n,G,O),N())}))}catch(N){E()}else E()})(e[z]);0==counter&&g(c);z=0;p()};EditorUi.prototype.addRadiobox=function(c,e,g,l,
+p,u,z){return this.addCheckbox(c,g,l,p,u,z,!0,e)};EditorUi.prototype.addCheckbox=function(c,e,g,l,p,u,z,E){u=null!=u?u:!0;var D=document.createElement("input");D.style.marginRight="8px";D.style.marginTop="16px";D.setAttribute("type",z?"radio":"checkbox");z="geCheckbox-"+Editor.guid();D.id=z;null!=E&&D.setAttribute("name",E);g&&(D.setAttribute("checked","checked"),D.defaultChecked=!0);l&&D.setAttribute("disabled","disabled");u&&(c.appendChild(D),g=document.createElement("label"),mxUtils.write(g,e),
+g.setAttribute("for",z),c.appendChild(g),p||mxUtils.br(c));return D};EditorUi.prototype.addEditButton=function(c,e){var g=this.addCheckbox(c,mxResources.get("edit")+":",!0,null,!0);g.style.marginLeft="24px";var l=this.getCurrentFile(),p="";null!=l&&l.getMode()!=App.MODE_DEVICE&&l.getMode()!=App.MODE_BROWSER&&(p=window.location.href);var u=document.createElement("select");u.style.maxWidth="200px";u.style.width="auto";u.style.marginLeft="8px";u.style.marginRight="10px";u.className="geBtn";l=document.createElement("option");
+l.setAttribute("value","blank");mxUtils.write(l,mxResources.get("makeCopy"));u.appendChild(l);var z=document.createElement("option");z.setAttribute("value","custom");mxUtils.write(z,mxResources.get("custom")+"...");u.appendChild(z);c.appendChild(u);mxEvent.addListener(u,"change",mxUtils.bind(this,function(){if("custom"==u.value){var E=new FilenameDialog(this,p,mxResources.get("ok"),function(D){null!=D?(p=D,z.setAttribute("title",D)):(u.value="blank",z.removeAttribute("title"))},mxResources.get("url"),
+null,null,null,null,function(){u.value="blank"});this.showDialog(E.container,300,80,!0,!1);E.init()}}));mxEvent.addListener(g,"change",mxUtils.bind(this,function(){g.checked&&(null==e||e.checked)?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled")}));mxUtils.br(c);return{getLink:function(){return g.checked?"blank"===u.value?"_blank":p:null},getEditInput:function(){return g},getEditSelect:function(){return u}}};EditorUi.prototype.addLinkSection=function(c,e){function g(){var E=document.createElement("div");
+E.style.width="100%";E.style.height="100%";E.style.boxSizing="border-box";null!=u&&u!=mxConstants.NONE?(E.style.border="1px solid black",E.style.backgroundColor=u):(E.style.backgroundPosition="center center",E.style.backgroundRepeat="no-repeat",E.style.backgroundImage="url('"+Dialog.prototype.closeImage+"')");z.innerText="";z.appendChild(E)}mxUtils.write(c,mxResources.get("links")+":");var l=document.createElement("select");l.style.width="100px";l.style.padding="0px";l.style.marginLeft="8px";l.style.marginRight=
+"10px";l.className="geBtn";var p=document.createElement("option");p.setAttribute("value","auto");mxUtils.write(p,mxResources.get("automatic"));l.appendChild(p);p=document.createElement("option");p.setAttribute("value","blank");mxUtils.write(p,mxResources.get("openInNewWindow"));l.appendChild(p);p=document.createElement("option");p.setAttribute("value","self");mxUtils.write(p,mxResources.get("openInThisWindow"));l.appendChild(p);e&&(e=document.createElement("option"),e.setAttribute("value","frame"),
+mxUtils.write(e,mxResources.get("openInThisWindow")+" ("+mxResources.get("iframe")+")"),l.appendChild(e));c.appendChild(l);mxUtils.write(c,mxResources.get("borderColor")+":");var u="#0000ff",z=null;z=mxUtils.button("",mxUtils.bind(this,function(E){this.pickColor(u||"none",function(D){u=D;g()});mxEvent.consume(E)}));g();z.style.padding=mxClient.IS_FF?"4px 2px 4px 2px":"4px";z.style.marginLeft="4px";z.style.height="22px";z.style.width="22px";z.style.position="relative";z.style.top=mxClient.IS_IE||mxClient.IS_IE11||
+mxClient.IS_EDGE?"6px":"1px";z.className="geColorBtn";c.appendChild(z);mxUtils.br(c);return{getColor:function(){return u},getTarget:function(){return l.value},focus:function(){l.focus()}}};EditorUi.prototype.createUrlParameters=function(c,e,g,l,p,u){u=null!=u?u:[];g&&(u.push("lightbox=1"),"auto"!=c&&u.push("target="+c),null!=e&&e!=mxConstants.NONE&&u.push("highlight="+("#"==e.charAt(0)?e.substring(1):e)),null!=l&&0<l.length&&u.push("edit="+encodeURIComponent(l)),p&&u.push("layers=1"),this.editor.graph.foldingEnabled&&
+u.push("nav=1"));return u};EditorUi.prototype.createLink=function(c,e,g,l,p,u,z,E,D,A,P,R,T){var L=this.getCurrentFile();D=this.createUrlParameters(c,e,l,p,u,D);c=!0;null!=z?g="#U"+encodeURIComponent(z):E||null==L||""==L.getHash()?g="#R"+encodeURIComponent(g?this.getFileData(!0,null,null,null,null,null,null,!0,null,!1):Graph.compress(mxUtils.getXml(this.editor.getGraphXml()))):(g="#"+L.getHash(),c=!1);c&&null!=L&&null!=L.getTitle()&&L.getTitle()!=this.defaultFilename&&D.push("title="+encodeURIComponent(L.getTitle()));
+A&&1<g.length&&(D.push("open="+g.substring(1)),g="");P&&null!=this.currentPage&&D.push("page-id="+this.currentPage.getId());R&&D.push("transparent=1");null!=T&&D.push("dark="+T);return(l&&(null!=z||null!=L&&L.getMode()!=App.MODE_GITHUB&&L.getMode()!=App.MODE_GITLAB)?EditorUi.lightboxHost:mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||!/.*\.draw\.io$/.test(window.location.hostname)?EditorUi.drawHost:"https://"+window.location.host)+"/"+(0<D.length?"?"+D.join("&"):"")+g};EditorUi.prototype.createHtml=
+function(c,e,g,l,p,u,z,E,D,A,P,R,T){this.getBasenames();var L={};""!=p&&p!=mxConstants.NONE&&(L.highlight=p);"auto"!==l&&(L.target=l);A||(L.lightbox=!1);L.nav=this.editor.graph.foldingEnabled;g=parseInt(g);isNaN(g)||100==g||(L.zoom=g/100);g=[];z&&(g.push("pages"),L.resize=!0,null!=this.pages&&null!=this.currentPage&&(L.page=mxUtils.indexOf(this.pages,this.currentPage)));e&&(g.push("zoom"),L.resize=!0);E&&g.push("layers");D&&g.push("tags");null!=T&&(L["dark-mode"]=T);0<g.length&&(A&&g.push("lightbox"),
+L.toolbar=g.join(" "));null!=P&&0<P.length&&(L.edit=P);null!=c?L.url=c:L.xml=this.getFileData(!0,null,null,null,null,!z);e='<div class="mxgraph" style="'+(u?"max-width:100%;":"")+(""!=g?"border:1px solid transparent;":"")+'" data-mxgraph="'+mxUtils.htmlEntities(JSON.stringify(L))+'"></div>';c=null!=c?"&fetch="+encodeURIComponent(c):"";R(e,'<script type="text/javascript" src="'+(0<c.length?("1"==urlParams.dev?"https://test.draw.io/embed2.js?dev=1":EditorUi.lightboxHost+"/embed2.js?")+c:"1"==urlParams.dev?
+"https://test.draw.io/js/viewer-static.min.js":window.DRAWIO_VIEWER_URL?window.DRAWIO_VIEWER_URL:EditorUi.lightboxHost+"/js/viewer-static.min.js")+'">\x3c/script>')};EditorUi.prototype.showHtmlDialog=function(c,e,g,l){var p=document.createElement("div");p.style.whiteSpace="nowrap";var u=document.createElement("h3");mxUtils.write(u,mxResources.get("html"));u.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";p.appendChild(u);var z=document.createElement("div");z.style.cssText=
+"border-bottom:1px solid lightGray;padding-bottom:8px;margin-bottom:12px;";var E=document.createElement("input");E.style.cssText="margin-right:8px;margin-top:8px;margin-bottom:8px;";E.setAttribute("value","url");E.setAttribute("type","radio");E.setAttribute("name","type-embedhtmldialog");u=E.cloneNode(!0);u.setAttribute("value","copy");z.appendChild(u);var D=document.createElement("span");mxUtils.write(D,mxResources.get("includeCopyOfMyDiagram"));z.appendChild(D);mxUtils.br(z);z.appendChild(E);D=
+document.createElement("span");mxUtils.write(D,mxResources.get("publicDiagramUrl"));z.appendChild(D);var A=this.getCurrentFile();null==g&&null!=A&&A.constructor==window.DriveFile&&(D=document.createElement("a"),D.style.paddingLeft="12px",D.style.color="gray",D.style.cursor="pointer",mxUtils.write(D,mxResources.get("share")),z.appendChild(D),mxEvent.addListener(D,"click",mxUtils.bind(this,function(){this.hideDialog();this.drive.showPermissions(A.getId(),A)})));u.setAttribute("checked","checked");null==
+g&&E.setAttribute("disabled","disabled");p.appendChild(z);z=380;var P=this.addLinkSection(p),R=document.createElement("select");R.style.maxWidth="260px";R.style.marginLeft="8px";R.style.marginTop="16px";D=document.createElement("option");D.setAttribute("value","light");mxUtils.write(D,mxResources.get("light"));R.appendChild(D);D=document.createElement("option");D.setAttribute("value","dark");mxUtils.write(D,mxResources.get("dark"));R.appendChild(D);D=document.createElement("option");D.setAttribute("value",
+"auto");mxUtils.write(D,mxResources.get("automatic"));D.setAttribute("selected","selected");R.appendChild(D);D.setAttribute("selected","selected");mxUtils.write(p,mxResources.get("appearance")+":");p.appendChild(R);mxUtils.br(p);z+=26;var T=this.addCheckbox(p,mxResources.get("zoom"),!0,null,!0);mxUtils.write(p,":");var L=document.createElement("input");L.setAttribute("type","text");L.style.marginRight="16px";L.style.width="60px";L.style.marginLeft="4px";L.style.marginRight="12px";L.value="100%";p.appendChild(L);
+var U=this.addCheckbox(p,mxResources.get("fit"),!0);D=null!=this.pages&&1<this.pages.length;var n=n=this.addCheckbox(p,mxResources.get("allPages"),D,!D),t=this.addCheckbox(p,mxResources.get("layers"),!0),B=this.addCheckbox(p,mxResources.get("tags"),!0),F=this.addCheckbox(p,mxResources.get("lightbox"),!0),J=null;if(EditorUi.enableHtmlEditOption){J=this.addEditButton(p,F);var K=J.getEditInput();K.style.marginBottom="16px";z+=50;mxEvent.addListener(F,"change",function(){F.checked?K.removeAttribute("disabled"):
+K.setAttribute("disabled","disabled");K.checked&&F.checked?J.getEditSelect().removeAttribute("disabled"):J.getEditSelect().setAttribute("disabled","disabled")})}c=new CustomDialog(this,p,mxUtils.bind(this,function(){l(E.checked?g:null,T.checked,L.value,P.getTarget(),P.getColor(),U.checked,n.checked,t.checked,B.checked,F.checked,null!=J?J.getLink():null,null!=R?R.value:null)}),null,c,e);this.showDialog(c.container,340,z,!0,!0);u.focus()};EditorUi.prototype.showPublishLinkDialog=function(c,e,g,l,p,
+u,z,E,D,A,P){var R=document.createElement("div");R.style.whiteSpace="nowrap";var T=document.createElement("h3");mxUtils.write(T,c||mxResources.get("publish"));T.style.width="100%";T.style.textAlign="center";T.style.marginTop="2px";T.style.marginBottom="20px";R.appendChild(T);var L=document.createElement("select");c=30;L.className="geBtn";L.style.marginBottom="8px";L.style.marginLeft="0px";L.style.width="100%";L.style.boxSizing="border-box";if(null==E||""==E.getHash())p=null!=p?p:"https://www.drawio.com/doc/faq/publish-diagram-as-link",
+T=document.createElement("option"),mxUtils.write(T,mxResources.get("makeCopy")),T.setAttribute("value","copy"),L.appendChild(T);T=document.createElement("option");mxUtils.write(T,mxResources.get("authorizationRequired"));T.setAttribute("value","auth");L.appendChild(T);null!=E&&""!=E.getHash()||T.setAttribute("disabled","disabled");E=document.createElement("option");E.setAttribute("value","public");L.appendChild(E);null!=z?(mxUtils.write(E,mxResources.get("publicDiagramUrl")),E.setAttribute("title",
+z),L.value="public"):(mxUtils.write(E,mxResources.get("publicDiagramUrl")+" ("+mxResources.get("diagramIsNotPublic")+")"),E.setAttribute("disabled","disabled"));R.appendChild(L);mxUtils.br(R);L.focus();var U=null,n=null;if(null!=e||null!=g)c+=30,mxUtils.write(R,mxResources.get("width")+":"),U=document.createElement("input"),U.setAttribute("type","text"),U.style.marginRight="16px",U.style.width="50px",U.style.marginLeft="6px",U.style.marginRight="16px",U.style.marginBottom="10px",U.value="100%",R.appendChild(U),
+mxUtils.write(R,mxResources.get("height")+":"),n=document.createElement("input"),n.setAttribute("type","text"),n.style.width="50px",n.style.marginLeft="6px",n.style.marginBottom="10px",n.value=g+"px",R.appendChild(n),mxUtils.br(R);var t=this.addLinkSection(R,l),B=A?this.addCheckbox(R,mxResources.get("transparentBackground"),!1):null;null!=B&&(c+=20);var F=null;null!=this.pages&&null!=this.currentPage&&0<this.getPageIndex(this.currentPage)&&(c+=30,e=null!=this.currentPage?this.currentPage.getName():
+"",16<e.length&&(e=e.substring(0,16)+"..."),F=this.addCheckbox(R,mxResources.get("selectedPage")+": "+e));var J=document.createElement("select");J.style.maxWidth="260px";J.style.marginLeft="8px";J.style.marginTop="16px";e=document.createElement("option");e.setAttribute("value","0");mxUtils.write(e,mxResources.get("light"));J.appendChild(e);e=document.createElement("option");e.setAttribute("value","1");mxUtils.write(e,mxResources.get("dark"));J.appendChild(e);e=document.createElement("option");e.setAttribute("value",
+"auto");mxUtils.write(e,mxResources.get("automatic"));e.setAttribute("selected","selected");J.appendChild(e);P&&(mxUtils.write(R,mxResources.get("appearance")+":"),R.appendChild(J),mxUtils.br(R),c+=30);var K=this.addCheckbox(R,mxResources.get("lightbox"),!0,null,null,!l),k=this.addEditButton(R,K),v=k.getEditInput();l&&(v.style.marginLeft=K.style.marginLeft,K.style.display="none",c-=20);var G=this.addCheckbox(R,mxResources.get("layers"),!0);G.style.marginLeft=v.style.marginLeft;G.style.marginTop="8px";
+var N=this.addCheckbox(R,mxResources.get("tags"),!0);N.style.marginLeft=v.style.marginLeft;N.style.marginBottom="16px";N.style.marginTop="16px";mxEvent.addListener(K,"change",function(){K.checked?(G.removeAttribute("disabled"),v.removeAttribute("disabled"),N.removeAttribute("disabled")):(G.setAttribute("disabled","disabled"),v.setAttribute("disabled","disabled"),N.setAttribute("disabled","disabled"));v.checked&&K.checked?k.getEditSelect().removeAttribute("disabled"):k.getEditSelect().setAttribute("disabled",
+"disabled")});l=new CustomDialog(this,R,mxUtils.bind(this,function(){D(t.getTarget(),t.getColor(),null==F?!1:F.checked,K.checked,k.getLink(),G.checked,null!=U?U.value:null,null!=n?n.value:null,N.checked,L.value,null!=B?B.checked:!1,J.value)}),null,mxResources.get("create"),p,u);this.showDialog(l.container,340,296+c,!0,!0);null!=U?(U.focus(),mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?U.select():document.execCommand("selectAll",!1,null)):null==L.parentNode;t.focus()};EditorUi.prototype.showRemoteExportDialog=
+function(c,e,g,l,p){var u=document.createElement("div");u.style.whiteSpace="nowrap";var z=document.createElement("h3");mxUtils.write(z,mxResources.get("image"));z.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:"+(p?"10":"4")+"px";u.appendChild(z);if(p){mxUtils.write(u,mxResources.get("zoom")+":");var E=document.createElement("input");E.setAttribute("type","text");E.style.marginRight="16px";E.style.width="60px";E.style.marginLeft="4px";E.style.marginRight="12px";E.value=this.lastExportZoom||
+"100%";u.appendChild(E);mxUtils.write(u,mxResources.get("borderWidth")+":");var D=document.createElement("input");D.setAttribute("type","text");D.style.marginRight="16px";D.style.width="60px";D.style.marginLeft="4px";D.value=this.lastExportBorder||"0";u.appendChild(D);mxUtils.br(u)}var A=this.addCheckbox(u,mxResources.get("selectionOnly"),!1,this.editor.graph.isSelectionEmpty()),P=l?null:this.addCheckbox(u,mxResources.get("includeCopyOfMyDiagram"),Editor.defaultIncludeDiagram);z=this.editor.graph;
+var R=l?null:this.addCheckbox(u,mxResources.get("transparentBackground"),z.background==mxConstants.NONE||null==z.background);null!=R&&(R.style.marginBottom="16px");c=new CustomDialog(this,u,mxUtils.bind(this,function(){var T=parseInt(E.value)/100||1,L=parseInt(D.value)||0;g(!A.checked,null!=P?P.checked:!1,null!=R?R.checked:!1,T,L)}),null,c,e);this.showDialog(c.container,300,(p?25:0)+(l?125:210),!0,!0)};EditorUi.prototype.showExportDialog=function(c,e,g,l,p,u,z,E,D){z=null!=z?z:Editor.defaultIncludeDiagram;
+var A=document.createElement("div");A.style.whiteSpace="nowrap";var P=this.editor.graph,R="jpeg"==E||"webp"==E?220:320,T=document.createElement("h3");mxUtils.write(T,c);T.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:10px";A.appendChild(T);mxUtils.write(A,mxResources.get("zoom")+":");var L=document.createElement("input");L.setAttribute("type","text");L.style.marginRight="16px";L.style.width="60px";L.style.marginLeft="4px";L.style.marginRight="12px";L.value=this.lastExportZoom||
+"100%";A.appendChild(L);mxUtils.write(A,mxResources.get("borderWidth")+":");var U=document.createElement("input");U.setAttribute("type","text");U.style.marginRight="16px";U.style.width="60px";U.style.marginLeft="4px";U.value=this.lastExportBorder||"0";A.appendChild(U);mxUtils.br(A);var n=this.addCheckbox(A,mxResources.get("selectionOnly"),!1,P.isSelectionEmpty()),t=document.createElement("input");t.style.marginTop="16px";t.style.marginRight="8px";t.style.marginLeft="24px";t.setAttribute("disabled",
+"disabled");t.setAttribute("type","checkbox");var B=document.createElement("select");B.style.marginTop="16px";B.style.marginLeft="8px";c=["selectionOnly","diagram","page"];for(T=0;T<c.length;T++)if(!P.isSelectionEmpty()||"selectionOnly"!=c[T]){var F=document.createElement("option");mxUtils.write(F,mxResources.get(c[T]));F.setAttribute("value",c[T]);B.appendChild(F)}D?(mxUtils.write(A,mxResources.get("size")+":"),A.appendChild(B),mxUtils.br(A),R+=26,mxEvent.addListener(B,"change",function(){"selectionOnly"==
+B.value&&(n.checked=!0)})):u&&(A.appendChild(t),mxUtils.write(A,mxResources.get("crop")),mxUtils.br(A),R+=30,mxEvent.addListener(n,"change",function(){n.checked?t.removeAttribute("disabled"):t.setAttribute("disabled","disabled")}));P.isSelectionEmpty()?D&&(n.style.display="none",n.nextSibling.style.display="none",n.nextSibling.nextSibling.style.display="none",R-=30):(B.value="diagram",t.setAttribute("checked","checked"),t.defaultChecked=!0,mxEvent.addListener(n,"change",function(){B.value=n.checked?
+"selectionOnly":"diagram"}));var J=this.addCheckbox(A,mxResources.get("transparentBackground"),!1,null,null,"jpeg"!=E&&"webp"!=E),K=document.createElement("select");K.style.maxWidth="260px";K.style.marginLeft="8px";K.style.marginTop="16px";u=document.createElement("option");u.setAttribute("value","light");mxUtils.write(u,mxResources.get("light"));K.appendChild(u);D=document.createElement("option");D.setAttribute("value","dark");mxUtils.write(D,mxResources.get("dark"));K.appendChild(D);"svg"==E&&mxUtils.lightDarkColorSupported?
+(u=document.createElement("option"),u.setAttribute("value","auto"),mxUtils.write(u,mxResources.get("automatic")),u.setAttribute("selected","selected"),K.appendChild(u)):Editor.isDarkMode()?D.setAttribute("selected","selected"):u.setAttribute("selected","selected");mxUtils.write(A,mxResources.get("appearance")+":");A.appendChild(K);mxUtils.br(A);R+=26;var k=this.addCheckbox(A,mxResources.get("shadow"),P.shadowVisible),v=null;if("png"==E||"jpeg"==E||"webp"==E)v=this.addCheckbox(A,mxResources.get("grid"),
+!1,this.isOffline()||!this.canvasSupported,!1,!0),R+=30;var G=this.addCheckbox(A,mxResources.get("includeCopyOfMyDiagram")+":",z,null,null,"jpeg"!=E&&"webp"!=E),N=document.createElement("select");N.style.maxWidth="260px";N.style.marginLeft="28px";"png"==E||"svg"==E?(z=function(){G.checked?N.removeAttribute("disabled"):N.setAttribute("disabled","disabled")},P=document.createElement("option"),P.setAttribute("value","allPages"),mxUtils.write(P,mxResources.get("allPages")),N.appendChild(P),P=document.createElement("option"),
+P.setAttribute("value","currentPage"),mxUtils.write(P,mxResources.get("currentPage")),N.appendChild(P),G.style.marginBottom="12px",N.style.marginBottom="16px",A.appendChild(N),mxUtils.br(A),R+=20,null!=this.lastEmbedInclude&&(N.value=this.lastEmbedInclude),mxEvent.addListener(G,"change",z),z()):G.style.marginBottom="16px";var O=document.createElement("input");O.style.marginBottom="16px";O.style.marginRight="8px";O.setAttribute("type","checkbox");var Q=document.createElement("input");Q.style.marginBottom=
+"16px";Q.style.marginRight="8px";Q.setAttribute("type","checkbox");e&&(O.checked=null!=this.lastEmbedImages?this.lastEmbedImages:!0,A.appendChild(O),mxUtils.write(A,mxResources.get("embedImages")),mxUtils.br(A),Q.checked=null!=this.lastEmbedFonts?this.lastEmbedImages:!0,A.appendChild(Q),mxUtils.write(A,mxResources.get("embedFonts")),mxUtils.br(A),R+=50);var S=document.createElement("select");S.style.maxWidth="260px";S.style.marginLeft="8px";u=document.createElement("option");u.setAttribute("value",
+"auto");mxUtils.write(u,mxResources.get("automatic"));S.appendChild(u);z=document.createElement("option");z.setAttribute("value","blank");mxUtils.write(z,mxResources.get("openInNewWindow"));S.appendChild(z);z=document.createElement("option");z.setAttribute("value","self");mxUtils.write(z,mxResources.get("openInThisWindow"));S.appendChild(z);z=document.createElement("div");mxUtils.write(z,mxResources.get("LinksLost"));z.style.margin="7px";z.style.display="none";"svg"==E&&(mxUtils.write(A,mxResources.get("links")+
+":"),A.appendChild(S),A.appendChild(z),mxUtils.br(A),mxUtils.br(A),R+=50);g=new CustomDialog(this,A,mxUtils.bind(this,function(){this.lastExportBorder=U.value;this.lastExportZoom=L.value;this.lastEmbedImages=O.checked;this.lastEmbedFonts=Q.checked;this.lastEmbedInclude=N.value;p(L.value,J.checked,!n.checked,k.checked,G.checked,O.checked&&e,U.value,t.checked,("png"==E||"svg"==E)&&"currentPage"==N.value,S.value,null!=v?v.checked:null,null!=K?K.value:null,B.value,Q.checked)}),null,g,l);this.showDialog(g.container,
+340,R,!0,!0,null,null,null,null,!0);L.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?L.select():document.execCommand("selectAll",!1,null)};EditorUi.prototype.showEmbedImageDialog=function(c,e,g,l,p){var u=document.createElement("div");u.style.whiteSpace="nowrap";var z=this.editor.graph;if(null!=e){var E=document.createElement("h3");mxUtils.write(E,e);E.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";u.appendChild(E)}var D=this.addCheckbox(u,mxResources.get("fit"),
+!0),A=this.addCheckbox(u,mxResources.get("shadow"),z.shadowVisible&&l,!l),P=this.addCheckbox(u,g),R=this.addCheckbox(u,mxResources.get("lightbox"),!0),T=this.addEditButton(u,R),L=T.getEditInput(),U=1<z.model.getChildCount(z.model.getRoot()),n=this.addCheckbox(u,mxResources.get("layers"),U,!U);n.style.marginLeft=L.style.marginLeft;n.style.marginBottom="12px";n.style.marginTop="8px";mxEvent.addListener(R,"change",function(){R.checked?(U&&n.removeAttribute("disabled"),L.removeAttribute("disabled")):
+(n.setAttribute("disabled","disabled"),L.setAttribute("disabled","disabled"));L.checked&&R.checked?T.getEditSelect().removeAttribute("disabled"):T.getEditSelect().setAttribute("disabled","disabled")});e=new CustomDialog(this,u,mxUtils.bind(this,function(){c(D.checked,A.checked,P.checked,R.checked,T.getLink(),n.checked)}),null,mxResources.get("embed"),p);this.showDialog(e.container,280,300,!0,!0)};EditorUi.prototype.createEmbedImage=function(c,e,g,l,p,u,z,E){function D(L){var U=" ",n="";l&&(U=" onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+
+EditorUi.lightboxHost+"/?client=1"+(null!=P?"&page="+P:"")+(p?"&edit=_blank":"")+(u?"&layers=1":"")+"');}})(this);\"",n+="cursor:pointer;");c&&(n+="max-width:100%;");var t="";g&&(t=' width="'+Math.round(A.width)+'" height="'+Math.round(A.height)+'"');z('<img src="'+L+'"'+t+(""!=n?' style="'+n+'"':"")+U+"/>")}var A=this.editor.graph.getGraphBounds(),P=this.getSelectedPageIndex();if(this.isExportToCanvas())this.editor.exportToCanvas(mxUtils.bind(this,function(L){var U=l?this.getFileData(!0):null;L=
+this.createImageDataUri(L,U,"png");D(L)}),null,null,null,mxUtils.bind(this,function(L){E({message:mxResources.get("unknownError")})}),null,!0,g?2:1,null,e,null,null,Editor.defaultBorder);else if(e=this.getFileData(!0),A.width*A.height<=MAX_AREA&&e.length<=MAX_REQUEST_SIZE){var R="";g&&(R="&w="+Math.round(2*A.width)+"&h="+Math.round(2*A.height));var T=new mxXmlRequest(EXPORT_URL,"format=png&base64=1&embedXml="+(l?"1":"0")+R+"&xml="+encodeURIComponent(e));T.send(mxUtils.bind(this,function(){200<=T.getStatus()&&
+299>=T.getStatus()?D("data:image/png;base64,"+T.getText()):E({message:mxResources.get("unknownError")})}))}else E({message:mxResources.get("drawingTooLarge")})};EditorUi.prototype.createEmbedSvg=function(c,e,g,l,p,u,z){var E=this.editor.graph.getSvg(null,null,null,null,null,null,null,null,null,null,!g,"auto"),D=E.getElementsByTagName("a");if(null!=D)for(var A=0;A<D.length;A++){var P=D[A].getAttribute("href");null!=P&&"#"==P.charAt(0)&&"_blank"==D[A].getAttribute("target")&&D[A].removeAttribute("target")}l&&
+E.setAttribute("content",this.getFileData(!0));e&&this.editor.graph.addSvgShadow(E);if(g){var R=" ",T="";l&&(R="onclick=\"(function(img){if(img.wnd!=null&&!img.wnd.closed){img.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==img.wnd){img.wnd.postMessage(decodeURIComponent(img.getAttribute('src')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);img.wnd=window.open('"+EditorUi.lightboxHost+"/?client=1"+(p?"&edit=_blank":"")+(u?"&layers=1":
+"")+"');}})(this);\"",T+="cursor:pointer;");c&&(T+="max-width:100%;");this.editor.convertImages(E,mxUtils.bind(this,function(L){z('<img src="'+Editor.createSvgDataUri(mxUtils.getXml(L))+'"'+(""!=T?' style="'+T+'"':"")+R+"/>")}))}else T="",l&&(e=this.getSelectedPageIndex(),E.setAttribute("onclick","(function(svg){var src=window.event.target||window.event.srcElement;while (src!=null&&src.nodeName.toLowerCase()!='a'){src=src.parentNode;}if(src==null){if(svg.wnd!=null&&!svg.wnd.closed){svg.wnd.focus();}else{var r=function(evt){if(evt.data=='ready'&&evt.source==svg.wnd){svg.wnd.postMessage(decodeURIComponent(svg.getAttribute('content')),'*');window.removeEventListener('message',r);}};window.addEventListener('message',r);svg.wnd=window.open('"+
+EditorUi.lightboxHost+"/?client=1"+(null!=e?"&page="+e:"")+(p?"&edit=_blank":"")+(u?"&layers=1":"")+"');}}})(this);"),T+="cursor:pointer;"),c&&(c=parseInt(E.getAttribute("width")),p=parseInt(E.getAttribute("height")),E.setAttribute("viewBox","-0.5 -0.5 "+c+" "+p),T+="max-width:100%;max-height:"+p+"px;",E.removeAttribute("height")),""!=T&&E.setAttribute("style",T),this.editor.addFontCss(E),this.editor.graph.mathEnabled&&this.editor.addMathCss(E),z(mxUtils.getXml(E))};EditorUi.prototype.timeSince=function(c){c=
Math.floor((new Date-c)/1E3);var e=Math.floor(c/31536E3);if(1<e)return e+" "+mxResources.get("years");e=Math.floor(c/2592E3);if(1<e)return e+" "+mxResources.get("months");e=Math.floor(c/86400);if(1<e)return e+" "+mxResources.get("days");e=Math.floor(c/3600);if(1<e)return e+" "+mxResources.get("hours");e=Math.floor(c/60);return 1<e?e+" "+mxResources.get("minutes"):1==e?e+" "+mxResources.get("minute"):null};EditorUi.prototype.decodeNodeIntoGraph=function(c,e){if(null!=c){var g=null;if("diagram"==c.nodeName)g=
-c;else if("mxfile"==c.nodeName){var l=c.getElementsByTagName("diagram");if(0<l.length){g=l[0];var n=e.getGlobalVariable;e.getGlobalVariable=function(u){return"page"==u?g.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==u?1:n.apply(this,arguments)}}}null!=g&&(c=Editor.parseDiagramNode(g))}l=this.editor.graph;try{this.editor.graph=e,this.editor.setGraphXml(c)}catch(u){}finally{this.editor.graph=l}return c};EditorUi.prototype.getSvgFileProperties=function(c){return this.getPngFileProperties(c)};
-EditorUi.prototype.getPngFileProperties=function(c){var e=1,g=0;if(null!=c){if(c.hasAttribute("scale")){var l=parseFloat(c.getAttribute("scale"));!isNaN(l)&&0<l&&(e=l)}c.hasAttribute("border")&&(l=parseInt(c.getAttribute("border")),!isNaN(l)&&0<l&&(g=l))}return{scale:e,border:g}};EditorUi.prototype.getEmbeddedPng=function(c,e,g,l,n){try{var u=this.editor.graph,z=null;if(null!=g&&0<g.length)u=this.createTemporaryGraph(u.getStylesheet()),document.body.appendChild(u.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(g).documentElement,
-!0),u),z=g;else if(null!=this.pages&&this.currentPage!=this.pages[0]){u=this.createTemporaryGraph(u.getStylesheet());var D=u.getGlobalVariable;u.setBackgroundImage=this.editor.graph.setBackgroundImage;var C=this.pages[0];this.currentPage==C?u.setBackgroundImage(this.editor.graph.backgroundImage):null!=C.viewState&&null!=C.viewState&&u.setBackgroundImage(C.viewState.backgroundImage);u.getGlobalVariable=function(A){return"page"==A?C.getName():"pagenumber"==A?1:D.apply(this,arguments)};document.body.appendChild(u.container);
-u.model.setRoot(C.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(A){try{null==z&&(z=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var Q=A.toDataURL("image/png");Q=Editor.writeGraphModelToPng(Q,"tEXt","mxfile",encodeURIComponent(z));c(Q.substring(Q.lastIndexOf(",")+1));u!=this.editor.graph&&u.container.parentNode.removeChild(u.container)}catch(S){null!=e&&e(S)}}),null,null,null,mxUtils.bind(this,function(A){null!=e&&e(A)}),null,null,l,null,u.shadowVisible,null,u,n,null,
-null,null,"diagram",null)}catch(A){null!=e&&e(A)}};EditorUi.prototype.getEmbeddedSvg=function(c,e,g,l,n,u,z,D,C,A,Q,S,U){D=null!=D?D:!0;Q=null!=Q?Q:0;z=null!=C?C:e.background;z==mxConstants.NONE&&(z=null);null==z&&"none"==e.getAdaptiveColors()&&(z="#ffffff");C=this.editor.graph.createSvgImageExport(null!=c);u=e.getSvg(z,A,Q,null,null,u,null,C,null,e.shadowVisible||S,null,U,"diagram");(e.shadowVisible||S)&&e.addSvgShadow(u,null,null,0==Q);null!=c&&u.setAttribute("content",c);null!=g&&u.setAttribute("resource",
-g);var O=mxUtils.bind(this,function(p){p=(l?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(p);null!=n&&n(p);return p});e.mathEnabled&&this.editor.addMathCss(u);if(null!=n)this.embedFonts(u,mxUtils.bind(this,function(p){D?this.editor.convertImages(p,mxUtils.bind(this,function(q){O(q)})):O(p)}));else return O(u)};EditorUi.prototype.embedFonts=function(c,e){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&this.editor.addFontCss(c,
-this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(g){try{null!=g&&this.editor.addFontCss(c,g),e(c)}catch(l){e(c)}}))}catch(g){e(c)}}))};EditorUi.prototype.exportImage=function(c,e,g,l,n,u,z,D,C,A,Q,S,U){C=null!=C?C:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(p){Editor.addRetryToError(p,mxUtils.bind(this,function(){this.exportImage(c,e,g,l,n,u,z,D,C,A,Q,S,U)}));this.handleError(p)}))){var O=this.editor.graph.isSelectionEmpty();
-g=null!=g?g:O;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(p){this.spinner.stop();try{this.saveCanvas(p,n?this.getFileData(!0,null,null,null,g,D,null,null,null,null,null,c,u):null,C,null==this.pages||0==this.pages.length,Q)}catch(q){this.handleError(q)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(p){this.spinner.stop();this.handleError(p)}),null,g,c||1,e,l,null,null,u,z,A,S,U)}catch(p){this.spinner.stop(),this.handleError(p)}}};
-EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.addLocalPagesToMapping=function(c){c=null!=c?c:{};if(null!=this.pages)for(var e=0;e<this.pages.length;e++)c[this.pages[e].getId()]=this.pages[e].getId();return c};EditorUi.prototype.importXml=function(c,e,g,l,n,u,z){e=null!=e?e:0;g=null!=g?g:0;var D=[];try{var C=this.editor.graph;if(null!=c&&0<c.length){C.model.beginUpdate();try{var A=mxUtils.parseXml(c);c={};var Q=this.editor.extractGraphModel(A.documentElement,
-null!=this.pages);if(null!=Q&&"mxfile"==Q.nodeName&&null!=this.pages){var S=Q.getElementsByTagName("diagram");if(1==S.length&&!u){if(Q=Editor.parseDiagramNode(S[0]),null!=this.currentPage&&(c[S[0].getAttribute("id")]=this.currentPage.getId(),this.isBlankFile())){var U=S[0].getAttribute("name");null!=U&&""!=U&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,U))}}else if(0<S.length){u=[];var O=0;null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&(c[S[0].getAttribute("id")]=
-this.pages[0].getId(),U=S[0].getAttribute("name"),null!=U&&""!=U&&this.editor.graph.model.execute(new RenamePage(this,this.pages[0],U)),Q=Editor.parseDiagramNode(S[0]),l=!1,O=1);for(;O<S.length;O++){var p=S[O].getAttribute("id");S[O].removeAttribute("id");var q=this.updatePageRoot(new DiagramPage(S[O]));c[p]=S[O].getAttribute("id");var G=this.pages.length;null==q.getName()&&q.setName(mxResources.get("pageWithNumber",[G+1]));C.model.execute(new ChangePage(this,q,q,G,!0));u.push(q)}this.updatePageLinks(c,
-u)}}if(null!=Q&&"mxGraphModel"===Q.nodeName){D=C.importGraphModel(Q,e,g,l);if(null!=D)for(this.addLocalPagesToMapping(c),O=0;O<D.length;O++)this.updatePageLinksForCell(c,D[O]);var E=C.parseBackgroundImage(Q.getAttribute("backgroundImage"));if(null!=E&&null!=E.originalSrc){this.updateBackgroundPageLink(c,E);var H=new ChangePageSetup(this,null,E);H.ignoreColor=!0;C.model.execute(H)}}z&&C.pasteCellStyles(C.includeDescendants(D),C.defaultVertexStyle,C.defaultEdgeStyle)}finally{C.model.endUpdate()}}}catch(L){if(n)throw L;
-this.handleError(L)}return D};EditorUi.prototype.updatePageLinks=function(c,e){for(var g=0;g<e.length;g++)this.updatePageLinksForCell(c,e[g].root),null!=e[g].viewState&&this.updateBackgroundPageLink(c,e[g].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(c,e){try{if(null!=e&&Graph.isPageLink(e.originalSrc)){var g=c[e.originalSrc.substring(e.originalSrc.indexOf(",")+1)];null!=g&&(e.originalSrc="data:page/id,"+g)}}catch(l){}};EditorUi.prototype.updatePageLinksForCell=
-function(c,e){var g=document.createElement("div"),l=this.editor.graph,n=l.getLinkForCell(e);null!=n&&l.setLinkForCell(e,this.updatePageLink(c,n));if(l.isHtmlLabel(e)){g.innerHTML=Graph.sanitizeHtml(l.getLabel(e));for(var u=g.getElementsByTagName("a"),z=!1,D=0;D<u.length;D++)n=u[D].getAttribute("href"),null!=n&&(u[D].setAttribute("href",this.updatePageLink(c,n)),z=!0);z&&l.labelChanged(e,g.innerHTML)}for(D=0;D<l.model.getChildCount(e);D++)this.updatePageLinksForCell(c,l.model.getChildAt(e,D))};EditorUi.prototype.updatePageLink=
-function(c,e){if(Graph.isPageLink(e)){var g=c[e.substring(e.indexOf(",")+1)];e=null!=g?"data:page/id,"+g:null}else if("data:action/json,"==e.substring(0,17))try{var l=JSON.parse(e.substring(17));if(null!=l.actions){for(var n=0;n<l.actions.length;n++){var u=l.actions[n];if(null!=u.open&&Graph.isPageLink(u.open)){var z=u.open.substring(u.open.indexOf(",")+1);g=c[z];null!=g?u.open="data:page/id,"+g:null==this.getPageById(z)&&delete u.open}}e="data:action/json,"+JSON.stringify(l)}}catch(D){}return e};
-EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,e,g,l,n){var u=mxUtils.bind(this,function(z){this.loadingExtensions=!1;null!=g?g(z):this.handleError(z)});this.createTimeout(null,mxUtils.bind(this,function(z){l=null!=l?l:c.name;var D=mxUtils.bind(this,function(A){z.clear()&&u(A)}),C=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var A=this.isRemoteVisioFormat(l);
-try{var Q=l.lastIndexOf(".");if(0<=Q&&Q<l.length)l.substring(Q+1).toUpperCase();else{var S=l.lastIndexOf("/");0<=S&&S<l.length&&(l=l.substring(S+1))}}catch(O){}if(A)if(null==VSD_CONVERT_URL||this.isOffline())D({message:"draw.io"!=this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{A=new FormData;A.append("file1",c,l);var U=new XMLHttpRequest;U.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(l)?"?stencil=1":""));U.responseType="blob";this.addRemoteServiceSecurityCheck(U);
-null!=n&&U.setRequestHeader("x-convert-custom",n);U.onreadystatechange=mxUtils.bind(this,function(){if(4==U.readyState&&z.clear())if(200<=U.status&&299>=U.status)try{var O=U.response;if("text/xml"==O.type){var p=new FileReader;p.onload=mxUtils.bind(this,function(q){try{e(q.target.result)}catch(G){D({message:mxResources.get("errorLoadingFile")})}});p.readAsText(O)}else this.doImportVisio(O,e,D,l)}catch(q){D(q)}else try{""==U.responseType||"text"==U.responseType?D({message:U.responseText}):(p=new FileReader,
-p.onload=function(){try{D({message:JSON.parse(p.result).Message})}catch(q){D(q)}},p.readAsText(U.response))}catch(q){D({})}});U.send(A)}else if(z.clear())try{this.doImportVisio(c,e,D,l)}catch(O){D(O)}}else D({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?C():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",C,null,null,null,D))}),u)};EditorUi.prototype.importGraphML=function(c,e,g){var l=
-mxUtils.bind(this,function(n){this.loadingExtensions=!1;null!=g?g(n):this.handleError(n)});this.createTimeout(null,mxUtils.bind(this,function(n){var u=mxUtils.bind(this,function(D){n.clear()&&l(D)}),z=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(n.clear())if(this.doImportGraphML)try{this.doImportGraphML(c,e,l)}catch(D){u(D)}else u({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?z():(this.loadingExtensions=!0,
-mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,u))}),l)};EditorUi.prototype.exportVisio=function(c){if(this.spinner.spin(document.body,mxResources.get("loading"))){var e=mxUtils.bind(this,function(g){this.loadingExtensions=!1;this.handleError(g)});this.vsdxExportEnabled()?this.createTimeout(null,mxUtils.bind(this,function(g){var l=mxUtils.bind(this,function(u){g.clear()&&e(u)}),n=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(g.clear())if("undefined"!==typeof VsdxExport)try{this.spinner.stop(),
-(new VsdxExport(this)).exportCurrentDiagrams(c)||l({message:mxResources.get("unknownError")})}catch(u){l(u)}else l({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(n,0):(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",n,null,null,null,l))}),e):e({message:mxResources.get("serviceUnavailableOrBlocked")})}};EditorUi.prototype.convertLucidChart=function(c,e,g){var l=
-mxUtils.bind(this,function(n){this.loadingExtensions=!1;null!=g?g(n):this.handleError(n)});this.createTimeout(null,mxUtils.bind(this,function(n){var u=mxUtils.bind(this,function(D){n.clear()&&l(D)}),z=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(n.clear())if("undefined"!==typeof window.LucidImporter)try{var D=JSON.parse(c);e(LucidImporter.importState(D));try{if(null!=window.console&&"1"==urlParams.test){var C=[(new Date).toISOString(),"convertLucidChart",D];null!=D.state&&C.push(JSON.parse(D.state));
-if(null!=D.svgThumbs)for(var A=0;A<D.svgThumbs.length;A++)C.push(Editor.createSvgDataUri(D.svgThumbs[A]));null!=D.thumb&&C.push(D.thumb);console.log.apply(console,C)}}catch(Q){}}catch(Q){null!=window.console&&console.error(Q),u(Q)}else u({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof window.LucidImporter||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(z,0):(this.loadingExtensions=!0,"1"==urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){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",z,null,null,null,u)},null,null,null,u)},null,null,null,u)},null,null,null,u)},null,null,null,u):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,u))}),l)};EditorUi.prototype.createMermaidXml=function(c,e,g,l,n,u){var z=new Graph(document.createElement("div"));g=z.insertVertex(null,null,null,0,0,l,n,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+
-g+";");z.setAttributeForCell(g,"mermaidData",JSON.stringify({data:c,config:e},null,2));null!=u&&z.setAttributeForCell(g,"templatePrompt",u);c=(new mxCodec).encode(z.getModel());return mxUtils.getXml(c)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(c,e,g){var l=0,n=function(){for(var z=document.querySelectorAll('div[id*="dgeMermaidOutput-"]'),D=0;D<z.length;D++)null!=z[D].parentNode&&z[D].parentNode.removeChild(z[D])},u=mxUtils.bind(this,function(){this.createTimeout(1E4,mxUtils.bind(this,
-function(z){var D=new mxXmlRequest("https://www.draw.io/generate/v2",c,"POST"),C=mxUtils.bind(this,function(A){z.clear()&&(n(),g(A))});D.send(mxUtils.bind(this,function(A){if(z.isAlive())if(200<=A.getStatus()&&299>=A.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var S=mxUtils.trim(A.getText());this.generateMermaidImage(S,null,mxUtils.bind(this,function(U,O,p){this.tryAndHandle(mxUtils.bind(this,function(){z.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",
-c,"\nresult:",S),n(),e(S,U,O,p))}),C)}),C,mxUtils.bind(this,function(U){3>l++?z.clear()&&u():C(U)}))}),C);else{var Q={message:mxResources.get("error")+" "+A.getStatus()};try{Q=JSON.parse(A.getText()),Q=Q.error}catch(S){}C(Q)}}),C)}),g)});u()};EditorUi.prototype.extractMermaidDeclaration=function(c){c=mxUtils.trim(c);"o\n\n"==c.substring(0,3)&&(c=c.substring(3));var e=c.split("```");e=1<e.length?e:c.split("<pre>");e=1<e.length?e:c.split("~~~");e=1<e.length?e:c.split("%%");e=1<e.length?e:c.split("(Begins)");
-c=mxUtils.trim(1>=e.length?c:e[1]);e=c.split("\n");var g=1<e.length?e[1]:null;if(null!=g){var l=g.indexOf("-");0<l&&(g=g.substring(0,l))}if(0<e.length&&"mermaid"==mxUtils.trim(e[0])||null!=g&&0<=mxUtils.indexOf(EditorUi.mermaidDiagramTypes,g))e.shift(),c=mxUtils.trim(e.join("\n")),e=c.split("\n");g=e[0].split(" ")[0].replace(/:$/,"");l=g.indexOf("-");0<l&&(g=g.substring(0,l));try{"mindmap"==g&&2<e.length&&(c=extractMermaidMindmap(e))}catch(n){}0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,g)&&(c=
-null);return c};EditorUi.prototype.generateMermaidImage=function(c,e,g,l,n){var u=mxUtils.bind(this,function(D){this.loadingMermaid=!1;null!=l?l(D):this.handleError(D)}),z=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;e=null!=e?e:mxUtils.clone(EditorUi.defaultMermaidConfig);e.securityLevel="strict";e.startOnLoad=!1;e.maxTextSize=9E5;"undefined"!==typeof mxMermaidToDrawio&&e.flowchart&&0<=c.indexOf("$$")&&(e.flowchart.htmlLabels=!0,mxMermaidToDrawio.htmlLabels=!0);Editor.isDarkMode()&&(e.theme=
-"dark");var D=mxUtils.bind(this,function(C){try{if(mxClient.IS_IE||mxClient.IS_IE11)C=C.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var A=mxUtils.parseXml(C).getElementsByTagName("svg");if(0<A.length&&"error"!=A[0].getAttribute("aria-roledescription")){var Q=parseFloat(A[0].getAttribute("width")),S=parseFloat(A[0].getAttribute("height"));if(isNaN(Q)||isNaN(S))try{var U=A[0].getAttribute("viewBox").split(/\s+/);
-Q=parseFloat(U[2]);S=parseFloat(U[3])}catch(O){Q=Q||100,S=S||100}g(this.convertDataUri(Editor.createSvgDataUri(C)),Q,S)}else null!=n?n():l({message:mxResources.get("invalidInput")})}catch(O){l(O)}});mermaid.mermaidAPI.initialize(e);mermaid.mermaidAPI.render("geMermaidOutput-"+(new Date).getTime(),c).then(function(C){D(C.svg)}).catch(function(C){null!=n?n(C):l(C)})}catch(C){l(C)}});"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(z,0):(this.loadingMermaid=!0,
-"1"==urlParams.dev?("1"==urlParams.mermaidToDrawioTest&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(D){this.importXml(D,null,null,null,null,null,!0)})),mxscript("js/mermaid/mermaid.min.js",z,null,null,null,u)):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,u))};EditorUi.prototype.generatePlantUmlImage=function(c,e,g,l){function n(D,C,A){c1=D>>2;c2=(D&3)<<4|C>>4;c3=(C&15)<<2|A>>6;c4=A&63;r="";r+=u(c1&63);r+=u(c2&63);r+=u(c3&63);return r+=u(c4&63)}function u(D){if(10>
-D)return String.fromCharCode(48+D);D-=10;if(26>D)return String.fromCharCode(65+D);D-=26;if(26>D)return String.fromCharCode(97+D);D-=26;return 0==D?"-":1==D?"_":"?"}var z=new XMLHttpRequest;z.open("GET",("txt"==e?PLANT_URL+"/txt/":"png"==e?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(D){r="";for(i=0;i<D.length;i+=3)r=i+2==D.length?r+n(D.charCodeAt(i),D.charCodeAt(i+1),0):i+1==D.length?r+n(D.charCodeAt(i),0,0):r+n(D.charCodeAt(i),D.charCodeAt(i+1),D.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(c))),
-!0);"txt"!=e&&(z.responseType="blob");z.onload=function(D){if(200<=this.status&&300>this.status)if("txt"==e)g(this.response);else{var C=new FileReader;C.readAsDataURL(this.response);C.onloadend=function(A){var Q=new Image;Q.onload=function(){try{var S=Q.width,U=Q.height;if(0==S&&0==U){var O=C.result,p=O.indexOf(","),q=decodeURIComponent(escape(atob(O.substring(p+1)))),G=mxUtils.parseXml(q).getElementsByTagName("svg");0<G.length&&(S=parseFloat(G[0].getAttribute("width")),U=parseFloat(G[0].getAttribute("height")))}g(C.result,
-S,U)}catch(E){l(E)}};Q.src=C.result};C.onerror=function(A){l(A)}}else l(D)};z.onerror=function(D){l(D)};z.send()};EditorUi.prototype.insertAsPreText=function(c,e,g){var l=this.editor.graph,n=null;l.getModel().beginUpdate();try{n=l.insertVertex(null,null,"<pre>"+c+"</pre>",e,g,1,1,"text;html=1;align=left;verticalAlign=top;"),l.updateCellSize(n,!0)}finally{l.getModel().endUpdate()}return n};EditorUi.prototype.insertTextAt=function(c,e,g,l,n,u,z,D){u=null!=u?u:!0;z=null!=z?z:!0;if(null!=c)if(Graph.fileSupport&&
-(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c))this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(c.replace(/\s+/g," "),mxUtils.bind(this,function(U){4==U.readyState&&200<=U.status&&299>=U.status&&this.editor.graph.setSelectionCells(this.insertTextAt(U.responseText,e,g,!0))}));else if("data:"==c.substring(0,5)||!this.isOffline()&&(n||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c))){var C=this.editor.graph;if("data:application/pdf;base64,"==
-c.substring(0,28)){var A=Editor.extractGraphModelFromPdf(c);if(null!=A&&0<A.length)return this.importXml(A,e,g,u,!0,D)}if(Editor.isPngDataUrl(c)&&(A=Editor.extractGraphModelFromPng(c),null!=A&&0<A.length))return this.importXml(A,e,g,u,!0,D);if("data:image/svg+xml;"==c.substring(0,19))try{A=null;"data:image/svg+xml;base64,"==c.substring(0,26)?(A=c.substring(c.indexOf(",")+1),A=window.atob&&!mxClient.IS_SF?atob(A):Base64.decode(A,!0)):A=decodeURIComponent(c.substring(c.indexOf(",")+1));var Q=this.importXml(A,
-e,g,u,!0,D);if(0<Q.length)return Q}catch(U){}this.loadImage(c,mxUtils.bind(this,function(U){if("data:"==c.substring(0,5))this.resizeImage(U,c,mxUtils.bind(this,function(q,G,E){C.setSelectionCell(C.insertVertex(null,null,"",C.snap(e),C.snap(g),G,E,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(q)+";"))}),z,this.maxImageSize);else{var O=Math.min(1,Math.min(this.maxImageSize/U.width,this.maxImageSize/U.height)),
-p=Math.round(U.width*O);U=Math.round(U.height*O);C.setSelectionCell(C.insertVertex(null,null,"",C.snap(e),C.snap(g),p,U,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+c+";"))}}),mxUtils.bind(this,function(){var U=null;C.getModel().beginUpdate();try{U=C.insertVertex(C.getDefaultParent(),null,c,C.snap(e),C.snap(g),1,1,"text;"+(l?"html=1;":"")),C.updateCellSize(U),C.fireEvent(new mxEventObject("textInserted","cells",[U]))}finally{C.getModel().endUpdate()}C.setSelectionCell(U)}))}else{c=
-Graph.zapGremlins(mxUtils.trim(c));if(this.isCompatibleString(c))return this.importXml(c,e,g,u,null,D);if(0<c.length)if(this.isLucidChartData(c))this.convertLucidChart(c,mxUtils.bind(this,function(U){this.editor.graph.setSelectionCells(this.importXml(U,e,g,u,null,D))}),mxUtils.bind(this,function(U){this.handleError(U)}));else{C=this.editor.graph;n=null;C.getModel().beginUpdate();try{n=C.insertVertex(C.getDefaultParent(),null,"",C.snap(e),C.snap(g),1,1,"text;whiteSpace=wrap;"+(l?"html=1;":""));C.fireEvent(new mxEventObject("textInserted",
-"cells",[n]));l&&(c=C.sanitizeHtml(c));c.length>this.maxTextBytes&&(c=c.substring(0,this.maxTextBytes)+"...");n.value=c;C.updateCellSize(n);if(0<this.maxTextWidth&&n.geometry.width>this.maxTextWidth){var S=C.getPreferredSizeForCell(n,this.maxTextWidth);n.geometry.width=S.width;n.geometry.height=S.height}Graph.isLink(n.value)&&C.setLinkForCell(n,n.value);n.geometry.width+=C.gridSize;n.geometry.height+=C.gridSize}finally{C.getModel().endUpdate()}return[n]}}return[]};EditorUi.prototype.formatFileSize=
+c;else if("mxfile"==c.nodeName){var l=c.getElementsByTagName("diagram");if(0<l.length){g=l[0];var p=e.getGlobalVariable;e.getGlobalVariable=function(u){return"page"==u?g.getAttribute("name")||mxResources.get("pageWithNumber",[1]):"pagenumber"==u?1:p.apply(this,arguments)}}}null!=g&&(c=Editor.parseDiagramNode(g))}l=this.editor.graph;try{this.editor.graph=e,this.editor.setGraphXml(c)}catch(u){}finally{this.editor.graph=l}return c};EditorUi.prototype.getSvgFileProperties=function(c){return this.getPngFileProperties(c)};
+EditorUi.prototype.getPngFileProperties=function(c){var e=1,g=0;if(null!=c){if(c.hasAttribute("scale")){var l=parseFloat(c.getAttribute("scale"));!isNaN(l)&&0<l&&(e=l)}c.hasAttribute("border")&&(l=parseInt(c.getAttribute("border")),!isNaN(l)&&0<l&&(g=l))}return{scale:e,border:g}};EditorUi.prototype.getEmbeddedPng=function(c,e,g,l,p){try{var u=this.editor.graph,z=null;if(null!=g&&0<g.length)u=this.createTemporaryGraph(u.getStylesheet()),document.body.appendChild(u.container),this.decodeNodeIntoGraph(this.editor.extractGraphModel(mxUtils.parseXml(g).documentElement,
+!0),u),z=g;else if(null!=this.pages&&this.currentPage!=this.pages[0]){u=this.createTemporaryGraph(u.getStylesheet());var E=u.getGlobalVariable;u.setBackgroundImage=this.editor.graph.setBackgroundImage;var D=this.pages[0];this.currentPage==D?u.setBackgroundImage(this.editor.graph.backgroundImage):null!=D.viewState&&null!=D.viewState&&u.setBackgroundImage(D.viewState.backgroundImage);u.getGlobalVariable=function(A){return"page"==A?D.getName():"pagenumber"==A?1:E.apply(this,arguments)};document.body.appendChild(u.container);
+u.model.setRoot(D.root)}this.editor.exportToCanvas(mxUtils.bind(this,function(A){try{null==z&&(z=this.getFileData(!0,null,null,null,null,null,null,null,null,!1));var P=A.toDataURL("image/png");P=Editor.writeGraphModelToPng(P,"tEXt","mxfile",encodeURIComponent(z));c(P.substring(P.lastIndexOf(",")+1));u!=this.editor.graph&&u.container.parentNode.removeChild(u.container)}catch(R){null!=e&&e(R)}}),null,null,null,mxUtils.bind(this,function(A){null!=e&&e(A)}),null,null,l,null,u.shadowVisible,null,u,p,null,
+null,null,"diagram",null)}catch(A){null!=e&&e(A)}};EditorUi.prototype.getEmbeddedSvg=function(c,e,g,l,p,u,z,E,D,A,P,R,T){E=null!=E?E:!0;P=null!=P?P:0;z=null!=D?D:e.background;z==mxConstants.NONE&&(z=null);null==z&&"none"==e.getAdaptiveColors()&&(z="#ffffff");D=this.editor.graph.createSvgImageExport(null!=c);u=e.getSvg(z,A,P,null,null,u,null,D,null,e.shadowVisible||R,null,T,"diagram");(e.shadowVisible||R)&&e.addSvgShadow(u,null,null,0==P);null!=c&&u.setAttribute("content",c);null!=g&&u.setAttribute("resource",
+g);var L=mxUtils.bind(this,function(U){U=(l?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(U);null!=p&&p(U);return U});e.mathEnabled&&this.editor.addMathCss(u);if(null!=p)this.embedFonts(u,mxUtils.bind(this,function(U){E?this.editor.convertImages(U,mxUtils.bind(this,function(n){L(n)})):L(U)}));else return L(u)};EditorUi.prototype.embedFonts=function(c,e){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&this.editor.addFontCss(c,
+this.editor.resolvedFontCss),this.editor.embedExtFonts(mxUtils.bind(this,function(g){try{null!=g&&this.editor.addFontCss(c,g),e(c)}catch(l){e(c)}}))}catch(g){e(c)}}))};EditorUi.prototype.exportImage=function(c,e,g,l,p,u,z,E,D,A,P,R,T){D=null!=D?D:"png";if(this.spinner.spin(document.body,mxResources.get("exporting"),mxUtils.bind(this,function(U){Editor.addRetryToError(U,mxUtils.bind(this,function(){this.exportImage(c,e,g,l,p,u,z,E,D,A,P,R,T)}));this.handleError(U)}))){var L=this.editor.graph.isSelectionEmpty();
+g=null!=g?g:L;null==this.thumbImageCache&&(this.thumbImageCache={});try{this.editor.exportToCanvas(mxUtils.bind(this,function(U){this.spinner.stop();try{this.saveCanvas(U,p?this.getFileData(!0,null,null,null,g,E,null,null,null,null,null,c,u):null,D,null==this.pages||0==this.pages.length,P)}catch(n){this.handleError(n)}}),null,this.thumbImageCache,null,mxUtils.bind(this,function(U){this.spinner.stop();this.handleError(U)}),null,g,c||1,e,l,null,null,u,z,A,R,T)}catch(U){this.spinner.stop(),this.handleError(U)}}};
+EditorUi.prototype.isCorsEnabledForUrl=function(c){return this.editor.isCorsEnabledForUrl(c)};EditorUi.prototype.addLocalPagesToMapping=function(c){c=null!=c?c:{};if(null!=this.pages)for(var e=0;e<this.pages.length;e++)c[this.pages[e].getId()]=this.pages[e].getId();return c};EditorUi.prototype.importXml=function(c,e,g,l,p,u,z){e=null!=e?e:0;g=null!=g?g:0;var E=[];try{var D=this.editor.graph;if(null!=c&&0<c.length){D.model.beginUpdate();try{var A=mxUtils.parseXml(c);c={};var P=this.editor.extractGraphModel(A.documentElement,
+null!=this.pages);if(null!=P&&"mxfile"==P.nodeName&&null!=this.pages){var R=P.getElementsByTagName("diagram");if(1==R.length&&!u){if(P=Editor.parseDiagramNode(R[0]),null!=this.currentPage&&(c[R[0].getAttribute("id")]=this.currentPage.getId(),this.isBlankFile())){var T=R[0].getAttribute("name");null!=T&&""!=T&&this.editor.graph.model.execute(new RenamePage(this,this.currentPage,T))}}else if(0<R.length){u=[];var L=0;null!=this.pages&&1==this.pages.length&&this.isDiagramEmpty()&&(c[R[0].getAttribute("id")]=
+this.pages[0].getId(),T=R[0].getAttribute("name"),null!=T&&""!=T&&this.editor.graph.model.execute(new RenamePage(this,this.pages[0],T)),P=Editor.parseDiagramNode(R[0]),l=!1,L=1);for(;L<R.length;L++){var U=R[L].getAttribute("id");R[L].removeAttribute("id");var n=this.updatePageRoot(new DiagramPage(R[L]));c[U]=R[L].getAttribute("id");var t=this.pages.length;null==n.getName()&&n.setName(mxResources.get("pageWithNumber",[t+1]));D.model.execute(new ChangePage(this,n,n,t,!0));u.push(n)}this.updatePageLinks(c,
+u)}}if(null!=P&&"mxGraphModel"===P.nodeName){E=D.importGraphModel(P,e,g,l);if(null!=E)for(this.addLocalPagesToMapping(c),L=0;L<E.length;L++)this.updatePageLinksForCell(c,E[L]);var B=D.parseBackgroundImage(P.getAttribute("backgroundImage"));if(null!=B&&null!=B.originalSrc){this.updateBackgroundPageLink(c,B);var F=new ChangePageSetup(this,null,B);F.ignoreColor=!0;D.model.execute(F)}}z&&D.pasteCellStyles(D.includeDescendants(E),D.defaultVertexStyle,D.defaultEdgeStyle)}finally{D.model.endUpdate()}}}catch(J){if(p)throw J;
+this.handleError(J)}return E};EditorUi.prototype.updatePageLinks=function(c,e){for(var g=0;g<e.length;g++)this.updatePageLinksForCell(c,e[g].root),null!=e[g].viewState&&this.updateBackgroundPageLink(c,e[g].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(c,e){try{if(null!=e&&Graph.isPageLink(e.originalSrc)){var g=c[e.originalSrc.substring(e.originalSrc.indexOf(",")+1)];null!=g&&(e.originalSrc="data:page/id,"+g)}}catch(l){}};EditorUi.prototype.updatePageLinksForCell=
+function(c,e){var g=document.createElement("div"),l=this.editor.graph,p=l.getLinkForCell(e);null!=p&&l.setLinkForCell(e,this.updatePageLink(c,p));if(l.isHtmlLabel(e)){g.innerHTML=Graph.sanitizeHtml(l.getLabel(e));for(var u=g.getElementsByTagName("a"),z=!1,E=0;E<u.length;E++)p=u[E].getAttribute("href"),null!=p&&(u[E].setAttribute("href",this.updatePageLink(c,p)),z=!0);z&&l.labelChanged(e,g.innerHTML)}for(E=0;E<l.model.getChildCount(e);E++)this.updatePageLinksForCell(c,l.model.getChildAt(e,E))};EditorUi.prototype.updatePageLink=
+function(c,e){if(Graph.isPageLink(e)){var g=c[e.substring(e.indexOf(",")+1)];e=null!=g?"data:page/id,"+g:null}else if("data:action/json,"==e.substring(0,17))try{var l=JSON.parse(e.substring(17));if(null!=l.actions){for(var p=0;p<l.actions.length;p++){var u=l.actions[p];if(null!=u.open&&Graph.isPageLink(u.open)){var z=u.open.substring(u.open.indexOf(",")+1);g=c[z];null!=g?u.open="data:page/id,"+g:null==this.getPageById(z)&&delete u.open}}e="data:action/json,"+JSON.stringify(l)}}catch(E){}return e};
+EditorUi.prototype.isRemoteVisioFormat=function(c){return/(\.v(sd|dx))($|\?)/i.test(c)||/(\.vs(s|x))($|\?)/i.test(c)};EditorUi.prototype.importVisio=function(c,e,g,l,p){var u=mxUtils.bind(this,function(z){this.loadingExtensions=!1;null!=g?g(z):this.handleError(z)});this.createTimeout(null,mxUtils.bind(this,function(z){l=null!=l?l:c.name;var E=mxUtils.bind(this,function(A){z.clear()&&u(A)}),D=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(this.doImportVisio){var A=this.isRemoteVisioFormat(l);
+try{var P=l.lastIndexOf(".");if(0<=P&&P<l.length)l.substring(P+1).toUpperCase();else{var R=l.lastIndexOf("/");0<=R&&R<l.length&&(l=l.substring(R+1))}}catch(L){}if(A)if(null==VSD_CONVERT_URL||this.isOffline())E({message:"draw.io"!=this.getServiceName()?mxResources.get("vsdNoConfig"):mxResources.get("serviceUnavailableOrBlocked")});else{A=new FormData;A.append("file1",c,l);var T=new XMLHttpRequest;T.open("POST",VSD_CONVERT_URL+(/(\.vss|\.vsx)$/.test(l)?"?stencil=1":""));T.responseType="blob";this.addRemoteServiceSecurityCheck(T);
+null!=p&&T.setRequestHeader("x-convert-custom",p);T.onreadystatechange=mxUtils.bind(this,function(){if(4==T.readyState&&z.clear())if(200<=T.status&&299>=T.status)try{var L=T.response;if("text/xml"==L.type){var U=new FileReader;U.onload=mxUtils.bind(this,function(n){try{e(n.target.result)}catch(t){E({message:mxResources.get("errorLoadingFile")})}});U.readAsText(L)}else this.doImportVisio(L,e,E,l)}catch(n){E(n)}else try{""==T.responseType||"text"==T.responseType?E({message:T.responseText}):(U=new FileReader,
+U.onload=function(){try{E({message:JSON.parse(U.result).Message})}catch(n){E(n)}},U.readAsText(T.response))}catch(n){E({})}});T.send(A)}else if(z.clear())try{this.doImportVisio(c,e,E,l)}catch(L){E(L)}}else E({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportVisio||this.loadingExtensions||this.isOffline(!0)?D():(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",D,null,null,null,E))}),u)};EditorUi.prototype.importGraphML=function(c,e,g){var l=
+mxUtils.bind(this,function(p){this.loadingExtensions=!1;null!=g?g(p):this.handleError(p)});this.createTimeout(null,mxUtils.bind(this,function(p){var u=mxUtils.bind(this,function(E){p.clear()&&l(E)}),z=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(p.clear())if(this.doImportGraphML)try{this.doImportGraphML(c,e,l)}catch(E){u(E)}else u({message:mxResources.get("serviceUnavailableOrBlocked")})});this.doImportGraphML||this.loadingExtensions||this.isOffline(!0)?z():(this.loadingExtensions=!0,
+mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,u))}),l)};EditorUi.prototype.exportVisio=function(c){if(this.spinner.spin(document.body,mxResources.get("loading"))){var e=mxUtils.bind(this,function(g){this.loadingExtensions=!1;this.handleError(g)});this.vsdxExportEnabled()?this.createTimeout(null,mxUtils.bind(this,function(g){var l=mxUtils.bind(this,function(u){g.clear()&&e(u)}),p=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(g.clear())if("undefined"!==typeof VsdxExport)try{this.spinner.stop(),
+(new VsdxExport(this)).exportCurrentDiagrams(c)||l({message:mxResources.get("unknownError")})}catch(u){l(u)}else l({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof VsdxExport||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(p,0):(this.loadingExtensions=!0,mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",p,null,null,null,l))}),e):e({message:mxResources.get("serviceUnavailableOrBlocked")})}};EditorUi.prototype.convertLucidChart=function(c,e,g){var l=
+mxUtils.bind(this,function(p){this.loadingExtensions=!1;null!=g?g(p):this.handleError(p)});this.createTimeout(null,mxUtils.bind(this,function(p){var u=mxUtils.bind(this,function(E){p.clear()&&l(E)}),z=mxUtils.bind(this,function(){this.loadingExtensions=!1;if(p.clear())if("undefined"!==typeof window.LucidImporter)try{var E=JSON.parse(c);e(LucidImporter.importState(E));try{if(null!=window.console&&"1"==urlParams.test){var D=[(new Date).toISOString(),"convertLucidChart",E];null!=E.state&&D.push(JSON.parse(E.state));
+if(null!=E.svgThumbs)for(var A=0;A<E.svgThumbs.length;A++)D.push(Editor.createSvgDataUri(E.svgThumbs[A]));null!=E.thumb&&D.push(E.thumb);console.log.apply(console,D)}}catch(P){}}catch(P){null!=window.console&&console.error(P),u(P)}else u({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof window.LucidImporter||this.loadingExtensions||this.isOffline(!0)?window.setTimeout(z,0):(this.loadingExtensions=!0,"1"==urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){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",z,null,null,null,u)},null,null,null,u)},null,null,null,u)},null,null,null,u)},null,null,null,u):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,u))}),l)};EditorUi.prototype.createMermaidXml=function(c,e,g,l,p,u){var z=new Graph(document.createElement("div"));g=z.insertVertex(null,null,null,0,0,l,p,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+
+g+";");z.setAttributeForCell(g,"mermaidData",JSON.stringify({data:c,config:e},null,2));null!=u&&z.setAttributeForCell(g,"templatePrompt",u);c=(new mxCodec).encode(z.getModel());return mxUtils.getXml(c)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(c,e,g){var l=0,p=function(){for(var z=document.querySelectorAll('div[id*="dgeMermaidOutput-"]'),E=0;E<z.length;E++)null!=z[E].parentNode&&z[E].parentNode.removeChild(z[E])},u=mxUtils.bind(this,function(){this.createTimeout(3E4,mxUtils.bind(this,
+function(z){var E=new mxXmlRequest("https://www.draw.io/generate/v2",c,"POST"),D=mxUtils.bind(this,function(A){z.clear()&&(p(),g(A))});E.send(mxUtils.bind(this,function(A){if(z.isAlive())if(200<=A.getStatus()&&299>=A.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var R=mxUtils.trim(A.getText());this.generateMermaidImage(R,null,mxUtils.bind(this,function(T,L,U){this.tryAndHandle(mxUtils.bind(this,function(){z.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"prompt",
+[c],"result",[R]),p(),e(R,T,L,U))}),D)}),D,mxUtils.bind(this,function(T){3>l++?z.clear()&&u():D(T)}))}),D);else{var P={message:mxResources.get("error")+" "+A.getStatus()};try{P=JSON.parse(A.getText()),P=P.error}catch(R){}D(P)}}),D)}),g)});u()};EditorUi.prototype.extractMermaidDeclaration=function(c){c=mxUtils.trim(c);"o\n\n"==c.substring(0,3)&&(c=c.substring(3));var e=c.split("```");e=1<e.length?e:c.split("<pre>");e=1<e.length?e:c.split("~~~");e=1<e.length?e:c.split("%%");e=1<e.length?e:c.split("(Begins)");
+c=mxUtils.trim(1>=e.length?c:e[1]);e=c.split("\n");var g=1<e.length?e[1]:null;if(null!=g){var l=g.indexOf("-");0<l&&(g=g.substring(0,l))}if(0<e.length&&"mermaid"==mxUtils.trim(e[0])||null!=g&&0<=mxUtils.indexOf(EditorUi.mermaidDiagramTypes,g))e.shift(),c=mxUtils.trim(e.join("\n")),e=c.split("\n");g=e[0].split(" ")[0].replace(/:$/,"");l=g.indexOf("-");0<l&&(g=g.substring(0,l));try{"mindmap"==g&&2<e.length&&(c=extractMermaidMindmap(e))}catch(p){}0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,g)&&(c=
+null);return c};EditorUi.prototype.generateMermaidImage=function(c,e,g,l,p){var u=mxUtils.bind(this,function(E){this.loadingMermaid=!1;null!=l?l(E):this.handleError(E)}),z=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;e=null!=e?e:mxUtils.clone(EditorUi.defaultMermaidConfig);e.securityLevel="strict";e.startOnLoad=!1;e.maxTextSize=9E5;"undefined"!==typeof mxMermaidToDrawio&&e.flowchart&&0<=c.indexOf("$$")&&(e.flowchart.htmlLabels=!0,mxMermaidToDrawio.htmlLabels=!0);Editor.isDarkMode()&&(e.theme=
+"dark");var E=mxUtils.bind(this,function(D){try{if(mxClient.IS_IE||mxClient.IS_IE11)D=D.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var A=mxUtils.parseXml(D).getElementsByTagName("svg");if(0<A.length&&"error"!=A[0].getAttribute("aria-roledescription")){var P=parseFloat(A[0].getAttribute("width")),R=parseFloat(A[0].getAttribute("height"));if(isNaN(P)||isNaN(R))try{var T=A[0].getAttribute("viewBox").split(/\s+/);
+P=parseFloat(T[2]);R=parseFloat(T[3])}catch(L){P=P||100,R=R||100}g(this.convertDataUri(Editor.createSvgDataUri(D)),P,R)}else null!=p?p():l({message:mxResources.get("invalidInput")})}catch(L){l(L)}});mermaid.mermaidAPI.initialize(e);mermaid.mermaidAPI.render("geMermaidOutput-"+(new Date).getTime(),c).then(function(D){E(D.svg)}).catch(function(D){null!=p?p(D):l(D)})}catch(D){l(D)}});"undefined"!==typeof mermaid||this.loadingMermaid||this.isOffline(!0)?window.setTimeout(z,0):(this.loadingMermaid=!0,
+"1"==urlParams.dev?("1"==urlParams.mermaidToDrawioTest&&mxMermaidToDrawio.addListener(mxUtils.bind(this,function(E){this.importXml(E,null,null,null,null,null,!0)})),mxscript("js/mermaid/mermaid.min.js",z,null,null,null,u)):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",z,null,null,null,u))};EditorUi.prototype.generatePlantUmlImage=function(c,e,g,l){function p(E,D,A){c1=E>>2;c2=(E&3)<<4|D>>4;c3=(D&15)<<2|A>>6;c4=A&63;r="";r+=u(c1&63);r+=u(c2&63);r+=u(c3&63);return r+=u(c4&63)}function u(E){if(10>
+E)return String.fromCharCode(48+E);E-=10;if(26>E)return String.fromCharCode(65+E);E-=26;if(26>E)return String.fromCharCode(97+E);E-=26;return 0==E?"-":1==E?"_":"?"}var z=new XMLHttpRequest;z.open("GET",("txt"==e?PLANT_URL+"/txt/":"png"==e?PLANT_URL+"/png/":PLANT_URL+"/svg/")+function(E){r="";for(i=0;i<E.length;i+=3)r=i+2==E.length?r+p(E.charCodeAt(i),E.charCodeAt(i+1),0):i+1==E.length?r+p(E.charCodeAt(i),0,0):r+p(E.charCodeAt(i),E.charCodeAt(i+1),E.charCodeAt(i+2));return r}(Graph.arrayBufferToString(pako.deflateRaw(c))),
+!0);"txt"!=e&&(z.responseType="blob");z.onload=function(E){if(200<=this.status&&300>this.status)if("txt"==e)g(this.response);else{var D=new FileReader;D.readAsDataURL(this.response);D.onloadend=function(A){var P=new Image;P.onload=function(){try{var R=P.width,T=P.height;if(0==R&&0==T){var L=D.result,U=L.indexOf(","),n=decodeURIComponent(escape(atob(L.substring(U+1)))),t=mxUtils.parseXml(n).getElementsByTagName("svg");0<t.length&&(R=parseFloat(t[0].getAttribute("width")),T=parseFloat(t[0].getAttribute("height")))}g(D.result,
+R,T)}catch(B){l(B)}};P.src=D.result};D.onerror=function(A){l(A)}}else l(E)};z.onerror=function(E){l(E)};z.send()};EditorUi.prototype.insertAsPreText=function(c,e,g){var l=this.editor.graph,p=null;l.getModel().beginUpdate();try{p=l.insertVertex(null,null,"<pre>"+c+"</pre>",e,g,1,1,"text;html=1;align=left;verticalAlign=top;"),l.updateCellSize(p,!0)}finally{l.getModel().endUpdate()}return p};EditorUi.prototype.insertTextAt=function(c,e,g,l,p,u,z,E){u=null!=u?u:!0;z=null!=z?z:!0;if(null!=c)if(Graph.fileSupport&&
+(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c))this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(c.replace(/\s+/g," "),mxUtils.bind(this,function(T){4==T.readyState&&200<=T.status&&299>=T.status&&this.editor.graph.setSelectionCells(this.insertTextAt(T.responseText,e,g,!0))}));else if("data:"==c.substring(0,5)||!this.isOffline()&&(p||/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c))){var D=this.editor.graph;if("data:application/pdf;base64,"==
+c.substring(0,28)){var A=Editor.extractGraphModelFromPdf(c);if(null!=A&&0<A.length)return this.importXml(A,e,g,u,!0,E)}if(Editor.isPngDataUrl(c)&&(A=Editor.extractGraphModelFromPng(c),null!=A&&0<A.length))return this.importXml(A,e,g,u,!0,E);if("data:image/svg+xml;"==c.substring(0,19))try{A=null;"data:image/svg+xml;base64,"==c.substring(0,26)?(A=c.substring(c.indexOf(",")+1),A=window.atob&&!mxClient.IS_SF?atob(A):Base64.decode(A,!0)):A=decodeURIComponent(c.substring(c.indexOf(",")+1));var P=this.importXml(A,
+e,g,u,!0,E);if(0<P.length)return P}catch(T){}this.loadImage(c,mxUtils.bind(this,function(T){if("data:"==c.substring(0,5))this.resizeImage(T,c,mxUtils.bind(this,function(n,t,B){D.setSelectionCell(D.insertVertex(null,null,"",D.snap(e),D.snap(g),t,B,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+this.convertDataUri(n)+";"))}),z,this.maxImageSize);else{var L=Math.min(1,Math.min(this.maxImageSize/T.width,this.maxImageSize/T.height)),
+U=Math.round(T.width*L);T=Math.round(T.height*L);D.setSelectionCell(D.insertVertex(null,null,"",D.snap(e),D.snap(g),U,T,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+c+";"))}}),mxUtils.bind(this,function(){var T=null;D.getModel().beginUpdate();try{T=D.insertVertex(D.getDefaultParent(),null,c,D.snap(e),D.snap(g),1,1,"text;"+(l?"html=1;":"")),D.updateCellSize(T),D.fireEvent(new mxEventObject("textInserted","cells",[T]))}finally{D.getModel().endUpdate()}D.setSelectionCell(T)}))}else{c=
+Graph.zapGremlins(mxUtils.trim(c));if(this.isCompatibleString(c))return this.importXml(c,e,g,u,null,E);if(0<c.length)if(this.isLucidChartData(c))this.convertLucidChart(c,mxUtils.bind(this,function(T){this.editor.graph.setSelectionCells(this.importXml(T,e,g,u,null,E))}),mxUtils.bind(this,function(T){this.handleError(T)}));else{D=this.editor.graph;p=null;D.getModel().beginUpdate();try{p=D.insertVertex(D.getDefaultParent(),null,"",D.snap(e),D.snap(g),1,1,"text;whiteSpace=wrap;"+(l?"html=1;":""));D.fireEvent(new mxEventObject("textInserted",
+"cells",[p]));l&&(c=D.sanitizeHtml(c));c.length>this.maxTextBytes&&(c=c.substring(0,this.maxTextBytes)+"...");p.value=c;D.updateCellSize(p);if(0<this.maxTextWidth&&p.geometry.width>this.maxTextWidth){var R=D.getPreferredSizeForCell(p,this.maxTextWidth);p.geometry.width=R.width;p.geometry.height=R.height}Graph.isLink(p.value)&&D.setLinkForCell(p,p.value);p.geometry.width+=D.gridSize;p.geometry.height+=D.gridSize}finally{D.getModel().endUpdate()}return[p]}}return[]};EditorUi.prototype.formatFileSize=
function(c){var e=-1;do c/=1024,e++;while(1024<c);return Math.max(c,.1).toFixed(1)+" kB; MB; GB; TB;PB;EB;ZB;YB".split(";")[e]};EditorUi.prototype.convertDataUri=function(c){if("data:"==c.substring(0,5)){var e=c.indexOf(";");0<e&&(c=c.substring(0,e)+c.substring(c.indexOf(",",e+1)))}return c};EditorUi.prototype.isRemoteFileFormat=function(c,e){return/("contentType":\s*"application\/gliffy\+json")/.test(c)};EditorUi.prototype.isLucidChartData=function(c){return null!=c&&('{"state":"{\\"Properties\\":'==
c.substring(0,26)||'{"Properties":'==c.substring(0,14))};EditorUi.prototype.importLocalFile=function(c,e){if(c&&Graph.fileSupport){if(null==this.importFileInputElt){var g=document.createElement("input");g.setAttribute("type","file");mxEvent.addListener(g,"change",mxUtils.bind(this,function(){null!=g.files&&(this.importFiles(g.files,null,null,this.maxImageSize),g.type="",g.type="file",g.value="")}));g.style.display="none";document.body.appendChild(g);this.importFileInputElt=g}this.importFileInputElt.click()}else{window.openNew=
-!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(z,D){StorageFile.listFiles(this,"F",z,D)});window.openBrowserFile=mxUtils.bind(this,function(z,D,C){StorageFile.getFileContent(this,z,D,C)});window.deleteBrowserFile=mxUtils.bind(this,function(z,D,C){StorageFile.deleteFile(this,z,D,C)});if(!e){var l=Editor.useLocalStorage;Editor.useLocalStorage=!c}window.openFile=new OpenFile(mxUtils.bind(this,function(z){this.hideDialog(z)}));window.openFile.setConsumer(mxUtils.bind(this,
-function(z,D){null!=D&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(D)?(z=new Blob([z],{type:"application/octet-stream"}),this.importVisio(z,mxUtils.bind(this,function(C){this.importXml(C,0,0,!0)}),null,D)):this.editor.graph.setSelectionCells(this.importXml(z,0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null});if(!e){var n=this.dialog,u=n.close;this.dialog.close=mxUtils.bind(this,function(z){Editor.useLocalStorage=
-l;u.apply(n,arguments);z&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(c,e,g){var l=this,n=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(c).then(function(u){if(mxUtils.isEmptyObject(u.files))g();else{var z=0,D,C=!1;u.forEach(function(A,Q){A=Q.name.toLowerCase();"diagram/diagram.xml"==A?(C=!0,Q.async("string").then(function(S){0==S.indexOf("<mxfile ")?e(S):g()})):0==A.indexOf("versions/")&&
-(A=parseInt(A.substr(9)),A>z&&(z=A,D=Q))});0<z?D.async("string").then(function(A){(new XMLHttpRequest).upload&&l.isRemoteFileFormat(A,c.name)?l.isOffline()?l.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,g):l.parseFileData(A,mxUtils.bind(this,function(Q){4==Q.readyState&&(200<=Q.status&&299>=Q.status?e(Q.responseText):g())}),c.name):g()}):C||g()}},function(u){g(u)}):g()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?n():(this.loadingExtensions=!0,
-mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",n,null,null,null,g))};EditorUi.prototype.importFile=function(c,e,g,l,n,u,z,D,C,A,Q,S){A=null!=A?A:!0;var U=!1,O=null,p=mxUtils.bind(this,function(q){var G=null;null!=q&&"<mxlibrary"==q.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,q,z)),this.showSidebar()):G=this.importXml(q,g,l,A,null,null!=S?mxEvent.isControlDown(S):null);null!=D&&D(G)});"image"==e.substring(0,5)?(C=!1,"image/png"==e.substring(0,9)&&(Q=Q?null:this.extractGraphModelFromPng(c),
-null!=Q&&0<Q.length&&(O=this.importXml(Q,g,l,A,null,null!=S?mxEvent.isControlDown(S):null),C=!0)),C||(C=this.editor.graph,Q=c.indexOf(";"),0<Q&&(c=c.substring(0,Q)+c.substring(c.indexOf(",",Q+1))),A&&C.isGridEnabled()&&(g=C.snap(g),l=C.snap(l)),Q="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==e.substring(0,9)&&(Q+="editableCssRules=.*;"),O=[C.insertVertex(null,null,"",g,l,n,u,Q+"image="+c+";")])):/(\.*<graphml )/.test(c)?
-(U=!0,this.importGraphML(c,p)):null!=C&&null!=z&&EditorUi.isVisioFilename(z)?(U=!0,this.importVisio(C,p)):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,z)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(U=!0,e=mxUtils.bind(this,function(q){4==q.readyState&&(200<=q.status&&299>=q.status?p(q.responseText):null!=D&&(D(null),this.showError(mxResources.get("error"),413==q.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),
-null!=c?this.parseFileData(c,e,z):this.parseFile(C,e,z)):0==c.indexOf("PK")&&null!=C?(U=!0,this.importZipFile(C,p,mxUtils.bind(this,function(){O=this.insertTextAt(this.validateFileData(c),g,l,!0,null,A);D(O)}))):/(\.v(sd|dx))($|\?)/i.test(z)||/(\.vs(s|x))($|\?)/i.test(z)||(O=this.insertTextAt(this.validateFileData(c),g,l,!0,null,A,null,null!=S?mxEvent.isControlDown(S):null));U||null==D||D(O);return O};EditorUi.prototype.importFiles=function(c,e,g,l,n,u,z,D,C,A,Q,S,U){l=null!=l?l:this.maxImageSize;
-A=null!=A?A:this.maxImageBytes;var O=null!=e&&null!=g,p=!0;e=null!=e?e:0;g=null!=g?g:0;var q=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var G=Q||this.resampleThreshold,E=0;E<c.length;E++)if("image/svg"!==c[E].type.substring(0,9)&&"image/"===c[E].type.substring(0,6)&&c[E].size>G){q=!0;break}var H=mxUtils.bind(this,function(){var L=this.editor.graph,K=L.gridSize;n=null!=n?n:mxUtils.bind(this,function(R,T,V,W,X,Y,Z,da,ea){try{if(null!=R&&"<mxlibrary"==R.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,
-R,Z)),this.showSidebar(),null;this.isCompatibleString(R)&&1==c.length&&null!=U&&"drop"==U.type&&this.isBlankFile()&&!this.canUndo()&&(O=!1,W=V=0);return this.importFile(R,T,V,W,X,Y,Z,da,ea,O,S,U)}catch(ka){return this.handleError(ka),null}});u=null!=u?u:mxUtils.bind(this,function(R){L.setSelectionCells(R)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var k=c.length,y=k,F=[],M=mxUtils.bind(this,function(R,T){F[R]=T;if(0==--y){this.spinner.stop();if(null!=D)D(F);else{var V=[];
-L.getModel().beginUpdate();try{for(R=0;R<F.length;R++){var W=F[R]();null!=W&&(V=V.concat(W))}}finally{L.getModel().endUpdate()}}u(V)}}),P=0;P<k;P++)mxUtils.bind(this,function(R){var T=c[R];if(null!=T){var V=new FileReader;V.onload=mxUtils.bind(this,function(W){if(null==z||z(T))try{if("image/"==T.type.substring(0,6))if("image/svg"==T.type.substring(0,9)){var X=Graph.clipSvgDataUri(W.target.result),Y=X.indexOf(","),Z=decodeURIComponent(escape(atob(X.substring(Y+1)))),da=mxUtils.parseXml(Z),ea=da.getElementsByTagName("svg");
-if(0<ea.length){var ka=ea[0],ba=S?null:ka.getAttribute("content");null!=ba&&"<"!=ba.charAt(0)&&"%"!=ba.charAt(0)&&(ba=unescape(window.atob?atob(ba):Base64.decode(ba,!0)));null!=ba&&"%"==ba.charAt(0)&&(ba=decodeURIComponent(ba));null==ba||"<mxfile "!==ba.substring(0,8)&&"<mxGraphModel "!==ba.substring(0,14)?M(R,mxUtils.bind(this,function(){try{if(null!=da){var ia=da.getElementsByTagName("svg");if(0<ia.length){var fa=ia[0],ca=fa.getAttribute("width"),Ba=fa.getAttribute("height");ca=null!=ca&&"%"!=ca.charAt(ca.length-
-1)?parseFloat(ca):NaN;Ba=null!=Ba&&"%"!=Ba.charAt(Ba.length-1)?parseFloat(Ba):NaN;var la=fa.getAttribute("viewBox");if(null==la||0==la.length)fa.setAttribute("viewBox","0 0 "+ca+" "+Ba);else if(isNaN(ca)||isNaN(Ba)){var xa=la.split(" ");3<xa.length&&(ca=parseFloat(xa[2]),Ba=parseFloat(xa[3]))}X=Editor.createSvgDataUri(mxUtils.getXml(fa));var Aa=Math.min(1,Math.min(l/Math.max(1,ca)),l/Math.max(1,Ba)),ma=n(X,T.type,e+R*K,g+R*K,Math.max(1,Math.round(ca*Aa)),Math.max(1,Math.round(Ba*Aa)),T.name);if(null!=
-ma&&(isNaN(ca)||isNaN(Ba))){var ua=new Image;ua.onload=mxUtils.bind(this,function(){ca=Math.max(1,ua.width);Ba=Math.max(1,ua.height);ma[0].geometry.width=ca;ma[0].geometry.height=Ba;fa.setAttribute("viewBox","0 0 "+ca+" "+Ba);X=Editor.createSvgDataUri(mxUtils.getXml(fa));var ra=X.indexOf(";");0<ra&&(X=X.substring(0,ra)+X.substring(X.indexOf(",",ra+1)));L.setCellStyles("image",X,[ma[0]])});ua.src=Editor.createSvgDataUri(mxUtils.getXml(fa))}return ma}}}catch(ra){}return null})):M(R,mxUtils.bind(this,
-function(){return n(ba,"text/xml",e+R*K,g+R*K,0,0,T.name)}))}else M(R,mxUtils.bind(this,function(){return null}))}else{Y=!1;if("image/png"==T.type){var ha=S?null:this.extractGraphModelFromPng(W.target.result);if(null!=ha&&0<ha.length){var aa=new Image;aa.src=W.target.result;M(R,mxUtils.bind(this,function(){return n(ha,"text/xml",e+R*K,g+R*K,aa.width,aa.height,T.name)}));Y=!0}}Y||(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(W.target.result,mxUtils.bind(this,function(ia){this.resizeImage(ia,W.target.result,mxUtils.bind(this,function(fa,ca,Ba){M(R,mxUtils.bind(this,function(){if(null!=fa&&fa.length<A){var la=p&&this.isResampleImageSize(T.size,Q)?Math.min(1,Math.min(l/ca,l/Ba)):1;return n(fa,T.type,e+R*K,g+R*K,Math.round(ca*la),Math.round(Ba*la),T.name)}this.handleError({message:mxResources.get("imageTooBig")});
-return null}))}),p,l,Q,T.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else X=W.target.result,n(X,T.type,e+R*K,g+R*K,240,160,T.name,function(ia){M(R,function(){return ia})},T)}catch(ia){M(R,mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(ia,T)}else M(R,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(T.name)?n(null,T.type,e+R*K,g+R*K,240,160,T.name,function(W){M(R,function(){return W})},
-T):"image"==T.type.substring(0,5)||"application/pdf"==T.type?V.readAsDataURL(T):V.readAsText(T)}})(P)});if(q){q=[];for(E=0;E<c.length;E++)q.push(c[E]);c=q;this.confirmImageResize(function(L){p=L;H()},C)}else H()};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,e){e=null!=e?e:!1;var g=null!=this.spinner&&null!=this.spinner.pause?
-this.spinner.pause():function(){},l=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,n=function(u,z){if(u||e)mxSettings.setResizeImages(u?z:null),mxSettings.save();g();c(z)};null==l||e?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(u){n(u,!0)},function(u){n(u,!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):n(!1,l)};EditorUi.prototype.parseFile=function(c,e,g){g=null!=g?g:c.name;var l=new FileReader;l.onload=mxUtils.bind(this,function(){this.parseFileData(l.result,e,g)});l.readAsText(c)};EditorUi.prototype.parseFileData=function(c,e,g){var l=new XMLHttpRequest;l.open("POST",OPEN_URL);l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.onreadystatechange=function(){e(l)};l.send("format=xml&filename="+
-encodeURIComponent(g)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(n){}};EditorUi.prototype.isResampleImageSize=function(c,e){e=null!=e?e:this.resampleThreshold;return c>e};EditorUi.prototype.resizeImage=function(c,e,g,l,n,u,z){n=null!=n?n:this.maxImageSize;var D=Math.max(1,c.width),C=Math.max(1,c.height),A=e;if(l&&this.isResampleImageSize(null!=z?z:e.length,u))try{var Q=Math.max(D/n,C/n);if(1<Q){var S=Math.round(D/Q),U=Math.round(C/
-Q),O=document.createElement("canvas");O.width=S;O.height=U;O.getContext("2d").drawImage(c,0,0,S,U);var p=O.toDataURL();if(p.length<e.length){var q=document.createElement("canvas");q.width=S;q.height=U;var G=q.toDataURL();p!==G&&(e=p,D=S,C=U)}}}catch(E){}l&&A!=e&&n>this.maxImageSize/2&&e.length>this.maxImageBytes?this.resizeImage(c,e,g,l,n/1.5,u,z):g(e,D,C)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=function(c,e,
-g){try{var l=new Image;l.onload=function(){l.width=0<l.width?l.width:120;l.height=0<l.height?l.height:120;e(l)};null!=g&&(l.onerror=g);l.src=c}catch(n){if(null!=g)g(n);else throw n;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:c)};var t=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),
-this.formatWidth=mxSettings.getFormatWidth());t.apply(this,arguments);Editor.isSettingsEnabled()&&this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode())};var x=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var c=this,e=this.editor.graph,g=e.isEnabled;e.isEnabled=function(){return g.apply(this,arguments)&&
-!c.isLocked()};Graph.touchStyle&&(e.panningHandler.isPanningTrigger=function(K){var k=K.getEvent();return null==K.getState()&&!mxEvent.isMouseEvent(k)&&!e.freehand.isDrawing()||mxEvent.isPopupTrigger(k)&&(null==K.getState()||mxEvent.isControlDown(k)||mxEvent.isShiftDown(k))});e.cellEditor.editPlantUmlData=function(K,k,y){var F=JSON.parse(y);k=new TextareaDialog(c,mxResources.get("plantUml")+":",F.data,function(M){null!=M&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(M,
-F.format,function(P,R,T){c.spinner.stop();e.getModel().beginUpdate();try{if("txt"==F.format)e.labelChanged(K,"<pre>"+P+"</pre>"),e.updateCellSize(K,!0);else{e.setCellStyles("image",c.convertDataUri(P),[K]);var V=e.model.getGeometry(K);null!=V&&(V=V.clone(),V.width=R,V.height=T,e.cellsResized([K],[V],!1))}e.setAttributeForCell(K,"plantUmlData",JSON.stringify({data:M,format:F.format}))}finally{e.getModel().endUpdate()}},function(P){c.handleError(P)})},null,null,400,220);c.showDialog(k.container,420,
-300,!0,!0);k.init()};e.cellEditor.editMermaidData=function(K,k,y){var F=JSON.parse(y);k=new TextareaDialog(c,mxResources.get("mermaid")+":",F.data,function(M){null!=M&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generateMermaidImage(M,F.config,function(P,R,T){c.spinner.stop();e.getModel().beginUpdate();try{e.setCellStyles("image",P,[K]);var V=e.model.getGeometry(K);null!=V&&(V=V.clone(),V.width=Math.max(V.width,R),V.height=Math.max(V.height,T),e.cellsResized([K],[V],!1));e.setAttributeForCell(K,
-"mermaidData",JSON.stringify({data:M,config:F.config},null,2))}finally{e.getModel().endUpdate()}},function(P){c.handleError(P)})},null,null,400,220);c.showDialog(k.container,420,300,!0,!0);k.init()};var l=e.cellEditor.startEditing;e.cellEditor.startEditing=function(K,k){try{var y=this.graph.getAttributeForCell(K,"plantUmlData");if(null!=y)this.editPlantUmlData(K,k,y);else if(y=this.graph.getAttributeForCell(K,"mermaidData"),null!=y&&window.isMermaidEnabled)this.editMermaidData(K,k,y);else{var F=e.getCellStyle(K);
-"1"==mxUtils.getValue(F,"metaEdit","0")?c.showDataDialog(K):l.apply(this,arguments)}}catch(M){c.handleError(M)}};e.getLinkTitle=function(K){return c.getLinkTitle(K)};e.customLinkClicked=function(K,k){var y=!1;try{var F=this.getGraphBounds();c.handleCustomLink(K,k);y=!0;c.chromelessResize&&!F.equals(this.getGraphBounds())&&(c.chromelessResize(),this.scrollCellToVisible(k))}catch(M){c.handleError(M)}return y};var n=e.parseBackgroundImage;e.parseBackgroundImage=function(K){var k=n.apply(this,arguments);
+!1;window.openKey="import";window.listBrowserFiles=mxUtils.bind(this,function(z,E){StorageFile.listFiles(this,"F",z,E)});window.openBrowserFile=mxUtils.bind(this,function(z,E,D){StorageFile.getFileContent(this,z,E,D)});window.deleteBrowserFile=mxUtils.bind(this,function(z,E,D){StorageFile.deleteFile(this,z,E,D)});if(!e){var l=Editor.useLocalStorage;Editor.useLocalStorage=!c}window.openFile=new OpenFile(mxUtils.bind(this,function(z){this.hideDialog(z)}));window.openFile.setConsumer(mxUtils.bind(this,
+function(z,E){null!=E&&Graph.fileSupport&&/(\.v(dx|sdx?))($|\?)/i.test(E)?(z=new Blob([z],{type:"application/octet-stream"}),this.importVisio(z,mxUtils.bind(this,function(D){this.importXml(D,0,0,!0)}),null,E)):this.editor.graph.setSelectionCells(this.importXml(z,0,0,!0))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){window.openFile=null});if(!e){var p=this.dialog,u=p.close;this.dialog.close=mxUtils.bind(this,function(z){Editor.useLocalStorage=
+l;u.apply(p,arguments);z&&null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.showSplash()})}}};EditorUi.prototype.importZipFile=function(c,e,g){var l=this,p=mxUtils.bind(this,function(){this.loadingExtensions=!1;"undefined"!==typeof JSZip?JSZip.loadAsync(c).then(function(u){if(mxUtils.isEmptyObject(u.files))g();else{var z=0,E,D=!1;u.forEach(function(A,P){A=P.name.toLowerCase();"diagram/diagram.xml"==A?(D=!0,P.async("string").then(function(R){0==R.indexOf("<mxfile ")?e(R):g()})):0==A.indexOf("versions/")&&
+(A=parseInt(A.substr(9)),A>z&&(z=A,E=P))});0<z?E.async("string").then(function(A){(new XMLHttpRequest).upload&&l.isRemoteFileFormat(A,c.name)?l.isOffline()?l.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,g):l.parseFileData(A,mxUtils.bind(this,function(P){4==P.readyState&&(200<=P.status&&299>=P.status?e(P.responseText):g())}),c.name):g()}):D||g()}},function(u){g(u)}):g()});"undefined"!==typeof JSZip||this.loadingExtensions||this.isOffline(!0)?p():(this.loadingExtensions=!0,
+mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",p,null,null,null,g))};EditorUi.prototype.importFile=function(c,e,g,l,p,u,z,E,D,A,P,R){A=null!=A?A:!0;var T=!1,L=null,U=mxUtils.bind(this,function(n){var t=null;null!=n&&"<mxlibrary"==n.substring(0,10)?(this.loadLibrary(new LocalLibrary(this,n,z)),this.showSidebar()):t=this.importXml(n,g,l,A,null,null!=R?mxEvent.isControlDown(R):null);null!=E&&E(t)});"image"==e.substring(0,5)?(D=!1,"image/png"==e.substring(0,9)&&(P=P?null:this.extractGraphModelFromPng(c),
+null!=P&&0<P.length&&(L=this.importXml(P,g,l,A,null,null!=R?mxEvent.isControlDown(R):null),D=!0)),D||(D=this.editor.graph,P=c.indexOf(";"),0<P&&(c=c.substring(0,P)+c.substring(c.indexOf(",",P+1))),A&&D.isGridEnabled()&&(g=D.snap(g),l=D.snap(l)),P="shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;","image/svg"==e.substring(0,9)&&(P+="editableCssRules=.*;"),L=[D.insertVertex(null,null,"",g,l,p,u,P+"image="+c+";")])):/(\.*<graphml )/.test(c)?
+(T=!0,this.importGraphML(c,U)):null!=D&&null!=z&&EditorUi.isVisioFilename(z)?(T=!0,this.importVisio(D,U)):(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,z)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(T=!0,e=mxUtils.bind(this,function(n){4==n.readyState&&(200<=n.status&&299>=n.status?U(n.responseText):null!=E&&(E(null),this.showError(mxResources.get("error"),413==n.status?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))))}),
+null!=c?this.parseFileData(c,e,z):this.parseFile(D,e,z)):0==c.indexOf("PK")&&null!=D?(T=!0,this.importZipFile(D,U,mxUtils.bind(this,function(){L=this.insertTextAt(this.validateFileData(c),g,l,!0,null,A);E(L)}))):/(\.v(sd|dx))($|\?)/i.test(z)||/(\.vs(s|x))($|\?)/i.test(z)||(L=this.insertTextAt(this.validateFileData(c),g,l,!0,null,A,null,null!=R?mxEvent.isControlDown(R):null));T||null==E||E(L);return L};EditorUi.prototype.importFiles=function(c,e,g,l,p,u,z,E,D,A,P,R,T){l=null!=l?l:this.maxImageSize;
+A=null!=A?A:this.maxImageBytes;var L=null!=e&&null!=g,U=!0;e=null!=e?e:0;g=null!=g?g:0;var n=!1;if(!mxClient.IS_CHROMEAPP&&null!=c)for(var t=P||this.resampleThreshold,B=0;B<c.length;B++)if("image/svg"!==c[B].type.substring(0,9)&&"image/"===c[B].type.substring(0,6)&&c[B].size>t){n=!0;break}var F=mxUtils.bind(this,function(){var J=this.editor.graph,K=J.gridSize;p=null!=p?p:mxUtils.bind(this,function(Q,S,V,W,X,Z,Y,ea,ca){try{if(null!=Q&&"<mxlibrary"==Q.substring(0,10))return this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,
+Q,Y)),this.showSidebar(),null;this.isCompatibleString(Q)&&1==c.length&&null!=T&&"drop"==T.type&&this.isBlankFile()&&!this.canUndo()&&(L=!1,W=V=0);return this.importFile(Q,S,V,W,X,Z,Y,ea,ca,L,R,T)}catch(ka){return this.handleError(ka),null}});u=null!=u?u:mxUtils.bind(this,function(Q){J.setSelectionCells(Q)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var k=c.length,v=k,G=[],N=mxUtils.bind(this,function(Q,S){G[Q]=S;if(0==--v){this.spinner.stop();if(null!=E)E(G);else{var V=[];
+J.getModel().beginUpdate();try{for(Q=0;Q<G.length;Q++){var W=G[Q]();null!=W&&(V=V.concat(W))}}finally{J.getModel().endUpdate()}}u(V)}}),O=0;O<k;O++)mxUtils.bind(this,function(Q){var S=c[Q];if(null!=S){var V=new FileReader;V.onload=mxUtils.bind(this,function(W){if(null==z||z(S))try{if("image/"==S.type.substring(0,6))if("image/svg"==S.type.substring(0,9)){var X=Graph.clipSvgDataUri(W.target.result),Z=X.indexOf(","),Y=decodeURIComponent(escape(atob(X.substring(Z+1)))),ea=mxUtils.parseXml(Y),ca=ea.getElementsByTagName("svg");
+if(0<ca.length){var ka=ca[0],ba=R?null:ka.getAttribute("content");null!=ba&&"<"!=ba.charAt(0)&&"%"!=ba.charAt(0)&&(ba=unescape(window.atob?atob(ba):Base64.decode(ba,!0)));null!=ba&&"%"==ba.charAt(0)&&(ba=decodeURIComponent(ba));null==ba||"<mxfile "!==ba.substring(0,8)&&"<mxGraphModel "!==ba.substring(0,14)?N(Q,mxUtils.bind(this,function(){try{if(null!=ea){var ia=ea.getElementsByTagName("svg");if(0<ia.length){var fa=ia[0],da=fa.getAttribute("width"),za=fa.getAttribute("height");da=null!=da&&"%"!=da.charAt(da.length-
+1)?parseFloat(da):NaN;za=null!=za&&"%"!=za.charAt(za.length-1)?parseFloat(za):NaN;var va=fa.getAttribute("viewBox");if(null==va||0==va.length)fa.setAttribute("viewBox","0 0 "+da+" "+za);else if(isNaN(da)||isNaN(za)){var oa=va.split(" ");3<oa.length&&(da=parseFloat(oa[2]),za=parseFloat(oa[3]))}X=Editor.createSvgDataUri(mxUtils.getXml(fa));var Ba=Math.min(1,Math.min(l/Math.max(1,da)),l/Math.max(1,za)),ma=p(X,S.type,e+Q*K,g+Q*K,Math.max(1,Math.round(da*Ba)),Math.max(1,Math.round(za*Ba)),S.name);if(null!=
+ma&&(isNaN(da)||isNaN(za))){var ta=new Image;ta.onload=mxUtils.bind(this,function(){da=Math.max(1,ta.width);za=Math.max(1,ta.height);ma[0].geometry.width=da;ma[0].geometry.height=za;fa.setAttribute("viewBox","0 0 "+da+" "+za);X=Editor.createSvgDataUri(mxUtils.getXml(fa));var qa=X.indexOf(";");0<qa&&(X=X.substring(0,qa)+X.substring(X.indexOf(",",qa+1)));J.setCellStyles("image",X,[ma[0]])});ta.src=Editor.createSvgDataUri(mxUtils.getXml(fa))}return ma}}}catch(qa){}return null})):N(Q,mxUtils.bind(this,
+function(){return p(ba,"text/xml",e+Q*K,g+Q*K,0,0,S.name)}))}else N(Q,mxUtils.bind(this,function(){return null}))}else{Z=!1;if("image/png"==S.type){var ha=R?null:this.extractGraphModelFromPng(W.target.result);if(null!=ha&&0<ha.length){var aa=new Image;aa.src=W.target.result;N(Q,mxUtils.bind(this,function(){return p(ha,"text/xml",e+Q*K,g+Q*K,aa.width,aa.height,S.name)}));Z=!0}}Z||(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(W.target.result,mxUtils.bind(this,function(ia){this.resizeImage(ia,W.target.result,mxUtils.bind(this,function(fa,da,za){N(Q,mxUtils.bind(this,function(){if(null!=fa&&fa.length<A){var va=U&&this.isResampleImageSize(S.size,P)?Math.min(1,Math.min(l/da,l/za)):1;return p(fa,S.type,e+Q*K,g+Q*K,Math.round(da*va),Math.round(za*va),S.name)}this.handleError({message:mxResources.get("imageTooBig")});
+return null}))}),U,l,P,S.size)}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("invalidOrMissingFile")})})))}else X=W.target.result,p(X,S.type,e+Q*K,g+Q*K,240,160,S.name,function(ia){N(Q,function(){return ia})},S)}catch(ia){N(Q,mxUtils.bind(this,function(){return null})),null!=window.console&&console.error(ia,S)}else N(Q,mxUtils.bind(this,function(){return null}))});EditorUi.isVisioFilename(S.name)?p(null,S.type,e+Q*K,g+Q*K,240,160,S.name,function(W){N(Q,function(){return W})},
+S):"image"==S.type.substring(0,5)||"application/pdf"==S.type?V.readAsDataURL(S):V.readAsText(S)}})(O)});if(n){n=[];for(B=0;B<c.length;B++)n.push(c[B]);c=n;this.confirmImageResize(function(J){U=J;F()},D)}else F()};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,e){e=null!=e?e:!1;var g=null!=this.spinner&&null!=this.spinner.pause?
+this.spinner.pause():function(){},l=isLocalStorage||mxClient.IS_CHROMEAPP?mxSettings.getResizeImages():null,p=function(u,z){if(u||e)mxSettings.setResizeImages(u?z:null),mxSettings.save();g();c(z)};null==l||e?this.showDialog((new ConfirmDialog(this,mxResources.get("resizeLargeImages"),function(u){p(u,!0)},function(u){p(u,!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):p(!1,l)};EditorUi.prototype.parseFile=function(c,e,g){g=null!=g?g:c.name;var l=new FileReader;l.onload=mxUtils.bind(this,function(){this.parseFileData(l.result,e,g)});l.readAsText(c)};EditorUi.prototype.parseFileData=function(c,e,g){var l=new XMLHttpRequest;l.open("POST",OPEN_URL);l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.onreadystatechange=function(){e(l)};l.send("format=xml&filename="+
+encodeURIComponent(g)+"&data="+encodeURIComponent(c));try{EditorUi.logEvent({category:"GLIFFY-IMPORT-FILE",action:"size_"+file.size})}catch(p){}};EditorUi.prototype.isResampleImageSize=function(c,e){e=null!=e?e:this.resampleThreshold;return c>e};EditorUi.prototype.resizeImage=function(c,e,g,l,p,u,z){p=null!=p?p:this.maxImageSize;var E=Math.max(1,c.width),D=Math.max(1,c.height),A=e;if(l&&this.isResampleImageSize(null!=z?z:e.length,u))try{var P=Math.max(E/p,D/p);if(1<P){var R=Math.round(E/P),T=Math.round(D/
+P),L=document.createElement("canvas");L.width=R;L.height=T;L.getContext("2d").drawImage(c,0,0,R,T);var U=L.toDataURL();if(U.length<e.length){var n=document.createElement("canvas");n.width=R;n.height=T;var t=n.toDataURL();U!==t&&(e=U,E=R,D=T)}}}catch(B){}l&&A!=e&&p>this.maxImageSize/2&&e.length>this.maxImageBytes?this.resizeImage(c,e,g,l,p/1.5,u,z):g(e,E,D)};EditorUi.prototype.extractGraphModelFromPng=function(c){return Editor.extractGraphModelFromPng(c)};EditorUi.prototype.loadImage=function(c,e,
+g){try{var l=new Image;l.onload=function(){l.width=0<l.width?l.width:120;l.height=0<l.height?l.height:120;e(l)};null!=g&&(l.onerror=g);l.src=c}catch(p){if(null!=g)g(p);else throw p;}};EditorUi.prototype.getDefaultSketchMode=function(){var c="1"==urlParams.sketch;return"0"!=(null!=urlParams.rough?urlParams.rough:c)};var q=EditorUi.prototype.createUi;EditorUi.prototype.createUi=function(){Editor.isSettingsEnabled()&&(null!=mxSettings.settings.sidebarTitles&&(Sidebar.prototype.sidebarTitles=mxSettings.settings.sidebarTitles),
+this.formatWidth=mxSettings.getFormatWidth());q.apply(this,arguments);Editor.isSettingsEnabled()&&this.doSetSketchMode(null!=mxSettings.settings.sketchMode&&null==urlParams.rough&&null==urlParams.sketch?mxSettings.settings.sketchMode:this.getDefaultSketchMode())};var x=EditorUi.prototype.init;EditorUi.prototype.init=function(){mxStencilRegistry.allowEval=mxStencilRegistry.allowEval&&!this.isOfflineApp();var c=this,e=this.editor.graph,g=e.isEnabled;e.isEnabled=function(){return g.apply(this,arguments)&&
+!c.isLocked()};Graph.touchStyle&&(e.panningHandler.isPanningTrigger=function(K){var k=K.getEvent();return null==K.getState()&&!mxEvent.isMouseEvent(k)&&!e.freehand.isDrawing()||mxEvent.isPopupTrigger(k)&&(null==K.getState()||mxEvent.isControlDown(k)||mxEvent.isShiftDown(k))});e.cellEditor.editPlantUmlData=function(K,k,v){var G=JSON.parse(v);k=new TextareaDialog(c,mxResources.get("plantUml")+":",G.data,function(N){null!=N&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generatePlantUmlImage(N,
+G.format,function(O,Q,S){c.spinner.stop();e.getModel().beginUpdate();try{if("txt"==G.format)e.labelChanged(K,"<pre>"+O+"</pre>"),e.updateCellSize(K,!0);else{e.setCellStyles("image",c.convertDataUri(O),[K]);var V=e.model.getGeometry(K);null!=V&&(V=V.clone(),V.width=Q,V.height=S,e.cellsResized([K],[V],!1))}e.setAttributeForCell(K,"plantUmlData",JSON.stringify({data:N,format:G.format}))}finally{e.getModel().endUpdate()}},function(O){c.handleError(O)})},null,null,400,220);c.showDialog(k.container,420,
+300,!0,!0);k.init()};e.cellEditor.editMermaidData=function(K,k,v){var G=JSON.parse(v);k=new TextareaDialog(c,mxResources.get("mermaid")+":",G.data,function(N){null!=N&&c.spinner.spin(document.body,mxResources.get("inserting"))&&c.generateMermaidImage(N,G.config,function(O,Q,S){c.spinner.stop();e.getModel().beginUpdate();try{e.setCellStyles("image",O,[K]);var V=e.model.getGeometry(K);null!=V&&(V=V.clone(),V.width=Math.max(V.width,Q),V.height=Math.max(V.height,S),e.cellsResized([K],[V],!1));e.setAttributeForCell(K,
+"mermaidData",JSON.stringify({data:N,config:G.config},null,2))}finally{e.getModel().endUpdate()}},function(O){c.handleError(O)})},null,null,400,220);c.showDialog(k.container,420,300,!0,!0);k.init()};var l=e.cellEditor.startEditing;e.cellEditor.startEditing=function(K,k){try{var v=this.graph.getAttributeForCell(K,"plantUmlData");if(null!=v)this.editPlantUmlData(K,k,v);else if(v=this.graph.getAttributeForCell(K,"mermaidData"),null!=v&&window.isMermaidEnabled)this.editMermaidData(K,k,v);else{var G=e.getCellStyle(K);
+"1"==mxUtils.getValue(G,"metaEdit","0")?c.showDataDialog(K):l.apply(this,arguments)}}catch(N){c.handleError(N)}};e.getLinkTitle=function(K){return c.getLinkTitle(K)};e.customLinkClicked=function(K,k){var v=!1;try{var G=this.getGraphBounds();c.handleCustomLink(K,k);v=!0;c.chromelessResize&&!G.equals(this.getGraphBounds())&&(c.chromelessResize(),this.scrollCellToVisible(k))}catch(N){c.handleError(N)}return v};var p=e.parseBackgroundImage;e.parseBackgroundImage=function(K){var k=p.apply(this,arguments);
null!=k&&null!=k.src&&Graph.isPageLink(k.src)&&(k={originalSrc:k.src});return k};var u=e.setBackgroundImage;e.setBackgroundImage=function(K){null!=K&&null!=K.originalSrc&&(K=c.createImageForPageLink(K.originalSrc,c.currentPage,this));u.apply(this,arguments)};this.editor.addListener("pageRenamed",mxUtils.bind(this,function(){e.refreshBackgroundImage()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(){e.refreshBackgroundImage()}));this.editor.addListener("pagesPatched",mxUtils.bind(this,
-function(K,k){K=null!=e.backgroundImage?e.backgroundImage.originalSrc:null;if(null!=K){var y=K.indexOf(",");if(0<y)for(K=K.substring(y+1),k=k.getProperty("patches"),y=0;y<k.length;y++)if(null!=k[y][EditorUi.DIFF_UPDATE]&&null!=k[y][EditorUi.DIFF_UPDATE][K]||null!=k[y][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(k[y][EditorUi.DIFF_REMOVE],K)){e.refreshBackgroundImage();break}}}));var z=e.getBackgroundImageObject;e.getBackgroundImageObject=function(K,k){var y=z.apply(this,arguments);null!=y&&null!=y.originalSrc&&
-(y=k?c.createImageForPageLink(y.originalSrc,null,null,!0):{src:y.originalSrc});return y};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 D=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(K){K=null!=K?K:"";"1"==
-urlParams.dev&&(K+=(0<K.length?"&":"?")+"dev=1");return D.apply(this,arguments)};var C=e.addClickHandler;e.addClickHandler=function(K,k,y){var F=k;k=function(M,P,R){if(null==P){var T=mxEvent.getSource(M);"a"==T.nodeName.toLowerCase()&&(P=T.getAttribute("href"))}null!=P&&e.isCustomLink(P)&&(mxEvent.isTouchEvent(M)||!mxEvent.isPopupTrigger(M))&&e.customLinkClicked(P,R)&&mxEvent.consume(M);null!=F&&F(M,P,R)};C.call(this,K,k,y)};x.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(e.view.canvas.ownerSVGElement,
-null,!0);if(null!=this.menus){var A=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(K,k,y){e.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(K,["zoomIn","zoomOut","-"],null,y);A.apply(this,arguments);e.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(K,["-","addToScratchpad"],null,y);e.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(K,["-","exitGroup","home"],null,y)};var Q=Menus.prototype.addPopupMenuEditItems;
-this.menus.addPopupMenuEditItems=function(K,k,y){if(c.editor.graph.isSelectionEmpty())Q.apply(this,arguments),c.menus.addMenuItems(K,["copyAsImage"],null,y);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(K,k,y):this.addPopupMenuArrangeItems(K,k,y),this.addMenuItems(K,"- cut copy copyAsImage duplicate -".split(" "),null,y),this.isShowCellEditItems()||this.addPopupDeleteItem(K,k,y),this.addMenuItems(K,["lockUnlock","-"],null,y),!this.isShowStyleItems()){if(1==e.getSelectionCount()&&!e.isCellLocked(k)&&
-e.isCellEditable(k)&&(this.addSubmenu("editCell",K,null,mxResources.get("edit")),K.addSeparator(),e.getModel().isEdge(k))){this.addSubmenu("line",K);var F=e.getModel().getGeometry(k);null!=F&&null!=F.points&&0<F.points.length&&this.addMenuItems(K,["clearWaypoints"],null,y)}1==e.getSelectionCount()&&this.addMenuItems(K,["enterGroup"],null,y);F=c.getSelectionState();null!=F.mergeCell?this.addMenuItem(K,"mergeCells"):(1<F.style.colspan||1<F.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;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}this.dependsOnLanguage(mxUtils.bind(this,function(){this.defaultFilename=mxResources.get("untitledDiagram");this.defaultLibraryName=mxResources.get("untitledLibrary")}));var S=e.getExportVariables;e.getExportVariables=
-function(){var K=S.apply(this,arguments),k=c.getCurrentFile();null!=k&&(K.filename=k.getTitle());K.pagecount=null!=c.pages?c.pages.length:1;K.page=null!=c.currentPage?c.currentPage.getName():"";K.pagenumber=null!=c.pages&&null!=c.currentPage?mxUtils.indexOf(c.pages,c.currentPage)+1:1;return K};var U=e.getGlobalVariable;e.getGlobalVariable=function(K){var k=c.getCurrentFile();return"filename"==K&&null!=k?k.getTitle():"page"==K&&null!=c.currentPage?c.currentPage.getName():"pagenumber"==K?null!=c.currentPage&&
-null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1:"pagecount"==K?null!=c.pages?c.pages.length:1:U.apply(this,arguments)};var O=null,p=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var K=this.getCurrentFile(),k=null!=K&&null!=K.getTitle()?K.getTitle():this.defaultFilename;O!=k&&K==p&&(e.invalidateDescendantsWithPlaceholders(e.model.getRoot()),e.view.validate());O=k;p=K}));var q=e.labelLinkClicked;e.labelLinkClicked=function(K,k,y){var F=k.getAttribute("href");if(null==
-F||!e.isCustomLink(F)||!mxEvent.isTouchEvent(y)&&mxEvent.isPopupTrigger(y))q.apply(this,arguments);else{if(!e.isEnabled()||null!=K&&e.isCellLocked(K.cell))e.customLinkClicked(F),e.getRubberband().reset();mxEvent.consume(y)}};this.editor.getOrCreateFilename=function(){var K=c.defaultFilename,k=c.getCurrentFile();null!=k&&(K=null!=k.getTitle()?k.getTitle():K);return K};var G=this.actions.get("print");G.setEnabled(!mxClient.IS_IOS||!navigator.standalone);G.visible=G.isEnabled();if(!this.editor.chromeless||
+function(K,k){K=null!=e.backgroundImage?e.backgroundImage.originalSrc:null;if(null!=K){var v=K.indexOf(",");if(0<v)for(K=K.substring(v+1),k=k.getProperty("patches"),v=0;v<k.length;v++)if(null!=k[v][EditorUi.DIFF_UPDATE]&&null!=k[v][EditorUi.DIFF_UPDATE][K]||null!=k[v][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(k[v][EditorUi.DIFF_REMOVE],K)){e.refreshBackgroundImage();break}}}));var z=e.getBackgroundImageObject;e.getBackgroundImageObject=function(K,k){var v=z.apply(this,arguments);null!=v&&null!=v.originalSrc&&
+(v=k?c.createImageForPageLink(v.originalSrc,null,null,!0):{src:v.originalSrc});return v};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 E=c.editor.getEditBlankUrl;this.editor.getEditBlankUrl=function(K){K=null!=K?K:"";"1"==
+urlParams.dev&&(K+=(0<K.length?"&":"?")+"dev=1");return E.apply(this,arguments)};var D=e.addClickHandler;e.addClickHandler=function(K,k,v){var G=k;k=function(N,O,Q){if(null==O){var S=mxEvent.getSource(N);"a"==S.nodeName.toLowerCase()&&(O=S.getAttribute("href"))}null!=O&&e.isCustomLink(O)&&(mxEvent.isTouchEvent(N)||!mxEvent.isPopupTrigger(N))&&e.customLinkClicked(O,Q)&&mxEvent.consume(N);null!=G&&G(N,O,Q)};D.call(this,K,k,v)};x.apply(this,arguments);mxClient.IS_SVG&&this.editor.graph.addSvgShadow(e.view.canvas.ownerSVGElement,
+null,!0);if(null!=this.menus){var A=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(K,k,v){e.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(K,["zoomIn","zoomOut","-"],null,v);A.apply(this,arguments);e.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(K,["-","addToScratchpad"],null,v);e.isSelectionEmpty()&&!this.isShowStyleItems()&&this.addMenuItems(K,["-","exitGroup","home"],null,v)};var P=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=
+function(K,k,v){if(c.editor.graph.isSelectionEmpty())P.apply(this,arguments),c.menus.addMenuItems(K,["copyAsImage"],null,v);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(K,k,v):this.addPopupMenuArrangeItems(K,k,v),this.addMenuItems(K,"- cut copy copyAsImage duplicate -".split(" "),null,v),this.isShowCellEditItems()||this.addPopupDeleteItem(K,k,v),this.addMenuItems(K,["lockUnlock","-"],null,v),!this.isShowStyleItems()){if(1==e.getSelectionCount()&&!e.isCellLocked(k)&&e.isCellEditable(k)&&
+(this.addSubmenu("editCell",K,null,mxResources.get("edit")),K.addSeparator(),e.getModel().isEdge(k))){this.addSubmenu("line",K);var G=e.getModel().getGeometry(k);null!=G&&null!=G.points&&0<G.points.length&&this.addMenuItems(K,["clearWaypoints"],null,v)}1==e.getSelectionCount()&&this.addMenuItems(K,["enterGroup"],null,v);G=c.getSelectionState();null!=G.mergeCell?this.addMenuItem(K,"mergeCells"):(1<G.style.colspan||1<G.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;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}this.dependsOnLanguage(mxUtils.bind(this,function(){this.defaultFilename=mxResources.get("untitledDiagram");this.defaultLibraryName=mxResources.get("untitledLibrary")}));var R=e.getExportVariables;e.getExportVariables=
+function(){var K=R.apply(this,arguments),k=c.getCurrentFile();null!=k&&(K.filename=k.getTitle());K.pagecount=null!=c.pages?c.pages.length:1;K.page=null!=c.currentPage?c.currentPage.getName():"";K.pagenumber=null!=c.pages&&null!=c.currentPage?mxUtils.indexOf(c.pages,c.currentPage)+1:1;return K};var T=e.getGlobalVariable;e.getGlobalVariable=function(K){var k=c.getCurrentFile();return"filename"==K&&null!=k?k.getTitle():"page"==K&&null!=c.currentPage?c.currentPage.getName():"pagenumber"==K?null!=c.currentPage&&
+null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1:"pagecount"==K?null!=c.pages?c.pages.length:1:T.apply(this,arguments)};var L=null,U=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var K=this.getCurrentFile(),k=null!=K&&null!=K.getTitle()?K.getTitle():this.defaultFilename;L!=k&&K==U&&(e.invalidateDescendantsWithPlaceholders(e.model.getRoot()),e.view.validate());L=k;U=K}));var n=e.labelLinkClicked;e.labelLinkClicked=function(K,k,v){var G=k.getAttribute("href");if(null==
+G||!e.isCustomLink(G)||!mxEvent.isTouchEvent(v)&&mxEvent.isPopupTrigger(v))n.apply(this,arguments);else{if(!e.isEnabled()||null!=K&&e.isCellLocked(K.cell))e.customLinkClicked(G),e.getRubberband().reset();mxEvent.consume(v)}};this.editor.getOrCreateFilename=function(){var K=c.defaultFilename,k=c.getCurrentFile();null!=k&&(K=null!=k.getTitle()?k.getTitle():K);return K};var t=this.actions.get("print");t.setEnabled(!mxClient.IS_IOS||!navigator.standalone);t.visible=t.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&&(document.body.classList.add("geEmbedInline"),e.addListener(mxEvent.ESCAPE,function(K,k){null!=k&&e.isEnabled()&&!e.isEditing()&&null!=k.getProperty("event")&&c.actions.get("exit").funct()})),this.installImagePasteHandler(),
-this.installNativeClipboardHandler();this.spinner=null!=this.spinner?this.spinner:this.createSpinner(null,null,24);Graph.fileSupport&&e.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(K){var k=e.cellEditor.text2,y=null;null!=k&&(mxEvent.addListener(k,"dragleave",function(F){null!=y&&(y.parentNode.removeChild(y),y=null);F.stopPropagation();F.preventDefault()}),mxEvent.addListener(k,"dragover",mxUtils.bind(this,function(F){null==y&&(!mxClient.IS_IE||10<document.documentMode)&&(y=this.highlightElement(k));
-F.stopPropagation();F.preventDefault()})),mxEvent.addListener(k,"drop",mxUtils.bind(this,function(F){null!=y&&(y.parentNode.removeChild(y),y=null);if(0<F.dataTransfer.files.length)this.importFiles(F.dataTransfer.files,0,0,this.maxImageSize,function(P,R,T,V,W,X){e.insertImage(P,W,X)},function(){},function(P){return"image/"==P.type.substring(0,6)},function(P){for(var R=0;R<P.length;R++)P[R]()},mxEvent.isControlDown(F));else if(0<=mxUtils.indexOf(F.dataTransfer.types,"text/uri-list")){var M=F.dataTransfer.getData("text/uri-list");
-/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(M)?this.loadImage(decodeURIComponent(M),mxUtils.bind(this,function(P){var R=Math.max(1,P.width);P=Math.max(1,P.height);var T=this.maxImageSize;T=Math.min(1,Math.min(T/Math.max(1,R)),T/Math.max(1,P));e.insertImage(decodeURIComponent(M),R*T,P*T)})):document.execCommand("insertHTML",!1,F.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(F.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,F.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(F.dataTransfer.types,
-"text/plain")&&document.execCommand("insertHTML",!1,F.dataTransfer.getData("text/plain"));F.stopPropagation();F.preventDefault()})))}));if(Editor.isSettingsEnabled()){G=this.editor.graph.view;var E=mxSettings.getUnit();G.setUnit(E);Editor.pageSizeUnit=E==mxConstants.METERS?mxConstants.MILLIMETERS:E;G.addListener("unitChanged",function(K,k){K=k.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,G.unit);this.refresh()}if("1"==urlParams.styledev){G=document.getElementById("geFooter");null!=G&&(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)})),G.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(K,k){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 H=this.isSelectionAllowed;this.isSelectionAllowed=function(K){return mxEvent.getSource(K)==this.styleInput?!0:H.apply(this,arguments)}}G=document.getElementById("geInfo");null!=G&&G.parentNode.removeChild(G);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var L=null;mxEvent.addListener(e.container,"dragleave",function(K){e.isEnabled()&&(null!=L&&(L.parentNode.removeChild(L),L=null),K.stopPropagation(),K.preventDefault())});
-mxEvent.addListener(e.container,"dragover",mxUtils.bind(this,function(K){null==L&&(!mxClient.IS_IE||10<document.documentMode)&&(L=this.highlightElement(e.container));null!=this.sidebar&&this.sidebar.hideTooltip();K.stopPropagation();K.preventDefault()}));mxEvent.addListener(e.container,"drop",mxUtils.bind(this,function(K){null!=L&&(L.parentNode.removeChild(L),L=null);if(e.isEnabled()){var k=mxUtils.convertPoint(e.container,mxEvent.getClientX(K),mxEvent.getClientY(K)),y=K.dataTransfer.files,F=e.view.translate,
-M=e.view.scale,P=k.x/M-F.x,R=k.y/M-F.y;if(0<y.length)"1"!=urlParams.embed&&mxEvent.isShiftDown(K)?(this.isBlankFile()&&!this.canUndo()&&null!=this.getCurrentFile()&&this.fileLoaded(null),this.openFiles(y,!0)):(mxEvent.isAltDown(K)&&(R=P=null),this.importFiles(y,P,R,this.maxImageSize,null,null,null,null,mxEvent.isControlDown(K),null,null,mxEvent.isShiftDown(K),K));else{mxEvent.isAltDown(K)&&(R=P=0);var T=0<=mxUtils.indexOf(K.dataTransfer.types,"text/uri-list")?K.dataTransfer.getData("text/uri-list"):
-null;k=this.extractGraphModelFromEvent(K,null!=this.pages);if(null!=k)e.setSelectionCells(this.importXml(k,P,R,!0));else if(0<=mxUtils.indexOf(K.dataTransfer.types,"text/html")){var V=K.dataTransfer.getData("text/html");k=document.createElement("div");k.innerHTML=Graph.sanitizeHtml(V);var W=null;y=k.getElementsByTagName("img");null!=y&&1==y.length?(V=y[0].getAttribute("src"),null==V&&(V=y[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(V)||(W=!0)):(y=k.getElementsByTagName("a"),
-null!=y&&1==y.length?V=y[0].getAttribute("href"):(k=k.getElementsByTagName("pre"),null!=k&&1==k.length&&(V=mxUtils.getTextContent(k[0]))));var X=!0,Y=mxUtils.bind(this,function(){e.setSelectionCells(this.insertTextAt(V,P,R,!0,W,null,X,mxEvent.isControlDown(K)))});W&&null!=V&&V.length>this.resampleThreshold?this.confirmImageResize(function(Z){X=Z;Y()},mxEvent.isControlDown(K)):Y()}else null!=T&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(T)?this.loadImage(decodeURIComponent(T),mxUtils.bind(this,function(Z){var da=
-Math.max(1,Z.width);Z=Math.max(1,Z.height);var ea=this.maxImageSize;ea=Math.min(1,Math.min(ea/Math.max(1,da)),ea/Math.max(1,Z));e.setSelectionCell(e.insertVertex(null,null,"",P,R,da*ea,Z*ea,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+T+";"))}),mxUtils.bind(this,function(Z){e.setSelectionCells(this.insertTextAt(T,P,R,!0))})):0<=mxUtils.indexOf(K.dataTransfer.types,"text/plain")&&e.setSelectionCells(this.insertTextAt(K.dataTransfer.getData("text/plain"),
-P,R,!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(!0)}));this.addListener("realtimeStateChanged",mxUtils.bind(this,function(){this.updateButtonContainer()}));this.addListener("darkModeChanged",function(){mxClient.IS_SF&&e.view.validateBackground()});
-e.addListener("enabledChanged",mxUtils.bind(this,function(){e.isEnabled()||this.hideShapePicker();this.refresh()}));c=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==c.embedViewport)mxUtils.fit(this.div);else{var K=parseInt(this.div.offsetLeft),k=parseInt(this.div.offsetWidth),y=c.embedViewport.x+c.embedViewport.width,F=parseInt(this.div.offsetTop),M=parseInt(this.div.offsetHeight),P=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(K,
-y-k))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(F,P-M))+"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(G=Editor.currentTheme,"simple"==G||"sketch"==G)this.doSetCurrentTheme(G,!0),"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(window.innerWidth||document.documentElement.clientWidth||
-document.body.clientWidth)<Editor.smallScreenWidth&&this.toggleFormatPanel(!1),this.fireEvent(new mxEventObject("themeInitialized"));G=!1;if(null!=urlParams.dark)G=urlParams.dark;else if(!this.editor.chromeless||this.editor.editable)G="dark"==Editor.currentTheme,!Editor.isSettingsEnabled()||"1"==urlParams.embed||G&&"auto"!=mxSettings.settings.darkMode||(G=mxSettings.settings.darkMode);"auto"==G&&this.isAutoDarkModeSupported()&&(G=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===
-typeof G?"1"==G:G);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);Editor.isSettingsEnabled()&&
+this.installNativeClipboardHandler();this.spinner=null!=this.spinner?this.spinner:this.createSpinner(null,null,24);Graph.fileSupport&&e.addListener(mxEvent.EDITING_STARTED,mxUtils.bind(this,function(K){var k=e.cellEditor.text2,v=null;null!=k&&(mxEvent.addListener(k,"dragleave",function(G){null!=v&&(v.parentNode.removeChild(v),v=null);G.stopPropagation();G.preventDefault()}),mxEvent.addListener(k,"dragover",mxUtils.bind(this,function(G){null==v&&(!mxClient.IS_IE||10<document.documentMode)&&(v=this.highlightElement(k));
+G.stopPropagation();G.preventDefault()})),mxEvent.addListener(k,"drop",mxUtils.bind(this,function(G){null!=v&&(v.parentNode.removeChild(v),v=null);if(0<G.dataTransfer.files.length)this.importFiles(G.dataTransfer.files,0,0,this.maxImageSize,function(O,Q,S,V,W,X){e.insertImage(O,W,X)},function(){},function(O){return"image/"==O.type.substring(0,6)},function(O){for(var Q=0;Q<O.length;Q++)O[Q]()},mxEvent.isControlDown(G));else if(0<=mxUtils.indexOf(G.dataTransfer.types,"text/uri-list")){var N=G.dataTransfer.getData("text/uri-list");
+/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(N)?this.loadImage(decodeURIComponent(N),mxUtils.bind(this,function(O){var Q=Math.max(1,O.width);O=Math.max(1,O.height);var S=this.maxImageSize;S=Math.min(1,Math.min(S/Math.max(1,Q)),S/Math.max(1,O));e.insertImage(decodeURIComponent(N),Q*S,O*S)})):document.execCommand("insertHTML",!1,G.dataTransfer.getData("text/plain"))}else 0<=mxUtils.indexOf(G.dataTransfer.types,"text/html")?document.execCommand("insertHTML",!1,G.dataTransfer.getData("text/html")):0<=mxUtils.indexOf(G.dataTransfer.types,
+"text/plain")&&document.execCommand("insertHTML",!1,G.dataTransfer.getData("text/plain"));G.stopPropagation();G.preventDefault()})))}));if(Editor.isSettingsEnabled()){t=this.editor.graph.view;var B=mxSettings.getUnit();t.setUnit(B);Editor.pageSizeUnit=B==mxConstants.METERS?mxConstants.MILLIMETERS:B;t.addListener("unitChanged",function(K,k){K=k.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,t.unit);this.refresh()}if("1"==urlParams.styledev){t=document.getElementById("geFooter");null!=t&&(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)})),t.appendChild(this.styleInput),this.editor.graph.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(K,k){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 F=this.isSelectionAllowed;this.isSelectionAllowed=function(K){return mxEvent.getSource(K)==this.styleInput?!0:F.apply(this,arguments)}}t=document.getElementById("geInfo");null!=t&&t.parentNode.removeChild(t);if(Graph.fileSupport&&(!this.editor.chromeless||this.editor.editable)){var J=null;mxEvent.addListener(e.container,"dragleave",function(K){e.isEnabled()&&(null!=J&&(J.parentNode.removeChild(J),J=null),K.stopPropagation(),K.preventDefault())});
+mxEvent.addListener(e.container,"dragover",mxUtils.bind(this,function(K){null==J&&(!mxClient.IS_IE||10<document.documentMode)&&(J=this.highlightElement(e.container));null!=this.sidebar&&this.sidebar.hideTooltip();K.stopPropagation();K.preventDefault()}));mxEvent.addListener(e.container,"drop",mxUtils.bind(this,function(K){null!=J&&(J.parentNode.removeChild(J),J=null);if(e.isEnabled()){var k=mxUtils.convertPoint(e.container,mxEvent.getClientX(K),mxEvent.getClientY(K)),v=K.dataTransfer.files,G=e.view.translate,
+N=e.view.scale,O=k.x/N-G.x,Q=k.y/N-G.y;if(0<v.length)"1"!=urlParams.embed&&mxEvent.isShiftDown(K)?(this.isBlankFile()&&!this.canUndo()&&null!=this.getCurrentFile()&&this.fileLoaded(null),this.openFiles(v,!0)):(mxEvent.isAltDown(K)&&(Q=O=null),this.importFiles(v,O,Q,this.maxImageSize,null,null,null,null,mxEvent.isControlDown(K),null,null,mxEvent.isShiftDown(K),K));else{mxEvent.isAltDown(K)&&(Q=O=0);var S=0<=mxUtils.indexOf(K.dataTransfer.types,"text/uri-list")?K.dataTransfer.getData("text/uri-list"):
+null;k=this.extractGraphModelFromEvent(K,null!=this.pages);if(null!=k)e.setSelectionCells(this.importXml(k,O,Q,!0));else if(0<=mxUtils.indexOf(K.dataTransfer.types,"text/html")){var V=K.dataTransfer.getData("text/html");k=document.createElement("div");k.innerHTML=Graph.sanitizeHtml(V);var W=null;v=k.getElementsByTagName("img");null!=v&&1==v.length?(V=v[0].getAttribute("src"),null==V&&(V=v[0].getAttribute("srcset")),/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(V)||(W=!0)):(v=k.getElementsByTagName("a"),
+null!=v&&1==v.length?V=v[0].getAttribute("href"):(k=k.getElementsByTagName("pre"),null!=k&&1==k.length&&(V=mxUtils.getTextContent(k[0]))));var X=!0,Z=mxUtils.bind(this,function(){e.setSelectionCells(this.insertTextAt(V,O,Q,!0,W,null,X,mxEvent.isControlDown(K)))});W&&null!=V&&V.length>this.resampleThreshold?this.confirmImageResize(function(Y){X=Y;Z()},mxEvent.isControlDown(K)):Z()}else null!=S&&/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(S)?this.loadImage(decodeURIComponent(S),mxUtils.bind(this,function(Y){var ea=
+Math.max(1,Y.width);Y=Math.max(1,Y.height);var ca=this.maxImageSize;ca=Math.min(1,Math.min(ca/Math.max(1,ea)),ca/Math.max(1,Y));e.setSelectionCell(e.insertVertex(null,null,"",O,Q,ea*ca,Y*ca,"shape=image;verticalLabelPosition=bottom;labelBackgroundColor=default;verticalAlign=top;aspect=fixed;imageAspect=0;image="+S+";"))}),mxUtils.bind(this,function(Y){e.setSelectionCells(this.insertTextAt(S,O,Q,!0))})):0<=mxUtils.indexOf(K.dataTransfer.types,"text/plain")&&e.setSelectionCells(this.insertTextAt(K.dataTransfer.getData("text/plain"),
+O,Q,!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(!0)}));this.addListener("realtimeStateChanged",mxUtils.bind(this,function(){this.updateButtonContainer()}));this.addListener("darkModeChanged",function(){mxClient.IS_SF&&e.view.validateBackground()});
+e.addListener("enabledChanged",mxUtils.bind(this,function(){e.isEnabled()||this.hideShapePicker();this.refresh()}));c=this;mxWindow.prototype.fit=function(){if(Editor.inlineFullscreen||null==c.embedViewport)mxUtils.fit(this.div);else{var K=parseInt(this.div.offsetLeft),k=parseInt(this.div.offsetWidth),v=c.embedViewport.x+c.embedViewport.width,G=parseInt(this.div.offsetTop),N=parseInt(this.div.offsetHeight),O=c.embedViewport.y+c.embedViewport.height;this.div.style.left=Math.max(c.embedViewport.x,Math.min(K,
+v-k))+"px";this.div.style.top=Math.max(c.embedViewport.y,Math.min(G,O-N))+"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(t=Editor.currentTheme,"simple"==t||"sketch"==t)this.doSetCurrentTheme(t,!0),"1"==urlParams.embedInline?this.initializeInlineEmbedMode():(window.innerWidth||document.documentElement.clientWidth||
+document.body.clientWidth)<Editor.smallScreenWidth&&this.toggleFormatPanel(!1),this.fireEvent(new mxEventObject("themeInitialized"));t=!1;if(null!=urlParams.dark)t=urlParams.dark;else if(!this.editor.chromeless||this.editor.editable)t="dark"==Editor.currentTheme,!Editor.isSettingsEnabled()||"1"==urlParams.embed||t&&"auto"!=mxSettings.settings.darkMode||(t=mxSettings.settings.darkMode);"auto"==t&&this.isAutoDarkModeSupported()&&(t=window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode("string"===
+typeof t?"1"==t:t);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);Editor.isSettingsEnabled()&&
(null!=mxSettings.settings.pages&&this.setTabContainerVisible(mxSettings.settings.pages),null!=mxSettings.settings.compactMode&&this.isDefaultTheme(Editor.currentTheme)&&this.setCompactMode(mxSettings.settings.compactMode));this.installSettings();this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(K,k){e.enableFlowAnimation=Editor.enableAnimations;e.refresh()}));e.enableFlowAnimation=Editor.enableAnimations;screen.width<=Editor.smallScreenWidth&&(this.formatWidth=0);"1"==urlParams.prefetchFonts&&
-c.editor.loadFonts();"atlas"==Editor.currentTheme&&document.body.classList.add("geAtlas")};var v=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,e=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=e&&c<e?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<e&&c>=e&&(this.isFormatPanelVisible()||
-this.toggleFormatPanel(!0));this.lastWindowWidth=c}v.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var c=this.sketchFooterMenuElt,e=this.sketchMainMenuElt,g=this.sketchPickerMenuElt,l=this.editor.graph;g.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,mxUtils.bind(this,function(A){mxEvent.getSource(A)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(A),mxEvent.getClientY(A)),this.sendEmbeddedSvgExport())}));
-document.body.style.cursor="text";var n=document.createElement("div");n.style.position="absolute";n.style.width="10px";n.style.height="10px";n.style.borderRadius="5px";n.style.border="1px solid gray";n.style.background="#ffffff";n.style.cursor="row-resize";this.diagramContainer.parentNode.appendChild(n);this.bottomResizer=n;var u=null,z=null,D=null,C=null;mxEvent.addGestureListeners(n,mxUtils.bind(this,function(A){C=parseInt(this.diagramContainer.style.height);z=mxEvent.getClientY(A);l.popupMenuHandler.hideMenu();
-mxEvent.consume(A)}));n=n.cloneNode(!1);n.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(n);this.rightResizer=n;mxEvent.addGestureListeners(n,mxUtils.bind(this,function(A){D=parseInt(this.diagramContainer.style.width);u=mxEvent.getClientX(A);l.popupMenuHandler.hideMenu();mxEvent.consume(A)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(A){var Q=!1;null!=u&&(this.diagramContainer.style.width=Math.max(20,D+mxEvent.getClientX(A)-u)+"px",Q=!0);null!=
-z&&(this.diagramContainer.style.height=Math.max(20,C+mxEvent.getClientY(A)-z)+"px",Q=!0);Q&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),this.refresh())}),function(A){null==u&&null==z||mxEvent.consume(A);z=u=null});document.body.style.backgroundColor="transparent";this.diagramContainer.style.borderRadius="4px";this.bottomResizer.style.visibility="hidden";
+c.editor.loadFonts();"atlas"==Editor.currentTheme&&document.body.classList.add("geAtlas")};var C=EditorUi.prototype.windowResized;EditorUi.prototype.windowResized=function(){if("simple"==Editor.currentTheme){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,e=Editor.smallScreenWidth;null!=this.lastWindowWidth&&this.lastWindowWidth>=e&&c<e?this.isFormatPanelVisible()&&this.toggleFormatPanel(!1):null!=this.lastWindowWidth&&this.lastWindowWidth<e&&c>=e&&(this.isFormatPanelVisible()||
+this.toggleFormatPanel(!0));this.lastWindowWidth=c}C.apply(this,arguments)};EditorUi.prototype.initializeInlineEmbedMode=function(){var c=this.sketchFooterMenuElt,e=this.sketchMainMenuElt,g=this.sketchPickerMenuElt,l=this.editor.graph;g.style.transform="";mxEvent.addGestureListeners(this.diagramContainer.parentNode,mxUtils.bind(this,function(A){mxEvent.getSource(A)==this.diagramContainer.parentNode&&(this.embedExitPoint=new mxPoint(mxEvent.getClientX(A),mxEvent.getClientY(A)),this.sendEmbeddedSvgExport())}));
+document.body.style.cursor="text";var p=document.createElement("div");p.style.position="absolute";p.style.width="10px";p.style.height="10px";p.style.borderRadius="5px";p.style.border="1px solid gray";p.style.background="#ffffff";p.style.cursor="row-resize";this.diagramContainer.parentNode.appendChild(p);this.bottomResizer=p;var u=null,z=null,E=null,D=null;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(A){D=parseInt(this.diagramContainer.style.height);z=mxEvent.getClientY(A);l.popupMenuHandler.hideMenu();
+mxEvent.consume(A)}));p=p.cloneNode(!1);p.style.cursor="col-resize";this.diagramContainer.parentNode.appendChild(p);this.rightResizer=p;mxEvent.addGestureListeners(p,mxUtils.bind(this,function(A){E=parseInt(this.diagramContainer.style.width);u=mxEvent.getClientX(A);l.popupMenuHandler.hideMenu();mxEvent.consume(A)}));mxEvent.addGestureListeners(document.body,null,mxUtils.bind(this,function(A){var P=!1;null!=u&&(this.diagramContainer.style.width=Math.max(20,E+mxEvent.getClientX(A)-u)+"px",P=!0);null!=
+z&&(this.diagramContainer.style.height=Math.max(20,D+mxEvent.getClientY(A)-z)+"px",P=!0);P&&((window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:Editor.inlineFullscreen,rect:this.diagramContainer.getBoundingClientRect()}),"*"),this.inlineSizeChanged(),this.refresh())}),function(A){null==u&&null==z||mxEvent.consume(A);z=u=null});document.body.style.backgroundColor="transparent";this.diagramContainer.style.borderRadius="4px";this.bottomResizer.style.visibility="hidden";
this.rightResizer.style.visibility="hidden";this.sketchMenubarElt.style.display="none";e.style.visibility="hidden";c.style.visibility="hidden";g.style.display="none";this.addListener("editInlineStart",mxUtils.bind(this,function(A){this.inlineSizeChanged();this.fitWindows()}));this.addListener("editInlineStop",mxUtils.bind(this,function(A){this.diagramContainer.style.width="10px";this.diagramContainer.style.height="10px";this.diagramContainer.style.border="";this.bottomResizer.style.visibility="hidden";
-this.rightResizer.style.visibility="hidden";e.style.visibility="hidden";c.style.visibility="hidden";g.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()};EditorUi.prototype.installImagePasteHandler=function(){if(!mxClient.IS_IE){var c=this.editor.graph;c.container.addEventListener("paste",mxUtils.bind(this,function(e){if(!mxEvent.isConsumed(e))try{for(var g=e.clipboardData||e.originalEvent.clipboardData,l=!1,n=0;n<g.types.length;n++)if("text/"===g.types[n].substring(0,
-5)){l=!0;break}if(!l){var u=g.items;for(index in u){var z=u[index];if("file"===z.kind){if(c.isEditing())this.importFiles([z.getAsFile()],0,0,this.maxImageSize,function(C,A,Q,S,U,O){c.insertImage(C,U,O)},function(){},function(C){return"image/"==C.type.substring(0,6)},function(C){for(var A=0;A<C.length;A++)C[A]()});else{var D=this.editor.graph.getInsertPoint();this.importFiles([z.getAsFile()],D.x,D.y,this.maxImageSize);mxEvent.consume(e)}break}}}}catch(C){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=
+this.rightResizer.style.visibility="hidden";e.style.visibility="hidden";c.style.visibility="hidden";g.style.display="none"}));this.windowResized=mxUtils.bind(this,function(){});this.inlineSizeChanged()};EditorUi.prototype.installImagePasteHandler=function(){if(!mxClient.IS_IE){var c=this.editor.graph;c.container.addEventListener("paste",mxUtils.bind(this,function(e){if(!mxEvent.isConsumed(e))try{for(var g=e.clipboardData||e.originalEvent.clipboardData,l=!1,p=0;p<g.types.length;p++)if("text/"===g.types[p].substring(0,
+5)){l=!0;break}if(!l){var u=g.items;for(index in u){var z=u[index];if("file"===z.kind){if(c.isEditing())this.importFiles([z.getAsFile()],0,0,this.maxImageSize,function(D,A,P,R,T,L){c.insertImage(D,T,L)},function(){},function(D){return"image/"==D.type.substring(0,6)},function(D){for(var A=0;A<D.length;A++)D[A]()});else{var E=this.editor.graph.getInsertPoint();this.importFiles([z.getAsFile()],E.x,E.y,this.maxImageSize);mxEvent.consume(e)}break}}}}catch(D){}}),!1)}};EditorUi.prototype.installNativeClipboardHandler=
function(){function c(){window.setTimeout(function(){g.innerHTML="&nbsp;";g.focus();document.execCommand("selectAll",!1,null)},0)}var e=this.editor.graph,g=document.createElement("div");g.setAttribute("autocomplete","off");g.setAttribute("autocorrect","off");g.setAttribute("autocapitalize","off");g.setAttribute("spellcheck","false");g.style.textRendering="optimizeSpeed";g.style.fontFamily="monospace";g.style.wordBreak="break-all";g.style.background="transparent";g.style.color="transparent";g.style.position=
"absolute";g.style.whiteSpace="nowrap";g.style.overflow="hidden";g.style.display="block";g.style.fontSize="1";g.style.zIndex="-1";g.style.resize="none";g.style.outline="none";g.style.width="1px";g.style.height="1px";mxUtils.setOpacity(g,0);g.contentEditable=!0;g.innerHTML="&nbsp;";var l=!1;this.keyHandler.bindControlKey(88,null);this.keyHandler.bindControlKey(67,null);this.keyHandler.bindControlKey(86,null);mxEvent.addListener(document,"keydown",mxUtils.bind(this,function(u){var z=mxEvent.getSource(u);
null==e.container||!e.isEnabled()||e.isMouseDown||e.isEditing()||null!=this.dialog||"INPUT"==z.nodeName||"TEXTAREA"==z.nodeName||"true"==z.contentEditable||224!=u.keyCode&&(mxClient.IS_MAC||17!=u.keyCode)&&(!mxClient.IS_MAC||91!=u.keyCode&&93!=u.keyCode)||l||(g.style.left=e.container.scrollLeft+10+"px",g.style.top=e.container.scrollTop+10+"px",u=e.container.scrollLeft,z=e.container.scrollTop,e.container.appendChild(g),l=!0,g.focus(),document.execCommand("selectAll",!1,null),e.container.scrollLeft=
u,e.container.scrollTop=z)}));mxEvent.addListener(document,"keyup",mxUtils.bind(this,function(u){var z=u.keyCode;window.setTimeout(mxUtils.bind(this,function(){!l||224!=z&&17!=z&&91!=z&&93!=z||(l=!1,e.isEditing()||null!=this.dialog||null==e.container||e.container.focus(),g.parentNode.removeChild(g),null==this.dialog&&mxUtils.clearSelection())}),0)}));mxEvent.addListener(g,"copy",mxUtils.bind(this,function(u){if(e.isEnabled())try{mxClipboard.copy(e),this.copyCells(g),c()}catch(z){this.handleError(z)}}));
-mxEvent.addListener(g,"cut",mxUtils.bind(this,function(u){if(e.isEnabled())try{mxClipboard.copy(e),this.copyCells(g,!0),c()}catch(z){this.handleError(z)}}));mxEvent.addListener(g,"paste",mxUtils.bind(this,function(u){if(e.isEnabled()&&!e.isCellLocked(e.getDefaultParent()))try{if(g.innerHTML="&nbsp;",g.focus(),null!=u.clipboardData&&(Graph.removePasteFormatting(g.firstChild),this.pasteCells(u,g,!0,!0)),!mxEvent.isConsumed(u)){var z=e.container.scrollLeft,D=e.container.scrollTop;window.setTimeout(mxUtils.bind(this,
-function(){try{e.container.scrollLeft=z,e.container.scrollTop=D,Graph.removePasteFormatting(g.firstChild),this.pasteCells(u,g,!1,!0)}catch(C){this.handleError(C)}}),0)}}catch(C){this.handleError(C)}}),!0);var n=this.isSelectionAllowed;this.isSelectionAllowed=function(u){return mxEvent.getSource(u)==g?!0:n.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,e){mxSettings.setUi(c);(e=this.doSetCurrentTheme(c)||e)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=
+mxEvent.addListener(g,"cut",mxUtils.bind(this,function(u){if(e.isEnabled())try{mxClipboard.copy(e),this.copyCells(g,!0),c()}catch(z){this.handleError(z)}}));mxEvent.addListener(g,"paste",mxUtils.bind(this,function(u){if(e.isEnabled()&&!e.isCellLocked(e.getDefaultParent()))try{if(g.innerHTML="&nbsp;",g.focus(),null!=u.clipboardData&&(Graph.removePasteFormatting(g.firstChild),this.pasteCells(u,g,!0,!0)),!mxEvent.isConsumed(u)){var z=e.container.scrollLeft,E=e.container.scrollTop;window.setTimeout(mxUtils.bind(this,
+function(){try{e.container.scrollLeft=z,e.container.scrollTop=E,Graph.removePasteFormatting(g.firstChild),this.pasteCells(u,g,!1,!0)}catch(D){this.handleError(D)}}),0)}}catch(D){this.handleError(D)}}),!0);var p=this.isSelectionAllowed;this.isSelectionAllowed=function(u){return mxEvent.getSource(u)==g?!0:p.apply(this,arguments)}};EditorUi.prototype.setCurrentTheme=function(c,e){mxSettings.setUi(c);(e=this.doSetCurrentTheme(c)||e)||this.alert(mxResources.get("restartForChangeRequired"))};EditorUi.prototype.isDefaultTheme=
function(c){return""==c||"dark"==c||"default"==c||"kennedy"==c||null==c};EditorUi.prototype.doSetCurrentTheme=function(c,e){if(null==c||""==c)c=App.isSimpleThemePreferred()?"simple":"kennedy";var g="simple"==Editor.currentTheme&&this.isDefaultTheme(c)||this.isDefaultTheme(Editor.currentTheme)&&"simple"==c||c==Editor.currentTheme;if(g||e)e=this.saveScrollState(),this.editor.graph.stopEditing(!1),Editor.currentTheme=c,this.switchTheme(c),this.fireEvent(new mxEventObject("currentThemeChanged")),this.editor.fireEvent(new mxEventObject("statusChanged")),
this.restoreScrollState(e);return g};EditorUi.prototype.saveScrollState=function(c){var e=this.editor.graph.view.translate,g=this.diagramContainer.scrollLeft,l=this.diagramContainer.scrollTop;null!=this.embedViewport&&(Editor.inlineFullscreen?(g-=this.embedViewport.x,l-=this.embedViewport.y):(g+=this.embedViewport.x,l+=this.embedViewport.y));e={x:g,y:l,tx:e.x,ty:e.y};c&&(e.boundingRect=this.diagramContainer.getBoundingClientRect());return e};EditorUi.prototype.restoreScrollState=function(c){var e=
this.editor.graph.view.scale,g=this.editor.graph.view.translate;if(null!=c.boundingRect){var l=this.diagramContainer.getBoundingClientRect();c.x-=c.boundingRect.x-l.x;c.y-=c.boundingRect.y-l.y}this.diagramContainer.scrollLeft=c.x+(g.x-c.tx)*e;this.diagramContainer.scrollTop=c.y+(g.y-c.ty)*e};EditorUi.prototype.installStatusMinimizer=function(c){c=null!=c?c:this.statusContainer.parentNode;var e=!1;mxEvent.addListener(c,"mouseenter",mxUtils.bind(this,function(){"sketch"==Editor.currentTheme&&""!=this.editor.getStatus()&&
-(this.statusContainer.style.display="")}));mxEvent.addListener(c,"mouseleave",mxUtils.bind(this,function(){"sketch"!=Editor.currentTheme||e||(this.statusContainer.style.display="none")}));var g=mxUtils.bind(this,function(){if("sketch"==Editor.currentTheme){var l=null!=this.statusContainer.firstChild&&"function"===typeof this.statusContainer.firstChild.getAttribute?this.statusContainer.firstChild:null;e=null!=l&&null!=l.getAttribute("class");if(!e&&null!=l){l=l.getAttribute("title");var n=this.getCurrentFile();
-n=null!=n?n.savingStatusKey:DrawioFile.prototype.savingStatusKey;l==mxResources.get(n)+"..."&&(this.statusContainer.innerHTML='<div><img title="'+mxUtils.htmlEntities(mxResources.get(n))+'..."src="'+Editor.tailSpin+'"></div>',e=!0)}this.statusContainer.style.display="none";l=32>=c.clientWidth;c.style.visibility=l&&""==this.editor.getStatus()?"hidden":"";if(l||e)this.statusContainer.style.display="",e=!0}else"simple"==Editor.currentTheme?(this.statusContainer.style.display="",this.statusContainer.style.display=
+(this.statusContainer.style.display="")}));mxEvent.addListener(c,"mouseleave",mxUtils.bind(this,function(){"sketch"!=Editor.currentTheme||e||(this.statusContainer.style.display="none")}));var g=mxUtils.bind(this,function(){if("sketch"==Editor.currentTheme){var l=null!=this.statusContainer.firstChild&&"function"===typeof this.statusContainer.firstChild.getAttribute?this.statusContainer.firstChild:null;e=null!=l&&null!=l.getAttribute("class");if(!e&&null!=l){l=l.getAttribute("title");var p=this.getCurrentFile();
+p=null!=p?p.savingStatusKey:DrawioFile.prototype.savingStatusKey;l==mxResources.get(p)+"..."&&(this.statusContainer.innerHTML='<div><img title="'+mxUtils.htmlEntities(mxResources.get(p))+'..."src="'+Editor.tailSpin+'"></div>',e=!0)}this.statusContainer.style.display="none";l=32>=c.clientWidth;c.style.visibility=l&&""==this.editor.getStatus()?"hidden":"";if(l||e)this.statusContainer.style.display="",e=!0}else"simple"==Editor.currentTheme?(this.statusContainer.style.display="",this.statusContainer.style.display=
0==this.statusContainer.clientWidth?"none":""):this.statusContainer.style.display=""});this.editor.addListener("statusChanged",g);g()};EditorUi.prototype.switchTheme=function(c){this.destroyWindows(!0);this.updateDefaultStyles();this.switchThemeConstants(c);this.switchCssForTheme(c);this.createMainMenuForTheme(c);this.createFooterMenuForTheme(c);this.createPickerMenuForTheme(c);this.createMenubarForTheme(c);"sketch"==c&&(this.createFormatWindow(),this.createShapesWindow())};EditorUi.prototype.getWindows=
function(){var c=[this.sidebarWindow,this.formatWindow,this.freehandWindow];null!=this.actions&&(c=c.concat([this.actions.outlineWindow,this.actions.layersWindow]));null!=this.menus&&(c=c.concat([this.menus.tagsWindow,this.menus.findWindow,this.menus.findReplaceWindow,this.menus.commentsWindow]));return c};EditorUi.prototype.fitWindows=function(){for(var c=this.getWindows(),e=0;e<c.length;e++)null!=c[e]&&c[e].window.fit()};EditorUi.prototype.hideWindows=function(){for(var c=this.getWindows(),e=0;e<
c.length;e++)null!=c[e]&&c[e].window.setVisible(!1)};EditorUi.prototype.destroyWindows=function(c){null==this.sidebarWindow||c||(this.sidebarWindow.destroy(),this.sidebarWindow=null);null==this.formatWindow||c||(this.formatWindow.destroy(),this.formatWindow=null);null!=this.freehandWindow&&(this.freehandWindow.destroy(),this.freehandWindow=null);null!=this.actions.outlineWindow&&(this.actions.outlineWindow.destroy(),this.actions.outlineWindow=null);null!=this.actions.layersWindow&&(this.actions.layersWindow.destroy(),
@@ -13302,18 +13346,18 @@ this.menus.commentsWindow=null))};EditorUi.prototype.switchThemeConstants=functi
120;null==urlParams.grid&&(e.defaultGridEnabled=!1);null==urlParams.pv&&(e.defaultPageVisible=!1)}else Editor.fitWindowBorders=null};EditorUi.prototype.isPageMenuVisible=function(){return null!=this.pages&&("0"!=urlParams.pages||1<this.pages.length||Editor.pagesVisible)};EditorUi.prototype.switchCssForTheme=function(c){};EditorUi.prototype.createMainMenuForTheme=function(c){};EditorUi.prototype.createFooterMenuForTheme=function(c){};EditorUi.prototype.createPickerMenuForTheme=function(c){};EditorUi.prototype.getNetworkStatus=
function(){var c=null;if(this.isOffline(!0))c=mxResources.get("offline");else{var e=this.getCurrentFile();null!=e&&(e.invalidChecksum?c=mxResources.get("error")+": "+mxResources.get("checksum"):null==e.sync||e.sync.enabled&&e.sync.isRealtimeActive()||"atlassian"==this.getServiceName()?null==e.sync||e.sync.isConnected()?e.isRealtimeEnabled()&&e.isRealtimeSupported()&&1<e.getRealtimeState()&&(c=e.getRealtimeError(),c=mxResources.get("realtimeCollaboration")+": "+(null!=c&&null!=c.message?c.message:
mxResources.get("error"))):c=mxResources.get("notConnected"):c=mxResources.get("realtimeCollaboration")+": "+mxResources.get("disabled"))}return c};EditorUi.prototype.createMenubarForTheme=function(c){null!=this.statusContainer&&(this.statusContainer.style.flexGrow="",this.statusContainer.style.flexShrink="",this.statusContainer.style.width="",this.statusContainer.style.marginTop="",this.statusContainer.style.justifyContent="",this.statusContainer.style.opacity="");null!=this.userElement&&this.menubarContainer.appendChild(this.userElement);
-null!=this.buttonContainer&&null!=this.menubar&&(this.buttonContainer.style.display="",this.menubar.container.appendChild(this.buttonContainer))};EditorUi.prototype.createMenu=function(c,e,g,l){g=null!=g?g:"geButton";var n=this.menus.get(c);l=this.menubar.addMenu(mxResources.get(c),n.funct,null,l);l.className=g;l.setAttribute("title",mxResources.get(c));this.menus.menuCreated(n,l,g);null!=e&&(l.style.backgroundImage="url("+e+")",l.innerText="");return l};EditorUi.prototype.addButton=function(c,e,
-g,l){c=this.createToolbarButton(c,e,g);l=null!=l?l:this.container;l.appendChild(c);return c};EditorUi.prototype.createToolbarButton=function(c,e,g){var l=document.createElement("a");l.className="geButton";null!=c&&"data:"==c.substring(0,5)&&(l.style.backgroundImage="url("+c+")");null!=e&&l.setAttribute("title",e);null!=g&&mxEvent.addListener(l,"click",function(n){"disabled"!=l.getAttribute("disabled")&&g(n);mxEvent.consume(n)});mxEvent.preventDefault(l);return l};EditorUi.prototype.createMenuItem=
-function(c,e,g){var l=this.actions.get(c),n=null!=l?l.funct:null,u=this.createToolbarButton(e,mxResources.get(c)+(null!=l&&null!=l.shortcut?" ("+l.shortcut+")":""),n);null==l||g||(c=function(){l.isEnabled()?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled")},this.editor.graph.addListener("enabledChanged",c),l.addListener("stateChanged",c),c());return u};EditorUi.prototype.createFormatWindow=function(){if(null==this.formatWindow){var c=Math.max(10,this.diagramContainer.parentNode.clientWidth-
-256),e="1"==urlParams.embedInline?580:"1"==urlParams.sketch?580:Math.min(566,this.editor.graph.container.clientHeight-10);this.formatWindow=new WrapperWindow(this,mxResources.get("format"),c,60,240,e,mxUtils.bind(this,function(n){n.appendChild(this.formatContainer)}));this.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.formatWindow.window.fit()}));var g=this.formatWindow.window.toggleMinimized,l=240;this.formatWindow.window.toggleMinimized=function(){g.apply(this,arguments);
-this.minimized?(l=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+l-140+"px"):(this.div.style.width=l+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-l+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(n){mxEvent.getSource(n)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}));
-this.formatWindow.window.minimumSize=new mxRectangle(0,0,240,80);"sketch"==Editor.currentTheme?window.setTimeout(mxUtils.bind(this,mxUtils.bind(this,function(){var n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.formatWindow.window.setVisible(!0);(1E3>n||690>u)&&this.formatWindow.window.toggleMinimized()}),0)):this.formatWindow.window.setVisible(!1)}};var B=EditorUi.prototype.toggleFormatPanel;
-EditorUi.prototype.toggleFormatPanel=function(c){var e=this.formatWindow;null!=e?e.window.setVisible(null!=c?c:!this.isFormatPanelVisible()):B.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(c){if(this.isShapesPanelVisible()!=c){var e=EditorUi.prototype.hsplitPosition;0==e&&(e=this.defaultSidebarWidth);var g=this.hsplitPosition,l=mxUtils.bind(this,function(){this.hsplitPosition=n;this.refresh();this.diagramContainer.scrollLeft-=g-this.hsplitPosition}),n=c?e:0,u=Editor.transitionDelay;
-mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==n?"translateX(0)":"translateX(-100%)");0!=n&&l();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==n?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform "+u+"s 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==n&&l()}),1E3*u)}),0)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var J=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var c=this.formatWindow;return null!=c?c.window.isVisible():J.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(c){var e=
-mxUtils.bind(this,function(z,D){var C=this.menus.get(z);z=this.createMenuElement(D,mxUtils.bind(this,function(){C.funct.apply(this,arguments)}));z.setAttribute("title",D);z.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;";z.className="geButton";c.parentNode.appendChild(z);return z});if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=this.actions.get("newLibrary"))e=document.createElement("div"),
+null!=this.buttonContainer&&null!=this.menubar&&(this.buttonContainer.style.display="",this.menubar.container.appendChild(this.buttonContainer))};EditorUi.prototype.createMenu=function(c,e,g,l){g=null!=g?g:"geButton";var p=this.menus.get(c);l=this.menubar.addMenu(mxResources.get(c),p.funct,null,l);l.className=g;l.setAttribute("title",mxResources.get(c));this.menus.menuCreated(p,l,g);null!=e&&(l.style.backgroundImage="url("+e+")",l.innerText="");return l};EditorUi.prototype.addButton=function(c,e,
+g,l){c=this.createToolbarButton(c,e,g);l=null!=l?l:this.container;l.appendChild(c);return c};EditorUi.prototype.createToolbarButton=function(c,e,g){var l=document.createElement("a");l.className="geButton";null!=c&&"data:"==c.substring(0,5)&&(l.style.backgroundImage="url("+c+")");null!=e&&l.setAttribute("title",e);null!=g&&mxEvent.addListener(l,"click",function(p){"disabled"!=l.getAttribute("disabled")&&g(p);mxEvent.consume(p)});mxEvent.preventDefault(l);return l};EditorUi.prototype.createMenuItem=
+function(c,e,g){var l=this.actions.get(c),p=null!=l?l.funct:null,u=this.createToolbarButton(e,mxResources.get(c)+(null!=l&&null!=l.shortcut?" ("+l.shortcut+")":""),p);null==l||g||(c=function(){l.isEnabled()?u.removeAttribute("disabled"):u.setAttribute("disabled","disabled")},this.editor.graph.addListener("enabledChanged",c),l.addListener("stateChanged",c),c());return u};EditorUi.prototype.createFormatWindow=function(){if(null==this.formatWindow){var c=Math.max(10,this.diagramContainer.parentNode.clientWidth-
+256),e="1"==urlParams.embedInline?580:"1"==urlParams.sketch?580:Math.min(566,this.editor.graph.container.clientHeight-10);this.formatWindow=new WrapperWindow(this,mxResources.get("format"),c,60,240,e,mxUtils.bind(this,function(p){p.appendChild(this.formatContainer)}));this.formatWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.formatWindow.window.fit()}));var g=this.formatWindow.window.toggleMinimized,l=240;this.formatWindow.window.toggleMinimized=function(){g.apply(this,arguments);
+this.minimized?(l=parseInt(this.div.style.width),this.div.style.width="140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+l-140+"px"):(this.div.style.width=l+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-l+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(p){mxEvent.getSource(p)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}));
+this.formatWindow.window.minimumSize=new mxRectangle(0,0,240,80);"sketch"==Editor.currentTheme?window.setTimeout(mxUtils.bind(this,mxUtils.bind(this,function(){var p=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;this.formatWindow.window.setVisible(!0);(1E3>p||690>u)&&this.formatWindow.window.toggleMinimized()}),0)):this.formatWindow.window.setVisible(!1)}};var y=EditorUi.prototype.toggleFormatPanel;
+EditorUi.prototype.toggleFormatPanel=function(c){var e=this.formatWindow;null!=e?e.window.setVisible(null!=c?c:!this.isFormatPanelVisible()):y.apply(this,arguments)};EditorUi.prototype.toggleShapesPanel=function(c){if(this.isShapesPanelVisible()!=c){var e=EditorUi.prototype.hsplitPosition;0==e&&(e=this.defaultSidebarWidth);var g=this.hsplitPosition,l=mxUtils.bind(this,function(){this.hsplitPosition=p;this.refresh();this.diagramContainer.scrollLeft-=g-this.hsplitPosition}),p=c?e:0,u=Editor.transitionDelay;
+mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==p?"translateX(0)":"translateX(-100%)");0!=p&&l();window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transform",0==p?"translateX(-100%)":"translateX(0)");mxUtils.setPrefixedStyle(this.sidebarContainer.style,"transition","transform "+u+"s 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==p&&l()}),1E3*u)}),0)}};EditorUi.prototype.isShapesPanelVisible=function(){return 0<this.hsplitPosition};var I=EditorUi.prototype.isFormatPanelVisible;EditorUi.prototype.isFormatPanelVisible=function(){var c=this.formatWindow;return null!=c?c.window.isVisible():I.apply(this,arguments)};EditorUi.prototype.createShapesPanel=function(c){var e=
+mxUtils.bind(this,function(z,E){var D=this.menus.get(z);z=this.createMenuElement(E,mxUtils.bind(this,function(){D.funct.apply(this,arguments)}));z.setAttribute("title",E);z.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;";z.className="geButton";c.parentNode.appendChild(z);return z});if(Editor.enableCustomLibraries&&("1"!=urlParams.embed||"1"==urlParams.libraries))if(null!=this.actions.get("newLibrary"))e=document.createElement("div"),
e.style.cssText="position:absolute;border-style:solid;bottom:0px;margin:0;border-radius:0;border-width:1px 0 0 0;",e.className="geButton",e.style.left="0px",e.style.right="50%",mxUtils.write(e,mxResources.get("newLibrary")),c.appendChild(e),mxEvent.addListener(e,"click",this.actions.get("newLibrary").funct),e=e.cloneNode(!1),e.style.left="50%",e.style.right="0px",mxUtils.write(e,mxResources.get("openLibrary")),c.appendChild(e),mxEvent.addListener(e,"click",this.actions.get("openLibrary").funct);else{var g=
-e("newLibrary","");g.style.left="0px";g.style.right="50%";var l=document.createElement("span");g.appendChild(l);var n=e("openLibraryFrom","");n.style.borderLeftWidth="1px";n.style.left="50%";n.style.right="0px";var u=document.createElement("span");n.appendChild(u);this.dependsOnLanguage(mxUtils.bind(this,function(){l.innerHTML="";mxUtils.write(l,mxResources.get("newLibrary"));g.setAttribute("title",mxResources.get("newLibrary"));u.innerHTML="";mxUtils.write(u,mxResources.get("openLibraryFrom"));n.setAttribute("title",
+e("newLibrary","");g.style.left="0px";g.style.right="50%";var l=document.createElement("span");g.appendChild(l);var p=e("openLibraryFrom","");p.style.borderLeftWidth="1px";p.style.left="50%";p.style.right="0px";var u=document.createElement("span");p.appendChild(u);this.dependsOnLanguage(mxUtils.bind(this,function(){l.innerHTML="";mxUtils.write(l,mxResources.get("newLibrary"));g.setAttribute("title",mxResources.get("newLibrary"));u.innerHTML="";mxUtils.write(u,mxResources.get("openLibraryFrom"));p.setAttribute("title",
mxResources.get("openLibraryFrom"))}))}c.appendChild(this.sidebar.container);c.style.overflow="hidden"};EditorUi.prototype.createShapesWindow=function(){if(null==this.sidebarWindow){var c=Math.min(this.diagramContainer.parentNode.clientWidth-10,218),e="1"==urlParams.embedInline?650:Math.min(this.diagramContainer.parentNode.clientHeight,650),g="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;this.sidebarWindow=new WrapperWindow(this,mxResources.get("shapes"),g&&"1"!=urlParams.embedInline?
66:10,g&&"1"!=urlParams.embedInline?Math.max(30,(this.diagramContainer.parentNode.clientHeight-e)/2):56,c-6,e-6,mxUtils.bind(this,function(l){this.createShapesPanel(l)}));this.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){this.sidebarWindow.window.fit()}));this.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90);this.sidebarWindow.window.setVisible(!1)}};EditorUi.prototype.setSketchMode=function(c){this.doSetSketchMode(c);null==urlParams.rough&&(mxSettings.settings.sketchMode=
c,mxSettings.save());this.fireEvent(new mxEventObject("sketchModeChanged"))};EditorUi.prototype.setAndPersistDarkMode=function(c){var e=c;"auto"==c&&(e=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches);this.setDarkMode(e);mxSettings.settings.darkMode=c;mxSettings.save();c=mxSettings.getUi();null==urlParams.ui&&"dark"==c&&this.setCurrentTheme("kennedy",!0)};EditorUi.prototype.setAndPersistLanguage=function(c){this.spinner.spin(document.body,mxResources.get("working"))&&
@@ -13325,8 +13369,8 @@ function(c){mxUtils.lightDarkColorSupported&&(Editor.darkMode=c,c=mxUtils.isAnce
EditorUi.prototype.setPagesVisible=function(c){Editor.pagesVisible!=c&&(Editor.pagesVisible=c,mxSettings.settings.pagesVisible=c,mxSettings.save(),this.fireEvent(new mxEventObject("pagesVisibleChanged")))};EditorUi.prototype.setSidebarTitles=function(c,e){this.sidebar.sidebarTitles!=c&&(this.sidebar.sidebarTitles=c,Editor.isSettingsEnabled()&&e&&(mxSettings.settings.sidebarTitles=c,mxSettings.save()),this.fireEvent(new mxEventObject("sidebarTitlesChanged")))};EditorUi.prototype.setInlineFullscreen=
function(c){Editor.inlineFullscreen!=c&&(this.diagramContainer.setAttribute("data-scrollState",JSON.stringify(this.saveScrollState(!0))),(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",fullscreen:c,rect:this.diagramContainer.getBoundingClientRect()}),"*"))};EditorUi.prototype.inlineSizeChanged=function(){var c=this.sketchFooterMenuElt,e=this.sketchMainMenuElt,g=this.sketchPickerMenuElt;if(Editor.inlineFullscreen)e.style.left="10px",e.style.top="10px",g.style.left="10px",
g.style.top="60px",c.style.top="10px",c.style.right="12px",c.style.left="",null==this.diagramContainer.getAttribute("data-bounds")&&(this.diagramContainer.setAttribute("data-bounds",this.diagramContainer.style.top+" "+this.diagramContainer.style.left+" "+this.diagramContainer.style.width+" "+this.diagramContainer.style.height),this.diagramContainer.style.top="0px",this.diagramContainer.style.left="0px",this.diagramContainer.style.bottom="0px",this.diagramContainer.style.right="0px",this.diagramContainer.style.width=
-"",this.diagramContainer.style.height="");else{var l=this.diagramContainer.getAttribute("data-bounds");if(null!=l){this.diagramContainer.removeAttribute("data-bounds");var n=l.split(" ");l=mxUtils.getDocumentSize();this.diagramContainer.style.top=n[0];this.diagramContainer.style.left=n[1];var u=parseInt(n[2]);n=parseInt(n[3]);u=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,u):u,l.width-80);n=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,n):n,l.height-80);this.diagramContainer.style.width=
-u+"px";this.diagramContainer.style.height=n+"px";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",rect:this.diagramContainer.getBoundingClientRect()}),"*")}e.style.left=this.diagramContainer.offsetLeft+"px";e.style.top=this.diagramContainer.offsetTop-e.offsetHeight-4+"px";g.style.display="";g.style.left=this.diagramContainer.offsetLeft-g.offsetWidth-4+"px";g.style.top=this.diagramContainer.offsetTop+
+"",this.diagramContainer.style.height="");else{var l=this.diagramContainer.getAttribute("data-bounds");if(null!=l){this.diagramContainer.removeAttribute("data-bounds");var p=l.split(" ");l=mxUtils.getDocumentSize();this.diagramContainer.style.top=p[0];this.diagramContainer.style.left=p[1];var u=parseInt(p[2]);p=parseInt(p[3]);u=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,u):u,l.width-80);p=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,p):p,l.height-80);this.diagramContainer.style.width=
+u+"px";this.diagramContainer.style.height=p+"px";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";(window.opener||window.parent).postMessage(JSON.stringify({event:"resize",rect:this.diagramContainer.getBoundingClientRect()}),"*")}e.style.left=this.diagramContainer.offsetLeft+"px";e.style.top=this.diagramContainer.offsetTop-e.offsetHeight-4+"px";g.style.display="";g.style.left=this.diagramContainer.offsetLeft-g.offsetWidth-4+"px";g.style.top=this.diagramContainer.offsetTop+
"px";c.style.left=this.diagramContainer.offsetLeft+this.diagramContainer.offsetWidth-c.offsetWidth+"px";c.style.top=e.style.top;c.style.right="";this.bottomResizer.style.left=this.diagramContainer.offsetLeft+(this.diagramContainer.offsetWidth-this.bottomResizer.offsetWidth)/2+"px";this.bottomResizer.style.top=this.diagramContainer.offsetTop+this.diagramContainer.offsetHeight-this.bottomResizer.offsetHeight/2-1+"px";this.rightResizer.style.left=this.diagramContainer.offsetLeft+this.diagramContainer.offsetWidth-
this.rightResizer.offsetWidth/2-1+"px";this.rightResizer.style.top=this.diagramContainer.offsetTop+(this.diagramContainer.offsetHeight-this.bottomResizer.offsetHeight)/2+"px"}this.bottomResizer.style.visibility=Editor.inlineFullscreen?"hidden":"";this.rightResizer.style.visibility=this.bottomResizer.style.visibility;e.style.visibility="";c.style.visibility=""};EditorUi.prototype.doSetSketchMode=function(c){Editor.sketchMode!=c&&(Editor.sketchMode=c,this.updateDefaultStyles())};EditorUi.prototype.updateDefaultStyles=
function(){var c=this.editor.graph;c.defaultVertexStyle=mxUtils.clone(Graph.prototype.defaultVertexStyle);c.defaultEdgeStyle=mxUtils.clone(Graph.prototype.defaultEdgeStyle);if(null==Editor.config||null==Editor.config.defaultVertexStyle&&null==Editor.config.defaultEdgeStyle)"simple"==Editor.currentTheme||"1"==urlParams.embedInline?(c.vertexFontSize=16,c.edgeFontSize=c.vertexFontSize-4):"sketch"==Editor.currentTheme?(c.vertexFontSize=20,c.edgeFontSize=c.vertexFontSize-4):(c.vertexFontSize=Graph.prototype.vertexFontSize,
@@ -13340,213 +13384,213 @@ Editor.sketchDefaultJiggle,c.defaultEdgeStyle.hachureGap="4")}this.menus.default
mxSettings.save()}));c.pageFormat=null!=c.defaultPageFormat?c.defaultPageFormat:mxSettings.getPageFormat();this.addListener("pageFormatChanged",mxUtils.bind(this,function(e,g){mxSettings.setPageFormat(c.pageFormat);mxSettings.save()}));c.view.defaultDarkGridColor=mxSettings.getGridColor(!0);c.view.defaultGridColor=mxSettings.getGridColor(!1);c.view.gridColor="light-dark("+c.view.defaultGridColor+", "+c.view.defaultDarkGridColor+")";this.addListener("gridColorChanged",mxUtils.bind(this,function(e,
g){mxSettings.setGridColor(c.view.defaultGridColor,!1);mxSettings.setGridColor(c.view.defaultDarkGridColor,!0);mxSettings.save()}));if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(e,g){mxSettings.setAutosave(this.editor.autosave);mxSettings.save()})),this.editor.autosave=mxSettings.getAutosave();if(!this.editor.chromeless||this.editor.editable)null!=mxSettings.settings.enableAnimations&&(Editor.enableAnimations=mxSettings.settings.enableAnimations),
this.addListener("enableAnimationsChanged",mxUtils.bind(this,function(e,g){mxSettings.settings.enableAnimations=Editor.enableAnimations;mxSettings.save()}));null!=this.sidebar&&(null!=urlParams["search-shapes"]&&null!=this.sidebar.searchShapes?(this.sidebar.searchShapes(decodeURIComponent(urlParams["search-shapes"])),this.sidebar.showEntries("search")):(this.sidebar.showPalette("search",mxSettings.settings.search),this.editor.chromeless&&!this.editor.editable||!(mxSettings.settings.isNew||8>=parseInt(mxSettings.settings.version||
-0))||(this.toggleScratchpad(),mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);mxSettings.save()})}};EditorUi.prototype.copyImage=function(c,e,g){try{null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this,function(l,n){try{this.spinner.stop();var u=this.createImageDataUri(l,e,"png"),z=parseInt(n.getAttribute("width")),
-D=parseInt(n.getAttribute("height"));this.writeImageToClipboard(u,z,D,mxUtils.bind(this,function(C){this.handleError(C)}))}catch(C){this.handleError(C)}}),null,null,null,mxUtils.bind(this,function(l){this.spinner.stop();this.handleError(l)}),null,null,null!=g?g:4,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<c.length?c:null)}catch(l){this.handleError(l)}};EditorUi.prototype.copyCells=function(c,e){var g=this.editor.graph;if(g.isSelectionEmpty())c.innerText=
-"";else{var l=mxUtils.sortCells(g.model.getTopmostCells(g.getSelectionCells())),n=mxUtils.getXml(g.encodeCells(l));mxUtils.setTextContent(c,encodeURIComponent(n));e?(g.removeCells(l,!1),g.lastPasteXml=null):(g.lastPasteXml=n,g.pasteCounter=0);c.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var c=null;if(Editor.enableNativeCipboard){var e=this.editor.graph;e.isSelectionEmpty()||(c=mxUtils.sortCells(e.getExportableCells(e.model.getTopmostCells(e.getSelectionCells()))),
-e=mxUtils.getXml(e.encodeCells(c)),navigator.clipboard.writeText(e))}return c};EditorUi.prototype.pasteXml=function(c,e,g,l,n){n=null!=n?n:!0;var u=this.editor.graph,z=null;u.lastPasteXml==c?u.pasteCounter++:(u.lastPasteXml=c,u.pasteCounter=0);var D=u.pasteCounter*u.gridSize;if(g||this.isCompatibleString(c))z=this.importXml(c,D,D),u.setSelectionCells(z);else if(e&&1==u.getSelectionCount()){n=u.getStartEditingCell(u.getSelectionCell(),l);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&"image"==u.getCurrentCellStyle(n)[mxConstants.STYLE_SHAPE])u.setCellStyles(mxConstants.STYLE_IMAGE,
-c,[n]);else{u.model.beginUpdate();try{u.labelChanged(n,c),Graph.isLink(c)&&u.setLinkForCell(n,c)}finally{u.model.endUpdate()}}u.setSelectionCell(n)}else z=u.getInsertPoint(),u.isMouseInsertPoint()&&(D=0,u.lastPasteXml==c&&0<u.pasteCounter&&u.pasteCounter--),z=this.insertTextAt(c,z.x+D,z.y+D,n),u.setSelectionCells(z);u.isSelectionEmpty()||(u.scrollCellToVisible(u.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(u.view.getState(u.getSelectionCell())));return z};EditorUi.prototype.pasteCells=
-function(c,e,g,l){if(!mxEvent.isConsumed(c)){var n=e,u=!1;if(g&&null!=c.clipboardData&&c.clipboardData.getData){var z=c.clipboardData.getData("text/plain"),D=!1;if(null!=z&&0<z.length&&"%3CmxGraphModel%3E"==z.substring(0,18))try{var C=decodeURIComponent(z);this.isCompatibleString(C)&&(D=!0,z=C)}catch(p){}D=D?null:c.clipboardData.getData("text/html");null!=D&&0<D.length?(n=this.parseHtmlData(D),u="text/plain"!=n.getAttribute("data-type")):null!=z&&0<z.length&&(n=document.createElement("div"),mxUtils.setTextContent(n,
-D))}z=n.getElementsByTagName("span");if(null!=z&&0<z.length&&"application/vnd.lucid.chart.objects"===z[0].getAttribute("data-lucid-type"))g=z[0].getAttribute("data-lucid-content"),null!=g&&0<g.length&&(this.convertLucidChart(g,mxUtils.bind(this,function(p){var q=this.editor.graph;q.lastPasteXml==p?q.pasteCounter++:(q.lastPasteXml=p,q.pasteCounter=0);var G=q.pasteCounter*q.gridSize;q.setSelectionCells(this.importXml(p,G,G));q.scrollCellToVisible(q.getSelectionCell())}),mxUtils.bind(this,function(p){this.handleError(p)})),
-mxEvent.consume(c));else{var A=!1,Q="";Q=u?null!=n.textContent&&"<mxfile"==n.textContent.substring(0,7)&&"</mxfile>"==n.textContent.substring(n.textContent.length-9)||"<mxGraphModel"==n.textContent.substring(0,13)&&"</mxGraphModel>"==n.textContent.substring(n.textContent.length-15)?n.textContent.replace(/\u00a0/g," "):n.innerHTML:mxUtils.trim(null==n.innerText?mxUtils.getTextContent(n):n.innerText);try{var S=Q.lastIndexOf("%3E");0<=S&&S<Q.length-3&&(Q=Q.substring(0,S+3))}catch(p){}try{z=n.getElementsByTagName("span"),
-(C=null!=z&&0<z.length?mxUtils.trim(decodeURIComponent(z[0].textContent)):decodeURIComponent(Q))&&(this.isCompatibleString(C)||0==C.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(A=!0,Q=C)}catch(p){}try{if(null!=Q&&0<Q.length){if(0==Q.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var U=mxUtils.bind(this,function(){try{Q=(new MiroImporter).importMiroJson(JSON.parse(Q)),this.pasteXml(Q,l,A,c)}catch(p){console.log("Miro import error:",p)}});"undefined"===typeof MiroImporter?
-mxscript("js/diagramly/miro/MiroImporter.js",U):U()}else this.pasteXml(Q,l,A,c,u);try{mxEvent.consume(c)}catch(p){}}else if(!g){var O=this.editor.graph;O.lastPasteXml=null;O.pasteCounter=0}}catch(p){this.handleError(p)}}}e.innerHTML="&nbsp;"};EditorUi.prototype.showPrintDialog=function(c,e,g){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==e||mxClient.IS_CHROMEAPP||"draw.io"!=this.getServiceName()||(l+=20);
-this.showDialog((new PrintDialog(this,c,e,g)).container,320,l,!0,!0)};EditorUi.prototype.print=function(c,e){var g=this.editor,l=g.graph,n=this.getPageIndex(this.currentPage),u=null!=n?n+1:1,z=mxUtils.bind(this,function(G,E,H,L){var K=G.useCssTransforms,k=G.currentTranslate,y=G.currentScale,F=G.view.translate,M=G.view.scale;G.useCssTransforms&&(G.useCssTransforms=!1,G.currentTranslate=new mxPoint(0,0),G.currentScale=1,G.view.translate=new mxPoint(0,0),G.view.scale=1);var P=G.getGraphBounds(),R=0,
-T=0,V=mxRectangle.fromRectangle(G.pageFormat),W=e.fit||e.crop||!G.pageVisible,X=e.scale;V.width=Math.ceil(V.width*G.pageScale);V.height=Math.ceil(V.height*G.pageScale);var Y=1;if(e.fit){Y=e.sheetsAcross;var Z=e.sheetsDown;isNaN(X)||(V.width=Math.ceil(V.width*X),V.height=Math.ceil(V.height*X));Y=Math.min(V.height*Z/(P.height/G.view.scale),V.width*Y/(P.width/G.view.scale))}else Y=isNaN(X)?1:X;Y*=1;!W&&G.pageVisible?(X=G.getPageLayout(),R-=X.x*V.width,T-=X.y*V.height):W=!0;e.crop&&(e.selection&&(P=l.getBoundingBox(l.getSelectionCells())),
-V.width=(P.width+1)*Y/G.view.scale,V.height=(P.height+1)*Y/G.view.scale);V.width=Math.ceil(1*V.width);V.height=Math.ceil(1*V.height);L=null!=L?"page/id,"+L:null;if(null==E){E=PrintDialog.createPrintPreview(G,Y,null,0,R,T,W);E.title=this.getBaseFilename(!0);E.pageSelector=!1;E.mathEnabled=!1;R=e.border;isNaN(R)||(E.pageMargin=R);e.selection&&(E.isCellVisible=function(ba){return G.isCellSelected(ba)});var da=E.writeHead;E.writeHead=function(ba){da.apply(this,arguments);mxClient.IS_GC&&(ba.writeln('<style type="text/css">'),
-ba.writeln("@media print {"),ba.writeln(".MathJax svg { shape-rendering: crispEdges; }"),ba.writeln("}"),ba.writeln("</style>"));null!=g.fontCss&&(ba.writeln('<style type="text/css">'),ba.writeln(mxUtils.htmlEntities(g.fontCss,!1,!1,!1)),ba.writeln("</style>"));for(var ha=G.getCustomFonts(),aa=0;aa<ha.length;aa++){var ia=ha[aa].name,fa=ha[aa].url;Graph.isCssFontUrl(fa)?ba.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(fa))+'" charset="UTF-8" type="text/css">'):
-(ba.writeln('<style type="text/css">'),ba.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(ia)+'";\nsrc: url("'+mxUtils.htmlEntities(fa)+'");\n}'),ba.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var ea=E.drawBackgroundImage;E.drawBackgroundImage=function(ba){ea.apply(this,arguments);null!=ba.node&&(EditorUi.embedSvgImages(ba.node),l.disableSvgLinks(ba.node,function(ha){ha.setAttribute("href","javascript:void(0)")}))}}var ka=E.addGraphFragment;E.addGraphFragment=function(ba,ha,aa,
-ia,fa,ca){ka.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:fa.classList.add("geDisableMathJax")};e.grid&&(E.gridSize=G.gridSize,E.gridSteps=G.view.gridSteps,E.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:G.view.gridColor);E.open(null,null,H,!0,L,V,e.selection?G.getSelectionCells():null)}else{P=G.background;if(null==P||""==P||P==mxConstants.NONE)P="#ffffff";E.backgroundColor=P;E.autoOrigin=W;e.grid&&(E.gridSize=G.gridSize,E.gridSteps=G.view.gridSteps,
-E.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:G.view.gridColor);E.appendGraph(G,Y,R,T,H,!0,L,V,e.selection?G.getSelectionCells():null);H=G.getCustomFonts();if(null!=E.wnd)for(V=0;V<H.length;V++)R=H[V].name,T=H[V].url,Graph.isCssFontUrl(T)?E.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(T)+'" charset="UTF-8" type="text/css">'):(E.wnd.document.writeln('<style type="text/css">'),E.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(R)+
-'";\nsrc: url("'+mxUtils.htmlEntities(T)+'");\n}'),E.wnd.document.writeln("</style>"))}K&&(G.useCssTransforms=K,G.currentTranslate=k,G.currentScale=y,G.view.translate=F,G.view.scale=M);return E}),D=e.pagesFrom,C=e.pagesTo,A=!e.allPages;n=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,e);else{A&&(A=e.selection||D==u&&C==u);if(!A&&null!=this.pages&&this.pages.length){A=0;u=this.pages.length-1;e.allPages||(A=parseInt(D)-1,u=parseInt(C)-1);for(var Q=A;Q<=u;Q++){var S=this.pages[Q];D=S==
-this.currentPage?l:null;if(null==D){D=this.createTemporaryGraph(l.stylesheet);D.shapeForegroundColor=l.shapeForegroundColor;D.shapeBackgroundColor=l.shapeBackgroundColor;C=!0;A=!1;var U=null,O=null;null==S.viewState&&null==S.root&&this.updatePageRoot(S);null!=S.viewState&&(C=S.viewState.pageVisible,A=S.viewState.mathEnabled,U=S.viewState.background,O=S.viewState.backgroundImage,D.pageFormat=S.viewState.pageFormat,D.gridSize=S.viewState.gridSize);null!=O&&null!=O.originalSrc&&(O=this.createImageForPageLink(O.originalSrc,
-S));D.background=U;D.backgroundImage=null!=O?new mxImage(O.src,O.width,O.height,O.x,O.y):null;D.pageVisible=C;D.mathEnabled=A;var p=D.getGraphBounds;D.getGraphBounds=function(){var G=p.apply(this,arguments),E=this.backgroundImage;if(null!=E&&null!=E.width&&null!=E.height){var H=this.view.translate,L=this.view.scale;G=mxRectangle.fromRectangle(G);G.add(new mxRectangle((H.x+E.x)*L,(H.y+E.y)*L,E.width*L,E.height*L))}return G};var q=D.getGlobalVariable;D.getGlobalVariable=function(G){return"page"==G?
-S.getName():"pagenumber"==G?Q+1:"pagecount"==G?null!=this.pages?this.pages.length:1:q.apply(this,arguments)};document.body.appendChild(D.container);this.updatePageRoot(S);D.model.setRoot(S.root)}n=z(D,n,Q!=u,S.getId());D!=l&&D.container.parentNode.removeChild(D.container)}}else n=z(l);null==n||null==n.wnd?this.handleError({message:mxResources.get("errorUpdatingPreview")}):(n.mathEnabled&&(z=n.wnd.document,c||(n.wnd.IMMEDIATE_PRINT=!0),z.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>')),
-n.closeDocument(),Graph.rewritePageLinks(n.wnd.document,!0),n.mathEnabled||c||PrintDialog.printPreview(n));return n}};EditorUi.prototype.addFileDropHandler=function(c){if(Graph.fileSupport)for(var e=null,g=0;g<c.length;g++)mxEvent.addListener(c[g],"dragleave",function(l){null!=e&&(e.parentNode.removeChild(e),e=null);l.stopPropagation();l.preventDefault()}),mxEvent.addListener(c[g],"dragover",mxUtils.bind(this,function(l){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==e&&(!mxClient.IS_IE||
+0))||(this.toggleScratchpad(),mxSettings.save())));this.addListener("formatWidthChanged",function(){mxSettings.setFormatWidth(this.formatWidth);mxSettings.save()})}};EditorUi.prototype.copyImage=function(c,e,g){try{null!=navigator.clipboard&&"function"===typeof window.ClipboardItem&&this.spinner.spin(document.body,mxResources.get("exporting"))&&this.editor.exportToCanvas(mxUtils.bind(this,function(l,p){try{this.spinner.stop();var u=this.createImageDataUri(l,e,"png"),z=parseInt(p.getAttribute("width")),
+E=parseInt(p.getAttribute("height"));this.writeImageToClipboard(u,z,E,mxUtils.bind(this,function(D){this.handleError(D)}))}catch(D){this.handleError(D)}}),null,null,null,mxUtils.bind(this,function(l){this.spinner.stop();this.handleError(l)}),null,null,null!=g?g:4,null==this.editor.graph.background||this.editor.graph.background==mxConstants.NONE,null,null,null,10,null,null,!1,null,0<c.length?c:null)}catch(l){this.handleError(l)}};EditorUi.prototype.copyCells=function(c,e){var g=this.editor.graph;if(g.isSelectionEmpty())c.innerText=
+"";else{var l=mxUtils.sortCells(g.model.getTopmostCells(g.getSelectionCells())),p=mxUtils.getXml(g.encodeCells(l));mxUtils.setTextContent(c,encodeURIComponent(p));e?(g.removeCells(l,!1),g.lastPasteXml=null):(g.lastPasteXml=p,g.pasteCounter=0);c.focus();document.execCommand("selectAll",!1,null)}};EditorUi.prototype.copyXml=function(){var c=null;if(Editor.enableNativeCipboard){var e=this.editor.graph;e.isSelectionEmpty()||(c=mxUtils.sortCells(e.getExportableCells(e.model.getTopmostCells(e.getSelectionCells()))),
+e=mxUtils.getXml(e.encodeCells(c)),navigator.clipboard.writeText(e))}return c};EditorUi.prototype.pasteXml=function(c,e,g,l,p){p=null!=p?p:!0;var u=this.editor.graph,z=null;u.lastPasteXml==c?u.pasteCounter++:(u.lastPasteXml=c,u.pasteCounter=0);var E=u.pasteCounter*u.gridSize;if(g||this.isCompatibleString(c))z=this.importXml(c,E,E),u.setSelectionCells(z);else if(e&&1==u.getSelectionCount()){p=u.getStartEditingCell(u.getSelectionCell(),l);if(/\.(gif|jpg|jpeg|tiff|png|svg)$/i.test(c)&&"image"==u.getCurrentCellStyle(p)[mxConstants.STYLE_SHAPE])u.setCellStyles(mxConstants.STYLE_IMAGE,
+c,[p]);else{u.model.beginUpdate();try{u.labelChanged(p,c),Graph.isLink(c)&&u.setLinkForCell(p,c)}finally{u.model.endUpdate()}}u.setSelectionCell(p)}else z=u.getInsertPoint(),u.isMouseInsertPoint()&&(E=0,u.lastPasteXml==c&&0<u.pasteCounter&&u.pasteCounter--),z=this.insertTextAt(c,z.x+E,z.y+E,p),u.setSelectionCells(z);u.isSelectionEmpty()||(u.scrollCellToVisible(u.getSelectionCell()),null!=this.hoverIcons&&this.hoverIcons.update(u.view.getState(u.getSelectionCell())));return z};EditorUi.prototype.pasteCells=
+function(c,e,g,l){if(!mxEvent.isConsumed(c)){var p=e,u=!1;if(g&&null!=c.clipboardData&&c.clipboardData.getData){var z=c.clipboardData.getData("text/plain"),E=!1;if(null!=z&&0<z.length&&"%3CmxGraphModel%3E"==z.substring(0,18))try{var D=decodeURIComponent(z);this.isCompatibleString(D)&&(E=!0,z=D)}catch(U){}E=E?null:c.clipboardData.getData("text/html");null!=E&&0<E.length?(p=this.parseHtmlData(E),u="text/plain"!=p.getAttribute("data-type")):null!=z&&0<z.length&&(p=document.createElement("div"),mxUtils.setTextContent(p,
+E))}z=p.getElementsByTagName("span");if(null!=z&&0<z.length&&"application/vnd.lucid.chart.objects"===z[0].getAttribute("data-lucid-type"))g=z[0].getAttribute("data-lucid-content"),null!=g&&0<g.length&&(this.convertLucidChart(g,mxUtils.bind(this,function(U){var n=this.editor.graph;n.lastPasteXml==U?n.pasteCounter++:(n.lastPasteXml=U,n.pasteCounter=0);var t=n.pasteCounter*n.gridSize;n.setSelectionCells(this.importXml(U,t,t));n.scrollCellToVisible(n.getSelectionCell())}),mxUtils.bind(this,function(U){this.handleError(U)})),
+mxEvent.consume(c));else{var A=!1,P="";P=u?null!=p.textContent&&"<mxfile"==p.textContent.substring(0,7)&&"</mxfile>"==p.textContent.substring(p.textContent.length-9)||"<mxGraphModel"==p.textContent.substring(0,13)&&"</mxGraphModel>"==p.textContent.substring(p.textContent.length-15)?p.textContent.replace(/\u00a0/g," "):p.innerHTML:mxUtils.trim(null==p.innerText?mxUtils.getTextContent(p):p.innerText);try{var R=P.lastIndexOf("%3E");0<=R&&R<P.length-3&&(P=P.substring(0,R+3))}catch(U){}try{z=p.getElementsByTagName("span"),
+(D=null!=z&&0<z.length?mxUtils.trim(decodeURIComponent(z[0].textContent)):decodeURIComponent(P))&&(this.isCompatibleString(D)||0==D.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":'))&&(A=!0,P=D)}catch(U){}try{if(null!=P&&0<P.length){if(0==P.substring(0,20).replace(/\s/g,"").indexOf('{"isProtected":')){var T=mxUtils.bind(this,function(){try{P=(new MiroImporter).importMiroJson(JSON.parse(P)),this.pasteXml(P,l,A,c)}catch(U){console.log("Miro import error:",U)}});"undefined"===typeof MiroImporter?
+mxscript("js/diagramly/miro/MiroImporter.js",T):T()}else this.pasteXml(P,l,A,c,u);try{mxEvent.consume(c)}catch(U){}}else if(!g){var L=this.editor.graph;L.lastPasteXml=null;L.pasteCounter=0}}catch(U){this.handleError(U)}}}e.innerHTML="&nbsp;"};EditorUi.prototype.showPrintDialog=function(c,e,g){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==e||mxClient.IS_CHROMEAPP||"draw.io"!=this.getServiceName()||(l+=20);
+this.showDialog((new PrintDialog(this,c,e,g)).container,320,l,!0,!0)};EditorUi.prototype.print=function(c,e){var g=this.editor,l=g.graph,p=this.getPageIndex(this.currentPage),u=null!=p?p+1:1,z=mxUtils.bind(this,function(t,B,F,J){var K=t.useCssTransforms,k=t.currentTranslate,v=t.currentScale,G=t.view.translate,N=t.view.scale;t.useCssTransforms&&(t.useCssTransforms=!1,t.currentTranslate=new mxPoint(0,0),t.currentScale=1,t.view.translate=new mxPoint(0,0),t.view.scale=1);var O=t.getGraphBounds(),Q=0,
+S=0,V=mxRectangle.fromRectangle(t.pageFormat),W=e.fit||e.crop||!t.pageVisible,X=e.scale;V.width=Math.ceil(V.width*t.pageScale);V.height=Math.ceil(V.height*t.pageScale);var Z=1;if(e.fit){Z=e.sheetsAcross;var Y=e.sheetsDown;isNaN(X)||(V.width=Math.ceil(V.width*X),V.height=Math.ceil(V.height*X));Z=Math.min(V.height*Y/(O.height/t.view.scale),V.width*Z/(O.width/t.view.scale))}else Z=isNaN(X)?1:X;Z*=1;!W&&t.pageVisible?(X=t.getPageLayout(),Q-=X.x*V.width,S-=X.y*V.height):W=!0;e.crop&&(e.selection&&(O=l.getBoundingBox(l.getSelectionCells())),
+V.width=(O.width+1)*Z/t.view.scale,V.height=(O.height+1)*Z/t.view.scale);V.width=Math.ceil(1*V.width);V.height=Math.ceil(1*V.height);J=null!=J?"page/id,"+J:null;if(null==B){B=PrintDialog.createPrintPreview(t,Z,null,0,Q,S,W);B.title=this.getBaseFilename(!0);B.pageSelector=!1;B.mathEnabled=!1;Q=e.border;isNaN(Q)||(B.pageMargin=Q);e.selection&&(B.isCellVisible=function(ba){return t.isCellSelected(ba)});var ea=B.writeHead;B.writeHead=function(ba){ea.apply(this,arguments);mxClient.IS_GC&&(ba.writeln('<style type="text/css">'),
+ba.writeln("@media print {"),ba.writeln(".MathJax svg { shape-rendering: crispEdges; }"),ba.writeln("}"),ba.writeln("</style>"));null!=g.fontCss&&(ba.writeln('<style type="text/css">'),ba.writeln(mxUtils.htmlEntities(g.fontCss,!1,!1,!1)),ba.writeln("</style>"));for(var ha=t.getCustomFonts(),aa=0;aa<ha.length;aa++){var ia=ha[aa].name,fa=ha[aa].url;Graph.isCssFontUrl(fa)?ba.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(Graph.rewriteGoogleFontUrl(fa))+'" charset="UTF-8" type="text/css">'):
+(ba.writeln('<style type="text/css">'),ba.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(ia)+'";\nsrc: url("'+mxUtils.htmlEntities(fa)+'");\n}'),ba.writeln("</style>"))}};if(Editor.replaceSvgDataUris){var ca=B.drawBackgroundImage;B.drawBackgroundImage=function(ba){ca.apply(this,arguments);null!=ba.node&&(EditorUi.embedSvgImages(ba.node),l.disableSvgLinks(ba.node,function(ha){ha.setAttribute("href","javascript:void(0)")}))}}var ka=B.addGraphFragment;B.addGraphFragment=function(ba,ha,aa,
+ia,fa,da){ka.apply(this,arguments);this.graph.mathEnabled?this.mathEnabled=this.mathEnabled||!0:fa.classList.add("geDisableMathJax")};e.grid&&(B.gridSize=t.gridSize,B.gridSteps=t.view.gridSteps,B.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:t.view.gridColor);B.open(null,null,F,!0,J,V,e.selection?t.getSelectionCells():null)}else{O=t.background;if(null==O||""==O||O==mxConstants.NONE)O="#ffffff";B.backgroundColor=O;B.autoOrigin=W;e.grid&&(B.gridSize=t.gridSize,B.gridSteps=t.view.gridSteps,
+B.gridColor=Editor.isDarkMode()?mxGraphView.prototype.defaultGridColor:t.view.gridColor);B.appendGraph(t,Z,Q,S,F,!0,J,V,e.selection?t.getSelectionCells():null);F=t.getCustomFonts();if(null!=B.wnd)for(V=0;V<F.length;V++)Q=F[V].name,S=F[V].url,Graph.isCssFontUrl(S)?B.wnd.document.writeln('<link rel="stylesheet" href="'+mxUtils.htmlEntities(S)+'" charset="UTF-8" type="text/css">'):(B.wnd.document.writeln('<style type="text/css">'),B.wnd.document.writeln('@font-face {\nfont-family: "'+mxUtils.htmlEntities(Q)+
+'";\nsrc: url("'+mxUtils.htmlEntities(S)+'");\n}'),B.wnd.document.writeln("</style>"))}K&&(t.useCssTransforms=K,t.currentTranslate=k,t.currentScale=v,t.view.translate=G,t.view.scale=N);return B}),E=e.pagesFrom,D=e.pagesTo,A=!e.allPages;p=null;if(EditorUi.isElectronApp)PrintDialog.electronPrint(this,e);else{A&&(A=e.selection||E==u&&D==u);if(!A&&null!=this.pages&&this.pages.length){A=0;u=this.pages.length-1;e.allPages||(A=parseInt(E)-1,u=parseInt(D)-1);for(var P=A;P<=u;P++){var R=this.pages[P];E=R==
+this.currentPage?l:null;if(null==E){E=this.createTemporaryGraph(l.stylesheet);E.shapeForegroundColor=l.shapeForegroundColor;E.shapeBackgroundColor=l.shapeBackgroundColor;D=!0;A=!1;var T=null,L=null;null==R.viewState&&null==R.root&&this.updatePageRoot(R);null!=R.viewState&&(D=R.viewState.pageVisible,A=R.viewState.mathEnabled,T=R.viewState.background,L=R.viewState.backgroundImage,E.pageFormat=R.viewState.pageFormat,E.gridSize=R.viewState.gridSize);null!=L&&null!=L.originalSrc&&(L=this.createImageForPageLink(L.originalSrc,
+R));E.background=T;E.backgroundImage=null!=L?new mxImage(L.src,L.width,L.height,L.x,L.y):null;E.pageVisible=D;E.mathEnabled=A;var U=E.getGraphBounds;E.getGraphBounds=function(){var t=U.apply(this,arguments),B=this.backgroundImage;if(null!=B&&null!=B.width&&null!=B.height){var F=this.view.translate,J=this.view.scale;t=mxRectangle.fromRectangle(t);t.add(new mxRectangle((F.x+B.x)*J,(F.y+B.y)*J,B.width*J,B.height*J))}return t};var n=E.getGlobalVariable;E.getGlobalVariable=function(t){return"page"==t?
+R.getName():"pagenumber"==t?P+1:"pagecount"==t?null!=this.pages?this.pages.length:1:n.apply(this,arguments)};document.body.appendChild(E.container);this.updatePageRoot(R);E.model.setRoot(R.root)}p=z(E,p,P!=u,R.getId());E!=l&&E.container.parentNode.removeChild(E.container)}}else p=z(l);null==p||null==p.wnd?this.handleError({message:mxResources.get("errorUpdatingPreview")}):(p.mathEnabled&&(z=p.wnd.document,c||(p.wnd.IMMEDIATE_PRINT=!0),z.writeln('<script type="text/javascript" src="js/math-print.js">\x3c/script>')),
+p.closeDocument(),Graph.rewritePageLinks(p.wnd.document,!0),p.mathEnabled||c||PrintDialog.printPreview(p));return p}};EditorUi.prototype.addFileDropHandler=function(c){if(Graph.fileSupport)for(var e=null,g=0;g<c.length;g++)mxEvent.addListener(c[g],"dragleave",function(l){null!=e&&(e.parentNode.removeChild(e),e=null);l.stopPropagation();l.preventDefault()}),mxEvent.addListener(c[g],"dragover",mxUtils.bind(this,function(l){(this.editor.graph.isEnabled()||"1"!=urlParams.embed)&&null==e&&(!mxClient.IS_IE||
10<document.documentMode&&12>document.documentMode)&&(e=this.highlightElement());l.stopPropagation();l.preventDefault()})),mxEvent.addListener(c[g],"drop",mxUtils.bind(this,function(l){null!=e&&(e.parentNode.removeChild(e),e=null);if(this.editor.graph.isEnabled()||"1"!=urlParams.embed)if(0<l.dataTransfer.files.length)this.hideDialog(),"1"==urlParams.embed?this.importFiles(l.dataTransfer.files,0,0,this.maxImageSize,null,null,null,null,!mxEvent.isControlDown(l)&&!mxEvent.isShiftDown(l)):this.openFiles(l.dataTransfer.files,
-!0);else{var n=this.extractGraphModelFromEvent(l);if(null==n){var u=null!=l.dataTransfer?l.dataTransfer:l.clipboardData;null!=u&&(10==document.documentMode||11==document.documentMode?n=u.getData("Text"):(n=null,n=0<=mxUtils.indexOf(u.types,"text/uri-list")?l.dataTransfer.getData("text/uri-list"):0<=mxUtils.indexOf(u.types,"text/html")?u.getData("text/html"):null,null!=n&&0<n.length?(u=document.createElement("div"),u.innerHTML=Graph.sanitizeHtml(n),u=u.getElementsByTagName("img"),0<u.length&&(n=u[0].getAttribute("src"))):
-0<=mxUtils.indexOf(u.types,"text/plain")&&(n=u.getData("text/plain"))),null!=n&&(Editor.isPngDataUrl(n)?(n=Editor.extractGraphModelFromPng(n),null!=n&&0<n.length&&this.openLocalFile(n,null,!0)):this.isRemoteFileFormat(n)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(new mxXmlRequest(OPEN_URL,"format=xml&data="+encodeURIComponent(n))).send(mxUtils.bind(this,function(z){200<=z.getStatus()&&299>=z.getStatus()?this.openLocalFile(z.getText(),null,!0):this.showError(mxResources.get("error"),
-413==z.getStatus()?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))})):/^https?:\/\//.test(n)&&(null==this.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(n):window.geOpenWindow((mxClient.IS_CHROMEAPP?EditorUi.drawHost+"/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(n)))))}else this.openLocalFile(n,null,!0)}l.stopPropagation();l.preventDefault()}))};EditorUi.prototype.highlightElement=function(c){var e=0,g=0;if(null==c){var l=document.body;
-var n=document.documentElement;var u=(l.clientWidth||n.clientWidth)-3;l=Math.max(l.clientHeight||0,n.clientHeight)-3}else e=c.offsetTop,g=c.offsetLeft,u=c.clientWidth,l=c.clientHeight;n=document.createElement("div");n.style.zIndex=mxPopupMenu.prototype.zIndex+2;n.style.border="3px dotted rgb(254, 137, 12)";n.style.pointerEvents="none";n.style.position="absolute";n.style.top=e+"px";n.style.left=g+"px";n.style.width=Math.max(0,u-3)+"px";n.style.height=Math.max(0,l-3)+"px";null!=c&&c.parentNode==this.editor.graph.container?
-this.editor.graph.container.appendChild(n):document.body.appendChild(n);return n};EditorUi.prototype.stringToCells=function(c){c=mxUtils.parseXml(c);var e=this.editor.extractGraphModel(c.documentElement);c=[];if(null!=e){var g=new mxCodec(e.ownerDocument),l=new mxGraphModel;g.decode(e,l);e=l.getChildAt(l.getRoot(),0);for(g=0;g<l.getChildCount(e);g++)c.push(l.getChildAt(e,g))}return c};EditorUi.prototype.openFileHandle=function(c,e,g,l,n,u){if(null!=e&&0<e.length){if(!this.useCanvasForExport&&/(\.png)$/i.test(e)||
-/(\.pdf)$/i.test(e))e=e.substring(0,e.length-4),/(\.drawio)$/i.test(e)||(e+=".drawio");var z=mxUtils.bind(this,function(C){e=0<=e.lastIndexOf(".")?e.substring(0,e.lastIndexOf("."))+".drawio":e+".drawio";if("<mxlibrary"==C.substring(0,10)){null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,l);try{this.loadLibrary(new LocalLibrary(this,C,e)),this.showSidebar()}catch(A){this.handleError(A,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(C,
-e,l)});if(EditorUi.isVisioFilename(e))this.importVisio(g,mxUtils.bind(this,function(C){this.spinner.stop();z(C)}));else if(/(\.*<graphml )/.test(c))this.importGraphML(c,mxUtils.bind(this,function(C){this.spinner.stop();z(C)}));else if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,e))this.isOffline()?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(g,mxUtils.bind(this,function(C){4==C.readyState&&(this.spinner.stop(),
-200<=C.status&&299>=C.status?z(C.responseText):this.handleError({message:mxResources.get(413==C.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(c))/(\.json)$/i.test(e)&&(e=e.substring(0,e.length-5)+".drawio"),this.convertLucidChart(c,mxUtils.bind(this,function(C){this.spinner.stop();this.openLocalFile(C,e,l)}),mxUtils.bind(this,function(C){this.spinner.stop();this.handleError(C)}));else if("<mxlibrary"==c.substring(0,10)){this.spinner.stop();
-null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,l);try{this.loadLibrary(new LocalLibrary(this,c,g.name)),this.showSidebar()}catch(C){this.handleError(C,mxResources.get("errorLoadingFile"))}}else if(0==c.indexOf("PK"))this.importZipFile(g,mxUtils.bind(this,function(C){this.spinner.stop();z(C)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(c,e,l)}));else{if("image/png"==g.type.substring(0,9))c=this.extractGraphModelFromPng(c);
-else if("application/pdf"==g.type){var D=Editor.extractGraphModelFromPdf(c);null!=D&&(n=null,l=!0,c=D)}this.spinner.stop();this.openLocalFile(c,e,l,n,null!=n?g:null,u)}}};EditorUi.prototype.openFiles=function(c,e){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var g=0;g<c.length;g++)mxUtils.bind(this,function(l){var n=new FileReader;n.onload=mxUtils.bind(this,function(u){try{this.openFileHandle(u.target.result,l.name,l,e)}catch(z){this.handleError(z)}});n.onerror=mxUtils.bind(this,
-function(u){this.spinner.stop();this.handleError(u);window.openFile=null});"image"!==l.type.substring(0,5)&&"application/pdf"!==l.type||"image/svg"===l.type.substring(0,9)?n.readAsText(l):n.readAsDataURL(l)})(c[g])};EditorUi.prototype.openLocalFile=function(c,e,g,l,n,u){var z=this.getCurrentFile(),D=mxUtils.bind(this,function(){window.openFile=null;if(null==e&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var C=mxUtils.parseXml(c);null!=C&&(this.editor.setGraphXml(C.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,
-c,e||this.defaultFilename,g,l,n,u))});if(null!=c&&0<c.length)null==z||!z.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=l)?D():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=l)&&null!=z&&z.isModified()?this.confirm(mxResources.get("allChangesLost"),null,D,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(c,e),window.geOpenWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=
-z&&z.isModified()?this.confirm(mxResources.get("allChangesLost"),null,D,mxResources.get("cancel"),mxResources.get("discardChanges")):D()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var e=0;e<this.pages.length;e++)this.updatePageRoot(this.pages[e]),this.addBasenamesForCell(this.pages[e].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);e=[];for(var g in c)e.push(g);return e};EditorUi.prototype.addBasenamesForCell=
-function(c,e){function g(z){if(null!=z){var D=z.lastIndexOf(".");0<D&&(z=z.substring(D+1,z.length));null==e[z]&&(e[z]=!0)}}var l=this.editor.graph,n=l.getCellStyle(c);g(mxStencilRegistry.getBasenameForStencil(n[mxConstants.STYLE_SHAPE]));l.model.isEdge(c)&&(g(mxMarker.getPackageForType(n[mxConstants.STYLE_STARTARROW])),g(mxMarker.getPackageForType(n[mxConstants.STYLE_ENDARROW])));n=l.model.getChildCount(c);for(var u=0;u<n;u++)this.addBasenamesForCell(l.model.getChildAt(c,u),e)};EditorUi.prototype.setGraphEnabled=
+!0);else{var p=this.extractGraphModelFromEvent(l);if(null==p){var u=null!=l.dataTransfer?l.dataTransfer:l.clipboardData;null!=u&&(10==document.documentMode||11==document.documentMode?p=u.getData("Text"):(p=null,p=0<=mxUtils.indexOf(u.types,"text/uri-list")?l.dataTransfer.getData("text/uri-list"):0<=mxUtils.indexOf(u.types,"text/html")?u.getData("text/html"):null,null!=p&&0<p.length?(u=document.createElement("div"),u.innerHTML=Graph.sanitizeHtml(p),u=u.getElementsByTagName("img"),0<u.length&&(p=u[0].getAttribute("src"))):
+0<=mxUtils.indexOf(u.types,"text/plain")&&(p=u.getData("text/plain"))),null!=p&&(Editor.isPngDataUrl(p)?(p=Editor.extractGraphModelFromPng(p),null!=p&&0<p.length&&this.openLocalFile(p,null,!0)):this.isRemoteFileFormat(p)?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):(new mxXmlRequest(OPEN_URL,"format=xml&data="+encodeURIComponent(p))).send(mxUtils.bind(this,function(z){200<=z.getStatus()&&299>=z.getStatus()?this.openLocalFile(z.getText(),null,!0):this.showError(mxResources.get("error"),
+413==z.getStatus()?mxResources.get("diagramTooLarge"):mxResources.get("unknownError"))})):/^https?:\/\//.test(p)&&(null==this.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(p):window.geOpenWindow((mxClient.IS_CHROMEAPP?EditorUi.drawHost+"/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(p)))))}else this.openLocalFile(p,null,!0)}l.stopPropagation();l.preventDefault()}))};EditorUi.prototype.highlightElement=function(c){var e=0,g=0;if(null==c){var l=document.body;
+var p=document.documentElement;var u=(l.clientWidth||p.clientWidth)-3;l=Math.max(l.clientHeight||0,p.clientHeight)-3}else e=c.offsetTop,g=c.offsetLeft,u=c.clientWidth,l=c.clientHeight;p=document.createElement("div");p.style.zIndex=mxPopupMenu.prototype.zIndex+2;p.style.border="3px dotted rgb(254, 137, 12)";p.style.pointerEvents="none";p.style.position="absolute";p.style.top=e+"px";p.style.left=g+"px";p.style.width=Math.max(0,u-3)+"px";p.style.height=Math.max(0,l-3)+"px";null!=c&&c.parentNode==this.editor.graph.container?
+this.editor.graph.container.appendChild(p):document.body.appendChild(p);return p};EditorUi.prototype.stringToCells=function(c){c=mxUtils.parseXml(c);var e=this.editor.extractGraphModel(c.documentElement);c=[];if(null!=e){var g=new mxCodec(e.ownerDocument),l=new mxGraphModel;g.decode(e,l);e=l.getChildAt(l.getRoot(),0);for(g=0;g<l.getChildCount(e);g++)c.push(l.getChildAt(e,g))}return c};EditorUi.prototype.openFileHandle=function(c,e,g,l,p,u){if(null!=e&&0<e.length){if(!this.useCanvasForExport&&/(\.png)$/i.test(e)||
+/(\.pdf)$/i.test(e))e=e.substring(0,e.length-4),/(\.drawio)$/i.test(e)||(e+=".drawio");var z=mxUtils.bind(this,function(D){e=0<=e.lastIndexOf(".")?e.substring(0,e.lastIndexOf("."))+".drawio":e+".drawio";if("<mxlibrary"==D.substring(0,10)){null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,l);try{this.loadLibrary(new LocalLibrary(this,D,e)),this.showSidebar()}catch(A){this.handleError(A,mxResources.get("errorLoadingFile"))}}else this.openLocalFile(D,
+e,l)});if(EditorUi.isVisioFilename(e))this.importVisio(g,mxUtils.bind(this,function(D){this.spinner.stop();z(D)}));else if(/(\.*<graphml )/.test(c))this.importGraphML(c,mxUtils.bind(this,function(D){this.spinner.stop();z(D)}));else if(Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(c,e))this.isOffline()?(this.spinner.stop(),this.showError(mxResources.get("error"),mxResources.get("notInOffline"))):this.parseFile(g,mxUtils.bind(this,function(D){4==D.readyState&&(this.spinner.stop(),
+200<=D.status&&299>=D.status?z(D.responseText):this.handleError({message:mxResources.get(413==D.status?"drawingTooLarge":"invalidOrMissingFile")},mxResources.get("errorLoadingFile")))}));else if(this.isLucidChartData(c))/(\.json)$/i.test(e)&&(e=e.substring(0,e.length-5)+".drawio"),this.convertLucidChart(c,mxUtils.bind(this,function(D){this.spinner.stop();this.openLocalFile(D,e,l)}),mxUtils.bind(this,function(D){this.spinner.stop();this.handleError(D)}));else if("<mxlibrary"==c.substring(0,10)){this.spinner.stop();
+null==this.getCurrentFile()&&"1"!=urlParams.embed&&this.openLocalFile(this.emptyDiagramXml,this.defaultFilename,l);try{this.loadLibrary(new LocalLibrary(this,c,g.name)),this.showSidebar()}catch(D){this.handleError(D,mxResources.get("errorLoadingFile"))}}else if(0==c.indexOf("PK"))this.importZipFile(g,mxUtils.bind(this,function(D){this.spinner.stop();z(D)}),mxUtils.bind(this,function(){this.spinner.stop();this.openLocalFile(c,e,l)}));else{if("image/png"==g.type.substring(0,9))c=this.extractGraphModelFromPng(c);
+else if("application/pdf"==g.type){var E=Editor.extractGraphModelFromPdf(c);null!=E&&(p=null,l=!0,c=E)}this.spinner.stop();this.openLocalFile(c,e,l,p,null!=p?g:null,u)}}};EditorUi.prototype.openFiles=function(c,e){if(this.spinner.spin(document.body,mxResources.get("loading")))for(var g=0;g<c.length;g++)mxUtils.bind(this,function(l){var p=new FileReader;p.onload=mxUtils.bind(this,function(u){try{this.openFileHandle(u.target.result,l.name,l,e)}catch(z){this.handleError(z)}});p.onerror=mxUtils.bind(this,
+function(u){this.spinner.stop();this.handleError(u);window.openFile=null});"image"!==l.type.substring(0,5)&&"application/pdf"!==l.type||"image/svg"===l.type.substring(0,9)?p.readAsText(l):p.readAsDataURL(l)})(c[g])};EditorUi.prototype.openLocalFile=function(c,e,g,l,p,u){var z=this.getCurrentFile(),E=mxUtils.bind(this,function(){window.openFile=null;if(null==e&&null!=this.getCurrentFile()&&this.isDiagramEmpty()){var D=mxUtils.parseXml(c);null!=D&&(this.editor.setGraphXml(D.documentElement),this.editor.graph.selectAll())}else this.fileLoaded(new LocalFile(this,
+c,e||this.defaultFilename,g,l,p,u))});if(null!=c&&0<c.length)null==z||!z.isModified()&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=l)?E():(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=l)&&null!=z&&z.isModified()?this.confirm(mxResources.get("allChangesLost"),null,E,mxResources.get("cancel"),mxResources.get("discardChanges")):(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(c,e),window.geOpenWindow(this.getUrl(),null,mxUtils.bind(this,function(){null!=
+z&&z.isModified()?this.confirm(mxResources.get("allChangesLost"),null,E,mxResources.get("cancel"),mxResources.get("discardChanges")):E()})));else throw Error(mxResources.get("notADiagramFile"));};EditorUi.prototype.getBasenames=function(){var c={};if(null!=this.pages)for(var e=0;e<this.pages.length;e++)this.updatePageRoot(this.pages[e]),this.addBasenamesForCell(this.pages[e].root,c);else this.addBasenamesForCell(this.editor.graph.model.getRoot(),c);e=[];for(var g in c)e.push(g);return e};EditorUi.prototype.addBasenamesForCell=
+function(c,e){function g(z){if(null!=z){var E=z.lastIndexOf(".");0<E&&(z=z.substring(E+1,z.length));null==e[z]&&(e[z]=!0)}}var l=this.editor.graph,p=l.getCellStyle(c);g(mxStencilRegistry.getBasenameForStencil(p[mxConstants.STYLE_SHAPE]));l.model.isEdge(c)&&(g(mxMarker.getPackageForType(p[mxConstants.STYLE_STARTARROW])),g(mxMarker.getPackageForType(p[mxConstants.STYLE_ENDARROW])));p=l.model.getChildCount(c);for(var u=0;u<p;u++)this.addBasenamesForCell(l.model.getChildAt(c,u),e)};EditorUi.prototype.setGraphEnabled=
function(c){this.diagramContainer.style.visibility=c?"":"hidden";this.formatContainer.style.visibility=this.diagramContainer.style.visibility;this.sidebarContainer.style.display=c?"":"none";this.hsplit.style.display=this.sidebarContainer.style.display;this.editor.graph.setEnabled(c);null!=this.tabContainer&&(this.tabContainer.style.visibility=this.diagramContainer.style.visibility);c||this.hideWindows();this.editor.graph.sizeDidChange();this.resetScrollbars()};EditorUi.prototype.initializeEmbedMode=
-function(){this.setGraphEnabled(!1);if((window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var c=!1;this.installMessageHandler(mxUtils.bind(this,function(e,g,l,n){c||(c=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==e||0==e.length)e=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,e,{}));this.mode=App.MODE_EMBED;this.setFileData(e);if(n)try{var u=this.editor.graph;u.setGridEnabled(!1);
-u.pageVisible=!1;var z=u.model.cells,D;for(D in z){var C=z[D];null!=C&&null!=C.style&&(C.style+=";sketch=1;"+(-1==C.style.indexOf("fontFamily=")||-1<C.style.indexOf("fontFamily=Helvetica;")?"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;":""))}}catch(A){console.log(A)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();
+function(){this.setGraphEnabled(!1);if((window.opener||window.parent)!=window&&("1"!=urlParams.spin||this.spinner.spin(document.body,mxResources.get("loading")))){var c=!1;this.installMessageHandler(mxUtils.bind(this,function(e,g,l,p){c||(c=!0,this.spinner.stop(),this.addEmbedButtons(),this.setGraphEnabled(!0));if(null==e||0==e.length)e=this.emptyDiagramXml;this.setCurrentFile(new EmbedFile(this,e,{}));this.mode=App.MODE_EMBED;this.setFileData(e);if(p)try{var u=this.editor.graph;u.setGridEnabled(!1);
+u.pageVisible=!1;var z=u.model.cells,E;for(E in z){var D=z[E];null!=D&&null!=D.style&&(D.style+=";sketch=1;"+(-1==D.style.indexOf("fontFamily=")||-1<D.style.indexOf("fontFamily=Helvetica;")?"fontFamily=Architects Daughter;fontSource=https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DArchitects%2BDaughter;":""))}}catch(A){console.log(A)}this.editor.isChromelessView()?this.editor.graph.isLightboxView()&&this.lightboxFit():this.showLayersDialog();this.chromelessResize&&this.chromelessResize();this.editor.undoManager.clear();
this.editor.modified=null!=l?l:!1;this.updateUi();window.self!==window.top&&window.focus();null!=this.format&&this.format.refresh()}))}};EditorUi.prototype.showLayersDialog=function(){1<this.editor.graph.getModel().getChildCount(this.editor.graph.getModel().getRoot())&&(null==this.actions.layersWindow?this.actions.get("layers").funct():this.actions.layersWindow.window.setVisible(!0))};EditorUi.prototype.getPublicUrl=function(c,e){null!=c?this.spinner.spin(document.body,mxResources.get("loading"))&&
c.getPublicUrl(mxUtils.bind(this,function(g){this.spinner.stop();e(g)})):e(null)};EditorUi.prototype.createLoadMessage=function(c){var e=this.editor.graph;return{event:c,pageVisible:e.pageVisible,translate:e.view.translate,bounds:e.getGraphBounds(),currentPage:this.getSelectedPageIndex(),scale:e.view.scale,page:e.view.getBackgroundPageBounds()}};EditorUi.prototype.sendEmbeddedSvgExport=function(c){try{var e=this.editor.graph;e.isEditing()&&e.stopEditing(!e.isInvokesStopCellEditing());var g=window.opener||
-window.parent;if(this.editor.modified){var l=e.background;if(null==l||l==mxConstants.NONE)l=this.embedExportBackground;this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),e,null,!0,mxUtils.bind(this,function(n){g.postMessage(JSON.stringify({event:"export",point:this.embedExitPoint,exit:null!=c?!c:!0,data:Editor.createSvgDataUri(n)}),"*")}),null,null,!0,l,1,this.embedExportBorder,null,this.embedExportTheme)}else c||g.postMessage(JSON.stringify({event:"exit",point:this.embedExitPoint}),
-"*");c||(this.diagramContainer.removeAttribute("data-bounds"),Editor.inlineFullscreen=!1,e.model.clear(),this.editor.undoManager.clear(),this.setBackgroundImage(null),this.editor.modified=!1,"1"!=urlParams.embed&&this.fireEvent(new mxEventObject("editInlineStop")))}catch(n){c||this.handleError(n)}};EditorUi.prototype.installMessageHandler=function(c){var e=null,g=!1,l=!1,n=null,u=mxUtils.bind(this,function(C,A){this.editor.modified&&"0"!=urlParams.modified?null!=urlParams.modified&&this.updateStatus(mxUtils.bind(this,
-function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified)))})):this.clearStatus()});this.editor.graph.model.addListener(mxEvent.CHANGE,u);mxEvent.addListener(window,"message",mxUtils.bind(this,function(C){if(C.source==(window.opener||window.parent)){var A=C.data,Q=null,S=mxUtils.bind(this,function(aa){if(null!=aa&&"function"===typeof aa.charAt&&"<"!=aa.charAt(0))try{Editor.isPngDataUrl(aa)?aa=Editor.extractGraphModelFromPng(aa):"data:image/svg+xml;base64,"==aa.substring(0,
-26)?aa=atob(aa.substring(26)):"data:image/svg+xml;utf8,"==aa.substring(0,24)&&(aa=aa.substring(24)),null!=aa&&(""==aa.trim()?aa=null:"%"==aa.charAt(0)?aa=decodeURIComponent(aa):"<"!=aa.charAt(0)&&(aa=Graph.decompress(aa)))}catch(ia){}return aa});if("json"==urlParams.proto){var U=!1;try{A=JSON.parse(A),EditorUi.debug("EditorUi.installMessageHandler",[this],"evt",[C],"data",[A])}catch(aa){A=null}try{if(null==A)return;if("dialog"==A.action){this.showError(null!=A.titleKey?mxResources.get(A.titleKey):
-A.title,null!=A.messageKey?mxResources.get(A.messageKey):mxUtils.htmlEntities(A.message),null!=A.buttonKey?mxResources.get(A.buttonKey):A.button);null!=A.modified&&(this.editor.modified=A.modified);return}if("layout"==A.action){this.executeLayouts(this.editor.graph.createLayouts(A.layouts));return}if("prompt"==A.action){this.spinner.stop();var O=new FilenameDialog(this,A.defaultValue||"",null!=A.okKey?mxResources.get(A.okKey):A.ok,function(aa){null!=aa?z.postMessage(JSON.stringify({event:"prompt",
-value:aa,message:A}),"*"):z.postMessage(JSON.stringify({event:"prompt-cancel",message:A}),"*")},null!=A.titleKey?mxResources.get(A.titleKey):A.title,null,null,null,null,function(){z.postMessage(JSON.stringify({event:"prompt-cancel",message:A}),"*")});this.showDialog(O.container,300,80,!0,!1);O.init();return}if("draft"==A.action){var p=S(A.xml);this.spinner.stop();O=new DraftDialog(this,mxResources.get("draftFound",[A.name||this.defaultFilename]),p,mxUtils.bind(this,function(){this.hideDialog();z.postMessage(JSON.stringify({event:"draft",
-result:"edit",message:A}),"*")}),mxUtils.bind(this,function(){this.hideDialog();z.postMessage(JSON.stringify({event:"draft",result:"discard",message:A}),"*")}),A.editKey?mxResources.get(A.editKey):null,A.discardKey?mxResources.get(A.discardKey):null,A.ignore?mxUtils.bind(this,function(){this.hideDialog();z.postMessage(JSON.stringify({event:"draft",result:"ignore",message:A}),"*")}):null);this.showDialog(O.container,640,480,!0,!1,mxUtils.bind(this,function(aa){aa&&this.actions.get("exit").funct()}));
-try{O.init()}catch(aa){z.postMessage(JSON.stringify({event:"draft",error:aa.toString(),message:A}),"*")}return}if("template"==A.action){this.spinner.stop();var q=1==A.enableRecent,G=1==A.enableSearch,E=1==A.enableCustomTemp;O=new NewDialog(this,!1,A.templatesOnly?!1:null!=A.callback,mxUtils.bind(this,function(aa,ia,fa,ca){aa=aa||this.emptyDiagramXml;null!=A.callback?z.postMessage(JSON.stringify({event:"template",xml:aa,blank:aa==this.emptyDiagramXml,name:ia,tempUrl:fa,libs:ca,builtIn:!0,message:A}),
-"*"):(c(aa,C,aa!=this.emptyDiagramXml,A.toSketch),this.editor.modified||this.clearStatus())}),null,null,null,null,null,null,null,q?mxUtils.bind(this,function(aa){this.remoteInvoke("getRecentDiagrams",[null],null,aa,function(){aa(null,"Network Error!")})}):null,G?mxUtils.bind(this,function(aa,ia){this.remoteInvoke("searchDiagrams",[aa,null],null,ia,function(){ia(null,"Network Error!")})}):null,mxUtils.bind(this,function(aa,ia,fa){z.postMessage(JSON.stringify({event:"template",docUrl:aa,info:ia,name:fa}),
-"*")}),null,null,E?mxUtils.bind(this,function(aa){this.remoteInvoke("getCustomTemplates",null,null,aa,function(){aa({},0)})}):null,1==A.withoutType);this.showDialog(O.container,620,460,!0,!1,mxUtils.bind(this,function(aa){null!=this.sidebar&&this.sidebar.hideTooltip();aa&&this.actions.get("exit").funct()}));O.init();return}if("textContent"==A.action){var H=this.getDiagramTextContent();z.postMessage(JSON.stringify({event:"textContent",data:H,message:A}),"*");return}if("status"==A.action){this.updateStatus(mxUtils.bind(this,
-function(){null!=A.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(A.messageKey))):null!=A.message&&this.editor.setStatus(mxUtils.htmlEntities(A.message))}));null!=A.modified&&(this.editor.modified=A.modified);return}if("spinner"==A.action){var L=null!=A.messageKey?mxResources.get(A.messageKey):A.message;null==A.show||A.show?this.spinner.spin(document.body,L):this.spinner.stop();return}if("exit"==A.action){this.actions.get("exit").funct();return}if("viewport"==A.action){if(null!=
-A.viewport){var K=this.editor.graph,k=K.view.translate.x,y=K.view.translate.y;this.embedViewport=A.viewport;K.refresh();this.diagramContainer.scrollTop-=(y-K.view.translate.y)*K.view.scale;this.diagramContainer.scrollLeft-=(k-K.view.translate.x)*K.view.scale;this.fireEvent(new mxEventObject("embedViewportChanged"))}return}if("fullscreenChanged"==A.action){O=null;try{var F=this.diagramContainer.getAttribute("data-scrollState");null!=F&&(this.diagramContainer.removeAttribute("data-scrollState"),O=JSON.parse(F))}catch(aa){}Editor.inlineFullscreen=
-A.value;this.fireEvent(new mxEventObject("inlineFullscreenChanged"));null!=O&&this.restoreScrollState(O);return}if("snapshot"==A.action){this.sendEmbeddedSvgExport(!0);return}if("export"==A.action){if("png"==A.format||"xmlpng"==A.format){if(null==A.spin&&null==A.spinKey||this.spinner.spin(document.body,null!=A.spinKey?mxResources.get(A.spinKey):A.spin)){var M=null!=A.xml?A.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);K=this.editor.graph;var P=mxUtils.bind(this,function(aa,ia){if(A.withSvg)A.withSvg=
-!1,this.getEmbeddedSvg(M,this.editor.graph,null,!0,function(ca){P(aa,ca)},null,null,A.embedImages,this.editor.graph.background,A.scale,A.border,A.shadow,"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var fa=this.createLoadMessage("export");fa.format=A.format;fa.message=A;fa.data=aa;fa.svg=ia;fa.xml=M;z.postMessage(JSON.stringify(fa),"*")}}),R=mxUtils.bind(this,function(aa){null==aa&&(aa=Editor.blankImage);"xmlpng"==A.format&&(aa=Editor.writeGraphModelToPng(aa,"tEXt","mxfile",encodeURIComponent(M)));
-K!=this.editor.graph&&K.container.parentNode.removeChild(K.container);P(aa)}),T=A.pageId||(null!=this.pages?A.currentPage?this.currentPage.getId():this.pages[0].getId():null);if(this.isExportToCanvas()){var V=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=T){var aa=K.getGlobalVariable;K=this.createTemporaryGraph(K.getStylesheet());for(var ia,fa=0;fa<this.pages.length;fa++)if(this.pages[fa].getId()==T){ia=this.updatePageRoot(this.pages[fa]);break}null==ia&&(ia=this.currentPage);
-K.getGlobalVariable=function(xa){return"page"==xa?ia.getName():"pagenumber"==xa?1:aa.apply(this,arguments)};document.body.appendChild(K.container);K.model.setRoot(ia.root)}if(null!=A.layerIds){var ca=K.model,Ba=ca.getChildCells(ca.getRoot()),la={};for(fa=0;fa<A.layerIds.length;fa++)la[A.layerIds[fa]]=!0;for(fa=0;fa<Ba.length;fa++)ca.setVisible(Ba[fa],la[Ba[fa].id]||!1)}fa=null;A.keepTheme&&(fa=Editor.isDarkMode()?"dark":"light");this.editor.exportToCanvas(mxUtils.bind(this,function(xa){R(xa.toDataURL("image/png"))}),
-A.width,null,A.background,mxUtils.bind(this,function(){R(null)}),null,null,A.scale,A.transparent,A.shadow,null,K,A.border,null,A.grid,fa)});null!=A.xml&&0<A.xml.length&&(g=!0,this.setFileData(M),g=!1);V()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==A.format?"1":"0")+(null!=T?"&pageId="+T:"")+(null!=A.layerIds&&0<A.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:A.layerIds})):"")+(null!=A.scale?"&scale="+A.scale:"")+"&base64=1&xml="+encodeURIComponent(M))).send(mxUtils.bind(this,
-function(aa){200<=aa.getStatus()&&299>=aa.getStatus()?P("data:image/png;base64,"+aa.getText()):R(null)}),mxUtils.bind(this,function(){R(null)}))}}else if(V=mxUtils.bind(this,function(){var aa=this.createLoadMessage("export");aa.message=A;if("html2"==A.format||"html"==A.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var ia=this.getXmlFileData();aa.xml=mxUtils.getXml(ia);aa.data=this.getFileData(null,null,!0,null,null,null,ia);aa.format=A.format}else if("html"==A.format)ia=this.editor.getGraphXml(),
-aa.data=this.getHtml(ia,this.editor.graph),aa.xml=mxUtils.getXml(ia),aa.format=A.format;else{mxSvgCanvas2D.prototype.foAltText=null;ia=null!=A.background?A.background:this.editor.graph.background;ia==mxConstants.NONE&&(ia=null);aa.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);aa.format="svg";var fa=mxUtils.bind(this,function(Ba){this.editor.graph.setEnabled(!0);this.spinner.stop();aa.data=Editor.createSvgDataUri(Ba);z.postMessage(JSON.stringify(aa),"*")}),ca="auto";A.keepTheme&&
-(ca=Editor.isDarkMode()?"dark":"light");null!=A.theme&&(ca=A.theme);if("xmlsvg"==A.format){if(null==A.spin&&null==A.spinKey||this.spinner.spin(document.body,null!=A.spinKey?mxResources.get(A.spinKey):A.spin)){ca=null;if(this.isAutoDarkMode()||Editor.isDarkMode())ca="auto";null!=A.theme&&(ca=A.theme);this.getEmbeddedSvg(aa.xml,this.editor.graph,null,!0,fa,null,null,A.embedImages,ia,A.scale,A.border,A.shadow,ca)}}else if(null==A.spin&&null==A.spinKey||this.spinner.spin(document.body,null!=A.spinKey?
-mxResources.get(A.spinKey):A.spin))this.editor.graph.setEnabled(!1),ia=this.editor.graph.getSvg(ia,A.scale,A.border,null,null,null,null,null,null,this.editor.graph.shadowVisible||A.shadow,null,ca),(this.editor.graph.shadowVisible||A.shadow)&&this.editor.graph.addSvgShadow(ia),this.embedFonts(ia,mxUtils.bind(this,function(Ba){A.embedImages||null==A.embedImages?this.editor.convertImages(Ba,mxUtils.bind(this,function(la){fa(mxUtils.getXml(la))})):fa(mxUtils.getXml(Ba))}));return}z.postMessage(JSON.stringify(aa),
-"*")}),null!=A.xml&&0<A.xml.length){if(this.editor.graph.mathEnabled){var W=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){W.apply(this,arguments);V()}}g=!0;this.setFileData(A.xml);g=!1;this.editor.graph.mathEnabled||V()}else V();return}if("load"==A.action){U=A.toSketch;l=1==A.autosave;this.hideDialog();null!=A.modified&&null==urlParams.modified&&(urlParams.modified=A.modified);null!=A.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=A.saveAndExit);if("1"==urlParams.saveAndExit||
+window.parent;if(this.editor.modified){var l=e.background;if(null==l||l==mxConstants.NONE)l=this.embedExportBackground;this.getEmbeddedSvg(this.getFileData(!0,null,null,null,null,null,null,null,null,!1),e,null,!0,mxUtils.bind(this,function(p){g.postMessage(JSON.stringify({event:"export",point:this.embedExitPoint,exit:null!=c?!c:!0,data:Editor.createSvgDataUri(p)}),"*")}),null,null,!0,l,1,this.embedExportBorder,null,this.embedExportTheme)}else c||g.postMessage(JSON.stringify({event:"exit",point:this.embedExitPoint}),
+"*");c||(this.diagramContainer.removeAttribute("data-bounds"),Editor.inlineFullscreen=!1,e.model.clear(),this.editor.undoManager.clear(),this.setBackgroundImage(null),this.editor.modified=!1,"1"!=urlParams.embed&&this.fireEvent(new mxEventObject("editInlineStop")))}catch(p){c||this.handleError(p)}};EditorUi.prototype.installMessageHandler=function(c){var e=null,g=!1,l=!1,p=null,u=mxUtils.bind(this,function(D,A){this.editor.modified&&"0"!=urlParams.modified?null!=urlParams.modified&&this.updateStatus(mxUtils.bind(this,
+function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(urlParams.modified)))})):this.clearStatus()});this.editor.graph.model.addListener(mxEvent.CHANGE,u);mxEvent.addListener(window,"message",mxUtils.bind(this,function(D){if(D.source==(window.opener||window.parent)){var A=D.data,P=null,R=mxUtils.bind(this,function(aa){if(null!=aa&&"function"===typeof aa.charAt&&"<"!=aa.charAt(0))try{Editor.isPngDataUrl(aa)?aa=Editor.extractGraphModelFromPng(aa):"data:image/svg+xml;base64,"==aa.substring(0,
+26)?aa=atob(aa.substring(26)):"data:image/svg+xml;utf8,"==aa.substring(0,24)&&(aa=aa.substring(24)),null!=aa&&(""==aa.trim()?aa=null:"%"==aa.charAt(0)?aa=decodeURIComponent(aa):"<"!=aa.charAt(0)&&(aa=Graph.decompress(aa)))}catch(ia){}return aa});if("json"==urlParams.proto){var T=!1;try{A=JSON.parse(A),EditorUi.debug("EditorUi.installMessageHandler",[this],"evt",[D],"data",[A])}catch(aa){A=null}try{if(null==A)return;if("dialog"==A.action){this.showError(null!=A.titleKey?mxResources.get(A.titleKey):
+A.title,null!=A.messageKey?mxResources.get(A.messageKey):mxUtils.htmlEntities(A.message),null!=A.buttonKey?mxResources.get(A.buttonKey):A.button);null!=A.modified&&(this.editor.modified=A.modified);return}if("layout"==A.action){this.executeLayouts(this.editor.graph.createLayouts(A.layouts));return}if("prompt"==A.action){this.spinner.stop();var L=new FilenameDialog(this,A.defaultValue||"",null!=A.okKey?mxResources.get(A.okKey):A.ok,function(aa){null!=aa?z.postMessage(JSON.stringify({event:"prompt",
+value:aa,message:A}),"*"):z.postMessage(JSON.stringify({event:"prompt-cancel",message:A}),"*")},null!=A.titleKey?mxResources.get(A.titleKey):A.title,null,null,null,null,function(){z.postMessage(JSON.stringify({event:"prompt-cancel",message:A}),"*")});this.showDialog(L.container,300,80,!0,!1);L.init();return}if("draft"==A.action){var U=R(A.xml);this.spinner.stop();L=new DraftDialog(this,mxResources.get("draftFound",[A.name||this.defaultFilename]),U,mxUtils.bind(this,function(){this.hideDialog();z.postMessage(JSON.stringify({event:"draft",
+result:"edit",message:A}),"*")}),mxUtils.bind(this,function(){this.hideDialog();z.postMessage(JSON.stringify({event:"draft",result:"discard",message:A}),"*")}),A.editKey?mxResources.get(A.editKey):null,A.discardKey?mxResources.get(A.discardKey):null,A.ignore?mxUtils.bind(this,function(){this.hideDialog();z.postMessage(JSON.stringify({event:"draft",result:"ignore",message:A}),"*")}):null);this.showDialog(L.container,640,480,!0,!1,mxUtils.bind(this,function(aa){aa&&this.actions.get("exit").funct()}));
+try{L.init()}catch(aa){z.postMessage(JSON.stringify({event:"draft",error:aa.toString(),message:A}),"*")}return}if("template"==A.action){this.spinner.stop();var n=1==A.enableRecent,t=1==A.enableSearch,B=1==A.enableCustomTemp;L=new NewDialog(this,!1,A.templatesOnly?!1:null!=A.callback,mxUtils.bind(this,function(aa,ia,fa,da){aa=aa||this.emptyDiagramXml;null!=A.callback?z.postMessage(JSON.stringify({event:"template",xml:aa,blank:aa==this.emptyDiagramXml,name:ia,tempUrl:fa,libs:da,builtIn:!0,message:A}),
+"*"):(c(aa,D,aa!=this.emptyDiagramXml,A.toSketch),this.editor.modified||this.clearStatus())}),null,null,null,null,null,null,null,n?mxUtils.bind(this,function(aa){this.remoteInvoke("getRecentDiagrams",[null],null,aa,function(){aa(null,"Network Error!")})}):null,t?mxUtils.bind(this,function(aa,ia){this.remoteInvoke("searchDiagrams",[aa,null],null,ia,function(){ia(null,"Network Error!")})}):null,mxUtils.bind(this,function(aa,ia,fa){z.postMessage(JSON.stringify({event:"template",docUrl:aa,info:ia,name:fa}),
+"*")}),null,null,B?mxUtils.bind(this,function(aa){this.remoteInvoke("getCustomTemplates",null,null,aa,function(){aa({},0)})}):null,1==A.withoutType);this.showDialog(L.container,620,460,!0,!1,mxUtils.bind(this,function(aa){null!=this.sidebar&&this.sidebar.hideTooltip();aa&&this.actions.get("exit").funct()}));L.init();return}if("textContent"==A.action){var F=this.getDiagramTextContent();z.postMessage(JSON.stringify({event:"textContent",data:F,message:A}),"*");return}if("status"==A.action){this.updateStatus(mxUtils.bind(this,
+function(){null!=A.messageKey?this.editor.setStatus(mxUtils.htmlEntities(mxResources.get(A.messageKey))):null!=A.message&&this.editor.setStatus(mxUtils.htmlEntities(A.message))}));null!=A.modified&&(this.editor.modified=A.modified);return}if("spinner"==A.action){var J=null!=A.messageKey?mxResources.get(A.messageKey):A.message;null==A.show||A.show?this.spinner.spin(document.body,J):this.spinner.stop();return}if("exit"==A.action){this.actions.get("exit").funct();return}if("viewport"==A.action){if(null!=
+A.viewport){var K=this.editor.graph,k=K.view.translate.x,v=K.view.translate.y;this.embedViewport=A.viewport;K.refresh();this.diagramContainer.scrollTop-=(v-K.view.translate.y)*K.view.scale;this.diagramContainer.scrollLeft-=(k-K.view.translate.x)*K.view.scale;this.fireEvent(new mxEventObject("embedViewportChanged"))}return}if("fullscreenChanged"==A.action){L=null;try{var G=this.diagramContainer.getAttribute("data-scrollState");null!=G&&(this.diagramContainer.removeAttribute("data-scrollState"),L=JSON.parse(G))}catch(aa){}Editor.inlineFullscreen=
+A.value;this.fireEvent(new mxEventObject("inlineFullscreenChanged"));null!=L&&this.restoreScrollState(L);return}if("snapshot"==A.action){this.sendEmbeddedSvgExport(!0);return}if("export"==A.action){if("png"==A.format||"xmlpng"==A.format){if(null==A.spin&&null==A.spinKey||this.spinner.spin(document.body,null!=A.spinKey?mxResources.get(A.spinKey):A.spin)){var N=null!=A.xml?A.xml:this.getFileData(!0);this.editor.graph.setEnabled(!1);K=this.editor.graph;var O=mxUtils.bind(this,function(aa,ia){if(A.withSvg)A.withSvg=
+!1,this.getEmbeddedSvg(N,this.editor.graph,null,!0,function(da){O(aa,da)},null,null,A.embedImages,this.editor.graph.background,A.scale,A.border,A.shadow,"auto");else{this.editor.graph.setEnabled(!0);this.spinner.stop();var fa=this.createLoadMessage("export");fa.format=A.format;fa.message=A;fa.data=aa;fa.svg=ia;fa.xml=N;z.postMessage(JSON.stringify(fa),"*")}}),Q=mxUtils.bind(this,function(aa){null==aa&&(aa=Editor.blankImage);"xmlpng"==A.format&&(aa=Editor.writeGraphModelToPng(aa,"tEXt","mxfile",encodeURIComponent(N)));
+K!=this.editor.graph&&K.container.parentNode.removeChild(K.container);O(aa)}),S=A.pageId||(null!=this.pages?A.currentPage?this.currentPage.getId():this.pages[0].getId():null);if(this.isExportToCanvas()){var V=mxUtils.bind(this,function(){if(null!=this.pages&&this.currentPage.getId()!=S){var aa=K.getGlobalVariable;K=this.createTemporaryGraph(K.getStylesheet());for(var ia,fa=0;fa<this.pages.length;fa++)if(this.pages[fa].getId()==S){ia=this.updatePageRoot(this.pages[fa]);break}null==ia&&(ia=this.currentPage);
+K.getGlobalVariable=function(oa){return"page"==oa?ia.getName():"pagenumber"==oa?1:aa.apply(this,arguments)};document.body.appendChild(K.container);K.model.setRoot(ia.root)}if(null!=A.layerIds){var da=K.model,za=da.getChildCells(da.getRoot()),va={};for(fa=0;fa<A.layerIds.length;fa++)va[A.layerIds[fa]]=!0;for(fa=0;fa<za.length;fa++)da.setVisible(za[fa],va[za[fa].id]||!1)}fa=null;A.keepTheme&&(fa=Editor.isDarkMode()?"dark":"light");this.editor.exportToCanvas(mxUtils.bind(this,function(oa){Q(oa.toDataURL("image/png"))}),
+A.width,null,A.background,mxUtils.bind(this,function(){Q(null)}),null,null,A.scale,A.transparent,A.shadow,null,K,A.border,null,A.grid,fa)});null!=A.xml&&0<A.xml.length&&(g=!0,this.setFileData(N),g=!1);V()}else(new mxXmlRequest(EXPORT_URL,"format=png&embedXml="+("xmlpng"==A.format?"1":"0")+(null!=S?"&pageId="+S:"")+(null!=A.layerIds&&0<A.layerIds.length?"&extras="+encodeURIComponent(JSON.stringify({layerIds:A.layerIds})):"")+(null!=A.scale?"&scale="+A.scale:"")+"&base64=1&xml="+encodeURIComponent(N))).send(mxUtils.bind(this,
+function(aa){200<=aa.getStatus()&&299>=aa.getStatus()?O("data:image/png;base64,"+aa.getText()):Q(null)}),mxUtils.bind(this,function(){Q(null)}))}}else if(V=mxUtils.bind(this,function(){var aa=this.createLoadMessage("export");aa.message=A;if("html2"==A.format||"html"==A.format&&("0"!=urlParams.pages||null!=this.pages&&1<this.pages.length)){var ia=this.getXmlFileData();aa.xml=mxUtils.getXml(ia);aa.data=this.getFileData(null,null,!0,null,null,null,ia);aa.format=A.format}else if("html"==A.format)ia=this.editor.getGraphXml(),
+aa.data=this.getHtml(ia,this.editor.graph),aa.xml=mxUtils.getXml(ia),aa.format=A.format;else{mxSvgCanvas2D.prototype.foAltText=null;ia=null!=A.background?A.background:this.editor.graph.background;ia==mxConstants.NONE&&(ia=null);aa.xml=this.getFileData(!0,null,null,null,null,null,null,null,null,!1);aa.format="svg";var fa=mxUtils.bind(this,function(za){this.editor.graph.setEnabled(!0);this.spinner.stop();aa.data=Editor.createSvgDataUri(za);z.postMessage(JSON.stringify(aa),"*")}),da="auto";A.keepTheme&&
+(da=Editor.isDarkMode()?"dark":"light");null!=A.theme&&(da=A.theme);if("xmlsvg"==A.format){if(null==A.spin&&null==A.spinKey||this.spinner.spin(document.body,null!=A.spinKey?mxResources.get(A.spinKey):A.spin)){da=null;if(this.isAutoDarkMode()||Editor.isDarkMode())da="auto";null!=A.theme&&(da=A.theme);this.getEmbeddedSvg(aa.xml,this.editor.graph,null,!0,fa,null,null,A.embedImages,ia,A.scale,A.border,A.shadow,da)}}else if(null==A.spin&&null==A.spinKey||this.spinner.spin(document.body,null!=A.spinKey?
+mxResources.get(A.spinKey):A.spin))this.editor.graph.setEnabled(!1),ia=this.editor.graph.getSvg(ia,A.scale,A.border,null,null,null,null,null,null,this.editor.graph.shadowVisible||A.shadow,null,da),(this.editor.graph.shadowVisible||A.shadow)&&this.editor.graph.addSvgShadow(ia),this.embedFonts(ia,mxUtils.bind(this,function(za){A.embedImages||null==A.embedImages?this.editor.convertImages(za,mxUtils.bind(this,function(va){fa(mxUtils.getXml(va))})):fa(mxUtils.getXml(za))}));return}z.postMessage(JSON.stringify(aa),
+"*")}),null!=A.xml&&0<A.xml.length){if(this.editor.graph.mathEnabled){var W=Editor.onMathJaxDone;Editor.onMathJaxDone=function(){W.apply(this,arguments);V()}}g=!0;this.setFileData(A.xml);g=!1;this.editor.graph.mathEnabled||V()}else V();return}if("load"==A.action){T=A.toSketch;l=1==A.autosave;this.hideDialog();null!=A.modified&&null==urlParams.modified&&(urlParams.modified=A.modified);null!=A.saveAndExit&&null==urlParams.saveAndExit&&(urlParams.saveAndExit=A.saveAndExit);if("1"==urlParams.saveAndExit||
"1"==urlParams.publishClose)if(this.actions.get("save").shortcut=null,!this.editor.chromeless||this.editor.editable)this.keyHandler.bindAction(83,!0,"saveAndExit"),"1"!=urlParams.noSaveBtn&&(this.actions.get("save").shortcut=Editor.ctrlKey+"+Shift+S",this.keyHandler.bindAction(83,!0,"save",!0));null!=A.noSaveBtn&&null==urlParams.noSaveBtn&&(urlParams.noSaveBtn=A.noSaveBtn);if(null!=A.rough){var X=Editor.sketchMode;this.doSetSketchMode(A.rough);X!=Editor.sketchMode&&this.fireEvent(new mxEventObject("sketchModeChanged"))}null!=
-A.dark&&this.setDarkMode(A.dark);null!=A.border&&(this.embedExportBorder=A.border);null!=A.theme&&(this.embedExportTheme=A.theme);null!=A.background&&(this.embedExportBackground=A.background);null!=A.viewport&&(this.embedViewport=A.viewport);this.embedExitPoint=null;if(null!=A.rect){var Y=this.embedExportBorder;this.diagramContainer.style.left=Math.max(60,A.rect.left)+"px";this.diagramContainer.style.top=Math.max(40,A.rect.top)+"px";this.minInlineWidth=A.minWidth;this.minInlineHeight=A.minHeight;
-this.diagramContainer.style.border="2px solid #295fcc";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";var Z=A.maxFitScale,da=A.rect.width+2*Y,ea=A.rect.height+2*Y;Q=mxUtils.bind(this,function(){var aa=mxUtils.getDocumentSize();da=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,da):da,aa.width-80);aa=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,ea):ea,aa.height-80);this.diagramContainer.style.width=da+"px";this.diagramContainer.style.height=
-aa+"px";var ia=this.editor.graph;aa=ia.maxFitScale;ia.maxFitScale=Z;ia.fit(2*Y,null,null,null,null,null,ea);this.setPageVisible(!1);if(null!=this.minInlineWidth&&ia.getGraphBounds().width<this.minInlineWidth){var fa=ia.container.scrollTop;this.resetScrollbars();ia.container.scrollTop=fa}ia.maxFitScale=aa;ia.container.scrollTop-=Y;ia.container.scrollLeft-=Y;window.setTimeout(mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("editInlineStart","data",[A]));ia.container.focus();null!=this.formatWindow&&
-null!=this.formatWindow.window&&this.formatWindow.window.isVisible()&&(this.formatWindow.window.div.style.top=ia.container.style.top);var ca=ia.getGraphBounds();ia.container.clientWidth>ca.width+2*Y&&(ia.container.scrollLeft=ca.x+(ca.width+Y-ia.container.clientWidth)/2)}),10)})}null!=A.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=A.noExitBtn);null!=A.title&&null!=this.buttonContainer&&this.setEmbedTitle(A.title);try{A.libs&&this.sidebar.showEntries(A.libs)}catch(aa){}A=null!=A.xmlpng?
-this.extractGraphModelFromPng(A.xmlpng):null!=A.descriptor?A.descriptor:A.xml}else{if("merge"==A.action){var ka=this.getCurrentFile();null!=ka&&(p=S(A.xml),null!=p&&""!=p&&ka.mergeFile(new LocalFile(this,p),function(){z.postMessage(JSON.stringify({event:"merge",message:A}),"*")},function(aa){z.postMessage(JSON.stringify({event:"merge",message:A,error:aa}),"*")}))}else"remoteInvokeReady"==A.action?this.handleRemoteInvokeReady(z):"remoteInvoke"==A.action?this.handleRemoteInvoke(A,C.origin):"remoteInvokeResponse"==
-A.action?this.handleRemoteInvokeResponse(A):z.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(A)}),"*");return}}catch(aa){this.handleError(aa)}}var ba=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),ha=mxUtils.bind(this,function(aa,ia){g=!0;try{c(aa,ia,null,U)}catch(fa){this.handleError(fa)}g=!1;null!=urlParams.modified&&this.clearStatus();n=ba();l&&null==e&&(e=mxUtils.bind(this,
-function(fa,ca){fa=ba();fa==n||g||(ca=this.createLoadMessage("autosave"),ca.xml=fa,(window.opener||window.parent).postMessage(JSON.stringify(ca),"*"));n=fa}),this.editor.graph.model.addListener(mxEvent.CHANGE,e),this.editor.graph.addListener("gridSizeChanged",e),this.editor.graph.addListener("shadowVisibleChanged",e),this.addListener("pageFormatChanged",e),this.addListener("pageScaleChanged",e),this.addListener("backgroundColorChanged",e),this.addListener("backgroundImageChanged",e),this.addListener("foldingEnabledChanged",
-e),this.addListener("mathEnabledChanged",e),this.addListener("gridEnabledChanged",e),this.addListener("guidesEnabledChanged",e),this.addListener("pageViewChanged",e));if("1"==urlParams.returnbounds||"json"==urlParams.proto)ia=this.createLoadMessage("load"),ia.xml=aa,z.postMessage(JSON.stringify(ia),"*");null!=Q&&Q()});null!=A&&"function"===typeof A.substring&&"data:application/vnd.visio;base64,"==A.substring(0,34)?(S="0M8R4KGxGuE"==A.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(A.substring(A.indexOf(",")+
-1)),function(aa){ha(aa,C)},mxUtils.bind(this,function(aa){this.handleError(aa)}),S)):null!=A&&"function"===typeof A.substring&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(A,"")?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(A,mxUtils.bind(this,function(aa){4==aa.readyState&&(200<=aa.status&&299>=aa.status&&"<mxGraphModel"==aa.responseText.substring(0,13)?ha(aa.responseText,C):this.handleError({message:413==aa.status?mxResources.get("diagramTooLarge"):
-mxResources.get("unknownError")}))}),""):null!=A&&"function"===typeof A.substring&&this.isLucidChartData(A)?this.convertLucidChart(A,mxUtils.bind(this,function(aa){ha(aa)}),mxUtils.bind(this,function(aa){this.handleError(aa)})):null==A||"object"!==typeof A||null==A.format||null==A.data&&null==A.url?(A=S(A),ha(A,C)):this.loadDescriptor(A,mxUtils.bind(this,function(aa){ha(ba(),C)}),mxUtils.bind(this,function(aa){this.handleError(aa,mxResources.get("errorLoadingFile"))}))}}));var z=window.opener||window.parent;
-u="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";z.postMessage(u,"*");if("json"==urlParams.proto){var D=this.editor.graph.openLink;this.editor.graph.openLink=function(C,A,Q){D.apply(this,arguments);z.postMessage(JSON.stringify({event:"openLink",href:C,target:A,allowOpener:Q}),"*")}}};EditorUi.prototype.createEmbedButton=function(c,e,g,l){var n=document.createElement("button");n.className="geEmbedBtn geBtn";n.setAttribute("title",c+(null!=g?" ("+g+")":""));mxUtils.write(n,
-c);l&&n.classList.add("gePrimaryBtn");mxEvent.addListener(n,"click",e);return n};EditorUi.prototype.setEmbedTitle=function(c){c=this.createStatusDiv(c);null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan);"kennedy"==Editor.currentTheme||"atlas"==Editor.currentTheme?this.menubarContainer.appendChild(c):this.buttonContainer.appendChild(c);this.embedFilenameSpan=c};EditorUi.prototype.addEmbedButtons=function(){this.dependsOnLanguage(mxUtils.bind(this,function(){var c=
+A.dark&&this.setDarkMode(A.dark);null!=A.border&&(this.embedExportBorder=A.border);null!=A.theme&&(this.embedExportTheme=A.theme);null!=A.background&&(this.embedExportBackground=A.background);null!=A.viewport&&(this.embedViewport=A.viewport);this.embedExitPoint=null;if(null!=A.rect){var Z=this.embedExportBorder;this.diagramContainer.style.left=Math.max(60,A.rect.left)+"px";this.diagramContainer.style.top=Math.max(40,A.rect.top)+"px";this.minInlineWidth=A.minWidth;this.minInlineHeight=A.minHeight;
+this.diagramContainer.style.border="2px solid #295fcc";this.diagramContainer.style.bottom="";this.diagramContainer.style.right="";var Y=A.maxFitScale,ea=A.rect.width+2*Z,ca=A.rect.height+2*Z;P=mxUtils.bind(this,function(){var aa=mxUtils.getDocumentSize();ea=Math.min(null!=this.minInlineWidth?Math.max(this.minInlineWidth,ea):ea,aa.width-80);aa=Math.min(null!=this.minInlineHeight?Math.max(this.minInlineHeight,ca):ca,aa.height-80);this.diagramContainer.style.width=ea+"px";this.diagramContainer.style.height=
+aa+"px";var ia=this.editor.graph;aa=ia.maxFitScale;ia.maxFitScale=Y;ia.fit(2*Z,null,null,null,null,null,ca);this.setPageVisible(!1);if(null!=this.minInlineWidth&&ia.getGraphBounds().width<this.minInlineWidth){var fa=ia.container.scrollTop;this.resetScrollbars();ia.container.scrollTop=fa}ia.maxFitScale=aa;ia.container.scrollTop-=Z;ia.container.scrollLeft-=Z;window.setTimeout(mxUtils.bind(this,function(){this.fireEvent(new mxEventObject("editInlineStart","data",[A]));ia.container.focus();null!=this.formatWindow&&
+null!=this.formatWindow.window&&this.formatWindow.window.isVisible()&&(this.formatWindow.window.div.style.top=ia.container.style.top);var da=ia.getGraphBounds();ia.container.clientWidth>da.width+2*Z&&(ia.container.scrollLeft=da.x+(da.width+Z-ia.container.clientWidth)/2)}),10)})}null!=A.noExitBtn&&null==urlParams.noExitBtn&&(urlParams.noExitBtn=A.noExitBtn);null!=A.title&&null!=this.buttonContainer&&this.setEmbedTitle(A.title);try{A.libs&&this.sidebar.showEntries(A.libs)}catch(aa){}A=null!=A.xmlpng?
+this.extractGraphModelFromPng(A.xmlpng):null!=A.descriptor?A.descriptor:A.xml}else{if("merge"==A.action){var ka=this.getCurrentFile();null!=ka&&(U=R(A.xml),null!=U&&""!=U&&ka.mergeFile(new LocalFile(this,U),function(){z.postMessage(JSON.stringify({event:"merge",message:A}),"*")},function(aa){z.postMessage(JSON.stringify({event:"merge",message:A,error:aa}),"*")}))}else"remoteInvokeReady"==A.action?this.handleRemoteInvokeReady(z):"remoteInvoke"==A.action?this.handleRemoteInvoke(A,D.origin):"remoteInvokeResponse"==
+A.action?this.handleRemoteInvokeResponse(A):z.postMessage(JSON.stringify({error:"unknownMessage",data:JSON.stringify(A)}),"*");return}}catch(aa){this.handleError(aa)}}var ba=mxUtils.bind(this,function(){return"0"!=urlParams.pages||null!=this.pages&&1<this.pages.length?this.getFileData(!0):mxUtils.getXml(this.editor.getGraphXml())}),ha=mxUtils.bind(this,function(aa,ia){g=!0;try{c(aa,ia,null,T)}catch(fa){this.handleError(fa)}g=!1;null!=urlParams.modified&&this.clearStatus();p=ba();l&&null==e&&(e=mxUtils.bind(this,
+function(fa,da){fa=ba();fa==p||g||(da=this.createLoadMessage("autosave"),da.xml=fa,(window.opener||window.parent).postMessage(JSON.stringify(da),"*"));p=fa}),this.editor.graph.model.addListener(mxEvent.CHANGE,e),this.editor.graph.addListener("gridSizeChanged",e),this.editor.graph.addListener("shadowVisibleChanged",e),this.addListener("pageFormatChanged",e),this.addListener("pageScaleChanged",e),this.addListener("backgroundColorChanged",e),this.addListener("backgroundImageChanged",e),this.addListener("foldingEnabledChanged",
+e),this.addListener("mathEnabledChanged",e),this.addListener("gridEnabledChanged",e),this.addListener("guidesEnabledChanged",e),this.addListener("pageViewChanged",e));if("1"==urlParams.returnbounds||"json"==urlParams.proto)ia=this.createLoadMessage("load"),ia.xml=aa,z.postMessage(JSON.stringify(ia),"*");null!=P&&P()});null!=A&&"function"===typeof A.substring&&"data:application/vnd.visio;base64,"==A.substring(0,34)?(R="0M8R4KGxGuE"==A.substring(34,45)?"raw.vsd":"raw.vsdx",this.importVisio(this.base64ToBlob(A.substring(A.indexOf(",")+
+1)),function(aa){ha(aa,D)},mxUtils.bind(this,function(aa){this.handleError(aa)}),R)):null!=A&&"function"===typeof A.substring&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(A,"")?this.isOffline()?this.showError(mxResources.get("error"),mxResources.get("notInOffline")):this.parseFileData(A,mxUtils.bind(this,function(aa){4==aa.readyState&&(200<=aa.status&&299>=aa.status&&"<mxGraphModel"==aa.responseText.substring(0,13)?ha(aa.responseText,D):this.handleError({message:413==aa.status?mxResources.get("diagramTooLarge"):
+mxResources.get("unknownError")}))}),""):null!=A&&"function"===typeof A.substring&&this.isLucidChartData(A)?this.convertLucidChart(A,mxUtils.bind(this,function(aa){ha(aa)}),mxUtils.bind(this,function(aa){this.handleError(aa)})):null==A||"object"!==typeof A||null==A.format||null==A.data&&null==A.url?(A=R(A),ha(A,D)):this.loadDescriptor(A,mxUtils.bind(this,function(aa){ha(ba(),D)}),mxUtils.bind(this,function(aa){this.handleError(aa,mxResources.get("errorLoadingFile"))}))}}));var z=window.opener||window.parent;
+u="json"==urlParams.proto?JSON.stringify({event:"init"}):urlParams.ready||"ready";z.postMessage(u,"*");if("json"==urlParams.proto){var E=this.editor.graph.openLink;this.editor.graph.openLink=function(D,A,P){E.apply(this,arguments);z.postMessage(JSON.stringify({event:"openLink",href:D,target:A,allowOpener:P}),"*")}}};EditorUi.prototype.createEmbedButton=function(c,e,g,l){var p=document.createElement("button");p.className="geEmbedBtn geBtn";p.setAttribute("title",c+(null!=g?" ("+g+")":""));mxUtils.write(p,
+c);l&&p.classList.add("gePrimaryBtn");mxEvent.addListener(p,"click",e);return p};EditorUi.prototype.setEmbedTitle=function(c){c=this.createStatusDiv(c);null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode.removeChild(this.embedFilenameSpan);"kennedy"==Editor.currentTheme||"atlas"==Editor.currentTheme?this.menubarContainer.appendChild(c):this.buttonContainer.appendChild(c);this.embedFilenameSpan=c};EditorUi.prototype.addEmbedButtons=function(){this.dependsOnLanguage(mxUtils.bind(this,function(){var c=
null!=this.embedFilenameSpan&&this.embedFilenameSpan.parentNode==this.buttonContainer;this.buttonContainer.innerText="";c&&this.buttonContainer.appendChild(this.embedFilenameSpan);this.commentsSupported()&&null!=this.commentButton&&this.buttonContainer.appendChild(this.commentButton);"1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&this.buttonContainer.appendChild(this.createEmbedButton("1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,
Editor.ctrlKey+"+S",!0)):(this.buttonContainer.appendChild(this.createEmbedButton(mxResources.get("save"),mxUtils.bind(this,function(){this.actions.get("save").funct(!1)}),"1"==urlParams.saveAndExit?Editor.ctrlKey+"+Shift+S":Editor.ctrlKey+"+S",!0)),"1"==urlParams.saveAndExit&&this.buttonContainer.appendChild(this.createEmbedButton(mxResources.get("saveAndExit"),this.actions.get("saveAndExit").funct,Editor.ctrlKey+"+S")));"1"!=urlParams.noExitBtn&&this.buttonContainer.appendChild(this.createEmbedButton("1"==
urlParams.publishClose?mxResources.get("close"):mxResources.get("exit"),this.actions.get("exit").funct))}))};EditorUi.prototype.showImportCsvDialog=function(){null==this.importCsvDialog&&(this.importCsvDialog=new TextareaDialog(this,mxResources.get("csv")+":",Editor.defaultCsvValue,mxUtils.bind(this,function(c){this.importCsv(c)}),null,null,620,430,null,!0,!0,mxResources.get("import"),this.isOffline()?null:"https://drawio-app.com/import-from-csv-to-drawio/"));this.showDialog(this.importCsvDialog.container,
-640,520,!0,!0,null,null,null,null,!0);this.importCsvDialog.init()};EditorUi.prototype.showCustomLayoutDialog=function(c){this.loadOrgChartLayouts(mxUtils.bind(this,function(){var e=new TextareaDialog(this,mxResources.get("layout"),c,mxUtils.bind(this,function(g){if(0<g.length)try{var l=JSON.parse(g);this.executeLayouts(this.editor.graph.createLayouts(l));this.customLayoutConfig=l;this.hideDialog()}catch(n){this.handleError(n)}}),null,null,null,null,mxUtils.bind(this,function(g,l){var n=mxUtils.button(mxResources.get("copy"),
-mxUtils.bind(this,function(){try{var u=l.value;l.value=JSON.stringify(JSON.parse(u));l.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?l.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));l.value=u}catch(z){this.handleError(z)}}));n.setAttribute("title","copy");n.className="geBtn";g.appendChild(n)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(e.container,620,460,!0,!0);e.init()}))};
-EditorUi.prototype.loadOrgChartLayouts=function(c){this.createTimeout(null,mxUtils.bind(this,function(e){var g=mxUtils.bind(this,function(){this.loadingOrgChart=!1;e.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),this.spinner.stop(),c())}),l=mxUtils.bind(this,function(n){this.loadingOrgChart=!1;e.clear()&&this.handleError(n)});"undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0)?g():this.spinner.spin(document.body,mxResources.get("loading"))&&(this.loadingOrgChart=
+640,520,!0,!0,null,null,null,null,!0);this.importCsvDialog.init()};EditorUi.prototype.showCustomLayoutDialog=function(c){this.loadOrgChartLayouts(mxUtils.bind(this,function(){var e=new TextareaDialog(this,mxResources.get("layout"),c,mxUtils.bind(this,function(g){if(0<g.length)try{var l=JSON.parse(g);this.executeLayouts(this.editor.graph.createLayouts(l));this.customLayoutConfig=l;this.hideDialog()}catch(p){this.handleError(p)}}),null,null,null,null,mxUtils.bind(this,function(g,l){var p=mxUtils.button(mxResources.get("copy"),
+mxUtils.bind(this,function(){try{var u=l.value;l.value=JSON.stringify(JSON.parse(u));l.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?l.select():document.execCommand("selectAll",!1,null);document.execCommand("copy");this.alert(mxResources.get("copiedToClipboard"));l.value=u}catch(z){this.handleError(z)}}));p.setAttribute("title","copy");p.className="geBtn";g.appendChild(p)}),!0,null,null,"https://www.drawio.com/doc/faq/apply-layouts");this.showDialog(e.container,620,460,!0,!0);e.init()}))};
+EditorUi.prototype.loadOrgChartLayouts=function(c){this.createTimeout(null,mxUtils.bind(this,function(e){var g=mxUtils.bind(this,function(){this.loadingOrgChart=!1;e.clear()&&(Graph.layoutNames.push("mxOrgChartLayout"),this.spinner.stop(),c())}),l=mxUtils.bind(this,function(p){this.loadingOrgChart=!1;e.clear()&&this.handleError(p)});"undefined"!==typeof mxOrgChartLayout||this.loadingOrgChart||this.isOffline(!0)?g():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",g,null,null,null,l)},null,null,null,l)},null,null,null,l)},null,null,null,l):mxscript(window.DRAWIO_SERVER_URL+"js/orgchart.min.js",g,null,null,null,l))}),onerror)};EditorUi.prototype.importCsv=function(c,e){this.loadOrgChartLayouts(mxUtils.bind(this,function(){this.doImportCsv(c,
-e)}))};EditorUi.prototype.doImportCsv=function(c,e){try{var g=c.split("\n"),l=[],n=[],u=[],z={};if(0<g.length){var D={},C=this.editor.graph,A=null,Q=null,S=null,U=null,O=null,p=null,q=null,G="whiteSpace=wrap;html=1;",E=null,H=null,L="",K="auto",k="auto",y=!1,F=null,M=null,P=40,R=40,T=100,V=0,W=mxUtils.bind(this,function(){null!=e?e(Ka):(C.setSelectionCells(Ka),C.scrollCellToVisible(C.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),
-0)}),X=C.getFreeInsertPoint(),Y=X.x,Z=X.y;X=Z;var da=null,ea="auto";H=null;for(var ka=[],ba=null,ha=null,aa=0;aa<g.length&&"#"==g[aa].charAt(0);){c=g[aa].replace(/\r$/,"");for(aa++;aa<g.length&&"\\"==c.charAt(c.length-1)&&"#"==g[aa].charAt(0);)c=c.substring(0,c.length-1)+mxUtils.trim(g[aa].substring(1)),aa++;if("#"!=c.charAt(1)){var ia=c.indexOf(":");if(0<ia){var fa=mxUtils.trim(c.substring(1,ia)),ca=mxUtils.trim(c.substring(ia+1));"label"==fa?da=Graph.sanitizeHtml(ca):"labelname"==fa&&0<ca.length&&
-"-"!=ca?O=ca:"labels"==fa&&0<ca.length&&"-"!=ca?q=JSON.parse(ca):"style"==fa?Q=ca:"parentstyle"==fa?G=ca:"unknownStyle"==fa&&"-"!=ca?p=ca:"stylename"==fa&&0<ca.length&&"-"!=ca?U=ca:"styles"==fa&&0<ca.length&&"-"!=ca?S=JSON.parse(ca):"vars"==fa&&0<ca.length&&"-"!=ca?A=JSON.parse(ca):"identity"==fa&&0<ca.length&&"-"!=ca?E=ca:"parent"==fa&&0<ca.length&&"-"!=ca?H=ca:"namespace"==fa&&0<ca.length&&"-"!=ca?L=ca:"width"==fa?K=ca:"height"==fa?k=ca:"collapsed"==fa&&"-"!=ca?y="true"==ca:"left"==fa&&0<ca.length?
-F=ca:"top"==fa&&0<ca.length?M=ca:"ignore"==fa?ha=ca.split(","):"connect"==fa?ka.push(JSON.parse(ca)):"link"==fa?ba=ca:"padding"==fa?V=parseFloat(ca):"edgespacing"==fa?P=parseFloat(ca):"nodespacing"==fa?R=parseFloat(ca):"levelspacing"==fa?T=parseFloat(ca):"layout"==fa&&(ea=ca)}}}if(null==g[aa])throw Error(mxResources.get("invalidOrMissingFile"));var Ba=this.editor.csvToArray(g[aa].replace(/\r$/,""));ia=c=null;fa=[];for(ca=0;ca<Ba.length;ca++)E==Ba[ca]&&(c=ca),H==Ba[ca]&&(ia=ca),fa.push(mxUtils.trim(Ba[ca]).replace(/[^a-z0-9]+/ig,
-"_").replace(/^\d+/,"").replace(/_+$/,""));null==da&&(da="%"+fa[0]+"%");if(null!=ka)for(var la=0;la<ka.length;la++)null==D[ka[la].to]&&(D[ka[la].to]={});E=[];for(ca=aa+1;ca<g.length;ca++){var xa=this.editor.csvToArray(g[ca].replace(/\r$/,""));if(null==xa){var Aa=40<g[ca].length?g[ca].substring(0,40)+"...":g[ca];throw Error(Aa+" ("+ca+"):\n"+mxResources.get("containsValidationErrors"));}0<xa.length&&E.push(xa)}C.model.beginUpdate();try{for(ca=0;ca<E.length;ca++){xa=E[ca];var ma=null,ua=null!=c?L+xa[c]:
-null;g=!1;null!=ua&&(ma=C.model.getCell(ua),g=null==ma||0<=mxUtils.indexOf(l,ma));var ra=new mxCell(da,new mxGeometry(Y,X,0,0),Q||"whiteSpace=wrap;html=1;");ra.collapsed=y;ra.vertex=!0;ra.id=ua;null==ma||g||C.model.setCollapsed(ma,y);for(var oa=0;oa<xa.length;oa++)C.setAttributeForCell(ra,fa[oa],xa[oa]),null==ma||g||C.setAttributeForCell(ma,fa[oa],xa[oa]);if(null!=O&&null!=q){var Ea=q[ra.getAttribute(O)];null!=Ea&&(C.labelChanged(ra,Ea),null==ma||g||C.cellLabelChanged(ma,Ea))}if(null!=U&&null!=S){var va=
-S[ra.getAttribute(U)];null!=va&&(ra.style=va)}C.setAttributeForCell(ra,"placeholders","1");ra.style=C.replacePlaceholders(ra,ra.style,A);null==ma||g?C.fireEvent(new mxEventObject("cellsInserted","cells",[ra])):(C.model.setStyle(ma,ra.style),0>mxUtils.indexOf(u,ma)&&u.push(ma),C.fireEvent(new mxEventObject("cellsInserted","cells",[ma])));g=null!=ma;ma=ra;if(!g)for(la=0;la<ka.length;la++)D[ka[la].to][ma.getAttribute(ka[la].to)]=ma;null!=ba&&"link"!=ba&&(C.setLinkForCell(ma,ma.getAttribute(ba)),C.setAttributeForCell(ma,
-ba,null));var ya=this.editor.graph.getPreferredSizeForCell(ma);H=null!=ia?C.model.getCell(L+xa[ia]):null;if(ma.vertex){Aa=null!=H?0:Y;aa=null!=H?0:Z;null!=F&&null!=ma.getAttribute(F)&&(ma.geometry.x=Aa+parseFloat(ma.getAttribute(F)));null!=M&&null!=ma.getAttribute(M)&&(ma.geometry.y=aa+parseFloat(ma.getAttribute(M)));var za="@"==K.charAt(0)?ma.getAttribute(K.substring(1)):null;ma.geometry.width=null!=za&&"auto"!=za?parseFloat(ma.getAttribute(K.substring(1))):"auto"==K||"auto"==za?ya.width+V:parseFloat(K);
-var Ga="@"==k.charAt(0)?ma.getAttribute(k.substring(1)):null;ma.geometry.height=null!=Ga&&"auto"!=Ga&&"width"!=k?parseFloat(Ga):"auto"==k||"auto"==Ga?ya.height+V:"width"==k?ma.geometry.width:parseFloat(k);X+=ma.geometry.height+R}g?(null==z[ua]&&(z[ua]=[]),z[ua].push(ma)):(l.push(ma),null!=H?(H.style=C.replacePlaceholders(H,G,A),C.addCell(ma,H),n.push(H)):u.push(C.addCell(ma)))}for(ca=0;ca<n.length;ca++)za="@"==K.charAt(0)?n[ca].getAttribute(K.substring(1)):null,Ga="@"==k.charAt(0)?n[ca].getAttribute(k.substring(1)):
-null,"auto"!=K&&"auto"!=za||"auto"!=k&&"auto"!=Ga||C.updateGroupBounds([n[ca]],V,!0);var Ca=u.slice(),Ka=u.slice();for(la=0;la<ka.length;la++){var Ma=ka[la];for(ca=0;ca<l.length;ca++){ma=l[ca];var Da=mxUtils.bind(this,function(ja,sa,na){var pa=sa.getAttribute(na.from);if(null!=pa&&""!=pa){pa=pa.split(",");for(var qa=0;qa<pa.length;qa++){var ta=D[na.to][pa[qa]];if(null==ta&&null!=p){ta=new mxCell(pa[qa],new mxGeometry(Y,Z,0,0),p);ta.style=C.replacePlaceholders(sa,ta.style,A);var Fa=this.editor.graph.getPreferredSizeForCell(ta);
-ta.geometry.width=Fa.width+V;ta.geometry.height=Fa.height+V;D[na.to][pa[qa]]=ta;ta.vertex=!0;ta.id=pa[qa];u.push(C.addCell(ta))}if(null!=ta){Fa=na.label;null!=na.fromlabel&&(Fa=(sa.getAttribute(na.fromlabel)||"")+(Fa||""));null!=na.sourcelabel&&(Fa=C.replacePlaceholders(sa,na.sourcelabel,A)+(Fa||""));null!=na.tolabel&&(Fa=(Fa||"")+(ta.getAttribute(na.tolabel)||""));null!=na.targetlabel&&(Fa=(Fa||"")+C.replacePlaceholders(ta,na.targetlabel,A));var Ia="target"==na.placeholders==!na.invert?ta:ja;Ia=
-null!=na.style?C.replacePlaceholders(Ia,na.style,A):C.createCurrentEdgeStyle();Fa=C.insertEdge(null,null,Fa||"",na.invert?ta:ja,na.invert?ja:ta,Ia);if(null!=na.labels)for(Ia=0;Ia<na.labels.length;Ia++){var Ja=na.labels[Ia],Na=new mxCell(Ja.label||Ia,new mxGeometry(null!=Ja.x?Ja.x:0,null!=Ja.y?Ja.y:0,0,0),"resizable=0;html=1;");Na.vertex=!0;Na.connectable=!1;Na.geometry.relative=!0;null!=Ja.placeholders&&(Na.value=C.replacePlaceholders("target"==Ja.placeholders==!na.invert?ta:ja,Na.value,A));if(null!=
-Ja.dx||null!=Ja.dy)Na.geometry.offset=new mxPoint(null!=Ja.dx?Ja.dx:0,null!=Ja.dy?Ja.dy:0);Fa.insert(Na)}if(null!=na.data)for(var Pa in na.data)C.setAttributeForCell(Fa,Pa,na.data[Pa]);Ka.push(Fa);mxUtils.remove(na.invert?ja:ta,Ca)}}}});Da(ma,ma,Ma);if(null!=z[ma.id])for(oa=0;oa<z[ma.id].length;oa++)Da(ma,z[ma.id][oa],Ma)}}if(null!=ha)for(ca=0;ca<l.length;ca++)for(ma=l[ca],oa=0;oa<ha.length;oa++)C.setAttributeForCell(ma,mxUtils.trim(ha[oa]),null);if(0<u.length){var wa=new mxParallelEdgeLayout(C);
-wa.spacing=P;wa.checkOverlap=!0;var Sa=function(){0<wa.spacing&&wa.execute(C.getDefaultParent());for(var ja=0;ja<u.length;ja++){var sa=C.getCellGeometry(u[ja]);sa.x=Math.round(C.snap(sa.x));sa.y=Math.round(C.snap(sa.y));"auto"==K&&(sa.width=Math.round(C.snap(sa.width)));"auto"==k&&(sa.height=Math.round(C.snap(sa.height)))}};if("["==ea.charAt(0)){var Ta=W;C.view.validate();this.executeLayouts(C.createLayouts(JSON.parse(ea)),function(){Sa();Ta()});W=null}else if("circle"==ea){var Ua=new mxCircleLayout(C);
-Ua.disableEdgeStyle=!1;Ua.resetEdges=!1;var hb=Ua.isVertexIgnored;Ua.isVertexIgnored=function(ja){return hb.apply(this,arguments)||0>mxUtils.indexOf(u,ja)};this.executeLayout(function(){Ua.execute(C.getDefaultParent());Sa()},!0,W);W=null}else if("horizontaltree"==ea||"verticaltree"==ea||"auto"==ea&&Ka.length==2*u.length-1&&1==Ca.length){C.view.validate();var Ra=new mxCompactTreeLayout(C,"horizontaltree"==ea);Ra.levelDistance=R;Ra.edgeRouting=!1;Ra.resetEdges=!1;Ra.sortEdges=!0;this.executeLayout(function(){Ra.execute(C.getDefaultParent(),
-0<Ca.length?Ca[0]:null)},!0,W);W=null}else if("horizontalflow"==ea||"verticalflow"==ea||"auto"==ea&&1==Ca.length){C.view.validate();var Wa=new mxHierarchicalLayout(C,"horizontalflow"==ea?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);Wa.intraCellSpacing=R;Wa.parallelEdgeSpacing=P;Wa.interRankCellSpacing=T;Wa.disableEdgeStyle=!1;this.executeLayout(function(){Wa.execute(C.getDefaultParent(),Ka);C.moveCells(Ka,Y,Z)},!0,W);W=null}else if("orgchart"==ea){C.view.validate();var Va=new mxOrgChartLayout(C,
-2,T,R),fb=Va.isVertexIgnored;Va.isVertexIgnored=function(ja){return fb.apply(this,arguments)||0>mxUtils.indexOf(u,ja)};this.executeLayout(function(){Va.execute(C.getDefaultParent());Sa()},!0,W);W=null}else if("organic"==ea||"auto"==ea&&Ka.length>u.length){C.view.validate();var ab=new mxFastOrganicLayout(C);ab.forceConstant=3*R;ab.disableEdgeStyle=!1;ab.resetEdges=!1;var db=ab.isVertexIgnored;ab.isVertexIgnored=function(ja){return db.apply(this,arguments)||0>mxUtils.indexOf(u,ja)};this.executeLayout(function(){ab.execute(C.getDefaultParent());
-Sa()},!0,W);W=null}}this.hideDialog()}finally{C.model.endUpdate()}null!=W&&W()}}catch(ja){this.handleError(ja)}};EditorUi.prototype.getSearch=function(c){var e="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0<window.location.search.length){var g="?",l;for(l in urlParams)0>mxUtils.indexOf(c,l)&&null!=urlParams[l]&&(e+=g+l+"="+urlParams[l],g="&")}else e=window.location.search;return e};EditorUi.prototype.getUrl=function(c){c=null!=c?c:window.location.pathname;var e=0<c.indexOf("?")?1:0;
-if("1"==urlParams.offline)c+=window.location.search;else{var g="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),l;for(l in urlParams)0>mxUtils.indexOf(g,l)&&(c=0==e?c+"?":c+"&",null!=urlParams[l]&&(c+=l+"="+urlParams[l],e++))}return c};EditorUi.prototype.showLinkDialog=function(c,e,g,l,n){c=new LinkDialog(this,c,e,g,!0,l,n);this.showDialog(c.container,440,120,!0,!0);c.init()};EditorUi.prototype.getServiceCount=function(c){var e=1;null==this.drive&&
+e)}))};EditorUi.prototype.doImportCsv=function(c,e){try{var g=c.split("\n"),l=[],p=[],u=[],z={};if(0<g.length){var E={},D=this.editor.graph,A=null,P=null,R=null,T=null,L=null,U=null,n=null,t="whiteSpace=wrap;html=1;",B=null,F=null,J="",K="auto",k="auto",v=!1,G=null,N=null,O=40,Q=40,S=100,V=0,W=mxUtils.bind(this,function(){null!=e?e(Ja):(D.setSelectionCells(Ja),D.scrollCellToVisible(D.getSelectionCell()));null!=this.chromelessResize&&window.setTimeout(mxUtils.bind(this,function(){this.chromelessResize(!0)}),
+0)}),X=D.getFreeInsertPoint(),Z=X.x,Y=X.y;X=Y;var ea=null,ca="auto";F=null;for(var ka=[],ba=null,ha=null,aa=0;aa<g.length&&"#"==g[aa].charAt(0);){c=g[aa].replace(/\r$/,"");for(aa++;aa<g.length&&"\\"==c.charAt(c.length-1)&&"#"==g[aa].charAt(0);)c=c.substring(0,c.length-1)+mxUtils.trim(g[aa].substring(1)),aa++;if("#"!=c.charAt(1)){var ia=c.indexOf(":");if(0<ia){var fa=mxUtils.trim(c.substring(1,ia)),da=mxUtils.trim(c.substring(ia+1));"label"==fa?ea=Graph.sanitizeHtml(da):"labelname"==fa&&0<da.length&&
+"-"!=da?L=da:"labels"==fa&&0<da.length&&"-"!=da?n=JSON.parse(da):"style"==fa?P=da:"parentstyle"==fa?t=da:"unknownStyle"==fa&&"-"!=da?U=da:"stylename"==fa&&0<da.length&&"-"!=da?T=da:"styles"==fa&&0<da.length&&"-"!=da?R=JSON.parse(da):"vars"==fa&&0<da.length&&"-"!=da?A=JSON.parse(da):"identity"==fa&&0<da.length&&"-"!=da?B=da:"parent"==fa&&0<da.length&&"-"!=da?F=da:"namespace"==fa&&0<da.length&&"-"!=da?J=da:"width"==fa?K=da:"height"==fa?k=da:"collapsed"==fa&&"-"!=da?v="true"==da:"left"==fa&&0<da.length?
+G=da:"top"==fa&&0<da.length?N=da:"ignore"==fa?ha=da.split(","):"connect"==fa?ka.push(JSON.parse(da)):"link"==fa?ba=da:"padding"==fa?V=parseFloat(da):"edgespacing"==fa?O=parseFloat(da):"nodespacing"==fa?Q=parseFloat(da):"levelspacing"==fa?S=parseFloat(da):"layout"==fa&&(ca=da)}}}if(null==g[aa])throw Error(mxResources.get("invalidOrMissingFile"));var za=this.editor.csvToArray(g[aa].replace(/\r$/,""));ia=c=null;fa=[];for(da=0;da<za.length;da++)B==za[da]&&(c=da),F==za[da]&&(ia=da),fa.push(mxUtils.trim(za[da]).replace(/[^a-z0-9]+/ig,
+"_").replace(/^\d+/,"").replace(/_+$/,""));null==ea&&(ea="%"+fa[0]+"%");if(null!=ka)for(var va=0;va<ka.length;va++)null==E[ka[va].to]&&(E[ka[va].to]={});B=[];for(da=aa+1;da<g.length;da++){var oa=this.editor.csvToArray(g[da].replace(/\r$/,""));if(null==oa){var Ba=40<g[da].length?g[da].substring(0,40)+"...":g[da];throw Error(Ba+" ("+da+"):\n"+mxResources.get("containsValidationErrors"));}0<oa.length&&B.push(oa)}D.model.beginUpdate();try{for(da=0;da<B.length;da++){oa=B[da];var ma=null,ta=null!=c?J+oa[c]:
+null;g=!1;null!=ta&&(ma=D.model.getCell(ta),g=null==ma||0<=mxUtils.indexOf(l,ma));var qa=new mxCell(ea,new mxGeometry(Z,X,0,0),P||"whiteSpace=wrap;html=1;");qa.collapsed=v;qa.vertex=!0;qa.id=ta;null==ma||g||D.model.setCollapsed(ma,v);for(var la=0;la<oa.length;la++)D.setAttributeForCell(qa,fa[la],oa[la]),null==ma||g||D.setAttributeForCell(ma,fa[la],oa[la]);if(null!=L&&null!=n){var Fa=n[qa.getAttribute(L)];null!=Fa&&(D.labelChanged(qa,Fa),null==ma||g||D.cellLabelChanged(ma,Fa))}if(null!=T&&null!=R){var wa=
+R[qa.getAttribute(T)];null!=wa&&(qa.style=wa)}D.setAttributeForCell(qa,"placeholders","1");qa.style=D.replacePlaceholders(qa,qa.style,A);null==ma||g?D.fireEvent(new mxEventObject("cellsInserted","cells",[qa])):(D.model.setStyle(ma,qa.style),0>mxUtils.indexOf(u,ma)&&u.push(ma),D.fireEvent(new mxEventObject("cellsInserted","cells",[ma])));g=null!=ma;ma=qa;if(!g)for(va=0;va<ka.length;va++)E[ka[va].to][ma.getAttribute(ka[va].to)]=ma;null!=ba&&"link"!=ba&&(D.setLinkForCell(ma,ma.getAttribute(ba)),D.setAttributeForCell(ma,
+ba,null));var Ca=this.editor.graph.getPreferredSizeForCell(ma);F=null!=ia?D.model.getCell(J+oa[ia]):null;if(ma.vertex){Ba=null!=F?0:Z;aa=null!=F?0:Y;null!=G&&null!=ma.getAttribute(G)&&(ma.geometry.x=Ba+parseFloat(ma.getAttribute(G)));null!=N&&null!=ma.getAttribute(N)&&(ma.geometry.y=aa+parseFloat(ma.getAttribute(N)));var xa="@"==K.charAt(0)?ma.getAttribute(K.substring(1)):null;ma.geometry.width=null!=xa&&"auto"!=xa?parseFloat(ma.getAttribute(K.substring(1))):"auto"==K||"auto"==xa?Ca.width+V:parseFloat(K);
+var Da="@"==k.charAt(0)?ma.getAttribute(k.substring(1)):null;ma.geometry.height=null!=Da&&"auto"!=Da&&"width"!=k?parseFloat(Da):"auto"==k||"auto"==Da?Ca.height+V:"width"==k?ma.geometry.width:parseFloat(k);X+=ma.geometry.height+Q}g?(null==z[ta]&&(z[ta]=[]),z[ta].push(ma)):(l.push(ma),null!=F?(F.style=D.replacePlaceholders(F,t,A),D.addCell(ma,F),p.push(F)):u.push(D.addCell(ma)))}for(da=0;da<p.length;da++)xa="@"==K.charAt(0)?p[da].getAttribute(K.substring(1)):null,Da="@"==k.charAt(0)?p[da].getAttribute(k.substring(1)):
+null,"auto"!=K&&"auto"!=xa||"auto"!=k&&"auto"!=Da||D.updateGroupBounds([p[da]],V,!0);var Aa=u.slice(),Ja=u.slice();for(va=0;va<ka.length;va++){var Ka=ka[va];for(da=0;da<l.length;da++){ma=l[da];var Ga=mxUtils.bind(this,function(Ra,ja,pa){var sa=ja.getAttribute(pa.from);if(null!=sa&&""!=sa){sa=sa.split(",");for(var ra=0;ra<sa.length;ra++){var na=E[pa.to][sa[ra]];if(null==na&&null!=U){na=new mxCell(sa[ra],new mxGeometry(Z,Y,0,0),U);na.style=D.replacePlaceholders(ja,na.style,A);var ua=this.editor.graph.getPreferredSizeForCell(na);
+na.geometry.width=ua.width+V;na.geometry.height=ua.height+V;E[pa.to][sa[ra]]=na;na.vertex=!0;na.id=sa[ra];u.push(D.addCell(na))}if(null!=na){ua=pa.label;null!=pa.fromlabel&&(ua=(ja.getAttribute(pa.fromlabel)||"")+(ua||""));null!=pa.sourcelabel&&(ua=D.replacePlaceholders(ja,pa.sourcelabel,A)+(ua||""));null!=pa.tolabel&&(ua=(ua||"")+(na.getAttribute(pa.tolabel)||""));null!=pa.targetlabel&&(ua=(ua||"")+D.replacePlaceholders(na,pa.targetlabel,A));var Ha="target"==pa.placeholders==!pa.invert?na:Ra;Ha=
+null!=pa.style?D.replacePlaceholders(Ha,pa.style,A):D.createCurrentEdgeStyle();ua=D.insertEdge(null,null,ua||"",pa.invert?na:Ra,pa.invert?Ra:na,Ha);if(null!=pa.labels)for(Ha=0;Ha<pa.labels.length;Ha++){var Ea=pa.labels[Ha],La=new mxCell(Ea.label||Ha,new mxGeometry(null!=Ea.x?Ea.x:0,null!=Ea.y?Ea.y:0,0,0),"resizable=0;html=1;");La.vertex=!0;La.connectable=!1;La.geometry.relative=!0;null!=Ea.placeholders&&(La.value=D.replacePlaceholders("target"==Ea.placeholders==!pa.invert?na:Ra,La.value,A));if(null!=
+Ea.dx||null!=Ea.dy)La.geometry.offset=new mxPoint(null!=Ea.dx?Ea.dx:0,null!=Ea.dy?Ea.dy:0);ua.insert(La)}if(null!=pa.data)for(var Pa in pa.data)D.setAttributeForCell(ua,Pa,pa.data[Pa]);Ja.push(ua);mxUtils.remove(pa.invert?Ra:na,Aa)}}}});Ga(ma,ma,Ka);if(null!=z[ma.id])for(la=0;la<z[ma.id].length;la++)Ga(ma,z[ma.id][la],Ka)}}if(null!=ha)for(da=0;da<l.length;da++)for(ma=l[da],la=0;la<ha.length;la++)D.setAttributeForCell(ma,mxUtils.trim(ha[la]),null);if(0<u.length){var ya=new mxParallelEdgeLayout(D);
+ya.spacing=O;ya.checkOverlap=!0;var Ma=function(){0<ya.spacing&&ya.execute(D.getDefaultParent());for(var Ra=0;Ra<u.length;Ra++){var ja=D.getCellGeometry(u[Ra]);ja.x=Math.round(D.snap(ja.x));ja.y=Math.round(D.snap(ja.y));"auto"==K&&(ja.width=Math.round(D.snap(ja.width)));"auto"==k&&(ja.height=Math.round(D.snap(ja.height)))}};if("["==ca.charAt(0)){var Va=W;D.view.validate();this.executeLayouts(D.createLayouts(JSON.parse(ca)),function(){Ma();Va()});W=null}else if("circle"==ca){var Ua=new mxCircleLayout(D);
+Ua.disableEdgeStyle=!1;Ua.resetEdges=!1;var fb=Ua.isVertexIgnored;Ua.isVertexIgnored=function(Ra){return fb.apply(this,arguments)||0>mxUtils.indexOf(u,Ra)};this.executeLayout(function(){Ua.execute(D.getDefaultParent());Ma()},!0,W);W=null}else if("horizontaltree"==ca||"verticaltree"==ca||"auto"==ca&&Ja.length==2*u.length-1&&1==Aa.length){D.view.validate();var cb=new mxCompactTreeLayout(D,"horizontaltree"==ca);cb.levelDistance=Q;cb.edgeRouting=!1;cb.resetEdges=!1;cb.sortEdges=!0;this.executeLayout(function(){cb.execute(D.getDefaultParent(),
+0<Aa.length?Aa[0]:null)},!0,W);W=null}else if("horizontalflow"==ca||"verticalflow"==ca||"auto"==ca&&1==Aa.length){D.view.validate();var Ta=new mxHierarchicalLayout(D,"horizontalflow"==ca?mxConstants.DIRECTION_WEST:mxConstants.DIRECTION_NORTH);Ta.intraCellSpacing=Q;Ta.parallelEdgeSpacing=O;Ta.interRankCellSpacing=S;Ta.disableEdgeStyle=!1;this.executeLayout(function(){Ta.execute(D.getDefaultParent(),Ja);D.moveCells(Ja,Z,Y)},!0,W);W=null}else if("orgchart"==ca){D.view.validate();var $a=new mxOrgChartLayout(D,
+2,S,Q),Wa=$a.isVertexIgnored;$a.isVertexIgnored=function(Ra){return Wa.apply(this,arguments)||0>mxUtils.indexOf(u,Ra)};this.executeLayout(function(){$a.execute(D.getDefaultParent());Ma()},!0,W);W=null}else if("organic"==ca||"auto"==ca&&Ja.length>u.length){D.view.validate();var ab=new mxFastOrganicLayout(D);ab.forceConstant=3*Q;ab.disableEdgeStyle=!1;ab.resetEdges=!1;var ib=ab.isVertexIgnored;ab.isVertexIgnored=function(Ra){return ib.apply(this,arguments)||0>mxUtils.indexOf(u,Ra)};this.executeLayout(function(){ab.execute(D.getDefaultParent());
+Ma()},!0,W);W=null}}this.hideDialog()}finally{D.model.endUpdate()}null!=W&&W()}}catch(Ra){this.handleError(Ra)}};EditorUi.prototype.getSearch=function(c){var e="";if("1"!=urlParams.offline&&"1"!=urlParams.demo&&null!=c&&0<window.location.search.length){var g="?",l;for(l in urlParams)0>mxUtils.indexOf(c,l)&&null!=urlParams[l]&&(e+=g+l+"="+urlParams[l],g="&")}else e=window.location.search;return e};EditorUi.prototype.getUrl=function(c){c=null!=c?c:window.location.pathname;var e=0<c.indexOf("?")?1:0;
+if("1"==urlParams.offline)c+=window.location.search;else{var g="tmp libs clibs state fileId code share notitle data url embed client create title splash".split(" "),l;for(l in urlParams)0>mxUtils.indexOf(g,l)&&(c=0==e?c+"?":c+"&",null!=urlParams[l]&&(c+=l+"="+urlParams[l],e++))}return c};EditorUi.prototype.showLinkDialog=function(c,e,g,l,p){c=new LinkDialog(this,c,e,g,!0,l,p);this.showDialog(c.container,440,120,!0,!0);c.init()};EditorUi.prototype.getServiceCount=function(c){var e=1;null==this.drive&&
"function"!==typeof window.DriveClient||e++;null==this.dropbox&&"function"!==typeof window.DropboxClient||e++;null==this.oneDrive&&"function"!==typeof window.OneDriveClient||e++;null!=this.gitHub&&e++;null!=this.gitLab&&e++;c&&isLocalStorage&&"1"==urlParams.browser&&e++;return e};EditorUi.prototype.updateUi=function(){this.updateButtonContainer();this.updateActionStates();var c=this.getCurrentFile(),e=null!=c||"1"==urlParams.embed&&this.editor.graph.isEnabled();this.menus.get("viewPanels").setEnabled(e);
this.menus.get("viewZoom").setEnabled(e);var g=("1"!=urlParams.embed||"1"==urlParams.embedRT||!this.editor.graph.isEnabled())&&(null==c||c.isRestricted());this.actions.get("makeCopy").setEnabled(!g);this.actions.get("print").setEnabled(!g);this.menus.get("exportAs").setEnabled(!g);this.menus.get("embed").setEnabled(!g);g="1"!=urlParams.embed||this.editor.graph.isEnabled();this.menus.get("extras").setEnabled(g);Editor.enableCustomLibraries&&(this.menus.get("openLibraryFrom").setEnabled(g),this.menus.get("newLibrary").setEnabled(g));
c="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=c&&c.isEditable();this.actions.get("image").setEnabled(e);this.actions.get("zoomIn").setEnabled(e);this.actions.get("zoomOut").setEnabled(e);this.actions.get("smartFit").setEnabled(e);this.actions.get("resetView").setEnabled(e);this.menus.get("edit").setEnabled(e);this.menus.get("view").setEnabled(e);this.menus.get("importFrom").setEnabled(c);this.menus.get("arrange").setEnabled(c);this.menus.get("edgeShape").setEnabled(c);this.menus.get("edgeStyle").setEnabled(c);
this.menus.get("appearance").setEnabled(mxUtils.lightDarkColorSupported)};EditorUi.prototype.updateButtonContainer=function(){};EditorUi.prototype.scheduleSanityCheck=function(){};EditorUi.prototype.stopSanityCheck=function(){};EditorUi.prototype.isDiagramActive=function(){var c=this.getCurrentFile();return null!=c&&c.isEditable()||"1"==urlParams.embed&&this.editor.graph.isEnabled()};EditorUi.prototype.restoreOpenLibraries=function(){var c=this.openLibraries;this.openLibraries=null;if(null!=c)for(var e=
-0;e<c.length;e++)this.libraryLoaded(c[e].file,c[e].images,c[e].title,null!=c[e].div?"none"!=c[e].div.style.display:c[e].expand)};var N=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){N.apply(this,arguments);var c=this.editor.graph,e=this.getCurrentFile(),g=this.getSelectionState(),l=this.isDiagramActive(),n="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=e&&e.isEditable();this.actions.get("undo").setEnabled(this.canUndo()&&n);this.actions.get("redo").setEnabled(this.canRedo()&&
-n);this.actions.get("autosave").setEnabled(null!=e&&e.isEditable()&&e.isAutosaveOptional());this.actions.get("guides").setEnabled(l);this.actions.get("editData").setEnabled(c.isEnabled());this.actions.get("editConnectionPoints").setEnabled(l&&0==g.edges.length&&1==g.vertices.length);this.actions.get("editImage").setEnabled(l&&g.image&&0<g.cells.length);this.actions.get("crop").setEnabled(l&&g.image&&0<g.cells.length);this.actions.get("pageSetup").setEnabled(l);this.actions.get("shadowVisible").setEnabled(l);
+0;e<c.length;e++)this.libraryLoaded(c[e].file,c[e].images,c[e].title,null!=c[e].div?"none"!=c[e].div.style.display:c[e].expand)};var M=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){M.apply(this,arguments);var c=this.editor.graph,e=this.getCurrentFile(),g=this.getSelectionState(),l=this.isDiagramActive(),p="1"==urlParams.embed&&this.editor.graph.isEnabled()||null!=e&&e.isEditable();this.actions.get("undo").setEnabled(this.canUndo()&&p);this.actions.get("redo").setEnabled(this.canRedo()&&
+p);this.actions.get("autosave").setEnabled(null!=e&&e.isEditable()&&e.isAutosaveOptional());this.actions.get("guides").setEnabled(l);this.actions.get("editData").setEnabled(c.isEnabled());this.actions.get("editConnectionPoints").setEnabled(l&&0==g.edges.length&&1==g.vertices.length);this.actions.get("editImage").setEnabled(l&&g.image&&0<g.cells.length);this.actions.get("crop").setEnabled(l&&g.image&&0<g.cells.length);this.actions.get("pageSetup").setEnabled(l);this.actions.get("shadowVisible").setEnabled(l);
this.actions.get("connectionArrows").setEnabled(l);this.actions.get("connectionPoints").setEnabled(l);this.actions.get("copyStyle").setEnabled(l&&!c.isSelectionEmpty());this.actions.get("pasteStyle").setEnabled(null!=this.copiedStyle&&l&&0<g.cells.length);this.actions.get("editGeometry").setEnabled(0<g.vertices.length);this.actions.get("createShape").setEnabled(l);this.actions.get("createRevision").setEnabled(l);this.actions.get("moveToFolder").setEnabled(null!=e);this.actions.get("makeCopy").setEnabled(null!=
e&&!e.isRestricted());this.actions.get("editDiagram").setEnabled(l&&(null==e||!e.isRestricted()));this.actions.get("publishLink").setEnabled(null!=e&&!e.isRestricted());this.actions.get("removeFormat").setEnabled(c.isEnabled()&&!c.isSelectionEmpty()&&!c.isEditing());this.actions.get("tags").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("layers").setEnabled("none"!=this.diagramContainer.style.display);this.actions.get("outline").setEnabled("none"!=this.diagramContainer.style.display);
this.actions.get("rename").setEnabled(null!=e&&e.isRenamable()||"1"==urlParams.embed);this.actions.get("close").setEnabled(null!=e);this.actions.get("properties").setEnabled(null!=e);this.menus.get("publish").setEnabled(null!=e&&!e.isRestricted());e=this.actions.get("findReplace");e.setEnabled("none"!=this.diagramContainer.style.display);e.label=mxResources.get("find")+(c.isEnabled()?"/"+mxResources.get("replace"):"");c=c.view.getState(c.getSelectionCell());this.actions.get("editShape").setEnabled(l&&
-null!=c&&null!=c.shape&&null!=c.shape.stencil)};var I=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);I.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,e,g,l,n,u,z,D){var C=c.editor.graph;if("xml"==g)c.hideDialog(),c.saveData(e,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");
-else if("svg"==g)c.hideDialog(),c.saveData(e,"svg",mxUtils.getXml(C.getSvg(l,n,u)),"image/svg+xml");else{var A=c.getFileData(!0,null,null,null,null,!0),Q=C.getGraphBounds(),S=Math.floor(Q.width*n/C.view.scale),U=Math.floor(Q.height*n/C.view.scale);if(A.length<=MAX_REQUEST_SIZE&&S*U<MAX_AREA)if(c.hideDialog(),"png"!=g&&"jpg"!=g&&"jpeg"!=g||!c.isExportToCanvas()){var O={globalVars:C.getExportVariables()};D&&(O.grid={size:C.gridSize,steps:C.view.gridSteps,color:C.view.gridColor});c.saveRequest(e,g,function(p,
-q){return new mxXmlRequest(EXPORT_URL,"format="+g+"&base64="+(q||"0")+(null!=p?"&filename="+encodeURIComponent(p):"")+"&extras="+encodeURIComponent(JSON.stringify(O))+(0<z?"&dpi="+z:"")+"&bg="+(null!=l?l:"none")+"&w="+S+"&h="+U+"&border="+u+"&xml="+encodeURIComponent(A))})}else"png"==g?c.exportImage(n,null==l||"none"==l,!0,!1,!1,u,!0,!1,null,D,z):c.exportImage(n,!1,!0,!1,!1,u,!0,!1,"jpeg",D);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);
+null!=c&&null!=c.shape&&null!=c.shape.stencil)};var H=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){null!=this.exportDialog&&(this.exportDialog.parentNode.removeChild(this.exportDialog),this.exportDialog=null);H.apply(this,arguments)};null!=window.ExportDialog&&(ExportDialog.showXmlOption=!1,ExportDialog.showGifOption=!1,ExportDialog.exportFile=function(c,e,g,l,p,u,z,E){var D=c.editor.graph;if("xml"==g)c.hideDialog(),c.saveData(e,"xml",mxUtils.getXml(c.editor.getGraphXml()),"text/xml");
+else if("svg"==g)c.hideDialog(),c.saveData(e,"svg",mxUtils.getXml(D.getSvg(l,p,u)),"image/svg+xml");else{var A=c.getFileData(!0,null,null,null,null,!0),P=D.getGraphBounds(),R=Math.floor(P.width*p/D.view.scale),T=Math.floor(P.height*p/D.view.scale);if(A.length<=MAX_REQUEST_SIZE&&R*T<MAX_AREA)if(c.hideDialog(),"png"!=g&&"jpg"!=g&&"jpeg"!=g||!c.isExportToCanvas()){var L={globalVars:D.getExportVariables()};E&&(L.grid={size:D.gridSize,steps:D.view.gridSteps,color:D.view.gridColor});c.saveRequest(e,g,function(U,
+n){return new mxXmlRequest(EXPORT_URL,"format="+g+"&base64="+(n||"0")+(null!=U?"&filename="+encodeURIComponent(U):"")+"&extras="+encodeURIComponent(JSON.stringify(L))+(0<z?"&dpi="+z:"")+"&bg="+(null!=l?l:"none")+"&w="+R+"&h="+T+"&border="+u+"&xml="+encodeURIComponent(A))})}else"png"==g?c.exportImage(p,null==l||"none"==l,!0,!1,!1,u,!0,!1,null,E,z):c.exportImage(p,!1,!0,!1,!1,u,!0,!1,"jpeg",E);else mxUtils.alert(mxResources.get("drawingTooLarge"))}});EditorUi.prototype.getDiagramTextContent=function(){this.editor.graph.setEnabled(!1);
var c=this.editor.graph,e="";if(null!=this.pages)for(var g=0;g<this.pages.length;g++){var l=c;this.currentPage!=this.pages[g]&&(l=this.createTemporaryGraph(c.getStylesheet()),this.updatePageRoot(this.pages[g]),l.model.setRoot(this.pages[g].root));e+=this.pages[g].getName()+" "+l.getIndexableText()+" "}else e=c.getIndexableText();this.editor.graph.setEnabled(!0);return e};EditorUi.prototype.showRemotelyStoredLibrary=function(c){var e={},g=document.createElement("div");g.style.whiteSpace="nowrap";var l=
-document.createElement("h3");mxUtils.write(l,mxUtils.htmlEntities(c));l.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";g.appendChild(l);var n=document.createElement("div");n.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";n.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var u={};try{var z=mxSettings.getCustomLibraries();for(c=0;c<z.length;c++){var D=z[c];if("R"==D.substring(0,1)){var C=JSON.parse(decodeURIComponent(D.substring(1)));
-u[C[0]]={id:C[0],title:C[1],downloadUrl:C[2]}}}}catch(A){}this.remoteInvoke("getCustomLibraries",null,null,function(A){n.innerText="";if(0==A.length)n.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var Q=0;Q<A.length;Q++){var S=A[Q];u[S.id]&&(e[S.id]=S);var U=this.addCheckbox(n,S.title,u[S.id]);(function(O,p){mxEvent.addListener(p,"change",function(){this.checked?e[O.id]=O:delete e[O.id]})})(S,U)}},mxUtils.bind(this,
-function(A){n.innerText="";var Q=document.createElement("div");Q.style.padding="8px";Q.style.textAlign="center";mxUtils.write(Q,mxResources.get("error")+": ");mxUtils.write(Q,null!=A&&null!=A.message?A.message:mxResources.get("unknownError"));n.appendChild(Q)}));g.appendChild(n);g=new CustomDialog(this,g,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var A=0,Q;for(Q in e)null==u[Q]&&(A++,mxUtils.bind(this,function(S){this.remoteInvoke("getFileContent",[S.downloadUrl],
-null,mxUtils.bind(this,function(U){A--;0==A&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,U,S)),this.showSidebar()}catch(O){this.handleError(O,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){A--;0==A&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(e[Q]));for(Q in u)e[Q]||this.closeLibrary(new RemoteLibrary(this,null,u[Q]));0==A&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");
+document.createElement("h3");mxUtils.write(l,mxUtils.htmlEntities(c));l.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:12px";g.appendChild(l);var p=document.createElement("div");p.style.cssText="border:1px solid lightGray;overflow: auto;height:300px";p.innerHTML='<div style="text-align:center;padding:8px;"><img src="'+IMAGE_PATH+'/spin.gif"></div>';var u={};try{var z=mxSettings.getCustomLibraries();for(c=0;c<z.length;c++){var E=z[c];if("R"==E.substring(0,1)){var D=JSON.parse(decodeURIComponent(E.substring(1)));
+u[D[0]]={id:D[0],title:D[1],downloadUrl:D[2]}}}}catch(A){}this.remoteInvoke("getCustomLibraries",null,null,function(A){p.innerText="";if(0==A.length)p.innerHTML='<div style="text-align:center;padding-top:20px;color:gray;">'+mxUtils.htmlEntities(mxResources.get("noLibraries"))+"</div>";else for(var P=0;P<A.length;P++){var R=A[P];u[R.id]&&(e[R.id]=R);var T=this.addCheckbox(p,R.title,u[R.id]);(function(L,U){mxEvent.addListener(U,"change",function(){this.checked?e[L.id]=L:delete e[L.id]})})(R,T)}},mxUtils.bind(this,
+function(A){p.innerText="";var P=document.createElement("div");P.style.padding="8px";P.style.textAlign="center";mxUtils.write(P,mxResources.get("error")+": ");mxUtils.write(P,null!=A&&null!=A.message?A.message:mxResources.get("unknownError"));p.appendChild(P)}));g.appendChild(p);g=new CustomDialog(this,g,mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("loading"));var A=0,P;for(P in e)null==u[P]&&(A++,mxUtils.bind(this,function(R){this.remoteInvoke("getFileContent",[R.downloadUrl],
+null,mxUtils.bind(this,function(T){A--;0==A&&this.spinner.stop();try{this.loadLibrary(new RemoteLibrary(this,T,R)),this.showSidebar()}catch(L){this.handleError(L,mxResources.get("errorLoadingFile"))}}),mxUtils.bind(this,function(){A--;0==A&&this.spinner.stop();this.handleError(null,mxResources.get("errorLoadingFile"))}))})(e[P]));for(P in u)e[P]||this.closeLibrary(new RemoteLibrary(this,null,u[P]));0==A&&this.spinner.stop()}),null,null,"https://www.drawio.com/doc/faq/custom-libraries-confluence-cloud");
this.showDialog(g.container,340,390,!0,!0,null,null,null,null,!0)};EditorUi.prototype.remoteInvokableFns={getDiagramTextContent:{isAsync:!1},getLocalStorageFile:{isAsync:!1,allowedDomains:["app.diagrams.net"]},getLocalStorageFileNames:{isAsync:!1,allowedDomains:["app.diagrams.net"]},setMigratedFlag:{isAsync:!1,allowedDomains:["app.diagrams.net"]}};EditorUi.prototype.remoteInvokeCallbacks=[];EditorUi.prototype.remoteInvokeQueue=[];EditorUi.prototype.handleRemoteInvokeReady=function(c){this.remoteWin=
-c;for(var e=0;e<this.remoteInvokeQueue.length;e++)c.postMessage(this.remoteInvokeQueue[e],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var e=c.msgMarkers,g=this.remoteInvokeCallbacks[e.callbackId];if(null==g)throw Error("No callback for "+(null!=e?e.callbackId:"null"));c.error?g.error&&g.error(c.error.errResp):g.callback&&g.callback.apply(this,c.resp);this.remoteInvokeCallbacks[e.callbackId]=null};EditorUi.prototype.remoteInvoke=function(c,e,g,l,n){var u=
-!0,z=window.setTimeout(mxUtils.bind(this,function(){u=!1;n({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),D=mxUtils.bind(this,function(){window.clearTimeout(z);u&&l.apply(this,arguments)}),C=mxUtils.bind(this,function(){window.clearTimeout(z);u&&n.apply(this,arguments)});g=g||{};g.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:D,error:C});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:e,msgMarkers:g});null!=this.remoteWin?
-this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,e){var g=mxUtils.bind(this,function(A,Q){var S={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=Q?S.error={errResp:Q}:null!=A&&(S.resp=A);this.remoteWin.postMessage(JSON.stringify(S),"*")});try{var l=c.funtionName,n=this.remoteInvokableFns[l];if(null!=n&&"function"===typeof this[l]){if(n.allowedDomains){for(var u=!1,z=0;z<n.allowedDomains.length;z++)if(e=="https://"+n.allowedDomains[z]){u=
-!0;break}if(!u){g(null,"Invalid Call: "+l+" is not allowed.");return}}var D=c.functionArgs;Array.isArray(D)||(D=[]);if(n.isAsync)D.push(function(){g(Array.prototype.slice.apply(arguments))}),D.push(function(A){g(null,A||"Unkown Error")}),this[l].apply(this,D);else{var C=this[l].apply(this,D);g([C])}}else g(null,"Invalid Call: "+l+" is not found.")}catch(A){g(null,"Invalid Call: An error occurred, "+A.message)}};EditorUi.prototype.openDatabase=function(c,e){if(null==this.database){var g=window.indexedDB||
-window.mozIndexedDB||window.webkitIndexedDB;if(null!=g)try{var l=g.open("database",2);l.onupgradeneeded=function(n){try{var u=l.result;1>n.oldVersion&&u.createObjectStore("objects",{keyPath:"key"});2>n.oldVersion&&(u.createObjectStore("files",{keyPath:"title"}),u.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(z){null!=e&&e(z)}};l.onsuccess=mxUtils.bind(this,function(n){try{var u=l.result;this.database=u;EditorUi.migrateStorageFiles&&(StorageFile.migrate(u),
-EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(z){if(!z||"1"==urlParams.forceMigration){var D=document.createElement("iframe");D.style.display="none";D.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(D);var C=!0,A=!1,Q,S=0,U=mxUtils.bind(this,function(){A=!0;this.setDatabaseItem(".drawioMigrated3",
-!0);D.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),O=mxUtils.bind(this,function(){S++;p()}),p=mxUtils.bind(this,function(){try{if(S>=Q.length)U();else{var G=Q[S];StorageFile.getFileContent(this,G,mxUtils.bind(this,function(E){null==E||".scratchpad"==G&&E==this.emptyLibraryXml?D.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[G]}),"*"):O()}),O)}}catch(E){console.log(E)}}),q=mxUtils.bind(this,
-function(G){try{this.setDatabaseItem(null,[{title:G.title,size:G.data.length,lastModified:Date.now(),type:G.isLib?"L":"F"},{title:G.title,data:G.data}],O,O,["filesInfo","files"])}catch(E){console.log(E)}});z=mxUtils.bind(this,function(G){try{if(G.source==D.contentWindow){var E={};try{E=JSON.parse(G.data)}catch(H){}"init"==E.event?(D.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),D.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),
-"*")):"remoteInvokeResponse"!=E.event||A||(C?null!=E.resp&&0<E.resp.length&&null!=E.resp[0]?(Q=E.resp[0],C=!1,p()):U():null!=E.resp&&0<E.resp.length&&null!=E.resp[0]?q(E.resp[0]):O())}}catch(H){console.log(H)}});window.addEventListener("message",z)}})));c(u);u.onversionchange=function(){u.close()}}catch(z){null!=e?e(z):null!=window.console&&console.warn(z)}});l.onerror=e;l.onblocked=function(){}}catch(n){null!=e?e(n):null!=window.console&&console.error(n)}else null!=e&&e(Error("IndexedDB not supported"))}else c(this.database)};
-EditorUi.prototype.setDatabaseItem=function(c,e,g,l,n){this.openDatabase(mxUtils.bind(this,function(u){try{n=n||"objects";Array.isArray(n)||(n=[n],c=[c],e=[e]);var z=u.transaction(n,"readwrite");z.oncomplete=g;z.onerror=l;for(u=0;u<n.length;u++)z.objectStore(n[u]).put(null!=c&&null!=c[u]?{key:c[u],data:e[u]}:e[u])}catch(D){null!=l&&l(D)}}),l)};EditorUi.prototype.removeDatabaseItem=function(c,e,g,l){this.openDatabase(mxUtils.bind(this,function(n){try{l=l||"objects";Array.isArray(l)||(l=[l],c=[c]);
-var u=n.transaction(l,"readwrite");u.oncomplete=e;u.onerror=g;for(n=0;n<l.length;n++)u.objectStore(l[n]).delete(c[n])}catch(z){null!=g&&g(z)}}),g)};EditorUi.prototype.getDatabaseItem=function(c,e,g,l){this.openDatabase(mxUtils.bind(this,function(n){try{l=l||"objects";var u=n.transaction([l],"readonly").objectStore(l).get(c);u.onsuccess=function(){e(u.result)};u.onerror=g}catch(z){null!=g&&g(z)}}),g)};EditorUi.prototype.getDatabaseItems=function(c,e,g){this.openDatabase(mxUtils.bind(this,function(l){try{g=
-g||"objects";var n=l.transaction([g],"readonly").objectStore(g).openCursor(IDBKeyRange.lowerBound(0)),u=[];n.onsuccess=function(z){null==z.target.result?c(u):(u.push(z.target.result.value),z.target.result.continue())};n.onerror=e}catch(z){null!=e&&e(z)}}),e)};EditorUi.prototype.getDatabaseItemKeys=function(c,e,g){this.openDatabase(mxUtils.bind(this,function(l){try{g=g||"objects";var n=l.transaction([g],"readonly").objectStore(g).getAllKeys();n.onsuccess=function(){c(n.result)};n.onerror=e}catch(u){null!=
+c;for(var e=0;e<this.remoteInvokeQueue.length;e++)c.postMessage(this.remoteInvokeQueue[e],"*");this.remoteInvokeQueue=[]};EditorUi.prototype.handleRemoteInvokeResponse=function(c){var e=c.msgMarkers,g=this.remoteInvokeCallbacks[e.callbackId];if(null==g)throw Error("No callback for "+(null!=e?e.callbackId:"null"));c.error?g.error&&g.error(c.error.errResp):g.callback&&g.callback.apply(this,c.resp);this.remoteInvokeCallbacks[e.callbackId]=null};EditorUi.prototype.remoteInvoke=function(c,e,g,l,p){var u=
+!0,z=window.setTimeout(mxUtils.bind(this,function(){u=!1;p({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.timeout),E=mxUtils.bind(this,function(){window.clearTimeout(z);u&&l.apply(this,arguments)}),D=mxUtils.bind(this,function(){window.clearTimeout(z);u&&p.apply(this,arguments)});g=g||{};g.callbackId=this.remoteInvokeCallbacks.length;this.remoteInvokeCallbacks.push({callback:E,error:D});c=JSON.stringify({event:"remoteInvoke",funtionName:c,functionArgs:e,msgMarkers:g});null!=this.remoteWin?
+this.remoteWin.postMessage(c,"*"):this.remoteInvokeQueue.push(c)};EditorUi.prototype.handleRemoteInvoke=function(c,e){var g=mxUtils.bind(this,function(A,P){var R={event:"remoteInvokeResponse",msgMarkers:c.msgMarkers};null!=P?R.error={errResp:P}:null!=A&&(R.resp=A);this.remoteWin.postMessage(JSON.stringify(R),"*")});try{var l=c.funtionName,p=this.remoteInvokableFns[l];if(null!=p&&"function"===typeof this[l]){if(p.allowedDomains){for(var u=!1,z=0;z<p.allowedDomains.length;z++)if(e=="https://"+p.allowedDomains[z]){u=
+!0;break}if(!u){g(null,"Invalid Call: "+l+" is not allowed.");return}}var E=c.functionArgs;Array.isArray(E)||(E=[]);if(p.isAsync)E.push(function(){g(Array.prototype.slice.apply(arguments))}),E.push(function(A){g(null,A||"Unkown Error")}),this[l].apply(this,E);else{var D=this[l].apply(this,E);g([D])}}else g(null,"Invalid Call: "+l+" is not found.")}catch(A){g(null,"Invalid Call: An error occurred, "+A.message)}};EditorUi.prototype.openDatabase=function(c,e){if(null==this.database){var g=window.indexedDB||
+window.mozIndexedDB||window.webkitIndexedDB;if(null!=g)try{var l=g.open("database",2);l.onupgradeneeded=function(p){try{var u=l.result;1>p.oldVersion&&u.createObjectStore("objects",{keyPath:"key"});2>p.oldVersion&&(u.createObjectStore("files",{keyPath:"title"}),u.createObjectStore("filesInfo",{keyPath:"title"}),EditorUi.migrateStorageFiles=isLocalStorage)}catch(z){null!=e&&e(z)}};l.onsuccess=mxUtils.bind(this,function(p){try{var u=l.result;this.database=u;EditorUi.migrateStorageFiles&&(StorageFile.migrate(u),
+EditorUi.migrateStorageFiles=!1);"app.diagrams.net"!=location.host||this.drawioMigrationStarted||(this.drawioMigrationStarted=!0,this.getDatabaseItem(".drawioMigrated3",mxUtils.bind(this,function(z){if(!z||"1"==urlParams.forceMigration){var E=document.createElement("iframe");E.style.display="none";E.setAttribute("src","https://www.draw.io?embed=1&proto=json&forceMigration="+urlParams.forceMigration);document.body.appendChild(E);var D=!0,A=!1,P,R=0,T=mxUtils.bind(this,function(){A=!0;this.setDatabaseItem(".drawioMigrated3",
+!0);E.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"setMigratedFlag"}),"*")}),L=mxUtils.bind(this,function(){R++;U()}),U=mxUtils.bind(this,function(){try{if(R>=P.length)T();else{var t=P[R];StorageFile.getFileContent(this,t,mxUtils.bind(this,function(B){null==B||".scratchpad"==t&&B==this.emptyLibraryXml?E.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFile",functionArgs:[t]}),"*"):L()}),L)}}catch(B){console.log(B)}}),n=mxUtils.bind(this,
+function(t){try{this.setDatabaseItem(null,[{title:t.title,size:t.data.length,lastModified:Date.now(),type:t.isLib?"L":"F"},{title:t.title,data:t.data}],L,L,["filesInfo","files"])}catch(B){console.log(B)}});z=mxUtils.bind(this,function(t){try{if(t.source==E.contentWindow){var B={};try{B=JSON.parse(t.data)}catch(F){}"init"==B.event?(E.contentWindow.postMessage(JSON.stringify({action:"remoteInvokeReady"}),"*"),E.contentWindow.postMessage(JSON.stringify({action:"remoteInvoke",funtionName:"getLocalStorageFileNames"}),
+"*")):"remoteInvokeResponse"!=B.event||A||(D?null!=B.resp&&0<B.resp.length&&null!=B.resp[0]?(P=B.resp[0],D=!1,U()):T():null!=B.resp&&0<B.resp.length&&null!=B.resp[0]?n(B.resp[0]):L())}}catch(F){console.log(F)}});window.addEventListener("message",z)}})));c(u);u.onversionchange=function(){u.close()}}catch(z){null!=e?e(z):null!=window.console&&console.warn(z)}});l.onerror=e;l.onblocked=function(){}}catch(p){null!=e?e(p):null!=window.console&&console.error(p)}else null!=e&&e(Error("IndexedDB not supported"))}else c(this.database)};
+EditorUi.prototype.setDatabaseItem=function(c,e,g,l,p){this.openDatabase(mxUtils.bind(this,function(u){try{p=p||"objects";Array.isArray(p)||(p=[p],c=[c],e=[e]);var z=u.transaction(p,"readwrite");z.oncomplete=g;z.onerror=l;for(u=0;u<p.length;u++)z.objectStore(p[u]).put(null!=c&&null!=c[u]?{key:c[u],data:e[u]}:e[u])}catch(E){null!=l&&l(E)}}),l)};EditorUi.prototype.removeDatabaseItem=function(c,e,g,l){this.openDatabase(mxUtils.bind(this,function(p){try{l=l||"objects";Array.isArray(l)||(l=[l],c=[c]);
+var u=p.transaction(l,"readwrite");u.oncomplete=e;u.onerror=g;for(p=0;p<l.length;p++)u.objectStore(l[p]).delete(c[p])}catch(z){null!=g&&g(z)}}),g)};EditorUi.prototype.getDatabaseItem=function(c,e,g,l){this.openDatabase(mxUtils.bind(this,function(p){try{l=l||"objects";var u=p.transaction([l],"readonly").objectStore(l).get(c);u.onsuccess=function(){e(u.result)};u.onerror=g}catch(z){null!=g&&g(z)}}),g)};EditorUi.prototype.getDatabaseItems=function(c,e,g){this.openDatabase(mxUtils.bind(this,function(l){try{g=
+g||"objects";var p=l.transaction([g],"readonly").objectStore(g).openCursor(IDBKeyRange.lowerBound(0)),u=[];p.onsuccess=function(z){null==z.target.result?c(u):(u.push(z.target.result.value),z.target.result.continue())};p.onerror=e}catch(z){null!=e&&e(z)}}),e)};EditorUi.prototype.getDatabaseItemKeys=function(c,e,g){this.openDatabase(mxUtils.bind(this,function(l){try{g=g||"objects";var p=l.transaction([g],"readonly").objectStore(g).getAllKeys();p.onsuccess=function(){c(p.result)};p.onerror=e}catch(u){null!=
e&&e(u)}}),e)};EditorUi.prototype.commentsSupported=function(){var c=this.getCurrentFile();return null!=c?c.commentsSupported():!1};EditorUi.prototype.commentsRefreshNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsRefreshNeeded():!0};EditorUi.prototype.commentsSaveNeeded=function(){var c=this.getCurrentFile();return null!=c?c.commentsSaveNeeded():!1};EditorUi.prototype.getComments=function(c,e){var g=this.getCurrentFile();null!=g?g.getComments(c,e):c([])};EditorUi.prototype.addComment=
function(c,e,g){var l=this.getCurrentFile();null!=l?l.addComment(c,e,g):e(Date.now())};EditorUi.prototype.canReplyToReplies=function(){var c=this.getCurrentFile();return null!=c?c.canReplyToReplies():!0};EditorUi.prototype.canComment=function(){var c=this.getCurrentFile();return null!=c?c.canComment():!0};EditorUi.prototype.newComment=function(c,e){var g=this.getCurrentFile();return null!=g?g.newComment(c,e):new DrawioComment(this,null,c,Date.now(),Date.now(),!1,e)};EditorUi.prototype.isRevisionHistorySupported=
function(){var c=this.getCurrentFile();return null!=c&&c.isRevisionHistorySupported()};EditorUi.prototype.getRevisions=function(c,e){var g=this.getCurrentFile();null!=g&&g.getRevisions?g.getRevisions(c,e):e({message:mxResources.get("unknownError")})};EditorUi.prototype.isRevisionHistoryEnabled=function(){var c=this.getCurrentFile();return null!=c&&(c.constructor==DriveFile&&c.isEditable()||c.constructor==DropboxFile)};EditorUi.prototype.getServiceName=function(){return"draw.io"};EditorUi.prototype.vsdxExportEnabled=
-function(){return"atlassian"==this.getServiceName()};EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,e,g,l,n,u,z,D){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,e,g,l,n,u,z,D)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");
-return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=function(c,e){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,e)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,e,g,l,n,u,z,D,C,A,Q,S,U,O,p,q){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,e,g,l,n,u,z,D,
-C,A,Q,S,U,O,p,q)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,e,g,l){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,e,g,l)};EditorUi.prototype.convertImageToDataUri=function(c,e){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,e)};
-EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,e,g,l){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,e,g,l)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,e,g,l,n){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,
-e,g,l,n)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],e=0;e<localStorage.length;e++){var g=localStorage.key(e),l=localStorage.getItem(g);if(0<g.length&&(".scratchpad"==g||"."!=g.charAt(0))&&0<l.length){var n="<mxfile "===l.substring(0,8)||"<?xml"===l.substring(0,5)||"\x3c!--[if IE]>"===l.substring(0,12);l="<mxlibrary>"===l.substring(0,11);(n||l)&&c.push(g)}}return c};EditorUi.prototype.getLocalStorageFile=
+function(){return"atlassian"==this.getServiceName()};EditorUi.prototype.addRemoteServiceSecurityCheck=function(c){c.setRequestHeader("Content-Language","da, mi, en, de-DE")};EditorUi.prototype.loadUrl=function(c,e,g,l,p,u,z,E){EditorUi.logEvent("SHOULD NOT BE CALLED: loadUrl");return this.editor.loadUrl(c,e,g,l,p,u,z,E)};EditorUi.prototype.loadFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: loadFonts");return this.editor.loadFonts(c)};EditorUi.prototype.createSvgDataUri=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: createSvgDataUri");
+return Editor.createSvgDataUri(c)};EditorUi.prototype.embedCssFonts=function(c,e){EditorUi.logEvent("SHOULD NOT BE CALLED: embedCssFonts");return this.editor.embedCssFonts(c,e)};EditorUi.prototype.embedExtFonts=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: embedExtFonts");return this.editor.embedExtFonts(c)};EditorUi.prototype.exportToCanvas=function(c,e,g,l,p,u,z,E,D,A,P,R,T,L,U,n){EditorUi.logEvent("SHOULD NOT BE CALLED: exportToCanvas");return this.editor.exportToCanvas(c,e,g,l,p,u,z,E,
+D,A,P,R,T,L,U,n)};EditorUi.prototype.createImageUrlConverter=function(){EditorUi.logEvent("SHOULD NOT BE CALLED: createImageUrlConverter");return this.editor.createImageUrlConverter()};EditorUi.prototype.convertImages=function(c,e,g,l){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImages");return this.editor.convertImages(c,e,g,l)};EditorUi.prototype.convertImageToDataUri=function(c,e){EditorUi.logEvent("SHOULD NOT BE CALLED: convertImageToDataUri");return this.editor.convertImageToDataUri(c,e)};
+EditorUi.prototype.base64Encode=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: base64Encode");return Editor.base64Encode(c)};EditorUi.prototype.updateCRC=function(c,e,g,l){EditorUi.logEvent("SHOULD NOT BE CALLED: updateCRC");return Editor.updateCRC(c,e,g,l)};EditorUi.prototype.crc32=function(c){EditorUi.logEvent("SHOULD NOT BE CALLED: crc32");return Editor.crc32(c)};EditorUi.prototype.writeGraphModelToPng=function(c,e,g,l,p){EditorUi.logEvent("SHOULD NOT BE CALLED: writeGraphModelToPng");return Editor.writeGraphModelToPng(c,
+e,g,l,p)};EditorUi.prototype.getLocalStorageFileNames=function(){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;for(var c=[],e=0;e<localStorage.length;e++){var g=localStorage.key(e),l=localStorage.getItem(g);if(0<g.length&&(".scratchpad"==g||"."!=g.charAt(0))&&0<l.length){var p="<mxfile "===l.substring(0,8)||"<?xml"===l.substring(0,5)||"\x3c!--[if IE]>"===l.substring(0,12);l="<mxlibrary>"===l.substring(0,11);(p||l)&&c.push(g)}}return c};EditorUi.prototype.getLocalStorageFile=
function(c){if("1"==localStorage.getItem(".localStorageMigrated")&&"1"!=urlParams.forceMigration)return null;var e=localStorage.getItem(c);return{title:c,data:e,isLib:"<mxlibrary>"===e.substring(0,11)}};EditorUi.prototype.setMigratedFlag=function(){localStorage.setItem(".localStorageMigrated","1")}})();
-var CommentsWindow=function(b,f,m,d,t,x){function v(){for(var q=D.getElementsByTagName("div"),G=0,E=0;E<q.length;E++)"none"!=q[E].style.display&&q[E].parentNode==D&&G++;C.style.display=0==G?"block":"none"}function B(q,G,E,H){function L(){G.removeChild(y);G.removeChild(F);k.style.display="block";K.style.display="block"}n={div:G,comment:q,saveCallback:E,deleteOnCancel:H};var K=G.querySelector(".geCommentTxt"),k=G.querySelector(".geCommentActionsList"),y=document.createElement("textarea");y.className=
-"geCommentEditTxtArea";y.style.minHeight=K.offsetHeight+"px";y.value=q.content;G.insertBefore(y,K);var F=document.createElement("div");F.className="geCommentEditBtns";var M=mxUtils.button(mxResources.get("cancel"),function(){H?(G.parentNode.removeChild(G),v()):L();n=null});M.className="geCommentEditBtn";F.appendChild(M);var P=mxUtils.button(mxResources.get("save"),function(){K.innerText="";q.content=y.value;mxUtils.write(K,q.content);L();E(q);n=null});mxEvent.addListener(y,"keydown",mxUtils.bind(this,
-function(R){mxEvent.isConsumed(R)||((mxEvent.isControlDown(R)||mxClient.IS_MAC&&mxEvent.isMetaDown(R))&&13==R.keyCode?(P.click(),mxEvent.consume(R)):27==R.keyCode&&(M.click(),mxEvent.consume(R)))}));P.focus();P.className="geCommentEditBtn gePrimaryBtn";F.appendChild(P);G.insertBefore(F,K);k.style.display="none";K.style.display="none";y.focus()}function J(q,G){G.innerText="";q=new Date(q.modifiedDate);var E=b.timeSince(q);null==E&&(E=mxResources.get("lessThanAMinute"));mxUtils.write(G,mxResources.get("timeAgo",
-[E],"{1} ago"));G.setAttribute("title",q.toLocaleDateString()+" "+q.toLocaleTimeString())}function N(q){var G=document.createElement("img");G.className="geCommentBusyImg";G.src=IMAGE_PATH+"/spin.gif";q.appendChild(G);q.busyImg=G}function I(q){q.style.border="1px solid red";q.busyImg.parentNode==q&&q.removeChild(q.busyImg)}function c(q){q.style.border="";q.busyImg.parentNode==q&&q.removeChild(q.busyImg)}function e(q,G,E,H,L){function K(V,W,X){var Y=document.createElement("li");Y.className="geCommentAction";
-var Z=document.createElement("a");Z.className="geCommentActionLnk";mxUtils.write(Z,V);Y.appendChild(Z);mxEvent.addListener(Z,"click",function(da){W(da,q);da.preventDefault();mxEvent.consume(da)});T.appendChild(Y);X&&(Y.style.display="none")}function k(){function V(Y){W.push(X);if(null!=Y.replies)for(var Z=0;Z<Y.replies.length;Z++)X=X.nextSibling,V(Y.replies[Z])}var W=[],X=F;V(q);return{pdiv:X,replies:W}}function y(V,W,X,Y,Z){function da(){N(ha);q.addReply(ba,function(aa){ba.id=aa;q.replies.push(ba);
-c(ha);X&&X()},function(aa){ea();I(ha);b.handleError(aa,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},Y,Z)}function ea(){B(ba,ha,function(aa){da()},!0)}var ka=k().pdiv,ba=b.newComment(V,b.getCurrentUser());ba.pCommentId=q.id;null==q.replies&&(q.replies=[]);var ha=e(ba,q.replies,ka,H+1);W?ea():da()}if(L||!q.isResolved){C.style.display="none";var F=document.createElement("div");F.className="geCommentContainer";F.setAttribute("data-commentId",q.id);F.style.marginLeft=20*H+5+
-"px";q.isResolved&&(u.style.opacity="0.7");var M=document.createElement("div");M.className="geCommentHeader";var P=document.createElement("img");P.className="geCommentUserImg";P.src=null!=q.user&&null!=q.user.pictureUrl?q.user.pictureUrl:Editor.userImage;M.appendChild(P);P=document.createElement("div");P.className="geCommentHeaderTxt";M.appendChild(P);var R=document.createElement("div");R.className="geCommentUsername";mxUtils.write(R,null!=q.user?q.user.displayName:mxResources.get("unknownUser"));
-P.appendChild(R);R=document.createElement("div");R.className="geCommentDate";R.setAttribute("data-commentId",q.id);J(q,R);P.appendChild(R);F.appendChild(M);M=document.createElement("div");M.className="geCommentTxt";mxUtils.write(M,q.content||"");F.appendChild(M);q.isLocked&&(F.style.opacity="0.5");M=document.createElement("div");M.className="geCommentActions";var T=document.createElement("ul");T.className="geCommentActionsList";M.appendChild(T);g||q.isLocked||0!=H&&!l||K(mxResources.get("reply"),
-function(){y("",!0)},q.isResolved);P=b.getCurrentUser();null==P||null==q.user||P.id!=q.user.id||g||q.isLocked||(K(mxResources.get("edit"),function(){function V(){B(q,F,function(){N(F);q.editComment(q.content,function(){c(F)},function(W){I(F);V();b.handleError(W,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}V()},q.isResolved),K(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){N(F);q.deleteComment(function(V){if(!0===V){V=F.querySelector(".geCommentTxt");
-V.innerText="";mxUtils.write(V,mxResources.get("msgDeleted"));var W=F.querySelectorAll(".geCommentAction");for(V=0;V<W.length;V++)W[V].parentNode.removeChild(W[V]);c(F);F.style.opacity="0.5"}else{W=k(q).replies;for(V=0;V<W.length;V++)D.removeChild(W[V]);for(V=0;V<G.length;V++)if(G[V]==q){G.splice(V,1);break}C.style.display=0==D.getElementsByTagName("div").length?"block":"none"}},function(V){I(F);b.handleError(V,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},q.isResolved));
-g||q.isLocked||0!=H||K(q.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(V){function W(){var X=V.target;X.innerText="";q.isResolved=!q.isResolved;mxUtils.write(X,q.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var Y=q.isResolved?"none":"",Z=k(q).replies,da="light-dark("+(q.isResolved?"ghostWhite":"white")+", transparent)",ea=0;ea<Z.length;ea++){Z[ea].style.backgroundColor=da;for(var ka=Z[ea].querySelectorAll(".geCommentAction"),ba=0;ba<ka.length;ba++)ka[ba]!=
-X.parentNode&&(ka[ba].style.display=Y);U||(Z[ea].style.display="none")}v()}q.isResolved?y(mxResources.get("reOpened")+": ",!0,W,!1,!0):y(mxResources.get("markedAsResolved"),!1,W,!0)});F.appendChild(M);null!=E?D.insertBefore(F,E.nextSibling):D.appendChild(F);for(E=0;null!=q.replies&&E<q.replies.length;E++)M=q.replies[E],M.isResolved=q.isResolved,e(M,q.replies,null,H+1,L);null!=n&&(n.comment.id==q.id?(L=q.content,q.content=n.comment.content,B(q,F,n.saveCallback,n.deleteOnCancel),q.content=L):null==
-n.comment.id&&n.comment.pCommentId==q.id&&(D.appendChild(n.div),B(n.comment,n.div,n.saveCallback,n.deleteOnCancel)));return F}}var g=!b.canComment(),l=b.canReplyToReplies(),n=null,u=document.createElement("div");u.className="geCommentsWin";var z=EditorUi.compactUi?"26px":"30px",D=document.createElement("div");D.className="geCommentsList";D.style.bottom=parseInt(z)+7+"px";u.appendChild(D);var C=document.createElement("span");C.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(C,
-mxResources.get("noCommentsFound"));var A=document.createElement("div");A.className="geToolbarContainer geCommentsToolbar";A.style.height=z;A.style.padding="3px 4px 4px 4px";z=document.createElement("a");z.className="geButton";if(!g){var Q=z.cloneNode();Q.style.backgroundImage="url("+Editor.plusImage+")";Q.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(Q,"click",function(q){function G(){B(E,H,function(L){N(H);b.addComment(L,function(K){L.id=K;O.push(L);c(H)},function(K){I(H);
-G();b.handleError(K,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var E=b.newComment("",b.getCurrentUser()),H=e(E,O,null,0);G();q.preventDefault();mxEvent.consume(q)});A.appendChild(Q)}var S=z.cloneNode();S.style.backgroundImage="url("+Editor.checkImage+")";S.setAttribute("title",mxResources.get("showResolved"));var U=!1;mxEvent.addListener(S,"click",function(q){(U=!U)?S.classList.add("geActiveItem"):S.classList.remove("geActiveItem");p();q.preventDefault();mxEvent.consume(q)});
-A.appendChild(S);b.commentsRefreshNeeded()&&(Q=z.cloneNode(),Q.style.backgroundImage="url("+Editor.refreshImage+")",Q.setAttribute("title",mxResources.get("refresh")),mxEvent.addListener(Q,"click",function(q){p();q.preventDefault();mxEvent.consume(q)}),A.appendChild(Q));b.commentsSaveNeeded()&&(z=z.cloneNode(),z.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',z.setAttribute("title",mxResources.get("save")),z.className="geButton geAdaptiveAsset",mxEvent.addListener(z,
-"click",function(q){x();q.preventDefault();mxEvent.consume(q)}),A.appendChild(z));u.appendChild(A);var O=[],p=mxUtils.bind(this,function(){this.hasError=!1;if(null!=n)try{n.div=n.div.cloneNode(!0);var q=n.div.querySelector(".geCommentEditTxtArea"),G=n.div.querySelector(".geCommentEditBtns");n.comment.content=q.value;q.parentNode.removeChild(q);G.parentNode.removeChild(G)}catch(E){b.handleError(E)}D.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(E){function H(L){if(null!=L){L.sort(function(k,y){return new Date(k.modifiedDate)-new Date(y.modifiedDate)});for(var K=0;K<L.length;K++)H(L[K].replies)}}E.sort(function(L,K){return new Date(L.modifiedDate)-new Date(K.modifiedDate)});D.innerText="";D.appendChild(C);C.style.display="block";O=E;for(E=0;E<O.length;E++)H(O[E].replies),e(O[E],O,null,0,U);null!=n&&null==n.comment.id&&
-null==n.comment.pCommentId&&(D.appendChild(n.div),B(n.comment,n.div,n.saveCallback,n.deleteOnCancel))},mxUtils.bind(this,function(E){D.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(E&&E.message?": "+E.message:""));this.hasError=!0})):D.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});p();this.refreshComments=p;A=mxUtils.bind(this,function(){function q(K){var k=E[K.id];if(null!=k)for(J(K,k),k=0;null!=K.replies&&k<K.replies.length;k++)q(K.replies[k])}if(this.window.isVisible()){for(var G=
-D.querySelectorAll(".geCommentDate"),E={},H=0;H<G.length;H++){var L=G[H];E[L.getAttribute("data-commentId")]=L}for(H=0;H<O.length;H++)q(O[H])}});setInterval(A,6E4);this.refreshCommentsTime=A;this.window=new mxWindow(mxResources.get("comments"),u,f,m,d,t,!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,f,m,d,t,x,v,B,J,N,I){var c=document.createElement("div");c.style.textAlign="center";I=null!=I?I:44;var e=document.createElement("div");e.style.padding="6px";e.style.overflow="auto";e.style.maxHeight=I+"px";e.style.lineHeight="1.2em";mxUtils.write(e,f);c.appendChild(e);null!=N&&(e=document.createElement("div"),e.style.padding="6px 0 6px 0",f=document.createElement("img"),f.setAttribute("src",N),e.appendChild(f),
-c.appendChild(e));N=document.createElement("div");N.style.textAlign="center";N.style.whiteSpace="nowrap";var g=document.createElement("input");g.setAttribute("type","checkbox");x=mxUtils.button(x||mxResources.get("cancel"),function(){b.hideDialog();null!=d&&d(g.checked)});x.className="geBtn";null!=B&&(x.innerHTML=B+"<br>"+x.innerHTML,x.style.display="inline-block",x.style.paddingBottom="8px",x.style.paddingTop="8px",x.style.height="auto",x.style.width="40%");b.editor.cancelFirst&&N.appendChild(x);
-var l=mxUtils.button(t||mxResources.get("ok"),function(){b.hideDialog();null!=m&&m(g.checked)});N.appendChild(l);null!=v?(l.innerHTML=v+"<br>"+l.innerHTML+"<br>",l.style.display="inline-block",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||N.appendChild(x);c.appendChild(N);J?(N.style.marginTop="10px",e=document.createElement("p"),e.style.marginTop="20px",e.style.marginBottom=
-"0px",e.appendChild(g),t=document.createElement("span"),mxUtils.write(t," "+mxResources.get("rememberThisSetting")),e.appendChild(t),c.appendChild(e),mxEvent.addListener(t,"click",function(n){g.checked=!g.checked;mxEvent.consume(n)})):N.style.marginTop="12px";this.init=function(){l.focus()};this.container=c},HeadlessEditorUi=function(){EditorUi.call(this,new Editor(!0),document.createElement("div"),!0)};mxUtils.extend(HeadlessEditorUi,EditorUi);HeadlessEditorUi.prototype.createUi=function(){};
+var CommentsWindow=function(b,f,m,d,q,x){function C(){for(var n=E.getElementsByTagName("div"),t=0,B=0;B<n.length;B++)"none"!=n[B].style.display&&n[B].parentNode==E&&t++;D.style.display=0==t?"block":"none"}function y(n,t,B,F){function J(){t.removeChild(v);t.removeChild(G);k.style.display="block";K.style.display="block"}p={div:t,comment:n,saveCallback:B,deleteOnCancel:F};var K=t.querySelector(".geCommentTxt"),k=t.querySelector(".geCommentActionsList"),v=document.createElement("textarea");v.className=
+"geCommentEditTxtArea";v.style.minHeight=K.offsetHeight+"px";v.value=n.content;t.insertBefore(v,K);var G=document.createElement("div");G.className="geCommentEditBtns";var N=mxUtils.button(mxResources.get("cancel"),function(){F?(t.parentNode.removeChild(t),C()):J();p=null});N.className="geCommentEditBtn";G.appendChild(N);var O=mxUtils.button(mxResources.get("save"),function(){K.innerText="";n.content=v.value;mxUtils.write(K,n.content);J();B(n);p=null});mxEvent.addListener(v,"keydown",mxUtils.bind(this,
+function(Q){mxEvent.isConsumed(Q)||((mxEvent.isControlDown(Q)||mxClient.IS_MAC&&mxEvent.isMetaDown(Q))&&13==Q.keyCode?(O.click(),mxEvent.consume(Q)):27==Q.keyCode&&(N.click(),mxEvent.consume(Q)))}));O.focus();O.className="geCommentEditBtn gePrimaryBtn";G.appendChild(O);t.insertBefore(G,K);k.style.display="none";K.style.display="none";v.focus()}function I(n,t){t.innerText="";n=new Date(n.modifiedDate);var B=b.timeSince(n);null==B&&(B=mxResources.get("lessThanAMinute"));mxUtils.write(t,mxResources.get("timeAgo",
+[B],"{1} ago"));t.setAttribute("title",n.toLocaleDateString()+" "+n.toLocaleTimeString())}function M(n){var t=document.createElement("img");t.className="geCommentBusyImg";t.src=IMAGE_PATH+"/spin.gif";n.appendChild(t);n.busyImg=t}function H(n){n.style.border="1px solid red";n.busyImg.parentNode==n&&n.removeChild(n.busyImg)}function c(n){n.style.border="";n.busyImg.parentNode==n&&n.removeChild(n.busyImg)}function e(n,t,B,F,J){function K(V,W,X){var Z=document.createElement("li");Z.className="geCommentAction";
+var Y=document.createElement("a");Y.className="geCommentActionLnk";mxUtils.write(Y,V);Z.appendChild(Y);mxEvent.addListener(Y,"click",function(ea){W(ea,n);ea.preventDefault();mxEvent.consume(ea)});S.appendChild(Z);X&&(Z.style.display="none")}function k(){function V(Z){W.push(X);if(null!=Z.replies)for(var Y=0;Y<Z.replies.length;Y++)X=X.nextSibling,V(Z.replies[Y])}var W=[],X=G;V(n);return{pdiv:X,replies:W}}function v(V,W,X,Z,Y){function ea(){M(ha);n.addReply(ba,function(aa){ba.id=aa;n.replies.push(ba);
+c(ha);X&&X()},function(aa){ca();H(ha);b.handleError(aa,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))},Z,Y)}function ca(){y(ba,ha,function(aa){ea()},!0)}var ka=k().pdiv,ba=b.newComment(V,b.getCurrentUser());ba.pCommentId=n.id;null==n.replies&&(n.replies=[]);var ha=e(ba,n.replies,ka,F+1);W?ca():ea()}if(J||!n.isResolved){D.style.display="none";var G=document.createElement("div");G.className="geCommentContainer";G.setAttribute("data-commentId",n.id);G.style.marginLeft=20*F+5+
+"px";n.isResolved&&(u.style.opacity="0.7");var N=document.createElement("div");N.className="geCommentHeader";var O=document.createElement("img");O.className="geCommentUserImg";O.src=null!=n.user&&null!=n.user.pictureUrl?n.user.pictureUrl:Editor.userImage;N.appendChild(O);O=document.createElement("div");O.className="geCommentHeaderTxt";N.appendChild(O);var Q=document.createElement("div");Q.className="geCommentUsername";mxUtils.write(Q,null!=n.user?n.user.displayName:mxResources.get("unknownUser"));
+O.appendChild(Q);Q=document.createElement("div");Q.className="geCommentDate";Q.setAttribute("data-commentId",n.id);I(n,Q);O.appendChild(Q);G.appendChild(N);N=document.createElement("div");N.className="geCommentTxt";mxUtils.write(N,n.content||"");G.appendChild(N);n.isLocked&&(G.style.opacity="0.5");N=document.createElement("div");N.className="geCommentActions";var S=document.createElement("ul");S.className="geCommentActionsList";N.appendChild(S);g||n.isLocked||0!=F&&!l||K(mxResources.get("reply"),
+function(){v("",!0)},n.isResolved);O=b.getCurrentUser();null==O||null==n.user||O.id!=n.user.id||g||n.isLocked||(K(mxResources.get("edit"),function(){function V(){y(n,G,function(){M(G);n.editComment(n.content,function(){c(G)},function(W){H(G);V();b.handleError(W,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})}V()},n.isResolved),K(mxResources.get("delete"),function(){b.confirm(mxResources.get("areYouSure"),function(){M(G);n.deleteComment(function(V){if(!0===V){V=G.querySelector(".geCommentTxt");
+V.innerText="";mxUtils.write(V,mxResources.get("msgDeleted"));var W=G.querySelectorAll(".geCommentAction");for(V=0;V<W.length;V++)W[V].parentNode.removeChild(W[V]);c(G);G.style.opacity="0.5"}else{W=k(n).replies;for(V=0;V<W.length;V++)E.removeChild(W[V]);for(V=0;V<t.length;V++)if(t[V]==n){t.splice(V,1);break}D.style.display=0==E.getElementsByTagName("div").length?"block":"none"}},function(V){H(G);b.handleError(V,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})})},n.isResolved));
+g||n.isLocked||0!=F||K(n.isResolved?mxResources.get("reopen"):mxResources.get("resolve"),function(V){function W(){var X=V.target;X.innerText="";n.isResolved=!n.isResolved;mxUtils.write(X,n.isResolved?mxResources.get("reopen"):mxResources.get("resolve"));for(var Z=n.isResolved?"none":"",Y=k(n).replies,ea="light-dark("+(n.isResolved?"ghostWhite":"white")+", transparent)",ca=0;ca<Y.length;ca++){Y[ca].style.backgroundColor=ea;for(var ka=Y[ca].querySelectorAll(".geCommentAction"),ba=0;ba<ka.length;ba++)ka[ba]!=
+X.parentNode&&(ka[ba].style.display=Z);T||(Y[ca].style.display="none")}C()}n.isResolved?v(mxResources.get("reOpened")+": ",!0,W,!1,!0):v(mxResources.get("markedAsResolved"),!1,W,!0)});G.appendChild(N);null!=B?E.insertBefore(G,B.nextSibling):E.appendChild(G);for(B=0;null!=n.replies&&B<n.replies.length;B++)N=n.replies[B],N.isResolved=n.isResolved,e(N,n.replies,null,F+1,J);null!=p&&(p.comment.id==n.id?(J=n.content,n.content=p.comment.content,y(n,G,p.saveCallback,p.deleteOnCancel),n.content=J):null==
+p.comment.id&&p.comment.pCommentId==n.id&&(E.appendChild(p.div),y(p.comment,p.div,p.saveCallback,p.deleteOnCancel)));return G}}var g=!b.canComment(),l=b.canReplyToReplies(),p=null,u=document.createElement("div");u.className="geCommentsWin";var z=EditorUi.compactUi?"26px":"30px",E=document.createElement("div");E.className="geCommentsList";E.style.bottom=parseInt(z)+7+"px";u.appendChild(E);var D=document.createElement("span");D.style.cssText="display:none;padding-top:10px;text-align:center;";mxUtils.write(D,
+mxResources.get("noCommentsFound"));var A=document.createElement("div");A.className="geToolbarContainer geCommentsToolbar";A.style.height=z;A.style.padding="3px 4px 4px 4px";z=document.createElement("a");z.className="geButton";if(!g){var P=z.cloneNode();P.style.backgroundImage="url("+Editor.plusImage+")";P.setAttribute("title",mxResources.get("create")+"...");mxEvent.addListener(P,"click",function(n){function t(){y(B,F,function(J){M(F);b.addComment(J,function(K){J.id=K;L.push(J);c(F)},function(K){H(F);
+t();b.handleError(K,null,null,null,mxUtils.htmlEntities(mxResources.get("objectNotFound")))})},!0)}var B=b.newComment("",b.getCurrentUser()),F=e(B,L,null,0);t();n.preventDefault();mxEvent.consume(n)});A.appendChild(P)}var R=z.cloneNode();R.style.backgroundImage="url("+Editor.checkImage+")";R.setAttribute("title",mxResources.get("showResolved"));var T=!1;mxEvent.addListener(R,"click",function(n){(T=!T)?R.classList.add("geActiveItem"):R.classList.remove("geActiveItem");U();n.preventDefault();mxEvent.consume(n)});
+A.appendChild(R);b.commentsRefreshNeeded()&&(P=z.cloneNode(),P.style.backgroundImage="url("+Editor.refreshImage+")",P.setAttribute("title",mxResources.get("refresh")),mxEvent.addListener(P,"click",function(n){U();n.preventDefault();mxEvent.consume(n)}),A.appendChild(P));b.commentsSaveNeeded()&&(z=z.cloneNode(),z.innerHTML='<img src="'+IMAGE_PATH+'/save.png" style="width: 20px; padding: 2px;">',z.setAttribute("title",mxResources.get("save")),z.className="geButton geAdaptiveAsset",mxEvent.addListener(z,
+"click",function(n){x();n.preventDefault();mxEvent.consume(n)}),A.appendChild(z));u.appendChild(A);var L=[],U=mxUtils.bind(this,function(){this.hasError=!1;if(null!=p)try{p.div=p.div.cloneNode(!0);var n=p.div.querySelector(".geCommentEditTxtArea"),t=p.div.querySelector(".geCommentEditBtns");p.comment.content=n.value;n.parentNode.removeChild(n);t.parentNode.removeChild(t)}catch(B){b.handleError(B)}E.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(B){function F(J){if(null!=J){J.sort(function(k,v){return new Date(k.modifiedDate)-new Date(v.modifiedDate)});for(var K=0;K<J.length;K++)F(J[K].replies)}}B.sort(function(J,K){return new Date(J.modifiedDate)-new Date(K.modifiedDate)});E.innerText="";E.appendChild(D);D.style.display="block";L=B;for(B=0;B<L.length;B++)F(L[B].replies),e(L[B],L,null,0,T);null!=p&&null==p.comment.id&&
+null==p.comment.pCommentId&&(E.appendChild(p.div),y(p.comment,p.div,p.saveCallback,p.deleteOnCancel))},mxUtils.bind(this,function(B){E.innerHTML=mxUtils.htmlEntities(mxResources.get("error")+(B&&B.message?": "+B.message:""));this.hasError=!0})):E.innerHTML=mxUtils.htmlEntities(mxResources.get("error"))});U();this.refreshComments=U;A=mxUtils.bind(this,function(){function n(K){var k=B[K.id];if(null!=k)for(I(K,k),k=0;null!=K.replies&&k<K.replies.length;k++)n(K.replies[k])}if(this.window.isVisible()){for(var t=
+E.querySelectorAll(".geCommentDate"),B={},F=0;F<t.length;F++){var J=t[F];B[J.getAttribute("data-commentId")]=J}for(F=0;F<L.length;F++)n(L[F])}});setInterval(A,6E4);this.refreshCommentsTime=A;this.window=new mxWindow(mxResources.get("comments"),u,f,m,d,q,!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,f,m,d,q,x,C,y,I,M,H){var c=document.createElement("div");c.style.textAlign="center";H=null!=H?H:44;var e=document.createElement("div");e.style.padding="6px";e.style.overflow="auto";e.style.maxHeight=H+"px";e.style.lineHeight="1.2em";mxUtils.write(e,f);c.appendChild(e);null!=M&&(e=document.createElement("div"),e.style.padding="6px 0 6px 0",f=document.createElement("img"),f.setAttribute("src",M),e.appendChild(f),
+c.appendChild(e));M=document.createElement("div");M.style.textAlign="center";M.style.whiteSpace="nowrap";var g=document.createElement("input");g.setAttribute("type","checkbox");x=mxUtils.button(x||mxResources.get("cancel"),function(){b.hideDialog();null!=d&&d(g.checked)});x.className="geBtn";null!=y&&(x.innerHTML=y+"<br>"+x.innerHTML,x.style.display="inline-block",x.style.paddingBottom="8px",x.style.paddingTop="8px",x.style.height="auto",x.style.width="40%");b.editor.cancelFirst&&M.appendChild(x);
+var l=mxUtils.button(q||mxResources.get("ok"),function(){b.hideDialog();null!=m&&m(g.checked)});M.appendChild(l);null!=C?(l.innerHTML=C+"<br>"+l.innerHTML+"<br>",l.style.display="inline-block",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||M.appendChild(x);c.appendChild(M);I?(M.style.marginTop="10px",e=document.createElement("p"),e.style.marginTop="20px",e.style.marginBottom=
+"0px",e.appendChild(g),q=document.createElement("span"),mxUtils.write(q," "+mxResources.get("rememberThisSetting")),e.appendChild(q),c.appendChild(e),mxEvent.addListener(q,"click",function(p){g.checked=!g.checked;mxEvent.consume(p)})):M.style.marginTop="12px";this.init=function(){l.focus()};this.container=c},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(){};EditorUi.DIFF_INSERT="i";EditorUi.DIFF_REMOVE="r";EditorUi.DIFF_UPDATE="u";EditorUi.transientViewStateProperties="defaultParent currentRoot scrollLeft scrollTop scale translate lastPasteXml pasteCounter".split(" ");EditorUi.prototype.viewStateProperties={background:!0,backgroundImage:!0,shadowVisible:!0,foldingEnabled:!0,pageScale:!0,mathEnabled:!0,pageFormat:!0,extFonts:!0};
-EditorUi.prototype.cellProperties={id:!0,value:!0,xmlValue:!0,vertex:!0,edge:!0,visible:!0,collapsed:!0,connectable:!0,parent:!0,children:!0,previous:!0,source:!0,target:!0,edges:!0,geometry:!0,style:!0,overlays:!0,mxObjectId:!0,mxTransient:!0};EditorUi.prototype.codec=new mxCodec;EditorUi.prototype.applyPatches=function(b,f,m,d,t){if(null!=f)for(var x=0;x<f.length;x++)null!=f[x]&&(b=this.patchPages(b,f[x],m,d,t));return b};
-EditorUi.prototype.patchPages=function(b,f,m,d,t){var x={},v=[],B={},J={},N={},I={};if(null!=d&&null!=d[EditorUi.DIFF_UPDATE])for(var c in d[EditorUi.DIFF_UPDATE])x[c]=d[EditorUi.DIFF_UPDATE][c];if(null!=f[EditorUi.DIFF_REMOVE])for(d=0;d<f[EditorUi.DIFF_REMOVE].length;d++)J[f[EditorUi.DIFF_REMOVE][d]]=!0;if(null!=f[EditorUi.DIFF_INSERT])for(d=0;d<f[EditorUi.DIFF_INSERT].length;d++)B[f[EditorUi.DIFF_INSERT][d].previous]=f[EditorUi.DIFF_INSERT][d];if(null!=f[EditorUi.DIFF_UPDATE])for(c in f[EditorUi.DIFF_UPDATE])d=
-f[EditorUi.DIFF_UPDATE][c],null!=d.previous&&(I[d.previous]=c);if(null!=b){var e="";for(d=0;d<b.length;d++){var g=b[d].getId();N[g]=b[d];null!=I[e]||J[g]||null!=f[EditorUi.DIFF_UPDATE]&&null!=f[EditorUi.DIFF_UPDATE][g]&&null!=f[EditorUi.DIFF_UPDATE][g].previous||(I[e]=g);e=g}}var l={},n=mxUtils.bind(this,function(z){var D=null!=z?z.getId():"";if(null!=z&&!l[D]){l[D]=!0;v.push(z);var C=null!=f[EditorUi.DIFF_UPDATE]?f[EditorUi.DIFF_UPDATE][D]:null;null!=C&&(this.updatePageRoot(z),null!=C.name&&z.setName(C.name),
-null!=C.view&&this.patchViewState(z,C.view),null!=C.cells&&this.patchPage(z,C.cells,x[z.getId()],t),!m||null==C.cells&&null==C.view||(z.needsUpdate=!0))}z=I[D];null!=z&&(delete I[D],n(N[z]));z=B[D];null!=z&&(delete B[D],u(z))}),u=mxUtils.bind(this,function(z){z=mxUtils.parseXml(z.data).documentElement;z=new DiagramPage(z);this.updatePageRoot(z);var D=N[z.getId()];null==D?n(z):(this.patchPage(D,this.diffPages([D],[z]),x[D.getId()],t),m&&(D.needsUpdate=!0))});n();for(c in I)n(N[I[c]]),delete I[c];for(c in B)u(B[c]),
-delete B[c];return v};EditorUi.prototype.patchViewState=function(b,f){if(null!=b.viewState&&null!=f){b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var m in f)try{this.patchViewStateProperty(b,f,m)}catch(d){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototype.patchViewStateProperty=function(b,f,m){b.viewState[m]=JSON.parse(f[m])};
-EditorUi.prototype.createParentLookup=function(b,f){function m(N){var I=d[N];null==I&&(I={inserted:[],moved:{}},d[N]=I);return I}var d={};if(null!=f[EditorUi.DIFF_INSERT])for(var t=0;t<f[EditorUi.DIFF_INSERT].length;t++){var x=f[EditorUi.DIFF_INSERT][t],v=null!=x.parent?x.parent:"",B=null!=x.previous?x.previous:"";m(v).inserted[B]=x}if(null!=f[EditorUi.DIFF_UPDATE])for(var J in f[EditorUi.DIFF_UPDATE])x=f[EditorUi.DIFF_UPDATE][J],null!=x.previous&&(v=x.parent,null==v&&(t=b.getCell(J),null!=t&&(t=
-b.getParent(t),null!=t&&(v=t.getId()))),null!=v&&(m(v).moved[x.previous]=J));return d};
-EditorUi.prototype.patchPage=function(b,f,m,d){var t=b==this.currentPage?this.editor.graph.model:new mxGraphModel(b.root),x=this.createParentLookup(t,f);t.beginUpdate();try{var v=t.updateEdgeParent,B=new mxDictionary,J=[];t.updateEdgeParent=function(u,z){!B.get(u)&&d&&(B.put(u,!0),J.push(u))};var N=x[""],I=null!=N&&null!=N.inserted?N.inserted[""]:null,c=null;null!=I&&(c=this.getCellForJson(I));if(null==c){var e=null!=N&&null!=N.moved?N.moved[""]:null;null!=e&&(c=t.getCell(e))}null!=c&&(t.setRoot(c),
-b.root=c,EditorUi.debug("EditorUi.patchPage: Root changed",c.id));this.patchCellRecursive(b,t,t.root,x,f);if(null!=f[EditorUi.DIFF_REMOVE])for(var g=0;g<f[EditorUi.DIFF_REMOVE].length;g++){e=f[EditorUi.DIFF_REMOVE][g];var l=t.getCell(e);null!=l&&t.remove(l)}if(null!=f[EditorUi.DIFF_UPDATE]){var n=null!=m&&null!=m.cells?m.cells[EditorUi.DIFF_UPDATE]:null;for(e in f[EditorUi.DIFF_UPDATE])l=t.getCell(e),null!=l?this.patchCell(t,l,f[EditorUi.DIFF_UPDATE][e],null!=n?n[e]:null):EditorUi.debug("EditorUi.patchPage: Updated cell not found",
-e,"diff",[f[EditorUi.DIFF_UPDATE][e]])}if(null!=f[EditorUi.DIFF_INSERT])for(g=0;g<f[EditorUi.DIFF_INSERT].length;g++)I=f[EditorUi.DIFF_INSERT][g],l=t.getCell(I.id),null!=l&&(t.setTerminal(l,t.getCell(I.source),!0),t.setTerminal(l,t.getCell(I.target),!1));t.updateEdgeParent=v;if(d&&0<J.length)for(g=0;g<J.length;g++)t.contains(J[g])&&t.updateEdgeParent(J[g])}finally{t.endUpdate()}};
-EditorUi.prototype.patchCellRecursive=function(b,f,m,d,t){if(null!=m){var x=d[m.getId()],v=null!=x&&null!=x.inserted?x.inserted:{};x=null!=x&&null!=x.moved?x.moved:{};for(var B=0,J=f.getChildCount(m),N="",I=0;I<J;I++){var c=f.getChildAt(m,I).getId();null==x[N]&&(null==t[EditorUi.DIFF_UPDATE]||null==t[EditorUi.DIFF_UPDATE][c]||null==t[EditorUi.DIFF_UPDATE][c].previous&&null==t[EditorUi.DIFF_UPDATE][c].parent)&&(x[N]=c);N=c}J=mxUtils.bind(this,function(e,g){var l=null!=e?e.getId():"";null==l&&EditorUi.debug("EditorUi.patchCellRecursive: Inserting cell with null id",
-"cell",e);null!=e&&g&&(g=f.getCell(l),null!=g&&g!=e&&(e=null));null!=e&&(f.getChildAt(m,B)!=e&&f.add(m,e,B),this.patchCellRecursive(b,f,e,d,t),B++);return l});for(N=[null];0<N.length;)if(I=N.shift(),I=J(null!=I?I.child:null,null!=I?I.insert:!1),c=x[I],null!=c&&(delete x[I],N.push({child:f.getCell(c)})),c=v[I],null!=c&&(delete v[I],N.push({child:this.getCellForJson(c),insert:!0})),0==N.length){for(I in x)N.push({child:f.getCell(x[I])}),delete x[I];for(I in v)N.push({child:this.getCellForJson(v[I]),
-insert:!0}),delete v[I]}}};
+EditorUi.prototype.cellProperties={id:!0,value:!0,xmlValue:!0,vertex:!0,edge:!0,visible:!0,collapsed:!0,connectable:!0,parent:!0,children:!0,previous:!0,source:!0,target:!0,edges:!0,geometry:!0,style:!0,overlays:!0,mxObjectId:!0,mxTransient:!0};EditorUi.prototype.codec=new mxCodec;EditorUi.prototype.applyPatches=function(b,f,m,d,q){if(null!=f)for(var x=0;x<f.length;x++)null!=f[x]&&(b=this.patchPages(b,f[x],m,d,q));return b};
+EditorUi.prototype.patchPages=function(b,f,m,d,q){var x={},C=[],y={},I={},M={},H={};if(null!=d&&null!=d[EditorUi.DIFF_UPDATE])for(var c in d[EditorUi.DIFF_UPDATE])x[c]=d[EditorUi.DIFF_UPDATE][c];if(null!=f[EditorUi.DIFF_REMOVE])for(d=0;d<f[EditorUi.DIFF_REMOVE].length;d++)I[f[EditorUi.DIFF_REMOVE][d]]=!0;if(null!=f[EditorUi.DIFF_INSERT])for(d=0;d<f[EditorUi.DIFF_INSERT].length;d++)y[f[EditorUi.DIFF_INSERT][d].previous]=f[EditorUi.DIFF_INSERT][d];if(null!=f[EditorUi.DIFF_UPDATE])for(c in f[EditorUi.DIFF_UPDATE])d=
+f[EditorUi.DIFF_UPDATE][c],null!=d.previous&&(H[d.previous]=c);if(null!=b){var e="";for(d=0;d<b.length;d++){var g=b[d].getId();M[g]=b[d];null!=H[e]||I[g]||null!=f[EditorUi.DIFF_UPDATE]&&null!=f[EditorUi.DIFF_UPDATE][g]&&null!=f[EditorUi.DIFF_UPDATE][g].previous||(H[e]=g);e=g}}var l={},p=mxUtils.bind(this,function(z){var E=null!=z?z.getId():"";if(null!=z&&!l[E]){l[E]=!0;C.push(z);var D=null!=f[EditorUi.DIFF_UPDATE]?f[EditorUi.DIFF_UPDATE][E]:null;null!=D&&(this.updatePageRoot(z),null!=D.name&&z.setName(D.name),
+null!=D.view&&this.patchViewState(z,D.view),null!=D.cells&&this.patchPage(z,D.cells,x[z.getId()],q),!m||null==D.cells&&null==D.view||(z.needsUpdate=!0))}z=H[E];null!=z&&(delete H[E],p(M[z]));z=y[E];null!=z&&(delete y[E],u(z))}),u=mxUtils.bind(this,function(z){z=mxUtils.parseXml(z.data).documentElement;z=new DiagramPage(z);this.updatePageRoot(z);var E=M[z.getId()];null==E?p(z):(this.patchPage(E,this.diffPages([E],[z]),x[E.getId()],q),m&&(E.needsUpdate=!0))});p();for(c in H)p(M[H[c]]),delete H[c];for(c in y)u(y[c]),
+delete y[c];return C};EditorUi.prototype.patchViewState=function(b,f){if(null!=b.viewState&&null!=f){b==this.currentPage&&(b.viewState=this.editor.graph.getViewState());for(var m in f)try{this.patchViewStateProperty(b,f,m)}catch(d){}b==this.currentPage&&this.editor.graph.setViewState(b.viewState,!0)}};EditorUi.prototype.patchViewStateProperty=function(b,f,m){b.viewState[m]=JSON.parse(f[m])};
+EditorUi.prototype.createParentLookup=function(b,f){function m(M){var H=d[M];null==H&&(H={inserted:[],moved:{}},d[M]=H);return H}var d={};if(null!=f[EditorUi.DIFF_INSERT])for(var q=0;q<f[EditorUi.DIFF_INSERT].length;q++){var x=f[EditorUi.DIFF_INSERT][q],C=null!=x.parent?x.parent:"",y=null!=x.previous?x.previous:"";m(C).inserted[y]=x}if(null!=f[EditorUi.DIFF_UPDATE])for(var I in f[EditorUi.DIFF_UPDATE])x=f[EditorUi.DIFF_UPDATE][I],null!=x.previous&&(C=x.parent,null==C&&(q=b.getCell(I),null!=q&&(q=
+b.getParent(q),null!=q&&(C=q.getId()))),null!=C&&(m(C).moved[x.previous]=I));return d};
+EditorUi.prototype.patchPage=function(b,f,m,d){var q=b==this.currentPage?this.editor.graph.model:new mxGraphModel(b.root),x=this.createParentLookup(q,f);q.beginUpdate();try{var C=q.updateEdgeParent,y=new mxDictionary,I=[];q.updateEdgeParent=function(u,z){!y.get(u)&&d&&(y.put(u,!0),I.push(u))};var M=x[""],H=null!=M&&null!=M.inserted?M.inserted[""]:null,c=null;null!=H&&(c=this.getCellForJson(H));if(null==c){var e=null!=M&&null!=M.moved?M.moved[""]:null;null!=e&&(c=q.getCell(e))}null!=c&&(q.setRoot(c),
+b.root=c,EditorUi.debug("EditorUi.patchPage: Root changed",c.id));this.patchCellRecursive(b,q,q.root,x,f);if(null!=f[EditorUi.DIFF_REMOVE])for(var g=0;g<f[EditorUi.DIFF_REMOVE].length;g++){e=f[EditorUi.DIFF_REMOVE][g];var l=q.getCell(e);null!=l&&q.remove(l)}if(null!=f[EditorUi.DIFF_UPDATE]){var p=null!=m&&null!=m.cells?m.cells[EditorUi.DIFF_UPDATE]:null;for(e in f[EditorUi.DIFF_UPDATE])l=q.getCell(e),null!=l?this.patchCell(q,l,f[EditorUi.DIFF_UPDATE][e],null!=p?p[e]:null):EditorUi.debug("EditorUi.patchPage: Updated cell not found",
+e,"diff",[f[EditorUi.DIFF_UPDATE][e]])}if(null!=f[EditorUi.DIFF_INSERT])for(g=0;g<f[EditorUi.DIFF_INSERT].length;g++)H=f[EditorUi.DIFF_INSERT][g],l=q.getCell(H.id),null!=l&&(q.setTerminal(l,q.getCell(H.source),!0),q.setTerminal(l,q.getCell(H.target),!1));q.updateEdgeParent=C;if(d&&0<I.length)for(g=0;g<I.length;g++)q.contains(I[g])&&q.updateEdgeParent(I[g])}finally{q.endUpdate()}};
+EditorUi.prototype.patchCellRecursive=function(b,f,m,d,q){if(null!=m){var x=d[m.getId()],C=null!=x&&null!=x.inserted?x.inserted:{};x=null!=x&&null!=x.moved?x.moved:{};for(var y=0,I=f.getChildCount(m),M="",H=0;H<I;H++){var c=f.getChildAt(m,H).getId();null==x[M]&&(null==q[EditorUi.DIFF_UPDATE]||null==q[EditorUi.DIFF_UPDATE][c]||null==q[EditorUi.DIFF_UPDATE][c].previous&&null==q[EditorUi.DIFF_UPDATE][c].parent)&&(x[M]=c);M=c}I=mxUtils.bind(this,function(e,g){var l=null!=e?e.getId():"";null==l&&EditorUi.debug("EditorUi.patchCellRecursive: Inserting cell with null id",
+"cell",e);null!=e&&g&&(g=f.getCell(l),null!=g&&g!=e&&(e=null));null!=e&&(f.getChildAt(m,y)!=e&&f.add(m,e,y),this.patchCellRecursive(b,f,e,d,q),y++);return l});for(M=[null];0<M.length;)if(H=M.shift(),H=I(null!=H?H.child:null,null!=H?H.insert:!1),c=x[H],null!=c&&(delete x[H],M.push({child:f.getCell(c)})),c=C[H],null!=c&&(delete C[H],M.push({child:this.getCellForJson(c),insert:!0})),0==M.length){for(H in x)M.push({child:f.getCell(x[H])}),delete x[H];for(H in C)M.push({child:this.getCellForJson(C[H]),
+insert:!0}),delete C[H]}}};
EditorUi.prototype.patchCell=function(b,f,m,d){if(null!=f&&null!=m){if(null==d||null==d.xmlValue&&(null==d.value||""==d.value))"value"in m?b.setValue(f,m.value):null!=m.xmlValue&&b.setValue(f,mxUtils.parseXml(m.xmlValue).documentElement);null!=d&&null!=d.style||null==m.style||b.setStyle(f,m.style);null!=m.visible&&b.setVisible(f,1==m.visible);null!=m.collapsed&&b.setCollapsed(f,1==m.collapsed);null!=m.vertex&&(f.vertex=1==m.vertex);null!=m.edge&&(f.edge=1==m.edge);null!=m.connectable&&(f.connectable=
-1==m.connectable);null!=m.geometry&&b.setGeometry(f,this.codec.decode(mxUtils.parseXml(m.geometry).documentElement));null!=m.source&&b.setTerminal(f,b.getCell(m.source),!0);null!=m.target&&b.setTerminal(f,b.getCell(m.target),!1);for(var t in m)this.cellProperties[t]||(f[t]=m[t])}};EditorUi.prototype.getXmlForPages=function(b){b=this.getNodeForPages(b);var f=null;null!=b&&(f=mxUtils.getXml(b));return f};
-EditorUi.prototype.getNodeForPages=function(b){var f=null;if(null!=this.fileNode&&null!=b){f=this.fileNode.cloneNode(!1);for(var m=0;m<b.length;m++){var d=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b[m].root));this.editor.graph.saveViewState(b[m].viewState,d);var t=b[m].node.cloneNode(!1);t.appendChild(d);f.appendChild(t)}}return f};EditorUi.prototype.getPagesForXml=function(b){b=mxUtils.parseXml(b);return this.getPagesForNode(b.documentElement)};
+1==m.connectable);null!=m.geometry&&b.setGeometry(f,this.codec.decode(mxUtils.parseXml(m.geometry).documentElement));null!=m.source&&b.setTerminal(f,b.getCell(m.source),!0);null!=m.target&&b.setTerminal(f,b.getCell(m.target),!1);for(var q in m)this.cellProperties[q]||(f[q]=m[q])}};EditorUi.prototype.getXmlForPages=function(b){b=this.getNodeForPages(b);var f=null;null!=b&&(f=mxUtils.getXml(b));return f};
+EditorUi.prototype.getNodeForPages=function(b){var f=null;if(null!=this.fileNode&&null!=b){f=this.fileNode.cloneNode(!1);for(var m=0;m<b.length;m++){var d=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b[m].root));this.editor.graph.saveViewState(b[m].viewState,d);var q=b[m].node.cloneNode(!1);q.appendChild(d);f.appendChild(q)}}return f};EditorUi.prototype.getPagesForXml=function(b){b=mxUtils.parseXml(b);return this.getPagesForNode(b.documentElement)};
EditorUi.prototype.getPagesForNode=function(b,f){var m=this.editor.extractGraphModel(b,!0,!0);null!=m&&(b=m);f=b.getElementsByTagName(f||"diagram");m=[];if(0<f.length)for(b=0;b<f.length;b++){var d=new DiagramPage(f[b]);this.updatePageRoot(d,!0);m.push(d)}else"mxGraphModel"==b.nodeName&&(d=new DiagramPage(b.ownerDocument.createElement("diagram")),d.setName(mxResources.get("pageWithNumber",[1])),d.node.appendChild(b.cloneNode(!0)),m.push(d));return m};
-EditorUi.prototype.diffPages=function(b,f){var m=[],d=[],t={},x={},v={},B=null;if(null!=b&&null!=f){for(var J=0;J<f.length;J++)x[f[J].getId()]={page:f[J],prev:B},B=f[J];B=null;for(J=0;J<b.length;J++){var N=b[J].getId();f=x[N];if(null==f)d.push(N);else{this.updatePageRoot(b[J]);this.updatePageRoot(f.page);var I=this.diffCells(b[J].root,f.page.root),c={};mxUtils.isEmptyObject(I)||(c.cells=I);I=this.diffViewState(b[J],f.page);mxUtils.isEmptyObject(I)||(c.view=I);if((null!=f.prev?null==B:null!=B)||null!=
-B&&null!=f.prev&&B.getId()!=f.prev.getId())c.previous=null!=f.prev?f.prev.getId():"";null!=f.page.getName()&&b[J].getName()!=f.page.getName()&&(c.name=f.page.getName());mxUtils.isEmptyObject(c)||(v[N]=c)}delete x[b[J].getId()];B=b[J]}for(N in x)f=x[N],m.push({id:f.page.getId(),data:mxUtils.getXml(f.page.node),previous:null!=f.prev?f.prev.getId():""});mxUtils.isEmptyObject(v)||(t[EditorUi.DIFF_UPDATE]=v);0<d.length&&(t[EditorUi.DIFF_REMOVE]=d);0<m.length&&(t[EditorUi.DIFF_INSERT]=m)}return t};
-EditorUi.prototype.createCellLookup=function(b,f,m){m=null!=m?m:{};null==b.getId()?EditorUi.debug("EditorUi.createCellLookup: Ignored inserted cell with no id",b):m[b.getId()]={cell:b,prev:f};var d=b.getChildCount();f=null;for(var t=0;t<d;t++){var x=b.getChildAt(t);this.createCellLookup(x,f,m);f=x}return m};
-EditorUi.prototype.diffCellRecursive=function(b,f,m,d,t){d=null!=d?d:{};var x=m[b.getId()];delete m[b.getId()];if(null==x)null==b.getId()?EditorUi.debug("EditorUi.diffCellRecursive: Ignored removed cell with no id",b):t.push(b.getId());else{var v=this.diffCell(b,x.cell);if(null!=v.parent||(null!=x.prev?null==f:null!=f)||null!=f&&null!=x.prev&&f.getId()!=x.prev.getId())v.previous=null!=x.prev?x.prev.getId():"";mxUtils.isEmptyObject(v)||(null==b.getId()?EditorUi.debug("EditorUi.diffCellRecursive: Ignored changed cell with no id",
-b,"diff",v):d[b.getId()]=v)}x=b.getChildCount();f=null;for(v=0;v<x;v++){var B=b.getChildAt(v);this.diffCellRecursive(B,f,m,d,t);f=B}return d};
-EditorUi.prototype.diffCells=function(b,f){var m={},d=[],t=this.createCellLookup(f);f.id==b.id?(f=[],b=this.diffCellRecursive(b,null,t,null,f),mxUtils.isEmptyObject(b)||(m[EditorUi.DIFF_UPDATE]=b),0<f.length&&(m[EditorUi.DIFF_REMOVE]=f)):EditorUi.debug("EditorUi.diffCells: Root changed",f.id);for(var x in t)b=t[x],d.push(this.getJsonForCell(b.cell,b.prev));0<d.length&&(m[EditorUi.DIFF_INSERT]=d);return m};
-EditorUi.prototype.diffViewState=function(b,f){var m=b.viewState,d=f.viewState,t={};b==this.currentPage&&(m=this.editor.graph.getViewState());f==this.currentPage&&(d=this.editor.graph.getViewState());if(null!=m&&null!=d)for(var x in this.viewStateProperties)this.diffViewStateProperty(m,d,x,t);return t};EditorUi.prototype.diffViewStateProperty=function(b,f,m,d){b=JSON.stringify(this.getViewStateProperty(b,m));f=JSON.stringify(this.getViewStateProperty(f,m));b!=f&&(d[m]=f)};
+EditorUi.prototype.diffPages=function(b,f){var m=[],d=[],q={},x={},C={},y=null;if(null!=b&&null!=f){for(var I=0;I<f.length;I++)x[f[I].getId()]={page:f[I],prev:y},y=f[I];y=null;for(I=0;I<b.length;I++){var M=b[I].getId();f=x[M];if(null==f)d.push(M);else{this.updatePageRoot(b[I]);this.updatePageRoot(f.page);var H=this.diffCells(b[I].root,f.page.root),c={};mxUtils.isEmptyObject(H)||(c.cells=H);H=this.diffViewState(b[I],f.page);mxUtils.isEmptyObject(H)||(c.view=H);if((null!=f.prev?null==y:null!=y)||null!=
+y&&null!=f.prev&&y.getId()!=f.prev.getId())c.previous=null!=f.prev?f.prev.getId():"";null!=f.page.getName()&&b[I].getName()!=f.page.getName()&&(c.name=f.page.getName());mxUtils.isEmptyObject(c)||(C[M]=c)}delete x[b[I].getId()];y=b[I]}for(M in x)f=x[M],m.push({id:f.page.getId(),data:mxUtils.getXml(f.page.node),previous:null!=f.prev?f.prev.getId():""});mxUtils.isEmptyObject(C)||(q[EditorUi.DIFF_UPDATE]=C);0<d.length&&(q[EditorUi.DIFF_REMOVE]=d);0<m.length&&(q[EditorUi.DIFF_INSERT]=m)}return q};
+EditorUi.prototype.createCellLookup=function(b,f,m){m=null!=m?m:{};null==b.getId()?EditorUi.debug("EditorUi.createCellLookup: Ignored inserted cell with no id",b):m[b.getId()]={cell:b,prev:f};var d=b.getChildCount();f=null;for(var q=0;q<d;q++){var x=b.getChildAt(q);this.createCellLookup(x,f,m);f=x}return m};
+EditorUi.prototype.diffCellRecursive=function(b,f,m,d,q){d=null!=d?d:{};var x=m[b.getId()];delete m[b.getId()];if(null==x)null==b.getId()?EditorUi.debug("EditorUi.diffCellRecursive: Ignored removed cell with no id",b):q.push(b.getId());else{var C=this.diffCell(b,x.cell);if(null!=C.parent||(null!=x.prev?null==f:null!=f)||null!=f&&null!=x.prev&&f.getId()!=x.prev.getId())C.previous=null!=x.prev?x.prev.getId():"";mxUtils.isEmptyObject(C)||(null==b.getId()?EditorUi.debug("EditorUi.diffCellRecursive: Ignored changed cell with no id",
+b,"diff",C):d[b.getId()]=C)}x=b.getChildCount();f=null;for(C=0;C<x;C++){var y=b.getChildAt(C);this.diffCellRecursive(y,f,m,d,q);f=y}return d};
+EditorUi.prototype.diffCells=function(b,f){var m={},d=[],q=this.createCellLookup(f);f.id==b.id?(f=[],b=this.diffCellRecursive(b,null,q,null,f),mxUtils.isEmptyObject(b)||(m[EditorUi.DIFF_UPDATE]=b),0<f.length&&(m[EditorUi.DIFF_REMOVE]=f)):EditorUi.debug("EditorUi.diffCells: Root changed",f.id);for(var x in q)b=q[x],d.push(this.getJsonForCell(b.cell,b.prev));0<d.length&&(m[EditorUi.DIFF_INSERT]=d);return m};
+EditorUi.prototype.diffViewState=function(b,f){var m=b.viewState,d=f.viewState,q={};b==this.currentPage&&(m=this.editor.graph.getViewState());f==this.currentPage&&(d=this.editor.graph.getViewState());if(null!=m&&null!=d)for(var x in this.viewStateProperties)this.diffViewStateProperty(m,d,x,q);return q};EditorUi.prototype.diffViewStateProperty=function(b,f,m,d){b=JSON.stringify(this.getViewStateProperty(b,m));f=JSON.stringify(this.getViewStateProperty(f,m));b!=f&&(d[m]=f)};
EditorUi.prototype.getViewStateProperty=function(b,f){b=b[f];"backgroundImage"==f&&null!=b&&null!=b.originalSrc?b={originalSrc:b.originalSrc}:"extFonts"==f&&null==b&&(b=[]);return b};
EditorUi.prototype.getCellForJson=function(b){var f=null!=b.geometry?this.codec.decode(mxUtils.parseXml(b.geometry).documentElement):null,m=b.value;null!=b.xmlValue&&(m=mxUtils.parseXml(b.xmlValue).documentElement);f=new mxCell(m,f,b.style);f.connectable=0!=b.connectable;f.collapsed=1==b.collapsed;f.visible=0!=b.visible;f.vertex=1==b.vertex;f.edge=1==b.edge;f.id=b.id;for(var d in b)this.cellProperties[d]||(f[d]=b[d]);return f};
EditorUi.prototype.getJsonForCell=function(b,f){var m={id:b.getId()};b.vertex&&(m.vertex=1);b.edge&&(m.edge=1);b.connectable||(m.connectable=0);null!=b.parent&&(m.parent=b.parent.getId());null!=f&&(m.previous=f.getId());null!=b.source&&(m.source=b.source.getId());null!=b.target&&(m.target=b.target.getId());null!=b.style&&(m.style=b.style);null!=b.geometry&&(m.geometry=mxUtils.getXml(this.codec.encode(b.geometry)));b.collapsed&&(m.collapsed=1);b.visible||(m.visible=0);null!=b.value&&("object"===typeof b.value&&
"number"===typeof b.value.nodeType&&"string"===typeof b.value.nodeName&&"function"===typeof b.value.getAttribute?m.xmlValue=mxUtils.getXml(b.value):m.value=b.value);for(var d in b)this.cellProperties[d]||"function"===typeof b[d]||(m[d]=b[d]);return m};
-EditorUi.prototype.diffCell=function(b,f){function m(v){return null!=v&&"object"===typeof v&&"number"===typeof v.nodeType&&"string"===typeof v.nodeName&&"function"===typeof v.getAttribute}var d={};b.vertex!=f.vertex&&(d.vertex=f.vertex?1:0);b.edge!=f.edge&&(d.edge=f.edge?1:0);b.connectable!=f.connectable&&(d.connectable=f.connectable?1:0);if((null!=b.parent?null==f.parent:null!=f.parent)||null!=b.parent&&null!=f.parent&&b.parent.getId()!=f.parent.getId())d.parent=null!=f.parent?f.parent.getId():"";
+EditorUi.prototype.diffCell=function(b,f){function m(C){return null!=C&&"object"===typeof C&&"number"===typeof C.nodeType&&"string"===typeof C.nodeName&&"function"===typeof C.getAttribute}var d={};b.vertex!=f.vertex&&(d.vertex=f.vertex?1:0);b.edge!=f.edge&&(d.edge=f.edge?1:0);b.connectable!=f.connectable&&(d.connectable=f.connectable?1:0);if((null!=b.parent?null==f.parent:null!=f.parent)||null!=b.parent&&null!=f.parent&&b.parent.getId()!=f.parent.getId())d.parent=null!=f.parent?f.parent.getId():"";
if((null!=b.source?null==f.source:null!=f.source)||null!=b.source&&null!=f.source&&b.source.getId()!=f.source.getId())d.source=null!=f.source?f.source.getId():"";if((null!=b.target?null==f.target:null!=f.target)||null!=b.target&&null!=f.target&&b.target.getId()!=f.target.getId())d.target=null!=f.target?f.target.getId():"";m(b.value)&&m(f.value)?b.value.isEqualNode(f.value)||(d.xmlValue=mxUtils.getXml(f.value)):b.value!=f.value&&(m(f.value)?d.xmlValue=mxUtils.getXml(f.value):d.value=null!=f.value?
-f.value:null);b.style!=f.style&&(d.style=f.style);b.visible!=f.visible&&(d.visible=f.visible?1:0);b.collapsed!=f.collapsed&&(d.collapsed=f.collapsed?1:0);if(!this.isObjectEqual(b.geometry,f.geometry,new mxGeometry)){var t=this.codec.encode(f.geometry);null!=t&&(d.geometry=mxUtils.getXml(t))}for(var x in b)this.cellProperties[x]||"function"===typeof b[x]||"function"===typeof f[x]||b[x]==f[x]||(d[x]=void 0===f[x]?null:f[x]);for(x in f)x in b||this.cellProperties[x]||"function"===typeof b[x]||"function"===
+f.value:null);b.style!=f.style&&(d.style=f.style);b.visible!=f.visible&&(d.visible=f.visible?1:0);b.collapsed!=f.collapsed&&(d.collapsed=f.collapsed?1:0);if(!this.isObjectEqual(b.geometry,f.geometry,new mxGeometry)){var q=this.codec.encode(f.geometry);null!=q&&(d.geometry=mxUtils.getXml(q))}for(var x in b)this.cellProperties[x]||"function"===typeof b[x]||"function"===typeof f[x]||b[x]==f[x]||(d[x]=void 0===f[x]?null:f[x]);for(x in f)x in b||this.cellProperties[x]||"function"===typeof b[x]||"function"===
typeof f[x]||b[x]==f[x]||(d[x]=void 0===f[x]?null:f[x]);return d};EditorUi.prototype.resolveCrossReferences=function(b,f){var m={};mxUtils.isEmptyObject(f)||(this.adoptTheirPages(b,f,m),this.adoptTheirCells(b,f,m));EditorUi.debug("EditorUi.resolveCrossReferences",[this],"ownDiff",b,"theirDiff",f,"resolve",m);return m};
-EditorUi.prototype.adoptTheirPages=function(b,f,m){var d={};if(null!=f[EditorUi.DIFF_INSERT])for(var t=0;t<f[EditorUi.DIFF_INSERT].length;t++)d[f[EditorUi.DIFF_INSERT][t].id]=f[EditorUi.DIFF_INSERT][t];for(var x in b[EditorUi.DIFF_UPDATE])null!=d[x]&&(null==m[EditorUi.DIFF_INSERT]&&(m[EditorUi.DIFF_INSERT]=[]),null==m[EditorUi.DIFF_UPDATE]&&(m[EditorUi.DIFF_UPDATE]={}),m[EditorUi.DIFF_INSERT].push(d[x]),m[EditorUi.DIFF_UPDATE][x]=b[EditorUi.DIFF_UPDATE][x],delete b[EditorUi.DIFF_UPDATE][x])};
-EditorUi.prototype.adoptTheirCells=function(b,f,m){for(var d in b[EditorUi.DIFF_UPDATE]){var t=b[EditorUi.DIFF_UPDATE][d];null!=t.cells&&this.adoptTheirCellsFromPage(t,f,d,m)}};
-EditorUi.prototype.adoptTheirCellsFromPage=function(b,f,m,d){var t=null!=f[EditorUi.DIFF_UPDATE]?f[EditorUi.DIFF_UPDATE][m]:null;if(null!=t&&null!=t.cells&&null!=t.cells[EditorUi.DIFF_INSERT]){f=t.cells[EditorUi.DIFF_UPDATE];for(var x={},v=0;v<t.cells[EditorUi.DIFF_INSERT].length;v++){var B=t.cells[EditorUi.DIFF_INSERT][v];x[B.id]=B}t={cells:{}};t.cells[EditorUi.DIFF_INSERT]=[];t.cells[EditorUi.DIFF_UPDATE]={};t.inserted={};this.resolveOwnInsertedCells(b.cells[EditorUi.DIFF_INSERT],x,t);this.resolveOwnUpdatedCells(b.cells[EditorUi.DIFF_UPDATE],
-x,f,t);null==d[EditorUi.DIFF_UPDATE]&&(d[EditorUi.DIFF_UPDATE]={});delete t.inserted;d[EditorUi.DIFF_UPDATE][m]=t}};EditorUi.prototype.resolveOwnInsertedCells=function(b,f,m){if(null!=b)for(var d=0;d<b.length;d++){var t=b[d];null!=t&&(this.adoptParentCell(t.id,null,f,m),this.adoptTerminalCell(t.id,t,f,!0,m),this.adoptTerminalCell(t.id,t,f,!1,m))}};
-EditorUi.prototype.resolveOwnUpdatedCells=function(b,f,m,d){if(null!=b)for(var t in b){var x=f[t];null!=x?(d.inserted[t]||(d.cells[EditorUi.DIFF_INSERT].push(x),d.inserted[t]=!0),d.cells[EditorUi.DIFF_UPDATE][t]=b[t]):null!=m&&(x=m[t],null!=x&&(this.adoptParentCell(t,x,f,d),this.adoptTerminalCell(t,x,f,!0,d,t),this.adoptTerminalCell(t,x,f,!1,d,t)))}};
-EditorUi.prototype.adoptParentCell=function(b,f,m,d){var t=m[b],x=null!=f?f.parent:null!=t?t.parent:null;null!=x&&this.adoptParentCell(x,null,m,d);null!=t?d.inserted[b]||(d.cells[EditorUi.DIFF_INSERT].push(t),d.inserted[b]=!0):null!=f&&(null==d.cells[EditorUi.DIFF_UPDATE][b]&&(d.cells[EditorUi.DIFF_UPDATE][b]={}),d.cells[EditorUi.DIFF_UPDATE][b]=f)};
-EditorUi.prototype.adoptTerminalCell=function(b,f,m,d,t){f=d?f.source:f.target;m=m[f];null!=m&&(t.inserted[f]||(t.cells[EditorUi.DIFF_INSERT].push(m),t.inserted[f]=!0),null==t.cells[EditorUi.DIFF_UPDATE][b]&&(t.cells[EditorUi.DIFF_UPDATE][b]={}),t.cells[EditorUi.DIFF_UPDATE][b][d?"source":"target"]=f)};
-EditorUi.prototype.isObjectEqual=function(b,f,m){if(null==b&&null==f)return!0;if(null!=b?null==f:null!=f)return!1;var d=function(t,x){return null==m||m[t]!=x?!0===x?1:x:void 0};return JSON.stringify(b,d)==JSON.stringify(f,d)};var mxSettings={currentVersion:18,defaultFormatWidth:600>screen.width?"0":"240",key:Editor.settingsKey,getLanguage:function(){return mxSettings.settings.language},setLanguage:function(b){mxSettings.settings.language=b},isMainSettings:function(){return".drawio-config"==mxSettings.key},getMainSettings:function(){var b=localStorage.getItem(".drawio-config");null==b?(b=mxSettings.getDefaults(),delete b.isNew):(b=JSON.parse(b),b.version=mxSettings.currentVersion);return b},getUi:function(){return mxSettings.isMainSettings()?
+EditorUi.prototype.adoptTheirPages=function(b,f,m){var d={};if(null!=f[EditorUi.DIFF_INSERT])for(var q=0;q<f[EditorUi.DIFF_INSERT].length;q++)d[f[EditorUi.DIFF_INSERT][q].id]=f[EditorUi.DIFF_INSERT][q];for(var x in b[EditorUi.DIFF_UPDATE])null!=d[x]&&(null==m[EditorUi.DIFF_INSERT]&&(m[EditorUi.DIFF_INSERT]=[]),null==m[EditorUi.DIFF_UPDATE]&&(m[EditorUi.DIFF_UPDATE]={}),m[EditorUi.DIFF_INSERT].push(d[x]),m[EditorUi.DIFF_UPDATE][x]=b[EditorUi.DIFF_UPDATE][x],delete b[EditorUi.DIFF_UPDATE][x])};
+EditorUi.prototype.adoptTheirCells=function(b,f,m){for(var d in b[EditorUi.DIFF_UPDATE]){var q=b[EditorUi.DIFF_UPDATE][d];null!=q.cells&&this.adoptTheirCellsFromPage(q,f,d,m)}};
+EditorUi.prototype.adoptTheirCellsFromPage=function(b,f,m,d){var q=null!=f[EditorUi.DIFF_UPDATE]?f[EditorUi.DIFF_UPDATE][m]:null;if(null!=q&&null!=q.cells&&null!=q.cells[EditorUi.DIFF_INSERT]){f=q.cells[EditorUi.DIFF_UPDATE];for(var x={},C=0;C<q.cells[EditorUi.DIFF_INSERT].length;C++){var y=q.cells[EditorUi.DIFF_INSERT][C];x[y.id]=y}q={cells:{}};q.cells[EditorUi.DIFF_INSERT]=[];q.cells[EditorUi.DIFF_UPDATE]={};q.inserted={};this.resolveOwnInsertedCells(b.cells[EditorUi.DIFF_INSERT],x,q);this.resolveOwnUpdatedCells(b.cells[EditorUi.DIFF_UPDATE],
+x,f,q);null==d[EditorUi.DIFF_UPDATE]&&(d[EditorUi.DIFF_UPDATE]={});delete q.inserted;d[EditorUi.DIFF_UPDATE][m]=q}};EditorUi.prototype.resolveOwnInsertedCells=function(b,f,m){if(null!=b)for(var d=0;d<b.length;d++){var q=b[d];null!=q&&(this.adoptParentCell(q.id,null,f,m),this.adoptTerminalCell(q.id,q,f,!0,m),this.adoptTerminalCell(q.id,q,f,!1,m))}};
+EditorUi.prototype.resolveOwnUpdatedCells=function(b,f,m,d){if(null!=b)for(var q in b){var x=f[q];null!=x?(d.inserted[q]||(d.cells[EditorUi.DIFF_INSERT].push(x),d.inserted[q]=!0),d.cells[EditorUi.DIFF_UPDATE][q]=b[q]):null!=m&&(x=m[q],null!=x&&(this.adoptParentCell(q,x,f,d),this.adoptTerminalCell(q,x,f,!0,d,q),this.adoptTerminalCell(q,x,f,!1,d,q)))}};
+EditorUi.prototype.adoptParentCell=function(b,f,m,d){var q=m[b],x=null!=f?f.parent:null!=q?q.parent:null;null!=x&&this.adoptParentCell(x,null,m,d);null!=q?d.inserted[b]||(d.cells[EditorUi.DIFF_INSERT].push(q),d.inserted[b]=!0):null!=f&&(null==d.cells[EditorUi.DIFF_UPDATE][b]&&(d.cells[EditorUi.DIFF_UPDATE][b]={}),d.cells[EditorUi.DIFF_UPDATE][b]=f)};
+EditorUi.prototype.adoptTerminalCell=function(b,f,m,d,q){f=d?f.source:f.target;m=m[f];null!=m&&(q.inserted[f]||(q.cells[EditorUi.DIFF_INSERT].push(m),q.inserted[f]=!0),null==q.cells[EditorUi.DIFF_UPDATE][b]&&(q.cells[EditorUi.DIFF_UPDATE][b]={}),q.cells[EditorUi.DIFF_UPDATE][b][d?"source":"target"]=f)};
+EditorUi.prototype.isObjectEqual=function(b,f,m){if(null==b&&null==f)return!0;if(null!=b?null==f:null!=f)return!1;var d=function(q,x){return null==m||m[q]!=x?!0===x?1:x:void 0};return JSON.stringify(b,d)==JSON.stringify(f,d)};var mxSettings={currentVersion:18,defaultFormatWidth:600>screen.width?"0":"240",key:Editor.settingsKey,getLanguage:function(){return mxSettings.settings.language},setLanguage:function(b){mxSettings.settings.language=b},isMainSettings:function(){return".drawio-config"==mxSettings.key},getMainSettings:function(){var b=localStorage.getItem(".drawio-config");null==b?(b=mxSettings.getDefaults(),delete b.isNew):(b=JSON.parse(b),b.version=mxSettings.currentVersion);return b},getUi:function(){return mxSettings.isMainSettings()?
mxSettings.settings.ui:mxSettings.getMainSettings().ui},setUi:function(b){if(mxSettings.isMainSettings())mxSettings.settings.ui=b,mxSettings.save();else{var f=mxSettings.getMainSettings();f.ui=b;localStorage.setItem(".drawio-config",JSON.stringify(f))}},getShowStartScreen:function(){return mxSettings.settings.showStartScreen},setShowStartScreen:function(b){mxSettings.settings.showStartScreen=b},getGridColor:function(b){return b?mxSettings.settings.darkGridColor:mxSettings.settings.gridColor},setGridColor:function(b,
f){f?mxSettings.settings.darkGridColor=b:mxSettings.settings.gridColor=b},getAutosave:function(){return mxSettings.settings.autosave},setAutosave:function(b){mxSettings.settings.autosave=b},getResizeImages:function(){return mxSettings.settings.resizeImages},setResizeImages:function(b){mxSettings.settings.resizeImages=b},getOpenCounter:function(){return mxSettings.settings.openCounter},setOpenCounter:function(b){mxSettings.settings.openCounter=b},setCustomFonts:function(b){mxSettings.settings.customFonts=
b},getCustomFonts:function(){for(var b=mxSettings.settings.customFonts||[],f=0;f<b.length;f++)"string"===typeof b[f]&&(b[f]={name:b[f],url:null});return b},getLibraries:function(){return mxSettings.settings.libraries},setLibraries:function(b){mxSettings.settings.libraries=b},addCustomLibrary:function(b){mxSettings.load();Array.isArray(mxSettings.settings.customLibraries)||(mxSettings.settings.customLibraries=[]);0>mxUtils.indexOf(mxSettings.settings.customLibraries,b)&&("L.scratchpad"===b?mxSettings.settings.customLibraries.splice(0,
@@ -13561,7 +13605,7 @@ null==mxSettings.settings.ui&&(mxSettings.settings.ui=""),null==mxSettings.setti
!1,mxSettings.save()),null!=mxSettings.settings.scratchpadSeen&&delete mxSettings.settings.scratchpadSeen)},clear:function(){isLocalStorage&&localStorage.removeItem(mxSettings.key)}};("undefined"==typeof mxLoadSettings||mxLoadSettings)&&mxSettings.load();DrawioFilePolling=function(b,f){this.file=b;this.sync=f};DrawioFilePolling.prototype.maxRetries=2;DrawioFilePolling.prototype.minPollDelay=2E3;
DrawioFilePolling.prototype.start=function(b){if(!this.isConnected()){this.delay=this.maxDelay=b;var f=mxUtils.bind(this,function(){this.poll(0,m)}),m=mxUtils.bind(this,function(){this.thread=setTimeout(f,this.delay);this.delay=Math.min(this.maxDelay,this.delay+2E3)});m();EditorUi.debug("DrawioFilePolling.start",[this],"thread",this.thread,"delay",b,"rev",this.file.getCurrentRevisionId())}};
DrawioFilePolling.prototype.updateStatus=function(){this.hasOtherWriters()&&(this.sync.lastMessage=mxResources.get("otherUsersEditing"));this.sync.lastModified=this.file.getLastModifiedDate();this.sync.updateStatus()};
-DrawioFilePolling.prototype.poll=function(b,f){b=null!=b?b:0;var m=mxUtils.bind(this,function(d){b<this.maxRetries?this.retryPoll(mxUtils.bind(this,function(){this.poll(b+1,f)})):f()});this.file.getLatestVersionId(mxUtils.bind(this,function(d){if(-1!=d){var t=this.file.getCurrentRevisionId();d!=t?this.file.getLatestVersion(mxUtils.bind(this,function(x){this.file.mergeFile(x,mxUtils.bind(this,function(){this.delay=this.minPollDelay;this.lastOtherWriter=Date.now();this.updateStatus();f()}),m)}),m):
+DrawioFilePolling.prototype.poll=function(b,f){b=null!=b?b:0;var m=mxUtils.bind(this,function(d){b<this.maxRetries?this.retryPoll(mxUtils.bind(this,function(){this.poll(b+1,f)})):f()});this.file.getLatestVersionId(mxUtils.bind(this,function(d){if(-1!=d){var q=this.file.getCurrentRevisionId();d!=q?this.file.getLatestVersion(mxUtils.bind(this,function(x){this.file.mergeFile(x,mxUtils.bind(this,function(){this.delay=this.minPollDelay;this.lastOtherWriter=Date.now();this.updateStatus();f()}),m)}),m):
(this.updateStatus(),f())}else f()}),m)};DrawioFilePolling.prototype.retryPoll=function(b){var f=300+300*Math.random();window.setTimeout(b,f);EditorUi.debug("StorageFile.retryPoll",[this],"delay",f)};DrawioFilePolling.prototype.stop=function(){EditorUi.debug("DrawioFilePolling.stop",[this],"thread",this.thread);clearTimeout(this.thread);this.thread=null};DrawioFilePolling.prototype.isConnected=function(){return null!=this.thread};
DrawioFilePolling.prototype.hasOtherWriters=function(){return null!=this.lastOtherWriter&&6E4>Date.now()-this.lastOtherWriter};DrawioFileSync=function(b){mxEventSource.call(this);this.lastActivity=Date.now();this.clientId=Editor.guid();this.ui=b.ui;this.file=b;this.onlineListener=mxUtils.bind(this,function(){this.updateOnlineState();this.isConnected()&&!this.ui.isOffline(!0)?this.fileChangedNotify():this.updateStatus()});mxEvent.addListener(window,"offline",this.onlineListener);mxEvent.addListener(window,"online",this.onlineListener);this.autosaveListener=mxUtils.bind(this,function(){this.updateRealtime()});this.ui.editor.addListener("autosaveChanged",
this.autosaveListener);this.visibleListener=mxUtils.bind(this,function(){"hidden"==document.visibilityState?this.isConnected()&&this.stop():this.start()});mxEvent.addListener(document,"visibilitychange",this.visibleListener);this.activityListener=mxUtils.bind(this,function(f){this.lastActivity=Date.now();this.start()});mxEvent.addListener(document,mxClient.IS_POINTER?"pointermove":"mousemove",this.activityListener);mxEvent.addListener(document,"keypress",this.activityListener);mxEvent.addListener(window,
@@ -13577,7 +13621,7 @@ DrawioFileSync.prototype.updateRealtime=function(){this.isValidState()&&(this.fi
this.p2pCollab=null))};DrawioFileSync.prototype.initRealtime=function(){this.file.theirPages=this.ui.clonePages(this.ui.pages);this.file.ownPages=this.ui.clonePages(this.ui.pages);this.snapshot=this.file.ownPages};DrawioFileSync.prototype.resetRealtime=function(){var b=this.file.getShadowPages();null!=b&&(b=this.ui.diffPages(b,this.file.ownPages),this.file.patch([b]));this.sendLocalChanges();this.cleanup();this.file.theirPages=null;this.snapshot=this.file.ownPages=null};
DrawioFileSync.prototype.isConnected=function(){return null!=this.pusher&&null!=this.pusher.connection?"connected"==this.pusher.connection.state:null!=this.polling?this.polling.isConnected():!1};DrawioFileSync.prototype.updateOnlineState=function(){"1"!=urlParams.embedRT&&this.file.fireEvent(new mxEventObject("realtimeStateChanged"))};
DrawioFileSync.prototype.updateStatus=function(){this.isConnected()&&null!=this.lastActivity&&(Date.now()-this.lastActivity)/1E3>this.inactivityTimeoutSeconds&&this.stop();this.file.isModified()||this.file.inConflictState||null!=this.file.autosaveThread||this.file.savingFile||this.file.redirectDialogShowing||(this.enabled&&null!=this.ui.statusContainer?(this.ui.updateStatus(mxUtils.bind(this,function(){var b=this.ui.timeSince(new Date(this.lastModified));null==b&&(b=mxResources.get("lessThanAMinute"));
-var f=this.lastMessage;this.lastMessage=null;null!=f&&40<f.length&&(f=f.substring(0,40)+"...");var m=this.ui.getNetworkStatus();b=mxResources.get("lastChange",[b]);var d=this.file.isRevisionHistorySupported()?'data-action="revisionHistory" ':"",t=mxUtils.htmlEntities(b)+(this.file.isRevisionHistorySupported()?" - "+mxUtils.htmlEntities(mxResources.get("revisionHistory")):"");this.ui.editor.setStatus("<div "+d+'title="'+t+'">'+mxUtils.htmlEntities(b)+"</div>"+(this.file.isEditable()?this.file.isLocked()?
+var f=this.lastMessage;this.lastMessage=null;null!=f&&40<f.length&&(f=f.substring(0,40)+"...");var m=this.ui.getNetworkStatus();b=mxResources.get("lastChange",[b]);var d=this.file.isRevisionHistorySupported()?'data-action="revisionHistory" ':"",q=mxUtils.htmlEntities(b)+(this.file.isRevisionHistorySupported()?" - "+mxUtils.htmlEntities(mxResources.get("revisionHistory")):"");this.ui.editor.setStatus("<div "+d+'title="'+q+'">'+mxUtils.htmlEntities(b)+"</div>"+(this.file.isEditable()?this.file.isLocked()?
' <img class="geToolbarButton" data-action="properties" style="margin-left:4px;flex-shrink:0;" src="'+Editor.lockedImage+'"/>':"":'<div class="geStatusBox" title="'+mxUtils.htmlEntities(mxResources.get("readOnly"))+'">'+mxUtils.htmlEntities(mxResources.get("readOnly"))+"</div>")+(null!=m?'<div class="geStatusBox" title="'+mxUtils.htmlEntities(m)+'">'+mxUtils.htmlEntities(m)+"</div>":"")+(null!=f?' <div class="geStatusBox" data-effect="fade" title="'+mxUtils.htmlEntities(f)+'">'+mxUtils.htmlEntities(f)+
"</div>":""))})),this.resetUpdateStatusThread()):this.ui.updateStatus(mxUtils.bind(this,function(){this.file.addAllSavedStatus()})))};DrawioFileSync.prototype.resetUpdateStatusThread=function(){null!=this.updateStatusThread&&window.clearInterval(this.updateStatusThread);null!=this.channel&&(this.updateStatusThread=window.setInterval(mxUtils.bind(this,function(){this.updateStatus()}),Editor.updateStatusInterval))};
DrawioFileSync.prototype.installListeners=function(){null!=this.pusher&&null!=this.pusher.connection&&this.pusher.connection.bind("state_change",this.connectionListener);null!=this.channel&&this.channel.bind("changed",this.changeListener)};
@@ -13591,43 +13635,43 @@ DrawioFileSync.prototype.fileChangedNotify=function(b,f){if(this.isValidState())
this.notifyThread!=m}),!0,f)};DrawioFileSync.prototype.localFileChanged=function(){this.file.isRealtime()&&(window.clearTimeout(this.triggerSendThread),this.localFileWasChanged=!0,this.scheduleCleanup(!0),this.triggerSendThread=window.setTimeout(mxUtils.bind(this,function(){this.sendLocalChanges()}),Math.min(this.file.autosaveDelay,this.syncSendMessageDelay-20)))};
DrawioFileSync.prototype.doSendLocalChanges=function(b){if(!this.file.ignorePatches(b)){var f=this.clientId+"."+this.syncChangeCounter++,m=this.createMessage({a:"change",c:b,id:f,t:Date.now()});f=!1;null!=this.p2pCollab?this.p2pCollab.sendDiff(m):"1"==urlParams.dev?(m=encodeURIComponent(this.objectToString(m)),0==this.maxSyncMessageSize||m.length<this.maxSyncMessageSize?mxUtils.post(EditorUi.cacheUrl,this.getIdParameters()+"&msg="+m):f=!0):f=!0;EditorUi.debug("DrawioFileSync.doSendLocalChanges",[this],
"changes",b,f?"(skipped)":"")}};
-DrawioFileSync.prototype.receiveRemoteChanges=function(b){this.file.ignorePatches(b.c)||(null==this.receivedData?(this.receivedData=[b],window.setTimeout(mxUtils.bind(this,function(){if(this.ui.getCurrentFile()==this.file)if(1==this.receivedData.length)this.doReceiveRemoteChanges(this.receivedData[0].c);else{this.receivedData.sort(function(t,x){return t.id<x.id?-1:t.id>x.id?1:0});for(var f=null,m=0;m<this.receivedData.length;m++){var d=JSON.stringify(this.receivedData[m].c);d!=f&&this.doReceiveRemoteChanges(this.receivedData[m].c);
+DrawioFileSync.prototype.receiveRemoteChanges=function(b){this.file.ignorePatches(b.c)||(null==this.receivedData?(this.receivedData=[b],window.setTimeout(mxUtils.bind(this,function(){if(this.ui.getCurrentFile()==this.file)if(1==this.receivedData.length)this.doReceiveRemoteChanges(this.receivedData[0].c);else{this.receivedData.sort(function(q,x){return q.id<x.id?-1:q.id>x.id?1:0});for(var f=null,m=0;m<this.receivedData.length;m++){var d=JSON.stringify(this.receivedData[m].c);d!=f&&this.doReceiveRemoteChanges(this.receivedData[m].c);
f=d}}this.receivedData=null}),this.syncReceiveMessageDelay)):this.receivedData.push(b))};
DrawioFileSync.prototype.scheduleCleanup=function(b){var f=Math.min(15,Math.floor(this.file.getSize()/5E6));f=0==b?0:this.cleanupDelay+1E3*f;var m=this.cleanupThread;if(1!=b||null!=this.cleanupThread)window.clearTimeout(this.cleanupThread),this.cleanupThread=window.setTimeout(mxUtils.bind(this,function(){this.cleanup(null,mxUtils.bind(this,function(d){this.file.handleFileError(d)}))}),f);EditorUi.debug("DrawioFileSync.scheduleCleanup",[this],"lazy",b,"delay",f,"prev",m,"thread",this.cleanupThread)};
-DrawioFileSync.prototype.cleanup=function(b,f,m){var d=this.cleanupThread;window.clearTimeout(this.cleanupThread);this.cleanupThread=null;if(this.isValidState()&&!this.file.inConflictState&&this.file.isRealtime()&&!this.file.isModified()){var t=[this.ui.diffPages(this.ui.pages,this.file.ownPages)];this.file.theirPages=this.ui.clonePages(this.file.ownPages);"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.cleanup",[this],"thread",d,"patches",t,"checkFile",m,"checksum",this.ui.getHashValueForPages(this.ui.pages));
-this.file.ignorePatches(t)||this.file.patch(t);m?this.file.getLatestVersion(mxUtils.bind(this,function(x){try{if(this.isValidState()&&!this.file.inConflictState&&this.file.isRealtime()){var v=x.getShadowPages();t=[this.ui.diffPages(this.ui.pages,v),this.ui.diffPages(v,this.file.ownPages)];this.file.ignorePatches(t)||this.file.patch(t);EditorUi.debug("DrawioFileSync.cleanup",[this],"newFile",x,"patches",t)}null!=b&&b()}catch(B){null!=f&&f(B)}}),f):(document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||
+DrawioFileSync.prototype.cleanup=function(b,f,m){var d=this.cleanupThread;window.clearTimeout(this.cleanupThread);this.cleanupThread=null;if(this.isValidState()&&!this.file.inConflictState&&this.file.isRealtime()&&!this.file.isModified()){var q=[this.ui.diffPages(this.ui.pages,this.file.ownPages)];this.file.theirPages=this.ui.clonePages(this.file.ownPages);"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.cleanup",[this],"thread",d,"patches",q,"checkFile",m,"checksum",this.ui.getHashValueForPages(this.ui.pages));
+this.file.ignorePatches(q)||this.file.patch(q);m?this.file.getLatestVersion(mxUtils.bind(this,function(x){try{if(this.isValidState()&&!this.file.inConflictState&&this.file.isRealtime()){var C=x.getShadowPages();q=[this.ui.diffPages(this.ui.pages,C),this.ui.diffPages(C,this.file.ownPages)];this.file.ignorePatches(q)||this.file.patch(q);EditorUi.debug("DrawioFileSync.cleanup",[this],"newFile",x,"patches",q)}null!=b&&b()}catch(y){null!=f&&f(y)}}),f):(document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||
this.testChecksum(),null!=b&&b())}else null!=b&&(b(),EditorUi.debug("DrawioFileSync.cleanup",[this],"checkFile",m,"modified",this.file.isModified()))};
-DrawioFileSync.prototype.testChecksum=function(){var b=this.ui.getHashValueForPages(this.ui.pages),f=this.file.getCurrentRevisionId();this.file.getLatestVersion(mxUtils.bind(this,function(m){if(!document.hidden){var d=this.ui.getHashValueForPages(m.getShadowPages()),t=m.getDescriptorChecksum(m.getDescriptor()),x=m.getCurrentRevisionId();EditorUi.debug("DrawioFileSync.testChecksum","local",[this.file],"modified",this.file.isModified(),"inConflictState",this.file.inConflictState,"autosaveThread",this.file.autosaveThread,
-"savingFile",this.file.savingFile,"localFileWasChanged",this.localFileWasChanged,"remoteFileChanged",this.remoteFileChanged,"cleanup",this.cleanupThread,"checksum",b);EditorUi.debug("DrawioFileSync.testChecksum","remote",[m],"rev",x==f,"desc",t==d,"checksum",d);d!=b?(EditorUi.debug("DrawioFileSync.testChecksum",[this],"checksums do not match"),this.ui.alert("Checksums do not match")):EditorUi.debug("DrawioFileSync.testChecksum",[this],"checksums match")}}),mxUtils.bind(this,function(m){EditorUi.debug("DrawioFileSync.testChecksum",
+DrawioFileSync.prototype.testChecksum=function(){var b=this.ui.getHashValueForPages(this.ui.pages),f=this.file.getCurrentRevisionId();this.file.getLatestVersion(mxUtils.bind(this,function(m){if(!document.hidden){var d=this.ui.getHashValueForPages(m.getShadowPages()),q=m.getDescriptorChecksum(m.getDescriptor()),x=m.getCurrentRevisionId();EditorUi.debug("DrawioFileSync.testChecksum","local",[this.file],"modified",this.file.isModified(),"inConflictState",this.file.inConflictState,"autosaveThread",this.file.autosaveThread,
+"savingFile",this.file.savingFile,"localFileWasChanged",this.localFileWasChanged,"remoteFileChanged",this.remoteFileChanged,"cleanup",this.cleanupThread,"checksum",b);EditorUi.debug("DrawioFileSync.testChecksum","remote",[m],"rev",x==f,"desc",q==d,"checksum",d);d!=b?(EditorUi.debug("DrawioFileSync.testChecksum",[this],"checksums do not match"),this.ui.alert("Checksums do not match")):EditorUi.debug("DrawioFileSync.testChecksum",[this],"checksums match")}}),mxUtils.bind(this,function(m){EditorUi.debug("DrawioFileSync.testChecksum",
[this],"checksum test error",m)}))};DrawioFileSync.prototype.extractLocal=function(b){return mxUtils.isEmptyObject(b)?{}:this.ui.diffPages(this.file.theirPages,this.ui.patchPages(this.ui.clonePages(this.file.theirPages),b))};
-DrawioFileSync.prototype.extractRemove=function(b){var f={};null!=b[EditorUi.DIFF_REMOVE]&&(f[EditorUi.DIFF_REMOVE]=b[EditorUi.DIFF_REMOVE]);if(null!=b[EditorUi.DIFF_UPDATE])for(var m in b[EditorUi.DIFF_UPDATE]){var d=b[EditorUi.DIFF_UPDATE][m];if(null!=d.cells&&null!=d.cells[EditorUi.DIFF_REMOVE]){null==f[EditorUi.DIFF_UPDATE]&&(f[EditorUi.DIFF_UPDATE]={});f[EditorUi.DIFF_UPDATE][m]={};var t=f[EditorUi.DIFF_UPDATE][m];t.cells={};t.cells[EditorUi.DIFF_REMOVE]=d.cells[EditorUi.DIFF_REMOVE]}}return f};
-DrawioFileSync.prototype.patchRealtime=function(b,f,m,d){var t=null;if(this.file.isRealtime()){t=this.extractRemove(this.ui.diffPages(this.file.getShadowPages(),this.ui.pages));var x=this.extractRemove(this.extractLocal(t)),v=(null==m?b:b.concat(m)).concat([x]);this.file.ownPages=this.ui.applyPatches(this.file.ownPages,v,!0,f);mxUtils.isEmptyObject(x)?this.scheduleCleanup(null!=d?!1:null):this.file.fileChanged(!1);EditorUi.debug("DrawioFileSync.patchRealtime",[this],"patches",b,"backup",f,"own",m,
-"all",t,"local",x,"applied",v,"immediate",d)}return t};DrawioFileSync.prototype.isRealtimeActive=function(){return this.ui.editor.autosave};
+DrawioFileSync.prototype.extractRemove=function(b){var f={};null!=b[EditorUi.DIFF_REMOVE]&&(f[EditorUi.DIFF_REMOVE]=b[EditorUi.DIFF_REMOVE]);if(null!=b[EditorUi.DIFF_UPDATE])for(var m in b[EditorUi.DIFF_UPDATE]){var d=b[EditorUi.DIFF_UPDATE][m];if(null!=d.cells&&null!=d.cells[EditorUi.DIFF_REMOVE]){null==f[EditorUi.DIFF_UPDATE]&&(f[EditorUi.DIFF_UPDATE]={});f[EditorUi.DIFF_UPDATE][m]={};var q=f[EditorUi.DIFF_UPDATE][m];q.cells={};q.cells[EditorUi.DIFF_REMOVE]=d.cells[EditorUi.DIFF_REMOVE]}}return f};
+DrawioFileSync.prototype.patchRealtime=function(b,f,m,d){var q=null;if(this.file.isRealtime()){q=this.extractRemove(this.ui.diffPages(this.file.getShadowPages(),this.ui.pages));var x=this.extractRemove(this.extractLocal(q)),C=(null==m?b:b.concat(m)).concat([x]);this.file.ownPages=this.ui.applyPatches(this.file.ownPages,C,!0,f);mxUtils.isEmptyObject(x)?this.scheduleCleanup(null!=d?!1:null):this.file.fileChanged(!1);EditorUi.debug("DrawioFileSync.patchRealtime",[this],"patches",b,"backup",f,"own",m,
+"all",q,"local",x,"applied",C,"immediate",d)}return q};DrawioFileSync.prototype.isRealtimeActive=function(){return this.ui.editor.autosave};
DrawioFileSync.prototype.sendLocalChanges=function(){try{if(this.file.isRealtime()&&this.localFileWasChanged){var b=this.ui.clonePages(this.ui.pages),f=this.ui.diffPages(this.snapshot,b);this.file.ownPages=this.ui.patchPages(this.file.ownPages,f,!0);this.snapshot=b;var m=this.ui.resolveCrossReferences(f,this.ui.diffPages(this.file.ownPages,this.ui.pages));this.file.ownPages=this.ui.patchPages(this.file.ownPages,m,!0);this.isRealtimeActive()&&this.doSendLocalChanges([m,f])}this.localFileWasChanged=
!1}catch(d){b=this.file.getCurrentUser(),b=null!=b?b.id:"unknown",EditorUi.logError("Error in sendLocalChanges",null,this.file.getMode()+"."+this.file.getId(),b,d)}};DrawioFileSync.prototype.doReceiveRemoteChanges=function(b){this.file.isRealtime()&&this.isRealtimeActive()&&(this.sendLocalChanges(),this.file.patch(b),this.file.theirPages=this.ui.applyPatches(this.file.theirPages,b),this.scheduleCleanup(),EditorUi.debug("DrawioFileSync.doReceiveRemoteChanges",[this],"changes",b))};
-DrawioFileSync.prototype.merge=function(b,f,m,d,t,x,v){try{this.file.stats.merged++;this.lastModified=new Date;var B=this.file.getDescriptorRevisionId(m);if(!this.file.ignorePatches(b)){this.sendLocalChanges();var J=this.ui.clonePages(this.file.getShadowPages()),N=this.file.isModified()&&!this.file.isRealtime()?this.ui.diffPages(J,this.ui.pages):null,I=this.file.isRealtime()?this.ui.diffPages(J,this.file.ownPages):null;J=this.ui.applyPatches(J,b);var c=null==f?null:this.ui.getHashValueForPages(J);
-EditorUi.debug("DrawioFileSync.merge",[this],"patches",b,"changes",N,"pending",I,"checksum",f,"current",c,"valid",f==c,"attempt",this.catchupRetryCount,"of",this.maxCatchupRetries,"from",this.file.getCurrentRevisionId(),"to",B,"etag",this.file.getDescriptorEtag(m),"immediate",v);if(null!=f&&f!=c){this.reload(mxUtils.bind(this,function(){null!=d&&d()}),mxUtils.bind(this,function(){null!=t&&t()}),x,null,v);return}this.file.setShadowPages(J);null==this.patchRealtime(b,null,I,v)&&this.file.patch(b,DrawioFile.LAST_WRITE_WINS?
-N:null)}this.file.invalidChecksum=!1;this.file.inConflictState=!1;this.file.patchDescriptor(this.file.getDescriptor(),m);null!=d&&d(!0)}catch(l){this.file.inConflictState=!0;this.file.invalidChecksum=!0;this.file.descriptorChanged();null!=t&&t(l);try{var e=this.file.getCurrentUser(),g=null!=e?e.id:"unknown";EditorUi.logError("Error in merge",null,this.file.getMode()+"."+this.file.getId(),g,l)}catch(n){}}};
-DrawioFileSync.prototype.fileChanged=function(b,f,m,d,t){var x=window.setTimeout(mxUtils.bind(this,function(){null!=m&&m()||(EditorUi.debug("DrawioFileSync.fileChanged",[this],"lazy",d,"immediate",t,"remoteFileChanged",this.remoteFileChanged,"valid",this.isValidState()),this.isValidState()?(this.remoteFileChanged=!1,this.file.loadPatchDescriptor(mxUtils.bind(this,function(v){null!=m&&m()||(this.isValidState()?this.catchup(v,b,f,m,t):null!=f&&f())}),f)):null!=f&&f())}),d?this.cacheReadyDelay:0);return this.notifyThread=
+DrawioFileSync.prototype.merge=function(b,f,m,d,q,x,C){try{this.file.stats.merged++;this.lastModified=new Date;var y=this.file.getDescriptorRevisionId(m);if(!this.file.ignorePatches(b)){this.sendLocalChanges();var I=this.ui.clonePages(this.file.getShadowPages()),M=this.file.isModified()&&!this.file.isRealtime()?this.ui.diffPages(I,this.ui.pages):null,H=this.file.isRealtime()?this.ui.diffPages(I,this.file.ownPages):null;I=this.ui.applyPatches(I,b);var c=null==f?null:this.ui.getHashValueForPages(I);
+EditorUi.debug("DrawioFileSync.merge",[this],"patches",b,"changes",M,"pending",H,"checksum",f,"current",c,"valid",f==c,"attempt",this.catchupRetryCount,"of",this.maxCatchupRetries,"from",this.file.getCurrentRevisionId(),"to",y,"etag",this.file.getDescriptorEtag(m),"immediate",C);if(null!=f&&f!=c){this.reload(mxUtils.bind(this,function(){null!=d&&d()}),mxUtils.bind(this,function(){null!=q&&q()}),x,null,C);return}this.file.setShadowPages(I);null==this.patchRealtime(b,null,H,C)&&this.file.patch(b,DrawioFile.LAST_WRITE_WINS?
+M:null)}this.file.invalidChecksum=!1;this.file.inConflictState=!1;this.file.patchDescriptor(this.file.getDescriptor(),m);null!=d&&d(!0)}catch(l){this.file.inConflictState=!0;this.file.invalidChecksum=!0;this.file.descriptorChanged();null!=q&&q(l);try{var e=this.file.getCurrentUser(),g=null!=e?e.id:"unknown";EditorUi.logError("Error in merge",null,this.file.getMode()+"."+this.file.getId(),g,l)}catch(p){}}};
+DrawioFileSync.prototype.fileChanged=function(b,f,m,d,q){var x=window.setTimeout(mxUtils.bind(this,function(){null!=m&&m()||(EditorUi.debug("DrawioFileSync.fileChanged",[this],"lazy",d,"immediate",q,"remoteFileChanged",this.remoteFileChanged,"valid",this.isValidState()),this.isValidState()?(this.remoteFileChanged=!1,this.file.loadPatchDescriptor(mxUtils.bind(this,function(C){null!=m&&m()||(this.isValidState()?this.catchup(C,b,f,m,q):null!=f&&f())}),f)):null!=f&&f())}),d?this.cacheReadyDelay:0);return this.notifyThread=
x};
DrawioFileSync.prototype.fastForward=function(b){this.file.patchDescriptor(this.file.getDescriptor(),b);this.file.setShadowPages(this.ui.clonePages(this.ui.pages));this.file.theirPages=this.ui.clonePages(this.ui.pages);var f=this.file.ownPages;this.file.ownPages=this.ui.clonePages(this.ui.pages);for(var m=0;m<this.file.ownPages.length;m++)null!=f[m]&&this.ui.getHashValueForPages([this.file.ownPages[m]])!=this.ui.getHashValueForPages([f[m]])&&(this.file.ownPages[m].needsUpdate=!0);f=this.cleanupThread;window.clearTimeout(this.cleanupThread);
this.cleanupThread=null;"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.fastForward",[this],"desc",[b],"cleanup",f,"checksum",this.ui.getHashValueForPages(this.ui.pages));document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||null!=this.cleanupThread||this.testChecksum()};
DrawioFileSync.prototype.reloadDescriptor=function(){this.file.loadDescriptor(mxUtils.bind(this,function(b){null!=b?(this.file.setDescriptorRevisionId(b,this.file.getCurrentRevisionId()),this.updateDescriptor(b),this.fileChangedNotify()):(this.file.inConflictState=!0,this.file.handleFileError())}),mxUtils.bind(this,function(b){this.file.inConflictState=!0;this.file.handleFileError(b)}))};
DrawioFileSync.prototype.updateDescriptor=function(b){this.file.setDescriptor(b);this.file.descriptorChanged();this.start()};
-DrawioFileSync.prototype.catchup=function(b,f,m,d,t){if(null!=b&&(null==d||!d())){var x=this.file.getCurrentRevisionId(),v=this.file.getDescriptorRevisionId(b);EditorUi.debug("DrawioFileSync.catchup",[this],"desc",[b],"from",x,"to",v,"immediate",t,"valid",this.isValidState());if(x==v)this.file.patchDescriptor(this.file.getDescriptor(),b),"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.catchup",[this],"up to date","cleanup",this.cleanupThread,"checksum",this.ui.getHashValueForPages(this.ui.pages)),
-document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||null!=this.cleanupThread||this.testChecksum(),null!=f&&f(!0);else if(this.isValidState()){var B=this.file.getDescriptorChecksum(b),J=this.file.getDescriptorSecret(b);if(null!=B&&B==this.ui.getHashValueForPages(this.ui.pages))this.fastForward(b),null!=f&&f(!0);else if(Editor.enableRealtimeCache&&null!=J&&"1"!=urlParams.lockdown){var N=0,I=!1,c=mxUtils.bind(this,function(){if(null==d||!d())if(x!=this.file.getCurrentRevisionId())null!=f&&
-f(!0);else if(this.isValidState()){this.scheduleCleanup(!0);var e=!0,g=window.setTimeout(mxUtils.bind(this,function(){e=!1;this.reload(f,m,d,null,t)}),this.ui.timeout);mxUtils.get(EditorUi.cacheUrl+"?id="+encodeURIComponent(this.channelId)+"&from="+encodeURIComponent(x)+"&to="+encodeURIComponent(v)+(null!=J?"&secret="+encodeURIComponent(J):""),mxUtils.bind(this,function(l){this.file.stats.bytesReceived+=l.getText().length;window.clearTimeout(g);if(e&&(null==d||!d()))if(x!=this.file.getCurrentRevisionId())null!=
-f&&f(!0);else if(this.isValidState()){var n=null,u=[];EditorUi.debug("DrawioFileSync.doCatchup",[this],"request",[l],"status",l.getStatus(),"cacheReadyRetryCount",N,"maxCacheReadyRetries",this.maxCacheReadyRetries);if(200<=l.getStatus()&&299>=l.getStatus()&&0<l.getText().length)try{var z=JSON.parse(l.getText());if(null!=z&&0<z.length)for(var D=0;D<z.length;D++){var C=this.stringToObject(z[D]);if(C.v>DrawioFileSync.PROTOCOL){I=!0;u=[];break}else if(C.v===DrawioFileSync.PROTOCOL&&null!=C.d)n=C.d.checksum,
-u.push(C.d.patch);else{I=!0;u=[];break}}EditorUi.debug("DrawioFileSync.doCatchup",[this],"response",[z],"status",I?"failed":"ok","temp",u,"checksum",n)}catch(A){u=[],null!=window.console&&"1"==urlParams.test&&console.log(A)}try{0<u.length?(this.file.stats.cacheHits++,this.merge(u,n,b,f,m,d,t)):N<=this.maxCacheReadyRetries-1&&!I&&401!=l.getStatus()&&503!=l.getStatus()&&410!=l.getStatus()?(N++,this.file.stats.cacheMiss++,window.setTimeout(c,(N+1)*this.cacheReadyDelay)):(this.file.stats.cacheFail++,
-this.reload(f,m,d,null,t))}catch(A){null!=m&&m(A)}}else null!=m&&m()}),m)}else null!=m&&m()});window.setTimeout(c,this.cacheReadyDelay)}else this.reload(f,m,d,null,t)}else null!=m&&m()}};DrawioFileSync.prototype.reload=function(b,f,m,d,t){EditorUi.debug("DrawioFileSync.reload",[this],"immediate",t);this.file.updateFile(mxUtils.bind(this,function(){this.lastModified=this.file.getLastModifiedDate();this.updateStatus();this.start();null!=b&&b()}),mxUtils.bind(this,function(x){null!=f&&f(x)}),m,d,t)};
+DrawioFileSync.prototype.catchup=function(b,f,m,d,q){if(null!=b&&(null==d||!d())){var x=this.file.getCurrentRevisionId(),C=this.file.getDescriptorRevisionId(b);EditorUi.debug("DrawioFileSync.catchup",[this],"desc",[b],"from",x,"to",C,"immediate",q,"valid",this.isValidState());if(x==C)this.file.patchDescriptor(this.file.getDescriptor(),b),"1"==urlParams.test&&EditorUi.debug("DrawioFileSync.catchup",[this],"up to date","cleanup",this.cleanupThread,"checksum",this.ui.getHashValueForPages(this.ui.pages)),
+document.hidden||"1"!=urlParams.test||"1"!=urlParams.checksum||null!=this.cleanupThread||this.testChecksum(),null!=f&&f(!0);else if(this.isValidState()){var y=this.file.getDescriptorChecksum(b),I=this.file.getDescriptorSecret(b);if(null!=y&&y==this.ui.getHashValueForPages(this.ui.pages))this.fastForward(b),null!=f&&f(!0);else if(Editor.enableRealtimeCache&&null!=I&&"1"!=urlParams.lockdown){var M=0,H=!1,c=mxUtils.bind(this,function(){if(null==d||!d())if(x!=this.file.getCurrentRevisionId())null!=f&&
+f(!0);else if(this.isValidState()){this.scheduleCleanup(!0);var e=!0,g=window.setTimeout(mxUtils.bind(this,function(){e=!1;this.reload(f,m,d,null,q)}),this.ui.timeout);mxUtils.get(EditorUi.cacheUrl+"?id="+encodeURIComponent(this.channelId)+"&from="+encodeURIComponent(x)+"&to="+encodeURIComponent(C)+(null!=I?"&secret="+encodeURIComponent(I):""),mxUtils.bind(this,function(l){this.file.stats.bytesReceived+=l.getText().length;window.clearTimeout(g);if(e&&(null==d||!d()))if(x!=this.file.getCurrentRevisionId())null!=
+f&&f(!0);else if(this.isValidState()){var p=null,u=[];EditorUi.debug("DrawioFileSync.doCatchup",[this],"request",[l],"status",l.getStatus(),"cacheReadyRetryCount",M,"maxCacheReadyRetries",this.maxCacheReadyRetries);if(200<=l.getStatus()&&299>=l.getStatus()&&0<l.getText().length)try{var z=JSON.parse(l.getText());if(null!=z&&0<z.length)for(var E=0;E<z.length;E++){var D=this.stringToObject(z[E]);if(D.v>DrawioFileSync.PROTOCOL){H=!0;u=[];break}else if(D.v===DrawioFileSync.PROTOCOL&&null!=D.d)p=D.d.checksum,
+u.push(D.d.patch);else{H=!0;u=[];break}}EditorUi.debug("DrawioFileSync.doCatchup",[this],"response",[z],"status",H?"failed":"ok","temp",u,"checksum",p)}catch(A){u=[],null!=window.console&&"1"==urlParams.test&&console.log(A)}try{0<u.length?(this.file.stats.cacheHits++,this.merge(u,p,b,f,m,d,q)):M<=this.maxCacheReadyRetries-1&&!H&&401!=l.getStatus()&&503!=l.getStatus()&&410!=l.getStatus()?(M++,this.file.stats.cacheMiss++,window.setTimeout(c,(M+1)*this.cacheReadyDelay)):(this.file.stats.cacheFail++,
+this.reload(f,m,d,null,q))}catch(A){null!=m&&m(A)}}else null!=m&&m()}),m)}else null!=m&&m()});window.setTimeout(c,this.cacheReadyDelay)}else this.reload(f,m,d,null,q)}else null!=m&&m()}};DrawioFileSync.prototype.reload=function(b,f,m,d,q){EditorUi.debug("DrawioFileSync.reload",[this],"immediate",q);this.file.updateFile(mxUtils.bind(this,function(){this.lastModified=this.file.getLastModifiedDate();this.updateStatus();this.start();null!=b&&b()}),mxUtils.bind(this,function(x){null!=f&&f(x)}),m,d,q)};
DrawioFileSync.prototype.descriptorChanged=function(b){this.lastModified=this.file.getLastModifiedDate();if(null!=this.channelId){var f=this.objectToString(this.createMessage({a:"desc",m:this.lastModified.getTime()})),m=this.file.getCurrentRevisionId(),d=this.objectToString({});mxUtils.post(EditorUi.cacheUrl,this.getIdParameters()+"&from="+encodeURIComponent(b)+"&to="+encodeURIComponent(m)+"&msg="+encodeURIComponent(f)+"&data="+encodeURIComponent(d));this.file.stats.bytesSent+=d.length;this.file.stats.msgSent++;
EditorUi.debug("DrawioFileSync.descriptorChanged",[this],"from",b,"to",m)}this.updateStatus()};DrawioFileSync.prototype.objectToString=function(b){b=Graph.compress(JSON.stringify(b));null!=this.key&&"undefined"!==typeof CryptoJS&&(b=CryptoJS.AES.encrypt(b,this.key).toString());return b};DrawioFileSync.prototype.stringToObject=function(b){null!=this.key&&"undefined"!==typeof CryptoJS&&(b=CryptoJS.AES.decrypt(b,this.key).toString(CryptoJS.enc.Utf8));return JSON.parse(Graph.decompress(b))};
-DrawioFileSync.prototype.createToken=function(b,f,m){var d=!0,t=window.setTimeout(mxUtils.bind(this,function(){d=!1;m({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout);mxUtils.get(EditorUi.cacheUrl+"?id="+encodeURIComponent(this.channelId)+"&secret="+encodeURIComponent(b),mxUtils.bind(this,function(x){window.clearTimeout(t);d&&(200<=x.getStatus()&&299>=x.getStatus()?f(x.getText()):m({code:x.getStatus(),message:"Token Error "+x.getStatus()}))}),m)};
+DrawioFileSync.prototype.createToken=function(b,f,m){var d=!0,q=window.setTimeout(mxUtils.bind(this,function(){d=!1;m({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout);mxUtils.get(EditorUi.cacheUrl+"?id="+encodeURIComponent(this.channelId)+"&secret="+encodeURIComponent(b),mxUtils.bind(this,function(x){window.clearTimeout(q);d&&(200<=x.getStatus()&&299>=x.getStatus()?f(x.getText()):m({code:x.getStatus(),message:"Token Error "+x.getStatus()}))}),m)};
DrawioFileSync.prototype.fileSaving=function(){this.file.isOptimisticSync()&&this.notify(this.createMessage({m:Date.now(),type:"optimistic"}));EditorUi.debug("DrawioFileSync.fileSaving",[this],"optimistic",this.file.isOptimisticSync())};DrawioFileSync.prototype.fileDataUpdated=function(){this.scheduleCleanup(!0);EditorUi.debug("DrawioFileSync.fileDataUpdated",[this])};
-DrawioFileSync.prototype.fileSaved=function(b,f,m,d,t,x){this.lastModified=this.file.getLastModifiedDate();this.resetUpdateStatusThread();this.catchupRetryCount=0;if(!this.ui.isOffline(!0)&&!this.file.inConflictState&&!this.file.redirectDialogShowing&&(this.start(),null!=this.channelId)){var v=this.file.getDescriptorSecret(this.file.getDescriptor()),B=this.createMessage({m:this.lastModified.getTime()}),J=this.file.getDescriptorRevisionId(f),N=this.file.getCurrentRevisionId();if(null!=v&&null!=t&&
-"1"!=urlParams.lockdown&&Editor.enableRealtimeCache){var I=this.ui.diffPages(this.file.getShadowPages(),b);f=this.file.getDescriptorSecret(f);x=null!=x?x:this.ui.getHashValueForPages(b);var c=this.objectToString(this.createMessage({patch:I,checksum:x}));this.file.stats.bytesSent+=c.length;this.file.stats.msgSent++;var e=!0,g=window.setTimeout(mxUtils.bind(this,function(){e=!1;d({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout);mxUtils.post(EditorUi.cacheUrl,this.getIdParameters()+
-"&from="+encodeURIComponent(J)+"&to="+encodeURIComponent(N)+(Editor.p2pSyncNotify?"":"&msg="+encodeURIComponent(this.objectToString(B)))+(null!=v?"&secret="+encodeURIComponent(v):"")+(null!=f?"&last-secret="+encodeURIComponent(f):"")+(c.length<this.maxCacheEntrySize?"&data="+encodeURIComponent(c):"")+(null!=t?"&token="+encodeURIComponent(t):""),mxUtils.bind(this,function(l){window.clearTimeout(g);e&&(200<=l.getStatus()&&299>=l.getStatus()?(Editor.p2pSyncNotify&&this.notify(B),null!=m&&m()):d({message:mxResources.get("realtimeCollaboration")+
-(0!=l.getStatus()?": "+l.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",J,"to",N,"etag",this.file.getCurrentEtag(),"diff",I,c.length,"bytes","msg",B,"checksum",x)}else this.notify(B),null!=m&&m(),EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",J,"to",N,"etag",this.file.getCurrentEtag())}this.file.setShadowPages(b);this.scheduleCleanup()};
+DrawioFileSync.prototype.fileSaved=function(b,f,m,d,q,x){this.lastModified=this.file.getLastModifiedDate();this.resetUpdateStatusThread();this.catchupRetryCount=0;if(!this.ui.isOffline(!0)&&!this.file.inConflictState&&!this.file.redirectDialogShowing&&(this.start(),null!=this.channelId)){var C=this.file.getDescriptorSecret(this.file.getDescriptor()),y=this.createMessage({m:this.lastModified.getTime()}),I=this.file.getDescriptorRevisionId(f),M=this.file.getCurrentRevisionId();if(null!=C&&null!=q&&
+"1"!=urlParams.lockdown&&Editor.enableRealtimeCache){var H=this.ui.diffPages(this.file.getShadowPages(),b);f=this.file.getDescriptorSecret(f);x=null!=x?x:this.ui.getHashValueForPages(b);var c=this.objectToString(this.createMessage({patch:H,checksum:x}));this.file.stats.bytesSent+=c.length;this.file.stats.msgSent++;var e=!0,g=window.setTimeout(mxUtils.bind(this,function(){e=!1;d({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")})}),this.ui.timeout);mxUtils.post(EditorUi.cacheUrl,this.getIdParameters()+
+"&from="+encodeURIComponent(I)+"&to="+encodeURIComponent(M)+(Editor.p2pSyncNotify?"":"&msg="+encodeURIComponent(this.objectToString(y)))+(null!=C?"&secret="+encodeURIComponent(C):"")+(null!=f?"&last-secret="+encodeURIComponent(f):"")+(c.length<this.maxCacheEntrySize?"&data="+encodeURIComponent(c):"")+(null!=q?"&token="+encodeURIComponent(q):""),mxUtils.bind(this,function(l){window.clearTimeout(g);e&&(200<=l.getStatus()&&299>=l.getStatus()?(Editor.p2pSyncNotify&&this.notify(y),null!=m&&m()):d({message:mxResources.get("realtimeCollaboration")+
+(0!=l.getStatus()?": "+l.getStatus():"")}))}));EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",I,"to",M,"etag",this.file.getCurrentEtag(),"diff",H,c.length,"bytes","msg",y,"checksum",x)}else this.notify(y),null!=m&&m(),EditorUi.debug("DrawioFileSync.fileSaved",[this],"from",I,"to",M,"etag",this.file.getCurrentEtag())}this.file.setShadowPages(b);this.scheduleCleanup()};
DrawioFileSync.prototype.getIdParameters=function(){var b="id="+this.channelId;null!=this.pusher&&null!=this.pusher.connection&&null!=this.pusher.connection.socket_id&&(b+="&sid="+this.pusher.connection.socket_id);return b};DrawioFileSync.prototype.createMessage=function(b){return{v:DrawioFileSync.PROTOCOL,d:b,c:this.clientId}};
DrawioFileSync.prototype.fileConflict=function(b,f,m){this.catchupRetryCount++;EditorUi.debug("DrawioFileSync.fileConflict",[this],"desc",[b],"catchupRetryCount",this.catchupRetryCount,"maxCatchupRetries",this.maxCatchupRetries);this.catchupRetryCount<this.maxCatchupRetries?(this.file.stats.conflicts++,null!=b?this.catchup(b,f,m):this.fileChanged(f,m)):(this.file.stats.timeouts++,this.catchupRetryCount=0,null!=m&&m({code:App.ERROR_TIMEOUT,message:mxResources.get("timeout")}))};
DrawioFileSync.prototype.stop=function(){null!=this.pusher?(null!=this.pusher.connection&&(this.pusher.connection.unbind("state_change",this.connectionListener),this.pusher.connection.unbind("error",this.pusherErrorListener)),null!=this.channel&&(this.channel.unbind("changed",this.changeListener),this.channel=null),this.pusher.disconnect(),this.pusher=null,null!=this.p2pCollab&&(this.p2pCollab.destroy(),this.p2pCollab=null),EditorUi.debug("DrawioFileSync.stop",[this])):null!=this.polling&&(this.polling.stop(),
@@ -13636,14 +13680,14 @@ DrawioFileSync.prototype.destroy=function(){if(null!=this.channelId){var b=this.
null);null!=this.visibleListener&&(mxEvent.removeListener(document,"visibilitychange",this.visibleListener),this.visibleListener=null);null!=this.activityListener&&(mxEvent.removeListener(document,mxClient.IS_POINTER?"pointermove":"mousemove",this.activityListener),mxEvent.removeListener(document,"keypress",this.activityListener),mxEvent.removeListener(window,"focus",this.activityListener),!mxClient.IS_POINTER&&mxClient.IS_TOUCH&&(mxEvent.removeListener(document,"touchstart",this.activityListener),
mxEvent.removeListener(document,"touchmove",this.activityListener)),this.activityListener=null);null!=this.p2pCollab&&this.p2pCollab.destroy()};App=function(b,f,m){EditorUi.call(this,b,f,null!=m?m:"1"==urlParams.lightbox||"min"==uiTheme&&"0"!=urlParams.chrome);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||(window.onunload=mxUtils.bind(this,function(){var d=this.getCurrentFile();null!=d&&d.isModified()&&(d.getHash(),d.savingFile&&null!=d.savingFileTime&&(Date.now(),d.savingFileTime.getTime()),null!=d.ageStart&&(Date.now(),d.ageStart.getTime()),d.isAutosave(),null!=d.opened&&(Date.now(),d.opened.getTime()),null!=d.lastSaved&&(Date.now(),d.lastSaved.getTime()),
null!=d.lastChanged&&(Date.now(),d.lastChanged.getTime()),Date.now(),App.startTime.getTime(),d.constructor==DriveFile&&null!=d.desc&&null!=this.drive&&d.getSize())}));this.editor.addListener("autosaveChanged",mxUtils.bind(this,function(){var d=this.getCurrentFile();null!=d&&EditorUi.logEvent({category:(this.editor.autosave?"ON":"OFF")+"-AUTOSAVE-FILE-"+d.getHash(),action:"changed",label:"autosave_"+(this.editor.autosave?"on":"off")})}));mxClient.IS_SVG?mxGraph.prototype.warningImage.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAAK/INwWK6QAAABl0RVh0U29mdHdhcmUAQWRvYmUgSW1hZ2VSZWFkeXHJZTwAAAE7SURBVHjaYvz//z8DJQAggBjwGXDuHMP/tWuD/uPTCxBAOA0AaQRK/f/+XeJ/cbHlf1wGAAQQTgPu3QNLgfHSpZo4DQAIIKwGwGyH4e/fFbG6AiQJEEAs2Ew2NFzH8OOHBMO6dT/A/KCg7wxGRh+wuhQggDBcALMdFIAcHBxgDGJjcwVIIUAAYbhAUXEdVos4OO4DXcGBIQ4QQCguQPY7sgtgAYruCpAgQACx4LJdU1OCwctLEcyWlLwPJF+AXQE0EMUBAAEEdwF6yMOiD4RRY0QT7gqQAEAAseDzu6XldYYPH9DD4joQa8L5AAEENgWb7SBcXa0JDQMBrK4AcQACiAlfyOMCEFdAnAYQQEz4FLa0XGf4/v0H0IIPONUABBAjyBmMjIwMS5cK/L927QORbtBkaG29DtYLEGAAH6f7oq3Zc+kAAAAASUVORK5CYII=":
-(new Image).src=mxGraph.prototype.warningImage.src;window.geOpenWindow=mxUtils.bind(this,function(d,t,x){if("1"==urlParams.openInSameWin||navigator.standalone)null!=x&&x();else{var v=null;try{v=window.open(d)}catch(B){}null==v||void 0===v?this.showDialog((new PopupDialog(this,d,t,x)).container,340,140,!0,!0):null!=t&&t()}});this.updateDocumentTitle();this.updateUi();window.showOpenAlert=mxUtils.bind(this,function(d){null!=window.openFile&&window.openFile.cancel(!0);this.handleError(d)});this.editor.chromeless&&
+(new Image).src=mxGraph.prototype.warningImage.src;window.geOpenWindow=mxUtils.bind(this,function(d,q,x){if("1"==urlParams.openInSameWin||navigator.standalone)null!=x&&x();else{var C=null;try{C=window.open(d)}catch(y){}null==C||void 0===C?this.showDialog((new PopupDialog(this,d,q,x)).container,340,140,!0,!0):null!=q&&q()}});this.updateDocumentTitle();this.updateUi();window.showOpenAlert=mxUtils.bind(this,function(d){null!=window.openFile&&window.openFile.cancel(!0);this.handleError(d)});this.editor.chromeless&&
!this.editor.editable||this.addFileDropHandler([document]);if(null!=App.DrawPlugins){for(b=0;b<App.DrawPlugins.length;b++)try{App.DrawPlugins[b](this)}catch(d){null!=window.console&&console.log("Plugin Error:",d,App.DrawPlugins[b])}finally{App.embedModePluginsCount--,this.initializeEmbedMode()}window.Draw.loadPlugin=mxUtils.bind(this,function(d){try{d(this)}finally{App.embedModePluginsCount--,this.initializeEmbedMode()}});setTimeout(mxUtils.bind(this,function(){0<App.embedModePluginsCount&&(App.embedModePluginsCount=
0,this.initializeEmbedMode())}),5E3)}this.load()};App.ERROR_TIMEOUT="timeout";App.ERROR_BUSY="busy";App.ERROR_UNKNOWN="unknown";App.MODE_GOOGLE="google";App.MODE_DROPBOX="dropbox";App.MODE_ONEDRIVE="onedrive";App.MODE_GITHUB="github";App.MODE_GITLAB="gitlab";App.MODE_DEVICE="device";App.MODE_BROWSER="browser";App.MODE_TRELLO="trello";App.MODE_EMBED="embed";App.MODE_ATLAS="atlas";App.DROPBOX_APPKEY=window.DRAWIO_DROPBOX_ID;App.DROPBOX_URL="js/dropbox/Dropbox-sdk.min.js";App.DROPINS_URL="https://www.dropbox.com/static/api/2/dropins.js";
App.ONEDRIVE_URL=mxClient.IS_IE11?"https://js.live.net/v7.2/OneDrive.js":"js/onedrive/OneDrive.js";App.TRELLO_URL="https://api.trello.com/1/client.js";App.TRELLO_JQUERY_URL="js/jquery/jquery-3.6.0.min.js";App.PUSHER_KEY="1e756b07a690c5bdb054";App.PUSHER_CLUSTER="eu";App.PUSHER_URL="https://js.pusher.com/7.0.3/pusher.min.js";App.SIMPLE_PEER_URL="js/simplepeer/simplepeer9.10.0.min.js";App.GOOGLE_APIS="drive-share";App.startTime=new Date;
App.pluginRegistry={"4xAKTrabTpTzahoLthkwPNUn":"plugins/explore.js",ex:"plugins/explore.js",ac:"plugins/connect.js",acj:"plugins/connectJira.js",ac148:"plugins/cConf-1-4-8.js",ac148cmnt:"plugins/cConf-comments.js",nxtcld:"plugins/nextcloud.js",monday:"plugins/monday.js",tips:"plugins/tooltips.js",svgdata:"plugins/svgdata.js",number:"plugins/number.js",sql:"plugins/sql.js",props:"plugins/props.js",text:"plugins/text.js",anim:"plugins/animation.js",update:"plugins/update.js",trees:"plugins/trees/trees.js",
"import":"plugins/import.js",replay:"plugins/replay.js",anon:"plugins/anonymize.js",tr:"plugins/trello.js",f5:"plugins/rackF5.js",webcola:"plugins/webcola/webcola.js",rnd:"plugins/random.js",page:"plugins/page.js",gd:"plugins/googledrive.js",tags:"plugins/tags.js"};App.publicPlugin="ex tips svgdata number sql props text anim update trees replay anon webcola tags".split(" ");
-App.loadScripts=function(b,f,m){for(var d=b.length,t=!1,x=0;x<b.length;x++)mxscript(b[x],function(){0!=--d||t||null==f||f()},null,null,null,function(v,B){t=!0;null!=m&&m(Error(v));console.error("Error loading script",v,B,B.stack)})};
-App.getStoredMode=function(){var b=null;null==b&&isLocalStorage&&(b=localStorage.getItem(".mode"));if(null==b&&"undefined"!=typeof Storage)try{for(var f=document.cookie.split(";"),m=0;m<f.length;m++){var d=mxUtils.trim(f[m]);if("MODE="==d.substring(0,5)){b=d.substring(5);break}}if(null!=b&&isLocalStorage){var t=new Date;t.setYear(t.getFullYear()-1);document.cookie="MODE=; expires="+t.toUTCString();localStorage.setItem(".mode",b)}}catch(x){}return b};
+App.loadScripts=function(b,f,m){for(var d=b.length,q=!1,x=0;x<b.length;x++)mxscript(b[x],function(){0!=--d||q||null==f||f()},null,null,null,function(C,y){q=!0;null!=m&&m(Error(C));console.error("Error loading script",C,y,y.stack)})};
+App.getStoredMode=function(){var b=null;null==b&&isLocalStorage&&(b=localStorage.getItem(".mode"));if(null==b&&"undefined"!=typeof Storage)try{for(var f=document.cookie.split(";"),m=0;m<f.length;m++){var d=mxUtils.trim(f[m]);if("MODE="==d.substring(0,5)){b=d.substring(5);break}}if(null!=b&&isLocalStorage){var q=new Date;q.setYear(q.getFullYear()-1);document.cookie="MODE=; expires="+q.toUTCString();localStorage.setItem(".mode",b)}}catch(x){}return b};
(function(){mxClient.IS_CHROMEAPP||("1"!=urlParams.offline&&("db.draw.io"==window.location.hostname&&null==urlParams.mode&&(urlParams.mode="dropbox"),App.mode=urlParams.mode),null==App.mode&&"1"!=urlParams.embed&&(App.mode=App.getStoredMode()),null!=window.mxscript&&"1"!=urlParams.embed&&("function"===typeof window.DriveClient&&("0"!=urlParams.gapi&&isSvgBrowser&&(null==document.documentMode||10<=document.documentMode)?App.mode==App.MODE_GOOGLE||null!=urlParams.state&&""==window.location.hash||null!=
window.location.hash&&"#G"==window.location.hash.substring(0,2)?mxscript("https://apis.google.com/js/api.js"):"0"!=urlParams.chrome||null!=window.location.hash&&"#Uhttps%3A%2F%2Fdrive.google.com%2Fuc%3Fid%3D"===window.location.hash.substring(0,45)||(window.DriveClient=null):window.DriveClient=null),"function"===typeof window.DropboxClient&&("0"!=urlParams.db&&isSvgBrowser&&(null==document.documentMode||9<document.documentMode)?App.mode==App.MODE_DROPBOX||null!=window.location.hash&&"#D"==window.location.hash.substring(0,
2)?mxscript(App.DROPBOX_URL,function(){mxscript(App.DROPINS_URL,null,"dropboxjs",App.DROPBOX_APPKEY,!0)}):"0"==urlParams.chrome&&(window.DropboxClient=null):window.DropboxClient=null),"function"===typeof window.OneDriveClient&&("0"!=urlParams.od&&(null==navigator.userAgent||0>navigator.userAgent.indexOf("MSIE")||10<=document.documentMode)?App.mode==App.MODE_ONEDRIVE||null!=window.location.hash&&"#W"==window.location.hash.substring(0,2)?mxscript(App.ONEDRIVE_URL):"0"==urlParams.chrome&&(window.OneDriveClient=
@@ -13651,43 +13695,43 @@ null):window.OneDriveClient=null),"function"===typeof window.TrelloClient&&("1"=
App.clearServiceWorker=function(b,f){navigator.serviceWorker.getRegistrations().then(function(m){if(null!=m&&0<m.length){for(var d=0;d<m.length;d++)m[d].unregister();null!=b&&b()}})["catch"](function(){null!=f&&f()})};App.isSameDomain=function(b){var f=document.createElement("a");f.href=b;return f.protocol===window.location.protocol||f.host===window.location.host};App.isBuiltInPlugin=function(b){for(var f in App.pluginRegistry)if(App.pluginRegistry[f]==b)return!0;return!1};
App.isSimpleThemePreferred=function(){var b=navigator.userAgent||navigator.vendor||window.opera;return 1024>=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)||/android/i.test(b)||/iPad|iPhone|iPod/.test(b)&&!window.MSStream||navigator.userAgent.match(/Mac/)&&navigator.maxTouchPoints&&2<navigator.maxTouchPoints};
App.main=function(b,f){try{var m=function(){try{if(null!=mxSettings.settings){if(null!=mxSettings.settings.autosaveDelay){var g=parseInt(mxSettings.settings.autosaveDelay);!isNaN(g)&&0<g?(DrawioFile.prototype.autosaveDelay=g,EditorUi.debug("Setting autosaveDelay",g)):EditorUi.debug("Invalid autosaveDelay",g)}null!=mxSettings.settings.defaultEdgeLength&&(g=parseInt(mxSettings.settings.defaultEdgeLength),!isNaN(g)&&0<g?(Graph.prototype.defaultEdgeLength=g,EditorUi.debug("Using defaultEdgeLength",g)):
-EditorUi.debug("Invalid defaultEdgeLength",g))}}catch(n){null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(n.stack)):console.error(n)}try{if(null!=Menus.prototype.defaultFonts)for(g=0;g<Menus.prototype.defaultFonts.length;g++){var l=Menus.prototype.defaultFonts[g];"string"!==typeof l&&null!=l.fontFamily&&null!=l.fontUrl&&Graph.addFont(l.fontFamily,l.fontUrl)}mxResources.loadDefaultBundle=!1;d(mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,
-mxLanguage))}catch(n){document.body.innerHTML="",l=document.createElement("pre"),mxUtils.write(l,n.stack),document.body.appendChild(l)}},d=function(g){mxUtils.getAll("1"!=urlParams.dev?[g]:[g,STYLE_PATH+"/default.xml"],function(l){function n(){try{try{null==Editor.currentTheme&&"1"!=urlParams.embed&&(1==urlParams.dev||1==urlParams.test||"test.draw.io"===window.location.hostname||"www.draw.io"===window.location.hostname||"preprod.diagrams.net"===window.location.hostname||"app.diagrams.net"===window.location.hostname||
-"jgraph.github.io"===window.location.hostname||/drawio-dev\.pages\.dev$/.test(window.location.hostname))&&App.isSimpleThemePreferred()&&(Editor.currentTheme="simple")}catch(Q){}"kennedy"!=Editor.currentTheme&&0>mxUtils.indexOf(Editor.themes,Editor.currentTheme)&&(Editor.currentTheme="kennedy");"1"==urlParams.transparent&&(document.body.style.background="transparent");var A=null!=f?f():new App(new Editor("0"==urlParams.chrome||"min"==uiTheme,null,null,null,"0"!=urlParams.chrome));null!=window.mxscript&&
+EditorUi.debug("Invalid defaultEdgeLength",g))}}catch(p){null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(p.stack)):console.error(p)}try{if(null!=Menus.prototype.defaultFonts)for(g=0;g<Menus.prototype.defaultFonts.length;g++){var l=Menus.prototype.defaultFonts[g];"string"!==typeof l&&null!=l.fontFamily&&null!=l.fontUrl&&Graph.addFont(l.fontFamily,l.fontUrl)}mxResources.loadDefaultBundle=!1;d(mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,
+mxLanguage))}catch(p){document.body.innerHTML="",l=document.createElement("pre"),mxUtils.write(l,p.stack),document.body.appendChild(l)}},d=function(g){mxUtils.getAll("1"!=urlParams.dev?[g]:[g,STYLE_PATH+"/default.xml"],function(l){function p(){try{try{null==Editor.currentTheme&&"1"!=urlParams.embed&&(1==urlParams.dev||1==urlParams.test||"test.draw.io"===window.location.hostname||"www.draw.io"===window.location.hostname||"preprod.diagrams.net"===window.location.hostname||"app.diagrams.net"===window.location.hostname||
+"jgraph.github.io"===window.location.hostname||/drawio-dev\.pages\.dev$/.test(window.location.hostname))&&App.isSimpleThemePreferred()&&(Editor.currentTheme="simple")}catch(P){}"kennedy"!=Editor.currentTheme&&0>mxUtils.indexOf(Editor.themes,Editor.currentTheme)&&(Editor.currentTheme="kennedy");"1"==urlParams.transparent&&(document.body.style.background="transparent");var A=null!=f?f():new App(new Editor("0"==urlParams.chrome||"min"==uiTheme,null,null,null,"0"!=urlParams.chrome));null!=window.mxscript&&
("function"===typeof window.DropboxClient&&null==window.Dropbox&&null!=window.DrawDropboxClientCallback&&("1"!=urlParams.embed&&"0"!=urlParams.db||"1"==urlParams.embed&&"1"==urlParams.db)&&isSvgBrowser&&(null==document.documentMode||9<document.documentMode)?mxscript(App.DROPBOX_URL,function(){mxscript(App.DROPINS_URL,function(){DrawDropboxClientCallback()},"dropboxjs",App.DROPBOX_APPKEY)}):"undefined"===typeof window.Dropbox&&(window.DropboxClient=null),"function"===typeof window.OneDriveClient&&
"undefined"===typeof OneDrive&&null!=window.DrawOneDriveClientCallback&&("1"!=urlParams.embed&&"0"!=urlParams.od||"1"==urlParams.embed&&"1"==urlParams.od)&&(null==navigator.userAgent||0>navigator.userAgent.indexOf("MSIE")||10<=document.documentMode)?mxscript(App.ONEDRIVE_URL,window.DrawOneDriveClientCallback):"undefined"===typeof window.OneDrive&&(window.OneDriveClient=null),"function"===typeof window.TrelloClient&&!mxClient.IS_IE11&&"undefined"===typeof window.Trello&&null!=window.DrawTrelloClientCallback&&
-"1"==urlParams.tr&&(null==navigator.userAgent||0>navigator.userAgent.indexOf("MSIE")||10<=document.documentMode)?mxscript(App.TRELLO_JQUERY_URL,function(){mxscript(App.TRELLO_URL,function(){DrawTrelloClientCallback()})}):"undefined"===typeof window.Trello&&(window.TrelloClient=null));null!=b&&b(A);"0"!=urlParams.chrome&&"1"==urlParams.test&&(EditorUi.debug("App.start",["v"+EditorUi.VERSION,A,(new Date).getTime()-t0.getTime()+"ms"]),null!=urlParams["export"]&&EditorUi.debug("Export:",EXPORT_URL))}catch(Q){EditorUi.isElectronApp?
-(mxLog.show(),mxLog.debug(Q.stack)):(EditorUi.logError(Q.message,null,null,null,Q),window.setTimeout(function(){alert(Q.message)},1))}}mxResources.parse(l[0].getText());if(isLocalStorage&&null!=localStorage&&null!=window.location.hash&&"#_CONFIG_"==window.location.hash.substring(0,9))try{var u=JSON.parse(Graph.decompress(window.location.hash.substring(9)));if(null!=u){EditorUi.debug("Setting configuration",JSON.stringify(u));if(null!=u.merge){var z=localStorage.getItem(Editor.configurationKey);if(null!=
-z)try{var D=JSON.parse(z),C;for(C in u.merge)D[C]=u.merge[C];u=D}catch(A){window.location.hash="",alert(A)}else u=u.merge}confirm(mxResources.get("configLinkWarn"))&&confirm(mxResources.get("configLinkConfirm"))&&(localStorage.setItem(Editor.configurationKey,JSON.stringify(u)),window.location.hash="",window.location.reload())}window.location.hash=""}catch(A){window.location.hash="",alert(A)}1<l.length&&(Graph.prototype.defaultThemes["default-style2"]=l[1].getDocumentElement(),Graph.prototype.defaultThemes.darkTheme=
-l[1].getDocumentElement());"1"==urlParams.dev||EditorUi.isElectronApp?n():(mxStencilRegistry.allowEval=!1,App.loadScripts(["js/shapes-14-6-5.min.js","js/stencils.min.js","js/extensions.min.js"],n,function(A){document.body.innerHTML="";var Q=document.createElement("pre");mxUtils.write(Q,A.stack);document.body.appendChild(Q)}))},function(l){l=document.getElementById("geStatus");null!=l&&(l.innerHTML="Error loading page. <a>Please try refreshing.</a>",l.getElementsByTagName("a")[0].onclick=function(){mxLanguage=
+"1"==urlParams.tr&&(null==navigator.userAgent||0>navigator.userAgent.indexOf("MSIE")||10<=document.documentMode)?mxscript(App.TRELLO_JQUERY_URL,function(){mxscript(App.TRELLO_URL,function(){DrawTrelloClientCallback()})}):"undefined"===typeof window.Trello&&(window.TrelloClient=null));null!=b&&b(A);"0"!=urlParams.chrome&&"1"==urlParams.test&&(EditorUi.debug("App.start",["v"+EditorUi.VERSION,A,(new Date).getTime()-t0.getTime()+"ms"]),null!=urlParams["export"]&&EditorUi.debug("Export:",EXPORT_URL))}catch(P){EditorUi.isElectronApp?
+(mxLog.show(),mxLog.debug(P.stack)):(EditorUi.logError(P.message,null,null,null,P),window.setTimeout(function(){alert(P.message)},1))}}mxResources.parse(l[0].getText());if(isLocalStorage&&null!=localStorage&&null!=window.location.hash&&"#_CONFIG_"==window.location.hash.substring(0,9))try{var u=JSON.parse(Graph.decompress(window.location.hash.substring(9)));if(null!=u){EditorUi.debug("Setting configuration",JSON.stringify(u));if(null!=u.merge){var z=localStorage.getItem(Editor.configurationKey);if(null!=
+z)try{var E=JSON.parse(z),D;for(D in u.merge)E[D]=u.merge[D];u=E}catch(A){window.location.hash="",alert(A)}else u=u.merge}confirm(mxResources.get("configLinkWarn"))&&confirm(mxResources.get("configLinkConfirm"))&&(localStorage.setItem(Editor.configurationKey,JSON.stringify(u)),window.location.hash="",window.location.reload())}window.location.hash=""}catch(A){window.location.hash="",alert(A)}1<l.length&&(Graph.prototype.defaultThemes["default-style2"]=l[1].getDocumentElement(),Graph.prototype.defaultThemes.darkTheme=
+l[1].getDocumentElement());"1"==urlParams.dev||EditorUi.isElectronApp?p():(mxStencilRegistry.allowEval=!1,App.loadScripts(["js/shapes-14-6-5.min.js","js/stencils.min.js","js/extensions.min.js"],p,function(A){document.body.innerHTML="";var P=document.createElement("pre");mxUtils.write(P,A.stack);document.body.appendChild(P)}))},function(l){l=document.getElementById("geStatus");null!=l&&(l.innerHTML="Error loading page. <a>Please try refreshing.</a>",l.getElementsByTagName("a")[0].onclick=function(){mxLanguage=
"en";d(mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,mxLanguage))})})};if(!App.isMainCalled)if(mxIsElectron&&"undefined"===typeof electron)alert("Runtime Environment not found."),document.body.innerHTML='<div style="margin-top:10%;text-align:center;"><img src="mxgraph/images/warning.png" align="top" style="padding-right:6px;"/>Runtime Environment not found.</div>';else if(mxUtils.lightDarkColorSupported||mxUtils.get("styles/grapheditor.css",mxUtils.bind(this,
-function(g){if(200<=g.getStatus()&&299>=g.getStatus()){var l=document.createElement("style");l.type="text/css";l.appendChild(document.createTextNode(g.getText().replace(/light-dark\(\s*(var\([^\)]+\)|[^,]+)\s*,\s*(var\([^\)]+\)|[^)]+)\s*\)/g,"$1")));document.head.appendChild(l)}})),App.isMainCalled=!0,window.onerror=function(g,l,n,u,z){EditorUi.logError("Global: "+(null!=g?g:""),l,n,u,z,null,!0);null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug("Message:",g,"\nURL:",l,"\nLine:",
-n,"\nColumn:",u,"\nError:",z)):console.error("Message:",g,"\nURL:",l,"\nLine:",n,"\nColumn:",u,"\nError:",z);window.setTimeout(function(){alert("Error: "+(null!=g?g:""))},100)},window.top!=window.self||"import.diagrams.net"!==window.location.hostname&&"ac.draw.io"!==window.location.hostname&&"aj.draw.io"!==window.location.hostname){if("1"==urlParams.embed||"1"==urlParams.lightbox){var t=document.getElementById("geInfo");null!=t&&t.parentNode.removeChild(t)}"1"==urlParams.embed&&document.body.classList.add("geEmbed");
-null!=document.referrer&&"aws3"==urlParams.libs&&"https://aws.amazon.com/architecture/icons/"==document.referrer.substring(0,42)&&(urlParams.libs="aws4");if(null!=window.mxscript){if("1"==urlParams.dev&&!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&null!=CryptoJS&&App.mode!=App.MODE_DROPBOX&&App.mode!=App.MODE_TRELLO){var x=document.getElementById("geBootstrap");if(null!=x){var v=mxUtils.getTextContent(x);"ff68e9badc5b6bcb8f482e0c64b103a7"!=CryptoJS.MD5(v).toString()&&(console.log("Change bootstrap script MD5 in the previous line:",
-CryptoJS.MD5(v).toString()),alert("[Dev] Bootstrap script change requires update of CSP"))}var B=document.getElementById("geMain");null!=B&&(v=mxUtils.getTextContent(B),"69c25556b6237c57cdb7d017147af34b"!=CryptoJS.MD5(v).toString()&&(console.log("Change main script MD5 in the previous line:",CryptoJS.MD5(v).toString()),alert("[Dev] Main script change requires update of CSP")))}try{Editor.enableServiceWorker&&("0"==urlParams.offline||/www\.draw\.io$/.test(window.location.hostname)||"1"!=urlParams.offline&&
+function(g){if(200<=g.getStatus()&&299>=g.getStatus()){var l=document.createElement("style");l.type="text/css";l.appendChild(document.createTextNode(g.getText().replace(/light-dark\(\s*(var\([^\)]+\)|[^,]+)\s*,\s*(var\([^\)]+\)|[^)]+)\s*\)/g,"$1")));document.head.appendChild(l)}})),App.isMainCalled=!0,window.onerror=function(g,l,p,u,z){EditorUi.logError("Global: "+(null!=g?g:""),l,p,u,z,null,!0);null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug("Message:",g,"\nURL:",l,"\nLine:",
+p,"\nColumn:",u,"\nError:",z)):console.error("Message:",g,"\nURL:",l,"\nLine:",p,"\nColumn:",u,"\nError:",z);window.setTimeout(function(){alert("Error: "+(null!=g?g:""))},100)},window.top!=window.self||"import.diagrams.net"!==window.location.hostname&&"ac.draw.io"!==window.location.hostname&&"aj.draw.io"!==window.location.hostname){if("1"==urlParams.embed||"1"==urlParams.lightbox){var q=document.getElementById("geInfo");null!=q&&q.parentNode.removeChild(q)}"1"==urlParams.embed&&document.body.classList.add("geEmbed");
+null!=document.referrer&&"aws3"==urlParams.libs&&"https://aws.amazon.com/architecture/icons/"==document.referrer.substring(0,42)&&(urlParams.libs="aws4");if(null!=window.mxscript){if("1"==urlParams.dev&&!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&null!=CryptoJS&&App.mode!=App.MODE_DROPBOX&&App.mode!=App.MODE_TRELLO){var x=document.getElementById("geBootstrap");if(null!=x){var C=mxUtils.getTextContent(x);"ff68e9badc5b6bcb8f482e0c64b103a7"!=CryptoJS.MD5(C).toString()&&(console.log("Change bootstrap script MD5 in the previous line:",
+CryptoJS.MD5(C).toString()),alert("[Dev] Bootstrap script change requires update of CSP"))}var y=document.getElementById("geMain");null!=y&&(C=mxUtils.getTextContent(y),"69c25556b6237c57cdb7d017147af34b"!=CryptoJS.MD5(C).toString()&&(console.log("Change main script MD5 in the previous line:",CryptoJS.MD5(C).toString()),alert("[Dev] Main script change requires update of CSP")))}try{Editor.enableServiceWorker&&("0"==urlParams.offline||/www\.draw\.io$/.test(window.location.hostname)||"1"!=urlParams.offline&&
"1"==urlParams.dev)?App.clearServiceWorker(function(){"0"==urlParams.offline&&alert("Cache cleared")}):Editor.enableServiceWorker&&navigator.serviceWorker.register("service-worker.js")}catch(g){}!("ArrayBuffer"in window)||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"auto"!=DrawioFile.SYNC||"1"==urlParams.embed&&("1"!=urlParams.embedRT||"1"==urlParams.lockdown)||"1"==urlParams.local||"0"==urlParams.chrome&&"1"!=urlParams.rt||"1"==urlParams.stealth||"1"==urlParams.offline||(mxscript(App.PUSHER_URL),
-"1"==urlParams["fast-sync"]&&mxscript(App.SIMPLE_PEER_URL));if("0"!=urlParams.plugins&&"1"!=urlParams.offline){var J=null!=mxSettings.settings?mxSettings.getPlugins():null;if(null==mxSettings.settings&&isLocalStorage&&"undefined"!==typeof JSON)try{var N=JSON.parse(localStorage.getItem(mxSettings.key));null!=N&&(J=N.plugins)}catch(g){}N=urlParams.p;App.initPluginCallback();null!=N&&App.loadPlugins(N.split(";"));if(null!=J&&0<J.length&&"0"!=urlParams.plugins)for(t=0;t<J.length;t++)try{("/"==J[t].charAt(0)&&
-(J[t]=PLUGINS_BASE_PATH+J[t]),App.isSameDomain(J[t]))?ALLOW_CUSTOM_PLUGINS||App.isBuiltInPlugin(J[t])?null==App.pluginsLoaded[J[t]]&&(App.pluginsLoaded[J[t]]=!0,App.embedModePluginsCount++,mxscript(J[t])):null!=window.console&&console.log("Unknown plugin:",J[t]):null!=window.console&&console.log("Blocked plugin:",J[t])}catch(g){}}"function"===typeof window.DriveClient&&"undefined"===typeof gapi&&("1"!=urlParams.embed&&"0"!=urlParams.gapi||"1"==urlParams.embed&&"1"==urlParams.gapi)&&isSvgBrowser&&
-isLocalStorage&&(null==document.documentMode||10<=document.documentMode)?mxscript("https://apis.google.com/js/api.js?onload=DrawGapiClientCallback",null,null,null,mxClient.IS_SVG):"undefined"===typeof window.gapi&&(window.DriveClient=null)}"0"!=urlParams.math&&Editor.initMath();if("1"==urlParams.configure){var I=window.opener||window.parent,c=function(g){if(g.source==I)try{var l=JSON.parse(g.data);null!=l&&"configure"==l.action&&(mxEvent.removeListener(window,"message",c),Editor.configure(l.config),
-mxSettings.load(),null!=l.config.darkColor&&document.body.style.setProperty("--dark-color",l.config.darkColor),l.colorSchemeMeta&&mxmeta("color-scheme","dark light"),m())}catch(n){null!=window.console&&console.log("Error in configure message: "+n,g.data)}};mxEvent.addListener(window,"message",c);I.postMessage(JSON.stringify({event:"configure"}),"*")}else{if(null==Editor.config){if(null!=window.DRAWIO_CONFIG)try{EditorUi.debug("Using global configuration",window.DRAWIO_CONFIG),Editor.configure(window.DRAWIO_CONFIG),
+"1"==urlParams["fast-sync"]&&mxscript(App.SIMPLE_PEER_URL));if("0"!=urlParams.plugins&&"1"!=urlParams.offline){var I=null!=mxSettings.settings?mxSettings.getPlugins():null;if(null==mxSettings.settings&&isLocalStorage&&"undefined"!==typeof JSON)try{var M=JSON.parse(localStorage.getItem(mxSettings.key));null!=M&&(I=M.plugins)}catch(g){}M=urlParams.p;App.initPluginCallback();null!=M&&App.loadPlugins(M.split(";"));if(null!=I&&0<I.length&&"0"!=urlParams.plugins)for(q=0;q<I.length;q++)try{("/"==I[q].charAt(0)&&
+(I[q]=PLUGINS_BASE_PATH+I[q]),App.isSameDomain(I[q]))?ALLOW_CUSTOM_PLUGINS||App.isBuiltInPlugin(I[q])?null==App.pluginsLoaded[I[q]]&&(App.pluginsLoaded[I[q]]=!0,App.embedModePluginsCount++,mxscript(I[q])):null!=window.console&&console.log("Unknown plugin:",I[q]):null!=window.console&&console.log("Blocked plugin:",I[q])}catch(g){}}"function"===typeof window.DriveClient&&"undefined"===typeof gapi&&("1"!=urlParams.embed&&"0"!=urlParams.gapi||"1"==urlParams.embed&&"1"==urlParams.gapi)&&isSvgBrowser&&
+isLocalStorage&&(null==document.documentMode||10<=document.documentMode)?mxscript("https://apis.google.com/js/api.js?onload=DrawGapiClientCallback",null,null,null,mxClient.IS_SVG):"undefined"===typeof window.gapi&&(window.DriveClient=null)}"0"!=urlParams.math&&Editor.initMath();if("1"==urlParams.configure){var H=window.opener||window.parent,c=function(g){if(g.source==H)try{var l=JSON.parse(g.data);null!=l&&"configure"==l.action&&(mxEvent.removeListener(window,"message",c),Editor.configure(l.config),
+mxSettings.load(),null!=l.config.darkColor&&document.body.style.setProperty("--dark-color",l.config.darkColor),l.colorSchemeMeta&&mxmeta("color-scheme","dark light"),m())}catch(p){null!=window.console&&console.log("Error in configure message: "+p,g.data)}};mxEvent.addListener(window,"message",c);H.postMessage(JSON.stringify({event:"configure"}),"*")}else{if(null==Editor.config){if(null!=window.DRAWIO_CONFIG)try{EditorUi.debug("Using global configuration",window.DRAWIO_CONFIG),Editor.configure(window.DRAWIO_CONFIG),
mxSettings.load()}catch(g){null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(g.stack)):console.error(g)}if(isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed){var e=localStorage.getItem(Editor.configurationKey);if(null!=e)try{e=JSON.parse(e),null!=e&&(EditorUi.debug("Using local configuration",e),Editor.configure(e),mxSettings.load())}catch(g){null==window.console||EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(g.stack)):console.error(g)}}}m()}}else document.body.innerHTML=
-'<div style="margin-top:10%;text-align:center;">Stand-alone mode not allowed for this domain.</div>'}catch(g){document.body.innerHTML="",J=document.createElement("pre"),mxUtils.write(J,g.stack),document.body.appendChild(J)}};mxUtils.extend(App,EditorUi);App.prototype.warnInterval=3E5;App.prototype.compactMode=!1;App.prototype.fullscreenMode=!1;App.initPluginCallback=function(){null==App.DrawPlugins&&(App.DrawPlugins=[],window.Draw={},window.Draw.loadPlugin=function(b){App.DrawPlugins.push(b)})};
+'<div style="margin-top:10%;text-align:center;">Stand-alone mode not allowed for this domain.</div>'}catch(g){document.body.innerHTML="",I=document.createElement("pre"),mxUtils.write(I,g.stack),document.body.appendChild(I)}};mxUtils.extend(App,EditorUi);App.prototype.warnInterval=3E5;App.prototype.compactMode=!1;App.prototype.fullscreenMode=!1;App.initPluginCallback=function(){null==App.DrawPlugins&&(App.DrawPlugins=[],window.Draw={},window.Draw.loadPlugin=function(b){App.DrawPlugins.push(b)})};
App.pluginsLoaded={};App.embedModePluginsCount=0;
-App.loadPlugins=function(b,f){EditorUi.debug("Loading plugins",b);for(var m=0;m<b.length;m++)if(null!=b[m]&&0<b[m].length)try{if(null!=App.pluginRegistry[b[m]]){var d=PLUGINS_BASE_PATH+App.pluginRegistry[b[m]];null==App.pluginsLoaded[d]&&(App.pluginsLoaded[d]=!0,App.embedModePluginsCount++,"undefined"===typeof window.drawDevUrl?f?mxinclude(d):mxscript(d):f?mxinclude(d):mxscript(drawDevUrl+d))}else null!=window.console&&console.log("Unknown plugin:",b[m])}catch(t){null!=window.console&&console.log("Error loading plugin:",
-b[m],t)}};App.prototype.initializeEmbedMode=function(){"1"==urlParams.embed&&("app.diagrams.net"==window.location.hostname&&this.showBanner("EmbedDeprecationFooter","app.diagrams.net will stop working for embed mode. Please use embed.diagrams.net."),0<App.embedModePluginsCount||this.initEmbedDone||(this.initEmbedDone=!0,EditorUi.prototype.initializeEmbedMode.apply(this,arguments)))};
+App.loadPlugins=function(b,f){EditorUi.debug("Loading plugins",b);for(var m=0;m<b.length;m++)if(null!=b[m]&&0<b[m].length)try{if(null!=App.pluginRegistry[b[m]]){var d=PLUGINS_BASE_PATH+App.pluginRegistry[b[m]];null==App.pluginsLoaded[d]&&(App.pluginsLoaded[d]=!0,App.embedModePluginsCount++,"undefined"===typeof window.drawDevUrl?f?mxinclude(d):mxscript(d):f?mxinclude(d):mxscript(drawDevUrl+d))}else null!=window.console&&console.log("Unknown plugin:",b[m])}catch(q){null!=window.console&&console.log("Error loading plugin:",
+b[m],q)}};App.prototype.initializeEmbedMode=function(){"1"==urlParams.embed&&("app.diagrams.net"==window.location.hostname&&this.showBanner("EmbedDeprecationFooter","app.diagrams.net will stop working for embed mode. Please use embed.diagrams.net."),0<App.embedModePluginsCount||this.initEmbedDone||(this.initEmbedDone=!0,EditorUi.prototype.initializeEmbedMode.apply(this,arguments)))};
App.prototype.initializeViewerMode=function(){var b=window.opener||window.parent;null!=b&&this.editor.graph.addListener(mxEvent.SIZE,mxUtils.bind(this,function(){b.postMessage(JSON.stringify(this.createLoadMessage("size")),"*")}))};
App.prototype.init=function(){if(!App.blockedAncestorFrames()){this.buttonContainer=this.createButtonContainer();EditorUi.prototype.init.apply(this,arguments);this.descriptorChangedListener=mxUtils.bind(this,this.descriptorChanged);this.addListener("currentThemeChanged",mxUtils.bind(this,function(){this.compactMode&&this.isDefaultTheme(Editor.currentTheme)&&this.setCompactMode(!0)}));try{this.gitHub=mxClient.IS_IE&&10!=document.documentMode&&!mxClient.IS_IE11&&!mxClient.IS_EDGE||"0"==urlParams.gh||
-"1"==urlParams.embed&&"1"!=urlParams.gh?null:new GitHubClient(this),null!=this.gitHub&&this.gitHub.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()}))}catch(v){null!=window.console&&console.log("GitHubClient disabled: "+v.message)}try{this.gitLab=mxClient.IS_IE&&10!=document.documentMode&&!mxClient.IS_IE11&&!mxClient.IS_EDGE||"0"==urlParams.gl||"1"==urlParams.embed&&"1"!=urlParams.gl?null:new GitLabClient(this),null!=this.gitLab&&this.gitLab.addListener("userChanged",
-mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()}))}catch(v){null!=window.console&&console.log("GitLabClient disabled: "+v.message)}if("1"!=urlParams.embed||"1"==urlParams.od){var b=mxUtils.bind(this,function(){if("undefined"!==typeof OneDrive)try{this.oneDrive=new OneDriveClient(this),this.oneDrive.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded","client",
-this.oneDrive))}catch(v){null!=window.console&&console.log("OneDriveClient disabled: "+v.message)}else null==window.DrawOneDriveClientCallback&&(window.DrawOneDriveClientCallback=b)});b()}if("1"!=urlParams.embed||"1"==urlParams.tr){var f=mxUtils.bind(this,function(){if("undefined"!==typeof window.Trello)try{this.trello=new TrelloClient(this),this.trello.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded",
-"client",this.trello))}catch(v){null!=window.console&&console.log("TrelloClient disabled: "+v.message)}else null==window.DrawTrelloClientCallback&&(window.DrawTrelloClientCallback=f)});f()}if("1"!=urlParams.embed||"1"==urlParams.gapi){var m=mxUtils.bind(this,function(){if("undefined"!==typeof gapi){var v=mxUtils.bind(this,function(){try{this.drive=new DriveClient(this),this.drive.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries();"1"!=urlParams.dev&&
-this.checkLicense()})),this.fireEvent(new mxEventObject("clientLoaded","client",this.drive))}catch(B){null!=window.console&&console.log("DriveClient disabled: "+B.message)}});null!=window.DrawGapiClientCallback?(gapi.load(("0"!=urlParams.picker?"picker,":"")+App.GOOGLE_APIS,v),window.DrawGapiClientCallback=null):v()}else null==window.DrawGapiClientCallback&&(window.DrawGapiClientCallback=m)});m()}if("1"!=urlParams.embed||"1"==urlParams.db){var d=mxUtils.bind(this,function(){if("function"===typeof Dropbox){window.DrawDropboxClientCallback=
-null;try{this.dropbox=new DropboxClient(this),this.dropbox.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded","client",this.dropbox))}catch(v){null!=window.console&&console.log("DropboxClient disabled: "+v.message)}}else null==window.DrawDropboxClientCallback&&(window.DrawDropboxClientCallback=d)});d()}if("1"!=urlParams.embed&&(this.setGraphEnabled(!1),"1"==urlParams.local?this.setMode(App.MODE_DEVICE):
-this.mode=App.mode,"serviceWorker"in navigator&&!this.editor.isChromelessView()&&(mxClient.IS_ANDROID||mxClient.IS_IOS)&&window.addEventListener("beforeinstallprompt",mxUtils.bind(this,function(v){this.showBanner("AddToHomeScreenFooter",mxResources.get("installApp"),function(){v.prompt()})})),!this.isOwnDomain()||this.editor.chromeless&&!this.editor.editable||this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){var v=this.getCurrentFile();v=null!=v?v.getMode():null;mxClient.IS_CHROMEAPP||
-mxClient.IS_ANDROID||mxClient.IS_IOS||EditorUi.isElectronApp||this.isOffline()||null!=urlParams.open||"1"==urlParams.extAuth||v!=App.MODE_DEVICE&&v!=App.MODE_BROWSER||this.showDownloadDesktopBanner()})),!(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"auto"!=DrawioFile.SYNC||"1"==urlParams.local||"1"==urlParams.stealth||this.isOffline()||!Editor.enableRealtimeCache||this.editor.chromeless&&!this.editor.editable))){var t=window.setTimeout(mxUtils.bind(this,function(){Editor.enableRealtimeCache=!1}),
-Editor.cacheTimeout);mxUtils.get(EditorUi.cacheUrl+"?alive",mxUtils.bind(this,function(v){Editor.enableRealtimeCache=200<=v.getStatus()&&299>=v.getStatus();window.clearTimeout(t)}),function(){Editor.enableRealtimeCache=!1;window.clearTimeout(t)})}this.updateHeader();if(null!=this.menubar){if("sketch"!=Editor.currentTheme&&("simple"!=Editor.currentTheme||"1"!=urlParams.embed)){var x=mxUtils.bind(this,function(){"1"!=urlParams.embed?this.menubar.container.appendChild(this.buttonContainer):this.toolbarContainer.appendChild(this.buttonContainer)});
+"1"==urlParams.embed&&"1"!=urlParams.gh?null:new GitHubClient(this),null!=this.gitHub&&this.gitHub.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()}))}catch(C){null!=window.console&&console.log("GitHubClient disabled: "+C.message)}try{this.gitLab=mxClient.IS_IE&&10!=document.documentMode&&!mxClient.IS_IE11&&!mxClient.IS_EDGE||"0"==urlParams.gl||"1"==urlParams.embed&&"1"!=urlParams.gl?null:new GitLabClient(this),null!=this.gitLab&&this.gitLab.addListener("userChanged",
+mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()}))}catch(C){null!=window.console&&console.log("GitLabClient disabled: "+C.message)}if("1"!=urlParams.embed||"1"==urlParams.od){var b=mxUtils.bind(this,function(){if("undefined"!==typeof OneDrive)try{this.oneDrive=new OneDriveClient(this),this.oneDrive.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded","client",
+this.oneDrive))}catch(C){null!=window.console&&console.log("OneDriveClient disabled: "+C.message)}else null==window.DrawOneDriveClientCallback&&(window.DrawOneDriveClientCallback=b)});b()}if("1"!=urlParams.embed||"1"==urlParams.tr){var f=mxUtils.bind(this,function(){if("undefined"!==typeof window.Trello)try{this.trello=new TrelloClient(this),this.trello.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded",
+"client",this.trello))}catch(C){null!=window.console&&console.log("TrelloClient disabled: "+C.message)}else null==window.DrawTrelloClientCallback&&(window.DrawTrelloClientCallback=f)});f()}if("1"!=urlParams.embed||"1"==urlParams.gapi){var m=mxUtils.bind(this,function(){if("undefined"!==typeof gapi){var C=mxUtils.bind(this,function(){try{this.drive=new DriveClient(this),this.drive.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries();"1"!=urlParams.dev&&
+this.checkLicense()})),this.fireEvent(new mxEventObject("clientLoaded","client",this.drive))}catch(y){null!=window.console&&console.log("DriveClient disabled: "+y.message)}});null!=window.DrawGapiClientCallback?(gapi.load(("0"!=urlParams.picker?"picker,":"")+App.GOOGLE_APIS,C),window.DrawGapiClientCallback=null):C()}else null==window.DrawGapiClientCallback&&(window.DrawGapiClientCallback=m)});m()}if("1"!=urlParams.embed||"1"==urlParams.db){var d=mxUtils.bind(this,function(){if("function"===typeof Dropbox){window.DrawDropboxClientCallback=
+null;try{this.dropbox=new DropboxClient(this),this.dropbox.addListener("userChanged",mxUtils.bind(this,function(){this.updateButtonContainer();this.restoreLibraries()})),this.fireEvent(new mxEventObject("clientLoaded","client",this.dropbox))}catch(C){null!=window.console&&console.log("DropboxClient disabled: "+C.message)}}else null==window.DrawDropboxClientCallback&&(window.DrawDropboxClientCallback=d)});d()}if("1"!=urlParams.embed&&(this.setGraphEnabled(!1),"1"==urlParams.local?this.setMode(App.MODE_DEVICE):
+this.mode=App.mode,"serviceWorker"in navigator&&!this.editor.isChromelessView()&&(mxClient.IS_ANDROID||mxClient.IS_IOS)&&window.addEventListener("beforeinstallprompt",mxUtils.bind(this,function(C){this.showBanner("AddToHomeScreenFooter",mxResources.get("installApp"),function(){C.prompt()})})),!this.isOwnDomain()||this.editor.chromeless&&!this.editor.editable||this.editor.addListener("fileLoaded",mxUtils.bind(this,function(){var C=this.getCurrentFile();C=null!=C?C.getMode():null;mxClient.IS_CHROMEAPP||
+mxClient.IS_ANDROID||mxClient.IS_IOS||EditorUi.isElectronApp||this.isOffline()||null!=urlParams.open||"1"==urlParams.extAuth||C!=App.MODE_DEVICE&&C!=App.MODE_BROWSER||this.showDownloadDesktopBanner()})),!(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"auto"!=DrawioFile.SYNC||"1"==urlParams.local||"1"==urlParams.stealth||this.isOffline()||!Editor.enableRealtimeCache||this.editor.chromeless&&!this.editor.editable))){var q=window.setTimeout(mxUtils.bind(this,function(){Editor.enableRealtimeCache=!1}),
+Editor.cacheTimeout);mxUtils.get(EditorUi.cacheUrl+"?alive",mxUtils.bind(this,function(C){Editor.enableRealtimeCache=200<=C.getStatus()&&299>=C.getStatus();window.clearTimeout(q)}),function(){Editor.enableRealtimeCache=!1;window.clearTimeout(q)})}this.updateHeader();if(null!=this.menubar){if("sketch"!=Editor.currentTheme&&("simple"!=Editor.currentTheme||"1"!=urlParams.embed)){var x=mxUtils.bind(this,function(){"1"!=urlParams.embed?this.menubar.container.appendChild(this.buttonContainer):this.toolbarContainer.appendChild(this.buttonContainer)});
this.addListener("languageChanged",x);this.addListener("currentThemeChanged",x);x()}("kennedy"==Editor.currentTheme&&"1"==urlParams.embed||"atlas"==Editor.currentTheme&&"1"!=urlParams.embed)&&this.setCompactMode(!0);if("atlas"==Editor.currentTheme||"1"==urlParams.atlas)this.icon=document.createElement("img"),this.icon.setAttribute("src",IMAGE_PATH+"/logo-flat-small.png"),this.icon.setAttribute("title",mxResources.get("draw.io")),this.icon.className="geSmallAppIcon","1"!=urlParams.embed&&(this.icon.style.cursor=
-"pointer",mxEvent.addListener(this.icon,"click",mxUtils.bind(this,function(v){this.appIconClicked(v)}))),this.menubar.container.insertBefore(this.icon,this.menubar.container.firstChild)}this.editor.graph.isViewer()&&this.initializeViewerMode()}};
+"pointer",mxEvent.addListener(this.icon,"click",mxUtils.bind(this,function(C){this.appIconClicked(C)}))),this.menubar.container.insertBefore(this.icon,this.menubar.container.firstChild)}this.editor.graph.isViewer()&&this.initializeViewerMode()}};
App.blockedAncestorFrames=function(){try{if(window.location.ancestorOrigins&&window.location.hostname&&window.location.ancestorOrigins.length&&0<window.location.ancestorOrigins.length){var b=window.location.hostname;b&&1<b.length&&"/"==b.charAt(b.length-1)&&b.substring(0,b.length-1);b="";for(var f=0;f<window.location.ancestorOrigins.length;f++)if(b+=" -> "+window.location.ancestorOrigins[f],b.endsWith("dan6v7pm1f1a1.cloudfront.net")||b.endsWith("confluence-cloud-excalidraw-ll3likebca-uc.a.run.app"))return!0}}catch(m){}return!1};
App.prototype.scheduleSanityCheck=function(){mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null!=this.sanityCheckThread||(this.sanityCheckThread=window.setTimeout(mxUtils.bind(this,function(){this.sanityCheckThread=null;this.sanityCheck()}),this.warnInterval))};App.prototype.stopSanityCheck=function(){null!=this.sanityCheckThread&&(window.clearTimeout(this.sanityCheckThread),this.sanityCheckThread=null)};
App.prototype.sanityCheck=function(){var b=this.getCurrentFile();if(null!=b&&b.isModified()&&b.isAutosave()&&b.isOverdue()){b.getHash();b.savingFile&&null!=b.savingFileTime&&(Date.now(),b.savingFileTime.getTime());null!=b.ageStart&&(Date.now(),b.ageStart.getTime());b.isAutosave();null!=b.opened&&(Date.now(),b.opened.getTime());null!=b.lastSaved&&(Date.now(),b.lastSaved.getTime());null!=b.lastChanged&&(Date.now(),b.lastChanged.getTime());Date.now();App.startTime.getTime();var f=null!=b.sync?"client_"+
@@ -13700,30 +13744,30 @@ App.prototype.showRatingBanner=function(){if(!(this.bannerShowing||this.hideBann
"transform","translate(-50%,120%)");mxUtils.setPrefixedStyle(b.style,"transition","all 1s ease");b.className="geBtn gePrimaryBtn";var f=document.createElement("img");f.setAttribute("src",Dialog.prototype.closeImage);f.setAttribute("title",mxResources.get("close"));f.setAttribute("border","0");f.style.cssText="position:absolute;right:10px;top:12px;filter:invert(1);padding:6px;margin:-6px;cursor:default;";b.appendChild(f);mxUtils.write(b,"Please rate us");document.body.appendChild(b);var m=document.createElement("img");
m.setAttribute("border","0");m.setAttribute("align","absmiddle");m.setAttribute("title","1 star");m.setAttribute("style","margin-top:-6px;cursor:pointer;margin-left:8px;");m.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAQRdEVYdFhNTDpjb20uYWRvYmUueG1wADw/eHBhY2tldCBiZWdpbj0iICAgIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDQuMS1jMDM0IDQ2LjI3Mjk3NiwgU2F0IEphbiAyNyAyMDA3IDIyOjExOjQxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4YXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8eGFwOkNyZWF0b3JUb29sPkFkb2JlIEZpcmV3b3JrcyBDUzM8L3hhcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhhcDpDcmVhdGVEYXRlPjIwMDgtMDItMTdUMDI6MzY6NDVaPC94YXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhhcDpNb2RpZnlEYXRlPjIwMDktMDMtMTdUMTQ6MTI6MDJaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIIImu8AAAAAVdEVYdENyZWF0aW9uIFRpbWUAMi8xNy8wOCCcqlgAAAHuSURBVDiNlZJBi1JRGIbfk+fc0ZuMXorJe4XujWoMdREaA23HICj6AQeLINr0C4I27ab27VqOI9+q/sH8gMDceG1RkIwgClEXFMbRc5zTZgZURmG+5fu9PN/7Hg6wZohoh4h21nn4uqXW+q0xZgzg+SrPlTXX73uet+26bp6ICpcGaK1fua57M5vN3tZav7gUgIiSqVTqcRAEm0EQbCaTyQoRXb3Iy4hoG8CT6XSaY4xtMMaSQohMPp8v+r7vAEC3243CMGwqpfoApsaYE8uyfgM45ABOjDEvXdfNlMvlzFINAIDneY7neZVzvdlsDgaDQYtzfsjOIjtKqU+e5+0Wi0V3VV8ACMOw3+/3v3HOX0sp/7K53te11h/S6fRuoVAIhBAL76OUOm2320dRFH0VQuxJKf8BAFu+UKvVvpRKpWe2bYt5fTweq0ajQUKIN1LK43N94SMR0Y1YLLYlhBBKqQUw51wkEol7WmuzoC8FuJtIJLaUUoii6Ljb7f4yxpz6vp9zHMe2bfvacDi8BeDHKkBuNps5rVbr52QyaVuW9ZExttHpdN73ej0/Ho+nADxYCdBaV0aj0RGAz5ZlHUgpx2erR/V6/d1wOHwK4CGA/QsBnPN9AN+llH+WkqFare4R0QGAO/M6M8Ysey81/wGqa8MlVvHPNAAAAABJRU5ErkJggg==");
b.appendChild(m);var d=document.createElement("img");d.setAttribute("border","0");d.setAttribute("align","absmiddle");d.setAttribute("title","2 star");d.setAttribute("style","margin-top:-6px;margin-left:3px;cursor:pointer;");d.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAQRdEVYdFhNTDpjb20uYWRvYmUueG1wADw/eHBhY2tldCBiZWdpbj0iICAgIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDQuMS1jMDM0IDQ2LjI3Mjk3NiwgU2F0IEphbiAyNyAyMDA3IDIyOjExOjQxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4YXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8eGFwOkNyZWF0b3JUb29sPkFkb2JlIEZpcmV3b3JrcyBDUzM8L3hhcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhhcDpDcmVhdGVEYXRlPjIwMDgtMDItMTdUMDI6MzY6NDVaPC94YXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhhcDpNb2RpZnlEYXRlPjIwMDktMDMtMTdUMTQ6MTI6MDJaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIIImu8AAAAAVdEVYdENyZWF0aW9uIFRpbWUAMi8xNy8wOCCcqlgAAAHuSURBVDiNlZJBi1JRGIbfk+fc0ZuMXorJe4XujWoMdREaA23HICj6AQeLINr0C4I27ab27VqOI9+q/sH8gMDceG1RkIwgClEXFMbRc5zTZgZURmG+5fu9PN/7Hg6wZohoh4h21nn4uqXW+q0xZgzg+SrPlTXX73uet+26bp6ICpcGaK1fua57M5vN3tZav7gUgIiSqVTqcRAEm0EQbCaTyQoRXb3Iy4hoG8CT6XSaY4xtMMaSQohMPp8v+r7vAEC3243CMGwqpfoApsaYE8uyfgM45ABOjDEvXdfNlMvlzFINAIDneY7neZVzvdlsDgaDQYtzfsjOIjtKqU+e5+0Wi0V3VV8ACMOw3+/3v3HOX0sp/7K53te11h/S6fRuoVAIhBAL76OUOm2320dRFH0VQuxJKf8BAFu+UKvVvpRKpWe2bYt5fTweq0ajQUKIN1LK43N94SMR0Y1YLLYlhBBKqQUw51wkEol7WmuzoC8FuJtIJLaUUoii6Ljb7f4yxpz6vp9zHMe2bfvacDi8BeDHKkBuNps5rVbr52QyaVuW9ZExttHpdN73ej0/Ho+nADxYCdBaV0aj0RGAz5ZlHUgpx2erR/V6/d1wOHwK4CGA/QsBnPN9AN+llH+WkqFare4R0QGAO/M6M8Ysey81/wGqa8MlVvHPNAAAAABJRU5ErkJggg==");
-b.appendChild(d);var t=document.createElement("img");t.setAttribute("border","0");t.setAttribute("align","absmiddle");t.setAttribute("title","3 star");t.setAttribute("style","margin-top:-6px;margin-left:3px;cursor:pointer;");t.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29md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AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIIImu8AAAAAVdEVYdENyZWF0aW9uIFRpbWUAMi8xNy8wOCCcqlgAAAHuSURBVDiNlZJBi1JRGIbfk+fc0ZuMXorJe4XujWoMdREaA23HICj6AQeLINr0C4I27ab27VqOI9+q/sH8gMDceG1RkIwgClEXFMbRc5zTZgZURmG+5fu9PN/7Hg6wZohoh4h21nn4uqXW+q0xZgzg+SrPlTXX73uet+26bp6ICpcGaK1fua57M5vN3tZav7gUgIiSqVTqcRAEm0EQbCaTyQoRXb3Iy4hoG8CT6XSaY4xtMMaSQohMPp8v+r7vAEC3243CMGwqpfoApsaYE8uyfgM45ABOjDEvXdfNlMvlzFINAIDneY7neZVzvdlsDgaDQYtzfsjOIjtKqU+e5+0Wi0V3VV8ACMOw3+/3v3HOX0sp/7K53te11h/S6fRuoVAIhBAL76OUOm2320dRFH0VQuxJKf8BAFu+UKvVvpRKpWe2bYt5fTweq0ajQUKIN1LK43N94SMR0Y1YLLYlhBBKqQUw51wkEol7WmuzoC8FuJtIJLaUUoii6Ljb7f4yxpz6vp9zHMe2bfvacDi8BeDHKkBuNps5rVbr52QyaVuW9ZExttHpdN73ej0/Ho+nADxYCdBaV0aj0RGAz5ZlHUgpx2erR/V6/d1wOHwK4CGA/QsBnPN9AN+llH+WkqFare4R0QGAO/M6M8Ysey81/wGqa8MlVvHPNAAAAABJRU5ErkJggg==");
-b.appendChild(t);var x=document.createElement("img");x.setAttribute("border","0");x.setAttribute("align","absmiddle");x.setAttribute("title","4 star");x.setAttribute("style","margin-top:-6px;margin-left:3px;cursor:pointer;");x.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAQRdEVYdFhNTDpjb20uYWRvYmUueG1wADw/eHBhY2tldCBiZWdpbj0iICAgIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDQuMS1jMDM0IDQ2LjI3Mjk3NiwgU2F0IEphbiAyNyAyMDA3IDIyOjExOjQxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4YXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8eGFwOkNyZWF0b3JUb29sPkFkb2JlIEZpcmV3b3JrcyBDUzM8L3hhcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhhcDpDcmVhdGVEYXRlPjIwMDgtMDItMTdUMDI6MzY6NDVaPC94YXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhhcDpNb2RpZnlEYXRlPjIwMDktMDMtMTdUMTQ6MTI6MDJaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIIImu8AAAAAVdEVYdENyZWF0aW9uIFRpbWUAMi8xNy8wOCCcqlgAAAHuSURBVDiNlZJBi1JRGIbfk+fc0ZuMXorJe4XujWoMdREaA23HICj6AQeLINr0C4I27ab27VqOI9+q/sH8gMDceG1RkIwgClEXFMbRc5zTZgZURmG+5fu9PN/7Hg6wZohoh4h21nn4uqXW+q0xZgzg+SrPlTXX73uet+26bp6ICpcGaK1fua57M5vN3tZav7gUgIiSqVTqcRAEm0EQbCaTyQoRXb3Iy4hoG8CT6XSaY4xtMMaSQohMPp8v+r7vAEC3243CMGwqpfoApsaYE8uyfgM45ABOjDEvXdfNlMvlzFINAIDneY7neZVzvdlsDgaDQYtzfsjOIjtKqU+e5+0Wi0V3VV8ACMOw3+/3v3HOX0sp/7K53te11h/S6fRuoVAIhBAL76OUOm2320dRFH0VQuxJKf8BAFu+UKvVvpRKpWe2bYt5fTweq0ajQUKIN1LK43N94SMR0Y1YLLYlhBBKqQUw51wkEol7WmuzoC8FuJtIJLaUUoii6Ljb7f4yxpz6vp9zHMe2bfvacDi8BeDHKkBuNps5rVbr52QyaVuW9ZExttHpdN73ej0/Ho+nADxYCdBaV0aj0RGAz5ZlHUgpx2erR/V6/d1wOHwK4CGA/QsBnPN9AN+llH+WkqFare4R0QGAO/M6M8Ysey81/wGqa8MlVvHPNAAAAABJRU5ErkJggg==");
-b.appendChild(x);this.bannerShowing=!0;var v=mxUtils.bind(this,function(){null!=b.parentNode&&(b.parentNode.removeChild(b),this.bannerShowing=!1,this.hideBannerratingFooter=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings.closeratingFooter=Date.now(),mxSettings.save()))});mxEvent.addListener(f,"click",mxUtils.bind(this,function(B){mxEvent.consume(B);v()}));mxEvent.addListener(m,"click",mxUtils.bind(this,function(B){mxEvent.consume(B);v()}));mxEvent.addListener(d,"click",mxUtils.bind(this,
-function(B){mxEvent.consume(B);v()}));mxEvent.addListener(t,"click",mxUtils.bind(this,function(B){mxEvent.consume(B);v()}));mxEvent.addListener(x,"click",mxUtils.bind(this,function(B){mxEvent.consume(B);window.open("https://marketplace.atlassian.com/apps/1210933/draw-io-diagrams-for-confluence?hosting=datacenter&tab=reviews");v()}));f=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(b.style,"transform","translate(-50%,120%)");window.setTimeout(mxUtils.bind(this,function(){v()}),1E3)});window.setTimeout(mxUtils.bind(this,
+b.appendChild(d);var q=document.createElement("img");q.setAttribute("border","0");q.setAttribute("align","absmiddle");q.setAttribute("title","3 star");q.setAttribute("style","margin-top:-6px;margin-left:3px;cursor:pointer;");q.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAAAQRdEVYdFhNTDpjb20uYWRvYmUueG1wADw/eHBhY2tldCBiZWdpbj0iICAgIiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+Cjx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDQuMS1jMDM0IDQ2LjI3Mjk3NiwgU2F0IEphbiAyNyAyMDA3IDIyOjExOjQxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4YXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iPgogICAgICAgICA8eGFwOkNyZWF0b3JUb29sPkFkb2JlIEZpcmV3b3JrcyBDUzM8L3hhcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhhcDpDcmVhdGVEYXRlPjIwMDgtMDItMTdUMDI6MzY6NDVaPC94YXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhhcDpNb2RpZnlEYXRlPjIwMDktMDMtMTdUMTQ6MTI6MDJaPC94YXA6TW9kaWZ5RGF0ZT4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmRjPSJodHRwOi8vcHVybC5vcmcvZGMvZWxlbWVudHMvMS4xLyI+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIIImu8AAAAAVdEVYdENyZWF0aW9uIFRpbWUAMi8xNy8wOCCcqlgAAAHuSURBVDiNlZJBi1JRGIbfk+fc0ZuMXorJe4XujWoMdREaA23HICj6AQeLINr0C4I27ab27VqOI9+q/sH8gMDceG1RkIwgClEXFMbRc5zTZgZURmG+5fu9PN/7Hg6wZohoh4h21nn4uqXW+q0xZgzg+SrPlTXX73uet+26bp6ICpcGaK1fua57M5vN3tZav7gUgIiSqVTqcRAEm0EQbCaTyQoRXb3Iy4hoG8CT6XSaY4xtMMaSQohMPp8v+r7vAEC3243CMGwqpfoApsaYE8uyfgM45ABOjDEvXdfNlMvlzFINAIDneY7neZVzvdlsDgaDQYtzfsjOIjtKqU+e5+0Wi0V3VV8ACMOw3+/3v3HOX0sp/7K53te11h/S6fRuoVAIhBAL76OUOm2320dRFH0VQuxJKf8BAFu+UKvVvpRKpWe2bYt5fTweq0ajQUKIN1LK43N94SMR0Y1YLLYlhBBKqQUw51wkEol7WmuzoC8FuJtIJLaUUoii6Ljb7f4yxpz6vp9zHMe2bfvacDi8BeDHKkBuNps5rVbr52QyaVuW9ZExttHpdN73ej0/Ho+nADxYCdBaV0aj0RGAz5ZlHUgpx2erR/V6/d1wOHwK4CGA/QsBnPN9AN+llH+WkqFare4R0QGAO/M6M8Ysey81/wGqa8MlVvHPNAAAAABJRU5ErkJggg==");
+b.appendChild(q);var x=document.createElement("img");x.setAttribute("border","0");x.setAttribute("align","absmiddle");x.setAttribute("title","4 star");x.setAttribute("style","margin-top:-6px;margin-left:3px;cursor:pointer;");x.setAttribute("src","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTM5jWRgMAA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AgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIIImu8AAAAAVdEVYdENyZWF0aW9uIFRpbWUAMi8xNy8wOCCcqlgAAAHuSURBVDiNlZJBi1JRGIbfk+fc0ZuMXorJe4XujWoMdREaA23HICj6AQeLINr0C4I27ab27VqOI9+q/sH8gMDceG1RkIwgClEXFMbRc5zTZgZURmG+5fu9PN/7Hg6wZohoh4h21nn4uqXW+q0xZgzg+SrPlTXX73uet+26bp6ICpcGaK1fua57M5vN3tZav7gUgIiSqVTqcRAEm0EQbCaTyQoRXb3Iy4hoG8CT6XSaY4xtMMaSQohMPp8v+r7vAEC3243CMGwqpfoApsaYE8uyfgM45ABOjDEvXdfNlMvlzFINAIDneY7neZVzvdlsDgaDQYtzfsjOIjtKqU+e5+0Wi0V3VV8ACMOw3+/3v3HOX0sp/7K53te11h/S6fRuoVAIhBAL76OUOm2320dRFH0VQuxJKf8BAFu+UKvVvpRKpWe2bYt5fTweq0ajQUKIN1LK43N94SMR0Y1YLLYlhBBKqQUw51wkEol7WmuzoC8FuJtIJLaUUoii6Ljb7f4yxpz6vp9zHMe2bfvacDi8BeDHKkBuNps5rVbr52QyaVuW9ZExttHpdN73ej0/Ho+nADxYCdBaV0aj0RGAz5ZlHUgpx2erR/V6/d1wOHwK4CGA/QsBnPN9AN+llH+WkqFare4R0QGAO/M6M8Ysey81/wGqa8MlVvHPNAAAAABJRU5ErkJggg==");
+b.appendChild(x);this.bannerShowing=!0;var C=mxUtils.bind(this,function(){null!=b.parentNode&&(b.parentNode.removeChild(b),this.bannerShowing=!1,this.hideBannerratingFooter=!0,isLocalStorage&&null!=mxSettings.settings&&(mxSettings.settings.closeratingFooter=Date.now(),mxSettings.save()))});mxEvent.addListener(f,"click",mxUtils.bind(this,function(y){mxEvent.consume(y);C()}));mxEvent.addListener(m,"click",mxUtils.bind(this,function(y){mxEvent.consume(y);C()}));mxEvent.addListener(d,"click",mxUtils.bind(this,
+function(y){mxEvent.consume(y);C()}));mxEvent.addListener(q,"click",mxUtils.bind(this,function(y){mxEvent.consume(y);C()}));mxEvent.addListener(x,"click",mxUtils.bind(this,function(y){mxEvent.consume(y);window.open("https://marketplace.atlassian.com/apps/1210933/draw-io-diagrams-for-confluence?hosting=datacenter&tab=reviews");C()}));f=mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(b.style,"transform","translate(-50%,120%)");window.setTimeout(mxUtils.bind(this,function(){C()}),1E3)});window.setTimeout(mxUtils.bind(this,
function(){mxUtils.setPrefixedStyle(b.style,"transform","translate(-50%,0%)")}),500);window.setTimeout(f,6E4)}};
-App.prototype.checkLicense=function(){var b=this.drive.getUser(),f=null!=b?b.email:null;if(!this.isOffline()&&!this.editor.chromeless&&null!=f&&null!=b.id){var m=f.lastIndexOf("@"),d=0<=m?f.substring(m+1):"";b=Editor.crc32(b.id);mxUtils.post("/license","domain="+encodeURIComponent(d)+"&id="+encodeURIComponent(b)+"&ts="+(new Date).getTime(),mxUtils.bind(this,function(t){try{if(200<=t.getStatus()&&299>=t.getStatus()){var x=t.getText();if(0<x.length){var v=JSON.parse(x);null!=v&&this.handleLicense(v,
-d)}}}catch(B){}}))}};App.prototype.handleLicense=function(b,f){};App.prototype.getEditBlankXml=function(){var b=this.getCurrentFile();return null!=b&&this.editor.isChromelessView()&&this.editor.graph.isLightboxView()?b.getData():this.getFileData(!0)};App.prototype.updateActionStates=function(){EditorUi.prototype.updateActionStates.apply(this,arguments);this.actions.get("revisionHistory").setEnabled(this.isRevisionHistoryEnabled())};
-App.prototype.addRecent=function(b,f,m){if(isLocalStorage&&null!=localStorage){f=null!=f?f:"";var d=this.getRecent(f);if(null==d)d=[];else for(var t=0;t<d.length;t++)d[t].mode==b.mode&&d[t].id==b.id&&d.splice(t,1);null!=d&&(m=null!=m?m:10,d.unshift(b),d=d.slice(0,m),localStorage.setItem(".recent"+f,JSON.stringify(d)))}};App.prototype.getRecent=function(b){if(isLocalStorage&&null!=localStorage){try{var f=localStorage.getItem(".recent"+(null!=b?b:""));if(null!=f)return JSON.parse(f)}catch(m){}return null}};
+App.prototype.checkLicense=function(){var b=this.drive.getUser(),f=null!=b?b.email:null;if(!this.isOffline()&&!this.editor.chromeless&&null!=f&&null!=b.id){var m=f.lastIndexOf("@"),d=0<=m?f.substring(m+1):"";b=Editor.crc32(b.id);mxUtils.post("/license","domain="+encodeURIComponent(d)+"&id="+encodeURIComponent(b)+"&ts="+(new Date).getTime(),mxUtils.bind(this,function(q){try{if(200<=q.getStatus()&&299>=q.getStatus()){var x=q.getText();if(0<x.length){var C=JSON.parse(x);null!=C&&this.handleLicense(C,
+d)}}}catch(y){}}))}};App.prototype.handleLicense=function(b,f){};App.prototype.getEditBlankXml=function(){var b=this.getCurrentFile();return null!=b&&this.editor.isChromelessView()&&this.editor.graph.isLightboxView()?b.getData():this.getFileData(!0)};App.prototype.updateActionStates=function(){EditorUi.prototype.updateActionStates.apply(this,arguments);this.actions.get("revisionHistory").setEnabled(this.isRevisionHistoryEnabled())};
+App.prototype.addRecent=function(b,f,m){if(isLocalStorage&&null!=localStorage){f=null!=f?f:"";var d=this.getRecent(f);if(null==d)d=[];else for(var q=0;q<d.length;q++)d[q].mode==b.mode&&d[q].id==b.id&&d.splice(q,1);null!=d&&(m=null!=m?m:10,d.unshift(b),d=d.slice(0,m),localStorage.setItem(".recent"+f,JSON.stringify(d)))}};App.prototype.getRecent=function(b){if(isLocalStorage&&null!=localStorage){try{var f=localStorage.getItem(".recent"+(null!=b?b:""));if(null!=f)return JSON.parse(f)}catch(m){}return null}};
App.prototype.resetRecent=function(b){if(isLocalStorage&&null!=localStorage)try{localStorage.removeItem(".recent"+(null!=b?b:""))}catch(f){}};
App.prototype.onBeforeUnload=function(){if("1"==urlParams.embed&&this.editor.modified)return mxResources.get("allChangesLost");this.unloading=!0;var b=this.getCurrentFile();if(null!=b)if(b.constructor!=LocalFile||""!=b.getHash()||b.isModified()||"1"==urlParams.nowarn||this.isDiagramEmpty()||null!=urlParams.url||this.editor.isChromelessView()||null!=b.fileHandle){if(b.isModified())return this.logIfModified(b),mxResources.get("allChangesLost");b.close(!0)}else return mxResources.get("ensureDataSaved")};
App.prototype.updateDocumentTitle=function(){var b=this.editor.appName,f=this.getCurrentFile();null==f||!this.editor.graph.isLightboxView()&&"simple"!=Editor.currentTheme||null==this.pages||null==this.currentPage?this.isOfflineApp()&&(b+=" app"):b=this.getShortPageName(this.currentPage);null!=f&&(b=(null!=f.getTitle()?f.getTitle():this.defaultFilename)+" - "+b);document.title!=b&&(document.title=b)};
-App.prototype.getThumbnail=function(b,f,m){m=null!=m?m:0;var d=!1;try{var t=!0,x=window.setTimeout(mxUtils.bind(this,function(){t=!1;f(null)}),this.timeout),v=mxUtils.bind(this,function(O){window.clearTimeout(x);t&&f(O)});null==this.thumbImageCache&&(this.thumbImageCache={});var B=this.editor.graph,J=B.backgroundImage;if(null!=this.pages&&this.currentPage!=this.pages[0]){var N=B.getGlobalVariable;B=this.createTemporaryGraph(B.getStylesheet());B.setBackgroundImage=this.editor.graph.setBackgroundImage;
-var I=this.pages[0];this.currentPage==I?B.setBackgroundImage(J):null!=I.viewState&&null!=I.viewState&&(J=I.viewState.backgroundImage,B.setBackgroundImage(J));B.getGlobalVariable=function(O){return"page"==O?I.getName():"pagenumber"==O?1:N.apply(this,arguments)};B.getGlobalVariable=N;document.body.appendChild(B.container);B.model.setRoot(I.root)}if(mxClient.IS_CHROMEAPP||this.useCanvasForExport)this.editor.exportToCanvas(mxUtils.bind(this,function(O){try{B!=this.editor.graph&&null!=B.container.parentNode&&
-B.container.parentNode.removeChild(B.container)}catch(p){O=null}v(O)}),b,this.thumbImageCache,"#ffffff",function(){v()},null,null,null,null,null,null,B,m,null,null,null,"diagram",null),d=!0;else if(this.canvasSupported&&null!=this.getCurrentFile()){var c=document.createElement("canvas"),e=B.getGraphBounds(),g=B.view.translate,l=B.view.scale;null!=J&&(e=mxRectangle.fromRectangle(e),e.add(new mxRectangle((g.x+J.x)*l,(g.y+J.y)*l,J.width*l,J.height*l)));var n=b/e.width;n=Math.min(1,Math.min(3*b/(4*e.height),
-n));var u=Math.floor(e.x),z=Math.floor(e.y);c.setAttribute("width",Math.ceil(n*(e.width+4)));c.setAttribute("height",Math.ceil(n*(e.height+4)));var D=c.getContext("2d");D.scale(n,n);D.translate(-u,-z);var C=B.background;if(null==C||""==C||C==mxConstants.NONE)C="#ffffff";D.save();D.fillStyle=C;D.fillRect(u,z,Math.ceil(e.width+4),Math.ceil(e.height+4));D.restore();if(null!=J){var A=new Image;A.src=J.src;D.drawImage(A,J.x*n,J.y*n,J.width*n,J.height*n)}var Q=new mxJsCanvas(c),S=new mxAsyncCanvas(this.thumbImageCache);
-Q.images=this.thumbImageCache.images;var U=new mxImageExport;U.drawShape=function(O,p){O.shape instanceof mxShape&&O.shape.checkBounds()&&(p.save(),p.translate(.5,.5),O.shape.paint(p),p.translate(-.5,-.5),p.restore())};U.drawText=function(O,p){};U.drawState(B.getView().getState(B.model.root),S);S.finish(mxUtils.bind(this,function(){try{U.drawState(B.getView().getState(B.model.root),Q),B!=this.editor.graph&&null!=B.container.parentNode&&B.container.parentNode.removeChild(B.container)}catch(O){c=null}v(c)}));
-d=!0}}catch(O){d=!1,null!=B&&B!=this.editor.graph&&null!=B.container.parentNode&&B.container.parentNode.removeChild(B.container)}d||window.clearTimeout(x);return d};
+App.prototype.getThumbnail=function(b,f,m){m=null!=m?m:0;var d=!1;try{var q=!0,x=window.setTimeout(mxUtils.bind(this,function(){q=!1;f(null)}),this.timeout),C=mxUtils.bind(this,function(L){window.clearTimeout(x);q&&f(L)});null==this.thumbImageCache&&(this.thumbImageCache={});var y=this.editor.graph,I=y.backgroundImage;if(null!=this.pages&&this.currentPage!=this.pages[0]){var M=y.getGlobalVariable;y=this.createTemporaryGraph(y.getStylesheet());y.setBackgroundImage=this.editor.graph.setBackgroundImage;
+var H=this.pages[0];this.currentPage==H?y.setBackgroundImage(I):null!=H.viewState&&null!=H.viewState&&(I=H.viewState.backgroundImage,y.setBackgroundImage(I));y.getGlobalVariable=function(L){return"page"==L?H.getName():"pagenumber"==L?1:M.apply(this,arguments)};y.getGlobalVariable=M;document.body.appendChild(y.container);y.model.setRoot(H.root)}if(mxClient.IS_CHROMEAPP||this.useCanvasForExport)this.editor.exportToCanvas(mxUtils.bind(this,function(L){try{y!=this.editor.graph&&null!=y.container.parentNode&&
+y.container.parentNode.removeChild(y.container)}catch(U){L=null}C(L)}),b,this.thumbImageCache,"#ffffff",function(){C()},null,null,null,null,null,null,y,m,null,null,null,"diagram",null),d=!0;else if(this.canvasSupported&&null!=this.getCurrentFile()){var c=document.createElement("canvas"),e=y.getGraphBounds(),g=y.view.translate,l=y.view.scale;null!=I&&(e=mxRectangle.fromRectangle(e),e.add(new mxRectangle((g.x+I.x)*l,(g.y+I.y)*l,I.width*l,I.height*l)));var p=b/e.width;p=Math.min(1,Math.min(3*b/(4*e.height),
+p));var u=Math.floor(e.x),z=Math.floor(e.y);c.setAttribute("width",Math.ceil(p*(e.width+4)));c.setAttribute("height",Math.ceil(p*(e.height+4)));var E=c.getContext("2d");E.scale(p,p);E.translate(-u,-z);var D=y.background;if(null==D||""==D||D==mxConstants.NONE)D="#ffffff";E.save();E.fillStyle=D;E.fillRect(u,z,Math.ceil(e.width+4),Math.ceil(e.height+4));E.restore();if(null!=I){var A=new Image;A.src=I.src;E.drawImage(A,I.x*p,I.y*p,I.width*p,I.height*p)}var P=new mxJsCanvas(c),R=new mxAsyncCanvas(this.thumbImageCache);
+P.images=this.thumbImageCache.images;var T=new mxImageExport;T.drawShape=function(L,U){L.shape instanceof mxShape&&L.shape.checkBounds()&&(U.save(),U.translate(.5,.5),L.shape.paint(U),U.translate(-.5,-.5),U.restore())};T.drawText=function(L,U){};T.drawState(y.getView().getState(y.model.root),R);R.finish(mxUtils.bind(this,function(){try{T.drawState(y.getView().getState(y.model.root),P),y!=this.editor.graph&&null!=y.container.parentNode&&y.container.parentNode.removeChild(y.container)}catch(L){c=null}C(c)}));
+d=!0}}catch(L){d=!1,null!=y&&y!=this.editor.graph&&null!=y.container.parentNode&&y.container.parentNode.removeChild(y.container)}d||window.clearTimeout(x);return d};
(function(){var b=EditorUi.prototype.setMode;App.prototype.setMode=function(f,m){b.apply(this,arguments);null!=this.mode&&(Editor.useLocalStorage=this.mode==App.MODE_BROWSER);if(null!=this.appIcon){var d=this.getCurrentFile();f=null!=d?d.getMode():f;null==this.updateTitleListener&&(this.updateTitleListener=mxUtils.bind(this,function(){f==App.MODE_GOOGLE?this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("googleDrive")])):f==App.MODE_DROPBOX?this.appIcon.setAttribute("title",
-mxResources.get("openIt",[mxResources.get("dropbox")])):f==App.MODE_ONEDRIVE?this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("oneDrive")])):this.appIcon.removeAttribute("title")}),this.addListener("languageChanged",mxUtils.bind(this,function(){this.updateTitleListener()})));this.updateTitleListener()}if(m)try{if(isLocalStorage)localStorage.setItem(".mode",f);else if("undefined"!=typeof Storage){var t=new Date;t.setYear(t.getFullYear()+1);document.cookie="MODE="+f+"; expires="+
-t.toUTCString()}}catch(x){}}})();
+mxResources.get("openIt",[mxResources.get("dropbox")])):f==App.MODE_ONEDRIVE?this.appIcon.setAttribute("title",mxResources.get("openIt",[mxResources.get("oneDrive")])):this.appIcon.removeAttribute("title")}),this.addListener("languageChanged",mxUtils.bind(this,function(){this.updateTitleListener()})));this.updateTitleListener()}if(m)try{if(isLocalStorage)localStorage.setItem(".mode",f);else if("undefined"!=typeof Storage){var q=new Date;q.setYear(q.getFullYear()+1);document.cookie="MODE="+f+"; expires="+
+q.toUTCString()}}catch(x){}}})();
App.prototype.appIconClicked=function(b){var f=this.getCurrentFile(),m=null!=f?f.getMode():null;f=null!=f?mxEvent.isAltDown(b)?f.getFolderUrl():f.getFileUrl():null;null!=f?this.openLink(f):m==App.MODE_GOOGLE?this.openLink("https://drive.google.com/?authuser=0"):m==App.MODE_ONEDRIVE?this.openLink("https://onedrive.live.com/"):m==App.MODE_DROPBOX?this.openLink("https://www.dropbox.com/"):m==App.MODE_GITHUB?this.openLink("https://github.com/"):m==App.MODE_GITLAB?this.openLink(DRAWIO_GITLAB_URL):m==App.MODE_TRELLO?
this.openLink("https://trello.com/"):m==App.MODE_DEVICE?this.openLink("https://get.draw.io/"):this.openLink("https://www.drawio.com/");mxEvent.consume(b)};App.prototype.clearMode=function(){if(isLocalStorage)localStorage.removeItem(".mode");else if("undefined"!=typeof Storage){var b=new Date;b.setYear(b.getFullYear()-1);document.cookie="MODE=; expires="+b.toUTCString()}};
-App.prototype.open=function(){try{if(null!=window.opener){var b=urlParams.create;null!=b&&(b=decodeURIComponent(b));if(null!=b&&0<b.length&&"http://"!=b.substring(0,7)&&"https://"!=b.substring(0,8)){var f=mxUtils.parseXml(window.opener[b]);this.editor.setGraphXml(f.documentElement)}else null!=window.opener.openFile&&window.opener.openFile.setConsumer(mxUtils.bind(this,function(m,d,t){this.spinner.stop();null==d&&(d=urlParams.title,t=!0,d=null!=d?decodeURIComponent(d):this.defaultFilename);0<(this.useCanvasForExport?
--1:".png"==d.substring(d.length-4))&&(d=d.substring(0,d.length-4)+".drawio");this.fileLoaded(mxClient.IS_IOS?new StorageFile(this,m,d):new LocalFile(this,m,d,t))}))}}catch(m){}};App.prototype.loadGapi=function(b){"undefined"!==typeof gapi&&gapi.load(("0"!=urlParams.picker?"picker,":"")+App.GOOGLE_APIS,b)};
+App.prototype.open=function(){try{if(null!=window.opener){var b=urlParams.create;null!=b&&(b=decodeURIComponent(b));if(null!=b&&0<b.length&&"http://"!=b.substring(0,7)&&"https://"!=b.substring(0,8)){var f=mxUtils.parseXml(window.opener[b]);this.editor.setGraphXml(f.documentElement)}else null!=window.opener.openFile&&window.opener.openFile.setConsumer(mxUtils.bind(this,function(m,d,q){this.spinner.stop();null==d&&(d=urlParams.title,q=!0,d=null!=d?decodeURIComponent(d):this.defaultFilename);0<(this.useCanvasForExport?
+-1:".png"==d.substring(d.length-4))&&(d=d.substring(0,d.length-4)+".drawio");this.fileLoaded(mxClient.IS_IOS?new StorageFile(this,m,d):new LocalFile(this,m,d,q))}))}}catch(m){}};App.prototype.loadGapi=function(b){"undefined"!==typeof gapi&&gapi.load(("0"!=urlParams.picker?"picker,":"")+App.GOOGLE_APIS,b)};
App.prototype.load=function(){try{if("1"!=urlParams.embed)try{if(this.spinner.spin(document.body,mxResources.get("starting"))){try{this.stateArg=null!=urlParams.state&&null!=this.drive?JSON.parse(decodeURIComponent(urlParams.state)):null}catch(b){}this.editor.graph.setEnabled(null!=this.getCurrentFile());null!=window.location.hash&&0!=window.location.hash.length||null==this.drive||null==this.stateArg||null==this.stateArg.userId||this.drive.setUserId(this.stateArg.userId);null!=urlParams.fileId?(window.location.hash=
"G"+urlParams.fileId,window.location.search=this.getSearch(["fileId"])):null==this.drive?(this.mode==App.MODE_GOOGLE&&(this.mode=null),this.start()):this.loadGapi(mxUtils.bind(this,function(){this.start()}))}}catch(b){this.handleError(b)}else this.restoreLibraries(),"1"==urlParams.gapi&&this.loadGapi(function(){})}catch(b){EditorUi.isElectronApp?(mxLog.show(),mxLog.debug(b.stack)):(EditorUi.logError(b.message,null,null,null,b),alert(b.message))}};
App.prototype.showRefreshDialog=function(b,f){this.showingRefreshDialog||(this.showingRefreshDialog=!0,this.showError(b||mxResources.get("externalChanges"),f||mxResources.get("redirectToNewApp"),mxResources.get("refresh"),mxUtils.bind(this,function(){var m=this.getCurrentFile();null!=m&&m.setModified(!1);this.spinner.spin(document.body,mxResources.get("connecting"));this.editor.graph.setEnabled(!1);window.location.reload()}),null,null,null,null,null,340,180),null!=this.dialog&&null!=this.dialog.container&&
@@ -13731,360 +13775,363 @@ App.prototype.showRefreshDialog=function(b,f){this.showingRefreshDialog||(this.s
App.prototype.showAlert=function(b){if(null!=b&&0<b.length){var f=document.createElement("div");f.className="geAlert";f.style.zIndex=2E9;f.style.left="50%";f.style.top="-100%";f.style.maxWidth="80%";f.style.width="max-content";f.style.whiteSpace="pre-wrap";mxUtils.setPrefixedStyle(f.style,"transform","translate(-50%,0%)");mxUtils.setPrefixedStyle(f.style,"transition","all 1s ease");f.innerHTML=b;b=document.createElement("a");b.className="geAlertLink";b.style.textAlign="right";b.style.marginTop="20px";
b.style.display="block";b.setAttribute("title",mxResources.get("close"));b.innerHTML=mxResources.get("close");f.appendChild(b);mxEvent.addListener(b,"click",function(m){null!=f.parentNode&&(f.parentNode.removeChild(f),mxEvent.consume(m))});document.body.appendChild(f);window.setTimeout(function(){f.style.top="30px"},10);window.setTimeout(function(){mxUtils.setPrefixedStyle(f.style,"transition","all 2s ease");f.style.opacity="0";window.setTimeout(function(){null!=f.parentNode&&f.parentNode.removeChild(f)},
2E3)},15E3)}};
-App.prototype.start=function(){try{this.restoreLibraries();this.spinner.stop();var b=this;window.onerror=function(v,B,J,N,I){"ResizeObserver loop limit exceeded"!=v&&(EditorUi.logError("Uncaught: "+(null!=v?v:""),B,J,N,I,null,!0),b.handleError({message:v},mxResources.get("unknownError"),null,null,null,null,!0))};if("1"!=urlParams.client&&"1"!=urlParams.embed){try{isLocalStorage&&window.addEventListener("storage",mxUtils.bind(this,function(v){var B=this.getCurrentFile();EditorUi.debug("storage event",[v],
-[B]);null!=B&&".draft-alive-check"==v.key&&null!=v.newValue&&null!=B.draftId&&(this.draftAliveCheck=v.newValue,B.saveDraft())}))}catch(v){}var f=this.getDiagramId();mxEvent.addListener(window,"hashchange",mxUtils.bind(this,function(v){try{var B=this.getDiagramId();if(B!=f){f=B;var J=this.getCurrentFile();null!=J&&J.getHash()==B||this.loadFile(B,!0)}else{var N=this.getHashObject();if(null!=N&&null!=N.pageId&&null!=this.currentPage&&N.pageId!=this.currentPage.getId()){var I=this.getPageById(N.pageId);
-null!=I&&this.selectPage(I)}}}catch(c){null!=document.body&&this.handleError(c,mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var e=this.getCurrentFile();window.location.hash=null!=e?e.getHash():""}))}}))}if((null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.desc)try{this.loadDescriptor(JSON.parse(Graph.decompress(urlParams.desc)),null,mxUtils.bind(this,function(v){this.handleError(v,mxResources.get("errorLoadingFile"))}))}catch(v){this.handleError(v,mxResources.get("errorLoadingFile"))}else if((null==
-window.location.hash||1>=window.location.hash.length)&&null!=urlParams.url)this.loadFile("U"+urlParams.url,!0);else if(null==this.getCurrentFile()){var m=mxUtils.bind(this,function(){if("1"==urlParams.client&&(null==window.location.hash||0==window.location.hash.length||"#P"==window.location.hash.substring(0,2))){var v=mxUtils.bind(this,function(N){Editor.isPngDataUrl(N)&&(N=Editor.extractGraphModelFromPng(N));var I=urlParams.title;I=null!=I?decodeURIComponent(I):this.defaultFilename;N=new LocalFile(this,
-N,I,!0);null!=window.location.hash&&"#P"==window.location.hash.substring(0,2)&&(N.getHash=function(){return window.location.hash.substring(1)});this.fileLoaded(N);this.editor.chromeless||(N.fileChanged(),window.setTimeout(mxUtils.bind(this,function(){this.actions.get("resetView").funct()}),0))}),B=window.opener||window.parent;if(B!=window){var J=urlParams.create;null!=J?v(B[decodeURIComponent(J)]):(J=urlParams.data,null!=J?v(decodeURIComponent(J)):this.installMessageHandler(mxUtils.bind(this,function(N,
-I){I.source==B&&v(N)})))}}else if(null==this.dialog)if("1"==urlParams.demo)J=Editor.useLocalStorage,this.createFile(this.defaultFilename,null,null,null,null,null,null,!0),Editor.useLocalStorage=J;else if(null!=urlParams["smart-template"])this.createFile(this.defaultFilename,null,null,null,null,null,null,!0),this.actions.get("insertTemplate").funct();else{J=!1;try{J=null!=window.opener&&null!=window.opener.openFile}catch(N){}J?this.spinner.spin(document.body,mxResources.get("loading")):(J=this.getDiagramId(),
-!EditorUi.enableDrafts||null!=urlParams.mode||"draw.io"!=this.getServiceName()||null!=J&&0!=J.length||this.editor.isChromelessView()?null!=J&&0<J.length?this.loadFile(J,null,null,mxUtils.bind(this,function(){var N=decodeURIComponent(urlParams.viewbox||"");if(""!=N)try{var I=JSON.parse(N);this.editor.graph.fitWindow(I,I.border)}catch(c){console.error(c)}})):"0"!=urlParams.splash||null!=urlParams.mode&&!EditorUi.isElectronApp?this.loadFile():this.createFile(this.defaultFilename,this.getFileData(),null,
-null,null,null,null,!0):this.checkDrafts())}}),d=decodeURIComponent(urlParams.create||"");if((null==window.location.hash||1>=window.location.hash.length)&&0<d.length&&this.spinner.spin(document.body,mxResources.get("loading"))){var t=mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("reconnecting"))&&(window.location.search=this.getSearch(["create","title"]))}),x=mxUtils.bind(this,function(v){this.spinner.stop();if("0"!=urlParams.splash){this.fileLoaded(new LocalFile(this,
-v,null));this.editor.graph.setEnabled(!1);this.mode=urlParams.mode;var B=urlParams.title;B=null!=B?decodeURIComponent(B):this.defaultFilename;v=this.getServiceCount(!0);isLocalStorage&&v++;var J=4>=v?2:6<v?4:3;B=new CreateDialog(this,B,mxUtils.bind(this,function(N,I){if(null==I){this.hideDialog();var c=Editor.useLocalStorage;this.createFile(0<N.length?N:this.defaultFilename,this.getFileData(),null,null,null,!0,null,!0);Editor.useLocalStorage=c}else this.pickFolder(I,mxUtils.bind(this,function(e){this.createFile(N,
-this.getFileData(!0),null,I,null,!0,e)}))}),null,null,null,null,"1"==urlParams.browser,null,null,!0,J,null,null,null,this.editor.fileExtensions);this.showDialog(B.container,420,v>J?390:280,!0,!1,mxUtils.bind(this,function(N){N&&null==this.getCurrentFile()&&this.showSplash()}));B.init()}});if("http://"!=d.substring(0,7)&&"https://"!=d.substring(0,8))if("{"==d.charAt(0))this.spinner.stop(),d=JSON.parse(d),window.isMermaidEnabled&&"mermaid"==d.type?(mxMermaidToDrawio.addListener(mxUtils.bind(this,function(v){v!=
-this.emptyDiagramXml&&(window.history.replaceState(null,null,window.location.pathname+this.getSearch(["create"])),this.createFile(null!=v.filename?v.filename:this.defaultFilename,v,null,null,null,!0,null,!0),this.editor.chromeless&&!this.editor.editable||this.actions.get("fitWindow").funct())})),this.generateMermaidImage(d.data,null,function(){},mxUtils.bind(this,function(v){for(var B=document.querySelectorAll('div[id^="dgeMermaidOutput"]'),J=0;J<B.length;J++)B[J].parentNode.removeChild(B[J]);mxMermaidToDrawio.resetListeners();
-this.handleError(v)}))):this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"));else try{null!=window.opener&&null!=window.opener[d]?x(window.opener[d]):this.handleError(null,mxResources.get("errorLoadingFile"))}catch(v){this.handleError(v,mxResources.get("errorLoadingFile"))}else this.loadTemplate(d,function(v){x(v)},mxUtils.bind(this,function(v){this.handleError(v,mxResources.get("errorLoadingFile"),t)}))}else(null==window.location.hash||1>=
-window.location.hash.length)&&null!=urlParams.state&&null!=this.stateArg&&"open"==this.stateArg.action?null!=this.stateArg.ids&&(window.history&&window.history.replaceState&&window.history.replaceState(null,null,window.location.pathname+this.getSearch(["state"])),window.location.hash="G"+this.stateArg.ids[0]):(null==window.location.hash||1>=window.location.hash.length)&&null!=this.drive&&null!=this.stateArg&&"create"==this.stateArg.action?(window.history&&window.history.replaceState&&window.history.replaceState(null,
-null,window.location.pathname+this.getSearch(["state"])),this.setMode(App.MODE_GOOGLE),"0"==urlParams.splash?this.createFile(null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename):this.actions.get("new").funct()):(null!=urlParams.open&&window.history&&window.history.replaceState&&(window.history.replaceState(null,null,window.location.pathname+this.getSearch(["open","sketch"])),window.location.hash=urlParams.open),m())}}catch(v){this.handleError(v)}};
+App.prototype.start=function(){try{this.restoreLibraries();this.spinner.stop();var b=this;window.onerror=function(I,M,H,c,e){"ResizeObserver loop limit exceeded"!=I&&(EditorUi.logError("Uncaught: "+(null!=I?I:""),M,H,c,e,null,!0),b.handleError({message:I},mxResources.get("unknownError"),null,null,null,null,!0))};if("1"!=urlParams.client&&"1"!=urlParams.embed){try{isLocalStorage&&window.addEventListener("storage",mxUtils.bind(this,function(I){var M=this.getCurrentFile();EditorUi.debug("storage event",[I],
+[M]);null!=M&&".draft-alive-check"==I.key&&null!=I.newValue&&null!=M.draftId&&(this.draftAliveCheck=I.newValue,M.saveDraft())}))}catch(I){}var f=this.getDiagramId();mxEvent.addListener(window,"hashchange",mxUtils.bind(this,function(I){try{var M=this.getDiagramId();if(M!=f){f=M;var H=this.getCurrentFile();null!=H&&H.getHash()==M||this.loadFile(M,!0)}else{var c=this.getHashObject();if(null!=c&&null!=c.pageId&&null!=this.currentPage&&c.pageId!=this.currentPage.getId()){var e=this.getPageById(c.pageId);
+null!=e&&this.selectPage(e)}}}catch(g){null!=document.body&&this.handleError(g,mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var l=this.getCurrentFile();window.location.hash=null!=l?l.getHash():""}))}}))}if((null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.desc)try{this.loadDescriptor(JSON.parse(Graph.decompress(urlParams.desc)),null,mxUtils.bind(this,function(I){this.handleError(I,mxResources.get("errorLoadingFile"))}))}catch(I){this.handleError(I,mxResources.get("errorLoadingFile"))}else if((null==
+window.location.hash||1>=window.location.hash.length)&&null!=urlParams.url)this.loadFile("U"+urlParams.url,!0);else if(null==this.getCurrentFile()){var m=mxUtils.bind(this,function(){if("1"==urlParams.client&&(null==window.location.hash||0==window.location.hash.length||"#P"==window.location.hash.substring(0,2))){var I=mxUtils.bind(this,function(c){Editor.isPngDataUrl(c)&&(c=Editor.extractGraphModelFromPng(c));var e=urlParams.title;e=null!=e?decodeURIComponent(e):this.defaultFilename;c=new LocalFile(this,
+c,e,!0);null!=window.location.hash&&"#P"==window.location.hash.substring(0,2)&&(c.getHash=function(){return window.location.hash.substring(1)});this.fileLoaded(c);this.editor.chromeless||(c.fileChanged(),window.setTimeout(mxUtils.bind(this,function(){this.actions.get("resetView").funct()}),0))}),M=window.opener||window.parent;if(M!=window){var H=urlParams.create;null!=H?I(M[decodeURIComponent(H)]):(H=urlParams.data,null!=H?I(decodeURIComponent(H)):this.installMessageHandler(mxUtils.bind(this,function(c,
+e){e.source==M&&I(c)})))}}else if(null==this.dialog)if("1"==urlParams.demo)H=Editor.useLocalStorage,this.createFile(this.defaultFilename,null,null,null,null,null,null,!0),Editor.useLocalStorage=H;else if(null!=urlParams["smart-template"])this.createFile(this.defaultFilename,null,null,null,null,null,null,!0),this.actions.get("insertTemplate").funct();else{H=!1;try{H=null!=window.opener&&null!=window.opener.openFile}catch(c){}H?this.spinner.spin(document.body,mxResources.get("loading")):(H=this.getDiagramId(),
+!EditorUi.enableDrafts||null!=urlParams.mode||"draw.io"!=this.getServiceName()||null!=H&&0!=H.length||this.editor.isChromelessView()?null!=H&&0<H.length?this.loadFile(H,null,null,mxUtils.bind(this,function(){var c=decodeURIComponent(urlParams.viewbox||"");if(""!=c)try{var e=JSON.parse(c);this.editor.graph.fitWindow(e,e.border)}catch(g){console.error(g)}})):"0"!=urlParams.splash||null!=urlParams.mode&&!EditorUi.isElectronApp?this.loadFile():this.createFile(this.defaultFilename,this.getFileData(),null,
+null,null,null,null,!0):this.checkDrafts())}}),d=decodeURIComponent(urlParams.create||"");null!=window.location.hash&&"#create="==window.location.hash.substring(0,8)&&(d=decodeURIComponent(window.location.hash.substring(8)));if((null==window.location.hash||1>=window.location.hash.length||"#create="==window.location.hash.substring(0,8))&&0<d.length&&this.spinner.spin(document.body,mxResources.get("loading"))){var q=mxUtils.bind(this,function(){this.spinner.spin(document.body,mxResources.get("reconnecting"))&&
+(window.location.search=this.getSearch(["create","title"]))}),x=mxUtils.bind(this,function(I){this.spinner.stop();if("0"!=urlParams.splash){this.fileLoaded(new LocalFile(this,I,null));this.editor.graph.setEnabled(!1);this.mode=urlParams.mode;var M=urlParams.title;M=null!=M?decodeURIComponent(M):this.defaultFilename;I=this.getServiceCount(!0);isLocalStorage&&I++;var H=4>=I?2:6<I?4:3;M=new CreateDialog(this,M,mxUtils.bind(this,function(c,e){if(null==e){this.hideDialog();var g=Editor.useLocalStorage;
+this.createFile(0<c.length?c:this.defaultFilename,this.getFileData(),null,null,null,!0,null,!0);Editor.useLocalStorage=g}else this.pickFolder(e,mxUtils.bind(this,function(l){this.createFile(c,this.getFileData(!0),null,e,null,!0,l)}))}),null,null,null,null,"1"==urlParams.browser,null,null,!0,H,null,null,null,this.editor.fileExtensions);this.showDialog(M.container,420,I>H?390:280,!0,!1,mxUtils.bind(this,function(c){c&&null==this.getCurrentFile()&&this.showSplash()}));M.init()}});if("http://"!=d.substring(0,
+7)&&"https://"!=d.substring(0,8))if("{"==d.charAt(0)){this.spinner.stop();d=JSON.parse(d);var C=mxUtils.bind(this,function(I){this.createFile(null!=I.filename?I.filename:this.defaultFilename,I,null,null,mxUtils.bind(this,function(){this.editor.chromeless&&!this.editor.editable||this.actions.get("fitWindow").funct();window.history.replaceState(null,null,window.location.pathname+this.getSearch(["create"]));window.location.hash="R"+Graph.compress(I)}),!0,null,!0)}),y=d.data;d.compressed&&(y=Graph.decompress(y));
+"mermaid"==d.type?window.isMermaidEnabled?(mxMermaidToDrawio.addListener(mxUtils.bind(this,function(I){I!=this.emptyDiagramXml&&C(I)})),this.generateMermaidImage(y,null,function(){},mxUtils.bind(this,function(I){for(var M=document.querySelectorAll('div[id^="dgeMermaidOutput"]'),H=0;H<M.length;H++)M[H].parentNode.removeChild(M[H]);mxMermaidToDrawio.resetListeners();this.handleError(I)}))):this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile")):
+C(y)}else try{null!=window.opener&&null!=window.opener[d]?x(window.opener[d]):this.handleError(null,mxResources.get("errorLoadingFile"))}catch(I){this.handleError(I,mxResources.get("errorLoadingFile"))}else this.loadTemplate(d,function(I){x(I)},mxUtils.bind(this,function(I){this.handleError(I,mxResources.get("errorLoadingFile"),q)}))}else(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.state&&null!=this.stateArg&&"open"==this.stateArg.action?null!=this.stateArg.ids&&(window.history&&
+window.history.replaceState&&window.history.replaceState(null,null,window.location.pathname+this.getSearch(["state"])),window.location.hash="G"+this.stateArg.ids[0]):(null==window.location.hash||1>=window.location.hash.length)&&null!=this.drive&&null!=this.stateArg&&"create"==this.stateArg.action?(window.history&&window.history.replaceState&&window.history.replaceState(null,null,window.location.pathname+this.getSearch(["state"])),this.setMode(App.MODE_GOOGLE),"0"==urlParams.splash?this.createFile(null!=
+urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename):this.actions.get("new").funct()):(null!=urlParams.open&&window.history&&window.history.replaceState&&(window.history.replaceState(null,null,window.location.pathname+this.getSearch(["open","sketch"])),window.location.hash=urlParams.open),m())}}catch(I){this.handleError(I)}};
App.prototype.loadDraft=function(b,f){this.createFile(this.defaultFilename,b,null,null,mxUtils.bind(this,function(){window.setTimeout(mxUtils.bind(this,function(){var m=this.getCurrentFile();null!=m&&(m.fileChanged(),null!=f&&f())}),0)}),null,null,!0)};
-App.prototype.filterDrafts=function(b,f,m){function d(){m(t)}var t=[];try{this.getDatabaseItems(mxUtils.bind(this,function(x){EditorUi.debug("App.filterDrafts",[this],"items",x);for(var v=0;v<x.length;v++)try{var B=x[v].key;if(null!=B&&".draft_"==B.substring(0,7)){var J=JSON.parse(x[v].data);null!=J&&"draft"==J.type&&J.aliveCheck!=f&&(null==b&&null==J.fileObject||null!=J.fileObject&&J.fileObject.path==b)&&(J.key=B,t.push(J))}}catch(N){}d()}),d)}catch(x){d()}};
+App.prototype.filterDrafts=function(b,f,m){function d(){m(q)}var q=[];try{this.getDatabaseItems(mxUtils.bind(this,function(x){EditorUi.debug("App.filterDrafts",[this],"items",x);for(var C=0;C<x.length;C++)try{var y=x[C].key;if(null!=y&&".draft_"==y.substring(0,7)){var I=JSON.parse(x[C].data);null!=I&&"draft"==I.type&&I.aliveCheck!=f&&(null==b&&null==I.fileObject||null!=I.fileObject&&I.fileObject.path==b)&&(I.key=y,q.push(I))}}catch(M){}d()}),d)}catch(x){d()}};
App.prototype.checkDrafts=function(){try{var b=Editor.guid();localStorage.setItem(".draft-alive-check",b);window.setTimeout(mxUtils.bind(this,function(){localStorage.removeItem(".draft-alive-check");this.filterDrafts(null,b,mxUtils.bind(this,function(f){if(1==f.length)this.loadDraft(f[0].data,mxUtils.bind(this,function(){this.removeDatabaseItem(f[0].key)}));else if(1<f.length){var m=new Date(f[0].modified);m=new DraftDialog(this,1<f.length?mxResources.get("selectDraft"):mxResources.get("draftFound",
-[m.toLocaleDateString()+" "+m.toLocaleTimeString()]),1<f.length?null:f[0].data,mxUtils.bind(this,function(d){this.hideDialog();d=""!=d&&null!=f[d]?d:0;this.loadDraft(f[d].data,mxUtils.bind(this,function(){this.removeDatabaseItem(f[d].key)}))}),mxUtils.bind(this,function(d,t){this.removeDatabaseItem(f[""!=d?d:0].key);null!=t&&t()}),null,null,null,1<f.length?f:null);this.showDialog(m.container,640,480,!0,!1,mxUtils.bind(this,function(d){"0"!=urlParams.splash?this.loadFile():this.createFile(this.defaultFilename,
+[m.toLocaleDateString()+" "+m.toLocaleTimeString()]),1<f.length?null:f[0].data,mxUtils.bind(this,function(d){this.hideDialog();d=""!=d&&null!=f[d]?d:0;this.loadDraft(f[d].data,mxUtils.bind(this,function(){this.removeDatabaseItem(f[d].key)}))}),mxUtils.bind(this,function(d,q){this.removeDatabaseItem(f[""!=d?d:0].key);null!=q&&q()}),null,null,null,1<f.length?f:null);this.showDialog(m.container,640,480,!0,!1,mxUtils.bind(this,function(d){"0"!=urlParams.splash?this.loadFile():this.createFile(this.defaultFilename,
this.getFileData(),null,null,null,null,null,!0)}));m.init()}else"0"!=urlParams.splash?this.loadFile():this.createFile(this.defaultFilename,this.getFileData(),null,null,null,null,null,!0)}))}),0)}catch(f){}};
-App.prototype.showSplash=function(b){if("1"!=urlParams.noFileMenu){var f=this.getServiceCount(!0),m=mxUtils.bind(this,function(){var t=new SplashDialog(this);this.showDialog(t.container,340,mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?200:230,!0,!0,mxUtils.bind(this,function(x,v){!x&&!v||mxClient.IS_CHROMEAPP||(x=Editor.useLocalStorage,this.createFile(this.defaultFilename+(EditorUi.isElectronApp?".drawio":""),null,null,null,null,null,null,"1"!=urlParams.local),Editor.useLocalStorage=x)}),!0)});if(this.editor.isChromelessView())this.handleError({message:mxResources.get("noFileSelected")},
+App.prototype.showSplash=function(b){if("1"!=urlParams.noFileMenu){var f=this.getServiceCount(!0),m=mxUtils.bind(this,function(){var q=new SplashDialog(this);this.showDialog(q.container,340,mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?200:230,!0,!0,mxUtils.bind(this,function(x,C){!x&&!C||mxClient.IS_CHROMEAPP||(x=Editor.useLocalStorage,this.createFile(this.defaultFilename+(EditorUi.isElectronApp?".drawio":""),null,null,null,null,null,null,"1"!=urlParams.local),Editor.useLocalStorage=x)}),!0)});if(this.editor.isChromelessView())this.handleError({message:mxResources.get("noFileSelected")},
mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){this.showSplash()}));else if(mxClient.IS_CHROMEAPP||null!=this.mode&&!b)null==urlParams.create&&m();else{b=4==f?2:3;var d=new StorageDialog(this,mxUtils.bind(this,function(){this.hideDialog();m()}),b);this.showDialog(d.container,3>b?200:300,3<f?320:210,!0,!1)}}};
App.prototype.addLanguageMenu=function(b,f,m){var d=null;null!=this.menus.get("language")&&(d=document.createElement("div"),this.setElementTitle(d,"language"),d.className="geAdaptiveAsset",d.style.backgroundImage="url("+Editor.globeImage+")",d.style.backgroundPosition="right center",d.style.backgroundRepeat="no-repeat",d.style.backgroundSize="19px 19px",d.style.width="19px",d.style.height="19px",mxUtils.setOpacity(d,40),d.style.position="absolute",d.style.cursor="pointer",d.style.bottom="20px",d.style.right=
-null!=m?m:"22px",f&&(d.style.direction="rtl",d.style.textAlign="right",d.style.right=null!=m?m:"24px",f=document.createElement("span"),f.style.display="inline-block",f.style.fontSize="12px",f.style.margin="2px 24px 0 0",f.style.userSelect="none",mxUtils.write(f,mxResources.get("language")),d.appendChild(f),f.className="geAdaptiveAsset"),mxEvent.addListener(d,"click",mxUtils.bind(this,function(t){this.editor.graph.popupMenuHandler.hideMenu();var x=new mxPopupMenu(this.menus.get("language").funct);
-x.smartSeparators=!0;x.showDisabled=!0;x.autoExpand=!0;x.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(x,arguments);x.destroy()});var v=mxUtils.getOffset(d);x.popup(v.x,v.y+d.offsetHeight,null,t);this.setCurrentMenu(x)})),b.appendChild(d));return d};
-App.prototype.loadFileSystemEntry=function(b,f,m){m=null!=m?m:mxUtils.bind(this,function(d){this.handleError(d)});try{b.getFile().then(mxUtils.bind(this,function(d){var t=new FileReader;t.onload=mxUtils.bind(this,function(x){var v=mxUtils.bind(this,function(B){try{if(null!=f){var J=x.target.result;"image/png"==d.type&&(J=this.extractGraphModelFromPng(J));f(new LocalFile(this,J,d.name,null,b,d,B))}else this.openFileHandle(x.target.result,d.name,d,!1,b,B)}catch(N){m(N)}});b.queryPermission?b.queryPermission({mode:"readwrite"}).then(mxUtils.bind(this,
-function(B){v("denied"!==B)})):b.createWritable().then(mxUtils.bind(this,function(){v(!0)}),mxUtils.bind(this,function(B){v(!1)}))});t.onerror=m;"image"!==d.type.substring(0,5)&&"application/pdf"!==d.type||"image/svg"===d.type.substring(0,9)?t.readAsText(d):t.readAsDataURL(d)}),m)}catch(d){m(d)}};
-App.prototype.createFileSystemOptions=function(b){var f=[],m=null;if(null!=b){var d=b.lastIndexOf(".");0<d&&(m=b.substring(d+1))}for(d=0;d<this.editor.diagramFileTypes.length;d++){var t={description:mxResources.get(this.editor.diagramFileTypes[d].description)+(mxClient.IS_MAC?" (."+this.editor.diagramFileTypes[d].extension+")":""),accept:{}};t.accept[this.editor.diagramFileTypes[d].mimeType]=["."+this.editor.diagramFileTypes[d].extension];this.editor.diagramFileTypes[d].extension==m?f.splice(0,0,
-t):this.editor.diagramFileTypes[d].extension==m?f.splice(0,0,t):f.push(t)}return{types:f,suggestedName:b}};App.prototype.showSaveFilePicker=function(b,f,m){f=null!=f?f:mxUtils.bind(this,function(d){"AbortError"!=d.name&&this.handleError(d)});m=null!=m?m:this.createFileSystemOptions();window.showSaveFilePicker(m).then(mxUtils.bind(this,function(d){null!=d&&d.getFile().then(mxUtils.bind(this,function(t){b(d,t)}),f)}),f)};
-App.prototype.pickFile=function(b){try{if(b=null!=b?b:this.mode,b==App.MODE_GOOGLE)null!=this.drive&&"undefined"!=typeof google&&"undefined"!=typeof google.picker?this.drive.pickFile():this.openLink("https://drive.google.com");else{var f=this.getServiceForName(b);if(null!=f)f.pickFile();else if(b==App.MODE_DEVICE&&EditorUi.nativeFileSupport)window.showOpenFilePicker().then(mxUtils.bind(this,function(v){null!=v&&0<v.length&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.loadFileSystemEntry(v[0])}),
-mxUtils.bind(this,function(v){"AbortError"!=v.name&&this.handleError(v)}));else if(b==App.MODE_DEVICE&&Graph.fileSupport){if(null==this.openFileInputElt){var m=document.createElement("input");m.setAttribute("type","file");mxEvent.addListener(m,"change",mxUtils.bind(this,function(){null!=m.files&&(this.openFiles(m.files),m.type="",m.type="file",m.value="")}));m.style.display="none";document.body.appendChild(m);this.openFileInputElt=m}this.openFileInputElt.click()}else{this.hideDialog();window.openNew=
-null!=this.getCurrentFile()&&!this.isDiagramEmpty();window.baseUrl=this.getUrl();window.openKey="open";window.listBrowserFiles=mxUtils.bind(this,function(v,B){StorageFile.listFiles(this,"F",v,B)});window.openBrowserFile=mxUtils.bind(this,function(v,B,J){StorageFile.getFileContent(this,v,B,J)});window.deleteBrowserFile=mxUtils.bind(this,function(v,B,J){StorageFile.deleteFile(this,v,B,J)});var d=Editor.useLocalStorage;Editor.useLocalStorage=b==App.MODE_BROWSER;this.openFile();window.openFile.setConsumer(mxUtils.bind(this,
-function(v,B){var J=mxUtils.bind(this,function(){this.useCanvasForExport||".png"!=B.substring(B.length-4)||(B=B.substring(0,B.length-4)+".drawio");this.fileLoaded(b==App.MODE_BROWSER?new StorageFile(this,v,B):new LocalFile(this,v,B))}),N=this.getCurrentFile();null!=N&&N.isModified()?this.confirm(mxResources.get("allChangesLost"),null,J,mxResources.get("cancel"),mxResources.get("discardChanges")):J()}));var t=this.dialog,x=t.close;this.dialog.close=mxUtils.bind(this,function(v){Editor.useLocalStorage=
-d;x.apply(t,arguments);null==this.getCurrentFile()&&this.showSplash()})}}}catch(v){this.handleError(v)}};
-App.prototype.pickLibrary=function(b){b=null!=b?b:this.mode;var f=mxUtils.bind(this,function(x){try{this.loadLibrary(x);this.showSidebar();try{this.sidebar.palettes[x.getHash()][0].scrollIntoView({behavior:"smooth"})}catch(v){}}catch(v){this.handleError(v,mxResources.get("errorLoadingFile"))}});if(b==App.MODE_GOOGLE||b==App.MODE_DROPBOX||b==App.MODE_ONEDRIVE||b==App.MODE_GITHUB||b==App.MODE_GITLAB||b==App.MODE_TRELLO){var m=b==App.MODE_GOOGLE?this.drive:b==App.MODE_ONEDRIVE?this.oneDrive:b==App.MODE_GITHUB?
-this.gitHub:b==App.MODE_GITLAB?this.gitLab:b==App.MODE_TRELLO?this.trello:this.dropbox;null!=m&&m.pickLibrary(mxUtils.bind(this,function(x,v){null!=v?f(v):this.spinner.spin(document.body,mxResources.get("loading"))&&m.getLibrary(x,mxUtils.bind(this,function(B){this.spinner.stop();f(B)}),mxUtils.bind(this,function(B){this.handleError(B,null!=B?mxResources.get("errorLoadingFile"):null)}))}))}else if(b==App.MODE_DEVICE&&Graph.fileSupport){if(null==this.libFileInputElt){var d=document.createElement("input");
-d.setAttribute("type","file");mxEvent.addListener(d,"change",mxUtils.bind(this,function(){if(null!=d.files){for(var x=0;x<d.files.length;x++)mxUtils.bind(this,function(v){var B=new FileReader;B.onload=mxUtils.bind(this,function(J){f(new LocalLibrary(this,J.target.result,v.name))});B.readAsText(v)})(d.files[x]);d.type="";d.type="file";d.value=""}}));d.style.display="none";document.body.appendChild(d);this.libFileInputElt=d}this.libFileInputElt.click()}else{window.openNew=!1;window.openKey="open";window.listBrowserFiles=
-mxUtils.bind(this,function(x,v){StorageFile.listFiles(this,"L",x,v)});window.openBrowserFile=mxUtils.bind(this,function(x,v,B){StorageFile.getFileContent(this,x,v,B)});window.deleteBrowserFile=mxUtils.bind(this,function(x,v,B){StorageFile.deleteFile(this,x,v,B)});var t=Editor.useLocalStorage;Editor.useLocalStorage=b==App.MODE_BROWSER;window.openFile=new OpenFile(mxUtils.bind(this,function(x){this.hideDialog(x)}));window.openFile.setConsumer(mxUtils.bind(this,function(x,v){f(b==App.MODE_BROWSER?new StorageLibrary(this,
-x,v):new LocalLibrary(this,x,v))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){Editor.useLocalStorage=t;window.openFile=null})}};
-App.prototype.saveLibrary=function(b,f,m,d,t,x,v){try{d=null!=d?d:this.mode;t=null!=t?t:!1;x=null!=x?x:!1;var B=this.createLibraryDataFromImages(f),J=mxUtils.bind(this,function(c){this.spinner.stop();null!=v&&v();this.handleError(c,null!=c?mxResources.get("errorSavingFile"):null)});null==m&&d==App.MODE_DEVICE&&(m=new LocalLibrary(this,B,b));if(null==m)this.pickFolder(d,mxUtils.bind(this,function(c){d==App.MODE_GOOGLE&&null!=this.drive&&this.spinner.spin(document.body,mxResources.get("inserting"))?
-this.drive.insertFile(b,B,c,mxUtils.bind(this,function(e){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(e,f)}),J,this.drive.libraryMimeType):d==App.MODE_GITHUB&&null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.gitHub.insertLibrary(b,B,mxUtils.bind(this,function(e){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(e,f)}),J,c):d==App.MODE_GITLAB&&null!=this.gitLab&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.gitLab.insertLibrary(b,
-B,mxUtils.bind(this,function(e){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(e,f)}),J,c):d==App.MODE_TRELLO&&null!=this.trello&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.trello.insertLibrary(b,B,mxUtils.bind(this,function(e){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(e,f)}),J,c):d==App.MODE_DROPBOX&&null!=this.dropbox&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.dropbox.insertLibrary(b,B,mxUtils.bind(this,function(e){this.spinner.stop();
-this.hideDialog(!0);this.libraryLoaded(e,f)}),J,c):d==App.MODE_ONEDRIVE&&null!=this.oneDrive&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.oneDrive.insertLibrary(b,B,mxUtils.bind(this,function(e){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(e,f)}),J,c):d==App.MODE_BROWSER?StorageFile.doInsertFile(new StorageLibrary(this,B,b),mxUtils.bind(this,function(e){this.hideDialog(!0);this.libraryLoaded(e,f)}),J):this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})}));
-else if(t||this.spinner.spin(document.body,mxResources.get("saving"))){m.setData(B);var N=mxUtils.bind(this,function(){m.save(!0,mxUtils.bind(this,function(c){this.spinner.stop();this.hideDialog(!0);x||this.libraryLoaded(m,f);null!=v&&v()}),J)});if(b!=m.getTitle()){var I=m.getHash();m.rename(b,mxUtils.bind(this,function(c){m.constructor!=LocalLibrary&&I!=m.getHash()&&(mxSettings.removeCustomLibrary(I),mxSettings.addCustomLibrary(m.getHash()));this.removeLibrarySidebar(I);N()}),J)}else N()}}catch(c){this.handleError(c)}};
-App.prototype.saveFile=function(b,f){var m=this.getCurrentFile(),d=this.mode;if(null!=m){var t=mxUtils.bind(this,function(){EditorUi.enableDrafts&&m.removeDraft();this.getCurrentFile()==m||m.isModified()||(m.getMode()!=App.MODE_DEVICE?this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get("allChangesSaved")))})):this.clearStatus());null!=f&&f()});if(b||null==m.getTitle()||null!=m.invalidFileHandle||null==this.mode)if(null!=m&&m.constructor==LocalFile&&
-null!=m.fileHandle)this.showSaveFilePicker(mxUtils.bind(this,function(B,J){m.invalidFileHandle=null;m.fileHandle=B;m.title=J.name;m.desc=J;m.editable=null;this.save(J.name,t)}),null,this.createFileSystemOptions(m.getTitle()));else{b=null!=m.getTitle()?m.getTitle():this.defaultFilename;var x=mxUtils.bind(this,function(B,J,N,I){if(null!=B&&0<B.length)if(/(\.pdf)$/i.test(B))this.confirm(mxResources.get("didYouMeanToExportToPdf"),mxUtils.bind(this,function(){this.hideDialog();this.actions.get("exportPdf").funct()}),
-mxUtils.bind(this,function(){N.value=B.split(".").slice(0,-1).join(".");N.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?N.select():document.execCommand("selectAll",!1,null)}),mxResources.get("yes"),mxResources.get("no"));else if(this.hideDialog(),null==d&&J==App.MODE_DEVICE)null!=m&&EditorUi.nativeFileSupport?this.showSaveFilePicker(mxUtils.bind(this,function(e,g){m.fileHandle=e;m.mode=App.MODE_DEVICE;m.title=g.name;m.desc=g;this.setMode(App.MODE_DEVICE);this.save(g.name,t)}),mxUtils.bind(this,
-function(e){"AbortError"!=e.name&&this.handleError(e)}),this.createFileSystemOptions(B)):(this.setMode(App.MODE_DEVICE),this.save(B,t));else if("download"==J)(new LocalFile(this,null,B)).save();else if("_blank"==J)window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(this.getFileData(!0)),this.openLink(this.getUrl(window.location.pathname),null,!0);else if(d!=J){var c=mxUtils.bind(this,function(e){var g=this.editor.graph,l=g.getSelectionCells(),n=g.getViewState(),
-u=this.currentPage;this.createFile(B,this.getFileData(/(\.xml)$/i.test(B)||0>B.indexOf(".")||/(\.drawio)$/i.test(B),/(\.svg)$/i.test(B),/(\.html)$/i.test(B)),null,J,t,null==this.mode,e,null,null,mxUtils.bind(this,function(){this.restoreViewState(u,n,l)}))});null!=I?c(I):this.pickFolder(J,c)}else null!=J&&this.save(B,t)}),v=!mxClient.IS_IOS||!navigator.standalone;b=new SaveDialog(this,b,mxUtils.bind(this,function(B,J,N){x(B.value,J,B,N);this.hideDialog()}),v?null:["_blank"]);this.showDialog(b.container,
-420,150,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));b.init()}else this.save(m.getTitle(),t)}};
-App.prototype.loadTemplate=function(b,f,m,d,t){var x=!1,v=b,B=null!=d?d:b;d=/\.png$/i.test(B)||/\.pdf$/i.test(B);var J=EditorUi.isVisioFilename(B);this.editor.isCorsEnabledForUrl(v)||(x=d||J,v="t="+(new Date).getTime(),v=PROXY_URL+"?url="+encodeURIComponent(b)+"&"+v+(x?"&base64=1":""));this.editor.loadUrl(v,mxUtils.bind(this,function(N){try{var I=x?!window.atob||mxClient.IS_IE||mxClient.IS_IE11?Base64.decode(N):atob(N):N;if(J||this.isVisioData(I))J||(B=t?this.isRemoteVisioData(I)?"raw.vss":"raw.vssx":
-this.isRemoteVisioData(I)?"raw.vsd":"raw.vsdx"),this.importVisio(this.base64ToBlob(N.substring(N.indexOf(",")+1)),function(c){f(c)},m,B);else if((new XMLHttpRequest).upload&&this.isRemoteFileFormat(I,B))this.isExternalDataComms()?this.parseFileData(I,mxUtils.bind(this,function(c){4==c.readyState&&200<=c.status&&299>=c.status&&"<mxGraphModel"==c.responseText.substring(0,13)&&f(c.responseText)}),b):this.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,m);else if(this.isLucidChartData(I))this.convertLucidChart(I,
-mxUtils.bind(this,function(c){f(c)}),mxUtils.bind(this,function(c){m(c)}));else{if(/(\.png)($|\?)/i.test(B)||Editor.isPngData(I))I=Editor.extractGraphModelFromPng(N);f(I)}}catch(c){m(c)}}),m,/(\.png)($|\?)/i.test(B)||J,null,null,x)};App.prototype.getModeForChar=function(b){return"G"==b?App.MODE_GOOGLE:"D"==b?App.MODE_DROPBOX:"W"==b?App.MODE_ONEDRIVE:"H"==b?App.MODE_GITHUB:"A"==b?App.MODE_GITLAB:"T"==b?App.MODE_TRELLO:null};
+null!=m?m:"22px",f&&(d.style.direction="rtl",d.style.textAlign="right",d.style.right=null!=m?m:"24px",f=document.createElement("span"),f.style.display="inline-block",f.style.fontSize="12px",f.style.margin="2px 24px 0 0",f.style.userSelect="none",mxUtils.write(f,mxResources.get("language")),d.appendChild(f),f.className="geAdaptiveAsset"),mxEvent.addListener(d,"click",mxUtils.bind(this,function(q){this.editor.graph.popupMenuHandler.hideMenu();var x=new mxPopupMenu(this.menus.get("language").funct);
+x.smartSeparators=!0;x.showDisabled=!0;x.autoExpand=!0;x.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(x,arguments);x.destroy()});var C=mxUtils.getOffset(d);x.popup(C.x,C.y+d.offsetHeight,null,q);this.setCurrentMenu(x)})),b.appendChild(d));return d};
+App.prototype.loadFileSystemEntry=function(b,f,m){m=null!=m?m:mxUtils.bind(this,function(d){this.handleError(d)});try{b.getFile().then(mxUtils.bind(this,function(d){var q=new FileReader;q.onload=mxUtils.bind(this,function(x){var C=mxUtils.bind(this,function(y){try{if(null!=f){var I=x.target.result;"image/png"==d.type&&(I=this.extractGraphModelFromPng(I));f(new LocalFile(this,I,d.name,null,b,d,y))}else this.openFileHandle(x.target.result,d.name,d,!1,b,y)}catch(M){m(M)}});b.queryPermission?b.queryPermission({mode:"readwrite"}).then(mxUtils.bind(this,
+function(y){C("denied"!==y)})):b.createWritable().then(mxUtils.bind(this,function(){C(!0)}),mxUtils.bind(this,function(y){C(!1)}))});q.onerror=m;"image"!==d.type.substring(0,5)&&"application/pdf"!==d.type||"image/svg"===d.type.substring(0,9)?q.readAsText(d):q.readAsDataURL(d)}),m)}catch(d){m(d)}};
+App.prototype.createFileSystemOptions=function(b){var f=[],m=null;if(null!=b){var d=b.lastIndexOf(".");0<d&&(m=b.substring(d+1))}for(d=0;d<this.editor.diagramFileTypes.length;d++){var q={description:mxResources.get(this.editor.diagramFileTypes[d].description)+(mxClient.IS_MAC?" (."+this.editor.diagramFileTypes[d].extension+")":""),accept:{}};q.accept[this.editor.diagramFileTypes[d].mimeType]=["."+this.editor.diagramFileTypes[d].extension];this.editor.diagramFileTypes[d].extension==m?f.splice(0,0,
+q):this.editor.diagramFileTypes[d].extension==m?f.splice(0,0,q):f.push(q)}return{types:f,suggestedName:b}};App.prototype.showSaveFilePicker=function(b,f,m){f=null!=f?f:mxUtils.bind(this,function(d){"AbortError"!=d.name&&this.handleError(d)});m=null!=m?m:this.createFileSystemOptions();window.showSaveFilePicker(m).then(mxUtils.bind(this,function(d){null!=d&&d.getFile().then(mxUtils.bind(this,function(q){b(d,q)}),f)}),f)};
+App.prototype.pickFile=function(b){try{if(b=null!=b?b:this.mode,b==App.MODE_GOOGLE)null!=this.drive&&"undefined"!=typeof google&&"undefined"!=typeof google.picker?this.drive.pickFile():this.openLink("https://drive.google.com");else{var f=this.getServiceForName(b);if(null!=f)f.pickFile();else if(b==App.MODE_DEVICE&&EditorUi.nativeFileSupport)window.showOpenFilePicker().then(mxUtils.bind(this,function(C){null!=C&&0<C.length&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.loadFileSystemEntry(C[0])}),
+mxUtils.bind(this,function(C){"AbortError"!=C.name&&this.handleError(C)}));else if(b==App.MODE_DEVICE&&Graph.fileSupport){if(null==this.openFileInputElt){var m=document.createElement("input");m.setAttribute("type","file");mxEvent.addListener(m,"change",mxUtils.bind(this,function(){null!=m.files&&(this.openFiles(m.files),m.type="",m.type="file",m.value="")}));m.style.display="none";document.body.appendChild(m);this.openFileInputElt=m}this.openFileInputElt.click()}else{this.hideDialog();window.openNew=
+null!=this.getCurrentFile()&&!this.isDiagramEmpty();window.baseUrl=this.getUrl();window.openKey="open";window.listBrowserFiles=mxUtils.bind(this,function(C,y){StorageFile.listFiles(this,"F",C,y)});window.openBrowserFile=mxUtils.bind(this,function(C,y,I){StorageFile.getFileContent(this,C,y,I)});window.deleteBrowserFile=mxUtils.bind(this,function(C,y,I){StorageFile.deleteFile(this,C,y,I)});var d=Editor.useLocalStorage;Editor.useLocalStorage=b==App.MODE_BROWSER;this.openFile();window.openFile.setConsumer(mxUtils.bind(this,
+function(C,y){var I=mxUtils.bind(this,function(){this.useCanvasForExport||".png"!=y.substring(y.length-4)||(y=y.substring(0,y.length-4)+".drawio");this.fileLoaded(b==App.MODE_BROWSER?new StorageFile(this,C,y):new LocalFile(this,C,y))}),M=this.getCurrentFile();null!=M&&M.isModified()?this.confirm(mxResources.get("allChangesLost"),null,I,mxResources.get("cancel"),mxResources.get("discardChanges")):I()}));var q=this.dialog,x=q.close;this.dialog.close=mxUtils.bind(this,function(C){Editor.useLocalStorage=
+d;x.apply(q,arguments);null==this.getCurrentFile()&&this.showSplash()})}}}catch(C){this.handleError(C)}};
+App.prototype.pickLibrary=function(b){b=null!=b?b:this.mode;var f=mxUtils.bind(this,function(x){try{this.loadLibrary(x);this.showSidebar();try{this.sidebar.palettes[x.getHash()][0].scrollIntoView({behavior:"smooth"})}catch(C){}}catch(C){this.handleError(C,mxResources.get("errorLoadingFile"))}});if(b==App.MODE_GOOGLE||b==App.MODE_DROPBOX||b==App.MODE_ONEDRIVE||b==App.MODE_GITHUB||b==App.MODE_GITLAB||b==App.MODE_TRELLO){var m=b==App.MODE_GOOGLE?this.drive:b==App.MODE_ONEDRIVE?this.oneDrive:b==App.MODE_GITHUB?
+this.gitHub:b==App.MODE_GITLAB?this.gitLab:b==App.MODE_TRELLO?this.trello:this.dropbox;null!=m&&m.pickLibrary(mxUtils.bind(this,function(x,C){null!=C?f(C):this.spinner.spin(document.body,mxResources.get("loading"))&&m.getLibrary(x,mxUtils.bind(this,function(y){this.spinner.stop();f(y)}),mxUtils.bind(this,function(y){this.handleError(y,null!=y?mxResources.get("errorLoadingFile"):null)}))}))}else if(b==App.MODE_DEVICE&&Graph.fileSupport){if(null==this.libFileInputElt){var d=document.createElement("input");
+d.setAttribute("type","file");mxEvent.addListener(d,"change",mxUtils.bind(this,function(){if(null!=d.files){for(var x=0;x<d.files.length;x++)mxUtils.bind(this,function(C){var y=new FileReader;y.onload=mxUtils.bind(this,function(I){f(new LocalLibrary(this,I.target.result,C.name))});y.readAsText(C)})(d.files[x]);d.type="";d.type="file";d.value=""}}));d.style.display="none";document.body.appendChild(d);this.libFileInputElt=d}this.libFileInputElt.click()}else{window.openNew=!1;window.openKey="open";window.listBrowserFiles=
+mxUtils.bind(this,function(x,C){StorageFile.listFiles(this,"L",x,C)});window.openBrowserFile=mxUtils.bind(this,function(x,C,y){StorageFile.getFileContent(this,x,C,y)});window.deleteBrowserFile=mxUtils.bind(this,function(x,C,y){StorageFile.deleteFile(this,x,C,y)});var q=Editor.useLocalStorage;Editor.useLocalStorage=b==App.MODE_BROWSER;window.openFile=new OpenFile(mxUtils.bind(this,function(x){this.hideDialog(x)}));window.openFile.setConsumer(mxUtils.bind(this,function(x,C){f(b==App.MODE_BROWSER?new StorageLibrary(this,
+x,C):new LocalLibrary(this,x,C))}));this.showDialog((new OpenDialog(this)).container,Editor.useLocalStorage?640:360,Editor.useLocalStorage?480:220,!0,!0,function(){Editor.useLocalStorage=q;window.openFile=null})}};
+App.prototype.saveLibrary=function(b,f,m,d,q,x,C){try{d=null!=d?d:this.mode;q=null!=q?q:!1;x=null!=x?x:!1;var y=this.createLibraryDataFromImages(f),I=mxUtils.bind(this,function(c){this.spinner.stop();null!=C&&C();this.handleError(c,null!=c?mxResources.get("errorSavingFile"):null)});null==m&&d==App.MODE_DEVICE&&(m=new LocalLibrary(this,y,b));if(null==m)this.pickFolder(d,mxUtils.bind(this,function(c){d==App.MODE_GOOGLE&&null!=this.drive&&this.spinner.spin(document.body,mxResources.get("inserting"))?
+this.drive.insertFile(b,y,c,mxUtils.bind(this,function(e){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(e,f)}),I,this.drive.libraryMimeType):d==App.MODE_GITHUB&&null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.gitHub.insertLibrary(b,y,mxUtils.bind(this,function(e){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(e,f)}),I,c):d==App.MODE_GITLAB&&null!=this.gitLab&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.gitLab.insertLibrary(b,
+y,mxUtils.bind(this,function(e){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(e,f)}),I,c):d==App.MODE_TRELLO&&null!=this.trello&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.trello.insertLibrary(b,y,mxUtils.bind(this,function(e){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(e,f)}),I,c):d==App.MODE_DROPBOX&&null!=this.dropbox&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.dropbox.insertLibrary(b,y,mxUtils.bind(this,function(e){this.spinner.stop();
+this.hideDialog(!0);this.libraryLoaded(e,f)}),I,c):d==App.MODE_ONEDRIVE&&null!=this.oneDrive&&this.spinner.spin(document.body,mxResources.get("inserting"))?this.oneDrive.insertLibrary(b,y,mxUtils.bind(this,function(e){this.spinner.stop();this.hideDialog(!0);this.libraryLoaded(e,f)}),I,c):d==App.MODE_BROWSER?StorageFile.doInsertFile(new StorageLibrary(this,y,b),mxUtils.bind(this,function(e){this.hideDialog(!0);this.libraryLoaded(e,f)}),I):this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")})}));
+else if(q||this.spinner.spin(document.body,mxResources.get("saving"))){m.setData(y);var M=mxUtils.bind(this,function(){m.save(!0,mxUtils.bind(this,function(c){this.spinner.stop();this.hideDialog(!0);x||this.libraryLoaded(m,f);null!=C&&C()}),I)});if(b!=m.getTitle()){var H=m.getHash();m.rename(b,mxUtils.bind(this,function(c){m.constructor!=LocalLibrary&&H!=m.getHash()&&(mxSettings.removeCustomLibrary(H),mxSettings.addCustomLibrary(m.getHash()));this.removeLibrarySidebar(H);M()}),I)}else M()}}catch(c){this.handleError(c)}};
+App.prototype.saveFile=function(b,f){var m=this.getCurrentFile(),d=this.mode;if(null!=m){var q=mxUtils.bind(this,function(){EditorUi.enableDrafts&&m.removeDraft();this.getCurrentFile()==m||m.isModified()||(m.getMode()!=App.MODE_DEVICE?this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(mxResources.get("allChangesSaved")))})):this.clearStatus());null!=f&&f()});if(b||null==m.getTitle()||null!=m.invalidFileHandle||null==this.mode)if(null!=m&&m.constructor==LocalFile&&
+null!=m.fileHandle)this.showSaveFilePicker(mxUtils.bind(this,function(y,I){m.invalidFileHandle=null;m.fileHandle=y;m.title=I.name;m.desc=I;m.editable=null;this.save(I.name,q)}),null,this.createFileSystemOptions(m.getTitle()));else{b=null!=m.getTitle()?m.getTitle():this.defaultFilename;var x=mxUtils.bind(this,function(y,I,M,H){if(null!=y&&0<y.length)if(/(\.pdf)$/i.test(y))this.confirm(mxResources.get("didYouMeanToExportToPdf"),mxUtils.bind(this,function(){this.hideDialog();this.actions.get("exportPdf").funct()}),
+mxUtils.bind(this,function(){M.value=y.split(".").slice(0,-1).join(".");M.focus();mxClient.IS_GC||mxClient.IS_FF||5<=document.documentMode?M.select():document.execCommand("selectAll",!1,null)}),mxResources.get("yes"),mxResources.get("no"));else if(this.hideDialog(),null==d&&I==App.MODE_DEVICE)null!=m&&EditorUi.nativeFileSupport?this.showSaveFilePicker(mxUtils.bind(this,function(e,g){m.fileHandle=e;m.mode=App.MODE_DEVICE;m.title=g.name;m.desc=g;this.setMode(App.MODE_DEVICE);this.save(g.name,q)}),mxUtils.bind(this,
+function(e){"AbortError"!=e.name&&this.handleError(e)}),this.createFileSystemOptions(y)):(this.setMode(App.MODE_DEVICE),this.save(y,q));else if("download"==I)(new LocalFile(this,null,y)).save();else if("_blank"==I)window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(this.getFileData(!0)),this.openLink(this.getUrl(window.location.pathname),null,!0);else if(d!=I){var c=mxUtils.bind(this,function(e){var g=this.editor.graph,l=g.getSelectionCells(),p=g.getViewState(),
+u=this.currentPage;this.createFile(y,this.getFileData(/(\.xml)$/i.test(y)||0>y.indexOf(".")||/(\.drawio)$/i.test(y),/(\.svg)$/i.test(y),/(\.html)$/i.test(y)),null,I,q,null==this.mode,e,null,null,mxUtils.bind(this,function(){this.restoreViewState(u,p,l)}))});null!=H?c(H):this.pickFolder(I,c)}else null!=I&&this.save(y,q)}),C=!mxClient.IS_IOS||!navigator.standalone;b=new SaveDialog(this,b,mxUtils.bind(this,function(y,I,M){x(y.value,I,y,M);this.hideDialog()}),C?null:["_blank"]);this.showDialog(b.container,
+420,150,!0,!1,mxUtils.bind(this,function(){this.hideDialog()}));b.init()}else this.save(m.getTitle(),q)}};
+App.prototype.loadTemplate=function(b,f,m,d,q){var x=!1,C=b,y=null!=d?d:b;d=/\.png$/i.test(y)||/\.pdf$/i.test(y);var I=EditorUi.isVisioFilename(y);this.editor.isCorsEnabledForUrl(C)||(x=d||I,C="t="+(new Date).getTime(),C=PROXY_URL+"?url="+encodeURIComponent(b)+"&"+C+(x?"&base64=1":""));this.editor.loadUrl(C,mxUtils.bind(this,function(M){try{var H=x?!window.atob||mxClient.IS_IE||mxClient.IS_IE11?Base64.decode(M):atob(M):M;if(I||this.isVisioData(H))I||(y=q?this.isRemoteVisioData(H)?"raw.vss":"raw.vssx":
+this.isRemoteVisioData(H)?"raw.vsd":"raw.vsdx"),this.importVisio(this.base64ToBlob(M.substring(M.indexOf(",")+1)),function(c){f(c)},m,y);else if((new XMLHttpRequest).upload&&this.isRemoteFileFormat(H,y))this.isExternalDataComms()?this.parseFileData(H,mxUtils.bind(this,function(c){4==c.readyState&&200<=c.status&&299>=c.status&&"<mxGraphModel"==c.responseText.substring(0,13)&&f(c.responseText)}),b):this.showError(mxResources.get("error"),mxResources.get("notInOffline"),null,m);else if(this.isLucidChartData(H))this.convertLucidChart(H,
+mxUtils.bind(this,function(c){f(c)}),mxUtils.bind(this,function(c){m(c)}));else{if(/(\.png)($|\?)/i.test(y)||Editor.isPngData(H))H=Editor.extractGraphModelFromPng(M);f(H)}}catch(c){m(c)}}),m,/(\.png)($|\?)/i.test(y)||I,null,null,x)};App.prototype.getModeForChar=function(b){return"G"==b?App.MODE_GOOGLE:"D"==b?App.MODE_DROPBOX:"W"==b?App.MODE_ONEDRIVE:"H"==b?App.MODE_GITHUB:"A"==b?App.MODE_GITLAB:"T"==b?App.MODE_TRELLO:null};
App.prototype.isModeEnabled=function(b){return b==App.MODE_GOOGLE?"function"===typeof window.DriveClient&&("1"!=urlParams.embed&&"0"!=urlParams.gapi||"1"==urlParams.embed&&"1"==urlParams.gapi)&&mxClient.IS_SVG&&isLocalStorage&&(null==document.documentMode||10<=document.documentMode):b==App.MODE_GITHUB?null!=this.gitHub:b==App.MODE_GITLAB?null!=this.gitLab:b==App.MODE_DROPBOX?"function"===typeof window.DropboxClient&&("1"!=urlParams.embed&&"0"!=urlParams.db||"1"==urlParams.embed&&"1"==urlParams.db)&&
mxClient.IS_SVG&&(null==document.documentMode||9<document.documentMode):b==App.MODE_ONEDRIVE?"function"===typeof window.OneDriveClient&&("www.draw.io"==window.location.hostname||"test.draw.io"==window.location.hostname||"drive.draw.io"==window.location.hostname||"app.diagrams.net"==window.location.hostname)&&("1"!=urlParams.embed&&"0"!=urlParams.od||"1"==urlParams.embed&&"1"==urlParams.od)&&!mxClient.IS_IOS&&(0>navigator.userAgent.indexOf("MSIE")||10<=document.documentMode):b==App.MODE_TRELLO?"function"===
typeof window.TrelloClient&&"1"==urlParams.tr&&mxClient.IS_SVG&&(null==document.documentMode||9<document.documentMode):!1};App.prototype.isModeReady=function(b){return null!=this.getServiceForName(b)&&(b!=App.MODE_DROPBOX||"undefined"!==typeof Dropbox.choose)};
-App.prototype.uncompressPages=function(b){if(null!=b)try{var f=mxUtils.parseXml(b);if("mxfile"==f.documentElement.nodeName){for(var m=f.documentElement.getElementsByTagName("diagram"),d=0;d<m.length;d++){var t=Editor.parseDiagramNode(m[d],!0);null!=t&&(mxUtils.setTextContent(m[d],""),m[d].appendChild(t))}b=mxUtils.getPrettyXml(f.documentElement)}}catch(x){}return b};
-App.prototype.createFile=function(b,f,m,d,t,x,v,B,J,N){d=B?null:null!=d?d:this.mode;if(null!=b&&this.spinner.spin(document.body,mxResources.get("inserting"))){f=null!=f?f:this.emptyDiagramXml;null==f||Editor.defaultCompressed||(f=this.uncompressPages(f));var I=mxUtils.bind(this,function(){this.spinner.stop()}),c=mxUtils.bind(this,function(g){I();null==g&&null==this.getCurrentFile()&&null==this.dialog?this.showSplash():null!=g&&this.handleError(g)});try{var e=mxUtils.bind(this,function(g){I();this.fileCreated(g,
-m,x,t,J,N)});d==App.MODE_GOOGLE&&null!=this.drive?(null==v&&null!=this.stateArg&&null!=this.stateArg.folderId&&(v=this.stateArg.folderId),this.drive.insertFile(b,f,v,e,c)):d==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.insertFile(b,f,e,c,!1,v):d==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.insertFile(b,f,e,c,!1,v):d==App.MODE_TRELLO&&null!=this.trello?this.trello.insertFile(b,f,e,c,!1,v):d==App.MODE_DROPBOX&&null!=this.dropbox?this.dropbox.insertFile(b,f,e,c):d==App.MODE_ONEDRIVE&&null!=this.oneDrive?
-this.oneDrive.insertFile(b,f,e,c,!1,v):d==App.MODE_BROWSER?StorageFile.insertFile(this,b,f,e,c):!B&&d==App.MODE_DEVICE&&EditorUi.nativeFileSupport?(I(),this.showSaveFilePicker(mxUtils.bind(this,function(g,l){var n=new LocalFile(this,f,l.name,null,g,l);n.saveFile(l.name,!1,mxUtils.bind(this,function(){this.fileCreated(n,m,x,t,J,N)}),c,!0)}),mxUtils.bind(this,function(g){"AbortError"!=g.name&&c(g)}),this.createFileSystemOptions(b))):(I(),this.fileCreated(new LocalFile(this,f,b,null==d),m,x,t,J,N))}catch(g){I(),
+App.prototype.uncompressPages=function(b){if(null!=b)try{var f=mxUtils.parseXml(b);if("mxfile"==f.documentElement.nodeName){for(var m=f.documentElement.getElementsByTagName("diagram"),d=0;d<m.length;d++){var q=Editor.parseDiagramNode(m[d],!0);null!=q&&(mxUtils.setTextContent(m[d],""),m[d].appendChild(q))}b=mxUtils.getPrettyXml(f.documentElement)}}catch(x){}return b};
+App.prototype.createFile=function(b,f,m,d,q,x,C,y,I,M){d=y?null:null!=d?d:this.mode;if(null!=b&&this.spinner.spin(document.body,mxResources.get("inserting"))){f=null!=f?f:this.emptyDiagramXml;null==f||Editor.defaultCompressed||(f=this.uncompressPages(f));var H=mxUtils.bind(this,function(){this.spinner.stop()}),c=mxUtils.bind(this,function(g){H();null==g&&null==this.getCurrentFile()&&null==this.dialog?this.showSplash():null!=g&&this.handleError(g)});try{var e=mxUtils.bind(this,function(g){H();this.fileCreated(g,
+m,x,q,I,M)});d==App.MODE_GOOGLE&&null!=this.drive?(null==C&&null!=this.stateArg&&null!=this.stateArg.folderId&&(C=this.stateArg.folderId),this.drive.insertFile(b,f,C,e,c)):d==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.insertFile(b,f,e,c,!1,C):d==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.insertFile(b,f,e,c,!1,C):d==App.MODE_TRELLO&&null!=this.trello?this.trello.insertFile(b,f,e,c,!1,C):d==App.MODE_DROPBOX&&null!=this.dropbox?this.dropbox.insertFile(b,f,e,c):d==App.MODE_ONEDRIVE&&null!=this.oneDrive?
+this.oneDrive.insertFile(b,f,e,c,!1,C):d==App.MODE_BROWSER?StorageFile.insertFile(this,b,f,e,c):!y&&d==App.MODE_DEVICE&&EditorUi.nativeFileSupport?(H(),this.showSaveFilePicker(mxUtils.bind(this,function(g,l){var p=new LocalFile(this,f,l.name,null,g,l);p.saveFile(l.name,!1,mxUtils.bind(this,function(){this.fileCreated(p,m,x,q,I,M)}),c,!0)}),mxUtils.bind(this,function(g){"AbortError"!=g.name&&c(g)}),this.createFileSystemOptions(b))):(H(),this.fileCreated(new LocalFile(this,f,b,null==d),m,x,q,I,M))}catch(g){H(),
this.handleError(g)}}};
-App.prototype.fileCreated=function(b,f,m,d,t,x){var v=window.location.pathname;null!=f&&0<f.length&&(v+="?libs="+f);null!=t&&0<t.length&&(v+="?clibs="+t);v=this.getUrl(v);b.getMode()!=App.MODE_DEVICE&&(v+="#"+b.getHash());if(this.spinner.spin(document.body,mxResources.get("inserting"))){var B=b.getData();B=0<B.length?this.editor.extractGraphModel(mxUtils.parseXml(B).documentElement,!0):null;var J=window.location.protocol+"//"+window.location.hostname+v,N=B,I=null;null!=B&&/\.svg$/i.test(b.getTitle())&&(I=
-this.createTemporaryGraph(this.editor.graph.getStylesheet()),document.body.appendChild(I.container),N=this.decodeNodeIntoGraph(N,I));b.setData(this.createFileData(B,I,b,J));null!=I&&I.container.parentNode.removeChild(I.container);var c=mxUtils.bind(this,function(){this.spinner.stop()}),e=mxUtils.bind(this,function(){c();var g=this.getCurrentFile();null==m&&null!=g&&(m=!g.isModified()&&null==g.getMode());var l=mxUtils.bind(this,function(){window.openFile=null;this.fileLoaded(b,null,x);m&&this.updateStatus(mxUtils.bind(this,
-function(){b.addAllSavedStatus()}));null!=f&&this.sidebar.showEntries(f);if(null!=t){for(var u=[],z=t.split(";"),D=0;D<z.length;D++)u.push(decodeURIComponent(z[D]));this.loadLibraries(u)}null!=d&&d()}),n=mxUtils.bind(this,function(){m||null==g||!g.isModified()?l():this.confirm(mxResources.get("allChangesLost"),null,l,mxResources.get("cancel"),mxResources.get("discardChanges"))});null==m||m?n():(b.constructor==LocalFile&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(b.getData(),
-b.getTitle(),null==b.getMode())),window.geOpenWindow(v,null,n))});b.constructor==LocalFile?e():b.saveFile(b.getTitle(),!1,mxUtils.bind(this,function(){e()}),mxUtils.bind(this,function(g){c();null!=g&&"AbortError"==g.name||this.handleError(g)}))}};
-App.prototype.loadFile=function(b,f,m,d,t){if("1"==urlParams.openInSameWin||navigator.standalone)f=!0;this.hideDialog();var x=mxUtils.bind(this,function(){if(null==b||0==b.length)this.clearStatus(),this.fileLoaded(null);else if(this.spinner.spin(document.body,mxResources.get("loading")))if("L"==b.charAt(0))if(this.spinner.stop(),isLocalStorage){var J=mxUtils.bind(this,function(g){this.handleError(g,mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var l=this.getCurrentFile();window.location.hash=
-null!=l?l.getHash():""}))});b=decodeURIComponent(b.substring(1));StorageFile.getFileContent(this,b,mxUtils.bind(this,function(g){null!=g?(this.fileLoaded(new StorageFile(this,g,b)),null!=d&&d()):J({message:mxResources.get("fileNotFound")})}),J)}else this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var g=this.getCurrentFile();window.location.hash=null!=g?g.getHash():""}));else if(null!=m)this.spinner.stop(),this.fileLoaded(m),
-null!=d&&d();else if("S"==b.charAt(0))this.spinner.stop(),this.alert("[Deprecation] #S is no longer supported, go to https://app.diagrams.net/?desc="+b.substring(1).substring(0,10),mxUtils.bind(this,function(){window.location.href="https://app.diagrams.net/?desc="+b.substring(1)}));else if("R"==b.charAt(0)){this.spinner.stop();var N=decodeURIComponent(b.substring(1));"<"!=N.charAt(0)&&(N=Graph.decompress(N));N=new LocalFile(this,N,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,
-!0);N.getHash=function(){return b};this.fileLoaded(N);null!=d&&d()}else if("E"==b.charAt(0))null==this.getCurrentFile()?this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile")):this.remoteInvoke("getDraftFileContent",null,null,mxUtils.bind(this,function(g,l){this.spinner.stop();this.fileLoaded(new EmbedFile(this,g,l));null!=d&&d()}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"))}));
-else if("U"==b.charAt(0)){var I=decodeURIComponent(b.substring(1)),c=mxUtils.bind(this,function(){if("https://drive.google.com/uc?id="!=I.substring(0,31)||null==this.drive&&"function"!==typeof window.DriveClient)return!1;this.hideDialog();var g=mxUtils.bind(this,function(){this.spinner.stop();if(null!=this.drive){var l=I.substring(31,I.lastIndexOf("&ex"));this.loadFile("G"+l,f,null,mxUtils.bind(this,function(){var n=this.getCurrentFile();null!=n&&this.editor.chromeless&&!this.editor.editable&&(n.getHash=
-function(){return"G"+l},window.location.hash="#"+n.getHash());null!=d&&d()}));return!0}return!1});!g()&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.addListener("clientLoaded",g);return!0});this.loadTemplate(I,mxUtils.bind(this,function(g){this.spinner.stop();if(null!=g&&0<g.length){var l=this.defaultFilename;if(null==urlParams.title&&"1"!=urlParams.notitle){var n=I,u=I.lastIndexOf("."),z=n.lastIndexOf("/");u>z&&0<z&&(n=n.substring(z+1,u),u=I.substring(u),this.useCanvasForExport||
-".png"!=u||(u=".drawio"),".svg"===u||".xml"===u||".html"===u||".png"===u||".drawio"===u)&&(l=n+u)}g=new LocalFile(this,g,null!=urlParams.title?decodeURIComponent(urlParams.title):l,!0);g.getHash=function(){return b};this.fileLoaded(g,!0)?null!=d&&d():c()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}else c()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}),mxUtils.bind(this,function(){c()||(this.spinner.stop(),
-this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile")))}),null!=urlParams["template-filename"]?decodeURIComponent(urlParams["template-filename"]):null)}else{var e=this.getModeForChar(b.charAt(0));mxUtils.bind(this,function(){var g=this.getServiceForName(e);if(null==g)this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var n=this.getCurrentFile();window.location.hash=null!=
-n?n.getHash():""}));else{var l=b.charAt(0);b=decodeURIComponent(b.substring(1));g.getFile(b,mxUtils.bind(this,function(n){this.spinner.stop();this.fileLoaded(n);var u=this.getCurrentFile();if(null==u)window.location.hash="",this.showSplash();else if(this.editor.chromeless&&!this.editor.editable){u.getHash=function(){return l+b};n="#"+u.getHash();try{var z=this.getHashObject();null==z||mxUtils.isEmptyObject(z)||(n=n+"#"+encodeURIComponent(JSON.stringify(z)))}catch(D){}window.location.replace(n)}else n==
-u&&null==n.getMode()&&this.updateStatus(mxUtils.bind(this,function(){var D=mxResources.get("copyCreated");this.editor.setStatus('<div title="'+D+'" class="geStatusAlert">'+D+"</div>")}));null!=d&&d()}),mxUtils.bind(this,function(n){null!=window.console&&null!=n&&console.log("error in loadFile:",b,n);var u=mxUtils.bind(this,function(){var z=this.getCurrentFile();null==z?(window.location.hash="",this.showSplash()):window.location.hash="#"+z.getHash()});null==n||"AbortError"!=n.name?this.handleError(n,
-null!=n?mxResources.get("errorLoadingFile"):null,u,null,null,"#"+l+b):u()}))}})()}}),v=this.getCurrentFile(),B=mxUtils.bind(this,function(){t||null==v||!v.isModified()?x():this.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){null!=v&&(window.location.hash=v.getHash())}),x,mxResources.get("cancel"),mxResources.get("discardChanges"))});null==b||0==b.length?B():null==v||f?B():this.showDialog((new PopupDialog(this,this.getUrl()+"#"+b,null,B)).container,340,140,!0,!0)};
+App.prototype.fileCreated=function(b,f,m,d,q,x){var C=window.location.pathname;null!=f&&0<f.length&&(C+="?libs="+f);null!=q&&0<q.length&&(C+="?clibs="+q);C=this.getUrl(C);b.getMode()!=App.MODE_DEVICE&&(C+="#"+b.getHash());if(this.spinner.spin(document.body,mxResources.get("inserting"))){var y=b.getData();y=0<y.length?this.editor.extractGraphModel(mxUtils.parseXml(y).documentElement,!0):null;var I=window.location.protocol+"//"+window.location.hostname+C,M=y,H=null;null!=y&&/\.svg$/i.test(b.getTitle())&&(H=
+this.createTemporaryGraph(this.editor.graph.getStylesheet()),document.body.appendChild(H.container),M=this.decodeNodeIntoGraph(M,H));b.setData(this.createFileData(y,H,b,I));null!=H&&H.container.parentNode.removeChild(H.container);var c=mxUtils.bind(this,function(){this.spinner.stop()}),e=mxUtils.bind(this,function(){c();var g=this.getCurrentFile();null==m&&null!=g&&(m=!g.isModified()&&null==g.getMode());var l=mxUtils.bind(this,function(){window.openFile=null;this.fileLoaded(b,null,x);m&&this.updateStatus(mxUtils.bind(this,
+function(){b.addAllSavedStatus()}));null!=f&&this.sidebar.showEntries(f);if(null!=q){for(var u=[],z=q.split(";"),E=0;E<z.length;E++)u.push(decodeURIComponent(z[E]));this.loadLibraries(u)}null!=d&&d()}),p=mxUtils.bind(this,function(){m||null==g||!g.isModified()?l():this.confirm(mxResources.get("allChangesLost"),null,l,mxResources.get("cancel"),mxResources.get("discardChanges"))});null==m||m?p():(b.constructor==LocalFile&&(window.openFile=new OpenFile(function(){window.openFile=null}),window.openFile.setData(b.getData(),
+b.getTitle(),null==b.getMode())),window.geOpenWindow(C,null,p))});b.constructor==LocalFile?e():b.saveFile(b.getTitle(),!1,mxUtils.bind(this,function(){e()}),mxUtils.bind(this,function(g){c();null!=g&&"AbortError"==g.name||this.handleError(g)}))}};
+App.prototype.loadFile=function(b,f,m,d,q){if("1"==urlParams.openInSameWin||navigator.standalone)f=!0;this.hideDialog();var x=mxUtils.bind(this,function(){if(null==b||0==b.length)this.clearStatus(),this.fileLoaded(null);else if(this.spinner.spin(document.body,mxResources.get("loading")))if("L"==b.charAt(0))if(this.spinner.stop(),isLocalStorage){var I=mxUtils.bind(this,function(g){this.handleError(g,mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var l=this.getCurrentFile();window.location.hash=
+null!=l?l.getHash():""}))});b=decodeURIComponent(b.substring(1));StorageFile.getFileContent(this,b,mxUtils.bind(this,function(g){null!=g?(this.fileLoaded(new StorageFile(this,g,b)),null!=d&&d()):I({message:mxResources.get("fileNotFound")})}),I)}else this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var g=this.getCurrentFile();window.location.hash=null!=g?g.getHash():""}));else if(null!=m)this.spinner.stop(),this.fileLoaded(m),
+null!=d&&d();else if("S"==b.charAt(0))this.spinner.stop(),this.alert("[Deprecation] #S is no longer supported, go to https://app.diagrams.net/?desc="+b.substring(1).substring(0,10),mxUtils.bind(this,function(){window.location.href="https://app.diagrams.net/?desc="+b.substring(1)}));else if("R"==b.charAt(0)){this.spinner.stop();var M=decodeURIComponent(b.substring(1));"<"!=M.charAt(0)&&(M=Graph.decompress(M));M=new LocalFile(this,M,null!=urlParams.title?decodeURIComponent(urlParams.title):this.defaultFilename,
+!0);M.getHash=function(){return b};this.fileLoaded(M);null!=d&&d()}else if("E"==b.charAt(0))null==this.getCurrentFile()?this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile")):this.remoteInvoke("getDraftFileContent",null,null,mxUtils.bind(this,function(g,l){this.spinner.stop();this.fileLoaded(new EmbedFile(this,g,l));null!=d&&d()}),mxUtils.bind(this,function(){this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"))}));
+else if("U"==b.charAt(0)){var H=decodeURIComponent(b.substring(1)),c=mxUtils.bind(this,function(){if("https://drive.google.com/uc?id="!=H.substring(0,31)||null==this.drive&&"function"!==typeof window.DriveClient)return!1;this.hideDialog();var g=mxUtils.bind(this,function(){this.spinner.stop();if(null!=this.drive){var l=H.substring(31,H.lastIndexOf("&ex"));this.loadFile("G"+l,f,null,mxUtils.bind(this,function(){var p=this.getCurrentFile();null!=p&&this.editor.chromeless&&!this.editor.editable&&(p.getHash=
+function(){return"G"+l},window.location.hash="#"+p.getHash());null!=d&&d()}));return!0}return!1});!g()&&this.spinner.spin(document.body,mxResources.get("loading"))&&this.addListener("clientLoaded",g);return!0});this.loadTemplate(H,mxUtils.bind(this,function(g){this.spinner.stop();if(null!=g&&0<g.length){var l=this.defaultFilename;if(null==urlParams.title&&"1"!=urlParams.notitle){var p=H,u=H.lastIndexOf("."),z=p.lastIndexOf("/");u>z&&0<z&&(p=p.substring(z+1,u),u=H.substring(u),this.useCanvasForExport||
+".png"!=u||(u=".drawio"),".svg"===u||".xml"===u||".html"===u||".png"===u||".drawio"===u)&&(l=p+u)}g=new LocalFile(this,g,null!=urlParams.title?decodeURIComponent(urlParams.title):l,!0);g.getHash=function(){return b};this.fileLoaded(g,!0)?null!=d&&d():c()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}else c()||this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"))}),mxUtils.bind(this,function(){c()||(this.spinner.stop(),
+this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile")))}),null!=urlParams["template-filename"]?decodeURIComponent(urlParams["template-filename"]):null)}else{var e=this.getModeForChar(b.charAt(0));mxUtils.bind(this,function(){var g=this.getServiceForName(e);if(null==g)this.handleError({message:mxResources.get("serviceUnavailableOrBlocked")},mxResources.get("errorLoadingFile"),mxUtils.bind(this,function(){var p=this.getCurrentFile();window.location.hash=null!=
+p?p.getHash():""}));else{var l=b.charAt(0);b=decodeURIComponent(b.substring(1));g.getFile(b,mxUtils.bind(this,function(p){this.spinner.stop();this.fileLoaded(p);var u=this.getCurrentFile();if(null==u)window.location.hash="",this.showSplash();else if(this.editor.chromeless&&!this.editor.editable){u.getHash=function(){return l+b};p="#"+u.getHash();try{var z=this.getHashObject();null==z||mxUtils.isEmptyObject(z)||(p=p+"#"+encodeURIComponent(JSON.stringify(z)))}catch(E){}window.location.replace(p)}else p==
+u&&null==p.getMode()&&this.updateStatus(mxUtils.bind(this,function(){var E=mxResources.get("copyCreated");this.editor.setStatus('<div title="'+E+'" class="geStatusAlert">'+E+"</div>")}));null!=d&&d()}),mxUtils.bind(this,function(p){null!=window.console&&null!=p&&console.log("error in loadFile:",b,p);var u=mxUtils.bind(this,function(){var z=this.getCurrentFile();null==z?(window.location.hash="",this.showSplash()):window.location.hash="#"+z.getHash()});null==p||"AbortError"!=p.name?this.handleError(p,
+null!=p?mxResources.get("errorLoadingFile"):null,u,null,null,"#"+l+b):u()}))}})()}}),C=this.getCurrentFile(),y=mxUtils.bind(this,function(){q||null==C||!C.isModified()?x():this.confirm(mxResources.get("allChangesLost"),mxUtils.bind(this,function(){null!=C&&(window.location.hash=C.getHash())}),x,mxResources.get("cancel"),mxResources.get("discardChanges"))});null==b||0==b.length?y():null==C||f?y():this.showDialog((new PopupDialog(this,this.getUrl()+"#"+b,null,y)).container,340,140,!0,!0)};
App.prototype.getLibraryStorageHint=function(b){var f=b.getTitle();b.constructor!=LocalLibrary&&(f+="\n"+b.getHash());b.constructor==DriveLibrary?f+=" ("+mxResources.get("googleDrive")+")":b.constructor==GitHubLibrary?f+=" ("+mxResources.get("github")+")":b.constructor==TrelloLibrary?f+=" ("+mxResources.get("trello")+")":b.constructor==DropboxLibrary?f+=" ("+mxResources.get("dropbox")+")":b.constructor==OneDriveLibrary?f+=" ("+mxResources.get("oneDrive")+")":b.constructor==StorageLibrary?f+=" ("+
mxResources.get("browser")+")":b.constructor==LocalLibrary&&(f+=" ("+mxResources.get("device")+")");return f};App.prototype.restoreLibraries=function(){function b(m){for(var d=0;d<m.length;d++)""!=m[d]&&0>mxUtils.indexOf(f,m[d])&&f.push(m[d])}var f=[];b(mxSettings.getCustomLibraries());b((urlParams.clibs||"").split(";"));this.loadLibraries(f)};
-App.prototype.loadLibraries=function(b,f){if(null!=this.sidebar){null==this.loadedLibraries&&(this.loadedLibraries={});var m=mxUtils.bind(this,function(N,I){I||mxSettings.removeCustomLibrary(N);delete this.loadedLibraries[N]}),d=0,t=[],x=0<b.length&&"L.scratchpad"==b[0]?1:0,v=mxUtils.bind(this,function(){if(0==d){if(null!=b)for(var N=b.length-1;0<=N;N--)null!=t[N]&&this.loadLibrary(t[N],N<=x);null!=f&&f()}});if(null!=b)for(var B=0;B<b.length;B++){var J=encodeURIComponent(decodeURIComponent(b[B]));
-mxUtils.bind(this,function(N,I){if(null!=N&&0<N.length&&null==this.loadedLibraries[N]&&null==this.sidebar.palettes[N]){this.loadedLibraries[N]=!0;d++;var c=mxUtils.bind(this,function(z){t[I]=z;d--;v()}),e=mxUtils.bind(this,function(z){m(N,z);d--;v()}),g=N.substring(0,1);if("L"==g)(isLocalStorage||mxClient.IS_CHROMEAPP)&&window.setTimeout(mxUtils.bind(this,function(){try{var z=decodeURIComponent(N.substring(1));StorageFile.getFileContent(this,z,mxUtils.bind(this,function(D){".scratchpad"==z&&null==
-D&&(D=this.emptyLibraryXml);null!=D?c(new StorageLibrary(this,D,z)):e()}),e)}catch(D){e()}}),0);else if("U"==g){var l=decodeURIComponent(N.substring(1));this.isOffline()?e(!0):this.loadTemplate(l,mxUtils.bind(this,function(z){null!=z&&0<z.length?c(new UrlLibrary(this,z,l)):e()}),function(){e()},null,!0)}else if("R"==g){g=decodeURIComponent(N.substring(1));try{g=JSON.parse(g);var n={id:g[0],title:g[1],downloadUrl:g[2]};this.remoteInvoke("getFileContent",[n.downloadUrl],null,mxUtils.bind(this,function(z){try{c(new RemoteLibrary(this,
-z,n))}catch(D){e()}}),function(){e()})}catch(z){e()}}else if("S"==g&&null!=this.loadDesktopLib)try{this.loadDesktopLib(decodeURIComponent(N.substring(1)),function(z){c(z)},e)}catch(z){e()}else{var u=null;"G"==g?null!=this.drive&&null!=this.drive.user&&(u=this.drive):"H"==g?null!=this.gitHub&&null!=this.gitHub.getUser()&&(u=this.gitHub):"T"==g?null!=this.trello&&this.trello.isAuthorized()&&(u=this.trello):"D"==g?null!=this.dropbox&&null!=this.dropbox.getUser()&&(u=this.dropbox):"W"==g&&null!=this.oneDrive&&
-null!=this.oneDrive.getUser()&&(u=this.oneDrive);null!=u?u.getLibrary(decodeURIComponent(N.substring(1)),mxUtils.bind(this,function(z){try{c(z)}catch(D){e()}}),function(z){e()}):e(!0)}}})(J,B)}v()}};
+App.prototype.loadLibraries=function(b,f){if(null!=this.sidebar){null==this.loadedLibraries&&(this.loadedLibraries={});var m=mxUtils.bind(this,function(M,H){H||mxSettings.removeCustomLibrary(M);delete this.loadedLibraries[M]}),d=0,q=[],x=0<b.length&&"L.scratchpad"==b[0]?1:0,C=mxUtils.bind(this,function(){if(0==d){if(null!=b)for(var M=b.length-1;0<=M;M--)null!=q[M]&&this.loadLibrary(q[M],M<=x);null!=f&&f()}});if(null!=b)for(var y=0;y<b.length;y++){var I=encodeURIComponent(decodeURIComponent(b[y]));
+mxUtils.bind(this,function(M,H){if(null!=M&&0<M.length&&null==this.loadedLibraries[M]&&null==this.sidebar.palettes[M]){this.loadedLibraries[M]=!0;d++;var c=mxUtils.bind(this,function(z){q[H]=z;d--;C()}),e=mxUtils.bind(this,function(z){m(M,z);d--;C()}),g=M.substring(0,1);if("L"==g)(isLocalStorage||mxClient.IS_CHROMEAPP)&&window.setTimeout(mxUtils.bind(this,function(){try{var z=decodeURIComponent(M.substring(1));StorageFile.getFileContent(this,z,mxUtils.bind(this,function(E){".scratchpad"==z&&null==
+E&&(E=this.emptyLibraryXml);null!=E?c(new StorageLibrary(this,E,z)):e()}),e)}catch(E){e()}}),0);else if("U"==g){var l=decodeURIComponent(M.substring(1));this.isOffline()?e(!0):this.loadTemplate(l,mxUtils.bind(this,function(z){null!=z&&0<z.length?c(new UrlLibrary(this,z,l)):e()}),function(){e()},null,!0)}else if("R"==g){g=decodeURIComponent(M.substring(1));try{g=JSON.parse(g);var p={id:g[0],title:g[1],downloadUrl:g[2]};this.remoteInvoke("getFileContent",[p.downloadUrl],null,mxUtils.bind(this,function(z){try{c(new RemoteLibrary(this,
+z,p))}catch(E){e()}}),function(){e()})}catch(z){e()}}else if("S"==g&&null!=this.loadDesktopLib)try{this.loadDesktopLib(decodeURIComponent(M.substring(1)),function(z){c(z)},e)}catch(z){e()}else{var u=null;"G"==g?null!=this.drive&&null!=this.drive.user&&(u=this.drive):"H"==g?null!=this.gitHub&&null!=this.gitHub.getUser()&&(u=this.gitHub):"T"==g?null!=this.trello&&this.trello.isAuthorized()&&(u=this.trello):"D"==g?null!=this.dropbox&&null!=this.dropbox.getUser()&&(u=this.dropbox):"W"==g&&null!=this.oneDrive&&
+null!=this.oneDrive.getUser()&&(u=this.oneDrive);null!=u?u.getLibrary(decodeURIComponent(M.substring(1)),mxUtils.bind(this,function(z){try{c(z)}catch(E){e()}}),function(z){e()}):e(!0)}}})(I,y)}C()}};
App.prototype.updateButtonContainer=function(){if(null!=this.buttonContainer)if(null!=urlParams.notif?this.fetchAndShowNotification(urlParams.notif):"1"!=urlParams.extAuth&&"atlas"!=Editor.currentTheme&&this.fetchAndShowNotification("online",this.mode),this.isStandaloneApp()||"simple"==Editor.currentTheme&&"1"!=urlParams.embed)this.buttonContainer.style.display="none",null!=this.notificationBtn&&this.notificationBtn.parentNode!=this.sketchMenubarElt&&this.sketchMenubarElt.appendChild(this.notificationBtn);
else{this.buttonContainer.style.display="";var b=this.getCurrentFile();null!=this.notificationBtn&&this.notificationBtn.parentNode!=this.buttonContainer&&this.buttonContainer.appendChild(this.notificationBtn);"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&(null==this.commentButton&&(this.commentButton=document.createElement("a"),this.setElementTitle(this.commentButton,"comments"),this.commentButton.className="geButton geRoundButton",this.commentButton.style.backgroundImage="url("+Editor.commentImage+
")",mxEvent.addListener(this.commentButton,"click",mxUtils.bind(this,function(){this.actions.get("comments").funct()})),this.buttonContainer.appendChild(this.commentButton)),this.commentButton.style.display=this.commentsSupported()?"":"none");if(null==this.shareButton){this.shareButton=document.createElement("button");this.shareButton.className="geBtn gePrimaryBtn";var f=document.createElement("div");f.className="geButton";f.style.backgroundImage="url("+Editor.groupImage+")";this.shareButton.appendChild(f);
this.dependsOnLanguage(mxUtils.bind(this,function(){f.innerHTML="";mxUtils.write(f,mxResources.get("share"));this.shareButton.setAttribute("title",mxResources.get("share"))}));mxEvent.addListener(this.shareButton,"click",mxUtils.bind(this,function(){this.actions.get("share").funct()}));this.buttonContainer.appendChild(this.shareButton)}this.shareButton.style.display=null!=b&&"kennedy"==Editor.currentTheme&&"1"!=urlParams.embed?"":"none";if("simple"!=Editor.currentTheme){if(null==this.userButton){this.userButton=
-document.createElement("a");this.userButton.className="geButton geRoundButton";var m=document.createElement("img");this.userButton.appendChild(m);mxEvent.addListener(this.userButton,"click",mxUtils.bind(this,function(B){this.toggleUserPanel();var J=this.userButton.getBoundingClientRect(),N=window.innerWidth||document.documentElement.clientWidth;this.userPanel.style.top=J.bottom+"px";this.userPanel.style.right=N-J.right+"px";mxEvent.consume(B)}));var d=document.createElement("img");d.style.position=
-"absolute";d.style.width="10px";this.userButton.appendChild(d);this.buttonContainer.appendChild(this.userButton)}if(!this.unloading){m=this.userButton.getElementsByTagName("img")[0];d=this.userButton.getElementsByTagName("img")[1];var t=mxResources.get("changeUser"),x=this.getMainUser();null!=x&&null!=x.displayName&&(t=x.displayName);null!=x&&null!=x.pictureUrl?(m.classList.remove("geAdaptiveAsset"),m.src=x.pictureUrl,d.style.top="3px",d.style.right="0"):(m.classList.add("geAdaptiveAsset"),m.src=
-Editor.userImage,d.style.top="6px",d.style.right="4px");if(null!=b&&b.isRealtimeEnabled()&&b.isRealtimeSupported()){d.style.display="";m=b.getRealtimeError();var v=b.getRealtimeState();t+=" (";1==v?(d.src=Editor.syncImage,t+=mxResources.get("online")):(d.src=Editor.syncProblemImage,t=null!=m&&null!=m.message?t+m.message:t+mxResources.get("disconnected"));t+=")"}else d.style.display="none",d.src=Editor.cloudImage;this.userButton.setAttribute("title",t);this.userButton.style.display="draw.io"!=this.getServiceName()||
+document.createElement("a");this.userButton.className="geButton geRoundButton";var m=document.createElement("img");this.userButton.appendChild(m);mxEvent.addListener(this.userButton,"click",mxUtils.bind(this,function(y){this.toggleUserPanel();var I=this.userButton.getBoundingClientRect(),M=window.innerWidth||document.documentElement.clientWidth;this.userPanel.style.top=I.bottom+"px";this.userPanel.style.right=M-I.right+"px";mxEvent.consume(y)}));var d=document.createElement("img");d.style.position=
+"absolute";d.style.width="10px";this.userButton.appendChild(d);this.buttonContainer.appendChild(this.userButton)}if(!this.unloading){m=this.userButton.getElementsByTagName("img")[0];d=this.userButton.getElementsByTagName("img")[1];var q=mxResources.get("changeUser"),x=this.getMainUser();null!=x&&null!=x.displayName&&(q=x.displayName);null!=x&&null!=x.pictureUrl?(m.classList.remove("geAdaptiveAsset"),m.src=x.pictureUrl,d.style.top="3px",d.style.right="0"):(m.classList.add("geAdaptiveAsset"),m.src=
+Editor.userImage,d.style.top="6px",d.style.right="4px");if(null!=b&&b.isRealtimeEnabled()&&b.isRealtimeSupported()){d.style.display="";m=b.getRealtimeError();var C=b.getRealtimeState();q+=" (";1==C?(d.src=Editor.syncImage,q+=mxResources.get("online")):(d.src=Editor.syncProblemImage,q=null!=m&&null!=m.message?q+m.message:q+mxResources.get("disconnected"));q+=")"}else d.style.display="none",d.src=Editor.cloudImage;this.userButton.setAttribute("title",q);this.userButton.style.display="draw.io"!=this.getServiceName()||
null==x||"1"==urlParams.embed||this.isStandaloneApp()||null==b?"none":""}}}};
-App.prototype.fetchAndShowNotification=function(b,f){if(!this.fetchingNotif){b=b||"online";var m=null,d=mxUtils.bind(this,function(t){t=t.filter(function(J){return!J.targets||-1<J.targets.indexOf(b)||null!=f&&-1<J.targets.indexOf(f)});for(var x=b+"NotifReadTS",v=isLocalStorage?parseInt(localStorage.getItem(x)):!0,B=0;B<t.length;B++)t[B].isNew=!v||t[B].timestamp>v;this.showNotification(t,x)});try{isLocalStorage&&(m=JSON.parse(localStorage.getItem(".notifCache")))}catch(t){}null==m||m.ts+864E5<Date.now()?
-(this.fetchingNotif=!0,mxUtils.get(NOTIFICATIONS_URL,mxUtils.bind(this,function(t){if(200<=t.getStatus()&&299>=t.getStatus())try{var x=JSON.parse(t.getText());x.sort(function(v,B){return B.timestamp-v.timestamp});isLocalStorage&&localStorage.setItem(".notifCache",JSON.stringify({ts:Date.now(),notifs:x}));this.fetchingNotif=!1;d(x)}catch(v){}}))):d(m.notifs)}};
-App.prototype.showNotification=function(b,f){function m(N){var I=document.querySelector(".geNotification-count");null!=I&&(I.innerHTML=N,I.style.display=0==N?"none":"",I=document.querySelector(".geNotification-bell"),I.style.animation=0==N?"none":"",I.className="geNotification-bell"+(0==N?" geNotification-bellOff":""),document.querySelector(".geBell-rad").style.animation=0==N?"none":"")}var d=b.length;if("min"==Editor.currentTheme||"simple"==Editor.currentTheme)for(var t=d=0;t<b.length;t++)b[t].isNew&&
-d++;if(0==d)null!=this.notificationBtn&&(this.notificationBtn.style.display="none",this.editor.fireEvent(new mxEventObject("statusChanged")));else{var x=mxUtils.bind(this,function(){this.notificationWin.style.display="none";for(var N=this.notificationWin.querySelectorAll(".circle.active"),I=0;I<N.length;I++)N[I].className="circle";isLocalStorage&&b[0]&&localStorage.setItem(f,b[0].timestamp)});if(null==this.notificationBtn){this.notificationBtn=document.createElement("div");this.notificationBtn.className=
-"geNotification-box";d=document.createElement("span");d.className="geNotification-count";this.notificationBtn.appendChild(d);this.notifCount=d;d=document.createElement("div");d.className="geNotification-bell";t=document.createElement("span");t.className="geBell-top";d.appendChild(t);t=document.createElement("span");t.className="geBell-middle";d.appendChild(t);t=document.createElement("span");t.className="geBell-bottom";d.appendChild(t);t=document.createElement("span");t.className="geBell-rad";d.appendChild(t);
-this.notificationBtn.appendChild(d);this.notificationWin=document.createElement("div");this.notificationWin.className="geNotifPanel";this.notificationWin.style.display="none";document.body.appendChild(this.notificationWin);t=document.createElement("div");t.className="header";d=document.createElement("span");d.className="title";d.textContent=mxResources.get("notifications");t.appendChild(d);d=document.createElement("span");d.className="closeBtn";d.textContent="x";t.appendChild(d);this.notificationWin.appendChild(t);
-t=document.createElement("div");t.className="notifications clearfix";var v=document.createElement("div");v.setAttribute("id","geNotifList");v.style.position="relative";t.appendChild(v);this.notificationWin.appendChild(t);mxEvent.addListener(this.notificationBtn,"click",mxUtils.bind(this,function(){if("none"==this.notificationWin.style.display){this.notificationWin.style.display="";document.querySelector(".notifications").scrollTop=0;var N=this.notificationBtn.getBoundingClientRect();this.notificationWin.style.top=
-N.top+this.notificationBtn.clientHeight+"px";this.notificationWin.style.left=N.right-this.notificationWin.clientWidth+"px";m(0)}else x()}));mxEvent.addListener(d,"click",x)}else this.notificationBtn.style.display="";var B=0,J=document.getElementById("geNotifList");if(null!=J){J.innerHTML='<div class="line"></div>';for(t=0;t<b.length;t++)(function(N,I){I.isNew&&B++;var c=document.createElement("div");c.className="notification";N=N.timeSince(new Date(I.timestamp));null==N&&(N=mxResources.get("lessThanAMinute"));
-c.innerHTML='<div class="circle'+(I.isNew?" active":"")+'"></div><span class="time">'+mxUtils.htmlEntities(mxResources.get("timeAgo",[N],"{1} ago"))+"</span><p>"+mxUtils.htmlEntities(I.content)+"</p>";I.link&&mxEvent.addListener(c,"click",function(){window.open(I.link,"notifWin")});J.appendChild(c)})(this,b[t]);m(B)}}};
-App.prototype.save=function(b,f){var m=this.getCurrentFile(),d=!0,t=mxUtils.bind(this,function(){d&&(d=!1,m.handleFileSuccess(!0),null!=f&&f())}),x=mxUtils.bind(this,function(v){if(d){d=!1;Editor.addRetryToError(v,mxUtils.bind(this,function(){this.save(b,f)}));if(null!=v&&null!=v.retry){var B=v.retry;v.retry=function(){d=!0;try{m.isModified()?B():t()}catch(J){x(J)}}}m.handleFileError(v,null==v||"AbortError"!=v.name)}});if(null!=m&&this.spinner.spin(document.body,mxResources.get("saving"),x,3*this.timeout))try{this.clearStatus(),
-this.editor.graph.isEditing()&&this.editor.graph.stopEditing(),b==m.getTitle()?m.save(!0,t,x):m.saveAs(b,t,x)}catch(v){x(v)}};App.prototype.getExtensionForService=function(b){b=this.getServiceForName(b);return null!=b?b.extension:".drawio"};App.prototype.getServiceForName=function(b){return b==App.MODE_GOOGLE?this.drive:b==App.MODE_ONEDRIVE?this.oneDrive:b==App.MODE_DROPBOX?this.dropbox:b==App.MODE_GITHUB?this.gitHub:b==App.MODE_GITLAB?this.gitLab:b==App.MODE_TRELLO?this.trello:null};
+App.prototype.fetchAndShowNotification=function(b,f){if(!this.fetchingNotif){b=b||"online";var m=null,d=mxUtils.bind(this,function(q){q=q.filter(function(I){return!I.targets||-1<I.targets.indexOf(b)||null!=f&&-1<I.targets.indexOf(f)});for(var x=b+"NotifReadTS",C=isLocalStorage?parseInt(localStorage.getItem(x)):!0,y=0;y<q.length;y++)q[y].isNew=!C||q[y].timestamp>C;this.showNotification(q,x)});try{isLocalStorage&&(m=JSON.parse(localStorage.getItem(".notifCache")))}catch(q){}null==m||m.ts+864E5<Date.now()?
+(this.fetchingNotif=!0,mxUtils.get(NOTIFICATIONS_URL,mxUtils.bind(this,function(q){if(200<=q.getStatus()&&299>=q.getStatus())try{var x=JSON.parse(q.getText());x.sort(function(C,y){return y.timestamp-C.timestamp});isLocalStorage&&localStorage.setItem(".notifCache",JSON.stringify({ts:Date.now(),notifs:x}));this.fetchingNotif=!1;d(x)}catch(C){}}))):d(m.notifs)}};
+App.prototype.showNotification=function(b,f){function m(M){var H=document.querySelector(".geNotification-count");null!=H&&(H.innerHTML=M,H.style.display=0==M?"none":"",H=document.querySelector(".geNotification-bell"),H.style.animation=0==M?"none":"",H.className="geNotification-bell"+(0==M?" geNotification-bellOff":""),document.querySelector(".geBell-rad").style.animation=0==M?"none":"")}var d=b.length;if("min"==Editor.currentTheme||"simple"==Editor.currentTheme)for(var q=d=0;q<b.length;q++)b[q].isNew&&
+d++;if(0==d)null!=this.notificationBtn&&(this.notificationBtn.style.display="none",this.editor.fireEvent(new mxEventObject("statusChanged")));else{var x=mxUtils.bind(this,function(){this.notificationWin.style.display="none";for(var M=this.notificationWin.querySelectorAll(".circle.active"),H=0;H<M.length;H++)M[H].className="circle";isLocalStorage&&b[0]&&localStorage.setItem(f,b[0].timestamp)});if(null==this.notificationBtn){this.notificationBtn=document.createElement("div");this.notificationBtn.className=
+"geNotification-box";d=document.createElement("span");d.className="geNotification-count";this.notificationBtn.appendChild(d);this.notifCount=d;d=document.createElement("div");d.className="geNotification-bell";q=document.createElement("span");q.className="geBell-top";d.appendChild(q);q=document.createElement("span");q.className="geBell-middle";d.appendChild(q);q=document.createElement("span");q.className="geBell-bottom";d.appendChild(q);q=document.createElement("span");q.className="geBell-rad";d.appendChild(q);
+this.notificationBtn.appendChild(d);this.notificationWin=document.createElement("div");this.notificationWin.className="geNotifPanel";this.notificationWin.style.display="none";document.body.appendChild(this.notificationWin);q=document.createElement("div");q.className="header";d=document.createElement("span");d.className="title";d.textContent=mxResources.get("notifications");q.appendChild(d);d=document.createElement("span");d.className="closeBtn";d.textContent="x";q.appendChild(d);this.notificationWin.appendChild(q);
+q=document.createElement("div");q.className="notifications clearfix";var C=document.createElement("div");C.setAttribute("id","geNotifList");C.style.position="relative";q.appendChild(C);this.notificationWin.appendChild(q);mxEvent.addListener(this.notificationBtn,"click",mxUtils.bind(this,function(){if("none"==this.notificationWin.style.display){this.notificationWin.style.display="";document.querySelector(".notifications").scrollTop=0;var M=this.notificationBtn.getBoundingClientRect();this.notificationWin.style.top=
+M.top+this.notificationBtn.clientHeight+"px";this.notificationWin.style.left=M.right-this.notificationWin.clientWidth+"px";m(0)}else x()}));mxEvent.addListener(d,"click",x)}else this.notificationBtn.style.display="";var y=0,I=document.getElementById("geNotifList");if(null!=I){I.innerHTML='<div class="line"></div>';for(q=0;q<b.length;q++)(function(M,H){H.isNew&&y++;var c=document.createElement("div");c.className="notification";M=M.timeSince(new Date(H.timestamp));null==M&&(M=mxResources.get("lessThanAMinute"));
+c.innerHTML='<div class="circle'+(H.isNew?" active":"")+'"></div><span class="time">'+mxUtils.htmlEntities(mxResources.get("timeAgo",[M],"{1} ago"))+"</span><p>"+mxUtils.htmlEntities(H.content)+"</p>";H.link&&mxEvent.addListener(c,"click",function(){window.open(H.link,"notifWin")});I.appendChild(c)})(this,b[q]);m(y)}}};
+App.prototype.save=function(b,f){var m=this.getCurrentFile(),d=!0,q=mxUtils.bind(this,function(){d&&(d=!1,m.handleFileSuccess(!0),null!=f&&f())}),x=mxUtils.bind(this,function(C){if(d){d=!1;Editor.addRetryToError(C,mxUtils.bind(this,function(){this.save(b,f)}));if(null!=C&&null!=C.retry){var y=C.retry;C.retry=function(){d=!0;try{m.isModified()?y():q()}catch(I){x(I)}}}m.handleFileError(C,null==C||"AbortError"!=C.name)}});if(null!=m&&this.spinner.spin(document.body,mxResources.get("saving"),x,3*this.timeout))try{this.clearStatus(),
+this.editor.graph.isEditing()&&this.editor.graph.stopEditing(),b==m.getTitle()?m.save(!0,q,x):m.saveAs(b,q,x)}catch(C){x(C)}};App.prototype.getExtensionForService=function(b){b=this.getServiceForName(b);return null!=b?b.extension:".drawio"};App.prototype.getServiceForName=function(b){return b==App.MODE_GOOGLE?this.drive:b==App.MODE_ONEDRIVE?this.oneDrive:b==App.MODE_DROPBOX?this.dropbox:b==App.MODE_GITHUB?this.gitHub:b==App.MODE_GITLAB?this.gitLab:b==App.MODE_TRELLO?this.trello:null};
App.prototype.getTitleForService=function(b){return b==App.MODE_GOOGLE?mxResources.get("googleDrive"):b==App.MODE_ONEDRIVE?mxResources.get("oneDrive"):EditorUi.prototype.getTitleForService.apply(this,arguments)};
-App.prototype.pickFolder=function(b,f,m,d,t,x){m=null!=m?m:!0;this.spinner=null!=this.spinner?this.spinner:this.createSpinner(null,null,24);var v=this.spinner.pause();m&&b==App.MODE_GOOGLE&&null!=this.drive?this.drive.pickFolder(mxUtils.bind(this,function(B){v();if(B.action==google.picker.Action.PICKED){var J=null;null!=B.docs&&0<B.docs.length&&"folder"==B.docs[0].type&&(J=B.docs[0].id);f(x?B:J)}}),t):m&&b==App.MODE_ONEDRIVE&&null!=this.oneDrive?this.oneDrive.pickFolder(mxUtils.bind(this,function(B){v();
-if(null!=B&&null!=B.value&&0<B.value.length){var J=OneDriveFile.prototype.getIdOf(B.value[0]);f(x?B:J)}}),d):m&&b==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.pickFolder(mxUtils.bind(this,function(B){v();f(B)})):m&&b==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.pickFolder(mxUtils.bind(this,function(B){v();f(B)})):m&&b==App.MODE_TRELLO&&null!=this.trello?this.trello.pickFolder(mxUtils.bind(this,function(B){v();f(B)})):EditorUi.prototype.pickFolder.apply(this,arguments)};
-App.prototype.exportFile=function(b,f,m,d,t,x){t==App.MODE_DROPBOX?null!=this.dropbox&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.dropbox.insertFile(f,d?this.base64ToBlob(b,m):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)})):t==App.MODE_GOOGLE?null!=this.drive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.drive.insertFile(f,b,x,mxUtils.bind(this,function(v){this.spinner.stop()}),
-mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)}),m,d):t==App.MODE_ONEDRIVE?null!=this.oneDrive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.oneDrive.insertFile(f,d?this.base64ToBlob(b,m):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)}),!1,x):t==App.MODE_GITHUB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitHub.insertFile(f,b,mxUtils.bind(this,
-function(){this.spinner.stop()}),mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)}),!0,x,d):t==App.MODE_GITLAB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitLab.insertFile(f,b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)}),!0,x,d):t==App.MODE_TRELLO?null!=this.trello&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.trello.insertFile(f,d?this.base64ToBlob(b,
-m):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)}),!1,x):t==App.MODE_BROWSER&&(null!=window.StorageFile&&!d&&this.spinner.spin(document.body,mxResources.get("saving"))?(m="<mxlibrary"==b.substring(0,10)?new StorageLibrary(this,b,f):new StorageFile(this,b,f),StorageFile.doInsertFile(m,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(v){this.spinner.stop();this.handleError(v)}))):(m=mxUtils.bind(this,
+App.prototype.pickFolder=function(b,f,m,d,q,x){m=null!=m?m:!0;this.spinner=null!=this.spinner?this.spinner:this.createSpinner(null,null,24);var C=this.spinner.pause();m&&b==App.MODE_GOOGLE&&null!=this.drive?this.drive.pickFolder(mxUtils.bind(this,function(y){C();if(y.action==google.picker.Action.PICKED){var I=null;null!=y.docs&&0<y.docs.length&&"folder"==y.docs[0].type&&(I=y.docs[0].id);f(x?y:I)}}),q):m&&b==App.MODE_ONEDRIVE&&null!=this.oneDrive?this.oneDrive.pickFolder(mxUtils.bind(this,function(y){C();
+if(null!=y&&null!=y.value&&0<y.value.length){var I=OneDriveFile.prototype.getIdOf(y.value[0]);f(x?y:I)}}),d):m&&b==App.MODE_GITHUB&&null!=this.gitHub?this.gitHub.pickFolder(mxUtils.bind(this,function(y){C();f(y)})):m&&b==App.MODE_GITLAB&&null!=this.gitLab?this.gitLab.pickFolder(mxUtils.bind(this,function(y){C();f(y)})):m&&b==App.MODE_TRELLO&&null!=this.trello?this.trello.pickFolder(mxUtils.bind(this,function(y){C();f(y)})):EditorUi.prototype.pickFolder.apply(this,arguments)};
+App.prototype.exportFile=function(b,f,m,d,q,x){q==App.MODE_DROPBOX?null!=this.dropbox&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.dropbox.insertFile(f,d?this.base64ToBlob(b,m):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(C){this.spinner.stop();this.handleError(C)})):q==App.MODE_GOOGLE?null!=this.drive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.drive.insertFile(f,b,x,mxUtils.bind(this,function(C){this.spinner.stop()}),
+mxUtils.bind(this,function(C){this.spinner.stop();this.handleError(C)}),m,d):q==App.MODE_ONEDRIVE?null!=this.oneDrive&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.oneDrive.insertFile(f,d?this.base64ToBlob(b,m):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(C){this.spinner.stop();this.handleError(C)}),!1,x):q==App.MODE_GITHUB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitHub.insertFile(f,b,mxUtils.bind(this,
+function(){this.spinner.stop()}),mxUtils.bind(this,function(C){this.spinner.stop();this.handleError(C)}),!0,x,d):q==App.MODE_GITLAB?null!=this.gitHub&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.gitLab.insertFile(f,b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(C){this.spinner.stop();this.handleError(C)}),!0,x,d):q==App.MODE_TRELLO?null!=this.trello&&this.spinner.spin(document.body,mxResources.get("saving"))&&this.trello.insertFile(f,d?this.base64ToBlob(b,
+m):b,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(C){this.spinner.stop();this.handleError(C)}),!1,x):q==App.MODE_BROWSER&&(null!=window.StorageFile&&!d&&this.spinner.spin(document.body,mxResources.get("saving"))?(m="<mxlibrary"==b.substring(0,10)?new StorageLibrary(this,b,f):new StorageFile(this,b,f),StorageFile.doInsertFile(m,mxUtils.bind(this,function(){this.spinner.stop()}),mxUtils.bind(this,function(C){this.spinner.stop();this.handleError(C)}))):(m=mxUtils.bind(this,
function(){localStorage.setItem(f,b)}),null==localStorage.getItem(f)?m():this.confirm(mxResources.get("replaceIt",[f]),m)))};
App.prototype.descriptorChanged=function(){var b=this.getCurrentFile();if(null!=b){if(null!=this.fname){this.fname.innerText="";var f=null!=b.getTitle()?b.getTitle():this.defaultFilename;mxUtils.write(this.fname,f)}f=this.editor.graph;var m=b.isEditable();f.isEnabled()&&!m&&f.reset();f.setEnabled(m);null==urlParams.rev&&(this.updateDocumentTitle(),f=b.getHash(),0<f.length?(f!=this.getDiagramId()&&(window.location.hash=f),this.updateHashObject()):0<window.location.hash.length&&(window.location.hash=
""))}this.updateUi();null==this.format||null!=b&&this.fileEditable==b.isEditable()||!this.editor.graph.isSelectionEmpty()||(this.format.refresh(),this.fileEditable=null!=b?b.isEditable():null);this.fireEvent(new mxEventObject("fileDescriptorChanged","file",b))};
-App.prototype.showAuthDialog=function(b,f,m,d){var t=this.spinner.pause();this.showDialog((new AuthDialog(this,b,f,mxUtils.bind(this,function(x){try{null!=m&&m(x,mxUtils.bind(this,function(){this.hideDialog();t()}))}catch(v){this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(v.message))}))}}))).container,300,f?180:140,!0,!0,mxUtils.bind(this,function(x){null!=d&&d(x);x&&null==this.getCurrentFile()&&null==this.dialog&&this.showSplash()}))};
-App.prototype.convertFile=function(b,f,m,d,t,x,v,B){var J=f;/\.svg$/i.test(J)||(J=J.substring(0,f.lastIndexOf("."))+d);var N=!1;null!=this.gitHub&&b.substring(0,this.gitHub.baseUrl.length)==this.gitHub.baseUrl&&(N=!0);if(/\.v(dx|sdx?)$/i.test(f)&&Graph.fileSupport&&(new XMLHttpRequest).upload&&"string"===typeof(new XMLHttpRequest).responseType){var I=new XMLHttpRequest;I.open("GET",b,!0);N||(I.responseType="blob");if(B)for(var c in B)I.setRequestHeader(c,B[c]);I.onload=mxUtils.bind(this,function(){if(200<=
-I.status&&299>=I.status){var g=null;N?(g=JSON.parse(I.responseText),g=this.base64ToBlob(g.content,"application/octet-stream")):g=new Blob([I.response],{type:"application/octet-stream"});this.importVisio(g,mxUtils.bind(this,function(l){t(new LocalFile(this,l,J,!0))}),x,f)}else null!=x&&x({message:mxResources.get("errorLoadingFile")})});I.onerror=x;I.send()}else{var e=mxUtils.bind(this,function(g){try{if(/\.pdf$/i.test(f)){var l=Editor.extractGraphModelFromPdf(g);null!=l&&0<l.length&&t(new LocalFile(this,
-l,J,!0))}else/\.png$/i.test(f)?(l=this.extractGraphModelFromPng(g),null!=l?t(new LocalFile(this,l,J,!0)):t(new LocalFile(this,g,f,!0))):Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(g,b)?this.parseFileData(g,mxUtils.bind(this,function(n){4==n.readyState&&(200<=n.status&&299>=n.status?t(new LocalFile(this,n.responseText,J,!0)):null!=x&&x({message:mxResources.get("errorLoadingFile")}))}),f):t(new LocalFile(this,g,J,!0))}catch(n){null!=x&&x(n)}});m=/\.png$/i.test(f)||/\.jpe?g$/i.test(f)||
-/\.pdf$/i.test(f)||null!=m&&"image/"==m.substring(0,6);N?mxUtils.get(b,mxUtils.bind(this,function(g){if(200<=g.getStatus()&&299>=g.getStatus()){if(null!=t){g=JSON.parse(g.getText());var l=g.content;"base64"===g.encoding&&(l=/\.png$/i.test(f)?"data:image/png;base64,"+l:/\.pdf$/i.test(f)?"data:application/pdf;base64,"+l:!window.atob||mxClient.IS_IE||mxClient.IS_IE11?Base64.decode(l):atob(l));e(l)}}else null!=x&&x({code:App.ERROR_UNKNOWN})}),function(){null!=x&&x({code:App.ERROR_UNKNOWN})},!1,this.timeout,
-function(){null!=x&&x({code:App.ERROR_TIMEOUT,retry:fn})},B):null!=v?v(b,e,x,m):this.editor.loadUrl(b,e,x,m,null,null,null,B)}};
-App.prototype.updateHeader=function(){if(null!=this.menubar){var b="url("+Editor.logoImage+")";this.appIcon=document.createElement("a");this.appIcon.className="geAppIcon";this.appIcon.style.backgroundImage=b;mxEvent.disableContextMenu(this.appIcon);mxEvent.addListener(this.appIcon,"click",mxUtils.bind(this,function(v){this.appIconClicked(v)}));mxEvent.addListener(this.appIcon,"mouseover",mxUtils.bind(this,function(){var v=this.getCurrentFile();null!=v&&(v=v.getMode(),v==App.MODE_GOOGLE?(this.appIcon.style.backgroundImage=
-"url("+IMAGE_PATH+"/google-drive-logo-white.svg)",this.appIcon.style.backgroundSize="70%"):v==App.MODE_DROPBOX?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/dropbox-logo-white.svg)",this.appIcon.style.backgroundSize="70%"):v==App.MODE_ONEDRIVE?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/onedrive-logo-white.svg)",this.appIcon.style.backgroundSize="70%"):v==App.MODE_GITHUB?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/github-logo-white.svg)",this.appIcon.style.backgroundSize=
-"70%"):v==App.MODE_GITLAB?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/gitlab-logo-white.svg)",this.appIcon.style.backgroundSize="90%"):v==App.MODE_TRELLO&&(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/trello-logo-white-orange.svg)",this.appIcon.style.backgroundSize="70%"))}));mxEvent.addListener(this.appIcon,"mouseout",mxUtils.bind(this,function(){this.appIcon.style.backgroundImage=b;this.appIcon.style.backgroundSize=""}));"1"!=urlParams.embed&&this.menubarContainer.appendChild(this.appIcon);
-this.fnameWrapper=document.createElement("div");this.fname=document.createElement("a");this.fnameWrapper.className="geFilenameContainer";this.fname.className="geFilename";mxEvent.addListener(this.fname,"click",mxUtils.bind(this,function(v){var B=this.getCurrentFile();null!=B&&B.isRenamable()&&(this.editor.graph.isEditing()&&this.editor.graph.stopEditing(),this.actions.get("rename").funct());mxEvent.consume(v)}));mxEvent.preventDefault(this.fname);this.fnameWrapper.appendChild(this.fname);"1"!=urlParams.embed&&
-this.menubarContainer.appendChild(this.fnameWrapper);var f=document.createElement("div");f.className="geToolbar geToolbarEnd";this.toolbarContainer.appendChild(f);var m=document.createElement("a");m.style.backgroundImage="url('"+Editor.fullscreenImage+"')";m.className="geButton";f.appendChild(m);mxEvent.addListener(m,"click",mxUtils.bind(this,function(v){var B=this.fullscreenMode;"atlas"!=Editor.currentTheme&&"1"!=urlParams.embed&&this.setCompactMode(!B,null,Editor.transitionDelay);this.toggleShapesPanel(B);
-this.toggleFormatPanel(B);this.fullscreenMode=!B;m.style.backgroundImage="url('"+(this.fullscreenMode?Editor.fullscreenExitImage:Editor.fullscreenImage)+"')";mxEvent.consume(v)}));mxEvent.preventDefault(m);var d=document.createElement("a");d.className="geButton";f.appendChild(d);mxEvent.addListener(d,"click",mxUtils.bind(this,function(v){this.actions.get("format").funct();mxEvent.consume(v)}));mxEvent.preventDefault(d);var t=mxUtils.bind(this,function(){d.style.backgroundImage=0<this.formatWidth?
-"url('"+Editor.rightPanelCloseImage+"')":"url('"+Editor.rightPanelOpenImage+"')"});this.addListener("formatWidthChanged",t);t();var x=document.createElement("a");x.style.backgroundImage="url('"+(this.compactMode?Editor.chevronDownImage:Editor.chevronUpImage)+"')";x.className="geButton";"1"!=urlParams.embed&&"atlas"!=Editor.currentTheme&&(f.appendChild(x),mxEvent.addListener(x,"click",mxUtils.bind(this,function(v){this.setCompactMode(!this.compactMode,!0,Editor.transitionDelay);mxEvent.consume(v)})),
+App.prototype.showAuthDialog=function(b,f,m,d){var q=this.spinner.pause();this.showDialog((new AuthDialog(this,b,f,mxUtils.bind(this,function(x){try{null!=m&&m(x,mxUtils.bind(this,function(){this.hideDialog();q()}))}catch(C){this.updateStatus(mxUtils.bind(this,function(){this.editor.setStatus(mxUtils.htmlEntities(C.message))}))}}))).container,300,f?180:140,!0,!0,mxUtils.bind(this,function(x){null!=d&&d(x);x&&null==this.getCurrentFile()&&null==this.dialog&&this.showSplash()}))};
+App.prototype.convertFile=function(b,f,m,d,q,x,C,y){var I=f;/\.svg$/i.test(I)||(I=I.substring(0,f.lastIndexOf("."))+d);var M=!1;null!=this.gitHub&&b.substring(0,this.gitHub.baseUrl.length)==this.gitHub.baseUrl&&(M=!0);if(/\.v(dx|sdx?)$/i.test(f)&&Graph.fileSupport&&(new XMLHttpRequest).upload&&"string"===typeof(new XMLHttpRequest).responseType){var H=new XMLHttpRequest;H.open("GET",b,!0);M||(H.responseType="blob");if(y)for(var c in y)H.setRequestHeader(c,y[c]);H.onload=mxUtils.bind(this,function(){if(200<=
+H.status&&299>=H.status){var g=null;M?(g=JSON.parse(H.responseText),g=this.base64ToBlob(g.content,"application/octet-stream")):g=new Blob([H.response],{type:"application/octet-stream"});this.importVisio(g,mxUtils.bind(this,function(l){q(new LocalFile(this,l,I,!0))}),x,f)}else null!=x&&x({message:mxResources.get("errorLoadingFile")})});H.onerror=x;H.send()}else{var e=mxUtils.bind(this,function(g){try{if(/\.pdf$/i.test(f)){var l=Editor.extractGraphModelFromPdf(g);null!=l&&0<l.length&&q(new LocalFile(this,
+l,I,!0))}else/\.png$/i.test(f)?(l=this.extractGraphModelFromPng(g),null!=l?q(new LocalFile(this,l,I,!0)):q(new LocalFile(this,g,f,!0))):Graph.fileSupport&&(new XMLHttpRequest).upload&&this.isRemoteFileFormat(g,b)?this.parseFileData(g,mxUtils.bind(this,function(p){4==p.readyState&&(200<=p.status&&299>=p.status?q(new LocalFile(this,p.responseText,I,!0)):null!=x&&x({message:mxResources.get("errorLoadingFile")}))}),f):q(new LocalFile(this,g,I,!0))}catch(p){null!=x&&x(p)}});m=/\.png$/i.test(f)||/\.jpe?g$/i.test(f)||
+/\.pdf$/i.test(f)||null!=m&&"image/"==m.substring(0,6);M?mxUtils.get(b,mxUtils.bind(this,function(g){if(200<=g.getStatus()&&299>=g.getStatus()){if(null!=q){g=JSON.parse(g.getText());var l=g.content;"base64"===g.encoding&&(l=/\.png$/i.test(f)?"data:image/png;base64,"+l:/\.pdf$/i.test(f)?"data:application/pdf;base64,"+l:!window.atob||mxClient.IS_IE||mxClient.IS_IE11?Base64.decode(l):atob(l));e(l)}}else null!=x&&x({code:App.ERROR_UNKNOWN})}),function(){null!=x&&x({code:App.ERROR_UNKNOWN})},!1,this.timeout,
+function(){null!=x&&x({code:App.ERROR_TIMEOUT,retry:fn})},y):null!=C?C(b,e,x,m):this.editor.loadUrl(b,e,x,m,null,null,null,y)}};
+App.prototype.updateHeader=function(){if(null!=this.menubar){var b="url("+Editor.logoImage+")";this.appIcon=document.createElement("a");this.appIcon.className="geAppIcon";this.appIcon.style.backgroundImage=b;mxEvent.disableContextMenu(this.appIcon);mxEvent.addListener(this.appIcon,"click",mxUtils.bind(this,function(C){this.appIconClicked(C)}));mxEvent.addListener(this.appIcon,"mouseover",mxUtils.bind(this,function(){var C=this.getCurrentFile();null!=C&&(C=C.getMode(),C==App.MODE_GOOGLE?(this.appIcon.style.backgroundImage=
+"url("+IMAGE_PATH+"/google-drive-logo-white.svg)",this.appIcon.style.backgroundSize="70%"):C==App.MODE_DROPBOX?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/dropbox-logo-white.svg)",this.appIcon.style.backgroundSize="70%"):C==App.MODE_ONEDRIVE?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/onedrive-logo-white.svg)",this.appIcon.style.backgroundSize="70%"):C==App.MODE_GITHUB?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/github-logo-white.svg)",this.appIcon.style.backgroundSize=
+"70%"):C==App.MODE_GITLAB?(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/gitlab-logo-white.svg)",this.appIcon.style.backgroundSize="90%"):C==App.MODE_TRELLO&&(this.appIcon.style.backgroundImage="url("+IMAGE_PATH+"/trello-logo-white-orange.svg)",this.appIcon.style.backgroundSize="70%"))}));mxEvent.addListener(this.appIcon,"mouseout",mxUtils.bind(this,function(){this.appIcon.style.backgroundImage=b;this.appIcon.style.backgroundSize=""}));"1"!=urlParams.embed&&this.menubarContainer.appendChild(this.appIcon);
+this.fnameWrapper=document.createElement("div");this.fname=document.createElement("a");this.fnameWrapper.className="geFilenameContainer";this.fname.className="geFilename";mxEvent.addListener(this.fname,"click",mxUtils.bind(this,function(C){var y=this.getCurrentFile();null!=y&&y.isRenamable()&&(this.editor.graph.isEditing()&&this.editor.graph.stopEditing(),this.actions.get("rename").funct());mxEvent.consume(C)}));mxEvent.preventDefault(this.fname);this.fnameWrapper.appendChild(this.fname);"1"!=urlParams.embed&&
+this.menubarContainer.appendChild(this.fnameWrapper);var f=document.createElement("div");f.className="geToolbar geToolbarEnd";this.toolbarContainer.appendChild(f);var m=document.createElement("a");m.style.backgroundImage="url('"+Editor.fullscreenImage+"')";m.className="geButton";f.appendChild(m);mxEvent.addListener(m,"click",mxUtils.bind(this,function(C){var y=this.fullscreenMode;"atlas"!=Editor.currentTheme&&"1"!=urlParams.embed&&this.setCompactMode(!y,null,Editor.transitionDelay);this.toggleShapesPanel(y);
+this.toggleFormatPanel(y);this.fullscreenMode=!y;m.style.backgroundImage="url('"+(this.fullscreenMode?Editor.fullscreenExitImage:Editor.fullscreenImage)+"')";mxEvent.consume(C)}));mxEvent.preventDefault(m);var d=document.createElement("a");d.className="geButton";f.appendChild(d);mxEvent.addListener(d,"click",mxUtils.bind(this,function(C){this.actions.get("format").funct();mxEvent.consume(C)}));mxEvent.preventDefault(d);var q=mxUtils.bind(this,function(){d.style.backgroundImage=0<this.formatWidth?
+"url('"+Editor.rightPanelCloseImage+"')":"url('"+Editor.rightPanelOpenImage+"')"});this.addListener("formatWidthChanged",q);q();var x=document.createElement("a");x.style.backgroundImage="url('"+(this.compactMode?Editor.chevronDownImage:Editor.chevronUpImage)+"')";x.className="geButton";"1"!=urlParams.embed&&"atlas"!=Editor.currentTheme&&(f.appendChild(x),mxEvent.addListener(x,"click",mxUtils.bind(this,function(C){this.setCompactMode(!this.compactMode,!0,Editor.transitionDelay);mxEvent.consume(C)})),
mxEvent.preventDefault(x),!mxClient.IS_FF&&740>=screen.height&&"undefined"!==typeof x.click&&window.setTimeout(mxUtils.bind(this,function(){x.click()}),0),this.addListener("compactModeChanged",mxUtils.bind(this,function(){x.style.backgroundImage="url('"+(this.compactMode?Editor.chevronDownImage:Editor.chevronUpImage)+"')"})));this.dependsOnLanguage(mxUtils.bind(this,function(){this.fname.setAttribute("title",mxResources.get("rename"));m.setAttribute("title",mxResources.get("fullscreen"));x.setAttribute("title",
mxResources.get("collapseExpand"));d.setAttribute("title",mxResources.get("format")+" ("+Editor.ctrlKey+"+Shift+P)")}))}};
App.prototype.setCompactMode=function(b,f,m){var d=mxUtils.isAncestorNode(document.body,this.container)||null==this.editor?this.container:this.editor.graph.container;m=null!=m?m:0;window.setTimeout(mxUtils.bind(this,function(){mxUtils.setPrefixedStyle(this.menubarContainer.style,"transition","all "+m+"s ease-in-out");mxUtils.setPrefixedStyle(this.toolbarContainer.style,"transition","all "+m+"s ease-in-out");b?d.classList.add("geCompactMode"):d.classList.remove("geCompactMode");window.setTimeout(mxUtils.bind(this,
function(){mxUtils.setPrefixedStyle(this.menubarContainer.style,"transition",null);mxUtils.setPrefixedStyle(this.toolbarContainer.style,"transition",null);this.compactMode=b;this.refresh(!0);this.fireEvent(new mxEventObject("compactModeChanged"));isLocalStorage&&f&&(mxSettings.settings.compactMode=this.compactMode,mxSettings.save())}),1E3*m)}),0)};
App.prototype.getMainUser=function(){var b=null;null!=this.drive&&null!=this.drive.getUser()?b=this.drive.getUser():null!=this.oneDrive&&null!=this.oneDrive.getUser()?b=this.oneDrive.getUser():null!=this.dropbox&&null!=this.dropbox.getUser()?b=this.dropbox.getUser():null!=this.gitHub&&null!=this.gitHub.getUser()?b=this.gitHub.getUser():null!=this.gitLab&&null!=this.gitLab.getUser()&&(b=this.gitLab.getUser());return b};
App.prototype.hideUserPanel=function(){null!=this.userPanel&&null!=this.userPanel.parentNode&&this.userPanel.parentNode.removeChild(this.userPanel)};
-App.prototype.toggleUserPanel=function(){if(null==this.userPanel){var b=document.createElement("div");b.className="geDialog geInlineDialog";b.style.minWidth="300px";this.userPanel=b;mxEvent.addListener(document.body,"click",mxUtils.bind(this,function(v){mxEvent.isConsumed(v)||this.hideUserPanel()}))}if(null!=this.userPanel.parentNode)this.userPanel.parentNode.removeChild(this.userPanel);else{var f=!1;this.userPanel.innerText="";b=document.createElement("div");b.className="geButton";b.setAttribute("title",
-mxResources.get("close"));b.style.backgroundImage="url("+Editor.crossImage+")";b.style.position="absolute";b.style.right="0px";mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.hideUserPanel()}));this.userPanel.appendChild(b);if(null!=this.drive){var m=this.drive.getUsersList();if(0<m.length){var d=mxUtils.bind(this,function(v,B){var J=this.getCurrentFile();null!=J&&J.constructor==DriveFile?(this.spinner.spin(document.body,B),this.fileLoaded(null),window.setTimeout(mxUtils.bind(this,
-function(){this.spinner.stop();v()}),2E3)):v()});b=mxUtils.bind(this,function(v){var B=document.createElement("tr"),J=document.createElement("td");J.setAttribute("valig","middle");J.style.height="59px";J.style.width="66px";var N=document.createElement("img");N.setAttribute("width","50");N.setAttribute("height","50");N.setAttribute("border","0");N.setAttribute("src",null!=v.pictureUrl?v.pictureUrl:Editor.userImage);N.style.borderRadius="50%";N.style.margin="4px 8px 0 8px";J.appendChild(N);B.appendChild(J);
-J=document.createElement("td");J.setAttribute("valign","middle");J.style.whiteSpace="nowrap";J.style.paddingTop="4px";J.style.maxWidth="0";J.style.overflow="hidden";J.style.textOverflow="ellipsis";mxUtils.write(J,v.displayName+(v.isCurrent&&1<m.length?" ("+mxResources.get("default")+")":""));null!=v.email&&(mxUtils.br(J),N=document.createElement("small"),N.style.color="gray",mxUtils.write(N,v.email),J.appendChild(N));N=document.createElement("div");N.style.marginTop="4px";var I=document.createElement("i");
-mxUtils.write(I,mxResources.get("googleDrive"));N.appendChild(I);J.appendChild(N);B.appendChild(J);v.isCurrent?B.setAttribute("title","User ID: "+v.id):(B.setAttribute("title",mxResources.get("login")+" (User ID: "+v.id+")"),B.style.cursor="pointer",B.style.opacity="0.3",mxEvent.addListener(B,"mouseenter",mxUtils.bind(this,function(){B.style.opacity="1"})),mxEvent.addListener(B,"mouseleave",mxUtils.bind(this,function(){B.style.opacity="0.3"})),mxEvent.addListener(B,"click",mxUtils.bind(this,function(c){this.hideUserPanel();
-d(mxUtils.bind(this,function(){this.stateArg=null;this.drive.setUser(v);this.drive.authorize(!0,mxUtils.bind(this,function(){this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxUtils.bind(this,function(e){this.handleError(e)}),!0)}),mxResources.get("changeUser")+"...");mxEvent.consume(c)})));return B});f=!0;var t=document.createElement("table");t.style.borderSpacing="0";t.style.fontSize="10pt";t.style.width="100%";t.style.padding="10px";for(var x=0;x<m.length;x++)t.appendChild(b(m[x]));
-this.userPanel.appendChild(t);b=document.createElement("div");b.style.textAlign="left";b.style.padding="10px";b.style.whiteSpace="nowrap";b.style.borderTopStyle="solid";b.style.borderTopWidth="1px";t=mxUtils.button(mxResources.get("signOut"),mxUtils.bind(this,function(){this.confirm(mxResources.get("areYouSure"),mxUtils.bind(this,function(){d(mxUtils.bind(this,function(){this.stateArg=null;this.drive.logout();this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxResources.get("signOut"))}))}));
-t.className="geBtn";t.style.float="right";b.appendChild(t);t=mxUtils.button(mxResources.get("addAccount"),mxUtils.bind(this,function(){var v=this.drive.createAuthWin();v.blur();window.focus();d(mxUtils.bind(this,function(){this.stateArg=null;this.drive.authorize(!1,mxUtils.bind(this,function(){this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxUtils.bind(this,function(B){this.handleError(B)}),!0,v)}),mxResources.get("closingFile")+"...")}));t.className="geBtn";t.style.margin="0px";
-b.appendChild(t);this.userPanel.appendChild(b)}}b=mxUtils.bind(this,function(v,B,J,N){if(null!=v){f&&this.userPanel.appendChild(document.createElement("hr"));f=!0;var I=document.createElement("table");I.style.borderSpacing="0";I.style.fontSize="10pt";I.style.width="100%";I.style.padding="10px";var c=document.createElement("tbody"),e=document.createElement("tr"),g=document.createElement("td");g.setAttribute("valig","top");g.style.width="40px";if(null!=B){var l=document.createElement("img");l.setAttribute("width",
-"40");l.setAttribute("height","40");l.setAttribute("border","0");l.setAttribute("src",B);l.style.marginRight="6px";g.appendChild(l)}e.appendChild(g);g=document.createElement("td");g.setAttribute("valign","middle");g.style.whiteSpace="nowrap";g.style.maxWidth="0";g.style.overflow="hidden";g.style.textOverflow="ellipsis";mxUtils.write(g,v.displayName);null!=v.email&&(mxUtils.br(g),B=document.createElement("small"),B.style.color="gray",mxUtils.write(B,v.email),g.appendChild(B));null!=N&&(v=document.createElement("div"),
-v.style.marginTop="4px",B=document.createElement("i"),mxUtils.write(B,N),v.appendChild(B),g.appendChild(v));e.appendChild(g);c.appendChild(e);I.appendChild(c);this.userPanel.appendChild(I);v=document.createElement("div");v.style.textAlign="center";v.style.padding="10px";v.style.whiteSpace="nowrap";null!=J&&(J=mxUtils.button(mxResources.get("signOut"),J),J.className="geBtn",v.appendChild(J));this.userPanel.appendChild(v)}});null!=this.dropbox&&b(this.dropbox.getUser(),IMAGE_PATH+"/dropbox-logo.svg",
-mxUtils.bind(this,function(){var v=this.getCurrentFile();if(null!=v&&v.constructor==DropboxFile){var B=mxUtils.bind(this,function(){this.dropbox.logout();window.location.hash=""});v.isModified()?this.confirm(mxResources.get("allChangesLost"),null,B,mxResources.get("cancel"),mxResources.get("discardChanges")):B()}else this.dropbox.logout()}),mxResources.get("dropbox"));null!=this.oneDrive&&b(this.oneDrive.getUser(),IMAGE_PATH+"/onedrive-logo.svg",this.oneDrive.noLogout?null:mxUtils.bind(this,function(){var v=
-this.getCurrentFile();if(null!=v&&v.constructor==OneDriveFile){var B=mxUtils.bind(this,function(){this.oneDrive.logout();window.location.hash=""});v.isModified()?this.confirm(mxResources.get("allChangesLost"),null,B,mxResources.get("cancel"),mxResources.get("discardChanges")):B()}else this.oneDrive.logout()}),mxResources.get("oneDrive"));null!=this.gitHub&&b(this.gitHub.getUser(),IMAGE_PATH+"/github-logo.svg",mxUtils.bind(this,function(){var v=this.getCurrentFile();if(null!=v&&v.constructor==GitHubFile){var B=
-mxUtils.bind(this,function(){this.gitHub.logout();window.location.hash=""});v.isModified()?this.confirm(mxResources.get("allChangesLost"),null,B,mxResources.get("cancel"),mxResources.get("discardChanges")):B()}else this.gitHub.logout()}),mxResources.get("github"));null!=this.gitLab&&b(this.gitLab.getUser(),IMAGE_PATH+"/gitlab-logo.svg",mxUtils.bind(this,function(){var v=this.getCurrentFile();if(null!=v&&v.constructor==GitLabFile){var B=mxUtils.bind(this,function(){this.gitLab.logout();window.location.hash=
-""});v.isModified()?this.confirm(mxResources.get("allChangesLost"),null,B,mxResources.get("cancel"),mxResources.get("discardChanges")):B()}else this.gitLab.logout()}),mxResources.get("gitlab"));null!=this.trello&&b(this.trello.getUser(),IMAGE_PATH+"/trello-logo.svg",mxUtils.bind(this,function(){var v=this.getCurrentFile();if(null!=v&&v.constructor==TrelloFile){var B=mxUtils.bind(this,function(){this.trello.logout();window.location.hash=""});v.isModified()?this.confirm(mxResources.get("allChangesLost"),
-null,B,mxResources.get("cancel"),mxResources.get("discardChanges")):B()}else this.trello.logout()}),mxResources.get("trello"));"min"==uiTheme&&(t=this.getCurrentFile(),null!=t&&t.isRealtimeEnabled()&&t.isRealtimeSupported()&&(b=document.createElement("div"),b.style.padding="10px",b.style.whiteSpace="nowrap",b.style.borderTop="1px solid rgb(224, 224, 224)",b.style.marginTop="4px",b.style.textAlign="center",b.style.padding="10px",b.style.fontSize="9pt",x=t.getRealtimeError(),1!=t.getRealtimeState()&&
+App.prototype.toggleUserPanel=function(){if(null==this.userPanel){var b=document.createElement("div");b.className="geDialog geInlineDialog";b.style.minWidth="300px";this.userPanel=b;mxEvent.addListener(document.body,"click",mxUtils.bind(this,function(C){mxEvent.isConsumed(C)||this.hideUserPanel()}))}if(null!=this.userPanel.parentNode)this.userPanel.parentNode.removeChild(this.userPanel);else{var f=!1;this.userPanel.innerText="";b=document.createElement("div");b.className="geButton";b.setAttribute("title",
+mxResources.get("close"));b.style.backgroundImage="url("+Editor.crossImage+")";b.style.position="absolute";b.style.right="0px";mxEvent.addListener(b,"click",mxUtils.bind(this,function(){this.hideUserPanel()}));this.userPanel.appendChild(b);if(null!=this.drive){var m=this.drive.getUsersList();if(0<m.length){var d=mxUtils.bind(this,function(C,y){var I=this.getCurrentFile();null!=I&&I.constructor==DriveFile?(this.spinner.spin(document.body,y),this.fileLoaded(null),window.setTimeout(mxUtils.bind(this,
+function(){this.spinner.stop();C()}),2E3)):C()});b=mxUtils.bind(this,function(C){var y=document.createElement("tr"),I=document.createElement("td");I.setAttribute("valig","middle");I.style.height="59px";I.style.width="66px";var M=document.createElement("img");M.setAttribute("width","50");M.setAttribute("height","50");M.setAttribute("border","0");M.setAttribute("src",null!=C.pictureUrl?C.pictureUrl:Editor.userImage);M.style.borderRadius="50%";M.style.margin="4px 8px 0 8px";I.appendChild(M);y.appendChild(I);
+I=document.createElement("td");I.setAttribute("valign","middle");I.style.whiteSpace="nowrap";I.style.paddingTop="4px";I.style.maxWidth="0";I.style.overflow="hidden";I.style.textOverflow="ellipsis";mxUtils.write(I,C.displayName+(C.isCurrent&&1<m.length?" ("+mxResources.get("default")+")":""));null!=C.email&&(mxUtils.br(I),M=document.createElement("small"),M.style.color="gray",mxUtils.write(M,C.email),I.appendChild(M));M=document.createElement("div");M.style.marginTop="4px";var H=document.createElement("i");
+mxUtils.write(H,mxResources.get("googleDrive"));M.appendChild(H);I.appendChild(M);y.appendChild(I);C.isCurrent?y.setAttribute("title","User ID: "+C.id):(y.setAttribute("title",mxResources.get("login")+" (User ID: "+C.id+")"),y.style.cursor="pointer",y.style.opacity="0.3",mxEvent.addListener(y,"mouseenter",mxUtils.bind(this,function(){y.style.opacity="1"})),mxEvent.addListener(y,"mouseleave",mxUtils.bind(this,function(){y.style.opacity="0.3"})),mxEvent.addListener(y,"click",mxUtils.bind(this,function(c){this.hideUserPanel();
+d(mxUtils.bind(this,function(){this.stateArg=null;this.drive.setUser(C);this.drive.authorize(!0,mxUtils.bind(this,function(){this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxUtils.bind(this,function(e){this.handleError(e)}),!0)}),mxResources.get("changeUser")+"...");mxEvent.consume(c)})));return y});f=!0;var q=document.createElement("table");q.style.borderSpacing="0";q.style.fontSize="10pt";q.style.width="100%";q.style.padding="10px";for(var x=0;x<m.length;x++)q.appendChild(b(m[x]));
+this.userPanel.appendChild(q);b=document.createElement("div");b.style.textAlign="left";b.style.padding="10px";b.style.whiteSpace="nowrap";b.style.borderTopStyle="solid";b.style.borderTopWidth="1px";q=mxUtils.button(mxResources.get("signOut"),mxUtils.bind(this,function(){this.confirm(mxResources.get("areYouSure"),mxUtils.bind(this,function(){d(mxUtils.bind(this,function(){this.stateArg=null;this.drive.logout();this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxResources.get("signOut"))}))}));
+q.className="geBtn";q.style.float="right";b.appendChild(q);q=mxUtils.button(mxResources.get("addAccount"),mxUtils.bind(this,function(){var C=this.drive.createAuthWin();C.blur();window.focus();d(mxUtils.bind(this,function(){this.stateArg=null;this.drive.authorize(!1,mxUtils.bind(this,function(){this.setMode(App.MODE_GOOGLE);this.hideDialog();this.showSplash()}),mxUtils.bind(this,function(y){this.handleError(y)}),!0,C)}),mxResources.get("closingFile")+"...")}));q.className="geBtn";q.style.margin="0px";
+b.appendChild(q);this.userPanel.appendChild(b)}}b=mxUtils.bind(this,function(C,y,I,M){if(null!=C){f&&this.userPanel.appendChild(document.createElement("hr"));f=!0;var H=document.createElement("table");H.style.borderSpacing="0";H.style.fontSize="10pt";H.style.width="100%";H.style.padding="10px";var c=document.createElement("tbody"),e=document.createElement("tr"),g=document.createElement("td");g.setAttribute("valig","top");g.style.width="40px";if(null!=y){var l=document.createElement("img");l.setAttribute("width",
+"40");l.setAttribute("height","40");l.setAttribute("border","0");l.setAttribute("src",y);l.style.marginRight="6px";g.appendChild(l)}e.appendChild(g);g=document.createElement("td");g.setAttribute("valign","middle");g.style.whiteSpace="nowrap";g.style.maxWidth="0";g.style.overflow="hidden";g.style.textOverflow="ellipsis";mxUtils.write(g,C.displayName);null!=C.email&&(mxUtils.br(g),y=document.createElement("small"),y.style.color="gray",mxUtils.write(y,C.email),g.appendChild(y));null!=M&&(C=document.createElement("div"),
+C.style.marginTop="4px",y=document.createElement("i"),mxUtils.write(y,M),C.appendChild(y),g.appendChild(C));e.appendChild(g);c.appendChild(e);H.appendChild(c);this.userPanel.appendChild(H);C=document.createElement("div");C.style.textAlign="center";C.style.padding="10px";C.style.whiteSpace="nowrap";null!=I&&(I=mxUtils.button(mxResources.get("signOut"),I),I.className="geBtn",C.appendChild(I));this.userPanel.appendChild(C)}});null!=this.dropbox&&b(this.dropbox.getUser(),IMAGE_PATH+"/dropbox-logo.svg",
+mxUtils.bind(this,function(){var C=this.getCurrentFile();if(null!=C&&C.constructor==DropboxFile){var y=mxUtils.bind(this,function(){this.dropbox.logout();window.location.hash=""});C.isModified()?this.confirm(mxResources.get("allChangesLost"),null,y,mxResources.get("cancel"),mxResources.get("discardChanges")):y()}else this.dropbox.logout()}),mxResources.get("dropbox"));null!=this.oneDrive&&b(this.oneDrive.getUser(),IMAGE_PATH+"/onedrive-logo.svg",this.oneDrive.noLogout?null:mxUtils.bind(this,function(){var C=
+this.getCurrentFile();if(null!=C&&C.constructor==OneDriveFile){var y=mxUtils.bind(this,function(){this.oneDrive.logout();window.location.hash=""});C.isModified()?this.confirm(mxResources.get("allChangesLost"),null,y,mxResources.get("cancel"),mxResources.get("discardChanges")):y()}else this.oneDrive.logout()}),mxResources.get("oneDrive"));null!=this.gitHub&&b(this.gitHub.getUser(),IMAGE_PATH+"/github-logo.svg",mxUtils.bind(this,function(){var C=this.getCurrentFile();if(null!=C&&C.constructor==GitHubFile){var y=
+mxUtils.bind(this,function(){this.gitHub.logout();window.location.hash=""});C.isModified()?this.confirm(mxResources.get("allChangesLost"),null,y,mxResources.get("cancel"),mxResources.get("discardChanges")):y()}else this.gitHub.logout()}),mxResources.get("github"));null!=this.gitLab&&b(this.gitLab.getUser(),IMAGE_PATH+"/gitlab-logo.svg",mxUtils.bind(this,function(){var C=this.getCurrentFile();if(null!=C&&C.constructor==GitLabFile){var y=mxUtils.bind(this,function(){this.gitLab.logout();window.location.hash=
+""});C.isModified()?this.confirm(mxResources.get("allChangesLost"),null,y,mxResources.get("cancel"),mxResources.get("discardChanges")):y()}else this.gitLab.logout()}),mxResources.get("gitlab"));null!=this.trello&&b(this.trello.getUser(),IMAGE_PATH+"/trello-logo.svg",mxUtils.bind(this,function(){var C=this.getCurrentFile();if(null!=C&&C.constructor==TrelloFile){var y=mxUtils.bind(this,function(){this.trello.logout();window.location.hash=""});C.isModified()?this.confirm(mxResources.get("allChangesLost"),
+null,y,mxResources.get("cancel"),mxResources.get("discardChanges")):y()}else this.trello.logout()}),mxResources.get("trello"));"min"==uiTheme&&(q=this.getCurrentFile(),null!=q&&q.isRealtimeEnabled()&&q.isRealtimeSupported()&&(b=document.createElement("div"),b.style.padding="10px",b.style.whiteSpace="nowrap",b.style.borderTop="1px solid rgb(224, 224, 224)",b.style.marginTop="4px",b.style.textAlign="center",b.style.padding="10px",b.style.fontSize="9pt",x=q.getRealtimeError(),1!=q.getRealtimeState()&&
(mxUtils.write(b,mxResources.get("realtimeCollaboration")+": "+(null!=x&&null!=x.message?x.message:mxResources.get("disconnected"))),this.userPanel.appendChild(b))));document.body.appendChild(this.userPanel)}};
App.prototype.getCurrentUser=function(){var b=null;null!=this.drive&&null!=this.drive.getUser()?b=this.drive.getUser():null!=this.oneDrive&&null!=this.oneDrive.getUser()?b=this.oneDrive.getUser():null!=this.dropbox&&null!=this.dropbox.getUser()?b=this.dropbox.getUser():null!=this.gitHub&&null!=this.gitHub.getUser()&&(b=this.gitHub.getUser());return b};var editorResetGraph=Editor.prototype.resetGraph;
Editor.prototype.resetGraph=function(){editorResetGraph.apply(this,arguments);null==this.graph.defaultPageFormat&&(this.graph.pageFormat=mxSettings.getPageFormat())};(function(){var b=mxPopupMenu.prototype.showMenu;mxPopupMenu.prototype.showMenu=function(){this.div.style.overflowY="auto";this.div.style.overflowX="hidden";this.div.style.maxHeight=Math.max(document.body.clientHeight,document.documentElement.clientHeight)-(EditorUi.isElectronApp?50:10)+"px";b.apply(this,arguments)};Menus.prototype.createHelpLink=function(m){return this.editorUi.createHelpIcon(m)};Menus.prototype.addLinkToItem=function(m,d){null!=m&&m.firstChild.nextSibling.appendChild(this.createHelpLink(d))};
-Menus.prototype.removeCustomFont=function(m,d){for(var t=0;t<this.customFonts.length;t++)if(this.customFonts[t].name==m&&this.customFonts[t].url==d){this.customFonts.splice(t,1);this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts));break}};Menus.prototype.containsFont=function(m,d){for(var t=0;t<this.customFonts.length;t++)if(this.customFonts[t].name==m&&this.customFonts[t].url==d)return!0;for(t=0;t<this.defaultFonts.length;t++){var x=this.defaultFonts[t];
-if("string"!==typeof x&&x.fontFamily==m&&x.fontUrl==d||"string"===typeof x&&x==m&&null==d)return!0}return!1};Menus.prototype.addCustomFont=function(m,d){null==m||this.containsFont(m,d)||(this.customFonts.push({name:m,url:d}),this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts)))};var f=Menus.prototype.init;Menus.prototype.init=function(){function m(p,q,G){d.isExportToCanvas()?d.showExportDialog(mxResources.get("image"),!1,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",
-mxUtils.bind(this,function(E,H,L,K,k,y,F,M,P,R,T,V,W){var X=parseInt(E);!isNaN(X)&&0<X&&(d.exportImage(X/100,H&&"png"==p,L,K,k&&"png"==p,F,!M,P,p,T,null,V,W),null!=G&&G(E,H,L,K,k,y,F,M,P,R,T,V,W))}),!0,q,p,!0):d.isOffline()||mxClient.IS_IOS&&navigator.standalone||d.showRemoteExportDialog(mxResources.get("export"),null,mxUtils.bind(this,function(E,H,L,K,k){d.downloadFile(H&&"png"==p?"xmlpng":p,null,null,E,null,null,L,K,k)}),!1,!0)}f.apply(this,arguments);var d=this.editorUi,t=d.editor.graph,x=mxUtils.bind(t,
-t.isEnabled);"1"==urlParams.noFileMenu&&(this.defaultMenuItems=this.defaultMenuItems.filter(function(p){return"file"!=p}));d.actions.addAction("new...",function(){var p=d.isOffline(),q=new NewDialog(d,p,!(d.mode==App.MODE_DEVICE&&"chooseFileSystemEntries"in window));d.showDialog(q.container,p?350:620,p?70:460,!0,!0,function(G){null!=d.sidebar&&d.sidebar.hideTooltip();G&&null==d.getCurrentFile()&&d.showSplash()});q.init()});d.actions.put("insertTemplate",new Action("template...",function(){if(t.isEnabled()&&
-!t.isCellLocked(t.getDefaultParent())){var p=new NewDialog(d,null,!1,function(q){d.hideDialog();if(null!=q){var G=d.editor.graph.getFreeInsertPoint();t.setSelectionCells(d.importXml(q,Math.max(G.x,20),Math.max(G.y,20),!0,null,null,!0));t.scrollCellToVisible(t.getSelectionCell())}},null,null,null,null,null,null,null,null,null,null,!1,mxResources.get("insert"));d.showDialog(p.container,620,460,!0,!0,function(){d.sidebar.hideTooltip()});p.init()}})).isEnabled=x;var v=d.actions.addAction("shareCursor",
-function(){d.setShareCursorPosition(!d.isShareCursorPosition())});v.setToggleAction(!0);v.setSelectedCallback(function(){return d.isShareCursorPosition()});v=d.actions.addAction("showRemoteCursors",function(){d.setShowRemoteCursors(!d.isShowRemoteCursors())});v.setToggleAction(!0);v.setSelectedCallback(function(){return d.isShowRemoteCursors()});v=d.actions.addAction("points",function(){d.editor.graph.view.setUnit(mxConstants.POINTS)});v.setToggleAction(!0);v.setSelectedCallback(function(){return d.editor.graph.view.unit==
-mxConstants.POINTS});v=d.actions.addAction("inches",function(){d.editor.graph.view.setUnit(mxConstants.INCHES)});v.setToggleAction(!0);v.setSelectedCallback(function(){return d.editor.graph.view.unit==mxConstants.INCHES});v=d.actions.addAction("millimeters",function(){d.editor.graph.view.setUnit(mxConstants.MILLIMETERS)});v.setToggleAction(!0);v.setSelectedCallback(function(){return d.editor.graph.view.unit==mxConstants.MILLIMETERS});v=d.actions.addAction("meters",function(){d.editor.graph.view.setUnit(mxConstants.METERS)});
-v.setToggleAction(!0);v.setSelectedCallback(function(){return d.editor.graph.view.unit==mxConstants.METERS});this.put("units",new Menu(mxUtils.bind(this,function(p,q){this.addMenuItems(p,["points","inches","millimeters","meters"],q);"min"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme||d.menus.addMenuItems(p,["-","pageScale"],q)})));v=d.actions.addAction("pageTabs",function(){d.setTabContainerVisible(!d.isTabContainerVisible(),!0)});v.setToggleAction(!0);v.setSelectedCallback(function(){return d.isTabContainerVisible()});
-v=d.actions.addAction("ruler",function(){d.setRulerVisible(!d.isRulerVisible())});v.setEnabled(d.canvasSupported&&9!=document.documentMode);v.setToggleAction(!0);v.setSelectedCallback(function(){return d.isRulerVisible()});v=d.actions.addAction("fullscreen",function(){"1"==urlParams.embedInline?d.setInlineFullscreen(!Editor.inlineFullscreen):null==document.fullscreenElement?document.body.requestFullscreen():document.exitFullscreen()});v.visible="1"==urlParams.embedInline||window==window.top&&document.fullscreenEnabled&&
-null!=document.body.requestFullscreen;v.setToggleAction(!0);v.setSelectedCallback(function(){return"1"==urlParams.embedInline?Editor.inlineFullscreen:null!=document.fullscreenElement});v=d.actions.put("lightMode",new Action("light",function(p){d.setAndPersistDarkMode(!1)}));v.setToggleAction(!0);v.setSelectedCallback(function(){return!d.isAutoDarkMode(!0)&&!Editor.isDarkMode()});v=d.actions.put("darkMode",new Action("dark",function(p){d.setAndPersistDarkMode(!0)}));v.setToggleAction(!0);v.setSelectedCallback(function(){return!d.isAutoDarkMode(!0)&&
-Editor.isDarkMode()});v=d.actions.put("autoMode",new Action("automatic",function(p){d.setAndPersistDarkMode("auto")}));v.setToggleAction(!0);v.setSelectedCallback(function(){return d.isAutoDarkMode(!0)});d.actions.addAction("properties...",function(){d.getPublicUrl(d.getCurrentFile(),function(p){p=new FilePropertiesDialog(d,p);d.showDialog(p.container,340,200,!0,!0);p.init()})}).isEnabled=x;window.mxFreehand&&(d.actions.put("insertFreehand",new Action("freehand...",function(){if(t.isEnabled()){if(null==
-d.freehandWindow){var p=!mxClient.IS_IE&&!mxClient.IS_IE11;d.freehandWindow=new FreehandWindow(d,document.body.offsetWidth-420,102,176,p?126:90,p)}t.freehand.isDrawing()?t.freehand.stopDrawing():t.freehand.startDrawing();d.freehandWindow.window.setVisible(!0)}},null,null,"X")).isEnabled=function(){return x()&&mxClient.IS_SVG});d.actions.put("exportXml",new Action("formatXml...",function(){var p=document.createElement("div");p.style.whiteSpace="nowrap";var q=null==d.pages||1>=d.pages.length,G=document.createElement("h3");
-mxUtils.write(G,mxResources.get("formatXml"));G.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";p.appendChild(G);var E=d.addCheckbox(p,mxResources.get("selectionOnly"),!1,t.isSelectionEmpty()),H=d.addCheckbox(p,mxResources.get("compressed"),Editor.defaultCompressed),L=d.addCheckbox(p,mxResources.get("allPages"),!q,q);L.style.marginBottom="16px";mxEvent.addListener(E,"change",function(){E.checked?L.setAttribute("disabled","disabled"):L.removeAttribute("disabled")});p=
-new CustomDialog(d,p,mxUtils.bind(this,function(){d.downloadFile("xml",!H.checked,null,!E.checked,q||!L.checked)}),null,mxResources.get("export"));d.showDialog(p.container,300,200,!0,!0)}));Editor.enableExportUrl&&d.actions.put("exportUrl",new Action("url...",function(){d.showPublishLinkDialog(mxResources.get("url"),null,null,null,null,null,null,null,function(p,q,G,E,H,L,K,k,y,F,M,P){K=[];E&&y&&K.push("tags=%7B%7D");p=new EmbedDialog(d,d.createLink(p,q,!0,E,H,L,null,!0,K,null,G,null,P));d.showDialog(p.container,
-450,240,!0,!0);p.init()},null,!0)}));d.actions.put("exportHtml",new Action("formatHtmlEmbedded...",function(){d.getPublicUrl(d.getCurrentFile(),function(p){d.showHtmlDialog(mxResources.get("export"),null,p,function(q,G,E,H,L,K,k,y,F,M,P,R){d.createHtml(q,G,E,H,L,K,k,y,F,M,P,mxUtils.bind(this,function(T,V){var W=d.getBaseFilename(k);T='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n<!DOCTYPE html>\n<html>\n<head>\n<title>'+mxUtils.htmlEntities(W)+'</title>\n<meta charset="utf-8"/>\n</head>\n<body>'+
-T+"\n"+V+"\n</body>\n</html>";d.saveData(W+(".drawio"==W.substring(W.lenth-7)?"":".drawio")+".html","html",T,"text/html")}),R)})})}));d.actions.put("exportPdf",new Action("formatPdf...",function(){d.showPrintDialog(mxResources.get("formatPdf"),EditorUi.isElectronApp||!d.isOffline()&&!d.printPdfExport?mxUtils.bind(this,function(p,q){p=null!=d.pages?d.pages.length:1;var G=null==d.pages||1>=d.pages.length,E=d.getPageIndex(d.currentPage);E=null!=E?E+1:1;d.downloadFile("pdf",null,null,!q.selection,G||
-!q.allPages&&q.pagesFrom==E&&q.pagesTo==E,!q.crop,q.transparent,q.scale,null,q.grid,q.includeCopy,q.allPages||q.pagesFrom==E&&q.pagesTo==E?null:{from:Math.max(0,Math.min(p-1,q.pagesFrom-1)),to:Math.max(0,Math.min(p-1,q.pagesTo-1))},q.border,q.fit,q.sheetsAcross,q.sheetsDown)}):null,mxResources.get("export"))}));d.actions.addAction("open...",function(){d.pickFile()});d.actions.addAction("close",function(){function p(){null!=q&&q.removeDraft();d.fileLoaded(null)}var q=d.getCurrentFile();null!=q&&q.isModified()?
-d.confirm(mxResources.get("allChangesLost"),null,p,mxResources.get("cancel"),mxResources.get("discardChanges")):p()});d.actions.addAction("editShape...",mxUtils.bind(this,function(){t.getSelectionCells();if(1==t.getSelectionCount()){var p=t.getSelectionCell(),q=t.view.getState(p);null!=q&&null!=q.shape&&null!=q.shape.stencil&&(p=new EditShapeDialog(d,p,mxResources.get("editShape")+":",630,400),d.showDialog(p.container,640,480,!0,!1),p.init())}}));d.actions.addAction("revisionHistory...",function(){d.isRevisionHistorySupported()?
-d.spinner.spin(document.body,mxResources.get("loading"))&&d.getRevisions(mxUtils.bind(this,function(p,q){d.spinner.stop();p=new RevisionDialog(d,p,q);d.showDialog(p.container,640,480,!0,!0);p.init()}),mxUtils.bind(this,function(p){d.handleError(null!=p?p:mxResources.get("notAvailable"))})):d.showError(mxResources.get("error"),mxResources.get("notAvailable"),mxResources.get("ok"))});d.actions.addAction("createRevision",function(){d.actions.get("save").funct()},null,null,Editor.ctrlKey+"+S");v=d.actions.addAction("synchronize",
-function(){d.synchronizeCurrentFile("none"==DrawioFile.SYNC)},null,null,"Alt+Shift+S");"none"==DrawioFile.SYNC&&(v.label=mxResources.get("refresh"));d.actions.addAction("upload...",function(){var p=d.getCurrentFile();null!=p&&(window.drawdata=d.getFileData(),p=null!=p.getTitle()?p.getTitle():d.defaultFilename,d.openLink(window.location.protocol+"//"+window.location.host+"/?create=drawdata&"+(d.mode==App.MODE_DROPBOX?"mode=dropbox&":"")+"title="+encodeURIComponent(p),null,!0))});"undefined"!==typeof MathJax&&
-(v=d.actions.addAction("mathematicalTypesetting",function(){var p=new ChangePageSetup(d);p.ignoreColor=!0;p.ignoreImage=!0;p.mathEnabled=!d.isMathEnabled();t.model.execute(p)}),v.setToggleAction(!0),v.setSelectedCallback(function(){return d.isMathEnabled()}),v.isEnabled=x);v=d.actions.put("defaultAdaptiveColors",new Action("defaultAdaptiveColors",function(){var p=new ChangePageSetup(d);p.ignoreColor=!0;p.ignoreImage=!0;p.adaptiveColors="default";t.model.execute(p)}));v.getTitle=function(){return mxResources.get("default")+
-" ("+mxResources.get(Graph.getDefaultAdaptiveColorsKey())+")"};v.setToggleAction(!0);v.setSelectedCallback(function(){return null==t.adaptiveColors});v=d.actions.put("automaticAdaptiveColors",new Action("automatic",function(){var p=new ChangePageSetup(d);p.ignoreColor=!0;p.ignoreImage=!0;p.adaptiveColors="auto";t.model.execute(p)}));v.setToggleAction(!0);v.setSelectedCallback(function(){return"auto"==t.adaptiveColors});v=d.actions.put("simpleAdaptiveColors",new Action("simple",function(){var p=new ChangePageSetup(d);
-p.ignoreColor=!0;p.ignoreImage=!0;p.adaptiveColors="simple";t.model.execute(p)}));v.setToggleAction(!0);v.setSelectedCallback(function(){return"simple"==t.adaptiveColors});v=d.actions.put("noAdaptiveColors",new Action("none",function(){var p=new ChangePageSetup(d);p.ignoreColor=!0;p.ignoreImage=!0;p.adaptiveColors="none";t.model.execute(p)}));v.setToggleAction(!0);v.setSelectedCallback(function(){return"none"==t.adaptiveColors});this.put("adaptiveColors",new Menu(mxUtils.bind(this,function(p,q){this.addMenuItems(p,
-["defaultAdaptiveColors","-","automaticAdaptiveColors","simpleAdaptiveColors","noAdaptiveColors"],q)})));isLocalStorage&&(v=d.actions.addAction("showStartScreen",function(){mxSettings.setShowStartScreen(!mxSettings.getShowStartScreen());mxSettings.save()}),v.setToggleAction(!0),v.setSelectedCallback(function(){return mxSettings.getShowStartScreen()}));var B=d.actions.addAction("autosave",function(){d.editor.setAutosave(!d.editor.autosave)});B.setToggleAction(!0);B.setSelectedCallback(function(){return B.isEnabled()&&
-d.editor.autosave});d.actions.addAction("editGeometry...",function(){for(var p=t.getSelectionCells(),q=[],G=0;G<p.length;G++)t.getModel().isVertex(p[G])&&q.push(p[G]);0<q.length&&(p=new EditGeometryDialog(d,q),d.showDialog(p.container,200,270,!0,!0),p.init())},null,null,Editor.ctrlKey+"+Shift+M");d.actions.addAction("copyStyle",function(){if(t.isEnabled()&&1==t.getSelectionCount()){var p=t.getSelectionCell(),q=t.getCellStyle(p,!1);d.copiedStyle={};var G=[],E=[],H;for(H in q)G.push(q[H]),E.push(H);
-t.copyCellStyles([p],E,G,d.copiedStyle,d.copiedStyle,null,null,null,!0)}},null,null,"Alt+C");d.actions.addAction("pasteStyle",function(){t.isEnabled()&&!t.isSelectionEmpty()&&null!=d.copiedStyle&&t.pasteCellStyles(t.includeDescendants(t.getSelectionCells()),d.copiedStyle,d.copiedStyle,!0)},null,null,"Alt+V");d.actions.put("exportSvg",new Action("formatSvg...",function(){d.showExportDialog(mxResources.get("formatSvg"),!0,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,
-function(p,q,G,E,H,L,K,k,y,F,M,P,R,T){p=parseInt(p);d.lastExportSvgEditable=H;!isNaN(p)&&0<p&&d.exportSvg(p/100,q,G,E,H,L,K,!k,y,F,P,R,T)}),!0,d.lastExportSvgEditable,"svg",!0)}));d.actions.put("exportPng",new Action("formatPng...",function(){m("png",d.lastExportPngEditable,function(p,q,G,E,H){d.lastExportPngEditable=H})}));d.actions.put("exportJpg",new Action("formatJpg...",function(){m("jpeg")}));d.actions.put("exportWebp",new Action("formatWebp...",function(){m("webp")}));v=d.actions.addAction("copyAsImage",
-mxUtils.bind(this,function(){var p=mxUtils.sortCells(t.model.getTopmostCells(t.getSelectionCells())),q=mxUtils.getXml(0==p.length?d.editor.getGraphXml():t.encodeCells(p));d.copyImage(p,q)}),null,null,"Ctrl+Alt+X");v.visible=Editor.enableNativeCipboard&&d.isExportToCanvas()&&!mxClient.IS_SF;v=d.actions.put("shadowVisible",new Action("shadow",function(){t.setShadowVisible(!t.shadowVisible)}));v.setToggleAction(!0);v.setSelectedCallback(function(){return t.shadowVisible});d.actions.put("about",new Action("v"+
-EditorUi.VERSION,function(p,q){d.isOwnDomain()&&mxEvent.isShiftDown(q)&&("1"==urlParams.test?(EditorUi.debug("Debug output disabled"),urlParams.test="0"):(urlParams.test="1",EditorUi.debug("Debug output enabled")))}));d.actions.addAction("support...",function(){EditorUi.isElectronApp?d.openLink("https://github.com/jgraph/drawio-desktop/wiki/Getting-Support"):d.openLink("https://github.com/jgraph/drawio/wiki/Getting-Support")});d.actions.addAction("exportOptionsDisabled...",function(){d.handleError({message:mxResources.get("exportOptionsDisabledDetails")},
-mxResources.get("exportOptionsDisabled"))});d.actions.addAction("keyboardShortcuts...",function(){!mxClient.IS_SVG||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?d.openLink("https://viewer.diagrams.net/#Uhttps%3A%2F%2Fviewer.diagrams.net%2Fshortcuts.svg"):d.openLink("shortcuts.svg")});d.actions.addAction("feedback...",function(){var p=new FeedbackDialog(d);d.showDialog(p.container,610,360,!0,!1);p.init()});d.actions.addAction("quickStart...",function(){"ac.draw.io"===window.location.hostname?d.openLink("https://www.youtube.com/watch?v=s5BG0705MHU"):
-d.openLink("https://www.youtube.com/watch?v=Z0D96ZikMkc")});v=d.actions.addAction("tags",mxUtils.bind(this,function(){null==this.tagsWindow?(this.tagsWindow=new TagsWindow(d,document.body.offsetWidth-400,60,212,200),this.tagsWindow.window.addListener("show",mxUtils.bind(this,function(){d.fireEvent(new mxEventObject("tags"))})),this.tagsWindow.window.addListener("hide",function(){d.fireEvent(new mxEventObject("tags"))}),this.tagsWindow.window.setVisible(!0),d.fireEvent(new mxEventObject("tags"))):
-this.tagsWindow.window.setVisible(!this.tagsWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+K");v.setToggleAction(!0);v.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.tagsWindow&&this.tagsWindow.window.isVisible()}));null==Editor.gptApiKey||null==Editor.gptModel||null==Editor.gptUrl||d.isOffline()||EditorUi.isElectronApp||(v=d.actions.addAction("chatWindowTitle",mxUtils.bind(this,function(){null==this.chatWindow?(this.chatWindow=new ChatWindow(d,220,document.body.offsetHeight-
-380,250,320),this.chatWindow.window.addListener("show",mxUtils.bind(this,function(){d.fireEvent(new mxEventObject("chat"))})),this.chatWindow.window.addListener("hide",function(){d.fireEvent(new mxEventObject("chat"))}),this.chatWindow.window.setVisible(!0),d.fireEvent(new mxEventObject("chat"))):this.chatWindow.window.setVisible(!this.chatWindow.window.isVisible())})),v.setToggleAction(!0),v.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.chatWindow&&this.chatWindow.window.isVisible()})));
-v=d.actions.addAction("findReplace",mxUtils.bind(this,function(p,q){var G=(p=t.isEnabled()&&(null==q||!mxEvent.isShiftDown(q)))?"findReplace":"find";q=G+"Window";if(null==this[q]){var E="min"==Editor.currentTheme||"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,H=p?E?330:300:240;this[q]=new FindWindow(d,document.body.offsetWidth-(H+20),100,H,p?E?304:288:170,p);this[q].window.addListener("show",function(){d.fireEvent(new mxEventObject(G))});this[q].window.addListener("hide",function(){d.fireEvent(new mxEventObject(G))})}this[q].window.setVisible(!0);
-this[q].focus()}),null,null,Editor.ctrlKey+"+F");v=new Action("exportVsdx",function(){var p=null==d.pages||1>=d.pages.length;if(p)d.exportVisio();else{var q=document.createElement("div");q.style.whiteSpace="nowrap";var G=document.createElement("h3");mxUtils.write(G,mxResources.get("formatVsdx"));G.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";q.appendChild(G);var E=d.addCheckbox(q,mxResources.get("allPages"),!p,p);E.style.marginBottom="16px";p=new CustomDialog(d,q,
-mxUtils.bind(this,function(){d.exportVisio(!E.checked)}),null,mxResources.get("export"));d.showDialog(p.container,300,130,!0,!0)}});v.getTitle=function(){return mxResources.get("formatVsdx")+" (beta)..."};d.actions.put("exportVsdx",v);isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&d.actions.addAction("configuration...",function(){var p=document.createElement("input");p.setAttribute("type","checkbox");p.style.marginRight="8px";p.checked=mxSettings.getShowStartScreen();p.defaultChecked=p.checked;
-if(Editor.isSettingsEnabled()&&("sketch"==Editor.currentTheme||"simple"==Editor.currentTheme||"min"==Editor.currentTheme)){var q=document.createElement("span");q.style.display="flex";q.style.alignItems="center";q.style.cssFloat="right";q.style.cursor="pointer";q.style.userSelect="none";q.style.marginTop="-3px";q.appendChild(p);mxUtils.write(q,mxResources.get("showStartScreen"));mxEvent.addListener(q,"click",function(E){mxEvent.getSource(E)!=p&&(p.checked=!p.checked)});header=q}q=[[mxResources.get("reset"),
-function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(E){d.handleError(E)}})}]];if(!d.isOfflineApp()&&isLocalStorage&&d.mode!=App.MODE_ATLAS){var G=d.actions.get("plugins");null==G||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||q.push([mxResources.get("plugins"),G.funct])}EditorUi.isElectronApp||q.push([mxResources.get("link"),
-function(E,H){if(0<H.value.length)try{var L=JSON.parse(H.value),K=window.location.protocol+"//"+window.location.host+"/"+d.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(L)),k=new EmbedDialog(d,K);d.showDialog(k.container,450,240,!0);k.init()}catch(y){d.handleError(y)}else d.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=d.getServiceName()&&"1"!=urlParams.embed&&q.push([mxResources.get("preferences"),function(){d.showLocalStorageDialog(mxResources.get("preferences")+
-":",Editor.settingsKey,[[mxResources.get("reset"),function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config"),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(E){d.handleError(E)}})}]])}]);d.showLocalStorageDialog(mxResources.get("configuration")+":",Editor.configurationKey,q,p.parentNode,"https://www.drawio.com/doc/faq/configure-diagram-editor",function(){null!=p.parentNode&&(mxSettings.setShowStartScreen(p.checked),
-mxSettings.save())})});(mxClient.IS_CHROMEAPP||isLocalStorage)&&this.put("language",new Menu(mxUtils.bind(this,function(p,q){var G=mxLanguage;null==urlParams.lang&&isLocalStorage&&(G=mxSettings.settings.language);var E=mxUtils.bind(this,function(L){var K=""==L?mxResources.get("automatic"):mxLanguageMap[L],k=null;""!=K&&(k=p.addItem(K,null,mxUtils.bind(this,function(){d.setAndPersistLanguage(L)}),q),(L==G||""==L&&null==G)&&p.addCheckmark(k,Editor.checkmarkImage));return k});E("");p.addSeparator(q);
-for(var H in mxLanguageMap)E(H)})));d.customLayoutConfig=[{layout:"mxHierarchicalLayout",config:{orientation:"west",intraCellSpacing:30,interRankCellSpacing:100,interHierarchySpacing:60,parallelEdgeSpacing:10}}];d.actions.addAction("runLayout",function(){d.showCustomLayoutDialog(JSON.stringify(d.customLayoutConfig,null,2))});d.actions.put("adaptiveColors",new Action("adaptiveColors",function(p){null==d.adaptiveColorsWindow&&(d.adaptiveColorsWindow=new AdaptiveColorsWindow(d,document.body.offsetWidth-
-520,80,200,160));d.adaptiveColorsWindow.window.setVisible(!0)}));v=this.get("viewZoom");var J=v.funct;v.funct=mxUtils.bind(this,function(p,q){J.apply(this,arguments);"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(p,["-","outline","fullscreen"],q)});v=this.get("layout");var N=v.funct;v.funct=function(p,q){N.apply(this,arguments);p.addItem(mxResources.get("orgChart"),null,function(){var G=null,E=20,H=20,L=function(){"undefined"!==typeof mxOrgChartLayout&&null!=G&&d.tryAndHandle(mxUtils.bind(this,
-function(){var T=d.editor.graph,V=new mxOrgChartLayout(T,G,E,H),W=T.getDefaultParent();1<T.model.getChildCount(T.getSelectionCell())&&(W=T.getSelectionCell());V.execute(W)}))},K=document.createElement("div"),k=document.createElement("div");k.style.marginTop="6px";k.style.display="inline-block";k.style.width="180px";mxUtils.write(k,mxResources.get("orgChartType")+": ");K.appendChild(k);var y=document.createElement("select");y.style.width="160px";y.style.boxSizing="border-box";k=[mxResources.get("linear"),
-mxResources.get("hanger2"),mxResources.get("hanger4"),mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),mxResources.get("smart")];for(var F=0;F<k.length;F++){var M=document.createElement("option");mxUtils.write(M,k[F]);M.value=F;2==F&&M.setAttribute("selected","selected");y.appendChild(M)}mxEvent.addListener(y,"change",function(){G=y.value});K.appendChild(y);k=document.createElement("div");k.style.marginTop="6px";k.style.display=
-"inline-block";k.style.width="180px";mxUtils.write(k,mxResources.get("parentChildSpacing")+": ");K.appendChild(k);var P=document.createElement("input");P.type="number";P.value=E;P.style.width="160px";P.style.boxSizing="border-box";K.appendChild(P);mxEvent.addListener(P,"change",function(){E=P.value});k=document.createElement("div");k.style.marginTop="6px";k.style.display="inline-block";k.style.width="180px";mxUtils.write(k,mxResources.get("siblingSpacing")+": ");K.appendChild(k);var R=document.createElement("input");
-R.type="number";R.value=H;R.style.width="160px";R.style.boxSizing="border-box";K.appendChild(R);mxEvent.addListener(R,"change",function(){H=R.value});k=mxUtils.button(mxResources.get("custom")+"...",function(){var T=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(y.value),parentChildSpacing:parseInt(P.value),siblingSpacing:parseInt(R.value)}}];d.hideDialog();d.showCustomLayoutDialog(JSON.stringify(T,null,2))});k.className="geBtn";K=new CustomDialog(d,K,function(){null==G&&(G=2);d.loadOrgChartLayouts(L)},
-null,null,null,k);d.showDialog(K.container,355,140,!0,!0)},q,null,x());p.addSeparator(q);p.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){d.tryAndHandle(mxUtils.bind(this,function(){var G=new mxParallelEdgeLayout(t);G.checkOverlap=!0;d.prompt(mxResources.get("spacing"),G.spacing,mxUtils.bind(this,function(E){d.tryAndHandle(mxUtils.bind(this,function(){G.spacing=E;d.executeLayout(function(){G.execute(t.getDefaultParent(),t.isSelectionEmpty()?null:t.getSelectionCells())},!1)}))}))}))}),
-q);p.addSeparator(q);d.menus.addMenuItem(p,"runLayout",q,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(p,q){if(!mxClient.IS_CHROMEAPP&&d.isOffline())this.addMenuItems(p,["keyboardShortcuts","-","about"],q);else{var G=p.addItem("Search:",null,null,q,null,null,!1);G.style.cursor="default";var E=document.createElement("input");E.setAttribute("type","text");E.setAttribute("size","25");E.style.borderWidth="1px";E.style.marginLeft="8px";mxEvent.addListener(E,
-"keydown",mxUtils.bind(this,function(H){var L=mxUtils.trim(E.value);13==H.keyCode&&0<L.length?(this.editorUi.openLink("https://www.drawio.com/search?src="+(EditorUi.isElectronApp?"DESKTOP":encodeURIComponent(location.host))+"&search="+encodeURIComponent(L)),E.value="",EditorUi.logEvent({category:"SEARCH-HELP",action:"search",label:L}),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0)):27==H.keyCode&&(E.value="")}));G.firstChild.nextSibling.appendChild(E);mxEvent.addGestureListeners(E,
-function(H){document.activeElement!=E&&E.focus();mxEvent.consume(H)},function(H){mxEvent.consume(H)},function(H){mxEvent.consume(H)});window.setTimeout(function(){E.focus()},0);EditorUi.isElectronApp?(d.actions.addAction("website...",function(){d.openLink("https://www.drawio.com")}),d.actions.addAction("check4Updates",function(){d.checkForUpdates()}),d.actions.put("desktopZoomIn",new Action("zoomIn",function(){d.desktopZoomIn()})),d.actions.put("desktopZoomOut",new Action("zoomOut",function(){d.desktopZoomOut()})),
-d.actions.put("desktopResetZoom",new Action("actualSize",function(){d.desktopResetZoom()})),this.addMenuItems(p,"- keyboardShortcuts quickStart website support -".split(" "),q),"1"!=urlParams.disableUpdate&&this.addMenuItems(p,["check4Updates","-"],q),this.addMenuItems(p,"desktopResetZoom desktopZoomIn desktopZoomOut - openDevTools - about".split(" "),q)):this.addMenuItems(p,"- keyboardShortcuts quickStart support - about".split(" "),q)}"1"==urlParams.test&&(p.addSeparator(q),this.addSubmenu("testDevelop",
-p,q))})));d.actions.addAction("languageCode...",function(){var p=new FilenameDialog(d,Graph.diagramLanguage||"",mxResources.get("ok"),mxUtils.bind(this,function(q){null!=q&&(Graph.diagramLanguage=0<q.length?q:null,Graph.translateDiagram=!0,t.refresh())}),mxResources.get("languageCode"),null,null,"https://www.drawio.com/blog/translate-diagrams");d.showDialog(p.container,340,80,!0,!0);p.init()});this.put("diagramLanguage",new Menu(mxUtils.bind(this,function(p,q){this.addMenuItems(p,["languageCode",
-"-"],q);q=p.addItem(mxResources.get("disabled"),null,function(){Graph.translateDiagram=!1;t.refresh()},q);Graph.translateDiagram||p.addCheckmark(q,Editor.checkmarkImage)})));if("1"==urlParams.test){mxResources.parse("testDevelop=Develop");mxResources.parse("showBoundingBox=Show bounding box");mxResources.parse("createSidebarEntry=Create Sidebar Entry");mxResources.parse("testCheckFile=Check File");mxResources.parse("testDiff=Diff/Sync");mxResources.parse("testChecksum=Checksum");mxResources.parse("testCheckPages=Check Pages");
-mxResources.parse("testFixPages=Fix Pages");mxResources.parse("testInspect=Inspect");mxResources.parse("testShowConsole=Show Console");mxResources.parse("testXmlImageExport=XML Image Export");mxResources.parse("testOptimize=Remove Inline Images");mxResources.parse("testPerformance=Performance");d.actions.addAction("createSidebarEntry",mxUtils.bind(this,function(){if(!t.isSelectionEmpty()){var p=t.cloneCells(t.getSelectionCells()),q=t.getBoundingBoxFromGeometry(p,!0);p=t.moveCells(p,-q.x,-q.y);d.showTextDialog("Create Sidebar Entry",
-"this.addDataEntry('tag1 tag2', "+q.width+", "+q.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(t.encodeCells(p)))+"'),")}}));d.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function p(K){return null==K||null==K.boundingBox||!isNaN(K.boundingBox.x)&&!isNaN(K.boundingBox.y)&&!isNaN(K.boundingBox.width)&&!isNaN(K.boundingBox.height)}var q=t.isSelectionEmpty()?t.getGraphBounds():t.getBoundingBox(t.getSelectionCells()),G=t.view.translate,E=t.view.scale;t.insertVertex(t.getDefaultParent(),
-null,"",q.x/E-G.x,q.y/E-G.y,q.width/E,q.height/E,"fillColor=none;strokeColor=red;");var H=0,L=0;t.view.states.visit(function(K,k){K=!0;p(k.shape)||(console.log("invalid shape",k.cell.id,k.shape),K=!1);p(k.text)||(console.log("invalid text",k.cell.id,k.text),K=!1);K||H++;L++});console.log("states checked",L,"invalid",H)}));d.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var p=null!=d.pages&&null!=d.getCurrentFile()?d.getCurrentFile().getAnonymizedXmlForPages(d.pages):"";p=new TextareaDialog(d,
-"Paste Data:",p,function(q){if(0<q.length)try{var G=function(k){function y(Z){if(null==Y[Z]){if(Y[Z]=!0,null!=P[Z]){for(;0<P[Z].length;){var da=P[Z].pop();y(da)}delete P[Z]}}else mxLog.debug(F+": Visited: "+Z)}var F=k.parentNode.id,M=k.childNodes;k={};for(var P={},R=null,T={},V=0;V<M.length;V++){var W=M[V];if(null!=W.id&&0<W.id.length)if(null==k[W.id]){k[W.id]=W.id;var X=W.getAttribute("parent");null==X?null!=R?mxLog.debug(F+": Multiple roots: "+W.id):R=W.id:(null==P[X]&&(P[X]=[]),P[X].push(W.id))}else T[W.id]=
-W.id}M=Object.keys(T);0<M.length?(M=F+": "+M.length+" Duplicates: "+M.join(", "),mxLog.debug(M+" (see console)")):mxLog.debug(F+": Checked");var Y={};null==R?mxLog.debug(F+": No root"):(y(R),Object.keys(Y).length!=Object.keys(k).length&&(mxLog.debug(F+": Invalid tree: (see console)"),console.log(F+": Invalid tree",P)))};"<"!=q.charAt(0)&&(q=Graph.decompress(q),mxLog.debug("See console for uncompressed XML"),console.log("xml",q));var E=mxUtils.parseXml(q),H=d.getPagesForNode(E.documentElement,"mxGraphModel");
-if(null!=H&&0<H.length)try{var L=d.getHashValueForPages(H);mxLog.debug("Checksum: ",L)}catch(k){mxLog.debug("Error: ",k.message)}else mxLog.debug("No pages found for checksum");var K=E.getElementsByTagName("root");for(q=0;q<K.length;q++)G(K[q]);mxLog.show()}catch(k){d.handleError(k),null!=window.console&&console.error(k)}});d.showDialog(p.container,620,460,!0,!0);p.init()}));var I=null;d.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=d.pages){var p=new TextareaDialog(d,"Diff/Sync:",
-"",function(q){var G=d.getCurrentFile();if(0<q.length&&null!=G)try{var E=JSON.parse(q);G.patch([E],null,!0,!0);d.hideDialog()}catch(H){d.handleError(H)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",function(q,G){I=d.getPagesForXml(d.getFileData(!0));p.textarea.value="Snapshot updated "+(new Date).toLocaleString()+" Checksum "+d.getHashValueForPages(I)}],["Diff",function(q,G){try{p.textarea.value=JSON.stringify(d.diffPages(I,d.pages),null,2)}catch(E){d.handleError(E)}}]]);null==I?
-(I=d.getPagesForXml(d.getFileData(!0)),p.textarea.value="Snapshot created "+(new Date).toLocaleString()+" Checksum "+d.getHashValueForPages(I)):p.textarea.value=JSON.stringify(d.diffPages(I,d.pages),null,2);d.showDialog(p.container,620,460,!0,!0);p.init()}else d.alert("No pages")}));d.actions.addAction("testChecksum",mxUtils.bind(this,function(){var p=d.getCurrentFile();null!=d.pages&&null!=p?d.spinner.spin(document.body,mxResources.get("loading"))&&p.getLatestVersion(function(q){d.spinner.stop();
-var G=d.getHashValueForPages(d.pages),E=p.getCurrentRevisionId(),H=d.getHashValueForPages(q.getShadowPages()),L=q.getDescriptorChecksum(q.getDescriptor()),K=q.getCurrentRevisionId();console.log("Local File",[p],"modified",p.isModified(),"checksum",G);console.log("Remote File",[q],"rev",K==E,"desc",L==H,"checksum",H);d.alert("Checksums "+(H==G?"match":"no not match"))},function(q){console.log("Error getLatestVersion",q);d.handleError(q)}):console.log("Checksum: no file or pages")}));d.actions.addAction("testCheckPages",
-mxUtils.bind(this,function(){var p=d.getCurrentFile();console.log("editorUi",d,"file",p);if(null!=p&&p.isRealtime()){console.log("Checksum ownPages",d.getHashValueForPages(p.ownPages));console.log("Checksum theirPages",d.getHashValueForPages(p.theirPages));console.log("diff ownPages/theirPages",d.diffPages(p.ownPages,p.theirPages));var q=p.getShadowPages();null!=q&&(console.log("Checksum shadowPages",d.getHashValueForPages(q)),console.log("diff shadowPages/ownPages",d.diffPages(q,p.ownPages)),console.log("diff ownPages/shadowPages",
-d.diffPages(p.ownPages,q)),console.log("diff theirPages/shadowPages",d.diffPages(p.theirPages,q)));null!=p.sync&&null!=p.sync.snapshot&&(console.log("Checksum snapshot",d.getHashValueForPages(p.sync.snapshot)),console.log("diff ownPages/snapshot",d.diffPages(p.ownPages,p.sync.snapshot)),console.log("diff theirPages/snapshot",d.diffPages(p.theirPages,p.sync.snapshot)),null!=d.pages&&console.log("diff snapshot/actualPages",d.diffPages(p.sync.snapshot,d.pages)));null!=d.pages&&(console.log("diff ownPages/actualPages",
-d.diffPages(p.ownPages,d.pages)),console.log("diff theirPages/actualPages",d.diffPages(p.theirPages,d.pages)))}null!=p&&console.log("Shadow pages",[d.getXmlForPages(p.getShadowPages())]);null!=d.pages&&console.log("Checksum actualPages",d.getHashValueForPages(d.pages))}));d.actions.addAction("testFixPages",mxUtils.bind(this,function(){console.log("editorUi",d);var p=d.getCurrentFile();null!=p&&p.isRealtime()&&null!=p.shadowPages&&(console.log("patching actualPages to shadowPages",p.patch([d.diffPages(p.shadowPages,
-d.pages)])),p.ownPages=d.clonePages(d.pages),p.theirPages=d.clonePages(d.pages),p.shadowPages=d.clonePages(d.pages),null!=p.sync&&(p.sync.snapshot=d.clonePages(d.pages)))}));d.actions.addAction("testOptimize",mxUtils.bind(this,function(){t.model.beginUpdate();try{var p=t.model.cells,q=0,G=[],E=[],H;for(H in p){var L=p[H],K=t.getCurrentCellStyle(L)[mxConstants.STYLE_IMAGE];null!=K&&"data:"==K.substring(0,5)&&(null==G[K]&&(G[K]=(G[K]||0)+1,q++),E.push(L))}t.setCellStyles(mxConstants.STYLE_IMAGE,null,
-E);console.log("Removed",q,"image(s) from",E.length,"cell(s): ",[E,G])}finally{t.model.endUpdate()}}));d.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(d,t.getModel())}));d.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var p=new mxImageExport,q=t.getGraphBounds(),G=t.view.scale,E=mxUtils.createXmlDocument(),H=E.createElement("output");E.appendChild(H);E=new mxXmlCanvas2D(H);E.translate(Math.floor((1-q.x)/G),Math.floor((1-q.y)/G));E.scale(1/G);var L=
-0,K=E.save;E.save=function(){L++;K.apply(this,arguments)};var k=E.restore;E.restore=function(){L--;k.apply(this,arguments)};var y=p.drawShape;p.drawShape=function(F){mxLog.debug("entering shape",F,L);y.apply(this,arguments);mxLog.debug("leaving shape",F,L)};p.drawState(t.getView().getState(t.model.root),E);mxLog.show();mxLog.debug(mxUtils.getXml(H));mxLog.debug("stateCounter",L)}));d.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=
-mxPopupMenu.prototype.zIndex-2});var c=null,e=null,g=null,l=null,n=null,u=null,z=null,D=null;d.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=c?(t.view.revalidate=c,c=null):(c=t.view.revalidate,t.view.revalidate=function(){var p=Date.now(),q=c.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",[this],"time",Date.now()-p+" ms","args",arguments);return q});null!=e?(d.selectPage=e,e=null):(e=d.selectPage,d.selectPage=function(){var p=Date.now(),q=e.apply(this,
-arguments);EditorUi.debug("[Performance] EditorUi.selectPage",[this],"time",Date.now()-p+" ms","args",arguments);return q});null!=g?(d.diffPages=g,g=null):(g=d.diffPages,d.diffPages=function(){var p=Date.now(),q=g.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-p+" ms","args",arguments);return q});null!=l?(d.patchPages=l,l=null):(l=d.patchPages,d.patchPages=function(){var p=Date.now(),q=l.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",
-[this],"time",Date.now()-p+" ms","args",arguments);return q});null!=n?(d.clonePages=n,n=null):(n=d.clonePages,d.clonePages=function(){var p=Date.now(),q=n.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-p+" ms","args",arguments);return q});null!=z?(d.getHashValueForPages=z,z=null):(z=d.getHashValueForPages,d.getHashValueForPages=function(){var p=Date.now(),q=z.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],
-"time",Date.now()-p+" ms","args",arguments);return q});null!=D?(d.resolveCrossReferences=D,D=null):(D=d.resolveCrossReferences,d.resolveCrossReferences=function(){var p=Date.now(),q=D.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.resolveCrossReferences",[this],"time",Date.now()-p+" ms","args",arguments);return q});null!=u?(d.getFileData=u,u=null):(u=d.getFileData,d.getFileData=function(){var p=Date.now(),q=u.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getFileData",
-[this],"time",Date.now()-p+" ms","args",arguments);return q});EditorUi.debug("[Performance]",null!=c?"Enabled":"Disabled")}));this.put("testDevelop",new Menu(mxUtils.bind(this,function(p,q){this.addMenuItems(p,"createSidebarEntry showBoundingBox - testCheckPages testChecksum testFixPages - testCheckFile testDiff - testInspect testOptimize - testXmlImageExport -".split(" "),q);var G=p.addItem(mxResources.get("testPerformance"),null,function(){d.actions.get("testPerformance").funct()},q);null!=c&&p.addCheckmark(G,
-Editor.checkmarkImage);this.addMenuItems(p,["-","testShowConsole"],q)})))}d.actions.put("shapes",new Action("moreShapes...",function(p){mxClient.IS_CHROMEAPP||!d.isOffline()?d.showDialog((new MoreShapesDialog(d,!0)).container,640,isLocalStorage?mxClient.IS_IOS?480:460:440,!0,!0):d.showDialog((new MoreShapesDialog(d,!1)).container,360,isLocalStorage?mxClient.IS_IOS?300:280:260,!0,!0)}));d.actions.put("createShape",new Action("shape...",function(p){t.isEnabled()&&(p=new mxCell("",new mxGeometry(0,0,
-120,120),d.defaultCustomShapeStyle),p.vertex=!0,p=new EditShapeDialog(d,p,mxResources.get("editShape")+":",630,400),d.showDialog(p.container,640,480,!0,!1),p.init())})).isEnabled=x;d.actions.put("embedHtml",new Action("html...",function(){d.getPublicUrl(d.getCurrentFile(),function(p){d.showHtmlDialog(mxResources.get("create"),"https://www.drawio.com/doc/faq/embed-html-options",p,function(q,G,E,H,L,K,k,y,F,M,P,R){d.createHtml(q,G,E,H,L,K,k,y,F,M,P,mxUtils.bind(this,function(T,V){var W=new EmbedDialog(d,
-"\x3c!-- "+d.editor.appName+" diagram --\x3e\n"+T+"\n"+V+"\n",null,null,function(){try{var X=window.open();if(null!=X&&null!=X.document){var Y=X.document;"CSS1Compat"===document.compatMode&&Y.writeln("<!DOCTYPE html>");Y.writeln("<html>");Y.writeln("<head><title>"+encodeURIComponent(mxResources.get("preview"))+'</title><meta charset="utf-8"></head>');Y.writeln("<body>");Y.writeln(T);var Z=mxClient.IS_IE||mxClient.IS_EDGE||null!=document.documentMode;Z&&Y.writeln(V);Y.writeln("</body>");Y.writeln("</html>");
-Y.close();if(!Z){var da=X.document.createElement("div");da.marginLeft="26px";da.marginTop="26px";mxUtils.write(da,mxResources.get("updatingDocument"));var ea=X.document.createElement("img");ea.setAttribute("src",window.location.protocol+"//"+window.location.hostname+"/"+IMAGE_PATH+"/spin.gif");ea.style.marginLeft="6px";da.appendChild(ea);X.document.body.insertBefore(da,X.document.body.firstChild);window.setTimeout(function(){var ka=document.createElement("script");ka.type="text/javascript";ka.src=
-/<script.*?src="(.*?)"/.exec(V)[1];Y.body.appendChild(ka);da.parentNode.removeChild(da)},20)}}else d.handleError({message:mxResources.get("errorUpdatingPreview")})}catch(ka){d.handleError(ka)}});d.showDialog(W.container,450,240,!0,!0);W.init()}),R)})})}));d.actions.put("liveImage",new Action("Live image...",function(){var p=d.getCurrentFile();null!=p&&d.getPublicUrl(p,function(q){null!=q?(q=new EmbedDialog(d,'<img src="'+(p.constructor!=DriveFile?q:"https://drive.google.com/uc?id="+p.getId())+'"/>'),
-d.showDialog(q.container,450,240,!0,!0),q.init()):d.handleError({message:mxResources.get("invalidPublicUrl")})})}));d.actions.put("embedImage",new Action("image...",function(){d.showEmbedImageDialog(function(p,q,G,E,H,L){d.spinner.spin(document.body,mxResources.get("loading"))&&d.createEmbedImage(p,q,G,E,H,L,function(K){d.spinner.stop();K=new EmbedDialog(d,K);d.showDialog(K.container,450,240,!0,!0);K.init()},function(K){d.spinner.stop();d.handleError(K)})},mxResources.get("image"),mxResources.get("retina"),
-d.isExportToCanvas())}));d.actions.put("embedSvg",new Action("formatSvg...",function(){d.showEmbedImageDialog(function(p,q,G,E,H,L){d.spinner.spin(document.body,mxResources.get("loading"))&&d.createEmbedSvg(p,q,G,E,H,L,function(K){d.spinner.stop();K=new EmbedDialog(d,K);d.showDialog(K.container,450,240,!0,!0);K.init()},function(K){d.spinner.stop();d.handleError(K)})},mxResources.get("formatSvg"),mxResources.get("image"),!0,"https://www.drawio.com/doc/faq/embed-svg.html")}));d.actions.put("embedIframe",
-new Action("iframe...",function(){d.getPublicUrl(d.getCurrentFile(),function(p){var q=t.getGraphBounds();d.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,q.height/t.view.scale))+2,null,null,null,p,d.getCurrentFile(),function(G,E,H,L,K,k,y,F,M,P,R,T){var V=[];M&&V.push("tags=%7B%7D");G=new EmbedDialog(d,'<iframe frameborder="0" style="width:'+y+";height:"+F+';" src="'+d.createLink(G,E,!0,L,K,k,"public"==P?p:null,null,V,null,H,R,T)+'"'+(R?' allowtransparency="true"':"")+
-"></iframe>");d.showDialog(G.container,450,240,!0,!0);G.init()},!0,!0)})}));d.actions.put("embedNotion",new Action("notion...",function(){var p=document.createElement("div");p.style.position="absolute";p.style.bottom="30px";p.style.textAlign="center";p.style.width="100%";p.style.left="0px";var q=document.createElement("a");q.setAttribute("href","javascript:void(0);");q.setAttribute("target","_blank");q.style.cursor="pointer";mxUtils.write(q,mxResources.get("getNotionChromeExtension"));p.appendChild(q);
-mxUtils.setPrefixedStyle(q.style,"transition","all 1s ease");mxUtils.setOpacity(q,0);window.setTimeout(function(){mxUtils.setOpacity(q,100)},300);mxEvent.addListener(q,"click",function(G){d.openLink("https://chrome.google.com/webstore/detail/drawio-for-notion/plhaalebpkihaccllnkdaokdoeaokmle");mxEvent.consume(G)});d.getPublicUrl(d.getCurrentFile(),function(G){d.showPublishLinkDialog(mxResources.get("notion"),null,null,!0,"https://www.drawio.com/blog/drawio-notion",p,G,d.getCurrentFile(),function(E,
-H,L,K,k,y,F,M,P,R,T,V){F=["border=0"];P&&F.push("tags=%7B%7D");E=new EmbedDialog(d,d.createLink(E,H,!0,K,k,y,"public"==R?G:null,null,F,null,L,null,V));d.showDialog(E.container,450,240,!0,!0);E.init()},null,!0)})}));d.actions.put("publishLink",new Action("link...",function(){d.getPublicUrl(d.getCurrentFile(),function(p){d.showPublishLinkDialog(null,null,null,null,null,null,p,d.getCurrentFile(),function(q,G,E,H,L,K,k,y,F,M,P,R){k=[];H&&F&&k.push("tags=%7B%7D");q=new EmbedDialog(d,d.createLink(q,G,!0,
-H,L,K,"public"==M?p:null,null,k,null,E,null,R));d.showDialog(q.container,450,240,!0,!0);q.init()},null,!0)})}));d.actions.addAction("microsoftOffice...",function(){d.openLink("https://office.draw.io")});d.actions.addAction("googleDocs...",function(){d.openLink("http://docsaddon.draw.io")});d.actions.addAction("googleSlides...",function(){d.openLink("https://slidesaddon.draw.io")});d.actions.addAction("googleSheets...",function(){d.openLink("https://sheetsaddon.draw.io")});d.actions.addAction("googleSites...",
-function(){d.getPublicUrl(d.getCurrentFile(),function(p){p=new GoogleSitesDialog(d,p);d.showDialog(p.container,420,256,!0,!0);p.init()})});if(isLocalStorage||mxClient.IS_CHROMEAPP)v=d.actions.addAction("scratchpad",function(){d.toggleScratchpad()}),v.setToggleAction(!0),v.setSelectedCallback(function(){return null!=d.scratchpad}),"0"!=urlParams.plugins&&d.actions.addAction("plugins...",function(){d.showDialog((new PluginsDialog(d)).container,380,240,!0,!1)});window.matchMedia&&null!=document.getElementById("high-contrast-stylesheet")&&
-(v=d.actions.addAction("highContrast",function(){d.setAndPersistHighContrast(!d.isHighContrast())}),v.setToggleAction(!0),v.setSelectedCallback(function(){return d.isHighContrast()}));v=d.actions.addAction("search",function(){if(null!=d.sidebar){var p=d.sidebar.isEntryVisible("search");d.sidebar.showPalette("search",!p);Editor.isSettingsEnabled()&&(mxSettings.settings.search=!p,mxSettings.save())}});v.label=mxResources.get("searchShapes");v.setToggleAction(!0);v.setSelectedCallback(function(){return null!=
-d.sidebar&&d.sidebar.isEntryVisible("search")});d.actions.get("clearDefaultStyle").funct=function(p){t.isEnabled()&&(d.clearDefaultStyle(),Editor.sketchMode&&d.setSketchMode(!1))};"1"==urlParams.embed&&(d.actions.get("saveAs").setEnabled(!1),d.actions.get("save").funct=function(p){t.isEditing()&&t.stopEditing();var q="0"!=urlParams.pages||null!=d.pages&&1<d.pages.length?d.getFileData(!0):mxUtils.getXml(d.editor.getGraphXml());if("json"==urlParams.proto){var G=d.createLoadMessage("save");G.xml=q;!0!==
-p||"1"!=urlParams.saveAndExit&&"1"!=urlParams.publishClose||(G.exit=!0);q=JSON.stringify(G)}(window.opener||window.parent).postMessage(q,"*");"0"!=urlParams.modified&&"1"!=urlParams.keepmodified&&(d.editor.modified=!1,d.clearStatus());p=d.getCurrentFile();null==p||p.constructor==EmbedFile||p.constructor==LocalFile&&null==p.mode||d.saveFile()},d.actions.addAction("saveAndExit",function(){"1"==urlParams.toSvg?d.sendEmbeddedSvgExport():d.actions.get("save").funct(!0)},null,null,Editor.ctrlKey+"+S").label=
-"1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),d.actions.addAction("exit",function(){if("1"==urlParams.embedInline)d.sendEmbeddedSvgExport();else{var p=function(){d.editor.modified=!1;var q="json"==urlParams.proto?JSON.stringify({event:"exit",modified:d.editor.modified}):"";(window.opener||window.parent).postMessage(q,"*")};d.editor.modified?d.confirm(mxResources.get("allChangesLost"),null,p,mxResources.get("cancel"),mxResources.get("discardChanges")):p()}},
-null,null,"1"==urlParams.embedInline?"Escape":null));this.put("exportAs",new Menu(mxUtils.bind(this,function(p,q){d.isExportToCanvas()?(this.addMenuItems(p,["exportPng"],q),d.jpgSupported&&this.addMenuItems(p,["exportJpg"],q),d.webpSupported&&this.addMenuItems(p,["exportWebp"],q)):d.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(p,["exportPng","exportJpg"],q);this.addMenuItems(p,["exportSvg","-"],q);d.isOffline()||d.printPdfExport?this.addMenuItems(p,["exportPdf"],q):d.isOffline()||
-mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(p,["exportPdf"],q);!d.vsdxExportEnabled()||mxClient.IS_IE||"undefined"===typeof VsdxExport&&d.isOffline()||this.addMenuItems(p,["exportVsdx"],q);this.addMenuItems(p,["-","exportHtml","exportXml","exportUrl"],q);d.isOffline()||(p.addSeparator(q),this.addMenuItem(p,"export",q).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...");mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"min"!=Editor.currentTheme||this.addMenuItems(p,["publishLink"],
-q);d.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||(p.addSeparator(q),d.menus.addSubmenu("embed",p,q))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(p,q){function G(L){L.pickFile(function(K){d.spinner.spin(document.body,mxResources.get("loading"))&&L.getFile(K,function(k){var y="data:image/"==k.getData().substring(0,11)?H(k.getTitle()):"text/xml";/\.svg$/i.test(k.getTitle())&&!d.editor.isDataSvg(k.getData())&&
-(k.setData(Editor.createSvgDataUri(k.getData())),y="image/svg+xml");E(k.getData(),y,k.getTitle())},function(k){d.handleError(k,null!=k?mxResources.get("errorLoadingFile"):null)},L==d.drive)},!0)}var E=mxUtils.bind(this,function(L,K,k){var y=t.view,F=t.getGraphBounds(),M=t.snap(Math.ceil(Math.max(0,F.x/y.scale-y.translate.x)+4*t.gridSize)),P=t.snap(Math.ceil(Math.max(0,(F.y+F.height)/y.scale-y.translate.y)+4*t.gridSize));"data:image/"==L.substring(0,11)?d.loadImage(L,mxUtils.bind(this,function(R){var T=
-!0,V=mxUtils.bind(this,function(){d.resizeImage(R,L,mxUtils.bind(this,function(W,X,Y){W=T?Math.min(1,Math.min(d.maxImageSize/X,d.maxImageSize/Y)):1;d.importFile(L,K,M,P,Math.round(X*W),Math.round(Y*W),k,function(Z){d.spinner.stop();t.setSelectionCells(Z);t.scrollCellToVisible(t.getSelectionCell())})}),T)});L.length>d.resampleThreshold?d.confirmImageResize(function(W){T=W;V()}):V()}),mxUtils.bind(this,function(){d.handleError({message:mxResources.get("cannotOpenFile")})})):d.importFile(L,K,M,P,0,0,
-k,function(R){d.spinner.stop();t.setSelectionCells(R);t.scrollCellToVisible(t.getSelectionCell())})}),H=mxUtils.bind(this,function(L){var K="text/xml";/\.png$/i.test(L)?K="image/png":/\.jpe?g$/i.test(L)?K="image/jpg":/\.gif$/i.test(L)?K="image/gif":/\.pdf$/i.test(L)&&(K="application/pdf");return K});"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=d.drive?p.addItem(mxResources.get("googleDrive")+"...",null,function(){G(d.drive)},q):d.isModeEnabled(App.MODE_GOOGLE)&&p.addItem(mxResources.get("googleDrive")+
-" ("+mxResources.get("loading")+"...)",null,function(){},q,null,!1));d.isModeReady(App.MODE_ONEDRIVE)?p.addItem(mxResources.get("oneDrive")+"...",null,function(){G(d.oneDrive)},q):d.isModeEnabled(App.MODE_ONEDRIVE)&&p.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},q,null,!1);d.isModeReady(App.MODE_DROPBOX)?p.addItem(mxResources.get("dropbox")+"...",null,function(){G(d.dropbox)},q):d.isModeEnabled(App.MODE_DROPBOX)&&p.addItem(mxResources.get("dropbox")+
-" ("+mxResources.get("loading")+"...)",null,function(){},q,null,!1);p.addSeparator(q);d.isModeReady(App.MODE_GITHUB)&&p.addItem(mxResources.get("github")+"...",null,function(){G(d.gitHub)},q);d.isModeReady(App.MODE_GITLAB)&&p.addItem(mxResources.get("gitlab")+"...",null,function(){G(d.gitLab)},q);d.isModeReady(App.MODE_TRELLO)?p.addItem(mxResources.get("trello")+"...",null,function(){G(d.trello)},q):d.isModeEnabled(App.MODE_TRELLO)&&p.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+
-"...)",null,function(){},q,null,!1);p.addSeparator(q);isLocalStorage&&"0"!=urlParams.browser&&p.addItem(mxResources.get("browser")+"...",null,function(){d.importLocalFile(!1)},q);"1"!=urlParams.noDevice&&p.addItem(mxResources.get("device")+"...",null,function(){d.importLocalFile(!0)},q);d.isOffline()||(p.addSeparator(q),p.addItem(mxResources.get("url")+"...",null,function(){var L=new FilenameDialog(d,"",mxResources.get("import"),function(K){if(null!=K&&0<K.length&&d.spinner.spin(document.body,mxResources.get("loading"))){var k=
-/(\.png)($|\?)/i.test(K)?"image/png":"text/xml";d.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(K),function(y){E(y,k,K)},function(){d.spinner.stop();d.handleError(null,mxResources.get("errorLoadingFile"))},"image/png"==k)}},mxResources.get("url"));d.showDialog(L.container,300,80,!0,!0);L.init()},q))}))).isEnabled=x;this.put("dynamicAppearance",new Menu(mxUtils.bind(this,function(p,q){var G=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;"simple"==Editor.currentTheme&&
-(750>G&&this.addSubmenu("viewZoom",p,q,mxResources.get("zoom")),460>G&&d.isPageMenuVisible()&&this.addSubmenu("pages",p,q),320>G&&this.addSubmenu("insert",p,q),360>G&&"1"!=urlParams.embed&&"draw.io"==d.getServiceName()&&this.addSubmenu("share",p,q))})));this.put("appearance",new Menu(mxUtils.bind(this,function(p,q){if(d.isAutoDarkModeSupported()){var G=d.menus.addMenuItem(p,"autoMode",q);null!=G&&G.setAttribute("title",mxResources.get("automatic")+" ("+mxResources.get(Editor.isDarkMode()?"dark":"light")+
-")")}this.addMenuItems(p,["lightMode","darkMode","-"],q);G=d.menus.addMenuItem(p,"highContrast",q);(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&d.menus.addLinkToItem(G,"https://github.com/jgraph/drawio/issues/4296")})));d.actions.addAction("addToScratchpad",function(p){t.isSelectionEmpty()||null==d.addSelectionToScratchpad||d.addSelectionToScratchpad(p)});d.actions.addAction("accounts...",function(){d.toggleUserPanel();d.userPanel.style.right="10px";d.userPanel.style.top="10px"});
-this.put("theme",new Menu(mxUtils.bind(this,function(p,q){var G="1"==urlParams.sketch?"sketch":mxSettings.getUi(),E=p.addItem(mxResources.get("automatic"),null,function(){d.setCurrentTheme("")},q),H=p.addItem(mxResources.get("classic"),null,function(){d.setCurrentTheme("kennedy")},q),L=!1;if("kennedy"==G||"dark"==G)p.addCheckmark(H,Editor.checkmarkImage),L=!0;for(var K=0;K<Editor.themes.length;K++)mxUtils.bind(this,function(k){H=p.addItem(mxResources.get("min"==k?"minimal":k),null,function(){d.setCurrentTheme(k)},
-q);G==k&&(p.addCheckmark(H,Editor.checkmarkImage),L=!0);"simple"==k&&p.addSeparator(q)})(Editor.themes[K]);L||p.addCheckmark(E,Editor.checkmarkImage)})));v=this.editorUi.actions.addAction("rename...",mxUtils.bind(this,function(){var p=this.editorUi.getCurrentFile();if(null!=p)if(p.constructor==LocalFile&&null!=p.fileHandle)d.showSaveFilePicker(mxUtils.bind(d,function(G,E){p.invalidFileHandle=null;p.fileHandle=G;p.title=E.name;p.desc=E;d.save(E.name)}),null,d.createFileSystemOptions(p.getTitle()));
-else{var q=null!=p.getTitle()?p.getTitle():this.editorUi.defaultFilename;q=new FilenameDialog(this.editorUi,q,mxResources.get("rename"),mxUtils.bind(this,function(G){null!=G&&0<G.length&&null!=p&&G!=p.getTitle()&&this.editorUi.spinner.spin(document.body,mxResources.get("renaming"))&&p.rename(G,mxUtils.bind(this,function(E){this.editorUi.spinner.stop()}),mxUtils.bind(this,function(E){this.editorUi.handleError(E,null!=E?mxResources.get("errorRenamingFile"):null)}))}),p.constructor==DriveFile||p.constructor==
-StorageFile?mxResources.get("diagramName"):null,function(G){if(null!=G&&0<G.length)return!0;d.showError(mxResources.get("error"),mxResources.get("invalidName"),mxResources.get("ok"));return!1},null,FilenameDialog.filenameHelpLink,null,null,d.editor.fileExtensions);this.editorUi.showDialog(q.container,340,100,!0,!0);q.init()}}));v.isEnabled=function(){return this.enabled&&x.apply(this,arguments)};v.visible="1"!=urlParams.embed;d.actions.addAction("makeCopy...",mxUtils.bind(this,function(){var p=d.getCurrentFile();
-if(null!=p){var q=d.getCopyFilename(p);p.constructor==DriveFile?(q=new CreateDialog(d,q,mxUtils.bind(this,function(G,E){"_blank"==E?d.editor.editAsNew(d.getFileData(),G):("download"==E&&(E=App.MODE_GOOGLE),null!=G&&0<G.length&&(E==App.MODE_GOOGLE?d.spinner.spin(document.body,mxResources.get("saving"))&&p.saveAs(G,mxUtils.bind(this,function(H){p.desc=H;p.save(!1,mxUtils.bind(this,function(){d.spinner.stop();p.setModified(!1);d.updateStatus(mxUtils.bind(this,function(){p.addAllSavedStatus()}))}),mxUtils.bind(this,
-function(L){d.handleError(L)}))}),mxUtils.bind(this,function(H){d.handleError(H)})):d.createFile(G,d.getFileData(!0),null,E)))}),mxUtils.bind(this,function(){d.hideDialog()}),mxResources.get("makeCopy"),mxResources.get("create"),null,null,!0,null,!0,null,null,null,null,d.editor.fileExtensions),d.showDialog(q.container,420,380,!0,!0),q.init()):d.editor.editAsNew(this.editorUi.getFileData(!0),q)}}));v=new Action("openFolder",function(p,q){p=d.getCurrentFile();null!=p&&d.openLink(p.getFolderUrl())});
-v.getTitle=function(){return mxResources.get("openIt",[mxResources.get("folder")])+"..."};d.actions.put("openFolder",v);d.actions.addAction("openFile...",mxUtils.bind(this,function(){var p=d.getCurrentFile();null!=p&&d.openLink(p.getFileUrl())}));d.actions.addAction("moveToFolder...",mxUtils.bind(this,function(){var p=d.getCurrentFile();if(p.getMode()==App.MODE_GOOGLE||p.getMode()==App.MODE_ONEDRIVE){var q=!1;if(p.getMode()==App.MODE_GOOGLE&&null!=p.desc.parents)for(var G=0;G<p.desc.parents.length;G++)if(p.desc.parents[G].isRoot){q=
-!0;break}d.pickFolder(p.getMode(),mxUtils.bind(this,function(E){d.spinner.spin(document.body,mxResources.get("moving"))&&p.move(E,mxUtils.bind(this,function(H){d.spinner.stop()}),mxUtils.bind(this,function(H){d.handleError(H)}))}),null,!0,q)}}));this.put("publish",new Menu(mxUtils.bind(this,function(p,q){this.addMenuItems(p,["publishLink"],q)})));d.actions.put("useOffline",new Action("useOffline...",function(){d.openLink("https://app.draw.io/")}));this.editorUi.actions.addAction("share...",mxUtils.bind(this,
-function(){try{var p=d.getCurrentFile();null!=p&&p.share()}catch(q){d.handleError(q)}})).isEnabled=x;this.put("embed",new Menu(mxUtils.bind(this,function(p,q){var G=d.getCurrentFile();null==G||G.getMode()!=App.MODE_GOOGLE&&G.getMode()!=App.MODE_GITHUB||!/(\.png)$/i.test(G.getTitle())||this.addMenuItems(p,["liveImage","-"],q);this.addMenuItems(p,["embedImage","embedSvg","-","embedHtml"],q);navigator.standalone||d.isOffline()||this.addMenuItems(p,["embedIframe"],q);"1"==urlParams.embed||d.isOffline()||
-this.addMenuItems(p,"- googleDocs googleSlides googleSheets - microsoftOffice - embedNotion".split(" "),q)})));d.addInsertItem=function(p,q,G,E){("plantUml"!=E||EditorUi.enablePlantUml&&!d.isOffline())&&p.addItem(G,null,mxUtils.bind(this,function(){if("fromText"==E||"formatSql"==E||"plantUml"==E||"mermaid"==E){var H=new ParseDialog(d,G,E);d.showDialog(H.container,620,420,!0,!1);d.dialog.container.style.overflow="auto"}else H=new CreateGraphDialog(d,G,E),d.showDialog(H.container,620,420,!0,!1,function(L,
-K){if(K)return d.confirm(mxResources.get("areYouSure"),function(){d.hideDialog()}),!1;null!=H.graph&&(null!=H.graph.container.parentNode&&H.graph.container.parentNode.removeChild(H.graph.container),H.graph.destroy(),H.graph=null)});H.init()}),q,null,x())};var C=function(p){t.getModel().beginUpdate();try{p=t.addCell(p),t.fireEvent(new mxEventObject("cellsInserted","cells",[p])),t.model.isVertex(p)&&t.isAutoSizeCell(p)&&t.updateCellSize(p)}finally{t.getModel().endUpdate()}t.scrollCellToVisible(p);t.setSelectionCell(p);
-t.container.focus();t.editAfterInsert&&t.startEditing(p);window.setTimeout(function(){null!=d.hoverIcons&&d.hoverIcons.update(t.view.getState(p))},0);return p},A=function(p,q,G,E,H){p=new mxCell(p,new mxGeometry(0,0,q,G),E);p.vertex=!0;null==H&&(H=t.getCenterInsertPoint(t.getBoundingBoxFromGeometry([p],!0)));p.geometry.x=H.x;p.geometry.y=H.y;return C(p)};d.actions.put("insertText",new Action("text",function(p){t.isEnabled()&&!t.isCellLocked(t.getDefaultParent())&&t.startEditingAtCell(A("Text",60,
-30,t.appendFontSize("text;strokeColor=none;align=center;fillColor=none;html=1;verticalAlign=middle;whiteSpace=wrap;rounded=0;",t.vertexFontSize),null==p||mxEvent.isControlDown(p)||mxEvent.isMetaDown(p)||!t.isMouseInsertPoint()?null:t.getInsertPoint()))},null,null,"A")).isEnabled=x;d.actions.put("insertRectangle",new Action("rectangle",function(p){t.isEnabled()&&!t.isCellLocked(t.getDefaultParent())&&A("",120,60,"whiteSpace=wrap;html=1;",null==p||mxEvent.isControlDown(p)||mxEvent.isMetaDown(p)||!t.isMouseInsertPoint()?
-null:t.getInsertPoint())},null,null,"D")).isEnabled=x;d.actions.put("insertNote",new Action("note",function(p){t.isEnabled()&&!t.isCellLocked(t.getDefaultParent())&&A("",140,160,"shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;fontColor=#000000;darkOpacity=0.05;fillColor=#FFF9B2;strokeColor=none;fillStyle=solid;direction=west;gradientDirection=north;gradientColor=#FFF2A1;shadow=1;size=20;pointerEvents=1;",null==p||mxEvent.isControlDown(p)||mxEvent.isMetaDown(p)||!t.isMouseInsertPoint()?null:
-t.getInsertPoint())},null,null,"S")).isEnabled=x;d.actions.put("insertEllipse",new Action("ellipse",function(p){t.isEnabled()&&!t.isCellLocked(t.getDefaultParent())&&A("",80,80,"ellipse;whiteSpace=wrap;html=1;",null==p||mxEvent.isControlDown(p)||mxEvent.isMetaDown(p)||!t.isMouseInsertPoint()?null:t.getInsertPoint())},null,null,"F")).isEnabled=x;d.actions.put("insertRhombus",new Action("rhombus",function(p){t.isEnabled()&&!t.isCellLocked(t.getDefaultParent())&&A("",80,80,"rhombus;whiteSpace=wrap;html=1;",
-null==p||mxEvent.isControlDown(p)||mxEvent.isMetaDown(p)||!t.isMouseInsertPoint()?null:t.getInsertPoint())},null,null,"R")).isEnabled=x;d.actions.put("insertEdge",new Action("line",function(p){if(t.isEnabled()&&!t.isCellLocked(t.getDefaultParent())){var q=t.defaultEdgeLength;p=null==p||mxEvent.isControlDown(p)||mxEvent.isMetaDown(p)||!t.isMouseInsertPoint()?null:t.getInsertPoint();null==p&&(p=t.getCenterInsertPoint(t.getBoundingBoxFromGeometry([G],!0)));var G=new mxCell("",new mxGeometry(0,0,q,0),
-"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;");G.geometry.setTerminalPoint(p,!0);G.geometry.setTerminalPoint(new mxPoint(p.x+G.geometry.width,p.y),!1);G.geometry.points=[];G.geometry.relative=!0;G.edge=!0;C(G)}},null,null,"C")).isEnabled=x;v=d.actions.put("toggleShapes",new Action("shapes",function(){null!=d.sidebarWindow?d.sidebarWindow.window.setVisible(!d.sidebarWindow.window.isVisible()):d.toggleShapesPanel(!d.isShapesPanelVisible())},null,null,Editor.ctrlKey+"+Shift+K"));v.setToggleAction(!0);
-v.setSelectedCallback(mxUtils.bind(this,function(){return null!=d.sidebarWindow&&d.sidebarWindow.window.isVisible()||null==d.sidebarWindow&&0<d.hsplitPosition}));d.addInsertMenuItems=mxUtils.bind(this,function(p,q,G){for(var E=0;E<G.length;E++)"-"==G[E]?p.addSeparator(q):d.addInsertItem(p,q,mxResources.get(G[E])+"...",G[E])});this.put("insert",new Menu(mxUtils.bind(this,function(p,q){"sketch"==Editor.currentTheme?(d.menus.addMenuItems(p,["toggleShapes"],q),d.menus.addSubmenu("table",p,q),p.addSeparator(q),
-d.insertTemplateEnabled&&!d.isOffline()&&d.menus.addMenuItems(p,["insertTemplate"],q),d.menus.addMenuItems(p,["insertImage","insertLink","-"],q),d.menus.addSubmenu("insertAdvanced",p,q,mxResources.get("advanced")),d.menus.addSubmenu("layout",p,q)):(this.addMenuItems(p,"insertRectangle insertEllipse insertRhombus - insertEdge insertNote - insertText insertLink - createShape insertFreehand - insertImage".split(" "),q),d.insertTemplateEnabled&&!d.isOffline()&&this.addMenuItems(p,["insertTemplate"],q),
-p.addSeparator(q),"min"==uiTheme||"simple"==Editor.currentTheme?(this.addSubmenu("layout",p,q),this.addSubmenu("insertLayout",p,q,mxResources.get("insert")),p.addSeparator(q),this.addSubmenu("table",p,q)):this.addSubmenu("insertLayout",p,q,mxResources.get("layout")),this.addSubmenu("insertAdvanced",p,q,mxResources.get("advanced")))})));this.put("table",new Menu(mxUtils.bind(this,function(p,q){d.menus.addInsertTableCellItem(p,q)})));this.put("insertLayout",new Menu(mxUtils.bind(this,function(p,q){d.addInsertMenuItems(p,
-q,"horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "))})));this.put("insertAdvanced",new Menu(mxUtils.bind(this,function(p,q){var G=["fromText","plantUml"].concat(window.isMermaidEnabled?["mermaid"]:[]).concat(["-","formatSql"]);d.addInsertMenuItems(p,q,G);p.addItem(mxResources.get("csv")+"...",null,function(){t.popupMenuHandler.hideMenu();d.showImportCsvDialog()},q,null,x());"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(p,
-["-","createShape","editDiagram"],q)})));this.put("openRecent",new Menu(function(p,q){var G=d.getRecent();if(null!=G){for(var E=0;E<G.length;E++)(function(H){var L=H.mode;L==App.MODE_GOOGLE?L="googleDrive":L==App.MODE_ONEDRIVE&&(L="oneDrive");p.addItem(H.title+" ("+mxResources.get(L)+")",null,function(){d.loadFile(H.id)},q)})(G[E]);p.addSeparator(q)}p.addItem(mxResources.get("reset"),null,function(){d.resetRecent()},q)}));this.put("openFrom",new Menu(function(p,q){null!=d.drive?p.addItem(mxResources.get("googleDrive")+
-"...",null,function(){d.pickFile(App.MODE_GOOGLE)},q):d.isModeEnabled(App.MODE_GOOGLE)&&p.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},q,null,!1);d.isModeReady(App.MODE_ONEDRIVE)?p.addItem(mxResources.get("oneDrive")+"...",null,function(){d.pickFile(App.MODE_ONEDRIVE)},q):d.isModeEnabled(App.MODE_ONEDRIVE)&&p.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},q,null,!1);d.isModeReady(App.MODE_DROPBOX)?p.addItem(mxResources.get("dropbox")+
-"...",null,function(){d.pickFile(App.MODE_DROPBOX)},q):d.isModeEnabled(App.MODE_DROPBOX)&&p.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},q,null,!1);p.addSeparator(q);d.isModeReady(App.MODE_GITHUB)&&p.addItem(mxResources.get("github")+"...",null,function(){d.pickFile(App.MODE_GITHUB)},q);d.isModeReady(App.MODE_GITLAB)&&p.addItem(mxResources.get("gitlab")+"...",null,function(){d.pickFile(App.MODE_GITLAB)},q);d.isModeReady(App.MODE_TRELLO)?p.addItem(mxResources.get("trello")+
-"...",null,function(){d.pickFile(App.MODE_TRELLO)},q):d.isModeEnabled(App.MODE_TRELLO)&&p.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},q,null,!1);p.addSeparator(q);isLocalStorage&&"0"!=urlParams.browser&&p.addItem(mxResources.get("browser")+"...",null,function(){d.pickFile(App.MODE_BROWSER)},q);"1"!=urlParams.noDevice&&p.addItem(mxResources.get("device")+"...",null,function(){d.pickFile(App.MODE_DEVICE)},q);d.isOffline()||(p.addSeparator(q),p.addItem(mxResources.get("url")+
-"...",null,function(){var G=new FilenameDialog(d,"",mxResources.get("open"),function(E){null!=E&&0<E.length&&(null==d.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(E):window.geOpenWindow((mxClient.IS_CHROMEAPP?"https://www.draw.io/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(E)))},mxResources.get("url"));d.showDialog(G.container,300,80,!0,!0);G.init()},q))}));Editor.enableCustomLibraries&&(this.put("newLibrary",new Menu(function(p,q){"undefined"!=
-typeof google&&"undefined"!=typeof google.picker&&(null!=d.drive?p.addItem(mxResources.get("googleDrive")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_GOOGLE)},q):d.isModeEnabled(App.MODE_GOOGLE)&&p.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},q,null,!1));d.isModeReady(App.MODE_ONEDRIVE)?p.addItem(mxResources.get("oneDrive")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_ONEDRIVE)},q):d.isModeEnabled(App.MODE_ONEDRIVE)&&
-p.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},q,null,!1);d.isModeReady(App.MODE_DROPBOX)?p.addItem(mxResources.get("dropbox")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_DROPBOX)},q):d.isModeEnabled(App.MODE_DROPBOX)&&p.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},q,null,!1);p.addSeparator(q);d.isModeReady(App.MODE_GITHUB)&&p.addItem(mxResources.get("github")+"...",null,function(){d.showLibraryDialog(null,
-null,null,null,App.MODE_GITHUB)},q);d.isModeReady(App.MODE_GITLAB)&&p.addItem(mxResources.get("gitlab")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_GITLAB)},q);d.isModeReady(App.MODE_TRELLO)?p.addItem(mxResources.get("trello")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_TRELLO)},q):d.isModeEnabled(App.MODE_TRELLO)&&p.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},q,null,!1);p.addSeparator(q);isLocalStorage&&
-"0"!=urlParams.browser&&p.addItem(mxResources.get("browser")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_BROWSER)},q);"1"!=urlParams.noDevice&&p.addItem(mxResources.get("device")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_DEVICE)},q);"1"==urlParams.confLib&&p.addItem(mxResources.get("confluenceCloud")+"...",null,function(){d.showLibraryDialog(null,null,null,null,"CONF_LIB")},q)})),this.put("openLibraryFrom",new Menu(function(p,q){"undefined"!=
-typeof google&&"undefined"!=typeof google.picker&&(null!=d.drive?p.addItem(mxResources.get("googleDrive")+"...",null,function(){d.pickLibrary(App.MODE_GOOGLE)},q):d.isModeEnabled(App.MODE_GOOGLE)&&p.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},q,null,!1));d.isModeReady(App.MODE_ONEDRIVE)?p.addItem(mxResources.get("oneDrive")+"...",null,function(){d.pickLibrary(App.MODE_ONEDRIVE)},q):d.isModeEnabled(App.MODE_ONEDRIVE)&&p.addItem(mxResources.get("oneDrive")+
-" ("+mxResources.get("loading")+"...)",null,function(){},q,null,!1);d.isModeReady(App.MODE_DROPBOX)?p.addItem(mxResources.get("dropbox")+"...",null,function(){d.pickLibrary(App.MODE_DROPBOX)},q):d.isModeEnabled(App.MODE_DROPBOX)&&p.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},q,null,!1);p.addSeparator(q);d.isModeReady(App.MODE_GITHUB)&&p.addItem(mxResources.get("github")+"...",null,function(){d.pickLibrary(App.MODE_GITHUB)},q);d.isModeReady(App.MODE_GITLAB)&&
-p.addItem(mxResources.get("gitlab")+"...",null,function(){d.pickLibrary(App.MODE_GITLAB)},q);d.isModeReady(App.MODE_TRELLO)?p.addItem(mxResources.get("trello")+"...",null,function(){d.pickLibrary(App.MODE_TRELLO)},q):d.isModeEnabled(App.MODE_TRELLO)&&p.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},q,null,!1);p.addSeparator(q);isLocalStorage&&"0"!=urlParams.browser&&p.addItem(mxResources.get("browser")+"...",null,function(){d.pickLibrary(App.MODE_BROWSER)},
-q);"1"!=urlParams.noDevice&&p.addItem(mxResources.get("device")+"...",null,function(){d.pickLibrary(App.MODE_DEVICE)},q);d.isOffline()||(p.addSeparator(q),p.addItem(mxResources.get("url")+"...",null,function(){var G=new FilenameDialog(d,"",mxResources.get("open"),function(E){if(null!=E&&0<E.length&&d.spinner.spin(document.body,mxResources.get("loading"))){var H=E;d.editor.isCorsEnabledForUrl(E)||(H=PROXY_URL+"?url="+encodeURIComponent(E));mxUtils.get(H,function(L){if(200<=L.getStatus()&&299>=L.getStatus()){d.spinner.stop();
-try{d.loadLibrary(new UrlLibrary(d,L.getText(),E)),d.showSidebar()}catch(K){d.handleError(K,mxResources.get("errorLoadingFile"))}}else d.spinner.stop(),d.handleError(null,mxResources.get("errorLoadingFile"))},function(){d.spinner.stop();d.handleError(null,mxResources.get("errorLoadingFile"))})}},mxResources.get("url"));d.showDialog(G.container,300,80,!0,!0);G.init()},q));"1"==urlParams.confLib&&(p.addSeparator(q),p.addItem(mxResources.get("confluenceCloud")+"...",null,function(){d.showRemotelyStoredLibrary(mxResources.get("libraries"))},
-q))})));this.put("edit",new Menu(mxUtils.bind(this,function(p,q){this.addMenuItems(p,"undo redo - cut copy copyAsImage paste delete - duplicate - findReplace - editData editTooltip - editStyle editGeometry - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));v=d.actions.addAction("comments",mxUtils.bind(this,function(){if(null==this.commentsWindow)this.commentsWindow=new CommentsWindow(d,document.body.offsetWidth-380,120,300,350),this.commentsWindow.window.addListener("show",
-function(){d.fireEvent(new mxEventObject("comments"))}),this.commentsWindow.window.addListener("hide",function(){d.fireEvent(new mxEventObject("comments"))}),this.commentsWindow.window.setVisible(!0),d.fireEvent(new mxEventObject("comments"));else{var p=!this.commentsWindow.window.isVisible();this.commentsWindow.window.setVisible(p);this.commentsWindow.refreshCommentsTime();p&&this.commentsWindow.hasError&&this.commentsWindow.refreshComments()}}));v.setToggleAction(!0);v.setSelectedCallback(mxUtils.bind(this,
-function(){return null!=this.commentsWindow&&this.commentsWindow.window.isVisible()}));d.editor.addListener("fileLoaded",mxUtils.bind(this,function(){null!=this.commentsWindow&&(this.commentsWindow.destroy(),this.commentsWindow=null)}));this.get("viewPanels").funct=function(p,q){var G=d.getCurrentFile();d.menus.addMenuItems(p,"toggleShapes format ruler - findReplace layers tags chatWindowTitle outline -".split(" "),q);d.commentsSupported()&&d.menus.addMenuItems(p,["-","comments"],q);null!=G&&G.isRealtimeEnabled()&&
-G.isRealtimeSupported()&&d.menus.addMenuItems(p,["-","showRemoteCursors","shareCursor"],q);d.menus.addMenuItems(p,["-","fullscreen"],q)};this.put("view",new Menu(mxUtils.bind(this,function(p,q){if("simple"==Editor.currentTheme){var G=d.getCurrentFile();d.menus.addMenuItems(p,["toggleShapes","format"],q);d.isPageMenuVisible()&&d.menus.addMenuItems(p,["pageTabs"],q);d.menus.addMenuItems(p,["ruler","-","search"],q);if(isLocalStorage||mxClient.IS_CHROMEAPP){var E=d.menus.addMenuItem(p,"scratchpad",q);
-(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&d.menus.addLinkToItem(E,"https://www.drawio.com/doc/faq/scratchpad")}d.menus.addMenuItems(p,"- findReplace layers tags chatWindowTitle outline -".split(" "),q);d.commentsSupported()&&d.menus.addMenuItems(p,["comments"],q);null!=G&&G.isRealtimeEnabled()&&G.isRealtimeSupported()&&this.addMenuItems(p,["showRemoteCursors"],q);this.addMenuItems(p,["-","fullscreen"],q)}else{this.addMenuItems(p,["format","outline","layers","tags","chatWindowTitle"].concat(d.commentsSupported()?
-["comments","-"]:["-"]));this.addMenuItems(p,["-","search"],q);if(isLocalStorage||mxClient.IS_CHROMEAPP)E=this.addMenuItem(p,"scratchpad",q),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(E,"https://www.drawio.com/doc/faq/scratchpad");this.addMenuItems(p,["toggleShapes","-","pageView","pageScale"]);this.addSubmenu("units",p,q);p.addSeparator(q);d.isPageMenuVisible()&&d.menus.addMenuItems(p,["pageTabs"],q);this.addMenuItems(p,"ruler - tooltips animations - grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),
-q);"1"!=urlParams.sketch&&this.addMenuItems(p,["-","fullscreen"],q)}})));this.put("editCell",new Menu(mxUtils.bind(this,function(p,q){this.addMenuItems(p,"editLink editShape editImage crop - editData copyData pasteData - editConnectionPoints editGeometry - editTooltip editStyle - edit".split(" "),q)})));this.put("currentPage",new Menu(mxUtils.bind(this,function(p,q){var G=d.currentPage;null!=G&&(p.addItem(mxResources.get("rename")+"...",null,mxUtils.bind(this,function(){d.renamePage(G,G.getName())}),
-q),p.addItem(mxResources.get("delete"),null,mxUtils.bind(this,function(){d.removePage(G)}),q),1<d.pages.length&&(d.menus.addSubmenu("movePage",p,q,mxResources.get("move")),p.addSeparator(q)),p.addSeparator(q),p.addItem(mxResources.get("duplicate"),null,mxUtils.bind(this,function(){d.duplicatePage(G,mxResources.get("copyOf",[G.getName()]))}),q),1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=d.getServiceName()||p.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,
-function(){d.editor.editAsNew(d.getFileData(!0,null,null,null,!0,!0))}),q)))})));this.put("pages",new Menu(mxUtils.bind(this,function(p,q){var G=d.currentPage;d.editor.graph.isLightboxView()||(p.addItem(mxResources.get("insertPage"),null,mxUtils.bind(this,function(){try{d.insertPage()}catch(H){d.handleError(H)}}),q,null,d.editor.graph.isEnabled()),p.addSeparator(q));if(null!=d.pages)for(var E=0;E<d.pages.length;E++)mxUtils.bind(this,function(H){var L=null;L=d.pages[H]==G&&!d.editor.graph.isLightboxView()&&
-d.editor.graph.isEnabled()?d.menus.addSubmenu("currentPage",p,q,d.getShortPageName(G)):p.addItem(d.getShortPageName(d.pages[H]),null,mxUtils.bind(this,function(){d.selectPage(d.pages[H])}),q);var K=d.pages[H].getId();L.setAttribute("title",d.pages[H].getName()+" ("+(H+1)+"/"+d.pages.length+")"+(null!=K?" ["+K+"]":""));d.pages[H]==G&&p.addCheckmark(L,Editor.checkmarkImage)})(E)})));if(EditorUi.isElectronApp){var Q="1"==urlParams.enableSpellCheck;v=d.actions.addAction("spellCheck",function(){d.toggleSpellCheck();
-Q=!Q;d.alert(mxResources.get("restartForChangeRequired"))});v.setToggleAction(!0);v.setSelectedCallback(function(){return Q});var S="1"==urlParams.enableStoreBkp;v=d.actions.addAction("autoBkp",function(){d.toggleStoreBkp();S=!S});v.setToggleAction(!0);v.setSelectedCallback(function(){return S});var U="1"==urlParams.isGoogleFontsEnabled;v=d.actions.addAction("googleFonts",function(){d.toggleGoogleFonts();U=!U;d.alert(mxResources.get("restartForChangeRequired"))});v.setToggleAction(!0);v.setSelectedCallback(function(){return U});
-d.actions.addAction("openDevTools",function(){d.openDevTools()});d.actions.addAction("drafts...",function(){var p=new FilenameDialog(d,EditorUi.draftSaveDelay/1E3+"",mxResources.get("apply"),mxUtils.bind(this,function(q){q=parseInt(q);0<=q&&(EditorUi.draftSaveDelay=1E3*q,EditorUi.enableDrafts=0<q,mxSettings.setDraftSaveDelay(q),mxSettings.save())}),mxResources.get("draftSaveInt"));d.showDialog(p.container,320,80,!0,!0);p.init()})}var O=this.get("language");this.put("extras",new Menu(mxUtils.bind(this,
-function(p,q){if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme){null==O||"1"==urlParams.embed&&null!=urlParams.lang||d.menus.addSubmenu("language",p,q);"1"==urlParams.embed&&"1"!=urlParams.atlas||"1"==urlParams.extAuth||"1"==urlParams.embedInline||d.menus.addSubmenu("appearance",p,q);"1"!=urlParams.embed&&"1"!=urlParams.extAuth&&d.mode!=App.MODE_ATLAS&&d.menus.addSubmenu("theme",p,q);p.addSeparator(q);d.menus.addSubmenu("units",p,q);d.menus.addMenuItems(p,
-"- copyConnect collapseExpand - tooltips animations -".split(" "),q);var G=d.getCurrentFile();"simple"!=Editor.currentTheme&&(null!=G&&G.isRealtimeEnabled()&&G.isRealtimeSupported()&&this.addMenuItems(p,["showRemoteCursors"],q),d.menus.addMenuItems(p,["ruler","-"],q));EditorUi.isElectronApp&&d.menus.addMenuItems(p,"- googleFonts spellCheck autoBkp drafts -".split(" "),q);this.addSubmenu("diagramLanguage",p,q);p.addSeparator(q);d.mode!=App.MODE_ATLAS&&d.menus.addMenuItem(p,"configuration",q);p.addSeparator(q)}else"1"==
-urlParams.embed&&null!=urlParams.lang||this.addSubmenu("language",p,q),"1"==urlParams.embed&&"1"!=urlParams.atlas||d.menus.addSubmenu("appearance",p,q),"1"!=urlParams.embed&&"1"!=urlParams.extAuth&&d.mode!=App.MODE_ATLAS&&this.addSubmenu("theme",p,q),EditorUi.isElectronApp&&this.addMenuItems(p,"- googleFonts spellCheck autoBkp drafts -".split(" "),q),p.addSeparator(q),G=this.addSubmenu("adaptiveColors",p,q),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&d.menus.addLinkToItem(G,"https://github.com/jgraph/drawio/discussions/4713"),
-"undefined"!==typeof MathJax&&(G=this.addMenuItem(p,"mathematicalTypesetting",q),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(G,"https://www.drawio.com/doc/faq/math-typesetting")),"1"!=urlParams.embed&&(G=d.getCurrentFile(),null!=G&&G.isRealtimeEnabled()&&G.isRealtimeSupported()&&this.addMenuItems(p,["-","showRemoteCursors","shareCursor"],q),p.addSeparator(q),(isLocalStorage||mxClient.IS_CHROMEAPP)&&this.addMenuItems(p,["showStartScreen"],q),this.addMenuItems(p,
-["autosave"],q)),this.addMenuItems(p,["-","copyConnect","collapseExpand","-"],q),this.addSubmenu("diagramLanguage",p,q),this.addMenuItems(p,["editDiagram","-"],q),!d.isOfflineApp()&&isLocalStorage&&this.addMenuItem(p,"plugins",q),this.addMenuItems(p,["configuration"],q)})));this.put("movePage",new Menu(mxUtils.bind(this,function(p,q){var G=d.currentPage,E=d.getPageIndex(G);if(null!=d.pages)for(var H=0;H<d.pages.length;H++)H!=E&&function(L){p.addItem(d.getShortPageName(d.pages[L]),null,function(){d.movePage(E,
-L);d.scrollToPage(G,!0)},q)}(H)})));this.put("share",new Menu(mxUtils.bind(this,function(p,q){if(!d.isStandaloneApp()){var G=d.isOffline(!0)?mxResources.get("offline"):d.getNetworkStatus();null!=G&&(p.addItem(G,null,null,q,null,!1),p.addSeparator(q));d.menus.addMenuItems(p,["share"],q)}this.addMenuItem(p,"publishLink",q,null,null,mxResources.get("publish")+"...");null!=d.getMainUser()&&this.addMenuItems(p,["accounts"],q)})));this.put("diagram",new Menu(mxUtils.bind(this,function(p,q){var G=d.getCurrentFile();
-"simple"!=Editor.currentTheme&&(d.menus.addSubmenu("extras",p,q,mxResources.get("settings")),p.addSeparator(q));var E="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;if(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)d.menus.addMenuItems(p,"new open - synchronize properties - save saveAs -".split(" "),q);else if(d.mode==App.MODE_ATLAS){"1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&d.menus.addMenuItems(p,["-","save"],q);if("1"==urlParams.saveAndExit||"1"==urlParams.noSaveBtn&&"0"!=
-urlParams.saveAndExit||d.mode==App.MODE_ATLAS)d.menus.addMenuItems(p,["saveAndExit"],q),null!=G&&G.isRevisionHistorySupported()&&d.menus.addMenuItems(p,["revisionHistory"],q);p.addSeparator(q)}else d.mode==App.MODE_ATLAS?d.menus.addMenuItems(p,["save","synchronize","-"],q):"1"!=urlParams.noFileMenu&&(d.menus.addSubmenu("file",p,q),p.addSeparator(q),"min"==Editor.currentTheme&&(d.menus.addMenuItems(p,"toggleShapes format layers tags chatWindowTitle - findReplace".split(" "),q),d.commentsSupported()&&
-d.menus.addMenuItems(p,["comments"],q),p.addSeparator(q)));d.menus.addSubmenu("exportAs",p,q);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"atlassian"==d.getServiceName()?d.menus.addMenuItems(p,["import"],q):"1"!=urlParams.noFileMenu&&d.menus.addSubmenu("importFrom",p,q);"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme?(d.menus.addMenuItems(p,["-","findReplace"],q),d.commentsSupported()&&d.menus.addMenuItems(p,["comments","-"],q),d.menus.addMenuItems(p,"toggleShapes format layers tags chatWindowTitle -".split(" "),
-q),d.menus.addMenuItems(p,["pageSetup"],q)):"min"!=Editor.currentTheme&&(this.addMenuItems(p,["-"],q),this.addSubmenu("newLibrary",p,q),this.addSubmenu("openLibraryFrom",p,q));p.addSeparator(q);"1"==urlParams.noFileMenu||mxClient.IS_IOS&&navigator.standalone||d.menus.addMenuItems(p,["print"],q);E||"min"==Editor.currentTheme||null==G||null==d.fileNode||"1"==urlParams.embedInline||(E=null!=G.getTitle()?G.getTitle():d.defaultFilename,/(\.html)$/i.test(E)||this.addMenuItems(p,["-","properties"]));p.addSeparator(q);
-"simple"==Editor.currentTheme&&(d.menus.addSubmenu("extras",p,q,mxResources.get("settings")),p.addSeparator(q));d.menus.addSubmenu("help",p,q);p.addSeparator(q);"1"==urlParams.embed&&("1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&d.menus.addMenuItems(p,["save"],q),"1"==urlParams.saveAndExit||"1"==urlParams.noSaveBtn&&"0"!=urlParams.saveAndExit)&&(d.menus.addMenuItems(p,["saveAndExit"],q),null!=G&&G.isRevisionHistorySupported()&&d.menus.addMenuItems(p,["revisionHistory"],q));"1"!=urlParams.embed&&
-d.mode!=App.MODE_ATLAS||"1"==urlParams.noExitBtn&&d.mode!=App.MODE_ATLAS||d.menus.addMenuItems(p,["exit"],q);"1"!=urlParams.embed&&null!=G&&"undefined"==typeof AtlasFile&&d.menus.addMenuItems(p,["-","close"],q)})));this.put("save",new Menu(mxUtils.bind(this,function(p,q){var G=d.getCurrentFile();null==G||G.constructor!=DriveFile&&G.constructor!=OneDriveFile?(d.menus.addMenuItems(p,["save","saveAs","-","rename"],q),d.isOfflineApp()?navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&
-this.addMenuItems(p,["upload"],q):d.menus.addMenuItems(p,["makeCopy"],q)):d.menus.addMenuItems(p,["save","makeCopy","-","rename","moveToFolder"],q);d.menus.addMenuItems(p,["-","autosave"],q);null!=G&&G.isRevisionHistorySupported()&&d.menus.addMenuItems(p,["-","revisionHistory"],q)})));this.put("file",new Menu(mxUtils.bind(this,function(p,q){var G="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme;if("1"==urlParams.embed)this.addSubmenu("importFrom",p,q),this.addSubmenu("exportAs",
-p,q),this.addSubmenu("embed",p,q),"1"==urlParams.libraries&&(this.addMenuItems(p,["-"],q),this.addSubmenu("newLibrary",p,q),this.addSubmenu("openLibraryFrom",p,q)),d.isRevisionHistorySupported()&&this.addMenuItems(p,["-","revisionHistory"],q),this.addMenuItems(p,["-","pageSetup","print","-","rename"],q),"1"!=urlParams.embedInline&&("1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&this.addMenuItems(p,["saveAndExit"],q):(this.addMenuItems(p,["save"],q),"1"==urlParams.saveAndExit&&this.addMenuItems(p,
-["saveAndExit"],q))),"1"!=urlParams.noExitBtn&&this.addMenuItems(p,["exit"],q);else if(G){G=d.getCurrentFile();d.menus.addMenuItems(p,["new"],q);d.menus.addSubmenu("openFrom",p,q);isLocalStorage&&this.addSubmenu("openRecent",p,q);p.addSeparator(q);d.menus.addMenuItems(p,["-","save"],q);null!=G&&G.constructor==DriveFile||d.menus.addMenuItems(p,["saveAs"],q);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null==G||G.constructor==LocalFile&&null==G.fileHandle||d.menus.addMenuItems(p,["synchronize"],q);
-p.addSeparator(q);null!=G&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"sketch"!=Editor.currentTheme||this.addMenuItem(p,"publishLink",q,null,null,mxResources.get("publish")+"..."),"simple"==Editor.currentTheme||G.constructor!=DriveFile&&G.constructor!=GitHubFile&&G.constructor!=OneDriveFile||d.menus.addMenuItems(p,["share"],q));p.addSeparator(q);null!=G&&G.isRenamable()&&this.addMenuItems(p,["rename"],q);d.isOfflineApp()?navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&this.addMenuItems(p,
-["upload"],q):(d.menus.addMenuItems(p,["makeCopy"],q),null!=G&&(G.constructor!=OneDriveFile&&G.constructor!=DriveFile||d.menus.addMenuItems(p,["moveToFolder"],q),p.addSeparator(q),null!=G.getFolderUrl()&&d.menus.addMenuItems(p,["openFolder"],q),null!=G.getFileUrl()&&d.menus.addMenuItems(p,["openFile"],q)));p.addSeparator(q);null!=G&&G.isRevisionHistorySupported()&&d.menus.addMenuItems(p,["revisionHistory"],q);if(null!=G&&null!=d.fileNode&&"1"!=urlParams.embedInline){var E=null!=G.getTitle()?G.getTitle():
-d.defaultFilename;(G.constructor==DriveFile&&null!=G.sync&&G.sync.isConnected()||!/(\.html)$/i.test(E))&&this.addMenuItems(p,["properties"],q)}"simple"==Editor.currentTheme&&d.menus.addMenuItems(p,["-","autosave"],q)}else G=this.editorUi.getCurrentFile(),null!=G&&G.constructor==DriveFile?(G.isRestricted()&&this.addMenuItems(p,["exportOptionsDisabled"],q),this.addMenuItems(p,["save","-","share"],q),E=this.addMenuItem(p,"synchronize",q),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&
-this.addLinkToItem(E,"https://www.drawio.com/doc/faq/synchronize"),p.addSeparator(q)):this.addMenuItems(p,["new"],q),this.addSubmenu("openFrom",p,q),isLocalStorage&&this.addSubmenu("openRecent",p,q),null!=G&&G.constructor==DriveFile?this.addMenuItems(p,"new - rename makeCopy openFolder moveToFolder".split(" "),q):(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null==G||G.constructor==LocalFile&&null==G.fileHandle||(p.addSeparator(q),E=this.addMenuItem(p,"synchronize",q),(!d.isOffline()||mxClient.IS_CHROMEAPP||
-EditorUi.isElectronApp)&&this.addLinkToItem(E,"https://www.drawio.com/doc/faq/synchronize")),this.addMenuItems(p,["-","save","saveAs","-"],q),mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=d.getServiceName()||d.isOfflineApp()||null==G||this.addMenuItems(p,["share","-"],q),null!=G&&G.isRenamable()&&this.addMenuItems(p,["rename"],q),d.isOfflineApp()?navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&this.addMenuItems(p,["upload"],q):(this.addMenuItems(p,["makeCopy"],q),null!=
-G&&(G.constructor==OneDriveFile&&this.addMenuItems(p,["moveToFolder"],q),null!=G.getFolderUrl()&&d.menus.addMenuItems(p,["openFolder"],q)))),p.addSeparator(q),this.addSubmenu("importFrom",p,q),this.addSubmenu("exportAs",p,q),p.addSeparator(q),this.addSubmenu("embed",p,q),this.addSubmenu("publish",p,q),p.addSeparator(q),this.addSubmenu("newLibrary",p,q),this.addSubmenu("openLibraryFrom",p,q),d.isRevisionHistorySupported()&&this.addMenuItems(p,["-","revisionHistory"],q),null!=G&&null!=d.fileNode&&"1"!=
-urlParams.embedInline&&(E=null!=G.getTitle()?G.getTitle():d.defaultFilename,(G.constructor==DriveFile&&null!=G.sync&&G.sync.isConnected()||!/(\.html)$/i.test(E))&&this.addMenuItems(p,["-","properties"])),this.addMenuItems(p,["-","pageSetup"],q),mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(p,["print"],q),this.addMenuItems(p,["-","close"])})));this.put("fontFamily",new Menu(mxUtils.bind(this,function(p,q){function G(M){var P=encodeURIComponent(M.name)+(null==M.url?"":"@"+encodeURIComponent(M.url));
-if(!H[P]){for(var R=M.name,T=0;null!=y[R.toLowerCase()];)R=M.name+" ("+ ++T+")";null==k[P]&&(F.push({name:M.name,url:M.url,label:R,title:M.url}),y[R.toLowerCase()]=M,k[P]=M)}}for(var E=mxUtils.bind(this,function(M,P,R,T,V){var W=d.editor.graph,X=this.styleChange(p,null!=T?T:M,[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],[M,null!=P?encodeURIComponent(P):null,null],null,q,function(){W.setFont(M,P);d.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY,"fontSource",
-"FType"],"values",[M,null!=P?encodeURIComponent(P):null,null],"cells",[W.cellEditor.getEditingCell()]))},function(){W.updateLabelElements(W.getSelectionCells(),function(Y){Y.removeAttribute("face");Y.style.fontFamily=null;"PRE"==Y.nodeName&&W.replaceElement(Y,"div")})});R&&(R=document.createElement("img"),R.className="geAdaptiveAsset",R.setAttribute("src",Editor.crossImage),R.setAttribute("title",mxResources.get("delete")),R.setAttribute("valign","absmiddle"),R.setAttribute("border","0"),R.style.position=
-"relative",R.style.top="2px",R.style.width="14px",R.style.cursor="default",R.style.margin="0 3px",X.firstChild.nextSibling.nextSibling.appendChild(R),mxEvent.addListener(R,mxClient.IS_POINTER?"pointerup":"mouseup",mxUtils.bind(this,function(Y){this.removeCustomFont(M,P);this.editorUi.hideCurrentMenu();mxEvent.consume(Y)})));Graph.addFont(M,P);X.firstChild.nextSibling.style.fontFamily=M;V=null!=T?T:M;null!=P&&(V+=" ("+P+")");X.setAttribute("title",V)}),H={},L=0;L<this.defaultFonts.length;L++){var K=
-this.defaultFonts[L];"string"===typeof K?E(K):null!=K.fontFamily&&null!=K.fontUrl&&(H[encodeURIComponent(K.fontFamily)+"@"+encodeURIComponent(K.fontUrl)]=!0,E(K.fontFamily,K.fontUrl))}p.addSeparator(q);var k={},y={},F=[];for(L=0;L<this.customFonts.length;L++)G(this.customFonts[L]);F.sort(function(M,P){return M.label<P.label?-1:M.label>P.label?1:0});if(0<F.length){for(L=0;L<F.length;L++)E(F[L].name,F[L].url,!0,F[L].label);p.addSeparator(q)}p.addItem(mxResources.get("reset"),null,mxUtils.bind(this,
-function(){this.customFonts=[];d.fireEvent(new mxEventObject("customFontsChanged"))}),q);p.addSeparator(q);p.addItem(mxResources.get("custom")+"...",null,mxUtils.bind(this,function(){var M=this.editorUi.editor.graph,P=M.getStylesheet().getDefaultVertexStyle()[mxConstants.STYLE_FONTFAMILY],R="s",T=null;if(M.isEditing()){var V=M.getSelectedEditingElement();if(null!=V){var W=mxUtils.getCurrentStyle(V);if(null!=W){P=mxUtils.getCssFontFamily(W.fontFamily);W=M.getView().getState(M.cellEditor.getEditingCell());
-T=null!=W?W.style.fontSource:null;for(null!=T&&(T=decodeURIComponent(T));null!=V&&V!=M.cellEditor.textarea;){if(V.nodeType==mxConstants.NODETYPE_ELEMENT)if(null!=V.getAttribute("data-font-src")){T=V.getAttribute("data-font-src");break}else if(V.getAttribute("face")==P){T=null;break}V=V.parentNode}null!=T&&(Graph.isGoogleFontUrl(T)?(T=null,R="g"):R="w")}}}else W=M.getView().getState(M.getSelectionCell()),null!=W&&(P=W.style[mxConstants.STYLE_FONTFAMILY]||P,V=W.style.fontSource,null!=V&&(V=decodeURIComponent(V),
-Graph.isGoogleFontUrl(V)?R="g":(R="w",T=V)));null!=T&&T.substring(0,PROXY_URL.length)==PROXY_URL&&(T=decodeURIComponent(T.substr((PROXY_URL+"?url=").length)));var X=null;document.activeElement==M.cellEditor.textarea&&(X=M.cellEditor.saveSelection());P=new FontDialog(this.editorUi,P,T,R,mxUtils.bind(this,function(Y,Z,da){null!=X&&(M.cellEditor.restoreSelection(X),X=null);if(null!=Y&&0<Y.length)if(this.addCustomFont(Y,Z),M.isEditing())M.setFont(Y,Z);else{M.getModel().beginUpdate();try{M.stopEditing(!1),
-M.setCellStyles(mxConstants.STYLE_FONTFAMILY,Y),M.setCellStyles("fontSource",null!=Z?encodeURIComponent(Z):null),M.setCellStyles("FType",null)}finally{M.getModel().endUpdate()}}}));this.editorUi.showDialog(P.container,380,130+(Editor.enableWebFonts?70:0)+("0"!=urlParams.isGoogleFontsEnabled?50:0),!0,!0);P.init()}),q,null,!0)})))}})();function DiagramPage(b,f){this.node=b;null!=f?this.node.setAttribute("id",f):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")};
+Menus.prototype.removeCustomFont=function(m,d){for(var q=0;q<this.customFonts.length;q++)if(this.customFonts[q].name==m&&this.customFonts[q].url==d){this.customFonts.splice(q,1);this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts));break}};Menus.prototype.containsFont=function(m,d){for(var q=0;q<this.customFonts.length;q++)if(this.customFonts[q].name==m&&this.customFonts[q].url==d)return!0;for(q=0;q<this.defaultFonts.length;q++){var x=this.defaultFonts[q];
+if("string"!==typeof x&&x.fontFamily==m&&x.fontUrl==d||"string"===typeof x&&x==m&&null==d)return!0}return!1};Menus.prototype.addCustomFont=function(m,d){null==m||this.containsFont(m,d)||(this.customFonts.push({name:m,url:d}),this.editorUi.fireEvent(new mxEventObject("customFontsChanged","customFonts",this.customFonts)))};var f=Menus.prototype.init;Menus.prototype.init=function(){function m(n,t,B){d.isExportToCanvas()?d.showExportDialog(mxResources.get("image"),!1,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",
+mxUtils.bind(this,function(F,J,K,k,v,G,N,O,Q,S,V,W,X){var Z=parseInt(F);!isNaN(Z)&&0<Z&&(d.exportImage(Z/100,J&&"png"==n,K,k,v&&"png"==n,N,!O,Q,n,V,null,W,X),null!=B&&B(F,J,K,k,v,G,N,O,Q,S,V,W,X))}),!0,t,n,!0):d.isOffline()||mxClient.IS_IOS&&navigator.standalone||d.showRemoteExportDialog(mxResources.get("export"),null,mxUtils.bind(this,function(F,J,K,k,v){d.downloadFile(J&&"png"==n?"xmlpng":n,null,null,F,null,null,K,k,v)}),!1,!0)}f.apply(this,arguments);var d=this.editorUi,q=d.editor.graph,x=mxUtils.bind(q,
+q.isEnabled);"1"==urlParams.noFileMenu&&(this.defaultMenuItems=this.defaultMenuItems.filter(function(n){return"file"!=n}));d.actions.addAction("new...",function(){var n=d.isOffline(),t=new NewDialog(d,n,!(d.mode==App.MODE_DEVICE&&"chooseFileSystemEntries"in window));d.showDialog(t.container,n?350:620,n?70:460,!0,!0,function(B){null!=d.sidebar&&d.sidebar.hideTooltip();B&&null==d.getCurrentFile()&&d.showSplash()});t.init()});var C=mxUtils.bind(this,function(n){q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())&&
+(n=new NewDialog(d,null,!1,function(t){d.hideDialog();if(null!=t){var B=d.editor.graph.getFreeInsertPoint();q.setSelectionCells(d.importXml(t,Math.max(B.x,20),Math.max(B.y,20),!0,null,null,!0));q.scrollCellToVisible(q.getSelectionCell())}},null,null,null,null,null,null,null,null,null,null,!1,mxResources.get("insert"),null,null,n),d.showDialog(n.container,620,460,!0,!0,function(){d.sidebar.hideTooltip()}),n.init())});Editor.enableChatGpt&&d.isExternalDataComms()&&"draw.io"==d.getServiceName()&&"undefined"!==
+typeof mxMermaidToDrawio&&window.isMermaidEnabled&&(d.actions.put("generate",new Action("generate...",function(){C(!0)})).isEnabled=x);d.actions.put("insertTemplate",new Action("template...",function(){C()})).isEnabled=x;var y=d.actions.addAction("shareCursor",function(){d.setShareCursorPosition(!d.isShareCursorPosition())});y.setToggleAction(!0);y.setSelectedCallback(function(){return d.isShareCursorPosition()});y=d.actions.addAction("showRemoteCursors",function(){d.setShowRemoteCursors(!d.isShowRemoteCursors())});
+y.setToggleAction(!0);y.setSelectedCallback(function(){return d.isShowRemoteCursors()});y=d.actions.addAction("points",function(){d.editor.graph.view.setUnit(mxConstants.POINTS)});y.setToggleAction(!0);y.setSelectedCallback(function(){return d.editor.graph.view.unit==mxConstants.POINTS});y=d.actions.addAction("inches",function(){d.editor.graph.view.setUnit(mxConstants.INCHES)});y.setToggleAction(!0);y.setSelectedCallback(function(){return d.editor.graph.view.unit==mxConstants.INCHES});y=d.actions.addAction("millimeters",
+function(){d.editor.graph.view.setUnit(mxConstants.MILLIMETERS)});y.setToggleAction(!0);y.setSelectedCallback(function(){return d.editor.graph.view.unit==mxConstants.MILLIMETERS});y=d.actions.addAction("meters",function(){d.editor.graph.view.setUnit(mxConstants.METERS)});y.setToggleAction(!0);y.setSelectedCallback(function(){return d.editor.graph.view.unit==mxConstants.METERS});this.put("units",new Menu(mxUtils.bind(this,function(n,t){this.addMenuItems(n,["points","inches","millimeters","meters"],
+t);"min"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme||d.menus.addMenuItems(n,["-","pageScale"],t)})));y=d.actions.addAction("pageTabs",function(){d.setTabContainerVisible(!d.isTabContainerVisible(),!0)});y.setToggleAction(!0);y.setSelectedCallback(function(){return d.isTabContainerVisible()});y=d.actions.addAction("ruler",function(){d.setRulerVisible(!d.isRulerVisible())});y.setEnabled(d.canvasSupported&&9!=document.documentMode);y.setToggleAction(!0);y.setSelectedCallback(function(){return d.isRulerVisible()});
+y=d.actions.addAction("fullscreen",function(){if("1"==urlParams.embedInline)d.setInlineFullscreen(!Editor.inlineFullscreen);else{var n=mxUtils.isAncestorNode(document.body,d.container)?d.container:d.editor.graph.container;null!=n&&(null==document.fullscreenElement?(document.body.requestFullscreen(),n.classList.add("geFullscreen")):(document.exitFullscreen(),n.classList.remove("geFullscreen")))}});y.visible="1"==urlParams.embedInline||window==window.top&&document.fullscreenEnabled&&null!=document.body.requestFullscreen;
+y.setToggleAction(!0);y.setSelectedCallback(function(){return"1"==urlParams.embedInline?Editor.inlineFullscreen:null!=document.fullscreenElement});y=d.actions.put("lightMode",new Action("light",function(n){d.setAndPersistDarkMode(!1)}));y.setToggleAction(!0);y.setSelectedCallback(function(){return!d.isAutoDarkMode(!0)&&!Editor.isDarkMode()});y=d.actions.put("darkMode",new Action("dark",function(n){d.setAndPersistDarkMode(!0)}));y.setToggleAction(!0);y.setSelectedCallback(function(){return!d.isAutoDarkMode(!0)&&
+Editor.isDarkMode()});y=d.actions.put("autoMode",new Action("automatic",function(n){d.setAndPersistDarkMode("auto")}));y.setToggleAction(!0);y.setSelectedCallback(function(){return d.isAutoDarkMode(!0)});d.actions.addAction("properties...",function(){d.getPublicUrl(d.getCurrentFile(),function(n){n=new FilePropertiesDialog(d,n);d.showDialog(n.container,340,200,!0,!0);n.init()})}).isEnabled=x;window.mxFreehand&&(d.actions.put("insertFreehand",new Action("freehand...",function(){if(q.isEnabled()){if(null==
+d.freehandWindow){var n=!mxClient.IS_IE&&!mxClient.IS_IE11;d.freehandWindow=new FreehandWindow(d,document.body.offsetWidth-420,102,176,n?126:90,n)}q.freehand.isDrawing()?q.freehand.stopDrawing():q.freehand.startDrawing();d.freehandWindow.window.setVisible(!0)}},null,null,"X")).isEnabled=function(){return x()&&mxClient.IS_SVG});d.actions.put("exportXml",new Action("formatXml...",function(){var n=document.createElement("div");n.style.whiteSpace="nowrap";var t=null==d.pages||1>=d.pages.length,B=document.createElement("h3");
+mxUtils.write(B,mxResources.get("formatXml"));B.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";n.appendChild(B);var F=d.addCheckbox(n,mxResources.get("selectionOnly"),!1,q.isSelectionEmpty()),J=d.addCheckbox(n,mxResources.get("compressed"),Editor.defaultCompressed),K=d.addCheckbox(n,mxResources.get("allPages"),!t,t);K.style.marginBottom="16px";mxEvent.addListener(F,"change",function(){F.checked?K.setAttribute("disabled","disabled"):K.removeAttribute("disabled")});n=
+new CustomDialog(d,n,mxUtils.bind(this,function(){d.downloadFile("xml",!J.checked,null,!F.checked,t||!K.checked)}),null,mxResources.get("export"));d.showDialog(n.container,300,200,!0,!0)}));Editor.enableExportUrl&&d.actions.put("exportUrl",new Action("url...",function(){d.showPublishLinkDialog(mxResources.get("url"),null,null,null,null,null,null,null,function(n,t,B,F,J,K,k,v,G,N,O,Q){k=[];F&&G&&k.push("tags=%7B%7D");n=new EmbedDialog(d,d.createLink(n,t,!0,F,J,K,null,!0,k,null,B,null,Q));d.showDialog(n.container,
+450,240,!0,!0);n.init()},null,!0)}));d.actions.put("exportHtml",new Action("formatHtmlEmbedded...",function(){d.getPublicUrl(d.getCurrentFile(),function(n){d.showHtmlDialog(mxResources.get("export"),null,n,function(t,B,F,J,K,k,v,G,N,O,Q,S){d.createHtml(t,B,F,J,K,k,v,G,N,O,Q,mxUtils.bind(this,function(V,W){var X=d.getBaseFilename(v);V='\x3c!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=5,IE=9" ><![endif]--\x3e\n<!DOCTYPE html>\n<html>\n<head>\n<title>'+mxUtils.htmlEntities(X)+'</title>\n<meta charset="utf-8"/>\n</head>\n<body>'+
+V+"\n"+W+"\n</body>\n</html>";d.saveData(X+(".drawio"==X.substring(X.lenth-7)?"":".drawio")+".html","html",V,"text/html")}),S)})})}));d.actions.put("exportPdf",new Action("formatPdf...",function(){d.showPrintDialog(mxResources.get("formatPdf"),EditorUi.isElectronApp||!d.isOffline()&&!d.printPdfExport?mxUtils.bind(this,function(n,t){n=null!=d.pages?d.pages.length:1;var B=null==d.pages||1>=d.pages.length,F=d.getPageIndex(d.currentPage);F=null!=F?F+1:1;d.downloadFile("pdf",null,null,!t.selection,B||
+!t.allPages&&t.pagesFrom==F&&t.pagesTo==F,!t.crop,t.transparent,t.scale,null,t.grid,t.includeCopy,t.allPages||t.pagesFrom==F&&t.pagesTo==F?null:{from:Math.max(0,Math.min(n-1,t.pagesFrom-1)),to:Math.max(0,Math.min(n-1,t.pagesTo-1))},t.border,t.fit,t.sheetsAcross,t.sheetsDown)}):null,mxResources.get("export"))}));d.actions.addAction("open...",function(){d.pickFile()});d.actions.addAction("close",function(){function n(){null!=t&&t.removeDraft();d.fileLoaded(null)}var t=d.getCurrentFile();null!=t&&t.isModified()?
+d.confirm(mxResources.get("allChangesLost"),null,n,mxResources.get("cancel"),mxResources.get("discardChanges")):n()});d.actions.addAction("editShape...",mxUtils.bind(this,function(){q.getSelectionCells();if(1==q.getSelectionCount()){var n=q.getSelectionCell(),t=q.view.getState(n);null!=t&&null!=t.shape&&null!=t.shape.stencil&&(n=new EditShapeDialog(d,n,mxResources.get("editShape")+":",630,400),d.showDialog(n.container,640,480,!0,!1),n.init())}}));d.actions.addAction("revisionHistory...",function(){d.isRevisionHistorySupported()?
+d.spinner.spin(document.body,mxResources.get("loading"))&&d.getRevisions(mxUtils.bind(this,function(n,t){d.spinner.stop();n=new RevisionDialog(d,n,t);d.showDialog(n.container,640,480,!0,!0);n.init()}),mxUtils.bind(this,function(n){d.handleError(null!=n?n:mxResources.get("notAvailable"))})):d.showError(mxResources.get("error"),mxResources.get("notAvailable"),mxResources.get("ok"))});d.actions.addAction("createRevision",function(){d.actions.get("save").funct()},null,null,Editor.ctrlKey+"+S");y=d.actions.addAction("synchronize",
+function(){d.synchronizeCurrentFile("none"==DrawioFile.SYNC)},null,null,"Alt+Shift+S");"none"==DrawioFile.SYNC&&(y.label=mxResources.get("refresh"));d.actions.addAction("upload...",function(){var n=d.getCurrentFile();null!=n&&(window.drawdata=d.getFileData(),n=null!=n.getTitle()?n.getTitle():d.defaultFilename,d.openLink(window.location.protocol+"//"+window.location.host+"/?create=drawdata&"+(d.mode==App.MODE_DROPBOX?"mode=dropbox&":"")+"title="+encodeURIComponent(n),null,!0))});"undefined"!==typeof MathJax&&
+(y=d.actions.addAction("mathematicalTypesetting",function(){var n=new ChangePageSetup(d);n.ignoreColor=!0;n.ignoreImage=!0;n.mathEnabled=!d.isMathEnabled();q.model.execute(n)}),y.setToggleAction(!0),y.setSelectedCallback(function(){return d.isMathEnabled()}),y.isEnabled=x);y=d.actions.put("defaultAdaptiveColors",new Action("defaultAdaptiveColors",function(){var n=new ChangePageSetup(d);n.ignoreColor=!0;n.ignoreImage=!0;n.adaptiveColors="default";q.model.execute(n)}));y.getTitle=function(){return mxResources.get("default")+
+" ("+mxResources.get(Graph.getDefaultAdaptiveColorsKey())+")"};y.setToggleAction(!0);y.setSelectedCallback(function(){return null==q.adaptiveColors});y=d.actions.put("automaticAdaptiveColors",new Action("automatic",function(){var n=new ChangePageSetup(d);n.ignoreColor=!0;n.ignoreImage=!0;n.adaptiveColors="auto";q.model.execute(n)}));y.setToggleAction(!0);y.setSelectedCallback(function(){return"auto"==q.adaptiveColors});y=d.actions.put("simpleAdaptiveColors",new Action("simple",function(){var n=new ChangePageSetup(d);
+n.ignoreColor=!0;n.ignoreImage=!0;n.adaptiveColors="simple";q.model.execute(n)}));y.setToggleAction(!0);y.setSelectedCallback(function(){return"simple"==q.adaptiveColors});y=d.actions.put("noAdaptiveColors",new Action("none",function(){var n=new ChangePageSetup(d);n.ignoreColor=!0;n.ignoreImage=!0;n.adaptiveColors="none";q.model.execute(n)}));y.setToggleAction(!0);y.setSelectedCallback(function(){return"none"==q.adaptiveColors});this.put("adaptiveColors",new Menu(mxUtils.bind(this,function(n,t){this.addMenuItems(n,
+["defaultAdaptiveColors","-","automaticAdaptiveColors","simpleAdaptiveColors","noAdaptiveColors"],t)})));isLocalStorage&&(y=d.actions.addAction("showStartScreen",function(){mxSettings.setShowStartScreen(!mxSettings.getShowStartScreen());mxSettings.save()}),y.setToggleAction(!0),y.setSelectedCallback(function(){return mxSettings.getShowStartScreen()}));var I=d.actions.addAction("autosave",function(){d.editor.setAutosave(!d.editor.autosave)});I.setToggleAction(!0);I.setSelectedCallback(function(){return I.isEnabled()&&
+d.editor.autosave});d.actions.addAction("editGeometry...",function(){for(var n=q.getSelectionCells(),t=[],B=0;B<n.length;B++)q.getModel().isVertex(n[B])&&t.push(n[B]);0<t.length&&(n=new EditGeometryDialog(d,t),d.showDialog(n.container,200,270,!0,!0),n.init())},null,null,Editor.ctrlKey+"+Shift+M");d.actions.addAction("copyStyle",function(){if(q.isEnabled()&&1==q.getSelectionCount()){var n=q.getSelectionCell(),t=q.getCellStyle(n,!1);d.copiedStyle={};var B=[],F=[],J;for(J in t)B.push(t[J]),F.push(J);
+q.copyCellStyles([n],F,B,d.copiedStyle,d.copiedStyle,null,null,null,!0)}},null,null,"Alt+C");d.actions.addAction("pasteStyle",function(){q.isEnabled()&&!q.isSelectionEmpty()&&null!=d.copiedStyle&&q.pasteCellStyles(q.includeDescendants(q.getSelectionCells()),d.copiedStyle,d.copiedStyle,!0)},null,null,"Alt+V");d.actions.put("exportSvg",new Action("formatSvg...",function(){d.showExportDialog(mxResources.get("formatSvg"),!0,mxResources.get("export"),"https://www.drawio.com/doc/faq/export-diagram",mxUtils.bind(this,
+function(n,t,B,F,J,K,k,v,G,N,O,Q,S,V){n=parseInt(n);d.lastExportSvgEditable=J;!isNaN(n)&&0<n&&d.exportSvg(n/100,t,B,F,J,K,k,!v,G,N,Q,S,V)}),!0,d.lastExportSvgEditable,"svg",!0)}));d.actions.put("exportPng",new Action("formatPng...",function(){m("png",d.lastExportPngEditable,function(n,t,B,F,J){d.lastExportPngEditable=J})}));d.actions.put("exportJpg",new Action("formatJpg...",function(){m("jpeg")}));d.actions.put("exportWebp",new Action("formatWebp...",function(){m("webp")}));y=d.actions.addAction("copyAsImage",
+mxUtils.bind(this,function(){var n=mxUtils.sortCells(q.model.getTopmostCells(q.getSelectionCells())),t=mxUtils.getXml(0==n.length?d.editor.getGraphXml():q.encodeCells(n));d.copyImage(n,t)}),null,null,"Ctrl+Alt+X");y.visible=Editor.enableNativeCipboard&&d.isExportToCanvas()&&!mxClient.IS_SF;y=d.actions.put("shadowVisible",new Action("shadow",function(){q.setShadowVisible(!q.shadowVisible)}));y.setToggleAction(!0);y.setSelectedCallback(function(){return q.shadowVisible});d.actions.put("about",new Action("v"+
+EditorUi.VERSION,function(n,t){d.isOwnDomain()&&mxEvent.isShiftDown(t)&&("1"==urlParams.test?(EditorUi.debug("Debug output disabled"),urlParams.test="0"):(urlParams.test="1",EditorUi.debug("Debug output enabled")))}));d.actions.addAction("support...",function(){EditorUi.isElectronApp?d.openLink("https://github.com/jgraph/drawio-desktop/wiki/Getting-Support"):d.openLink("https://github.com/jgraph/drawio/wiki/Getting-Support")});d.actions.addAction("exportOptionsDisabled...",function(){d.handleError({message:mxResources.get("exportOptionsDisabledDetails")},
+mxResources.get("exportOptionsDisabled"))});d.actions.addAction("keyboardShortcuts...",function(){!mxClient.IS_SVG||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp?d.openLink("https://viewer.diagrams.net/#Uhttps%3A%2F%2Fviewer.diagrams.net%2Fshortcuts.svg"):d.openLink("shortcuts.svg")});d.actions.addAction("feedback...",function(){var n=new FeedbackDialog(d);d.showDialog(n.container,610,360,!0,!1);n.init()});d.actions.addAction("quickStart...",function(){"ac.draw.io"===window.location.hostname?d.openLink("https://www.youtube.com/watch?v=s5BG0705MHU"):
+d.openLink("https://www.youtube.com/watch?v=Z0D96ZikMkc")});y=d.actions.addAction("tags",mxUtils.bind(this,function(){null==this.tagsWindow?(this.tagsWindow=new TagsWindow(d,document.body.offsetWidth-400,60,212,200),this.tagsWindow.window.addListener("show",mxUtils.bind(this,function(){d.fireEvent(new mxEventObject("tags"))})),this.tagsWindow.window.addListener("hide",function(){d.fireEvent(new mxEventObject("tags"))}),this.tagsWindow.window.setVisible(!0),d.fireEvent(new mxEventObject("tags"))):
+this.tagsWindow.window.setVisible(!this.tagsWindow.window.isVisible())}),null,null,Editor.ctrlKey+"+K");y.setToggleAction(!0);y.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.tagsWindow&&this.tagsWindow.window.isVisible()}));null==Editor.gptApiKey||null==Editor.gptModel||null==Editor.gptUrl||d.isOffline()||EditorUi.isElectronApp||(y=d.actions.addAction("chatWindowTitle",mxUtils.bind(this,function(){null==this.chatWindow?(this.chatWindow=new ChatWindow(d,220,document.body.offsetHeight-
+380,250,320),this.chatWindow.window.addListener("show",mxUtils.bind(this,function(){d.fireEvent(new mxEventObject("chat"))})),this.chatWindow.window.addListener("hide",function(){d.fireEvent(new mxEventObject("chat"))}),this.chatWindow.window.setVisible(!0),d.fireEvent(new mxEventObject("chat"))):this.chatWindow.window.setVisible(!this.chatWindow.window.isVisible())})),y.setToggleAction(!0),y.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.chatWindow&&this.chatWindow.window.isVisible()})));
+y=d.actions.addAction("findReplace",mxUtils.bind(this,function(n,t){var B=(n=q.isEnabled()&&(null==t||!mxEvent.isShiftDown(t)))?"findReplace":"find";t=B+"Window";if(null==this[t]){var F="min"==Editor.currentTheme||"simple"==Editor.currentTheme||"sketch"==Editor.currentTheme,J=n?F?330:300:240;this[t]=new FindWindow(d,document.body.offsetWidth-(J+20),100,J,n?F?304:288:170,n);this[t].window.addListener("show",function(){d.fireEvent(new mxEventObject(B))});this[t].window.addListener("hide",function(){d.fireEvent(new mxEventObject(B))})}this[t].window.setVisible(!0);
+this[t].focus()}),null,null,Editor.ctrlKey+"+F");y=new Action("exportVsdx",function(){var n=null==d.pages||1>=d.pages.length;if(n)d.exportVisio();else{var t=document.createElement("div");t.style.whiteSpace="nowrap";var B=document.createElement("h3");mxUtils.write(B,mxResources.get("formatVsdx"));B.style.cssText="width:100%;text-align:center;margin-top:0px;margin-bottom:4px";t.appendChild(B);var F=d.addCheckbox(t,mxResources.get("allPages"),!n,n);F.style.marginBottom="16px";n=new CustomDialog(d,t,
+mxUtils.bind(this,function(){d.exportVisio(!F.checked)}),null,mxResources.get("export"));d.showDialog(n.container,300,130,!0,!0)}});y.getTitle=function(){return mxResources.get("formatVsdx")+" (beta)..."};d.actions.put("exportVsdx",y);isLocalStorage&&null!=localStorage&&"1"!=urlParams.embed&&d.actions.addAction("configuration...",function(){var n=document.createElement("input");n.setAttribute("type","checkbox");n.style.marginRight="8px";n.checked=mxSettings.getShowStartScreen();n.defaultChecked=n.checked;
+if(Editor.isSettingsEnabled()&&("sketch"==Editor.currentTheme||"simple"==Editor.currentTheme||"min"==Editor.currentTheme)){var t=document.createElement("span");t.style.display="flex";t.style.alignItems="center";t.style.cssFloat="right";t.style.cursor="pointer";t.style.userSelect="none";t.style.marginTop="-3px";t.appendChild(n);mxUtils.write(t,mxResources.get("showStartScreen"));mxEvent.addListener(t,"click",function(F){mxEvent.getSource(F)!=n&&(n.checked=!n.checked)});header=t}t=[[mxResources.get("reset"),
+function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.configurationKey),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(F){d.handleError(F)}})}]];if(!d.isOfflineApp()&&isLocalStorage&&d.mode!=App.MODE_ATLAS){var B=d.actions.get("plugins");null==B||"sketch"!=Editor.currentTheme&&"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||t.push([mxResources.get("plugins"),B.funct])}EditorUi.isElectronApp||t.push([mxResources.get("link"),
+function(F,J){if(0<J.value.length)try{var K=JSON.parse(J.value),k=window.location.protocol+"//"+window.location.host+"/"+d.getSearch()+"#_CONFIG_"+Graph.compress(JSON.stringify(K)),v=new EmbedDialog(d,k);d.showDialog(v.container,450,240,!0);v.init()}catch(G){d.handleError(G)}else d.handleError({message:mxResources.get("invalidInput")})}]);"atlassian"!=d.getServiceName()&&"1"!=urlParams.embed&&t.push([mxResources.get("preferences"),function(){d.showLocalStorageDialog(mxResources.get("preferences")+
+":",Editor.settingsKey,[[mxResources.get("reset"),function(){d.confirm(mxResources.get("areYouSure"),function(){try{localStorage.removeItem(Editor.settingsKey),localStorage.removeItem(".drawio-config"),d.hideDialog(),d.alert(mxResources.get("restartForChangeRequired"))}catch(F){d.handleError(F)}})}]])}]);d.showLocalStorageDialog(mxResources.get("configuration")+":",Editor.configurationKey,t,n.parentNode,"https://www.drawio.com/doc/faq/configure-diagram-editor",function(){null!=n.parentNode&&(mxSettings.setShowStartScreen(n.checked),
+mxSettings.save())})});(mxClient.IS_CHROMEAPP||isLocalStorage)&&this.put("language",new Menu(mxUtils.bind(this,function(n,t){var B=mxLanguage;null==urlParams.lang&&isLocalStorage&&(B=mxSettings.settings.language);var F=mxUtils.bind(this,function(K){var k=""==K?mxResources.get("automatic"):mxLanguageMap[K],v=null;""!=k&&(v=n.addItem(k,null,mxUtils.bind(this,function(){d.setAndPersistLanguage(K)}),t),(K==B||""==K&&null==B)&&n.addCheckmark(v,Editor.checkmarkImage));return v});F("");n.addSeparator(t);
+for(var J in mxLanguageMap)F(J)})));d.customLayoutConfig=[{layout:"mxHierarchicalLayout",config:{orientation:"west",intraCellSpacing:30,interRankCellSpacing:100,interHierarchySpacing:60,parallelEdgeSpacing:10}}];d.actions.addAction("runLayout",function(){d.showCustomLayoutDialog(JSON.stringify(d.customLayoutConfig,null,2))});d.actions.put("adaptiveColors",new Action("adaptiveColors",function(n){null==d.adaptiveColorsWindow&&(d.adaptiveColorsWindow=new AdaptiveColorsWindow(d,document.body.offsetWidth-
+520,80,200,160));d.adaptiveColorsWindow.window.setVisible(!0)}));y=this.get("viewZoom");var M=y.funct;y.funct=mxUtils.bind(this,function(n,t){M.apply(this,arguments);"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(n,["-","outline","fullscreen"],t)});y=this.get("layout");var H=y.funct;y.funct=function(n,t){H.apply(this,arguments);n.addItem(mxResources.get("orgChart"),null,function(){var B=null,F=20,J=20,K=function(){"undefined"!==typeof mxOrgChartLayout&&null!=B&&d.tryAndHandle(mxUtils.bind(this,
+function(){var V=d.editor.graph,W=new mxOrgChartLayout(V,B,F,J),X=V.getDefaultParent();1<V.model.getChildCount(V.getSelectionCell())&&(X=V.getSelectionCell());W.execute(X)}))},k=document.createElement("div"),v=document.createElement("div");v.style.marginTop="6px";v.style.display="inline-block";v.style.width="180px";mxUtils.write(v,mxResources.get("orgChartType")+": ");k.appendChild(v);var G=document.createElement("select");G.style.width="160px";G.style.boxSizing="border-box";v=[mxResources.get("linear"),
+mxResources.get("hanger2"),mxResources.get("hanger4"),mxResources.get("fishbone1"),mxResources.get("fishbone2"),mxResources.get("1ColumnLeft"),mxResources.get("1ColumnRight"),mxResources.get("smart")];for(var N=0;N<v.length;N++){var O=document.createElement("option");mxUtils.write(O,v[N]);O.value=N;2==N&&O.setAttribute("selected","selected");G.appendChild(O)}mxEvent.addListener(G,"change",function(){B=G.value});k.appendChild(G);v=document.createElement("div");v.style.marginTop="6px";v.style.display=
+"inline-block";v.style.width="180px";mxUtils.write(v,mxResources.get("parentChildSpacing")+": ");k.appendChild(v);var Q=document.createElement("input");Q.type="number";Q.value=F;Q.style.width="160px";Q.style.boxSizing="border-box";k.appendChild(Q);mxEvent.addListener(Q,"change",function(){F=Q.value});v=document.createElement("div");v.style.marginTop="6px";v.style.display="inline-block";v.style.width="180px";mxUtils.write(v,mxResources.get("siblingSpacing")+": ");k.appendChild(v);var S=document.createElement("input");
+S.type="number";S.value=J;S.style.width="160px";S.style.boxSizing="border-box";k.appendChild(S);mxEvent.addListener(S,"change",function(){J=S.value});v=mxUtils.button(mxResources.get("custom")+"...",function(){var V=[{layout:"mxOrgChartLayout",config:{branchOptimizer:parseInt(G.value),parentChildSpacing:parseInt(Q.value),siblingSpacing:parseInt(S.value)}}];d.hideDialog();d.showCustomLayoutDialog(JSON.stringify(V,null,2))});v.className="geBtn";k=new CustomDialog(d,k,function(){null==B&&(B=2);d.loadOrgChartLayouts(K)},
+null,null,null,v);d.showDialog(k.container,355,140,!0,!0)},t,null,x());n.addSeparator(t);n.addItem(mxResources.get("parallels"),null,mxUtils.bind(this,function(){d.tryAndHandle(mxUtils.bind(this,function(){var B=new mxParallelEdgeLayout(q);B.checkOverlap=!0;d.prompt(mxResources.get("spacing"),B.spacing,mxUtils.bind(this,function(F){d.tryAndHandle(mxUtils.bind(this,function(){B.spacing=F;d.executeLayout(function(){B.execute(q.getDefaultParent(),q.isSelectionEmpty()?null:q.getSelectionCells())},!1)}))}))}))}),
+t);n.addSeparator(t);d.menus.addMenuItem(n,"runLayout",t,null,null,mxResources.get("custom")+"...")};this.put("help",new Menu(mxUtils.bind(this,function(n,t){if(!mxClient.IS_CHROMEAPP&&d.isOffline())this.addMenuItems(n,["keyboardShortcuts","-","about"],t);else{var B=n.addItem("Search:",null,null,t,null,null,!1);B.style.cursor="default";var F=document.createElement("input");F.setAttribute("type","text");F.setAttribute("size","25");F.style.borderWidth="1px";F.style.marginLeft="8px";mxEvent.addListener(F,
+"keydown",mxUtils.bind(this,function(J){var K=mxUtils.trim(F.value);13==J.keyCode&&0<K.length?(this.editorUi.openLink("https://www.drawio.com/search?src="+(EditorUi.isElectronApp?"DESKTOP":encodeURIComponent(location.host))+"&search="+encodeURIComponent(K)),F.value="",EditorUi.logEvent({category:"SEARCH-HELP",action:"search",label:K}),window.setTimeout(mxUtils.bind(this,function(){this.editorUi.hideCurrentMenu()}),0)):27==J.keyCode&&(F.value="")}));B.firstChild.nextSibling.appendChild(F);mxEvent.addGestureListeners(F,
+function(J){document.activeElement!=F&&F.focus();mxEvent.consume(J)},function(J){mxEvent.consume(J)},function(J){mxEvent.consume(J)});window.setTimeout(function(){F.focus()},0);EditorUi.isElectronApp?(d.actions.addAction("website...",function(){d.openLink("https://www.drawio.com")}),d.actions.addAction("check4Updates",function(){d.checkForUpdates()}),d.actions.put("desktopZoomIn",new Action("zoomIn",function(){d.desktopZoomIn()})),d.actions.put("desktopZoomOut",new Action("zoomOut",function(){d.desktopZoomOut()})),
+d.actions.put("desktopResetZoom",new Action("actualSize",function(){d.desktopResetZoom()})),this.addMenuItems(n,"- keyboardShortcuts quickStart website support -".split(" "),t),"1"!=urlParams.disableUpdate&&this.addMenuItems(n,["check4Updates","-"],t),this.addMenuItems(n,"desktopResetZoom desktopZoomIn desktopZoomOut - openDevTools - about".split(" "),t)):this.addMenuItems(n,"- keyboardShortcuts quickStart support - about".split(" "),t)}"1"==urlParams.test&&(n.addSeparator(t),this.addSubmenu("testDevelop",
+n,t))})));d.actions.addAction("languageCode...",function(){var n=new FilenameDialog(d,Graph.diagramLanguage||"",mxResources.get("ok"),mxUtils.bind(this,function(t){null!=t&&(Graph.diagramLanguage=0<t.length?t:null,Graph.translateDiagram=!0,q.refresh())}),mxResources.get("languageCode"),null,null,"https://www.drawio.com/blog/translate-diagrams");d.showDialog(n.container,340,80,!0,!0);n.init()});this.put("diagramLanguage",new Menu(mxUtils.bind(this,function(n,t){this.addMenuItems(n,["languageCode",
+"-"],t);t=n.addItem(mxResources.get("disabled"),null,function(){Graph.translateDiagram=!1;q.refresh()},t);Graph.translateDiagram||n.addCheckmark(t,Editor.checkmarkImage)})));if("1"==urlParams.test){mxResources.parse("testDevelop=Develop");mxResources.parse("showBoundingBox=Show bounding box");mxResources.parse("createSidebarEntry=Create Sidebar Entry");mxResources.parse("testCheckFile=Check File");mxResources.parse("testDiff=Diff/Sync");mxResources.parse("testChecksum=Checksum");mxResources.parse("testCheckPages=Check Pages");
+mxResources.parse("testFixPages=Fix Pages");mxResources.parse("testInspect=Inspect");mxResources.parse("testShowConsole=Show Console");mxResources.parse("testXmlImageExport=XML Image Export");mxResources.parse("testOptimize=Remove Inline Images");mxResources.parse("testPerformance=Performance");d.actions.addAction("createSidebarEntry",mxUtils.bind(this,function(){if(!q.isSelectionEmpty()){var n=q.cloneCells(q.getSelectionCells()),t=q.getBoundingBoxFromGeometry(n,!0);n=q.moveCells(n,-t.x,-t.y);d.showTextDialog("Create Sidebar Entry",
+"this.addDataEntry('tag1 tag2', "+t.width+", "+t.height+", 'The Title', '"+Graph.compress(mxUtils.getXml(q.encodeCells(n)))+"'),")}}));d.actions.addAction("showBoundingBox",mxUtils.bind(this,function(){function n(k){return null==k||null==k.boundingBox||!isNaN(k.boundingBox.x)&&!isNaN(k.boundingBox.y)&&!isNaN(k.boundingBox.width)&&!isNaN(k.boundingBox.height)}var t=q.isSelectionEmpty()?q.getGraphBounds():q.getBoundingBox(q.getSelectionCells()),B=q.view.translate,F=q.view.scale;q.insertVertex(q.getDefaultParent(),
+null,"",t.x/F-B.x,t.y/F-B.y,t.width/F,t.height/F,"fillColor=none;strokeColor=red;");var J=0,K=0;q.view.states.visit(function(k,v){k=!0;n(v.shape)||(console.log("invalid shape",v.cell.id,v.shape),k=!1);n(v.text)||(console.log("invalid text",v.cell.id,v.text),k=!1);k||J++;K++});console.log("states checked",K,"invalid",J)}));d.actions.addAction("testCheckFile",mxUtils.bind(this,function(){var n=null!=d.pages&&null!=d.getCurrentFile()?d.getCurrentFile().getAnonymizedXmlForPages(d.pages):"";n=new TextareaDialog(d,
+"Paste Data:",n,function(t){if(0<t.length)try{var B=function(v){function G(ea){if(null==Y[ea]){if(Y[ea]=!0,null!=Q[ea]){for(;0<Q[ea].length;){var ca=Q[ea].pop();G(ca)}delete Q[ea]}}else mxLog.debug(N+": Visited: "+ea)}var N=v.parentNode.id,O=v.childNodes;v={};for(var Q={},S=null,V={},W=0;W<O.length;W++){var X=O[W];if(null!=X.id&&0<X.id.length)if(null==v[X.id]){v[X.id]=X.id;var Z=X.getAttribute("parent");null==Z?null!=S?mxLog.debug(N+": Multiple roots: "+X.id):S=X.id:(null==Q[Z]&&(Q[Z]=[]),Q[Z].push(X.id))}else V[X.id]=
+X.id}O=Object.keys(V);0<O.length?(O=N+": "+O.length+" Duplicates: "+O.join(", "),mxLog.debug(O+" (see console)")):mxLog.debug(N+": Checked");var Y={};null==S?mxLog.debug(N+": No root"):(G(S),Object.keys(Y).length!=Object.keys(v).length&&(mxLog.debug(N+": Invalid tree: (see console)"),console.log(N+": Invalid tree",Q)))};"<"!=t.charAt(0)&&(t=Graph.decompress(t),mxLog.debug("See console for uncompressed XML"),console.log("xml",t));var F=mxUtils.parseXml(t),J=d.getPagesForNode(F.documentElement,"mxGraphModel");
+if(null!=J&&0<J.length)try{var K=d.getHashValueForPages(J);mxLog.debug("Checksum: ",K)}catch(v){mxLog.debug("Error: ",v.message)}else mxLog.debug("No pages found for checksum");var k=F.getElementsByTagName("root");for(t=0;t<k.length;t++)B(k[t]);mxLog.show()}catch(v){d.handleError(v),null!=window.console&&console.error(v)}});d.showDialog(n.container,620,460,!0,!0);n.init()}));var c=null;d.actions.addAction("testDiff",mxUtils.bind(this,function(){if(null!=d.pages){var n=new TextareaDialog(d,"Diff/Sync:",
+"",function(t){var B=d.getCurrentFile();if(0<t.length&&null!=B)try{var F=JSON.parse(t);B.patch([F],null,!0,!0);d.hideDialog()}catch(J){d.handleError(J)}},null,"Close",null,null,null,!0,null,"Patch",null,[["Snapshot",function(t,B){c=d.getPagesForXml(d.getFileData(!0));n.textarea.value="Snapshot updated "+(new Date).toLocaleString()+" Checksum "+d.getHashValueForPages(c)}],["Diff",function(t,B){try{n.textarea.value=JSON.stringify(d.diffPages(c,d.pages),null,2)}catch(F){d.handleError(F)}}]]);null==c?
+(c=d.getPagesForXml(d.getFileData(!0)),n.textarea.value="Snapshot created "+(new Date).toLocaleString()+" Checksum "+d.getHashValueForPages(c)):n.textarea.value=JSON.stringify(d.diffPages(c,d.pages),null,2);d.showDialog(n.container,620,460,!0,!0);n.init()}else d.alert("No pages")}));d.actions.addAction("testChecksum",mxUtils.bind(this,function(){var n=d.getCurrentFile();null!=d.pages&&null!=n?d.spinner.spin(document.body,mxResources.get("loading"))&&n.getLatestVersion(function(t){d.spinner.stop();
+var B=d.getHashValueForPages(d.pages),F=n.getCurrentRevisionId(),J=d.getHashValueForPages(t.getShadowPages()),K=t.getDescriptorChecksum(t.getDescriptor()),k=t.getCurrentRevisionId();console.log("Local File",[n],"modified",n.isModified(),"checksum",B);console.log("Remote File",[t],"rev",k==F,"desc",K==J,"checksum",J);d.alert("Checksums "+(J==B?"match":"no not match"))},function(t){console.log("Error getLatestVersion",t);d.handleError(t)}):console.log("Checksum: no file or pages")}));d.actions.addAction("testCheckPages",
+mxUtils.bind(this,function(){var n=d.getCurrentFile();console.log("editorUi",d,"file",n);if(null!=n&&n.isRealtime()){console.log("Checksum ownPages",d.getHashValueForPages(n.ownPages));console.log("Checksum theirPages",d.getHashValueForPages(n.theirPages));console.log("diff ownPages/theirPages",d.diffPages(n.ownPages,n.theirPages));var t=n.getShadowPages();null!=t&&(console.log("Checksum shadowPages",d.getHashValueForPages(t)),console.log("diff shadowPages/ownPages",d.diffPages(t,n.ownPages)),console.log("diff ownPages/shadowPages",
+d.diffPages(n.ownPages,t)),console.log("diff theirPages/shadowPages",d.diffPages(n.theirPages,t)));null!=n.sync&&null!=n.sync.snapshot&&(console.log("Checksum snapshot",d.getHashValueForPages(n.sync.snapshot)),console.log("diff ownPages/snapshot",d.diffPages(n.ownPages,n.sync.snapshot)),console.log("diff theirPages/snapshot",d.diffPages(n.theirPages,n.sync.snapshot)),null!=d.pages&&console.log("diff snapshot/actualPages",d.diffPages(n.sync.snapshot,d.pages)));null!=d.pages&&(console.log("diff ownPages/actualPages",
+d.diffPages(n.ownPages,d.pages)),console.log("diff theirPages/actualPages",d.diffPages(n.theirPages,d.pages)))}null!=n&&console.log("Shadow pages",[d.getXmlForPages(n.getShadowPages())]);null!=d.pages&&console.log("Checksum actualPages",d.getHashValueForPages(d.pages))}));d.actions.addAction("testFixPages",mxUtils.bind(this,function(){console.log("editorUi",d);var n=d.getCurrentFile();null!=n&&n.isRealtime()&&null!=n.shadowPages&&(console.log("patching actualPages to shadowPages",n.patch([d.diffPages(n.shadowPages,
+d.pages)])),n.ownPages=d.clonePages(d.pages),n.theirPages=d.clonePages(d.pages),n.shadowPages=d.clonePages(d.pages),null!=n.sync&&(n.sync.snapshot=d.clonePages(d.pages)))}));d.actions.addAction("testOptimize",mxUtils.bind(this,function(){q.model.beginUpdate();try{var n=q.model.cells,t=0,B=[],F=[],J;for(J in n){var K=n[J],k=q.getCurrentCellStyle(K)[mxConstants.STYLE_IMAGE];null!=k&&"data:"==k.substring(0,5)&&(null==B[k]&&(B[k]=(B[k]||0)+1,t++),F.push(K))}q.setCellStyles(mxConstants.STYLE_IMAGE,null,
+F);console.log("Removed",t,"image(s) from",F.length,"cell(s): ",[F,B])}finally{q.model.endUpdate()}}));d.actions.addAction("testInspect",mxUtils.bind(this,function(){console.log(d,q.getModel())}));d.actions.addAction("testXmlImageExport",mxUtils.bind(this,function(){var n=new mxImageExport,t=q.getGraphBounds(),B=q.view.scale,F=mxUtils.createXmlDocument(),J=F.createElement("output");F.appendChild(J);F=new mxXmlCanvas2D(J);F.translate(Math.floor((1-t.x)/B),Math.floor((1-t.y)/B));F.scale(1/B);var K=
+0,k=F.save;F.save=function(){K++;k.apply(this,arguments)};var v=F.restore;F.restore=function(){K--;v.apply(this,arguments)};var G=n.drawShape;n.drawShape=function(N){mxLog.debug("entering shape",N,K);G.apply(this,arguments);mxLog.debug("leaving shape",N,K)};n.drawState(q.getView().getState(q.model.root),F);mxLog.show();mxLog.debug(mxUtils.getXml(J));mxLog.debug("stateCounter",K)}));d.actions.addAction("testShowConsole",function(){mxLog.isVisible()?mxLog.window.fit():mxLog.show();mxLog.window.div.style.zIndex=
+mxPopupMenu.prototype.zIndex-2});var e=null,g=null,l=null,p=null,u=null,z=null,E=null,D=null;d.actions.addAction("testPerformance",mxUtils.bind(this,function(){null!=e?(q.view.revalidate=e,e=null):(e=q.view.revalidate,q.view.revalidate=function(){var n=Date.now(),t=e.apply(this,arguments);EditorUi.debug("[Performance] mxGraphView.revalidate",[this],"time",Date.now()-n+" ms","args",arguments);return t});null!=g?(d.selectPage=g,g=null):(g=d.selectPage,d.selectPage=function(){var n=Date.now(),t=g.apply(this,
+arguments);EditorUi.debug("[Performance] EditorUi.selectPage",[this],"time",Date.now()-n+" ms","args",arguments);return t});null!=l?(d.diffPages=l,l=null):(l=d.diffPages,d.diffPages=function(){var n=Date.now(),t=l.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.diffPages",[this],"time",Date.now()-n+" ms","args",arguments);return t});null!=p?(d.patchPages=p,p=null):(p=d.patchPages,d.patchPages=function(){var n=Date.now(),t=p.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.patchPages",
+[this],"time",Date.now()-n+" ms","args",arguments);return t});null!=u?(d.clonePages=u,u=null):(u=d.clonePages,d.clonePages=function(){var n=Date.now(),t=u.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.clonePages",[this],"time",Date.now()-n+" ms","args",arguments);return t});null!=E?(d.getHashValueForPages=E,E=null):(E=d.getHashValueForPages,d.getHashValueForPages=function(){var n=Date.now(),t=E.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getHashValueForPages",[this],
+"time",Date.now()-n+" ms","args",arguments);return t});null!=D?(d.resolveCrossReferences=D,D=null):(D=d.resolveCrossReferences,d.resolveCrossReferences=function(){var n=Date.now(),t=D.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.resolveCrossReferences",[this],"time",Date.now()-n+" ms","args",arguments);return t});null!=z?(d.getFileData=z,z=null):(z=d.getFileData,d.getFileData=function(){var n=Date.now(),t=z.apply(this,arguments);EditorUi.debug("[Performance] EditorUi.getFileData",
+[this],"time",Date.now()-n+" ms","args",arguments);return t});EditorUi.debug("[Performance]",null!=e?"Enabled":"Disabled")}));this.put("testDevelop",new Menu(mxUtils.bind(this,function(n,t){this.addMenuItems(n,"createSidebarEntry showBoundingBox - testCheckPages testChecksum testFixPages - testCheckFile testDiff - testInspect testOptimize - testXmlImageExport -".split(" "),t);var B=n.addItem(mxResources.get("testPerformance"),null,function(){d.actions.get("testPerformance").funct()},t);null!=e&&n.addCheckmark(B,
+Editor.checkmarkImage);this.addMenuItems(n,["-","testShowConsole"],t)})))}d.actions.put("shapes",new Action("moreShapes...",function(n){mxClient.IS_CHROMEAPP||!d.isOffline()?d.showDialog((new MoreShapesDialog(d,!0)).container,640,isLocalStorage?mxClient.IS_IOS?480:460:440,!0,!0):d.showDialog((new MoreShapesDialog(d,!1)).container,360,isLocalStorage?mxClient.IS_IOS?300:280:260,!0,!0)}));d.actions.put("createShape",new Action("shape...",function(n){q.isEnabled()&&(n=new mxCell("",new mxGeometry(0,0,
+120,120),d.defaultCustomShapeStyle),n.vertex=!0,n=new EditShapeDialog(d,n,mxResources.get("editShape")+":",630,400),d.showDialog(n.container,640,480,!0,!1),n.init())})).isEnabled=x;d.actions.put("embedHtml",new Action("html...",function(){d.getPublicUrl(d.getCurrentFile(),function(n){d.showHtmlDialog(mxResources.get("create"),"https://www.drawio.com/doc/faq/embed-html-options",n,function(t,B,F,J,K,k,v,G,N,O,Q,S){d.createHtml(t,B,F,J,K,k,v,G,N,O,Q,mxUtils.bind(this,function(V,W){var X=new EmbedDialog(d,
+"\x3c!-- "+d.editor.appName+" diagram --\x3e\n"+V+"\n"+W+"\n",null,null,function(){try{var Z=window.open();if(null!=Z&&null!=Z.document){var Y=Z.document;"CSS1Compat"===document.compatMode&&Y.writeln("<!DOCTYPE html>");Y.writeln("<html>");Y.writeln("<head><title>"+encodeURIComponent(mxResources.get("preview"))+'</title><meta charset="utf-8"></head>');Y.writeln("<body>");Y.writeln(V);var ea=mxClient.IS_IE||mxClient.IS_EDGE||null!=document.documentMode;ea&&Y.writeln(W);Y.writeln("</body>");Y.writeln("</html>");
+Y.close();if(!ea){var ca=Z.document.createElement("div");ca.marginLeft="26px";ca.marginTop="26px";mxUtils.write(ca,mxResources.get("updatingDocument"));var ka=Z.document.createElement("img");ka.setAttribute("src",window.location.protocol+"//"+window.location.hostname+"/"+IMAGE_PATH+"/spin.gif");ka.style.marginLeft="6px";ca.appendChild(ka);Z.document.body.insertBefore(ca,Z.document.body.firstChild);window.setTimeout(function(){var ba=document.createElement("script");ba.type="text/javascript";ba.src=
+/<script.*?src="(.*?)"/.exec(W)[1];Y.body.appendChild(ba);ca.parentNode.removeChild(ca)},20)}}else d.handleError({message:mxResources.get("errorUpdatingPreview")})}catch(ba){d.handleError(ba)}});d.showDialog(X.container,450,240,!0,!0);X.init()}),S)})})}));d.actions.put("liveImage",new Action("Live image...",function(){var n=d.getCurrentFile();null!=n&&d.getPublicUrl(n,function(t){null!=t?(t=new EmbedDialog(d,'<img src="'+(n.constructor!=DriveFile?t:"https://drive.google.com/uc?id="+n.getId())+'"/>'),
+d.showDialog(t.container,450,240,!0,!0),t.init()):d.handleError({message:mxResources.get("invalidPublicUrl")})})}));d.actions.put("embedImage",new Action("image...",function(){d.showEmbedImageDialog(function(n,t,B,F,J,K){d.spinner.spin(document.body,mxResources.get("loading"))&&d.createEmbedImage(n,t,B,F,J,K,function(k){d.spinner.stop();k=new EmbedDialog(d,k);d.showDialog(k.container,450,240,!0,!0);k.init()},function(k){d.spinner.stop();d.handleError(k)})},mxResources.get("image"),mxResources.get("retina"),
+d.isExportToCanvas())}));d.actions.put("embedSvg",new Action("formatSvg...",function(){d.showEmbedImageDialog(function(n,t,B,F,J,K){d.spinner.spin(document.body,mxResources.get("loading"))&&d.createEmbedSvg(n,t,B,F,J,K,function(k){d.spinner.stop();k=new EmbedDialog(d,k);d.showDialog(k.container,450,240,!0,!0);k.init()},function(k){d.spinner.stop();d.handleError(k)})},mxResources.get("formatSvg"),mxResources.get("image"),!0,"https://www.drawio.com/doc/faq/embed-svg.html")}));d.actions.put("embedIframe",
+new Action("iframe...",function(){d.getPublicUrl(d.getCurrentFile(),function(n){var t=q.getGraphBounds();d.showPublishLinkDialog(mxResources.get("iframe"),"100%",Math.ceil(Math.max(100,t.height/q.view.scale))+2,null,null,null,n,d.getCurrentFile(),function(B,F,J,K,k,v,G,N,O,Q,S,V){var W=[];O&&W.push("tags=%7B%7D");B=new EmbedDialog(d,'<iframe frameborder="0" style="width:'+G+";height:"+N+';" src="'+d.createLink(B,F,!0,K,k,v,"public"==Q?n:null,null,W,null,J,S,V)+'"'+(S?' allowtransparency="true"':"")+
+"></iframe>");d.showDialog(B.container,450,240,!0,!0);B.init()},!0,!0)})}));d.actions.put("embedNotion",new Action("notion...",function(){var n=document.createElement("div");n.style.position="absolute";n.style.bottom="30px";n.style.textAlign="center";n.style.width="100%";n.style.left="0px";var t=document.createElement("a");t.setAttribute("href","javascript:void(0);");t.setAttribute("target","_blank");t.style.cursor="pointer";mxUtils.write(t,mxResources.get("getNotionChromeExtension"));n.appendChild(t);
+mxUtils.setPrefixedStyle(t.style,"transition","all 1s ease");mxUtils.setOpacity(t,0);window.setTimeout(function(){mxUtils.setOpacity(t,100)},300);mxEvent.addListener(t,"click",function(B){d.openLink("https://chrome.google.com/webstore/detail/drawio-for-notion/plhaalebpkihaccllnkdaokdoeaokmle");mxEvent.consume(B)});d.getPublicUrl(d.getCurrentFile(),function(B){d.showPublishLinkDialog(mxResources.get("notion"),null,null,!0,"https://www.drawio.com/blog/drawio-notion",n,B,d.getCurrentFile(),function(F,
+J,K,k,v,G,N,O,Q,S,V,W){N=["border=0"];Q&&N.push("tags=%7B%7D");F=new EmbedDialog(d,d.createLink(F,J,!0,k,v,G,"public"==S?B:null,null,N,null,K,null,W));d.showDialog(F.container,450,240,!0,!0);F.init()},null,!0)})}));d.actions.put("publishLink",new Action("link...",function(){d.getPublicUrl(d.getCurrentFile(),function(n){d.showPublishLinkDialog(null,null,null,null,null,null,n,d.getCurrentFile(),function(t,B,F,J,K,k,v,G,N,O,Q,S){v=[];J&&N&&v.push("tags=%7B%7D");t=new EmbedDialog(d,d.createLink(t,B,!0,
+J,K,k,"public"==O?n:null,null,v,null,F,null,S));d.showDialog(t.container,450,240,!0,!0);t.init()},null,!0)})}));d.actions.addAction("microsoftOffice...",function(){d.openLink("https://office.draw.io")});d.actions.addAction("googleDocs...",function(){d.openLink("http://docsaddon.draw.io")});d.actions.addAction("googleSlides...",function(){d.openLink("https://slidesaddon.draw.io")});d.actions.addAction("googleSheets...",function(){d.openLink("https://sheetsaddon.draw.io")});d.actions.addAction("googleSites...",
+function(){d.getPublicUrl(d.getCurrentFile(),function(n){n=new GoogleSitesDialog(d,n);d.showDialog(n.container,420,256,!0,!0);n.init()})});if(isLocalStorage||mxClient.IS_CHROMEAPP)y=d.actions.addAction("scratchpad",function(){d.toggleScratchpad()}),y.setToggleAction(!0),y.setSelectedCallback(function(){return null!=d.scratchpad}),"0"!=urlParams.plugins&&d.actions.addAction("plugins...",function(){d.showDialog((new PluginsDialog(d)).container,380,240,!0,!1)});window.matchMedia&&null!=document.getElementById("high-contrast-stylesheet")&&
+(y=d.actions.addAction("highContrast",function(){d.setAndPersistHighContrast(!d.isHighContrast())}),y.setToggleAction(!0),y.setSelectedCallback(function(){return d.isHighContrast()}));y=d.actions.addAction("search",function(){if(null!=d.sidebar){var n=d.sidebar.isEntryVisible("search");d.sidebar.showPalette("search",!n);Editor.isSettingsEnabled()&&(mxSettings.settings.search=!n,mxSettings.save())}});y.label=mxResources.get("searchShapes");y.setToggleAction(!0);y.setSelectedCallback(function(){return null!=
+d.sidebar&&d.sidebar.isEntryVisible("search")});d.actions.get("clearDefaultStyle").funct=function(n){q.isEnabled()&&(d.clearDefaultStyle(),Editor.sketchMode&&d.setSketchMode(!1))};"1"==urlParams.embed&&(d.actions.get("saveAs").setEnabled(!1),d.actions.get("save").funct=function(n){q.isEditing()&&q.stopEditing();var t="0"!=urlParams.pages||null!=d.pages&&1<d.pages.length?d.getFileData(!0):mxUtils.getXml(d.editor.getGraphXml());if("json"==urlParams.proto){var B=d.createLoadMessage("save");B.xml=t;!0!==
+n||"1"!=urlParams.saveAndExit&&"1"!=urlParams.publishClose||(B.exit=!0);t=JSON.stringify(B)}(window.opener||window.parent).postMessage(t,"*");"0"!=urlParams.modified&&"1"!=urlParams.keepmodified&&(d.editor.modified=!1,d.clearStatus());n=d.getCurrentFile();null==n||n.constructor==EmbedFile||n.constructor==LocalFile&&null==n.mode||d.saveFile()},d.actions.addAction("saveAndExit",function(){"1"==urlParams.toSvg?d.sendEmbeddedSvgExport():d.actions.get("save").funct(!0)},null,null,Editor.ctrlKey+"+S").label=
+"1"==urlParams.publishClose?mxResources.get("publish"):mxResources.get("saveAndExit"),d.actions.addAction("exit",function(){if("1"==urlParams.embedInline)d.sendEmbeddedSvgExport();else{var n=function(){d.editor.modified=!1;var t="json"==urlParams.proto?JSON.stringify({event:"exit",modified:d.editor.modified}):"";(window.opener||window.parent).postMessage(t,"*")};d.editor.modified?d.confirm(mxResources.get("allChangesLost"),null,n,mxResources.get("cancel"),mxResources.get("discardChanges")):n()}},
+null,null,"1"==urlParams.embedInline?"Escape":null));this.put("exportAs",new Menu(mxUtils.bind(this,function(n,t){d.isExportToCanvas()?(this.addMenuItems(n,["exportPng"],t),d.jpgSupported&&this.addMenuItems(n,["exportJpg"],t),d.webpSupported&&this.addMenuItems(n,["exportWebp"],t)):d.isOffline()||mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(n,["exportPng","exportJpg"],t);this.addMenuItems(n,["exportSvg","-"],t);d.isOffline()||d.printPdfExport?this.addMenuItems(n,["exportPdf"],t):d.isOffline()||
+mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(n,["exportPdf"],t);!d.vsdxExportEnabled()||mxClient.IS_IE||"undefined"===typeof VsdxExport&&d.isOffline()||this.addMenuItems(n,["exportVsdx"],t);this.addMenuItems(n,["-","exportHtml","exportXml","exportUrl"],t);d.isOffline()||(n.addSeparator(t),this.addMenuItem(n,"export",t).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...");mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"min"!=Editor.currentTheme||this.addMenuItems(n,["publishLink"],
+t);d.mode==App.MODE_ATLAS||"1"==urlParams.extAuth||"simple"!=Editor.currentTheme&&"sketch"!=Editor.currentTheme&&"min"!=Editor.currentTheme||(n.addSeparator(t),d.menus.addSubmenu("embed",n,t))})));this.put("importFrom",new Menu(mxUtils.bind(this,function(n,t){function B(K){K.pickFile(function(k){d.spinner.spin(document.body,mxResources.get("loading"))&&K.getFile(k,function(v){var G="data:image/"==v.getData().substring(0,11)?J(v.getTitle()):"text/xml";/\.svg$/i.test(v.getTitle())&&!d.editor.isDataSvg(v.getData())&&
+(v.setData(Editor.createSvgDataUri(v.getData())),G="image/svg+xml");F(v.getData(),G,v.getTitle())},function(v){d.handleError(v,null!=v?mxResources.get("errorLoadingFile"):null)},K==d.drive)},!0)}var F=mxUtils.bind(this,function(K,k,v){var G=q.view,N=q.getGraphBounds(),O=q.snap(Math.ceil(Math.max(0,N.x/G.scale-G.translate.x)+4*q.gridSize)),Q=q.snap(Math.ceil(Math.max(0,(N.y+N.height)/G.scale-G.translate.y)+4*q.gridSize));"data:image/"==K.substring(0,11)?d.loadImage(K,mxUtils.bind(this,function(S){var V=
+!0,W=mxUtils.bind(this,function(){d.resizeImage(S,K,mxUtils.bind(this,function(X,Z,Y){X=V?Math.min(1,Math.min(d.maxImageSize/Z,d.maxImageSize/Y)):1;d.importFile(K,k,O,Q,Math.round(Z*X),Math.round(Y*X),v,function(ea){d.spinner.stop();q.setSelectionCells(ea);q.scrollCellToVisible(q.getSelectionCell())})}),V)});K.length>d.resampleThreshold?d.confirmImageResize(function(X){V=X;W()}):W()}),mxUtils.bind(this,function(){d.handleError({message:mxResources.get("cannotOpenFile")})})):d.importFile(K,k,O,Q,0,
+0,v,function(S){d.spinner.stop();q.setSelectionCells(S);q.scrollCellToVisible(q.getSelectionCell())})}),J=mxUtils.bind(this,function(K){var k="text/xml";/\.png$/i.test(K)?k="image/png":/\.jpe?g$/i.test(K)?k="image/jpg":/\.gif$/i.test(K)?k="image/gif":/\.pdf$/i.test(K)&&(k="application/pdf");return k});"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=d.drive?n.addItem(mxResources.get("googleDrive")+"...",null,function(){B(d.drive)},t):d.isModeEnabled(App.MODE_GOOGLE)&&n.addItem(mxResources.get("googleDrive")+
+" ("+mxResources.get("loading")+"...)",null,function(){},t,null,!1));d.isModeReady(App.MODE_ONEDRIVE)?n.addItem(mxResources.get("oneDrive")+"...",null,function(){B(d.oneDrive)},t):d.isModeEnabled(App.MODE_ONEDRIVE)&&n.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},t,null,!1);d.isModeReady(App.MODE_DROPBOX)?n.addItem(mxResources.get("dropbox")+"...",null,function(){B(d.dropbox)},t):d.isModeEnabled(App.MODE_DROPBOX)&&n.addItem(mxResources.get("dropbox")+
+" ("+mxResources.get("loading")+"...)",null,function(){},t,null,!1);n.addSeparator(t);d.isModeReady(App.MODE_GITHUB)&&n.addItem(mxResources.get("github")+"...",null,function(){B(d.gitHub)},t);d.isModeReady(App.MODE_GITLAB)&&n.addItem(mxResources.get("gitlab")+"...",null,function(){B(d.gitLab)},t);d.isModeReady(App.MODE_TRELLO)?n.addItem(mxResources.get("trello")+"...",null,function(){B(d.trello)},t):d.isModeEnabled(App.MODE_TRELLO)&&n.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+
+"...)",null,function(){},t,null,!1);n.addSeparator(t);isLocalStorage&&"0"!=urlParams.browser&&n.addItem(mxResources.get("browser")+"...",null,function(){d.importLocalFile(!1)},t);"1"!=urlParams.noDevice&&n.addItem(mxResources.get("device")+"...",null,function(){d.importLocalFile(!0)},t);d.isOffline()||(n.addSeparator(t),n.addItem(mxResources.get("url")+"...",null,function(){var K=new FilenameDialog(d,"",mxResources.get("import"),function(k){if(null!=k&&0<k.length&&d.spinner.spin(document.body,mxResources.get("loading"))){var v=
+/(\.png)($|\?)/i.test(k)?"image/png":"text/xml";d.editor.loadUrl(PROXY_URL+"?url="+encodeURIComponent(k),function(G){F(G,v,k)},function(){d.spinner.stop();d.handleError(null,mxResources.get("errorLoadingFile"))},"image/png"==v)}},mxResources.get("url"));d.showDialog(K.container,300,80,!0,!0);K.init()},t))}))).isEnabled=x;this.put("dynamicAppearance",new Menu(mxUtils.bind(this,function(n,t){var B=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;"simple"==Editor.currentTheme&&
+(750>B&&this.addSubmenu("viewZoom",n,t,mxResources.get("zoom")),460>B&&d.isPageMenuVisible()&&this.addSubmenu("pages",n,t),320>B&&this.addSubmenu("insert",n,t),360>B&&"1"!=urlParams.embed&&"draw.io"==d.getServiceName()&&this.addSubmenu("share",n,t))})));this.put("appearance",new Menu(mxUtils.bind(this,function(n,t){if(d.isAutoDarkModeSupported()){var B=d.menus.addMenuItem(n,"autoMode",t);null!=B&&B.setAttribute("title",mxResources.get("automatic")+" ("+mxResources.get(Editor.isDarkMode()?"dark":"light")+
+")")}this.addMenuItems(n,["lightMode","darkMode","-"],t);B=d.menus.addMenuItem(n,"highContrast",t);(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&d.menus.addLinkToItem(B,"https://github.com/jgraph/drawio/issues/4296")})));d.actions.addAction("addToScratchpad",function(n){q.isSelectionEmpty()||null==d.addSelectionToScratchpad||d.addSelectionToScratchpad(n)});d.actions.addAction("accounts...",function(){d.toggleUserPanel();d.userPanel.style.right="10px";d.userPanel.style.top="10px"});
+this.put("theme",new Menu(mxUtils.bind(this,function(n,t){var B="1"==urlParams.sketch?"sketch":mxSettings.getUi(),F=n.addItem(mxResources.get("automatic"),null,function(){d.setCurrentTheme("")},t),J=n.addItem(mxResources.get("classic"),null,function(){d.setCurrentTheme("kennedy")},t),K=!1;if("kennedy"==B||"dark"==B)n.addCheckmark(J,Editor.checkmarkImage),K=!0;for(var k=0;k<Editor.themes.length;k++)mxUtils.bind(this,function(v){J=n.addItem(mxResources.get("min"==v?"minimal":v),null,function(){d.setCurrentTheme(v)},
+t);B==v&&(n.addCheckmark(J,Editor.checkmarkImage),K=!0);"simple"==v&&n.addSeparator(t)})(Editor.themes[k]);K||n.addCheckmark(F,Editor.checkmarkImage)})));y=this.editorUi.actions.addAction("rename...",mxUtils.bind(this,function(){var n=this.editorUi.getCurrentFile();if(null!=n)if(n.constructor==LocalFile&&null!=n.fileHandle)d.showSaveFilePicker(mxUtils.bind(d,function(B,F){n.invalidFileHandle=null;n.fileHandle=B;n.title=F.name;n.desc=F;d.save(F.name)}),null,d.createFileSystemOptions(n.getTitle()));
+else{var t=null!=n.getTitle()?n.getTitle():this.editorUi.defaultFilename;t=new FilenameDialog(this.editorUi,t,mxResources.get("rename"),mxUtils.bind(this,function(B){null!=B&&0<B.length&&null!=n&&B!=n.getTitle()&&this.editorUi.spinner.spin(document.body,mxResources.get("renaming"))&&n.rename(B,mxUtils.bind(this,function(F){this.editorUi.spinner.stop()}),mxUtils.bind(this,function(F){this.editorUi.handleError(F,null!=F?mxResources.get("errorRenamingFile"):null)}))}),n.constructor==DriveFile||n.constructor==
+StorageFile?mxResources.get("diagramName"):null,function(B){if(null!=B&&0<B.length)return!0;d.showError(mxResources.get("error"),mxResources.get("invalidName"),mxResources.get("ok"));return!1},null,FilenameDialog.filenameHelpLink,null,null,d.editor.fileExtensions);this.editorUi.showDialog(t.container,340,100,!0,!0);t.init()}}));y.isEnabled=function(){return this.enabled&&x.apply(this,arguments)};y.visible="1"!=urlParams.embed;d.actions.addAction("makeCopy...",mxUtils.bind(this,function(){var n=d.getCurrentFile();
+if(null!=n){var t=d.getCopyFilename(n);n.constructor==DriveFile?(t=new CreateDialog(d,t,mxUtils.bind(this,function(B,F){"_blank"==F?d.editor.editAsNew(d.getFileData(),B):("download"==F&&(F=App.MODE_GOOGLE),null!=B&&0<B.length&&(F==App.MODE_GOOGLE?d.spinner.spin(document.body,mxResources.get("saving"))&&n.saveAs(B,mxUtils.bind(this,function(J){n.desc=J;n.save(!1,mxUtils.bind(this,function(){d.spinner.stop();n.setModified(!1);d.updateStatus(mxUtils.bind(this,function(){n.addAllSavedStatus()}))}),mxUtils.bind(this,
+function(K){d.handleError(K)}))}),mxUtils.bind(this,function(J){d.handleError(J)})):d.createFile(B,d.getFileData(!0),null,F)))}),mxUtils.bind(this,function(){d.hideDialog()}),mxResources.get("makeCopy"),mxResources.get("create"),null,null,!0,null,!0,null,null,null,null,d.editor.fileExtensions),d.showDialog(t.container,420,380,!0,!0),t.init()):d.editor.editAsNew(this.editorUi.getFileData(!0),t)}}));y=new Action("openFolder",function(n,t){n=d.getCurrentFile();null!=n&&d.openLink(n.getFolderUrl())});
+y.getTitle=function(){return mxResources.get("openIt",[mxResources.get("folder")])+"..."};d.actions.put("openFolder",y);d.actions.addAction("openFile...",mxUtils.bind(this,function(){var n=d.getCurrentFile();null!=n&&d.openLink(n.getFileUrl())}));d.actions.addAction("moveToFolder...",mxUtils.bind(this,function(){var n=d.getCurrentFile();if(n.getMode()==App.MODE_GOOGLE||n.getMode()==App.MODE_ONEDRIVE){var t=!1;if(n.getMode()==App.MODE_GOOGLE&&null!=n.desc.parents)for(var B=0;B<n.desc.parents.length;B++)if(n.desc.parents[B].isRoot){t=
+!0;break}d.pickFolder(n.getMode(),mxUtils.bind(this,function(F){d.spinner.spin(document.body,mxResources.get("moving"))&&n.move(F,mxUtils.bind(this,function(J){d.spinner.stop()}),mxUtils.bind(this,function(J){d.handleError(J)}))}),null,!0,t)}}));this.put("publish",new Menu(mxUtils.bind(this,function(n,t){this.addMenuItems(n,["publishLink"],t)})));d.actions.put("useOffline",new Action("useOffline...",function(){d.openLink("https://app.draw.io/")}));this.editorUi.actions.addAction("share...",mxUtils.bind(this,
+function(){try{var n=d.getCurrentFile();null!=n&&n.share()}catch(t){d.handleError(t)}})).isEnabled=x;this.put("embed",new Menu(mxUtils.bind(this,function(n,t){var B=d.getCurrentFile();null==B||B.getMode()!=App.MODE_GOOGLE&&B.getMode()!=App.MODE_GITHUB||!/(\.png)$/i.test(B.getTitle())||this.addMenuItems(n,["liveImage","-"],t);this.addMenuItems(n,["embedImage","embedSvg","-","embedHtml"],t);navigator.standalone||d.isOffline()||this.addMenuItems(n,["embedIframe"],t);"1"==urlParams.embed||d.isOffline()||
+this.addMenuItems(n,"- googleDocs googleSlides googleSheets - microsoftOffice - embedNotion".split(" "),t)})));d.addInsertItem=function(n,t,B,F){("plantUml"!=F||EditorUi.enablePlantUml&&!d.isOffline())&&n.addItem(B,null,mxUtils.bind(this,function(){if("fromText"==F||"formatSql"==F||"plantUml"==F||"mermaid"==F){var J=new ParseDialog(d,B,F);d.showDialog(J.container,620,420,!0,!1);d.dialog.container.style.overflow="auto"}else J=new CreateGraphDialog(d,B,F),d.showDialog(J.container,620,420,!0,!1,function(K,
+k){if(k)return d.confirm(mxResources.get("areYouSure"),function(){d.hideDialog()}),!1;null!=J.graph&&(null!=J.graph.container.parentNode&&J.graph.container.parentNode.removeChild(J.graph.container),J.graph.destroy(),J.graph=null)});J.init()}),t,null,x())};var A=function(n){q.getModel().beginUpdate();try{n=q.addCell(n),q.fireEvent(new mxEventObject("cellsInserted","cells",[n])),q.model.isVertex(n)&&q.isAutoSizeCell(n)&&q.updateCellSize(n)}finally{q.getModel().endUpdate()}q.scrollCellToVisible(n);q.setSelectionCell(n);
+q.container.focus();q.editAfterInsert&&q.startEditing(n);window.setTimeout(function(){null!=d.hoverIcons&&d.hoverIcons.update(q.view.getState(n))},0);return n},P=function(n,t,B,F,J){n=new mxCell(n,new mxGeometry(0,0,t,B),F);n.vertex=!0;null==J&&(J=q.getCenterInsertPoint(q.getBoundingBoxFromGeometry([n],!0)));n.geometry.x=J.x;n.geometry.y=J.y;return A(n)};d.actions.put("insertText",new Action("text",function(n){q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())&&q.startEditingAtCell(P("Text",60,
+30,q.appendFontSize("text;strokeColor=none;align=center;fillColor=none;html=1;verticalAlign=middle;whiteSpace=wrap;rounded=0;",q.vertexFontSize),null==n||mxEvent.isControlDown(n)||mxEvent.isMetaDown(n)||!q.isMouseInsertPoint()?null:q.getInsertPoint()))},null,null,"A")).isEnabled=x;d.actions.put("insertRectangle",new Action("rectangle",function(n){q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())&&P("",120,60,"whiteSpace=wrap;html=1;",null==n||mxEvent.isControlDown(n)||mxEvent.isMetaDown(n)||!q.isMouseInsertPoint()?
+null:q.getInsertPoint())},null,null,"D")).isEnabled=x;d.actions.put("insertNote",new Action("note",function(n){q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())&&P("",140,160,"shape=note;whiteSpace=wrap;html=1;backgroundOutline=1;fontColor=#000000;darkOpacity=0.05;fillColor=#FFF9B2;strokeColor=none;fillStyle=solid;direction=west;gradientDirection=north;gradientColor=#FFF2A1;shadow=1;size=20;pointerEvents=1;",null==n||mxEvent.isControlDown(n)||mxEvent.isMetaDown(n)||!q.isMouseInsertPoint()?null:
+q.getInsertPoint())},null,null,"S")).isEnabled=x;d.actions.put("insertEllipse",new Action("ellipse",function(n){q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())&&P("",80,80,"ellipse;whiteSpace=wrap;html=1;",null==n||mxEvent.isControlDown(n)||mxEvent.isMetaDown(n)||!q.isMouseInsertPoint()?null:q.getInsertPoint())},null,null,"F")).isEnabled=x;d.actions.put("insertRhombus",new Action("rhombus",function(n){q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())&&P("",80,80,"rhombus;whiteSpace=wrap;html=1;",
+null==n||mxEvent.isControlDown(n)||mxEvent.isMetaDown(n)||!q.isMouseInsertPoint()?null:q.getInsertPoint())},null,null,"R")).isEnabled=x;d.actions.put("insertEdge",new Action("line",function(n){if(q.isEnabled()&&!q.isCellLocked(q.getDefaultParent())){var t=q.defaultEdgeLength;n=null==n||mxEvent.isControlDown(n)||mxEvent.isMetaDown(n)||!q.isMouseInsertPoint()?null:q.getInsertPoint();null==n&&(n=q.getCenterInsertPoint(q.getBoundingBoxFromGeometry([B],!0)));var B=new mxCell("",new mxGeometry(0,0,t,0),
+"edgeStyle=none;orthogonalLoop=1;jettySize=auto;html=1;");B.geometry.setTerminalPoint(n,!0);B.geometry.setTerminalPoint(new mxPoint(n.x+B.geometry.width,n.y),!1);B.geometry.points=[];B.geometry.relative=!0;B.edge=!0;A(B)}},null,null,"C")).isEnabled=x;y=d.actions.put("toggleShapes",new Action("shapes",function(){null!=d.sidebarWindow?d.sidebarWindow.window.setVisible(!d.sidebarWindow.window.isVisible()):d.toggleShapesPanel(!d.isShapesPanelVisible())},null,null,Editor.ctrlKey+"+Shift+K"));y.setToggleAction(!0);
+y.setSelectedCallback(mxUtils.bind(this,function(){return null!=d.sidebarWindow&&d.sidebarWindow.window.isVisible()||null==d.sidebarWindow&&0<d.hsplitPosition}));d.addInsertMenuItems=mxUtils.bind(this,function(n,t,B){for(var F=0;F<B.length;F++)"-"==B[F]?n.addSeparator(t):d.addInsertItem(n,t,mxResources.get(B[F])+"...",B[F])});this.put("insert",new Menu(mxUtils.bind(this,function(n,t){"sketch"==Editor.currentTheme?(d.menus.addMenuItems(n,["toggleShapes"],t),d.menus.addSubmenu("table",n,t),n.addSeparator(t),
+d.menus.addMenuItems(n,["insertImage","insertLink","-"],t),d.insertTemplateEnabled&&!d.isOffline()&&d.menus.addMenuItems(n,["insertTemplate"],t),d.menus.addMenuItems(n,["generate"],t),window.isMermaidEnabled&&d.addInsertMenuItems(n,t,["mermaid"]),n.addSeparator(t),d.menus.addSubmenu("insertAdvanced",n,t,mxResources.get("advanced")),d.menus.addSubmenu("layout",n,t)):(this.addMenuItems(n,"insertRectangle insertEllipse insertRhombus - insertEdge insertNote - insertText insertLink - createShape insertFreehand - insertImage".split(" "),
+t),window.isMermaidEnabled&&d.addInsertMenuItems(n,t,["mermaid"]),d.insertTemplateEnabled&&!d.isOffline()&&this.addMenuItems(n,["-","insertTemplate"],t),d.menus.addMenuItems(n,["generate","-"],t),"min"==uiTheme||"simple"==Editor.currentTheme?(this.addSubmenu("layout",n,t),this.addSubmenu("insertLayout",n,t,mxResources.get("insert")),n.addSeparator(t),this.addSubmenu("table",n,t)):this.addSubmenu("insertLayout",n,t,mxResources.get("layout")),this.addSubmenu("insertAdvanced",n,t,mxResources.get("advanced")))})));
+this.put("table",new Menu(mxUtils.bind(this,function(n,t){d.menus.addInsertTableCellItem(n,t)})));this.put("insertLayout",new Menu(mxUtils.bind(this,function(n,t){d.addInsertMenuItems(n,t,"horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "))})));this.put("insertAdvanced",new Menu(mxUtils.bind(this,function(n,t){d.addInsertMenuItems(n,t,["fromText","plantUml","formatSql"]);n.addItem(mxResources.get("csv")+"...",null,function(){q.popupMenuHandler.hideMenu();
+d.showImportCsvDialog()},t,null,x());"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme||this.addMenuItems(n,["-","createShape","editDiagram"],t)})));this.put("openRecent",new Menu(function(n,t){var B=d.getRecent();if(null!=B){for(var F=0;F<B.length;F++)(function(J){var K=J.mode;K==App.MODE_GOOGLE?K="googleDrive":K==App.MODE_ONEDRIVE&&(K="oneDrive");n.addItem(J.title+" ("+mxResources.get(K)+")",null,function(){d.loadFile(J.id)},t)})(B[F]);n.addSeparator(t)}n.addItem(mxResources.get("reset"),
+null,function(){d.resetRecent()},t)}));this.put("openFrom",new Menu(function(n,t){null!=d.drive?n.addItem(mxResources.get("googleDrive")+"...",null,function(){d.pickFile(App.MODE_GOOGLE)},t):d.isModeEnabled(App.MODE_GOOGLE)&&n.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},t,null,!1);d.isModeReady(App.MODE_ONEDRIVE)?n.addItem(mxResources.get("oneDrive")+"...",null,function(){d.pickFile(App.MODE_ONEDRIVE)},t):d.isModeEnabled(App.MODE_ONEDRIVE)&&n.addItem(mxResources.get("oneDrive")+
+" ("+mxResources.get("loading")+"...)",null,function(){},t,null,!1);d.isModeReady(App.MODE_DROPBOX)?n.addItem(mxResources.get("dropbox")+"...",null,function(){d.pickFile(App.MODE_DROPBOX)},t):d.isModeEnabled(App.MODE_DROPBOX)&&n.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},t,null,!1);n.addSeparator(t);d.isModeReady(App.MODE_GITHUB)&&n.addItem(mxResources.get("github")+"...",null,function(){d.pickFile(App.MODE_GITHUB)},t);d.isModeReady(App.MODE_GITLAB)&&
+n.addItem(mxResources.get("gitlab")+"...",null,function(){d.pickFile(App.MODE_GITLAB)},t);d.isModeReady(App.MODE_TRELLO)?n.addItem(mxResources.get("trello")+"...",null,function(){d.pickFile(App.MODE_TRELLO)},t):d.isModeEnabled(App.MODE_TRELLO)&&n.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},t,null,!1);n.addSeparator(t);isLocalStorage&&"0"!=urlParams.browser&&n.addItem(mxResources.get("browser")+"...",null,function(){d.pickFile(App.MODE_BROWSER)},t);"1"!=
+urlParams.noDevice&&n.addItem(mxResources.get("device")+"...",null,function(){d.pickFile(App.MODE_DEVICE)},t);d.isOffline()||(n.addSeparator(t),n.addItem(mxResources.get("url")+"...",null,function(){var B=new FilenameDialog(d,"",mxResources.get("open"),function(F){null!=F&&0<F.length&&(null==d.getCurrentFile()?window.location.hash="#U"+encodeURIComponent(F):window.geOpenWindow((mxClient.IS_CHROMEAPP?"https://www.draw.io/":"https://"+location.host+"/")+window.location.search+"#U"+encodeURIComponent(F)))},
+mxResources.get("url"));d.showDialog(B.container,300,80,!0,!0);B.init()},t))}));Editor.enableCustomLibraries&&(this.put("newLibrary",new Menu(function(n,t){"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=d.drive?n.addItem(mxResources.get("googleDrive")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_GOOGLE)},t):d.isModeEnabled(App.MODE_GOOGLE)&&n.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},t,null,!1));
+d.isModeReady(App.MODE_ONEDRIVE)?n.addItem(mxResources.get("oneDrive")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_ONEDRIVE)},t):d.isModeEnabled(App.MODE_ONEDRIVE)&&n.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},t,null,!1);d.isModeReady(App.MODE_DROPBOX)?n.addItem(mxResources.get("dropbox")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_DROPBOX)},t):d.isModeEnabled(App.MODE_DROPBOX)&&n.addItem(mxResources.get("dropbox")+
+" ("+mxResources.get("loading")+"...)",null,function(){},t,null,!1);n.addSeparator(t);d.isModeReady(App.MODE_GITHUB)&&n.addItem(mxResources.get("github")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_GITHUB)},t);d.isModeReady(App.MODE_GITLAB)&&n.addItem(mxResources.get("gitlab")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_GITLAB)},t);d.isModeReady(App.MODE_TRELLO)?n.addItem(mxResources.get("trello")+"...",null,function(){d.showLibraryDialog(null,
+null,null,null,App.MODE_TRELLO)},t):d.isModeEnabled(App.MODE_TRELLO)&&n.addItem(mxResources.get("trello")+" ("+mxResources.get("loading")+"...)",null,function(){},t,null,!1);n.addSeparator(t);isLocalStorage&&"0"!=urlParams.browser&&n.addItem(mxResources.get("browser")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_BROWSER)},t);"1"!=urlParams.noDevice&&n.addItem(mxResources.get("device")+"...",null,function(){d.showLibraryDialog(null,null,null,null,App.MODE_DEVICE)},t);"1"==
+urlParams.confLib&&n.addItem(mxResources.get("confluenceCloud")+"...",null,function(){d.showLibraryDialog(null,null,null,null,"CONF_LIB")},t)})),this.put("openLibraryFrom",new Menu(function(n,t){"undefined"!=typeof google&&"undefined"!=typeof google.picker&&(null!=d.drive?n.addItem(mxResources.get("googleDrive")+"...",null,function(){d.pickLibrary(App.MODE_GOOGLE)},t):d.isModeEnabled(App.MODE_GOOGLE)&&n.addItem(mxResources.get("googleDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},
+t,null,!1));d.isModeReady(App.MODE_ONEDRIVE)?n.addItem(mxResources.get("oneDrive")+"...",null,function(){d.pickLibrary(App.MODE_ONEDRIVE)},t):d.isModeEnabled(App.MODE_ONEDRIVE)&&n.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},t,null,!1);d.isModeReady(App.MODE_DROPBOX)?n.addItem(mxResources.get("dropbox")+"...",null,function(){d.pickLibrary(App.MODE_DROPBOX)},t):d.isModeEnabled(App.MODE_DROPBOX)&&n.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+
+"...)",null,function(){},t,null,!1);n.addSeparator(t);d.isModeReady(App.MODE_GITHUB)&&n.addItem(mxResources.get("github")+"...",null,function(){d.pickLibrary(App.MODE_GITHUB)},t);d.isModeReady(App.MODE_GITLAB)&&n.addItem(mxResources.get("gitlab")+"...",null,function(){d.pickLibrary(App.MODE_GITLAB)},t);d.isModeReady(App.MODE_TRELLO)?n.addItem(mxResources.get("trello")+"...",null,function(){d.pickLibrary(App.MODE_TRELLO)},t):d.isModeEnabled(App.MODE_TRELLO)&&n.addItem(mxResources.get("trello")+" ("+
+mxResources.get("loading")+"...)",null,function(){},t,null,!1);n.addSeparator(t);isLocalStorage&&"0"!=urlParams.browser&&n.addItem(mxResources.get("browser")+"...",null,function(){d.pickLibrary(App.MODE_BROWSER)},t);"1"!=urlParams.noDevice&&n.addItem(mxResources.get("device")+"...",null,function(){d.pickLibrary(App.MODE_DEVICE)},t);d.isOffline()||(n.addSeparator(t),n.addItem(mxResources.get("url")+"...",null,function(){var B=new FilenameDialog(d,"",mxResources.get("open"),function(F){if(null!=F&&
+0<F.length&&d.spinner.spin(document.body,mxResources.get("loading"))){var J=F;d.editor.isCorsEnabledForUrl(F)||(J=PROXY_URL+"?url="+encodeURIComponent(F));mxUtils.get(J,function(K){if(200<=K.getStatus()&&299>=K.getStatus()){d.spinner.stop();try{d.loadLibrary(new UrlLibrary(d,K.getText(),F)),d.showSidebar()}catch(k){d.handleError(k,mxResources.get("errorLoadingFile"))}}else d.spinner.stop(),d.handleError(null,mxResources.get("errorLoadingFile"))},function(){d.spinner.stop();d.handleError(null,mxResources.get("errorLoadingFile"))})}},
+mxResources.get("url"));d.showDialog(B.container,300,80,!0,!0);B.init()},t));"1"==urlParams.confLib&&(n.addSeparator(t),n.addItem(mxResources.get("confluenceCloud")+"...",null,function(){d.showRemotelyStoredLibrary(mxResources.get("libraries"))},t))})));this.put("edit",new Menu(mxUtils.bind(this,function(n,t){this.addMenuItems(n,"undo redo - cut copy copyAsImage paste delete - duplicate - findReplace - editData editTooltip - editStyle editGeometry - edit - editLink openLink - selectVertices selectEdges selectAll selectNone - lockUnlock".split(" "))})));
+y=d.actions.addAction("comments",mxUtils.bind(this,function(){if(null==this.commentsWindow)this.commentsWindow=new CommentsWindow(d,document.body.offsetWidth-380,120,300,350),this.commentsWindow.window.addListener("show",function(){d.fireEvent(new mxEventObject("comments"))}),this.commentsWindow.window.addListener("hide",function(){d.fireEvent(new mxEventObject("comments"))}),this.commentsWindow.window.setVisible(!0),d.fireEvent(new mxEventObject("comments"));else{var n=!this.commentsWindow.window.isVisible();
+this.commentsWindow.window.setVisible(n);this.commentsWindow.refreshCommentsTime();n&&this.commentsWindow.hasError&&this.commentsWindow.refreshComments()}}));y.setToggleAction(!0);y.setSelectedCallback(mxUtils.bind(this,function(){return null!=this.commentsWindow&&this.commentsWindow.window.isVisible()}));d.editor.addListener("fileLoaded",mxUtils.bind(this,function(){null!=this.commentsWindow&&(this.commentsWindow.destroy(),this.commentsWindow=null)}));this.get("viewPanels").funct=function(n,t){var B=
+d.getCurrentFile();d.menus.addMenuItems(n,"toggleShapes format ruler - findReplace layers tags chatWindowTitle outline -".split(" "),t);d.commentsSupported()&&d.menus.addMenuItems(n,["-","comments"],t);null!=B&&B.isRealtimeEnabled()&&B.isRealtimeSupported()&&d.menus.addMenuItems(n,["-","showRemoteCursors","shareCursor"],t);d.menus.addMenuItems(n,["-","fullscreen"],t)};this.put("view",new Menu(mxUtils.bind(this,function(n,t){if("simple"==Editor.currentTheme){var B=d.getCurrentFile();d.menus.addMenuItems(n,
+["toggleShapes","format"],t);d.isPageMenuVisible()&&d.menus.addMenuItems(n,["pageTabs"],t);d.menus.addMenuItems(n,["ruler","-","search"],t);if(isLocalStorage||mxClient.IS_CHROMEAPP){var F=d.menus.addMenuItem(n,"scratchpad",t);(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&d.menus.addLinkToItem(F,"https://www.drawio.com/doc/faq/scratchpad")}d.menus.addMenuItems(n,"- findReplace layers tags chatWindowTitle outline -".split(" "),t);d.commentsSupported()&&d.menus.addMenuItems(n,["comments"],
+t);null!=B&&B.isRealtimeEnabled()&&B.isRealtimeSupported()&&this.addMenuItems(n,["showRemoteCursors"],t);this.addMenuItems(n,["-","fullscreen"],t)}else{this.addMenuItems(n,["format","outline","layers","tags","chatWindowTitle"].concat(d.commentsSupported()?["comments","-"]:["-"]));this.addMenuItems(n,["-","search"],t);if(isLocalStorage||mxClient.IS_CHROMEAPP)F=this.addMenuItem(n,"scratchpad",t),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(F,"https://www.drawio.com/doc/faq/scratchpad");
+this.addMenuItems(n,["toggleShapes","-","pageView","pageScale"]);this.addSubmenu("units",n,t);n.addSeparator(t);d.isPageMenuVisible()&&d.menus.addMenuItems(n,["pageTabs"],t);this.addMenuItems(n,"ruler - tooltips animations - grid guides - connectionArrows connectionPoints - resetView zoomIn zoomOut".split(" "),t);"1"!=urlParams.sketch&&this.addMenuItems(n,["-","fullscreen"],t)}})));this.put("editCell",new Menu(mxUtils.bind(this,function(n,t){this.addMenuItems(n,"editLink editShape editImage crop - editData copyData pasteData - editConnectionPoints editGeometry - editTooltip editStyle - edit".split(" "),
+t)})));this.put("currentPage",new Menu(mxUtils.bind(this,function(n,t){var B=d.currentPage;null!=B&&(n.addItem(mxResources.get("rename")+"...",null,mxUtils.bind(this,function(){d.renamePage(B,B.getName())}),t),n.addItem(mxResources.get("delete"),null,mxUtils.bind(this,function(){d.removePage(B)}),t),1<d.pages.length&&(d.menus.addSubmenu("movePage",n,t,mxResources.get("move")),n.addSeparator(t)),n.addSeparator(t),n.addItem(mxResources.get("duplicate"),null,mxUtils.bind(this,function(){d.duplicatePage(B,
+mxResources.get("copyOf",[B.getName()]))}),t),1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=d.getServiceName()||n.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){d.editor.editAsNew(d.getFileData(!0,null,null,null,!0,!0))}),t)))})));this.put("pages",new Menu(mxUtils.bind(this,function(n,t){var B=d.currentPage;d.editor.graph.isLightboxView()||(n.addItem(mxResources.get("insertPage"),null,mxUtils.bind(this,function(){try{d.insertPage()}catch(J){d.handleError(J)}}),
+t,null,d.editor.graph.isEnabled()),n.addSeparator(t));if(null!=d.pages)for(var F=0;F<d.pages.length;F++)mxUtils.bind(this,function(J){var K=null;K=d.pages[J]==B&&!d.editor.graph.isLightboxView()&&d.editor.graph.isEnabled()?d.menus.addSubmenu("currentPage",n,t,d.getShortPageName(B)):n.addItem(d.getShortPageName(d.pages[J]),null,mxUtils.bind(this,function(){d.selectPage(d.pages[J])}),t);var k=d.pages[J].getId();K.setAttribute("title",d.pages[J].getName()+" ("+(J+1)+"/"+d.pages.length+")"+(null!=k?" ["+
+k+"]":""));d.pages[J]==B&&n.addCheckmark(K,Editor.checkmarkImage)})(F)})));if(EditorUi.isElectronApp){var R="1"==urlParams.enableSpellCheck;y=d.actions.addAction("spellCheck",function(){d.toggleSpellCheck();R=!R;d.alert(mxResources.get("restartForChangeRequired"))});y.setToggleAction(!0);y.setSelectedCallback(function(){return R});var T="1"==urlParams.enableStoreBkp;y=d.actions.addAction("autoBkp",function(){d.toggleStoreBkp();T=!T});y.setToggleAction(!0);y.setSelectedCallback(function(){return T});
+var L="1"==urlParams.isGoogleFontsEnabled;y=d.actions.addAction("googleFonts",function(){d.toggleGoogleFonts();L=!L;d.alert(mxResources.get("restartForChangeRequired"))});y.setToggleAction(!0);y.setSelectedCallback(function(){return L});d.actions.addAction("openDevTools",function(){d.openDevTools()});d.actions.addAction("drafts...",function(){var n=new FilenameDialog(d,EditorUi.draftSaveDelay/1E3+"",mxResources.get("apply"),mxUtils.bind(this,function(t){t=parseInt(t);0<=t&&(EditorUi.draftSaveDelay=
+1E3*t,EditorUi.enableDrafts=0<t,mxSettings.setDraftSaveDelay(t),mxSettings.save())}),mxResources.get("draftSaveInt"));d.showDialog(n.container,320,80,!0,!0);n.init()})}var U=this.get("language");this.put("extras",new Menu(mxUtils.bind(this,function(n,t){if("simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme){null==U||"1"==urlParams.embed&&null!=urlParams.lang||d.menus.addSubmenu("language",n,t);"1"==urlParams.embed&&"1"!=urlParams.atlas||"1"==urlParams.extAuth||
+"1"==urlParams.embedInline||d.menus.addSubmenu("appearance",n,t);"1"!=urlParams.embed&&"1"!=urlParams.extAuth&&d.mode!=App.MODE_ATLAS&&d.menus.addSubmenu("theme",n,t);n.addSeparator(t);d.menus.addSubmenu("units",n,t);d.menus.addMenuItems(n,"- copyConnect collapseExpand - tooltips animations -".split(" "),t);var B=d.getCurrentFile();"simple"!=Editor.currentTheme&&(null!=B&&B.isRealtimeEnabled()&&B.isRealtimeSupported()&&this.addMenuItems(n,["showRemoteCursors"],t),d.menus.addMenuItems(n,["ruler","-"],
+t));EditorUi.isElectronApp&&d.menus.addMenuItems(n,"- googleFonts spellCheck autoBkp drafts -".split(" "),t);this.addSubmenu("diagramLanguage",n,t);n.addSeparator(t);d.mode!=App.MODE_ATLAS&&d.menus.addMenuItem(n,"configuration",t);n.addSeparator(t)}else"1"==urlParams.embed&&null!=urlParams.lang||this.addSubmenu("language",n,t),"1"==urlParams.embed&&"1"!=urlParams.atlas||d.menus.addSubmenu("appearance",n,t),"1"!=urlParams.embed&&"1"!=urlParams.extAuth&&d.mode!=App.MODE_ATLAS&&this.addSubmenu("theme",
+n,t),EditorUi.isElectronApp&&this.addMenuItems(n,"- googleFonts spellCheck autoBkp drafts -".split(" "),t),n.addSeparator(t),B=this.addSubmenu("adaptiveColors",n,t),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&d.menus.addLinkToItem(B,"https://github.com/jgraph/drawio/discussions/4713"),"undefined"!==typeof MathJax&&(B=this.addMenuItem(n,"mathematicalTypesetting",t),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(B,"https://www.drawio.com/doc/faq/math-typesetting")),
+"1"!=urlParams.embed&&(B=d.getCurrentFile(),null!=B&&B.isRealtimeEnabled()&&B.isRealtimeSupported()&&this.addMenuItems(n,["-","showRemoteCursors","shareCursor"],t),n.addSeparator(t),(isLocalStorage||mxClient.IS_CHROMEAPP)&&this.addMenuItems(n,["showStartScreen"],t),this.addMenuItems(n,["autosave"],t)),this.addMenuItems(n,["-","copyConnect","collapseExpand","-"],t),this.addSubmenu("diagramLanguage",n,t),this.addMenuItems(n,["editDiagram","-"],t),!d.isOfflineApp()&&isLocalStorage&&this.addMenuItem(n,
+"plugins",t),this.addMenuItems(n,["configuration"],t)})));this.put("movePage",new Menu(mxUtils.bind(this,function(n,t){var B=d.currentPage,F=d.getPageIndex(B);if(null!=d.pages)for(var J=0;J<d.pages.length;J++)J!=F&&function(K){n.addItem(d.getShortPageName(d.pages[K]),null,function(){d.movePage(F,K);d.scrollToPage(B,!0)},t)}(J)})));this.put("share",new Menu(mxUtils.bind(this,function(n,t){if(!d.isStandaloneApp()){var B=d.isOffline(!0)?mxResources.get("offline"):d.getNetworkStatus();null!=B&&(n.addItem(B,
+null,null,t,null,!1),n.addSeparator(t));d.menus.addMenuItems(n,["share"],t)}this.addMenuItem(n,"publishLink",t,null,null,mxResources.get("publish")+"...");null!=d.getMainUser()&&this.addMenuItems(n,["accounts"],t)})));this.put("diagram",new Menu(mxUtils.bind(this,function(n,t){var B=d.getCurrentFile();"simple"!=Editor.currentTheme&&(d.menus.addSubmenu("extras",n,t,mxResources.get("settings")),n.addSeparator(t));var F="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme;if(mxClient.IS_CHROMEAPP||
+EditorUi.isElectronApp)d.menus.addMenuItems(n,"new open - synchronize properties - save saveAs -".split(" "),t);else if(d.mode==App.MODE_ATLAS){"1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&d.menus.addMenuItems(n,["-","save"],t);if("1"==urlParams.saveAndExit||"1"==urlParams.noSaveBtn&&"0"!=urlParams.saveAndExit||d.mode==App.MODE_ATLAS)d.menus.addMenuItems(n,["saveAndExit"],t),null!=B&&B.isRevisionHistorySupported()&&d.menus.addMenuItems(n,["revisionHistory"],t);n.addSeparator(t)}else d.mode==
+App.MODE_ATLAS?d.menus.addMenuItems(n,["save","synchronize","-"],t):"1"!=urlParams.noFileMenu&&(d.menus.addSubmenu("file",n,t),n.addSeparator(t),"min"==Editor.currentTheme&&(d.menus.addMenuItems(n,"toggleShapes format layers tags chatWindowTitle - findReplace".split(" "),t),d.commentsSupported()&&d.menus.addMenuItems(n,["comments"],t),n.addSeparator(t)));d.menus.addSubmenu("exportAs",n,t);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"atlassian"==d.getServiceName()?d.menus.addMenuItems(n,["import"],
+t):"1"!=urlParams.noFileMenu&&d.menus.addSubmenu("importFrom",n,t);"simple"!=Editor.currentTheme&&"min"!=Editor.currentTheme?(d.menus.addMenuItems(n,["-","findReplace"],t),d.commentsSupported()&&d.menus.addMenuItems(n,["comments","-"],t),d.menus.addMenuItems(n,"toggleShapes format layers tags chatWindowTitle -".split(" "),t),d.menus.addMenuItems(n,["pageSetup"],t)):"min"!=Editor.currentTheme&&(this.addMenuItems(n,["-"],t),this.addSubmenu("newLibrary",n,t),this.addSubmenu("openLibraryFrom",n,t));n.addSeparator(t);
+"1"==urlParams.noFileMenu||mxClient.IS_IOS&&navigator.standalone||d.menus.addMenuItems(n,["print"],t);F||"min"==Editor.currentTheme||null==B||null==d.fileNode||"1"==urlParams.embedInline||(F=null!=B.getTitle()?B.getTitle():d.defaultFilename,/(\.html)$/i.test(F)||this.addMenuItems(n,["-","properties"]));n.addSeparator(t);"simple"==Editor.currentTheme&&(d.menus.addSubmenu("extras",n,t,mxResources.get("settings")),n.addSeparator(t));d.menus.addSubmenu("help",n,t);n.addSeparator(t);"1"==urlParams.embed&&
+("1"!=urlParams.noSaveBtn&&"1"!=urlParams.embedInline&&d.menus.addMenuItems(n,["save"],t),"1"==urlParams.saveAndExit||"1"==urlParams.noSaveBtn&&"0"!=urlParams.saveAndExit)&&(d.menus.addMenuItems(n,["saveAndExit"],t),null!=B&&B.isRevisionHistorySupported()&&d.menus.addMenuItems(n,["revisionHistory"],t));"1"!=urlParams.embed&&d.mode!=App.MODE_ATLAS||"1"==urlParams.noExitBtn&&d.mode!=App.MODE_ATLAS||d.menus.addMenuItems(n,["exit"],t);"1"!=urlParams.embed&&null!=B&&"undefined"==typeof AtlasFile&&d.menus.addMenuItems(n,
+["-","close"],t)})));this.put("save",new Menu(mxUtils.bind(this,function(n,t){var B=d.getCurrentFile();null==B||B.constructor!=DriveFile&&B.constructor!=OneDriveFile?(d.menus.addMenuItems(n,["save","saveAs","-","rename"],t),d.isOfflineApp()?navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&this.addMenuItems(n,["upload"],t):d.menus.addMenuItems(n,["makeCopy"],t)):d.menus.addMenuItems(n,["save","makeCopy","-","rename","moveToFolder"],t);d.menus.addMenuItems(n,["-","autosave"],t);null!=
+B&&B.isRevisionHistorySupported()&&d.menus.addMenuItems(n,["-","revisionHistory"],t)})));this.put("file",new Menu(mxUtils.bind(this,function(n,t){var B="simple"==Editor.currentTheme||"sketch"==Editor.currentTheme||"min"==Editor.currentTheme;if("1"==urlParams.embed)this.addSubmenu("importFrom",n,t),this.addSubmenu("exportAs",n,t),this.addSubmenu("embed",n,t),"1"==urlParams.libraries&&(this.addMenuItems(n,["-"],t),this.addSubmenu("newLibrary",n,t),this.addSubmenu("openLibraryFrom",n,t)),d.isRevisionHistorySupported()&&
+this.addMenuItems(n,["-","revisionHistory"],t),this.addMenuItems(n,["-","pageSetup","print","-","rename"],t),"1"!=urlParams.embedInline&&("1"==urlParams.noSaveBtn?"0"!=urlParams.saveAndExit&&this.addMenuItems(n,["saveAndExit"],t):(this.addMenuItems(n,["save"],t),"1"==urlParams.saveAndExit&&this.addMenuItems(n,["saveAndExit"],t))),"1"!=urlParams.noExitBtn&&this.addMenuItems(n,["exit"],t);else if(B){B=d.getCurrentFile();d.menus.addMenuItems(n,["new"],t);d.menus.addSubmenu("openFrom",n,t);isLocalStorage&&
+this.addSubmenu("openRecent",n,t);n.addSeparator(t);d.menus.addMenuItems(n,["-","save"],t);null!=B&&B.constructor==DriveFile||d.menus.addMenuItems(n,["saveAs"],t);mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null==B||B.constructor==LocalFile&&null==B.fileHandle||d.menus.addMenuItems(n,["synchronize"],t);n.addSeparator(t);null!=B&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"sketch"!=Editor.currentTheme||this.addMenuItem(n,"publishLink",t,null,null,mxResources.get("publish")+"..."),"simple"==
+Editor.currentTheme||B.constructor!=DriveFile&&B.constructor!=GitHubFile&&B.constructor!=OneDriveFile||d.menus.addMenuItems(n,["share"],t));n.addSeparator(t);null!=B&&B.isRenamable()&&this.addMenuItems(n,["rename"],t);d.isOfflineApp()?navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&this.addMenuItems(n,["upload"],t):(d.menus.addMenuItems(n,["makeCopy"],t),null!=B&&(B.constructor!=OneDriveFile&&B.constructor!=DriveFile||d.menus.addMenuItems(n,["moveToFolder"],t),n.addSeparator(t),
+null!=B.getFolderUrl()&&d.menus.addMenuItems(n,["openFolder"],t),null!=B.getFileUrl()&&d.menus.addMenuItems(n,["openFile"],t)));n.addSeparator(t);null!=B&&B.isRevisionHistorySupported()&&d.menus.addMenuItems(n,["revisionHistory"],t);if(null!=B&&null!=d.fileNode&&"1"!=urlParams.embedInline){var F=null!=B.getTitle()?B.getTitle():d.defaultFilename;(B.constructor==DriveFile&&null!=B.sync&&B.sync.isConnected()||!/(\.html)$/i.test(F))&&this.addMenuItems(n,["properties"],t)}"simple"==Editor.currentTheme&&
+d.menus.addMenuItems(n,["-","autosave"],t)}else B=this.editorUi.getCurrentFile(),null!=B&&B.constructor==DriveFile?(B.isRestricted()&&this.addMenuItems(n,["exportOptionsDisabled"],t),this.addMenuItems(n,["save","-","share"],t),F=this.addMenuItem(n,"synchronize",t),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(F,"https://www.drawio.com/doc/faq/synchronize"),n.addSeparator(t)):this.addMenuItems(n,["new"],t),this.addSubmenu("openFrom",n,t),isLocalStorage&&this.addSubmenu("openRecent",
+n,t),null!=B&&B.constructor==DriveFile?this.addMenuItems(n,"new - rename makeCopy openFolder moveToFolder".split(" "),t):(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||null==B||B.constructor==LocalFile&&null==B.fileHandle||(n.addSeparator(t),F=this.addMenuItem(n,"synchronize",t),(!d.isOffline()||mxClient.IS_CHROMEAPP||EditorUi.isElectronApp)&&this.addLinkToItem(F,"https://www.drawio.com/doc/faq/synchronize")),this.addMenuItems(n,["-","save","saveAs","-"],t),mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||
+"draw.io"!=d.getServiceName()||d.isOfflineApp()||null==B||this.addMenuItems(n,["share","-"],t),null!=B&&B.isRenamable()&&this.addMenuItems(n,["rename"],t),d.isOfflineApp()?navigator.onLine&&"1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&this.addMenuItems(n,["upload"],t):(this.addMenuItems(n,["makeCopy"],t),null!=B&&(B.constructor==OneDriveFile&&this.addMenuItems(n,["moveToFolder"],t),null!=B.getFolderUrl()&&d.menus.addMenuItems(n,["openFolder"],t)))),n.addSeparator(t),this.addSubmenu("importFrom",
+n,t),this.addSubmenu("exportAs",n,t),n.addSeparator(t),this.addSubmenu("embed",n,t),this.addSubmenu("publish",n,t),n.addSeparator(t),this.addSubmenu("newLibrary",n,t),this.addSubmenu("openLibraryFrom",n,t),d.isRevisionHistorySupported()&&this.addMenuItems(n,["-","revisionHistory"],t),null!=B&&null!=d.fileNode&&"1"!=urlParams.embedInline&&(F=null!=B.getTitle()?B.getTitle():d.defaultFilename,(B.constructor==DriveFile&&null!=B.sync&&B.sync.isConnected()||!/(\.html)$/i.test(F))&&this.addMenuItems(n,["-",
+"properties"])),this.addMenuItems(n,["-","pageSetup"],t),mxClient.IS_IOS&&navigator.standalone||this.addMenuItems(n,["print"],t),this.addMenuItems(n,["-","close"])})));this.put("fontFamily",new Menu(mxUtils.bind(this,function(n,t){function B(O){var Q=encodeURIComponent(O.name)+(null==O.url?"":"@"+encodeURIComponent(O.url));if(!J[Q]){for(var S=O.name,V=0;null!=G[S.toLowerCase()];)S=O.name+" ("+ ++V+")";null==v[Q]&&(N.push({name:O.name,url:O.url,label:S,title:O.url}),G[S.toLowerCase()]=O,v[Q]=O)}}for(var F=
+mxUtils.bind(this,function(O,Q,S,V,W){var X=d.editor.graph,Z=this.styleChange(n,null!=V?V:O,[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],[O,null!=Q?encodeURIComponent(Q):null,null],null,t,function(){X.setFont(O,Q);d.fireEvent(new mxEventObject("styleChanged","keys",[mxConstants.STYLE_FONTFAMILY,"fontSource","FType"],"values",[O,null!=Q?encodeURIComponent(Q):null,null],"cells",[X.cellEditor.getEditingCell()]))},function(){X.updateLabelElements(X.getSelectionCells(),function(Y){Y.removeAttribute("face");
+Y.style.fontFamily=null;"PRE"==Y.nodeName&&X.replaceElement(Y,"div")})});S&&(S=document.createElement("img"),S.className="geAdaptiveAsset",S.setAttribute("src",Editor.crossImage),S.setAttribute("title",mxResources.get("delete")),S.setAttribute("valign","absmiddle"),S.setAttribute("border","0"),S.style.position="relative",S.style.top="2px",S.style.width="14px",S.style.cursor="default",S.style.margin="0 3px",Z.firstChild.nextSibling.nextSibling.appendChild(S),mxEvent.addListener(S,mxClient.IS_POINTER?
+"pointerup":"mouseup",mxUtils.bind(this,function(Y){this.removeCustomFont(O,Q);this.editorUi.hideCurrentMenu();mxEvent.consume(Y)})));Graph.addFont(O,Q);Z.firstChild.nextSibling.style.fontFamily=O;W=null!=V?V:O;null!=Q&&(W+=" ("+Q+")");Z.setAttribute("title",W)}),J={},K=0;K<this.defaultFonts.length;K++){var k=this.defaultFonts[K];"string"===typeof k?F(k):null!=k.fontFamily&&null!=k.fontUrl&&(J[encodeURIComponent(k.fontFamily)+"@"+encodeURIComponent(k.fontUrl)]=!0,F(k.fontFamily,k.fontUrl))}n.addSeparator(t);
+var v={},G={},N=[];for(K=0;K<this.customFonts.length;K++)B(this.customFonts[K]);N.sort(function(O,Q){return O.label<Q.label?-1:O.label>Q.label?1:0});if(0<N.length){for(K=0;K<N.length;K++)F(N[K].name,N[K].url,!0,N[K].label);n.addSeparator(t)}n.addItem(mxResources.get("reset"),null,mxUtils.bind(this,function(){this.customFonts=[];d.fireEvent(new mxEventObject("customFontsChanged"))}),t);n.addSeparator(t);n.addItem(mxResources.get("custom")+"...",null,mxUtils.bind(this,function(){var O=this.editorUi.editor.graph,
+Q=O.getStylesheet().getDefaultVertexStyle()[mxConstants.STYLE_FONTFAMILY],S="s",V=null;if(O.isEditing()){var W=O.getSelectedEditingElement();if(null!=W){var X=mxUtils.getCurrentStyle(W);if(null!=X){Q=mxUtils.getCssFontFamily(X.fontFamily);X=O.getView().getState(O.cellEditor.getEditingCell());V=null!=X?X.style.fontSource:null;for(null!=V&&(V=decodeURIComponent(V));null!=W&&W!=O.cellEditor.textarea;){if(W.nodeType==mxConstants.NODETYPE_ELEMENT)if(null!=W.getAttribute("data-font-src")){V=W.getAttribute("data-font-src");
+break}else if(W.getAttribute("face")==Q){V=null;break}W=W.parentNode}null!=V&&(Graph.isGoogleFontUrl(V)?(V=null,S="g"):S="w")}}}else X=O.getView().getState(O.getSelectionCell()),null!=X&&(Q=X.style[mxConstants.STYLE_FONTFAMILY]||Q,W=X.style.fontSource,null!=W&&(W=decodeURIComponent(W),Graph.isGoogleFontUrl(W)?S="g":(S="w",V=W)));null!=V&&V.substring(0,PROXY_URL.length)==PROXY_URL&&(V=decodeURIComponent(V.substr((PROXY_URL+"?url=").length)));var Z=null;document.activeElement==O.cellEditor.textarea&&
+(Z=O.cellEditor.saveSelection());Q=new FontDialog(this.editorUi,Q,V,S,mxUtils.bind(this,function(Y,ea,ca){null!=Z&&(O.cellEditor.restoreSelection(Z),Z=null);if(null!=Y&&0<Y.length)if(this.addCustomFont(Y,ea),O.isEditing())O.setFont(Y,ea);else{O.getModel().beginUpdate();try{O.stopEditing(!1),O.setCellStyles(mxConstants.STYLE_FONTFAMILY,Y),O.setCellStyles("fontSource",null!=ea?encodeURIComponent(ea):null),O.setCellStyles("FType",null)}finally{O.getModel().endUpdate()}}}));this.editorUi.showDialog(Q.container,
+380,130+(Editor.enableWebFonts?70:0)+("0"!=urlParams.isGoogleFontsEnabled?50:0),!0,!0);Q.init()}),t,null,!0)})))}})();function DiagramPage(b,f){this.node=b;null!=f?this.node.setAttribute("id",f):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,f,m){this.ui=b;this.page=f;this.previous=this.name=m}
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,f,m){this.ui=b;this.oldIndex=f;this.newIndex=m}
MovePage.prototype.execute=function(){this.ui.pages.splice(this.newIndex,0,this.ui.pages.splice(this.oldIndex,1)[0]);var b=this.oldIndex;this.oldIndex=this.newIndex;this.newIndex=b;this.ui.editor.graph.updatePlaceholders();this.ui.editor.fireEvent(new mxEventObject("pageMoved"))};function SelectPage(b,f,m){this.ui=b;this.previousPage=this.page=f;null!=f&&(this.ui.updatePageRoot(f),null!=m&&(f.viewState=m))}
SelectPage.prototype.execute=function(){var b=mxUtils.indexOf(this.ui.pages,this.previousPage);if(null!=this.page&&0<=b){b=this.ui.currentPage;var f=this.ui.editor,m=f.graph;b.isDiagramModified()&&(b.setDiagramModified(!1),EditorUi.removeChildNodes(b.node),b.node.appendChild(f.getGraphXml(!0)));b.viewState=m.getViewState();b.root=m.model.root;null!=b.model&&b.model.rootChanged(b.root);m.view.clear(b.root,!0);m.clearSelection();this.ui.currentPage=this.previousPage;this.previousPage=b;b=this.ui.currentPage;
-m.model.prefix=Editor.guid()+"-";m.model.rootChanged(b.root);m.setViewState(b.viewState);m.gridEnabled=m.gridEnabled&&(!this.ui.editor.isChromelessView()||"1"==urlParams.grid);f.graph.fireEvent(new mxEventObject(mxEvent.ROOT));f.fireEvent(new mxEventObject("pageSelected","change",this))}};function ChangePage(b,f,m,d,t){SelectPage.call(this,b,m);this.relatedPage=f;this.index=d;this.previousIndex=null;this.noSelect=t}mxUtils.extend(ChangePage,SelectPage);
+m.model.prefix=Editor.guid()+"-";m.model.rootChanged(b.root);m.setViewState(b.viewState);m.gridEnabled=m.gridEnabled&&(!this.ui.editor.isChromelessView()||"1"==urlParams.grid);f.graph.fireEvent(new mxEventObject(mxEvent.ROOT));f.fireEvent(new mxEventObject("pageSelected","change",this))}};function ChangePage(b,f,m,d,q){SelectPage.call(this,b,m);this.relatedPage=f;this.index=d;this.previousIndex=null;this.noSelect=q}mxUtils.extend(ChangePage,SelectPage);
ChangePage.prototype.execute=function(){this.ui.editor.fireEvent(new mxEventObject("beforePageChange","change",this));this.previousIndex=this.index;if(null==this.index){var b=mxUtils.indexOf(this.ui.pages,this.relatedPage);this.ui.pages.splice(b,1);this.index=b}else this.ui.pages.splice(this.index,0,this.relatedPage),this.index=null;this.noSelect||SelectPage.prototype.execute.apply(this,arguments)};function ReplaceDiagram(b,f){this.ui=b;this.data=f}
ReplaceDiagram.prototype.execute=function(){var b=this.ui.editor.graph,f=this.ui.editor.getGraphXml();this.ui.editor.readGraphState(this.data);this.ui.editor.updateGraphComponents();var m=new mxCodec(this.data.ownerDocument),d=new mxGraphModel;m.decode(this.data,d);this.data=f;this.ui.currentPage&&(this.ui.currentPage.viewState=b.getViewState(),this.ui.currentPage.root=d.root,null!=this.ui.currentPage.model&&this.ui.currentPage.model.rootChanged(this.ui.currentPage.model.root));b.view.clear(b.model.root,
!0);b.model.rootChanged(d.root);b.fireEvent(new mxEventObject(mxEvent.ROOT))};EditorUi.prototype.tabContainerVisible=!0;EditorUi.prototype.setTabContainerVisible=function(b,f){Editor.isSettingsEnabled()&&f&&(mxSettings.settings.pages=b,mxSettings.save());this.tabContainerVisible=b;this.updateTabContainer()};EditorUi.prototype.isTabContainerVisible=function(){return this.tabContainerVisible};EditorUi.prototype.getSelectedPageIndex=function(){return this.getPageIndex(this.currentPage)};
EditorUi.prototype.getPageIndex=function(b){var f=null;if(null!=this.pages&&null!=b)for(var m=0;m<this.pages.length;m++)if(this.pages[m]==b){f=m;break}return f};EditorUi.prototype.getPageById=function(b,f){f=null!=f?f:this.pages;if(null!=f)for(var m=0;m<f.length;m++)if(f[m].getId()==b)return f[m];return null};
-EditorUi.prototype.createImageForPageLink=function(b,f,m,d){var t=b.indexOf(","),x=null;0<t&&(t=this.getPageById(b.substring(t+1)),null!=t&&t!=f&&(x=this.getImageForPage(t,f,m,d),x.originalSrc=b));null==x&&(x={originalSrc:b});return x};
+EditorUi.prototype.createImageForPageLink=function(b,f,m,d){var q=b.indexOf(","),x=null;0<q&&(q=this.getPageById(b.substring(q+1)),null!=q&&q!=f&&(x=this.getImageForPage(q,f,m,d),x.originalSrc=b));null==x&&(x={originalSrc:b});return x};
EditorUi.prototype.pageSelected=function(){var b=this.editor.graph,f=this.currentPage;null!=f&&(b.tooltipHandler.hide(),null==f.viewState||null==f.viewState.scrollTop||null==f.viewState.scrollLeft?(b.selectUnlockedLayer(),this.resetScrollbars(),b.isLightboxView()&&this.lightboxFit(),null!=this.chromelessResize&&(b.container.scrollleft=0,b.container.scrollTop=0,this.chromelessResize())):b.setScrollbarPositions(f.viewState,b.view.translate.x,b.view.translate.y),this.updateTabContainer(),this.scrollToPage())};
-EditorUi.prototype.getImageForPage=function(b,f,m,d){m=null!=m?m:this.editor.graph;var t=m.getGlobalVariable;m=this.createTemporaryGraph(m.getStylesheet());var x=this.getPageIndex(null!=f?f:this.currentPage);m.getGlobalVariable=function(B){return"pagenumber"==B?x+1:"page"==B&&null!=f?f.getName():t.apply(this,arguments)};document.body.appendChild(m.container);this.updatePageRoot(b);m.setAdaptiveColors(b.viewState.adaptiveColors);m.model.setRoot(b.root);b=Graph.foreignObjectWarningText;Graph.foreignObjectWarningText=
-"";d=m.getSvg(null,null,null,null,null,null,null,null,null,null,d,null,null,null,!0,!0);var v=m.getGraphBounds();document.body.removeChild(m.container);Graph.foreignObjectWarningText=b;return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(d)),v.width,v.height,v.x,v.y)};
+EditorUi.prototype.getImageForPage=function(b,f,m,d){m=null!=m?m:this.editor.graph;var q=m.getGlobalVariable;m=this.createTemporaryGraph(m.getStylesheet());var x=this.getPageIndex(null!=f?f:this.currentPage);m.getGlobalVariable=function(y){return"pagenumber"==y?x+1:"page"==y&&null!=f?f.getName():q.apply(this,arguments)};document.body.appendChild(m.container);this.updatePageRoot(b);m.setAdaptiveColors(b.viewState.adaptiveColors);m.model.setRoot(b.root);b=Graph.foreignObjectWarningText;Graph.foreignObjectWarningText=
+"";d=m.getSvg(null,null,null,null,null,null,null,null,null,null,d,null,null,null,!0,!0);var C=m.getGraphBounds();document.body.removeChild(m.container);Graph.foreignObjectWarningText=b;return new mxImage(Editor.createSvgDataUri(mxUtils.getXml(d)),C.width,C.height,C.x,C.y)};
EditorUi.prototype.initPages=function(){if(!this.editor.graph.standalone){this.actions.addAction("previousPage",mxUtils.bind(this,function(){this.selectNextPage(!1)}));this.actions.addAction("nextPage",mxUtils.bind(this,function(){this.selectNextPage(!0)}));this.isPagesEnabled()&&(this.keyHandler.bindAction(33,!0,"previousPage",!0),this.keyHandler.bindAction(34,!0,"nextPage",!0));var b=this.editor.graph,f=b.view.validateBackground;b.view.validateBackground=mxUtils.bind(this,function(){f.apply(b.view,
-arguments);null!=b.view.backgroundImage&&EditorUi.embedSvgImages(b.view.backgroundImage.node)});this.editor.graph.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(v,B){v=B.getProperty("edit").changes;for(B=0;B<v.length;B++)if(v[B]instanceof RenamePage||v[B]instanceof ChangePage||v[B]instanceof mxRootChange){this.updateTabContainer();break}null==this.currentPage||1==v.length&&v[0]instanceof SelectPage||this.currentPage.setDiagramModified(!0)}));var m=b.sizeDidChange,d=null,t=this;b.sizeDidChange=
-function(){var v=m.apply(this,arguments);null!=t.currentPage&&d!=t.currentPage&&(d=t.currentPage,t.pageSelected());return v};b.addListener(mxEvent.ROOT,mxUtils.bind(this,function(){b.checkDefaultParent()}));var x=mxUtils.bind(this,function(){this.updateDocumentTitle();this.updateTabContainer()});this.addListener("currentThemeChanged",x);this.editor.addListener("pagesPatched",x);this.editor.addListener("pageRenamed",x);this.editor.addListener("pageMoved",x);this.editor.addListener("fileLoaded",x);
-this.editor.addListener("pageSelected",mxUtils.bind(this,function(v,B){this.scrollToPage();this.updateHashObject();this.updateTabContainer();this.updateDocumentTitle()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(v,B){this.scrollToPage();this.updateHashObject()}));mxEvent.addListener(window,"resize",mxUtils.bind(this,function(){this.checkTabScrollerOverflow()}));this.addListener("languageChanged",mxUtils.bind(this,function(){this.updateTabContainer()}))}};
+arguments);null!=b.view.backgroundImage&&EditorUi.embedSvgImages(b.view.backgroundImage.node)});this.editor.graph.model.addListener(mxEvent.CHANGE,mxUtils.bind(this,function(C,y){C=y.getProperty("edit").changes;for(y=0;y<C.length;y++)if(C[y]instanceof RenamePage||C[y]instanceof ChangePage||C[y]instanceof mxRootChange){this.updateTabContainer();break}null==this.currentPage||1==C.length&&C[0]instanceof SelectPage||this.currentPage.setDiagramModified(!0)}));var m=b.sizeDidChange,d=null,q=this;b.sizeDidChange=
+function(){var C=m.apply(this,arguments);null!=q.currentPage&&d!=q.currentPage&&(d=q.currentPage,q.pageSelected());return C};b.addListener(mxEvent.ROOT,mxUtils.bind(this,function(){b.checkDefaultParent()}));var x=mxUtils.bind(this,function(){this.updateDocumentTitle();this.updateTabContainer()});this.addListener("currentThemeChanged",x);this.editor.addListener("pagesPatched",x);this.editor.addListener("pageRenamed",x);this.editor.addListener("pageMoved",x);this.editor.addListener("fileLoaded",x);
+this.editor.addListener("pageSelected",mxUtils.bind(this,function(C,y){this.scrollToPage();this.updateHashObject();this.updateTabContainer();this.updateDocumentTitle()}));this.editor.addListener("pageMoved",mxUtils.bind(this,function(C,y){this.scrollToPage();this.updateHashObject()}));mxEvent.addListener(window,"resize",mxUtils.bind(this,function(){this.checkTabScrollerOverflow()}));this.addListener("languageChanged",mxUtils.bind(this,function(){this.updateTabContainer()}))}};
EditorUi.prototype.scrollToPage=function(b,f){var m=null!=b?this.getPageIndex(b):this.getSelectedPageIndex(),d=null!=b?b:this.currentPage;null!=m&&null!=this.tabScroller&&this.tabScroller.children.length>m&&null!=this.tabScroller.children[m]&&(d!=this.lastScrollPage||f)&&(this.tabScroller.children[m].scrollIntoView({block:"nearest",inline:null!=b?"nearest":"center"}),this.tabScroller.children[m].className="geTab gePageTab geActivePage",this.lastScrollPage=d)};
EditorUi.prototype.restoreViewState=function(b,f,m){b=null!=b?this.getPageById(b.getId()):null;var d=this.editor.graph;null!=b&&null!=this.currentPage&&null!=this.pages&&(b!=this.currentPage?this.selectPage(b,!0,f):(d.setViewState(f),this.editor.updateGraphComponents(),d.view.revalidate(),d.sizeDidChange()),d.container.scrollLeft=d.view.translate.x*d.view.scale+f.scrollLeft,d.container.scrollTop=d.view.translate.y*d.view.scale+f.scrollTop,d.restoreSelection(m))};
-Graph.prototype.createViewState=function(b){var f=b.getAttribute("page"),m=parseFloat(b.getAttribute("pageScale")),d=parseFloat(b.getAttribute("pageWidth")),t=parseFloat(b.getAttribute("pageHeight")),x=b.getAttribute("background"),v=this.parseBackgroundImage(b.getAttribute("backgroundImage")),B=b.getAttribute("extFonts");if(B)try{B=B.split("|").map(function(J){J=J.split("^");return{name:J[0],url:J[1]}})}catch(J){console.log("ExtFonts format error: "+J.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!=f?"0"!=f:this.defaultPageVisible,background:null!=x&&0<x.length?x:null,backgroundImage:v,pageScale:isNaN(m)?mxGraph.prototype.pageScale:m,pageFormat:isNaN(d)||isNaN(t)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:
-mxSettings.getPageFormat():new mxRectangle(0,0,d,t),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:B||[]}};
+Graph.prototype.createViewState=function(b){var f=b.getAttribute("page"),m=parseFloat(b.getAttribute("pageScale")),d=parseFloat(b.getAttribute("pageWidth")),q=parseFloat(b.getAttribute("pageHeight")),x=b.getAttribute("background"),C=this.parseBackgroundImage(b.getAttribute("backgroundImage")),y=b.getAttribute("extFonts");if(y)try{y=y.split("|").map(function(I){I=I.split("^");return{name:I[0],url:I[1]}})}catch(I){console.log("ExtFonts format error: "+I.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!=f?"0"!=f:this.defaultPageVisible,background:null!=x&&0<x.length?x:null,backgroundImage:C,pageScale:isNaN(m)?mxGraph.prototype.pageScale:m,pageFormat:isNaN(d)||isNaN(q)?"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:
+mxSettings.getPageFormat():new mxRectangle(0,0,d,q),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:y||[]}};
Graph.prototype.saveViewState=function(b,f,m,d){m||(f.setAttribute("grid",(null==b?this.defaultGridEnabled:b.gridEnabled)?"1":"0"),f.setAttribute("page",(null==b?this.defaultPageVisible:b.pageVisible)?"1":"0"),f.setAttribute("gridSize",null!=b?b.gridSize:mxGraph.prototype.gridSize),f.setAttribute("guides",null==b||b.guidesEnabled?"1":"0"),f.setAttribute("tooltips",null==b||b.tooltips?"1":"0"),f.setAttribute("connect",null==b||b.connect?"1":"0"),f.setAttribute("arrows",null==b||b.arrows?"1":"0"),f.setAttribute("fold",
null==b||b.foldingEnabled?"1":"0"));f.setAttribute("pageScale",null!=b&&null!=b.pageScale?b.pageScale:mxGraph.prototype.pageScale);m=null!=b?b.pageFormat:"undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat();null!=m&&(f.setAttribute("pageWidth",m.width),f.setAttribute("pageHeight",m.height));null!=b&&(null!=b.background&&f.setAttribute("background",b.background),d=this.getBackgroundImageObject(b.backgroundImage,d),null!=d&&f.setAttribute("backgroundImage",
-JSON.stringify(d)));f.setAttribute("math",(null==b?this.defaultMathEnabled:b.mathEnabled)?"1":"0");f.setAttribute("shadow",null!=b&&b.shadowVisible?"1":"0");null==b||null==b.adaptiveColors?f.removeAttribute("adaptiveColors"):f.setAttribute("adaptiveColors",b.adaptiveColors);null!=b&&null!=b.extFonts&&0<b.extFonts.length&&f.setAttribute("extFonts",b.extFonts.map(function(t){return t.name+"^"+t.url}).join("|"))};
+JSON.stringify(d)));f.setAttribute("math",(null==b?this.defaultMathEnabled:b.mathEnabled)?"1":"0");f.setAttribute("shadow",null!=b&&b.shadowVisible?"1":"0");null==b||null==b.adaptiveColors?f.removeAttribute("adaptiveColors"):f.setAttribute("adaptiveColors",b.adaptiveColors);null!=b&&null!=b.extFonts&&0<b.extFonts.length&&f.setAttribute("extFonts",b.extFonts.map(function(q){return q.name+"^"+q.url}).join("|"))};
Graph.prototype.getViewState=function(){return{defaultParent:this.defaultParent,currentRoot:this.view.currentRoot,gridEnabled:this.gridEnabled,gridSize:this.gridSize,guidesEnabled:this.graphHandler.guidesEnabled,foldingEnabled:this.foldingEnabled,shadowVisible:this.shadowVisible,scrollbars:this.scrollbars,pageVisible:this.pageVisible,background:this.background,backgroundImage:this.backgroundImage,pageScale:this.pageScale,pageFormat:this.pageFormat,tooltips:this.tooltipHandler.isEnabled(),connect:this.connectionHandler.isEnabled(),
arrows:this.connectionArrowsEnabled,scale:this.view.scale,scrollLeft:this.container.scrollLeft-this.view.translate.x*this.view.scale,scrollTop:this.container.scrollTop-this.view.translate.y*this.view.scale,translate:this.view.translate.clone(),lastPasteXml:this.lastPasteXml,pasteCounter:this.pasteCounter,mathEnabled:this.mathEnabled,adaptiveColors:this.adaptiveColors,hiddenTags:this.hiddenTags,extFonts:this.extFonts}};
Graph.prototype.setViewState=function(b,f){if(null!=b){this.lastPasteXml=b.lastPasteXml;this.pasteCounter=b.pasteCounter||0;this.mathEnabled=b.mathEnabled;this.adaptiveColors=b.adaptiveColors;this.gridEnabled=b.gridEnabled;this.gridSize=b.gridSize;this.graphHandler.guidesEnabled=b.guidesEnabled;this.foldingEnabled=b.foldingEnabled;this.setShadowVisible(b.shadowVisible,!1);this.scrollbars=b.scrollbars;this.pageVisible=!this.isViewer()&&b.pageVisible;this.background=b.background;this.pageScale=b.pageScale;
@@ -14092,154 +14139,154 @@ this.pageFormat=b.pageFormat;this.view.currentRoot=b.currentRoot;this.defaultPar
this.extFonts[f].url,!0);this.view.scale=null!=b.scale?b.scale:1;null==this.view.currentRoot||this.model.contains(this.view.currentRoot)||(this.view.currentRoot=null);null==this.defaultParent||this.model.contains(this.defaultParent)||(this.setDefaultParent(null),this.selectUnlockedLayer());null!=b.translate&&(this.view.translate=b.translate)}else this.view.currentRoot=null,this.view.scale=1,this.gridEnabled=this.defaultGridEnabled,this.gridSize=mxGraph.prototype.gridSize,this.pageScale=mxGraph.prototype.pageScale,
this.pageFormat="undefined"===typeof mxSettings||null!=this.defaultPageFormat?mxGraph.prototype.pageFormat:mxSettings.getPageFormat(),this.pageVisible=this.defaultPageVisible,this.backgroundImage=this.background=null,this.scrollbars=this.defaultScrollbars,this.foldingEnabled=this.graphHandler.guidesEnabled=!0,this.setShadowVisible(!1,!1),this.defaultParent=null,this.setTooltips(!0),this.setConnectable(!0),this.lastPasteXml=null,this.pasteCounter=0,this.mathEnabled=this.defaultMathEnabled,this.adaptiveColors=
null,this.connectionArrowsEnabled=!0,this.hiddenTags=[],this.extFonts=[];this.setAdaptiveColors(this.adaptiveColors);this.preferPageSize=this.pageBreaksVisible=this.pageVisible;this.fireEvent(new mxEventObject("viewStateChanged","state",b))};Graph.prototype.setScrollbarPositions=function(b,f,m){null!=b&&null!=b.scrollLeft&&null!=b.scrollTop&&(this.container.scrollLeft=f*this.view.scale+b.scrollLeft,this.container.scrollTop=m*this.view.scale+b.scrollTop)};
-Graph.prototype.addExtFont=function(b,f,m){if(b&&f){var d="extFont_"+b;if(null==document.getElementById(d))if(0==f.indexOf(Editor.GOOGLE_FONTS))mxClient.link("stylesheet",f,null,d);else{document.getElementsByTagName("head");var t=document.createElement("style");t.appendChild(document.createTextNode('@font-face {\n\tfont-family: "'+b+'";\n\tsrc: url("'+f+'");\n}'));t.setAttribute("id",d);document.getElementsByTagName("head")[0].appendChild(t)}if(!m){null==this.extFonts&&(this.extFonts=[]);m=this.extFonts;
-d=!0;for(t=0;t<m.length;t++)if(m[t].name==b){d=!1;break}d&&this.extFonts.push({name:b,url:f})}}};
+Graph.prototype.addExtFont=function(b,f,m){if(b&&f){var d="extFont_"+b;if(null==document.getElementById(d))if(0==f.indexOf(Editor.GOOGLE_FONTS))mxClient.link("stylesheet",f,null,d);else{document.getElementsByTagName("head");var q=document.createElement("style");q.appendChild(document.createTextNode('@font-face {\n\tfont-family: "'+b+'";\n\tsrc: url("'+f+'");\n}'));q.setAttribute("id",d);document.getElementsByTagName("head")[0].appendChild(q)}if(!m){null==this.extFonts&&(this.extFonts=[]);m=this.extFonts;
+d=!0;for(q=0;q<m.length;q++)if(m[q].name==b){d=!1;break}d&&this.extFonts.push({name:b,url:f})}}};
EditorUi.prototype.updatePageRoot=function(b,f){if(null==b.root){f=this.editor.extractGraphModel(b.node,null,f);var m=Editor.extractParserError(f);if(m)throw Error(m);null!=f?(b.graphModelNode=f,b.viewState=this.editor.graph.createViewState(f),m=new mxCodec(f.ownerDocument),b.root=m.decode(f).root):(b.root=this.editor.graph.model.createRoot(),b.root.setId("0"),b.root.children[0].setId("1"),b.needsUpdate=!0)}else if(null==b.viewState){if(null==b.graphModelNode){f=this.editor.extractGraphModel(b.node);
if(m=Editor.extractParserError(f))throw Error(m);null!=f&&(b.graphModelNode=f)}null!=b.graphModelNode&&(b.viewState=this.editor.graph.createViewState(b.graphModelNode))}if(null==b.root.children||0==b.root.children.length)f=new mxCell,f.setId("1"),b.root.insert(f),b.needsUpdate=!0;return b};EditorUi.prototype.getDiagramSnapshot=function(){return{node:this.editor.getGraphXml(),page:this.currentPage}};
-EditorUi.prototype.updateDiagramData=function(b,f){if(null==this.getPageIndex(b.page))this.insertPage(null,null,f);else{var m=new mxCodec(b.node.ownerDocument),d=new mxGraphModel;m.decode(b.node,d);m=new mxCodec(f.ownerDocument);var t=new mxGraphModel;m.decode(f,t);this.selectPage(b.page);f=this.diffCells(d.root,t.root);this.patchPage(b.page,f,null,!0)}};EditorUi.prototype.replaceDiagramData=function(b){this.editor.graph.model.execute(new ReplaceDiagram(this,mxUtils.parseXml(b).documentElement))};
-EditorUi.prototype.selectPage=function(b,f,m){try{if(b!=this.currentPage){var d=this.editor.graph;d.isEditing()&&d.stopEditing(!1);f=null!=f?f:!1;d.isMouseDown=!1;d.reset();var t=d.model.createUndoableEdit();t.ignoreEdit=!0;var x=new SelectPage(this,b,m);x.execute();t.add(x);t.notify();f||d.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",t))}}catch(v){this.handleError(v)}};
+EditorUi.prototype.updateDiagramData=function(b,f){if(null==this.getPageIndex(b.page))this.insertPage(null,null,f);else{var m=new mxCodec(b.node.ownerDocument),d=new mxGraphModel;m.decode(b.node,d);m=new mxCodec(f.ownerDocument);var q=new mxGraphModel;m.decode(f,q);this.selectPage(b.page);f=this.diffCells(d.root,q.root);this.patchPage(b.page,f,null,!0)}};EditorUi.prototype.replaceDiagramData=function(b){this.editor.graph.model.execute(new ReplaceDiagram(this,mxUtils.parseXml(b).documentElement))};
+EditorUi.prototype.selectPage=function(b,f,m){try{if(b!=this.currentPage){var d=this.editor.graph;d.isEditing()&&d.stopEditing(!1);f=null!=f?f:!1;d.isMouseDown=!1;d.reset();var q=d.model.createUndoableEdit();q.ignoreEdit=!0;var x=new SelectPage(this,b,m);x.execute();q.add(x);q.notify();f||d.model.fireEvent(new mxEventObject(mxEvent.UNDO,"edit",q))}}catch(C){this.handleError(C)}};
EditorUi.prototype.selectNextPage=function(b){var f=this.currentPage;null!=f&&null!=this.pages&&(f=mxUtils.indexOf(this.pages,f),b?this.selectPage(this.pages[mxUtils.mod(f+1,this.pages.length)]):b||this.selectPage(this.pages[mxUtils.mod(f-1,this.pages.length)]))};
EditorUi.prototype.insertPage=function(b,f,m){this.editor.graph.isEnabled()&&(this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1),b=null!=b?b:this.createPage(null,this.createPageId(),m),f=null!=f?f:this.pages.length,f=new ChangePage(this,b,b,f),this.editor.graph.model.execute(f));return b};EditorUi.prototype.createPageId=function(){do var b=Editor.guid();while(null!=this.getPageById(b));return b};
EditorUi.prototype.createPage=function(b,f,m){f=new DiagramPage((null!=this.fileNode?this.fileNode.ownerDocument:document).createElement("diagram"),f);f.setName(null!=b?b:this.createPageName());this.initDiagramNode(f,m);return f};EditorUi.prototype.createPageName=function(){for(var b={},f=0;f<this.pages.length;f++){var m=this.pages[f].getName();null!=m&&0<m.length&&(b[m]=m)}f=this.pages.length;do m=mxResources.get("pageWithNumber",[++f]);while(null!=b[m]);return m};
-EditorUi.prototype.removePage=function(b){try{var f=this.editor.graph,m=mxUtils.indexOf(this.pages,b);if(f.isEnabled()&&0<=m){this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1);f.model.beginUpdate();try{var d=this.currentPage;d==b&&1<this.pages.length?(m==this.pages.length-1?m--:m++,d=this.pages[m]):1>=this.pages.length&&(d=this.insertPage(),f.model.execute(new RenamePage(this,d,mxResources.get("pageWithNumber",[1]))));f.model.execute(new ChangePage(this,b,d))}finally{f.model.endUpdate()}}}catch(t){this.handleError(t)}return b};
-EditorUi.prototype.duplicatePage=function(b,f){var m=null;try{var d=this.editor.graph;if(d.isEnabled()){d.isEditing()&&d.stopEditing();var t=b.node.cloneNode(!1);t.removeAttribute("id");var x={},v=d.createCellLookup([d.model.root]);m=new DiagramPage(t);m.root=d.cloneCell(d.model.root,null,x);var B=new mxGraphModel;B.prefix=Editor.guid()+"-";B.setRoot(m.root);d.updateCustomLinks(d.createCellMapping(x,v),[m.root]);m.viewState=b==this.currentPage?d.getViewState():b.viewState;this.initDiagramNode(m);
-m.viewState.scale=1;delete m.viewState.scrollLeft;delete m.viewState.scrollTop;delete m.viewState.currentRoot;delete m.viewState.defaultParent;m.setName(f);m=this.insertPage(m,mxUtils.indexOf(this.pages,b)+1)}}catch(J){this.handleError(J)}return m};EditorUi.prototype.initDiagramNode=function(b,f){null==f&&(f=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b.root)));this.editor.graph.saveViewState(b.viewState,f);EditorUi.removeChildNodes(b.node);b.node.appendChild(f)};
-EditorUi.prototype.clonePages=function(b){for(var f=[],m=[],d=0;d<b.length;d++)try{m.push(this.clonePage(b[d]))}catch(t){f.push(mxResources.get("pageWithNumber",[d+1])+": "+t.toString())}if(0<f.length){b=Error(f.join("\n"));try{0<m.length&&(b.fallbackFileData=this.getXmlForPages(m))}catch(t){}throw b;}return m};
+EditorUi.prototype.removePage=function(b){try{var f=this.editor.graph,m=mxUtils.indexOf(this.pages,b);if(f.isEnabled()&&0<=m){this.editor.graph.isEditing()&&this.editor.graph.stopEditing(!1);f.model.beginUpdate();try{var d=this.currentPage;d==b&&1<this.pages.length?(m==this.pages.length-1?m--:m++,d=this.pages[m]):1>=this.pages.length&&(d=this.insertPage(),f.model.execute(new RenamePage(this,d,mxResources.get("pageWithNumber",[1]))));f.model.execute(new ChangePage(this,b,d))}finally{f.model.endUpdate()}}}catch(q){this.handleError(q)}return b};
+EditorUi.prototype.duplicatePage=function(b,f){var m=null;try{var d=this.editor.graph;if(d.isEnabled()){d.isEditing()&&d.stopEditing();var q=b.node.cloneNode(!1);q.removeAttribute("id");var x={},C=d.createCellLookup([d.model.root]);m=new DiagramPage(q);m.root=d.cloneCell(d.model.root,null,x);var y=new mxGraphModel;y.prefix=Editor.guid()+"-";y.setRoot(m.root);d.updateCustomLinks(d.createCellMapping(x,C),[m.root]);m.viewState=b==this.currentPage?d.getViewState():b.viewState;this.initDiagramNode(m);
+m.viewState.scale=1;delete m.viewState.scrollLeft;delete m.viewState.scrollTop;delete m.viewState.currentRoot;delete m.viewState.defaultParent;m.setName(f);m=this.insertPage(m,mxUtils.indexOf(this.pages,b)+1)}}catch(I){this.handleError(I)}return m};EditorUi.prototype.initDiagramNode=function(b,f){null==f&&(f=(new mxCodec(mxUtils.createXmlDocument())).encode(new mxGraphModel(b.root)));this.editor.graph.saveViewState(b.viewState,f);EditorUi.removeChildNodes(b.node);b.node.appendChild(f)};
+EditorUi.prototype.clonePages=function(b){for(var f=[],m=[],d=0;d<b.length;d++)try{m.push(this.clonePage(b[d]))}catch(q){f.push(mxResources.get("pageWithNumber",[d+1])+": "+q.toString())}if(0<f.length){b=Error(f.join("\n"));try{0<m.length&&(b.fallbackFileData=this.getXmlForPages(m))}catch(q){}throw b;}return m};
EditorUi.prototype.clonePage=function(b){this.updatePageRoot(b);var f=new DiagramPage(b.node.cloneNode(!0)),m=b==this.currentPage?this.editor.graph.getViewState():b.viewState;f.viewState=mxUtils.clone(m,EditorUi.transientViewStateProperties);f.root=this.editor.graph.model.cloneCell(b.root,null,!0);f.diagramModified=b.diagramModified;return f};
EditorUi.prototype.renamePage=function(b){if(this.editor.graph.isEnabled()){var f=new FilenameDialog(this,b.getName(),mxResources.get("rename"),mxUtils.bind(this,function(m){null!=m&&0<m.length&&this.editor.graph.model.execute(new RenamePage(this,b,m))}),mxResources.get("rename"));this.showDialog(f.container,300,80,!0,!0);f.init()}return b};EditorUi.prototype.movePage=function(b,f){this.editor.graph.model.execute(new MovePage(this,b,f))};
EditorUi.prototype.createTabContainer=function(){var b=document.createElement("div");b.className="geTabContainer geTabItem";return b};
-EditorUi.prototype.updateTabContainer=function(){if(null!=this.tabContainer&&!this.isTabContainerVisible())this.tabContainer.style.display="none";else if(null!=this.tabContainer&&null!=this.pages){this.tabContainer.style.display="";var b=this.editor.graph,f=document.createElement("div");f.className="geTabScroller";for(var m=null,d=0;d<this.pages.length;d++)mxUtils.bind(this,function(t,x){x.className="geTab gePageTab";this.pages[t]==this.currentPage&&x.classList.add("geActivePage");x.setAttribute("draggable",
-"true");mxEvent.addListener(x,"dragstart",mxUtils.bind(this,function(v){b.isEnabled()?(mxClient.IS_FF&&v.dataTransfer.setData("Text","<diagram/>"),m=t):mxEvent.consume(v)}));mxEvent.addListener(x,"dragend",mxUtils.bind(this,function(v){m=null;v.stopPropagation();v.preventDefault()}));mxEvent.addListener(x,"dragover",mxUtils.bind(this,function(v){null!=m&&(v.dataTransfer.dropEffect="move");v.stopPropagation();v.preventDefault()}));mxEvent.addListener(x,"drop",mxUtils.bind(this,function(v){null!=m&&
-t!=m&&this.movePage(m,t);v.stopPropagation();v.preventDefault()}));f.appendChild(x)})(d,this.createTabForPage(this.pages[d],d+1));d=null!=this.tabScroller?this.tabScroller.scrollLeft:0;this.tabContainer.innerText="";this.isPageInsertTabVisible()&&this.tabContainer.appendChild(this.createPageInsertTab());"simple"!=Editor.currentTheme&&(this.pageMenuTab=this.createPageMenuTab(),this.tabContainer.appendChild(this.pageMenuTab));this.tabContainer.appendChild(f);this.leftScrollTab=this.createLeftScrollTab();
-this.tabContainer.appendChild(this.leftScrollTab);this.rightScrollTab=this.createRightScrollTab();this.tabContainer.appendChild(this.rightScrollTab);this.tabScroller=f;this.tabScroller.scrollLeft=d;this.checkTabScrollerOverflow();mxEvent.addListener(this.tabScroller,"scroll",mxUtils.bind(this,function(t){this.checkTabScrollerOverflow()}))}};
+EditorUi.prototype.updateTabContainer=function(){if(null!=this.tabContainer&&!this.isTabContainerVisible())this.tabContainer.style.display="none";else if(null!=this.tabContainer&&null!=this.pages){this.tabContainer.style.display="";var b=this.editor.graph,f=document.createElement("div");f.className="geTabScroller";for(var m=null,d=0;d<this.pages.length;d++)mxUtils.bind(this,function(q,x){x.className="geTab gePageTab";this.pages[q]==this.currentPage&&x.classList.add("geActivePage");x.setAttribute("draggable",
+"true");mxEvent.addListener(x,"dragstart",mxUtils.bind(this,function(C){b.isEnabled()?(mxClient.IS_FF&&C.dataTransfer.setData("Text","<diagram/>"),m=q):mxEvent.consume(C)}));mxEvent.addListener(x,"dragend",mxUtils.bind(this,function(C){m=null;C.stopPropagation();C.preventDefault()}));mxEvent.addListener(x,"dragover",mxUtils.bind(this,function(C){null!=m&&(C.dataTransfer.dropEffect="move");C.stopPropagation();C.preventDefault()}));mxEvent.addListener(x,"drop",mxUtils.bind(this,function(C){null!=m&&
+q!=m&&this.movePage(m,q);C.stopPropagation();C.preventDefault()}));f.appendChild(x)})(d,this.createTabForPage(this.pages[d],d+1));d=null!=this.tabScroller?this.tabScroller.scrollLeft:0;this.tabContainer.innerText="";this.isPageInsertTabVisible()&&this.tabContainer.appendChild(this.createPageInsertTab());"simple"!=Editor.currentTheme&&(this.pageMenuTab=this.createPageMenuTab(),this.tabContainer.appendChild(this.pageMenuTab));this.tabContainer.appendChild(f);this.leftScrollTab=this.createLeftScrollTab();
+this.tabContainer.appendChild(this.leftScrollTab);this.rightScrollTab=this.createRightScrollTab();this.tabContainer.appendChild(this.rightScrollTab);this.tabScroller=f;this.tabScroller.scrollLeft=d;this.checkTabScrollerOverflow();mxEvent.addListener(this.tabScroller,"scroll",mxUtils.bind(this,function(q){this.checkTabScrollerOverflow()}))}};
EditorUi.prototype.checkTabScrollerOverflow=function(){null!=this.tabScroller&&null!=this.tabContainer&&2<this.tabContainer.children.length&&(this.tabScroller.scrollWidth>this.tabScroller.offsetWidth?(this.leftScrollTab.style.display="",this.rightScrollTab.style.display="",0==this.tabScroller.scrollLeft?this.leftScrollTab.classList.add("mxDisabled"):this.leftScrollTab.classList.remove("mxDisabled"),Math.ceil(this.tabScroller.scrollLeft)+this.tabScroller.offsetWidth>=this.tabScroller.scrollWidth?this.rightScrollTab.classList.add("mxDisabled"):
this.rightScrollTab.classList.remove("mxDisabled")):(this.leftScrollTab.style.display="none",this.rightScrollTab.style.display="none"))};EditorUi.prototype.isPageInsertTabVisible=function(){return 1==urlParams.embed||null!=this.getCurrentFile()&&this.getCurrentFile().isEditable()};EditorUi.prototype.createTab=function(){var b=document.createElement("div");b.className="geTab";return b};
EditorUi.prototype.getShortPageName=function(b){var f=null;null!=b&&(f=b.getName(),null!=f&&36<f.length&&(f=f.substring(0,34)+"..."));return f};EditorUi.prototype.createControlTab=function(b,f,m){var d=this.createTab();d.className="geTab geControlTab";null!=b&&d.setAttribute("title",b);b=document.createElement("div");b.className="geButton";b.style.backgroundImage="url("+f+")";d.appendChild(b);mxEvent.addListener(d,"click",m);return d};
EditorUi.prototype.createPageInsertTab=function(){return this.createControlTab(mxResources.get("insertPage"),Editor.plusImage,mxUtils.bind(this,function(b){try{this.insertPage()}catch(f){this.handleError(f)}mxEvent.consume(b)}))};
EditorUi.prototype.createLeftScrollTab=function(){return this.createControlTab(null,Editor.chevronLeftImage,mxUtils.bind(this,function(b){var f=Math.max(60,this.tabScroller.clientWidth/2);null!=this.tabScroller.scrollBy?this.tabScroller.scrollBy({left:-f,top:0,behavior:"smooth"}):this.tabScroller.scrollLeft-=f;mxEvent.consume(b)}))};
EditorUi.prototype.createRightScrollTab=function(){return this.createControlTab(null,Editor.chevronRightImage,mxUtils.bind(this,function(b){var f=Math.max(60,this.tabScroller.clientWidth/2);null!=this.tabScroller.scrollBy?this.tabScroller.scrollBy({left:f,top:0,behavior:"smooth"}):this.tabScroller.scrollLeft+=f;mxEvent.consume(b)}))};
-EditorUi.prototype.createPageMenuTab=function(){return this.createControlTab(mxResources.get("pages"),Editor.menuImage,mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.hideMenu();var f=new mxPopupMenu(mxUtils.bind(this,function(t,x){this.menus.get("pages").funct(t,x)}));f.smartSeparators=!0;f.showDisabled=!0;f.autoExpand=!0;f.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(f,arguments);f.destroy()});var m=mxEvent.getClientX(b),d=mxEvent.getClientY(b);f.popup(m,
-d,null,b);this.setCurrentMenu(f);mxEvent.consume(b)}))};EditorUi.prototype.createTabForPage=function(b,f){var m=this.createTab(),d=b.getName()||mxResources.get("untitled"),t=b.getId();m.setAttribute("title",d+(null!=t?" ("+t+")":"")+" ["+f+"]");f=document.createElement("span");f.style.maxWidth="160px";f.style.textOverflow="ellipsis";f.style.overflow="hidden";mxUtils.write(f,d);m.appendChild(f);this.addTabListeners(b,m);return m};
-EditorUi.prototype.addTabListeners=function(b,f){mxEvent.disableContextMenu(f);var m=this.editor.graph;mxEvent.addListener(f,"dblclick",mxUtils.bind(this,function(J){this.renamePage(b);mxEvent.consume(J)}));var d=document.createElement("div");d.style.backgroundImage="url("+Editor.thinExpandImage+")";d.className="geButton";f.appendChild(d);var t=!1,x=!1,v=mxUtils.bind(this,function(J){t=null!=this.currentMenu;x=b==this.currentPage;this.scrollToPage(b);m.isMouseDown||x||this.selectPage(b)}),B=mxUtils.bind(this,
-function(J){if(!m.isMouseDown&&(x&&(mxEvent.isTouchEvent(J)||mxEvent.getSource(J)==d)||mxEvent.isPopupTrigger(J))&&(m.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(J)||!t)){var N=new mxPopupMenu(this.createPageMenu(b));N.smartSeparators=!0;N.showDisabled=!0;N.autoExpand=!0;N.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(N,arguments);this.resetCurrentMenu();N.destroy()});var I=mxEvent.getClientX(J),c=mxEvent.getClientY(J);N.popup(I,c,null,J);
-this.setCurrentMenu(N,f)}mxEvent.consume(J)});mxEvent.addGestureListeners(d,v,null,B);mxEvent.addGestureListeners(f,v,null,B)};
+EditorUi.prototype.createPageMenuTab=function(){return this.createControlTab(mxResources.get("pages"),Editor.menuImage,mxUtils.bind(this,function(b){this.editor.graph.popupMenuHandler.hideMenu();var f=new mxPopupMenu(mxUtils.bind(this,function(q,x){this.menus.get("pages").funct(q,x)}));f.smartSeparators=!0;f.showDisabled=!0;f.autoExpand=!0;f.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(f,arguments);f.destroy()});var m=mxEvent.getClientX(b),d=mxEvent.getClientY(b);f.popup(m,
+d,null,b);this.setCurrentMenu(f);mxEvent.consume(b)}))};EditorUi.prototype.createTabForPage=function(b,f){var m=this.createTab(),d=b.getName()||mxResources.get("untitled"),q=b.getId();m.setAttribute("title",d+(null!=q?" ("+q+")":"")+" ["+f+"]");f=document.createElement("span");f.style.maxWidth="160px";f.style.textOverflow="ellipsis";f.style.overflow="hidden";mxUtils.write(f,d);m.appendChild(f);this.addTabListeners(b,m);return m};
+EditorUi.prototype.addTabListeners=function(b,f){mxEvent.disableContextMenu(f);var m=this.editor.graph;mxEvent.addListener(f,"dblclick",mxUtils.bind(this,function(I){this.renamePage(b);mxEvent.consume(I)}));var d=document.createElement("div");d.style.backgroundImage="url("+Editor.thinExpandImage+")";d.className="geButton";f.appendChild(d);var q=!1,x=!1,C=mxUtils.bind(this,function(I){q=null!=this.currentMenu;x=b==this.currentPage;this.scrollToPage(b);m.isMouseDown||x||this.selectPage(b)}),y=mxUtils.bind(this,
+function(I){if(!m.isMouseDown&&(x&&(mxEvent.isTouchEvent(I)||mxEvent.getSource(I)==d)||mxEvent.isPopupTrigger(I))&&(m.popupMenuHandler.hideMenu(),this.hideCurrentMenu(),!mxEvent.isTouchEvent(I)||!q)){var M=new mxPopupMenu(this.createPageMenu(b));M.smartSeparators=!0;M.showDisabled=!0;M.autoExpand=!0;M.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(M,arguments);this.resetCurrentMenu();M.destroy()});var H=mxEvent.getClientX(I),c=mxEvent.getClientY(I);M.popup(H,c,null,I);
+this.setCurrentMenu(M,f)}mxEvent.consume(I)});mxEvent.addGestureListeners(d,C,null,y);mxEvent.addGestureListeners(f,C,null,y)};
EditorUi.prototype.createPageMenu=function(b,f){return mxUtils.bind(this,function(m,d){1!=urlParams.embed&&(mxClient.IS_CHROMEAPP||EditorUi.isElectronApp||"draw.io"!=this.getServiceName()||m.addItem(mxResources.get("openInNewWindow"),null,mxUtils.bind(this,function(){this.editor.editAsNew(this.getFileData(!0,null,null,null,!0,!0))}),d));this.editor.graph.isEnabled()&&(m.addItem(mxResources.get("duplicate"),null,mxUtils.bind(this,function(){this.duplicatePage(b,mxResources.get("copyOf",[b.getName()]))}),
d),m.addSeparator(d),this.currentPage==b&&1<this.pages.length&&this.menus.addSubmenu("movePage",m,d,mxResources.get("move")),m.addItem(mxResources.get("delete"),null,mxUtils.bind(this,function(){this.removePage(b)}),d),m.addItem(mxResources.get("rename")+"...",null,mxUtils.bind(this,function(){this.renamePage(b,f)}),d))})};(function(){mxCodecRegistry.getCodec(ChangePageSetup).exclude.push("page")})();
(function(){var b=new mxObjectCodec(new MovePage,["ui"]);b.beforeDecode=function(f,m,d){d.ui=f.ui;return m};b.afterDecode=function(f,m,d){f=d.oldIndex;d.oldIndex=d.newIndex;d.newIndex=f;return d};mxCodecRegistry.register(b)})();(function(){var b=new mxObjectCodec(new RenamePage,["ui","page"]);b.beforeDecode=function(f,m,d){d.ui=f.ui;return m};b.afterDecode=function(f,m,d){f=d.previous;d.previous=d.name;d.name=f;return d};mxCodecRegistry.register(b)})();
-(function(){var b=new mxObjectCodec(new ChangePage,["ui","relatedPage","index","page","previousPage"]);b.afterEncode=function(f,m,d){d.setAttribute("relatedPage",m.relatedPage.getId());null==m.index&&(d.setAttribute("name",m.relatedPage.getName()),null!=m.relatedPage.viewState&&d.setAttribute("viewState",JSON.stringify(m.relatedPage.viewState,function(t,x){return 0>mxUtils.indexOf(EditorUi.transientViewStateProperties,t)?x:void 0})),null!=m.relatedPage.root&&f.encodeCell(m.relatedPage.root,d));return d};
-b.beforeDecode=function(f,m,d){d.ui=f.ui;d.relatedPage=d.ui.getPageById(m.getAttribute("relatedPage"));if(null==d.relatedPage){var t=m.ownerDocument.createElement("diagram");t.setAttribute("id",m.getAttribute("relatedPage"));t.setAttribute("name",m.getAttribute("name"));d.relatedPage=new DiagramPage(t);t=m.getAttribute("viewState");null!=t&&(d.relatedPage.viewState=JSON.parse(t),m.removeAttribute("viewState"));m=m.cloneNode(!0);t=m.firstChild;if(null!=t)for(d.relatedPage.root=f.decodeCell(t,!1),d=
-t.nextSibling,t.parentNode.removeChild(t),t=d;null!=t;){d=t.nextSibling;if(t.nodeType==mxConstants.NODETYPE_ELEMENT){var x=t.getAttribute("id");null==f.lookup(x)&&f.decodeCell(t)}t.parentNode.removeChild(t);t=d}}return m};b.afterDecode=function(f,m,d){d.index=d.previousIndex;return d};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(d,t,x,v,B){t=null!=t?t:!1;null==x&&(x=this.getFoldableCells(this.getSelectionCells(),d));this.stopEditing();this.model.beginUpdate();try{for(var J=x.slice(),N=0;N<x.length;N++)"1"==mxUtils.getValue(this.getCurrentCellStyle(x[N]),"treeFolding","0")&&this.foldTreeCell(d,x[N]);x=J;x=b.apply(this,arguments)}finally{this.model.endUpdate()}return x};Graph.prototype.foldTreeCell=function(d,t){this.model.beginUpdate();try{var x=
-[];this.traverse(t,!0,mxUtils.bind(this,function(B,J){var N=null!=J&&this.isTreeEdge(J);N&&x.push(J);B==t||null!=J&&!N||x.push(B);return(null==J||N)&&(B==t||!this.model.isCollapsed(B))}));this.model.setCollapsed(t,d);for(var v=0;v<x.length;v++)this.model.setVisible(x[v],!d)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(d){return!this.isEdgeIgnored(d)};Graph.prototype.getTreeEdges=function(d,t,x,v,B,J){return this.model.filterCells(this.getEdges(d,t,x,v,B,J),mxUtils.bind(this,
-function(N){return this.isTreeEdge(N)}))};Graph.prototype.getIncomingTreeEdges=function(d,t){return this.getTreeEdges(d,t,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(d,t){return this.getTreeEdges(d,t,!1,!0,!1)};var f=EditorUi.prototype.init;EditorUi.prototype.init=function(){f.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function d(H){return n.isVertex(H)&&x(H)}function t(H){var L=!1;null!=H&&(L="1"==
-l.getCurrentCellStyle(H).treeMoving);return L}function x(H){var L=!1;null!=H&&(H=n.getParent(H),L=l.view.getState(H),L="tree"==(null!=L?L.style:l.getCellStyle(H)).containerType);return L}function v(H){var L=!1;null!=H&&(H=n.getParent(H),L=l.view.getState(H),l.view.getState(H),L=null!=(null!=L?L.style:l.getCellStyle(H)).childLayout);return L}function B(H){H=l.view.getState(H);if(null!=H){var L=l.getIncomingTreeEdges(H.cell);if(0<L.length&&(L=l.view.getState(L[0]),null!=L&&(L=L.absolutePoints,null!=
-L&&0<L.length&&(L=L[L.length-1],null!=L)))){if(L.y==H.y&&Math.abs(L.x-H.getCenterX())<H.width/2)return mxConstants.DIRECTION_SOUTH;if(L.y==H.y+H.height&&Math.abs(L.x-H.getCenterX())<H.width/2)return mxConstants.DIRECTION_NORTH;if(L.x>H.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function J(H,L){L=null!=L?L:!0;l.model.beginUpdate();try{var K=l.model.getParent(H),k=l.getIncomingTreeEdges(H),y=l.cloneCells([k[0],H]);l.model.setTerminal(y[0],l.model.getTerminal(k[0],
-!0),!0);var F=B(H),M=K.geometry;F==mxConstants.DIRECTION_SOUTH||F==mxConstants.DIRECTION_NORTH?y[1].geometry.x+=L?H.geometry.width+10:-y[1].geometry.width-10:y[1].geometry.y+=L?H.geometry.height+10:-y[1].geometry.height-10;l.view.currentRoot!=K&&(y[1].geometry.x-=M.x,y[1].geometry.y-=M.y);var P=l.view.getState(H),R=l.view.scale;if(null!=P){var T=mxRectangle.fromRectangle(P);F==mxConstants.DIRECTION_SOUTH||F==mxConstants.DIRECTION_NORTH?T.x+=(L?H.geometry.width+10:-y[1].geometry.width-10)*R:T.y+=(L?
-H.geometry.height+10:-y[1].geometry.height-10)*R;var V=l.getOutgoingTreeEdges(l.model.getTerminal(k[0],!0));if(null!=V){for(var W=F==mxConstants.DIRECTION_SOUTH||F==mxConstants.DIRECTION_NORTH,X=M=k=0;X<V.length;X++){var Y=l.model.getTerminal(V[X],!1);if(F==B(Y)){var Z=l.view.getState(Y);Y!=H&&null!=Z&&(W&&L!=Z.getCenterX()<P.getCenterX()||!W&&L!=Z.getCenterY()<P.getCenterY())&&mxUtils.intersects(T,Z)&&(k=10+Math.max(k,(Math.min(T.x+T.width,Z.x+Z.width)-Math.max(T.x,Z.x))/R),M=10+Math.max(M,(Math.min(T.y+
-T.height,Z.y+Z.height)-Math.max(T.y,Z.y))/R))}}W?M=0:k=0;for(X=0;X<V.length;X++)if(Y=l.model.getTerminal(V[X],!1),F==B(Y)&&(Z=l.view.getState(Y),Y!=H&&null!=Z&&(W&&L!=Z.getCenterX()<P.getCenterX()||!W&&L!=Z.getCenterY()<P.getCenterY()))){var da=[];l.traverse(Z.cell,!0,function(ea,ka){var ba=null!=ka&&l.isTreeEdge(ka);ba&&da.push(ka);(null==ka||ba)&&da.push(ea);return null==ka||ba});l.moveCells(da,(L?1:-1)*k,(L?1:-1)*M)}}}return l.addCells(y,K)}finally{l.model.endUpdate()}}function N(H){l.model.beginUpdate();
-try{var L=B(H),K=l.getIncomingTreeEdges(H),k=l.cloneCells([K[0],H]);l.model.setTerminal(K[0],k[1],!1);l.model.setTerminal(k[0],k[1],!0);l.model.setTerminal(k[0],H,!1);var y=l.model.getParent(H),F=y.geometry,M=[];l.view.currentRoot!=y&&(k[1].geometry.x-=F.x,k[1].geometry.y-=F.y);l.traverse(H,!0,function(T,V){var W=null!=V&&l.isTreeEdge(V);W&&M.push(V);(null==V||W)&&M.push(T);return null==V||W});var P=H.geometry.width+40,R=H.geometry.height+40;L==mxConstants.DIRECTION_SOUTH?P=0:L==mxConstants.DIRECTION_NORTH?
-(P=0,R=-R):L==mxConstants.DIRECTION_WEST?(P=-P,R=0):L==mxConstants.DIRECTION_EAST&&(R=0);l.moveCells(M,P,R);return l.addCells(k,y)}finally{l.model.endUpdate()}}function I(H,L){l.model.beginUpdate();try{var K=l.model.getParent(H),k=l.getIncomingTreeEdges(H),y=B(H);0==k.length&&(k=[l.createEdge(K,null,"",null,null,l.createCurrentEdgeStyle())],y=L);var F=l.cloneCells([k[0],H]);l.model.setTerminal(F[0],H,!0);null==l.model.getTerminal(F[0],!1)&&(l.model.setTerminal(F[0],F[1],!1),l.applyNewEdgeStyle(F[1],
-[F[0]],y));k=l.getOutgoingTreeEdges(H);var M=K.geometry;L=[];l.view.currentRoot==K&&(M=new mxRectangle);for(var P=0;P<k.length;P++){var R=l.model.getTerminal(k[P],!1);null!=R&&L.push(R)}var T=l.view.getBounds(L),V=l.view.translate,W=l.view.scale;y==mxConstants.DIRECTION_SOUTH?(F[1].geometry.x=null==T?H.geometry.x+(H.geometry.width-F[1].geometry.width)/2:(T.x+T.width)/W-V.x-M.x+10,F[1].geometry.y+=F[1].geometry.height-M.y+40):y==mxConstants.DIRECTION_NORTH?(F[1].geometry.x=null==T?H.geometry.x+(H.geometry.width-
-F[1].geometry.width)/2:(T.x+T.width)/W-V.x+-M.x+10,F[1].geometry.y-=F[1].geometry.height+M.y+40):(F[1].geometry.x=y==mxConstants.DIRECTION_WEST?F[1].geometry.x-(F[1].geometry.width+M.x+40):F[1].geometry.x+(F[1].geometry.width-M.x+40),F[1].geometry.y=null==T?H.geometry.y+(H.geometry.height-F[1].geometry.height)/2:(T.y+T.height)/W-V.y+-M.y+10);return l.addCells(F,K)}finally{l.model.endUpdate()}}function c(H,L,K){H=l.getOutgoingTreeEdges(H);K=l.view.getState(K);var k=[];if(null!=K&&null!=H){for(var y=
-0;y<H.length;y++){var F=l.view.getState(l.model.getTerminal(H[y],!1));null!=F&&(!L&&Math.min(F.x+F.width,K.x+K.width)>=Math.max(F.x,K.x)||L&&Math.min(F.y+F.height,K.y+K.height)>=Math.max(F.y,K.y))&&k.push(F)}k.sort(function(M,P){return L?M.x+M.width-P.x-P.width:M.y+M.height-P.y-P.height})}return k}function e(H,L){var K=B(H),k=L==mxConstants.DIRECTION_EAST||L==mxConstants.DIRECTION_WEST;(K==mxConstants.DIRECTION_EAST||K==mxConstants.DIRECTION_WEST)==k&&K!=L?g.actions.get("selectParent").funct():K==
-L?(L=l.getOutgoingTreeEdges(H),null!=L&&0<L.length&&l.setSelectionCell(l.model.getTerminal(L[0],!1))):(K=l.getIncomingTreeEdges(H),null!=K&&0<K.length&&(k=c(l.model.getTerminal(K[0],!0),k,H),H=l.view.getState(H),null!=H&&(H=mxUtils.indexOf(k,H),0<=H&&(H+=L==mxConstants.DIRECTION_NORTH||L==mxConstants.DIRECTION_WEST?-1:1,0<=H&&H<=k.length-1&&l.setSelectionCell(k[H].cell)))))}var g=this,l=g.editor.graph,n=l.getModel(),u=g.menus.createPopupMenu;g.menus.createPopupMenu=function(H,L,K){u.apply(this,arguments);
-if(1==l.getSelectionCount()){L=l.getSelectionCell();var k=l.getOutgoingTreeEdges(L);H.addSeparator();0<k.length&&(d(l.getSelectionCell())&&this.addMenuItems(H,["selectChildren"],null,K),this.addMenuItems(H,["selectDescendants"],null,K));d(l.getSelectionCell())?(H.addSeparator(),0<l.getIncomingTreeEdges(L).length&&this.addMenuItems(H,["selectSiblings","selectParent"],null,K)):0<l.model.getEdgeCount(L)&&this.addMenuItems(H,["selectConnections"],null,K)}};g.actions.addAction("selectChildren",function(H){if(l.isEnabled()&&
-1==l.getSelectionCount()){var L=l.getSelectionCell();H=mxEvent.isControlDown(H)?null:l.getOutgoingTreeEdges(L);if(null!=H&&0<H.length){L=[];for(var K=0;K<H.length;K++)L.push(l.model.getTerminal(H[K],!1));l.setSelectionCells(L)}else l.setSelectionCells(l.model.getChildren(L))}},null,null,"Alt+Shift+C");g.actions.addAction("selectDescendants",function(H){var L=l.getSelectionCell();if(l.isEnabled()&&null!=L){var K=[];mxEvent.isControlDown(H)||l.traverse(L,!0,function(k,y){var F=null!=y&&l.isTreeEdge(y);
-F&&mxEvent.isControlDown(H)&&K.push(y);(null==y||F)&&K.push(k);return null==y||F});if(0==K.length||1==K.length&&K[0]==L)K=l.model.getDescendants(L);l.setSelectionCells(K)}},null,null,"Alt+Shift+X");g.actions.addAction("selectParent",function(H){var L=l.getSelectionCell();l.isEnabled()&&null!=L&&(H=mxEvent.isControlDown(H)?null:l.getIncomingTreeEdges(L),null!=H&&0<H.length?l.setSelectionCell(l.model.getTerminal(H[0],!0)):l.selectParentCell())},null,null,"Alt+Shift+P");g.actions.addAction("selectSiblings",
-function(H){if(l.isEnabled()&&1==l.getSelectionCount()){var L=l.getSelectionCell(),K=mxEvent.isControlDown(H)?null:l.getIncomingTreeEdges(L);H=[];if(null!=K&&0<K.length&&(K=l.getOutgoingTreeEdges(l.model.getTerminal(K[0],!0)),null!=K))for(var k=0;k<K.length;k++)H.push(l.model.getTerminal(K[k],!1));0==H.length&&(H=l.model.getChildren(l.model.getParent(L)));l.setSelectionCells(H)}},null,null,"Alt+Shift+S");var z=l.removeCells;l.removeCells=function(H,L){L=null!=L?L:!0;null==H&&(H=this.getDeletableCells(this.getSelectionCells()));
-L&&(H=this.getDeletableCells(this.addAllEdges(H)));for(var K=[],k=0;k<H.length;k++){var y=H[k];n.isEdge(y)&&x(y)&&(K.push(y),y=n.getTerminal(y,!1));if(d(y)){var F=[];l.traverse(y,!0,function(M,P){var R=null!=P&&l.isTreeEdge(P);R&&F.push(P);(null==P||R)&&F.push(M);return null==P||R});0<F.length&&(K=K.concat(F),y=l.getIncomingTreeEdges(H[k]),H=H.concat(y))}else null!=y&&K.push(H[k])}H=K;return z.apply(this,arguments)};g.hoverIcons.getStateAt=function(H,L,K){return d(H.cell)?null:this.graph.view.getState(this.graph.getCellAt(L,
-K))};var D=l.duplicateCells;l.duplicateCells=function(H,L){H=null!=H?H:this.getSelectionCells();for(var K=H.slice(0),k=0;k<K.length;k++){var y=l.view.getState(K[k]);if(null!=y&&d(y.cell)){var F=l.getIncomingTreeEdges(y.cell);for(y=0;y<F.length;y++)mxUtils.remove(F[y],H)}}this.model.beginUpdate();try{var M=D.call(this,H,L);if(M.length==H.length)for(k=0;k<H.length;k++)if(d(H[k])){var P=l.getIncomingTreeEdges(M[k]);F=l.getIncomingTreeEdges(H[k]);if(0==P.length&&0<F.length){var R=this.cloneCell(F[0]);
-this.addEdge(R,l.getDefaultParent(),this.model.getTerminal(F[0],!0),M[k])}}}finally{this.model.endUpdate()}return M};var C=l.moveCells;l.moveCells=function(H,L,K,k,y,F,M){for(var P=null,R=[],T=0;T<H.length;T++)(t(H[T])||d(H[T]))&&!v(H[T])&&this.isCellCollapsed(H[T])?R=R.concat(this.getSubtree(H[T])):R.push(H[T]);H=mxUtils.removeDuplicates(R);this.model.beginUpdate();try{R=y;var V=this.getCurrentCellStyle(y);if(null!=H&&d(y)&&"1"==mxUtils.getValue(V,"treeFolding","0")){for(T=0;T<H.length;T++)if(d(H[T])||
-l.model.isEdge(H[T])&&null==l.model.getTerminal(H[T],!0)){y=l.model.getParent(H[T]);break}if(null!=R&&y!=R&&null!=this.view.getState(H[0])){var W=l.getIncomingTreeEdges(H[0]);if(0<W.length){var X=l.view.getState(l.model.getTerminal(W[0],!0));if(null!=X){var Y=l.view.getState(R);null!=Y&&(L=(Y.getCenterX()-X.getCenterX())/l.view.scale,K=(Y.getCenterY()-X.getCenterY())/l.view.scale)}}}}P=C.apply(this,arguments);if(null!=P&&null!=H&&P.length==H.length)for(T=0;T<P.length;T++)if(this.model.isEdge(P[T]))d(R)&&
-0>mxUtils.indexOf(P,this.model.getTerminal(P[T],!0))&&this.model.setTerminal(P[T],R,!0);else if(d(H[T])&&(W=l.getIncomingTreeEdges(H[T]),0<W.length))if(!k)d(R)&&0>mxUtils.indexOf(H,this.model.getTerminal(W[0],!0))&&this.model.setTerminal(W[0],R,!0);else if(0==l.getIncomingTreeEdges(P[T]).length){V=R;if(null==V||V==l.model.getParent(H[T]))V=l.model.getTerminal(W[0],!0);k=this.cloneCell(W[0]);this.addEdge(k,l.getDefaultParent(),V,P[T])}}finally{this.model.endUpdate()}return P};if(null!=g.sidebar){var A=
-g.sidebar.dropAndConnect;g.sidebar.dropAndConnect=function(H,L,K,k){var y=l.model,F=null;y.beginUpdate();try{if(F=A.apply(this,arguments),d(H))for(var M=0;M<F.length;M++)if(y.isEdge(F[M])&&null==y.getTerminal(F[M],!0)){y.setTerminal(F[M],H,!0);var P=l.getCellGeometry(F[M]);P.points=null;null!=P.getTerminalPoint(!0)&&P.setTerminalPoint(null,!0)}}finally{y.endUpdate()}return F}}var Q={67:g.actions.get("selectChildren"),88:g.actions.get("selectDescendants"),80:g.actions.get("selectParent"),83:g.actions.get("selectSiblings")},
-S={67:g.actions.get("copyStyle"),86:g.actions.get("pasteStyle")},U=g.onKeyDown;g.onKeyDown=function(H){try{var L=l.getSelectionCell();if(l.isEnabled()&&!l.isEditing()&&null!=L){var K=mxEvent.isAltDown(H)&&mxEvent.isShiftDown(H)?Q[H.keyCode]:mxEvent.isAltDown(H)?S[H.keyCode]:null;null!=K?(K.funct(H),mxEvent.consume(H)):d(L)&&(K=null,0<l.getIncomingTreeEdges(L).length&&(9==H.which?K=mxEvent.isShiftDown(H)?N(L):I(L):13==H.which&&(K=J(L,!mxEvent.isShiftDown(H)))),null!=K&&0<K.length?(1==K.length&&l.model.isEdge(K[0])?
-l.setSelectionCell(l.model.getTerminal(K[0],!1)):l.setSelectionCell(K[K.length-1]),null!=g.hoverIcons&&g.hoverIcons.update(l.view.getState(L)),l.startEditingAtCell(L),mxEvent.consume(H)):37==H.keyCode?(e(L,mxConstants.DIRECTION_WEST),mxEvent.consume(H)):38==H.keyCode?(e(L,mxConstants.DIRECTION_NORTH),mxEvent.consume(H)):39==H.keyCode?(e(L,mxConstants.DIRECTION_EAST),mxEvent.consume(H)):40==H.keyCode&&(e(L,mxConstants.DIRECTION_SOUTH),mxEvent.consume(H)))}}catch(k){g.handleError(k)}mxEvent.isConsumed(H)||
-U.apply(this,arguments)};var O=l.connectVertex;l.connectVertex=function(H,L,K,k,y,F,M){var P=l.getIncomingTreeEdges(H);if(d(H)){var R=B(H),T=R==mxConstants.DIRECTION_EAST||R==mxConstants.DIRECTION_WEST,V=L==mxConstants.DIRECTION_EAST||L==mxConstants.DIRECTION_WEST;return R==L||0==P.length?I(H,L):T==V?N(H):J(H,L!=mxConstants.DIRECTION_NORTH&&L!=mxConstants.DIRECTION_WEST)}return O.apply(this,arguments)};l.getSubtree=function(H){var L=[H];!t(H)&&!d(H)||v(H)||l.traverse(H,!0,function(K,k){var y=null!=
-k&&l.isTreeEdge(k);y&&0>mxUtils.indexOf(L,k)&&L.push(k);(null==k||y)&&0>mxUtils.indexOf(L,K)&&L.push(K);return null==k||y});return L};var p=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){p.apply(this,arguments);(t(this.state.cell)||d(this.state.cell))&&!v(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(H){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(H),mxEvent.getClientY(H),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=
-mxEvent.isMouseEvent(H);this.graph.isMouseDown=!0;g.hoverIcons.reset();mxEvent.consume(H)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var q=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){q.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 G=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(H){G.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=H?"":"none")};var E=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(H,L){E.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=
-null)}};if("undefined"!==typeof Sidebar){var m=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var d=m.apply(this,arguments),t=this.graph,x=this;return d.concat([this.addEntry("tree container",function(){var v=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");v.vertex=!0;var B=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
-B.vertex=!0;var J=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');J.vertex=!0;var N=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");N.geometry.relative=!0;N.edge=!0;B.insertEdge(N,!0);J.insertEdge(N,!1);v.insert(N);v.insert(B);v.insert(J);
-return x.createVertexTemplateFromCells([v],v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var v=new mxCell("Mindmap",new mxGeometry(0,0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");v.vertex=!0;var B=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};');
-B.vertex=!0;var J=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};');J.vertex=!0;var N=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
-N.geometry.relative=!0;N.edge=!0;B.insertEdge(N,!0);J.insertEdge(N,!1);var I=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};');
-I.vertex=!0;var c=new mxCell("",new mxGeometry(0,0,0,0),N.style);c.geometry.relative=!0;c.edge=!0;B.insertEdge(c,!0);I.insertEdge(c,!1);var e=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};');
-e.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),N.style);g.geometry.relative=!0;g.edge=!0;B.insertEdge(g,!0);e.insertEdge(g,!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 n=new mxCell("",new mxGeometry(0,0,0,0),N.style);n.geometry.relative=!0;n.edge=!0;B.insertEdge(n,!0);l.insertEdge(n,!1);v.insert(N);v.insert(c);v.insert(g);v.insert(n);v.insert(B);v.insert(J);v.insert(I);v.insert(e);v.insert(l);return x.createVertexTemplateFromCells([v],v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var v=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;');
-v.vertex=!0;return x.createVertexTemplateFromCells([v],v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree mindmap mindmaps branch",function(){var v=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};');
-v.vertex=!0;var B=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");B.geometry.setTerminalPoint(new mxPoint(-40,40),!0);B.geometry.relative=!0;B.edge=!0;v.insertEdge(B,!1);return x.createVertexTemplateFromCells([v,B],v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var v=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};');v.vertex=!0;var B=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
-B.geometry.setTerminalPoint(new mxPoint(-40,40),!0);B.geometry.relative=!0;B.edge=!0;v.insertEdge(B,!1);return x.createVertexTemplateFromCells([v,B],v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree orgchart organization division",function(){var v=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');v.vertex=!0;var B=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"};');t.setAttributeForCell(B,"treeRoot","1");B.vertex=!0;var J=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"};');J.vertex=!0;var N=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
-N.geometry.relative=!0;N.edge=!0;B.insertEdge(N,!0);J.insertEdge(N,!1);var I=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"};');I.vertex=!0;var c=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");c.geometry.relative=
-!0;c.edge=!0;B.insertEdge(c,!0);I.insertEdge(c,!1);v.insert(N);v.insert(c);v.insert(B);v.insert(J);v.insert(I);return x.createVertexTemplateFromCells([v],v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree root",function(){var v=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"};');t.setAttributeForCell(v,"treeRoot","1");v.vertex=!0;return x.createVertexTemplateFromCells([v],
-v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree division",function(){var v=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"};');v.vertex=!0;var B=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
-B.geometry.setTerminalPoint(new mxPoint(0,0),!0);B.geometry.relative=!0;B.edge=!0;v.insertEdge(B,!1);return x.createVertexTemplateFromCells([v,B],v.geometry.width,v.geometry.height,v.value)}),this.addEntry("tree sub sections",function(){var v=new mxCell("Sub Section",new mxGeometry(0,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");v.vertex=!0;var B=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;");
-B.geometry.setTerminalPoint(new mxPoint(110,-40),!0);B.geometry.relative=!0;B.edge=!0;v.insertEdge(B,!1);var J=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");J.vertex=!0;var N=new mxCell("",new mxGeometry(0,0,0,0),B.style);N.geometry.setTerminalPoint(new mxPoint(110,-40),!0);N.geometry.relative=!0;N.edge=!0;J.insertEdge(N,!1);return x.createVertexTemplateFromCells([B,N,v,J],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows;
-EditorUi.initMinimalTheme=function(){function b(I,c){if(EditorUi.windowed){var e=I.editor.graph;e.popupMenuHandler.hideMenu();null==I.formatWindow?(I.formatWindow=new WrapperWindow(I,"",Math.max(10,I.diagramContainer.clientWidth-248),60,240,Math.min(566,e.container.clientHeight-10),function(g){g.className="geSidebarContainer geFormatContainer";I.createFormat(g).init()}),I.dependsOnLanguage(mxUtils.bind(this,function(){I.formatWindow.window.setTitle(mxResources.get("format"))})),I.formatWindow.window.addListener(mxEvent.SHOW,
-mxUtils.bind(this,function(){I.formatWindow.window.fit()})),I.formatWindow.window.minimumSize=new mxRectangle(0,0,240,80)):I.formatWindow.window.setVisible(null!=c?c:!I.formatWindow.window.isVisible())}else null==I.formatElt&&(I.formatElt=I.createSidebarContainer(),I.createFormat(I.formatElt).init(),I.formatElt.style.border="none",I.formatElt.style.width="240px",I.formatElt.style.borderLeftWidth="1px",I.formatElt.style.borderLeftStyle="solid",I.formatElt.style.right="0px"),c=I.diagramContainer.parentNode,
-null!=I.formatElt.parentNode?(I.formatElt.parentNode.removeChild(I.formatElt),c.style.right="0px"):(c.parentNode.appendChild(I.formatElt),c.style.right=I.formatElt.style.width)}function f(I,c){if(EditorUi.windowed){var e=I.editor.graph;e.popupMenuHandler.hideMenu();null==I.sidebarWindow?(I.sidebarWindow=new WrapperWindow(I,"",10,56,Math.min(e.container.clientWidth-10,218)-6,Math.min(e.container.clientHeight-40,650)-6,function(g){I.createShapesPanel(g)}),I.dependsOnLanguage(mxUtils.bind(this,function(){I.sidebarWindow.window.setTitle(mxResources.get("shapes"))})),
-I.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){I.sidebarWindow.window.fit()})),I.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90),I.sidebarWindow.window.setVisible(!0),isLocalStorage&&I.getLocalData("sidebar",function(g){I.sidebar.showEntries(g,null,!0)}),I.restoreLibraries()):I.sidebarWindow.window.setVisible(null!=c?c:!I.sidebarWindow.window.isVisible())}else null==I.sidebarElt&&(I.sidebarElt=I.createSidebarContainer(),I.createShapesPanel(I.sidebarElt),I.sidebarElt.style.border=
-"none",I.sidebarElt.style.width="210px",I.sidebarElt.style.borderRight="1px solid gray"),c=I.diagramContainer.parentNode,null!=I.sidebarElt.parentNode?(I.sidebarElt.parentNode.removeChild(I.sidebarElt),c.style.left="0px"):(c.parentNode.appendChild(I.sidebarElt),c.style.left=I.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var m=0;try{m=window.innerWidth||document.documentElement.clientWidth||
-document.body.clientWidth}catch(I){}Menus.prototype.autoPopup=!1;mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'<path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke-width="2" style="stroke-opacity:0.4" stroke="#ffffff"/><path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke="#29b6f2"/>');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=
+(function(){var b=new mxObjectCodec(new ChangePage,["ui","relatedPage","index","page","previousPage"]);b.afterEncode=function(f,m,d){d.setAttribute("relatedPage",m.relatedPage.getId());null==m.index&&(d.setAttribute("name",m.relatedPage.getName()),null!=m.relatedPage.viewState&&d.setAttribute("viewState",JSON.stringify(m.relatedPage.viewState,function(q,x){return 0>mxUtils.indexOf(EditorUi.transientViewStateProperties,q)?x:void 0})),null!=m.relatedPage.root&&f.encodeCell(m.relatedPage.root,d));return d};
+b.beforeDecode=function(f,m,d){d.ui=f.ui;d.relatedPage=d.ui.getPageById(m.getAttribute("relatedPage"));if(null==d.relatedPage){var q=m.ownerDocument.createElement("diagram");q.setAttribute("id",m.getAttribute("relatedPage"));q.setAttribute("name",m.getAttribute("name"));d.relatedPage=new DiagramPage(q);q=m.getAttribute("viewState");null!=q&&(d.relatedPage.viewState=JSON.parse(q),m.removeAttribute("viewState"));m=m.cloneNode(!0);q=m.firstChild;if(null!=q)for(d.relatedPage.root=f.decodeCell(q,!1),d=
+q.nextSibling,q.parentNode.removeChild(q),q=d;null!=q;){d=q.nextSibling;if(q.nodeType==mxConstants.NODETYPE_ELEMENT){var x=q.getAttribute("id");null==f.lookup(x)&&f.decodeCell(q)}q.parentNode.removeChild(q);q=d}}return m};b.afterDecode=function(f,m,d){d.index=d.previousIndex;return d};mxCodecRegistry.register(b)})();(function(){var b=Graph.prototype.foldCells;Graph.prototype.foldCells=function(d,q,x,C,y){q=null!=q?q:!1;null==x&&(x=this.getFoldableCells(this.getSelectionCells(),d));this.stopEditing();this.model.beginUpdate();try{for(var I=x.slice(),M=0;M<x.length;M++)"1"==mxUtils.getValue(this.getCurrentCellStyle(x[M]),"treeFolding","0")&&this.foldTreeCell(d,x[M]);x=I;x=b.apply(this,arguments)}finally{this.model.endUpdate()}return x};Graph.prototype.foldTreeCell=function(d,q){this.model.beginUpdate();try{var x=
+[];this.traverse(q,!0,mxUtils.bind(this,function(y,I){var M=null!=I&&this.isTreeEdge(I);M&&x.push(I);y==q||null!=I&&!M||x.push(y);return(null==I||M)&&(y==q||!this.model.isCollapsed(y))}));this.model.setCollapsed(q,d);for(var C=0;C<x.length;C++)this.model.setVisible(x[C],!d)}finally{this.model.endUpdate()}};Graph.prototype.isTreeEdge=function(d){return!this.isEdgeIgnored(d)};Graph.prototype.getTreeEdges=function(d,q,x,C,y,I){return this.model.filterCells(this.getEdges(d,q,x,C,y,I),mxUtils.bind(this,
+function(M){return this.isTreeEdge(M)}))};Graph.prototype.getIncomingTreeEdges=function(d,q){return this.getTreeEdges(d,q,!0,!1,!1)};Graph.prototype.getOutgoingTreeEdges=function(d,q){return this.getTreeEdges(d,q,!1,!0,!1)};var f=EditorUi.prototype.init;EditorUi.prototype.init=function(){f.apply(this,arguments);this.editor.isChromelessView()&&!this.editor.editable||this.addTrees()};EditorUi.prototype.addTrees=function(){function d(F){return p.isVertex(F)&&x(F)}function q(F){var J=!1;null!=F&&(J="1"==
+l.getCurrentCellStyle(F).treeMoving);return J}function x(F){var J=!1;null!=F&&(F=p.getParent(F),J=l.view.getState(F),J="tree"==(null!=J?J.style:l.getCellStyle(F)).containerType);return J}function C(F){var J=!1;null!=F&&(F=p.getParent(F),J=l.view.getState(F),l.view.getState(F),J=null!=(null!=J?J.style:l.getCellStyle(F)).childLayout);return J}function y(F){F=l.view.getState(F);if(null!=F){var J=l.getIncomingTreeEdges(F.cell);if(0<J.length&&(J=l.view.getState(J[0]),null!=J&&(J=J.absolutePoints,null!=
+J&&0<J.length&&(J=J[J.length-1],null!=J)))){if(J.y==F.y&&Math.abs(J.x-F.getCenterX())<F.width/2)return mxConstants.DIRECTION_SOUTH;if(J.y==F.y+F.height&&Math.abs(J.x-F.getCenterX())<F.width/2)return mxConstants.DIRECTION_NORTH;if(J.x>F.getCenterX())return mxConstants.DIRECTION_WEST}}return mxConstants.DIRECTION_EAST}function I(F,J){J=null!=J?J:!0;l.model.beginUpdate();try{var K=l.model.getParent(F),k=l.getIncomingTreeEdges(F),v=l.cloneCells([k[0],F]);l.model.setTerminal(v[0],l.model.getTerminal(k[0],
+!0),!0);var G=y(F),N=K.geometry;G==mxConstants.DIRECTION_SOUTH||G==mxConstants.DIRECTION_NORTH?v[1].geometry.x+=J?F.geometry.width+10:-v[1].geometry.width-10:v[1].geometry.y+=J?F.geometry.height+10:-v[1].geometry.height-10;l.view.currentRoot!=K&&(v[1].geometry.x-=N.x,v[1].geometry.y-=N.y);var O=l.view.getState(F),Q=l.view.scale;if(null!=O){var S=mxRectangle.fromRectangle(O);G==mxConstants.DIRECTION_SOUTH||G==mxConstants.DIRECTION_NORTH?S.x+=(J?F.geometry.width+10:-v[1].geometry.width-10)*Q:S.y+=(J?
+F.geometry.height+10:-v[1].geometry.height-10)*Q;var V=l.getOutgoingTreeEdges(l.model.getTerminal(k[0],!0));if(null!=V){for(var W=G==mxConstants.DIRECTION_SOUTH||G==mxConstants.DIRECTION_NORTH,X=N=k=0;X<V.length;X++){var Z=l.model.getTerminal(V[X],!1);if(G==y(Z)){var Y=l.view.getState(Z);Z!=F&&null!=Y&&(W&&J!=Y.getCenterX()<O.getCenterX()||!W&&J!=Y.getCenterY()<O.getCenterY())&&mxUtils.intersects(S,Y)&&(k=10+Math.max(k,(Math.min(S.x+S.width,Y.x+Y.width)-Math.max(S.x,Y.x))/Q),N=10+Math.max(N,(Math.min(S.y+
+S.height,Y.y+Y.height)-Math.max(S.y,Y.y))/Q))}}W?N=0:k=0;for(X=0;X<V.length;X++)if(Z=l.model.getTerminal(V[X],!1),G==y(Z)&&(Y=l.view.getState(Z),Z!=F&&null!=Y&&(W&&J!=Y.getCenterX()<O.getCenterX()||!W&&J!=Y.getCenterY()<O.getCenterY()))){var ea=[];l.traverse(Y.cell,!0,function(ca,ka){var ba=null!=ka&&l.isTreeEdge(ka);ba&&ea.push(ka);(null==ka||ba)&&ea.push(ca);return null==ka||ba});l.moveCells(ea,(J?1:-1)*k,(J?1:-1)*N)}}}return l.addCells(v,K)}finally{l.model.endUpdate()}}function M(F){l.model.beginUpdate();
+try{var J=y(F),K=l.getIncomingTreeEdges(F),k=l.cloneCells([K[0],F]);l.model.setTerminal(K[0],k[1],!1);l.model.setTerminal(k[0],k[1],!0);l.model.setTerminal(k[0],F,!1);var v=l.model.getParent(F),G=v.geometry,N=[];l.view.currentRoot!=v&&(k[1].geometry.x-=G.x,k[1].geometry.y-=G.y);l.traverse(F,!0,function(S,V){var W=null!=V&&l.isTreeEdge(V);W&&N.push(V);(null==V||W)&&N.push(S);return null==V||W});var O=F.geometry.width+40,Q=F.geometry.height+40;J==mxConstants.DIRECTION_SOUTH?O=0:J==mxConstants.DIRECTION_NORTH?
+(O=0,Q=-Q):J==mxConstants.DIRECTION_WEST?(O=-O,Q=0):J==mxConstants.DIRECTION_EAST&&(Q=0);l.moveCells(N,O,Q);return l.addCells(k,v)}finally{l.model.endUpdate()}}function H(F,J){l.model.beginUpdate();try{var K=l.model.getParent(F),k=l.getIncomingTreeEdges(F),v=y(F);0==k.length&&(k=[l.createEdge(K,null,"",null,null,l.createCurrentEdgeStyle())],v=J);var G=l.cloneCells([k[0],F]);l.model.setTerminal(G[0],F,!0);null==l.model.getTerminal(G[0],!1)&&(l.model.setTerminal(G[0],G[1],!1),l.applyNewEdgeStyle(G[1],
+[G[0]],v));k=l.getOutgoingTreeEdges(F);var N=K.geometry;J=[];l.view.currentRoot==K&&(N=new mxRectangle);for(var O=0;O<k.length;O++){var Q=l.model.getTerminal(k[O],!1);null!=Q&&J.push(Q)}var S=l.view.getBounds(J),V=l.view.translate,W=l.view.scale;v==mxConstants.DIRECTION_SOUTH?(G[1].geometry.x=null==S?F.geometry.x+(F.geometry.width-G[1].geometry.width)/2:(S.x+S.width)/W-V.x-N.x+10,G[1].geometry.y+=G[1].geometry.height-N.y+40):v==mxConstants.DIRECTION_NORTH?(G[1].geometry.x=null==S?F.geometry.x+(F.geometry.width-
+G[1].geometry.width)/2:(S.x+S.width)/W-V.x+-N.x+10,G[1].geometry.y-=G[1].geometry.height+N.y+40):(G[1].geometry.x=v==mxConstants.DIRECTION_WEST?G[1].geometry.x-(G[1].geometry.width+N.x+40):G[1].geometry.x+(G[1].geometry.width-N.x+40),G[1].geometry.y=null==S?F.geometry.y+(F.geometry.height-G[1].geometry.height)/2:(S.y+S.height)/W-V.y+-N.y+10);return l.addCells(G,K)}finally{l.model.endUpdate()}}function c(F,J,K){F=l.getOutgoingTreeEdges(F);K=l.view.getState(K);var k=[];if(null!=K&&null!=F){for(var v=
+0;v<F.length;v++){var G=l.view.getState(l.model.getTerminal(F[v],!1));null!=G&&(!J&&Math.min(G.x+G.width,K.x+K.width)>=Math.max(G.x,K.x)||J&&Math.min(G.y+G.height,K.y+K.height)>=Math.max(G.y,K.y))&&k.push(G)}k.sort(function(N,O){return J?N.x+N.width-O.x-O.width:N.y+N.height-O.y-O.height})}return k}function e(F,J){var K=y(F),k=J==mxConstants.DIRECTION_EAST||J==mxConstants.DIRECTION_WEST;(K==mxConstants.DIRECTION_EAST||K==mxConstants.DIRECTION_WEST)==k&&K!=J?g.actions.get("selectParent").funct():K==
+J?(J=l.getOutgoingTreeEdges(F),null!=J&&0<J.length&&l.setSelectionCell(l.model.getTerminal(J[0],!1))):(K=l.getIncomingTreeEdges(F),null!=K&&0<K.length&&(k=c(l.model.getTerminal(K[0],!0),k,F),F=l.view.getState(F),null!=F&&(F=mxUtils.indexOf(k,F),0<=F&&(F+=J==mxConstants.DIRECTION_NORTH||J==mxConstants.DIRECTION_WEST?-1:1,0<=F&&F<=k.length-1&&l.setSelectionCell(k[F].cell)))))}var g=this,l=g.editor.graph,p=l.getModel(),u=g.menus.createPopupMenu;g.menus.createPopupMenu=function(F,J,K){u.apply(this,arguments);
+if(1==l.getSelectionCount()){J=l.getSelectionCell();var k=l.getOutgoingTreeEdges(J);F.addSeparator();0<k.length&&(d(l.getSelectionCell())&&this.addMenuItems(F,["selectChildren"],null,K),this.addMenuItems(F,["selectDescendants"],null,K));d(l.getSelectionCell())?(F.addSeparator(),0<l.getIncomingTreeEdges(J).length&&this.addMenuItems(F,["selectSiblings","selectParent"],null,K)):0<l.model.getEdgeCount(J)&&this.addMenuItems(F,["selectConnections"],null,K)}};g.actions.addAction("selectChildren",function(F){if(l.isEnabled()&&
+1==l.getSelectionCount()){var J=l.getSelectionCell();F=mxEvent.isControlDown(F)?null:l.getOutgoingTreeEdges(J);if(null!=F&&0<F.length){J=[];for(var K=0;K<F.length;K++)J.push(l.model.getTerminal(F[K],!1));l.setSelectionCells(J)}else l.setSelectionCells(l.model.getChildren(J))}},null,null,"Alt+Shift+C");g.actions.addAction("selectDescendants",function(F){var J=l.getSelectionCell();if(l.isEnabled()&&null!=J){var K=[];mxEvent.isControlDown(F)||l.traverse(J,!0,function(k,v){var G=null!=v&&l.isTreeEdge(v);
+G&&mxEvent.isControlDown(F)&&K.push(v);(null==v||G)&&K.push(k);return null==v||G});if(0==K.length||1==K.length&&K[0]==J)K=l.model.getDescendants(J);l.setSelectionCells(K)}},null,null,"Alt+Shift+X");g.actions.addAction("selectParent",function(F){var J=l.getSelectionCell();l.isEnabled()&&null!=J&&(F=mxEvent.isControlDown(F)?null:l.getIncomingTreeEdges(J),null!=F&&0<F.length?l.setSelectionCell(l.model.getTerminal(F[0],!0)):l.selectParentCell())},null,null,"Alt+Shift+P");g.actions.addAction("selectSiblings",
+function(F){if(l.isEnabled()&&1==l.getSelectionCount()){var J=l.getSelectionCell(),K=mxEvent.isControlDown(F)?null:l.getIncomingTreeEdges(J);F=[];if(null!=K&&0<K.length&&(K=l.getOutgoingTreeEdges(l.model.getTerminal(K[0],!0)),null!=K))for(var k=0;k<K.length;k++)F.push(l.model.getTerminal(K[k],!1));0==F.length&&(F=l.model.getChildren(l.model.getParent(J)));l.setSelectionCells(F)}},null,null,"Alt+Shift+S");var z=l.removeCells;l.removeCells=function(F,J){J=null!=J?J:!0;null==F&&(F=this.getDeletableCells(this.getSelectionCells()));
+J&&(F=this.getDeletableCells(this.addAllEdges(F)));for(var K=[],k=0;k<F.length;k++){var v=F[k];p.isEdge(v)&&x(v)&&(K.push(v),v=p.getTerminal(v,!1));if(d(v)){var G=[];l.traverse(v,!0,function(N,O){var Q=null!=O&&l.isTreeEdge(O);Q&&G.push(O);(null==O||Q)&&G.push(N);return null==O||Q});0<G.length&&(K=K.concat(G),v=l.getIncomingTreeEdges(F[k]),F=F.concat(v))}else null!=v&&K.push(F[k])}F=K;return z.apply(this,arguments)};g.hoverIcons.getStateAt=function(F,J,K){return d(F.cell)?null:this.graph.view.getState(this.graph.getCellAt(J,
+K))};var E=l.duplicateCells;l.duplicateCells=function(F,J){F=null!=F?F:this.getSelectionCells();for(var K=F.slice(0),k=0;k<K.length;k++){var v=l.view.getState(K[k]);if(null!=v&&d(v.cell)){var G=l.getIncomingTreeEdges(v.cell);for(v=0;v<G.length;v++)mxUtils.remove(G[v],F)}}this.model.beginUpdate();try{var N=E.call(this,F,J);if(N.length==F.length)for(k=0;k<F.length;k++)if(d(F[k])){var O=l.getIncomingTreeEdges(N[k]);G=l.getIncomingTreeEdges(F[k]);if(0==O.length&&0<G.length){var Q=this.cloneCell(G[0]);
+this.addEdge(Q,l.getDefaultParent(),this.model.getTerminal(G[0],!0),N[k])}}}finally{this.model.endUpdate()}return N};var D=l.moveCells;l.moveCells=function(F,J,K,k,v,G,N){for(var O=null,Q=[],S=0;S<F.length;S++)(q(F[S])||d(F[S]))&&!C(F[S])&&this.isCellCollapsed(F[S])?Q=Q.concat(this.getSubtree(F[S])):Q.push(F[S]);F=mxUtils.removeDuplicates(Q);this.model.beginUpdate();try{Q=v;var V=this.getCurrentCellStyle(v);if(null!=F&&d(v)&&"1"==mxUtils.getValue(V,"treeFolding","0")){for(S=0;S<F.length;S++)if(d(F[S])||
+l.model.isEdge(F[S])&&null==l.model.getTerminal(F[S],!0)){v=l.model.getParent(F[S]);break}if(null!=Q&&v!=Q&&null!=this.view.getState(F[0])){var W=l.getIncomingTreeEdges(F[0]);if(0<W.length){var X=l.view.getState(l.model.getTerminal(W[0],!0));if(null!=X){var Z=l.view.getState(Q);null!=Z&&(J=(Z.getCenterX()-X.getCenterX())/l.view.scale,K=(Z.getCenterY()-X.getCenterY())/l.view.scale)}}}}O=D.apply(this,arguments);if(null!=O&&null!=F&&O.length==F.length)for(S=0;S<O.length;S++)if(this.model.isEdge(O[S]))d(Q)&&
+0>mxUtils.indexOf(O,this.model.getTerminal(O[S],!0))&&this.model.setTerminal(O[S],Q,!0);else if(d(F[S])&&(W=l.getIncomingTreeEdges(F[S]),0<W.length))if(!k)d(Q)&&0>mxUtils.indexOf(F,this.model.getTerminal(W[0],!0))&&this.model.setTerminal(W[0],Q,!0);else if(0==l.getIncomingTreeEdges(O[S]).length){V=Q;if(null==V||V==l.model.getParent(F[S]))V=l.model.getTerminal(W[0],!0);k=this.cloneCell(W[0]);this.addEdge(k,l.getDefaultParent(),V,O[S])}}finally{this.model.endUpdate()}return O};if(null!=g.sidebar){var A=
+g.sidebar.dropAndConnect;g.sidebar.dropAndConnect=function(F,J,K,k){var v=l.model,G=null;v.beginUpdate();try{if(G=A.apply(this,arguments),d(F))for(var N=0;N<G.length;N++)if(v.isEdge(G[N])&&null==v.getTerminal(G[N],!0)){v.setTerminal(G[N],F,!0);var O=l.getCellGeometry(G[N]);O.points=null;null!=O.getTerminalPoint(!0)&&O.setTerminalPoint(null,!0)}}finally{v.endUpdate()}return G}}var P={67:g.actions.get("selectChildren"),88:g.actions.get("selectDescendants"),80:g.actions.get("selectParent"),83:g.actions.get("selectSiblings")},
+R={67:g.actions.get("copyStyle"),86:g.actions.get("pasteStyle")},T=g.onKeyDown;g.onKeyDown=function(F){try{var J=l.getSelectionCell();if(l.isEnabled()&&!l.isEditing()&&null!=J){var K=mxEvent.isAltDown(F)&&mxEvent.isShiftDown(F)?P[F.keyCode]:mxEvent.isAltDown(F)?R[F.keyCode]:null;null!=K?(K.funct(F),mxEvent.consume(F)):d(J)&&(K=null,0<l.getIncomingTreeEdges(J).length&&(9==F.which?K=mxEvent.isShiftDown(F)?M(J):H(J):13==F.which&&(K=I(J,!mxEvent.isShiftDown(F)))),null!=K&&0<K.length?(1==K.length&&l.model.isEdge(K[0])?
+l.setSelectionCell(l.model.getTerminal(K[0],!1)):l.setSelectionCell(K[K.length-1]),null!=g.hoverIcons&&g.hoverIcons.update(l.view.getState(J)),l.startEditingAtCell(J),mxEvent.consume(F)):37==F.keyCode?(e(J,mxConstants.DIRECTION_WEST),mxEvent.consume(F)):38==F.keyCode?(e(J,mxConstants.DIRECTION_NORTH),mxEvent.consume(F)):39==F.keyCode?(e(J,mxConstants.DIRECTION_EAST),mxEvent.consume(F)):40==F.keyCode&&(e(J,mxConstants.DIRECTION_SOUTH),mxEvent.consume(F)))}}catch(k){g.handleError(k)}mxEvent.isConsumed(F)||
+T.apply(this,arguments)};var L=l.connectVertex;l.connectVertex=function(F,J,K,k,v,G,N){var O=l.getIncomingTreeEdges(F);if(d(F)){var Q=y(F),S=Q==mxConstants.DIRECTION_EAST||Q==mxConstants.DIRECTION_WEST,V=J==mxConstants.DIRECTION_EAST||J==mxConstants.DIRECTION_WEST;return Q==J||0==O.length?H(F,J):S==V?M(F):I(F,J!=mxConstants.DIRECTION_NORTH&&J!=mxConstants.DIRECTION_WEST)}return L.apply(this,arguments)};l.getSubtree=function(F){var J=[F];!q(F)&&!d(F)||C(F)||l.traverse(F,!0,function(K,k){var v=null!=
+k&&l.isTreeEdge(k);v&&0>mxUtils.indexOf(J,k)&&J.push(k);(null==k||v)&&0>mxUtils.indexOf(J,K)&&J.push(K);return null==k||v});return J};var U=mxVertexHandler.prototype.refresh;mxVertexHandler.prototype.refresh=function(){U.apply(this,arguments);(q(this.state.cell)||d(this.state.cell))&&!C(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(F){this.graph.graphHandler.start(this.state.cell,mxEvent.getClientX(F),mxEvent.getClientY(F),this.graph.getSubtree(this.state.cell));this.graph.graphHandler.cellWasClicked=!0;this.graph.isMouseTrigger=
+mxEvent.isMouseEvent(F);this.graph.isMouseDown=!0;g.hoverIcons.reset();mxEvent.consume(F)}))):null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=null)};var n=mxVertexHandler.prototype.redrawHandles;mxVertexHandler.prototype.redrawHandles=function(){n.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 t=mxVertexHandler.prototype.setHandlesVisible;mxVertexHandler.prototype.setHandlesVisible=function(F){t.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.style.display=F?"":"none")};var B=mxVertexHandler.prototype.destroy;mxVertexHandler.prototype.destroy=function(F,J){B.apply(this,arguments);null!=this.moveHandle&&(this.moveHandle.parentNode.removeChild(this.moveHandle),this.moveHandle=
+null)}};if("undefined"!==typeof Sidebar){var m=Sidebar.prototype.createAdvancedShapes;Sidebar.prototype.createAdvancedShapes=function(){var d=m.apply(this,arguments),q=this.graph,x=this;return d.concat([this.addEntry("tree container",function(){var C=new mxCell("Tree Container",new mxGeometry(0,0,400,320),"swimlane;startSize=20;horizontal=1;containerType=tree;");C.vertex=!0;var y=new mxCell("Parent",new mxGeometry(140,60,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');
+y.vertex=!0;var I=new mxCell("Child",new mxGeometry(140,140,120,40),'whiteSpace=wrap;html=1;treeFolding=1;treeMoving=1;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');I.vertex=!0;var M=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");M.geometry.relative=!0;M.edge=!0;y.insertEdge(M,!0);I.insertEdge(M,!1);C.insert(M);C.insert(y);C.insert(I);
+return x.createVertexTemplateFromCells([C],C.geometry.width,C.geometry.height,C.value)}),this.addEntry("tree mindmap mindmaps central idea branch topic",function(){var C=new mxCell("Mindmap",new mxGeometry(0,0,420,126),"swimlane;startSize=20;horizontal=1;containerType=tree;");C.vertex=!0;var y=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};');
+y.vertex=!0;var I=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};');I.vertex=!0;var M=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
+M.geometry.relative=!0;M.edge=!0;y.insertEdge(M,!0);I.insertEdge(M,!1);var H=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};');
+H.vertex=!0;var c=new mxCell("",new mxGeometry(0,0,0,0),M.style);c.geometry.relative=!0;c.edge=!0;y.insertEdge(c,!0);H.insertEdge(c,!1);var e=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};');
+e.vertex=!0;var g=new mxCell("",new mxGeometry(0,0,0,0),M.style);g.geometry.relative=!0;g.edge=!0;y.insertEdge(g,!0);e.insertEdge(g,!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 p=new mxCell("",new mxGeometry(0,0,0,0),M.style);p.geometry.relative=!0;p.edge=!0;y.insertEdge(p,!0);l.insertEdge(p,!1);C.insert(M);C.insert(c);C.insert(g);C.insert(p);C.insert(y);C.insert(I);C.insert(H);C.insert(e);C.insert(l);return x.createVertexTemplateFromCells([C],C.geometry.width,C.geometry.height,C.value)}),this.addEntry("tree mindmap mindmaps central idea",function(){var C=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;');
+C.vertex=!0;return x.createVertexTemplateFromCells([C],C.geometry.width,C.geometry.height,C.value)}),this.addEntry("tree mindmap mindmaps branch",function(){var C=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};');
+C.vertex=!0;var y=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");y.geometry.setTerminalPoint(new mxPoint(-40,40),!0);y.geometry.relative=!0;y.edge=!0;C.insertEdge(y,!1);return x.createVertexTemplateFromCells([C,y],C.geometry.width,C.geometry.height,C.value)}),this.addEntry("tree mindmap mindmaps sub topic",function(){var C=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};');C.vertex=!0;var y=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=entityRelationEdgeStyle;startArrow=none;endArrow=none;segment=10;curved=1;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;");
+y.geometry.setTerminalPoint(new mxPoint(-40,40),!0);y.geometry.relative=!0;y.edge=!0;C.insertEdge(y,!1);return x.createVertexTemplateFromCells([C,y],C.geometry.width,C.geometry.height,C.value)}),this.addEntry("tree orgchart organization division",function(){var C=new mxCell("Orgchart",new mxGeometry(0,0,280,220),'swimlane;startSize=20;horizontal=1;containerType=tree;newEdgeStyle={"edgeStyle":"elbowEdgeStyle","startArrow":"none","endArrow":"none"};');C.vertex=!0;var y=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"};');q.setAttributeForCell(y,"treeRoot","1");y.vertex=!0;var I=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"};');I.vertex=!0;var M=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
+M.geometry.relative=!0;M.edge=!0;y.insertEdge(M,!0);I.insertEdge(M,!1);var H=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"};');H.vertex=!0;var c=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");c.geometry.relative=
+!0;c.edge=!0;y.insertEdge(c,!0);H.insertEdge(c,!1);C.insert(M);C.insert(c);C.insert(y);C.insert(I);C.insert(H);return x.createVertexTemplateFromCells([C],C.geometry.width,C.geometry.height,C.value)}),this.addEntry("tree root",function(){var C=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"};');q.setAttributeForCell(C,"treeRoot","1");C.vertex=!0;return x.createVertexTemplateFromCells([C],
+C.geometry.width,C.geometry.height,C.value)}),this.addEntry("tree division",function(){var C=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"};');C.vertex=!0;var y=new mxCell("",new mxGeometry(0,0,0,0),"edgeStyle=elbowEdgeStyle;elbow=vertical;sourcePerimeterSpacing=0;targetPerimeterSpacing=0;startArrow=none;endArrow=none;rounded=0;curved=0;");
+y.geometry.setTerminalPoint(new mxPoint(0,0),!0);y.geometry.relative=!0;y.edge=!0;C.insertEdge(y,!1);return x.createVertexTemplateFromCells([C,y],C.geometry.width,C.geometry.height,C.value)}),this.addEntry("tree sub sections",function(){var C=new mxCell("Sub Section",new mxGeometry(0,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");C.vertex=!0;var y=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;");
+y.geometry.setTerminalPoint(new mxPoint(110,-40),!0);y.geometry.relative=!0;y.edge=!0;C.insertEdge(y,!1);var I=new mxCell("Sub Section",new mxGeometry(120,0,100,60),"whiteSpace=wrap;html=1;align=center;verticalAlign=middle;treeFolding=1;treeMoving=1;");I.vertex=!0;var M=new mxCell("",new mxGeometry(0,0,0,0),y.style);M.geometry.setTerminalPoint(new mxPoint(110,-40),!0);M.geometry.relative=!0;M.edge=!0;I.insertEdge(M,!1);return x.createVertexTemplateFromCells([y,M,C,I],220,60,"Sub Sections")})])}}})();Editor.themes.push("min");EditorUi.windowed="0"!=urlParams.windows;
+EditorUi.initMinimalTheme=function(){function b(H,c){if(EditorUi.windowed){var e=H.editor.graph;e.popupMenuHandler.hideMenu();null==H.formatWindow?(H.formatWindow=new WrapperWindow(H,"",Math.max(10,H.diagramContainer.clientWidth-248),60,240,Math.min(566,e.container.clientHeight-10),function(g){g.className="geSidebarContainer geFormatContainer";H.createFormat(g).init()}),H.dependsOnLanguage(mxUtils.bind(this,function(){H.formatWindow.window.setTitle(mxResources.get("format"))})),H.formatWindow.window.addListener(mxEvent.SHOW,
+mxUtils.bind(this,function(){H.formatWindow.window.fit()})),H.formatWindow.window.minimumSize=new mxRectangle(0,0,240,80)):H.formatWindow.window.setVisible(null!=c?c:!H.formatWindow.window.isVisible())}else null==H.formatElt&&(H.formatElt=H.createSidebarContainer(),H.createFormat(H.formatElt).init(),H.formatElt.style.border="none",H.formatElt.style.width="240px",H.formatElt.style.borderLeftWidth="1px",H.formatElt.style.borderLeftStyle="solid",H.formatElt.style.right="0px"),c=H.diagramContainer.parentNode,
+null!=H.formatElt.parentNode?(H.formatElt.parentNode.removeChild(H.formatElt),c.style.right="0px"):(c.parentNode.appendChild(H.formatElt),c.style.right=H.formatElt.style.width)}function f(H,c){if(EditorUi.windowed){var e=H.editor.graph;e.popupMenuHandler.hideMenu();null==H.sidebarWindow?(H.sidebarWindow=new WrapperWindow(H,"",10,56,Math.min(e.container.clientWidth-10,218)-6,Math.min(e.container.clientHeight-40,650)-6,function(g){H.createShapesPanel(g)}),H.dependsOnLanguage(mxUtils.bind(this,function(){H.sidebarWindow.window.setTitle(mxResources.get("shapes"))})),
+H.sidebarWindow.window.addListener(mxEvent.SHOW,mxUtils.bind(this,function(){H.sidebarWindow.window.fit()})),H.sidebarWindow.window.minimumSize=new mxRectangle(0,0,90,90),H.sidebarWindow.window.setVisible(!0),isLocalStorage&&H.getLocalData("sidebar",function(g){H.sidebar.showEntries(g,null,!0)}),H.restoreLibraries()):H.sidebarWindow.window.setVisible(null!=c?c:!H.sidebarWindow.window.isVisible())}else null==H.sidebarElt&&(H.sidebarElt=H.createSidebarContainer(),H.createShapesPanel(H.sidebarElt),H.sidebarElt.style.border=
+"none",H.sidebarElt.style.width="210px",H.sidebarElt.style.borderRight="1px solid gray"),c=H.diagramContainer.parentNode,null!=H.sidebarElt.parentNode?(H.sidebarElt.parentNode.removeChild(H.sidebarElt),c.style.left="0px"):(c.parentNode.appendChild(H.sidebarElt),c.style.left=H.sidebarElt.style.width)}if("1"==urlParams.lightbox||"0"==urlParams.chrome||"undefined"===typeof window.Format||"undefined"===typeof window.Menus)window.uiTheme=null;else{var m=0;try{m=window.innerWidth||document.documentElement.clientWidth||
+document.body.clientWidth}catch(H){}Menus.prototype.autoPopup=!1;mxConstraintHandler.prototype.pointImage=Graph.createSvgImage(5,5,'<path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke-width="2" style="stroke-opacity:0.4" stroke="#ffffff"/><path d="m 0 0 L 5 5 M 0 5 L 5 0" stroke="#29b6f2"/>');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;EditorUi.prototype.closableScratchpad=!1;Graph.prototype.editAfterInsert=!mxClient.IS_IOS&&!mxClient.IS_ANDROID;Editor.prototype.isChromelessView=
-function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var d=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){d.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var t=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(I,c){null!=c.shortcut&&900>m&&!mxClient.IS_IOS?I.firstChild.nextSibling.setAttribute("title",c.shortcut):t.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=
-function(I){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=I?I:!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 x=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();x.apply(this,arguments)};var v=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(I){v.apply(this,
-arguments);if(I){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=c&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=c&&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 B=Menus.prototype.init;Menus.prototype.init=function(){B.apply(this,
-arguments);var I=this.editorUi;EditorUi.enablePlantUml&&!I.isOffline()&&I.actions.put("plantUml",new Action("plantUml...",function(){var g=new ParseDialog(I,mxResources.get("plantUml")+"...","plantUml");I.showDialog(g.container,620,420,!0,!1);g.init()}));I.actions.put("mermaid",new Action("mermaid...",function(){var g=new ParseDialog(I,mxResources.get("mermaid")+"...","mermaid");I.showDialog(g.container,620,420,!0,!1);g.init()}));var c="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),
-e=function(g,l,n,u){g.addItem(n,null,mxUtils.bind(this,function(){var z=new CreateGraphDialog(I,n,u);I.showDialog(z.container,620,420,!0,!1);z.init()}),l)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(g,l){for(var n=0;n<c.length;n++)"-"==c[n]?g.addSeparator(l):e(g,l,mxResources.get(c[n])+"...",c[n])})))};EditorUi.prototype.installFormatToolbar=function(I){var c=this.editor.graph,e=document.createElement("div");e.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%;";
-c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(g,l){0<c.getSelectionCount()?(I.appendChild(e),e.innerHTML="Selected: "+c.getSelectionCount()):null!=e.parentNode&&e.parentNode.removeChild(e)}))};var J=!1;EditorUi.prototype.initFormatWindow=function(){if(!J&&null!=this.formatWindow){J=!0;var I=this.formatWindow.window.toggleMinimized,c=240;this.formatWindow.window.toggleMinimized=function(){I.apply(this,arguments);this.minimized?(c=parseInt(this.div.style.width),this.div.style.width=
-"140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+c-140+"px"):(this.div.style.width=c+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-c+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(e){mxEvent.getSource(e)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var N=EditorUi.prototype.init;EditorUi.prototype.init=
-function(){function I(y,F,M){var P=n.menus.get(y);F=D.addMenu(mxResources.get(y),mxUtils.bind(this,function(){P.funct.apply(this,arguments)}));F.className="geButton";F.setAttribute("title",mxResources.get(y));n.menus.menuCreated(P,F,"geButton");null!=M&&(F.style.backgroundImage="url("+M+")",F.innerText="");return F}function c(y,F,M,P,R,T){var V=document.createElement("a");V.className="geButton";z.appendChild(V);null!=T?V.style.backgroundImage="url("+T+")":mxUtils.write(V,y);mxEvent.addListener(V,
-"click",function(W){"disabled"!=V.getAttribute("disabled")&&F(W);mxEvent.consume(W)});mxEvent.preventDefault(V);null!=P&&V.setAttribute("title",P);null!=R&&(y=function(){R.isEnabled()?V.removeAttribute("disabled"):V.setAttribute("disabled","disabled")},R.addListener("stateChanged",y),u.addListener("enabledChanged",y),y());return V}function e(y,F,M){F=document.createElement("div");F.className="geButtonGroup";for(M=0;M<y.length;M++)null!=y[M]&&F.appendChild(y[M]);z.appendChild(F);return F}function g(){m=
-window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;z.innerHTML="";var y=1E3>m,F=I("diagram",null,y?Editor.menuImage:null);e([F,c(mxResources.get("shapes"),n.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),n.actions.get("image"),y?Editor.shapesImage:null),c(mxResources.get("format"),n.actions.get("format").funct,null,mxResources.get("format")+" ("+n.actions.get("format").shortcut+")",n.actions.get("image"),y?Editor.formatImage:null)]);F=I("insert",!0,
-y?U:null);e([F,c(mxResources.get("delete"),n.actions.get("delete").funct,null,mxResources.get("delete"),n.actions.get("delete"),y?Editor.trashImage:null)]);u.isEnabled()||F.setAttribute("disabled","disabled");L.setAttribute("title",mxResources.get("undo")+" ("+E.shortcut+")");K.setAttribute("title",mxResources.get("redo")+" ("+H.shortcut+")");k.setAttribute("title",mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)");411<=m&&(e([L,K]),520<=m&&e([k,640<=m?c("",q.funct,!0,mxResources.get("zoomIn")+" ("+
-Editor.ctrlKey+" +)",q,Editor.zoomInImage):null,640<=m?c("",G.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",G,Editor.zoomOutImage):null]));z.appendChild(n.statusContainer);z.appendChild(n.buttonContainer)}N.apply(this,arguments);var l=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=l&&(l.classList.add("geSimple"),l.classList.add("geMinimal"),l.classList.remove("geClassic"));this.sidebar=this.createSidebar(this.sidebarContainer);
-if(1E3<=m||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])f(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 n=this,u=n.editor.graph;n.toolbar=this.createToolbar(n.createDiv("geToolbar"));var z=document.createElement("div");z.className="geMenubarContainer";
-var D=new Menubar(n,z),C=n.hideCurrentMenu;n.hideCurrentMenu=function(){C.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var A=n.descriptorChanged;n.descriptorChanged=function(){A.apply(this,arguments);var y=n.getCurrentFile();if(null!=y&&null!=y.getTitle()){var F=y.getMode();"google"==F?F="googleDrive":"github"==F?F="gitHub":"gitlab"==F?F="gitLab":"onedrive"==F&&(F="oneDrive");F=mxResources.get(F);z.setAttribute("title",y.getTitle()+(null!=F?" ("+F+")":""))}else z.removeAttribute("title")};
-n.setStatusText(n.editor.getStatus());z.appendChild(n.statusContainer);n.buttonContainer=this.createButtonContainer();z.appendChild(n.buttonContainer);n.menubarContainer=n.buttonContainer;n.tabContainer=this.createTabContainer();var Q=this.createZoomInput(!0),S=n.updateTabContainer;n.updateTabContainer=function(){S.apply(this,arguments);n.tabContainer.appendChild(Q)};var U=Editor.addBoxImage;if(null!=n.hoverIcons){var O=n.hoverIcons.update;n.hoverIcons.update=function(){u.freehand.isDrawing()||O.apply(this,
-arguments)}}if(null!=u.freehand){var p=u.freehand.createStyle;u.freehand.createStyle=function(y){return p.apply(this,arguments)+"sketch=0;"}}n.editor.addListener("statusChanged",mxUtils.bind(this,function(){n.setStatusText(n.editor.getStatus())}));n.setStatusText(n.editor.getStatus());var q=n.actions.get("zoomIn"),G=n.actions.get("zoomOut");l=n.actions.get("resetView");var E=n.actions.get("undo"),H=n.actions.get("redo"),L=c("",E.funct,null,"",E,Editor.undoImage),K=c("",H.funct,null,"",H,Editor.redoImage),
-k=c("",function(y){mxEvent.isAltDown(y)?(n.hideCurrentMenu(),n.actions.get("customZoom").funct()):(n.hideCurrentMenu(),n.actions.get("smartFit").funct());mxEvent.consume(y)},!0,"",l,Editor.zoomFitImage);n.container.appendChild(n.tabContainer);n.container.appendChild(z);n.updateTabContainer();!EditorUi.windowed&&1E3<=m&&b(this,!0);g();n.addListener("lockedChanged",g);n.addListener("languageChanged",g);n.editor.graph.addListener("enabledChanged",g);mxEvent.addListener(window,"resize",function(){g();
-null!=n.sidebarWindow&&n.sidebarWindow.window.fit();null!=n.formatWindow&&n.formatWindow.window.fit();null!=n.actions.outlineWindow&&n.actions.outlineWindow.window.fit();null!=n.actions.layersWindow&&n.actions.layersWindow.window.fit();null!=n.menus.chatWindow&&n.menus.chatWindow.window.fit();null!=n.menus.tagsWindow&&n.menus.tagsWindow.window.fit();null!=n.menus.findWindow&&n.menus.findWindow.window.fit();null!=n.menus.findReplaceWindow&&n.menus.findReplaceWindow.window.fit()})}}};
-(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var f=EditorUi.initTheme;EditorUi.initTheme=function(){f.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();(function(){var b=mxGuide.prototype.move;mxGuide.prototype.move=function(d,t,x,v){var B=t.y,J=t.x,N=!1,I=!1;if(null!=this.states&&null!=d&&null!=t){var c=this,e=new mxCellState,g=this.graph.getView().scale,l=Math.max(2,this.getGuideTolerance()/2);e.x=d.x+J;e.y=d.y+B;e.width=d.width;e.height=d.height;for(var n=[],u=[],z=0;z<this.states.length;z++){var D=this.states[z];D instanceof mxCellState&&(v||!this.graph.isCellSelected(D.cell))&&((e.x>=D.x&&e.x<=D.x+D.width||D.x>=e.x&&D.x<=e.x+e.width)&&(e.y>
-D.y+D.height+4||e.y+e.height+4<D.y)?n.push(D):(e.y>=D.y&&e.y<=D.y+D.height||D.y>=e.y&&D.y<=e.y+e.height)&&(e.x>D.x+D.width+4||e.x+e.width+4<D.x)&&u.push(D))}var C=0,A=0,Q=D=0,S=0,U=0,O=0,p=0,q=5*g;if(1<n.length){n.push(e);n.sort(function(L,K){return L.y-K.y});var G=!1;z=e==n[0];g=e==n[n.length-1];if(!z&&!g)for(z=1;z<n.length-1;z++)if(e==n[z]){g=n[z-1];z=n[z+1];D=A=Q=(z.y-g.y-g.height-e.height)/2;break}for(z=0;z<n.length-1;z++){g=n[z];var E=n[z+1],H=e==g||e==E;E=E.y-g.y-g.height;G|=e==g;if(0==A&&0==
-C)A=E,C=1;else if(Math.abs(A-E)<=(H||1==z&&G?l:0))C+=1;else if(1<C&&G){n=n.slice(0,z+1);break}else if(3<=n.length-z&&!G)C=0,D=A=0!=Q?Q:0,n.splice(0,0==z?1:z),z=-1;else break;0!=D||H||(A=D=E)}3==n.length&&n[1]==e&&(D=0)}if(1<u.length){u.push(e);u.sort(function(L,K){return L.x-K.x});G=!1;z=e==u[0];g=e==u[u.length-1];if(!z&&!g)for(z=1;z<u.length-1;z++)if(e==u[z]){g=u[z-1];z=u[z+1];O=U=p=(z.x-g.x-g.width-e.width)/2;break}for(z=0;z<u.length-1;z++){g=u[z];E=u[z+1];H=e==g||e==E;E=E.x-g.x-g.width;G|=e==g;
-if(0==U&&0==S)U=E,S=1;else if(Math.abs(U-E)<=(H||1==z&&G?l:0))S+=1;else if(1<S&&G){u=u.slice(0,z+1);break}else if(3<=u.length-z&&!G)S=0,O=U=0!=p?p:0,u.splice(0,0==z?1:z),z=-1;else break;0!=O||H||(U=O=E)}3==u.length&&u[1]==e&&(O=0)}l=function(L,K,k,y){var F=[];if(y){y=q;var M=0}else y=0,M=q;F.push(new mxPoint(L.x-y,L.y-M));F.push(new mxPoint(L.x+y,L.y+M));F.push(L);F.push(K);F.push(new mxPoint(K.x-y,K.y-M));F.push(new mxPoint(K.x+y,K.y+M));if(null!=k)return k.points=F,k;L=new mxPolyline(F,mxConstants.GUIDE_COLOR,
-mxConstants.GUIDE_STROKEWIDTH);L.dialect=mxConstants.DIALECT_SVG;L.pointerEvents=!1;L.init(c.graph.getView().getOverlayPane());return L};U=function(L,K){if(L&&null!=c.guidesArrHor)for(L=0;L<c.guidesArrHor.length;L++)c.guidesArrHor[L].node.style.visibility="hidden";if(K&&null!=c.guidesArrVer)for(L=0;L<c.guidesArrVer.length;L++)c.guidesArrVer[L].node.style.visibility="hidden"};if(1<S&&S==u.length-1){S=[];p=c.guidesArrHor;N=[];J=0;z=u[0]==e?1:0;G=u[z].y+u[z].height;if(0<O)for(z=0;z<u.length-1;z++)g=
-u[z],E=u[z+1],e==g?(J=E.x-g.width-O,N.push(new mxPoint(J+g.width+q,G)),N.push(new mxPoint(E.x-q,G))):e==E?(N.push(new mxPoint(g.x+g.width+q,G)),J=g.x+g.width+O,N.push(new mxPoint(J-q,G))):(N.push(new mxPoint(g.x+g.width+q,G)),N.push(new mxPoint(E.x-q,G)));else g=u[0],z=u[2],J=g.x+g.width+(z.x-g.x-g.width-e.width)/2,N.push(new mxPoint(g.x+g.width+q,G)),N.push(new mxPoint(J-q,G)),N.push(new mxPoint(J+e.width+q,G)),N.push(new mxPoint(z.x-q,G));for(z=0;z<N.length;z+=2)u=N[z],O=N[z+1],u=l(u,O,null!=p?
-p[z/2]:null),u.node.style.visibility="visible",u.redraw(),S.push(u);for(z=N.length/2;null!=p&&z<p.length;z++)p[z].destroy();c.guidesArrHor=S;J-=d.x;N=!0}else U(!0);if(1<C&&C==n.length-1){S=[];p=c.guidesArrVer;I=[];B=0;z=n[0]==e?1:0;C=n[z].x+n[z].width;if(0<D)for(z=0;z<n.length-1;z++)g=n[z],E=n[z+1],e==g?(B=E.y-g.height-D,I.push(new mxPoint(C,B+g.height+q)),I.push(new mxPoint(C,E.y-q))):e==E?(I.push(new mxPoint(C,g.y+g.height+q)),B=g.y+g.height+D,I.push(new mxPoint(C,B-q))):(I.push(new mxPoint(C,g.y+
-g.height+q)),I.push(new mxPoint(C,E.y-q)));else g=n[0],z=n[2],B=g.y+g.height+(z.y-g.y-g.height-e.height)/2,I.push(new mxPoint(C,g.y+g.height+q)),I.push(new mxPoint(C,B-q)),I.push(new mxPoint(C,B+e.height+q)),I.push(new mxPoint(C,z.y-q));for(z=0;z<I.length;z+=2)u=I[z],O=I[z+1],u=l(u,O,null!=p?p[z/2]:null,!0),u.node.style.visibility="visible",u.redraw(),S.push(u);for(z=I.length/2;null!=p&&z<p.length;z++)p[z].destroy();c.guidesArrVer=S;B-=d.y;I=!0}else U(!1,!0)}if(N||I)return e=new mxPoint(J,B),n=b.call(this,
-d,e,x,v),N&&!I?e.y=n.y:I&&!N&&(e.x=n.x),n.y!=e.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),n.x!=e.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),e;U(!0,!0);return b.apply(this,arguments)};var f=mxGuide.prototype.setVisible;mxGuide.prototype.setVisible=function(d){f.call(this,d);var t=this.guidesArrVer,x=this.guidesArrHor;if(null!=t)for(var v=0;v<t.length;v++)t[v].node.style.visibility=d?"visible":"hidden";if(null!=
-x)for(v=0;v<x.length;v++)x[v].node.style.visibility=d?"visible":"hidden"};var m=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){m.call(this);var d=this.guidesArrVer,t=this.guidesArrHor;if(null!=d){for(var x=0;x<d.length;x++)d[x].destroy();this.guidesArrVer=null}if(null!=t){for(x=0;x<t.length;x++)t[x].destroy();this.guidesArrHor=null}}})();function mxRuler(b,f,m,d){function t(){var C=b.getDiagramContainerOffset(),A=b.diagramContainer;c.style.top=A.offsetTop-C.y+"px";c.style.left=A.offsetLeft-C.x+"px";c.style.width=(m?0:A.offsetWidth)+J+"px";c.style.height=(m?A.offsetHeight:0)+J+"px"}function x(C,A,Q){if(null!=v)return C;var S;return function(){var U=this,O=arguments,p=Q&&!S;clearTimeout(S);S=setTimeout(function(){S=null;Q||C.apply(U,O)},A);p&&C.apply(U,O)}}var v=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
-window.msRequestAnimationFrame,B=window.cancelAnimationFrame||window.mozCancelAnimationFrame,J=this.RULER_THICKNESS,N=this;this.unit=f;var I=Editor.isDarkMode()?{bkgClr:"#202020",outBkgClr:"#1B1D1E",cornerClr:"#1B1D1E",strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{bkgClr:"#ffffff",outBkgClr:"#f1f3f4",cornerClr:"#f1f3f4",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"},c=document.createElement("div");c.className="geRuler";c.style.position="fixed";this.updateStyle=mxUtils.bind(this,
-function(){I=Editor.isDarkMode()?{outBkgClr:"#1B1D1E",cornerClr:"#1B1D1E",strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#f1f3f4",cornerClr:"#f1f3f4",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};c.style[m?"borderRight":"borderBottom"]="0.5px solid "+I.strokeClr;c.style.borderLeft="0.5px solid "+I.strokeClr});this.updateStyle();b.diagramContainer.appendChild(c);mxEvent.disableContextMenu(c);this.editorUiRefresh=b.refresh;b.refresh=function(C){N.editorUiRefresh.apply(b,
-arguments);t()};t();var e=document.createElement("canvas");e.width=c.offsetWidth;e.height=c.offsetHeight;c.style.overflow="hidden";e.style.position="relative";c.appendChild(e);var g=e.getContext("2d");this.ui=b;var l=b.editor.graph;this.graph=l;this.container=c;this.canvas=e;var n=function(C,A,Q,S,U){C=Math.round(C);A=Math.round(A);Q=Math.round(Q);S=Math.round(S);g.beginPath();g.moveTo(C+.5,A+.5);g.lineTo(Q+.5,S+.5);g.stroke();U&&(m?(g.save(),g.translate(C,A),g.rotate(-Math.PI/2),g.fillText(U,0,0),
-g.restore()):g.fillText(U,C,A))},u=function(){g.clearRect(0,0,e.width,e.height);g.beginPath();g.lineWidth=.7;g.strokeStyle=I.strokeClr;g.setLineDash([]);g.font="9px Arial";g.textAlign="center";var C=l.view.scale,A=l.view.getBackgroundPageBounds(),Q=l.view.translate,S=l.pageVisible;Q=S?J+(m?A.y-l.container.scrollTop:A.x-l.container.scrollLeft):J+(m?Q.y*C-l.container.scrollTop:Q.x*C-l.container.scrollLeft);var U=0;S&&(U=l.getPageLayout(),U=m?U.y*l.pageFormat.height:U.x*l.pageFormat.width);var O;switch(N.unit){case mxConstants.POINTS:var p=
-O=10;var q=[3,5,5,5,5,10,5,5,5,5];break;case mxConstants.MILLIMETERS:O=10;p=mxConstants.PIXELS_PER_MM;q=[5,3,3,3,3,6,3,3,3,3];break;case mxConstants.METERS:O=20;p=mxConstants.PIXELS_PER_MM;q=[5,3,3,3,3,6,3,3,3,3,10,3,3,3,3,6,3,3,3,3];break;case mxConstants.INCHES:O=.5>=C||4<=C?8:16,p=mxConstants.PIXELS_PER_INCH/O,q=[5,3,5,3,7,3,5,3,7,3,5,3,7,3,5,3]}var G=p;2<=C?G=p/(2*Math.floor(C/2)):.5>=C&&(G=p*Math.floor(1/C/2)*(N.unit==mxConstants.MILLIMETERS?2:1));p=null;A=S?Math.min(Q+(m?A.height:A.width),m?
-e.height:e.width):m?e.height:e.width;if(S)if(g.fillStyle=I.outBkgClr,m){var E=Q-J;0<E&&g.fillRect(0,J,J,E);A<e.height&&g.fillRect(0,A,J,e.height)}else E=Q-J,0<E&&g.fillRect(J,0,E,J),A<e.width&&g.fillRect(A,0,e.width,J);g.fillStyle=I.fontClr;for(S=S?Q:Q%(G*C);S<=A;S+=G*C)if(E=Math.round((S-Q)/C/G),!(S<J||E==p)){p=E;var H=null;0==E%O&&(H=N.formatText(U+E*G)+"");m?n(J-q[Math.abs(E)%O],S,J,S,H):n(S,J-q[Math.abs(E)%O],S,J,H)}g.lineWidth=1;n(m?0:J,m?J:0,J,J);g.fillStyle=I.cornerClr;g.fillRect(0,0,J,J)},
-z=-1,D=function(){null!=v?(null!=B&&B(z),z=v(u)):u()};this.drawRuler=D;this.sizeListener=f=x(function(){var C=l.container;m?(C=C.offsetHeight+J,e.height!=C&&(e.height=C,c.style.height=C+"px",D())):(C=C.offsetWidth+J,e.width!=C&&(e.width=C,c.style.width=C+"px",D()))},10);this.pageListener=function(){D()};this.scrollListener=d=x(function(){var C=m?l.container.scrollTop:l.container.scrollLeft;N.lastScroll!=C&&(N.lastScroll=C,D())},10);this.unitListener=function(C,A){N.setUnit(A.getProperty("unit"))};
-l.addListener(mxEvent.SIZE,f);l.container.addEventListener("scroll",d);l.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(C){I=C;c.style.background=I.bkgClr;u()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(C,A,Q,S){if(m&&4<C.height||!m&&4<C.width){if(null!=N.guidePart)try{g.putImageData(N.guidePart.imgData1,
-N.guidePart.x1,N.guidePart.y1),g.putImageData(N.guidePart.imgData2,N.guidePart.x2,N.guidePart.y2),g.putImageData(N.guidePart.imgData3,N.guidePart.x3,N.guidePart.y3)}catch(y){}var U=N.origGuideMove.apply(this,arguments);try{g.lineWidth=.5;g.strokeStyle=I.guideClr;g.setLineDash([2]);if(m){var O=C.y+U.y+J-this.graph.container.scrollTop;var p=0;var q=O+C.height/2;var G=J/2;var E=O+C.height;var H=0;var L=g.getImageData(p,O-1,J,3);n(p,O,J,O);O--;var K=g.getImageData(G,q-1,J,3);n(G,q,J,q);q--;var k=g.getImageData(H,
-E-1,J,3);n(H,E,J,E);E--}else O=0,p=C.x+U.x+J-this.graph.container.scrollLeft,q=J/2,G=p+C.width/2,E=0,H=p+C.width,L=g.getImageData(p-1,O,3,J),n(p,O,p,J),p--,K=g.getImageData(G-1,q,3,J),n(G,q,G,J),G--,k=g.getImageData(H-1,E,3,J),n(H,E,H,J),H--;if(null==N.guidePart||N.guidePart.x1!=p||N.guidePart.y1!=O)N.guidePart={imgData1:L,x1:p,y1:O,imgData2:K,x2:G,y2:q,imgData3:k,x3:H,y3:E}}catch(y){}}else U=N.origGuideMove.apply(this,arguments);return U};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=
-function(){var C=N.origGuideDestroy.apply(this,arguments);if(null!=N.guidePart)try{g.putImageData(N.guidePart.imgData1,N.guidePart.x1,N.guidePart.y1),g.putImageData(N.guidePart.imgData2,N.guidePart.x2,N.guidePart.y2),g.putImageData(N.guidePart.imgData3,N.guidePart.x3,N.guidePart.y3),N.guidePart=null}catch(A){}return C}}mxRuler.prototype.RULER_THICKNESS=14;mxRuler.prototype.unit=mxConstants.POINTS;mxRuler.prototype.setUnit=function(b){this.unit=b;this.drawRuler()};
+function(){return!1};Graph.prototype.isLightboxView=function(){return!1};var d=EditorUi.prototype.updateActionStates;EditorUi.prototype.updateActionStates=function(){d.apply(this,arguments);this.menus.get("save").setEnabled(null!=this.getCurrentFile()||"1"==urlParams.embed)};var q=Menus.prototype.addShortcut;Menus.prototype.addShortcut=function(H,c){null!=c.shortcut&&900>m&&!mxClient.IS_IOS?H.firstChild.nextSibling.setAttribute("title",c.shortcut):q.apply(this,arguments)};EditorUi.prototype.toggleFormatPanel=
+function(H){null!=this.formatWindow?this.formatWindow.window.setVisible(null!=H?H:!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 x=EditorUi.prototype.destroy;EditorUi.prototype.destroy=function(){this.destroyWindows();x.apply(this,arguments)};var C=EditorUi.prototype.setGraphEnabled;EditorUi.prototype.setGraphEnabled=function(H){C.apply(this,
+arguments);if(H){var c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;1E3<=c&&null!=this.sidebarWindow&&this.sidebarWindow.window.setVisible(!0);null!=this.formatWindow&&1E3<=c&&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 y=Menus.prototype.init;Menus.prototype.init=function(){y.apply(this,
+arguments);var H=this.editorUi;EditorUi.enablePlantUml&&!H.isOffline()&&H.actions.put("plantUml",new Action("plantUml...",function(){var g=new ParseDialog(H,mxResources.get("plantUml")+"...","plantUml");H.showDialog(g.container,620,420,!0,!1);g.init()}));H.actions.put("mermaid",new Action("mermaid...",function(){var g=new ParseDialog(H,mxResources.get("mermaid")+"...","mermaid");H.showDialog(g.container,620,420,!0,!1);g.init()}));var c="horizontalFlow verticalFlow - horizontalTree verticalTree radialTree - organic circle".split(" "),
+e=function(g,l,p,u){g.addItem(p,null,mxUtils.bind(this,function(){var z=new CreateGraphDialog(H,p,u);H.showDialog(z.container,620,420,!0,!1);z.init()}),l)};this.put("insertLayout",new Menu(mxUtils.bind(this,function(g,l){for(var p=0;p<c.length;p++)"-"==c[p]?g.addSeparator(l):e(g,l,mxResources.get(c[p])+"...",c[p])})))};EditorUi.prototype.installFormatToolbar=function(H){var c=this.editor.graph,e=document.createElement("div");e.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%;";
+c.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(g,l){0<c.getSelectionCount()?(H.appendChild(e),e.innerHTML="Selected: "+c.getSelectionCount()):null!=e.parentNode&&e.parentNode.removeChild(e)}))};var I=!1;EditorUi.prototype.initFormatWindow=function(){if(!I&&null!=this.formatWindow){I=!0;var H=this.formatWindow.window.toggleMinimized,c=240;this.formatWindow.window.toggleMinimized=function(){H.apply(this,arguments);this.minimized?(c=parseInt(this.div.style.width),this.div.style.width=
+"140px",this.table.style.width="140px",this.div.style.left=parseInt(this.div.style.left)+c-140+"px"):(this.div.style.width=c+"px",this.table.style.width=this.div.style.width,this.div.style.left=Math.max(0,parseInt(this.div.style.left)-c+140)+"px");this.fit()};mxEvent.addListener(this.formatWindow.window.title,"dblclick",mxUtils.bind(this,function(e){mxEvent.getSource(e)==this.formatWindow.window.title&&this.formatWindow.window.toggleMinimized()}))}};var M=EditorUi.prototype.init;EditorUi.prototype.init=
+function(){function H(v,G,N){var O=p.menus.get(v);G=E.addMenu(mxResources.get(v),mxUtils.bind(this,function(){O.funct.apply(this,arguments)}));G.className="geButton";G.setAttribute("title",mxResources.get(v));p.menus.menuCreated(O,G,"geButton");null!=N&&(G.style.backgroundImage="url("+N+")",G.innerText="");return G}function c(v,G,N,O,Q,S){var V=document.createElement("a");V.className="geButton";z.appendChild(V);null!=S?V.style.backgroundImage="url("+S+")":mxUtils.write(V,v);mxEvent.addListener(V,
+"click",function(W){"disabled"!=V.getAttribute("disabled")&&G(W);mxEvent.consume(W)});mxEvent.preventDefault(V);null!=O&&V.setAttribute("title",O);null!=Q&&(v=function(){Q.isEnabled()?V.removeAttribute("disabled"):V.setAttribute("disabled","disabled")},Q.addListener("stateChanged",v),u.addListener("enabledChanged",v),v());return V}function e(v,G,N){G=document.createElement("div");G.className="geButtonGroup";for(N=0;N<v.length;N++)null!=v[N]&&G.appendChild(v[N]);z.appendChild(G);return G}function g(){m=
+window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;z.innerHTML="";var v=1E3>m,G=H("diagram",null,v?Editor.menuImage:null);e([G,c(mxResources.get("shapes"),p.actions.get("toggleShapes").funct,null,mxResources.get("shapes"),p.actions.get("image"),v?Editor.shapesImage:null),c(mxResources.get("format"),p.actions.get("format").funct,null,mxResources.get("format")+" ("+p.actions.get("format").shortcut+")",p.actions.get("image"),v?Editor.formatImage:null)]);G=H("insert",!0,
+v?T:null);e([G,c(mxResources.get("delete"),p.actions.get("delete").funct,null,mxResources.get("delete"),p.actions.get("delete"),v?Editor.trashImage:null)]);u.isEnabled()||G.setAttribute("disabled","disabled");J.setAttribute("title",mxResources.get("undo")+" ("+B.shortcut+")");K.setAttribute("title",mxResources.get("redo")+" ("+F.shortcut+")");k.setAttribute("title",mxResources.get("fit")+" ("+Editor.ctrlKey+"+H)");411<=m&&(e([J,K]),520<=m&&e([k,640<=m?c("",n.funct,!0,mxResources.get("zoomIn")+" ("+
+Editor.ctrlKey+" +)",n,Editor.zoomInImage):null,640<=m?c("",t.funct,!0,mxResources.get("zoomOut")+" ("+Editor.ctrlKey+" -)",t,Editor.zoomOutImage):null]));z.appendChild(p.statusContainer);z.appendChild(p.buttonContainer)}M.apply(this,arguments);var l=mxUtils.isAncestorNode(document.body,this.container)?this.container:this.editor.graph.container;null!=l&&(l.classList.add("geSimple"),l.classList.add("geMinimal"),l.classList.remove("geClassic"));this.sidebar=this.createSidebar(this.sidebarContainer);
+if(1E3<=m||null!=urlParams.clibs||null!=urlParams.libs||null!=urlParams["search-shapes"])f(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 p=this,u=p.editor.graph;p.toolbar=this.createToolbar(p.createDiv("geToolbar"));var z=document.createElement("div");z.className="geMenubarContainer";
+var E=new Menubar(p,z),D=p.hideCurrentMenu;p.hideCurrentMenu=function(){D.apply(this,arguments);this.editor.graph.popupMenuHandler.hideMenu()};var A=p.descriptorChanged;p.descriptorChanged=function(){A.apply(this,arguments);var v=p.getCurrentFile();if(null!=v&&null!=v.getTitle()){var G=v.getMode();"google"==G?G="googleDrive":"github"==G?G="gitHub":"gitlab"==G?G="gitLab":"onedrive"==G&&(G="oneDrive");G=mxResources.get(G);z.setAttribute("title",v.getTitle()+(null!=G?" ("+G+")":""))}else z.removeAttribute("title")};
+p.setStatusText(p.editor.getStatus());z.appendChild(p.statusContainer);p.buttonContainer=this.createButtonContainer();z.appendChild(p.buttonContainer);p.menubarContainer=p.buttonContainer;p.tabContainer=this.createTabContainer();var P=this.createZoomInput(!0),R=p.updateTabContainer;p.updateTabContainer=function(){R.apply(this,arguments);p.tabContainer.appendChild(P)};var T=Editor.addBoxImage;if(null!=p.hoverIcons){var L=p.hoverIcons.update;p.hoverIcons.update=function(){u.freehand.isDrawing()||L.apply(this,
+arguments)}}if(null!=u.freehand){var U=u.freehand.createStyle;u.freehand.createStyle=function(v){return U.apply(this,arguments)+"sketch=0;"}}p.editor.addListener("statusChanged",mxUtils.bind(this,function(){p.setStatusText(p.editor.getStatus())}));p.setStatusText(p.editor.getStatus());var n=p.actions.get("zoomIn"),t=p.actions.get("zoomOut");l=p.actions.get("resetView");var B=p.actions.get("undo"),F=p.actions.get("redo"),J=c("",B.funct,null,"",B,Editor.undoImage),K=c("",F.funct,null,"",F,Editor.redoImage),
+k=c("",function(v){mxEvent.isAltDown(v)?(p.hideCurrentMenu(),p.actions.get("customZoom").funct()):(p.hideCurrentMenu(),p.actions.get("smartFit").funct());mxEvent.consume(v)},!0,"",l,Editor.zoomFitImage);p.container.appendChild(p.tabContainer);p.container.appendChild(z);p.updateTabContainer();!EditorUi.windowed&&1E3<=m&&b(this,!0);g();p.addListener("lockedChanged",g);p.addListener("languageChanged",g);p.editor.graph.addListener("enabledChanged",g);mxEvent.addListener(window,"resize",function(){g();
+null!=p.sidebarWindow&&p.sidebarWindow.window.fit();null!=p.formatWindow&&p.formatWindow.window.fit();null!=p.actions.outlineWindow&&p.actions.outlineWindow.window.fit();null!=p.actions.layersWindow&&p.actions.layersWindow.window.fit();null!=p.menus.chatWindow&&p.menus.chatWindow.window.fit();null!=p.menus.tagsWindow&&p.menus.tagsWindow.window.fit();null!=p.menus.findWindow&&p.menus.findWindow.window.fit();null!=p.menus.findReplaceWindow&&p.menus.findReplaceWindow.window.fit()})}}};
+(function(){var b=!1;"min"!=uiTheme||b||mxClient.IS_CHROMEAPP||(EditorUi.initMinimalTheme(),b=!0);var f=EditorUi.initTheme;EditorUi.initTheme=function(){f.apply(this,arguments);"min"!=uiTheme||b||(this.initMinimalTheme(),b=!0)}})();(function(){var b=mxGuide.prototype.move;mxGuide.prototype.move=function(d,q,x,C){var y=q.y,I=q.x,M=!1,H=!1;if(null!=this.states&&null!=d&&null!=q){var c=this,e=new mxCellState,g=this.graph.getView().scale,l=Math.max(2,this.getGuideTolerance()/2);e.x=d.x+I;e.y=d.y+y;e.width=d.width;e.height=d.height;for(var p=[],u=[],z=0;z<this.states.length;z++){var E=this.states[z];E instanceof mxCellState&&(C||!this.graph.isCellSelected(E.cell))&&((e.x>=E.x&&e.x<=E.x+E.width||E.x>=e.x&&E.x<=e.x+e.width)&&(e.y>
+E.y+E.height+4||e.y+e.height+4<E.y)?p.push(E):(e.y>=E.y&&e.y<=E.y+E.height||E.y>=e.y&&E.y<=e.y+e.height)&&(e.x>E.x+E.width+4||e.x+e.width+4<E.x)&&u.push(E))}var D=0,A=0,P=E=0,R=0,T=0,L=0,U=0,n=5*g;if(1<p.length){p.push(e);p.sort(function(J,K){return J.y-K.y});var t=!1;z=e==p[0];g=e==p[p.length-1];if(!z&&!g)for(z=1;z<p.length-1;z++)if(e==p[z]){g=p[z-1];z=p[z+1];E=A=P=(z.y-g.y-g.height-e.height)/2;break}for(z=0;z<p.length-1;z++){g=p[z];var B=p[z+1],F=e==g||e==B;B=B.y-g.y-g.height;t|=e==g;if(0==A&&0==
+D)A=B,D=1;else if(Math.abs(A-B)<=(F||1==z&&t?l:0))D+=1;else if(1<D&&t){p=p.slice(0,z+1);break}else if(3<=p.length-z&&!t)D=0,E=A=0!=P?P:0,p.splice(0,0==z?1:z),z=-1;else break;0!=E||F||(A=E=B)}3==p.length&&p[1]==e&&(E=0)}if(1<u.length){u.push(e);u.sort(function(J,K){return J.x-K.x});t=!1;z=e==u[0];g=e==u[u.length-1];if(!z&&!g)for(z=1;z<u.length-1;z++)if(e==u[z]){g=u[z-1];z=u[z+1];L=T=U=(z.x-g.x-g.width-e.width)/2;break}for(z=0;z<u.length-1;z++){g=u[z];B=u[z+1];F=e==g||e==B;B=B.x-g.x-g.width;t|=e==g;
+if(0==T&&0==R)T=B,R=1;else if(Math.abs(T-B)<=(F||1==z&&t?l:0))R+=1;else if(1<R&&t){u=u.slice(0,z+1);break}else if(3<=u.length-z&&!t)R=0,L=T=0!=U?U:0,u.splice(0,0==z?1:z),z=-1;else break;0!=L||F||(T=L=B)}3==u.length&&u[1]==e&&(L=0)}l=function(J,K,k,v){var G=[];if(v){v=n;var N=0}else v=0,N=n;G.push(new mxPoint(J.x-v,J.y-N));G.push(new mxPoint(J.x+v,J.y+N));G.push(J);G.push(K);G.push(new mxPoint(K.x-v,K.y-N));G.push(new mxPoint(K.x+v,K.y+N));if(null!=k)return k.points=G,k;J=new mxPolyline(G,mxConstants.GUIDE_COLOR,
+mxConstants.GUIDE_STROKEWIDTH);J.dialect=mxConstants.DIALECT_SVG;J.pointerEvents=!1;J.init(c.graph.getView().getOverlayPane());return J};T=function(J,K){if(J&&null!=c.guidesArrHor)for(J=0;J<c.guidesArrHor.length;J++)c.guidesArrHor[J].node.style.visibility="hidden";if(K&&null!=c.guidesArrVer)for(J=0;J<c.guidesArrVer.length;J++)c.guidesArrVer[J].node.style.visibility="hidden"};if(1<R&&R==u.length-1){R=[];U=c.guidesArrHor;M=[];I=0;z=u[0]==e?1:0;t=u[z].y+u[z].height;if(0<L)for(z=0;z<u.length-1;z++)g=
+u[z],B=u[z+1],e==g?(I=B.x-g.width-L,M.push(new mxPoint(I+g.width+n,t)),M.push(new mxPoint(B.x-n,t))):e==B?(M.push(new mxPoint(g.x+g.width+n,t)),I=g.x+g.width+L,M.push(new mxPoint(I-n,t))):(M.push(new mxPoint(g.x+g.width+n,t)),M.push(new mxPoint(B.x-n,t)));else g=u[0],z=u[2],I=g.x+g.width+(z.x-g.x-g.width-e.width)/2,M.push(new mxPoint(g.x+g.width+n,t)),M.push(new mxPoint(I-n,t)),M.push(new mxPoint(I+e.width+n,t)),M.push(new mxPoint(z.x-n,t));for(z=0;z<M.length;z+=2)u=M[z],L=M[z+1],u=l(u,L,null!=U?
+U[z/2]:null),u.node.style.visibility="visible",u.redraw(),R.push(u);for(z=M.length/2;null!=U&&z<U.length;z++)U[z].destroy();c.guidesArrHor=R;I-=d.x;M=!0}else T(!0);if(1<D&&D==p.length-1){R=[];U=c.guidesArrVer;H=[];y=0;z=p[0]==e?1:0;D=p[z].x+p[z].width;if(0<E)for(z=0;z<p.length-1;z++)g=p[z],B=p[z+1],e==g?(y=B.y-g.height-E,H.push(new mxPoint(D,y+g.height+n)),H.push(new mxPoint(D,B.y-n))):e==B?(H.push(new mxPoint(D,g.y+g.height+n)),y=g.y+g.height+E,H.push(new mxPoint(D,y-n))):(H.push(new mxPoint(D,g.y+
+g.height+n)),H.push(new mxPoint(D,B.y-n)));else g=p[0],z=p[2],y=g.y+g.height+(z.y-g.y-g.height-e.height)/2,H.push(new mxPoint(D,g.y+g.height+n)),H.push(new mxPoint(D,y-n)),H.push(new mxPoint(D,y+e.height+n)),H.push(new mxPoint(D,z.y-n));for(z=0;z<H.length;z+=2)u=H[z],L=H[z+1],u=l(u,L,null!=U?U[z/2]:null,!0),u.node.style.visibility="visible",u.redraw(),R.push(u);for(z=H.length/2;null!=U&&z<U.length;z++)U[z].destroy();c.guidesArrVer=R;y-=d.y;H=!0}else T(!1,!0)}if(M||H)return e=new mxPoint(I,y),p=b.call(this,
+d,e,x,C),M&&!H?e.y=p.y:H&&!M&&(e.x=p.x),p.y!=e.y&&null!=this.guideY&&null!=this.guideY.node&&(this.guideY.node.style.visibility="hidden"),p.x!=e.x&&null!=this.guideX&&null!=this.guideX.node&&(this.guideX.node.style.visibility="hidden"),e;T(!0,!0);return b.apply(this,arguments)};var f=mxGuide.prototype.setVisible;mxGuide.prototype.setVisible=function(d){f.call(this,d);var q=this.guidesArrVer,x=this.guidesArrHor;if(null!=q)for(var C=0;C<q.length;C++)q[C].node.style.visibility=d?"visible":"hidden";if(null!=
+x)for(C=0;C<x.length;C++)x[C].node.style.visibility=d?"visible":"hidden"};var m=mxGuide.prototype.destroy;mxGuide.prototype.destroy=function(){m.call(this);var d=this.guidesArrVer,q=this.guidesArrHor;if(null!=d){for(var x=0;x<d.length;x++)d[x].destroy();this.guidesArrVer=null}if(null!=q){for(x=0;x<q.length;x++)q[x].destroy();this.guidesArrHor=null}}})();function mxRuler(b,f,m,d){function q(){var D=b.getDiagramContainerOffset(),A=b.diagramContainer;c.style.top=A.offsetTop-D.y+"px";c.style.left=A.offsetLeft-D.x+"px";c.style.width=(m?0:A.offsetWidth)+I+"px";c.style.height=(m?A.offsetHeight:0)+I+"px"}function x(D,A,P){if(null!=C)return D;var R;return function(){var T=this,L=arguments,U=P&&!R;clearTimeout(R);R=setTimeout(function(){R=null;P||D.apply(T,L)},A);U&&D.apply(T,L)}}var C=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||
+window.msRequestAnimationFrame,y=window.cancelAnimationFrame||window.mozCancelAnimationFrame,I=this.RULER_THICKNESS,M=this;this.unit=f;var H=Editor.isDarkMode()?{bkgClr:"#202020",outBkgClr:"#1B1D1E",cornerClr:"#1B1D1E",strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{bkgClr:"#ffffff",outBkgClr:"#f1f3f4",cornerClr:"#f1f3f4",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"},c=document.createElement("div");c.className="geRuler";c.style.position="fixed";this.updateStyle=mxUtils.bind(this,
+function(){H=Editor.isDarkMode()?{outBkgClr:"#1B1D1E",cornerClr:"#1B1D1E",strokeClr:"#505759",fontClr:"#BBBBBB",guideClr:"#0088cf"}:{outBkgClr:"#f1f3f4",cornerClr:"#f1f3f4",strokeClr:"#dadce0",fontClr:"#BBBBBB",guideClr:"#0000BB"};c.style[m?"borderRight":"borderBottom"]="0.5px solid "+H.strokeClr;c.style.borderLeft="0.5px solid "+H.strokeClr});this.updateStyle();b.diagramContainer.appendChild(c);mxEvent.disableContextMenu(c);this.editorUiRefresh=b.refresh;b.refresh=function(D){M.editorUiRefresh.apply(b,
+arguments);q()};q();var e=document.createElement("canvas");e.width=c.offsetWidth;e.height=c.offsetHeight;c.style.overflow="hidden";e.style.position="relative";c.appendChild(e);var g=e.getContext("2d");this.ui=b;var l=b.editor.graph;this.graph=l;this.container=c;this.canvas=e;var p=function(D,A,P,R,T){D=Math.round(D);A=Math.round(A);P=Math.round(P);R=Math.round(R);g.beginPath();g.moveTo(D+.5,A+.5);g.lineTo(P+.5,R+.5);g.stroke();T&&(m?(g.save(),g.translate(D,A),g.rotate(-Math.PI/2),g.fillText(T,0,0),
+g.restore()):g.fillText(T,D,A))},u=function(){g.clearRect(0,0,e.width,e.height);g.beginPath();g.lineWidth=.7;g.strokeStyle=H.strokeClr;g.setLineDash([]);g.font="9px Arial";g.textAlign="center";var D=l.view.scale,A=l.view.getBackgroundPageBounds(),P=l.view.translate,R=l.pageVisible;P=R?I+(m?A.y-l.container.scrollTop:A.x-l.container.scrollLeft):I+(m?P.y*D-l.container.scrollTop:P.x*D-l.container.scrollLeft);var T=0;R&&(T=l.getPageLayout(),T=m?T.y*l.pageFormat.height:T.x*l.pageFormat.width);var L;switch(M.unit){case mxConstants.POINTS:var U=
+L=10;var n=[3,5,5,5,5,10,5,5,5,5];break;case mxConstants.MILLIMETERS:L=10;U=mxConstants.PIXELS_PER_MM;n=[5,3,3,3,3,6,3,3,3,3];break;case mxConstants.METERS:L=20;U=mxConstants.PIXELS_PER_MM;n=[5,3,3,3,3,6,3,3,3,3,10,3,3,3,3,6,3,3,3,3];break;case mxConstants.INCHES:L=.5>=D||4<=D?8:16,U=mxConstants.PIXELS_PER_INCH/L,n=[5,3,5,3,7,3,5,3,7,3,5,3,7,3,5,3]}var t=U;2<=D?t=U/(2*Math.floor(D/2)):.5>=D&&(t=U*Math.floor(1/D/2)*(M.unit==mxConstants.MILLIMETERS?2:1));U=null;A=R?Math.min(P+(m?A.height:A.width),m?
+e.height:e.width):m?e.height:e.width;if(R)if(g.fillStyle=H.outBkgClr,m){var B=P-I;0<B&&g.fillRect(0,I,I,B);A<e.height&&g.fillRect(0,A,I,e.height)}else B=P-I,0<B&&g.fillRect(I,0,B,I),A<e.width&&g.fillRect(A,0,e.width,I);g.fillStyle=H.fontClr;for(R=R?P:P%(t*D);R<=A;R+=t*D)if(B=Math.round((R-P)/D/t),!(R<I||B==U)){U=B;var F=null;0==B%L&&(F=M.formatText(T+B*t)+"");m?p(I-n[Math.abs(B)%L],R,I,R,F):p(R,I-n[Math.abs(B)%L],R,I,F)}g.lineWidth=1;p(m?0:I,m?I:0,I,I);g.fillStyle=H.cornerClr;g.fillRect(0,0,I,I)},
+z=-1,E=function(){null!=C?(null!=y&&y(z),z=C(u)):u()};this.drawRuler=E;this.sizeListener=f=x(function(){var D=l.container;m?(D=D.offsetHeight+I,e.height!=D&&(e.height=D,c.style.height=D+"px",E())):(D=D.offsetWidth+I,e.width!=D&&(e.width=D,c.style.width=D+"px",E()))},10);this.pageListener=function(){E()};this.scrollListener=d=x(function(){var D=m?l.container.scrollTop:l.container.scrollLeft;M.lastScroll!=D&&(M.lastScroll=D,E())},10);this.unitListener=function(D,A){M.setUnit(A.getProperty("unit"))};
+l.addListener(mxEvent.SIZE,f);l.container.addEventListener("scroll",d);l.view.addListener("unitChanged",this.unitListener);b.addListener("pageViewChanged",this.pageListener);b.addListener("pageScaleChanged",this.pageListener);b.addListener("pageFormatChanged",this.pageListener);this.setStyle=function(D){H=D;c.style.background=H.bkgClr;u()};this.origGuideMove=mxGuide.prototype.move;mxGuide.prototype.move=function(D,A,P,R){if(m&&4<D.height||!m&&4<D.width){if(null!=M.guidePart)try{g.putImageData(M.guidePart.imgData1,
+M.guidePart.x1,M.guidePart.y1),g.putImageData(M.guidePart.imgData2,M.guidePart.x2,M.guidePart.y2),g.putImageData(M.guidePart.imgData3,M.guidePart.x3,M.guidePart.y3)}catch(v){}var T=M.origGuideMove.apply(this,arguments);try{g.lineWidth=.5;g.strokeStyle=H.guideClr;g.setLineDash([2]);if(m){var L=D.y+T.y+I-this.graph.container.scrollTop;var U=0;var n=L+D.height/2;var t=I/2;var B=L+D.height;var F=0;var J=g.getImageData(U,L-1,I,3);p(U,L,I,L);L--;var K=g.getImageData(t,n-1,I,3);p(t,n,I,n);n--;var k=g.getImageData(F,
+B-1,I,3);p(F,B,I,B);B--}else L=0,U=D.x+T.x+I-this.graph.container.scrollLeft,n=I/2,t=U+D.width/2,B=0,F=U+D.width,J=g.getImageData(U-1,L,3,I),p(U,L,U,I),U--,K=g.getImageData(t-1,n,3,I),p(t,n,t,I),t--,k=g.getImageData(F-1,B,3,I),p(F,B,F,I),F--;if(null==M.guidePart||M.guidePart.x1!=U||M.guidePart.y1!=L)M.guidePart={imgData1:J,x1:U,y1:L,imgData2:K,x2:t,y2:n,imgData3:k,x3:F,y3:B}}catch(v){}}else T=M.origGuideMove.apply(this,arguments);return T};this.origGuideDestroy=mxGuide.prototype.destroy;mxGuide.prototype.destroy=
+function(){var D=M.origGuideDestroy.apply(this,arguments);if(null!=M.guidePart)try{g.putImageData(M.guidePart.imgData1,M.guidePart.x1,M.guidePart.y1),g.putImageData(M.guidePart.imgData2,M.guidePart.x2,M.guidePart.y2),g.putImageData(M.guidePart.imgData3,M.guidePart.x3,M.guidePart.y3),M.guidePart=null}catch(A){}return D}}mxRuler.prototype.RULER_THICKNESS=14;mxRuler.prototype.unit=mxConstants.POINTS;mxRuler.prototype.setUnit=function(b){this.unit=b;this.drawRuler()};
mxRuler.prototype.formatText=function(b){switch(this.unit){case mxConstants.POINTS:return Math.round(b);case mxConstants.MILLIMETERS:return(b/mxConstants.PIXELS_PER_MM).toFixed(1);case mxConstants.METERS:return(b/(1E3*mxConstants.PIXELS_PER_MM)).toFixed(4);case mxConstants.INCHES:return(b/mxConstants.PIXELS_PER_INCH).toFixed(2)}};
mxRuler.prototype.destroy=function(){this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.graph.removeListener(this.sizeListener);this.graph.container.removeEventListener("scroll",this.scrollListener);this.graph.view.removeListener(this.unitListener);this.ui.removeListener(this.pageListener);null!=this.container&&this.container.parentNode.removeChild(this.container)};
-function mxDualRuler(b,f){var m=new mxPoint(mxRuler.prototype.RULER_THICKNESS,mxRuler.prototype.RULER_THICKNESS);this.editorUiGetDiagContOffset=b.getDiagramContainerOffset;b.getDiagramContainerOffset=function(){return m};this.editorUiRefresh=b.refresh;this.ui=b;this.origGuideMove=mxGuide.prototype.move;this.origGuideDestroy=mxGuide.prototype.destroy;this.vRuler=new mxRuler(b,f,!0);this.hRuler=new mxRuler(b,f,!1,!0);f=mxUtils.bind(this,function(d){var t=!1;mxEvent.addGestureListeners(d,mxUtils.bind(this,
-function(x){t=null!=b.currentMenu;mxEvent.consume(x)}),null,mxUtils.bind(this,function(x){if(b.editor.graph.isEnabled()&&!b.editor.graph.isMouseDown&&(mxEvent.isTouchEvent(x)||mxEvent.isPopupTrigger(x))){b.editor.graph.popupMenuHandler.hideMenu();b.hideCurrentMenu();if(!mxEvent.isTouchEvent(x)||!t){var v=new mxPopupMenu(mxUtils.bind(this,function(N,I){b.menus.addMenuItems(N,["points","inches","millimeters","meters"],I)}));v.smartSeparators=!0;v.showDisabled=!0;v.autoExpand=!0;v.hideMenu=mxUtils.bind(this,
-function(){mxPopupMenu.prototype.hideMenu.apply(v,arguments);b.resetCurrentMenu();v.destroy()});var B=mxEvent.getClientX(x),J=mxEvent.getClientY(x);v.popup(B,J,null,x);b.setCurrentMenu(v,d)}mxEvent.consume(x)}}))});f(this.hRuler.container);f(this.vRuler.container);this.vRuler.drawRuler();this.hRuler.drawRuler()}mxDualRuler.prototype.updateStyle=function(){this.vRuler.updateStyle();this.hRuler.updateStyle();this.vRuler.drawRuler();this.hRuler.drawRuler()};
-mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var f=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=f){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var m=mxFreehand.prototype.MILD_SMOOTHING,d=null,t=[],x,v=[],B,J=!1,N=!0,I=!0,c=!0,e=!0,g=[],l=!1,n=!1,u=!1,z="default",D={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},C=!0;this.setClosedPath=function(q){J=q};this.setAutoClose=function(q){N=q};this.setAutoInsert=
-function(q){I=q};this.setAutoScroll=function(q){c=q};this.setOpenFill=function(q){e=q};this.setStopClickEnabled=function(q){n=q};this.setSelectInserted=function(q){u=q};this.setSmoothing=function(q){m=q};this.getSmoothing=function(){return m};this.setPerfectFreehandMode=function(q){C=q};this.isPerfectFreehandMode=function(){return C};this.setBrushSize=function(q){D.size=q};this.getBrushSize=function(){return D.size};var A=function(q){l=q;b.getRubberband().setEnabled(!q);b.graphHandler.setSelectEnabled(!q);
-b.graphHandler.setMoveEnabled(!q);b.container.style.cursor=q?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){A(!0)};this.isDrawing=function(){return l};var Q=mxUtils.bind(this,function(q){if(d){var G=B.length,E=n&&0<v.length&&null!=B&&2>B.length;E||v.push.apply(v,B);B=[];v.push(null);t.push(d);d=null;(E||I)&&this.stopDrawing();I&&(!E||2<=G)&&this.startDrawing();mxEvent.consume(q)}}),S=new mxCell;S.edge=!0;this.getStrokeColor=function(q){var G=null!=
-z?z:mxUtils.getValue(b.currentVertexStyle,mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(b.getCurrentCellStyle(S),mxConstants.STYLE_STROKECOLOR,"#000"));"default"!=G||q||(G=b.shapeForegroundColor);return G};this.setStrokeColor=function(q){z=q};this.createStyle=function(q){var G=";fillColor=none;";C&&(G=";lineShape=1;");G+="strokeColor="+this.getStrokeColor(!0)+";";return mxConstants.STYLE_SHAPE+"="+q+G};this.stopDrawing=function(){if(0<t.length){if(C){for(var q=[],G=0;G<v.length;G++)null!=v[G]&&q.push([v[G].x,
-v[G].y]);q=PerfectFreehand.getStroke(q,D);v=[];for(G=0;G<q.length;G++)v.push({x:q[G][0],y:q[G][1]});v.push(null)}q=v[0].x;var E=v[0].x,H=v[0].y,L=v[0].y;for(G=1;G<v.length;G++)null!=v[G]&&(q=Math.max(q,v[G].x),E=Math.min(E,v[G].x),H=Math.max(H,v[G].y),L=Math.min(L,v[G].y));q-=E;H-=L;if(0<q&&0<H){var K=100/q,k=100/H;v.map(function(R){if(null==R)return R;R.x=(R.x-E)*K;R.y=(R.y-L)*k;return R});var y='<shape strokewidth="inherit"><foreground>',F=0;for(G=0;G<v.length;G++){var M=v[G];if(null==M){M=!1;F=
-v[F];var P=v[G-1];!J&&N&&(M=F.x-P.x,P=F.y-P.y,M=Math.sqrt(M*M+P*P)<=b.tolerance);if(J||M)y+='<line x="'+F.x.toFixed(2)+'" y="'+F.y.toFixed(2)+'"/>';y+="</path>"+(e||J||M?"<fillstroke/>":"<stroke/>");F=G+1}else y=G==F?y+('<path><move x="'+M.x.toFixed(2)+'" y="'+M.y.toFixed(2)+'"/>'):y+('<line x="'+M.x.toFixed(2)+'" y="'+M.y.toFixed(2)+'"/>')}y+="</foreground></shape>";if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){G=this.createStyle("stencil("+Graph.compress(y)+")");y=b.view.scale;F=b.view.translate;
-G=new mxCell("",new mxGeometry(E/y-F.x,L/y-F.y,q/y,H/y),G);G.vertex=1;b.model.beginUpdate();try{G=b.addCell(G),b.fireEvent(new mxEventObject("cellsInserted","cells",[G])),b.fireEvent(new mxEventObject("freehandInserted","cell",G))}finally{b.model.endUpdate()}u&&b.setSelectionCells([G])}}for(G=0;G<t.length;G++)t[G].parentNode.removeChild(t[G]);d=null;t=[];v=[]}A(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(q,G){q=G.getProperty("eventName");G=G.getProperty("event");q==mxEvent.MOUSE_MOVE&&
-l&&(null!=G.sourceState&&G.sourceState.setCursor("crosshair"),G.consume())}));b.addMouseListener({mouseDown:mxUtils.bind(this,function(q,G){if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(q=G.getEvent(),l&&!mxEvent.isPopupTrigger(q)&&!mxEvent.isMiddleMouseButton(q)&&!mxEvent.isMultiTouchEvent(q))){var E=parseFloat(b.currentVertexStyle[mxConstants.STYLE_STROKEWIDTH]||1);E=Math.max(1,E*b.view.scale);var H=this.getStrokeColor();d=document.createElementNS("http://www.w3.org/2000/svg","path");
-d.setAttribute("fill",C?H:"none");d.setAttribute("pointer-events","none");d.setAttribute("stroke",H);d.setAttribute("stroke-width",E);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(H=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3",H=H.split(" ").map(function(L){return parseFloat(L)*E}).join(" "),d.setAttribute("stroke-dasharray",H));g=[];q=U(q);O(q);x="M"+q.x+" "+q.y;v.push(q);B=[];d.setAttribute("d",C?PerfectFreehand.getSvgPathFromStroke([[q.x,q.y]],D):x);f.appendChild(d);G.consume()}}),
-mouseMove:mxUtils.bind(this,function(q,G){if(null!=d&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){q=G.getEvent();q=U(q);O(q);var E=p(0);if(E)if(v.push(E),C){var H=[];for(E=0;E<v.length;E++)H.push([v[E].x,v[E].y]);B=[];for(var L=2;L<g.length;L+=2)E=p(L),H.push([E.x,E.y]),B.push(E);d.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(H,D))}else{x+=" L"+E.x+" "+E.y;H="";B=[];for(L=2;L<g.length;L+=2)E=p(L),H+=" L"+E.x+" "+E.y,B.push(E);d.setAttribute("d",x+H)}c&&(E=b.view.translate,b.scrollRectToVisible((new mxRectangle(q.x-
-E.x,q.y-E.y)).grow(20)));G.consume()}}),mouseUp:mxUtils.bind(this,function(q,G){null!=d&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(Q(G.getEvent()),G.consume())})});var U=function(q){return mxUtils.convertPoint(b.container,mxEvent.getClientX(q),mxEvent.getClientY(q))},O=function(q){for(g.push(q);g.length>m;)g.shift()},p=function(q){var G=g.length;if(1===G%2||G>=m){var E=0,H=0,L,K=0;for(L=q;L<G;L++)K++,q=g[L],E+=q.x,H+=q.y;return{x:E/K,y:H/K}}return null}}}
-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,f,m,d,t){this.id=b;this.email=f;this.displayName=m;this.pictureUrl=d;this.locale=t};DrawioComment=function(b,f,m,d,t,x,v){this.file=b;this.id=f;this.content=m;this.modifiedDate=d;this.createdDate=t;this.isResolved=x;this.user=v;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,f,m,d,t){f()};DrawioComment.prototype.editComment=function(b,f,m){f()};DrawioComment.prototype.deleteComment=function(b,f){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;
+function mxDualRuler(b,f){var m=new mxPoint(mxRuler.prototype.RULER_THICKNESS,mxRuler.prototype.RULER_THICKNESS);this.editorUiGetDiagContOffset=b.getDiagramContainerOffset;b.getDiagramContainerOffset=function(){return m};this.editorUiRefresh=b.refresh;this.ui=b;this.origGuideMove=mxGuide.prototype.move;this.origGuideDestroy=mxGuide.prototype.destroy;this.vRuler=new mxRuler(b,f,!0);this.hRuler=new mxRuler(b,f,!1,!0);f=mxUtils.bind(this,function(d){var q=!1;mxEvent.addGestureListeners(d,mxUtils.bind(this,
+function(x){q=null!=b.currentMenu;mxEvent.consume(x)}),null,mxUtils.bind(this,function(x){if(b.editor.graph.isEnabled()&&!b.editor.graph.isMouseDown&&(mxEvent.isTouchEvent(x)||mxEvent.isPopupTrigger(x))){b.editor.graph.popupMenuHandler.hideMenu();b.hideCurrentMenu();if(!mxEvent.isTouchEvent(x)||!q){var C=new mxPopupMenu(mxUtils.bind(this,function(M,H){b.menus.addMenuItems(M,["points","inches","millimeters","meters"],H)}));C.smartSeparators=!0;C.showDisabled=!0;C.autoExpand=!0;C.hideMenu=mxUtils.bind(this,
+function(){mxPopupMenu.prototype.hideMenu.apply(C,arguments);b.resetCurrentMenu();C.destroy()});var y=mxEvent.getClientX(x),I=mxEvent.getClientY(x);C.popup(y,I,null,x);b.setCurrentMenu(C,d)}mxEvent.consume(x)}}))});f(this.hRuler.container);f(this.vRuler.container);this.vRuler.drawRuler();this.hRuler.drawRuler()}mxDualRuler.prototype.updateStyle=function(){this.vRuler.updateStyle();this.hRuler.updateStyle();this.vRuler.drawRuler();this.hRuler.drawRuler()};
+mxDualRuler.prototype.setUnit=function(b){this.vRuler.setUnit(b);this.hRuler.setUnit(b)};mxDualRuler.prototype.setStyle=function(b){this.vRuler.setStyle(b);this.hRuler.setStyle(b)};mxDualRuler.prototype.destroy=function(){this.vRuler.destroy();this.hRuler.destroy();this.ui.refresh=this.editorUiRefresh;mxGuide.prototype.move=this.origGuideMove;mxGuide.prototype.destroy=this.origGuideDestroy;this.ui.getDiagramContainerOffset=this.editorUiGetDiagContOffset};function mxFreehand(b){var f=null!=b.view&&null!=b.view.canvas?b.view.canvas.ownerSVGElement:null;if(null!=b.container&&null!=f){b.addListener(mxEvent.ESCAPE,mxUtils.bind(this,function(){this.stopDrawing()}));var m=mxFreehand.prototype.MILD_SMOOTHING,d=null,q=[],x,C=[],y,I=!1,M=!0,H=!0,c=!0,e=!0,g=[],l=!1,p=!1,u=!1,z="default",E={size:5,thinning:.5,smoothing:.5,streamline:.5,start:{taper:0,cap:!0},end:{taper:0,cap:!0}},D=!0;this.setClosedPath=function(n){I=n};this.setAutoClose=function(n){M=n};this.setAutoInsert=
+function(n){H=n};this.setAutoScroll=function(n){c=n};this.setOpenFill=function(n){e=n};this.setStopClickEnabled=function(n){p=n};this.setSelectInserted=function(n){u=n};this.setSmoothing=function(n){m=n};this.getSmoothing=function(){return m};this.setPerfectFreehandMode=function(n){D=n};this.isPerfectFreehandMode=function(){return D};this.setBrushSize=function(n){E.size=n};this.getBrushSize=function(){return E.size};var A=function(n){l=n;b.getRubberband().setEnabled(!n);b.graphHandler.setSelectEnabled(!n);
+b.graphHandler.setMoveEnabled(!n);b.container.style.cursor=n?"crosshair":"";b.fireEvent(new mxEventObject("freehandStateChanged"))};this.startDrawing=function(){A(!0)};this.isDrawing=function(){return l};var P=mxUtils.bind(this,function(n){if(d){var t=y.length,B=p&&0<C.length&&null!=y&&2>y.length;B||C.push.apply(C,y);y=[];C.push(null);q.push(d);d=null;(B||H)&&this.stopDrawing();H&&(!B||2<=t)&&this.startDrawing();mxEvent.consume(n)}}),R=new mxCell;R.edge=!0;this.getStrokeColor=function(n){var t=null!=
+z?z:mxUtils.getValue(b.currentVertexStyle,mxConstants.STYLE_STROKECOLOR,mxUtils.getValue(b.getCurrentCellStyle(R),mxConstants.STYLE_STROKECOLOR,"#000"));"default"!=t||n||(t=b.shapeForegroundColor);return t};this.setStrokeColor=function(n){z=n};this.createStyle=function(n){var t=";fillColor=none;";D&&(t=";lineShape=1;");t+="strokeColor="+this.getStrokeColor(!0)+";";return mxConstants.STYLE_SHAPE+"="+n+t};this.stopDrawing=function(){if(0<q.length){if(D){for(var n=[],t=0;t<C.length;t++)null!=C[t]&&n.push([C[t].x,
+C[t].y]);n=PerfectFreehand.getStroke(n,E);C=[];for(t=0;t<n.length;t++)C.push({x:n[t][0],y:n[t][1]});C.push(null)}n=C[0].x;var B=C[0].x,F=C[0].y,J=C[0].y;for(t=1;t<C.length;t++)null!=C[t]&&(n=Math.max(n,C[t].x),B=Math.min(B,C[t].x),F=Math.max(F,C[t].y),J=Math.min(J,C[t].y));n-=B;F-=J;if(0<n&&0<F){var K=100/n,k=100/F;C.map(function(Q){if(null==Q)return Q;Q.x=(Q.x-B)*K;Q.y=(Q.y-J)*k;return Q});var v='<shape strokewidth="inherit"><foreground>',G=0;for(t=0;t<C.length;t++){var N=C[t];if(null==N){N=!1;G=
+C[G];var O=C[t-1];!I&&M&&(N=G.x-O.x,O=G.y-O.y,N=Math.sqrt(N*N+O*O)<=b.tolerance);if(I||N)v+='<line x="'+G.x.toFixed(2)+'" y="'+G.y.toFixed(2)+'"/>';v+="</path>"+(e||I||N?"<fillstroke/>":"<stroke/>");G=t+1}else v=t==G?v+('<path><move x="'+N.x.toFixed(2)+'" y="'+N.y.toFixed(2)+'"/>'):v+('<line x="'+N.x.toFixed(2)+'" y="'+N.y.toFixed(2)+'"/>')}v+="</foreground></shape>";if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){t=this.createStyle("stencil("+Graph.compress(v)+")");v=b.view.scale;G=b.view.translate;
+t=new mxCell("",new mxGeometry(B/v-G.x,J/v-G.y,n/v,F/v),t);t.vertex=1;b.model.beginUpdate();try{t=b.addCell(t),b.fireEvent(new mxEventObject("cellsInserted","cells",[t])),b.fireEvent(new mxEventObject("freehandInserted","cell",t))}finally{b.model.endUpdate()}u&&b.setSelectionCells([t])}}for(t=0;t<q.length;t++)q[t].parentNode.removeChild(q[t]);d=null;q=[];C=[]}A(!1)};b.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(n,t){n=t.getProperty("eventName");t=t.getProperty("event");n==mxEvent.MOUSE_MOVE&&
+l&&(null!=t.sourceState&&t.sourceState.setCursor("crosshair"),t.consume())}));b.addMouseListener({mouseDown:mxUtils.bind(this,function(n,t){if(b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(n=t.getEvent(),l&&!mxEvent.isPopupTrigger(n)&&!mxEvent.isMiddleMouseButton(n)&&!mxEvent.isMultiTouchEvent(n))){var B=parseFloat(b.currentVertexStyle[mxConstants.STYLE_STROKEWIDTH]||1);B=Math.max(1,B*b.view.scale);var F=this.getStrokeColor();d=document.createElementNS("http://www.w3.org/2000/svg","path");
+d.setAttribute("fill",D?F:"none");d.setAttribute("pointer-events","none");d.setAttribute("stroke",F);d.setAttribute("stroke-width",B);"1"==b.currentVertexStyle[mxConstants.STYLE_DASHED]&&(F=b.currentVertexStyle[mxConstants.STYLE_DASH_PATTERN]||"3 3",F=F.split(" ").map(function(J){return parseFloat(J)*B}).join(" "),d.setAttribute("stroke-dasharray",F));g=[];n=T(n);L(n);x="M"+n.x+" "+n.y;C.push(n);y=[];d.setAttribute("d",D?PerfectFreehand.getSvgPathFromStroke([[n.x,n.y]],E):x);f.appendChild(d);t.consume()}}),
+mouseMove:mxUtils.bind(this,function(n,t){if(null!=d&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())){n=t.getEvent();n=T(n);L(n);var B=U(0);if(B)if(C.push(B),D){var F=[];for(B=0;B<C.length;B++)F.push([C[B].x,C[B].y]);y=[];for(var J=2;J<g.length;J+=2)B=U(J),F.push([B.x,B.y]),y.push(B);d.setAttribute("d",PerfectFreehand.getSvgPathFromStroke(F,E))}else{x+=" L"+B.x+" "+B.y;F="";y=[];for(J=2;J<g.length;J+=2)B=U(J),F+=" L"+B.x+" "+B.y,y.push(B);d.setAttribute("d",x+F)}c&&(B=b.view.translate,b.scrollRectToVisible((new mxRectangle(n.x-
+B.x,n.y-B.y)).grow(20)));t.consume()}}),mouseUp:mxUtils.bind(this,function(n,t){null!=d&&b.isEnabled()&&!b.isCellLocked(b.getDefaultParent())&&(P(t.getEvent()),t.consume())})});var T=function(n){return mxUtils.convertPoint(b.container,mxEvent.getClientX(n),mxEvent.getClientY(n))},L=function(n){for(g.push(n);g.length>m;)g.shift()},U=function(n){var t=g.length;if(1===t%2||t>=m){var B=0,F=0,J,K=0;for(J=n;J<t;J++)K++,n=g[J],B+=n.x,F+=n.y;return{x:B/K,y:F/K}}return null}}}
+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,f,m,d,q){this.id=b;this.email=f;this.displayName=m;this.pictureUrl=d;this.locale=q};DrawioComment=function(b,f,m,d,q,x,C){this.file=b;this.id=f;this.content=m;this.modifiedDate=d;this.createdDate=q;this.isResolved=x;this.user=C;this.replies=[]};DrawioComment.prototype.addReplyDirect=function(b){null!=b&&this.replies.push(b)};DrawioComment.prototype.addReply=function(b,f,m,d,q){f()};DrawioComment.prototype.editComment=function(b,f,m){f()};DrawioComment.prototype.deleteComment=function(b,f){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 u(f){if(f&&null!=LucidImporter.imgSrcRepl){var p=LucidImporter.imgSrcRepl.attMap;if(p[f])f=p[f];else{p=LucidImporter.imgSrcRepl.imgRepl;for(var n=0;n<p.length;n++){var e=p[n];f=f.replace(e.searchVal,e.replVal)}LucidImporter.hasExtImgs=!0}}return f}function z(f){gb="";try{if(f){var p=null;LucidImporter.advImpConfig&&LucidImporter.advImpConfig.fontMapping&&(p=LucidImporter.advImpConfig.fontMapping[f]);if(p){for(var n in p)gb+=n+"="+p[n]+";";return p.fontFamily?"font-family: "+p.fontFamily:
@@ -20827,8 +20874,16 @@ function mxShapeNetworksBus(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=
mxShapeNetworksBus.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(8,.5*c+10);a.arcTo(12,12,0,0,1,8,.5*c-10);a.lineTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.close();a.fillAndStroke()};mxShapeNetworksBus.prototype.foreground=function(a,d,e,b,c){a.setFillColor("#ffffff");a.begin();a.moveTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.arcTo(12,12,0,0,1,b-8,.5*c-10);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeNetworksBus.prototype.cst.SHAPE_BUS,mxShapeNetworksBus);
function mxShapeNetworksCommLinkEdge(){mxArrow.call(this)}mxUtils.extend(mxShapeNetworksCommLinkEdge,mxArrow);
mxShapeNetworksCommLinkEdge.prototype.paintEdgeShape=function(a,d){var e=d[0];d=d[d.length-1];var b=d.x-e.x,c=d.y-e.y;e.x+=.05*b;e.y+=.05*c;d.x-=.05*b;d.y-=.05*c;b=d.x-e.x;c=d.y-e.y;var f=Math.sqrt(b*b+c*c),g=b/f,h=c/f,k=e.x+.5*b,l=e.y+.5*c;c=k+g*f/3*.1-h/3*f*.1;b=l+h*f/3*.1+g/3*f*.1;var m=k+g*f*.1+h*f*.1,n=l+h*f*.1-g*f*.1,p=k-g*f/3*.1+h/3*f*.1,q=l-h*f/3*.1-g/3*f*.1;k=k-g*f*.1-h*f*.1;f=l-h*f*.1+g*f*.1;a.begin();a.moveTo(e.x,e.y);a.lineTo(m,n);a.lineTo(c,b);a.lineTo(d.x,d.y);a.lineTo(k,f);a.lineTo(p,
-q);a.close();a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.networks.comm_link_edge",mxShapeNetworksCommLinkEdge);function mxSAPIconShape(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxSAPIconShape,mxShape);mxSAPIconShape.prototype.cst={ICON:"mxgraph.sap.icon"};mxSAPIconShape.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);this.foreground(a,0,0,b,c)};
-mxSAPIconShape.prototype.background=function(a,d,e,b,c){a.ellipse(0,0,b,c);a.fillAndStroke()};mxSAPIconShape.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,"SAPIcon","");a.image(.2*b,.2*c,.6*b,.6*c,GRAPH_IMAGE_PATH+"/lib/sap/"+d+".svg")};mxCellRenderer.registerShape(mxSAPIconShape.prototype.cst.ICON,mxSAPIconShape);
+q);a.close();a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.networks.comm_link_edge",mxShapeNetworksCommLinkEdge);function mxShapeNetworks2Icon(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.prevNetwork2BgColor="9DA6A8"}mxUtils.extend(mxShapeNetworks2Icon,mxShape);
+mxShapeNetworks2Icon.prototype.customProperties=[{name:"network2IconShadow",dispName:"Long Shadow",type:"bool",defVal:!0,primary:!0},{name:"network2bgFillColor",dispName:"Background Color",type:"color",defVal:"#9DA6A8",primary:!0}];mxShapeNetworks2Icon.prototype.cst={SHAPE_ICON:"mxgraph.networks2.icon"};
+mxShapeNetworks2Icon.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"network2IconShadow",!1),g=mxUtils.getColorValue(this.style,"network2bgFillColor","none");a.translate(d,e);"none"!=g&&this.background(a,0,0,b,c);a.setShadow(!1);f&&"none"!=g&&this.longShadow(a,0,0,b,c);"none"!=g?(a.translate(b/7,c/7),this.foreground(a,0,0,b/1.4,c/1.4),a.translate(-b/7,-c/7)):this.foreground(a,0,0,b,c);this.prevNetwork2BgColor=g};
+mxShapeNetworks2Icon.prototype.background=function(a,d,e,b,c){var f=mxUtils.getColorValue(this.style,"gradientColor","none"),g=mxUtils.getValue(this.style,"gradientDirection","south");mxUtils.getColorValue(this.style,"fillColor","#ffffff");var h=mxUtils.getColorValue(this.style,"fillColor","#ffffff");var k=mxUtils.getColorValue(this.style,"network2bgFillColor","none");"none"==f?a.setFillColor(k):a.setGradient(k,f,0,0,b,c,g);a.roundrect(d,e,b,c,.03571*b,.03571*c);a.fill();a.setFillColor(h)};
+mxShapeNetworks2Icon.prototype.foreground=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"network2Icon",null),g=null;null!=f&&(g=mxStencilRegistry.getStencil(f));if("none"!=mxUtils.getColorValue(this.style,"network2bgFillColor","none")){f=mxUtils.getValue(this.style,"network2IconW",1);var h=mxUtils.getValue(this.style,"network2IconH",1),k=mxUtils.getValue(this.style,"network2IconXOffset",0),l=mxUtils.getValue(this.style,"network2IconYOffset",0);null!=g&&g.drawShape(a,this,d+.5*b*(1-f)+k*b,
+e+.5*c*(1-h)+l*c,b*f,c*h)}else g.drawShape(a,this,d,e,b,c)};mxShapeNetworks2Icon.prototype.longShadow=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"network2Icon",null)+"_shadow",g=null;a.setFillColor("#000000");a.setStrokeColor("none");null!=f&&(g=mxStencilRegistry.getStencil(f));null!=g&&g.drawShape(a,this,d,e,b,c)};
+mxShapeNetworks2Icon.prototype.styleChanged=function(a,d,e){if("network2bgFillColor"==a&&e.style[a]!=d&&"none"==d){a=e.view.graph;d=a.getCellGeometry(e.cell);var b=mxUtils.getValue(this.style,"network2IconW",1),c=mxUtils.getValue(this.style,"network2IconH",1);if(null!=d){d=d.clone();var f=d.width,g=d.height;d.width=d.width*b/1.4;d.height=d.height*c/1.4;d.x+=.5*(f-d.width);d.y+=.5*(g-d.height);a.model.setGeometry(e.cell,d)}}else"network2bgFillColor"==a&&e.style[a]!=d&&"none"!=d&&"none"==this.prevNetwork2BgColor&&
+(a=e.view.graph,d=a.getCellGeometry(e.cell),b=mxUtils.getValue(this.style,"network2IconW",1),c=mxUtils.getValue(this.style,"network2IconH",1),null!=d&&(d=d.clone(),f=d.width,g=d.height,d.width=1.4*d.width/b,d.height=1.4*d.height/c,d.x+=.5*(f-d.width),d.y+=.5*(g-d.height),a.model.setGeometry(e.cell,d)))};mxCellRenderer.registerShape(mxShapeNetworks2Icon.prototype.cst.SHAPE_ICON,mxShapeNetworks2Icon);
+function mxSAPIconShape(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxSAPIconShape,mxShape);mxSAPIconShape.prototype.cst={ICON:"mxgraph.sap.icon"};mxSAPIconShape.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);this.foreground(a,0,0,b,c)};mxSAPIconShape.prototype.background=function(a,d,e,b,c){a.ellipse(0,0,b,c);a.fillAndStroke()};
+mxSAPIconShape.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,"SAPIcon","");a.image(.2*b,.2*c,.6*b,.6*c,GRAPH_IMAGE_PATH+"/lib/sap/"+d+".svg")};mxCellRenderer.registerShape(mxSAPIconShape.prototype.cst.ICON,mxSAPIconShape);
mxSAPIconShape.prototype.getConstraints=function(a,d,e){a=[];a.push(new mxConnectionConstraint(new mxPoint(.625,0),!1));a.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));a.push(new mxConnectionConstraint(new mxPoint(.625,1),!1));a.push(new mxConnectionConstraint(new mxPoint(0,.325),!1));a.push(new mxConnectionConstraint(new mxPoint(0,.675),!1));a.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));a.push(new mxConnectionConstraint(new mxPoint(1,0),!1));a.push(new mxConnectionConstraint(new mxPoint(1,
1),!1));a.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));return a};function mxShapeSysMLComposite(){mxCylinder.call(this)}mxUtils.extend(mxShapeSysMLComposite,mxShape);mxShapeSysMLComposite.prototype.isHtmlAllowed=function(){return!1};
mxShapeSysMLComposite.prototype.paintForeground=function(a,d,e,b,c){if(null!=this.style){var f=mxCellRenderer.defaultShapes[this.style.symbol0];a.save();var g=new f;g.style=this.style;f.prototype.paintVertexShape.call(g,a,d,e,b,c);a.restore();a.setDashed(!1);var h=1;do{f=mxCellRenderer.defaultShapes[this.style["symbol"+h]];if(null!=f){g=this.style["symbol"+h+"Align"];var k=this.style["symbol"+h+"VerticalAlign"],l=this.style["symbol"+h+"Width"],m=this.style["symbol"+h+"Height"],n=this.style["symbol"+
@@ -21225,6 +21280,7 @@ f['cisco/misc.xml'] = '7L1tlx23kSb4V+pwP8zMB9N4T+Q54zlHttQ7vdua8bbc7flKU2WJ2xLpI
f['cisco/controllers_and_modules.xml'] = '7R3Lchw37lemZi/JRSZBsptdFeeSjfeUvbgqu7eUIk9ibWTJJcmP/P3OTJMAiUfPjDz2JltJquIYHIIgAOLFR3/z8Pry7eZhdXv5ZvN8/ebjr/eXb19fXF0/XN1dXN3dPt7f3dxs7h9+urx99dObu1fvbjYP62+/2X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IBqy0QecD1maeTXWVrQes9+0iYLkJSx+wVlQfsO5+HrDC10yNAjOr+tXufyEsfCT2vSu/B0YgvDr6h4NSr86gFJ0p/F3ru2t3/Ac=';
diff --git a/src/main/webapp/js/shapes-14-6-5.min.js b/src/main/webapp/js/shapes-14-6-5.min.js
index 58bfde27a..2bc0109d5 100644
--- a/src/main/webapp/js/shapes-14-6-5.min.js
+++ b/src/main/webapp/js/shapes-14-6-5.min.js
@@ -2971,8 +2971,16 @@ function mxShapeNetworksBus(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=
mxShapeNetworksBus.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(8,.5*c+10);a.arcTo(12,12,0,0,1,8,.5*c-10);a.lineTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.close();a.fillAndStroke()};mxShapeNetworksBus.prototype.foreground=function(a,d,e,b,c){a.setFillColor("#ffffff");a.begin();a.moveTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.arcTo(12,12,0,0,1,b-8,.5*c-10);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeNetworksBus.prototype.cst.SHAPE_BUS,mxShapeNetworksBus);
function mxShapeNetworksCommLinkEdge(){mxArrow.call(this)}mxUtils.extend(mxShapeNetworksCommLinkEdge,mxArrow);
mxShapeNetworksCommLinkEdge.prototype.paintEdgeShape=function(a,d){var e=d[0];d=d[d.length-1];var b=d.x-e.x,c=d.y-e.y;e.x+=.05*b;e.y+=.05*c;d.x-=.05*b;d.y-=.05*c;b=d.x-e.x;c=d.y-e.y;var f=Math.sqrt(b*b+c*c),g=b/f,h=c/f,k=e.x+.5*b,l=e.y+.5*c;c=k+g*f/3*.1-h/3*f*.1;b=l+h*f/3*.1+g/3*f*.1;var m=k+g*f*.1+h*f*.1,n=l+h*f*.1-g*f*.1,p=k-g*f/3*.1+h/3*f*.1,q=l-h*f/3*.1-g/3*f*.1;k=k-g*f*.1-h*f*.1;f=l-h*f*.1+g*f*.1;a.begin();a.moveTo(e.x,e.y);a.lineTo(m,n);a.lineTo(c,b);a.lineTo(d.x,d.y);a.lineTo(k,f);a.lineTo(p,
-q);a.close();a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.networks.comm_link_edge",mxShapeNetworksCommLinkEdge);function mxSAPIconShape(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxSAPIconShape,mxShape);mxSAPIconShape.prototype.cst={ICON:"mxgraph.sap.icon"};mxSAPIconShape.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);this.foreground(a,0,0,b,c)};
-mxSAPIconShape.prototype.background=function(a,d,e,b,c){a.ellipse(0,0,b,c);a.fillAndStroke()};mxSAPIconShape.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,"SAPIcon","");a.image(.2*b,.2*c,.6*b,.6*c,GRAPH_IMAGE_PATH+"/lib/sap/"+d+".svg")};mxCellRenderer.registerShape(mxSAPIconShape.prototype.cst.ICON,mxSAPIconShape);
+q);a.close();a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.networks.comm_link_edge",mxShapeNetworksCommLinkEdge);function mxShapeNetworks2Icon(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.prevNetwork2BgColor="9DA6A8"}mxUtils.extend(mxShapeNetworks2Icon,mxShape);
+mxShapeNetworks2Icon.prototype.customProperties=[{name:"network2IconShadow",dispName:"Long Shadow",type:"bool",defVal:!0,primary:!0},{name:"network2bgFillColor",dispName:"Background Color",type:"color",defVal:"#9DA6A8",primary:!0}];mxShapeNetworks2Icon.prototype.cst={SHAPE_ICON:"mxgraph.networks2.icon"};
+mxShapeNetworks2Icon.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"network2IconShadow",!1),g=mxUtils.getColorValue(this.style,"network2bgFillColor","none");a.translate(d,e);"none"!=g&&this.background(a,0,0,b,c);a.setShadow(!1);f&&"none"!=g&&this.longShadow(a,0,0,b,c);"none"!=g?(a.translate(b/7,c/7),this.foreground(a,0,0,b/1.4,c/1.4),a.translate(-b/7,-c/7)):this.foreground(a,0,0,b,c);this.prevNetwork2BgColor=g};
+mxShapeNetworks2Icon.prototype.background=function(a,d,e,b,c){var f=mxUtils.getColorValue(this.style,"gradientColor","none"),g=mxUtils.getValue(this.style,"gradientDirection","south");mxUtils.getColorValue(this.style,"fillColor","#ffffff");var h=mxUtils.getColorValue(this.style,"fillColor","#ffffff");var k=mxUtils.getColorValue(this.style,"network2bgFillColor","none");"none"==f?a.setFillColor(k):a.setGradient(k,f,0,0,b,c,g);a.roundrect(d,e,b,c,.03571*b,.03571*c);a.fill();a.setFillColor(h)};
+mxShapeNetworks2Icon.prototype.foreground=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"network2Icon",null),g=null;null!=f&&(g=mxStencilRegistry.getStencil(f));if("none"!=mxUtils.getColorValue(this.style,"network2bgFillColor","none")){f=mxUtils.getValue(this.style,"network2IconW",1);var h=mxUtils.getValue(this.style,"network2IconH",1),k=mxUtils.getValue(this.style,"network2IconXOffset",0),l=mxUtils.getValue(this.style,"network2IconYOffset",0);null!=g&&g.drawShape(a,this,d+.5*b*(1-f)+k*b,
+e+.5*c*(1-h)+l*c,b*f,c*h)}else g.drawShape(a,this,d,e,b,c)};mxShapeNetworks2Icon.prototype.longShadow=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"network2Icon",null)+"_shadow",g=null;a.setFillColor("#000000");a.setStrokeColor("none");null!=f&&(g=mxStencilRegistry.getStencil(f));null!=g&&g.drawShape(a,this,d,e,b,c)};
+mxShapeNetworks2Icon.prototype.styleChanged=function(a,d,e){if("network2bgFillColor"==a&&e.style[a]!=d&&"none"==d){a=e.view.graph;d=a.getCellGeometry(e.cell);var b=mxUtils.getValue(this.style,"network2IconW",1),c=mxUtils.getValue(this.style,"network2IconH",1);if(null!=d){d=d.clone();var f=d.width,g=d.height;d.width=d.width*b/1.4;d.height=d.height*c/1.4;d.x+=.5*(f-d.width);d.y+=.5*(g-d.height);a.model.setGeometry(e.cell,d)}}else"network2bgFillColor"==a&&e.style[a]!=d&&"none"!=d&&"none"==this.prevNetwork2BgColor&&
+(a=e.view.graph,d=a.getCellGeometry(e.cell),b=mxUtils.getValue(this.style,"network2IconW",1),c=mxUtils.getValue(this.style,"network2IconH",1),null!=d&&(d=d.clone(),f=d.width,g=d.height,d.width=1.4*d.width/b,d.height=1.4*d.height/c,d.x+=.5*(f-d.width),d.y+=.5*(g-d.height),a.model.setGeometry(e.cell,d)))};mxCellRenderer.registerShape(mxShapeNetworks2Icon.prototype.cst.SHAPE_ICON,mxShapeNetworks2Icon);
+function mxSAPIconShape(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxSAPIconShape,mxShape);mxSAPIconShape.prototype.cst={ICON:"mxgraph.sap.icon"};mxSAPIconShape.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);this.foreground(a,0,0,b,c)};mxSAPIconShape.prototype.background=function(a,d,e,b,c){a.ellipse(0,0,b,c);a.fillAndStroke()};
+mxSAPIconShape.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,"SAPIcon","");a.image(.2*b,.2*c,.6*b,.6*c,GRAPH_IMAGE_PATH+"/lib/sap/"+d+".svg")};mxCellRenderer.registerShape(mxSAPIconShape.prototype.cst.ICON,mxSAPIconShape);
mxSAPIconShape.prototype.getConstraints=function(a,d,e){a=[];a.push(new mxConnectionConstraint(new mxPoint(.625,0),!1));a.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));a.push(new mxConnectionConstraint(new mxPoint(.625,1),!1));a.push(new mxConnectionConstraint(new mxPoint(0,.325),!1));a.push(new mxConnectionConstraint(new mxPoint(0,.675),!1));a.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));a.push(new mxConnectionConstraint(new mxPoint(1,0),!1));a.push(new mxConnectionConstraint(new mxPoint(1,
1),!1));a.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));return a};function mxShapeSysMLComposite(){mxCylinder.call(this)}mxUtils.extend(mxShapeSysMLComposite,mxShape);mxShapeSysMLComposite.prototype.isHtmlAllowed=function(){return!1};
mxShapeSysMLComposite.prototype.paintForeground=function(a,d,e,b,c){if(null!=this.style){var f=mxCellRenderer.defaultShapes[this.style.symbol0];a.save();var g=new f;g.style=this.style;f.prototype.paintVertexShape.call(g,a,d,e,b,c);a.restore();a.setDashed(!1);var h=1;do{f=mxCellRenderer.defaultShapes[this.style["symbol"+h]];if(null!=f){g=this.style["symbol"+h+"Align"];var k=this.style["symbol"+h+"VerticalAlign"],l=this.style["symbol"+h+"Width"],m=this.style["symbol"+h+"Height"],n=this.style["symbol"+
diff --git a/src/main/webapp/js/stencils.min.js b/src/main/webapp/js/stencils.min.js
index 2d3fea0db..10826e5ba 100644
--- a/src/main/webapp/js/stencils.min.js
+++ b/src/main/webapp/js/stencils.min.js
@@ -76,6 +76,7 @@ f['cisco/misc.xml'] = '7L1tlx23kSb4V+pwP8zMB9N4T+Q54zlHttQ7vdua8bbc7flKU2WJ2xLpI
f['cisco/controllers_and_modules.xml'] = '7R3Lchw37lemZi/JRSZBsptdFeeSjfeUvbgqu7eUIk9ibWTJJcmP/P3OTJMAiUfPjDz2JltJquIYHIIgAOLFR3/z8Pry7eZhdXv5ZvN8/ebjr/eXb19fXF0/XN1dXN3dPt7f3dxs7h9+urx99dObu1fvbjYP62+/2Xcqfbz7x/erF9/dfb9evX6+Tmm9+vB8Hd16dfnwdnP1+Hz9/vL++vLnm8169bBF99vmw/Wrx+0vr29fb+6vH7fYtuPcbn95fXf7sP/L9meX17ePq4/P1+5ii+/37Z/r1dvtr99sHjf3+7/NY/9z/czq4fUeL5Ue8wi7flqPf2ljTHm50/daJ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JDXa88MP/rMwBakc3gv24cO/Tx//Dw==';
f['gcp/product_cards.xml'] = 'rVZLjqMwFLwK4gAv/htLSTYz21nNAUYMoTuoE4iA9Of24x8QjANqaVYgypTfK7+i2Hfn/FZ2SZ1fy0N6/Xxt89sZXosb3NrmdC/6P0Xenrr0uLcLk7y7lUV/SN/ztsr/Xso0OR9STAhglXqSH5em08+7vm3eyo/q1OsVVX0u26pPkw+zGgOjmrFo6lqTVU3d7Y77l6YtX9vmXp+O+1ven4/7a/NeJp+HVDIQJE2+xo306ktVhxhSoMQjhhEyG8VBSoAxizEcQPoBFRbSi7JsTqkACU+JAT8DJQ9fdE1vYVODhVFxN4kgEBDxRASMQeDw/XtrXsT6TaAa/CSHFOkLtZcvPJ3aFzEMEoyM1Nxio8wDPfLUkM2JkWNldnNDjClQ5cglYO6okaNFoVJEWVo058SYAaeOeNDFUg8auX0NMQfMhpKBiSeKat0wfnJKa5juhc0pAfEtZDFlD6c2YsPJ7tyUv1SXi/OKefbogp213KrzVAZsNN7Pqnvb8J36hu3MVDmH4AzIbGIJc5OzCglAJJxSNkPCGXeDphkQXs4fCg9YrT0eScI9pio4BxGv/DnCCEgcb2qE4l2J8GvhHlMJXMVbWIFGsufdKQqIxZtYgaQKvD8RjlC8PzeJi/4kBSnjTaxAI9n/9AomFAgfzPK7z+uTjrbkV16cdQGrxtFZkX3DOZkE5b7HSoTzgvRnVGxiRGNBzGG+gejYkvQRmsoYocW8KKAkXg1lINUWtNiTCWAbyIJOT7MkWxCzZzAPNgeaqOACROaSguloIS4oKAUhXVhY2WxYhAJOEgxIxFRq+P+wIzSrgtsvcCxe3bi5eNX1UR9WOggYieSrdpqIBqy0QecD1maeTXWVrQes9+0iYLkJSx+wVlQfsO5+HrDC10yNAjOr+tXufyEsfCT2vSu/B0YgvDr6h4NSr86gFJ0p/F3ru2t3/Ac=';
diff --git a/src/main/webapp/js/viewer-static.min.js b/src/main/webapp/js/viewer-static.min.js
index e32a55a02..cd4c16ec0 100644
--- a/src/main/webapp/js/viewer-static.min.js
+++ b/src/main/webapp/js/viewer-static.min.js
@@ -28,7 +28,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url
"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");
"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";
window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";
-window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.2.8",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.2.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/"),
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||
@@ -2064,7 +2064,7 @@ this.gestureHandler);var na=null;this.resizeHandler=mxUtils.bind(this,function()
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(){v.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){v.view.validateBackground()}));v.addListener("gridSizeChanged",mxUtils.bind(this,function(){v.isGridEnabled()&&v.view.validateBackground()}));
this.editor.resetGraph()}this.init();v.standalone||this.open()};EditorUi.compactUi=!0;
EditorUi.parsePng=function(b,e,g){function m(G,S){var F=n;n+=S;return G.substring(F,n)}function v(G){G=m(G,4);return G.charCodeAt(3)+(G.charCodeAt(2)<<8)+(G.charCodeAt(1)<<16)+(G.charCodeAt(0)<<24)}var n=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=v(b);var A=m(b,4);if(null!=e&&e(n-8,A,g))break;value=m(b,g);m(b,4);if("IEND"==A)break}while(g)}};mxUtils.extend(EditorUi,mxEventSource);
-EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?218:230);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.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?220:230);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,
"keydown",mxUtils.bind(this,function(m){this.onKeyDown(m)}));mxEvent.addListener(b.container,"keypress",mxUtils.bind(this,function(m){this.onKeyPress(m)}));this.addUndoListener();this.addBeforeUnloadListener();b.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));b.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));var e=b.setDefaultParent,g=this;this.editor.graph.setDefaultParent=function(){e.apply(this,
@@ -2250,8 +2250,8 @@ EditorUi.prototype.createMenuElement=function(b,e,g){var m=document.createElemen
EditorUi.prototype.addMenuHandler=function(b,e,g){if(null!=e){var m=!0,v=mxUtils.bind(this,function(n){null!=g&&g(n);if(!mxEvent.isConsumed(n)&&m&&(null==b.enabled||b.enabled)){this.editor.graph.popupMenuHandler.hideMenu();var A=new mxPopupMenu(e);A.smartSeparators=!0;A.showDisabled=!0;A.autoExpand=!0;A.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(A,arguments);this.resetCurrentMenu();A.destroy()});this.menus.autoPopup||null==this.currentMenu||this.hideCurrentMenu();var G=
mxUtils.getOffset(b);A.popup(G.x,G.y+b.offsetHeight,null,n);this.setCurrentMenu(A,b)}mxEvent.consume(n)});mxEvent.addListener(b,"mousemove",mxUtils.bind(this,function(n){if(this.menus.autoPopup&&null!=this.currentMenu&&this.currentMenuElt!=b&&null!=this.currentMenuElt){var A=this.currentMenuElt;this.hideCurrentMenu();A.parentNode==b.parentNode&&"INPUT"!=b.nodeName&&v(n)}}));mxEvent.addListener(b,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(n){!this.menus.autoPopup&&null!=
this.currentMenu&&this.currentMenuElt!=b&&mxEvent.isMouseEvent(n)&&this.hideCurrentMenu();m=null==this.currentMenu;"INPUT"!=mxEvent.getSource(n).nodeName?n.preventDefault():n.stopPropagation()}));mxEvent.addListener(b,"click",mxUtils.bind(this,function(n){v(n);m=!0}))}};
-EditorUi.prototype.createZoomInput=function(b){var e=document.createElement("input");e.className="geButton geZoomInput";e.style.backgroundImage="url("+Editor.thinExpandImage+")";e.setAttribute("type","text");e.setAttribute("value","100%");var g=this.menus.get("viewZoom");this.dependsOnLanguage(mxUtils.bind(this,function(){e.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)")}));b&&e.setAttribute("readonly","true");var m=!1;mxEvent.addGestureListeners(e,mxUtils.bind(this,function(v){m=
-!1;mxClient.IS_TOUCH||mxEvent.getSource(v)!=e||document.activeElement==e||(e.focus(),mxClient.IS_GC||mxClient.IS_FF?e.select():document.execCommand("selectAll",!1,null),m=!0)}),mxUtils.bind(this,function(v){mxEvent.getSource(v)==e&&m&&mxEvent.consume(v)}),mxUtils.bind(this,function(v){m&&(mxEvent.consume(v),m=!1)}));this.addMenuHandler(e,g.funct);mxUtils.bind(this,function(v){mxEvent.addListener(v,"click",mxUtils.bind(this,function(A){mxEvent.isAltDown(A)?(this.hideCurrentMenu(),this.actions.get("customZoom").funct(),
+EditorUi.prototype.createZoomInput=function(b){var e=document.createElement("input");e.className="geButton geZoomInput";e.style.backgroundImage="url("+Editor.thinExpandImage+")";e.setAttribute("type","text");e.setAttribute("value","100%");var g=this.menus.get("viewZoom");this.dependsOnLanguage(mxUtils.bind(this,function(){e.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)")}));(b||mxClient.IS_TOUCH)&&e.setAttribute("readonly","true");var m=!1;mxEvent.addGestureListeners(e,mxUtils.bind(this,
+function(v){m=!1;mxClient.IS_TOUCH||mxEvent.getSource(v)!=e||document.activeElement==e||(e.focus(),mxClient.IS_GC||mxClient.IS_FF?e.select():document.execCommand("selectAll",!1,null),m=!0)}),mxUtils.bind(this,function(v){mxEvent.getSource(v)==e&&m&&mxEvent.consume(v)}),mxUtils.bind(this,function(v){m&&(mxEvent.consume(v),m=!1)}));this.addMenuHandler(e,g.funct);mxUtils.bind(this,function(v){mxEvent.addListener(v,"click",mxUtils.bind(this,function(A){mxEvent.isAltDown(A)?(this.hideCurrentMenu(),this.actions.get("customZoom").funct(),
mxEvent.consume(A)):mxEvent.isShiftDown(A)&&(this.hideCurrentMenu(),this.actions.get("smartFit").funct(),mxEvent.consume(A))}));var n=mxUtils.bind(this,function(A,G,S){e.value=Math.round(100*this.editor.graph.view.scale*(null!=S?S:1))+"%";document.activeElement==e&&this.editor.graph.container.focus()});mxEvent.addListener(e,"keydown",mxUtils.bind(this,function(A){if(27==A.keyCode||13==A.keyCode||9==A.keyCode)27==A.keyCode||isNaN(parseInt(e.value))?n():this.editor.graph.zoomTo(parseInt(e.value)/100),
this.hideCurrentMenu(),mxEvent.consume(A)}));this.editor.graph.view.addListener(mxEvent.EVENT_SCALE,n);this.editor.addListener("resetGraphView",n);this.editor.addListener("pageSelected",n);mxEvent.addListener(e,"blur",n);this.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(A,G){n(A,G,G.getProperty("factor"))}))})(e);return e};
EditorUi.prototype.createHelpIcon=function(b,e){e=document.createElement("img");e.setAttribute("src",Editor.helpImage);e.setAttribute("title",mxResources.get("help"));e.className="geHelpIcon";mxEvent.addGestureListeners(e,mxUtils.bind(this,function(g){this.hideCurrentMenu();this.openLink(b);mxEvent.consume(g)}));return e};
@@ -3204,8 +3204,8 @@ Editor.smallPlusImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAY
Editor.hiResImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAA+CAMAAACLMWy1AAAAh1BMVEUAAABMTExERERBQUFBQUFFRUVAQEBCQkJAQEA6OjpDQ0NKSkpBQUFBQUFERERERERBQUFCQkJCQkJCQkJJSUlBQUFCQkJDQ0NDQ0NCQkJDQ0NBQUFBQUFC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GRkb5/XqTAAAAGXRSTlP+AAWODlASCsesX+Lc2LyWe3pwa1tCPjohjSJfoAAAAI1JREFUWMPt1MkKhTAMRuG0anvneXr/J71nUypKcdqI/N8yhLMKMZE1CahnClDQzMPB44ED3EgeCubgDWnWQMHpwTtKwTe+UHD4sJ94wbUEHHFGhILlYDeSnsQeabeCgsPBgB0MOZZ9oGA5GJFiJSfUULAfjLjARrhCwX7wh2YCDwVbwZkUBKqFFJRN+wOcwSgR2sREcgAAAABJRU5ErkJggg==";Editor.blankImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==";
Editor.facebookImage=IMAGE_PATH+"/facebook.png";Editor.tweetImage=IMAGE_PATH+"/tweet.png";Editor.svgBrokenImage=Graph.createSvgImage(10,10,'<rect x="0" y="0" width="10" height="10" stroke="#000" fill="transparent"/><path d="m 0 0 L 10 10 L 0 10 L 10 0" stroke="#000" fill="transparent"/>');Editor.configurationKey=".configuration";Editor.settingsKey=".drawio-config";Editor.defaultCustomLibraries=[];Editor.enableCustomLibraries=!0;Editor.enableUncompressedLibraries=!1;Editor.enableCustomProperties=!0;
-Editor.enableSimpleTheme=!0;Editor.enableHashObjects=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&"1"!=urlParams.embed&&window.top==window.self;Editor.defaultIncludeDiagram=!0;Editor.enableServiceWorker="0"!=urlParams.pwa&&"serviceWorker"in navigator&&("1"==urlParams.offline||/.*\.diagrams\.net$/.test(window.location.hostname)||/.*\.draw\.io$/.test(window.location.hostname));try{Editor.enableServiceWorker&&navigator.serviceWorker}catch(k){Editor.enableServiceWorker=!1}Editor.enableWebFonts="1"!=
-urlParams["safe-style-src"]&&!window.mxIsElectron;Editor.enableShadowOption=!mxClient.IS_SF;Editor.enableExportUrl=!0;Editor.enableRealtime=!0;Editor.enableRealtimeCache=!0;Editor.p2pSyncNotify=!1;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.defaultBorder=5;Editor.addSvgMetadata=!1;Editor.enableAnimations=!0;Editor.enableChatGpt=/test\.draw\.io$/.test(window.location.hostname)||
+Editor.enableSimpleTheme=!0;Editor.enableHashObjects=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&"1"!=urlParams.embed&&window.top==window.self;Editor.defaultIncludeDiagram=!0;Editor.enableServiceWorker="0"!=urlParams.pwa&&"serviceWorker"in navigator&&("1"==urlParams.offline||"1"==urlParams.enableSW||/.*\.diagrams\.net$/.test(window.location.hostname)||/.*\.draw\.io$/.test(window.location.hostname));try{Editor.enableServiceWorker&&navigator.serviceWorker}catch(k){Editor.enableServiceWorker=!1}Editor.enableWebFonts=
+"1"!=urlParams["safe-style-src"]&&!window.mxIsElectron;Editor.enableShadowOption=!mxClient.IS_SF;Editor.enableExportUrl=!0;Editor.enableRealtime=!0;Editor.enableRealtimeCache=!0;Editor.p2pSyncNotify=!1;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.defaultBorder=5;Editor.addSvgMetadata=!1;Editor.enableAnimations=!0;Editor.enableChatGpt=/test\.draw\.io$/.test(window.location.hostname)||
/preprod\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname);Editor.gptApiKey=null!=urlParams["gpt-api-key"]?decodeURIComponent(urlParams["gpt-api-key"]):null;Editor.gptModel=null!=urlParams["gpt-model"]?decodeURIComponent(urlParams["gpt-model"]):"gpt-3.5-turbo";Editor.gptUrl=null!=urlParams["gpt-url"]?decodeURIComponent(urlParams["gpt-url"]):"https://api.openai.com/v1/chat/completions";Editor.replaceSvgDataUris=
!0;Editor.foreignObjectImages=!0;Editor.svgFileTheme="auto";Editor.svgRasterScale=4;Editor.htmlRasterScale=4;Editor.config=null;Editor.configVersion=null;Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(k){k.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(k,B){return"1"==mxUtils.getValue(k.style,"enumerate","0")}},{name:"comic",dispName:"Comic",type:"bool",defVal:!1,isVisible:function(k,
B){return"1"!=mxUtils.getValue(k.style,"sketch","0")}},{name:"jiggle",dispName:"Jiggle",type:"float",min:0,defVal:1,isVisible:function(k,B){return"1"==mxUtils.getValue(k.style,"comic","0")||"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"fillWeight",dispName:"Fill Weight",type:"int",defVal:-1,isVisible:function(k,B){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"hachureGap",dispName:"Hachure Gap",type:"int",defVal:-1,
@@ -3440,28 +3440,28 @@ Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.mod
mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];
mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+
"/gmdl.xml"];mxStencilRegistry.libraries.gcp2=[SHAPES_PATH+"/mxGCP2.js",STENCIL_PATH+"/gcp2.xml"];mxStencilRegistry.libraries.ibm=[SHAPES_PATH+"/mxIBM.js",STENCIL_PATH+"/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 B=null;null!=k&&0<k.length&&("ER"==k.substring(0,2)?B="mxgraph.er":"sysML"==k.substring(0,5)&&(B="mxgraph.sysml"));return B};var ba=
-mxMarker.createMarker;mxMarker.createMarker=function(k,B,I,U,P,T,X,Z,ka,va){if(null!=I&&null==mxMarker.markers[I]){var ua=this.getPackageForType(I);null!=ua&&mxStencilRegistry.getStencil(ua)}return ba.apply(this,arguments)};var ja=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,B,I,U,P,T){"1"==mxUtils.getValue(B.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(B.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return ja.apply(this,arguments)};PrintDialog.prototype.create=
-function(k,B,I,U){function P(){La.value=Math.max(1,Math.min(ua,Math.max(parseInt(La.value),parseInt(ya.value))));ya.value=Math.max(1,Math.min(ua,Math.min(parseInt(La.value),parseInt(ya.value))))}function T(Da){k.lastPrintPagesRadioChecked=Ba.checked;k.lastPrintSelectionOnlyChecked=Ea.checked;k.lastPrintCropRadioChecked=Ca.checked;k.lastPrintFitRadioChecked=Aa.checked;Ba.checked&&ya.value<La.value?(k.lastPrintPagesFromInput=ya.value,k.lastPrintPagesToInput=La.value):(k.lastPrintPagesFromInput=null,
-k.lastPrintPagesToInput=null);fa.value=Math.max(1,Math.min(1600,parseInt(fa.value)))+"%";k.lastPrintZoom=fa.value;k.lastPrintBorder=V.value;k.lastPrintGrid=ia.checked;k.lastPrintTransparent=oa.checked;k.lastPrintInclude=ta.checked;k.lastPrintSheetsAcross=O.value;k.lastPrintSheetsDown=R.value;var Ia={};Ia.border=parseInt(V.value);Ia.scale=parseInt(fa.value)/100;Ia.grid=ia.checked;Ia.transparent=oa.checked;Ia.includeCopy=ta.checked;Ia.sheetsAcross=parseInt(O.value);Ia.sheetsDown=parseInt(R.value);Ia.pagesFrom=
-parseInt(ya.value);Ia.pagesTo=parseInt(La.value);Ia.allPages=qa.checked;Ia.selection=Ea.checked;Ia.pageView=pa.checked;Ia.crop=Ca.checked;Ia.fit=Aa.checked;return null!=I?I(!Da,Ia):k.print(!Da,Ia)}var X=k.editor.graph,Z=document.createElement("div"),ka=document.createElement("h3");ka.style.width="100%";ka.style.textAlign="center";ka.style.marginTop="0px";mxUtils.write(ka,B||mxResources.get("print"));Z.appendChild(ka);var va=1,ua=1;ka=document.createElement("div");ka.style.whiteSpace="nowrap";var qa=
-document.createElement("input");qa.style.marginRight="8px";qa.style.marginBottom="8px";qa.setAttribute("type","radio");qa.setAttribute("name","pages-printdialog");ka.appendChild(qa);B=document.createElement("span");mxUtils.write(B,mxResources.get("allPages"));mxEvent.addListener(B,"click",function(){qa.checked=!0});ka.appendChild(B);mxUtils.br(ka);var Ba=qa.cloneNode(!0);ka.appendChild(Ba);B=document.createElement("span");mxUtils.write(B,mxResources.get("pages")+":");ka.appendChild(B);mxEvent.addListener(B,
-"click",function(){Ba.checked=!0});var ya=document.createElement("input");ya.style.margin="0 4px";ya.setAttribute("value","1");ya.setAttribute("type","number");ya.setAttribute("min","1");ya.style.width="40px";ka.appendChild(ya);B=document.createElement("span");mxUtils.write(B,mxResources.get("to"));ka.appendChild(B);var La=ya.cloneNode(!0);ka.appendChild(La);mxEvent.addListener(ya,"focus",function(){Ba.checked=!0});mxEvent.addListener(La,"focus",function(){Ba.checked=!0});mxEvent.addListener(ya,"change",
-P);mxEvent.addListener(La,"change",P);if(null!=k.pages&&(ua=k.pages.length,null!=k.currentPage))for(var za=0;za<ua;za++)if(k.currentPage==k.pages[za]){va=za+1;break}null!=k.lastPrintPagesFromInput&&null!=k.lastPrintPagesToInput?(ya.value=Math.min(ua,Math.max(1,k.lastPrintPagesFromInput)),La.value=Math.min(ua,Math.max(1,k.lastPrintPagesToInput))):(ya.value=va,La.value=va);ya.setAttribute("max",ua);La.setAttribute("max",ua);za=mxUtils.button(mxResources.get("currentPage"),function(Da){ya.value=va;La.value=
-va;Ba.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";ka.appendChild(za);1<ua&&Z.appendChild(ka);ka=document.createElement("div");ka.style.borderBottom="1px solid lightGray";ka.style.paddingBottom="12px";ka.style.marginBottom="12px";ka.style.whiteSpace="nowrap";var Ea=document.createElement("input");Ea.setAttribute("name","pages-printdialog");
-Ea.setAttribute("type",1==ua?"checkbox":"radio");Ea.style.marginRight="8px";X.isSelectionEmpty()&&Ea.setAttribute("disabled","disabled");X.isEnabled()&&(ka.appendChild(Ea),B=document.createElement("span"),mxUtils.write(B,mxResources.get("selectionOnly")),ka.appendChild(B));(X.isEnabled()||1<ua)&&Z.appendChild(ka);!k.isPagesEnabled()||k.lastPrintPagesRadioChecked?Ba.checked=!0:!X.isSelectionEmpty()&&k.lastPrintSelectionOnlyChecked?Ea.checked=!0:qa.checked=!0;X.isSelectionEmpty()||mxEvent.addListener(B,
-"click",function(){Ea.checked=!Ea.checked});X=document.createElement("div");X.style.whiteSpace="nowrap";var pa=document.createElement("input");pa.style.marginBottom="8px";pa.style.marginRight="8px";pa.setAttribute("type","radio");pa.setAttribute("name","printSize");X.appendChild(pa);B=document.createElement("span");mxUtils.write(B,mxResources.get("pageView"));X.appendChild(B);mxEvent.addListener(X,"click",function(){pa.checked=!0});Z.appendChild(X);X=document.createElement("div");X.style.whiteSpace=
-"nowrap";var Ca=document.createElement("input");Ca.style.marginBottom="8px";Ca.style.marginRight="8px";Ca.setAttribute("type","radio");Ca.setAttribute("name","printSize");X.appendChild(Ca);B=document.createElement("span");mxUtils.write(B,mxResources.get("crop"));X.appendChild(B);mxEvent.addListener(X,"click",function(){Ca.checked=!0});Z.appendChild(X);X=document.createElement("div");X.style.whiteSpace="nowrap";var Aa=document.createElement("input");Aa.style.marginBottom="8px";Aa.style.marginRight=
-"8px";Aa.setAttribute("type","radio");Aa.setAttribute("name","printSize");B=document.createElement("div");B.style.display="inline-block";B.style.verticalAlign="top";B.style.paddingTop="2px";B.appendChild(Aa);X.appendChild(B);ka=document.createElement("table");ka.style.display="inline-block";ka.style.borderSpacing="0";za=document.createElement("tbody");var wa=document.createElement("tr"),Ya=wa.cloneNode(!0),Qa=document.createElement("td"),Ra=Qa.cloneNode(!0),Sa=Qa.cloneNode(!0),Ha=Qa.cloneNode(!0),
-Ma=Qa.cloneNode(!0),y=Qa.cloneNode(!0);Qa.style.textAlign="right";Ha.style.textAlign="right";mxUtils.write(Qa,mxResources.get("fitTo"));mxEvent.addListener(X,"click",function(Da){mxEvent.getSource(Da)!=Aa&&(Aa.checked=!Aa.checked)});var O=document.createElement("input");O.style.margin="0 2px";O.style.boxSizing="border-box";O.setAttribute("value",k.lastPrintSheetsAcross||"1");O.setAttribute("min","1");O.setAttribute("type","number");O.style.width="40px";Ra.appendChild(O);B=document.createElement("span");
-mxUtils.write(B,mxResources.get("fitToSheetsAcross"));Sa.appendChild(B);mxUtils.write(Ha,mxResources.get("fitToBy"));var R=O.cloneNode(!0);R.setAttribute("value",k.lastPrintSheetsDown||"1");Ma.appendChild(R);mxEvent.addListener(O,"click",function(Da){Aa.checked=!0;mxEvent.consume(Da)});mxEvent.addListener(R,"click",function(Da){Aa.checked=!0;mxEvent.consume(Da)});k.lastPrintCropRadioChecked?Ca.checked=!0:k.lastPrintFitRadioChecked?Aa.checked=!0:pa.checked=!0;B=document.createElement("span");mxUtils.write(B,
-mxResources.get("fitToSheetsDown"));y.appendChild(B);wa.appendChild(Qa);wa.appendChild(Ra);wa.appendChild(Sa);Ya.appendChild(Ha);Ya.appendChild(Ma);Ya.appendChild(y);za.appendChild(wa);za.appendChild(Ya);ka.appendChild(za);X.appendChild(ka);Z.appendChild(X);X=document.createElement("div");X.style.borderTop="1px solid lightGray";X.style.whiteSpace="nowrap";X.style.paddingTop="12px";X.style.marginTop="12px";X.style.paddingLeft="8px";mxUtils.write(X,mxResources.get("borderWidth")+":");var V=document.createElement("input");
-V.setAttribute("type","number");V.setAttribute("min","0");V.style.width="40px";V.style.marginLeft="4px";V.value=null!=k.lastPrintBorder?k.lastPrintBorder:mxPrintPreview.prototype.pageMargin;X.appendChild(V);B=document.createElement("span");B.style.marginLeft="8px";mxUtils.write(B,mxResources.get("zoom")+":");X.appendChild(B);var fa=document.createElement("input");fa.style.width="60px";fa.style.marginLeft="4px";fa.value=null!=k.lastPrintZoom?k.lastPrintZoom:"100%";X.appendChild(fa);mxUtils.br(X);var ia=
-document.createElement("input");ia.setAttribute("type","checkbox");ia.style.marginTop="12px";ia.checked=null!=k.lastPrintGrid?k.lastPrintGrid:!1;X.appendChild(ia);B=document.createElement("span");B.style.marginLeft="4px";B.style.marginRight="8px";mxUtils.write(B,mxResources.get("grid"));X.appendChild(B);mxEvent.addListener(B,"click",function(Da){ia.checked=!0;mxEvent.consume(Da)});var oa=document.createElement("input");oa.setAttribute("type","checkbox");oa.style.marginTop="10px";oa.checked=null!=
-k.lastPrintTransparent?k.lastPrintTransparent:!1;null!=I&&(X.appendChild(oa),B=document.createElement("span"),B.style.marginLeft="4px",mxUtils.write(B,mxResources.get("transparentBackground")),X.appendChild(B),mxEvent.addListener(B,"click",function(Da){oa.checked=!0;mxEvent.consume(Da)}));var ta=document.createElement("input");ta.setAttribute("type","checkbox");ta.style.marginTop="10px";ta.checked=null!=k.lastPrintInclude?k.lastPrintInclude:Editor.defaultIncludeDiagram;null==I||mxClient.IS_CHROMEAPP||
-"draw.io"!=k.getServiceName()||(mxUtils.br(X),X.appendChild(ta),B=document.createElement("span"),B.style.marginLeft="4px",mxUtils.write(B,mxResources.get("includeCopyOfMyDiagram")),X.appendChild(B),mxEvent.addListener(B,"click",function(Da){ta.checked=!0;mxEvent.consume(Da)}));Z.appendChild(X);B=document.createElement("div");B.style.marginTop="40px";B.style.textAlign="right";B.style.whiteSpace="nowrap";k.isOffline()||null!=I||B.appendChild(k.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));
+[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.networks2=[SHAPES_PATH+"/mxNetworks2.js",STENCIL_PATH+"/networks2.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 B=null;null!=k&&0<k.length&&("ER"==k.substring(0,
+2)?B="mxgraph.er":"sysML"==k.substring(0,5)&&(B="mxgraph.sysml"));return B};var ba=mxMarker.createMarker;mxMarker.createMarker=function(k,B,I,U,P,T,X,Z,ka,va){if(null!=I&&null==mxMarker.markers[I]){var ua=this.getPackageForType(I);null!=ua&&mxStencilRegistry.getStencil(ua)}return ba.apply(this,arguments)};var ja=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,B,I,U,P,T){"1"==mxUtils.getValue(B.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(B.style,mxConstants.STYLE_STROKECOLOR,
+this.stroke));return ja.apply(this,arguments)};PrintDialog.prototype.create=function(k,B,I,U){function P(){La.value=Math.max(1,Math.min(ua,Math.max(parseInt(La.value),parseInt(ya.value))));ya.value=Math.max(1,Math.min(ua,Math.min(parseInt(La.value),parseInt(ya.value))))}function T(Da){k.lastPrintPagesRadioChecked=Ba.checked;k.lastPrintSelectionOnlyChecked=Ea.checked;k.lastPrintCropRadioChecked=Ca.checked;k.lastPrintFitRadioChecked=Aa.checked;Ba.checked&&ya.value<La.value?(k.lastPrintPagesFromInput=
+ya.value,k.lastPrintPagesToInput=La.value):(k.lastPrintPagesFromInput=null,k.lastPrintPagesToInput=null);fa.value=Math.max(1,Math.min(1600,parseInt(fa.value)))+"%";k.lastPrintZoom=fa.value;k.lastPrintBorder=V.value;k.lastPrintGrid=ia.checked;k.lastPrintTransparent=oa.checked;k.lastPrintInclude=ta.checked;k.lastPrintSheetsAcross=O.value;k.lastPrintSheetsDown=R.value;var Ia={};Ia.border=parseInt(V.value);Ia.scale=parseInt(fa.value)/100;Ia.grid=ia.checked;Ia.transparent=oa.checked;Ia.includeCopy=ta.checked;
+Ia.sheetsAcross=parseInt(O.value);Ia.sheetsDown=parseInt(R.value);Ia.pagesFrom=parseInt(ya.value);Ia.pagesTo=parseInt(La.value);Ia.allPages=qa.checked;Ia.selection=Ea.checked;Ia.pageView=pa.checked;Ia.crop=Ca.checked;Ia.fit=Aa.checked;return null!=I?I(!Da,Ia):k.print(!Da,Ia)}var X=k.editor.graph,Z=document.createElement("div"),ka=document.createElement("h3");ka.style.width="100%";ka.style.textAlign="center";ka.style.marginTop="0px";mxUtils.write(ka,B||mxResources.get("print"));Z.appendChild(ka);var va=
+1,ua=1;ka=document.createElement("div");ka.style.whiteSpace="nowrap";var qa=document.createElement("input");qa.style.marginRight="8px";qa.style.marginBottom="8px";qa.setAttribute("type","radio");qa.setAttribute("name","pages-printdialog");ka.appendChild(qa);B=document.createElement("span");mxUtils.write(B,mxResources.get("allPages"));mxEvent.addListener(B,"click",function(){qa.checked=!0});ka.appendChild(B);mxUtils.br(ka);var Ba=qa.cloneNode(!0);ka.appendChild(Ba);B=document.createElement("span");
+mxUtils.write(B,mxResources.get("pages")+":");ka.appendChild(B);mxEvent.addListener(B,"click",function(){Ba.checked=!0});var ya=document.createElement("input");ya.style.margin="0 4px";ya.setAttribute("value","1");ya.setAttribute("type","number");ya.setAttribute("min","1");ya.style.width="40px";ka.appendChild(ya);B=document.createElement("span");mxUtils.write(B,mxResources.get("to"));ka.appendChild(B);var La=ya.cloneNode(!0);ka.appendChild(La);mxEvent.addListener(ya,"focus",function(){Ba.checked=!0});
+mxEvent.addListener(La,"focus",function(){Ba.checked=!0});mxEvent.addListener(ya,"change",P);mxEvent.addListener(La,"change",P);if(null!=k.pages&&(ua=k.pages.length,null!=k.currentPage))for(var za=0;za<ua;za++)if(k.currentPage==k.pages[za]){va=za+1;break}null!=k.lastPrintPagesFromInput&&null!=k.lastPrintPagesToInput?(ya.value=Math.min(ua,Math.max(1,k.lastPrintPagesFromInput)),La.value=Math.min(ua,Math.max(1,k.lastPrintPagesToInput))):(ya.value=va,La.value=va);ya.setAttribute("max",ua);La.setAttribute("max",
+ua);za=mxUtils.button(mxResources.get("currentPage"),function(Da){ya.value=va;La.value=va;Ba.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";ka.appendChild(za);1<ua&&Z.appendChild(ka);ka=document.createElement("div");ka.style.borderBottom="1px solid lightGray";ka.style.paddingBottom="12px";ka.style.marginBottom="12px";ka.style.whiteSpace=
+"nowrap";var Ea=document.createElement("input");Ea.setAttribute("name","pages-printdialog");Ea.setAttribute("type",1==ua?"checkbox":"radio");Ea.style.marginRight="8px";X.isSelectionEmpty()&&Ea.setAttribute("disabled","disabled");X.isEnabled()&&(ka.appendChild(Ea),B=document.createElement("span"),mxUtils.write(B,mxResources.get("selectionOnly")),ka.appendChild(B));(X.isEnabled()||1<ua)&&Z.appendChild(ka);!k.isPagesEnabled()||k.lastPrintPagesRadioChecked?Ba.checked=!0:!X.isSelectionEmpty()&&k.lastPrintSelectionOnlyChecked?
+Ea.checked=!0:qa.checked=!0;X.isSelectionEmpty()||mxEvent.addListener(B,"click",function(){Ea.checked=!Ea.checked});X=document.createElement("div");X.style.whiteSpace="nowrap";var pa=document.createElement("input");pa.style.marginBottom="8px";pa.style.marginRight="8px";pa.setAttribute("type","radio");pa.setAttribute("name","printSize");X.appendChild(pa);B=document.createElement("span");mxUtils.write(B,mxResources.get("pageView"));X.appendChild(B);mxEvent.addListener(X,"click",function(){pa.checked=
+!0});Z.appendChild(X);X=document.createElement("div");X.style.whiteSpace="nowrap";var Ca=document.createElement("input");Ca.style.marginBottom="8px";Ca.style.marginRight="8px";Ca.setAttribute("type","radio");Ca.setAttribute("name","printSize");X.appendChild(Ca);B=document.createElement("span");mxUtils.write(B,mxResources.get("crop"));X.appendChild(B);mxEvent.addListener(X,"click",function(){Ca.checked=!0});Z.appendChild(X);X=document.createElement("div");X.style.whiteSpace="nowrap";var Aa=document.createElement("input");
+Aa.style.marginBottom="8px";Aa.style.marginRight="8px";Aa.setAttribute("type","radio");Aa.setAttribute("name","printSize");B=document.createElement("div");B.style.display="inline-block";B.style.verticalAlign="top";B.style.paddingTop="2px";B.appendChild(Aa);X.appendChild(B);ka=document.createElement("table");ka.style.display="inline-block";ka.style.borderSpacing="0";za=document.createElement("tbody");var wa=document.createElement("tr"),Ya=wa.cloneNode(!0),Qa=document.createElement("td"),Ra=Qa.cloneNode(!0),
+Sa=Qa.cloneNode(!0),Ha=Qa.cloneNode(!0),Ma=Qa.cloneNode(!0),y=Qa.cloneNode(!0);Qa.style.textAlign="right";Ha.style.textAlign="right";mxUtils.write(Qa,mxResources.get("fitTo"));mxEvent.addListener(X,"click",function(Da){mxEvent.getSource(Da)!=Aa&&(Aa.checked=!Aa.checked)});var O=document.createElement("input");O.style.margin="0 2px";O.style.boxSizing="border-box";O.setAttribute("value",k.lastPrintSheetsAcross||"1");O.setAttribute("min","1");O.setAttribute("type","number");O.style.width="40px";Ra.appendChild(O);
+B=document.createElement("span");mxUtils.write(B,mxResources.get("fitToSheetsAcross"));Sa.appendChild(B);mxUtils.write(Ha,mxResources.get("fitToBy"));var R=O.cloneNode(!0);R.setAttribute("value",k.lastPrintSheetsDown||"1");Ma.appendChild(R);mxEvent.addListener(O,"click",function(Da){Aa.checked=!0;mxEvent.consume(Da)});mxEvent.addListener(R,"click",function(Da){Aa.checked=!0;mxEvent.consume(Da)});k.lastPrintCropRadioChecked?Ca.checked=!0:k.lastPrintFitRadioChecked?Aa.checked=!0:pa.checked=!0;B=document.createElement("span");
+mxUtils.write(B,mxResources.get("fitToSheetsDown"));y.appendChild(B);wa.appendChild(Qa);wa.appendChild(Ra);wa.appendChild(Sa);Ya.appendChild(Ha);Ya.appendChild(Ma);Ya.appendChild(y);za.appendChild(wa);za.appendChild(Ya);ka.appendChild(za);X.appendChild(ka);Z.appendChild(X);X=document.createElement("div");X.style.borderTop="1px solid lightGray";X.style.whiteSpace="nowrap";X.style.paddingTop="12px";X.style.marginTop="12px";X.style.paddingLeft="8px";mxUtils.write(X,mxResources.get("borderWidth")+":");
+var V=document.createElement("input");V.setAttribute("type","number");V.setAttribute("min","0");V.style.width="40px";V.style.marginLeft="4px";V.value=null!=k.lastPrintBorder?k.lastPrintBorder:mxPrintPreview.prototype.pageMargin;X.appendChild(V);B=document.createElement("span");B.style.marginLeft="8px";mxUtils.write(B,mxResources.get("zoom")+":");X.appendChild(B);var fa=document.createElement("input");fa.style.width="60px";fa.style.marginLeft="4px";fa.value=null!=k.lastPrintZoom?k.lastPrintZoom:"100%";
+X.appendChild(fa);mxUtils.br(X);var ia=document.createElement("input");ia.setAttribute("type","checkbox");ia.style.marginTop="12px";ia.checked=null!=k.lastPrintGrid?k.lastPrintGrid:!1;X.appendChild(ia);B=document.createElement("span");B.style.marginLeft="4px";B.style.marginRight="8px";mxUtils.write(B,mxResources.get("grid"));X.appendChild(B);mxEvent.addListener(B,"click",function(Da){ia.checked=!0;mxEvent.consume(Da)});var oa=document.createElement("input");oa.setAttribute("type","checkbox");oa.style.marginTop=
+"10px";oa.checked=null!=k.lastPrintTransparent?k.lastPrintTransparent:!1;null!=I&&(X.appendChild(oa),B=document.createElement("span"),B.style.marginLeft="4px",mxUtils.write(B,mxResources.get("transparentBackground")),X.appendChild(B),mxEvent.addListener(B,"click",function(Da){oa.checked=!0;mxEvent.consume(Da)}));var ta=document.createElement("input");ta.setAttribute("type","checkbox");ta.style.marginTop="10px";ta.checked=null!=k.lastPrintInclude?k.lastPrintInclude:Editor.defaultIncludeDiagram;null==
+I||mxClient.IS_CHROMEAPP||"draw.io"!=k.getServiceName()||(mxUtils.br(X),X.appendChild(ta),B=document.createElement("span"),B.style.marginLeft="4px",mxUtils.write(B,mxResources.get("includeCopyOfMyDiagram")),X.appendChild(B),mxEvent.addListener(B,"click",function(Da){ta.checked=!0;mxEvent.consume(Da)}));Z.appendChild(X);B=document.createElement("div");B.style.marginTop="40px";B.style.textAlign="right";B.style.whiteSpace="nowrap";k.isOffline()||null!=I||B.appendChild(k.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));
X=mxUtils.button(mxResources.get("cancel"),function(){k.hideDialog()});X.className="geBtn";k.editor.cancelFirst&&B.appendChild(X);PrintDialog.previewEnabled&&null==I&&(ka=mxUtils.button(mxResources.get("preview"),function(){try{k.hideDialog(),T(!1)}catch(Da){k.handleError(Da)}}),ka.className="geBtn",B.appendChild(ka));U=null!=U?U:null!=I?"export":PrintDialog.previewEnabled?"print":"ok";U=mxUtils.button(mxResources.get(U),function(){try{k.hideDialog(),T(!0)}catch(Da){k.handleError(Da)}});U.className=
"geBtn gePrimaryBtn";B.appendChild(U);k.editor.cancelFirst||B.appendChild(X);Z.appendChild(B);if(k.editor.isChromelessView()){var ra=function(){Editor.isDarkMode()?(Z.classList.add("geDarkMode"),Z.style.colorScheme="dark"):(Z.classList.remove("geDarkMode"),Z.style.colorScheme="light")};k.addListener("darkModeChanged",ra);ra();var xa=function(Da,Ia){Da=Ia.getProperty("dialog");Z.parentNode==Da.container&&(k.editor.removeListener(xa),k.removeListener(ra))};k.editor.addListener("hideDialog",xa)}this.container=
Z};var ca=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&&
@@ -3469,7 +3469,7 @@ Z};var ca=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=fu
this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=k?k:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var la=document.createElement("canvas"),Q=new Image;Q.onload=function(){try{la.getContext("2d").drawImage(Q,0,0);var k=la.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=k&&
6<k.length}catch(B){}};Q.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(k){}Editor.prototype.useCanvasForExport=!1})();
(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};b.afterDecode=function(e,g,m){m.previousColor=m.color;m.previousImage=m.image;m.previousFormat=m.format;m.previousAdaptiveColors=m.adaptiveColors;null!=m.foldingEnabled&&(m.foldingEnabled=!m.foldingEnabled);null!=m.mathEnabled&&(m.mathEnabled=!m.mathEnabled);null!=m.shadowVisible&&(m.shadowVisible=!m.shadowVisible);return m};mxCodecRegistry.register(b)})();
-(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.2.8";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&
+(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.2.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&&
"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"}};
@@ -3704,8 +3704,8 @@ t))}),f):f({message:mxResources.get("serviceUnavailableOrBlocked")})}};EditorUi.
window.console&&"1"==urlParams.test){var L=[(new Date).toISOString(),"convertLucidChart",N];null!=N.state&&L.push(JSON.parse(N.state));if(null!=N.svgThumbs)for(var J=0;J<N.svgThumbs.length;J++)L.push(Editor.createSvgDataUri(N.svgThumbs[J]));null!=N.thumb&&L.push(N.thumb);console.log.apply(console,L)}}catch(Y){}}catch(Y){null!=window.console&&console.error(Y),D(Y)}else D({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof window.LucidImporter||this.loadingExtensions||this.isOffline(!0)?
window.setTimeout(H,0):(this.loadingExtensions=!0,"1"==urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){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",H,null,null,null,D)},null,null,null,D)},null,null,null,D)},null,null,null,D)},null,null,null,D):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",H,null,null,null,D))}),
t)};EditorUi.prototype.createMermaidXml=function(c,f,l,t,q,D){var H=new Graph(document.createElement("div"));l=H.insertVertex(null,null,null,0,0,t,q,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+l+";");H.setAttributeForCell(l,"mermaidData",JSON.stringify({data:c,config:f},null,2));null!=D&&H.setAttributeForCell(l,"templatePrompt",D);c=(new mxCodec).encode(H.getModel());return mxUtils.getXml(c)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(c,f,l){var t=0,q=function(){for(var H=
-document.querySelectorAll('div[id*="dgeMermaidOutput-"]'),N=0;N<H.length;N++)null!=H[N].parentNode&&H[N].parentNode.removeChild(H[N])},D=mxUtils.bind(this,function(){this.createTimeout(1E4,mxUtils.bind(this,function(H){var N=new mxXmlRequest("https://www.draw.io/generate/v2",c,"POST"),L=mxUtils.bind(this,function(J){H.clear()&&(q(),l(J))});N.send(mxUtils.bind(this,function(J){if(H.isAlive())if(200<=J.getStatus()&&299>=J.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var ha=mxUtils.trim(J.getText());
-this.generateMermaidImage(ha,null,mxUtils.bind(this,function(ea,aa,na){this.tryAndHandle(mxUtils.bind(this,function(){H.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",c,"\nresult:",ha),q(),f(ha,ea,aa,na))}),L)}),L,mxUtils.bind(this,function(ea){3>t++?H.clear()&&D():L(ea)}))}),L);else{var Y={message:mxResources.get("error")+" "+J.getStatus()};try{Y=JSON.parse(J.getText()),Y=Y.error}catch(ha){}L(Y)}}),L)}),l)});D()};EditorUi.prototype.extractMermaidDeclaration=function(c){c=
+document.querySelectorAll('div[id*="dgeMermaidOutput-"]'),N=0;N<H.length;N++)null!=H[N].parentNode&&H[N].parentNode.removeChild(H[N])},D=mxUtils.bind(this,function(){this.createTimeout(3E4,mxUtils.bind(this,function(H){var N=new mxXmlRequest("https://www.draw.io/generate/v2",c,"POST"),L=mxUtils.bind(this,function(J){H.clear()&&(q(),l(J))});N.send(mxUtils.bind(this,function(J){if(H.isAlive())if(200<=J.getStatus()&&299>=J.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var ha=mxUtils.trim(J.getText());
+this.generateMermaidImage(ha,null,mxUtils.bind(this,function(ea,aa,na){this.tryAndHandle(mxUtils.bind(this,function(){H.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"prompt",[c],"result",[ha]),q(),f(ha,ea,aa,na))}),L)}),L,mxUtils.bind(this,function(ea){3>t++?H.clear()&&D():L(ea)}))}),L);else{var Y={message:mxResources.get("error")+" "+J.getStatus()};try{Y=JSON.parse(J.getText()),Y=Y.error}catch(ha){}L(Y)}}),L)}),l)});D()};EditorUi.prototype.extractMermaidDeclaration=function(c){c=
mxUtils.trim(c);"o\n\n"==c.substring(0,3)&&(c=c.substring(3));var f=c.split("```");f=1<f.length?f:c.split("<pre>");f=1<f.length?f:c.split("~~~");f=1<f.length?f:c.split("%%");f=1<f.length?f:c.split("(Begins)");c=mxUtils.trim(1>=f.length?c:f[1]);f=c.split("\n");var l=1<f.length?f[1]:null;if(null!=l){var t=l.indexOf("-");0<t&&(l=l.substring(0,t))}if(0<f.length&&"mermaid"==mxUtils.trim(f[0])||null!=l&&0<=mxUtils.indexOf(EditorUi.mermaidDiagramTypes,l))f.shift(),c=mxUtils.trim(f.join("\n")),f=c.split("\n");
l=f[0].split(" ")[0].replace(/:$/,"");t=l.indexOf("-");0<t&&(l=l.substring(0,t));try{"mindmap"==l&&2<f.length&&(c=extractMermaidMindmap(f))}catch(q){}0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,l)&&(c=null);return c};EditorUi.prototype.generateMermaidImage=function(c,f,l,t,q){var D=mxUtils.bind(this,function(N){this.loadingMermaid=!1;null!=t?t(N):this.handleError(N)}),H=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;f=null!=f?f:mxUtils.clone(EditorUi.defaultMermaidConfig);f.securityLevel=
"strict";f.startOnLoad=!1;f.maxTextSize=9E5;"undefined"!==typeof mxMermaidToDrawio&&f.flowchart&&0<=c.indexOf("$$")&&(f.flowchart.htmlLabels=!0,mxMermaidToDrawio.htmlLabels=!0);Editor.isDarkMode()&&(f.theme="dark");var N=mxUtils.bind(this,function(L){try{if(mxClient.IS_IE||mxClient.IS_IE11)L=L.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var J=mxUtils.parseXml(L).getElementsByTagName("svg");if(0<J.length&&
@@ -3756,9 +3756,9 @@ null!=k&&null!=k.src&&Graph.isPageLink(k.src)&&(k={originalSrc:k.src});return k}
function(Q,k){Q=null!=f.backgroundImage?f.backgroundImage.originalSrc:null;if(null!=Q){var B=Q.indexOf(",");if(0<B)for(Q=Q.substring(B+1),k=k.getProperty("patches"),B=0;B<k.length;B++)if(null!=k[B][EditorUi.DIFF_UPDATE]&&null!=k[B][EditorUi.DIFF_UPDATE][Q]||null!=k[B][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(k[B][EditorUi.DIFF_REMOVE],Q)){f.refreshBackgroundImage();break}}}));var H=f.getBackgroundImageObject;f.getBackgroundImageObject=function(Q,k){var B=H.apply(this,arguments);null!=B&&null!=B.originalSrc&&
(B=k?c.createImageForPageLink(B.originalSrc,null,null,!0):{src:B.originalSrc});return B};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(Q){Q=null!=Q?Q:"";"1"==
urlParams.dev&&(Q+=(0<Q.length?"&":"?")+"dev=1");return N.apply(this,arguments)};var L=f.addClickHandler;f.addClickHandler=function(Q,k,B){var I=k;k=function(U,P,T){if(null==P){var X=mxEvent.getSource(U);"a"==X.nodeName.toLowerCase()&&(P=X.getAttribute("href"))}null!=P&&f.isCustomLink(P)&&(mxEvent.isTouchEvent(U)||!mxEvent.isPopupTrigger(U))&&f.customLinkClicked(P,T)&&mxEvent.consume(U);null!=I&&I(U,P,T)};L.call(this,Q,k,B)};n.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(Q,k,B){f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(Q,["zoomIn","zoomOut","-"],null,B);J.apply(this,arguments);f.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(Q,["-","addToScratchpad"],null,B);f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(Q,["-","exitGroup","home"],null,B)};var Y=Menus.prototype.addPopupMenuEditItems;
-this.menus.addPopupMenuEditItems=function(Q,k,B){if(c.editor.graph.isSelectionEmpty())Y.apply(this,arguments),c.menus.addMenuItems(Q,["copyAsImage"],null,B);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(Q,k,B):this.addPopupMenuArrangeItems(Q,k,B),this.addMenuItems(Q,"- cut copy copyAsImage duplicate -".split(" "),null,B),this.isShowCellEditItems()||this.addPopupDeleteItem(Q,k,B),this.addMenuItems(Q,["lockUnlock","-"],null,B),!this.isShowStyleItems()){if(1==f.getSelectionCount()&&!f.isCellLocked(k)&&
-f.isCellEditable(k)&&(this.addSubmenu("editCell",Q,null,mxResources.get("edit")),Q.addSeparator(),f.getModel().isEdge(k))){this.addSubmenu("line",Q);var I=f.getModel().getGeometry(k);null!=I&&null!=I.points&&0<I.points.length&&this.addMenuItems(Q,["clearWaypoints"],null,B)}1==f.getSelectionCount()&&this.addMenuItems(Q,["enterGroup"],null,B);I=c.getSelectionState();null!=I.mergeCell?this.addMenuItem(Q,"mergeCells"):(1<I.style.colspan||1<I.style.rowspan)&&this.addMenuItem(Q,"unmergeCells")}};this.menus.isShowStyleItems=
+null,!0);if(null!=this.menus){var J=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(Q,k,B){f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(Q,["zoomIn","zoomOut","-"],null,B);J.apply(this,arguments);f.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(Q,["-","addToScratchpad"],null,B);f.isSelectionEmpty()&&!this.isShowStyleItems()&&this.addMenuItems(Q,["-","exitGroup","home"],null,B)};var Y=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=
+function(Q,k,B){if(c.editor.graph.isSelectionEmpty())Y.apply(this,arguments),c.menus.addMenuItems(Q,["copyAsImage"],null,B);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(Q,k,B):this.addPopupMenuArrangeItems(Q,k,B),this.addMenuItems(Q,"- cut copy copyAsImage duplicate -".split(" "),null,B),this.isShowCellEditItems()||this.addPopupDeleteItem(Q,k,B),this.addMenuItems(Q,["lockUnlock","-"],null,B),!this.isShowStyleItems()){if(1==f.getSelectionCount()&&!f.isCellLocked(k)&&f.isCellEditable(k)&&
+(this.addSubmenu("editCell",Q,null,mxResources.get("edit")),Q.addSeparator(),f.getModel().isEdge(k))){this.addSubmenu("line",Q);var I=f.getModel().getGeometry(k);null!=I&&null!=I.points&&0<I.points.length&&this.addMenuItems(Q,["clearWaypoints"],null,B)}1==f.getSelectionCount()&&this.addMenuItems(Q,["enterGroup"],null,B);I=c.getSelectionState();null!=I.mergeCell?this.addMenuItem(Q,"mergeCells"):(1<I.style.colspan||1<I.style.rowspan)&&this.addMenuItem(Q,"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;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}this.dependsOnLanguage(mxUtils.bind(this,function(){this.defaultFilename=mxResources.get("untitledDiagram");this.defaultLibraryName=mxResources.get("untitledLibrary")}));var ha=f.getExportVariables;f.getExportVariables=
function(){var Q=ha.apply(this,arguments),k=c.getCurrentFile();null!=k&&(Q.filename=k.getTitle());Q.pagecount=null!=c.pages?c.pages.length:1;Q.page=null!=c.currentPage?c.currentPage.getName():"";Q.pagenumber=null!=c.pages&&null!=c.currentPage?mxUtils.indexOf(c.pages,c.currentPage)+1:1;return Q};var ea=f.getGlobalVariable;f.getGlobalVariable=function(Q){var k=c.getCurrentFile();return"filename"==Q&&null!=k?k.getTitle():"page"==Q&&null!=c.currentPage?c.currentPage.getName():"pagenumber"==Q?null!=c.currentPage&&
null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1:"pagecount"==Q?null!=c.pages?c.pages.length:1:ea.apply(this,arguments)};var aa=null,na=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var Q=this.getCurrentFile(),k=null!=Q&&null!=Q.getTitle()?Q.getTitle():this.defaultFilename;aa!=k&&Q==na&&(f.invalidateDescendantsWithPlaceholders(f.model.getRoot()),f.view.validate());aa=k;na=Q}));var W=f.labelLinkClicked;f.labelLinkClicked=function(Q,k,B){var I=k.getAttribute("href");
@@ -7225,8 +7225,16 @@ function mxShapeNetworksBus(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=
mxShapeNetworksBus.prototype.background=function(a,d,e,b,c){a.begin();a.moveTo(8,.5*c+10);a.arcTo(12,12,0,0,1,8,.5*c-10);a.lineTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.close();a.fillAndStroke()};mxShapeNetworksBus.prototype.foreground=function(a,d,e,b,c){a.setFillColor("#ffffff");a.begin();a.moveTo(b-8,.5*c-10);a.arcTo(12,12,0,0,1,b-8,.5*c+10);a.arcTo(12,12,0,0,1,b-8,.5*c-10);a.fillAndStroke()};mxCellRenderer.registerShape(mxShapeNetworksBus.prototype.cst.SHAPE_BUS,mxShapeNetworksBus);
function mxShapeNetworksCommLinkEdge(){mxArrow.call(this)}mxUtils.extend(mxShapeNetworksCommLinkEdge,mxArrow);
mxShapeNetworksCommLinkEdge.prototype.paintEdgeShape=function(a,d){var e=d[0];d=d[d.length-1];var b=d.x-e.x,c=d.y-e.y;e.x+=.05*b;e.y+=.05*c;d.x-=.05*b;d.y-=.05*c;b=d.x-e.x;c=d.y-e.y;var f=Math.sqrt(b*b+c*c),g=b/f,h=c/f,k=e.x+.5*b,l=e.y+.5*c;c=k+g*f/3*.1-h/3*f*.1;b=l+h*f/3*.1+g/3*f*.1;var m=k+g*f*.1+h*f*.1,n=l+h*f*.1-g*f*.1,p=k-g*f/3*.1+h/3*f*.1,q=l-h*f/3*.1-g/3*f*.1;k=k-g*f*.1-h*f*.1;f=l-h*f*.1+g*f*.1;a.begin();a.moveTo(e.x,e.y);a.lineTo(m,n);a.lineTo(c,b);a.lineTo(d.x,d.y);a.lineTo(k,f);a.lineTo(p,
-q);a.close();a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.networks.comm_link_edge",mxShapeNetworksCommLinkEdge);function mxSAPIconShape(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxSAPIconShape,mxShape);mxSAPIconShape.prototype.cst={ICON:"mxgraph.sap.icon"};mxSAPIconShape.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);this.foreground(a,0,0,b,c)};
-mxSAPIconShape.prototype.background=function(a,d,e,b,c){a.ellipse(0,0,b,c);a.fillAndStroke()};mxSAPIconShape.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,"SAPIcon","");a.image(.2*b,.2*c,.6*b,.6*c,GRAPH_IMAGE_PATH+"/lib/sap/"+d+".svg")};mxCellRenderer.registerShape(mxSAPIconShape.prototype.cst.ICON,mxSAPIconShape);
+q);a.close();a.fillAndStroke()};mxCellRenderer.registerShape("mxgraph.networks.comm_link_edge",mxShapeNetworksCommLinkEdge);function mxShapeNetworks2Icon(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1;this.prevNetwork2BgColor="9DA6A8"}mxUtils.extend(mxShapeNetworks2Icon,mxShape);
+mxShapeNetworks2Icon.prototype.customProperties=[{name:"network2IconShadow",dispName:"Long Shadow",type:"bool",defVal:!0,primary:!0},{name:"network2bgFillColor",dispName:"Background Color",type:"color",defVal:"#9DA6A8",primary:!0}];mxShapeNetworks2Icon.prototype.cst={SHAPE_ICON:"mxgraph.networks2.icon"};
+mxShapeNetworks2Icon.prototype.paintVertexShape=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"network2IconShadow",!1),g=mxUtils.getColorValue(this.style,"network2bgFillColor","none");a.translate(d,e);"none"!=g&&this.background(a,0,0,b,c);a.setShadow(!1);f&&"none"!=g&&this.longShadow(a,0,0,b,c);"none"!=g?(a.translate(b/7,c/7),this.foreground(a,0,0,b/1.4,c/1.4),a.translate(-b/7,-c/7)):this.foreground(a,0,0,b,c);this.prevNetwork2BgColor=g};
+mxShapeNetworks2Icon.prototype.background=function(a,d,e,b,c){var f=mxUtils.getColorValue(this.style,"gradientColor","none"),g=mxUtils.getValue(this.style,"gradientDirection","south");mxUtils.getColorValue(this.style,"fillColor","#ffffff");var h=mxUtils.getColorValue(this.style,"fillColor","#ffffff");var k=mxUtils.getColorValue(this.style,"network2bgFillColor","none");"none"==f?a.setFillColor(k):a.setGradient(k,f,0,0,b,c,g);a.roundrect(d,e,b,c,.03571*b,.03571*c);a.fill();a.setFillColor(h)};
+mxShapeNetworks2Icon.prototype.foreground=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"network2Icon",null),g=null;null!=f&&(g=mxStencilRegistry.getStencil(f));if("none"!=mxUtils.getColorValue(this.style,"network2bgFillColor","none")){f=mxUtils.getValue(this.style,"network2IconW",1);var h=mxUtils.getValue(this.style,"network2IconH",1),k=mxUtils.getValue(this.style,"network2IconXOffset",0),l=mxUtils.getValue(this.style,"network2IconYOffset",0);null!=g&&g.drawShape(a,this,d+.5*b*(1-f)+k*b,
+e+.5*c*(1-h)+l*c,b*f,c*h)}else g.drawShape(a,this,d,e,b,c)};mxShapeNetworks2Icon.prototype.longShadow=function(a,d,e,b,c){var f=mxUtils.getValue(this.style,"network2Icon",null)+"_shadow",g=null;a.setFillColor("#000000");a.setStrokeColor("none");null!=f&&(g=mxStencilRegistry.getStencil(f));null!=g&&g.drawShape(a,this,d,e,b,c)};
+mxShapeNetworks2Icon.prototype.styleChanged=function(a,d,e){if("network2bgFillColor"==a&&e.style[a]!=d&&"none"==d){a=e.view.graph;d=a.getCellGeometry(e.cell);var b=mxUtils.getValue(this.style,"network2IconW",1),c=mxUtils.getValue(this.style,"network2IconH",1);if(null!=d){d=d.clone();var f=d.width,g=d.height;d.width=d.width*b/1.4;d.height=d.height*c/1.4;d.x+=.5*(f-d.width);d.y+=.5*(g-d.height);a.model.setGeometry(e.cell,d)}}else"network2bgFillColor"==a&&e.style[a]!=d&&"none"!=d&&"none"==this.prevNetwork2BgColor&&
+(a=e.view.graph,d=a.getCellGeometry(e.cell),b=mxUtils.getValue(this.style,"network2IconW",1),c=mxUtils.getValue(this.style,"network2IconH",1),null!=d&&(d=d.clone(),f=d.width,g=d.height,d.width=1.4*d.width/b,d.height=1.4*d.height/c,d.x+=.5*(f-d.width),d.y+=.5*(g-d.height),a.model.setGeometry(e.cell,d)))};mxCellRenderer.registerShape(mxShapeNetworks2Icon.prototype.cst.SHAPE_ICON,mxShapeNetworks2Icon);
+function mxSAPIconShape(a,d,e,b){mxShape.call(this);this.bounds=a;this.fill=d;this.stroke=e;this.strokewidth=null!=b?b:1}mxUtils.extend(mxSAPIconShape,mxShape);mxSAPIconShape.prototype.cst={ICON:"mxgraph.sap.icon"};mxSAPIconShape.prototype.paintVertexShape=function(a,d,e,b,c){a.translate(d,e);this.background(a,0,0,b,c);a.setShadow(!1);this.foreground(a,0,0,b,c)};mxSAPIconShape.prototype.background=function(a,d,e,b,c){a.ellipse(0,0,b,c);a.fillAndStroke()};
+mxSAPIconShape.prototype.foreground=function(a,d,e,b,c){d=mxUtils.getValue(this.style,"SAPIcon","");a.image(.2*b,.2*c,.6*b,.6*c,GRAPH_IMAGE_PATH+"/lib/sap/"+d+".svg")};mxCellRenderer.registerShape(mxSAPIconShape.prototype.cst.ICON,mxSAPIconShape);
mxSAPIconShape.prototype.getConstraints=function(a,d,e){a=[];a.push(new mxConnectionConstraint(new mxPoint(.625,0),!1));a.push(new mxConnectionConstraint(new mxPoint(1,.5),!1));a.push(new mxConnectionConstraint(new mxPoint(.625,1),!1));a.push(new mxConnectionConstraint(new mxPoint(0,.325),!1));a.push(new mxConnectionConstraint(new mxPoint(0,.675),!1));a.push(new mxConnectionConstraint(new mxPoint(.25,0),!1));a.push(new mxConnectionConstraint(new mxPoint(1,0),!1));a.push(new mxConnectionConstraint(new mxPoint(1,
1),!1));a.push(new mxConnectionConstraint(new mxPoint(.25,1),!1));return a};function mxShapeSysMLComposite(){mxCylinder.call(this)}mxUtils.extend(mxShapeSysMLComposite,mxShape);mxShapeSysMLComposite.prototype.isHtmlAllowed=function(){return!1};
mxShapeSysMLComposite.prototype.paintForeground=function(a,d,e,b,c){if(null!=this.style){var f=mxCellRenderer.defaultShapes[this.style.symbol0];a.save();var g=new f;g.style=this.style;f.prototype.paintVertexShape.call(g,a,d,e,b,c);a.restore();a.setDashed(!1);var h=1;do{f=mxCellRenderer.defaultShapes[this.style["symbol"+h]];if(null!=f){g=this.style["symbol"+h+"Align"];var k=this.style["symbol"+h+"VerticalAlign"],l=this.style["symbol"+h+"Width"],m=this.style["symbol"+h+"Height"],n=this.style["symbol"+
diff --git a/src/main/webapp/js/viewer.min.js b/src/main/webapp/js/viewer.min.js
index e3f831c17..9c3b1039e 100644
--- a/src/main/webapp/js/viewer.min.js
+++ b/src/main/webapp/js/viewer.min.js
@@ -28,7 +28,7 @@ if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==url
"se.diagrams.net"==window.location.hostname&&(urlParams.db="0",urlParams.od="0",urlParams.gh="0",urlParams.gl="0",urlParams.tr="0",urlParams.plugins="0",urlParams.mode="google",urlParams.lockdown="1",window.DRAWIO_GOOGLE_APP_ID=window.DRAWIO_GOOGLE_APP_ID||"184079235871",window.DRAWIO_GOOGLE_CLIENT_ID=window.DRAWIO_GOOGLE_CLIENT_ID||"184079235871-pjf5nn0lff27lk8qf0770gmffiv9gt61.apps.googleusercontent.com");"trello"==urlParams.mode&&(urlParams.tr="1");
"embed.diagrams.net"==window.location.hostname&&(urlParams.embed="1");(null==window.location.hash||1>=window.location.hash.length)&&null!=urlParams.open&&(window.location.hash=urlParams.open);"function"!==typeof window.structuredClone&&(window.structuredClone=function(a){return a});window.urlParams=window.urlParams||{};window.DOM_PURIFY_CONFIG=window.DOM_PURIFY_CONFIG||{ADD_TAGS:["use","foreignObject"],FORBID_TAGS:["form"],ALLOWED_URI_REGEXP:/^((?!javascript:).)*$/i,HTML_INTEGRATION_POINTS:{foreignobject:!0},ADD_ATTR:["target","content","pointer-events","requiredFeatures"]};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";
window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images";window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"mxgraph";
-window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.2.8",IS_IE:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("MSIE"),IS_IE11:null!=navigator.userAgent&&!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:null!=navigator.userAgent&&!!navigator.userAgent.match(/Edge\//),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:null!=navigator.userAgent&&0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&&0>navigator.userAgent.indexOf("Edge/"),
+window.mxImageBasePath=window.mxImageBasePath||"mxgraph/images";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de","se"];var mxClient={VERSION:"26.2.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/"),
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||
@@ -2064,7 +2064,7 @@ this.gestureHandler);var na=null;this.resizeHandler=mxUtils.bind(this,function()
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(){v.view.validateBackground()}));this.addListener("backgroundColorChanged",mxUtils.bind(this,function(){v.view.validateBackground()}));v.addListener("gridSizeChanged",mxUtils.bind(this,function(){v.isGridEnabled()&&v.view.validateBackground()}));
this.editor.resetGraph()}this.init();v.standalone||this.open()};EditorUi.compactUi=!0;
EditorUi.parsePng=function(b,e,g){function m(G,S){var F=n;n+=S;return G.substring(F,n)}function v(G){G=m(G,4);return G.charCodeAt(3)+(G.charCodeAt(2)<<8)+(G.charCodeAt(1)<<16)+(G.charCodeAt(0)<<24)}var n=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=v(b);var A=m(b,4);if(null!=e&&e(n-8,A,g))break;value=m(b,g);m(b,4);if("IEND"==A)break}while(g)}};mxUtils.extend(EditorUi,mxEventSource);
-EditorUi.prototype.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?218:230);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.splitSize=mxClient.IS_TOUCH||mxClient.IS_POINTER?12:8;EditorUi.prototype.formatEnabled=!0;EditorUi.prototype.formatWidth=240;EditorUi.prototype.defaultSidebarWidth=Math.min(screen.width/2,"large"!=urlParams["sidebar-entries"]?220:230);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,
"keydown",mxUtils.bind(this,function(m){this.onKeyDown(m)}));mxEvent.addListener(b.container,"keypress",mxUtils.bind(this,function(m){this.onKeyPress(m)}));this.addUndoListener();this.addBeforeUnloadListener();b.getSelectionModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));b.getModel().addListener(mxEvent.CHANGE,mxUtils.bind(this,function(){this.updateActionStates()}));var e=b.setDefaultParent,g=this;this.editor.graph.setDefaultParent=function(){e.apply(this,
@@ -2250,8 +2250,8 @@ EditorUi.prototype.createMenuElement=function(b,e,g){var m=document.createElemen
EditorUi.prototype.addMenuHandler=function(b,e,g){if(null!=e){var m=!0,v=mxUtils.bind(this,function(n){null!=g&&g(n);if(!mxEvent.isConsumed(n)&&m&&(null==b.enabled||b.enabled)){this.editor.graph.popupMenuHandler.hideMenu();var A=new mxPopupMenu(e);A.smartSeparators=!0;A.showDisabled=!0;A.autoExpand=!0;A.hideMenu=mxUtils.bind(this,function(){mxPopupMenu.prototype.hideMenu.apply(A,arguments);this.resetCurrentMenu();A.destroy()});this.menus.autoPopup||null==this.currentMenu||this.hideCurrentMenu();var G=
mxUtils.getOffset(b);A.popup(G.x,G.y+b.offsetHeight,null,n);this.setCurrentMenu(A,b)}mxEvent.consume(n)});mxEvent.addListener(b,"mousemove",mxUtils.bind(this,function(n){if(this.menus.autoPopup&&null!=this.currentMenu&&this.currentMenuElt!=b&&null!=this.currentMenuElt){var A=this.currentMenuElt;this.hideCurrentMenu();A.parentNode==b.parentNode&&"INPUT"!=b.nodeName&&v(n)}}));mxEvent.addListener(b,mxClient.IS_POINTER?"pointerdown":"mousedown",mxUtils.bind(this,function(n){!this.menus.autoPopup&&null!=
this.currentMenu&&this.currentMenuElt!=b&&mxEvent.isMouseEvent(n)&&this.hideCurrentMenu();m=null==this.currentMenu;"INPUT"!=mxEvent.getSource(n).nodeName?n.preventDefault():n.stopPropagation()}));mxEvent.addListener(b,"click",mxUtils.bind(this,function(n){v(n);m=!0}))}};
-EditorUi.prototype.createZoomInput=function(b){var e=document.createElement("input");e.className="geButton geZoomInput";e.style.backgroundImage="url("+Editor.thinExpandImage+")";e.setAttribute("type","text");e.setAttribute("value","100%");var g=this.menus.get("viewZoom");this.dependsOnLanguage(mxUtils.bind(this,function(){e.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)")}));b&&e.setAttribute("readonly","true");var m=!1;mxEvent.addGestureListeners(e,mxUtils.bind(this,function(v){m=
-!1;mxClient.IS_TOUCH||mxEvent.getSource(v)!=e||document.activeElement==e||(e.focus(),mxClient.IS_GC||mxClient.IS_FF?e.select():document.execCommand("selectAll",!1,null),m=!0)}),mxUtils.bind(this,function(v){mxEvent.getSource(v)==e&&m&&mxEvent.consume(v)}),mxUtils.bind(this,function(v){m&&(mxEvent.consume(v),m=!1)}));this.addMenuHandler(e,g.funct);mxUtils.bind(this,function(v){mxEvent.addListener(v,"click",mxUtils.bind(this,function(A){mxEvent.isAltDown(A)?(this.hideCurrentMenu(),this.actions.get("customZoom").funct(),
+EditorUi.prototype.createZoomInput=function(b){var e=document.createElement("input");e.className="geButton geZoomInput";e.style.backgroundImage="url("+Editor.thinExpandImage+")";e.setAttribute("type","text");e.setAttribute("value","100%");var g=this.menus.get("viewZoom");this.dependsOnLanguage(mxUtils.bind(this,function(){e.setAttribute("title",mxResources.get("zoom")+" (Alt+Mousewheel)")}));(b||mxClient.IS_TOUCH)&&e.setAttribute("readonly","true");var m=!1;mxEvent.addGestureListeners(e,mxUtils.bind(this,
+function(v){m=!1;mxClient.IS_TOUCH||mxEvent.getSource(v)!=e||document.activeElement==e||(e.focus(),mxClient.IS_GC||mxClient.IS_FF?e.select():document.execCommand("selectAll",!1,null),m=!0)}),mxUtils.bind(this,function(v){mxEvent.getSource(v)==e&&m&&mxEvent.consume(v)}),mxUtils.bind(this,function(v){m&&(mxEvent.consume(v),m=!1)}));this.addMenuHandler(e,g.funct);mxUtils.bind(this,function(v){mxEvent.addListener(v,"click",mxUtils.bind(this,function(A){mxEvent.isAltDown(A)?(this.hideCurrentMenu(),this.actions.get("customZoom").funct(),
mxEvent.consume(A)):mxEvent.isShiftDown(A)&&(this.hideCurrentMenu(),this.actions.get("smartFit").funct(),mxEvent.consume(A))}));var n=mxUtils.bind(this,function(A,G,S){e.value=Math.round(100*this.editor.graph.view.scale*(null!=S?S:1))+"%";document.activeElement==e&&this.editor.graph.container.focus()});mxEvent.addListener(e,"keydown",mxUtils.bind(this,function(A){if(27==A.keyCode||13==A.keyCode||9==A.keyCode)27==A.keyCode||isNaN(parseInt(e.value))?n():this.editor.graph.zoomTo(parseInt(e.value)/100),
this.hideCurrentMenu(),mxEvent.consume(A)}));this.editor.graph.view.addListener(mxEvent.EVENT_SCALE,n);this.editor.addListener("resetGraphView",n);this.editor.addListener("pageSelected",n);mxEvent.addListener(e,"blur",n);this.editor.graph.addListener("zoomPreview",mxUtils.bind(this,function(A,G){n(A,G,G.getProperty("factor"))}))})(e);return e};
EditorUi.prototype.createHelpIcon=function(b,e){e=document.createElement("img");e.setAttribute("src",Editor.helpImage);e.setAttribute("title",mxResources.get("help"));e.className="geHelpIcon";mxEvent.addGestureListeners(e,mxUtils.bind(this,function(g){this.hideCurrentMenu();this.openLink(b);mxEvent.consume(g)}));return e};
@@ -3204,8 +3204,8 @@ Editor.smallPlusImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAY
Editor.hiResImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAAA+CAMAAACLMWy1AAAAh1BMVEUAAABMTExERERBQUFBQUFFRUVAQEBCQkJAQEA6OjpDQ0NKSkpBQUFBQUFERERERERBQUFCQkJCQkJCQkJJSUlBQUFCQkJDQ0NDQ0NCQkJDQ0NBQUFBQUFCQkJBQUFCQkJCQkJDQ0NCQkJHR0dBQUFCQkJCQkJAQEBCQkJDQ0NAQEBERERCQkIk1hS2AAAAKnRSTlMAAjj96BL7PgQFRwfu3TYazKuVjRXl1V1DPCn1u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zMPB44ED3EgeCubgDWnWQMHpwTtKwTe+UHD4sJ94wbUEHHFGhILlYDeSnsQeabeCgsPBgB0MOZZ9oGA5GJFiJSfUULAfjLjARrhCwX7wh2YCDwVbwZkUBKqFFJRN+wOcwSgR2sREcgAAAABJRU5ErkJggg==";Editor.blankImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAACklEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==";
Editor.facebookImage=IMAGE_PATH+"/facebook.png";Editor.tweetImage=IMAGE_PATH+"/tweet.png";Editor.svgBrokenImage=Graph.createSvgImage(10,10,'<rect x="0" y="0" width="10" height="10" stroke="#000" fill="transparent"/><path d="m 0 0 L 10 10 L 0 10 L 10 0" stroke="#000" fill="transparent"/>');Editor.configurationKey=".configuration";Editor.settingsKey=".drawio-config";Editor.defaultCustomLibraries=[];Editor.enableCustomLibraries=!0;Editor.enableUncompressedLibraries=!1;Editor.enableCustomProperties=!0;
-Editor.enableSimpleTheme=!0;Editor.enableHashObjects=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&"1"!=urlParams.embed&&window.top==window.self;Editor.defaultIncludeDiagram=!0;Editor.enableServiceWorker="0"!=urlParams.pwa&&"serviceWorker"in navigator&&("1"==urlParams.offline||/.*\.diagrams\.net$/.test(window.location.hostname)||/.*\.draw\.io$/.test(window.location.hostname));try{Editor.enableServiceWorker&&navigator.serviceWorker}catch(k){Editor.enableServiceWorker=!1}Editor.enableWebFonts="1"!=
-urlParams["safe-style-src"]&&!window.mxIsElectron;Editor.enableShadowOption=!mxClient.IS_SF;Editor.enableExportUrl=!0;Editor.enableRealtime=!0;Editor.enableRealtimeCache=!0;Editor.p2pSyncNotify=!1;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.defaultBorder=5;Editor.addSvgMetadata=!1;Editor.enableAnimations=!0;Editor.enableChatGpt=/test\.draw\.io$/.test(window.location.hostname)||
+Editor.enableSimpleTheme=!0;Editor.enableHashObjects=!mxClient.IS_CHROMEAPP&&!EditorUi.isElectronApp&&"1"!=urlParams.embed&&window.top==window.self;Editor.defaultIncludeDiagram=!0;Editor.enableServiceWorker="0"!=urlParams.pwa&&"serviceWorker"in navigator&&("1"==urlParams.offline||"1"==urlParams.enableSW||/.*\.diagrams\.net$/.test(window.location.hostname)||/.*\.draw\.io$/.test(window.location.hostname));try{Editor.enableServiceWorker&&navigator.serviceWorker}catch(k){Editor.enableServiceWorker=!1}Editor.enableWebFonts=
+"1"!=urlParams["safe-style-src"]&&!window.mxIsElectron;Editor.enableShadowOption=!mxClient.IS_SF;Editor.enableExportUrl=!0;Editor.enableRealtime=!0;Editor.enableRealtimeCache=!0;Editor.p2pSyncNotify=!1;Editor.compressXml=!0;Editor.defaultCompressed=!1;Editor.oneDriveInlinePicker=null!=window.urlParams&&"0"==window.urlParams.inlinePicker?!1:!0;Editor.globalVars=null;Editor.defaultBorder=5;Editor.addSvgMetadata=!1;Editor.enableAnimations=!0;Editor.enableChatGpt=/test\.draw\.io$/.test(window.location.hostname)||
/preprod\.diagrams\.net$/.test(window.location.hostname)||/embed\.diagrams\.net$/.test(window.location.hostname)||/app\.diagrams\.net$/.test(window.location.hostname);Editor.gptApiKey=null!=urlParams["gpt-api-key"]?decodeURIComponent(urlParams["gpt-api-key"]):null;Editor.gptModel=null!=urlParams["gpt-model"]?decodeURIComponent(urlParams["gpt-model"]):"gpt-3.5-turbo";Editor.gptUrl=null!=urlParams["gpt-url"]?decodeURIComponent(urlParams["gpt-url"]):"https://api.openai.com/v1/chat/completions";Editor.replaceSvgDataUris=
!0;Editor.foreignObjectImages=!0;Editor.svgFileTheme="auto";Editor.svgRasterScale=4;Editor.htmlRasterScale=4;Editor.config=null;Editor.configVersion=null;Editor.commonProperties=[{name:"enumerate",dispName:"Enumerate",type:"bool",defVal:!1,onChange:function(k){k.refresh()}},{name:"enumerateValue",dispName:"Enumerate Value",type:"string",defVal:"",isVisible:function(k,B){return"1"==mxUtils.getValue(k.style,"enumerate","0")}},{name:"comic",dispName:"Comic",type:"bool",defVal:!1,isVisible:function(k,
B){return"1"!=mxUtils.getValue(k.style,"sketch","0")}},{name:"jiggle",dispName:"Jiggle",type:"float",min:0,defVal:1,isVisible:function(k,B){return"1"==mxUtils.getValue(k.style,"comic","0")||"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")}},{name:"fillWeight",dispName:"Fill Weight",type:"int",defVal:-1,isVisible:function(k,B){return"1"==mxUtils.getValue(k.style,"sketch","1"==urlParams.rough?"1":"0")&&0<k.vertices.length}},{name:"hachureGap",dispName:"Hachure Gap",type:"int",defVal:-1,
@@ -3440,28 +3440,28 @@ Graph.prototype.checkDefaultParent=function(){null==this.defaultParent||this.mod
mxStencilRegistry.libraries["mockup/containers"]=[SHAPES_PATH+"/mockup/mxMockupContainers.js"];mxStencilRegistry.libraries["mockup/forms"]=[SHAPES_PATH+"/mockup/mxMockupForms.js"];mxStencilRegistry.libraries["mockup/graphics"]=[SHAPES_PATH+"/mockup/mxMockupGraphics.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/markup"]=[SHAPES_PATH+"/mockup/mxMockupMarkup.js"];mxStencilRegistry.libraries["mockup/misc"]=[SHAPES_PATH+"/mockup/mxMockupMisc.js",STENCIL_PATH+"/mockup/misc.xml"];
mxStencilRegistry.libraries["mockup/navigation"]=[SHAPES_PATH+"/mockup/mxMockupNavigation.js",STENCIL_PATH+"/mockup/misc.xml"];mxStencilRegistry.libraries["mockup/text"]=[SHAPES_PATH+"/mockup/mxMockupText.js"];mxStencilRegistry.libraries.floorplan=[SHAPES_PATH+"/mxFloorplan.js",STENCIL_PATH+"/floorplan.xml"];mxStencilRegistry.libraries.bootstrap=[SHAPES_PATH+"/mxBootstrap.js",SHAPES_PATH+"/mxBasic.js",STENCIL_PATH+"/bootstrap.xml"];mxStencilRegistry.libraries.gmdl=[SHAPES_PATH+"/mxGmdl.js",STENCIL_PATH+
"/gmdl.xml"];mxStencilRegistry.libraries.gcp2=[SHAPES_PATH+"/mxGCP2.js",STENCIL_PATH+"/gcp2.xml"];mxStencilRegistry.libraries.ibm=[SHAPES_PATH+"/mxIBM.js",STENCIL_PATH+"/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 B=null;null!=k&&0<k.length&&("ER"==k.substring(0,2)?B="mxgraph.er":"sysML"==k.substring(0,5)&&(B="mxgraph.sysml"));return B};var ba=
-mxMarker.createMarker;mxMarker.createMarker=function(k,B,I,U,P,T,X,Z,ka,va){if(null!=I&&null==mxMarker.markers[I]){var ua=this.getPackageForType(I);null!=ua&&mxStencilRegistry.getStencil(ua)}return ba.apply(this,arguments)};var ja=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,B,I,U,P,T){"1"==mxUtils.getValue(B.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(B.style,mxConstants.STYLE_STROKECOLOR,this.stroke));return ja.apply(this,arguments)};PrintDialog.prototype.create=
-function(k,B,I,U){function P(){La.value=Math.max(1,Math.min(ua,Math.max(parseInt(La.value),parseInt(ya.value))));ya.value=Math.max(1,Math.min(ua,Math.min(parseInt(La.value),parseInt(ya.value))))}function T(Da){k.lastPrintPagesRadioChecked=Ba.checked;k.lastPrintSelectionOnlyChecked=Ea.checked;k.lastPrintCropRadioChecked=Ca.checked;k.lastPrintFitRadioChecked=Aa.checked;Ba.checked&&ya.value<La.value?(k.lastPrintPagesFromInput=ya.value,k.lastPrintPagesToInput=La.value):(k.lastPrintPagesFromInput=null,
-k.lastPrintPagesToInput=null);fa.value=Math.max(1,Math.min(1600,parseInt(fa.value)))+"%";k.lastPrintZoom=fa.value;k.lastPrintBorder=V.value;k.lastPrintGrid=ia.checked;k.lastPrintTransparent=oa.checked;k.lastPrintInclude=ta.checked;k.lastPrintSheetsAcross=O.value;k.lastPrintSheetsDown=R.value;var Ia={};Ia.border=parseInt(V.value);Ia.scale=parseInt(fa.value)/100;Ia.grid=ia.checked;Ia.transparent=oa.checked;Ia.includeCopy=ta.checked;Ia.sheetsAcross=parseInt(O.value);Ia.sheetsDown=parseInt(R.value);Ia.pagesFrom=
-parseInt(ya.value);Ia.pagesTo=parseInt(La.value);Ia.allPages=qa.checked;Ia.selection=Ea.checked;Ia.pageView=pa.checked;Ia.crop=Ca.checked;Ia.fit=Aa.checked;return null!=I?I(!Da,Ia):k.print(!Da,Ia)}var X=k.editor.graph,Z=document.createElement("div"),ka=document.createElement("h3");ka.style.width="100%";ka.style.textAlign="center";ka.style.marginTop="0px";mxUtils.write(ka,B||mxResources.get("print"));Z.appendChild(ka);var va=1,ua=1;ka=document.createElement("div");ka.style.whiteSpace="nowrap";var qa=
-document.createElement("input");qa.style.marginRight="8px";qa.style.marginBottom="8px";qa.setAttribute("type","radio");qa.setAttribute("name","pages-printdialog");ka.appendChild(qa);B=document.createElement("span");mxUtils.write(B,mxResources.get("allPages"));mxEvent.addListener(B,"click",function(){qa.checked=!0});ka.appendChild(B);mxUtils.br(ka);var Ba=qa.cloneNode(!0);ka.appendChild(Ba);B=document.createElement("span");mxUtils.write(B,mxResources.get("pages")+":");ka.appendChild(B);mxEvent.addListener(B,
-"click",function(){Ba.checked=!0});var ya=document.createElement("input");ya.style.margin="0 4px";ya.setAttribute("value","1");ya.setAttribute("type","number");ya.setAttribute("min","1");ya.style.width="40px";ka.appendChild(ya);B=document.createElement("span");mxUtils.write(B,mxResources.get("to"));ka.appendChild(B);var La=ya.cloneNode(!0);ka.appendChild(La);mxEvent.addListener(ya,"focus",function(){Ba.checked=!0});mxEvent.addListener(La,"focus",function(){Ba.checked=!0});mxEvent.addListener(ya,"change",
-P);mxEvent.addListener(La,"change",P);if(null!=k.pages&&(ua=k.pages.length,null!=k.currentPage))for(var za=0;za<ua;za++)if(k.currentPage==k.pages[za]){va=za+1;break}null!=k.lastPrintPagesFromInput&&null!=k.lastPrintPagesToInput?(ya.value=Math.min(ua,Math.max(1,k.lastPrintPagesFromInput)),La.value=Math.min(ua,Math.max(1,k.lastPrintPagesToInput))):(ya.value=va,La.value=va);ya.setAttribute("max",ua);La.setAttribute("max",ua);za=mxUtils.button(mxResources.get("currentPage"),function(Da){ya.value=va;La.value=
-va;Ba.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";ka.appendChild(za);1<ua&&Z.appendChild(ka);ka=document.createElement("div");ka.style.borderBottom="1px solid lightGray";ka.style.paddingBottom="12px";ka.style.marginBottom="12px";ka.style.whiteSpace="nowrap";var Ea=document.createElement("input");Ea.setAttribute("name","pages-printdialog");
-Ea.setAttribute("type",1==ua?"checkbox":"radio");Ea.style.marginRight="8px";X.isSelectionEmpty()&&Ea.setAttribute("disabled","disabled");X.isEnabled()&&(ka.appendChild(Ea),B=document.createElement("span"),mxUtils.write(B,mxResources.get("selectionOnly")),ka.appendChild(B));(X.isEnabled()||1<ua)&&Z.appendChild(ka);!k.isPagesEnabled()||k.lastPrintPagesRadioChecked?Ba.checked=!0:!X.isSelectionEmpty()&&k.lastPrintSelectionOnlyChecked?Ea.checked=!0:qa.checked=!0;X.isSelectionEmpty()||mxEvent.addListener(B,
-"click",function(){Ea.checked=!Ea.checked});X=document.createElement("div");X.style.whiteSpace="nowrap";var pa=document.createElement("input");pa.style.marginBottom="8px";pa.style.marginRight="8px";pa.setAttribute("type","radio");pa.setAttribute("name","printSize");X.appendChild(pa);B=document.createElement("span");mxUtils.write(B,mxResources.get("pageView"));X.appendChild(B);mxEvent.addListener(X,"click",function(){pa.checked=!0});Z.appendChild(X);X=document.createElement("div");X.style.whiteSpace=
-"nowrap";var Ca=document.createElement("input");Ca.style.marginBottom="8px";Ca.style.marginRight="8px";Ca.setAttribute("type","radio");Ca.setAttribute("name","printSize");X.appendChild(Ca);B=document.createElement("span");mxUtils.write(B,mxResources.get("crop"));X.appendChild(B);mxEvent.addListener(X,"click",function(){Ca.checked=!0});Z.appendChild(X);X=document.createElement("div");X.style.whiteSpace="nowrap";var Aa=document.createElement("input");Aa.style.marginBottom="8px";Aa.style.marginRight=
-"8px";Aa.setAttribute("type","radio");Aa.setAttribute("name","printSize");B=document.createElement("div");B.style.display="inline-block";B.style.verticalAlign="top";B.style.paddingTop="2px";B.appendChild(Aa);X.appendChild(B);ka=document.createElement("table");ka.style.display="inline-block";ka.style.borderSpacing="0";za=document.createElement("tbody");var wa=document.createElement("tr"),Ya=wa.cloneNode(!0),Qa=document.createElement("td"),Ra=Qa.cloneNode(!0),Sa=Qa.cloneNode(!0),Ha=Qa.cloneNode(!0),
-Ma=Qa.cloneNode(!0),y=Qa.cloneNode(!0);Qa.style.textAlign="right";Ha.style.textAlign="right";mxUtils.write(Qa,mxResources.get("fitTo"));mxEvent.addListener(X,"click",function(Da){mxEvent.getSource(Da)!=Aa&&(Aa.checked=!Aa.checked)});var O=document.createElement("input");O.style.margin="0 2px";O.style.boxSizing="border-box";O.setAttribute("value",k.lastPrintSheetsAcross||"1");O.setAttribute("min","1");O.setAttribute("type","number");O.style.width="40px";Ra.appendChild(O);B=document.createElement("span");
-mxUtils.write(B,mxResources.get("fitToSheetsAcross"));Sa.appendChild(B);mxUtils.write(Ha,mxResources.get("fitToBy"));var R=O.cloneNode(!0);R.setAttribute("value",k.lastPrintSheetsDown||"1");Ma.appendChild(R);mxEvent.addListener(O,"click",function(Da){Aa.checked=!0;mxEvent.consume(Da)});mxEvent.addListener(R,"click",function(Da){Aa.checked=!0;mxEvent.consume(Da)});k.lastPrintCropRadioChecked?Ca.checked=!0:k.lastPrintFitRadioChecked?Aa.checked=!0:pa.checked=!0;B=document.createElement("span");mxUtils.write(B,
-mxResources.get("fitToSheetsDown"));y.appendChild(B);wa.appendChild(Qa);wa.appendChild(Ra);wa.appendChild(Sa);Ya.appendChild(Ha);Ya.appendChild(Ma);Ya.appendChild(y);za.appendChild(wa);za.appendChild(Ya);ka.appendChild(za);X.appendChild(ka);Z.appendChild(X);X=document.createElement("div");X.style.borderTop="1px solid lightGray";X.style.whiteSpace="nowrap";X.style.paddingTop="12px";X.style.marginTop="12px";X.style.paddingLeft="8px";mxUtils.write(X,mxResources.get("borderWidth")+":");var V=document.createElement("input");
-V.setAttribute("type","number");V.setAttribute("min","0");V.style.width="40px";V.style.marginLeft="4px";V.value=null!=k.lastPrintBorder?k.lastPrintBorder:mxPrintPreview.prototype.pageMargin;X.appendChild(V);B=document.createElement("span");B.style.marginLeft="8px";mxUtils.write(B,mxResources.get("zoom")+":");X.appendChild(B);var fa=document.createElement("input");fa.style.width="60px";fa.style.marginLeft="4px";fa.value=null!=k.lastPrintZoom?k.lastPrintZoom:"100%";X.appendChild(fa);mxUtils.br(X);var ia=
-document.createElement("input");ia.setAttribute("type","checkbox");ia.style.marginTop="12px";ia.checked=null!=k.lastPrintGrid?k.lastPrintGrid:!1;X.appendChild(ia);B=document.createElement("span");B.style.marginLeft="4px";B.style.marginRight="8px";mxUtils.write(B,mxResources.get("grid"));X.appendChild(B);mxEvent.addListener(B,"click",function(Da){ia.checked=!0;mxEvent.consume(Da)});var oa=document.createElement("input");oa.setAttribute("type","checkbox");oa.style.marginTop="10px";oa.checked=null!=
-k.lastPrintTransparent?k.lastPrintTransparent:!1;null!=I&&(X.appendChild(oa),B=document.createElement("span"),B.style.marginLeft="4px",mxUtils.write(B,mxResources.get("transparentBackground")),X.appendChild(B),mxEvent.addListener(B,"click",function(Da){oa.checked=!0;mxEvent.consume(Da)}));var ta=document.createElement("input");ta.setAttribute("type","checkbox");ta.style.marginTop="10px";ta.checked=null!=k.lastPrintInclude?k.lastPrintInclude:Editor.defaultIncludeDiagram;null==I||mxClient.IS_CHROMEAPP||
-"draw.io"!=k.getServiceName()||(mxUtils.br(X),X.appendChild(ta),B=document.createElement("span"),B.style.marginLeft="4px",mxUtils.write(B,mxResources.get("includeCopyOfMyDiagram")),X.appendChild(B),mxEvent.addListener(B,"click",function(Da){ta.checked=!0;mxEvent.consume(Da)}));Z.appendChild(X);B=document.createElement("div");B.style.marginTop="40px";B.style.textAlign="right";B.style.whiteSpace="nowrap";k.isOffline()||null!=I||B.appendChild(k.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));
+[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.networks2=[SHAPES_PATH+"/mxNetworks2.js",STENCIL_PATH+"/networks2.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 B=null;null!=k&&0<k.length&&("ER"==k.substring(0,
+2)?B="mxgraph.er":"sysML"==k.substring(0,5)&&(B="mxgraph.sysml"));return B};var ba=mxMarker.createMarker;mxMarker.createMarker=function(k,B,I,U,P,T,X,Z,ka,va){if(null!=I&&null==mxMarker.markers[I]){var ua=this.getPackageForType(I);null!=ua&&mxStencilRegistry.getStencil(ua)}return ba.apply(this,arguments)};var ja=mxStencil.prototype.drawShape;mxStencil.prototype.drawShape=function(k,B,I,U,P,T){"1"==mxUtils.getValue(B.style,"lineShape",null)&&k.setFillColor(mxUtils.getValue(B.style,mxConstants.STYLE_STROKECOLOR,
+this.stroke));return ja.apply(this,arguments)};PrintDialog.prototype.create=function(k,B,I,U){function P(){La.value=Math.max(1,Math.min(ua,Math.max(parseInt(La.value),parseInt(ya.value))));ya.value=Math.max(1,Math.min(ua,Math.min(parseInt(La.value),parseInt(ya.value))))}function T(Da){k.lastPrintPagesRadioChecked=Ba.checked;k.lastPrintSelectionOnlyChecked=Ea.checked;k.lastPrintCropRadioChecked=Ca.checked;k.lastPrintFitRadioChecked=Aa.checked;Ba.checked&&ya.value<La.value?(k.lastPrintPagesFromInput=
+ya.value,k.lastPrintPagesToInput=La.value):(k.lastPrintPagesFromInput=null,k.lastPrintPagesToInput=null);fa.value=Math.max(1,Math.min(1600,parseInt(fa.value)))+"%";k.lastPrintZoom=fa.value;k.lastPrintBorder=V.value;k.lastPrintGrid=ia.checked;k.lastPrintTransparent=oa.checked;k.lastPrintInclude=ta.checked;k.lastPrintSheetsAcross=O.value;k.lastPrintSheetsDown=R.value;var Ia={};Ia.border=parseInt(V.value);Ia.scale=parseInt(fa.value)/100;Ia.grid=ia.checked;Ia.transparent=oa.checked;Ia.includeCopy=ta.checked;
+Ia.sheetsAcross=parseInt(O.value);Ia.sheetsDown=parseInt(R.value);Ia.pagesFrom=parseInt(ya.value);Ia.pagesTo=parseInt(La.value);Ia.allPages=qa.checked;Ia.selection=Ea.checked;Ia.pageView=pa.checked;Ia.crop=Ca.checked;Ia.fit=Aa.checked;return null!=I?I(!Da,Ia):k.print(!Da,Ia)}var X=k.editor.graph,Z=document.createElement("div"),ka=document.createElement("h3");ka.style.width="100%";ka.style.textAlign="center";ka.style.marginTop="0px";mxUtils.write(ka,B||mxResources.get("print"));Z.appendChild(ka);var va=
+1,ua=1;ka=document.createElement("div");ka.style.whiteSpace="nowrap";var qa=document.createElement("input");qa.style.marginRight="8px";qa.style.marginBottom="8px";qa.setAttribute("type","radio");qa.setAttribute("name","pages-printdialog");ka.appendChild(qa);B=document.createElement("span");mxUtils.write(B,mxResources.get("allPages"));mxEvent.addListener(B,"click",function(){qa.checked=!0});ka.appendChild(B);mxUtils.br(ka);var Ba=qa.cloneNode(!0);ka.appendChild(Ba);B=document.createElement("span");
+mxUtils.write(B,mxResources.get("pages")+":");ka.appendChild(B);mxEvent.addListener(B,"click",function(){Ba.checked=!0});var ya=document.createElement("input");ya.style.margin="0 4px";ya.setAttribute("value","1");ya.setAttribute("type","number");ya.setAttribute("min","1");ya.style.width="40px";ka.appendChild(ya);B=document.createElement("span");mxUtils.write(B,mxResources.get("to"));ka.appendChild(B);var La=ya.cloneNode(!0);ka.appendChild(La);mxEvent.addListener(ya,"focus",function(){Ba.checked=!0});
+mxEvent.addListener(La,"focus",function(){Ba.checked=!0});mxEvent.addListener(ya,"change",P);mxEvent.addListener(La,"change",P);if(null!=k.pages&&(ua=k.pages.length,null!=k.currentPage))for(var za=0;za<ua;za++)if(k.currentPage==k.pages[za]){va=za+1;break}null!=k.lastPrintPagesFromInput&&null!=k.lastPrintPagesToInput?(ya.value=Math.min(ua,Math.max(1,k.lastPrintPagesFromInput)),La.value=Math.min(ua,Math.max(1,k.lastPrintPagesToInput))):(ya.value=va,La.value=va);ya.setAttribute("max",ua);La.setAttribute("max",
+ua);za=mxUtils.button(mxResources.get("currentPage"),function(Da){ya.value=va;La.value=va;Ba.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";ka.appendChild(za);1<ua&&Z.appendChild(ka);ka=document.createElement("div");ka.style.borderBottom="1px solid lightGray";ka.style.paddingBottom="12px";ka.style.marginBottom="12px";ka.style.whiteSpace=
+"nowrap";var Ea=document.createElement("input");Ea.setAttribute("name","pages-printdialog");Ea.setAttribute("type",1==ua?"checkbox":"radio");Ea.style.marginRight="8px";X.isSelectionEmpty()&&Ea.setAttribute("disabled","disabled");X.isEnabled()&&(ka.appendChild(Ea),B=document.createElement("span"),mxUtils.write(B,mxResources.get("selectionOnly")),ka.appendChild(B));(X.isEnabled()||1<ua)&&Z.appendChild(ka);!k.isPagesEnabled()||k.lastPrintPagesRadioChecked?Ba.checked=!0:!X.isSelectionEmpty()&&k.lastPrintSelectionOnlyChecked?
+Ea.checked=!0:qa.checked=!0;X.isSelectionEmpty()||mxEvent.addListener(B,"click",function(){Ea.checked=!Ea.checked});X=document.createElement("div");X.style.whiteSpace="nowrap";var pa=document.createElement("input");pa.style.marginBottom="8px";pa.style.marginRight="8px";pa.setAttribute("type","radio");pa.setAttribute("name","printSize");X.appendChild(pa);B=document.createElement("span");mxUtils.write(B,mxResources.get("pageView"));X.appendChild(B);mxEvent.addListener(X,"click",function(){pa.checked=
+!0});Z.appendChild(X);X=document.createElement("div");X.style.whiteSpace="nowrap";var Ca=document.createElement("input");Ca.style.marginBottom="8px";Ca.style.marginRight="8px";Ca.setAttribute("type","radio");Ca.setAttribute("name","printSize");X.appendChild(Ca);B=document.createElement("span");mxUtils.write(B,mxResources.get("crop"));X.appendChild(B);mxEvent.addListener(X,"click",function(){Ca.checked=!0});Z.appendChild(X);X=document.createElement("div");X.style.whiteSpace="nowrap";var Aa=document.createElement("input");
+Aa.style.marginBottom="8px";Aa.style.marginRight="8px";Aa.setAttribute("type","radio");Aa.setAttribute("name","printSize");B=document.createElement("div");B.style.display="inline-block";B.style.verticalAlign="top";B.style.paddingTop="2px";B.appendChild(Aa);X.appendChild(B);ka=document.createElement("table");ka.style.display="inline-block";ka.style.borderSpacing="0";za=document.createElement("tbody");var wa=document.createElement("tr"),Ya=wa.cloneNode(!0),Qa=document.createElement("td"),Ra=Qa.cloneNode(!0),
+Sa=Qa.cloneNode(!0),Ha=Qa.cloneNode(!0),Ma=Qa.cloneNode(!0),y=Qa.cloneNode(!0);Qa.style.textAlign="right";Ha.style.textAlign="right";mxUtils.write(Qa,mxResources.get("fitTo"));mxEvent.addListener(X,"click",function(Da){mxEvent.getSource(Da)!=Aa&&(Aa.checked=!Aa.checked)});var O=document.createElement("input");O.style.margin="0 2px";O.style.boxSizing="border-box";O.setAttribute("value",k.lastPrintSheetsAcross||"1");O.setAttribute("min","1");O.setAttribute("type","number");O.style.width="40px";Ra.appendChild(O);
+B=document.createElement("span");mxUtils.write(B,mxResources.get("fitToSheetsAcross"));Sa.appendChild(B);mxUtils.write(Ha,mxResources.get("fitToBy"));var R=O.cloneNode(!0);R.setAttribute("value",k.lastPrintSheetsDown||"1");Ma.appendChild(R);mxEvent.addListener(O,"click",function(Da){Aa.checked=!0;mxEvent.consume(Da)});mxEvent.addListener(R,"click",function(Da){Aa.checked=!0;mxEvent.consume(Da)});k.lastPrintCropRadioChecked?Ca.checked=!0:k.lastPrintFitRadioChecked?Aa.checked=!0:pa.checked=!0;B=document.createElement("span");
+mxUtils.write(B,mxResources.get("fitToSheetsDown"));y.appendChild(B);wa.appendChild(Qa);wa.appendChild(Ra);wa.appendChild(Sa);Ya.appendChild(Ha);Ya.appendChild(Ma);Ya.appendChild(y);za.appendChild(wa);za.appendChild(Ya);ka.appendChild(za);X.appendChild(ka);Z.appendChild(X);X=document.createElement("div");X.style.borderTop="1px solid lightGray";X.style.whiteSpace="nowrap";X.style.paddingTop="12px";X.style.marginTop="12px";X.style.paddingLeft="8px";mxUtils.write(X,mxResources.get("borderWidth")+":");
+var V=document.createElement("input");V.setAttribute("type","number");V.setAttribute("min","0");V.style.width="40px";V.style.marginLeft="4px";V.value=null!=k.lastPrintBorder?k.lastPrintBorder:mxPrintPreview.prototype.pageMargin;X.appendChild(V);B=document.createElement("span");B.style.marginLeft="8px";mxUtils.write(B,mxResources.get("zoom")+":");X.appendChild(B);var fa=document.createElement("input");fa.style.width="60px";fa.style.marginLeft="4px";fa.value=null!=k.lastPrintZoom?k.lastPrintZoom:"100%";
+X.appendChild(fa);mxUtils.br(X);var ia=document.createElement("input");ia.setAttribute("type","checkbox");ia.style.marginTop="12px";ia.checked=null!=k.lastPrintGrid?k.lastPrintGrid:!1;X.appendChild(ia);B=document.createElement("span");B.style.marginLeft="4px";B.style.marginRight="8px";mxUtils.write(B,mxResources.get("grid"));X.appendChild(B);mxEvent.addListener(B,"click",function(Da){ia.checked=!0;mxEvent.consume(Da)});var oa=document.createElement("input");oa.setAttribute("type","checkbox");oa.style.marginTop=
+"10px";oa.checked=null!=k.lastPrintTransparent?k.lastPrintTransparent:!1;null!=I&&(X.appendChild(oa),B=document.createElement("span"),B.style.marginLeft="4px",mxUtils.write(B,mxResources.get("transparentBackground")),X.appendChild(B),mxEvent.addListener(B,"click",function(Da){oa.checked=!0;mxEvent.consume(Da)}));var ta=document.createElement("input");ta.setAttribute("type","checkbox");ta.style.marginTop="10px";ta.checked=null!=k.lastPrintInclude?k.lastPrintInclude:Editor.defaultIncludeDiagram;null==
+I||mxClient.IS_CHROMEAPP||"draw.io"!=k.getServiceName()||(mxUtils.br(X),X.appendChild(ta),B=document.createElement("span"),B.style.marginLeft="4px",mxUtils.write(B,mxResources.get("includeCopyOfMyDiagram")),X.appendChild(B),mxEvent.addListener(B,"click",function(Da){ta.checked=!0;mxEvent.consume(Da)}));Z.appendChild(X);B=document.createElement("div");B.style.marginTop="40px";B.style.textAlign="right";B.style.whiteSpace="nowrap";k.isOffline()||null!=I||B.appendChild(k.createHelpIcon("https://www.drawio.com/doc/faq/print-diagram"));
X=mxUtils.button(mxResources.get("cancel"),function(){k.hideDialog()});X.className="geBtn";k.editor.cancelFirst&&B.appendChild(X);PrintDialog.previewEnabled&&null==I&&(ka=mxUtils.button(mxResources.get("preview"),function(){try{k.hideDialog(),T(!1)}catch(Da){k.handleError(Da)}}),ka.className="geBtn",B.appendChild(ka));U=null!=U?U:null!=I?"export":PrintDialog.previewEnabled?"print":"ok";U=mxUtils.button(mxResources.get(U),function(){try{k.hideDialog(),T(!0)}catch(Da){k.handleError(Da)}});U.className=
"geBtn gePrimaryBtn";B.appendChild(U);k.editor.cancelFirst||B.appendChild(X);Z.appendChild(B);if(k.editor.isChromelessView()){var ra=function(){Editor.isDarkMode()?(Z.classList.add("geDarkMode"),Z.style.colorScheme="dark"):(Z.classList.remove("geDarkMode"),Z.style.colorScheme="light")};k.addListener("darkModeChanged",ra);ra();var xa=function(Da,Ia){Da=Ia.getProperty("dialog");Z.parentNode==Da.container&&(k.editor.removeListener(xa),k.removeListener(ra))};k.editor.addListener("hideDialog",xa)}this.container=
Z};var ca=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&&
@@ -3469,7 +3469,7 @@ Z};var ca=ChangePageSetup.prototype.execute;ChangePageSetup.prototype.execute=fu
this.ui.setAdaptiveColors(this.adaptiveColors),this.adaptiveColors=null!=k?k:"default"),null!=this.shadowVisible&&this.shadowVisible!=this.ui.editor.graph.shadowVisible&&(this.ui.editor.graph.setShadowVisible(this.shadowVisible),this.shadowVisible=!this.shadowVisible)};Editor.prototype.useCanvasForExport=!1;try{var la=document.createElement("canvas"),Q=new Image;Q.onload=function(){try{la.getContext("2d").drawImage(Q,0,0);var k=la.toDataURL("image/png");Editor.prototype.useCanvasForExport=null!=k&&
6<k.length}catch(B){}};Q.src="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1px" height="1px" version="1.1"><foreignObject pointer-events="all" width="1" height="1"><div xmlns="http://www.w3.org/1999/xhtml"></div></foreignObject></svg>')))}catch(k){}Editor.prototype.useCanvasForExport=!1})();
(function(){var b=new mxObjectCodec(new ChangePageSetup,["ui","previousColor","previousImage","previousFormat"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};b.afterDecode=function(e,g,m){m.previousColor=m.color;m.previousImage=m.image;m.previousFormat=m.format;m.previousAdaptiveColors=m.adaptiveColors;null!=m.foldingEnabled&&(m.foldingEnabled=!m.foldingEnabled);null!=m.mathEnabled&&(m.mathEnabled=!m.mathEnabled);null!=m.shadowVisible&&(m.shadowVisible=!m.shadowVisible);return m};mxCodecRegistry.register(b)})();
-(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.2.8";EditorUi.compactUi="atlas"!=Editor.currentTheme||window.DRAWIO_PUBLIC_BUILD;Editor.isDarkMode()&&(mxGraphView.prototype.gridColor=mxGraphView.prototype.defaultDarkGridColor);EditorUi.enableLogging="1"!=urlParams.stealth&&"1"!=urlParams.lockdown&&(/.*\.draw\.io$/.test(window.location.hostname)||/.*\.diagrams\.net$/.test(window.location.hostname))&&"https://preprod.diagrams.net/"!=window.location.hostname&&"support.draw.io"!=window.location.hostname&&
+(function(){var b=new mxObjectCodec(new ChangeGridColor,["ui"]);b.beforeDecode=function(e,g,m){m.ui=e.ui;return g};mxCodecRegistry.register(b)})();(function(){EditorUi.VERSION="26.2.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&&
"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"}};
@@ -3704,8 +3704,8 @@ t))}),f):f({message:mxResources.get("serviceUnavailableOrBlocked")})}};EditorUi.
window.console&&"1"==urlParams.test){var L=[(new Date).toISOString(),"convertLucidChart",N];null!=N.state&&L.push(JSON.parse(N.state));if(null!=N.svgThumbs)for(var J=0;J<N.svgThumbs.length;J++)L.push(Editor.createSvgDataUri(N.svgThumbs[J]));null!=N.thumb&&L.push(N.thumb);console.log.apply(console,L)}}catch(Y){}}catch(Y){null!=window.console&&console.error(Y),D(Y)}else D({message:mxResources.get("serviceUnavailableOrBlocked")})});"undefined"!==typeof window.LucidImporter||this.loadingExtensions||this.isOffline(!0)?
window.setTimeout(H,0):(this.loadingExtensions=!0,"1"==urlParams.dev?mxscript("js/diagramly/Extensions.js",function(){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",H,null,null,null,D)},null,null,null,D)},null,null,null,D)},null,null,null,D)},null,null,null,D):mxscript(window.DRAWIO_SERVER_URL+"js/extensions.min.js",H,null,null,null,D))}),
t)};EditorUi.prototype.createMermaidXml=function(c,f,l,t,q,D){var H=new Graph(document.createElement("div"));l=H.insertVertex(null,null,null,0,0,t,q,"shape=image;noLabel=1;verticalAlign=top;imageAspect=1;image="+l+";");H.setAttributeForCell(l,"mermaidData",JSON.stringify({data:c,config:f},null,2));null!=D&&H.setAttributeForCell(l,"templatePrompt",D);c=(new mxCodec).encode(H.getModel());return mxUtils.getXml(c)};EditorUi.prototype.generateOpenAiMermaidDiagram=function(c,f,l){var t=0,q=function(){for(var H=
-document.querySelectorAll('div[id*="dgeMermaidOutput-"]'),N=0;N<H.length;N++)null!=H[N].parentNode&&H[N].parentNode.removeChild(H[N])},D=mxUtils.bind(this,function(){this.createTimeout(1E4,mxUtils.bind(this,function(H){var N=new mxXmlRequest("https://www.draw.io/generate/v2",c,"POST"),L=mxUtils.bind(this,function(J){H.clear()&&(q(),l(J))});N.send(mxUtils.bind(this,function(J){if(H.isAlive())if(200<=J.getStatus()&&299>=J.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var ha=mxUtils.trim(J.getText());
-this.generateMermaidImage(ha,null,mxUtils.bind(this,function(ea,aa,na){this.tryAndHandle(mxUtils.bind(this,function(){H.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram","\nprompt:",c,"\nresult:",ha),q(),f(ha,ea,aa,na))}),L)}),L,mxUtils.bind(this,function(ea){3>t++?H.clear()&&D():L(ea)}))}),L);else{var Y={message:mxResources.get("error")+" "+J.getStatus()};try{Y=JSON.parse(J.getText()),Y=Y.error}catch(ha){}L(Y)}}),L)}),l)});D()};EditorUi.prototype.extractMermaidDeclaration=function(c){c=
+document.querySelectorAll('div[id*="dgeMermaidOutput-"]'),N=0;N<H.length;N++)null!=H[N].parentNode&&H[N].parentNode.removeChild(H[N])},D=mxUtils.bind(this,function(){this.createTimeout(3E4,mxUtils.bind(this,function(H){var N=new mxXmlRequest("https://www.draw.io/generate/v2",c,"POST"),L=mxUtils.bind(this,function(J){H.clear()&&(q(),l(J))});N.send(mxUtils.bind(this,function(J){if(H.isAlive())if(200<=J.getStatus()&&299>=J.getStatus())this.tryAndHandle(mxUtils.bind(this,function(){var ha=mxUtils.trim(J.getText());
+this.generateMermaidImage(ha,null,mxUtils.bind(this,function(ea,aa,na){this.tryAndHandle(mxUtils.bind(this,function(){H.clear()&&(EditorUi.debug("EditorUi.generateOpenAiMermaidDiagram",[this],"prompt",[c],"result",[ha]),q(),f(ha,ea,aa,na))}),L)}),L,mxUtils.bind(this,function(ea){3>t++?H.clear()&&D():L(ea)}))}),L);else{var Y={message:mxResources.get("error")+" "+J.getStatus()};try{Y=JSON.parse(J.getText()),Y=Y.error}catch(ha){}L(Y)}}),L)}),l)});D()};EditorUi.prototype.extractMermaidDeclaration=function(c){c=
mxUtils.trim(c);"o\n\n"==c.substring(0,3)&&(c=c.substring(3));var f=c.split("```");f=1<f.length?f:c.split("<pre>");f=1<f.length?f:c.split("~~~");f=1<f.length?f:c.split("%%");f=1<f.length?f:c.split("(Begins)");c=mxUtils.trim(1>=f.length?c:f[1]);f=c.split("\n");var l=1<f.length?f[1]:null;if(null!=l){var t=l.indexOf("-");0<t&&(l=l.substring(0,t))}if(0<f.length&&"mermaid"==mxUtils.trim(f[0])||null!=l&&0<=mxUtils.indexOf(EditorUi.mermaidDiagramTypes,l))f.shift(),c=mxUtils.trim(f.join("\n")),f=c.split("\n");
l=f[0].split(" ")[0].replace(/:$/,"");t=l.indexOf("-");0<t&&(l=l.substring(0,t));try{"mindmap"==l&&2<f.length&&(c=extractMermaidMindmap(f))}catch(q){}0>mxUtils.indexOf(EditorUi.mermaidDiagramTypes,l)&&(c=null);return c};EditorUi.prototype.generateMermaidImage=function(c,f,l,t,q){var D=mxUtils.bind(this,function(N){this.loadingMermaid=!1;null!=t?t(N):this.handleError(N)}),H=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;f=null!=f?f:mxUtils.clone(EditorUi.defaultMermaidConfig);f.securityLevel=
"strict";f.startOnLoad=!1;f.maxTextSize=9E5;"undefined"!==typeof mxMermaidToDrawio&&f.flowchart&&0<=c.indexOf("$$")&&(f.flowchart.htmlLabels=!0,mxMermaidToDrawio.htmlLabels=!0);Editor.isDarkMode()&&(f.theme="dark");var N=mxUtils.bind(this,function(L){try{if(mxClient.IS_IE||mxClient.IS_IE11)L=L.replace(/ xmlns:\S*="http:\/\/www.w3.org\/XML\/1998\/namespace"/g,"").replace(/ (NS xml|\S*):space="preserve"/g,' xml:space="preserve"');var J=mxUtils.parseXml(L).getElementsByTagName("svg");if(0<J.length&&
@@ -3756,9 +3756,9 @@ null!=k&&null!=k.src&&Graph.isPageLink(k.src)&&(k={originalSrc:k.src});return k}
function(Q,k){Q=null!=f.backgroundImage?f.backgroundImage.originalSrc:null;if(null!=Q){var B=Q.indexOf(",");if(0<B)for(Q=Q.substring(B+1),k=k.getProperty("patches"),B=0;B<k.length;B++)if(null!=k[B][EditorUi.DIFF_UPDATE]&&null!=k[B][EditorUi.DIFF_UPDATE][Q]||null!=k[B][EditorUi.DIFF_REMOVE]&&0<=mxUtils.indexOf(k[B][EditorUi.DIFF_REMOVE],Q)){f.refreshBackgroundImage();break}}}));var H=f.getBackgroundImageObject;f.getBackgroundImageObject=function(Q,k){var B=H.apply(this,arguments);null!=B&&null!=B.originalSrc&&
(B=k?c.createImageForPageLink(B.originalSrc,null,null,!0):{src:B.originalSrc});return B};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(Q){Q=null!=Q?Q:"";"1"==
urlParams.dev&&(Q+=(0<Q.length?"&":"?")+"dev=1");return N.apply(this,arguments)};var L=f.addClickHandler;f.addClickHandler=function(Q,k,B){var I=k;k=function(U,P,T){if(null==P){var X=mxEvent.getSource(U);"a"==X.nodeName.toLowerCase()&&(P=X.getAttribute("href"))}null!=P&&f.isCustomLink(P)&&(mxEvent.isTouchEvent(U)||!mxEvent.isPopupTrigger(U))&&f.customLinkClicked(P,T)&&mxEvent.consume(U);null!=I&&I(U,P,T)};L.call(this,Q,k,B)};n.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(Q,k,B){f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(Q,["zoomIn","zoomOut","-"],null,B);J.apply(this,arguments);f.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(Q,["-","addToScratchpad"],null,B);f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(Q,["-","exitGroup","home"],null,B)};var Y=Menus.prototype.addPopupMenuEditItems;
-this.menus.addPopupMenuEditItems=function(Q,k,B){if(c.editor.graph.isSelectionEmpty())Y.apply(this,arguments),c.menus.addMenuItems(Q,["copyAsImage"],null,B);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(Q,k,B):this.addPopupMenuArrangeItems(Q,k,B),this.addMenuItems(Q,"- cut copy copyAsImage duplicate -".split(" "),null,B),this.isShowCellEditItems()||this.addPopupDeleteItem(Q,k,B),this.addMenuItems(Q,["lockUnlock","-"],null,B),!this.isShowStyleItems()){if(1==f.getSelectionCount()&&!f.isCellLocked(k)&&
-f.isCellEditable(k)&&(this.addSubmenu("editCell",Q,null,mxResources.get("edit")),Q.addSeparator(),f.getModel().isEdge(k))){this.addSubmenu("line",Q);var I=f.getModel().getGeometry(k);null!=I&&null!=I.points&&0<I.points.length&&this.addMenuItems(Q,["clearWaypoints"],null,B)}1==f.getSelectionCount()&&this.addMenuItems(Q,["enterGroup"],null,B);I=c.getSelectionState();null!=I.mergeCell?this.addMenuItem(Q,"mergeCells"):(1<I.style.colspan||1<I.style.rowspan)&&this.addMenuItem(Q,"unmergeCells")}};this.menus.isShowStyleItems=
+null,!0);if(null!=this.menus){var J=Menus.prototype.addPopupMenuItems;this.menus.addPopupMenuItems=function(Q,k,B){f.isSelectionEmpty()&&"simple"==Editor.currentTheme&&this.addMenuItems(Q,["zoomIn","zoomOut","-"],null,B);J.apply(this,arguments);f.isSelectionEmpty()||null==c.addSelectionToScratchpad||this.addMenuItems(Q,["-","addToScratchpad"],null,B);f.isSelectionEmpty()&&!this.isShowStyleItems()&&this.addMenuItems(Q,["-","exitGroup","home"],null,B)};var Y=Menus.prototype.addPopupMenuEditItems;this.menus.addPopupMenuEditItems=
+function(Q,k,B){if(c.editor.graph.isSelectionEmpty())Y.apply(this,arguments),c.menus.addMenuItems(Q,["copyAsImage"],null,B);else if(this.isShowCellEditItems()?this.addPopupDeleteItem(Q,k,B):this.addPopupMenuArrangeItems(Q,k,B),this.addMenuItems(Q,"- cut copy copyAsImage duplicate -".split(" "),null,B),this.isShowCellEditItems()||this.addPopupDeleteItem(Q,k,B),this.addMenuItems(Q,["lockUnlock","-"],null,B),!this.isShowStyleItems()){if(1==f.getSelectionCount()&&!f.isCellLocked(k)&&f.isCellEditable(k)&&
+(this.addSubmenu("editCell",Q,null,mxResources.get("edit")),Q.addSeparator(),f.getModel().isEdge(k))){this.addSubmenu("line",Q);var I=f.getModel().getGeometry(k);null!=I&&null!=I.points&&0<I.points.length&&this.addMenuItems(Q,["clearWaypoints"],null,B)}1==f.getSelectionCount()&&this.addMenuItems(Q,["enterGroup"],null,B);I=c.getSelectionState();null!=I.mergeCell?this.addMenuItem(Q,"mergeCells"):(1<I.style.colspan||1<I.style.rowspan)&&this.addMenuItem(Q,"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;this.menus.isShowCellEditItems=this.menus.isShowStyleItems}this.dependsOnLanguage(mxUtils.bind(this,function(){this.defaultFilename=mxResources.get("untitledDiagram");this.defaultLibraryName=mxResources.get("untitledLibrary")}));var ha=f.getExportVariables;f.getExportVariables=
function(){var Q=ha.apply(this,arguments),k=c.getCurrentFile();null!=k&&(Q.filename=k.getTitle());Q.pagecount=null!=c.pages?c.pages.length:1;Q.page=null!=c.currentPage?c.currentPage.getName():"";Q.pagenumber=null!=c.pages&&null!=c.currentPage?mxUtils.indexOf(c.pages,c.currentPage)+1:1;return Q};var ea=f.getGlobalVariable;f.getGlobalVariable=function(Q){var k=c.getCurrentFile();return"filename"==Q&&null!=k?k.getTitle():"page"==Q&&null!=c.currentPage?c.currentPage.getName():"pagenumber"==Q?null!=c.currentPage&&
null!=c.pages?mxUtils.indexOf(c.pages,c.currentPage)+1:1:"pagecount"==Q?null!=c.pages?c.pages.length:1:ea.apply(this,arguments)};var aa=null,na=null;this.addListener("fileDescriptorChanged",mxUtils.bind(this,function(){var Q=this.getCurrentFile(),k=null!=Q&&null!=Q.getTitle()?Q.getTitle():this.defaultFilename;aa!=k&&Q==na&&(f.invalidateDescendantsWithPlaceholders(f.model.getRoot()),f.view.validate());aa=k;na=Q}));var W=f.labelLinkClicked;f.labelLinkClicked=function(Q,k,B){var I=k.getAttribute("href");
diff --git a/src/main/webapp/service-worker.js b/src/main/webapp/service-worker.js
index e4295f1eb..dc5e7ad13 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:"22a7a1751a2f62cc53fd871898214a46"},{url:"js/extensions.min.js",revision:"408110a903352b35872d18bc72f5d7c3"},{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:"7f0094a1758e6c55ab5392910a13d13d"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"shortcuts.svg",revision:"2381dd779ce6cfee954042a7f784c7e6"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"d9858ae2e59b4b4c3ba0249583afe7c9"},{url:"styles/high-contrast.css",revision:"c8095fb62f147b591c84b8d290d6703b"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"b631762a126cc5e683c50fba54059a4a"},{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:"6deea8e9b96ff96043cd5cfd2a242a9f"},{url:"plugins/cConf-1-4-8.js",revision:"e3bb1453579008ea5e42fbddd5f33c54"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"94ba9ffc927e0d86a54e70b94504f4f0"},{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:"78b87563d88943ab816a3463927b9b50"},{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:"ddb4d1f6d316a187e55bb3fd89fc6165"},{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:"b44638cfed6404ac07cb82d0ee7d0437"},{url:"resources/dia_am.txt",revision:"0b1eb26b186aacfd5b6d67f88d144d0b"},{url:"resources/dia_ar.txt",revision:"bed70fa15f59b312c168b9ef9528d578"},{url:"resources/dia_bg.txt",revision:"1c846465cb20bf155acc937ba8cbc446"},{url:"resources/dia_bn.txt",revision:"0a7cc401f17390b415417153d8b87b84"},{url:"resources/dia_bs.txt",revision:"b5908edbf7e697b23a2bf90adcbb49c7"},{url:"resources/dia_ca.txt",revision:"c745e8f057b24e85f3f0eecba7af19eb"},{url:"resources/dia_cs.txt",revision:"5e0cf43a649bfdcd56bbebfba6db00ca"},{url:"resources/dia_da.txt",revision:"4766eaa4150ecbe04b89f767835b9406"},{url:"resources/dia_de.txt",revision:"4f0596f7aedfbb808095762f0bd63306"},{url:"resources/dia_el.txt",revision:"a8fa799c3eda7ed001ef011a1e5806dd"},{url:"resources/dia_eo.txt",revision:"6bd806494299f0ac942d1ca21c065478"},{url:"resources/dia_es.txt",revision:"5ea8d76e6966383bcc92bbc4752db5db"},{url:"resources/dia_et.txt",revision:"70aa0cb2ecbbe167a3e4a38aac6dbbdc"},{url:"resources/dia_eu.txt",revision:"1e5419dbdd0da6a6be4e9c48bd99220f"},{url:"resources/dia_fa.txt",revision:"13be854b8db535400e1cd1ec245e740e"},{url:"resources/dia_fi.txt",revision:"8947362d39bee93460c0d86713ee65b7"},{url:"resources/dia_fil.txt",revision:"74efdec615b1003983f77aa12834a75c"},{url:"resources/dia_fr.txt",revision:"8dd13eaca0fcd7e41072c571c201d661"},{url:"resources/dia_gl.txt",revision:"6e09dfae5d18a933d3bc11ba5de44f3c"},{url:"resources/dia_gu.txt",revision:"b9837957b0ca73e4414377b53b53a70b"},{url:"resources/dia_he.txt",revision:"7a8aef0306c6a94f6872896d219d1dc4"},{url:"resources/dia_hi.txt",revision:"3029801be7a36b67a29314a04d5d7d42"},{url:"resources/dia_hr.txt",revision:"57b724efdceb29d21ca8a64c59350b1a"},{url:"resources/dia_hu.txt",revision:"818262e6bcb84ed26563611045490649"},{url:"resources/dia_id.txt",revision:"71d0eb41a8336acdfff7a405c609e18f"},{url:"resources/dia_it.txt",revision:"c3574cb9042adcaea63a3944a09c518e"},{url:"resources/dia_ja.txt",revision:"1c3d11a6636c946d5a22ea52889a19e7"},{url:"resources/dia_kn.txt",revision:"457144ed2c2f51a5ec1d383cbfe9bbf7"},{url:"resources/dia_ko.txt",revision:"e20f9bd4bbf52bf9e3df6e92d7ee1722"},{url:"resources/dia_lt.txt",revision:"bd25b4eab36f6d663c66e4c957b8ef60"},{url:"resources/dia_lv.txt",revision:"e8d8899460a1c81632d7cac287f15354"},{url:"resources/dia_ml.txt",revision:"3b20dfcc809d4b13e3e705a1ae5fbc9f"},{url:"resources/dia_mr.txt",revision:"dd27583c966df6663526af940f7df5d6"},{url:"resources/dia_ms.txt",revision:"253bfb31cf6c8af7ff65527a9137bb9d"},{url:"resources/dia_my.txt",revision:"15f93018ad77289defe0d26df43c6846"},{url:"resources/dia_nl.txt",revision:"abc7305430780a7f3a611e95aa3d6d11"},{url:"resources/dia_no.txt",revision:"cc385ba00d44d6b025fc8b2cffc6721f"},{url:"resources/dia_pl.txt",revision:"485155d3dc8c3d20f42d2ce4689a225f"},{url:"resources/dia_pt-br.txt",revision:"d0bbfa8e826a73098fed085a83a72cdd"},{url:"resources/dia_pt.txt",revision:"18907cf9172320e86fa8aa2a91090ec7"},{url:"resources/dia_ro.txt",revision:"0581872bd0fe468143c7dba864257020"},{url:"resources/dia_ru.txt",revision:"c3789211d3006115131baeea8aab53f7"},{url:"resources/dia_si.txt",revision:"6905439a8ccb386864df2d708be0e8a2"},{url:"resources/dia_sk.txt",revision:"e05d29a790dab92f32a46d0228b5b696"},{url:"resources/dia_sl.txt",revision:"32608759b877e9e942ce209695e841f4"},{url:"resources/dia_sr.txt",revision:"4633d649f40d5b7cf610b6eeb7e6c840"},{url:"resources/dia_sv.txt",revision:"f81f1c1af4df00d757781e3d3b856e05"},{url:"resources/dia_sw.txt",revision:"4f7f39ab83d4ce75b980e1be971ee910"},{url:"resources/dia_ta.txt",revision:"83752a59dfa4f313b73da42e837d8519"},{url:"resources/dia_te.txt",revision:"476a89c596d24e1b1d80f90b76eea1b5"},{url:"resources/dia_th.txt",revision:"6c98c7c4d45c2c260be975ba4db965d3"},{url:"resources/dia_tr.txt",revision:"a4f04603060a5f900fefe32e7aa858a9"},{url:"resources/dia_uk.txt",revision:"2a9c088b5a04a843af42911a0e203fc9"},{url:"resources/dia_vi.txt",revision:"7ada081c11fd313ceee6f51bbc166e34"},{url:"resources/dia_zh-tw.txt",revision:"24281a99696e767ff085dfd6c49a3fe9"},{url:"resources/dia_zh.txt",revision:"3128f6e90a0db91c9d6adcdb94ca7522"},{url:"favicon.ico",revision:"b2bf17349e4b50ce4ba311f079f8bf7d"},{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/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/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/spin.gif",revision:"487cbb40b9ced439aa1ad914e816d773"},{url:"images/aui-wait.gif",revision:"5a474bcbd8d2f2826f03d10ea44bf60e"},{url:"mxgraph/css/common.css",revision:"81d1704d5ab9207e2e5c7fc84379dc1a"},{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:"720aff44fa5efa5b5f32757a70aeaf9a"},{url:"js/extensions.min.js",revision:"2ee3fa6aeaf512c4cfc1cf2dd80cf6dd"},{url:"js/orgchart.min.js",revision:"619d8c4dab47b81868916df31f55478b"},{url:"js/stencils.min.js",revision:"87818472473924f93be49832afdcf853"},{url:"js/shapes-14-6-5.min.js",revision:"eb1d6a46e715a127ea72dd6460c2184b"},{url:"js/math-print.js",revision:"cf64f6a493a8cb5079f2b70813e478d7"},{url:"index.html",revision:"7f0094a1758e6c55ab5392910a13d13d"},{url:"open.html",revision:"d71816b3b00e769fc6019fcdd6921662"},{url:"shortcuts.svg",revision:"2381dd779ce6cfee954042a7f784c7e6"},{url:"styles/fonts/ArchitectsDaughter-Regular.ttf",revision:"31c2153c0530e32553b31a49b3d70736"},{url:"styles/grapheditor.css",revision:"715e1d208fef6f7ccaf34485f9a201ae"},{url:"styles/high-contrast.css",revision:"c8095fb62f147b591c84b8d290d6703b"},{url:"js/dropbox/Dropbox-sdk.min.js",revision:"4b9842892aa37b156db0a8364b7a83b0"},{url:"js/onedrive/OneDrive.js",revision:"505e8280346666f7ee801bc59521fa67"},{url:"js/viewer-static.min.js",revision:"cfcbd598679e26ce92148bda5a4d03f3"},{url:"connect/jira/editor-1-3-3.html",revision:"41dc8af9576b47f359cff19fff7a41c2"},{url:"connect/jira/viewerPanel-1-3-12.html",revision:"4836f5e4308abe57830e441518364f23"},{url:"connect/jira/viewerPanel2.html",revision:"0dd1ee1343a46b5c03aedbc587450b84"},{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:"ce61a0e62031a160e057809fefe64aa2"},{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:"6deea8e9b96ff96043cd5cfd2a242a9f"},{url:"plugins/cConf-1-4-8.js",revision:"e3bb1453579008ea5e42fbddd5f33c54"},{url:"connect/confluence/connectUtils-1-4-8.js",revision:"07bcf4e4c26f5674f48130448e77fcc0"},{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:"78b87563d88943ab816a3463927b9b50"},{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:"ddb4d1f6d316a187e55bb3fd89fc6165"},{url:"connect/confluence/includeDiagram.html",revision:"9613fec05b19ddef081ca6e9d8b057bf"},{url:"connect/confluence/macro-editor.js",revision:"c4c110650228d22b021ebad4d6ef021e"},{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:"b44638cfed6404ac07cb82d0ee7d0437"},{url:"resources/dia_am.txt",revision:"0b1eb26b186aacfd5b6d67f88d144d0b"},{url:"resources/dia_ar.txt",revision:"bed70fa15f59b312c168b9ef9528d578"},{url:"resources/dia_bg.txt",revision:"1c846465cb20bf155acc937ba8cbc446"},{url:"resources/dia_bn.txt",revision:"0a7cc401f17390b415417153d8b87b84"},{url:"resources/dia_bs.txt",revision:"b5908edbf7e697b23a2bf90adcbb49c7"},{url:"resources/dia_ca.txt",revision:"c745e8f057b24e85f3f0eecba7af19eb"},{url:"resources/dia_cs.txt",revision:"5e0cf43a649bfdcd56bbebfba6db00ca"},{url:"resources/dia_da.txt",revision:"4766eaa4150ecbe04b89f767835b9406"},{url:"resources/dia_de.txt",revision:"4f0596f7aedfbb808095762f0bd63306"},{url:"resources/dia_el.txt",revision:"a8fa799c3eda7ed001ef011a1e5806dd"},{url:"resources/dia_eo.txt",revision:"6bd806494299f0ac942d1ca21c065478"},{url:"resources/dia_es.txt",revision:"5ea8d76e6966383bcc92bbc4752db5db"},{url:"resources/dia_et.txt",revision:"70aa0cb2ecbbe167a3e4a38aac6dbbdc"},{url:"resources/dia_eu.txt",revision:"1e5419dbdd0da6a6be4e9c48bd99220f"},{url:"resources/dia_fa.txt",revision:"13be854b8db535400e1cd1ec245e740e"},{url:"resources/dia_fi.txt",revision:"8947362d39bee93460c0d86713ee65b7"},{url:"resources/dia_fil.txt",revision:"74efdec615b1003983f77aa12834a75c"},{url:"resources/dia_fr.txt",revision:"8dd13eaca0fcd7e41072c571c201d661"},{url:"resources/dia_gl.txt",revision:"6e09dfae5d18a933d3bc11ba5de44f3c"},{url:"resources/dia_gu.txt",revision:"b9837957b0ca73e4414377b53b53a70b"},{url:"resources/dia_he.txt",revision:"7a8aef0306c6a94f6872896d219d1dc4"},{url:"resources/dia_hi.txt",revision:"3029801be7a36b67a29314a04d5d7d42"},{url:"resources/dia_hr.txt",revision:"57b724efdceb29d21ca8a64c59350b1a"},{url:"resources/dia_hu.txt",revision:"818262e6bcb84ed26563611045490649"},{url:"resources/dia_id.txt",revision:"71d0eb41a8336acdfff7a405c609e18f"},{url:"resources/dia_it.txt",revision:"c3574cb9042adcaea63a3944a09c518e"},{url:"resources/dia_ja.txt",revision:"1c3d11a6636c946d5a22ea52889a19e7"},{url:"resources/dia_kn.txt",revision:"457144ed2c2f51a5ec1d383cbfe9bbf7"},{url:"resources/dia_ko.txt",revision:"e20f9bd4bbf52bf9e3df6e92d7ee1722"},{url:"resources/dia_lt.txt",revision:"bd25b4eab36f6d663c66e4c957b8ef60"},{url:"resources/dia_lv.txt",revision:"e8d8899460a1c81632d7cac287f15354"},{url:"resources/dia_ml.txt",revision:"3b20dfcc809d4b13e3e705a1ae5fbc9f"},{url:"resources/dia_mr.txt",revision:"dd27583c966df6663526af940f7df5d6"},{url:"resources/dia_ms.txt",revision:"253bfb31cf6c8af7ff65527a9137bb9d"},{url:"resources/dia_my.txt",revision:"15f93018ad77289defe0d26df43c6846"},{url:"resources/dia_nl.txt",revision:"abc7305430780a7f3a611e95aa3d6d11"},{url:"resources/dia_no.txt",revision:"cc385ba00d44d6b025fc8b2cffc6721f"},{url:"resources/dia_pl.txt",revision:"485155d3dc8c3d20f42d2ce4689a225f"},{url:"resources/dia_pt-br.txt",revision:"d0bbfa8e826a73098fed085a83a72cdd"},{url:"resources/dia_pt.txt",revision:"18907cf9172320e86fa8aa2a91090ec7"},{url:"resources/dia_ro.txt",revision:"0581872bd0fe468143c7dba864257020"},{url:"resources/dia_ru.txt",revision:"c3789211d3006115131baeea8aab53f7"},{url:"resources/dia_si.txt",revision:"6905439a8ccb386864df2d708be0e8a2"},{url:"resources/dia_sk.txt",revision:"e05d29a790dab92f32a46d0228b5b696"},{url:"resources/dia_sl.txt",revision:"32608759b877e9e942ce209695e841f4"},{url:"resources/dia_sr.txt",revision:"4633d649f40d5b7cf610b6eeb7e6c840"},{url:"resources/dia_sv.txt",revision:"f81f1c1af4df00d757781e3d3b856e05"},{url:"resources/dia_sw.txt",revision:"4f7f39ab83d4ce75b980e1be971ee910"},{url:"resources/dia_ta.txt",revision:"83752a59dfa4f313b73da42e837d8519"},{url:"resources/dia_te.txt",revision:"476a89c596d24e1b1d80f90b76eea1b5"},{url:"resources/dia_th.txt",revision:"6c98c7c4d45c2c260be975ba4db965d3"},{url:"resources/dia_tr.txt",revision:"a4f04603060a5f900fefe32e7aa858a9"},{url:"resources/dia_uk.txt",revision:"2a9c088b5a04a843af42911a0e203fc9"},{url:"resources/dia_vi.txt",revision:"7ada081c11fd313ceee6f51bbc166e34"},{url:"resources/dia_zh-tw.txt",revision:"24281a99696e767ff085dfd6c49a3fe9"},{url:"resources/dia_zh.txt",revision:"3128f6e90a0db91c9d6adcdb94ca7522"},{url:"favicon.ico",revision:"b2bf17349e4b50ce4ba311f079f8bf7d"},{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/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/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/spin.gif",revision:"487cbb40b9ced439aa1ad914e816d773"},{url:"images/aui-wait.gif",revision:"5a474bcbd8d2f2826f03d10ea44bf60e"},{url:"mxgraph/css/common.css",revision:"81d1704d5ab9207e2e5c7fc84379dc1a"},{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 21b3553ca..bd09c2cef 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/8039b78d7334373f90b44edb729d0d5d/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\": \"22a7a1751a2f62cc53fd871898214a46\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"408110a903352b35872d18bc72f5d7c3\"\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\": \"7f0094a1758e6c55ab5392910a13d13d\"\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\": \"d9858ae2e59b4b4c3ba0249583afe7c9\"\n },\n {\n \"url\": \"styles/high-contrast.css\",\n \"revision\": \"c8095fb62f147b591c84b8d290d6703b\"\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\": \"b631762a126cc5e683c50fba54059a4a\"\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\": \"6deea8e9b96ff96043cd5cfd2a242a9f\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"e3bb1453579008ea5e42fbddd5f33c54\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"94ba9ffc927e0d86a54e70b94504f4f0\"\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\": \"78b87563d88943ab816a3463927b9b50\"\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\": \"ddb4d1f6d316a187e55bb3fd89fc6165\"\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\": \"b44638cfed6404ac07cb82d0ee7d0437\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"0b1eb26b186aacfd5b6d67f88d144d0b\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"bed70fa15f59b312c168b9ef9528d578\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"1c846465cb20bf155acc937ba8cbc446\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"0a7cc401f17390b415417153d8b87b84\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"b5908edbf7e697b23a2bf90adcbb49c7\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"c745e8f057b24e85f3f0eecba7af19eb\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"5e0cf43a649bfdcd56bbebfba6db00ca\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"4766eaa4150ecbe04b89f767835b9406\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"4f0596f7aedfbb808095762f0bd63306\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"a8fa799c3eda7ed001ef011a1e5806dd\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"6bd806494299f0ac942d1ca21c065478\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"5ea8d76e6966383bcc92bbc4752db5db\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"70aa0cb2ecbbe167a3e4a38aac6dbbdc\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"1e5419dbdd0da6a6be4e9c48bd99220f\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"13be854b8db535400e1cd1ec245e740e\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"8947362d39bee93460c0d86713ee65b7\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"74efdec615b1003983f77aa12834a75c\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"8dd13eaca0fcd7e41072c571c201d661\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"6e09dfae5d18a933d3bc11ba5de44f3c\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"b9837957b0ca73e4414377b53b53a70b\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"7a8aef0306c6a94f6872896d219d1dc4\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"3029801be7a36b67a29314a04d5d7d42\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"57b724efdceb29d21ca8a64c59350b1a\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"818262e6bcb84ed26563611045490649\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"71d0eb41a8336acdfff7a405c609e18f\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"c3574cb9042adcaea63a3944a09c518e\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"1c3d11a6636c946d5a22ea52889a19e7\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"457144ed2c2f51a5ec1d383cbfe9bbf7\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"e20f9bd4bbf52bf9e3df6e92d7ee1722\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"bd25b4eab36f6d663c66e4c957b8ef60\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"e8d8899460a1c81632d7cac287f15354\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"3b20dfcc809d4b13e3e705a1ae5fbc9f\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"dd27583c966df6663526af940f7df5d6\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"253bfb31cf6c8af7ff65527a9137bb9d\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"15f93018ad77289defe0d26df43c6846\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"abc7305430780a7f3a611e95aa3d6d11\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"cc385ba00d44d6b025fc8b2cffc6721f\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"485155d3dc8c3d20f42d2ce4689a225f\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"d0bbfa8e826a73098fed085a83a72cdd\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"18907cf9172320e86fa8aa2a91090ec7\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"0581872bd0fe468143c7dba864257020\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"c3789211d3006115131baeea8aab53f7\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"6905439a8ccb386864df2d708be0e8a2\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"e05d29a790dab92f32a46d0228b5b696\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"32608759b877e9e942ce209695e841f4\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"4633d649f40d5b7cf610b6eeb7e6c840\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"f81f1c1af4df00d757781e3d3b856e05\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"4f7f39ab83d4ce75b980e1be971ee910\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"83752a59dfa4f313b73da42e837d8519\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"476a89c596d24e1b1d80f90b76eea1b5\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"6c98c7c4d45c2c260be975ba4db965d3\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"a4f04603060a5f900fefe32e7aa858a9\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"2a9c088b5a04a843af42911a0e203fc9\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"7ada081c11fd313ceee6f51bbc166e34\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"24281a99696e767ff085dfd6c49a3fe9\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"3128f6e90a0db91c9d6adcdb94ca7522\"\n },\n {\n \"url\": \"favicon.ico\",\n \"revision\": \"b2bf17349e4b50ce4ba311f079f8bf7d\"\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/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/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/spin.gif\",\n \"revision\": \"487cbb40b9ced439aa1ad914e816d773\"\n },\n {\n \"url\": \"images/aui-wait.gif\",\n \"revision\": \"5a474bcbd8d2f2826f03d10ea44bf60e\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"81d1704d5ab9207e2e5c7fc84379dc1a\"\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,2BACKC,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,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,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,kBACKC,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/f57e6f3d4b35c6f03cbf61a93ce44f92/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\": \"720aff44fa5efa5b5f32757a70aeaf9a\"\n },\n {\n \"url\": \"js/extensions.min.js\",\n \"revision\": \"2ee3fa6aeaf512c4cfc1cf2dd80cf6dd\"\n },\n {\n \"url\": \"js/orgchart.min.js\",\n \"revision\": \"619d8c4dab47b81868916df31f55478b\"\n },\n {\n \"url\": \"js/stencils.min.js\",\n \"revision\": \"87818472473924f93be49832afdcf853\"\n },\n {\n \"url\": \"js/shapes-14-6-5.min.js\",\n \"revision\": \"eb1d6a46e715a127ea72dd6460c2184b\"\n },\n {\n \"url\": \"js/math-print.js\",\n \"revision\": \"cf64f6a493a8cb5079f2b70813e478d7\"\n },\n {\n \"url\": \"index.html\",\n \"revision\": \"7f0094a1758e6c55ab5392910a13d13d\"\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\": \"715e1d208fef6f7ccaf34485f9a201ae\"\n },\n {\n \"url\": \"styles/high-contrast.css\",\n \"revision\": \"c8095fb62f147b591c84b8d290d6703b\"\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\": \"cfcbd598679e26ce92148bda5a4d03f3\"\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/viewerPanel2.html\",\n \"revision\": \"0dd1ee1343a46b5c03aedbc587450b84\"\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\": \"ce61a0e62031a160e057809fefe64aa2\"\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\": \"6deea8e9b96ff96043cd5cfd2a242a9f\"\n },\n {\n \"url\": \"plugins/cConf-1-4-8.js\",\n \"revision\": \"e3bb1453579008ea5e42fbddd5f33c54\"\n },\n {\n \"url\": \"connect/confluence/connectUtils-1-4-8.js\",\n \"revision\": \"07bcf4e4c26f5674f48130448e77fcc0\"\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\": \"78b87563d88943ab816a3463927b9b50\"\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\": \"ddb4d1f6d316a187e55bb3fd89fc6165\"\n },\n {\n \"url\": \"connect/confluence/includeDiagram.html\",\n \"revision\": \"9613fec05b19ddef081ca6e9d8b057bf\"\n },\n {\n \"url\": \"connect/confluence/macro-editor.js\",\n \"revision\": \"c4c110650228d22b021ebad4d6ef021e\"\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\": \"b44638cfed6404ac07cb82d0ee7d0437\"\n },\n {\n \"url\": \"resources/dia_am.txt\",\n \"revision\": \"0b1eb26b186aacfd5b6d67f88d144d0b\"\n },\n {\n \"url\": \"resources/dia_ar.txt\",\n \"revision\": \"bed70fa15f59b312c168b9ef9528d578\"\n },\n {\n \"url\": \"resources/dia_bg.txt\",\n \"revision\": \"1c846465cb20bf155acc937ba8cbc446\"\n },\n {\n \"url\": \"resources/dia_bn.txt\",\n \"revision\": \"0a7cc401f17390b415417153d8b87b84\"\n },\n {\n \"url\": \"resources/dia_bs.txt\",\n \"revision\": \"b5908edbf7e697b23a2bf90adcbb49c7\"\n },\n {\n \"url\": \"resources/dia_ca.txt\",\n \"revision\": \"c745e8f057b24e85f3f0eecba7af19eb\"\n },\n {\n \"url\": \"resources/dia_cs.txt\",\n \"revision\": \"5e0cf43a649bfdcd56bbebfba6db00ca\"\n },\n {\n \"url\": \"resources/dia_da.txt\",\n \"revision\": \"4766eaa4150ecbe04b89f767835b9406\"\n },\n {\n \"url\": \"resources/dia_de.txt\",\n \"revision\": \"4f0596f7aedfbb808095762f0bd63306\"\n },\n {\n \"url\": \"resources/dia_el.txt\",\n \"revision\": \"a8fa799c3eda7ed001ef011a1e5806dd\"\n },\n {\n \"url\": \"resources/dia_eo.txt\",\n \"revision\": \"6bd806494299f0ac942d1ca21c065478\"\n },\n {\n \"url\": \"resources/dia_es.txt\",\n \"revision\": \"5ea8d76e6966383bcc92bbc4752db5db\"\n },\n {\n \"url\": \"resources/dia_et.txt\",\n \"revision\": \"70aa0cb2ecbbe167a3e4a38aac6dbbdc\"\n },\n {\n \"url\": \"resources/dia_eu.txt\",\n \"revision\": \"1e5419dbdd0da6a6be4e9c48bd99220f\"\n },\n {\n \"url\": \"resources/dia_fa.txt\",\n \"revision\": \"13be854b8db535400e1cd1ec245e740e\"\n },\n {\n \"url\": \"resources/dia_fi.txt\",\n \"revision\": \"8947362d39bee93460c0d86713ee65b7\"\n },\n {\n \"url\": \"resources/dia_fil.txt\",\n \"revision\": \"74efdec615b1003983f77aa12834a75c\"\n },\n {\n \"url\": \"resources/dia_fr.txt\",\n \"revision\": \"8dd13eaca0fcd7e41072c571c201d661\"\n },\n {\n \"url\": \"resources/dia_gl.txt\",\n \"revision\": \"6e09dfae5d18a933d3bc11ba5de44f3c\"\n },\n {\n \"url\": \"resources/dia_gu.txt\",\n \"revision\": \"b9837957b0ca73e4414377b53b53a70b\"\n },\n {\n \"url\": \"resources/dia_he.txt\",\n \"revision\": \"7a8aef0306c6a94f6872896d219d1dc4\"\n },\n {\n \"url\": \"resources/dia_hi.txt\",\n \"revision\": \"3029801be7a36b67a29314a04d5d7d42\"\n },\n {\n \"url\": \"resources/dia_hr.txt\",\n \"revision\": \"57b724efdceb29d21ca8a64c59350b1a\"\n },\n {\n \"url\": \"resources/dia_hu.txt\",\n \"revision\": \"818262e6bcb84ed26563611045490649\"\n },\n {\n \"url\": \"resources/dia_id.txt\",\n \"revision\": \"71d0eb41a8336acdfff7a405c609e18f\"\n },\n {\n \"url\": \"resources/dia_it.txt\",\n \"revision\": \"c3574cb9042adcaea63a3944a09c518e\"\n },\n {\n \"url\": \"resources/dia_ja.txt\",\n \"revision\": \"1c3d11a6636c946d5a22ea52889a19e7\"\n },\n {\n \"url\": \"resources/dia_kn.txt\",\n \"revision\": \"457144ed2c2f51a5ec1d383cbfe9bbf7\"\n },\n {\n \"url\": \"resources/dia_ko.txt\",\n \"revision\": \"e20f9bd4bbf52bf9e3df6e92d7ee1722\"\n },\n {\n \"url\": \"resources/dia_lt.txt\",\n \"revision\": \"bd25b4eab36f6d663c66e4c957b8ef60\"\n },\n {\n \"url\": \"resources/dia_lv.txt\",\n \"revision\": \"e8d8899460a1c81632d7cac287f15354\"\n },\n {\n \"url\": \"resources/dia_ml.txt\",\n \"revision\": \"3b20dfcc809d4b13e3e705a1ae5fbc9f\"\n },\n {\n \"url\": \"resources/dia_mr.txt\",\n \"revision\": \"dd27583c966df6663526af940f7df5d6\"\n },\n {\n \"url\": \"resources/dia_ms.txt\",\n \"revision\": \"253bfb31cf6c8af7ff65527a9137bb9d\"\n },\n {\n \"url\": \"resources/dia_my.txt\",\n \"revision\": \"15f93018ad77289defe0d26df43c6846\"\n },\n {\n \"url\": \"resources/dia_nl.txt\",\n \"revision\": \"abc7305430780a7f3a611e95aa3d6d11\"\n },\n {\n \"url\": \"resources/dia_no.txt\",\n \"revision\": \"cc385ba00d44d6b025fc8b2cffc6721f\"\n },\n {\n \"url\": \"resources/dia_pl.txt\",\n \"revision\": \"485155d3dc8c3d20f42d2ce4689a225f\"\n },\n {\n \"url\": \"resources/dia_pt-br.txt\",\n \"revision\": \"d0bbfa8e826a73098fed085a83a72cdd\"\n },\n {\n \"url\": \"resources/dia_pt.txt\",\n \"revision\": \"18907cf9172320e86fa8aa2a91090ec7\"\n },\n {\n \"url\": \"resources/dia_ro.txt\",\n \"revision\": \"0581872bd0fe468143c7dba864257020\"\n },\n {\n \"url\": \"resources/dia_ru.txt\",\n \"revision\": \"c3789211d3006115131baeea8aab53f7\"\n },\n {\n \"url\": \"resources/dia_si.txt\",\n \"revision\": \"6905439a8ccb386864df2d708be0e8a2\"\n },\n {\n \"url\": \"resources/dia_sk.txt\",\n \"revision\": \"e05d29a790dab92f32a46d0228b5b696\"\n },\n {\n \"url\": \"resources/dia_sl.txt\",\n \"revision\": \"32608759b877e9e942ce209695e841f4\"\n },\n {\n \"url\": \"resources/dia_sr.txt\",\n \"revision\": \"4633d649f40d5b7cf610b6eeb7e6c840\"\n },\n {\n \"url\": \"resources/dia_sv.txt\",\n \"revision\": \"f81f1c1af4df00d757781e3d3b856e05\"\n },\n {\n \"url\": \"resources/dia_sw.txt\",\n \"revision\": \"4f7f39ab83d4ce75b980e1be971ee910\"\n },\n {\n \"url\": \"resources/dia_ta.txt\",\n \"revision\": \"83752a59dfa4f313b73da42e837d8519\"\n },\n {\n \"url\": \"resources/dia_te.txt\",\n \"revision\": \"476a89c596d24e1b1d80f90b76eea1b5\"\n },\n {\n \"url\": \"resources/dia_th.txt\",\n \"revision\": \"6c98c7c4d45c2c260be975ba4db965d3\"\n },\n {\n \"url\": \"resources/dia_tr.txt\",\n \"revision\": \"a4f04603060a5f900fefe32e7aa858a9\"\n },\n {\n \"url\": \"resources/dia_uk.txt\",\n \"revision\": \"2a9c088b5a04a843af42911a0e203fc9\"\n },\n {\n \"url\": \"resources/dia_vi.txt\",\n \"revision\": \"7ada081c11fd313ceee6f51bbc166e34\"\n },\n {\n \"url\": \"resources/dia_zh-tw.txt\",\n \"revision\": \"24281a99696e767ff085dfd6c49a3fe9\"\n },\n {\n \"url\": \"resources/dia_zh.txt\",\n \"revision\": \"3128f6e90a0db91c9d6adcdb94ca7522\"\n },\n {\n \"url\": \"favicon.ico\",\n \"revision\": \"b2bf17349e4b50ce4ba311f079f8bf7d\"\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/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/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/spin.gif\",\n \"revision\": \"487cbb40b9ced439aa1ad914e816d773\"\n },\n {\n \"url\": \"images/aui-wait.gif\",\n \"revision\": \"5a474bcbd8d2f2826f03d10ea44bf60e\"\n },\n {\n \"url\": \"mxgraph/css/common.css\",\n \"revision\": \"81d1704d5ab9207e2e5c7fc84379dc1a\"\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,2BACKC,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,iCACKC,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,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,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,kBACKC,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
diff --git a/src/main/webapp/styles/grapheditor.css b/src/main/webapp/styles/grapheditor.css
index ca6ef078c..51f7802d4 100644
--- a/src/main/webapp/styles/grapheditor.css
+++ b/src/main/webapp/styles/grapheditor.css
@@ -44,6 +44,7 @@
grid-template-columns: min-content min-content 1fr min-content;
}
+html:has(.geFullscreen),
.geEditor,
.mxWindow,
.geDialogTitle,
@@ -751,7 +752,8 @@ div.geTemplatePreview {
}
.geTemplate .geGenerateDiagramForm .geButton.geRoundButton {
- margin: -6px -6px 0 0;
+ margin: -6px -6px 0 0;
+ padding: 2px !important;
}
.geDarkMode .geTemplate {
@@ -1551,6 +1553,11 @@ a.geStatus>div {
flex-grow: 0;
}
+.mxPopupMenuItem:empty:has(+ .mxPopupMenuItem:empty),
+.mxPopupMenuItem:empty + .mxPopupMenuItem:empty {
+ display: none;
+}
+
.mxPopupMenuIcon>img.geButton:empty {
width: 22px;
}
@@ -1635,7 +1642,9 @@ a.geStatus>div {
position: relative;
}
-.geFormatSection *:empty:not(input) {
+.geFormatSection *:empty:not(input),
+.geToolbarContainer *:not(input) {
+ -webkit-user-select: none;
user-select: none;
}
@@ -1705,6 +1714,10 @@ a.geStatus>div {
z-index: 1;
}
+.geMinimal .geTabContainer .geZoomInput {
+ margin-left: auto;
+}
+
.geTabContainer .geZoomInput {
margin: auto -16px auto 0;
font-size: 12px;