MCPcopy Create free account
hub / github.com/plotly/plotly.py / "node_modules/safe-buffer/index.js"

Function "node_modules/safe-buffer/index.js"

js/lib/mimeExtension.js:17–17  ·  view source on GitHub ↗
(Y,H)

Source from the content-addressed store, hash-verified

15`)>=0&&se++,ce+q.replace(/\u001b\[\d\d?m/g,"").length+1},0);return le>60?J[0]+(X===""?"":X+`
16 `)+" "+O.join(`,
17 `)+" "+J[1]:J[0]+X+" "+O.join(", ")+" "+J[1]}Y.types=S3();function m(O){return Array.isArray(O)}Y.isArray=m;function d(O){return typeof O=="boolean"}Y.isBoolean=d;function T(O){return O===null}Y.isNull=T;function l(O){return O==null}Y.isNullOrUndefined=l;function _(O){return typeof O=="number"}Y.isNumber=_;function w(O){return typeof O=="string"}Y.isString=w;function A(O){return typeof O=="symbol"}Y.isSymbol=A;function M(O){return O===void 0}Y.isUndefined=M;function g(O){return b(O)&&R(O)==="[object RegExp]"}Y.isRegExp=g,Y.types.isRegExp=g;function b(O){return typeof O=="object"&&O!==null}Y.isObject=b;function v(O){return b(O)&&R(O)==="[object Date]"}Y.isDate=v,Y.types.isDate=v;function u(O){return b(O)&&(R(O)==="[object Error]"||O instanceof Error)}Y.isError=u,Y.types.isNativeError=u;function y(O){return typeof O=="function"}Y.isFunction=y;function f(O){return O===null||typeof O=="boolean"||typeof O=="number"||typeof O=="string"||typeof O=="symbol"||typeof O>"u"}Y.isPrimitive=f,Y.isBuffer=M3();function R(O){return Object.prototype.toString.call(O)}function L(O){return O<10?"0"+O.toString(10):O.toString(10)}var z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function F(){var O=new Date,X=[L(O.getHours()),L(O.getMinutes()),L(O.getSeconds())].join(":");return[O.getDate(),z[O.getMonth()],X].join(" ")}Y.log=function(){console.log("%s - %s",F(),Y.format.apply(Y,arguments))},Y.inherits=fp(),Y._extend=function(O,X){if(!X||!b(X))return O;for(var J=Object.keys(X),se=J.length;se--;)O[J[se]]=X[J[se]];return O};function N(O,X){return Object.prototype.hasOwnProperty.call(O,X)}var B=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;Y.promisify=function(X){if(typeof X!="function")throw new TypeError('The "original" argument must be of type Function');if(B&&X[B]){var J=X[B];if(typeof J!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(J,B,{value:J,enumerable:!1,writable:!1,configurable:!0}),J}function J(){for(var se,le,ce=new Promise(function(ee,V){se=ee,le=V}),q=[],Z=0;Z<arguments.length;Z++)q.push(arguments[Z]);q.push(function(ee,V){ee?le(ee):se(V)});try{X.apply(this,q)}catch(ee){le(ee)}return ce}return Object.setPrototypeOf(J,Object.getPrototypeOf(X)),B&&Object.defineProperty(J,B,{value:J,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(J,H(X))},Y.promisify.custom=B;function I(O,X){if(!O){var J=new Error("Promise was rejected with a falsy value");J.reason=O,O=J}return X(O)}function U(O){if(typeof O!="function")throw new TypeError('The "original" argument must be of type Function');function X(){for(var J=[],se=0;se<arguments.length;se++)J.push(arguments[se]);var le=J.pop();if(typeof le!="function")throw new TypeError("The last argument must be of type Function");var ce=this,q=function(){return le.apply(ce,arguments)};O.apply(this,J).then(function(Z){process.nextTick(q.bind(null,null,Z))},function(Z){process.nextTick(I.bind(null,Z,q))})}return Object.setPrototypeOf(X,Object.getPrototypeOf(O)),Object.defineProperties(X,H(O)),X}Y.callbackify=U}}),fC=De({"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(Y,H){"use strict";function p(h,c){var m=Object.keys(h);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(h);c&&(d=d.filter(function(T){return Object.getOwnPropertyDescriptor(h,T).enumerable})),m.push.apply(m,d)}return m}function x(h){for(var c=1;c<arguments.length;c++){var m=arguments[c]!=null?arguments[c]:{};c%2?p(Object(m),!0).forEach(function(d){S(h,d,m[d])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(m)):p(Object(m)).forEach(function(d){Object.defineProperty(h,d,Object.getOwnPropertyDescriptor(m,d))})}return h}function S(h,c,m){return c in h?Object.defineProperty(h,c,{value:m,enumerable:!0,configurable:!0,writable:!0}):h[c]=m,h}function E(h,c){if(!(h instanceof c))throw new TypeError("Cannot call a class as a function")}function e(h,c){for(var m=0;m<c.length;m++){var d=c[m];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(h,d.key,d)}}function t(h,c,m){return c&&e(h.prototype,c),m&&e(h,m),h}var r=X0(),o=r.Buffer,i=E3(),n=i.inspect,a=n&&n.custom||"inspect";function s(h,c,m){o.prototype.copy.call(h,c,m)}H.exports=function(){function h(){E(this,h),this.head=null,this.tail=null,this.length=0}return t(h,[{key:"push",value:function(m){var d={data:m,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length}},{key:"unshift",value:function(m){var d={data:m,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length}},{key:"shift",value:function(){if(this.length!==0){var m=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,m}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(m){if(this.length===0)return"";for(var d=this.head,T=""+d.data;d=d.next;)T+=m+d.data;return T}},{key:"concat",value:function(m){if(this.length===0)return o.alloc(0);for(var d=o.allocUnsafe(m>>>0),T=this.head,l=0;T;)s(T.data,d,l),l+=T.data.length,T=T.next;return d}},{key:"consume",value:function(m,d){var T;return m<this.head.data.length?(T=this.head.data.slice(0,m),this.head.data=this.head.data.slice(m)):m===this.head.data.length?T=this.shift():T=d?this._getString(m):this._getBuffer(m),T}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(m){var d=this.head,T=1,l=d.data;for(m-=l.length;d=d.next;){var _=d.data,w=m>_.length?_.length:m;if(w===_.length?l+=_:l+=_.slice(0,m),m-=w,m===0){w===_.length?(++T,d.next?this.head=d.next:this.head=this.tail=null):(this.head=d,d.data=_.slice(w));break}++T}return this.length-=T,l}},{key:"_getBuffer",value:function(m){var d=o.allocUnsafe(m),T=this.head,l=1;for(T.data.copy(d),m-=T.data.length;T=T.next;){var _=T.data,w=m>_.length?_.length:m;if(_.copy(d,d.length-m,0,w),m-=w,m===0){w===_.length?(++l,T.next?this.head=T.next:this.head=this.tail=null):(this.head=T,T.data=_.slice(w));break}++l}return this.length-=l,d}},{key:a,value:function(m,d){return n(this,x({},d,{depth:0,customInspect:!1}))}}]),h}()}}),k3=De({"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/destroy.js"(Y,H){"use strict";function p(r,o){var i=this,n=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return n||a?(o?o(r):r&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(e,this,r)):process.nextTick(e,this,r)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(r||null,function(s){!o&&s?i._writableState?i._writableState.errorEmitted?process.nextTick(S,i):(i._writableState.errorEmitted=!0,process.nextTick(x,i,s)):process.nextTick(x,i,s):o?(process.nextTick(S,i),o(s)):process.nextTick(S,i)}),this)}function x(r,o){e(r,o),S(r)}function S(r){r._writableState&&!r._writableState.emitClose||r._readableState&&!r._readableState.emitClose||r.emit("close")}function E(){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 e(r,o){r.emit("error",o)}function t(r,o){var i=r._readableState,n=r._writableState;i&&i.autoDestroy||n&&n.autoDestroy?r.destroy(o):r.emit("error",o)}H.exports={destroy:p,undestroy:E,errorOrDestroy:t}}}),Z0=De({"node_modules/stream-browserify/node_modules/readable-stream/errors-browser.js"(Y,H){"use strict";function p(o,i){o.prototype=Object.create(i.prototype),o.prototype.constructor=o,o.__proto__=i}var x={};function S(o,i,n){n||(n=Error);function a(h,c,m){return typeof i=="string"?i:i(h,c,m)}var s=function(h){p(c,h);function c(m,d,T){return h.call(this,a(m,d,T))||this}return c}(n);s.prototype.name=n.name,s.prototype.code=o,x[o]=s}function E(o,i){if(Array.isArray(o)){var n=o.length;return o=o.map(function(a){return String(a)}),n>2?"one of ".concat(i," ").concat(o.slice(0,n-1).join(", "),", or ")+o[n-1]:n===2?"one of ".concat(i," ").concat(o[0]," or ").concat(o[1]):"of ".concat(i," ").concat(o[0])}else return"of ".concat(i," ").concat(String(o))}function e(o,i,n){return o.substr(!n||n<0?0:+n,i.length)===i}function t(o,i,n){return(n===void 0||n>o.length)&&(n=o.length),o.substring(n-i.length,n)===i}function r(o,i,n){return typeof n!="number"&&(n=0),n+i.length>o.length?!1:o.indexOf(i,n)!==-1}S("ERR_INVALID_OPT_VALUE",function(o,i){return'The value "'+i+'" is invalid for option "'+o+'"'},TypeError),S("ERR_INVALID_ARG_TYPE",function(o,i,n){var a;typeof i=="string"&&e(i,"not ")?(a="must not be",i=i.replace(/^not /,"")):a="must be";var s;if(t(o," argument"))s="The ".concat(o," ").concat(a," ").concat(E(i,"type"));else{var h=r(o,".")?"property":"argument";s='The "'.concat(o,'" ').concat(h," ").concat(a," ").concat(E(i,"type"))}return s+=". Received type ".concat(typeof n),s},TypeError),S("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),S("ERR_METHOD_NOT_IMPLEMENTED",function(o){return"The "+o+" method is not implemented"}),S("ERR_STREAM_PREMATURE_CLOSE","Premature close"),S("ERR_STREAM_DESTROYED",function(o){return"Cannot call "+o+" after a stream was destroyed"}),S("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),S("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),S("ERR_STREAM_WRITE_AFTER_END","write after end"),S("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),S("ERR_UNKNOWN_ENCODING",function(o){return"Unknown encoding: "+o},TypeError),S("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),H.exports.codes=x}}),C3=De({"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/state.js"(Y,H){"use strict";var p=Z0().codes.ERR_INVALID_OPT_VALUE;function x(E,e,t){return E.highWaterMark!=null?E.highWaterMark:e?E[t]:null}function S(E,e,t,r){var o=x(e,r,t);if(o!=null){if(!(isFinite(o)&&Math.floor(o)===o)||o<0){var i=r?t:"highWaterMark";throw new p(i,o)}return Math.floor(o)}return E.objectMode?16:16*1024}H.exports={getHighWaterMark:S}}}),hC=De({"node_modules/util-deprecate/browser.js"(Y,H){H.exports=p;function p(S,E){if(x("noDeprecation"))return S;var e=!1;function t(){if(!e){if(x("throwDeprecation"))throw new Error(E);x("traceDeprecation")?console.trace(E):console.warn(E),e=!0}return S.apply(this,arguments)}return t}function x(S){try{if(!window.localStorage)return!1}catch{return!1}var E=window.localStorage[S];return E==null?!1:String(E).toLowerCase()==="true"}}}),L3=De({"node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_writable.js"(Y,H){"use strict";H.exports=v;function p(q){var Z=this;this.next=null,this.entry=null,this.finish=function(){ce(Z,q)}}var x;v.WritableState=g;var S={deprecate:hC()},E=m3(),e=X0().Buffer,t=window.Uint8Array||function(){};function r(q){return e.from(q)}function o(q){return e.isBuffer(q)||q instanceof t}var i=k3(),n=C3(),a=n.getHighWaterMark,s=Z0().codes,h=s.ERR_INVALID_ARG_TYPE,c=s.ERR_METHOD_NOT_IMPLEMENTED,m=s.ERR_MULTIPLE_CALLBACK,d=s.ERR_STREAM_CANNOT_PIPE,T=s.ERR_STREAM_DESTROYED,l=s.ERR_STREAM_NULL_VALUES,_=s.ERR_STREAM_WRITE_AFTER_END,w=s.ERR_UNKNOWN_ENCODING,A=i.errorOrDestroy;fp()(v,E);function M(){}function g(q,Z,ee){x=x||K0(),q=q||{},typeof ee!="boolean"&&(ee=Z instanceof x),this.objectMode=!!q.objectMode,ee&&(this.objectMode=this.objectMode||!!q.writableObjectMode),this.highWaterMark=a(this,q,"writableHighWaterMark",ee),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var V=q.decodeStrings===!1;this.decodeStrings=!V,this.defaultEncoding=q.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(oe){N(Z,oe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=q.emitClose!==!1,this.autoDestroy=!!q.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new p(this)}g.prototype.getBuffer=function(){for(var Z=this.bufferedRequest,ee=[];Z;)ee.push(Z),Z=Z.next;return ee},function(){try{Object.defineProperty(g.prototype,"buffer",{get:S.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var b;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(b=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(Z){return b.call(this,Z)?!0:this!==v?!1:Z&&Z._writableState instanceof g}})):b=function(Z){return Z instanceof this};function v(q){x=x||K0();var Z=this instanceof x;if(!Z&&!b.call(v,this))return new v(q);this._writableState=new g(q,this,Z),this.writable=!0,q&&(typeof q.write=="function"&&(this._write=q.write),typeof q.writev=="function"&&(this._writev=q.writev),typeof q.destroy=="function"&&(this._destroy=q.destroy),typeof q.final=="function"&&(this._final=q.final)),E.call(this)}v.prototype.pipe=function(){A(this,new d)};function u(q,Z){var ee=new _;A(q,ee),process.nextTick(Z,ee)}function y(q,Z,ee,V){var oe;return ee===null?oe=new l:typeof ee!="string"&&!Z.objectMode&&(oe=new h("chunk",["string","Buffer"],ee)),oe?(A(q,oe),process.nextTick(V,oe),!1):!0}v.prototype.write=function(q,Z,ee){var V=this._writableState,oe=!1,ie=!V.objectMode&&o(q);return ie&&!e.isBuffer(q)&&(q=r(q)),typeof Z=="function"&&(ee=Z,Z=null),ie?Z="buffer":Z||(Z=V.defaultEncoding),typeof ee!="function"&&(ee=M),V.ending?u(this,ee):(ie||y(this,V,q,ee))&&(V.pendingcb++,oe=R(this,V,ie,q,Z,ee)),oe},v.prototype.cork=function(){this._writableState.corked++},v.prototype.uncork=function(){var q=this._writableState;q.corked&&(q.corked--,!q.writing&&!q.corked&&!q.bufferProcessing&&q.bufferedRequest&&U(this,q))},v.prototype.setDefaultEncoding=function(Z){if(typeof Z=="string"&&(Z=Z.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Z+"").toLowerCase())>-1))throw new w(Z);return this._writableState.defaultEncoding=Z,this},Object.defineProperty(v.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function f(q,Z,ee){return!q.objectMode&&q.decodeStrings!==!1&&typeof Z=="string"&&(Z=e.from(Z,ee)),Z}Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function R(q,Z,ee,V,oe,ie){if(!ee){var j=f(Z,V,oe);V!==j&&(ee=!0,oe="buffer",V=j)}var Q=Z.objectMode?1:V.length;Z.length+=Q;var re=Z.length<Z.highWaterMark;if(re||(Z.needDrain=!0),Z.writing||Z.corked){var ue=Z.lastBufferedRequest;Z.lastBufferedRequest={chunk:V,encoding:oe,isBuf:ee,callback:ie,next:null},ue?ue.next=Z.lastBufferedRequest:Z.bufferedRequest=Z.lastBufferedRequest,Z.bufferedRequestCount+=1}else L(q,Z,!1,Q,V,oe,ie);return re}function L(q,Z,ee,V,oe,ie,j){Z.writelen=V,Z.writecb=j,Z.writing=!0,Z.sync=!0,Z.destroyed?Z.onwrite(new T("write")):ee?q._writev(oe,Z.onwrite):q._write(oe,ie,Z.onwrite),Z.sync=!1}function z(q,Z,ee,V,oe){--Z.pendingcb,ee?(process.nextTick(oe,V),process.nextTick(se,q,Z),q._writableState.errorEmitted=!0,A(q,V)):(oe(V),q._writableState.errorEmitted=!0,A(q,V),se(q,Z))}function F(q){q.writing=!1,q.writecb=null,q.length-=q.writelen,q.writelen=0}function N(q,Z){var ee=q._writableState,V=ee.sync,oe=ee.writecb;if(typeof oe!="function")throw new m;if(F(ee),Z)z(q,ee,V,Z,oe);else{var ie=O(ee)||q.destroyed;!ie&&!ee.corked&&!ee.bufferProcessing&&ee.bufferedRequest&&U(q,ee),V?process.nextTick(B,q,ee,ie,oe):B(q,ee,ie,oe)}}function B(q,Z,ee,V){ee||I(q,Z),Z.pendingcb--,V(),se(q,Z)}function I(q,Z){Z.length===0&&Z.needDrain&&(Z.needDrain=!1,q.emit("drain"))}function U(q,Z){Z.bufferProcessing=!0;var ee=Z.bufferedRequest;if(q._writev&&ee&&ee.next){var V=Z.bufferedRequestCount,oe=new Array(V),ie=Z.corkedRequestsFree;ie.entry=ee;for(var j=0,Q=!0;ee;)oe[j]=ee,ee.isBuf||(Q=!1),ee=ee.next,j+=1;oe.allBuffers=Q,L(q,Z,!0,Z.length,oe,"",ie.finish),Z.pendingcb++,Z.lastBufferedRequest=null,ie.next?(Z.corkedRequestsFree=ie.next,ie.next=null):Z.corkedRequestsFree=new p(Z),Z.bufferedRequestCount=0}else{for(;ee;){var re=ee.chunk,ue=ee.encoding,_e=ee.callback,we=Z.objectMode?1:re.length;if(L(q,Z,!1,we,re,ue,_e),ee=ee.next,Z.bufferedRequestCount--,Z.writing)break}ee===null&&(Z.lastBufferedRequest=null)}Z.bufferedRequest=ee,Z.bufferProcessing=!1}v.prototype._write=function(q,Z,ee){ee(new c("_write()"))},v.prototype._writev=null,v.prototype.end=function(q,Z,ee){var V=this._writableState;return typeof q=="function"?(ee=q,q=null,Z=null):typeof Z=="function"&&(ee=Z,Z=null),q!=null&&this.write(q,Z),V.corked&&(V.corked=1,this.uncork()),V.ending||le(this,V,ee),this},Object.defineProperty(v.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function O(q){return q.ending&&q.length===0&&q.bufferedRequest===null&&!q.finished&&!q.writing}function X(q,Z){q._final(function(ee){Z.pendingcb--,ee&&A(q,ee),Z.prefinished=!0,q.emit("prefinish"),se(q,Z)})}function J(q,Z){!Z.prefinished&&!Z.finalCalled&&(typeof q._final=="function"&&!Z.destroyed?(Z.pendingcb++,Z.finalCalled=!0,process.nextTick(X,q,Z)):(Z.prefinished=!0,q.emit("prefinish")))}function se(q,Z){var ee=O(Z);if(ee&&(J(q,Z),Z.pendingcb===0&&(Z.finished=!0,q.emit("finish"),Z.autoDestroy))){var V=q._readableState;(!V||V.autoDestroy&&V.endEmitted)&&q.destroy()}return ee}function le(q,Z,ee){Z.ending=!0,se(q,Z),ee&&(Z.finished?process.nextTick(ee):q.once("finish",ee)),Z.ended=!0,q.writable=!1}function ce(q,Z,ee){var V=q.entry;for(q.entry=null;V;){var oe=V.callback;Z.pendingcb--,oe(ee),V=V.next}Z.corkedRequestsFree.next=q}Object.defineProperty(v.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Z){this._writableState&&(this._writableState.destroyed=Z)}}),v.prototype.destroy=i.destroy,v.prototype._undestroy=i.undestroy,v.prototype._destroy=function(q,Z){Z(q)}}}),K0=De({"node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_duplex.js"(Y,H){"use strict";var p=Object.keys||function(n){var a=[];for(var s in n)a.push(s);return a};H.exports=r;var x=P3(),S=L3();for(fp()(r,x),E=p(S.prototype),t=0;t<E.length;t++)e=E[t],r.prototype[e]||(r.prototype[e]=S.prototype[e]);var E,e,t;function r(n){if(!(this instanceof r))return new r(n);x.call(this,n),S.call(this,n),this.allowHalfOpen=!0,n&&(n.readable===!1&&(this.readable=!1),n.writable===!1&&(this.writable=!1),n.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",o)))}Object.defineProperty(r.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(r.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(r.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function o(){this._writableState.ended||process.nextTick(i,this)}function i(n){n.end()}Object.defineProperty(r.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(a){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=a,this._writableState.destroyed=a)}})}}),dC=De({"node_modules/safe-buffer/index.js"(Y,H){var p=X0(),x=p.Buffer;function S(e,t){for(var r in e)t[r]=e[r]}x.from&&x.alloc&&x.allocUnsafe&&x.allocUnsafeSlow?H.exports=p:(S(p,Y),Y.Buffer=E);function E(e,t,r){return x(e,t,r)}E.prototype=Object.create(x.prototype),S(x,E),E.from=function(e,t,r){if(typeof e=="number")throw new TypeError("Argument must not be a number");return x(e,t,r)},E.alloc=function(e,t,r){if(typeof e!="number")throw new TypeError("Argument must be a number");var o=x(e);return t!==void 0?typeof r=="string"?o.fill(t,r):o.fill(t):o.fill(0),o},E.allocUnsafe=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return x(e)},E.allocUnsafeSlow=function(e){if(typeof e!="number")throw new TypeError("Argument must be a number");return p.SlowBuffer(e)}}}),I3=De({"node_modules/stream-browserify/node_modules/string_decoder/lib/string_decoder.js"(Y){"use strict";var H=dC().Buffer,p=H.isEncoding||function(T){switch(T=""+T,T&&T.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 x(T){if(!T)return"utf8";for(var l;;)switch(T){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 T;default:if(l)return;T=(""+T).toLowerCase(),l=!0}}function S(T){var l=x(T);if(typeof l!="string"&&(H.isEncoding===p||!p(T)))throw new Error("Unknown encoding: "+T);return l||T}Y.StringDecoder=E;function E(T){this.encoding=S(T);var l;switch(this.encoding){case"utf16le":this.text=a,this.end=s,l=4;break;case"utf8":this.fillLast=o,l=4;break;case"base64":this.text=h,this.end=c,l=3;break;default:this.write=m,this.end=d;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=H.allocUnsafe(l)}E.prototype.write=function(T){if(T.length===0)return"";var l,_;if(this.lastNeed){if(l=this.fillLast(T),l===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _<T.length?l?l+this.text(T,_):this.text(T,_):l||""},E.prototype.end=n,E.prototype.text=i,E.prototype.fillLast=function(T){if(this.lastNeed<=T.length)return T.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);T.copy(this.lastChar,this.lastTotal-this.lastNeed,0,T.length),this.lastNeed-=T.length};function e(T){return T<=127?0:T>>5===6?2:T>>4===14?3:T>>3===30?4:T>>6===2?-1:-2}function t(T,l,_){var w=l.length-1;if(w<_)return 0;var A=e(l[w]);return A>=0?(A>0&&(T.lastNeed=A-1),A):--w<_||A===-2?0:(A=e(l[w]),A>=0?(A>0&&(T.lastNeed=A-2),A):--w<_||A===-2?0:(A=e(l[w]),A>=0?(A>0&&(A===2?A=0:T.lastNeed=A-3),A):0))}function r(T,l,_){if((l[0]&192)!==128)return T.lastNeed=0,"\uFFFD";if(T.lastNeed>1&&l.length>1){if((l[1]&192)!==128)return T.lastNeed=1,"\uFFFD";if(T.lastNeed>2&&l.length>2&&(l[2]&192)!==128)return T.lastNeed=2,"\uFFFD"}}function o(T){var l=this.lastTotal-this.lastNeed,_=r(this,T,l);if(_!==void 0)return _;if(this.lastNeed<=T.length)return T.copy(this.lastChar,l,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);T.copy(this.lastChar,l,0,T.length),this.lastNeed-=T.length}function i(T,l){var _=t(this,T,l);if(!this.lastNeed)return T.toString("utf8",l);this.lastTotal=_;var w=T.length-(_-this.lastNeed);return T.copy(this.lastChar,0,w),T.toString("utf8",l,w)}function n(T){var l=T&&T.length?this.write(T):"";return this.lastNeed?l+"\uFFFD":l}function a(T,l){if((T.length-l)%2===0){var _=T.toString("utf16le",l);if(_){var w=_.charCodeAt(_.length-1);if(w>=55296&&w<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=T[T.length-2],this.lastChar[1]=T[T.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=T[T.length-1],T.toString("utf16le",l,T.length-1)}function s(T){var l=T&&T.length?this.write(T):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return l+this.lastChar.toString("utf16le",0,_)}return l}function h(T,l){var _=(T.length-l)%3;return _===0?T.toString("base64",l):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=T[T.length-1]:(this.lastChar[0]=T[T.length-2],this.lastChar[1]=T[T.length-1]),T.toString("base64",l,T.length-_))}function c(T){var l=T&&T.length?this.write(T):"";return this.lastNeed?l+this.lastChar.toString("base64",0,3-this.lastNeed):l}function m(T){return T.toString(this.encoding)}function d(T){return T&&T.length?this.write(T):""}}}),yx=De({"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(Y,H){"use strict";var p=Z0().codes.ERR_STREAM_PREMATURE_CLOSE;function x(t){var r=!1;return function(){if(!r){r=!0;for(var o=arguments.length,i=new Array(o),n=0;n<o;n++)i[n]=arguments[n];t.apply(this,i)}}}function S(){}function E(t){return t.setHeader&&typeof t.abort=="function"}function e(t,r,o){if(typeof r=="function")return e(t,null,r);r||(r={}),o=x(o||S);var i=r.readable||r.readable!==!1&&t.readable,n=r.writable||r.writable!==!1&&t.writable,a=function(){t.writable||h()},s=t._writableState&&t._writableState.finished,h=function(){n=!1,s=!0,i||o.call(t)},c=t._readableState&&t._readableState.endEmitted,m=function(){i=!1,c=!0,n||o.call(t)},d=function(w){o.call(t,w)},T=function(){var w;if(i&&!c)return(!t._readableState||!t._readableState.ended)&&(w=new p),o.call(t,w);if(n&&!s)return(!t._writableState||!t._writableState.ended)&&(w=new p),o.call(t,w)},l=function(){t.req.on("finish",h)};return E(t)?(t.on("complete",h),t.on("abort",T),t.req?l():t.on("request",l)):n&&!t._writableState&&(t.on("end",a),t.on("close",a)),t.on("end",m),t.on("finish",h),r.error!==!1&&t.on("error",d),t.on("close",T),function(){t.removeListener("complete",h),t.removeListener("abort",T),t.removeListener("request",l),t.req&&t.req.removeListener("finish",h),t.removeListener("end",a),t.removeListener("close",a),t.removeListener("finish",h),t.removeListener("end",m),t.removeListener("error",d),t.removeListener("close",T)}}H.exports=e}}),vC=De({"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/async_iterator.js"(Y,H){"use strict";var p;function x(l,_,w){return _ in l?Object.defineProperty(l,_,{value:w,enumerable:!0,configurable:!0,writable:!0}):l[_]=w,l}var S=yx(),E=Symbol("lastResolve"),e=Symbol("lastReject"),t=Symbol("error"),r=Symbol("ended"),o=Symbol("lastPromise"),i=Symbol("handlePromise"),n=Symbol("stream");function a(l,_){return{value:l,done:_}}function s(l){var _=l[E];if(_!==null){var w=l[n].read();w!==null&&(l[o]=null,l[E]=null,l[e]=null,_(a(w,!1)))}}function h(l){process.nextTick(s,l)}function c(l,_){return function(w,A){l.then(function(){if(_[r]){w(a(void 0,!0));return}_[i](w,A)},A)}}var m=Object.getPrototypeOf(function(){}),d=Object.setPrototypeOf((p={get stream(){return this[n]},next:function(){var _=this,w=this[t];if(w!==null)return Promise.reject(w);if(this[r])return Promise.resolve(a(void 0,!0));if(this[n].destroyed)return new Promise(function(b,v){process.nextTick(function(){_[t]?v(_[t]):b(a(void 0,!0))})});var A=this[o],M;if(A)M=new Promise(c(A,this));else{var g=this[n].read();if(g!==null)return Promise.resolve(a(g,!1));M=new Promise(this[i])}return this[o]=M,M}},x(p,Symbol.asyncIterator,function(){return this}),x(p,"return",function(){var _=this;return new Promise(function(w,A){_[n].destroy(null,function(M){if(M){A(M);return}w(a(void 0,!0))})})}),p),m),T=function(_){var w,A=Object.create(d,(w={},x(w,n,{value:_,writable:!0}),x(w,E,{value:null,writable:!0}),x(w,e,{value:null,writable:!0}),x(w,t,{value:null,writable:!0}),x(w,r,{value:_._readableState.endEmitted,writable:!0}),x(w,i,{value:function(g,b){var v=A[n].read();v?(A[o]=null,A[E]=null,A[e]=null,g(a(v,!1))):(A[E]=g,A[e]=b)},writable:!0}),w));return A[o]=null,S(_,function(M){if(M&&M.code!=="ERR_STREAM_PREMATURE_CLOSE"){var g=A[e];g!==null&&(A[o]=null,A[E]=null,A[e]=null,g(M)),A[t]=M;return}var b=A[E];b!==null&&(A[o]=null,A[E]=null,A[e]=null,b(a(void 0,!0))),A[r]=!0}),_.on("readable",h.bind(null,A)),A};H.exports=T}}),pC=De({"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/from-browser.js"(Y,H){H.exports=function(){throw new Error("Readable.from is not available in the browser")}}}),P3=De({"node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_readable.js"(Y,H){"use strict";H.exports=y;var p;y.ReadableState=u;var x=N0().EventEmitter,S=function(Q,re){return Q.listeners(re).length},E=m3(),e=X0().Buffer,t=window.Uint8Array||function(){};function r(j){return e.from(j)}function o(j){return e.isBuffer(j)||j instanceof t}var i=E3(),n;i&&i.debuglog?n=i.debuglog("stream"):n=function(){};var a=fC(),s=k3(),h=C3(),c=h.getHighWaterMark,m=Z0().codes,d=m.ERR_INVALID_ARG_TYPE,T=m.ERR_STREAM_PUSH_AFTER_EOF,l=m.ERR_METHOD_NOT_IMPLEMENTED,_=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,w,A,M;fp()(y,E);var g=s.errorOrDestroy,b=["error","close","destroy","pause","resume"];function v(j,Q,re){if(typeof j.prependListener=="function")return j.prependListener(Q,re);!j._events||!j._events[Q]?j.on(Q,re):Array.isArray(j._events[Q])?j._events[Q].unshift(re):j._events[Q]=[re,j._events[Q]]}function u(j,Q,re){p=p||K0(),j=j||{},typeof re!="boolean"&&(re=Q instanceof p),this.objectMode=!!j.objectMode,re&&(this.objectMode=this.objectMode||!!j.readableObjectMode),this.highWaterMark=c(this,j,"readableHighWaterMark",re),this.buffer=new a,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=j.emitClose!==!1,this.autoDestroy=!!j.autoDestroy,this.destroyed=!1,this.defaultEncoding=j.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,j.encoding&&(w||(w=I3().StringDecoder),this.decoder=new w(j.encoding),this.encoding=j.encoding)}function y(j){if(p=p||K0(),!(this instanceof y))return new y(j);var Q=this instanceof p;this._readableState=new u(j,this,Q),this.readable=!0,j&&(typeof j.read=="function"&&(this._read=j.read),typeof j.destroy=="function"&&(this._destroy=j.destroy)),E.call(this)}Object.defineProperty(y.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(Q){this._readableState&&(this._readableState.destroyed=Q)}}),y.prototype.destroy=s.destroy,y.prototype._undestroy=s.undestroy,y.prototype._destroy=function(j,Q){Q(j)},y.prototype.push=function(j,Q){var re=this._readableState,ue;return re.objectMode?ue=!0:typeof j=="string"&&(Q=Q||re.defaultEncoding,Q!==re.encoding&&(j=e.from(j,Q),Q=""),ue=!0),f(this,j,Q,!1,ue)},y.prototype.unshift=function(j){return f(this,j,null,!0,!1)};function f(j,Q,re,ue,_e){n("readableAddChunk",Q);var we=j._readableState;if(Q===null)we.reading=!1,B(j,we);else{var Re;if(_e||(Re=L(we,Q)),Re)g(j,Re);else if(we.objectMode||Q&&Q.length>0)if(typeof Q!="string"&&!we.objectMode&&Object.getPrototypeOf(Q)!==e.prototype&&(Q=r(Q)),ue)we.endEmitted?g(j,new _):R(j,we,Q,!0);else if(we.ended)g(j,new T);else{if(we.destroyed)return!1;we.reading=!1,we.decoder&&!re?(Q=we.decoder.write(Q),we.objectMode||Q.length!==0?R(j,we,Q,!1):O(j,we)):R(j,we,Q,!1)}else ue||(we.reading=!1,O(j,we))}return!we.ended&&(we.length<we.highWaterMark||we.length===0)}function R(j,Q,re,ue){Q.flowing&&Q.length===0&&!Q.sync?(Q.awaitDrain=0,j.emit("data",re)):(Q.length+=Q.objectMode?1:re.length,ue?Q.buffer.unshift(re):Q.buffer.push(re),Q.needReadable&&I(j)),O(j,Q)}function L(j,Q){var re;return!o(Q)&&typeof Q!="string"&&Q!==void 0&&!j.objectMode&&(re=new d("chunk",["string","Buffer","Uint8Array"],Q)),re}y.prototype.isPaused=function(){return this._readableState.flowing===!1},y.prototype.setEncoding=function(j){w||(w=I3().StringDecoder);var Q=new w(j);this._readableState.decoder=Q,this._readableState.encoding=this._readableState.decoder.encoding;for(var re=this._readableState.buffer.head,ue="";re!==null;)ue+=Q.write(re.data),re=re.next;return this._readableState.buffer.clear(),ue!==""&&this._readableState.buffer.push(ue),this._readableState.length=ue.length,this};var z=1073741824;function F(j){return j>=z?j=z:(j--,j|=j>>>1,j|=j>>>2,j|=j>>>4,j|=j>>>8,j|=j>>>16,j++),j}function N(j,Q){return j<=0||Q.length===0&&Q.ended?0:Q.objectMode?1:j!==j?Q.flowing&&Q.length?Q.buffer.head.data.length:Q.length:(j>Q.highWaterMark&&(Q.highWaterMark=F(j)),j<=Q.length?j:Q.ended?Q.length:(Q.needReadable=!0,0))}y.prototype.read=function(j){n("read",j),j=parseInt(j,10);var Q=this._readableState,re=j;if(j!==0&&(Q.emittedReadable=!1),j===0&&Q.needReadable&&((Q.highWaterMark!==0?Q.length>=Q.highWaterMark:Q.length>0)||Q.ended))return n("read: emitReadable",Q.length,Q.ended),Q.length===0&&Q.ended?V(this):I(this),null;if(j=N(j,Q),j===0&&Q.ended)return Q.length===0&&V(this),null;var ue=Q.needReadable;n("need readable",ue),(Q.length===0||Q.length-j<Q.highWaterMark)&&(ue=!0,n("length less than watermark",ue)),Q.ended||Q.reading?(ue=!1,n("reading or ended",ue)):ue&&(n("do read"),Q.reading=!0,Q.sync=!0,Q.length===0&&(Q.needReadable=!0),this._read(Q.highWaterMark),Q.sync=!1,Q.reading||(j=N(re,Q)));var _e;return j>0?_e=ee(j,Q):_e=null,_e===null?(Q.needReadable=Q.length<=Q.highWaterMark,j=0):(Q.length-=j,Q.awaitDrain=0),Q.length===0&&(Q.ended||(Q.needReadable=!0),re!==j&&Q.ended&&V(this)),_e!==null&&this.emit("data",_e),_e};function B(j,Q){if(n("onEofChunk"),!Q.ended){if(Q.decoder){var re=Q.decoder.end();re&&re.length&&(Q.buffer.push(re),Q.length+=Q.objectMode?1:re.length)}Q.ended=!0,Q.sync?I(j):(Q.needReadable=!1,Q.emittedReadable||(Q.emittedReadable=!0,U(j)))}}function I(j){var Q=j._readableState;n("emitReadable",Q.needReadable,Q.emittedReadable),Q.needReadable=!1,Q.emittedReadable||(n("emitReadable",Q.flowing),Q.emittedReadable=!0,process.nextTick(U,j))}function U(j){var Q=j._readableState;n("emitReadable_",Q.destroyed,Q.length,Q.ended),!Q.destroyed&&(Q.length||Q.ended)&&(j.emit("readable"),Q.emittedReadable=!1),Q.needReadable=!Q.flowing&&!Q.ended&&Q.length<=Q.highWaterMark,Z(j)}function O(j,Q){Q.readingMore||(Q.readingMore=!0,process.nextTick(X,j,Q))}function X(j,Q){for(;!Q.reading&&!Q.ended&&(Q.length<Q.highWaterMark||Q.flowing&&Q.length===0);){var re=Q.length;if(n("maybeReadMore read 0"),j.read(0),re===Q.length)break}Q.readingMore=!1}y.prototype._read=function(j){g(this,new l("_read()"))},y.prototype.pipe=function(j,Q){var re=this,ue=this._readableState;switch(ue.pipesCount){case 0:ue.pipes=j;break;case 1:ue.pipes=[ue.pipes,j];break;default:ue.pipes.push(j);break}ue.pipesCount+=1,n("pipe count=%d opts=%j",ue.pipesCount,Q);var _e=(!Q||Q.end!==!1)&&j!==process.stdout&&j!==process.stderr,we=_e?ze:fe;ue.endEmitted?process.nextTick(we):re.once("end",we),j.on("unpipe",Re);function Re(Be,Qe){n("onunpipe"),Be===re&&Qe&&Qe.hasUnpiped===!1&&(Qe.hasUnpiped=!0,it())}function ze(){n("onend"),j.end()}var Xe=J(re);j.on("drain",Xe);var tt=!1;function it(){n("cleanup"),j.removeListener("close",Ae),j.removeListener("finish",me),j.removeListener("drain",Xe),j.removeListener("error",nt),j.removeListener("unpipe",Re),re.removeListener("end",ze),re.removeListener("end",fe),re.removeListener("data",et),tt=!0,ue.awaitDrain&&(!j._writableState||j._writableState.needDrain)&&Xe()}re.on("data",et);function et(Be){n("ondata");var Qe=j.write(Be);n("dest.write",Qe),Qe===!1&&((ue.pipesCount===1&&ue.pipes===j||ue.pipesCount>1&&ie(ue.pipes,j)!==-1)&&!tt&&(n("false write response, pause",ue.awaitDrain),ue.awaitDrain++),re.pause())}function nt(Be){n("onerror",Be),fe(),j.removeListener("error",nt),S(j,"error")===0&&g(j,Be)}v(j,"error",nt);function Ae(){j.removeListener("finish",me),fe()}j.once("close",Ae);function me(){n("onfinish"),j.removeListener("close",Ae),fe()}j.once("finish",me);function fe(){n("unpipe"),re.unpipe(j)}return j.emit("pipe",re),ue.flowing||(n("pipe resume"),re.resume()),j};function J(j){return function(){var re=j._readableState;n("pipeOnDrain",re.awaitDrain),re.awaitDrain&&re.awaitDrain--,re.awaitDrain===0&&S(j,"data")&&(re.flowing=!0,Z(j))}}y.prototype.unpipe=function(j){var Q=this._readableState,re={hasUnpiped:!1};if(Q.pipesCount===0)return this;if(Q.pipesCount===1)return j&&j!==Q.pipes?this:(j||(j=Q.pipes),Q.pipes=null,Q.pipesCount=0,Q.flowing=!1,j&&j.emit("unpipe",this,re),this);if(!j){var ue=Q.pipes,_e=Q.pipesCount;Q.pipes=null,Q.pipesCount=0,Q.flowing=!1;for(var we=0;we<_e;we++)ue[we].emit("unpipe",this,{hasUnpiped:!1});return this}var Re=ie(Q.pipes,j);return Re===-1?this:(Q.pipes.splice(Re,1),Q.pipesCount-=1,Q.pipesCount===1&&(Q.pipes=Q.pipes[0]),j.emit("unpipe",this,re),this)},y.prototype.on=function(j,Q){var re=E.prototype.on.call(this,j,Q),ue=this._readableState;return j==="data"?(ue.readableListening=this.listenerCount("readable")>0,ue.flowing!==!1&&this.resume()):j==="readable"&&!ue.endEmitted&&!ue.readableListening&&(ue.readableListening=ue.needReadable=!0,ue.flowing=!1,ue.emittedReadable=!1,n("on readable",ue.length,ue.reading),ue.length?I(this):ue.reading||process.nextTick(le,this)),re},y.prototype.addListener=y.prototype.on,y.prototype.removeListener=function(j,Q){var re=E.prototype.removeListener.call(this,j,Q);return j==="readable"&&process.nextTick(se,this),re},y.prototype.removeAllListeners=function(j){var Q=E.prototype.removeAllListeners.apply(this,arguments);return(j==="readable"||j===void 0)&&process.nextTick(se,this),Q};function se(j){var Q=j._readableState;Q.readableListening=j.listenerCount("readable")>0,Q.resumeScheduled&&!Q.paused?Q.flowing=!0:j.listenerCount("data")>0&&j.resume()}function le(j){n("readable nexttick read 0"),j.read(0)}y.prototype.resume=function(){var j=this._readableState;return j.flowing||(n("resume"),j.flowing=!j.readableListening,ce(this,j)),j.paused=!1,this};function ce(j,Q){Q.resumeScheduled||(Q.resumeScheduled=!0,process.nextTick(q,j,Q))}function q(j,Q){n("resume",Q.reading),Q.reading||j.read(0),Q.resumeScheduled=!1,j.emit("resume"),Z(j),Q.flowing&&!Q.reading&&j.read(0)}y.prototype.pause=function(){return n("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(n("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function Z(j){var Q=j._readableState;for(n("flow",Q.flowing);Q.flowing&&j.read()!==null;);}y.prototype.wrap=function(j){var Q=this,re=this._readableState,ue=!1;j.on("end",function(){if(n("wrapped end"),re.decoder&&!re.ended){var Re=re.decoder.end();Re&&Re.length&&Q.push(Re)}Q.push(null)}),j.on("data",function(Re){if(n("wrapped data"),re.decoder&&(Re=re.decoder.write(Re)),!(re.objectMode&&Re==null)&&!(!re.objectMode&&(!Re||!Re.length))){var ze=Q.push(Re);ze||(ue=!0,j.pause())}});for(var _e in j)this[_e]===void 0&&typeof j[_e]=="function"&&(this[_e]=function(ze){return function(){return j[ze].apply(j,arguments)}}(_e));for(var we=0;we<b.length;we++)j.on(b[we],this.emit.bind(this,b[we]));return this._read=function(Re){n("wrapped _read",Re),ue&&(ue=!1,j.resume())},this},typeof Symbol=="function"&&(y.prototype[Symbol.asyncIterator]=function(){return A===void 0&&(A=vC()),A(this)}),Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(y.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(y.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Q){this._readableState&&(this._readableState.flowing=Q)}}),y._fromList=ee,Object.defineProperty(y.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function ee(j,Q){if(Q.length===0)return null;var re;return Q.objectMode?re=Q.buffer.shift():!j||j>=Q.length?(Q.decoder?re=Q.buffer.join(""):Q.buffer.length===1?re=Q.buffer.first():re=Q.buffer.concat(Q.length),Q.buffer.clear()):re=Q.buffer.consume(j,Q.decoder),re}function V(j){var Q=j._readableState;n("endReadable",Q.endEmitted),Q.endEmitted||(Q.ended=!0,process.nextTick(oe,Q,j))}function oe(j,Q){if(n("endReadableNT",j.endEmitted,j.length),!j.endEmitted&&j.length===0&&(j.endEmitted=!0,Q.readable=!1,Q.emit("end"),j.autoDestroy)){var re=Q._writableState;(!re||re.autoDestroy&&re.finished)&&Q.destroy()}}typeof Symbol=="function"&&(y.from=function(j,Q){return M===void 0&&(M=pC()),M(y,j,Q)});function ie(j,Q){for(var re=0,ue=j.length;re<ue;re++)if(j[re]===Q)return re;return-1}}}),R3=De({"node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_transform.js"(Y,H){"use strict";H.exports=o;var p=Z0().codes,x=p.ERR_METHOD_NOT_IMPLEMENTED,S=p.ERR_MULTIPLE_CALLBACK,E=p.ERR_TRANSFORM_ALREADY_TRANSFORMING,e=p.ERR_TRANSFORM_WITH_LENGTH_0,t=K0();fp()(o,t);function r(a,s){var h=this._transformState;h.transforming=!1;var c=h.writecb;if(c===null)return this.emit("error",new S);h.writechunk=null,h.writecb=null,s!=null&&this.push(s),c(a);var m=this._readableState;m.reading=!1,(m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}function o(a){if(!(this instanceof o))return new o(a);t.call(this,a),this._transformState={afterTransform:r.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,a&&(typeof a.transform=="function"&&(this._transform=a.transform),typeof a.flush=="function"&&(this._flush=a.flush)),this.on("prefinish",i)}function i(){var a=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(s,h){n(a,s,h)}):n(this,null,null)}o.prototype.push=function(a,s){return this._transformState.needTransform=!1,t.prototype.push.call(this,a,s)},o.prototype._transform=function(a,s,h){h(new x("_transform()"))},o.prototype._write=function(a,s,h){var c=this._transformState;if(c.writecb=h,c.writechunk=a,c.writeencoding=s,!c.transforming){var m=this._readableState;(c.needTransform||m.needReadable||m.length<m.highWaterMark)&&this._read(m.highWaterMark)}},o.prototype._read=function(a){var s=this._transformState;s.writechunk!==null&&!s.transforming?(s.transforming=!0,this._transform(s.writechunk,s.writeencoding,s.afterTransform)):s.needTransform=!0},o.prototype._destroy=function(a,s){t.prototype._destroy.call(this,a,function(h){s(h)})};function n(a,s,h){if(s)return a.emit("error",s);if(h!=null&&a.push(h),a._writableState.length)throw new e;if(a._transformState.transforming)throw new E;return a.push(null)}}}),mC=De({"node_modules/stream-browserify/node_modules/readable-stream/lib/_stream_passthrough.js"(Y,H){"use strict";H.exports=x;var p=R3();fp()(x,p);function x(S){if(!(this instanceof x))return new x(S);p.call(this,S)}x.prototype._transform=function(S,E,e){e(null,S)}}}),gC=De({"node_modules/stream-browserify/node_modules/readable-stream/lib/internal/streams/pipeline.js"(Y,H){"use strict";var p;function x(h){var c=!1;return function(){c||(c=!0,h.apply(void 0,arguments))}}var S=Z0().codes,E=S.ERR_MISSING_ARGS,e=S.ERR_STREAM_DESTROYED;function t(h){if(h)throw h}function r(h){return h.setHeader&&typeof h.abort=="function"}function o(h,c,m,d){d=x(d);var T=!1;h.on("close",function(){T=!0}),p===void 0&&(p=yx()),p(h,{readable:c,writable:m},function(_){if(_)return d(_);T=!0,d()});var l=!1;return function(_){if(!T&&!l){if(l=!0,r(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();d(_||new e("pipe"))}}}function i(h){h()}function n(h,c){return h.pipe(c)}function a(h){return!h.length||typeof h[h.length-1]!="function"?t:h.pop()}function s(){for(var h=arguments.length,c=new Array(h),m=0;m<h;m++)c[m]=arguments[m];var d=a(c);if(Array.isArray(c[0])&&(c=c[0]),c.length<2)throw new E("streams");var T,l=c.map(function(_,w){var A=w<c.length-1,M=w>0;return o(_,A,M,function(g){T||(T=g),g&&l.forEach(i),!A&&(l.forEach(i),d(T))})});return c.reduce(n)}H.exports=s}}),yC=De({"node_modules/stream-browserify/index.js"(Y,H){H.exports=S;var p=N0().EventEmitter,x=fp();x(S,p),S.Readable=P3(),S.Writable=L3(),S.Duplex=K0(),S.Transform=R3(),S.PassThrough=mC(),S.finished=yx(),S.pipeline=gC(),S.Stream=S;function S(){p.call(this)}S.prototype.pipe=function(E,e){var t=this;function r(c){E.writable&&E.write(c)===!1&&t.pause&&t.pause()}t.on("data",r);function o(){t.readable&&t.resume&&t.resume()}E.on("drain",o),!E._isStdio&&(!e||e.end!==!1)&&(t.on("end",n),t.on("close",a));var i=!1;function n(){i||(i=!0,E.end())}function a(){i||(i=!0,typeof E.destroy=="function"&&E.destroy())}function s(c){if(h(),p.listenerCount(this,"error")===0)throw c}t.on("error",s),E.on("error",s);function h(){t.removeListener("data",r),E.removeListener("drain",o),t.removeListener("end",n),t.removeListener("close",a),t.removeListener("error",s),E.removeListener("error",s),t.removeListener("end",h),t.removeListener("close",h),E.removeListener("close",h)}return t.on("end",h),t.on("close",h),E.on("close",h),E.emit("pipe",t),E}}}),dg=De({"node_modules/util/util.js"(Y){var H=Object.getOwnPropertyDescriptors||function(X){for(var J=Object.keys(X),se={},le=0;le<J.length;le++)se[J[le]]=Object.getOwnPropertyDescriptor(X,J[le]);return se},p=/%[sdj%]/g;Y.format=function(O){if(!w(O)){for(var X=[],J=0;J<arguments.length;J++)X.push(e(arguments[J]));return X.join(" ")}for(var J=1,se=arguments,le=se.length,ce=String(O).replace(p,function(Z){if(Z==="%%")return"%";if(J>=le)return Z;switch(Z){case"%s":return String(se[J++]);case"%d":return Number(se[J++]);case"%j":try{return JSON.stringify(se[J++])}catch{return"[Circular]"}default:return Z}}),q=se[J];J<le;q=se[++J])T(q)||!b(q)?ce+=" "+q:ce+=" "+e(q);return ce},Y.deprecate=function(O,X){if(typeof process<"u"&&process.noDeprecation===!0)return O;if(typeof process>"u")return function(){return Y.deprecate(O,X).apply(this,arguments)};var J=!1;function se(){if(!J){if(process.throwDeprecation)throw new Error(X);process.traceDeprecation?console.trace(X):console.error(X),J=!0}return O.apply(this,arguments)}return se};var x={},S=/^$/;E="false",E=E.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),S=new RegExp("^"+E+"$","i");var E;Y.debuglog=function(O){if(O=O.toUpperCase(),!x[O])if(S.test(O)){var X=process.pid;x[O]=function(){var J=Y.format.apply(Y,arguments);console.error("%s %d: %s",O,X,J)}}else x[O]=function(){};return x[O]};function e(O,X){var J={seen:[],stylize:r};return arguments.length>=3&&(J.depth=arguments[2]),arguments.length>=4&&(J.colors=arguments[3]),d(X)?J.showHidden=X:X&&Y._extend(J,X),M(J.showHidden)&&(J.showHidden=!1),M(J.depth)&&(J.depth=2),M(J.colors)&&(J.colors=!1),M(J.customInspect)&&(J.customInspect=!0),J.colors&&(J.stylize=t),i(J,O,J.depth)}Y.inspect=e,e.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},e.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function t(O,X){var J=e.styles[X];return J?"\x1B["+e.colors[J][0]+"m"+O+"\x1B["+e.colors[J][1]+"m":O}function r(O,X){return O}function o(O){var X={};return O.forEach(function(J,se){X[J]=!0}),X}function i(O,X,J){if(O.customInspect&&X&&y(X.inspect)&&X.inspect!==Y.inspect&&!(X.constructor&&X.constructor.prototype===X)){var se=X.inspect(J,O);return w(se)||(se=i(O,se,J)),se}var le=n(O,X);if(le)return le;var ce=Object.keys(X),q=o(ce);if(O.showHidden&&(ce=Object.getOwnPropertyNames(X)),u(X)&&(ce.indexOf("message")>=0||ce.indexOf("description")>=0))return a(X);if(ce.length===0){if(y(X)){var Z=X.name?": "+X.name:"";return O.stylize("[Function"+Z+"]","special")}if(g(X))return O.stylize(RegExp.prototype.toString.call(X),"regexp");if(v(X))return O.stylize(Date.prototype.toString.call(X),"date");if(u(X))return a(X)}var ee="",V=!1,oe=["{","}"];if(m(X)&&(V=!0,oe=["[","]"]),y(X)){var ie=X.name?": "+X.name:"";ee=" [Function"+ie+"]"}if(g(X)&&(ee=" "+RegExp.prototype.toString.call(X)),v(X)&&(ee=" "+Date.prototype.toUTCString.call(X)),u(X)&&(ee=" "+a(X)),ce.length===0&&(!V||X.length==0))return oe[0]+ee+oe[1];if(J<0)return g(X)?O.stylize(RegExp.prototype.toString.call(X),"regexp"):O.stylize("[Object]","special");O.seen.push(X);var j;return V?j=s(O,X,J,q,ce):j=ce.map(function(Q){return h(O,X,J,q,Q,V)}),O.seen.pop(),c(j,ee,oe)}function n(O,X){if(M(X))return O.stylize("undefined","undefined");if(w(X)){var J="'"+JSON.stringify(X).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return O.stylize(J,"string")}if(_(X))return O.stylize(""+X,"number");if(d(X))return O.stylize(""+X,"boolean");if(T(X))return O.stylize("null","null")}function a(O){return"["+Error.prototype.toString.call(O)+"]"}function s(O,X,J,se,le){for(var ce=[],q=0,Z=X.length;q<Z;++q)N(X,String(q))?ce.push(h(O,X,J,se,String(q),!0)):ce.push("");return le.forEach(function(ee){ee.match(/^\d+$/)||ce.push(h(O,X,J,se,ee,!0))}),ce}function h(O,X,J,se,le,ce){var q,Z,ee;if(ee=Object.getOwnPropertyDescriptor(X,le)||{value:X[le]},ee.get?ee.set?Z=O.stylize("[Getter/Setter]","special"):Z=O.stylize("[Getter]","special"):ee.set&&(Z=O.stylize("[Setter]","special")),N(se,le)||(q="["+le+"]"),Z||(O.seen.indexOf(ee.value)<0?(T(J)?Z=i(O,ee.value,null):Z=i(O,ee.value,J-1),Z.indexOf(`
18`)>-1&&(ce?Z=Z.split(`
19`).map(function(V){return" "+V}).join(`
20`).slice(2):Z=`

Callers

nothing calls this directly

Calls 4

SFunction · 0.70
xFunction · 0.70
createMethod · 0.45
fillMethod · 0.45

Tested by

no test coverage detected