oda-framework
Version:
6 lines • 193 kB
JavaScript
var commonjsGlobal=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},buffer$1={},base64Js={};base64Js.byteLength=byteLength,base64Js.toByteArray=toByteArray,base64Js.fromByteArray=fromByteArray;for(var lookup=[],revLookup=[],Arr=typeof Uint8Array!="undefined"?Uint8Array:Array,code="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i$2=0,len=code.length;i$2<len;++i$2)lookup[i$2]=code[i$2],revLookup[code.charCodeAt(i$2)]=i$2;revLookup["-".charCodeAt(0)]=62,revLookup["_".charCodeAt(0)]=63;function getLens(e){var r=e.length;if(r%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=r);var v=t===r?0:4-t%4;return[t,v]}function byteLength(e){var r=getLens(e),t=r[0],v=r[1];return(t+v)*3/4-v}function _byteLength(e,r,t){return(r+t)*3/4-t}function toByteArray(e){var r,t=getLens(e),v=t[0],I=t[1],b=new Arr(_byteLength(e,v,I)),N=0,T=I>0?v-4:v,ae;for(ae=0;ae<T;ae+=4)r=revLookup[e.charCodeAt(ae)]<<18|revLookup[e.charCodeAt(ae+1)]<<12|revLookup[e.charCodeAt(ae+2)]<<6|revLookup[e.charCodeAt(ae+3)],b[N++]=r>>16&255,b[N++]=r>>8&255,b[N++]=r&255;return I===2&&(r=revLookup[e.charCodeAt(ae)]<<2|revLookup[e.charCodeAt(ae+1)]>>4,b[N++]=r&255),I===1&&(r=revLookup[e.charCodeAt(ae)]<<10|revLookup[e.charCodeAt(ae+1)]<<4|revLookup[e.charCodeAt(ae+2)]>>2,b[N++]=r>>8&255,b[N++]=r&255),b}function tripletToBase64(e){return lookup[e>>18&63]+lookup[e>>12&63]+lookup[e>>6&63]+lookup[e&63]}function encodeChunk(e,r,t){for(var v,I=[],b=r;b<t;b+=3)v=(e[b]<<16&16711680)+(e[b+1]<<8&65280)+(e[b+2]&255),I.push(tripletToBase64(v));return I.join("")}function fromByteArray(e){for(var r,t=e.length,v=t%3,I=[],b=16383,N=0,T=t-v;N<T;N+=b)I.push(encodeChunk(e,N,N+b>T?T:N+b));return v===1?(r=e[t-1],I.push(lookup[r>>2]+lookup[r<<4&63]+"==")):v===2&&(r=(e[t-2]<<8)+e[t-1],I.push(lookup[r>>10]+lookup[r>>4&63]+lookup[r<<2&63]+"=")),I.join("")}var ieee754={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */ieee754.read=function(e,r,t,v,I){var b,N,T=I*8-v-1,ae=(1<<T)-1,X=ae>>1,G=-7,ve=t?I-1:0,fe=t?-1:1,ce=e[r+ve];for(ve+=fe,b=ce&(1<<-G)-1,ce>>=-G,G+=T;G>0;b=b*256+e[r+ve],ve+=fe,G-=8);for(N=b&(1<<-G)-1,b>>=-G,G+=v;G>0;N=N*256+e[r+ve],ve+=fe,G-=8);if(b===0)b=1-X;else{if(b===ae)return N?NaN:(ce?-1:1)*(1/0);N=N+Math.pow(2,v),b=b-X}return(ce?-1:1)*N*Math.pow(2,b-v)},ieee754.write=function(e,r,t,v,I,b){var N,T,ae,X=b*8-I-1,G=(1<<X)-1,ve=G>>1,fe=I===23?Math.pow(2,-24)-Math.pow(2,-77):0,ce=v?0:b-1,_e=v?1:-1,Ee=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(T=isNaN(r)?1:0,N=G):(N=Math.floor(Math.log(r)/Math.LN2),r*(ae=Math.pow(2,-N))<1&&(N--,ae*=2),N+ve>=1?r+=fe/ae:r+=fe*Math.pow(2,1-ve),r*ae>=2&&(N++,ae/=2),N+ve>=G?(T=0,N=G):N+ve>=1?(T=(r*ae-1)*Math.pow(2,I),N=N+ve):(T=r*Math.pow(2,ve-1)*Math.pow(2,I),N=0));I>=8;e[t+ce]=T&255,ce+=_e,T/=256,I-=8);for(N=N<<I|T,X+=I;X>0;e[t+ce]=N&255,ce+=_e,N/=256,X-=8);e[t+ce-_e]|=Ee*128};/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/(function(e){const r=base64Js,t=ieee754,v=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=T,e.SlowBuffer=Te,e.INSPECT_MAX_BYTES=50;const I=2147483647;e.kMaxLength=I,T.TYPED_ARRAY_SUPPORT=b(),!T.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function b(){try{const P=new Uint8Array(1),x={foo:function(){return 42}};return Object.setPrototypeOf(x,Uint8Array.prototype),Object.setPrototypeOf(P,x),P.foo()===42}catch(P){return!1}}Object.defineProperty(T.prototype,"parent",{enumerable:!0,get:function(){if(!!T.isBuffer(this))return this.buffer}}),Object.defineProperty(T.prototype,"offset",{enumerable:!0,get:function(){if(!!T.isBuffer(this))return this.byteOffset}});function N(P){if(P>I)throw new RangeError('The value "'+P+'" is invalid for option "size"');const x=new Uint8Array(P);return Object.setPrototypeOf(x,T.prototype),x}function T(P,x,$){if(typeof P=="number"){if(typeof x=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ve(P)}return ae(P,x,$)}T.poolSize=8192;function ae(P,x,$){if(typeof P=="string")return fe(P,x);if(ArrayBuffer.isView(P))return _e(P);if(P==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P);if(Ke(P,ArrayBuffer)||P&&Ke(P.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Ke(P,SharedArrayBuffer)||P&&Ke(P.buffer,SharedArrayBuffer)))return Ee(P,x,$);if(typeof P=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const le=P.valueOf&&P.valueOf();if(le!=null&&le!==P)return T.from(le,x,$);const pe=ye(P);if(pe)return pe;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof P[Symbol.toPrimitive]=="function")return T.from(P[Symbol.toPrimitive]("string"),x,$);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof P)}T.from=function(P,x,$){return ae(P,x,$)},Object.setPrototypeOf(T.prototype,Uint8Array.prototype),Object.setPrototypeOf(T,Uint8Array);function X(P){if(typeof P!="number")throw new TypeError('"size" argument must be of type number');if(P<0)throw new RangeError('The value "'+P+'" is invalid for option "size"')}function G(P,x,$){return X(P),P<=0?N(P):x!==void 0?typeof $=="string"?N(P).fill(x,$):N(P).fill(x):N(P)}T.alloc=function(P,x,$){return G(P,x,$)};function ve(P){return X(P),N(P<0?0:be(P)|0)}T.allocUnsafe=function(P){return ve(P)},T.allocUnsafeSlow=function(P){return ve(P)};function fe(P,x){if((typeof x!="string"||x==="")&&(x="utf8"),!T.isEncoding(x))throw new TypeError("Unknown encoding: "+x);const $=Ae(P,x)|0;let le=N($);const pe=le.write(P,x);return pe!==$&&(le=le.slice(0,pe)),le}function ce(P){const x=P.length<0?0:be(P.length)|0,$=N(x);for(let le=0;le<x;le+=1)$[le]=P[le]&255;return $}function _e(P){if(Ke(P,Uint8Array)){const x=new Uint8Array(P);return Ee(x.buffer,x.byteOffset,x.byteLength)}return ce(P)}function Ee(P,x,$){if(x<0||P.byteLength<x)throw new RangeError('"offset" is outside of buffer bounds');if(P.byteLength<x+($||0))throw new RangeError('"length" is outside of buffer bounds');let le;return x===void 0&&$===void 0?le=new Uint8Array(P):$===void 0?le=new Uint8Array(P,x):le=new Uint8Array(P,x,$),Object.setPrototypeOf(le,T.prototype),le}function ye(P){if(T.isBuffer(P)){const x=be(P.length)|0,$=N(x);return $.length===0||P.copy($,0,0,x),$}if(P.length!==void 0)return typeof P.length!="number"||ht(P.length)?N(0):ce(P);if(P.type==="Buffer"&&Array.isArray(P.data))return ce(P.data)}function be(P){if(P>=I)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+I.toString(16)+" bytes");return P|0}function Te(P){return+P!=P&&(P=0),T.alloc(+P)}T.isBuffer=function(x){return x!=null&&x._isBuffer===!0&&x!==T.prototype},T.compare=function(x,$){if(Ke(x,Uint8Array)&&(x=T.from(x,x.offset,x.byteLength)),Ke($,Uint8Array)&&($=T.from($,$.offset,$.byteLength)),!T.isBuffer(x)||!T.isBuffer($))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(x===$)return 0;let le=x.length,pe=$.length;for(let ge=0,we=Math.min(le,pe);ge<we;++ge)if(x[ge]!==$[ge]){le=x[ge],pe=$[ge];break}return le<pe?-1:pe<le?1:0},T.isEncoding=function(x){switch(String(x).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},T.concat=function(x,$){if(!Array.isArray(x))throw new TypeError('"list" argument must be an Array of Buffers');if(x.length===0)return T.alloc(0);let le;if($===void 0)for($=0,le=0;le<x.length;++le)$+=x[le].length;const pe=T.allocUnsafe($);let ge=0;for(le=0;le<x.length;++le){let we=x[le];if(Ke(we,Uint8Array))ge+we.length>pe.length?(T.isBuffer(we)||(we=T.from(we)),we.copy(pe,ge)):Uint8Array.prototype.set.call(pe,we,ge);else if(T.isBuffer(we))we.copy(pe,ge);else throw new TypeError('"list" argument must be an Array of Buffers');ge+=we.length}return pe};function Ae(P,x){if(T.isBuffer(P))return P.length;if(ArrayBuffer.isView(P)||Ke(P,ArrayBuffer))return P.byteLength;if(typeof P!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof P);const $=P.length,le=arguments.length>2&&arguments[2]===!0;if(!le&&$===0)return 0;let pe=!1;for(;;)switch(x){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return je(P).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $*2;case"hex":return $>>>1;case"base64":return lt(P).length;default:if(pe)return le?-1:je(P).length;x=(""+x).toLowerCase(),pe=!0}}T.byteLength=Ae;function Se(P,x,$){let le=!1;if((x===void 0||x<0)&&(x=0),x>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0,x>>>=0,$<=x))return"";for(P||(P="utf8");;)switch(P){case"hex":return nt(this,x,$);case"utf8":case"utf-8":return Ve(this,x,$);case"ascii":return Re(this,x,$);case"latin1":case"binary":return Qe(this,x,$);case"base64":return We(this,x,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return at(this,x,$);default:if(le)throw new TypeError("Unknown encoding: "+P);P=(P+"").toLowerCase(),le=!0}}T.prototype._isBuffer=!0;function $e(P,x,$){const le=P[x];P[x]=P[$],P[$]=le}T.prototype.swap16=function(){const x=this.length;if(x%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let $=0;$<x;$+=2)$e(this,$,$+1);return this},T.prototype.swap32=function(){const x=this.length;if(x%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let $=0;$<x;$+=4)$e(this,$,$+3),$e(this,$+1,$+2);return this},T.prototype.swap64=function(){const x=this.length;if(x%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let $=0;$<x;$+=8)$e(this,$,$+7),$e(this,$+1,$+6),$e(this,$+2,$+5),$e(this,$+3,$+4);return this},T.prototype.toString=function(){const x=this.length;return x===0?"":arguments.length===0?Ve(this,0,x):Se.apply(this,arguments)},T.prototype.toLocaleString=T.prototype.toString,T.prototype.equals=function(x){if(!T.isBuffer(x))throw new TypeError("Argument must be a Buffer");return this===x?!0:T.compare(this,x)===0},T.prototype.inspect=function(){let x="";const $=e.INSPECT_MAX_BYTES;return x=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$&&(x+=" ... "),"<Buffer "+x+">"},v&&(T.prototype[v]=T.prototype.inspect),T.prototype.compare=function(x,$,le,pe,ge){if(Ke(x,Uint8Array)&&(x=T.from(x,x.offset,x.byteLength)),!T.isBuffer(x))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof x);if($===void 0&&($=0),le===void 0&&(le=x?x.length:0),pe===void 0&&(pe=0),ge===void 0&&(ge=this.length),$<0||le>x.length||pe<0||ge>this.length)throw new RangeError("out of range index");if(pe>=ge&&$>=le)return 0;if(pe>=ge)return-1;if($>=le)return 1;if($>>>=0,le>>>=0,pe>>>=0,ge>>>=0,this===x)return 0;let we=ge-pe,Oe=le-$;const ze=Math.min(we,Oe),Pe=this.slice(pe,ge),He=x.slice($,le);for(let Le=0;Le<ze;++Le)if(Pe[Le]!==He[Le]){we=Pe[Le],Oe=He[Le];break}return we<Oe?-1:Oe<we?1:0};function ke(P,x,$,le,pe){if(P.length===0)return-1;if(typeof $=="string"?(le=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),$=+$,ht($)&&($=pe?0:P.length-1),$<0&&($=P.length+$),$>=P.length){if(pe)return-1;$=P.length-1}else if($<0)if(pe)$=0;else return-1;if(typeof x=="string"&&(x=T.from(x,le)),T.isBuffer(x))return x.length===0?-1:Ne(P,x,$,le,pe);if(typeof x=="number")return x=x&255,typeof Uint8Array.prototype.indexOf=="function"?pe?Uint8Array.prototype.indexOf.call(P,x,$):Uint8Array.prototype.lastIndexOf.call(P,x,$):Ne(P,[x],$,le,pe);throw new TypeError("val must be string, number or Buffer")}function Ne(P,x,$,le,pe){let ge=1,we=P.length,Oe=x.length;if(le!==void 0&&(le=String(le).toLowerCase(),le==="ucs2"||le==="ucs-2"||le==="utf16le"||le==="utf-16le")){if(P.length<2||x.length<2)return-1;ge=2,we/=2,Oe/=2,$/=2}function ze(He,Le){return ge===1?He[Le]:He.readUInt16BE(Le*ge)}let Pe;if(pe){let He=-1;for(Pe=$;Pe<we;Pe++)if(ze(P,Pe)===ze(x,He===-1?0:Pe-He)){if(He===-1&&(He=Pe),Pe-He+1===Oe)return He*ge}else He!==-1&&(Pe-=Pe-He),He=-1}else for($+Oe>we&&($=we-Oe),Pe=$;Pe>=0;Pe--){let He=!0;for(let Le=0;Le<Oe;Le++)if(ze(P,Pe+Le)!==ze(x,Le)){He=!1;break}if(He)return Pe}return-1}T.prototype.includes=function(x,$,le){return this.indexOf(x,$,le)!==-1},T.prototype.indexOf=function(x,$,le){return ke(this,x,$,le,!0)},T.prototype.lastIndexOf=function(x,$,le){return ke(this,x,$,le,!1)};function Ce(P,x,$,le){$=Number($)||0;const pe=P.length-$;le?(le=Number(le),le>pe&&(le=pe)):le=pe;const ge=x.length;le>ge/2&&(le=ge/2);let we;for(we=0;we<le;++we){const Oe=parseInt(x.substr(we*2,2),16);if(ht(Oe))return we;P[$+we]=Oe}return we}function he(P,x,$,le){return rt(je(x,P.length-$),P,$,le)}function Be(P,x,$,le){return rt(qe(x),P,$,le)}function Ie(P,x,$,le){return rt(lt(x),P,$,le)}function De(P,x,$,le){return rt(ct(x,P.length-$),P,$,le)}T.prototype.write=function(x,$,le,pe){if($===void 0)pe="utf8",le=this.length,$=0;else if(le===void 0&&typeof $=="string")pe=$,le=this.length,$=0;else if(isFinite($))$=$>>>0,isFinite(le)?(le=le>>>0,pe===void 0&&(pe="utf8")):(pe=le,le=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const ge=this.length-$;if((le===void 0||le>ge)&&(le=ge),x.length>0&&(le<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");pe||(pe="utf8");let we=!1;for(;;)switch(pe){case"hex":return Ce(this,x,$,le);case"utf8":case"utf-8":return he(this,x,$,le);case"ascii":case"latin1":case"binary":return Be(this,x,$,le);case"base64":return Ie(this,x,$,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,x,$,le);default:if(we)throw new TypeError("Unknown encoding: "+pe);pe=(""+pe).toLowerCase(),we=!0}},T.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function We(P,x,$){return x===0&&$===P.length?r.fromByteArray(P):r.fromByteArray(P.slice(x,$))}function Ve(P,x,$){$=Math.min(P.length,$);const le=[];let pe=x;for(;pe<$;){const ge=P[pe];let we=null,Oe=ge>239?4:ge>223?3:ge>191?2:1;if(pe+Oe<=$){let ze,Pe,He,Le;switch(Oe){case 1:ge<128&&(we=ge);break;case 2:ze=P[pe+1],(ze&192)===128&&(Le=(ge&31)<<6|ze&63,Le>127&&(we=Le));break;case 3:ze=P[pe+1],Pe=P[pe+2],(ze&192)===128&&(Pe&192)===128&&(Le=(ge&15)<<12|(ze&63)<<6|Pe&63,Le>2047&&(Le<55296||Le>57343)&&(we=Le));break;case 4:ze=P[pe+1],Pe=P[pe+2],He=P[pe+3],(ze&192)===128&&(Pe&192)===128&&(He&192)===128&&(Le=(ge&15)<<18|(ze&63)<<12|(Pe&63)<<6|He&63,Le>65535&&Le<1114112&&(we=Le))}}we===null?(we=65533,Oe=1):we>65535&&(we-=65536,le.push(we>>>10&1023|55296),we=56320|we&1023),le.push(we),pe+=Oe}return et(le)}const Xe=4096;function et(P){const x=P.length;if(x<=Xe)return String.fromCharCode.apply(String,P);let $="",le=0;for(;le<x;)$+=String.fromCharCode.apply(String,P.slice(le,le+=Xe));return $}function Re(P,x,$){let le="";$=Math.min(P.length,$);for(let pe=x;pe<$;++pe)le+=String.fromCharCode(P[pe]&127);return le}function Qe(P,x,$){let le="";$=Math.min(P.length,$);for(let pe=x;pe<$;++pe)le+=String.fromCharCode(P[pe]);return le}function nt(P,x,$){const le=P.length;(!x||x<0)&&(x=0),(!$||$<0||$>le)&&($=le);let pe="";for(let ge=x;ge<$;++ge)pe+=dt[P[ge]];return pe}function at(P,x,$){const le=P.slice(x,$);let pe="";for(let ge=0;ge<le.length-1;ge+=2)pe+=String.fromCharCode(le[ge]+le[ge+1]*256);return pe}T.prototype.slice=function(x,$){const le=this.length;x=~~x,$=$===void 0?le:~~$,x<0?(x+=le,x<0&&(x=0)):x>le&&(x=le),$<0?($+=le,$<0&&($=0)):$>le&&($=le),$<x&&($=x);const pe=this.subarray(x,$);return Object.setPrototypeOf(pe,T.prototype),pe};function Me(P,x,$){if(P%1!==0||P<0)throw new RangeError("offset is not uint");if(P+x>$)throw new RangeError("Trying to access beyond buffer length")}T.prototype.readUintLE=T.prototype.readUIntLE=function(x,$,le){x=x>>>0,$=$>>>0,le||Me(x,$,this.length);let pe=this[x],ge=1,we=0;for(;++we<$&&(ge*=256);)pe+=this[x+we]*ge;return pe},T.prototype.readUintBE=T.prototype.readUIntBE=function(x,$,le){x=x>>>0,$=$>>>0,le||Me(x,$,this.length);let pe=this[x+--$],ge=1;for(;$>0&&(ge*=256);)pe+=this[x+--$]*ge;return pe},T.prototype.readUint8=T.prototype.readUInt8=function(x,$){return x=x>>>0,$||Me(x,1,this.length),this[x]},T.prototype.readUint16LE=T.prototype.readUInt16LE=function(x,$){return x=x>>>0,$||Me(x,2,this.length),this[x]|this[x+1]<<8},T.prototype.readUint16BE=T.prototype.readUInt16BE=function(x,$){return x=x>>>0,$||Me(x,2,this.length),this[x]<<8|this[x+1]},T.prototype.readUint32LE=T.prototype.readUInt32LE=function(x,$){return x=x>>>0,$||Me(x,4,this.length),(this[x]|this[x+1]<<8|this[x+2]<<16)+this[x+3]*16777216},T.prototype.readUint32BE=T.prototype.readUInt32BE=function(x,$){return x=x>>>0,$||Me(x,4,this.length),this[x]*16777216+(this[x+1]<<16|this[x+2]<<8|this[x+3])},T.prototype.readBigUInt64LE=it(function(x){x=x>>>0,Ue(x,"offset");const $=this[x],le=this[x+7];($===void 0||le===void 0)&&Ge(x,this.length-8);const pe=$+this[++x]*2**8+this[++x]*2**16+this[++x]*2**24,ge=this[++x]+this[++x]*2**8+this[++x]*2**16+le*2**24;return BigInt(pe)+(BigInt(ge)<<BigInt(32))}),T.prototype.readBigUInt64BE=it(function(x){x=x>>>0,Ue(x,"offset");const $=this[x],le=this[x+7];($===void 0||le===void 0)&&Ge(x,this.length-8);const pe=$*2**24+this[++x]*2**16+this[++x]*2**8+this[++x],ge=this[++x]*2**24+this[++x]*2**16+this[++x]*2**8+le;return(BigInt(pe)<<BigInt(32))+BigInt(ge)}),T.prototype.readIntLE=function(x,$,le){x=x>>>0,$=$>>>0,le||Me(x,$,this.length);let pe=this[x],ge=1,we=0;for(;++we<$&&(ge*=256);)pe+=this[x+we]*ge;return ge*=128,pe>=ge&&(pe-=Math.pow(2,8*$)),pe},T.prototype.readIntBE=function(x,$,le){x=x>>>0,$=$>>>0,le||Me(x,$,this.length);let pe=$,ge=1,we=this[x+--pe];for(;pe>0&&(ge*=256);)we+=this[x+--pe]*ge;return ge*=128,we>=ge&&(we-=Math.pow(2,8*$)),we},T.prototype.readInt8=function(x,$){return x=x>>>0,$||Me(x,1,this.length),this[x]&128?(255-this[x]+1)*-1:this[x]},T.prototype.readInt16LE=function(x,$){x=x>>>0,$||Me(x,2,this.length);const le=this[x]|this[x+1]<<8;return le&32768?le|4294901760:le},T.prototype.readInt16BE=function(x,$){x=x>>>0,$||Me(x,2,this.length);const le=this[x+1]|this[x]<<8;return le&32768?le|4294901760:le},T.prototype.readInt32LE=function(x,$){return x=x>>>0,$||Me(x,4,this.length),this[x]|this[x+1]<<8|this[x+2]<<16|this[x+3]<<24},T.prototype.readInt32BE=function(x,$){return x=x>>>0,$||Me(x,4,this.length),this[x]<<24|this[x+1]<<16|this[x+2]<<8|this[x+3]},T.prototype.readBigInt64LE=it(function(x){x=x>>>0,Ue(x,"offset");const $=this[x],le=this[x+7];($===void 0||le===void 0)&&Ge(x,this.length-8);const pe=this[x+4]+this[x+5]*2**8+this[x+6]*2**16+(le<<24);return(BigInt(pe)<<BigInt(32))+BigInt($+this[++x]*2**8+this[++x]*2**16+this[++x]*2**24)}),T.prototype.readBigInt64BE=it(function(x){x=x>>>0,Ue(x,"offset");const $=this[x],le=this[x+7];($===void 0||le===void 0)&&Ge(x,this.length-8);const pe=($<<24)+this[++x]*2**16+this[++x]*2**8+this[++x];return(BigInt(pe)<<BigInt(32))+BigInt(this[++x]*2**24+this[++x]*2**16+this[++x]*2**8+le)}),T.prototype.readFloatLE=function(x,$){return x=x>>>0,$||Me(x,4,this.length),t.read(this,x,!0,23,4)},T.prototype.readFloatBE=function(x,$){return x=x>>>0,$||Me(x,4,this.length),t.read(this,x,!1,23,4)},T.prototype.readDoubleLE=function(x,$){return x=x>>>0,$||Me(x,8,this.length),t.read(this,x,!0,52,8)},T.prototype.readDoubleBE=function(x,$){return x=x>>>0,$||Me(x,8,this.length),t.read(this,x,!1,52,8)};function Ye(P,x,$,le,pe,ge){if(!T.isBuffer(P))throw new TypeError('"buffer" argument must be a Buffer instance');if(x>pe||x<ge)throw new RangeError('"value" argument is out of bounds');if($+le>P.length)throw new RangeError("Index out of range")}T.prototype.writeUintLE=T.prototype.writeUIntLE=function(x,$,le,pe){if(x=+x,$=$>>>0,le=le>>>0,!pe){const Oe=Math.pow(2,8*le)-1;Ye(this,x,$,le,Oe,0)}let ge=1,we=0;for(this[$]=x&255;++we<le&&(ge*=256);)this[$+we]=x/ge&255;return $+le},T.prototype.writeUintBE=T.prototype.writeUIntBE=function(x,$,le,pe){if(x=+x,$=$>>>0,le=le>>>0,!pe){const Oe=Math.pow(2,8*le)-1;Ye(this,x,$,le,Oe,0)}let ge=le-1,we=1;for(this[$+ge]=x&255;--ge>=0&&(we*=256);)this[$+ge]=x/we&255;return $+le},T.prototype.writeUint8=T.prototype.writeUInt8=function(x,$,le){return x=+x,$=$>>>0,le||Ye(this,x,$,1,255,0),this[$]=x&255,$+1},T.prototype.writeUint16LE=T.prototype.writeUInt16LE=function(x,$,le){return x=+x,$=$>>>0,le||Ye(this,x,$,2,65535,0),this[$]=x&255,this[$+1]=x>>>8,$+2},T.prototype.writeUint16BE=T.prototype.writeUInt16BE=function(x,$,le){return x=+x,$=$>>>0,le||Ye(this,x,$,2,65535,0),this[$]=x>>>8,this[$+1]=x&255,$+2},T.prototype.writeUint32LE=T.prototype.writeUInt32LE=function(x,$,le){return x=+x,$=$>>>0,le||Ye(this,x,$,4,4294967295,0),this[$+3]=x>>>24,this[$+2]=x>>>16,this[$+1]=x>>>8,this[$]=x&255,$+4},T.prototype.writeUint32BE=T.prototype.writeUInt32BE=function(x,$,le){return x=+x,$=$>>>0,le||Ye(this,x,$,4,4294967295,0),this[$]=x>>>24,this[$+1]=x>>>16,this[$+2]=x>>>8,this[$+3]=x&255,$+4};function ft(P,x,$,le,pe){Ze(x,le,pe,P,$,7);let ge=Number(x&BigInt(4294967295));P[$++]=ge,ge=ge>>8,P[$++]=ge,ge=ge>>8,P[$++]=ge,ge=ge>>8,P[$++]=ge;let we=Number(x>>BigInt(32)&BigInt(4294967295));return P[$++]=we,we=we>>8,P[$++]=we,we=we>>8,P[$++]=we,we=we>>8,P[$++]=we,$}function ot(P,x,$,le,pe){Ze(x,le,pe,P,$,7);let ge=Number(x&BigInt(4294967295));P[$+7]=ge,ge=ge>>8,P[$+6]=ge,ge=ge>>8,P[$+5]=ge,ge=ge>>8,P[$+4]=ge;let we=Number(x>>BigInt(32)&BigInt(4294967295));return P[$+3]=we,we=we>>8,P[$+2]=we,we=we>>8,P[$+1]=we,we=we>>8,P[$]=we,$+8}T.prototype.writeBigUInt64LE=it(function(x,$=0){return ft(this,x,$,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeBigUInt64BE=it(function(x,$=0){return ot(this,x,$,BigInt(0),BigInt("0xffffffffffffffff"))}),T.prototype.writeIntLE=function(x,$,le,pe){if(x=+x,$=$>>>0,!pe){const ze=Math.pow(2,8*le-1);Ye(this,x,$,le,ze-1,-ze)}let ge=0,we=1,Oe=0;for(this[$]=x&255;++ge<le&&(we*=256);)x<0&&Oe===0&&this[$+ge-1]!==0&&(Oe=1),this[$+ge]=(x/we>>0)-Oe&255;return $+le},T.prototype.writeIntBE=function(x,$,le,pe){if(x=+x,$=$>>>0,!pe){const ze=Math.pow(2,8*le-1);Ye(this,x,$,le,ze-1,-ze)}let ge=le-1,we=1,Oe=0;for(this[$+ge]=x&255;--ge>=0&&(we*=256);)x<0&&Oe===0&&this[$+ge+1]!==0&&(Oe=1),this[$+ge]=(x/we>>0)-Oe&255;return $+le},T.prototype.writeInt8=function(x,$,le){return x=+x,$=$>>>0,le||Ye(this,x,$,1,127,-128),x<0&&(x=255+x+1),this[$]=x&255,$+1},T.prototype.writeInt16LE=function(x,$,le){return x=+x,$=$>>>0,le||Ye(this,x,$,2,32767,-32768),this[$]=x&255,this[$+1]=x>>>8,$+2},T.prototype.writeInt16BE=function(x,$,le){return x=+x,$=$>>>0,le||Ye(this,x,$,2,32767,-32768),this[$]=x>>>8,this[$+1]=x&255,$+2},T.prototype.writeInt32LE=function(x,$,le){return x=+x,$=$>>>0,le||Ye(this,x,$,4,2147483647,-2147483648),this[$]=x&255,this[$+1]=x>>>8,this[$+2]=x>>>16,this[$+3]=x>>>24,$+4},T.prototype.writeInt32BE=function(x,$,le){return x=+x,$=$>>>0,le||Ye(this,x,$,4,2147483647,-2147483648),x<0&&(x=4294967295+x+1),this[$]=x>>>24,this[$+1]=x>>>16,this[$+2]=x>>>8,this[$+3]=x&255,$+4},T.prototype.writeBigInt64LE=it(function(x,$=0){return ft(this,x,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),T.prototype.writeBigInt64BE=it(function(x,$=0){return ot(this,x,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function st(P,x,$,le,pe,ge){if($+le>P.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function ut(P,x,$,le,pe){return x=+x,$=$>>>0,pe||st(P,x,$,4),t.write(P,x,$,le,23,4),$+4}T.prototype.writeFloatLE=function(x,$,le){return ut(this,x,$,!0,le)},T.prototype.writeFloatBE=function(x,$,le){return ut(this,x,$,!1,le)};function Q(P,x,$,le,pe){return x=+x,$=$>>>0,pe||st(P,x,$,8),t.write(P,x,$,le,52,8),$+8}T.prototype.writeDoubleLE=function(x,$,le){return Q(this,x,$,!0,le)},T.prototype.writeDoubleBE=function(x,$,le){return Q(this,x,$,!1,le)},T.prototype.copy=function(x,$,le,pe){if(!T.isBuffer(x))throw new TypeError("argument should be a Buffer");if(le||(le=0),!pe&&pe!==0&&(pe=this.length),$>=x.length&&($=x.length),$||($=0),pe>0&&pe<le&&(pe=le),pe===le||x.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(le<0||le>=this.length)throw new RangeError("Index out of range");if(pe<0)throw new RangeError("sourceEnd out of bounds");pe>this.length&&(pe=this.length),x.length-$<pe-le&&(pe=x.length-$+le);const ge=pe-le;return this===x&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin($,le,pe):Uint8Array.prototype.set.call(x,this.subarray(le,pe),$),ge},T.prototype.fill=function(x,$,le,pe){if(typeof x=="string"){if(typeof $=="string"?(pe=$,$=0,le=this.length):typeof le=="string"&&(pe=le,le=this.length),pe!==void 0&&typeof pe!="string")throw new TypeError("encoding must be a string");if(typeof pe=="string"&&!T.isEncoding(pe))throw new TypeError("Unknown encoding: "+pe);if(x.length===1){const we=x.charCodeAt(0);(pe==="utf8"&&we<128||pe==="latin1")&&(x=we)}}else typeof x=="number"?x=x&255:typeof x=="boolean"&&(x=Number(x));if($<0||this.length<$||this.length<le)throw new RangeError("Out of range index");if(le<=$)return this;$=$>>>0,le=le===void 0?this.length:le>>>0,x||(x=0);let ge;if(typeof x=="number")for(ge=$;ge<le;++ge)this[ge]=x;else{const we=T.isBuffer(x)?x:T.from(x,pe),Oe=we.length;if(Oe===0)throw new TypeError('The value "'+x+'" is invalid for argument "value"');for(ge=0;ge<le-$;++ge)this[ge+$]=we[ge%Oe]}return this};const j={};function xe(P,x,$){j[P]=class extends ${constructor(){super(),Object.defineProperty(this,"message",{value:x.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${P}]`,this.stack,delete this.name}get code(){return P}set code(pe){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:pe,writable:!0})}toString(){return`${this.name} [${P}]: ${this.message}`}}}xe("ERR_BUFFER_OUT_OF_BOUNDS",function(P){return P?`${P} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),xe("ERR_INVALID_ARG_TYPE",function(P,x){return`The "${P}" argument must be of type number. Received type ${typeof x}`},TypeError),xe("ERR_OUT_OF_RANGE",function(P,x,$){let le=`The value of "${P}" is out of range.`,pe=$;return Number.isInteger($)&&Math.abs($)>2**32?pe=me(String($)):typeof $=="bigint"&&(pe=String($),($>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))&&(pe=me(pe)),pe+="n"),le+=` It must be ${x}. Received ${pe}`,le},RangeError);function me(P){let x="",$=P.length;const le=P[0]==="-"?1:0;for(;$>=le+4;$-=3)x=`_${P.slice($-3,$)}${x}`;return`${P.slice(0,$)}${x}`}function Fe(P,x,$){Ue(x,"offset"),(P[x]===void 0||P[x+$]===void 0)&&Ge(x,P.length-($+1))}function Ze(P,x,$,le,pe,ge){if(P>$||P<x){const we=typeof x=="bigint"?"n":"";let Oe;throw ge>3?x===0||x===BigInt(0)?Oe=`>= 0${we} and < 2${we} ** ${(ge+1)*8}${we}`:Oe=`>= -(2${we} ** ${(ge+1)*8-1}${we}) and < 2 ** ${(ge+1)*8-1}${we}`:Oe=`>= ${x}${we} and <= ${$}${we}`,new j.ERR_OUT_OF_RANGE("value",Oe,P)}Fe(le,pe,ge)}function Ue(P,x){if(typeof P!="number")throw new j.ERR_INVALID_ARG_TYPE(x,"number",P)}function Ge(P,x,$){throw Math.floor(P)!==P?(Ue(P,$),new j.ERR_OUT_OF_RANGE($||"offset","an integer",P)):x<0?new j.ERR_BUFFER_OUT_OF_BOUNDS:new j.ERR_OUT_OF_RANGE($||"offset",`>= ${$?1:0} and <= ${x}`,P)}const Je=/[^+/0-9A-Za-z-_]/g;function tt(P){if(P=P.split("=")[0],P=P.trim().replace(Je,""),P.length<2)return"";for(;P.length%4!==0;)P=P+"=";return P}function je(P,x){x=x||1/0;let $;const le=P.length;let pe=null;const ge=[];for(let we=0;we<le;++we){if($=P.charCodeAt(we),$>55295&&$<57344){if(!pe){if($>56319){(x-=3)>-1&&ge.push(239,191,189);continue}else if(we+1===le){(x-=3)>-1&&ge.push(239,191,189);continue}pe=$;continue}if($<56320){(x-=3)>-1&&ge.push(239,191,189),pe=$;continue}$=(pe-55296<<10|$-56320)+65536}else pe&&(x-=3)>-1&&ge.push(239,191,189);if(pe=null,$<128){if((x-=1)<0)break;ge.push($)}else if($<2048){if((x-=2)<0)break;ge.push($>>6|192,$&63|128)}else if($<65536){if((x-=3)<0)break;ge.push($>>12|224,$>>6&63|128,$&63|128)}else if($<1114112){if((x-=4)<0)break;ge.push($>>18|240,$>>12&63|128,$>>6&63|128,$&63|128)}else throw new Error("Invalid code point")}return ge}function qe(P){const x=[];for(let $=0;$<P.length;++$)x.push(P.charCodeAt($)&255);return x}function ct(P,x){let $,le,pe;const ge=[];for(let we=0;we<P.length&&!((x-=2)<0);++we)$=P.charCodeAt(we),le=$>>8,pe=$%256,ge.push(pe),ge.push(le);return ge}function lt(P){return r.toByteArray(tt(P))}function rt(P,x,$,le){let pe;for(pe=0;pe<le&&!(pe+$>=x.length||pe>=P.length);++pe)x[pe+$]=P[pe];return pe}function Ke(P,x){return P instanceof x||P!=null&&P.constructor!=null&&P.constructor.name!=null&&P.constructor.name===x.name}function ht(P){return P!==P}const dt=function(){const P="0123456789abcdef",x=new Array(256);for(let $=0;$<16;++$){const le=$*16;for(let pe=0;pe<16;++pe)x[le+pe]=P[$]+P[pe]}return x}();function it(P){return typeof BigInt=="undefined"?_t:P}function _t(){throw new Error("BigInt not supported")}})(buffer$1),globalThis.Buffer=buffer$1.Buffer;var utf8$5={},utils$r={},support$5={},nodestream,blob;if(support$5.base64=!0,support$5.array=!0,support$5.string=!0,support$5.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",support$5.nodebuffer=typeof Buffer!="undefined",support$5.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")blob=support$5.blob=!1;else{var buffer=new ArrayBuffer(0);try{blob=support$5.blob=new Blob([buffer],{type:"application/zip"}).size===0}catch(e){try{var Builder=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,builder=new Builder;builder.append(buffer),blob=support$5.blob=builder.getBlob("application/zip").size===0}catch(r){blob=support$5.blob=!1}}}try{nodestream=support$5.nodestream=!!require("readable-stream").Readable}catch(e){nodestream=support$5.nodestream=!1}var base64$1={},utils$q=utils$r,support$4=support$5,_keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";base64$1.encode=function(e){for(var r=[],t,v,I,b,N,T,ae,X=0,G=e.length,ve=G,fe=utils$q.getTypeOf(e)!=="string";X<e.length;)ve=G-X,fe?(t=e[X++],v=X<G?e[X++]:0,I=X<G?e[X++]:0):(t=e.charCodeAt(X++),v=X<G?e.charCodeAt(X++):0,I=X<G?e.charCodeAt(X++):0),b=t>>2,N=(t&3)<<4|v>>4,T=ve>1?(v&15)<<2|I>>6:64,ae=ve>2?I&63:64,r.push(_keyStr.charAt(b)+_keyStr.charAt(N)+_keyStr.charAt(T)+_keyStr.charAt(ae));return r.join("")},base64$1.decode=function(e){var r,t,v,I,b,N,T,ae=0,X=0,G="data:";if(e.substr(0,G.length)===G)throw new Error("Invalid base64 input, it looks like a data url.");e=e.replace(/[^A-Za-z0-9+/=]/g,"");var ve=e.length*3/4;if(e.charAt(e.length-1)===_keyStr.charAt(64)&&ve--,e.charAt(e.length-2)===_keyStr.charAt(64)&&ve--,ve%1!==0)throw new Error("Invalid base64 input, bad content length.");var fe;for(support$4.uint8array?fe=new Uint8Array(ve|0):fe=new Array(ve|0);ae<e.length;)I=_keyStr.indexOf(e.charAt(ae++)),b=_keyStr.indexOf(e.charAt(ae++)),N=_keyStr.indexOf(e.charAt(ae++)),T=_keyStr.indexOf(e.charAt(ae++)),r=I<<2|b>>4,t=(b&15)<<4|N>>2,v=(N&3)<<6|T,fe[X++]=r,N!==64&&(fe[X++]=t),T!==64&&(fe[X++]=v);return fe};var nodejsUtils$2={isNode:typeof Buffer!="undefined",newBufferFrom:function(e,r){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,r);if(typeof e=="number")throw new Error('The "data" argument must not be a number');return new Buffer(e,r)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var r=new Buffer(e);return r.fill(0),r},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&typeof e.on=="function"&&typeof e.pause=="function"&&typeof e.resume=="function"}},Mutation=commonjsGlobal.MutationObserver||commonjsGlobal.WebKitMutationObserver,scheduleDrain;if(Mutation){var called=0,observer=new Mutation(nextTick),element=commonjsGlobal.document.createTextNode("");observer.observe(element,{characterData:!0}),scheduleDrain=function(){element.data=called=++called%2}}else if(!commonjsGlobal.setImmediate&&typeof commonjsGlobal.MessageChannel!="undefined"){var channel=new commonjsGlobal.MessageChannel;channel.port1.onmessage=nextTick,scheduleDrain=function(){channel.port2.postMessage(0)}}else"document"in commonjsGlobal&&"onreadystatechange"in commonjsGlobal.document.createElement("script")?scheduleDrain=function(){var e=commonjsGlobal.document.createElement("script");e.onreadystatechange=function(){nextTick(),e.onreadystatechange=null,e.parentNode.removeChild(e),e=null},commonjsGlobal.document.documentElement.appendChild(e)}:scheduleDrain=function(){setTimeout(nextTick,0)};var draining,queue=[];function nextTick(){draining=!0;for(var e,r,t=queue.length;t;){for(r=queue,queue=[],e=-1;++e<t;)r[e]();t=queue.length}draining=!1}var lib$2=immediate$1;function immediate$1(e){queue.push(e)===1&&!draining&&scheduleDrain()}var immediate=lib$2;function INTERNAL(){}var handlers={},REJECTED=["REJECTED"],FULFILLED=["FULFILLED"],PENDING=["PENDING"],lib$1=Promise$1;function Promise$1(e){if(typeof e!="function")throw new TypeError("resolver must be a function");this.state=PENDING,this.queue=[],this.outcome=void 0,e!==INTERNAL&&safelyResolveThenable(this,e)}Promise$1.prototype.finally=function(e){if(typeof e!="function")return this;var r=this.constructor;return this.then(t,v);function t(I){function b(){return I}return r.resolve(e()).then(b)}function v(I){function b(){throw I}return r.resolve(e()).then(b)}},Promise$1.prototype.catch=function(e){return this.then(null,e)},Promise$1.prototype.then=function(e,r){if(typeof e!="function"&&this.state===FULFILLED||typeof r!="function"&&this.state===REJECTED)return this;var t=new this.constructor(INTERNAL);if(this.state!==PENDING){var v=this.state===FULFILLED?e:r;unwrap(t,v,this.outcome)}else this.queue.push(new QueueItem(t,e,r));return t};function QueueItem(e,r,t){this.promise=e,typeof r=="function"&&(this.onFulfilled=r,this.callFulfilled=this.otherCallFulfilled),typeof t=="function"&&(this.onRejected=t,this.callRejected=this.otherCallRejected)}QueueItem.prototype.callFulfilled=function(e){handlers.resolve(this.promise,e)},QueueItem.prototype.otherCallFulfilled=function(e){unwrap(this.promise,this.onFulfilled,e)},QueueItem.prototype.callRejected=function(e){handlers.reject(this.promise,e)},QueueItem.prototype.otherCallRejected=function(e){unwrap(this.promise,this.onRejected,e)};function unwrap(e,r,t){immediate(function(){var v;try{v=r(t)}catch(I){return handlers.reject(e,I)}v===e?handlers.reject(e,new TypeError("Cannot resolve promise with itself")):handlers.resolve(e,v)})}handlers.resolve=function(e,r){var t=tryCatch(getThen,r);if(t.status==="error")return handlers.reject(e,t.value);var v=t.value;if(v)safelyResolveThenable(e,v);else{e.state=FULFILLED,e.outcome=r;for(var I=-1,b=e.queue.length;++I<b;)e.queue[I].callFulfilled(r)}return e},handlers.reject=function(e,r){e.state=REJECTED,e.outcome=r;for(var t=-1,v=e.queue.length;++t<v;)e.queue[t].callRejected(r);return e};function getThen(e){var r=e&&e.then;if(e&&(typeof e=="object"||typeof e=="function")&&typeof r=="function")return function(){r.apply(e,arguments)}}function safelyResolveThenable(e,r){var t=!1;function v(T){t||(t=!0,handlers.reject(e,T))}function I(T){t||(t=!0,handlers.resolve(e,T))}function b(){r(I,v)}var N=tryCatch(b);N.status==="error"&&v(N.value)}function tryCatch(e,r){var t={};try{t.value=e(r),t.status="success"}catch(v){t.status="error",t.value=v}return t}Promise$1.resolve=resolve;function resolve(e){return e instanceof this?e:handlers.resolve(new this(INTERNAL),e)}Promise$1.reject=reject;function reject(e){var r=new this(INTERNAL);return handlers.reject(r,e)}Promise$1.all=all;function all(e){var r=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var t=e.length,v=!1;if(!t)return this.resolve([]);for(var I=new Array(t),b=0,N=-1,T=new this(INTERNAL);++N<t;)ae(e[N],N);return T;function ae(X,G){r.resolve(X).then(ve,function(fe){v||(v=!0,handlers.reject(T,fe))});function ve(fe){I[G]=fe,++b===t&&!v&&(v=!0,handlers.resolve(T,I))}}}Promise$1.race=race;function race(e){var r=this;if(Object.prototype.toString.call(e)!=="[object Array]")return this.reject(new TypeError("must be an array"));var t=e.length,v=!1;if(!t)return this.resolve([]);for(var I=-1,b=new this(INTERNAL);++I<t;)N(e[I]);return b;function N(T){r.resolve(T).then(function(ae){v||(v=!0,handlers.resolve(b,ae))},function(ae){v||(v=!0,handlers.reject(b,ae))})}}var ES6Promise=null;typeof Promise!="undefined"?ES6Promise=Promise:ES6Promise=lib$1;var external$3={Promise:ES6Promise};(function(e,r){if(e.setImmediate)return;var t=1,v={},I=!1,b=e.document,N;function T(Te){typeof Te!="function"&&(Te=new Function(""+Te));for(var Ae=new Array(arguments.length-1),Se=0;Se<Ae.length;Se++)Ae[Se]=arguments[Se+1];var $e={callback:Te,args:Ae};return v[t]=$e,N(t),t++}function ae(Te){delete v[Te]}function X(Te){var Ae=Te.callback,Se=Te.args;switch(Se.length){case 0:Ae();break;case 1:Ae(Se[0]);break;case 2:Ae(Se[0],Se[1]);break;case 3:Ae(Se[0],Se[1],Se[2]);break;default:Ae.apply(r,Se);break}}function G(Te){if(I)setTimeout(G,0,Te);else{var Ae=v[Te];if(Ae){I=!0;try{X(Ae)}finally{ae(Te),I=!1}}}}function ve(){N=function(Te){setTimeout(function(){G(Te)})}}function fe(){if(e.postMessage&&!e.importScripts){var Te=!0,Ae=e.onmessage;return e.onmessage=function(){Te=!1},e.postMessage("","*"),e.onmessage=Ae,Te}}function ce(){var Te="setImmediate$"+Math.random()+"$",Ae=function(Se){Se.source===e&&typeof Se.data=="string"&&Se.data.indexOf(Te)===0&&G(+Se.data.slice(Te.length))};e.addEventListener?e.addEventListener("message",Ae,!1):e.attachEvent("onmessage",Ae),N=function(Se){e.postMessage(Te+Se,"*")}}function _e(){var Te=new MessageChannel;Te.port1.onmessage=function(Ae){var Se=Ae.data;G(Se)},N=function(Ae){Te.port2.postMessage(Ae)}}function Ee(){var Te=b.documentElement;N=function(Ae){var Se=b.createElement("script");Se.onreadystatechange=function(){G(Ae),Se.onreadystatechange=null,Te.removeChild(Se),Se=null},Te.appendChild(Se)}}function ye(){N=function(Te){setTimeout(G,0,Te)}}var be=Object.getPrototypeOf&&Object.getPrototypeOf(e);be=be&&be.setTimeout?be:e,{}.toString.call(e.undefined)==="[object undefined]"?ve():fe()?ce():e.MessageChannel?_e():b&&"onreadystatechange"in b.createElement("script")?Ee():ye(),be.setImmediate=T,be.clearImmediate=ae})(typeof self=="undefined"?commonjsGlobal:self),function(e){var r=support$5,t=base64$1,v=nodejsUtils$2,I=external$3;function b(fe){var ce=null;return r.uint8array?ce=new Uint8Array(fe.length):ce=new Array(fe.length),T(fe,ce)}e.newBlob=function(fe,ce){e.checkSupport("blob");try{return new Blob([fe],{type:ce})}catch(ye){try{var _e=self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder,Ee=new _e;return Ee.append(fe),Ee.getBlob(ce)}catch(be){throw new Error("Bug : can't construct the Blob.")}}};function N(fe){return fe}function T(fe,ce){for(var _e=0;_e<fe.length;++_e)ce[_e]=fe.charCodeAt(_e)&255;return ce}var ae={stringifyByChunk:function(fe,ce,_e){var Ee=[],ye=0,be=fe.length;if(be<=_e)return String.fromCharCode.apply(null,fe);for(;ye<be;)ce==="array"||ce==="nodebuffer"?Ee.push(String.fromCharCode.apply(null,fe.slice(ye,Math.min(ye+_e,be)))):Ee.push(String.fromCharCode.apply(null,fe.subarray(ye,Math.min(ye+_e,be)))),ye+=_e;return Ee.join("")},stringifyByChar:function(fe){for(var ce="",_e=0;_e<fe.length;_e++)ce+=String.fromCharCode(fe[_e]);return ce},applyCanBeUsed:{uint8array:function(){try{return r.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(fe){return!1}}(),nodebuffer:function(){try{return r.nodebuffer&&String.fromCharCode.apply(null,v.allocBuffer(1)).length===1}catch(fe){return!1}}()}};function X(fe){var ce=65536,_e=e.getTypeOf(fe),Ee=!0;if(_e==="uint8array"?Ee=ae.applyCanBeUsed.uint8array:_e==="nodebuffer"&&(Ee=ae.applyCanBeUsed.nodebuffer),Ee)for(;ce>1;)try{return ae.stringifyByChunk(fe,_e,ce)}catch(ye){ce=Math.floor(ce/2)}return ae.stringifyByChar(fe)}e.applyFromCharCode=X;function G(fe,ce){for(var _e=0;_e<fe.length;_e++)ce[_e]=fe[_e];return ce}var ve={};ve.string={string:N,array:function(fe){return T(fe,new Array(fe.length))},arraybuffer:function(fe){return ve.string.uint8array(fe).buffer},uint8array:function(fe){return T(fe,new Uint8Array(fe.length))},nodebuffer:function(fe){return T(fe,v.allocBuffer(fe.length))}},ve.array={string:X,array:N,arraybuffer:function(fe){return new Uint8Array(fe).buffer},uint8array:function(fe){return new Uint8Array(fe)},nodebuffer:function(fe){return v.newBufferFrom(fe)}},ve.arraybuffer={string:function(fe){return X(new Uint8Array(fe))},array:function(fe){return G(new Uint8Array(fe),new Array(fe.byteLength))},arraybuffer:N,uint8array:function(fe){return new Uint8Array(fe)},nodebuffer:function(fe){return v.newBufferFrom(new Uint8Array(fe))}},ve.uint8array={string:X,array:function(fe){return G(fe,new Array(fe.length))},arraybuffer:function(fe){return fe.buffer},uint8array:N,nodebuffer:function(fe){return v.newBufferFrom(fe)}},ve.nodebuffer={string:X,array:function(fe){return G(fe,new Array(fe.length))},arraybuffer:function(fe){return ve.nodebuffer.uint8array(fe).buffer},uint8array:function(fe){return G(fe,new Uint8Array(fe.length))},nodebuffer:N},e.transformTo=function(fe,ce){if(ce||(ce=""),!fe)return ce;e.checkSupport(fe);var _e=e.getTypeOf(ce),Ee=ve[_e][fe](ce);return Ee},e.resolve=function(fe){for(var ce=fe.split("/"),_e=[],Ee=0;Ee<ce.length;Ee++){var ye=ce[Ee];ye==="."||ye===""&&Ee!==0&&Ee!==ce.length-1||(ye===".."?_e.pop():_e.push(ye))}return _e.join("/")},e.getTypeOf=function(fe){if(typeof fe=="string")return"string";if(Object.prototype.toString.call(fe)==="[object Array]")return"array";if(r.nodebuffer&&v.isBuffer(fe))return"nodebuffer";if(r.uint8array&&fe instanceof Uint8Array)return"uint8array";if(r.arraybuffer&&fe instanceof ArrayBuffer)return"arraybuffer"},e.checkSupport=function(fe){var ce=r[fe.toLowerCase()];if(!ce)throw new Error(fe+" is not supported by this platform")},e.MAX_VALUE_16BITS=65535,e.MAX_VALUE_32BITS=-1,e.pretty=function(fe){var ce="",_e,Ee;for(Ee=0;Ee<(fe||"").length;Ee++)_e=fe.charCodeAt(Ee),ce+="\\x"+(_e<16?"0":"")+_e.toString(16).toUpperCase();return ce},e.delay=function(fe,ce,_e){setImmediate(function(){fe.apply(_e||null,ce||[])})},e.inherits=function(fe,ce){var _e=function(){};_e.prototype=ce.prototype,fe.prototype=new _e},e.extend=function(){var fe={},ce,_e;for(ce=0;ce<arguments.length;ce++)for(_e in arguments[ce])Object.prototype.hasOwnProperty.call(arguments[ce],_e)&&typeof fe[_e]=="undefined"&&(fe[_e]=arguments[ce][_e]);return fe},e.prepareContent=function(fe,ce,_e,Ee,ye){var be=I.Promise.resolve(ce).then(function(Te){var Ae=r.blob&&(Te instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(Te))!==-1);return Ae&&typeof FileReader!="undefined"?new I.Promise(function(Se,$e){var ke=new FileReader;ke.onload=function(Ne){Se(Ne.target.result)},ke.onerror=function(Ne){$e(Ne.target.error)},ke.readAsArrayBuffer(Te)}):Te});return be.then(function(Te){var Ae=e.getTypeOf(Te);return Ae?(Ae==="arraybuffer"?Te=e.transformTo("uint8array",Te):Ae==="string"&&(ye?Te=t.decode(Te):_e&&Ee!==!0&&(Te=b(Te))),Te):I.Promise.reject(new Error("Can't read the data of '"+fe+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}}(utils$r);function GenericWorker$b(e){this.name=e||"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}GenericWorker$b.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return this.isFinished?!1:(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,r){return this._listeners[e].push(r),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,r){if(this._listeners[e])for(var t=0;t<this._listeners[e].length;t++)this._listeners[e][t].call(this,r)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var r=this;return e.on("data",function(t){r.processChunk(t)}),e.on("end",function(){r.end()}),e.on("error",function(t){r.error(t)}),this},pause:function(){return this.isPaused||this.isFinished?!1:(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var e=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,r){return this.extraStreamInfo[e]=r,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)!Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)||(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}};var GenericWorker_1=GenericWorker$b;(function(e){for(var r=utils$r,t=support$5,v=nodejsUtils$2,I=GenericWorker_1,b=new Array(256),N=0;N<256;N++)b[N]=N>=252?6:N>=248?5:N>=240?4:N>=224?3:N>=192?2:1;b[254]=b[254]=1;var T=function(fe){var ce,_e,Ee,ye,be,Te=fe.length,Ae=0;for(ye=0;ye<Te;ye++)_e=fe.charCodeAt(ye),(_e&64512)===55296&&ye+1<Te&&(Ee=fe.charCodeAt(ye+1),(Ee&64512)===56320&&(_e=65536+(_e-55296<<10)+(Ee-56320),ye++)),Ae+=_e<128?1:_e<2048?2:_e<65536?3:4;for(t.uint8array?ce=new Uint8Array(Ae):ce=new Array(Ae),be=0,ye=0;be<Ae;ye++)_e=fe.charCodeAt(ye),(_e&64512)===55296&&ye+1<Te&&(Ee=fe.charCodeAt(ye+1),(Ee&64512)===56320&&(_e=65536+(_e-55296<<10)+(Ee-56320),ye++)),_e<128?ce[be++]=_e:_e<2048?(ce[be++]=192|_e>>>6,ce[be++]=128|_e&63):_e<65536?(ce[be++]=224|_e>>>12,ce[be++]=128|_e>>>6&63,ce[be++]=128|_e&63):(ce[be++]=240|_e>>>18,ce[be++]=128|_e>>>12&63,ce[be++]=128|_e>>>6&63,ce[be++]=128|_e&63);return ce},ae=function(fe,ce){var _e;for(ce=ce||fe.length,ce>fe.length&&(ce=fe.length),_e=ce-1;_e>=0&&(fe[_e]&192)===128;)_e--;return _e<0||_e===0?ce:_e+b[fe[_e]]>ce?_e:ce},X=function(fe){var ce,_e,Ee,ye,be=fe.length,Te=new Array(be*2);for(_e=0,ce=0;ce<be;){if(Ee=fe[ce++],Ee<128){Te[_e++]=Ee;continue}if(ye=b[Ee],ye>4){Te[_e++]=65533,ce+=ye-1;continue}for(Ee&=ye===2?31:ye===3?15:7;ye>1&&ce<be;)Ee=Ee<<6|fe[ce++]&63,ye--;if(ye>1){Te[_e++]=65533;continue}Ee<65536?Te[_e++]=Ee:(Ee-=65536,Te[_e++]=55296|Ee>>10&1023,Te[_e++]=56320|Ee&1023)}return Te.length!==_e&&(Te.subarray?Te=Te.subarray(0,_e):Te.length=_e),r.applyFromCharCode(Te)};e.utf8encode=function(ce){return t.nodebuffer?v.newBufferFrom(ce,"utf-8"):T(ce)},e.utf8decode=function(ce){return t.nodebuffer?r.transformTo("nodebuffer",ce).toString("utf-8"):(ce=r.transformTo(t.uint8array?"uint8array":"array",ce),X(ce))};function G(){I.call(this,"utf-8 decode"),this.leftOver=null}r.inherits(G,I),G.prototype.processChunk=function(fe){var ce=r.transformTo(t.uint8array?"uint8array":"array",fe.data);if(this.leftOver&&this.leftOver.length){if(t.uint8array){var _e=ce;ce=new Uint8Array(_e.length+this.leftOver.length),ce.set(this.leftOver,0),ce.set(_e,this.leftOver.length)}else ce=this.leftOver.concat(ce);this.leftOver=null}var Ee=ae(ce),ye=ce;Ee!==ce.length&&(t.uint8array?(ye=ce.subarray(0,Ee),this.leftOver=ce.subarray(Ee,ce.length)):(ye=ce.slice(0,Ee),this.leftOver=ce.slice(Ee,ce.length))),this.push({data:e.utf8decode(ye),meta:fe.meta})},G.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:e.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},e.Utf8DecodeWorker=G;function ve(){I.call(this,"utf-8 encode")}r.inherits(ve,I),ve.prototype.processChunk=function(fe){this.push({data:e.utf8encode(fe.data),meta:fe.meta})},e.Utf8EncodeWorker=ve})(utf8$5);var GenericWorker$a=GenericWorker_1,utils$p=utils$r;function ConvertWorker$1(e){GenericWorker$a.call(this,"ConvertWorker to "+e),this.destType=e}utils$p.inherits(ConvertWorker$1,GenericWorker$a),ConvertWorker$1.prototype.processChunk=function(e){this.push({data:utils$p.transformTo(this.destType,e.data),meta:e.meta})};var ConvertWorker_1=ConvertWorker$1,utils$o=utils$r,ConvertWorker=ConvertWorker_1,GenericWorker$9=GenericWorker_1,base64=base64$1,support$3=support$5,external$2=external$3,NodejsStreamOutputAdapter=null;if(support$3.nodestream)try{NodejsStreamOutputAdapter=require("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function transformZipOutput(e,r,t){switch(e){case"blob":return utils$o.newBlob(utils$o.transformTo("arraybuffer",r),t);case"base64":return base64.encode(r);default:return utils$o.transformTo(e,r)}}function concat(e,r){var t,v=0,I=null,b=0;for(t=0;t<r.length;t++)b+=r[t].length;switch(e){case"string":return r.join("");case"array":return Array.prototype.concat.apply([],r);case"uint8array":for(I=new Uint8Array(b),t=0;t<r.length;t++)I.set(r[t],v),v+=r[t].length;return I;case"nodebuffer":return Buffer.concat(r);default:throw new Error("concat : unsupported type '"+e+"'")}}function accumulate(e,r){return new external$2.Promise(function(t,v){var I=[],b=e._internalType,N=e._outputType,T=e._mimeType;e.on("data",function(ae,X){I.push(ae),r&&r(X)}).on("error",function(ae){I=[]