OpChan/dist/assets/index-COonna6N.js
2025-09-11 14:29:55 +05:30

2 lines
69 KiB
JavaScript
Raw Blame History

import{aR as je,ah as mr,aS as Rr,aO as Z}from"./index-Cr5N_0pd.js";var Rt={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=je,a=r.Buffer;function o(h,u){for(var f in h)u[f]=h[f]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=c);function c(h,u,f){return a(h,u,f)}c.prototype=Object.create(a.prototype),o(a,c),c.from=function(h,u,f){if(typeof h=="number")throw new TypeError("Argument must not be a number");return a(h,u,f)},c.alloc=function(h,u,f){if(typeof h!="number")throw new TypeError("Argument must be a number");var d=a(h);return u!==void 0?typeof f=="string"?d.fill(u,f):d.fill(u):d.fill(0),d},c.allocUnsafe=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return a(h)},c.allocUnsafeSlow=function(h){if(typeof h!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(h)}})(Rt,Rt.exports);var Q=Rt.exports,Tt={exports:{}};typeof Object.create=="function"?Tt.exports=function(t,r){r&&(t.super_=r,t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Tt.exports=function(t,r){if(r){t.super_=r;var a=function(){};a.prototype=r.prototype,t.prototype=new a,t.prototype.constructor=t}};var V=Tt.exports,Pt={exports:{}},Tr=mr.EventEmitter,ze,$t;function on(){if($t)return ze;$t=1;function e(A,x){var y=Object.keys(A);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(A);x&&(v=v.filter(function(E){return Object.getOwnPropertyDescriptor(A,E).enumerable})),y.push.apply(y,v)}return y}function t(A){for(var x=1;x<arguments.length;x++){var y=arguments[x]!=null?arguments[x]:{};x%2?e(Object(y),!0).forEach(function(v){r(A,v,y[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(y)):e(Object(y)).forEach(function(v){Object.defineProperty(A,v,Object.getOwnPropertyDescriptor(y,v))})}return A}function r(A,x,y){return x=h(x),x in A?Object.defineProperty(A,x,{value:y,enumerable:!0,configurable:!0,writable:!0}):A[x]=y,A}function a(A,x){if(!(A instanceof x))throw new TypeError("Cannot call a class as a function")}function o(A,x){for(var y=0;y<x.length;y++){var v=x[y];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(A,h(v.key),v)}}function c(A,x,y){return x&&o(A.prototype,x),Object.defineProperty(A,"prototype",{writable:!1}),A}function h(A){var x=u(A,"string");return typeof x=="symbol"?x:String(x)}function u(A,x){if(typeof A!="object"||A===null)return A;var y=A[Symbol.toPrimitive];if(y!==void 0){var v=y.call(A,x||"default");if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(A)}var f=je,d=f.Buffer,g=Rr,w=g.inspect,R=w&&w.custom||"inspect";function N(A,x,y){d.prototype.copy.call(A,x,y)}return ze=function(){function A(){a(this,A),this.head=null,this.tail=null,this.length=0}return c(A,[{key:"push",value:function(y){var v={data:y,next:null};this.length>0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(y){var v={data:y,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var y=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,y}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(y){if(this.length===0)return"";for(var v=this.head,E=""+v.data;v=v.next;)E+=y+v.data;return E}},{key:"concat",value:function(y){if(this.length===0)return d.alloc(0);for(var v=d.allocUnsafe(y>>>0),E=this.head,b=0;E;)N(E.data,v,b),b+=E.data.length,E=E.next;return v}},{key:"consume",value:function(y,v){var E;return y<this.head.data.length?(E=this.head.data.slice(0,y),this.head.data=this.head.data.slice(y)):y===this.head.data.length?E=this.shift():E=v?this._getString(y):this._getBuffer(y),E}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(y){var v=this.head,E=1,b=v.data;for(y-=b.length;v=v.next;){var S=v.data,P=y>S.length?S.length:y;if(P===S.length?b+=S:b+=S.slice(0,y),y-=P,y===0){P===S.length?(++E,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=S.slice(P));break}++E}return this.length-=E,b}},{key:"_getBuffer",value:function(y){var v=d.allocUnsafe(y),E=this.head,b=1;for(E.data.copy(v),y-=E.data.length;E=E.next;){var S=E.data,P=y>S.length?S.length:y;if(S.copy(v,v.length-y,0,P),y-=P,y===0){P===S.length?(++b,E.next?this.head=E.next:this.head=this.tail=null):(this.head=E,E.data=S.slice(P));break}++b}return this.length-=b,v}},{key:R,value:function(y,v){return w(this,t(t({},v),{},{depth:0,customInspect:!1}))}}]),A}(),ze}function fn(e,t){var r=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(Bt,this,e)):process.nextTick(Bt,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(c){!t&&c?r._writableState?r._writableState.errorEmitted?process.nextTick(De,r):(r._writableState.errorEmitted=!0,process.nextTick(jt,r,c)):process.nextTick(jt,r,c):t?(process.nextTick(De,r),t(c)):process.nextTick(De,r)}),this)}function jt(e,t){Bt(e,t),De(e)}function De(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function sn(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function Bt(e,t){e.emit("error",t)}function ln(e,t){var r=e._readableState,a=e._writableState;r&&r.autoDestroy||a&&a.autoDestroy?e.destroy(t):e.emit("error",t)}var Pr={destroy:fn,undestroy:sn,errorOrDestroy:ln},re={};function un(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Br={};function k(e,t,r){r||(r=Error);function a(c,h,u){return typeof t=="string"?t:t(c,h,u)}var o=function(c){un(h,c);function h(u,f,d){return c.call(this,a(u,f,d))||this}return h}(r);o.prototype.name=r.name,o.prototype.code=e,Br[e]=o}function Ut(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(a){return String(a)}),r>2?"one of ".concat(t," ").concat(e.slice(0,r-1).join(", "),", or ")+e[r-1]:r===2?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}else return"of ".concat(t," ").concat(String(e))}function cn(e,t,r){return e.substr(0,t.length)===t}function hn(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function dn(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}k("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);k("ERR_INVALID_ARG_TYPE",function(e,t,r){var a;typeof t=="string"&&cn(t,"not ")?(a="must not be",t=t.replace(/^not /,"")):a="must be";var o;if(hn(e," argument"))o="The ".concat(e," ").concat(a," ").concat(Ut(t,"type"));else{var c=dn(e,".")?"property":"argument";o='The "'.concat(e,'" ').concat(c," ").concat(a," ").concat(Ut(t,"type"))}return o+=". Received type ".concat(typeof r),o},TypeError);k("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");k("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});k("ERR_STREAM_PREMATURE_CLOSE","Premature close");k("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});k("ERR_MULTIPLE_CALLBACK","Callback called multiple times");k("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");k("ERR_STREAM_WRITE_AFTER_END","write after end");k("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);k("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);k("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");re.codes=Br;var pn=re.codes.ERR_INVALID_OPT_VALUE;function yn(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function vn(e,t,r,a){var o=yn(t,a,r);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var c=a?r:"highWaterMark";throw new pn(c,o)}return Math.floor(o)}return e.objectMode?16:16*1024}var Or={getHighWaterMark:vn},bn=_n;function _n(e,t){if(Je("noDeprecation"))return e;var r=!1;function a(){if(!r){if(Je("throwDeprecation"))throw new Error(t);Je("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return a}function Je(e){try{if(!Z.localStorage)return!1}catch{return!1}var t=Z.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var Xe,qt;function Cr(){if(qt)return Xe;qt=1,Xe=C;function e(l){var s=this;this.next=null,this.entry=null,this.finish=function(){fe(s,l)}}var t;C.WritableState=O;var r={deprecate:bn},a=Tr,o=je.Buffer,c=(typeof Z<"u"?Z:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function h(l){return o.from(l)}function u(l){return o.isBuffer(l)||l instanceof c}var f=Pr,d=Or,g=d.getHighWaterMark,w=re.codes,R=w.ERR_INVALID_ARG_TYPE,N=w.ERR_METHOD_NOT_IMPLEMENTED,A=w.ERR_MULTIPLE_CALLBACK,x=w.ERR_STREAM_CANNOT_PIPE,y=w.ERR_STREAM_DESTROYED,v=w.ERR_STREAM_NULL_VALUES,E=w.ERR_STREAM_WRITE_AFTER_END,b=w.ERR_UNKNOWN_ENCODING,S=f.errorOrDestroy;V(C,a);function P(){}function O(l,s,_){t=t||pe(),l=l||{},typeof _!="boolean"&&(_=s instanceof t),this.objectMode=!!l.objectMode,_&&(this.objectMode=this.objectMode||!!l.writableObjectMode),this.highWaterMark=g(this,l,"writableHighWaterMark",_),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var T=l.decodeStrings===!1;this.decodeStrings=!T,this.defaultEncoding=l.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(D){be(s,D)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=l.emitClose!==!1,this.autoDestroy=!!l.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}O.prototype.getBuffer=function(){for(var s=this.bufferedRequest,_=[];s;)_.push(s),s=s.next;return _},function(){try{Object.defineProperty(O.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var L;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(L=Function.prototype[Symbol.hasInstance],Object.defineProperty(C,Symbol.hasInstance,{value:function(s){return L.call(this,s)?!0:this!==C?!1:s&&s._writableState instanceof O}})):L=function(s){return s instanceof this};function C(l){t=t||pe();var s=this instanceof t;if(!s&&!L.call(C,this))return new C(l);this._writableState=new O(l,this,s),this.writable=!0,l&&(typeof l.write=="function"&&(this._write=l.write),typeof l.writev=="function"&&(this._writev=l.writev),typeof l.destroy=="function"&&(this._destroy=l.destroy),typeof l.final=="function"&&(this._final=l.final)),a.call(this)}C.prototype.pipe=function(){S(this,new x)};function B(l,s){var _=new E;S(l,_),process.nextTick(s,_)}function W(l,s,_,T){var D;return _===null?D=new v:typeof _!="string"&&!s.objectMode&&(D=new R("chunk",["string","Buffer"],_)),D?(S(l,D),process.nextTick(T,D),!1):!0}C.prototype.write=function(l,s,_){var T=this._writableState,D=!1,n=!T.objectMode&&u(l);return n&&!o.isBuffer(l)&&(l=h(l)),typeof s=="function"&&(_=s,s=null),n?s="buffer":s||(s=T.defaultEncoding),typeof _!="function"&&(_=P),T.ending?B(this,_):(n||W(this,T,l,_))&&(T.pendingcb++,D=ne(this,T,n,l,s,_)),D},C.prototype.cork=function(){this._writableState.corked++},C.prototype.uncork=function(){var l=this._writableState;l.corked&&(l.corked--,!l.writing&&!l.corked&&!l.bufferProcessing&&l.bufferedRequest&&J(this,l))},C.prototype.setDefaultEncoding=function(s){if(typeof s=="string"&&(s=s.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((s+"").toLowerCase())>-1))throw new b(s);return this._writableState.defaultEncoding=s,this},Object.defineProperty(C.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function ee(l,s,_){return!l.objectMode&&l.decodeStrings!==!1&&typeof s=="string"&&(s=o.from(s,_)),s}Object.defineProperty(C.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ne(l,s,_,T,D,n){if(!_){var i=ee(s,T,D);T!==i&&(_=!0,D="buffer",T=i)}var p=s.objectMode?1:T.length;s.length+=p;var m=s.length<s.highWaterMark;if(m||(s.needDrain=!0),s.writing||s.corked){var $=s.lastBufferedRequest;s.lastBufferedRequest={chunk:T,encoding:D,isBuf:_,callback:n,next:null},$?$.next=s.lastBufferedRequest:s.bufferedRequest=s.lastBufferedRequest,s.bufferedRequestCount+=1}else j(l,s,!1,p,T,D,n);return m}function j(l,s,_,T,D,n,i){s.writelen=T,s.writecb=i,s.writing=!0,s.sync=!0,s.destroyed?s.onwrite(new y("write")):_?l._writev(D,s.onwrite):l._write(D,n,s.onwrite),s.sync=!1}function H(l,s,_,T,D){--s.pendingcb,_?(process.nextTick(D,T),process.nextTick(Y,l,s),l._writableState.errorEmitted=!0,S(l,T)):(D(T),l._writableState.errorEmitted=!0,S(l,T),Y(l,s))}function G(l){l.writing=!1,l.writecb=null,l.length-=l.writelen,l.writelen=0}function be(l,s){var _=l._writableState,T=_.sync,D=_.writecb;if(typeof D!="function")throw new A;if(G(_),s)H(l,_,T,s,D);else{var n=ae(_)||l.destroyed;!n&&!_.corked&&!_.bufferProcessing&&_.bufferedRequest&&J(l,_),T?process.nextTick(z,l,_,n,D):z(l,_,n,D)}}function z(l,s,_,T){_||ie(l,s),s.pendingcb--,T(),Y(l,s)}function ie(l,s){s.length===0&&s.needDrain&&(s.needDrain=!1,l.emit("drain"))}function J(l,s){s.bufferProcessing=!0;var _=s.bufferedRequest;if(l._writev&&_&&_.next){var T=s.bufferedRequestCount,D=new Array(T),n=s.corkedRequestsFree;n.entry=_;for(var i=0,p=!0;_;)D[i]=_,_.isBuf||(p=!1),_=_.next,i+=1;D.allBuffers=p,j(l,s,!0,s.length,D,"",n.finish),s.pendingcb++,s.lastBufferedRequest=null,n.next?(s.corkedRequestsFree=n.next,n.next=null):s.corkedRequestsFree=new e(s),s.bufferedRequestCount=0}else{for(;_;){var m=_.chunk,$=_.encoding,I=_.callback,F=s.objectMode?1:m.length;if(j(l,s,!1,F,m,$,I),_=_.next,s.bufferedRequestCount--,s.writing)break}_===null&&(s.lastBufferedRequest=null)}s.bufferedRequest=_,s.bufferProcessing=!1}C.prototype._write=function(l,s,_){_(new N("_write()"))},C.prototype._writev=null,C.prototype.end=function(l,s,_){var T=this._writableState;return typeof l=="function"?(_=l,l=null,s=null):typeof s=="function"&&(_=s,s=null),l!=null&&this.write(l,s),T.corked&&(T.corked=1,this.uncork()),T.ending||ge(this,T,_),this},Object.defineProperty(C.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ae(l){return l.ending&&l.length===0&&l.bufferedRequest===null&&!l.finished&&!l.writing}function _e(l,s){l._final(function(_){s.pendingcb--,_&&S(l,_),s.prefinished=!0,l.emit("prefinish"),Y(l,s)})}function oe(l,s){!s.prefinished&&!s.finalCalled&&(typeof l._final=="function"&&!s.destroyed?(s.pendingcb++,s.finalCalled=!0,process.nextTick(_e,l,s)):(s.prefinished=!0,l.emit("prefinish")))}function Y(l,s){var _=ae(s);if(_&&(oe(l,s),s.pendingcb===0&&(s.finished=!0,l.emit("finish"),s.autoDestroy))){var T=l._readableState;(!T||T.autoDestroy&&T.endEmitted)&&l.destroy()}return _}function ge(l,s,_){s.ending=!0,Y(l,s),_&&(s.finished?process.nextTick(_):l.once("finish",_)),s.ended=!0,l.writable=!1}function fe(l,s,_){var T=l.entry;for(l.entry=null;T;){var D=T.callback;s.pendingcb--,D(_),T=T.next}s.corkedRequestsFree.next=l}return Object.defineProperty(C.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(s){this._writableState&&(this._writableState.destroyed=s)}}),C.prototype.destroy=f.destroy,C.prototype._undestroy=f.undestroy,C.prototype._destroy=function(l,s){s(l)},Xe}var Qe,kt;function pe(){if(kt)return Qe;kt=1;var e=Object.keys||function(d){var g=[];for(var w in d)g.push(w);return g};Qe=h;var t=Ir(),r=Cr();V(h,t);for(var a=e(r.prototype),o=0;o<a.length;o++){var c=a[o];h.prototype[c]||(h.prototype[c]=r.prototype[c])}function h(d){if(!(this instanceof h))return new h(d);t.call(this,d),r.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",u)))}Object.defineProperty(h.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(h.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(h.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function u(){this._writableState.ended||process.nextTick(f,this)}function f(d){d.end()}return Object.defineProperty(h.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=g,this._writableState.destroyed=g)}}),Qe}var Ot={},Ct=Q.Buffer,Wt=Ct.isEncoding||function(e){switch(e=""+e,e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function gn(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}function wn(e){var t=gn(e);if(typeof t!="string"&&(Ct.isEncoding===Wt||!Wt(e)))throw new Error("Unknown encoding: "+e);return t||e}Ot.StringDecoder=xe;function xe(e){this.encoding=wn(e);var t;switch(this.encoding){case"utf16le":this.text=Rn,this.end=Tn,t=4;break;case"utf8":this.fillLast=xn,t=4;break;case"base64":this.text=Pn,this.end=Bn,t=3;break;default:this.write=On,this.end=Cn;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Ct.allocUnsafe(t)}xe.prototype.write=function(e){if(e.length===0)return"";var t,r;if(this.lastNeed){if(t=this.fillLast(e),t===void 0)return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<e.length?t?t+this.text(e,r):this.text(e,r):t||""};xe.prototype.end=mn;xe.prototype.text=An;xe.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length};function Ze(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function En(e,t,r){var a=t.length-1;if(a<r)return 0;var o=Ze(t[a]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--a<r||o===-2?0:(o=Ze(t[a]),o>=0?(o>0&&(e.lastNeed=o-2),o):--a<r||o===-2?0:(o=Ze(t[a]),o>=0?(o>0&&(o===2?o=0:e.lastNeed=o-3),o):0))}function Sn(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"<22>";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"<22>";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"<22>"}}function xn(e){var t=this.lastTotal-this.lastNeed,r=Sn(this,e);if(r!==void 0)return r;if(this.lastNeed<=e.length)return e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,t,0,e.length),this.lastNeed-=e.length}function An(e,t){var r=En(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var a=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,a),e.toString("utf8",t,a)}function mn(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"<22>":t}function Rn(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var a=r.charCodeAt(r.length-1);if(a>=55296&&a<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function Tn(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,r)}return t}function Pn(e,t){var r=(e.length-t)%3;return r===0?e.toString("base64",t):(this.lastNeed=3-r,this.lastTotal=3,r===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-r))}function Bn(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function On(e){return e.toString(this.encoding)}function Cn(e){return e&&e.length?this.write(e):""}var Ht=re.codes.ERR_STREAM_PREMATURE_CLOSE;function Mn(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,a=new Array(r),o=0;o<r;o++)a[o]=arguments[o];e.apply(this,a)}}}function In(){}function Dn(e){return e.setHeader&&typeof e.abort=="function"}function Mr(e,t,r){if(typeof t=="function")return Mr(e,null,t);t||(t={}),r=Mn(r||In);var a=t.readable||t.readable!==!1&&e.readable,o=t.writable||t.writable!==!1&&e.writable,c=function(){e.writable||u()},h=e._writableState&&e._writableState.finished,u=function(){o=!1,h=!0,a||r.call(e)},f=e._readableState&&e._readableState.endEmitted,d=function(){a=!1,f=!0,o||r.call(e)},g=function(A){r.call(e,A)},w=function(){var A;if(a&&!f)return(!e._readableState||!e._readableState.ended)&&(A=new Ht),r.call(e,A);if(o&&!h)return(!e._writableState||!e._writableState.ended)&&(A=new Ht),r.call(e,A)},R=function(){e.req.on("finish",u)};return Dn(e)?(e.on("complete",u),e.on("abort",w),e.req?R():e.on("request",R)):o&&!e._writableState&&(e.on("end",c),e.on("close",c)),e.on("end",d),e.on("finish",u),t.error!==!1&&e.on("error",g),e.on("close",w),function(){e.removeListener("complete",u),e.removeListener("abort",w),e.removeListener("request",R),e.req&&e.req.removeListener("finish",u),e.removeListener("end",c),e.removeListener("close",c),e.removeListener("finish",u),e.removeListener("end",d),e.removeListener("error",g),e.removeListener("close",w)}}var Mt=Mr,et,Gt;function Nn(){if(Gt)return et;Gt=1;var e;function t(b,S,P){return S=r(S),S in b?Object.defineProperty(b,S,{value:P,enumerable:!0,configurable:!0,writable:!0}):b[S]=P,b}function r(b){var S=a(b,"string");return typeof S=="symbol"?S:String(S)}function a(b,S){if(typeof b!="object"||b===null)return b;var P=b[Symbol.toPrimitive];if(P!==void 0){var O=P.call(b,S||"default");if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(b)}var o=Mt,c=Symbol("lastResolve"),h=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),d=Symbol("lastPromise"),g=Symbol("handlePromise"),w=Symbol("stream");function R(b,S){return{value:b,done:S}}function N(b){var S=b[c];if(S!==null){var P=b[w].read();P!==null&&(b[d]=null,b[c]=null,b[h]=null,S(R(P,!1)))}}function A(b){process.nextTick(N,b)}function x(b,S){return function(P,O){b.then(function(){if(S[f]){P(R(void 0,!0));return}S[g](P,O)},O)}}var y=Object.getPrototypeOf(function(){}),v=Object.setPrototypeOf((e={get stream(){return this[w]},next:function(){var S=this,P=this[u];if(P!==null)return Promise.reject(P);if(this[f])return Promise.resolve(R(void 0,!0));if(this[w].destroyed)return new Promise(function(B,W){process.nextTick(function(){S[u]?W(S[u]):B(R(void 0,!0))})});var O=this[d],L;if(O)L=new Promise(x(O,this));else{var C=this[w].read();if(C!==null)return Promise.resolve(R(C,!1));L=new Promise(this[g])}return this[d]=L,L}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var S=this;return new Promise(function(P,O){S[w].destroy(null,function(L){if(L){O(L);return}P(R(void 0,!0))})})}),e),y),E=function(S){var P,O=Object.create(v,(P={},t(P,w,{value:S,writable:!0}),t(P,c,{value:null,writable:!0}),t(P,h,{value:null,writable:!0}),t(P,u,{value:null,writable:!0}),t(P,f,{value:S._readableState.endEmitted,writable:!0}),t(P,g,{value:function(C,B){var W=O[w].read();W?(O[d]=null,O[c]=null,O[h]=null,C(R(W,!1))):(O[c]=C,O[h]=B)},writable:!0}),P));return O[d]=null,o(S,function(L){if(L&&L.code!=="ERR_STREAM_PREMATURE_CLOSE"){var C=O[h];C!==null&&(O[d]=null,O[c]=null,O[h]=null,C(L)),O[u]=L;return}var B=O[c];B!==null&&(O[d]=null,O[c]=null,O[h]=null,B(R(void 0,!0))),O[f]=!0}),S.on("readable",A.bind(null,O)),O};return et=E,et}var tt,Vt;function Fn(){return Vt||(Vt=1,tt=function(){throw new Error("Readable.from is not available in the browser")}),tt}var rt,Yt;function Ir(){if(Yt)return rt;Yt=1,rt=B;var e;B.ReadableState=C,mr.EventEmitter;var t=function(i,p){return i.listeners(p).length},r=Tr,a=je.Buffer,o=(typeof Z<"u"?Z:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function c(n){return a.from(n)}function h(n){return a.isBuffer(n)||n instanceof o}var u=Rr,f;u&&u.debuglog?f=u.debuglog("stream"):f=function(){};var d=on(),g=Pr,w=Or,R=w.getHighWaterMark,N=re.codes,A=N.ERR_INVALID_ARG_TYPE,x=N.ERR_STREAM_PUSH_AFTER_EOF,y=N.ERR_METHOD_NOT_IMPLEMENTED,v=N.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,E,b,S;V(B,r);var P=g.errorOrDestroy,O=["error","close","destroy","pause","resume"];function L(n,i,p){if(typeof n.prependListener=="function")return n.prependListener(i,p);!n._events||!n._events[i]?n.on(i,p):Array.isArray(n._events[i])?n._events[i].unshift(p):n._events[i]=[p,n._events[i]]}function C(n,i,p){e=e||pe(),n=n||{},typeof p!="boolean"&&(p=i instanceof e),this.objectMode=!!n.objectMode,p&&(this.objectMode=this.objectMode||!!n.readableObjectMode),this.highWaterMark=R(this,n,"readableHighWaterMark",p),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=n.emitClose!==!1,this.autoDestroy=!!n.autoDestroy,this.destroyed=!1,this.defaultEncoding=n.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,n.encoding&&(E||(E=Ot.StringDecoder),this.decoder=new E(n.encoding),this.encoding=n.encoding)}function B(n){if(e=e||pe(),!(this instanceof B))return new B(n);var i=this instanceof e;this._readableState=new C(n,this,i),this.readable=!0,n&&(typeof n.read=="function"&&(this._read=n.read),typeof n.destroy=="function"&&(this._destroy=n.destroy)),r.call(this)}Object.defineProperty(B.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(i){this._readableState&&(this._readableState.destroyed=i)}}),B.prototype.destroy=g.destroy,B.prototype._undestroy=g.undestroy,B.prototype._destroy=function(n,i){i(n)},B.prototype.push=function(n,i){var p=this._readableState,m;return p.objectMode?m=!0:typeof n=="string"&&(i=i||p.defaultEncoding,i!==p.encoding&&(n=a.from(n,i),i=""),m=!0),W(this,n,i,!1,m)},B.prototype.unshift=function(n){return W(this,n,null,!0,!1)};function W(n,i,p,m,$){f("readableAddChunk",i);var I=n._readableState;if(i===null)I.reading=!1,be(n,I);else{var F;if($||(F=ne(I,i)),F)P(n,F);else if(I.objectMode||i&&i.length>0)if(typeof i!="string"&&!I.objectMode&&Object.getPrototypeOf(i)!==a.prototype&&(i=c(i)),m)I.endEmitted?P(n,new v):ee(n,I,i,!0);else if(I.ended)P(n,new x);else{if(I.destroyed)return!1;I.reading=!1,I.decoder&&!p?(i=I.decoder.write(i),I.objectMode||i.length!==0?ee(n,I,i,!1):J(n,I)):ee(n,I,i,!1)}else m||(I.reading=!1,J(n,I))}return!I.ended&&(I.length<I.highWaterMark||I.length===0)}function ee(n,i,p,m){i.flowing&&i.length===0&&!i.sync?(i.awaitDrain=0,n.emit("data",p)):(i.length+=i.objectMode?1:p.length,m?i.buffer.unshift(p):i.buffer.push(p),i.needReadable&&z(n)),J(n,i)}function ne(n,i){var p;return!h(i)&&typeof i!="string"&&i!==void 0&&!n.objectMode&&(p=new A("chunk",["string","Buffer","Uint8Array"],i)),p}B.prototype.isPaused=function(){return this._readableState.flowing===!1},B.prototype.setEncoding=function(n){E||(E=Ot.StringDecoder);var i=new E(n);this._readableState.decoder=i,this._readableState.encoding=this._readableState.decoder.encoding;for(var p=this._readableState.buffer.head,m="";p!==null;)m+=i.write(p.data),p=p.next;return this._readableState.buffer.clear(),m!==""&&this._readableState.buffer.push(m),this._readableState.length=m.length,this};var j=1073741824;function H(n){return n>=j?n=j:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n}function G(n,i){return n<=0||i.length===0&&i.ended?0:i.objectMode?1:n!==n?i.flowing&&i.length?i.buffer.head.data.length:i.length:(n>i.highWaterMark&&(i.highWaterMark=H(n)),n<=i.length?n:i.ended?i.length:(i.needReadable=!0,0))}B.prototype.read=function(n){f("read",n),n=parseInt(n,10);var i=this._readableState,p=n;if(n!==0&&(i.emittedReadable=!1),n===0&&i.needReadable&&((i.highWaterMark!==0?i.length>=i.highWaterMark:i.length>0)||i.ended))return f("read: emitReadable",i.length,i.ended),i.length===0&&i.ended?_(this):z(this),null;if(n=G(n,i),n===0&&i.ended)return i.length===0&&_(this),null;var m=i.needReadable;f("need readable",m),(i.length===0||i.length-n<i.highWaterMark)&&(m=!0,f("length less than watermark",m)),i.ended||i.reading?(m=!1,f("reading or ended",m)):m&&(f("do read"),i.reading=!0,i.sync=!0,i.length===0&&(i.needReadable=!0),this._read(i.highWaterMark),i.sync=!1,i.reading||(n=G(p,i)));var $;return n>0?$=s(n,i):$=null,$===null?(i.needReadable=i.length<=i.highWaterMark,n=0):(i.length-=n,i.awaitDrain=0),i.length===0&&(i.ended||(i.needReadable=!0),p!==n&&i.ended&&_(this)),$!==null&&this.emit("data",$),$};function be(n,i){if(f("onEofChunk"),!i.ended){if(i.decoder){var p=i.decoder.end();p&&p.length&&(i.buffer.push(p),i.length+=i.objectMode?1:p.length)}i.ended=!0,i.sync?z(n):(i.needReadable=!1,i.emittedReadable||(i.emittedReadable=!0,ie(n)))}}function z(n){var i=n._readableState;f("emitReadable",i.needReadable,i.emittedReadable),i.needReadable=!1,i.emittedReadable||(f("emitReadable",i.flowing),i.emittedReadable=!0,process.nextTick(ie,n))}function ie(n){var i=n._readableState;f("emitReadable_",i.destroyed,i.length,i.ended),!i.destroyed&&(i.length||i.ended)&&(n.emit("readable"),i.emittedReadable=!1),i.needReadable=!i.flowing&&!i.ended&&i.length<=i.highWaterMark,l(n)}function J(n,i){i.readingMore||(i.readingMore=!0,process.nextTick(ae,n,i))}function ae(n,i){for(;!i.reading&&!i.ended&&(i.length<i.highWaterMark||i.flowing&&i.length===0);){var p=i.length;if(f("maybeReadMore read 0"),n.read(0),p===i.length)break}i.readingMore=!1}B.prototype._read=function(n){P(this,new y("_read()"))},B.prototype.pipe=function(n,i){var p=this,m=this._readableState;switch(m.pipesCount){case 0:m.pipes=n;break;case 1:m.pipes=[m.pipes,n];break;default:m.pipes.push(n);break}m.pipesCount+=1,f("pipe count=%d opts=%j",m.pipesCount,i);var $=(!i||i.end!==!1)&&n!==process.stdout&&n!==process.stderr,I=$?se:we;m.endEmitted?process.nextTick(I):p.once("end",I),n.on("unpipe",F);function F(le,ue){f("onunpipe"),le===p&&ue&&ue.hasUnpiped===!1&&(ue.hasUnpiped=!0,an())}function se(){f("onend"),n.end()}var Ie=_e(p);n.on("drain",Ie);var Ft=!1;function an(){f("cleanup"),n.removeListener("close",Ye),n.removeListener("finish",Ke),n.removeListener("drain",Ie),n.removeListener("error",Ve),n.removeListener("unpipe",F),p.removeListener("end",se),p.removeListener("end",we),p.removeListener("data",Lt),Ft=!0,m.awaitDrain&&(!n._writableState||n._writableState.needDrain)&&Ie()}p.on("data",Lt);function Lt(le){f("ondata");var ue=n.write(le);f("dest.write",ue),ue===!1&&((m.pipesCount===1&&m.pipes===n||m.pipesCount>1&&D(m.pipes,n)!==-1)&&!Ft&&(f("false write response, pause",m.awaitDrain),m.awaitDrain++),p.pause())}function Ve(le){f("onerror",le),we(),n.removeListener("error",Ve),t(n,"error")===0&&P(n,le)}L(n,"error",Ve);function Ye(){n.removeListener("finish",Ke),we()}n.once("close",Ye);function Ke(){f("onfinish"),n.removeListener("close",Ye),we()}n.once("finish",Ke);function we(){f("unpipe"),p.unpipe(n)}return n.emit("pipe",p),m.flowing||(f("pipe resume"),p.resume()),n};function _e(n){return function(){var p=n._readableState;f("pipeOnDrain",p.awaitDrain),p.awaitDrain&&p.awaitDrain--,p.awaitDrain===0&&t(n,"data")&&(p.flowing=!0,l(n))}}B.prototype.unpipe=function(n){var i=this._readableState,p={hasUnpiped:!1};if(i.pipesCount===0)return this;if(i.pipesCount===1)return n&&n!==i.pipes?this:(n||(n=i.pipes),i.pipes=null,i.pipesCount=0,i.flowing=!1,n&&n.emit("unpipe",this,p),this);if(!n){var m=i.pipes,$=i.pipesCount;i.pipes=null,i.pipesCount=0,i.flowing=!1;for(var I=0;I<$;I++)m[I].emit("unpipe",this,{hasUnpiped:!1});return this}var F=D(i.pipes,n);return F===-1?this:(i.pipes.splice(F,1),i.pipesCount-=1,i.pipesCount===1&&(i.pipes=i.pipes[0]),n.emit("unpipe",this,p),this)},B.prototype.on=function(n,i){var p=r.prototype.on.call(this,n,i),m=this._readableState;return n==="data"?(m.readableListening=this.listenerCount("readable")>0,m.flowing!==!1&&this.resume()):n==="readable"&&!m.endEmitted&&!m.readableListening&&(m.readableListening=m.needReadable=!0,m.flowing=!1,m.emittedReadable=!1,f("on readable",m.length,m.reading),m.length?z(this):m.reading||process.nextTick(Y,this)),p},B.prototype.addListener=B.prototype.on,B.prototype.removeListener=function(n,i){var p=r.prototype.removeListener.call(this,n,i);return n==="readable"&&process.nextTick(oe,this),p},B.prototype.removeAllListeners=function(n){var i=r.prototype.removeAllListeners.apply(this,arguments);return(n==="readable"||n===void 0)&&process.nextTick(oe,this),i};function oe(n){var i=n._readableState;i.readableListening=n.listenerCount("readable")>0,i.resumeScheduled&&!i.paused?i.flowing=!0:n.listenerCount("data")>0&&n.resume()}function Y(n){f("readable nexttick read 0"),n.read(0)}B.prototype.resume=function(){var n=this._readableState;return n.flowing||(f("resume"),n.flowing=!n.readableListening,ge(this,n)),n.paused=!1,this};function ge(n,i){i.resumeScheduled||(i.resumeScheduled=!0,process.nextTick(fe,n,i))}function fe(n,i){f("resume",i.reading),i.reading||n.read(0),i.resumeScheduled=!1,n.emit("resume"),l(n),i.flowing&&!i.reading&&n.read(0)}B.prototype.pause=function(){return f("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(f("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function l(n){var i=n._readableState;for(f("flow",i.flowing);i.flowing&&n.read()!==null;);}B.prototype.wrap=function(n){var i=this,p=this._readableState,m=!1;n.on("end",function(){if(f("wrapped end"),p.decoder&&!p.ended){var F=p.decoder.end();F&&F.length&&i.push(F)}i.push(null)}),n.on("data",function(F){if(f("wrapped data"),p.decoder&&(F=p.decoder.write(F)),!(p.objectMode&&F==null)&&!(!p.objectMode&&(!F||!F.length))){var se=i.push(F);se||(m=!0,n.pause())}});for(var $ in n)this[$]===void 0&&typeof n[$]=="function"&&(this[$]=function(se){return function(){return n[se].apply(n,arguments)}}($));for(var I=0;I<O.length;I++)n.on(O[I],this.emit.bind(this,O[I]));return this._read=function(F){f("wrapped _read",F),m&&(m=!1,n.resume())},this},typeof Symbol=="function"&&(B.prototype[Symbol.asyncIterator]=function(){return b===void 0&&(b=Nn()),b(this)}),Object.defineProperty(B.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(B.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(B.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(i){this._readableState&&(this._readableState.flowing=i)}}),B._fromList=s,Object.defineProperty(B.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function s(n,i){if(i.length===0)return null;var p;return i.objectMode?p=i.buffer.shift():!n||n>=i.length?(i.decoder?p=i.buffer.join(""):i.buffer.length===1?p=i.buffer.first():p=i.buffer.concat(i.length),i.buffer.clear()):p=i.buffer.consume(n,i.decoder),p}function _(n){var i=n._readableState;f("endReadable",i.endEmitted),i.endEmitted||(i.ended=!0,process.nextTick(T,i,n))}function T(n,i){if(f("endReadableNT",n.endEmitted,n.length),!n.endEmitted&&n.length===0&&(n.endEmitted=!0,i.readable=!1,i.emit("end"),n.autoDestroy)){var p=i._writableState;(!p||p.autoDestroy&&p.finished)&&i.destroy()}}typeof Symbol=="function"&&(B.from=function(n,i){return S===void 0&&(S=Fn()),S(B,n,i)});function D(n,i){for(var p=0,m=n.length;p<m;p++)if(n[p]===i)return p;return-1}return rt}var Dr=X,Ue=re.codes,Ln=Ue.ERR_METHOD_NOT_IMPLEMENTED,$n=Ue.ERR_MULTIPLE_CALLBACK,jn=Ue.ERR_TRANSFORM_ALREADY_TRANSFORMING,Un=Ue.ERR_TRANSFORM_WITH_LENGTH_0,qe=pe();V(X,qe);function qn(e,t){var r=this._transformState;r.transforming=!1;var a=r.writecb;if(a===null)return this.emit("error",new $n);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),a(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function X(e){if(!(this instanceof X))return new X(e);qe.call(this,e),this._transformState={afterTransform:qn.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform=="function"&&(this._transform=e.transform),typeof e.flush=="function"&&(this._flush=e.flush)),this.on("prefinish",kn)}function kn(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){Kt(e,t,r)}):Kt(this,null,null)}X.prototype.push=function(e,t){return this._transformState.needTransform=!1,qe.prototype.push.call(this,e,t)};X.prototype._transform=function(e,t,r){r(new Ln("_transform()"))};X.prototype._write=function(e,t,r){var a=this._transformState;if(a.writecb=r,a.writechunk=e,a.writeencoding=t,!a.transforming){var o=this._readableState;(a.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}};X.prototype._read=function(e){var t=this._transformState;t.writechunk!==null&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0};X.prototype._destroy=function(e,t){qe.prototype._destroy.call(this,e,function(r){t(r)})};function Kt(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new Un;if(e._transformState.transforming)throw new jn;return e.push(null)}var Wn=Ee,Nr=Dr;V(Ee,Nr);function Ee(e){if(!(this instanceof Ee))return new Ee(e);Nr.call(this,e)}Ee.prototype._transform=function(e,t,r){r(null,e)};var nt;function Hn(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var Fr=re.codes,Gn=Fr.ERR_MISSING_ARGS,Vn=Fr.ERR_STREAM_DESTROYED;function zt(e){if(e)throw e}function Yn(e){return e.setHeader&&typeof e.abort=="function"}function Kn(e,t,r,a){a=Hn(a);var o=!1;e.on("close",function(){o=!0}),nt===void 0&&(nt=Mt),nt(e,{readable:t,writable:r},function(h){if(h)return a(h);o=!0,a()});var c=!1;return function(h){if(!o&&!c){if(c=!0,Yn(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();a(h||new Vn("pipe"))}}}function Jt(e){e()}function zn(e,t){return e.pipe(t)}function Jn(e){return!e.length||typeof e[e.length-1]!="function"?zt:e.pop()}function Xn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=Jn(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Gn("streams");var o,c=t.map(function(h,u){var f=u<t.length-1,d=u>0;return Kn(h,f,d,function(g){o||(o=g),g&&c.forEach(Jt),!f&&(c.forEach(Jt),a(o))})});return t.reduce(zn)}var Qn=Xn;(function(e,t){t=e.exports=Ir(),t.Stream=t,t.Readable=t,t.Writable=Cr(),t.Duplex=pe(),t.Transform=Dr,t.PassThrough=Wn,t.finished=Mt,t.pipeline=Qn})(Pt,Pt.exports);var Bo=Pt.exports,Lr={exports:{}},Zn={}.toString,ei=Array.isArray||function(e){return Zn.call(e)=="[object Array]"},Ae=TypeError,$r=Object,ti=Error,ri=EvalError,ni=RangeError,ii=ReferenceError,jr=SyntaxError,ai=URIError,oi=Math.abs,fi=Math.floor,si=Math.max,li=Math.min,ui=Math.pow,ci=Math.round,hi=Number.isNaN||function(t){return t!==t},di=hi,pi=function(t){return di(t)||t===0?t:t<0?-1:1},yi=Object.getOwnPropertyDescriptor,Ne=yi;if(Ne)try{Ne([],"length")}catch{Ne=null}var me=Ne,Fe=Object.defineProperty||!1;if(Fe)try{Fe({},"a",{value:1})}catch{Fe=!1}var ke=Fe,it,Xt;function Ur(){return Xt||(Xt=1,it=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),a=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var c in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var h=Object.getOwnPropertySymbols(t);if(h.length!==1||h[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var u=Object.getOwnPropertyDescriptor(t,r);if(u.value!==o||u.enumerable!==!0)return!1}return!0}),it}var at,Qt;function vi(){if(Qt)return at;Qt=1;var e=typeof Symbol<"u"&&Symbol,t=Ur();return at=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},at}var ot,Zt;function qr(){return Zt||(Zt=1,ot=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),ot}var ft,er;function kr(){if(er)return ft;er=1;var e=$r;return ft=e.getPrototypeOf||null,ft}var bi="Function.prototype.bind called on incompatible ",_i=Object.prototype.toString,gi=Math.max,wi="[object Function]",tr=function(t,r){for(var a=[],o=0;o<t.length;o+=1)a[o]=t[o];for(var c=0;c<r.length;c+=1)a[c+t.length]=r[c];return a},Ei=function(t,r){for(var a=[],o=r,c=0;o<t.length;o+=1,c+=1)a[c]=t[o];return a},Si=function(e,t){for(var r="",a=0;a<e.length;a+=1)r+=e[a],a+1<e.length&&(r+=t);return r},xi=function(t){var r=this;if(typeof r!="function"||_i.apply(r)!==wi)throw new TypeError(bi+r);for(var a=Ei(arguments,1),o,c=function(){if(this instanceof o){var g=r.apply(this,tr(a,arguments));return Object(g)===g?g:this}return r.apply(t,tr(a,arguments))},h=gi(0,r.length-a.length),u=[],f=0;f<h;f++)u[f]="$"+f;if(o=Function("binder","return function ("+Si(u,",")+"){ return binder.apply(this,arguments); }")(c),r.prototype){var d=function(){};d.prototype=r.prototype,o.prototype=new d,d.prototype=null}return o},Ai=xi,Re=Function.prototype.bind||Ai,It=Function.prototype.call,st,rr;function Dt(){return rr||(rr=1,st=Function.prototype.apply),st}var mi=typeof Reflect<"u"&&Reflect&&Reflect.apply,Ri=Re,Ti=Dt(),Pi=It,Bi=mi,Wr=Bi||Ri.call(Pi,Ti),Oi=Re,Ci=Ae,Mi=It,Ii=Wr,Nt=function(t){if(t.length<1||typeof t[0]!="function")throw new Ci("a function is required");return Ii(Oi,Mi,t)},lt,nr;function Di(){if(nr)return lt;nr=1;var e=Nt,t=me,r;try{r=[].__proto__===Array.prototype}catch(h){if(!h||typeof h!="object"||!("code"in h)||h.code!=="ERR_PROTO_ACCESS")throw h}var a=!!r&&t&&t(Object.prototype,"__proto__"),o=Object,c=o.getPrototypeOf;return lt=a&&typeof a.get=="function"?e([a.get]):typeof c=="function"?function(u){return c(u==null?u:o(u))}:!1,lt}var ut,ir;function Hr(){if(ir)return ut;ir=1;var e=qr(),t=kr(),r=Di();return ut=e?function(o){return e(o)}:t?function(o){if(!o||typeof o!="object"&&typeof o!="function")throw new TypeError("getProto: not an object");return t(o)}:r?function(o){return r(o)}:null,ut}var ct,ar;function Ni(){if(ar)return ct;ar=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Re;return ct=r.call(e,t),ct}var M,Fi=$r,Li=ti,$i=ri,ji=ni,Ui=ii,ye=jr,de=Ae,qi=ai,ki=oi,Wi=fi,Hi=si,Gi=li,Vi=ui,Yi=ci,Ki=pi,Gr=Function,ht=function(e){try{return Gr('"use strict"; return ('+e+").constructor;")()}catch{}},Se=me,zi=ke,dt=function(){throw new de},Ji=Se?function(){try{return arguments.callee,dt}catch{try{return Se(arguments,"callee").get}catch{return dt}}}():dt,ce=vi()(),q=Hr(),Xi=kr(),Qi=qr(),Vr=Dt(),Te=It,he={},Zi=typeof Uint8Array>"u"||!q?M:q(Uint8Array),te={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?M:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?M:ArrayBuffer,"%ArrayIteratorPrototype%":ce&&q?q([][Symbol.iterator]()):M,"%AsyncFromSyncIteratorPrototype%":M,"%AsyncFunction%":he,"%AsyncGenerator%":he,"%AsyncGeneratorFunction%":he,"%AsyncIteratorPrototype%":he,"%Atomics%":typeof Atomics>"u"?M:Atomics,"%BigInt%":typeof BigInt>"u"?M:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?M:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?M:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?M:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Li,"%eval%":eval,"%EvalError%":$i,"%Float16Array%":typeof Float16Array>"u"?M:Float16Array,"%Float32Array%":typeof Float32Array>"u"?M:Float32Array,"%Float64Array%":typeof Float64Array>"u"?M:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?M:FinalizationRegistry,"%Function%":Gr,"%GeneratorFunction%":he,"%Int8Array%":typeof Int8Array>"u"?M:Int8Array,"%Int16Array%":typeof Int16Array>"u"?M:Int16Array,"%Int32Array%":typeof Int32Array>"u"?M:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ce&&q?q(q([][Symbol.iterator]())):M,"%JSON%":typeof JSON=="object"?JSON:M,"%Map%":typeof Map>"u"?M:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ce||!q?M:q(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Fi,"%Object.getOwnPropertyDescriptor%":Se,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?M:Promise,"%Proxy%":typeof Proxy>"u"?M:Proxy,"%RangeError%":ji,"%ReferenceError%":Ui,"%Reflect%":typeof Reflect>"u"?M:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?M:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ce||!q?M:q(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?M:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ce&&q?q(""[Symbol.iterator]()):M,"%Symbol%":ce?Symbol:M,"%SyntaxError%":ye,"%ThrowTypeError%":Ji,"%TypedArray%":Zi,"%TypeError%":de,"%Uint8Array%":typeof Uint8Array>"u"?M:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?M:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?M:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?M:Uint32Array,"%URIError%":qi,"%WeakMap%":typeof WeakMap>"u"?M:WeakMap,"%WeakRef%":typeof WeakRef>"u"?M:WeakRef,"%WeakSet%":typeof WeakSet>"u"?M:WeakSet,"%Function.prototype.call%":Te,"%Function.prototype.apply%":Vr,"%Object.defineProperty%":zi,"%Object.getPrototypeOf%":Xi,"%Math.abs%":ki,"%Math.floor%":Wi,"%Math.max%":Hi,"%Math.min%":Gi,"%Math.pow%":Vi,"%Math.round%":Yi,"%Math.sign%":Ki,"%Reflect.getPrototypeOf%":Qi};if(q)try{null.error}catch(e){var ea=q(q(e));te["%Error.prototype%"]=ea}var ta=function e(t){var r;if(t==="%AsyncFunction%")r=ht("async function () {}");else if(t==="%GeneratorFunction%")r=ht("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=ht("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(r=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&q&&(r=q(o.prototype))}return te[t]=r,r},or={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Pe=Re,Le=Ni(),ra=Pe.call(Te,Array.prototype.concat),na=Pe.call(Vr,Array.prototype.splice),fr=Pe.call(Te,String.prototype.replace),$e=Pe.call(Te,String.prototype.slice),ia=Pe.call(Te,RegExp.prototype.exec),aa=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oa=/\\(\\)?/g,fa=function(t){var r=$e(t,0,1),a=$e(t,-1);if(r==="%"&&a!=="%")throw new ye("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&r!=="%")throw new ye("invalid intrinsic syntax, expected opening `%`");var o=[];return fr(t,aa,function(c,h,u,f){o[o.length]=u?fr(f,oa,"$1"):h||c}),o},sa=function(t,r){var a=t,o;if(Le(or,a)&&(o=or[a],a="%"+o[0]+"%"),Le(te,a)){var c=te[a];if(c===he&&(c=ta(a)),typeof c>"u"&&!r)throw new de("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:a,value:c}}throw new ye("intrinsic "+t+" does not exist!")},Yr=function(t,r){if(typeof t!="string"||t.length===0)throw new de("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new de('"allowMissing" argument must be a boolean');if(ia(/^%?[^%]*%?$/,t)===null)throw new ye("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=fa(t),o=a.length>0?a[0]:"",c=sa("%"+o+"%",r),h=c.name,u=c.value,f=!1,d=c.alias;d&&(o=d[0],na(a,ra([0,1],d)));for(var g=1,w=!0;g<a.length;g+=1){var R=a[g],N=$e(R,0,1),A=$e(R,-1);if((N==='"'||N==="'"||N==="`"||A==='"'||A==="'"||A==="`")&&N!==A)throw new ye("property names with quotes must have matching quotes");if((R==="constructor"||!w)&&(f=!0),o+="."+R,h="%"+o+"%",Le(te,h))u=te[h];else if(u!=null){if(!(R in u)){if(!r)throw new de("base intrinsic for "+t+" exists, but the property is not available.");return}if(Se&&g+1>=a.length){var x=Se(u,R);w=!!x,w&&"get"in x&&!("originalValue"in x.get)?u=x.get:u=u[R]}else w=Le(u,R),u=u[R];w&&!f&&(te[h]=u)}}return u},Kr=Yr,zr=Nt,la=zr([Kr("%String.prototype.indexOf%")]),Jr=function(t,r){var a=Kr(t,!!r);return typeof a=="function"&&la(t,".prototype.")>-1?zr([a]):a},pt,sr;function ua(){if(sr)return pt;sr=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,a;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw a}}),a={},t(function(){throw 42},null,r)}catch(E){E!==a&&(t=null)}else t=null;var o=/^\s*class\b/,c=function(b){try{var S=e.call(b);return o.test(S)}catch{return!1}},h=function(b){try{return c(b)?!1:(e.call(b),!0)}catch{return!1}},u=Object.prototype.toString,f="[object Object]",d="[object Function]",g="[object GeneratorFunction]",w="[object HTMLAllCollection]",R="[object HTML document.all class]",N="[object HTMLCollection]",A=typeof Symbol=="function"&&!!Symbol.toStringTag,x=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var v=document.all;u.call(v)===u.call(document.all)&&(y=function(b){if((x||!b)&&(typeof b>"u"||typeof b=="object"))try{var S=u.call(b);return(S===w||S===R||S===N||S===f)&&b("")==null}catch{}return!1})}return pt=t?function(b){if(y(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;try{t(b,null,r)}catch(S){if(S!==a)return!1}return!c(b)&&h(b)}:function(b){if(y(b))return!0;if(!b||typeof b!="function"&&typeof b!="object")return!1;if(A)return h(b);if(c(b))return!1;var S=u.call(b);return S!==d&&S!==g&&!/^\[object HTML/.test(S)?!1:h(b)},pt}var yt,lr;function ca(){if(lr)return yt;lr=1;var e=ua(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,a=function(f,d,g){for(var w=0,R=f.length;w<R;w++)r.call(f,w)&&(g==null?d(f[w],w,f):d.call(g,f[w],w,f))},o=function(f,d,g){for(var w=0,R=f.length;w<R;w++)g==null?d(f.charAt(w),w,f):d.call(g,f.charAt(w),w,f)},c=function(f,d,g){for(var w in f)r.call(f,w)&&(g==null?d(f[w],w,f):d.call(g,f[w],w,f))};function h(u){return t.call(u)==="[object Array]"}return yt=function(f,d,g){if(!e(d))throw new TypeError("iterator must be a function");var w;arguments.length>=3&&(w=g),h(f)?a(f,d,w):typeof f=="string"?o(f,d,w):c(f,d,w)},yt}var vt,ur;function ha(){return ur||(ur=1,vt=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),vt}var bt,cr;function da(){if(cr)return bt;cr=1;var e=ha(),t=typeof globalThis>"u"?Z:globalThis;return bt=function(){for(var a=[],o=0;o<e.length;o++)typeof t[e[o]]=="function"&&(a[a.length]=e[o]);return a},bt}var _t={exports:{}},gt,hr;function pa(){if(hr)return gt;hr=1;var e=ke,t=jr,r=Ae,a=me;return gt=function(c,h,u){if(!c||typeof c!="object"&&typeof c!="function")throw new r("`obj` must be an object or a function`");if(typeof h!="string"&&typeof h!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var f=arguments.length>3?arguments[3]:null,d=arguments.length>4?arguments[4]:null,g=arguments.length>5?arguments[5]:null,w=arguments.length>6?arguments[6]:!1,R=!!a&&a(c,h);if(e)e(c,h,{configurable:g===null&&R?R.configurable:!g,enumerable:f===null&&R?R.enumerable:!f,value:u,writable:d===null&&R?R.writable:!d});else if(w||!f&&!d&&!g)c[h]=u;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},gt}var wt,dr;function ya(){if(dr)return wt;dr=1;var e=ke,t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},wt=t,wt}var Et,pr;function va(){if(pr)return Et;pr=1;var e=Yr,t=pa(),r=ya()(),a=me,o=Ae,c=e("%Math.floor%");return Et=function(u,f){if(typeof u!="function")throw new o("`fn` is not a function");if(typeof f!="number"||f<0||f>4294967295||c(f)!==f)throw new o("`length` must be a positive 32-bit integer");var d=arguments.length>2&&!!arguments[2],g=!0,w=!0;if("length"in u&&a){var R=a(u,"length");R&&!R.configurable&&(g=!1),R&&!R.writable&&(w=!1)}return(g||w||!d)&&(r?t(u,"length",f,!0,!0):t(u,"length",f)),u},Et}var St,yr;function ba(){if(yr)return St;yr=1;var e=Re,t=Dt(),r=Wr;return St=function(){return r(e,t,arguments)},St}var vr;function _a(){return vr||(vr=1,function(e){var t=va(),r=ke,a=Nt,o=ba();e.exports=function(h){var u=a(arguments),f=h.length-(arguments.length-1);return t(u,1+(f>0?f:0),!0)},r?r(e.exports,"apply",{value:o}):e.exports.apply=o}(_t)),_t.exports}var xt,br;function ga(){if(br)return xt;br=1;var e=Ur();return xt=function(){return e()&&!!Symbol.toStringTag},xt}var At,_r;function wa(){if(_r)return At;_r=1;var e=ca(),t=da(),r=_a(),a=Jr,o=me,c=Hr(),h=a("Object.prototype.toString"),u=ga()(),f=typeof globalThis>"u"?Z:globalThis,d=t(),g=a("String.prototype.slice"),w=a("Array.prototype.indexOf",!0)||function(y,v){for(var E=0;E<y.length;E+=1)if(y[E]===v)return E;return-1},R={__proto__:null};u&&o&&c?e(d,function(x){var y=new f[x];if(Symbol.toStringTag in y&&c){var v=c(y),E=o(v,Symbol.toStringTag);if(!E&&v){var b=c(v);E=o(b,Symbol.toStringTag)}R["$"+x]=r(E.get)}}):e(d,function(x){var y=new f[x],v=y.slice||y.set;v&&(R["$"+x]=r(v))});var N=function(y){var v=!1;return e(R,function(E,b){if(!v)try{"$"+E(y)===b&&(v=g(b,1))}catch{}}),v},A=function(y){var v=!1;return e(R,function(E,b){if(!v)try{E(y),v=g(b,1)}catch{}}),v};return At=function(y){if(!y||typeof y!="object")return!1;if(!u){var v=g(h(y),8,-1);return w(d,v)>-1?v:v!=="Object"?!1:A(y)}return o?N(y):null},At}var mt,gr;function Ea(){if(gr)return mt;gr=1;var e=wa();return mt=function(r){return!!e(r)},mt}var Sa=Ae,xa=Jr,Aa=xa("TypedArray.prototype.buffer",!0),ma=Ea(),Ra=Aa||function(t){if(!ma(t))throw new Sa("Not a Typed Array");return t.buffer},K=Q.Buffer,Ta=ei,Pa=Ra,Ba=ArrayBuffer.isView||function(t){try{return Pa(t),!0}catch{return!1}},Oa=typeof Uint8Array<"u",Xr=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",Ca=Xr&&(K.prototype instanceof Uint8Array||K.TYPED_ARRAY_SUPPORT),Ma=function(t,r){if(t instanceof K)return t;if(typeof t=="string")return K.from(t,r);if(Xr&&Ba(t)){if(t.byteLength===0)return K.alloc(0);if(Ca){var a=K.from(t.buffer,t.byteOffset,t.byteLength);if(a.byteLength===t.byteLength)return a}var o=t instanceof Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength),c=K.from(o);if(c.length===t.byteLength)return c}if(Oa&&t instanceof Uint8Array)return K.from(t);var h=Ta(t);if(h)for(var u=0;u<t.length;u+=1){var f=t[u];if(typeof f!="number"||f<0||f>255||~~f!==f)throw new RangeError("Array items must be numbers in the range 0-255.")}if(h||K.isBuffer(t)&&t.constructor&&typeof t.constructor.isBuffer=="function"&&t.constructor.isBuffer(t))return K.from(t);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},Ia=Q.Buffer,Da=Ma;function We(e,t){this._block=Ia.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}We.prototype.update=function(e,t){e=Da(e,t||"utf8");for(var r=this._block,a=this._blockSize,o=e.length,c=this._len,h=0;h<o;){for(var u=c%a,f=Math.min(o-h,a-u),d=0;d<f;d++)r[u+d]=e[h+d];c+=f,h+=f,c%a===0&&this._update(r)}return this._len+=o,this};We.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=this._len*8;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var a=(r&4294967295)>>>0,o=(r-a)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(a,this._blockSize-4)}this._update(this._block);var c=this._hash();return e?c.toString(e):c};We.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var ve=We,Na=V,Qr=ve,Fa=Q.Buffer,La=[1518500249,1859775393,-1894007588,-899497514],$a=new Array(80);function Be(){this.init(),this._w=$a,Qr.call(this,64,56)}Na(Be,Qr);Be.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function ja(e){return e<<5|e>>>27}function Ua(e){return e<<30|e>>>2}function qa(e,t,r,a){return e===0?t&r|~t&a:e===2?t&r|t&a|r&a:t^r^a}Be.prototype._update=function(e){for(var t=this._w,r=this._a|0,a=this._b|0,o=this._c|0,c=this._d|0,h=this._e|0,u=0;u<16;++u)t[u]=e.readInt32BE(u*4);for(;u<80;++u)t[u]=t[u-3]^t[u-8]^t[u-14]^t[u-16];for(var f=0;f<80;++f){var d=~~(f/20),g=ja(r)+qa(d,a,o,c)+h+t[f]+La[d]|0;h=c,c=o,o=Ua(a),a=r,r=g}this._a=r+this._a|0,this._b=a+this._b|0,this._c=o+this._c|0,this._d=c+this._d|0,this._e=h+this._e|0};Be.prototype._hash=function(){var e=Fa.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var ka=Be,Wa=V,Zr=ve,Ha=Q.Buffer,Ga=[1518500249,1859775393,-1894007588,-899497514],Va=new Array(80);function Oe(){this.init(),this._w=Va,Zr.call(this,64,56)}Wa(Oe,Zr);Oe.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function Ya(e){return e<<1|e>>>31}function Ka(e){return e<<5|e>>>27}function za(e){return e<<30|e>>>2}function Ja(e,t,r,a){return e===0?t&r|~t&a:e===2?t&r|t&a|r&a:t^r^a}Oe.prototype._update=function(e){for(var t=this._w,r=this._a|0,a=this._b|0,o=this._c|0,c=this._d|0,h=this._e|0,u=0;u<16;++u)t[u]=e.readInt32BE(u*4);for(;u<80;++u)t[u]=Ya(t[u-3]^t[u-8]^t[u-14]^t[u-16]);for(var f=0;f<80;++f){var d=~~(f/20),g=Ka(r)+Ja(d,a,o,c)+h+t[f]+Ga[d]|0;h=c,c=o,o=za(a),a=r,r=g}this._a=r+this._a|0,this._b=a+this._b|0,this._c=o+this._c|0,this._d=c+this._d|0,this._e=h+this._e|0};Oe.prototype._hash=function(){var e=Ha.allocUnsafe(20);return e.writeInt32BE(this._a|0,0),e.writeInt32BE(this._b|0,4),e.writeInt32BE(this._c|0,8),e.writeInt32BE(this._d|0,12),e.writeInt32BE(this._e|0,16),e};var Xa=Oe,Qa=V,en=ve,Za=Q.Buffer,eo=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],to=new Array(64);function Ce(){this.init(),this._w=to,en.call(this,64,56)}Qa(Ce,en);Ce.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function ro(e,t,r){return r^e&(t^r)}function no(e,t,r){return e&t|r&(e|t)}function io(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function ao(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function oo(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function fo(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}Ce.prototype._update=function(e){for(var t=this._w,r=this._a|0,a=this._b|0,o=this._c|0,c=this._d|0,h=this._e|0,u=this._f|0,f=this._g|0,d=this._h|0,g=0;g<16;++g)t[g]=e.readInt32BE(g*4);for(;g<64;++g)t[g]=fo(t[g-2])+t[g-7]+oo(t[g-15])+t[g-16]|0;for(var w=0;w<64;++w){var R=d+ao(h)+ro(h,u,f)+eo[w]+t[w]|0,N=io(r)+no(r,a,o)|0;d=f,f=u,u=h,h=c+R|0,c=o,o=a,a=r,r=R+N|0}this._a=r+this._a|0,this._b=a+this._b|0,this._c=o+this._c|0,this._d=c+this._d|0,this._e=h+this._e|0,this._f=u+this._f|0,this._g=f+this._g|0,this._h=d+this._h|0};Ce.prototype._hash=function(){var e=Za.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e};var tn=Ce,so=V,lo=tn,uo=ve,co=Q.Buffer,ho=new Array(64);function He(){this.init(),this._w=ho,uo.call(this,64,56)}so(He,lo);He.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this};He.prototype._hash=function(){var e=co.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e};var po=He,yo=V,rn=ve,vo=Q.Buffer,wr=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],bo=new Array(160);function Me(){this.init(),this._w=bo,rn.call(this,128,112)}yo(Me,rn);Me.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function Er(e,t,r){return r^e&(t^r)}function Sr(e,t,r){return e&t|r&(e|t)}function xr(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function Ar(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function _o(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function go(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function wo(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Eo(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function U(e,t){return e>>>0<t>>>0?1:0}Me.prototype._update=function(e){for(var t=this._w,r=this._ah|0,a=this._bh|0,o=this._ch|0,c=this._dh|0,h=this._eh|0,u=this._fh|0,f=this._gh|0,d=this._hh|0,g=this._al|0,w=this._bl|0,R=this._cl|0,N=this._dl|0,A=this._el|0,x=this._fl|0,y=this._gl|0,v=this._hl|0,E=0;E<32;E+=2)t[E]=e.readInt32BE(E*4),t[E+1]=e.readInt32BE(E*4+4);for(;E<160;E+=2){var b=t[E-30],S=t[E-15*2+1],P=_o(b,S),O=go(S,b);b=t[E-2*2],S=t[E-2*2+1];var L=wo(b,S),C=Eo(S,b),B=t[E-7*2],W=t[E-7*2+1],ee=t[E-16*2],ne=t[E-16*2+1],j=O+W|0,H=P+B+U(j,O)|0;j=j+C|0,H=H+L+U(j,C)|0,j=j+ne|0,H=H+ee+U(j,ne)|0,t[E]=H,t[E+1]=j}for(var G=0;G<160;G+=2){H=t[G],j=t[G+1];var be=Sr(r,a,o),z=Sr(g,w,R),ie=xr(r,g),J=xr(g,r),ae=Ar(h,A),_e=Ar(A,h),oe=wr[G],Y=wr[G+1],ge=Er(h,u,f),fe=Er(A,x,y),l=v+_e|0,s=d+ae+U(l,v)|0;l=l+fe|0,s=s+ge+U(l,fe)|0,l=l+Y|0,s=s+oe+U(l,Y)|0,l=l+j|0,s=s+H+U(l,j)|0;var _=J+z|0,T=ie+be+U(_,J)|0;d=f,v=y,f=u,y=x,u=h,x=A,A=N+l|0,h=c+s+U(A,N)|0,c=o,N=R,o=a,R=w,a=r,w=g,g=l+_|0,r=s+T+U(g,l)|0}this._al=this._al+g|0,this._bl=this._bl+w|0,this._cl=this._cl+R|0,this._dl=this._dl+N|0,this._el=this._el+A|0,this._fl=this._fl+x|0,this._gl=this._gl+y|0,this._hl=this._hl+v|0,this._ah=this._ah+r+U(this._al,g)|0,this._bh=this._bh+a+U(this._bl,w)|0,this._ch=this._ch+o+U(this._cl,R)|0,this._dh=this._dh+c+U(this._dl,N)|0,this._eh=this._eh+h+U(this._el,A)|0,this._fh=this._fh+u+U(this._fl,x)|0,this._gh=this._gh+f+U(this._gl,y)|0,this._hh=this._hh+d+U(this._hl,v)|0};Me.prototype._hash=function(){var e=vo.allocUnsafe(64);function t(r,a,o){e.writeInt32BE(r,o),e.writeInt32BE(a,o+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e};var nn=Me,So=V,xo=nn,Ao=ve,mo=Q.Buffer,Ro=new Array(160);function Ge(){this.init(),this._w=Ro,Ao.call(this,128,112)}So(Ge,xo);Ge.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this};Ge.prototype._hash=function(){var e=mo.allocUnsafe(48);function t(r,a,o){e.writeInt32BE(r,o),e.writeInt32BE(a,o+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e};var To=Ge;(function(e){e.exports=function(r){var a=r.toLowerCase(),o=e.exports[a];if(!o)throw new Error(a+" is not supported (we accept pull requests)");return new o},e.exports.sha=ka,e.exports.sha1=Xa,e.exports.sha224=po,e.exports.sha256=tn,e.exports.sha384=To,e.exports.sha512=nn})(Lr);var Oo=Lr.exports;export{Ot as a,Oo as b,V as i,Bo as r,Q as s};