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=.01+c/d*100;d=Math.max(1-(1-a)/b*(100-c),a);var f=m.substring(0,m.indexOf("Animation")).toLowerCase();return p[e]||(q.insertRule("@"+ (f&&"-"+f+"-"||"")+"keyframes "+e+"{0%{opacity:"+d+"}"+c+"%{opacity:"+a+"}"+(c+.01)+"%{opacity:1}"+(c+b)%100+"%{opacity:"+a+"}100%{opacity:"+d+"}}",q.cssRules.length),p[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',c)}q.addRule(".spin-vml","behavior:url(#default#VML)");k.prototype.lines=function(a,d){function f(){return e(c("group",{coordsize:n+" "+n,coordorigin:-m+" "+-m}),{width:n,height:n})}function k(a,k,l){b(p,b(e(f(),{rotation:360/d.lines*a+"deg",left:~~k}),b(e(c("roundrect",{arcsize:d.corners}), {width:m,height:d.width,left:d.radius,top:-d.width>>1,filter:l}),c("fill",{color:g(d.color,a),opacity:d.opacity}),c("stroke",{opacity:0}))))}var l,m=d.length+d.width,n=2*m;l=2*-(d.width+d.length)+"px";var p=e(f(),{position:"absolute",top:l,left:l});if(d.shadow)for(l=1;l<=d.lines;l++)k(l,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(l=1;l<=d.lines;l++)k(l);return b(a,p)};k.prototype.opacity=function(a,b,c,d){a=a.firstChild;d=d.shadow&&d.lines||0;a&&b+ d>1)+"px"})}for(var l,n=0,p=(f.lines-1)*(1-f.direction)/ 2;n>10),56320+(b&1023))):b==b?String.fromCharCode(b):" ">a[1]?"":a[1]}function b(a,b){return'"'+a.replace(/[\u0000-\u001f\\\"<>]/g, b)+'"'}function c(a){return k[a]||(k[a]="\\"+a.charCodeAt(0).toString(16)+" ")}function f(a){return g[a]||(g[a]=("">a?"%0":"%")+a.charCodeAt(0).toString(16))}var k={"\\":"\\\\"},g={"\\":"%5c"},l=RegExp("\\uFEFF|U[+][0-9A-F?]{1,6}(?:-[0-9A-F]{1,6})?|url[(][\\t\\n\\f ]*(?:\"(?:'|[^'\"\\n\\f\\\\]|\\\\[\\s\\S])*\"|'(?:\"|[^'\"\\n\\f\\\\]|\\\\[\\s\\S])*'|(?:[\\t\\x21\\x23-\\x26\\x28-\\x5b\\x5d-\\x7e]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))*)[\\t\\n\\f ]*[)]|(?!url[(])-?(?:[a-zA-Z_]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))(?:[a-zA-Z0-9_-]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))*[(]|(?:@?-?(?:[a-zA-Z_]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))|#)(?:[a-zA-Z0-9_-]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))*|\"(?:'|[^'\"\\n\\f\\\\]|\\\\[\\s\\S])*\"|'(?:\"|[^'\"\\n\\f\\\\]|\\\\[\\s\\S])*'|[-+]?(?:[0-9]+(?:[.][0-9]+)?|[.][0-9]+)(?:%|-?(?:[a-zA-Z_]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))(?:[a-zA-Z0-9_-]|[\\u0080-\\ud7ff\\ue000-\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]|\\\\(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff]))*)?|\x3c!--|--\x3e|[\\t\\n\\f ]+|/(?:[*][^*]*[*]+(?:[^/][^*]*[*]+)*/|/[^\\n\\f]*)|[~|^$*]=|[^\"'\\\\/]|/(?![/*])", "gi"),m=RegExp("\\\\(?:(?:[0-9a-fA-F]{1,6}[\\t\\n\\f ]?|[\\u0020-\\u007e\\u0080-\\ud7ff\\ue000\\ufffd]|[\\ud800-\\udbff][\\udc00-\\udfff])|[\\n\\f])","g"),n=RegExp("^url\\([\\t\\n\\f ]*[\"']?|[\"']?[\\t\\n\\f ]*\\)$","gi");e=function(b){return b.replace(m,a)};d=function(a){a=(""+a).replace(/\r\n?/g,"\n").match(l)||[];for(var d=0,k=" ",g=0,m=a.length;g= r?" ":/url\(/i.test(p)?"url("+b(p.replace(n,""),f)+")":p;if(k!=p||" "!=p)a[d++]=k=p}a.length=d;return a}})();"undefined"!==typeof window&&(window.lexCss=d,window.decodeCss=e);var f=function(){function a(a){return(a=(""+a).match(m))?new f(k(a[1]),k(a[2]),k(a[3]),k(a[4]),k(a[5]),k(a[6]),k(a[7])):null}function b(a,b){return"string"==typeof a?encodeURI(a).replace(b,c):null}function c(a){a=a.charCodeAt(0);return"%"+"0123456789ABCDEF".charAt(a>>4&15)+"0123456789ABCDEF".charAt(a&15)}function d(a){if(null=== a)return null;a=a.replace(/(^|\/)\.(?:\/|$)/g,"$1").replace(/\/{2,}/g,"/");for(var b=g,c;(c=a.replace(b,"$1"))!=a;a=c);return a}function e(a,b){var c=a.T(),e=b.K();e?c.ga(b.j):e=b.X();e?c.da(b.n):e=b.Y();e?c.ea(b.k):e=b.$();var f=b.g,k=d(f);if(e)c.ca(b.V()),k=k&&k.replace(l,"");else if(e=!!f){if(47!==k.charCodeAt(0))var k=d(c.g||"").replace(l,""),g=k.lastIndexOf("/")+1,k=d((g?k.substring(0,g):"")+d(f)).replace(l,"")}else k=k&&k.replace(l,""),k!==f&&c.G(k);e?c.G(k):e=b.aa();e?c.O(b.l):e=b.Z();e&&c.fa(b.o); return c}function f(a,b,c,d,e,f,k){this.j=a;this.n=b;this.k=c;this.h=d;this.g=e;this.l=f;this.o=k}function k(a){return"string"==typeof a&&0]/g,A={"\n":"%0a","\f":"%0c","\r":"%0d",'"':"%22","'":"%27","(":"%28",")":"%29","*":"%2a","<":"%3c",">":"%3e"},v=/^(?:([^:/?# ]+):)?/,E=/^(?:https?|mailto|data)$/i;g=function(){var c={};return function G(f,k,g,l,m){f=x(f);var n=b[f];if(n&&"object"===typeof n){for(var q=n.cssPropBits,r=q&80,t=q&1536,u=NaN,y=0,C=0;y=z)v=q&1?v:"";else if(A=v.charCodeAt(1),E=v.charCodeAt(2),F=48<=A&&57>=A,I=48<=E&&57>=E,43===z&&(F||46===A&&I))v=q&1?(F?"":"0")+v.substring(1):"";else if(45===z&&(F||46===A&&I))v=q&4?(F?"-":"-0")+v.substring(1): q&1?"0":"";else if(46===z&&F)v=q&1?"0"+v:"";else if('url("'===v.substring(0,5))v=g&&q&16?a(p(d(l,k[y].substring(5,v.length-2)),f,g)):"";else if("("===v.charAt(v.length-1))a:{H=k;J=y;v=1;R=J+1;for(z=H.length;R"]=F["+"]=F["~"]=F;k=function(a,b,c){function d(d,l){function m(c,d,e){var g,l,m,p,r,t=!0;g="";cf&&" "===a[g-1]&&--g;e.startAtrule&&e.startAtrule(a[k].toLowerCase(),a.slice(f,g));c="{"===a[c]?b(a,c,d,e):c+1;e.endAtrule&&e.endAtrule()}return c}function b(d,e,f,k){++e;for(k.startBlock&&k.startBlock();e< f;){var g=d[e].charAt(0);if("}"==g){++e;break}e=" "===g||";"===g?e+1:"@"===g?a(d,e,f,k,!1):"{"===g?b(d,e,f,k):c(d,e,f,k)}k.endBlock&&k.endBlock();return e}function c(a,b,c,d){var f=b,g=e(a,b,c,!0);if(0>g)return g=~g,g===f?g+1:g;var l=a[g];if("{"!==l)return g===f?g+1:g;b=g+1;g>f&&" "===a[g-1]&&--g;for(d.startRuleset&&d.startRuleset(a.slice(f,g));bl)l=~l;else{for(var m=[],n=0,p=b;p])/g; d=a+"";if(Y)d=d.split(e);else{for(var f=[],k=0,g;null!==(g=e.exec(d));)f.push(d.substring(k,g.index)),f.push(g[0]),k=g.index+g[0].length;f.push(d.substring(k));d=f}l(b,d,0,{r:!1,C:!1},c)}}function g(a,b,c,d,e){return function(){l(a,b,c,d,e)}}function l(b,c,d,e,f){try{b.H&&0==d&&b.H(f);for(var k,l,p,q=c.length;d"===c[d+1])d+=2,p=k[1].toLowerCase(),b.t&&b.t(p,f,P,g(b,c,d,e,f));else{var G=c,u=d,y=b,x=f,D=P,C=e,S=n(G,u);S?(y.t&&y.t(S.name,x,D,g(y,G,u,C,x)),d=S.next):d=G.length}else b.e&&b.e("</",f,P,g(b,c,d,e,f));break;case "<":if(k=/^([-\w:]+)\s*\/?/.exec(t))if(k[0].length===t.length&&">"===c[d+1]){d+=2;p=k[1].toLowerCase();b.w&&b.w(p,[],f,P,g(b,c,d,e,f));var ka=a.f[p];ka&Z&&(d=m(c,{name:p,next:d,c:ka},b,f,P,e))}else{var G=c,u=b,y=f,x=P,D=e,v=n(G,d);v?(u.w&&u.w(v.name,v.R,y,x,g(u,G,v.next,D, y)),d=v.c&Z?m(G,v,u,y,x,D):v.next):d=G.length}else b.e&&b.e("<",f,P,g(b,c,d,e,f));break;case "\x3c!--":if(!e.C){for(l=d+1;l"!==c[l]||!/--$/.test(c[l-1]));l++);if(l"!==c[l];l++);l"!==c[l];l++);l":b.e&&b.e(">",f,P,g(b,c,d,e,f));break;case "":break;default:b.e&&b.e(r,f,P,g(b,c,d,e,f))}}b.B&&b.B(f)}catch(fa){if(fa!==P)throw fa;}}function m(b,c,d,f,k,l){var m=b.length;S.hasOwnProperty(c.name)||(S[c.name]=RegExp("^"+c.name+"(?:[\\s\\/]|$)","i"));for(var n=S[c.name],p=c.next,q=c.next+1;q"!==b[g];g++)k+=b[g];if(!(l<=g)){for(var m=[];""!==k;)if(e=O.exec(k))if(e[4]&&!e[5]||e[6]&&!e[7]){for(var e=e[4]||e[6],n=!1,k=[k,b[g++]];g"===b[g])break}else 0<=b[g].indexOf(e)&&(n=!0);k.push(b[g])}if(l<=g)break;k=k.join("")}else{var n= e[1].toLowerCase(),p;if(e[2]){p=e[3];var q=p.charCodeAt(0);if(34===q||39===q)p=p.substr(1,p.length-2);p=c(p.replace(ca,""))}else p="";m.push(n,p);k=k.substr(e[0].length)}else k=k.replace(/^[\s\S][^a-z\s]*/,"");f.R=m;f.next=g+1;return f}}function p(b){function c(a,b){f||b.push(a)}var e,f;return k({startDoc:function(){e=[];f=!1},startTag:function(c,k,g){if(!f&&a.f.hasOwnProperty(c)){var l=a.f[c];if(!(l&a.c.FOLDABLE)){var m=b(c,k);if(m){if("object"!==typeof m)throw Error("tagPolicy did not return object (old API?)"); if("attribs"in m)k=m.attribs;else throw Error("tagPolicy gave no attribs");var n;"tagName"in m?(n=m.tagName,m=a.f[n]):(n=c,m=l);if(l&a.c.OPTIONAL_ENDTAG){var p=e[e.length-1];p&&p.D===c&&(p.v!==n||c!==n)&&g.push("")}l&a.c.EMPTY||e.push({D:c,v:n});g.push("<",n);c=0;for(p=k.length;c");l&a.c.EMPTY&&!(m&a.c.EMPTY)&&g.push("")}else f=!(l&a.c.EMPTY)}}},endTag:function(b,c){if(f)f=!1;else if(a.f.hasOwnProperty(b)){var d= a.f[b];if(!(d&(a.c.EMPTY|a.c.FOLDABLE))){if(d&a.c.OPTIONAL_ENDTAG)for(d=e.length;0<=--d;){var k=e[d].D;if(k===b)break;if(!(a.f[k]&a.c.OPTIONAL_ENDTAG))return}else for(d=e.length;0<=--d&&e[d].D!==b;);if(!(0>d)){for(k=e.length;--k>d;){var g=e[k].v;a.f[g]&a.c.OPTIONAL_ENDTAG||c.push("")}d")}}}},pcdata:c,rcdata:c,cdata:c,endDoc:function(a){for(;e.length;e.length--)a.push("")}})}function q(a,b,c,d,e){if(!e)return null;try{var k= f.parse(""+a);if(k&&(!k.K()||ga.test(k.W()))){var g=e(k,b,c,d);return g?g.toString():null}}catch(ia){}return null}function r(a,b,c,d,e){c||a(b+" removed",{S:"removed",tagName:b});if(d!==e){var f="changed";d&&!e?f="removed":!d&&e&&(f="added");a(b+"."+c+" "+f,{S:f,tagName:b,la:c,oldValue:d,newValue:e})}}function G(a,b,c){b=b+"::"+c;if(a.hasOwnProperty(b))return a[b];b="*::"+c;if(a.hasOwnProperty(b))return a[b]}function I(b,c,d,e,f){for(var k=0;k",GT:">",amp:"&",AMP:"&",quot:'"',apos:"'",nbsp:" "},X=/^#(\d+)$/,D=/^#x([0-9A-Fa-f]+)$/,W=/^[A-Za-z][A-za-z0-9]+$/,Q="undefined"!==typeof window&&window.document?window.document.createElement("textarea"):null,ca=/\0/g,da=/&(#[0-9]+|#[xX][0-9A-Fa-f]+|\w+);/g,L=/^(#[0-9]+|#[xX][0-9A-Fa-f]+|\w+);/,K=/&/g,N=/&([^a-z#]|#(?:[^0-9x]|x(?:[^0-9a-f]|$)|$)|$)/gi,T= /[<]/g,aa=/>/g,ba=/\"/g,O=/^\s*([-.:\w]+)(?:\s*(=)\s*((")[^"]*("|$)|(')[^']*('|$)|(?=[a-z][-\w]*\s*=)|[^"'\s]*))?/i,Y=3==="a,b".split(/(,)/).length,Z=a.c.CDATA|a.c.RCDATA,P={},S={},ga=/^(?:https?|mailto|data)$/i,ea={};ea.pa=ea.escapeAttrib=d;ea.ra=ea.makeHtmlSanitizer=p;ea.sa=ea.makeSaxParser=k;ea.ta=ea.makeTagPolicy=M;ea.wa=ea.normalizeRCData=e;ea.xa=ea.sanitize=function(a,b,c,d){return J(a,M(b,c,d))};ea.ya=ea.sanitizeAttribs=I;ea.za=ea.sanitizeWithPolicy=J;ea.Ba=ea.unescapeEntities=c;return ea}(q); c=a.sanitize;"undefined"!==typeof window&&(window.html=a,window.html_sanitize=c)})();var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(a,b){var c="",d,e,f,g,k,l,m=0;for(null!=b&&b||(a=Base64._utf8_encode(a));m>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){var b="",c=0,d;for(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,m){if(!d[k]){if(!c[k]){var l="function"==typeof require&&require;if(!m&&l)return l(k,!0);if(g)return g(k,!0);l=Error("Cannot find module '"+k+"'");throw l.code="MODULE_NOT_FOUND",l;}l=d[k]={exports:{}}; c[k][0].call(l.exports,function(b){var d=c[k][1][b];return f(d?d:b)},l,l.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 n;this.strm.avail_out=0;var c=g.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(c!==q)throw Error(m[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!==q)throw Error(m[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"),m=b("./zlib/messages"),n=b("./zlib/zstream"),p=Object.prototype.toString,q=0,r=-1,t=0,u=8;e.prototype.push=function(b,c){var d,e,f=this.strm,m=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(m),f.next_out=0,f.avail_out=m),d=g.deflate(f,e),1!==d&&d!==q)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!==m.Z_OK)throw Error(n[b]); this.header=new q;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"),m=b("./zlib/constants"),n=b("./zlib/messages"),p=b("./zlib/zstream"),q=b("./zlib/gzheader"),r=Object.prototype.toString;e.prototype.push=function(b,c){var d,e,f,n,p,q,t=this.strm,u=this.options.chunkSize,C=this.options.dictionary,B=!1;if(this.ended)return!1;e=c===~~c?c:!0===c?m.Z_FINISH:m.Z_NO_FLUSH; "string"==typeof b?t.input=l.binstring2buf(b):"[object ArrayBuffer]"===r.call(b)?t.input=new Uint8Array(b):t.input=b;t.next_in=0;t.avail_in=t.input.length;do{if(0===t.avail_out&&(t.output=new k.Buf8(u),t.next_out=0,t.avail_out=u),d=g.inflate(t,m.Z_NO_FLUSH),d===m.Z_NEED_DICT&&C&&(q="string"==typeof C?l.string2buf(C):"[object ArrayBuffer]"===r.call(C)?new Uint8Array(C):C,d=g.inflateSetDictionary(this.strm,q)),d===m.Z_BUF_ERROR&&!0===B&&(d=m.Z_OK,B=!1),d!==m.Z_STREAM_END&&d!==m.Z_OK)return this.onEnd(d), this.ended=!0,!1;t.next_out&&(0!==t.avail_out&&d!==m.Z_STREAM_END&&(0!==t.avail_in||e!==m.Z_FINISH&&e!==m.Z_SYNC_FLUSH)||("string"===this.options.to?(f=l.utf8border(t.output,t.next_out),n=t.next_out-f,p=l.buf2string(t.output,f),t.next_out=n,t.avail_out=u-n,n&&k.arraySet(t.output,t.output,f,n,0),this.onData(p)):this.onData(k.shrinkBuf(t.output,t.next_out))));0===t.avail_in&&0===t.avail_out&&(B=!0)}while((0c&&(b.subarray&&k||!b.subarray&&g))return String.fromCharCode.apply(null,f.shrinkBuf(b,c));for(var d="",e=0;eb;b++)l[b]=252<=b?6:248<=b?5:240<=b?4:224<=b?3:192<=b?2:1;l[254]=l[254]=1;d.string2buf=function(b){var c,d,e,k,g,l=b.length,m=0;for(k=0;kd?1:2048>d?2:65536>d?3:4;c=new f.Buf8(m);for(k=g=0;gd?c[g++]=d:2048> d?(c[g++]=192|d>>>6,c[g++]=128|63&d):65536>d?(c[g++]=224|d>>>12,c[g++]=128|d>>>6&63,c[g++]=128|63&d):(c[g++]=240|d>>>18,c[g++]=128|d>>>12&63,c[g++]=128|d>>>6&63,c[g++]=128|63&d);return c};d.buf2binstring=function(b){return e(b,b.length)};d.binstring2buf=function(b){for(var c=new f.Buf8(b.length),d=0,e=c.length;dk)n[f++]=k;else if(g=l[k],4k?n[f++]=k:(k-=65536,n[f++]=55296|k>>10&1023,n[f++]=56320|1023&k)}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+l[b[d]]>c?d:c}},{"./common":3}],5:[function(b,c,d){c.exports=function(b,c,d,k){var e=65535&b|0;b=b>>>16&65535|0;for(var f;0!==d;){f=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){E._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 m(b,c){b.pending_buf[b.pending++]=c>>>8&255;b.pending_buf[b.pending++]=255&c}function n(b,c){var d,e,f=b.max_chain_length,k=b.strstart,g=b.prev_length,l=b.nice_match,m=b.strstart>b.w_size-T?b.strstart-(b.w_size-T):0,n=b.window,p=b.w_mask,q=b.prev,r=b.strstart+N,t=n[k+g-1],G=n[k+g];b.prev_length>=b.good_match&&(f>>= 2);l>b.lookahead&&(l=b.lookahead);do if(d=c,n[d+g]===G&&n[d+g-1]===t&&n[d]===n[k]&&n[++d]===n[k+1]){k+=2;for(d++;n[++k]===n[++d]&&n[++k]===n[++d]&&n[++k]===n[++d]&&n[++k]===n[++d]&&n[++k]===n[++d]&&n[++k]===n[++d]&&n[++k]===n[++d]&&n[++k]===n[++d]&&kg){if(b.match_start=c,g=e,e>=l)break;t=n[k+g-1];G=n[k+g]}}while((c=q[c&p])>m&&0!==--f);return g<=b.lookahead?g:b.lookahead}function p(b){var c,d,e,f,k=b.w_size;do{if(f=b.window_size-b.lookahead-b.strstart,b.strstart>=k+(k-T)){v.arraySet(b.window, b.window,k,k,0);b.match_start-=k;b.strstart-=k;b.block_start-=k;c=d=b.hash_size;do e=b.head[--c],b.head[c]=e>=k?e-k:0;while(--d);c=d=k;do e=b.prev[--c],b.prev[c]=e>=k?e-k:0;while(--d);f+=k}if(0===b.strm.avail_in)break;c=b.strm;e=b.window;var g=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,g),1===c.state.wrap?c.adler=H(c.adler,e,l,g):2===c.state.wrap&&(c.adler=F(c.adler,e,l,g)),c.next_in+=l,c.total_in+=l,l)),b.lookahead+=d,b.lookahead+ b.insert>=K)for(f=b.strstart-b.insert,b.ins_h=b.window[f],b.ins_h=(b.ins_h<=K&&(b.ins_h=(b.ins_h<=K)if(e=E._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===U||b.match_length===K&&4096=K&&b.match_length<=b.prev_length){f= b.strstart+b.lookahead-K;e=E._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<c.wrap&&(c.wrap=-c.wrap),c.status=c.wrap?aa:ba,b.adler=2===c.wrap?0:1,c.last_flush=B,E._tr_init(c),I):e(b,M)}function x(b){var c=y(b);c===I&&(b=b.state,b.window_size=2*b.w_size,f(b.head),b.max_lazy_match=A[b.level].max_lazy,b.good_match=A[b.level].good_length,b.nice_match=A[b.level].nice_length,b.max_chain_length=A[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 c}function z(b,c,d,f,k,g){if(!b)return M;var l=1;if(c===J&&(c=6),0>f?(l=0,f=-f):15k||k>D||d!==X||8>f||15c||9g||g>R)return e(b,M);8===f&&(f=9);var m=new u;return b.state=m,m.strm=b,m.wrap=l,m.gzhead=null,m.w_bits=f,m.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===B)return O;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-T&&(k(b,!1),0===b.strm.avail_out))return O}return b.insert=0,c===G?(k(b,!0),0===b.strm.avail_out?Z:P):(b.strstart>b.block_start&&k(b,!1),O)}),new t(4,4,8,4,q),new t(4,5,16,8,q),new t(4,6,32, 32,q),new t(4,4,16,16,r),new t(8,16,32,32,r),new t(8,16,128,128,r),new t(8,32,128,256,r),new t(32,128,258,1024,r),new t(32,258,258,4096,r)];d.deflateInit=function(b,c){return z(b,c,X,15,8,0)};d.deflateInit2=z;d.deflateReset=x;d.deflateResetKeep=y;d.deflateSetHeader=function(b,c){return b&&b.state?2!==b.state.wrap?M:(b.state.gzhead=c,I):M};d.deflate=function(b,c){var d,n,q,r;if(!b||!b.state||5c)return b?e(b,M):M;if(n=b.state,!b.output||!b.input&&0!==b.avail_in||666===n.status&&c!==G)return e(b, 0===b.avail_out?-5:M);if(n.strm=b,d=n.last_flush,n.last_flush=c,n.status===aa)2===n.wrap?(b.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&&(b.adler=F(b.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=ba)):(q=X+(n.w_bits-8<<4)<<8,q|=(2<=n.strategy||2>n.level?0:6>n.level?1:6===n.level?2:3)<<6,0!==n.strstart&&(q|=32),n.status=ba,m(n,q+(31-q%31)),0!==n.strstart&&(m(n,b.adler>>>16),m(n,65535&b.adler)),b.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&&(b.adler=F(b.adler,n.pending_buf,n.pending-q,q)),g(b),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&&(b.adler=F(b.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&&(b.adler=F(b.adler,n.pending_buf,n.pending- q,q)),g(b),q=n.pending,n.pending===n.pending_buf_size)){r=1;break}r=n.gzindexq&&(b.adler=F(b.adler,n.pending_buf,n.pending-q,q));0===r&&(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&&(b.adler=F(b.adler,n.pending_buf,n.pending-q,q)),g(b),q=n.pending,n.pending===n.pending_buf_size)){r= 1;break}r=n.gzindexq&&(b.adler=F(b.adler,n.pending_buf,n.pending-q,q));0===r&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&g(b),n.pending+2<=n.pending_buf_size&&(l(n,255&b.adler),l(n,b.adler>>8&255),b.adler=0,n.status=ba)):n.status=ba),0!==n.pending){if(g(b),0===b.avail_out)return n.last_flush=-1,I}else if(0===b.avail_in&&(c<<1)- (4=K&&0n.lookahead&&(n.match_length=n.lookahead)}if(n.match_length>=K?(t=E._tr_tally(n,1,n.match_length- K),n.lookahead-=n.match_length,n.strstart+=n.match_length,n.match_length=0):(t=E._tr_tally(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++),t&&(k(n,!1),0===n.strm.avail_out)){t=O;break a}}t=(n.insert=0,c===G?(k(n,!0),0===n.strm.avail_out?Z:P):n.last_lit&&(k(n,!1),0===n.strm.avail_out)?O:Y)}else t=A[n.level].func(n,c);if(t!==Z&&t!==P||(n.status=666),t===O||t===Z)return 0===b.avail_out&&(n.last_flush=-1),I;if(t===Y&&(1===c?E._tr_align(n):5!==c&&(E._tr_stored_block(n,0,0,!1),3===c&&(f(n.head),0=== n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),g(b),0===b.avail_out))return n.last_flush=-1,I}return c!==G?I:0>=n.wrap?1:(2===n.wrap?(l(n,255&b.adler),l(n,b.adler>>8&255),l(n,b.adler>>16&255),l(n,b.adler>>24&255),l(n,255&b.total_in),l(n,b.total_in>>8&255),l(n,b.total_in>>16&255),l(n,b.total_in>>24&255)):(m(n,b.adler>>>16),m(n,65535&b.adler)),g(b),0=d.w_size&&(0===g&&(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;m=b.next_in;n=b.input;b.avail_in=e;b.next_in=0;b.input=c;for(p(d);d.lookahead>= K;){e=d.strstart;k=d.lookahead-(K-1);do d.ins_h=(d.ins_h<z&&(x+=M[e++]<>>24,x>>>=C,z-=C,C=F>>>16&255,0===C)J[m++]=65535&F;else{if(!(16&C)){if(0===(64&C)){F=A[(65535&F)+(x&(1<>>=C,z-=C);15>z&&(x+=M[e++]<>>24,x>>>=C,z-=C,C=F>>>16&255,!(16&C)){if(0===(64&C)){F=v[(65535& F)+(x&(1<q){b.msg="invalid distance too far back";d.mode=30;break a}if(x>>>=C,z-=C,C=m-n,G>C){if(C=G-C,C>t&&d.sane){b.msg="invalid distance too far back";d.mode=30;break a}if(F=0,I=y,0===u){if(F+=r-C,C>3;e-=B;z-=B<<3;b.next_in=e;b.next_out=m;b.avail_in=e>> 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(E),c.distcode=c.distdyn=new r.Buf32(H),c.sane=1,c.back=-1,z):A}function k(b){var c;return b&&b.state?(c=b.state,c.wsize=0,c.whave=0,c.wnext=0,g(b)):A}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< c)?A:(null!==e.window&&e.wbits!==c&&(e.window=null),e.wrap=d,e.wbits=c,k(b))):A}function m(b,c){var d,e;return b?(e=new f,b.state=e,e.window=null,d=l(b,c),d!==z&&(b.state=null),d):A}function n(b,c,d,e){var f;b=b.state;return null===b.window&&(b.wsize=1<=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.whaveD;){if(0===m)break a;m--;B+=f[g++]<>>8&255;d.check=u(d.check,S,2,0);D=B=0;d.mode=2;break}if(d.flags=0,d.head&&(d.head.done=!1),!(1&d.wrap)||(((255&B)<<8)+(B>>8))%31){b.msg="incorrect header check"; d.mode=30;break}if(8!==(15&B)){b.msg="unknown compression method";d.mode=30;break}if(B>>>=4,D-=4,O=(15&B)+8,0===d.wbits)d.wbits=O;else if(O>d.wbits){b.msg="invalid window size";d.mode=30;break}d.dmax=1<D;){if(0===m)break a;m--;B+=f[g++]<>8&1);512&d.flags&& (S[0]=255&B,S[1]=B>>>8&255,d.check=u(d.check,S,2,0));D=B=0;d.mode=3;case 3:for(;32>D;){if(0===m)break a;m--;B+=f[g++]<>>8&255,S[2]=B>>>16&255,S[3]=B>>>24&255,d.check=u(d.check,S,4,0));D=B=0;d.mode=4;case 4:for(;16>D;){if(0===m)break a;m--;B+=f[g++]<>8);512&d.flags&&(S[0]=255&B,S[1]=B>>>8&255,d.check=u(d.check,S,2,0));D=B=0;d.mode=5;case 5:if(1024&d.flags){for(;16>D;){if(0===m)break a;m--; B+=f[g++]<>>8&255,d.check=u(d.check,S,2,0));D=B=0}else d.head&&(d.head.extra=null);d.mode=6;case 6:if(1024&d.flags&&(E=d.length,E>m&&(E=m),E&&(d.head&&(O=d.head.extra_len-d.length,d.head.extra||(d.head.extra=Array(d.head.extra_len)),r.arraySet(d.head.extra,f,g,E,O)),512&d.flags&&(d.check=u(d.check,f,E,g)),m-=E,g+=E,d.length-=E),d.length))break a;d.length=0;d.mode=7;case 7:if(2048&d.flags){if(0===m)break a;E=0;do O=f[g+ E++],d.head&&O&&65536>d.length&&(d.head.name+=String.fromCharCode(O));while(O&&Ed.length&&(d.head.comment+=String.fromCharCode(O));while(O&&ED;){if(0===m)break a;m--; B+=f[g++]<>9&1,d.head.done=!0);b.adler=d.check=0;d.mode=12;break;case 10:for(;32>D;){if(0===m)break a;m--;B+=f[g++]<>>=7&D;D-=7&D;d.mode=27;break}for(;3>D;){if(0=== m)break a;m--;B+=f[g++]<>>=1,--D,3&B){case 0:d.mode=14;break;case 1:N=d;if(F){p=new r.Buf32(512);q=new r.Buf32(32);for(L=0;144>L;)N.lens[L++]=8;for(;256>L;)N.lens[L++]=9;for(;280>L;)N.lens[L++]=7;for(;288>L;)N.lens[L++]=8;x(1,N.lens,0,288,p,0,N.work,{bits:9});for(L=0;32>L;)N.lens[L++]=5;x(2,N.lens,0,32,q,0,N.work,{bits:5});F=!1}N.lencode=p;N.lenbits=9;N.distcode=q;N.distbits=5;if(d.mode=20,6===c){B>>>=2;D-=2;break a}break;case 2:d.mode=17;break;case 3:b.msg="invalid block type", d.mode=30}B>>>=2;D-=2;break;case 14:B>>>=7&D;for(D-=7&D;32>D;){if(0===m)break a;m--;B+=f[g++]<>>16^65535)){b.msg="invalid stored block lengths";d.mode=30;break}if(d.length=65535&B,B=0,D=0,d.mode=15,6===c)break a;case 15:d.mode=16;case 16:if(E=d.length){if(E>m&&(E=m),E>C&&(E=C),0===E)break a;r.arraySet(k,f,g,E,l);m-=E;g+=E;C-=E;l+=E;d.length-=E;break}d.mode=12;break;case 17:for(;14>D;){if(0===m)break a;m--;B+=f[g++]<>>=5,D-=5,d.ndist=(31&B)+ 1,B>>>=5,D-=5,d.ncode=(15&B)+4,B>>>=4,D-=4,286D;){if(0===m)break a;m--;B+=f[g++]<>>=3;D-=3}for(;19>d.have;)d.lens[ga[d.have++]]=0;if(d.lencode=d.lendyn,d.lenbits=7,Z={bits:d.lenbits},Y=x(0,d.lens,0,19,d.lencode,0,d.work,Z),d.lenbits=Z.bits,Y){b.msg="invalid code lengths set";d.mode=30;break}d.have=0;d.mode=19;case 19:for(;d.have< d.nlen+d.ndist;){for(;P=d.lencode[B&(1<>>24,N=65535&P,!(K<=D);){if(0===m)break a;m--;B+=f[g++]<N)B>>>=K,D-=K,d.lens[d.have++]=N;else{if(16===N){for(L=K+2;D>>=K,D-=K,0===d.have){b.msg="invalid bit length repeat";d.mode=30;break}O=d.lens[d.have-1];E=3+(3&B);B>>>=2;D-=2}else if(17===N){for(L=K+3;D>>=K;D-=K;O=0;E=3+(7&B);B>>>=3;D-=3}else{for(L=K+7;D>>=K;D-=K;O=0;E=11+(127&B);B>>>=7;D-=7}if(d.have+E>d.nlen+d.ndist){b.msg="invalid bit length repeat";d.mode=30;break}for(;E--;)d.lens[d.have++]=O}}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,Z={bits:d.lenbits},Y=x(1,d.lens,0,d.nlen,d.lencode,0,d.work,Z),d.lenbits=Z.bits,Y){b.msg="invalid literal/lengths set";d.mode=30;break}if(d.distbits=6,d.distcode=d.distdyn,Z={bits:d.distbits},Y=x(2,d.lens,d.nlen,d.ndist, d.distcode,0,d.work,Z),d.distbits=Z.bits,Y){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<=m&&258<=C){b.next_out=l;b.avail_out=C;b.next_in=g;b.avail_in=m;d.hold=B;d.bits=D;y(b,Q);l=b.next_out;k=b.output;C=b.avail_out;g=b.next_in;f=b.input;m=b.avail_in;B=d.hold;D=d.bits;12===d.mode&&(d.back=-1);break}for(d.back=0;P=d.lencode[B&(1<>>24,L=P>>>16&255,N=65535&P,!(K<=D);){if(0===m)break a;m--;B+=f[g++]<>T)],K=P>>>24,L=P>>>16&255,N=65535&P,!(T+K<=D);){if(0===m)break a;m--;B+=f[g++]<>>=T;D-=T;d.back+=T}if(B>>>=K,D-=K,d.back+=K,d.length=N,0===L){d.mode=26;break}if(32&L){d.back=-1;d.mode=12;break}if(64&L){b.msg="invalid literal/length code";d.mode=30;break}d.extra=15&L;d.mode=22;case 22:if(d.extra){for(L=d.extra;D>>=d.extra;D-=d.extra;d.back+=d.extra}d.was=d.length;d.mode= 23;case 23:for(;P=d.distcode[B&(1<>>24,L=P>>>16&255,N=65535&P,!(K<=D);){if(0===m)break a;m--;B+=f[g++]<>T)],K=P>>>24,L=P>>>16&255,N=65535&P,!(T+K<=D);){if(0===m)break a;m--;B+=f[g++]<>>=T;D-=T;d.back+=T}if(B>>>=K,D-=K,d.back+=K,64&L){b.msg="invalid distance code";d.mode=30;break}d.offset=N;d.extra=15&L;d.mode=24;case 24:if(d.extra){for(L=d.extra;D>>=d.extra;D-=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===C)break a;if(E=Q-C,d.offset>E){if(E=d.offset-E,E>d.whave&&d.sane){b.msg="invalid distance too far back";d.mode=30;break}E>d.wnext?(E-=d.wnext,H=d.wsize-E):H=d.wnext-E;E>d.length&&(E=d.length);L=d.window}else L=k,H=l-d.offset,E=d.length;E>C&&(E=C);C-=E;d.length-=E;do k[l++]=L[H++];while(--E);0===d.length&&(d.mode=21);break;case 26:if(0===C)break a; k[l++]=d.length;C--;d.mode=21;break;case 27:if(d.wrap){for(;32>D;){if(0===m)break a;m--;B|=f[g++]<D;){if(0===m)break a;m--;B+=f[g++]<d.mode&&(27>d.mode||4!==c))&&n(b,b.output,b.next_out,Q-b.avail_out)?(d.mode=31,-4):(W-=b.avail_in,Q-=b.avail_out,b.total_in+=W,b.total_out+=Q,d.total+=Q,d.wrap&&Q&&(b.adler=d.check=d.flags?u(d.check,k,Q,b.next_out-Q):t(d.check,k,Q,b.next_out-Q)),b.data_type=d.bits+(d.last?64:0)+(12===d.mode?128:0)+(20===d.mode||15===d.mode?256:0),(0===W&&0===Q||4=== c)&&Y===z&&(Y=-5),Y)};d.inflateEnd=function(b){if(!b||!b.state)return A;var c=b.state;return c.window&&(c.window=null),b.state=null,z};d.inflateGetHeader=function(b,c){var d;return b&&b.state?(d=b.state,0===(2&d.wrap)?A:(d.head=c,c.done=!1,z)):A};d.inflateSetDictionary=function(b,c){var d,e,f=c.length;return b&&b.state?(d=b.state,0!==d.wrap&&11!==d.mode?A:11===d.mode&&(e=1,e=t(e,c,f,0),e!==d.check)?-3:n(b,c,f,f)?(d.mode=31,-4):(d.havedict=1,z)):A};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,q,r,t,u,y){var m,n,p,v,E,H,F,C,B=y.bits,G,I,M,J,U,R,V=0,X,D=null,W=0,Q=new e.Buf16(16);v=new e.Buf16(16);var ca=null,da=0;for(G=0;15>=G;G++)Q[G]=0;for(I=0;IM&&(J=M),0===M)return r[t++]=20971520,r[t++]=20971520,y.bits=1,0;for(B=1;B=G;G++)if(m<<=1,m-=Q[G],0>m)return-1;if(0G;G++)v[G+1]=v[G]+Q[G]; for(I=0;IE?(F=ca[da+u[I]],C=D[W+u[I]]):(F=96,C=0);m=1<>R)+n]=H<<24|F<<16|C|0;while(0!==n);for(m=1<>=1;if(0!==m?(X&=m-1,X+=m):X=0,I++,0===--Q[G]){if(G===M)break;G=c[d+u[I]]}if(G>J&&(X&q)!==p){0===R&&(R=J);v+=B;U=G-R;for(m= 1<=m));)U++,m<<=1;if(V+=1<>>8&255}function l(b,c,d){b.bi_valid>V-d?(b.bi_buf|=c<>V-b.bi_valid,b.bi_valid+=d-V):(b.bi_buf|=c<>>=1,d<<=1;while(0< --c);return d>>>1}function p(b,c,d){var e,f=Array(R+1),k=0;for(e=1;e<=R;e++)f[e]=k=k+d[e-1]<<1;for(d=0;d<=c;d++)e=b[2*d+1],0!==e&&(b[2*d]=n(f[e]++,e))}function q(b){var c;for(c=0;ce?aa[e]:aa[256+(e>>>7)],m(b,k,d),g=da[k],0!==g&&(e-=Y[k], l(b,e,g)));while(nb.heap_len;)f=b.heap[++b.heap_len]=2>m?++m:0,k[2*f]=1,b.depth[f]=0,b.opt_len--,g&&(b.static_len-=e[2*f+1]);c.max_code=m;for(d=b.heap_len>>1;1<=d;d--)u(b,k,d);f=l;do d=b.heap[1],b.heap[1]=b.heap[b.heap_len--],u(b,k,1),e=b.heap[1],b.heap[--b.heap_max]= d,b.heap[--b.heap_max]=e,k[2*f]=k[2*d]+k[2*e],b.depth[f]=(b.depth[d]>=b.depth[e]?b.depth[d]:b.depth[e])+1,k[2*d+1]=k[2*e+1]=f,b.heap[1]=f++,u(b,k,1);while(2<=b.heap_len);b.heap[--b.heap_max]=b.heap[1];var n,q,g=c.dyn_tree,l=c.max_code,r=c.stat_desc.static_tree,t=c.stat_desc.has_stree,D=c.stat_desc.extra_bits,x=c.stat_desc.extra_base,y=c.stat_desc.max_length,v=0;for(e=0;e<=R;e++)b.bl_count[e]=0;g[2*b.heap[b.heap_max]+1]=0;for(d=b.heap_max+1;dy&&(e=y,v++),g[2* f+1]=e,f>l||(b.bl_count[e]++,n=0,f>=x&&(n=D[f-x]),q=g[2*f],b.opt_len+=q*(e+n),t&&(b.static_len+=q*(r[2*f+1]+n)));if(0!==v){do{for(e=y-1;0===b.bl_count[e];)e--;b.bl_count[e]--;b.bl_count[e+1]+=2;b.bl_count[y]--;v-=2}while(0l||(g[2*n+1]!==e&&(b.opt_len+=(e-g[2*n+1])*g[2*n],g[2*n+1]=e),f--)}p(k,m,b.bl_count)}function z(b,c,d){var e,f,k=-1,g=c[1],l=0,m=7,n=4;0===g&&(m=138,n=3);c[2*(d+1)+1]=65535;for(e=0;e<=d;e++)f=g,g=c[2*(e+1)+1],++l=l?b.bl_tree[2*W]++:b.bl_tree[2*Q]++,l=0,k=f,0===g?(m=138,n=3):f===g?(m=6,n=3):(m=7,n=4))}function A(b,c,d){var e,f,k=-1,g=c[1],n=0,p=7,q=4;0===g&&(p=138,q=3);for(e=0;e<=d;e++)if(f=g,g=c[2*(e+1)+1],!(++n=n?(m(b,W,b.bl_tree),l(b,n-3,3)):(m(b,Q,b.bl_tree),l(b,n-11,7));n=0;k=f;0===g?(p=138,q= 3):f===g?(p=6,q=3):(p=7,q=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 F;if(0!==b.dyn_ltree[18]||0!==b.dyn_ltree[20]||0!==b.dyn_ltree[26])return C;for(c=32;ce;e++)for(O[e]=d,c=0;c<1<e;e++)for(Y[e]= d,c=0;c<1<>=7;e=c;)N[2*c+1]=8,c++,k[8]++;for(;255>=c;)N[2*c+1]=9,c++,k[9]++;for(;279>=c;)N[2*c+1]=7,c++,k[7]++;for(;287>=c;)N[2*c+1]=8,c++,k[8]++;p(N,I+1,k);for(c=0;c>>3;k=b.static_len+3+7>>>3;k<=f&&(f=k)}else f=k=d+5;if(d+4<=f&&-1!==c)E(b,c,d,e);else if(4===b.strategy||k===f)l(b,2+(e?1:0),3),y(b,N,T);else{l(b,4+(e?1:0),3);c=b.l_desc.max_code+ 1;d=b.d_desc.max_code+1;g+=1;l(b,c-257,5);l(b,d-1,5);l(b,g-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?aa[c]:aa[256+(c>>>7)])]++),b.last_lit=== b.lit_bufsize-1};d._tr_align=function(b){l(b,2,3);m(b,X,N);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}]},{},[])("/")});window.urlParams=window.urlParams||{};window.isLocalStorage=window.isLocalStorage||!1;window.isSvgBrowser=window.isSvgBrowser||0>navigator.userAgent.indexOf("MSIE")||9<=document.documentMode;window.EXPORT_URL=window.EXPORT_URL||"https://exp.draw.io/ImageExport4/export";window.SAVE_URL=window.SAVE_URL||"save";window.OPEN_URL=window.OPEN_URL||"open";window.PROXY_URL=window.PROXY_URL||"proxy";window.SHAPES_PATH=window.SHAPES_PATH||"shapes";window.GRAPH_IMAGE_PATH=window.GRAPH_IMAGE_PATH||"img"; window.ICONSEARCH_PATH=window.ICONSEARCH_PATH||0<=navigator.userAgent.indexOf("MSIE")||urlParams.dev?"iconSearch":"https://www.draw.io/iconSearch";window.TEMPLATE_PATH=window.TEMPLATE_PATH||"/templates";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||RESOURCES_PATH+"/dia";window.DRAWIO_LOG_URL=window.DRAWIO_LOG_URL||"";window.mxLoadResources=window.mxLoadResources||!1; window.mxLanguage=window.mxLanguage||function(){var a="1"==urlParams.offline?"en":urlParams.lang;if(null==a&&"undefined"!=typeof JSON&&isLocalStorage)try{var b=localStorage.getItem(".drawio-config");null!=b&&(a=JSON.parse(b).language||null)}catch(c){isLocalStorage=!1}return a}(); window.mxLanguageMap=window.mxLanguageMap||{i18n:"",id:"Bahasa Indonesia",ms:"Bahasa Melayu",bs:"Bosanski",ca:"Català",cs:"Čeština",da:"Dansk",de:"Deutsch",et:"Eesti",en:"English",es:"Español",fil:"Filipino",fr:"Français",it:"Italiano",hu:"Magyar",nl:"Nederlands",no:"Norsk",pl:"Polski","pt-br":"Português (Brasil)",pt:"Português (Portugal)",ro:"Română",fi:"Suomi",sv:"Svenska",vi:"Tiếng Việt",tr:"Türkçe",el:"Ελληνικά",ru:"Русский",sr:"Српски",uk:"Українська",he:"עברית",ar:"العربية",th:"ไทย",ko:"한국어", ja:"日本語",zh:"中文(中国)","zh-tw":"中文(台灣)"};"undefined"===typeof window.mxBasePath&&(window.mxBasePath="mxgraph");if(null==window.mxLanguages){window.mxLanguages=[];for(var lang in mxLanguageMap)"en"!=lang&&window.mxLanguages.push(lang)}window.uiTheme=window.uiTheme||function(){var a=urlParams.ui;if(null==a&&"undefined"!==typeof JSON&&isLocalStorage)try{var b=localStorage.getItem(".drawio-config");null!=b&&(a=JSON.parse(b).ui||null)}catch(c){isLocalStorage=!1}return a}(); function setCurrentXml(a,b){null!=window.parent&&null!=window.parent.openFile&&window.parent.openFile.setData(a,b)}(function(){if("undefined"!==typeof JSON&&isLocalStorage)try{var a=localStorage.getItem(".drawio-config"),b=!0;null!=a&&(b=JSON.parse(a).showStartScreen);0==b&&(urlParams.splash="0")}catch(c){}})();var ex=urlParams["export"];null!=ex&&("http://"!=ex.substring(0,7)&&"https://"!=ex.substring(0,8)&&(ex="http://"+ex),EXPORT_URL=ex); if("1"==urlParams.offline||"1"==urlParams.demo||"1"==urlParams.stealth||"1"==urlParams.local)urlParams.analytics="0",urlParams.picker="0",urlParams.gapi="0",urlParams.db="0",urlParams.od="0",urlParams.gh="0";if("1"==urlParams.offline||"1"==urlParams.local)urlParams.math="0";"1"==urlParams.lightbox&&(urlParams.chrome="0");var host=window.location.host,searchString="draw.io",position=host.length-searchString.length,lastIndex=host.lastIndexOf(searchString,position); -1!==lastIndex&&lastIndex===position&&"test.draw.io"!=host&&(window.DRAWIO_LOG_URL="https://log.draw.io");window.urlParams=window.urlParams||{};window.MAX_REQUEST_SIZE=window.MAX_REQUEST_SIZE||10485760;window.MAX_AREA=window.MAX_AREA||225E6;window.EXPORT_URL=window.EXPORT_URL||"/export";window.SAVE_URL=window.SAVE_URL||"/save";window.OPEN_URL=window.OPEN_URL||"/open";window.RESOURCES_PATH=window.RESOURCES_PATH||"resources";window.RESOURCE_BASE=window.RESOURCE_BASE||window.RESOURCES_PATH+"/grapheditor";window.STENCIL_PATH=window.STENCIL_PATH||"stencils";window.IMAGE_PATH=window.IMAGE_PATH||"images"; window.STYLE_PATH=window.STYLE_PATH||"styles";window.CSS_PATH=window.CSS_PATH||"styles";window.OPEN_FORM=window.OPEN_FORM||"open.html";window.mxBasePath=window.mxBasePath||"../../../src";window.mxLanguage=window.mxLanguage||urlParams.lang;window.mxLanguages=window.mxLanguages||["de"];var mxClient={VERSION:"3.7.2",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/")|| 0<=navigator.userAgent.indexOf("Epiphany/")||0<=navigator.userAgent.indexOf("AppleWebKit/")||0<=navigator.userAgent.indexOf("Gecko/")||0<=navigator.userAgent.indexOf("Opera/")||null!=document.documentMode&&9<=document.documentMode,NO_FO:!document.createElementNS||"[object SVGForeignObjectElement]"!=document.createElementNS("http://www.w3.org/2000/svg","foreignObject")||0<=navigator.userAgent.indexOf("Opera/"),IS_VML:"MICROSOFT INTERNET EXPLORER"==navigator.appName.toUpperCase(),IS_WIN:0document.location.href.indexOf("http://")&&0>document.location.href.indexOf("https://"),isBrowserSupported:function(){return mxClient.IS_VML||mxClient.IS_SVG},link:function(a,b,c){c=c||document;if(mxClient.IS_IE6)c.write('');else{var d=c.createElement("link"); d.setAttribute("rel",a);d.setAttribute("href",b);d.setAttribute("charset","UTF-8");d.setAttribute("type","text/css");c.getElementsByTagName("head")[0].appendChild(d)}},include:function(a){document.write('