diff --git a/ChangeLog b/ChangeLog index 2cdc26d2..4b2e98d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,10 @@ -03-SEP-2016: 5.7.0.8.2 +04-OCT-2016: 5.7.0.9 + +- Adds experimental tags plugin +- Fixes page scale in print preview +- Adds new colorset + +03-OCT-2016: 5.7.0.8.2 - Adds tolerance, uses fewer cells in scissors tool diff --git a/VERSION b/VERSION index e931ad90..c039befa 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -5.7.0.8.2 \ No newline at end of file +5.7.0.9 \ No newline at end of file diff --git a/war/WEB-INF/appengine-web.xml b/war/WEB-INF/appengine-web.xml index 112f3c0d..5a85963d 100644 --- a/war/WEB-INF/appengine-web.xml +++ b/war/WEB-INF/appengine-web.xml @@ -2,7 +2,7 @@ drawdotio - 5-7-0-8-2 + test diff --git a/war/cache.manifest b/war/cache.manifest index 7cb398ad..78951cc0 100644 --- a/war/cache.manifest +++ b/war/cache.manifest @@ -1,7 +1,7 @@ CACHE MANIFEST # THIS FILE WAS GENERATED. DO NOT MODIFY! -# 10/03/2016 03:57 PM +# 10/04/2016 03:37 PM /app.html /index.html?offline=1 diff --git a/war/images/fullscreen.png b/war/images/fullscreen.png index ffce7c97..204d1175 100644 Binary files a/war/images/fullscreen.png and b/war/images/fullscreen.png differ diff --git a/war/images/sidebar-veeam.png b/war/images/sidebar-veeam.png index c096cb93..2c4fd182 100644 Binary files a/war/images/sidebar-veeam.png and b/war/images/sidebar-veeam.png differ diff --git a/war/index.html b/war/index.html index 7ed53bda..8e54083b 100644 --- a/war/index.html +++ b/war/index.html @@ -400,7 +400,7 @@ App.main(); document.getElementById("geFooterLink1").onclick = function() { var img = new Image(); - img.src = 'log?msg=geFooterLink1:' + '&v=' + encodeURIComponent(EditorUi.VERSION); + img.src = 'https://log.draw.io/log?msg=geFooterLink1: location=' + encodeURIComponent(window.location) + '&v=' + encodeURIComponent(EditorUi.VERSION); } /** diff --git a/war/js/app.min.js b/war/js/app.min.js index 584614ad..ee39f3b1 100644 --- a/war/js/app.min.js +++ b/war/js/app.min.js @@ -44,18 +44,18 @@ function(){return this.h&&decodeURIComponent(this.h)};g.prototype.ca=function(b) !(b instanceof Array)&&(b instanceof Object||"[object Array]"!==Object.prototype.toString.call(b))){var a=[],d=-1,e;for(e in b){var c=b[e];"string"===typeof c&&(a[++d]=e,a[++d]=c)}b=a}for(var a=[],d="",f=0;f]/g,B={"\n":"%0a","\f":"%0c","\r":"%0d",'"':"%22","'":"%27","(":"%28",")":"%29","*":"%2a", -"\x3c":"%3c","\x3e":"%3e"},E=/^(?:([^:/?# ]+):)?/,G=/^(?:https?|mailto|data)$/i;m=function(){var a={};return function N(d,c,f,g,n){d=D(d);var m=e[d];if(!m||"object"!==typeof m)c.length=0;else{for(var u=m.cssPropBits,q=u&80,p=u&1536,z=NaN,r=0,s=0;r=E)F=u&1?F:"";else if(G=F.charCodeAt(1),B=F.charCodeAt(2),A=48<=G&&57>=G,I=48<=B&&57>=B,43===E&&(A||46===G&&I))F=u&1?(A?"":"0")+F.substring(1):"";else if(45===E&&(A||46===G&&I))F=u&4?(A?"-":"-0")+F.substring(1):u&1?"0":"";else if(46===E&&A)F=u&1?"0"+F:"";else if('url("'===F.substring(0,5))F= +"\x3c":"%3c","\x3e":"%3e"},E=/^(?:([^:/?# ]+):)?/,G=/^(?:https?|mailto|data)$/i;m=function(){var a={};return function N(d,c,f,g,n){d=D(d);var m=e[d];if(!m||"object"!==typeof m)c.length=0;else{for(var u=m.cssPropBits,q=u&80,p=u&1536,z=NaN,r=0,s=0;r=E)F=u&1?F:"";else if(B=F.charCodeAt(1),G=F.charCodeAt(2),A=48<=B&&57>=B,I=48<=G&&57>=G,43===E&&(A||46===B&&I))F=u&1?(A?"":"0")+F.substring(1):"";else if(45===E&&(A||46===B&&I))F=u&4?(A?"-":"-0")+F.substring(1):u&1?"0":"";else if(46===E&&A)F=u&1?"0"+F:"";else if('url("'===F.substring(0,5))F= f&&u&16?b(t(k(g,c[r].substring(5,F.length-2)),d,f)):"";else if("("===F.charAt(F.length-1))a:{R=c;ca=r;F=1;$=ca+1;for(E=R.length;$g&&" "===d[l-1]&&--l;f.startAtrule&&f.startAtrule(d[k].toLowerCase(),d.slice(g,l));e="{"===d[e]?a(d,e,c,f):e+1;f.endAtrule&&f.endAtrule()}return e}function a(c,f,g,k){++f;for(k.startBlock&&k.startBlock();fn)return n=~n,n===k?n+1:n;var m=b[n];if("{"!==m)return n===k?n+1:n;a=n+1;n>k&&" "===b[n-1]&&--n;for(g.startRuleset&&g.startRuleset(b.slice(k,n));am)m=~m;else{for(var u=[],t=0,q=a;q])/g;c=b+"";if(ga)c=c.split(g);else{for(var k=[],l=0,n;(n=g.exec(c))!==f;)k.push(c.substring(l,n.index)),k.push(n[0]),l=n.index+n[0].length;k.push(c.substring(l));c=k}t(a,c,0,{r:d,C:d},e)}}function u(b,a,d,e,c){return function(){t(b,a,d,e,c)}}function t(a,d,e,f,g){try{a.H&&0==e&&a.H(g);for(var k,l,n,m=d.length;e/g,X=/\"/g,R=/^\s*([-.:\w]+)(?:\s*(=)\s*((")[^"]*("|$)|(')[^']*('|$)|(?=[a-z][-\w]*\s*=)|[^"'\s]*))?/i,ga=3==="a,b".split(/(,)/).length,ca=b.c.CDATA|b.c.RCDATA,$={},fa={},ia=/^(?:https?|mailto|data)$/i,ba={};ba.pa=ba.escapeAttrib=k;ba.ra=ba.makeHtmlSanitizer=r;ba.sa=ba.makeSaxParser=m;ba.ta=ba.makeTagPolicy=W;ba.wa=ba.normalizeRCData=l;ba.xa= +function W(d,e,c){return function(f,g){if(b.f[f]&b.c.UNSAFE)c&&L(c,f,a,a,a);else return{attribs:T(f,g,d,e,c)}}}function P(b,a){var d=[];r(a)(b,d);return d.join("")}var C,O;"undefined"!==typeof window&&(C=window.parseCssDeclarations,O=window.sanitizeCssProperty);var Q={lt:"\x3c",LT:"\x3c",gt:"\x3e",GT:"\x3e",amp:"\x26",AMP:"\x26",quot:'"',apos:"'",nbsp:"\u00a0"},M=/^#(\d+)$/,V=/^#x([0-9A-Fa-f]+)$/,J=/^[A-Za-z][A-za-z0-9]+$/,K="undefined"!==typeof window&&window.document?window.document.createElement("textarea"): +f,S=/\0/g,Z=/&(#[0-9]+|#[xX][0-9A-Fa-f]+|\w+);/g,ea=/^(#[0-9]+|#[xX][0-9A-Fa-f]+|\w+);/,da=/&/g,U=/&([^a-z#]|#(?:[^0-9x]|x(?:[^0-9a-f]|$)|$)|$)/gi,Y=/[<]/g,aa=/>/g,X=/\"/g,R=/^\s*([-.:\w]+)(?:\s*(=)\s*((")[^"]*("|$)|(')[^']*('|$)|(?=[a-z][-\w]*\s*=)|[^"'\s]*))?/i,ga=3==="a,b".split(/(,)/).length,ca=b.c.CDATA|b.c.RCDATA,$={},fa={},ia=/^(?:https?|mailto|data)$/i,ba={};ba.pa=ba.escapeAttrib=k;ba.ra=ba.makeHtmlSanitizer=r;ba.sa=ba.makeSaxParser=m;ba.ta=ba.makeTagPolicy=W;ba.wa=ba.normalizeRCData=l;ba.xa= ba.sanitize=function(b,a,d,e){return P(b,W(a,d,e))};ba.ya=ba.sanitizeAttribs=T;ba.za=ba.sanitizeWithPolicy=P;ba.Ba=ba.unescapeEntities=g;return ba}(u);g=b.sanitize;"undefined"!==typeof window&&(window.html=b,window.html_sanitize=g)})();!function(a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pako=a()}(function(){return function c(f,d,b){function e(k,n){if(!d[k]){if(!f[k]){var m="function"==typeof require&&require;if(!n&&m)return m(k,!0);if(g)return g(k,!0);m=Error("Cannot find module '"+k+"'");throw m.code="MODULE_NOT_FOUND",m;}m=d[k]={exports:{}}; f[k][0].call(m.exports,function(b){var d=f[k][1][b];return e(d?d:b)},m,m.exports,c,f,d,b)}return d[k].exports}for(var g="function"==typeof require&&require,k=0;kd.windowBits&&(d.windowBits+=16);this.err=0;this.msg= "";this.ended=!1;this.chunks=[];this.strm=new m;this.strm.avail_out=0;var e=g.deflateInit2(this.strm,d.level,d.method,d.windowBits,d.memLevel,d.strategy);if(e!==r)throw Error(n[e]);if(d.header&&g.deflateSetHeader(this.strm,d.header),d.dictionary){var c;if(c="string"==typeof d.dictionary?l.string2buf(d.dictionary):"[object ArrayBuffer]"===p.call(d.dictionary)?new Uint8Array(d.dictionary):d.dictionary,e=g.deflateSetDictionary(this.strm,c),e!==r)throw Error(n[e]);this._dict_set=!0}}function e(d,e){var c= @@ -113,30 +113,30 @@ c?(d[k++]=192|c>>>6,d[k++]=128|63&c):65536>c?(d[k++]=224|c>>>12,d[k++]=128|c>>>6 2===k?31:3===k?15:7;1g?n[f++]=g:(g-=65536,n[f++]=55296|g>>10&1023,n[f++]=56320|1023&g)}return b(n,f)};d.utf8border=function(b,d){var e;d=d||b.length;d>b.length&&(d=b.length);for(e=d-1;0<=e&&128===(192&b[e]);)e--;return 0>e?d:0===e?d:e+m[b[e]]>d?e:d}},{"./common":3}],5:[function(c,f,d){f.exports=function(b,d,c,f){var l=65535&b|0;b=b>>>16&65535|0;for(var n=0;0!==c;){n=2E3c;c++){b=c; for(var f=0;8>f;f++)b=1&b?3988292384^b>>>1:b>>>1;d[c]=b}return d}();f.exports=function(d,c,f,l){f=l+f;for(d^=-1;l>>8^b[255&(d^c[l])];return d^-1}},{}],8:[function(c,f,d){function b(b,d){return b.msg=E[d],d}function e(b){for(var d=b.length;0<=--d;)b[d]=0}function g(b){var d=b.state,e=d.pending;e>b.avail_out&&(e=b.avail_out);0!==e&&(x.arraySet(b.output,d.pending_buf,d.pending_out,e,b.next_out),b.next_out+=e,d.pending_out+=e,b.total_out+=e,b.avail_out-=e,d.pending-=e,0===d.pending&&(d.pending_out= -0))}function k(b,d){D._tr_flush_block(b,0<=b.block_start?b.block_start:-1,b.strstart-b.block_start,d);b.block_start=b.strstart;g(b.strm)}function l(b,d){b.pending_buf[b.pending++]=d}function n(b,d){b.pending_buf[b.pending++]=d>>>8&255;b.pending_buf[b.pending++]=255&d}function m(b,d){var e,c,f=b.max_chain_length,g=b.strstart,k=b.prev_length,l=b.nice_match,n=b.strstart>b.w_size-Z?b.strstart-(b.w_size-Z):0,m=b.window,u=b.w_mask,t=b.prev,q=b.strstart+S,v=m[g+k-1],p=m[g+k];b.prev_length>=b.good_match&& -(f>>=2);l>b.lookahead&&(l=b.lookahead);do if(e=d,m[e+k]===p&&m[e+k-1]===v&&m[e]===m[g]&&m[++e]===m[g+1]){g+=2;e++;do;while(m[++g]===m[++e]&&m[++g]===m[++e]&&m[++g]===m[++e]&&m[++g]===m[++e]&&m[++g]===m[++e]&&m[++g]===m[++e]&&m[++g]===m[++e]&&m[++g]===m[++e]&&gk){if(b.match_start=d,k=c,c>=l)break;v=m[g+k-1];p=m[g+k]}}while((d=t[d&u])>n&&0!==--f);return k<=b.lookahead?k:b.lookahead}function p(b){var d,e,c,f,g=b.w_size;do{if(f=b.window_size-b.lookahead-b.strstart,b.strstart>= +0))}function k(b,d){D._tr_flush_block(b,0<=b.block_start?b.block_start:-1,b.strstart-b.block_start,d);b.block_start=b.strstart;g(b.strm)}function l(b,d){b.pending_buf[b.pending++]=d}function n(b,d){b.pending_buf[b.pending++]=d>>>8&255;b.pending_buf[b.pending++]=255&d}function m(b,d){var e,c,f=b.max_chain_length,g=b.strstart,k=b.prev_length,l=b.nice_match,n=b.strstart>b.w_size-Z?b.strstart-(b.w_size-Z):0,m=b.window,t=b.w_mask,u=b.prev,q=b.strstart+S,p=m[g+k-1],v=m[g+k];b.prev_length>=b.good_match&& +(f>>=2);l>b.lookahead&&(l=b.lookahead);do if(e=d,m[e+k]===v&&m[e+k-1]===p&&m[e]===m[g]&&m[++e]===m[g+1]){g+=2;e++;do;while(m[++g]===m[++e]&&m[++g]===m[++e]&&m[++g]===m[++e]&&m[++g]===m[++e]&&m[++g]===m[++e]&&m[++g]===m[++e]&&m[++g]===m[++e]&&m[++g]===m[++e]&&gk){if(b.match_start=d,k=c,c>=l)break;p=m[g+k-1];v=m[g+k]}}while((d=u[d&t])>n&&0!==--f);return k<=b.lookahead?k:b.lookahead}function p(b){var d,e,c,f,g=b.w_size;do{if(f=b.window_size-b.lookahead-b.strstart,b.strstart>= g+(g-Z)){x.arraySet(b.window,b.window,g,g,0);b.match_start-=g;b.strstart-=g;b.block_start-=g;d=e=b.hash_size;do c=b.head[--d],b.head[d]=c>=g?c-g:0;while(--e);d=e=g;do c=b.prev[--d],b.prev[d]=c>=g?c-g:0;while(--e);f+=g}if(0===b.strm.avail_in)break;d=b.strm;c=b.window;var k=b.strstart+b.lookahead,l=d.avail_in;if(e=(l>f&&(l=f),0===l?0:(d.avail_in-=l,x.arraySet(c,d.input,d.next_in,l,k),1===d.state.wrap?d.adler=A(d.adler,c,l,k):2===d.state.wrap&&(d.adler=B(d.adler,c,l,k)),d.next_in+=l,d.total_in+=l,l)), -b.lookahead+=e,b.lookahead+b.insert>=K){f=b.strstart-b.insert;b.ins_h=b.window[f];for(b.ins_h=(b.ins_h<=K&&(b.ins_h=(b.ins_h<< +b.lookahead+=e,b.lookahead+b.insert>=K){f=b.strstart-b.insert;b.ins_h=b.window[f];for(b.ins_h=(b.ins_h<=K&&(b.ins_h=(b.ins_h<< b.hash_shift^b.window[b.strstart+K-1])&b.hash_mask,e=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),0!==e&&b.strstart-e<=b.w_size-Z&&(b.match_length=m(b,e)),b.match_length>=K)if(c=D._tr_tally(b,b.strstart-b.match_start,b.match_length-K),b.lookahead-=b.match_length,b.match_length<=b.max_lazy_match&&b.lookahead>=K){b.match_length--;do b.strstart++,b.ins_h=(b.ins_h<=K&&(b.ins_h=(b.ins_h<=b.match_length&&(b.strategy===N||b.match_length===K&&4096= -K&&b.match_length<=b.prev_length){f=b.strstart+b.lookahead-K;c=D._tr_tally(b,b.strstart-1-b.prev_match,b.prev_length-K);b.lookahead-=b.prev_length-1;b.prev_length-=2;do++b.strstart<=f&&(b.ins_h=(b.ins_h<=K&&(b.ins_h=(b.ins_h<=b.match_length&&(b.strategy===N||b.match_length===K&&4096= +K&&b.match_length<=b.prev_length){f=b.strstart+b.lookahead-K;c=D._tr_tally(b,b.strstart-1-b.prev_match,b.prev_length-K);b.lookahead-=b.prev_length-1;b.prev_length-=2;do++b.strstart<=f&&(b.ins_h=(b.ins_h<e.wrap&&(e.wrap=-e.wrap),e.status=e.wrap?ea:da,d.adler=2===e.wrap?0:1,e.last_flush=G,D._tr_init(e),I):b(d,H)}function v(b){var d=u(b);d===I&&(b=b.state,b.window_size=2*b.w_size,e(b.head),b.max_lazy_match=y[b.level].max_lazy,b.good_match=y[b.level].good_length,b.nice_match=y[b.level].nice_length,b.max_chain_length=y[b.level].max_chain,b.strstart=0,b.block_start= 0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=K-1,b.match_available=0,b.ins_h=0);return d}function z(d,e,c,f,g,k){if(!d)return H;var l=1;if(e===L&&(e=6),0>f?(l=0,f=-f):15g||g>C||c!==P||8>f||15e||9k||k>T)return b(d,H);8===f&&(f=9);var n=new t;return d.state=n,n.strm=d,n.wrap=l,n.gzhead=null,n.w_bits=f,n.w_size=1<b.pending_buf_size-5&&(e=b.pending_buf_size-5);;){if(1>=b.lookahead){if(p(b),0===b.lookahead&&d===G)return V;if(0===b.lookahead)break}b.strstart+=b.lookahead;b.lookahead=0;var c=b.block_start+e;if((0===b.strstart||b.strstart>=c)&&(b.lookahead=b.strstart-c,b.strstart=c,k(b,!1),0===b.strm.avail_out)||b.strstart-b.block_start>=b.w_size-Z&&(k(b,!1),0===b.strm.avail_out))return V}return b.insert=0,d===F?(k(b,!0),0===b.strm.avail_out?aa:X):(b.strstart>b.block_start&&k(b,!1),V)}),new q(4,4,8, -4,r),new q(4,5,16,8,r),new q(4,6,32,32,r),new q(4,4,16,16,s),new q(8,16,32,32,s),new q(8,16,128,128,s),new q(8,32,128,256,s),new q(32,128,258,1024,s),new q(32,258,258,4096,s)];d.deflateInit=function(b,d){return z(b,d,P,15,8,0)};d.deflateInit2=z;d.deflateReset=v;d.deflateResetKeep=u;d.deflateSetHeader=function(b,d){return b&&b.state?2!==b.state.wrap?H:(b.state.gzhead=d,I):H};d.deflate=function(d,c){var f,m,u,t;if(!d||!d.state||5c)return d?b(d,H):H;if(m=d.state,!d.output||!d.input&&0!==d.avail_in|| +n.w_size),n.head=new x.Buf16(n.hash_size),n.prev=new x.Buf16(n.w_size),n.lit_bufsize=1<b.pending_buf_size-5&&(e=b.pending_buf_size-5);;){if(1>=b.lookahead){if(p(b),0===b.lookahead&&d===G)return U;if(0===b.lookahead)break}b.strstart+=b.lookahead;b.lookahead=0;var c=b.block_start+e;if((0===b.strstart||b.strstart>=c)&&(b.lookahead=b.strstart-c,b.strstart=c,k(b,!1),0===b.strm.avail_out)||b.strstart-b.block_start>=b.w_size-Z&&(k(b,!1),0===b.strm.avail_out))return U}return b.insert=0,d===F?(k(b,!0),0===b.strm.avail_out?aa:X):(b.strstart>b.block_start&&k(b,!1),U)}),new q(4,4,8, +4,r),new q(4,5,16,8,r),new q(4,6,32,32,r),new q(4,4,16,16,s),new q(8,16,32,32,s),new q(8,16,128,128,s),new q(8,32,128,256,s),new q(32,128,258,1024,s),new q(32,258,258,4096,s)];d.deflateInit=function(b,d){return z(b,d,P,15,8,0)};d.deflateInit2=z;d.deflateReset=v;d.deflateResetKeep=u;d.deflateSetHeader=function(b,d){return b&&b.state?2!==b.state.wrap?H:(b.state.gzhead=d,I):H};d.deflate=function(d,c){var f,m,t,u;if(!d||!d.state||5c)return d?b(d,H):H;if(m=d.state,!d.output||!d.input&&0!==d.avail_in|| 666===m.status&&c!==F)return b(d,0===d.avail_out?-5:H);if(m.strm=d,f=m.last_flush,m.last_flush=c,m.status===ea)2===m.wrap?(d.adler=0,l(m,31),l(m,139),l(m,8),m.gzhead?(l(m,(m.gzhead.text?1:0)+(m.gzhead.hcrc?2:0)+(m.gzhead.extra?4:0)+(m.gzhead.name?8:0)+(m.gzhead.comment?16:0)),l(m,255&m.gzhead.time),l(m,m.gzhead.time>>8&255),l(m,m.gzhead.time>>16&255),l(m,m.gzhead.time>>24&255),l(m,9===m.level?2:2<=m.strategy||2>m.level?4:0),l(m,255&m.gzhead.os),m.gzhead.extra&&m.gzhead.extra.length&&(l(m,255&m.gzhead.extra.length), -l(m,m.gzhead.extra.length>>8&255)),m.gzhead.hcrc&&(d.adler=B(d.adler,m.pending_buf,m.pending,0)),m.gzindex=0,m.status=69):(l(m,0),l(m,0),l(m,0),l(m,0),l(m,0),l(m,9===m.level?2:2<=m.strategy||2>m.level?4:0),l(m,3),m.status=da)):(u=P+(m.w_bits-8<<4)<<8,t=-1,t=2<=m.strategy||2>m.level?0:6>m.level?1:6===m.level?2:3,u|=t<<6,0!==m.strstart&&(u|=32),m.status=da,n(m,u+(31-u%31)),0!==m.strstart&&(n(m,d.adler>>>16),n(m,65535&d.adler)),d.adler=1);if(69===m.status)if(m.gzhead.extra){for(u=m.pending;m.gzindex< -(65535&m.gzhead.extra.length)&&(m.pending!==m.pending_buf_size||(m.gzhead.hcrc&&m.pending>u&&(d.adler=B(d.adler,m.pending_buf,m.pending-u,u)),g(d),u=m.pending,m.pending!==m.pending_buf_size));)l(m,255&m.gzhead.extra[m.gzindex]),m.gzindex++;m.gzhead.hcrc&&m.pending>u&&(d.adler=B(d.adler,m.pending_buf,m.pending-u,u));m.gzindex===m.gzhead.extra.length&&(m.gzindex=0,m.status=73)}else m.status=73;if(73===m.status)if(m.gzhead.name){u=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending> -u&&(d.adler=B(d.adler,m.pending_buf,m.pending-u,u)),g(d),u=m.pending,m.pending===m.pending_buf_size)){t=1;break}t=m.gzindexu&&(d.adler=B(d.adler,m.pending_buf,m.pending-u,u));0===t&&(m.gzindex=0,m.status=91)}else m.status=91;if(91===m.status)if(m.gzhead.comment){u=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>u&&(d.adler=B(d.adler,m.pending_buf,m.pending-u,u)), -g(d),u=m.pending,m.pending===m.pending_buf_size)){t=1;break}t=m.gzindexu&&(d.adler=B(d.adler,m.pending_buf,m.pending-u,u));0===t&&(m.status=103)}else m.status=103;if(103===m.status&&(m.gzhead.hcrc?(m.pending+2>m.pending_buf_size&&g(d),m.pending+2<=m.pending_buf_size&&(l(m,255&d.adler),l(m,d.adler>>8&255),d.adler=0,m.status=da)):m.status=da),0!==m.pending){if(g(d),0===d.avail_out)return m.last_flush= --1,I}else if(0===d.avail_in&&(c<<1)-(4=K&&0m.lookahead&&(m.match_length=m.lookahead)}if(m.match_length>= -K?(q=D._tr_tally(m,1,m.match_length-K),m.lookahead-=m.match_length,m.strstart+=m.match_length,m.match_length=0):(q=D._tr_tally(m,0,m.window[m.strstart]),m.lookahead--,m.strstart++),q&&(k(m,!1),0===m.strm.avail_out)){q=V;break a}}q=(m.insert=0,c===F?(k(m,!0),0===m.strm.avail_out?aa:X):m.last_lit&&(k(m,!1),0===m.strm.avail_out)?V:Y)}else q=y[m.level].func(m,c);if(q!==aa&&q!==X||(m.status=666),q===V||q===aa)return 0===d.avail_out&&(m.last_flush=-1),I;if(q===Y&&(1===c?D._tr_align(m):5!==c&&(D._tr_stored_block(m, +l(m,m.gzhead.extra.length>>8&255)),m.gzhead.hcrc&&(d.adler=B(d.adler,m.pending_buf,m.pending,0)),m.gzindex=0,m.status=69):(l(m,0),l(m,0),l(m,0),l(m,0),l(m,0),l(m,9===m.level?2:2<=m.strategy||2>m.level?4:0),l(m,3),m.status=da)):(t=P+(m.w_bits-8<<4)<<8,u=-1,u=2<=m.strategy||2>m.level?0:6>m.level?1:6===m.level?2:3,t|=u<<6,0!==m.strstart&&(t|=32),m.status=da,n(m,t+(31-t%31)),0!==m.strstart&&(n(m,d.adler>>>16),n(m,65535&d.adler)),d.adler=1);if(69===m.status)if(m.gzhead.extra){for(t=m.pending;m.gzindex< +(65535&m.gzhead.extra.length)&&(m.pending!==m.pending_buf_size||(m.gzhead.hcrc&&m.pending>t&&(d.adler=B(d.adler,m.pending_buf,m.pending-t,t)),g(d),t=m.pending,m.pending!==m.pending_buf_size));)l(m,255&m.gzhead.extra[m.gzindex]),m.gzindex++;m.gzhead.hcrc&&m.pending>t&&(d.adler=B(d.adler,m.pending_buf,m.pending-t,t));m.gzindex===m.gzhead.extra.length&&(m.gzindex=0,m.status=73)}else m.status=73;if(73===m.status)if(m.gzhead.name){t=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending> +t&&(d.adler=B(d.adler,m.pending_buf,m.pending-t,t)),g(d),t=m.pending,m.pending===m.pending_buf_size)){u=1;break}u=m.gzindext&&(d.adler=B(d.adler,m.pending_buf,m.pending-t,t));0===u&&(m.gzindex=0,m.status=91)}else m.status=91;if(91===m.status)if(m.gzhead.comment){t=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>t&&(d.adler=B(d.adler,m.pending_buf,m.pending-t,t)), +g(d),t=m.pending,m.pending===m.pending_buf_size)){u=1;break}u=m.gzindext&&(d.adler=B(d.adler,m.pending_buf,m.pending-t,t));0===u&&(m.status=103)}else m.status=103;if(103===m.status&&(m.gzhead.hcrc?(m.pending+2>m.pending_buf_size&&g(d),m.pending+2<=m.pending_buf_size&&(l(m,255&d.adler),l(m,d.adler>>8&255),d.adler=0,m.status=da)):m.status=da),0!==m.pending){if(g(d),0===d.avail_out)return m.last_flush= +-1,I}else if(0===d.avail_in&&(c<<1)-(4=K&&0m.lookahead&&(m.match_length=m.lookahead)}if(m.match_length>= +K?(q=D._tr_tally(m,1,m.match_length-K),m.lookahead-=m.match_length,m.strstart+=m.match_length,m.match_length=0):(q=D._tr_tally(m,0,m.window[m.strstart]),m.lookahead--,m.strstart++),q&&(k(m,!1),0===m.strm.avail_out)){q=U;break a}}q=(m.insert=0,c===F?(k(m,!0),0===m.strm.avail_out?aa:X):m.last_lit&&(k(m,!1),0===m.strm.avail_out)?U:Y)}else q=y[m.level].func(m,c);if(q!==aa&&q!==X||(m.status=666),q===U||q===aa)return 0===d.avail_out&&(m.last_flush=-1),I;if(q===Y&&(1===c?D._tr_align(m):5!==c&&(D._tr_stored_block(m, 0,0,!1),3===c&&(e(m.head),0===m.lookahead&&(m.strstart=0,m.block_start=0,m.insert=0))),g(d),0===d.avail_out))return m.last_flush=-1,I}return c!==F?I:0>=m.wrap?1:(2===m.wrap?(l(m,255&d.adler),l(m,d.adler>>8&255),l(m,d.adler>>16&255),l(m,d.adler>>24&255),l(m,255&d.total_in),l(m,d.total_in>>8&255),l(m,d.total_in>>16&255),l(m,d.total_in>>24&255)):(n(m,d.adler>>>16),n(m,65535&d.adler)),g(d),0=c.w_size&&(0===k&&(e(c.head),c.strstart=0,c.block_start=0,c.insert=0),l=new x.Buf8(c.w_size),x.arraySet(l,d,f-c.w_size,c.w_size,0),d=l,f=c.w_size);l=b.avail_in;n=b.next_in;m=b.input;b.avail_in=f;b.next_in= 0;b.input=d;for(p(c);c.lookahead>=K;){f=c.strstart;g=c.lookahead-(K-1);do c.ins_h=(c.ins_h<>>24&255)+(b>>>8&65280)+((65280&b)<<8)+((255&b)<<24)}function e(){this.mode=0;this.last=!1;this.wrap=0;this.havedict=!1;this.total=this.check=this.dmax=this.flags=0;this.head=null;this.wnext=this.whave=this.wsize=this.wbits=0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new s.Buf16(320);this.work= new s.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function g(b){var d;return b&&b.state?(d=b.state,b.total_in=b.total_out=d.total=0,b.msg="",d.wrap&&(b.adler=1&d.wrap),d.mode=x,d.last=0,d.havedict=0,d.dmax=32768,d.head=null,d.hold=0,d.bits=0,d.lencode=d.lendyn=new s.Buf32(D),d.distcode=d.distdyn=new s.Buf32(A),d.sane=1,d.back=-1,z):y}function k(b){var d;return b&&b.state?(d=b.state,d.wsize=0,d.whave=0,d.wnext=0,g(b)):y}function l(b,d){var e,c;return b&&b.state?(c=b.state, 0>d?(e=0,d=-d):(e=(d>>4)+1,48>d&&(d&=15)),d&&(8>d||15=b.wsize?(s.arraySet(b.window,d,e-b.wsize,b.wsize,0),b.wnext=0,b.whave=b.wsize):(f=b.wsize-b.wnext,f>c&&(f=c),s.arraySet(b.window,d,e- -c,f,b.wnext),c-=f,c?(s.arraySet(b.window,d,e-c,c,0),b.wnext=c,b.whave=b.wsize):(b.wnext+=f,b.wnext===b.wsize&&(b.wnext=0),b.whaveC;){if(0===n)break a;n--;A+=f[k++]<>>8&255;c.check=t(c.check,R,2,0);C=A=0;c.mode=2;break}if(c.flags=0,c.head&&(c.head.done=!1), -!(1&c.wrap)||(((255&A)<<8)+(A>>8))%31){d.msg="incorrect header check";c.mode=30;break}if(8!==(15&A)){d.msg="unknown compression method";c.mode=30;break}if(A>>>=4,C-=4,V=(15&A)+8,0===c.wbits)c.wbits=V;else if(V>c.wbits){d.msg="invalid window size";c.mode=30;break}c.dmax=1<C;){if(0===n)break a;n--;A+=f[k++]<>8))%31){d.msg="incorrect header check";c.mode=30;break}if(8!==(15&A)){d.msg="unknown compression method";c.mode=30;break}if(A>>>=4,C-=4,U=(15&A)+8,0===c.wbits)c.wbits=U;else if(U>c.wbits){d.msg="invalid window size";c.mode=30;break}c.dmax=1<C;){if(0===n)break a;n--;A+=f[k++]<>8&1);512&c.flags&&(R[0]=255&A,R[1]=A>>>8&255,c.check=t(c.check,R,2,0));C=A=0;c.mode=3;case 3:for(;32>C;){if(0===n)break a;n--;A+=f[k++]<>>8&255,R[2]=A>>>16&255,R[3]=A>>>24&255,c.check=t(c.check,R,4,0));C=A=0;c.mode=4;case 4:for(;16>C;){if(0===n)break a;n--;A+=f[k++]<>8);512&c.flags&&(R[0]=255&A,R[1]=A>>>8&255,c.check=t(c.check,R,2,0));C=A=0;c.mode= -5;case 5:if(1024&c.flags){for(;16>C;){if(0===n)break a;n--;A+=f[k++]<>>8&255,c.check=t(c.check,R,2,0));C=A=0}else c.head&&(c.head.extra=null);c.mode=6;case 6:if(1024&c.flags&&(M=c.length,M>n&&(M=n),M&&(c.head&&(V=c.head.extra_len-c.length,c.head.extra||(c.head.extra=Array(c.head.extra_len)),s.arraySet(c.head.extra,f,k,M,V)),512&c.flags&&(c.check=t(c.check,f,M,k)),n-=M,k+=M,c.length-=M),c.length))break a;c.length=0;c.mode= -7;case 7:if(2048&c.flags){if(0===n)break a;M=0;do V=f[k+M++],c.head&&V&&65536>c.length&&(c.head.name+=String.fromCharCode(V));while(V&&Mc.length&&(c.head.comment+=String.fromCharCode(V));while(V&&MC;){if(0===n)break a;n--;A+=f[k++]<>>8&255,c.check=t(c.check,R,2,0));C=A=0}else c.head&&(c.head.extra=null);c.mode=6;case 6:if(1024&c.flags&&(M=c.length,M>n&&(M=n),M&&(c.head&&(U=c.head.extra_len-c.length,c.head.extra||(c.head.extra=Array(c.head.extra_len)),s.arraySet(c.head.extra,f,k,M,U)),512&c.flags&&(c.check=t(c.check,f,M,k)),n-=M,k+=M,c.length-=M),c.length))break a;c.length=0;c.mode= +7;case 7:if(2048&c.flags){if(0===n)break a;M=0;do U=f[k+M++],c.head&&U&&65536>c.length&&(c.head.name+=String.fromCharCode(U));while(U&&Mc.length&&(c.head.comment+=String.fromCharCode(U));while(U&&MC;){if(0===n)break a;n--;A+=f[k++]<>9&1,c.head.done=!0);d.adler=c.check=0;c.mode=12;break;case 10:for(;32>C;){if(0===n)break a;n--;A+=f[k++]<>>= 7&C;C-=7&C;c.mode=27;break}for(;3>C;){if(0===n)break a;n--;A+=f[k++]<>>=1,C-=1,3&A){case 0:c.mode=14;break;case 1:J=c;if(B){S=void 0;p=new s.Buf32(512);r=new s.Buf32(32);for(S=0;144>S;)J.lens[S++]=8;for(;256>S;)J.lens[S++]=9;for(;280>S;)J.lens[S++]=7;for(;288>S;)J.lens[S++]=8;v(1,J.lens,0,288,p,0,J.work,{bits:9});for(S=0;32>S;)J.lens[S++]=5;v(2,J.lens,0,32,r,0,J.work,{bits:5});B=!1}J.lencode=p;J.lenbits=9;J.distcode=r;J.distbits=5;if(c.mode=20,6===e){A>>>=2;C-=2;break a}break; case 2:c.mode=17;break;case 3:d.msg="invalid block type",c.mode=30}A>>>=2;C-=2;break;case 14:A>>>=7&C;for(C-=7&C;32>C;){if(0===n)break a;n--;A+=f[k++]<>>16^65535)){d.msg="invalid stored block lengths";c.mode=30;break}if(c.length=65535&A,A=0,C=0,c.mode=15,6===e)break a;case 15:c.mode=16;case 16:if(M=c.length){if(M>n&&(M=n),M>D&&(M=D),0===M)break a;s.arraySet(g,f,k,M,l);n-=M;k+=M;D-=M;l+=M;c.length-=M;break}c.mode=12;break;case 17:for(;14>C;){if(0===n)break a;n--;A+=f[k++]<< C;C+=8}if(c.nlen=(31&A)+257,A>>>=5,C-=5,c.ndist=(31&A)+1,A>>>=5,C-=5,c.ncode=(15&A)+4,A>>>=4,C-=4,286C;){if(0===n)break a;n--;A+=f[k++]<>>=3;C-=3}for(;19>c.have;)c.lens[ga[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,aa={bits:c.lenbits},Y=v(0,c.lens,0,19,c.lencode,0,c.work,aa),c.lenbits=aa.bits,Y){d.msg="invalid code lengths set"; -c.mode=30;break}c.have=0;c.mode=19;case 19:for(;c.have>>24,S=65535&X,!(K<=C);){if(0===n)break a;n--;A+=f[k++]<S)A>>>=K,C-=K,c.lens[c.have++]=S;else{if(16===S){for(J=K+2;C>>=K,C-=K,0===c.have){d.msg="invalid bit length repeat";c.mode=30;break}V=c.lens[c.have-1];M=3+(3&A);A>>>=2;C-=2}else if(17===S){for(J=K+3;C>>=K;C-=K;V=0;M=3+(7&A); -A>>>=3;C-=3}else{for(J=K+7;C>>=K;C-=K;V=0;M=11+(127&A);A>>>=7;C-=7}if(c.have+M>c.nlen+c.ndist){d.msg="invalid bit length repeat";c.mode=30;break}for(;M--;)c.lens[c.have++]=V}}if(30===c.mode)break;if(0===c.lens[256]){d.msg="invalid code -- missing end-of-block";c.mode=30;break}if(c.lenbits=9,aa={bits:c.lenbits},Y=v(1,c.lens,0,c.nlen,c.lencode,0,c.work,aa),c.lenbits=aa.bits,Y){d.msg="invalid literal/lengths set";c.mode=30;break}if(c.distbits=6,c.distcode= +c.mode=30;break}c.have=0;c.mode=19;case 19:for(;c.have>>24,S=65535&X,!(K<=C);){if(0===n)break a;n--;A+=f[k++]<S)A>>>=K,C-=K,c.lens[c.have++]=S;else{if(16===S){for(J=K+2;C>>=K,C-=K,0===c.have){d.msg="invalid bit length repeat";c.mode=30;break}U=c.lens[c.have-1];M=3+(3&A);A>>>=2;C-=2}else if(17===S){for(J=K+3;C>>=K;C-=K;U=0;M=3+(7&A); +A>>>=3;C-=3}else{for(J=K+7;C>>=K;C-=K;U=0;M=11+(127&A);A>>>=7;C-=7}if(c.have+M>c.nlen+c.ndist){d.msg="invalid bit length repeat";c.mode=30;break}for(;M--;)c.lens[c.have++]=U}}if(30===c.mode)break;if(0===c.lens[256]){d.msg="invalid code -- missing end-of-block";c.mode=30;break}if(c.lenbits=9,aa={bits:c.lenbits},Y=v(1,c.lens,0,c.nlen,c.lencode,0,c.work,aa),c.lenbits=aa.bits,Y){d.msg="invalid literal/lengths set";c.mode=30;break}if(c.distbits=6,c.distcode= c.distdyn,aa={bits:c.distbits},Y=v(2,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,aa),c.distbits=aa.bits,Y){d.msg="invalid distances set";c.mode=30;break}if(c.mode=20,6===e)break a;case 20:c.mode=21;case 21:if(6<=n&&258<=D){d.next_out=l;d.avail_out=D;d.next_in=k;d.avail_in=n;c.hold=A;c.bits=C;u(d,Q);l=d.next_out;g=d.output;D=d.avail_out;k=d.next_in;f=d.input;n=d.avail_in;A=c.hold;C=c.bits;12===c.mode&&(c.back=-1);break}for(c.back=0;X=c.lencode[A&(1<>>24,J=X>>>16&255,S=65535&X,!(K<= C);){if(0===n)break a;n--;A+=f[k++]<>Z)],K=X>>>24,J=X>>>16&255,S=65535&X,!(Z+K<=C);){if(0===n)break a;n--;A+=f[k++]<>>=Z;C-=Z;c.back+=Z}if(A>>>=K,C-=K,c.back+=K,c.length=S,0===J){c.mode=26;break}if(32&J){c.back=-1;c.mode=12;break}if(64&J){d.msg="invalid literal/length code";c.mode=30;break}c.extra=15&J;c.mode=22;case 22:if(c.extra){for(J=c.extra;C>>=c.extra;C-=c.extra;c.back+=c.extra}c.was=c.length;c.mode=23;case 23:for(;X=c.distcode[A&(1<>>24,J=X>>>16&255,S=65535&X,!(K<=C);){if(0===n)break a;n--;A+=f[k++]<>Z)],K=X>>>24,J=X>>>16&255,S=65535&X,!(Z+K<=C);){if(0===n)break a;n--;A+=f[k++]<>>=Z;C-=Z;c.back+=Z}if(A>>>=K,C-=K,c.back+=K,64&J){d.msg="invalid distance code";c.mode=30;break}c.offset=S;c.extra=15&J;c.mode=24;case 24:if(c.extra){for(J= -c.extra;C>>=c.extra;C-=c.extra;c.back+=c.extra}if(c.offset>c.dmax){d.msg="invalid distance too far back";c.mode=30;break}c.mode=25;case 25:if(0===D)break a;if(M=Q-D,c.offset>M){if(M=c.offset-M,M>c.whave&&c.sane){d.msg="invalid distance too far back";c.mode=30;break}M>c.wnext?(M-=c.wnext,U=c.wsize-M):U=c.wnext-M;M>c.length&&(M=c.length);J=c.window}else J=g,U=l-c.offset,M=c.length;M>D&&(M=D);D-=M;c.length-=M;do g[l++]=J[U++];while(--M); +c.extra;C>>=c.extra;C-=c.extra;c.back+=c.extra}if(c.offset>c.dmax){d.msg="invalid distance too far back";c.mode=30;break}c.mode=25;case 25:if(0===D)break a;if(M=Q-D,c.offset>M){if(M=c.offset-M,M>c.whave&&c.sane){d.msg="invalid distance too far back";c.mode=30;break}M>c.wnext?(M-=c.wnext,V=c.wsize-M):V=c.wnext-M;M>c.length&&(M=c.length);J=c.window}else J=g,V=l-c.offset,M=c.length;M>D&&(M=D);D-=M;c.length-=M;do g[l++]=J[V++];while(--M); 0===c.length&&(c.mode=21);break;case 26:if(0===D)break a;g[l++]=c.length;D--;c.mode=21;break;case 27:if(c.wrap){for(;32>C;){if(0===n)break a;n--;A|=f[k++]<C;){if(0===n)break a;n--;A+=f[k++]<c.mode&&(27>c.mode||4!==e))&&m(d,d.output,d.next_out,Q-d.avail_out)?(c.mode=31,-4):(O-=d.avail_in,Q-=d.avail_out,d.total_in+=O,d.total_out+=Q,c.total+=Q,c.wrap&&Q&&(d.adler=c.check=c.flags?t(c.check,g,Q,d.next_out-Q):q(c.check,g,Q,d.next_out-Q)),d.data_type=c.bits+(c.last?64:0)+(12===c.mode?128: 0)+(20===c.mode||15===c.mode?256:0),(0===O&&0===Q||4===e)&&Y===z&&(Y=-5),Y)};d.inflateEnd=function(b){if(!b||!b.state)return y;var d=b.state;return d.window&&(d.window=null),b.state=null,z};d.inflateGetHeader=function(b,d){var e;return b&&b.state?(e=b.state,0===(2&e.wrap)?y:(e.head=d,d.done=!1,z)):y};d.inflateSetDictionary=function(b,d){var e,c,f=d.length;return b&&b.state?(e=b.state,0!==e.wrap&&11!==e.mode?y:11===e.mode&&(c=1,c=q(c,d,f,0),c!==e.check)?-3:m(b,d,f,f)?(e.mode=31,-4):(e.havedict=1,z)): y};d.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./inffast":10,"./inftrees":12}],12:[function(c,f,d){var b=c("../utils/common"),e=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],k=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16, -16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];f.exports=function(d,c,f,r,s,q,t,u){var v,z,y,x,D,A,B,E;x=u.bits;for(var G=0,F=0,I=0,H=0,L=0,N=0,T=0,W=v=0,P=0,C=null,O=0,Q=new b.Buf16(16),N=new b.Buf16(16),M=null,U=0,G=0;15>=G;G++)Q[G]=0;for(F=0;FH&&(L=H),0===H)return s[q++]=20971520,s[q++]=20971520,u.bits=1,0;for(I=1;I=G;G++)if(v<<=1,v-=Q[G],0>v)return-1;if(0< -v&&(0===d||1!==H))return-1;N[1]=0;for(G=1;15>G;G++)N[G+1]=N[G]+Q[G];for(F=0;FD?(B=M[U+t[F]],E=C[O+t[F]]):(B=96,E=0);v=1<>T)+z]=A<<24|B<<16|E|0;while(0!==z);for(v=1<>=1;if(0!==v?(P&=v-1,P+=v):P=0,F++,0===--Q[G]){if(G===H)break; +16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];f.exports=function(d,c,f,r,s,q,t,u){var v,z,y,x,D,A,B,E;x=u.bits;for(var G=0,F=0,I=0,H=0,L=0,N=0,T=0,W=v=0,P=0,C=null,O=0,Q=new b.Buf16(16),N=new b.Buf16(16),M=null,V=0,G=0;15>=G;G++)Q[G]=0;for(F=0;FH&&(L=H),0===H)return s[q++]=20971520,s[q++]=20971520,u.bits=1,0;for(I=1;I=G;G++)if(v<<=1,v-=Q[G],0>v)return-1;if(0< +v&&(0===d||1!==H))return-1;N[1]=0;for(G=1;15>G;G++)N[G+1]=N[G]+Q[G];for(F=0;FD?(B=M[V+t[F]],E=C[O+t[F]]):(B=96,E=0);v=1<>T)+z]=A<<24|B<<16|E|0;while(0!==z);for(v=1<>=1;if(0!==v?(P&=v-1,P+=v):P=0,F++,0===--Q[G]){if(G===H)break; G=c[f+t[F]]}if(G>L&&(P&r)!==y){0===T&&(T=L);x+=I;N=G-T;for(v=1<=v));)N++,v<<=1;if(W+=1<>>8&255}function l(b,d,e){b.bi_valid>W-e?(b.bi_buf|=d<>W-b.bi_valid,b.bi_valid+=e-W):(b.bi_buf|=d<>>=1,e<<=1;while(0<--d);return e>>>1}function p(b,d,e){var c,f=Array(T+1),g=0;for(c=1;c<=T;c++)f[c]=g=g+e[c-1]<<1;for(e=0;e<=d;e++)c=b[2*e+1],0!==c&&(b[2*e]=m(f[c]++,c))}function r(b){var d;for(d=0;dc?ea[c]:ea[256+(c>>>7)],n(b,g,e),k=U[g],0!==k&&(c-=Y[g],l(b,c,k)));while(mb.heap_len;)f=b.heap[++b.heap_len]=2>n?++n:0,g[2*f]=1,b.depth[f]=0,b.opt_len--,k&&(b.static_len-=c[2*f+1]);d.max_code=n;for(e=b.heap_len>>1;1<=e;e--)t(b,g,e);f=l; +b.bi_buf=0;b.bi_valid=0}function q(b,d,e,c){var f=2*d,g=2*e;return b[f]c?ea[c]:ea[256+(c>>>7)],n(b,g,e),k=V[g],0!==k&&(c-=Y[g],l(b,c,k)));while(mb.heap_len;)f=b.heap[++b.heap_len]=2>n?++n:0,g[2*f]=1,b.depth[f]=0,b.opt_len--,k&&(b.static_len-=c[2*f+1]);d.max_code=n;for(e=b.heap_len>>1;1<=e;e--)t(b,g,e);f=l; do e=b.heap[1],b.heap[1]=b.heap[b.heap_len--],t(b,g,1),c=b.heap[1],b.heap[--b.heap_max]=e,b.heap[--b.heap_max]=c,g[2*f]=g[2*e]+g[2*c],b.depth[f]=(b.depth[e]>=b.depth[c]?b.depth[e]:b.depth[c])+1,g[2*e+1]=g[2*c+1]=f,b.heap[1]=f++,t(b,g,1);while(2<=b.heap_len);b.heap[--b.heap_max]=b.heap[1];var m,u,k=d.dyn_tree,l=d.max_code,q=d.stat_desc.static_tree,v=d.stat_desc.has_stree,z=d.stat_desc.extra_bits,x=d.stat_desc.extra_base,y=d.stat_desc.max_length,r=0;for(c=0;c<=T;c++)b.bl_count[c]=0;k[2*b.heap[b.heap_max]+ 1]=0;for(e=b.heap_max+1;ey&&(c=y,r++),k[2*f+1]=c,f>l||(b.bl_count[c]++,m=0,f>=x&&(m=z[f-x]),u=k[2*f],b.opt_len+=u*(c+m),v&&(b.static_len+=u*(q[2*f+1]+m)));if(0!==r){do{for(c=y-1;0===b.bl_count[c];)c--;b.bl_count[c]--;b.bl_count[c+1]+=2;b.bl_count[y]--;r-=2}while(0l||(k[2*m+1]!==c&&(b.opt_len+=(c-k[2*m+1])*k[2*m],k[2*m+1]=c),f--)}p(g,n,b.bl_count)}function z(b,d,e){var c,f,g=-1,k=d[1],l=0,n=7, -m=4;0===k&&(n=138,m=3);d[2*(e+1)+1]=65535;for(c=0;c<=e;c++)f=k,k=d[2*(c+1)+1],++l=l?b.bl_tree[2*O]++:b.bl_tree[2*Q]++,l=0,g=f,0===k?(n=138,m=3):f===k?(n=6,m=3):(n=7,m=4))}function y(b,d,e){var c,f,g=-1,k=d[1],m=0,u=7,t=4;0===k&&(u=138,t=3);for(c=0;c<=e;c++)if(f=k,k=d[2*(c+1)+1],!(++m=m? -(n(b,O,b.bl_tree),l(b,m-3,3)):(n(b,Q,b.bl_tree),l(b,m-11,7));m=0;g=f;0===k?(u=138,t=3):f===k?(u=6,t=3):(u=7,t=4)}}function x(b){var d,e=4093624447;for(d=0;31>=d;d++,e>>>=1)if(1&e&&0!==b.dyn_ltree[2*d])return B;if(0!==b.dyn_ltree[18]||0!==b.dyn_ltree[20]||0!==b.dyn_ltree[26])return E;for(d=32;df;f++){V[f]=c;for(d=0;d<1<f;f++){Y[f]=c;for(d=0;d<1<>=7;f=d;)S[2*d+1]=8,d++,k[8]++;for(;255>=d;)S[2*d+1]=9,d++,k[9]++;for(;279>=d;)S[2*d+1]=7,d++,k[7]++;for(;287>=d;)S[2*d+1]=8,d++,k[8]++;p(S,I+1,k);for(d=0;d=l?b.bl_tree[2*O]++:b.bl_tree[2*Q]++,l=0,g=f,0===k?(n=138,m=3):f===k?(n=6,m=3):(n=7,m=4))}function y(b,d,e){var c,f,g=-1,k=d[1],m=0,t=7,u=4;0===k&&(t=138,u=3);for(c=0;c<=e;c++)if(f=k,k=d[2*(c+1)+1],!(++m=m? +(n(b,O,b.bl_tree),l(b,m-3,3)):(n(b,Q,b.bl_tree),l(b,m-11,7));m=0;g=f;0===k?(t=138,u=3):f===k?(t=6,u=3):(t=7,u=4)}}function x(b){var d,e=4093624447;for(d=0;31>=d;d++,e>>>=1)if(1&e&&0!==b.dyn_ltree[2*d])return B;if(0!==b.dyn_ltree[18]||0!==b.dyn_ltree[20]||0!==b.dyn_ltree[26])return E;for(d=32;df;f++){U[f]=c;for(d=0;d<1<f;f++){Y[f]=c;for(d=0;d<1<>=7;f=d;)S[2*d+1]=8,d++,k[8]++;for(;255>=d;)S[2*d+1]=9,d++,k[9]++;for(;279>=d;)S[2*d+1]=7,d++,k[7]++;for(;287>=d;)S[2*d+1]=8,d++,k[8]++;p(S,I+1,k);for(d=0;d>>3;g=b.static_len+3+7>>>3;g<=f&&(f=g)}else f=g=e+5;if(e+4<=f&&-1!==d)D(b,d,e, c);else if(4===b.strategy||g===f)l(b,2+(c?1:0),3),u(b,S,Z);else{l(b,4+(c?1:0),3);d=b.l_desc.max_code+1;e=b.d_desc.max_code+1;k+=1;l(b,d-257,5);l(b,e-1,5);l(b,k-4,4);for(f=0;f>>8&255,b.pending_buf[b.d_buf+2*b.last_lit+1]=255&d,b.pending_buf[b.l_buf+b.last_lit]=255&e,b.last_lit++,0===d?b.dyn_ltree[2*e]++:(b.matches++, d--,b.dyn_ltree[2*(da[e]+F+1)]++,b.dyn_dtree[2*(256>d?ea[d]:ea[256+(d>>>7)])]++),b.last_lit===b.lit_bufsize-1};d._tr_align=function(b){l(b,2,3);n(b,P,S);16===b.bi_valid?(k(b,b.bi_buf),b.bi_buf=0,b.bi_valid=0):8<=b.bi_valid&&(b.pending_buf[b.pending++]=255&b.bi_buf,b.bi_buf>>=8,b.bi_valid-=8)}},{"../utils/common":3}],15:[function(c,f,d){f.exports=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state= @@ -1983,15 +1983,17 @@ Editor.checkmarkImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhFQAVAMQfAGx "/checkmark.gif";Editor.maximizeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVBAMAAABbObilAAAAElBMVEUAAAAAAAAAAAAAAAAAAAAAAADgKxmiAAAABXRSTlMA758vX1Pw3BoAAABJSURBVAjXY8AJQkODGBhUQ0MhbAUGBiYY24CBgRnGFmZgMISwgwwDGRhEhVVBbAVmEQYGRwMmBjIAQi/CTIRd6G5AuA3dzYQBAHj0EFdHkvV4AAAAAElFTkSuQmCC";Editor.zoomOutImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVBAMAAABbObilAAAAElBMVEUAAAAAAAAsLCxxcXEhISFgYGChjTUxAAAAAXRSTlMAQObYZgAAAEdJREFUCNdjIAMwCQrB2YKCggJQJqMwA7MglK1owMBgqABVApITgLJZXFxgbIQ4Qj3CHIT5ggoIe5kgNkM1KSDYKBKqxPkDAPo5BAZBE54hAAAAAElFTkSuQmCC"; Editor.zoomInImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVBAMAAABbObilAAAAElBMVEUAAAAAAAAsLCwhISFxcXFgYGBavKaoAAAAAXRSTlMAQObYZgAAAElJREFUCNdjIAMwCQrB2YKCggJQJqMIA4sglK3owMzgqABVwsDMwCgAZTMbG8PYCHGEeoQ5CPMFFRD2MkFshmpSQLBRJFSJ8wcAEqcEM2uhl2MAAAAASUVORK5CYII\x3d";Editor.zoomFitImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVBAMAAABbObilAAAAD1BMVEUAAAAAAAAwMDBwcHBgYGC1xl09AAAAAXRSTlMAQObYZgAAAEFJREFUCNdjIAMwCQrB2YKCggJQJqMwA7MglK1owMBgqABVApITwMdGqEeYgzBfUAFhLxPEZqgmBQQbRUKFOH8AAK5OA3lA+FFOAAAAAElFTkSuQmCC"; Editor.layersImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAMAAACeyVWkAAAAaVBMVEUAAAAgICAICAgdHR0PDw8WFhYICAgLCwsXFxcvLy8ODg4uLi4iIiIqKiokJCQYGBgKCgonJycFBQUCAgIqKiocHBwcHBwODg4eHh4cHBwnJycJCQkUFBQqKiojIyMuLi4ZGRkgICAEBATOWYXAAAAAGnRSTlMAD7+fnz8/H7/ff18/77+vr5+fn39/b28fH2xSoKsAAACQSURBVBjTrYxJEsMgDARZZMAY73sgCcn/HxnhKtnk7j6oRq0psfuoyndZ/SuODkHPLzfVT6KeyPePnJ7KrnkRjWMXTn4SMnN8mXe2SSM3ts8L/ZUxxrbAULSYJJULE0Iw9pjpenoICcgcX61mGgTgtCv9Be99pzCoDhNQWQnchD1mup5++CYGcoQexajZbfwAj/0MD8ZOaUgAAAAASUVORK5CYII\x3d"; +Editor.previousImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAh0lEQVQ4je3UsQnCUBCA4U8hpa1NsoEjpHQJS0dxADdwEMuMIJkgA1hYChbGQgMi+JC8q4L/AB/vDu7x74cWWEZhJU44RmA1zujR5GIbXF9YNrjD/Q0bDRY4fEBZ4P4LlgTnCbAf84pUM8/9hY08tMUtEoQ1LpEgrNBFglChFXR6Q6GfwwR6AGKJMF74Vtt3AAAAAElFTkSuQmCC";Editor.nextImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAi0lEQVQ4jeXUIQ7CUAwA0MeGxWI2yylwnALJUdBcgYvM7QYLmjOQIAkIPmJZghiIvypoUtX0tfnJL38X5ZfaEgUeUcManFBHgS0SLlhHggk3bCPBhCf2keCQR8wjwYTDp6YiZxJmOU1jGw7vGALescuBxsArNlOwd/CM1VSM/ut1qCIw+uOwiMJ+OF4CQzBCXm3hyAAAAABJRU5ErkJggg\x3d\x3d"; Editor.zoomOutLargeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAilBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////2N2iNAAAALXRSTlMA+vTcKMM96GRBHwXxi0YaX1HLrKWhiHpWEOnOr52Vb2xKSDcT19PKv5l/Ngdk8+viAAABJklEQVQ4y4WT2XaDMAxEvWD2nSSUNEnTJN3r//+9Sj7ILAY6L0ijC4ONYVZRpo6cByrz2YKSUGorGTpz71lPVHvT+avoB5wIkU/mxk8veceSuNoLg44IzziXjvpih72wKQnm8yc2UoiP/LAd8jQfe2Xf4Pq+2EyYIvv9wbzHHCgwxDdlBtWZOdqDfTCVgqpygQpsZaojVAVc9UjQxnAJDIBhiQv84tq3gMQCAVTxVoSibXJf8tMuc7e1TB/DCmejBNg/w1Y3c+AM5vv4w7xM59/oXamrHaLVqPQ+OTCnmMZxgz0SdL5zji0/ld6j88qGa5KIiBB6WeJGKfUKwSMKLuXgvl1TW0tm5R9UQL/efSDYsnzxD8CinhBsTTdugJatKpJwf8v+ADb8QmvW7AeAAAAAAElFTkSuQmCC"; Editor.zoomInLargeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAilBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////2N2iNAAAALXRSTlMA+vTcKMM96GRBHwXxi0YaX1HLrKWhiHpWEOnOr52Vb2xKSDcT19PKv5l/Ngdk8+viAAABKElEQVQ4y4WT6WKCMBCENwkBwn2oFKvWqr3L+79es4EkQIDOH2d3Pxk2ABiJlB8JCXjqw4LikHVGLHTm3nM3UeVN5690GBBN0GwyV/3kkrUQR+WeKnREeKpzaXWd77CmJiXGfPIEI4V4yQ9TIW/ntlcMBe731Vts9w5TWG8F5j3mQI4hvrKpdGeYA7CX9qAcl650gVJartxRuhyHVghF8idQAIbFLvCLu28BsQEC6aKtCK6Pyb3JT7PmbmtNH8Ny56CotD/2qOs5cJbuffxgXmCib+xddVU5RNOhkvvkhTlFehzVWCOh3++MYElOhfdovaImnRYVmqDdsuhNp1QrBBE6uGC2+3ZNjGdg5B94oD+9uyVgWT79BwAxEBTWdOu3bWBVgsn/N/AHUD9IC01Oe40AAAAASUVORK5CYII\x3d"; Editor.actualSizeLargeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAilBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////2N2iNAAAALXRSTlMA+vTcKMM96GRBHwXxi0YaX1HLrKWhiHpWEOnOr52Vb2xKSDcT19PKv5l/Ngdk8+viAAABIUlEQVQ4y4WT2XqDIBCFBxDc9yTWNEnTJN3r+79eGT4BEbXnaubMr8dBBaM450dCQp4LWFAascGIRd48eB4cNYE7f6XjgGiCFs5c+dml6CFN6j1V6IQIlHPpdV/usKcmJcV88gQTRXjLD9Mhb+fWq8YG9/uCmTCFjeeDeY85UGKIUGUuqzN42kv7oCouq9oHamlzVR1lVfpAIu1QVRiW+sAv7r4FpAYIZZVsRXB9TP5Dfpo1d1trCgzz1iiptH/sUbdz4CzN9+mLeXHn3+hdddd4RDegsrvzwZwSs2GLPRJidAqCLTlVwaMPqpYMWjTWBB2WRW86pVkhSKyDK2bdt2tmagZG4sBD/evdLQHLEvQfAOKRoLCmG1FAB6uKmby+gz+REDn7O5+EwQAAAABJRU5ErkJggg\x3d\x3d"; Editor.layersLargeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAmVBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v7///+bnZkkAAAAMnRSTlMABPr8ByiD88KsTi/rvJb272mjeUA1CuPe1M/KjVxYHxMP6KZ0S9nYzGRGGRaznpGIbzaGUf0AAAHESURBVDjLbZLZYoIwEEVDgLCjbKIgAlqXqt3m/z+uNwu1rcyDhjl3ktnYL7OY254C0VX3yWFZfzDrOClbbgKxi0YDHjwl4jbnRkXxJS/C1YP3DbBhD1n7Ex4uaAqdVDb3yJ/4J/3nJD2to/ngQz/DfUvzMp4JJ5sSCaF5oXmemgQDfDxzbi+Kq4sU+vNcuAmx94JtyOP2DD4Epz2asWSCz4Z/4fECxyNj9zC9xNLHcdPEO+awDKeSaUu0W4twZQiO2hYVisTR3RCtK/c1X6t4xMEpiGqXqVntEBLolkZZsKY4QtwH6jzq67dEHlJysB1aNOD3XT7n1UkasQN59L4yC2RELMDSeCRtz3yV22Ub3ozIUTknYx8JWqDdQxbUes98cR2kZtUSveF/bAhcedwEWmlxIkpZUy4XOCb6VBjjxHvbwo/1lBAHHi2JCr0NI570QhyHq/DhJoE2lLgyA4RVe6KmZ47O/3b86MCP0HWa73A8/C3SUc5Qc1ajt6fgpXJ+RGpMvDSchepZDOOQRcZVIKcK90x2D7etqtI+56+u6n3sPriO6nfphitR4+O2m3EbM7lh3me1FM1o+LMI887rN+s3/wZdTFlpNVJiOAAAAABJRU5ErkJggg\x3d\x3d"; Editor.closeLargeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAUVBMVEUAAAD///////////////////////////////////////////////////////////////////////////////////////////////////////8IN+deAAAAGnRSTlMAuvAIg/dDM/QlOeuFhj0S5s4vKgzjxJRQNiLSey0AAADNSURBVDjLfZLbEoMgDEQjRRRs1XqX///QNmOHJSnjPkHOGR7IEmeoGtJZstnwjqbRfIsmgEdtPCqe9Ynz7ZSc07rE2QiSc+qv8TvjRXA2PDUm3dpe82iJhOEUfxJJo3aCv+jKmRmH4lcCjCjeh9GWOdL/GZZkXH3PYYDrHBnfc4D/RVZf5sjoC1was+Y6HQxwaUxFvq/a0Pv343VCTxfBSRiB+ab3M3eiQZXmMNBJ3Y8pGRZtYQ7DgHMXJEdPLTaN/qBjzJOBc3nmNcbsA16bMR0oLqf+AAAAAElFTkSuQmCC"; -Editor.editLargeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAgMAAAAOFJJnAAAACVBMVEUAAAD///////9zeKVjAAAAAnRSTlMAgJsrThgAAABcSURBVBjThc6xDcAgDATAd8MQTEPW8TRUmYCGnzLRYyOlIV+dZFtvkICTFGqiJEzAG0/Uje9oL+e5Vu4F5yUYJxxqGKhQZ0eBvmgwYQLQaARKD1hbiPyDR0QOeAC31EyNe5X/kAAAAABJRU5ErkJggg\x3d\x3d";mxUtils.extend(Editor,mxEventSource);Editor.prototype.originalNoForeignObject=mxClient.NO_FO; +Editor.editLargeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAgMAAAAOFJJnAAAACVBMVEUAAAD///////9zeKVjAAAAAnRSTlMAgJsrThgAAABcSURBVBjThc6xDcAgDATAd8MQTEPW8TRUmYCGnzLRYyOlIV+dZFtvkICTFGqiJEzAG0/Uje9oL+e5Vu4F5yUYJxxqGKhQZ0eBvmgwYQLQaARKD1hbiPyDR0QOeAC31EyNe5X/kAAAAABJRU5ErkJggg\x3d\x3d";Editor.previousLargeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAPFBMVEUAAAD////////////////////////////////////////////////////////////////////////////YSWgTAAAAE3RSTlMA7fci493c0MW8uJ6CZks4MxQHEZL6ewAAAFZJREFUOMvdkskRgDAMA4lDwg2B7b9XOlge/KKvdsa25KFb5XlRvxXC/DNBEv8IFNjBgGdDgXtFgTyhwDXiQAUHCvwa4Uv6mR6UR+1led2mVonvl+tML45qCQNQLIx7AAAAAElFTkSuQmCC"; +Editor.nextLargeImage="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAPFBMVEUAAAD////////////////////////////////////////////////////////////////////////////YSWgTAAAAE3RSTlMA7fci493c0MW8uJ6CZks4MxQHEZL6ewAAAFRJREFUOMvd0skRgCAQBVEFwQ0V7fxzNQP6wI05v6pZ/kyj1b7FNgik2gQzzLcAwiUAigHOTwDHK4A1CmB5BJANJG1hQ9qafYcqFlZP3IFc9eVGrR+iIgkDQRUXIAAAAABJRU5ErkJggg\x3d\x3d";mxUtils.extend(Editor,mxEventSource);Editor.prototype.originalNoForeignObject=mxClient.NO_FO; Editor.prototype.transparentImage=mxClient.IS_SVG?"data:image/gif;base64,R0lGODlhMAAwAIAAAP///wAAACH5BAEAAAAALAAAAAAwADAAAAIxhI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8egpAAA7":IMAGE_PATH+"/transparent.gif";Editor.prototype.extendCanvas=!0;Editor.prototype.chromeless=!1;Editor.prototype.cancelFirst=!0;Editor.prototype.enabled=!0;Editor.prototype.filename=null;Editor.prototype.modified=!1;Editor.prototype.autosave=!0;Editor.prototype.initialTopSpacing=0;Editor.prototype.appName=document.title; -Editor.prototype.editBlankUrl=window.location.protocol+"//"+window.location.host+"/?client\x3d1";Editor.prototype.editBlankFallbackUrl=window.location.protocol+"//"+window.location.host+"/?create\x3ddrawdata\x26splash\x3d0";Editor.prototype.init=function(){};Editor.prototype.setAutosave=function(a){this.autosave=a;this.fireEvent(new mxEventObject("autosaveChanged"))}; -Editor.prototype.editAsNew=function(a,c){var f=null!=c?"\x26title\x3d"+encodeURIComponent(c):"";if("undefined"!==typeof window.postMessage&&(null==document.documentMode||10<=document.documentMode)){var d=null,b=mxUtils.bind(this,function(e){"ready"==e.data&&e.source==d&&(d.postMessage(a,"*"),mxEvent.removeListener(window,"message",b))});mxEvent.addListener(window,"message",b);d=window.open(this.editBlankUrl+f)}else window.drawdata=a,window.open(this.editBlankFallbackUrl+f)}; +Editor.prototype.editBlankUrl=window.location.protocol+"//"+window.location.host+"/?client\x3d1";Editor.prototype.editBlankFallbackUrl=window.location.protocol+"//"+window.location.host+"/?create\x3ddrawdata\x26splash\x3d0";Editor.prototype.init=function(){};Editor.prototype.setAutosave=function(a){this.autosave=a;this.fireEvent(new mxEventObject("autosaveChanged"))};Editor.prototype.getEditBlankUrl=function(a,c){return(c?this.editBlankFallbackUrl:this.editBlankUrl)+a}; +Editor.prototype.editAsNew=function(a,c){var f=null!=c?"\x26title\x3d"+encodeURIComponent(c):"";if("undefined"!==typeof window.postMessage&&(null==document.documentMode||10<=document.documentMode)){var d=null,b=mxUtils.bind(this,function(e){"ready"==e.data&&e.source==d&&(d.postMessage(a,"*"),mxEvent.removeListener(window,"message",b))});mxEvent.addListener(window,"message",b);d=window.open(this.getEditBlankUrl(f,!1))}else window.drawdata=a,window.open(this.getEditBlankUrl(f,!0))}; Editor.prototype.createGraph=function(a,c){var f=new Graph(null,c,null,null,a);f.transparentBackground=!1;return f}; Editor.prototype.resetGraph=function(){this.graph.gridEnabled=!this.chromeless||"1"==urlParams.grid;this.graph.graphHandler.guidesEnabled=!0;this.graph.setTooltips(!0);this.graph.setConnectable(!0);this.graph.foldingEnabled=!0;this.graph.scrollbars=this.graph.defaultScrollbars;this.graph.pageVisible=this.graph.defaultPageVisible;this.graph.pageBreaksVisible=this.graph.pageVisible;this.graph.preferPageSize=this.graph.pageBreaksVisible;this.graph.background=this.graph.defaultGraphBackground;this.graph.pageScale= mxGraph.prototype.pageScale;this.graph.pageFormat=mxGraph.prototype.pageFormat;this.updateGraphComponents();this.graph.view.setScale(1)}; @@ -2037,7 +2039,7 @@ d.container.focus();var u=d.fireMouseEvent;d.fireMouseEvent=function(b,a,d){b==m z="shape edgeStyle curved rounded elbow comic".split(" ");this.setDefaultStyle=function(b){var a=d.view.getState(b);if(null!=a){b=b.clone();b.style="";b=d.getCellStyle(b);var e=[],c=[],f;for(f in a.style)b[f]!=a.style[f]&&(e.push(a.style[f]),c.push(f));f=d.getModel().getStyle(a.cell);for(var g=null!=f?f.split(";"):[],k=0;kmxUtils.indexOf(z,q))&&d.setCellStyles(q,A,[k])}}}finally{d.getModel().endUpdate()}}; +l?l.split(";"):[],m=v.slice(),f=0;fmxUtils.indexOf(z,q))&&d.setCellStyles(q,A,[k])}}}finally{d.getModel().endUpdate()}}; d.addListener("cellsInserted",function(b,a){A(a.getProperty("cells"))});d.addListener("textInserted",function(b,a){A(a.getProperty("cells"),!0)});d.connectionHandler.addListener(mxEvent.CONNECT,function(b,a){var d=[a.getProperty("cell")];a.getProperty("terminalInserted")&&d.push(a.getProperty("terminal"));A(d)});this.addListener("styleChanged",mxUtils.bind(this,function(b,a){var e=a.getProperty("cells"),c=!1,f=!1;if(0this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale+0.01)/this.view.scale:(this.cumulativeZoomFactor*=this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale):0.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor= -(this.view.scale-0.01)/this.view.scale:(this.cumulativeZoomFactor/=this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale);this.cumulativeZoomFactor=Math.max(0.01,Math.min(this.view.scale*this.cumulativeZoomFactor,160)/this.view.scale);this.updateZoomTimeout=window.setTimeout(mxUtils.bind(this,function(){this.zoom(this.cumulativeZoomFactor);null!=c&&c(!1);if(null!=t&&mxUtils.hasScrollbars(a.container)){var b=mxUtils.getOffset(a.container), -d=a.container.offsetHeight/2-t.y+b.y;a.container.scrollLeft-=(a.container.offsetWidth/2-t.x+b.x)*(this.cumulativeZoomFactor-1);a.container.scrollTop-=d*(this.cumulativeZoomFactor-1)}this.cumulativeZoomFactor=1;this.updateZoomTimeout=null}),20)};mxEvent.addMouseWheelListener(mxUtils.bind(this,function(b,d){if((mxEvent.isAltDown(b)||mxEvent.isControlDown(b)&&!mxClient.IS_MAC||a.panningHandler.isActive())&&(null==this.dialogs||0==this.dialogs.length))for(var e=mxEvent.getSource(b);null!=e;){if(e==a.container){t= -new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b));a.lazyZoom(d);mxEvent.consume(b);break}e=e.parentNode}}))};EditorUi.prototype.addChromelessClickHandler=function(){var a=urlParams.highlight;null!=a&&0this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale+0.01)/this.view.scale:(this.cumulativeZoomFactor*= +this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale):0.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale-0.01)/this.view.scale:(this.cumulativeZoomFactor/=this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale);this.cumulativeZoomFactor=Math.max(0.01,Math.min(this.view.scale*this.cumulativeZoomFactor,160)/this.view.scale);this.updateZoomTimeout= +window.setTimeout(mxUtils.bind(this,function(){this.zoom(this.cumulativeZoomFactor);null!=c&&c(!1);if(null!=x&&mxUtils.hasScrollbars(a.container)){var b=mxUtils.getOffset(a.container),d=a.container.offsetHeight/2-x.y+b.y;a.container.scrollLeft-=(a.container.offsetWidth/2-x.x+b.x)*(this.cumulativeZoomFactor-1);a.container.scrollTop-=d*(this.cumulativeZoomFactor-1)}this.cumulativeZoomFactor=1;this.updateZoomTimeout=null}),20)};mxEvent.addMouseWheelListener(mxUtils.bind(this,function(b,d){if((mxEvent.isAltDown(b)|| +mxEvent.isControlDown(b)&&!mxClient.IS_MAC||a.panningHandler.isActive())&&(null==this.dialogs||0==this.dialogs.length))for(var e=mxEvent.getSource(b);null!=e;){if(e==a.container){x=new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b));a.lazyZoom(d);mxEvent.consume(b);break}e=e.parentNode}}))}; +EditorUi.prototype.createTemporaryGraph=function(a){a=new Graph(document.createElement("div"),null,null,a);a.resetViewOnRootChange=!1;a.setConnectable(!1);a.gridEnabled=!1;a.autoScroll=!1;a.setTooltips(!1);a.setEnabled(!1);a.container.style.visibility="hidden";a.container.style.position="absolute";a.container.style.overflow="hidden";a.container.style.height="1px";a.container.style.width="1px";return a}; +EditorUi.prototype.addChromelessClickHandler=function(){var a=urlParams.highlight;null!=a&&0mxUtils.indexOf(n,a))d=null!=r?r[a]:null,mxLog.debug('\x3cshape style\x3d"shape\x3d'+b+a+c+'" w\x3d"'+Math.round(e*p)+'" h\x3d"'+Math.round(f*p)+'"'+(null!=d?' tags\x3d"'+d+'"':"")+"/\x3e")}),!0)}}var d=Sidebar.prototype.searchEntries;Sidebar.prototype.searchEntries=function(b,a,c,f,n){var m=f;this.editorUi.enableLogging&&!this.editorUi.isOffline()&&0==c&&((new Image).src= -"log?severity\x3dCONFIG\x26msg\x3dshapesearch:"+encodeURIComponent(b)+"\x26v\x3d"+encodeURIComponent(EditorUi.VERSION));f=mxUtils.bind(this,function(d,f,l,n){!this.editorUi.isOffline()&&d.length<=a/4?(l=c-Math.ceil((f-a/4)/a),mxUtils.get(ICONSEARCH_PATH+"?q\x3d"+encodeURIComponent(b)+"\x26l\x3d1\x26p\x3d"+l+"\x26c\x3d"+a,mxUtils.bind(this,function(b){b=b.getXml().getElementsByTagName("icon");for(var e=0;e=n.getChildCount(n.getRoot())?q.setAttribute("disabled","disabled"):(q.setAttribute("checked","checked"),q.defaultChecked=!0);k.appendChild(q);mxUtils.write(k,mxResources.get("layers"));var t=document.createElement("input");t.setAttribute("type","checkbox");t.style.marginLeft="10px";k.appendChild(t); +mxUtils.write(k,mxResources.get("zoom"));t.setAttribute("checked","checked");t.defaultChecked=!0;var u=document.createElement("input");u.setAttribute("type","checkbox");u.style.marginLeft="10px";null!=a.pages&&1a.maxImageSize||l>a.maxImageSize){var C=Math.min(1,Math.min(a.maxImageSize/Math.max(1,f)),a.maxImageSize/Math.max(1,l));f*=C;l*=C}r>A?(A=Math.round(A*u/r),r=u):(r=Math.round(r*v/A),A=v);var O=document.createElement("div"); O.setAttribute("draggable","true");O.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";O.style.position="relative";O.style.cursor="move";mxUtils.setPrefixedStyle(O.style,"transition","transform .1s ease-in-out");if(null!=b){var Q=document.createElement("img");Q.setAttribute("src",D.convert(b));Q.style.width=r+"px";Q.style.height=A+"px";Q.style.margin="10px";Q.style.paddingBottom=Math.floor((v-A)/2)+"px";Q.style.paddingLeft=Math.floor((u-r)/2)+"px";O.appendChild(Q)}else if(null!=n){var M=a.stringToCells(a.editor.graph.decompress(n.xml)); -0z?y-1:y,0,m.splice(z,1)[0]),s.insertBefore(s.children[z],s.children[y])):(m.push(m.splice(z,1)[0]),s.appendChild(s.children[z]));else if(0mxUtils.indexOf(this.settings.customLibraries,a)&&this.settings.customLibraries.push(a);mxSettings.save()},removeCustomLibrary:function(a){mxSettings.load();mxUtils.remove(a,this.settings.customLibraries);mxSettings.save()},getCustomLibraries:function(){return this.settings.customLibraries},getPlugins:function(){return this.settings.plugins},setPlugins:function(a){this.settings.plugins=a},getFormatWidth:function(){return parseInt(this.settings.formatWidth)},setFormatWidth:function(a){this.settings.formatWidth= a},getCurrentEdgeStyle:function(){return this.settings.currentEdgeStyle},setCurrentEdgeStyle:function(a){this.settings.currentEdgeStyle=a},getCurrentVertexStyle:function(){return this.settings.currentVertexStyle},setCurrentVertexStyle:function(a){this.settings.currentVertexStyle=a},isCreateTarget:function(){return this.settings.createTarget},setCreateTarget:function(a){this.settings.createTarget=a},getPageFormat:function(){return this.settings.pageFormat},setPageFormat:function(a){this.settings.pageFormat= @@ -7514,10 +7520,10 @@ null,this.offset=a.offset||0,this.expiresAt=m.Util.parseDate(a.expires)||Date.no d,e;e=[];b=c=0;for(d=a.length;0<=d?d>c:c>d;b=0<=d?++c:--c)e.push(String.fromCharCode(a[b]));return e.join("")},m.Util.btoa=function(a){var b,c,d=Buffer,e,f,g;g=[];c=e=0;for(f=a.length;0<=f?f>e:e>f;c=0<=f?++e:--e)g.push(a.charCodeAt(c));return b=new d(g),b.toString("base64")}):!function(){var a,b;return b=function(a,b,c){var d,e;e=3-b;a<<=8*e;for(d=3;d>=e;)c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(a>>6*d&63)),d-=1;for(d=b;3>d;)c.push("\x3d"),d+=1;return null}, a=function(a,b,c){var d;d=4-b;a<<=6*d;for(b=2;b>=d;)c.push(String.fromCharCode(a>>8*b&255)),b-=1;return null},m.Util.btoa=function(a){var c,d,e,f,g,k;f=[];e=g=d=c=0;for(k=a.length;0<=k?k>g:g>k;e=0<=k?++g:--g)c=c<<8|a.charCodeAt(e),d+=1,3===d&&(b(c,d,f),c=d=0);return 0k:k>l)&&(d=b.charAt(f),"\x3d"!==d);f=0<=l?++k:--k)c=c<<6|"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".indexOf(d), e+=1,4===e&&(a(c,e,g),c=e=0);return 0a;g=++a)c.push(909522486^b[g]);return c}(),l=function(){var a,c;c=[];for(g=a=0;16>a;g=++a)c.push(1549556828^b[g]);return c}(),f=d(k.concat(a),64+c),d(l.concat(f),84)},d=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,t,u,r,s,v,z;a[b>>2]|=1<<31-((3&b)<<3);a[(b+8>> -6<<4)+15]=b<<3;s=Array(80);c=1732584193;e=4023233417;g=2562383102;l=271733878;n=3285377520;q=0;for(u=a.length;u>q;){d=c;f=e;k=g;m=l;p=n;for(t=z=0;80>z;t=++z)16>t?s[t]=0|a[q+t<<2>>2]:(r=(0|s[t-3<<2>>2])^(0|s[t-8<<2>>2])^(0|s[t-14<<2>>2])^(0|s[t-16<<2>>2]),s[t]=r<<1|r>>>31),v=((c<<5|c>>>27)+n|0)+s[t<<2>>2]|0,v=20>t?v+((e&g|~e&l)+1518500249|0)|0:40>t?v+((e^g^l)+1859775393|0)|0:60>t?v+((e&g|e&l|g&l)-1894007588)|0:v+((e^g^l)-899497514|0)|0,n=l,l=g,g=e<<30|e>>>2,e=c,c=v;c=d+c|0;e=f+e|0;g=k+g|0;l=m+l|0; -n=p+n|0;q=q+16|0}return[c,e,g,l,n]},e=function(a,b){var c,d,e,k,l,m,n,p,q,t,u,r,s,v,z,y,A,B,E,Y,aa,X,R,ga,ca,$,fa,ia,ba,ka;a[b>>2]|=1<<31-((3&b)<<3);a[(b+8>>6<<4)+15]=b<<3;ba=Array(80);c=f[0];e=f[1];l=f[2];p=f[3];t=f[4];r=f[5];v=f[6];Y=f[7];X=0;for(ga=a.length;ga>X;){d=c;k=e;m=l;q=p;u=t;s=r;z=v;aa=Y;for(R=ka=0;64>ka;R=++ka)16>R?ia=ba[R]=0|a[X+R<<2>>2]:(A=0|ba[R-15<<2>>2],y=(A<<25|A>>>7)^(A<<14|A>>>18)^A>>>3,E=0|ba[R-2<<2>>2],B=(E<<15|E>>>17)^(E<<13|E>>>19)^E>>>10,ia=ba[R]=(y+(0|ba[R-7<<2>>2])|0)+ -(B+(0|ba[R-16<<2>>2])|0)|0),n=t&r^~t&v,ca=c&e^c&l^e&l,$=(c<<30|c>>>2)^(c<<19|c>>>13)^(c<<10|c>>>22),fa=(t<<26|t>>>6)^(t<<21|t>>>11)^(t<<7|t>>>25),n=((Y+fa|0)+(n+ia|0)|0)+(0|g[R<<2>>2])|0,ca=$+ca|0,Y=v,v=r,r=t,t=p+n|0,p=l,l=e,e=c,c=n+ca|0;c=d+c|0;e=k+e|0;l=m+l|0;p=q+p|0;t=u+t|0;r=s+r|0;v=z+v|0;Y=aa+Y|0;X+=16}return[c,e,l,p,t,r,v,Y]},f=[],g=[],function(){var a,b,c,d,e,k,l;b=function(a){return 4294967296*(a-Math.floor(a))|0};e=2;l=[];for(c=k=0;64>k;c=++k){for(;;){d=!0;for(a=2;e>=a*a;){if(0===e%a){d= +c.update(a),c.digest("base64")},m.Util.sha256=function(a){var c;return c=b.createHash("sha256"),c.update(a),c.digest("base64")})}catch(n){}return c=function(a,b,c,e){var f,g,k,l;return 16a;g=++a)c.push(909522486^b[g]);return c}(),l=function(){var a,c;c=[];for(g=a=0;16>a;g=++a)c.push(1549556828^b[g]);return c}(),f=d(k.concat(a),64+c),d(l.concat(f),84)},d=function(a,b){var c,d,e,f,g,k,l,m,n,p,q,t,r,u,s,v,z;a[b>>2]|=1<<31-((3&b)<<3);a[(b+8>> +6<<4)+15]=b<<3;s=Array(80);c=1732584193;e=4023233417;g=2562383102;l=271733878;n=3285377520;q=0;for(r=a.length;r>q;){d=c;f=e;k=g;m=l;p=n;for(t=z=0;80>z;t=++z)16>t?s[t]=0|a[q+t<<2>>2]:(u=(0|s[t-3<<2>>2])^(0|s[t-8<<2>>2])^(0|s[t-14<<2>>2])^(0|s[t-16<<2>>2]),s[t]=u<<1|u>>>31),v=((c<<5|c>>>27)+n|0)+s[t<<2>>2]|0,v=20>t?v+((e&g|~e&l)+1518500249|0)|0:40>t?v+((e^g^l)+1859775393|0)|0:60>t?v+((e&g|e&l|g&l)-1894007588)|0:v+((e^g^l)-899497514|0)|0,n=l,l=g,g=e<<30|e>>>2,e=c,c=v;c=d+c|0;e=f+e|0;g=k+g|0;l=m+l|0; +n=p+n|0;q=q+16|0}return[c,e,g,l,n]},e=function(a,b){var c,d,e,k,l,m,n,p,q,t,r,u,s,v,z,y,A,B,E,Y,aa,X,R,ga,ca,$,fa,ia,ba,ka;a[b>>2]|=1<<31-((3&b)<<3);a[(b+8>>6<<4)+15]=b<<3;ba=Array(80);c=f[0];e=f[1];l=f[2];p=f[3];t=f[4];u=f[5];v=f[6];Y=f[7];X=0;for(ga=a.length;ga>X;){d=c;k=e;m=l;q=p;r=t;s=u;z=v;aa=Y;for(R=ka=0;64>ka;R=++ka)16>R?ia=ba[R]=0|a[X+R<<2>>2]:(A=0|ba[R-15<<2>>2],y=(A<<25|A>>>7)^(A<<14|A>>>18)^A>>>3,E=0|ba[R-2<<2>>2],B=(E<<15|E>>>17)^(E<<13|E>>>19)^E>>>10,ia=ba[R]=(y+(0|ba[R-7<<2>>2])|0)+ +(B+(0|ba[R-16<<2>>2])|0)|0),n=t&u^~t&v,ca=c&e^c&l^e&l,$=(c<<30|c>>>2)^(c<<19|c>>>13)^(c<<10|c>>>22),fa=(t<<26|t>>>6)^(t<<21|t>>>11)^(t<<7|t>>>25),n=((Y+fa|0)+(n+ia|0)|0)+(0|g[R<<2>>2])|0,ca=$+ca|0,Y=v,v=u,u=t,t=p+n|0,p=l,l=e,e=c,c=n+ca|0;c=d+c|0;e=k+e|0;l=m+l|0;p=q+p|0;t=r+t|0;u=s+u|0;v=z+v|0;Y=aa+Y|0;X+=16}return[c,e,l,p,t,u,v,Y]},f=[],g=[],function(){var a,b,c,d,e,k,l;b=function(a){return 4294967296*(a-Math.floor(a))|0};e=2;l=[];for(c=k=0;64>k;c=++k){for(;;){d=!0;for(a=2;e>=a*a;){if(0===e%a){d= !1;break}a+=1}if(d)break;e+=1}8>c&&(f[c]=b(Math.pow(e,0.5)));g[c]=b(Math.pow(e,1/3));l.push(e+=1)}return l}(),a=function(a){var b,c,d,e,f;e="";b=0;for(d=4*a.length;d>b;)c=b,f=(a[c>>2]>>(3-(3&c)<<3)&255)<<16,c+=1,f|=(a[c>>2]>>(3-(3&c)<<3)&255)<<8,c+=1,f|=a[c>>2]>>(3-(3&c)<<3)&255,e+=l[f>>18&63],e+=l[f>>12&63],b+=1,e+=b>=d?"\x3d":l[f>>6&63],b+=1,e+=b>=d?"\x3d":l[63&f],b+=1;return e},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k=function(a){var b,c,d,e;b=[];c=d=0;for(e=a.length;0<= e?e>d:d>e;c=0<=e?++d:--d)b[c>>2]|=(a.charCodeAt(c)&255)<<(3-(3&c)<<3);return b}}(),m.Util.Oauth=function(){function a(b){this._loaded=this._appHash=this._error=this._tokenKid=this._tokenKey=this._token=this._authCode=this._stateParam=this._secret=this._id=null;this.setCredentials(b)}return a.prototype.setCredentials=function(a){if(a.key)this._id=a.key;else{if(!a.token)throw Error("No API key supplied");this._id=null}return this._secret=a.secret||null,this._appHash=null,this._error=null,this._loaded= !0,this.reset(),a.token?(this._token=a.token,a.tokenKey&&(this._tokenKey=a.tokenKey,this._tokenKid=a.tokenKid)):a.oauthCode?this._authCode=a.oauthCode:a.oauthStateParam&&(this._stateParam=a.oauthStateParam),this},a.prototype.credentials=function(){var a;return a={},this._id&&(a.key=this._id),this._secret&&(a.secret=this._secret),null!==this._token?(a.token=this._token,this._tokenKey&&(a.tokenKey=this._tokenKey,a.tokenKid=this._tokenKid)):null!==this._authCode?a.oauthCode=this._authCode:null!==this._stateParam&& @@ -7579,11 +7585,11 @@ DriveRealtime.prototype.updateStatusInterval=2E4;DriveRealtime.prototype.diagram DriveRealtime.prototype.ignorePageFormatChanged=!1;DriveRealtime.prototype.ignoreScaleChanged=!1;DriveRealtime.prototype.ignoreBackgroundColorChanged=!1;DriveRealtime.prototype.ignoreShadowVisibleChanged=!1;DriveRealtime.prototype.ignoreBackgroundImageChanged=!1;DriveRealtime.prototype.ignoreMathEnabledChanged=!1;DriveRealtime.prototype.getDiagramMap=function(){return null!=this.ui.currentPage?this.ui.currentPage.mapping.diagramMap:this.diagramMap}; DriveRealtime.prototype.getCurrentPage=function(){return null!=this.page?this.page:this.ui.currentPage}; DriveRealtime.prototype.start=function(){"1"==urlParams.reset&&(this.root.clear(),this.log("reset realtime"));var a=this.createPrefix();this.model.prefix=a+"-";this.ui.editor.resetGraph();this.diagrams=this.root.get(this.diagramsKey);a=!1;null==this.diagrams&&(this.diagrams=this.rtModel.createList(),this.root.set(this.diagramsKey,this.diagrams),a=!0,this.log("realtime model initialized"));var c=!1;if(""!=this.file.getData()){this.ui.fileNode=null;this.ui.pages=null;this.ui.setFileData(this.file.getData()); -this.log("xml converted");if(this.root.has("cells")&&a)try{(new Image).src="log?severity\x3dCONFIG\x26msg\x3dconverted-oldrt\x26v\x3d"+encodeURIComponent(EditorUi.VERSION)+"\x26ts\x3d"+(new Date).getTime()}catch(f){}if(null!=this.ui.pages)for(a=0;athis.diagrams.length&&"1"!=urlParams.pages)this.ui.fileNode=null,this.ui.pages=null,0==this.diagrams.length? -(this.diagramMap=this.rtModel.createMap(),this.diagrams.push(this.diagramMap)):this.diagramMap=this.diagrams.get(0),this.page=new DiagramPage(document.createElement("diagram")),this.page.mapping=new RealtimeMapping(this,this.diagramMap,this.page),this.page.mapping.init(),this.ui.editor.fireEvent(new mxEventObject("resetGraphView"));else{this.ui.fileNode=mxUtils.createXmlDocument().createElement("mxfile");this.ui.pages=[];0==this.diagrams.length&&this.diagrams.push(this.rtModel.createMap());Math.max(0, -Math.min(this.diagrams.length-1,urlParams.page||0));for(a=0;athis.diagrams.length&&"1"!=urlParams.pages)this.ui.fileNode=null,this.ui.pages= +null,0==this.diagrams.length?(this.diagramMap=this.rtModel.createMap(),this.diagrams.push(this.diagramMap)):this.diagramMap=this.diagrams.get(0),this.page=new DiagramPage(document.createElement("diagram")),this.page.mapping=new RealtimeMapping(this,this.diagramMap,this.page),this.page.mapping.init(),this.ui.editor.fireEvent(new mxEventObject("resetGraphView"));else{this.ui.fileNode=mxUtils.createXmlDocument().createElement("mxfile");this.ui.pages=[];0==this.diagrams.length&&this.diagrams.push(this.rtModel.createMap()); +Math.max(0,Math.min(this.diagrams.length-1,urlParams.page||0));for(a=0;a/g,"\x26gt;").replace(/"/g,"\x26quot;").replace(/'/g,"\x26#039;")};App=function(a,c,f){EditorUi.call(this,a,c,null!=f?f:"1"==urlParams.lightbox);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\x3d": -(new Image).src=mxGraph.prototype.warningImage.src;window.openWindow=mxUtils.bind(this,function(a,b,c){var f=window.open(a);null==f||void 0===f?this.showDialog((new PopupDialog(this,a,b,c)).container,320,140,!0,!0):null!=b&&b()});this.updateUi();a=document.createElement("canvas");this.canvasSupported=!(!a.getContext||!a.getContext("2d"));window.showOpenAlert=mxUtils.bind(this,function(a){null!=window.openFile&&window.openFile.cancel(!0);this.handleError(a)});this.isOffline()||(EditDataDialog.placeholderHelpLink= -"https://support.draw.io/questions/9338941");this.addFileDropHandler([document]);if(null!=App.DrawPlugins){for(a=0;anavigator.userAgent.indexOf("MSIE")||9<=document.documentMode;if(!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&&(App.mode=App.getStoredMode())),null!=window.mxscript&&("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&&(window.DriveClient=null):window.DriveClient=null),"function"===typeof window.DropboxClient&&("0"!=urlParams.db&&isSvgBrowser&&(null==document.documentMode||9navigator.userAgent.indexOf("MSIE")||10<=document.documentMode)?App.mode==App.MODE_ONEDRIVE||null!=window.location.hash&&"#W"==window.location.hash.substring(0,2)?mxscript("https://js.live.net/v5.0/wl.js"):"0"==urlParams.chrome&&(window.OneDriveClient=null):window.OneDriveClient= null),"undefined"==typeof JSON&&mxscript("js/json/json2.min.js")),"0"!=urlParams.plugins&&"1"!=urlParams.offline)){var a=mxSettings.getPlugins(),c=urlParams.p;if(null!=c||null!=a&&0a.indexOf("DocumentClosedError")){c=a;var l=new Image,n=0<=a.indexOf("NetworkError")||0<=a.indexOf("SecurityError")||0<=a.indexOf("NS_ERROR_FAILURE")||0<=a.indexOf("out of memory")?"CONFIG":"SEVERE";l.src="log?severity\x3d"+n+"\x26v\x3d"+encodeURIComponent(EditorUi.VERSION)+"\x26msg\x3dclientError:"+encodeURIComponent(a)+":url:"+ -encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(e)+(null!=f?":colno:"+encodeURIComponent(f):"")+(null!=k&&null!=k.stack?"\x26stack\x3d"+encodeURIComponent(k.stack):"")}}catch(m){}};"atlas"==uiTheme&&mxClient.link("stylesheet","styles/atlas.css");if(null!=window.mxscript){"0"!=urlParams.chrome&&mxscript("js/jscolor/jscolor.js");if("1"==urlParams.offline){mxscript("js/shapes.min.js");var f=document.createElement("iframe");f.setAttribute("width","0");f.setAttribute("height","0"); -f.setAttribute("src","offline.html");document.body.appendChild(f);mxStencilRegistry.stencilSet={};mxStencilRegistry.getStencil=function(a){return mxStencilRegistry.stencils[a]};mxStencilRegistry.loadStencilSet=function(a,b,c){a=a.substring(a.indexOf("/")+1);a="mxgraph."+a.substring(0,a.length-4).replace(/\//g,".");a=mxStencilRegistry.stencilSet[a];null!=a&&mxStencilRegistry.parseStencilSet(a,b,!1)};for(f=mxUtils.load("stencils.xml").getXml().documentElement.firstChild;null!=f;)"shapes"==f.nodeName&& +App.main=function(a){var c=null;window.onerror=function(a,b,e,f,k){try{if(!(a==c||null!=a&&null!=b&&(-1!=a.indexOf("Script error")||-1!=a.indexOf("extension")))&&null!=a&&0>a.indexOf("DocumentClosedError")){c=a;var l=new Image,n=0<=a.indexOf("NetworkError")||0<=a.indexOf("SecurityError")||0<=a.indexOf("NS_ERROR_FAILURE")||0<=a.indexOf("out of memory")?"CONFIG":"SEVERE";l.src="https://log.draw.io/log?severity\x3d"+n+"\x26v\x3d"+encodeURIComponent(EditorUi.VERSION)+"\x26msg\x3dclientError:"+encodeURIComponent(a)+ +":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(e)+(null!=f?":colno:"+encodeURIComponent(f):"")+(null!=k&&null!=k.stack?"\x26stack\x3d"+encodeURIComponent(k.stack):"")}}catch(m){}};"atlas"==uiTheme&&mxClient.link("stylesheet","styles/atlas.css");if(null!=window.mxscript){"0"!=urlParams.chrome&&mxscript("js/jscolor/jscolor.js");if("1"==urlParams.offline){mxscript("js/shapes.min.js");var f=document.createElement("iframe");f.setAttribute("width","0");f.setAttribute("height", +"0");f.setAttribute("src","offline.html");document.body.appendChild(f);mxStencilRegistry.stencilSet={};mxStencilRegistry.getStencil=function(a){return mxStencilRegistry.stencils[a]};mxStencilRegistry.loadStencilSet=function(a,b,c){a=a.substring(a.indexOf("/")+1);a="mxgraph."+a.substring(0,a.length-4).replace(/\//g,".");a=mxStencilRegistry.stencilSet[a];null!=a&&mxStencilRegistry.parseStencilSet(a,b,!1)};for(f=mxUtils.load("stencils.xml").getXml().documentElement.firstChild;null!=f;)"shapes"==f.nodeName&& null!=f.getAttribute("name")&&(mxStencilRegistry.stencilSet[f.getAttribute("name").toLowerCase()]=f,mxStencilRegistry.parseStencilSet(f)),f=f.nextSibling}"0"!=urlParams.picker&&(!mxClient.IS_QUIRKS&&8!=document.documentMode)&&mxscript(document.location.protocol+"//www.google.com/jsapi?autoload\x3d%7B%22modules%22%3A%5B%7B%22name%22%3A%22picker%22%2C%22version%22%3A%221%22%2C%22language%22%3A%22"+mxClient.language+"%22%7D%5D%7D");"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\x3dDrawGapiClientCallback")}"0"!=urlParams.math&&Editor.initMath();mxResources.loadDefaultBundle=!1;f=mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,mxLanguage);mxUtils.getAll("1"!=urlParams.dev?[f]:[f,STYLE_PATH+"/default.xml"], function(c){mxResources.parse(c[0].getText());1screen.width?0:mxSettings.getFormatWidth();"1"!=urlParams.embed&&(App.prototype.menubarHeight=60);Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null; App.prototype.init=function(){EditorUi.prototype.init.apply(this,arguments);if(this.isLocalFileSave()){var a=this;ExportDialog.saveLocalFile=function(b,c,d){var e="text/xml";"svg"===d&&(e="image/svg+xml");a.saveLocalFile(b,c,e)};ExportDialog.saveRequest=function(b,c,d,e){a.saveRequest(b,c,d,e)}}this.defaultLibraryName=mxResources.get("untitledLibrary");this.descriptorChangedListener=mxUtils.bind(this,this.descriptorChanged);if("1"!=urlParams.embed){this.bg=this.createBackground();document.body.appendChild(this.bg); @@ -7835,11 +7843,11 @@ App.prototype.crc32=function(a){this.crcTable=this.crcTable||this.createCrcTable App.prototype.getThumbnail=function(a,c){var f=!1;try{if(null==this.thumbImageCache&&(this.thumbImageCache={}),this.isExportToCanvas())this.exportToCanvas(mxUtils.bind(this,function(a){c(a)}),a,this.thumbImageCache,"#ffffff",function(){c()}),f=!0;else if(this.canvasSupported&&null!=this.getCurrentFile()){var d=this.editor.graph,b=document.createElement("canvas"),e=d.getGraphBounds(),g=a/e.width,g=Math.min(1,Math.min(3*a/(4*e.height),g)),k=Math.floor(e.x),l=Math.floor(e.y);b.setAttribute("width",Math.ceil(g* (e.width+4)));b.setAttribute("height",Math.ceil(g*(e.height+4)));var n=b.getContext("2d");n.scale(g,g);n.translate(-k,-l);var m=d.background;if(null==m||""==m||m==mxConstants.NONE)m="#ffffff";n.save();n.fillStyle=m;n.fillRect(k,l,Math.ceil(e.width+4),Math.ceil(e.height+4));n.restore();var p=new mxJsCanvas(b),r=new mxAsyncCanvas(this.thumbImageCache);p.images=this.thumbImageCache.images;var s=new mxImageExport;s.drawShape=function(a,b){a.shape instanceof mxShape&&a.shape.checkBounds()&&(b.save(),b.translate(0.5, 0.5),a.shape.paint(b),b.translate(-0.5,-0.5),b.restore())};s.drawText=function(a,b){};s.drawState(d.getView().getState(d.model.root),r);r.finish(function(){s.drawState(d.getView().getState(d.model.root),p);c(b)});f=!0}}catch(q){}return f};App.prototype.getPublicUrl=function(a,c){c(null)}; -App.prototype.createFileData=function(a,c,f,d,b,e,g,k,l){b=null!=b?b:!1;l=null!=l?l:!0;var n=null,m=null;null==f||f.getMode()==App.MODE_DEVICE||f.getMode()==App.MODE_BROWSER?n="_blank":m=n=d;if(null==a)return"";var p=a;if("mxfile"!=p.nodeName.toLowerCase()){var r=this.editor.graph.zapGremlins(mxUtils.getXml(a)),p=this.editor.graph.compress(r);if(this.editor.graph.decompress(p)!=r)return r;r=a.ownerDocument.createElement("diagram");mxUtils.setTextContent(r,p);p=a.ownerDocument.createElement("mxfile"); -p.appendChild(r)}p.setAttribute("userAgent",navigator.userAgent);p.setAttribute("version",EditorUi.VERSION);p.setAttribute("editor","www.draw.io");a=null!=f?f.getMode():this.mode;null!=a&&p.setAttribute("type",a);a=mxUtils.getXml(p);if(!e&&!b&&(g||null!=f&&/(\.html)$/i.test(f.getTitle())))a=this.getHtml2(p,c,f.getTitle(),n,m,l);else if(e||!b&&null!=f&&/(\.svg)$/i.test(f.getTitle())){if(null!=f&&(f.getMode()==App.MODE_DEVICE||f.getMode()==App.MODE_BROWSER))d=null;a=this.getEmbeddedSvg(a,c,d,null,k, -l,m)}return a}; +App.prototype.createFileData=function(a,c,f,d,b,e,g,k,l){c=null!=c?c:this.editor.graph;b=null!=b?b:!1;l=null!=l?l:!0;var n=null,m=null;null==f||f.getMode()==App.MODE_DEVICE||f.getMode()==App.MODE_BROWSER?n="_blank":m=n=d;if(null==a)return"";var p=a;if("mxfile"!=p.nodeName.toLowerCase()){var r=c.zapGremlins(mxUtils.getXml(a)),p=c.compress(r);if(c.decompress(p)!=r)return r;r=a.ownerDocument.createElement("diagram");mxUtils.setTextContent(r,p);p=a.ownerDocument.createElement("mxfile");p.appendChild(r)}p.setAttribute("userAgent", +navigator.userAgent);p.setAttribute("version",EditorUi.VERSION);p.setAttribute("editor","www.draw.io");a=null!=f?f.getMode():this.mode;null!=a&&p.setAttribute("type",a);a=mxUtils.getXml(p);if(!e&&!b&&(g||null!=f&&/(\.html)$/i.test(f.getTitle())))a=this.getHtml2(p,c,null!=f?f.getTitle():null,n,m,l);else if(e||!b&&null!=f&&/(\.svg)$/i.test(f.getTitle())){if(null!=f&&(f.getMode()==App.MODE_DEVICE||f.getMode()==App.MODE_BROWSER))d=null;a=this.getEmbeddedSvg(a,c,d,null,k,l,m)}return a}; App.prototype.getFileData=function(a,c,f,d,b,e){b=null!=b?b:!0;e=null!=e?e:!1;var g=this.editor.getGraphXml(b);if(b&&null!=this.fileNode&&null!=this.currentPage){var k=this.editor.graph.compress(this.editor.graph.zapGremlins(mxUtils.getXml(g)));mxUtils.setTextContent(this.currentPage.node,k);g=this.fileNode.cloneNode(!1);if(e)g.appendChild(this.currentPage.node);else for(e=0;e=window.location.hash.length)&&null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("loading")))try{var c=mxUtils.bind(this,function(){this.spinner.spin(document.body, mxResources.get("reconnecting"))&&(window.location.search=this.getSearch(["url"]))});a(decodeURIComponent(urlParams.url),mxUtils.bind(this,function(a){this.spinner.stop();if(null!=a&&0=window.location.hash.length)&&null!=e&&0=window.location.hash.length)&&(null!=urlParams.state&&null!=this.stateArg&&"open"==this.stateArg.action)&&null!=this.stateArg.ids)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? -(this.setMode(App.MODE_GOOGLE),this.actions.get("new").funct()):b()}}}; +mxUtils.bind(this,function(){this.spinner.stop();this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"),c)}))}catch(f){this.spinner.stop();try{(new Image).src="https://log.draw.io/log?v\x3d"+encodeURIComponent(EditorUi.VERSION)+"\x26msg\x3derrorLoadingFile:url:"+encodeURIComponent(window.location.href)+(null!=f&&null!=f.message?":err:"+encodeURIComponent(f.message):"")+(null!=f&&null!=f.stack?"\x26stack\x3d"+encodeURIComponent(f.stack):"")}catch(d){}this.handleError(f, +mxResources.get("errorLoadingFile"),c)}else if(null==this.getCurrentFile()){var b=mxUtils.bind(this,function(){if("1"==urlParams.client&&(null==window.location.hash||0==window.location.hash.length)){var a=window.opener||window.parent;a!=window&&this.installMessageHandler(mxUtils.bind(this,function(b,c){if(c.source==a){"data:image/png;base64,"==b.substring(0,22)&&(b=this.extractGraphModelFromPng(b));var d=urlParams.title,d=null!=d?decodeURIComponent(d):this.defaultFilename;this.fileLoaded(new LocalFile(this, +b,d));this.getCurrentFile().setModified(!this.editor.chromeless);this.setMode(null)}}))}else if(null==this.dialog)if("1"==urlParams.demo){var b=Editor.useLocalStorage;this.createFile(this.defaultFilename,null,null,App.MODE_DEVICE);this.setMode(null);Editor.useLocalStorage=b}else{b=!1;try{b=null!=window.opener&&null!=window.opener.openFile}catch(c){}if(b)this.spinner.spin(document.body,mxResources.get("loading"));else if(b=this.getDiagramId(),"0"==urlParams.splash&&(null==b||0==b.length)){var d=this.getDraft(), +e=null!=d?d.data:this.getFileData(),b=Editor.useLocalStorage;this.createFile(this.defaultFilename,e,null,App.MODE_DEVICE);this.setMode(null);Editor.useLocalStorage=b;null!=d&&(b=this.getCurrentFile(),null!=b&&b.addUnsavedStatus())}else this.loadFile(this.getDiagramId())}});null!=this.drive&&this.defineCustomObjects();var e=decodeURIComponent(urlParams.create||"");if((null==window.location.hash||1>=window.location.hash.length)&&null!=e&&0=window.location.hash.length)&&(null!=urlParams.state&&null!=this.stateArg&&"open"==this.stateArg.action)&&null!=this.stateArg.ids)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?(this.setMode(App.MODE_GOOGLE),this.actions.get("new").funct()):b()}}}; App.prototype.showSplash=function(a){var c=mxUtils.bind(this,function(){var a=new SplashDialog(this);this.showDialog(a.container,340,mxClient.IS_CHROMEAPP?180:260,!0,!0,mxUtils.bind(this,function(a){a&&!mxClient.IS_CHROMEAPP&&(a=Editor.useLocalStorage,this.createFile(this.defaultFilename,null,null,App.MODE_DEVICE),this.setMode(null),Editor.useLocalStorage=a)}));a.init()});this.editor.chromeless?this.handleError({message:mxResources.get("noFileSelected")},mxResources.get("errorLoadingFile"),mxUtils.bind(this, function(){this.showSplash()})):null==this.mode||a?(a=new StorageDialog(this,mxUtils.bind(this,function(){this.hideDialog();c()})),this.showDialog(a.container,isLocalStorage&&"1"==urlParams.browser?480:380,300,!0,!1),a.init()):null==urlParams.create&&c()}; App.prototype.addLanguageMenu=function(a){var c=null;if((!this.isOfflineApp()||mxClient.IS_CHROMEAPP)&&null!=this.menus.get("language"))c=document.createElement("div"),c.setAttribute("title",mxResources.get("language")),c.className="geIcon geSprite geSprite-globe",c.style.position="absolute",c.style.cursor="pointer",c.style.bottom="20px",c.style.right="20px",mxEvent.addListener(c,"click",mxUtils.bind(this,function(a){this.editor.graph.popupMenuHandler.hideMenu();var d=new mxPopupMenu(this.menus.get("language").funct); @@ -7958,11 +7966,11 @@ g.length&&(d="https://www.draw.io/embed2.js?s\x3d"+g.join(";"))}null!=b&&(b=b.re (null==b?null!=f?"\x3ctitle\x3e"+mxUtils.htmlEntities(f)+"\x3c/title\x3e\n":"":"\x3ctitle\x3eDraw.io Diagram\x3c/title\x3e\n")+(null!=b?'\x3cmeta http-equiv\x3d"refresh" content\x3d"0;URL\x3d\''+b+"'\"/\x3e\n":"")+'\x3cmeta charset\x3d"utf-8"/\x3e\n\x3c/head\x3e\n\x3cbody\x3e\n\x3cdiv class\x3d"mxgraph" style\x3d"max-width:100%;border:1px solid transparent;" data-mxgraph\x3d"'+mxUtils.htmlEntities(JSON.stringify(a))+'"\x3e\x3c/div\x3e\n'+(null==b?'\x3cscript type\x3d"text/javascript" src\x3d"'+d+ '"\x3e\x3c/script\x3e':'\x3ca style\x3d"position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href\x3d"'+b+'" target\x3d"_blank"\x3e\x3cimg border\x3d"0" src\x3d"https://www.draw.io/images/drawlogo128.png"/\x3e\x3c/a\x3e')+"\n\x3c/body\x3e\n\x3c/html\x3e\n"}; App.prototype.saveData=function(a,c,f,d){this.isLocalFileSave()?this.saveLocalFile(f,a,d):this.saveRequest(f,a,c,mxUtils.bind(this,function(a,d){var g="undefined"===typeof pako?"\x26xml\x3d"+encodeURIComponent(f):"\x26data\x3d"+encodeURIComponent(this.editor.graph.compress(f));return new mxXmlRequest(SAVE_URL,"format\x3d"+c+(null!=a?"\x26filename\x3d"+encodeURIComponent(a):"")+g)}))}; -App.prototype.downloadFile=function(a,c,f,d){try{var b=this.getCurrentFile();d=null!=d?d:this.editor.graph.isSelectionEmpty();var e=null!=b&&null!=b.getTitle()?b.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(e)||/(\.html)$/i.test(e)||/(\.svg)$/i.test(e))e=e.substring(0,e.lastIndexOf("."));var g=e+"."+a;if("xml"==a){var k='\x3c?xml version\x3d"1.0" encoding\x3d"UTF-8"?\x3e\n'+(c?mxUtils.getXml(this.editor.getGraphXml(d)):this.getFileData(!0,null,null,null,d));this.saveData(g,a,k,"text/xml")}else if("html"== -a)k=this.getHtml2(this.editor.getGraphXml(d),this.editor.graph,e,null,null,d),this.saveData(g,a,k,"text/html");else if(("svg"==a||"xmlsvg"==a)&&this.spinner.spin(document.body,mxResources.get("export"))){var l=null,n=mxUtils.bind(this,function(a){a.length<=MAX_REQUEST_SIZE?this.saveData(g,"svg",a,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(l)}))});if("svg"==a){var m=this.editor.graph.background; -m==mxConstants.NONE&&(m=null);var p=this.editor.graph.getSvg(m,null,null,!1,null,d);f&&this.editor.addSvgShadow(p);this.convertImages(p,mxUtils.bind(this,mxUtils.bind(this,function(a){this.spinner.stop();n('\x3c?xml version\x3d"1.0" encoding\x3d"UTF-8"?\x3e\n\x3c!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"\x3e\n'+mxUtils.getXml(a))})))}else g=e+".svg",l=this.getFileData(!1,!0,null,mxUtils.bind(this,function(a){this.spinner.stop();n(a)}),d)}else{var r= -this.editor.graph.getGraphBounds(),k=this.getFileData(!0,null,null,null,d,"xmlpng"!=a),s="";if(r.width*r.height<=MAX_AREA&&k.length<=MAX_REQUEST_SIZE){var q="0";if("xmlpng"==a&&(q="1",a="png",g=e+"."+a,null!=this.pages&&null!=this.currentPage))for(c=0;c=a.pages.length,c=document.createElement("div");c.style.padding="6px";var e=document.createElement("input");e.style.marginRight="8px";e.setAttribute("type","checkbox");d.isSelectionEmpty()&&e.setAttribute("disabled","disabled");c.appendChild(e);mxUtils.write(c, -mxResources.get("selectionOnly"));var g=document.createElement("input");g.setAttribute("type","checkbox");g.setAttribute("checked","checked");g.defaultChecked=!0;g.style.marginRight="8px";g.style.marginTop="16px";b&&(mxUtils.br(c),c.appendChild(g),mxUtils.write(c,mxResources.get("compressed")));c=new CustomDialog(a,c,mxUtils.bind(this,function(){a.downloadFile("xml",!g.checked,null,!e.checked)}),null,mxResources.get("export"));a.showDialog(c.container,300,b?120:80,!0,!0)}),c);a.isOffline()||(b.addSeparator(c), -this.addMenuItem(b,"export",c).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...")})));this.editorUi.actions.addAction("chatWindowTitle...",mxUtils.bind(this.editorUi,this.editorUi.toggleChat));this.put("importFrom",new Menu(function(b,c){function l(b){if(b&&Graph.fileSupport&&!mxClient.IS_IE&&!mxClient.IS_IE11){var c=document.createElement("input");c.setAttribute("type","file");mxEvent.addListener(c,"change",function(){null!=c.files&&a.importFiles(c.files,null,null,a.maxImageSize)}); -c.click()}else{window.openNew=!1;window.openKey="import";var e=Editor.useLocalStorage;Editor.useLocalStorage=!b;window.openFile=new OpenFile(function(b){a.hideDialog(b)});window.openFile.setConsumer(function(b,c){d.setSelectionCells(a.importXml(b))});a.showDialog((new OpenDialog(a)).container,360,220,!0,!0,function(){window.openFile=null});var g=a.dialog,k=g.close;a.dialog.close=function(b){Editor.useLocalStorage=e;k.apply(g,arguments);b&&(null==a.getCurrentFile()&&"1"!=urlParams.embed)&&a.showSplash()}}} -function m(b){b.pickFile(function(c){if(a.spinner.spin(document.body,mxResources.get("loading")))if(b==a.dropbox){var d=/(\.png)$/i.test(c)?"image/png":"text/xml";a.loadUrl(c,function(a){n(a,d,c)},function(b){a.handleError(b,null!=b?mxResources.get("errorLoadingFile"):null)},"image/png"==d)}else b.getFile(c,function(a){var b=/(\.png)$/i.test(a.getTitle())?"image/png":"text/xml";n(a.getData(),b,a.getTitle())},function(b){a.handleError(b,null!=b?mxResources.get("errorLoadingFile"):null)},!0)},!0)}var n= -mxUtils.bind(this,function(b,c,e){"image/png"==c?a.loadImage(b,mxUtils.bind(this,function(g){a.resizeImage(g,b,mxUtils.bind(this,function(g,k,l){g=Math.min(1,Math.min(a.maxImageSize/k,a.maxImageSize/l));a.importFile(b,c,0,0,Math.round(k*g),Math.round(l*g),e,function(b){a.spinner.stop();d.setSelectionCells(b)})}),!0)})):a.importFile(b,c,0,0,0,0,e,function(b){a.spinner.stop();d.setSelectionCells(b)})});null!=a.drive?b.addItem(mxResources.get("googleDrive")+"...",null,function(){m(a.drive)},c):e&&b.addItem(mxResources.get("googleDrive")+ -" ("+mxResources.get("loading")+"...)",null,function(){},c,null,!1);null!=a.dropbox?b.addItem(mxResources.get("dropbox")+"...",null,function(){m(a.dropbox)},c):g&&b.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},c,null,!1);null!=a.oneDrive?b.addItem(mxResources.get("oneDrive")+"...",null,function(){m(a.oneDrive)},c):k&&b.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},c,null,!1);b.addSeparator(c);isLocalStorage&& -"0"!=urlParams.browser&&b.addItem(mxResources.get("browser")+"...",null,function(){l(!1)},c);mxClient.IS_IOS||b.addItem(mxResources.get("device")+"...",null,function(){l(!0)},c);a.isOffline()||(b.addSeparator(c),b.addItem(mxResources.get("url")+"...",null,function(){var b=new FilenameDialog(a,"",mxResources.get("import"),function(b){if(null!=b&&0b;b++)a.appendChild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-");c=0.01+100*(c/d);d=Math.max(1-(1-a)/b*(100-c),a);var f=l.substring(0,l.indexOf("Animation")).toLowerCase();return m[e]||(p.insertRule("@"+ (f&&"-"+f+"-"||"")+"keyframes "+e+"{0%{opacity:"+d+"}"+c+"%{opacity:"+a+"}"+(c+0.01)+"%{opacity:1}"+(c+b)%100+"%{opacity:"+a+"}100%{opacity:"+d+"}}",p.cssRules.length),m[e]=1),e}function d(a,b){var c,d,e=a.style;b=b.charAt(0).toUpperCase()+b.slice(1);for(d=0;d>1,filter:n}),c("fill",{color:"string"==typeof d.color?d.color:d.color[a%d.color.length],opacity:d.opacity}),c("stroke",{opacity:0}))))}var k,l=d.length+d.width,n=2*l;k=2*-(d.width+d.length)+"px";var m=e(f(),{position:"absolute",top:k,left:k});if(d.shadow)for(k=1;k<=d.lines;k++)g(k,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius\x3d2,makeshadow\x3d1,shadowopacity\x3d.3)");for(k=1;k<=d.lines;k++)g(k);return b(a,m)};g.prototype.opacity=function(a,b,c,d){a=a.firstChild;d=d.shadow&& -d.lines||0;a&&b+d>1)+"px"})}for(var k, n=0,m=(f.lines-1)*(1-f.direction)/2;n]/g,E={"\n":"%0a","\f":"%0c","\r":"%0d",'"':"%22","'":"%27","(":"%28",")":"%29","*":"%2a", -"\x3c":"%3c","\x3e":"%3e"},C=/^(?:([^:/?# ]+):)?/,F=/^(?:https?|mailto|data)$/i;m=function(){var a={};return function R(b,c,d,g,n){b=D(b);var m=f[b];if(!m||"object"!==typeof m)c.length=0;else{for(var q=m.cssPropBits,p=q&80,x=q&1536,G=NaN,C=0,s=0;C=A)r=q&1?r:"";else if(F=r.charCodeAt(1),H=r.charCodeAt(2),E=48<=F&&57>=F,y=48<=H&&57>=H,43===A&&(E||46===F&&y))r=q&1?(E?"":"0")+r.substring(1):"";else if(45===A&&(E||46===F&&y))r=q&4?(E?"-":"-0")+r.substring(1):q&1?"0":"";else if(46===A&&E)r=q&1?"0"+r:"";else if('url("'===r.substring(0,5))r= -d&&q&16?e(t(k(g,c[C].substring(5,r.length-2)),b,d)):"";else if("("===r.charAt(r.length-1))a:{Q=c;ea=C;r=1;W=ea+1;for(A=Q.length;Wg&&" "===b[l-1]&&--l;f.startAtrule&&f.startAtrule(b[k].toLowerCase(),b.slice(g,l));d="{"===b[d]?c(b,d,e,f):d+1;f.endAtrule&&f.endAtrule()}return d}function c(b,f,g,k){++f;for(k.startBlock&&k.startBlock();f]/g,E={"\n":"%0a","\f":"%0c","\r":"%0d",'"':"%22","'":"%27","(":"%28",")":"%29","*":"%2a", +"\x3c":"%3c","\x3e":"%3e"},C=/^(?:([^:/?# ]+):)?/,F=/^(?:https?|mailto|data)$/i;m=function(){var a={};return function R(b,c,d,g,n){b=D(b);var m=f[b];if(!m||"object"!==typeof m)c.length=0;else{for(var q=m.cssPropBits,p=q&80,G=q&1536,x=NaN,C=0,r=0;C=F)s=q&1?s:"";else if(A=s.charCodeAt(1),E=s.charCodeAt(2),J=48<=A&&57>=A,y=48<=E&&57>=E,43===F&&(J||46===A&&y))s=q&1?(J?"":"0")+s.substring(1):"";else if(45===F&&(J||46===A&&y))s=q&4?(J?"-":"-0")+s.substring(1):q&1?"0":"";else if(46===F&&J)s=q&1?"0"+s:"";else if('url("'===s.substring(0,5))s= +d&&q&16?e(t(k(g,c[C].substring(5,s.length-2)),b,d)):"";else if("("===s.charAt(s.length-1))a:{Q=c;ea=C;s=1;W=ea+1;for(F=Q.length;Wg&&" "===b[l-1]&&--l;f.startAtrule&&f.startAtrule(b[k].toLowerCase(),b.slice(g,l));d="{"===b[d]?c(b,d,e,f):d+1;f.endAtrule&&f.endAtrule()}return d}function c(b,f,g,k){++f;for(k.startBlock&&k.startBlock();fn)return n=~n,n===k?n+1:n;var m=a[n];if("{"!==m)return n===k?n+1:n;c=n+1;n>k&&" "===a[n-1]&&--n;for(g.startRuleset&&g.startRuleset(a.slice(k,n));cm)m=~m;else{for(var q=[],p=0,t=b;t])/g;f=a+"";if(ha)f=f.split(g);else{for(var k=[],l=0,n;(n=g.exec(f))!==c;)k.push(f.substring(l,n.index)),k.push(n[0]),l=n.index+n[0].length;k.push(f.substring(l));f=k}p(b,f,0,{r:d,C:d},e)}}function q(a,b,c,d,e){return function(){p(a,b,c,d,e)}}function p(a,c,d,f,g){try{a.H&&0==d&&a.H(g);for(var k,l,n,m=c.length;d])/g;f=a+"";if(ha)f=f.split(g);else{for(var k=[],l=0,n;(n=g.exec(f))!==c;)k.push(f.substring(l,n.index)),k.push(n[0]),l=n.index+n[0].length;k.push(f.substring(l));f=k}p(b,f,0,{r:d,C:d},e)}}function q(a,b,c,d,e){return function(){p(a,b,c,d,e)}}function p(a,c,d,f,g){try{a.H&&0==d&&a.H(g);for(var k,l,n,m=c.length;dc)){for(f=g.length;--f>c;){var k=g[f].v;e.f[k]&e.c.OPTIONAL_ENDTAG||b.push("\x3c/",k,"\x3e")}c/g,U=/\"/g,Q=/^\s*([-.:\w]+)(?:\s*(=)\s*((")[^"]*("|$)|(')[^']*('|$)|(?=[a-z][-\w]*\s*=)|[^"'\s]*))?/i,ha=3==="a,b".split(/(,)/).length,ea=e.c.CDATA|e.c.RCDATA,W={},ga={},ka=/^(?:https?|mailto|data)$/i,ca={};ca.pa=ca.escapeAttrib=k;ca.ra=ca.makeHtmlSanitizer=r;ca.sa=ca.makeSaxParser=m;ca.ta=ca.makeTagPolicy=aa;ca.wa=ca.normalizeRCData=l;ca.xa= ca.sanitize=function(a,b,c,d){return V(a,aa(b,c,d))};ca.ya=ca.sanitizeAttribs=T;ca.za=ca.sanitizeWithPolicy=V;ca.Ba=ca.unescapeEntities=g;return ca}(x);g=e.sanitize;"undefined"!==typeof window&&(window.html=e,window.html_sanitize=g)})();var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d",encode:function(a,b){var c="",d,e,f,g,k,l,n=0;for(null!=b&&b||(a=Base64._utf8_encode(a));n>2,d=(d&3)<<4|e>>4,k=(e&15)<<2|f>>6,l=f&63,isNaN(e)?k=l=64:isNaN(f)&&(l=64),c=c+this._keyStr.charAt(g)+this._keyStr.charAt(d)+this._keyStr.charAt(k)+this._keyStr.charAt(l);return c},decode:function(a,b){b=null!=b?b:!1;var c="",d,e,f,g,k,l=0;for(a= a.replace(/[^A-Za-z0-9\+\/\=]/g,"");l>4,e=(e&15)<<4|g>>2,f=(g&3)<<6|k,c+=String.fromCharCode(d),64!=g&&(c+=String.fromCharCode(e)),64!=k&&(c+=String.fromCharCode(f));b||(c=Base64._utf8_decode(c));return c},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;cd?b+=String.fromCharCode(d): (127d?b+=String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){for(var b="",c=0,d=c1=c2=0;cd?(b+=String.fromCharCode(d),c++):191d?(c2=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|c2&63),c+=2):(c2=a.charCodeAt(c+1),c3=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63),c+=3);return b}};!function(a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pako=a()}(function(){return function b(c,d,e){function f(k,n){if(!d[k]){if(!c[k]){var m="function"==typeof require&&require;if(!n&&m)return m(k,!0);if(g)return g(k,!0);m=Error("Cannot find module '"+k+"'");throw m.code="MODULE_NOT_FOUND",m;}m=d[k]={exports:{}}; -c[k][0].call(m.exports,function(b){var d=c[k][1][b];return f(d?d:b)},m,m.exports,b,c,d,e)}return d[k].exports}for(var g="function"==typeof require&&require,k=0;kb.windowBits&&(b.windowBits+=16);this.err=0;this.msg= -"";this.ended=!1;this.chunks=[];this.strm=new m;this.strm.avail_out=0;var c=g.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(c!==s)throw Error(n[c]);if(b.header&&g.deflateSetHeader(this.strm,b.header),b.dictionary){var d;if(d="string"==typeof b.dictionary?l.string2buf(b.dictionary):"[object ArrayBuffer]"===p.call(b.dictionary)?new Uint8Array(b.dictionary):b.dictionary,c=g.deflateSetDictionary(this.strm,d),c!==s)throw Error(n[c]);this._dict_set=!0}}function f(b,c){var d= -new e(c);if(d.push(b,!0),d.err)throw d.msg;return d.result}var g=b("./zlib/deflate"),k=b("./utils/common"),l=b("./utils/strings"),n=b("./zlib/messages"),m=b("./zlib/zstream"),p=Object.prototype.toString,s=0,r=-1,q=0,t=8;e.prototype.push=function(b,c){var d,e,f=this.strm,n=this.options.chunkSize;if(this.ended)return!1;e=c===~~c?c:!0===c?4:0;"string"==typeof b?f.input=l.string2buf(b):"[object ArrayBuffer]"===p.call(b)?f.input=new Uint8Array(b):f.input=b;f.next_in=0;f.avail_in=f.input.length;do{if(0=== -f.avail_out&&(f.output=new k.Buf8(n),f.next_out=0,f.avail_out=n),d=g.deflate(f,e),1!==d&&d!==s)return this.onEnd(d),this.ended=!0,!1;0!==f.avail_out&&(0!==f.avail_in||4!==e&&2!==e)||("string"===this.options.to?this.onData(l.buf2binstring(k.shrinkBuf(f.output,f.next_out))):this.onData(k.shrinkBuf(f.output,f.next_out)))}while((0b.windowBits&&(b.windowBits+=16);this.err=0;this.msg= +"";this.ended=!1;this.chunks=[];this.strm=new m;this.strm.avail_out=0;var c=g.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(c!==r)throw Error(n[c]);if(b.header&&g.deflateSetHeader(this.strm,b.header),b.dictionary){var d;if(d="string"==typeof b.dictionary?l.string2buf(b.dictionary):"[object ArrayBuffer]"===p.call(b.dictionary)?new Uint8Array(b.dictionary):b.dictionary,c=g.deflateSetDictionary(this.strm,d),c!==r)throw Error(n[c]);this._dict_set=!0}}function f(b,c){var d= +new e(c);if(d.push(b,!0),d.err)throw d.msg;return d.result}var g=b("./zlib/deflate"),k=b("./utils/common"),l=b("./utils/strings"),n=b("./zlib/messages"),m=b("./zlib/zstream"),p=Object.prototype.toString,r=0,s=-1,q=0,t=8;e.prototype.push=function(b,c){var d,e,f=this.strm,n=this.options.chunkSize;if(this.ended)return!1;e=c===~~c?c:!0===c?4:0;"string"==typeof b?f.input=l.string2buf(b):"[object ArrayBuffer]"===p.call(b)?f.input=new Uint8Array(b):f.input=b;f.next_in=0;f.avail_in=f.input.length;do{if(0=== +f.avail_out&&(f.output=new k.Buf8(n),f.next_out=0,f.avail_out=n),d=g.deflate(f,e),1!==d&&d!==r)return this.onEnd(d),this.ended=!0,!1;0!==f.avail_out&&(0!==f.avail_in||4!==e&&2!==e)||("string"===this.options.to?this.onData(l.buf2binstring(k.shrinkBuf(f.output,f.next_out))):this.onData(k.shrinkBuf(f.output,f.next_out)))}while((0c.windowBits&&(c.windowBits=-c.windowBits,0===c.windowBits&&(c.windowBits=-15));!(0<=c.windowBits&&16>c.windowBits)||b&&b.windowBits||(c.windowBits+=32);15c.windowBits&&0===(15&c.windowBits)&&(c.windowBits|=15);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new p;this.strm.avail_out=0;b=g.inflateInit2(this.strm,c.windowBits);if(b!==n.Z_OK)throw Error(m[b]); -this.header=new s;g.inflateGetHeader(this.strm,this.header)}function f(b,c){var d=new e(c);if(d.push(b,!0),d.err)throw d.msg;return d.result}var g=b("./zlib/inflate"),k=b("./utils/common"),l=b("./utils/strings"),n=b("./zlib/constants"),m=b("./zlib/messages"),p=b("./zlib/zstream"),s=b("./zlib/gzheader"),r=Object.prototype.toString;e.prototype.push=function(b,c){var d,e,f,m,p,s,y=this.strm,E=this.options.chunkSize,C=this.options.dictionary,F=!1;if(this.ended)return!1;e=c===~~c?c:!0===c?n.Z_FINISH:n.Z_NO_FLUSH; -"string"==typeof b?y.input=l.binstring2buf(b):"[object ArrayBuffer]"===r.call(b)?y.input=new Uint8Array(b):y.input=b;y.next_in=0;y.avail_in=y.input.length;do{if(0===y.avail_out&&(y.output=new k.Buf8(E),y.next_out=0,y.avail_out=E),d=g.inflate(y,n.Z_NO_FLUSH),d===n.Z_NEED_DICT&&C&&(s="string"==typeof C?l.string2buf(C):"[object ArrayBuffer]"===r.call(C)?new Uint8Array(C):C,d=g.inflateSetDictionary(this.strm,s)),d===n.Z_BUF_ERROR&&!0===F&&(d=n.Z_OK,F=!1),d!==n.Z_STREAM_END&&d!==n.Z_OK)return this.onEnd(d), +this.header=new r;g.inflateGetHeader(this.strm,this.header)}function f(b,c){var d=new e(c);if(d.push(b,!0),d.err)throw d.msg;return d.result}var g=b("./zlib/inflate"),k=b("./utils/common"),l=b("./utils/strings"),n=b("./zlib/constants"),m=b("./zlib/messages"),p=b("./zlib/zstream"),r=b("./zlib/gzheader"),s=Object.prototype.toString;e.prototype.push=function(b,c){var d,e,f,m,p,r,y=this.strm,E=this.options.chunkSize,C=this.options.dictionary,F=!1;if(this.ended)return!1;e=c===~~c?c:!0===c?n.Z_FINISH:n.Z_NO_FLUSH; +"string"==typeof b?y.input=l.binstring2buf(b):"[object ArrayBuffer]"===s.call(b)?y.input=new Uint8Array(b):y.input=b;y.next_in=0;y.avail_in=y.input.length;do{if(0===y.avail_out&&(y.output=new k.Buf8(E),y.next_out=0,y.avail_out=E),d=g.inflate(y,n.Z_NO_FLUSH),d===n.Z_NEED_DICT&&C&&(r="string"==typeof C?l.string2buf(C):"[object ArrayBuffer]"===s.call(C)?new Uint8Array(C):C,d=g.inflateSetDictionary(this.strm,r)),d===n.Z_BUF_ERROR&&!0===F&&(d=n.Z_OK,F=!1),d!==n.Z_STREAM_END&&d!==n.Z_OK)return this.onEnd(d), this.ended=!0,!1;y.next_out&&(0!==y.avail_out&&d!==n.Z_STREAM_END&&(0!==y.avail_in||e!==n.Z_FINISH&&e!==n.Z_SYNC_FLUSH)||("string"===this.options.to?(f=l.utf8border(y.output,y.next_out),m=y.next_out-f,p=l.buf2string(y.output,f),y.next_out=m,y.avail_out=E-m,m&&k.arraySet(y.output,y.output,f,m,0),this.onData(p)):this.onData(k.shrinkBuf(y.output,y.next_out))));0===y.avail_in&&0===y.avail_out&&(F=!0)}while((0>>6,c[k++]=128|63&d):65536>d?(c[k++]=224|d>>>12,c[k++]=128|d>>>6 2===k?31:3===k?15:7;1g?n[f++]=g:(g-=65536,n[f++]=55296|g>>10&1023,n[f++]=56320|1023&g)}return e(n,f)};d.utf8border=function(b,c){var d;c=c||b.length;c>b.length&&(c=b.length);for(d=c-1;0<=d&&128===(192&b[d]);)d--;return 0>d?c:0===d?c:d+m[b[d]]>c?d:c}},{"./common":3}],5:[function(b,c,d){c.exports=function(b,c,d,k){var l=65535&b|0;b=b>>>16&65535|0;for(var n=0;0!==d;){n=2E3d;d++){b=d; for(var e=0;8>e;e++)b=1&b?3988292384^b>>>1:b>>>1;c[d]=b}return c}();c.exports=function(b,c,d,l){d=l+d;for(b^=-1;l>>8^e[255&(b^c[l])];return b^-1}},{}],8:[function(b,c,d){function e(b,c){return b.msg=C[c],c}function f(b){for(var c=b.length;0<=--c;)b[c]=0}function g(b){var c=b.state,d=c.pending;d>b.avail_out&&(d=b.avail_out);0!==d&&(v.arraySet(b.output,c.pending_buf,c.pending_out,d,b.next_out),b.next_out+=d,c.pending_out+=d,b.total_out+=d,b.avail_out-=d,c.pending-=d,0===c.pending&&(c.pending_out= -0))}function k(b,c){D._tr_flush_block(b,0<=b.block_start?b.block_start:-1,b.strstart-b.block_start,c);b.block_start=b.strstart;g(b.strm)}function l(b,c){b.pending_buf[b.pending++]=c}function n(b,c){b.pending_buf[b.pending++]=c>>>8&255;b.pending_buf[b.pending++]=255&c}function m(b,c){var d,e,f=b.max_chain_length,g=b.strstart,k=b.prev_length,l=b.nice_match,n=b.strstart>b.w_size-S?b.strstart-(b.w_size-S):0,m=b.window,q=b.w_mask,p=b.prev,t=b.strstart+O,x=m[g+k-1],u=m[g+k];b.prev_length>=b.good_match&& -(f>>=2);l>b.lookahead&&(l=b.lookahead);do if(d=c,m[d+k]===u&&m[d+k-1]===x&&m[d]===m[g]&&m[++d]===m[g+1]){g+=2;d++;do;while(m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&gk){if(b.match_start=c,k=e,e>=l)break;x=m[g+k-1];u=m[g+k]}}while((c=p[c&q])>n&&0!==--f);return k<=b.lookahead?k:b.lookahead}function p(b){var c,d,e,f,g=b.w_size;do{if(f=b.window_size-b.lookahead-b.strstart,b.strstart>= +0))}function k(b,c){D._tr_flush_block(b,0<=b.block_start?b.block_start:-1,b.strstart-b.block_start,c);b.block_start=b.strstart;g(b.strm)}function l(b,c){b.pending_buf[b.pending++]=c}function n(b,c){b.pending_buf[b.pending++]=c>>>8&255;b.pending_buf[b.pending++]=255&c}function m(b,c){var d,e,f=b.max_chain_length,g=b.strstart,k=b.prev_length,l=b.nice_match,n=b.strstart>b.w_size-S?b.strstart-(b.w_size-S):0,m=b.window,q=b.w_mask,p=b.prev,t=b.strstart+O,G=m[g+k-1],C=m[g+k];b.prev_length>=b.good_match&& +(f>>=2);l>b.lookahead&&(l=b.lookahead);do if(d=c,m[d+k]===C&&m[d+k-1]===G&&m[d]===m[g]&&m[++d]===m[g+1]){g+=2;d++;do;while(m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&gk){if(b.match_start=c,k=e,e>=l)break;G=m[g+k-1];C=m[g+k]}}while((c=p[c&q])>n&&0!==--f);return k<=b.lookahead?k:b.lookahead}function p(b){var c,d,e,f,g=b.w_size;do{if(f=b.window_size-b.lookahead-b.strstart,b.strstart>= g+(g-S)){v.arraySet(b.window,b.window,g,g,0);b.match_start-=g;b.strstart-=g;b.block_start-=g;c=d=b.hash_size;do e=b.head[--c],b.head[c]=e>=g?e-g:0;while(--d);c=d=g;do e=b.prev[--c],b.prev[c]=e>=g?e-g:0;while(--d);f+=g}if(0===b.strm.avail_in)break;c=b.strm;e=b.window;var k=b.strstart+b.lookahead,l=c.avail_in;if(d=(l>f&&(l=f),0===l?0:(c.avail_in-=l,v.arraySet(e,c.input,c.next_in,l,k),1===c.state.wrap?c.adler=y(c.adler,e,l,k):2===c.state.wrap&&(c.adler=E(c.adler,e,l,k)),c.next_in+=l,c.total_in+=l,l)), -b.lookahead+=d,b.lookahead+b.insert>=I){f=b.strstart-b.insert;b.ins_h=b.window[f];for(b.ins_h=(b.ins_h<=I&&(b.ins_h=(b.ins_h<< +b.lookahead+=d,b.lookahead+b.insert>=I){f=b.strstart-b.insert;b.ins_h=b.window[f];for(b.ins_h=(b.ins_h<=I&&(b.ins_h=(b.ins_h<< b.hash_shift^b.window[b.strstart+I-1])&b.hash_mask,d=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),0!==d&&b.strstart-d<=b.w_size-S&&(b.match_length=m(b,d)),b.match_length>=I)if(e=D._tr_tally(b,b.strstart-b.match_start,b.match_length-I),b.lookahead-=b.match_length,b.match_length<=b.max_lazy_match&&b.lookahead>=I){b.match_length--;do b.strstart++,b.ins_h=(b.ins_h<=I&&(b.ins_h=(b.ins_h<=b.match_length&&(b.strategy===R||b.match_length===I&&4096= I&&b.match_length<=b.prev_length){f=b.strstart+b.lookahead-I;e=D._tr_tally(b,b.strstart-1-b.prev_match,b.prev_length-I);b.lookahead-=b.prev_length-1;b.prev_length-=2;do++b.strstart<=f&&(b.ins_h=(b.ins_h<c.wrap&&(c.wrap=-c.wrap),c.status=c.wrap?da:ba,b.adler=2===c.wrap?0:1,c.last_flush=F,D._tr_init(c),H):e(b,L)}function u(b){var c=x(b);c===H&&(b=b.state,b.window_size=2*b.w_size,f(b.head),b.max_lazy_match=z[b.level].max_lazy,b.good_match=z[b.level].good_length,b.nice_match=z[b.level].nice_length,b.max_chain_length=z[b.level].max_chain,b.strstart=0,b.block_start= +this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0;this.dyn_ltree=new v.Buf16(2*Z);this.dyn_dtree=new v.Buf16(2*(2*N+1));this.bl_tree=new v.Buf16(2*(2*H+1));f(this.dyn_ltree);f(this.dyn_dtree);f(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new v.Buf16(M+1);this.heap=new v.Buf16(2*Y+1);f(this.heap);this.heap_max=this.heap_len=0;this.depth=new v.Buf16(2*Y+1);f(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len=this.d_buf=this.last_lit= +this.lit_bufsize=this.l_buf=0}function x(b){var c;return b&&b.state?(b.total_in=b.total_out=0,b.data_type=aa,c=b.state,c.pending=0,c.pending_out=0,0>c.wrap&&(c.wrap=-c.wrap),c.status=c.wrap?da:ba,b.adler=2===c.wrap?0:1,c.last_flush=F,D._tr_init(c),J):e(b,L)}function u(b){var c=x(b);c===J&&(b=b.state,b.window_size=2*b.w_size,f(b.head),b.max_lazy_match=z[b.level].max_lazy,b.good_match=z[b.level].good_length,b.nice_match=z[b.level].nice_length,b.max_chain_length=z[b.level].max_chain,b.strstart=0,b.block_start= 0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=I-1,b.match_available=0,b.ins_h=0);return c}function A(b,c,d,f,g,k){if(!b)return L;var l=1;if(c===K&&(c=6),0>f?(l=0,f=-f):15g||g>B||d!==V||8>f||15c||9k||k>T)return e(b,L);8===f&&(f=9);var n=new t;return b.state=n,n.strm=b,n.wrap=l,n.gzhead=null,n.w_bits=f,n.w_size=1<b.pending_buf_size-5&&(d=b.pending_buf_size-5);;){if(1>=b.lookahead){if(p(b),0===b.lookahead&&c===F)return P;if(0===b.lookahead)break}b.strstart+=b.lookahead;b.lookahead=0;var e=b.block_start+d;if((0===b.strstart||b.strstart>=e)&&(b.lookahead=b.strstart-e,b.strstart=e,k(b,!1),0===b.strm.avail_out)||b.strstart-b.block_start>=b.w_size-S&&(k(b,!1),0===b.strm.avail_out))return P}return b.insert=0,c===G?(k(b,!0),0===b.strm.avail_out?$:U):(b.strstart>b.block_start&&k(b,!1),P)}),new q(4,4,8, -4,s),new q(4,5,16,8,s),new q(4,6,32,32,s),new q(4,4,16,16,r),new q(8,16,32,32,r),new q(8,16,128,128,r),new q(8,32,128,256,r),new q(32,128,258,1024,r),new q(32,258,258,4096,r)];d.deflateInit=function(b,c){return A(b,c,V,15,8,0)};d.deflateInit2=A;d.deflateReset=u;d.deflateResetKeep=x;d.deflateSetHeader=function(b,c){return b&&b.state?2!==b.state.wrap?L:(b.state.gzhead=c,H):L};d.deflate=function(b,c){var d,m,q,t;if(!b||!b.state||5c)return b?e(b,L):L;if(m=b.state,!b.output||!b.input&&0!==b.avail_in|| +4,r),new q(4,5,16,8,r),new q(4,6,32,32,r),new q(4,4,16,16,s),new q(8,16,32,32,s),new q(8,16,128,128,s),new q(8,32,128,256,s),new q(32,128,258,1024,s),new q(32,258,258,4096,s)];d.deflateInit=function(b,c){return A(b,c,V,15,8,0)};d.deflateInit2=A;d.deflateReset=u;d.deflateResetKeep=x;d.deflateSetHeader=function(b,c){return b&&b.state?2!==b.state.wrap?L:(b.state.gzhead=c,J):L};d.deflate=function(b,c){var d,m,q,t;if(!b||!b.state||5c)return b?e(b,L):L;if(m=b.state,!b.output||!b.input&&0!==b.avail_in|| 666===m.status&&c!==G)return e(b,0===b.avail_out?-5:L);if(m.strm=b,d=m.last_flush,m.last_flush=c,m.status===da)2===m.wrap?(b.adler=0,l(m,31),l(m,139),l(m,8),m.gzhead?(l(m,(m.gzhead.text?1:0)+(m.gzhead.hcrc?2:0)+(m.gzhead.extra?4:0)+(m.gzhead.name?8:0)+(m.gzhead.comment?16:0)),l(m,255&m.gzhead.time),l(m,m.gzhead.time>>8&255),l(m,m.gzhead.time>>16&255),l(m,m.gzhead.time>>24&255),l(m,9===m.level?2:2<=m.strategy||2>m.level?4:0),l(m,255&m.gzhead.os),m.gzhead.extra&&m.gzhead.extra.length&&(l(m,255&m.gzhead.extra.length), l(m,m.gzhead.extra.length>>8&255)),m.gzhead.hcrc&&(b.adler=E(b.adler,m.pending_buf,m.pending,0)),m.gzindex=0,m.status=69):(l(m,0),l(m,0),l(m,0),l(m,0),l(m,0),l(m,9===m.level?2:2<=m.strategy||2>m.level?4:0),l(m,3),m.status=ba)):(q=V+(m.w_bits-8<<4)<<8,t=-1,t=2<=m.strategy||2>m.level?0:6>m.level?1:6===m.level?2:3,q|=t<<6,0!==m.strstart&&(q|=32),m.status=ba,n(m,q+(31-q%31)),0!==m.strstart&&(n(m,b.adler>>>16),n(m,65535&b.adler)),b.adler=1);if(69===m.status)if(m.gzhead.extra){for(q=m.pending;m.gzindex< (65535&m.gzhead.extra.length)&&(m.pending!==m.pending_buf_size||(m.gzhead.hcrc&&m.pending>q&&(b.adler=E(b.adler,m.pending_buf,m.pending-q,q)),g(b),q=m.pending,m.pending!==m.pending_buf_size));)l(m,255&m.gzhead.extra[m.gzindex]),m.gzindex++;m.gzhead.hcrc&&m.pending>q&&(b.adler=E(b.adler,m.pending_buf,m.pending-q,q));m.gzindex===m.gzhead.extra.length&&(m.gzindex=0,m.status=73)}else m.status=73;if(73===m.status)if(m.gzhead.name){q=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending> q&&(b.adler=E(b.adler,m.pending_buf,m.pending-q,q)),g(b),q=m.pending,m.pending===m.pending_buf_size)){t=1;break}t=m.gzindexq&&(b.adler=E(b.adler,m.pending_buf,m.pending-q,q));0===t&&(m.gzindex=0,m.status=91)}else m.status=91;if(91===m.status)if(m.gzhead.comment){q=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>q&&(b.adler=E(b.adler,m.pending_buf,m.pending-q,q)), g(b),q=m.pending,m.pending===m.pending_buf_size)){t=1;break}t=m.gzindexq&&(b.adler=E(b.adler,m.pending_buf,m.pending-q,q));0===t&&(m.status=103)}else m.status=103;if(103===m.status&&(m.gzhead.hcrc?(m.pending+2>m.pending_buf_size&&g(b),m.pending+2<=m.pending_buf_size&&(l(m,255&b.adler),l(m,b.adler>>8&255),b.adler=0,m.status=ba)):m.status=ba),0!==m.pending){if(g(b),0===b.avail_out)return m.last_flush= --1,H}else if(0===b.avail_in&&(c<<1)-(4=I&&0m.lookahead&&(m.match_length=m.lookahead)}if(m.match_length>= -I?(x=D._tr_tally(m,1,m.match_length-I),m.lookahead-=m.match_length,m.strstart+=m.match_length,m.match_length=0):(x=D._tr_tally(m,0,m.window[m.strstart]),m.lookahead--,m.strstart++),x&&(k(m,!1),0===m.strm.avail_out)){x=P;break a}}x=(m.insert=0,c===G?(k(m,!0),0===m.strm.avail_out?$:U):m.last_lit&&(k(m,!1),0===m.strm.avail_out)?P:X)}else x=z[m.level].func(m,c);if(x!==$&&x!==U||(m.status=666),x===P||x===$)return 0===b.avail_out&&(m.last_flush=-1),H;if(x===X&&(1===c?D._tr_align(m):5!==c&&(D._tr_stored_block(m, -0,0,!1),3===c&&(f(m.head),0===m.lookahead&&(m.strstart=0,m.block_start=0,m.insert=0))),g(b),0===b.avail_out))return m.last_flush=-1,H}return c!==G?H:0>=m.wrap?1:(2===m.wrap?(l(m,255&b.adler),l(m,b.adler>>8&255),l(m,b.adler>>16&255),l(m,b.adler>>24&255),l(m,255&b.total_in),l(m,b.total_in>>8&255),l(m,b.total_in>>16&255),l(m,b.total_in>>24&255)):(n(m,b.adler>>>16),n(m,65535&b.adler)),g(b),0=d.w_size&&(0===k&&(f(d.head),d.strstart=0,d.block_start=0,d.insert=0),l=new v.Buf8(d.w_size),v.arraySet(l,c,e-d.w_size,d.w_size,0),c=l,e=d.w_size);l=b.avail_in;n=b.next_in;m=b.input;b.avail_in=e;b.next_in= -0;b.input=c;for(p(d);d.lookahead>=I;){e=d.strstart;g=d.lookahead-(I-1);do d.ins_h=(d.ins_h<=I&&0m.lookahead&&(m.match_length=m.lookahead)}if(m.match_length>= +I?(C=D._tr_tally(m,1,m.match_length-I),m.lookahead-=m.match_length,m.strstart+=m.match_length,m.match_length=0):(C=D._tr_tally(m,0,m.window[m.strstart]),m.lookahead--,m.strstart++),C&&(k(m,!1),0===m.strm.avail_out)){C=P;break a}}C=(m.insert=0,c===G?(k(m,!0),0===m.strm.avail_out?$:U):m.last_lit&&(k(m,!1),0===m.strm.avail_out)?P:X)}else C=z[m.level].func(m,c);if(C!==$&&C!==U||(m.status=666),C===P||C===$)return 0===b.avail_out&&(m.last_flush=-1),J;if(C===X&&(1===c?D._tr_align(m):5!==c&&(D._tr_stored_block(m, +0,0,!1),3===c&&(f(m.head),0===m.lookahead&&(m.strstart=0,m.block_start=0,m.insert=0))),g(b),0===b.avail_out))return m.last_flush=-1,J}return c!==G?J:0>=m.wrap?1:(2===m.wrap?(l(m,255&b.adler),l(m,b.adler>>8&255),l(m,b.adler>>16&255),l(m,b.adler>>24&255),l(m,255&b.total_in),l(m,b.total_in>>8&255),l(m,b.total_in>>16&255),l(m,b.total_in>>24&255)):(n(m,b.adler>>>16),n(m,65535&b.adler)),g(b),0=d.w_size&&(0===k&&(f(d.head),d.strstart=0,d.block_start=0,d.insert=0),l=new v.Buf8(d.w_size),v.arraySet(l,c,e-d.w_size,d.w_size,0),c=l,e=d.w_size);l=b.avail_in;n=b.next_in;m=b.input;b.avail_in=e;b.next_in= +0;b.input=c;for(p(d);d.lookahead>=I;){e=d.strstart;g=d.lookahead-(I-1);do d.ins_h=(d.ins_h<A&&(u+=L[k++]<>>24,u>>>=C,A-=C,C=E>>>16&255,0===C)K[n++]=65535&E;else{if(!(16&C)){if(0===(64&C)){E=z[(65535&E)+(u&(1<>>=C,A-=C);15>A&&(u+=L[k++]<>>24,u>>>=C,A-=C,C=E>>>16&255, -!(16&C)){if(0===(64&C)){E=v[(65535&E)+(u&(1<s){b.msg="invalid distance too far back";d.mode=30;break a}if(u>>>=C,A-=C,C=n-m,G>C){if(C=G-C,C>q&&d.sane){b.msg="invalid distance too far back";d.mode=30;break a}if(E=0,H=x,0===t){if(E+=r-C,C>3;k-=F;A-=F<<3;b.next_in=k;b.next_out=n;b.avail_in=k>>24&255)+(b>>>8&65280)+((65280&b)<<8)+((255&b)<<24)}function f(){this.mode=0;this.last=!1;this.wrap=0;this.havedict=!1;this.total=this.check=this.dmax=this.flags=0;this.head=null;this.wnext=this.whave=this.wsize=this.wbits=0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new r.Buf16(320);this.work= -new r.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function g(b){var c;return b&&b.state?(c=b.state,b.total_in=b.total_out=c.total=0,b.msg="",c.wrap&&(b.adler=1&c.wrap),c.mode=v,c.last=0,c.havedict=0,c.dmax=32768,c.head=null,c.hold=0,c.bits=0,c.lencode=c.lendyn=new r.Buf32(D),c.distcode=c.distdyn=new r.Buf32(y),c.sane=1,c.back=-1,A):z}function k(b){var c;return b&&b.state?(c=b.state,c.wsize=0,c.whave=0,c.wnext=0,g(b)):z}function l(b,c){var d,e;return b&&b.state?(e=b.state, -0>c?(d=0,c=-c):(d=(c>>4)+1,48>c&&(c&=15)),c&&(8>c||15=b.wsize?(r.arraySet(b.window,c,d-b.wsize,b.wsize,0),b.wnext=0,b.whave=b.wsize):(f=b.wsize-b.wnext,f>e&&(f=e),r.arraySet(b.window,c,d- -e,f,b.wnext),e-=f,e?(r.arraySet(b.window,c,d-e,e,0),b.wnext=e,b.whave=b.wsize):(b.wnext+=f,b.wnext===b.wsize&&(b.wnext=0),b.whaver){b.msg="invalid distance too far back";d.mode=30;break a}if(u>>>=C,A-=C,C=n-m,G>C){if(C=G-C,C>q&&d.sane){b.msg="invalid distance too far back";d.mode=30;break a}if(E=0,J=x,0===t){if(E+=s-C,C>3;k-=F;A-=F<<3;b.next_in=k;b.next_out=n;b.avail_in=k>>24&255)+(b>>>8&65280)+((65280&b)<<8)+((255&b)<<24)}function f(){this.mode=0;this.last=!1;this.wrap=0;this.havedict=!1;this.total=this.check=this.dmax=this.flags=0;this.head=null;this.wnext=this.whave=this.wsize=this.wbits=0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new s.Buf16(320);this.work= +new s.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function g(b){var c;return b&&b.state?(c=b.state,b.total_in=b.total_out=c.total=0,b.msg="",c.wrap&&(b.adler=1&c.wrap),c.mode=v,c.last=0,c.havedict=0,c.dmax=32768,c.head=null,c.hold=0,c.bits=0,c.lencode=c.lendyn=new s.Buf32(D),c.distcode=c.distdyn=new s.Buf32(y),c.sane=1,c.back=-1,A):z}function k(b){var c;return b&&b.state?(c=b.state,c.wsize=0,c.whave=0,c.wnext=0,g(b)):z}function l(b,c){var d,e;return b&&b.state?(e=b.state, +0>c?(d=0,c=-c):(d=(c>>4)+1,48>c&&(c&=15)),c&&(8>c||15=b.wsize?(s.arraySet(b.window,c,d-b.wsize,b.wsize,0),b.wnext=0,b.whave=b.wsize):(f=b.wsize-b.wnext,f>e&&(f=e),s.arraySet(b.window,c,d- +e,f,b.wnext),e-=f,e?(s.arraySet(b.window,c,d-e,e,0),b.wnext=e,b.whave=b.wsize):(b.wnext+=f,b.wnext===b.wsize&&(b.wnext=0),b.whaveB;){if(0===n)break a;n--;y+=f[k++]<>>8&255;d.check=t(d.check,Q,2,0);B=y=0;d.mode=2;break}if(d.flags=0,d.head&&(d.head.done=!1),!(1& d.wrap)||(((255&y)<<8)+(y>>8))%31){b.msg="incorrect header check";d.mode=30;break}if(8!==(15&y)){b.msg="unknown compression method";d.mode=30;break}if(y>>>=4,B-=4,P=(15&y)+8,0===d.wbits)d.wbits=P;else if(P>d.wbits){b.msg="invalid window size";d.mode=30;break}d.dmax=1<B;){if(0===n)break a;n--;y+=f[k++]<>8&1);512&d.flags&&(Q[0]=255&y,Q[1]=y>>>8&255,d.check=t(d.check,Q,2,0));B=y=0;d.mode=3;case 3:for(;32>B;){if(0===n)break a;n--;y+=f[k++]<>>8&255,Q[2]=y>>>16&255,Q[3]=y>>>24&255,d.check=t(d.check,Q,4,0));B=y=0;d.mode=4;case 4:for(;16>B;){if(0===n)break a;n--;y+=f[k++]<>8);512&d.flags&&(Q[0]=255&y,Q[1]=y>>>8&255,d.check=t(d.check,Q,2,0));B=y=0;d.mode= -5;case 5:if(1024&d.flags){for(;16>B;){if(0===n)break a;n--;y+=f[k++]<>>8&255,d.check=t(d.check,Q,2,0));B=y=0}else d.head&&(d.head.extra=null);d.mode=6;case 6:if(1024&d.flags&&(J=d.length,J>n&&(J=n),J&&(d.head&&(P=d.head.extra_len-d.length,d.head.extra||(d.head.extra=Array(d.head.extra_len)),r.arraySet(d.head.extra,f,k,J,P)),512&d.flags&&(d.check=t(d.check,f,J,k)),n-=J,k+=J,d.length-=J),d.length))break a;d.length=0;d.mode= -7;case 7:if(2048&d.flags){if(0===n)break a;J=0;do P=f[k+J++],d.head&&P&&65536>d.length&&(d.head.name+=String.fromCharCode(P));while(P&&Jd.length&&(d.head.comment+=String.fromCharCode(P));while(P&&JB;){if(0===n)break a;n--;y+=f[k++]<>>8&255,d.check=t(d.check,Q,2,0));B=y=0}else d.head&&(d.head.extra=null);d.mode=6;case 6:if(1024&d.flags&&(H=d.length,H>n&&(H=n),H&&(d.head&&(P=d.head.extra_len-d.length,d.head.extra||(d.head.extra=Array(d.head.extra_len)),s.arraySet(d.head.extra,f,k,H,P)),512&d.flags&&(d.check=t(d.check,f,H,k)),n-=H,k+=H,d.length-=H),d.length))break a;d.length=0;d.mode= +7;case 7:if(2048&d.flags){if(0===n)break a;H=0;do P=f[k+H++],d.head&&P&&65536>d.length&&(d.head.name+=String.fromCharCode(P));while(P&&Hd.length&&(d.head.comment+=String.fromCharCode(P));while(P&&HB;){if(0===n)break a;n--;y+=f[k++]<>9&1,d.head.done=!0);b.adler=d.check=0;d.mode=12;break;case 10:for(;32>B;){if(0===n)break a;n--;y+=f[k++]<>>= -7&B;B-=7&B;d.mode=27;break}for(;3>B;){if(0===n)break a;n--;y+=f[k++]<>>=1,B-=1,3&y){case 0:d.mode=14;break;case 1:M=d;if(E){O=void 0;p=new r.Buf32(512);s=new r.Buf32(32);for(O=0;144>O;)M.lens[O++]=8;for(;256>O;)M.lens[O++]=9;for(;280>O;)M.lens[O++]=7;for(;288>O;)M.lens[O++]=8;u(1,M.lens,0,288,p,0,M.work,{bits:9});for(O=0;32>O;)M.lens[O++]=5;u(2,M.lens,0,32,s,0,M.work,{bits:5});E=!1}M.lencode=p;M.lenbits=9;M.distcode=s;M.distbits=5;if(d.mode=20,6===c){y>>>=2;B-=2;break a}break; -case 2:d.mode=17;break;case 3:b.msg="invalid block type",d.mode=30}y>>>=2;B-=2;break;case 14:y>>>=7&B;for(B-=7&B;32>B;){if(0===n)break a;n--;y+=f[k++]<>>16^65535)){b.msg="invalid stored block lengths";d.mode=30;break}if(d.length=65535&y,y=0,B=0,d.mode=15,6===c)break a;case 15:d.mode=16;case 16:if(J=d.length){if(J>n&&(J=n),J>D&&(J=D),0===J)break a;r.arraySet(g,f,k,J,l);n-=J;k+=J;D-=J;l+=J;d.length-=J;break}d.mode=12;break;case 17:for(;14>B;){if(0===n)break a;n--;y+=f[k++]<< +7&B;B-=7&B;d.mode=27;break}for(;3>B;){if(0===n)break a;n--;y+=f[k++]<>>=1,B-=1,3&y){case 0:d.mode=14;break;case 1:M=d;if(E){O=void 0;p=new s.Buf32(512);r=new s.Buf32(32);for(O=0;144>O;)M.lens[O++]=8;for(;256>O;)M.lens[O++]=9;for(;280>O;)M.lens[O++]=7;for(;288>O;)M.lens[O++]=8;u(1,M.lens,0,288,p,0,M.work,{bits:9});for(O=0;32>O;)M.lens[O++]=5;u(2,M.lens,0,32,r,0,M.work,{bits:5});E=!1}M.lencode=p;M.lenbits=9;M.distcode=r;M.distbits=5;if(d.mode=20,6===c){y>>>=2;B-=2;break a}break; +case 2:d.mode=17;break;case 3:b.msg="invalid block type",d.mode=30}y>>>=2;B-=2;break;case 14:y>>>=7&B;for(B-=7&B;32>B;){if(0===n)break a;n--;y+=f[k++]<>>16^65535)){b.msg="invalid stored block lengths";d.mode=30;break}if(d.length=65535&y,y=0,B=0,d.mode=15,6===c)break a;case 15:d.mode=16;case 16:if(H=d.length){if(H>n&&(H=n),H>D&&(H=D),0===H)break a;s.arraySet(g,f,k,H,l);n-=H;k+=H;D-=H;l+=H;d.length-=H;break}d.mode=12;break;case 17:for(;14>B;){if(0===n)break a;n--;y+=f[k++]<< B;B+=8}if(d.nlen=(31&y)+257,y>>>=5,B-=5,d.ndist=(31&y)+1,y>>>=5,B-=5,d.ncode=(15&y)+4,y>>>=4,B-=4,286B;){if(0===n)break a;n--;y+=f[k++]<>>=3;B-=3}for(;19>d.have;)d.lens[ha[d.have++]]=0;if(d.lencode=d.lendyn,d.lenbits=7,$={bits:d.lenbits},X=u(0,d.lens,0,19,d.lencode,0,d.work,$),d.lenbits=$.bits,X){b.msg="invalid code lengths set"; -d.mode=30;break}d.have=0;d.mode=19;case 19:for(;d.have>>24,O=65535&U,!(I<=B);){if(0===n)break a;n--;y+=f[k++]<O)y>>>=I,B-=I,d.lens[d.have++]=O;else{if(16===O){for(M=I+2;B>>=I,B-=I,0===d.have){b.msg="invalid bit length repeat";d.mode=30;break}P=d.lens[d.have-1];J=3+(3&y);y>>>=2;B-=2}else if(17===O){for(M=I+3;B>>=I;B-=I;P=0;J=3+(7&y); -y>>>=3;B-=3}else{for(M=I+7;B>>=I;B-=I;P=0;J=11+(127&y);y>>>=7;B-=7}if(d.have+J>d.nlen+d.ndist){b.msg="invalid bit length repeat";d.mode=30;break}for(;J--;)d.lens[d.have++]=P}}if(30===d.mode)break;if(0===d.lens[256]){b.msg="invalid code -- missing end-of-block";d.mode=30;break}if(d.lenbits=9,$={bits:d.lenbits},X=u(1,d.lens,0,d.nlen,d.lencode,0,d.work,$),d.lenbits=$.bits,X){b.msg="invalid literal/lengths set";d.mode=30;break}if(d.distbits=6,d.distcode=d.distdyn, +d.mode=30;break}d.have=0;d.mode=19;case 19:for(;d.have>>24,O=65535&U,!(I<=B);){if(0===n)break a;n--;y+=f[k++]<O)y>>>=I,B-=I,d.lens[d.have++]=O;else{if(16===O){for(M=I+2;B>>=I,B-=I,0===d.have){b.msg="invalid bit length repeat";d.mode=30;break}P=d.lens[d.have-1];H=3+(3&y);y>>>=2;B-=2}else if(17===O){for(M=I+3;B>>=I;B-=I;P=0;H=3+(7&y); +y>>>=3;B-=3}else{for(M=I+7;B>>=I;B-=I;P=0;H=11+(127&y);y>>>=7;B-=7}if(d.have+H>d.nlen+d.ndist){b.msg="invalid bit length repeat";d.mode=30;break}for(;H--;)d.lens[d.have++]=P}}if(30===d.mode)break;if(0===d.lens[256]){b.msg="invalid code -- missing end-of-block";d.mode=30;break}if(d.lenbits=9,$={bits:d.lenbits},X=u(1,d.lens,0,d.nlen,d.lencode,0,d.work,$),d.lenbits=$.bits,X){b.msg="invalid literal/lengths set";d.mode=30;break}if(d.distbits=6,d.distcode=d.distdyn, $={bits:d.distbits},X=u(2,d.lens,d.nlen,d.ndist,d.distcode,0,d.work,$),d.distbits=$.bits,X){b.msg="invalid distances set";d.mode=30;break}if(d.mode=20,6===c)break a;case 20:d.mode=21;case 21:if(6<=n&&258<=D){b.next_out=l;b.avail_out=D;b.next_in=k;b.avail_in=n;d.hold=y;d.bits=B;x(b,N);l=b.next_out;g=b.output;D=b.avail_out;k=b.next_in;f=b.input;n=b.avail_in;y=d.hold;B=d.bits;12===d.mode&&(d.back=-1);break}for(d.back=0;U=d.lencode[y&(1<>>24,M=U>>>16&255,O=65535&U,!(I<=B);){if(0=== n)break a;n--;y+=f[k++]<>S)],I=U>>>24,M=U>>>16&255,O=65535&U,!(S+I<=B);){if(0===n)break a;n--;y+=f[k++]<>>=S;B-=S;d.back+=S}if(y>>>=I,B-=I,d.back+=I,d.length=O,0===M){d.mode=26;break}if(32&M){d.back=-1;d.mode=12;break}if(64&M){b.msg="invalid literal/length code";d.mode=30;break}d.extra=15&M;d.mode=22;case 22:if(d.extra){for(M=d.extra;B>>=d.extra; B-=d.extra;d.back+=d.extra}d.was=d.length;d.mode=23;case 23:for(;U=d.distcode[y&(1<>>24,M=U>>>16&255,O=65535&U,!(I<=B);){if(0===n)break a;n--;y+=f[k++]<>S)],I=U>>>24,M=U>>>16&255,O=65535&U,!(S+I<=B);){if(0===n)break a;n--;y+=f[k++]<>>=S;B-=S;d.back+=S}if(y>>>=I,B-=I,d.back+=I,64&M){b.msg="invalid distance code";d.mode=30;break}d.offset=O;d.extra=15&M;d.mode=24;case 24:if(d.extra){for(M=d.extra;B< -M;){if(0===n)break a;n--;y+=f[k++]<>>=d.extra;B-=d.extra;d.back+=d.extra}if(d.offset>d.dmax){b.msg="invalid distance too far back";d.mode=30;break}d.mode=25;case 25:if(0===D)break a;if(J=N-D,d.offset>J){if(J=d.offset-J,J>d.whave&&d.sane){b.msg="invalid distance too far back";d.mode=30;break}J>d.wnext?(J-=d.wnext,Z=d.wsize-J):Z=d.wnext-J;J>d.length&&(J=d.length);M=d.window}else M=g,Z=l-d.offset,J=d.length;J>D&&(J=D);D-=J;d.length-=J;do g[l++]=M[Z++];while(--J); +M;){if(0===n)break a;n--;y+=f[k++]<>>=d.extra;B-=d.extra;d.back+=d.extra}if(d.offset>d.dmax){b.msg="invalid distance too far back";d.mode=30;break}d.mode=25;case 25:if(0===D)break a;if(H=N-D,d.offset>H){if(H=d.offset-H,H>d.whave&&d.sane){b.msg="invalid distance too far back";d.mode=30;break}H>d.wnext?(H-=d.wnext,Z=d.wsize-H):Z=d.wnext-H;H>d.length&&(H=d.length);M=d.window}else M=g,Z=l-d.offset,H=d.length;H>D&&(H=D);D-=H;d.length-=H;do g[l++]=M[Z++];while(--H); 0===d.length&&(d.mode=21);break;case 26:if(0===D)break a;g[l++]=d.length;D--;d.mode=21;break;case 27:if(d.wrap){for(;32>B;){if(0===n)break a;n--;y|=f[k++]<B;){if(0===n)break a;n--;y+=f[k++]<d.mode&&(27>d.mode||4!==c))&&m(b,b.output,b.next_out,N-b.avail_out)?(d.mode=31,-4):(Y-=b.avail_in,N-=b.avail_out,b.total_in+=Y,b.total_out+=N,d.total+=N,d.wrap&&N&&(b.adler=d.check=d.flags?t(d.check,g,N,b.next_out-N):q(d.check,g,N,b.next_out-N)),b.data_type=d.bits+(d.last?64:0)+(12===d.mode?128: 0)+(20===d.mode||15===d.mode?256:0),(0===Y&&0===N||4===c)&&X===A&&(X=-5),X)};d.inflateEnd=function(b){if(!b||!b.state)return z;var c=b.state;return c.window&&(c.window=null),b.state=null,A};d.inflateGetHeader=function(b,c){var d;return b&&b.state?(d=b.state,0===(2&d.wrap)?z:(d.head=c,c.done=!1,A)):z};d.inflateSetDictionary=function(b,c){var d,e,f=c.length;return b&&b.state?(d=b.state,0!==d.wrap&&11!==d.mode?z:11===d.mode&&(e=1,e=q(e,c,f,0),e!==d.check)?-3:m(b,c,f,f)?(d.mode=31,-4):(d.havedict=1,A)): z};d.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":3,"./adler32":5,"./crc32":7,"./inffast":10,"./inftrees":12}],12:[function(b,c,d){var e=b("../utils/common"),f=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],k=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16, -16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];c.exports=function(b,c,d,s,r,q,t,x){var u,A,z,v,D,y,E,C;v=x.bits;for(var F=0,G=0,H=0,L=0,K=0,R=0,T=0,aa=u=0,V=0,B=null,Y=0,N=new e.Buf16(16),R=new e.Buf16(16),J=null,Z=0,F=0;15>=F;F++)N[F]=0;for(G=0;GL&&(K=L),0===L)return r[q++]=20971520,r[q++]=20971520,x.bits=1,0;for(H=1;H=F;F++)if(u<<=1,u-=N[F],0>u)return-1; -if(0F;F++)R[F+1]=R[F]+N[F];for(G=0;GD?(E=J[Z+t[G]],C=B[Y+t[G]]):(E=96,C=0);u=1<>T)+A]=y<<24|E<<16|C|0;while(0!==A);for(u=1<>=1;if(0!==u?(V&=u-1,V+=u):V=0,G++,0===--N[F]){if(F=== -L)break;F=c[d+t[G]]}if(F>K&&(V&s)!==z){0===T&&(T=K);v+=H;R=F-T;for(u=1<=u));)R++,u<<=1;if(aa+=1<=F;F++)N[F]=0;for(G=0;GL&&(K=L),0===L)return s[q++]=20971520,s[q++]=20971520,x.bits=1,0;for(J=1;J=F;F++)if(u<<=1,u-=N[F],0>u)return-1; +if(0F;F++)R[F+1]=R[F]+N[F];for(G=0;GD?(E=H[Z+t[G]],C=B[Y+t[G]]):(E=96,C=0);u=1<>T)+A]=y<<24|E<<16|C|0;while(0!==A);for(u=1<>=1;if(0!==u?(V&=u-1,V+=u):V=0,G++,0===--N[F]){if(F=== +L)break;F=c[d+t[G]]}if(F>K&&(V&r)!==z){0===T&&(T=K);v+=J;R=F-T;for(u=1<=u));)R++,u<<=1;if(aa+=1<>>8&255}function l(b,c,d){b.bi_valid>aa-d?(b.bi_buf|=c<>aa-b.bi_valid,b.bi_valid+=d-aa):(b.bi_buf|=c<>>=1,d<<=1;while(0<--c);return d>>>1}function p(b,c,d){var e,f=Array(T+1),g=0;for(e=1;e<=T;e++)f[e]=g=g+d[e-1]<<1;for(d=0;d<=c;d++)e=b[2*d+1],0!==e&&(b[2*d]=m(f[e]++,e))}function s(b){var c;for(c=0;c>>=1,d<<=1;while(0<--c);return d>>>1}function p(b,c,d){var e,f=Array(T+1),g=0;for(e=1;e<=T;e++)f[e]=g=g+d[e-1]<<1;for(d=0;d<=c;d++)e=b[2*d+1],0!==e&&(b[2*d]=m(f[e]++,e))}function r(b){var c;for(c=0;ce?da[e]:da[256+(e>>>7)],n(b,g,d),k=Z[g],0!==k&&(e-=X[g],l(b,e,k)));while(mb.heap_len;)f=b.heap[++b.heap_len]=2>n?++n:0,g[2*f]=1,b.depth[f]=0,b.opt_len--,k&&(b.static_len-=e[2*f+1]);c.max_code=n;for(d=b.heap_len>>1;1<=d;d--)t(b,g,d);f=l; -do d=b.heap[1],b.heap[1]=b.heap[b.heap_len--],t(b,g,1),e=b.heap[1],b.heap[--b.heap_max]=d,b.heap[--b.heap_max]=e,g[2*f]=g[2*d]+g[2*e],b.depth[f]=(b.depth[d]>=b.depth[e]?b.depth[d]:b.depth[e])+1,g[2*d+1]=g[2*e+1]=f,b.heap[1]=f++,t(b,g,1);while(2<=b.heap_len);b.heap[--b.heap_max]=b.heap[1];var m,q,k=c.dyn_tree,l=c.max_code,x=c.stat_desc.static_tree,u=c.stat_desc.has_stree,s=c.stat_desc.extra_bits,r=c.stat_desc.extra_base,z=c.stat_desc.max_length,v=0;for(e=0;e<=T;e++)b.bl_count[e]=0;k[2*b.heap[b.heap_max]+ -1]=0;for(d=b.heap_max+1;dz&&(e=z,v++),k[2*f+1]=e,f>l||(b.bl_count[e]++,m=0,f>=r&&(m=s[f-r]),q=k[2*f],b.opt_len+=q*(e+m),u&&(b.static_len+=q*(x[2*f+1]+m)));if(0!==v){do{for(e=z-1;0===b.bl_count[e];)e--;b.bl_count[e]--;b.bl_count[e+1]+=2;b.bl_count[z]--;v-=2}while(0l||(k[2*m+1]!==e&&(b.opt_len+=(e-k[2*m+1])*k[2*m],k[2*m+1]=e),f--)}p(g,n,b.bl_count)}function A(b,c,d){var e,f,g=-1,k=c[1],l=0,n=7, +do d=b.heap[1],b.heap[1]=b.heap[b.heap_len--],t(b,g,1),e=b.heap[1],b.heap[--b.heap_max]=d,b.heap[--b.heap_max]=e,g[2*f]=g[2*d]+g[2*e],b.depth[f]=(b.depth[d]>=b.depth[e]?b.depth[d]:b.depth[e])+1,g[2*d+1]=g[2*e+1]=f,b.heap[1]=f++,t(b,g,1);while(2<=b.heap_len);b.heap[--b.heap_max]=b.heap[1];var m,q,k=c.dyn_tree,l=c.max_code,r=c.stat_desc.static_tree,x=c.stat_desc.has_stree,u=c.stat_desc.extra_bits,s=c.stat_desc.extra_base,z=c.stat_desc.max_length,v=0;for(e=0;e<=T;e++)b.bl_count[e]=0;k[2*b.heap[b.heap_max]+ +1]=0;for(d=b.heap_max+1;dz&&(e=z,v++),k[2*f+1]=e,f>l||(b.bl_count[e]++,m=0,f>=s&&(m=u[f-s]),q=k[2*f],b.opt_len+=q*(e+m),x&&(b.static_len+=q*(r[2*f+1]+m)));if(0!==v){do{for(e=z-1;0===b.bl_count[e];)e--;b.bl_count[e]--;b.bl_count[e+1]+=2;b.bl_count[z]--;v-=2}while(0l||(k[2*m+1]!==e&&(b.opt_len+=(e-k[2*m+1])*k[2*m],k[2*m+1]=e),f--)}p(g,n,b.bl_count)}function A(b,c,d){var e,f,g=-1,k=c[1],l=0,n=7, m=4;0===k&&(n=138,m=3);c[2*(d+1)+1]=65535;for(e=0;e<=d;e++)f=k,k=c[2*(e+1)+1],++l=l?b.bl_tree[2*Y]++:b.bl_tree[2*N]++,l=0,g=f,0===k?(n=138,m=3):f===k?(n=6,m=3):(n=7,m=4))}function z(b,c,d){var e,f,g=-1,k=c[1],m=0,q=7,p=4;0===k&&(q=138,p=3);for(e=0;e<=d;e++)if(f=k,k=c[2*(e+1)+1],!(++m=m? -(n(b,Y,b.bl_tree),l(b,m-3,3)):(n(b,N,b.bl_tree),l(b,m-11,7));m=0;g=f;0===k?(q=138,p=3):f===k?(q=6,p=3):(q=7,p=4)}}function v(b){var c,d=4093624447;for(c=0;31>=c;c++,d>>>=1)if(1&d&&0!==b.dyn_ltree[2*c])return E;if(0!==b.dyn_ltree[18]||0!==b.dyn_ltree[20]||0!==b.dyn_ltree[26])return C;for(c=32;ce;e++){P[e]=d;for(c=0;c<1<e;e++){X[e]=d;for(c=0;c<1<>=7;e=c;)O[2*c+1]=8,c++,k[8]++;for(;255>=c;)O[2*c+1]=9,c++,k[9]++;for(;279>=c;)O[2*c+1]=7,c++,k[7]++;for(;287>=c;)O[2*c+1]=8,c++,k[8]++;p(O,H+1,k);for(c=0;c>>3;g=b.static_len+3+7>>>3;g<=f&&(f=g)}else f=g=d+5;if(d+4<=f&&-1!==c)D(b,c,d, -e);else if(4===b.strategy||g===f)l(b,2+(e?1:0),3),x(b,O,S);else{l(b,4+(e?1:0),3);c=b.l_desc.max_code+1;d=b.d_desc.max_code+1;k+=1;l(b,c-257,5);l(b,d-1,5);l(b,k-4,4);for(f=0;f>>8&255,b.pending_buf[b.d_buf+2*b.last_lit+1]=255&c,b.pending_buf[b.l_buf+b.last_lit]=255&d,b.last_lit++,0===c?b.dyn_ltree[2*d]++:(b.matches++, +(n(b,Y,b.bl_tree),l(b,m-3,3)):(n(b,N,b.bl_tree),l(b,m-11,7));m=0;g=f;0===k?(q=138,p=3):f===k?(q=6,p=3):(q=7,p=4)}}function v(b){var c,d=4093624447;for(c=0;31>=c;c++,d>>>=1)if(1&d&&0!==b.dyn_ltree[2*c])return E;if(0!==b.dyn_ltree[18]||0!==b.dyn_ltree[20]||0!==b.dyn_ltree[26])return C;for(c=32;ce;e++){P[e]=d;for(c=0;c<1<e;e++){X[e]=d;for(c=0;c<1<>=7;e=c;)O[2*c+1]=8,c++,k[8]++;for(;255>=c;)O[2*c+1]=9,c++,k[9]++;for(;279>=c;)O[2*c+1]=7,c++,k[7]++;for(;287>=c;)O[2*c+1]=8,c++,k[8]++;p(O,J+1,k);for(c=0;c>>3;g=b.static_len+3+7>>>3;g<=f&&(f=g)}else f=g=d+5;if(d+4<=f&&-1!==c)D(b,c,d, +e);else if(4===b.strategy||g===f)l(b,2+(e?1:0),3),x(b,O,S);else{l(b,4+(e?1:0),3);c=b.l_desc.max_code+1;d=b.d_desc.max_code+1;k+=1;l(b,c-257,5);l(b,d-1,5);l(b,k-4,4);for(f=0;f>>8&255,b.pending_buf[b.d_buf+2*b.last_lit+1]=255&c,b.pending_buf[b.l_buf+b.last_lit]=255&d,b.last_lit++,0===c?b.dyn_ltree[2*d]++:(b.matches++, c--,b.dyn_ltree[2*(ba[d]+G+1)]++,b.dyn_dtree[2*(256>c?da[c]:da[256+(c>>>7)])]++),b.last_lit===b.lit_bufsize-1};d._tr_align=function(b){l(b,2,3);n(b,V,O);16===b.bi_valid?(k(b,b.bi_buf),b.bi_buf=0,b.bi_valid=0):8<=b.bi_valid&&(b.pending_buf[b.pending++]=255&b.bi_buf,b.bi_buf>>=8,b.bi_valid-=8)}},{"../utils/common":3}],15:[function(b,c,d){c.exports=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state= null;this.data_type=2;this.adler=0}},{}],"/":[function(b,c,d){d=b("./lib/utils/common").assign;var e=b("./lib/deflate"),f=b("./lib/inflate");b=b("./lib/zlib/constants");var g={};d(g,e,f,b);c.exports=g},{"./lib/deflate":1,"./lib/inflate":2,"./lib/utils/common":3,"./lib/zlib/constants":6}]},{},[])("/")});var JSON;JSON||(JSON={}); -(function(){function a(a){return 10>a?"0"+a:a}function b(a){e.lastIndex=0;return e.test(a)?'"'+a.replace(e,function(a){var b=k[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function c(a,d){var e,k,r,q,t=f,x,u=d[a];u&&"object"===typeof u&&"function"===typeof u.toJSON&&(u=u.toJSON(a));"function"===typeof l&&(u=l.call(d,a,u));switch(typeof u){case "string":return b(u);case "number":return isFinite(u)?""+u:"null";case "boolean":case "null":return""+u; -case "object":if(!u)return"null";f+=g;x=[];if("[object Array]"===Object.prototype.toString.apply(u)){q=u.length;for(e=0;ea?"0"+a:a}function b(a){e.lastIndex=0;return e.test(a)?'"'+a.replace(e,function(a){var b=k[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function c(a,d){var e,k,s,q,t=f,x,u=d[a];u&&"object"===typeof u&&"function"===typeof u.toJSON&&(u=u.toJSON(a));"function"===typeof l&&(u=l.call(d,a,u));switch(typeof u){case "string":return b(u);case "number":return isFinite(u)?""+u:"null";case "boolean":case "null":return""+u; +case "object":if(!u)return"null";f+=g;x=[];if("[object Array]"===Object.prototype.toString.apply(u)){q=u.length;for(e=0;ed&&g?(d++,window.setTimeout(e,f)):null!=c&&c()},f=30;e()},cascadeOpacity:function(a,b,c){for(var d=a.model.getChildCount(b),e=0;ed&&g?(d++,window.setTimeout(e,f)):null!=c&&c()},f=30;e()},cascadeOpacity:function(a,b,c){for(var d=a.model.getChildCount(b),e=0;edocument.documentMode&&(a="ms");return function(b,c,d){b[c]=d;null!=a&&0mxUtils.indexOf(b,e)))d[e]=!c&&"object"==typeof a[e]?mxUtils.clone(a[e]):a[e]}return d},equalPoints:function(a,b){if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b)for(var c=0;ce&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;n=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2);m=p*c;p*=d;c*=s;d*=s;for(var u=Math.cos(f),A=Math.sin(f),r=-n*(m*A+d*u),q=-n*(c*A-p*u),s=[],z=0;ze&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;n=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2);m=p*c;p*=d;c*=r;d*=r;for(var u=Math.cos(f),A=Math.sin(f),s=-n*(m*A+d*u),q=-n*(c*A-p*u),r=[],z=0;zc&&(a=3,-135>=c&&(a=2));if(0<=d.indexOf(mxConstants.DIRECTION_NORTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 1:b|=mxConstants.DIRECTION_MASK_EAST;break;case 2:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 3:b|=mxConstants.DIRECTION_MASK_WEST}if(0<=d.indexOf(mxConstants.DIRECTION_WEST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_WEST;break;case 1:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 2:b|=mxConstants.DIRECTION_MASK_EAST;break;case 3:b|= @@ -484,15 +484,15 @@ mxXmlCanvas2D.prototype.image=function(a,b,c,d,e,f,g,k){e=this.converter.convert mxXmlCanvas2D.prototype.begin=function(){this.root.appendChild(this.createElement("begin"));this.lastY=this.lastX=0};mxXmlCanvas2D.prototype.moveTo=function(a,b){var c=this.createElement("move");c.setAttribute("x",this.format(a));c.setAttribute("y",this.format(b));this.root.appendChild(c);this.lastX=a;this.lastY=b}; mxXmlCanvas2D.prototype.lineTo=function(a,b){var c=this.createElement("line");c.setAttribute("x",this.format(a));c.setAttribute("y",this.format(b));this.root.appendChild(c);this.lastX=a;this.lastY=b};mxXmlCanvas2D.prototype.quadTo=function(a,b,c,d){var e=this.createElement("quad");e.setAttribute("x1",this.format(a));e.setAttribute("y1",this.format(b));e.setAttribute("x2",this.format(c));e.setAttribute("y2",this.format(d));this.root.appendChild(e);this.lastX=c;this.lastY=d}; mxXmlCanvas2D.prototype.curveTo=function(a,b,c,d,e,f){var g=this.createElement("curve");g.setAttribute("x1",this.format(a));g.setAttribute("y1",this.format(b));g.setAttribute("x2",this.format(c));g.setAttribute("y2",this.format(d));g.setAttribute("x3",this.format(e));g.setAttribute("y3",this.format(f));this.root.appendChild(g);this.lastX=e;this.lastY=f};mxXmlCanvas2D.prototype.close=function(){this.root.appendChild(this.createElement("close"))}; -mxXmlCanvas2D.prototype.text=function(a,b,c,d,e,f,g,k,l,n,m,p,s){if(this.textEnabled&&null!=e){mxUtils.isNode(e)&&(e=mxUtils.getOuterHtml(e));var r=this.createElement("text");r.setAttribute("x",this.format(a));r.setAttribute("y",this.format(b));r.setAttribute("w",this.format(c));r.setAttribute("h",this.format(d));r.setAttribute("str",e);null!=f&&r.setAttribute("align",f);null!=g&&r.setAttribute("valign",g);r.setAttribute("wrap",k?"1":"0");null==l&&(l="");r.setAttribute("format",l);null!=n&&r.setAttribute("overflow", -n);null!=m&&r.setAttribute("clip",m?"1":"0");null!=p&&r.setAttribute("rotation",p);null!=s&&r.setAttribute("dir",s);this.root.appendChild(r)}};mxXmlCanvas2D.prototype.stroke=function(){this.root.appendChild(this.createElement("stroke"))};mxXmlCanvas2D.prototype.fill=function(){this.root.appendChild(this.createElement("fill"))};mxXmlCanvas2D.prototype.fillAndStroke=function(){this.root.appendChild(this.createElement("fillstroke"))}; +mxXmlCanvas2D.prototype.text=function(a,b,c,d,e,f,g,k,l,n,m,p,r){if(this.textEnabled&&null!=e){mxUtils.isNode(e)&&(e=mxUtils.getOuterHtml(e));var s=this.createElement("text");s.setAttribute("x",this.format(a));s.setAttribute("y",this.format(b));s.setAttribute("w",this.format(c));s.setAttribute("h",this.format(d));s.setAttribute("str",e);null!=f&&s.setAttribute("align",f);null!=g&&s.setAttribute("valign",g);s.setAttribute("wrap",k?"1":"0");null==l&&(l="");s.setAttribute("format",l);null!=n&&s.setAttribute("overflow", +n);null!=m&&s.setAttribute("clip",m?"1":"0");null!=p&&s.setAttribute("rotation",p);null!=r&&s.setAttribute("dir",r);this.root.appendChild(s)}};mxXmlCanvas2D.prototype.stroke=function(){this.root.appendChild(this.createElement("stroke"))};mxXmlCanvas2D.prototype.fill=function(){this.root.appendChild(this.createElement("fill"))};mxXmlCanvas2D.prototype.fillAndStroke=function(){this.root.appendChild(this.createElement("fillstroke"))}; function mxSvgCanvas2D(a,b){mxAbstractCanvas2D.call(this);this.root=a;this.gradients=[];this.defs=null;this.styleEnabled=null!=b?b:!1;var c=null;if(a.ownerDocument!=document)for(c=a;null!=c&&"svg"!=c.nodeName;)c=c.parentNode;null!=c&&(0l.alpha||1>l.fillAlpha)&&n.setAttribute("opacity",l.alpha*l.fillAlpha);e=this.state.transform||"";if(g||k){var m=f=1,p=0,s=0;g&&(f=-1,p=-c-2*a);k&&(m=-1,s=-d-2*b);e+="scale("+f+","+m+")translate("+p*l.scale+","+s*l.scale+")"}0l.alpha||1>l.fillAlpha)&&n.setAttribute("opacity",l.alpha*l.fillAlpha);e=this.state.transform||"";if(g||k){var m=f=1,p=0,r=0;g&&(f=-1,p=-c-2*a);k&&(m=-1,r=-d-2*b);e+="scale("+f+","+m+")translate("+p*l.scale+","+r*l.scale+")"}0/g,"\x26gt;");a=b.value.replace(/&/g,"\x26amp;").replace(/&lt;/g, @@ -522,27 +522,27 @@ mxSvgCanvas2D.prototype.createDiv=function(a,b,c,d,e){c=this.state;d="display:in mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&(d+="text-decoration:underline;");b==mxConstants.ALIGN_CENTER?d+="text-align:center;":b==mxConstants.ALIGN_RIGHT&&(d+="text-align:right;");b="";null!=c.fontBackgroundColor&&(b+="background-color:"+c.fontBackgroundColor+";");null!=c.fontBorderColor&&(b+="border:1px solid "+c.fontBorderColor+";");mxUtils.isNode(a)||(a=this.convertHtml(a),"fill"!=e&&"width"!=e?a='\x3cdiv xmlns\x3d"http://www.w3.org/1999/xhtml" style\x3d"display:inline-block;text-align:inherit;text-decoration:inherit;'+ b+'"\x3e'+a+"\x3c/div\x3e":d+=b);if(!mxClient.IS_IE&&document.createElementNS)return e=document.createElementNS("http://www.w3.org/1999/xhtml","div"),e.setAttribute("style",d),mxUtils.isNode(a)?this.root.ownerDocument!=document?e.appendChild(a.cloneNode(!0)):e.appendChild(a):e.innerHTML=a,e;mxUtils.isNode(a)&&this.root.ownerDocument!=document&&(a=a.outerHTML);return mxUtils.parseXml('\x3cdiv xmlns\x3d"http://www.w3.org/1999/xhtml" style\x3d"'+d+'"\x3e'+a+"\x3c/div\x3e").documentElement}; mxSvgCanvas2D.prototype.invalidateCachedOffsetSize=function(a){delete a.firstChild.mxCachedOffsetWidth;delete a.firstChild.mxCachedFinalOffsetWidth;delete a.firstChild.mxCachedFinalOffsetHeight}; -mxSvgCanvas2D.prototype.updateText=function(a,b,c,d,e,f,g,k,l,n,m){if(null!=m&&null!=m.firstChild&&null!=m.firstChild.firstChild&&null!=m.firstChild.firstChild.firstChild){m=m.firstChild;var p=m.firstChild,s=p.firstChild;n=null!=n?n:0;var r=this.state;a+=r.dx;b+=r.dy;l?(s.style.maxHeight=Math.round(d)+"px",s.style.maxWidth=Math.round(c)+"px"):"fill"==k?(s.style.width=Math.round(c+1)+"px",s.style.height=Math.round(d+1)+"px"):"width"==k&&(s.style.width=Math.round(c+1)+"px",0r.alpha&&t.setAttribute("opacity",r.alpha);var x=this.createElement("foreignObject");x.setAttribute("style","overflow:visible;");x.setAttribute("pointer-events","all");q=this.createDiv(e,f,g,q,n);if(null!=q){null!=s&&q.setAttribute("dir",s);t.appendChild(x);this.root.appendChild(t);var u=0,A=0;s=u=2;if(mxClient.IS_IE&&(9==document.documentMode||!mxClient.IS_SVG)){var z= -document.createElement("div");z.style.cssText=q.getAttribute("style");z.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";z.style.position="absolute";z.style.visibility="hidden";A=document.createElement("div");A.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";A.style.wordWrap=mxConstants.WORD_WRAP;A.innerHTML=mxUtils.isNode(e)?e.outerHTML:e;z.appendChild(A);document.body.appendChild(z);8!=document.documentMode&&9!=document.documentMode&&null!=r.fontBorderColor&&(u+=2,s+=2);if(k&&0< -c){var v=A.offsetWidth;if(!m&&k&&0s.alpha&&t.setAttribute("opacity",s.alpha);var x=this.createElement("foreignObject");x.setAttribute("style","overflow:visible;");x.setAttribute("pointer-events","all");q=this.createDiv(e,f,g,q,n);if(null!=q){null!=r&&q.setAttribute("dir",r);t.appendChild(x);this.root.appendChild(t);var u=0,A=0;r=u=2;if(mxClient.IS_IE&&(9==document.documentMode||!mxClient.IS_SVG)){var z= +document.createElement("div");z.style.cssText=q.getAttribute("style");z.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";z.style.position="absolute";z.style.visibility="hidden";A=document.createElement("div");A.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";A.style.wordWrap=mxConstants.WORD_WRAP;A.innerHTML=mxUtils.isNode(e)?e.outerHTML:e;z.appendChild(A);document.body.appendChild(z);8!=document.documentMode&&9!=document.documentMode&&null!=s.fontBorderColor&&(u+=2,r+=2);if(k&&0< +c){var v=A.offsetWidth;if(!m&&k&&0r.alpha&&t.setAttribute("opacity",r.alpha);s=q=0;f==mxConstants.ALIGN_CENTER?q-=c/2:f==mxConstants.ALIGN_RIGHT&&(q-=c);a+=q;g==mxConstants.ALIGN_MIDDLE? -s-=d/2:g==mxConstants.ALIGN_BOTTOM&&(s-=d);"fill"!=n&&mxClient.IS_FF&&mxClient.IS_WIN&&(s-=2);b+=s;z=1!=r.scale?"scale("+r.scale+")":"";0!=r.rotation&&this.rotateHtml?(z+="rotate("+r.rotation+","+c/2+","+d/2+")",b=this.rotatePoint((a+c/2)*r.scale,(b+d/2)*r.scale,r.rotation,r.rotationCx,r.rotationCy),a=b.x-c*r.scale/2,b=b.y-d*r.scale/2):(a*=r.scale,b*=r.scale);0!=p&&(z+="rotate("+p+","+-q+","+-s+")");t.setAttribute("transform","translate("+(Math.round(a)+this.foOffset)+","+(Math.round(b)+this.foOffset)+ -")"+z);x.setAttribute("width",Math.round(Math.max(1,c)));x.setAttribute("height",Math.round(Math.max(1,d)));this.root.ownerDocument!=document&&(a=this.createAlternateContent(x,a,b,c,d,e,f,g,k,l,n,m,p),null!=a&&(x.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),c=this.createElement("switch"),c.appendChild(x),c.appendChild(a),t.appendChild(c)))}}else this.plainText(a,b,c,d,e,f,g,k,n,m,p,s)}}; +(q.style.whiteSpace=D)),u=v+u-1,k&&"fill"!=n&&"width"!=n&&(m&&(u=Math.min(u,c)),q.style.width=u+"px"),u=z.offsetWidth,A=z.offsetHeight,this.cacheOffsetSize&&(t.mxCachedFinalOffsetWidth=u,t.mxCachedFinalOffsetHeight=A),A-=r,q.parentNode!=x&&(x.appendChild(q),q.style.visibility="");m&&(A=Math.min(A,d),u=Math.min(u,c));"width"==n?d=A:"fill"!=n&&(c=u,d=A);1>s.alpha&&t.setAttribute("opacity",s.alpha);r=q=0;f==mxConstants.ALIGN_CENTER?q-=c/2:f==mxConstants.ALIGN_RIGHT&&(q-=c);a+=q;g==mxConstants.ALIGN_MIDDLE? +r-=d/2:g==mxConstants.ALIGN_BOTTOM&&(r-=d);"fill"!=n&&mxClient.IS_FF&&mxClient.IS_WIN&&(r-=2);b+=r;z=1!=s.scale?"scale("+s.scale+")":"";0!=s.rotation&&this.rotateHtml?(z+="rotate("+s.rotation+","+c/2+","+d/2+")",b=this.rotatePoint((a+c/2)*s.scale,(b+d/2)*s.scale,s.rotation,s.rotationCx,s.rotationCy),a=b.x-c*s.scale/2,b=b.y-d*s.scale/2):(a*=s.scale,b*=s.scale);0!=p&&(z+="rotate("+p+","+-q+","+-r+")");t.setAttribute("transform","translate("+(Math.round(a)+this.foOffset)+","+(Math.round(b)+this.foOffset)+ +")"+z);x.setAttribute("width",Math.round(Math.max(1,c)));x.setAttribute("height",Math.round(Math.max(1,d)));this.root.ownerDocument!=document&&(a=this.createAlternateContent(x,a,b,c,d,e,f,g,k,l,n,m,p),null!=a&&(x.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),c=this.createElement("switch"),c.appendChild(x),c.appendChild(a),t.appendChild(c)))}}else this.plainText(a,b,c,d,e,f,g,k,n,m,p,r)}}; mxSvgCanvas2D.prototype.createClip=function(a,b,c,d){a=Math.round(a);b=Math.round(b);c=Math.round(c);d=Math.round(d);for(var e="mx-clip-"+a+"-"+b+"-"+c+"-"+d,f=0,g=e+"-"+f;null!=document.getElementById(g);)g=e+"-"+ ++f;clip=this.createElement("clipPath");clip.setAttribute("id",g);e=this.createElement("rect");e.setAttribute("x",a);e.setAttribute("y",b);e.setAttribute("width",c);e.setAttribute("height",d);clip.appendChild(e);return clip}; -mxSvgCanvas2D.prototype.plainText=function(a,b,c,d,e,f,g,k,l,n,m,p){m=null!=m?m:0;k=this.state;var s=k.fontSize,r=this.createElement("g"),q=k.transform||"";this.updateFont(r);0!=m&&(q+="rotate("+m+","+this.format(a*k.scale)+","+this.format(b*k.scale)+")");null!=p&&r.setAttribute("direction",p);n&&0k.alpha&&r.setAttribute("opacity",k.alpha);q=e.split("\n");p=Math.round(s*mxConstants.LINE_HEIGHT);var t=s+(q.length-1)*p;m=b+s-1;g==mxConstants.ALIGN_MIDDLE?"fill"==l?m-=d/2:(n=(this.matchHtmlAlignment&&n&&0k.alpha&&s.setAttribute("opacity",k.alpha);q=e.split("\n");p=Math.round(r*mxConstants.LINE_HEIGHT);var t=r+(q.length-1)*p;m=b+r-1;g==mxConstants.ALIGN_MIDDLE?"fill"==l?m-=d/2:(n=(this.matchHtmlAlignment&&n&&0u&&(u+=2*Math.PI);u%=Math.PI;u>Math.PI/2&&(u=Math.PI-u);g=Math.cos(u);var A=Math.sin(u);8==document.documentMode&&!mxClient.IS_EM&&(e.style.display="inline-block",f.style.display="inline-block",q.style.display="inline-block");e.style.visibility="hidden";e.style.position="absolute";document.body.appendChild(e);q=e;null!=q.firstChild&&"DIV"==q.firstChild.nodeName&&(q=q.firstChild);u=q.offsetWidth+3;q=q.offsetHeight;m?(c=Math.min(c,u), -q=Math.min(q,d)):c=u;k&&(e.style.width=c+"px");if(mxClient.IS_QUIRKS&&(m||"width"==n)&&q>d)q=d,e.style.height=q+"px";d=q;m=(d-d*g+c*-A)/2-s*c*(x+0.5)+p*d*(t+0.5);k=(c-c*g+d*-A)/2+p*c*(x+0.5)+s*d*(t+0.5);"group"==l.nodeName&&"DIV"==this.root.nodeName?(n=this.createElement("div"),n.style.display="inline-block",n.style.position="absolute",n.style.left=this.format(a+(k-c/2)*r.scale)+"px",n.style.top=this.format(b+(m-d/2)*r.scale)+"px",l.parentNode.appendChild(n),n.appendChild(l)):(r=8==document.documentMode&& -!mxClient.IS_EM?1:r.scale,l.style.left=this.format(a+(k-c/2)*r)+"px",l.style.top=this.format(b+(m-d/2)*r)+"px");f.style.filter="progid:DXImageTransform.Microsoft.Matrix(M11\x3d"+p+", M12\x3d"+s+", M21\x3d"+-s+", M22\x3d"+p+", sizingMethod\x3d'auto expand')";f.style.backgroundColor=this.rotatedHtmlBackground;1>this.state.alpha&&(f.style.filter+="alpha(opacity\x3d"+100*this.state.alpha+")");f.appendChild(e);e.style.position="";e.style.visibility=""}else 8!=document.documentMode||mxClient.IS_EM?(e.style.verticalAlign= -"top",1>this.state.alpha&&(l.style.filter="alpha(opacity\x3d"+100*this.state.alpha+")"),r=e.parentNode,e.style.visibility="hidden",document.body.appendChild(e),c=e.offsetWidth,q=e.offsetHeight,mxClient.IS_QUIRKS&&m&&q>d&&(q=d,e.style.height=q+"px"),d=q,e.style.visibility="",r.appendChild(e),l.style.left=this.format(a+c*x*this.state.scale)+"px",l.style.top=this.format(b+d*t*this.state.scale)+"px"):(1>this.state.alpha&&(e.style.filter="alpha(opacity\x3d"+100*this.state.alpha+")"),q.style.left=100*x+ -"%",q.style.top=100*t+"%")}else this.plainText(a,b,c,d,mxUtils.htmlEntities(e,!1),f,g,k,l,n,m,p,s)}}; -mxVmlCanvas2D.prototype.plainText=function(a,b,c,d,e,f,g,k,l,n,m,p,s){k=this.state;a=(a+k.dx)*k.scale;b=(b+k.dy)*k.scale;c=this.createVmlElement("shape");c.style.width="1px";c.style.height="1px";c.stroked="false";d=this.createVmlElement("fill");d.color=k.fontColor;d.opacity=100*k.alpha+"%";c.appendChild(d);d=this.createVmlElement("path");d.textpathok="true";d.v="m "+this.format(0)+" "+this.format(0)+" l "+this.format(1)+" "+this.format(0);c.appendChild(d);d=this.createVmlElement("textpath");d.style.cssText= +mxVmlCanvas2D.prototype.text=function(a,b,c,d,e,f,g,k,l,n,m,p,r){if(this.textEnabled&&null!=e){var s=this.state;if("html"==l){null!=s.rotation&&(b=this.rotatePoint(a,b,s.rotation,s.rotationCx,s.rotationCy),a=b.x,b=b.y);8==document.documentMode&&!mxClient.IS_EM?(a+=s.dx,b+=s.dy,"fill"!=n&&g==mxConstants.ALIGN_TOP&&(b-=1)):(a*=s.scale,b*=s.scale);l=8==document.documentMode&&!mxClient.IS_EM?this.createVmlElement("group"):this.createElement("div");l.style.position="absolute";l.style.display="inline"; +l.style.left=this.format(a)+"px";l.style.top=this.format(b)+"px";l.style.zoom=s.scale;var q=this.createElement("div");q.style.position="relative";q.style.display="inline";var t=mxUtils.getAlignmentAsPoint(f,g),x=t.x,t=t.y;e=this.createDiv(e,f,g,n);f=this.createElement("div");null!=r&&e.setAttribute("dir",r);if(k&&0u&&(u+=2*Math.PI);u%=Math.PI;u>Math.PI/2&&(u=Math.PI-u);g=Math.cos(u);var A=Math.sin(u);8==document.documentMode&&!mxClient.IS_EM&&(e.style.display="inline-block",f.style.display="inline-block",q.style.display="inline-block");e.style.visibility="hidden";e.style.position="absolute";document.body.appendChild(e);q=e;null!=q.firstChild&&"DIV"==q.firstChild.nodeName&&(q=q.firstChild);u=q.offsetWidth+3;q=q.offsetHeight;m?(c=Math.min(c,u), +q=Math.min(q,d)):c=u;k&&(e.style.width=c+"px");if(mxClient.IS_QUIRKS&&(m||"width"==n)&&q>d)q=d,e.style.height=q+"px";d=q;m=(d-d*g+c*-A)/2-r*c*(x+0.5)+p*d*(t+0.5);k=(c-c*g+d*-A)/2+p*c*(x+0.5)+r*d*(t+0.5);"group"==l.nodeName&&"DIV"==this.root.nodeName?(n=this.createElement("div"),n.style.display="inline-block",n.style.position="absolute",n.style.left=this.format(a+(k-c/2)*s.scale)+"px",n.style.top=this.format(b+(m-d/2)*s.scale)+"px",l.parentNode.appendChild(n),n.appendChild(l)):(s=8==document.documentMode&& +!mxClient.IS_EM?1:s.scale,l.style.left=this.format(a+(k-c/2)*s)+"px",l.style.top=this.format(b+(m-d/2)*s)+"px");f.style.filter="progid:DXImageTransform.Microsoft.Matrix(M11\x3d"+p+", M12\x3d"+r+", M21\x3d"+-r+", M22\x3d"+p+", sizingMethod\x3d'auto expand')";f.style.backgroundColor=this.rotatedHtmlBackground;1>this.state.alpha&&(f.style.filter+="alpha(opacity\x3d"+100*this.state.alpha+")");f.appendChild(e);e.style.position="";e.style.visibility=""}else 8!=document.documentMode||mxClient.IS_EM?(e.style.verticalAlign= +"top",1>this.state.alpha&&(l.style.filter="alpha(opacity\x3d"+100*this.state.alpha+")"),s=e.parentNode,e.style.visibility="hidden",document.body.appendChild(e),c=e.offsetWidth,q=e.offsetHeight,mxClient.IS_QUIRKS&&m&&q>d&&(q=d,e.style.height=q+"px"),d=q,e.style.visibility="",s.appendChild(e),l.style.left=this.format(a+c*x*this.state.scale)+"px",l.style.top=this.format(b+d*t*this.state.scale)+"px"):(1>this.state.alpha&&(e.style.filter="alpha(opacity\x3d"+100*this.state.alpha+")"),q.style.left=100*x+ +"%",q.style.top=100*t+"%")}else this.plainText(a,b,c,d,mxUtils.htmlEntities(e,!1),f,g,k,l,n,m,p,r)}}; +mxVmlCanvas2D.prototype.plainText=function(a,b,c,d,e,f,g,k,l,n,m,p,r){k=this.state;a=(a+k.dx)*k.scale;b=(b+k.dy)*k.scale;c=this.createVmlElement("shape");c.style.width="1px";c.style.height="1px";c.stroked="false";d=this.createVmlElement("fill");d.color=k.fontColor;d.opacity=100*k.alpha+"%";c.appendChild(d);d=this.createVmlElement("path");d.textpathok="true";d.v="m "+this.format(0)+" "+this.format(0)+" l "+this.format(1)+" "+this.format(0);c.appendChild(d);d=this.createVmlElement("textpath");d.style.cssText= "v-text-align:"+f;d.style.align=f;d.style.fontFamily=k.fontFamily;d.string=e;d.on="true";f=k.fontSize*k.scale/this.vmlScale;d.style.fontSize=f+"px";(k.fontStyle&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(d.style.fontWeight="bold");(k.fontStyle&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&(d.style.fontStyle="italic");(k.fontStyle&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&(d.style.textDecoration="underline");e=e.split("\n");k=f+(e.length-1)*f*mxConstants.LINE_HEIGHT;f=e=0; g==mxConstants.ALIGN_BOTTOM?f=-k/2:g!=mxConstants.ALIGN_MIDDLE&&(f=k/2);null!=p&&(c.style.rotation=p,g=p*(Math.PI/180),e=Math.sin(g)*f,f*=Math.cos(g));c.appendChild(d);c.style.left=this.format(a-e)+"px";c.style.top=this.format(b+f)+"px";this.root.appendChild(c)};mxVmlCanvas2D.prototype.stroke=function(){this.addNode(!1,!0)};mxVmlCanvas2D.prototype.fill=function(){this.addNode(!0,!1)};mxVmlCanvas2D.prototype.fillAndStroke=function(){this.addNode(!0,!0)}; function mxGuide(a,b){this.graph=a;this.setStates(b)}mxGuide.prototype.graph=null;mxGuide.prototype.states=null;mxGuide.prototype.horizontal=!0;mxGuide.prototype.vertical=!0;mxGuide.prototype.guideX=null;mxGuide.prototype.guideY=null;mxGuide.prototype.setStates=function(a){this.states=a};mxGuide.prototype.isEnabledForEvent=function(a){return!0};mxGuide.prototype.getGuideTolerance=function(){return this.graph.gridSize/2}; mxGuide.prototype.createGuideShape=function(a){a=new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH);a.isDashed=!0;return a}; -mxGuide.prototype.move=function(a,b,c){if(null!=this.states&&(this.horizontal||this.vertical)&&null!=a&&null!=b){var d=this.graph.getView().translate,e=this.graph.getView().scale,f=b.x,g=b.y,k=!1,l=null,n=null,m=!1,p=null,s=null,r=this.getGuideTolerance(),q=r,t=r,r=a.clone();r.x+=b.x;r.y+=b.y;var x=r.x,u=r.x+r.width,A=r.getCenterX(),z=r.y,v=r.y+r.height,D=r.getCenterY();b=function(b,c){b+=this.graph.panDx;var d=!1;Math.abs(b-A)n&&(n+=2*Math.PI);n%=Math.PI;n>Math.PI/2&&(n=Math.PI-n);var k=Math.cos(n),m=Math.sin(-n),b=l*-(b+0.5),p=g*-(c+0.5),s=(g-g*k+l*m)/2+f*b-e*p;0!=n&&(c="progid:DXImageTransform.Microsoft.Matrix(M11\x3d"+e+", M12\x3d"+f+", M21\x3d"+-f+", M22\x3d"+e+", sizingMethod\x3d'auto expand')",a.filter=null!=a.filter&&0n&&(n+=2*Math.PI);n%=Math.PI;n>Math.PI/2&&(n=Math.PI-n);var k=Math.cos(n),m=Math.sin(-n),b=l*-(b+0.5),p=g*-(c+0.5),r=(g-g*k+l*m)/2+f*b-e*p;0!=n&&(c="progid:DXImageTransform.Microsoft.Matrix(M11\x3d"+e+", M12\x3d"+f+", M21\x3d"+-f+", M22\x3d"+e+", sizingMethod\x3d'auto expand')",a.filter=null!=a.filter&&0b)break;k=c}f=e.getIndex(a);f=Math.max(0,g-(g>f?1:0));d.add(e,a,f)}}; mxStackLayout.prototype.getParentSize=function(a){var b=this.graph.getModel(),c=b.getGeometry(a);if(null!=this.graph.container&&(null==c&&b.isLayer(a)||a==this.graph.getView().currentRoot))c=new mxRectangle(0,0,this.graph.container.offsetWidth-1,this.graph.container.offsetHeight-1);return c}; mxStackLayout.prototype.execute=function(a){if(null!=a){var b=this.getParentSize(a),c=this.isHorizontal(),d=this.graph.getModel(),e=null;null!=b&&(e=c?b.height-this.marginTop-this.marginBottom:b.width-this.marginLeft-this.marginRight);var e=e-(2*this.spacing+2*this.border),f=this.x0+this.border+this.marginLeft,g=this.y0+this.border+this.marginTop;if(this.graph.isSwimlane(a)){var k=this.graph.getCellStyle(a),l=mxUtils.getNumber(k,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE),k=1==mxUtils.getValue(k, -mxConstants.STYLE_HORIZONTAL,!0);null!=b&&(l=k?Math.min(l,b.height):Math.min(l,b.width));c==k&&(e-=l);k?g+=l:f+=l}d.beginUpdate();try{for(var l=0,k=null,n=0,m=null,p=d.getChildCount(a),s=0;sthis.wrap||!c&&k.y+k.height+q.height+2*this.spacing>this.wrap))k=null,c?g+=l+this.spacing:f+=l+this.spacing,l= -0;var l=Math.max(l,c?q.height:q.width),t=0;if(!this.borderCollapse)var x=this.graph.getCellStyle(r),t=mxUtils.getNumber(x,mxConstants.STYLE_STROKEWIDTH,1);null!=k?c?q.x=n+this.spacing+Math.floor(t/2):q.y=n+this.spacing+Math.floor(t/2):this.keepFirstLocation||(c?q.x=f:q.y=g);c?q.y=g:q.x=f;this.fill&&null!=e&&(c?q.height=e:q.width=e);this.setChildGeometry(r,q);m=r;k=q;n=c?k.x+k.width+Math.floor(t/2):k.y+k.height+Math.floor(t/2)}}}this.resizeParent&&null!=b&&null!=k&&!this.graph.isCellCollapsed(a)?this.updateParentGeometry(a, +mxConstants.STYLE_HORIZONTAL,!0);null!=b&&(l=k?Math.min(l,b.height):Math.min(l,b.width));c==k&&(e-=l);k?g+=l:f+=l}d.beginUpdate();try{for(var l=0,k=null,n=0,m=null,p=d.getChildCount(a),r=0;rthis.wrap||!c&&k.y+k.height+q.height+2*this.spacing>this.wrap))k=null,c?g+=l+this.spacing:f+=l+this.spacing,l= +0;var l=Math.max(l,c?q.height:q.width),t=0;if(!this.borderCollapse)var x=this.graph.getCellStyle(s),t=mxUtils.getNumber(x,mxConstants.STYLE_STROKEWIDTH,1);null!=k?c?q.x=n+this.spacing+Math.floor(t/2):q.y=n+this.spacing+Math.floor(t/2):this.keepFirstLocation||(c?q.x=f:q.y=g);c?q.y=g:q.x=f;this.fill&&null!=e&&(c?q.height=e:q.width=e);this.setChildGeometry(s,q);m=s;k=q;n=c?k.x+k.width+Math.floor(t/2):k.y+k.height+Math.floor(t/2)}}}this.resizeParent&&null!=b&&null!=k&&!this.graph.isCellCollapsed(a)?this.updateParentGeometry(a, b,k):this.resizeLast&&null!=b&&(null!=k&&null!=m)&&(c?k.width=b.width-k.x-this.spacing-this.marginRight-this.marginLeft:k.height=b.height-k.y-this.spacing-this.marginBottom,this.setChildGeometry(m,k))}finally{d.endUpdate()}}};mxStackLayout.prototype.setChildGeometry=function(a,b){var c=this.graph.getCellGeometry(a);(null==c||b.x!=c.x||b.y!=c.y||b.width!=c.width||b.height!=c.height)&&this.graph.getModel().setGeometry(a,b)}; mxStackLayout.prototype.updateParentGeometry=function(a,b,c){var d=this.isHorizontal(),e=this.graph.getModel(),f=b.clone();d?(c=c.x+c.width+this.spacing+this.marginRight,f.width=this.resizeParentMax?Math.max(f.width,c):c):(c=c.y+c.height+this.spacing+this.marginBottom,f.height=this.resizeParentMax?Math.max(f.height,c):c);(b.x!=f.x||b.y!=f.y||b.width!=f.width||b.height!=f.height)&&e.setGeometry(a,f)}; function mxPartitionLayout(a,b,c,d){mxGraphLayout.call(this,a);this.horizontal=null!=b?b:!0;this.spacing=c||0;this.border=d||0}mxPartitionLayout.prototype=new mxGraphLayout;mxPartitionLayout.prototype.constructor=mxPartitionLayout;mxPartitionLayout.prototype.horizontal=null;mxPartitionLayout.prototype.spacing=null;mxPartitionLayout.prototype.border=null;mxPartitionLayout.prototype.resizeVertices=!0;mxPartitionLayout.prototype.isHorizontal=function(){return this.horizontal}; @@ -791,7 +791,7 @@ mxCompactTreeLayout.prototype.apply=function(a,b){var c=this.graph.getModel(),d= mxCompactTreeLayout.prototype.createLine=function(a,b,c){var d={};d.dx=a;d.dy=b;d.next=c;return d};mxCompactTreeLayout.prototype.adjustParents=function(){var a=[],b;for(b in this.parentsChanged)a.push(this.parentsChanged[b]);this.arrangeGroups(mxUtils.sortCells(a,!0),this.groupPadding,this.groupPaddingTop,this.groupPaddingRight,this.groupPaddingBottom,this.groupPaddingLeft)}; mxCompactTreeLayout.prototype.localEdgeProcessing=function(a){this.processNodeOutgoing(a);for(a=a.child;null!=a;)this.localEdgeProcessing(a),a=a.next}; mxCompactTreeLayout.prototype.processNodeOutgoing=function(a){for(var b=a.child,c=a.cell,d=0,e=[];null!=b;){d++;var f=b.x;this.horizontal&&(f=b.y);e.push(new WeightedCellSorter(b,f));b=b.next}e.sort(WeightedCellSorter.prototype.compare);var f=a.width,g=(d+1)*this.prefHozEdgeSep;f>g+2*this.prefHozEdgeSep&&(f-=2*this.prefHozEdgeSep);a=f/d;b=a/2;f>g+2*this.prefHozEdgeSep&&(b+=this.prefHozEdgeSep);for(var f=this.minEdgeJetty-this.prefVertEdgeOff,g=0,k=this.getVertexBounds(c),l=0;ld/2&&(f-=this.prefVertEdgeOff);b+=a;g=Math.max(g,f)}}; +e[l].cell.cell,m=this.getVertexBounds(n),n=this.graph.getEdgesBetween(c,n,!1),p=[],r=0,s=0,q=0;qd/2&&(f-=this.prefVertEdgeOff);b+=a;g=Math.max(g,f)}}; function WeightedCellSorter(a,b){this.cell=a;this.weightedValue=b}WeightedCellSorter.prototype.weightedValue=0;WeightedCellSorter.prototype.nudge=!1;WeightedCellSorter.prototype.visited=!1;WeightedCellSorter.prototype.rankIndex=null;WeightedCellSorter.prototype.cell=null;WeightedCellSorter.prototype.compare=function(a,b){return null!=a&&null!=b?b.weightedValue>a.weightedValue?1:b.weightedValuethis.forceConstant&&(this.forceConstant= -0.001);this.forceConstantSquared=this.forceConstant*this.forceConstant;for(d=0;db&&(b=0.001);var c=this.dispX[a]/b*Math.min(b,this.temperature),b=this.dispY[a]/b*Math.min(b,this.temperature);this.dispX[a]=0;this.dispY[a]=0;this.cellLocation[a][0]+=c;this.cellLocation[a][1]+=b}}; mxFastOrganicLayout.prototype.calcAttraction=function(){for(var a=0;a>1,++e[l]}return c}; -mxMedianHybridCrossingReduction.prototype.transpose=function(a,b){for(var c=!0,d=0;c&&10>d++;)for(var e=1==a%2&&1==d%2,c=!1,f=0;fm&&(m=l);k[m]=n}for(var p=null,s=null,r=null,q=null,t=null,x=null,u=null,A=null,l=0;lt[y]&&v++,r[z]x[y]&&v++,q[z]d++;)for(var e=1==a%2&&1==d%2,c=!1,f=0;fm&&(m=l);k[m]=n}for(var p=null,r=null,s=null,q=null,t=null,x=null,u=null,A=null,l=0;lt[y]&&v++,s[z]x[y]&&v++,q[z]a.medianValue?-1:b.medianValuex+1&&(n==d[l].length-1?(e.setGeneralPurposeVariable(l,u),p=!0):(n=d[l][n+1],x=n.getGeneralPurposeVariable(l),x=x-n.width/2-this.intraCellSpacing-e.width/2,x>u?(e.setGeneralPurposeVariable(l, +mxCoordinateAssignment.prototype.minNode=function(a){for(var b=[],c=new mxDictionary,d=[],e=0;e<=a.maxRank;e++){d[e]=a.ranks[e];for(var f=0;fx+1&&(n==d[l].length-1?(e.setGeneralPurposeVariable(l,u),p=!0):(n=d[l][n+1],x=n.getGeneralPurposeVariable(l),x=x-n.width/2-this.intraCellSpacing-e.width/2,x>u?(e.setGeneralPurposeVariable(l, u),p=!0):x>e.getGeneralPurposeVariable(l)+1&&(e.setGeneralPurposeVariable(l,x),p=!0)));if(p){for(e=0;e=k&&l<=s?g.setGeneralPurposeVariable(a,l):ls&&(g.setGeneralPurposeVariable(a,s),this.currentXDelta+=l-s);d[f].visited=!0}};mxCoordinateAssignment.prototype.calculatedWeightedValue=function(a,b){for(var c=0,d=0;d=k&&l<=r?g.setGeneralPurposeVariable(a,l):lr&&(g.setGeneralPurposeVariable(a,r),this.currentXDelta+=l-r);d[f].visited=!0}};mxCoordinateAssignment.prototype.calculatedWeightedValue=function(a,b){for(var c=0,d=0;dthis.widestRankValue&&(this.widestRankValue=k,this.widestRank=e);this.rankWidths[e]=k}!0==l&&mxLog.warn("At least one cell has no bounds");this.rankY[e]=c;k=f/2+d/2+this.interRankCellSpacing;d=f;c=this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_WEST?c+k:c- k;for(n=0;ne.maxRank-e.minRank-1)){for(var f=e.getGeneralPurposeVariable(e.minRank+1),g=!0,k=0,l=e.minRank+2;le.minRank+1;l--)s=e.getX(l-1),p==s?(m[l-e.minRank-2]=p,g++):this.repositionValid(b,e,l-1,p)?(m[l-e.minRank-2]=p,g++):(m[l-e.minRank-2]=e.getX(l-1),p=s);if(g>k||f>k)if(g>=f)for(l=e.maxRank-2;l>e.minRank;l--)e.setX(l,m[l-e.minRank-1]);else if(f>g)for(l=e.minRank+2;le.maxRank-e.minRank-1)){for(var f=e.getGeneralPurposeVariable(e.minRank+1),g=!0,k=0,l=e.minRank+2;le.minRank+1;l--)r=e.getX(l-1),p==r?(m[l-e.minRank-2]=p,g++):this.repositionValid(b,e,l-1,p)?(m[l-e.minRank-2]=p,g++):(m[l-e.minRank-2]=e.getX(l-1),p=r);if(g>k||f>k)if(g>=f)for(l=e.maxRank-2;l>e.minRank;l--)e.setX(l,m[l-e.minRank-1]);else if(f>g)for(l=e.minRank+2;le)return!1;f=b.getGeneralPurposeVariable(c);if(df){if(e==a.length-1)return!0;a=a[e+1];c=a.getGeneralPurposeVariable(c);c=c-a.width/2-this.intraCellSpacing-b.width/2;if(!(c>=d))return!1}return!0}; mxCoordinateAssignment.prototype.setCellLocations=function(a,b){this.rankTopY=[];this.rankBottomY=[];for(var c=0;ck;k++){if(-1(f+1)*this.prefHozEdgeSep+2*this.prefHozEdgeSep&&(m+=this.prefHozEdgeSep,p-=this.prefHozEdgeSep);l=(p-m)/f;m+=l/2;p=this.minEdgeJetty-this.prefVertEdgeOff;for(n=s=0;nf/2&&(p-=this.prefVertEdgeOff);for(t=0;tk;k++){if(-1(f+1)*this.prefHozEdgeSep+2*this.prefHozEdgeSep&&(m+=this.prefHozEdgeSep,p-=this.prefHozEdgeSep);l=(p-m)/f;m+=l/2;p=this.minEdgeJetty-this.prefVertEdgeOff;for(n=r=0;nf/2&&(p-=this.prefVertEdgeOff);for(t=0;ta.weightedValue?-1:b.weightedValuef&&(f=l,e=k)}}0==c.length&&null!=e&&c.push(e)}return c}; +mxSwimlaneLayout.prototype.findRoots=function(a,b){var c=[];if(null!=a&&null!=b){var d=this.graph.model,e=null,f=-1E5,g;for(g in b){var k=b[g];if(null!=k&&d.isVertex(k)&&this.graph.isCellVisible(k)&&d.isAncestor(a,k)){for(var l=this.getEdges(k),n=0,m=0,p=0;pf&&(f=l,e=k)}}0==c.length&&null!=e&&c.push(e)}return c}; mxSwimlaneLayout.prototype.getEdges=function(a){var b=this.edgesCache.get(a);if(null!=b)return b;for(var c=this.graph.model,b=[],d=this.graph.isCellCollapsed(a),e=c.getChildCount(a),f=0;f=this.swimlanes.length)&&(s>k||(!b||p)&&s==k))e= -this.traverse(m,b,n[c],d,e,f,g,s)}}else if(null==e[l])for(c=0;c=this.swimlanes.length)&&(r>k||(!b||p)&&r==k))e= +this.traverse(m,b,n[c],d,e,f,g,r)}}else if(null==e[l])for(c=0;c=a.x&&c.x<=a.x+a.width?g.x=c.x:c.y>=a.y&&c.y<=a.y+a.height&&(g.y=c.y),c.xa.x+a.width&&(g.x=a.x+a.width),c.ya.y+a.height&&(g.y=a.y+a.height));return g},EllipsePerimeter:function(a,b,c,d){var e=a.x,f=a.y,g=a.width/2,k=a.height/2,l=e+g,n=f+k;b=c.x;c=c.y;var m=parseInt(b-l),p=parseInt(c-n);if(0==m&&0!=p)return new mxPoint(l, n+k*p/Math.abs(p));if(0==m&&0==p)return new mxPoint(b,c);if(d){if(c>=f&&c<=f+a.height)return a=c-n,a=Math.sqrt(g*g*(1-a*a/(k*k)))||0,b<=e&&(a=-a),new mxPoint(l+a,c);if(b>=e&&b<=e+a.width)return a=b-l,a=Math.sqrt(k*k*(1-a*a/(g*g)))||0,c<=f&&(a=-a),new mxPoint(b,n+a)}e=p/m;n-=e*l;f=g*g*e*e+k*k;a=-2*l*f;k=Math.sqrt(a*a-4*f*(g*g*e*e*l*l+k*k*l*l-g*g*k*k));g=(-a+k)/(2*f);k=(-a-k)/(2*f);l=e*g+n;n=e*k+n;e=Math.sqrt(Math.pow(g-b,2)+Math.pow(l-c,2));b=Math.sqrt(Math.pow(k-b,2)+Math.pow(n-c,2));f=c=0;ec?new mxPoint(g,e):new mxPoint(g,e+a);if(k==c)return g>l?new mxPoint(b,k):new mxPoint(b+f,k);var n=g,m=k;d&&(l>=b&&l<=b+f?n=l:c>=e&&c<=e+a&&(m=c));return l-t&&rMath.PI-t,t=null;q?t=d&&(e&&c.x>=m.x&&c.x<=s.x||!e&&c.y>=m.y&&c.y<=s.y)?e?new mxPoint(c.x,m.y):new mxPoint(m.x,c.y):b==mxConstants.DIRECTION_NORTH?new mxPoint(f+k/2+a*Math.tan(r)/2,g+a):b==mxConstants.DIRECTION_SOUTH?new mxPoint(f+k/2-a*Math.tan(r)/2,g):b==mxConstants.DIRECTION_WEST?new mxPoint(f+k,g+a/2+k*Math.tan(r)/2):new mxPoint(f, -g+a/2-k*Math.tan(r)/2):(d&&(d=new mxPoint(l,n),c.y>=g&&c.y<=g+a?(d.x=e?l:b==mxConstants.DIRECTION_WEST?f+k:f,d.y=c.y):c.x>=f&&c.x<=f+k&&(d.x=c.x,d.y=!e?n:b==mxConstants.DIRECTION_NORTH?g+a:g),l=d.x,n=d.y),t=e&&c.x<=f+k/2||!e&&c.y<=g+a/2?mxUtils.intersection(c.x,c.y,l,n,m.x,m.y,p.x,p.y):mxUtils.intersection(c.x,c.y,l,n,p.x,p.y,s.x,s.y));null==t&&(t=new mxPoint(l,n));return t},HexagonPerimeter:function(a,b,c,d){var e=a.x,f=a.y,g=a.width,k=a.height,l=a.getCenterX();a=a.getCenterY();var n=c.x,m=c.y,p= --Math.atan2(m-a,n-l),s=Math.PI,r=Math.PI/2,q=new mxPoint(l,a);b=null!=b?mxUtils.getValue(b.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;var t=b==mxConstants.DIRECTION_NORTH||b==mxConstants.DIRECTION_SOUTH;b=new mxPoint;q=new mxPoint;if(nf+k||n>e+g&&me+g&&m>f+k)d=!1;if(d){if(t){if(n==l){if(m<=f)return new mxPoint(l,f);if(m>=f+k)return new mxPoint(l,f+k)}else if(n-t&&sMath.PI-t,t=null;q?t=d&&(e&&c.x>=m.x&&c.x<=r.x||!e&&c.y>=m.y&&c.y<=r.y)?e?new mxPoint(c.x,m.y):new mxPoint(m.x,c.y):b==mxConstants.DIRECTION_NORTH?new mxPoint(f+k/2+a*Math.tan(s)/2,g+a):b==mxConstants.DIRECTION_SOUTH?new mxPoint(f+k/2-a*Math.tan(s)/2,g):b==mxConstants.DIRECTION_WEST?new mxPoint(f+k,g+a/2+k*Math.tan(s)/2):new mxPoint(f, +g+a/2-k*Math.tan(s)/2):(d&&(d=new mxPoint(l,n),c.y>=g&&c.y<=g+a?(d.x=e?l:b==mxConstants.DIRECTION_WEST?f+k:f,d.y=c.y):c.x>=f&&c.x<=f+k&&(d.x=c.x,d.y=!e?n:b==mxConstants.DIRECTION_NORTH?g+a:g),l=d.x,n=d.y),t=e&&c.x<=f+k/2||!e&&c.y<=g+a/2?mxUtils.intersection(c.x,c.y,l,n,m.x,m.y,p.x,p.y):mxUtils.intersection(c.x,c.y,l,n,p.x,p.y,r.x,r.y));null==t&&(t=new mxPoint(l,n));return t},HexagonPerimeter:function(a,b,c,d){var e=a.x,f=a.y,g=a.width,k=a.height,l=a.getCenterX();a=a.getCenterY();var n=c.x,m=c.y,p= +-Math.atan2(m-a,n-l),r=Math.PI,s=Math.PI/2,q=new mxPoint(l,a);b=null!=b?mxUtils.getValue(b.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;var t=b==mxConstants.DIRECTION_NORTH||b==mxConstants.DIRECTION_SOUTH;b=new mxPoint;q=new mxPoint;if(nf+k||n>e+g&&me+g&&m>f+k)d=!1;if(d){if(t){if(n==l){if(m<=f)return new mxPoint(l,f);if(m>=f+k)return new mxPoint(l,f+k)}else if(ne+g){if(m==f+k/4)return new mxPoint(e+g,f+k/4);if(m==f+3*k/4)return new mxPoint(e+g,f+3*k/4)}else if(n==e){if(ma)return new mxPoint(e,f+3*k/4)}else if(n==e+g){if(ma)return new mxPoint(e+g,f+3*k/4)}if(m==f)return new mxPoint(l,f);if(m==f+k)return new mxPoint(l,f+k);nf+k/4&&mf+3*k/4&&(b=new mxPoint(e-Math.floor(0.5*g),f+Math.floor(0.5*k)),q=new mxPoint(e+g,f+Math.floor(1.25*k))):n>l&&(m>f+k/4&&mf+3*k/4&&(b=new mxPoint(e+Math.floor(1.5*g),f+Math.floor(0.5*k)),q=new mxPoint(e,f+Math.floor(1.25*k))))}else{if(m==a){if(n<=e)return new mxPoint(e,f+k/2);if(n>=e+g)return new mxPoint(e+g,f+k/ 2)}else if(mf+k){if(n==e+g/4)return new mxPoint(e+g/4,f+k);if(n==e+3*g/4)return new mxPoint(e+3*g/4,f+k)}else if(m==f){if(nl)return new mxPoint(e+3*g/4,f)}else if(m==f+k){if(na)return new mxPoint(e+3*g/4,f+k)}if(n==e)return new mxPoint(e,a);if(n==e+g)return new mxPoint(e+g,a);me+g/4&&ne+3*g/4&&(b=new mxPoint(e+Math.floor(0.5*g),f-Math.floor(0.5*k)),q=new mxPoint(e+Math.floor(1.25*g),f+k)):m>a&&(n>e+g/4&&ne+3*g/4&&(b=new mxPoint(e+Math.floor(0.5*g),f+Math.floor(1.5*k)),q=new mxPoint(e+Math.floor(1.25*g),f)))}d= -l;p=a;n>=e&&n<=e+g?(d=n,p=m=f&&m<=f+k&&(p=m,d=n-n?(b=new mxPoint(e+g,f), -q=new mxPoint(e+g,f+k)):p>n&&pr&&ps-n&&p<=s||p<-s+n&&p>=-s?(b=new mxPoint(e,f),q=new mxPoint(e,f+k)):p<-n&&p>-r?(b=new mxPoint(e+Math.floor(1.5*g),f+Math.floor(0.5*k)),q=new mxPoint(e,f+Math.floor(1.25*k))):p<-r&&p>-s+n&&(b=new mxPoint(e-Math.floor(0.5*g),f+Math.floor(0.5*k)),q=new mxPoint(e+g,f+ -Math.floor(1.25*k)))}else{n=Math.atan2(k/2,g/4);if(p==n)return new mxPoint(e+Math.floor(0.75*g),f);if(p==s-n)return new mxPoint(e+Math.floor(0.25*g),f);if(p==s||p==-s)return new mxPoint(e,f+Math.floor(0.5*k));if(0==p)return new mxPoint(e+g,f+Math.floor(0.5*k));if(p==-n)return new mxPoint(e+Math.floor(0.75*g),f+k);if(p==-s+n)return new mxPoint(e+Math.floor(0.25*g),f+k);0n&&ps-n&&pp&&p>-n?(b=new mxPoint(e+Math.floor(0.5*g),f+Math.floor(1.5*k)),q=new mxPoint(e+Math.floor(1.25*g),f)):p<-n&&p>-s+n?(b=new mxPoint(e,f+k),q=new mxPoint(e+g,f+k)):p<-s+n&&p>-s&&(b=new mxPoint(e-Math.floor(0.25*g),f),q=new mxPoint(e+Math.floor(0.5*g),f+Math.floor(1.5*k)))}q=mxUtils.intersection(l,a,c.x,c.y,b.x,b.y,q.x,q.y)}return null==q?new mxPoint(l,a):q}}; +l;p=a;n>=e&&n<=e+g?(d=n,p=m=f&&m<=f+k&&(p=m,d=n-n?(b=new mxPoint(e+g,f), +q=new mxPoint(e+g,f+k)):p>n&&ps&&pr-n&&p<=r||p<-r+n&&p>=-r?(b=new mxPoint(e,f),q=new mxPoint(e,f+k)):p<-n&&p>-s?(b=new mxPoint(e+Math.floor(1.5*g),f+Math.floor(0.5*k)),q=new mxPoint(e,f+Math.floor(1.25*k))):p<-s&&p>-r+n&&(b=new mxPoint(e-Math.floor(0.5*g),f+Math.floor(0.5*k)),q=new mxPoint(e+g,f+ +Math.floor(1.25*k)))}else{n=Math.atan2(k/2,g/4);if(p==n)return new mxPoint(e+Math.floor(0.75*g),f);if(p==r-n)return new mxPoint(e+Math.floor(0.25*g),f);if(p==r||p==-r)return new mxPoint(e,f+Math.floor(0.5*k));if(0==p)return new mxPoint(e+g,f+Math.floor(0.5*k));if(p==-n)return new mxPoint(e+Math.floor(0.75*g),f+k);if(p==-r+n)return new mxPoint(e+Math.floor(0.25*g),f+k);0n&&pr-n&&pp&&p>-n?(b=new mxPoint(e+Math.floor(0.5*g),f+Math.floor(1.5*k)),q=new mxPoint(e+Math.floor(1.25*g),f)):p<-n&&p>-r+n?(b=new mxPoint(e,f+k),q=new mxPoint(e+g,f+k)):p<-r+n&&p>-r&&(b=new mxPoint(e-Math.floor(0.25*g),f),q=new mxPoint(e+Math.floor(0.5*g),f+Math.floor(1.5*k)))}q=mxUtils.intersection(l,a,c.x,c.y,b.x,b.y,q.x,q.y)}return null==q?new mxPoint(l,a):q}}; function mxPrintPreview(a,b,c,d,e,f,g,k,l){this.graph=a;this.scale=null!=b?b:1/a.pageScale;this.border=null!=d?d:0;this.pageFormat=null!=c?c:a.pageFormat;this.title=null!=k?k:"Printer-friendly version";this.x0=null!=e?e:0;this.y0=null!=f?f:0;this.borderColor=g;this.pageSelector=null!=l?l:!0}mxPrintPreview.prototype.graph=null;mxPrintPreview.prototype.pageFormat=null;mxPrintPreview.prototype.scale=null;mxPrintPreview.prototype.border=0;mxPrintPreview.prototype.marginTop=0; mxPrintPreview.prototype.marginBottom=0;mxPrintPreview.prototype.x0=0;mxPrintPreview.prototype.y0=0;mxPrintPreview.prototype.autoOrigin=!0;mxPrintPreview.prototype.printOverlays=!1;mxPrintPreview.prototype.printControls=!1;mxPrintPreview.prototype.printBackgroundImage=!1;mxPrintPreview.prototype.backgroundColor="#ffffff";mxPrintPreview.prototype.borderColor=null;mxPrintPreview.prototype.title=null;mxPrintPreview.prototype.pageSelector=null;mxPrintPreview.prototype.wnd=null; mxPrintPreview.prototype.targetWindow=null;mxPrintPreview.prototype.pageCount=0;mxPrintPreview.prototype.clipping=!0;mxPrintPreview.prototype.getWindow=function(){return this.wnd}; mxPrintPreview.prototype.getDoctype=function(){var a="";5==document.documentMode?a='\x3cmeta http-equiv\x3d"X-UA-Compatible" content\x3d"IE\x3d5"\x3e':8==document.documentMode?a='\x3cmeta http-equiv\x3d"X-UA-Compatible" content\x3d"IE\x3d8"\x3e':8m,k=f.xn;else l=Math.max(b.x,c.x),n=Math.min(b.x+b.width b.x=k.x,b.y=k.y);null!=g&&(c=new mxCellState,c.x=g.x,c.y=g.y);null!=b&&null!=c&&(a=Math.max(b.x,c.x),k=Math.min(b.x+b.width,c.x+c.width),a=null!=d?d.x:Math.round(k+(a-k)/2),k=f.getRoutingCenterY(b),f=f.getRoutingCenterY(c),null!=d&&(d.y>=b.y&&d.y<=b.y+b.height&&(k=d.y),d.y>=c.y&&d.y<=c.y+c.height&&(f=d.y)),!mxUtils.contains(c,a,k)&&!mxUtils.contains(b,a,k)&&e.push(new mxPoint(a,k)),!mxUtils.contains(c,a,f)&&!mxUtils.contains(b,a,f)&&e.push(new mxPoint(a,f)),1==e.length&&(null!=d?!mxUtils.contains(c, a,d.y)&&!mxUtils.contains(b,a,d.y)&&e.push(new mxPoint(a,d.y)):(f=Math.max(b.y,c.y),b=Math.min(b.y+b.height,c.y+c.height),e.push(new mxPoint(a,f+(b-f)/2)))))},TopToBottom:function(a,b,c,d,e){var f=a.view;d=null!=d&&0=b.x&&d.x<=b.x+b.width&&(a=d.x),k=null!=d?d.y:Math.round(g+(k-g)/2),!mxUtils.contains(c,a,k)&&!mxUtils.contains(b,a,k)&&e.push(new mxPoint(a,k)),a=null!=d&&d.x>=c.x&&d.x<=c.x+c.width?d.x:f.getRoutingCenterX(c),!mxUtils.contains(c,a,k)&&!mxUtils.contains(b,a,k)&&e.push(new mxPoint(a,k)),1==e.length&&(null!=d&&1==e.length?!mxUtils.contains(c,d.x,k)&&!mxUtils.contains(b,d.x,k)&&e.push(new mxPoint(d.x,k)):(f=Math.max(b.x,c.x),b=Math.min(b.x+b.width,c.x+c.width),e.push(new mxPoint(f+(b-f)/ -2,k)))))},SegmentConnector:function(a,b,c,d,e){function f(a){if(null==l||Math.abs(l.x-a.x)>=k||Math.abs(l.y-a.y)>=k)e.push(a),l=a;return l}var g=a.absolutePoints,k=Math.max(1,a.view.scale),l=0r;r++){var z=null!=x&&x.x==u.x,v=null!=x&&x.y==u.y,D=null!=t&&u.y>=t.y&& -u.y<=t.y+t.height,t=null!=t&&u.x>=t.x&&u.x<=t.x+t.width,u=v||null==x&&D,A=z||null==x&&t;if(!(0==r&&(u&&A||z&&v))){if(null!=x&&!v&&!z&&(D||t)){n=D?!1:!0;break}if(A||u){n=u;1==r&&(n=0==d.length%2?u:A);break}}t=c;x=g[s];null!=x&&(x.x=Math.round(x.x),x.y=Math.round(x.y),t=null);u=d[d.length-1];z&&v&&(d=d.slice(1))}n&&(null!=g[0]&&g[0].y!=m.y||null==g[0]&&null!=b&&(m.yb.y+b.height))?f(new mxPoint(p.x,m.y)):!n&&(null!=g[0]&&g[0].x!=m.x||null==g[0]&&null!=b&&(m.xb.x+b.width))&&f(new mxPoint(m.x, -p.y));n?p.y=m.y:p.x=m.x;for(r=0;rc.y+c.height))?f(new mxPoint(p.x,m.y)):!n&&(null!=g[s]&&g[s].x!=m.x||null==g[s]&&null!=c&&(m.xc.x+c.width))&&f(new mxPoint(m.x,p.y))));if(null==g[0]&&null!=b)for(;1< -e.length&&null!=e[1]&&mxUtils.contains(b,e[1].x,e[1].y);)e.splice(1,1);if(null==g[s]&&null!=c)for(;1=k||Math.abs(l.y-a.y)>=k)e.push(a),l=a;return l}var g=a.absolutePoints,k=Math.max(1,a.view.scale),l=0s;s++){var z=null!=x&&x.x==u.x,v=null!=x&&x.y==u.y,D=null!=t&&u.y>=t.y&& +u.y<=t.y+t.height,t=null!=t&&u.x>=t.x&&u.x<=t.x+t.width,u=v||null==x&&D,A=z||null==x&&t;if(!(0==s&&(u&&A||z&&v))){if(null!=x&&!v&&!z&&(D||t)){n=D?!1:!0;break}if(A||u){n=u;1==s&&(n=0==d.length%2?u:A);break}}t=c;x=g[r];null!=x&&(x.x=Math.round(x.x),x.y=Math.round(x.y),t=null);u=d[d.length-1];z&&v&&(d=d.slice(1))}n&&(null!=g[0]&&g[0].y!=m.y||null==g[0]&&null!=b&&(m.yb.y+b.height))?f(new mxPoint(p.x,m.y)):!n&&(null!=g[0]&&g[0].x!=m.x||null==g[0]&&null!=b&&(m.xb.x+b.width))&&f(new mxPoint(m.x, +p.y));n?p.y=m.y:p.x=m.x;for(s=0;sc.y+c.height))?f(new mxPoint(p.x,m.y)):!n&&(null!=g[r]&&g[r].x!=m.x||null==g[r]&&null!=c&&(m.xc.x+c.width))&&f(new mxPoint(m.x,p.y))));if(null==g[0]&&null!=b)for(;1< +e.length&&null!=e[1]&&mxUtils.contains(b,e[1].x,e[1].y);)e.splice(1,1);if(null==g[r]&&null!=c)for(;1 +p,r,s),v),m=v.x,p=v.y,r=v.width,s=v.height));null!=c&&(d[1]=mxUtils.getPortConstraints(c,a,!1,mxConstants.DIRECTION_MASK_ALL),v=mxUtils.getValue(c.style,mxConstants.STYLE_ROTATION,0),0!=v&&(v=mxUtils.getBoundingBox(new mxRectangle(q,t,x,u),v),q=v.x,t=v.y,x=v.width,u=v.height));m=Math.round(10*m)/10;p=Math.round(10*p)/10;r=Math.round(10*r)/10;s=Math.round(10*s)/10;q=Math.round(10*q)/10;t=Math.round(10*t)/10;x=Math.round(10*x)/10;u=Math.round(10*u)/10;a=[0,0];m=[[m,p,r,s],[q,t,x,u]];A=[f,A];for(v=0;2> v;v++)mxEdgeStyle.limits[v][1]=m[v][0]-A[v],mxEdgeStyle.limits[v][2]=m[v][1]-A[v],mxEdgeStyle.limits[v][4]=m[v][0]+m[v][2]+A[v],mxEdgeStyle.limits[v][8]=m[v][1]+m[v][3]+A[v];A=m[0][1]+m[0][3]/2;p=m[1][1]+m[1][3]/2;v=m[0][0]+m[0][2]/2-(m[1][0]+m[1][2]/2);D=A-p;A=0;0>v?A=0>D?2:1:0>=D&&(A=3,0==v&&(A=2));p=null;null!=b&&(p=l);b=[[0.5,0.5],[0.5,0.5]];for(v=0;2>v;v++)null!=p&&(b[v][0]=(p.x-m[v][0])/m[v][2],1>=Math.abs(p.x-m[v][0])?a[v]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(p.x-m[v][0]-m[v][2])&&(a[v]= -mxConstants.DIRECTION_MASK_EAST),b[v][1]=(p.y-m[v][1])/m[v][3],1>=Math.abs(p.y-m[v][1])?a[v]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(p.y-m[v][1]-m[v][3])&&(a[v]=mxConstants.DIRECTION_MASK_SOUTH)),p=null,null!=c&&(p=n);v=m[0][1]-(m[1][1]+m[1][3]);n=m[0][0]-(m[1][0]+m[1][2]);p=m[1][1]-(m[0][1]+m[0][3]);s=m[1][0]-(m[0][0]+m[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(n-z,0);mxEdgeStyle.vertexSeperations[2]=Math.max(v-z,0);mxEdgeStyle.vertexSeperations[4]=Math.max(p-z,0);mxEdgeStyle.vertexSeperations[3]= -Math.max(s-z,0);z=[];c=[];l=[];c[0]=n>=s?mxConstants.DIRECTION_MASK_WEST:mxConstants.DIRECTION_MASK_EAST;l[0]=v>=p?mxConstants.DIRECTION_MASK_NORTH:mxConstants.DIRECTION_MASK_SOUTH;c[1]=mxUtils.reversePortConstraints(c[0]);l[1]=mxUtils.reversePortConstraints(l[0]);n=n>=s?n:s;p=v>=p?v:p;s=[[0,0],[0,0]];r=!1;for(v=0;2>v;v++)0==a[v]&&(0==(c[v]&d[v])&&(c[v]=mxUtils.reversePortConstraints(c[v])),0==(l[v]&d[v])&&(l[v]=mxUtils.reversePortConstraints(l[v])),s[v][0]=l[v],s[v][1]=c[v]);0v;v++)if(0==a[v]&&(0==(s[v][0]&d[v])&&(s[v][0]=s[v][1]),z[v]=s[v][0]&d[v],z[v]|=(s[v][1]&d[v])<<8,z[v]|=(s[1-v][v]&d[v])<<16,z[v]|=(s[1-v][1-v]&d[v])<<24,0==(z[v]&15)&&(z[v]<<=8),0==(z[v]&3840)&&(z[v]= +mxConstants.DIRECTION_MASK_EAST),b[v][1]=(p.y-m[v][1])/m[v][3],1>=Math.abs(p.y-m[v][1])?a[v]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(p.y-m[v][1]-m[v][3])&&(a[v]=mxConstants.DIRECTION_MASK_SOUTH)),p=null,null!=c&&(p=n);v=m[0][1]-(m[1][1]+m[1][3]);n=m[0][0]-(m[1][0]+m[1][2]);p=m[1][1]-(m[0][1]+m[0][3]);r=m[1][0]-(m[0][0]+m[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(n-z,0);mxEdgeStyle.vertexSeperations[2]=Math.max(v-z,0);mxEdgeStyle.vertexSeperations[4]=Math.max(p-z,0);mxEdgeStyle.vertexSeperations[3]= +Math.max(r-z,0);z=[];c=[];l=[];c[0]=n>=r?mxConstants.DIRECTION_MASK_WEST:mxConstants.DIRECTION_MASK_EAST;l[0]=v>=p?mxConstants.DIRECTION_MASK_NORTH:mxConstants.DIRECTION_MASK_SOUTH;c[1]=mxUtils.reversePortConstraints(c[0]);l[1]=mxUtils.reversePortConstraints(l[0]);n=n>=r?n:r;p=v>=p?v:p;r=[[0,0],[0,0]];s=!1;for(v=0;2>v;v++)0==a[v]&&(0==(c[v]&d[v])&&(c[v]=mxUtils.reversePortConstraints(c[v])),0==(l[v]&d[v])&&(l[v]=mxUtils.reversePortConstraints(l[v])),r[v][0]=l[v],r[v][1]=c[v]);0v;v++)if(0==a[v]&&(0==(r[v][0]&d[v])&&(r[v][0]=r[v][1]),z[v]=r[v][0]&d[v],z[v]|=(r[v][1]&d[v])<<8,z[v]|=(r[1-v][v]&d[v])<<16,z[v]|=(r[1-v][1-v]&d[v])<<24,0==(z[v]&15)&&(z[v]<<=8),0==(z[v]&3840)&&(z[v]= z[v]&15|z[v]>>8),0==(z[v]&983040)&&(z[v]=z[v]&65535|(z[v]&251658240)>>8),a[v]=z[v]&15,d[v]==mxConstants.DIRECTION_MASK_WEST||d[v]==mxConstants.DIRECTION_MASK_NORTH||d[v]==mxConstants.DIRECTION_MASK_EAST||d[v]==mxConstants.DIRECTION_MASK_SOUTH))a[v]=d[v];d=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];z=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];d-=A;z-=A;1>d&&(d+=4);1>z&&(z+=4);d=mxEdgeStyle.routePatterns[d-1][z-1];mxEdgeStyle.wayPoints1[0][0]=m[0][0];mxEdgeStyle.wayPoints1[0][1]=m[0][1];switch(a[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-= f;mxEdgeStyle.wayPoints1[0][1]+=b[0][1]*m[0][3];break;case mxConstants.DIRECTION_MASK_SOUTH:mxEdgeStyle.wayPoints1[0][0]+=b[0][0]*m[0][2];mxEdgeStyle.wayPoints1[0][1]+=m[0][3]+f;break;case mxConstants.DIRECTION_MASK_EAST:mxEdgeStyle.wayPoints1[0][0]+=m[0][2]+f;mxEdgeStyle.wayPoints1[0][1]+=b[0][1]*m[0][3];break;case mxConstants.DIRECTION_MASK_NORTH:mxEdgeStyle.wayPoints1[0][0]+=b[0][0]*m[0][2],mxEdgeStyle.wayPoints1[0][1]-=f}f=0;c=z=0<(a[0]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))? -0:1;for(v=0;v>5,p<<=A,15>=4),s=0<(d[v]&mxEdgeStyle.CENTER_MASK),(r||t)&&9>p?(r=r?0:1,q=s&&0==l?m[r][0]+b[r][0]*m[r][2]:s?m[r][1]+b[r][1]* -m[r][3]:mxEdgeStyle.limits[r][p],0==l?(p=(q-mxEdgeStyle.wayPoints1[f][0])*n[0],0>5,p<<=A,15>=4),r=0<(d[v]&mxEdgeStyle.CENTER_MASK),(s||t)&&9>p?(s=s?0:1,q=r&&0==l?m[s][0]+b[s][0]*m[s][2]:r?m[s][1]+b[s][1]* +m[s][3]:mxEdgeStyle.limits[s][p],0==l?(p=(q-mxEdgeStyle.wayPoints1[f][0])*n[0],0e&&(e+=4);1>a&&(a+=4);b=routePatterns[e-1][a-1];if(0==c||0==d)null!=inlineRoutePatterns[e-1][a- 1]&&(b=inlineRoutePatterns[e-1][a-1]);return b}},mxStyleRegistry={values:[],putValue:function(a,b){mxStyleRegistry.values[a]=b},getValue:function(a){return mxStyleRegistry.values[a]},getName:function(a){for(var b in mxStyleRegistry.values)if(mxStyleRegistry.values[b]==a)return b;return null}};mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation); mxStyleRegistry.putValue(mxConstants.EDGESTYLE_LOOP,mxEdgeStyle.Loop);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SIDETOSIDE,mxEdgeStyle.SideToSide);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_TOPTOBOTTOM,mxEdgeStyle.TopToBottom);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ORTHOGONAL,mxEdgeStyle.OrthConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SEGMENT,mxEdgeStyle.SegmentConnector);mxStyleRegistry.putValue(mxConstants.PERIMETER_ELLIPSE,mxPerimeter.EllipsePerimeter); @@ -1225,7 +1225,7 @@ mxGraphView.prototype.updateEdgeBounds=function(a){var b=a.absolutePoints,c=b[0] Math.max(1,n-k)}}; mxGraphView.prototype.getPoint=function(a,b){var c=a.getCenterX(),d=a.getCenterY();if(null!=a.segments&&(null==b||b.relative)){for(var e=a.absolutePoints.length,f=Math.round(((null!=b?b.x/2:0)+0.5)*a.length),g=a.segments[0],k=0,l=1;f>=Math.round(k+g)&&l=f?0:f*f/(a*a+n*n));a>e&&(a=e);e=Math.sqrt(mxUtils.ptSegDistSq(g.x,g.y,k.x,k.y,b,c));-1==mxUtils.relativeCcw(g.x,g.y,k.x,k.y,b,c)&&(e=-e);return new mxPoint(-2*((d/2-p-a)/d),e/this.scale)}}return new mxPoint}; mxGraphView.prototype.updateEdgeLabelOffset=function(a){var b=a.absolutePoints;a.absoluteOffset.x=a.getCenterX();a.absoluteOffset.y=a.getCenterY();if(null!=b&&0this.model.getChildCount(b)&&c--;this.model.add(b,a[k],c+k);this.autoSizeCellsOnAdd&&this.autoSizeCell(a[k],!0);this.isExtendParentsOnAdd(a[k])&&this.isExtendParent(a[k])&&this.extendParent(a[k]);(null==g||g)&&this.constrainChild(a[k]);null!=d&&this.cellConnected(a[k],d,!0);null!=e&&this.cellConnected(a[k],e,!1)}this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,"cells",a,"parent",b,"index",c,"source",d,"target", +mxGraph.prototype.cellsAdded=function(a,b,c,d,e,f,g){if(null!=a&&null!=b&&null!=c){this.model.beginUpdate();try{for(var k=f?this.view.getState(b):null,l=null!=k?k.origin:null,n=new mxPoint(0,0),k=0;kthis.model.getChildCount(b)&&c--;this.model.add(b,a[k],c+k);this.autoSizeCellsOnAdd&&this.autoSizeCell(a[k],!0);this.isExtendParentsOnAdd(a[k])&&this.isExtendParent(a[k])&&this.extendParent(a[k]);(null==g||g)&&this.constrainChild(a[k]);null!=d&&this.cellConnected(a[k],d,!0);null!=e&&this.cellConnected(a[k],e,!1)}this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,"cells",a,"parent",b,"index",c,"source",d,"target", e,"absolute",f))}finally{this.model.endUpdate()}}};mxGraph.prototype.autoSizeCell=function(a,b){if(null!=b?b:1)for(var c=this.model.getChildCount(a),d=0;d=a&&s.y+s.height<=l&&s.y>=b&&s.x+s.width<=k?f.push(p):this.getCells(a, +mxGraph.prototype.getCells=function(a,b,c,d,e,f){f=null!=f?f:[];if(0=a&&r.y+r.height<=l&&r.y>=b&&r.x+r.width<=k?f.push(p):this.getCells(a, b,c,d,p,f)}}}return f};mxGraph.prototype.getCellsBeyond=function(a,b,c,d,e){var f=[];if(d||e)if(null==c&&(c=this.getDefaultParent()),null!=c)for(var g=this.model.getChildCount(c),k=0;k=a)&&(!e||n.y>=b)&&f.push(l)}return f}; -mxGraph.prototype.findTreeRoots=function(a,b,c){b=null!=b?b:!1;c=null!=c?c:!1;var d=[];if(null!=a){for(var e=this.getModel(),f=e.getChildCount(a),g=null,k=0,l=0;lk&&(k=m,g=n)}}0==d.length&&null!=g&&d.push(g)}return d}; +mxGraph.prototype.findTreeRoots=function(a,b,c){b=null!=b?b:!1;c=null!=c?c:!1;var d=[];if(null!=a){for(var e=this.getModel(),f=e.getChildCount(a),g=null,k=0,l=0;lk&&(k=m,g=n)}}0==d.length&&null!=g&&d.push(g)}return d}; mxGraph.prototype.traverse=function(a,b,c,d,e){if(null!=c&&null!=a&&(b=null!=b?b:!0,e=e||new mxDictionary,!e.get(a)&&(e.put(a,!0),d=c(a,d),null==d||d)))if(d=this.model.getEdgeCount(a),0d&&(a+=c,e&&(a=this.graph.snap(a/f)*f));if(0==d||3==d||5==d)p+=b,e&&(p=this.graph.snap(p/f)*f);else if(2==d||4==d||7==d)s+=b,e&&(s=this.graph.snap(s/ -f)*f);e=s-p;c=r-a;k&&(k=this.graph.getCellGeometry(this.state.cell),null!=k&&(k=k.width/k.height,1==d||2==d||7==d||6==d?e=c*k:c=e/k,0==d&&(p=s-e,a=r-c)));l&&(e+=e-n,c+=c-m,p+=q-(p+e/2),a+=t-(a+c/2));0>e&&(p+=e,e=Math.abs(e));0>c&&(a+=c,c=Math.abs(c));d=new mxRectangle(p+g.x*f,a+g.y*f,e,c);null!=this.minBounds&&(d.width=Math.max(d.width,this.minBounds.x*f+this.minBounds.width*f+Math.max(0,this.x0*f-d.x)),d.height=Math.max(d.height,this.minBounds.y*f+this.minBounds.height*f+Math.max(0,this.y0*f-d.y))); +mxVertexHandler.prototype.union=function(a,b,c,d,e,f,g,k,l){if(this.singleSizer)return d=a.x+a.width+b,g=a.y+a.height+c,e&&(d=this.graph.snap(d/f)*f,g=this.graph.snap(g/f)*f),f=new mxRectangle(a.x,a.y,0,0),f.add(new mxRectangle(d,g,0,0)),f;var n=a.width,m=a.height,p=a.x-g.x*f,r=p+n;a=a.y-g.y*f;var s=a+m,q=p+n/2,t=a+m/2;4d&&(a+=c,e&&(a=this.graph.snap(a/f)*f));if(0==d||3==d||5==d)p+=b,e&&(p=this.graph.snap(p/f)*f);else if(2==d||4==d||7==d)r+=b,e&&(r=this.graph.snap(r/ +f)*f);e=r-p;c=s-a;k&&(k=this.graph.getCellGeometry(this.state.cell),null!=k&&(k=k.width/k.height,1==d||2==d||7==d||6==d?e=c*k:c=e/k,0==d&&(p=r-e,a=s-c)));l&&(e+=e-n,c+=c-m,p+=q-(p+e/2),a+=t-(a+c/2));0>e&&(p+=e,e=Math.abs(e));0>c&&(a+=c,c=Math.abs(c));d=new mxRectangle(p+g.x*f,a+g.y*f,e,c);null!=this.minBounds&&(d.width=Math.max(d.width,this.minBounds.x*f+this.minBounds.width*f+Math.max(0,this.x0*f-d.x)),d.height=Math.max(d.height,this.minBounds.y*f+this.minBounds.height*f+Math.max(0,this.y0*f-d.y))); return d};mxVertexHandler.prototype.redraw=function(){this.selectionBounds=this.getSelectionBounds(this.state);this.bounds=new mxRectangle(this.selectionBounds.x,this.selectionBounds.y,this.selectionBounds.width,this.selectionBounds.height);this.redrawHandles();this.drawPreview()}; mxVertexHandler.prototype.getHandlePadding=function(){var a=new mxPoint(0,0),b=this.tolerance;if(null!=this.sizers&&0mxUtils.indexOf(this.toolbar.staticElements,a)&&(a.parentNode.removeChild(a),b.push(a));a=c}a=this.toolbar.fontMenu;c=this.toolbar.sizeMenu;if(null==p)this.toolbar.createTextToolbar();else{for(var e=0;emxUtils.indexOf(this.toolbar.staticElements,a)&&(a.parentNode.removeChild(a),b.push(a));a=c}a=this.toolbar.fontMenu;c=this.toolbar.sizeMenu;if(null==p)this.toolbar.createTextToolbar();else{for(var e=0;emxUtils.indexOf(A,t))&&d.setCellStyles(t,y,[k])}}}finally{d.getModel().endUpdate()}}; +l?l.split(";"):[],m=u.slice(),f=0;fmxUtils.indexOf(A,p))&&d.setCellStyles(p,y,[k])}}}finally{d.getModel().endUpdate()}}; d.addListener("cellsInserted",function(a,b){y(b.getProperty("cells"))});d.addListener("textInserted",function(a,b){y(b.getProperty("cells"),!0)});d.connectionHandler.addListener(mxEvent.CONNECT,function(a,b){var c=[b.getProperty("cell")];b.getProperty("terminalInserted")&&c.push(b.getProperty("terminal"));y(c)});this.addListener("styleChanged",mxUtils.bind(this,function(a,b){var c=b.getProperty("cells"),e=!1,f=!1;if(0this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale+0.01)/this.view.scale:(this.cumulativeZoomFactor*=this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale):0.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor= -(this.view.scale-0.01)/this.view.scale:(this.cumulativeZoomFactor/=this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale);this.cumulativeZoomFactor=Math.max(0.01,Math.min(this.view.scale*this.cumulativeZoomFactor,160)/this.view.scale);this.updateZoomTimeout=window.setTimeout(mxUtils.bind(this,function(){this.zoom(this.cumulativeZoomFactor);null!=b&&b(!1);if(null!=t&&mxUtils.hasScrollbars(a.container)){var c=mxUtils.getOffset(a.container), -d=a.container.offsetHeight/2-t.y+c.y;a.container.scrollLeft-=(a.container.offsetWidth/2-t.x+c.x)*(this.cumulativeZoomFactor-1);a.container.scrollTop-=d*(this.cumulativeZoomFactor-1)}this.cumulativeZoomFactor=1;this.updateZoomTimeout=null}),20)};mxEvent.addMouseWheelListener(mxUtils.bind(this,function(b,c){if((mxEvent.isAltDown(b)||mxEvent.isControlDown(b)&&!mxClient.IS_MAC||a.panningHandler.isActive())&&(null==this.dialogs||0==this.dialogs.length))for(var d=mxEvent.getSource(b);null!=d;){if(d==a.container){t= -new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b));a.lazyZoom(c);mxEvent.consume(b);break}d=d.parentNode}}))};EditorUi.prototype.addChromelessClickHandler=function(){var a=urlParams.highlight;null!=a&&0this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale+0.01)/this.view.scale:(this.cumulativeZoomFactor*= +this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale):0.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale-0.01)/this.view.scale:(this.cumulativeZoomFactor/=this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale);this.cumulativeZoomFactor=Math.max(0.01,Math.min(this.view.scale*this.cumulativeZoomFactor,160)/this.view.scale);this.updateZoomTimeout= +window.setTimeout(mxUtils.bind(this,function(){this.zoom(this.cumulativeZoomFactor);null!=b&&b(!1);if(null!=v&&mxUtils.hasScrollbars(a.container)){var c=mxUtils.getOffset(a.container),d=a.container.offsetHeight/2-v.y+c.y;a.container.scrollLeft-=(a.container.offsetWidth/2-v.x+c.x)*(this.cumulativeZoomFactor-1);a.container.scrollTop-=d*(this.cumulativeZoomFactor-1)}this.cumulativeZoomFactor=1;this.updateZoomTimeout=null}),20)};mxEvent.addMouseWheelListener(mxUtils.bind(this,function(b,c){if((mxEvent.isAltDown(b)|| +mxEvent.isControlDown(b)&&!mxClient.IS_MAC||a.panningHandler.isActive())&&(null==this.dialogs||0==this.dialogs.length))for(var d=mxEvent.getSource(b);null!=d;){if(d==a.container){v=new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b));a.lazyZoom(c);mxEvent.consume(b);break}d=d.parentNode}}))}; +EditorUi.prototype.createTemporaryGraph=function(a){a=new Graph(document.createElement("div"),null,null,a);a.resetViewOnRootChange=!1;a.setConnectable(!1);a.gridEnabled=!1;a.autoScroll=!1;a.setTooltips(!1);a.setEnabled(!1);a.container.style.visibility="hidden";a.container.style.position="absolute";a.container.style.overflow="hidden";a.container.style.height="1px";a.container.style.width="1px";return a}; +EditorUi.prototype.addChromelessClickHandler=function(){var a=urlParams.highlight;null!=a&&0mxUtils.indexOf(b,e)&&c.push(e)): -c.push(b[d])}return c};this.connectionHandler.createTargetVertex=function(a,b){var c=this.graph.view.getState(b),c=null!=c?c.style:this.graph.getCellStyle(b);mxUtils.getValue(c,"part",!1)&&(c=this.graph.model.getParent(b),this.graph.model.isVertex(c)&&(b=c));return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};var p=new mxRubberband(this);this.getRubberband=function(){return p};var s=(new Date).getTime(),r=0,q=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove= -function(){var a=this.currentState;q.apply(this,arguments);a!=this.currentState?(s=(new Date).getTime(),r=0):r=(new Date).getTime()-s};var t=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(a){return null!=this.currentState&&a.getState()==this.currentState&&2E3=a&&t.y+t.height<=l&&t.y>=b&&t.x+t.width<=k)&&f.push(q);this.getAllCells(a,b,c,d,q,f)}}}return f};var D=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(a,b,c){return this.graph.isCellSelected(a)?!1:D.apply(this,arguments)};this.isCellLocked=function(a){for(a=this.view.getState(a);null!=a;){if("1"==mxUtils.getValue(a.style, "locked","0"))return!0;a=this.view.getState(this.model.getParent(a.cell))}return!1};var y=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(a,b){if("mouseDown"==b.getProperty("eventName")){var c=b.getProperty("event").getState();y=null!=c&&!this.isSelectionEmpty()&&!this.isCellSelected(c.cell)?this.getSelectionCells():null}}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(a,b){if(!mxEvent.isMultiTouchEvent(b)){var c=b.getProperty("event"),d=b.getProperty("cell"); null==d?(c=mxUtils.convertPoint(this.container,mxEvent.getClientX(c),mxEvent.getClientY(c)),p.start(c.x,c.y)):null!=y?this.addSelectionCells(y):1s?"a":"p",tt:12>s?"am":"pm",T:12>s?"A":"P",TT:12>s?"AM":"PM",Z:c?"UTC":(String(a).match(e)||[""]).pop().replace(f,""),o:(0r?"a":"p",tt:12>r?"am":"pm",T:12>r?"A":"P",TT:12>r?"AM":"PM",Z:c?"UTC":(String(a).match(e)||[""]).pop().replace(f,""),o:(0this.activationDelay)if(this.currentState!=a&&(d>this.updateDelay&&null!=a||null==this.bbox||null==b||null==c||!mxUtils.contains(this.bbox,b,c)))null!=a&&this.graph.isEnabled()?(this.removeNodes(),this.setCurrentState(a),this.repaint(),this.graph.connectionHandler.constraintHandler.currentFocus!= a&&this.graph.connectionHandler.constraintHandler.reset()):this.reset()}else this.reset()};HoverIcons.prototype.setCurrentState=function(a){"eastwest"!=a.style.portConstraint&&(this.graph.container.appendChild(this.arrowUp),this.graph.container.appendChild(this.arrowDown));this.graph.container.appendChild(this.arrowRight);this.graph.container.appendChild(this.arrowLeft);this.currentState=a}; -(function(){var a=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(b,c,f,g){if(null!=c&&null!=b&&("1"==c.style.snapToPoint||"1"==b.style.snapToPoint)){c=this.getTerminalPort(b,c,g);var k=this.getNextPoint(b,f,g),l=this.graph.isOrthogonal(b),n=mxUtils.toRadians(Number(c.style[mxConstants.STYLE_ROTATION]||"0")),m=new mxPoint(c.getCenterX(),c.getCenterY());if(0!=n)var p=Math.cos(-n),s=Math.sin(-n),k=mxUtils.getRotatedPoint(k,p,s,m);p=parseFloat(b.style[mxConstants.STYLE_PERIMETER_SPACING]|| -0);p+=parseFloat(b.style[g?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);k=this.getPerimeterPoint(c,k,0==n&&l,p);0!=n&&(p=Math.cos(n),s=Math.sin(n),k=mxUtils.getRotatedPoint(k,p,s,m));if(null!=c){n=this.graph.getAllConnectionConstraints(c);l=m=null;for(p=0;pg||Math.abs(f)>g)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(d,c),this.isSpaceEvent(b)?(d=this.x+this.width,c=this.y+this.height,e=this.graph.view.scale,mxEvent.isAltDown(b.getEvent())||(this.width=this.graph.snap(this.width/e)*e,this.height=this.graph.snap(this.height/e)*e,this.graph.isGridEnabled()||(this.width=this.width?"0px 1px 0px 0px":"0px 1px 0px 1px",null==this.secondDiv&&(this.secondDiv=this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)), this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor="",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),b.consume()}};var A=mxRubberband.prototype.reset; @@ -2353,7 +2359,7 @@ function(a){return null!=this.currentTerminalState&&a.getState()==this.currentTe mxConstants.HANDLE_STROKECOLOR)};var E=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(a,b,c){this.handleImage=b==mxEvent.ROTATION_HANDLE?x:b==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:this.handleImage;return E.apply(this,arguments)};var C=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(a){if(null!=a&&1==a.length){var b=this.graph.getModel(),c=b.getParent(a[0]),d=this.graph.getCellGeometry(a[0]);if(b.isEdge(c)&& (null!=d&&d.relative)&&(b=this.graph.view.getState(a[0]),null!=b&&2>b.width&&2>b.height&&null!=b.text&&null!=b.text.boundingBox))return mxRectangle.fromRectangle(b.text.boundingBox)}return C.apply(this,arguments)};var F=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(a){var b=this.graph.getModel(),c=b.getParent(a.cell),d=this.graph.getCellGeometry(a.cell);return b.isEdge(c)&&null!=d&&d.relative&&2>a.width&&2>a.height&&null!=a.text&&null!=a.text.boundingBox? (b=a.text.unrotatedBoundingBox||a.text.boundingBox,new mxRectangle(Math.round(b.x),Math.round(b.y),Math.round(b.width),Math.round(b.height))):F.apply(this,arguments)};var G=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(a,b){var c=this.graph.getModel(),d=c.getParent(this.state.cell),e=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(b)==mxEvent.ROTATION_HANDLE||!c.isEdge(d)||null==e||!e.relative||null==this.state||2<=this.state.width||2<=this.state.height)&& -G.apply(this,arguments)};mxVertexHandler.prototype.isRotationHandleVisible=function(){return this.graph.isEnabled()&&this.rotationEnabled&&this.graph.isCellRotatable(this.state.cell)&&(0>=mxGraphHandler.prototype.maxCells||this.graph.getSelectionCount()=mxGraphHandler.prototype.maxCells||this.graph.getSelectionCount()e)this.originalLineTo.apply(this.canvas,arguments);else{var f=Math.round(e/10),g=this.defaultVariation;5>f&&(f=5,g/=3);for(var k=function(a){return"number"===typeof a?a?0>a?-1:1:a===a?0:NaN:NaN}, -l=k(a-this.lastX)*c/f,k=k(b-this.lastY)*d/f,c=c/e,d=d/e,e=0;e=document.documentMode?(mxEvent.addListener(window,"resize",d),this.graph.addListener("size",d)):new ResizeSensor(this.graph.container,d);if(this.graphConfig.resize||(this.zoomEnabled|| @@ -2786,25 +2792,28 @@ function(){f.style.backgroundColor="#eee"}),mxUtils.setOpacity(a,60),f.style.cur c.style.whiteSpace="nowrap";c.style.zIndex=this.toolbarZIndex;c.style.backgroundColor="#eee";c.style.height=this.toolbarHeight+"px";this.toolbar=c;if("inline"==this.graphConfig["toolbar-position"]){mxUtils.setPrefixedStyle(c.style,"transition","opacity 100ms ease-in-out");mxUtils.setOpacity(c,30);var d=null,e=null,f=mxUtils.bind(this,function(a){null!=d&&(window.clearTimeout(d),fadeThead=null);null!=e&&(window.clearTimeout(e),fadeThead2=null);d=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(c, 0);d=null;e=window.setTimeout(mxUtils.bind(this,function(){c.style.display="none";e=null}),100)}),a||200)}),g=mxUtils.bind(this,function(a){null!=d&&(window.clearTimeout(d),fadeThead=null);null!=e&&(window.clearTimeout(e),fadeThead2=null);c.style.display="";mxUtils.setOpacity(c,a||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(a){mxEvent.isTouchEvent(a)||(g(30),f())}));mxEvent.addListener(c,mxClient.IS_POINTER?"pointermove": "mousemove",function(a){mxEvent.consume(a)});mxEvent.addListener(c,"mouseenter",mxUtils.bind(this,function(a){g(100)}));mxEvent.addListener(c,"mousemove",mxUtils.bind(this,function(a){g(100);mxEvent.consume(a)}));mxEvent.addListener(c,"mouseleave",mxUtils.bind(this,function(a){mxEvent.isTouchEvent(a)||g(30)}));var k=this.graph,l=k.getTolerance();k.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(a,b){this.startX=b.getGraphX();this.startY=b.getGraphY();this.scrollLeft= -k.container.scrollLeft;this.scrollTop=k.container.scrollTop},mouseMove:function(a,b){},mouseUp:function(a,b){mxEvent.isTouchEvent(b.getEvent())&&Math.abs(this.scrollLeft-k.container.scrollLeft)]/g,B={"\n":"%0a","\f":"%0c","\r":"%0d",'"':"%22","'":"%27","(":"%28",")":"%29","*":"%2a", -"\x3c":"%3c","\x3e":"%3e"},E=/^(?:([^:/?# ]+):)?/,G=/^(?:https?|mailto|data)$/i;n=function(){var a={};return function N(d,c,f,g,m){d=C(d);var n=e[d];if(!n||"object"!==typeof n)c.length=0;else{for(var q=n.cssPropBits,p=q&80,u=q&1536,r=NaN,s=0,F=0;s=E)z=q&1?z:"";else if(G=z.charCodeAt(1),B=z.charCodeAt(2),H=48<=G&&57>=G,A=48<=B&&57>=B,43===E&&(H||46===G&&A))z=q&1?(H?"":"0")+z.substring(1):"";else if(45===E&&(H||46===G&&A))z=q&4?(H?"-":"-0")+z.substring(1):q&1?"0":"";else if(46===E&&H)z=q&1?"0"+z:"";else if('url("'===z.substring(0, -5))z=f&&q&16?b(t(k(g,c[s].substring(5,z.length-2)),d,f)):"";else if("("===z.charAt(z.length-1))a:{U=c;ea=s;z=1;aa=ea+1;for(E=U.length;aa]/g,B={"\n":"%0a","\f":"%0c","\r":"%0d",'"':"%22","'":"%27","(":"%28",")":"%29","*":"%2a", +"\x3c":"%3c","\x3e":"%3e"},C=/^(?:([^:/?# ]+):)?/,G=/^(?:https?|mailto|data)$/i;n=function(){var a={};return function N(d,c,f,g,m){d=D(d);var n=e[d];if(!n||"object"!==typeof n)c.length=0;else{for(var q=n.cssPropBits,p=q&80,v=q&1536,r=NaN,s=0,F=0;s=A)C=q&1?C:"";else if(G=C.charCodeAt(1),B=C.charCodeAt(2),z=48<=G&&57>=G,H=48<=B&&57>=B,43===A&&(z||46===G&&H))C=q&1?(z?"":"0")+C.substring(1):"";else if(45===A&&(z||46===G&&H))C=q&4?(z?"-":"-0")+C.substring(1):q&1?"0":"";else if(46===A&&z)C=q&1?"0"+C:"";else if('url("'===C.substring(0, +5))C=f&&q&16?b(t(k(g,c[s].substring(5,C.length-2)),d,f)):"";else if("("===C.charAt(C.length-1))a:{V=c;ea=s;C=1;aa=ea+1;for(A=V.length;aag&&" "===d[l-1]&&--l;f.startAtrule&&f.startAtrule(d[k].toLowerCase(),d.slice(g,l));e="{"===d[e]?a(d,e,c,f):e+1;f.endAtrule&&f.endAtrule()}return e}function a(c,f,g,k){++f;for(k.startBlock&&k.startBlock();fm)return m=~m,m===k?m+1:m;var n=b[m];if("{"!==n)return m===k?m+1:m;a=m+1;m>k&&" "===b[m-1]&&--m;for(g.startRuleset&&g.startRuleset(b.slice(k,m));an)n=~n;else{for(var q=[],p=0,t=a;t])/g;c=b+"";if(ia)c=c.split(g);else{for(var k=[],l=0,m;(m=g.exec(c))!==f;)k.push(c.substring(l,m.index)),k.push(m[0]),l=m.index+m[0].length;k.push(c.substring(l));c=k}p(a,c,0,{r:d,C:d},e)}}function q(b,a,d,e,c){return function(){p(b,a,d,e,c)}}function p(a,d,e,f,g){try{a.H&&0==e&&a.H(g);for(var k,l,m,n=d.length;ec)){for(f=g.length;--f>c;){var k=g[f].v;b.f[k]&b.c.OPTIONAL_ENDTAG||e.push("\x3c/",k,"\x3e")}c/g,Y=/\"/g,U=/^\s*([-.:\w]+)(?:\s*(=)\s*((")[^"]*("|$)|(')[^']*('|$)|(?=[a-z][-\w]*\s*=)|[^"'\s]*))?/i,ia=3==="a,b".split(/(,)/).length,ea=b.c.CDATA|b.c.RCDATA,aa={},fa={},ja=/^(?:https?|mailto|data)$/i,ga={};ga.pa=ga.escapeAttrib=k;ga.ra=ga.makeHtmlSanitizer=r;ga.sa=ga.makeSaxParser=n;ga.ta=ga.makeTagPolicy=W;ga.wa=ga.normalizeRCData=l;ga.xa= -ga.sanitize=function(b,a,d,e){return P(b,W(a,d,e))};ga.ya=ga.sanitizeAttribs=S;ga.za=ga.sanitizeWithPolicy=P;ga.Ba=ga.unescapeEntities=g;return ga}(u);g=b.sanitize;"undefined"!==typeof window&&(window.html=b,window.html_sanitize=g)})(); +a="*::"+d;if(b.hasOwnProperty(a))return b[a]}function S(d,e,c,g,k){for(var l=0;l/g,Y=/\"/g,V=/^\s*([-.:\w]+)(?:\s*(=)\s*((")[^"]*("|$)|(')[^']*('|$)|(?=[a-z][-\w]*\s*=)|[^"'\s]*))?/i,ia=3==="a,b".split(/(,)/).length,ea=b.c.CDATA|b.c.RCDATA,aa={},fa={},ja=/^(?:https?|mailto|data)$/i,ga={};ga.pa=ga.escapeAttrib=k;ga.ra=ga.makeHtmlSanitizer=r;ga.sa=ga.makeSaxParser=n;ga.ta=ga.makeTagPolicy=W;ga.wa=ga.normalizeRCData=l;ga.xa= +ga.sanitize=function(b,a,d,e){return P(b,W(a,d,e))};ga.ya=ga.sanitizeAttribs=S;ga.za=ga.sanitizeWithPolicy=P;ga.Ba=ga.unescapeEntities=g;return ga}(v);g=b.sanitize;"undefined"!==typeof window&&(window.html=b,window.html_sanitize=g)})(); !function(a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pako=a()}(function(){return function c(f,d,b){function e(k,m){if(!d[k]){if(!f[k]){var n="function"==typeof require&&require;if(!m&&n)return n(k,!0);if(g)return g(k,!0);n=Error("Cannot find module '"+k+"'");throw n.code="MODULE_NOT_FOUND",n;}n=d[k]={exports:{}}; f[k][0].call(n.exports,function(b){var d=f[k][1][b];return e(d?d:b)},n,n.exports,c,f,d,b)}return d[k].exports}for(var g="function"==typeof require&&require,k=0;kd.windowBits&&(d.windowBits+=16);this.err=0;this.msg= "";this.ended=!1;this.chunks=[];this.strm=new n;this.strm.avail_out=0;var e=g.deflateInit2(this.strm,d.level,d.method,d.windowBits,d.memLevel,d.strategy);if(e!==r)throw Error(m[e]);if(d.header&&g.deflateSetHeader(this.strm,d.header),d.dictionary){var c;if(c="string"==typeof d.dictionary?l.string2buf(d.dictionary):"[object ArrayBuffer]"===p.call(d.dictionary)?new Uint8Array(d.dictionary):d.dictionary,e=g.deflateSetDictionary(this.strm,c),e!==r)throw Error(m[e]);this._dict_set=!0}}function e(d,e){var c= @@ -102,10 +102,10 @@ new b(e);if(c.push(d,!0),c.err)throw c.msg;return c.result}var g=c("./zlib/defla f.avail_out&&(f.output=new k.Buf8(m),f.next_out=0,f.avail_out=m),e=g.deflate(f,c),1!==e&&e!==r)return this.onEnd(e),this.ended=!0,!1;0!==f.avail_out&&(0!==f.avail_in||4!==c&&2!==c)||("string"===this.options.to?this.onData(l.buf2binstring(k.shrinkBuf(f.output,f.next_out))):this.onData(k.shrinkBuf(f.output,f.next_out)))}while((0e.windowBits&&(e.windowBits=-e.windowBits,0===e.windowBits&&(e.windowBits=-15));!(0<=e.windowBits&&16>e.windowBits)||d&&d.windowBits||(e.windowBits+=32);15e.windowBits&&0===(15&e.windowBits)&&(e.windowBits|=15);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new p;this.strm.avail_out=0;d=g.inflateInit2(this.strm,e.windowBits);if(d!==m.Z_OK)throw Error(n[d]); -this.header=new r;g.inflateGetHeader(this.strm,this.header)}function e(d,e){var c=new b(e);if(c.push(d,!0),c.err)throw c.msg;return c.result}var g=c("./zlib/inflate"),k=c("./utils/common"),l=c("./utils/strings"),m=c("./zlib/constants"),n=c("./zlib/messages"),p=c("./zlib/zstream"),r=c("./zlib/gzheader"),s=Object.prototype.toString;b.prototype.push=function(b,d){var e,c,f,n,p,r,A=this.strm,B=this.options.chunkSize,E=this.options.dictionary,G=!1;if(this.ended)return!1;c=d===~~d?d:!0===d?m.Z_FINISH:m.Z_NO_FLUSH; -"string"==typeof b?A.input=l.binstring2buf(b):"[object ArrayBuffer]"===s.call(b)?A.input=new Uint8Array(b):A.input=b;A.next_in=0;A.avail_in=A.input.length;do{if(0===A.avail_out&&(A.output=new k.Buf8(B),A.next_out=0,A.avail_out=B),e=g.inflate(A,m.Z_NO_FLUSH),e===m.Z_NEED_DICT&&E&&(r="string"==typeof E?l.string2buf(E):"[object ArrayBuffer]"===s.call(E)?new Uint8Array(E):E,e=g.inflateSetDictionary(this.strm,r)),e===m.Z_BUF_ERROR&&!0===G&&(e=m.Z_OK,G=!1),e!==m.Z_STREAM_END&&e!==m.Z_OK)return this.onEnd(e), -this.ended=!0,!1;A.next_out&&(0!==A.avail_out&&e!==m.Z_STREAM_END&&(0!==A.avail_in||c!==m.Z_FINISH&&c!==m.Z_SYNC_FLUSH)||("string"===this.options.to?(f=l.utf8border(A.output,A.next_out),n=A.next_out-f,p=l.buf2string(A.output,f),A.next_out=n,A.avail_out=B-n,n&&k.arraySet(A.output,A.output,f,n,0),this.onData(p)):this.onData(k.shrinkBuf(A.output,A.next_out))));0===A.avail_in&&0===A.avail_out&&(G=!0)}while((0d&&(b.subarray&&k||!b.subarray&&g))return String.fromCharCode.apply(null,e.shrinkBuf(b,d));for(var c="",f=0;fc;c++)n[c]=252<=c?6:248<=c?5:240<=c?4:224<=c?3:192<= c?(d[k++]=192|c>>>6,d[k++]=128|63&c):65536>c?(d[k++]=224|c>>>12,d[k++]=128|c>>>6&63,d[k++]=128|63&c):(d[k++]=240|c>>>18,d[k++]=128|c>>>12&63,d[k++]=128|c>>>6&63,d[k++]=128|63&c);return d};d.buf2binstring=function(d){return b(d,d.length)};d.binstring2buf=function(b){for(var d=new e.Buf8(b.length),c=0,f=d.length;cg)m[f++]=g;else if(k=n[g],4g?m[f++]=g:(g-=65536,m[f++]=55296|g>>10&1023,m[f++]=56320|1023&g)}return b(m,f)};d.utf8border=function(b,d){var e;d=d||b.length;d>b.length&&(d=b.length);for(e=d-1;0<=e&&128===(192&b[e]);)e--;return 0>e?d:0===e?d:e+n[b[e]]>d?e:d}},{"./common":3}],5:[function(c,f,d){f.exports=function(b,d,c,f){var l=65535&b|0;b=b>>>16&65535|0;for(var m=0;0!==c;){m=2E3c;c++){b=c; -for(var f=0;8>f;f++)b=1&b?3988292384^b>>>1:b>>>1;d[c]=b}return d}();f.exports=function(d,c,f,l){f=l+f;for(d^=-1;l>>8^b[255&(d^c[l])];return d^-1}},{}],8:[function(c,f,d){function b(b,d){return b.msg=E[d],d}function e(b){for(var d=b.length;0<=--d;)b[d]=0}function g(b){var d=b.state,e=d.pending;e>b.avail_out&&(e=b.avail_out);0!==e&&(x.arraySet(b.output,d.pending_buf,d.pending_out,e,b.next_out),b.next_out+=e,d.pending_out+=e,b.total_out+=e,b.avail_out-=e,d.pending-=e,0===d.pending&&(d.pending_out= -0))}function k(b,d){C._tr_flush_block(b,0<=b.block_start?b.block_start:-1,b.strstart-b.block_start,d);b.block_start=b.strstart;g(b.strm)}function l(b,d){b.pending_buf[b.pending++]=d}function m(b,d){b.pending_buf[b.pending++]=d>>>8&255;b.pending_buf[b.pending++]=255&d}function n(b,d){var e,c,f=b.max_chain_length,g=b.strstart,k=b.prev_length,l=b.nice_match,m=b.strstart>b.w_size-X?b.strstart-(b.w_size-X):0,n=b.window,q=b.w_mask,p=b.prev,t=b.strstart+R,u=n[g+k-1],r=n[g+k];b.prev_length>=b.good_match&& -(f>>=2);l>b.lookahead&&(l=b.lookahead);do if(e=d,n[e+k]===r&&n[e+k-1]===u&&n[e]===n[g]&&n[++e]===n[g+1]){g+=2;e++;do;while(n[++g]===n[++e]&&n[++g]===n[++e]&&n[++g]===n[++e]&&n[++g]===n[++e]&&n[++g]===n[++e]&&n[++g]===n[++e]&&n[++g]===n[++e]&&n[++g]===n[++e]&&gk){if(b.match_start=d,k=c,c>=l)break;u=n[g+k-1];r=n[g+k]}}while((d=p[d&q])>m&&0!==--f);return k<=b.lookahead?k:b.lookahead}function p(b){var d,e,c,f,g=b.w_size;do{if(f=b.window_size-b.lookahead-b.strstart,b.strstart>= -g+(g-X)){x.arraySet(b.window,b.window,g,g,0);b.match_start-=g;b.strstart-=g;b.block_start-=g;d=e=b.hash_size;do c=b.head[--d],b.head[d]=c>=g?c-g:0;while(--e);d=e=g;do c=b.prev[--d],b.prev[d]=c>=g?c-g:0;while(--e);f+=g}if(0===b.strm.avail_in)break;d=b.strm;c=b.window;var k=b.strstart+b.lookahead,l=d.avail_in;if(e=(l>f&&(l=f),0===l?0:(d.avail_in-=l,x.arraySet(c,d.input,d.next_in,l,k),1===d.state.wrap?d.adler=A(d.adler,c,l,k):2===d.state.wrap&&(d.adler=B(d.adler,c,l,k)),d.next_in+=l,d.total_in+=l,l)), -b.lookahead+=e,b.lookahead+b.insert>=K){f=b.strstart-b.insert;b.ins_h=b.window[f];for(b.ins_h=(b.ins_h<=K&&(b.ins_h=(b.ins_h<< -b.hash_shift^b.window[b.strstart+K-1])&b.hash_mask,e=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),0!==e&&b.strstart-e<=b.w_size-X&&(b.match_length=n(b,e)),b.match_length>=K)if(c=C._tr_tally(b,b.strstart-b.match_start,b.match_length-K),b.lookahead-=b.match_length,b.match_length<=b.max_lazy_match&&b.lookahead>=K){b.match_length--;do b.strstart++,b.ins_h=(b.ins_h<=K&&(b.ins_h=(b.ins_h<=b.match_length&&(b.strategy===N||b.match_length===K&&4096= -K&&b.match_length<=b.prev_length){f=b.strstart+b.lookahead-K;c=C._tr_tally(b,b.strstart-1-b.prev_match,b.prev_length-K);b.lookahead-=b.prev_length-1;b.prev_length-=2;do++b.strstart<=f&&(b.ins_h=(b.ins_h<f;f++)b=1&b?3988292384^b>>>1:b>>>1;d[c]=b}return d}();f.exports=function(d,c,f,l){f=l+f;for(d^=-1;l>>8^b[255&(d^c[l])];return d^-1}},{}],8:[function(c,f,d){function b(b,d){return b.msg=C[d],d}function e(b){for(var d=b.length;0<=--d;)b[d]=0}function g(b){var d=b.state,e=d.pending;e>b.avail_out&&(e=b.avail_out);0!==e&&(x.arraySet(b.output,d.pending_buf,d.pending_out,e,b.next_out),b.next_out+=e,d.pending_out+=e,b.total_out+=e,b.avail_out-=e,d.pending-=e,0===d.pending&&(d.pending_out= +0))}function k(b,d){D._tr_flush_block(b,0<=b.block_start?b.block_start:-1,b.strstart-b.block_start,d);b.block_start=b.strstart;g(b.strm)}function l(b,d){b.pending_buf[b.pending++]=d}function m(b,d){b.pending_buf[b.pending++]=d>>>8&255;b.pending_buf[b.pending++]=255&d}function n(b,d){var e,c,f=b.max_chain_length,g=b.strstart,k=b.prev_length,l=b.nice_match,m=b.strstart>b.w_size-X?b.strstart-(b.w_size-X):0,n=b.window,q=b.w_mask,p=b.prev,t=b.strstart+R,v=n[g+k-1],r=n[g+k];b.prev_length>=b.good_match&& +(f>>=2);l>b.lookahead&&(l=b.lookahead);do if(e=d,n[e+k]===r&&n[e+k-1]===v&&n[e]===n[g]&&n[++e]===n[g+1]){g+=2;e++;do;while(n[++g]===n[++e]&&n[++g]===n[++e]&&n[++g]===n[++e]&&n[++g]===n[++e]&&n[++g]===n[++e]&&n[++g]===n[++e]&&n[++g]===n[++e]&&n[++g]===n[++e]&&gk){if(b.match_start=d,k=c,c>=l)break;v=n[g+k-1];r=n[g+k]}}while((d=p[d&q])>m&&0!==--f);return k<=b.lookahead?k:b.lookahead}function p(b){var d,e,c,f,g=b.w_size;do{if(f=b.window_size-b.lookahead-b.strstart,b.strstart>= +g+(g-X)){x.arraySet(b.window,b.window,g,g,0);b.match_start-=g;b.strstart-=g;b.block_start-=g;d=e=b.hash_size;do c=b.head[--d],b.head[d]=c>=g?c-g:0;while(--e);d=e=g;do c=b.prev[--d],b.prev[d]=c>=g?c-g:0;while(--e);f+=g}if(0===b.strm.avail_in)break;d=b.strm;c=b.window;var k=b.strstart+b.lookahead,l=d.avail_in;if(e=(l>f&&(l=f),0===l?0:(d.avail_in-=l,x.arraySet(c,d.input,d.next_in,l,k),1===d.state.wrap?d.adler=z(d.adler,c,l,k):2===d.state.wrap&&(d.adler=B(d.adler,c,l,k)),d.next_in+=l,d.total_in+=l,l)), +b.lookahead+=e,b.lookahead+b.insert>=K){f=b.strstart-b.insert;b.ins_h=b.window[f];for(b.ins_h=(b.ins_h<=K&&(b.ins_h=(b.ins_h<< +b.hash_shift^b.window[b.strstart+K-1])&b.hash_mask,e=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),0!==e&&b.strstart-e<=b.w_size-X&&(b.match_length=n(b,e)),b.match_length>=K)if(c=D._tr_tally(b,b.strstart-b.match_start,b.match_length-K),b.lookahead-=b.match_length,b.match_length<=b.max_lazy_match&&b.lookahead>=K){b.match_length--;do b.strstart++,b.ins_h=(b.ins_h<=K&&(b.ins_h=(b.ins_h<=b.match_length&&(b.strategy===N||b.match_length===K&&4096= +K&&b.match_length<=b.prev_length){f=b.strstart+b.lookahead-K;c=D._tr_tally(b,b.strstart-1-b.prev_match,b.prev_length-K);b.lookahead-=b.prev_length-1;b.prev_length-=2;do++b.strstart<=f&&(b.ins_h=(b.ins_h<e.wrap&&(e.wrap=-e.wrap),e.status=e.wrap?da:ca,d.adler=2===e.wrap?0:1,e.last_flush=G,C._tr_init(e),H):b(d,I)}function v(b){var d=u(b);d===H&&(b=b.state,b.window_size=2*b.w_size,e(b.head),b.max_lazy_match=y[b.level].max_lazy,b.good_match=y[b.level].good_length,b.nice_match=y[b.level].nice_length,b.max_chain_length=y[b.level].max_chain,b.strstart=0,b.block_start= -0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=K-1,b.match_available=0,b.ins_h=0);return d}function z(d,e,c,f,g,k){if(!d)return I;var l=1;if(e===L&&(e=6),0>f?(l=0,f=-f):15g||g>D||c!==P||8>f||15e||9k||k>S)return b(d,I);8===f&&(f=9);var m=new t;return d.state=m,m.strm=d,m.wrap=l,m.gzhead=null,m.w_bits=f,m.w_size=1<b.pending_buf_size-5&&(e=b.pending_buf_size-5);;){if(1>=b.lookahead){if(p(b),0===b.lookahead&&d===G)return T;if(0===b.lookahead)break}b.strstart+=b.lookahead;b.lookahead=0;var c=b.block_start+e;if((0===b.strstart||b.strstart>=c)&&(b.lookahead=b.strstart-c,b.strstart=c,k(b,!1),0===b.strm.avail_out)||b.strstart-b.block_start>=b.w_size-X&&(k(b,!1),0===b.strm.avail_out))return T}return b.insert=0,d===F?(k(b,!0),0===b.strm.avail_out?ba:Y):(b.strstart>b.block_start&&k(b,!1),T)}),new q(4,4,8, -4,r),new q(4,5,16,8,r),new q(4,6,32,32,r),new q(4,4,16,16,s),new q(8,16,32,32,s),new q(8,16,128,128,s),new q(8,32,128,256,s),new q(32,128,258,1024,s),new q(32,258,258,4096,s)];d.deflateInit=function(b,d){return z(b,d,P,15,8,0)};d.deflateInit2=z;d.deflateReset=v;d.deflateResetKeep=u;d.deflateSetHeader=function(b,d){return b&&b.state?2!==b.state.wrap?I:(b.state.gzhead=d,H):I};d.deflate=function(d,c){var f,n,q,t;if(!d||!d.state||5c)return d?b(d,I):I;if(n=d.state,!d.output||!d.input&&0!==d.avail_in|| +this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0;this.dyn_ltree=new x.Buf16(2*T);this.dyn_dtree=new x.Buf16(2*(2*Q+1));this.bl_tree=new x.Buf16(2*(2*M+1));e(this.dyn_ltree);e(this.dyn_dtree);e(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new x.Buf16(J+1);this.heap=new x.Buf16(2*O+1);e(this.heap);this.heap_max=this.heap_len=0;this.depth=new x.Buf16(2*O+1);e(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len=this.d_buf=this.last_lit= +this.lit_bufsize=this.l_buf=0}function v(d){var e;return d&&d.state?(d.total_in=d.total_out=0,d.data_type=W,e=d.state,e.pending=0,e.pending_out=0,0>e.wrap&&(e.wrap=-e.wrap),e.status=e.wrap?da:ca,d.adler=2===e.wrap?0:1,e.last_flush=G,D._tr_init(e),H):b(d,I)}function u(b){var d=v(b);d===H&&(b=b.state,b.window_size=2*b.w_size,e(b.head),b.max_lazy_match=y[b.level].max_lazy,b.good_match=y[b.level].good_length,b.nice_match=y[b.level].nice_length,b.max_chain_length=y[b.level].max_chain,b.strstart=0,b.block_start= +0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=K-1,b.match_available=0,b.ins_h=0);return d}function A(d,e,c,f,g,k){if(!d)return I;var l=1;if(e===L&&(e=6),0>f?(l=0,f=-f):15g||g>E||c!==P||8>f||15e||9k||k>S)return b(d,I);8===f&&(f=9);var m=new t;return d.state=m,m.strm=d,m.wrap=l,m.gzhead=null,m.w_bits=f,m.w_size=1<b.pending_buf_size-5&&(e=b.pending_buf_size-5);;){if(1>=b.lookahead){if(p(b),0===b.lookahead&&d===G)return U;if(0===b.lookahead)break}b.strstart+=b.lookahead;b.lookahead=0;var c=b.block_start+e;if((0===b.strstart||b.strstart>=c)&&(b.lookahead=b.strstart-c,b.strstart=c,k(b,!1),0===b.strm.avail_out)||b.strstart-b.block_start>=b.w_size-X&&(k(b,!1),0===b.strm.avail_out))return U}return b.insert=0,d===F?(k(b,!0),0===b.strm.avail_out?ba:Y):(b.strstart>b.block_start&&k(b,!1),U)}),new q(4,4,8, +4,r),new q(4,5,16,8,r),new q(4,6,32,32,r),new q(4,4,16,16,s),new q(8,16,32,32,s),new q(8,16,128,128,s),new q(8,32,128,256,s),new q(32,128,258,1024,s),new q(32,258,258,4096,s)];d.deflateInit=function(b,d){return A(b,d,P,15,8,0)};d.deflateInit2=A;d.deflateReset=u;d.deflateResetKeep=v;d.deflateSetHeader=function(b,d){return b&&b.state?2!==b.state.wrap?I:(b.state.gzhead=d,H):I};d.deflate=function(d,c){var f,n,q,t;if(!d||!d.state||5c)return d?b(d,I):I;if(n=d.state,!d.output||!d.input&&0!==d.avail_in|| 666===n.status&&c!==F)return b(d,0===d.avail_out?-5:I);if(n.strm=d,f=n.last_flush,n.last_flush=c,n.status===da)2===n.wrap?(d.adler=0,l(n,31),l(n,139),l(n,8),n.gzhead?(l(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),l(n,255&n.gzhead.time),l(n,n.gzhead.time>>8&255),l(n,n.gzhead.time>>16&255),l(n,n.gzhead.time>>24&255),l(n,9===n.level?2:2<=n.strategy||2>n.level?4:0),l(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(l(n,255&n.gzhead.extra.length), l(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(d.adler=B(d.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(l(n,0),l(n,0),l(n,0),l(n,0),l(n,0),l(n,9===n.level?2:2<=n.strategy||2>n.level?4:0),l(n,3),n.status=ca)):(q=P+(n.w_bits-8<<4)<<8,t=2<=n.strategy||2>n.level?0:6>n.level?1:6===n.level?2:3,q|=t<<6,0!==n.strstart&&(q|=32),n.status=ca,m(n,q+(31-q%31)),0!==n.strstart&&(m(n,d.adler>>>16),m(n,65535&d.adler)),d.adler=1);if(69===n.status)if(n.gzhead.extra){for(q=n.pending;n.gzindex<(65535& n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>q&&(d.adler=B(d.adler,n.pending_buf,n.pending-q,q)),g(d),q=n.pending,n.pending!==n.pending_buf_size));)l(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>q&&(d.adler=B(d.adler,n.pending_buf,n.pending-q,q));n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){q=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>q&& (d.adler=B(d.adler,n.pending_buf,n.pending-q,q)),g(d),q=n.pending,n.pending===n.pending_buf_size)){t=1;break}t=n.gzindexq&&(d.adler=B(d.adler,n.pending_buf,n.pending-q,q));0===t&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){q=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>q&&(d.adler=B(d.adler,n.pending_buf,n.pending-q,q)),g(d), q=n.pending,n.pending===n.pending_buf_size)){t=1;break}t=n.gzindexq&&(d.adler=B(d.adler,n.pending_buf,n.pending-q,q));0===t&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&g(d),n.pending+2<=n.pending_buf_size&&(l(n,255&d.adler),l(n,d.adler>>8&255),d.adler=0,n.status=ca)):n.status=ca),0!==n.pending){if(g(d),0===d.avail_out)return n.last_flush= --1,H}else if(0===d.avail_in&&(c<<1)-(4=K&&0n.lookahead&&(n.match_length=n.lookahead)}if(n.match_length>= -K?(u=C._tr_tally(n,1,n.match_length-K),n.lookahead-=n.match_length,n.strstart+=n.match_length,n.match_length=0):(u=C._tr_tally(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++),u&&(k(n,!1),0===n.strm.avail_out)){u=T;break a}}u=(n.insert=0,c===F?(k(n,!0),0===n.strm.avail_out?ba:Y):n.last_lit&&(k(n,!1),0===n.strm.avail_out)?T:Z)}else u=y[n.level].func(n,c);if(u!==ba&&u!==Y||(n.status=666),u===T||u===ba)return 0===d.avail_out&&(n.last_flush=-1),H;if(u===Z&&(1===c?C._tr_align(n):5!==c&&(C._tr_stored_block(n, +-1,H}else if(0===d.avail_in&&(c<<1)-(4=K&&0n.lookahead&&(n.match_length=n.lookahead)}if(n.match_length>= +K?(v=D._tr_tally(n,1,n.match_length-K),n.lookahead-=n.match_length,n.strstart+=n.match_length,n.match_length=0):(v=D._tr_tally(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++),v&&(k(n,!1),0===n.strm.avail_out)){v=U;break a}}v=(n.insert=0,c===F?(k(n,!0),0===n.strm.avail_out?ba:Y):n.last_lit&&(k(n,!1),0===n.strm.avail_out)?U:Z)}else v=y[n.level].func(n,c);if(v!==ba&&v!==Y||(n.status=666),v===U||v===ba)return 0===d.avail_out&&(n.last_flush=-1),H;if(v===Z&&(1===c?D._tr_align(n):5!==c&&(D._tr_stored_block(n, 0,0,!1),3===c&&(e(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),g(d),0===d.avail_out))return n.last_flush=-1,H}return c!==F?H:0>=n.wrap?1:(2===n.wrap?(l(n,255&d.adler),l(n,d.adler>>8&255),l(n,d.adler>>16&255),l(n,d.adler>>24&255),l(n,255&d.total_in),l(n,d.total_in>>8&255),l(n,d.total_in>>16&255),l(n,d.total_in>>24&255)):(m(n,d.adler>>>16),m(n,65535&d.adler)),g(d),0=c.w_size&&(0===k&&(e(c.head),c.strstart=0,c.block_start=0,c.insert=0),l=new x.Buf8(c.w_size),x.arraySet(l,d,f-c.w_size,c.w_size,0),d=l,f=c.w_size);l=b.avail_in;m=b.next_in;n=b.input;b.avail_in=f;b.next_in= +e!==da&&69!==e&&73!==e&&91!==e&&103!==e&&e!==ca&&666!==e?b(d,I):(d.state=null,e===ca?b(d,-3):H)):I};d.deflateSetDictionary=function(b,d){var c,f,g,k,l,m,n;f=d.length;if(!b||!b.state||(c=b.state,k=c.wrap,2===k||1===k&&c.status!==da||c.lookahead))return I;1===k&&(b.adler=z(b.adler,d,f,0));c.wrap=0;f>=c.w_size&&(0===k&&(e(c.head),c.strstart=0,c.block_start=0,c.insert=0),l=new x.Buf8(c.w_size),x.arraySet(l,d,f-c.w_size,c.w_size,0),d=l,f=c.w_size);l=b.avail_in;m=b.next_in;n=b.input;b.avail_in=f;b.next_in= 0;b.input=d;for(p(c);c.lookahead>=K;){f=c.strstart;g=c.lookahead-(K-1);do c.ins_h=(c.ins_h<z&&(v+=I[f++]<>>24,v>>>=E,z-=E,E=B>>>16&255,0===E)L[m++]=65535&B;else{if(!(16&E)){if(0===(64&E)){B=y[(65535&B)+(v&(1<>>=E,z-=E);15>z&&(v+=I[f++]<>>24,v>>>=E,z-=E,E=B>>>16&255, -!(16&E)){if(0===(64&E)){B=x[(65535&B)+(v&(1<r){b.msg="invalid distance too far back";c.mode=30;break a}if(v>>>=E,z-=E,E=m-n,F>E){if(E=F-E,E>q&&c.sane){b.msg="invalid distance too far back";c.mode=30;break a}if(B=0,H=u,0===t){if(B+=s-E,E>3;f-=G;z-=G<<3;b.next_in=f;b.next_out=m;b.avail_in=fA&&(u+=I[f++]<>>24,u>>>=C,A-=C,C=B>>>16&255,0===C)L[m++]=65535&B;else{if(!(16&C)){if(0===(64&C)){B=y[(65535&B)+(u&(1<>>=C,A-=C);15>A&&(u+=I[f++]<>>24,u>>>=C,A-=C,C=B>>>16&255, +!(16&C)){if(0===(64&C)){B=x[(65535&B)+(u&(1<r){b.msg="invalid distance too far back";c.mode=30;break a}if(u>>>=C,A-=C,C=m-n,F>C){if(C=F-C,C>q&&c.sane){b.msg="invalid distance too far back";c.mode=30;break a}if(B=0,H=v,0===t){if(B+=s-C,C>3;f-=G;A-=G<<3;b.next_in=f;b.next_out=m;b.avail_in=f>>24&255)+(b>>>8&65280)+((65280&b)<<8)+((255&b)<<24)}function e(){this.mode=0;this.last=!1;this.wrap=0;this.havedict=!1;this.total=this.check=this.dmax=this.flags=0;this.head=null;this.wnext=this.whave=this.wsize=this.wbits=0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new s.Buf16(320);this.work= -new s.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function g(b){var d;return b&&b.state?(d=b.state,b.total_in=b.total_out=d.total=0,b.msg="",d.wrap&&(b.adler=1&d.wrap),d.mode=x,d.last=0,d.havedict=0,d.dmax=32768,d.head=null,d.hold=0,d.bits=0,d.lencode=d.lendyn=new s.Buf32(C),d.distcode=d.distdyn=new s.Buf32(A),d.sane=1,d.back=-1,z):y}function k(b){var d;return b&&b.state?(d=b.state,d.wsize=0,d.whave=0,d.wnext=0,g(b)):y}function l(b,d){var e,c;return b&&b.state?(c=b.state, -0>d?(e=0,d=-d):(e=(d>>4)+1,48>d&&(d&=15)),d&&(8>d||15=b.wsize?(s.arraySet(b.window,d,e-b.wsize,b.wsize,0),b.wnext=0,b.whave=b.wsize):(f=b.wsize-b.wnext,f>c&&(f=c),s.arraySet(b.window,d,e- -c,f,b.wnext),c-=f,c?(s.arraySet(b.window,d,e-c,c,0),b.wnext=c,b.whave=b.wsize):(b.wnext+=f,b.wnext===b.wsize&&(b.wnext=0),b.whaveD;){if(0===m)break a;m--;A+=f[k++]<>>8&255;c.check=t(c.check,U,2,0);D=A=0;c.mode=2;break}if(c.flags=0,c.head&&(c.head.done=!1), -!(1&c.wrap)||(((255&A)<<8)+(A>>8))%31){d.msg="incorrect header check";c.mode=30;break}if(8!==(15&A)){d.msg="unknown compression method";c.mode=30;break}if(A>>>=4,D-=4,T=(15&A)+8,0===c.wbits)c.wbits=T;else if(T>c.wbits){d.msg="invalid window size";c.mode=30;break}c.dmax=1<D;){if(0===m)break a;m--;A+=f[k++]<>8&1);512&c.flags&&(U[0]=255&A,U[1]=A>>>8&255,c.check=t(c.check,U,2,0));D=A=0;c.mode=3;case 3:for(;32>D;){if(0===m)break a;m--;A+=f[k++]<>>8&255,U[2]=A>>>16&255,U[3]=A>>>24&255,c.check=t(c.check,U,4,0));D=A=0;c.mode=4;case 4:for(;16>D;){if(0===m)break a;m--;A+=f[k++]<>8);512&c.flags&&(U[0]=255&A,U[1]=A>>>8&255,c.check=t(c.check,U,2,0));D=A=0;c.mode= -5;case 5:if(1024&c.flags){for(;16>D;){if(0===m)break a;m--;A+=f[k++]<>>8&255,c.check=t(c.check,U,2,0));D=A=0}else c.head&&(c.head.extra=null);c.mode=6;case 6:if(1024&c.flags&&(M=c.length,M>m&&(M=m),M&&(c.head&&(T=c.head.extra_len-c.length,c.head.extra||(c.head.extra=Array(c.head.extra_len)),s.arraySet(c.head.extra,f,k,M,T)),512&c.flags&&(c.check=t(c.check,f,M,k)),m-=M,k+=M,c.length-=M),c.length))break a;c.length=0;c.mode= -7;case 7:if(2048&c.flags){if(0===m)break a;M=0;do T=f[k+M++],c.head&&T&&65536>c.length&&(c.head.name+=String.fromCharCode(T));while(T&&Mc.length&&(c.head.comment+=String.fromCharCode(T));while(T&&MD;){if(0===m)break a;m--;A+=f[k++]<>9&1,c.head.done=!0);d.adler=c.check=0;c.mode=12;break;case 10:for(;32>D;){if(0===m)break a;m--;A+=f[k++]<>>= -7&D;D-=7&D;c.mode=27;break}for(;3>D;){if(0===m)break a;m--;A+=f[k++]<>>=1,D-=1,3&A){case 0:c.mode=14;break;case 1:J=c;if(B){p=new s.Buf32(512);r=new s.Buf32(32);for(R=0;144>R;)J.lens[R++]=8;for(;256>R;)J.lens[R++]=9;for(;280>R;)J.lens[R++]=7;for(;288>R;)J.lens[R++]=8;v(1,J.lens,0,288,p,0,J.work,{bits:9});for(R=0;32>R;)J.lens[R++]=5;v(2,J.lens,0,32,r,0,J.work,{bits:5});B=!1}J.lencode=p;J.lenbits=9;J.distcode=r;J.distbits=5;if(c.mode=20,6===e){A>>>=2;D-=2;break a}break;case 2:c.mode= -17;break;case 3:d.msg="invalid block type",c.mode=30}A>>>=2;D-=2;break;case 14:A>>>=7&D;for(D-=7&D;32>D;){if(0===m)break a;m--;A+=f[k++]<>>16^65535)){d.msg="invalid stored block lengths";c.mode=30;break}if(c.length=65535&A,A=0,D=0,c.mode=15,6===e)break a;case 15:c.mode=16;case 16:if(M=c.length){if(M>m&&(M=m),M>C&&(M=C),0===M)break a;s.arraySet(g,f,k,M,l);m-=M;k+=M;C-=M;l+=M;c.length-=M;break}c.mode=12;break;case 17:for(;14>D;){if(0===m)break a;m--;A+=f[k++]<>>=5,D-=5,c.ndist=(31&A)+1,A>>>=5,D-=5,c.ncode=(15&A)+4,A>>>=4,D-=4,286D;){if(0===m)break a;m--;A+=f[k++]<>>=3;D-=3}for(;19>c.have;)c.lens[ia[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,ba={bits:c.lenbits},Z=v(0,c.lens,0,19,c.lencode,0,c.work,ba),c.lenbits=ba.bits,Z){d.msg="invalid code lengths set";c.mode=30;break}c.have= -0;c.mode=19;case 19:for(;c.have>>24,R=65535&Y,!(K<=D);){if(0===m)break a;m--;A+=f[k++]<R)A>>>=K,D-=K,c.lens[c.have++]=R;else{if(16===R){for(J=K+2;D>>=K,D-=K,0===c.have){d.msg="invalid bit length repeat";c.mode=30;break}T=c.lens[c.have-1];M=3+(3&A);A>>>=2;D-=2}else if(17===R){for(J=K+3;D>>=K;D-=K;T=0;M=3+(7&A);A>>>=3;D-=3}else{for(J= -K+7;D>>=K;D-=K;T=0;M=11+(127&A);A>>>=7;D-=7}if(c.have+M>c.nlen+c.ndist){d.msg="invalid bit length repeat";c.mode=30;break}for(;M--;)c.lens[c.have++]=T}}if(30===c.mode)break;if(0===c.lens[256]){d.msg="invalid code -- missing end-of-block";c.mode=30;break}if(c.lenbits=9,ba={bits:c.lenbits},Z=v(1,c.lens,0,c.nlen,c.lencode,0,c.work,ba),c.lenbits=ba.bits,Z){d.msg="invalid literal/lengths set";c.mode=30;break}if(c.distbits=6,c.distcode=c.distdyn,ba={bits:c.distbits}, -Z=v(2,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,ba),c.distbits=ba.bits,Z){d.msg="invalid distances set";c.mode=30;break}if(c.mode=20,6===e)break a;case 20:c.mode=21;case 21:if(6<=m&&258<=C){d.next_out=l;d.avail_out=C;d.next_in=k;d.avail_in=m;c.hold=A;c.bits=D;u(d,Q);l=d.next_out;g=d.output;C=d.avail_out;k=d.next_in;f=d.input;m=d.avail_in;A=c.hold;D=c.bits;12===c.mode&&(c.back=-1);break}for(c.back=0;Y=c.lencode[A&(1<>>24,J=Y>>>16&255,R=65535&Y,!(K<=D);){if(0===m)break a;m--;A+=f[k++]<< -D;D+=8}if(J&&0===(240&J)){X=K;da=J;for(ca=R;Y=c.lencode[ca+((A&(1<>X)],K=Y>>>24,J=Y>>>16&255,R=65535&Y,!(X+K<=D);){if(0===m)break a;m--;A+=f[k++]<>>=X;D-=X;c.back+=X}if(A>>>=K,D-=K,c.back+=K,c.length=R,0===J){c.mode=26;break}if(32&J){c.back=-1;c.mode=12;break}if(64&J){d.msg="invalid literal/length code";c.mode=30;break}c.extra=15&J;c.mode=22;case 22:if(c.extra){for(J=c.extra;D>>=c.extra;D-=c.extra;c.back+= -c.extra}c.was=c.length;c.mode=23;case 23:for(;Y=c.distcode[A&(1<>>24,J=Y>>>16&255,R=65535&Y,!(K<=D);){if(0===m)break a;m--;A+=f[k++]<>X)],K=Y>>>24,J=Y>>>16&255,R=65535&Y,!(X+K<=D);){if(0===m)break a;m--;A+=f[k++]<>>=X;D-=X;c.back+=X}if(A>>>=K,D-=K,c.back+=K,64&J){d.msg="invalid distance code";c.mode=30;break}c.offset=R;c.extra=15&J;c.mode=24;case 24:if(c.extra){for(J=c.extra;D>>=c.extra;D-=c.extra;c.back+=c.extra}if(c.offset>c.dmax){d.msg="invalid distance too far back";c.mode=30;break}c.mode=25;case 25:if(0===C)break a;if(M=Q-C,c.offset>M){if(M=c.offset-M,M>c.whave&&c.sane){d.msg="invalid distance too far back";c.mode=30;break}M>c.wnext?(M-=c.wnext,V=c.wsize-M):V=c.wnext-M;M>c.length&&(M=c.length);J=c.window}else J=g,V=l-c.offset,M=c.length;M>C&&(M=C);C-=M;c.length-=M;do g[l++]=J[V++];while(--M);0===c.length&&(c.mode= -21);break;case 26:if(0===C)break a;g[l++]=c.length;C--;c.mode=21;break;case 27:if(c.wrap){for(;32>D;){if(0===m)break a;m--;A|=f[k++]<D;){if(0===m)break a;m--;A+=f[k++]<c.mode&&(27>c.mode||4!==e))&&n(d,d.output,d.next_out,Q-d.avail_out)?(c.mode=31,-4):(O-=d.avail_in,Q-=d.avail_out,d.total_in+=O,d.total_out+=Q,c.total+=Q,c.wrap&&Q&&(d.adler=c.check=c.flags?t(c.check,g,Q,d.next_out-Q):q(c.check,g,Q,d.next_out-Q)),d.data_type=c.bits+(c.last?64:0)+(12===c.mode?128:0)+(20===c.mode||15=== -c.mode?256:0),(0===O&&0===Q||4===e)&&Z===z&&(Z=-5),Z)};d.inflateEnd=function(b){if(!b||!b.state)return y;var d=b.state;return d.window&&(d.window=null),b.state=null,z};d.inflateGetHeader=function(b,d){var e;return b&&b.state?(e=b.state,0===(2&e.wrap)?y:(e.head=d,d.done=!1,z)):y};d.inflateSetDictionary=function(b,d){var e,c,f=d.length;return b&&b.state?(e=b.state,0!==e.wrap&&11!==e.mode?y:11===e.mode&&(c=1,c=q(c,d,f,0),c!==e.check)?-3:n(b,d,f,f)?(e.mode=31,-4):(e.havedict=1,z)):y};d.inflateInfo="pako inflate (from Nodeca project)"}, +new s.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function g(b){var d;return b&&b.state?(d=b.state,b.total_in=b.total_out=d.total=0,b.msg="",d.wrap&&(b.adler=1&d.wrap),d.mode=x,d.last=0,d.havedict=0,d.dmax=32768,d.head=null,d.hold=0,d.bits=0,d.lencode=d.lendyn=new s.Buf32(D),d.distcode=d.distdyn=new s.Buf32(z),d.sane=1,d.back=-1,A):y}function k(b){var d;return b&&b.state?(d=b.state,d.wsize=0,d.whave=0,d.wnext=0,g(b)):y}function l(b,d){var e,c;return b&&b.state?(c=b.state, +0>d?(e=0,d=-d):(e=(d>>4)+1,48>d&&(d&=15)),d&&(8>d||15=b.wsize?(s.arraySet(b.window,d,e-b.wsize,b.wsize,0),b.wnext=0,b.whave=b.wsize):(f=b.wsize-b.wnext,f>c&&(f=c),s.arraySet(b.window,d,e- +c,f,b.wnext),c-=f,c?(s.arraySet(b.window,d,e-c,c,0),b.wnext=c,b.whave=b.wsize):(b.wnext+=f,b.wnext===b.wsize&&(b.wnext=0),b.whaveE;){if(0===m)break a;m--;z+=f[k++]<>>8&255;c.check=t(c.check,V,2,0);E=z=0;c.mode=2;break}if(c.flags=0,c.head&&(c.head.done=!1), +!(1&c.wrap)||(((255&z)<<8)+(z>>8))%31){d.msg="incorrect header check";c.mode=30;break}if(8!==(15&z)){d.msg="unknown compression method";c.mode=30;break}if(z>>>=4,E-=4,U=(15&z)+8,0===c.wbits)c.wbits=U;else if(U>c.wbits){d.msg="invalid window size";c.mode=30;break}c.dmax=1<E;){if(0===m)break a;m--;z+=f[k++]<>8&1);512&c.flags&&(V[0]=255&z,V[1]=z>>>8&255,c.check=t(c.check,V,2,0));E=z=0;c.mode=3;case 3:for(;32>E;){if(0===m)break a;m--;z+=f[k++]<>>8&255,V[2]=z>>>16&255,V[3]=z>>>24&255,c.check=t(c.check,V,4,0));E=z=0;c.mode=4;case 4:for(;16>E;){if(0===m)break a;m--;z+=f[k++]<>8);512&c.flags&&(V[0]=255&z,V[1]=z>>>8&255,c.check=t(c.check,V,2,0));E=z=0;c.mode= +5;case 5:if(1024&c.flags){for(;16>E;){if(0===m)break a;m--;z+=f[k++]<>>8&255,c.check=t(c.check,V,2,0));E=z=0}else c.head&&(c.head.extra=null);c.mode=6;case 6:if(1024&c.flags&&(M=c.length,M>m&&(M=m),M&&(c.head&&(U=c.head.extra_len-c.length,c.head.extra||(c.head.extra=Array(c.head.extra_len)),s.arraySet(c.head.extra,f,k,M,U)),512&c.flags&&(c.check=t(c.check,f,M,k)),m-=M,k+=M,c.length-=M),c.length))break a;c.length=0;c.mode= +7;case 7:if(2048&c.flags){if(0===m)break a;M=0;do U=f[k+M++],c.head&&U&&65536>c.length&&(c.head.name+=String.fromCharCode(U));while(U&&Mc.length&&(c.head.comment+=String.fromCharCode(U));while(U&&ME;){if(0===m)break a;m--;z+=f[k++]<>9&1,c.head.done=!0);d.adler=c.check=0;c.mode=12;break;case 10:for(;32>E;){if(0===m)break a;m--;z+=f[k++]<>>= +7&E;E-=7&E;c.mode=27;break}for(;3>E;){if(0===m)break a;m--;z+=f[k++]<>>=1,E-=1,3&z){case 0:c.mode=14;break;case 1:J=c;if(B){p=new s.Buf32(512);r=new s.Buf32(32);for(R=0;144>R;)J.lens[R++]=8;for(;256>R;)J.lens[R++]=9;for(;280>R;)J.lens[R++]=7;for(;288>R;)J.lens[R++]=8;u(1,J.lens,0,288,p,0,J.work,{bits:9});for(R=0;32>R;)J.lens[R++]=5;u(2,J.lens,0,32,r,0,J.work,{bits:5});B=!1}J.lencode=p;J.lenbits=9;J.distcode=r;J.distbits=5;if(c.mode=20,6===e){z>>>=2;E-=2;break a}break;case 2:c.mode= +17;break;case 3:d.msg="invalid block type",c.mode=30}z>>>=2;E-=2;break;case 14:z>>>=7&E;for(E-=7&E;32>E;){if(0===m)break a;m--;z+=f[k++]<>>16^65535)){d.msg="invalid stored block lengths";c.mode=30;break}if(c.length=65535&z,z=0,E=0,c.mode=15,6===e)break a;case 15:c.mode=16;case 16:if(M=c.length){if(M>m&&(M=m),M>D&&(M=D),0===M)break a;s.arraySet(g,f,k,M,l);m-=M;k+=M;D-=M;l+=M;c.length-=M;break}c.mode=12;break;case 17:for(;14>E;){if(0===m)break a;m--;z+=f[k++]<>>=5,E-=5,c.ndist=(31&z)+1,z>>>=5,E-=5,c.ncode=(15&z)+4,z>>>=4,E-=4,286E;){if(0===m)break a;m--;z+=f[k++]<>>=3;E-=3}for(;19>c.have;)c.lens[ia[c.have++]]=0;if(c.lencode=c.lendyn,c.lenbits=7,ba={bits:c.lenbits},Z=u(0,c.lens,0,19,c.lencode,0,c.work,ba),c.lenbits=ba.bits,Z){d.msg="invalid code lengths set";c.mode=30;break}c.have= +0;c.mode=19;case 19:for(;c.have>>24,R=65535&Y,!(K<=E);){if(0===m)break a;m--;z+=f[k++]<R)z>>>=K,E-=K,c.lens[c.have++]=R;else{if(16===R){for(J=K+2;E>>=K,E-=K,0===c.have){d.msg="invalid bit length repeat";c.mode=30;break}U=c.lens[c.have-1];M=3+(3&z);z>>>=2;E-=2}else if(17===R){for(J=K+3;E>>=K;E-=K;U=0;M=3+(7&z);z>>>=3;E-=3}else{for(J= +K+7;E>>=K;E-=K;U=0;M=11+(127&z);z>>>=7;E-=7}if(c.have+M>c.nlen+c.ndist){d.msg="invalid bit length repeat";c.mode=30;break}for(;M--;)c.lens[c.have++]=U}}if(30===c.mode)break;if(0===c.lens[256]){d.msg="invalid code -- missing end-of-block";c.mode=30;break}if(c.lenbits=9,ba={bits:c.lenbits},Z=u(1,c.lens,0,c.nlen,c.lencode,0,c.work,ba),c.lenbits=ba.bits,Z){d.msg="invalid literal/lengths set";c.mode=30;break}if(c.distbits=6,c.distcode=c.distdyn,ba={bits:c.distbits}, +Z=u(2,c.lens,c.nlen,c.ndist,c.distcode,0,c.work,ba),c.distbits=ba.bits,Z){d.msg="invalid distances set";c.mode=30;break}if(c.mode=20,6===e)break a;case 20:c.mode=21;case 21:if(6<=m&&258<=D){d.next_out=l;d.avail_out=D;d.next_in=k;d.avail_in=m;c.hold=z;c.bits=E;v(d,Q);l=d.next_out;g=d.output;D=d.avail_out;k=d.next_in;f=d.input;m=d.avail_in;z=c.hold;E=c.bits;12===c.mode&&(c.back=-1);break}for(c.back=0;Y=c.lencode[z&(1<>>24,J=Y>>>16&255,R=65535&Y,!(K<=E);){if(0===m)break a;m--;z+=f[k++]<< +E;E+=8}if(J&&0===(240&J)){X=K;da=J;for(ca=R;Y=c.lencode[ca+((z&(1<>X)],K=Y>>>24,J=Y>>>16&255,R=65535&Y,!(X+K<=E);){if(0===m)break a;m--;z+=f[k++]<>>=X;E-=X;c.back+=X}if(z>>>=K,E-=K,c.back+=K,c.length=R,0===J){c.mode=26;break}if(32&J){c.back=-1;c.mode=12;break}if(64&J){d.msg="invalid literal/length code";c.mode=30;break}c.extra=15&J;c.mode=22;case 22:if(c.extra){for(J=c.extra;E>>=c.extra;E-=c.extra;c.back+= +c.extra}c.was=c.length;c.mode=23;case 23:for(;Y=c.distcode[z&(1<>>24,J=Y>>>16&255,R=65535&Y,!(K<=E);){if(0===m)break a;m--;z+=f[k++]<>X)],K=Y>>>24,J=Y>>>16&255,R=65535&Y,!(X+K<=E);){if(0===m)break a;m--;z+=f[k++]<>>=X;E-=X;c.back+=X}if(z>>>=K,E-=K,c.back+=K,64&J){d.msg="invalid distance code";c.mode=30;break}c.offset=R;c.extra=15&J;c.mode=24;case 24:if(c.extra){for(J=c.extra;E>>=c.extra;E-=c.extra;c.back+=c.extra}if(c.offset>c.dmax){d.msg="invalid distance too far back";c.mode=30;break}c.mode=25;case 25:if(0===D)break a;if(M=Q-D,c.offset>M){if(M=c.offset-M,M>c.whave&&c.sane){d.msg="invalid distance too far back";c.mode=30;break}M>c.wnext?(M-=c.wnext,T=c.wsize-M):T=c.wnext-M;M>c.length&&(M=c.length);J=c.window}else J=g,T=l-c.offset,M=c.length;M>D&&(M=D);D-=M;c.length-=M;do g[l++]=J[T++];while(--M);0===c.length&&(c.mode= +21);break;case 26:if(0===D)break a;g[l++]=c.length;D--;c.mode=21;break;case 27:if(c.wrap){for(;32>E;){if(0===m)break a;m--;z|=f[k++]<E;){if(0===m)break a;m--;z+=f[k++]<c.mode&&(27>c.mode||4!==e))&&n(d,d.output,d.next_out,Q-d.avail_out)?(c.mode=31,-4):(O-=d.avail_in,Q-=d.avail_out,d.total_in+=O,d.total_out+=Q,c.total+=Q,c.wrap&&Q&&(d.adler=c.check=c.flags?t(c.check,g,Q,d.next_out-Q):q(c.check,g,Q,d.next_out-Q)),d.data_type=c.bits+(c.last?64:0)+(12===c.mode?128:0)+(20===c.mode||15=== +c.mode?256:0),(0===O&&0===Q||4===e)&&Z===A&&(Z=-5),Z)};d.inflateEnd=function(b){if(!b||!b.state)return y;var d=b.state;return d.window&&(d.window=null),b.state=null,A};d.inflateGetHeader=function(b,d){var e;return b&&b.state?(e=b.state,0===(2&e.wrap)?y:(e.head=d,d.done=!1,A)):y};d.inflateSetDictionary=function(b,d){var e,c,f=d.length;return b&&b.state?(e=b.state,0!==e.wrap&&11!==e.mode?y:11===e.mode&&(c=1,c=q(c,d,f,0),c!==e.check)?-3:n(b,d,f,f)?(e.mode=31,-4):(e.havedict=1,A)):y};d.inflateInfo="pako inflate (from Nodeca project)"}, {"../utils/common":3,"./adler32":5,"./crc32":7,"./inffast":10,"./inftrees":12}],12:[function(c,f,d){var b=c("../utils/common"),e=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],k=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24, -25,25,26,26,27,27,28,28,29,29,64,64];f.exports=function(d,c,f,r,s,q,t,u){var v,z,y,x,C,A,B,E;x=u.bits;for(var G=0,F=0,H=0,I=0,L=0,N=0,S=0,W=0,P=0,D=null,O=0,Q=new b.Buf16(16),N=new b.Buf16(16),M=null,V=0,G=0;15>=G;G++)Q[G]=0;for(F=0;FI&&(L=I),0===I)return s[q++]=20971520,s[q++]=20971520,u.bits=1,0;for(H=1;H=G;G++)if(v<<=1,v-=Q[G],0>v)return-1;if(0G;G++)N[G+ -1]=N[G]+Q[G];for(F=0;FC?(B=M[V+t[F]],E=D[O+t[F]]):(B=96,E=0);v=1<>S)+z]=A<<24|B<<16|E|0;while(0!==z);for(v=1<>=1;if(0!==v?(P&=v-1,P+=v):P=0,F++,0===--Q[G]){if(G===I)break;G=c[f+t[F]]}if(G>L&&(P&r)!==y){0===S&&(S=L);x+=H;N= -G-S;for(v=1<=v));)N++,v<<=1;if(W+=1<=G;G++)Q[G]=0;for(F=0;FI&&(L=I),0===I)return s[q++]=20971520,s[q++]=20971520,v.bits=1,0;for(H=1;H=G;G++)if(u<<=1,u-=Q[G],0>u)return-1;if(0G;G++)N[G+ +1]=N[G]+Q[G];for(F=0;FD?(B=M[T+t[F]],C=E[O+t[F]]):(B=96,C=0);u=1<>S)+A]=z<<24|B<<16|C|0;while(0!==A);for(u=1<>=1;if(0!==u?(P&=u-1,P+=u):P=0,F++,0===--Q[G]){if(G===I)break;G=c[f+t[F]]}if(G>L&&(P&r)!==y){0===S&&(S=L);x+=H;N= +G-S;for(u=1<=u));)N++,u<<=1;if(W+=1<>>8&255}function l(b,d,e){b.bi_valid>W-e?(b.bi_buf|=d<>W-b.bi_valid,b.bi_valid+=e-W):(b.bi_buf|=d<>>=1,e<<=1;while(0<--d);return e>>>1}function p(b,d,e){var c,f=Array(S+1),g=0;for(c=1;c<=S;c++)f[c]=g=g+e[c-1]<<1;for(e=0;e<=d;e++)c=b[2*e+1],0!==c&&(b[2*e]=n(f[c]++,c))}function r(b){var d;for(d=0;dc?da[c]:da[256+(c>>>7)],m(b,g,e),k=V[g], -0!==k&&(c-=Z[g],l(b,c,k)));while(nb.heap_len;)f=b.heap[++b.heap_len]=2>m?++m:0,g[2*f]=1,b.depth[f]=0,b.opt_len--,k&&(b.static_len-=c[2*f+1]);d.max_code=m;for(e=b.heap_len>>1;1<=e;e--)t(b,g,e);f=l;do e=b.heap[1],b.heap[1]=b.heap[b.heap_len--],t(b,g,1), -c=b.heap[1],b.heap[--b.heap_max]=e,b.heap[--b.heap_max]=c,g[2*f]=g[2*e]+g[2*c],b.depth[f]=(b.depth[e]>=b.depth[c]?b.depth[e]:b.depth[c])+1,g[2*e+1]=g[2*c+1]=f,b.heap[1]=f++,t(b,g,1);while(2<=b.heap_len);b.heap[--b.heap_max]=b.heap[1];var n,q,k=d.dyn_tree,l=d.max_code,u=d.stat_desc.static_tree,r=d.stat_desc.has_stree,v=d.stat_desc.extra_bits,s=d.stat_desc.extra_base,x=d.stat_desc.max_length,y=0;for(c=0;c<=S;c++)b.bl_count[c]=0;k[2*b.heap[b.heap_max]+1]=0;for(e=b.heap_max+1;ex&&(c=x,y++),k[2*f+1]=c,f>l||(b.bl_count[c]++,n=0,f>=s&&(n=v[f-s]),q=k[2*f],b.opt_len+=q*(c+n),r&&(b.static_len+=q*(u[2*f+1]+n)));if(0!==y){do{for(c=x-1;0===b.bl_count[c];)c--;b.bl_count[c]--;b.bl_count[c+1]+=2;b.bl_count[x]--;y-=2}while(0l||(k[2*n+1]!==c&&(b.opt_len+=(c-k[2*n+1])*k[2*n],k[2*n+1]=c),f--)}p(g,m,b.bl_count)}function z(b,d,e){var c,f,g=-1,k=d[1],l=0,m=7,n=4;0===k&&(m=138,n=3);d[2*(e+1)+1]=65535;for(c=0;c<= -e;c++)f=k,k=d[2*(c+1)+1],++l=l?b.bl_tree[2*O]++:b.bl_tree[2*Q]++,l=0,g=f,0===k?(m=138,n=3):f===k?(m=6,n=3):(m=7,n=4))}function y(b,d,e){var c,f,g=-1,k=d[1],n=0,q=7,p=4;0===k&&(q=138,p=3);for(c=0;c<=e;c++)if(f=k,k=d[2*(c+1)+1],!(++n=n?(m(b,O,b.bl_tree),l(b,n-3,3)):(m(b,Q,b.bl_tree),l(b, -n-11,7));n=0;g=f;0===k?(q=138,p=3):f===k?(q=6,p=3):(q=7,p=4)}}function x(b){var d,e=4093624447;for(d=0;31>=d;d++,e>>>=1)if(1&e&&0!==b.dyn_ltree[2*d])return B;if(0!==b.dyn_ltree[18]||0!==b.dyn_ltree[20]||0!==b.dyn_ltree[26])return E;for(d=32;df;f++){T[f]=c;for(d=0;d<1<f;f++){Z[f]=c;for(d=0;d<1<>=7;f=d;)R[2*d+1]=8,d++,k[8]++;for(;255>=d;)R[2*d+1]=9,d++,k[9]++;for(;279>=d;)R[2*d+1]=7,d++,k[7]++;for(;287>=d;)R[2*d+1]=8,d++,k[8]++;p(R,H+1,k);for(d=0;d>>3;g=b.static_len+3+7>>>3;g<=f&&(f=g)}else f=g=e+5;if(e+4<=f&&-1!==d)C(b,d,e,c);else if(4===b.strategy||g===f)l(b,2+(c?1:0),3),u(b,R,X); -else{l(b,4+(c?1:0),3);d=b.l_desc.max_code+1;e=b.d_desc.max_code+1;k+=1;l(b,d-257,5);l(b,e-1,5);l(b,k-4,4);for(f=0;f>>8&255,b.pending_buf[b.d_buf+2*b.last_lit+1]=255&d,b.pending_buf[b.l_buf+b.last_lit]=255&e,b.last_lit++,0===d?b.dyn_ltree[2*e]++:(b.matches++,d--,b.dyn_ltree[2*(ca[e]+F+1)]++,b.dyn_dtree[2*(256> +2*d,g=2*e;return b[f]c?da[c]:da[256+(c>>>7)],m(b,g,e),k=T[g], +0!==k&&(c-=Z[g],l(b,c,k)));while(nb.heap_len;)f=b.heap[++b.heap_len]=2>m?++m:0,g[2*f]=1,b.depth[f]=0,b.opt_len--,k&&(b.static_len-=c[2*f+1]);d.max_code=m;for(e=b.heap_len>>1;1<=e;e--)t(b,g,e);f=l;do e=b.heap[1],b.heap[1]=b.heap[b.heap_len--],t(b,g,1), +c=b.heap[1],b.heap[--b.heap_max]=e,b.heap[--b.heap_max]=c,g[2*f]=g[2*e]+g[2*c],b.depth[f]=(b.depth[e]>=b.depth[c]?b.depth[e]:b.depth[c])+1,g[2*e+1]=g[2*c+1]=f,b.heap[1]=f++,t(b,g,1);while(2<=b.heap_len);b.heap[--b.heap_max]=b.heap[1];var n,q,k=d.dyn_tree,l=d.max_code,v=d.stat_desc.static_tree,r=d.stat_desc.has_stree,s=d.stat_desc.extra_bits,u=d.stat_desc.extra_base,x=d.stat_desc.max_length,y=0;for(c=0;c<=S;c++)b.bl_count[c]=0;k[2*b.heap[b.heap_max]+1]=0;for(e=b.heap_max+1;ex&&(c=x,y++),k[2*f+1]=c,f>l||(b.bl_count[c]++,n=0,f>=u&&(n=s[f-u]),q=k[2*f],b.opt_len+=q*(c+n),r&&(b.static_len+=q*(v[2*f+1]+n)));if(0!==y){do{for(c=x-1;0===b.bl_count[c];)c--;b.bl_count[c]--;b.bl_count[c+1]+=2;b.bl_count[x]--;y-=2}while(0l||(k[2*n+1]!==c&&(b.opt_len+=(c-k[2*n+1])*k[2*n],k[2*n+1]=c),f--)}p(g,m,b.bl_count)}function A(b,d,e){var c,f,g=-1,k=d[1],l=0,m=7,n=4;0===k&&(m=138,n=3);d[2*(e+1)+1]=65535;for(c=0;c<= +e;c++)f=k,k=d[2*(c+1)+1],++l=l?b.bl_tree[2*O]++:b.bl_tree[2*Q]++,l=0,g=f,0===k?(m=138,n=3):f===k?(m=6,n=3):(m=7,n=4))}function y(b,d,e){var c,f,g=-1,k=d[1],n=0,q=7,p=4;0===k&&(q=138,p=3);for(c=0;c<=e;c++)if(f=k,k=d[2*(c+1)+1],!(++n=n?(m(b,O,b.bl_tree),l(b,n-3,3)):(m(b,Q,b.bl_tree),l(b, +n-11,7));n=0;g=f;0===k?(q=138,p=3):f===k?(q=6,p=3):(q=7,p=4)}}function x(b){var d,e=4093624447;for(d=0;31>=d;d++,e>>>=1)if(1&e&&0!==b.dyn_ltree[2*d])return B;if(0!==b.dyn_ltree[18]||0!==b.dyn_ltree[20]||0!==b.dyn_ltree[26])return C;for(d=32;df;f++){U[f]=c;for(d=0;d<1<f;f++){Z[f]=c;for(d=0;d<1<>=7;f=d;)R[2*d+1]=8,d++,k[8]++;for(;255>=d;)R[2*d+1]=9,d++,k[9]++;for(;279>=d;)R[2*d+1]=7,d++,k[7]++;for(;287>=d;)R[2*d+1]=8,d++,k[8]++;p(R,H+1,k);for(d=0;d>>3;g=b.static_len+3+7>>>3;g<=f&&(f=g)}else f=g=e+5;if(e+4<=f&&-1!==d)D(b,d,e,c);else if(4===b.strategy||g===f)l(b,2+(c?1:0),3),v(b,R,X); +else{l(b,4+(c?1:0),3);d=b.l_desc.max_code+1;e=b.d_desc.max_code+1;k+=1;l(b,d-257,5);l(b,e-1,5);l(b,k-4,4);for(f=0;f>>8&255,b.pending_buf[b.d_buf+2*b.last_lit+1]=255&d,b.pending_buf[b.l_buf+b.last_lit]=255&e,b.last_lit++,0===d?b.dyn_ltree[2*e]++:(b.matches++,d--,b.dyn_ltree[2*(ca[e]+F+1)]++,b.dyn_dtree[2*(256> d?da[d]:da[256+(d>>>7)])]++),b.last_lit===b.lit_bufsize-1};d._tr_align=function(b){l(b,2,3);m(b,P,R);16===b.bi_valid?(k(b,b.bi_buf),b.bi_buf=0,b.bi_valid=0):8<=b.bi_valid&&(b.pending_buf[b.pending++]=255&b.bi_buf,b.bi_buf>>=8,b.bi_valid-=8)}},{"../utils/common":3}],15:[function(c,f,d){f.exports=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}},{}],"/":[function(c, f,d){d=c("./lib/utils/common").assign;var b=c("./lib/deflate"),e=c("./lib/inflate");c=c("./lib/zlib/constants");var g={};d(g,b,e,c);f.exports=g},{"./lib/deflate":1,"./lib/inflate":2,"./lib/utils/common":3,"./lib/zlib/constants":6}]},{},[])("/")}); var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d",encode:function(a,c){var f="",d,b,e,g,k,l,m=0;for(null!=c&&c||(a=Base64._utf8_encode(a));m>2,d=(d&3)<<4|b>>4,k=(b&15)<<2|e>>6,l=e&63,isNaN(b)?k=l=64:isNaN(e)&&(l=64),f=f+this._keyStr.charAt(g)+this._keyStr.charAt(d)+this._keyStr.charAt(k)+this._keyStr.charAt(l);return f},decode:function(a,c){c=null!=c?c:!1;var f="",d,b,e,g,k,l=0;for(a= a.replace(/[^A-Za-z0-9\+\/\=]/g,"");l>4,b=(b&15)<<4|g>>2,e=(g&3)<<6|k,f+=String.fromCharCode(d),64!=g&&(f+=String.fromCharCode(b)),64!=k&&(f+=String.fromCharCode(e));c||(f=Base64._utf8_decode(f));return f},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");for(var c="",f=0;fd?c+=String.fromCharCode(d): (127d?c+=String.fromCharCode(d>>6|192):(c+=String.fromCharCode(d>>12|224),c+=String.fromCharCode(d>>6&63|128)),c+=String.fromCharCode(d&63|128))}return c},_utf8_decode:function(a){for(var c="",f=0,d=c1=c2=0;fd?(c+=String.fromCharCode(d),f++):191d?(c2=a.charCodeAt(f+1),c+=String.fromCharCode((d&31)<<6|c2&63),f+=2):(c2=a.charCodeAt(f+1),c3=a.charCodeAt(f+2),c+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63),f+=3);return c}},JSON;JSON||(JSON={}); -(function(){function a(b){return 10>b?"0"+b:b}function c(a){b.lastIndex=0;return b.test(a)?'"'+a.replace(b,function(b){var a=k[b];return"string"===typeof a?a:"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function f(b,a){var d,k,s,q,t=e,u,v=a[b];v&&"object"===typeof v&&"function"===typeof v.toJSON&&(v=v.toJSON(b));"function"===typeof l&&(v=l.call(a,b,v));switch(typeof v){case "string":return c(v);case "number":return isFinite(v)?""+v:"null";case "boolean":case "null":return""+ -v;case "object":if(!v)return"null";e+=g;u=[];if("[object Array]"===Object.prototype.toString.apply(v)){q=v.length;for(d=0;db?"0"+b:b}function c(a){b.lastIndex=0;return b.test(a)?'"'+a.replace(b,function(b){var a=k[b];return"string"===typeof a?a:"\\u"+("0000"+b.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function f(b,a){var d,k,s,q,t=e,v,u=a[b];u&&"object"===typeof u&&"function"===typeof u.toJSON&&(u=u.toJSON(b));"function"===typeof l&&(u=l.call(a,b,u));switch(typeof u){case "string":return c(u);case "number":return isFinite(u)?""+u:"null";case "boolean":case "null":return""+ +u;case "object":if(!u)return"null";e+=g;v=[];if("[object Array]"===Object.prototype.toString.apply(u)){q=u.length;for(d=0;dmxUtils.indexOf(c,b)))d[b]=!f&&"object"==typeof a[b]?mxUtils.clone(a[b]):a[b]}return d},equalPoints:function(a,c){if(null==a&&null!=c||null!=a&&null==c||null!=a&&null!=c&&a.length!=c.length)return!1;if(null!=a&&null!=c)for(var f=0;fb&&(b+=2*Math.PI);g=2*b/Math.PI;g=Math.ceil(0>g?-1*g:g);b/=g;m=8/3*Math.sin(b/4)*Math.sin(b/4)/Math.sin(b/2);n=p*f;p*=d;f*=r;d*=r;for(var v=Math.cos(e),z=Math.sin(e),s=-m*(n*z+d*v),q=-m*(f*z-p*v),r=[],y=0;yb&&(b+=2*Math.PI);g=2*b/Math.PI;g=Math.ceil(0>g?-1*g:g);b/=g;m=8/3*Math.sin(b/4)*Math.sin(b/4)/Math.sin(b/2);n=p*f;p*=d;f*=r;d*=r;for(var u=Math.cos(e),A=Math.sin(e),s=-m*(n*A+d*u),q=-m*(f*A-p*u),r=[],y=0;yf&&(a=3,-135>=f&&(a=2));if(0<=d.indexOf(mxConstants.DIRECTION_NORTH))switch(a){case 0:c|=mxConstants.DIRECTION_MASK_NORTH;break;case 1:c|=mxConstants.DIRECTION_MASK_EAST;break;case 2:c|=mxConstants.DIRECTION_MASK_SOUTH;break;case 3:c|=mxConstants.DIRECTION_MASK_WEST}if(0<=d.indexOf(mxConstants.DIRECTION_WEST))switch(a){case 0:c|=mxConstants.DIRECTION_MASK_WEST;break;case 1:c|=mxConstants.DIRECTION_MASK_NORTH;break;case 2:c|=mxConstants.DIRECTION_MASK_EAST;break;case 3:c|= @@ -532,13 +532,13 @@ mxSvgCanvas2D.prototype.updateText=function(a,c,f,d,b,e,g,k,l,m,n){if(null!=n&&n g=0;b==mxConstants.ALIGN_CENTER?g-=f/2:b==mxConstants.ALIGN_RIGHT&&(g-=f);a+=g;e==mxConstants.ALIGN_MIDDLE?l-=d/2:e==mxConstants.ALIGN_BOTTOM&&(l-=d);"fill"!=k&&mxClient.IS_FF&&mxClient.IS_WIN&&(l-=2);c+=l;b=1!=s.scale?"scale("+s.scale+")":"";0!=s.rotation&&this.rotateHtml?(b+="rotate("+s.rotation+","+f/2+","+d/2+")",c=this.rotatePoint((a+f/2)*s.scale,(c+d/2)*s.scale,s.rotation,s.rotationCx,s.rotationCy),a=c.x-f*s.scale/2,c=c.y-d*s.scale/2):(a*=s.scale,c*=s.scale);0!=m&&(b+="rotate("+m+","+-g+","+ -l+")");n.setAttribute("transform","translate("+Math.round(a)+","+Math.round(c)+")"+b);p.setAttribute("width",Math.round(Math.max(1,f)));p.setAttribute("height",Math.round(Math.max(1,d)))}}; mxSvgCanvas2D.prototype.text=function(a,c,f,d,b,e,g,k,l,m,n,p,r){if(this.textEnabled&&null!=b){p=null!=p?p:0;var s=this.state;a+=s.dx;c+=s.dy;if(this.foEnabled&&"html"==l){var q="vertical-align:top;";n?q+="overflow:hidden;max-height:"+Math.round(d)+"px;max-width:"+Math.round(f)+"px;":"fill"==m?q+="width:"+Math.round(f+1)+"px;height:"+Math.round(d+1)+"px;overflow:hidden;":"width"==m&&(q+="width:"+Math.round(f+1)+"px;",0s.alpha&&t.setAttribute("opacity",s.alpha);var u=this.createElement("foreignObject");u.setAttribute("style","overflow:visible;");u.setAttribute("pointer-events","all");q=this.createDiv(b,e,g,q,m);if(null!=q){null!=r&&q.setAttribute("dir",r);t.appendChild(u);this.root.appendChild(t);var v=0,z=0;r=v=2;if(mxClient.IS_IE&&(9==document.documentMode||!mxClient.IS_SVG)){var y= -document.createElement("div");y.style.cssText=q.getAttribute("style");y.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";y.style.position="absolute";y.style.visibility="hidden";z=document.createElement("div");z.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";z.style.wordWrap=mxConstants.WORD_WRAP;z.innerHTML=mxUtils.isNode(b)?b.outerHTML:b;y.appendChild(z);document.body.appendChild(y);8!=document.documentMode&&9!=document.documentMode&&null!=s.fontBorderColor&&(v+=2,r+=2);if(k&&0< -f){var x=z.offsetWidth;if(!n&&k&&0s.alpha&&t.setAttribute("opacity",s.alpha);r=q=0;e==mxConstants.ALIGN_CENTER?q-=f/2:e==mxConstants.ALIGN_RIGHT&&(q-=f);a+=q;g==mxConstants.ALIGN_MIDDLE? +Math.round(f+1)+"px;white-space:normal;word-wrap:"+mxConstants.WORD_WRAP+";"):q+"white-space:nowrap;",t=this.createElement("g");1>s.alpha&&t.setAttribute("opacity",s.alpha);var v=this.createElement("foreignObject");v.setAttribute("style","overflow:visible;");v.setAttribute("pointer-events","all");q=this.createDiv(b,e,g,q,m);if(null!=q){null!=r&&q.setAttribute("dir",r);t.appendChild(v);this.root.appendChild(t);var u=0,A=0;r=u=2;if(mxClient.IS_IE&&(9==document.documentMode||!mxClient.IS_SVG)){var y= +document.createElement("div");y.style.cssText=q.getAttribute("style");y.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";y.style.position="absolute";y.style.visibility="hidden";A=document.createElement("div");A.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";A.style.wordWrap=mxConstants.WORD_WRAP;A.innerHTML=mxUtils.isNode(b)?b.outerHTML:b;y.appendChild(A);document.body.appendChild(y);8!=document.documentMode&&9!=document.documentMode&&null!=s.fontBorderColor&&(u+=2,r+=2);if(k&&0< +f){var x=A.offsetWidth;if(!n&&k&&0s.alpha&&t.setAttribute("opacity",s.alpha);r=q=0;e==mxConstants.ALIGN_CENTER?q-=f/2:e==mxConstants.ALIGN_RIGHT&&(q-=f);a+=q;g==mxConstants.ALIGN_MIDDLE? r-=d/2:g==mxConstants.ALIGN_BOTTOM&&(r-=d);"fill"!=m&&mxClient.IS_FF&&mxClient.IS_WIN&&(r-=2);c+=r;y=1!=s.scale?"scale("+s.scale+")":"";0!=s.rotation&&this.rotateHtml?(y+="rotate("+s.rotation+","+f/2+","+d/2+")",c=this.rotatePoint((a+f/2)*s.scale,(c+d/2)*s.scale,s.rotation,s.rotationCx,s.rotationCy),a=c.x-f*s.scale/2,c=c.y-d*s.scale/2):(a*=s.scale,c*=s.scale);0!=p&&(y+="rotate("+p+","+-q+","+-r+")");t.setAttribute("transform","translate("+(Math.round(a)+this.foOffset)+","+(Math.round(c)+this.foOffset)+ -")"+y);u.setAttribute("width",Math.round(Math.max(1,f)));u.setAttribute("height",Math.round(Math.max(1,d)));this.root.ownerDocument!=document&&(a=this.createAlternateContent(u,a,c,f,d,b,e,g,k,l,m,n,p),null!=a&&(u.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),f=this.createElement("switch"),f.appendChild(u),f.appendChild(a),t.appendChild(f)))}}else this.plainText(a,c,f,d,b,e,g,k,m,n,p,r)}}; +")"+y);v.setAttribute("width",Math.round(Math.max(1,f)));v.setAttribute("height",Math.round(Math.max(1,d)));this.root.ownerDocument!=document&&(a=this.createAlternateContent(v,a,c,f,d,b,e,g,k,l,m,n,p),null!=a&&(v.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),f=this.createElement("switch"),f.appendChild(v),f.appendChild(a),t.appendChild(f)))}}else this.plainText(a,c,f,d,b,e,g,k,m,n,p,r)}}; mxSvgCanvas2D.prototype.createClip=function(a,c,f,d){a=Math.round(a);c=Math.round(c);f=Math.round(f);d=Math.round(d);for(var b="mx-clip-"+a+"-"+c+"-"+f+"-"+d,e=0,g=b+"-"+e;null!=document.getElementById(g);)g=b+"-"+ ++e;clip=this.createElement("clipPath");clip.setAttribute("id",g);b=this.createElement("rect");b.setAttribute("x",a);b.setAttribute("y",c);b.setAttribute("width",f);b.setAttribute("height",d);clip.appendChild(b);return clip}; mxSvgCanvas2D.prototype.plainText=function(a,c,f,d,b,e,g,k,l,m,n,p){n=null!=n?n:0;k=this.state;var r=k.fontSize,s=this.createElement("g"),q=k.transform||"";this.updateFont(s);0!=n&&(q+="rotate("+n+","+this.format(a*k.scale)+","+this.format(c*k.scale)+")");null!=p&&s.setAttribute("direction",p);m&&0v&&(v+=2*Math.PI);v%=Math.PI;v>Math.PI/2&&(v=Math.PI-v);g=Math.cos(v);var z=Math.sin(v);8==document.documentMode&&!mxClient.IS_EM&&(b.style.display="inline-block",e.style.display="inline-block",q.style.display="inline-block");b.style.visibility="hidden";b.style.position="absolute";document.body.appendChild(b);q=b;null!=q.firstChild&&"DIV"==q.firstChild.nodeName&&(q=q.firstChild);v=q.offsetWidth+3;q=q.offsetHeight;n?(f=Math.min(f,v), -q=Math.min(q,d)):f=v;k&&(b.style.width=f+"px");if(mxClient.IS_QUIRKS&&(n||"width"==m)&&q>d)q=d,b.style.height=q+"px";d=q;n=(d-d*g+f*-z)/2-r*f*(u+0.5)+p*d*(t+0.5);k=(f-f*g+d*-z)/2+p*f*(u+0.5)+r*d*(t+0.5);"group"==l.nodeName&&"DIV"==this.root.nodeName?(m=this.createElement("div"),m.style.display="inline-block",m.style.position="absolute",m.style.left=this.format(a+(k-f/2)*s.scale)+"px",m.style.top=this.format(c+(n-d/2)*s.scale)+"px",l.parentNode.appendChild(m),m.appendChild(l)):(s=8==document.documentMode&& +l.style.left=this.format(a)+"px";l.style.top=this.format(c)+"px";l.style.zoom=s.scale;var q=this.createElement("div");q.style.position="relative";q.style.display="inline";var t=mxUtils.getAlignmentAsPoint(e,g),v=t.x,t=t.y;b=this.createDiv(b,e,g,m);e=this.createElement("div");null!=r&&b.setAttribute("dir",r);if(k&&0u&&(u+=2*Math.PI);u%=Math.PI;u>Math.PI/2&&(u=Math.PI-u);g=Math.cos(u);var A=Math.sin(u);8==document.documentMode&&!mxClient.IS_EM&&(b.style.display="inline-block",e.style.display="inline-block",q.style.display="inline-block");b.style.visibility="hidden";b.style.position="absolute";document.body.appendChild(b);q=b;null!=q.firstChild&&"DIV"==q.firstChild.nodeName&&(q=q.firstChild);u=q.offsetWidth+3;q=q.offsetHeight;n?(f=Math.min(f,u), +q=Math.min(q,d)):f=u;k&&(b.style.width=f+"px");if(mxClient.IS_QUIRKS&&(n||"width"==m)&&q>d)q=d,b.style.height=q+"px";d=q;n=(d-d*g+f*-A)/2-r*f*(v+0.5)+p*d*(t+0.5);k=(f-f*g+d*-A)/2+p*f*(v+0.5)+r*d*(t+0.5);"group"==l.nodeName&&"DIV"==this.root.nodeName?(m=this.createElement("div"),m.style.display="inline-block",m.style.position="absolute",m.style.left=this.format(a+(k-f/2)*s.scale)+"px",m.style.top=this.format(c+(n-d/2)*s.scale)+"px",l.parentNode.appendChild(m),m.appendChild(l)):(s=8==document.documentMode&& !mxClient.IS_EM?1:s.scale,l.style.left=this.format(a+(k-f/2)*s)+"px",l.style.top=this.format(c+(n-d/2)*s)+"px");e.style.filter="progid:DXImageTransform.Microsoft.Matrix(M11\x3d"+p+", M12\x3d"+r+", M21\x3d"+-r+", M22\x3d"+p+", sizingMethod\x3d'auto expand')";e.style.backgroundColor=this.rotatedHtmlBackground;1>this.state.alpha&&(e.style.filter+="alpha(opacity\x3d"+100*this.state.alpha+")");e.appendChild(b);b.style.position="";b.style.visibility=""}else 8!=document.documentMode||mxClient.IS_EM?(b.style.verticalAlign= -"top",1>this.state.alpha&&(l.style.filter="alpha(opacity\x3d"+100*this.state.alpha+")"),s=b.parentNode,b.style.visibility="hidden",document.body.appendChild(b),f=b.offsetWidth,q=b.offsetHeight,mxClient.IS_QUIRKS&&n&&q>d&&(q=d,b.style.height=q+"px"),d=q,b.style.visibility="",s.appendChild(b),l.style.left=this.format(a+f*u*this.state.scale)+"px",l.style.top=this.format(c+d*t*this.state.scale)+"px"):(1>this.state.alpha&&(b.style.filter="alpha(opacity\x3d"+100*this.state.alpha+")"),q.style.left=100*u+ +"top",1>this.state.alpha&&(l.style.filter="alpha(opacity\x3d"+100*this.state.alpha+")"),s=b.parentNode,b.style.visibility="hidden",document.body.appendChild(b),f=b.offsetWidth,q=b.offsetHeight,mxClient.IS_QUIRKS&&n&&q>d&&(q=d,b.style.height=q+"px"),d=q,b.style.visibility="",s.appendChild(b),l.style.left=this.format(a+f*v*this.state.scale)+"px",l.style.top=this.format(c+d*t*this.state.scale)+"px"):(1>this.state.alpha&&(b.style.filter="alpha(opacity\x3d"+100*this.state.alpha+")"),q.style.left=100*v+ "%",q.style.top=100*t+"%")}else this.plainText(a,c,f,d,mxUtils.htmlEntities(b,!1),e,g,k,l,m,n,p,r)}}; mxVmlCanvas2D.prototype.plainText=function(a,c,f,d,b,e,g,k,l,m,n,p,r){k=this.state;a=(a+k.dx)*k.scale;c=(c+k.dy)*k.scale;f=this.createVmlElement("shape");f.style.width="1px";f.style.height="1px";f.stroked="false";d=this.createVmlElement("fill");d.color=k.fontColor;d.opacity=100*k.alpha+"%";f.appendChild(d);d=this.createVmlElement("path");d.textpathok="true";d.v="m "+this.format(0)+" "+this.format(0)+" l "+this.format(1)+" "+this.format(0);f.appendChild(d);d=this.createVmlElement("textpath");d.style.cssText= "v-text-align:"+e;d.style.align=e;d.style.fontFamily=k.fontFamily;d.string=b;d.on="true";e=k.fontSize*k.scale/this.vmlScale;d.style.fontSize=e+"px";(k.fontStyle&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(d.style.fontWeight="bold");(k.fontStyle&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&(d.style.fontStyle="italic");(k.fontStyle&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&(d.style.textDecoration="underline");b=b.split("\n");k=e+(b.length-1)*e*mxConstants.LINE_HEIGHT;e=b=0; g==mxConstants.ALIGN_BOTTOM?e=-k/2:g!=mxConstants.ALIGN_MIDDLE&&(e=k/2);null!=p&&(f.style.rotation=p,g=p*(Math.PI/180),b=Math.sin(g)*e,e*=Math.cos(g));f.appendChild(d);f.style.left=this.format(a-b)+"px";f.style.top=this.format(c+e)+"px";this.root.appendChild(f)};mxVmlCanvas2D.prototype.stroke=function(){this.addNode(!1,!0)};mxVmlCanvas2D.prototype.fill=function(){this.addNode(!0,!1)};mxVmlCanvas2D.prototype.fillAndStroke=function(){this.addNode(!0,!0)}; function mxGuide(a,c){this.graph=a;this.setStates(c)}mxGuide.prototype.graph=null;mxGuide.prototype.states=null;mxGuide.prototype.horizontal=!0;mxGuide.prototype.vertical=!0;mxGuide.prototype.guideX=null;mxGuide.prototype.guideY=null;mxGuide.prototype.setStates=function(a){this.states=a};mxGuide.prototype.isEnabledForEvent=function(a){return!0};mxGuide.prototype.getGuideTolerance=function(){return this.graph.gridSize/2}; mxGuide.prototype.createGuideShape=function(a){a=new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH);a.isDashed=!0;return a}; -mxGuide.prototype.move=function(a,c,f){if(null!=this.states&&(this.horizontal||this.vertical)&&null!=a&&null!=c){var d=this.graph.getView().translate,b=this.graph.getView().scale,e=c.x,g=c.y,k=!1,l=null,m=null,n=!1,p=null,r=null,s=this.getGuideTolerance(),q=s,t=s,s=a.clone();s.x+=c.x;s.y+=c.y;var u=s.x,v=s.x+s.width,z=s.getCenterX(),y=s.y,x=s.y+s.height,C=s.getCenterY();c=function(b,d){b+=this.graph.panDx;var c=!1;Math.abs(b-z)this.wrap||!f&&k.y+k.height+q.height+2*this.spacing>this.wrap))k=null,f?g+=l+this.spacing:e+=l+this.spacing,l= -0;var l=Math.max(l,f?q.height:q.width),t=0;if(!this.borderCollapse)var u=this.graph.getCellStyle(s),t=mxUtils.getNumber(u,mxConstants.STYLE_STROKEWIDTH,1);null!=k?f?q.x=m+this.spacing+Math.floor(t/2):q.y=m+this.spacing+Math.floor(t/2):this.keepFirstLocation||(f?q.x=e:q.y=g);f?q.y=g:q.x=e;this.fill&&null!=b&&(f?q.height=b:q.width=b);this.setChildGeometry(s,q);n=s;k=q;m=f?k.x+k.width+Math.floor(t/2):k.y+k.height+Math.floor(t/2)}}}this.resizeParent&&null!=c&&null!=k&&!this.graph.isCellCollapsed(a)?this.updateParentGeometry(a, +0;var l=Math.max(l,f?q.height:q.width),t=0;if(!this.borderCollapse)var v=this.graph.getCellStyle(s),t=mxUtils.getNumber(v,mxConstants.STYLE_STROKEWIDTH,1);null!=k?f?q.x=m+this.spacing+Math.floor(t/2):q.y=m+this.spacing+Math.floor(t/2):this.keepFirstLocation||(f?q.x=e:q.y=g);f?q.y=g:q.x=e;this.fill&&null!=b&&(f?q.height=b:q.width=b);this.setChildGeometry(s,q);n=s;k=q;m=f?k.x+k.width+Math.floor(t/2):k.y+k.height+Math.floor(t/2)}}}this.resizeParent&&null!=c&&null!=k&&!this.graph.isCellCollapsed(a)?this.updateParentGeometry(a, c,k):this.resizeLast&&null!=c&&null!=k&&null!=n&&(f?k.width=c.width-k.x-this.spacing-this.marginRight-this.marginLeft:k.height=c.height-k.y-this.spacing-this.marginBottom,this.setChildGeometry(n,k))}finally{d.endUpdate()}}};mxStackLayout.prototype.setChildGeometry=function(a,c){var f=this.graph.getCellGeometry(a);(null==f||c.x!=f.x||c.y!=f.y||c.width!=f.width||c.height!=f.height)&&this.graph.getModel().setGeometry(a,c)}; mxStackLayout.prototype.updateParentGeometry=function(a,c,f){var d=this.isHorizontal(),b=this.graph.getModel(),e=c.clone();d?(f=f.x+f.width+this.spacing+this.marginRight,e.width=this.resizeParentMax?Math.max(e.width,f):f):(f=f.y+f.height+this.spacing+this.marginBottom,e.height=this.resizeParentMax?Math.max(e.height,f):f);(c.x!=e.x||c.y!=e.y||c.width!=e.width||c.height!=e.height)&&b.setGeometry(a,e)}; function mxPartitionLayout(a,c,f,d){mxGraphLayout.call(this,a);this.horizontal=null!=c?c:!0;this.spacing=f||0;this.border=d||0}mxPartitionLayout.prototype=new mxGraphLayout;mxPartitionLayout.prototype.constructor=mxPartitionLayout;mxPartitionLayout.prototype.horizontal=null;mxPartitionLayout.prototype.spacing=null;mxPartitionLayout.prototype.border=null;mxPartitionLayout.prototype.resizeVertices=!0;mxPartitionLayout.prototype.isHorizontal=function(){return this.horizontal}; @@ -868,9 +868,9 @@ mxMedianHybridCrossingReduction.prototype.execute=function(a){a=this.layout.getM k}}else{f++;for(b=0;b>1,++b[l]}return f}; -mxMedianHybridCrossingReduction.prototype.transpose=function(a,c){for(var f=!0,d=0;f&&10>d++;)for(var b=1==a%2&&1==d%2,f=!1,e=0;en&&(n=l);k[n]=m}for(var p=null,r=null,s=null,q=null,t=null,u=null,v=null,z=null,l=0;lt[A]&&x++,s[y]u[A]&&x++,q[y]d++;)for(var b=1==a%2&&1==d%2,f=!1,e=0;en&&(n=l);k[n]=m}for(var p=null,r=null,s=null,q=null,t=null,v=null,u=null,A=null,l=0;lt[z]&&x++,s[y]v[z]&&x++,q[y]a.medianValue?-1:c.medianValueu+1&&(m==d[l].length-1?(b.setGeneralPurposeVariable(l,v),p=!0):(m=d[l][m+1],u=m.getGeneralPurposeVariable(l),u=u-m.width/2-this.intraCellSpacing-b.width/2,u>v?(b.setGeneralPurposeVariable(l, -v),p=!0):u>b.getGeneralPurposeVariable(l)+1&&(b.setGeneralPurposeVariable(l,u),p=!0)));if(p){for(b=0;bv+1&&(m==d[l].length-1?(b.setGeneralPurposeVariable(l,u),p=!0):(m=d[l][m+1],v=m.getGeneralPurposeVariable(l),v=v-m.width/2-this.intraCellSpacing-b.width/2,v>u?(b.setGeneralPurposeVariable(l, +u),p=!0):v>b.getGeneralPurposeVariable(l)+1&&(b.setGeneralPurposeVariable(l,v),p=!0)));if(p){for(b=0;b=k&&l<=r?g.setGeneralPurposeVariable(a,l):lr&&(g.setGeneralPurposeVariable(a,r),this.currentXDelta+=l-r);d[e].visited=!0}};mxCoordinateAssignment.prototype.calculatedWeightedValue=function(a,c){for(var f=0,d=0;d(e+1)*this.prefHozEdgeSep+2*this.prefHozEdgeSep&&(n+=this.prefHozEdgeSep,p-=this.prefHozEdgeSep);l=(p-n)/e;n+=l/2;p=this.minEdgeJetty-this.prefVertEdgeOff;for(m=r=0;me/2&&(p-=this.prefVertEdgeOff);for(t=0;ta.weightedValue?-1:c.weightedValue=c.x&&d.x<=c.x+c.width&&(a=d.x),k=null!=d?d.y:Math.round(g+(k-g)/2),!mxUtils.contains(f,a,k)&&!mxUtils.contains(c,a,k)&&b.push(new mxPoint(a,k)),a=null!=d&&d.x>=f.x&&d.x<=f.x+f.width?d.x:e.getRoutingCenterX(f),!mxUtils.contains(f,a,k)&&!mxUtils.contains(c,a,k)&&b.push(new mxPoint(a,k)),1==b.length&&(null!=d&&1==b.length?!mxUtils.contains(f,d.x,k)&&!mxUtils.contains(c,d.x,k)&&b.push(new mxPoint(d.x,k)):(e=Math.max(c.x,f.x),c=Math.min(c.x+c.width,f.x+f.width),b.push(new mxPoint(e+(c-e)/ 2,k)))))},SegmentConnector:function(a,c,f,d,b){function e(a){if(null==l||Math.abs(l.x-a.x)>=k||Math.abs(l.y-a.y)>=k)b.push(a),l=a;return l}var g=a.absolutePoints,k=Math.max(1,a.view.scale),l=0s;s++){var y=null!=u&&u.x==v.x,x=null!=u&&u.y==v.y,C=null!=t&&v.y>=t.y&& -v.y<=t.y+t.height,t=null!=t&&v.x>=t.x&&v.x<=t.x+t.width,v=x||null==u&&C,z=y||null==u&&t;if(!(0==s&&(v&&z||y&&x))){if(null!=u&&!x&&!y&&(C||t)){m=C?!1:!0;break}if(z||v){m=v;1==s&&(m=0==d.length%2?v:z);break}}t=f;u=g[r];null!=u&&(u.x=Math.round(u.x),u.y=Math.round(u.y),t=null);v=d[d.length-1];y&&x&&(d=d.slice(1))}m&&(null!=g[0]&&g[0].y!=n.y||null==g[0]&&null!=c&&(n.yc.y+c.height))?e(new mxPoint(p.x,n.y)):!m&&(null!=g[0]&&g[0].x!=n.x||null==g[0]&&null!=c&&(n.xc.x+c.width))&&e(new mxPoint(n.x, +q&&(q.x=Math.round(q.x),q.y=Math.round(q.y),n.push(q))}if(0==n.length)return;d=n;null!=p&&null!=d[0]&&(Math.abs(d[0].x-p.x)s;s++){var y=null!=v&&v.x==u.x,x=null!=v&&v.y==u.y,D=null!=t&&u.y>=t.y&& +u.y<=t.y+t.height,t=null!=t&&u.x>=t.x&&u.x<=t.x+t.width,u=x||null==v&&D,A=y||null==v&&t;if(!(0==s&&(u&&A||y&&x))){if(null!=v&&!x&&!y&&(D||t)){m=D?!1:!0;break}if(A||u){m=u;1==s&&(m=0==d.length%2?u:A);break}}t=f;v=g[r];null!=v&&(v.x=Math.round(v.x),v.y=Math.round(v.y),t=null);u=d[d.length-1];y&&x&&(d=d.slice(1))}m&&(null!=g[0]&&g[0].y!=n.y||null==g[0]&&null!=c&&(n.yc.y+c.height))?e(new mxPoint(p.x,n.y)):!m&&(null!=g[0]&&g[0].x!=n.x||null==g[0]&&null!=c&&(n.xc.x+c.width))&&e(new mxPoint(n.x, p.y));m?p.y=n.y:p.x=n.x;for(s=0;sf.y+f.height))?e(new mxPoint(p.x,n.y)):!m&&(null!=g[r]&&g[r].x!=n.x||null==g[r]&&null!=f&&(n.xf.x+f.width))&&e(new mxPoint(n.x,p.y))));if(null==g[0]&&null!=c)for(;1< b.length&&null!=b[1]&&mxUtils.contains(c,b[1].x,b[1].y);)b.splice(1,1);if(null==g[r]&&null!=f)for(;1x;x++)mxEdgeStyle.limits[x][1]= -n[x][0]-z[x],mxEdgeStyle.limits[x][2]=n[x][1]-z[x],mxEdgeStyle.limits[x][4]=n[x][0]+n[x][2]+z[x],mxEdgeStyle.limits[x][8]=n[x][1]+n[x][3]+z[x];z=n[0][1]+n[0][3]/2;p=n[1][1]+n[1][3]/2;x=n[0][0]+n[0][2]/2-(n[1][0]+n[1][2]/2);C=z-p;z=0;0>x?z=0>C?2:1:0>=C&&(z=3,0==x&&(z=2));p=null;null!=c&&(p=l);c=[[0.5,0.5],[0.5,0.5]];for(x=0;2>x;x++)null!=p&&(c[x][0]=(p.x-n[x][0])/n[x][2],1>=Math.abs(p.x-n[x][0])?a[x]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(p.x-n[x][0]-n[x][2])&&(a[x]=mxConstants.DIRECTION_MASK_EAST), +mxEdgeStyle.orthBuffer))*mxEdgeStyle.orthBuffer):c=2*mxEdgeStyle.orthBuffer);return c},OrthConnector:function(a,c,f,d,b){var e=a.view.graph,g=null==c?!1:e.getModel().isEdge(c.cell),k=null==f?!1:e.getModel().isEdge(f.cell),e=a.absolutePoints,l=e[0],m=e[e.length-1],n=null!=c?c.x:l.x,p=null!=c?c.y:l.y,r=null!=c?c.width:0,s=null!=c?c.height:0,q=null!=f?f.x:m.x,t=null!=f?f.y:m.y,v=null!=f?f.width:0,u=null!=f?f.height:0,e=a.view.scale*mxEdgeStyle.getJettySize(a,c,f,d,!0),A=a.view.scale*mxEdgeStyle.getJettySize(a, +c,f,d,!1);null!=c&&f==c&&(e=A=Math.max(e,A));var y=A+e,x=!1;if(null!=l&&null!=m)var x=m.x-l.x,D=m.y-l.y,x=x*x+D*Dx;x++)mxEdgeStyle.limits[x][1]= +n[x][0]-A[x],mxEdgeStyle.limits[x][2]=n[x][1]-A[x],mxEdgeStyle.limits[x][4]=n[x][0]+n[x][2]+A[x],mxEdgeStyle.limits[x][8]=n[x][1]+n[x][3]+A[x];A=n[0][1]+n[0][3]/2;p=n[1][1]+n[1][3]/2;x=n[0][0]+n[0][2]/2-(n[1][0]+n[1][2]/2);D=A-p;A=0;0>x?A=0>D?2:1:0>=D&&(A=3,0==x&&(A=2));p=null;null!=c&&(p=l);c=[[0.5,0.5],[0.5,0.5]];for(x=0;2>x;x++)null!=p&&(c[x][0]=(p.x-n[x][0])/n[x][2],1>=Math.abs(p.x-n[x][0])?a[x]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(p.x-n[x][0]-n[x][2])&&(a[x]=mxConstants.DIRECTION_MASK_EAST), c[x][1]=(p.y-n[x][1])/n[x][3],1>=Math.abs(p.y-n[x][1])?a[x]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(p.y-n[x][1]-n[x][3])&&(a[x]=mxConstants.DIRECTION_MASK_SOUTH)),p=null,null!=f&&(p=m);x=n[0][1]-(n[1][1]+n[1][3]);m=n[0][0]-(n[1][0]+n[1][2]);p=n[1][1]-(n[0][1]+n[0][3]);r=n[1][0]-(n[0][0]+n[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(m-y,0);mxEdgeStyle.vertexSeperations[2]=Math.max(x-y,0);mxEdgeStyle.vertexSeperations[4]=Math.max(p-y,0);mxEdgeStyle.vertexSeperations[3]=Math.max(r-y,0);y=[]; f=[];l=[];f[0]=m>=r?mxConstants.DIRECTION_MASK_WEST:mxConstants.DIRECTION_MASK_EAST;l[0]=x>=p?mxConstants.DIRECTION_MASK_NORTH:mxConstants.DIRECTION_MASK_SOUTH;f[1]=mxUtils.reversePortConstraints(f[0]);l[1]=mxUtils.reversePortConstraints(l[0]);m=m>=r?m:r;p=x>=p?x:p;r=[[0,0],[0,0]];s=!1;for(x=0;2>x;x++)0==a[x]&&(0==(f[x]&d[x])&&(f[x]=mxUtils.reversePortConstraints(f[x])),0==(l[x]&d[x])&&(l[x]=mxUtils.reversePortConstraints(l[x])),r[x][0]=l[x],r[x][1]=f[x]);0x;x++)if(0==a[x]&&(0==(r[x][0]&d[x])&&(r[x][0]=r[x][1]),y[x]=r[x][0]&d[x],y[x]|=(r[x][1]&d[x])<<8,y[x]|=(r[1-x][x]&d[x])<<16,y[x]|=(r[1-x][1-x]&d[x])<<24,0==(y[x]&15)&&(y[x]<<=8),0==(y[x]&3840)&&(y[x]=y[x]&15|y[x]>>8),0== -(y[x]&983040)&&(y[x]=y[x]&65535|(y[x]&251658240)>>8),a[x]=y[x]&15,d[x]==mxConstants.DIRECTION_MASK_WEST||d[x]==mxConstants.DIRECTION_MASK_NORTH||d[x]==mxConstants.DIRECTION_MASK_EAST||d[x]==mxConstants.DIRECTION_MASK_SOUTH))a[x]=d[x];d=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];y=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];d-=z;y-=z;1>d&&(d+=4);1>y&&(y+=4);d=mxEdgeStyle.routePatterns[d-1][y-1];mxEdgeStyle.wayPoints1[0][0]=n[0][0];mxEdgeStyle.wayPoints1[0][1]=n[0][1];switch(a[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-= +(y[x]&983040)&&(y[x]=y[x]&65535|(y[x]&251658240)>>8),a[x]=y[x]&15,d[x]==mxConstants.DIRECTION_MASK_WEST||d[x]==mxConstants.DIRECTION_MASK_NORTH||d[x]==mxConstants.DIRECTION_MASK_EAST||d[x]==mxConstants.DIRECTION_MASK_SOUTH))a[x]=d[x];d=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];y=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];d-=A;y-=A;1>d&&(d+=4);1>y&&(y+=4);d=mxEdgeStyle.routePatterns[d-1][y-1];mxEdgeStyle.wayPoints1[0][0]=n[0][0];mxEdgeStyle.wayPoints1[0][1]=n[0][1];switch(a[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-= e;mxEdgeStyle.wayPoints1[0][1]+=c[0][1]*n[0][3];break;case mxConstants.DIRECTION_MASK_SOUTH:mxEdgeStyle.wayPoints1[0][0]+=c[0][0]*n[0][2];mxEdgeStyle.wayPoints1[0][1]+=n[0][3]+e;break;case mxConstants.DIRECTION_MASK_EAST:mxEdgeStyle.wayPoints1[0][0]+=n[0][2]+e;mxEdgeStyle.wayPoints1[0][1]+=c[0][1]*n[0][3];break;case mxConstants.DIRECTION_MASK_NORTH:mxEdgeStyle.wayPoints1[0][0]+=c[0][0]*n[0][2],mxEdgeStyle.wayPoints1[0][1]-=e}e=0;f=y=0<(a[0]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))? -0:1;for(x=0;x>5,p<<=z,15>=4),r=0<(d[x]&mxEdgeStyle.CENTER_MASK),(s||t)&&9>p?(s=s?0:1,q=r&&0==l?n[s][0]+c[s][0]*n[s][2]:r?n[s][1]+c[s][1]* +0:1;for(x=0;x>5,p<<=A,15>=4),r=0<(d[x]&mxEdgeStyle.CENTER_MASK),(s||t)&&9>p?(s=s?0:1,q=r&&0==l?n[s][0]+c[s][0]*n[s][2]:r?n[s][1]+c[s][1]* n[s][3]:mxEdgeStyle.limits[s][p],0==l?(p=(q-mxEdgeStyle.wayPoints1[e][0])*m[0],0b&&(b+=4);1>a&&(a+=4);c=routePatterns[b-1][a-1];if(0==f||0==d)null!=inlineRoutePatterns[b-1][a- 1]&&(c=inlineRoutePatterns[b-1][a-1]);return c}},mxStyleRegistry={values:[],putValue:function(a,c){mxStyleRegistry.values[a]=c},getValue:function(a){return mxStyleRegistry.values[a]},getName:function(a){for(var c in mxStyleRegistry.values)if(mxStyleRegistry.values[c]==a)return c;return null}};mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation); @@ -1647,7 +1647,7 @@ mxConnectionHandler.prototype.connect=function(a,c,f,d){if(null!=c||this.isCreat this.graph.getDefaultParent();this.graph.addCell(c,d)}var m=this.graph.getDefaultParent();null!=a&&null!=c&&b.getParent(a)==b.getParent(c)&&b.getParent(b.getParent(a))!=b.getRoot()&&(m=b.getParent(a),null!=a.geometry&&a.geometry.relative&&null!=c.geometry&&c.geometry.relative&&(m=b.getParent(m)));var n=k=null;null!=this.edgeState&&(k=this.edgeState.cell.value,n=this.edgeState.cell.style);g=this.insertEdge(m,null,k,a,c,n);if(null!=g){this.graph.setConnectionConstraint(g,a,!0,this.sourceConstraint); this.graph.setConnectionConstraint(g,c,!1,this.constraintHandler.currentConstraint);null!=this.edgeState&&b.setGeometry(g,this.edgeState.cell.geometry);b.getParent(a);if(this.isInsertBefore(g,a,c,f,d)){m=null;for(l=a;null!=l.parent&&null!=l.geometry&&l.geometry.relative&&l.parent!=g.parent;)l=this.graph.model.getParent(l);null!=l&&null!=l.parent&&l.parent==g.parent&&(m=l.parent.getIndex(l),l.parent.insert(g,m))}var p=b.getGeometry(g);null==p&&(p=new mxGeometry,p.relative=!0,b.setGeometry(g,p));if(null!= this.waypoints&&0this.minPageBreakDist)?Math.ceil(d/t.height)-1:0,v=b?Math.ceil(a/t.width)-1:0,z=q.x+a,y=q.y+d;null==this.horizontalPageBreaks&&0this.minPageBreakDist)?Math.ceil(d/t.height)-1:0,u=b?Math.ceil(a/t.width)-1:0,A=q.x+a,y=q.y+d;null==this.horizontalPageBreaks&&0mxUtils.indexOf(this.toolbar.staticElements,b)&&(b.parentNode.removeChild(b),a.push(b));b=e}b=this.toolbar.fontMenu;e=this.toolbar.sizeMenu;if(null==p)this.toolbar.createTextToolbar();else{for(var c=0;cmxUtils.indexOf(z,t))&&d.setCellStyles(t,A,[k])}}}finally{d.getModel().endUpdate()}}; -d.addListener("cellsInserted",function(b,a){A(a.getProperty("cells"))});d.addListener("textInserted",function(b,a){A(a.getProperty("cells"),!0)});d.connectionHandler.addListener(mxEvent.CONNECT,function(b,a){var d=[a.getProperty("cell")];a.getProperty("terminalInserted")&&d.push(a.getProperty("terminal"));A(d)});this.addListener("styleChanged",mxUtils.bind(this,function(b,a){var e=a.getProperty("cells"),c=!1,f=!1;if(0mxUtils.indexOf(A,t))&&d.setCellStyles(t,z,[k])}}}finally{d.getModel().endUpdate()}}; +d.addListener("cellsInserted",function(b,a){z(a.getProperty("cells"))});d.addListener("textInserted",function(b,a){z(a.getProperty("cells"),!0)});d.connectionHandler.addListener(mxEvent.CONNECT,function(b,a){var d=[a.getProperty("cell")];a.getProperty("terminalInserted")&&d.push(a.getProperty("terminal"));z(d)});this.addListener("styleChanged",mxUtils.bind(this,function(b,a){var e=a.getProperty("cells"),c=!1,f=!1;if(0this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale+0.01)/this.view.scale:(this.cumulativeZoomFactor*=this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale):0.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor= -(this.view.scale-0.01)/this.view.scale:(this.cumulativeZoomFactor/=this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale);this.cumulativeZoomFactor=Math.max(0.01,Math.min(this.view.scale*this.cumulativeZoomFactor,160)/this.view.scale);this.updateZoomTimeout=window.setTimeout(mxUtils.bind(this,function(){this.zoom(this.cumulativeZoomFactor);null!=c&&c(!1);if(null!=t&&mxUtils.hasScrollbars(a.container)){var b=mxUtils.getOffset(a.container), -d=a.container.offsetHeight/2-t.y+b.y;a.container.scrollLeft-=(a.container.offsetWidth/2-t.x+b.x)*(this.cumulativeZoomFactor-1);a.container.scrollTop-=d*(this.cumulativeZoomFactor-1)}this.cumulativeZoomFactor=1;this.updateZoomTimeout=null}),20)};mxEvent.addMouseWheelListener(mxUtils.bind(this,function(b,d){if((mxEvent.isAltDown(b)||mxEvent.isControlDown(b)&&!mxClient.IS_MAC||a.panningHandler.isActive())&&(null==this.dialogs||0==this.dialogs.length))for(var e=mxEvent.getSource(b);null!=e;){if(e==a.container){t= -new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b));a.lazyZoom(d);mxEvent.consume(b);break}e=e.parentNode}}))};EditorUi.prototype.addChromelessClickHandler=function(){var a=urlParams.highlight;null!=a&&0this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale+0.01)/this.view.scale:(this.cumulativeZoomFactor*= +this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale):0.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale-0.01)/this.view.scale:(this.cumulativeZoomFactor/=this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale);this.cumulativeZoomFactor=Math.max(0.01,Math.min(this.view.scale*this.cumulativeZoomFactor,160)/this.view.scale);this.updateZoomTimeout= +window.setTimeout(mxUtils.bind(this,function(){this.zoom(this.cumulativeZoomFactor);null!=c&&c(!1);if(null!=x&&mxUtils.hasScrollbars(a.container)){var b=mxUtils.getOffset(a.container),d=a.container.offsetHeight/2-x.y+b.y;a.container.scrollLeft-=(a.container.offsetWidth/2-x.x+b.x)*(this.cumulativeZoomFactor-1);a.container.scrollTop-=d*(this.cumulativeZoomFactor-1)}this.cumulativeZoomFactor=1;this.updateZoomTimeout=null}),20)};mxEvent.addMouseWheelListener(mxUtils.bind(this,function(b,d){if((mxEvent.isAltDown(b)|| +mxEvent.isControlDown(b)&&!mxClient.IS_MAC||a.panningHandler.isActive())&&(null==this.dialogs||0==this.dialogs.length))for(var e=mxEvent.getSource(b);null!=e;){if(e==a.container){x=new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b));a.lazyZoom(d);mxEvent.consume(b);break}e=e.parentNode}}))}; +EditorUi.prototype.createTemporaryGraph=function(a){a=new Graph(document.createElement("div"),null,null,a);a.resetViewOnRootChange=!1;a.setConnectable(!1);a.gridEnabled=!1;a.autoScroll=!1;a.setTooltips(!1);a.setEnabled(!1);a.container.style.visibility="hidden";a.container.style.position="absolute";a.container.style.overflow="hidden";a.container.style.height="1px";a.container.style.width="1px";return a}; +EditorUi.prototype.addChromelessClickHandler=function(){var a=urlParams.highlight;null!=a&&0P&&null!=l&&!mxEvent.isShiftDown(c)&&(mxUtils.getValue(l.style,mxConstants.STYLE_SHAPE)!=mxUtils.getValue(O,mxConstants.STYLE_SHAPE)&&mxUtils.getValue(l.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||"image"==mxUtils.getValue(O,mxConstants.STYLE_SHAPE)||1500this.dropTargetDelay&&(b.model.isVertex(l.cell)&&null!=n||b.model.isEdge(l.cell)&&b.model.isEdge(d[0]))){v=l;var m=b.model.isEdge(l.cell)?b.view.getPoint(l): -new mxPoint(l.getCenterX(),l.getCenterY()),m=new mxRectangle(m.x-this.refreshTarget.width/2,m.y-this.refreshTarget.height/2,this.refreshTarget.width,this.refreshTarget.height);B.style.left=Math.floor(m.x)+"px";B.style.top=Math.floor(m.y)+"px";null==E&&(b.container.appendChild(B),E=B.parentNode);g(a,e,m,B)}else null==v||!mxUtils.contains(v,a,e)||1500P&&null!=l&&!mxEvent.isShiftDown(c)&&(mxUtils.getValue(l.style,mxConstants.STYLE_SHAPE)!=mxUtils.getValue(O,mxConstants.STYLE_SHAPE)&&mxUtils.getValue(l.style,mxConstants.STYLE_STROKECOLOR,mxConstants.NONE)!=mxConstants.NONE||"image"==mxUtils.getValue(O,mxConstants.STYLE_SHAPE)||1500this.dropTargetDelay&&(b.model.isVertex(l.cell)&&null!=n||b.model.isEdge(l.cell)&&b.model.isEdge(d[0]))){u=l;var m=b.model.isEdge(l.cell)?b.view.getPoint(l): +new mxPoint(l.getCenterX(),l.getCenterY()),m=new mxRectangle(m.x-this.refreshTarget.width/2,m.y-this.refreshTarget.height/2,this.refreshTarget.width,this.refreshTarget.height);B.style.left=Math.floor(m.x)+"px";B.style.top=Math.floor(m.y)+"px";null==C&&(b.container.appendChild(B),C=B.parentNode);g(a,e,m,B)}else null==u||!mxUtils.contains(u,a,e)||1500P&&P>this.dropTargetDelay||b.model.isEdge(f)?l:null,null!=t&&m){k=[G,F,y,x,C,A];for(m=0;mP&&P>this.dropTargetDelay||b.model.isEdge(f)?l:null,null!=t&&m){k=[G,F,y,x,D,z];for(m=0;mmxUtils.indexOf(a,c)&&d.push(c)): d.push(a[e])}return d};this.connectionHandler.createTargetVertex=function(b,a){var d=this.graph.view.getState(a),d=null!=d?d.style:this.graph.getCellStyle(a);mxUtils.getValue(d,"part",!1)&&(d=this.graph.model.getParent(a),this.graph.model.isVertex(d)&&(a=d));return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};var p=new mxRubberband(this);this.getRubberband=function(){return p};var r=(new Date).getTime(),s=0,q=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove= -function(){var b=this.currentState;q.apply(this,arguments);b!=this.currentState?(r=(new Date).getTime(),s=0):s=(new Date).getTime()-r};var t=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(b){return null!=this.currentState&&b.getState()==this.currentState&&2E3=b&&t.y+t.height<=l&&(t.y>=a&&t.x+t.width<=k)&&f.push(q);this.getAllCells(b,a,d,e,q,f)}}}return f};var C=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(b,a,d){return this.graph.isCellSelected(b)?!1:C.apply(this,arguments)};this.isCellLocked=function(b){for(b=this.view.getState(b);null!=b;){if("1"==mxUtils.getValue(b.style, -"locked","0"))return!0;b=this.view.getState(this.model.getParent(b.cell))}return!1};var A=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(b,a){if("mouseDown"==a.getProperty("eventName")){var d=a.getProperty("event").getState();A=null!=d&&!this.isSelectionEmpty()&&!this.isCellSelected(d.cell)?this.getSelectionCells():null}}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(b,a){if(!mxEvent.isMultiTouchEvent(a)){var d=a.getProperty("event"),e=a.getProperty("cell"); -null==e?(d=mxUtils.convertPoint(this.container,mxEvent.getClientX(d),mxEvent.getClientY(d)),p.start(d.x,d.y)):null!=A?this.addSelectionCells(A):1=b&&t.y+t.height<=l&&(t.y>=a&&t.x+t.width<=k)&&f.push(q);this.getAllCells(b,a,d,e,q,f)}}}return f};var D=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(b,a,d){return this.graph.isCellSelected(b)?!1:D.apply(this,arguments)};this.isCellLocked=function(b){for(b=this.view.getState(b);null!=b;){if("1"==mxUtils.getValue(b.style, +"locked","0"))return!0;b=this.view.getState(this.model.getParent(b.cell))}return!1};var z=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(b,a){if("mouseDown"==a.getProperty("eventName")){var d=a.getProperty("event").getState();z=null!=d&&!this.isSelectionEmpty()&&!this.isCellSelected(d.cell)?this.getSelectionCells():null}}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(b,a){if(!mxEvent.isMultiTouchEvent(a)){var d=a.getProperty("event"),e=a.getProperty("cell"); +null==e?(d=mxUtils.convertPoint(this.container,mxEvent.getClientX(d),mxEvent.getClientY(d)),p.start(d.x,d.y)):null!=z?this.addSelectionCells(z):1r?"a":"p",tt:12>r?"am":"pm",T:12>r?"A":"P",TT:12>r?"AM":"PM",Z:f?"UTC":(String(a).match(b)||[""]).pop().replace(e,""),o:(0r?"a":"p",tt:12>r?"am":"pm",T:12>r?"A":"P",TT:12>r?"AM":"PM",Z:f?"UTC":(String(a).match(b)||[""]).pop().replace(e,""),o:(0g||Math.abs(f)>g)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(e,d),this.isSpaceEvent(a)?(e=this.x+this.width,d=this.y+this.height,c=this.graph.view.scale,mxEvent.isAltDown(a.getEvent())||(this.width=this.graph.snap(this.width/c)*c,this.height=this.graph.snap(this.height/c)*c,this.graph.isGridEnabled()||(this.width=this.width?"0px 1px 0px 0px":"0px 1px 0px 1px",null==this.secondDiv&&(this.secondDiv=this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)), -this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor="",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),a.consume()}};var z=mxRubberband.prototype.reset; -mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);z.apply(this,arguments)};var y=(new Date).getTime(),x=0,C=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(b,a,d,e){C.apply(this,arguments);d!=this.currentTerminalState?(y=(new Date).getTime(),x=0):x=(new Date).getTime()-y;this.currentTerminalState=d};var A=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent= -function(b){return null!=this.currentTerminalState&&b.getState()==this.currentTerminalState&&2E3=this.state.absolutePoints.length- +this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor="",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),a.consume()}};var A=mxRubberband.prototype.reset; +mxRubberband.prototype.reset=function(){null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null);A.apply(this,arguments)};var y=(new Date).getTime(),x=0,D=mxEdgeHandler.prototype.updatePreviewState;mxEdgeHandler.prototype.updatePreviewState=function(b,a,d,e){D.apply(this,arguments);d!=this.currentTerminalState?(y=(new Date).getTime(),x=0):x=(new Date).getTime()-y;this.currentTerminalState=d};var z=mxEdgeHandler.prototype.isOutlineConnectEvent;mxEdgeHandler.prototype.isOutlineConnectEvent= +function(b){return null!=this.currentTerminalState&&b.getState()==this.currentTerminalState&&2E3=this.state.absolutePoints.length- 1||this.constructor==mxElbowEdgeHandler&&2==b)?this.graph.getConnectionConstraint(this.state,e,d):null,d=null!=(null!=c?this.graph.getConnectionPoint(this.state.getVisibleTerminalState(d),c):null)?this.fixedHandleImage:null!=c&&null!=e?this.terminalHandleImage:this.handleImage;if(null!=d)return d=new mxImageShape(new mxRectangle(0,0,d.width,d.height),d.src),d.preserveImageAspect=!1,d;d=mxConstants.HANDLE_SIZE;this.preferHtml&&(d-=1);return new mxRectangleShape(new mxRectangle(0,0,d,d),mxConstants.HANDLE_FILLCOLOR, -mxConstants.HANDLE_STROKECOLOR)};var B=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(b,a,d){this.handleImage=a==mxEvent.ROTATION_HANDLE?u:a==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:this.handleImage;return B.apply(this,arguments)};var E=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(b){if(null!=b&&1==b.length){var a=this.graph.getModel(),d=a.getParent(b[0]),e=this.graph.getCellGeometry(b[0]);if(a.isEdge(d)&& -null!=e&&e.relative&&(a=this.graph.view.getState(b[0]),null!=a&&2>a.width&&2>a.height&&null!=a.text&&null!=a.text.boundingBox))return mxRectangle.fromRectangle(a.text.boundingBox)}return E.apply(this,arguments)};var G=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(b){var a=this.graph.getModel(),d=a.getParent(b.cell),e=this.graph.getCellGeometry(b.cell);return a.isEdge(d)&&null!=e&&e.relative&&2>b.width&&2>b.height&&null!=b.text&&null!=b.text.boundingBox? +mxConstants.HANDLE_STROKECOLOR)};var B=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(b,a,d){this.handleImage=a==mxEvent.ROTATION_HANDLE?v:a==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:this.handleImage;return B.apply(this,arguments)};var C=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(b){if(null!=b&&1==b.length){var a=this.graph.getModel(),d=a.getParent(b[0]),e=this.graph.getCellGeometry(b[0]);if(a.isEdge(d)&& +null!=e&&e.relative&&(a=this.graph.view.getState(b[0]),null!=a&&2>a.width&&2>a.height&&null!=a.text&&null!=a.text.boundingBox))return mxRectangle.fromRectangle(a.text.boundingBox)}return C.apply(this,arguments)};var G=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(b){var a=this.graph.getModel(),d=a.getParent(b.cell),e=this.graph.getCellGeometry(b.cell);return a.isEdge(d)&&null!=e&&e.relative&&2>b.width&&2>b.height&&null!=b.text&&null!=b.text.boundingBox? (a=b.text.unrotatedBoundingBox||b.text.boundingBox,new mxRectangle(Math.round(a.x),Math.round(a.y),Math.round(a.width),Math.round(a.height))):G.apply(this,arguments)};var F=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(b,a){var d=this.graph.getModel(),e=d.getParent(this.state.cell),c=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(a)==mxEvent.ROTATION_HANDLE||!d.isEdge(e)||null==c||!c.relative||null==this.state||2<=this.state.width||2<=this.state.height)&& F.apply(this,arguments)};mxVertexHandler.prototype.isRotationHandleVisible=function(){return this.graph.isEnabled()&&this.rotationEnabled&&this.graph.isCellRotatable(this.state.cell)&&(0>=mxGraphHandler.prototype.maxCells||this.graph.getSelectionCount()c&&ColorDialog.recentColors.pop())}; var AboutDialog=function(a){var c=document.createElement("div");c.setAttribute("align","center");var f=document.createElement("h3");mxUtils.write(f,mxResources.get("about")+" GraphEditor");c.appendChild(f);f=document.createElement("img");f.style.border="0px";f.setAttribute("width","176");f.setAttribute("width","151");f.setAttribute("src",IMAGE_PATH+"/logo.png");c.appendChild(f);mxUtils.br(c);mxUtils.write(c,"Powered by mxGraph "+mxClient.VERSION);mxUtils.br(c);f=document.createElement("a");f.setAttribute("href", -"http://www.jgraph.com/");f.setAttribute("target","_blank");mxUtils.write(f,"www.jgraph.com");c.appendChild(f);mxUtils.br(c);mxUtils.br(c);f=mxUtils.button(mxResources.get("close"),function(){a.hideDialog()});f.className="geBtn gePrimaryBtn";c.appendChild(f);this.container=c},PageSetupDialog=function(a){function c(){null==C||C==mxConstants.NONE?(x.style.backgroundColor="",x.style.backgroundImage="url('"+Dialog.prototype.noColorImage+"')"):(x.style.backgroundColor=C,x.style.backgroundImage="")}function f(){null== -E?(B.removeAttribute("title"),B.style.fontSize="",B.innerHTML=mxResources.get("change")+"..."):(B.setAttribute("title",E.src),B.style.fontSize="11px",B.innerHTML=E.src.substring(0,42)+"...")}var d=a.editor.graph,b,e,g=document.createElement("table");g.style.width="100%";g.style.height="100%";var k=document.createElement("tbody");b=document.createElement("tr");e=document.createElement("td");e.style.fontSize="10pt";mxUtils.write(e,mxResources.get("paperSize")+":");b.appendChild(e);var l=document.createElement("input"); -l.setAttribute("name","format");l.setAttribute("type","radio");l.setAttribute("value","portrait");var m=document.createElement("input");m.setAttribute("name","format");m.setAttribute("type","radio");m.setAttribute("value","landscape");var n=document.createElement("tr");n.style.display="none";var p=document.createElement("tr");p.style.display="none";var r=document.createElement("select");e=!1;for(var s={},q=PageSetupDialog.getFormats(),t=0;tMAX_AREA||0>=t.value?"red":"";u.style.backgroundColor=t.value*u.value>MAX_AREA||0>=u.value?"red":""}function d(){var a=Math.max(0,parseInt(v.value))+1,d=parseInt(t.value)/k,e=null;""!=s.value&&s.value!=mxConstants.NONE&&!q.checked&&(e=s.value);return b.getSvg(e, +0));a.editor.graph.setSelectionCells(a.editor.graph.importCells(p));a.hideDialog()}catch(r){e=r}finally{a.editor.graph.model.endUpdate()}}null!=e&&mxUtils.alert(e.message)});e.className="geBtn gePrimaryBtn";c.appendChild(e);a.editor.cancelFirst||c.appendChild(d);this.container=c},ExportDialog=function(a){function c(){var b=p.value,a=b.lastIndexOf(".");p.value=0MAX_AREA||0>=t.value?"red":"";v.style.backgroundColor=t.value*v.value>MAX_AREA||0>=v.value?"red":""}function d(){var a=Math.max(0,parseInt(u.value))+1,d=parseInt(t.value)/k,e=null;""!=s.value&&s.value!=mxConstants.NONE&&!q.checked&&(e=s.value);return b.getSvg(e, d,a)}var b=a.editor.graph,e=b.getGraphBounds(),g=b.view.scale,k=Math.ceil(e.width/g),l=Math.ceil(e.height/g),m,g=document.createElement("table"),n=document.createElement("tbody"),e=document.createElement("tr");m=document.createElement("td");m.style.fontSize="10pt";m.style.width="100px";mxUtils.write(m,mxResources.get("filename")+":");e.appendChild(m);var p=document.createElement("input");p.setAttribute("value",a.editor.getOrCreateFilename());p.style.width="180px";m=document.createElement("td");m.appendChild(p); e.appendChild(m);n.appendChild(e);e=document.createElement("tr");m=document.createElement("td");m.style.fontSize="10pt";mxUtils.write(m,mxResources.get("format")+":");e.appendChild(m);var r=document.createElement("select");r.style.width="180px";m=document.createElement("option");m.setAttribute("value","png");mxUtils.write(m,mxResources.get("formatPng"));r.appendChild(m);m=document.createElement("option");ExportDialog.showGifOption&&(m.setAttribute("value","gif"),mxUtils.write(m,mxResources.get("formatGif")), r.appendChild(m));m=document.createElement("option");m.setAttribute("value","jpg");mxUtils.write(m,mxResources.get("formatJpg"));r.appendChild(m);m=document.createElement("option");m.setAttribute("value","pdf");mxUtils.write(m,mxResources.get("formatPdf"));r.appendChild(m);m=document.createElement("option");m.setAttribute("value","svg");mxUtils.write(m,mxResources.get("formatSvg"));r.appendChild(m);ExportDialog.showXmlOption&&(m=document.createElement("option"),m.setAttribute("value","xml"),mxUtils.write(m, mxResources.get("formatXml")),r.appendChild(m));m=document.createElement("td");m.appendChild(r);e.appendChild(m);n.appendChild(e);e=document.createElement("tr");m=document.createElement("td");m.style.fontSize="10pt";mxUtils.write(m,mxResources.get("backgroundColor")+":");e.appendChild(m);var s=document.createElement("input");s.setAttribute("value",null==b.background||b.background==mxConstants.NONE?"#ffffff":b.background);s.style.width="80px";var q=document.createElement("input");q.setAttribute("type", "checkbox");q.checked=null==b.background||b.background==mxConstants.NONE;m=document.createElement("td");m.appendChild(s);m.appendChild(q);mxUtils.write(m,mxResources.get("transparent"));e.appendChild(m);n.appendChild(e);e=document.createElement("tr");m=document.createElement("td");m.style.fontSize="10pt";mxUtils.write(m,mxResources.get("width")+":");e.appendChild(m);var t=document.createElement("input");t.setAttribute("value",k);t.style.width="180px";m=document.createElement("td");m.appendChild(t); -e.appendChild(m);n.appendChild(e);e=document.createElement("tr");m=document.createElement("td");m.style.fontSize="10pt";mxUtils.write(m,mxResources.get("height")+":");e.appendChild(m);var u=document.createElement("input");u.setAttribute("value",l);u.style.width="180px";m=document.createElement("td");m.appendChild(u);e.appendChild(m);n.appendChild(e);e=document.createElement("tr");m=document.createElement("td");m.style.fontSize="10pt";mxUtils.write(m,mxResources.get("borderWidth")+":");e.appendChild(m); -var v=document.createElement("input");v.setAttribute("value",k);v.style.width="180px";v.value="0";m=document.createElement("td");m.appendChild(v);e.appendChild(m);n.appendChild(e);g.appendChild(n);mxEvent.addListener(r,"change",c);c();mxEvent.addListener(t,"change",function(){u.value=0=parseInt(t.value)&&0>=parseInt(u.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var e=r.value,c=p.value;if("xml"==e)a.hideDialog(),ExportDialog.saveLocalFile(mxUtils.getXml(a.editor.getGraphXml()),c,e);else if("svg"==e){var f=mxUtils.getXml(d());f.length=parseInt(t.value)&&0>=parseInt(v.value))mxUtils.alert(mxResources.get("drawingEmpty"));else{var e=r.value,c=p.value;if("xml"==e)a.hideDialog(),ExportDialog.saveLocalFile(mxUtils.getXml(a.editor.getGraphXml()),c,e);else if("svg"==e){var f=mxUtils.getXml(d());f.lengthdocument.documentMode)d=document.createElement("div"),d.style.display="block",d.style.textAlign="right",d.style.whiteSpace="nowrap",d.style.position="absolute",d.style.right="6px",d.style.top="6px",0b&&(d=Math.max(0,b-this.window.table.clientWidth));e+this.window.table.clientHeight>a&&(e=Math.max(0,a-this.window.table.clientHeight)); (this.window.getX()!=d||this.window.getY()!=e)&&this.window.setLocation(d,e)}))}; (function(){Sidebar.prototype.tagIndex="vX3ZcttI0vXTTPz/XIihlrvb31xqt2YsWy3K9tw5QBISMSIBNhbL6qefczKrsJBYCosmgkGCJPJUoZasrNxq+/M69nbrmRfH0Uvyt+N/yAU+D16n1VtnZ36Y/u3k+KP/yI9TQ+aFTxt/hYs0i0NXjPvgaT0a5MuuhJDt2mH2Mc69zSbKCHMRZYuNX4JKXyJ8e/FeXRqlwPkj81YllMcoi3vArP0fcRSW6MMoXa7lYZLgKfQ2+CvobprzIF5mG48lW6AlftoE4ZNLNf6ZbXdHKMZSnxz/gvtif7fhUyy85TObOlxF8qt8uEOdDIUyI84L2b6VXo/idB09RWwex7HzyTTryfFcmrVcRbSV6QaHphrV3fONH658EuzNpuQ5CENChHZaJptg6wr2ICP3G+pQg7jScd4M3Yz7LVhxgjx4AafXuNo+xEGl4dJ17BPcseUOH/Hk+EMUB39FYSqjYF3+Mgjuqx+nwVLofxSXLVB/ZbE/O10u/SQB+TkKjyOSJP4yi4OUz/Xs8/3ghyasLI22XhrISPTwBR9PPmb18T825JyhTudlxPfHjZesW4DmqD+7Xe82MO2Pwnc2yAaPzxqAobBXwZKCRzSHqZgTxrmHObVXb1vjlZd6Cy/h36tFN9StFz/76W7jLUmxlW/CSoiZrCOuAN0o84t/8fboMX3x5IeV/8PfRLutLirPATGTZey/rOIA/e/6oPNsAapgZxpniVWBzHvnh8vgcPw0gHzzF0mQ8vEWWFfYXZtowa+t1Gdgplj/UAc//hFI69ji8SmMNkmj3YsH1scZF2zLkPtgQXqWLdm0HMoy7+fgbYK60D+6J8NZ8NeDt3kuqkRBw9api/ick07GmTwJFgd0TSCTcOXLirgKdhtMELZP5sVemIKDcIgt/VBG086Pt9KPh9hSh0pLOU+LPVoz1x+DpyzWKXFyfAUGKax2mcl4Ijzv6AmNqzv0qffEK4O5iH66tJ322GE9ugm3uyyV4b6NwiCNeLUKEky3Q758QIsekNlz4W84Z8hNP/mQo2KOPdvvdtqXWUEz6EUDc2i8P452Z2ijmlErLbczDdoBc4lHiXdxIAUvsmCz0oousiQIyeA76Pu3vFCodNSD6jpIP2QL+7RoZI9U0TKN9OrJjP8m+g8XNyEES0jhzXy4ntD3NumaY2KNOSNDfO0Lj8F3/ONATF6uY0zb1gIZQberAq+Y3lymuY/wl5EZb7deiO7lqHXlMx+9HbiizNF87HfR3GII6CjaQhjCh28/Q1lF9sbXPnW00OGxW0chP9MoE5bsQlXhpUnOv1qg9nGyTRqQOXgYJbJDyNI1WWu+opfkE7Nu7LyVuWrBfZ3/8ZGTvxhGyZ/CrZvH1R4EpPJCsoBAh5HNIa1bq+5e2SN/iHbBUuSWqvxSC7gH9RmDCzgYl2jv1yT1t7i42WqfR2z6tReTVYM3yqBf7Q21Pby76MWP52sfq/kQtnx/cSfDfIsnlDr1h5hzv5OhKYql30oFHXSUZoYVidEp5cW6zXO5X5e9s4zL6h+Zn8kw/5MXAwDu/bply4lUBg8vdLtZFutYI3AMGVtJVdxrL2J/ejgtaHtUqIr8oKKiwahndY1A89eQdd+fl4n+HPvL16V0dSvQvb/Dtls59z5SaYw86qhpgkrB8kVmffBkHrmLYXMwL52OKLtSRhvFPNjudBvkuDo8EJwPsrVM24lZfwmxVwZPfQxkp2xkkc+L//hLgmWP3Mt5m8DvHDVfwOPJYLKtx3t3fqQPoF+9H2j6clvtUX/9cGF5VQ2Tqr9fBwk/DG9Tanc2/jVAp4qq6hbbPshL3EKT83aIlJ0wYEK+B/0OAR/zqzpUKa4TtxBOw/yqq4W+nV6cX11L63hPYZRg3SSb6M8d7Sbv5PjaD/1Y2Ind5zVV5xCCMzGSouv3iG1EZGTOVKiOyFu2NJ2iOl/dKaXIVtInIcVAC5azX7kDigLZU5BVWAVbfXXLlL8fUiZB086pTPh/h4S+kY+7SM+8EP2oO5wmNWv5fuyXtCWjrZ+i/xv1SxWiOJLdx26DZQrzv35KlykuDpgxFDgiMnqUoNtIr9q3arU0kO1F2sq3ARuI5oLxfCgVlwlvI1lCQ8fW/kSN3fx1uxAd22MUL4IVWK4D5edCW4x1B3pImgtEaXkguNfSz7doRjIZEcewsxceudvVbpArhGYIY2/M5pdR1kWSEX0lPA3v0hFdNA+BSFt2PyafVJN10X3zpF5m9C7saG6l+bdRKolYHS599kXIta2uQwraKEqTFJez7krW0902bru2+dasHSHrva4ahN2WN5QUAbs4Ep0vV6KVtEAT3eyUwsCHiKzetZlJBpFUCwMThQhfiEttok+J/mOkPWStQk3Wvhoqo28tsbW8xqK/X8vDNGJgO65LranwmuJ0Z33zPYehMgwLgphuz1s5lwDk0ryTXFmiFHGrqG7f0bH0FuipVPScesnR+WcWqGK5sWxLNzs/o7Ut7y2ob06OF7HvaRfoirHTJdgJ5+T45y/H06CdNNWKltJ+OG216on2rrFWYlHqh4R6/TYV3K9NFTMiTB+glnr1QLs91/b/DW+/vzvlI99xTAdhYGXpHk/ugv+rC379EzTC//5Oyjh+s/qXC5j2ASLqOv9Ss/NLQDOMfYT8Hyyn+k+fetfhas3H43L3KrxEuvXXYzRLfSs4MLcqIB/+ZCq0dydaxwnw7mIsN0ujRAT4YMB7PwlWuvydZ3FsbSNmZTphB8XL9uXQEUs62xlrnsViUqo86C+EaFoR3GHkqZpYuDuMzIpmlusOJC3TyCNrcR5oNtTdwa/H2y0Hlq5Wi1p9aSfGBBDkSuNhfpvgabixPvltPM77nhh+wOUUw74wy2H75ONPo3rdeRQOD929lPxxE0UxdEP8HxqiZnvC3u1wMiNXNc5hqKgYcR/hYhSYBcERYY7dsyA00zaQR9HzUtVufUnP114g61NfOii3hcfBJ0KtS25UqheFTwVN8r3a6Pz+gUL314oOr6TXq6lHDcqFD6GdytZYNyh2d9SrKlUQNcgOA4qxY7OWyEQ2AnA1WcWqb2uAqsG53PjYbkg7+AmURObapQrQ38guamS7XvGKTmrelpOwXglRT1pnXN1xx7j1zDtmcaRuQLYy1HwmaeFeVAP7+RF2PvErMkN82TnUa1DuoPoRnyr4jnDpDEKoBurVt3XUeFNFV0x1OP6Aic+JEPZubYle8+seeio+Ml0xoW3aoPK9aTmYe9P6j3EAk7oZd33J58oOloY79OogMb5IO8lu3J1EW8mQDSjS+GGMoH83kv7XkfTcLg6ij6Dc5LAG68A4FbUL1R0RvCtoG8QMiaJD3859mG/w2hLZPILMxWEDrzM/XtpvLjWh3aBgA5sBjKRkiuDsBI8QzTSvlWWouwnUM4VnGYw6sVdrPMohZqchFFLWy4ADDXUyXANN3m0ObkDikBuMdB5t0GN86jWE3Sco7g99lOop9w3SUOcaw2o3aaOdt41KHFCOSrRb/uBkOStA7kQFSEWdaH07tan79POi1429k8t8o/7/gJyGa9P7cOoIdtJ+4mPv1HKWnn0+jD6CQ2RR9aZOa6DOtpDDxY8kC3WnRFcGDvsGg9I+wgOWzORR1cBGlYxFot42obQb3wu/b7F6qBnph7eBS8fJMfiJX5lv7ZRwkwuDRD33r6NoRZU4/KK5KUYTbIdWaHYt1iTxQMf2cZXZ7aPxmtE6y6wSE6Yj6ucsxa698EIUtXBR0STjWto2XitocEiHO3BJK21MGC60p4EwVVblPZtIhaXYmjb1v3qODNkojgKOii02aRJg08y+zc3qC/rTmNlPbWueidJ81WXm6QahLBquIA3LhJ0YEP7Xa+N9XT+E+kKPhZtjlEh0yBTtWAs2RXt2Ar9RQwyCvaO7pEjDpdFtHHxad0UW4I8MVlas0Fh2NVBALxbqaiBf9doVRNeCgUAwmOl94hRaItrDa8UAo9AtL/x+KEWSx15hVU7U2d51ULTiYDyYPurRWQXineypB1bHEg+qA+Rqowmw+oCWTWJOhJELD7CNxCLiWuQk/dpFSQ9NVBnjQ3h8n5pWSCkhSEt1N9hLIhNi6yFuihI7/IRyD2PxNZE40Vq6GZaZ7/ZWDWOYw9YqOz7raZfYH1rKb8ZhxM4V3uEq49ETbRTwpXEbMB99SOeXc/ElMm6E1gGhcMR2hPlUgdkLqRqCdnKsTwWvtj2wSQv58PBAV+Q3LcM6bk+G+kelsa038RAYuEPk/iUTAYqX8yRw367KMFSjma3uECRal5YQXtV1bipM4ww4GNLs/r+D2X03TpIUby/PdSPl0R2zzSHaDQoSxu1NEyBUDcanNTDxAH3Bha9BQyJM67AMG6A3rOYXtIaKcITIntQo6g4LUT/tYutP3WdZq9ejxEsDjhJpbDssS0w3w56m9RlGo3I9q6nuXlP0gb+9r0Bi+4VtelajLHWG43DBllEmzcTAHy6uyIC68NfeSv3HYEKATnABPInjU2k50egY56K/3p1z+298sOk9F0C92OCS74xYUgBAMQA8jSOfvpgbqu7p1vW2xdzDQildMj3017tPGrIaGiP52xUysoXaAxIbb59dvIbeNgIjBJ1cDqHFGpCa0T4VDtlNDgRzdY7eF/FGZ9yYShGiUh9soQ/VcN04uYmmb13MqmETA5TYsPmlPwrFUomC7QM2e4qjbCdxCbzo8QT3FxQrYxTGaSSDu1aCaUcwK3ZpoRuPmIMxTEvcdBGthbh47pomRYcaO1wt1DI0FvaWbxpbNmlj5HGpkzfzZ8Q1irFtSmiNUBPmlcvIvWnpsYLdYGVr1gWCERK90gIjHB0aZgi3/Krb8KsozlOR5JH8pd8mgZYBpfEAb1fEg48Gqa5AE5ViRfoWQX4YJHOwmNjlSaBvTm/J8SVCUcK8Pc1aI/7t5qbhyKjtanUkjfl2RcwfyHyH44dReGRm5vdkh50u9AszDJNMVkUMCLGGdbRwsnoWhetKcqvYXDKiQc5zySDHTyUHwyHCDGGIEjqYarhAV6Fq6pNmQfARU258R9iJJNwwox25qyQjgx3e5vsUqOQsL+EmklUFCl4VYvb4wqTlXa7EdeUjM1q8ZTlzsUSqWfStHuzyjKO2EE+s3yOJWvebnaiof+jtkP5IAk7epICv0QYW+jeAn9NZJl+nClO2gz6oC5fh/CZZ0RsXgNRlgeQ00SBv4QttJUY2FnxouaPLWQbJMprZ5DYEKiW6afHmrZLNzuAKIGuUccoTZ4x2PrYPYQOg2Zh5DXqj3F58yZ1JXuhUITAZfJ9q0Rpx5lsm3ZJEEDbEDz41sg3tqox1Tkqk3+ChEuzgHuhtktnNGVcthC2Gj/Av0oxTuSNTalwH6bClXk7i2jS0ELhIcBGeI1ijxmFq1AM8mJpOBNroHjoQD4kCcjewEqT6iBWtW/UwLQp0LyeAXdWm3Cn+GDVCRC9WqnRTdQdiUypDa6tXnmZ0mK7iVmG1nBY4d5SdCBA5EI1/2FSAOxsONBUg4r3VSlJ0+ERzY57hWwlrItg8QUqlBdROPhTSholMVskv+5NrDNhX7DrE5Qx8PKZKZaK+18QcZ0xIOuWQahxMDatNHbakMoXrrqIjzB1R6Mnsl+PrS/p2nEeXGvzO2HSXqtbDvfvlPQOd/j8jMFCvv5dME3k6VXUfLhDGFPdvLU6iG966sCI3Yh6geWvba3TDXQVIU6oySxH4buD5gC/z279PUc4B+BSYNrna9G1e5PnJ27xUCBrm6/z83fHxMdumV4ErtDdz54n+3Fz3IUNmBcTxlCixi3Ka5GtkG5NHfFLDCqcgfOASn9FTmi0PtwwCOufvo1HGUVvBexzKvunJ/NFghDrMtLRXwBbvs3/5r+zsarbmVor7uzle1AWLbcGJpjaxoxNlbtND6ltkN9FR5fa4NYgwomzNOkIRF4ND8xaK02TZU7KzbgdIH5B/JZebzWd/lDwVZp5tG54HRf2QhsZlNtXh4heTx6Vd/deEgGin3s+XJxexft1dBLBTcaXn4LJm4i6SUkrP0mU3FRM42vHoWJCQMJHwFltv1dmxh/JkkAxxyf/pgcgMa3k1WsJNmmjLdSB570eSTR+8InPCLX/IPSXbMWQF0qlt8zB00bxggUA1SfMC9XRr2AFuXGoOsZm3YIKjJaJzTin0rgLkABYuAL34RtLgYLFjRvuaFDotYP42Y/40DHgqWDBgf3Zkyq1DQT9osQjUWe26YpTqEG6zn0e2LtWatNesC/QArh+CyRdrkoqdIk7WBGpCM8ckkNMgqn/uYMQHZjRhrZApK8fGXo2xPBgTjHoxBsyGQhzgWcU3hKem+E3gGRJlLYSa/89GRDk1MgIcoHoyMmH+pT81DpKxtNpVkuVvDAg7ZDQIm13vijavqvqvwewByPDWrD3dZjcIY1xH10qiEbn+0pGxhMX9fVEUlzNJGKr8c4sYepGmIFxqNr+3K/NO0k3nZe4iZA11LXMVQELRbYp6xjhRmTY92voI9uNKvZmdHOnhKGYnZVO8DIX7CHsarK5Gd1ZcDcW7y6DyLe3zPnHlC2nV38g5Q5KBoSWwsSf65yo6GFJLjG47tqao1p0p+NDkda/BH1r7wF/++sv72en5EQQLQcyliFy06Al00QhUiC3ueExdPBmYpLrovdiWqKHKC3SPb5eqoWhILGuFJQiuXScU1NObJJ2D6C+48pYbtkamdAerGT4j8Q5GUYHXIOp2QAaPCG3Oo8PHDYXLcBm/IpklkxctezBhQ/4hGNPzH6Oh1N/RDcFStCriG6nqAzdqkcVUFLLXvWlnN5bSCNKa5uXAzaAPDqWYKXAodwzG0ch5sF/RQfLRAj1qbjQWJb3+WDbljfZWYwKcbnoyPRhufMN7t3B/yi8d5191zMm3prHXQQ69MpwS0Bgw3NM6Sf+Vj8Znzpxz4ARJ7Rq0SYiOB9Dsil4AptP8cRjSWb6ktxsOIruhRYKkKu6zsxaI4vjw2txs4BgEg505m+Qs21AfEthf83Pf7OdCb+hVhuSe0qa3WHkBdR4rzojsiKkQzXGm+w2gaIftMaQdPvmyRTWpuDqLGANvBukERURIFZIm7Du9lOMbWlJz1NDOLtSUQ70+DVCf51eXtHp8qm7DKPeG+zm4B0IzmK202xoEnYPdUEaZorJVxEnrSBuCpNXHANZDMSaqqkYMF8Bja/zpyJKVuovDq3FDPgiRw39aRDLsaRHJuadFpHQzLeLvYxDvmvq6UREyCJF9PS0i+3paRPb1tIjs62kR2dcDEdkFQ9eHk8l5QgPiCJ7QgDiCJzQgjuAJDYgjeEID4giecDI5T2hAHMETGhBH8IQGxBE8oQFxBE9oQBzCEyI4Bn83+kxoMpPZe7HfPpnzmRGgYbLZJoi1aT+pvT9q7suPYxeLElaIEoLStP7oHqfS/tHwDDhaaXjD1INWH8EUMP4JPl5SyVrehfk4YtkeA3hoZOgBWt6ITQFKqCOovMX1RVJwnzM5AzJiScgEwmGNqsR4flHFLtraPSWfU2mf8cMRctzCqCMnq+Br8W1YvwqkWDcRjCQaNN5S+WEYMNxk0sg2K5xU5Fz5egNRPd537A4lIZTsQavm2B62190GWkbkm/RjntzKAJIshW+qtVF3HPnqBCTW6EFAE9RlcC0YY4HEOXAvUbO2qlIrP4zBml0/fC6mQ/dEMPo3ZBDmbdHjoxzN8Ios/FIR52Jvrs/tOm1T90tZBl/8guCnLL+V8Ps/nylItBdvWtAncbu7uT4rnivBAVuV0hYBjp2Q5Hu1U3dYWfpo/5uyKLP8r8oSPeTblXX3iZqI/01/Vcp64/6qlPXG/VUp6437iyxKO6rHet2/AEm8+UYF3FgvPAlBq+M2zYjIVyk3i6enuXZl/HqI/vckzzusV8PIYarPcxjLucXMgWSYqTmMaAComG0NqEnYL+byKVEljf/kqJLcfwLUr5Js+0e0Sbtyd7dgiH13NAYbqidIigCjLeQ+2Nw0Za44GrUdaeEAodKp8eC2wmmtQ3ctXs5u5JD23rJyib6itvhnrTrpP65Kqg7YPZ3SINjyxrtU277b7g7IIRqRFxwrSxu1+DGb61baIErez8hExSStTNnlbpyuyum0RBqHDnNomUYSq0hORslkkDJ7LtktjFya/LIb40xz1sRIWdLkVV9Lw+OAJDoDQ592akK8oFhHAO6OkfCBe7BFdHi2dS2RTiQcIiR90O8pcRCVFBW1HdRbQ8aqFZkJmKu31X2xTBsH/qM5/CrF2SF1j9lAeu5t/BA5jzXLpfNwwHlCkosFRtEsSZoDFA4Jq+PHtrADIQIy4eBHpceqkiimg0qEFN0XiqrEnESMzXga1JxRUAsi6c7+g+NdXIs1p020J+arJQRDkF7AkNPzwN3IikNBllHNAdsdZLIgFRDwhWrzJKkAvIjGz6a6EUHQdx22l/Y0asQYXm536atEX+Z5g8Gf3KZ4GcekHSZSFtYiNIG8FqnxTTaLwqTfdrZMCUPOga+4cLiWfhVtlL9E8RM8Uv9y7nklNK5rHWduVMhiw1VDk28dfe5Eee1l0jucwO3yQploo6e5PeGzMYLzgOrgiHw3KmQ37UhFckAjSlDjZnLo5CK9XxkZnXChHqZdyh3qVg+bvCk/5agz+KdK/Sy7sZ23Mmy29rzIetqIaUnp3mHORGpIF99Abw6aL2Zv6ah5m/y9CyKnhTylrMwe8uRMLInN9nEcqMt5Sn5EKpmzeD3wDkwtekJ+HJvEPS4HmdXiFUcH5sYLt4pEGjBhxuAqCv+ffqJjkN3dJBfO5CS9dhxMZ6SiCvwXGRFbdXRsWgOh+5bwwy5QMHZzjlDOsODg2ecBoXiWikSZtOwWuYO44SfEBk/WDfAZsg5c9M0s4ZBXY4UvticcaWsnbG3L1yFKGJMGWEAUcn0QnJIhzs+6nSsa0EHMqIeD/WUphjr1QHeqBKIW7LKLQ4oknQ+ka8j1cpHKWXSdEPn9BUSO6gihtw2vxLzcaPXtut+emJFcUMCkmlFxBBcHG+xL+jxObTrHVkEO35L8P3L8SeY8vOdYhM1ZbTLOoSrQXHAUkRzIsWPI46Jbw8cPSXFSGhu83imzkSja2RSZiJ/pkMwbEA42LKvYazji85AceXwoJ7OBHWWvOhhzup1w7pbDSg7psFnam7RudDEEPSRJ0rXhVbPb4vBmV/ovnOH9huUXTXbDMyalo6l+ZaCSC22ekbCb/1ennwOoMUgjUE3qV5MZuo74G4KqRHujc8tszx3ogiuuvaWQ7w4ySftwbs8LLI4QdCLLD5AvJdVUtY6LSCcYvTd0SqXcwp7Q50Jy+XOnwool6uwJIfvoP7Ib+pT0EaPW8Efbrok5PMoN4N42BRI1dnnkl6iMTNSnqnreF/eFH6I4wHlNiHbi1rDhvDAHHBwuiAjUgSii7RO51G88xv2AqB9fFxphL23tpOkT9JzCmbdi6FeAJI4tR4PW0KEVRHWkody5GsmBDuk4En8DJ/qf6RHkqB9V5Z47wBBaHsupqUjkdDJIXghRMUfc2s9ulEKtZC5dqKjRpYeJVbmYSxdS3JdprZFsNxXVC/i3yTIspy2Fmay80c5IGqTohjVsLpF4rVMzYsTpyW0MVAE+KAfqS3+tQpxKdFiihHOZpaprcaoFNJtRKwoUG8L2ymBAiDnEgyag8/T4nRyGuAvMOa1FgFe+UMQwz8gS5YdP8CtDqrnKBC4jib1gGqiZx5hOY9mx17KtCLCatRy8XqGdnVpK8LzzOEqSozNkfZYUYPxGRlF3Hq0DGg/b94/O4Pwjx+/BB2gj6rqWPLbK3wRyt/PACjEXnOdRQSxJn4JH6K9k4ubfugmhh+GhiCZtRf6tD6HahnG+rGYsKBB6WYn3Qc/tQ0hkTgn35PiIaWihKaBLI/gE9pfqncmLPhX/fvQ9SMS62OO5Y6QCYJ65J4xUk6dYfqucCyZ/2k/NeaR0bpizc/4ikgib9toWxfTBtog9wMYKo1VUiyoX8vnatoUhjc7FYlbKlq3VZ6FEhRNZ1PInWQLN1Dg950ToPSDaIC8E0t0IX8aTdNN22o6sWwVrSKUefd8quuWqs0s1lNsxqLtEAO3tnxmYO3RcSocKnwWRBM2q3LcI2nN6KFi+0zKX3SQ43Q9+MaFhM3rVSQXlePrd/0kT9JM+bv5FVef66LxwR0ECqp/qCwxDt4nWfMgWGOxY5ImEhCylUlL81bei1O5XcbjSRHIypxTFlp4MGMehh/JA5inIMK68cNIy9ttqMPgXNvwaKo1ShQc3+6DIdRJuMQRkPMmF4+0I/z+C9UNOVIIqFro/5llX+iBEqvnuCh8AYQekSX96AqlAVQIaSy/KvWUviEw9wPnpdjNWWyxiBYl+aaFKfJGILM8wXzoLSzC+8HQ4MEaWSj0Qxq6a7aQ/eDy07H30ypUAWo2Mh6BpAk5ohnn54FlTWYqc/yoEwA6ARcYNU+hlOn+1lRmHNbouWC2QvNMmyx0FVGonZq+dCpPrGCEj7CRVpJ8O9D6KHt8AEh/cW05caeg9/NWUWDoSJ+t/BCmtZRGYrFUriFrbNxkQV8ioLsN2Qkhoy03mjMmaYw9zRPchOeKzyUdqU0SfQ1O/QdpuQprdbp4a7d3xyTE+oBHi0s7Qs7X/AmWout8sn9U3Y6KyfhlbVl8ius3qgTtPcrqZnAVbOunvdbsQjZn5v54eB/UzCE/UGHIlzm1IyStWYr2iAiL/sx0GlmdRl6lIHmFfjOCjdi2+0j9GkQTA1BTdSQf3OknqW/Au9dFR09FCvjvhXNE9h1Z3qcsWDjGONYeyHYcaZHBXtUFa5nlqMToBqKjqAaCeO9DXikeOdePZwoMP58+olw5MBwcp5xpR0J4SrPlRjs2ATWbN3EnBX205khuQbiS7slKKZFz63g9pHi01AZpzXvIGoIeLCw4vWgn2cj/n3uIr35OwMtyznzZ7DxfzLQPmJTTabHO4QuipeQlmb+eYM8T/zNA5esaGJX+SvsdohM47ehLb3R5gPdStp3k8P+oDYAJ4q3Z3yj1ykW/HVwNHu2TikTAeSl11EmywYVXsMGNVKD/5uzTT1OdjK3G3ycTzfzTQnB+y7xiNFEYv0OU+8054aXdpXqq0cqyPBDKp2asXncQnDaCTY/UG0DGqqx/dF7BRsVONbuWvNAiNAnJKp39IMLuCWUXoXnB0bg+6W6XqSWPHgymzF50kSulF900eyayT9jl70soS6UqbeAhiYWetvb/qRKomCkoz/cSYgg4L1VadPSnXPqntjZ+Q7jpXhmQJ97ulj6xwCzj+QNPAym9qTrGqId1FML3KwMRF6dOBimklcfyQirVbOX2UdsZGu2sNwr+8V0/CTyJwJbF0Q/bXpShqSpxQAbiXc28WEK+VPj8HRy/4R3fzWagXU/p+bZyov6rfEQN4VD744a8D9cRwoZ/TLEpxVEpM8K1LPb1HDudWVe0xi0aUqPCTWyuLQ7SgEBWTz8thQEEDNIxyouqj46rNvfEDYreLqGAxnrEiozVj001J/r0HBtYwIVG3UPutfN2a+rAKZkesDTXrM2pLxBpU5kScwqWh8TSaOuGxBWXvMDg9IxLv+QGS1WMXcas9lK4R090+f0B6P+dhQTQBcQ4EmqhUpS8cQwD3ybKrZh3AQ/70pjtaTp9pJZbuGEosCY6GEksuo6HEkrbIlZhRjhyHpQkNr3694Cm2/QBmsH6LvGKbXq77VqOMIn0wGkU6YzSK9MpoFOme0SiSSWo0yvvhKDgT2HYydP4yUPI7BkFJT08DJd09DZT0+VgoeJnb5N3YzDl4fbegyMk3o1EkAfhoFDbOGBQe1whjpXhKPuJamli/9oG5hrOgqN8kC/geN2vosE7QuVpjEScsIhS+LfSyJ44xOcHVXn2B+Cn6eUeJbh8OFmi7fxk9Li3YJFPPgk0y+QDGWPSpnpJYEz0kh6dWbMTgsjCs0wQwbPIJYDidJ4DhAjcBDFe4CWC4xPWEMQJQgxGgiWSmzrXI78wzgHGsTLo+8jXmVr6Y615I33KkF+jo7Rdz3QdpzjohJK+ok3wZUKc566RIph7ypUedkK/hSTcDm8xeOZPGC3HFYQiX6FQQn9CRT64KwNQNcNKU5QJZbOAxKf6aBo8pHfJEEriE9sOFQRNZQ0kQ31d48GiOODcjgUGBgx/Cf/Qo3EDiNhwJJTJYvYBtuJYjpeiL7pDHQve7fTROBuHOhHqql5+EONacaFZPy4YXjZG2ep8W/7LDnjRQrxh7sff6Lw\x3d\x3d";Sidebar.prototype.searchFileUrl= @@ -3179,8 +3184,8 @@ r[b]?this.addEipMessagingSystemsPalette():"System Management"==r[b]&&this.addEip "Bottom Sheets"==s[b]?this.addGMDLBottomSheetsPalette():"Buttons"==s[b]?this.addGMDLButtonsPalette():"Cards"==s[b]?this.addGMDLCardsPalette():"Chips"==s[b]?this.addGMDLChipsPalette():"Dialogs"==s[b]?this.addGMDLDialogsPalette():"Dividers"==s[b]?this.addGMDLDividersPalette():"Grid Lists"==s[b]?this.addGMDLGridListsPalette():"Icons"==s[b]?this.addGMDLIconsPalette():"Lists"==s[b]?this.addGMDLListsPalette():"Menus"==s[b]?this.addGMDLMenusPalette():"Misc"==s[b]?this.addGMDLMiscPalette():"Pickers"==s[b]? this.addGMDLPickersPalette():"Selection Controls"==s[b]?this.addGMDLSelectionControlsPalette():"Sliders"==s[b]?this.addGMDLSlidersPalette():"Steppers"==s[b]?this.addGMDLSteppersPalette():"Tabs"==s[b]?this.addGMDLTabsPalette():"Text Fields"==s[b]&&this.addGMDLTextFieldsPalette();this.addCabinetsPalette();this.addArchimate3Palette();this.addArchiMatePalette();this.showEntries()};if("1"==urlParams.createindex){var f=Sidebar.prototype.addStencilPalette;Sidebar.prototype.addStencilPalette=function(b,a, d,c,m,n,p,r){f.apply(this,arguments);p=null!=p?p:1;mxStencilRegistry.loadStencilSet(d,mxUtils.bind(this,function(b,a,d,e,f){if(null==m||0>mxUtils.indexOf(m,a))d=null!=r?r[a]:null,mxLog.debug('\x3cshape style\x3d"shape\x3d'+b+a+c+'" w\x3d"'+Math.round(e*p)+'" h\x3d"'+Math.round(f*p)+'"'+(null!=d?' tags\x3d"'+d+'"':"")+"/\x3e")}),!0)}}var d=Sidebar.prototype.searchEntries;Sidebar.prototype.searchEntries=function(b,a,c,f,m){var n=f;this.editorUi.enableLogging&&!this.editorUi.isOffline()&&0==c&&((new Image).src= -"log?severity\x3dCONFIG\x26msg\x3dshapesearch:"+encodeURIComponent(b)+"\x26v\x3d"+encodeURIComponent(EditorUi.VERSION));f=mxUtils.bind(this,function(d,f,l,m){!this.editorUi.isOffline()&&d.length<=a/4?(l=c-Math.ceil((f-a/4)/a),mxUtils.get(ICONSEARCH_PATH+"?q\x3d"+encodeURIComponent(b)+"\x26l\x3d1\x26p\x3d"+l+"\x26c\x3d"+a,mxUtils.bind(this,function(b){b=b.getXml().getElementsByTagName("icon");for(var e=0;e=m.getChildCount(m.getRoot())?q.setAttribute("disabled","disabled"):(q.setAttribute("checked","checked"),q.defaultChecked=!0);k.appendChild(q);mxUtils.write(k,mxResources.get("layers"));var t=document.createElement("input");t.setAttribute("type","checkbox");t.style.marginLeft="10px";k.appendChild(t); +mxUtils.write(k,mxResources.get("zoom"));t.setAttribute("checked","checked");t.defaultChecked=!0;var v=document.createElement("input");v.setAttribute("type","checkbox");v.style.marginLeft="10px";null!=a.pages&&1=u.scrollHeight&&(a(),mxEvent.consume(b))});var c=null,d;for(d in x){var e=document.createElement("div"), -f=mxResources.get(d),k=x[d];null==f&&(f=d.substring(0,1).toUpperCase()+d.substring(1));18=v.scrollHeight&&(a(),mxEvent.consume(b))});var c=null,d;for(d in x){var e=document.createElement("div"), +f=mxResources.get(d),k=x[d];null==f&&(f=d.substring(0,1).toUpperCase()+d.substring(1));18c.lastIndexOf(".")&& -(!t||0>e)){b=null!=b?b:y.value;var f="";b==App.MODE_GOOGLE?f=a.drive.extension:b==App.MODE_DROPBOX?f=a.dropbox.extension:b==App.MODE_ONEDRIVE?f=a.oneDrive.extension:b==App.MODE_DEVICE&&(f=".xml");0<=e&&(d=d.substring(0,e));v.value=d+f}}}function s(b){var c=v.value;if(null==b||null!=c&&0c.lastIndexOf(".")&& +(!t||0>e)){b=null!=b?b:y.value;var f="";b==App.MODE_GOOGLE?f=a.drive.extension:b==App.MODE_DROPBOX?f=a.dropbox.extension:b==App.MODE_ONEDRIVE?f=a.oneDrive.extension:b==App.MODE_DEVICE&&(f=".xml");0<=e&&(d=d.substring(0,e));u.value=d+f}}}function s(b){var c=u.value;if(null==b||null!=c&&0a.maxImageSize||l>a.maxImageSize){var D=Math.min(1,Math.min(a.maxImageSize/Math.max(1,f)),a.maxImageSize/Math.max(1,l));f*=D;l*=D}y>A?(A=Math.round(A*u/y),y=u):(y=Math.round(y*v/A),A= -v);var O=document.createElement("div");O.setAttribute("draggable","true");O.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";O.style.position="relative";O.style.cursor="move";mxUtils.setPrefixedStyle(O.style,"transition","transform .1s ease-in-out");if(null!=b){var Q=document.createElement("img");Q.setAttribute("src",C.convert(b));Q.style.width=y+"px";Q.style.height=A+"px";Q.style.margin="10px";Q.style.paddingBottom=Math.floor((v-A)/2)+"px";Q.style.paddingLeft=Math.floor((u-y)/2)+"px";O.appendChild(Q)}else if(null!= -m){var M=a.stringToCells(a.editor.graph.decompress(m.xml));0a.maxImageSize||l>a.maxImageSize){var E=Math.min(1,Math.min(a.maxImageSize/Math.max(1,f)),a.maxImageSize/Math.max(1,l));f*=E;l*=E}y>z?(z=Math.round(z*v/y),y=v):(y=Math.round(y*u/z),z= +u);var O=document.createElement("div");O.setAttribute("draggable","true");O.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";O.style.position="relative";O.style.cursor="move";mxUtils.setPrefixedStyle(O.style,"transition","transform .1s ease-in-out");if(null!=b){var Q=document.createElement("img");Q.setAttribute("src",D.convert(b));Q.style.width=y+"px";Q.style.height=z+"px";Q.style.margin="10px";Q.style.paddingBottom=Math.floor((u-z)/2)+"px";Q.style.paddingLeft=Math.floor((v-y)/2)+"px";O.appendChild(Q)}else if(null!= +m){var M=a.stringToCells(a.editor.graph.decompress(m.xml));0z?y-1:y,0,n.splice(z,1)[0]),s.insertBefore(s.children[z], -s.children[y])):(n.push(n.splice(z,1)[0]),s.appendChild(s.children[z]));else if(0A?y-1:y,0,n.splice(A,1)[0]),s.insertBefore(s.children[A], +s.children[y])):(n.push(n.splice(A,1)[0]),s.appendChild(s.children[A]));else if(0>2);b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((e&3)<<4|(f&240)>>4);b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt((f&15)<<2|(g&192)>>6);b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(g&63)}return b};EditorUi.prototype.importFiles=function(a,b,c,d,e,f,g,k,l,m,n){var p=null!=b&&null!= c;b=null!=b?b:0;c=null!=c?c:0;d=null!=d?d:this.maxImageSize;m=null!=m?m:this.maxImageBytes;l=null!=l?l:!0;var r=this.editor.graph,s=r.gridSize;e=null!=e?e:mxUtils.bind(this,function(a,b,c,d,e,f,g,k,l){return null!=a&&"\x3cmxlibrary"==a.substring(0,10)?(this.spinner.stop(),this.loadLibrary(new LocalLibrary(this,a,g)),null):this.importFile(a,b,c,d,e,f,g,k,l,p)});f=null!=f?f:mxUtils.bind(this,function(a){r.setSelectionCells(a)});if(this.spinner.spin(document.body,mxResources.get("loading")))for(var I= a.length,L=I,N=[],S=mxUtils.bind(this,function(a,b){N[a]=b;if(0==--L){this.spinner.stop();if(null!=k)k(N);else{var c=[];r.getModel().beginUpdate();try{for(var d=0;db};EditorUi.prototype.resizeImage=function(a,b,c,d,e,f){e=null!=e?e:this.maxImageSize;var g=Math.max(1,a.width),k=Math.max(1,a.height);if(d&&this.isResampleImage(b,f))try{var l=Math.max(g/e,k/e);if(1mxUtils.indexOf(this.settings.customLibraries,a)&&this.settings.customLibraries.push(a);mxSettings.save()},removeCustomLibrary:function(a){mxSettings.load();mxUtils.remove(a,this.settings.customLibraries);mxSettings.save()},getCustomLibraries:function(){return this.settings.customLibraries},getPlugins:function(){return this.settings.plugins},setPlugins:function(a){this.settings.plugins=a},getFormatWidth:function(){return parseInt(this.settings.formatWidth)},setFormatWidth:function(a){this.settings.formatWidth= @@ -7452,18 +7458,18 @@ null==this.settings.customLibraries&&(this.settings.customLibraries=[]),null==th (this.settings.currentVertexStyle={}),null==this.settings.createTarget&&(this.settings.createTarget=!1),null==this.settings.pageFormat&&(this.settings.pageFormat=mxGraph.prototype.pageFormat),null==this.settings.search&&(this.settings.search=!0),null==this.settings.showStartScreen&&(this.settings.showStartScreen=!0),null==this.settings.gridColor&&(this.settings.gridColor=mxGraphView.prototype.gridColor),null==this.settings.autosave&&(this.settings.autosave=!0),null!=this.settings.scratchpadSeen&& delete this.settings.scratchpadSeen)},clear:function(){isLocalStorage&&localStorage.removeItem(mxSettings.key)}};("undefined"==typeof mxLoadSettings||mxLoadSettings)&&mxSettings.load(); App=function(a,c,f){EditorUi.call(this,a,c,null!=f?f:"1"==urlParams.lightbox);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\x3d":(new Image).src= -mxGraph.prototype.warningImage.src;window.openWindow=mxUtils.bind(this,function(a,b,c){var f=window.open(a);null==f||void 0===f?this.showDialog((new PopupDialog(this,a,b,c)).container,320,140,!0,!0):null!=b&&b()});this.updateUi();a=document.createElement("canvas");this.canvasSupported=!(!a.getContext||!a.getContext("2d"));window.showOpenAlert=mxUtils.bind(this,function(a){null!=window.openFile&&window.openFile.cancel(!0);this.handleError(a)});this.isOffline()||(EditDataDialog.placeholderHelpLink= -"https://support.draw.io/questions/9338941");this.addFileDropHandler([document]);if(null!=App.DrawPlugins){for(a=0;anavigator.userAgent.indexOf("MSIE")||9<=document.documentMode;if(!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&&(App.mode=App.getStoredMode())),null!=window.mxscript&&("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&&(window.DriveClient=null):window.DriveClient=null),"function"===typeof window.DropboxClient&&("0"!=urlParams.db&&isSvgBrowser&&(null==document.documentMode||9navigator.userAgent.indexOf("MSIE")||10<=document.documentMode)?App.mode==App.MODE_ONEDRIVE||null!=window.location.hash&&"#W"==window.location.hash.substring(0,2)?mxscript("https://js.live.net/v5.0/wl.js"):"0"==urlParams.chrome&&(window.OneDriveClient=null):window.OneDriveClient= null),"undefined"==typeof JSON&&mxscript("js/json/json2.min.js")),"0"!=urlParams.plugins&&"1"!=urlParams.offline)){var a=mxSettings.getPlugins(),c=urlParams.p;if(null!=c||null!=a&&0a.indexOf("DocumentClosedError")){c=a;var l=new Image,m=0<=a.indexOf("NetworkError")||0<=a.indexOf("SecurityError")||0<=a.indexOf("NS_ERROR_FAILURE")||0<=a.indexOf("out of memory")?"CONFIG":"SEVERE";l.src="log?severity\x3d"+m+"\x26v\x3d"+encodeURIComponent(EditorUi.VERSION)+"\x26msg\x3dclientError:"+encodeURIComponent(a)+":url:"+ -encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(e)+(null!=f?":colno:"+encodeURIComponent(f):"")+(null!=k&&null!=k.stack?"\x26stack\x3d"+encodeURIComponent(k.stack):"")}}catch(n){}};"atlas"==uiTheme&&mxClient.link("stylesheet","styles/atlas.css");if(null!=window.mxscript){"0"!=urlParams.chrome&&mxscript("js/jscolor/jscolor.js");if("1"==urlParams.offline){mxscript("js/shapes.min.js");var f=document.createElement("iframe");f.setAttribute("width","0");f.setAttribute("height","0"); -f.setAttribute("src","offline.html");document.body.appendChild(f);mxStencilRegistry.stencilSet={};mxStencilRegistry.getStencil=function(a){return mxStencilRegistry.stencils[a]};mxStencilRegistry.loadStencilSet=function(a,b,c){a=a.substring(a.indexOf("/")+1);a="mxgraph."+a.substring(0,a.length-4).replace(/\//g,".");a=mxStencilRegistry.stencilSet[a];null!=a&&mxStencilRegistry.parseStencilSet(a,b,!1)};for(f=mxUtils.load("stencils.xml").getXml().documentElement.firstChild;null!=f;)"shapes"==f.nodeName&& +App.main=function(a){var c=null;window.onerror=function(a,b,e,f,k){try{if(!(a==c||null!=a&&null!=b&&(-1!=a.indexOf("Script error")||-1!=a.indexOf("extension")))&&null!=a&&0>a.indexOf("DocumentClosedError")){c=a;var l=new Image,m=0<=a.indexOf("NetworkError")||0<=a.indexOf("SecurityError")||0<=a.indexOf("NS_ERROR_FAILURE")||0<=a.indexOf("out of memory")?"CONFIG":"SEVERE";l.src="https://log.draw.io/log?severity\x3d"+m+"\x26v\x3d"+encodeURIComponent(EditorUi.VERSION)+"\x26msg\x3dclientError:"+encodeURIComponent(a)+ +":url:"+encodeURIComponent(window.location.href)+":lnum:"+encodeURIComponent(e)+(null!=f?":colno:"+encodeURIComponent(f):"")+(null!=k&&null!=k.stack?"\x26stack\x3d"+encodeURIComponent(k.stack):"")}}catch(n){}};"atlas"==uiTheme&&mxClient.link("stylesheet","styles/atlas.css");if(null!=window.mxscript){"0"!=urlParams.chrome&&mxscript("js/jscolor/jscolor.js");if("1"==urlParams.offline){mxscript("js/shapes.min.js");var f=document.createElement("iframe");f.setAttribute("width","0");f.setAttribute("height", +"0");f.setAttribute("src","offline.html");document.body.appendChild(f);mxStencilRegistry.stencilSet={};mxStencilRegistry.getStencil=function(a){return mxStencilRegistry.stencils[a]};mxStencilRegistry.loadStencilSet=function(a,b,c){a=a.substring(a.indexOf("/")+1);a="mxgraph."+a.substring(0,a.length-4).replace(/\//g,".");a=mxStencilRegistry.stencilSet[a];null!=a&&mxStencilRegistry.parseStencilSet(a,b,!1)};for(f=mxUtils.load("stencils.xml").getXml().documentElement.firstChild;null!=f;)"shapes"==f.nodeName&& null!=f.getAttribute("name")&&(mxStencilRegistry.stencilSet[f.getAttribute("name").toLowerCase()]=f,mxStencilRegistry.parseStencilSet(f)),f=f.nextSibling}"0"!=urlParams.picker&&!mxClient.IS_QUIRKS&&8!=document.documentMode&&mxscript(document.location.protocol+"//www.google.com/jsapi?autoload\x3d%7B%22modules%22%3A%5B%7B%22name%22%3A%22picker%22%2C%22version%22%3A%221%22%2C%22language%22%3A%22"+mxClient.language+"%22%7D%5D%7D");"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\x3dDrawGapiClientCallback")}"0"!=urlParams.math&&Editor.initMath();mxResources.loadDefaultBundle=!1;f=mxResources.getDefaultBundle(RESOURCE_BASE,mxLanguage)||mxResources.getSpecialBundle(RESOURCE_BASE,mxLanguage);mxUtils.getAll("1"!=urlParams.dev?[f]:[f,STYLE_PATH+"/default.xml"], function(c){mxResources.parse(c[0].getText());1screen.width?0:mxSettings.getFormatWidth();"1"!=urlParams.embed&&(App.prototype.menubarHeight=60);Editor.prototype.editButtonLink=null!=urlParams.edit?decodeURIComponent(urlParams.edit):null; App.prototype.init=function(){EditorUi.prototype.init.apply(this,arguments);if(this.isLocalFileSave()){var a=this;ExportDialog.saveLocalFile=function(b,c,d){var e="text/xml";"svg"===d&&(e="image/svg+xml");a.saveLocalFile(b,c,e)};ExportDialog.saveRequest=function(b,c,d,e){a.saveRequest(b,c,d,e)}}this.defaultLibraryName=mxResources.get("untitledLibrary");this.descriptorChangedListener=mxUtils.bind(this,this.descriptorChanged);if("1"!=urlParams.embed){this.bg=this.createBackground();document.body.appendChild(this.bg); @@ -7507,11 +7513,11 @@ App.prototype.crc32=function(a){this.crcTable=this.crcTable||this.createCrcTable App.prototype.getThumbnail=function(a,c){var f=!1;try{if(null==this.thumbImageCache&&(this.thumbImageCache={}),this.isExportToCanvas())this.exportToCanvas(mxUtils.bind(this,function(a){c(a)}),a,this.thumbImageCache,"#ffffff",function(){c()}),f=!0;else if(this.canvasSupported&&null!=this.getCurrentFile()){var d=this.editor.graph,b=document.createElement("canvas"),e=d.getGraphBounds(),g=a/e.width,g=Math.min(1,Math.min(3*a/(4*e.height),g)),k=Math.floor(e.x),l=Math.floor(e.y);b.setAttribute("width",Math.ceil(g* (e.width+4)));b.setAttribute("height",Math.ceil(g*(e.height+4)));var m=b.getContext("2d");m.scale(g,g);m.translate(-k,-l);var n=d.background;if(null==n||""==n||n==mxConstants.NONE)n="#ffffff";m.save();m.fillStyle=n;m.fillRect(k,l,Math.ceil(e.width+4),Math.ceil(e.height+4));m.restore();var p=new mxJsCanvas(b),r=new mxAsyncCanvas(this.thumbImageCache);p.images=this.thumbImageCache.images;var s=new mxImageExport;s.drawShape=function(a,b){a.shape instanceof mxShape&&a.shape.checkBounds()&&(b.save(),b.translate(0.5, 0.5),a.shape.paint(b),b.translate(-0.5,-0.5),b.restore())};s.drawText=function(a,b){};s.drawState(d.getView().getState(d.model.root),r);r.finish(function(){s.drawState(d.getView().getState(d.model.root),p);c(b)});f=!0}}catch(q){}return f};App.prototype.getPublicUrl=function(a,c){c(null)}; -App.prototype.createFileData=function(a,c,f,d,b,e,g,k,l){b=null!=b?b:!1;l=null!=l?l:!0;var m=null,n=null;null==f||f.getMode()==App.MODE_DEVICE||f.getMode()==App.MODE_BROWSER?m="_blank":n=m=d;if(null==a)return"";var p=a;if("mxfile"!=p.nodeName.toLowerCase()){var r=this.editor.graph.zapGremlins(mxUtils.getXml(a)),p=this.editor.graph.compress(r);if(this.editor.graph.decompress(p)!=r)return r;r=a.ownerDocument.createElement("diagram");mxUtils.setTextContent(r,p);p=a.ownerDocument.createElement("mxfile"); -p.appendChild(r)}p.setAttribute("userAgent",navigator.userAgent);p.setAttribute("version",EditorUi.VERSION);p.setAttribute("editor","www.draw.io");a=null!=f?f.getMode():this.mode;null!=a&&p.setAttribute("type",a);a=mxUtils.getXml(p);if(!e&&!b&&(g||null!=f&&/(\.html)$/i.test(f.getTitle())))a=this.getHtml2(p,c,f.getTitle(),m,n,l);else if(e||!b&&null!=f&&/(\.svg)$/i.test(f.getTitle())){if(null!=f&&(f.getMode()==App.MODE_DEVICE||f.getMode()==App.MODE_BROWSER))d=null;a=this.getEmbeddedSvg(a,c,d,null,k, -l,n)}return a}; +App.prototype.createFileData=function(a,c,f,d,b,e,g,k,l){c=null!=c?c:this.editor.graph;b=null!=b?b:!1;l=null!=l?l:!0;var m=null,n=null;null==f||f.getMode()==App.MODE_DEVICE||f.getMode()==App.MODE_BROWSER?m="_blank":n=m=d;if(null==a)return"";var p=a;if("mxfile"!=p.nodeName.toLowerCase()){var r=c.zapGremlins(mxUtils.getXml(a)),p=c.compress(r);if(c.decompress(p)!=r)return r;r=a.ownerDocument.createElement("diagram");mxUtils.setTextContent(r,p);p=a.ownerDocument.createElement("mxfile");p.appendChild(r)}p.setAttribute("userAgent", +navigator.userAgent);p.setAttribute("version",EditorUi.VERSION);p.setAttribute("editor","www.draw.io");a=null!=f?f.getMode():this.mode;null!=a&&p.setAttribute("type",a);a=mxUtils.getXml(p);if(!e&&!b&&(g||null!=f&&/(\.html)$/i.test(f.getTitle())))a=this.getHtml2(p,c,null!=f?f.getTitle():null,m,n,l);else if(e||!b&&null!=f&&/(\.svg)$/i.test(f.getTitle())){if(null!=f&&(f.getMode()==App.MODE_DEVICE||f.getMode()==App.MODE_BROWSER))d=null;a=this.getEmbeddedSvg(a,c,d,null,k,l,n)}return a}; App.prototype.getFileData=function(a,c,f,d,b,e){b=null!=b?b:!0;e=null!=e?e:!1;var g=this.editor.getGraphXml(b);if(b&&null!=this.fileNode&&null!=this.currentPage){var k=this.editor.graph.compress(this.editor.graph.zapGremlins(mxUtils.getXml(g)));mxUtils.setTextContent(this.currentPage.node,k);g=this.fileNode.cloneNode(!1);if(e)g.appendChild(this.currentPage.node);else for(e=0;e=window.location.hash.length)&&null!=urlParams.url&&this.spinner.spin(document.body,mxResources.get("loading")))try{var c=mxUtils.bind(this,function(){this.spinner.spin(document.body, mxResources.get("reconnecting"))&&(window.location.search=this.getSearch(["url"]))});a(decodeURIComponent(urlParams.url),mxUtils.bind(this,function(a){this.spinner.stop();if(null!=a&&0=window.location.hash.length)&&null!=e&&0=window.location.hash.length)&&null!=urlParams.state&&(null!=this.stateArg&&"open"==this.stateArg.action)&&null!=this.stateArg.ids)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? -(this.setMode(App.MODE_GOOGLE),this.actions.get("new").funct()):b()}}}; +mxUtils.bind(this,function(){this.spinner.stop();this.handleError({message:mxResources.get("fileNotFound")},mxResources.get("errorLoadingFile"),c)}))}catch(f){this.spinner.stop();try{(new Image).src="https://log.draw.io/log?v\x3d"+encodeURIComponent(EditorUi.VERSION)+"\x26msg\x3derrorLoadingFile:url:"+encodeURIComponent(window.location.href)+(null!=f&&null!=f.message?":err:"+encodeURIComponent(f.message):"")+(null!=f&&null!=f.stack?"\x26stack\x3d"+encodeURIComponent(f.stack):"")}catch(d){}this.handleError(f, +mxResources.get("errorLoadingFile"),c)}else if(null==this.getCurrentFile()){var b=mxUtils.bind(this,function(){if("1"==urlParams.client&&(null==window.location.hash||0==window.location.hash.length)){var a=window.opener||window.parent;a!=window&&this.installMessageHandler(mxUtils.bind(this,function(b,c){if(c.source==a){"data:image/png;base64,"==b.substring(0,22)&&(b=this.extractGraphModelFromPng(b));var d=urlParams.title,d=null!=d?decodeURIComponent(d):this.defaultFilename;this.fileLoaded(new LocalFile(this, +b,d));this.getCurrentFile().setModified(!this.editor.chromeless);this.setMode(null)}}))}else if(null==this.dialog)if("1"==urlParams.demo){var b=Editor.useLocalStorage;this.createFile(this.defaultFilename,null,null,App.MODE_DEVICE);this.setMode(null);Editor.useLocalStorage=b}else{b=!1;try{b=null!=window.opener&&null!=window.opener.openFile}catch(c){}if(b)this.spinner.spin(document.body,mxResources.get("loading"));else if(b=this.getDiagramId(),"0"==urlParams.splash&&(null==b||0==b.length)){var d=this.getDraft(), +e=null!=d?d.data:this.getFileData(),b=Editor.useLocalStorage;this.createFile(this.defaultFilename,e,null,App.MODE_DEVICE);this.setMode(null);Editor.useLocalStorage=b;null!=d&&(b=this.getCurrentFile(),null!=b&&b.addUnsavedStatus())}else this.loadFile(this.getDiagramId())}});null!=this.drive&&this.defineCustomObjects();var e=decodeURIComponent(urlParams.create||"");if((null==window.location.hash||1>=window.location.hash.length)&&null!=e&&0=window.location.hash.length)&&null!=urlParams.state&&(null!=this.stateArg&&"open"==this.stateArg.action)&&null!=this.stateArg.ids)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?(this.setMode(App.MODE_GOOGLE),this.actions.get("new").funct()):b()}}}; App.prototype.showSplash=function(a){var c=mxUtils.bind(this,function(){var a=new SplashDialog(this);this.showDialog(a.container,340,mxClient.IS_CHROMEAPP?180:260,!0,!0,mxUtils.bind(this,function(a){a&&!mxClient.IS_CHROMEAPP&&(a=Editor.useLocalStorage,this.createFile(this.defaultFilename,null,null,App.MODE_DEVICE),this.setMode(null),Editor.useLocalStorage=a)}));a.init()});this.editor.chromeless?this.handleError({message:mxResources.get("noFileSelected")},mxResources.get("errorLoadingFile"),mxUtils.bind(this, function(){this.showSplash()})):null==this.mode||a?(a=new StorageDialog(this,mxUtils.bind(this,function(){this.hideDialog();c()})),this.showDialog(a.container,isLocalStorage&&"1"==urlParams.browser?480:380,300,!0,!1),a.init()):null==urlParams.create&&c()}; App.prototype.addLanguageMenu=function(a){var c=null;if((!this.isOfflineApp()||mxClient.IS_CHROMEAPP)&&null!=this.menus.get("language"))c=document.createElement("div"),c.setAttribute("title",mxResources.get("language")),c.className="geIcon geSprite geSprite-globe",c.style.position="absolute",c.style.cursor="pointer",c.style.bottom="20px",c.style.right="20px",mxEvent.addListener(c,"click",mxUtils.bind(this,function(a){this.editor.graph.popupMenuHandler.hideMenu();var d=new mxPopupMenu(this.menus.get("language").funct); @@ -7630,11 +7636,11 @@ g.length&&(d="https://www.draw.io/embed2.js?s\x3d"+g.join(";"))}null!=b&&(b=b.re (null==b?null!=f?"\x3ctitle\x3e"+mxUtils.htmlEntities(f)+"\x3c/title\x3e\n":"":"\x3ctitle\x3eDraw.io Diagram\x3c/title\x3e\n")+(null!=b?'\x3cmeta http-equiv\x3d"refresh" content\x3d"0;URL\x3d\''+b+"'\"/\x3e\n":"")+'\x3cmeta charset\x3d"utf-8"/\x3e\n\x3c/head\x3e\n\x3cbody\x3e\n\x3cdiv class\x3d"mxgraph" style\x3d"max-width:100%;border:1px solid transparent;" data-mxgraph\x3d"'+mxUtils.htmlEntities(JSON.stringify(a))+'"\x3e\x3c/div\x3e\n'+(null==b?'\x3cscript type\x3d"text/javascript" src\x3d"'+d+ '"\x3e\x3c/script\x3e':'\x3ca style\x3d"position:absolute;top:50%;left:50%;margin-top:-128px;margin-left:-64px;" href\x3d"'+b+'" target\x3d"_blank"\x3e\x3cimg border\x3d"0" src\x3d"https://www.draw.io/images/drawlogo128.png"/\x3e\x3c/a\x3e')+"\n\x3c/body\x3e\n\x3c/html\x3e\n"}; App.prototype.saveData=function(a,c,f,d){this.isLocalFileSave()?this.saveLocalFile(f,a,d):this.saveRequest(f,a,c,mxUtils.bind(this,function(a,d){var g="undefined"===typeof pako?"\x26xml\x3d"+encodeURIComponent(f):"\x26data\x3d"+encodeURIComponent(this.editor.graph.compress(f));return new mxXmlRequest(SAVE_URL,"format\x3d"+c+(null!=a?"\x26filename\x3d"+encodeURIComponent(a):"")+g)}))}; -App.prototype.downloadFile=function(a,c,f,d){try{var b=this.getCurrentFile();d=null!=d?d:this.editor.graph.isSelectionEmpty();var e=null!=b&&null!=b.getTitle()?b.getTitle():this.defaultFilename;if(/(\.xml)$/i.test(e)||/(\.html)$/i.test(e)||/(\.svg)$/i.test(e))e=e.substring(0,e.lastIndexOf("."));var g=e+"."+a;if("xml"==a){var k='\x3c?xml version\x3d"1.0" encoding\x3d"UTF-8"?\x3e\n'+(c?mxUtils.getXml(this.editor.getGraphXml(d)):this.getFileData(!0,null,null,null,d));this.saveData(g,a,k,"text/xml")}else if("html"== -a)k=this.getHtml2(this.editor.getGraphXml(d),this.editor.graph,e,null,null,d),this.saveData(g,a,k,"text/html");else if(("svg"==a||"xmlsvg"==a)&&this.spinner.spin(document.body,mxResources.get("export"))){var l=null,m=mxUtils.bind(this,function(a){a.length<=MAX_REQUEST_SIZE?this.saveData(g,"svg",a,"image/svg+xml"):this.handleError({message:mxResources.get("drawingTooLarge")},mxResources.get("error"),mxUtils.bind(this,function(){mxUtils.popup(l)}))});if("svg"==a){var n=this.editor.graph.background; -n==mxConstants.NONE&&(n=null);var p=this.editor.graph.getSvg(n,null,null,!1,null,d);f&&this.editor.addSvgShadow(p);this.convertImages(p,mxUtils.bind(this,mxUtils.bind(this,function(a){this.spinner.stop();m('\x3c?xml version\x3d"1.0" encoding\x3d"UTF-8"?\x3e\n\x3c!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"\x3e\n'+mxUtils.getXml(a))})))}else g=e+".svg",l=this.getFileData(!1,!0,null,mxUtils.bind(this,function(a){this.spinner.stop();m(a)}),d)}else{var r= -this.editor.graph.getGraphBounds(),k=this.getFileData(!0,null,null,null,d,"xmlpng"!=a),s="";if(r.width*r.height<=MAX_AREA&&k.length<=MAX_REQUEST_SIZE){var q="0";if("xmlpng"==a&&(q="1",a="png",g=e+"."+a,null!=this.pages&&null!=this.currentPage))for(c=0;c=a.pages.length,c=document.createElement("div");c.style.padding="6px";var e=document.createElement("input");e.style.marginRight="8px";e.setAttribute("type","checkbox");d.isSelectionEmpty()&&e.setAttribute("disabled","disabled");c.appendChild(e);mxUtils.write(c, -mxResources.get("selectionOnly"));var g=document.createElement("input");g.setAttribute("type","checkbox");g.setAttribute("checked","checked");g.defaultChecked=!0;g.style.marginRight="8px";g.style.marginTop="16px";b&&(mxUtils.br(c),c.appendChild(g),mxUtils.write(c,mxResources.get("compressed")));c=new CustomDialog(a,c,mxUtils.bind(this,function(){a.downloadFile("xml",!g.checked,null,!e.checked)}),null,mxResources.get("export"));a.showDialog(c.container,300,b?120:80,!0,!0)}),c);a.isOffline()||(b.addSeparator(c), -this.addMenuItem(b,"export",c).firstChild.nextSibling.innerHTML=mxResources.get("advanced")+"...")})));this.editorUi.actions.addAction("chatWindowTitle...",mxUtils.bind(this.editorUi,this.editorUi.toggleChat));this.put("importFrom",new Menu(function(b,c){function l(b){if(b&&Graph.fileSupport&&!mxClient.IS_IE&&!mxClient.IS_IE11){var c=document.createElement("input");c.setAttribute("type","file");mxEvent.addListener(c,"change",function(){null!=c.files&&a.importFiles(c.files,null,null,a.maxImageSize)}); -c.click()}else{window.openNew=!1;window.openKey="import";var e=Editor.useLocalStorage;Editor.useLocalStorage=!b;window.openFile=new OpenFile(function(b){a.hideDialog(b)});window.openFile.setConsumer(function(b,c){d.setSelectionCells(a.importXml(b))});a.showDialog((new OpenDialog(a)).container,360,220,!0,!0,function(){window.openFile=null});var g=a.dialog,k=g.close;a.dialog.close=function(b){Editor.useLocalStorage=e;k.apply(g,arguments);b&&null==a.getCurrentFile()&&"1"!=urlParams.embed&&a.showSplash()}}} -function m(b){b.pickFile(function(c){if(a.spinner.spin(document.body,mxResources.get("loading")))if(b==a.dropbox){var d=/(\.png)$/i.test(c)?"image/png":"text/xml";a.loadUrl(c,function(a){n(a,d,c)},function(b){a.handleError(b,null!=b?mxResources.get("errorLoadingFile"):null)},"image/png"==d)}else b.getFile(c,function(a){var b=/(\.png)$/i.test(a.getTitle())?"image/png":"text/xml";n(a.getData(),b,a.getTitle())},function(b){a.handleError(b,null!=b?mxResources.get("errorLoadingFile"):null)},!0)},!0)}var n= -mxUtils.bind(this,function(b,c,e){"image/png"==c?a.loadImage(b,mxUtils.bind(this,function(g){a.resizeImage(g,b,mxUtils.bind(this,function(g,k,l){g=Math.min(1,Math.min(a.maxImageSize/k,a.maxImageSize/l));a.importFile(b,c,0,0,Math.round(k*g),Math.round(l*g),e,function(b){a.spinner.stop();d.setSelectionCells(b)})}),!0)})):a.importFile(b,c,0,0,0,0,e,function(b){a.spinner.stop();d.setSelectionCells(b)})});null!=a.drive?b.addItem(mxResources.get("googleDrive")+"...",null,function(){m(a.drive)},c):e&&b.addItem(mxResources.get("googleDrive")+ -" ("+mxResources.get("loading")+"...)",null,function(){},c,null,!1);null!=a.dropbox?b.addItem(mxResources.get("dropbox")+"...",null,function(){m(a.dropbox)},c):g&&b.addItem(mxResources.get("dropbox")+" ("+mxResources.get("loading")+"...)",null,function(){},c,null,!1);null!=a.oneDrive?b.addItem(mxResources.get("oneDrive")+"...",null,function(){m(a.oneDrive)},c):k&&b.addItem(mxResources.get("oneDrive")+" ("+mxResources.get("loading")+"...)",null,function(){},c,null,!1);b.addSeparator(c);isLocalStorage&& -"0"!=urlParams.browser&&b.addItem(mxResources.get("browser")+"...",null,function(){l(!1)},c);mxClient.IS_IOS||b.addItem(mxResources.get("device")+"...",null,function(){l(!0)},c);a.isOffline()||(b.addSeparator(c),b.addItem(mxResources.get("url")+"...",null,function(){var b=new FilenameDialog(a,"",mxResources.get("import"),function(b){if(null!=b&&0= 0 || message.indexOf('SecurityError') >= 0 || message.indexOf('NS_ERROR_FAILURE') >= 0 || message.indexOf('out of memory') >= 0) ? 'CONFIG' : 'SEVERE'; - img.src = 'log?severity=' + severity + '&v=' + encodeURIComponent(EditorUi.VERSION) + + img.src = 'https://log.draw.io/log?severity=' + severity + '&v=' + encodeURIComponent(EditorUi.VERSION) + '&msg=clientError:' + encodeURIComponent(message) + ':url:' + encodeURIComponent(window.location.href) + ':lnum:' + encodeURIComponent(linenumber) + ((colno != null) ? ':colno:' + encodeURIComponent(colno) : '') + @@ -610,7 +621,7 @@ App.prototype.formatHideImage = (!mxClient.IS_SVG) ? IMAGE_PATH + '/format-hide. /** * */ -App.prototype.fullscreenImage = (!mxClient.IS_SVG) ? IMAGE_PATH + '/fullscreen.png' : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMAQMAAABsu86kAAAABlBMVEUAAABEREQ3UJNbAAAAAXRSTlMAQObYZgAAABxJREFUCNdj+PkBhA4YgNB5AwZ+BiACMiAiEFkA9QQNgW8IGoYAAAAASUVORK5CYII='; +App.prototype.fullscreenImage = (!mxClient.IS_SVG) ? IMAGE_PATH + '/fullscreen.png' : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAABlBMVEUAAAAAAAClZ7nPAAAAAXRSTlMAQObYZgAAABpJREFUCNdjgAAbGxAy4AEh5gNwBBGByoIBAIueBd12TUjqAAAAAElFTkSuQmCC'; /** * @@ -1593,6 +1604,7 @@ App.prototype.getPublicUrl = function(file, fn) */ App.prototype.createFileData = function(node, graph, file, url, forceXml, forceSvg, forceHtml, embeddedCallback, ignoreSelection) { + graph = (graph != null) ? graph : this.editor.graph; forceXml = (forceXml != null) ? forceXml : false; ignoreSelection = (ignoreSelection != null) ? ignoreSelection : true; @@ -1621,12 +1633,12 @@ App.prototype.createFileData = function(node, graph, file, url, forceXml, forceS if (fileNode.nodeName.toLowerCase() != 'mxfile') { // Removes control chars in input for correct roundtrip check - var text = this.editor.graph.zapGremlins(mxUtils.getXml(node)); - var data = this.editor.graph.compress(text); + var text = graph.zapGremlins(mxUtils.getXml(node)); + var data = graph.compress(text); // Fallback to plain XML for invalid compression // TODO: Remove this fallback with active pages - if (this.editor.graph.decompress(data) != text) + if (graph.decompress(data) != text) { return text; } @@ -1656,7 +1668,7 @@ App.prototype.createFileData = function(node, graph, file, url, forceXml, forceS // Writes the file as an embedded HTML file if (!forceSvg && !forceXml && (forceHtml || (file != null && /(\.html)$/i.test(file.getTitle())))) { - xml = this.getHtml2(fileNode, graph, file.getTitle(), editLink, redirect, ignoreSelection); + xml = this.getHtml2(fileNode, graph, (file != null) ? file.getTitle() : null, editLink, redirect, ignoreSelection); } // Maps the XML data to the content attribute in the SVG node else if (forceSvg || (!forceXml && file != null && /(\.svg)$/i.test(file.getTitle()))) @@ -1724,8 +1736,46 @@ App.prototype.getFileData = function(forceXml, forceSvg, forceHtml, embeddedCall } } - return this.createFileData(node, this.editor.graph, this.getCurrentFile(), window.location.href, + var graph = this.editor.graph; + var file = this.getCurrentFile(); + + // Exports SVG for first page while other page is visible by creating a graph + // LATER: Add caching for the graph or SVG while not on first page + if (this.pages != null && this.currentPage != this.pages[0] && (forceSvg || + (!forceXml && file != null && /(\.svg)$/i.test(file.getTitle())))) + { + graph = this.createTemporaryGraph(graph.getStylesheet()); + var graphGetGlobalVariable = graph.getGlobalVariable; + var page = this.pages[0]; + + graph.getGlobalVariable = function(name) + { + if (name == 'page') + { + return page.getName(); + } + else if (name == 'pagenumber') + { + return 1; + } + + return graphGetGlobalVariable.apply(this, arguments); + }; + + document.body.appendChild(graph.container); + graph.model.setRoot(page.root); + } + + var result = this.createFileData(node, graph, file, window.location.href, forceXml, forceSvg, forceHtml, embeddedCallback, ignoreSelection); + + // Removes temporary graph from DOM + if (graph != this.editor.graph) + { + graph.container.parentNode.removeChild(graph.container); + } + + return result; }; /** @@ -2219,7 +2269,7 @@ App.prototype.start = function() try { var img = new Image(); - img.src = 'log?v=' + encodeURIComponent(EditorUi.VERSION) + + img.src = 'https://log.draw.io/log?v=' + encodeURIComponent(EditorUi.VERSION) + '&msg=errorLoadingFile:url:' + encodeURIComponent(window.location.href) + ((e != null && e.message != null) ? ':err:' + encodeURIComponent(e.message) : '') + ((e != null && e.stack != null) ? '&stack=' + encodeURIComponent(e.stack) : ''); @@ -4163,7 +4213,7 @@ App.prototype.fileLoaded = function(file) // if (!this.isOffline()) // { // var img = new Image(); -// img.src = 'log?msg=storageMode:' + encodeURIComponent(file.getMode()) + +// img.src = 'https://log.draw.io/log?msg=storageMode:' + encodeURIComponent(file.getMode()) + // '&v=' + encodeURIComponent(EditorUi.VERSION); // } // } @@ -5319,7 +5369,7 @@ App.prototype.saveData = function(filename, format, data, mime) * @param {number} dx X-coordinate of the translation. * @param {number} dy Y-coordinate of the translation. */ -App.prototype.downloadFile = function(format, nonCompressed, addShadow, ignoreSelection) +App.prototype.downloadFile = function(format, nonCompressed, addShadow, ignoreSelection, currentPage) { try { @@ -5339,7 +5389,7 @@ App.prototype.downloadFile = function(format, nonCompressed, addShadow, ignoreSe { var data = '\n' + ((nonCompressed) ? mxUtils.getXml(this.editor.getGraphXml(ignoreSelection)) : - this.getFileData(true, null, null, null, ignoreSelection)); + this.getFileData(true, null, null, null, ignoreSelection, currentPage)); this.saveData(filename, format, data, 'text/xml'); } diff --git a/war/js/diagramly/Dialogs.js b/war/js/diagramly/Dialogs.js index dfc269ef..07ebca54 100644 --- a/war/js/diagramly/Dialogs.js +++ b/war/js/diagramly/Dialogs.js @@ -857,15 +857,16 @@ var EmbedHtmlDialog = function(editorUi) layersCheckBox.style.marginLeft = '10px'; var model = editorUi.editor.graph.getModel(); - - if (model.getChildCount(model.getRoot()) > 1) + + if (editorUi.pages == null || editorUi.pages.length == 0 && + (model.getChildCount(model.getRoot()) <= 1)) { - layersCheckBox.setAttribute('checked', 'checked'); - layersCheckBox.defaultChecked = true; + layersCheckBox.setAttribute('disabled', 'disabled'); } else { - layersCheckBox.setAttribute('disabled', 'disabled'); + layersCheckBox.setAttribute('checked', 'checked'); + layersCheckBox.defaultChecked = true; } options.appendChild(layersCheckBox); @@ -876,7 +877,22 @@ var EmbedHtmlDialog = function(editorUi) zoomCheckBox.style.marginLeft = '10px'; options.appendChild(zoomCheckBox); mxUtils.write(options, mxResources.get('zoom')); + + zoomCheckBox.setAttribute('checked', 'checked'); + zoomCheckBox.defaultChecked = true; + + var pagesCheckBox = document.createElement('input'); + pagesCheckBox.setAttribute('type', 'checkbox'); + pagesCheckBox.style.marginLeft = '10px'; + if (editorUi.pages != null && editorUi.pages.length > 1) + { + pagesCheckBox.setAttribute('checked', 'checked'); + pagesCheckBox.defaultChecked = true; + options.appendChild(pagesCheckBox); + } + + mxUtils.write(options, mxResources.get('allPages')); div.appendChild(options); function update(force) @@ -942,6 +958,17 @@ var EmbedHtmlDialog = function(editorUi) var tb = []; + if (pagesCheckBox.checked) + { + tb.push('pages'); + data.resize = true; + + if (editorUi.pages != null && editorUi.currentPage != null) + { + data.page = mxUtils.indexOf(editorUi.pages, editorUi.currentPage); + } + } + if (zoomCheckBox.checked) { tb.push('zoom'); @@ -962,7 +989,7 @@ var EmbedHtmlDialog = function(editorUi) data.toolbar = tb.join(' '); } - + if (editCheckBox.checked) { if (urlInput.value != '') @@ -981,7 +1008,7 @@ var EmbedHtmlDialog = function(editorUi) } else { - data.xml = editorUi.getFileData(true); + data.xml = editorUi.getFileData(true, null, null, null, null, !pagesCheckBox.checked); } textarea.value = '
navigator.userAgent.indexOf("MSIE")&& +window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"5.7.0.9",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&& 0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT:0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&& 0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.indexOf("Firefox/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&& 0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")|| diff --git a/war/js/mxgraph/Actions.js b/war/js/mxgraph/Actions.js index d786680d..36ddb32b 100644 --- a/war/js/mxgraph/Actions.js +++ b/war/js/mxgraph/Actions.js @@ -623,7 +623,7 @@ Actions.prototype.init = function() this.editorUi.showDialog(dlg.container, 300, 80, true, true); dlg.init(); }), null, null, 'Ctrl+0')); - this.addAction('pageScale', mxUtils.bind(this, function() + this.addAction('pageScale...', mxUtils.bind(this, function() { var dlg = new FilenameDialog(this.editorUi, parseInt(graph.pageScale * 100), mxResources.get('apply'), mxUtils.bind(this, function(newValue) { diff --git a/war/js/mxgraph/Editor.js b/war/js/mxgraph/Editor.js index 58da0ee4..bfd08656 100644 --- a/war/js/mxgraph/Editor.js +++ b/war/js/mxgraph/Editor.js @@ -126,6 +126,16 @@ Editor.zoomFitImage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVBAM */ Editor.layersImage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAMAAACeyVWkAAAAaVBMVEUAAAAgICAICAgdHR0PDw8WFhYICAgLCwsXFxcvLy8ODg4uLi4iIiIqKiokJCQYGBgKCgonJycFBQUCAgIqKiocHBwcHBwODg4eHh4cHBwnJycJCQkUFBQqKiojIyMuLi4ZGRkgICAEBATOWYXAAAAAGnRSTlMAD7+fnz8/H7/ff18/77+vr5+fn39/b28fH2xSoKsAAACQSURBVBjTrYxJEsMgDARZZMAY73sgCcn/HxnhKtnk7j6oRq0psfuoyndZ/SuODkHPLzfVT6KeyPePnJ7KrnkRjWMXTn4SMnN8mXe2SSM3ts8L/ZUxxrbAULSYJJULE0Iw9pjpenoICcgcX61mGgTgtCv9Be99pzCoDhNQWQnchD1mup5++CYGcoQexajZbfwAj/0MD8ZOaUgAAAAASUVORK5CYII='; +/** + * Specifies the image URL to be used for the transparent background. + */ +Editor.previousImage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAh0lEQVQ4je3UsQnCUBCA4U8hpa1NsoEjpHQJS0dxADdwEMuMIJkgA1hYChbGQgMi+JC8q4L/AB/vDu7x74cWWEZhJU44RmA1zujR5GIbXF9YNrjD/Q0bDRY4fEBZ4P4LlgTnCbAf84pUM8/9hY08tMUtEoQ1LpEgrNBFglChFXR6Q6GfwwR6AGKJMF74Vtt3AAAAAElFTkSuQmCC'; + +/** + * Specifies the image URL to be used for the transparent background. + */ +Editor.nextImage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAABmJLR0QA/wD/AP+gvaeTAAAAi0lEQVQ4jeXUIQ7CUAwA0MeGxWI2yylwnALJUdBcgYvM7QYLmjOQIAkIPmJZghiIvypoUtX0tfnJL38X5ZfaEgUeUcManFBHgS0SLlhHggk3bCPBhCf2keCQR8wjwYTDp6YiZxJmOU1jGw7vGALescuBxsArNlOwd/CM1VSM/ut1qCIw+uOwiMJ+OF4CQzBCXm3hyAAAAABJRU5ErkJggg=='; + /** * Specifies the image URL to be used for the transparent background. */ @@ -156,6 +166,16 @@ Editor.closeLargeImage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg */ Editor.editLargeImage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgAgMAAAAOFJJnAAAACVBMVEUAAAD///////9zeKVjAAAAAnRSTlMAgJsrThgAAABcSURBVBjThc6xDcAgDATAd8MQTEPW8TRUmYCGnzLRYyOlIV+dZFtvkICTFGqiJEzAG0/Uje9oL+e5Vu4F5yUYJxxqGKhQZ0eBvmgwYQLQaARKD1hbiPyDR0QOeAC31EyNe5X/kAAAAABJRU5ErkJggg=='; +/** + * Specifies the image URL to be used for the transparent background. + */ +Editor.previousLargeImage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAPFBMVEUAAAD////////////////////////////////////////////////////////////////////////////YSWgTAAAAE3RSTlMA7fci493c0MW8uJ6CZks4MxQHEZL6ewAAAFZJREFUOMvdkskRgDAMA4lDwg2B7b9XOlge/KKvdsa25KFb5XlRvxXC/DNBEv8IFNjBgGdDgXtFgTyhwDXiQAUHCvwa4Uv6mR6UR+1led2mVonvl+tML45qCQNQLIx7AAAAAElFTkSuQmCC'; + +/** + * Specifies the image URL to be used for the transparent background. + */ +Editor.nextLargeImage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAPFBMVEUAAAD////////////////////////////////////////////////////////////////////////////YSWgTAAAAE3RSTlMA7fci493c0MW8uJ6CZks4MxQHEZL6ewAAAFRJREFUOMvd0skRgCAQBVEFwQ0V7fxzNQP6wI05v6pZ/kyj1b7FNgik2gQzzLcAwiUAigHOTwDHK4A1CmB5BJANJG1hQ9qafYcqFlZP3IFc9eVGrR+iIgkDQRUXIAAAAABJRU5ErkJggg=='; + // Editor inherits from mxEventSource mxUtils.extend(Editor, mxEventSource); @@ -243,6 +263,14 @@ Editor.prototype.setAutosave = function(value) this.fireEvent(new mxEventObject('autosaveChanged')); }; +/** + * + */ +Editor.prototype.getEditBlankUrl = function(params, fallback) +{ + return ((fallback) ? this.editBlankFallbackUrl : this.editBlankUrl) + params; +} + /** * */ @@ -264,13 +292,13 @@ Editor.prototype.editAsNew = function(xml, title) }); mxEvent.addListener(window, 'message', receive); - wnd = window.open(this.editBlankUrl + p); + wnd = window.open(this.getEditBlankUrl(p, false)); } else { // Data is pulled from global variable after tab loads window.drawdata = xml; - window.open(this.editBlankFallbackUrl + p); + window.open(this.getEditBlankUrl(p, true)); } }; diff --git a/war/js/mxgraph/EditorUi.js b/war/js/mxgraph/EditorUi.js index 3ad00f66..b81a54e0 100644 --- a/war/js/mxgraph/EditorUi.js +++ b/war/js/mxgraph/EditorUi.js @@ -208,13 +208,13 @@ EditorUi = function(editor, container, lightbox) mxEvent.isMiddleMouseButton(me.getEvent()))); }; - // Control-enter applies editing value - // FIXME: Fix for HTML editing + // Ctrl/Cmd+Enter applies editing value var cellEditorIsStopEditingEvent = graph.cellEditor.isStopEditingEvent; graph.cellEditor.isStopEditingEvent = function(evt) { return cellEditorIsStopEditingEvent.apply(this, arguments) || - (evt.keyCode == 13 && mxEvent.isControlDown(evt)); + (evt.keyCode == 13 && (mxEvent.isControlDown(evt) || + (mxClient.IS_MAC && mxEvent.isMetaDown(evt)))); }; // Switches toolbar for text editing @@ -1474,6 +1474,62 @@ EditorUi.prototype.initCanvas = function() return a; }); + + var prevButton = addButton(mxUtils.bind(this, function(evt) + { + this.actions.get('previousPage').funct(); + mxEvent.consume(evt); + }), Editor.previousLargeImage, mxResources.get('previousPage') || 'Previous Page'); + + + var pageInfo = document.createElement('div'); + pageInfo.style.display = 'inline-block'; + pageInfo.style.verticalAlign = 'top'; + pageInfo.style.fontFamily = 'Helvetica,Arial'; + pageInfo.style.marginTop = '8px'; + pageInfo.style.color = '#ffffff'; + this.chromelessToolbar.appendChild(pageInfo); + + var nextButton = addButton(mxUtils.bind(this, function(evt) + { + this.actions.get('nextPage').funct(); + mxEvent.consume(evt); + }), Editor.nextLargeImage, mxResources.get('nextPage') || 'Next Page'); + + var updatePageInfo = mxUtils.bind(this, function() + { + if (this.pages != null && this.pages.length > 1 && this.currentPage != null) + { + pageInfo.innerHTML = ''; + mxUtils.write(pageInfo, (mxUtils.indexOf(this.pages, this.currentPage) + 1) + ' / ' + this.pages.length); + } + }); + + prevButton.style.paddingLeft = '0px'; + prevButton.style.paddingRight = '4px'; + nextButton.style.paddingLeft = '4px'; + nextButton.style.paddingRight = '0px'; + + var updatePageButtons = mxUtils.bind(this, function() + { + if (this.pages != null && this.pages.length > 1 && this.currentPage != null) + { + nextButton.style.display = ''; + prevButton.style.display = ''; + pageInfo.style.display = 'inline-block'; + } + else + { + nextButton.style.display = 'none'; + prevButton.style.display = 'none'; + pageInfo.style.display = 'none'; + } + + updatePageInfo(); + }); + + this.editor.addListener('resetGraphView', updatePageButtons); + this.editor.addListener('pageSelected', updatePageInfo); addButton(mxUtils.bind(this, function(evt) { @@ -1584,6 +1640,7 @@ EditorUi.prototype.initCanvas = function() mxUtils.setPrefixedStyle(this.layersDialog.style, 'borderRadius', '5px'); this.layersDialog.style.position = 'fixed'; + this.layersDialog.style.fontFamily = 'Helvetica,Arial'; this.layersDialog.style.backgroundColor = '#000000'; this.layersDialog.style.width = '160px'; this.layersDialog.style.padding = '4px 2px 4px 2px'; @@ -1922,6 +1979,29 @@ EditorUi.prototype.initCanvas = function() })); }; +/** + * Creates a temporary graph instance for rendering off-screen content. + */ +EditorUi.prototype.createTemporaryGraph = function(stylesheet) +{ + var graph = new Graph(document.createElement('div'), null, null, stylesheet); + graph.resetViewOnRootChange = false; + graph.setConnectable(false); + graph.gridEnabled = false; + graph.autoScroll = false; + graph.setTooltips(false); + graph.setEnabled(false); + + // Container must be in the DOM for correct HTML rendering + graph.container.style.visibility = 'hidden'; + graph.container.style.position = 'absolute'; + graph.container.style.overflow = 'hidden'; + graph.container.style.height = '1px'; + graph.container.style.width = '1px'; + + return graph; +}; + /** * */ diff --git a/war/js/mxgraph/Sidebar.js b/war/js/mxgraph/Sidebar.js index 8c035145..c42168ab 100644 --- a/war/js/mxgraph/Sidebar.js +++ b/war/js/mxgraph/Sidebar.js @@ -11,23 +11,10 @@ function Sidebar(editorUi, container) this.palettes = new Object(); this.taglist = new Object(); this.showTooltips = true; - this.graph = new Graph(document.createElement('div'), null, null, this.editorUi.editor.graph.getStylesheet()); + this.graph = editorUi.createTemporaryGraph(this.editorUi.editor.graph.getStylesheet()); this.graph.cellRenderer.antiAlias = false; - this.graph.resetViewOnRootChange = false; this.graph.foldingEnabled = false; - this.graph.setConnectable(false); - this.graph.gridEnabled = false; - this.graph.autoScroll = false; - this.graph.setTooltips(false); - this.graph.setEnabled(false); - // Container must be in the DOM for correct HTML rendering - this.graph.container.style.visibility = 'hidden'; - this.graph.container.style.position = 'absolute'; - this.graph.container.style.overflow = 'hidden'; - this.graph.container.style.height = '1px'; - this.graph.container.style.width = '1px'; - // Workaround for blank output in IE11- if (!mxClient.IS_IE && !mxClient.IS_IE11) { @@ -974,10 +961,10 @@ Sidebar.prototype.addMiscPalette = function(expand) })), this.createVertexTemplateEntry('shape=umlActor;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;html=1;', 30, 60, 'Actor', 'Actor', false, null, 'user person human stickman'), // Entries for top searches - this.createVertexTemplateEntry('whiteSpace=wrap;html=1;', 80, 80, '', 'Square', null, null, 'square'), - this.createVertexTemplateEntry('ellipse;whiteSpace=wrap;html=1;', 80, 80, '', 'Circle', null, null, 'circle'), - this.createVertexTemplateEntry('shape=ext;double=1;whiteSpace=wrap;html=1;', 80, 80, '', 'Double Square', null, null, 'double square'), - this.createVertexTemplateEntry('ellipse;shape=doubleEllipse;whiteSpace=wrap;html=1;', 80, 80, '', 'Double Circle', null, null, 'double circle'), + this.createVertexTemplateEntry('whiteSpace=wrap;html=1;aspect=fixed;', 80, 80, '', 'Square', null, null, 'square'), + this.createVertexTemplateEntry('ellipse;whiteSpace=wrap;html=1;aspect=fixed;', 80, 80, '', 'Circle', null, null, 'circle'), + this.createVertexTemplateEntry('shape=ext;double=1;whiteSpace=wrap;html=1;aspect=fixed;', 80, 80, '', 'Double Square', null, null, 'double square'), + this.createVertexTemplateEntry('ellipse;shape=doubleEllipse;whiteSpace=wrap;html=1;aspect=fixed;', 80, 80, '', 'Double Circle', null, null, 'double circle'), // End of entries for top searches this.createVertexTemplateEntry('html=1;whiteSpace=wrap;comic=1;strokeWidth=2;fontFamily=Comic Sans MS;fontStyle=1;', 120, 60, 'RECTANGLE', 'Comic Rectangle', true, null, 'comic rectangle rect box text retro'), this.createVertexTemplateEntry('rhombus;html=1;align=center;whiteSpace=wrap;comic=1;strokeWidth=2;fontFamily=Comic Sans MS;fontStyle=1;', 100, 100, 'DIAMOND', 'Comic Diamond', true, null, 'comic diamond rhombus if condition decision conditional question test retro'), @@ -987,10 +974,10 @@ Sidebar.prototype.addMiscPalette = function(expand) this.createVertexTemplateEntry('html=1;whiteSpace=wrap;aspect=fixed;shape=isoCube;', 90, 100, '', 'Isometric Cube', true, null, 'cube box iso isometric'), this.createEdgeTemplateEntry('edgeStyle=isometricEdgeStyle;endArrow=none;html=1;', 50, 100, '', 'Isometric Edge 1'), this.createEdgeTemplateEntry('edgeStyle=isometricEdgeStyle;endArrow=none;html=1;elbow=vertical;', 50, 100, '', 'Isometric Edge 2'), - this.createVertexTemplateEntry('line;html=1;', 160, 10, '', 'Horizontal Line'), - this.createVertexTemplateEntry('line;direction=south;html=1;', 10, 160, '', 'Vertical Line'), - this.createVertexTemplateEntry('line;html=1;perimeter=backbonePerimeter;points=[];outlineConnect=0;', 160, 10, '', 'Horizontal Backbone', false, null, 'network'), - this.createVertexTemplateEntry('line;direction=south;html=1;perimeter=backbonePerimeter;points=[];outlineConnect=0;', 10, 160, '', 'Vertical Backbone', false, null, 'network'), + this.createVertexTemplateEntry('line;strokeWidth=2;html=1;', 160, 10, '', 'Horizontal Line'), + this.createVertexTemplateEntry('line;strokeWidth=2;direction=south;html=1;', 10, 160, '', 'Vertical Line'), + this.createVertexTemplateEntry('line;strokeWidth=4;html=1;perimeter=backbonePerimeter;points=[];outlineConnect=0;', 160, 10, '', 'Horizontal Backbone', false, null, 'network'), + this.createVertexTemplateEntry('line;strokeWidth=4;direction=south;html=1;perimeter=backbonePerimeter;points=[];outlineConnect=0;', 10, 160, '', 'Vertical Backbone', false, null, 'network'), this.createVertexTemplateEntry('shape=curlyBracket;whiteSpace=wrap;html=1;rounded=1;', 20, 120, '', 'Curly Bracket'), this.createVertexTemplateEntry('shape=image;html=1;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;imageAspect=1;aspect=fixed;image=' + this.gearImage, 52, 61, '', 'Image (Fixed Aspect)', false, null, 'fixed image icon symbol'), this.createVertexTemplateEntry('shape=image;html=1;verticalLabelPosition=bottom;labelBackgroundColor=#ffffff;verticalAlign=top;imageAspect=0;image=' + this.gearImage, 50, 60, '', 'Image (Variable Aspect)', false, null, 'strechted image icon symbol'), diff --git a/war/js/reader.min.js b/war/js/reader.min.js index 42076d6f..3161590f 100644 --- a/war/js/reader.min.js +++ b/war/js/reader.min.js @@ -184,7 +184,7 @@ f)+"\n"+s+"}":"{"+u.join(",")+"}";f=s;return r}}"function"!==typeof Date.prototy e=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f,g,h={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},k;"function"!==typeof JSON.stringify&&(JSON.stringify=function(a,b,d){var e;g=f="";if("number"===typeof d)for(e=0;enavigator.userAgent.indexOf("MSIE")&& +window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"5.7.0.9",IS_IE:0<=navigator.userAgent.indexOf("MSIE"),IS_IE6:0<=navigator.userAgent.indexOf("MSIE 6"),IS_IE11:!!navigator.userAgent.match(/Trident\/7\./),IS_EDGE:!!navigator.userAgent.match(/Edge\//),IS_QUIRKS:0<=navigator.userAgent.indexOf("MSIE")&&(null==document.documentMode||5==document.documentMode),IS_EM:"spellcheck"in document.createElement("textarea")&&8==document.documentMode,VML_PREFIX:"v",OFFICE_PREFIX:"o",IS_NS:0<=navigator.userAgent.indexOf("Mozilla/")&&0>navigator.userAgent.indexOf("MSIE")&& 0>navigator.userAgent.indexOf("Edge/"),IS_OP:0<=navigator.userAgent.indexOf("Opera/")||0<=navigator.userAgent.indexOf("OPR/"),IS_OT:0<=navigator.userAgent.indexOf("Presto/")&&0>navigator.userAgent.indexOf("Presto/2.4.")&&0>navigator.userAgent.indexOf("Presto/2.3.")&&0>navigator.userAgent.indexOf("Presto/2.2.")&&0>navigator.userAgent.indexOf("Presto/2.1.")&&0>navigator.userAgent.indexOf("Presto/2.0.")&&0>navigator.userAgent.indexOf("Presto/1."),IS_SF:0<=navigator.userAgent.indexOf("AppleWebKit/")&& 0>navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_IOS:navigator.userAgent.match(/(iPad|iPhone|iPod)/g)?!0:!1,IS_GC:0<=navigator.userAgent.indexOf("Chrome/")&&0>navigator.userAgent.indexOf("Edge/"),IS_CHROMEAPP:null!=window.chrome&&null!=chrome.app&&null!=chrome.app.runtime,IS_FF:0<=navigator.userAgent.indexOf("Firefox/"),IS_MT:0<=navigator.userAgent.indexOf("Firefox/")&&0>navigator.userAgent.indexOf("Firefox/1.")&&0>navigator.userAgent.indexOf("Firefox/2.")||0<=navigator.userAgent.indexOf("Iceweasel/")&& 0>navigator.userAgent.indexOf("Iceweasel/1.")&&0>navigator.userAgent.indexOf("Iceweasel/2.")||0<=navigator.userAgent.indexOf("SeaMonkey/")&&0>navigator.userAgent.indexOf("SeaMonkey/1.")||0<=navigator.userAgent.indexOf("Iceape/")&&0>navigator.userAgent.indexOf("Iceape/1."),IS_SVG:0<=navigator.userAgent.indexOf("Firefox/")||0<=navigator.userAgent.indexOf("Iceweasel/")||0<=navigator.userAgent.indexOf("Seamonkey/")||0<=navigator.userAgent.indexOf("Iceape/")||0<=navigator.userAgent.indexOf("Galeon/")|| diff --git a/war/js/viewer.min.js b/war/js/viewer.min.js index 2a93aa0c..0d4ee108 100644 --- a/war/js/viewer.min.js +++ b/war/js/viewer.min.js @@ -1,13 +1,13 @@ var mxBasePath="https://www.draw.io/mxgraph/",mxLoadStylesheets=!1; !function(a,b){"object"==typeof exports?module.exports=b():"function"==typeof define&&define.amd?define(b):a.Spinner=b()}(this,function(){function a(a,b){var c,d=document.createElement(a||"div");for(c in b)d[c]=b[c];return d}function b(a){for(var b=1,c=arguments.length;c>b;b++)a.appendChild(arguments[b]);return a}function c(a,b,c,d){var e=["opacity",b,~~(100*a),c,d].join("-");c=0.01+100*(c/d);d=Math.max(1-(1-a)/b*(100-c),a);var f=l.substring(0,l.indexOf("Animation")).toLowerCase();return m[e]||(p.insertRule("@"+ (f&&"-"+f+"-"||"")+"keyframes "+e+"{0%{opacity:"+d+"}"+c+"%{opacity:"+a+"}"+(c+0.01)+"%{opacity:1}"+(c+b)%100+"%{opacity:"+a+"}100%{opacity:"+d+"}}",p.cssRules.length),m[e]=1),e}function d(a,b){var c,d,e=a.style;b=b.charAt(0).toUpperCase()+b.slice(1);for(d=0;d>1,filter:n}),c("fill",{color:"string"==typeof d.color?d.color:d.color[a%d.color.length],opacity:d.opacity}),c("stroke",{opacity:0}))))}var k,l=d.length+d.width,n=2*l;k=2*-(d.width+d.length)+"px";var m=e(f(),{position:"absolute",top:k,left:k});if(d.shadow)for(k=1;k<=d.lines;k++)g(k,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius\x3d2,makeshadow\x3d1,shadowopacity\x3d.3)");for(k=1;k<=d.lines;k++)g(k);return b(a,m)};g.prototype.opacity=function(a,b,c,d){a=a.firstChild;d=d.shadow&& -d.lines||0;a&&b+d>1)+"px"})}for(var k, n=0,m=(f.lines-1)*(1-f.direction)/2;n]/g,E={"\n":"%0a","\f":"%0c","\r":"%0d",'"':"%22","'":"%27","(":"%28",")":"%29","*":"%2a", -"\x3c":"%3c","\x3e":"%3e"},C=/^(?:([^:/?# ]+):)?/,F=/^(?:https?|mailto|data)$/i;m=function(){var a={};return function R(b,c,d,g,n){b=D(b);var m=f[b];if(!m||"object"!==typeof m)c.length=0;else{for(var q=m.cssPropBits,p=q&80,x=q&1536,G=NaN,C=0,s=0;C=A)r=q&1?r:"";else if(F=r.charCodeAt(1),H=r.charCodeAt(2),E=48<=F&&57>=F,y=48<=H&&57>=H,43===A&&(E||46===F&&y))r=q&1?(E?"":"0")+r.substring(1):"";else if(45===A&&(E||46===F&&y))r=q&4?(E?"-":"-0")+r.substring(1):q&1?"0":"";else if(46===A&&E)r=q&1?"0"+r:"";else if('url("'===r.substring(0,5))r= -d&&q&16?e(t(k(g,c[C].substring(5,r.length-2)),b,d)):"";else if("("===r.charAt(r.length-1))a:{Q=c;ea=C;r=1;W=ea+1;for(A=Q.length;Wg&&" "===b[l-1]&&--l;f.startAtrule&&f.startAtrule(b[k].toLowerCase(),b.slice(g,l));d="{"===b[d]?c(b,d,e,f):d+1;f.endAtrule&&f.endAtrule()}return d}function c(b,f,g,k){++f;for(k.startBlock&&k.startBlock();f]/g,E={"\n":"%0a","\f":"%0c","\r":"%0d",'"':"%22","'":"%27","(":"%28",")":"%29","*":"%2a", +"\x3c":"%3c","\x3e":"%3e"},C=/^(?:([^:/?# ]+):)?/,F=/^(?:https?|mailto|data)$/i;m=function(){var a={};return function R(b,c,d,g,n){b=D(b);var m=f[b];if(!m||"object"!==typeof m)c.length=0;else{for(var q=m.cssPropBits,p=q&80,G=q&1536,x=NaN,C=0,r=0;C=F)s=q&1?s:"";else if(A=s.charCodeAt(1),E=s.charCodeAt(2),J=48<=A&&57>=A,y=48<=E&&57>=E,43===F&&(J||46===A&&y))s=q&1?(J?"":"0")+s.substring(1):"";else if(45===F&&(J||46===A&&y))s=q&4?(J?"-":"-0")+s.substring(1):q&1?"0":"";else if(46===F&&J)s=q&1?"0"+s:"";else if('url("'===s.substring(0,5))s= +d&&q&16?e(t(k(g,c[C].substring(5,s.length-2)),b,d)):"";else if("("===s.charAt(s.length-1))a:{Q=c;ea=C;s=1;W=ea+1;for(F=Q.length;Wg&&" "===b[l-1]&&--l;f.startAtrule&&f.startAtrule(b[k].toLowerCase(),b.slice(g,l));d="{"===b[d]?c(b,d,e,f):d+1;f.endAtrule&&f.endAtrule()}return d}function c(b,f,g,k){++f;for(k.startBlock&&k.startBlock();fn)return n=~n,n===k?n+1:n;var m=a[n];if("{"!==m)return n===k?n+1:n;c=n+1;n>k&&" "===a[n-1]&&--n;for(g.startRuleset&&g.startRuleset(a.slice(k,n));cm)m=~m;else{for(var q=[],p=0,t=b;t])/g;f=a+"";if(ha)f=f.split(g);else{for(var k=[],l=0,n;(n=g.exec(f))!==c;)k.push(f.substring(l,n.index)),k.push(n[0]),l=n.index+n[0].length;k.push(f.substring(l));f=k}p(b,f,0,{r:d,C:d},e)}}function q(a,b,c,d,e){return function(){p(a,b,c,d,e)}}function p(a,c,d,f,g){try{a.H&&0==d&&a.H(g);for(var k,l,n,m=c.length;d])/g;f=a+"";if(ha)f=f.split(g);else{for(var k=[],l=0,n;(n=g.exec(f))!==c;)k.push(f.substring(l,n.index)),k.push(n[0]),l=n.index+n[0].length;k.push(f.substring(l));f=k}p(b,f,0,{r:d,C:d},e)}}function q(a,b,c,d,e){return function(){p(a,b,c,d,e)}}function p(a,c,d,f,g){try{a.H&&0==d&&a.H(g);for(var k,l,n,m=c.length;dc)){for(f=g.length;--f>c;){var k=g[f].v;e.f[k]&e.c.OPTIONAL_ENDTAG||b.push("\x3c/",k,"\x3e")}c/g,U=/\"/g,Q=/^\s*([-.:\w]+)(?:\s*(=)\s*((")[^"]*("|$)|(')[^']*('|$)|(?=[a-z][-\w]*\s*=)|[^"'\s]*))?/i,ha=3==="a,b".split(/(,)/).length,ea=e.c.CDATA|e.c.RCDATA,W={},ga={},ka=/^(?:https?|mailto|data)$/i,ca={};ca.pa=ca.escapeAttrib=k;ca.ra=ca.makeHtmlSanitizer=r;ca.sa=ca.makeSaxParser=m;ca.ta=ca.makeTagPolicy=aa;ca.wa=ca.normalizeRCData=l;ca.xa= ca.sanitize=function(a,b,c,d){return V(a,aa(b,c,d))};ca.ya=ca.sanitizeAttribs=T;ca.za=ca.sanitizeWithPolicy=V;ca.Ba=ca.unescapeEntities=g;return ca}(x);g=e.sanitize;"undefined"!==typeof window&&(window.html=e,window.html_sanitize=g)})(); var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d",encode:function(a,b){var c="",d,e,f,g,k,l,n=0;for(null!=b&&b||(a=Base64._utf8_encode(a));n>2,d=(d&3)<<4|e>>4,k=(e&15)<<2|f>>6,l=f&63,isNaN(e)?k=l=64:isNaN(f)&&(l=64),c=c+this._keyStr.charAt(g)+this._keyStr.charAt(d)+this._keyStr.charAt(k)+this._keyStr.charAt(l);return c},decode:function(a,b){b=null!=b?b:!1;var c="",d,e,f,g,k,l=0;for(a= a.replace(/[^A-Za-z0-9\+\/\=]/g,"");l>4,e=(e&15)<<4|g>>2,f=(g&3)<<6|k,c+=String.fromCharCode(d),64!=g&&(c+=String.fromCharCode(e)),64!=k&&(c+=String.fromCharCode(f));b||(c=Base64._utf8_decode(c));return c},_utf8_encode:function(a){a=a.replace(/\r\n/g,"\n");for(var b="",c=0;cd?b+=String.fromCharCode(d): (127d?b+=String.fromCharCode(d>>6|192):(b+=String.fromCharCode(d>>12|224),b+=String.fromCharCode(d>>6&63|128)),b+=String.fromCharCode(d&63|128))}return b},_utf8_decode:function(a){for(var b="",c=0,d=c1=c2=0;cd?(b+=String.fromCharCode(d),c++):191d?(c2=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|c2&63),c+=2):(c2=a.charCodeAt(c+1),c3=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(c2&63)<<6|c3&63),c+=3);return b}}; !function(a){"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define([],a):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pako=a()}(function(){return function b(c,d,e){function f(k,n){if(!d[k]){if(!c[k]){var m="function"==typeof require&&require;if(!n&&m)return m(k,!0);if(g)return g(k,!0);m=Error("Cannot find module '"+k+"'");throw m.code="MODULE_NOT_FOUND",m;}m=d[k]={exports:{}}; -c[k][0].call(m.exports,function(b){var d=c[k][1][b];return f(d?d:b)},m,m.exports,b,c,d,e)}return d[k].exports}for(var g="function"==typeof require&&require,k=0;kb.windowBits&&(b.windowBits+=16);this.err=0;this.msg= -"";this.ended=!1;this.chunks=[];this.strm=new m;this.strm.avail_out=0;var c=g.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(c!==s)throw Error(n[c]);if(b.header&&g.deflateSetHeader(this.strm,b.header),b.dictionary){var d;if(d="string"==typeof b.dictionary?l.string2buf(b.dictionary):"[object ArrayBuffer]"===p.call(b.dictionary)?new Uint8Array(b.dictionary):b.dictionary,c=g.deflateSetDictionary(this.strm,d),c!==s)throw Error(n[c]);this._dict_set=!0}}function f(b,c){var d= -new e(c);if(d.push(b,!0),d.err)throw d.msg;return d.result}var g=b("./zlib/deflate"),k=b("./utils/common"),l=b("./utils/strings"),n=b("./zlib/messages"),m=b("./zlib/zstream"),p=Object.prototype.toString,s=0,r=-1,q=0,t=8;e.prototype.push=function(b,c){var d,e,f=this.strm,n=this.options.chunkSize;if(this.ended)return!1;e=c===~~c?c:!0===c?4:0;"string"==typeof b?f.input=l.string2buf(b):"[object ArrayBuffer]"===p.call(b)?f.input=new Uint8Array(b):f.input=b;f.next_in=0;f.avail_in=f.input.length;do{if(0=== -f.avail_out&&(f.output=new k.Buf8(n),f.next_out=0,f.avail_out=n),d=g.deflate(f,e),1!==d&&d!==s)return this.onEnd(d),this.ended=!0,!1;0!==f.avail_out&&(0!==f.avail_in||4!==e&&2!==e)||("string"===this.options.to?this.onData(l.buf2binstring(k.shrinkBuf(f.output,f.next_out))):this.onData(k.shrinkBuf(f.output,f.next_out)))}while((0b.windowBits&&(b.windowBits+=16);this.err=0;this.msg= +"";this.ended=!1;this.chunks=[];this.strm=new m;this.strm.avail_out=0;var c=g.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(c!==r)throw Error(n[c]);if(b.header&&g.deflateSetHeader(this.strm,b.header),b.dictionary){var d;if(d="string"==typeof b.dictionary?l.string2buf(b.dictionary):"[object ArrayBuffer]"===p.call(b.dictionary)?new Uint8Array(b.dictionary):b.dictionary,c=g.deflateSetDictionary(this.strm,d),c!==r)throw Error(n[c]);this._dict_set=!0}}function f(b,c){var d= +new e(c);if(d.push(b,!0),d.err)throw d.msg;return d.result}var g=b("./zlib/deflate"),k=b("./utils/common"),l=b("./utils/strings"),n=b("./zlib/messages"),m=b("./zlib/zstream"),p=Object.prototype.toString,r=0,s=-1,q=0,t=8;e.prototype.push=function(b,c){var d,e,f=this.strm,n=this.options.chunkSize;if(this.ended)return!1;e=c===~~c?c:!0===c?4:0;"string"==typeof b?f.input=l.string2buf(b):"[object ArrayBuffer]"===p.call(b)?f.input=new Uint8Array(b):f.input=b;f.next_in=0;f.avail_in=f.input.length;do{if(0=== +f.avail_out&&(f.output=new k.Buf8(n),f.next_out=0,f.avail_out=n),d=g.deflate(f,e),1!==d&&d!==r)return this.onEnd(d),this.ended=!0,!1;0!==f.avail_out&&(0!==f.avail_in||4!==e&&2!==e)||("string"===this.options.to?this.onData(l.buf2binstring(k.shrinkBuf(f.output,f.next_out))):this.onData(k.shrinkBuf(f.output,f.next_out)))}while((0c.windowBits&&(c.windowBits=-c.windowBits,0===c.windowBits&&(c.windowBits=-15));!(0<=c.windowBits&&16>c.windowBits)||b&&b.windowBits||(c.windowBits+=32);15c.windowBits&&0===(15&c.windowBits)&&(c.windowBits|=15);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new p;this.strm.avail_out=0;b=g.inflateInit2(this.strm,c.windowBits);if(b!==n.Z_OK)throw Error(m[b]); -this.header=new s;g.inflateGetHeader(this.strm,this.header)}function f(b,c){var d=new e(c);if(d.push(b,!0),d.err)throw d.msg;return d.result}var g=b("./zlib/inflate"),k=b("./utils/common"),l=b("./utils/strings"),n=b("./zlib/constants"),m=b("./zlib/messages"),p=b("./zlib/zstream"),s=b("./zlib/gzheader"),r=Object.prototype.toString;e.prototype.push=function(b,c){var d,e,f,m,p,s,y=this.strm,E=this.options.chunkSize,C=this.options.dictionary,F=!1;if(this.ended)return!1;e=c===~~c?c:!0===c?n.Z_FINISH:n.Z_NO_FLUSH; -"string"==typeof b?y.input=l.binstring2buf(b):"[object ArrayBuffer]"===r.call(b)?y.input=new Uint8Array(b):y.input=b;y.next_in=0;y.avail_in=y.input.length;do{if(0===y.avail_out&&(y.output=new k.Buf8(E),y.next_out=0,y.avail_out=E),d=g.inflate(y,n.Z_NO_FLUSH),d===n.Z_NEED_DICT&&C&&(s="string"==typeof C?l.string2buf(C):"[object ArrayBuffer]"===r.call(C)?new Uint8Array(C):C,d=g.inflateSetDictionary(this.strm,s)),d===n.Z_BUF_ERROR&&!0===F&&(d=n.Z_OK,F=!1),d!==n.Z_STREAM_END&&d!==n.Z_OK)return this.onEnd(d), +this.header=new r;g.inflateGetHeader(this.strm,this.header)}function f(b,c){var d=new e(c);if(d.push(b,!0),d.err)throw d.msg;return d.result}var g=b("./zlib/inflate"),k=b("./utils/common"),l=b("./utils/strings"),n=b("./zlib/constants"),m=b("./zlib/messages"),p=b("./zlib/zstream"),r=b("./zlib/gzheader"),s=Object.prototype.toString;e.prototype.push=function(b,c){var d,e,f,m,p,r,y=this.strm,E=this.options.chunkSize,C=this.options.dictionary,F=!1;if(this.ended)return!1;e=c===~~c?c:!0===c?n.Z_FINISH:n.Z_NO_FLUSH; +"string"==typeof b?y.input=l.binstring2buf(b):"[object ArrayBuffer]"===s.call(b)?y.input=new Uint8Array(b):y.input=b;y.next_in=0;y.avail_in=y.input.length;do{if(0===y.avail_out&&(y.output=new k.Buf8(E),y.next_out=0,y.avail_out=E),d=g.inflate(y,n.Z_NO_FLUSH),d===n.Z_NEED_DICT&&C&&(r="string"==typeof C?l.string2buf(C):"[object ArrayBuffer]"===s.call(C)?new Uint8Array(C):C,d=g.inflateSetDictionary(this.strm,r)),d===n.Z_BUF_ERROR&&!0===F&&(d=n.Z_OK,F=!1),d!==n.Z_STREAM_END&&d!==n.Z_OK)return this.onEnd(d), this.ended=!0,!1;y.next_out&&(0!==y.avail_out&&d!==n.Z_STREAM_END&&(0!==y.avail_in||e!==n.Z_FINISH&&e!==n.Z_SYNC_FLUSH)||("string"===this.options.to?(f=l.utf8border(y.output,y.next_out),m=y.next_out-f,p=l.buf2string(y.output,f),y.next_out=m,y.avail_out=E-m,m&&k.arraySet(y.output,y.output,f,m,0),this.onData(p)):this.onData(k.shrinkBuf(y.output,y.next_out))));0===y.avail_in&&0===y.avail_out&&(F=!0)}while((0>>6,c[k++]=128|63&d):65536>d?(c[k++]=224|d>>>12,c[k++]=128|d>>>6 2===k?31:3===k?15:7;1g?n[f++]=g:(g-=65536,n[f++]=55296|g>>10&1023,n[f++]=56320|1023&g)}return e(n,f)};d.utf8border=function(b,c){var d;c=c||b.length;c>b.length&&(c=b.length);for(d=c-1;0<=d&&128===(192&b[d]);)d--;return 0>d?c:0===d?c:d+m[b[d]]>c?d:c}},{"./common":3}],5:[function(b,c,d){c.exports=function(b,c,d,k){var l=65535&b|0;b=b>>>16&65535|0;for(var n=0;0!==d;){n=2E3d;d++){b=d; for(var e=0;8>e;e++)b=1&b?3988292384^b>>>1:b>>>1;c[d]=b}return c}();c.exports=function(b,c,d,l){d=l+d;for(b^=-1;l>>8^e[255&(b^c[l])];return b^-1}},{}],8:[function(b,c,d){function e(b,c){return b.msg=C[c],c}function f(b){for(var c=b.length;0<=--c;)b[c]=0}function g(b){var c=b.state,d=c.pending;d>b.avail_out&&(d=b.avail_out);0!==d&&(v.arraySet(b.output,c.pending_buf,c.pending_out,d,b.next_out),b.next_out+=d,c.pending_out+=d,b.total_out+=d,b.avail_out-=d,c.pending-=d,0===c.pending&&(c.pending_out= -0))}function k(b,c){D._tr_flush_block(b,0<=b.block_start?b.block_start:-1,b.strstart-b.block_start,c);b.block_start=b.strstart;g(b.strm)}function l(b,c){b.pending_buf[b.pending++]=c}function n(b,c){b.pending_buf[b.pending++]=c>>>8&255;b.pending_buf[b.pending++]=255&c}function m(b,c){var d,e,f=b.max_chain_length,g=b.strstart,k=b.prev_length,l=b.nice_match,n=b.strstart>b.w_size-S?b.strstart-(b.w_size-S):0,m=b.window,q=b.w_mask,p=b.prev,t=b.strstart+O,x=m[g+k-1],u=m[g+k];b.prev_length>=b.good_match&& -(f>>=2);l>b.lookahead&&(l=b.lookahead);do if(d=c,m[d+k]===u&&m[d+k-1]===x&&m[d]===m[g]&&m[++d]===m[g+1]){g+=2;d++;do;while(m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&gk){if(b.match_start=c,k=e,e>=l)break;x=m[g+k-1];u=m[g+k]}}while((c=p[c&q])>n&&0!==--f);return k<=b.lookahead?k:b.lookahead}function p(b){var c,d,e,f,g=b.w_size;do{if(f=b.window_size-b.lookahead-b.strstart,b.strstart>= +0))}function k(b,c){D._tr_flush_block(b,0<=b.block_start?b.block_start:-1,b.strstart-b.block_start,c);b.block_start=b.strstart;g(b.strm)}function l(b,c){b.pending_buf[b.pending++]=c}function n(b,c){b.pending_buf[b.pending++]=c>>>8&255;b.pending_buf[b.pending++]=255&c}function m(b,c){var d,e,f=b.max_chain_length,g=b.strstart,k=b.prev_length,l=b.nice_match,n=b.strstart>b.w_size-S?b.strstart-(b.w_size-S):0,m=b.window,q=b.w_mask,p=b.prev,t=b.strstart+O,G=m[g+k-1],C=m[g+k];b.prev_length>=b.good_match&& +(f>>=2);l>b.lookahead&&(l=b.lookahead);do if(d=c,m[d+k]===C&&m[d+k-1]===G&&m[d]===m[g]&&m[++d]===m[g+1]){g+=2;d++;do;while(m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&m[++g]===m[++d]&&gk){if(b.match_start=c,k=e,e>=l)break;G=m[g+k-1];C=m[g+k]}}while((c=p[c&q])>n&&0!==--f);return k<=b.lookahead?k:b.lookahead}function p(b){var c,d,e,f,g=b.w_size;do{if(f=b.window_size-b.lookahead-b.strstart,b.strstart>= g+(g-S)){v.arraySet(b.window,b.window,g,g,0);b.match_start-=g;b.strstart-=g;b.block_start-=g;c=d=b.hash_size;do e=b.head[--c],b.head[c]=e>=g?e-g:0;while(--d);c=d=g;do e=b.prev[--c],b.prev[c]=e>=g?e-g:0;while(--d);f+=g}if(0===b.strm.avail_in)break;c=b.strm;e=b.window;var k=b.strstart+b.lookahead,l=c.avail_in;if(d=(l>f&&(l=f),0===l?0:(c.avail_in-=l,v.arraySet(e,c.input,c.next_in,l,k),1===c.state.wrap?c.adler=y(c.adler,e,l,k):2===c.state.wrap&&(c.adler=E(c.adler,e,l,k)),c.next_in+=l,c.total_in+=l,l)), -b.lookahead+=d,b.lookahead+b.insert>=I){f=b.strstart-b.insert;b.ins_h=b.window[f];for(b.ins_h=(b.ins_h<=I&&(b.ins_h=(b.ins_h<< +b.lookahead+=d,b.lookahead+b.insert>=I){f=b.strstart-b.insert;b.ins_h=b.window[f];for(b.ins_h=(b.ins_h<=I&&(b.ins_h=(b.ins_h<< b.hash_shift^b.window[b.strstart+I-1])&b.hash_mask,d=b.prev[b.strstart&b.w_mask]=b.head[b.ins_h],b.head[b.ins_h]=b.strstart),0!==d&&b.strstart-d<=b.w_size-S&&(b.match_length=m(b,d)),b.match_length>=I)if(e=D._tr_tally(b,b.strstart-b.match_start,b.match_length-I),b.lookahead-=b.match_length,b.match_length<=b.max_lazy_match&&b.lookahead>=I){b.match_length--;do b.strstart++,b.ins_h=(b.ins_h<=I&&(b.ins_h=(b.ins_h<=b.match_length&&(b.strategy===R||b.match_length===I&&4096= I&&b.match_length<=b.prev_length){f=b.strstart+b.lookahead-I;e=D._tr_tally(b,b.strstart-1-b.prev_match,b.prev_length-I);b.lookahead-=b.prev_length-1;b.prev_length-=2;do++b.strstart<=f&&(b.ins_h=(b.ins_h<c.wrap&&(c.wrap=-c.wrap),c.status=c.wrap?da:ba,b.adler=2===c.wrap?0:1,c.last_flush=F,D._tr_init(c),H):e(b,L)}function u(b){var c=x(b);c===H&&(b=b.state,b.window_size=2*b.w_size,f(b.head),b.max_lazy_match=z[b.level].max_lazy,b.good_match=z[b.level].good_length,b.nice_match=z[b.level].nice_length,b.max_chain_length=z[b.level].max_chain,b.strstart=0,b.block_start= +this.hash_mask=this.hash_bits=this.hash_size=this.ins_h=0;this.dyn_ltree=new v.Buf16(2*Z);this.dyn_dtree=new v.Buf16(2*(2*N+1));this.bl_tree=new v.Buf16(2*(2*H+1));f(this.dyn_ltree);f(this.dyn_dtree);f(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new v.Buf16(M+1);this.heap=new v.Buf16(2*Y+1);f(this.heap);this.heap_max=this.heap_len=0;this.depth=new v.Buf16(2*Y+1);f(this.depth);this.bi_valid=this.bi_buf=this.insert=this.matches=this.static_len=this.opt_len=this.d_buf=this.last_lit= +this.lit_bufsize=this.l_buf=0}function x(b){var c;return b&&b.state?(b.total_in=b.total_out=0,b.data_type=aa,c=b.state,c.pending=0,c.pending_out=0,0>c.wrap&&(c.wrap=-c.wrap),c.status=c.wrap?da:ba,b.adler=2===c.wrap?0:1,c.last_flush=F,D._tr_init(c),J):e(b,L)}function u(b){var c=x(b);c===J&&(b=b.state,b.window_size=2*b.w_size,f(b.head),b.max_lazy_match=z[b.level].max_lazy,b.good_match=z[b.level].good_length,b.nice_match=z[b.level].nice_length,b.max_chain_length=z[b.level].max_chain,b.strstart=0,b.block_start= 0,b.lookahead=0,b.insert=0,b.match_length=b.prev_length=I-1,b.match_available=0,b.ins_h=0);return c}function A(b,c,d,f,g,k){if(!b)return L;var l=1;if(c===K&&(c=6),0>f?(l=0,f=-f):15g||g>B||d!==V||8>f||15c||9k||k>T)return e(b,L);8===f&&(f=9);var n=new t;return b.state=n,n.strm=b,n.wrap=l,n.gzhead=null,n.w_bits=f,n.w_size=1<b.pending_buf_size-5&&(d=b.pending_buf_size-5);;){if(1>=b.lookahead){if(p(b),0===b.lookahead&&c===F)return P;if(0===b.lookahead)break}b.strstart+=b.lookahead;b.lookahead=0;var e=b.block_start+d;if((0===b.strstart||b.strstart>=e)&&(b.lookahead=b.strstart-e,b.strstart=e,k(b,!1),0===b.strm.avail_out)||b.strstart-b.block_start>=b.w_size-S&&(k(b,!1),0===b.strm.avail_out))return P}return b.insert=0,c===G?(k(b,!0),0===b.strm.avail_out?$:U):(b.strstart>b.block_start&&k(b,!1),P)}),new q(4,4,8, -4,s),new q(4,5,16,8,s),new q(4,6,32,32,s),new q(4,4,16,16,r),new q(8,16,32,32,r),new q(8,16,128,128,r),new q(8,32,128,256,r),new q(32,128,258,1024,r),new q(32,258,258,4096,r)];d.deflateInit=function(b,c){return A(b,c,V,15,8,0)};d.deflateInit2=A;d.deflateReset=u;d.deflateResetKeep=x;d.deflateSetHeader=function(b,c){return b&&b.state?2!==b.state.wrap?L:(b.state.gzhead=c,H):L};d.deflate=function(b,c){var d,m,q,t;if(!b||!b.state||5c)return b?e(b,L):L;if(m=b.state,!b.output||!b.input&&0!==b.avail_in|| +4,r),new q(4,5,16,8,r),new q(4,6,32,32,r),new q(4,4,16,16,s),new q(8,16,32,32,s),new q(8,16,128,128,s),new q(8,32,128,256,s),new q(32,128,258,1024,s),new q(32,258,258,4096,s)];d.deflateInit=function(b,c){return A(b,c,V,15,8,0)};d.deflateInit2=A;d.deflateReset=u;d.deflateResetKeep=x;d.deflateSetHeader=function(b,c){return b&&b.state?2!==b.state.wrap?L:(b.state.gzhead=c,J):L};d.deflate=function(b,c){var d,m,q,t;if(!b||!b.state||5c)return b?e(b,L):L;if(m=b.state,!b.output||!b.input&&0!==b.avail_in|| 666===m.status&&c!==G)return e(b,0===b.avail_out?-5:L);if(m.strm=b,d=m.last_flush,m.last_flush=c,m.status===da)2===m.wrap?(b.adler=0,l(m,31),l(m,139),l(m,8),m.gzhead?(l(m,(m.gzhead.text?1:0)+(m.gzhead.hcrc?2:0)+(m.gzhead.extra?4:0)+(m.gzhead.name?8:0)+(m.gzhead.comment?16:0)),l(m,255&m.gzhead.time),l(m,m.gzhead.time>>8&255),l(m,m.gzhead.time>>16&255),l(m,m.gzhead.time>>24&255),l(m,9===m.level?2:2<=m.strategy||2>m.level?4:0),l(m,255&m.gzhead.os),m.gzhead.extra&&m.gzhead.extra.length&&(l(m,255&m.gzhead.extra.length), l(m,m.gzhead.extra.length>>8&255)),m.gzhead.hcrc&&(b.adler=E(b.adler,m.pending_buf,m.pending,0)),m.gzindex=0,m.status=69):(l(m,0),l(m,0),l(m,0),l(m,0),l(m,0),l(m,9===m.level?2:2<=m.strategy||2>m.level?4:0),l(m,3),m.status=ba)):(q=V+(m.w_bits-8<<4)<<8,t=2<=m.strategy||2>m.level?0:6>m.level?1:6===m.level?2:3,q|=t<<6,0!==m.strstart&&(q|=32),m.status=ba,n(m,q+(31-q%31)),0!==m.strstart&&(n(m,b.adler>>>16),n(m,65535&b.adler)),b.adler=1);if(69===m.status)if(m.gzhead.extra){for(q=m.pending;m.gzindex<(65535& m.gzhead.extra.length)&&(m.pending!==m.pending_buf_size||(m.gzhead.hcrc&&m.pending>q&&(b.adler=E(b.adler,m.pending_buf,m.pending-q,q)),g(b),q=m.pending,m.pending!==m.pending_buf_size));)l(m,255&m.gzhead.extra[m.gzindex]),m.gzindex++;m.gzhead.hcrc&&m.pending>q&&(b.adler=E(b.adler,m.pending_buf,m.pending-q,q));m.gzindex===m.gzhead.extra.length&&(m.gzindex=0,m.status=73)}else m.status=73;if(73===m.status)if(m.gzhead.name){q=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>q&& (b.adler=E(b.adler,m.pending_buf,m.pending-q,q)),g(b),q=m.pending,m.pending===m.pending_buf_size)){t=1;break}t=m.gzindexq&&(b.adler=E(b.adler,m.pending_buf,m.pending-q,q));0===t&&(m.gzindex=0,m.status=91)}else m.status=91;if(91===m.status)if(m.gzhead.comment){q=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>q&&(b.adler=E(b.adler,m.pending_buf,m.pending-q,q)),g(b), q=m.pending,m.pending===m.pending_buf_size)){t=1;break}t=m.gzindexq&&(b.adler=E(b.adler,m.pending_buf,m.pending-q,q));0===t&&(m.status=103)}else m.status=103;if(103===m.status&&(m.gzhead.hcrc?(m.pending+2>m.pending_buf_size&&g(b),m.pending+2<=m.pending_buf_size&&(l(m,255&b.adler),l(m,b.adler>>8&255),b.adler=0,m.status=ba)):m.status=ba),0!==m.pending){if(g(b),0===b.avail_out)return m.last_flush= --1,H}else if(0===b.avail_in&&(c<<1)-(4=I&&0m.lookahead&&(m.match_length=m.lookahead)}if(m.match_length>= -I?(x=D._tr_tally(m,1,m.match_length-I),m.lookahead-=m.match_length,m.strstart+=m.match_length,m.match_length=0):(x=D._tr_tally(m,0,m.window[m.strstart]),m.lookahead--,m.strstart++),x&&(k(m,!1),0===m.strm.avail_out)){x=P;break a}}x=(m.insert=0,c===G?(k(m,!0),0===m.strm.avail_out?$:U):m.last_lit&&(k(m,!1),0===m.strm.avail_out)?P:X)}else x=z[m.level].func(m,c);if(x!==$&&x!==U||(m.status=666),x===P||x===$)return 0===b.avail_out&&(m.last_flush=-1),H;if(x===X&&(1===c?D._tr_align(m):5!==c&&(D._tr_stored_block(m, -0,0,!1),3===c&&(f(m.head),0===m.lookahead&&(m.strstart=0,m.block_start=0,m.insert=0))),g(b),0===b.avail_out))return m.last_flush=-1,H}return c!==G?H:0>=m.wrap?1:(2===m.wrap?(l(m,255&b.adler),l(m,b.adler>>8&255),l(m,b.adler>>16&255),l(m,b.adler>>24&255),l(m,255&b.total_in),l(m,b.total_in>>8&255),l(m,b.total_in>>16&255),l(m,b.total_in>>24&255)):(n(m,b.adler>>>16),n(m,65535&b.adler)),g(b),0=d.w_size&&(0===k&&(f(d.head),d.strstart=0,d.block_start=0,d.insert=0),l=new v.Buf8(d.w_size),v.arraySet(l,c,e-d.w_size,d.w_size,0),c=l,e=d.w_size);l=b.avail_in;n=b.next_in;m=b.input;b.avail_in=e;b.next_in= -0;b.input=c;for(p(d);d.lookahead>=I;){e=d.strstart;g=d.lookahead-(I-1);do d.ins_h=(d.ins_h<=I&&0m.lookahead&&(m.match_length=m.lookahead)}if(m.match_length>= +I?(C=D._tr_tally(m,1,m.match_length-I),m.lookahead-=m.match_length,m.strstart+=m.match_length,m.match_length=0):(C=D._tr_tally(m,0,m.window[m.strstart]),m.lookahead--,m.strstart++),C&&(k(m,!1),0===m.strm.avail_out)){C=P;break a}}C=(m.insert=0,c===G?(k(m,!0),0===m.strm.avail_out?$:U):m.last_lit&&(k(m,!1),0===m.strm.avail_out)?P:X)}else C=z[m.level].func(m,c);if(C!==$&&C!==U||(m.status=666),C===P||C===$)return 0===b.avail_out&&(m.last_flush=-1),J;if(C===X&&(1===c?D._tr_align(m):5!==c&&(D._tr_stored_block(m, +0,0,!1),3===c&&(f(m.head),0===m.lookahead&&(m.strstart=0,m.block_start=0,m.insert=0))),g(b),0===b.avail_out))return m.last_flush=-1,J}return c!==G?J:0>=m.wrap?1:(2===m.wrap?(l(m,255&b.adler),l(m,b.adler>>8&255),l(m,b.adler>>16&255),l(m,b.adler>>24&255),l(m,255&b.total_in),l(m,b.total_in>>8&255),l(m,b.total_in>>16&255),l(m,b.total_in>>24&255)):(n(m,b.adler>>>16),n(m,65535&b.adler)),g(b),0=d.w_size&&(0===k&&(f(d.head),d.strstart=0,d.block_start=0,d.insert=0),l=new v.Buf8(d.w_size),v.arraySet(l,c,e-d.w_size,d.w_size,0),c=l,e=d.w_size);l=b.avail_in;n=b.next_in;m=b.input;b.avail_in=e;b.next_in= +0;b.input=c;for(p(d);d.lookahead>=I;){e=d.strstart;g=d.lookahead-(I-1);do d.ins_h=(d.ins_h<A&&(u+=L[k++]<>>24,u>>>=C,A-=C,C=E>>>16&255,0===C)K[n++]=65535&E;else{if(!(16&C)){if(0===(64&C)){E=z[(65535&E)+(u&(1<>>=C,A-=C);15>A&&(u+=L[k++]<>>24,u>>>=C,A-=C,C=E>>>16&255, -!(16&C)){if(0===(64&C)){E=v[(65535&E)+(u&(1<s){b.msg="invalid distance too far back";d.mode=30;break a}if(u>>>=C,A-=C,C=n-m,G>C){if(C=G-C,C>q&&d.sane){b.msg="invalid distance too far back";d.mode=30;break a}if(E=0,H=x,0===t){if(E+=r-C,C>3;k-=F;A-=F<<3;b.next_in=k;b.next_out=n;b.avail_in=k>>24&255)+(b>>>8&65280)+((65280&b)<<8)+((255&b)<<24)}function f(){this.mode=0;this.last=!1;this.wrap=0;this.havedict=!1;this.total=this.check=this.dmax=this.flags=0;this.head=null;this.wnext=this.whave=this.wsize=this.wbits=0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new r.Buf16(320);this.work= -new r.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function g(b){var c;return b&&b.state?(c=b.state,b.total_in=b.total_out=c.total=0,b.msg="",c.wrap&&(b.adler=1&c.wrap),c.mode=v,c.last=0,c.havedict=0,c.dmax=32768,c.head=null,c.hold=0,c.bits=0,c.lencode=c.lendyn=new r.Buf32(D),c.distcode=c.distdyn=new r.Buf32(y),c.sane=1,c.back=-1,A):z}function k(b){var c;return b&&b.state?(c=b.state,c.wsize=0,c.whave=0,c.wnext=0,g(b)):z}function l(b,c){var d,e;return b&&b.state?(e=b.state, -0>c?(d=0,c=-c):(d=(c>>4)+1,48>c&&(c&=15)),c&&(8>c||15=b.wsize?(r.arraySet(b.window,c,d-b.wsize,b.wsize,0),b.wnext=0,b.whave=b.wsize):(f=b.wsize-b.wnext,f>e&&(f=e),r.arraySet(b.window,c,d- -e,f,b.wnext),e-=f,e?(r.arraySet(b.window,c,d-e,e,0),b.wnext=e,b.whave=b.wsize):(b.wnext+=f,b.wnext===b.wsize&&(b.wnext=0),b.whaver){b.msg="invalid distance too far back";d.mode=30;break a}if(u>>>=C,A-=C,C=n-m,G>C){if(C=G-C,C>q&&d.sane){b.msg="invalid distance too far back";d.mode=30;break a}if(E=0,J=x,0===t){if(E+=s-C,C>3;k-=F;A-=F<<3;b.next_in=k;b.next_out=n;b.avail_in=k>>24&255)+(b>>>8&65280)+((65280&b)<<8)+((255&b)<<24)}function f(){this.mode=0;this.last=!1;this.wrap=0;this.havedict=!1;this.total=this.check=this.dmax=this.flags=0;this.head=null;this.wnext=this.whave=this.wsize=this.wbits=0;this.window=null;this.extra=this.offset=this.length=this.bits=this.hold=0;this.distcode=this.lencode=null;this.have=this.ndist=this.nlen=this.ncode=this.distbits=this.lenbits=0;this.next=null;this.lens=new s.Buf16(320);this.work= +new s.Buf16(288);this.distdyn=this.lendyn=null;this.was=this.back=this.sane=0}function g(b){var c;return b&&b.state?(c=b.state,b.total_in=b.total_out=c.total=0,b.msg="",c.wrap&&(b.adler=1&c.wrap),c.mode=v,c.last=0,c.havedict=0,c.dmax=32768,c.head=null,c.hold=0,c.bits=0,c.lencode=c.lendyn=new s.Buf32(D),c.distcode=c.distdyn=new s.Buf32(y),c.sane=1,c.back=-1,A):z}function k(b){var c;return b&&b.state?(c=b.state,c.wsize=0,c.whave=0,c.wnext=0,g(b)):z}function l(b,c){var d,e;return b&&b.state?(e=b.state, +0>c?(d=0,c=-c):(d=(c>>4)+1,48>c&&(c&=15)),c&&(8>c||15=b.wsize?(s.arraySet(b.window,c,d-b.wsize,b.wsize,0),b.wnext=0,b.whave=b.wsize):(f=b.wsize-b.wnext,f>e&&(f=e),s.arraySet(b.window,c,d- +e,f,b.wnext),e-=f,e?(s.arraySet(b.window,c,d-e,e,0),b.wnext=e,b.whave=b.wsize):(b.wnext+=f,b.wnext===b.wsize&&(b.wnext=0),b.whaveB;){if(0===n)break a;n--;y+=f[k++]<>>8&255;d.check=t(d.check,Q,2,0);B=y=0;d.mode=2;break}if(d.flags=0,d.head&&(d.head.done=!1),!(1& d.wrap)||(((255&y)<<8)+(y>>8))%31){b.msg="incorrect header check";d.mode=30;break}if(8!==(15&y)){b.msg="unknown compression method";d.mode=30;break}if(y>>>=4,B-=4,P=(15&y)+8,0===d.wbits)d.wbits=P;else if(P>d.wbits){b.msg="invalid window size";d.mode=30;break}d.dmax=1<B;){if(0===n)break a;n--;y+=f[k++]<>8&1);512&d.flags&&(Q[0]=255&y,Q[1]=y>>>8&255,d.check=t(d.check,Q,2,0));B=y=0;d.mode=3;case 3:for(;32>B;){if(0===n)break a;n--;y+=f[k++]<>>8&255,Q[2]=y>>>16&255,Q[3]=y>>>24&255,d.check=t(d.check,Q,4,0));B=y=0;d.mode=4;case 4:for(;16>B;){if(0===n)break a;n--;y+=f[k++]<>8);512&d.flags&&(Q[0]=255&y,Q[1]=y>>>8&255,d.check=t(d.check,Q,2,0));B=y=0;d.mode= -5;case 5:if(1024&d.flags){for(;16>B;){if(0===n)break a;n--;y+=f[k++]<>>8&255,d.check=t(d.check,Q,2,0));B=y=0}else d.head&&(d.head.extra=null);d.mode=6;case 6:if(1024&d.flags&&(J=d.length,J>n&&(J=n),J&&(d.head&&(P=d.head.extra_len-d.length,d.head.extra||(d.head.extra=Array(d.head.extra_len)),r.arraySet(d.head.extra,f,k,J,P)),512&d.flags&&(d.check=t(d.check,f,J,k)),n-=J,k+=J,d.length-=J),d.length))break a;d.length=0;d.mode= -7;case 7:if(2048&d.flags){if(0===n)break a;J=0;do P=f[k+J++],d.head&&P&&65536>d.length&&(d.head.name+=String.fromCharCode(P));while(P&&Jd.length&&(d.head.comment+=String.fromCharCode(P));while(P&&JB;){if(0===n)break a;n--;y+=f[k++]<>>8&255,d.check=t(d.check,Q,2,0));B=y=0}else d.head&&(d.head.extra=null);d.mode=6;case 6:if(1024&d.flags&&(H=d.length,H>n&&(H=n),H&&(d.head&&(P=d.head.extra_len-d.length,d.head.extra||(d.head.extra=Array(d.head.extra_len)),s.arraySet(d.head.extra,f,k,H,P)),512&d.flags&&(d.check=t(d.check,f,H,k)),n-=H,k+=H,d.length-=H),d.length))break a;d.length=0;d.mode= +7;case 7:if(2048&d.flags){if(0===n)break a;H=0;do P=f[k+H++],d.head&&P&&65536>d.length&&(d.head.name+=String.fromCharCode(P));while(P&&Hd.length&&(d.head.comment+=String.fromCharCode(P));while(P&&HB;){if(0===n)break a;n--;y+=f[k++]<>9&1,d.head.done=!0);b.adler=d.check=0;d.mode=12;break;case 10:for(;32>B;){if(0===n)break a;n--;y+=f[k++]<>>= -7&B;B-=7&B;d.mode=27;break}for(;3>B;){if(0===n)break a;n--;y+=f[k++]<>>=1,B-=1,3&y){case 0:d.mode=14;break;case 1:M=d;if(E){p=new r.Buf32(512);s=new r.Buf32(32);for(O=0;144>O;)M.lens[O++]=8;for(;256>O;)M.lens[O++]=9;for(;280>O;)M.lens[O++]=7;for(;288>O;)M.lens[O++]=8;u(1,M.lens,0,288,p,0,M.work,{bits:9});for(O=0;32>O;)M.lens[O++]=5;u(2,M.lens,0,32,s,0,M.work,{bits:5});E=!1}M.lencode=p;M.lenbits=9;M.distcode=s;M.distbits=5;if(d.mode=20,6===c){y>>>=2;B-=2;break a}break;case 2:d.mode= -17;break;case 3:b.msg="invalid block type",d.mode=30}y>>>=2;B-=2;break;case 14:y>>>=7&B;for(B-=7&B;32>B;){if(0===n)break a;n--;y+=f[k++]<>>16^65535)){b.msg="invalid stored block lengths";d.mode=30;break}if(d.length=65535&y,y=0,B=0,d.mode=15,6===c)break a;case 15:d.mode=16;case 16:if(J=d.length){if(J>n&&(J=n),J>D&&(J=D),0===J)break a;r.arraySet(g,f,k,J,l);n-=J;k+=J;D-=J;l+=J;d.length-=J;break}d.mode=12;break;case 17:for(;14>B;){if(0===n)break a;n--;y+=f[k++]<B;){if(0===n)break a;n--;y+=f[k++]<>>=1,B-=1,3&y){case 0:d.mode=14;break;case 1:M=d;if(E){p=new s.Buf32(512);r=new s.Buf32(32);for(O=0;144>O;)M.lens[O++]=8;for(;256>O;)M.lens[O++]=9;for(;280>O;)M.lens[O++]=7;for(;288>O;)M.lens[O++]=8;u(1,M.lens,0,288,p,0,M.work,{bits:9});for(O=0;32>O;)M.lens[O++]=5;u(2,M.lens,0,32,r,0,M.work,{bits:5});E=!1}M.lencode=p;M.lenbits=9;M.distcode=r;M.distbits=5;if(d.mode=20,6===c){y>>>=2;B-=2;break a}break;case 2:d.mode= +17;break;case 3:b.msg="invalid block type",d.mode=30}y>>>=2;B-=2;break;case 14:y>>>=7&B;for(B-=7&B;32>B;){if(0===n)break a;n--;y+=f[k++]<>>16^65535)){b.msg="invalid stored block lengths";d.mode=30;break}if(d.length=65535&y,y=0,B=0,d.mode=15,6===c)break a;case 15:d.mode=16;case 16:if(H=d.length){if(H>n&&(H=n),H>D&&(H=D),0===H)break a;s.arraySet(g,f,k,H,l);n-=H;k+=H;D-=H;l+=H;d.length-=H;break}d.mode=12;break;case 17:for(;14>B;){if(0===n)break a;n--;y+=f[k++]<>>=5,B-=5,d.ndist=(31&y)+1,y>>>=5,B-=5,d.ncode=(15&y)+4,y>>>=4,B-=4,286B;){if(0===n)break a;n--;y+=f[k++]<>>=3;B-=3}for(;19>d.have;)d.lens[ha[d.have++]]=0;if(d.lencode=d.lendyn,d.lenbits=7,$={bits:d.lenbits},X=u(0,d.lens,0,19,d.lencode,0,d.work,$),d.lenbits=$.bits,X){b.msg="invalid code lengths set";d.mode=30;break}d.have= -0;d.mode=19;case 19:for(;d.have>>24,O=65535&U,!(I<=B);){if(0===n)break a;n--;y+=f[k++]<O)y>>>=I,B-=I,d.lens[d.have++]=O;else{if(16===O){for(M=I+2;B>>=I,B-=I,0===d.have){b.msg="invalid bit length repeat";d.mode=30;break}P=d.lens[d.have-1];J=3+(3&y);y>>>=2;B-=2}else if(17===O){for(M=I+3;B>>=I;B-=I;P=0;J=3+(7&y);y>>>=3;B-=3}else{for(M= -I+7;B>>=I;B-=I;P=0;J=11+(127&y);y>>>=7;B-=7}if(d.have+J>d.nlen+d.ndist){b.msg="invalid bit length repeat";d.mode=30;break}for(;J--;)d.lens[d.have++]=P}}if(30===d.mode)break;if(0===d.lens[256]){b.msg="invalid code -- missing end-of-block";d.mode=30;break}if(d.lenbits=9,$={bits:d.lenbits},X=u(1,d.lens,0,d.nlen,d.lencode,0,d.work,$),d.lenbits=$.bits,X){b.msg="invalid literal/lengths set";d.mode=30;break}if(d.distbits=6,d.distcode=d.distdyn,$={bits:d.distbits}, +0;d.mode=19;case 19:for(;d.have>>24,O=65535&U,!(I<=B);){if(0===n)break a;n--;y+=f[k++]<O)y>>>=I,B-=I,d.lens[d.have++]=O;else{if(16===O){for(M=I+2;B>>=I,B-=I,0===d.have){b.msg="invalid bit length repeat";d.mode=30;break}P=d.lens[d.have-1];H=3+(3&y);y>>>=2;B-=2}else if(17===O){for(M=I+3;B>>=I;B-=I;P=0;H=3+(7&y);y>>>=3;B-=3}else{for(M= +I+7;B>>=I;B-=I;P=0;H=11+(127&y);y>>>=7;B-=7}if(d.have+H>d.nlen+d.ndist){b.msg="invalid bit length repeat";d.mode=30;break}for(;H--;)d.lens[d.have++]=P}}if(30===d.mode)break;if(0===d.lens[256]){b.msg="invalid code -- missing end-of-block";d.mode=30;break}if(d.lenbits=9,$={bits:d.lenbits},X=u(1,d.lens,0,d.nlen,d.lencode,0,d.work,$),d.lenbits=$.bits,X){b.msg="invalid literal/lengths set";d.mode=30;break}if(d.distbits=6,d.distcode=d.distdyn,$={bits:d.distbits}, X=u(2,d.lens,d.nlen,d.ndist,d.distcode,0,d.work,$),d.distbits=$.bits,X){b.msg="invalid distances set";d.mode=30;break}if(d.mode=20,6===c)break a;case 20:d.mode=21;case 21:if(6<=n&&258<=D){b.next_out=l;b.avail_out=D;b.next_in=k;b.avail_in=n;d.hold=y;d.bits=B;x(b,N);l=b.next_out;g=b.output;D=b.avail_out;k=b.next_in;f=b.input;n=b.avail_in;y=d.hold;B=d.bits;12===d.mode&&(d.back=-1);break}for(d.back=0;U=d.lencode[y&(1<>>24,M=U>>>16&255,O=65535&U,!(I<=B);){if(0===n)break a;n--;y+=f[k++]<< B;B+=8}if(M&&0===(240&M)){S=I;da=M;for(ba=O;U=d.lencode[ba+((y&(1<>S)],I=U>>>24,M=U>>>16&255,O=65535&U,!(S+I<=B);){if(0===n)break a;n--;y+=f[k++]<>>=S;B-=S;d.back+=S}if(y>>>=I,B-=I,d.back+=I,d.length=O,0===M){d.mode=26;break}if(32&M){d.back=-1;d.mode=12;break}if(64&M){b.msg="invalid literal/length code";d.mode=30;break}d.extra=15&M;d.mode=22;case 22:if(d.extra){for(M=d.extra;B>>=d.extra;B-=d.extra;d.back+= d.extra}d.was=d.length;d.mode=23;case 23:for(;U=d.distcode[y&(1<>>24,M=U>>>16&255,O=65535&U,!(I<=B);){if(0===n)break a;n--;y+=f[k++]<>S)],I=U>>>24,M=U>>>16&255,O=65535&U,!(S+I<=B);){if(0===n)break a;n--;y+=f[k++]<>>=S;B-=S;d.back+=S}if(y>>>=I,B-=I,d.back+=I,64&M){b.msg="invalid distance code";d.mode=30;break}d.offset=O;d.extra=15&M;d.mode=24;case 24:if(d.extra){for(M=d.extra;B>>=d.extra;B-=d.extra;d.back+=d.extra}if(d.offset>d.dmax){b.msg="invalid distance too far back";d.mode=30;break}d.mode=25;case 25:if(0===D)break a;if(J=N-D,d.offset>J){if(J=d.offset-J,J>d.whave&&d.sane){b.msg="invalid distance too far back";d.mode=30;break}J>d.wnext?(J-=d.wnext,Z=d.wsize-J):Z=d.wnext-J;J>d.length&&(J=d.length);M=d.window}else M=g,Z=l-d.offset,J=d.length;J>D&&(J=D);D-=J;d.length-=J;do g[l++]=M[Z++];while(--J);0===d.length&&(d.mode= +n--;y+=f[k++]<>>=d.extra;B-=d.extra;d.back+=d.extra}if(d.offset>d.dmax){b.msg="invalid distance too far back";d.mode=30;break}d.mode=25;case 25:if(0===D)break a;if(H=N-D,d.offset>H){if(H=d.offset-H,H>d.whave&&d.sane){b.msg="invalid distance too far back";d.mode=30;break}H>d.wnext?(H-=d.wnext,Z=d.wsize-H):Z=d.wnext-H;H>d.length&&(H=d.length);M=d.window}else M=g,Z=l-d.offset,H=d.length;H>D&&(H=D);D-=H;d.length-=H;do g[l++]=M[Z++];while(--H);0===d.length&&(d.mode= 21);break;case 26:if(0===D)break a;g[l++]=d.length;D--;d.mode=21;break;case 27:if(d.wrap){for(;32>B;){if(0===n)break a;n--;y|=f[k++]<B;){if(0===n)break a;n--;y+=f[k++]<d.mode&&(27>d.mode||4!==c))&&m(b,b.output,b.next_out,N-b.avail_out)?(d.mode=31,-4):(Y-=b.avail_in,N-=b.avail_out,b.total_in+=Y,b.total_out+=N,d.total+=N,d.wrap&&N&&(b.adler=d.check=d.flags?t(d.check,g,N,b.next_out-N):q(d.check,g,N,b.next_out-N)),b.data_type=d.bits+(d.last?64:0)+(12===d.mode?128:0)+(20===d.mode||15=== d.mode?256:0),(0===Y&&0===N||4===c)&&X===A&&(X=-5),X)};d.inflateEnd=function(b){if(!b||!b.state)return z;var c=b.state;return c.window&&(c.window=null),b.state=null,A};d.inflateGetHeader=function(b,c){var d;return b&&b.state?(d=b.state,0===(2&d.wrap)?z:(d.head=c,c.done=!1,A)):z};d.inflateSetDictionary=function(b,c){var d,e,f=c.length;return b&&b.state?(d=b.state,0!==d.wrap&&11!==d.mode?z:11===d.mode&&(e=1,e=q(e,c,f,0),e!==d.check)?-3:m(b,c,f,f)?(d.mode=31,-4):(d.havedict=1,A)):z};d.inflateInfo="pako inflate (from Nodeca project)"}, {"../utils/common":3,"./adler32":5,"./crc32":7,"./inffast":10,"./inftrees":12}],12:[function(b,c,d){var e=b("../utils/common"),f=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],k=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24, -25,25,26,26,27,27,28,28,29,29,64,64];c.exports=function(b,c,d,s,r,q,t,x){var u,A,z,v,D,y,E,C;v=x.bits;for(var F=0,G=0,H=0,L=0,K=0,R=0,T=0,aa=0,V=0,B=null,Y=0,N=new e.Buf16(16),R=new e.Buf16(16),J=null,Z=0,F=0;15>=F;F++)N[F]=0;for(G=0;GL&&(K=L),0===L)return r[q++]=20971520,r[q++]=20971520,x.bits=1,0;for(H=1;H=F;F++)if(u<<=1,u-=N[F],0>u)return-1;if(0F;F++)R[F+ -1]=R[F]+N[F];for(G=0;GD?(E=J[Z+t[G]],C=B[Y+t[G]]):(E=96,C=0);u=1<>T)+A]=y<<24|E<<16|C|0;while(0!==A);for(u=1<>=1;if(0!==u?(V&=u-1,V+=u):V=0,G++,0===--N[F]){if(F===L)break;F=c[d+t[G]]}if(F>K&&(V&s)!==z){0===T&&(T=K);v+= -H;R=F-T;for(u=1<=u));)R++,u<<=1;if(aa+=1<=F;F++)N[F]=0;for(G=0;GL&&(K=L),0===L)return s[q++]=20971520,s[q++]=20971520,x.bits=1,0;for(J=1;J=F;F++)if(u<<=1,u-=N[F],0>u)return-1;if(0F;F++)R[F+ +1]=R[F]+N[F];for(G=0;GD?(E=H[Z+t[G]],C=B[Y+t[G]]):(E=96,C=0);u=1<>T)+A]=y<<24|E<<16|C|0;while(0!==A);for(u=1<>=1;if(0!==u?(V&=u-1,V+=u):V=0,G++,0===--N[F]){if(F===L)break;F=c[d+t[G]]}if(F>K&&(V&r)!==z){0===T&&(T=K);v+= +J;R=F-T;for(u=1<=u));)R++,u<<=1;if(aa+=1<>>8&255}function l(b,c,d){b.bi_valid>aa-d?(b.bi_buf|=c<>aa-b.bi_valid,b.bi_valid+=d-aa):(b.bi_buf|=c<>>=1,d<<=1;while(0<--c);return d>>>1}function p(b,c,d){var e,f=Array(T+1),g=0;for(e=1;e<=T;e++)f[e]=g=g+d[e-1]<<1;for(d=0;d<=c;d++)e=b[2*d+1],0!==e&&(b[2*d]=m(f[e]++,e))}function s(b){var c;for(c=0;ce?da[e]:da[256+(e>>>7)], +0;do d|=1&b,b>>>=1,d<<=1;while(0<--c);return d>>>1}function p(b,c,d){var e,f=Array(T+1),g=0;for(e=1;e<=T;e++)f[e]=g=g+d[e-1]<<1;for(d=0;d<=c;d++)e=b[2*d+1],0!==e&&(b[2*d]=m(f[e]++,e))}function r(b){var c;for(c=0;ce?da[e]:da[256+(e>>>7)], n(b,g,d),k=Z[g],0!==k&&(e-=X[g],l(b,e,k)));while(mb.heap_len;)f=b.heap[++b.heap_len]=2>n?++n:0,g[2*f]=1,b.depth[f]=0,b.opt_len--,k&&(b.static_len-=e[2*f+1]);c.max_code=n;for(d=b.heap_len>>1;1<=d;d--)t(b,g,d);f=l;do d=b.heap[1],b.heap[1]=b.heap[b.heap_len--], -t(b,g,1),e=b.heap[1],b.heap[--b.heap_max]=d,b.heap[--b.heap_max]=e,g[2*f]=g[2*d]+g[2*e],b.depth[f]=(b.depth[d]>=b.depth[e]?b.depth[d]:b.depth[e])+1,g[2*d+1]=g[2*e+1]=f,b.heap[1]=f++,t(b,g,1);while(2<=b.heap_len);b.heap[--b.heap_max]=b.heap[1];var m,q,k=c.dyn_tree,l=c.max_code,x=c.stat_desc.static_tree,u=c.stat_desc.has_stree,s=c.stat_desc.extra_bits,r=c.stat_desc.extra_base,z=c.stat_desc.max_length,v=0;for(e=0;e<=T;e++)b.bl_count[e]=0;k[2*b.heap[b.heap_max]+1]=0;for(d=b.heap_max+1;dz&&(e=z,v++),k[2*f+1]=e,f>l||(b.bl_count[e]++,m=0,f>=r&&(m=s[f-r]),q=k[2*f],b.opt_len+=q*(e+m),u&&(b.static_len+=q*(x[2*f+1]+m)));if(0!==v){do{for(e=z-1;0===b.bl_count[e];)e--;b.bl_count[e]--;b.bl_count[e+1]+=2;b.bl_count[z]--;v-=2}while(0l||(k[2*m+1]!==e&&(b.opt_len+=(e-k[2*m+1])*k[2*m],k[2*m+1]=e),f--)}p(g,n,b.bl_count)}function A(b,c,d){var e,f,g=-1,k=c[1],l=0,n=7,m=4;0===k&&(n=138,m=3);c[2*(d+1)+1]=65535;for(e= +t(b,g,1),e=b.heap[1],b.heap[--b.heap_max]=d,b.heap[--b.heap_max]=e,g[2*f]=g[2*d]+g[2*e],b.depth[f]=(b.depth[d]>=b.depth[e]?b.depth[d]:b.depth[e])+1,g[2*d+1]=g[2*e+1]=f,b.heap[1]=f++,t(b,g,1);while(2<=b.heap_len);b.heap[--b.heap_max]=b.heap[1];var m,q,k=c.dyn_tree,l=c.max_code,r=c.stat_desc.static_tree,x=c.stat_desc.has_stree,u=c.stat_desc.extra_bits,s=c.stat_desc.extra_base,z=c.stat_desc.max_length,v=0;for(e=0;e<=T;e++)b.bl_count[e]=0;k[2*b.heap[b.heap_max]+1]=0;for(d=b.heap_max+1;dz&&(e=z,v++),k[2*f+1]=e,f>l||(b.bl_count[e]++,m=0,f>=s&&(m=u[f-s]),q=k[2*f],b.opt_len+=q*(e+m),x&&(b.static_len+=q*(r[2*f+1]+m)));if(0!==v){do{for(e=z-1;0===b.bl_count[e];)e--;b.bl_count[e]--;b.bl_count[e+1]+=2;b.bl_count[z]--;v-=2}while(0l||(k[2*m+1]!==e&&(b.opt_len+=(e-k[2*m+1])*k[2*m],k[2*m+1]=e),f--)}p(g,n,b.bl_count)}function A(b,c,d){var e,f,g=-1,k=c[1],l=0,n=7,m=4;0===k&&(n=138,m=3);c[2*(d+1)+1]=65535;for(e= 0;e<=d;e++)f=k,k=c[2*(e+1)+1],++l=l?b.bl_tree[2*Y]++:b.bl_tree[2*N]++,l=0,g=f,0===k?(n=138,m=3):f===k?(n=6,m=3):(n=7,m=4))}function z(b,c,d){var e,f,g=-1,k=c[1],m=0,q=7,p=4;0===k&&(q=138,p=3);for(e=0;e<=d;e++)if(f=k,k=c[2*(e+1)+1],!(++m=m?(n(b,Y,b.bl_tree),l(b,m-3,3)):(n(b,N,b.bl_tree), -l(b,m-11,7));m=0;g=f;0===k?(q=138,p=3):f===k?(q=6,p=3):(q=7,p=4)}}function v(b){var c,d=4093624447;for(c=0;31>=c;c++,d>>>=1)if(1&d&&0!==b.dyn_ltree[2*c])return E;if(0!==b.dyn_ltree[18]||0!==b.dyn_ltree[20]||0!==b.dyn_ltree[26])return C;for(c=32;ce;e++){P[e]=d;for(c=0;c<1<e;e++){X[e]=d;for(c=0;c<1<>=7;e=c;)O[2*c+1]=8,c++,k[8]++;for(;255>=c;)O[2*c+1]=9,c++,k[9]++;for(;279>=c;)O[2*c+1]=7,c++,k[7]++;for(;287>=c;)O[2*c+1]=8,c++,k[8]++;p(O,H+1,k);for(c=0;c>>3;g=b.static_len+3+7>>>3;g<=f&&(f=g)}else f=g=d+5;if(d+4<=f&&-1!==c)D(b,c,d,e);else if(4===b.strategy||g===f)l(b,2+(e?1:0),3),x(b,O,S); -else{l(b,4+(e?1:0),3);c=b.l_desc.max_code+1;d=b.d_desc.max_code+1;k+=1;l(b,c-257,5);l(b,d-1,5);l(b,k-4,4);for(f=0;f>>8&255,b.pending_buf[b.d_buf+2*b.last_lit+1]=255&c,b.pending_buf[b.l_buf+b.last_lit]=255&d,b.last_lit++,0===c?b.dyn_ltree[2*d]++:(b.matches++,c--,b.dyn_ltree[2*(ba[d]+G+1)]++,b.dyn_dtree[2*(256> +l(b,m-11,7));m=0;g=f;0===k?(q=138,p=3):f===k?(q=6,p=3):(q=7,p=4)}}function v(b){var c,d=4093624447;for(c=0;31>=c;c++,d>>>=1)if(1&d&&0!==b.dyn_ltree[2*c])return E;if(0!==b.dyn_ltree[18]||0!==b.dyn_ltree[20]||0!==b.dyn_ltree[26])return C;for(c=32;ce;e++){P[e]=d;for(c=0;c<1<e;e++){X[e]=d;for(c=0;c<1<>=7;e=c;)O[2*c+1]=8,c++,k[8]++;for(;255>=c;)O[2*c+1]=9,c++,k[9]++;for(;279>=c;)O[2*c+1]=7,c++,k[7]++;for(;287>=c;)O[2*c+1]=8,c++,k[8]++;p(O,J+1,k);for(c=0;c>>3;g=b.static_len+3+7>>>3;g<=f&&(f=g)}else f=g=d+5;if(d+4<=f&&-1!==c)D(b,c,d,e);else if(4===b.strategy||g===f)l(b,2+(e?1:0),3),x(b,O,S); +else{l(b,4+(e?1:0),3);c=b.l_desc.max_code+1;d=b.d_desc.max_code+1;k+=1;l(b,c-257,5);l(b,d-1,5);l(b,k-4,4);for(f=0;f>>8&255,b.pending_buf[b.d_buf+2*b.last_lit+1]=255&c,b.pending_buf[b.l_buf+b.last_lit]=255&d,b.last_lit++,0===c?b.dyn_ltree[2*d]++:(b.matches++,c--,b.dyn_ltree[2*(ba[d]+G+1)]++,b.dyn_dtree[2*(256> c?da[c]:da[256+(c>>>7)])]++),b.last_lit===b.lit_bufsize-1};d._tr_align=function(b){l(b,2,3);n(b,V,O);16===b.bi_valid?(k(b,b.bi_buf),b.bi_buf=0,b.bi_valid=0):8<=b.bi_valid&&(b.pending_buf[b.pending++]=255&b.bi_buf,b.bi_buf>>=8,b.bi_valid-=8)}},{"../utils/common":3}],15:[function(b,c,d){c.exports=function(){this.input=null;this.total_in=this.avail_in=this.next_in=0;this.output=null;this.total_out=this.avail_out=this.next_out=0;this.msg="";this.state=null;this.data_type=2;this.adler=0}},{}],"/":[function(b, c,d){d=b("./lib/utils/common").assign;var e=b("./lib/deflate"),f=b("./lib/inflate");b=b("./lib/zlib/constants");var g={};d(g,e,f,b);c.exports=g},{"./lib/deflate":1,"./lib/inflate":2,"./lib/utils/common":3,"./lib/zlib/constants":6}]},{},[])("/")});var JSON;JSON||(JSON={}); -(function(){function a(a){return 10>a?"0"+a:a}function b(a){e.lastIndex=0;return e.test(a)?'"'+a.replace(e,function(a){var b=k[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function c(a,d){var e,k,r,q,t=f,x,u=d[a];u&&"object"===typeof u&&"function"===typeof u.toJSON&&(u=u.toJSON(a));"function"===typeof l&&(u=l.call(d,a,u));switch(typeof u){case "string":return b(u);case "number":return isFinite(u)?""+u:"null";case "boolean":case "null":return""+ -u;case "object":if(!u)return"null";f+=g;x=[];if("[object Array]"===Object.prototype.toString.apply(u)){q=u.length;for(e=0;ea?"0"+a:a}function b(a){e.lastIndex=0;return e.test(a)?'"'+a.replace(e,function(a){var b=k[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function c(a,d){var e,k,s,q,t=f,x,u=d[a];u&&"object"===typeof u&&"function"===typeof u.toJSON&&(u=u.toJSON(a));"function"===typeof l&&(u=l.call(d,a,u));switch(typeof u){case "string":return b(u);case "number":return isFinite(u)?""+u:"null";case "boolean":case "null":return""+ +u;case "object":if(!u)return"null";f+=g;x=[];if("[object Array]"===Object.prototype.toString.apply(u)){q=u.length;for(e=0;ed&&g?(d++,window.setTimeout(e,f)):null!=c&&c()},f=30;e()},cascadeOpacity:function(a,b,c){for(var d=a.model.getChildCount(b),e=0;ed&&g?(d++,window.setTimeout(e,f)):null!=c&&c()},f=30;e()},cascadeOpacity:function(a,b,c){for(var d=a.model.getChildCount(b),e=0;edocument.documentMode&&(a="ms");return function(b,c,d){b[c]=d;null!=a&&0mxUtils.indexOf(b,e)))d[e]=!c&&"object"==typeof a[e]?mxUtils.clone(a[e]):a[e]}return d},equalPoints:function(a,b){if(null==a&&null!=b||null!=a&&null==b||null!=a&&null!=b&&a.length!=b.length)return!1;if(null!=a&&null!=b)for(var c=0;ce&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;n=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2);m=p*c;p*=d;c*=s;d*=s;for(var u=Math.cos(f),A=Math.sin(f),r=-n*(m*A+d*u),q=-n*(c*A-p*u),s=[],z=0;ze&&(e+=2*Math.PI);g=2*e/Math.PI;g=Math.ceil(0>g?-1*g:g);e/=g;n=8/3*Math.sin(e/4)*Math.sin(e/4)/Math.sin(e/2);m=p*c;p*=d;c*=r;d*=r;for(var u=Math.cos(f),A=Math.sin(f),s=-n*(m*A+d*u),q=-n*(c*A-p*u),r=[],z=0;zc&&(a=3,-135>=c&&(a=2));if(0<=d.indexOf(mxConstants.DIRECTION_NORTH))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 1:b|=mxConstants.DIRECTION_MASK_EAST;break;case 2:b|=mxConstants.DIRECTION_MASK_SOUTH;break;case 3:b|=mxConstants.DIRECTION_MASK_WEST}if(0<=d.indexOf(mxConstants.DIRECTION_WEST))switch(a){case 0:b|=mxConstants.DIRECTION_MASK_WEST;break;case 1:b|=mxConstants.DIRECTION_MASK_NORTH;break;case 2:b|=mxConstants.DIRECTION_MASK_EAST;break;case 3:b|= @@ -490,15 +490,15 @@ mxXmlCanvas2D.prototype.image=function(a,b,c,d,e,f,g,k){e=this.converter.convert mxXmlCanvas2D.prototype.begin=function(){this.root.appendChild(this.createElement("begin"));this.lastY=this.lastX=0};mxXmlCanvas2D.prototype.moveTo=function(a,b){var c=this.createElement("move");c.setAttribute("x",this.format(a));c.setAttribute("y",this.format(b));this.root.appendChild(c);this.lastX=a;this.lastY=b}; mxXmlCanvas2D.prototype.lineTo=function(a,b){var c=this.createElement("line");c.setAttribute("x",this.format(a));c.setAttribute("y",this.format(b));this.root.appendChild(c);this.lastX=a;this.lastY=b};mxXmlCanvas2D.prototype.quadTo=function(a,b,c,d){var e=this.createElement("quad");e.setAttribute("x1",this.format(a));e.setAttribute("y1",this.format(b));e.setAttribute("x2",this.format(c));e.setAttribute("y2",this.format(d));this.root.appendChild(e);this.lastX=c;this.lastY=d}; mxXmlCanvas2D.prototype.curveTo=function(a,b,c,d,e,f){var g=this.createElement("curve");g.setAttribute("x1",this.format(a));g.setAttribute("y1",this.format(b));g.setAttribute("x2",this.format(c));g.setAttribute("y2",this.format(d));g.setAttribute("x3",this.format(e));g.setAttribute("y3",this.format(f));this.root.appendChild(g);this.lastX=e;this.lastY=f};mxXmlCanvas2D.prototype.close=function(){this.root.appendChild(this.createElement("close"))}; -mxXmlCanvas2D.prototype.text=function(a,b,c,d,e,f,g,k,l,n,m,p,s){if(this.textEnabled&&null!=e){mxUtils.isNode(e)&&(e=mxUtils.getOuterHtml(e));var r=this.createElement("text");r.setAttribute("x",this.format(a));r.setAttribute("y",this.format(b));r.setAttribute("w",this.format(c));r.setAttribute("h",this.format(d));r.setAttribute("str",e);null!=f&&r.setAttribute("align",f);null!=g&&r.setAttribute("valign",g);r.setAttribute("wrap",k?"1":"0");null==l&&(l="");r.setAttribute("format",l);null!=n&&r.setAttribute("overflow", -n);null!=m&&r.setAttribute("clip",m?"1":"0");null!=p&&r.setAttribute("rotation",p);null!=s&&r.setAttribute("dir",s);this.root.appendChild(r)}};mxXmlCanvas2D.prototype.stroke=function(){this.root.appendChild(this.createElement("stroke"))};mxXmlCanvas2D.prototype.fill=function(){this.root.appendChild(this.createElement("fill"))};mxXmlCanvas2D.prototype.fillAndStroke=function(){this.root.appendChild(this.createElement("fillstroke"))}; +mxXmlCanvas2D.prototype.text=function(a,b,c,d,e,f,g,k,l,n,m,p,r){if(this.textEnabled&&null!=e){mxUtils.isNode(e)&&(e=mxUtils.getOuterHtml(e));var s=this.createElement("text");s.setAttribute("x",this.format(a));s.setAttribute("y",this.format(b));s.setAttribute("w",this.format(c));s.setAttribute("h",this.format(d));s.setAttribute("str",e);null!=f&&s.setAttribute("align",f);null!=g&&s.setAttribute("valign",g);s.setAttribute("wrap",k?"1":"0");null==l&&(l="");s.setAttribute("format",l);null!=n&&s.setAttribute("overflow", +n);null!=m&&s.setAttribute("clip",m?"1":"0");null!=p&&s.setAttribute("rotation",p);null!=r&&s.setAttribute("dir",r);this.root.appendChild(s)}};mxXmlCanvas2D.prototype.stroke=function(){this.root.appendChild(this.createElement("stroke"))};mxXmlCanvas2D.prototype.fill=function(){this.root.appendChild(this.createElement("fill"))};mxXmlCanvas2D.prototype.fillAndStroke=function(){this.root.appendChild(this.createElement("fillstroke"))}; function mxSvgCanvas2D(a,b){mxAbstractCanvas2D.call(this);this.root=a;this.gradients=[];this.defs=null;this.styleEnabled=null!=b?b:!1;var c=null;if(a.ownerDocument!=document)for(c=a;null!=c&&"svg"!=c.nodeName;)c=c.parentNode;null!=c&&(0l.alpha||1>l.fillAlpha)&&n.setAttribute("opacity",l.alpha*l.fillAlpha);e=this.state.transform||"";if(g||k){var m=f=1,p=0,s=0;g&&(f=-1,p=-c-2*a);k&&(m=-1,s=-d-2*b);e+="scale("+f+","+m+")translate("+p*l.scale+","+s*l.scale+")"}0l.alpha||1>l.fillAlpha)&&n.setAttribute("opacity",l.alpha*l.fillAlpha);e=this.state.transform||"";if(g||k){var m=f=1,p=0,r=0;g&&(f=-1,p=-c-2*a);k&&(m=-1,r=-d-2*b);e+="scale("+f+","+m+")translate("+p*l.scale+","+r*l.scale+")"}0/g,"\x26gt;");a=b.value.replace(/&/g,"\x26amp;").replace(/&lt;/g, @@ -528,27 +528,27 @@ mxSvgCanvas2D.prototype.createDiv=function(a,b,c,d,e){c=this.state;d="display:in mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&(d+="text-decoration:underline;");b==mxConstants.ALIGN_CENTER?d+="text-align:center;":b==mxConstants.ALIGN_RIGHT&&(d+="text-align:right;");b="";null!=c.fontBackgroundColor&&(b+="background-color:"+c.fontBackgroundColor+";");null!=c.fontBorderColor&&(b+="border:1px solid "+c.fontBorderColor+";");mxUtils.isNode(a)||(a=this.convertHtml(a),"fill"!=e&&"width"!=e?a='\x3cdiv xmlns\x3d"http://www.w3.org/1999/xhtml" style\x3d"display:inline-block;text-align:inherit;text-decoration:inherit;'+ b+'"\x3e'+a+"\x3c/div\x3e":d+=b);if(!mxClient.IS_IE&&document.createElementNS)return e=document.createElementNS("http://www.w3.org/1999/xhtml","div"),e.setAttribute("style",d),mxUtils.isNode(a)?this.root.ownerDocument!=document?e.appendChild(a.cloneNode(!0)):e.appendChild(a):e.innerHTML=a,e;mxUtils.isNode(a)&&this.root.ownerDocument!=document&&(a=a.outerHTML);return mxUtils.parseXml('\x3cdiv xmlns\x3d"http://www.w3.org/1999/xhtml" style\x3d"'+d+'"\x3e'+a+"\x3c/div\x3e").documentElement}; mxSvgCanvas2D.prototype.invalidateCachedOffsetSize=function(a){delete a.firstChild.mxCachedOffsetWidth;delete a.firstChild.mxCachedFinalOffsetWidth;delete a.firstChild.mxCachedFinalOffsetHeight}; -mxSvgCanvas2D.prototype.updateText=function(a,b,c,d,e,f,g,k,l,n,m){if(null!=m&&null!=m.firstChild&&null!=m.firstChild.firstChild&&null!=m.firstChild.firstChild.firstChild){m=m.firstChild;var p=m.firstChild,s=p.firstChild;n=null!=n?n:0;var r=this.state;a+=r.dx;b+=r.dy;l?(s.style.maxHeight=Math.round(d)+"px",s.style.maxWidth=Math.round(c)+"px"):"fill"==k?(s.style.width=Math.round(c+1)+"px",s.style.height=Math.round(d+1)+"px"):"width"==k&&(s.style.width=Math.round(c+1)+"px",0r.alpha&&t.setAttribute("opacity",r.alpha);var x=this.createElement("foreignObject");x.setAttribute("style","overflow:visible;");x.setAttribute("pointer-events","all");q=this.createDiv(e,f,g,q,n);if(null!=q){null!=s&&q.setAttribute("dir",s);t.appendChild(x);this.root.appendChild(t);var u=0,A=0;s=u=2;if(mxClient.IS_IE&&(9==document.documentMode||!mxClient.IS_SVG)){var z= -document.createElement("div");z.style.cssText=q.getAttribute("style");z.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";z.style.position="absolute";z.style.visibility="hidden";A=document.createElement("div");A.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";A.style.wordWrap=mxConstants.WORD_WRAP;A.innerHTML=mxUtils.isNode(e)?e.outerHTML:e;z.appendChild(A);document.body.appendChild(z);8!=document.documentMode&&9!=document.documentMode&&null!=r.fontBorderColor&&(u+=2,s+=2);if(k&&0< -c){var v=A.offsetWidth;if(!m&&k&&0s.alpha&&t.setAttribute("opacity",s.alpha);var x=this.createElement("foreignObject");x.setAttribute("style","overflow:visible;");x.setAttribute("pointer-events","all");q=this.createDiv(e,f,g,q,n);if(null!=q){null!=r&&q.setAttribute("dir",r);t.appendChild(x);this.root.appendChild(t);var u=0,A=0;r=u=2;if(mxClient.IS_IE&&(9==document.documentMode||!mxClient.IS_SVG)){var z= +document.createElement("div");z.style.cssText=q.getAttribute("style");z.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";z.style.position="absolute";z.style.visibility="hidden";A=document.createElement("div");A.style.display=mxClient.IS_QUIRKS?"inline":"inline-block";A.style.wordWrap=mxConstants.WORD_WRAP;A.innerHTML=mxUtils.isNode(e)?e.outerHTML:e;z.appendChild(A);document.body.appendChild(z);8!=document.documentMode&&9!=document.documentMode&&null!=s.fontBorderColor&&(u+=2,r+=2);if(k&&0< +c){var v=A.offsetWidth;if(!m&&k&&0r.alpha&&t.setAttribute("opacity",r.alpha);s=q=0;f==mxConstants.ALIGN_CENTER?q-=c/2:f==mxConstants.ALIGN_RIGHT&&(q-=c);a+=q;g==mxConstants.ALIGN_MIDDLE? -s-=d/2:g==mxConstants.ALIGN_BOTTOM&&(s-=d);"fill"!=n&&mxClient.IS_FF&&mxClient.IS_WIN&&(s-=2);b+=s;z=1!=r.scale?"scale("+r.scale+")":"";0!=r.rotation&&this.rotateHtml?(z+="rotate("+r.rotation+","+c/2+","+d/2+")",b=this.rotatePoint((a+c/2)*r.scale,(b+d/2)*r.scale,r.rotation,r.rotationCx,r.rotationCy),a=b.x-c*r.scale/2,b=b.y-d*r.scale/2):(a*=r.scale,b*=r.scale);0!=p&&(z+="rotate("+p+","+-q+","+-s+")");t.setAttribute("transform","translate("+(Math.round(a)+this.foOffset)+","+(Math.round(b)+this.foOffset)+ -")"+z);x.setAttribute("width",Math.round(Math.max(1,c)));x.setAttribute("height",Math.round(Math.max(1,d)));this.root.ownerDocument!=document&&(a=this.createAlternateContent(x,a,b,c,d,e,f,g,k,l,n,m,p),null!=a&&(x.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),c=this.createElement("switch"),c.appendChild(x),c.appendChild(a),t.appendChild(c)))}}else this.plainText(a,b,c,d,e,f,g,k,n,m,p,s)}}; +(q.style.whiteSpace=D)),u=v+u-1,k&&"fill"!=n&&"width"!=n&&(m&&(u=Math.min(u,c)),q.style.width=u+"px"),u=z.offsetWidth,A=z.offsetHeight,this.cacheOffsetSize&&(t.mxCachedFinalOffsetWidth=u,t.mxCachedFinalOffsetHeight=A),A-=r,q.parentNode!=x&&(x.appendChild(q),q.style.visibility="");m&&(A=Math.min(A,d),u=Math.min(u,c));"width"==n?d=A:"fill"!=n&&(c=u,d=A);1>s.alpha&&t.setAttribute("opacity",s.alpha);r=q=0;f==mxConstants.ALIGN_CENTER?q-=c/2:f==mxConstants.ALIGN_RIGHT&&(q-=c);a+=q;g==mxConstants.ALIGN_MIDDLE? +r-=d/2:g==mxConstants.ALIGN_BOTTOM&&(r-=d);"fill"!=n&&mxClient.IS_FF&&mxClient.IS_WIN&&(r-=2);b+=r;z=1!=s.scale?"scale("+s.scale+")":"";0!=s.rotation&&this.rotateHtml?(z+="rotate("+s.rotation+","+c/2+","+d/2+")",b=this.rotatePoint((a+c/2)*s.scale,(b+d/2)*s.scale,s.rotation,s.rotationCx,s.rotationCy),a=b.x-c*s.scale/2,b=b.y-d*s.scale/2):(a*=s.scale,b*=s.scale);0!=p&&(z+="rotate("+p+","+-q+","+-r+")");t.setAttribute("transform","translate("+(Math.round(a)+this.foOffset)+","+(Math.round(b)+this.foOffset)+ +")"+z);x.setAttribute("width",Math.round(Math.max(1,c)));x.setAttribute("height",Math.round(Math.max(1,d)));this.root.ownerDocument!=document&&(a=this.createAlternateContent(x,a,b,c,d,e,f,g,k,l,n,m,p),null!=a&&(x.setAttribute("requiredFeatures","http://www.w3.org/TR/SVG11/feature#Extensibility"),c=this.createElement("switch"),c.appendChild(x),c.appendChild(a),t.appendChild(c)))}}else this.plainText(a,b,c,d,e,f,g,k,n,m,p,r)}}; mxSvgCanvas2D.prototype.createClip=function(a,b,c,d){a=Math.round(a);b=Math.round(b);c=Math.round(c);d=Math.round(d);for(var e="mx-clip-"+a+"-"+b+"-"+c+"-"+d,f=0,g=e+"-"+f;null!=document.getElementById(g);)g=e+"-"+ ++f;clip=this.createElement("clipPath");clip.setAttribute("id",g);e=this.createElement("rect");e.setAttribute("x",a);e.setAttribute("y",b);e.setAttribute("width",c);e.setAttribute("height",d);clip.appendChild(e);return clip}; -mxSvgCanvas2D.prototype.plainText=function(a,b,c,d,e,f,g,k,l,n,m,p){m=null!=m?m:0;k=this.state;var s=k.fontSize,r=this.createElement("g"),q=k.transform||"";this.updateFont(r);0!=m&&(q+="rotate("+m+","+this.format(a*k.scale)+","+this.format(b*k.scale)+")");null!=p&&r.setAttribute("direction",p);n&&0k.alpha&&r.setAttribute("opacity",k.alpha);q=e.split("\n");p=Math.round(s*mxConstants.LINE_HEIGHT);var t=s+(q.length-1)*p;m=b+s-1;g==mxConstants.ALIGN_MIDDLE?"fill"==l?m-=d/2:(n=(this.matchHtmlAlignment&&n&&0k.alpha&&s.setAttribute("opacity",k.alpha);q=e.split("\n");p=Math.round(r*mxConstants.LINE_HEIGHT);var t=r+(q.length-1)*p;m=b+r-1;g==mxConstants.ALIGN_MIDDLE?"fill"==l?m-=d/2:(n=(this.matchHtmlAlignment&&n&&0u&&(u+=2*Math.PI);u%=Math.PI;u>Math.PI/2&&(u=Math.PI-u);g=Math.cos(u);var A=Math.sin(u);8==document.documentMode&&!mxClient.IS_EM&&(e.style.display="inline-block",f.style.display="inline-block",q.style.display="inline-block");e.style.visibility="hidden";e.style.position="absolute";document.body.appendChild(e);q=e;null!=q.firstChild&&"DIV"==q.firstChild.nodeName&&(q=q.firstChild);u=q.offsetWidth+3;q=q.offsetHeight;m?(c=Math.min(c,u), -q=Math.min(q,d)):c=u;k&&(e.style.width=c+"px");if(mxClient.IS_QUIRKS&&(m||"width"==n)&&q>d)q=d,e.style.height=q+"px";d=q;m=(d-d*g+c*-A)/2-s*c*(x+0.5)+p*d*(t+0.5);k=(c-c*g+d*-A)/2+p*c*(x+0.5)+s*d*(t+0.5);"group"==l.nodeName&&"DIV"==this.root.nodeName?(n=this.createElement("div"),n.style.display="inline-block",n.style.position="absolute",n.style.left=this.format(a+(k-c/2)*r.scale)+"px",n.style.top=this.format(b+(m-d/2)*r.scale)+"px",l.parentNode.appendChild(n),n.appendChild(l)):(r=8==document.documentMode&& -!mxClient.IS_EM?1:r.scale,l.style.left=this.format(a+(k-c/2)*r)+"px",l.style.top=this.format(b+(m-d/2)*r)+"px");f.style.filter="progid:DXImageTransform.Microsoft.Matrix(M11\x3d"+p+", M12\x3d"+s+", M21\x3d"+-s+", M22\x3d"+p+", sizingMethod\x3d'auto expand')";f.style.backgroundColor=this.rotatedHtmlBackground;1>this.state.alpha&&(f.style.filter+="alpha(opacity\x3d"+100*this.state.alpha+")");f.appendChild(e);e.style.position="";e.style.visibility=""}else 8!=document.documentMode||mxClient.IS_EM?(e.style.verticalAlign= -"top",1>this.state.alpha&&(l.style.filter="alpha(opacity\x3d"+100*this.state.alpha+")"),r=e.parentNode,e.style.visibility="hidden",document.body.appendChild(e),c=e.offsetWidth,q=e.offsetHeight,mxClient.IS_QUIRKS&&m&&q>d&&(q=d,e.style.height=q+"px"),d=q,e.style.visibility="",r.appendChild(e),l.style.left=this.format(a+c*x*this.state.scale)+"px",l.style.top=this.format(b+d*t*this.state.scale)+"px"):(1>this.state.alpha&&(e.style.filter="alpha(opacity\x3d"+100*this.state.alpha+")"),q.style.left=100*x+ -"%",q.style.top=100*t+"%")}else this.plainText(a,b,c,d,mxUtils.htmlEntities(e,!1),f,g,k,l,n,m,p,s)}}; -mxVmlCanvas2D.prototype.plainText=function(a,b,c,d,e,f,g,k,l,n,m,p,s){k=this.state;a=(a+k.dx)*k.scale;b=(b+k.dy)*k.scale;c=this.createVmlElement("shape");c.style.width="1px";c.style.height="1px";c.stroked="false";d=this.createVmlElement("fill");d.color=k.fontColor;d.opacity=100*k.alpha+"%";c.appendChild(d);d=this.createVmlElement("path");d.textpathok="true";d.v="m "+this.format(0)+" "+this.format(0)+" l "+this.format(1)+" "+this.format(0);c.appendChild(d);d=this.createVmlElement("textpath");d.style.cssText= +mxVmlCanvas2D.prototype.text=function(a,b,c,d,e,f,g,k,l,n,m,p,r){if(this.textEnabled&&null!=e){var s=this.state;if("html"==l){null!=s.rotation&&(b=this.rotatePoint(a,b,s.rotation,s.rotationCx,s.rotationCy),a=b.x,b=b.y);8==document.documentMode&&!mxClient.IS_EM?(a+=s.dx,b+=s.dy,"fill"!=n&&g==mxConstants.ALIGN_TOP&&(b-=1)):(a*=s.scale,b*=s.scale);l=8==document.documentMode&&!mxClient.IS_EM?this.createVmlElement("group"):this.createElement("div");l.style.position="absolute";l.style.display="inline"; +l.style.left=this.format(a)+"px";l.style.top=this.format(b)+"px";l.style.zoom=s.scale;var q=this.createElement("div");q.style.position="relative";q.style.display="inline";var t=mxUtils.getAlignmentAsPoint(f,g),x=t.x,t=t.y;e=this.createDiv(e,f,g,n);f=this.createElement("div");null!=r&&e.setAttribute("dir",r);if(k&&0u&&(u+=2*Math.PI);u%=Math.PI;u>Math.PI/2&&(u=Math.PI-u);g=Math.cos(u);var A=Math.sin(u);8==document.documentMode&&!mxClient.IS_EM&&(e.style.display="inline-block",f.style.display="inline-block",q.style.display="inline-block");e.style.visibility="hidden";e.style.position="absolute";document.body.appendChild(e);q=e;null!=q.firstChild&&"DIV"==q.firstChild.nodeName&&(q=q.firstChild);u=q.offsetWidth+3;q=q.offsetHeight;m?(c=Math.min(c,u), +q=Math.min(q,d)):c=u;k&&(e.style.width=c+"px");if(mxClient.IS_QUIRKS&&(m||"width"==n)&&q>d)q=d,e.style.height=q+"px";d=q;m=(d-d*g+c*-A)/2-r*c*(x+0.5)+p*d*(t+0.5);k=(c-c*g+d*-A)/2+p*c*(x+0.5)+r*d*(t+0.5);"group"==l.nodeName&&"DIV"==this.root.nodeName?(n=this.createElement("div"),n.style.display="inline-block",n.style.position="absolute",n.style.left=this.format(a+(k-c/2)*s.scale)+"px",n.style.top=this.format(b+(m-d/2)*s.scale)+"px",l.parentNode.appendChild(n),n.appendChild(l)):(s=8==document.documentMode&& +!mxClient.IS_EM?1:s.scale,l.style.left=this.format(a+(k-c/2)*s)+"px",l.style.top=this.format(b+(m-d/2)*s)+"px");f.style.filter="progid:DXImageTransform.Microsoft.Matrix(M11\x3d"+p+", M12\x3d"+r+", M21\x3d"+-r+", M22\x3d"+p+", sizingMethod\x3d'auto expand')";f.style.backgroundColor=this.rotatedHtmlBackground;1>this.state.alpha&&(f.style.filter+="alpha(opacity\x3d"+100*this.state.alpha+")");f.appendChild(e);e.style.position="";e.style.visibility=""}else 8!=document.documentMode||mxClient.IS_EM?(e.style.verticalAlign= +"top",1>this.state.alpha&&(l.style.filter="alpha(opacity\x3d"+100*this.state.alpha+")"),s=e.parentNode,e.style.visibility="hidden",document.body.appendChild(e),c=e.offsetWidth,q=e.offsetHeight,mxClient.IS_QUIRKS&&m&&q>d&&(q=d,e.style.height=q+"px"),d=q,e.style.visibility="",s.appendChild(e),l.style.left=this.format(a+c*x*this.state.scale)+"px",l.style.top=this.format(b+d*t*this.state.scale)+"px"):(1>this.state.alpha&&(e.style.filter="alpha(opacity\x3d"+100*this.state.alpha+")"),q.style.left=100*x+ +"%",q.style.top=100*t+"%")}else this.plainText(a,b,c,d,mxUtils.htmlEntities(e,!1),f,g,k,l,n,m,p,r)}}; +mxVmlCanvas2D.prototype.plainText=function(a,b,c,d,e,f,g,k,l,n,m,p,r){k=this.state;a=(a+k.dx)*k.scale;b=(b+k.dy)*k.scale;c=this.createVmlElement("shape");c.style.width="1px";c.style.height="1px";c.stroked="false";d=this.createVmlElement("fill");d.color=k.fontColor;d.opacity=100*k.alpha+"%";c.appendChild(d);d=this.createVmlElement("path");d.textpathok="true";d.v="m "+this.format(0)+" "+this.format(0)+" l "+this.format(1)+" "+this.format(0);c.appendChild(d);d=this.createVmlElement("textpath");d.style.cssText= "v-text-align:"+f;d.style.align=f;d.style.fontFamily=k.fontFamily;d.string=e;d.on="true";f=k.fontSize*k.scale/this.vmlScale;d.style.fontSize=f+"px";(k.fontStyle&mxConstants.FONT_BOLD)==mxConstants.FONT_BOLD&&(d.style.fontWeight="bold");(k.fontStyle&mxConstants.FONT_ITALIC)==mxConstants.FONT_ITALIC&&(d.style.fontStyle="italic");(k.fontStyle&mxConstants.FONT_UNDERLINE)==mxConstants.FONT_UNDERLINE&&(d.style.textDecoration="underline");e=e.split("\n");k=f+(e.length-1)*f*mxConstants.LINE_HEIGHT;f=e=0; g==mxConstants.ALIGN_BOTTOM?f=-k/2:g!=mxConstants.ALIGN_MIDDLE&&(f=k/2);null!=p&&(c.style.rotation=p,g=p*(Math.PI/180),e=Math.sin(g)*f,f*=Math.cos(g));c.appendChild(d);c.style.left=this.format(a-e)+"px";c.style.top=this.format(b+f)+"px";this.root.appendChild(c)};mxVmlCanvas2D.prototype.stroke=function(){this.addNode(!1,!0)};mxVmlCanvas2D.prototype.fill=function(){this.addNode(!0,!1)};mxVmlCanvas2D.prototype.fillAndStroke=function(){this.addNode(!0,!0)}; function mxGuide(a,b){this.graph=a;this.setStates(b)}mxGuide.prototype.graph=null;mxGuide.prototype.states=null;mxGuide.prototype.horizontal=!0;mxGuide.prototype.vertical=!0;mxGuide.prototype.guideX=null;mxGuide.prototype.guideY=null;mxGuide.prototype.setStates=function(a){this.states=a};mxGuide.prototype.isEnabledForEvent=function(a){return!0};mxGuide.prototype.getGuideTolerance=function(){return this.graph.gridSize/2}; mxGuide.prototype.createGuideShape=function(a){a=new mxPolyline([],mxConstants.GUIDE_COLOR,mxConstants.GUIDE_STROKEWIDTH);a.isDashed=!0;return a}; -mxGuide.prototype.move=function(a,b,c){if(null!=this.states&&(this.horizontal||this.vertical)&&null!=a&&null!=b){var d=this.graph.getView().translate,e=this.graph.getView().scale,f=b.x,g=b.y,k=!1,l=null,n=null,m=!1,p=null,s=null,r=this.getGuideTolerance(),q=r,t=r,r=a.clone();r.x+=b.x;r.y+=b.y;var x=r.x,u=r.x+r.width,A=r.getCenterX(),z=r.y,v=r.y+r.height,D=r.getCenterY();b=function(b,c){b+=this.graph.panDx;var d=!1;Math.abs(b-A)n&&(n+=2*Math.PI);n%=Math.PI;n>Math.PI/2&&(n=Math.PI-n);var k=Math.cos(n),m=Math.sin(-n),b=l*-(b+0.5),p=g*-(c+0.5),s=(g-g*k+l*m)/2+f*b-e*p;0!=n&&(c="progid:DXImageTransform.Microsoft.Matrix(M11\x3d"+e+", M12\x3d"+f+", M21\x3d"+-f+", M22\x3d"+e+", sizingMethod\x3d'auto expand')",a.filter=null!=a.filter&&0n&&(n+=2*Math.PI);n%=Math.PI;n>Math.PI/2&&(n=Math.PI-n);var k=Math.cos(n),m=Math.sin(-n),b=l*-(b+0.5),p=g*-(c+0.5),r=(g-g*k+l*m)/2+f*b-e*p;0!=n&&(c="progid:DXImageTransform.Microsoft.Matrix(M11\x3d"+e+", M12\x3d"+f+", M21\x3d"+-f+", M22\x3d"+e+", sizingMethod\x3d'auto expand')",a.filter=null!=a.filter&&0b)break;k=c}f=e.getIndex(a);f=Math.max(0,g-(g>f?1:0));d.add(e,a,f)}}; mxStackLayout.prototype.getParentSize=function(a){var b=this.graph.getModel(),c=b.getGeometry(a);if(null!=this.graph.container&&(null==c&&b.isLayer(a)||a==this.graph.getView().currentRoot))c=new mxRectangle(0,0,this.graph.container.offsetWidth-1,this.graph.container.offsetHeight-1);return c}; mxStackLayout.prototype.execute=function(a){if(null!=a){var b=this.getParentSize(a),c=this.isHorizontal(),d=this.graph.getModel(),e=null;null!=b&&(e=c?b.height-this.marginTop-this.marginBottom:b.width-this.marginLeft-this.marginRight);var e=e-(2*this.spacing+2*this.border),f=this.x0+this.border+this.marginLeft,g=this.y0+this.border+this.marginTop;if(this.graph.isSwimlane(a)){var k=this.graph.getCellStyle(a),l=mxUtils.getNumber(k,mxConstants.STYLE_STARTSIZE,mxConstants.DEFAULT_STARTSIZE),k=1==mxUtils.getValue(k, -mxConstants.STYLE_HORIZONTAL,!0);null!=b&&(l=k?Math.min(l,b.height):Math.min(l,b.width));c==k&&(e-=l);k?g+=l:f+=l}d.beginUpdate();try{for(var l=0,k=null,n=0,m=null,p=d.getChildCount(a),s=0;sthis.wrap||!c&&k.y+k.height+q.height+2*this.spacing>this.wrap))k=null,c?g+=l+this.spacing:f+=l+this.spacing,l= -0;var l=Math.max(l,c?q.height:q.width),t=0;if(!this.borderCollapse)var x=this.graph.getCellStyle(r),t=mxUtils.getNumber(x,mxConstants.STYLE_STROKEWIDTH,1);null!=k?c?q.x=n+this.spacing+Math.floor(t/2):q.y=n+this.spacing+Math.floor(t/2):this.keepFirstLocation||(c?q.x=f:q.y=g);c?q.y=g:q.x=f;this.fill&&null!=e&&(c?q.height=e:q.width=e);this.setChildGeometry(r,q);m=r;k=q;n=c?k.x+k.width+Math.floor(t/2):k.y+k.height+Math.floor(t/2)}}}this.resizeParent&&null!=b&&null!=k&&!this.graph.isCellCollapsed(a)?this.updateParentGeometry(a, +mxConstants.STYLE_HORIZONTAL,!0);null!=b&&(l=k?Math.min(l,b.height):Math.min(l,b.width));c==k&&(e-=l);k?g+=l:f+=l}d.beginUpdate();try{for(var l=0,k=null,n=0,m=null,p=d.getChildCount(a),r=0;rthis.wrap||!c&&k.y+k.height+q.height+2*this.spacing>this.wrap))k=null,c?g+=l+this.spacing:f+=l+this.spacing,l= +0;var l=Math.max(l,c?q.height:q.width),t=0;if(!this.borderCollapse)var x=this.graph.getCellStyle(s),t=mxUtils.getNumber(x,mxConstants.STYLE_STROKEWIDTH,1);null!=k?c?q.x=n+this.spacing+Math.floor(t/2):q.y=n+this.spacing+Math.floor(t/2):this.keepFirstLocation||(c?q.x=f:q.y=g);c?q.y=g:q.x=f;this.fill&&null!=e&&(c?q.height=e:q.width=e);this.setChildGeometry(s,q);m=s;k=q;n=c?k.x+k.width+Math.floor(t/2):k.y+k.height+Math.floor(t/2)}}}this.resizeParent&&null!=b&&null!=k&&!this.graph.isCellCollapsed(a)?this.updateParentGeometry(a, b,k):this.resizeLast&&null!=b&&null!=k&&null!=m&&(c?k.width=b.width-k.x-this.spacing-this.marginRight-this.marginLeft:k.height=b.height-k.y-this.spacing-this.marginBottom,this.setChildGeometry(m,k))}finally{d.endUpdate()}}};mxStackLayout.prototype.setChildGeometry=function(a,b){var c=this.graph.getCellGeometry(a);(null==c||b.x!=c.x||b.y!=c.y||b.width!=c.width||b.height!=c.height)&&this.graph.getModel().setGeometry(a,b)}; mxStackLayout.prototype.updateParentGeometry=function(a,b,c){var d=this.isHorizontal(),e=this.graph.getModel(),f=b.clone();d?(c=c.x+c.width+this.spacing+this.marginRight,f.width=this.resizeParentMax?Math.max(f.width,c):c):(c=c.y+c.height+this.spacing+this.marginBottom,f.height=this.resizeParentMax?Math.max(f.height,c):c);(b.x!=f.x||b.y!=f.y||b.width!=f.width||b.height!=f.height)&&e.setGeometry(a,f)}; function mxPartitionLayout(a,b,c,d){mxGraphLayout.call(this,a);this.horizontal=null!=b?b:!0;this.spacing=c||0;this.border=d||0}mxPartitionLayout.prototype=new mxGraphLayout;mxPartitionLayout.prototype.constructor=mxPartitionLayout;mxPartitionLayout.prototype.horizontal=null;mxPartitionLayout.prototype.spacing=null;mxPartitionLayout.prototype.border=null;mxPartitionLayout.prototype.resizeVertices=!0;mxPartitionLayout.prototype.isHorizontal=function(){return this.horizontal}; @@ -797,7 +797,7 @@ mxCompactTreeLayout.prototype.apply=function(a,b){var c=this.graph.getModel(),d= mxCompactTreeLayout.prototype.createLine=function(a,b,c){var d={};d.dx=a;d.dy=b;d.next=c;return d};mxCompactTreeLayout.prototype.adjustParents=function(){var a=[],b;for(b in this.parentsChanged)a.push(this.parentsChanged[b]);this.arrangeGroups(mxUtils.sortCells(a,!0),this.groupPadding,this.groupPaddingTop,this.groupPaddingRight,this.groupPaddingBottom,this.groupPaddingLeft)}; mxCompactTreeLayout.prototype.localEdgeProcessing=function(a){this.processNodeOutgoing(a);for(a=a.child;null!=a;)this.localEdgeProcessing(a),a=a.next}; mxCompactTreeLayout.prototype.processNodeOutgoing=function(a){for(var b=a.child,c=a.cell,d=0,e=[];null!=b;){d++;var f=b.x;this.horizontal&&(f=b.y);e.push(new WeightedCellSorter(b,f));b=b.next}e.sort(WeightedCellSorter.prototype.compare);var f=a.width,g=(d+1)*this.prefHozEdgeSep;f>g+2*this.prefHozEdgeSep&&(f-=2*this.prefHozEdgeSep);a=f/d;b=a/2;f>g+2*this.prefHozEdgeSep&&(b+=this.prefHozEdgeSep);for(var f=this.minEdgeJetty-this.prefVertEdgeOff,g=0,k=this.getVertexBounds(c),l=0;ld/2&&(f-=this.prefVertEdgeOff);b+=a;g=Math.max(g,f)}}; +e[l].cell.cell,m=this.getVertexBounds(n),n=this.graph.getEdgesBetween(c,n,!1),p=[],r=0,s=0,q=0;qd/2&&(f-=this.prefVertEdgeOff);b+=a;g=Math.max(g,f)}}; function WeightedCellSorter(a,b){this.cell=a;this.weightedValue=b}WeightedCellSorter.prototype.weightedValue=0;WeightedCellSorter.prototype.nudge=!1;WeightedCellSorter.prototype.visited=!1;WeightedCellSorter.prototype.rankIndex=null;WeightedCellSorter.prototype.cell=null;WeightedCellSorter.prototype.compare=function(a,b){return null!=a&&null!=b?b.weightedValue>a.weightedValue?1:b.weightedValuethis.forceConstant&&(this.forceConstant= -0.001);this.forceConstantSquared=this.forceConstant*this.forceConstant;for(d=0;db&&(b=0.001);var c=this.dispX[a]/b*Math.min(b,this.temperature),b=this.dispY[a]/b*Math.min(b,this.temperature);this.dispX[a]=0;this.dispY[a]=0;this.cellLocation[a][0]+=c;this.cellLocation[a][1]+=b}}; mxFastOrganicLayout.prototype.calcAttraction=function(){for(var a=0;a>1,++e[l]}return c}; -mxMedianHybridCrossingReduction.prototype.transpose=function(a,b){for(var c=!0,d=0;c&&10>d++;)for(var e=1==a%2&&1==d%2,c=!1,f=0;fm&&(m=l);k[m]=n}for(var p=null,s=null,r=null,q=null,t=null,x=null,u=null,A=null,l=0;lt[y]&&v++,r[z]x[y]&&v++,q[z]d++;)for(var e=1==a%2&&1==d%2,c=!1,f=0;fm&&(m=l);k[m]=n}for(var p=null,r=null,s=null,q=null,t=null,x=null,u=null,A=null,l=0;lt[y]&&v++,s[z]x[y]&&v++,q[z]a.medianValue?-1:b.medianValuex+1&&(n==d[l].length-1?(e.setGeneralPurposeVariable(l,u),p=!0):(n=d[l][n+1],x=n.getGeneralPurposeVariable(l),x=x-n.width/2-this.intraCellSpacing-e.width/2,x>u?(e.setGeneralPurposeVariable(l, +mxCoordinateAssignment.prototype.minNode=function(a){for(var b=[],c=new mxDictionary,d=[],e=0;e<=a.maxRank;e++){d[e]=a.ranks[e];for(var f=0;fx+1&&(n==d[l].length-1?(e.setGeneralPurposeVariable(l,u),p=!0):(n=d[l][n+1],x=n.getGeneralPurposeVariable(l),x=x-n.width/2-this.intraCellSpacing-e.width/2,x>u?(e.setGeneralPurposeVariable(l, u),p=!0):x>e.getGeneralPurposeVariable(l)+1&&(e.setGeneralPurposeVariable(l,x),p=!0)));if(p){for(e=0;e=k&&l<=s?g.setGeneralPurposeVariable(a,l):ls&&(g.setGeneralPurposeVariable(a,s),this.currentXDelta+=l-s);d[f].visited=!0}};mxCoordinateAssignment.prototype.calculatedWeightedValue=function(a,b){for(var c=0,d=0;d=k&&l<=r?g.setGeneralPurposeVariable(a,l):lr&&(g.setGeneralPurposeVariable(a,r),this.currentXDelta+=l-r);d[f].visited=!0}};mxCoordinateAssignment.prototype.calculatedWeightedValue=function(a,b){for(var c=0,d=0;dthis.widestRankValue&&(this.widestRankValue=k,this.widestRank=e);this.rankWidths[e]=k}!0==l&&mxLog.warn("At least one cell has no bounds");this.rankY[e]=c;k=f/2+d/2+this.interRankCellSpacing;d=f;c=this.orientation==mxConstants.DIRECTION_NORTH||this.orientation==mxConstants.DIRECTION_WEST?c+k:c- k;for(n=0;ne.maxRank-e.minRank-1)){for(var f=e.getGeneralPurposeVariable(e.minRank+1),g=!0,k=0,l=e.minRank+2;le.minRank+1;l--)s=e.getX(l-1),p==s?(m[l-e.minRank-2]=p,g++):this.repositionValid(b,e,l-1,p)?(m[l-e.minRank-2]=p,g++):(m[l-e.minRank-2]=e.getX(l-1),p=s);if(g>k||f>k)if(g>=f)for(l=e.maxRank-2;l>e.minRank;l--)e.setX(l,m[l-e.minRank-1]);else if(f>g)for(l=e.minRank+2;le.maxRank-e.minRank-1)){for(var f=e.getGeneralPurposeVariable(e.minRank+1),g=!0,k=0,l=e.minRank+2;le.minRank+1;l--)r=e.getX(l-1),p==r?(m[l-e.minRank-2]=p,g++):this.repositionValid(b,e,l-1,p)?(m[l-e.minRank-2]=p,g++):(m[l-e.minRank-2]=e.getX(l-1),p=r);if(g>k||f>k)if(g>=f)for(l=e.maxRank-2;l>e.minRank;l--)e.setX(l,m[l-e.minRank-1]);else if(f>g)for(l=e.minRank+2;le)return!1;f=b.getGeneralPurposeVariable(c);if(df){if(e==a.length-1)return!0;a=a[e+1];c=a.getGeneralPurposeVariable(c);c=c-a.width/2-this.intraCellSpacing-b.width/2;if(!(c>=d))return!1}return!0}; mxCoordinateAssignment.prototype.setCellLocations=function(a,b){this.rankTopY=[];this.rankBottomY=[];for(var c=0;ck;k++){if(-1(f+1)*this.prefHozEdgeSep+2*this.prefHozEdgeSep&&(m+=this.prefHozEdgeSep,p-=this.prefHozEdgeSep);l=(p-m)/f;m+=l/2;p=this.minEdgeJetty-this.prefVertEdgeOff;for(n=s=0;nf/2&&(p-=this.prefVertEdgeOff);for(t=0;tk;k++){if(-1(f+1)*this.prefHozEdgeSep+2*this.prefHozEdgeSep&&(m+=this.prefHozEdgeSep,p-=this.prefHozEdgeSep);l=(p-m)/f;m+=l/2;p=this.minEdgeJetty-this.prefVertEdgeOff;for(n=r=0;nf/2&&(p-=this.prefVertEdgeOff);for(t=0;ta.weightedValue?-1:b.weightedValuef&&(f=l,e=k)}}0==c.length&&null!=e&&c.push(e)}return c}; +mxSwimlaneLayout.prototype.findRoots=function(a,b){var c=[];if(null!=a&&null!=b){var d=this.graph.model,e=null,f=-1E5,g;for(g in b){var k=b[g];if(null!=k&&d.isVertex(k)&&this.graph.isCellVisible(k)&&d.isAncestor(a,k)){for(var l=this.getEdges(k),n=0,m=0,p=0;pf&&(f=l,e=k)}}0==c.length&&null!=e&&c.push(e)}return c}; mxSwimlaneLayout.prototype.getEdges=function(a){var b=this.edgesCache.get(a);if(null!=b)return b;for(var c=this.graph.model,b=[],d=this.graph.isCellCollapsed(a),e=c.getChildCount(a),f=0;f=this.swimlanes.length)&&(s>k||(!b||p)&&s==k))e= -this.traverse(m,b,n[c],d,e,f,g,s)}}else if(null==e[l])for(c=0;c=this.swimlanes.length)&&(r>k||(!b||p)&&r==k))e= +this.traverse(m,b,n[c],d,e,f,g,r)}}else if(null==e[l])for(c=0;c=a.x&&c.x<=a.x+a.width?g.x=c.x:c.y>=a.y&&c.y<=a.y+a.height&&(g.y=c.y),c.xa.x+a.width&&(g.x=a.x+a.width),c.ya.y+a.height&&(g.y=a.y+a.height));return g},EllipsePerimeter:function(a,b,c,d){var e=a.x,f=a.y,g=a.width/2,k=a.height/2,l=e+g,n=f+k;b=c.x;c=c.y;var m=parseInt(b-l),p=parseInt(c-n);if(0==m&&0!=p)return new mxPoint(l, n+k*p/Math.abs(p));if(0==m&&0==p)return new mxPoint(b,c);if(d){if(c>=f&&c<=f+a.height)return a=c-n,a=Math.sqrt(g*g*(1-a*a/(k*k)))||0,b<=e&&(a=-a),new mxPoint(l+a,c);if(b>=e&&b<=e+a.width)return a=b-l,a=Math.sqrt(k*k*(1-a*a/(g*g)))||0,c<=f&&(a=-a),new mxPoint(b,n+a)}e=p/m;n-=e*l;f=g*g*e*e+k*k;a=-2*l*f;k=Math.sqrt(a*a-4*f*(g*g*e*e*l*l+k*k*l*l-g*g*k*k));g=(-a+k)/(2*f);k=(-a-k)/(2*f);l=e*g+n;n=e*k+n;e=Math.sqrt(Math.pow(g-b,2)+Math.pow(l-c,2));b=Math.sqrt(Math.pow(k-b,2)+Math.pow(n-c,2));f=c=0;ec?new mxPoint(g,e):new mxPoint(g,e+a);if(k==c)return g>l?new mxPoint(b,k):new mxPoint(b+f,k);var n=g,m=k;d&&(l>=b&&l<=b+f?n=l:c>=e&&c<=e+a&&(m=c));return l-t&&rMath.PI-t,t=null;q?t=d&&(e&&c.x>=m.x&&c.x<=s.x||!e&&c.y>=m.y&&c.y<=s.y)?e?new mxPoint(c.x,m.y):new mxPoint(m.x,c.y):b==mxConstants.DIRECTION_NORTH?new mxPoint(f+k/2+a*Math.tan(r)/2,g+a):b==mxConstants.DIRECTION_SOUTH?new mxPoint(f+k/2-a*Math.tan(r)/2,g):b==mxConstants.DIRECTION_WEST?new mxPoint(f+k,g+a/2+k*Math.tan(r)/2):new mxPoint(f, -g+a/2-k*Math.tan(r)/2):(d&&(d=new mxPoint(l,n),c.y>=g&&c.y<=g+a?(d.x=e?l:b==mxConstants.DIRECTION_WEST?f+k:f,d.y=c.y):c.x>=f&&c.x<=f+k&&(d.x=c.x,d.y=!e?n:b==mxConstants.DIRECTION_NORTH?g+a:g),l=d.x,n=d.y),t=e&&c.x<=f+k/2||!e&&c.y<=g+a/2?mxUtils.intersection(c.x,c.y,l,n,m.x,m.y,p.x,p.y):mxUtils.intersection(c.x,c.y,l,n,p.x,p.y,s.x,s.y));null==t&&(t=new mxPoint(l,n));return t},HexagonPerimeter:function(a,b,c,d){var e=a.x,f=a.y,g=a.width,k=a.height,l=a.getCenterX();a=a.getCenterY();var n=c.x,m=c.y,p= --Math.atan2(m-a,n-l),s=Math.PI,r=Math.PI/2,q=new mxPoint(l,a);b=null!=b?mxUtils.getValue(b.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;var t=b==mxConstants.DIRECTION_NORTH||b==mxConstants.DIRECTION_SOUTH;b=new mxPoint;q=new mxPoint;if(nf+k||n>e+g&&me+g&&m>f+k)d=!1;if(d){if(t){if(n==l){if(m<=f)return new mxPoint(l,f);if(m>=f+k)return new mxPoint(l,f+k)}else if(n-t&&sMath.PI-t,t=null;q?t=d&&(e&&c.x>=m.x&&c.x<=r.x||!e&&c.y>=m.y&&c.y<=r.y)?e?new mxPoint(c.x,m.y):new mxPoint(m.x,c.y):b==mxConstants.DIRECTION_NORTH?new mxPoint(f+k/2+a*Math.tan(s)/2,g+a):b==mxConstants.DIRECTION_SOUTH?new mxPoint(f+k/2-a*Math.tan(s)/2,g):b==mxConstants.DIRECTION_WEST?new mxPoint(f+k,g+a/2+k*Math.tan(s)/2):new mxPoint(f, +g+a/2-k*Math.tan(s)/2):(d&&(d=new mxPoint(l,n),c.y>=g&&c.y<=g+a?(d.x=e?l:b==mxConstants.DIRECTION_WEST?f+k:f,d.y=c.y):c.x>=f&&c.x<=f+k&&(d.x=c.x,d.y=!e?n:b==mxConstants.DIRECTION_NORTH?g+a:g),l=d.x,n=d.y),t=e&&c.x<=f+k/2||!e&&c.y<=g+a/2?mxUtils.intersection(c.x,c.y,l,n,m.x,m.y,p.x,p.y):mxUtils.intersection(c.x,c.y,l,n,p.x,p.y,r.x,r.y));null==t&&(t=new mxPoint(l,n));return t},HexagonPerimeter:function(a,b,c,d){var e=a.x,f=a.y,g=a.width,k=a.height,l=a.getCenterX();a=a.getCenterY();var n=c.x,m=c.y,p= +-Math.atan2(m-a,n-l),r=Math.PI,s=Math.PI/2,q=new mxPoint(l,a);b=null!=b?mxUtils.getValue(b.style,mxConstants.STYLE_DIRECTION,mxConstants.DIRECTION_EAST):mxConstants.DIRECTION_EAST;var t=b==mxConstants.DIRECTION_NORTH||b==mxConstants.DIRECTION_SOUTH;b=new mxPoint;q=new mxPoint;if(nf+k||n>e+g&&me+g&&m>f+k)d=!1;if(d){if(t){if(n==l){if(m<=f)return new mxPoint(l,f);if(m>=f+k)return new mxPoint(l,f+k)}else if(ne+g){if(m==f+k/4)return new mxPoint(e+g,f+k/4);if(m==f+3*k/4)return new mxPoint(e+g,f+3*k/4)}else if(n==e){if(ma)return new mxPoint(e,f+3*k/4)}else if(n==e+g){if(ma)return new mxPoint(e+g,f+3*k/4)}if(m==f)return new mxPoint(l,f);if(m==f+k)return new mxPoint(l,f+k);nf+k/4&&mf+3*k/4&&(b=new mxPoint(e-Math.floor(0.5*g),f+Math.floor(0.5*k)),q=new mxPoint(e+g,f+Math.floor(1.25*k))):n>l&&(m>f+k/4&&mf+3*k/4&&(b=new mxPoint(e+Math.floor(1.5*g),f+Math.floor(0.5*k)),q=new mxPoint(e,f+Math.floor(1.25*k))))}else{if(m==a){if(n<=e)return new mxPoint(e,f+k/2);if(n>=e+g)return new mxPoint(e+g,f+k/ 2)}else if(mf+k){if(n==e+g/4)return new mxPoint(e+g/4,f+k);if(n==e+3*g/4)return new mxPoint(e+3*g/4,f+k)}else if(m==f){if(nl)return new mxPoint(e+3*g/4,f)}else if(m==f+k){if(na)return new mxPoint(e+3*g/4,f+k)}if(n==e)return new mxPoint(e,a);if(n==e+g)return new mxPoint(e+g,a);me+g/4&&ne+3*g/4&&(b=new mxPoint(e+Math.floor(0.5*g),f-Math.floor(0.5*k)),q=new mxPoint(e+Math.floor(1.25*g),f+k)):m>a&&(n>e+g/4&&ne+3*g/4&&(b=new mxPoint(e+Math.floor(0.5*g),f+Math.floor(1.5*k)),q=new mxPoint(e+Math.floor(1.25*g),f)))}d= -l;p=a;n>=e&&n<=e+g?(d=n,p=m=f&&m<=f+k&&(p=m,d=n-n?(b=new mxPoint(e+g,f), -q=new mxPoint(e+g,f+k)):p>n&&pr&&ps-n&&p<=s||p<-s+n&&p>=-s?(b=new mxPoint(e,f),q=new mxPoint(e,f+k)):p<-n&&p>-r?(b=new mxPoint(e+Math.floor(1.5*g),f+Math.floor(0.5*k)),q=new mxPoint(e,f+Math.floor(1.25*k))):p<-r&&p>-s+n&&(b=new mxPoint(e-Math.floor(0.5*g),f+Math.floor(0.5*k)),q=new mxPoint(e+g,f+ -Math.floor(1.25*k)))}else{n=Math.atan2(k/2,g/4);if(p==n)return new mxPoint(e+Math.floor(0.75*g),f);if(p==s-n)return new mxPoint(e+Math.floor(0.25*g),f);if(p==s||p==-s)return new mxPoint(e,f+Math.floor(0.5*k));if(0==p)return new mxPoint(e+g,f+Math.floor(0.5*k));if(p==-n)return new mxPoint(e+Math.floor(0.75*g),f+k);if(p==-s+n)return new mxPoint(e+Math.floor(0.25*g),f+k);0n&&ps-n&&pp&&p>-n?(b=new mxPoint(e+Math.floor(0.5*g),f+Math.floor(1.5*k)),q=new mxPoint(e+Math.floor(1.25*g),f)):p<-n&&p>-s+n?(b=new mxPoint(e,f+k),q=new mxPoint(e+g,f+k)):p<-s+n&&p>-s&&(b=new mxPoint(e-Math.floor(0.25*g),f),q=new mxPoint(e+Math.floor(0.5*g),f+Math.floor(1.5*k)))}q=mxUtils.intersection(l,a,c.x,c.y,b.x,b.y,q.x,q.y)}return null==q?new mxPoint(l,a):q}}; +l;p=a;n>=e&&n<=e+g?(d=n,p=m=f&&m<=f+k&&(p=m,d=n-n?(b=new mxPoint(e+g,f), +q=new mxPoint(e+g,f+k)):p>n&&ps&&pr-n&&p<=r||p<-r+n&&p>=-r?(b=new mxPoint(e,f),q=new mxPoint(e,f+k)):p<-n&&p>-s?(b=new mxPoint(e+Math.floor(1.5*g),f+Math.floor(0.5*k)),q=new mxPoint(e,f+Math.floor(1.25*k))):p<-s&&p>-r+n&&(b=new mxPoint(e-Math.floor(0.5*g),f+Math.floor(0.5*k)),q=new mxPoint(e+g,f+ +Math.floor(1.25*k)))}else{n=Math.atan2(k/2,g/4);if(p==n)return new mxPoint(e+Math.floor(0.75*g),f);if(p==r-n)return new mxPoint(e+Math.floor(0.25*g),f);if(p==r||p==-r)return new mxPoint(e,f+Math.floor(0.5*k));if(0==p)return new mxPoint(e+g,f+Math.floor(0.5*k));if(p==-n)return new mxPoint(e+Math.floor(0.75*g),f+k);if(p==-r+n)return new mxPoint(e+Math.floor(0.25*g),f+k);0n&&pr-n&&pp&&p>-n?(b=new mxPoint(e+Math.floor(0.5*g),f+Math.floor(1.5*k)),q=new mxPoint(e+Math.floor(1.25*g),f)):p<-n&&p>-r+n?(b=new mxPoint(e,f+k),q=new mxPoint(e+g,f+k)):p<-r+n&&p>-r&&(b=new mxPoint(e-Math.floor(0.25*g),f),q=new mxPoint(e+Math.floor(0.5*g),f+Math.floor(1.5*k)))}q=mxUtils.intersection(l,a,c.x,c.y,b.x,b.y,q.x,q.y)}return null==q?new mxPoint(l,a):q}}; function mxPrintPreview(a,b,c,d,e,f,g,k,l){this.graph=a;this.scale=null!=b?b:1/a.pageScale;this.border=null!=d?d:0;this.pageFormat=null!=c?c:a.pageFormat;this.title=null!=k?k:"Printer-friendly version";this.x0=null!=e?e:0;this.y0=null!=f?f:0;this.borderColor=g;this.pageSelector=null!=l?l:!0}mxPrintPreview.prototype.graph=null;mxPrintPreview.prototype.pageFormat=null;mxPrintPreview.prototype.scale=null;mxPrintPreview.prototype.border=0;mxPrintPreview.prototype.marginTop=0; mxPrintPreview.prototype.marginBottom=0;mxPrintPreview.prototype.x0=0;mxPrintPreview.prototype.y0=0;mxPrintPreview.prototype.autoOrigin=!0;mxPrintPreview.prototype.printOverlays=!1;mxPrintPreview.prototype.printControls=!1;mxPrintPreview.prototype.printBackgroundImage=!1;mxPrintPreview.prototype.backgroundColor="#ffffff";mxPrintPreview.prototype.borderColor=null;mxPrintPreview.prototype.title=null;mxPrintPreview.prototype.pageSelector=null;mxPrintPreview.prototype.wnd=null; mxPrintPreview.prototype.targetWindow=null;mxPrintPreview.prototype.pageCount=0;mxPrintPreview.prototype.clipping=!0;mxPrintPreview.prototype.getWindow=function(){return this.wnd}; mxPrintPreview.prototype.getDoctype=function(){var a="";5==document.documentMode?a='\x3cmeta http-equiv\x3d"X-UA-Compatible" content\x3d"IE\x3d5"\x3e':8==document.documentMode?a='\x3cmeta http-equiv\x3d"X-UA-Compatible" content\x3d"IE\x3d8"\x3e':8m,k=f.xn;else l=Math.max(b.x,c.x),n=Math.min(b.x+b.width b.x=k.x,b.y=k.y);null!=g&&(c=new mxCellState,c.x=g.x,c.y=g.y);null!=b&&null!=c&&(a=Math.max(b.x,c.x),k=Math.min(b.x+b.width,c.x+c.width),a=null!=d?d.x:Math.round(k+(a-k)/2),k=f.getRoutingCenterY(b),f=f.getRoutingCenterY(c),null!=d&&(d.y>=b.y&&d.y<=b.y+b.height&&(k=d.y),d.y>=c.y&&d.y<=c.y+c.height&&(f=d.y)),!mxUtils.contains(c,a,k)&&!mxUtils.contains(b,a,k)&&e.push(new mxPoint(a,k)),!mxUtils.contains(c,a,f)&&!mxUtils.contains(b,a,f)&&e.push(new mxPoint(a,f)),1==e.length&&(null!=d?!mxUtils.contains(c, a,d.y)&&!mxUtils.contains(b,a,d.y)&&e.push(new mxPoint(a,d.y)):(f=Math.max(b.y,c.y),b=Math.min(b.y+b.height,c.y+c.height),e.push(new mxPoint(a,f+(b-f)/2)))))},TopToBottom:function(a,b,c,d,e){var f=a.view;d=null!=d&&0=b.x&&d.x<=b.x+b.width&&(a=d.x),k=null!=d?d.y:Math.round(g+(k-g)/2),!mxUtils.contains(c,a,k)&&!mxUtils.contains(b,a,k)&&e.push(new mxPoint(a,k)),a=null!=d&&d.x>=c.x&&d.x<=c.x+c.width?d.x:f.getRoutingCenterX(c),!mxUtils.contains(c,a,k)&&!mxUtils.contains(b,a,k)&&e.push(new mxPoint(a,k)),1==e.length&&(null!=d&&1==e.length?!mxUtils.contains(c,d.x,k)&&!mxUtils.contains(b,d.x,k)&&e.push(new mxPoint(d.x,k)):(f=Math.max(b.x,c.x),b=Math.min(b.x+b.width,c.x+c.width),e.push(new mxPoint(f+(b-f)/ -2,k)))))},SegmentConnector:function(a,b,c,d,e){function f(a){if(null==l||Math.abs(l.x-a.x)>=k||Math.abs(l.y-a.y)>=k)e.push(a),l=a;return l}var g=a.absolutePoints,k=Math.max(1,a.view.scale),l=0r;r++){var z=null!=x&&x.x==u.x,v=null!=x&&x.y==u.y,D=null!=t&&u.y>=t.y&& -u.y<=t.y+t.height,t=null!=t&&u.x>=t.x&&u.x<=t.x+t.width,u=v||null==x&&D,A=z||null==x&&t;if(!(0==r&&(u&&A||z&&v))){if(null!=x&&!v&&!z&&(D||t)){n=D?!1:!0;break}if(A||u){n=u;1==r&&(n=0==d.length%2?u:A);break}}t=c;x=g[s];null!=x&&(x.x=Math.round(x.x),x.y=Math.round(x.y),t=null);u=d[d.length-1];z&&v&&(d=d.slice(1))}n&&(null!=g[0]&&g[0].y!=m.y||null==g[0]&&null!=b&&(m.yb.y+b.height))?f(new mxPoint(p.x,m.y)):!n&&(null!=g[0]&&g[0].x!=m.x||null==g[0]&&null!=b&&(m.xb.x+b.width))&&f(new mxPoint(m.x, -p.y));n?p.y=m.y:p.x=m.x;for(r=0;rc.y+c.height))?f(new mxPoint(p.x,m.y)):!n&&(null!=g[s]&&g[s].x!=m.x||null==g[s]&&null!=c&&(m.xc.x+c.width))&&f(new mxPoint(m.x,p.y))));if(null==g[0]&&null!=b)for(;1< -e.length&&null!=e[1]&&mxUtils.contains(b,e[1].x,e[1].y);)e.splice(1,1);if(null==g[s]&&null!=c)for(;1=k||Math.abs(l.y-a.y)>=k)e.push(a),l=a;return l}var g=a.absolutePoints,k=Math.max(1,a.view.scale),l=0s;s++){var z=null!=x&&x.x==u.x,v=null!=x&&x.y==u.y,D=null!=t&&u.y>=t.y&& +u.y<=t.y+t.height,t=null!=t&&u.x>=t.x&&u.x<=t.x+t.width,u=v||null==x&&D,A=z||null==x&&t;if(!(0==s&&(u&&A||z&&v))){if(null!=x&&!v&&!z&&(D||t)){n=D?!1:!0;break}if(A||u){n=u;1==s&&(n=0==d.length%2?u:A);break}}t=c;x=g[r];null!=x&&(x.x=Math.round(x.x),x.y=Math.round(x.y),t=null);u=d[d.length-1];z&&v&&(d=d.slice(1))}n&&(null!=g[0]&&g[0].y!=m.y||null==g[0]&&null!=b&&(m.yb.y+b.height))?f(new mxPoint(p.x,m.y)):!n&&(null!=g[0]&&g[0].x!=m.x||null==g[0]&&null!=b&&(m.xb.x+b.width))&&f(new mxPoint(m.x, +p.y));n?p.y=m.y:p.x=m.x;for(s=0;sc.y+c.height))?f(new mxPoint(p.x,m.y)):!n&&(null!=g[r]&&g[r].x!=m.x||null==g[r]&&null!=c&&(m.xc.x+c.width))&&f(new mxPoint(m.x,p.y))));if(null==g[0]&&null!=b)for(;1< +e.length&&null!=e[1]&&mxUtils.contains(b,e[1].x,e[1].y);)e.splice(1,1);if(null==g[r]&&null!=c)for(;1v;v++)mxEdgeStyle.limits[v][1]= +mxEdgeStyle.orthBuffer))*mxEdgeStyle.orthBuffer):b=2*mxEdgeStyle.orthBuffer);return b},OrthConnector:function(a,b,c,d,e){var f=a.view.graph,g=null==b?!1:f.getModel().isEdge(b.cell),k=null==c?!1:f.getModel().isEdge(c.cell),f=a.absolutePoints,l=f[0],n=f[f.length-1],m=null!=b?b.x:l.x,p=null!=b?b.y:l.y,r=null!=b?b.width:0,s=null!=b?b.height:0,q=null!=c?c.x:n.x,t=null!=c?c.y:n.y,x=null!=c?c.width:0,u=null!=c?c.height:0,f=a.view.scale*mxEdgeStyle.getJettySize(a,b,c,d,!0),A=a.view.scale*mxEdgeStyle.getJettySize(a, +b,c,d,!1);null!=b&&c==b&&(f=A=Math.max(f,A));var z=A+f,v=!1;if(null!=l&&null!=n)var v=n.x-l.x,D=n.y-l.y,v=v*v+D*Dv;v++)mxEdgeStyle.limits[v][1]= m[v][0]-A[v],mxEdgeStyle.limits[v][2]=m[v][1]-A[v],mxEdgeStyle.limits[v][4]=m[v][0]+m[v][2]+A[v],mxEdgeStyle.limits[v][8]=m[v][1]+m[v][3]+A[v];A=m[0][1]+m[0][3]/2;p=m[1][1]+m[1][3]/2;v=m[0][0]+m[0][2]/2-(m[1][0]+m[1][2]/2);D=A-p;A=0;0>v?A=0>D?2:1:0>=D&&(A=3,0==v&&(A=2));p=null;null!=b&&(p=l);b=[[0.5,0.5],[0.5,0.5]];for(v=0;2>v;v++)null!=p&&(b[v][0]=(p.x-m[v][0])/m[v][2],1>=Math.abs(p.x-m[v][0])?a[v]=mxConstants.DIRECTION_MASK_WEST:1>=Math.abs(p.x-m[v][0]-m[v][2])&&(a[v]=mxConstants.DIRECTION_MASK_EAST), -b[v][1]=(p.y-m[v][1])/m[v][3],1>=Math.abs(p.y-m[v][1])?a[v]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(p.y-m[v][1]-m[v][3])&&(a[v]=mxConstants.DIRECTION_MASK_SOUTH)),p=null,null!=c&&(p=n);v=m[0][1]-(m[1][1]+m[1][3]);n=m[0][0]-(m[1][0]+m[1][2]);p=m[1][1]-(m[0][1]+m[0][3]);s=m[1][0]-(m[0][0]+m[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(n-z,0);mxEdgeStyle.vertexSeperations[2]=Math.max(v-z,0);mxEdgeStyle.vertexSeperations[4]=Math.max(p-z,0);mxEdgeStyle.vertexSeperations[3]=Math.max(s-z,0);z=[]; -c=[];l=[];c[0]=n>=s?mxConstants.DIRECTION_MASK_WEST:mxConstants.DIRECTION_MASK_EAST;l[0]=v>=p?mxConstants.DIRECTION_MASK_NORTH:mxConstants.DIRECTION_MASK_SOUTH;c[1]=mxUtils.reversePortConstraints(c[0]);l[1]=mxUtils.reversePortConstraints(l[0]);n=n>=s?n:s;p=v>=p?v:p;s=[[0,0],[0,0]];r=!1;for(v=0;2>v;v++)0==a[v]&&(0==(c[v]&d[v])&&(c[v]=mxUtils.reversePortConstraints(c[v])),0==(l[v]&d[v])&&(l[v]=mxUtils.reversePortConstraints(l[v])),s[v][0]=l[v],s[v][1]=c[v]);0v;v++)if(0==a[v]&&(0==(s[v][0]&d[v])&&(s[v][0]=s[v][1]),z[v]=s[v][0]&d[v],z[v]|=(s[v][1]&d[v])<<8,z[v]|=(s[1-v][v]&d[v])<<16,z[v]|=(s[1-v][1-v]&d[v])<<24,0==(z[v]&15)&&(z[v]<<=8),0==(z[v]&3840)&&(z[v]=z[v]&15|z[v]>>8),0== +b[v][1]=(p.y-m[v][1])/m[v][3],1>=Math.abs(p.y-m[v][1])?a[v]=mxConstants.DIRECTION_MASK_NORTH:1>=Math.abs(p.y-m[v][1]-m[v][3])&&(a[v]=mxConstants.DIRECTION_MASK_SOUTH)),p=null,null!=c&&(p=n);v=m[0][1]-(m[1][1]+m[1][3]);n=m[0][0]-(m[1][0]+m[1][2]);p=m[1][1]-(m[0][1]+m[0][3]);r=m[1][0]-(m[0][0]+m[0][2]);mxEdgeStyle.vertexSeperations[1]=Math.max(n-z,0);mxEdgeStyle.vertexSeperations[2]=Math.max(v-z,0);mxEdgeStyle.vertexSeperations[4]=Math.max(p-z,0);mxEdgeStyle.vertexSeperations[3]=Math.max(r-z,0);z=[]; +c=[];l=[];c[0]=n>=r?mxConstants.DIRECTION_MASK_WEST:mxConstants.DIRECTION_MASK_EAST;l[0]=v>=p?mxConstants.DIRECTION_MASK_NORTH:mxConstants.DIRECTION_MASK_SOUTH;c[1]=mxUtils.reversePortConstraints(c[0]);l[1]=mxUtils.reversePortConstraints(l[0]);n=n>=r?n:r;p=v>=p?v:p;r=[[0,0],[0,0]];s=!1;for(v=0;2>v;v++)0==a[v]&&(0==(c[v]&d[v])&&(c[v]=mxUtils.reversePortConstraints(c[v])),0==(l[v]&d[v])&&(l[v]=mxUtils.reversePortConstraints(l[v])),r[v][0]=l[v],r[v][1]=c[v]);0v;v++)if(0==a[v]&&(0==(r[v][0]&d[v])&&(r[v][0]=r[v][1]),z[v]=r[v][0]&d[v],z[v]|=(r[v][1]&d[v])<<8,z[v]|=(r[1-v][v]&d[v])<<16,z[v]|=(r[1-v][1-v]&d[v])<<24,0==(z[v]&15)&&(z[v]<<=8),0==(z[v]&3840)&&(z[v]=z[v]&15|z[v]>>8),0== (z[v]&983040)&&(z[v]=z[v]&65535|(z[v]&251658240)>>8),a[v]=z[v]&15,d[v]==mxConstants.DIRECTION_MASK_WEST||d[v]==mxConstants.DIRECTION_MASK_NORTH||d[v]==mxConstants.DIRECTION_MASK_EAST||d[v]==mxConstants.DIRECTION_MASK_SOUTH))a[v]=d[v];d=a[0]==mxConstants.DIRECTION_MASK_EAST?3:a[0];z=a[1]==mxConstants.DIRECTION_MASK_EAST?3:a[1];d-=A;z-=A;1>d&&(d+=4);1>z&&(z+=4);d=mxEdgeStyle.routePatterns[d-1][z-1];mxEdgeStyle.wayPoints1[0][0]=m[0][0];mxEdgeStyle.wayPoints1[0][1]=m[0][1];switch(a[0]){case mxConstants.DIRECTION_MASK_WEST:mxEdgeStyle.wayPoints1[0][0]-= f;mxEdgeStyle.wayPoints1[0][1]+=b[0][1]*m[0][3];break;case mxConstants.DIRECTION_MASK_SOUTH:mxEdgeStyle.wayPoints1[0][0]+=b[0][0]*m[0][2];mxEdgeStyle.wayPoints1[0][1]+=m[0][3]+f;break;case mxConstants.DIRECTION_MASK_EAST:mxEdgeStyle.wayPoints1[0][0]+=m[0][2]+f;mxEdgeStyle.wayPoints1[0][1]+=b[0][1]*m[0][3];break;case mxConstants.DIRECTION_MASK_NORTH:mxEdgeStyle.wayPoints1[0][0]+=b[0][0]*m[0][2],mxEdgeStyle.wayPoints1[0][1]-=f}f=0;c=z=0<(a[0]&(mxConstants.DIRECTION_MASK_EAST|mxConstants.DIRECTION_MASK_WEST))? -0:1;for(v=0;v>5,p<<=A,15>=4),s=0<(d[v]&mxEdgeStyle.CENTER_MASK),(r||t)&&9>p?(r=r?0:1,q=s&&0==l?m[r][0]+b[r][0]*m[r][2]:s?m[r][1]+b[r][1]* -m[r][3]:mxEdgeStyle.limits[r][p],0==l?(p=(q-mxEdgeStyle.wayPoints1[f][0])*n[0],0>5,p<<=A,15>=4),r=0<(d[v]&mxEdgeStyle.CENTER_MASK),(s||t)&&9>p?(s=s?0:1,q=r&&0==l?m[s][0]+b[s][0]*m[s][2]:r?m[s][1]+b[s][1]* +m[s][3]:mxEdgeStyle.limits[s][p],0==l?(p=(q-mxEdgeStyle.wayPoints1[f][0])*n[0],0e&&(e+=4);1>a&&(a+=4);b=routePatterns[e-1][a-1];if(0==c||0==d)null!=inlineRoutePatterns[e-1][a- 1]&&(b=inlineRoutePatterns[e-1][a-1]);return b}},mxStyleRegistry={values:[],putValue:function(a,b){mxStyleRegistry.values[a]=b},getValue:function(a){return mxStyleRegistry.values[a]},getName:function(a){for(var b in mxStyleRegistry.values)if(mxStyleRegistry.values[b]==a)return b;return null}};mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ELBOW,mxEdgeStyle.ElbowConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ENTITY_RELATION,mxEdgeStyle.EntityRelation); mxStyleRegistry.putValue(mxConstants.EDGESTYLE_LOOP,mxEdgeStyle.Loop);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SIDETOSIDE,mxEdgeStyle.SideToSide);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_TOPTOBOTTOM,mxEdgeStyle.TopToBottom);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_ORTHOGONAL,mxEdgeStyle.OrthConnector);mxStyleRegistry.putValue(mxConstants.EDGESTYLE_SEGMENT,mxEdgeStyle.SegmentConnector);mxStyleRegistry.putValue(mxConstants.PERIMETER_ELLIPSE,mxPerimeter.EllipsePerimeter); @@ -1231,7 +1231,7 @@ mxGraphView.prototype.updateEdgeBounds=function(a){var b=a.absolutePoints,c=b[0] Math.max(1,n-k)}}; mxGraphView.prototype.getPoint=function(a,b){var c=a.getCenterX(),d=a.getCenterY();if(null!=a.segments&&(null==b||b.relative)){for(var e=a.absolutePoints.length,f=Math.round(((null!=b?b.x/2:0)+0.5)*a.length),g=a.segments[0],k=0,l=1;f>=Math.round(k+g)&&l=f?0:f*f/(a*a+n*n));a>e&&(a=e);e=Math.sqrt(mxUtils.ptSegDistSq(g.x,g.y,k.x,k.y,b,c));-1==mxUtils.relativeCcw(g.x,g.y,k.x,k.y,b,c)&&(e=-e);return new mxPoint(-2*((d/2-p-a)/d),e/this.scale)}}return new mxPoint}; mxGraphView.prototype.updateEdgeLabelOffset=function(a){var b=a.absolutePoints;a.absoluteOffset.x=a.getCenterX();a.absoluteOffset.y=a.getCenterY();if(null!=b&&0this.model.getChildCount(b)&&c--;this.model.add(b,a[k],c+k);this.autoSizeCellsOnAdd&&this.autoSizeCell(a[k],!0);this.isExtendParentsOnAdd(a[k])&&this.isExtendParent(a[k])&&this.extendParent(a[k]);(null==g||g)&&this.constrainChild(a[k]);null!=d&&this.cellConnected(a[k],d,!0);null!=e&&this.cellConnected(a[k],e,!1)}this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,"cells",a,"parent",b,"index",c,"source",d,"target", +mxGraph.prototype.cellsAdded=function(a,b,c,d,e,f,g){if(null!=a&&null!=b&&null!=c){this.model.beginUpdate();try{for(var k=f?this.view.getState(b):null,l=null!=k?k.origin:null,n=new mxPoint(0,0),k=0;kthis.model.getChildCount(b)&&c--;this.model.add(b,a[k],c+k);this.autoSizeCellsOnAdd&&this.autoSizeCell(a[k],!0);this.isExtendParentsOnAdd(a[k])&&this.isExtendParent(a[k])&&this.extendParent(a[k]);(null==g||g)&&this.constrainChild(a[k]);null!=d&&this.cellConnected(a[k],d,!0);null!=e&&this.cellConnected(a[k],e,!1)}this.fireEvent(new mxEventObject(mxEvent.CELLS_ADDED,"cells",a,"parent",b,"index",c,"source",d,"target", e,"absolute",f))}finally{this.model.endUpdate()}}};mxGraph.prototype.autoSizeCell=function(a,b){if(null!=b?b:1)for(var c=this.model.getChildCount(a),d=0;d=a&&s.y+s.height<=l&&s.y>=b&&s.x+s.width<=k?f.push(p):this.getCells(a, +mxGraph.prototype.getCells=function(a,b,c,d,e,f){f=null!=f?f:[];if(0=a&&r.y+r.height<=l&&r.y>=b&&r.x+r.width<=k?f.push(p):this.getCells(a, b,c,d,p,f)}}}return f};mxGraph.prototype.getCellsBeyond=function(a,b,c,d,e){var f=[];if(d||e)if(null==c&&(c=this.getDefaultParent()),null!=c)for(var g=this.model.getChildCount(c),k=0;k=a)&&(!e||n.y>=b)&&f.push(l)}return f}; -mxGraph.prototype.findTreeRoots=function(a,b,c){b=null!=b?b:!1;c=null!=c?c:!1;var d=[];if(null!=a){for(var e=this.getModel(),f=e.getChildCount(a),g=null,k=0,l=0;lk&&(k=m,g=n)}}0==d.length&&null!=g&&d.push(g)}return d}; +mxGraph.prototype.findTreeRoots=function(a,b,c){b=null!=b?b:!1;c=null!=c?c:!1;var d=[];if(null!=a){for(var e=this.getModel(),f=e.getChildCount(a),g=null,k=0,l=0;lk&&(k=m,g=n)}}0==d.length&&null!=g&&d.push(g)}return d}; mxGraph.prototype.traverse=function(a,b,c,d,e){if(null!=c&&null!=a&&(b=null!=b?b:!0,e=e||new mxDictionary,!e.get(a)&&(e.put(a,!0),d=c(a,d),null==d||d)))if(d=this.model.getEdgeCount(a),0d&&(a+=c,e&&(a=this.graph.snap(a/f)*f));if(0==d||3==d||5==d)p+=b,e&&(p=this.graph.snap(p/f)*f);else if(2==d||4==d||7==d)s+=b,e&&(s=this.graph.snap(s/ -f)*f);e=s-p;c=r-a;k&&(k=this.graph.getCellGeometry(this.state.cell),null!=k&&(k=k.width/k.height,1==d||2==d||7==d||6==d?e=c*k:c=e/k,0==d&&(p=s-e,a=r-c)));l&&(e+=e-n,c+=c-m,p+=q-(p+e/2),a+=t-(a+c/2));0>e&&(p+=e,e=Math.abs(e));0>c&&(a+=c,c=Math.abs(c));d=new mxRectangle(p+g.x*f,a+g.y*f,e,c);null!=this.minBounds&&(d.width=Math.max(d.width,this.minBounds.x*f+this.minBounds.width*f+Math.max(0,this.x0*f-d.x)),d.height=Math.max(d.height,this.minBounds.y*f+this.minBounds.height*f+Math.max(0,this.y0*f-d.y))); +mxVertexHandler.prototype.union=function(a,b,c,d,e,f,g,k,l){if(this.singleSizer)return d=a.x+a.width+b,g=a.y+a.height+c,e&&(d=this.graph.snap(d/f)*f,g=this.graph.snap(g/f)*f),f=new mxRectangle(a.x,a.y,0,0),f.add(new mxRectangle(d,g,0,0)),f;var n=a.width,m=a.height,p=a.x-g.x*f,r=p+n;a=a.y-g.y*f;var s=a+m,q=p+n/2,t=a+m/2;4d&&(a+=c,e&&(a=this.graph.snap(a/f)*f));if(0==d||3==d||5==d)p+=b,e&&(p=this.graph.snap(p/f)*f);else if(2==d||4==d||7==d)r+=b,e&&(r=this.graph.snap(r/ +f)*f);e=r-p;c=s-a;k&&(k=this.graph.getCellGeometry(this.state.cell),null!=k&&(k=k.width/k.height,1==d||2==d||7==d||6==d?e=c*k:c=e/k,0==d&&(p=r-e,a=s-c)));l&&(e+=e-n,c+=c-m,p+=q-(p+e/2),a+=t-(a+c/2));0>e&&(p+=e,e=Math.abs(e));0>c&&(a+=c,c=Math.abs(c));d=new mxRectangle(p+g.x*f,a+g.y*f,e,c);null!=this.minBounds&&(d.width=Math.max(d.width,this.minBounds.x*f+this.minBounds.width*f+Math.max(0,this.x0*f-d.x)),d.height=Math.max(d.height,this.minBounds.y*f+this.minBounds.height*f+Math.max(0,this.y0*f-d.y))); return d};mxVertexHandler.prototype.redraw=function(){this.selectionBounds=this.getSelectionBounds(this.state);this.bounds=new mxRectangle(this.selectionBounds.x,this.selectionBounds.y,this.selectionBounds.width,this.selectionBounds.height);this.redrawHandles();this.drawPreview()}; mxVertexHandler.prototype.getHandlePadding=function(){var a=new mxPoint(0,0),b=this.tolerance;if(null!=this.sizers&&0mxUtils.indexOf(this.toolbar.staticElements,a)&&(a.parentNode.removeChild(a),b.push(a));a=c}a=this.toolbar.fontMenu;c=this.toolbar.sizeMenu;if(null==p)this.toolbar.createTextToolbar();else{for(var e=0;emxUtils.indexOf(this.toolbar.staticElements,a)&&(a.parentNode.removeChild(a),b.push(a));a=c}a=this.toolbar.fontMenu;c=this.toolbar.sizeMenu;if(null==p)this.toolbar.createTextToolbar();else{for(var e=0;emxUtils.indexOf(A,t))&&d.setCellStyles(t,y,[k])}}}finally{d.getModel().endUpdate()}}; +l?l.split(";"):[],m=u.slice(),f=0;fmxUtils.indexOf(A,p))&&d.setCellStyles(p,y,[k])}}}finally{d.getModel().endUpdate()}}; d.addListener("cellsInserted",function(a,b){y(b.getProperty("cells"))});d.addListener("textInserted",function(a,b){y(b.getProperty("cells"),!0)});d.connectionHandler.addListener(mxEvent.CONNECT,function(a,b){var c=[b.getProperty("cell")];b.getProperty("terminalInserted")&&c.push(b.getProperty("terminal"));y(c)});this.addListener("styleChanged",mxUtils.bind(this,function(a,b){var c=b.getProperty("cells"),e=!1,f=!1;if(0this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale+0.01)/this.view.scale:(this.cumulativeZoomFactor*=this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale):0.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor= -(this.view.scale-0.01)/this.view.scale:(this.cumulativeZoomFactor/=this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale);this.cumulativeZoomFactor=Math.max(0.01,Math.min(this.view.scale*this.cumulativeZoomFactor,160)/this.view.scale);this.updateZoomTimeout=window.setTimeout(mxUtils.bind(this,function(){this.zoom(this.cumulativeZoomFactor);null!=b&&b(!1);if(null!=t&&mxUtils.hasScrollbars(a.container)){var c=mxUtils.getOffset(a.container), -d=a.container.offsetHeight/2-t.y+c.y;a.container.scrollLeft-=(a.container.offsetWidth/2-t.x+c.x)*(this.cumulativeZoomFactor-1);a.container.scrollTop-=d*(this.cumulativeZoomFactor-1)}this.cumulativeZoomFactor=1;this.updateZoomTimeout=null}),20)};mxEvent.addMouseWheelListener(mxUtils.bind(this,function(b,c){if((mxEvent.isAltDown(b)||mxEvent.isControlDown(b)&&!mxClient.IS_MAC||a.panningHandler.isActive())&&(null==this.dialogs||0==this.dialogs.length))for(var d=mxEvent.getSource(b);null!=d;){if(d==a.container){t= -new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b));a.lazyZoom(c);mxEvent.consume(b);break}d=d.parentNode}}))};EditorUi.prototype.addChromelessClickHandler=function(){var a=urlParams.highlight;null!=a&&0this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale+0.01)/this.view.scale:(this.cumulativeZoomFactor*= +this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale):0.15>=this.view.scale*this.cumulativeZoomFactor?this.cumulativeZoomFactor=(this.view.scale-0.01)/this.view.scale:(this.cumulativeZoomFactor/=this.zoomFactor,this.cumulativeZoomFactor=Math.round(20*this.view.scale*this.cumulativeZoomFactor)/20/this.view.scale);this.cumulativeZoomFactor=Math.max(0.01,Math.min(this.view.scale*this.cumulativeZoomFactor,160)/this.view.scale);this.updateZoomTimeout= +window.setTimeout(mxUtils.bind(this,function(){this.zoom(this.cumulativeZoomFactor);null!=b&&b(!1);if(null!=v&&mxUtils.hasScrollbars(a.container)){var c=mxUtils.getOffset(a.container),d=a.container.offsetHeight/2-v.y+c.y;a.container.scrollLeft-=(a.container.offsetWidth/2-v.x+c.x)*(this.cumulativeZoomFactor-1);a.container.scrollTop-=d*(this.cumulativeZoomFactor-1)}this.cumulativeZoomFactor=1;this.updateZoomTimeout=null}),20)};mxEvent.addMouseWheelListener(mxUtils.bind(this,function(b,c){if((mxEvent.isAltDown(b)|| +mxEvent.isControlDown(b)&&!mxClient.IS_MAC||a.panningHandler.isActive())&&(null==this.dialogs||0==this.dialogs.length))for(var d=mxEvent.getSource(b);null!=d;){if(d==a.container){v=new mxPoint(mxEvent.getClientX(b),mxEvent.getClientY(b));a.lazyZoom(c);mxEvent.consume(b);break}d=d.parentNode}}))}; +EditorUi.prototype.createTemporaryGraph=function(a){a=new Graph(document.createElement("div"),null,null,a);a.resetViewOnRootChange=!1;a.setConnectable(!1);a.gridEnabled=!1;a.autoScroll=!1;a.setTooltips(!1);a.setEnabled(!1);a.container.style.visibility="hidden";a.container.style.position="absolute";a.container.style.overflow="hidden";a.container.style.height="1px";a.container.style.width="1px";return a}; +EditorUi.prototype.addChromelessClickHandler=function(){var a=urlParams.highlight;null!=a&&0mxUtils.indexOf(b,e)&&c.push(e)): -c.push(b[d])}return c};this.connectionHandler.createTargetVertex=function(a,b){var c=this.graph.view.getState(b),c=null!=c?c.style:this.graph.getCellStyle(b);mxUtils.getValue(c,"part",!1)&&(c=this.graph.model.getParent(b),this.graph.model.isVertex(c)&&(b=c));return mxConnectionHandler.prototype.createTargetVertex.apply(this,arguments)};var p=new mxRubberband(this);this.getRubberband=function(){return p};var s=(new Date).getTime(),r=0,q=this.connectionHandler.mouseMove;this.connectionHandler.mouseMove= -function(){var a=this.currentState;q.apply(this,arguments);a!=this.currentState?(s=(new Date).getTime(),r=0):r=(new Date).getTime()-s};var t=this.connectionHandler.isOutlineConnectEvent;this.connectionHandler.isOutlineConnectEvent=function(a){return null!=this.currentState&&a.getState()==this.currentState&&2E3=a&&(t.y+t.height<=l&&t.y>=b&&t.x+t.width<=k)&&f.push(q);this.getAllCells(a,b,c,d,q,f)}}}return f};var D=this.graphHandler.shouldRemoveCellsFromParent;this.graphHandler.shouldRemoveCellsFromParent=function(a,b,c){return this.graph.isCellSelected(a)?!1:D.apply(this,arguments)};this.isCellLocked=function(a){for(a=this.view.getState(a);null!=a;){if("1"==mxUtils.getValue(a.style, "locked","0"))return!0;a=this.view.getState(this.model.getParent(a.cell))}return!1};var y=null;this.addListener(mxEvent.FIRE_MOUSE_EVENT,mxUtils.bind(this,function(a,b){if("mouseDown"==b.getProperty("eventName")){var c=b.getProperty("event").getState();y=null!=c&&!this.isSelectionEmpty()&&!this.isCellSelected(c.cell)?this.getSelectionCells():null}}));this.addListener(mxEvent.TAP_AND_HOLD,mxUtils.bind(this,function(a,b){if(!mxEvent.isMultiTouchEvent(b)){var c=b.getProperty("event"),d=b.getProperty("cell"); null==d?(c=mxUtils.convertPoint(this.container,mxEvent.getClientX(c),mxEvent.getClientY(c)),p.start(c.x,c.y)):null!=y?this.addSelectionCells(y):1s?"a":"p",tt:12>s?"am":"pm",T:12>s?"A":"P",TT:12>s?"AM":"PM",Z:c?"UTC":(String(a).match(e)||[""]).pop().replace(f,""),o:(0r?"a":"p",tt:12>r?"am":"pm",T:12>r?"A":"P",TT:12>r?"AM":"PM",Z:c?"UTC":(String(a).match(e)||[""]).pop().replace(f,""),o:(0this.activationDelay)if(this.currentState!=a&&(d>this.updateDelay&&null!=a||null==this.bbox||null==b||null==c||!mxUtils.contains(this.bbox,b,c)))null!=a&&this.graph.isEnabled()?(this.removeNodes(),this.setCurrentState(a),this.repaint(),this.graph.connectionHandler.constraintHandler.currentFocus!= a&&this.graph.connectionHandler.constraintHandler.reset()):this.reset()}else this.reset()};HoverIcons.prototype.setCurrentState=function(a){"eastwest"!=a.style.portConstraint&&(this.graph.container.appendChild(this.arrowUp),this.graph.container.appendChild(this.arrowDown));this.graph.container.appendChild(this.arrowRight);this.graph.container.appendChild(this.arrowLeft);this.currentState=a}; -(function(){var a=mxGraphView.prototype.updateFloatingTerminalPoint;mxGraphView.prototype.updateFloatingTerminalPoint=function(b,c,f,g){if(null!=c&&null!=b&&("1"==c.style.snapToPoint||"1"==b.style.snapToPoint)){c=this.getTerminalPort(b,c,g);var k=this.getNextPoint(b,f,g),l=this.graph.isOrthogonal(b),n=mxUtils.toRadians(Number(c.style[mxConstants.STYLE_ROTATION]||"0")),m=new mxPoint(c.getCenterX(),c.getCenterY());if(0!=n)var p=Math.cos(-n),s=Math.sin(-n),k=mxUtils.getRotatedPoint(k,p,s,m);p=parseFloat(b.style[mxConstants.STYLE_PERIMETER_SPACING]|| -0);p+=parseFloat(b.style[g?mxConstants.STYLE_SOURCE_PERIMETER_SPACING:mxConstants.STYLE_TARGET_PERIMETER_SPACING]||0);k=this.getPerimeterPoint(c,k,0==n&&l,p);0!=n&&(p=Math.cos(n),s=Math.sin(n),k=mxUtils.getRotatedPoint(k,p,s,m));if(null!=c){n=this.graph.getAllConnectionConstraints(c);l=m=null;for(p=0;pg||Math.abs(f)>g)null==this.div&&(this.div=this.createShape()),mxUtils.clearSelection(),this.update(d,c),this.isSpaceEvent(b)?(d=this.x+this.width,c=this.y+this.height,e=this.graph.view.scale,mxEvent.isAltDown(b.getEvent())||(this.width=this.graph.snap(this.width/e)*e,this.height=this.graph.snap(this.height/e)*e,this.graph.isGridEnabled()||(this.width=this.width?"0px 1px 0px 0px":"0px 1px 0px 1px",null==this.secondDiv&&(this.secondDiv=this.div.cloneNode(!0),this.div.parentNode.appendChild(this.secondDiv)), this.secondDiv.style.left=this.x+"px",this.secondDiv.style.top=this.y+"px",this.secondDiv.style.width=this.graph.container.clientWidth+"px",this.secondDiv.style.height=Math.max(0,this.height)+"px",this.secondDiv.style.borderWidth=0>=this.height?"1px 0px 0px 0px":"1px 0px 1px 0px"):(this.div.style.backgroundColor="",this.div.style.borderWidth="",this.div.style.borderStyle="",null!=this.secondDiv&&(this.secondDiv.parentNode.removeChild(this.secondDiv),this.secondDiv=null)),b.consume()}};var A=mxRubberband.prototype.reset; @@ -2362,7 +2368,7 @@ function(a){return null!=this.currentTerminalState&&a.getState()==this.currentTe mxConstants.HANDLE_STROKECOLOR)};var E=mxVertexHandler.prototype.createSizerShape;mxVertexHandler.prototype.createSizerShape=function(a,b,c){this.handleImage=b==mxEvent.ROTATION_HANDLE?x:b==mxEvent.LABEL_HANDLE?this.secondaryHandleImage:this.handleImage;return E.apply(this,arguments)};var C=mxGraphHandler.prototype.getBoundingBox;mxGraphHandler.prototype.getBoundingBox=function(a){if(null!=a&&1==a.length){var b=this.graph.getModel(),c=b.getParent(a[0]),d=this.graph.getCellGeometry(a[0]);if(b.isEdge(c)&& null!=d&&d.relative&&(b=this.graph.view.getState(a[0]),null!=b&&2>b.width&&2>b.height&&null!=b.text&&null!=b.text.boundingBox))return mxRectangle.fromRectangle(b.text.boundingBox)}return C.apply(this,arguments)};var F=mxVertexHandler.prototype.getSelectionBounds;mxVertexHandler.prototype.getSelectionBounds=function(a){var b=this.graph.getModel(),c=b.getParent(a.cell),d=this.graph.getCellGeometry(a.cell);return b.isEdge(c)&&null!=d&&d.relative&&2>a.width&&2>a.height&&null!=a.text&&null!=a.text.boundingBox? (b=a.text.unrotatedBoundingBox||a.text.boundingBox,new mxRectangle(Math.round(b.x),Math.round(b.y),Math.round(b.width),Math.round(b.height))):F.apply(this,arguments)};var G=mxVertexHandler.prototype.mouseDown;mxVertexHandler.prototype.mouseDown=function(a,b){var c=this.graph.getModel(),d=c.getParent(this.state.cell),e=this.graph.getCellGeometry(this.state.cell);(this.getHandleForEvent(b)==mxEvent.ROTATION_HANDLE||!c.isEdge(d)||null==e||!e.relative||null==this.state||2<=this.state.width||2<=this.state.height)&& -G.apply(this,arguments)};mxVertexHandler.prototype.isRotationHandleVisible=function(){return this.graph.isEnabled()&&this.rotationEnabled&&this.graph.isCellRotatable(this.state.cell)&&(0>=mxGraphHandler.prototype.maxCells||this.graph.getSelectionCount()=mxGraphHandler.prototype.maxCells||this.graph.getSelectionCount()e)this.originalLineTo.apply(this.canvas,arguments);else{var f=Math.round(e/10),g=this.defaultVariation;5>f&&(f=5,g/=3);for(var k=function(a){return"number"===typeof a?a?0>a?-1:1:a===a?0:NaN:NaN}, -l=k(a-this.lastX)*c/f,k=k(b-this.lastY)*d/f,c=c/e,d=d/e,e=0;e=document.documentMode?(mxEvent.addListener(window,"resize",d),this.graph.addListener("size",d)):new ResizeSensor(this.graph.container,d);if(this.graphConfig.resize||(this.zoomEnabled|| @@ -2800,25 +2806,28 @@ function(){f.style.backgroundColor="#eee"}),mxUtils.setOpacity(a,60),f.style.cur c.style.whiteSpace="nowrap";c.style.zIndex=this.toolbarZIndex;c.style.backgroundColor="#eee";c.style.height=this.toolbarHeight+"px";this.toolbar=c;if("inline"==this.graphConfig["toolbar-position"]){mxUtils.setPrefixedStyle(c.style,"transition","opacity 100ms ease-in-out");mxUtils.setOpacity(c,30);var d=null,e=null,f=mxUtils.bind(this,function(a){null!=d&&(window.clearTimeout(d),fadeThead=null);null!=e&&(window.clearTimeout(e),fadeThead2=null);d=window.setTimeout(mxUtils.bind(this,function(){mxUtils.setOpacity(c, 0);d=null;e=window.setTimeout(mxUtils.bind(this,function(){c.style.display="none";e=null}),100)}),a||200)}),g=mxUtils.bind(this,function(a){null!=d&&(window.clearTimeout(d),fadeThead=null);null!=e&&(window.clearTimeout(e),fadeThead2=null);c.style.display="";mxUtils.setOpacity(c,a||30)});mxEvent.addListener(this.graph.container,mxClient.IS_POINTER?"pointermove":"mousemove",mxUtils.bind(this,function(a){mxEvent.isTouchEvent(a)||(g(30),f())}));mxEvent.addListener(c,mxClient.IS_POINTER?"pointermove": "mousemove",function(a){mxEvent.consume(a)});mxEvent.addListener(c,"mouseenter",mxUtils.bind(this,function(a){g(100)}));mxEvent.addListener(c,"mousemove",mxUtils.bind(this,function(a){g(100);mxEvent.consume(a)}));mxEvent.addListener(c,"mouseleave",mxUtils.bind(this,function(a){mxEvent.isTouchEvent(a)||g(30)}));var k=this.graph,l=k.getTolerance();k.addMouseListener({startX:0,startY:0,scrollLeft:0,scrollTop:0,mouseDown:function(a,b){this.startX=b.getGraphX();this.startY=b.getGraphY();this.scrollLeft= -k.container.scrollLeft;this.scrollTop=k.container.scrollTop},mouseMove:function(a,b){},mouseUp:function(a,b){mxEvent.isTouchEvent(b.getEvent())&&Math.abs(this.scrollLeft-k.container.scrollLeft)= 0) + { + return verbSelect.value != 'show'; + } + } + } + } + + return verbSelect.value == 'show' + } + + return false; + }; + + mxUtils.br(div); + + var resetBtn = mxUtils.button(mxResources.get('reset'), function() + { + tagInput.value = ''; + tagList = []; + verbSelect.value = 'show'; + graph.refresh(); + }); + resetBtn.style.marginTop = '4px'; + resetBtn.style.padding = '4px'; + div.appendChild(resetBtn); + + var btn = mxUtils.button(mxResources.get('apply'), function() + { + tagList = tagInput.value.split(' '); + graph.refresh(); + }); + btn.style.marginTop = '4px'; + btn.style.padding = '4px'; + div.appendChild(btn); + + var wnd = new mxWindow('Tags', div, 0, 0, 200, 120, true, true); + wnd.destroyOnClose = false; + wnd.setMaximizable(false); + wnd.setResizable(true); + wnd.setClosable(false); + wnd.setVisible(true); +}); diff --git a/war/resources/dia.txt b/war/resources/dia.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia.txt +++ b/war/resources/dia.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_am.txt b/war/resources/dia_am.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_am.txt +++ b/war/resources/dia_am.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_ar.txt b/war/resources/dia_ar.txt index 55963e05..345ee3a5 100644 --- a/war/resources/dia_ar.txt +++ b/war/resources/dia_ar.txt @@ -15,6 +15,7 @@ advanced=‫متقدم‬ align=‫صُف‬ alignment=‫محاذاة‬ allChangesLost=‫سيتم فقد جميع التغييرات‬ +allPages=All Pages android=Android angle=‫زاوية‬ areYouSure=‫هل أنت متأكد؟‬ @@ -523,7 +524,7 @@ scrollbars=‫أشرطة التمرير‬ search=‫بحث‬ searchShapes=Search Shapes selectAll=‫تحديد الكل‬ -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=‫تحديد الحواف‬ selectFont=‫تحديد الخط‬ selectNone=Select None @@ -582,7 +583,7 @@ topAlign=‫محاذاة إلى الأعلى‬ topLeft=Top Left topRight=Top Right transparent=‫شفاف‬ -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=‫إعادة المحاولة‬ tryOpeningViaThisPage=Try opening via this page. turn=‫تدوير‬ diff --git a/war/resources/dia_bg.txt b/war/resources/dia_bg.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_bg.txt +++ b/war/resources/dia_bg.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_bn.txt b/war/resources/dia_bn.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_bn.txt +++ b/war/resources/dia_bn.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_bs.txt b/war/resources/dia_bs.txt index 35764d89..0cc123be 100644 --- a/war/resources/dia_bs.txt +++ b/war/resources/dia_bs.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Poravnaj alignment=Poravnanje allChangesLost=Sve promjene će biti izgubljene! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Skrolbarovi search=Pretraga searchShapes=Search Shapes selectAll=Izaberi sve -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Izaberi grane selectFont=Izaberi font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Gornje poravnanje topLeft=Top Left topRight=Top Right transparent=Proziran -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_ca.txt b/war/resources/dia_ca.txt index 6149615c..40b5ec97 100644 --- a/war/resources/dia_ca.txt +++ b/war/resources/dia_ca.txt @@ -15,6 +15,7 @@ advanced=Avançat align=Alinea alignment=Alineació allChangesLost=Es perderan tots els canvis! +allPages=All Pages android=Android angle=Angle areYouSure=N'esteu segurs? @@ -523,7 +524,7 @@ scrollbars=Barres de desplaçament search=Buscador searchShapes=Search Shapes selectAll=Selecciona-ho tot -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Selecciona les vores selectFont=Selecciona una font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Alinea a dalt topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Intenta-ho novament tryOpeningViaThisPage=Try opening via this page. turn=Gira diff --git a/war/resources/dia_cs.txt b/war/resources/dia_cs.txt index 76f91ecc..d64a950b 100644 --- a/war/resources/dia_cs.txt +++ b/war/resources/dia_cs.txt @@ -15,6 +15,7 @@ advanced=Pokročilé align=Zarovnat alignment=Zarovnání allChangesLost=Všechny změny budou ztraceny! +allPages=All Pages android=Android angle=Úhel areYouSure=Jste si jisti? @@ -523,7 +524,7 @@ scrollbars=Rolovací lišty search=Hledat searchShapes=Search Shapes selectAll=Vybrat vše -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Vybrat hrany selectFont=Vybrat písmo selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Zarovnání shora topLeft=Top Left topRight=Top Right transparent=Průhledný -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Zkusit znovu tryOpeningViaThisPage=Try opening via this page. turn=Otočit diff --git a/war/resources/dia_da.txt b/war/resources/dia_da.txt index 52ab9378..865f3258 100644 --- a/war/resources/dia_da.txt +++ b/war/resources/dia_da.txt @@ -15,6 +15,7 @@ advanced=Avanceret align=Juster alignment=Justering allChangesLost=Alle ændringer vil gå tabt! +allPages=All Pages android=Android angle=Vinkel areYouSure=Er du sikker? @@ -523,7 +524,7 @@ scrollbars=Rullebjælker search=Søg searchShapes=Search Shapes selectAll=Vælg Alt -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Vælg Kanter selectFont=Vælg en skrifttype selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top topLeft=Top Left topRight=Top Right transparent=Gennemsigtig -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Forsøg igen tryOpeningViaThisPage=Try opening via this page. turn=Drej diff --git a/war/resources/dia_de.txt b/war/resources/dia_de.txt index c5778be7..fdcb3b54 100644 --- a/war/resources/dia_de.txt +++ b/war/resources/dia_de.txt @@ -15,6 +15,7 @@ advanced=Erweitert align=Ausrichten alignment=Ausrichtung allChangesLost=Alle Änderungen gehen verloren! +allPages=Alle Seiten android=Android angle=Winkel areYouSure=Sind Sie sicher? diff --git a/war/resources/dia_el.txt b/war/resources/dia_el.txt index 1d0fec77..2e658110 100644 --- a/war/resources/dia_el.txt +++ b/war/resources/dia_el.txt @@ -15,6 +15,7 @@ advanced=Προχωρημένο align=Στοίχισε alignment=Στοίχιση allChangesLost=Όλες οι αλλαγές θα χαθούν! +allPages=All Pages android=Android angle=Γωνία areYouSure=Είστε βέβαιοι; @@ -523,7 +524,7 @@ scrollbars=Μπάρες κύλισης search=Αναζήτηση searchShapes=Search Shapes selectAll=Επιλογή Όλων -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Επιλογή άκρων selectFont=Επιλογή γραμματοσειράς selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Στοίχιση στην Κορυφή topLeft=Top Left topRight=Top Right transparent=Διαφανές -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Δοκιμάστε ξανά tryOpeningViaThisPage=Try opening via this page. turn=Στροφή diff --git a/war/resources/dia_es.txt b/war/resources/dia_es.txt index f49295f5..c3dc8974 100644 --- a/war/resources/dia_es.txt +++ b/war/resources/dia_es.txt @@ -15,6 +15,7 @@ advanced=Avanzado align=Alinear alignment=Alineación allChangesLost=¡Se perderán todos los cambios! +allPages=All Pages android=Android angle=Ángulo areYouSure=¿Estás seguro? @@ -523,7 +524,7 @@ scrollbars=Barras de desplazamiento search=Búsqueda searchShapes=Search Shapes selectAll=Seleccionar todo -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Seleccionar bordes selectFont=Seleccionar una fuente selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Alinear arriba topLeft=Top Left topRight=Top Right transparent=Transparente -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Reintentar tryOpeningViaThisPage=Try opening via this page. turn=Girar diff --git a/war/resources/dia_et.txt b/war/resources/dia_et.txt index c86dec2e..f5690ca7 100644 --- a/war/resources/dia_et.txt +++ b/war/resources/dia_et.txt @@ -15,6 +15,7 @@ advanced=Detailne align=Joonda alignment=Joondamine allChangesLost=Kõik muudatused kaovad! +allPages=All Pages android=Android angle=Nurk areYouSure=Oled kindel? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_fa.txt b/war/resources/dia_fa.txt index 8cb90609..0964742a 100644 --- a/war/resources/dia_fa.txt +++ b/war/resources/dia_fa.txt @@ -15,6 +15,7 @@ advanced=‫پیشرفته‬ align=‫تراز‬ alignment=‫هم‌ترازی‬ allChangesLost=‫تمامی تغییرات از دست خواهند رفت!‬ +allPages=All Pages android=‫اندروید‬ angle=‫زاویه‬ areYouSure=‫آیا مطمئن هستید؟‬ @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=‫دوباره سعی نمایید‬ tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_fi.txt b/war/resources/dia_fi.txt index 4f2281dc..3794411a 100644 --- a/war/resources/dia_fi.txt +++ b/war/resources/dia_fi.txt @@ -15,6 +15,7 @@ advanced=Edistynyt align=Kohdista alignment=Kohdistus allChangesLost=Kaikki muutokset menetään! +allPages=All Pages android=Android angle=Kulma areYouSure=Oletko varma? diff --git a/war/resources/dia_fil.txt b/war/resources/dia_fil.txt index 827edd43..d6261cbd 100644 --- a/war/resources/dia_fil.txt +++ b/war/resources/dia_fil.txt @@ -15,6 +15,7 @@ advanced=Mas una align=Ihanay alignment=Paghahanay allChangesLost=Lahat ng pagbabago ay mawawala +allPages=All Pages android=Android angle=Anggulo areYouSure=Sigurado ka ba? @@ -523,7 +524,7 @@ scrollbars=Iskrolbars search=Hanap searchShapes=Search Shapes selectAll=Piliin lahat -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Piliin ang mga kanto selectFont=Pumili ng pont selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Ihanay ang taas topLeft=Top Left topRight=Top Right transparent=Kita ng tagusan -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Subukan muli tryOpeningViaThisPage=Try opening via this page. turn=Iikot diff --git a/war/resources/dia_fr.txt b/war/resources/dia_fr.txt index 6fdffa77..b1a13ce3 100644 --- a/war/resources/dia_fr.txt +++ b/war/resources/dia_fr.txt @@ -15,6 +15,7 @@ advanced=Avancé align=Aligner alignment=Alignement allChangesLost=Toutes les modifications seront perdues! +allPages=All Pages android=Android angle=Angle areYouSure=Êtes-vous sûr? @@ -523,7 +524,7 @@ scrollbars=Barres de défilement search=Chercher searchShapes=Search Shapes selectAll=Tout sélectionner -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Selectionner les bordures selectFont=Sélectionner une police selectNone=Tout désélectionner diff --git a/war/resources/dia_gu.txt b/war/resources/dia_gu.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_gu.txt +++ b/war/resources/dia_gu.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_he.txt b/war/resources/dia_he.txt index 4f575a4a..4b4332cb 100644 --- a/war/resources/dia_he.txt +++ b/war/resources/dia_he.txt @@ -15,6 +15,7 @@ advanced=‫מתקדם‬ align=‫ישר‬ alignment=‫יישור ‬ allChangesLost=‫כל השינויים יאבדו!‬ +allPages=All Pages android=Android angle=‫זווית‬ areYouSure=‫האם אתה בטוח?‬ @@ -523,7 +524,7 @@ scrollbars=‫סרגלי גלילה‬ search=‫חפש‬ searchShapes=Search Shapes selectAll=‫בחר הכל‬ -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=‫בחר קצוות‬ selectFont=‫בחר גופן‬ selectNone=Select None @@ -582,7 +583,7 @@ topAlign=‫יישור למעלה‬ topLeft=Top Left topRight=Top Right transparent=‫שקוף‬ -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=‫נסה שוב‬ tryOpeningViaThisPage=Try opening via this page. turn=‫הפוך‬ diff --git a/war/resources/dia_hi.txt b/war/resources/dia_hi.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_hi.txt +++ b/war/resources/dia_hi.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_hr.txt b/war/resources/dia_hr.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_hr.txt +++ b/war/resources/dia_hr.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_hu.txt b/war/resources/dia_hu.txt index f9d2204c..9f795200 100644 --- a/war/resources/dia_hu.txt +++ b/war/resources/dia_hu.txt @@ -15,6 +15,7 @@ advanced=Haladó align=Igazít alignment=Igazítás allChangesLost=Elvesz minden változtatás! +allPages=All Pages android=Android angle=Szög areYouSure=Biztos benne? @@ -523,7 +524,7 @@ scrollbars=Gördítősávok search=Keresés searchShapes=Search Shapes selectAll=Mindent kijelöl -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Éleket kijelöl selectFont=Betűkészlet választás selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Felső igazítás topLeft=Top Left topRight=Top Right transparent=Átlátszó -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Újra próbál tryOpeningViaThisPage=Try opening via this page. turn=Fordít diff --git a/war/resources/dia_i18n.txt b/war/resources/dia_i18n.txt index a8f740df..296d8ba9 100644 --- a/war/resources/dia_i18n.txt +++ b/war/resources/dia_i18n.txt @@ -15,6 +15,7 @@ advanced=advanced align=align alignment=alignment allChangesLost=allChangesLost +allPages=allPages android=android angle=angle areYouSure=areYouSure diff --git a/war/resources/dia_id.txt b/war/resources/dia_id.txt index d4f92509..a16fd595 100644 --- a/war/resources/dia_id.txt +++ b/war/resources/dia_id.txt @@ -15,6 +15,7 @@ advanced=Tingkat lanjutan align=Rata alignment=Perataan allChangesLost=Semua perubahan akan hilang! +allPages=All Pages android=Android angle=Sudut areYouSure=Apakah kamu yakin? @@ -523,7 +524,7 @@ scrollbars=Baris Gulung search=Cari searchShapes=Search Shapes selectAll=Pilih Semua -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Pilih Tepi selectFont=Pilih font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Rata Atas topLeft=Top Left topRight=Top Right transparent=Transparan -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Coba lagi tryOpeningViaThisPage=Try opening via this page. turn=Mengubah diff --git a/war/resources/dia_it.txt b/war/resources/dia_it.txt index e07d8380..efc16731 100644 --- a/war/resources/dia_it.txt +++ b/war/resources/dia_it.txt @@ -15,6 +15,7 @@ advanced=Avanzate align=Allinea alignment=Allineamento allChangesLost=Tutte le modifiche saranno perse! +allPages=All Pages android=Android angle=Angolo areYouSure=Sei sicuro? @@ -523,7 +524,7 @@ scrollbars=Barre di scorrimento search=Cerca searchShapes=Search Shapes selectAll=Seleziona tutto -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Seleziona bordi selectFont=Scegli un font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Allinea in alto topLeft=Top Left topRight=Top Right transparent=Trasparente -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Prova di nuovo tryOpeningViaThisPage=Try opening via this page. turn=Ruota diff --git a/war/resources/dia_ja.txt b/war/resources/dia_ja.txt index 23ff4d59..5a0ace8d 100644 --- a/war/resources/dia_ja.txt +++ b/war/resources/dia_ja.txt @@ -15,6 +15,7 @@ advanced=アドバンスド align=整列 alignment=文字配置 allChangesLost=すべての変更が失われます! +allPages=All Pages android=アンドロイド angle=角度 areYouSure=ほんとにいいですか? @@ -523,7 +524,7 @@ scrollbars=スクロールバー search=検索 searchShapes=Search Shapes selectAll=全ての選択 -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=エッジを選択 selectFont=フォントの選択 selectNone=選択解除 @@ -582,7 +583,7 @@ topAlign=上端揃え topLeft=上端左 topRight=上端右 transparent=透明 -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=もう一度お試しください tryOpeningViaThisPage=Try opening via this page. turn=回転 diff --git a/war/resources/dia_kn.txt b/war/resources/dia_kn.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_kn.txt +++ b/war/resources/dia_kn.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_ko.txt b/war/resources/dia_ko.txt index 3152ffce..e57f8d26 100644 --- a/war/resources/dia_ko.txt +++ b/war/resources/dia_ko.txt @@ -15,6 +15,7 @@ advanced=고급 align=정렬 alignment=정렬 allChangesLost=모든 변경내용이 손실됩니다! +allPages=All Pages android=Android angle=각 areYouSure=계속 진행하시겠습니까? @@ -523,7 +524,7 @@ scrollbars=스크롤바 search=검색 searchShapes=Search Shapes selectAll=모두 선택 -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=선 선택 selectFont=글꼴 선택 selectNone=Select None @@ -582,7 +583,7 @@ topAlign=위로 정렬 topLeft=Top Left topRight=Top Right transparent=투명 -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=다시 시도하십시오 tryOpeningViaThisPage=Try opening via this page. turn=회전 diff --git a/war/resources/dia_lt.txt b/war/resources/dia_lt.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_lt.txt +++ b/war/resources/dia_lt.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_lv.txt b/war/resources/dia_lv.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_lv.txt +++ b/war/resources/dia_lv.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_ml.txt b/war/resources/dia_ml.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_ml.txt +++ b/war/resources/dia_ml.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_mr.txt b/war/resources/dia_mr.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_mr.txt +++ b/war/resources/dia_mr.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_ms.txt b/war/resources/dia_ms.txt index 42dd429c..a51e4d82 100644 --- a/war/resources/dia_ms.txt +++ b/war/resources/dia_ms.txt @@ -15,6 +15,7 @@ advanced=Lanjutan align=Menjajar alignment=Penjajaran allChangesLost=Semua perubahan akan hilang! +allPages=All Pages android=Android angle=Sudut areYouSure=Pastikah anda? @@ -523,7 +524,7 @@ scrollbars=Baris gulung search=Cari searchShapes=Search Shapes selectAll=Pilih semua -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Pilih tepi selectFont=Pilih satu font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Jajaran atas topLeft=Top Left topRight=Top Right transparent=Lutsinar -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Cuba lagi tryOpeningViaThisPage=Try opening via this page. turn=Pusing diff --git a/war/resources/dia_nl.txt b/war/resources/dia_nl.txt index 382d20f9..74689686 100644 --- a/war/resources/dia_nl.txt +++ b/war/resources/dia_nl.txt @@ -15,6 +15,7 @@ advanced=Geavanceerd align=In lijn brengen alignment=Uitlijnen allChangesLost=Alle veranderingen zullen verloren gaan! +allPages=All Pages android=Android angle=Hoek areYouSure=Zeker weten? @@ -523,7 +524,7 @@ scrollbars=Schuifbalken search=Zoeken searchShapes=Search Shapes selectAll=Alles Selecteren -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Selecteer Randen selectFont=Selecteer Lettertype selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Boven uitlijnen topLeft=Top Left topRight=Top Right transparent=Transparant -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Opnieuw proberen tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_no.txt b/war/resources/dia_no.txt index 72e35262..fe626a3b 100644 --- a/war/resources/dia_no.txt +++ b/war/resources/dia_no.txt @@ -15,6 +15,7 @@ advanced=Avansert align=Juster alignment=Justering allChangesLost=Alle endringer vil gå tapt +allPages=All Pages android=Android angle=Vinkel areYouSure=Er du sikker? @@ -523,7 +524,7 @@ scrollbars=Rullefelt search=Søk searchShapes=Search Shapes selectAll=Velg alt -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Velg kanter selectFont=Velg en skrifttype selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Toppjustering topLeft=Top Left topRight=Top Right transparent=Gjennomsiktig -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Prøv på nytt tryOpeningViaThisPage=Try opening via this page. turn=Vend diff --git a/war/resources/dia_pl.txt b/war/resources/dia_pl.txt index cc08fdd6..a2e68ff7 100644 --- a/war/resources/dia_pl.txt +++ b/war/resources/dia_pl.txt @@ -15,6 +15,7 @@ advanced=Zaawansowane align=Wyrównaj alignment=Wyrównywanie allChangesLost=Wszystkie zmiany zostaną utracone! +allPages=All Pages android=Android angle=Kąt areYouSure=Czy jesteś pewny? @@ -523,7 +524,7 @@ scrollbars=Paski przewijania search=Szukaj searchShapes=Szukaj kształtów selectAll=Zaznacz wszystko -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Zaznacz brzegi selectFont=Wybierz czcionkę selectNone=Odznacz wszystko @@ -582,7 +583,7 @@ topAlign=Wyrównaj do góry topLeft=Lewy górny topRight=Prawy górny transparent=Przezroczysty -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Spróbuj ponownie tryOpeningViaThisPage=Spróbuj otworzyć poprzez tę stronę. turn=Obróć diff --git a/war/resources/dia_pt-br.txt b/war/resources/dia_pt-br.txt index e5f7de37..46dc94e9 100644 --- a/war/resources/dia_pt-br.txt +++ b/war/resources/dia_pt-br.txt @@ -15,6 +15,7 @@ advanced=Avançado align=Alinhar  alignment=Alinhamento allChangesLost=Todas as modificações serão perdidas!  +allPages=All Pages android=Android angle=Ângulo areYouSure=Tem certeza? @@ -523,7 +524,7 @@ scrollbars=Barras de rolagem search=Buscar searchShapes=Search Shapes selectAll=Selecionar tudo  -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Selecione bordas  selectFont=Selecione uma fonte  selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Alinhar ao topo topLeft=Top Left topRight=Top Right transparent=Transparente -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Tentar novamente tryOpeningViaThisPage=Try opening via this page. turn=Virar diff --git a/war/resources/dia_pt.txt b/war/resources/dia_pt.txt index 771da7bc..1fde9149 100644 --- a/war/resources/dia_pt.txt +++ b/war/resources/dia_pt.txt @@ -15,6 +15,7 @@ advanced=Avançado align=Alinhar  alignment=Alinhamento allChangesLost=Todas as alterações serão perdidas!  +allPages=All Pages android=Android angle=Ângulo areYouSure=Tem a certeza? @@ -523,7 +524,7 @@ scrollbars=Barras de rolagem search=Pesquisar searchShapes=Search Shapes selectAll=Selecionar tudo  -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Selecionar margens selectFont=Selecionar uma fonte  selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Alinhar ao topo topLeft=Top Left topRight=Top Right transparent=Transparente -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Tentar novamente tryOpeningViaThisPage=Try opening via this page. turn=Virar diff --git a/war/resources/dia_ro.txt b/war/resources/dia_ro.txt index 7193d6f5..7138d2cf 100644 --- a/war/resources/dia_ro.txt +++ b/war/resources/dia_ro.txt @@ -15,6 +15,7 @@ advanced=Avansat align=Aliniază alignment=Aliniere allChangesLost=Toate modificările vor fi pierdute! +allPages=All Pages android=Android angle=Unghi areYouSure=Eşti sigur? @@ -523,7 +524,7 @@ scrollbars=Bare de rulare search=Căutare searchShapes=Search Shapes selectAll=Selectează totul -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Selectează marginile selectFont=Selectează fontul selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Aliniere lsus topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Încearcă din nou tryOpeningViaThisPage=Try opening via this page. turn=Încearcă diff --git a/war/resources/dia_ru.txt b/war/resources/dia_ru.txt index b3d47c8c..a1b6f6fa 100644 --- a/war/resources/dia_ru.txt +++ b/war/resources/dia_ru.txt @@ -15,6 +15,7 @@ advanced=Расширенные align=Выровнять alignment=Выравнивание allChangesLost=Все изменения будут потеряны! +allPages=All Pages android=Android angle=Угол areYouSure=Вы уверены? diff --git a/war/resources/dia_sk.txt b/war/resources/dia_sk.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_sk.txt +++ b/war/resources/dia_sk.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_sl.txt b/war/resources/dia_sl.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_sl.txt +++ b/war/resources/dia_sl.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_sr.txt b/war/resources/dia_sr.txt index 35d398ee..a69ec733 100644 --- a/war/resources/dia_sr.txt +++ b/war/resources/dia_sr.txt @@ -15,6 +15,7 @@ advanced=Napredan align=Poravnaj alignment=Poravnanje allChangesLost=Sve promene će biti izgubljene! +allPages=All Pages android=Android angle=Ugao areYouSure=Da li ste sigurni? @@ -523,7 +524,7 @@ scrollbars=Skrol trake search=Pretraga searchShapes=Search Shapes selectAll=Izaberi sve -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Izaberi grane selectFont=Izaberi font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Gornje poravnanje topLeft=Top Left topRight=Top Right transparent=Proziran -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Pokušajte ponovo tryOpeningViaThisPage=Try opening via this page. turn=Okreni diff --git a/war/resources/dia_sv.txt b/war/resources/dia_sv.txt index c9abfc5a..9632101c 100644 --- a/war/resources/dia_sv.txt +++ b/war/resources/dia_sv.txt @@ -15,6 +15,7 @@ advanced=Avancerat align=Justera alignment=Justering allChangesLost=Alla ändringar kommer gå förlorade! +allPages=All Pages android=Android angle=Vinkel areYouSure=Är du säker? @@ -523,7 +524,7 @@ scrollbars=Rullningslister search=Sök searchShapes=Search Shapes selectAll=Markera allt -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Markera kanter selectFont=Välj typsnitt selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Justera upptill topLeft=Top Left topRight=Top Right transparent=Genomskinlig -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Försök igen tryOpeningViaThisPage=Try opening via this page. turn=Vänd diff --git a/war/resources/dia_sw.txt b/war/resources/dia_sw.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_sw.txt +++ b/war/resources/dia_sw.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_ta.txt b/war/resources/dia_ta.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_ta.txt +++ b/war/resources/dia_ta.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_te.txt b/war/resources/dia_te.txt index a2f6e74e..d8305f64 100644 --- a/war/resources/dia_te.txt +++ b/war/resources/dia_te.txt @@ -15,6 +15,7 @@ advanced=Advanced align=Align alignment=Alignment allChangesLost=All changes will be lost! +allPages=All Pages android=Android angle=Angle areYouSure=Are you sure? @@ -523,7 +524,7 @@ scrollbars=Scrollbars search=Search searchShapes=Search Shapes selectAll=Select All -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Select Edges selectFont=Select Font selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Top Align topLeft=Top Left topRight=Top Right transparent=Transparent -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Try again tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_th.txt b/war/resources/dia_th.txt index 4f16eb80..c9656cdd 100644 --- a/war/resources/dia_th.txt +++ b/war/resources/dia_th.txt @@ -15,6 +15,7 @@ advanced=การตั้งค่าขั้นสูง align=จัดเรียงแนวเดียวกัน alignment=การจัดเรียงแนวเดียวกัน allChangesLost=การเปลี่ยนแปลงทั้งหมดจะสูญหาย +allPages=All Pages android=Android angle=มุม areYouSure=คุณแน่ใจหรือไม่ @@ -523,7 +524,7 @@ scrollbars=แถบเลื่อน search=ค้นหา searchShapes=Search Shapes selectAll=เลือกทั้งหมด -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=เลือกขอบ selectFont=เลือกตัวอักษร selectNone=Select None @@ -582,7 +583,7 @@ topAlign=จัดเรียงแนวบนสุด topLeft=Top Left topRight=Top Right transparent=ความโปร่งแสง -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=ลองอีกครั้ง tryOpeningViaThisPage=Try opening via this page. turn=หมุน diff --git a/war/resources/dia_tr.txt b/war/resources/dia_tr.txt index 4ecf896f..ab608e72 100644 --- a/war/resources/dia_tr.txt +++ b/war/resources/dia_tr.txt @@ -15,6 +15,7 @@ advanced=Gelişmiş align=Hizala alignment=Hizalama allChangesLost=Tüm değişiklikler kaybolacaktır! +allPages=All Pages android=Android angle=Açı areYouSure=Emin misiniz? @@ -523,7 +524,7 @@ scrollbars=Kaydırma çubuğu search=Ara searchShapes=Search Shapes selectAll=Tümünü seç -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Kenarları seç selectFont=Bir yazı tipi seç selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Üst hizala topLeft=Top Left topRight=Top Right transparent=Saydam -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Tekrar deneyin tryOpeningViaThisPage=Try opening via this page. turn=Döndür diff --git a/war/resources/dia_uk.txt b/war/resources/dia_uk.txt index b00f1ba2..915a1fa9 100644 --- a/war/resources/dia_uk.txt +++ b/war/resources/dia_uk.txt @@ -15,6 +15,7 @@ advanced=Розширені align=Вирівняти alignment=Вирівнювання allChangesLost=Всі зміни будуть втрачені! +allPages=All Pages android=Android angle=Кут areYouSure=Ви впевнені? @@ -523,7 +524,7 @@ scrollbars=Смуга прокрутки search=Пошук searchShapes=Search Shapes selectAll=Вибрати все -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Вибрати краї selectFont=Вибрати шрифт selectNone=Select None @@ -582,7 +583,7 @@ topAlign=По верхньому краю topLeft=Top Left topRight=Top Right transparent=Прозорий -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Спробуйте ще раз tryOpeningViaThisPage=Try opening via this page. turn=Повернути diff --git a/war/resources/dia_vi.txt b/war/resources/dia_vi.txt index 961e8804..d366b889 100644 --- a/war/resources/dia_vi.txt +++ b/war/resources/dia_vi.txt @@ -15,6 +15,7 @@ advanced=Nâng cao align=Căn lề alignment=Sự căn lề allChangesLost=Tất cả thay đổi sẽ mất! +allPages=All Pages android=Android angle=Góc areYouSure=Bạn chắc chắn? @@ -523,7 +524,7 @@ scrollbars=Thanh cuộn search=Tìm kiếm searchShapes=Search Shapes selectAll=Chọn tất cả -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=Chọn cạnh selectFont=Chọn phông selectNone=Select None @@ -582,7 +583,7 @@ topAlign=Căn lề trên cùng topLeft=Top Left topRight=Top Right transparent=Độ trong suốt -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=Thử lại tryOpeningViaThisPage=Try opening via this page. turn=Quay diff --git a/war/resources/dia_zh-tw.txt b/war/resources/dia_zh-tw.txt index a45782d3..bf7b9c81 100644 --- a/war/resources/dia_zh-tw.txt +++ b/war/resources/dia_zh-tw.txt @@ -15,6 +15,7 @@ advanced=進階 align=對齊 alignment=對齊 allChangesLost=所有的修改將不會被儲存! +allPages=All Pages android=Android angle=角度 areYouSure=是否確定? @@ -523,7 +524,7 @@ scrollbars=頁面捲動 search=搜尋 searchShapes=搜尋圖形 selectAll=全選 -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=選擇邊 selectFont=選擇字型 selectNone=全不選 @@ -582,7 +583,7 @@ topAlign=向上對齊 topLeft=左上 topRight=右上 transparent=透明 -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=再試一次 tryOpeningViaThisPage=Try opening via this page. turn=Turn diff --git a/war/resources/dia_zh.txt b/war/resources/dia_zh.txt index 94e4195a..7c596786 100644 --- a/war/resources/dia_zh.txt +++ b/war/resources/dia_zh.txt @@ -15,6 +15,7 @@ advanced=高级 align=对齐 alignment=对齐 allChangesLost=所有修改都不会被保存! +allPages=All Pages android=Android angle=角度 areYouSure=你确定吗? @@ -523,7 +524,7 @@ scrollbars=滚动条 search=搜索 searchShapes=Search Shapes selectAll=选择全部 -selectionOnly=Selection only +selectionOnly=Selection Only selectEdges=选择连接 selectFont=选择一种字体 selectNone=Select None @@ -582,7 +583,7 @@ topAlign=上对齐 topLeft=Top Left topRight=Top Right transparent=透明 -transparentBackground=Transparent background +transparentBackground=Transparent Background tryAgain=重试 tryOpeningViaThisPage=Try opening via this page. turn=改变方向