/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
varg=t(9),I=g.Buffer;functione(A,M){for(vartinA)M[t]=A[t]}functioni(A,M,t){returnI(A,M,t)}I.from&&I.alloc&&I.allocUnsafe&&I.allocUnsafeSlow?A.exports=g:(e(g,M),M.Buffer=i),i.prototype=Object.create(I.prototype),e(I,i),i.from=function(A,M,t){if("number"==typeofA)thrownewTypeError("Argument must not be a number");returnI(A,M,t)},i.alloc=function(A,M,t){if("number"!=typeofA)thrownewTypeError("Argument must be a number");varg=I(A);returnvoid0!==M?"string"==typeoft?g.fill(M,t):g.fill(M):g.fill(0),g},i.allocUnsafe=function(A){if("number"!=typeofA)thrownewTypeError("Argument must be a number");returnI(A)},i.allocUnsafeSlow=function(A){if("number"!=typeofA)thrownewTypeError("Argument must be a number");returng.SlowBuffer(A)}},function(A,M,t){"use strict";M.a={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"}},function(A,M,t){"use strict";varg,I="object"==typeofReflect?Reflect:null,e=I&&"function"==typeofI.apply?I.apply:function(A,M,t){returnFunction.prototype.apply.call(A,M,t)};g=I&&"function"==typeofI.ownKeys?I.ownKeys:Object.getOwnPropertySymbols?function(A){returnObject.getOwnPropertyNames(A).concat(Object.getOwnPropertySymbols(A))}:function(A){returnObject.getOwnPropertyNames(A)};vari=Number.isNaN||function(A){returnA!=A};functionT(){T.init.call(this)}A.exports=T,A.exports.once=function(A,M){returnnewPromise((function(t,g){functionI(){void0!==e&&A.removeListener("error",e),t([].slice.call(arguments))}vare;"error"!==M&&(e=function(t){A.removeListener(M,I),g(t)},A.once("error",e)),A.once(M,I)}))},T.EventEmitter=T,T.prototype._events=void0,T.prototype._eventsCount=0,T.prototype._maxListeners=void0;varE=10;functionN(A){if("function"!=typeofA)thrownewTypeError('The "listener" argument must be of type Function. Received type '+typeofA)}functionn(A){returnvoid0===A._maxListeners?T.defaultMaxListeners:A._maxListeners}functionD(A,M,t,g){varI,e,i,T;if(N(t),void0===(e=A._events)?(e=A._events=Object.create(null),A._eventsCount=0):(void0!==e.newListener&&(A.emit("newListener",M,t.listener?t.listener:t),e=A._events),i=e[M]),void0===i)i=e[M]=t,++A._eventsCount;elseif("function"==typeofi?i=e[M]=g?[t,i]:[i,t]:g?i.unshift(t):i.push(t),(I=n(A))>0&&i.length>I&&!i.warned){i.warned=!0;varE=newError("Possible EventEmitter memory leak detected. "+i.length+" "+String(M)+" listeners added. Use emitter.setMaxListeners() to increase limit");E.name="MaxListenersExceededWarning",E.emitter=A,E.type=M,E.count=i.length,T=E,console&&console.warn&&console.warn(T)}returnA}functionC(){if(!this.fired)returnthis.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}functionr(A,M,t){varg={fired:!1,wrapFn:void0,target:A,type:M,listener:t},I=C.bind(g);returnI.listener=t,g.wrapFn=I,I}functionc(A,M,t){varg=A._events;if(void0===g)return[];varI=g[M];returnvoid0===I?[]:"function"==typeofI?t?[I.listener||I]:[I]:t?function(A){for(varM=newArray(A.length),t=0;t<M.length;++t)M[t]=A[t].listener||A[t];returnM}(I):B(I,I.length)}functiono(A){varM=this._events;if(void0!==M){vart=M[A];if("function"==typeoft)return1;if(void0!==t)returnt.length}return0}functionB(A,M){for(vart=newArray(M),g=0;g<M;++g)t[g]=A[g];returnt}Object.defineProperty(T,"defaultMaxListeners",{enumerable:!0,get:function(){returnE},set:function(A){if("number"!=typeofA||A<0||i(A))thrownewRangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+A+".");E=A}}),T.init=function(){void0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void0},T.prototype.setMaxListeners=function(A){if("number"!=typeofA||A<0||i(A))thrownewRangeError('The value of "n" is out of range. It must be a non-negative number. Received '+A+".");returnthis._maxListeners=A,this},T.prototype.getMaxListeners=function(){returnn(this
/*!
*Thebuffermodulefromnode.js,forthebrowser.
*
*@authorFerossAboukhadijeh<http://feross.org>
*@licenseMIT
*/
varg=t(111),I=t(112),e=t(60);functioni(){returnE.TYPED_ARRAY_SUPPORT?2147483647:1073741823}functionT(A,M){if(i()<M)thrownewRangeError("Invalid typed array length");returnE.TYPED_ARRAY_SUPPORT?(A=newUint8Array(M)).__proto__=E.prototype:(null===A&&(A=newE(M)),A.length=M),A}functionE(A,M,t){if(!(E.TYPED_ARRAY_SUPPORT||thisinstanceofE))returnnewE(A,M,t);if("number"==typeofA){if("string"==typeofM)thrownewError("If encoding is specified then the first argument must be a string");returnD(this,A)}returnN(this,A,M,t)}functionN(A,M,t,g){if("number"==typeofM)thrownewTypeError('"value" argument must not be a number');return"undefined"!=typeofArrayBuffer&&MinstanceofArrayBuffer?function(A,M,t,g){if(M.byteLength,t<0||M.byteLength<t)thrownewRangeError("'offset' is out of bounds");if(M.byteLength<t+(g||0))thrownewRangeError("'length' is out of bounds");M=void0===t&&void0===g?newUint8Array(M):void0===g?newUint8Array(M,t):newUint8Array(M,t,g);E.TYPED_ARRAY_SUPPORT?(A=M).__proto__=E.prototype:A=C(A,M);returnA}(A,M,t,g):"string"==typeofM?function(A,M,t){"string"==typeoft&&""!==t||(t="utf8");if(!E.isEncoding(t))thrownewTypeError('"encoding" must be a valid string encoding');varg=0|c(M,t),I=(A=T(A,g)).write(M,t);I!==g&&(A=A.slice(0,I));returnA}(A,M,t):function(A,M){if(E.isBuffer(M)){vart=0|r(M.length);return0===(A=T(A,t)).length||M.copy(A,0,0,t),A}if(M){if("undefined"!=typeofArrayBuffer&&M.bufferinstanceofArrayBuffer||"length"inM)return"number"!=typeofM.length||(g=M.length)!=g?T(A,0):C(A,M);if("Buffer"===M.type&&e(M.data))returnC(A,M.data)}varg;thrownewTypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(A,M)}functionn(A){if("number"!=typeofA)thrownewTypeError('"size" argument must be a number');if(A<0)thrownewRangeError('"size" argument must not be negative')}functionD(A,M){if(n(M),A=T(A,M<0?0:0|r(M)),!E.TYPED_ARRAY_SUPPORT)for(vart=0;t<M;++t)A[t]=0;returnA}functionC(A,M){vart=M.length<0?0:0|r(M.length);A=T(A,t);for(varg=0;g<t;g+=1)A[g]=255&M[g];returnA}functionr(A){if(A>=i())thrownewRangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i().toString(16)+" bytes");return0|A}functionc(A,M){if(E.isBuffer(A))returnA.length;if("undefined"!=typeofArrayBuffer&&"function"==typeofArrayBuffer.isView&&(ArrayBuffer.isView(A)||AinstanceofArrayBuffer))returnA.byteLength;"string"!=typeofA&&(A=""+A);vart=A.length;if(0===t)return0;for(varg=!1;;)switch(M){case"ascii":case"latin1":case"binary":returnt;case"utf8":case"utf-8":casevoid0:returnb(A).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return2*t;case"hex":returnt>>>1;case"base64":returnG(A).length;default:if(g)returnb(A).length;M=(""+M).toLowerCase(),g=!0}}functiono(A,M,t){varg=!1;if((void0===M||M<0)&&(M=0),M>this.length)return"";if((void0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(M>>>=0))return"";for(A||(A="utf8");;)switch(A){case"hex":returnS(this,M,t);case"utf8":case"utf-8":returnx(this,M,t);case"ascii":returnY(this,M,t);case"latin1":case"binary":returnu(this,M,t);case"base64":returnd(this,M,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":returnl(this,M,t);default:if(g)thrownewTypeError("Unknown encoding: "+A);A=(A+"").toLowerCase(),g=!0}}functionB(A,M,t){varg=A[M];A[M]=A[t],A[t]=g}functionQ(A,M,t,g,I){if(0===A.length)return-1;if("string"==typeoft?(g=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=I?0:A.length-1),t<0&&(t=A.length+t),t>=A.length){if(I)return-1;t=A.length-1}elseif(t<0){if(!I)return-1;t=0}if("string"==typeofM&&(M=E.from(M,g)),E.isBuffer(M))return0===M.length?-1:a(A,M,t,g,I);if("number"==typeofM)returnM&=255,E.TYPED_ARRAY_SUPPORT&&"function"==typeofUint8Array.prototype.indexOf?I?Uint8Array.prototype.indexOf.call(A,M,t):Uint8Array.prototype.lastIndexOf.call(A,M,t):a(A,[M],t,g,I);thrownewTypeError("val must be string, number or Buffer")}functiona(A,M,t,g,I){vare,i=1,T=A.length,E=M.length;if(void0!==g&&("ucs2"===(g=String(g).toLowerCase())||"u
varg;g=function(){"use strict";functionA(A){return"function"==typeofA}varg=Array.isArray?Array.isArray:function(A){return"[object Array]"===Object.prototype.toString.call(A)},I=0,e=void0,i=void0,T=function(A,M){c[I]=A,c[I+1]=M,2===(I+=2)&&(i?i(o):Q())},E="undefined"!=typeofwindow?window:void0,N=E||{},n=N.MutationObserver||N.WebKitMutationObserver,D="undefined"==typeofself&&void0!==M&&"[object process]"==={}.toString.call(M),C="undefined"!=typeofUint8ClampedArray&&"undefined"!=typeofimportScripts&&"undefined"!=typeofMessageChannel;functionr(){varA=setTimeout;returnfunction(){returnA(o,1)}}varc=newArray(1e3);functiono(){for(varA=0;A<I;A+=2)(0,c[A])(c[A+1]),c[A]=void0,c[A+1]=void0;I=0}varB,Q=void0;functiona(A,M){vart=this,g=newthis.constructor(y);void0===g[s]&&z(g);varI=t._state;if(I){vare=arguments[I-1];T((function(){returnS(I,g,e,t._result)}))}elseY(t,g,A,M);returng}functionh(A){if(A&&"object"==typeofA&&A.constructor===this)returnA;varM=newthis(y);returnj(M,A),M}D?Q=function(){returnM.nextTick(o)}:n?Q=function(){varA=0,M=newn(o),t=document.createTextNode("");returnM.observe(t,{characterData:!0}),function(){t.data=A=++A%2}}():C?((B=newMessageChannel).port1.onmessage=o,Q=function(){returnB.port2.postMessage(0)}):Q=void0===E?function(){try{varA=Function("return this")().require("vertx");returnvoid0!==(e=A.runOnLoop||A.runOnContext)?function(){e(o)}:r()}catch(A){returnr()}}():r();vars=Math.random().toString(36).substring(2);functiony(){}functionw(M,t,g){t.constructor===M.constructor&&g===a&&t.constructor.resolve===h?function(A,M){1===M._state?d(A,M._result):2===M._state?x(A,M._result):Y(M,void0,(function(M){returnj(A,M)}),(function(M){returnx(A,M)}))}(M,t):void0===g?d(M,t):A(g)?function(A,M,t){T((function(A){varg=!1,I=function(A,M,t,g){try{A.call(M,t,g)}catch(A){returnA}}(t,M,(function(t){g||(g=!0,M!==t?j(A,t):d(A,t))}),(function(M){g||(g=!0,x(A,M))}),A._label);!g&&I&&(g=!0,x(A,I))}),A)}(M,t,g):d(M,t)}functionj(A,M){if(A===M)x(A,newTypeError("You cannot resolve a promise with itself"));elseif(I=typeof(g=M),null===g||"object"!==I&&"function"!==I)d(A,M);else{vart=void0;try{t=M.then}catch(M){returnvoidx(A,M)}w(A,M,t)}varg,I}functionL(A){A._onerror&&A._onerror(A._result),u(A)}functiond(A,M){void0===A._state&&(A._result=M,A._state=1,0!==A._subscribers.length&&T(u,A))}functionx(A,M){void0===A._state&&(A._state=2,A._result=M,T(L,A))}functionY(A,M,t,g){varI=A._subscribers,e=I.length;A._onerror=null,I[e]=M,I[e+1]=t,I[e+2]=g,0===e&&A._state&&T(u,A)}functionu(A){varM=A._subscribers,t=A._state;if(0!==M.length){for(varg=void0,I=void0,e=A._result,i=0;i<M.length;i+=3)g=M[i],I=M[i+t],g?S(t,g,I,e):I(e);A._subscribers.length=0}}functionS(M,t,g,I){vare=A(g),i=void0,T=void0,E=!0;if(e){try{i=g(I)}catch(A){E=!1,T=A}if(t===i)returnvoidx(t,newTypeError("A promises callback cannot return that same promise."))}elsei=I;void0!==t._state||(e&&E?j(t,i):!1===E?x(t,T):1===M?d(t,i):2===M&&x(t,i))}varl=0;functionz(A){A[s]=l++,A._state=void0,A._result=void0,A._subscribers=[]}varU=function(){functionA(A,M){this._instanceConstructor=A,this.promise=newA(y),this.promise[s]||z(this.promise),g(M)?(this.length=M.length,this._remaining=M.length,this._result=newArray(this.length),0===this.length?d(this.promise,this._result):(this.length=this.length||0,this._enumerate(M),0===this._remaining&&d(this.promise,this._result))):x(this.promise,newError("Array Methods must be provided an Array"))}returnA.prototype._enumerate=function(A){for(varM=0;void0===this._state&&M<A.length;M++)this._eachEntry(A[M],M)},A.prototype._eachEntry=function(A,M){vart=this._instanceConstructor,g=t.resolve;if(g===h){varI=void0,e=void0,i=!1;try{I=A.then}catch(A){i=!0,e=A}if(I===a&&void0!==A._state)this._settledAt(A._state,M,A._result);elseif("function"!=typeofI)this._remaining--,this._result[M]=A;elseif(t===f){varT=newt(y);i?x(T,e):w(T,A,I),this._willSettleAt(T,M)}elsethis._willSettleAt(newt((function(M){returnM(A)})),M)}elsethis._willSettleAt(g(A),M)},A.prototype._settledAt=function(A