tianta/libs/thirdparty/zip.min.js
2022-10-17 02:58:52 +13:00

1 line
31 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(g){"use strict";var a,y="File format is not recognized.",o="File contains encrypted entry.",l="File is using Zip64 (4gb+ file size).",d="Error while reading zip file.",e="Error while reading file data.",h=524288,f="text/plain";try{a=0===new Blob([new DataView(new ArrayBuffer(0))]).size}catch(t){}function i(){this.crc=-1}function _(){}function m(t,e){var i,n;return i=new ArrayBuffer(t),n=new Uint8Array(i),e&&n.set(e,0),{buffer:i,array:n,view:new DataView(i)}}function t(){}function n(n){var r,a=this;a.size=0,a.init=function(t,e){var i=new Blob([n],{type:f});(r=new s(i)).init(function(){a.size=r.size,t()},e)},a.readUint8Array=function(t,e,i,n){r.readUint8Array(t,e,i,n)}}function r(s){var _,i=this;i.size=0,i.init=function(t){for(var e=s.length;"="==s.charAt(e-1);)e--;_=s.indexOf(",")+1,i.size=Math.floor(.75*(e-_)),t()},i.readUint8Array=function(t,e,i){var n,r=m(e),a=4*Math.floor(t/3),o=4*Math.ceil((t+e)/3),l=g.atob(s.substring(a+_,o+_)),f=t-3*Math.floor(a/4);for(n=f;n<f+e;n++)r.array[n-f]=l.charCodeAt(n);i(r.array)}}function s(a){var e=this;e.size=0,e.init=function(t){e.size=a.size,t()},e.readUint8Array=function(t,e,i,n){var r=new FileReader;r.onload=function(t){i(new Uint8Array(t.target.result))},r.onerror=n;try{r.readAsArrayBuffer(function(t,e,i){if(e<0||i<0||e+i>t.size)throw new RangeError("offset:"+e+", length:"+i+", size:"+t.size);return t.slice?t.slice(e,e+i):t.webkitSlice?t.webkitSlice(e,e+i):t.mozSlice?t.mozSlice(e,e+i):t.msSlice?t.msSlice(e,e+i):void 0}(a,t,e))}catch(t){n(t)}}}function u(){}function c(n){var r;this.init=function(t){r=new Blob([],{type:f}),t()},this.writeUint8Array=function(t,e){r=new Blob([r,a?t:t.buffer],{type:f}),e()},this.getData=function(e,t){var i=new FileReader;i.onload=function(t){e(t.target.result)},i.onerror=t,i.readAsText(r,n)}}function b(e){var a="",o="";this.init=function(t){a+="data:"+(e||"")+";base64,",t()},this.writeUint8Array=function(t,e){var i,n=o.length,r=o;for(o="",i=0;i<3*Math.floor((n+t.length)/3)-n;i++)r+=String.fromCharCode(t[i]);for(;i<t.length;i++)o+=String.fromCharCode(t[i]);2<r.length?a+=g.btoa(r):o=r,e()},this.getData=function(t){t(a+g.btoa(o))}}function w(i){var n;this.init=function(t){n=new Blob([],{type:i}),t()},this.writeUint8Array=function(t,e){n=new Blob([n,a?t:t.buffer],{type:i}),e()},this.getData=function(t){t(n)}}function k(n,e,r,a,o,t,l,f,s,_){var d,u=0,c=0,b="input"===t,w="output"===t,x=new i;!function i(){var t;if((d=u*h)<o)e.readUint8Array(a+d,Math.min(h,o-d),function(t){var e;try{e=n.append(t,function(t){l&&l(d+t,o)})}catch(t){return void s(t)}e?(c+=e.length,r.writeUint8Array(e,function(){u++,setTimeout(i,1)},_),w&&x.append(e)):(u++,setTimeout(i,1)),b&&x.append(t),l&&l(d,o)},s);else{try{t=n.flush()}catch(t){return void s(t)}t?(w&&x.append(t),c+=t.length,r.writeUint8Array(t,function(){f(c,x.get())},_)):f(c,x.get())}}()}function p(t,e,i,n,r,a,o,l,f,s){k(new _,e,i,n,r,"input",l,o,f,s)}function x(t){var e,i,n="",r=["Ç","ü","é","â","ä","à","å","ç","ê","ë","è","ï","î","ì","Ä","Å","É","æ","Æ","ô","ö","ò","û","ù","ÿ","Ö","Ü","ø","£","Ø","×","ƒ","á","í","ó","ú","ñ","Ñ","ª","º","¿","®","¬","½","¼","¡","«","»","_","_","_","¦","¦","Á","Â","À","©","¦","¦","+","+","¢","¥","+","+","-","-","+","-","+","ã","Ã","+","+","-","-","¦","-","+","¤","ð","Ð","Ê","Ë","È","i","Í","Î","Ï","+","+","_","_","¦","Ì","_","Ó","ß","Ô","Ò","õ","Õ","µ","þ","Þ","Ú","Û","Ù","ý","Ý","¯","´","­","±","_","¾","¶","§","÷","¸","°","¨","·","¹","³","²","_"," "];for(e=0;e<t.length;e++)n+=127<(i=255&t.charCodeAt(e))?r[i-128]:String.fromCharCode(i);return n}function U(t){return decodeURIComponent(escape(t))}function A(t){var e,i="";for(e=0;e<t.length;e++)i+=String.fromCharCode(t[e]);return i}function z(t,e,i,n,r){t.version=e.view.getUint16(i,!0),t.bitFlag=e.view.getUint16(i+2,!0),t.compressionMethod=e.view.getUint16(i+4,!0),t.lastModDateRaw=e.view.getUint32(i+6,!0),t.lastModDate=function(t){var e=(4294901760&t)>>16,i=65535&t;try{return new Date(1980+((65024&e)>>9),((480&e)>>5)-1,31&e,(63488&i)>>11,(2016&i)>>5,2*(31&i),0)}catch(t){}}(t.lastModDateRaw),1!=(1&t.bitFlag)?(!n&&8==(8&t.bitFlag)||(t.crc32=e.view.getUint32(i+10,!0),t.compressedSize=e.view.getUint32(i+14,!0),t.uncompressedSize=e.view.getUint32(i+18,!0)),4294967295!==t.compressedSize&&4294967295!==t.uncompressedSize?(t.filenameLength=e.view.getUint16(i+22,!0),t.extraFieldLength=e.view.getUint16(i+24,!0)):r(l)):r(o)}function v(h,t,v){function _(){}_.prototype.getData=function(_,r,d,u){var c=this;function b(t,e){var i,n;u&&(i=e,(n=m(4)).view.setUint32(0,i),c.crc32!=n.view.getUint32(0))?v("CRC failed."):_.getData(function(t){r(t)})}function w(t){v(t||e)}function x(t){v(t||"Error while writing file data.")}h.readUint8Array(c.offset,30,function(t){var s,e=m(t.length,t);1347093252==e.view.getUint32(0)?(z(c,e,4,!1,v),s=c.offset+30+c.filenameLength+c.extraFieldLength,_.init(function(){var t,e,i,n,r,a,o,l,f;0===c.compressionMethod?p(0,h,_,s,c.compressedSize,0,b,d,w,x):(t=h,e=_,i=s,n=c.compressedSize,r=b,a=d,o=w,l=x,f=u?"output":"none",k(new g.zip.Inflater,t,e,i,n,f,a,r,o,l))},x)):v(y)},w)},t({getEntries:function(s){!function(n){var r=22;if(h.size<r)v(y);else{var t=r+65536;e(r,function(){e(Math.min(t,h.size),function(){v(y)})})}function e(t,i){h.readUint8Array(h.size-t,t,function(t){for(var e=t.length-r;0<=e;e--)if(80===t[e]&&75===t[e+1]&&5===t[e+2]&&6===t[e+3])return void n(new DataView(t.buffer,e,r));i()},function(){v(d)})}}(function(t){var e,f;e=t.getUint32(16,!0),f=t.getUint16(8,!0),e<0||e>=h.size?v(y):h.readUint8Array(e,h.size-e,function(t){var e,i,n,r,a=0,o=[],l=m(t.length,t);for(e=0;e<f;e++){if(i=new _,1347092738!=l.view.getUint32(a))return void v(y);z(i,l,a+6,!0,v),i.commentLength=l.view.getUint16(a+32,!0),i.directory=16==(16&l.view.getUint8(a+38)),i.offset=l.view.getUint32(a+42,!0),n=A(l.array.subarray(a+46,a+46+i.filenameLength)),i.filename=2048==(2048&i.bitFlag)?U(n):x(n),i.directory||"/"!=i.filename.charAt(i.filename.length-1)||(i.directory=!0),r=A(l.array.subarray(a+46+i.filenameLength+i.extraFieldLength,a+46+i.filenameLength+i.extraFieldLength+i.commentLength)),i.comment=2048==(2048&i.bitFlag)?U(r):x(r),o.push(i),a+=46+i.filenameLength+i.extraFieldLength+i.commentLength}s(o)},function(){v(d)})})},close:function(t){t&&t()}})}function S(t){return unescape(encodeURIComponent(t))}function D(t){var e,i=[];for(e=0;e<t.length;e++)i.push(t.charCodeAt(e));return i}function F(d,t,u,c){var b={},w=[],x=0;function h(t){u(t||"Error while writing zip file.")}function v(t){u(t||e)}t({add:function(i,o,n,l,f){var r,a,s;function _(t,e){var i=m(16);x+=t||0,i.view.setUint32(0,1347094280),void 0!==e&&(r.view.setUint32(10,e,!0),i.view.setUint32(4,e,!0)),o&&(i.view.setUint32(8,t,!0),r.view.setUint32(14,t,!0),i.view.setUint32(12,o.size,!0),r.view.setUint32(18,o.size,!0)),d.writeUint8Array(i.array,function(){x+=16,n()},h)}function t(){var t,e;(f=f||{},i=i.trim(),f.directory&&"/"!=i.charAt(i.length-1)&&(i+="/"),b.hasOwnProperty(i))?u("File already exists."):(a=D(S(i)),w.push(i),t=function(){var t,e,i,n,r,a;o?c||0===f.level?p(0,o,d,0,o.size,0,_,l,v,h):(t=o,e=d,f.level,i=_,n=l,r=v,a=h,k(new g.zip.Deflater,t,e,0,t.size,"input",n,i,r,a)):_()},s=f.lastModDate||new Date,r=m(26),b[i]={headerArray:r.array,directory:f.directory,filename:a,offset:x,comment:D(S(f.comment||""))},r.view.setUint32(0,335546376),f.version&&r.view.setUint8(0,f.version),c||0===f.level||f.directory||r.view.setUint16(4,2048),r.view.setUint16(6,(s.getHours()<<6|s.getMinutes())<<5|s.getSeconds()/2,!0),r.view.setUint16(8,(s.getFullYear()-1980<<4|s.getMonth()+1)<<5|s.getDate(),!0),r.view.setUint16(22,a.length,!0),(e=m(30+a.length)).view.setUint32(0,1347093252),e.array.set(r.array,4),e.array.set(a,30),x+=e.array.length,d.writeUint8Array(e.array,t,h))}o?o.init(t,v):t()},close:function(t){var e,i,n,r=0,a=0;for(i=0;i<w.length;i++)r+=46+(n=b[w[i]]).filename.length+n.comment.length;for(e=m(r+22),i=0;i<w.length;i++)n=b[w[i]],e.view.setUint32(a,1347092738),e.view.setUint16(a+4,5120),e.array.set(n.headerArray,a+6),e.view.setUint16(a+32,n.comment.length,!0),n.directory&&e.view.setUint8(a+38,16),e.view.setUint32(a+42,n.offset,!0),e.array.set(n.filename,a+46),e.array.set(n.comment,a+46+n.filename.length),a+=46+n.filename.length+n.comment.length;e.view.setUint32(a,1347093766),e.view.setUint16(a+8,w.length,!0),e.view.setUint16(a+10,w.length,!0),e.view.setUint32(a+12,r,!0),e.view.setUint32(a+16,x,!0),d.writeUint8Array(e.array,function(){d.getData(t)},h)}})}function C(t){console.error(t)}i.prototype.append=function(t){for(var e=0|this.crc,i=this.table,n=0,r=0|t.length;n<r;n++)e=e>>>8^i[255&(e^t[n])];this.crc=e},i.prototype.get=function(){return~this.crc},i.prototype.table=function(){var t,e,i,n=[];for(t=0;t<256;t++){for(i=t,e=0;e<8;e++)1&i?i=i>>>1^3988292384:i>>>=1;n[t]=i}return n}(),_.prototype.append=function(t){return t},_.prototype.flush=function(){},(n.prototype=new t).constructor=n,(r.prototype=new t).constructor=r,(s.prototype=new t).constructor=s,u.prototype.getData=function(t){t(this.data)},(c.prototype=new u).constructor=c,(b.prototype=new u).constructor=b,(w.prototype=new u).constructor=w,g.zip={Reader:t,Writer:u,BlobReader:s,Data64URIReader:r,TextReader:n,BlobWriter:w,Data64URIWriter:b,TextWriter:c,createReader:function(t,e,i){i=i||C,t.init(function(){v(t,e,i)},i)},createWriter:function(t,e,i,n){i=i||C,n=!!n,t.init(function(){F(t,e,i,n)},i)}}}(this),function(t){"use strict";var I=0,M=1,R=-2,L=-3,b=-4,B=-5,T=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535],W=1440,r=[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],a=[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],w=[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],x=[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],h=[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],v=[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],C=15;function V(){var _,d,z,S,D,F;function u(t,e,i,n,r,a,o,l,f,s,_){var d,u,c,b,w,x,h,v,g,y,m,k,p,U,A;for(y=0,w=i;z[t[e+y]]++,y++,0!==--w;);if(z[0]==i)return o[0]=-1,l[0]=0,I;for(v=l[0],x=1;x<=C&&0===z[x];x++);for(v<(h=x)&&(v=x),w=C;0!==w&&0===z[w];w--);for((c=w)<v&&(v=w),l[0]=v,U=1<<x;x<w;x++,U<<=1)if((U-=z[x])<0)return L;if((U-=z[w])<0)return L;for(z[w]+=U,F[1]=x=0,y=1,p=2;0!=--w;)F[p]=x+=z[y],p++,y++;for(y=w=0;0!==(x=t[e+y])&&(_[F[x]++]=w),y++,++w<i;);for(i=F[c],F[0]=w=0,b=-1,k=-v,A=m=D[y=0]=0;h<=c;h++)for(d=z[h];0!=d--;){for(;k+v<h;){if(b++,A=v<(A=c-(k+=v))?v:A,(u=1<<(x=h-k))>d+1&&(u-=d+1,p=h,x<A))for(;++x<A&&!((u<<=1)<=z[++p]);)u-=z[p];if(A=1<<x,s[0]+A>W)return L;D[b]=m=s[0],s[0]+=A,0!==b?(F[b]=w,S[0]=x,x=w>>>k-(S[1]=v),S[2]=m-D[b-1]-x,f.set(S,3*(D[b-1]+x))):o[0]=m}for(S[1]=h-k,i<=y?S[0]=192:_[y]<n?(S[0]=_[y]<256?0:96,S[2]=_[y++]):(S[0]=a[_[y]-n]+16+64,S[2]=r[_[y++]-n]),u=1<<h-k,x=w>>>k;x<A;x+=u)f.set(S,3*(m+x));for(x=1<<h-1;0!=(w&x);x>>>=1)w^=x;for(w^=x,g=(1<<k)-1;(w&g)!=F[b];)b--,g=(1<<(k-=v))-1}return 0!==U&&1!=c?B:I}function c(t){var e;for(_||(_=[],d=[],z=new Int32Array(C+1),S=[],D=new Int32Array(C),F=new Int32Array(C+1)),d.length<t&&(d=[]),e=0;e<t;e++)d[e]=0;for(e=0;e<C+1;e++)z[e]=0;for(e=0;e<3;e++)S[e]=0;D.set(z.subarray(0,C),0),F.set(z.subarray(0,C+1),0)}this.inflate_trees_bits=function(t,e,i,n,r){var a;return c(19),(a=u(t,_[0]=0,19,19,null,null,i,e,n,_,d))==L?r.msg="oversubscribed dynamic bit lengths tree":a!=B&&0!==e[0]||(r.msg="incomplete dynamic bit lengths tree",a=L),a},this.inflate_trees_dynamic=function(t,e,i,n,r,a,o,l,f){var s;return c(288),(s=u(i,_[0]=0,t,257,w,x,a,n,l,_,d))!=I||0===n[0]?(s==L?f.msg="oversubscribed literal/length tree":s!=b&&(f.msg="incomplete literal/length tree",s=L),s):(c(288),(s=u(i,t,e,0,h,v,o,r,l,_,d))!=I||0===r[0]&&257<t?(s==L?f.msg="oversubscribed distance tree":s==B?(f.msg="incomplete distance tree",s=L):s!=b&&(f.msg="empty distance tree with lengths",s=L),s):I)}}V.inflate_trees_fixed=function(t,e,i,n){return t[0]=9,e[0]=5,i[0]=r,n[0]=a,I};var D=0,F=1,E=2,O=3,P=4,j=5,H=6,Y=7,Z=8,q=9;function i(){var c,b,w,x,h=0,v=0,g=0,y=0,m=0,k=0,p=0,U=0,A=0,z=0;function S(t,e,i,n,r,a,o,l){var f,s,_,d,u,c,b,w,x,h,v,g,y,m,k,p;b=l.next_in_index,w=l.avail_in,u=o.bitb,c=o.bitk,h=(x=o.write)<o.read?o.read-x-1:o.end-x,v=T[t],g=T[e];do{for(;c<20;)w--,u|=(255&l.read_byte(b++))<<c,c+=8;if(0!==(d=(s=i)[p=3*((_=n)+(f=u&v))]))for(;;){if(u>>=s[p+1],c-=s[p+1],0!=(16&d)){for(d&=15,y=s[p+2]+(u&T[d]),u>>=d,c-=d;c<15;)w--,u|=(255&l.read_byte(b++))<<c,c+=8;for(d=(s=r)[p=3*((_=a)+(f=u&g))];;){if(u>>=s[p+1],c-=s[p+1],0!=(16&d)){for(d&=15;c<d;)w--,u|=(255&l.read_byte(b++))<<c,c+=8;if(m=s[p+2]+(u&T[d]),u>>=d,c-=d,h-=y,m<=x)0<x-(k=x-m)&&x-k<2?(o.window[x++]=o.window[k++],o.window[x++]=o.window[k++]):(o.window.set(o.window.subarray(k,k+2),x),x+=2,k+=2),y-=2;else{for(k=x-m;(k+=o.end)<0;);if((d=o.end-k)<y){if(y-=d,0<x-k&&x-k<d)for(;o.window[x++]=o.window[k++],0!=--d;);else o.window.set(o.window.subarray(k,k+d),x),x+=d,k+=d,d=0;k=0}}if(0<x-k&&x-k<y)for(;o.window[x++]=o.window[k++],0!=--y;);else o.window.set(o.window.subarray(k,k+y),x),x+=y,k+=y,y=0;break}if(0!=(64&d))return l.msg="invalid distance code",w+=y=c>>3<(y=l.avail_in-w)?c>>3:y,b-=y,c-=y<<3,o.bitb=u,o.bitk=c,l.avail_in=w,l.total_in+=b-l.next_in_index,l.next_in_index=b,o.write=x,L;f+=s[p+2],d=s[p=3*(_+(f+=u&T[d]))]}break}if(0!=(64&d))return 0!=(32&d)?(w+=y=c>>3<(y=l.avail_in-w)?c>>3:y,b-=y,c-=y<<3,o.bitb=u,o.bitk=c,l.avail_in=w,l.total_in+=b-l.next_in_index,l.next_in_index=b,o.write=x,M):(l.msg="invalid literal/length code",w+=y=c>>3<(y=l.avail_in-w)?c>>3:y,b-=y,c-=y<<3,o.bitb=u,o.bitk=c,l.avail_in=w,l.total_in+=b-l.next_in_index,l.next_in_index=b,o.write=x,L);if(f+=s[p+2],0===(d=s[p=3*(_+(f+=u&T[d]))])){u>>=s[p+1],c-=s[p+1],o.window[x++]=s[p+2],h--;break}}else u>>=s[p+1],c-=s[p+1],o.window[x++]=s[p+2],h--}while(258<=h&&10<=w);return w+=y=c>>3<(y=l.avail_in-w)?c>>3:y,b-=y,c-=y<<3,o.bitb=u,o.bitk=c,l.avail_in=w,l.total_in+=b-l.next_in_index,l.next_in_index=b,o.write=x,I}this.init=function(t,e,i,n,r,a){c=D,p=t,U=e,w=i,A=n,x=r,z=a,b=null},this.proc=function(t,e,i){var n,r,a,o,l,f,s,_=0,d=0,u=0;for(u=e.next_in_index,o=e.avail_in,_=t.bitb,d=t.bitk,f=(l=t.write)<t.read?t.read-l-1:t.end-l;;)switch(c){case D:if(258<=f&&10<=o&&(t.bitb=_,t.bitk=d,e.avail_in=o,e.total_in+=u-e.next_in_index,e.next_in_index=u,t.write=l,i=S(p,U,w,A,x,z,t,e),u=e.next_in_index,o=e.avail_in,_=t.bitb,d=t.bitk,f=(l=t.write)<t.read?t.read-l-1:t.end-l,i!=I)){c=i==M?Y:q;break}g=p,b=w,v=A,c=F;case F:for(n=g;d<n;){if(0===o)return t.bitb=_,t.bitk=d,e.avail_in=o,e.total_in+=u-e.next_in_index,e.next_in_index=u,t.write=l,t.inflate_flush(e,i);i=I,o--,_|=(255&e.read_byte(u++))<<d,d+=8}if(r=3*(v+(_&T[n])),_>>>=b[r+1],d-=b[r+1],0===(a=b[r])){y=b[r+2],c=H;break}if(0!=(16&a)){m=15&a,h=b[r+2],c=E;break}if(0==(64&a)){g=a,v=r/3+b[r+2];break}if(0==(32&a))return c=q,e.msg="invalid literal/length code",i=L,t.bitb=_,t.bitk=d,e.avail_in=o,e.total_in+=u-e.next_in_index,e.next_in_index=u,t.write=l,t.inflate_flush(e,i);c=Y;break;case E:for(n=m;d<n;){if(0===o)return t.bitb=_,t.bitk=d,e.avail_in=o,e.total_in+=u-e.next_in_index,e.next_in_index=u,t.write=l,t.inflate_flush(e,i);i=I,o--,_|=(255&e.read_byte(u++))<<d,d+=8}h+=_&T[n],_>>=n,d-=n,g=U,b=x,v=z,c=O;case O:for(n=g;d<n;){if(0===o)return t.bitb=_,t.bitk=d,e.avail_in=o,e.total_in+=u-e.next_in_index,e.next_in_index=u,t.write=l,t.inflate_flush(e,i);i=I,o--,_|=(255&e.read_byte(u++))<<d,d+=8}if(r=3*(v+(_&T[n])),_>>=b[r+1],d-=b[r+1],0!=(16&(a=b[r]))){m=15&a,k=b[r+2],c=P;break}if(0!=(64&a))return c=q,e.msg="invalid distance code",i=L,t.bitb=_,t.bitk=d,e.avail_in=o,e.total_in+=u-e.next_in_index,e.next_in_index=u,t.write=l,t.inflate_flush(e,i);g=a,v=r/3+b[r+2];break;case P:for(n=m;d<n;){if(0===o)return t.bitb=_,t.bitk=d,e.avail_in=o,e.total_in+=u-e.next_in_index,e.next_in_index=u,t.write=l,t.inflate_flush(e,i);i=I,o--,_|=(255&e.read_byte(u++))<<d,d+=8}k+=_&T[n],_>>=n,d-=n,c=j;case j:for(s=l-k;s<0;)s+=t.end;for(;0!==h;){if(0===f&&(l==t.end&&0!==t.read&&(f=(l=0)<t.read?t.read-l-1:t.end-l),0===f&&(t.write=l,i=t.inflate_flush(e,i),f=(l=t.write)<t.read?t.read-l-1:t.end-l,l==t.end&&0!==t.read&&(f=(l=0)<t.read?t.read-l-1:t.end-l),0===f)))return t.bitb=_,t.bitk=d,e.avail_in=o,e.total_in+=u-e.next_in_index,e.next_in_index=u,t.write=l,t.inflate_flush(e,i);t.window[l++]=t.window[s++],f--,s==t.end&&(s=0),h--}c=D;break;case H:if(0===f&&(l==t.end&&0!==t.read&&(f=(l=0)<t.read?t.read-l-1:t.end-l),0===f&&(t.write=l,i=t.inflate_flush(e,i),f=(l=t.write)<t.read?t.read-l-1:t.end-l,l==t.end&&0!==t.read&&(f=(l=0)<t.read?t.read-l-1:t.end-l),0===f)))return t.bitb=_,t.bitk=d,e.avail_in=o,e.total_in+=u-e.next_in_index,e.next_in_index=u,t.write=l,t.inflate_flush(e,i);i=I,t.window[l++]=y,f--,c=D;break;case Y:if(7<d&&(d-=8,o++,u--),t.write=l,i=t.inflate_flush(e,i),f=(l=t.write)<t.read?t.read-l-1:t.end-l,t.read!=t.write)return t.bitb=_,t.bitk=d,e.avail_in=o,e.total_in+=u-e.next_in_index,e.next_in_index=u,t.write=l,t.inflate_flush(e,i);c=Z;case Z:return i=M,t.bitb=_,t.bitk=d,e.avail_in=o,e.total_in+=u-e.next_in_index,e.next_in_index=u,t.write=l,t.inflate_flush(e,i);case q:return i=L,t.bitb=_,t.bitk=d,e.avail_in=o,e.total_in+=u-e.next_in_index,e.next_in_index=u,t.write=l,t.inflate_flush(e,i);default:return i=R,t.bitb=_,t.bitk=d,e.avail_in=o,e.total_in+=u-e.next_in_index,e.next_in_index=u,t.write=l,t.inflate_flush(e,i)}},this.free=function(){}}var G=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],J=0,K=1,N=2,Q=3,X=4,$=5,tt=6,et=7,it=8,nt=9;function n(t,e){var y,m=this,k=J,p=0,U=0,A=0,z=[0],S=[0],D=new i,F=0,C=new Int32Array(3*W),E=new V;m.bitk=0,m.bitb=0,m.window=new Uint8Array(e),m.end=e,m.read=0,m.write=0,m.reset=function(t,e){e&&(e[0]=0),k==tt&&D.free(t),k=J,m.bitk=0,m.bitb=0,m.read=m.write=0},m.reset(t,null),m.inflate_flush=function(t,e){var i,n,r;return n=t.next_out_index,(i=((r=m.read)<=m.write?m.write:m.end)-r)>t.avail_out&&(i=t.avail_out),0!==i&&e==B&&(e=I),t.avail_out-=i,t.total_out+=i,t.next_out.set(m.window.subarray(r,r+i),n),n+=i,(r+=i)==m.end&&(r=0,m.write==m.end&&(m.write=0),(i=m.write-r)>t.avail_out&&(i=t.avail_out),0!==i&&e==B&&(e=I),t.avail_out-=i,t.total_out+=i,t.next_out.set(m.window.subarray(r,r+i),n),n+=i,r+=i),t.next_out_index=n,m.read=r,e},m.proc=function(t,e){var i,n,r,a,o,l,f,s;for(a=t.next_in_index,o=t.avail_in,n=m.bitb,r=m.bitk,f=(l=m.write)<m.read?m.read-l-1:m.end-l;;)switch(k){case J:for(;r<3;){if(0===o)return m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);e=I,o--,n|=(255&t.read_byte(a++))<<r,r+=8}switch(F=1&(i=7&n),i>>>1){case 0:n>>>=3,n>>>=i=7&(r-=3),r-=i,k=K;break;case 1:var _=[],d=[],u=[[]],c=[[]];V.inflate_trees_fixed(_,d,u,c),D.init(_[0],d[0],u[0],0,c[0],0),n>>>=3,r-=3,k=tt;break;case 2:n>>>=3,r-=3,k=Q;break;case 3:return n>>>=3,r-=3,k=nt,t.msg="invalid block type",e=L,m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e)}break;case K:for(;r<32;){if(0===o)return m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);e=I,o--,n|=(255&t.read_byte(a++))<<r,r+=8}if((~n>>>16&65535)!=(65535&n))return k=nt,t.msg="invalid stored block lengths",e=L,m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);p=65535&n,n=r=0,k=0!==p?N:0!==F?et:J;break;case N:if(0===o)return m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);if(0===f&&(l==m.end&&0!==m.read&&(f=(l=0)<m.read?m.read-l-1:m.end-l),0===f&&(m.write=l,e=m.inflate_flush(t,e),f=(l=m.write)<m.read?m.read-l-1:m.end-l,l==m.end&&0!==m.read&&(f=(l=0)<m.read?m.read-l-1:m.end-l),0===f)))return m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);if(e=I,o<(i=p)&&(i=o),f<i&&(i=f),m.window.set(t.read_buf(a,i),l),a+=i,o-=i,l+=i,f-=i,0!=(p-=i))break;k=0!==F?et:J;break;case Q:for(;r<14;){if(0===o)return m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);e=I,o--,n|=(255&t.read_byte(a++))<<r,r+=8}if(U=i=16383&n,29<(31&i)||29<(i>>5&31))return k=nt,t.msg="too many length or distance symbols",e=L,m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);if(i=258+(31&i)+(i>>5&31),!y||y.length<i)y=[];else for(s=0;s<i;s++)y[s]=0;n>>>=14,r-=14,A=0,k=X;case X:for(;A<4+(U>>>10);){for(;r<3;){if(0===o)return m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);e=I,o--,n|=(255&t.read_byte(a++))<<r,r+=8}y[G[A++]]=7&n,n>>>=3,r-=3}for(;A<19;)y[G[A++]]=0;if(z[0]=7,(i=E.inflate_trees_bits(y,z,S,C,t))!=I)return(e=i)==L&&(y=null,k=nt),m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);A=0,k=$;case $:for(;!(258+(31&(i=U))+(i>>5&31)<=A);){var b,w;for(i=z[0];r<i;){if(0===o)return m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);e=I,o--,n|=(255&t.read_byte(a++))<<r,r+=8}if(i=C[3*(S[0]+(n&T[i]))+1],(w=C[3*(S[0]+(n&T[i]))+2])<16)n>>>=i,r-=i,y[A++]=w;else{for(s=18==w?7:w-14,b=18==w?11:3;r<i+s;){if(0===o)return m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);e=I,o--,n|=(255&t.read_byte(a++))<<r,r+=8}if(r-=i,b+=(n>>>=i)&T[s],n>>>=s,r-=s,258+(31&(i=U))+(i>>5&31)<(s=A)+b||16==w&&s<1)return y=null,k=nt,t.msg="invalid bit length repeat",e=L,m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);for(w=16==w?y[s-1]:0;y[s++]=w,0!=--b;);A=s}}S[0]=-1;var x=[],h=[],v=[],g=[];if(x[0]=9,h[0]=6,i=U,(i=E.inflate_trees_dynamic(257+(31&i),1+(i>>5&31),y,x,h,v,g,C,t))!=I)return i==L&&(y=null,k=nt),e=i,m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);D.init(x[0],h[0],C,v[0],C,g[0]),k=tt;case tt:if(m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,(e=D.proc(m,t,e))!=M)return m.inflate_flush(t,e);if(e=I,D.free(t),a=t.next_in_index,o=t.avail_in,n=m.bitb,r=m.bitk,f=(l=m.write)<m.read?m.read-l-1:m.end-l,0===F){k=J;break}k=et;case et:if(m.write=l,e=m.inflate_flush(t,e),f=(l=m.write)<m.read?m.read-l-1:m.end-l,m.read!=m.write)return m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);k=it;case it:return e=M,m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);case nt:return e=L,m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e);default:return e=R,m.bitb=n,m.bitk=r,t.avail_in=o,t.total_in+=a-t.next_in_index,t.next_in_index=a,m.write=l,m.inflate_flush(t,e)}},m.free=function(t){m.reset(t,null),m.window=null,C=null},m.set_dictionary=function(t,e,i){m.window.set(t.subarray(e,e+i),0),m.read=m.write=i},m.sync_point=function(){return k==K?1:0}}var l=[0,0,255,255];function e(){var i=this;function o(t){return t&&t.istate?(t.total_in=t.total_out=0,t.msg=null,t.istate.mode=7,t.istate.blocks.reset(t,null),I):R}i.mode=0,i.method=0,i.was=[0],i.need=0,i.marker=0,i.wbits=0,i.inflateEnd=function(t){return i.blocks&&i.blocks.free(t),i.blocks=null,I},i.inflateInit=function(t,e){return t.msg=null,i.blocks=null,e<8||15<e?(i.inflateEnd(t),R):(i.wbits=e,t.istate.blocks=new n(t,1<<e),o(t),I)},i.inflate=function(t,e){var i,n;if(!t||!t.istate||!t.next_in)return R;for(e=4==e?B:I,i=B;;)switch(t.istate.mode){case 0:if(0===t.avail_in)return i;if(i=e,t.avail_in--,t.total_in++,8!=(15&(t.istate.method=t.read_byte(t.next_in_index++)))){t.istate.mode=13,t.msg="unknown compression method",t.istate.marker=5;break}if(8+(t.istate.method>>4)>t.istate.wbits){t.istate.mode=13,t.msg="invalid window size",t.istate.marker=5;break}t.istate.mode=1;case 1:if(0===t.avail_in)return i;if(i=e,t.avail_in--,t.total_in++,n=255&t.read_byte(t.next_in_index++),((t.istate.method<<8)+n)%31!=0){t.istate.mode=13,t.msg="incorrect header check",t.istate.marker=5;break}if(0==(32&n)){t.istate.mode=7;break}t.istate.mode=2;case 2:if(0===t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need=(255&t.read_byte(t.next_in_index++))<<24&4278190080,t.istate.mode=3;case 3:if(0===t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.read_byte(t.next_in_index++))<<16&16711680,t.istate.mode=4;case 4:if(0===t.avail_in)return i;i=e,t.avail_in--,t.total_in++,t.istate.need+=(255&t.read_byte(t.next_in_index++))<<8&65280,t.istate.mode=5;case 5:return 0===t.avail_in?i:(i=e,t.avail_in--,t.total_in++,t.istate.need+=255&t.read_byte(t.next_in_index++),t.istate.mode=6,2);case 6:return t.istate.mode=13,t.msg="need dictionary",t.istate.marker=0,R;case 7:if((i=t.istate.blocks.proc(t,i))==L){t.istate.mode=13,t.istate.marker=0;break}if(i==I&&(i=e),i!=M)return i;i=e,t.istate.blocks.reset(t,t.istate.was),t.istate.mode=12;case 12:return M;case 13:return L;default:return R}},i.inflateSetDictionary=function(t,e,i){var n=0,r=i;return t&&t.istate&&6==t.istate.mode?(r>=1<<t.istate.wbits&&(n=i-(r=(1<<t.istate.wbits)-1)),t.istate.blocks.set_dictionary(e,n,r),t.istate.mode=7,I):R},i.inflateSync=function(t){var e,i,n,r,a;if(!t||!t.istate)return R;if(13!=t.istate.mode&&(t.istate.mode=13,t.istate.marker=0),0===(e=t.avail_in))return B;for(i=t.next_in_index,n=t.istate.marker;0!==e&&n<4;)t.read_byte(i)==l[n]?n++:n=0!==t.read_byte(i)?0:4-n,i++,e--;return t.total_in+=i-t.next_in_index,t.next_in_index=i,t.avail_in=e,4!=(t.istate.marker=n)?L:(r=t.total_in,a=t.total_out,o(t),t.total_in=r,t.total_out=a,t.istate.mode=7,I)},i.inflateSyncPoint=function(t){return t&&t.istate&&t.istate.blocks?t.istate.blocks.sync_point():R}}function o(){}o.prototype={inflateInit:function(t){return this.istate=new e,t=t||15,this.istate.inflateInit(this,t)},inflate:function(t){return this.istate?this.istate.inflate(this,t):R},inflateEnd:function(){if(!this.istate)return R;var t=this.istate.inflateEnd(this);return this.istate=null,t},inflateSync:function(){return this.istate?this.istate.inflateSync(this):R},inflateSetDictionary:function(t,e){return this.istate?this.istate.inflateSetDictionary(this,t,e):R},read_byte:function(t){return this.next_in.subarray(t,t+1)[0]},read_buf:function(t,e){return this.next_in.subarray(t,t+e)}};var f=t.zip||t;f.Inflater=f._jzlib_Inflater=function(){var f=new o,s=new Uint8Array(512),_=!1;f.inflateInit(),f.next_out=s,this.append=function(t,e){var i,n,r=[],a=0,o=0,l=0;if(0!==t.length){f.next_in_index=0,f.next_in=t,f.avail_in=t.length;do{if(f.next_out_index=0,f.avail_out=512,0!==f.avail_in||_||(f.next_in_index=0,_=!0),i=f.inflate(0),_&&i===B){if(0!==f.avail_in)throw new Error("inflating: bad input")}else if(i!==I&&i!==M)throw new Error("inflating: "+f.msg);if((_||i===M)&&f.avail_in===t.length)throw new Error("inflating: bad input");f.next_out_index&&(512===f.next_out_index?r.push(new Uint8Array(s)):r.push(new Uint8Array(s.subarray(0,f.next_out_index)))),l+=f.next_out_index,e&&0<f.next_in_index&&f.next_in_index!=a&&(e(f.next_in_index),a=f.next_in_index)}while(0<f.avail_in||0===f.avail_out);return n=new Uint8Array(l),r.forEach(function(t){n.set(t,o),o+=t.length}),n}},this.flush=function(){f.inflateEnd()}}}(this);