(function(M,X,Y,Z,R,$,z,I,y,B,A,aa,ba,D,ca,t,u,da,F,L,K,x,l,O,T,U,V,E,W,ea,P,fa,ga,ha,ia,ja,ka,la,ma,na,oa,pa,qa,ra,sa,ta,ua,va,wa,xa,ya,za,Aa,Ba,Ca,d,m){z("JU");y(["javajs.api.GenericZipTools"],"JU.ZipTools","java.io.BufferedInputStream java.util.zip.CRC32 $.GZIPInputStream $.ZipEntry javajs.api.GenericZipInputStream $.Interface JU.BArray $.Lst $.Rdr $.SB".split(" "),function(){var a=F(JU,"ZipTools",null,javajs.api.GenericZipTools);m(a,"newZipInputStream",function(b){return JU.ZipTools.newZIS(b)},
"java.io.InputStream");a.newZIS=d(a,"newZIS",function(b){return I(b,"java.util.zip.ZipInputStream")?b:I(b,"java.io.BufferedInputStream")?new javajs.api.GenericZipInputStream(b):new javajs.api.GenericZipInputStream(new java.io.BufferedInputStream(b))},"java.io.InputStream");m(a,"getAllZipData",function(){},"java.io.InputStream,~A,~S,~S,~S,java.util.Map");m(a,"getZipFileDirectory",function(b,c,h,a){var g,j=null==c||h>=c.length,f=j?".":c[h];if(JU.Rdr.isTar(b))return JU.ZipTools.getTarFileDirectory(b,
f,a);if(j)return this.getZipDirectoryAsStringAndClose(b);b=JU.Rdr.getPngZipStream(b,!0);b=JU.ZipTools.newZIS(b);var k;try{var d=f.equals(".");if(d||f.lastIndexOf("/")==f.length-1){for(g=new JU.SB;null!=(k=b.getNextEntry());){var v=k.getName();(d||v.startsWith(f))&&g.append(v).appendC("\n")}var q=g.toString();return a?JU.Rdr.getBIS(q.getBytes()):q}var r=f.indexOf(":asBinaryString");(d=0<r)&&(f=f.substring(0,r));for(f=f.$replace("\\","/");null!=(k=b.getNextEntry())&&!f.equals(k.getName()););var p=null==
k?null:JU.Rdr.getLimitedStreamBytes(b,k.getSize());b.close();if(null==p)return"";if(JU.Rdr.isZipB(p)||JU.Rdr.isPngZipB(p))return this.getZipFileDirectory(JU.Rdr.getBIS(p),c,++h,a);if(a)return JU.Rdr.getBIS(p);if(d){g=new JU.SB;for(c=0;c<p.length;c++)g.append(Integer.toHexString(p[c]&255)).appendC(" ");return g.toString()}JU.Rdr.isGzipB(p)&&(p=JU.Rdr.getLimitedStreamBytes(this.getUnGzippedInputStream(p),-1));return JU.Rdr.fixUTF(p)}catch(n){if(t(n,Exception))return"";throw n;}},"java.io.BufferedInputStream,~A,~N,~B");
a.getTarFileDirectory=d(a,"getTarFileDirectory",function(b,c,h){var a;try{if(c.equals(".")||c.lastIndexOf("/")==c.length-1){a=new JU.SB;JU.ZipTools.getTarContents(b,c,a);var g=a.toString();return h?JU.Rdr.getBIS(g.getBytes()):g}c=c.$replace("\\","/");var j=JU.ZipTools.getTarContents(b,c,null);b.close();return null==j?"":h?JU.Rdr.getBIS(j):JU.Rdr.fixUTF(j)}catch(f){if(t(f,Exception))return"";throw f;}},"java.io.BufferedInputStream,~S,~B");m(a,"getZipFileContentsAsBytes",function(b,c,h){var a=x(0,0),
g=c[h];if(g.lastIndexOf("/")==g.length-1)return a;try{if(JU.Rdr.isTar(b))return JU.ZipTools.getTarContents(b,g,null);b=JU.Rdr.getPngZipStream(b,!0);for(var j=JU.ZipTools.newZIS(b),f;null!=(f=j.getNextEntry());)if(g.equals(f.getName())){var k=JU.Rdr.getLimitedStreamBytes(j,f.getSize());return(JU.Rdr.isZipB(k)||JU.Rdr.isPngZipB(k))&&++h<c.length?this.getZipFileContentsAsBytes(JU.Rdr.getBIS(k),c,h):k}}catch(d){if(!t(d,Exception))throw d;}return a},"java.io.BufferedInputStream,~A,~N");a.getTarContents=
d(a,"getTarContents",function(b,c,h){null==JU.ZipTools.b512&&(JU.ZipTools.b512=x(512,0));for(var a=c.length;0<b.read(JU.ZipTools.b512,0,512);){var g=JU.ZipTools.getTarFile(b,c,a,h,null,!1);if(null!=g)return g}return null},"java.io.BufferedInputStream,~S,JU.SB");a.getTarFile=d(a,"getTarFile",function(b,c,h,a,g,j){for(var f=124;48==JU.ZipTools.b512[f];)f++;for(var k=null!=a&&c.equals("."),d=0;135>f;)d=(d<<3)+(JU.ZipTools.b512[f++]-48);if(0==d)return null;var f=String.instantialize(JU.ZipTools.b512,
0,100).trim(),f=String.instantialize(JU.ZipTools.b512,345,155).trim()+f,v=!1;if(null!=a){if(0==f.length)return null;if(k||(j?f.equalsIgnoreCase(c):f.startsWith(c)))v=null!=g,a.append(f).appendC("\n");h=-1}a=(512-d%512)%512;if(!v&&(h!=f.length||!c.equals(f))){for(g=d+a>>9;0<=--g;)b.read(JU.ZipTools.b512,0,512);return null}c=JU.Rdr.getLimitedStreamBytes(b,d);null!=g&&(g.put(f,new JU.BArray(c)),b.read(JU.ZipTools.b512,0,a));return c},"java.io.BufferedInputStream,~S,~N,JU.SB,java.util.Map,~B");m(a,"getZipDirectoryAsStringAndClose",
function(b){var c=new JU.SB,h=[];try{h=this.getZipDirectoryOrErrorAndClose(b,null),b.close()}catch(a){if(t(a,Exception))System.out.println(a.toString());else throw a;}for(b=0;b<h.length;b++)c.append(h[b]).appendC("\n");return c.toString()},"java.io.BufferedInputStream");m(a,"getZipDirectoryAndClose",function(b,c){var a=[];try{a=this.getZipDirectoryOrErrorAndClose(b,c),b.close()}catch(e){if(t(e,Exception))System.out.println(e.toString());else throw e;}return a},"java.io.BufferedInputStream,~S");d(a,
"getZipDirectoryOrErrorAndClose",function(b,c){b=JU.Rdr.getPngZipStream(b,!0);for(var a=new JU.Lst,e=JU.ZipTools.newZIS(b),g,j=null;null!=(g=e.getNextEntry());)g=g.getName(),null!=c&&g.startsWith(c)?j=JU.ZipTools.getStreamAsString(e):g.startsWith("__MACOS")||a.addLast(g);e.close();null!=c&&a.add(0,null==j?"":j+"\n############\n");return a.toArray(Array(a.size()))},"java.io.BufferedInputStream,~S");a.getStreamAsString=d(a,"getStreamAsString",function(b){return JU.Rdr.fixUTF(JU.Rdr.getLimitedStreamBytes(b,
-1))},"java.io.InputStream");m(a,"newGZIPInputStream",function(b){return new java.io.BufferedInputStream(new java.util.zip.GZIPInputStream(b,512))},"java.io.InputStream");m(a,"newBZip2InputStream",function(b){return new java.io.BufferedInputStream(javajs.api.Interface.getInterface("org.apache.tools.bzip2.CBZip2InputStreamFactory").getStream(b))},"java.io.InputStream");m(a,"getUnGzippedInputStream",function(b){try{return JU.Rdr.getUnzippedInputStream(this,JU.Rdr.getBIS(b))}catch(c){if(t(c,Exception))return null;
throw c;}},"~A");m(a,"addZipEntry",function(b,c){b.putNextEntry(new java.util.zip.ZipEntry(c))},"~O,~S");m(a,"closeZipEntry",function(b){b.closeEntry()},"~O");m(a,"getZipOutputStream",function(b){return javajs.api.Interface.getInterface("java.util.zip.ZipOutputStream").setZOS(b)},"~O");m(a,"getCrcValue",function(b){var c=new java.util.zip.CRC32;c.update(b,0,b.length);return c.getValue()},"~A");m(a,"readFileAsMap",function(b,c,a){JU.ZipTools.readFileAsMapStatic(b,c,a)},"java.io.BufferedInputStream,java.util.Map,~S");
a.readFileAsMapStatic=d(a,"readFileAsMapStatic",function(b,c,a){var e=null==a?-1:a.indexOf("|");a=0<=e?a.substring(e+1):null;try{e=!1;if(JU.Rdr.isPngZipStream(b)){var g="_IMAGE_".equals(a);if(null==a||g)c.put(g?"_DATA_":"_IMAGE_",new JU.BArray(JU.ZipTools.getPngImageBytes(b)));e=!g}else if(JU.Rdr.isZipS(b))e=!0;else if(JU.Rdr.isTar(b))JU.ZipTools.cacheTarContentsStatic(b,a,c);else if(null==a)c.put("_DATA_",new JU.BArray(JU.Rdr.getLimitedStreamBytes(b,-1)));else throw new java.io.IOException("ZIP file "+
a+" not found");e&&JU.ZipTools.cacheZipContentsStatic(b,a,c,!0);c.put("$_BINARY_$",Boolean.TRUE)}catch(j){if(t(j,"java.io.IOException"))c.clear(),c.put("_ERROR_",j.getMessage());else throw j;}},"java.io.BufferedInputStream,java.util.Map,~S");a.cacheTarContentsStatic=d(a,"cacheTarContentsStatic",function(b,c,a){var e=new JU.SB,g=0;null!=c&&c.endsWith("/.")&&(c=c.substring(0,c.length-1));var j=null!=c&&c.endsWith("/"),j=null!=c&&!j;try{null==JU.ZipTools.b512&&(JU.ZipTools.b512=x(512,0));for(;0<b.read(JU.ZipTools.b512,
0,512);){var f=JU.ZipTools.getTarFile(b,null==c?".":c,-1,e,a,j);if(null!=f&&(g+=f.length,j))break}b.close()}catch(d){if(t(d,Exception)){try{b.close()}catch(C){if(!t(C,"java.io.IOException"))throw C;}return null}throw d;}if(0==g||null==c)return null;System.out.println("ZipTools cached "+g+" bytes from "+c);return e.toString()},"java.io.BufferedInputStream,~S,java.util.Map");m(a,"cacheZipContents",function(b,c,a,e){return JU.ZipTools.cacheZipContentsStatic(b,c,a,e)},"java.io.BufferedInputStream,~S,java.util.Map,~B");
a.cacheZipContentsStatic=d(a,"cacheZipContentsStatic",function(b,c,a,e){b=JU.ZipTools.newZIS(b);var g,j=new JU.SB,f=0;null!=c&&c.endsWith("/.")&&(c=c.substring(0,c.length-1));var d=null!=c&&c.endsWith("/"),C=null!=c&&!d&&e,v=C?c.indexOf("|"):-1,q=0<=v?c:null;0<=v&&(c=c.substring(0,v));v=null==c||d?"":c+"|";try{for(;null!=(g=b.getNextEntry());)if(!g.isDirectory()){var r=g.getName();if(null!=c)if(C){if(!r.equalsIgnoreCase(c))continue}else{if(d&&!r.startsWith(c))continue;j.append(r).appendC("\n")}var p=
g.getSize(),n=JU.Rdr.getLimitedStreamBytes(b,p);if(null!=q)return JU.ZipTools.readFileAsMapStatic(JU.Rdr.getBIS(n),a,q),null;var f=f+n.length,G=e?new JU.BArray(n):n;a.put(C?"_DATA_":v+r,G);if(C)break}b.close()}catch(m){if(t(m,Exception)){try{b.close()}catch(l){if(!t(l,"java.io.IOException"))throw l;}return null}throw m;}if(0==f||null==c)return null;System.out.println("ZipTools cached "+f+" bytes from "+c);return j.toString()},"java.io.BufferedInputStream,~S,java.util.Map,~B");a.getPngImageBytes=d(a,
"getPngImageBytes",function(b){try{if(JU.Rdr.isPngZipStream(b)){var c=u(2,0);JU.Rdr.getPngZipPointAndCount(b,c);if(0!=c[1])return JU.ZipTools.deActivatePngZipB(JU.Rdr.getLimitedStreamBytes(b,c[0]))}return JU.Rdr.getLimitedStreamBytes(b,-1)}catch(a){if(t(a,"java.io.IOException"))return null;throw a;}},"java.io.BufferedInputStream");a.deActivatePngZipB=d(a,"deActivatePngZipB",function(b){JU.Rdr.isPngZipB(b)&&(b[51]=32);return b},"~A");m(a,"isZipStream",function(b){return I(b,"javajs.api.ZInputStream")},
"~O");a.b512=null});y(["java.io.FilterInputStream"],"java.io.PushbackInputStream",null,function(){var a=A(function(){this.buf=null;this.pos=0;B(this,arguments)},java.io,"PushbackInputStream",java.io.FilterInputStream);D(a,function(b,c){K(this,java.io.PushbackInputStream,[b]);if(0>=c)throw new IllegalArgumentException("size <= 0");this.buf=x(c,0);this.pos=c},"java.io.InputStream,~N");d(a,"ensureOpen",function(){if(null==this.$in)throw new java.io.IOException("Stream closed");});m(a,"readByteAsInt",
function(){this.ensureOpen();return this.pos<this.buf.length?this.buf[this.pos++]&255:this.$in.readByteAsInt()});d(a,"read",function(b,c,a){this.ensureOpen();if(null==b)throw new NullPointerException;if(0>c||0>a||a>b.length-c)throw new IndexOutOfBoundsException;if(0==a)return 0;var e=this.buf.length-this.pos;0<e&&(a<e&&(e=a),System.arraycopy(this.buf,this.pos,b,c,e),this.pos+=e,c+=e,a-=e);return 0<a?(a=this.$in.read(b,c,a),-1==a?0==e?-1:e:e+a):e},"~A,~N,~N");d(a,"unreadByte",function(b){this.ensureOpen();
if(0==this.pos)throw new java.io.IOException("Push back buffer is full");this.buf[--this.pos]=b},"~N");d(a,"unread",function(b,c,a){this.ensureOpen();if(a>this.pos)throw new java.io.IOException("Push back buffer is full");this.pos-=a;System.arraycopy(b,c,this.buf,this.pos,a)},"~A,~N,~N");m(a,"available",function(){this.ensureOpen();var b=this.buf.length-this.pos,c=this.$in.available();return b>2147483647-c?2147483647:b+c});m(a,"skip",function(b){this.ensureOpen();if(0>=b)return 0;var c=this.buf.length-
this.pos;0<c&&(b<c&&(c=b),this.pos+=c,b-=c);0<b&&(c+=this.$in.skip(b));return c},"~N");m(a,"markSupported",function(){return!1});m(a,"mark",function(){},"~N");m(a,"reset",function(){throw new java.io.IOException("mark/reset not supported");});m(a,"close",function(){null!=this.$in&&(this.$in.close(),this.buf=this.$in=null)})});z("java.util.zip");y(["java.io.FilterInputStream"],"java.util.zip.CheckedInputStream",null,function(){var a=A(function(){this.cksum=null;B(this,arguments)},java.util.zip,"CheckedInputStream",
java.io.FilterInputStream);d(a,"set",function(b){this.$in=this.$in;this.cksum=b;return this},"com.jcraft.jzlib.Checksum");m(a,"readByteAsInt",function(){var b=this.$in.readByteAsInt();-1!=b&&this.cksum.updateByteAsInt(b);return b});d(a,"read",function(b,c,a){a=this.$in.read(b,c,a);-1!=a&&this.cksum.update(b,c,a);return a},"~A,~N,~N");m(a,"skip",function(b){for(var c=x(512,0),a=0;a<b;){var e=b-a,e=this.read(c,0,e<c.length?e:c.length);if(-1==e)break;a+=e}return a},"~N");d(a,"getChecksum",function(){return this.cksum})});
z("java.util.zip");y(["com.jcraft.jzlib.Inflater"],"java.util.zip.Inflater",null,function(){var a=F(java.util.zip,"Inflater",com.jcraft.jzlib.Inflater);d(a,"initialize",function(b){return this.init(0,b)},"~B")});z("java.util.zip");y(["java.io.IOException"],"java.util.zip.ZipException",null,function(){F(java.util.zip,"ZipException",java.io.IOException)});z("java.util.zip");M=l(java.util.zip,"ZipConstants");M.LOCSIG=67324752;M.EXTSIG=134695760;M.CENSIG=33639248;M.ENDSIG=101010256;z("java.util.zip");
y(["java.util.zip.ZipConstants"],"java.util.zip.ZipEntry",["java.util.Date"],function(){var a=A(function(){this.offset=0;this.name=null;this.method=this.csize=this.size=this.crc=this.time=-1;this.flag=0;this.comment=this.extra=null;B(this,arguments)},java.util.zip,"ZipEntry",null,[java.util.zip.ZipConstants,Cloneable]);D(a,function(b){if(null==b)throw new NullPointerException;if(65535<b.length)throw new IllegalArgumentException("entry name too long");this.name=b},"~S");d(a,"getName",function(){return this.name});
d(a,"setTime",function(b){this.time=java.util.zip.ZipEntry.javaToDosTime(b)},"~N");d(a,"getTime",function(){return-1!=this.time?java.util.zip.ZipEntry.dosToJavaTime(this.time):-1});d(a,"setSize",function(b){if(0>b)throw new IllegalArgumentException("invalid entry size");this.size=b},"~N");d(a,"getSize",function(){return this.size});d(a,"getCompressedSize",function(){return this.csize});d(a,"setCompressedSize",function(b){this.csize=b},"~N");d(a,"setCrc",function(b){if(0>b||4294967295<b)throw new IllegalArgumentException("invalid entry crc-32");
this.crc=b},"~N");d(a,"getCrc",function(){return this.crc});d(a,"setMethod",function(b){if(0!=b&&8!=b)throw new IllegalArgumentException("invalid compression method");this.method=b},"~N");d(a,"getMethod",function(){return this.method});d(a,"setExtra",function(b){if(null!=b&&65535<b.length)throw new IllegalArgumentException("invalid extra field length");this.extra=b},"~A");d(a,"getExtra",function(){return this.extra});d(a,"setComment",function(b){this.comment=b},"~S");d(a,"getComment",function(){return this.comment});
d(a,"isDirectory",function(){return this.name.endsWith("/")});m(a,"toString",function(){return this.getName()});a.dosToJavaTime=d(a,"dosToJavaTime",function(b){return(new java.util.Date((b>>25&127)+80,(b>>21&15)-1,b>>16&31,b>>11&31,b>>5&63,b<<1&62)).getTime()},"~N");a.javaToDosTime=d(a,"javaToDosTime",function(b){b=new java.util.Date(b);var c=b.getYear()+1900;return 1980>c?2162688:c-1980<<25|b.getMonth()+1<<21|b.getDate()<<16|b.getHours()<<11|b.getMinutes()<<5|b.getSeconds()>>1},"~N");m(a,"hashCode",
function(){return this.name.hashCode()});d(a,"clone",function(){try{var b=P(this,java.util.zip.ZipEntry,"clone",[]);null!=this.extra&&(b.extra=x(this.extra.length,0),System.arraycopy(this.extra,0,b.extra,0,this.extra.length));return b}catch(c){if(t(c,"CloneNotSupportedException"))throw new InternalError;throw c;}})});z("java.util.zip");F(java.util.zip,"ZipConstants64",null);z("java.util.zip");y(["java.util.zip.InflaterInputStream","$.ZipConstants","$.CRC32"],"java.util.zip.ZipInputStream",["java.io.PushbackInputStream",
"java.util.zip.Inflater","$.ZipEntry"],function(){var a=A(function(){this.entry=null;this.flag=0;this.crc=null;this.remaining=0;this.tmpbuf=null;this.entryEOF=this.$closed=!1;this.$b=this.byteTest=this.zc=null;B(this,arguments)},java.util.zip,"ZipInputStream",java.util.zip.InflaterInputStream,java.util.zip.ZipConstants);L(a,function(){this.crc=new java.util.zip.CRC32;this.tmpbuf=x(512,0);this.byteTest=x(-1,[32]);this.$b=x(256,0)});D(a,function(b){K(this,java.util.zip.ZipInputStream,[new java.io.PushbackInputStream(b,
1024),java.util.zip.ZipInputStream.newInflater(),512]);try{String.instantialize(this.byteTest,"UTF-8")}catch(c){if(t(c,"java.io.UnsupportedEncodingException"))throw new NullPointerException("charset is invalid");throw c;}this.zc="UTF-8"},"java.io.InputStream");d(a,"ensureOpen",function(){if(this.$closed)throw new java.io.IOException("Stream closed");});a.newInflater=d(a,"newInflater",function(){return(new java.util.zip.Inflater).init(0,!0)});d(a,"getNextEntry",function(){this.ensureOpen();null!=this.entry&&
this.closeEntry();this.crc.reset();this.inflater=this.inf=java.util.zip.ZipInputStream.newInflater();if(null==(this.entry=this.readLOC()))return null;0==this.entry.method&&(this.remaining=this.entry.size);this.entryEOF=!1;return this.entry});d(a,"closeEntry",function(){for(this.ensureOpen();-1!=this.read(this.tmpbuf,0,this.tmpbuf.length););this.entryEOF=!0});m(a,"available",function(){this.ensureOpen();return this.entryEOF?0:1});d(a,"read",function(b,c,a){this.ensureOpen();if(0>c||0>a||c>b.length-
a)throw new IndexOutOfBoundsException;if(0==a)return 0;if(null==this.entry)return-1;switch(this.entry.method){case 8:return a=this.readInf(b,c,a),-1==a?(this.readEnd(this.entry),this.entryEOF=!0,this.entry=null):this.crc.update(b,c,a),a;case 0:if(0>=this.remaining)return this.entryEOF=!0,this.entry=null,-1;a>this.remaining&&(a=this.remaining);a=this.$in.read(b,c,a);if(-1==a)throw new java.util.zip.ZipException("unexpected EOF");this.crc.update(b,c,a);this.remaining-=a;if(0==this.remaining&&this.entry.crc!=
this.crc.getValue())throw new java.util.zip.ZipException("invalid entry CRC (expected 0x"+Long.toHexString(this.entry.crc)+" but got 0x"+Long.toHexString(this.crc.getValue())+")");return a;default:throw new java.util.zip.ZipException("invalid compression method");}},"~A,~N,~N");m(a,"skip",function(b){if(0>b)throw new IllegalArgumentException("negative skip length");this.ensureOpen();b=Math.min(b,2147483647);for(var c=0;c<b;){var a=b-c;a>this.tmpbuf.length&&(a=this.tmpbuf.length);a=this.read(this.tmpbuf,
0,a);if(-1==a){this.entryEOF=!0;break}c+=a}return c},"~N");d(a,"close",function(){this.$closed||(P(this,java.util.zip.ZipInputStream,"close",[]),this.$closed=!0)});d(a,"readLOC",function(){try{this.readFully(this.tmpbuf,0,30)}catch(b){if(t(b,"java.io.EOFException"))return null;throw b;}if(67324752!=java.util.zip.ZipInputStream.get32(this.tmpbuf,0))return null;this.flag=java.util.zip.ZipInputStream.get16(this.tmpbuf,6);var c=java.util.zip.ZipInputStream.get16(this.tmpbuf,26),a=this.$b.length;if(c>
a){do a*=2;while(c>a);this.$b=x(a,0)}this.readFully(this.$b,0,c);a=this.createZipEntry(0!=(this.flag&2048)?this.toStringUTF8(this.$b,c):this.toStringb2(this.$b,c));if(1==(this.flag&1))throw new java.util.zip.ZipException("encrypted ZIP entry not supported");a.method=java.util.zip.ZipInputStream.get16(this.tmpbuf,8);a.time=java.util.zip.ZipInputStream.get32(this.tmpbuf,10);if(8!=(this.flag&8)||8!=a.getMethod())a.setCrc(java.util.zip.ZipInputStream.get32(this.tmpbuf,14)),a.setCompressedSize(java.util.zip.ZipInputStream.get32(this.tmpbuf,
18)),a.setSize(java.util.zip.ZipInputStream.get32(this.tmpbuf,22));c=java.util.zip.ZipInputStream.get16(this.tmpbuf,28);if(0<c){var e=x(c,0);this.readFully(e,0,c);a.setExtra(e);if(4294967295==a.csize||4294967295==a.size)for(var g=0;g+4<c;){var j=java.util.zip.ZipInputStream.get16(e,g+2);if(1==java.util.zip.ZipInputStream.get16(e,g)){g+=4;if(16>j||g+j>c)break;a.size=java.util.zip.ZipInputStream.get64(e,g);a.csize=java.util.zip.ZipInputStream.get64(e,g+8);break}g+=j+4}}return a});d(a,"toStringUTF8",
function(b,c){try{return String.instantialize(b,0,c,this.zc)}catch(a){if(t(a,"java.io.UnsupportedEncodingException"))return this.toStringb2(b,c);throw a;}},"~A,~N");d(a,"toStringb2",function(b,c){return String.instantialize(b,0,c)},"~A,~N");d(a,"createZipEntry",function(b){return new java.util.zip.ZipEntry(b)},"~S");d(a,"readEnd",function(b){var c=this.inf.getAvailIn();0<c&&(this.$in.unread(this.buf,this.len-c,c),this.eof=!1);8==(this.flag&8)&&(4294967295<this.inf.getTotalOut()||4294967295<this.inf.getTotalIn()?
(this.readFully(this.tmpbuf,0,24),c=java.util.zip.ZipInputStream.get32(this.tmpbuf,0),134695760!=c?(b.crc=c,b.csize=java.util.zip.ZipInputStream.get64(this.tmpbuf,4),b.size=java.util.zip.ZipInputStream.get64(this.tmpbuf,12),this.$in.unread(this.tmpbuf,19,4)):(b.crc=java.util.zip.ZipInputStream.get32(this.tmpbuf,4),b.csize=java.util.zip.ZipInputStream.get64(this.tmpbuf,8),b.size=java.util.zip.ZipInputStream.get64(this.tmpbuf,16))):(this.readFully(this.tmpbuf,0,16),c=java.util.zip.ZipInputStream.get32(this.tmpbuf,
0),134695760!=c?(b.crc=c,b.csize=java.util.zip.ZipInputStream.get32(this.tmpbuf,4),b.size=java.util.zip.ZipInputStream.get32(this.tmpbuf,8),this.$in.unread(this.tmpbuf,11,4)):(b.crc=java.util.zip.ZipInputStream.get32(this.tmpbuf,4),b.csize=java.util.zip.ZipInputStream.get32(this.tmpbuf,8),b.size=java.util.zip.ZipInputStream.get32(this.tmpbuf,12))));if(b.size!=this.inf.getTotalOut())throw new java.util.zip.ZipException("invalid entry size (expected "+b.size+" but got "+this.inf.getTotalOut()+" bytes)");
if(b.csize!=this.inf.getTotalIn())throw new java.util.zip.ZipException("invalid entry compressed size (expected "+b.csize+" but got "+this.inf.getTotalIn()+" bytes)");if(b.crc!=this.crc.getValue())throw new java.util.zip.ZipException("invalid entry CRC (expected 0x"+Long.toHexString(b.crc)+" but got 0x"+Long.toHexString(this.crc.getValue())+")");},"java.util.zip.ZipEntry");d(a,"readFully",function(b,c,a){for(;0<a;){var e=this.$in.read(b,c,a);if(-1==e)throw new java.io.EOFException;c+=e;a-=e}},"~A,~N,~N");
a.get16=d(a,"get16",function(b,c){return b[c]&255|(b[c+1]&255)<<8},"~A,~N");a.get32=d(a,"get32",function(b,c){return(java.util.zip.ZipInputStream.get16(b,c)|java.util.zip.ZipInputStream.get16(b,c+2)<<16)&4294967295},"~A,~N");a.get64=d(a,"get64",function(b,c){return java.util.zip.ZipInputStream.get32(b,c)|java.util.zip.ZipInputStream.get32(b,c+4)<<32},"~A,~N")});z("java.util.zip");y(["com.jcraft.jzlib.CRC32"],"java.util.zip.CRC32",null,function(){F(java.util.zip,"CRC32",com.jcraft.jzlib.CRC32)});z("java.util.zip");
y(["com.jcraft.jzlib.InflaterInputStream"],"java.util.zip.InflaterInputStream",null,function(){var a=A(function(){this.inf=null;B(this,arguments)},java.util.zip,"InflaterInputStream",com.jcraft.jzlib.InflaterInputStream);D(a,function(b,c,a){K(this,java.util.zip.InflaterInputStream,[b,c,a,!0]);this.inf=c},"java.io.InputStream,java.util.zip.Inflater,~N")});z("java.util.zip");y(["java.util.zip.InflaterInputStream","$.CRC32"],"java.util.zip.GZIPInputStream",["java.util.zip.CheckedInputStream","$.Inflater"],
function(){var a=A(function(){this.crc=null;this.$closed=this.eos=!1;this.tmpbuf=null;B(this,arguments)},java.util.zip,"GZIPInputStream",java.util.zip.InflaterInputStream);L(a,function(){this.crc=new java.util.zip.CRC32;this.tmpbuf=x(128,0)});D(a,function(b,c){K(this,java.util.zip.GZIPInputStream,[b,(new java.util.zip.Inflater).init(0,!0),c]);this.readHeader(b)},"java.io.InputStream,~N");d(a,"ensureOpen",function(){if(this.$closed)throw new java.io.IOException("Stream closed");});d(a,"read",function(b,
c,a){this.ensureOpen();if(this.eos)return-1;var e=this.readInf(b,c,a);if(-1==e)if(this.readTrailer())this.eos=!0;else return this.read(b,c,a);else this.crc.update(b,c,e);return e},"~A,~N,~N");d(a,"close",function(){this.$closed||(P(this,java.util.zip.GZIPInputStream,"close",[]),this.$closed=this.eos=!0)});d(a,"readHeader",function(b){b=(new java.util.zip.CheckedInputStream(b)).set(this.crc);this.crc.reset();if(35615!=this.readUShort(b))throw new java.util.zip.ZipException("Not in GZIP format");if(8!=
this.readUByte(b))throw new java.util.zip.ZipException("Unsupported compression method");var c=this.readUByte(b);this.skipBytes(b,6);var a=10;if(4==(c&4)){var e=this.readUShort(b);this.skipBytes(b,e);a+=e+2}if(8==(c&8)){do a++;while(0!=this.readUByte(b))}if(16==(c&16)){do a++;while(0!=this.readUByte(b))}if(2==(c&2)){c=this.crc.getValue()&65535;if(this.readUShort(b)!=c)throw new java.util.zip.ZipException("Corrupt GZIP header");a+=2}this.crc.reset();return a},"java.io.InputStream");d(a,"readTrailer",
function(){return!0});d(a,"readUShort",function(b){var c=this.readUByte(b);return this.readUByte(b)<<8|c},"java.io.InputStream");d(a,"readUByte",function(b){b=b.readByteAsInt();if(-1==b)throw new java.io.EOFException;if(-1>b||255<b)throw new java.io.IOException(this.$in.getClass().getName()+".read() returned value out of range -1..255: "+b);return b},"java.io.InputStream");d(a,"skipBytes",function(b,c){for(;0<c;){var a=b.read(this.tmpbuf,0,c<this.tmpbuf.length?c:this.tmpbuf.length);if(-1==a)throw new java.io.EOFException;
c-=a}},"java.io.InputStream,~N")});z("javajs.api");y(["java.util.zip.ZipInputStream","javajs.api.ZInputStream"],"javajs.api.GenericZipInputStream",null,function(){F(javajs.api,"GenericZipInputStream",java.util.zip.ZipInputStream,javajs.api.ZInputStream)});z("com.jcraft.jzlib");l(com.jcraft.jzlib,"Checksum");z("com.jcraft.jzlib");y(["com.jcraft.jzlib.Checksum"],"com.jcraft.jzlib.CRC32",null,function(){var a=A(function(){this.crc=0;this.b1=null;B(this,arguments)},com.jcraft.jzlib,"CRC32",null,com.jcraft.jzlib.Checksum);
L(a,function(){this.b1=x(1,0)});m(a,"update",function(b,c,a){for(var e=~this.crc;0<=--a;)e=com.jcraft.jzlib.CRC32.crc_table[(e^b[c++])&255]^e>>>8;this.crc=~e},"~A,~N,~N");m(a,"reset",function(){this.crc=0});m(a,"resetLong",function(b){this.crc=b&4294967295},"~N");m(a,"getValue",function(){return this.crc&4294967295});m(a,"updateByteAsInt",function(b){this.b1[0]=b;this.update(this.b1,0,1)},"~N");a.crc_table=u(-1,[0,1996959894,-301047508,-1727442502,124634137,1886057615,-379345611,-1637575261,249268274,
2044508324,-522852066,-1747789432,162941995,2125561021,-407360249,-1866523247,498536548,1789927666,-205950648,-2067906082,450548861,1843258603,-187386543,-2083289657,325883990,1684777152,-43845254,-1973040660,335633487,1661365465,-99664541,-1928851979,997073096,1281953886,-715111964,-1570279054,1006888145,1258607687,-770865667,-1526024853,901097722,1119000684,-608450090,-1396901568,853044451,1172266101,-589951537,-1412350631,651767980,1373503546,-925412992,-1076862698,565507253,1454621731,-809855591,
-1195530993,671266974,1594198024,-972236366,-1324619484,795835527,1483230225,-1050600021,-1234817731,1994146192,31158534,-1731059524,-271249366,1907459465,112637215,-1614814043,-390540237,2013776290,251722036,-1777751922,-519137256,2137656763,141376813,-1855689577,-429695999,1802195444,476864866,-2056965928,-228458418,1812370925,453092731,-2113342271,-183516073,1706088902,314042704,-1950435094,-54949764,1658658271,366619977,-1932296973,-69972891,1303535960,984961486,-1547960204,-725929758,1256170817,
1037604311,-1529756563,-740887301,1131014506,879679996,-1385723834,-631195440,1141124467,855842277,-1442165665,-586318647,1342533948,654459306,-1106571248,-921952122,1466479909,544179635,-1184443383,-832445281,1591671054,702138776,-1328506846,-942167884,1504918807,783551873,-1212326853,-1061524307,-306674912,-1698712650,62317068,1957810842,-355121351,-1647151185,81470997,1943803523,-480048366,-1805370492,225274430,2053790376,-468791541,-1828061283,167816743,2097651377,-267414716,-2029476910,503444072,
1762050814,-144550051,-2140837941,426522225,1852507879,-19653770,-1982649376,282753626,1742555852,-105259153,-1900089351,397917763,1622183637,-690576408,-1580100738,953729732,1340076626,-776247311,-1497606297,1068828381,1219638859,-670225446,-1358292148,906185462,1090812512,-547295293,-1469587627,829329135,1181335161,-882789492,-1134132454,628085408,1382605366,-871598187,-1156888829,570562233,1426400815,-977650754,-1296233688,733239954,1555261956,-1026031705,-1244606671,752459403,1541320221,-1687895376,
-328994266,1969922972,40735498,-1677130071,-351390145,1913087877,83908371,-1782625662,-491226604,2075208622,213261112,-1831694693,-438977011,2094854071,198958881,-2032938284,-237706686,1759359992,534414190,-2118248755,-155638181,1873836001,414664567,-2012718362,-15766928,1711684554,285281116,-1889165569,-127750551,1634467795,376229701,-1609899400,-686959890,1308918612,956543938,-1486412191,-799009033,1231636301,1047427035,-1362007478,-640263460,1088359270,936918E3,-1447252397,-558129467,1202900863,
817233897,-1111625188,-893730166,1404277552,615818150,-1160759803,-841546093,1423857449,601450431,-1285129682,-1000256840,1567103746,711928724,-1274298825,-1022587231,1510334235,755167117])});z("com.jcraft.jzlib");y(["java.io.FilterInputStream"],"com.jcraft.jzlib.InflaterInputStream",null,function(){var a=A(function(){this.buf=this.inflater=null;this.len=0;this.eof=this.closed=!1;this.close_in=!0;this.myinflater=!1;this.b=this.byte1=null;B(this,arguments)},com.jcraft.jzlib,"InflaterInputStream",java.io.FilterInputStream);
L(a,function(){this.byte1=x(1,0);this.b=x(512,0)});D(a,function(b,c,a,e){K(this,com.jcraft.jzlib.InflaterInputStream,[b]);this.inflater=c;this.buf=x(a,0);this.close_in=e},"java.io.InputStream,com.jcraft.jzlib.Inflater,~N,~B");m(a,"readByteAsInt",function(){if(this.closed)throw new java.io.IOException("Stream closed");return-1==this.read(this.byte1,0,1)?-1:this.byte1[0]&255});m(a,"read",function(b,c,a){return this.readInf(b,c,a)},"~A,~N,~N");d(a,"readInf",function(b,c,a){if(this.closed)throw new java.io.IOException("Stream closed");
if(null==b)throw new NullPointerException;if(0>c||0>a||a>b.length-c)throw new IndexOutOfBoundsException;if(0==a)return 0;if(this.eof)return-1;var e=0;for(this.inflater.setOutput(b,c,a);!this.eof;){0==this.inflater.avail_in&&this.fill();b=this.inflater.inflate(0);e+=this.inflater.next_out_index-c;c=this.inflater.next_out_index;switch(b){case -3:throw new java.io.IOException(this.inflater.msg);case 1:case 2:if(this.eof=!0,2==b)return-1}if(0==this.inflater.avail_out)break}return e},"~A,~N,~N");m(a,"available",
function(){if(this.closed)throw new java.io.IOException("Stream closed");return this.eof?0:1});m(a,"skip",function(b){if(0>b)throw new IllegalArgumentException("negative skip length");if(this.closed)throw new java.io.IOException("Stream closed");b=Math.min(b,2147483647);for(var c=0;c<b;){var a=b-c;a>this.b.length&&(a=this.b.length);a=this.read(this.b,0,a);if(-1==a){this.eof=!0;break}c+=a}return c},"~N");m(a,"close",function(){this.closed||(this.myinflater&&this.inflater.end(),this.close_in&&this.$in.close(),
this.closed=!0)});d(a,"fill",function(){if(this.closed)throw new java.io.IOException("Stream closed");this.len=this.$in.read(this.buf,0,this.buf.length);if(-1==this.len)if(0==this.inflater.istate.wrap&&!this.inflater.finished())this.buf[0]=0,this.len=1;else{if(-1!=this.inflater.istate.was)throw new java.io.IOException("footer is not found");throw new java.io.EOFException("Unexpected end of ZLIB input stream");}this.inflater.setInput(this.buf,0,this.len,!0)});m(a,"markSupported",function(){return!1});
m(a,"mark",function(){},"~N");m(a,"reset",function(){throw new java.io.IOException("mark/reset not supported");});d(a,"getTotalIn",function(){return this.inflater.getTotalIn()});d(a,"getTotalOut",function(){return this.inflater.getTotalOut()});d(a,"getAvailIn",function(){if(0>=this.inflater.avail_in)return null;var b=x(this.inflater.avail_in,0);System.arraycopy(this.inflater.next_in,this.inflater.next_in_index,b,0,this.inflater.avail_in);return b});d(a,"readHeader",function(){var b="".getBytes();
this.inflater.setInput(b,0,0,!1);this.inflater.setOutput(b,0,0);b=this.inflater.inflate(0);if(this.inflater.istate.inParsingHeader()){var c=x(1,0);do{if(0>=this.$in.read(c,0,1))throw new java.io.IOException("no input");this.inflater.setInput(c,0,c.length,!1);b=this.inflater.inflate(0);if(0!=b)throw new java.io.IOException(this.inflater.msg);}while(this.inflater.istate.inParsingHeader())}});d(a,"getInflater",function(){return this.inflater})});z("com.jcraft.jzlib");y(null,"com.jcraft.jzlib.ZStream",
["com.jcraft.jzlib.Adler32"],function(){var a=A(function(){this.next_in=null;this.total_in=this.avail_in=this.next_in_index=0;this.next_out=null;this.total_out=this.avail_out=this.next_out_index=0;this.istate=this.dstate=this.msg=null;this.data_type=0;this.checksum=null;B(this,arguments)},com.jcraft.jzlib,"ZStream",null);d(a,"setAdler32",function(){this.checksum=new com.jcraft.jzlib.Adler32});d(a,"inflate",function(b){return null==this.istate?-2:this.istate.inflate(b)},"~N");d(a,"deflate",function(b){return null==
this.dstate?-2:this.dstate.deflate(b)},"~N");d(a,"flush_pending",function(){var b=this.dstate.pending;b>this.avail_out&&(b=this.avail_out);0!=b&&(System.arraycopy(this.dstate.pending_buf,this.dstate.pending_out,this.next_out,this.next_out_index,b),this.next_out_index+=b,this.dstate.pending_out+=b,this.total_out+=b,this.avail_out-=b,this.dstate.pending-=b,0==this.dstate.pending&&(this.dstate.pending_out=0))});d(a,"read_buf",function(b,c,a){var e=this.avail_in;e>a&&(e=a);if(0==e)return 0;this.avail_in-=
e;0!=this.dstate.wrap&&this.checksum.update(this.next_in,this.next_in_index,e);System.arraycopy(this.next_in,this.next_in_index,b,c,e);this.next_in_index+=e;this.total_in+=e;return e},"~A,~N,~N");d(a,"getAdler",function(){return this.checksum.getValue()});d(a,"free",function(){this.msg=this.next_out=this.next_in=null});d(a,"setOutput",function(b,c,a){this.next_out=b;this.next_out_index=c;this.avail_out=a},"~A,~N,~N");d(a,"setInput",function(b,c,a,e){0>=a&&e&&null!=this.next_in||(0<this.avail_in&&
e?(e=x(this.avail_in+a,0),System.arraycopy(this.next_in,this.next_in_index,e,0,this.avail_in),System.arraycopy(b,c,e,this.avail_in,a),this.next_in=e,this.next_in_index=0,this.avail_in+=a):(this.next_in=b,this.next_in_index=c,this.avail_in=a))},"~A,~N,~N,~B");d(a,"getAvailIn",function(){return this.avail_in});d(a,"getTotalOut",function(){return this.total_out});d(a,"getTotalIn",function(){return this.total_in});a.getBytes=d(a,"getBytes",function(b){for(var c=[],a=0;a<b.length;a++){var e=b.charCodeAt(a);
127>=e?c.push(e):2047>=e?(c.push(192|e>>6&31),c.push(128|e&63)):65535>=e?(c.push(224|e>>12&15),c.push(128|e>>6&63),c.push(128|e&63)):c.push(63)}return Int32Array!=Array?new Int32Array(c):c},"~S")});z("com.jcraft.jzlib");y(["com.jcraft.jzlib.ZStream"],"com.jcraft.jzlib.Inflater",["com.jcraft.jzlib.Inflate"],function(){var a=F(com.jcraft.jzlib,"Inflater",com.jcraft.jzlib.ZStream);d(a,"init",function(b,c){this.setAdler32();0==b&&(b=15);this.istate=new com.jcraft.jzlib.Inflate(this);this.istate.inflateInit(c?
-b:b);return this},"~N,~B");m(a,"inflate",function(b){return null==this.istate?-2:this.istate.inflate(b)},"~N");m(a,"end",function(){return null==this.istate?-2:this.istate.inflateEnd()});d(a,"sync",function(){return null==this.istate?-2:this.istate.inflateSync()});d(a,"syncPoint",function(){return null==this.istate?-2:this.istate.inflateSyncPoint()});d(a,"setDictionary",function(b,c){return null==this.istate?-2:this.istate.inflateSetDictionary(b,c)},"~A,~N");m(a,"finished",function(){return 12==
this.istate.mode});d(a,"reset",function(){this.avail_in=0;null!=this.istate&&this.istate.reset()})});z("com.jcraft.jzlib");y(["com.jcraft.jzlib.Checksum"],"com.jcraft.jzlib.Adler32",null,function(){var a=A(function(){this.s1=1;this.s2=0;this.b1=null;B(this,arguments)},com.jcraft.jzlib,"Adler32",null,com.jcraft.jzlib.Checksum);L(a,function(){this.b1=x(1,0)});m(a,"resetLong",function(b){this.s1=b&65535;this.s2=b>>16&65535},"~N");m(a,"reset",function(){this.s1=1;this.s2=0});m(a,"getValue",function(){return this.s2<<
16|this.s1});m(a,"update",function(b,c,a){if(1==a)this.s1+=b[c++]&255,this.s2+=this.s1;else{for(var e=R(a/5552),g=a%5552;0<e--;){var j=5552;for(a-=j;0<j--;)this.s1+=b[c++]&255,this.s2+=this.s1;this.s1%=65521;this.s2%=65521}for(j=g;0<j--;)this.s1+=b[c++]&255,this.s2+=this.s1}this.s1%=65521;this.s2%=65521},"~A,~N,~N");m(a,"updateByteAsInt",function(b){this.b1[0]=b;this.update(this.b1,0,1)},"~N")});z("com.jcraft.jzlib");l=A(function(){this.dyn_tree=null;this.max_code=0;this.stat_desc=null;B(this,arguments)},
com.jcraft.jzlib,"Tree",null);l.d_code=d(l,"d_code",function(a){return 256>a?com.jcraft.jzlib.Tree._dist_code[a]:com.jcraft.jzlib.Tree._dist_code[256+(a>>>7)]},"~N");d(l,"gen_bitlen",function(a){var b=this.dyn_tree,c=this.stat_desc.static_tree,h=this.stat_desc.extra_bits,e=this.stat_desc.extra_base,g=this.stat_desc.max_length,j,f,d,C,v,q=0;for(d=0;15>=d;d++)a.bl_count[d]=0;b[2*a.heap[a.heap_max]+1]=0;for(j=a.heap_max+1;573>j;j++)f=a.heap[j],d=b[2*b[2*f+1]+1]+1,d>g&&(d=g,q++),b[2*f+1]=d,f>this.max_code||
(a.bl_count[d]++,C=0,f>=e&&(C=h[f-e]),v=b[2*f],a.opt_len+=v*(d+C),null!=c&&(a.static_len+=v*(c[2*f+1]+C)));if(0!=q){do{for(d=g-1;0==a.bl_count[d];)d--;a.bl_count[d]--;a.bl_count[d+1]+=2;a.bl_count[g]--;q-=2}while(0<q);for(d=g;0!=d;d--)for(f=a.bl_count[d];0!=f;)c=a.heap[--j],c>this.max_code||(b[2*c+1]!=d&&(a.opt_len+=(d-b[2*c+1])*b[2*c],b[2*c+1]=d),f--)}},"com.jcraft.jzlib.Deflate");d(l,"build_tree",function(a){var b=this.dyn_tree,c=this.stat_desc.static_tree,h=this.stat_desc.elems,e,g=-1,d;a.heap_len=
0;a.heap_max=573;for(e=0;e<h;e++)0!=b[2*e]?(a.heap[++a.heap_len]=g=e,a.depth[e]=0):b[2*e+1]=0;for(;2>a.heap_len;)d=a.heap[++a.heap_len]=2>g?++g:0,b[2*d]=1,a.depth[d]=0,a.opt_len--,null!=c&&(a.static_len-=c[2*d+1]);this.max_code=g;for(e=R(a.heap_len/2);1<=e;e--)a.pqdownheap(b,e);d=h;do e=a.heap[1],a.heap[1]=a.heap[a.heap_len--],a.pqdownheap(b,1),c=a.heap[1],a.heap[--a.heap_max]=e,a.heap[--a.heap_max]=c,b[2*d]=b[2*e]+b[2*c],a.depth[d]=Math.max(a.depth[e],a.depth[c])+1,b[2*e+1]=b[2*c+1]=d,a.heap[1]=
d++,a.pqdownheap(b,1);while(2<=a.heap_len);a.heap[--a.heap_max]=a.heap[1];this.gen_bitlen(a);com.jcraft.jzlib.Tree.gen_codes(b,g,a.bl_count)},"com.jcraft.jzlib.Deflate");l.gen_codes=d(l,"gen_codes",function(a,b,c){var h=0,e;com.jcraft.jzlib.Tree.next_code[0]=0;for(e=1;15>=e;e++)com.jcraft.jzlib.Tree.next_code[e]=h=h+c[e-1]<<1;for(c=0;c<=b;c++)h=a[2*c+1],0!=h&&(a[2*c]=com.jcraft.jzlib.Tree.bi_reverse(com.jcraft.jzlib.Tree.next_code[h]++,h))},"~A,~N,~A");l.bi_reverse=d(l,"bi_reverse",function(a,b){var c=
0;do c|=a&1,a>>>=1,c<<=1;while(0<--b);return c>>>1},"~N,~N");l.extra_lbits=u(-1,[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]);l.extra_dbits=u(-1,[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]);l.extra_blbits=u(-1,[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]);l.bl_order=x(-1,[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);l._dist_code=x(-1,[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,
11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,
15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,
28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29]);l._length_code=x(-1,[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,
16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,
26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28]);l.base_length=u(-1,[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0]);l.base_dist=u(-1,[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576]);l.next_code=O(16,0);z("com.jcraft.jzlib");y(["com.jcraft.jzlib.Tree"],"com.jcraft.jzlib.StaticTree",null,function(){var a=
A(function(){this.extra_bits=this.static_tree=null;this.max_length=this.elems=this.extra_base=0;B(this,arguments)},com.jcraft.jzlib,"StaticTree",null);D(a,function(b,a,h,e,g){this.static_tree=b;this.extra_bits=a;this.extra_base=h;this.elems=e;this.max_length=g},"~A,~A,~N,~N,~N");a.static_ltree=O(-1,[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,
42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,
117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,
343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8]);a.static_dtree=O(-1,[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,
5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5]);a.static_l_desc=new com.jcraft.jzlib.StaticTree(com.jcraft.jzlib.StaticTree.static_ltree,com.jcraft.jzlib.Tree.extra_lbits,257,286,15);a.static_d_desc=new com.jcraft.jzlib.StaticTree(com.jcraft.jzlib.StaticTree.static_dtree,com.jcraft.jzlib.Tree.extra_dbits,0,30,15);a.static_bl_desc=new com.jcraft.jzlib.StaticTree(null,com.jcraft.jzlib.Tree.extra_blbits,0,19,7)});z("com.jcraft.jzlib");y(null,"com.jcraft.jzlib.GZIPHeader",
["com.jcraft.jzlib.ZStream"],function(){var a=A(function(){this.fhcrc=this.text=!1;this.xflags=this.time=0;this.os=255;this.comment=this.name=this.extra=null;this.crc=this.hcrc=0;this.done=!1;this.mtime=0;B(this,arguments)},com.jcraft.jzlib,"GZIPHeader",null,Cloneable);d(a,"setModifiedTime",function(b){this.mtime=b},"~N");d(a,"getModifiedTime",function(){return this.mtime});d(a,"setOS",function(b){if(0<=b&&13>=b||255==b)this.os=b;else throw new IllegalArgumentException("os: "+b);},"~N");d(a,"getOS",
function(){return this.os});d(a,"setName",function(b){this.name=com.jcraft.jzlib.ZStream.getBytes(b)},"~S");d(a,"getName",function(){if(null==this.name)return"";try{return String.instantialize(this.name,"ISO-8859-1")}catch(b){if(t(b,"java.io.UnsupportedEncodingException"))throw new InternalError(b.toString());throw b;}});d(a,"setComment",function(b){this.comment=com.jcraft.jzlib.ZStream.getBytes(b)},"~S");d(a,"getComment",function(){if(null==this.comment)return"";try{return String.instantialize(this.comment,
"ISO-8859-1")}catch(b){if(t(b,"java.io.UnsupportedEncodingException"))throw new InternalError(b.toString());throw b;}});d(a,"setCRC",function(b){this.crc=b},"~N");d(a,"getCRC",function(){return this.crc});d(a,"put",function(b){var a=0;this.text&&(a|=1);this.fhcrc&&(a|=2);null!=this.extra&&(a|=4);null!=this.name&&(a|=8);null!=this.comment&&(a|=16);var h=0;1==b.level?h|=4:9==b.level&&(h|=2);b.put_short(35615);b.put_byteB(8);b.put_byteB(a);b.put_byteB(this.mtime);b.put_byteB(this.mtime>>8);b.put_byteB(this.mtime>>
16);b.put_byteB(this.mtime>>24);b.put_byteB(h);b.put_byteB(this.os);null!=this.extra&&(b.put_byteB(this.extra.length),b.put_byteB(this.extra.length>>8),b.put_byte(this.extra,0,this.extra.length));null!=this.name&&(b.put_byte(this.name,0,this.name.length),b.put_byteB(0));null!=this.comment&&(b.put_byte(this.comment,0,this.comment.length),b.put_byteB(0))},"com.jcraft.jzlib.Deflate");d(a,"clone",function(){var b=P(this,com.jcraft.jzlib.GZIPHeader,"clone",[]),a;null!=b.extra&&(a=x(b.extra.length,0),System.arraycopy(b.extra,
0,a,0,a.length),b.extra=a);null!=b.name&&(a=x(b.name.length,0),System.arraycopy(b.name,0,a,0,a.length),b.name=a);null!=b.comment&&(a=x(b.comment.length,0),System.arraycopy(b.comment,0,a,0,a.length),b.comment=a);return b})});z("com.jcraft.jzlib");y(["java.lang.Exception"],"com.jcraft.jzlib.Inflate",["com.jcraft.jzlib.Adler32","$.CRC32","$.GZIPHeader","$.InfBlocks","java.io.ByteArrayOutputStream"],function(){var a=A(function(){this.method=this.mode=0;this.was=-1;this.wbits=this.wrap=this.marker=this.need=
0;this.z=this.blocks=null;this.flags=0;this.need_bytes=-1;this.gheader=this.crcbuf=null;U("com.jcraft.jzlib.Inflate.Return")||com.jcraft.jzlib.Inflate.$Inflate$Return$();this.tmp_string=null;B(this,arguments)},com.jcraft.jzlib,"Inflate",null);L(a,function(){this.crcbuf=x(4,0)});D(a,function(b){this.z=b},"com.jcraft.jzlib.ZStream");d(a,"reset",function(){this.inflateReset()});d(a,"inflateReset",function(){if(null==this.z)return-2;this.z.total_in=this.z.total_out=0;this.z.msg=null;this.mode=14;this.need_bytes=
-1;this.blocks.reset();return 0});d(a,"inflateEnd",function(){null!=this.blocks&&this.blocks.free();return 0});d(a,"inflateInit",function(b){this.blocks=this.z.msg=null;this.wrap=0;0>b?b=-b:(this.wrap=(b>>4)+1,48>b&&(b&=15));if(8>b||15<b)return this.inflateEnd(),-2;null!=this.blocks&&this.wbits!=b&&(this.blocks.free(),this.blocks=null);this.wbits=b;this.blocks=new com.jcraft.jzlib.InfBlocks(this.z,1<<b);this.inflateReset();return 0},"~N");d(a,"inflate",function(b){var a,h;if(null==this.z||null==this.z.next_in)return 4==
b&&14==this.mode?0:-2;b=4==b?-5:0;for(a=-5;;)switch(this.mode){case 14:if(0==this.wrap){this.mode=7;break}try{a=this.readBytes(2,a,b)}catch(e){if(t(e,"com.jcraft.jzlib.Inflate.Return"))return e.r;throw e;}if(0!=(this.wrap&2)&&35615==this.need){this.z.checksum=new com.jcraft.jzlib.CRC32;this.checksum(2,this.need);null==this.gheader&&(this.gheader=new com.jcraft.jzlib.GZIPHeader);this.mode=23;break}this.flags=0;this.method=this.need&255;h=this.need>>8&255;if(0==(this.wrap&1)||0!=((this.method<<8)+h)%
31){this.mode=13;this.z.msg="incorrect header check";break}if(8!=(this.method&15)){this.mode=13;this.z.msg="unknown compression method";break}if((this.method>>4)+8>this.wbits){this.mode=13;this.z.msg="invalid window size";break}this.z.checksum=new com.jcraft.jzlib.Adler32;if(0==(h&32)){this.mode=7;break}this.mode=2;case 2:if(0==this.z.avail_in)return a;a=b;this.z.avail_in--;this.z.total_in++;this.need=(this.z.next_in[this.z.next_in_index++]&255)<<24&4278190080;this.mode=3;case 3:if(0==this.z.avail_in)return a;
a=b;this.z.avail_in--;this.z.total_in++;this.need+=(this.z.next_in[this.z.next_in_index++]&255)<<16&16711680;this.mode=4;case 4:if(0==this.z.avail_in)return a;a=b;this.z.avail_in--;this.z.total_in++;this.need+=(this.z.next_in[this.z.next_in_index++]&255)<<8&65280;this.mode=5;case 5:if(0==this.z.avail_in)return a;this.z.avail_in--;this.z.total_in++;this.need+=this.z.next_in[this.z.next_in_index++]&255;this.z.checksum.resetLong(this.need);this.mode=6;return 2;case 6:return this.mode=13,this.z.msg="need dictionary",
this.marker=0,-2;case 7:a=this.blocks.proc(a);if(-3==a){this.mode=13;this.marker=0;break}0==a&&(a=b);if(1!=a)return a;a=b;this.was=this.z.checksum.getValue();this.blocks.reset();if(0==this.wrap){this.mode=12;break}this.mode=8;case 8:if(0==this.z.avail_in)return a;a=b;this.z.avail_in--;this.z.total_in++;this.need=(this.z.next_in[this.z.next_in_index++]&255)<<24&4278190080;this.mode=9;case 9:if(0==this.z.avail_in)return a;a=b;this.z.avail_in--;this.z.total_in++;this.need+=(this.z.next_in[this.z.next_in_index++]&
255)<<16&16711680;this.mode=10;case 10:if(0==this.z.avail_in)return a;a=b;this.z.avail_in--;this.z.total_in++;this.need+=(this.z.next_in[this.z.next_in_index++]&255)<<8&65280;this.mode=11;case 11:if(0==this.z.avail_in)return a;a=b;this.z.avail_in--;this.z.total_in++;this.need+=this.z.next_in[this.z.next_in_index++]&255;0!=this.flags&&(this.need=((this.need&4278190080)>>24|(this.need&16711680)>>8|(this.need&65280)<<8|(this.need&65535)<<24)&4294967295);this.was!=this.need?this.z.msg="incorrect data check":
0!=this.flags&&null!=this.gheader&&(this.gheader.crc=this.need);this.mode=15;case 15:if(0!=this.wrap&&0!=this.flags){try{a=this.readBytes(4,a,b)}catch(g){if(t(g,"com.jcraft.jzlib.Inflate.Return"))return g.r;throw g;}if(null!=this.z.msg&&this.z.msg.equals("incorrect data check")){this.mode=13;this.marker=5;break}if(this.need!=(this.z.total_out&4294967295)){this.z.msg="incorrect length check";this.mode=13;break}this.z.msg=null}else if(null!=this.z.msg&&this.z.msg.equals("incorrect data check")){this.mode=
13;this.marker=5;break}this.mode=12;case 12:return 1;case 13:return-3;case 23:try{a=this.readBytes(2,a,b)}catch(d){if(t(d,"com.jcraft.jzlib.Inflate.Return"))return d.r;throw d;}this.flags=this.need&65535;if(8!=(this.flags&255)){this.z.msg="unknown compression method";this.mode=13;break}if(0!=(this.flags&57344)){this.z.msg="unknown header flags set";this.mode=13;break}0!=(this.flags&512)&&this.checksum(2,this.need);this.mode=16;case 16:try{a=this.readBytes(4,a,b)}catch(f){if(t(f,"com.jcraft.jzlib.Inflate.Return"))return f.r;
throw f;}null!=this.gheader&&(this.gheader.time=this.need);0!=(this.flags&512)&&this.checksum(4,this.need);this.mode=17;case 17:try{a=this.readBytes(2,a,b)}catch(k){if(t(k,"com.jcraft.jzlib.Inflate.Return"))return k.r;throw k;}null!=this.gheader&&(this.gheader.xflags=this.need&255,this.gheader.os=this.need>>8&255);0!=(this.flags&512)&&this.checksum(2,this.need);this.mode=18;case 18:if(0!=(this.flags&1024)){try{a=this.readBytes(2,a,b)}catch(C){if(t(C,"com.jcraft.jzlib.Inflate.Return"))return C.r;throw C;
}null!=this.gheader&&(this.gheader.extra=x(this.need&65535,0));0!=(this.flags&512)&&this.checksum(2,this.need)}else null!=this.gheader&&(this.gheader.extra=null);this.mode=19;case 19:if(0!=(this.flags&1024))try{if(a=this.readBytes(a,b),null!=this.gheader){var v=this.tmp_string.toByteArray();this.tmp_string=null;if(v.length==this.gheader.extra.length)System.arraycopy(v,0,this.gheader.extra,0,v.length);else{this.z.msg="bad extra field length";this.mode=13;break}}}catch(q){if(t(q,"com.jcraft.jzlib.Inflate.Return"))return q.r;
throw q;}else null!=this.gheader&&(this.gheader.extra=null);this.mode=20;case 20:if(0!=(this.flags&2048))try{a=this.readString(a,b),null!=this.gheader&&(this.gheader.name=this.tmp_string.toByteArray()),this.tmp_string=null}catch(r){if(t(r,"com.jcraft.jzlib.Inflate.Return"))return r.r;throw r;}else null!=this.gheader&&(this.gheader.name=null);this.mode=21;case 21:if(0!=(this.flags&4096))try{a=this.readString(a,b),null!=this.gheader&&(this.gheader.comment=this.tmp_string.toByteArray()),this.tmp_string=
null}catch(p){if(t(p,"com.jcraft.jzlib.Inflate.Return"))return p.r;throw p;}else null!=this.gheader&&(this.gheader.comment=null);this.mode=22;case 22:if(0!=(this.flags&512)){try{a=this.readBytes(2,a,b)}catch(n){if(t(n,"com.jcraft.jzlib.Inflate.Return"))return n.r;throw n;}null!=this.gheader&&(this.gheader.hcrc=this.need&65535);if(this.need!=(this.z.checksum.getValue()&65535)){this.mode=13;this.z.msg="header crc mismatch";this.marker=5;break}}this.z.checksum=new com.jcraft.jzlib.CRC32;this.mode=7;
break;default:return-2}},"~N");d(a,"inflateSetDictionary",function(b,a){if(null==this.z||6!=this.mode&&0!=this.wrap)return-2;var h=0,e=a;if(6==this.mode){var g=this.z.checksum.getValue();this.z.checksum.reset();this.z.checksum.update(b,0,a);if(this.z.checksum.getValue()!=g)return-3}this.z.checksum.reset();e>=1<<this.wbits&&(e=(1<<this.wbits)-1,h=a-e);this.blocks.set_dictionary(b,h,e);this.mode=7;return 0},"~A,~N");d(a,"inflateSync",function(){var b,a,h;if(null==this.z)return-2;13!=this.mode&&(this.mode=
13,this.marker=0);if(0==(b=this.z.avail_in))return-5;a=this.z.next_in_index;for(h=this.marker;0!=b&&4>h;)this.z.next_in[a]==com.jcraft.jzlib.Inflate.mark[h]?h++:h=0!=this.z.next_in[a]?0:4-h,a++,b--;this.z.total_in+=a-this.z.next_in_index;this.z.next_in_index=a;this.z.avail_in=b;this.marker=h;if(4!=h)return-3;b=this.z.total_in;a=this.z.total_out;this.inflateReset();this.z.total_in=b;this.z.total_out=a;this.mode=7;return 0});d(a,"inflateSyncPoint",function(){return null==this.z||null==this.blocks?-2:
this.blocks.sync_point()});d(a,"readBytes",function(b,a,h){-1==this.need_bytes&&(this.need_bytes=b,this.need=0);for(;0<this.need_bytes;){if(0==this.z.avail_in)throw T(com.jcraft.jzlib.Inflate.Return,this,null,a);a=h;this.z.avail_in--;this.z.total_in++;this.need|=(this.z.next_in[this.z.next_in_index++]&255)<<8*(b-this.need_bytes);this.need_bytes--}2==b?this.need&=65535:4==b&&(this.need&=4294967295);this.need_bytes=-1;return a},"~N,~N,~N");d(a,"readString",function(b,a){null==this.tmp_string&&(this.tmp_string=
new java.io.ByteArrayOutputStream);var h=0;do{if(0==this.z.avail_in)throw T(com.jcraft.jzlib.Inflate.Return,this,null,b);b=a;this.z.avail_in--;this.z.total_in++;h=this.z.next_in[this.z.next_in_index];0!=h&&this.tmp_string.write(this.z.next_in,this.z.next_in_index,1);this.z.checksum.update(this.z.next_in,this.z.next_in_index,1);this.z.next_in_index++}while(0!=h);return b},"~N,~N");d(a,"readBytes",function(b,a){null==this.tmp_string&&(this.tmp_string=new java.io.ByteArrayOutputStream);for(;0<this.need;){if(0==
this.z.avail_in)throw T(com.jcraft.jzlib.Inflate.Return,this,null,b);b=a;this.z.avail_in--;this.z.total_in++;this.tmp_string.write(this.z.next_in,this.z.next_in_index,1);this.z.checksum.update(this.z.next_in,this.z.next_in_index,1);this.z.next_in_index++;this.need--}return b},"~N,~N");d(a,"checksum",function(b,a){for(var h=0;h<b;h++)this.crcbuf[h]=a&255,a>>=8;this.z.checksum.update(this.crcbuf,0,b)},"~N,~N");d(a,"getGZIPHeader",function(){return this.gheader});d(a,"inParsingHeader",function(){switch(this.mode){case 14:case 2:case 3:case 4:case 5:case 23:case 16:case 17:case 18:case 19:case 20:case 21:case 22:return!0;
default:return!1}});a.$Inflate$Return$=function(){var b=A(function(){V(this,arguments);this.r=0;B(this,arguments)},com.jcraft.jzlib.Inflate,"Return",Exception);D(b,function(b){K(this,com.jcraft.jzlib.Inflate.Return,[]);this.r=b},"~N")};a.mark=x(-1,[0,0,255,255])});z("com.jcraft.jzlib");l=A(function(){this.x=this.u=this.r=this.c=this.v=this.hn=null;B(this,arguments)},com.jcraft.jzlib,"InfTree",null);d(l,"huft_build",function(a,b,c,h,e,g,d,f,k,C,v){var q,r,p,n,G,m,l,s,w,t;l=0;p=c;do this.c[a[b+l]]++,
l++,p--;while(0!=p);if(this.c[0]==c)return d[0]=-1,f[0]=0;m=f[0];for(n=1;15>=n&&0==this.c[n];n++);G=n;m<n&&(m=n);for(p=15;0!=p&&0==this.c[p];p--);r=p;m>p&&(m=p);f[0]=m;for(f=1<<n;n<p;n++,f<<=1)if(0>(f-=this.c[n]))return-3;if(0>(f-=this.c[p]))return-3;this.c[p]+=f;this.x[1]=n=0;l=1;for(s=2;0!=--p;)this.x[s]=n+=this.c[l],s++,l++;l=p=0;do{if(0!=(n=a[b+l]))v[this.x[n]++]=p;l++}while(++p<c);c=this.x[r];l=this.x[0]=p=0;b=-1;w=-m;for(t=s=this.u[0]=0;G<=r;G++)for(a=this.c[G];0!=a--;){for(;G>w+m;){b++;w+=
m;t=r-w;t=t>m?m:t;if((q=1<<(n=G-w))>a+1)if(q-=a+1,s=G,n<t)for(;++n<t&&!((q<<=1)<=this.c[++s]);)q-=this.c[s];t=1<<n;if(1440<C[0]+t)return-3;this.u[b]=s=C[0];C[0]+=t;0!=b?(this.x[b]=p,this.r[0]=n,this.r[1]=m,n=p>>>w-m,this.r[2]=s-this.u[b-1]-n,System.arraycopy(this.r,0,k,3*(this.u[b-1]+n),3)):d[0]=s}this.r[1]=G-w;l>=c?this.r[0]=192:v[l]<h?(this.r[0]=256>v[l]?0:96,this.r[2]=v[l++]):(this.r[0]=g[v[l]-h]+16+64,this.r[2]=e[v[l++]-h]);q=1<<G-w;for(n=p>>>w;n<t;n+=q)System.arraycopy(this.r,0,k,3*(s+n),3);
for(n=1<<G-1;0!=(p&n);n>>>=1)p^=n;p^=n;for(n=(1<<w)-1;(p&n)!=this.x[b];)b--,w-=m,n=(1<<w)-1}return 0!=f&&1!=r?-5:0},"~A,~N,~N,~N,~A,~A,~A,~A,~A,~A,~A");d(l,"inflate_trees_bits",function(a,b,c,h,e){this.initWorkArea(19);this.hn[0]=0;a=this.huft_build(a,0,19,19,null,null,c,b,h,this.hn,this.v);if(-3==a)e.msg="oversubscribed dynamic bit lengths tree";else if(-5==a||0==b[0])e.msg="incomplete dynamic bit lengths tree",a=-3;return a},"~A,~A,~A,~A,com.jcraft.jzlib.ZStream");d(l,"inflate_trees_dynamic",function(a,
b,c,h,e,g,d,f,k){this.initWorkArea(288);this.hn[0]=0;g=this.huft_build(c,0,a,257,com.jcraft.jzlib.InfTree.cplens,com.jcraft.jzlib.InfTree.cplext,g,h,f,this.hn,this.v);if(0!=g||0==h[0])return-3==g?k.msg="oversubscribed literal/length tree":-4!=g&&(k.msg="incomplete literal/length tree",g=-3),g;this.initWorkArea(288);g=this.huft_build(c,a,b,0,com.jcraft.jzlib.InfTree.cpdist,com.jcraft.jzlib.InfTree.cpdext,d,e,f,this.hn,this.v);return 0!=g||0==e[0]&&257<a?(-3==g?k.msg="oversubscribed distance tree":
-5==g?(k.msg="incomplete distance tree",g=-3):-4!=g&&(k.msg="empty distance tree with lengths",g=-3),g):0},"~N,~N,~A,~A,~A,~A,~A,~A,com.jcraft.jzlib.ZStream");l.inflate_trees_fixed=d(l,"inflate_trees_fixed",function(a,b,c,h){a[0]=9;b[0]=5;c[0]=com.jcraft.jzlib.InfTree.fixed_tl;h[0]=com.jcraft.jzlib.InfTree.fixed_td;return 0},"~A,~A,~A,~A,com.jcraft.jzlib.ZStream");d(l,"initWorkArea",function(a){null==this.hn&&(this.hn=u(1,0),this.v=u(a,0),this.c=u(16,0),this.r=u(3,0),this.u=u(15,0),this.x=u(16,0));
this.v.length<a&&(this.v=u(a,0));for(var b=0;b<a;b++)this.v[b]=0;for(b=0;16>b;b++)this.c[b]=0;for(b=0;3>b;b++)this.r[b]=0;System.arraycopy(this.c,0,this.u,0,15);System.arraycopy(this.c,0,this.x,0,16)},"~N");l.fixed_tl=u(-1,[96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,192,80,7,10,0,8,96,0,8,32,0,9,160,0,8,0,0,8,128,0,8,64,0,9,224,80,7,6,0,8,88,0,8,24,0,9,144,83,7,59,0,8,120,0,8,56,0,9,208,81,7,17,0,8,104,0,8,40,0,9,176,0,8,8,0,8,136,0,8,72,0,9,240,80,7,4,0,8,84,0,8,20,85,8,227,83,7,
43,0,8,116,0,8,52,0,9,200,81,7,13,0,8,100,0,8,36,0,9,168,0,8,4,0,8,132,0,8,68,0,9,232,80,7,8,0,8,92,0,8,28,0,9,152,84,7,83,0,8,124,0,8,60,0,9,216,82,7,23,0,8,108,0,8,44,0,9,184,0,8,12,0,8,140,0,8,76,0,9,248,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,196,81,7,11,0,8,98,0,8,34,0,9,164,0,8,2,0,8,130,0,8,66,0,9,228,80,7,7,0,8,90,0,8,26,0,9,148,84,7,67,0,8,122,0,8,58,0,9,212,82,7,19,0,8,106,0,8,42,0,9,180,0,8,10,0,8,138,0,8,74,0,9,244,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,
9,204,81,7,15,0,8,102,0,8,38,0,9,172,0,8,6,0,8,134,0,8,70,0,9,236,80,7,9,0,8,94,0,8,30,0,9,156,84,7,99,0,8,126,0,8,62,0,9,220,82,7,27,0,8,110,0,8,46,0,9,188,0,8,14,0,8,142,0,8,78,0,9,252,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,194,80,7,10,0,8,97,0,8,33,0,9,162,0,8,1,0,8,129,0,8,65,0,9,226,80,7,6,0,8,89,0,8,25,0,9,146,83,7,59,0,8,121,0,8,57,0,9,210,81,7,17,0,8,105,0,8,41,0,9,178,0,8,9,0,8,137,0,8,73,0,9,242,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,202,81,7,13,0,8,
101,0,8,37,0,9,170,0,8,5,0,8,133,0,8,69,0,9,234,80,7,8,0,8,93,0,8,29,0,9,154,84,7,83,0,8,125,0,8,61,0,9,218,82,7,23,0,8,109,0,8,45,0,9,186,0,8,13,0,8,141,0,8,77,0,9,250,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,198,81,7,11,0,8,99,0,8,35,0,9,166,0,8,3,0,8,131,0,8,67,0,9,230,80,7,7,0,8,91,0,8,27,0,9,150,84,7,67,0,8,123,0,8,59,0,9,214,82,7,19,0,8,107,0,8,43,0,9,182,0,8,11,0,8,139,0,8,75,0,9,246,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,206,81,7,15,0,8,103,0,8,39,0,9,174,
0,8,7,0,8,135,0,8,71,0,9,238,80,7,9,0,8,95,0,8,31,0,9,158,84,7,99,0,8,127,0,8,63,0,9,222,82,7,27,0,8,111,0,8,47,0,9,190,0,8,15,0,8,143,0,8,79,0,9,254,96,7,256,0,8,80,0,8,16,84,8,115,82,7,31,0,8,112,0,8,48,0,9,193,80,7,10,0,8,96,0,8,32,0,9,161,0,8,0,0,8,128,0,8,64,0,9,225,80,7,6,0,8,88,0,8,24,0,9,145,83,7,59,0,8,120,0,8,56,0,9,209,81,7,17,0,8,104,0,8,40,0,9,177,0,8,8,0,8,136,0,8,72,0,9,241,80,7,4,0,8,84,0,8,20,85,8,227,83,7,43,0,8,116,0,8,52,0,9,201,81,7,13,0,8,100,0,8,36,0,9,169,0,8,4,0,8,132,0,8,
68,0,9,233,80,7,8,0,8,92,0,8,28,0,9,153,84,7,83,0,8,124,0,8,60,0,9,217,82,7,23,0,8,108,0,8,44,0,9,185,0,8,12,0,8,140,0,8,76,0,9,249,80,7,3,0,8,82,0,8,18,85,8,163,83,7,35,0,8,114,0,8,50,0,9,197,81,7,11,0,8,98,0,8,34,0,9,165,0,8,2,0,8,130,0,8,66,0,9,229,80,7,7,0,8,90,0,8,26,0,9,149,84,7,67,0,8,122,0,8,58,0,9,213,82,7,19,0,8,106,0,8,42,0,9,181,0,8,10,0,8,138,0,8,74,0,9,245,80,7,5,0,8,86,0,8,22,192,8,0,83,7,51,0,8,118,0,8,54,0,9,205,81,7,15,0,8,102,0,8,38,0,9,173,0,8,6,0,8,134,0,8,70,0,9,237,80,7,9,0,
8,94,0,8,30,0,9,157,84,7,99,0,8,126,0,8,62,0,9,221,82,7,27,0,8,110,0,8,46,0,9,189,0,8,14,0,8,142,0,8,78,0,9,253,96,7,256,0,8,81,0,8,17,85,8,131,82,7,31,0,8,113,0,8,49,0,9,195,80,7,10,0,8,97,0,8,33,0,9,163,0,8,1,0,8,129,0,8,65,0,9,227,80,7,6,0,8,89,0,8,25,0,9,147,83,7,59,0,8,121,0,8,57,0,9,211,81,7,17,0,8,105,0,8,41,0,9,179,0,8,9,0,8,137,0,8,73,0,9,243,80,7,4,0,8,85,0,8,21,80,8,258,83,7,43,0,8,117,0,8,53,0,9,203,81,7,13,0,8,101,0,8,37,0,9,171,0,8,5,0,8,133,0,8,69,0,9,235,80,7,8,0,8,93,0,8,29,0,9,155,
84,7,83,0,8,125,0,8,61,0,9,219,82,7,23,0,8,109,0,8,45,0,9,187,0,8,13,0,8,141,0,8,77,0,9,251,80,7,3,0,8,83,0,8,19,85,8,195,83,7,35,0,8,115,0,8,51,0,9,199,81,7,11,0,8,99,0,8,35,0,9,167,0,8,3,0,8,131,0,8,67,0,9,231,80,7,7,0,8,91,0,8,27,0,9,151,84,7,67,0,8,123,0,8,59,0,9,215,82,7,19,0,8,107,0,8,43,0,9,183,0,8,11,0,8,139,0,8,75,0,9,247,80,7,5,0,8,87,0,8,23,192,8,0,83,7,51,0,8,119,0,8,55,0,9,207,81,7,15,0,8,103,0,8,39,0,9,175,0,8,7,0,8,135,0,8,71,0,9,239,80,7,9,0,8,95,0,8,31,0,9,159,84,7,99,0,8,127,0,8,
63,0,9,223,82,7,27,0,8,111,0,8,47,0,9,191,0,8,15,0,8,143,0,8,79,0,9,255]);l.fixed_td=u(-1,[80,5,1,87,5,257,83,5,17,91,5,4097,81,5,5,89,5,1025,85,5,65,93,5,16385,80,5,3,88,5,513,84,5,33,92,5,8193,82,5,9,90,5,2049,86,5,129,192,5,24577,80,5,2,87,5,385,83,5,25,91,5,6145,81,5,7,89,5,1537,85,5,97,93,5,24577,80,5,4,88,5,769,84,5,49,92,5,12289,82,5,13,90,5,3073,86,5,193,192,5,24577]);l.cplens=u(-1,[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]);l.cplext=u(-1,[0,
0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,112,112]);l.cpdist=u(-1,[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]);l.cpdext=u(-1,[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]);z("com.jcraft.jzlib");y(["com.jcraft.jzlib.InfTree"],"com.jcraft.jzlib.InfBlocks",["com.jcraft.jzlib.InfCodes"],function(){var a=A(function(){this.index=this.table=this.left=this.mode=0;this.codes=this.tdi=this.tli=this.td=
this.tl=this.bd=this.bl=this.tb=this.bb=this.blens=null;this.bitb=this.bitk=this.last=0;this.window=this.hufts=null;this.write=this.read=this.end=0;this.check=!1;this.z=this.inftree=null;B(this,arguments)},com.jcraft.jzlib,"InfBlocks",null);L(a,function(){this.bb=u(1,0);this.tb=u(1,0);this.bl=u(1,0);this.bd=u(1,0);this.tli=u(1,0);this.tdi=u(1,0);this.inftree=new com.jcraft.jzlib.InfTree});D(a,function(b,a){this.z=b;this.codes=new com.jcraft.jzlib.InfCodes(this.z,this);this.hufts=u(4320,0);this.window=
x(a,0);this.end=a;this.check=0==b.istate.wrap?!1:!0;this.mode=0;this.tl=E(1,null);this.td=E(1,null);this.reset()},"com.jcraft.jzlib.ZStream,~N");d(a,"reset",function(){6==this.mode&&this.codes.free(this.z);this.read=this.write=this.bitb=this.bitk=this.mode=0;this.check&&this.z.checksum.reset()});d(a,"proc",function(b){var a,h,e,g,d,f,k;g=this.z.next_in_index;d=this.z.avail_in;h=this.bitb;e=this.bitk;f=this.write;for(k=f<this.read?this.read-f-1:this.end-f;;)switch(this.mode){case 0:for(;3>e;){if(0!=
d)b=0;else return this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b);d--;h|=(this.z.next_in[g++]&255)<<e;e+=8}a=h&7;this.last=a&1;switch(a>>>1){case 0:h>>>=3;e-=3;a=e&7;h>>>=a;e-=a;this.mode=1;break;case 1:com.jcraft.jzlib.InfTree.inflate_trees_fixed(this.bl,this.bd,this.tl,this.td,this.z);this.codes.init(this.bl[0],this.bd[0],this.tl[0],0,this.td[0],0);h>>>=3;e-=3;this.mode=6;break;case 2:h>>>=3;e-=3;this.mode=
3;break;case 3:return h>>>=3,e-=3,this.mode=9,this.z.msg="invalid block type",b=-3,this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b)}break;case 1:for(;32>e;){if(0!=d)b=0;else return this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b);d--;h|=(this.z.next_in[g++]&255)<<e;e+=8}if((~h>>>16&65535)!=(h&65535))return this.mode=9,
this.z.msg="invalid stored block lengths",b=-3,this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b);this.left=h&65535;h=e=0;this.mode=0!=this.left?2:0!=this.last?7:0;break;case 2:if(0==d||0==k&&(f==this.end&&0!=this.read&&(f=0,k=f<this.read?this.read-f-1:this.end-f),0==k&&(this.write=f,b=this.inflate_flush(b),f=this.write,k=f<this.read?this.read-f-1:this.end-f,f==this.end&&0!=this.read&&(f=0,k=f<this.read?this.read-
f-1:this.end-f),0==k)))return this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b);b=0;a=this.left;a>d&&(a=d);a>k&&(a=k);System.arraycopy(this.z.next_in,g,this.window,f,a);g+=a;d-=a;f+=a;k-=a;if(0!=(this.left-=a))break;this.mode=0!=this.last?7:0;break;case 3:for(;14>e;){if(0!=d)b=0;else return this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b);
d--;h|=(this.z.next_in[g++]&255)<<e;e+=8}this.table=a=h&16383;if(29<(a&31)||29<(a>>5&31))return this.mode=9,this.z.msg="too many length or distance symbols",b=-3,this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b);a=258+(a&31)+(a>>5&31);if(null==this.blens||this.blens.length<a)this.blens=u(a,0);else for(k=0;k<a;k++)this.blens[k]=0;h>>>=14;e-=14;this.index=0;this.mode=4;case 4:for(;this.index<4+(this.table>>>10);){for(;3>
e;){if(0!=d)b=0;else return this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b);d--;h|=(this.z.next_in[g++]&255)<<e;e+=8}this.blens[com.jcraft.jzlib.InfBlocks.border[this.index++]]=h&7;h>>>=3;e-=3}for(;19>this.index;)this.blens[com.jcraft.jzlib.InfBlocks.border[this.index++]]=0;this.bb[0]=7;a=this.inftree.inflate_trees_bits(this.blens,this.bb,this.tb,this.hufts,this.z);if(0!=a)return b=a,-3==b&&(this.blens=null,
this.mode=9),this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b);this.index=0;this.mode=5;case 5:for(;;){a=this.table;if(!(this.index<258+(a&31)+(a>>5&31)))break;var m,v;for(a=this.bb[0];e<a;){if(0!=d)b=0;else return this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b);d--;h|=(this.z.next_in[g++]&255)<<e;e+=8}a=this.hufts[3*
(this.tb[0]+(h&com.jcraft.jzlib.InfBlocks.inflate_mask[a]))+1];v=this.hufts[3*(this.tb[0]+(h&com.jcraft.jzlib.InfBlocks.inflate_mask[a]))+2];if(16>v)h>>>=a,e-=a,this.blens[this.index++]=v;else{k=18==v?7:v-14;for(m=18==v?11:3;e<a+k;){if(0!=d)b=0;else return this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b);d--;h|=(this.z.next_in[g++]&255)<<e;e+=8}h>>>=a;e-=a;m+=h&com.jcraft.jzlib.InfBlocks.inflate_mask[k];h>>>=
k;e-=k;k=this.index;a=this.table;if(k+m>258+(a&31)+(a>>5&31)||16==v&&1>k)return this.blens=null,this.mode=9,this.z.msg="invalid bit length repeat",b=-3,this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b);v=16==v?this.blens[k-1]:0;do this.blens[k++]=v;while(0!=--m);this.index=k}}this.tb[0]=-1;this.bl[0]=9;this.bd[0]=6;a=this.table;a=this.inftree.inflate_trees_dynamic(257+(a&31),1+(a>>5&31),this.blens,this.bl,this.bd,
this.tli,this.tdi,this.hufts,this.z);if(0!=a)return-3==a&&(this.blens=null,this.mode=9),b=a,this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b);this.codes.init(this.bl[0],this.bd[0],this.hufts,this.tli[0],this.hufts,this.tdi[0]);this.mode=6;case 6:this.bitb=h;this.bitk=e;this.z.avail_in=d;this.z.total_in+=g-this.z.next_in_index;this.z.next_in_index=g;this.write=f;if(1!=(b=this.codes.proc(b)))return this.inflate_flush(b);
b=0;this.codes.free(this.z);g=this.z.next_in_index;d=this.z.avail_in;h=this.bitb;e=this.bitk;f=this.write;k=f<this.read?this.read-f-1:this.end-f;if(0==this.last){this.mode=0;break}this.mode=7;case 7:this.write=f;b=this.inflate_flush(b);f=this.write;if(this.read!=this.write)return this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b);this.mode=8;case 8:return b=1,this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=
g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b);case 9:return b=-3,this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b);default:return b=-2,this.bitb=h,this.bitk=e,this.z.avail_in=d,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.write=f,this.inflate_flush(b)}},"~N");d(a,"free",function(){this.reset();this.hufts=this.window=null});d(a,"set_dictionary",function(a,
c,d){System.arraycopy(a,c,this.window,0,d);this.read=this.write=d},"~A,~N,~N");d(a,"sync_point",function(){return 1==this.mode?1:0});d(a,"inflate_flush",function(a){var c,d,e;d=this.z.next_out_index;e=this.read;c=(e<=this.write?this.write:this.end)-e;c>this.z.avail_out&&(c=this.z.avail_out);0!=c&&-5==a&&(a=0);this.z.avail_out-=c;this.z.total_out+=c;this.check&&0<c&&this.z.checksum.update(this.window,e,c);System.arraycopy(this.window,e,this.z.next_out,d,c);d+=c;e+=c;e==this.end&&(e=0,this.write==this.end&&
(this.write=0),c=this.write-e,c>this.z.avail_out&&(c=this.z.avail_out),0!=c&&-5==a&&(a=0),this.z.avail_out-=c,this.z.total_out+=c,this.check&&0<c&&this.z.checksum.update(this.window,e,c),System.arraycopy(this.window,e,this.z.next_out,d,c),d+=c,e+=c);this.z.next_out_index=d;this.read=e;return a},"~N");a.inflate_mask=u(-1,[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535]);a.border=u(-1,[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15])});z("com.jcraft.jzlib");l=A(function(){this.len=
this.mode=0;this.tree=null;this.dbits=this.lbits=this.dist=this.get=this.lit=this.need=this.tree_index=0;this.ltree=null;this.ltree_index=0;this.dtree=null;this.dtree_index=0;this.s=this.z=null;B(this,arguments)},com.jcraft.jzlib,"InfCodes",null);D(l,function(a,b){this.z=a;this.s=b},"com.jcraft.jzlib.ZStream,com.jcraft.jzlib.InfBlocks");d(l,"init",function(a,b,c,d,e,g){this.mode=0;this.lbits=a;this.dbits=b;this.ltree=c;this.ltree_index=d;this.dtree=e;this.dtree_index=g;this.tree=null},"~N,~N,~A,~N,~A,~N");
d(l,"proc",function(a){var b,c,d=0,e=0,g=0,j,f,k,g=this.z.next_in_index;j=this.z.avail_in;d=this.s.bitb;e=this.s.bitk;f=this.s.write;for(k=f<this.s.read?this.s.read-f-1:this.s.end-f;;)switch(this.mode){case 0:if(258<=k&&10<=j&&(this.s.bitb=d,this.s.bitk=e,this.z.avail_in=j,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.s.write=f,a=this.inflate_fast(this.lbits,this.dbits,this.ltree,this.ltree_index,this.dtree,this.dtree_index,this.s,this.z),g=this.z.next_in_index,j=this.z.avail_in,
d=this.s.bitb,e=this.s.bitk,f=this.s.write,k=f<this.s.read?this.s.read-f-1:this.s.end-f,0!=a)){this.mode=1==a?7:9;break}this.need=this.lbits;this.tree=this.ltree;this.tree_index=this.ltree_index;this.mode=1;case 1:for(b=this.need;e<b;){if(0!=j)a=0;else return this.s.bitb=d,this.s.bitk=e,this.z.avail_in=j,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.s.write=f,this.s.inflate_flush(a);j--;d|=(this.z.next_in[g++]&255)<<e;e+=8}b=3*(this.tree_index+(d&com.jcraft.jzlib.InfCodes.inflate_mask[b]));
d>>>=this.tree[b+1];e-=this.tree[b+1];c=this.tree[b];if(0==c){this.lit=this.tree[b+2];this.mode=6;break}if(0!=(c&16)){this.get=c&15;this.len=this.tree[b+2];this.mode=2;break}if(0==(c&64)){this.need=c;this.tree_index=R(b/3)+this.tree[b+2];break}if(0!=(c&32)){this.mode=7;break}this.mode=9;this.z.msg="invalid literal/length code";a=-3;this.s.bitb=d;this.s.bitk=e;this.z.avail_in=j;this.z.total_in+=g-this.z.next_in_index;this.z.next_in_index=g;this.s.write=f;return this.s.inflate_flush(a);case 2:for(b=
this.get;e<b;){if(0!=j)a=0;else return this.s.bitb=d,this.s.bitk=e,this.z.avail_in=j,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.s.write=f,this.s.inflate_flush(a);j--;d|=(this.z.next_in[g++]&255)<<e;e+=8}this.len+=d&com.jcraft.jzlib.InfCodes.inflate_mask[b];d>>=b;e-=b;this.need=this.dbits;this.tree=this.dtree;this.tree_index=this.dtree_index;this.mode=3;case 3:for(b=this.need;e<b;){if(0!=j)a=0;else return this.s.bitb=d,this.s.bitk=e,this.z.avail_in=j,this.z.total_in+=g-this.z.next_in_index,
this.z.next_in_index=g,this.s.write=f,this.s.inflate_flush(a);j--;d|=(this.z.next_in[g++]&255)<<e;e+=8}b=3*(this.tree_index+(d&com.jcraft.jzlib.InfCodes.inflate_mask[b]));d>>=this.tree[b+1];e-=this.tree[b+1];c=this.tree[b];if(0!=(c&16)){this.get=c&15;this.dist=this.tree[b+2];this.mode=4;break}if(0==(c&64)){this.need=c;this.tree_index=R(b/3)+this.tree[b+2];break}this.mode=9;this.z.msg="invalid distance code";a=-3;this.s.bitb=d;this.s.bitk=e;this.z.avail_in=j;this.z.total_in+=g-this.z.next_in_index;
this.z.next_in_index=g;this.s.write=f;return this.s.inflate_flush(a);case 4:for(b=this.get;e<b;){if(0!=j)a=0;else return this.s.bitb=d,this.s.bitk=e,this.z.avail_in=j,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.s.write=f,this.s.inflate_flush(a);j--;d|=(this.z.next_in[g++]&255)<<e;e+=8}this.dist+=d&com.jcraft.jzlib.InfCodes.inflate_mask[b];d>>=b;e-=b;this.mode=5;case 5:for(b=f-this.dist;0>b;)b+=this.s.end;for(;0!=this.len;){if(0==k&&(f==this.s.end&&0!=this.s.read&&(f=0,k=f<
this.s.read?this.s.read-f-1:this.s.end-f),0==k&&(this.s.write=f,a=this.s.inflate_flush(a),f=this.s.write,k=f<this.s.read?this.s.read-f-1:this.s.end-f,f==this.s.end&&0!=this.s.read&&(f=0,k=f<this.s.read?this.s.read-f-1:this.s.end-f),0==k)))return this.s.bitb=d,this.s.bitk=e,this.z.avail_in=j,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.s.write=f,this.s.inflate_flush(a);this.s.window[f++]=this.s.window[b++];k--;b==this.s.end&&(b=0);this.len--}this.mode=0;break;case 6:if(0==k&&
(f==this.s.end&&0!=this.s.read&&(f=0,k=f<this.s.read?this.s.read-f-1:this.s.end-f),0==k&&(this.s.write=f,a=this.s.inflate_flush(a),f=this.s.write,k=f<this.s.read?this.s.read-f-1:this.s.end-f,f==this.s.end&&0!=this.s.read&&(f=0,k=f<this.s.read?this.s.read-f-1:this.s.end-f),0==k)))return this.s.bitb=d,this.s.bitk=e,this.z.avail_in=j,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.s.write=f,this.s.inflate_flush(a);a=0;this.s.window[f++]=this.lit;k--;this.mode=0;break;case 7:7<e&&
(e-=8,j++,g--);this.s.write=f;a=this.s.inflate_flush(a);f=this.s.write;if(this.s.read!=this.s.write)return this.s.bitb=d,this.s.bitk=e,this.z.avail_in=j,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.s.write=f,this.s.inflate_flush(a);this.mode=8;case 8:return a=1,this.s.bitb=d,this.s.bitk=e,this.z.avail_in=j,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.s.write=f,this.s.inflate_flush(a);case 9:return a=-3,this.s.bitb=d,this.s.bitk=e,this.z.avail_in=j,this.z.total_in+=
g-this.z.next_in_index,this.z.next_in_index=g,this.s.write=f,this.s.inflate_flush(a);default:return a=-2,this.s.bitb=d,this.s.bitk=e,this.z.avail_in=j,this.z.total_in+=g-this.z.next_in_index,this.z.next_in_index=g,this.s.write=f,this.s.inflate_flush(a)}},"~N");d(l,"free",function(){},"com.jcraft.jzlib.ZStream");d(l,"inflate_fast",function(a,b,c,d,e,g,j,f){var k,m,v,q,r,p,n,l,t,u,s,w;p=f.next_in_index;n=f.avail_in;q=j.bitb;r=j.bitk;l=j.write;t=l<j.read?j.read-l-1:j.end-l;a=com.jcraft.jzlib.InfCodes.inflate_mask[a];
u=com.jcraft.jzlib.InfCodes.inflate_mask[b];do{for(;20>r;)n--,q|=(f.next_in[p++]&255)<<r,r+=8;k=q&a;m=c;v=d;w=3*(v+k);if(0==(b=m[w]))q>>=m[w+1],r-=m[w+1],j.window[l++]=m[w+2],t--;else{do{q>>=m[w+1];r-=m[w+1];if(0!=(b&16)){b&=15;s=m[w+2]+(q&com.jcraft.jzlib.InfCodes.inflate_mask[b]);q>>=b;for(r-=b;15>r;)n--,q|=(f.next_in[p++]&255)<<r,r+=8;k=q&u;m=e;v=g;w=3*(v+k);b=m[w];do if(q>>=m[w+1],r-=m[w+1],0!=(b&16)){for(b&=15;r<b;)n--,q|=(f.next_in[p++]&255)<<r,r+=8;k=m[w+2]+(q&com.jcraft.jzlib.InfCodes.inflate_mask[b]);
q>>=b;r-=b;t-=s;if(l>=k)k=l-k,0<l-k&&2>l-k?(j.window[l++]=j.window[k++],j.window[l++]=j.window[k++]):(System.arraycopy(j.window,k,j.window,l,2),l+=2,k+=2),s-=2;else{k=l-k;do k+=j.end;while(0>k);b=j.end-k;if(s>b){s-=b;if(0<l-k&&b>l-k){do j.window[l++]=j.window[k++];while(0!=--b)}else System.arraycopy(j.window,k,j.window,l,b),l+=b;k=0}}if(0<l-k&&s>l-k){do j.window[l++]=j.window[k++];while(0!=--s)}else System.arraycopy(j.window,k,j.window,l,s),l+=s;break}else if(0==(b&64))k+=m[w+2],k+=q&com.jcraft.jzlib.InfCodes.inflate_mask[b],
w=3*(v+k),b=m[w];else return f.msg="invalid distance code",s=f.avail_in-n,s=r>>3<s?r>>3:s,n+=s,p-=s,r-=s<<3,j.bitb=q,j.bitk=r,f.avail_in=n,f.total_in+=p-f.next_in_index,f.next_in_index=p,j.write=l,-3;while(1);break}if(0==(b&64)){if(k+=m[w+2],k+=q&com.jcraft.jzlib.InfCodes.inflate_mask[b],w=3*(v+k),0==(b=m[w])){q>>=m[w+1];r-=m[w+1];j.window[l++]=m[w+2];t--;break}}else{if(0!=(b&32))return s=f.avail_in-n,s=r>>3<s?r>>3:s,n+=s,p-=s,r-=s<<3,j.bitb=q,j.bitk=r,f.avail_in=n,f.total_in+=p-f.next_in_index,f.next_in_index=
p,j.write=l,1;f.msg="invalid literal/length code";s=f.avail_in-n;s=r>>3<s?r>>3:s;n+=s;p-=s;r-=s<<3;j.bitb=q;j.bitk=r;f.avail_in=n;f.total_in+=p-f.next_in_index;f.next_in_index=p;j.write=l;return-3}}while(1)}}while(258<=t&&10<=n);s=f.avail_in-n;s=r>>3<s?r>>3:s;p-=s;j.bitb=q;j.bitk=r-(s<<3);f.avail_in=n+s;f.total_in+=p-f.next_in_index;f.next_in_index=p;j.write=l;return 0},"~N,~N,~A,~N,~A,~N,com.jcraft.jzlib.InfBlocks,com.jcraft.jzlib.ZStream");l.inflate_mask=u(-1,[0,1,3,7,15,31,63,127,255,511,1023,
2047,4095,8191,16383,32767,65535]);z("J.io");y(null,"J.io.JmolUtil","java.net.URL java.util.Hashtable JU.AU $.Lst $.OC $.PT $.Rdr J.adapter.smarter.AtomSetCollection J.api.Interface JU.Logger JV.FileManager $.Viewer".split(" "),function(){var a=F(J.io,"JmolUtil",null);d(a,"getImage",function(a,c,d,e){var g=null,j=null,f=a.apiPlatform,k=!1,m=""+c;if("string"==typeof c){var l=m.toUpperCase().endsWith("BMP");if(e||0<m.indexOf("|")||l){a=a.fm.getFileAsBytes(m,null);if(!JU.AU.isAB(a))return""+a;JV.Viewer.isJS?
j=E(-1,[d,c,a]):g=f.createImage(a)}else if(0<=JU.OC.urlTypeIndex(m))if(JV.Viewer.isJS)j=E(-1,[d,c,null]);else try{g=f.createImage(new java.net.URL(W("java.net.URL"),m,null))}catch(q){if(t(q,Exception))return"bad URL: "+m;throw q;}else k=!0}else JV.Viewer.isJS?j=E(-1,[d,JU.Rdr.guessMimeTypeForBytes(c),c]):k=!0;k?g=f.createImage("\u0001close".equals(c)?"\u0001close"+d:c):null!=j&&(g=f.createImage(j));return g},"JV.Viewer,~O,~S,~B");d(a,"getAtomSetCollectionOrBufferedReaderFromZip",function(a,c,d,e,
g,j,f){var k=a.getModelAdapter(),m=1==j;g.put("zipSet",d);var l=g.get("subFileList");null==l&&(l=this.getSpartanSubfiles(e));var q=null==l||j>=l.length?g.get("SubFileName"):l[j];if(null!=q&&(q.startsWith("/")||q.startsWith("\\")))q=q.substring(1);var r=0;null==q&&g.containsKey("modelNumber")&&(r=g.get("modelNumber").intValue(),0<r&&m&&g.remove("modelNumber"));var p=g.get("manifest"),n=null==p;n&&(p=0<e.length?e[0]:"");var u=0<p.length;u&&JU.Logger.debugging&&JU.Logger.debug("manifest for  "+d+":\n"+
p);var l=0<=p.indexOf("IGNORE_ERRORS"),x=0<=p.indexOf("IGNORE_MANIFEST"),z=0<=p.indexOf("EXCEPT_FILES");if(x||null!=q)u=!1;if(n&&u&&(n=JV.FileManager.getManifestScriptPath(p),null!=n))return"NOTE: file recognized as a script file: "+d+n+"\n";n=new JU.Lst;x=u?new java.util.Hashtable:null;try{var s=this.isSpartanZip(e)?a.fm.spartanUtil().getData(c,e):null,w=a.getJzt(),y;if(null!=s){var B=JU.Rdr.getBR(s.toString());if(f)return B;y=k.getAtomSetCollectionFromReader(d,B,g);return"string"==typeof y?y:I(y,
"J.adapter.smarter.AtomSetCollection")?(d=y,null!=d.errorMessage?l?null:d.errorMessage:d):l?null:"unknown reader error"}I(c,"java.io.BufferedInputStream")&&(c=JU.Rdr.getPngZipStream(c,!0));var A=w.newZipInputStream(c),D;for(u&&(p="|"+p.$replace("\r","|").$replace("\n","|")+"|");null!=(D=A.getNextEntry())&&(0>=r||n.size()<r);)if(!D.isDirectory()){var E=D.getName();if(null==q||E.equals(q))if(null!=q&&g.put("subFileName",q),!(E.startsWith("JmolManifest")||u&&z==0<=p.indexOf("|"+E+"|"))){var H=JU.Rdr.getLimitedStreamBytes(A,
D.getSize());JU.Rdr.isGzipB(H)&&(H=JU.Rdr.getLimitedStreamBytes(w.getUnGzippedInputStream(H),-1));if(JU.Rdr.isZipB(H)||JU.Rdr.isPngZipB(H)){var F=JU.Rdr.getBIS(H),L=w.getZipDirectoryAndClose(F,"JmolManifest"),F=JU.Rdr.getBIS(H),N=this.getAtomSetCollectionOrBufferedReaderFromZip(a,F,d+"|"+E,L,g,++j,f);if("string"==typeof N){if(!l)return N}else if(I(N,"J.adapter.smarter.AtomSetCollection")||I(N,"JU.Lst"))u&&!z?x.put(E,N):n.addLast(N);else{if(I(N,"java.io.BufferedReader"))return m&&A.close(),N;if(!l)return A.close(),
"unknown zip reader error"}}else{if(JU.Rdr.isPickleB(H))return F=JU.Rdr.getBIS(H),m&&A.close(),F;var K;if(JU.Rdr.isCompoundDocumentB(H)){var M=J.api.Interface.getInterface("JU.CompoundDocument",a,"file");M.setDocStream(w,JU.Rdr.getBIS(H));K=M.getAllDataFiles("Molecule","Input").toString()}else K=JU.Rdr.fixUTF(H);B=JU.Rdr.getBR(K);if(f)return m&&A.close(),B;var R=d+"|"+D.getName();y=k.getAtomSetCollectionFromReader(R,B,g);if(!I(y,"J.adapter.smarter.AtomSetCollection")){if(l)continue;A.close();return""+
y}u&&!z?x.put(E,y):n.addLast(y);c=y;if(null!=c.errorMessage&&!l)return A.close(),c.errorMessage}}}m&&A.close();if(u&&!z){var P=JU.PT.split(p,"|");for(a=0;a<P.length;a++){var S=P[a];0==S.length||0==S.indexOf("#")||(x.containsKey(S)?n.addLast(x.get(S)):JU.Logger.debugging&&JU.Logger.debug("manifested file "+S+" was not found in "+d))}}if(!m)return n;var O=1==n.size()&&I(n.get(0),"J.adapter.smarter.AtomSetCollection")?n.get(0):new J.adapter.smarter.AtomSetCollection("Array",null,null,n);return null!=
O.errorMessage?l?null:O.errorMessage:0<r&&r<=n.size()?n.get(r-1):O}catch(Q){if(t(Q,Exception)){if(l)return null;JU.Logger.error(""+Q);return""+Q}if(t(Q,Error))return JU.Logger.errorEx(null,Q),""+Q;throw Q;}},"JV.Viewer,java.io.InputStream,~S,~A,java.util.Map,~N,~B");d(a,"getCachedPngjBytes",function(a,c){c.startsWith("file:///")&&(c="file:"+c.substring(7));JU.Logger.info("JmolUtil checking PNGJ cache for "+c);var d=this.shortSceneFilename(c);if(null==a.pngjCache&&!this.clearAndCachePngjFile(a,E(-1,
[c,null])))return null;var e=a.pngjCache,g=0<=c.indexOf(".min.");if(!g){var j=a.getCanonicalName(JU.Rdr.getZipRoot(c));if(!e.containsKey(j)&&!this.clearAndCachePngjFile(a,E(-1,[c,null])))return null;0>c.indexOf("|")&&(d=j)}if(e.containsKey(d))return JU.Logger.info("FileManager using memory cache "+d),a.pngjCache.get(d);if(!g||!this.clearAndCachePngjFile(a,E(-1,[c,null])))return null;JU.Logger.info("FileManager using memory cache "+d);return e.get(d)},"JV.FileManager,~S");d(a,"clearAndCachePngjFile",
function(a,c){a.pngjCache=new java.util.Hashtable;if(null==c||null==c[0])return!1;c[0]=JU.Rdr.getZipRoot(c[0]);var d=this.shortSceneFilename(c[0]),e=a.pngjCache;try{c[1]=a.vwr.getJzt().cacheZipContents(JU.Rdr.getPngZipStream(a.getBufferedInputStreamOrErrorMessageFromName(c[0],null,!1,!1,null,!1,!0),!0),d,e,!1)}catch(g){if(t(g,Exception))return!1;throw g;}if(null==c[1])return!1;var j=c[1].getBytes();e.put(a.getCanonicalName(c[0]),j);0<=d.indexOf("_scene_")&&(e.put(this.shortSceneFilename(c[0]),j),
j=e.remove(d+"|state.spt"),null!=j&&e.put(this.shortSceneFilename(c[0]+"|state.spt"),j));return!0},"JV.FileManager,~A");d(a,"shortSceneFilename",function(a){var c=a.indexOf("_scene_")+7;if(7>c)return a;var d="";if(a.endsWith("|state.spt")){d=a.indexOf(".",c);if(0>d)return a;d=a.substring(c,d)}var e=a.lastIndexOf("|");return a.substring(0,c)+d+(0<e?a.substring(e):"")},"~S");d(a,"getSpartanSubfiles",function(a){var c=2>a.length?null:a[1];return null==c||2!=a.length||!c.endsWith(".spardir/")?null:E(-1,
["",JU.PT.trim(c,"/")])},"~A");d(a,"isSpartanZip",function(a){for(var c=1;c<a.length;c++)if(a[c].endsWith(".spardir/")||0<=a[c].indexOf("_spartandir"))return!0;return!1},"~A")})})(Clazz,Clazz.getClassName,Clazz.newLongArray,Clazz.doubleToByte,Clazz.doubleToInt,Clazz.doubleToLong,Clazz.declarePackage,Clazz.instanceOf,Clazz.load,Clazz.instantialize,Clazz.decorateAsClass,Clazz.floatToInt,Clazz.floatToLong,Clazz.makeConstructor,Clazz.defineEnumConstant,Clazz.exceptionOf,Clazz.newIntArray,Clazz.newFloatArray,
Clazz.declareType,Clazz.prepareFields,Clazz.superConstructor,Clazz.newByteArray,Clazz.declareInterface,Clazz.newShortArray,Clazz.innerTypeInstance,Clazz.isClassDefined,Clazz.prepareCallback,Clazz.newArray,Clazz.castNullAs,Clazz.floatToShort,Clazz.superCall,Clazz.decorateAsType,Clazz.newBooleanArray,Clazz.newCharArray,Clazz.implementOf,Clazz.newDoubleArray,Clazz.overrideConstructor,Clazz.clone,Clazz.doubleToShort,Clazz.getInheritedLevel,Clazz.getParamsType,Clazz.isAF,Clazz.isAB,Clazz.isAI,Clazz.isAS,
Clazz.isASS,Clazz.isAP,Clazz.isAFloat,Clazz.isAII,Clazz.isAFF,Clazz.isAFFF,Clazz.tryToSearchAndExecute,Clazz.getStackTrace,Clazz.inheritArgs,Clazz.alert,Clazz.defineMethod,Clazz.overrideMethod,Clazz.declareAnonymous,Clazz.cloneFinals);
