>>3]+u[31&(e<<2|r>>>6)]+u[r>>>1&31]+u[31&(r<<4|i>>>4)]+u[31&(i<<1|n>>>7)]+u[n>>>2&31]+u[31&(n<<3|s>>>5)]+u[31&s];var l=o-c;return 1===l?(e=t.charCodeAt(h),a+=u[e>>>3]+u[e<<2&31]+"======"):2===l?(e=t.charCodeAt(h++),r=t.charCodeAt(h),a+=u[e>>>3]+u[31&(e<<2|r>>>6)]+u[r>>>1&31]+u[r<<4&31]+"===="):3===l?(e=t.charCodeAt(h++),r=t.charCodeAt(h++),i=t.charCodeAt(h),a+=u[e>>>3]+u[31&(e<<2|r>>>6)]+u[r>>>1&31]+u[31&(r<<4|i>>>4)]+u[i<<1&31]+"==="):4===l&&(e=t.charCodeAt(h++),r=t.charCodeAt(h++),i=t.charCodeAt(h++),n=t.charCodeAt(h),a+=u[e>>>3]+u[31&(e<<2|r>>>6)]+u[r>>>1&31]+u[31&(r<<4|i>>>4)]+u[31&(i<<1|n>>>7)]+u[n>>>2&31]+u[n<<3&31]+"="),a}(t):function(t){var e,r,i,n,s,a,o,h=!1,l="",d=0,f=0,p=t.length;do{for(c[0]=c[5],c[1]=c[6],c[2]=c[7],o=f;d>6,c[o++]=128|63&a):a<55296||a>=57344?(c[o++]=224|a>>12,c[o++]=128|a>>6&63,c[o++]=128|63&a):(a=65536+((1023&a)<<10|1023&t.charCodeAt(++d)),c[o++]=240|a>>18,c[o++]=128|a>>12&63,c[o++]=128|a>>6&63,c[o++]=128|63&a);o-f,f=o-5,d===p&&++d,d>p&&o<6&&(h=!0),e=c[0],o>4?(r=c[1],i=c[2],n=c[3],s=c[4],l+=u[e>>>3]+u[31&(e<<2|r>>>6)]+u[r>>>1&31]+u[31&(r<<4|i>>>4)]+u[31&(i<<1|n>>>7)]+u[n>>>2&31]+u[31&(n<<3|s>>>5)]+u[31&s]):1===o?l+=u[e>>>3]+u[e<<2&31]+"======":2===o?(r=c[1],l+=u[e>>>3]+u[31&(e<<2|r>>>6)]+u[r>>>1&31]+u[r<<4&31]+"===="):3===o?(r=c[1],i=c[2],l+=u[e>>>3]+u[31&(e<<2|r>>>6)]+u[r>>>1&31]+u[31&(r<<4|i>>>4)]+u[i<<1&31]+"==="):(r=c[1],i=c[2],n=c[3],l+=u[e>>>3]+u[31&(e<<2|r>>>6)]+u[r>>>1&31]+u[31&(r<<4|i>>>4)]+u[31&(i<<1|n>>>7)]+u[n>>>2&31]+u[n<<3&31]+"=")}while(!h);return l}(t)},decode:f};f.asBytes=d,a?t.exports=p:(s.base32=p,o&&(void 0===(n=function(){return p}.call(p,r,p,t))||(t.exports=n)))}()}).call(this,r(13),r(5))},function(t,e,r){"use strict";var i=r(169),n=r(9),s=r(80),a=r(45),o=r(81),u=Object.prototype.toString;function h(t){if(!(this instanceof h))return new h(t);this.options=n.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var r=i.deflateInit2(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==r)throw new Error(a[r]);if(e.header&&i.deflateSetHeader(this.strm,e.header),e.dictionary){var c;if(c="string"==typeof e.dictionary?s.string2buf(e.dictionary):"[object ArrayBuffer]"===u.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,0!==(r=i.deflateSetDictionary(this.strm,c)))throw new Error(a[r]);this._dict_set=!0}}function c(t,e){var r=new h(e);if(r.push(t,!0),r.err)throw r.msg||a[r.err];return r.result}h.prototype.push=function(t,e){var r,a,o=this.strm,h=this.options.chunkSize;if(this.ended)return!1;a=e===~~e?e:!0===e?4:0,"string"==typeof t?o.input=s.string2buf(t):"[object ArrayBuffer]"===u.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=new n.Buf8(h),o.next_out=0,o.avail_out=h),1!==(r=i.deflate(o,a))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||4!==a&&2!==a)||("string"===this.options.to?this.onData(s.buf2binstring(n.shrinkBuf(o.output,o.next_out))):this.onData(n.shrinkBuf(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==r);return 4===a?(r=i.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==a||(this.onEnd(0),o.avail_out=0,!0)},h.prototype.onData=function(t){this.chunks.push(t)},h.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=n.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg},e.Deflate=h,e.deflate=c,e.deflateRaw=function(t,e){return(e=e||{}).raw=!0,c(t,e)},e.gzip=function(t,e){return(e=e||{}).gzip=!0,c(t,e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,r(177);var i=/\\(u\{([0-9A-Fa-f]+)\}|u([0-9A-Fa-f]{4})|x([0-9A-Fa-f]{2})|([1-7][0-7]{0,2}|[0-7]{2,3})|(['"tbrnfv0\\]))|\\U([0-9A-Fa-f]{8})/g,n={0:"\0",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t",v:"\v","'":"'",'"':'"',"\\":"\\"},s=function(t){return String.fromCodePoint(parseInt(t,16))};e.default=function(t){return t.replace(i,(function(t,e,r,i,a,o,u,h){return void 0!==r?s(r):void 0!==i?s(i):void 0!==a?s(a):void 0!==o?(c=o,String.fromCodePoint(parseInt(c,8))):void 0!==h?s(h):n[u];var c}))},t.exports=e.default},function(t,e){var r={};r[e.ACCEPTED=202]="Accepted",r[e.BAD_GATEWAY=502]="Bad Gateway",r[e.BAD_REQUEST=400]="Bad Request",r[e.CONFLICT=409]="Conflict",r[e.CONTINUE=100]="Continue",r[e.CREATED=201]="Created",r[e.EXPECTATION_FAILED=417]="Expectation Failed",r[e.FAILED_DEPENDENCY=424]="Failed Dependency",r[e.FORBIDDEN=403]="Forbidden",r[e.GATEWAY_TIMEOUT=504]="Gateway Timeout",r[e.GONE=410]="Gone",r[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP Version Not Supported",r[e.IM_A_TEAPOT=418]="I'm a teapot",r[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]="Insufficient Space on Resource",r[e.INSUFFICIENT_STORAGE=507]="Insufficient Storage",r[e.INTERNAL_SERVER_ERROR=500]="Server Error",r[e.LENGTH_REQUIRED=411]="Length Required",r[e.LOCKED=423]="Locked",r[e.METHOD_FAILURE=420]="Method Failure",r[e.METHOD_NOT_ALLOWED=405]="Method Not Allowed",r[e.MOVED_PERMANENTLY=301]="Moved Permanently",r[e.MOVED_TEMPORARILY=302]="Moved Temporarily",r[e.MULTI_STATUS=207]="Multi-Status",r[e.MULTIPLE_CHOICES=300]="Multiple Choices",r[e.NETWORK_AUTHENTICATION_REQUIRED=511]="Network Authentication Required",r[e.NO_CONTENT=204]="No Content",r[e.NON_AUTHORITATIVE_INFORMATION=203]="Non Authoritative Information",r[e.NOT_ACCEPTABLE=406]="Not Acceptable",r[e.NOT_FOUND=404]="Not Found",r[e.NOT_IMPLEMENTED=501]="Not Implemented",r[e.NOT_MODIFIED=304]="Not Modified",r[e.OK=200]="OK",r[e.PARTIAL_CONTENT=206]="Partial Content",r[e.PAYMENT_REQUIRED=402]="Payment Required",r[e.PERMANENT_REDIRECT=308]="Permanent Redirect",r[e.PRECONDITION_FAILED=412]="Precondition Failed",r[e.PRECONDITION_REQUIRED=428]="Precondition Required",r[e.PROCESSING=102]="Processing",r[e.PROXY_AUTHENTICATION_REQUIRED=407]="Proxy Authentication Required",r[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="Request Header Fields Too Large",r[e.REQUEST_TIMEOUT=408]="Request Timeout",r[e.REQUEST_TOO_LONG=413]="Request Entity Too Large",r[e.REQUEST_URI_TOO_LONG=414]="Request-URI Too Long",r[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="Requested Range Not Satisfiable",r[e.RESET_CONTENT=205]="Reset Content",r[e.SEE_OTHER=303]="See Other",r[e.SERVICE_UNAVAILABLE=503]="Service Unavailable",r[e.SWITCHING_PROTOCOLS=101]="Switching Protocols",r[e.TEMPORARY_REDIRECT=307]="Temporary Redirect",r[e.TOO_MANY_REQUESTS=429]="Too Many Requests",r[e.UNAUTHORIZED=401]="Unauthorized",r[e.UNPROCESSABLE_ENTITY=422]="Unprocessable Entity",r[e.UNSUPPORTED_MEDIA_TYPE=415]="Unsupported Media Type",r[e.USE_PROXY=305]="Use Proxy",e.getStatusText=function(t){if(r.hasOwnProperty(t))return r[t];throw new Error("Status code does not exist: "+t)},e.getStatusCode=function(t){for(key in r)if(r[key]===t)return parseInt(key,10);throw new Error("Reason phrase does not exist: "+t)}},function(t,e,r){"use strict";(function(t){r.d(e,"a",(function(){return n}));var i=r(117);class n{constructor(e){this.bundle=new i.Bundle(t.from(e))}load(t){this.db=t;const e=this.bundle.primaryURL,r=e;this.db.addPage({url:e,date:"",title:r});for(const t of this.bundle.urls){const e=this.bundle.getResponse(t),r=(new Date).getTime();this.db.addResource({url:t,ts:r,status:e.status,respHeaders:e.headers,payload:e.body})}}}}).call(this,r(3).Buffer)},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(203);e.Bundle=i.Bundle,e.Response=i.Response;var n=r(216);e.BundleBuilder=n.BundleBuilder},function(t,e,r){(function(e,r,i){t.exports=function t(e,r,i){function n(a,o){if(!r[a]){if(!e[a]){if(s)return s(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var h=r[a]={exports:{}};e[a][0].call(h.exports,(function(t){return n(e[a][1][t]||t)}),h,h.exports,t,e,r,i)}return r[a].exports}for(var s=!1,a=0;a>2,o=(3&e)<<4|r>>4,u=1>6:64,h=2>4,r=(15&a)<<4|(o=s.indexOf(t.charAt(h++)))>>2,i=(3&o)<<6|(u=s.indexOf(t.charAt(h++))),d[c++]=e,64!==o&&(d[c++]=r),64!==u&&(d[c++]=i);return d}},{"./support":30,"./utils":32}],2:[function(t,e,r){"use strict";var i=t("./external"),n=t("./stream/DataWorker"),s=t("./stream/DataLengthProbe"),a=t("./stream/Crc32Probe");function o(t,e,r,i,n){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=i,this.compressedContent=n}s=t("./stream/DataLengthProbe"),o.prototype={getContentWorker:function(){var t=new n(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new s("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},getCompressedWorker:function(){return new n(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(t,e,r){return t.pipe(new a).pipe(new s("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new s("compressedSize")).withStreamInfo("compression",e)},e.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(t,e,r){"use strict";var i=t("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(t){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},r.DEFLATE=t("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(t,e,r){"use strict";var i=t("./utils"),n=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var i=0;i<8;i++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();e.exports=function(t,e){return void 0!==t&&t.length?"string"!==i.getTypeOf(t)?function(t,e,r,i){var s=n,a=0+r;t^=-1;for(var o=0;o>>8^s[255&(t^e[o])];return-1^t}(0|e,t,t.length):function(t,e,r,i){var s=n,a=0+r;t^=-1;for(var o=0;o>>8^s[255&(t^e.charCodeAt(o))];return-1^t}(0|e,t,t.length):0}},{"./utils":32}],5:[function(t,e,r){"use strict";r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,e,r){"use strict";var i;i="undefined"!=typeof Promise?Promise:t("lie"),e.exports={Promise:i}},{lie:37}],7:[function(t,e,r){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=t("pako"),s=t("./utils"),a=t("./stream/GenericWorker"),o=i?"uint8array":"array";function u(t,e){a.call(this,"FlateWorker/"+t),this._pako=null,this._pakoAction=t,this._pakoOptions=e,this.meta={}}r.magic="\b\0",s.inherits(u,a),u.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(s.transformTo(o,t.data),!1)},u.prototype.flush=function(){a.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var t=this;this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},r.compressWorker=function(t){return new u("Deflate",t)},r.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(t,e,r){"use strict";function i(t,e){var r,i="";for(r=0;r>>=8;return i}function n(t,e,r,n,a,c){var l,d,f=t.file,p=t.compression,m=c!==o.utf8encode,w=s.transformTo("string",c(f.name)),g=s.transformTo("string",o.utf8encode(f.name)),_=f.comment,y=s.transformTo("string",c(_)),b=s.transformTo("string",o.utf8encode(_)),v=g.length!==f.name.length,E=b.length!==_.length,A="",x="",T="",S=f.dir,C=f.date,k={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(k.crc32=t.crc32,k.compressedSize=t.compressedSize,k.uncompressedSize=t.uncompressedSize);var D=0;e&&(D|=8),m||!v&&!E||(D|=2048);var R=0,I=0;S&&(R|=16),"UNIX"===a?(I=798,R|=function(t,e){var r=t;return t||(r=e?16893:33204),(65535&r)<<16}(f.unixPermissions,S)):(I=20,R|=function(t){return 63&(t||0)}(f.dosPermissions)),l=C.getUTCHours(),l<<=6,l|=C.getUTCMinutes(),l<<=5,l|=C.getUTCSeconds()/2,d=C.getUTCFullYear()-1980,d<<=4,d|=C.getUTCMonth()+1,d<<=5,d|=C.getUTCDate(),v&&(x=i(1,1)+i(u(w),4)+g,A+="up"+i(x.length,2)+x),E&&(T=i(1,1)+i(u(y),4)+b,A+="uc"+i(T.length,2)+T);var N="";return N+="\n\0",N+=i(D,2),N+=p.magic,N+=i(l,2),N+=i(d,2),N+=i(k.crc32,4),N+=i(k.compressedSize,4),N+=i(k.uncompressedSize,4),N+=i(w.length,2),N+=i(A.length,2),{fileRecord:h.LOCAL_FILE_HEADER+N+w+A,dirRecord:h.CENTRAL_FILE_HEADER+i(I,2)+N+i(y.length,2)+"\0\0\0\0"+i(R,4)+i(n,4)+w+A+y}}var s=t("../utils"),a=t("../stream/GenericWorker"),o=t("../utf8"),u=t("../crc32"),h=t("../signature");function c(t,e,r,i){a.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=e,this.zipPlatform=r,this.encodeFileName=i,this.streamFiles=t,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}s.inherits(c,a),c.prototype.push=function(t){var e=t.meta.percent||0,r=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(t):(this.bytesWritten+=t.data.length,a.prototype.push.call(this,{data:t.data,meta:{currentFile:this.currentFile,percent:r?(e+100*(r-i-1))/r:100}}))},c.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=n(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=n(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:function(t){return h.DATA_DESCRIPTOR+i(t.crc32,4)+i(t.compressedSize,4)+i(t.uncompressedSize,4)}(t),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},readString:function(t){return i.transformTo("string",this.readData(t))},readData:function(t){},lastIndexOfSignature:function(t){},readAndCheckSignature:function(t){},readDate:function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))}},e.exports=n},{"../utils":32}],19:[function(t,e,r){"use strict";var i=t("./Uint8ArrayReader");function n(t){i.call(this,t)}t("../utils").inherits(n,i),n.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(t,e,r){"use strict";var i=t("./DataReader");function n(t){i.call(this,t)}t("../utils").inherits(n,i),n.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},n.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},n.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},n.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./DataReader":18}],21:[function(t,e,r){"use strict";var i=t("./ArrayReader");function n(t){i.call(this,t)}t("../utils").inherits(n,i),n.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(t,e,r){"use strict";var i=t("../utils"),n=t("../support"),s=t("./ArrayReader"),a=t("./StringReader"),o=t("./NodeBufferReader"),u=t("./Uint8ArrayReader");e.exports=function(t){var e=i.getTypeOf(t);return i.checkSupport(e),"string"!==e||n.uint8array?"nodebuffer"===e?new o(t):n.uint8array?new u(i.transformTo("uint8array",t)):new s(i.transformTo("array",t)):new a(t)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(t,e,r){"use strict";r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(t,e,r){"use strict";var i=t("./GenericWorker"),n=t("../utils");function s(t){i.call(this,"ConvertWorker to "+t),this.destType=t}n.inherits(s,i),s.prototype.processChunk=function(t){this.push({data:n.transformTo(this.destType,t.data),meta:t.meta})},e.exports=s},{"../utils":32,"./GenericWorker":28}],25:[function(t,e,r){"use strict";var i=t("./GenericWorker"),n=t("../crc32");function s(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}t("../utils").inherits(s,i),s.prototype.processChunk=function(t){this.streamInfo.crc32=n(t.data,this.streamInfo.crc32||0),this.push(t)},e.exports=s},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(t,e,r){"use strict";var i=t("../utils"),n=t("./GenericWorker");function s(t){n.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}i.inherits(s,n),s.prototype.processChunk=function(t){if(t){var e=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=e+t.data.length}n.prototype.processChunk.call(this,t)},e.exports=s},{"../utils":32,"./GenericWorker":28}],27:[function(t,e,r){"use strict";var i=t("../utils"),n=t("./GenericWorker");function s(t){n.call(this,"DataWorker");var e=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then((function(t){e.dataIsReady=!0,e.data=t,e.max=t&&t.length||0,e.type=i.getTypeOf(t),e.isPaused||e._tickAndRepeat()}),(function(t){e.error(t)}))}i.inherits(s,n),s.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},s.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},s.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},s.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":case"nodebuffer":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=s},{"../utils":32,"./GenericWorker":28}],28:[function(t,e,r){"use strict";function i(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(t){this.emit("data",t)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},error:function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},on:function(t,e){return this._listeners[t].push(e),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(t,e){if(this._listeners[t])for(var r=0;r "+t:t}},e.exports=i},{}],29:[function(t,r,i){"use strict";var n=t("../utils"),s=t("./ConvertWorker"),a=t("./GenericWorker"),o=t("../base64"),u=t("../support"),h=t("../external"),c=null;if(u.nodestream)try{c=t("../nodejs/NodejsStreamOutputAdapter")}catch(t){}function l(t,e,r){var i=e;switch(e){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string"}try{this._internalType=i,this._outputType=e,this._mimeType=r,n.checkSupport(i),this._worker=t.pipe(new s(i)),t.lock()}catch(t){this._worker=new a("error"),this._worker.error(t)}}l.prototype={accumulate:function(t){return function(t,r){return new h.Promise((function(i,s){var a=[],u=t._internalType,h=t._outputType,c=t._mimeType;t.on("data",(function(t,e){a.push(t),r&&r(e)})).on("error",(function(t){a=[],s(t)})).on("end",(function(){try{var t=function(t,e,r){switch(t){case"blob":return n.newBlob(n.transformTo("arraybuffer",e),r);case"base64":return o.encode(e);default:return n.transformTo(t,e)}}(h,function(t,r){var i,n=0,s=null,a=0;for(i=0;i