@dcl/profile-site 0.6.3-5895493311.commit-255ec34 → 0.6.3-5895692123.commit-fc3ae7c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/index-0d31b363.js +960 -0
- package/assets/{index-0314edb9.js → index-277b1fc3.js} +1 -1
- package/assets/{index-7016233e.css → index-3ad33c15.css} +3 -3
- package/assets/{index-29cca6e9.js → index-927fe0af.js} +1 -1
- package/assets/{index-d2c7edbc.js → index-96013afc.js} +7 -7
- package/index.html +5 -5
- package/package.json +3 -3
- package/assets/dijkstra-f906a09e.js +0 -1
- package/assets/fortmatic-f0d7c13f.js +0 -13
- package/assets/index-21d487c4.js +0 -350
- package/assets/index-93f53b27.js +0 -551
- package/assets/index-e228a79b.js +0 -4
- package/assets/index-fa5c9f62.js +0 -1
- package/assets/index.es-8eced348.js +0 -33
- package/assets/tslib.es6-c2094241.js +0 -14
package/assets/index-e228a79b.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{j as Ar,f as Ze,r as an,b as F,d as Q,c as ee,B as me,u as ai}from"./index-21d487c4.js";var vr={exports:{}},on=Ar.EventEmitter,fr,jr;function oi(){if(jr)return fr;jr=1;function e(m,E){var v=Object.keys(m);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(m);E&&(g=g.filter(function(x){return Object.getOwnPropertyDescriptor(m,x).enumerable})),v.push.apply(v,g)}return v}function t(m){for(var E=1;E<arguments.length;E++){var v=arguments[E]!=null?arguments[E]:{};E%2?e(Object(v),!0).forEach(function(g){r(m,g,v[g])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(v)):e(Object(v)).forEach(function(g){Object.defineProperty(m,g,Object.getOwnPropertyDescriptor(v,g))})}return m}function r(m,E,v){return E=f(E),E in m?Object.defineProperty(m,E,{value:v,enumerable:!0,configurable:!0,writable:!0}):m[E]=v,m}function n(m,E){if(!(m instanceof E))throw new TypeError("Cannot call a class as a function")}function i(m,E){for(var v=0;v<E.length;v++){var g=E[v];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,f(g.key),g)}}function a(m,E,v){return E&&i(m.prototype,E),v&&i(m,v),Object.defineProperty(m,"prototype",{writable:!1}),m}function f(m){var E=u(m,"string");return typeof E=="symbol"?E:String(E)}function u(m,E){if(typeof m!="object"||m===null)return m;var v=m[Symbol.toPrimitive];if(v!==void 0){var g=v.call(m,E||"default");if(typeof g!="object")return g;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(m)}var h=Ze(),d=h.Buffer,y=an,R=y.inspect,_=R&&R.custom||"inspect";function w(m,E,v){d.prototype.copy.call(m,E,v)}return fr=function(){function m(){n(this,m),this.head=null,this.tail=null,this.length=0}return a(m,[{key:"push",value:function(v){var g={data:v,next:null};this.length>0?this.tail.next=g:this.head=g,this.tail=g,++this.length}},{key:"unshift",value:function(v){var g={data:v,next:this.head};this.length===0&&(this.tail=g),this.head=g,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var g=this.head,x=""+g.data;g=g.next;)x+=v+g.data;return x}},{key:"concat",value:function(v){if(this.length===0)return d.alloc(0);for(var g=d.allocUnsafe(v>>>0),x=this.head,A=0;x;)w(x.data,g,A),A+=x.data.length,x=x.next;return g}},{key:"consume",value:function(v,g){var x;return v<this.head.data.length?(x=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):v===this.head.data.length?x=this.shift():x=g?this._getString(v):this._getBuffer(v),x}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var g=this.head,x=1,A=g.data;for(v-=A.length;g=g.next;){var T=g.data,C=v>T.length?T.length:v;if(C===T.length?A+=T:A+=T.slice(0,v),v-=C,v===0){C===T.length?(++x,g.next?this.head=g.next:this.head=this.tail=null):(this.head=g,g.data=T.slice(C));break}++x}return this.length-=x,A}},{key:"_getBuffer",value:function(v){var g=d.allocUnsafe(v),x=this.head,A=1;for(x.data.copy(g),v-=x.data.length;x=x.next;){var T=x.data,C=v>T.length?T.length:v;if(T.copy(g,g.length-v,0,C),v-=C,v===0){C===T.length?(++A,x.next?this.head=x.next:this.head=this.tail=null):(this.head=x,x.data=T.slice(C));break}++A}return this.length-=A,g}},{key:_,value:function(v,g){return R(this,t(t({},g),{},{depth:0,customInspect:!1}))}}]),m}(),fr}function si(e,t){var r=this,n=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;return n||i?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,F.nextTick(wr,this,e)):F.nextTick(wr,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(a){!t&&a?r._writableState?r._writableState.errorEmitted?F.nextTick(Je,r):(r._writableState.errorEmitted=!0,F.nextTick(Lr,r,a)):F.nextTick(Lr,r,a):t?(F.nextTick(Je,r),t(a)):F.nextTick(Je,r)}),this)}function Lr(e,t){wr(e,t),Je(e)}function Je(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function fi(){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 wr(e,t){e.emit("error",t)}function ui(e,t){var r=e._readableState,n=e._writableState;r&&r.autoDestroy||n&&n.autoDestroy?e.destroy(t):e.emit("error",t)}var sn={destroy:si,undestroy:fi,errorOrDestroy:ui},Se={};function li(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var fn={};function Z(e,t,r){r||(r=Error);function n(a,f,u){return typeof t=="string"?t:t(a,f,u)}var i=function(a){li(f,a);function f(u,h,d){return a.call(this,n(u,h,d))||this}return f}(r);i.prototype.name=r.name,i.prototype.code=e,fn[e]=i}function Dr(e,t){if(Array.isArray(e)){var r=e.length;return e=e.map(function(n){return String(n)}),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 ci(e,t,r){return e.substr(!r||r<0?0:+r,t.length)===t}function hi(e,t,r){return(r===void 0||r>e.length)&&(r=e.length),e.substring(r-t.length,r)===t}function di(e,t,r){return typeof r!="number"&&(r=0),r+t.length>e.length?!1:e.indexOf(t,r)!==-1}Z("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);Z("ERR_INVALID_ARG_TYPE",function(e,t,r){var n;typeof t=="string"&&ci(t,"not ")?(n="must not be",t=t.replace(/^not /,"")):n="must be";var i;if(hi(e," argument"))i="The ".concat(e," ").concat(n," ").concat(Dr(t,"type"));else{var a=di(e,".")?"property":"argument";i='The "'.concat(e,'" ').concat(a," ").concat(n," ").concat(Dr(t,"type"))}return i+=". Received type ".concat(typeof r),i},TypeError);Z("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");Z("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});Z("ERR_STREAM_PREMATURE_CLOSE","Premature close");Z("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});Z("ERR_MULTIPLE_CALLBACK","Callback called multiple times");Z("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");Z("ERR_STREAM_WRITE_AFTER_END","write after end");Z("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);Z("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);Z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");Se.codes=fn;var _i=Se.codes.ERR_INVALID_OPT_VALUE;function pi(e,t,r){return e.highWaterMark!=null?e.highWaterMark:t?e[r]:null}function bi(e,t,r,n){var i=pi(t,n,r);if(i!=null){if(!(isFinite(i)&&Math.floor(i)===i)||i<0){var a=n?r:"highWaterMark";throw new _i(a,i)}return Math.floor(i)}return e.objectMode?16:16*1024}var un={getHighWaterMark:bi},yi=gi;function gi(e,t){if(ur("noDeprecation"))return e;var r=!1;function n(){if(!r){if(ur("throwDeprecation"))throw new Error(t);ur("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}return n}function ur(e){try{if(!Q.localStorage)return!1}catch{return!1}var t=Q.localStorage[e];return t==null?!1:String(t).toLowerCase()==="true"}var lr,Fr;function ln(){if(Fr)return lr;Fr=1,lr=N;function e(c){var l=this;this.next=null,this.entry=null,this.finish=function(){se(l,c)}}var t;N.WritableState=P;var r={deprecate:yi},n=on,i=Ze().Buffer,a=(typeof Q<"u"?Q:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function f(c){return i.from(c)}function u(c){return i.isBuffer(c)||c instanceof a}var h=sn,d=un,y=d.getHighWaterMark,R=Se.codes,_=R.ERR_INVALID_ARG_TYPE,w=R.ERR_METHOD_NOT_IMPLEMENTED,m=R.ERR_MULTIPLE_CALLBACK,E=R.ERR_STREAM_CANNOT_PIPE,v=R.ERR_STREAM_DESTROYED,g=R.ERR_STREAM_NULL_VALUES,x=R.ERR_STREAM_WRITE_AFTER_END,A=R.ERR_UNKNOWN_ENCODING,T=h.errorOrDestroy;ee(N,n);function C(){}function P(c,l,b){t=t||Ce(),c=c||{},typeof b!="boolean"&&(b=l instanceof t),this.objectMode=!!c.objectMode,b&&(this.objectMode=this.objectMode||!!c.writableObjectMode),this.highWaterMark=y(this,c,"writableHighWaterMark",b),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var O=c.decodeStrings===!1;this.decodeStrings=!O,this.defaultEncoding=c.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(j){he(l,j)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=c.emitClose!==!1,this.autoDestroy=!!c.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}P.prototype.getBuffer=function(){for(var l=this.bufferedRequest,b=[];l;)b.push(l),l=l.next;return b},function(){try{Object.defineProperty(P.prototype,"buffer",{get:r.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}();var k;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(k=Function.prototype[Symbol.hasInstance],Object.defineProperty(N,Symbol.hasInstance,{value:function(l){return k.call(this,l)?!0:this!==N?!1:l&&l._writableState instanceof P}})):k=function(l){return l instanceof this};function N(c){t=t||Ce();var l=this instanceof t;if(!l&&!k.call(N,this))return new N(c);this._writableState=new P(c,this,l),this.writable=!0,c&&(typeof c.write=="function"&&(this._write=c.write),typeof c.writev=="function"&&(this._writev=c.writev),typeof c.destroy=="function"&&(this._destroy=c.destroy),typeof c.final=="function"&&(this._final=c.final)),n.call(this)}N.prototype.pipe=function(){T(this,new E)};function M(c,l){var b=new x;T(c,b),F.nextTick(l,b)}function z(c,l,b,O){var j;return b===null?j=new g:typeof b!="string"&&!l.objectMode&&(j=new _("chunk",["string","Buffer"],b)),j?(T(c,j),F.nextTick(O,j),!1):!0}N.prototype.write=function(c,l,b){var O=this._writableState,j=!1,o=!O.objectMode&&u(c);return o&&!i.isBuffer(c)&&(c=f(c)),typeof l=="function"&&(b=l,l=null),o?l="buffer":l||(l=O.defaultEncoding),typeof b!="function"&&(b=C),O.ending?M(this,b):(o||z(this,O,c,b))&&(O.pendingcb++,j=ne(this,O,o,c,l,b)),j},N.prototype.cork=function(){this._writableState.corked++},N.prototype.uncork=function(){var c=this._writableState;c.corked&&(c.corked--,!c.writing&&!c.corked&&!c.bufferProcessing&&c.bufferedRequest&&K(this,c))},N.prototype.setDefaultEncoding=function(l){if(typeof l=="string"&&(l=l.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((l+"").toLowerCase())>-1))throw new A(l);return this._writableState.defaultEncoding=l,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function te(c,l,b){return!c.objectMode&&c.decodeStrings!==!1&&typeof l=="string"&&(l=i.from(l,b)),l}Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function ne(c,l,b,O,j,o){if(!b){var s=te(l,O,j);O!==s&&(b=!0,j="buffer",O=s)}var p=l.objectMode?1:O.length;l.length+=p;var S=l.length<l.highWaterMark;if(S||(l.needDrain=!0),l.writing||l.corked){var q=l.lastBufferedRequest;l.lastBufferedRequest={chunk:O,encoding:j,isBuf:b,callback:o,next:null},q?q.next=l.lastBufferedRequest:l.bufferedRequest=l.lastBufferedRequest,l.bufferedRequestCount+=1}else U(c,l,!1,p,O,j,o);return S}function U(c,l,b,O,j,o,s){l.writelen=O,l.writecb=s,l.writing=!0,l.sync=!0,l.destroyed?l.onwrite(new v("write")):b?c._writev(j,l.onwrite):c._write(j,o,l.onwrite),l.sync=!1}function W(c,l,b,O,j){--l.pendingcb,b?(F.nextTick(j,O),F.nextTick(V,c,l),c._writableState.errorEmitted=!0,T(c,O)):(j(O),c._writableState.errorEmitted=!0,T(c,O),V(c,l))}function G(c){c.writing=!1,c.writecb=null,c.length-=c.writelen,c.writelen=0}function he(c,l){var b=c._writableState,O=b.sync,j=b.writecb;if(typeof j!="function")throw new m;if(G(b),l)W(c,b,O,l,j);else{var o=ae(b)||c.destroyed;!o&&!b.corked&&!b.bufferProcessing&&b.bufferedRequest&&K(c,b),O?F.nextTick(J,c,b,o,j):J(c,b,o,j)}}function J(c,l,b,O){b||ie(c,l),l.pendingcb--,O(),V(c,l)}function ie(c,l){l.length===0&&l.needDrain&&(l.needDrain=!1,c.emit("drain"))}function K(c,l){l.bufferProcessing=!0;var b=l.bufferedRequest;if(c._writev&&b&&b.next){var O=l.bufferedRequestCount,j=new Array(O),o=l.corkedRequestsFree;o.entry=b;for(var s=0,p=!0;b;)j[s]=b,b.isBuf||(p=!1),b=b.next,s+=1;j.allBuffers=p,U(c,l,!0,l.length,j,"",o.finish),l.pendingcb++,l.lastBufferedRequest=null,o.next?(l.corkedRequestsFree=o.next,o.next=null):l.corkedRequestsFree=new e(l),l.bufferedRequestCount=0}else{for(;b;){var S=b.chunk,q=b.encoding,I=b.callback,D=l.objectMode?1:S.length;if(U(c,l,!1,D,S,q,I),b=b.next,l.bufferedRequestCount--,l.writing)break}b===null&&(l.lastBufferedRequest=null)}l.bufferedRequest=b,l.bufferProcessing=!1}N.prototype._write=function(c,l,b){b(new w("_write()"))},N.prototype._writev=null,N.prototype.end=function(c,l,b){var O=this._writableState;return typeof c=="function"?(b=c,c=null,l=null):typeof l=="function"&&(b=l,l=null),c!=null&&this.write(c,l),O.corked&&(O.corked=1,this.uncork()),O.ending||_e(this,O,b),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function ae(c){return c.ending&&c.length===0&&c.bufferedRequest===null&&!c.finished&&!c.writing}function de(c,l){c._final(function(b){l.pendingcb--,b&&T(c,b),l.prefinished=!0,c.emit("prefinish"),V(c,l)})}function oe(c,l){!l.prefinished&&!l.finalCalled&&(typeof c._final=="function"&&!l.destroyed?(l.pendingcb++,l.finalCalled=!0,F.nextTick(de,c,l)):(l.prefinished=!0,c.emit("prefinish")))}function V(c,l){var b=ae(l);if(b&&(oe(c,l),l.pendingcb===0&&(l.finished=!0,c.emit("finish"),l.autoDestroy))){var O=c._readableState;(!O||O.autoDestroy&&O.endEmitted)&&c.destroy()}return b}function _e(c,l,b){l.ending=!0,V(c,l),b&&(l.finished?F.nextTick(b):c.once("finish",b)),l.ended=!0,c.writable=!1}function se(c,l,b){var O=c.entry;for(c.entry=null;O;){var j=O.callback;l.pendingcb--,j(b),O=O.next}l.corkedRequestsFree.next=c}return Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(l){this._writableState&&(this._writableState.destroyed=l)}}),N.prototype.destroy=h.destroy,N.prototype._undestroy=h.undestroy,N.prototype._destroy=function(c,l){l(c)},lr}var cr,kr;function Ce(){if(kr)return cr;kr=1;var e=Object.keys||function(d){var y=[];for(var R in d)y.push(R);return y};cr=f;var t=hn(),r=ln();ee(f,t);for(var n=e(r.prototype),i=0;i<n.length;i++){var a=n[i];f.prototype[a]||(f.prototype[a]=r.prototype[a])}function f(d){if(!(this instanceof f))return new f(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(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function u(){this._writableState.ended||F.nextTick(h,this)}function h(d){d.end()}return Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(y){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=y,this._writableState.destroyed=y)}}),cr}var mr={},Er={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(e,t){var r=Ze(),n=r.Buffer;function i(f,u){for(var h in f)u[h]=f[h]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a);function a(f,u,h){return n(f,u,h)}a.prototype=Object.create(n.prototype),i(n,a),a.from=function(f,u,h){if(typeof f=="number")throw new TypeError("Argument must not be a number");return n(f,u,h)},a.alloc=function(f,u,h){if(typeof f!="number")throw new TypeError("Argument must be a number");var d=n(f);return u!==void 0?typeof h=="string"?d.fill(u,h):d.fill(u):d.fill(0),d},a.allocUnsafe=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return n(f)},a.allocUnsafeSlow=function(f){if(typeof f!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(f)}})(Er,Er.exports);var ge=Er.exports,Tr=ge.Buffer,qr=Tr.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 vi(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 wi(e){var t=vi(e);if(typeof t!="string"&&(Tr.isEncoding===qr||!qr(e)))throw new Error("Unknown encoding: "+e);return t||e}mr.StringDecoder=Fe;function Fe(e){this.encoding=wi(e);var t;switch(this.encoding){case"utf16le":this.text=Ai,this.end=Ti,t=4;break;case"utf8":this.fillLast=Si,t=4;break;case"base64":this.text=Oi,this.end=Ci,t=3;break;default:this.write=Mi,this.end=Pi;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=Tr.allocUnsafe(t)}Fe.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||""};Fe.prototype.end=xi;Fe.prototype.text=Ri;Fe.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 hr(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function mi(e,t,r){var n=t.length-1;if(n<r)return 0;var i=hr(t[n]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--n<r||i===-2?0:(i=hr(t[n]),i>=0?(i>0&&(e.lastNeed=i-2),i):--n<r||i===-2?0:(i=hr(t[n]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}function Ei(e,t,r){if((t[0]&192)!==128)return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128)return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&(t[2]&192)!==128)return e.lastNeed=2,"�"}}function Si(e){var t=this.lastTotal-this.lastNeed,r=Ei(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 Ri(e,t){var r=mi(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=r;var n=e.length-(r-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",t,n)}function xi(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t}function Ai(e,t){if((e.length-t)%2===0){var r=e.toString("utf16le",t);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=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 Ti(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 Oi(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 Ci(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function Mi(e){return e.toString(this.encoding)}function Pi(e){return e&&e.length?this.write(e):""}var Ur=Se.codes.ERR_STREAM_PREMATURE_CLOSE;function Bi(e){var t=!1;return function(){if(!t){t=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n)}}}function Ni(){}function Ii(e){return e.setHeader&&typeof e.abort=="function"}function cn(e,t,r){if(typeof t=="function")return cn(e,null,t);t||(t={}),r=Bi(r||Ni);var n=t.readable||t.readable!==!1&&e.readable,i=t.writable||t.writable!==!1&&e.writable,a=function(){e.writable||u()},f=e._writableState&&e._writableState.finished,u=function(){i=!1,f=!0,n||r.call(e)},h=e._readableState&&e._readableState.endEmitted,d=function(){n=!1,h=!0,i||r.call(e)},y=function(m){r.call(e,m)},R=function(){var m;if(n&&!h)return(!e._readableState||!e._readableState.ended)&&(m=new Ur),r.call(e,m);if(i&&!f)return(!e._writableState||!e._writableState.ended)&&(m=new Ur),r.call(e,m)},_=function(){e.req.on("finish",u)};return Ii(e)?(e.on("complete",u),e.on("abort",R),e.req?_():e.on("request",_)):i&&!e._writableState&&(e.on("end",a),e.on("close",a)),e.on("end",d),e.on("finish",u),t.error!==!1&&e.on("error",y),e.on("close",R),function(){e.removeListener("complete",u),e.removeListener("abort",R),e.removeListener("request",_),e.req&&e.req.removeListener("finish",u),e.removeListener("end",a),e.removeListener("close",a),e.removeListener("finish",u),e.removeListener("end",d),e.removeListener("error",y),e.removeListener("close",R)}}var Or=cn,dr,$r;function ji(){if($r)return dr;$r=1;var e;function t(A,T,C){return T=r(T),T in A?Object.defineProperty(A,T,{value:C,enumerable:!0,configurable:!0,writable:!0}):A[T]=C,A}function r(A){var T=n(A,"string");return typeof T=="symbol"?T:String(T)}function n(A,T){if(typeof A!="object"||A===null)return A;var C=A[Symbol.toPrimitive];if(C!==void 0){var P=C.call(A,T||"default");if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(A)}var i=Or,a=Symbol("lastResolve"),f=Symbol("lastReject"),u=Symbol("error"),h=Symbol("ended"),d=Symbol("lastPromise"),y=Symbol("handlePromise"),R=Symbol("stream");function _(A,T){return{value:A,done:T}}function w(A){var T=A[a];if(T!==null){var C=A[R].read();C!==null&&(A[d]=null,A[a]=null,A[f]=null,T(_(C,!1)))}}function m(A){F.nextTick(w,A)}function E(A,T){return function(C,P){A.then(function(){if(T[h]){C(_(void 0,!0));return}T[y](C,P)},P)}}var v=Object.getPrototypeOf(function(){}),g=Object.setPrototypeOf((e={get stream(){return this[R]},next:function(){var T=this,C=this[u];if(C!==null)return Promise.reject(C);if(this[h])return Promise.resolve(_(void 0,!0));if(this[R].destroyed)return new Promise(function(M,z){F.nextTick(function(){T[u]?z(T[u]):M(_(void 0,!0))})});var P=this[d],k;if(P)k=new Promise(E(P,this));else{var N=this[R].read();if(N!==null)return Promise.resolve(_(N,!1));k=new Promise(this[y])}return this[d]=k,k}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var T=this;return new Promise(function(C,P){T[R].destroy(null,function(k){if(k){P(k);return}C(_(void 0,!0))})})}),e),v),x=function(T){var C,P=Object.create(g,(C={},t(C,R,{value:T,writable:!0}),t(C,a,{value:null,writable:!0}),t(C,f,{value:null,writable:!0}),t(C,u,{value:null,writable:!0}),t(C,h,{value:T._readableState.endEmitted,writable:!0}),t(C,y,{value:function(N,M){var z=P[R].read();z?(P[d]=null,P[a]=null,P[f]=null,N(_(z,!1))):(P[a]=N,P[f]=M)},writable:!0}),C));return P[d]=null,i(T,function(k){if(k&&k.code!=="ERR_STREAM_PREMATURE_CLOSE"){var N=P[f];N!==null&&(P[d]=null,P[a]=null,P[f]=null,N(k)),P[u]=k;return}var M=P[a];M!==null&&(P[d]=null,P[a]=null,P[f]=null,M(_(void 0,!0))),P[h]=!0}),T.on("readable",m.bind(null,P)),P};return dr=x,dr}var _r,Hr;function Li(){return Hr||(Hr=1,_r=function(){throw new Error("Readable.from is not available in the browser")}),_r}var pr,zr;function hn(){if(zr)return pr;zr=1,pr=M;var e;M.ReadableState=N,Ar.EventEmitter;var t=function(s,p){return s.listeners(p).length},r=on,n=Ze().Buffer,i=(typeof Q<"u"?Q:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function a(o){return n.from(o)}function f(o){return n.isBuffer(o)||o instanceof i}var u=an,h;u&&u.debuglog?h=u.debuglog("stream"):h=function(){};var d=oi(),y=sn,R=un,_=R.getHighWaterMark,w=Se.codes,m=w.ERR_INVALID_ARG_TYPE,E=w.ERR_STREAM_PUSH_AFTER_EOF,v=w.ERR_METHOD_NOT_IMPLEMENTED,g=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,x,A,T;ee(M,r);var C=y.errorOrDestroy,P=["error","close","destroy","pause","resume"];function k(o,s,p){if(typeof o.prependListener=="function")return o.prependListener(s,p);!o._events||!o._events[s]?o.on(s,p):Array.isArray(o._events[s])?o._events[s].unshift(p):o._events[s]=[p,o._events[s]]}function N(o,s,p){e=e||Ce(),o=o||{},typeof p!="boolean"&&(p=s instanceof e),this.objectMode=!!o.objectMode,p&&(this.objectMode=this.objectMode||!!o.readableObjectMode),this.highWaterMark=_(this,o,"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=o.emitClose!==!1,this.autoDestroy=!!o.autoDestroy,this.destroyed=!1,this.defaultEncoding=o.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,o.encoding&&(x||(x=mr.StringDecoder),this.decoder=new x(o.encoding),this.encoding=o.encoding)}function M(o){if(e=e||Ce(),!(this instanceof M))return new M(o);var s=this instanceof e;this._readableState=new N(o,this,s),this.readable=!0,o&&(typeof o.read=="function"&&(this._read=o.read),typeof o.destroy=="function"&&(this._destroy=o.destroy)),r.call(this)}Object.defineProperty(M.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(s){this._readableState&&(this._readableState.destroyed=s)}}),M.prototype.destroy=y.destroy,M.prototype._undestroy=y.undestroy,M.prototype._destroy=function(o,s){s(o)},M.prototype.push=function(o,s){var p=this._readableState,S;return p.objectMode?S=!0:typeof o=="string"&&(s=s||p.defaultEncoding,s!==p.encoding&&(o=n.from(o,s),s=""),S=!0),z(this,o,s,!1,S)},M.prototype.unshift=function(o){return z(this,o,null,!0,!1)};function z(o,s,p,S,q){h("readableAddChunk",s);var I=o._readableState;if(s===null)I.reading=!1,he(o,I);else{var D;if(q||(D=ne(I,s)),D)C(o,D);else if(I.objectMode||s&&s.length>0)if(typeof s!="string"&&!I.objectMode&&Object.getPrototypeOf(s)!==n.prototype&&(s=a(s)),S)I.endEmitted?C(o,new g):te(o,I,s,!0);else if(I.ended)C(o,new E);else{if(I.destroyed)return!1;I.reading=!1,I.decoder&&!p?(s=I.decoder.write(s),I.objectMode||s.length!==0?te(o,I,s,!1):K(o,I)):te(o,I,s,!1)}else S||(I.reading=!1,K(o,I))}return!I.ended&&(I.length<I.highWaterMark||I.length===0)}function te(o,s,p,S){s.flowing&&s.length===0&&!s.sync?(s.awaitDrain=0,o.emit("data",p)):(s.length+=s.objectMode?1:p.length,S?s.buffer.unshift(p):s.buffer.push(p),s.needReadable&&J(o)),K(o,s)}function ne(o,s){var p;return!f(s)&&typeof s!="string"&&s!==void 0&&!o.objectMode&&(p=new m("chunk",["string","Buffer","Uint8Array"],s)),p}M.prototype.isPaused=function(){return this._readableState.flowing===!1},M.prototype.setEncoding=function(o){x||(x=mr.StringDecoder);var s=new x(o);this._readableState.decoder=s,this._readableState.encoding=this._readableState.decoder.encoding;for(var p=this._readableState.buffer.head,S="";p!==null;)S+=s.write(p.data),p=p.next;return this._readableState.buffer.clear(),S!==""&&this._readableState.buffer.push(S),this._readableState.length=S.length,this};var U=1073741824;function W(o){return o>=U?o=U:(o--,o|=o>>>1,o|=o>>>2,o|=o>>>4,o|=o>>>8,o|=o>>>16,o++),o}function G(o,s){return o<=0||s.length===0&&s.ended?0:s.objectMode?1:o!==o?s.flowing&&s.length?s.buffer.head.data.length:s.length:(o>s.highWaterMark&&(s.highWaterMark=W(o)),o<=s.length?o:s.ended?s.length:(s.needReadable=!0,0))}M.prototype.read=function(o){h("read",o),o=parseInt(o,10);var s=this._readableState,p=o;if(o!==0&&(s.emittedReadable=!1),o===0&&s.needReadable&&((s.highWaterMark!==0?s.length>=s.highWaterMark:s.length>0)||s.ended))return h("read: emitReadable",s.length,s.ended),s.length===0&&s.ended?b(this):J(this),null;if(o=G(o,s),o===0&&s.ended)return s.length===0&&b(this),null;var S=s.needReadable;h("need readable",S),(s.length===0||s.length-o<s.highWaterMark)&&(S=!0,h("length less than watermark",S)),s.ended||s.reading?(S=!1,h("reading or ended",S)):S&&(h("do read"),s.reading=!0,s.sync=!0,s.length===0&&(s.needReadable=!0),this._read(s.highWaterMark),s.sync=!1,s.reading||(o=G(p,s)));var q;return o>0?q=l(o,s):q=null,q===null?(s.needReadable=s.length<=s.highWaterMark,o=0):(s.length-=o,s.awaitDrain=0),s.length===0&&(s.ended||(s.needReadable=!0),p!==o&&s.ended&&b(this)),q!==null&&this.emit("data",q),q};function he(o,s){if(h("onEofChunk"),!s.ended){if(s.decoder){var p=s.decoder.end();p&&p.length&&(s.buffer.push(p),s.length+=s.objectMode?1:p.length)}s.ended=!0,s.sync?J(o):(s.needReadable=!1,s.emittedReadable||(s.emittedReadable=!0,ie(o)))}}function J(o){var s=o._readableState;h("emitReadable",s.needReadable,s.emittedReadable),s.needReadable=!1,s.emittedReadable||(h("emitReadable",s.flowing),s.emittedReadable=!0,F.nextTick(ie,o))}function ie(o){var s=o._readableState;h("emitReadable_",s.destroyed,s.length,s.ended),!s.destroyed&&(s.length||s.ended)&&(o.emit("readable"),s.emittedReadable=!1),s.needReadable=!s.flowing&&!s.ended&&s.length<=s.highWaterMark,c(o)}function K(o,s){s.readingMore||(s.readingMore=!0,F.nextTick(ae,o,s))}function ae(o,s){for(;!s.reading&&!s.ended&&(s.length<s.highWaterMark||s.flowing&&s.length===0);){var p=s.length;if(h("maybeReadMore read 0"),o.read(0),p===s.length)break}s.readingMore=!1}M.prototype._read=function(o){C(this,new v("_read()"))},M.prototype.pipe=function(o,s){var p=this,S=this._readableState;switch(S.pipesCount){case 0:S.pipes=o;break;case 1:S.pipes=[S.pipes,o];break;default:S.pipes.push(o);break}S.pipesCount+=1,h("pipe count=%d opts=%j",S.pipesCount,s);var q=(!s||s.end!==!1)&&o!==F.stdout&&o!==F.stderr,I=q?fe:pe;S.endEmitted?F.nextTick(I):p.once("end",I),o.on("unpipe",D);function D(ue,re){h("onunpipe"),ue===p&&re&&re.hasUnpiped===!1&&(re.hasUnpiped=!0,Ge())}function fe(){h("onend"),o.end()}var ve=de(p);o.on("drain",ve);var Ne=!1;function Ge(){h("cleanup"),o.removeListener("close",Ae),o.removeListener("finish",Te),o.removeListener("drain",ve),o.removeListener("error",xe),o.removeListener("unpipe",D),p.removeListener("end",fe),p.removeListener("end",pe),p.removeListener("data",Ie),Ne=!0,S.awaitDrain&&(!o._writableState||o._writableState.needDrain)&&ve()}p.on("data",Ie);function Ie(ue){h("ondata");var re=o.write(ue);h("dest.write",re),re===!1&&((S.pipesCount===1&&S.pipes===o||S.pipesCount>1&&j(S.pipes,o)!==-1)&&!Ne&&(h("false write response, pause",S.awaitDrain),S.awaitDrain++),p.pause())}function xe(ue){h("onerror",ue),pe(),o.removeListener("error",xe),t(o,"error")===0&&C(o,ue)}k(o,"error",xe);function Ae(){o.removeListener("finish",Te),pe()}o.once("close",Ae);function Te(){h("onfinish"),o.removeListener("close",Ae),pe()}o.once("finish",Te);function pe(){h("unpipe"),p.unpipe(o)}return o.emit("pipe",p),S.flowing||(h("pipe resume"),p.resume()),o};function de(o){return function(){var p=o._readableState;h("pipeOnDrain",p.awaitDrain),p.awaitDrain&&p.awaitDrain--,p.awaitDrain===0&&t(o,"data")&&(p.flowing=!0,c(o))}}M.prototype.unpipe=function(o){var s=this._readableState,p={hasUnpiped:!1};if(s.pipesCount===0)return this;if(s.pipesCount===1)return o&&o!==s.pipes?this:(o||(o=s.pipes),s.pipes=null,s.pipesCount=0,s.flowing=!1,o&&o.emit("unpipe",this,p),this);if(!o){var S=s.pipes,q=s.pipesCount;s.pipes=null,s.pipesCount=0,s.flowing=!1;for(var I=0;I<q;I++)S[I].emit("unpipe",this,{hasUnpiped:!1});return this}var D=j(s.pipes,o);return D===-1?this:(s.pipes.splice(D,1),s.pipesCount-=1,s.pipesCount===1&&(s.pipes=s.pipes[0]),o.emit("unpipe",this,p),this)},M.prototype.on=function(o,s){var p=r.prototype.on.call(this,o,s),S=this._readableState;return o==="data"?(S.readableListening=this.listenerCount("readable")>0,S.flowing!==!1&&this.resume()):o==="readable"&&!S.endEmitted&&!S.readableListening&&(S.readableListening=S.needReadable=!0,S.flowing=!1,S.emittedReadable=!1,h("on readable",S.length,S.reading),S.length?J(this):S.reading||F.nextTick(V,this)),p},M.prototype.addListener=M.prototype.on,M.prototype.removeListener=function(o,s){var p=r.prototype.removeListener.call(this,o,s);return o==="readable"&&F.nextTick(oe,this),p},M.prototype.removeAllListeners=function(o){var s=r.prototype.removeAllListeners.apply(this,arguments);return(o==="readable"||o===void 0)&&F.nextTick(oe,this),s};function oe(o){var s=o._readableState;s.readableListening=o.listenerCount("readable")>0,s.resumeScheduled&&!s.paused?s.flowing=!0:o.listenerCount("data")>0&&o.resume()}function V(o){h("readable nexttick read 0"),o.read(0)}M.prototype.resume=function(){var o=this._readableState;return o.flowing||(h("resume"),o.flowing=!o.readableListening,_e(this,o)),o.paused=!1,this};function _e(o,s){s.resumeScheduled||(s.resumeScheduled=!0,F.nextTick(se,o,s))}function se(o,s){h("resume",s.reading),s.reading||o.read(0),s.resumeScheduled=!1,o.emit("resume"),c(o),s.flowing&&!s.reading&&o.read(0)}M.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function c(o){var s=o._readableState;for(h("flow",s.flowing);s.flowing&&o.read()!==null;);}M.prototype.wrap=function(o){var s=this,p=this._readableState,S=!1;o.on("end",function(){if(h("wrapped end"),p.decoder&&!p.ended){var D=p.decoder.end();D&&D.length&&s.push(D)}s.push(null)}),o.on("data",function(D){if(h("wrapped data"),p.decoder&&(D=p.decoder.write(D)),!(p.objectMode&&D==null)&&!(!p.objectMode&&(!D||!D.length))){var fe=s.push(D);fe||(S=!0,o.pause())}});for(var q in o)this[q]===void 0&&typeof o[q]=="function"&&(this[q]=function(fe){return function(){return o[fe].apply(o,arguments)}}(q));for(var I=0;I<P.length;I++)o.on(P[I],this.emit.bind(this,P[I]));return this._read=function(D){h("wrapped _read",D),S&&(S=!1,o.resume())},this},typeof Symbol=="function"&&(M.prototype[Symbol.asyncIterator]=function(){return A===void 0&&(A=ji()),A(this)}),Object.defineProperty(M.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(M.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(M.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(s){this._readableState&&(this._readableState.flowing=s)}}),M._fromList=l,Object.defineProperty(M.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function l(o,s){if(s.length===0)return null;var p;return s.objectMode?p=s.buffer.shift():!o||o>=s.length?(s.decoder?p=s.buffer.join(""):s.buffer.length===1?p=s.buffer.first():p=s.buffer.concat(s.length),s.buffer.clear()):p=s.buffer.consume(o,s.decoder),p}function b(o){var s=o._readableState;h("endReadable",s.endEmitted),s.endEmitted||(s.ended=!0,F.nextTick(O,s,o))}function O(o,s){if(h("endReadableNT",o.endEmitted,o.length),!o.endEmitted&&o.length===0&&(o.endEmitted=!0,s.readable=!1,s.emit("end"),o.autoDestroy)){var p=s._writableState;(!p||p.autoDestroy&&p.finished)&&s.destroy()}}typeof Symbol=="function"&&(M.from=function(o,s){return T===void 0&&(T=Li()),T(M,o,s)});function j(o,s){for(var p=0,S=o.length;p<S;p++)if(o[p]===s)return p;return-1}return pr}var dn=ce,et=Se.codes,Di=et.ERR_METHOD_NOT_IMPLEMENTED,Fi=et.ERR_MULTIPLE_CALLBACK,ki=et.ERR_TRANSFORM_ALREADY_TRANSFORMING,qi=et.ERR_TRANSFORM_WITH_LENGTH_0,tt=Ce();ee(ce,tt);function Ui(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(n===null)return this.emit("error",new Fi);r.writechunk=null,r.writecb=null,t!=null&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function ce(e){if(!(this instanceof ce))return new ce(e);tt.call(this,e),this._transformState={afterTransform:Ui.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",$i)}function $i(){var e=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(t,r){Wr(e,t,r)}):Wr(this,null,null)}ce.prototype.push=function(e,t){return this._transformState.needTransform=!1,tt.prototype.push.call(this,e,t)};ce.prototype._transform=function(e,t,r){r(new Di("_transform()"))};ce.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}};ce.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};ce.prototype._destroy=function(e,t){tt.prototype._destroy.call(this,e,function(r){t(r)})};function Wr(e,t,r){if(t)return e.emit("error",t);if(r!=null&&e.push(r),e._writableState.length)throw new qi;if(e._transformState.transforming)throw new ki;return e.push(null)}var Hi=Le,_n=dn;ee(Le,_n);function Le(e){if(!(this instanceof Le))return new Le(e);_n.call(this,e)}Le.prototype._transform=function(e,t,r){r(null,e)};var br;function zi(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}var pn=Se.codes,Wi=pn.ERR_MISSING_ARGS,Gi=pn.ERR_STREAM_DESTROYED;function Gr(e){if(e)throw e}function Vi(e){return e.setHeader&&typeof e.abort=="function"}function Ji(e,t,r,n){n=zi(n);var i=!1;e.on("close",function(){i=!0}),br===void 0&&(br=Or),br(e,{readable:t,writable:r},function(f){if(f)return n(f);i=!0,n()});var a=!1;return function(f){if(!i&&!a){if(a=!0,Vi(e))return e.abort();if(typeof e.destroy=="function")return e.destroy();n(f||new Gi("pipe"))}}}function Vr(e){e()}function Ki(e,t){return e.pipe(t)}function Yi(e){return!e.length||typeof e[e.length-1]!="function"?Gr:e.pop()}function Xi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=Yi(t);if(Array.isArray(t[0])&&(t=t[0]),t.length<2)throw new Wi("streams");var i,a=t.map(function(f,u){var h=u<t.length-1,d=u>0;return Ji(f,h,d,function(y){i||(i=y),y&&a.forEach(Vr),!h&&(a.forEach(Vr),n(i))})});return t.reduce(Ki)}var Qi=Xi;(function(e,t){t=e.exports=hn(),t.Stream=t,t.Readable=t,t.Writable=ln(),t.Duplex=Ce(),t.Transform=dn,t.PassThrough=Hi,t.finished=Or,t.pipeline=Qi})(vr,vr.exports);var bn=vr.exports;const{Transform:Zi}=bn;var ea=e=>class yn extends Zi{constructor(r,n,i,a,f){super(f),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=a,this._options=f,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let a=null;try{this.update(r,n)}catch(f){a=f}i(a)}_flush(r){let n=null;try{this.push(this.digest())}catch(i){n=i}r(n)}update(r,n){if(!me.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return me.isBuffer(r)||(r=me.from(r,n)),this._state.absorb(r),this}digest(r){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let n=this._state.squeeze(this._hashBitLength/8);return r!==void 0&&(n=n.toString(r)),this._resetState(),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new yn(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const{Transform:ta}=bn;var ra=e=>class gn extends ta{constructor(r,n,i,a){super(a),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._options=a,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(r,n,i){let a=null;try{this.update(r,n)}catch(f){a=f}i(a)}_flush(){}_read(r){this.push(this.squeeze(r))}update(r,n){if(!me.isBuffer(r)&&typeof r!="string")throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return me.isBuffer(r)||(r=me.from(r,n)),this._state.absorb(r),this}squeeze(r,n){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let i=this._state.squeeze(r);return n!==void 0&&(i=i.toString(n)),i}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const r=new gn(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(r._state),r._finalized=this._finalized,r}};const na=ea,ia=ra;var aa=function(e){const t=na(e),r=ia(e);return function(n,i){switch(typeof n=="string"?n.toLowerCase():n){case"keccak224":return new t(1152,448,null,224,i);case"keccak256":return new t(1088,512,null,256,i);case"keccak384":return new t(832,768,null,384,i);case"keccak512":return new t(576,1024,null,512,i);case"sha3-224":return new t(1152,448,6,224,i);case"sha3-256":return new t(1088,512,6,256,i);case"sha3-384":return new t(832,768,6,384,i);case"sha3-512":return new t(576,1024,6,512,i);case"shake128":return new r(1344,256,31,i);case"shake256":return new r(1088,512,31,i);default:throw new Error("Invald algorithm: "+n)}}},vn={};const Jr=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];vn.p1600=function(e){for(let t=0;t<24;++t){const r=e[0]^e[10]^e[20]^e[30]^e[40],n=e[1]^e[11]^e[21]^e[31]^e[41],i=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],f=e[4]^e[14]^e[24]^e[34]^e[44],u=e[5]^e[15]^e[25]^e[35]^e[45],h=e[6]^e[16]^e[26]^e[36]^e[46],d=e[7]^e[17]^e[27]^e[37]^e[47],y=e[8]^e[18]^e[28]^e[38]^e[48],R=e[9]^e[19]^e[29]^e[39]^e[49];let _=y^(i<<1|a>>>31),w=R^(a<<1|i>>>31);const m=e[0]^_,E=e[1]^w,v=e[10]^_,g=e[11]^w,x=e[20]^_,A=e[21]^w,T=e[30]^_,C=e[31]^w,P=e[40]^_,k=e[41]^w;_=r^(f<<1|u>>>31),w=n^(u<<1|f>>>31);const N=e[2]^_,M=e[3]^w,z=e[12]^_,te=e[13]^w,ne=e[22]^_,U=e[23]^w,W=e[32]^_,G=e[33]^w,he=e[42]^_,J=e[43]^w;_=i^(h<<1|d>>>31),w=a^(d<<1|h>>>31);const ie=e[4]^_,K=e[5]^w,ae=e[14]^_,de=e[15]^w,oe=e[24]^_,V=e[25]^w,_e=e[34]^_,se=e[35]^w,c=e[44]^_,l=e[45]^w;_=f^(y<<1|R>>>31),w=u^(R<<1|y>>>31);const b=e[6]^_,O=e[7]^w,j=e[16]^_,o=e[17]^w,s=e[26]^_,p=e[27]^w,S=e[36]^_,q=e[37]^w,I=e[46]^_,D=e[47]^w;_=h^(r<<1|n>>>31),w=d^(n<<1|r>>>31);const fe=e[8]^_,ve=e[9]^w,Ne=e[18]^_,Ge=e[19]^w,Ie=e[28]^_,xe=e[29]^w,Ae=e[38]^_,Te=e[39]^w,pe=e[48]^_,ue=e[49]^w,re=m,dt=E,_t=g<<4|v>>>28,pt=v<<4|g>>>28,bt=x<<3|A>>>29,yt=A<<3|x>>>29,gt=C<<9|T>>>23,vt=T<<9|C>>>23,wt=P<<18|k>>>14,mt=k<<18|P>>>14,Et=N<<1|M>>>31,St=M<<1|N>>>31,Rt=te<<12|z>>>20,xt=z<<12|te>>>20,At=ne<<10|U>>>22,Tt=U<<10|ne>>>22,Ot=G<<13|W>>>19,Ct=W<<13|G>>>19,Mt=he<<2|J>>>30,Pt=J<<2|he>>>30,Bt=K<<30|ie>>>2,Nt=ie<<30|K>>>2,It=ae<<6|de>>>26,jt=de<<6|ae>>>26,Lt=V<<11|oe>>>21,Dt=oe<<11|V>>>21,Ft=_e<<15|se>>>17,kt=se<<15|_e>>>17,qt=l<<29|c>>>3,Ut=c<<29|l>>>3,$t=b<<28|O>>>4,Ht=O<<28|b>>>4,zt=o<<23|j>>>9,Wt=j<<23|o>>>9,Gt=s<<25|p>>>7,Vt=p<<25|s>>>7,Jt=S<<21|q>>>11,Kt=q<<21|S>>>11,Yt=D<<24|I>>>8,Xt=I<<24|D>>>8,Qt=fe<<27|ve>>>5,Zt=ve<<27|fe>>>5,er=Ne<<20|Ge>>>12,tr=Ge<<20|Ne>>>12,rr=xe<<7|Ie>>>25,nr=Ie<<7|xe>>>25,ir=Ae<<8|Te>>>24,ar=Te<<8|Ae>>>24,or=pe<<14|ue>>>18,sr=ue<<14|pe>>>18;e[0]=re^~Rt&Lt,e[1]=dt^~xt&Dt,e[10]=$t^~er&bt,e[11]=Ht^~tr&yt,e[20]=Et^~It&Gt,e[21]=St^~jt&Vt,e[30]=Qt^~_t&At,e[31]=Zt^~pt&Tt,e[40]=Bt^~zt&rr,e[41]=Nt^~Wt&nr,e[2]=Rt^~Lt&Jt,e[3]=xt^~Dt&Kt,e[12]=er^~bt&Ot,e[13]=tr^~yt&Ct,e[22]=It^~Gt&ir,e[23]=jt^~Vt&ar,e[32]=_t^~At&Ft,e[33]=pt^~Tt&kt,e[42]=zt^~rr>,e[43]=Wt^~nr&vt,e[4]=Lt^~Jt&or,e[5]=Dt^~Kt&sr,e[14]=bt^~Ot&qt,e[15]=yt^~Ct&Ut,e[24]=Gt^~ir&wt,e[25]=Vt^~ar&mt,e[34]=At^~Ft&Yt,e[35]=Tt^~kt&Xt,e[44]=rr^~gt&Mt,e[45]=nr^~vt&Pt,e[6]=Jt^~or&re,e[7]=Kt^~sr&dt,e[16]=Ot^~qt&$t,e[17]=Ct^~Ut&Ht,e[26]=ir^~wt&Et,e[27]=ar^~mt&St,e[36]=Ft^~Yt&Qt,e[37]=kt^~Xt&Zt,e[46]=gt^~Mt&Bt,e[47]=vt^~Pt&Nt,e[8]=or^~re&Rt,e[9]=sr^~dt&xt,e[18]=qt^~$t&er,e[19]=Ut^~Ht&tr,e[28]=wt^~Et&It,e[29]=mt^~St&jt,e[38]=Yt^~Qt&_t,e[39]=Xt^~Zt&pt,e[48]=Mt^~Bt&zt,e[49]=Pt^~Nt&Wt,e[0]^=Jr[t*2],e[1]^=Jr[t*2+1]}};const Ke=vn;function Pe(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}Pe.prototype.initialize=function(e,t){for(let r=0;r<50;++r)this.state[r]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1};Pe.prototype.absorb=function(e){for(let t=0;t<e.length;++t)this.state[~~(this.count/4)]^=e[t]<<8*(this.count%4),this.count+=1,this.count===this.blockSize&&(Ke.p1600(this.state),this.count=0)};Pe.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<8*(this.count%4),e&128&&this.count===this.blockSize-1&&Ke.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<8*((this.blockSize-1)%4),Ke.p1600(this.state),this.count=0,this.squeezing=!0};Pe.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);const t=me.alloc(e);for(let r=0;r<e;++r)t[r]=this.state[~~(this.count/4)]>>>8*(this.count%4)&255,this.count+=1,this.count===this.blockSize&&(Ke.p1600(this.state),this.count=0);return t};Pe.prototype.copy=function(e){for(let t=0;t<50;++t)e.state[t]=this.state[t];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing};var oa=Pe,Uo=aa(oa),wn={exports:{}},mn=ge.Buffer;function rt(e,t){this._block=mn.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}rt.prototype.update=function(e,t){typeof e=="string"&&(t=t||"utf8",e=mn.from(e,t));for(var r=this._block,n=this._blockSize,i=e.length,a=this._len,f=0;f<i;){for(var u=a%n,h=Math.min(i-f,n-u),d=0;d<h;d++)r[u+d]=e[f+d];a+=h,f+=h,a%n===0&&this._update(r)}return this._len+=i,this};rt.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 n=(r&4294967295)>>>0,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a};rt.prototype._update=function(){throw new Error("_update must be implemented by subclass")};var Be=rt,sa=ee,En=Be,fa=ge.Buffer,ua=[1518500249,1859775393,-1894007588,-899497514],la=new Array(80);function ke(){this.init(),this._w=la,En.call(this,64,56)}sa(ke,En);ke.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function ca(e){return e<<5|e>>>27}function ha(e){return e<<30|e>>>2}function da(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}ke.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,a=this._d|0,f=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 h=0;h<80;++h){var d=~~(h/20),y=ca(r)+da(d,n,i,a)+f+t[h]+ua[d]|0;f=a,a=i,i=ha(n),n=r,r=y}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=f+this._e|0};ke.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 _a=ke,pa=ee,Sn=Be,ba=ge.Buffer,ya=[1518500249,1859775393,-1894007588,-899497514],ga=new Array(80);function qe(){this.init(),this._w=ga,Sn.call(this,64,56)}pa(qe,Sn);qe.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function va(e){return e<<1|e>>>31}function wa(e){return e<<5|e>>>27}function ma(e){return e<<30|e>>>2}function Ea(e,t,r,n){return e===0?t&r|~t&n:e===2?t&r|t&n|r&n:t^r^n}qe.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,a=this._d|0,f=this._e|0,u=0;u<16;++u)t[u]=e.readInt32BE(u*4);for(;u<80;++u)t[u]=va(t[u-3]^t[u-8]^t[u-14]^t[u-16]);for(var h=0;h<80;++h){var d=~~(h/20),y=wa(r)+Ea(d,n,i,a)+f+t[h]+ya[d]|0;f=a,a=i,i=ma(n),n=r,r=y}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=f+this._e|0};qe.prototype._hash=function(){var e=ba.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 Sa=qe,Ra=ee,Rn=Be,xa=ge.Buffer,Aa=[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],Ta=new Array(64);function Ue(){this.init(),this._w=Ta,Rn.call(this,64,56)}Ra(Ue,Rn);Ue.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 Oa(e,t,r){return r^e&(t^r)}function Ca(e,t,r){return e&t|r&(e|t)}function Ma(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function Pa(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function Ba(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}function Na(e){return(e>>>17|e<<15)^(e>>>19|e<<13)^e>>>10}Ue.prototype._update=function(e){for(var t=this._w,r=this._a|0,n=this._b|0,i=this._c|0,a=this._d|0,f=this._e|0,u=this._f|0,h=this._g|0,d=this._h|0,y=0;y<16;++y)t[y]=e.readInt32BE(y*4);for(;y<64;++y)t[y]=Na(t[y-2])+t[y-7]+Ba(t[y-15])+t[y-16]|0;for(var R=0;R<64;++R){var _=d+Pa(f)+Oa(f,u,h)+Aa[R]+t[R]|0,w=Ma(r)+Ca(r,n,i)|0;d=h,h=u,u=f,f=a+_|0,a=i,i=n,n=r,r=_+w|0}this._a=r+this._a|0,this._b=n+this._b|0,this._c=i+this._c|0,this._d=a+this._d|0,this._e=f+this._e|0,this._f=u+this._f|0,this._g=h+this._g|0,this._h=d+this._h|0};Ue.prototype._hash=function(){var e=xa.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 xn=Ue,Ia=ee,ja=xn,La=Be,Da=ge.Buffer,Fa=new Array(64);function nt(){this.init(),this._w=Fa,La.call(this,64,56)}Ia(nt,ja);nt.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};nt.prototype._hash=function(){var e=Da.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 ka=nt,qa=ee,An=Be,Ua=ge.Buffer,Kr=[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],$a=new Array(160);function $e(){this.init(),this._w=$a,An.call(this,128,112)}qa($e,An);$e.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 Yr(e,t,r){return r^e&(t^r)}function Xr(e,t,r){return e&t|r&(e|t)}function Qr(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function Zr(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function Ha(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function za(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function Wa(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function Ga(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function $(e,t){return e>>>0<t>>>0?1:0}$e.prototype._update=function(e){for(var t=this._w,r=this._ah|0,n=this._bh|0,i=this._ch|0,a=this._dh|0,f=this._eh|0,u=this._fh|0,h=this._gh|0,d=this._hh|0,y=this._al|0,R=this._bl|0,_=this._cl|0,w=this._dl|0,m=this._el|0,E=this._fl|0,v=this._gl|0,g=this._hl|0,x=0;x<32;x+=2)t[x]=e.readInt32BE(x*4),t[x+1]=e.readInt32BE(x*4+4);for(;x<160;x+=2){var A=t[x-30],T=t[x-15*2+1],C=Ha(A,T),P=za(T,A);A=t[x-2*2],T=t[x-2*2+1];var k=Wa(A,T),N=Ga(T,A),M=t[x-7*2],z=t[x-7*2+1],te=t[x-16*2],ne=t[x-16*2+1],U=P+z|0,W=C+M+$(U,P)|0;U=U+N|0,W=W+k+$(U,N)|0,U=U+ne|0,W=W+te+$(U,ne)|0,t[x]=W,t[x+1]=U}for(var G=0;G<160;G+=2){W=t[G],U=t[G+1];var he=Xr(r,n,i),J=Xr(y,R,_),ie=Qr(r,y),K=Qr(y,r),ae=Zr(f,m),de=Zr(m,f),oe=Kr[G],V=Kr[G+1],_e=Yr(f,u,h),se=Yr(m,E,v),c=g+de|0,l=d+ae+$(c,g)|0;c=c+se|0,l=l+_e+$(c,se)|0,c=c+V|0,l=l+oe+$(c,V)|0,c=c+U|0,l=l+W+$(c,U)|0;var b=K+J|0,O=ie+he+$(b,K)|0;d=h,g=v,h=u,v=E,u=f,E=m,m=w+c|0,f=a+l+$(m,w)|0,a=i,w=_,i=n,_=R,n=r,R=y,y=c+b|0,r=l+O+$(y,c)|0}this._al=this._al+y|0,this._bl=this._bl+R|0,this._cl=this._cl+_|0,this._dl=this._dl+w|0,this._el=this._el+m|0,this._fl=this._fl+E|0,this._gl=this._gl+v|0,this._hl=this._hl+g|0,this._ah=this._ah+r+$(this._al,y)|0,this._bh=this._bh+n+$(this._bl,R)|0,this._ch=this._ch+i+$(this._cl,_)|0,this._dh=this._dh+a+$(this._dl,w)|0,this._eh=this._eh+f+$(this._el,m)|0,this._fh=this._fh+u+$(this._fl,E)|0,this._gh=this._gh+h+$(this._gl,v)|0,this._hh=this._hh+d+$(this._hl,g)|0};$e.prototype._hash=function(){var e=Ua.allocUnsafe(64);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+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 Tn=$e,Va=ee,Ja=Tn,Ka=Be,Ya=ge.Buffer,Xa=new Array(160);function it(){this.init(),this._w=Xa,Ka.call(this,128,112)}Va(it,Ja);it.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};it.prototype._hash=function(){var e=Ya.allocUnsafe(48);function t(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+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 Qa=it,Re=wn.exports=function(t){t=t.toLowerCase();var r=Re[t];if(!r)throw new Error(t+" is not supported (we accept pull requests)");return new r};Re.sha=_a;Re.sha1=Sa;Re.sha224=ka;Re.sha256=xn;Re.sha384=Qa;Re.sha512=Tn;var $o=wn.exports;const en=(e,t)=>function(){const r=t.promiseModule,n=new Array(arguments.length);for(let i=0;i<arguments.length;i++)n[i]=arguments[i];return new r((i,a)=>{t.errorFirst?n.push(function(f,u){if(t.multiArgs){const h=new Array(arguments.length-1);for(let d=1;d<arguments.length;d++)h[d-1]=arguments[d];f?(h.unshift(f),a(h)):i(h)}else f?a(f):i(u)}):n.push(function(f){if(t.multiArgs){const u=new Array(arguments.length-1);for(let h=0;h<arguments.length;h++)u[h]=arguments[h];i(u)}else i(f)}),e.apply(this,n)})};var Ho=(e,t)=>{t=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},t);const r=i=>{const a=f=>typeof f=="string"?i===f:f.test(i);return t.include?t.include.some(a):!t.exclude.some(a)};let n;typeof e=="function"?n=function(){return t.excludeMain?e.apply(this,arguments):en(e,t).apply(this,arguments)}:n=Object.create(Object.getPrototypeOf(e));for(const i in e){const a=e[i];n[i]=typeof a=="function"&&r(i)?en(a,t):a}return n},Za=to,eo=Object.prototype.hasOwnProperty;function to(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var n in r)eo.call(r,n)&&(e[n]=r[n])}return e}var ro=no;function no(e){e=e||{};var t=e.max||Number.MAX_SAFE_INTEGER,r=typeof e.start<"u"?e.start:Math.floor(Math.random()*t);return function(){return r=r%t,r++}}const io=Za,ao=ro();var zo=B;function B(e){const t=this;t.currentProvider=e}B.prototype.getBalance=He(2,"eth_getBalance");B.prototype.getCode=He(2,"eth_getCode");B.prototype.getTransactionCount=He(2,"eth_getTransactionCount");B.prototype.getStorageAt=He(3,"eth_getStorageAt");B.prototype.call=He(2,"eth_call");B.prototype.protocolVersion=L("eth_protocolVersion");B.prototype.syncing=L("eth_syncing");B.prototype.coinbase=L("eth_coinbase");B.prototype.mining=L("eth_mining");B.prototype.hashrate=L("eth_hashrate");B.prototype.gasPrice=L("eth_gasPrice");B.prototype.accounts=L("eth_accounts");B.prototype.blockNumber=L("eth_blockNumber");B.prototype.getBlockTransactionCountByHash=L("eth_getBlockTransactionCountByHash");B.prototype.getBlockTransactionCountByNumber=L("eth_getBlockTransactionCountByNumber");B.prototype.getUncleCountByBlockHash=L("eth_getUncleCountByBlockHash");B.prototype.getUncleCountByBlockNumber=L("eth_getUncleCountByBlockNumber");B.prototype.sign=L("eth_sign");B.prototype.sendTransaction=L("eth_sendTransaction");B.prototype.sendRawTransaction=L("eth_sendRawTransaction");B.prototype.estimateGas=L("eth_estimateGas");B.prototype.getBlockByHash=L("eth_getBlockByHash");B.prototype.getBlockByNumber=L("eth_getBlockByNumber");B.prototype.getTransactionByHash=L("eth_getTransactionByHash");B.prototype.getTransactionByBlockHashAndIndex=L("eth_getTransactionByBlockHashAndIndex");B.prototype.getTransactionByBlockNumberAndIndex=L("eth_getTransactionByBlockNumberAndIndex");B.prototype.getTransactionReceipt=L("eth_getTransactionReceipt");B.prototype.getUncleByBlockHashAndIndex=L("eth_getUncleByBlockHashAndIndex");B.prototype.getUncleByBlockNumberAndIndex=L("eth_getUncleByBlockNumberAndIndex");B.prototype.getCompilers=L("eth_getCompilers");B.prototype.compileLLL=L("eth_compileLLL");B.prototype.compileSolidity=L("eth_compileSolidity");B.prototype.compileSerpent=L("eth_compileSerpent");B.prototype.newFilter=L("eth_newFilter");B.prototype.newBlockFilter=L("eth_newBlockFilter");B.prototype.newPendingTransactionFilter=L("eth_newPendingTransactionFilter");B.prototype.uninstallFilter=L("eth_uninstallFilter");B.prototype.getFilterChanges=L("eth_getFilterChanges");B.prototype.getFilterLogs=L("eth_getFilterLogs");B.prototype.getLogs=L("eth_getLogs");B.prototype.getWork=L("eth_getWork");B.prototype.submitWork=L("eth_submitWork");B.prototype.submitHashrate=L("eth_submitHashrate");B.prototype.sendAsync=function(e,t){this.currentProvider.sendAsync(oo(e),function(n,i){if(!n&&i.error&&(n=new Error("EthQuery - RPC Error - "+i.error.message)),n)return t(n);t(null,i.result)})};function L(e){return function(){const t=this;var r=[].slice.call(arguments),n=r.pop();t.sendAsync({method:e,params:r},n)}}function He(e,t){return function(){const r=this;var n=[].slice.call(arguments),i=n.pop();n.length<e&&n.push("latest"),r.sendAsync({method:t,params:n},i)}}function oo(e){return io({id:ao(),jsonrpc:"2.0",params:[]},e)}var so={},Cr={},Sr=function(e,t){return Sr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Sr(e,t)};function On(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Sr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ye=function(){return Ye=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Ye.apply(this,arguments)};function Cn(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Mn(e,t,r,n){var i=arguments.length,a=i<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,f;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(e,t,r,n);else for(var u=e.length-1;u>=0;u--)(f=e[u])&&(a=(i<3?f(a):i>3?f(t,r,a):f(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function Pn(e,t){return function(r,n){t(r,n,e)}}function fo(e,t,r,n,i,a){function f(g){if(g!==void 0&&typeof g!="function")throw new TypeError("Function expected");return g}for(var u=n.kind,h=u==="getter"?"get":u==="setter"?"set":"value",d=!t&&e?n.static?e:e.prototype:null,y=t||(d?Object.getOwnPropertyDescriptor(d,n.name):{}),R,_=!1,w=r.length-1;w>=0;w--){var m={};for(var E in n)m[E]=E==="access"?{}:n[E];for(var E in n.access)m.access[E]=n.access[E];m.addInitializer=function(g){if(_)throw new TypeError("Cannot add initializers after decoration has completed");a.push(f(g||null))};var v=(0,r[w])(u==="accessor"?{get:y.get,set:y.set}:y[h],m);if(u==="accessor"){if(v===void 0)continue;if(v===null||typeof v!="object")throw new TypeError("Object expected");(R=f(v.get))&&(y.get=R),(R=f(v.set))&&(y.set=R),(R=f(v.init))&&i.unshift(R)}else(R=f(v))&&(u==="field"?i.unshift(R):y[h]=R)}d&&Object.defineProperty(d,n.name,y),_=!0}function uo(e,t,r){for(var n=arguments.length>2,i=0;i<t.length;i++)r=n?t[i].call(e,r):t[i].call(e);return n?r:void 0}function lo(e){return typeof e=="symbol"?e:"".concat(e)}function co(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function Bn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function Nn(e,t,r,n){function i(a){return a instanceof r?a:new r(function(f){f(a)})}return new(r||(r=Promise))(function(a,f){function u(y){try{d(n.next(y))}catch(R){f(R)}}function h(y){try{d(n.throw(y))}catch(R){f(R)}}function d(y){y.done?a(y.value):i(y.value).then(u,h)}d((n=n.apply(e,t||[])).next())})}function In(e,t){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,f;return f={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(f[Symbol.iterator]=function(){return this}),f;function u(d){return function(y){return h([d,y])}}function h(d){if(n)throw new TypeError("Generator is already executing.");for(;f&&(f=0,d[0]&&(r=0)),r;)try{if(n=1,i&&(a=d[0]&2?i.return:d[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,d[1])).done)return a;switch(i=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return r.label++,{value:d[1],done:!1};case 5:r.label++,i=d[1],d=[0];continue;case 7:d=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){r.label=d[1];break}if(d[0]===6&&r.label<a[1]){r.label=a[1],a=d;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(d);break}a[2]&&r.ops.pop(),r.trys.pop();continue}d=t.call(e,r)}catch(y){d=[6,y],i=0}finally{n=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}var at=Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]};function jn(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&at(t,e,r)}function Xe(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Mr(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],f;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(u){f={error:u}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(f)throw f.error}}return a}function Ln(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(Mr(arguments[t]));return e}function Dn(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),i=0,t=0;t<r;t++)for(var a=arguments[t],f=0,u=a.length;f<u;f++,i++)n[i]=a[f];return n}function Fn(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,a;n<i;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}function Me(e){return this instanceof Me?(this.v=e,this):new Me(e)}function kn(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),i,a=[];return i={},f("next"),f("throw"),f("return"),i[Symbol.asyncIterator]=function(){return this},i;function f(_){n[_]&&(i[_]=function(w){return new Promise(function(m,E){a.push([_,w,m,E])>1||u(_,w)})})}function u(_,w){try{h(n[_](w))}catch(m){R(a[0][3],m)}}function h(_){_.value instanceof Me?Promise.resolve(_.value.v).then(d,y):R(a[0][2],_)}function d(_){u("next",_)}function y(_){u("throw",_)}function R(_,w){_(w),a.shift(),a.length&&u(a[0][0],a[0][1])}}function qn(e){var t,r;return t={},n("next"),n("throw",function(i){throw i}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(i,a){t[i]=e[i]?function(f){return(r=!r)?{value:Me(e[i](f)),done:!1}:a?a(f):f}:a}}function Un(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Xe=="function"?Xe(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(a){r[a]=e[a]&&function(f){return new Promise(function(u,h){f=e[a](f),i(u,h,f.done,f.value)})}}function i(a,f,u,h){Promise.resolve(h).then(function(d){a({value:d,done:u})},f)}}function $n(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var ho=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function Hn(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)r!=="default"&&Object.prototype.hasOwnProperty.call(e,r)&&at(t,e,r);return ho(t,e),t}function zn(e){return e&&e.__esModule?e:{default:e}}function Wn(e,t,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(e):n?n.value:t.get(e)}function Gn(e,t,r,n,i){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!i)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?i.call(e,r):i?i.value=r:t.set(e,r),r}function Vn(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function Jn(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(n===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if(typeof n!="function")throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var _o=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function Kn(e){function t(n){e.error=e.hasError?new _o(n,e.error,"An error was suppressed during disposal."):n,e.hasError=!0}function r(){for(;e.stack.length;){var n=e.stack.pop();try{var i=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(i).then(r,function(a){return t(a),r()})}catch(a){t(a)}}if(e.hasError)throw e.error}return r()}const po={__extends:On,__assign:Ye,__rest:Cn,__decorate:Mn,__param:Pn,__metadata:Bn,__awaiter:Nn,__generator:In,__createBinding:at,__exportStar:jn,__values:Xe,__read:Mr,__spread:Ln,__spreadArrays:Dn,__spreadArray:Fn,__await:Me,__asyncGenerator:kn,__asyncDelegator:qn,__asyncValues:Un,__makeTemplateObject:$n,__importStar:Hn,__importDefault:zn,__classPrivateFieldGet:Wn,__classPrivateFieldSet:Gn,__classPrivateFieldIn:Vn,__addDisposableResource:Jn,__disposeResources:Kn},bo=Object.freeze(Object.defineProperty({__proto__:null,__addDisposableResource:Jn,get __assign(){return Ye},__asyncDelegator:qn,__asyncGenerator:kn,__asyncValues:Un,__await:Me,__awaiter:Nn,__classPrivateFieldGet:Wn,__classPrivateFieldIn:Vn,__classPrivateFieldSet:Gn,__createBinding:at,__decorate:Mn,__disposeResources:Kn,__esDecorate:fo,__exportStar:jn,__extends:On,__generator:In,__importDefault:zn,__importStar:Hn,__makeTemplateObject:$n,__metadata:Bn,__param:Pn,__propKey:lo,__read:Mr,__rest:Cn,__runInitializers:uo,__setFunctionName:co,__spread:Ln,__spreadArray:Fn,__spreadArrays:Dn,__values:Xe,default:po},Symbol.toStringTag,{value:"Module"})),Pr=ai(bo);var ot={};Object.defineProperty(ot,"__esModule",{value:!0});var tn=Pr,yo=function(){function e(t){if(this._maxConcurrency=t,this._queue=[],t<=0)throw new Error("semaphore must be initialized to a positive value");this._value=t}return e.prototype.acquire=function(){var t=this,r=this.isLocked(),n=new Promise(function(i){return t._queue.push(i)});return r||this._dispatch(),n},e.prototype.runExclusive=function(t){return tn.__awaiter(this,void 0,void 0,function(){var r,n,i;return tn.__generator(this,function(a){switch(a.label){case 0:return[4,this.acquire()];case 1:r=a.sent(),n=r[0],i=r[1],a.label=2;case 2:return a.trys.push([2,,4,5]),[4,t(n)];case 3:return[2,a.sent()];case 4:return i(),[7];case 5:return[2]}})})},e.prototype.isLocked=function(){return this._value<=0},e.prototype.release=function(){if(this._maxConcurrency>1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var t=this._currentReleaser;this._currentReleaser=void 0,t()}},e.prototype._dispatch=function(){var t=this,r=this._queue.shift();if(r){var n=!1;this._currentReleaser=function(){n||(n=!0,t._value++,t._dispatch())},r([this._value--,this._currentReleaser])}},e}();ot.default=yo;Object.defineProperty(Cr,"__esModule",{value:!0});var rn=Pr,go=ot,vo=function(){function e(){this._semaphore=new go.default(1)}return e.prototype.acquire=function(){return rn.__awaiter(this,void 0,void 0,function(){var t,r;return rn.__generator(this,function(n){switch(n.label){case 0:return[4,this._semaphore.acquire()];case 1:return t=n.sent(),r=t[1],[2,r]}})})},e.prototype.runExclusive=function(t){return this._semaphore.runExclusive(function(){return t()})},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e}();Cr.default=vo;var st={};Object.defineProperty(st,"__esModule",{value:!0});st.withTimeout=void 0;var Ve=Pr;function wo(e,t,r){var n=this;return r===void 0&&(r=new Error("timeout")),{acquire:function(){return new Promise(function(i,a){return Ve.__awaiter(n,void 0,void 0,function(){var f,u,h;return Ve.__generator(this,function(d){switch(d.label){case 0:return f=!1,setTimeout(function(){f=!0,a(r)},t),[4,e.acquire()];case 1:return u=d.sent(),f?(h=Array.isArray(u)?u[1]:u,h()):i(u),[2]}})})})},runExclusive:function(i){return Ve.__awaiter(this,void 0,void 0,function(){var a,f;return Ve.__generator(this,function(u){switch(u.label){case 0:a=function(){},u.label=1;case 1:return u.trys.push([1,,7,8]),[4,this.acquire()];case 2:return f=u.sent(),Array.isArray(f)?(a=f[1],[4,i(f[0])]):[3,4];case 3:return[2,u.sent()];case 4:return a=f,[4,i()];case 5:return[2,u.sent()];case 6:return[3,8];case 7:return a(),[7];case 8:return[2]}})})},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}st.withTimeout=wo;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.withTimeout=e.Semaphore=e.Mutex=void 0;var t=Cr;Object.defineProperty(e,"Mutex",{enumerable:!0,get:function(){return t.default}});var r=ot;Object.defineProperty(e,"Semaphore",{enumerable:!0,get:function(){return r.default}});var n=st;Object.defineProperty(e,"withTimeout",{enumerable:!0,get:function(){return n.withTimeout}})})(so);var mo={},ft={},ze={};Object.defineProperty(ze,"__esModule",{value:!0});ze.getUniqueId=void 0;const Yn=4294967295;let yr=Math.floor(Math.random()*Yn);function Eo(){return yr=(yr+1)%Yn,yr}ze.getUniqueId=Eo;Object.defineProperty(ft,"__esModule",{value:!0});ft.createIdRemapMiddleware=void 0;const So=ze;function Ro(){return(e,t,r,n)=>{const i=e.id,a=So.getUniqueId();e.id=a,t.id=a,r(f=>{e.id=i,t.id=i,f()})}}ft.createIdRemapMiddleware=Ro;var ut={};Object.defineProperty(ut,"__esModule",{value:!0});ut.createAsyncMiddleware=void 0;function xo(e){return async(t,r,n,i)=>{let a;const f=new Promise(y=>{a=y});let u=null,h=!1;const d=async()=>{h=!0,n(y=>{u=y,a()}),await f};try{await e(t,r,d),h?(await f,u(null)):i(null)}catch(y){u?u(y):i(y)}}}ut.createAsyncMiddleware=xo;var lt={};Object.defineProperty(lt,"__esModule",{value:!0});lt.createScaffoldMiddleware=void 0;function Ao(e){return(t,r,n,i)=>{const a=e[t.method];return a===void 0?n():typeof a=="function"?a(t,r,n,i):(r.result=a,i())}}lt.createScaffoldMiddleware=Ao;var We={},Br={};Object.defineProperty(Br,"__esModule",{value:!0});const To=Ar;function nn(e,t,r){try{Reflect.apply(e,t,r)}catch(n){setTimeout(()=>{throw n})}}function Oo(e){const t=e.length,r=new Array(t);for(let n=0;n<t;n+=1)r[n]=e[n];return r}class Co extends To.EventEmitter{emit(t,...r){let n=t==="error";const i=this._events;if(i!==void 0)n=n&&i.error===void 0;else if(!n)return!1;if(n){let f;if(r.length>0&&([f]=r),f instanceof Error)throw f;const u=new Error(`Unhandled error.${f?` (${f.message})`:""}`);throw u.context=f,u}const a=i[t];if(a===void 0)return!1;if(typeof a=="function")nn(a,this,r);else{const f=a.length,u=Oo(a);for(let h=0;h<f;h+=1)nn(u[h],this,r)}return!0}}Br.default=Co;var Xn={},be={},Mo=De;De.default=De;De.stable=ei;De.stableStringify=ei;var Qe="[...]",Qn="[Circular]",Ee=[],we=[];function Zn(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function De(e,t,r,n){typeof n>"u"&&(n=Zn()),Rr(e,"",0,[],void 0,0,n);var i;try{we.length===0?i=JSON.stringify(e,t,r):i=JSON.stringify(e,ti(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Ee.length!==0;){var a=Ee.pop();a.length===4?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return i}function Oe(e,t,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:e}),Ee.push([n,r,t,i])):we.push([t,r,e]):(n[r]=e,Ee.push([n,r,t]))}function Rr(e,t,r,n,i,a,f){a+=1;var u;if(typeof e=="object"&&e!==null){for(u=0;u<n.length;u++)if(n[u]===e){Oe(Qn,e,t,i);return}if(typeof f.depthLimit<"u"&&a>f.depthLimit){Oe(Qe,e,t,i);return}if(typeof f.edgesLimit<"u"&&r+1>f.edgesLimit){Oe(Qe,e,t,i);return}if(n.push(e),Array.isArray(e))for(u=0;u<e.length;u++)Rr(e[u],u,u,n,e,a,f);else{var h=Object.keys(e);for(u=0;u<h.length;u++){var d=h[u];Rr(e[d],d,u,n,e,a,f)}}n.pop()}}function Po(e,t){return e<t?-1:e>t?1:0}function ei(e,t,r,n){typeof n>"u"&&(n=Zn());var i=xr(e,"",0,[],void 0,0,n)||e,a;try{we.length===0?a=JSON.stringify(i,t,r):a=JSON.stringify(i,ti(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Ee.length!==0;){var f=Ee.pop();f.length===4?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return a}function xr(e,t,r,n,i,a,f){a+=1;var u;if(typeof e=="object"&&e!==null){for(u=0;u<n.length;u++)if(n[u]===e){Oe(Qn,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof f.depthLimit<"u"&&a>f.depthLimit){Oe(Qe,e,t,i);return}if(typeof f.edgesLimit<"u"&&r+1>f.edgesLimit){Oe(Qe,e,t,i);return}if(n.push(e),Array.isArray(e))for(u=0;u<e.length;u++)xr(e[u],u,u,n,e,a,f);else{var h={},d=Object.keys(e).sort(Po);for(u=0;u<d.length;u++){var y=d[u];xr(e[y],y,u,n,e,a,f),h[y]=e[y]}if(typeof i<"u")Ee.push([i,t,e]),i[t]=h;else return h}n.pop()}}function ti(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(we.length>0)for(var n=0;n<we.length;n++){var i=we[n];if(i[1]===t&&i[0]===r){r=i[2],we.splice(n,1);break}}return e.call(this,t,r)}}Object.defineProperty(be,"__esModule",{value:!0});be.EthereumProviderError=be.EthereumRpcError=void 0;const Bo=Mo;class ri extends Error{constructor(t,r,n){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string.');super(r),this.code=t,n!==void 0&&(this.data=n)}serialize(){const t={code:this.code,message:this.message};return this.data!==void 0&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return Bo.default(this.serialize(),jo,2)}}be.EthereumRpcError=ri;class No extends ri{constructor(t,r,n){if(!Io(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,r,n)}}be.EthereumProviderError=No;function Io(e){return Number.isInteger(e)&&e>=1e3&&e<=4999}function jo(e,t){if(t!=="[Circular]")return t}var Nr={},ye={};Object.defineProperty(ye,"__esModule",{value:!0});ye.errorValues=ye.errorCodes=void 0;ye.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}};ye.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const t=ye,r=be,n=t.errorCodes.rpc.internal,i="Unspecified error message. This is a bug, please report it.",a={code:n,message:f(n)};e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.";function f(_,w=i){if(Number.isInteger(_)){const m=_.toString();if(R(t.errorValues,m))return t.errorValues[m].message;if(d(_))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return w}e.getMessageFromCode=f;function u(_){if(!Number.isInteger(_))return!1;const w=_.toString();return!!(t.errorValues[w]||d(_))}e.isValidCode=u;function h(_,{fallbackError:w=a,shouldIncludeStack:m=!1}={}){var E,v;if(!w||!Number.isInteger(w.code)||typeof w.message!="string")throw new Error("Must provide fallback error with integer number code and string message.");if(_ instanceof r.EthereumRpcError)return _.serialize();const g={};if(_&&typeof _=="object"&&!Array.isArray(_)&&R(_,"code")&&u(_.code)){const A=_;g.code=A.code,A.message&&typeof A.message=="string"?(g.message=A.message,R(A,"data")&&(g.data=A.data)):(g.message=f(g.code),g.data={originalError:y(_)})}else{g.code=w.code;const A=(E=_)===null||E===void 0?void 0:E.message;g.message=A&&typeof A=="string"?A:w.message,g.data={originalError:y(_)}}const x=(v=_)===null||v===void 0?void 0:v.stack;return m&&_&&x&&typeof x=="string"&&(g.stack=x),g}e.serializeError=h;function d(_){return _>=-32099&&_<=-32e3}function y(_){return _&&typeof _=="object"&&!Array.isArray(_)?Object.assign({},_):_}function R(_,w){return Object.prototype.hasOwnProperty.call(_,w)}})(Nr);var ct={};Object.defineProperty(ct,"__esModule",{value:!0});ct.ethErrors=void 0;const Ir=be,ni=Nr,H=ye;ct.ethErrors={rpc:{parse:e=>Y(H.errorCodes.rpc.parse,e),invalidRequest:e=>Y(H.errorCodes.rpc.invalidRequest,e),invalidParams:e=>Y(H.errorCodes.rpc.invalidParams,e),methodNotFound:e=>Y(H.errorCodes.rpc.methodNotFound,e),internal:e=>Y(H.errorCodes.rpc.internal,e),server:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return Y(t,e)},invalidInput:e=>Y(H.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>Y(H.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>Y(H.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>Y(H.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>Y(H.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>Y(H.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>je(H.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>je(H.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>je(H.errorCodes.provider.unsupportedMethod,e),disconnected:e=>je(H.errorCodes.provider.disconnected,e),chainDisconnected:e=>je(H.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||typeof e!="object"||Array.isArray(e))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:t,message:r,data:n}=e;if(!r||typeof r!="string")throw new Error('"message" must be a nonempty string');return new Ir.EthereumProviderError(t,r,n)}}};function Y(e,t){const[r,n]=ii(t);return new Ir.EthereumRpcError(e,r||ni.getMessageFromCode(e),n)}function je(e,t){const[r,n]=ii(t);return new Ir.EthereumProviderError(e,r||ni.getMessageFromCode(e),n)}function ii(e){if(e){if(typeof e=="string")return[e];if(typeof e=="object"&&!Array.isArray(e)){const{message:t,data:r}=e;if(t&&typeof t!="string")throw new Error("Must specify string message.");return[t||void 0,r]}}return[]}(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const t=be;Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return t.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return t.EthereumProviderError}});const r=Nr;Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return r.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return r.getMessageFromCode}});const n=ct;Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return n.ethErrors}});const i=ye;Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return i.errorCodes}})})(Xn);var Lo=Q&&Q.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(We,"__esModule",{value:!0});We.JsonRpcEngine=void 0;const Do=Lo(Br),X=Xn;class le extends Do.default{constructor(){super(),this._middleware=[]}push(t){this._middleware.push(t)}handle(t,r){if(r&&typeof r!="function")throw new Error('"callback" must be a function if provided.');return Array.isArray(t)?r?this._handleBatch(t,r):this._handleBatch(t):r?this._handle(t,r):this._promiseHandle(t)}asMiddleware(){return async(t,r,n,i)=>{try{const[a,f,u]=await le._runAllMiddleware(t,r,this._middleware);return f?(await le._runReturnHandlers(u),i(a)):n(async h=>{try{await le._runReturnHandlers(u)}catch(d){return h(d)}return h()})}catch(a){return i(a)}}}async _handleBatch(t,r){try{const n=await Promise.all(t.map(this._promiseHandle.bind(this)));return r?r(null,n):n}catch(n){if(r)return r(n);throw n}}_promiseHandle(t){return new Promise(r=>{this._handle(t,(n,i)=>{r(i)})})}async _handle(t,r){if(!t||Array.isArray(t)||typeof t!="object"){const f=new X.EthereumRpcError(X.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof t}`,{request:t});return r(f,{id:void 0,jsonrpc:"2.0",error:f})}if(typeof t.method!="string"){const f=new X.EthereumRpcError(X.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof t.method}`,{request:t});return r(f,{id:t.id,jsonrpc:"2.0",error:f})}const n=Object.assign({},t),i={id:n.id,jsonrpc:n.jsonrpc};let a=null;try{await this._processRequest(n,i)}catch(f){a=f}return a&&(delete i.result,i.error||(i.error=X.serializeError(a))),r(a,i)}async _processRequest(t,r){const[n,i,a]=await le._runAllMiddleware(t,r,this._middleware);if(le._checkForCompletion(t,r,i),await le._runReturnHandlers(a),n)throw n}static async _runAllMiddleware(t,r,n){const i=[];let a=null,f=!1;for(const u of n)if([a,f]=await le._runMiddleware(t,r,u,i),f)break;return[a,f,i.reverse()]}static _runMiddleware(t,r,n,i){return new Promise(a=>{const f=h=>{const d=h||r.error;d&&(r.error=X.serializeError(d)),a([d,!0])},u=h=>{r.error?f(r.error):(h&&(typeof h!="function"&&f(new X.EthereumRpcError(X.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof h}" for request:
|
|
2
|
-
${gr(t)}`,{request:t})),i.push(h)),a([null,!1]))};try{n(t,r,u,f)}catch(h){f(h)}})}static async _runReturnHandlers(t){for(const r of t)await new Promise((n,i)=>{r(a=>a?i(a):n())})}static _checkForCompletion(t,r,n){if(!("result"in r)&&!("error"in r))throw new X.EthereumRpcError(X.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request:
|
|
3
|
-
${gr(t)}`,{request:t});if(!n)throw new X.EthereumRpcError(X.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request:
|
|
4
|
-
${gr(t)}`,{request:t})}}We.JsonRpcEngine=le;function gr(e){return JSON.stringify(e,null,2)}var ht={};Object.defineProperty(ht,"__esModule",{value:!0});ht.mergeMiddleware=void 0;const Fo=We;function ko(e){const t=new Fo.JsonRpcEngine;return e.forEach(r=>t.push(r)),t.asMiddleware()}ht.mergeMiddleware=ko;(function(e){var t=Q&&Q.__createBinding||(Object.create?function(n,i,a,f){f===void 0&&(f=a),Object.defineProperty(n,f,{enumerable:!0,get:function(){return i[a]}})}:function(n,i,a,f){f===void 0&&(f=a),n[f]=i[a]}),r=Q&&Q.__exportStar||function(n,i){for(var a in n)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&t(i,n,a)};Object.defineProperty(e,"__esModule",{value:!0}),r(ft,e),r(ut,e),r(lt,e),r(ze,e),r(We,e),r(ht,e)})(mo);export{mr as a,$o as b,Br as c,mo as d,zo as e,Xn as f,ro as g,Za as i,Uo as j,so as l,Ho as p,bn as r,ge as s};
|
package/assets/index-fa5c9f62.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{u as h,d as c,b as d}from"./index-21d487c4.js";import{t as b}from"./tslib.es6-c2094241.js";const F="PARSE_ERROR",N="INVALID_REQUEST",w="METHOD_NOT_FOUND",A="INVALID_PARAMS",m="INTERNAL_ERROR",R="SERVER_ERROR",D=[-32700,-32600,-32601,-32602,-32603],s={[F]:{code:-32700,message:"Parse error"},[N]:{code:-32600,message:"Invalid Request"},[w]:{code:-32601,message:"Method not found"},[A]:{code:-32602,message:"Invalid params"},[m]:{code:-32603,message:"Internal error"},[R]:{code:-32e3,message:"Server error"}},_=R;function I(e){return D.includes(e)}function l(e){return Object.keys(s).includes(e)?s[e]:s[_]}function S(e){const r=Object.values(s).find(t=>t.code===e);return r||s[_]}function $(e,r,t){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${t} RPC url at ${r}`):e}var M={};const j=h(b);var o={},E;function T(){if(E)return o;E=1,Object.defineProperty(o,"__esModule",{value:!0}),o.isBrowserCryptoAvailable=o.getSubtleCrypto=o.getBrowerCrypto=void 0;function e(){return(c===null||c===void 0?void 0:c.crypto)||(c===null||c===void 0?void 0:c.msCrypto)||{}}o.getBrowerCrypto=e;function r(){const a=e();return a.subtle||a.webkitSubtle}o.getSubtleCrypto=r;function t(){return!!e()&&!!r()}return o.isBrowserCryptoAvailable=t,o}var n={},v;function U(){if(v)return n;v=1,Object.defineProperty(n,"__esModule",{value:!0}),n.isBrowser=n.isNode=n.isReactNative=void 0;function e(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"}n.isReactNative=e;function r(){return typeof d<"u"&&typeof d.versions<"u"&&typeof d.versions.node<"u"}n.isNode=r;function t(){return!e()&&!r()}return n.isBrowser=t,n}(function(e){Object.defineProperty(e,"__esModule",{value:!0});const r=j;r.__exportStar(T(),e),r.__exportStar(U(),e)})(M);function C(e=3){const r=Date.now()*Math.pow(10,e),t=Math.floor(Math.random()*Math.pow(10,e));return r+t}function J(e=6){return BigInt(C(e))}function H(e,r,t){return{id:t||C(),jsonrpc:"2.0",method:e,params:r}}function Q(e,r){return{id:e,jsonrpc:"2.0",result:r}}function k(e,r,t){return{id:e,jsonrpc:"2.0",error:B(r,t)}}function B(e,r){return typeof e>"u"?l(m):(typeof e=="string"&&(e=Object.assign(Object.assign({},l(R)),{message:e})),typeof r<"u"&&(e.data=r),I(e.code)&&(e=S(e.code)),e)}var G=e=>encodeURIComponent(e).replace(/[!'()*]/g,r=>`%${r.charCodeAt(0).toString(16).toUpperCase()}`),O="%[a-f0-9]{2}",g=new RegExp("("+O+")|([^%]+?)","gi"),y=new RegExp("("+O+")+","gi");function f(e,r){try{return[decodeURIComponent(e.join(""))]}catch{}if(e.length===1)return e;r=r||1;var t=e.slice(0,r),a=e.slice(r);return Array.prototype.concat.call([],f(t),f(a))}function x(e){try{return decodeURIComponent(e)}catch{for(var r=e.match(g)||[],t=1;t<r.length;t++)e=f(r,t).join(""),r=e.match(g)||[];return e}}function P(e){for(var r={"%FE%FF":"��","%FF%FE":"��"},t=y.exec(e);t;){try{r[t[0]]=decodeURIComponent(t[0])}catch{var a=x(t[0]);a!==t[0]&&(r[t[0]]=a)}t=y.exec(e)}r["%C2"]="�";for(var i=Object.keys(r),u=0;u<i.length;u++){var p=i[u];e=e.replace(new RegExp(p,"g"),r[p])}return e}var z=function(e){if(typeof e!="string")throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch{return P(e)}},K=(e,r)=>{if(!(typeof e=="string"&&typeof r=="string"))throw new TypeError("Expected the arguments to be of type `string`");if(r==="")return[e];const t=e.indexOf(r);return t===-1?[e]:[e.slice(0,t),e.slice(t+r.length)]};export{G as a,k as b,M as c,z as d,$ as e,H as f,J as g,Q as h,C as p,j as r,K as s};
|