diff options
author | 2023-06-24 02:23:39 -0400 | |
---|---|---|
committer | 2023-06-23 23:23:39 -0700 | |
commit | 5ae8e5d773c6b57fe166681ffa9cdc153f69427b (patch) | |
tree | fa7331a152f6d947ee49977109f77162b669924a | |
parent | 4ff920c915403dd7abac18c6a80a7b9c468ee52b (diff) | |
download | bun-5ae8e5d773c6b57fe166681ffa9cdc153f69427b.tar.gz bun-5ae8e5d773c6b57fe166681ffa9cdc153f69427b.tar.zst bun-5ae8e5d773c6b57fe166681ffa9cdc153f69427b.zip |
Make node-fallbacks build as esm not cjs / Fix `node-fetch` (#3377)
* Make node-fallbacks build as esm not cjs.
* fix stuff
32 files changed, 186 insertions, 116 deletions
diff --git a/src/js/out/WebCoreJSBuiltins.cpp b/src/js/out/WebCoreJSBuiltins.cpp index 1fecb34e3..455a0a3a4 100644 --- a/src/js/out/WebCoreJSBuiltins.cpp +++ b/src/js/out/WebCoreJSBuiltins.cpp @@ -116,7 +116,7 @@ const JSC::ConstructorKind s_writableStreamInternalsCreateInternalWritableStream const JSC::ImplementationVisibility s_writableStreamInternalsCreateInternalWritableStreamFromUnderlyingSinkCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_writableStreamInternalsCreateInternalWritableStreamFromUnderlyingSinkCodeLength = 956; static const JSC::Intrinsic s_writableStreamInternalsCreateInternalWritableStreamFromUnderlyingSinkCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_writableStreamInternalsCreateInternalWritableStreamFromUnderlyingSinkCode = "(function (f,o){\"use strict\";const w={};if(f===@undefined)f={};if(o===@undefined)o={};if(!@isObject(f))@throwTypeError(\"WritableStream constructor takes an object as first argument\");if(\"type\"in f)@throwRangeError(\"Invalid type is specified\");const C=@extractSizeAlgorithm(o),E=@extractHighWaterMark(o,1),_={};if(\"start\"in f){if(_[\"start\"]=f[\"start\"],typeof _[\"start\"]!==\"function\")@throwTypeError(\"underlyingSink.start should be a function\")}if(\"write\"in f){if(_[\"write\"]=f[\"write\"],typeof _[\"write\"]!==\"function\")@throwTypeError(\"underlyingSink.write should be a function\")}if(\"close\"in f){if(_[\"close\"]=f[\"close\"],typeof _[\"close\"]!==\"function\")@throwTypeError(\"underlyingSink.close should be a function\")}if(\"abort\"in f){if(_[\"abort\"]=f[\"abort\"],typeof _[\"abort\"]!==\"function\")@throwTypeError(\"underlyingSink.abort should be a function\")}return @initializeWritableStreamSlots(w,f),@setUpWritableStreamDefaultControllerFromUnderlyingSink(w,f,_,E,C),w})\n"; +const char* const s_writableStreamInternalsCreateInternalWritableStreamFromUnderlyingSinkCode = "(function (o,w){\"use strict\";const C={};if(o===@undefined)o={};if(w===@undefined)w={};if(!@isObject(o))@throwTypeError(\"WritableStream constructor takes an object as first argument\");if(\"type\"in o)@throwRangeError(\"Invalid type is specified\");const E=@extractSizeAlgorithm(w),_=@extractHighWaterMark(w,1),f={};if(\"start\"in o){if(f[\"start\"]=o[\"start\"],typeof f[\"start\"]!==\"function\")@throwTypeError(\"underlyingSink.start should be a function\")}if(\"write\"in o){if(f[\"write\"]=o[\"write\"],typeof f[\"write\"]!==\"function\")@throwTypeError(\"underlyingSink.write should be a function\")}if(\"close\"in o){if(f[\"close\"]=o[\"close\"],typeof f[\"close\"]!==\"function\")@throwTypeError(\"underlyingSink.close should be a function\")}if(\"abort\"in o){if(f[\"abort\"]=o[\"abort\"],typeof f[\"abort\"]!==\"function\")@throwTypeError(\"underlyingSink.abort should be a function\")}return @initializeWritableStreamSlots(C,o),@setUpWritableStreamDefaultControllerFromUnderlyingSink(C,o,f,_,E),C})\n"; // initializeWritableStreamSlots const JSC::ConstructAbility s_writableStreamInternalsInitializeWritableStreamSlotsCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -204,7 +204,7 @@ const JSC::ConstructorKind s_writableStreamInternalsWritableStreamFinishErroring const JSC::ImplementationVisibility s_writableStreamInternalsWritableStreamFinishErroringCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_writableStreamInternalsWritableStreamFinishErroringCodeLength = 1058; static const JSC::Intrinsic s_writableStreamInternalsWritableStreamFinishErroringCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_writableStreamInternalsWritableStreamFinishErroringCode = "(function (i){\"use strict\";@assert(@getByIdDirectPrivate(i,\"state\")===\"erroring\"),@assert(!@writableStreamHasOperationMarkedInFlight(i)),@putByIdDirectPrivate(i,\"state\",\"errored\");const _=@getByIdDirectPrivate(i,\"controller\");@getByIdDirectPrivate(_,\"errorSteps\").@call();const p=@getByIdDirectPrivate(i,\"storedError\"),h=@getByIdDirectPrivate(i,\"writeRequests\");for(var A=h.shift();A;A=h.shift())A.@reject.@call(@undefined,p);@putByIdDirectPrivate(i,\"writeRequests\",@createFIFO());const B=@getByIdDirectPrivate(i,\"pendingAbortRequest\");if(B===@undefined){@writableStreamRejectCloseAndClosedPromiseIfNeeded(i);return}if(@putByIdDirectPrivate(i,\"pendingAbortRequest\",@undefined),B.wasAlreadyErroring){B.promise.@reject.@call(@undefined,p),@writableStreamRejectCloseAndClosedPromiseIfNeeded(i);return}@getByIdDirectPrivate(_,\"abortSteps\").@call(@undefined,B.reason).@then(()=>{B.promise.@resolve.@call(),@writableStreamRejectCloseAndClosedPromiseIfNeeded(i)},(I)=>{B.promise.@reject.@call(@undefined,I),@writableStreamRejectCloseAndClosedPromiseIfNeeded(i)})})\n"; +const char* const s_writableStreamInternalsWritableStreamFinishErroringCode = "(function (_){\"use strict\";@assert(@getByIdDirectPrivate(_,\"state\")===\"erroring\"),@assert(!@writableStreamHasOperationMarkedInFlight(_)),@putByIdDirectPrivate(_,\"state\",\"errored\");const p=@getByIdDirectPrivate(_,\"controller\");@getByIdDirectPrivate(p,\"errorSteps\").@call();const h=@getByIdDirectPrivate(_,\"storedError\"),A=@getByIdDirectPrivate(_,\"writeRequests\");for(var B=A.shift();B;B=A.shift())B.@reject.@call(@undefined,h);@putByIdDirectPrivate(_,\"writeRequests\",@createFIFO());const i=@getByIdDirectPrivate(_,\"pendingAbortRequest\");if(i===@undefined){@writableStreamRejectCloseAndClosedPromiseIfNeeded(_);return}if(@putByIdDirectPrivate(_,\"pendingAbortRequest\",@undefined),i.wasAlreadyErroring){i.promise.@reject.@call(@undefined,h),@writableStreamRejectCloseAndClosedPromiseIfNeeded(_);return}@getByIdDirectPrivate(p,\"abortSteps\").@call(@undefined,i.reason).@then(()=>{i.promise.@resolve.@call(),@writableStreamRejectCloseAndClosedPromiseIfNeeded(_)},(I)=>{i.promise.@reject.@call(@undefined,I),@writableStreamRejectCloseAndClosedPromiseIfNeeded(_)})})\n"; // writableStreamFinishInFlightClose const JSC::ConstructAbility s_writableStreamInternalsWritableStreamFinishInFlightCloseCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -348,7 +348,7 @@ const JSC::ConstructorKind s_writableStreamInternalsWritableStreamDefaultWriterW const JSC::ImplementationVisibility s_writableStreamInternalsWritableStreamDefaultWriterWriteCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_writableStreamInternalsWritableStreamDefaultWriterWriteCodeLength = 919; static const JSC::Intrinsic s_writableStreamInternalsWritableStreamDefaultWriterWriteCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_writableStreamInternalsWritableStreamDefaultWriterWriteCode = "(function (d,g){\"use strict\";const P=@getByIdDirectPrivate(d,\"stream\");@assert(P!==@undefined);const W=@getByIdDirectPrivate(P,\"controller\");@assert(W!==@undefined);const _=@writableStreamDefaultControllerGetChunkSize(W,g);if(P!==@getByIdDirectPrivate(d,\"stream\"))return @Promise.@reject(@makeTypeError(\"writer is not stream's writer\"));const b=@getByIdDirectPrivate(P,\"state\");if(b===\"errored\")return @Promise.@reject(@getByIdDirectPrivate(P,\"storedError\"));if(@writableStreamCloseQueuedOrInFlight(P)||b===\"closed\")return @Promise.@reject(@makeTypeError(\"stream is closing or closed\"));if(@writableStreamCloseQueuedOrInFlight(P)||b===\"closed\")return @Promise.@reject(@makeTypeError(\"stream is closing or closed\"));if(b===\"erroring\")return @Promise.@reject(@getByIdDirectPrivate(P,\"storedError\"));@assert(b===\"writable\");const f=@writableStreamAddWriteRequest(P);return @writableStreamDefaultControllerWrite(W,g,_),f})\n"; +const char* const s_writableStreamInternalsWritableStreamDefaultWriterWriteCode = "(function (g,P){\"use strict\";const W=@getByIdDirectPrivate(g,\"stream\");@assert(W!==@undefined);const _=@getByIdDirectPrivate(W,\"controller\");@assert(_!==@undefined);const b=@writableStreamDefaultControllerGetChunkSize(_,P);if(W!==@getByIdDirectPrivate(g,\"stream\"))return @Promise.@reject(@makeTypeError(\"writer is not stream's writer\"));const d=@getByIdDirectPrivate(W,\"state\");if(d===\"errored\")return @Promise.@reject(@getByIdDirectPrivate(W,\"storedError\"));if(@writableStreamCloseQueuedOrInFlight(W)||d===\"closed\")return @Promise.@reject(@makeTypeError(\"stream is closing or closed\"));if(@writableStreamCloseQueuedOrInFlight(W)||d===\"closed\")return @Promise.@reject(@makeTypeError(\"stream is closing or closed\"));if(d===\"erroring\")return @Promise.@reject(@getByIdDirectPrivate(W,\"storedError\"));@assert(d===\"writable\");const f=@writableStreamAddWriteRequest(W);return @writableStreamDefaultControllerWrite(_,P,b),f})\n"; // setUpWritableStreamDefaultController const JSC::ConstructAbility s_writableStreamInternalsSetUpWritableStreamDefaultControllerCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -372,7 +372,7 @@ const JSC::ConstructorKind s_writableStreamInternalsSetUpWritableStreamDefaultCo const JSC::ImplementationVisibility s_writableStreamInternalsSetUpWritableStreamDefaultControllerFromUnderlyingSinkCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_writableStreamInternalsSetUpWritableStreamDefaultControllerFromUnderlyingSinkCodeLength = 573; static const JSC::Intrinsic s_writableStreamInternalsSetUpWritableStreamDefaultControllerFromUnderlyingSinkCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_writableStreamInternalsSetUpWritableStreamDefaultControllerFromUnderlyingSinkCode = "(function (v,P,_,f,j){\"use strict\";const p=new @WritableStreamDefaultController;let q=()=>{},x=()=>{return @Promise.@resolve()},B=()=>{return @Promise.@resolve()},C=()=>{return @Promise.@resolve()};if(\"start\"in _){const E=_[\"start\"];q=()=>@promiseInvokeOrNoopMethodNoCatch(P,E,[p])}if(\"write\"in _){const E=_[\"write\"];x=(F)=>@promiseInvokeOrNoopMethod(P,E,[F,p])}if(\"close\"in _){const E=_[\"close\"];B=()=>@promiseInvokeOrNoopMethod(P,E,[])}if(\"abort\"in _){const E=_[\"abort\"];C=(F)=>@promiseInvokeOrNoopMethod(P,E,[F])}@setUpWritableStreamDefaultController(v,p,q,x,B,C,f,j)})\n"; +const char* const s_writableStreamInternalsSetUpWritableStreamDefaultControllerFromUnderlyingSinkCode = "(function (v,q,P,_,j){\"use strict\";const p=new @WritableStreamDefaultController;let x=()=>{},B=()=>{return @Promise.@resolve()},C=()=>{return @Promise.@resolve()},f=()=>{return @Promise.@resolve()};if(\"start\"in P){const E=P[\"start\"];x=()=>@promiseInvokeOrNoopMethodNoCatch(q,E,[p])}if(\"write\"in P){const E=P[\"write\"];B=(F)=>@promiseInvokeOrNoopMethod(q,E,[F,p])}if(\"close\"in P){const E=P[\"close\"];C=()=>@promiseInvokeOrNoopMethod(q,E,[])}if(\"abort\"in P){const E=P[\"abort\"];f=(F)=>@promiseInvokeOrNoopMethod(q,E,[F])}@setUpWritableStreamDefaultController(v,p,x,B,C,f,_,j)})\n"; // writableStreamDefaultControllerAdvanceQueueIfNeeded const JSC::ConstructAbility s_writableStreamInternalsWritableStreamDefaultControllerAdvanceQueueIfNeededCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -468,7 +468,7 @@ const JSC::ConstructorKind s_writableStreamInternalsWritableStreamDefaultControl const JSC::ImplementationVisibility s_writableStreamInternalsWritableStreamDefaultControllerWriteCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_writableStreamInternalsWritableStreamDefaultControllerWriteCodeLength = 450; static const JSC::Intrinsic s_writableStreamInternalsWritableStreamDefaultControllerWriteCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_writableStreamInternalsWritableStreamDefaultControllerWriteCode = "(function (d,y,B){\"use strict\";try{@enqueueValueWithSize(@getByIdDirectPrivate(d,\"queue\"),y,B);const D=@getByIdDirectPrivate(d,\"stream\"),I=@getByIdDirectPrivate(D,\"state\");if(!@writableStreamCloseQueuedOrInFlight(D)&&I===\"writable\"){const _=@writableStreamDefaultControllerGetBackpressure(d);@writableStreamUpdateBackpressure(D,_)}@writableStreamDefaultControllerAdvanceQueueIfNeeded(d)}catch(D){@writableStreamDefaultControllerErrorIfNeeded(d,D)}})\n"; +const char* const s_writableStreamInternalsWritableStreamDefaultControllerWriteCode = "(function (y,B,D){\"use strict\";try{@enqueueValueWithSize(@getByIdDirectPrivate(y,\"queue\"),B,D);const I=@getByIdDirectPrivate(y,\"stream\"),_=@getByIdDirectPrivate(I,\"state\");if(!@writableStreamCloseQueuedOrInFlight(I)&&_===\"writable\"){const d=@writableStreamDefaultControllerGetBackpressure(y);@writableStreamUpdateBackpressure(I,d)}@writableStreamDefaultControllerAdvanceQueueIfNeeded(y)}catch(I){@writableStreamDefaultControllerErrorIfNeeded(y,I)}})\n"; #define DEFINE_BUILTIN_GENERATOR(codeName, functionName, overriddenName, argumentCount) \ JSC::FunctionExecutable* codeName##Generator(JSC::VM& vm) \ @@ -502,7 +502,7 @@ const JSC::ConstructorKind s_transformStreamInternalsCreateTransformStreamCodeCo const JSC::ImplementationVisibility s_transformStreamInternalsCreateTransformStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_transformStreamInternalsCreateTransformStreamCodeLength = 513; static const JSC::Intrinsic s_transformStreamInternalsCreateTransformStreamCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_transformStreamInternalsCreateTransformStreamCode = "(function (_,c,j,q,v,x,B){\"use strict\";if(q===@undefined)q=1;if(v===@undefined)v=()=>1;if(x===@undefined)x=0;if(B===@undefined)B=()=>1;@assert(q>=0),@assert(x>=0);const D={};@putByIdDirectPrivate(D,\"TransformStream\",!0);const E=new @TransformStream(D),F=@newPromiseCapability(@Promise);@initializeTransformStream(E,F.@promise,q,v,x,B);const G=new @TransformStreamDefaultController;return @setUpTransformStreamDefaultController(E,G,c,j),_().@then(()=>{F.@resolve.@call()},(I)=>{F.@reject.@call(@undefined,I)}),E})\n"; +const char* const s_transformStreamInternalsCreateTransformStreamCode = "(function (_,B,c,j,v,x,D){\"use strict\";if(j===@undefined)j=1;if(v===@undefined)v=()=>1;if(x===@undefined)x=0;if(D===@undefined)D=()=>1;@assert(j>=0),@assert(x>=0);const E={};@putByIdDirectPrivate(E,\"TransformStream\",!0);const F=new @TransformStream(E),q=@newPromiseCapability(@Promise);@initializeTransformStream(F,q.@promise,j,v,x,D);const G=new @TransformStreamDefaultController;return @setUpTransformStreamDefaultController(F,G,B,c),_().@then(()=>{q.@resolve.@call()},(I)=>{q.@reject.@call(@undefined,I)}),F})\n"; // initializeTransformStream const JSC::ConstructAbility s_transformStreamInternalsInitializeTransformStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -510,7 +510,7 @@ const JSC::ConstructorKind s_transformStreamInternalsInitializeTransformStreamCo const JSC::ImplementationVisibility s_transformStreamInternalsInitializeTransformStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_transformStreamInternalsInitializeTransformStreamCodeLength = 1015; static const JSC::Intrinsic s_transformStreamInternalsInitializeTransformStreamCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_transformStreamInternalsInitializeTransformStreamCode = "(function (f,B,T,j,q,v){\"use strict\";const x=()=>{return B},C=(N)=>{return @transformStreamDefaultSinkWriteAlgorithm(f,N)},D=(N)=>{return @transformStreamDefaultSinkAbortAlgorithm(f,N)},E=()=>{return @transformStreamDefaultSinkCloseAlgorithm(f)},F=@createWritableStream(x,C,E,D,T,j),G=()=>{return @transformStreamDefaultSourcePullAlgorithm(f)},I=(N)=>{return @transformStreamErrorWritableAndUnblockWrite(f,N),@Promise.@resolve()},J={};@putByIdDirectPrivate(J,\"start\",x),@putByIdDirectPrivate(J,\"pull\",G),@putByIdDirectPrivate(J,\"cancel\",I);const K={};@putByIdDirectPrivate(K,\"size\",v),@putByIdDirectPrivate(K,\"highWaterMark\",q);const L=new @ReadableStream(J,K);@putByIdDirectPrivate(f,\"writable\",F),@putByIdDirectPrivate(f,\"internalWritable\",@getInternalWritableStream(F)),@putByIdDirectPrivate(f,\"readable\",L),@putByIdDirectPrivate(f,\"backpressure\",@undefined),@putByIdDirectPrivate(f,\"backpressureChangePromise\",@undefined),@transformStreamSetBackpressure(f,!0),@putByIdDirectPrivate(f,\"controller\",@undefined)})\n"; +const char* const s_transformStreamInternalsInitializeTransformStreamCode = "(function (B,T,j,I,q,J){\"use strict\";const v=()=>{return T},K=(F)=>{return @transformStreamDefaultSinkWriteAlgorithm(B,F)},x=(F)=>{return @transformStreamDefaultSinkAbortAlgorithm(B,F)},L=()=>{return @transformStreamDefaultSinkCloseAlgorithm(B)},C=@createWritableStream(v,K,L,x,j,I),f=()=>{return @transformStreamDefaultSourcePullAlgorithm(B)},D=(F)=>{return @transformStreamErrorWritableAndUnblockWrite(B,F),@Promise.@resolve()},G={};@putByIdDirectPrivate(G,\"start\",v),@putByIdDirectPrivate(G,\"pull\",f),@putByIdDirectPrivate(G,\"cancel\",D);const E={};@putByIdDirectPrivate(E,\"size\",J),@putByIdDirectPrivate(E,\"highWaterMark\",q);const N=new @ReadableStream(G,E);@putByIdDirectPrivate(B,\"writable\",C),@putByIdDirectPrivate(B,\"internalWritable\",@getInternalWritableStream(C)),@putByIdDirectPrivate(B,\"readable\",N),@putByIdDirectPrivate(B,\"backpressure\",@undefined),@putByIdDirectPrivate(B,\"backpressureChangePromise\",@undefined),@transformStreamSetBackpressure(B,!0),@putByIdDirectPrivate(B,\"controller\",@undefined)})\n"; // transformStreamError const JSC::ConstructAbility s_transformStreamInternalsTransformStreamErrorCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -566,7 +566,7 @@ const JSC::ConstructorKind s_transformStreamInternalsTransformStreamDefaultContr const JSC::ImplementationVisibility s_transformStreamInternalsTransformStreamDefaultControllerEnqueueCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_transformStreamInternalsTransformStreamDefaultControllerEnqueueCodeLength = 622; static const JSC::Intrinsic s_transformStreamInternalsTransformStreamDefaultControllerEnqueueCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_transformStreamInternalsTransformStreamDefaultControllerEnqueueCode = "(function (_,S){\"use strict\";const W=@getByIdDirectPrivate(_,\"stream\"),f=@getByIdDirectPrivate(W,\"readable\"),g=@getByIdDirectPrivate(f,\"readableStreamController\");if(@assert(g!==@undefined),!@readableStreamDefaultControllerCanCloseOrEnqueue(g))@throwTypeError(\"TransformStream.readable cannot close or enqueue\");try{@readableStreamDefaultControllerEnqueue(g,S)}catch(j){throw @transformStreamErrorWritableAndUnblockWrite(W,j),@getByIdDirectPrivate(f,\"storedError\")}const i=!@readableStreamDefaultControllerShouldCallPull(g);if(i!==@getByIdDirectPrivate(W,\"backpressure\"))@assert(i),@transformStreamSetBackpressure(W,!0)})\n"; +const char* const s_transformStreamInternalsTransformStreamDefaultControllerEnqueueCode = "(function (S,W){\"use strict\";const f=@getByIdDirectPrivate(S,\"stream\"),g=@getByIdDirectPrivate(f,\"readable\"),i=@getByIdDirectPrivate(g,\"readableStreamController\");if(@assert(i!==@undefined),!@readableStreamDefaultControllerCanCloseOrEnqueue(i))@throwTypeError(\"TransformStream.readable cannot close or enqueue\");try{@readableStreamDefaultControllerEnqueue(i,W)}catch(j){throw @transformStreamErrorWritableAndUnblockWrite(f,j),@getByIdDirectPrivate(g,\"storedError\")}const _=!@readableStreamDefaultControllerShouldCallPull(i);if(_!==@getByIdDirectPrivate(f,\"backpressure\"))@assert(_),@transformStreamSetBackpressure(f,!0)})\n"; // transformStreamDefaultControllerError const JSC::ConstructAbility s_transformStreamInternalsTransformStreamDefaultControllerErrorCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -598,7 +598,7 @@ const JSC::ConstructorKind s_transformStreamInternalsTransformStreamDefaultSinkW const JSC::ImplementationVisibility s_transformStreamInternalsTransformStreamDefaultSinkWriteAlgorithmCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_transformStreamInternalsTransformStreamDefaultSinkWriteAlgorithmCodeLength = 764; static const JSC::Intrinsic s_transformStreamInternalsTransformStreamDefaultSinkWriteAlgorithmCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_transformStreamInternalsTransformStreamDefaultSinkWriteAlgorithmCode = "(function (_,d){\"use strict\";const v=@getByIdDirectPrivate(_,\"internalWritable\");@assert(@getByIdDirectPrivate(v,\"state\")===\"writable\");const f=@getByIdDirectPrivate(_,\"controller\");if(@getByIdDirectPrivate(_,\"backpressure\")){const j=@newPromiseCapability(@Promise),q=@getByIdDirectPrivate(_,\"backpressureChangePromise\");return @assert(q!==@undefined),q.@promise.@then(()=>{const x=@getByIdDirectPrivate(v,\"state\");if(x===\"erroring\"){j.@reject.@call(@undefined,@getByIdDirectPrivate(v,\"storedError\"));return}@assert(x===\"writable\"),@transformStreamDefaultControllerPerformTransform(f,d).@then(()=>{j.@resolve()},(z)=>{j.@reject.@call(@undefined,z)})},(x)=>{j.@reject.@call(@undefined,x)}),j.@promise}return @transformStreamDefaultControllerPerformTransform(f,d)})\n"; +const char* const s_transformStreamInternalsTransformStreamDefaultSinkWriteAlgorithmCode = "(function (d,v){\"use strict\";const f=@getByIdDirectPrivate(d,\"internalWritable\");@assert(@getByIdDirectPrivate(f,\"state\")===\"writable\");const j=@getByIdDirectPrivate(d,\"controller\");if(@getByIdDirectPrivate(d,\"backpressure\")){const x=@newPromiseCapability(@Promise),_=@getByIdDirectPrivate(d,\"backpressureChangePromise\");return @assert(_!==@undefined),_.@promise.@then(()=>{const z=@getByIdDirectPrivate(f,\"state\");if(z===\"erroring\"){x.@reject.@call(@undefined,@getByIdDirectPrivate(f,\"storedError\"));return}@assert(z===\"writable\"),@transformStreamDefaultControllerPerformTransform(j,v).@then(()=>{x.@resolve()},(q)=>{x.@reject.@call(@undefined,q)})},(z)=>{x.@reject.@call(@undefined,z)}),x.@promise}return @transformStreamDefaultControllerPerformTransform(j,v)})\n"; // transformStreamDefaultSinkAbortAlgorithm const JSC::ConstructAbility s_transformStreamInternalsTransformStreamDefaultSinkAbortAlgorithmCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -614,7 +614,7 @@ const JSC::ConstructorKind s_transformStreamInternalsTransformStreamDefaultSinkC const JSC::ImplementationVisibility s_transformStreamInternalsTransformStreamDefaultSinkCloseAlgorithmCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_transformStreamInternalsTransformStreamDefaultSinkCloseAlgorithmCodeLength = 789; static const JSC::Intrinsic s_transformStreamInternalsTransformStreamDefaultSinkCloseAlgorithmCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_transformStreamInternalsTransformStreamDefaultSinkCloseAlgorithmCode = "(function (_){\"use strict\";const q=@getByIdDirectPrivate(_,\"readable\"),I=@getByIdDirectPrivate(_,\"controller\"),f=@getByIdDirectPrivate(q,\"readableStreamController\"),j=@getByIdDirectPrivate(I,\"flushAlgorithm\");@assert(j!==@undefined);const k=@getByIdDirectPrivate(I,\"flushAlgorithm\").@call();@transformStreamDefaultControllerClearAlgorithms(I);const u=@newPromiseCapability(@Promise);return k.@then(()=>{if(@getByIdDirectPrivate(q,\"state\")===@streamErrored){u.@reject.@call(@undefined,@getByIdDirectPrivate(q,\"storedError\"));return}if(@readableStreamDefaultControllerCanCloseOrEnqueue(f))@readableStreamDefaultControllerClose(f);u.@resolve()},(v)=>{@transformStreamError(@getByIdDirectPrivate(I,\"stream\"),v),u.@reject.@call(@undefined,@getByIdDirectPrivate(q,\"storedError\"))}),u.@promise})\n"; +const char* const s_transformStreamInternalsTransformStreamDefaultSinkCloseAlgorithmCode = "(function (_){\"use strict\";const I=@getByIdDirectPrivate(_,\"readable\"),k=@getByIdDirectPrivate(_,\"controller\"),f=@getByIdDirectPrivate(I,\"readableStreamController\"),u=@getByIdDirectPrivate(k,\"flushAlgorithm\");@assert(u!==@undefined);const v=@getByIdDirectPrivate(k,\"flushAlgorithm\").@call();@transformStreamDefaultControllerClearAlgorithms(k);const q=@newPromiseCapability(@Promise);return v.@then(()=>{if(@getByIdDirectPrivate(I,\"state\")===@streamErrored){q.@reject.@call(@undefined,@getByIdDirectPrivate(I,\"storedError\"));return}if(@readableStreamDefaultControllerCanCloseOrEnqueue(f))@readableStreamDefaultControllerClose(f);q.@resolve()},(j)=>{@transformStreamError(@getByIdDirectPrivate(k,\"stream\"),j),q.@reject.@call(@undefined,@getByIdDirectPrivate(I,\"storedError\"))}),q.@promise})\n"; // transformStreamDefaultSourcePullAlgorithm const JSC::ConstructAbility s_transformStreamInternalsTransformStreamDefaultSourcePullAlgorithmCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -648,7 +648,7 @@ const JSC::ConstructorKind s_processObjectInternalsGetStdioWriteStreamCodeConstr const JSC::ImplementationVisibility s_processObjectInternalsGetStdioWriteStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_processObjectInternalsGetStdioWriteStreamCodeLength = 4250; static const JSC::Intrinsic s_processObjectInternalsGetStdioWriteStreamCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_processObjectInternalsGetStdioWriteStreamCode = "(function (B,j){\"use strict\";var z={path:\"node:process\",require:j},G=(N)=>z.require(N);function H(N){var{Duplex:O,eos:Q,destroy:U}=G(\"node:stream\"),V=class X extends O{#$;#B;#j=!0;#z=!0;#G;#H;#J;#K;#L;#M;get isTTY(){return this.#M\?\?=G(\"node:tty\").isatty(N)}get fd(){return N}constructor(Z){super({readable:!0,writable:!0});this.#G=`/dev/fd/${Z}`}#N(Z){const Y=this.#H;if(this.#H=null,Y)Y(Z);else if(Z)this.destroy(Z);else if(!this.#j&&!this.#z)this.destroy()}_destroy(Z,Y){if(!Z&&this.#H!==null){var P=class A extends Error{code;name;constructor(T=\"The operation was aborted\",x=void 0){if(x!==void 0&&typeof x!==\"object\")throw new Error(`Invalid AbortError options:\\n\\n${JSON.stringify(x,null,2)}`);super(T,x);this.code=\"ABORT_ERR\",this.name=\"AbortError\"}};Z=new P}if(this.#J=null,this.#K=null,this.#H===null)Y(Z);else{if(this.#H=Y,this.#$)U(this.#$,Z);if(this.#B)U(this.#B,Z)}}_write(Z,Y,P){if(!this.#$){var{createWriteStream:A}=G(\"node:fs\"),T=this.#$=A(this.#G);T.on(\"finish\",()=>{if(this.#K){const x=this.#K;this.#K=null,x()}}),T.on(\"drain\",()=>{if(this.#J){const x=this.#J;this.#J=null,x()}}),Q(T,(x)=>{if(this.#z=!1,x)U(T,x);this.#N(x)})}if(T.write(Z,Y))P();else this.#J=P}_final(Z){this.#$&&this.#$.end(),this.#K=Z}#O(){var{createReadStream:Z}=G(\"node:fs\"),Y=this.#B=Z(this.#G);return Y.on(\"readable\",()=>{if(this.#L){const P=this.#L;this.#L=null,P()}else this.read()}),Y.on(\"end\",()=>{this.push(null)}),Q(Y,(P)=>{if(this.#j=!1,P)U(Y,P);this.#N(P)}),Y}_read(){var Z=this.#B;if(!Z)Z=this.#O();while(!0){const Y=Z.read();if(Y===null||!this.push(Y))return}}};return new V(N)}var{EventEmitter:J}=G(\"node:events\");function K(N){if(!N)return!0;var O=N.toLowerCase();return O===\"utf8\"||O===\"utf-8\"||O===\"buffer\"||O===\"binary\"}var L,M=class N extends J{#$;#B;#j;#z;bytesWritten=0;setDefaultEncoding(O){if(this.#B||!K(O))return this.#J(),this.#B.setDefaultEncoding(O)}#G(){switch(this.#$){case 1:{var O=@Bun.stdout.writer({highWaterMark:0});return O.unref(),O}case 2:{var O=@Bun.stderr.writer({highWaterMark:0});return O.unref(),O}default:throw new Error(\"Unsupported writer\")}}#H(){return this.#j\?\?=this.#G()}constructor(O){super();this.#$=O}get fd(){return this.#$}get isTTY(){return this.#z\?\?=G(\"node:tty\").isatty(this.#$)}cursorTo(O,Q,U){return(L\?\?=G(\"readline\")).cursorTo(this,O,Q,U)}moveCursor(O,Q,U){return(L\?\?=G(\"readline\")).moveCursor(this,O,Q,U)}clearLine(O,Q){return(L\?\?=G(\"readline\")).clearLine(this,O,Q)}clearScreenDown(O){return(L\?\?=G(\"readline\")).clearScreenDown(this,O)}ref(){this.#H().ref()}unref(){this.#H().unref()}on(O,Q){if(O===\"close\"||O===\"finish\")return this.#J(),this.#B.on(O,Q);if(O===\"drain\")return super.on(\"drain\",Q);if(O===\"error\")return super.on(\"error\",Q);return super.on(O,Q)}get _writableState(){return this.#J(),this.#B._writableState}get _readableState(){return this.#J(),this.#B._readableState}pipe(O){return this.#J(),this.#B.pipe(O)}unpipe(O){return this.#J(),this.#B.unpipe(O)}#J(){if(this.#B)return;this.#B=H(this.#$);const O=this.eventNames();for(let Q of O)this.#B.on(Q,(...U)=>{this.emit(Q,...U)})}#K(O){var Q=this.#H();const U=Q.write(O);this.bytesWritten+=U;const V=Q.flush(!1);return!!(U||V)}#L(O,Q){if(!K(Q))return this.#J(),this.#B.write(O,Q);return this.#K(O)}#M(O,Q){if(Q)this.emit(\"error\",Q);try{O(Q\?Q:null)}catch(U){this.emit(\"error\",U)}}#N(O,Q,U){if(!K(Q))return this.#J(),this.#B.write(O,Q,U);var V=this.#H();const X=V.write(O),Z=V.flush(!0);if(Z\?.then)return Z.then(()=>{this.#M(U),this.emit(\"drain\")},(Y)=>this.#M(U,Y)),!1;return queueMicrotask(()=>{this.#M(U)}),!!(X||Z)}write(O,Q,U){const V=this._write(O,Q,U);if(V)this.emit(\"drain\");return V}get hasColors(){return @Bun.tty[this.#$].hasColors}_write(O,Q,U){var V=this.#B;if(V)return V.write(O,Q,U);switch(arguments.length){case 0:{var X=new Error(\"Invalid arguments\");throw X.code=\"ERR_INVALID_ARG_TYPE\",X}case 1:return this.#K(O);case 2:if(typeof Q===\"function\")return this.#N(O,\"\",Q);else if(typeof Q===\"string\")return this.#L(O,Q);default:{if(typeof Q!==\"undefined\"&&typeof Q!==\"string\"||typeof U!==\"undefined\"&&typeof U!==\"function\"){var X=new Error(\"Invalid arguments\");throw X.code=\"ERR_INVALID_ARG_TYPE\",X}if(typeof U===\"undefined\")return this.#L(O,Q);return this.#N(O,Q,U)}}}destroy(){return this}end(){return this}};return new M(B)})\n"; +const char* const s_processObjectInternalsGetStdioWriteStreamCode = "(function (j,H){\"use strict\";var J={path:\"node:process\",require:H},G=(N)=>J.require(N);function K(N){var{Duplex:O,eos:Q,destroy:U}=G(\"node:stream\"),V=class X extends O{#$;#B;#j=!0;#z=!0;#G;#H;#J;#K;#L;#M;get isTTY(){return this.#M\?\?=G(\"node:tty\").isatty(N)}get fd(){return N}constructor(Z){super({readable:!0,writable:!0});this.#G=`/dev/fd/${Z}`}#N(Z){const Y=this.#H;if(this.#H=null,Y)Y(Z);else if(Z)this.destroy(Z);else if(!this.#j&&!this.#z)this.destroy()}_destroy(Z,Y){if(!Z&&this.#H!==null){var P=class A extends Error{code;name;constructor(T=\"The operation was aborted\",x=void 0){if(x!==void 0&&typeof x!==\"object\")throw new Error(`Invalid AbortError options:\\n\\n${JSON.stringify(x,null,2)}`);super(T,x);this.code=\"ABORT_ERR\",this.name=\"AbortError\"}};Z=new P}if(this.#J=null,this.#K=null,this.#H===null)Y(Z);else{if(this.#H=Y,this.#$)U(this.#$,Z);if(this.#B)U(this.#B,Z)}}_write(Z,Y,P){if(!this.#$){var{createWriteStream:A}=G(\"node:fs\"),T=this.#$=A(this.#G);T.on(\"finish\",()=>{if(this.#K){const x=this.#K;this.#K=null,x()}}),T.on(\"drain\",()=>{if(this.#J){const x=this.#J;this.#J=null,x()}}),Q(T,(x)=>{if(this.#z=!1,x)U(T,x);this.#N(x)})}if(T.write(Z,Y))P();else this.#J=P}_final(Z){this.#$&&this.#$.end(),this.#K=Z}#O(){var{createReadStream:Z}=G(\"node:fs\"),Y=this.#B=Z(this.#G);return Y.on(\"readable\",()=>{if(this.#L){const P=this.#L;this.#L=null,P()}else this.read()}),Y.on(\"end\",()=>{this.push(null)}),Q(Y,(P)=>{if(this.#j=!1,P)U(Y,P);this.#N(P)}),Y}_read(){var Z=this.#B;if(!Z)Z=this.#O();while(!0){const Y=Z.read();if(Y===null||!this.push(Y))return}}};return new V(N)}var{EventEmitter:z}=G(\"node:events\");function L(N){if(!N)return!0;var O=N.toLowerCase();return O===\"utf8\"||O===\"utf-8\"||O===\"buffer\"||O===\"binary\"}var M,B=class N extends z{#$;#B;#j;#z;bytesWritten=0;setDefaultEncoding(O){if(this.#B||!L(O))return this.#J(),this.#B.setDefaultEncoding(O)}#G(){switch(this.#$){case 1:{var O=@Bun.stdout.writer({highWaterMark:0});return O.unref(),O}case 2:{var O=@Bun.stderr.writer({highWaterMark:0});return O.unref(),O}default:throw new Error(\"Unsupported writer\")}}#H(){return this.#j\?\?=this.#G()}constructor(O){super();this.#$=O}get fd(){return this.#$}get isTTY(){return this.#z\?\?=G(\"node:tty\").isatty(this.#$)}cursorTo(O,Q,U){return(M\?\?=G(\"readline\")).cursorTo(this,O,Q,U)}moveCursor(O,Q,U){return(M\?\?=G(\"readline\")).moveCursor(this,O,Q,U)}clearLine(O,Q){return(M\?\?=G(\"readline\")).clearLine(this,O,Q)}clearScreenDown(O){return(M\?\?=G(\"readline\")).clearScreenDown(this,O)}ref(){this.#H().ref()}unref(){this.#H().unref()}on(O,Q){if(O===\"close\"||O===\"finish\")return this.#J(),this.#B.on(O,Q);if(O===\"drain\")return super.on(\"drain\",Q);if(O===\"error\")return super.on(\"error\",Q);return super.on(O,Q)}get _writableState(){return this.#J(),this.#B._writableState}get _readableState(){return this.#J(),this.#B._readableState}pipe(O){return this.#J(),this.#B.pipe(O)}unpipe(O){return this.#J(),this.#B.unpipe(O)}#J(){if(this.#B)return;this.#B=K(this.#$);const O=this.eventNames();for(let Q of O)this.#B.on(Q,(...U)=>{this.emit(Q,...U)})}#K(O){var Q=this.#H();const U=Q.write(O);this.bytesWritten+=U;const V=Q.flush(!1);return!!(U||V)}#L(O,Q){if(!L(Q))return this.#J(),this.#B.write(O,Q);return this.#K(O)}#M(O,Q){if(Q)this.emit(\"error\",Q);try{O(Q\?Q:null)}catch(U){this.emit(\"error\",U)}}#N(O,Q,U){if(!L(Q))return this.#J(),this.#B.write(O,Q,U);var V=this.#H();const X=V.write(O),Z=V.flush(!0);if(Z\?.then)return Z.then(()=>{this.#M(U),this.emit(\"drain\")},(Y)=>this.#M(U,Y)),!1;return queueMicrotask(()=>{this.#M(U)}),!!(X||Z)}write(O,Q,U){const V=this._write(O,Q,U);if(V)this.emit(\"drain\");return V}get hasColors(){return @Bun.tty[this.#$].hasColors}_write(O,Q,U){var V=this.#B;if(V)return V.write(O,Q,U);switch(arguments.length){case 0:{var X=new Error(\"Invalid arguments\");throw X.code=\"ERR_INVALID_ARG_TYPE\",X}case 1:return this.#K(O);case 2:if(typeof Q===\"function\")return this.#N(O,\"\",Q);else if(typeof Q===\"string\")return this.#L(O,Q);default:{if(typeof Q!==\"undefined\"&&typeof Q!==\"string\"||typeof U!==\"undefined\"&&typeof U!==\"function\"){var X=new Error(\"Invalid arguments\");throw X.code=\"ERR_INVALID_ARG_TYPE\",X}if(typeof U===\"undefined\")return this.#L(O,Q);return this.#N(O,Q,U)}}}destroy(){return this}end(){return this}};return new B(j)})\n"; // getStdinStream const JSC::ConstructAbility s_processObjectInternalsGetStdinStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -656,7 +656,7 @@ const JSC::ConstructorKind s_processObjectInternalsGetStdinStreamCodeConstructor const JSC::ImplementationVisibility s_processObjectInternalsGetStdinStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_processObjectInternalsGetStdinStreamCodeLength = 1799; static const JSC::Intrinsic s_processObjectInternalsGetStdinStreamCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_processObjectInternalsGetStdinStreamCode = "(function (Y,j,z){\"use strict\";var G={path:\"node:process\",require:j},H=(M)=>G.require(M),{Duplex:I,eos:J,destroy:K}=H(\"node:stream\"),L=class M extends I{#Y;#$;#j;#z=!0;#G=!1;#H=!0;#I;#J;#K;get isTTY(){return H(\"tty\").isatty(Y)}get fd(){return Y}constructor(){super({readable:!0,writable:!0})}#L(N){const P=this.#J;if(this.#J=null,P)P(N);else if(N)this.destroy(N);else if(!this.#z&&!this.#H)this.destroy()}_destroy(N,P){if(!N&&this.#J!==null){var Q=class T extends Error{constructor(U=\"The operation was aborted\",V=void 0){if(V!==void 0&&typeof V!==\"object\")throw new Error(`Invalid AbortError options:\\n\\n${JSON.stringify(V,null,2)}`);super(U,V);this.code=\"ABORT_ERR\",this.name=\"AbortError\"}};N=new Q}if(this.#J===null)P(N);else if(this.#J=P,this.#j)K(this.#j,N)}setRawMode(N){}on(N,P){if(N===\"readable\")this.ref(),this.#G=!0;return super.on(N,P)}pause(){return this.unref(),super.pause()}resume(){return this.ref(),super.resume()}ref(){this.#Y\?\?=z.stdin.stream().getReader(),this.#$\?\?=setInterval(()=>{},1<<30)}unref(){if(this.#$)clearInterval(this.#$),this.#$=null}async#M(){try{var N,P;const Q=this.#Y.readMany();if(!Q\?.then)({done:N,value:P}=Q);else({done:N,value:P}=await Q);if(!N){this.push(P[0]);const T=P.length;for(let U=1;U<T;U++)this.push(P[U])}else this.push(null),this.pause(),this.#z=!1,this.#L()}catch(Q){this.#z=!1,this.#L(Q)}}_read(N){if(this.#G)this.unref(),this.#G=!1;this.#M()}#N(){var{createWriteStream:N}=H(\"node:fs\"),P=this.#j=N(\"/dev/fd/0\");return P.on(\"finish\",()=>{if(this.#I){const Q=this.#I;this.#I=null,Q()}}),P.on(\"drain\",()=>{if(this.#K){const Q=this.#K;this.#K=null,Q()}}),J(P,(Q)=>{if(this.#H=!1,Q)K(P,Q);this.#L(Q)}),P}_write(N,P,Q){var T=this.#j;if(!T)T=this.#N();if(T.write(N,P))Q();else this.#K=Q}_final(N){this.#j.end(),this.#I=(...P)=>N(...P)}};return new L})\n"; +const char* const s_processObjectInternalsGetStdinStreamCode = "(function (Y,G,K){\"use strict\";var L={path:\"node:process\",require:G},M=(H)=>L.require(H),{Duplex:N,eos:P,destroy:Q}=M(\"node:stream\"),j=class H extends N{#Y;#$;#j;#z=!0;#G=!1;#H=!0;#I;#J;#K;get isTTY(){return M(\"tty\").isatty(Y)}get fd(){return Y}constructor(){super({readable:!0,writable:!0})}#L(T){const U=this.#J;if(this.#J=null,U)U(T);else if(T)this.destroy(T);else if(!this.#z&&!this.#H)this.destroy()}_destroy(T,U){if(!T&&this.#J!==null){var I=class z extends Error{constructor(J=\"The operation was aborted\",V=void 0){if(V!==void 0&&typeof V!==\"object\")throw new Error(`Invalid AbortError options:\\n\\n${JSON.stringify(V,null,2)}`);super(J,V);this.code=\"ABORT_ERR\",this.name=\"AbortError\"}};T=new I}if(this.#J===null)U(T);else if(this.#J=U,this.#j)Q(this.#j,T)}setRawMode(T){}on(T,U){if(T===\"readable\")this.ref(),this.#G=!0;return super.on(T,U)}pause(){return this.unref(),super.pause()}resume(){return this.ref(),super.resume()}ref(){this.#Y\?\?=K.stdin.stream().getReader(),this.#$\?\?=setInterval(()=>{},1<<30)}unref(){if(this.#$)clearInterval(this.#$),this.#$=null}async#M(){try{var T,U;const I=this.#Y.readMany();if(!I\?.then)({done:T,value:U}=I);else({done:T,value:U}=await I);if(!T){this.push(U[0]);const z=U.length;for(let J=1;J<z;J++)this.push(U[J])}else this.push(null),this.pause(),this.#z=!1,this.#L()}catch(I){this.#z=!1,this.#L(I)}}_read(T){if(this.#G)this.unref(),this.#G=!1;this.#M()}#N(){var{createWriteStream:T}=M(\"node:fs\"),U=this.#j=T(\"/dev/fd/0\");return U.on(\"finish\",()=>{if(this.#I){const I=this.#I;this.#I=null,I()}}),U.on(\"drain\",()=>{if(this.#K){const I=this.#K;this.#K=null,I()}}),P(U,(I)=>{if(this.#H=!1,I)Q(U,I);this.#L(I)}),U}_write(T,U,I){var z=this.#j;if(!z)z=this.#N();if(z.write(T,U))I();else this.#K=I}_final(T){this.#j.end(),this.#I=(...U)=>T(...U)}};return new j})\n"; #define DEFINE_BUILTIN_GENERATOR(codeName, functionName, overriddenName, argumentCount) \ JSC::FunctionExecutable* codeName##Generator(JSC::VM& vm) \ @@ -674,7 +674,7 @@ const JSC::ConstructorKind s_transformStreamInitializeTransformStreamCodeConstru const JSC::ImplementationVisibility s_transformStreamInitializeTransformStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_transformStreamInitializeTransformStreamCodeLength = 1334; static const JSC::Intrinsic s_transformStreamInitializeTransformStreamCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_transformStreamInitializeTransformStreamCode = "(function (){\"use strict\";let _=arguments[0];if(@isObject(_)&&@getByIdDirectPrivate(_,\"TransformStream\"))return this;let u=arguments[1],j=arguments[2];if(_===@undefined)_=null;if(j===@undefined)j={};if(u===@undefined)u={};let q={};if(_!==null){if(\"start\"in _){if(q[\"start\"]=_[\"start\"],typeof q[\"start\"]!==\"function\")@throwTypeError(\"transformer.start should be a function\")}if(\"transform\"in _){if(q[\"transform\"]=_[\"transform\"],typeof q[\"transform\"]!==\"function\")@throwTypeError(\"transformer.transform should be a function\")}if(\"flush\"in _){if(q[\"flush\"]=_[\"flush\"],typeof q[\"flush\"]!==\"function\")@throwTypeError(\"transformer.flush should be a function\")}if(\"readableType\"in _)@throwRangeError(\"TransformStream transformer has a readableType\");if(\"writableType\"in _)@throwRangeError(\"TransformStream transformer has a writableType\")}const v=@extractHighWaterMark(j,0),x=@extractSizeAlgorithm(j),B=@extractHighWaterMark(u,1),E=@extractSizeAlgorithm(u),F=@newPromiseCapability(@Promise);if(@initializeTransformStream(this,F.@promise,B,E,v,x),@setUpTransformStreamDefaultControllerFromTransformer(this,_,q),(\"start\"in q)){const G=@getByIdDirectPrivate(this,\"controller\");(()=>@promiseInvokeOrNoopMethodNoCatch(_,q[\"start\"],[G]))().@then(()=>{F.@resolve.@call()},(J)=>{F.@reject.@call(@undefined,J)})}else F.@resolve.@call();return this})\n"; +const char* const s_transformStreamInitializeTransformStreamCode = "(function (){\"use strict\";let u=arguments[0];if(@isObject(u)&&@getByIdDirectPrivate(u,\"TransformStream\"))return this;let G=arguments[1],E=arguments[2];if(u===@undefined)u=null;if(E===@undefined)E={};if(G===@undefined)G={};let j={};if(u!==null){if(\"start\"in u){if(j[\"start\"]=u[\"start\"],typeof j[\"start\"]!==\"function\")@throwTypeError(\"transformer.start should be a function\")}if(\"transform\"in u){if(j[\"transform\"]=u[\"transform\"],typeof j[\"transform\"]!==\"function\")@throwTypeError(\"transformer.transform should be a function\")}if(\"flush\"in u){if(j[\"flush\"]=u[\"flush\"],typeof j[\"flush\"]!==\"function\")@throwTypeError(\"transformer.flush should be a function\")}if(\"readableType\"in u)@throwRangeError(\"TransformStream transformer has a readableType\");if(\"writableType\"in u)@throwRangeError(\"TransformStream transformer has a writableType\")}const q=@extractHighWaterMark(E,0),J=@extractSizeAlgorithm(E),_=@extractHighWaterMark(G,1),v=@extractSizeAlgorithm(G),x=@newPromiseCapability(@Promise);if(@initializeTransformStream(this,x.@promise,_,v,q,J),@setUpTransformStreamDefaultControllerFromTransformer(this,u,j),(\"start\"in j)){const I=@getByIdDirectPrivate(this,\"controller\");(()=>@promiseInvokeOrNoopMethodNoCatch(u,j[\"start\"],[I]))().@then(()=>{x.@resolve.@call()},(B)=>{x.@reject.@call(@undefined,B)})}else x.@resolve.@call();return this})\n"; // readable const JSC::ConstructAbility s_transformStreamReadableCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -900,7 +900,7 @@ const JSC::ConstructorKind s_jsBufferPrototypeWriteUInt8CodeConstructorKind = JS const JSC::ImplementationVisibility s_jsBufferPrototypeWriteUInt8CodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_jsBufferPrototypeWriteUInt8CodeLength = 132; static const JSC::Intrinsic s_jsBufferPrototypeWriteUInt8CodeIntrinsic = JSC::NoIntrinsic; -const char* const s_jsBufferPrototypeWriteUInt8Code = "(function (c,d){\"use strict\";return(this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength)).setUint8(d,c),d+1})\n"; +const char* const s_jsBufferPrototypeWriteUInt8Code = "(function (d,c){\"use strict\";return(this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength)).setUint8(c,d),c+1})\n"; // writeInt16LE const JSC::ConstructAbility s_jsBufferPrototypeWriteInt16LECodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -956,7 +956,7 @@ const JSC::ConstructorKind s_jsBufferPrototypeWriteUInt32LECodeConstructorKind = const JSC::ImplementationVisibility s_jsBufferPrototypeWriteUInt32LECodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_jsBufferPrototypeWriteUInt32LECodeLength = 136; static const JSC::Intrinsic s_jsBufferPrototypeWriteUInt32LECodeIntrinsic = JSC::NoIntrinsic; -const char* const s_jsBufferPrototypeWriteUInt32LECode = "(function (c,d){\"use strict\";return(this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength)).setUint32(d,c,!0),d+4})\n"; +const char* const s_jsBufferPrototypeWriteUInt32LECode = "(function (d,c){\"use strict\";return(this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength)).setUint32(c,d,!0),c+4})\n"; // writeUInt32BE const JSC::ConstructAbility s_jsBufferPrototypeWriteUInt32BECodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -972,7 +972,7 @@ const JSC::ConstructorKind s_jsBufferPrototypeWriteIntLECodeConstructorKind = JS const JSC::ImplementationVisibility s_jsBufferPrototypeWriteIntLECodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_jsBufferPrototypeWriteIntLECodeLength = 573; static const JSC::Intrinsic s_jsBufferPrototypeWriteIntLECodeIntrinsic = JSC::NoIntrinsic; -const char* const s_jsBufferPrototypeWriteIntLECode = "(function (d,r,c){\"use strict\";const j=this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength);switch(c){case 1:{j.setInt8(r,d);break}case 2:{j.setInt16(r,d,!0);break}case 3:{j.setUint16(r,d&65535,!0),j.setInt8(r+2,Math.floor(d*0.0000152587890625));break}case 4:{j.setInt32(r,d,!0);break}case 5:{j.setUint32(r,d|0,!0),j.setInt8(r+4,Math.floor(d*0.00000000023283064365386964));break}case 6:{j.setUint32(r,d|0,!0),j.setInt16(r+4,Math.floor(d*0.00000000023283064365386964),!0);break}default:@throwRangeError(\"byteLength must be >= 1 and <= 6\")}return r+c})\n"; +const char* const s_jsBufferPrototypeWriteIntLECode = "(function (c,j,r){\"use strict\";const d=this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength);switch(r){case 1:{d.setInt8(j,c);break}case 2:{d.setInt16(j,c,!0);break}case 3:{d.setUint16(j,c&65535,!0),d.setInt8(j+2,Math.floor(c*0.0000152587890625));break}case 4:{d.setInt32(j,c,!0);break}case 5:{d.setUint32(j,c|0,!0),d.setInt8(j+4,Math.floor(c*0.00000000023283064365386964));break}case 6:{d.setUint32(j,c|0,!0),d.setInt16(j+4,Math.floor(c*0.00000000023283064365386964),!0);break}default:@throwRangeError(\"byteLength must be >= 1 and <= 6\")}return j+r})\n"; // writeIntBE const JSC::ConstructAbility s_jsBufferPrototypeWriteIntBECodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -980,7 +980,7 @@ const JSC::ConstructorKind s_jsBufferPrototypeWriteIntBECodeConstructorKind = JS const JSC::ImplementationVisibility s_jsBufferPrototypeWriteIntBECodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_jsBufferPrototypeWriteIntBECodeLength = 573; static const JSC::Intrinsic s_jsBufferPrototypeWriteIntBECodeIntrinsic = JSC::NoIntrinsic; -const char* const s_jsBufferPrototypeWriteIntBECode = "(function (d,r,E){\"use strict\";const c=this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength);switch(E){case 1:{c.setInt8(r,d);break}case 2:{c.setInt16(r,d,!1);break}case 3:{c.setUint16(r+1,d&65535,!1),c.setInt8(r,Math.floor(d*0.0000152587890625));break}case 4:{c.setInt32(r,d,!1);break}case 5:{c.setUint32(r+1,d|0,!1),c.setInt8(r,Math.floor(d*0.00000000023283064365386964));break}case 6:{c.setUint32(r+2,d|0,!1),c.setInt16(r,Math.floor(d*0.00000000023283064365386964),!1);break}default:@throwRangeError(\"byteLength must be >= 1 and <= 6\")}return r+E})\n"; +const char* const s_jsBufferPrototypeWriteIntBECode = "(function (r,E,c){\"use strict\";const d=this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength);switch(c){case 1:{d.setInt8(E,r);break}case 2:{d.setInt16(E,r,!1);break}case 3:{d.setUint16(E+1,r&65535,!1),d.setInt8(E,Math.floor(r*0.0000152587890625));break}case 4:{d.setInt32(E,r,!1);break}case 5:{d.setUint32(E+1,r|0,!1),d.setInt8(E,Math.floor(r*0.00000000023283064365386964));break}case 6:{d.setUint32(E+2,r|0,!1),d.setInt16(E,Math.floor(r*0.00000000023283064365386964),!1);break}default:@throwRangeError(\"byteLength must be >= 1 and <= 6\")}return E+c})\n"; // writeUIntLE const JSC::ConstructAbility s_jsBufferPrototypeWriteUIntLECodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -988,7 +988,7 @@ const JSC::ConstructorKind s_jsBufferPrototypeWriteUIntLECodeConstructorKind = J const JSC::ImplementationVisibility s_jsBufferPrototypeWriteUIntLECodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_jsBufferPrototypeWriteUIntLECodeLength = 579; static const JSC::Intrinsic s_jsBufferPrototypeWriteUIntLECodeIntrinsic = JSC::NoIntrinsic; -const char* const s_jsBufferPrototypeWriteUIntLECode = "(function (d,r,E){\"use strict\";const c=this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength);switch(E){case 1:{c.setUint8(r,d);break}case 2:{c.setUint16(r,d,!0);break}case 3:{c.setUint16(r,d&65535,!0),c.setUint8(r+2,Math.floor(d*0.0000152587890625));break}case 4:{c.setUint32(r,d,!0);break}case 5:{c.setUint32(r,d|0,!0),c.setUint8(r+4,Math.floor(d*0.00000000023283064365386964));break}case 6:{c.setUint32(r,d|0,!0),c.setUint16(r+4,Math.floor(d*0.00000000023283064365386964),!0);break}default:@throwRangeError(\"byteLength must be >= 1 and <= 6\")}return r+E})\n"; +const char* const s_jsBufferPrototypeWriteUIntLECode = "(function (d,c,r){\"use strict\";const E=this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength);switch(r){case 1:{E.setUint8(c,d);break}case 2:{E.setUint16(c,d,!0);break}case 3:{E.setUint16(c,d&65535,!0),E.setUint8(c+2,Math.floor(d*0.0000152587890625));break}case 4:{E.setUint32(c,d,!0);break}case 5:{E.setUint32(c,d|0,!0),E.setUint8(c+4,Math.floor(d*0.00000000023283064365386964));break}case 6:{E.setUint32(c,d|0,!0),E.setUint16(c+4,Math.floor(d*0.00000000023283064365386964),!0);break}default:@throwRangeError(\"byteLength must be >= 1 and <= 6\")}return c+r})\n"; // writeUIntBE const JSC::ConstructAbility s_jsBufferPrototypeWriteUIntBECodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1044,7 +1044,7 @@ const JSC::ConstructorKind s_jsBufferPrototypeWriteBigInt64BECodeConstructorKind const JSC::ImplementationVisibility s_jsBufferPrototypeWriteBigInt64BECodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_jsBufferPrototypeWriteBigInt64BECodeLength = 138; static const JSC::Intrinsic s_jsBufferPrototypeWriteBigInt64BECodeIntrinsic = JSC::NoIntrinsic; -const char* const s_jsBufferPrototypeWriteBigInt64BECode = "(function (c,d){\"use strict\";return(this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength)).setBigInt64(d,c,!1),d+8})\n"; +const char* const s_jsBufferPrototypeWriteBigInt64BECode = "(function (d,c){\"use strict\";return(this.@dataView||=new DataView(this.buffer,this.byteOffset,this.byteLength)).setBigInt64(c,d,!1),c+8})\n"; // writeBigUInt64LE const JSC::ConstructAbility s_jsBufferPrototypeWriteBigUInt64LECodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1204,7 +1204,7 @@ const JSC::ConstructorKind s_jsBufferPrototypeSliceCodeConstructorKind = JSC::Co const JSC::ImplementationVisibility s_jsBufferPrototypeSliceCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_jsBufferPrototypeSliceCodeLength = 260; static const JSC::Intrinsic s_jsBufferPrototypeSliceCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_jsBufferPrototypeSliceCode = "(function (c,p){\"use strict\";var{buffer:i,byteOffset:k,byteLength:m}=this;function q(x,z){if(x=@trunc(x),x===0||@isNaN(x))return 0;else if(x<0)return x+=z,x>0\?x:0;else return x<z\?x:z}var v=q(c,m),w=p!==@undefined\?q(p,m):m;return new @Buffer(i,k+v,w>v\?w-v:0)})\n"; +const char* const s_jsBufferPrototypeSliceCode = "(function (i,m){\"use strict\";var{buffer:q,byteOffset:v,byteLength:c}=this;function w(z,k){if(z=@trunc(z),z===0||@isNaN(z))return 0;else if(z<0)return z+=k,z>0\?z:0;else return z<k\?z:k}var p=w(i,c),x=m!==@undefined\?w(m,c):c;return new @Buffer(q,v+p,x>p\?x-p:0)})\n"; // parent const JSC::ConstructAbility s_jsBufferPrototypeParentCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1304,7 +1304,7 @@ const JSC::ConstructorKind s_consoleObjectAsyncIteratorCodeConstructorKind = JSC const JSC::ImplementationVisibility s_consoleObjectAsyncIteratorCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_consoleObjectAsyncIteratorCodeLength = 577; static const JSC::Intrinsic s_consoleObjectAsyncIteratorCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_consoleObjectAsyncIteratorCode = "(function (){\"use strict\";const w=async function*j(){var q=@Bun.stdin.stream().getReader(),z=new globalThis.TextDecoder(\"utf-8\",{fatal:!1}),A,B=@Bun.indexOfLine;try{while(!0){var D,F,G;const L=q.readMany();if(@isPromise(L))({done:D,value:F}=await L);else({done:D,value:F}=L);if(D){if(G)yield z.decode(G);return}var H;for(let M of F){if(H=M,G)H=@Buffer.concat([G,M]),G=null;var J=0,K=B(H,J);while(K!==-1)yield z.decode(H.subarray(J,K)),J=K+1,K=B(H,J);G=H.subarray(J)}}}catch(L){A=L}finally{if(q.releaseLock(),A)throw A}},_=globalThis.Symbol.asyncIterator;return this[_]=w,w()})\n"; +const char* const s_consoleObjectAsyncIteratorCode = "(function (){\"use strict\";const j=async function*q(){var D=@Bun.stdin.stream().getReader(),F=new globalThis.TextDecoder(\"utf-8\",{fatal:!1}),G,H=@Bun.indexOfLine;try{while(!0){var J,K,w;const L=D.readMany();if(@isPromise(L))({done:J,value:K}=await L);else({done:J,value:K}=L);if(J){if(w)yield F.decode(w);return}var _;for(let M of K){if(_=M,w)_=@Buffer.concat([w,M]),w=null;var z=0,A=H(_,z);while(A!==-1)yield F.decode(_.subarray(z,A)),z=A+1,A=H(_,z);w=_.subarray(z)}}}catch(L){G=L}finally{if(D.releaseLock(),G)throw G}},m=globalThis.Symbol.asyncIterator;return this[m]=j,j()})\n"; // write const JSC::ConstructAbility s_consoleObjectWriteCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1312,7 +1312,7 @@ const JSC::ConstructorKind s_consoleObjectWriteCodeConstructorKind = JSC::Constr const JSC::ImplementationVisibility s_consoleObjectWriteCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_consoleObjectWriteCodeLength = 310; static const JSC::Intrinsic s_consoleObjectWriteCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_consoleObjectWriteCode = "(function (a){\"use strict\";var d=@getByIdDirectPrivate(this,\"writer\");if(!d){var _=@toLength(a\?.length\?\?0);d=@Bun.stdout.writer({highWaterMark:_>65536\?_:65536}),@putByIdDirectPrivate(this,\"writer\",d)}var b=d.write(a);const c=@argumentCount();for(var f=1;f<c;f++)b+=d.write(@argument(f));return d.flush(!0),b})\n"; +const char* const s_consoleObjectWriteCode = "(function (d){\"use strict\";var _=@getByIdDirectPrivate(this,\"writer\");if(!_){var b=@toLength(d\?.length\?\?0);_=@Bun.stdout.writer({highWaterMark:b>65536\?b:65536}),@putByIdDirectPrivate(this,\"writer\",_)}var c=_.write(d);const f=@argumentCount();for(var a=1;a<f;a++)c+=_.write(@argument(a));return _.flush(!0),c})\n"; #define DEFINE_BUILTIN_GENERATOR(codeName, functionName, overriddenName, argumentCount) \ JSC::FunctionExecutable* codeName##Generator(JSC::VM& vm) \ @@ -1354,7 +1354,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamPipeToCodeCons const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamPipeToCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsReadableStreamPipeToCodeLength = 427; static const JSC::Intrinsic s_readableStreamInternalsReadableStreamPipeToCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsReadableStreamPipeToCode = "(function (_,c){\"use strict\";@assert(@isReadableStream(_));const g=new @ReadableStreamDefaultReader(_);@getByIdDirectPrivate(g,\"closedPromiseCapability\").@promise.@then(()=>{},(y)=>{c.error(y)});function h(){@readableStreamDefaultReaderRead(g).@then(function(y){if(y.done){c.close();return}try{c.enqueue(y.value)}catch(S){c.error(\"ReadableStream chunk enqueueing in the sink failed\");return}h()},function(y){c.error(y)})}h()})\n"; +const char* const s_readableStreamInternalsReadableStreamPipeToCode = "(function (c,g){\"use strict\";@assert(@isReadableStream(c));const h=new @ReadableStreamDefaultReader(c);@getByIdDirectPrivate(h,\"closedPromiseCapability\").@promise.@then(()=>{},(S)=>{g.error(S)});function y(){@readableStreamDefaultReaderRead(h).@then(function(S){if(S.done){g.close();return}try{g.enqueue(S.value)}catch(_){g.error(\"ReadableStream chunk enqueueing in the sink failed\");return}y()},function(S){g.error(S)})}y()})\n"; // acquireReadableStreamDefaultReader const JSC::ConstructAbility s_readableStreamInternalsAcquireReadableStreamDefaultReaderCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1370,7 +1370,7 @@ const JSC::ConstructorKind s_readableStreamInternalsSetupReadableStreamDefaultCo const JSC::ImplementationVisibility s_readableStreamInternalsSetupReadableStreamDefaultControllerCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsSetupReadableStreamDefaultControllerCodeLength = 523; static const JSC::Intrinsic s_readableStreamInternalsSetupReadableStreamDefaultControllerCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsSetupReadableStreamDefaultControllerCode = "(function (_,f,b,j,q,v,w){\"use strict\";const x=new @ReadableStreamDefaultController(_,f,b,j,@isReadableStream),B=()=>@promiseInvokeOrNoopMethod(f,v,[x]),C=(D)=>@promiseInvokeOrNoopMethod(f,w,[D]);@putByIdDirectPrivate(x,\"pullAlgorithm\",B),@putByIdDirectPrivate(x,\"cancelAlgorithm\",C),@putByIdDirectPrivate(x,\"pull\",@readableStreamDefaultControllerPull),@putByIdDirectPrivate(x,\"cancel\",@readableStreamDefaultControllerCancel),@putByIdDirectPrivate(_,\"readableStreamController\",x),@readableStreamDefaultControllerStart(x)})\n"; +const char* const s_readableStreamInternalsSetupReadableStreamDefaultControllerCode = "(function (_,w,f,b,q,v,x){\"use strict\";const B=new @ReadableStreamDefaultController(_,w,f,b,@isReadableStream),C=()=>@promiseInvokeOrNoopMethod(w,v,[B]),j=(D)=>@promiseInvokeOrNoopMethod(w,x,[D]);@putByIdDirectPrivate(B,\"pullAlgorithm\",C),@putByIdDirectPrivate(B,\"cancelAlgorithm\",j),@putByIdDirectPrivate(B,\"pull\",@readableStreamDefaultControllerPull),@putByIdDirectPrivate(B,\"cancel\",@readableStreamDefaultControllerCancel),@putByIdDirectPrivate(_,\"readableStreamController\",B),@readableStreamDefaultControllerStart(B)})\n"; // createReadableStreamController const JSC::ConstructAbility s_readableStreamInternalsCreateReadableStreamControllerCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1378,7 +1378,7 @@ const JSC::ConstructorKind s_readableStreamInternalsCreateReadableStreamControll const JSC::ImplementationVisibility s_readableStreamInternalsCreateReadableStreamControllerCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsCreateReadableStreamControllerCodeLength = 671; static const JSC::Intrinsic s_readableStreamInternalsCreateReadableStreamControllerCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsCreateReadableStreamControllerCode = "(function (f,v,w){\"use strict\";const A=v.type,C=@toString(A);if(C===\"bytes\"){if(w.highWaterMark===@undefined)w.highWaterMark=0;if(w.size!==@undefined)@throwRangeError(\"Strategy for a ReadableByteStreamController cannot have a size\");@putByIdDirectPrivate(f,\"readableStreamController\",new @ReadableByteStreamController(f,v,w.highWaterMark,@isReadableStream))}else if(C===\"direct\"){var b=w\?.highWaterMark;@initializeArrayBufferStream.@call(f,v,b)}else if(A===@undefined){if(w.highWaterMark===@undefined)w.highWaterMark=1;@setupReadableStreamDefaultController(f,v,w.size,w.highWaterMark,v.start,v.pull,v.cancel)}else @throwRangeError(\"Invalid type for underlying source\")})\n"; +const char* const s_readableStreamInternalsCreateReadableStreamControllerCode = "(function (v,w,A){\"use strict\";const C=w.type,b=@toString(C);if(b===\"bytes\"){if(A.highWaterMark===@undefined)A.highWaterMark=0;if(A.size!==@undefined)@throwRangeError(\"Strategy for a ReadableByteStreamController cannot have a size\");@putByIdDirectPrivate(v,\"readableStreamController\",new @ReadableByteStreamController(v,w,A.highWaterMark,@isReadableStream))}else if(b===\"direct\"){var f=A\?.highWaterMark;@initializeArrayBufferStream.@call(v,w,f)}else if(C===@undefined){if(A.highWaterMark===@undefined)A.highWaterMark=1;@setupReadableStreamDefaultController(v,w,A.size,A.highWaterMark,w.start,w.pull,w.cancel)}else @throwRangeError(\"Invalid type for underlying source\")})\n"; // readableStreamDefaultControllerStart const JSC::ConstructAbility s_readableStreamInternalsReadableStreamDefaultControllerStartCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1394,7 +1394,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamPipeToWritable const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamPipeToWritableStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsReadableStreamPipeToWritableStreamCodeLength = 1631; static const JSC::Intrinsic s_readableStreamInternalsReadableStreamPipeToWritableStreamCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsReadableStreamPipeToWritableStreamCode = "(function (_,f,D,E,T,k){\"use strict\";if(@assert(@isReadableStream(_)),@assert(@isWritableStream(f)),@assert(!@isReadableStreamLocked(_)),@assert(!@isWritableStreamLocked(f)),@assert(k===@undefined||@isAbortSignal(k)),@getByIdDirectPrivate(_,\"underlyingByteSource\")!==@undefined)return @Promise.@reject(\"Piping to a readable bytestream is not supported\");let q={source:_,destination:f,preventAbort:E,preventCancel:T,preventClose:D,signal:k};if(q.reader=@acquireReadableStreamDefaultReader(_),q.writer=@acquireWritableStreamDefaultWriter(f),@putByIdDirectPrivate(_,\"disturbed\",!0),q.finalized=!1,q.shuttingDown=!1,q.promiseCapability=@newPromiseCapability(@Promise),q.pendingReadPromiseCapability=@newPromiseCapability(@Promise),q.pendingReadPromiseCapability.@resolve.@call(),q.pendingWritePromise=@Promise.@resolve(),k!==@undefined){const w=(x)=>{if(q.finalized)return;@pipeToShutdownWithAction(q,()=>{const B=!q.preventAbort&&@getByIdDirectPrivate(q.destination,\"state\")===\"writable\"\?@writableStreamAbort(q.destination,x):@Promise.@resolve(),G=!q.preventCancel&&@getByIdDirectPrivate(q.source,\"state\")===@streamReadable\?@readableStreamCancel(q.source,x):@Promise.@resolve();let H=@newPromiseCapability(@Promise),I=!0,J=()=>{if(I){I=!1;return}H.@resolve.@call()},K=(L)=>{H.@reject.@call(@undefined,L)};return B.@then(J,K),G.@then(J,K),H.@promise},x)};if(@whenSignalAborted(k,w))return q.promiseCapability.@promise}return @pipeToErrorsMustBePropagatedForward(q),@pipeToErrorsMustBePropagatedBackward(q),@pipeToClosingMustBePropagatedForward(q),@pipeToClosingMustBePropagatedBackward(q),@pipeToLoop(q),q.promiseCapability.@promise})\n"; +const char* const s_readableStreamInternalsReadableStreamPipeToWritableStreamCode = "(function (f,k,D,q,w,x){\"use strict\";if(@assert(@isReadableStream(f)),@assert(@isWritableStream(k)),@assert(!@isReadableStreamLocked(f)),@assert(!@isWritableStreamLocked(k)),@assert(x===@undefined||@isAbortSignal(x)),@getByIdDirectPrivate(f,\"underlyingByteSource\")!==@undefined)return @Promise.@reject(\"Piping to a readable bytestream is not supported\");let z={source:f,destination:k,preventAbort:q,preventCancel:w,preventClose:D,signal:x};if(z.reader=@acquireReadableStreamDefaultReader(f),z.writer=@acquireWritableStreamDefaultWriter(k),@putByIdDirectPrivate(f,\"disturbed\",!0),z.finalized=!1,z.shuttingDown=!1,z.promiseCapability=@newPromiseCapability(@Promise),z.pendingReadPromiseCapability=@newPromiseCapability(@Promise),z.pendingReadPromiseCapability.@resolve.@call(),z.pendingWritePromise=@Promise.@resolve(),x!==@undefined){const B=(F)=>{if(z.finalized)return;@pipeToShutdownWithAction(z,()=>{const _=!z.preventAbort&&@getByIdDirectPrivate(z.destination,\"state\")===\"writable\"\?@writableStreamAbort(z.destination,F):@Promise.@resolve(),H=!z.preventCancel&&@getByIdDirectPrivate(z.source,\"state\")===@streamReadable\?@readableStreamCancel(z.source,F):@Promise.@resolve();let E=@newPromiseCapability(@Promise),I=!0,J=()=>{if(I){I=!1;return}E.@resolve.@call()},K=(L)=>{E.@reject.@call(@undefined,L)};return _.@then(J,K),H.@then(J,K),E.@promise},F)};if(@whenSignalAborted(x,B))return z.promiseCapability.@promise}return @pipeToErrorsMustBePropagatedForward(z),@pipeToErrorsMustBePropagatedBackward(z),@pipeToClosingMustBePropagatedForward(z),@pipeToClosingMustBePropagatedBackward(z),@pipeToLoop(z),z.promiseCapability.@promise})\n"; // pipeToLoop const JSC::ConstructAbility s_readableStreamInternalsPipeToLoopCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1450,7 +1450,7 @@ const JSC::ConstructorKind s_readableStreamInternalsPipeToShutdownWithActionCode const JSC::ImplementationVisibility s_readableStreamInternalsPipeToShutdownWithActionCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsPipeToShutdownWithActionCodeLength = 458; static const JSC::Intrinsic s_readableStreamInternalsPipeToShutdownWithActionCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsPipeToShutdownWithActionCode = "(function (_,m){\"use strict\";if(_.shuttingDown)return;_.shuttingDown=!0;const b=arguments.length>2,d=arguments[2],g=()=>{m().@then(()=>{if(b)@pipeToFinalize(_,d);else @pipeToFinalize(_)},(j)=>{@pipeToFinalize(_,j)})};if(@getByIdDirectPrivate(_.destination,\"state\")===\"writable\"&&!@writableStreamCloseQueuedOrInFlight(_.destination)){_.pendingReadPromiseCapability.@promise.@then(()=>{_.pendingWritePromise.@then(g,g)},(h)=>@pipeToFinalize(_,h));return}g()})\n"; +const char* const s_readableStreamInternalsPipeToShutdownWithActionCode = "(function (m,b){\"use strict\";if(m.shuttingDown)return;m.shuttingDown=!0;const d=arguments.length>2,g=arguments[2],h=()=>{b().@then(()=>{if(d)@pipeToFinalize(m,g);else @pipeToFinalize(m)},(j)=>{@pipeToFinalize(m,j)})};if(@getByIdDirectPrivate(m.destination,\"state\")===\"writable\"&&!@writableStreamCloseQueuedOrInFlight(m.destination)){m.pendingReadPromiseCapability.@promise.@then(()=>{m.pendingWritePromise.@then(h,h)},(_)=>@pipeToFinalize(m,_));return}h()})\n"; // pipeToShutdown const JSC::ConstructAbility s_readableStreamInternalsPipeToShutdownCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1474,7 +1474,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamTeeCodeConstru const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamTeeCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsReadableStreamTeeCodeLength = 1104; static const JSC::Intrinsic s_readableStreamInternalsReadableStreamTeeCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsReadableStreamTeeCode = "(function (i,_){\"use strict\";@assert(@isReadableStream(i)),@assert(typeof _===\"boolean\");var f=@getByIdDirectPrivate(i,\"start\");if(f)@putByIdDirectPrivate(i,\"start\",@undefined),f();const g=new @ReadableStreamDefaultReader(i),j={closedOrErrored:!1,canceled1:!1,canceled2:!1,reason1:@undefined,reason2:@undefined};j.cancelPromiseCapability=@newPromiseCapability(@Promise);const k=@readableStreamTeePullFunction(j,g,_),q={};@putByIdDirectPrivate(q,\"pull\",k),@putByIdDirectPrivate(q,\"cancel\",@readableStreamTeeBranch1CancelFunction(j,i));const v={};@putByIdDirectPrivate(v,\"pull\",k),@putByIdDirectPrivate(v,\"cancel\",@readableStreamTeeBranch2CancelFunction(j,i));const w=new @ReadableStream(q),x=new @ReadableStream(v);return @getByIdDirectPrivate(g,\"closedPromiseCapability\").@promise.@then(@undefined,function(y){if(j.closedOrErrored)return;if(@readableStreamDefaultControllerError(w.@readableStreamController,y),@readableStreamDefaultControllerError(x.@readableStreamController,y),j.closedOrErrored=!0,!j.canceled1||!j.canceled2)j.cancelPromiseCapability.@resolve.@call()}),j.branch1=w,j.branch2=x,[w,x]})\n"; +const char* const s_readableStreamInternalsReadableStreamTeeCode = "(function (f,k){\"use strict\";@assert(@isReadableStream(f)),@assert(typeof k===\"boolean\");var i=@getByIdDirectPrivate(f,\"start\");if(i)@putByIdDirectPrivate(f,\"start\",@undefined),i();const q=new @ReadableStreamDefaultReader(f),_={closedOrErrored:!1,canceled1:!1,canceled2:!1,reason1:@undefined,reason2:@undefined};_.cancelPromiseCapability=@newPromiseCapability(@Promise);const v=@readableStreamTeePullFunction(_,q,k),g={};@putByIdDirectPrivate(g,\"pull\",v),@putByIdDirectPrivate(g,\"cancel\",@readableStreamTeeBranch1CancelFunction(_,f));const w={};@putByIdDirectPrivate(w,\"pull\",v),@putByIdDirectPrivate(w,\"cancel\",@readableStreamTeeBranch2CancelFunction(_,f));const x=new @ReadableStream(g),j=new @ReadableStream(w);return @getByIdDirectPrivate(q,\"closedPromiseCapability\").@promise.@then(@undefined,function(y){if(_.closedOrErrored)return;if(@readableStreamDefaultControllerError(x.@readableStreamController,y),@readableStreamDefaultControllerError(j.@readableStreamController,y),_.closedOrErrored=!0,!_.canceled1||!_.canceled2)_.cancelPromiseCapability.@resolve.@call()}),_.branch1=x,_.branch2=j,[x,j]})\n"; // readableStreamTeePullFunction const JSC::ConstructAbility s_readableStreamInternalsReadableStreamTeePullFunctionCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1530,7 +1530,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadDirectStreamCodeConstruc const JSC::ImplementationVisibility s_readableStreamInternalsReadDirectStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsReadDirectStreamCodeLength = 900; static const JSC::Intrinsic s_readableStreamInternalsReadDirectStreamCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsReadDirectStreamCode = "(function (_,f,j){\"use strict\";@putByIdDirectPrivate(_,\"underlyingSource\",@undefined),@putByIdDirectPrivate(_,\"start\",@undefined);function q(x,z){if(z&&j\?.cancel){try{var A=j.cancel(z);@markPromiseAsHandled(A)}catch(B){}j=@undefined}if(x){if(@putByIdDirectPrivate(x,\"readableStreamController\",@undefined),@putByIdDirectPrivate(x,\"reader\",@undefined),z)@putByIdDirectPrivate(x,\"state\",@streamErrored),@putByIdDirectPrivate(x,\"storedError\",z);else @putByIdDirectPrivate(x,\"state\",@streamClosed);x=@undefined}}if(!j.pull){q();return}if(!@isCallable(j.pull)){q(),@throwTypeError(\"pull is not a function\");return}@putByIdDirectPrivate(_,\"readableStreamController\",f);const v=@getByIdDirectPrivate(_,\"highWaterMark\");f.start({highWaterMark:!v||v<64\?64:v}),@startDirectStream.@call(f,_,j.pull,q),@putByIdDirectPrivate(_,\"reader\",{});var w=j.pull(f);if(f=@undefined,w&&@isPromise(w))return w.@then(()=>{})})\n"; +const char* const s_readableStreamInternalsReadDirectStreamCode = "(function (j,w,_){\"use strict\";@putByIdDirectPrivate(j,\"underlyingSource\",@undefined),@putByIdDirectPrivate(j,\"start\",@undefined);function x(q,A){if(A&&_\?.cancel){try{var B=_.cancel(A);@markPromiseAsHandled(B)}catch(v){}_=@undefined}if(q){if(@putByIdDirectPrivate(q,\"readableStreamController\",@undefined),@putByIdDirectPrivate(q,\"reader\",@undefined),A)@putByIdDirectPrivate(q,\"state\",@streamErrored),@putByIdDirectPrivate(q,\"storedError\",A);else @putByIdDirectPrivate(q,\"state\",@streamClosed);q=@undefined}}if(!_.pull){x();return}if(!@isCallable(_.pull)){x(),@throwTypeError(\"pull is not a function\");return}@putByIdDirectPrivate(j,\"readableStreamController\",w);const f=@getByIdDirectPrivate(j,\"highWaterMark\");w.start({highWaterMark:!f||f<64\?64:f}),@startDirectStream.@call(w,j,_.pull,x),@putByIdDirectPrivate(j,\"reader\",{});var z=_.pull(w);if(w=@undefined,z&&@isPromise(z))return z.@then(()=>{})})\n"; // assignToStream const JSC::ConstructAbility s_readableStreamInternalsAssignToStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1546,7 +1546,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadStreamIntoSinkCodeConstr const JSC::ImplementationVisibility s_readableStreamInternalsReadStreamIntoSinkCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsReadStreamIntoSinkCodeLength = 1395; static const JSC::Intrinsic s_readableStreamInternalsReadStreamIntoSinkCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsReadStreamIntoSinkCode = "(async function (_,c,f){\"use strict\";var I=!1,P=!1;try{var q=_.getReader(),x=q.readMany();if(x&&@isPromise(x))x=await x;if(x.done)return I=!0,c.end();var z=x.value.length;const J=@getByIdDirectPrivate(_,\"highWaterMark\");if(f)@startDirectStream.@call(c,_,@undefined,()=>!P&&@markPromiseAsHandled(_.cancel()));c.start({highWaterMark:J||0});for(var A=0,B=x.value,D=x.value.length;A<D;A++)c.write(B[A]);var E=@getByIdDirectPrivate(_,\"state\");if(E===@streamClosed)return I=!0,c.end();while(!0){var{value:F,done:G}=await q.read();if(G)return I=!0,c.end();c.write(F)}}catch(J){P=!0;try{q=@undefined;const K=_.cancel(J);@markPromiseAsHandled(K)}catch(K){}if(c&&!I){I=!0;try{c.close(J)}catch(K){throw new globalThis.AggregateError([J,K])}}throw J}finally{if(q){try{q.releaseLock()}catch(K){}q=@undefined}c=@undefined;var E=@getByIdDirectPrivate(_,\"state\");if(_){var H=@getByIdDirectPrivate(_,\"readableStreamController\");if(H){if(@getByIdDirectPrivate(H,\"underlyingSource\"))@putByIdDirectPrivate(H,\"underlyingSource\",@undefined);if(@getByIdDirectPrivate(H,\"controlledReadableStream\"))@putByIdDirectPrivate(H,\"controlledReadableStream\",@undefined);if(@putByIdDirectPrivate(_,\"readableStreamController\",null),@getByIdDirectPrivate(_,\"underlyingSource\"))@putByIdDirectPrivate(_,\"underlyingSource\",@undefined);H=@undefined}if(!P&&E!==@streamClosed&&E!==@streamErrored)@readableStreamClose(_);_=@undefined}}})\n"; +const char* const s_readableStreamInternalsReadStreamIntoSinkCode = "(async function (c,G,f){\"use strict\";var I=!1,z=!1;try{var E=c.getReader(),H=E.readMany();if(H&&@isPromise(H))H=await H;if(H.done)return I=!0,G.end();var J=H.value.length;const x=@getByIdDirectPrivate(c,\"highWaterMark\");if(f)@startDirectStream.@call(G,c,@undefined,()=>!z&&@markPromiseAsHandled(c.cancel()));G.start({highWaterMark:x||0});for(var K=0,P=H.value,A=H.value.length;K<A;K++)G.write(P[K]);var _=@getByIdDirectPrivate(c,\"state\");if(_===@streamClosed)return I=!0,G.end();while(!0){var{value:q,done:B}=await E.read();if(B)return I=!0,G.end();G.write(q)}}catch(x){z=!0;try{E=@undefined;const F=c.cancel(x);@markPromiseAsHandled(F)}catch(F){}if(G&&!I){I=!0;try{G.close(x)}catch(F){throw new globalThis.AggregateError([x,F])}}throw x}finally{if(E){try{E.releaseLock()}catch(F){}E=@undefined}G=@undefined;var _=@getByIdDirectPrivate(c,\"state\");if(c){var D=@getByIdDirectPrivate(c,\"readableStreamController\");if(D){if(@getByIdDirectPrivate(D,\"underlyingSource\"))@putByIdDirectPrivate(D,\"underlyingSource\",@undefined);if(@getByIdDirectPrivate(D,\"controlledReadableStream\"))@putByIdDirectPrivate(D,\"controlledReadableStream\",@undefined);if(@putByIdDirectPrivate(c,\"readableStreamController\",null),@getByIdDirectPrivate(c,\"underlyingSource\"))@putByIdDirectPrivate(c,\"underlyingSource\",@undefined);D=@undefined}if(!z&&_!==@streamClosed&&_!==@streamErrored)@readableStreamClose(c);c=@undefined}}})\n"; // handleDirectStreamError const JSC::ConstructAbility s_readableStreamInternalsHandleDirectStreamErrorCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1554,7 +1554,7 @@ const JSC::ConstructorKind s_readableStreamInternalsHandleDirectStreamErrorCodeC const JSC::ImplementationVisibility s_readableStreamInternalsHandleDirectStreamErrorCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsHandleDirectStreamErrorCodeLength = 496; static const JSC::Intrinsic s_readableStreamInternalsHandleDirectStreamErrorCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsHandleDirectStreamErrorCode = "(function (i){\"use strict\";var u=this,_=u.@sink;if(_){@putByIdDirectPrivate(u,\"sink\",@undefined);try{_.close(i)}catch(a){}}if(this.error=this.flush=this.write=this.close=this.end=@onReadableStreamDirectControllerClosed,typeof this.@underlyingSource.close===\"function\")try{this.@underlyingSource.close.@call(this.@underlyingSource,i)}catch(a){}try{var h=u._pendingRead;if(h)u._pendingRead=@undefined,@rejectPromise(h,i)}catch(a){}var R=u.@controlledReadableStream;if(R)@readableStreamError(R,i)})\n"; +const char* const s_readableStreamInternalsHandleDirectStreamErrorCode = "(function (u){\"use strict\";var _=this,h=_.@sink;if(h){@putByIdDirectPrivate(_,\"sink\",@undefined);try{h.close(u)}catch(i){}}if(this.error=this.flush=this.write=this.close=this.end=@onReadableStreamDirectControllerClosed,typeof this.@underlyingSource.close===\"function\")try{this.@underlyingSource.close.@call(this.@underlyingSource,u)}catch(i){}try{var R=_._pendingRead;if(R)_._pendingRead=@undefined,@rejectPromise(R,u)}catch(i){}var a=_.@controlledReadableStream;if(a)@readableStreamError(a,u)})\n"; // handleDirectStreamErrorReject const JSC::ConstructAbility s_readableStreamInternalsHandleDirectStreamErrorRejectCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1594,7 +1594,7 @@ const JSC::ConstructorKind s_readableStreamInternalsOnCloseDirectStreamCodeConst const JSC::ImplementationVisibility s_readableStreamInternalsOnCloseDirectStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsOnCloseDirectStreamCodeLength = 1460; static const JSC::Intrinsic s_readableStreamInternalsOnCloseDirectStreamCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsOnCloseDirectStreamCode = "(function (c){\"use strict\";var v=this.@controlledReadableStream;if(!v||@getByIdDirectPrivate(v,\"state\")!==@streamReadable)return;if(this._deferClose!==0){this._deferClose=1,this._deferCloseReason=c;return}if(@putByIdDirectPrivate(v,\"state\",@streamClosing),typeof this.@underlyingSource.close===\"function\")try{this.@underlyingSource.close.@call(this.@underlyingSource,c)}catch(j){}var b;try{b=this.@sink.end(),@putByIdDirectPrivate(this,\"sink\",@undefined)}catch(j){if(this._pendingRead){var y=this._pendingRead;this._pendingRead=@undefined,@rejectPromise(y,j)}@readableStreamError(v,j);return}this.error=this.flush=this.write=this.close=this.end=@onReadableStreamDirectControllerClosed;var B=@getByIdDirectPrivate(v,\"reader\");if(B&&@isReadableStreamDefaultReader(B)){var C=this._pendingRead;if(C&&@isPromise(C)&&b\?.byteLength){this._pendingRead=@undefined,@fulfillPromise(C,{value:b,done:!1}),@readableStreamClose(v);return}}if(b\?.byteLength){var S=@getByIdDirectPrivate(B,\"readRequests\");if(S\?.isNotEmpty()){@readableStreamFulfillReadRequest(v,b,!1),@readableStreamClose(v);return}@putByIdDirectPrivate(v,\"state\",@streamReadable),this.@pull=()=>{var j=@createFulfilledPromise({value:b,done:!1});return b=@undefined,@readableStreamClose(v),v=@undefined,j}}else if(this._pendingRead){var y=this._pendingRead;this._pendingRead=@undefined,@putByIdDirectPrivate(this,\"pull\",@noopDoneFunction),@fulfillPromise(y,{value:@undefined,done:!0})}@readableStreamClose(v)})\n"; +const char* const s_readableStreamInternalsOnCloseDirectStreamCode = "(function (v){\"use strict\";var C=this.@controlledReadableStream;if(!C||@getByIdDirectPrivate(C,\"state\")!==@streamReadable)return;if(this._deferClose!==0){this._deferClose=1,this._deferCloseReason=v;return}if(@putByIdDirectPrivate(C,\"state\",@streamClosing),typeof this.@underlyingSource.close===\"function\")try{this.@underlyingSource.close.@call(this.@underlyingSource,v)}catch(B){}var S;try{S=this.@sink.end(),@putByIdDirectPrivate(this,\"sink\",@undefined)}catch(B){if(this._pendingRead){var y=this._pendingRead;this._pendingRead=@undefined,@rejectPromise(y,B)}@readableStreamError(C,B);return}this.error=this.flush=this.write=this.close=this.end=@onReadableStreamDirectControllerClosed;var j=@getByIdDirectPrivate(C,\"reader\");if(j&&@isReadableStreamDefaultReader(j)){var c=this._pendingRead;if(c&&@isPromise(c)&&S\?.byteLength){this._pendingRead=@undefined,@fulfillPromise(c,{value:S,done:!1}),@readableStreamClose(C);return}}if(S\?.byteLength){var b=@getByIdDirectPrivate(j,\"readRequests\");if(b\?.isNotEmpty()){@readableStreamFulfillReadRequest(C,S,!1),@readableStreamClose(C);return}@putByIdDirectPrivate(C,\"state\",@streamReadable),this.@pull=()=>{var B=@createFulfilledPromise({value:S,done:!1});return S=@undefined,@readableStreamClose(C),C=@undefined,B}}else if(this._pendingRead){var y=this._pendingRead;this._pendingRead=@undefined,@putByIdDirectPrivate(this,\"pull\",@noopDoneFunction),@fulfillPromise(y,{value:@undefined,done:!0})}@readableStreamClose(C)})\n"; // onFlushDirectStream const JSC::ConstructAbility s_readableStreamInternalsOnFlushDirectStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1610,7 +1610,7 @@ const JSC::ConstructorKind s_readableStreamInternalsCreateTextStreamCodeConstruc const JSC::ImplementationVisibility s_readableStreamInternalsCreateTextStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsCreateTextStreamCodeLength = 984; static const JSC::Intrinsic s_readableStreamInternalsCreateTextStreamCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsCreateTextStreamCode = "(function (_){\"use strict\";var j,q=[],v=!1,w=!1,x=\"\",z=@toLength(0),A=@newPromiseCapability(@Promise),C=!1;return j={start(){},write(E){if(typeof E===\"string\"){var F=@toLength(E.length);if(F>0)x+=E,v=!0,z+=F;return F}if(!E||!(@ArrayBuffer.@isView(E)||E instanceof @ArrayBuffer))@throwTypeError(\"Expected text, ArrayBuffer or ArrayBufferView\");const G=@toLength(E.byteLength);if(G>0)if(w=!0,x.length>0)@arrayPush(q,x,E),x=\"\";else @arrayPush(q,E);return z+=G,G},flush(){return 0},end(){if(C)return\"\";return j.fulfill()},fulfill(){C=!0;const E=j.finishInternal();return @fulfillPromise(A.@promise,E),E},finishInternal(){if(!v&&!w)return\"\";if(v&&!w)return x;if(w&&!v)return new globalThis.TextDecoder().decode(@Bun.concatArrayBuffers(q));var E=new @Bun.ArrayBufferSink;E.start({highWaterMark:z,asUint8Array:!0});for(let F of q)E.write(F);if(q.length=0,x.length>0)E.write(x),x=\"\";return new globalThis.TextDecoder().decode(E.end())},close(){try{if(!C)C=!0,j.fulfill()}catch(E){}}},[j,A]})\n"; +const char* const s_readableStreamInternalsCreateTextStreamCode = "(function (v){\"use strict\";var x,A=[],C=!1,_=!1,E=\"\",q=@toLength(0),F=@newPromiseCapability(@Promise),G=!1;return x={start(){},write(w){if(typeof w===\"string\"){var z=@toLength(w.length);if(z>0)E+=w,C=!0,q+=z;return z}if(!w||!(@ArrayBuffer.@isView(w)||w instanceof @ArrayBuffer))@throwTypeError(\"Expected text, ArrayBuffer or ArrayBufferView\");const j=@toLength(w.byteLength);if(j>0)if(_=!0,E.length>0)@arrayPush(A,E,w),E=\"\";else @arrayPush(A,w);return q+=j,j},flush(){return 0},end(){if(G)return\"\";return x.fulfill()},fulfill(){G=!0;const w=x.finishInternal();return @fulfillPromise(F.@promise,w),w},finishInternal(){if(!C&&!_)return\"\";if(C&&!_)return E;if(_&&!C)return new globalThis.TextDecoder().decode(@Bun.concatArrayBuffers(A));var w=new @Bun.ArrayBufferSink;w.start({highWaterMark:q,asUint8Array:!0});for(let z of A)w.write(z);if(A.length=0,E.length>0)w.write(E),E=\"\";return new globalThis.TextDecoder().decode(w.end())},close(){try{if(!G)G=!0,x.fulfill()}catch(w){}}},[x,F]})\n"; // initializeTextStream const JSC::ConstructAbility s_readableStreamInternalsInitializeTextStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1626,7 +1626,7 @@ const JSC::ConstructorKind s_readableStreamInternalsInitializeArrayStreamCodeCon const JSC::ImplementationVisibility s_readableStreamInternalsInitializeArrayStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsInitializeArrayStreamCodeLength = 797; static const JSC::Intrinsic s_readableStreamInternalsInitializeArrayStreamCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsInitializeArrayStreamCode = "(function (_,t){\"use strict\";var p=[],b=@newPromiseCapability(@Promise),d=!1;function j(){return d=!0,b.@resolve.@call(@undefined,p),p}var m={start(){},write(v){return @arrayPush(p,v),v.byteLength||v.length},flush(){return 0},end(){if(d)return[];return j()},close(){if(!d)j()}},q={@underlyingSource:_,@pull:@onPullDirectStream,@controlledReadableStream:this,@sink:m,close:@onCloseDirectStream,write:m.write,error:@handleDirectStreamError,end:@onCloseDirectStream,@close:@onCloseDirectStream,flush:@onFlushDirectStream,_pendingRead:@undefined,_deferClose:0,_deferFlush:0,_deferCloseReason:@undefined,_handleError:@undefined};return @putByIdDirectPrivate(this,\"readableStreamController\",q),@putByIdDirectPrivate(this,\"underlyingSource\",@undefined),@putByIdDirectPrivate(this,\"start\",@undefined),b})\n"; +const char* const s_readableStreamInternalsInitializeArrayStreamCode = "(function (t,p){\"use strict\";var _=[],b=@newPromiseCapability(@Promise),d=!1;function j(){return d=!0,b.@resolve.@call(@undefined,_),_}var m={start(){},write(v){return @arrayPush(_,v),v.byteLength||v.length},flush(){return 0},end(){if(d)return[];return j()},close(){if(!d)j()}},q={@underlyingSource:t,@pull:@onPullDirectStream,@controlledReadableStream:this,@sink:m,close:@onCloseDirectStream,write:m.write,error:@handleDirectStreamError,end:@onCloseDirectStream,@close:@onCloseDirectStream,flush:@onFlushDirectStream,_pendingRead:@undefined,_deferClose:0,_deferFlush:0,_deferCloseReason:@undefined,_handleError:@undefined};return @putByIdDirectPrivate(this,\"readableStreamController\",q),@putByIdDirectPrivate(this,\"underlyingSource\",@undefined),@putByIdDirectPrivate(this,\"start\",@undefined),b})\n"; // initializeArrayBufferStream const JSC::ConstructAbility s_readableStreamInternalsInitializeArrayBufferStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1634,7 +1634,7 @@ const JSC::ConstructorKind s_readableStreamInternalsInitializeArrayBufferStreamC const JSC::ImplementationVisibility s_readableStreamInternalsInitializeArrayBufferStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsInitializeArrayBufferStreamCodeLength = 690; static const JSC::Intrinsic s_readableStreamInternalsInitializeArrayBufferStreamCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsInitializeArrayBufferStreamCode = "(function (_,m){\"use strict\";var w=m&&typeof m===\"number\"\?{highWaterMark:m,stream:!0,asUint8Array:!0}:{stream:!0,asUint8Array:!0},D=new @Bun.ArrayBufferSink;D.start(w);var b={@underlyingSource:_,@pull:@onPullDirectStream,@controlledReadableStream:this,@sink:D,close:@onCloseDirectStream,write:D.write.bind(D),error:@handleDirectStreamError,end:@onCloseDirectStream,@close:@onCloseDirectStream,flush:@onFlushDirectStream,_pendingRead:@undefined,_deferClose:0,_deferFlush:0,_deferCloseReason:@undefined,_handleError:@undefined};@putByIdDirectPrivate(this,\"readableStreamController\",b),@putByIdDirectPrivate(this,\"underlyingSource\",@undefined),@putByIdDirectPrivate(this,\"start\",@undefined)})\n"; +const char* const s_readableStreamInternalsInitializeArrayBufferStreamCode = "(function (_,m){\"use strict\";var D=m&&typeof m===\"number\"\?{highWaterMark:m,stream:!0,asUint8Array:!0}:{stream:!0,asUint8Array:!0},w=new @Bun.ArrayBufferSink;w.start(D);var b={@underlyingSource:_,@pull:@onPullDirectStream,@controlledReadableStream:this,@sink:w,close:@onCloseDirectStream,write:w.write.bind(w),error:@handleDirectStreamError,end:@onCloseDirectStream,@close:@onCloseDirectStream,flush:@onFlushDirectStream,_pendingRead:@undefined,_deferClose:0,_deferFlush:0,_deferCloseReason:@undefined,_handleError:@undefined};@putByIdDirectPrivate(this,\"readableStreamController\",b),@putByIdDirectPrivate(this,\"underlyingSource\",@undefined),@putByIdDirectPrivate(this,\"start\",@undefined)})\n"; // readableStreamError const JSC::ConstructAbility s_readableStreamInternalsReadableStreamErrorCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1642,7 +1642,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamErrorCodeConst const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamErrorCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsReadableStreamErrorCodeLength = 840; static const JSC::Intrinsic s_readableStreamInternalsReadableStreamErrorCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsReadableStreamErrorCode = "(function (_,i){\"use strict\";@assert(@isReadableStream(_)),@assert(@getByIdDirectPrivate(_,\"state\")===@streamReadable),@putByIdDirectPrivate(_,\"state\",@streamErrored),@putByIdDirectPrivate(_,\"storedError\",i);const c=@getByIdDirectPrivate(_,\"reader\");if(!c)return;if(@isReadableStreamDefaultReader(c)){const h=@getByIdDirectPrivate(c,\"readRequests\");@putByIdDirectPrivate(c,\"readRequests\",@createFIFO());for(var n=h.shift();n;n=h.shift())@rejectPromise(n,i)}else{@assert(@isReadableStreamBYOBReader(c));const h=@getByIdDirectPrivate(c,\"readIntoRequests\");@putByIdDirectPrivate(c,\"readIntoRequests\",@createFIFO());for(var n=h.shift();n;n=h.shift())@rejectPromise(n,i)}@getByIdDirectPrivate(c,\"closedPromiseCapability\").@reject.@call(@undefined,i);const f=@getByIdDirectPrivate(c,\"closedPromiseCapability\").@promise;@markPromiseAsHandled(f)})\n"; +const char* const s_readableStreamInternalsReadableStreamErrorCode = "(function (i,c){\"use strict\";@assert(@isReadableStream(i)),@assert(@getByIdDirectPrivate(i,\"state\")===@streamReadable),@putByIdDirectPrivate(i,\"state\",@streamErrored),@putByIdDirectPrivate(i,\"storedError\",c);const n=@getByIdDirectPrivate(i,\"reader\");if(!n)return;if(@isReadableStreamDefaultReader(n)){const _=@getByIdDirectPrivate(n,\"readRequests\");@putByIdDirectPrivate(n,\"readRequests\",@createFIFO());for(var f=_.shift();f;f=_.shift())@rejectPromise(f,c)}else{@assert(@isReadableStreamBYOBReader(n));const _=@getByIdDirectPrivate(n,\"readIntoRequests\");@putByIdDirectPrivate(n,\"readIntoRequests\",@createFIFO());for(var f=_.shift();f;f=_.shift())@rejectPromise(f,c)}@getByIdDirectPrivate(n,\"closedPromiseCapability\").@reject.@call(@undefined,c);const h=@getByIdDirectPrivate(n,\"closedPromiseCapability\").@promise;@markPromiseAsHandled(h)})\n"; // readableStreamDefaultControllerShouldCallPull const JSC::ConstructAbility s_readableStreamInternalsReadableStreamDefaultControllerShouldCallPullCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1690,7 +1690,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamCancelCodeCons const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamCancelCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsReadableStreamCancelCodeLength = 509; static const JSC::Intrinsic s_readableStreamInternalsReadableStreamCancelCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsReadableStreamCancelCode = "(function (i,_){\"use strict\";@putByIdDirectPrivate(i,\"disturbed\",!0);const d=@getByIdDirectPrivate(i,\"state\");if(d===@streamClosed)return @Promise.@resolve();if(d===@streamErrored)return @Promise.@reject(@getByIdDirectPrivate(i,\"storedError\"));@readableStreamClose(i);var h=@getByIdDirectPrivate(i,\"readableStreamController\"),p=h.@cancel;if(p)return p(h,_).@then(function(){});var u=h.close;if(u)return @Promise.@resolve(h.close(_));@throwTypeError(\"ReadableStreamController has no cancel or close method\")})\n"; +const char* const s_readableStreamInternalsReadableStreamCancelCode = "(function (_,d){\"use strict\";@putByIdDirectPrivate(_,\"disturbed\",!0);const h=@getByIdDirectPrivate(_,\"state\");if(h===@streamClosed)return @Promise.@resolve();if(h===@streamErrored)return @Promise.@reject(@getByIdDirectPrivate(_,\"storedError\"));@readableStreamClose(_);var p=@getByIdDirectPrivate(_,\"readableStreamController\"),u=p.@cancel;if(u)return u(p,d).@then(function(){});var i=p.close;if(i)return @Promise.@resolve(p.close(d));@throwTypeError(\"ReadableStreamController has no cancel or close method\")})\n"; // readableStreamDefaultControllerCancel const JSC::ConstructAbility s_readableStreamInternalsReadableStreamDefaultControllerCancelCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1770,7 +1770,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamReaderGenericR const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamReaderGenericReleaseCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsReadableStreamReaderGenericReleaseCodeLength = 813; static const JSC::Intrinsic s_readableStreamInternalsReadableStreamReaderGenericReleaseCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsReadableStreamReaderGenericReleaseCode = "(function (_){\"use strict\";if(@assert(!!@getByIdDirectPrivate(_,\"ownerReadableStream\")),@assert(@getByIdDirectPrivate(@getByIdDirectPrivate(_,\"ownerReadableStream\"),\"reader\")===_),@getByIdDirectPrivate(@getByIdDirectPrivate(_,\"ownerReadableStream\"),\"state\")===@streamReadable)@getByIdDirectPrivate(_,\"closedPromiseCapability\").@reject.@call(@undefined,@makeTypeError(\"releasing lock of reader whose stream is still in readable state\"));else @putByIdDirectPrivate(_,\"closedPromiseCapability\",{@promise:@newHandledRejectedPromise(@makeTypeError(\"reader released lock\"))});const c=@getByIdDirectPrivate(_,\"closedPromiseCapability\").@promise;@markPromiseAsHandled(c),@putByIdDirectPrivate(@getByIdDirectPrivate(_,\"ownerReadableStream\"),\"reader\",@undefined),@putByIdDirectPrivate(_,\"ownerReadableStream\",@undefined)})\n"; +const char* const s_readableStreamInternalsReadableStreamReaderGenericReleaseCode = "(function (c){\"use strict\";if(@assert(!!@getByIdDirectPrivate(c,\"ownerReadableStream\")),@assert(@getByIdDirectPrivate(@getByIdDirectPrivate(c,\"ownerReadableStream\"),\"reader\")===c),@getByIdDirectPrivate(@getByIdDirectPrivate(c,\"ownerReadableStream\"),\"state\")===@streamReadable)@getByIdDirectPrivate(c,\"closedPromiseCapability\").@reject.@call(@undefined,@makeTypeError(\"releasing lock of reader whose stream is still in readable state\"));else @putByIdDirectPrivate(c,\"closedPromiseCapability\",{@promise:@newHandledRejectedPromise(@makeTypeError(\"reader released lock\"))});const _=@getByIdDirectPrivate(c,\"closedPromiseCapability\").@promise;@markPromiseAsHandled(_),@putByIdDirectPrivate(@getByIdDirectPrivate(c,\"ownerReadableStream\"),\"reader\",@undefined),@putByIdDirectPrivate(c,\"ownerReadableStream\",@undefined)})\n"; // readableStreamDefaultControllerCanCloseOrEnqueue const JSC::ConstructAbility s_readableStreamInternalsReadableStreamDefaultControllerCanCloseOrEnqueueCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1786,7 +1786,7 @@ const JSC::ConstructorKind s_readableStreamInternalsLazyLoadStreamCodeConstructo const JSC::ImplementationVisibility s_readableStreamInternalsLazyLoadStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsLazyLoadStreamCodeLength = 1589; static const JSC::Intrinsic s_readableStreamInternalsLazyLoadStreamCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsLazyLoadStreamCode = "(function (b,f){\"use strict\";var j=@getByIdDirectPrivate(b,\"bunNativeType\"),m=@getByIdDirectPrivate(b,\"bunNativePtr\"),q=@lazyStreamPrototypeMap.@get(j);if(q===@undefined){let U=function(Z){var{c:_,v:p}=this;this.c=@undefined,this.v=@undefined,J(Z,_,p)},W=function(Z){try{Z.close()}catch(_){globalThis.reportError(_)}},X=function(Z,_,p,z){z[0]=!1;var A;try{A=x(Z,p,z)}catch(C){return _.error(C)}return J(A,_,p)};var Q=U,P=W,O=X,[x,B,D,E,F,G,H]=@lazyLoad(j),I=[!1],J;J=function Z(_,p,z){if(_&&@isPromise(_))return _.then(U.bind({c:p,v:z}),(A)=>p.error(A));else if(typeof _===\"number\")if(z&&z.byteLength===_&&z.buffer===p.byobRequest\?.view\?.buffer)p.byobRequest.respondWithNewView(z);else p.byobRequest.respond(_);else if(_.constructor===@Uint8Array)p.enqueue(_);if(I[0]||_===!1)@enqueueJob(W,p),I[0]=!1};const Y=F\?new FinalizationRegistry(F):null;q=class Z{constructor(_,p,z){if(this.#f=_,this.#b={},this.pull=this.#j.bind(this),this.cancel=this.#m.bind(this),this.autoAllocateChunkSize=p,z!==@undefined)this.start=(A)=>{A.enqueue(z)};if(Y)Y.register(this,_,this.#b)}#b;pull;cancel;start;#f;type=\"bytes\";autoAllocateChunkSize=0;static startSync=B;#j(_){var p=this.#f;if(!p){_.close();return}X(p,_,_.byobRequest.view,I)}#m(_){var p=this.#f;Y&&Y.unregister(this.#b),G&&G(p,!1),D(p,_)}static deinit=F;static drain=H},@lazyStreamPrototypeMap.@set(j,q)}const K=q.startSync(m,f);var L;const{drain:M,deinit:N}=q;if(M)L=M(m);if(K===0){if(F&&m&&@enqueueJob(F,m),(L\?.byteLength\?\?0)>0)return{start(U){U.enqueue(L),U.close()},type:\"bytes\"};return{start(U){U.close()},type:\"bytes\"}}return new q(m,K,L)})\n"; +const char* const s_readableStreamInternalsLazyLoadStreamCode = "(function (W,I){\"use strict\";var N=@getByIdDirectPrivate(W,\"bunNativeType\"),J=@getByIdDirectPrivate(W,\"bunNativePtr\"),K=@lazyStreamPrototypeMap.@get(N);if(K===@undefined){let m=function(F){var{c:p,v:z}=this;this.c=@undefined,this.v=@undefined,f(F,p,z)},U=function(F){try{F.close()}catch(p){globalThis.reportError(p)}},M=function(F,p,z,A){A[0]=!1;var G;try{G=b(F,z,A)}catch(H){return p.error(H)}return f(G,p,z)};var j=m,Q=U,q=M,[b,x,X,y,O,Y,Z]=@lazyLoad(N),P=[!1],f;f=function F(p,z,A){if(p&&@isPromise(p))return p.then(m.bind({c:z,v:A}),(G)=>z.error(G));else if(typeof p===\"number\")if(A&&A.byteLength===p&&A.buffer===z.byobRequest\?.view\?.buffer)z.byobRequest.respondWithNewView(A);else z.byobRequest.respond(p);else if(p.constructor===@Uint8Array)z.enqueue(p);if(P[0]||p===!1)@enqueueJob(U,z),P[0]=!1};const E=O\?new FinalizationRegistry(O):null;K=class F{constructor(p,z,A){if(this.#f=p,this.#b={},this.pull=this.#j.bind(this),this.cancel=this.#m.bind(this),this.autoAllocateChunkSize=z,A!==@undefined)this.start=(G)=>{G.enqueue(A)};if(E)E.register(this,p,this.#b)}#b;pull;cancel;start;#f;type=\"bytes\";autoAllocateChunkSize=0;static startSync=x;#j(p){var z=this.#f;if(!z){p.close();return}M(z,p,p.byobRequest.view,P)}#m(p){var z=this.#f;E&&E.unregister(this.#b),Y&&Y(z,!1),X(z,p)}static deinit=O;static drain=Z},@lazyStreamPrototypeMap.@set(N,K)}const B=K.startSync(J,I);var _;const{drain:D,deinit:L}=K;if(D)_=D(J);if(B===0){if(O&&J&&@enqueueJob(O,J),(_\?.byteLength\?\?0)>0)return{start(m){m.enqueue(_),m.close()},type:\"bytes\"};return{start(m){m.close()},type:\"bytes\"}}return new K(J,B,_)})\n"; // readableStreamIntoArray const JSC::ConstructAbility s_readableStreamInternalsReadableStreamIntoArrayCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1794,7 +1794,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamIntoArrayCodeC const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamIntoArrayCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsReadableStreamIntoArrayCodeLength = 247; static const JSC::Intrinsic s_readableStreamInternalsReadableStreamIntoArrayCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsReadableStreamIntoArrayCode = "(function (f){\"use strict\";var _=f.getReader(),b=_.readMany();async function g(j){if(j.done)return[];var p=j.value||[];while(!0){var q=await _.read();if(q.done)break;p=p.concat(q.value)}return p}if(b&&@isPromise(b))return b.@then(g);return g(b)})\n"; +const char* const s_readableStreamInternalsReadableStreamIntoArrayCode = "(function (_){\"use strict\";var b=_.getReader(),g=b.readMany();async function j(p){if(p.done)return[];var f=p.value||[];while(!0){var q=await b.read();if(q.done)break;f=f.concat(q.value)}return f}if(g&&@isPromise(g))return g.@then(j);return j(g)})\n"; // readableStreamIntoText const JSC::ConstructAbility s_readableStreamInternalsReadableStreamIntoTextCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1810,7 +1810,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamToArrayBufferD const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamToArrayBufferDirectCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsReadableStreamToArrayBufferDirectCodeLength = 727; static const JSC::Intrinsic s_readableStreamInternalsReadableStreamToArrayBufferDirectCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsReadableStreamToArrayBufferDirectCode = "(function (_,O){\"use strict\";var j=new @Bun.ArrayBufferSink;@putByIdDirectPrivate(_,\"underlyingSource\",@undefined);var q=@getByIdDirectPrivate(_,\"highWaterMark\");j.start(q\?{highWaterMark:q}:{});var v=@newPromiseCapability(@Promise),w=!1,x=O.pull,z=O.close,A={start(){},close(C){if(!w){if(w=!0,z)z();@fulfillPromise(v.@promise,j.end())}},end(){if(!w){if(w=!0,z)z();@fulfillPromise(v.@promise,j.end())}},flush(){return 0},write:j.write.bind(j)},B=!1;try{const C=x(A);if(C&&@isObject(C)&&@isPromise(C))return async function(D,F,G){while(!w)await G(D);return await F}(A,promise,x);return v.@promise}catch(C){return B=!0,@readableStreamError(_,C),@Promise.@reject(C)}finally{if(!B&&_)@readableStreamClose(_);A=z=j=x=_=@undefined}})\n"; +const char* const s_readableStreamInternalsReadableStreamToArrayBufferDirectCode = "(function (j,q){\"use strict\";var x=new @Bun.ArrayBufferSink;@putByIdDirectPrivate(j,\"underlyingSource\",@undefined);var z=@getByIdDirectPrivate(j,\"highWaterMark\");x.start(z\?{highWaterMark:z}:{});var A=@newPromiseCapability(@Promise),B=!1,C=q.pull,D=q.close,F={start(){},close(_){if(!B){if(B=!0,D)D();@fulfillPromise(A.@promise,x.end())}},end(){if(!B){if(B=!0,D)D();@fulfillPromise(A.@promise,x.end())}},flush(){return 0},write:x.write.bind(x)},G=!1;try{const _=C(F);if(_&&@isObject(_)&&@isPromise(_))return async function(O,v,w){while(!B)await w(O);return await v}(F,promise,C);return A.@promise}catch(_){return G=!0,@readableStreamError(j,_),@Promise.@reject(_)}finally{if(!G&&j)@readableStreamClose(j);F=D=x=C=j=@undefined}})\n"; // readableStreamToTextDirect const JSC::ConstructAbility s_readableStreamInternalsReadableStreamToTextDirectCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1834,7 +1834,7 @@ const JSC::ConstructorKind s_readableStreamInternalsReadableStreamDefineLazyIter const JSC::ImplementationVisibility s_readableStreamInternalsReadableStreamDefineLazyIteratorsCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInternalsReadableStreamDefineLazyIteratorsCodeLength = 516; static const JSC::Intrinsic s_readableStreamInternalsReadableStreamDefineLazyIteratorsCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInternalsReadableStreamDefineLazyIteratorsCode = "(function (h){\"use strict\";var k=globalThis.Symbol.asyncIterator,g=async function*q(w,x){var z=w.getReader(),B;try{while(!0){var D,F;const G=z.readMany();if(@isPromise(G))({done:D,value:F}=await G);else({done:D,value:F}=G);if(D)return;yield*F}}catch(G){B=G}finally{if(z.releaseLock(),!x)w.cancel(B);if(B)throw B}},i=function q(){return g(this,!1)},j=function q({preventCancel:w=!1}={preventCancel:!1}){return g(this,w)};return @Object.@defineProperty(h,k,{value:i}),@Object.@defineProperty(h,\"values\",{value:j}),h})\n"; +const char* const s_readableStreamInternalsReadableStreamDefineLazyIteratorsCode = "(function (h){\"use strict\";var x=globalThis.Symbol.asyncIterator,k=async function*w(z,B){var D=z.getReader(),i;try{while(!0){var F,G;const j=D.readMany();if(@isPromise(j))({done:F,value:G}=await j);else({done:F,value:G}=j);if(F)return;yield*G}}catch(j){i=j}finally{if(D.releaseLock(),!B)z.cancel(i);if(i)throw i}},g=function w(){return k(this,!1)},q=function w({preventCancel:z=!1}={preventCancel:!1}){return k(this,z)};return @Object.@defineProperty(h,x,{value:g}),@Object.@defineProperty(h,\"values\",{value:q}),h})\n"; #define DEFINE_BUILTIN_GENERATOR(codeName, functionName, overriddenName, argumentCount) \ JSC::FunctionExecutable* codeName##Generator(JSC::VM& vm) \ @@ -1860,7 +1860,7 @@ const JSC::ConstructorKind s_transformStreamDefaultControllerDesiredSizeCodeCons const JSC::ImplementationVisibility s_transformStreamDefaultControllerDesiredSizeCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_transformStreamDefaultControllerDesiredSizeCodeLength = 339; static const JSC::Intrinsic s_transformStreamDefaultControllerDesiredSizeCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_transformStreamDefaultControllerDesiredSizeCode = "(function (){\"use strict\";if(!@isTransformStreamDefaultController(this))throw @makeThisTypeError(\"TransformStreamDefaultController\",\"enqueue\");const _=@getByIdDirectPrivate(this,\"stream\"),u=@getByIdDirectPrivate(_,\"readable\"),i=@getByIdDirectPrivate(u,\"readableStreamController\");return @readableStreamDefaultControllerGetDesiredSize(i)})\n"; +const char* const s_transformStreamDefaultControllerDesiredSizeCode = "(function (){\"use strict\";if(!@isTransformStreamDefaultController(this))throw @makeThisTypeError(\"TransformStreamDefaultController\",\"enqueue\");const _=@getByIdDirectPrivate(this,\"stream\"),i=@getByIdDirectPrivate(_,\"readable\"),u=@getByIdDirectPrivate(i,\"readableStreamController\");return @readableStreamDefaultControllerGetDesiredSize(u)})\n"; // enqueue const JSC::ConstructAbility s_transformStreamDefaultControllerEnqueueCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -1986,7 +1986,7 @@ const JSC::ConstructorKind s_readableStreamDefaultReaderReadManyCodeConstructorK const JSC::ImplementationVisibility s_readableStreamDefaultReaderReadManyCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamDefaultReaderReadManyCodeLength = 2598; static const JSC::Intrinsic s_readableStreamDefaultReaderReadManyCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamDefaultReaderReadManyCode = "(function (){\"use strict\";if(!@isReadableStreamDefaultReader(this))@throwTypeError(\"ReadableStreamDefaultReader.readMany() should not be called directly\");const _=@getByIdDirectPrivate(this,\"ownerReadableStream\");if(!_)@throwTypeError(\"readMany() called on a reader owned by no readable stream\");const d=@getByIdDirectPrivate(_,\"state\");if(@putByIdDirectPrivate(_,\"disturbed\",!0),d===@streamClosed)return{value:[],size:0,done:!0};else if(d===@streamErrored)throw @getByIdDirectPrivate(_,\"storedError\");var B=@getByIdDirectPrivate(_,\"readableStreamController\"),w=@getByIdDirectPrivate(B,\"queue\");if(!w)return B.@pull(B).@then(function({done:G,value:H}){return G\?{done:!0,value:[],size:0}:{value:[H],size:1,done:!1}});const A=w.content;var D=w.size,j=A.toArray(!1),k=j.length;if(k>0){var x=@newArrayWithSize(k);if(@isReadableByteStreamController(B)){{const G=j[0];if(!(@ArrayBuffer.@isView(G)||G instanceof @ArrayBuffer))@putByValDirect(x,0,new @Uint8Array(G.buffer,G.byteOffset,G.byteLength));else @putByValDirect(x,0,G)}for(var C=1;C<k;C++){const G=j[C];if(!(@ArrayBuffer.@isView(G)||G instanceof @ArrayBuffer))@putByValDirect(x,C,new @Uint8Array(G.buffer,G.byteOffset,G.byteLength));else @putByValDirect(x,C,G)}}else{@putByValDirect(x,0,j[0].value);for(var C=1;C<k;C++)@putByValDirect(x,C,j[C].value)}if(@resetQueue(@getByIdDirectPrivate(B,\"queue\")),@getByIdDirectPrivate(B,\"closeRequested\"))@readableStreamClose(@getByIdDirectPrivate(B,\"controlledReadableStream\"));else if(@isReadableStreamDefaultController(B))@readableStreamDefaultControllerCallPullIfNeeded(B);else if(@isReadableByteStreamController(B))@readableByteStreamControllerCallPullIfNeeded(B);return{value:x,size:D,done:!1}}var E=(G)=>{if(G.done)return{value:[],size:0,done:!0};var H=@getByIdDirectPrivate(_,\"readableStreamController\"),I=@getByIdDirectPrivate(H,\"queue\"),J=[G.value].concat(I.content.toArray(!1)),K=J.length;if(@isReadableByteStreamController(H))for(var N=0;N<K;N++){const S=J[N];if(!(@ArrayBuffer.@isView(S)||S instanceof @ArrayBuffer)){const{buffer:T,byteOffset:U,byteLength:W}=S;@putByValDirect(J,N,new @Uint8Array(T,U,W))}}else for(var N=1;N<K;N++)@putByValDirect(J,N,J[N].value);var Q=I.size;if(@resetQueue(I),@getByIdDirectPrivate(H,\"closeRequested\"))@readableStreamClose(@getByIdDirectPrivate(H,\"controlledReadableStream\"));else if(@isReadableStreamDefaultController(H))@readableStreamDefaultControllerCallPullIfNeeded(H);else if(@isReadableByteStreamController(H))@readableByteStreamControllerCallPullIfNeeded(H);return{value:J,size:Q,done:!1}},F=B.@pull(B);if(F&&@isPromise(F))return F.@then(E);return E(F)})\n"; +const char* const s_readableStreamDefaultReaderReadManyCode = "(function (){\"use strict\";if(!@isReadableStreamDefaultReader(this))@throwTypeError(\"ReadableStreamDefaultReader.readMany() should not be called directly\");const K=@getByIdDirectPrivate(this,\"ownerReadableStream\");if(!K)@throwTypeError(\"readMany() called on a reader owned by no readable stream\");const k=@getByIdDirectPrivate(K,\"state\");if(@putByIdDirectPrivate(K,\"disturbed\",!0),k===@streamClosed)return{value:[],size:0,done:!0};else if(k===@streamErrored)throw @getByIdDirectPrivate(K,\"storedError\");var E=@getByIdDirectPrivate(K,\"readableStreamController\"),x=@getByIdDirectPrivate(E,\"queue\");if(!x)return E.@pull(E).@then(function({done:S,value:T}){return S\?{done:!0,value:[],size:0}:{value:[T],size:1,done:!1}});const C=x.content;var _=x.size,A=C.toArray(!1),N=A.length;if(N>0){var D=@newArrayWithSize(N);if(@isReadableByteStreamController(E)){{const S=A[0];if(!(@ArrayBuffer.@isView(S)||S instanceof @ArrayBuffer))@putByValDirect(D,0,new @Uint8Array(S.buffer,S.byteOffset,S.byteLength));else @putByValDirect(D,0,S)}for(var F=1;F<N;F++){const S=A[F];if(!(@ArrayBuffer.@isView(S)||S instanceof @ArrayBuffer))@putByValDirect(D,F,new @Uint8Array(S.buffer,S.byteOffset,S.byteLength));else @putByValDirect(D,F,S)}}else{@putByValDirect(D,0,A[0].value);for(var F=1;F<N;F++)@putByValDirect(D,F,A[F].value)}if(@resetQueue(@getByIdDirectPrivate(E,\"queue\")),@getByIdDirectPrivate(E,\"closeRequested\"))@readableStreamClose(@getByIdDirectPrivate(E,\"controlledReadableStream\"));else if(@isReadableStreamDefaultController(E))@readableStreamDefaultControllerCallPullIfNeeded(E);else if(@isReadableByteStreamController(E))@readableByteStreamControllerCallPullIfNeeded(E);return{value:D,size:_,done:!1}}var H=(S)=>{if(S.done)return{value:[],size:0,done:!0};var T=@getByIdDirectPrivate(K,\"readableStreamController\"),U=@getByIdDirectPrivate(T,\"queue\"),W=[S.value].concat(U.content.toArray(!1)),j=W.length;if(@isReadableByteStreamController(T))for(var G=0;G<j;G++){const d=W[G];if(!(@ArrayBuffer.@isView(d)||d instanceof @ArrayBuffer)){const{buffer:I,byteOffset:B,byteLength:J}=d;@putByValDirect(W,G,new @Uint8Array(I,B,J))}}else for(var G=1;G<j;G++)@putByValDirect(W,G,W[G].value);var w=U.size;if(@resetQueue(U),@getByIdDirectPrivate(T,\"closeRequested\"))@readableStreamClose(@getByIdDirectPrivate(T,\"controlledReadableStream\"));else if(@isReadableStreamDefaultController(T))@readableStreamDefaultControllerCallPullIfNeeded(T);else if(@isReadableByteStreamController(T))@readableByteStreamControllerCallPullIfNeeded(T);return{value:W,size:w,done:!1}},Q=E.@pull(E);if(Q&&@isPromise(Q))return Q.@then(H);return H(Q)})\n"; // read const JSC::ConstructAbility s_readableStreamDefaultReaderReadCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2068,7 +2068,7 @@ const JSC::ConstructorKind s_streamInternalsPromiseInvokeOrNoopCodeConstructorKi const JSC::ImplementationVisibility s_streamInternalsPromiseInvokeOrNoopCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_streamInternalsPromiseInvokeOrNoopCodeLength = 116; static const JSC::Intrinsic s_streamInternalsPromiseInvokeOrNoopCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_streamInternalsPromiseInvokeOrNoopCode = "(function (n,d,l){\"use strict\";try{return @promiseInvokeOrNoopNoCatch(n,d,l)}catch(m){return @Promise.@reject(m)}})\n"; +const char* const s_streamInternalsPromiseInvokeOrNoopCode = "(function (n,d,m){\"use strict\";try{return @promiseInvokeOrNoopNoCatch(n,d,m)}catch(l){return @Promise.@reject(l)}})\n"; // promiseInvokeOrFallbackOrNoop const JSC::ConstructAbility s_streamInternalsPromiseInvokeOrFallbackOrNoopCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2092,7 +2092,7 @@ const JSC::ConstructorKind s_streamInternalsCreateFIFOCodeConstructorKind = JSC: const JSC::ImplementationVisibility s_streamInternalsCreateFIFOCodeImplementationVisibility = JSC::ImplementationVisibility::Private; const int s_streamInternalsCreateFIFOCodeLength = 1472; static const JSC::Intrinsic s_streamInternalsCreateFIFOCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_streamInternalsCreateFIFOCode = "(function (){\"use strict\";var b=@Array.prototype.slice;class v{constructor(){this._head=0,this._tail=0,this._capacityMask=3,this._list=@newArrayWithSize(4)}_head;_tail;_capacityMask;_list;size(){if(this._head===this._tail)return 0;if(this._head<this._tail)return this._tail-this._head;else return this._capacityMask+1-(this._head-this._tail)}isEmpty(){return this.size()==0}isNotEmpty(){return this.size()>0}shift(){var{_head:x,_tail:g,_list:k,_capacityMask:w}=this;if(x===g)return @undefined;var z=k[x];if(@putByValDirect(k,x,@undefined),x=this._head=x+1&w,x<2&&g>1e4&&g<=k.length>>>2)this._shrinkArray();return z}peek(){if(this._head===this._tail)return @undefined;return this._list[this._head]}push(x){var g=this._tail;if(@putByValDirect(this._list,g,x),this._tail=g+1&this._capacityMask,this._tail===this._head)this._growArray()}toArray(x){var g=this._list,k=@toLength(g.length);if(x||this._head>this._tail){var w=@toLength(this._head),z=@toLength(this._tail),A=@toLength(k-w+z),B=@newArrayWithSize(A),E=0;for(var F=w;F<k;F++)@putByValDirect(B,E++,g[F]);for(var F=0;F<z;F++)@putByValDirect(B,E++,g[F]);return B}else return b.@call(g,this._head,this._tail)}clear(){this._head=0,this._tail=0,this._list.fill(@undefined)}_growArray(){if(this._head)this._list=this.toArray(!0),this._head=0;this._tail=@toLength(this._list.length),this._list.length<<=1,this._capacityMask=this._capacityMask<<1|1}shrinkArray(){this._list.length>>>=1,this._capacityMask>>>=1}}return new v})\n"; +const char* const s_streamInternalsCreateFIFOCode = "(function (){\"use strict\";var b=@Array.prototype.slice;class z{constructor(){this._head=0,this._tail=0,this._capacityMask=3,this._list=@newArrayWithSize(4)}_head;_tail;_capacityMask;_list;size(){if(this._head===this._tail)return 0;if(this._head<this._tail)return this._tail-this._head;else return this._capacityMask+1-(this._head-this._tail)}isEmpty(){return this.size()==0}isNotEmpty(){return this.size()>0}shift(){var{_head:v,_tail:x,_list:k,_capacityMask:w}=this;if(v===x)return @undefined;var A=k[v];if(@putByValDirect(k,v,@undefined),v=this._head=v+1&w,v<2&&x>1e4&&x<=k.length>>>2)this._shrinkArray();return A}peek(){if(this._head===this._tail)return @undefined;return this._list[this._head]}push(v){var x=this._tail;if(@putByValDirect(this._list,x,v),this._tail=x+1&this._capacityMask,this._tail===this._head)this._growArray()}toArray(v){var x=this._list,k=@toLength(x.length);if(v||this._head>this._tail){var w=@toLength(this._head),A=@toLength(this._tail),B=@toLength(k-w+A),E=@newArrayWithSize(B),g=0;for(var F=w;F<k;F++)@putByValDirect(E,g++,x[F]);for(var F=0;F<A;F++)@putByValDirect(E,g++,x[F]);return E}else return b.@call(x,this._head,this._tail)}clear(){this._head=0,this._tail=0,this._list.fill(@undefined)}_growArray(){if(this._head)this._list=this.toArray(!0),this._head=0;this._tail=@toLength(this._list.length),this._list.length<<=1,this._capacityMask=this._capacityMask<<1|1}shrinkArray(){this._list.length>>>=1,this._capacityMask>>>=1}}return new z})\n"; // newQueue const JSC::ConstructAbility s_streamInternalsNewQueueCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2140,7 +2140,7 @@ const JSC::ConstructorKind s_streamInternalsExtractSizeAlgorithmCodeConstructorK const JSC::ImplementationVisibility s_streamInternalsExtractSizeAlgorithmCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_streamInternalsExtractSizeAlgorithmCodeLength = 176; static const JSC::Intrinsic s_streamInternalsExtractSizeAlgorithmCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_streamInternalsExtractSizeAlgorithmCode = "(function (d){\"use strict\";const p=d.size;if(p===@undefined)return()=>1;if(typeof p!==\"function\")@throwTypeError(\"strategy.size must be a function\");return(w)=>{return p(w)}})\n"; +const char* const s_streamInternalsExtractSizeAlgorithmCode = "(function (d){\"use strict\";const w=d.size;if(w===@undefined)return()=>1;if(typeof w!==\"function\")@throwTypeError(\"strategy.size must be a function\");return(p)=>{return w(p)}})\n"; // extractHighWaterMark const JSC::ConstructAbility s_streamInternalsExtractHighWaterMarkCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2190,7 +2190,7 @@ const JSC::ConstructorKind s_importMetaObjectLoadCJS2ESMCodeConstructorKind = JS const JSC::ImplementationVisibility s_importMetaObjectLoadCJS2ESMCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_importMetaObjectLoadCJS2ESMCodeLength = 1337; static const JSC::Intrinsic s_importMetaObjectLoadCJS2ESMCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_importMetaObjectLoadCJS2ESMCode = "(function (_){\"use strict\";var w=@Loader,x=@createFIFO(),z=_;while(z){var B=w.registry.@get(z);if(!B||!B.state||B.state<=@ModuleFetch)@fulfillModuleSync(z),B=w.registry.@get(z);var D=@getPromiseInternalField(B.fetch,@promiseFieldReactionsOrResult),F=w.parseModule(z,D),G=B.module;if(!G&&F&&@isPromise(F)){var H=@getPromiseInternalField(F,@promiseFieldReactionsOrResult),I=@getPromiseInternalField(F,@promiseFieldFlags),J=I&@promiseStateMask;if(J===@promiseStatePending||H&&@isPromise(H))@throwTypeError(`require() async module \"${z}\" is unsupported`);else if(J===@promiseStateRejected){if(!H\?.message)@throwTypeError(`${H+\"\"\?H:\"An error occurred\"} occurred while parsing module \\\"${z}\\\"`);throw H}B.module=G=H}else if(F&&!G)B.module=G=F;@setStateToMax(B,@ModuleLink);var L=G.dependenciesMap,Q=w.requestedModules(G),T=@newArrayWithSize(Q.length);for(var U=0,V=Q.length;U<V;++U){var W=Q[U],X=W[0]===\"/\"\?W:w.resolve(W,z),Y=w.ensureRegistered(X);if(Y.state<@ModuleLink)x.push(X);@putByValDirect(T,U,Y),L.@set(W,Y)}B.dependencies=T,B.instantiate=@Promise.resolve(B),B.satisfy=@Promise.resolve(B),z=x.shift();while(z&&(w.registry.@get(z)\?.state\?\?@ModuleFetch)>=@ModuleLink)z=x.shift()}var Z=w.linkAndEvaluateModule(_,@undefined);if(Z&&@isPromise(Z))@throwTypeError(`require() async module \\\"${_}\\\" is unsupported`);return w.registry.@get(_)})\n"; +const char* const s_importMetaObjectLoadCJS2ESMCode = "(function (x){\"use strict\";var I=@Loader,_=@createFIFO(),J=x;while(J){var w=I.registry.@get(J);if(!w||!w.state||w.state<=@ModuleFetch)@fulfillModuleSync(J),w=I.registry.@get(J);var L=@getPromiseInternalField(w.fetch,@promiseFieldReactionsOrResult),z=I.parseModule(J,L),Q=w.module;if(!Q&&z&&@isPromise(z)){var T=@getPromiseInternalField(z,@promiseFieldReactionsOrResult),B=@getPromiseInternalField(z,@promiseFieldFlags),U=B&@promiseStateMask;if(U===@promiseStatePending||T&&@isPromise(T))@throwTypeError(`require() async module \"${J}\" is unsupported`);else if(U===@promiseStateRejected){if(!T\?.message)@throwTypeError(`${T+\"\"\?T:\"An error occurred\"} occurred while parsing module \\\"${J}\\\"`);throw T}w.module=Q=T}else if(z&&!Q)w.module=Q=z;@setStateToMax(w,@ModuleLink);var V=Q.dependenciesMap,W=I.requestedModules(Q),X=@newArrayWithSize(W.length);for(var Y=0,Z=W.length;Y<Z;++Y){var D=W[Y],F=D[0]===\"/\"\?D:I.resolve(D,J),G=I.ensureRegistered(F);if(G.state<@ModuleLink)_.push(F);@putByValDirect(X,Y,G),V.@set(D,G)}w.dependencies=X,w.instantiate=@Promise.resolve(w),w.satisfy=@Promise.resolve(w),J=_.shift();while(J&&(I.registry.@get(J)\?.state\?\?@ModuleFetch)>=@ModuleLink)J=_.shift()}var H=I.linkAndEvaluateModule(x,@undefined);if(H&&@isPromise(H))@throwTypeError(`require() async module \\\"${x}\\\" is unsupported`);return I.registry.@get(x)})\n"; // requireESM const JSC::ConstructAbility s_importMetaObjectRequireESMCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2198,7 +2198,7 @@ const JSC::ConstructorKind s_importMetaObjectRequireESMCodeConstructorKind = JSC const JSC::ImplementationVisibility s_importMetaObjectRequireESMCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_importMetaObjectRequireESMCodeLength = 419; static const JSC::Intrinsic s_importMetaObjectRequireESMCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_importMetaObjectRequireESMCode = "(function (a){\"use strict\";var _=@Loader.registry.@get(a);if(!_||!_.evaluated)_=@loadCJS2ESM(a);if(!_||!_.evaluated||!_.module)@throwTypeError(`require() failed to evaluate module \"${a}\". This is an internal consistentency error.`);var f=@Loader.getModuleNamespaceObject(_.module);if(f[@commonJSSymbol]===0)return;var g=f.default,u=g\?.[@commonJSSymbol];if(u===0)return g;else if(u&&@isCallable(g))return g();return f})\n"; +const char* const s_importMetaObjectRequireESMCode = "(function (a){\"use strict\";var f=@Loader.registry.@get(a);if(!f||!f.evaluated)f=@loadCJS2ESM(a);if(!f||!f.evaluated||!f.module)@throwTypeError(`require() failed to evaluate module \"${a}\". This is an internal consistentency error.`);var g=@Loader.getModuleNamespaceObject(f.module);if(g[@commonJSSymbol]===0)return;var _=g.default,u=_\?.[@commonJSSymbol];if(u===0)return _;else if(u&&@isCallable(_))return _();return g})\n"; // internalRequire const JSC::ConstructAbility s_importMetaObjectInternalRequireCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2206,7 +2206,7 @@ const JSC::ConstructorKind s_importMetaObjectInternalRequireCodeConstructorKind const JSC::ImplementationVisibility s_importMetaObjectInternalRequireCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_importMetaObjectInternalRequireCodeLength = 611; static const JSC::Intrinsic s_importMetaObjectInternalRequireCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_importMetaObjectInternalRequireCode = "(function (i){\"use strict\";var n=@requireMap.@get(i);const _=i.substring(i.length-5);if(n){if(_===\".node\")return n.exports;return n}if(_===\".json\"){var q=globalThis[Symbol.for(\"_fs\")]||=@Bun.fs(),b=JSON.parse(q.readFileSync(i,\"utf8\"));return @requireMap.@set(i,b),b}else if(_===\".node\"){var g={exports:{}};return process.dlopen(g,i),@requireMap.@set(i,g),g.exports}else if(_===\".toml\"){var q=globalThis[Symbol.for(\"_fs\")]||=@Bun.fs(),b=@Bun.TOML.parse(q.readFileSync(i,\"utf8\"));return @requireMap.@set(i,b),b}else{var b=@requireESM(i);const k=@requireMap.@get(i);if(k)return k;return @requireMap.@set(i,b),b}})\n"; +const char* const s_importMetaObjectInternalRequireCode = "(function (n){\"use strict\";var _=@requireMap.@get(n);const q=n.substring(n.length-5);if(_){if(q===\".node\")return _.exports;return _}if(q===\".json\"){var b=globalThis[Symbol.for(\"_fs\")]||=@Bun.fs(),j=JSON.parse(b.readFileSync(n,\"utf8\"));return @requireMap.@set(n,j),j}else if(q===\".node\"){var i={exports:{}};return process.dlopen(i,n),@requireMap.@set(n,i),i.exports}else if(q===\".toml\"){var b=globalThis[Symbol.for(\"_fs\")]||=@Bun.fs(),j=@Bun.TOML.parse(b.readFileSync(n,\"utf8\"));return @requireMap.@set(n,j),j}else{var j=@requireESM(n);const g=@requireMap.@get(n);if(g)return g;return @requireMap.@set(n,j),j}})\n"; // createRequireCache const JSC::ConstructAbility s_importMetaObjectCreateRequireCacheCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2214,7 +2214,7 @@ const JSC::ConstructorKind s_importMetaObjectCreateRequireCacheCodeConstructorKi const JSC::ImplementationVisibility s_importMetaObjectCreateRequireCacheCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_importMetaObjectCreateRequireCacheCodeLength = 891; static const JSC::Intrinsic s_importMetaObjectCreateRequireCacheCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_importMetaObjectCreateRequireCacheCode = "(function (){\"use strict\";class r{id;parent;filename;children=[];paths=[];constructor(P){this.id=P;const c=P.lastIndexOf(\"/\");if(c!==-1&&P.length>c+1)this.filename=P.substring(c+1);else this.filename=P}get loaded(){return!0}require(P){return @internalRequire(@resolveSync(P,this.id))}get exports(){return @requireMap.@get(this.id)\?\?{}}set exports(P){@requireMap.@set(this.id,P)}}var _=new Map;return new Proxy({},{get(P,c){if(@requireMap.@get(c)){var K=_.@get(c);if(!K)K=new r(c),_.@set(c,K);return K}},set(P,c,q){if(!_.@has(c))_.@set(c,new r(c));return @requireMap.@set(c,q\?.exports),!0},has(P,c){return @requireMap.@has(c)},deleteProperty(P,c){return _.@delete(c),@requireMap.@delete(c),@Loader.registry.@delete(c),!0},ownKeys(P){return[...@requireMap.@keys()]},getPrototypeOf(P){return null},getOwnPropertyDescriptor(P,c){if(@requireMap.@has(c))return{configurable:!0,enumerable:!0}}})})\n"; +const char* const s_importMetaObjectCreateRequireCacheCode = "(function (){\"use strict\";class _{id;parent;filename;children=[];paths=[];constructor(c){this.id=c;const q=c.lastIndexOf(\"/\");if(q!==-1&&c.length>q+1)this.filename=c.substring(q+1);else this.filename=c}get loaded(){return!0}require(c){return @internalRequire(@resolveSync(c,this.id))}get exports(){return @requireMap.@get(this.id)\?\?{}}set exports(c){@requireMap.@set(this.id,c)}}var P=new Map;return new Proxy({},{get(c,q){if(@requireMap.@get(q)){var r=P.@get(q);if(!r)r=new _(q),P.@set(q,r);return r}},set(c,q,K){if(!P.@has(q))P.@set(q,new _(q));return @requireMap.@set(q,K\?.exports),!0},has(c,q){return @requireMap.@has(q)},deleteProperty(c,q){return P.@delete(q),@requireMap.@delete(q),@Loader.registry.@delete(q),!0},ownKeys(c){return[...@requireMap.@keys()]},getPrototypeOf(c){return null},getOwnPropertyDescriptor(c,q){if(@requireMap.@has(q))return{configurable:!0,enumerable:!0}}})})\n"; // require const JSC::ConstructAbility s_importMetaObjectRequireCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2222,7 +2222,7 @@ const JSC::ConstructorKind s_importMetaObjectRequireCodeConstructorKind = JSC::C const JSC::ImplementationVisibility s_importMetaObjectRequireCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_importMetaObjectRequireCodeLength = 172; static const JSC::Intrinsic s_importMetaObjectRequireCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_importMetaObjectRequireCode = "(function (i){var l=this\?.path\?\?arguments.callee.path;if(typeof i!==\"string\")@throwTypeError(\"require(name) must be a string\");return @internalRequire(@resolveSync(i,l))})\n"; +const char* const s_importMetaObjectRequireCode = "(function (l){var i=this\?.path\?\?arguments.callee.path;if(typeof l!==\"string\")@throwTypeError(\"require(name) must be a string\");return @internalRequire(@resolveSync(l,i))})\n"; // main const JSC::ConstructAbility s_importMetaObjectMainCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2398,7 +2398,7 @@ const JSC::ConstructorKind s_readableStreamInitializeReadableStreamCodeConstruct const JSC::ImplementationVisibility s_readableStreamInitializeReadableStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamInitializeReadableStreamCodeLength = 2065; static const JSC::Intrinsic s_readableStreamInitializeReadableStreamCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamInitializeReadableStreamCode = "(function (_,f){\"use strict\";if(_===@undefined)_={@bunNativeType:0,@bunNativePtr:0,@lazy:!1};if(f===@undefined)f={};if(!@isObject(_))@throwTypeError(\"ReadableStream constructor takes an object as first argument\");if(f!==@undefined&&!@isObject(f))@throwTypeError(\"ReadableStream constructor takes an object as second argument, if any\");@putByIdDirectPrivate(this,\"state\",@streamReadable),@putByIdDirectPrivate(this,\"reader\",@undefined),@putByIdDirectPrivate(this,\"storedError\",@undefined),@putByIdDirectPrivate(this,\"disturbed\",!1),@putByIdDirectPrivate(this,\"readableStreamController\",null),@putByIdDirectPrivate(this,\"bunNativeType\",@getByIdDirectPrivate(_,\"bunNativeType\")\?\?0),@putByIdDirectPrivate(this,\"bunNativePtr\",@getByIdDirectPrivate(_,\"bunNativePtr\")\?\?0);const m=_.type===\"direct\",v=!!_.@lazy,B=m||v;if(@getByIdDirectPrivate(_,\"pull\")!==@undefined&&!B){const I=@getByIdDirectPrivate(f,\"size\"),b=@getByIdDirectPrivate(f,\"highWaterMark\");return @putByIdDirectPrivate(this,\"highWaterMark\",b),@putByIdDirectPrivate(this,\"underlyingSource\",@undefined),@setupReadableStreamDefaultController(this,_,I,b!==@undefined\?b:1,@getByIdDirectPrivate(_,\"start\"),@getByIdDirectPrivate(_,\"pull\"),@getByIdDirectPrivate(_,\"cancel\")),this}if(m)@putByIdDirectPrivate(this,\"underlyingSource\",_),@putByIdDirectPrivate(this,\"highWaterMark\",@getByIdDirectPrivate(f,\"highWaterMark\")),@putByIdDirectPrivate(this,\"start\",()=>@createReadableStreamController(this,_,f));else if(B){const I=_.autoAllocateChunkSize;@putByIdDirectPrivate(this,\"highWaterMark\",@undefined),@putByIdDirectPrivate(this,\"underlyingSource\",@undefined),@putByIdDirectPrivate(this,\"highWaterMark\",I||@getByIdDirectPrivate(f,\"highWaterMark\")),@putByIdDirectPrivate(this,\"start\",()=>{const b=@lazyLoadStream(this,I);if(b)@createReadableStreamController(this,b,f)})}else @putByIdDirectPrivate(this,\"underlyingSource\",@undefined),@putByIdDirectPrivate(this,\"highWaterMark\",@getByIdDirectPrivate(f,\"highWaterMark\")),@putByIdDirectPrivate(this,\"start\",@undefined),@createReadableStreamController(this,_,f);return this})\n"; +const char* const s_readableStreamInitializeReadableStreamCode = "(function (f,m){\"use strict\";if(f===@undefined)f={@bunNativeType:0,@bunNativePtr:0,@lazy:!1};if(m===@undefined)m={};if(!@isObject(f))@throwTypeError(\"ReadableStream constructor takes an object as first argument\");if(m!==@undefined&&!@isObject(m))@throwTypeError(\"ReadableStream constructor takes an object as second argument, if any\");@putByIdDirectPrivate(this,\"state\",@streamReadable),@putByIdDirectPrivate(this,\"reader\",@undefined),@putByIdDirectPrivate(this,\"storedError\",@undefined),@putByIdDirectPrivate(this,\"disturbed\",!1),@putByIdDirectPrivate(this,\"readableStreamController\",null),@putByIdDirectPrivate(this,\"bunNativeType\",@getByIdDirectPrivate(f,\"bunNativeType\")\?\?0),@putByIdDirectPrivate(this,\"bunNativePtr\",@getByIdDirectPrivate(f,\"bunNativePtr\")\?\?0);const v=f.type===\"direct\",B=!!f.@lazy,I=v||B;if(@getByIdDirectPrivate(f,\"pull\")!==@undefined&&!I){const _=@getByIdDirectPrivate(m,\"size\"),b=@getByIdDirectPrivate(m,\"highWaterMark\");return @putByIdDirectPrivate(this,\"highWaterMark\",b),@putByIdDirectPrivate(this,\"underlyingSource\",@undefined),@setupReadableStreamDefaultController(this,f,_,b!==@undefined\?b:1,@getByIdDirectPrivate(f,\"start\"),@getByIdDirectPrivate(f,\"pull\"),@getByIdDirectPrivate(f,\"cancel\")),this}if(v)@putByIdDirectPrivate(this,\"underlyingSource\",f),@putByIdDirectPrivate(this,\"highWaterMark\",@getByIdDirectPrivate(m,\"highWaterMark\")),@putByIdDirectPrivate(this,\"start\",()=>@createReadableStreamController(this,f,m));else if(I){const _=f.autoAllocateChunkSize;@putByIdDirectPrivate(this,\"highWaterMark\",@undefined),@putByIdDirectPrivate(this,\"underlyingSource\",@undefined),@putByIdDirectPrivate(this,\"highWaterMark\",_||@getByIdDirectPrivate(m,\"highWaterMark\")),@putByIdDirectPrivate(this,\"start\",()=>{const b=@lazyLoadStream(this,_);if(b)@createReadableStreamController(this,b,m)})}else @putByIdDirectPrivate(this,\"underlyingSource\",@undefined),@putByIdDirectPrivate(this,\"highWaterMark\",@getByIdDirectPrivate(m,\"highWaterMark\")),@putByIdDirectPrivate(this,\"start\",@undefined),@createReadableStreamController(this,f,m);return this})\n"; // readableStreamToArray const JSC::ConstructAbility s_readableStreamReadableStreamToArrayCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2406,7 +2406,7 @@ const JSC::ConstructorKind s_readableStreamReadableStreamToArrayCodeConstructorK const JSC::ImplementationVisibility s_readableStreamReadableStreamToArrayCodeImplementationVisibility = JSC::ImplementationVisibility::Private; const int s_readableStreamReadableStreamToArrayCodeLength = 173; static const JSC::Intrinsic s_readableStreamReadableStreamToArrayCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamReadableStreamToArrayCode = "(function (_){\"use strict\";var b=@getByIdDirectPrivate(_,\"underlyingSource\");if(b!==@undefined)return @readableStreamToArrayDirect(_,b);return @readableStreamIntoArray(_)})\n"; +const char* const s_readableStreamReadableStreamToArrayCode = "(function (b){\"use strict\";var _=@getByIdDirectPrivate(b,\"underlyingSource\");if(_!==@undefined)return @readableStreamToArrayDirect(b,_);return @readableStreamIntoArray(b)})\n"; // readableStreamToText const JSC::ConstructAbility s_readableStreamReadableStreamToTextCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2446,7 +2446,7 @@ const JSC::ConstructorKind s_readableStreamConsumeReadableStreamCodeConstructorK const JSC::ImplementationVisibility s_readableStreamConsumeReadableStreamCodeImplementationVisibility = JSC::ImplementationVisibility::Private; const int s_readableStreamConsumeReadableStreamCodeLength = 1603; static const JSC::Intrinsic s_readableStreamConsumeReadableStreamCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamConsumeReadableStreamCode = "(function (_,F,j){\"use strict\";const k=globalThis.Symbol.for(\"Bun.consumeReadableStreamPrototype\");var q=globalThis[k];if(!q)q=globalThis[k]=[];var w=q[F];if(w===@undefined){var[x,A,B,D,G,H]=globalThis[globalThis.Symbol.for(\"Bun.lazy\")](F);w=class J{handleError;handleClosed;processResult;constructor(K,L){this.#_=L,this.#F=K,this.#$=!1,this.handleError=this._handleError.bind(this),this.handleClosed=this._handleClosed.bind(this),this.processResult=this._processResult.bind(this),K.closed.then(this.handleClosed,this.handleError)}_handleClosed(){if(this.#$)return;this.#$=!0;var K=this.#_;this.#_=0,D(K),H(K)}_handleError(K){if(this.#$)return;this.#$=!0;var L=this.#_;this.#_=0,A(L,K),H(L)}#_;#$=!1;#F;_handleReadMany({value:K,done:L,size:N}){if(L){this.handleClosed();return}if(this.#$)return;B(this.#_,K,L,N)}read(){if(!this.#_)return @throwTypeError(\"ReadableStreamSink is already closed\");return this.processResult(this.#F.read())}_processResult(K){if(K&&@isPromise(K)){if(@getPromiseInternalField(K,@promiseFieldFlags)&@promiseStateFulfilled){const N=@getPromiseInternalField(K,@promiseFieldReactionsOrResult);if(N)K=N}}if(K&&@isPromise(K))return K.then(this.processResult,this.handleError),null;if(K.done)return this.handleClosed(),0;else if(K.value)return K.value;else return-1}readMany(){if(!this.#_)return @throwTypeError(\"ReadableStreamSink is already closed\");return this.processResult(this.#F.readMany())}};const I=F+1;if(q.length<I)q.length=I;@putByValDirect(q,F,w)}if(@isReadableStreamLocked(j))@throwTypeError(\"Cannot start reading from a locked stream\");return new w(j.getReader(),_)})\n"; +const char* const s_readableStreamConsumeReadableStreamCode = "(function (j,k,w){\"use strict\";const B=globalThis.Symbol.for(\"Bun.consumeReadableStreamPrototype\");var D=globalThis[B];if(!D)D=globalThis[B]=[];var G=D[k];if(G===@undefined){var[H,I,J,K,_,F]=globalThis[globalThis.Symbol.for(\"Bun.lazy\")](k);G=class A{handleError;handleClosed;processResult;constructor(L,N){this.#_=N,this.#F=L,this.#$=!1,this.handleError=this._handleError.bind(this),this.handleClosed=this._handleClosed.bind(this),this.processResult=this._processResult.bind(this),L.closed.then(this.handleClosed,this.handleError)}_handleClosed(){if(this.#$)return;this.#$=!0;var L=this.#_;this.#_=0,K(L),F(L)}_handleError(L){if(this.#$)return;this.#$=!0;var N=this.#_;this.#_=0,I(N,L),F(N)}#_;#$=!1;#F;_handleReadMany({value:L,done:N,size:q}){if(N){this.handleClosed();return}if(this.#$)return;J(this.#_,L,N,q)}read(){if(!this.#_)return @throwTypeError(\"ReadableStreamSink is already closed\");return this.processResult(this.#F.read())}_processResult(L){if(L&&@isPromise(L)){if(@getPromiseInternalField(L,@promiseFieldFlags)&@promiseStateFulfilled){const q=@getPromiseInternalField(L,@promiseFieldReactionsOrResult);if(q)L=q}}if(L&&@isPromise(L))return L.then(this.processResult,this.handleError),null;if(L.done)return this.handleClosed(),0;else if(L.value)return L.value;else return-1}readMany(){if(!this.#_)return @throwTypeError(\"ReadableStreamSink is already closed\");return this.processResult(this.#F.readMany())}};const x=k+1;if(D.length<x)D.length=x;@putByValDirect(D,k,G)}if(@isReadableStreamLocked(w))@throwTypeError(\"Cannot start reading from a locked stream\");return new G(w.getReader(),j)})\n"; // createEmptyReadableStream const JSC::ConstructAbility s_readableStreamCreateEmptyReadableStreamCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2486,7 +2486,7 @@ const JSC::ConstructorKind s_readableStreamPipeThroughCodeConstructorKind = JSC: const JSC::ImplementationVisibility s_readableStreamPipeThroughCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamPipeThroughCodeLength = 877; static const JSC::Intrinsic s_readableStreamPipeThroughCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamPipeThroughCode = "(function (_,d){\"use strict\";const u=_,y=u[\"readable\"];if(!@isReadableStream(y))throw @makeTypeError(\"readable should be ReadableStream\");const c=u[\"writable\"],h=@getInternalWritableStream(c);if(!@isWritableStream(h))throw @makeTypeError(\"writable should be WritableStream\");let j=!1,k=!1,q=!1,x;if(!@isUndefinedOrNull(d)){if(!@isObject(d))throw @makeTypeError(\"options must be an object\");if(k=!!d[\"preventAbort\"],q=!!d[\"preventCancel\"],j=!!d[\"preventClose\"],x=d[\"signal\"],x!==@undefined&&!@isAbortSignal(x))throw @makeTypeError(\"options.signal must be AbortSignal\")}if(!@isReadableStream(this))throw @makeThisTypeError(\"ReadableStream\",\"pipeThrough\");if(@isReadableStreamLocked(this))throw @makeTypeError(\"ReadableStream is locked\");if(@isWritableStreamLocked(h))throw @makeTypeError(\"WritableStream is locked\");return @readableStreamPipeToWritableStream(this,h,j,k,q,x),y})\n"; +const char* const s_readableStreamPipeThroughCode = "(function (u,y){\"use strict\";const c=u,h=c[\"readable\"];if(!@isReadableStream(h))throw @makeTypeError(\"readable should be ReadableStream\");const _=c[\"writable\"],j=@getInternalWritableStream(_);if(!@isWritableStream(j))throw @makeTypeError(\"writable should be WritableStream\");let d=!1,k=!1,q=!1,x;if(!@isUndefinedOrNull(y)){if(!@isObject(y))throw @makeTypeError(\"options must be an object\");if(k=!!y[\"preventAbort\"],q=!!y[\"preventCancel\"],d=!!y[\"preventClose\"],x=y[\"signal\"],x!==@undefined&&!@isAbortSignal(x))throw @makeTypeError(\"options.signal must be AbortSignal\")}if(!@isReadableStream(this))throw @makeThisTypeError(\"ReadableStream\",\"pipeThrough\");if(@isReadableStreamLocked(this))throw @makeTypeError(\"ReadableStream is locked\");if(@isWritableStreamLocked(j))throw @makeTypeError(\"WritableStream is locked\");return @readableStreamPipeToWritableStream(this,j,d,k,q,x),h})\n"; // pipeTo const JSC::ConstructAbility s_readableStreamPipeToCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2494,7 +2494,7 @@ const JSC::ConstructorKind s_readableStreamPipeToCodeConstructorKind = JSC::Cons const JSC::ImplementationVisibility s_readableStreamPipeToCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableStreamPipeToCodeLength = 926; static const JSC::Intrinsic s_readableStreamPipeToCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableStreamPipeToCode = "(function (m){\"use strict\";if(!@isReadableStream(this))return @Promise.@reject(@makeThisTypeError(\"ReadableStream\",\"pipeTo\"));if(@isReadableStreamLocked(this))return @Promise.@reject(@makeTypeError(\"ReadableStream is locked\"));let u=@argument(1),_=!1,j=!1,E=!1,R;if(!@isUndefinedOrNull(u)){if(!@isObject(u))return @Promise.@reject(@makeTypeError(\"options must be an object\"));try{j=!!u[\"preventAbort\"],E=!!u[\"preventCancel\"],_=!!u[\"preventClose\"],R=u[\"signal\"]}catch(b){return @Promise.@reject(b)}if(R!==@undefined&&!@isAbortSignal(R))return @Promise.@reject(@makeTypeError(\"options.signal must be AbortSignal\"))}const S=@getInternalWritableStream(m);if(!@isWritableStream(S))return @Promise.@reject(@makeTypeError(\"ReadableStream pipeTo requires a WritableStream\"));if(@isWritableStreamLocked(S))return @Promise.@reject(@makeTypeError(\"WritableStream is locked\"));return @readableStreamPipeToWritableStream(this,S,_,j,E,R)})\n"; +const char* const s_readableStreamPipeToCode = "(function (u){\"use strict\";if(!@isReadableStream(this))return @Promise.@reject(@makeThisTypeError(\"ReadableStream\",\"pipeTo\"));if(@isReadableStreamLocked(this))return @Promise.@reject(@makeTypeError(\"ReadableStream is locked\"));let _=@argument(1),j=!1,E=!1,S=!1,m;if(!@isUndefinedOrNull(_)){if(!@isObject(_))return @Promise.@reject(@makeTypeError(\"options must be an object\"));try{E=!!_[\"preventAbort\"],S=!!_[\"preventCancel\"],j=!!_[\"preventClose\"],m=_[\"signal\"]}catch(R){return @Promise.@reject(R)}if(m!==@undefined&&!@isAbortSignal(m))return @Promise.@reject(@makeTypeError(\"options.signal must be AbortSignal\"))}const b=@getInternalWritableStream(u);if(!@isWritableStream(b))return @Promise.@reject(@makeTypeError(\"ReadableStream pipeTo requires a WritableStream\"));if(@isWritableStreamLocked(b))return @Promise.@reject(@makeTypeError(\"WritableStream is locked\"));return @readableStreamPipeToWritableStream(this,b,j,E,S,m)})\n"; // tee const JSC::ConstructAbility s_readableStreamTeeCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2594,7 +2594,7 @@ const JSC::ConstructorKind s_readableByteStreamInternalsPrivateInitializeReadabl const JSC::ImplementationVisibility s_readableByteStreamInternalsPrivateInitializeReadableByteStreamControllerCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableByteStreamInternalsPrivateInitializeReadableByteStreamControllerCodeLength = 1654; static const JSC::Intrinsic s_readableByteStreamInternalsPrivateInitializeReadableByteStreamControllerCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableByteStreamInternalsPrivateInitializeReadableByteStreamControllerCode = "(function (_,v,b){\"use strict\";if(!@isReadableStream(_))@throwTypeError(\"ReadableByteStreamController needs a ReadableStream\");if(@getByIdDirectPrivate(_,\"readableStreamController\")!==null)@throwTypeError(\"ReadableStream already has a controller\");@putByIdDirectPrivate(this,\"controlledReadableStream\",_),@putByIdDirectPrivate(this,\"underlyingByteSource\",v),@putByIdDirectPrivate(this,\"pullAgain\",!1),@putByIdDirectPrivate(this,\"pulling\",!1),@readableByteStreamControllerClearPendingPullIntos(this),@putByIdDirectPrivate(this,\"queue\",@newQueue()),@putByIdDirectPrivate(this,\"started\",0),@putByIdDirectPrivate(this,\"closeRequested\",!1);let f=@toNumber(b);if(@isNaN(f)||f<0)@throwRangeError(\"highWaterMark value is negative or not a number\");@putByIdDirectPrivate(this,\"strategyHWM\",f);let p=v.autoAllocateChunkSize;if(p!==@undefined){if(p=@toNumber(p),p<=0||p===@Infinity||p===-@Infinity)@throwRangeError(\"autoAllocateChunkSize value is negative or equal to positive or negative infinity\")}@putByIdDirectPrivate(this,\"autoAllocateChunkSize\",p),@putByIdDirectPrivate(this,\"pendingPullIntos\",@createFIFO());const R=this;return @promiseInvokeOrNoopNoCatch(@getByIdDirectPrivate(R,\"underlyingByteSource\"),\"start\",[R]).@then(()=>{@putByIdDirectPrivate(R,\"started\",1),@assert(!@getByIdDirectPrivate(R,\"pulling\")),@assert(!@getByIdDirectPrivate(R,\"pullAgain\")),@readableByteStreamControllerCallPullIfNeeded(R)},(d)=>{if(@getByIdDirectPrivate(_,\"state\")===@streamReadable)@readableByteStreamControllerError(R,d)}),@putByIdDirectPrivate(this,\"cancel\",@readableByteStreamControllerCancel),@putByIdDirectPrivate(this,\"pull\",@readableByteStreamControllerPull),this})\n"; +const char* const s_readableByteStreamInternalsPrivateInitializeReadableByteStreamControllerCode = "(function (v,b,f){\"use strict\";if(!@isReadableStream(v))@throwTypeError(\"ReadableByteStreamController needs a ReadableStream\");if(@getByIdDirectPrivate(v,\"readableStreamController\")!==null)@throwTypeError(\"ReadableStream already has a controller\");@putByIdDirectPrivate(this,\"controlledReadableStream\",v),@putByIdDirectPrivate(this,\"underlyingByteSource\",b),@putByIdDirectPrivate(this,\"pullAgain\",!1),@putByIdDirectPrivate(this,\"pulling\",!1),@readableByteStreamControllerClearPendingPullIntos(this),@putByIdDirectPrivate(this,\"queue\",@newQueue()),@putByIdDirectPrivate(this,\"started\",0),@putByIdDirectPrivate(this,\"closeRequested\",!1);let p=@toNumber(f);if(@isNaN(p)||p<0)@throwRangeError(\"highWaterMark value is negative or not a number\");@putByIdDirectPrivate(this,\"strategyHWM\",p);let R=b.autoAllocateChunkSize;if(R!==@undefined){if(R=@toNumber(R),R<=0||R===@Infinity||R===-@Infinity)@throwRangeError(\"autoAllocateChunkSize value is negative or equal to positive or negative infinity\")}@putByIdDirectPrivate(this,\"autoAllocateChunkSize\",R),@putByIdDirectPrivate(this,\"pendingPullIntos\",@createFIFO());const _=this;return @promiseInvokeOrNoopNoCatch(@getByIdDirectPrivate(_,\"underlyingByteSource\"),\"start\",[_]).@then(()=>{@putByIdDirectPrivate(_,\"started\",1),@assert(!@getByIdDirectPrivate(_,\"pulling\")),@assert(!@getByIdDirectPrivate(_,\"pullAgain\")),@readableByteStreamControllerCallPullIfNeeded(_)},(d)=>{if(@getByIdDirectPrivate(v,\"state\")===@streamReadable)@readableByteStreamControllerError(_,d)}),@putByIdDirectPrivate(this,\"cancel\",@readableByteStreamControllerCancel),@putByIdDirectPrivate(this,\"pull\",@readableByteStreamControllerPull),this})\n"; // readableStreamByteStreamControllerStart const JSC::ConstructAbility s_readableByteStreamInternalsReadableStreamByteStreamControllerStartCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2610,7 +2610,7 @@ const JSC::ConstructorKind s_readableByteStreamInternalsPrivateInitializeReadabl const JSC::ImplementationVisibility s_readableByteStreamInternalsPrivateInitializeReadableStreamBYOBRequestCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableByteStreamInternalsPrivateInitializeReadableStreamBYOBRequestCodeLength = 139; static const JSC::Intrinsic s_readableByteStreamInternalsPrivateInitializeReadableStreamBYOBRequestCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableByteStreamInternalsPrivateInitializeReadableStreamBYOBRequestCode = "(function (a,d){\"use strict\";@putByIdDirectPrivate(this,\"associatedReadableByteStreamController\",a),@putByIdDirectPrivate(this,\"view\",d)})\n"; +const char* const s_readableByteStreamInternalsPrivateInitializeReadableStreamBYOBRequestCode = "(function (d,a){\"use strict\";@putByIdDirectPrivate(this,\"associatedReadableByteStreamController\",d),@putByIdDirectPrivate(this,\"view\",a)})\n"; // isReadableByteStreamController const JSC::ConstructAbility s_readableByteStreamInternalsIsReadableByteStreamControllerCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2642,7 +2642,7 @@ const JSC::ConstructorKind s_readableByteStreamInternalsReadableByteStreamContro const JSC::ImplementationVisibility s_readableByteStreamInternalsReadableByteStreamControllerCancelCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableByteStreamInternalsReadableByteStreamControllerCancelCodeLength = 248; static const JSC::Intrinsic s_readableByteStreamInternalsReadableByteStreamControllerCancelCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableByteStreamInternalsReadableByteStreamControllerCancelCode = "(function (a,p){\"use strict\";var u=@getByIdDirectPrivate(a,\"pendingPullIntos\"),_=u.peek();if(_)_.bytesFilled=0;return @putByIdDirectPrivate(a,\"queue\",@newQueue()),@promiseInvokeOrNoop(@getByIdDirectPrivate(a,\"underlyingByteSource\"),\"cancel\",[p])})\n"; +const char* const s_readableByteStreamInternalsReadableByteStreamControllerCancelCode = "(function (a,p){\"use strict\";var _=@getByIdDirectPrivate(a,\"pendingPullIntos\"),u=_.peek();if(u)u.bytesFilled=0;return @putByIdDirectPrivate(a,\"queue\",@newQueue()),@promiseInvokeOrNoop(@getByIdDirectPrivate(a,\"underlyingByteSource\"),\"cancel\",[p])})\n"; // readableByteStreamControllerError const JSC::ConstructAbility s_readableByteStreamInternalsReadableByteStreamControllerErrorCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2754,7 +2754,7 @@ const JSC::ConstructorKind s_readableByteStreamInternalsReadableByteStreamContro const JSC::ImplementationVisibility s_readableByteStreamInternalsReadableByteStreamControllerEnqueueChunkCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableByteStreamInternalsReadableByteStreamControllerEnqueueChunkCodeLength = 160; static const JSC::Intrinsic s_readableByteStreamInternalsReadableByteStreamControllerEnqueueChunkCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableByteStreamInternalsReadableByteStreamControllerEnqueueChunkCode = "(function (_,a,d,p){\"use strict\";@getByIdDirectPrivate(_,\"queue\").content.push({buffer:a,byteOffset:d,byteLength:p}),@getByIdDirectPrivate(_,\"queue\").size+=p})\n"; +const char* const s_readableByteStreamInternalsReadableByteStreamControllerEnqueueChunkCode = "(function (_,a,p,d){\"use strict\";@getByIdDirectPrivate(_,\"queue\").content.push({buffer:a,byteOffset:p,byteLength:d}),@getByIdDirectPrivate(_,\"queue\").size+=d})\n"; // readableByteStreamControllerRespondWithNewView const JSC::ConstructAbility s_readableByteStreamInternalsReadableByteStreamControllerRespondWithNewViewCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2786,7 +2786,7 @@ const JSC::ConstructorKind s_readableByteStreamInternalsReadableByteStreamContro const JSC::ImplementationVisibility s_readableByteStreamInternalsReadableByteStreamControllerRespondInReadableStateCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableByteStreamInternalsReadableByteStreamControllerRespondInReadableStateCodeLength = 799; static const JSC::Intrinsic s_readableByteStreamInternalsReadableByteStreamControllerRespondInReadableStateCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableByteStreamInternalsReadableByteStreamControllerRespondInReadableStateCode = "(function (f,w,R){\"use strict\";if(R.bytesFilled+w>R.byteLength)@throwRangeError(\"bytesWritten value is too great\");if(@assert(@getByIdDirectPrivate(f,\"pendingPullIntos\").isEmpty()||@getByIdDirectPrivate(f,\"pendingPullIntos\").peek()===R),@readableByteStreamControllerInvalidateBYOBRequest(f),R.bytesFilled+=w,R.bytesFilled<R.elementSize)return;@readableByteStreamControllerShiftPendingDescriptor(f);const _=R.bytesFilled%R.elementSize;if(_>0){const g=R.byteOffset+R.bytesFilled,h=@cloneArrayBuffer(R.buffer,g-_,_);@readableByteStreamControllerEnqueueChunk(f,h,0,h.byteLength)}R.buffer=@transferBufferToCurrentRealm(R.buffer),R.bytesFilled-=_,@readableByteStreamControllerCommitDescriptor(@getByIdDirectPrivate(f,\"controlledReadableStream\"),R),@readableByteStreamControllerProcessPullDescriptors(f)})\n"; +const char* const s_readableByteStreamInternalsReadableByteStreamControllerRespondInReadableStateCode = "(function (w,R,_){\"use strict\";if(_.bytesFilled+R>_.byteLength)@throwRangeError(\"bytesWritten value is too great\");if(@assert(@getByIdDirectPrivate(w,\"pendingPullIntos\").isEmpty()||@getByIdDirectPrivate(w,\"pendingPullIntos\").peek()===_),@readableByteStreamControllerInvalidateBYOBRequest(w),_.bytesFilled+=R,_.bytesFilled<_.elementSize)return;@readableByteStreamControllerShiftPendingDescriptor(w);const g=_.bytesFilled%_.elementSize;if(g>0){const h=_.byteOffset+_.bytesFilled,f=@cloneArrayBuffer(_.buffer,h-g,g);@readableByteStreamControllerEnqueueChunk(w,f,0,f.byteLength)}_.buffer=@transferBufferToCurrentRealm(_.buffer),_.bytesFilled-=g,@readableByteStreamControllerCommitDescriptor(@getByIdDirectPrivate(w,\"controlledReadableStream\"),_),@readableByteStreamControllerProcessPullDescriptors(w)})\n"; // readableByteStreamControllerRespondInClosedState const JSC::ConstructAbility s_readableByteStreamInternalsReadableByteStreamControllerRespondInClosedStateCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2794,7 +2794,7 @@ const JSC::ConstructorKind s_readableByteStreamInternalsReadableByteStreamContro const JSC::ImplementationVisibility s_readableByteStreamInternalsReadableByteStreamControllerRespondInClosedStateCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableByteStreamInternalsReadableByteStreamControllerRespondInClosedStateCodeLength = 502; static const JSC::Intrinsic s_readableByteStreamInternalsReadableByteStreamControllerRespondInClosedStateCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableByteStreamInternalsReadableByteStreamControllerRespondInClosedStateCode = "(function (a,_){\"use strict\";if(_.buffer=@transferBufferToCurrentRealm(_.buffer),@assert(_.bytesFilled===0),@readableStreamHasBYOBReader(@getByIdDirectPrivate(a,\"controlledReadableStream\")))while(@getByIdDirectPrivate(@getByIdDirectPrivate(@getByIdDirectPrivate(a,\"controlledReadableStream\"),\"reader\"),\"readIntoRequests\")\?.isNotEmpty()){let d=@readableByteStreamControllerShiftPendingDescriptor(a);@readableByteStreamControllerCommitDescriptor(@getByIdDirectPrivate(a,\"controlledReadableStream\"),d)}})\n"; +const char* const s_readableByteStreamInternalsReadableByteStreamControllerRespondInClosedStateCode = "(function (a,d){\"use strict\";if(d.buffer=@transferBufferToCurrentRealm(d.buffer),@assert(d.bytesFilled===0),@readableStreamHasBYOBReader(@getByIdDirectPrivate(a,\"controlledReadableStream\")))while(@getByIdDirectPrivate(@getByIdDirectPrivate(@getByIdDirectPrivate(a,\"controlledReadableStream\"),\"reader\"),\"readIntoRequests\")\?.isNotEmpty()){let _=@readableByteStreamControllerShiftPendingDescriptor(a);@readableByteStreamControllerCommitDescriptor(@getByIdDirectPrivate(a,\"controlledReadableStream\"),_)}})\n"; // readableByteStreamControllerProcessPullDescriptors const JSC::ConstructAbility s_readableByteStreamInternalsReadableByteStreamControllerProcessPullDescriptorsCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2810,7 +2810,7 @@ const JSC::ConstructorKind s_readableByteStreamInternalsReadableByteStreamContro const JSC::ImplementationVisibility s_readableByteStreamInternalsReadableByteStreamControllerFillDescriptorFromQueueCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableByteStreamInternalsReadableByteStreamControllerFillDescriptorFromQueueCodeLength = 970; static const JSC::Intrinsic s_readableByteStreamInternalsReadableByteStreamControllerFillDescriptorFromQueueCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableByteStreamInternalsReadableByteStreamControllerFillDescriptorFromQueueCode = "(function (_,q){\"use strict\";const j=q.bytesFilled-q.bytesFilled%q.elementSize,k=@getByIdDirectPrivate(_,\"queue\").size<q.byteLength-q.bytesFilled\?@getByIdDirectPrivate(_,\"queue\").size:q.byteLength-q.bytesFilled,v=q.bytesFilled+k,w=v-v%q.elementSize;let z=k,E=!1;if(w>j)z=w-q.bytesFilled,E=!0;while(z>0){let G=@getByIdDirectPrivate(_,\"queue\").content.peek();const H=z<G.byteLength\?z:G.byteLength,J=q.byteOffset+q.bytesFilled;if(new @Uint8Array(q.buffer).set(new @Uint8Array(G.buffer,G.byteOffset,H),J),G.byteLength===H)@getByIdDirectPrivate(_,\"queue\").content.shift();else G.byteOffset+=H,G.byteLength-=H;@getByIdDirectPrivate(_,\"queue\").size-=H,@assert(@getByIdDirectPrivate(_,\"pendingPullIntos\").isEmpty()||@getByIdDirectPrivate(_,\"pendingPullIntos\").peek()===q),@readableByteStreamControllerInvalidateBYOBRequest(_),q.bytesFilled+=H,z-=H}if(!E)@assert(@getByIdDirectPrivate(_,\"queue\").size===0),@assert(q.bytesFilled>0),@assert(q.bytesFilled<q.elementSize);return E})\n"; +const char* const s_readableByteStreamInternalsReadableByteStreamControllerFillDescriptorFromQueueCode = "(function (_,z){\"use strict\";const q=z.bytesFilled-z.bytesFilled%z.elementSize,j=@getByIdDirectPrivate(_,\"queue\").size<z.byteLength-z.bytesFilled\?@getByIdDirectPrivate(_,\"queue\").size:z.byteLength-z.bytesFilled,v=z.bytesFilled+j,w=v-v%z.elementSize;let E=j,G=!1;if(w>q)E=w-z.bytesFilled,G=!0;while(E>0){let H=@getByIdDirectPrivate(_,\"queue\").content.peek();const k=E<H.byteLength\?E:H.byteLength,J=z.byteOffset+z.bytesFilled;if(new @Uint8Array(z.buffer).set(new @Uint8Array(H.buffer,H.byteOffset,k),J),H.byteLength===k)@getByIdDirectPrivate(_,\"queue\").content.shift();else H.byteOffset+=k,H.byteLength-=k;@getByIdDirectPrivate(_,\"queue\").size-=k,@assert(@getByIdDirectPrivate(_,\"pendingPullIntos\").isEmpty()||@getByIdDirectPrivate(_,\"pendingPullIntos\").peek()===z),@readableByteStreamControllerInvalidateBYOBRequest(_),z.bytesFilled+=k,E-=k}if(!G)@assert(@getByIdDirectPrivate(_,\"queue\").size===0),@assert(z.bytesFilled>0),@assert(z.bytesFilled<z.elementSize);return G})\n"; // readableByteStreamControllerShiftPendingDescriptor const JSC::ConstructAbility s_readableByteStreamInternalsReadableByteStreamControllerShiftPendingDescriptorCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2850,7 +2850,7 @@ const JSC::ConstructorKind s_readableByteStreamInternalsReadableStreamFulfillRea const JSC::ImplementationVisibility s_readableByteStreamInternalsReadableStreamFulfillReadIntoRequestCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_readableByteStreamInternalsReadableStreamFulfillReadIntoRequestCodeLength = 161; static const JSC::Intrinsic s_readableByteStreamInternalsReadableStreamFulfillReadIntoRequestCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_readableByteStreamInternalsReadableStreamFulfillReadIntoRequestCode = "(function (l,i,p){\"use strict\";const _=@getByIdDirectPrivate(@getByIdDirectPrivate(l,\"reader\"),\"readIntoRequests\").shift();@fulfillPromise(_,{value:i,done:p})})\n"; +const char* const s_readableByteStreamInternalsReadableStreamFulfillReadIntoRequestCode = "(function (l,i,_){\"use strict\";const p=@getByIdDirectPrivate(@getByIdDirectPrivate(l,\"reader\"),\"readIntoRequests\").shift();@fulfillPromise(p,{value:i,done:_})})\n"; // readableStreamBYOBReaderRead const JSC::ConstructAbility s_readableByteStreamInternalsReadableStreamBYOBReaderReadCodeConstructAbility = JSC::ConstructAbility::CannotConstruct; @@ -2918,7 +2918,7 @@ const JSC::ConstructorKind s_eventSourceGetEventSourceCodeConstructorKind = JSC: const JSC::ImplementationVisibility s_eventSourceGetEventSourceCodeImplementationVisibility = JSC::ImplementationVisibility::Public; const int s_eventSourceGetEventSourceCodeLength = 5477; static const JSC::Intrinsic s_eventSourceGetEventSourceCodeIntrinsic = JSC::NoIntrinsic; -const char* const s_eventSourceGetEventSourceCode = "(function (){\"use strict\";class j extends EventTarget{#$;#j;#w;#A;#B;#F=!1;#G=null;#J=\"\";#K=\"\";#L=\"\";#M=!0;#O=0;#Q=0;#U=0;#V=null;static#W(w){w.#H()}static#X(w,A){const B=w.data,F=B.#L\?`Last-Event-ID: ${B.#L}\\r\\n`:\"\",G=`GET ${A.pathname}${A.search} HTTP/1.1\\r\\nHost: bun\\r\\nContent-type: text/event-stream\\r\\nContent-length: 0\\r\\n${F}\\r\\n`,J=w.write(G);if(J!==G.length)B.#K=G.substring(J)}static#Y(w,A,B){for(;;){if(B>=A.length)return;let F=-1,G=A.indexOf(\"\\r\\n\",B);const J=G+2;if(G>0)if(w.#O===0){const Q=parseInt(A.substring(B,G),16);if(Q===0){w.#j=2,w.#G\?.end();return}F=J+Q}else F=A.length;else{if(w.#J.length===0){w.#J+=A.substring(B);return}F=A.length}let K=A.substring(J,F);B=F+2;let L=0,M=K.indexOf(\"\\n\\n\");if(M==-1){w.#J+=A.substring(J);return}if(w.#J.length)w.#J+=K,K=w.#J,w.#J=\"\";let O=!0;while(O){const Q=K.substring(L,M);let U,V=\"\",W,X=0,Y=-1;for(;;){let z=Q.indexOf(\"\\n\",X);if(z===-1){if(X>=Q.length)break;z=Q.length}const H=Q.substring(X,z);if(H.startsWith(\"data:\"))if(V.length)V+=`\\n${H.substring(5).trim()}`;else V=H.substring(5).trim();else if(H.startsWith(\"event:\"))U=H.substring(6).trim();else if(H.startsWith(\"id:\"))W=H.substring(3).trim();else if(H.startsWith(\"retry:\")){if(Y=parseInt(H.substring(6).trim(),10),@isNaN(Y))Y=-1}X=z+1}if(w.#L=W||\"\",Y>=0)w.#U=Y;if(V||W||U)w.dispatchEvent(new MessageEvent(U||\"message\",{data:V||\"\",origin:w.#$.origin,source:w,lastEventId:W}));if(K.length===M+2){O=!1;break}const Z=K.indexOf(\"\\n\\n\",M+1);if(Z===-1)break;L=M,M=Z}}}static#Z={open(w){const A=w.data;if(A.#G=w,!A.#F)j.#X(w,A.#$)},handshake(w,A,B){const F=w.data;if(A)j.#X(w,F.#$);else F.#j=2,F.dispatchEvent(new ErrorEvent(\"error\",{error:B})),w.end()},data(w,A){const B=w.data;switch(B.#j){case 0:{let F=A.toString();const G=F.indexOf(\"\\r\\n\\r\\n\");if(G===-1){B.#J+=F;return}if(B.#J.length)B.#J+=F,F=B.#J,B.#J=\"\";const J=F.substring(0,G),K=J.indexOf(\"\\r\\n\");if(K===-1){B.#j=2,B.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(\"Invalid HTTP request\")})),w.end();return}const L=J.substring(0,K);if(L!==\"HTTP/1.1 200 OK\"){B.#j=2,B.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(L)})),w.end();return}let M=K+1,O=!1,Q=-1;for(;;){let V=J.indexOf(\"\\r\\n\",M);if(V===-1){if(M>=J.length){if(!O)B.#j=2,B.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's response has no MIME type and \"text/event-stream\" is required. Aborting the connection.`)})),w.end();return}V=J.length}const W=J.substring(M+1,V),X=W.indexOf(\":\"),Y=W.substring(0,X),Z=Y.localeCompare(\"content-type\",@undefined,{sensitivity:\"accent\"})===0;if(M=V+1,Z)if(W.endsWith(\" text/event-stream\"))O=!0;else{B.#j=2,B.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's response has a MIME type that is not \"text/event-stream\". Aborting the connection.`)})),w.end();return}else if(Y.localeCompare(\"content-length\",@undefined,{sensitivity:\"accent\"})===0){if(Q=parseInt(W.substring(X+1).trim(),10),@isNaN(Q)||Q<=0){B.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's Content-Length is invalid. Aborting the connection.`)})),w.end();return}if(O)break}else if(Y.localeCompare(\"transfer-encoding\",@undefined,{sensitivity:\"accent\"})===0){if(W.substring(X+1).trim()!==\"chunked\"){B.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's Transfer-Encoding is invalid. Aborting the connection.`)})),w.end();return}if(Q=0,O)break}}B.#O=Q,B.#j=1,B.dispatchEvent(new Event(\"open\"));const U=F.substring(G+4);if(j.#Y(B,U,0),B.#O>0){if(B.#Q+=U.length,B.#Q>=B.#O)B.#j=2,w.end()}return}case 1:if(j.#Y(B,A.toString(),2),B.#O>0){if(B.#Q+=A.byteLength,B.#Q>=B.#O)B.#j=2,w.end()}return;default:break}},drain(w){const A=w.data;if(A.#j===0){const B=A.#J;if(B.length){const F=w.write(B);if(F!==B.length)w.data.#K=B.substring(F);else w.data.#K=\"\"}}},close:j.#z,end(w){j.#z(w).dispatchEvent(new ErrorEvent(\"error\",{error:new Error(\"Connection closed by server\")}))},timeout(w){j.#z(w).dispatchEvent(new ErrorEvent(\"error\",{error:new Error(\"Timeout\")}))},binaryType:\"buffer\"};static#z(w){const A=w.data;if(A.#G=null,A.#Q=0,A.#j=2,A.#M){if(A.#V)clearTimeout(A.#V);A.#V=setTimeout(j.#W,A.#U,A)}return A}constructor(w,A=@undefined){super();const B=new URL(w);this.#F=B.protocol===\"https:\",this.#$=B,this.#j=2,process.nextTick(j.#W,this)}ref(){this.#V\?.ref(),this.#G\?.ref()}unref(){this.#V\?.unref(),this.#G\?.unref()}#H(){if(this.#j!==2)return;const w=this.#$,A=this.#F;this.#j=0,@Bun.connect({data:this,socket:j.#Z,hostname:w.hostname,port:parseInt(w.port||(A\?\"443\":\"80\"),10),tls:A\?{requestCert:!0,rejectUnauthorized:!1}:!1}).catch((B)=>{if(super.dispatchEvent(new ErrorEvent(\"error\",{error:B})),this.#M){if(this.#V)this.#V.unref\?.();this.#V=setTimeout(j.#W,1000,this)}})}get url(){return this.#$.href}get readyState(){return this.#j}close(){this.#M=!1,this.#j=2,this.#G\?.unref(),this.#G\?.end()}get onopen(){return this.#B}get onerror(){return this.#w}get onmessage(){return this.#A}set onopen(w){if(this.#B)super.removeEventListener(\"close\",this.#B);super.addEventListener(\"open\",w),this.#B=w}set onerror(w){if(this.#w)super.removeEventListener(\"error\",this.#w);super.addEventListener(\"error\",w),this.#w=w}set onmessage(w){if(this.#A)super.removeEventListener(\"message\",this.#A);super.addEventListener(\"message\",w),this.#A=w}}return Object.defineProperty(j.prototype,\"CONNECTING\",{enumerable:!0,value:0}),Object.defineProperty(j.prototype,\"OPEN\",{enumerable:!0,value:1}),Object.defineProperty(j.prototype,\"CLOSED\",{enumerable:!0,value:2}),j[Symbol.for(\"CommonJS\")]=0,j})\n"; +const char* const s_eventSourceGetEventSourceCode = "(function (){\"use strict\";class j extends EventTarget{#K;#w;#G;#A;#B;#L=!1;#M=null;#O=\"\";#$=\"\";#F=\"\";#J=!0;#Q=0;#U=0;#V=0;#W=null;static#X(V){V.#H()}static#j(V,w){const W=V.data,A=W.#F\?`Last-Event-ID: ${W.#F}\\r\\n`:\"\",X=`GET ${w.pathname}${w.search} HTTP/1.1\\r\\nHost: bun\\r\\nContent-type: text/event-stream\\r\\nContent-length: 0\\r\\n${A}\\r\\n`,B=V.write(X);if(B!==X.length)W.#$=X.substring(B)}static#Y(V,w,W){for(;;){if(W>=w.length)return;let A=-1,X=w.indexOf(\"\\r\\n\",W);const B=X+2;if(X>0)if(V.#Q===0){const Z=parseInt(w.substring(W,X),16);if(Z===0){V.#w=2,V.#M\?.end();return}A=B+Z}else A=w.length;else{if(V.#O.length===0){V.#O+=w.substring(W);return}A=w.length}let Y=w.substring(B,A);W=A+2;let F=0,G=Y.indexOf(\"\\n\\n\");if(G==-1){V.#O+=w.substring(B);return}if(V.#O.length)V.#O+=Y,Y=V.#O,V.#O=\"\";let J=!0;while(J){const Z=Y.substring(F,G);let K,z=\"\",L,H=0,M=-1;for(;;){let O=Z.indexOf(\"\\n\",H);if(O===-1){if(H>=Z.length)break;O=Z.length}const U=Z.substring(H,O);if(U.startsWith(\"data:\"))if(z.length)z+=`\\n${U.substring(5).trim()}`;else z=U.substring(5).trim();else if(U.startsWith(\"event:\"))K=U.substring(6).trim();else if(U.startsWith(\"id:\"))L=U.substring(3).trim();else if(U.startsWith(\"retry:\")){if(M=parseInt(U.substring(6).trim(),10),@isNaN(M))M=-1}H=O+1}if(V.#F=L||\"\",M>=0)V.#V=M;if(z||L||K)V.dispatchEvent(new MessageEvent(K||\"message\",{data:z||\"\",origin:V.#K.origin,source:V,lastEventId:L}));if(Y.length===G+2){J=!1;break}const Q=Y.indexOf(\"\\n\\n\",G+1);if(Q===-1)break;F=G,G=Q}}}static#Z={open(V){const w=V.data;if(w.#M=V,!w.#L)j.#j(V,w.#K)},handshake(V,w,W){const A=V.data;if(w)j.#j(V,A.#K);else A.#w=2,A.dispatchEvent(new ErrorEvent(\"error\",{error:W})),V.end()},data(V,w){const W=V.data;switch(W.#w){case 0:{let A=w.toString();const X=A.indexOf(\"\\r\\n\\r\\n\");if(X===-1){W.#O+=A;return}if(W.#O.length)W.#O+=A,A=W.#O,W.#O=\"\";const B=A.substring(0,X),Y=B.indexOf(\"\\r\\n\");if(Y===-1){W.#w=2,W.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(\"Invalid HTTP request\")})),V.end();return}const F=B.substring(0,Y);if(F!==\"HTTP/1.1 200 OK\"){W.#w=2,W.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(F)})),V.end();return}let G=Y+1,J=!1,Z=-1;for(;;){let z=B.indexOf(\"\\r\\n\",G);if(z===-1){if(G>=B.length){if(!J)W.#w=2,W.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's response has no MIME type and \"text/event-stream\" is required. Aborting the connection.`)})),V.end();return}z=B.length}const L=B.substring(G+1,z),H=L.indexOf(\":\"),M=L.substring(0,H),Q=M.localeCompare(\"content-type\",@undefined,{sensitivity:\"accent\"})===0;if(G=z+1,Q)if(L.endsWith(\" text/event-stream\"))J=!0;else{W.#w=2,W.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's response has a MIME type that is not \"text/event-stream\". Aborting the connection.`)})),V.end();return}else if(M.localeCompare(\"content-length\",@undefined,{sensitivity:\"accent\"})===0){if(Z=parseInt(L.substring(H+1).trim(),10),@isNaN(Z)||Z<=0){W.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's Content-Length is invalid. Aborting the connection.`)})),V.end();return}if(J)break}else if(M.localeCompare(\"transfer-encoding\",@undefined,{sensitivity:\"accent\"})===0){if(L.substring(H+1).trim()!==\"chunked\"){W.dispatchEvent(new ErrorEvent(\"error\",{error:new Error(`EventSource's Transfer-Encoding is invalid. Aborting the connection.`)})),V.end();return}if(Z=0,J)break}}W.#Q=Z,W.#w=1,W.dispatchEvent(new Event(\"open\"));const K=A.substring(X+4);if(j.#Y(W,K,0),W.#Q>0){if(W.#U+=K.length,W.#U>=W.#Q)W.#w=2,V.end()}return}case 1:if(j.#Y(W,w.toString(),2),W.#Q>0){if(W.#U+=w.byteLength,W.#U>=W.#Q)W.#w=2,V.end()}return;default:break}},drain(V){const w=V.data;if(w.#w===0){const W=w.#O;if(W.length){const A=V.write(W);if(A!==W.length)V.data.#$=W.substring(A);else V.data.#$=\"\"}}},close:j.#z,end(V){j.#z(V).dispatchEvent(new ErrorEvent(\"error\",{error:new Error(\"Connection closed by server\")}))},timeout(V){j.#z(V).dispatchEvent(new ErrorEvent(\"error\",{error:new Error(\"Timeout\")}))},binaryType:\"buffer\"};static#z(V){const w=V.data;if(w.#M=null,w.#U=0,w.#w=2,w.#J){if(w.#W)clearTimeout(w.#W);w.#W=setTimeout(j.#X,w.#V,w)}return w}constructor(V,w=@undefined){super();const W=new URL(V);this.#L=W.protocol===\"https:\",this.#K=W,this.#w=2,process.nextTick(j.#X,this)}ref(){this.#W\?.ref(),this.#M\?.ref()}unref(){this.#W\?.unref(),this.#M\?.unref()}#H(){if(this.#w!==2)return;const V=this.#K,w=this.#L;this.#w=0,@Bun.connect({data:this,socket:j.#Z,hostname:V.hostname,port:parseInt(V.port||(w\?\"443\":\"80\"),10),tls:w\?{requestCert:!0,rejectUnauthorized:!1}:!1}).catch((W)=>{if(super.dispatchEvent(new ErrorEvent(\"error\",{error:W})),this.#J){if(this.#W)this.#W.unref\?.();this.#W=setTimeout(j.#X,1000,this)}})}get url(){return this.#K.href}get readyState(){return this.#w}close(){this.#J=!1,this.#w=2,this.#M\?.unref(),this.#M\?.end()}get onopen(){return this.#B}get onerror(){return this.#G}get onmessage(){return this.#A}set onopen(V){if(this.#B)super.removeEventListener(\"close\",this.#B);super.addEventListener(\"open\",V),this.#B=V}set onerror(V){if(this.#G)super.removeEventListener(\"error\",this.#G);super.addEventListener(\"error\",V),this.#G=V}set onmessage(V){if(this.#A)super.removeEventListener(\"message\",this.#A);super.addEventListener(\"message\",V),this.#A=V}}return Object.defineProperty(j.prototype,\"CONNECTING\",{enumerable:!0,value:0}),Object.defineProperty(j.prototype,\"OPEN\",{enumerable:!0,value:1}),Object.defineProperty(j.prototype,\"CLOSED\",{enumerable:!0,value:2}),j[Symbol.for(\"CommonJS\")]=0,j})\n"; #define DEFINE_BUILTIN_GENERATOR(codeName, functionName, overriddenName, argumentCount) \ JSC::FunctionExecutable* codeName##Generator(JSC::VM& vm) \ diff --git a/src/js/out/modules/node/crypto.js b/src/js/out/modules/node/crypto.js index 063336164..7968a8eef 100644 --- a/src/js/out/modules/node/crypto.js +++ b/src/js/out/modules/node/crypto.js @@ -1,4 +1,4 @@ -var D$=Object.defineProperty;var C$=Object.getOwnPropertyNames;var L$=536870888,R$=($)=>import.meta.require($),F$=globalThis.crypto,P$=F$;var z$=($,Q)=>function(){return Q||(0,$[C$($)[0]])((Q={exports:{}}).exports,Q),Q.exports},M$=($,Q)=>{for(var Y in Q)D$($,Y,{get:Q[Y],enumerable:!0})};var S$=z$({"node_modules/safe-buffer/index.js"($,Q){var Y=R$("buffer"),Z=Y.Buffer;function G(U,X){for(var K in U)X[K]=U[K]}Z.from&&Z.alloc&&Z.allocUnsafe&&Z.allocUnsafeSlow?Q.exports=Y:(G(Y,$),$.Buffer=V);function V(U,X,K){return Z(U,X,K)}V.prototype=Object.create(Z.prototype),G(Z,V),V.from=function(U,X,K){if(typeof U=="number")throw new TypeError("Argument must not be a number");return Z(U,X,K)},V.alloc=function(U,X,K){if(typeof U!="number")throw new TypeError("Argument must be a number");var I=Z(U);return X!==void 0?typeof K=="string"?I.fill(X,K):I.fill(X):I.fill(0),I},V.allocUnsafe=function(U){if(typeof U!="number")throw new TypeError("Argument must be a number");return Z(U)},V.allocUnsafeSlow=function(U){if(typeof U!="number")throw new TypeError("Argument must be a number");return Y.SlowBuffer(U)}}}),v$=z$({"node_modules/randombytes/browser.js"($,Q){var Y=65536,Z=4294967295;function G(){throw new Error(`Secure random number generation is not supported by this browser. -Use Chrome, Firefox or Internet Explorer 11`)}var V=S$().Buffer,U=P$;U&&U.getRandomValues?Q.exports=X:Q.exports=G;function X(K,I){if(K>Z)throw new RangeError("requested too many random bytes");var J=V.allocUnsafe(K);if(K>0)if(K>Y)for(var O=0;O<K;O+=Y)U.getRandomValues(J.slice(O,O+Y));else U.getRandomValues(J);return typeof I=="function"?process.nextTick(function(){I(null,J)}):J}}}),q$=z$({"node_modules/inherits/inherits_browser.js"($,Q){typeof Object.create=="function"?Q.exports=function(Y,Z){Z&&(Y.super_=Z,Y.prototype=Object.create(Z.prototype,{constructor:{value:Y,enumerable:!1,writable:!0,configurable:!0}}))}:Q.exports=function(Y,Z){if(Z){Y.super_=Z;var G=function(){};G.prototype=Z.prototype,Y.prototype=new G,Y.prototype.constructor=Y}}}}),j$=z$({"node_modules/hash-base/index.js"($,Q){var Y=S$().Buffer,Z=R$("readable-stream").Transform,G=q$();function V(X,K){if(!Y.isBuffer(X)&&typeof X!="string")throw new TypeError(K+" must be a string or a buffer")}function U(X){Z.call(this),this._block=Y.allocUnsafe(X),this._blockSize=X,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}G(U,Z),U.prototype._transform=function(X,K,I){var J=null;try{this.update(X,K)}catch(O){J=O}I(J)},U.prototype._flush=function(X){var K=null;try{this.push(this.digest())}catch(I){K=I}X(K)},U.prototype.update=function(X,K){if(V(X,"Data"),this._finalized)throw new Error("Digest already called");Y.isBuffer(X)||(X=Y.from(X,K));for(var I=this._block,J=0;this._blockOffset+X.length-J>=this._blockSize;){for(var O=this._blockOffset;O<this._blockSize;)I[O++]=X[J++];this._update(),this._blockOffset=0}for(;J<X.length;)I[this._blockOffset++]=X[J++];for(var F=0,A=X.length*8;A>0;++F)this._length[F]+=A,A=this._length[F]/4294967296|0,A>0&&(this._length[F]-=4294967296*A);return this},U.prototype._update=function(){throw new Error("_update is not implemented")},U.prototype.digest=function(X){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var K=this._digest();X!==void 0&&(K=K.toString(X)),this._block.fill(0),this._blockOffset=0;for(var I=0;I<4;++I)this._length[I]=0;return K},U.prototype._digest=function(){throw new Error("_digest is not implemented")},Q.exports=U}}),k$=z$({"node_modules/md5.js/index.js"($,Q){var Y=q$(),Z=j$(),G=S$().Buffer,V=new Array(16);function U(){Z.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}Y(U,Z),U.prototype._update=function(){for(var F=V,A=0;A<16;++A)F[A]=this._block.readInt32LE(A*4);var W=this._a,H=this._b,E=this._c,T=this._d;W=K(W,H,E,T,F[0],3614090360,7),T=K(T,W,H,E,F[1],3905402710,12),E=K(E,T,W,H,F[2],606105819,17),H=K(H,E,T,W,F[3],3250441966,22),W=K(W,H,E,T,F[4],4118548399,7),T=K(T,W,H,E,F[5],1200080426,12),E=K(E,T,W,H,F[6],2821735955,17),H=K(H,E,T,W,F[7],4249261313,22),W=K(W,H,E,T,F[8],1770035416,7),T=K(T,W,H,E,F[9],2336552879,12),E=K(E,T,W,H,F[10],4294925233,17),H=K(H,E,T,W,F[11],2304563134,22),W=K(W,H,E,T,F[12],1804603682,7),T=K(T,W,H,E,F[13],4254626195,12),E=K(E,T,W,H,F[14],2792965006,17),H=K(H,E,T,W,F[15],1236535329,22),W=I(W,H,E,T,F[1],4129170786,5),T=I(T,W,H,E,F[6],3225465664,9),E=I(E,T,W,H,F[11],643717713,14),H=I(H,E,T,W,F[0],3921069994,20),W=I(W,H,E,T,F[5],3593408605,5),T=I(T,W,H,E,F[10],38016083,9),E=I(E,T,W,H,F[15],3634488961,14),H=I(H,E,T,W,F[4],3889429448,20),W=I(W,H,E,T,F[9],568446438,5),T=I(T,W,H,E,F[14],3275163606,9),E=I(E,T,W,H,F[3],4107603335,14),H=I(H,E,T,W,F[8],1163531501,20),W=I(W,H,E,T,F[13],2850285829,5),T=I(T,W,H,E,F[2],4243563512,9),E=I(E,T,W,H,F[7],1735328473,14),H=I(H,E,T,W,F[12],2368359562,20),W=J(W,H,E,T,F[5],4294588738,4),T=J(T,W,H,E,F[8],2272392833,11),E=J(E,T,W,H,F[11],1839030562,16),H=J(H,E,T,W,F[14],4259657740,23),W=J(W,H,E,T,F[1],2763975236,4),T=J(T,W,H,E,F[4],1272893353,11),E=J(E,T,W,H,F[7],4139469664,16),H=J(H,E,T,W,F[10],3200236656,23),W=J(W,H,E,T,F[13],681279174,4),T=J(T,W,H,E,F[0],3936430074,11),E=J(E,T,W,H,F[3],3572445317,16),H=J(H,E,T,W,F[6],76029189,23),W=J(W,H,E,T,F[9],3654602809,4),T=J(T,W,H,E,F[12],3873151461,11),E=J(E,T,W,H,F[15],530742520,16),H=J(H,E,T,W,F[2],3299628645,23),W=O(W,H,E,T,F[0],4096336452,6),T=O(T,W,H,E,F[7],1126891415,10),E=O(E,T,W,H,F[14],2878612391,15),H=O(H,E,T,W,F[5],4237533241,21),W=O(W,H,E,T,F[12],1700485571,6),T=O(T,W,H,E,F[3],2399980690,10),E=O(E,T,W,H,F[10],4293915773,15),H=O(H,E,T,W,F[1],2240044497,21),W=O(W,H,E,T,F[8],1873313359,6),T=O(T,W,H,E,F[15],4264355552,10),E=O(E,T,W,H,F[6],2734768916,15),H=O(H,E,T,W,F[13],1309151649,21),W=O(W,H,E,T,F[4],4149444226,6),T=O(T,W,H,E,F[11],3174756917,10),E=O(E,T,W,H,F[2],718787259,15),H=O(H,E,T,W,F[9],3951481745,21),this._a=this._a+W|0,this._b=this._b+H|0,this._c=this._c+E|0,this._d=this._d+T|0},U.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var F=G.allocUnsafe(16);return F.writeInt32LE(this._a,0),F.writeInt32LE(this._b,4),F.writeInt32LE(this._c,8),F.writeInt32LE(this._d,12),F};function X(F,A){return F<<A|F>>>32-A}function K(F,A,W,H,E,T,D){return X(F+(A&W|~A&H)+E+T|0,D)+A|0}function I(F,A,W,H,E,T,D){return X(F+(A&H|W&~H)+E+T|0,D)+A|0}function J(F,A,W,H,E,T,D){return X(F+(A^W^H)+E+T|0,D)+A|0}function O(F,A,W,H,E,T,D){return X(F+(W^(A|~H))+E+T|0,D)+A|0}Q.exports=U}}),g$=z$({"node_modules/ripemd160/index.js"($,Q){var Y=R$("buffer").Buffer,Z=q$(),G=j$(),V=new Array(16),U=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],X=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],K=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],I=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],J=[0,1518500249,1859775393,2400959708,2840853838],O=[1352829926,1548603684,1836072691,2053994217,0];function F(){G.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}Z(F,G),F.prototype._update=function(){for(var C=V,L=0;L<16;++L)C[L]=this._block.readInt32LE(L*4);for(var R=this._a|0,P=this._b|0,z=this._c|0,M=this._d|0,S=this._e|0,v=this._a|0,q=this._b|0,j=this._c|0,k=this._d|0,g=this._e|0,N=0;N<80;N+=1){var x,_;N<16?(x=W(R,P,z,M,S,C[U[N]],J[0],K[N]),_=D(v,q,j,k,g,C[X[N]],O[0],I[N])):N<32?(x=H(R,P,z,M,S,C[U[N]],J[1],K[N]),_=T(v,q,j,k,g,C[X[N]],O[1],I[N])):N<48?(x=E(R,P,z,M,S,C[U[N]],J[2],K[N]),_=E(v,q,j,k,g,C[X[N]],O[2],I[N])):N<64?(x=T(R,P,z,M,S,C[U[N]],J[3],K[N]),_=H(v,q,j,k,g,C[X[N]],O[3],I[N])):(x=D(R,P,z,M,S,C[U[N]],J[4],K[N]),_=W(v,q,j,k,g,C[X[N]],O[4],I[N])),R=S,S=M,M=A(z,10),z=P,P=x,v=g,g=k,k=A(j,10),j=q,q=_}var B=this._b+z+k|0;this._b=this._c+M+g|0,this._c=this._d+S+v|0,this._d=this._e+R+q|0,this._e=this._a+P+j|0,this._a=B},F.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var C=Y.alloc?Y.alloc(20):new Y(20);return C.writeInt32LE(this._a,0),C.writeInt32LE(this._b,4),C.writeInt32LE(this._c,8),C.writeInt32LE(this._d,12),C.writeInt32LE(this._e,16),C};function A(C,L){return C<<L|C>>>32-L}function W(C,L,R,P,z,M,S,v){return A(C+(L^R^P)+M+S|0,v)+z|0}function H(C,L,R,P,z,M,S,v){return A(C+(L&R|~L&P)+M+S|0,v)+z|0}function E(C,L,R,P,z,M,S,v){return A(C+((L|~R)^P)+M+S|0,v)+z|0}function T(C,L,R,P,z,M,S,v){return A(C+(L&P|R&~P)+M+S|0,v)+z|0}function D(C,L,R,P,z,M,S,v){return A(C+(L^(R|~P))+M+S|0,v)+z|0}Q.exports=F}}),N$=z$({"node_modules/sha.js/hash.js"($,Q){var Y=S$().Buffer;function Z(G,V){this._block=Y.alloc(G),this._finalSize=V,this._blockSize=G,this._len=0}Z.prototype.update=function(G,V){typeof G=="string"&&(V=V||"utf8",G=Y.from(G,V));for(var U=this._block,X=this._blockSize,K=G.length,I=this._len,J=0;J<K;){for(var O=I%X,F=Math.min(K-J,X-O),A=0;A<F;A++)U[O+A]=G[J+A];I+=F,J+=F,I%X===0&&this._update(U)}return this._len+=K,this},Z.prototype.digest=function(G){var V=this._len%this._blockSize;this._block[V]=128,this._block.fill(0,V+1),V>=this._finalSize&&(this._update(this._block),this._block.fill(0));var U=this._len*8;if(U<=4294967295)this._block.writeUInt32BE(U,this._blockSize-4);else{var X=(U&4294967295)>>>0,K=(U-X)/4294967296;this._block.writeUInt32BE(K,this._blockSize-8),this._block.writeUInt32BE(X,this._blockSize-4)}this._update(this._block);var I=this._hash();return G?I.toString(G):I},Z.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Q.exports=Z}}),x$=z$({"node_modules/sha.js/sha.js"($,Q){var Y=q$(),Z=N$(),G=S$().Buffer,V=[1518500249,1859775393,-1894007588,-899497514],U=new Array(80);function X(){this.init(),this._w=U,Z.call(this,64,56)}Y(X,Z),X.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function K(O){return O<<5|O>>>27}function I(O){return O<<30|O>>>2}function J(O,F,A,W){return O===0?F&A|~F&W:O===2?F&A|F&W|A&W:F^A^W}X.prototype._update=function(O){for(var F=this._w,A=this._a|0,W=this._b|0,H=this._c|0,E=this._d|0,T=this._e|0,D=0;D<16;++D)F[D]=O.readInt32BE(D*4);for(;D<80;++D)F[D]=F[D-3]^F[D-8]^F[D-14]^F[D-16];for(var C=0;C<80;++C){var L=~~(C/20),R=K(A)+J(L,W,H,E)+T+F[C]+V[L]|0;T=E,E=H,H=I(W),W=A,A=R}this._a=A+this._a|0,this._b=W+this._b|0,this._c=H+this._c|0,this._d=E+this._d|0,this._e=T+this._e|0},X.prototype._hash=function(){var O=G.allocUnsafe(20);return O.writeInt32BE(this._a|0,0),O.writeInt32BE(this._b|0,4),O.writeInt32BE(this._c|0,8),O.writeInt32BE(this._d|0,12),O.writeInt32BE(this._e|0,16),O},Q.exports=X}}),_$=z$({"node_modules/sha.js/sha1.js"($,Q){var Y=q$(),Z=N$(),G=S$().Buffer,V=[1518500249,1859775393,-1894007588,-899497514],U=new Array(80);function X(){this.init(),this._w=U,Z.call(this,64,56)}Y(X,Z),X.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function K(F){return F<<1|F>>>31}function I(F){return F<<5|F>>>27}function J(F){return F<<30|F>>>2}function O(F,A,W,H){return F===0?A&W|~A&H:F===2?A&W|A&H|W&H:A^W^H}X.prototype._update=function(F){for(var A=this._w,W=this._a|0,H=this._b|0,E=this._c|0,T=this._d|0,D=this._e|0,C=0;C<16;++C)A[C]=F.readInt32BE(C*4);for(;C<80;++C)A[C]=K(A[C-3]^A[C-8]^A[C-14]^A[C-16]);for(var L=0;L<80;++L){var R=~~(L/20),P=I(W)+O(R,H,E,T)+D+A[L]+V[R]|0;D=T,T=E,E=J(H),H=W,W=P}this._a=W+this._a|0,this._b=H+this._b|0,this._c=E+this._c|0,this._d=T+this._d|0,this._e=D+this._e|0},X.prototype._hash=function(){var F=G.allocUnsafe(20);return F.writeInt32BE(this._a|0,0),F.writeInt32BE(this._b|0,4),F.writeInt32BE(this._c|0,8),F.writeInt32BE(this._d|0,12),F.writeInt32BE(this._e|0,16),F},Q.exports=X}}),B$=z$({"node_modules/sha.js/sha256.js"($,Q){var Y=q$(),Z=N$(),G=S$().Buffer,V=[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],U=new Array(64);function X(){this.init(),this._w=U,Z.call(this,64,56)}Y(X,Z),X.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 K(W,H,E){return E^W&(H^E)}function I(W,H,E){return W&H|E&(W|H)}function J(W){return(W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10)}function O(W){return(W>>>6|W<<26)^(W>>>11|W<<21)^(W>>>25|W<<7)}function F(W){return(W>>>7|W<<25)^(W>>>18|W<<14)^W>>>3}function A(W){return(W>>>17|W<<15)^(W>>>19|W<<13)^W>>>10}X.prototype._update=function(W){for(var H=this._w,E=this._a|0,T=this._b|0,D=this._c|0,C=this._d|0,L=this._e|0,R=this._f|0,P=this._g|0,z=this._h|0,M=0;M<16;++M)H[M]=W.readInt32BE(M*4);for(;M<64;++M)H[M]=A(H[M-2])+H[M-7]+F(H[M-15])+H[M-16]|0;for(var S=0;S<64;++S){var v=z+O(L)+K(L,R,P)+V[S]+H[S]|0,q=J(E)+I(E,T,D)|0;z=P,P=R,R=L,L=C+v|0,C=D,D=T,T=E,E=v+q|0}this._a=E+this._a|0,this._b=T+this._b|0,this._c=D+this._c|0,this._d=C+this._d|0,this._e=L+this._e|0,this._f=R+this._f|0,this._g=P+this._g|0,this._h=z+this._h|0},X.prototype._hash=function(){var W=G.allocUnsafe(32);return W.writeInt32BE(this._a,0),W.writeInt32BE(this._b,4),W.writeInt32BE(this._c,8),W.writeInt32BE(this._d,12),W.writeInt32BE(this._e,16),W.writeInt32BE(this._f,20),W.writeInt32BE(this._g,24),W.writeInt32BE(this._h,28),W},Q.exports=X}}),y$=z$({"node_modules/sha.js/sha224.js"($,Q){var Y=q$(),Z=B$(),G=N$(),V=S$().Buffer,U=new Array(64);function X(){this.init(),this._w=U,G.call(this,64,56)}Y(X,Z),X.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},X.prototype._hash=function(){var K=V.allocUnsafe(28);return K.writeInt32BE(this._a,0),K.writeInt32BE(this._b,4),K.writeInt32BE(this._c,8),K.writeInt32BE(this._d,12),K.writeInt32BE(this._e,16),K.writeInt32BE(this._f,20),K.writeInt32BE(this._g,24),K},Q.exports=X}}),w$=z$({"node_modules/sha.js/sha512.js"($,Q){var Y=q$(),Z=N$(),G=S$().Buffer,V=[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],U=new Array(160);function X(){this.init(),this._w=U,Z.call(this,128,112)}Y(X,Z),X.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 K(T,D,C){return C^T&(D^C)}function I(T,D,C){return T&D|C&(T|D)}function J(T,D){return(T>>>28|D<<4)^(D>>>2|T<<30)^(D>>>7|T<<25)}function O(T,D){return(T>>>14|D<<18)^(T>>>18|D<<14)^(D>>>9|T<<23)}function F(T,D){return(T>>>1|D<<31)^(T>>>8|D<<24)^T>>>7}function A(T,D){return(T>>>1|D<<31)^(T>>>8|D<<24)^(T>>>7|D<<25)}function W(T,D){return(T>>>19|D<<13)^(D>>>29|T<<3)^T>>>6}function H(T,D){return(T>>>19|D<<13)^(D>>>29|T<<3)^(T>>>6|D<<26)}function E(T,D){return T>>>0<D>>>0?1:0}X.prototype._update=function(T){for(var D=this._w,C=this._ah|0,L=this._bh|0,R=this._ch|0,P=this._dh|0,z=this._eh|0,M=this._fh|0,S=this._gh|0,v=this._hh|0,q=this._al|0,j=this._bl|0,k=this._cl|0,g=this._dl|0,N=this._el|0,x=this._fl|0,_=this._gl|0,B=this._hl|0,y=0;y<32;y+=2)D[y]=T.readInt32BE(y*4),D[y+1]=T.readInt32BE(y*4+4);for(;y<160;y+=2){var w=D[y-30],f=D[y-30+1],p=F(w,f),c=A(f,w);w=D[y-4],f=D[y-4+1];var h=W(w,f),d=H(f,w),b=D[y-14],l=D[y-14+1],o=D[y-32],u=D[y-32+1],n=c+l|0,s=p+b+E(n,c)|0;n=n+d|0,s=s+h+E(n,d)|0,n=n+u|0,s=s+o+E(n,u)|0,D[y]=s,D[y+1]=n}for(var t=0;t<160;t+=2){s=D[t],n=D[t+1];var m=I(C,L,R),a=I(q,j,k),r=J(C,q),e=J(q,C),i=O(z,N),$0=O(N,z),Q0=V[t],Y0=V[t+1],Z0=K(z,M,S),G0=K(N,x,_),V0=B+$0|0,U0=v+i+E(V0,B)|0;V0=V0+G0|0,U0=U0+Z0+E(V0,G0)|0,V0=V0+Y0|0,U0=U0+Q0+E(V0,Y0)|0,V0=V0+n|0,U0=U0+s+E(V0,n)|0;var X0=e+a|0,K0=r+m+E(X0,e)|0;v=S,B=_,S=M,_=x,M=z,x=N,N=g+V0|0,z=P+U0+E(N,g)|0,P=R,g=k,R=L,k=j,L=C,j=q,q=V0+X0|0,C=U0+K0+E(q,V0)|0}this._al=this._al+q|0,this._bl=this._bl+j|0,this._cl=this._cl+k|0,this._dl=this._dl+g|0,this._el=this._el+N|0,this._fl=this._fl+x|0,this._gl=this._gl+_|0,this._hl=this._hl+B|0,this._ah=this._ah+C+E(this._al,q)|0,this._bh=this._bh+L+E(this._bl,j)|0,this._ch=this._ch+R+E(this._cl,k)|0,this._dh=this._dh+P+E(this._dl,g)|0,this._eh=this._eh+z+E(this._el,N)|0,this._fh=this._fh+M+E(this._fl,x)|0,this._gh=this._gh+S+E(this._gl,_)|0,this._hh=this._hh+v+E(this._hl,B)|0},X.prototype._hash=function(){var T=G.allocUnsafe(64);function D(C,L,R){T.writeInt32BE(C,R),T.writeInt32BE(L,R+4)}return D(this._ah,this._al,0),D(this._bh,this._bl,8),D(this._ch,this._cl,16),D(this._dh,this._dl,24),D(this._eh,this._el,32),D(this._fh,this._fl,40),D(this._gh,this._gl,48),D(this._hh,this._hl,56),T},Q.exports=X}}),f$=z$({"node_modules/sha.js/sha384.js"($,Q){var Y=q$(),Z=w$(),G=N$(),V=S$().Buffer,U=new Array(160);function X(){this.init(),this._w=U,G.call(this,128,112)}Y(X,Z),X.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},X.prototype._hash=function(){var K=V.allocUnsafe(48);function I(J,O,F){K.writeInt32BE(J,F),K.writeInt32BE(O,F+4)}return I(this._ah,this._al,0),I(this._bh,this._bl,8),I(this._ch,this._cl,16),I(this._dh,this._dl,24),I(this._eh,this._el,32),I(this._fh,this._fl,40),K},Q.exports=X}}),p$=z$({"node_modules/sha.js/index.js"(Y,Q){var Y=Q.exports=function(Z){Z=Z.toLowerCase();var G=Y[Z];if(!G)throw new Error(Z+" is not supported (we accept pull requests)");return new G};Y.sha=x$(),Y.sha1=_$(),Y.sha224=y$(),Y.sha256=B$(),Y.sha384=f$(),Y.sha512=w$()}}),c$=import.meta.require("node:stream"),h$=z$({"node_modules/cipher-base/index.js"($,Q){var Y=S$().Buffer,Z=c$.Transform,G=R$("string_decoder").StringDecoder,V=q$();function U(X){Z.call(this),this.hashMode=typeof X=="string",this.hashMode?this[X]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}V(U,Z),U.prototype.update=function(X,K,I){typeof X=="string"&&(X=Y.from(X,K));var J=this._update(X);return this.hashMode?this:(I&&(J=this._toString(J,I)),J)},U.prototype.setAutoPadding=function(){},U.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},U.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},U.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},U.prototype._transform=function(X,K,I){var J;try{this.hashMode?this._update(X):this.push(this._update(X))}catch(O){J=O}finally{I(J)}},U.prototype._flush=function(X){var K;try{this.push(this.__final())}catch(I){K=I}X(K)},U.prototype._finalOrDigest=function(X){var K=this.__final()||Y.alloc(0);return X&&(K=this._toString(K,X,!0)),K},U.prototype._toString=function(X,K,I){if(this._decoder||(this._decoder=new G(K),this._encoding=K),this._encoding!==K)throw new Error("can't switch encodings");var J=this._decoder.write(X);return I&&(J+=this._decoder.end()),J},Q.exports=U}}),d$=z$({"node_modules/create-hash/browser.js"($,Q){const{Transform:Y}=c$,Z=function U(X,K){this._options=K,this._hasher=new oY(X,K),this._finalized=!1};Z.prototype=Object.create(Y.prototype),Z.prototype.update=function U(X,K){return this._checkFinalized(),this._hasher.update(X,K),this},Z.prototype.digest=function U(X,K){return this._checkFinalized(),this._finalized=!0,this._hasher.digest(X,K)},Z.prototype._checkFinalized=function U(){if(this._finalized){var X=new Error("Digest already called");throw X.code="ERR_CRYPTO_HASH_FINALIZED",X}},Z.prototype.copy=function U(){const X=Object.create(Z.prototype);return X._options=this._options,X._hasher=this._hasher.copy(),X._finalized=this._finalized,X};const G={__proto__:Y.prototype,...Z.prototype,_transform(U,X,K){this.update(U,X),K&&K()},_flush(U){this.push(this.digest()),U()}},V=["_events","_eventsCount","_final","_maxListeners","_maxListeners","_read","_undestroy","_writableState","_write","_writev","addListener","asIndexedPairs","closed","compose","constructor","cork","destroy","destroyed","drop","emit","end","errored","eventNames","every","filter","find","flatMap","forEach","getMaxListeners","hasOwnProperty","isPaused","isPrototypeOf","iterator","listenerCount","listeners","map","off","on","once","pause","pipe","prependListener","prependOnceListener","propertyIsEnumerable","push","rawListeners","read","readable","readableAborted","readableBuffer","readableDidRead","readableEncoding","readableEnded","readableFlowing","readableHighWaterMark","readableLength","readableObjectMode","reduce","removeAllListeners","removeListener","resume","setDefaultEncoding","setEncoding","setMaxListeners","some","take","toArray","toLocaleString","toString","uncork","unpipe","unshift","valueOf","wrap","writable","writableBuffer","writableCorked","writableEnded","writableFinished","writableHighWaterMark","writableLength","writableNeedDrain","writableObjectMode","write"];for(let U of V)Object.defineProperty(Z.prototype,U,{get(){return Object.setPrototypeOf(this,G),Y.call(this,this._options),this[U]},enumerable:!1,configurable:!0});Q.exports=function U(X){return new Z(X)},Q.exports.createHash=Q.exports,Q.exports.Hash=Z}}),b$=z$({"node_modules/create-hmac/legacy.js"($,Q){var Y=q$(),Z=S$().Buffer,G=h$(),V=Z.alloc(128),U=64;function X(K,I){G.call(this,"digest"),typeof I=="string"&&(I=Z.from(I)),this._alg=K,this._key=I,I.length>U?I=K(I):I.length<U&&(I=Z.concat([I,V],U));for(var J=this._ipad=Z.allocUnsafe(U),O=this._opad=Z.allocUnsafe(U),F=0;F<U;F++)J[F]=I[F]^54,O[F]=I[F]^92;this._hash=[J]}Y(X,G),X.prototype._update=function(K){this._hash.push(K)},X.prototype._final=function(){var K=this._alg(Z.concat(this._hash));return this._alg(Z.concat([this._opad,K]))},Q.exports=X}}),l$=z$({"node_modules/create-hash/md5.js"($,Q){var Y=k$();Q.exports=function(Z){return new Y().update(Z).digest()}}}),o$=z$({"node_modules/create-hmac/browser.js"($,Q){var Y=q$(),Z=b$(),G=h$(),V=S$().Buffer,U=l$(),X=g$(),K=p$(),I=V.alloc(128);function J(O,F){G.call(this,"digest"),typeof F=="string"&&(F=V.from(F));var A=O==="sha512"||O==="sha384"?128:64;if(this._alg=O,this._key=F,F.length>A){var W=O==="rmd160"?new X:K(O);F=W.update(F).digest()}else F.length<A&&(F=V.concat([F,I],A));for(var H=this._ipad=V.allocUnsafe(A),E=this._opad=V.allocUnsafe(A),T=0;T<A;T++)H[T]=F[T]^54,E[T]=F[T]^92;this._hash=O==="rmd160"?new X:K(O),this._hash.update(H)}Y(J,G),J.prototype._update=function(O){this._hash.update(O)},J.prototype._final=function(){var O=this._hash.digest(),F=this._alg==="rmd160"?new X:K(this._alg);return F.update(this._opad).update(O).digest()},Q.exports=function(O,F){return O=O.toLowerCase(),O==="rmd160"||O==="ripemd160"?new J("rmd160",F):O==="md5"?new Z(U,F):new J(O,F)}}}),u$=z$({"node_modules/browserify-sign/browser/algorithms.json"($,Q){Q.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}}}),n$=z$({"node_modules/browserify-sign/algos.js"($,Q){Q.exports=u$()}}),s$=z$({"node_modules/pbkdf2/lib/precondition.js"($,Q){var Y=Math.pow(2,30)-1;Q.exports=function(Z,G){if(typeof Z!="number")throw new TypeError("Iterations not a number");if(Z<0)throw new TypeError("Bad iterations");if(typeof G!="number")throw new TypeError("Key length not a number");if(G<0||G>Y||G!==G)throw new TypeError("Bad key length")}}}),t$=z$({"node_modules/pbkdf2/lib/default-encoding.js"($,Q){var Y;global.process&&global.process.browser?Y="utf-8":global.process&&global.process.version?(Z=parseInt(process.version.split(".")[0].slice(1),10),Y=Z>=6?"utf-8":"binary"):Y="utf-8";var Z;Q.exports=Y}}),m$=z$({"node_modules/pbkdf2/lib/to-buffer.js"($,Q){var Y=S$().Buffer;Q.exports=function(Z,G,V){if(Y.isBuffer(Z))return Z;if(typeof Z=="string")return Y.from(Z,G);if(ArrayBuffer.isView(Z))return Y.from(Z.buffer);throw new TypeError(V+" must be a string, a Buffer, a typed array or a DataView")}}}),a$=z$({"node_modules/pbkdf2/lib/sync-browser.js"($,Q){var Y=l$(),Z=g$(),G=p$(),V=S$().Buffer,U=s$(),X=t$(),K=m$(),I=V.alloc(128),J={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function O(W,H,E){var T=F(W),D=W==="sha512"||W==="sha384"?128:64;H.length>D?H=T(H):H.length<D&&(H=V.concat([H,I],D));for(var C=V.allocUnsafe(D+J[W]),L=V.allocUnsafe(D+J[W]),R=0;R<D;R++)C[R]=H[R]^54,L[R]=H[R]^92;var P=V.allocUnsafe(D+E+4);C.copy(P,0,0,D),this.ipad1=P,this.ipad2=C,this.opad=L,this.alg=W,this.blocksize=D,this.hash=T,this.size=J[W]}O.prototype.run=function(W,H){W.copy(H,this.blocksize);var E=this.hash(H);return E.copy(this.opad,this.blocksize),this.hash(this.opad)};function F(W){function H(T){return G(W).update(T).digest()}function E(T){return new Z().update(T).digest()}return W==="rmd160"||W==="ripemd160"?E:W==="md5"?Y:H}function A(W,H,E,T,D){U(E,T),W=K(W,X,"Password"),H=K(H,X,"Salt"),D=D||"sha1";var C=new O(D,W,H.length),L=V.allocUnsafe(T),R=V.allocUnsafe(H.length+4);H.copy(R,0,0,H.length);for(var P=0,z=J[D],M=Math.ceil(T/z),S=1;S<=M;S++){R.writeUInt32BE(S,H.length);for(var v=C.run(R,C.ipad1),q=v,j=1;j<E;j++){q=C.run(q,C.ipad2);for(var k=0;k<z;k++)v[k]^=q[k]}v.copy(L,P),P+=z}return L}Q.exports=A}}),r$=z$({"node_modules/pbkdf2/lib/async.js"($,Q){var Y=S$().Buffer,Z=s$(),G=t$(),V=a$(),U=m$(),X,K=P$.subtle,I={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},J=[];function O(E){if(global.process&&!global.process.browser||!K||!K.importKey||!K.deriveBits)return Promise.resolve(!1);if(J[E]!==void 0)return J[E];X=X||Y.alloc(8);var T=W(X,X,10,128,E).then(function(){return!0}).catch(function(){return!1});return J[E]=T,T}var F;function A(){return F||(global.process&&global.process.nextTick?F=global.process.nextTick:global.queueMicrotask?F=global.queueMicrotask:global.setImmediate?F=global.setImmediate:F=global.setTimeout,F)}function W(E,T,D,C,L){return K.importKey("raw",E,{name:"PBKDF2"},!1,["deriveBits"]).then(function(R){return K.deriveBits({name:"PBKDF2",salt:T,iterations:D,hash:{name:L}},R,C<<3)}).then(function(R){return Y.from(R)})}function H(E,T){E.then(function(D){A()(function(){T(null,D)})},function(D){A()(function(){T(D)})})}Q.exports=function(E,T,D,C,L,R){typeof L=="function"&&(R=L,L=void 0),L=L||"sha1";var P=I[L.toLowerCase()];if(!P||typeof global.Promise!="function"){A()(function(){var z;try{z=V(E,T,D,C,L)}catch(M){return R(M)}R(null,z)});return}if(Z(D,C),E=U(E,G,"Password"),T=U(T,G,"Salt"),typeof R!="function")throw new Error("No callback provided to pbkdf2");H(O(P).then(function(z){return z?W(E,T,D,C,P):V(E,T,D,C,L)}),R)}}}),e$=z$({"node_modules/pbkdf2/browser.js"($){$.pbkdf2=r$(),$.pbkdf2Sync=a$()}}),i$=z$({"node_modules/des.js/lib/des/utils.js"($){$.readUInt32BE=function(G,V){var U=G[0+V]<<24|G[1+V]<<16|G[2+V]<<8|G[3+V];return U>>>0},$.writeUInt32BE=function(G,V,U){G[0+U]=V>>>24,G[1+U]=V>>>16&255,G[2+U]=V>>>8&255,G[3+U]=V&255},$.ip=function(G,V,U,X){for(var K=0,I=0,J=6;J>=0;J-=2){for(var O=0;O<=24;O+=8)K<<=1,K|=V>>>O+J&1;for(var O=0;O<=24;O+=8)K<<=1,K|=G>>>O+J&1}for(var J=6;J>=0;J-=2){for(var O=1;O<=25;O+=8)I<<=1,I|=V>>>O+J&1;for(var O=1;O<=25;O+=8)I<<=1,I|=G>>>O+J&1}U[X+0]=K>>>0,U[X+1]=I>>>0},$.rip=function(G,V,U,X){for(var K=0,I=0,J=0;J<4;J++)for(var O=24;O>=0;O-=8)K<<=1,K|=V>>>O+J&1,K<<=1,K|=G>>>O+J&1;for(var J=4;J<8;J++)for(var O=24;O>=0;O-=8)I<<=1,I|=V>>>O+J&1,I<<=1,I|=G>>>O+J&1;U[X+0]=K>>>0,U[X+1]=I>>>0},$.pc1=function(G,V,U,X){for(var K=0,I=0,J=7;J>=5;J--){for(var O=0;O<=24;O+=8)K<<=1,K|=V>>O+J&1;for(var O=0;O<=24;O+=8)K<<=1,K|=G>>O+J&1}for(var O=0;O<=24;O+=8)K<<=1,K|=V>>O+J&1;for(var J=1;J<=3;J++){for(var O=0;O<=24;O+=8)I<<=1,I|=V>>O+J&1;for(var O=0;O<=24;O+=8)I<<=1,I|=G>>O+J&1}for(var O=0;O<=24;O+=8)I<<=1,I|=G>>O+J&1;U[X+0]=K>>>0,U[X+1]=I>>>0},$.r28shl=function(G,V){return G<<V&268435455|G>>>28-V};var Q=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];$.pc2=function(G,V,U,X){for(var K=0,I=0,J=Q.length>>>1,O=0;O<J;O++)K<<=1,K|=G>>>Q[O]&1;for(var O=J;O<Q.length;O++)I<<=1,I|=V>>>Q[O]&1;U[X+0]=K>>>0,U[X+1]=I>>>0},$.expand=function(G,V,U){var X=0,K=0;X=(G&1)<<5|G>>>27;for(var I=23;I>=15;I-=4)X<<=6,X|=G>>>I&63;for(var I=11;I>=3;I-=4)K|=G>>>I&63,K<<=6;K|=(G&31)<<1|G>>>31,V[U+0]=X>>>0,V[U+1]=K>>>0};var Y=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];$.substitute=function(G,V){for(var U=0,X=0;X<4;X++){var K=G>>>18-X*6&63,I=Y[X*64+K];U<<=4,U|=I}for(var X=0;X<4;X++){var K=V>>>18-X*6&63,I=Y[256+X*64+K];U<<=4,U|=I}return U>>>0};var Z=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];$.permute=function(G){for(var V=0,U=0;U<Z.length;U++)V<<=1,V|=G>>>Z[U]&1;return V>>>0},$.padSplit=function(G,V,U){for(var X=G.toString(2);X.length<V;)X="0"+X;for(var K=[],I=0;I<V;I+=U)K.push(X.slice(I,I+U));return K.join(" ")}}}),$Q=z$({"node_modules/minimalistic-assert/index.js"($,Q){Q.exports=Y;function Y(Z,G){if(!Z)throw new Error(G||"Assertion failed")}Y.equal=function(Z,G,V){if(Z!=G)throw new Error(V||"Assertion failed: "+Z+" != "+G)}}}),QQ=z$({"node_modules/des.js/lib/des/cipher.js"($,Q){var Y=$Q();function Z(G){this.options=G,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Q.exports=Z,Z.prototype._init=function(){},Z.prototype.update=function(G){return G.length===0?[]:this.type==="decrypt"?this._updateDecrypt(G):this._updateEncrypt(G)},Z.prototype._buffer=function(G,V){for(var U=Math.min(this.buffer.length-this.bufferOff,G.length-V),X=0;X<U;X++)this.buffer[this.bufferOff+X]=G[V+X];return this.bufferOff+=U,U},Z.prototype._flushBuffer=function(G,V){return this._update(this.buffer,0,G,V),this.bufferOff=0,this.blockSize},Z.prototype._updateEncrypt=function(G){var V=0,U=0,X=(this.bufferOff+G.length)/this.blockSize|0,K=new Array(X*this.blockSize);this.bufferOff!==0&&(V+=this._buffer(G,V),this.bufferOff===this.buffer.length&&(U+=this._flushBuffer(K,U)));for(var I=G.length-(G.length-V)%this.blockSize;V<I;V+=this.blockSize)this._update(G,V,K,U),U+=this.blockSize;for(;V<G.length;V++,this.bufferOff++)this.buffer[this.bufferOff]=G[V];return K},Z.prototype._updateDecrypt=function(G){for(var V=0,U=0,X=Math.ceil((this.bufferOff+G.length)/this.blockSize)-1,K=new Array(X*this.blockSize);X>0;X--)V+=this._buffer(G,V),U+=this._flushBuffer(K,U);return V+=this._buffer(G,V),K},Z.prototype.final=function(G){var V;G&&(V=this.update(G));var U;return this.type==="encrypt"?U=this._finalEncrypt():U=this._finalDecrypt(),V?V.concat(U):U},Z.prototype._pad=function(G,V){if(V===0)return!1;for(;V<G.length;)G[V++]=0;return!0},Z.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var G=new Array(this.blockSize);return this._update(this.buffer,0,G,0),G},Z.prototype._unpad=function(G){return G},Z.prototype._finalDecrypt=function(){Y.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var G=new Array(this.blockSize);return this._flushBuffer(G,0),this._unpad(G)}}}),YQ=z$({"node_modules/des.js/lib/des/des.js"($,Q){var Y=$Q(),Z=q$(),G=i$(),V=QQ();function U(){this.tmp=new Array(2),this.keys=null}function X(I){V.call(this,I);var J=new U;this._desState=J,this.deriveKeys(J,I.key)}Z(X,V),Q.exports=X,X.create=function(I){return new X(I)};var K=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];X.prototype.deriveKeys=function(I,J){I.keys=new Array(32),Y.equal(J.length,this.blockSize,"Invalid key length");var O=G.readUInt32BE(J,0),F=G.readUInt32BE(J,4);G.pc1(O,F,I.tmp,0),O=I.tmp[0],F=I.tmp[1];for(var A=0;A<I.keys.length;A+=2){var W=K[A>>>1];O=G.r28shl(O,W),F=G.r28shl(F,W),G.pc2(O,F,I.keys,A)}},X.prototype._update=function(I,J,O,F){var A=this._desState,W=G.readUInt32BE(I,J),H=G.readUInt32BE(I,J+4);G.ip(W,H,A.tmp,0),W=A.tmp[0],H=A.tmp[1],this.type==="encrypt"?this._encrypt(A,W,H,A.tmp,0):this._decrypt(A,W,H,A.tmp,0),W=A.tmp[0],H=A.tmp[1],G.writeUInt32BE(O,W,F),G.writeUInt32BE(O,H,F+4)},X.prototype._pad=function(I,J){for(var O=I.length-J,F=J;F<I.length;F++)I[F]=O;return!0},X.prototype._unpad=function(I){for(var J=I[I.length-1],O=I.length-J;O<I.length;O++)Y.equal(I[O],J);return I.slice(0,I.length-J)},X.prototype._encrypt=function(I,J,O,F,A){for(var W=J,H=O,E=0;E<I.keys.length;E+=2){var T=I.keys[E],D=I.keys[E+1];G.expand(H,I.tmp,0),T^=I.tmp[0],D^=I.tmp[1];var C=G.substitute(T,D),L=G.permute(C),R=H;H=(W^L)>>>0,W=R}G.rip(H,W,F,A)},X.prototype._decrypt=function(I,J,O,F,A){for(var W=O,H=J,E=I.keys.length-2;E>=0;E-=2){var T=I.keys[E],D=I.keys[E+1];G.expand(W,I.tmp,0),T^=I.tmp[0],D^=I.tmp[1];var C=G.substitute(T,D),L=G.permute(C),R=W;W=(H^L)>>>0,H=R}G.rip(W,H,F,A)}}}),ZQ=z$({"node_modules/des.js/lib/des/cbc.js"($){var Q=$Q(),Y=q$(),Z={};function G(U){Q.equal(U.length,8,"Invalid IV length"),this.iv=new Array(8);for(var X=0;X<this.iv.length;X++)this.iv[X]=U[X]}function V(U){function X(O){U.call(this,O),this._cbcInit()}Y(X,U);for(var K=Object.keys(Z),I=0;I<K.length;I++){var J=K[I];X.prototype[J]=Z[J]}return X.create=function(O){return new X(O)},X}$.instantiate=V,Z._cbcInit=function(){var U=new G(this.options.iv);this._cbcState=U},Z._update=function(U,X,K,I){var J=this._cbcState,O=this.constructor.super_.prototype,F=J.iv;if(this.type==="encrypt"){for(var A=0;A<this.blockSize;A++)F[A]^=U[X+A];O._update.call(this,F,0,K,I);for(var A=0;A<this.blockSize;A++)F[A]=K[I+A]}else{O._update.call(this,U,X,K,I);for(var A=0;A<this.blockSize;A++)K[I+A]^=F[A];for(var A=0;A<this.blockSize;A++)F[A]=U[X+A]}}}}),GQ=z$({"node_modules/des.js/lib/des/ede.js"($,Q){var Y=$Q(),Z=q$(),G=QQ(),V=YQ();function U(K,I){Y.equal(I.length,24,"Invalid key length");var J=I.slice(0,8),O=I.slice(8,16),F=I.slice(16,24);K==="encrypt"?this.ciphers=[V.create({type:"encrypt",key:J}),V.create({type:"decrypt",key:O}),V.create({type:"encrypt",key:F})]:this.ciphers=[V.create({type:"decrypt",key:F}),V.create({type:"encrypt",key:O}),V.create({type:"decrypt",key:J})]}function X(K){G.call(this,K);var I=new U(this.type,this.options.key);this._edeState=I}Z(X,G),Q.exports=X,X.create=function(K){return new X(K)},X.prototype._update=function(K,I,J,O){var F=this._edeState;F.ciphers[0]._update(K,I,J,O),F.ciphers[1]._update(J,O,J,O),F.ciphers[2]._update(J,O,J,O)},X.prototype._pad=V.prototype._pad,X.prototype._unpad=V.prototype._unpad}}),VQ=z$({"node_modules/des.js/lib/des.js"($){$.utils=i$(),$.Cipher=QQ(),$.DES=YQ(),$.CBC=ZQ(),$.EDE=GQ()}}),UQ=z$({"node_modules/browserify-des/index.js"($,Q){var Y=h$(),Z=VQ(),G=q$(),V=S$().Buffer,U={"des-ede3-cbc":Z.CBC.instantiate(Z.EDE),"des-ede3":Z.EDE,"des-ede-cbc":Z.CBC.instantiate(Z.EDE),"des-ede":Z.EDE,"des-cbc":Z.CBC.instantiate(Z.DES),"des-ecb":Z.DES};U.des=U["des-cbc"],U.des3=U["des-ede3-cbc"],Q.exports=X,G(X,Y);function X(K){Y.call(this);var I=K.mode.toLowerCase(),J=U[I],O;K.decrypt?O="decrypt":O="encrypt";var F=K.key;V.isBuffer(F)||(F=V.from(F)),(I==="des-ede"||I==="des-ede-cbc")&&(F=V.concat([F,F.slice(0,8)]));var A=K.iv;V.isBuffer(A)||(A=V.from(A)),this._des=J.create({key:F,iv:A,type:O})}X.prototype._update=function(K){return V.from(this._des.update(K))},X.prototype._final=function(){return V.from(this._des.final())}}}),XQ=z$({"node_modules/browserify-aes/modes/ecb.js"($){$.encrypt=function(Q,Y){return Q._cipher.encryptBlock(Y)},$.decrypt=function(Q,Y){return Q._cipher.decryptBlock(Y)}}}),KQ=z$({"node_modules/buffer-xor/index.js"($,Q){Q.exports=function(Y,Z){for(var G=Math.min(Y.length,Z.length),V=new Buffer(G),U=0;U<G;++U)V[U]=Y[U]^Z[U];return V}}}),IQ=z$({"node_modules/browserify-aes/modes/cbc.js"($){var Q=KQ();$.encrypt=function(Y,Z){var G=Q(Z,Y._prev);return Y._prev=Y._cipher.encryptBlock(G),Y._prev},$.decrypt=function(Y,Z){var G=Y._prev;Y._prev=Z;var V=Y._cipher.decryptBlock(Z);return Q(V,G)}}}),JQ=z$({"node_modules/browserify-aes/modes/cfb.js"($){var Q=S$().Buffer,Y=KQ();function Z(G,V,U){var X=V.length,K=Y(V,G._cache);return G._cache=G._cache.slice(X),G._prev=Q.concat([G._prev,U?V:K]),K}$.encrypt=function(G,V,U){for(var X=Q.allocUnsafe(0),K;V.length;)if(G._cache.length===0&&(G._cache=G._cipher.encryptBlock(G._prev),G._prev=Q.allocUnsafe(0)),G._cache.length<=V.length)K=G._cache.length,X=Q.concat([X,Z(G,V.slice(0,K),U)]),V=V.slice(K);else{X=Q.concat([X,Z(G,V,U)]);break}return X}}}),OQ=z$({"node_modules/browserify-aes/modes/cfb8.js"($){var Q=S$().Buffer;function Y(Z,G,V){var U=Z._cipher.encryptBlock(Z._prev),X=U[0]^G;return Z._prev=Q.concat([Z._prev.slice(1),Q.from([V?G:X])]),X}$.encrypt=function(Z,G,V){for(var U=G.length,X=Q.allocUnsafe(U),K=-1;++K<U;)X[K]=Y(Z,G[K],V);return X}}}),FQ=z$({"node_modules/browserify-aes/modes/cfb1.js"($){var Q=S$().Buffer;function Y(G,V,U){for(var X,K=-1,I=8,J=0,O,F;++K<I;)X=G._cipher.encryptBlock(G._prev),O=V&1<<7-K?128:0,F=X[0]^O,J+=(F&128)>>K%8,G._prev=Z(G._prev,U?O:F);return J}function Z(G,V){var U=G.length,X=-1,K=Q.allocUnsafe(G.length);for(G=Q.concat([G,Q.from([V])]);++X<U;)K[X]=G[X]<<1|G[X+1]>>7;return K}$.encrypt=function(G,V,U){for(var X=V.length,K=Q.allocUnsafe(X),I=-1;++I<X;)K[I]=Y(G,V[I],U);return K}}}),AQ=z$({"node_modules/browserify-aes/modes/ofb.js"($){var Q=KQ();function Y(Z){return Z._prev=Z._cipher.encryptBlock(Z._prev),Z._prev}$.encrypt=function(Z,G){for(;Z._cache.length<G.length;)Z._cache=Buffer.concat([Z._cache,Y(Z)]);var V=Z._cache.slice(0,G.length);return Z._cache=Z._cache.slice(G.length),Q(G,V)}}}),WQ=z$({"node_modules/browserify-aes/incr32.js"($,Q){function Y(Z){for(var G=Z.length,V;G--;)if(V=Z.readUInt8(G),V===255)Z.writeUInt8(0,G);else{V++,Z.writeUInt8(V,G);break}}Q.exports=Y}}),A$=z$({"node_modules/browserify-aes/modes/ctr.js"($){var Q=KQ(),Y=S$().Buffer,Z=WQ();function G(U){var X=U._cipher.encryptBlockRaw(U._prev);return Z(U._prev),X}var V=16;$.encrypt=function(U,X){var K=Math.ceil(X.length/V),I=U._cache.length;U._cache=Y.concat([U._cache,Y.allocUnsafe(K*V)]);for(var J=0;J<K;J++){var O=G(U),F=I+J*V;U._cache.writeUInt32BE(O[0],F+0),U._cache.writeUInt32BE(O[1],F+4),U._cache.writeUInt32BE(O[2],F+8),U._cache.writeUInt32BE(O[3],F+12)}var A=U._cache.slice(0,X.length);return U._cache=U._cache.slice(X.length),Q(X,A)}}}),HQ=z$({"node_modules/browserify-aes/modes/list.json"($,Q){Q.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}}}),EQ=z$({"node_modules/browserify-aes/modes/index.js"($,Q){var Y={ECB:XQ(),CBC:IQ(),CFB:JQ(),CFB8:OQ(),CFB1:FQ(),OFB:AQ(),CTR:A$(),GCM:A$()},Z=HQ();for(G in Z)Z[G].module=Y[Z[G].mode];var G;Q.exports=Z}}),TQ=z$({"node_modules/browserify-aes/aes.js"($,Q){var Y=S$().Buffer;function Z(I){Y.isBuffer(I)||(I=Y.from(I));for(var J=I.length/4|0,O=new Array(J),F=0;F<J;F++)O[F]=I.readUInt32BE(F*4);return O}function G(I){for(var J=0;J<I.length;I++)I[J]=0}function V(I,J,O,F,A){for(var W=O[0],H=O[1],E=O[2],T=O[3],D=I[0]^J[0],C=I[1]^J[1],L=I[2]^J[2],R=I[3]^J[3],P,z,M,S,v=4,q=1;q<A;q++)P=W[D>>>24]^H[C>>>16&255]^E[L>>>8&255]^T[R&255]^J[v++],z=W[C>>>24]^H[L>>>16&255]^E[R>>>8&255]^T[D&255]^J[v++],M=W[L>>>24]^H[R>>>16&255]^E[D>>>8&255]^T[C&255]^J[v++],S=W[R>>>24]^H[D>>>16&255]^E[C>>>8&255]^T[L&255]^J[v++],D=P,C=z,L=M,R=S;return P=(F[D>>>24]<<24|F[C>>>16&255]<<16|F[L>>>8&255]<<8|F[R&255])^J[v++],z=(F[C>>>24]<<24|F[L>>>16&255]<<16|F[R>>>8&255]<<8|F[D&255])^J[v++],M=(F[L>>>24]<<24|F[R>>>16&255]<<16|F[D>>>8&255]<<8|F[C&255])^J[v++],S=(F[R>>>24]<<24|F[D>>>16&255]<<16|F[C>>>8&255]<<8|F[L&255])^J[v++],P=P>>>0,z=z>>>0,M=M>>>0,S=S>>>0,[P,z,M,S]}var U=[0,1,2,4,8,16,32,64,128,27,54],X=function(){for(var I=new Array(256),J=0;J<256;J++)J<128?I[J]=J<<1:I[J]=J<<1^283;for(var O=[],F=[],A=[[],[],[],[]],W=[[],[],[],[]],H=0,E=0,T=0;T<256;++T){var D=E^E<<1^E<<2^E<<3^E<<4;D=D>>>8^D&255^99,O[H]=D,F[D]=H;var C=I[H],L=I[C],R=I[L],P=I[D]*257^D*16843008;A[0][H]=P<<24|P>>>8,A[1][H]=P<<16|P>>>16,A[2][H]=P<<8|P>>>24,A[3][H]=P,P=R*16843009^L*65537^C*257^H*16843008,W[0][D]=P<<24|P>>>8,W[1][D]=P<<16|P>>>16,W[2][D]=P<<8|P>>>24,W[3][D]=P,H===0?H=E=1:(H=C^I[I[I[R^C]]],E^=I[I[E]])}return{SBOX:O,INV_SBOX:F,SUB_MIX:A,INV_SUB_MIX:W}}();function K(I){this._key=Z(I),this._reset()}K.blockSize=16,K.keySize=32,K.prototype.blockSize=K.blockSize,K.prototype.keySize=K.keySize,K.prototype._reset=function(){for(var I=this._key,J=I.length,O=J+6,F=(O+1)*4,A=[],W=0;W<J;W++)A[W]=I[W];for(W=J;W<F;W++){var H=A[W-1];W%J===0?(H=H<<8|H>>>24,H=X.SBOX[H>>>24]<<24|X.SBOX[H>>>16&255]<<16|X.SBOX[H>>>8&255]<<8|X.SBOX[H&255],H^=U[W/J|0]<<24):J>6&&W%J===4&&(H=X.SBOX[H>>>24]<<24|X.SBOX[H>>>16&255]<<16|X.SBOX[H>>>8&255]<<8|X.SBOX[H&255]),A[W]=A[W-J]^H}for(var E=[],T=0;T<F;T++){var D=F-T,C=A[D-(T%4?0:4)];T<4||D<=4?E[T]=C:E[T]=X.INV_SUB_MIX[0][X.SBOX[C>>>24]]^X.INV_SUB_MIX[1][X.SBOX[C>>>16&255]]^X.INV_SUB_MIX[2][X.SBOX[C>>>8&255]]^X.INV_SUB_MIX[3][X.SBOX[C&255]]}this._nRounds=O,this._keySchedule=A,this._invKeySchedule=E},K.prototype.encryptBlockRaw=function(I){return I=Z(I),V(I,this._keySchedule,X.SUB_MIX,X.SBOX,this._nRounds)},K.prototype.encryptBlock=function(I){var J=this.encryptBlockRaw(I),O=Y.allocUnsafe(16);return O.writeUInt32BE(J[0],0),O.writeUInt32BE(J[1],4),O.writeUInt32BE(J[2],8),O.writeUInt32BE(J[3],12),O},K.prototype.decryptBlock=function(I){I=Z(I);var J=I[1];I[1]=I[3],I[3]=J;var O=V(I,this._invKeySchedule,X.INV_SUB_MIX,X.INV_SBOX,this._nRounds),F=Y.allocUnsafe(16);return F.writeUInt32BE(O[0],0),F.writeUInt32BE(O[3],4),F.writeUInt32BE(O[2],8),F.writeUInt32BE(O[1],12),F},K.prototype.scrub=function(){G(this._keySchedule),G(this._invKeySchedule),G(this._key)},Q.exports.AES=K}}),DQ=z$({"node_modules/browserify-aes/ghash.js"($,Q){var Y=S$().Buffer,Z=Y.alloc(16,0);function G(X){return[X.readUInt32BE(0),X.readUInt32BE(4),X.readUInt32BE(8),X.readUInt32BE(12)]}function V(X){var K=Y.allocUnsafe(16);return K.writeUInt32BE(X[0]>>>0,0),K.writeUInt32BE(X[1]>>>0,4),K.writeUInt32BE(X[2]>>>0,8),K.writeUInt32BE(X[3]>>>0,12),K}function U(X){this.h=X,this.state=Y.alloc(16,0),this.cache=Y.allocUnsafe(0)}U.prototype.ghash=function(X){for(var K=-1;++K<X.length;)this.state[K]^=X[K];this._multiply()},U.prototype._multiply=function(){for(var X=G(this.h),K=[0,0,0,0],I,J,O,F=-1;++F<128;){for(J=(this.state[~~(F/8)]&1<<7-F%8)!==0,J&&(K[0]^=X[0],K[1]^=X[1],K[2]^=X[2],K[3]^=X[3]),O=(X[3]&1)!==0,I=3;I>0;I--)X[I]=X[I]>>>1|(X[I-1]&1)<<31;X[0]=X[0]>>>1,O&&(X[0]=X[0]^225<<24)}this.state=V(K)},U.prototype.update=function(X){this.cache=Y.concat([this.cache,X]);for(var K;this.cache.length>=16;)K=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(K)},U.prototype.final=function(X,K){return this.cache.length&&this.ghash(Y.concat([this.cache,Z],16)),this.ghash(V([0,X,0,K])),this.state},Q.exports=U}}),CQ=z$({"node_modules/browserify-aes/authCipher.js"($,Q){var Y=TQ(),Z=S$().Buffer,G=h$(),V=q$(),U=DQ(),X=KQ(),K=WQ();function I(F,A){var W=0;F.length!==A.length&&W++;for(var H=Math.min(F.length,A.length),E=0;E<H;++E)W+=F[E]^A[E];return W}function J(F,A,W){if(A.length===12)return F._finID=Z.concat([A,Z.from([0,0,0,1])]),Z.concat([A,Z.from([0,0,0,2])]);var H=new U(W),E=A.length,T=E%16;H.update(A),T&&(T=16-T,H.update(Z.alloc(T,0))),H.update(Z.alloc(8,0));var D=E*8,C=Z.alloc(8);C.writeUIntBE(D,0,8),H.update(C),F._finID=H.state;var L=Z.from(F._finID);return K(L),L}function O(F,A,W,H){G.call(this);var E=Z.alloc(4,0);this._cipher=new Y.AES(A);var T=this._cipher.encryptBlock(E);this._ghash=new U(T),W=J(this,W,T),this._prev=Z.from(W),this._cache=Z.allocUnsafe(0),this._secCache=Z.allocUnsafe(0),this._decrypt=H,this._alen=0,this._len=0,this._mode=F,this._authTag=null,this._called=!1}V(O,G),O.prototype._update=function(F){if(!this._called&&this._alen){var A=16-this._alen%16;A<16&&(A=Z.alloc(A,0),this._ghash.update(A))}this._called=!0;var W=this._mode.encrypt(this,F);return this._decrypt?this._ghash.update(F):this._ghash.update(W),this._len+=F.length,W},O.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var F=X(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&I(F,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=F,this._cipher.scrub()},O.prototype.getAuthTag=function(){if(this._decrypt||!Z.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},O.prototype.setAuthTag=function(F){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=F},O.prototype.setAAD=function(F){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(F),this._alen+=F.length},Q.exports=O}}),LQ=z$({"node_modules/browserify-aes/streamCipher.js"($,Q){var Y=TQ(),Z=S$().Buffer,G=h$(),V=q$();function U(X,K,I,J){G.call(this),this._cipher=new Y.AES(K),this._prev=Z.from(I),this._cache=Z.allocUnsafe(0),this._secCache=Z.allocUnsafe(0),this._decrypt=J,this._mode=X}V(U,G),U.prototype._update=function(X){return this._mode.encrypt(this,X,this._decrypt)},U.prototype._final=function(){this._cipher.scrub()},Q.exports=U}}),RQ=z$({"node_modules/evp_bytestokey/index.js"($,Q){var Y=S$().Buffer,Z=k$();function G(V,U,X,K){if(Y.isBuffer(V)||(V=Y.from(V,"binary")),U&&(Y.isBuffer(U)||(U=Y.from(U,"binary")),U.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var I=X/8,J=Y.alloc(I),O=Y.alloc(K||0),F=Y.alloc(0);I>0||K>0;){var A=new Z;A.update(F),A.update(V),U&&A.update(U),F=A.digest();var W=0;if(I>0){var H=J.length-I;W=Math.min(I,F.length),F.copy(J,H,0,W),I-=W}if(W<F.length&&K>0){var E=O.length-K,T=Math.min(K,F.length-W);F.copy(O,E,W,W+T),K-=T}}return F.fill(0),{key:J,iv:O}}Q.exports=G}}),PQ=z$({"node_modules/browserify-aes/encrypter.js"($){var Q=EQ(),Y=CQ(),Z=S$().Buffer,G=LQ(),V=h$(),U=TQ(),X=RQ(),K=q$();function I(W,H,E){V.call(this),this._cache=new O,this._cipher=new U.AES(H),this._prev=Z.from(E),this._mode=W,this._autopadding=!0}K(I,V),I.prototype._update=function(W){this._cache.add(W);for(var H,E,T=[];H=this._cache.get();)E=this._mode.encrypt(this,H),T.push(E);return Z.concat(T)};var J=Z.alloc(16,16);I.prototype._final=function(){var W=this._cache.flush();if(this._autopadding)return W=this._mode.encrypt(this,W),this._cipher.scrub(),W;if(!W.equals(J))throw this._cipher.scrub(),new Error("data not multiple of block length")},I.prototype.setAutoPadding=function(W){return this._autopadding=!!W,this};function O(){this.cache=Z.allocUnsafe(0)}O.prototype.add=function(W){this.cache=Z.concat([this.cache,W])},O.prototype.get=function(){if(this.cache.length>15){var W=this.cache.slice(0,16);return this.cache=this.cache.slice(16),W}return null},O.prototype.flush=function(){for(var W=16-this.cache.length,H=Z.allocUnsafe(W),E=-1;++E<W;)H.writeUInt8(W,E);return Z.concat([this.cache,H])};function F(W,H,E){var T=Q[W.toLowerCase()];if(!T)throw new TypeError("invalid suite type");if(typeof H=="string"&&(H=Z.from(H)),H.length!==T.key/8)throw new TypeError("invalid key length "+H.length);if(typeof E=="string"&&(E=Z.from(E)),T.mode!=="GCM"&&E.length!==T.iv)throw new TypeError("invalid iv length "+E.length);return T.type==="stream"?new G(T.module,H,E):T.type==="auth"?new Y(T.module,H,E):new I(T.module,H,E)}function A(W,H){var E=Q[W.toLowerCase()];if(!E)throw new TypeError("invalid suite type");var T=X(H,!1,E.key,E.iv);return F(W,T.key,T.iv)}$.createCipheriv=F,$.createCipher=A}}),zQ=z$({"node_modules/browserify-aes/decrypter.js"($){var Q=CQ(),Y=S$().Buffer,Z=EQ(),G=LQ(),V=h$(),U=TQ(),X=RQ(),K=q$();function I(W,H,E){V.call(this),this._cache=new J,this._last=void 0,this._cipher=new U.AES(H),this._prev=Y.from(E),this._mode=W,this._autopadding=!0}K(I,V),I.prototype._update=function(W){this._cache.add(W);for(var H,E,T=[];H=this._cache.get(this._autopadding);)E=this._mode.decrypt(this,H),T.push(E);return Y.concat(T)},I.prototype._final=function(){var W=this._cache.flush();if(this._autopadding)return O(this._mode.decrypt(this,W));if(W)throw new Error("data not multiple of block length")},I.prototype.setAutoPadding=function(W){return this._autopadding=!!W,this};function J(){this.cache=Y.allocUnsafe(0)}J.prototype.add=function(W){this.cache=Y.concat([this.cache,W])},J.prototype.get=function(W){var H;if(W){if(this.cache.length>16)return H=this.cache.slice(0,16),this.cache=this.cache.slice(16),H}else if(this.cache.length>=16)return H=this.cache.slice(0,16),this.cache=this.cache.slice(16),H;return null},J.prototype.flush=function(){if(this.cache.length)return this.cache};function O(W){var H=W[15];if(H<1||H>16)throw new Error("unable to decrypt data");for(var E=-1;++E<H;)if(W[E+(16-H)]!==H)throw new Error("unable to decrypt data");if(H!==16)return W.slice(0,16-H)}function F(W,H,E){var T=Z[W.toLowerCase()];if(!T)throw new TypeError("invalid suite type");if(typeof E=="string"&&(E=Y.from(E)),T.mode!=="GCM"&&E.length!==T.iv)throw new TypeError("invalid iv length "+E.length);if(typeof H=="string"&&(H=Y.from(H)),H.length!==T.key/8)throw new TypeError("invalid key length "+H.length);return T.type==="stream"?new G(T.module,H,E,!0):T.type==="auth"?new Q(T.module,H,E,!0):new I(T.module,H,E)}function A(W,H){var E=Z[W.toLowerCase()];if(!E)throw new TypeError("invalid suite type");var T=X(H,!1,E.key,E.iv);return F(W,T.key,T.iv)}$.createDecipher=A,$.createDecipheriv=F}}),MQ=z$({"node_modules/browserify-aes/browser.js"($){var Q=PQ(),Y=zQ(),Z=HQ();function G(){return Object.keys(Z)}$.createCipher=$.Cipher=Q.createCipher,$.createCipheriv=$.Cipheriv=Q.createCipheriv,$.createDecipher=$.Decipher=Y.createDecipher,$.createDecipheriv=$.Decipheriv=Y.createDecipheriv,$.listCiphers=$.getCiphers=G}}),SQ=z$({"node_modules/browserify-des/modes.js"($){$["des-ecb"]={key:8,iv:0},$["des-cbc"]=$.des={key:8,iv:8},$["des-ede3-cbc"]=$.des3={key:24,iv:8},$["des-ede3"]={key:24,iv:0},$["des-ede-cbc"]={key:16,iv:8},$["des-ede"]={key:16,iv:0}}}),vQ=z$({"node_modules/browserify-cipher/browser.js"($){var Q=UQ(),Y=MQ(),Z=EQ(),G=SQ(),V=RQ();function U(O,F){O=O.toLowerCase();var A,W;if(Z[O])A=Z[O].key,W=Z[O].iv;else if(G[O])A=G[O].key*8,W=G[O].iv;else throw new TypeError("invalid suite type");var H=V(F,!1,A,W);return K(O,H.key,H.iv)}function X(O,F){O=O.toLowerCase();var A,W;if(Z[O])A=Z[O].key,W=Z[O].iv;else if(G[O])A=G[O].key*8,W=G[O].iv;else throw new TypeError("invalid suite type");var H=V(F,!1,A,W);return I(O,H.key,H.iv)}function K(O,F,A){if(O=O.toLowerCase(),Z[O])return Y.createCipheriv(O,F,A);if(G[O])return new Q({key:F,iv:A,mode:O});throw new TypeError("invalid suite type")}function I(O,F,A){if(O=O.toLowerCase(),Z[O])return Y.createDecipheriv(O,F,A);if(G[O])return new Q({key:F,iv:A,mode:O,decrypt:!0});throw new TypeError("invalid suite type")}function J(){return Object.keys(G).concat(Y.getCiphers())}$.createCipher=$.Cipher=U,$.createCipheriv=$.Cipheriv=K,$.createDecipher=$.Decipher=X,$.createDecipheriv=$.Decipheriv=I,$.listCiphers=$.getCiphers=J}}),qQ=z$({"node_modules/diffie-hellman/node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(j,k){if(!j)throw new Error(k||"Assertion failed")}function V(j,k){j.super_=k;var g=function(){};g.prototype=k.prototype,j.prototype=new g,j.prototype.constructor=j}function U(j,k,g){if(U.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((k==="le"||k==="be")&&(g=k,k=10),this._init(j||0,k||10,g||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X;try{typeof window<"u"&&typeof window.Buffer<"u"?X=window.Buffer:X=R$("buffer").Buffer}catch{}U.isBN=function(j){return j instanceof U?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===U.wordSize&&Array.isArray(j.words)},U.max=function(j,k){return j.cmp(k)>0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var N=0;j[0]==="-"&&(N++,this.negative=1),N<j.length&&(k===16?this._parseHex(j,N,g):(this._parseBase(j,k,N),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x,_,B=0;if(g==="be")for(N=j.length-1,x=0;N>=0;N-=3)_=j[N]|j[N-1]<<8|j[N-2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);else if(g==="le")for(N=0,x=0;N<j.length;N+=3)_=j[N]|j[N+1]<<8|j[N+2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var N=K(j,g);return g-1>=k&&(N|=K(j,g-1)<<4),N}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x=0,_=0,B;if(g==="be")for(N=j.length-1;N>=k;N-=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8;else{var y=j.length-k;for(N=y%2===0?k+1:k;N<j.length;N+=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8}this.strip()};function J(j,k,g,N){for(var x=0,_=Math.min(j.length,g),B=k;B<_;B++){var y=j.charCodeAt(B)-48;x*=N,y>=49?x+=y-49+10:y>=17?x+=y-17+10:x+=y}return x}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var N=0,x=1;x<=67108863;x*=k)N++;N--,x=x/k|0;for(var _=j.length-g,B=_%N,y=Math.min(_,_-B)+g,w=0,f=g;f<y;f+=N)w=J(j,f,f+N,k),this.imuln(x),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var p=1;for(w=J(j,f,j.length,k),f=0;f<B;f++)p*=k;this.imuln(p),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],F=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var N=0,x=0,_=0;_<this.length;_++){var B=this.words[_],y=((B<<N|x)&16777215).toString(16);x=B>>>24-N&16777215,x!==0||_!==this.length-1?g=O[6-y.length]+y+g:g=y+g,N+=2,N>=26&&(N-=26,_--)}for(x!==0&&(g=x.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],f=A[j];g="";var p=this.clone();for(p.negative=0;!p.isZero();){var c=p.modn(f).toString(j);p=p.idivn(f),p.isZero()?g=c+g:g=O[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var N=this.byteLength(),x=g||Math.max(1,N);G(N<=x,"byte array longer than desired length"),G(x>0,"Requested array length <= 0"),this.strip();var _=k==="le",B=new j(x),y,w,f=this.clone();if(_){for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[w]=y;for(;w<x;w++)B[w]=0}else{for(w=0;w<x-N;w++)B[w]=0;for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[x-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function W(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var N=g/26|0,x=g%26;k[g]=(j.words[N]&1<<x)>>>x}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var N=0;N<g.length;N++)this.words[N]=k.words[N]^g.words[N];if(this!==k)for(;N<k.length;N++)this.words[N]=k.words[N];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var N=0;N<k;N++)this.words[N]=~this.words[N]&67108863;return g>0&&(this.words[N]=~this.words[N]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,N=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<N:this.words[g]=this.words[g]&~(1<<N),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,N;this.length>j.length?(g=this,N=j):(g=j,N=this);for(var x=0,_=0;_<N.length;_++)k=(g.words[_]|0)+(N.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;for(;x!==0&&_<g.length;_++)k=(g.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;if(this.length=g.length,x!==0)this.words[this.length]=x,this.length++;else if(g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var N,x;g>0?(N=this,x=j):(N=j,x=this);for(var _=0,B=0;B<x.length;B++)k=(N.words[B]|0)-(x.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;for(;_!==0&&B<N.length;B++)k=(N.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;if(_===0&&B<N.length&&N!==this)for(;B<N.length;B++)this.words[B]=N.words[B];return this.length=Math.max(this.length,B),N!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function H(j,k,g){g.negative=k.negative^j.negative;var N=j.length+k.length|0;g.length=N,N=N-1|0;var x=j.words[0]|0,_=k.words[0]|0,B=x*_,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var f=1;f<N;f++){for(var p=w>>>26,c=w&67108863,h=Math.min(f,k.length-1),d=Math.max(0,f-j.length+1);d<=h;d++){var b=f-d|0;x=j.words[b]|0,_=k.words[d]|0,B=x*_+c,p+=B/67108864|0,c=B&67108863}g.words[f]=c|0,w=p|0}return w!==0?g.words[f]=w|0:g.length--,g.strip()}var E=function(j,k,g){var N=j.words,x=k.words,_=g.words,B=0,y,w,f,p=N[0]|0,c=p&8191,h=p>>>13,d=N[1]|0,b=d&8191,l=d>>>13,o=N[2]|0,u=o&8191,n=o>>>13,s=N[3]|0,t=s&8191,m=s>>>13,a=N[4]|0,r=a&8191,e=a>>>13,i=N[5]|0,$0=i&8191,Q0=i>>>13,Y0=N[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=N[7]|0,U0=V0&8191,X0=V0>>>13,K0=N[8]|0,I0=K0&8191,J0=K0>>>13,O0=N[9]|0,F0=O0&8191,A0=O0>>>13,W0=x[0]|0,H0=W0&8191,E0=W0>>>13,T0=x[1]|0,D0=T0&8191,C0=T0>>>13,L0=x[2]|0,R0=L0&8191,P0=L0>>>13,z0=x[3]|0,M0=z0&8191,S0=z0>>>13,v0=x[4]|0,q0=v0&8191,j0=v0>>>13,k0=x[5]|0,g0=k0&8191,N0=k0>>>13,x0=x[6]|0,_0=x0&8191,B0=x0>>>13,y0=x[7]|0,w0=y0&8191,f0=y0>>>13,p0=x[8]|0,c0=p0&8191,h0=p0>>>13,d0=x[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,H0),w=Math.imul(c,E0),w=w+Math.imul(h,H0)|0,f=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,H0),w=Math.imul(b,E0),w=w+Math.imul(l,H0)|0,f=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,f=f+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,H0),w=Math.imul(u,E0),w=w+Math.imul(n,H0)|0,f=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,f=f+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,f=f+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,H0),w=Math.imul(t,E0),w=w+Math.imul(m,H0)|0,f=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,f=f+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,f=f+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,f=f+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(r,H0),w=Math.imul(r,E0),w=w+Math.imul(e,H0)|0,f=Math.imul(e,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,f=f+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,f=f+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,f=f+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,f=f+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,H0),w=Math.imul($0,E0),w=w+Math.imul(Q0,H0)|0,f=Math.imul(Q0,E0),y=y+Math.imul(r,D0)|0,w=w+Math.imul(r,C0)|0,w=w+Math.imul(e,D0)|0,f=f+Math.imul(e,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,f=f+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,f=f+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,f=f+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,N0)|0,w=w+Math.imul(h,g0)|0,f=f+Math.imul(h,N0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,H0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,H0)|0,f=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,f=f+Math.imul(Q0,C0)|0,y=y+Math.imul(r,R0)|0,w=w+Math.imul(r,P0)|0,w=w+Math.imul(e,R0)|0,f=f+Math.imul(e,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,f=f+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,f=f+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,N0)|0,w=w+Math.imul(l,g0)|0,f=f+Math.imul(l,N0)|0,y=y+Math.imul(c,_0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,_0)|0,f=f+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,H0),w=Math.imul(U0,E0),w=w+Math.imul(X0,H0)|0,f=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,f=f+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,f=f+Math.imul(Q0,P0)|0,y=y+Math.imul(r,M0)|0,w=w+Math.imul(r,S0)|0,w=w+Math.imul(e,M0)|0,f=f+Math.imul(e,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,f=f+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,N0)|0,w=w+Math.imul(n,g0)|0,f=f+Math.imul(n,N0)|0,y=y+Math.imul(b,_0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,_0)|0,f=f+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,f0)|0,w=w+Math.imul(h,w0)|0,f=f+Math.imul(h,f0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(I0,H0),w=Math.imul(I0,E0),w=w+Math.imul(J0,H0)|0,f=Math.imul(J0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,f=f+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,f=f+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,f=f+Math.imul(Q0,S0)|0,y=y+Math.imul(r,q0)|0,w=w+Math.imul(r,j0)|0,w=w+Math.imul(e,q0)|0,f=f+Math.imul(e,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,N0)|0,w=w+Math.imul(m,g0)|0,f=f+Math.imul(m,N0)|0,y=y+Math.imul(u,_0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,_0)|0,f=f+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,f0)|0,w=w+Math.imul(l,w0)|0,f=f+Math.imul(l,f0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,f=f+Math.imul(h,h0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(F0,H0),w=Math.imul(F0,E0),w=w+Math.imul(A0,H0)|0,f=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(J0,D0)|0,f=f+Math.imul(J0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,f=f+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,f=f+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,f=f+Math.imul(Q0,j0)|0,y=y+Math.imul(r,g0)|0,w=w+Math.imul(r,N0)|0,w=w+Math.imul(e,g0)|0,f=f+Math.imul(e,N0)|0,y=y+Math.imul(t,_0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,_0)|0,f=f+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,f0)|0,w=w+Math.imul(n,w0)|0,f=f+Math.imul(n,f0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,f=f+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,f=f+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,f=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(J0,R0)|0,f=f+Math.imul(J0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,f=f+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,f=f+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,N0)|0,w=w+Math.imul(Q0,g0)|0,f=f+Math.imul(Q0,N0)|0,y=y+Math.imul(r,_0)|0,w=w+Math.imul(r,B0)|0,w=w+Math.imul(e,_0)|0,f=f+Math.imul(e,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,f0)|0,w=w+Math.imul(m,w0)|0,f=f+Math.imul(m,f0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,f=f+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,f=f+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,f=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(J0,M0)|0,f=f+Math.imul(J0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,f=f+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,N0)|0,w=w+Math.imul(G0,g0)|0,f=f+Math.imul(G0,N0)|0,y=y+Math.imul($0,_0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,_0)|0,f=f+Math.imul(Q0,B0)|0,y=y+Math.imul(r,w0)|0,w=w+Math.imul(r,f0)|0,w=w+Math.imul(e,w0)|0,f=f+Math.imul(e,f0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,f=f+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,f=f+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,f=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(J0,q0)|0,f=f+Math.imul(J0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,N0)|0,w=w+Math.imul(X0,g0)|0,f=f+Math.imul(X0,N0)|0,y=y+Math.imul(Z0,_0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,_0)|0,f=f+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,f0)|0,w=w+Math.imul(Q0,w0)|0,f=f+Math.imul(Q0,f0)|0,y=y+Math.imul(r,c0)|0,w=w+Math.imul(r,h0)|0,w=w+Math.imul(e,c0)|0,f=f+Math.imul(e,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,f=f+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,f=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,N0)|0,w=w+Math.imul(J0,g0)|0,f=f+Math.imul(J0,N0)|0,y=y+Math.imul(U0,_0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,_0)|0,f=f+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,f0)|0,w=w+Math.imul(G0,w0)|0,f=f+Math.imul(G0,f0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,f=f+Math.imul(Q0,h0)|0,y=y+Math.imul(r,b0)|0,w=w+Math.imul(r,l0)|0,w=w+Math.imul(e,b0)|0,f=f+Math.imul(e,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,N0),w=w+Math.imul(A0,g0)|0,f=Math.imul(A0,N0),y=y+Math.imul(I0,_0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(J0,_0)|0,f=f+Math.imul(J0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,f0)|0,w=w+Math.imul(X0,w0)|0,f=f+Math.imul(X0,f0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,f=f+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,f=f+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,_0),w=Math.imul(F0,B0),w=w+Math.imul(A0,_0)|0,f=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,f0)|0,w=w+Math.imul(J0,w0)|0,f=f+Math.imul(J0,f0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,f=f+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,f=f+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,f0),w=w+Math.imul(A0,w0)|0,f=Math.imul(A0,f0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(J0,c0)|0,f=f+Math.imul(J0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,f=f+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,f=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(J0,b0)|0,f=f+Math.imul(J0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,f=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(f+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,_[0]=o0,_[1]=u0,_[2]=n0,_[3]=s0,_[4]=t0,_[5]=m0,_[6]=a0,_[7]=r0,_[8]=e0,_[9]=i0,_[10]=$$,_[11]=Q$,_[12]=Y$,_[13]=Z$,_[14]=G$,_[15]=V$,_[16]=U$,_[17]=X$,_[18]=K$,B!==0&&(_[19]=B,g.length++),g};Math.imul||(E=H);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var N=0,x=0,_=0;_<g.length-1;_++){var B=x;x=0;for(var y=N&67108863,w=Math.min(_,k.length-1),f=Math.max(0,_-j.length+1);f<=w;f++){var p=_-f,c=j.words[p]|0,h=k.words[f]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,x+=B>>>26,B&=67108863}g.words[_]=y,N=B,B=x}return N!==0?g.words[_]=N:g.length--,g.strip()}function D(j,k,g){var N=new C;return N.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,N=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):N<63?g=H(this,j,k):N<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,N=0;N<j;N++)k[N]=this.revBin(N,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var N=0,x=0;x<k;x++)N|=(j&1)<<k-x-1,j>>=1;return N},C.prototype.permute=function(j,k,g,N,x,_){for(var B=0;B<_;B++)N[B]=k[j[B]],x[B]=g[j[B]]},C.prototype.transform=function(j,k,g,N,x,_){this.permute(_,j,k,g,N,x);for(var B=1;B<x;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),f=Math.sin(2*Math.PI/y),p=0;p<x;p+=y)for(var c=w,h=f,d=0;d<B;d++){var b=g[p+d],l=N[p+d],o=g[p+d+B],u=N[p+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[p+d]=b+o,N[p+d]=l+u,g[p+d+B]=b-o,N[p+d+B]=l-u,d!==y&&(n=w*c-f*h,h=w*h+f*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,N=g&1,x=0;for(g=g/2|0;g;g=g>>>1)x++;return 1<<x+1+N},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var N=0;N<g/2;N++){var x=j[N];j[N]=j[g-N-1],j[g-N-1]=x,x=k[N],k[N]=-k[g-N-1],k[g-N-1]=-x}},C.prototype.normalize13b=function(j,k){for(var g=0,N=0;N<k/2;N++){var x=Math.round(j[2*N+1]/k)*8192+Math.round(j[2*N]/k)+g;j[N]=x&67108863,x<67108864?g=0:g=x/67108864|0}return j},C.prototype.convert13b=function(j,k,g,N){for(var x=0,_=0;_<k;_++)x=x+(j[_]|0),g[2*_]=x&8191,x=x>>>13,g[2*_+1]=x&8191,x=x>>>13;for(_=2*k;_<N;++_)g[_]=0;G(x===0),G((x&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var N=2*this.guessLen13b(j.length,k.length),x=this.makeRBT(N),_=this.stub(N),B=new Array(N),y=new Array(N),w=new Array(N),f=new Array(N),p=new Array(N),c=new Array(N),h=g.words;h.length=N,this.convert13b(j.words,j.length,B,N),this.convert13b(k.words,k.length,f,N),this.transform(B,_,y,w,N,x),this.transform(f,_,p,c,N,x);for(var d=0;d<N;d++){var b=y[d]*p[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*p[d],y[d]=b}return this.conjugate(y,w,N),this.transform(y,w,h,_,N,x),this.conjugate(h,_,N),this.normalize13b(h,N),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var N=(this.words[g]|0)*j,x=(N&67108863)+(k&67108863);k>>=26,k+=N/67108864|0,k+=x>>>26,this.words[g]=x&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=W(j);if(k.length===0)return new U(1);for(var g=this,N=0;N<k.length&&k[N]===0;N++,g=g.sqr());if(++N<k.length)for(var x=g.sqr();N<k.length;N++,x=x.sqr())k[N]!==0&&(g=g.mul(x));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=67108863>>>26-k<<26-k,x;if(k!==0){var _=0;for(x=0;x<this.length;x++){var B=this.words[x]&N,y=(this.words[x]|0)-B<<k;this.words[x]=y|_,_=B>>>26-k}_&&(this.words[x]=_,this.length++)}if(g!==0){for(x=this.length-1;x>=0;x--)this.words[x+g]=this.words[x];for(x=0;x<g;x++)this.words[x]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var N;k?N=(k-k%26)/26:N=0;var x=j%26,_=Math.min((j-x)/26,this.length),B=67108863^67108863>>>x<<x,y=g;if(N-=_,N=Math.max(0,N),y){for(var w=0;w<_;w++)y.words[w]=this.words[w];y.length=_}if(_!==0)if(this.length>_)for(this.length-=_,w=0;w<this.length;w++)this.words[w]=this.words[w+_];else this.words[0]=0,this.length=1;var f=0;for(w=this.length-1;w>=0&&(f!==0||w>=N);w--){var p=this.words[w]|0;this.words[w]=f<<26-x|p>>>x,f=p&B}return y&&f!==0&&(y.words[y.length++]=f),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=1<<k;if(this.length<=g)return!1;var x=this.words[g];return!!(x&N)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var N=67108863^67108863>>>k<<k;this.words[this.length-1]&=N}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var N=j.length+g,x;this._expand(N);var _,B=0;for(x=0;x<j.length;x++){_=(this.words[x+g]|0)+B;var y=(j.words[x]|0)*k;_-=y&67108863,B=(_>>26)-(y/67108864|0),this.words[x+g]=_&67108863}for(;x<this.length-g;x++)_=(this.words[x+g]|0)+B,B=_>>26,this.words[x+g]=_&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,x=0;x<this.length;x++)_=-(this.words[x]|0)+B,B=_>>26,this.words[x]=_&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,N=this.clone(),x=j,_=x.words[x.length-1]|0,B=this._countBits(_);g=26-B,g!==0&&(x=x.ushln(g),N.iushln(g),_=x.words[x.length-1]|0);var y=N.length-x.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var f=0;f<w.length;f++)w.words[f]=0}var p=N.clone()._ishlnsubmul(x,1,y);p.negative===0&&(N=p,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(N.words[x.length+c]|0)*67108864+(N.words[x.length+c-1]|0);for(h=Math.min(h/_|0,67108863),N._ishlnsubmul(x,h,c);N.negative!==0;)h--,N.negative=0,N._ishlnsubmul(x,1,c),N.isZero()||(N.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),N.strip(),k!=="div"&&g!==0&&N.iushrn(g),{div:w||null,mod:N}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var N,x,_;return this.negative!==0&&j.negative===0?(_=this.neg().divmod(j,k),k!=="mod"&&(N=_.div.neg()),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.iadd(j)),{div:N,mod:x}):this.negative===0&&j.negative!==0?(_=this.divmod(j.neg(),k),k!=="mod"&&(N=_.div.neg()),{div:N,mod:_.mod}):(this.negative&j.negative)!==0?(_=this.neg().divmod(j.neg(),k),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.isub(j)),{div:_.div,mod:x}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,N=j.ushrn(1),x=j.andln(1),_=g.cmp(N);return _<0||x===1&&_===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,N=this.length-1;N>=0;N--)g=(k*g+(this.words[N]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var N=(this.words[g]|0)+k*67108864;this.words[g]=N/j|0,k=N%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var N=new U(1),x=new U(0),_=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),f=k.clone();!k.isZero();){for(var p=0,c=1;(k.words[0]&c)===0&&p<26;++p,c<<=1);if(p>0)for(k.iushrn(p);p-- >0;)(N.isOdd()||x.isOdd())&&(N.iadd(w),x.isub(f)),N.iushrn(1),x.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(_.isOdd()||B.isOdd())&&(_.iadd(w),B.isub(f)),_.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(_),x.isub(B)):(g.isub(k),_.isub(N),B.isub(x))}return{a:_,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var N=new U(1),x=new U(0),_=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)N.isOdd()&&N.iadd(_),N.iushrn(1);for(var w=0,f=1;(g.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(g.iushrn(w);w-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(x)):(g.isub(k),x.isub(N))}var p;return k.cmpn(1)===0?p=N:p=x,p.cmpn(0)<0&&p.iadd(j),p},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var N=0;k.isEven()&&g.isEven();N++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var x=k.cmp(g);if(x<0){var _=k;k=g,g=_}else if(x===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(N)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,N=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=N,this;for(var x=N,_=g;x!==0&&_<this.length;_++){var B=this.words[_]|0;B+=x,x=B>>>26,B&=67108863,this.words[_]=B}return x!==0&&(this.words[_]=x,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var N=this.words[0]|0;g=N===j?0:N<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var N=this.words[g]|0,x=j.words[g]|0;if(N!==x){N<x?k=-1:N>x&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var N=g<this.n?-1:k.ucmp(this.p);return N===0?(k.words[0]=0,k.length=1):N>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,N=Math.min(j.length,9),x=0;x<N;x++)k.words[x]=j.words[x];if(k.length=N,j.length<=9){j.words[0]=0,j.length=1;return}var _=j.words[9];for(k.words[k.length++]=_&g,x=10;x<j.length;x++){var B=j.words[x]|0;j.words[x-10]=(B&g)<<4|_>>>22,_=B}_>>>=22,j.words[x-10]=_,_===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g<j.length;g++){var N=j.words[g]|0;k+=N*977,j.words[g]=k&67108863,k=N*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var N=(j.words[g]|0)*19+k,x=N&67108863;N>>>=26,j.words[g]=x,k=N}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var N=this.m.subn(1),x=0;!N.isZero()&&N.andln(1)===0;)x++,N.iushrn(1);G(!N.isZero());var _=new U(1).toRed(this),B=_.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var f=this.pow(w,N),p=this.pow(j,N.addn(1).iushrn(1)),c=this.pow(j,N),h=x;c.cmp(_)!==0;){for(var d=c,b=0;d.cmp(_)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(f,new U(1).iushln(h-b-1));p=p.redMul(l),f=l.redSqr(),c=c.redMul(f),h=b}return p},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,N=new Array(1<<g);N[0]=new U(1).toRed(this),N[1]=j;for(var x=2;x<N.length;x++)N[x]=this.mul(N[x-1],j);var _=N[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),x=k.length-1;x>=0;x--){for(var f=k.words[x],p=w-1;p>=0;p--){var c=f>>p&1;if(_!==N[0]&&(_=this.sqr(_)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(x!==0||p!==0))&&(_=this.mul(_,N[B]),y=0,B=0)}w=26}return _},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),jQ=z$({"node_modules/miller-rabin/node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(j,k){if(!j)throw new Error(k||"Assertion failed")}function V(j,k){j.super_=k;var g=function(){};g.prototype=k.prototype,j.prototype=new g,j.prototype.constructor=j}function U(j,k,g){if(U.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((k==="le"||k==="be")&&(g=k,k=10),this._init(j||0,k||10,g||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X;try{typeof window<"u"&&typeof window.Buffer<"u"?X=window.Buffer:X=R$("buffer").Buffer}catch{}U.isBN=function(j){return j instanceof U?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===U.wordSize&&Array.isArray(j.words)},U.max=function(j,k){return j.cmp(k)>0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var N=0;j[0]==="-"&&(N++,this.negative=1),N<j.length&&(k===16?this._parseHex(j,N,g):(this._parseBase(j,k,N),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x,_,B=0;if(g==="be")for(N=j.length-1,x=0;N>=0;N-=3)_=j[N]|j[N-1]<<8|j[N-2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);else if(g==="le")for(N=0,x=0;N<j.length;N+=3)_=j[N]|j[N+1]<<8|j[N+2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var N=K(j,g);return g-1>=k&&(N|=K(j,g-1)<<4),N}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x=0,_=0,B;if(g==="be")for(N=j.length-1;N>=k;N-=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8;else{var y=j.length-k;for(N=y%2===0?k+1:k;N<j.length;N+=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8}this.strip()};function J(j,k,g,N){for(var x=0,_=Math.min(j.length,g),B=k;B<_;B++){var y=j.charCodeAt(B)-48;x*=N,y>=49?x+=y-49+10:y>=17?x+=y-17+10:x+=y}return x}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var N=0,x=1;x<=67108863;x*=k)N++;N--,x=x/k|0;for(var _=j.length-g,B=_%N,y=Math.min(_,_-B)+g,w=0,f=g;f<y;f+=N)w=J(j,f,f+N,k),this.imuln(x),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var p=1;for(w=J(j,f,j.length,k),f=0;f<B;f++)p*=k;this.imuln(p),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],F=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var N=0,x=0,_=0;_<this.length;_++){var B=this.words[_],y=((B<<N|x)&16777215).toString(16);x=B>>>24-N&16777215,x!==0||_!==this.length-1?g=O[6-y.length]+y+g:g=y+g,N+=2,N>=26&&(N-=26,_--)}for(x!==0&&(g=x.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],f=A[j];g="";var p=this.clone();for(p.negative=0;!p.isZero();){var c=p.modn(f).toString(j);p=p.idivn(f),p.isZero()?g=c+g:g=O[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var N=this.byteLength(),x=g||Math.max(1,N);G(N<=x,"byte array longer than desired length"),G(x>0,"Requested array length <= 0"),this.strip();var _=k==="le",B=new j(x),y,w,f=this.clone();if(_){for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[w]=y;for(;w<x;w++)B[w]=0}else{for(w=0;w<x-N;w++)B[w]=0;for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[x-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function W(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var N=g/26|0,x=g%26;k[g]=(j.words[N]&1<<x)>>>x}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var N=0;N<g.length;N++)this.words[N]=k.words[N]^g.words[N];if(this!==k)for(;N<k.length;N++)this.words[N]=k.words[N];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var N=0;N<k;N++)this.words[N]=~this.words[N]&67108863;return g>0&&(this.words[N]=~this.words[N]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,N=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<N:this.words[g]=this.words[g]&~(1<<N),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,N;this.length>j.length?(g=this,N=j):(g=j,N=this);for(var x=0,_=0;_<N.length;_++)k=(g.words[_]|0)+(N.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;for(;x!==0&&_<g.length;_++)k=(g.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;if(this.length=g.length,x!==0)this.words[this.length]=x,this.length++;else if(g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var N,x;g>0?(N=this,x=j):(N=j,x=this);for(var _=0,B=0;B<x.length;B++)k=(N.words[B]|0)-(x.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;for(;_!==0&&B<N.length;B++)k=(N.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;if(_===0&&B<N.length&&N!==this)for(;B<N.length;B++)this.words[B]=N.words[B];return this.length=Math.max(this.length,B),N!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function H(j,k,g){g.negative=k.negative^j.negative;var N=j.length+k.length|0;g.length=N,N=N-1|0;var x=j.words[0]|0,_=k.words[0]|0,B=x*_,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var f=1;f<N;f++){for(var p=w>>>26,c=w&67108863,h=Math.min(f,k.length-1),d=Math.max(0,f-j.length+1);d<=h;d++){var b=f-d|0;x=j.words[b]|0,_=k.words[d]|0,B=x*_+c,p+=B/67108864|0,c=B&67108863}g.words[f]=c|0,w=p|0}return w!==0?g.words[f]=w|0:g.length--,g.strip()}var E=function(j,k,g){var N=j.words,x=k.words,_=g.words,B=0,y,w,f,p=N[0]|0,c=p&8191,h=p>>>13,d=N[1]|0,b=d&8191,l=d>>>13,o=N[2]|0,u=o&8191,n=o>>>13,s=N[3]|0,t=s&8191,m=s>>>13,a=N[4]|0,r=a&8191,e=a>>>13,i=N[5]|0,$0=i&8191,Q0=i>>>13,Y0=N[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=N[7]|0,U0=V0&8191,X0=V0>>>13,K0=N[8]|0,I0=K0&8191,J0=K0>>>13,O0=N[9]|0,F0=O0&8191,A0=O0>>>13,W0=x[0]|0,H0=W0&8191,E0=W0>>>13,T0=x[1]|0,D0=T0&8191,C0=T0>>>13,L0=x[2]|0,R0=L0&8191,P0=L0>>>13,z0=x[3]|0,M0=z0&8191,S0=z0>>>13,v0=x[4]|0,q0=v0&8191,j0=v0>>>13,k0=x[5]|0,g0=k0&8191,N0=k0>>>13,x0=x[6]|0,_0=x0&8191,B0=x0>>>13,y0=x[7]|0,w0=y0&8191,f0=y0>>>13,p0=x[8]|0,c0=p0&8191,h0=p0>>>13,d0=x[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,H0),w=Math.imul(c,E0),w=w+Math.imul(h,H0)|0,f=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,H0),w=Math.imul(b,E0),w=w+Math.imul(l,H0)|0,f=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,f=f+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,H0),w=Math.imul(u,E0),w=w+Math.imul(n,H0)|0,f=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,f=f+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,f=f+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,H0),w=Math.imul(t,E0),w=w+Math.imul(m,H0)|0,f=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,f=f+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,f=f+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,f=f+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(r,H0),w=Math.imul(r,E0),w=w+Math.imul(e,H0)|0,f=Math.imul(e,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,f=f+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,f=f+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,f=f+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,f=f+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,H0),w=Math.imul($0,E0),w=w+Math.imul(Q0,H0)|0,f=Math.imul(Q0,E0),y=y+Math.imul(r,D0)|0,w=w+Math.imul(r,C0)|0,w=w+Math.imul(e,D0)|0,f=f+Math.imul(e,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,f=f+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,f=f+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,f=f+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,N0)|0,w=w+Math.imul(h,g0)|0,f=f+Math.imul(h,N0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,H0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,H0)|0,f=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,f=f+Math.imul(Q0,C0)|0,y=y+Math.imul(r,R0)|0,w=w+Math.imul(r,P0)|0,w=w+Math.imul(e,R0)|0,f=f+Math.imul(e,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,f=f+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,f=f+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,N0)|0,w=w+Math.imul(l,g0)|0,f=f+Math.imul(l,N0)|0,y=y+Math.imul(c,_0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,_0)|0,f=f+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,H0),w=Math.imul(U0,E0),w=w+Math.imul(X0,H0)|0,f=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,f=f+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,f=f+Math.imul(Q0,P0)|0,y=y+Math.imul(r,M0)|0,w=w+Math.imul(r,S0)|0,w=w+Math.imul(e,M0)|0,f=f+Math.imul(e,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,f=f+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,N0)|0,w=w+Math.imul(n,g0)|0,f=f+Math.imul(n,N0)|0,y=y+Math.imul(b,_0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,_0)|0,f=f+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,f0)|0,w=w+Math.imul(h,w0)|0,f=f+Math.imul(h,f0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(I0,H0),w=Math.imul(I0,E0),w=w+Math.imul(J0,H0)|0,f=Math.imul(J0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,f=f+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,f=f+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,f=f+Math.imul(Q0,S0)|0,y=y+Math.imul(r,q0)|0,w=w+Math.imul(r,j0)|0,w=w+Math.imul(e,q0)|0,f=f+Math.imul(e,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,N0)|0,w=w+Math.imul(m,g0)|0,f=f+Math.imul(m,N0)|0,y=y+Math.imul(u,_0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,_0)|0,f=f+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,f0)|0,w=w+Math.imul(l,w0)|0,f=f+Math.imul(l,f0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,f=f+Math.imul(h,h0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(F0,H0),w=Math.imul(F0,E0),w=w+Math.imul(A0,H0)|0,f=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(J0,D0)|0,f=f+Math.imul(J0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,f=f+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,f=f+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,f=f+Math.imul(Q0,j0)|0,y=y+Math.imul(r,g0)|0,w=w+Math.imul(r,N0)|0,w=w+Math.imul(e,g0)|0,f=f+Math.imul(e,N0)|0,y=y+Math.imul(t,_0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,_0)|0,f=f+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,f0)|0,w=w+Math.imul(n,w0)|0,f=f+Math.imul(n,f0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,f=f+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,f=f+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,f=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(J0,R0)|0,f=f+Math.imul(J0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,f=f+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,f=f+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,N0)|0,w=w+Math.imul(Q0,g0)|0,f=f+Math.imul(Q0,N0)|0,y=y+Math.imul(r,_0)|0,w=w+Math.imul(r,B0)|0,w=w+Math.imul(e,_0)|0,f=f+Math.imul(e,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,f0)|0,w=w+Math.imul(m,w0)|0,f=f+Math.imul(m,f0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,f=f+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,f=f+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,f=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(J0,M0)|0,f=f+Math.imul(J0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,f=f+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,N0)|0,w=w+Math.imul(G0,g0)|0,f=f+Math.imul(G0,N0)|0,y=y+Math.imul($0,_0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,_0)|0,f=f+Math.imul(Q0,B0)|0,y=y+Math.imul(r,w0)|0,w=w+Math.imul(r,f0)|0,w=w+Math.imul(e,w0)|0,f=f+Math.imul(e,f0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,f=f+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,f=f+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,f=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(J0,q0)|0,f=f+Math.imul(J0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,N0)|0,w=w+Math.imul(X0,g0)|0,f=f+Math.imul(X0,N0)|0,y=y+Math.imul(Z0,_0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,_0)|0,f=f+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,f0)|0,w=w+Math.imul(Q0,w0)|0,f=f+Math.imul(Q0,f0)|0,y=y+Math.imul(r,c0)|0,w=w+Math.imul(r,h0)|0,w=w+Math.imul(e,c0)|0,f=f+Math.imul(e,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,f=f+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,f=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,N0)|0,w=w+Math.imul(J0,g0)|0,f=f+Math.imul(J0,N0)|0,y=y+Math.imul(U0,_0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,_0)|0,f=f+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,f0)|0,w=w+Math.imul(G0,w0)|0,f=f+Math.imul(G0,f0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,f=f+Math.imul(Q0,h0)|0,y=y+Math.imul(r,b0)|0,w=w+Math.imul(r,l0)|0,w=w+Math.imul(e,b0)|0,f=f+Math.imul(e,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,N0),w=w+Math.imul(A0,g0)|0,f=Math.imul(A0,N0),y=y+Math.imul(I0,_0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(J0,_0)|0,f=f+Math.imul(J0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,f0)|0,w=w+Math.imul(X0,w0)|0,f=f+Math.imul(X0,f0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,f=f+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,f=f+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,_0),w=Math.imul(F0,B0),w=w+Math.imul(A0,_0)|0,f=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,f0)|0,w=w+Math.imul(J0,w0)|0,f=f+Math.imul(J0,f0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,f=f+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,f=f+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,f0),w=w+Math.imul(A0,w0)|0,f=Math.imul(A0,f0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(J0,c0)|0,f=f+Math.imul(J0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,f=f+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,f=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(J0,b0)|0,f=f+Math.imul(J0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,f=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(f+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,_[0]=o0,_[1]=u0,_[2]=n0,_[3]=s0,_[4]=t0,_[5]=m0,_[6]=a0,_[7]=r0,_[8]=e0,_[9]=i0,_[10]=$$,_[11]=Q$,_[12]=Y$,_[13]=Z$,_[14]=G$,_[15]=V$,_[16]=U$,_[17]=X$,_[18]=K$,B!==0&&(_[19]=B,g.length++),g};Math.imul||(E=H);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var N=0,x=0,_=0;_<g.length-1;_++){var B=x;x=0;for(var y=N&67108863,w=Math.min(_,k.length-1),f=Math.max(0,_-j.length+1);f<=w;f++){var p=_-f,c=j.words[p]|0,h=k.words[f]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,x+=B>>>26,B&=67108863}g.words[_]=y,N=B,B=x}return N!==0?g.words[_]=N:g.length--,g.strip()}function D(j,k,g){var N=new C;return N.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,N=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):N<63?g=H(this,j,k):N<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,N=0;N<j;N++)k[N]=this.revBin(N,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var N=0,x=0;x<k;x++)N|=(j&1)<<k-x-1,j>>=1;return N},C.prototype.permute=function(j,k,g,N,x,_){for(var B=0;B<_;B++)N[B]=k[j[B]],x[B]=g[j[B]]},C.prototype.transform=function(j,k,g,N,x,_){this.permute(_,j,k,g,N,x);for(var B=1;B<x;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),f=Math.sin(2*Math.PI/y),p=0;p<x;p+=y)for(var c=w,h=f,d=0;d<B;d++){var b=g[p+d],l=N[p+d],o=g[p+d+B],u=N[p+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[p+d]=b+o,N[p+d]=l+u,g[p+d+B]=b-o,N[p+d+B]=l-u,d!==y&&(n=w*c-f*h,h=w*h+f*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,N=g&1,x=0;for(g=g/2|0;g;g=g>>>1)x++;return 1<<x+1+N},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var N=0;N<g/2;N++){var x=j[N];j[N]=j[g-N-1],j[g-N-1]=x,x=k[N],k[N]=-k[g-N-1],k[g-N-1]=-x}},C.prototype.normalize13b=function(j,k){for(var g=0,N=0;N<k/2;N++){var x=Math.round(j[2*N+1]/k)*8192+Math.round(j[2*N]/k)+g;j[N]=x&67108863,x<67108864?g=0:g=x/67108864|0}return j},C.prototype.convert13b=function(j,k,g,N){for(var x=0,_=0;_<k;_++)x=x+(j[_]|0),g[2*_]=x&8191,x=x>>>13,g[2*_+1]=x&8191,x=x>>>13;for(_=2*k;_<N;++_)g[_]=0;G(x===0),G((x&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var N=2*this.guessLen13b(j.length,k.length),x=this.makeRBT(N),_=this.stub(N),B=new Array(N),y=new Array(N),w=new Array(N),f=new Array(N),p=new Array(N),c=new Array(N),h=g.words;h.length=N,this.convert13b(j.words,j.length,B,N),this.convert13b(k.words,k.length,f,N),this.transform(B,_,y,w,N,x),this.transform(f,_,p,c,N,x);for(var d=0;d<N;d++){var b=y[d]*p[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*p[d],y[d]=b}return this.conjugate(y,w,N),this.transform(y,w,h,_,N,x),this.conjugate(h,_,N),this.normalize13b(h,N),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var N=(this.words[g]|0)*j,x=(N&67108863)+(k&67108863);k>>=26,k+=N/67108864|0,k+=x>>>26,this.words[g]=x&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=W(j);if(k.length===0)return new U(1);for(var g=this,N=0;N<k.length&&k[N]===0;N++,g=g.sqr());if(++N<k.length)for(var x=g.sqr();N<k.length;N++,x=x.sqr())k[N]!==0&&(g=g.mul(x));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=67108863>>>26-k<<26-k,x;if(k!==0){var _=0;for(x=0;x<this.length;x++){var B=this.words[x]&N,y=(this.words[x]|0)-B<<k;this.words[x]=y|_,_=B>>>26-k}_&&(this.words[x]=_,this.length++)}if(g!==0){for(x=this.length-1;x>=0;x--)this.words[x+g]=this.words[x];for(x=0;x<g;x++)this.words[x]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var N;k?N=(k-k%26)/26:N=0;var x=j%26,_=Math.min((j-x)/26,this.length),B=67108863^67108863>>>x<<x,y=g;if(N-=_,N=Math.max(0,N),y){for(var w=0;w<_;w++)y.words[w]=this.words[w];y.length=_}if(_!==0)if(this.length>_)for(this.length-=_,w=0;w<this.length;w++)this.words[w]=this.words[w+_];else this.words[0]=0,this.length=1;var f=0;for(w=this.length-1;w>=0&&(f!==0||w>=N);w--){var p=this.words[w]|0;this.words[w]=f<<26-x|p>>>x,f=p&B}return y&&f!==0&&(y.words[y.length++]=f),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=1<<k;if(this.length<=g)return!1;var x=this.words[g];return!!(x&N)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var N=67108863^67108863>>>k<<k;this.words[this.length-1]&=N}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var N=j.length+g,x;this._expand(N);var _,B=0;for(x=0;x<j.length;x++){_=(this.words[x+g]|0)+B;var y=(j.words[x]|0)*k;_-=y&67108863,B=(_>>26)-(y/67108864|0),this.words[x+g]=_&67108863}for(;x<this.length-g;x++)_=(this.words[x+g]|0)+B,B=_>>26,this.words[x+g]=_&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,x=0;x<this.length;x++)_=-(this.words[x]|0)+B,B=_>>26,this.words[x]=_&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,N=this.clone(),x=j,_=x.words[x.length-1]|0,B=this._countBits(_);g=26-B,g!==0&&(x=x.ushln(g),N.iushln(g),_=x.words[x.length-1]|0);var y=N.length-x.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var f=0;f<w.length;f++)w.words[f]=0}var p=N.clone()._ishlnsubmul(x,1,y);p.negative===0&&(N=p,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(N.words[x.length+c]|0)*67108864+(N.words[x.length+c-1]|0);for(h=Math.min(h/_|0,67108863),N._ishlnsubmul(x,h,c);N.negative!==0;)h--,N.negative=0,N._ishlnsubmul(x,1,c),N.isZero()||(N.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),N.strip(),k!=="div"&&g!==0&&N.iushrn(g),{div:w||null,mod:N}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var N,x,_;return this.negative!==0&&j.negative===0?(_=this.neg().divmod(j,k),k!=="mod"&&(N=_.div.neg()),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.iadd(j)),{div:N,mod:x}):this.negative===0&&j.negative!==0?(_=this.divmod(j.neg(),k),k!=="mod"&&(N=_.div.neg()),{div:N,mod:_.mod}):(this.negative&j.negative)!==0?(_=this.neg().divmod(j.neg(),k),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.isub(j)),{div:_.div,mod:x}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,N=j.ushrn(1),x=j.andln(1),_=g.cmp(N);return _<0||x===1&&_===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,N=this.length-1;N>=0;N--)g=(k*g+(this.words[N]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var N=(this.words[g]|0)+k*67108864;this.words[g]=N/j|0,k=N%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var N=new U(1),x=new U(0),_=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),f=k.clone();!k.isZero();){for(var p=0,c=1;(k.words[0]&c)===0&&p<26;++p,c<<=1);if(p>0)for(k.iushrn(p);p-- >0;)(N.isOdd()||x.isOdd())&&(N.iadd(w),x.isub(f)),N.iushrn(1),x.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(_.isOdd()||B.isOdd())&&(_.iadd(w),B.isub(f)),_.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(_),x.isub(B)):(g.isub(k),_.isub(N),B.isub(x))}return{a:_,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var N=new U(1),x=new U(0),_=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)N.isOdd()&&N.iadd(_),N.iushrn(1);for(var w=0,f=1;(g.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(g.iushrn(w);w-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(x)):(g.isub(k),x.isub(N))}var p;return k.cmpn(1)===0?p=N:p=x,p.cmpn(0)<0&&p.iadd(j),p},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var N=0;k.isEven()&&g.isEven();N++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var x=k.cmp(g);if(x<0){var _=k;k=g,g=_}else if(x===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(N)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,N=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=N,this;for(var x=N,_=g;x!==0&&_<this.length;_++){var B=this.words[_]|0;B+=x,x=B>>>26,B&=67108863,this.words[_]=B}return x!==0&&(this.words[_]=x,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var N=this.words[0]|0;g=N===j?0:N<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var N=this.words[g]|0,x=j.words[g]|0;if(N!==x){N<x?k=-1:N>x&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var N=g<this.n?-1:k.ucmp(this.p);return N===0?(k.words[0]=0,k.length=1):N>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,N=Math.min(j.length,9),x=0;x<N;x++)k.words[x]=j.words[x];if(k.length=N,j.length<=9){j.words[0]=0,j.length=1;return}var _=j.words[9];for(k.words[k.length++]=_&g,x=10;x<j.length;x++){var B=j.words[x]|0;j.words[x-10]=(B&g)<<4|_>>>22,_=B}_>>>=22,j.words[x-10]=_,_===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g<j.length;g++){var N=j.words[g]|0;k+=N*977,j.words[g]=k&67108863,k=N*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var N=(j.words[g]|0)*19+k,x=N&67108863;N>>>=26,j.words[g]=x,k=N}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var N=this.m.subn(1),x=0;!N.isZero()&&N.andln(1)===0;)x++,N.iushrn(1);G(!N.isZero());var _=new U(1).toRed(this),B=_.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var f=this.pow(w,N),p=this.pow(j,N.addn(1).iushrn(1)),c=this.pow(j,N),h=x;c.cmp(_)!==0;){for(var d=c,b=0;d.cmp(_)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(f,new U(1).iushln(h-b-1));p=p.redMul(l),f=l.redSqr(),c=c.redMul(f),h=b}return p},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,N=new Array(1<<g);N[0]=new U(1).toRed(this),N[1]=j;for(var x=2;x<N.length;x++)N[x]=this.mul(N[x-1],j);var _=N[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),x=k.length-1;x>=0;x--){for(var f=k.words[x],p=w-1;p>=0;p--){var c=f>>p&1;if(_!==N[0]&&(_=this.sqr(_)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(x!==0||p!==0))&&(_=this.mul(_,N[B]),y=0,B=0)}w=26}return _},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),kQ=z$({"(disabled):node_modules/crypto-browserify/index.js"(){}}),gQ=z$({"node_modules/brorand/index.js"($,Q){var Y;Q.exports=function(G){return Y||(Y=new Z(null)),Y.generate(G)};function Z(G){this.rand=G}Q.exports.Rand=Z,Z.prototype.generate=function(G){return this._rand(G)},Z.prototype._rand=function(G){var V=new Buffer(G);return F$.getRandomValues(V),V}}}),NQ=z$({"node_modules/miller-rabin/lib/mr.js"($,Q){var Y=jQ(),Z=gQ();function G(V){this.rand=V||new Z.Rand}Q.exports=G,G.create=function(V){return new G(V)},G.prototype._randbelow=function(V){var U=V.bitLength(),X=Math.ceil(U/8);do var K=new Y(this.rand.generate(X));while(K.cmp(V)>=0);return K},G.prototype._randrange=function(V,U){var X=U.sub(V);return V.add(this._randbelow(X))},G.prototype.test=function(V,U,X){var K=V.bitLength(),I=Y.mont(V),J=new Y(1).toRed(I);U||(U=Math.max(1,K/48|0));for(var O=V.subn(1),F=0;!O.testn(F);F++);for(var A=V.shrn(F),W=O.toRed(I),H=!0;U>0;U--){var E=this._randrange(new Y(2),O);X&&X(E);var T=E.toRed(I).redPow(A);if(!(T.cmp(J)===0||T.cmp(W)===0)){for(var D=1;D<F;D++){if(T=T.redSqr(),T.cmp(J)===0)return!1;if(T.cmp(W)===0)break}if(D===F)return!1}}return H},G.prototype.getDivisor=function(V,U){var X=V.bitLength(),K=Y.mont(V),I=new Y(1).toRed(K);U||(U=Math.max(1,X/48|0));for(var J=V.subn(1),O=0;!J.testn(O);O++);for(var F=V.shrn(O),A=J.toRed(K);U>0;U--){var W=this._randrange(new Y(2),J),H=V.gcd(W);if(H.cmpn(1)!==0)return H;var E=W.toRed(K).redPow(F);if(!(E.cmp(I)===0||E.cmp(A)===0)){for(var T=1;T<O;T++){if(E=E.redSqr(),E.cmp(I)===0)return E.fromRed().subn(1).gcd(V);if(E.cmp(A)===0)break}if(T===O)return E=E.redSqr(),E.fromRed().subn(1).gcd(V)}}return!1}}}),xQ=z$({"node_modules/diffie-hellman/lib/generatePrime.js"($,Q){var Y=v$();Q.exports=P,P.simpleSieve=L,P.fermatTest=R;var Z=qQ(),G=new Z(24),V=NQ(),U=new V,X=new Z(1),K=new Z(2),I=new Z(5),J=new Z(16),O=new Z(8),F=new Z(10),A=new Z(3),W=new Z(7),H=new Z(11),E=new Z(4),T=new Z(12),D=null;function C(){if(D!==null)return D;var z=1048576,M=[];M[0]=2;for(var S=1,v=3;v<z;v+=2){for(var q=Math.ceil(Math.sqrt(v)),j=0;j<S&&M[j]<=q&&v%M[j]!==0;j++);S!==j&&M[j]<=q||(M[S++]=v)}return D=M,M}function L(z){for(var M=C(),S=0;S<M.length;S++)if(z.modn(M[S])===0)return z.cmpn(M[S])===0;return!0}function R(z){var M=Z.mont(z);return K.toRed(M).redPow(z.subn(1)).fromRed().cmpn(1)===0}function P(z,M){if(z<16)return M===2||M===5?new Z([140,123]):new Z([140,39]);M=new Z(M);for(var S,v;;){for(S=new Z(Y(Math.ceil(z/8)));S.bitLength()>z;)S.ishrn(1);if(S.isEven()&&S.iadd(X),S.testn(1)||S.iadd(K),M.cmp(K)){if(!M.cmp(I))for(;S.mod(F).cmp(A);)S.iadd(E)}else for(;S.mod(G).cmp(H);)S.iadd(E);if(v=S.shrn(1),L(v)&&L(S)&&R(v)&&R(S)&&U.test(v)&&U.test(S))return S}}}}),_Q=z$({"node_modules/diffie-hellman/lib/primes.json"($,Q){Q.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}}}),BQ=z$({"node_modules/diffie-hellman/lib/dh.js"($,Q){var Y=qQ(),Z=NQ(),G=new Z,V=new Y(24),U=new Y(11),X=new Y(10),K=new Y(3),I=new Y(7),J=xQ(),O=v$();Q.exports=E;function F(D,C){return C=C||"utf8",Buffer.isBuffer(D)||(D=new Buffer(D,C)),this._pub=new Y(D),this}function A(D,C){return C=C||"utf8",Buffer.isBuffer(D)||(D=new Buffer(D,C)),this._priv=new Y(D),this}var W={};function H(D,C){var L=C.toString("hex"),R=[L,D.toString(16)].join("_");if(R in W)return W[R];var P=0;if(D.isEven()||!J.simpleSieve||!J.fermatTest(D)||!G.test(D))return P+=1,L==="02"||L==="05"?P+=8:P+=4,W[R]=P,P;G.test(D.shrn(1))||(P+=2);var z;switch(L){case"02":D.mod(V).cmp(U)&&(P+=8);break;case"05":z=D.mod(X),z.cmp(K)&&z.cmp(I)&&(P+=8);break;default:P+=4}return W[R]=P,P}function E(D,C,L){this.setGenerator(C),this.__prime=new Y(D),this._prime=Y.mont(this.__prime),this._primeLen=D.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,L?(this.setPublicKey=F,this.setPrivateKey=A):this._primeCode=8}Object.defineProperty(E.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=H(this.__prime,this.__gen)),this._primeCode}}),E.prototype.generateKeys=function(){return this._priv||(this._priv=new Y(O(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},E.prototype.computeSecret=function(D){D=new Y(D),D=D.toRed(this._prime);var C=D.redPow(this._priv).fromRed(),L=new Buffer(C.toArray()),R=this.getPrime();if(L.length<R.length){var P=new Buffer(R.length-L.length);P.fill(0),L=Buffer.concat([P,L])}return L},E.prototype.getPublicKey=function(D){return T(this._pub,D)},E.prototype.getPrivateKey=function(D){return T(this._priv,D)},E.prototype.getPrime=function(D){return T(this.__prime,D)},E.prototype.getGenerator=function(D){return T(this._gen,D)},E.prototype.setGenerator=function(D,C){return C=C||"utf8",Buffer.isBuffer(D)||(D=new Buffer(D,C)),this.__gen=D,this._gen=new Y(D),this};function T(D,C){var L=new Buffer(D.toArray());return C?L.toString(C):L}}}),yQ=z$({"node_modules/diffie-hellman/browser.js"($){var Q=xQ(),Y=_Q(),Z=BQ();function G(X){var K=new Buffer(Y[X].prime,"hex"),I=new Buffer(Y[X].gen,"hex");return new Z(K,I)}var V={binary:!0,hex:!0,base64:!0};function U(X,K,I,J){return Buffer.isBuffer(K)||V[K]===void 0?U(X,"binary",K,I):(K=K||"binary",J=J||"binary",I=I||new Buffer([2]),Buffer.isBuffer(I)||(I=new Buffer(I,J)),typeof X=="number"?new Z(Q(X,I),I,!0):(Buffer.isBuffer(X)||(X=new Buffer(X,K)),new Z(X,I,!0)))}$.DiffieHellmanGroup=$.createDiffieHellmanGroup=$.getDiffieHellman=G,$.createDiffieHellman=$.DiffieHellman=U}}),wQ=z$({"node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(N,x){if(!N)throw new Error(x||"Assertion failed")}function V(N,x){N.super_=x;var _=function(){};_.prototype=x.prototype,N.prototype=new _,N.prototype.constructor=N}function U(N,x,_){if(U.isBN(N))return N;this.negative=0,this.words=null,this.length=0,this.red=null,N!==null&&((x==="le"||x==="be")&&(_=x,x=10),this._init(N||0,x||10,_||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X;try{typeof window<"u"&&typeof window.Buffer<"u"?X=window.Buffer:X=R$("buffer").Buffer}catch{}U.isBN=function(N){return N instanceof U?!0:N!==null&&typeof N=="object"&&N.constructor.wordSize===U.wordSize&&Array.isArray(N.words)},U.max=function(N,x){return N.cmp(x)>0?N:x},U.min=function(N,x){return N.cmp(x)<0?N:x},U.prototype._init=function(N,x,_){if(typeof N=="number")return this._initNumber(N,x,_);if(typeof N=="object")return this._initArray(N,x,_);x==="hex"&&(x=16),G(x===(x|0)&&x>=2&&x<=36),N=N.toString().replace(/\s+/g,"");var B=0;N[0]==="-"&&(B++,this.negative=1),B<N.length&&(x===16?this._parseHex(N,B,_):(this._parseBase(N,x,B),_==="le"&&this._initArray(this.toArray(),x,_)))},U.prototype._initNumber=function(N,x,_){N<0&&(this.negative=1,N=-N),N<67108864?(this.words=[N&67108863],this.length=1):N<4503599627370496?(this.words=[N&67108863,N/67108864&67108863],this.length=2):(G(N<9007199254740992),this.words=[N&67108863,N/67108864&67108863,1],this.length=3),_==="le"&&this._initArray(this.toArray(),x,_)},U.prototype._initArray=function(N,x,_){if(G(typeof N.length=="number"),N.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(N.length/3),this.words=new Array(this.length);for(var B=0;B<this.length;B++)this.words[B]=0;var y,w,f=0;if(_==="be")for(B=N.length-1,y=0;B>=0;B-=3)w=N[B]|N[B-1]<<8|N[B-2]<<16,this.words[y]|=w<<f&67108863,this.words[y+1]=w>>>26-f&67108863,f+=24,f>=26&&(f-=26,y++);else if(_==="le")for(B=0,y=0;B<N.length;B+=3)w=N[B]|N[B+1]<<8|N[B+2]<<16,this.words[y]|=w<<f&67108863,this.words[y+1]=w>>>26-f&67108863,f+=24,f>=26&&(f-=26,y++);return this._strip()};function K(N,x){var _=N.charCodeAt(x);if(_>=48&&_<=57)return _-48;if(_>=65&&_<=70)return _-55;if(_>=97&&_<=102)return _-87;G(!1,"Invalid character in "+N)}function I(N,x,_){var B=K(N,_);return _-1>=x&&(B|=K(N,_-1)<<4),B}U.prototype._parseHex=function(N,x,_){this.length=Math.ceil((N.length-x)/6),this.words=new Array(this.length);for(var B=0;B<this.length;B++)this.words[B]=0;var y=0,w=0,f;if(_==="be")for(B=N.length-1;B>=x;B-=2)f=I(N,x,B)<<y,this.words[w]|=f&67108863,y>=18?(y-=18,w+=1,this.words[w]|=f>>>26):y+=8;else{var p=N.length-x;for(B=p%2===0?x+1:x;B<N.length;B+=2)f=I(N,x,B)<<y,this.words[w]|=f&67108863,y>=18?(y-=18,w+=1,this.words[w]|=f>>>26):y+=8}this._strip()};function J(N,x,_,B){for(var y=0,w=0,f=Math.min(N.length,_),p=x;p<f;p++){var c=N.charCodeAt(p)-48;y*=B,c>=49?w=c-49+10:c>=17?w=c-17+10:w=c,G(c>=0&&w<B,"Invalid character"),y+=w}return y}U.prototype._parseBase=function(N,x,_){this.words=[0],this.length=1;for(var B=0,y=1;y<=67108863;y*=x)B++;B--,y=y/x|0;for(var w=N.length-_,f=w%B,p=Math.min(w,w-f)+_,c=0,h=_;h<p;h+=B)c=J(N,h,h+B,x),this.imuln(y),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c);if(f!==0){var d=1;for(c=J(N,h,N.length,x),h=0;h<f;h++)d*=x;this.imuln(d),this.words[0]+c<67108864?this.words[0]+=c:this._iaddn(c)}this._strip()},U.prototype.copy=function(N){N.words=new Array(this.length);for(var x=0;x<this.length;x++)N.words[x]=this.words[x];N.length=this.length,N.negative=this.negative,N.red=this.red};function O(N,x){N.words=x.words,N.length=x.length,N.negative=x.negative,N.red=x.red}if(U.prototype._move=function(N){O(N,this)},U.prototype.clone=function(){var N=new U(null);return this.copy(N),N},U.prototype._expand=function(N){for(;this.length<N;)this.words[this.length++]=0;return this},U.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{U.prototype[Symbol.for("nodejs.util.inspect.custom")]=F}catch{U.prototype.inspect=F}else U.prototype.inspect=F;function F(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var A=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],W=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],H=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(N,x){N=N||10,x=x|0||1;var _;if(N===16||N==="hex"){_="";for(var B=0,y=0,w=0;w<this.length;w++){var f=this.words[w],p=((f<<B|y)&16777215).toString(16);y=f>>>24-B&16777215,B+=2,B>=26&&(B-=26,w--),y!==0||w!==this.length-1?_=A[6-p.length]+p+_:_=p+_}for(y!==0&&(_=y.toString(16)+_);_.length%x!==0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}if(N===(N|0)&&N>=2&&N<=36){var c=W[N],h=H[N];_="";var d=this.clone();for(d.negative=0;!d.isZero();){var b=d.modrn(h).toString(N);d=d.idivn(h),d.isZero()?_=b+_:_=A[c-b.length]+b+_}for(this.isZero()&&(_="0"+_);_.length%x!==0;)_="0"+_;return this.negative!==0&&(_="-"+_),_}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var N=this.words[0];return this.length===2?N+=this.words[1]*67108864:this.length===3&&this.words[2]===1?N+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-N:N},U.prototype.toJSON=function(){return this.toString(16,2)},X&&(U.prototype.toBuffer=function(N,x){return this.toArrayLike(X,N,x)}),U.prototype.toArray=function(N,x){return this.toArrayLike(Array,N,x)};var E=function(N,x){return N.allocUnsafe?N.allocUnsafe(x):new N(x)};U.prototype.toArrayLike=function(N,x,_){this._strip();var B=this.byteLength(),y=_||Math.max(1,B);G(B<=y,"byte array longer than desired length"),G(y>0,"Requested array length <= 0");var w=E(N,y),f=x==="le"?"LE":"BE";return this["_toArrayLike"+f](w,B),w},U.prototype._toArrayLikeLE=function(N,x){for(var _=0,B=0,y=0,w=0;y<this.length;y++){var f=this.words[y]<<w|B;N[_++]=f&255,_<N.length&&(N[_++]=f>>8&255),_<N.length&&(N[_++]=f>>16&255),w===6?(_<N.length&&(N[_++]=f>>24&255),B=0,w=0):(B=f>>>24,w+=2)}if(_<N.length)for(N[_++]=B;_<N.length;)N[_++]=0},U.prototype._toArrayLikeBE=function(N,x){for(var _=N.length-1,B=0,y=0,w=0;y<this.length;y++){var f=this.words[y]<<w|B;N[_--]=f&255,_>=0&&(N[_--]=f>>8&255),_>=0&&(N[_--]=f>>16&255),w===6?(_>=0&&(N[_--]=f>>24&255),B=0,w=0):(B=f>>>24,w+=2)}if(_>=0)for(N[_--]=B;_>=0;)N[_--]=0},Math.clz32?U.prototype._countBits=function(N){return 32-Math.clz32(N)}:U.prototype._countBits=function(N){var x=N,_=0;return x>=4096&&(_+=13,x>>>=13),x>=64&&(_+=7,x>>>=7),x>=8&&(_+=4,x>>>=4),x>=2&&(_+=2,x>>>=2),_+x},U.prototype._zeroBits=function(N){if(N===0)return 26;var x=N,_=0;return(x&8191)===0&&(_+=13,x>>>=13),(x&127)===0&&(_+=7,x>>>=7),(x&15)===0&&(_+=4,x>>>=4),(x&3)===0&&(_+=2,x>>>=2),(x&1)===0&&_++,_},U.prototype.bitLength=function(){var N=this.words[this.length-1],x=this._countBits(N);return(this.length-1)*26+x};function T(N){for(var x=new Array(N.bitLength()),_=0;_<x.length;_++){var B=_/26|0,y=_%26;x[_]=N.words[B]>>>y&1}return x}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var N=0,x=0;x<this.length;x++){var _=this._zeroBits(this.words[x]);if(N+=_,_!==26)break}return N},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(N){return this.negative!==0?this.abs().inotn(N).iaddn(1):this.clone()},U.prototype.fromTwos=function(N){return this.testn(N-1)?this.notn(N).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(N){for(;this.length<N.length;)this.words[this.length++]=0;for(var x=0;x<N.length;x++)this.words[x]=this.words[x]|N.words[x];return this._strip()},U.prototype.ior=function(N){return G((this.negative|N.negative)===0),this.iuor(N)},U.prototype.or=function(N){return this.length>N.length?this.clone().ior(N):N.clone().ior(this)},U.prototype.uor=function(N){return this.length>N.length?this.clone().iuor(N):N.clone().iuor(this)},U.prototype.iuand=function(N){var x;this.length>N.length?x=N:x=this;for(var _=0;_<x.length;_++)this.words[_]=this.words[_]&N.words[_];return this.length=x.length,this._strip()},U.prototype.iand=function(N){return G((this.negative|N.negative)===0),this.iuand(N)},U.prototype.and=function(N){return this.length>N.length?this.clone().iand(N):N.clone().iand(this)},U.prototype.uand=function(N){return this.length>N.length?this.clone().iuand(N):N.clone().iuand(this)},U.prototype.iuxor=function(N){var x,_;this.length>N.length?(x=this,_=N):(x=N,_=this);for(var B=0;B<_.length;B++)this.words[B]=x.words[B]^_.words[B];if(this!==x)for(;B<x.length;B++)this.words[B]=x.words[B];return this.length=x.length,this._strip()},U.prototype.ixor=function(N){return G((this.negative|N.negative)===0),this.iuxor(N)},U.prototype.xor=function(N){return this.length>N.length?this.clone().ixor(N):N.clone().ixor(this)},U.prototype.uxor=function(N){return this.length>N.length?this.clone().iuxor(N):N.clone().iuxor(this)},U.prototype.inotn=function(N){G(typeof N=="number"&&N>=0);var x=Math.ceil(N/26)|0,_=N%26;this._expand(x),_>0&&x--;for(var B=0;B<x;B++)this.words[B]=~this.words[B]&67108863;return _>0&&(this.words[B]=~this.words[B]&67108863>>26-_),this._strip()},U.prototype.notn=function(N){return this.clone().inotn(N)},U.prototype.setn=function(N,x){G(typeof N=="number"&&N>=0);var _=N/26|0,B=N%26;return this._expand(_+1),x?this.words[_]=this.words[_]|1<<B:this.words[_]=this.words[_]&~(1<<B),this._strip()},U.prototype.iadd=function(N){var x;if(this.negative!==0&&N.negative===0)return this.negative=0,x=this.isub(N),this.negative^=1,this._normSign();if(this.negative===0&&N.negative!==0)return N.negative=0,x=this.isub(N),N.negative=1,x._normSign();var _,B;this.length>N.length?(_=this,B=N):(_=N,B=this);for(var y=0,w=0;w<B.length;w++)x=(_.words[w]|0)+(B.words[w]|0)+y,this.words[w]=x&67108863,y=x>>>26;for(;y!==0&&w<_.length;w++)x=(_.words[w]|0)+y,this.words[w]=x&67108863,y=x>>>26;if(this.length=_.length,y!==0)this.words[this.length]=y,this.length++;else if(_!==this)for(;w<_.length;w++)this.words[w]=_.words[w];return this},U.prototype.add=function(N){var x;return N.negative!==0&&this.negative===0?(N.negative=0,x=this.sub(N),N.negative^=1,x):N.negative===0&&this.negative!==0?(this.negative=0,x=N.sub(this),this.negative=1,x):this.length>N.length?this.clone().iadd(N):N.clone().iadd(this)},U.prototype.isub=function(N){if(N.negative!==0){N.negative=0;var x=this.iadd(N);return N.negative=1,x._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(N),this.negative=1,this._normSign();var _=this.cmp(N);if(_===0)return this.negative=0,this.length=1,this.words[0]=0,this;var B,y;_>0?(B=this,y=N):(B=N,y=this);for(var w=0,f=0;f<y.length;f++)x=(B.words[f]|0)-(y.words[f]|0)+w,w=x>>26,this.words[f]=x&67108863;for(;w!==0&&f<B.length;f++)x=(B.words[f]|0)+w,w=x>>26,this.words[f]=x&67108863;if(w===0&&f<B.length&&B!==this)for(;f<B.length;f++)this.words[f]=B.words[f];return this.length=Math.max(this.length,f),B!==this&&(this.negative=1),this._strip()},U.prototype.sub=function(N){return this.clone().isub(N)};function D(N,x,_){_.negative=x.negative^N.negative;var B=N.length+x.length|0;_.length=B,B=B-1|0;var y=N.words[0]|0,w=x.words[0]|0,f=y*w,p=f&67108863,c=f/67108864|0;_.words[0]=p;for(var h=1;h<B;h++){for(var d=c>>>26,b=c&67108863,l=Math.min(h,x.length-1),o=Math.max(0,h-N.length+1);o<=l;o++){var u=h-o|0;y=N.words[u]|0,w=x.words[o]|0,f=y*w+b,d+=f/67108864|0,b=f&67108863}_.words[h]=b|0,c=d|0}return c!==0?_.words[h]=c|0:_.length--,_._strip()}var C=function(N,x,_){var B=N.words,y=x.words,w=_.words,f=0,p,c,h,d=B[0]|0,b=d&8191,l=d>>>13,o=B[1]|0,u=o&8191,n=o>>>13,s=B[2]|0,t=s&8191,m=s>>>13,a=B[3]|0,r=a&8191,e=a>>>13,i=B[4]|0,$0=i&8191,Q0=i>>>13,Y0=B[5]|0,Z0=Y0&8191,G0=Y0>>>13,V0=B[6]|0,U0=V0&8191,X0=V0>>>13,K0=B[7]|0,I0=K0&8191,J0=K0>>>13,O0=B[8]|0,F0=O0&8191,A0=O0>>>13,W0=B[9]|0,H0=W0&8191,E0=W0>>>13,T0=y[0]|0,D0=T0&8191,C0=T0>>>13,L0=y[1]|0,R0=L0&8191,P0=L0>>>13,z0=y[2]|0,M0=z0&8191,S0=z0>>>13,v0=y[3]|0,q0=v0&8191,j0=v0>>>13,k0=y[4]|0,g0=k0&8191,N0=k0>>>13,x0=y[5]|0,_0=x0&8191,B0=x0>>>13,y0=y[6]|0,w0=y0&8191,f0=y0>>>13,p0=y[7]|0,c0=p0&8191,h0=p0>>>13,d0=y[8]|0,b0=d0&8191,l0=d0>>>13,o0=y[9]|0,u0=o0&8191,n0=o0>>>13;_.negative=N.negative^x.negative,_.length=19,p=Math.imul(b,D0),c=Math.imul(b,C0),c=c+Math.imul(l,D0)|0,h=Math.imul(l,C0);var s0=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(s0>>>26)|0,s0&=67108863,p=Math.imul(u,D0),c=Math.imul(u,C0),c=c+Math.imul(n,D0)|0,h=Math.imul(n,C0),p=p+Math.imul(b,R0)|0,c=c+Math.imul(b,P0)|0,c=c+Math.imul(l,R0)|0,h=h+Math.imul(l,P0)|0;var t0=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(t0>>>26)|0,t0&=67108863,p=Math.imul(t,D0),c=Math.imul(t,C0),c=c+Math.imul(m,D0)|0,h=Math.imul(m,C0),p=p+Math.imul(u,R0)|0,c=c+Math.imul(u,P0)|0,c=c+Math.imul(n,R0)|0,h=h+Math.imul(n,P0)|0,p=p+Math.imul(b,M0)|0,c=c+Math.imul(b,S0)|0,c=c+Math.imul(l,M0)|0,h=h+Math.imul(l,S0)|0;var m0=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(m0>>>26)|0,m0&=67108863,p=Math.imul(r,D0),c=Math.imul(r,C0),c=c+Math.imul(e,D0)|0,h=Math.imul(e,C0),p=p+Math.imul(t,R0)|0,c=c+Math.imul(t,P0)|0,c=c+Math.imul(m,R0)|0,h=h+Math.imul(m,P0)|0,p=p+Math.imul(u,M0)|0,c=c+Math.imul(u,S0)|0,c=c+Math.imul(n,M0)|0,h=h+Math.imul(n,S0)|0,p=p+Math.imul(b,q0)|0,c=c+Math.imul(b,j0)|0,c=c+Math.imul(l,q0)|0,h=h+Math.imul(l,j0)|0;var a0=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(a0>>>26)|0,a0&=67108863,p=Math.imul($0,D0),c=Math.imul($0,C0),c=c+Math.imul(Q0,D0)|0,h=Math.imul(Q0,C0),p=p+Math.imul(r,R0)|0,c=c+Math.imul(r,P0)|0,c=c+Math.imul(e,R0)|0,h=h+Math.imul(e,P0)|0,p=p+Math.imul(t,M0)|0,c=c+Math.imul(t,S0)|0,c=c+Math.imul(m,M0)|0,h=h+Math.imul(m,S0)|0,p=p+Math.imul(u,q0)|0,c=c+Math.imul(u,j0)|0,c=c+Math.imul(n,q0)|0,h=h+Math.imul(n,j0)|0,p=p+Math.imul(b,g0)|0,c=c+Math.imul(b,N0)|0,c=c+Math.imul(l,g0)|0,h=h+Math.imul(l,N0)|0;var r0=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(r0>>>26)|0,r0&=67108863,p=Math.imul(Z0,D0),c=Math.imul(Z0,C0),c=c+Math.imul(G0,D0)|0,h=Math.imul(G0,C0),p=p+Math.imul($0,R0)|0,c=c+Math.imul($0,P0)|0,c=c+Math.imul(Q0,R0)|0,h=h+Math.imul(Q0,P0)|0,p=p+Math.imul(r,M0)|0,c=c+Math.imul(r,S0)|0,c=c+Math.imul(e,M0)|0,h=h+Math.imul(e,S0)|0,p=p+Math.imul(t,q0)|0,c=c+Math.imul(t,j0)|0,c=c+Math.imul(m,q0)|0,h=h+Math.imul(m,j0)|0,p=p+Math.imul(u,g0)|0,c=c+Math.imul(u,N0)|0,c=c+Math.imul(n,g0)|0,h=h+Math.imul(n,N0)|0,p=p+Math.imul(b,_0)|0,c=c+Math.imul(b,B0)|0,c=c+Math.imul(l,_0)|0,h=h+Math.imul(l,B0)|0;var e0=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(e0>>>26)|0,e0&=67108863,p=Math.imul(U0,D0),c=Math.imul(U0,C0),c=c+Math.imul(X0,D0)|0,h=Math.imul(X0,C0),p=p+Math.imul(Z0,R0)|0,c=c+Math.imul(Z0,P0)|0,c=c+Math.imul(G0,R0)|0,h=h+Math.imul(G0,P0)|0,p=p+Math.imul($0,M0)|0,c=c+Math.imul($0,S0)|0,c=c+Math.imul(Q0,M0)|0,h=h+Math.imul(Q0,S0)|0,p=p+Math.imul(r,q0)|0,c=c+Math.imul(r,j0)|0,c=c+Math.imul(e,q0)|0,h=h+Math.imul(e,j0)|0,p=p+Math.imul(t,g0)|0,c=c+Math.imul(t,N0)|0,c=c+Math.imul(m,g0)|0,h=h+Math.imul(m,N0)|0,p=p+Math.imul(u,_0)|0,c=c+Math.imul(u,B0)|0,c=c+Math.imul(n,_0)|0,h=h+Math.imul(n,B0)|0,p=p+Math.imul(b,w0)|0,c=c+Math.imul(b,f0)|0,c=c+Math.imul(l,w0)|0,h=h+Math.imul(l,f0)|0;var i0=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(i0>>>26)|0,i0&=67108863,p=Math.imul(I0,D0),c=Math.imul(I0,C0),c=c+Math.imul(J0,D0)|0,h=Math.imul(J0,C0),p=p+Math.imul(U0,R0)|0,c=c+Math.imul(U0,P0)|0,c=c+Math.imul(X0,R0)|0,h=h+Math.imul(X0,P0)|0,p=p+Math.imul(Z0,M0)|0,c=c+Math.imul(Z0,S0)|0,c=c+Math.imul(G0,M0)|0,h=h+Math.imul(G0,S0)|0,p=p+Math.imul($0,q0)|0,c=c+Math.imul($0,j0)|0,c=c+Math.imul(Q0,q0)|0,h=h+Math.imul(Q0,j0)|0,p=p+Math.imul(r,g0)|0,c=c+Math.imul(r,N0)|0,c=c+Math.imul(e,g0)|0,h=h+Math.imul(e,N0)|0,p=p+Math.imul(t,_0)|0,c=c+Math.imul(t,B0)|0,c=c+Math.imul(m,_0)|0,h=h+Math.imul(m,B0)|0,p=p+Math.imul(u,w0)|0,c=c+Math.imul(u,f0)|0,c=c+Math.imul(n,w0)|0,h=h+Math.imul(n,f0)|0,p=p+Math.imul(b,c0)|0,c=c+Math.imul(b,h0)|0,c=c+Math.imul(l,c0)|0,h=h+Math.imul(l,h0)|0;var $$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+($$>>>26)|0,$$&=67108863,p=Math.imul(F0,D0),c=Math.imul(F0,C0),c=c+Math.imul(A0,D0)|0,h=Math.imul(A0,C0),p=p+Math.imul(I0,R0)|0,c=c+Math.imul(I0,P0)|0,c=c+Math.imul(J0,R0)|0,h=h+Math.imul(J0,P0)|0,p=p+Math.imul(U0,M0)|0,c=c+Math.imul(U0,S0)|0,c=c+Math.imul(X0,M0)|0,h=h+Math.imul(X0,S0)|0,p=p+Math.imul(Z0,q0)|0,c=c+Math.imul(Z0,j0)|0,c=c+Math.imul(G0,q0)|0,h=h+Math.imul(G0,j0)|0,p=p+Math.imul($0,g0)|0,c=c+Math.imul($0,N0)|0,c=c+Math.imul(Q0,g0)|0,h=h+Math.imul(Q0,N0)|0,p=p+Math.imul(r,_0)|0,c=c+Math.imul(r,B0)|0,c=c+Math.imul(e,_0)|0,h=h+Math.imul(e,B0)|0,p=p+Math.imul(t,w0)|0,c=c+Math.imul(t,f0)|0,c=c+Math.imul(m,w0)|0,h=h+Math.imul(m,f0)|0,p=p+Math.imul(u,c0)|0,c=c+Math.imul(u,h0)|0,c=c+Math.imul(n,c0)|0,h=h+Math.imul(n,h0)|0,p=p+Math.imul(b,b0)|0,c=c+Math.imul(b,l0)|0,c=c+Math.imul(l,b0)|0,h=h+Math.imul(l,l0)|0;var Q$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,p=Math.imul(H0,D0),c=Math.imul(H0,C0),c=c+Math.imul(E0,D0)|0,h=Math.imul(E0,C0),p=p+Math.imul(F0,R0)|0,c=c+Math.imul(F0,P0)|0,c=c+Math.imul(A0,R0)|0,h=h+Math.imul(A0,P0)|0,p=p+Math.imul(I0,M0)|0,c=c+Math.imul(I0,S0)|0,c=c+Math.imul(J0,M0)|0,h=h+Math.imul(J0,S0)|0,p=p+Math.imul(U0,q0)|0,c=c+Math.imul(U0,j0)|0,c=c+Math.imul(X0,q0)|0,h=h+Math.imul(X0,j0)|0,p=p+Math.imul(Z0,g0)|0,c=c+Math.imul(Z0,N0)|0,c=c+Math.imul(G0,g0)|0,h=h+Math.imul(G0,N0)|0,p=p+Math.imul($0,_0)|0,c=c+Math.imul($0,B0)|0,c=c+Math.imul(Q0,_0)|0,h=h+Math.imul(Q0,B0)|0,p=p+Math.imul(r,w0)|0,c=c+Math.imul(r,f0)|0,c=c+Math.imul(e,w0)|0,h=h+Math.imul(e,f0)|0,p=p+Math.imul(t,c0)|0,c=c+Math.imul(t,h0)|0,c=c+Math.imul(m,c0)|0,h=h+Math.imul(m,h0)|0,p=p+Math.imul(u,b0)|0,c=c+Math.imul(u,l0)|0,c=c+Math.imul(n,b0)|0,h=h+Math.imul(n,l0)|0,p=p+Math.imul(b,u0)|0,c=c+Math.imul(b,n0)|0,c=c+Math.imul(l,u0)|0,h=h+Math.imul(l,n0)|0;var Y$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,p=Math.imul(H0,R0),c=Math.imul(H0,P0),c=c+Math.imul(E0,R0)|0,h=Math.imul(E0,P0),p=p+Math.imul(F0,M0)|0,c=c+Math.imul(F0,S0)|0,c=c+Math.imul(A0,M0)|0,h=h+Math.imul(A0,S0)|0,p=p+Math.imul(I0,q0)|0,c=c+Math.imul(I0,j0)|0,c=c+Math.imul(J0,q0)|0,h=h+Math.imul(J0,j0)|0,p=p+Math.imul(U0,g0)|0,c=c+Math.imul(U0,N0)|0,c=c+Math.imul(X0,g0)|0,h=h+Math.imul(X0,N0)|0,p=p+Math.imul(Z0,_0)|0,c=c+Math.imul(Z0,B0)|0,c=c+Math.imul(G0,_0)|0,h=h+Math.imul(G0,B0)|0,p=p+Math.imul($0,w0)|0,c=c+Math.imul($0,f0)|0,c=c+Math.imul(Q0,w0)|0,h=h+Math.imul(Q0,f0)|0,p=p+Math.imul(r,c0)|0,c=c+Math.imul(r,h0)|0,c=c+Math.imul(e,c0)|0,h=h+Math.imul(e,h0)|0,p=p+Math.imul(t,b0)|0,c=c+Math.imul(t,l0)|0,c=c+Math.imul(m,b0)|0,h=h+Math.imul(m,l0)|0,p=p+Math.imul(u,u0)|0,c=c+Math.imul(u,n0)|0,c=c+Math.imul(n,u0)|0,h=h+Math.imul(n,n0)|0;var Z$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,p=Math.imul(H0,M0),c=Math.imul(H0,S0),c=c+Math.imul(E0,M0)|0,h=Math.imul(E0,S0),p=p+Math.imul(F0,q0)|0,c=c+Math.imul(F0,j0)|0,c=c+Math.imul(A0,q0)|0,h=h+Math.imul(A0,j0)|0,p=p+Math.imul(I0,g0)|0,c=c+Math.imul(I0,N0)|0,c=c+Math.imul(J0,g0)|0,h=h+Math.imul(J0,N0)|0,p=p+Math.imul(U0,_0)|0,c=c+Math.imul(U0,B0)|0,c=c+Math.imul(X0,_0)|0,h=h+Math.imul(X0,B0)|0,p=p+Math.imul(Z0,w0)|0,c=c+Math.imul(Z0,f0)|0,c=c+Math.imul(G0,w0)|0,h=h+Math.imul(G0,f0)|0,p=p+Math.imul($0,c0)|0,c=c+Math.imul($0,h0)|0,c=c+Math.imul(Q0,c0)|0,h=h+Math.imul(Q0,h0)|0,p=p+Math.imul(r,b0)|0,c=c+Math.imul(r,l0)|0,c=c+Math.imul(e,b0)|0,h=h+Math.imul(e,l0)|0,p=p+Math.imul(t,u0)|0,c=c+Math.imul(t,n0)|0,c=c+Math.imul(m,u0)|0,h=h+Math.imul(m,n0)|0;var G$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(G$>>>26)|0,G$&=67108863,p=Math.imul(H0,q0),c=Math.imul(H0,j0),c=c+Math.imul(E0,q0)|0,h=Math.imul(E0,j0),p=p+Math.imul(F0,g0)|0,c=c+Math.imul(F0,N0)|0,c=c+Math.imul(A0,g0)|0,h=h+Math.imul(A0,N0)|0,p=p+Math.imul(I0,_0)|0,c=c+Math.imul(I0,B0)|0,c=c+Math.imul(J0,_0)|0,h=h+Math.imul(J0,B0)|0,p=p+Math.imul(U0,w0)|0,c=c+Math.imul(U0,f0)|0,c=c+Math.imul(X0,w0)|0,h=h+Math.imul(X0,f0)|0,p=p+Math.imul(Z0,c0)|0,c=c+Math.imul(Z0,h0)|0,c=c+Math.imul(G0,c0)|0,h=h+Math.imul(G0,h0)|0,p=p+Math.imul($0,b0)|0,c=c+Math.imul($0,l0)|0,c=c+Math.imul(Q0,b0)|0,h=h+Math.imul(Q0,l0)|0,p=p+Math.imul(r,u0)|0,c=c+Math.imul(r,n0)|0,c=c+Math.imul(e,u0)|0,h=h+Math.imul(e,n0)|0;var V$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(V$>>>26)|0,V$&=67108863,p=Math.imul(H0,g0),c=Math.imul(H0,N0),c=c+Math.imul(E0,g0)|0,h=Math.imul(E0,N0),p=p+Math.imul(F0,_0)|0,c=c+Math.imul(F0,B0)|0,c=c+Math.imul(A0,_0)|0,h=h+Math.imul(A0,B0)|0,p=p+Math.imul(I0,w0)|0,c=c+Math.imul(I0,f0)|0,c=c+Math.imul(J0,w0)|0,h=h+Math.imul(J0,f0)|0,p=p+Math.imul(U0,c0)|0,c=c+Math.imul(U0,h0)|0,c=c+Math.imul(X0,c0)|0,h=h+Math.imul(X0,h0)|0,p=p+Math.imul(Z0,b0)|0,c=c+Math.imul(Z0,l0)|0,c=c+Math.imul(G0,b0)|0,h=h+Math.imul(G0,l0)|0,p=p+Math.imul($0,u0)|0,c=c+Math.imul($0,n0)|0,c=c+Math.imul(Q0,u0)|0,h=h+Math.imul(Q0,n0)|0;var U$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(U$>>>26)|0,U$&=67108863,p=Math.imul(H0,_0),c=Math.imul(H0,B0),c=c+Math.imul(E0,_0)|0,h=Math.imul(E0,B0),p=p+Math.imul(F0,w0)|0,c=c+Math.imul(F0,f0)|0,c=c+Math.imul(A0,w0)|0,h=h+Math.imul(A0,f0)|0,p=p+Math.imul(I0,c0)|0,c=c+Math.imul(I0,h0)|0,c=c+Math.imul(J0,c0)|0,h=h+Math.imul(J0,h0)|0,p=p+Math.imul(U0,b0)|0,c=c+Math.imul(U0,l0)|0,c=c+Math.imul(X0,b0)|0,h=h+Math.imul(X0,l0)|0,p=p+Math.imul(Z0,u0)|0,c=c+Math.imul(Z0,n0)|0,c=c+Math.imul(G0,u0)|0,h=h+Math.imul(G0,n0)|0;var X$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(X$>>>26)|0,X$&=67108863,p=Math.imul(H0,w0),c=Math.imul(H0,f0),c=c+Math.imul(E0,w0)|0,h=Math.imul(E0,f0),p=p+Math.imul(F0,c0)|0,c=c+Math.imul(F0,h0)|0,c=c+Math.imul(A0,c0)|0,h=h+Math.imul(A0,h0)|0,p=p+Math.imul(I0,b0)|0,c=c+Math.imul(I0,l0)|0,c=c+Math.imul(J0,b0)|0,h=h+Math.imul(J0,l0)|0,p=p+Math.imul(U0,u0)|0,c=c+Math.imul(U0,n0)|0,c=c+Math.imul(X0,u0)|0,h=h+Math.imul(X0,n0)|0;var K$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(K$>>>26)|0,K$&=67108863,p=Math.imul(H0,c0),c=Math.imul(H0,h0),c=c+Math.imul(E0,c0)|0,h=Math.imul(E0,h0),p=p+Math.imul(F0,b0)|0,c=c+Math.imul(F0,l0)|0,c=c+Math.imul(A0,b0)|0,h=h+Math.imul(A0,l0)|0,p=p+Math.imul(I0,u0)|0,c=c+Math.imul(I0,n0)|0,c=c+Math.imul(J0,u0)|0,h=h+Math.imul(J0,n0)|0;var I$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(I$>>>26)|0,I$&=67108863,p=Math.imul(H0,b0),c=Math.imul(H0,l0),c=c+Math.imul(E0,b0)|0,h=Math.imul(E0,l0),p=p+Math.imul(F0,u0)|0,c=c+Math.imul(F0,n0)|0,c=c+Math.imul(A0,u0)|0,h=h+Math.imul(A0,n0)|0;var J$=(f+p|0)+((c&8191)<<13)|0;f=(h+(c>>>13)|0)+(J$>>>26)|0,J$&=67108863,p=Math.imul(H0,u0),c=Math.imul(H0,n0),c=c+Math.imul(E0,u0)|0,h=Math.imul(E0,n0);var O$=(f+p|0)+((c&8191)<<13)|0;return f=(h+(c>>>13)|0)+(O$>>>26)|0,O$&=67108863,w[0]=s0,w[1]=t0,w[2]=m0,w[3]=a0,w[4]=r0,w[5]=e0,w[6]=i0,w[7]=$$,w[8]=Q$,w[9]=Y$,w[10]=Z$,w[11]=G$,w[12]=V$,w[13]=U$,w[14]=X$,w[15]=K$,w[16]=I$,w[17]=J$,w[18]=O$,f!==0&&(w[19]=f,_.length++),_};Math.imul||(C=D);function L(N,x,_){_.negative=x.negative^N.negative,_.length=N.length+x.length;for(var B=0,y=0,w=0;w<_.length-1;w++){var f=y;y=0;for(var p=B&67108863,c=Math.min(w,x.length-1),h=Math.max(0,w-N.length+1);h<=c;h++){var d=w-h,b=N.words[d]|0,l=x.words[h]|0,o=b*l,u=o&67108863;f=f+(o/67108864|0)|0,u=u+p|0,p=u&67108863,f=f+(u>>>26)|0,y+=f>>>26,f&=67108863}_.words[w]=p,B=f,f=y}return B!==0?_.words[w]=B:_.length--,_._strip()}function R(N,x,_){return L(N,x,_)}U.prototype.mulTo=function(N,x){var _,B=this.length+N.length;return this.length===10&&N.length===10?_=C(this,N,x):B<63?_=D(this,N,x):B<1024?_=L(this,N,x):_=R(this,N,x),_};function P(N,x){this.x=N,this.y=x}P.prototype.makeRBT=function(N){for(var x=new Array(N),_=U.prototype._countBits(N)-1,B=0;B<N;B++)x[B]=this.revBin(B,_,N);return x},P.prototype.revBin=function(N,x,_){if(N===0||N===_-1)return N;for(var B=0,y=0;y<x;y++)B|=(N&1)<<x-y-1,N>>=1;return B},P.prototype.permute=function(N,x,_,B,y,w){for(var f=0;f<w;f++)B[f]=x[N[f]],y[f]=_[N[f]]},P.prototype.transform=function(N,x,_,B,y,w){this.permute(w,N,x,_,B,y);for(var f=1;f<y;f<<=1)for(var p=f<<1,c=Math.cos(2*Math.PI/p),h=Math.sin(2*Math.PI/p),d=0;d<y;d+=p)for(var b=c,l=h,o=0;o<f;o++){var u=_[d+o],n=B[d+o],s=_[d+o+f],t=B[d+o+f],m=b*s-l*t;t=b*t+l*s,s=m,_[d+o]=u+s,B[d+o]=n+t,_[d+o+f]=u-s,B[d+o+f]=n-t,o!==p&&(m=c*b-h*l,l=c*l+h*b,b=m)}},P.prototype.guessLen13b=function(N,x){var _=Math.max(x,N)|1,B=_&1,y=0;for(_=_/2|0;_;_=_>>>1)y++;return 1<<y+1+B},P.prototype.conjugate=function(N,x,_){if(!(_<=1))for(var B=0;B<_/2;B++){var y=N[B];N[B]=N[_-B-1],N[_-B-1]=y,y=x[B],x[B]=-x[_-B-1],x[_-B-1]=-y}},P.prototype.normalize13b=function(N,x){for(var _=0,B=0;B<x/2;B++){var y=Math.round(N[2*B+1]/x)*8192+Math.round(N[2*B]/x)+_;N[B]=y&67108863,y<67108864?_=0:_=y/67108864|0}return N},P.prototype.convert13b=function(N,x,_,B){for(var y=0,w=0;w<x;w++)y=y+(N[w]|0),_[2*w]=y&8191,y=y>>>13,_[2*w+1]=y&8191,y=y>>>13;for(w=2*x;w<B;++w)_[w]=0;G(y===0),G((y&-8192)===0)},P.prototype.stub=function(N){for(var x=new Array(N),_=0;_<N;_++)x[_]=0;return x},P.prototype.mulp=function(N,x,_){var B=2*this.guessLen13b(N.length,x.length),y=this.makeRBT(B),w=this.stub(B),f=new Array(B),p=new Array(B),c=new Array(B),h=new Array(B),d=new Array(B),b=new Array(B),l=_.words;l.length=B,this.convert13b(N.words,N.length,f,B),this.convert13b(x.words,x.length,h,B),this.transform(f,w,p,c,B,y),this.transform(h,w,d,b,B,y);for(var o=0;o<B;o++){var u=p[o]*d[o]-c[o]*b[o];c[o]=p[o]*b[o]+c[o]*d[o],p[o]=u}return this.conjugate(p,c,B),this.transform(p,c,l,w,B,y),this.conjugate(l,w,B),this.normalize13b(l,B),_.negative=N.negative^x.negative,_.length=N.length+x.length,_._strip()},U.prototype.mul=function(N){var x=new U(null);return x.words=new Array(this.length+N.length),this.mulTo(N,x)},U.prototype.mulf=function(N){var x=new U(null);return x.words=new Array(this.length+N.length),R(this,N,x)},U.prototype.imul=function(N){return this.clone().mulTo(N,this)},U.prototype.imuln=function(N){var x=N<0;x&&(N=-N),G(typeof N=="number"),G(N<67108864);for(var _=0,B=0;B<this.length;B++){var y=(this.words[B]|0)*N,w=(y&67108863)+(_&67108863);_>>=26,_+=y/67108864|0,_+=w>>>26,this.words[B]=w&67108863}return _!==0&&(this.words[B]=_,this.length++),x?this.ineg():this},U.prototype.muln=function(N){return this.clone().imuln(N)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(N){var x=T(N);if(x.length===0)return new U(1);for(var _=this,B=0;B<x.length&&x[B]===0;B++,_=_.sqr());if(++B<x.length)for(var y=_.sqr();B<x.length;B++,y=y.sqr())x[B]!==0&&(_=_.mul(y));return _},U.prototype.iushln=function(N){G(typeof N=="number"&&N>=0);var x=N%26,_=(N-x)/26,B=67108863>>>26-x<<26-x,y;if(x!==0){var w=0;for(y=0;y<this.length;y++){var f=this.words[y]&B,p=(this.words[y]|0)-f<<x;this.words[y]=p|w,w=f>>>26-x}w&&(this.words[y]=w,this.length++)}if(_!==0){for(y=this.length-1;y>=0;y--)this.words[y+_]=this.words[y];for(y=0;y<_;y++)this.words[y]=0;this.length+=_}return this._strip()},U.prototype.ishln=function(N){return G(this.negative===0),this.iushln(N)},U.prototype.iushrn=function(N,x,_){G(typeof N=="number"&&N>=0);var B;x?B=(x-x%26)/26:B=0;var y=N%26,w=Math.min((N-y)/26,this.length),f=67108863^67108863>>>y<<y,p=_;if(B-=w,B=Math.max(0,B),p){for(var c=0;c<w;c++)p.words[c]=this.words[c];p.length=w}if(w!==0)if(this.length>w)for(this.length-=w,c=0;c<this.length;c++)this.words[c]=this.words[c+w];else this.words[0]=0,this.length=1;var h=0;for(c=this.length-1;c>=0&&(h!==0||c>=B);c--){var d=this.words[c]|0;this.words[c]=h<<26-y|d>>>y,h=d&f}return p&&h!==0&&(p.words[p.length++]=h),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},U.prototype.ishrn=function(N,x,_){return G(this.negative===0),this.iushrn(N,x,_)},U.prototype.shln=function(N){return this.clone().ishln(N)},U.prototype.ushln=function(N){return this.clone().iushln(N)},U.prototype.shrn=function(N){return this.clone().ishrn(N)},U.prototype.ushrn=function(N){return this.clone().iushrn(N)},U.prototype.testn=function(N){G(typeof N=="number"&&N>=0);var x=N%26,_=(N-x)/26,B=1<<x;if(this.length<=_)return!1;var y=this.words[_];return!!(y&B)},U.prototype.imaskn=function(N){G(typeof N=="number"&&N>=0);var x=N%26,_=(N-x)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=_)return this;if(x!==0&&_++,this.length=Math.min(_,this.length),x!==0){var B=67108863^67108863>>>x<<x;this.words[this.length-1]&=B}return this._strip()},U.prototype.maskn=function(N){return this.clone().imaskn(N)},U.prototype.iaddn=function(N){return G(typeof N=="number"),G(N<67108864),N<0?this.isubn(-N):this.negative!==0?this.length===1&&(this.words[0]|0)<=N?(this.words[0]=N-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(N),this.negative=1,this):this._iaddn(N)},U.prototype._iaddn=function(N){this.words[0]+=N;for(var x=0;x<this.length&&this.words[x]>=67108864;x++)this.words[x]-=67108864,x===this.length-1?this.words[x+1]=1:this.words[x+1]++;return this.length=Math.max(this.length,x+1),this},U.prototype.isubn=function(N){if(G(typeof N=="number"),G(N<67108864),N<0)return this.iaddn(-N);if(this.negative!==0)return this.negative=0,this.iaddn(N),this.negative=1,this;if(this.words[0]-=N,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var x=0;x<this.length&&this.words[x]<0;x++)this.words[x]+=67108864,this.words[x+1]-=1;return this._strip()},U.prototype.addn=function(N){return this.clone().iaddn(N)},U.prototype.subn=function(N){return this.clone().isubn(N)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(N,x,_){var B=N.length+_,y;this._expand(B);var w,f=0;for(y=0;y<N.length;y++){w=(this.words[y+_]|0)+f;var p=(N.words[y]|0)*x;w-=p&67108863,f=(w>>26)-(p/67108864|0),this.words[y+_]=w&67108863}for(;y<this.length-_;y++)w=(this.words[y+_]|0)+f,f=w>>26,this.words[y+_]=w&67108863;if(f===0)return this._strip();for(G(f===-1),f=0,y=0;y<this.length;y++)w=-(this.words[y]|0)+f,f=w>>26,this.words[y]=w&67108863;return this.negative=1,this._strip()},U.prototype._wordDiv=function(N,x){var _=this.length-N.length,B=this.clone(),y=N,w=y.words[y.length-1]|0,f=this._countBits(w);_=26-f,_!==0&&(y=y.ushln(_),B.iushln(_),w=y.words[y.length-1]|0);var p=B.length-y.length,c;if(x!=="mod"){c=new U(null),c.length=p+1,c.words=new Array(c.length);for(var h=0;h<c.length;h++)c.words[h]=0}var d=B.clone()._ishlnsubmul(y,1,p);d.negative===0&&(B=d,c&&(c.words[p]=1));for(var b=p-1;b>=0;b--){var l=(B.words[y.length+b]|0)*67108864+(B.words[y.length+b-1]|0);for(l=Math.min(l/w|0,67108863),B._ishlnsubmul(y,l,b);B.negative!==0;)l--,B.negative=0,B._ishlnsubmul(y,1,b),B.isZero()||(B.negative^=1);c&&(c.words[b]=l)}return c&&c._strip(),B._strip(),x!=="div"&&_!==0&&B.iushrn(_),{div:c||null,mod:B}},U.prototype.divmod=function(N,x,_){if(G(!N.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var B,y,w;return this.negative!==0&&N.negative===0?(w=this.neg().divmod(N,x),x!=="mod"&&(B=w.div.neg()),x!=="div"&&(y=w.mod.neg(),_&&y.negative!==0&&y.iadd(N)),{div:B,mod:y}):this.negative===0&&N.negative!==0?(w=this.divmod(N.neg(),x),x!=="mod"&&(B=w.div.neg()),{div:B,mod:w.mod}):(this.negative&N.negative)!==0?(w=this.neg().divmod(N.neg(),x),x!=="div"&&(y=w.mod.neg(),_&&y.negative!==0&&y.isub(N)),{div:w.div,mod:y}):N.length>this.length||this.cmp(N)<0?{div:new U(0),mod:this}:N.length===1?x==="div"?{div:this.divn(N.words[0]),mod:null}:x==="mod"?{div:null,mod:new U(this.modrn(N.words[0]))}:{div:this.divn(N.words[0]),mod:new U(this.modrn(N.words[0]))}:this._wordDiv(N,x)},U.prototype.div=function(N){return this.divmod(N,"div",!1).div},U.prototype.mod=function(N){return this.divmod(N,"mod",!1).mod},U.prototype.umod=function(N){return this.divmod(N,"mod",!0).mod},U.prototype.divRound=function(N){var x=this.divmod(N);if(x.mod.isZero())return x.div;var _=x.div.negative!==0?x.mod.isub(N):x.mod,B=N.ushrn(1),y=N.andln(1),w=_.cmp(B);return w<0||y===1&&w===0?x.div:x.div.negative!==0?x.div.isubn(1):x.div.iaddn(1)},U.prototype.modrn=function(N){var x=N<0;x&&(N=-N),G(N<=67108863);for(var _=(1<<26)%N,B=0,y=this.length-1;y>=0;y--)B=(_*B+(this.words[y]|0))%N;return x?-B:B},U.prototype.modn=function(N){return this.modrn(N)},U.prototype.idivn=function(N){var x=N<0;x&&(N=-N),G(N<=67108863);for(var _=0,B=this.length-1;B>=0;B--){var y=(this.words[B]|0)+_*67108864;this.words[B]=y/N|0,_=y%N}return this._strip(),x?this.ineg():this},U.prototype.divn=function(N){return this.clone().idivn(N)},U.prototype.egcd=function(N){G(N.negative===0),G(!N.isZero());var x=this,_=N.clone();x.negative!==0?x=x.umod(N):x=x.clone();for(var B=new U(1),y=new U(0),w=new U(0),f=new U(1),p=0;x.isEven()&&_.isEven();)x.iushrn(1),_.iushrn(1),++p;for(var c=_.clone(),h=x.clone();!x.isZero();){for(var d=0,b=1;(x.words[0]&b)===0&&d<26;++d,b<<=1);if(d>0)for(x.iushrn(d);d-- >0;)(B.isOdd()||y.isOdd())&&(B.iadd(c),y.isub(h)),B.iushrn(1),y.iushrn(1);for(var l=0,o=1;(_.words[0]&o)===0&&l<26;++l,o<<=1);if(l>0)for(_.iushrn(l);l-- >0;)(w.isOdd()||f.isOdd())&&(w.iadd(c),f.isub(h)),w.iushrn(1),f.iushrn(1);x.cmp(_)>=0?(x.isub(_),B.isub(w),y.isub(f)):(_.isub(x),w.isub(B),f.isub(y))}return{a:w,b:f,gcd:_.iushln(p)}},U.prototype._invmp=function(N){G(N.negative===0),G(!N.isZero());var x=this,_=N.clone();x.negative!==0?x=x.umod(N):x=x.clone();for(var B=new U(1),y=new U(0),w=_.clone();x.cmpn(1)>0&&_.cmpn(1)>0;){for(var f=0,p=1;(x.words[0]&p)===0&&f<26;++f,p<<=1);if(f>0)for(x.iushrn(f);f-- >0;)B.isOdd()&&B.iadd(w),B.iushrn(1);for(var c=0,h=1;(_.words[0]&h)===0&&c<26;++c,h<<=1);if(c>0)for(_.iushrn(c);c-- >0;)y.isOdd()&&y.iadd(w),y.iushrn(1);x.cmp(_)>=0?(x.isub(_),B.isub(y)):(_.isub(x),y.isub(B))}var d;return x.cmpn(1)===0?d=B:d=y,d.cmpn(0)<0&&d.iadd(N),d},U.prototype.gcd=function(N){if(this.isZero())return N.abs();if(N.isZero())return this.abs();var x=this.clone(),_=N.clone();x.negative=0,_.negative=0;for(var B=0;x.isEven()&&_.isEven();B++)x.iushrn(1),_.iushrn(1);do{for(;x.isEven();)x.iushrn(1);for(;_.isEven();)_.iushrn(1);var y=x.cmp(_);if(y<0){var w=x;x=_,_=w}else if(y===0||_.cmpn(1)===0)break;x.isub(_)}while(!0);return _.iushln(B)},U.prototype.invm=function(N){return this.egcd(N).a.umod(N)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(N){return this.words[0]&N},U.prototype.bincn=function(N){G(typeof N=="number");var x=N%26,_=(N-x)/26,B=1<<x;if(this.length<=_)return this._expand(_+1),this.words[_]|=B,this;for(var y=B,w=_;y!==0&&w<this.length;w++){var f=this.words[w]|0;f+=y,y=f>>>26,f&=67108863,this.words[w]=f}return y!==0&&(this.words[w]=y,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(N){var x=N<0;if(this.negative!==0&&!x)return-1;if(this.negative===0&&x)return 1;this._strip();var _;if(this.length>1)_=1;else{x&&(N=-N),G(N<=67108863,"Number is too big");var B=this.words[0]|0;_=B===N?0:B<N?-1:1}return this.negative!==0?-_|0:_},U.prototype.cmp=function(N){if(this.negative!==0&&N.negative===0)return-1;if(this.negative===0&&N.negative!==0)return 1;var x=this.ucmp(N);return this.negative!==0?-x|0:x},U.prototype.ucmp=function(N){if(this.length>N.length)return 1;if(this.length<N.length)return-1;for(var x=0,_=this.length-1;_>=0;_--){var B=this.words[_]|0,y=N.words[_]|0;if(B!==y){B<y?x=-1:B>y&&(x=1);break}}return x},U.prototype.gtn=function(N){return this.cmpn(N)===1},U.prototype.gt=function(N){return this.cmp(N)===1},U.prototype.gten=function(N){return this.cmpn(N)>=0},U.prototype.gte=function(N){return this.cmp(N)>=0},U.prototype.ltn=function(N){return this.cmpn(N)===-1},U.prototype.lt=function(N){return this.cmp(N)===-1},U.prototype.lten=function(N){return this.cmpn(N)<=0},U.prototype.lte=function(N){return this.cmp(N)<=0},U.prototype.eqn=function(N){return this.cmpn(N)===0},U.prototype.eq=function(N){return this.cmp(N)===0},U.red=function(N){return new k(N)},U.prototype.toRed=function(N){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),N.convertTo(this)._forceRed(N)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(N){return this.red=N,this},U.prototype.forceRed=function(N){return G(!this.red,"Already a number in reduction context"),this._forceRed(N)},U.prototype.redAdd=function(N){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,N)},U.prototype.redIAdd=function(N){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,N)},U.prototype.redSub=function(N){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,N)},U.prototype.redISub=function(N){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,N)},U.prototype.redShl=function(N){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,N)},U.prototype.redMul=function(N){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.mul(this,N)},U.prototype.redIMul=function(N){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,N),this.red.imul(this,N)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(N){return G(this.red&&!N.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,N)};var z={k256:null,p224:null,p192:null,p25519:null};function M(N,x){this.name=N,this.p=new U(x,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}M.prototype._tmp=function(){var N=new U(null);return N.words=new Array(Math.ceil(this.n/13)),N},M.prototype.ireduce=function(N){var x=N,_;do this.split(x,this.tmp),x=this.imulK(x),x=x.iadd(this.tmp),_=x.bitLength();while(_>this.n);var B=_<this.n?-1:x.ucmp(this.p);return B===0?(x.words[0]=0,x.length=1):B>0?x.isub(this.p):x.strip!==void 0?x.strip():x._strip(),x},M.prototype.split=function(N,x){N.iushrn(this.n,0,x)},M.prototype.imulK=function(N){return N.imul(this.k)};function S(){M.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(S,M),S.prototype.split=function(N,x){for(var _=4194303,B=Math.min(N.length,9),y=0;y<B;y++)x.words[y]=N.words[y];if(x.length=B,N.length<=9){N.words[0]=0,N.length=1;return}var w=N.words[9];for(x.words[x.length++]=w&_,y=10;y<N.length;y++){var f=N.words[y]|0;N.words[y-10]=(f&_)<<4|w>>>22,w=f}w>>>=22,N.words[y-10]=w,w===0&&N.length>10?N.length-=10:N.length-=9},S.prototype.imulK=function(N){N.words[N.length]=0,N.words[N.length+1]=0,N.length+=2;for(var x=0,_=0;_<N.length;_++){var B=N.words[_]|0;x+=B*977,N.words[_]=x&67108863,x=B*64+(x/67108864|0)}return N.words[N.length-1]===0&&(N.length--,N.words[N.length-1]===0&&N.length--),N};function v(){M.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(v,M);function q(){M.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(q,M);function j(){M.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(j,M),j.prototype.imulK=function(N){for(var x=0,_=0;_<N.length;_++){var B=(N.words[_]|0)*19+x,y=B&67108863;B>>>=26,N.words[_]=y,x=B}return x!==0&&(N.words[N.length++]=x),N},U._prime=function(N){if(z[N])return z[N];var x;if(N==="k256")x=new S;else if(N==="p224")x=new v;else if(N==="p192")x=new q;else if(N==="p25519")x=new j;else throw new Error("Unknown prime "+N);return z[N]=x,x};function k(N){if(typeof N=="string"){var x=U._prime(N);this.m=x.p,this.prime=x}else G(N.gtn(1),"modulus must be greater than 1"),this.m=N,this.prime=null}k.prototype._verify1=function(N){G(N.negative===0,"red works only with positives"),G(N.red,"red works only with red numbers")},k.prototype._verify2=function(N,x){G((N.negative|x.negative)===0,"red works only with positives"),G(N.red&&N.red===x.red,"red works only with red numbers")},k.prototype.imod=function(N){return this.prime?this.prime.ireduce(N)._forceRed(this):(O(N,N.umod(this.m)._forceRed(this)),N)},k.prototype.neg=function(N){return N.isZero()?N.clone():this.m.sub(N)._forceRed(this)},k.prototype.add=function(N,x){this._verify2(N,x);var _=N.add(x);return _.cmp(this.m)>=0&&_.isub(this.m),_._forceRed(this)},k.prototype.iadd=function(N,x){this._verify2(N,x);var _=N.iadd(x);return _.cmp(this.m)>=0&&_.isub(this.m),_},k.prototype.sub=function(N,x){this._verify2(N,x);var _=N.sub(x);return _.cmpn(0)<0&&_.iadd(this.m),_._forceRed(this)},k.prototype.isub=function(N,x){this._verify2(N,x);var _=N.isub(x);return _.cmpn(0)<0&&_.iadd(this.m),_},k.prototype.shl=function(N,x){return this._verify1(N),this.imod(N.ushln(x))},k.prototype.imul=function(N,x){return this._verify2(N,x),this.imod(N.imul(x))},k.prototype.mul=function(N,x){return this._verify2(N,x),this.imod(N.mul(x))},k.prototype.isqr=function(N){return this.imul(N,N.clone())},k.prototype.sqr=function(N){return this.mul(N,N)},k.prototype.sqrt=function(N){if(N.isZero())return N.clone();var x=this.m.andln(3);if(G(x%2===1),x===3){var _=this.m.add(new U(1)).iushrn(2);return this.pow(N,_)}for(var B=this.m.subn(1),y=0;!B.isZero()&&B.andln(1)===0;)y++,B.iushrn(1);G(!B.isZero());var w=new U(1).toRed(this),f=w.redNeg(),p=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new U(2*c*c).toRed(this);this.pow(c,p).cmp(f)!==0;)c.redIAdd(f);for(var h=this.pow(c,B),d=this.pow(N,B.addn(1).iushrn(1)),b=this.pow(N,B),l=y;b.cmp(w)!==0;){for(var o=b,u=0;o.cmp(w)!==0;u++)o=o.redSqr();G(u<l);var n=this.pow(h,new U(1).iushln(l-u-1));d=d.redMul(n),h=n.redSqr(),b=b.redMul(h),l=u}return d},k.prototype.invm=function(N){var x=N._invmp(this.m);return x.negative!==0?(x.negative=0,this.imod(x).redNeg()):this.imod(x)},k.prototype.pow=function(N,x){if(x.isZero())return new U(1).toRed(this);if(x.cmpn(1)===0)return N.clone();var _=4,B=new Array(1<<_);B[0]=new U(1).toRed(this),B[1]=N;for(var y=2;y<B.length;y++)B[y]=this.mul(B[y-1],N);var w=B[0],f=0,p=0,c=x.bitLength()%26;for(c===0&&(c=26),y=x.length-1;y>=0;y--){for(var h=x.words[y],d=c-1;d>=0;d--){var b=h>>d&1;if(w!==B[0]&&(w=this.sqr(w)),b===0&&f===0){p=0;continue}f<<=1,f|=b,p++,!(p!==_&&(y!==0||d!==0))&&(w=this.mul(w,B[f]),p=0,f=0)}c=26}return w},k.prototype.convertTo=function(N){var x=N.umod(this.m);return x===N?x.clone():x},k.prototype.convertFrom=function(N){var x=N.clone();return x.red=null,x},U.mont=function(N){return new g(N)};function g(N){k.call(this,N),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V(g,k),g.prototype.convertTo=function(N){return this.imod(N.ushln(this.shift))},g.prototype.convertFrom=function(N){var x=this.imod(N.mul(this.rinv));return x.red=null,x},g.prototype.imul=function(N,x){if(N.isZero()||x.isZero())return N.words[0]=0,N.length=1,N;var _=N.imul(x),B=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=_.isub(B).iushrn(this.shift),w=y;return y.cmp(this.m)>=0?w=y.isub(this.m):y.cmpn(0)<0&&(w=y.iadd(this.m)),w._forceRed(this)},g.prototype.mul=function(N,x){if(N.isZero()||x.isZero())return new U(0)._forceRed(this);var _=N.mul(x),B=_.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=_.isub(B).iushrn(this.shift),w=y;return y.cmp(this.m)>=0?w=y.isub(this.m):y.cmpn(0)<0&&(w=y.iadd(this.m)),w._forceRed(this)},g.prototype.invm=function(N){var x=this.imod(N._invmp(this.m).mul(this.r2));return x._forceRed(this)}})(typeof Q>"u"||Q,$)}}),fQ=z$({"node_modules/browserify-rsa/index.js"($,Q){var Y=wQ(),Z=v$();function G(X){var K=V(X),I=K.toRed(Y.mont(X.modulus)).redPow(new Y(X.publicExponent)).fromRed();return{blinder:I,unblinder:K.invm(X.modulus)}}function V(X){var K=X.modulus.byteLength(),I;do I=new Y(Z(K));while(I.cmp(X.modulus)>=0||!I.umod(X.prime1)||!I.umod(X.prime2));return I}function U(X,K){var I=G(K),J=K.modulus.byteLength(),O=new Y(X).mul(I.blinder).umod(K.modulus),F=O.toRed(Y.mont(K.prime1)),A=O.toRed(Y.mont(K.prime2)),W=K.coefficient,H=K.prime1,E=K.prime2,T=F.redPow(K.exponent1).fromRed(),D=A.redPow(K.exponent2).fromRed(),C=T.isub(D).imul(W).umod(H).imul(E);return D.iadd(C).imul(I.unblinder).umod(K.modulus).toArrayLike(Buffer,"be",J)}U.getr=V,Q.exports=U}}),pQ=z$({"node_modules/elliptic/package.json"($,Q){Q.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}}}),cQ=z$({"node_modules/elliptic/node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(j,k){if(!j)throw new Error(k||"Assertion failed")}function V(j,k){j.super_=k;var g=function(){};g.prototype=k.prototype,j.prototype=new g,j.prototype.constructor=j}function U(j,k,g){if(U.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((k==="le"||k==="be")&&(g=k,k=10),this._init(j||0,k||10,g||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X;try{typeof window<"u"&&typeof window.Buffer<"u"?X=window.Buffer:X=R$("buffer").Buffer}catch{}U.isBN=function(j){return j instanceof U?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===U.wordSize&&Array.isArray(j.words)},U.max=function(j,k){return j.cmp(k)>0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var N=0;j[0]==="-"&&(N++,this.negative=1),N<j.length&&(k===16?this._parseHex(j,N,g):(this._parseBase(j,k,N),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x,_,B=0;if(g==="be")for(N=j.length-1,x=0;N>=0;N-=3)_=j[N]|j[N-1]<<8|j[N-2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);else if(g==="le")for(N=0,x=0;N<j.length;N+=3)_=j[N]|j[N+1]<<8|j[N+2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var N=K(j,g);return g-1>=k&&(N|=K(j,g-1)<<4),N}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x=0,_=0,B;if(g==="be")for(N=j.length-1;N>=k;N-=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8;else{var y=j.length-k;for(N=y%2===0?k+1:k;N<j.length;N+=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8}this.strip()};function J(j,k,g,N){for(var x=0,_=Math.min(j.length,g),B=k;B<_;B++){var y=j.charCodeAt(B)-48;x*=N,y>=49?x+=y-49+10:y>=17?x+=y-17+10:x+=y}return x}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var N=0,x=1;x<=67108863;x*=k)N++;N--,x=x/k|0;for(var _=j.length-g,B=_%N,y=Math.min(_,_-B)+g,w=0,f=g;f<y;f+=N)w=J(j,f,f+N,k),this.imuln(x),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var p=1;for(w=J(j,f,j.length,k),f=0;f<B;f++)p*=k;this.imuln(p),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],F=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var N=0,x=0,_=0;_<this.length;_++){var B=this.words[_],y=((B<<N|x)&16777215).toString(16);x=B>>>24-N&16777215,x!==0||_!==this.length-1?g=O[6-y.length]+y+g:g=y+g,N+=2,N>=26&&(N-=26,_--)}for(x!==0&&(g=x.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],f=A[j];g="";var p=this.clone();for(p.negative=0;!p.isZero();){var c=p.modn(f).toString(j);p=p.idivn(f),p.isZero()?g=c+g:g=O[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var N=this.byteLength(),x=g||Math.max(1,N);G(N<=x,"byte array longer than desired length"),G(x>0,"Requested array length <= 0"),this.strip();var _=k==="le",B=new j(x),y,w,f=this.clone();if(_){for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[w]=y;for(;w<x;w++)B[w]=0}else{for(w=0;w<x-N;w++)B[w]=0;for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[x-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function W(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var N=g/26|0,x=g%26;k[g]=(j.words[N]&1<<x)>>>x}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var N=0;N<g.length;N++)this.words[N]=k.words[N]^g.words[N];if(this!==k)for(;N<k.length;N++)this.words[N]=k.words[N];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var N=0;N<k;N++)this.words[N]=~this.words[N]&67108863;return g>0&&(this.words[N]=~this.words[N]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,N=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<N:this.words[g]=this.words[g]&~(1<<N),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,N;this.length>j.length?(g=this,N=j):(g=j,N=this);for(var x=0,_=0;_<N.length;_++)k=(g.words[_]|0)+(N.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;for(;x!==0&&_<g.length;_++)k=(g.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;if(this.length=g.length,x!==0)this.words[this.length]=x,this.length++;else if(g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var N,x;g>0?(N=this,x=j):(N=j,x=this);for(var _=0,B=0;B<x.length;B++)k=(N.words[B]|0)-(x.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;for(;_!==0&&B<N.length;B++)k=(N.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;if(_===0&&B<N.length&&N!==this)for(;B<N.length;B++)this.words[B]=N.words[B];return this.length=Math.max(this.length,B),N!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function H(j,k,g){g.negative=k.negative^j.negative;var N=j.length+k.length|0;g.length=N,N=N-1|0;var x=j.words[0]|0,_=k.words[0]|0,B=x*_,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var f=1;f<N;f++){for(var p=w>>>26,c=w&67108863,h=Math.min(f,k.length-1),d=Math.max(0,f-j.length+1);d<=h;d++){var b=f-d|0;x=j.words[b]|0,_=k.words[d]|0,B=x*_+c,p+=B/67108864|0,c=B&67108863}g.words[f]=c|0,w=p|0}return w!==0?g.words[f]=w|0:g.length--,g.strip()}var E=function(j,k,g){var N=j.words,x=k.words,_=g.words,B=0,y,w,f,p=N[0]|0,c=p&8191,h=p>>>13,d=N[1]|0,b=d&8191,l=d>>>13,o=N[2]|0,u=o&8191,n=o>>>13,s=N[3]|0,t=s&8191,m=s>>>13,a=N[4]|0,r=a&8191,e=a>>>13,i=N[5]|0,$0=i&8191,Q0=i>>>13,Y0=N[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=N[7]|0,U0=V0&8191,X0=V0>>>13,K0=N[8]|0,I0=K0&8191,J0=K0>>>13,O0=N[9]|0,F0=O0&8191,A0=O0>>>13,W0=x[0]|0,H0=W0&8191,E0=W0>>>13,T0=x[1]|0,D0=T0&8191,C0=T0>>>13,L0=x[2]|0,R0=L0&8191,P0=L0>>>13,z0=x[3]|0,M0=z0&8191,S0=z0>>>13,v0=x[4]|0,q0=v0&8191,j0=v0>>>13,k0=x[5]|0,g0=k0&8191,N0=k0>>>13,x0=x[6]|0,_0=x0&8191,B0=x0>>>13,y0=x[7]|0,w0=y0&8191,f0=y0>>>13,p0=x[8]|0,c0=p0&8191,h0=p0>>>13,d0=x[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,H0),w=Math.imul(c,E0),w=w+Math.imul(h,H0)|0,f=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,H0),w=Math.imul(b,E0),w=w+Math.imul(l,H0)|0,f=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,f=f+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,H0),w=Math.imul(u,E0),w=w+Math.imul(n,H0)|0,f=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,f=f+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,f=f+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,H0),w=Math.imul(t,E0),w=w+Math.imul(m,H0)|0,f=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,f=f+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,f=f+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,f=f+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(r,H0),w=Math.imul(r,E0),w=w+Math.imul(e,H0)|0,f=Math.imul(e,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,f=f+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,f=f+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,f=f+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,f=f+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,H0),w=Math.imul($0,E0),w=w+Math.imul(Q0,H0)|0,f=Math.imul(Q0,E0),y=y+Math.imul(r,D0)|0,w=w+Math.imul(r,C0)|0,w=w+Math.imul(e,D0)|0,f=f+Math.imul(e,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,f=f+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,f=f+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,f=f+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,N0)|0,w=w+Math.imul(h,g0)|0,f=f+Math.imul(h,N0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,H0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,H0)|0,f=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,f=f+Math.imul(Q0,C0)|0,y=y+Math.imul(r,R0)|0,w=w+Math.imul(r,P0)|0,w=w+Math.imul(e,R0)|0,f=f+Math.imul(e,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,f=f+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,f=f+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,N0)|0,w=w+Math.imul(l,g0)|0,f=f+Math.imul(l,N0)|0,y=y+Math.imul(c,_0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,_0)|0,f=f+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,H0),w=Math.imul(U0,E0),w=w+Math.imul(X0,H0)|0,f=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,f=f+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,f=f+Math.imul(Q0,P0)|0,y=y+Math.imul(r,M0)|0,w=w+Math.imul(r,S0)|0,w=w+Math.imul(e,M0)|0,f=f+Math.imul(e,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,f=f+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,N0)|0,w=w+Math.imul(n,g0)|0,f=f+Math.imul(n,N0)|0,y=y+Math.imul(b,_0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,_0)|0,f=f+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,f0)|0,w=w+Math.imul(h,w0)|0,f=f+Math.imul(h,f0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(I0,H0),w=Math.imul(I0,E0),w=w+Math.imul(J0,H0)|0,f=Math.imul(J0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,f=f+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,f=f+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,f=f+Math.imul(Q0,S0)|0,y=y+Math.imul(r,q0)|0,w=w+Math.imul(r,j0)|0,w=w+Math.imul(e,q0)|0,f=f+Math.imul(e,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,N0)|0,w=w+Math.imul(m,g0)|0,f=f+Math.imul(m,N0)|0,y=y+Math.imul(u,_0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,_0)|0,f=f+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,f0)|0,w=w+Math.imul(l,w0)|0,f=f+Math.imul(l,f0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,f=f+Math.imul(h,h0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(F0,H0),w=Math.imul(F0,E0),w=w+Math.imul(A0,H0)|0,f=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(J0,D0)|0,f=f+Math.imul(J0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,f=f+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,f=f+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,f=f+Math.imul(Q0,j0)|0,y=y+Math.imul(r,g0)|0,w=w+Math.imul(r,N0)|0,w=w+Math.imul(e,g0)|0,f=f+Math.imul(e,N0)|0,y=y+Math.imul(t,_0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,_0)|0,f=f+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,f0)|0,w=w+Math.imul(n,w0)|0,f=f+Math.imul(n,f0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,f=f+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,f=f+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,f=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(J0,R0)|0,f=f+Math.imul(J0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,f=f+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,f=f+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,N0)|0,w=w+Math.imul(Q0,g0)|0,f=f+Math.imul(Q0,N0)|0,y=y+Math.imul(r,_0)|0,w=w+Math.imul(r,B0)|0,w=w+Math.imul(e,_0)|0,f=f+Math.imul(e,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,f0)|0,w=w+Math.imul(m,w0)|0,f=f+Math.imul(m,f0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,f=f+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,f=f+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,f=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(J0,M0)|0,f=f+Math.imul(J0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,f=f+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,N0)|0,w=w+Math.imul(G0,g0)|0,f=f+Math.imul(G0,N0)|0,y=y+Math.imul($0,_0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,_0)|0,f=f+Math.imul(Q0,B0)|0,y=y+Math.imul(r,w0)|0,w=w+Math.imul(r,f0)|0,w=w+Math.imul(e,w0)|0,f=f+Math.imul(e,f0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,f=f+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,f=f+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,f=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(J0,q0)|0,f=f+Math.imul(J0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,N0)|0,w=w+Math.imul(X0,g0)|0,f=f+Math.imul(X0,N0)|0,y=y+Math.imul(Z0,_0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,_0)|0,f=f+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,f0)|0,w=w+Math.imul(Q0,w0)|0,f=f+Math.imul(Q0,f0)|0,y=y+Math.imul(r,c0)|0,w=w+Math.imul(r,h0)|0,w=w+Math.imul(e,c0)|0,f=f+Math.imul(e,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,f=f+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,f=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,N0)|0,w=w+Math.imul(J0,g0)|0,f=f+Math.imul(J0,N0)|0,y=y+Math.imul(U0,_0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,_0)|0,f=f+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,f0)|0,w=w+Math.imul(G0,w0)|0,f=f+Math.imul(G0,f0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,f=f+Math.imul(Q0,h0)|0,y=y+Math.imul(r,b0)|0,w=w+Math.imul(r,l0)|0,w=w+Math.imul(e,b0)|0,f=f+Math.imul(e,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,N0),w=w+Math.imul(A0,g0)|0,f=Math.imul(A0,N0),y=y+Math.imul(I0,_0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(J0,_0)|0,f=f+Math.imul(J0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,f0)|0,w=w+Math.imul(X0,w0)|0,f=f+Math.imul(X0,f0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,f=f+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,f=f+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,_0),w=Math.imul(F0,B0),w=w+Math.imul(A0,_0)|0,f=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,f0)|0,w=w+Math.imul(J0,w0)|0,f=f+Math.imul(J0,f0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,f=f+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,f=f+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,f0),w=w+Math.imul(A0,w0)|0,f=Math.imul(A0,f0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(J0,c0)|0,f=f+Math.imul(J0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,f=f+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,f=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(J0,b0)|0,f=f+Math.imul(J0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,f=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(f+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,_[0]=o0,_[1]=u0,_[2]=n0,_[3]=s0,_[4]=t0,_[5]=m0,_[6]=a0,_[7]=r0,_[8]=e0,_[9]=i0,_[10]=$$,_[11]=Q$,_[12]=Y$,_[13]=Z$,_[14]=G$,_[15]=V$,_[16]=U$,_[17]=X$,_[18]=K$,B!==0&&(_[19]=B,g.length++),g};Math.imul||(E=H);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var N=0,x=0,_=0;_<g.length-1;_++){var B=x;x=0;for(var y=N&67108863,w=Math.min(_,k.length-1),f=Math.max(0,_-j.length+1);f<=w;f++){var p=_-f,c=j.words[p]|0,h=k.words[f]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,x+=B>>>26,B&=67108863}g.words[_]=y,N=B,B=x}return N!==0?g.words[_]=N:g.length--,g.strip()}function D(j,k,g){var N=new C;return N.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,N=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):N<63?g=H(this,j,k):N<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,N=0;N<j;N++)k[N]=this.revBin(N,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var N=0,x=0;x<k;x++)N|=(j&1)<<k-x-1,j>>=1;return N},C.prototype.permute=function(j,k,g,N,x,_){for(var B=0;B<_;B++)N[B]=k[j[B]],x[B]=g[j[B]]},C.prototype.transform=function(j,k,g,N,x,_){this.permute(_,j,k,g,N,x);for(var B=1;B<x;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),f=Math.sin(2*Math.PI/y),p=0;p<x;p+=y)for(var c=w,h=f,d=0;d<B;d++){var b=g[p+d],l=N[p+d],o=g[p+d+B],u=N[p+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[p+d]=b+o,N[p+d]=l+u,g[p+d+B]=b-o,N[p+d+B]=l-u,d!==y&&(n=w*c-f*h,h=w*h+f*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,N=g&1,x=0;for(g=g/2|0;g;g=g>>>1)x++;return 1<<x+1+N},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var N=0;N<g/2;N++){var x=j[N];j[N]=j[g-N-1],j[g-N-1]=x,x=k[N],k[N]=-k[g-N-1],k[g-N-1]=-x}},C.prototype.normalize13b=function(j,k){for(var g=0,N=0;N<k/2;N++){var x=Math.round(j[2*N+1]/k)*8192+Math.round(j[2*N]/k)+g;j[N]=x&67108863,x<67108864?g=0:g=x/67108864|0}return j},C.prototype.convert13b=function(j,k,g,N){for(var x=0,_=0;_<k;_++)x=x+(j[_]|0),g[2*_]=x&8191,x=x>>>13,g[2*_+1]=x&8191,x=x>>>13;for(_=2*k;_<N;++_)g[_]=0;G(x===0),G((x&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var N=2*this.guessLen13b(j.length,k.length),x=this.makeRBT(N),_=this.stub(N),B=new Array(N),y=new Array(N),w=new Array(N),f=new Array(N),p=new Array(N),c=new Array(N),h=g.words;h.length=N,this.convert13b(j.words,j.length,B,N),this.convert13b(k.words,k.length,f,N),this.transform(B,_,y,w,N,x),this.transform(f,_,p,c,N,x);for(var d=0;d<N;d++){var b=y[d]*p[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*p[d],y[d]=b}return this.conjugate(y,w,N),this.transform(y,w,h,_,N,x),this.conjugate(h,_,N),this.normalize13b(h,N),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var N=(this.words[g]|0)*j,x=(N&67108863)+(k&67108863);k>>=26,k+=N/67108864|0,k+=x>>>26,this.words[g]=x&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=W(j);if(k.length===0)return new U(1);for(var g=this,N=0;N<k.length&&k[N]===0;N++,g=g.sqr());if(++N<k.length)for(var x=g.sqr();N<k.length;N++,x=x.sqr())k[N]!==0&&(g=g.mul(x));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=67108863>>>26-k<<26-k,x;if(k!==0){var _=0;for(x=0;x<this.length;x++){var B=this.words[x]&N,y=(this.words[x]|0)-B<<k;this.words[x]=y|_,_=B>>>26-k}_&&(this.words[x]=_,this.length++)}if(g!==0){for(x=this.length-1;x>=0;x--)this.words[x+g]=this.words[x];for(x=0;x<g;x++)this.words[x]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var N;k?N=(k-k%26)/26:N=0;var x=j%26,_=Math.min((j-x)/26,this.length),B=67108863^67108863>>>x<<x,y=g;if(N-=_,N=Math.max(0,N),y){for(var w=0;w<_;w++)y.words[w]=this.words[w];y.length=_}if(_!==0)if(this.length>_)for(this.length-=_,w=0;w<this.length;w++)this.words[w]=this.words[w+_];else this.words[0]=0,this.length=1;var f=0;for(w=this.length-1;w>=0&&(f!==0||w>=N);w--){var p=this.words[w]|0;this.words[w]=f<<26-x|p>>>x,f=p&B}return y&&f!==0&&(y.words[y.length++]=f),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=1<<k;if(this.length<=g)return!1;var x=this.words[g];return!!(x&N)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var N=67108863^67108863>>>k<<k;this.words[this.length-1]&=N}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var N=j.length+g,x;this._expand(N);var _,B=0;for(x=0;x<j.length;x++){_=(this.words[x+g]|0)+B;var y=(j.words[x]|0)*k;_-=y&67108863,B=(_>>26)-(y/67108864|0),this.words[x+g]=_&67108863}for(;x<this.length-g;x++)_=(this.words[x+g]|0)+B,B=_>>26,this.words[x+g]=_&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,x=0;x<this.length;x++)_=-(this.words[x]|0)+B,B=_>>26,this.words[x]=_&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,N=this.clone(),x=j,_=x.words[x.length-1]|0,B=this._countBits(_);g=26-B,g!==0&&(x=x.ushln(g),N.iushln(g),_=x.words[x.length-1]|0);var y=N.length-x.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var f=0;f<w.length;f++)w.words[f]=0}var p=N.clone()._ishlnsubmul(x,1,y);p.negative===0&&(N=p,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(N.words[x.length+c]|0)*67108864+(N.words[x.length+c-1]|0);for(h=Math.min(h/_|0,67108863),N._ishlnsubmul(x,h,c);N.negative!==0;)h--,N.negative=0,N._ishlnsubmul(x,1,c),N.isZero()||(N.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),N.strip(),k!=="div"&&g!==0&&N.iushrn(g),{div:w||null,mod:N}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var N,x,_;return this.negative!==0&&j.negative===0?(_=this.neg().divmod(j,k),k!=="mod"&&(N=_.div.neg()),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.iadd(j)),{div:N,mod:x}):this.negative===0&&j.negative!==0?(_=this.divmod(j.neg(),k),k!=="mod"&&(N=_.div.neg()),{div:N,mod:_.mod}):(this.negative&j.negative)!==0?(_=this.neg().divmod(j.neg(),k),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.isub(j)),{div:_.div,mod:x}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,N=j.ushrn(1),x=j.andln(1),_=g.cmp(N);return _<0||x===1&&_===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,N=this.length-1;N>=0;N--)g=(k*g+(this.words[N]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var N=(this.words[g]|0)+k*67108864;this.words[g]=N/j|0,k=N%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var N=new U(1),x=new U(0),_=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),f=k.clone();!k.isZero();){for(var p=0,c=1;(k.words[0]&c)===0&&p<26;++p,c<<=1);if(p>0)for(k.iushrn(p);p-- >0;)(N.isOdd()||x.isOdd())&&(N.iadd(w),x.isub(f)),N.iushrn(1),x.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(_.isOdd()||B.isOdd())&&(_.iadd(w),B.isub(f)),_.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(_),x.isub(B)):(g.isub(k),_.isub(N),B.isub(x))}return{a:_,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var N=new U(1),x=new U(0),_=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)N.isOdd()&&N.iadd(_),N.iushrn(1);for(var w=0,f=1;(g.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(g.iushrn(w);w-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(x)):(g.isub(k),x.isub(N))}var p;return k.cmpn(1)===0?p=N:p=x,p.cmpn(0)<0&&p.iadd(j),p},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var N=0;k.isEven()&&g.isEven();N++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var x=k.cmp(g);if(x<0){var _=k;k=g,g=_}else if(x===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(N)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,N=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=N,this;for(var x=N,_=g;x!==0&&_<this.length;_++){var B=this.words[_]|0;B+=x,x=B>>>26,B&=67108863,this.words[_]=B}return x!==0&&(this.words[_]=x,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var N=this.words[0]|0;g=N===j?0:N<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var N=this.words[g]|0,x=j.words[g]|0;if(N!==x){N<x?k=-1:N>x&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var N=g<this.n?-1:k.ucmp(this.p);return N===0?(k.words[0]=0,k.length=1):N>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,N=Math.min(j.length,9),x=0;x<N;x++)k.words[x]=j.words[x];if(k.length=N,j.length<=9){j.words[0]=0,j.length=1;return}var _=j.words[9];for(k.words[k.length++]=_&g,x=10;x<j.length;x++){var B=j.words[x]|0;j.words[x-10]=(B&g)<<4|_>>>22,_=B}_>>>=22,j.words[x-10]=_,_===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g<j.length;g++){var N=j.words[g]|0;k+=N*977,j.words[g]=k&67108863,k=N*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var N=(j.words[g]|0)*19+k,x=N&67108863;N>>>=26,j.words[g]=x,k=N}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var N=this.m.subn(1),x=0;!N.isZero()&&N.andln(1)===0;)x++,N.iushrn(1);G(!N.isZero());var _=new U(1).toRed(this),B=_.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var f=this.pow(w,N),p=this.pow(j,N.addn(1).iushrn(1)),c=this.pow(j,N),h=x;c.cmp(_)!==0;){for(var d=c,b=0;d.cmp(_)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(f,new U(1).iushln(h-b-1));p=p.redMul(l),f=l.redSqr(),c=c.redMul(f),h=b}return p},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,N=new Array(1<<g);N[0]=new U(1).toRed(this),N[1]=j;for(var x=2;x<N.length;x++)N[x]=this.mul(N[x-1],j);var _=N[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),x=k.length-1;x>=0;x--){for(var f=k.words[x],p=w-1;p>=0;p--){var c=f>>p&1;if(_!==N[0]&&(_=this.sqr(_)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(x!==0||p!==0))&&(_=this.mul(_,N[B]),y=0,B=0)}w=26}return _},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),hQ=z$({"node_modules/minimalistic-crypto-utils/lib/utils.js"($){var Q=$;function Y(V,U){if(Array.isArray(V))return V.slice();if(!V)return[];var X=[];if(typeof V!="string"){for(var K=0;K<V.length;K++)X[K]=V[K]|0;return X}if(U==="hex"){V=V.replace(/[^a-z0-9]+/gi,""),V.length%2!==0&&(V="0"+V);for(var K=0;K<V.length;K+=2)X.push(parseInt(V[K]+V[K+1],16))}else for(var K=0;K<V.length;K++){var I=V.charCodeAt(K),J=I>>8,O=I&255;J?X.push(J,O):X.push(O)}return X}Q.toArray=Y;function Z(V){return V.length===1?"0"+V:V}Q.zero2=Z;function G(V){for(var U="",X=0;X<V.length;X++)U+=Z(V[X].toString(16));return U}Q.toHex=G,Q.encode=function(V,U){return U==="hex"?G(V):V}}}),dQ=z$({"node_modules/elliptic/lib/elliptic/utils.js"($){var Q=$,Y=cQ(),Z=$Q(),G=hQ();Q.assert=Z,Q.toArray=G.toArray,Q.zero2=G.zero2,Q.toHex=G.toHex,Q.encode=G.encode;function V(J,O,F){var A=new Array(Math.max(J.bitLength(),F)+1);A.fill(0);for(var W=1<<O+1,H=J.clone(),E=0;E<A.length;E++){var T,D=H.andln(W-1);H.isOdd()?(D>(W>>1)-1?T=(W>>1)-D:T=D,H.isubn(T)):T=0,A[E]=T,H.iushrn(1)}return A}Q.getNAF=V;function U(J,O){var F=[[],[]];J=J.clone(),O=O.clone();for(var A=0,W=0,H;J.cmpn(-A)>0||O.cmpn(-W)>0;){var E=J.andln(3)+A&3,T=O.andln(3)+W&3;E===3&&(E=-1),T===3&&(T=-1);var D;(E&1)===0?D=0:(H=J.andln(7)+A&7,(H===3||H===5)&&T===2?D=-E:D=E),F[0].push(D);var C;(T&1)===0?C=0:(H=O.andln(7)+W&7,(H===3||H===5)&&E===2?C=-T:C=T),F[1].push(C),2*A===D+1&&(A=1-A),2*W===C+1&&(W=1-W),J.iushrn(1),O.iushrn(1)}return F}Q.getJSF=U;function X(J,O,F){var A="_"+O;J.prototype[O]=function(){return this[A]!==void 0?this[A]:this[A]=F.call(this)}}Q.cachedProperty=X;function K(J){return typeof J=="string"?Q.toArray(J,"hex"):J}Q.parseBytes=K;function I(J){return new Y(J,"hex","le")}Q.intFromLE=I}}),bQ=z$({"node_modules/elliptic/lib/elliptic/curve/base.js"($,Q){var Y=cQ(),Z=dQ(),G=Z.getNAF,V=Z.getJSF,U=Z.assert;function X(I,J){this.type=I,this.p=new Y(J.p,16),this.red=J.prime?Y.red(J.prime):Y.mont(this.p),this.zero=new Y(0).toRed(this.red),this.one=new Y(1).toRed(this.red),this.two=new Y(2).toRed(this.red),this.n=J.n&&new Y(J.n,16),this.g=J.g&&this.pointFromJSON(J.g,J.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var O=this.n&&this.p.div(this.n);!O||O.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}Q.exports=X,X.prototype.point=function(){throw new Error("Not implemented")},X.prototype.validate=function(){throw new Error("Not implemented")},X.prototype._fixedNafMul=function(I,J){U(I.precomputed);var O=I._getDoubles(),F=G(J,1,this._bitLength),A=(1<<O.step+1)-(O.step%2===0?2:1);A/=3;var W=[],H,E;for(H=0;H<F.length;H+=O.step){E=0;for(var T=H+O.step-1;T>=H;T--)E=(E<<1)+F[T];W.push(E)}for(var D=this.jpoint(null,null,null),C=this.jpoint(null,null,null),L=A;L>0;L--){for(H=0;H<W.length;H++)E=W[H],E===L?C=C.mixedAdd(O.points[H]):E===-L&&(C=C.mixedAdd(O.points[H].neg()));D=D.add(C)}return D.toP()},X.prototype._wnafMul=function(I,J){var O=4,F=I._getNAFPoints(O);O=F.wnd;for(var A=F.points,W=G(J,O,this._bitLength),H=this.jpoint(null,null,null),E=W.length-1;E>=0;E--){for(var T=0;E>=0&&W[E]===0;E--)T++;if(E>=0&&T++,H=H.dblp(T),E<0)break;var D=W[E];U(D!==0),I.type==="affine"?D>0?H=H.mixedAdd(A[D-1>>1]):H=H.mixedAdd(A[-D-1>>1].neg()):D>0?H=H.add(A[D-1>>1]):H=H.add(A[-D-1>>1].neg())}return I.type==="affine"?H.toP():H},X.prototype._wnafMulAdd=function(I,J,O,F,A){var W=this._wnafT1,H=this._wnafT2,E=this._wnafT3,T=0,D,C,L;for(D=0;D<F;D++){L=J[D];var R=L._getNAFPoints(I);W[D]=R.wnd,H[D]=R.points}for(D=F-1;D>=1;D-=2){var P=D-1,z=D;if(W[P]!==1||W[z]!==1){E[P]=G(O[P],W[P],this._bitLength),E[z]=G(O[z],W[z],this._bitLength),T=Math.max(E[P].length,T),T=Math.max(E[z].length,T);continue}var M=[J[P],null,null,J[z]];J[P].y.cmp(J[z].y)===0?(M[1]=J[P].add(J[z]),M[2]=J[P].toJ().mixedAdd(J[z].neg())):J[P].y.cmp(J[z].y.redNeg())===0?(M[1]=J[P].toJ().mixedAdd(J[z]),M[2]=J[P].add(J[z].neg())):(M[1]=J[P].toJ().mixedAdd(J[z]),M[2]=J[P].toJ().mixedAdd(J[z].neg()));var S=[-3,-1,-5,-7,0,7,5,1,3],v=V(O[P],O[z]);for(T=Math.max(v[0].length,T),E[P]=new Array(T),E[z]=new Array(T),C=0;C<T;C++){var q=v[0][C]|0,j=v[1][C]|0;E[P][C]=S[(q+1)*3+(j+1)],E[z][C]=0,H[P]=M}}var k=this.jpoint(null,null,null),g=this._wnafT4;for(D=T;D>=0;D--){for(var N=0;D>=0;){var x=!0;for(C=0;C<F;C++)g[C]=E[C][D]|0,g[C]!==0&&(x=!1);if(!x)break;N++,D--}if(D>=0&&N++,k=k.dblp(N),D<0)break;for(C=0;C<F;C++){var _=g[C];_!==0&&(_>0?L=H[C][_-1>>1]:_<0&&(L=H[C][-_-1>>1].neg()),L.type==="affine"?k=k.mixedAdd(L):k=k.add(L))}}for(D=0;D<F;D++)H[D]=null;return A?k:k.toP()};function K(I,J){this.curve=I,this.type=J,this.precomputed=null}X.BasePoint=K,K.prototype.eq=function(){throw new Error("Not implemented")},K.prototype.validate=function(){return this.curve.validate(this)},X.prototype.decodePoint=function(I,J){I=Z.toArray(I,J);var O=this.p.byteLength();if((I[0]===4||I[0]===6||I[0]===7)&&I.length-1===2*O){I[0]===6?U(I[I.length-1]%2===0):I[0]===7&&U(I[I.length-1]%2===1);var F=this.point(I.slice(1,1+O),I.slice(1+O,1+2*O));return F}else if((I[0]===2||I[0]===3)&&I.length-1===O)return this.pointFromX(I.slice(1,1+O),I[0]===3);throw new Error("Unknown point format")},K.prototype.encodeCompressed=function(I){return this.encode(I,!0)},K.prototype._encode=function(I){var J=this.curve.p.byteLength(),O=this.getX().toArray("be",J);return I?[this.getY().isEven()?2:3].concat(O):[4].concat(O,this.getY().toArray("be",J))},K.prototype.encode=function(I,J){return Z.encode(this._encode(J),I)},K.prototype.precompute=function(I){if(this.precomputed)return this;var J={doubles:null,naf:null,beta:null};return J.naf=this._getNAFPoints(8),J.doubles=this._getDoubles(4,I),J.beta=this._getBeta(),this.precomputed=J,this},K.prototype._hasDoubles=function(I){if(!this.precomputed)return!1;var J=this.precomputed.doubles;return J?J.points.length>=Math.ceil((I.bitLength()+1)/J.step):!1},K.prototype._getDoubles=function(I,J){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var O=[this],F=this,A=0;A<J;A+=I){for(var W=0;W<I;W++)F=F.dbl();O.push(F)}return{step:I,points:O}},K.prototype._getNAFPoints=function(I){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var J=[this],O=(1<<I)-1,F=O===1?null:this.dbl(),A=1;A<O;A++)J[A]=J[A-1].add(F);return{wnd:I,points:J}},K.prototype._getBeta=function(){return null},K.prototype.dblp=function(I){for(var J=this,O=0;O<I;O++)J=J.dbl();return J}}}),lQ=z$({"node_modules/elliptic/lib/elliptic/curve/short.js"($,Q){var Y=dQ(),Z=cQ(),G=q$(),V=bQ(),U=Y.assert;function X(J){V.call(this,"short",J),this.a=new Z(J.a,16).toRed(this.red),this.b=new Z(J.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(J),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}G(X,V),Q.exports=X,X.prototype._getEndomorphism=function(J){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var O,F;if(J.beta)O=new Z(J.beta,16).toRed(this.red);else{var A=this._getEndoRoots(this.p);O=A[0].cmp(A[1])<0?A[0]:A[1],O=O.toRed(this.red)}if(J.lambda)F=new Z(J.lambda,16);else{var W=this._getEndoRoots(this.n);this.g.mul(W[0]).x.cmp(this.g.x.redMul(O))===0?F=W[0]:(F=W[1],U(this.g.mul(F).x.cmp(this.g.x.redMul(O))===0))}var H;return J.basis?H=J.basis.map(function(E){return{a:new Z(E.a,16),b:new Z(E.b,16)}}):H=this._getEndoBasis(F),{beta:O,lambda:F,basis:H}}},X.prototype._getEndoRoots=function(J){var O=J===this.p?this.red:Z.mont(J),F=new Z(2).toRed(O).redInvm(),A=F.redNeg(),W=new Z(3).toRed(O).redNeg().redSqrt().redMul(F),H=A.redAdd(W).fromRed(),E=A.redSub(W).fromRed();return[H,E]},X.prototype._getEndoBasis=function(J){for(var O=this.n.ushrn(Math.floor(this.n.bitLength()/2)),F=J,A=this.n.clone(),W=new Z(1),H=new Z(0),E=new Z(0),T=new Z(1),D,C,L,R,P,z,M,S=0,v,q;F.cmpn(0)!==0;){var j=A.div(F);v=A.sub(j.mul(F)),q=E.sub(j.mul(W));var k=T.sub(j.mul(H));if(!L&&v.cmp(O)<0)D=M.neg(),C=W,L=v.neg(),R=q;else if(L&&++S===2)break;M=v,A=F,F=v,E=W,W=q,T=H,H=k}P=v.neg(),z=q;var g=L.sqr().add(R.sqr()),N=P.sqr().add(z.sqr());return N.cmp(g)>=0&&(P=D,z=C),L.negative&&(L=L.neg(),R=R.neg()),P.negative&&(P=P.neg(),z=z.neg()),[{a:L,b:R},{a:P,b:z}]},X.prototype._endoSplit=function(J){var O=this.endo.basis,F=O[0],A=O[1],W=A.b.mul(J).divRound(this.n),H=F.b.neg().mul(J).divRound(this.n),E=W.mul(F.a),T=H.mul(A.a),D=W.mul(F.b),C=H.mul(A.b),L=J.sub(E).sub(T),R=D.add(C).neg();return{k1:L,k2:R}},X.prototype.pointFromX=function(J,O){J=new Z(J,16),J.red||(J=J.toRed(this.red));var F=J.redSqr().redMul(J).redIAdd(J.redMul(this.a)).redIAdd(this.b),A=F.redSqrt();if(A.redSqr().redSub(F).cmp(this.zero)!==0)throw new Error("invalid point");var W=A.fromRed().isOdd();return(O&&!W||!O&&W)&&(A=A.redNeg()),this.point(J,A)},X.prototype.validate=function(J){if(J.inf)return!0;var{x:O,y:F}=J,A=this.a.redMul(O),W=O.redSqr().redMul(O).redIAdd(A).redIAdd(this.b);return F.redSqr().redISub(W).cmpn(0)===0},X.prototype._endoWnafMulAdd=function(J,O,F){for(var A=this._endoWnafT1,W=this._endoWnafT2,H=0;H<J.length;H++){var E=this._endoSplit(O[H]),T=J[H],D=T._getBeta();E.k1.negative&&(E.k1.ineg(),T=T.neg(!0)),E.k2.negative&&(E.k2.ineg(),D=D.neg(!0)),A[H*2]=T,A[H*2+1]=D,W[H*2]=E.k1,W[H*2+1]=E.k2}for(var C=this._wnafMulAdd(1,A,W,H*2,F),L=0;L<H*2;L++)A[L]=null,W[L]=null;return C};function K(J,O,F,A){V.BasePoint.call(this,J,"affine"),O===null&&F===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Z(O,16),this.y=new Z(F,16),A&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}G(K,V.BasePoint),X.prototype.point=function(J,O,F){return new K(this,J,O,F)},X.prototype.pointFromJSON=function(J,O){return K.fromJSON(this,J,O)},K.prototype._getBeta=function(){if(this.curve.endo){var J=this.precomputed;if(J&&J.beta)return J.beta;var O=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(J){var F=this.curve,A=function(W){return F.point(W.x.redMul(F.endo.beta),W.y)};J.beta=O,O.precomputed={beta:null,naf:J.naf&&{wnd:J.naf.wnd,points:J.naf.points.map(A)},doubles:J.doubles&&{step:J.doubles.step,points:J.doubles.points.map(A)}}}return O}},K.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},K.fromJSON=function(J,O,F){typeof O=="string"&&(O=JSON.parse(O));var A=J.point(O[0],O[1],F);if(!O[2])return A;function W(E){return J.point(E[0],E[1],F)}var H=O[2];return A.precomputed={beta:null,doubles:H.doubles&&{step:H.doubles.step,points:[A].concat(H.doubles.points.map(W))},naf:H.naf&&{wnd:H.naf.wnd,points:[A].concat(H.naf.points.map(W))}},A},K.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},K.prototype.isInfinity=function(){return this.inf},K.prototype.add=function(J){if(this.inf)return J;if(J.inf)return this;if(this.eq(J))return this.dbl();if(this.neg().eq(J))return this.curve.point(null,null);if(this.x.cmp(J.x)===0)return this.curve.point(null,null);var O=this.y.redSub(J.y);O.cmpn(0)!==0&&(O=O.redMul(this.x.redSub(J.x).redInvm()));var F=O.redSqr().redISub(this.x).redISub(J.x),A=O.redMul(this.x.redSub(F)).redISub(this.y);return this.curve.point(F,A)},K.prototype.dbl=function(){if(this.inf)return this;var J=this.y.redAdd(this.y);if(J.cmpn(0)===0)return this.curve.point(null,null);var O=this.curve.a,F=this.x.redSqr(),A=J.redInvm(),W=F.redAdd(F).redIAdd(F).redIAdd(O).redMul(A),H=W.redSqr().redISub(this.x.redAdd(this.x)),E=W.redMul(this.x.redSub(H)).redISub(this.y);return this.curve.point(H,E)},K.prototype.getX=function(){return this.x.fromRed()},K.prototype.getY=function(){return this.y.fromRed()},K.prototype.mul=function(J){return J=new Z(J,16),this.isInfinity()?this:this._hasDoubles(J)?this.curve._fixedNafMul(this,J):this.curve.endo?this.curve._endoWnafMulAdd([this],[J]):this.curve._wnafMul(this,J)},K.prototype.mulAdd=function(J,O,F){var A=[this,O],W=[J,F];return this.curve.endo?this.curve._endoWnafMulAdd(A,W):this.curve._wnafMulAdd(1,A,W,2)},K.prototype.jmulAdd=function(J,O,F){var A=[this,O],W=[J,F];return this.curve.endo?this.curve._endoWnafMulAdd(A,W,!0):this.curve._wnafMulAdd(1,A,W,2,!0)},K.prototype.eq=function(J){return this===J||this.inf===J.inf&&(this.inf||this.x.cmp(J.x)===0&&this.y.cmp(J.y)===0)},K.prototype.neg=function(J){if(this.inf)return this;var O=this.curve.point(this.x,this.y.redNeg());if(J&&this.precomputed){var F=this.precomputed,A=function(W){return W.neg()};O.precomputed={naf:F.naf&&{wnd:F.naf.wnd,points:F.naf.points.map(A)},doubles:F.doubles&&{step:F.doubles.step,points:F.doubles.points.map(A)}}}return O},K.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var J=this.curve.jpoint(this.x,this.y,this.curve.one);return J};function I(J,O,F,A){V.BasePoint.call(this,J,"jacobian"),O===null&&F===null&&A===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Z(0)):(this.x=new Z(O,16),this.y=new Z(F,16),this.z=new Z(A,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}G(I,V.BasePoint),X.prototype.jpoint=function(J,O,F){return new I(this,J,O,F)},I.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var J=this.z.redInvm(),O=J.redSqr(),F=this.x.redMul(O),A=this.y.redMul(O).redMul(J);return this.curve.point(F,A)},I.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},I.prototype.add=function(J){if(this.isInfinity())return J;if(J.isInfinity())return this;var O=J.z.redSqr(),F=this.z.redSqr(),A=this.x.redMul(O),W=J.x.redMul(F),H=this.y.redMul(O.redMul(J.z)),E=J.y.redMul(F.redMul(this.z)),T=A.redSub(W),D=H.redSub(E);if(T.cmpn(0)===0)return D.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var C=T.redSqr(),L=C.redMul(T),R=A.redMul(C),P=D.redSqr().redIAdd(L).redISub(R).redISub(R),z=D.redMul(R.redISub(P)).redISub(H.redMul(L)),M=this.z.redMul(J.z).redMul(T);return this.curve.jpoint(P,z,M)},I.prototype.mixedAdd=function(J){if(this.isInfinity())return J.toJ();if(J.isInfinity())return this;var O=this.z.redSqr(),F=this.x,A=J.x.redMul(O),W=this.y,H=J.y.redMul(O).redMul(this.z),E=F.redSub(A),T=W.redSub(H);if(E.cmpn(0)===0)return T.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var D=E.redSqr(),C=D.redMul(E),L=F.redMul(D),R=T.redSqr().redIAdd(C).redISub(L).redISub(L),P=T.redMul(L.redISub(R)).redISub(W.redMul(C)),z=this.z.redMul(E);return this.curve.jpoint(R,P,z)},I.prototype.dblp=function(J){if(J===0)return this;if(this.isInfinity())return this;if(!J)return this.dbl();var O;if(this.curve.zeroA||this.curve.threeA){var F=this;for(O=0;O<J;O++)F=F.dbl();return F}var A=this.curve.a,W=this.curve.tinv,H=this.x,E=this.y,T=this.z,D=T.redSqr().redSqr(),C=E.redAdd(E);for(O=0;O<J;O++){var L=H.redSqr(),R=C.redSqr(),P=R.redSqr(),z=L.redAdd(L).redIAdd(L).redIAdd(A.redMul(D)),M=H.redMul(R),S=z.redSqr().redISub(M.redAdd(M)),v=M.redISub(S),q=z.redMul(v);q=q.redIAdd(q).redISub(P);var j=C.redMul(T);O+1<J&&(D=D.redMul(P)),H=S,T=j,C=q}return this.curve.jpoint(H,C.redMul(W),T)},I.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},I.prototype._zeroDbl=function(){var J,O,F;if(this.zOne){var A=this.x.redSqr(),W=this.y.redSqr(),H=W.redSqr(),E=this.x.redAdd(W).redSqr().redISub(A).redISub(H);E=E.redIAdd(E);var T=A.redAdd(A).redIAdd(A),D=T.redSqr().redISub(E).redISub(E),C=H.redIAdd(H);C=C.redIAdd(C),C=C.redIAdd(C),J=D,O=T.redMul(E.redISub(D)).redISub(C),F=this.y.redAdd(this.y)}else{var L=this.x.redSqr(),R=this.y.redSqr(),P=R.redSqr(),z=this.x.redAdd(R).redSqr().redISub(L).redISub(P);z=z.redIAdd(z);var M=L.redAdd(L).redIAdd(L),S=M.redSqr(),v=P.redIAdd(P);v=v.redIAdd(v),v=v.redIAdd(v),J=S.redISub(z).redISub(z),O=M.redMul(z.redISub(J)).redISub(v),F=this.y.redMul(this.z),F=F.redIAdd(F)}return this.curve.jpoint(J,O,F)},I.prototype._threeDbl=function(){var J,O,F;if(this.zOne){var A=this.x.redSqr(),W=this.y.redSqr(),H=W.redSqr(),E=this.x.redAdd(W).redSqr().redISub(A).redISub(H);E=E.redIAdd(E);var T=A.redAdd(A).redIAdd(A).redIAdd(this.curve.a),D=T.redSqr().redISub(E).redISub(E);J=D;var C=H.redIAdd(H);C=C.redIAdd(C),C=C.redIAdd(C),O=T.redMul(E.redISub(D)).redISub(C),F=this.y.redAdd(this.y)}else{var L=this.z.redSqr(),R=this.y.redSqr(),P=this.x.redMul(R),z=this.x.redSub(L).redMul(this.x.redAdd(L));z=z.redAdd(z).redIAdd(z);var M=P.redIAdd(P);M=M.redIAdd(M);var S=M.redAdd(M);J=z.redSqr().redISub(S),F=this.y.redAdd(this.z).redSqr().redISub(R).redISub(L);var v=R.redSqr();v=v.redIAdd(v),v=v.redIAdd(v),v=v.redIAdd(v),O=z.redMul(M.redISub(J)).redISub(v)}return this.curve.jpoint(J,O,F)},I.prototype._dbl=function(){var J=this.curve.a,O=this.x,F=this.y,A=this.z,W=A.redSqr().redSqr(),H=O.redSqr(),E=F.redSqr(),T=H.redAdd(H).redIAdd(H).redIAdd(J.redMul(W)),D=O.redAdd(O);D=D.redIAdd(D);var C=D.redMul(E),L=T.redSqr().redISub(C.redAdd(C)),R=C.redISub(L),P=E.redSqr();P=P.redIAdd(P),P=P.redIAdd(P),P=P.redIAdd(P);var z=T.redMul(R).redISub(P),M=F.redAdd(F).redMul(A);return this.curve.jpoint(L,z,M)},I.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var J=this.x.redSqr(),O=this.y.redSqr(),F=this.z.redSqr(),A=O.redSqr(),W=J.redAdd(J).redIAdd(J),H=W.redSqr(),E=this.x.redAdd(O).redSqr().redISub(J).redISub(A);E=E.redIAdd(E),E=E.redAdd(E).redIAdd(E),E=E.redISub(H);var T=E.redSqr(),D=A.redIAdd(A);D=D.redIAdd(D),D=D.redIAdd(D),D=D.redIAdd(D);var C=W.redIAdd(E).redSqr().redISub(H).redISub(T).redISub(D),L=O.redMul(C);L=L.redIAdd(L),L=L.redIAdd(L);var R=this.x.redMul(T).redISub(L);R=R.redIAdd(R),R=R.redIAdd(R);var P=this.y.redMul(C.redMul(D.redISub(C)).redISub(E.redMul(T)));P=P.redIAdd(P),P=P.redIAdd(P),P=P.redIAdd(P);var z=this.z.redAdd(E).redSqr().redISub(F).redISub(T);return this.curve.jpoint(R,P,z)},I.prototype.mul=function(J,O){return J=new Z(J,O),this.curve._wnafMul(this,J)},I.prototype.eq=function(J){if(J.type==="affine")return this.eq(J.toJ());if(this===J)return!0;var O=this.z.redSqr(),F=J.z.redSqr();if(this.x.redMul(F).redISub(J.x.redMul(O)).cmpn(0)!==0)return!1;var A=O.redMul(this.z),W=F.redMul(J.z);return this.y.redMul(W).redISub(J.y.redMul(A)).cmpn(0)===0},I.prototype.eqXToP=function(J){var O=this.z.redSqr(),F=J.toRed(this.curve.red).redMul(O);if(this.x.cmp(F)===0)return!0;for(var A=J.clone(),W=this.curve.redN.redMul(O);;){if(A.iadd(this.curve.n),A.cmp(this.curve.p)>=0)return!1;if(F.redIAdd(W),this.x.cmp(F)===0)return!0}},I.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},I.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}}),oQ=z$({"node_modules/elliptic/lib/elliptic/curve/mont.js"($,Q){var Y=cQ(),Z=q$(),G=bQ(),V=dQ();function U(K){G.call(this,"mont",K),this.a=new Y(K.a,16).toRed(this.red),this.b=new Y(K.b,16).toRed(this.red),this.i4=new Y(4).toRed(this.red).redInvm(),this.two=new Y(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}Z(U,G),Q.exports=U,U.prototype.validate=function(K){var I=K.normalize().x,J=I.redSqr(),O=J.redMul(I).redAdd(J.redMul(this.a)).redAdd(I),F=O.redSqrt();return F.redSqr().cmp(O)===0};function X(K,I,J){G.BasePoint.call(this,K,"projective"),I===null&&J===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Y(I,16),this.z=new Y(J,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}Z(X,G.BasePoint),U.prototype.decodePoint=function(K,I){return this.point(V.toArray(K,I),1)},U.prototype.point=function(K,I){return new X(this,K,I)},U.prototype.pointFromJSON=function(K){return X.fromJSON(this,K)},X.prototype.precompute=function(){},X.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},X.fromJSON=function(K,I){return new X(K,I[0],I[1]||K.one)},X.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},X.prototype.isInfinity=function(){return this.z.cmpn(0)===0},X.prototype.dbl=function(){var K=this.x.redAdd(this.z),I=K.redSqr(),J=this.x.redSub(this.z),O=J.redSqr(),F=I.redSub(O),A=I.redMul(O),W=F.redMul(O.redAdd(this.curve.a24.redMul(F)));return this.curve.point(A,W)},X.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},X.prototype.diffAdd=function(K,I){var J=this.x.redAdd(this.z),O=this.x.redSub(this.z),F=K.x.redAdd(K.z),A=K.x.redSub(K.z),W=A.redMul(J),H=F.redMul(O),E=I.z.redMul(W.redAdd(H).redSqr()),T=I.x.redMul(W.redISub(H).redSqr());return this.curve.point(E,T)},X.prototype.mul=function(K){for(var I=K.clone(),J=this,O=this.curve.point(null,null),F=this,A=[];I.cmpn(0)!==0;I.iushrn(1))A.push(I.andln(1));for(var W=A.length-1;W>=0;W--)A[W]===0?(J=J.diffAdd(O,F),O=O.dbl()):(O=J.diffAdd(O,F),J=J.dbl());return O},X.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},X.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},X.prototype.eq=function(K){return this.getX().cmp(K.getX())===0},X.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},X.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}}),uQ=z$({"node_modules/elliptic/lib/elliptic/curve/edwards.js"($,Q){var Y=dQ(),Z=cQ(),G=q$(),V=bQ(),U=Y.assert;function X(I){this.twisted=(I.a|0)!==1,this.mOneA=this.twisted&&(I.a|0)===-1,this.extended=this.mOneA,V.call(this,"edwards",I),this.a=new Z(I.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Z(I.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Z(I.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),U(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(I.c|0)===1}G(X,V),Q.exports=X,X.prototype._mulA=function(I){return this.mOneA?I.redNeg():this.a.redMul(I)},X.prototype._mulC=function(I){return this.oneC?I:this.c.redMul(I)},X.prototype.jpoint=function(I,J,O,F){return this.point(I,J,O,F)},X.prototype.pointFromX=function(I,J){I=new Z(I,16),I.red||(I=I.toRed(this.red));var O=I.redSqr(),F=this.c2.redSub(this.a.redMul(O)),A=this.one.redSub(this.c2.redMul(this.d).redMul(O)),W=F.redMul(A.redInvm()),H=W.redSqrt();if(H.redSqr().redSub(W).cmp(this.zero)!==0)throw new Error("invalid point");var E=H.fromRed().isOdd();return(J&&!E||!J&&E)&&(H=H.redNeg()),this.point(I,H)},X.prototype.pointFromY=function(I,J){I=new Z(I,16),I.red||(I=I.toRed(this.red));var O=I.redSqr(),F=O.redSub(this.c2),A=O.redMul(this.d).redMul(this.c2).redSub(this.a),W=F.redMul(A.redInvm());if(W.cmp(this.zero)===0){if(J)throw new Error("invalid point");return this.point(this.zero,I)}var H=W.redSqrt();if(H.redSqr().redSub(W).cmp(this.zero)!==0)throw new Error("invalid point");return H.fromRed().isOdd()!==J&&(H=H.redNeg()),this.point(H,I)},X.prototype.validate=function(I){if(I.isInfinity())return!0;I.normalize();var J=I.x.redSqr(),O=I.y.redSqr(),F=J.redMul(this.a).redAdd(O),A=this.c2.redMul(this.one.redAdd(this.d.redMul(J).redMul(O)));return F.cmp(A)===0};function K(I,J,O,F,A){V.BasePoint.call(this,I,"projective"),J===null&&O===null&&F===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Z(J,16),this.y=new Z(O,16),this.z=F?new Z(F,16):this.curve.one,this.t=A&&new Z(A,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}G(K,V.BasePoint),X.prototype.pointFromJSON=function(I){return K.fromJSON(this,I)},X.prototype.point=function(I,J,O,F){return new K(this,I,J,O,F)},K.fromJSON=function(I,J){return new K(I,J[0],J[1],J[2])},K.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},K.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},K.prototype._extDbl=function(){var I=this.x.redSqr(),J=this.y.redSqr(),O=this.z.redSqr();O=O.redIAdd(O);var F=this.curve._mulA(I),A=this.x.redAdd(this.y).redSqr().redISub(I).redISub(J),W=F.redAdd(J),H=W.redSub(O),E=F.redSub(J),T=A.redMul(H),D=W.redMul(E),C=A.redMul(E),L=H.redMul(W);return this.curve.point(T,D,L,C)},K.prototype._projDbl=function(){var I=this.x.redAdd(this.y).redSqr(),J=this.x.redSqr(),O=this.y.redSqr(),F,A,W,H,E,T;if(this.curve.twisted){H=this.curve._mulA(J);var D=H.redAdd(O);this.zOne?(F=I.redSub(J).redSub(O).redMul(D.redSub(this.curve.two)),A=D.redMul(H.redSub(O)),W=D.redSqr().redSub(D).redSub(D)):(E=this.z.redSqr(),T=D.redSub(E).redISub(E),F=I.redSub(J).redISub(O).redMul(T),A=D.redMul(H.redSub(O)),W=D.redMul(T))}else H=J.redAdd(O),E=this.curve._mulC(this.z).redSqr(),T=H.redSub(E).redSub(E),F=this.curve._mulC(I.redISub(H)).redMul(T),A=this.curve._mulC(H).redMul(J.redISub(O)),W=H.redMul(T);return this.curve.point(F,A,W)},K.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},K.prototype._extAdd=function(I){var J=this.y.redSub(this.x).redMul(I.y.redSub(I.x)),O=this.y.redAdd(this.x).redMul(I.y.redAdd(I.x)),F=this.t.redMul(this.curve.dd).redMul(I.t),A=this.z.redMul(I.z.redAdd(I.z)),W=O.redSub(J),H=A.redSub(F),E=A.redAdd(F),T=O.redAdd(J),D=W.redMul(H),C=E.redMul(T),L=W.redMul(T),R=H.redMul(E);return this.curve.point(D,C,R,L)},K.prototype._projAdd=function(I){var J=this.z.redMul(I.z),O=J.redSqr(),F=this.x.redMul(I.x),A=this.y.redMul(I.y),W=this.curve.d.redMul(F).redMul(A),H=O.redSub(W),E=O.redAdd(W),T=this.x.redAdd(this.y).redMul(I.x.redAdd(I.y)).redISub(F).redISub(A),D=J.redMul(H).redMul(T),C,L;return this.curve.twisted?(C=J.redMul(E).redMul(A.redSub(this.curve._mulA(F))),L=H.redMul(E)):(C=J.redMul(E).redMul(A.redSub(F)),L=this.curve._mulC(H).redMul(E)),this.curve.point(D,C,L)},K.prototype.add=function(I){return this.isInfinity()?I:I.isInfinity()?this:this.curve.extended?this._extAdd(I):this._projAdd(I)},K.prototype.mul=function(I){return this._hasDoubles(I)?this.curve._fixedNafMul(this,I):this.curve._wnafMul(this,I)},K.prototype.mulAdd=function(I,J,O){return this.curve._wnafMulAdd(1,[this,J],[I,O],2,!1)},K.prototype.jmulAdd=function(I,J,O){return this.curve._wnafMulAdd(1,[this,J],[I,O],2,!0)},K.prototype.normalize=function(){if(this.zOne)return this;var I=this.z.redInvm();return this.x=this.x.redMul(I),this.y=this.y.redMul(I),this.t&&(this.t=this.t.redMul(I)),this.z=this.curve.one,this.zOne=!0,this},K.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},K.prototype.getX=function(){return this.normalize(),this.x.fromRed()},K.prototype.getY=function(){return this.normalize(),this.y.fromRed()},K.prototype.eq=function(I){return this===I||this.getX().cmp(I.getX())===0&&this.getY().cmp(I.getY())===0},K.prototype.eqXToP=function(I){var J=I.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(J)===0)return!0;for(var O=I.clone(),F=this.curve.redN.redMul(this.z);;){if(O.iadd(this.curve.n),O.cmp(this.curve.p)>=0)return!1;if(J.redIAdd(F),this.x.cmp(J)===0)return!0}},K.prototype.toP=K.prototype.normalize,K.prototype.mixedAdd=K.prototype.add}}),nQ=z$({"node_modules/elliptic/lib/elliptic/curve/index.js"($){var Q=$;Q.base=bQ(),Q.short=lQ(),Q.mont=oQ(),Q.edwards=uQ()}}),sQ=z$({"node_modules/hash.js/lib/hash/utils.js"($){var Q=$Q(),Y=q$();$.inherits=Y;function Z(k,g){return(k.charCodeAt(g)&64512)!==55296||g<0||g+1>=k.length?!1:(k.charCodeAt(g+1)&64512)===56320}function G(k,g){if(Array.isArray(k))return k.slice();if(!k)return[];var N=[];if(typeof k=="string")if(g){if(g==="hex")for(k=k.replace(/[^a-z0-9]+/gi,""),k.length%2!==0&&(k="0"+k),_=0;_<k.length;_+=2)N.push(parseInt(k[_]+k[_+1],16))}else for(var x=0,_=0;_<k.length;_++){var B=k.charCodeAt(_);B<128?N[x++]=B:B<2048?(N[x++]=B>>6|192,N[x++]=B&63|128):Z(k,_)?(B=65536+((B&1023)<<10)+(k.charCodeAt(++_)&1023),N[x++]=B>>18|240,N[x++]=B>>12&63|128,N[x++]=B>>6&63|128,N[x++]=B&63|128):(N[x++]=B>>12|224,N[x++]=B>>6&63|128,N[x++]=B&63|128)}else for(_=0;_<k.length;_++)N[_]=k[_]|0;return N}$.toArray=G;function V(k){for(var g="",N=0;N<k.length;N++)g+=K(k[N].toString(16));return g}$.toHex=V;function U(k){var g=k>>>24|k>>>8&65280|k<<8&16711680|(k&255)<<24;return g>>>0}$.htonl=U;function X(k,g){for(var N="",x=0;x<k.length;x++){var _=k[x];g==="little"&&(_=U(_)),N+=I(_.toString(16))}return N}$.toHex32=X;function K(k){return k.length===1?"0"+k:k}$.zero2=K;function I(k){return k.length===7?"0"+k:k.length===6?"00"+k:k.length===5?"000"+k:k.length===4?"0000"+k:k.length===3?"00000"+k:k.length===2?"000000"+k:k.length===1?"0000000"+k:k}$.zero8=I;function J(k,g,N,x){var _=N-g;Q(_%4===0);for(var B=new Array(_/4),y=0,w=g;y<B.length;y++,w+=4){var f;x==="big"?f=k[w]<<24|k[w+1]<<16|k[w+2]<<8|k[w+3]:f=k[w+3]<<24|k[w+2]<<16|k[w+1]<<8|k[w],B[y]=f>>>0}return B}$.join32=J;function O(k,g){for(var N=new Array(k.length*4),x=0,_=0;x<k.length;x++,_+=4){var B=k[x];g==="big"?(N[_]=B>>>24,N[_+1]=B>>>16&255,N[_+2]=B>>>8&255,N[_+3]=B&255):(N[_+3]=B>>>24,N[_+2]=B>>>16&255,N[_+1]=B>>>8&255,N[_]=B&255)}return N}$.split32=O;function F(k,g){return k>>>g|k<<32-g}$.rotr32=F;function A(k,g){return k<<g|k>>>32-g}$.rotl32=A;function W(k,g){return k+g>>>0}$.sum32=W;function H(k,g,N){return k+g+N>>>0}$.sum32_3=H;function E(k,g,N,x){return k+g+N+x>>>0}$.sum32_4=E;function T(k,g,N,x,_){return k+g+N+x+_>>>0}$.sum32_5=T;function D(k,g,N,x){var _=k[g],B=k[g+1],y=x+B>>>0,w=(y<x?1:0)+N+_;k[g]=w>>>0,k[g+1]=y}$.sum64=D;function C(k,g,N,x){var _=g+x>>>0,B=(_<g?1:0)+k+N;return B>>>0}$.sum64_hi=C;function L(k,g,N,x){var _=g+x;return _>>>0}$.sum64_lo=L;function R(k,g,N,x,_,B,y,w){var f=0,p=g;p=p+x>>>0,f+=p<g?1:0,p=p+B>>>0,f+=p<B?1:0,p=p+w>>>0,f+=p<w?1:0;var c=k+N+_+y+f;return c>>>0}$.sum64_4_hi=R;function P(k,g,N,x,_,B,y,w){var f=g+x+B+w;return f>>>0}$.sum64_4_lo=P;function z(k,g,N,x,_,B,y,w,f,p){var c=0,h=g;h=h+x>>>0,c+=h<g?1:0,h=h+B>>>0,c+=h<B?1:0,h=h+w>>>0,c+=h<w?1:0,h=h+p>>>0,c+=h<p?1:0;var d=k+N+_+y+f+c;return d>>>0}$.sum64_5_hi=z;function M(k,g,N,x,_,B,y,w,f,p){var c=g+x+B+w+p;return c>>>0}$.sum64_5_lo=M;function S(k,g,N){var x=g<<32-N|k>>>N;return x>>>0}$.rotr64_hi=S;function v(k,g,N){var x=k<<32-N|g>>>N;return x>>>0}$.rotr64_lo=v;function q(k,g,N){return k>>>N}$.shr64_hi=q;function j(k,g,N){var x=k<<32-N|g>>>N;return x>>>0}$.shr64_lo=j}}),tQ=z$({"node_modules/hash.js/lib/hash/common.js"($){var Q=sQ(),Y=$Q();function Z(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}$.BlockHash=Z,Z.prototype.update=function(G,V){if(G=Q.toArray(G,V),this.pending?this.pending=this.pending.concat(G):this.pending=G,this.pendingTotal+=G.length,this.pending.length>=this._delta8){G=this.pending;var U=G.length%this._delta8;this.pending=G.slice(G.length-U,G.length),this.pending.length===0&&(this.pending=null),G=Q.join32(G,0,G.length-U,this.endian);for(var X=0;X<G.length;X+=this._delta32)this._update(G,X,X+this._delta32)}return this},Z.prototype.digest=function(G){return this.update(this._pad()),Y(this.pending===null),this._digest(G)},Z.prototype._pad=function(){var G=this.pendingTotal,V=this._delta8,U=V-(G+this.padLength)%V,X=new Array(U+this.padLength);X[0]=128;for(var K=1;K<U;K++)X[K]=0;if(G<<=3,this.endian==="big"){for(var I=8;I<this.padLength;I++)X[K++]=0;X[K++]=0,X[K++]=0,X[K++]=0,X[K++]=0,X[K++]=G>>>24&255,X[K++]=G>>>16&255,X[K++]=G>>>8&255,X[K++]=G&255}else for(X[K++]=G&255,X[K++]=G>>>8&255,X[K++]=G>>>16&255,X[K++]=G>>>24&255,X[K++]=0,X[K++]=0,X[K++]=0,X[K++]=0,I=8;I<this.padLength;I++)X[K++]=0;return X}}}),mQ=z$({"node_modules/hash.js/lib/hash/sha/common.js"($){var Q=sQ(),Y=Q.rotr32;function Z(O,F,A,W){if(O===0)return G(F,A,W);if(O===1||O===3)return U(F,A,W);if(O===2)return V(F,A,W)}$.ft_1=Z;function G(O,F,A){return O&F^~O&A}$.ch32=G;function V(O,F,A){return O&F^O&A^F&A}$.maj32=V;function U(O,F,A){return O^F^A}$.p32=U;function X(O){return Y(O,2)^Y(O,13)^Y(O,22)}$.s0_256=X;function K(O){return Y(O,6)^Y(O,11)^Y(O,25)}$.s1_256=K;function I(O){return Y(O,7)^Y(O,18)^O>>>3}$.g0_256=I;function J(O){return Y(O,17)^Y(O,19)^O>>>10}$.g1_256=J}}),aQ=z$({"node_modules/hash.js/lib/hash/sha/1.js"($,Q){var Y=sQ(),Z=tQ(),G=mQ(),V=Y.rotl32,U=Y.sum32,X=Y.sum32_5,K=G.ft_1,I=Z.BlockHash,J=[1518500249,1859775393,2400959708,3395469782];function O(){if(!(this instanceof O))return new O;I.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Y.inherits(O,I),Q.exports=O,O.blockSize=512,O.outSize=160,O.hmacStrength=80,O.padLength=64,O.prototype._update=function(F,A){for(var W=this.W,H=0;H<16;H++)W[H]=F[A+H];for(;H<W.length;H++)W[H]=V(W[H-3]^W[H-8]^W[H-14]^W[H-16],1);var E=this.h[0],T=this.h[1],D=this.h[2],C=this.h[3],L=this.h[4];for(H=0;H<W.length;H++){var R=~~(H/20),P=X(V(E,5),K(R,T,D,C),L,W[H],J[R]);L=C,C=D,D=V(T,30),T=E,E=P}this.h[0]=U(this.h[0],E),this.h[1]=U(this.h[1],T),this.h[2]=U(this.h[2],D),this.h[3]=U(this.h[3],C),this.h[4]=U(this.h[4],L)},O.prototype._digest=function(F){return F==="hex"?Y.toHex32(this.h,"big"):Y.split32(this.h,"big")}}}),rQ=z$({"node_modules/hash.js/lib/hash/sha/256.js"($,Q){var Y=sQ(),Z=tQ(),G=mQ(),V=$Q(),U=Y.sum32,X=Y.sum32_4,K=Y.sum32_5,I=G.ch32,J=G.maj32,O=G.s0_256,F=G.s1_256,A=G.g0_256,W=G.g1_256,H=Z.BlockHash,E=[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];function T(){if(!(this instanceof T))return new T;H.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=E,this.W=new Array(64)}Y.inherits(T,H),Q.exports=T,T.blockSize=512,T.outSize=256,T.hmacStrength=192,T.padLength=64,T.prototype._update=function(D,C){for(var L=this.W,R=0;R<16;R++)L[R]=D[C+R];for(;R<L.length;R++)L[R]=X(W(L[R-2]),L[R-7],A(L[R-15]),L[R-16]);var P=this.h[0],z=this.h[1],M=this.h[2],S=this.h[3],v=this.h[4],q=this.h[5],j=this.h[6],k=this.h[7];for(V(this.k.length===L.length),R=0;R<L.length;R++){var g=K(k,F(v),I(v,q,j),this.k[R],L[R]),N=U(O(P),J(P,z,M));k=j,j=q,q=v,v=U(S,g),S=M,M=z,z=P,P=U(g,N)}this.h[0]=U(this.h[0],P),this.h[1]=U(this.h[1],z),this.h[2]=U(this.h[2],M),this.h[3]=U(this.h[3],S),this.h[4]=U(this.h[4],v),this.h[5]=U(this.h[5],q),this.h[6]=U(this.h[6],j),this.h[7]=U(this.h[7],k)},T.prototype._digest=function(D){return D==="hex"?Y.toHex32(this.h,"big"):Y.split32(this.h,"big")}}}),eQ=z$({"node_modules/hash.js/lib/hash/sha/224.js"($,Q){var Y=sQ(),Z=rQ();function G(){if(!(this instanceof G))return new G;Z.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Y.inherits(G,Z),Q.exports=G,G.blockSize=512,G.outSize=224,G.hmacStrength=192,G.padLength=64,G.prototype._digest=function(V){return V==="hex"?Y.toHex32(this.h.slice(0,7),"big"):Y.split32(this.h.slice(0,7),"big")}}}),iQ=z$({"node_modules/hash.js/lib/hash/sha/512.js"($,Q){var Y=sQ(),Z=tQ(),G=$Q(),V=Y.rotr64_hi,U=Y.rotr64_lo,X=Y.shr64_hi,K=Y.shr64_lo,I=Y.sum64,J=Y.sum64_hi,O=Y.sum64_lo,F=Y.sum64_4_hi,A=Y.sum64_4_lo,W=Y.sum64_5_hi,H=Y.sum64_5_lo,E=Z.BlockHash,T=[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];function D(){if(!(this instanceof D))return new D;E.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=T,this.W=new Array(160)}Y.inherits(D,E),Q.exports=D,D.blockSize=1024,D.outSize=512,D.hmacStrength=192,D.padLength=128,D.prototype._prepareBlock=function(N,x){for(var _=this.W,B=0;B<32;B++)_[B]=N[x+B];for(;B<_.length;B+=2){var y=k(_[B-4],_[B-3]),w=g(_[B-4],_[B-3]),f=_[B-14],p=_[B-13],c=q(_[B-30],_[B-29]),h=j(_[B-30],_[B-29]),d=_[B-32],b=_[B-31];_[B]=F(y,w,f,p,c,h,d,b),_[B+1]=A(y,w,f,p,c,h,d,b)}},D.prototype._update=function(N,x){this._prepareBlock(N,x);var _=this.W,B=this.h[0],y=this.h[1],w=this.h[2],f=this.h[3],p=this.h[4],c=this.h[5],h=this.h[6],d=this.h[7],b=this.h[8],l=this.h[9],o=this.h[10],u=this.h[11],n=this.h[12],s=this.h[13],t=this.h[14],m=this.h[15];G(this.k.length===_.length);for(var a=0;a<_.length;a+=2){var r=t,e=m,i=S(b,l),$0=v(b,l),Q0=C(b,l,o,u,n,s),Y0=L(b,l,o,u,n,s),Z0=this.k[a],G0=this.k[a+1],V0=_[a],U0=_[a+1],X0=W(r,e,i,$0,Q0,Y0,Z0,G0,V0,U0),K0=H(r,e,i,$0,Q0,Y0,Z0,G0,V0,U0);r=z(B,y),e=M(B,y),i=R(B,y,w,f,p,c),$0=P(B,y,w,f,p,c);var I0=J(r,e,i,$0),J0=O(r,e,i,$0);t=n,m=s,n=o,s=u,o=b,u=l,b=J(h,d,X0,K0),l=O(d,d,X0,K0),h=p,d=c,p=w,c=f,w=B,f=y,B=J(X0,K0,I0,J0),y=O(X0,K0,I0,J0)}I(this.h,0,B,y),I(this.h,2,w,f),I(this.h,4,p,c),I(this.h,6,h,d),I(this.h,8,b,l),I(this.h,10,o,u),I(this.h,12,n,s),I(this.h,14,t,m)},D.prototype._digest=function(N){return N==="hex"?Y.toHex32(this.h,"big"):Y.split32(this.h,"big")};function C(N,x,_,B,y){var w=N&_^~N&y;return w<0&&(w+=4294967296),w}function L(N,x,_,B,y,w){var f=x&B^~x&w;return f<0&&(f+=4294967296),f}function R(N,x,_,B,y){var w=N&_^N&y^_&y;return w<0&&(w+=4294967296),w}function P(N,x,_,B,y,w){var f=x&B^x&w^B&w;return f<0&&(f+=4294967296),f}function z(N,x){var _=V(N,x,28),B=V(x,N,2),y=V(x,N,7),w=_^B^y;return w<0&&(w+=4294967296),w}function M(N,x){var _=U(N,x,28),B=U(x,N,2),y=U(x,N,7),w=_^B^y;return w<0&&(w+=4294967296),w}function S(N,x){var _=V(N,x,14),B=V(N,x,18),y=V(x,N,9),w=_^B^y;return w<0&&(w+=4294967296),w}function v(N,x){var _=U(N,x,14),B=U(N,x,18),y=U(x,N,9),w=_^B^y;return w<0&&(w+=4294967296),w}function q(N,x){var _=V(N,x,1),B=V(N,x,8),y=X(N,x,7),w=_^B^y;return w<0&&(w+=4294967296),w}function j(N,x){var _=U(N,x,1),B=U(N,x,8),y=K(N,x,7),w=_^B^y;return w<0&&(w+=4294967296),w}function k(N,x){var _=V(N,x,19),B=V(x,N,29),y=X(N,x,6),w=_^B^y;return w<0&&(w+=4294967296),w}function g(N,x){var _=U(N,x,19),B=U(x,N,29),y=K(N,x,6),w=_^B^y;return w<0&&(w+=4294967296),w}}}),$Y=z$({"node_modules/hash.js/lib/hash/sha/384.js"($,Q){var Y=sQ(),Z=iQ();function G(){if(!(this instanceof G))return new G;Z.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Y.inherits(G,Z),Q.exports=G,G.blockSize=1024,G.outSize=384,G.hmacStrength=192,G.padLength=128,G.prototype._digest=function(V){return V==="hex"?Y.toHex32(this.h.slice(0,12),"big"):Y.split32(this.h.slice(0,12),"big")}}}),QY=z$({"node_modules/hash.js/lib/hash/sha.js"($){$.sha1=aQ(),$.sha224=eQ(),$.sha256=rQ(),$.sha384=$Y(),$.sha512=iQ()}}),YY=z$({"node_modules/hash.js/lib/hash/ripemd.js"($){var Q=sQ(),Y=tQ(),Z=Q.rotl32,G=Q.sum32,V=Q.sum32_3,U=Q.sum32_4,X=Y.BlockHash;function K(){if(!(this instanceof K))return new K;X.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}Q.inherits(K,X),$.ripemd160=K,K.blockSize=512,K.outSize=160,K.hmacStrength=192,K.padLength=64,K.prototype._update=function(E,T){for(var D=this.h[0],C=this.h[1],L=this.h[2],R=this.h[3],P=this.h[4],z=D,M=C,S=L,v=R,q=P,j=0;j<80;j++){var k=G(Z(U(D,I(j,C,L,R),E[F[j]+T],J(j)),W[j]),P);D=P,P=R,R=Z(L,10),L=C,C=k,k=G(Z(U(z,I(79-j,M,S,v),E[A[j]+T],O(j)),H[j]),q),z=q,q=v,v=Z(S,10),S=M,M=k}k=V(this.h[1],L,v),this.h[1]=V(this.h[2],R,q),this.h[2]=V(this.h[3],P,z),this.h[3]=V(this.h[4],D,M),this.h[4]=V(this.h[0],C,S),this.h[0]=k},K.prototype._digest=function(E){return E==="hex"?Q.toHex32(this.h,"little"):Q.split32(this.h,"little")};function I(E,T,D,C){return E<=15?T^D^C:E<=31?T&D|~T&C:E<=47?(T|~D)^C:E<=63?T&C|D&~C:T^(D|~C)}function J(E){return E<=15?0:E<=31?1518500249:E<=47?1859775393:E<=63?2400959708:2840853838}function O(E){return E<=15?1352829926:E<=31?1548603684:E<=47?1836072691:E<=63?2053994217:0}var F=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],A=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],W=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],H=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]}}),ZY=z$({"node_modules/hash.js/lib/hash/hmac.js"($,Q){var Y=sQ(),Z=$Q();function G(V,U,X){if(!(this instanceof G))return new G(V,U,X);this.Hash=V,this.blockSize=V.blockSize/8,this.outSize=V.outSize/8,this.inner=null,this.outer=null,this._init(Y.toArray(U,X))}Q.exports=G,G.prototype._init=function(V){V.length>this.blockSize&&(V=new this.Hash().update(V).digest()),Z(V.length<=this.blockSize);for(var U=V.length;U<this.blockSize;U++)V.push(0);for(U=0;U<V.length;U++)V[U]^=54;for(this.inner=new this.Hash().update(V),U=0;U<V.length;U++)V[U]^=106;this.outer=new this.Hash().update(V)},G.prototype.update=function(V,U){return this.inner.update(V,U),this},G.prototype.digest=function(V){return this.outer.update(this.inner.digest()),this.outer.digest(V)}}}),GY=z$({"node_modules/hash.js/lib/hash.js"($){var Q=$;Q.utils=sQ(),Q.common=tQ(),Q.sha=QY(),Q.ripemd=YY(),Q.hmac=ZY(),Q.sha1=Q.sha.sha1,Q.sha256=Q.sha.sha256,Q.sha224=Q.sha.sha224,Q.sha384=Q.sha.sha384,Q.sha512=Q.sha.sha512,Q.ripemd160=Q.ripemd.ripemd160}}),VY=z$({"node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js"($,Q){Q.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}}}),UY=z$({"node_modules/elliptic/lib/elliptic/curves.js"($){var Q=$,Y=GY(),Z=nQ(),G=dQ(),V=G.assert;function U(I){I.type==="short"?this.curve=new Z.short(I):I.type==="edwards"?this.curve=new Z.edwards(I):this.curve=new Z.mont(I),this.g=this.curve.g,this.n=this.curve.n,this.hash=I.hash,V(this.g.validate(),"Invalid curve"),V(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}Q.PresetCurve=U;function X(I,J){Object.defineProperty(Q,I,{configurable:!0,enumerable:!0,get:function(){var O=new U(J);return Object.defineProperty(Q,I,{configurable:!0,enumerable:!0,value:O}),O}})}X("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Y.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),X("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Y.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),X("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Y.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),X("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Y.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),X("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Y.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),X("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Y.sha256,gRed:!1,g:["9"]}),X("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Y.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var K;try{K=VY()}catch{K=void 0}X("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Y.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",K]})}}),XY=z$({"node_modules/hmac-drbg/lib/hmac-drbg.js"($,Q){var Y=GY(),Z=hQ(),G=$Q();function V(U){if(!(this instanceof V))return new V(U);this.hash=U.hash,this.predResist=!!U.predResist,this.outLen=this.hash.outSize,this.minEntropy=U.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var X=Z.toArray(U.entropy,U.entropyEnc||"hex"),K=Z.toArray(U.nonce,U.nonceEnc||"hex"),I=Z.toArray(U.pers,U.persEnc||"hex");G(X.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(X,K,I)}Q.exports=V,V.prototype._init=function(U,X,K){var I=U.concat(X).concat(K);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var J=0;J<this.V.length;J++)this.K[J]=0,this.V[J]=1;this._update(I),this._reseed=1,this.reseedInterval=281474976710656},V.prototype._hmac=function(){return new Y.hmac(this.hash,this.K)},V.prototype._update=function(U){var X=this._hmac().update(this.V).update([0]);U&&(X=X.update(U)),this.K=X.digest(),this.V=this._hmac().update(this.V).digest(),U&&(this.K=this._hmac().update(this.V).update([1]).update(U).digest(),this.V=this._hmac().update(this.V).digest())},V.prototype.reseed=function(U,X,K,I){typeof X!="string"&&(I=K,K=X,X=null),U=Z.toArray(U,X),K=Z.toArray(K,I),G(U.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(U.concat(K||[])),this._reseed=1},V.prototype.generate=function(U,X,K,I){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof X!="string"&&(I=K,K=X,X=null),K&&(K=Z.toArray(K,I||"hex"),this._update(K));for(var J=[];J.length<U;)this.V=this._hmac().update(this.V).digest(),J=J.concat(this.V);var O=J.slice(0,U);return this._update(K),this._reseed++,Z.encode(O,X)}}}),KY=z$({"node_modules/elliptic/lib/elliptic/ec/key.js"($,Q){var Y=cQ(),Z=dQ(),G=Z.assert;function V(U,X){this.ec=U,this.priv=null,this.pub=null,X.priv&&this._importPrivate(X.priv,X.privEnc),X.pub&&this._importPublic(X.pub,X.pubEnc)}Q.exports=V,V.fromPublic=function(U,X,K){return X instanceof V?X:new V(U,{pub:X,pubEnc:K})},V.fromPrivate=function(U,X,K){return X instanceof V?X:new V(U,{priv:X,privEnc:K})},V.prototype.validate=function(){var U=this.getPublic();return U.isInfinity()?{result:!1,reason:"Invalid public key"}:U.validate()?U.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},V.prototype.getPublic=function(U,X){return typeof U=="string"&&(X=U,U=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),X?this.pub.encode(X,U):this.pub},V.prototype.getPrivate=function(U){return U==="hex"?this.priv.toString(16,2):this.priv},V.prototype._importPrivate=function(U,X){this.priv=new Y(U,X||16),this.priv=this.priv.umod(this.ec.curve.n)},V.prototype._importPublic=function(U,X){if(U.x||U.y){this.ec.curve.type==="mont"?G(U.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&G(U.x&&U.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(U.x,U.y);return}this.pub=this.ec.curve.decodePoint(U,X)},V.prototype.derive=function(U){return U.validate()||G(U.validate(),"public point not validated"),U.mul(this.priv).getX()},V.prototype.sign=function(U,X,K){return this.ec.sign(U,this,X,K)},V.prototype.verify=function(U,X){return this.ec.verify(U,X,this)},V.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}}),IY=z$({"node_modules/elliptic/lib/elliptic/ec/signature.js"($,Q){var Y=cQ(),Z=dQ(),G=Z.assert;function V(J,O){if(J instanceof V)return J;this._importDER(J,O)||(G(J.r&&J.s,"Signature without r or s"),this.r=new Y(J.r,16),this.s=new Y(J.s,16),J.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=J.recoveryParam)}Q.exports=V;function U(){this.place=0}function X(J,O){var F=J[O.place++];if(!(F&128))return F;var A=F&15;if(A===0||A>4)return!1;for(var W=0,H=0,E=O.place;H<A;H++,E++)W<<=8,W|=J[E],W>>>=0;return W<=127?!1:(O.place=E,W)}function K(J){for(var O=0,F=J.length-1;!J[O]&&!(J[O+1]&128)&&O<F;)O++;return O===0?J:J.slice(O)}V.prototype._importDER=function(J,O){J=Z.toArray(J,O);var F=new U;if(J[F.place++]!==48)return!1;var A=X(J,F);if(A===!1||A+F.place!==J.length||J[F.place++]!==2)return!1;var W=X(J,F);if(W===!1)return!1;var H=J.slice(F.place,W+F.place);if(F.place+=W,J[F.place++]!==2)return!1;var E=X(J,F);if(E===!1||J.length!==E+F.place)return!1;var T=J.slice(F.place,E+F.place);if(H[0]===0)if(H[1]&128)H=H.slice(1);else return!1;if(T[0]===0)if(T[1]&128)T=T.slice(1);else return!1;return this.r=new Y(H),this.s=new Y(T),this.recoveryParam=null,!0};function I(J,O){if(O<128){J.push(O);return}var F=1+(Math.log(O)/Math.LN2>>>3);for(J.push(F|128);--F;)J.push(O>>>(F<<3)&255);J.push(O)}V.prototype.toDER=function(J){var O=this.r.toArray(),F=this.s.toArray();for(O[0]&128&&(O=[0].concat(O)),F[0]&128&&(F=[0].concat(F)),O=K(O),F=K(F);!F[0]&&!(F[1]&128);)F=F.slice(1);var A=[2];I(A,O.length),A=A.concat(O),A.push(2),I(A,F.length);var W=A.concat(F),H=[48];return I(H,W.length),H=H.concat(W),Z.encode(H,J)}}}),JY=z$({"node_modules/elliptic/lib/elliptic/ec/index.js"($,Q){var Y=cQ(),Z=XY(),G=dQ(),V=UY(),U=gQ(),X=G.assert,K=KY(),I=IY();function J(O){if(!(this instanceof J))return new J(O);typeof O=="string"&&(X(Object.prototype.hasOwnProperty.call(V,O),"Unknown curve "+O),O=V[O]),O instanceof V.PresetCurve&&(O={curve:O}),this.curve=O.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=O.curve.g,this.g.precompute(O.curve.n.bitLength()+1),this.hash=O.hash||O.curve.hash}Q.exports=J,J.prototype.keyPair=function(O){return new K(this,O)},J.prototype.keyFromPrivate=function(O,F){return K.fromPrivate(this,O,F)},J.prototype.keyFromPublic=function(O,F){return K.fromPublic(this,O,F)},J.prototype.genKeyPair=function(O){O||(O={});for(var F=new Z({hash:this.hash,pers:O.pers,persEnc:O.persEnc||"utf8",entropy:O.entropy||U(this.hash.hmacStrength),entropyEnc:O.entropy&&O.entropyEnc||"utf8",nonce:this.n.toArray()}),A=this.n.byteLength(),W=this.n.sub(new Y(2));;){var H=new Y(F.generate(A));if(!(H.cmp(W)>0))return H.iaddn(1),this.keyFromPrivate(H)}},J.prototype._truncateToN=function(O,F){var A=O.byteLength()*8-this.n.bitLength();return A>0&&(O=O.ushrn(A)),!F&&O.cmp(this.n)>=0?O.sub(this.n):O},J.prototype.sign=function(O,F,A,W){typeof A=="object"&&(W=A,A=null),W||(W={}),F=this.keyFromPrivate(F,A),O=this._truncateToN(new Y(O,16));for(var H=this.n.byteLength(),E=F.getPrivate().toArray("be",H),T=O.toArray("be",H),D=new Z({hash:this.hash,entropy:E,nonce:T,pers:W.pers,persEnc:W.persEnc||"utf8"}),C=this.n.sub(new Y(1)),L=0;;L++){var R=W.k?W.k(L):new Y(D.generate(this.n.byteLength()));if(R=this._truncateToN(R,!0),!(R.cmpn(1)<=0||R.cmp(C)>=0)){var P=this.g.mul(R);if(!P.isInfinity()){var z=P.getX(),M=z.umod(this.n);if(M.cmpn(0)!==0){var S=R.invm(this.n).mul(M.mul(F.getPrivate()).iadd(O));if(S=S.umod(this.n),S.cmpn(0)!==0){var v=(P.getY().isOdd()?1:0)|(z.cmp(M)!==0?2:0);return W.canonical&&S.cmp(this.nh)>0&&(S=this.n.sub(S),v^=1),new I({r:M,s:S,recoveryParam:v})}}}}}},J.prototype.verify=function(O,F,A,W){O=this._truncateToN(new Y(O,16)),A=this.keyFromPublic(A,W),F=new I(F,"hex");var{r:H,s:E}=F;if(H.cmpn(1)<0||H.cmp(this.n)>=0||E.cmpn(1)<0||E.cmp(this.n)>=0)return!1;var T=E.invm(this.n),D=T.mul(O).umod(this.n),C=T.mul(H).umod(this.n),L;return this.curve._maxwellTrick?(L=this.g.jmulAdd(D,A.getPublic(),C),L.isInfinity()?!1:L.eqXToP(H)):(L=this.g.mulAdd(D,A.getPublic(),C),L.isInfinity()?!1:L.getX().umod(this.n).cmp(H)===0)},J.prototype.recoverPubKey=function(O,F,A,W){X((3&A)===A,"The recovery param is more than two bits"),F=new I(F,W);var H=this.n,E=new Y(O),T=F.r,D=F.s,C=A&1,L=A>>1;if(T.cmp(this.curve.p.umod(this.curve.n))>=0&&L)throw new Error("Unable to find sencond key candinate");L?T=this.curve.pointFromX(T.add(this.curve.n),C):T=this.curve.pointFromX(T,C);var R=F.r.invm(H),P=H.sub(E).mul(R).umod(H),z=D.mul(R).umod(H);return this.g.mulAdd(P,T,z)},J.prototype.getKeyRecoveryParam=function(O,F,A,W){if(F=new I(F,W),F.recoveryParam!==null)return F.recoveryParam;for(var H=0;H<4;H++){var E;try{E=this.recoverPubKey(O,F,H)}catch{continue}if(E.eq(A))return H}throw new Error("Unable to find valid recovery factor")}}}),OY=z$({"node_modules/elliptic/lib/elliptic/eddsa/key.js"($,Q){var Y=dQ(),Z=Y.assert,G=Y.parseBytes,V=Y.cachedProperty;function U(X,K){this.eddsa=X,this._secret=G(K.secret),X.isPoint(K.pub)?this._pub=K.pub:this._pubBytes=G(K.pub)}U.fromPublic=function(X,K){return K instanceof U?K:new U(X,{pub:K})},U.fromSecret=function(X,K){return K instanceof U?K:new U(X,{secret:K})},U.prototype.secret=function(){return this._secret},V(U,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),V(U,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),V(U,"privBytes",function(){var X=this.eddsa,K=this.hash(),I=X.encodingLength-1,J=K.slice(0,X.encodingLength);return J[0]&=248,J[I]&=127,J[I]|=64,J}),V(U,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),V(U,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),V(U,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),U.prototype.sign=function(X){return Z(this._secret,"KeyPair can only verify"),this.eddsa.sign(X,this)},U.prototype.verify=function(X,K){return this.eddsa.verify(X,K,this)},U.prototype.getSecret=function(X){return Z(this._secret,"KeyPair is public only"),Y.encode(this.secret(),X)},U.prototype.getPublic=function(X){return Y.encode(this.pubBytes(),X)},Q.exports=U}}),FY=z$({"node_modules/elliptic/lib/elliptic/eddsa/signature.js"($,Q){var Y=cQ(),Z=dQ(),G=Z.assert,V=Z.cachedProperty,U=Z.parseBytes;function X(K,I){this.eddsa=K,typeof I!="object"&&(I=U(I)),Array.isArray(I)&&(I={R:I.slice(0,K.encodingLength),S:I.slice(K.encodingLength)}),G(I.R&&I.S,"Signature without R or S"),K.isPoint(I.R)&&(this._R=I.R),I.S instanceof Y&&(this._S=I.S),this._Rencoded=Array.isArray(I.R)?I.R:I.Rencoded,this._Sencoded=Array.isArray(I.S)?I.S:I.Sencoded}V(X,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),V(X,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),V(X,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),V(X,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),X.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},X.prototype.toHex=function(){return Z.encode(this.toBytes(),"hex").toUpperCase()},Q.exports=X}}),AY=z$({"node_modules/elliptic/lib/elliptic/eddsa/index.js"($,Q){var Y=GY(),Z=UY(),G=dQ(),V=G.assert,U=G.parseBytes,X=OY(),K=FY();function I(J){if(V(J==="ed25519","only tested with ed25519 so far"),!(this instanceof I))return new I(J);J=Z[J].curve,this.curve=J,this.g=J.g,this.g.precompute(J.n.bitLength()+1),this.pointClass=J.point().constructor,this.encodingLength=Math.ceil(J.n.bitLength()/8),this.hash=Y.sha512}Q.exports=I,I.prototype.sign=function(J,O){J=U(J);var F=this.keyFromSecret(O),A=this.hashInt(F.messagePrefix(),J),W=this.g.mul(A),H=this.encodePoint(W),E=this.hashInt(H,F.pubBytes(),J).mul(F.priv()),T=A.add(E).umod(this.curve.n);return this.makeSignature({R:W,S:T,Rencoded:H})},I.prototype.verify=function(J,O,F){J=U(J),O=this.makeSignature(O);var A=this.keyFromPublic(F),W=this.hashInt(O.Rencoded(),A.pubBytes(),J),H=this.g.mul(O.S()),E=O.R().add(A.pub().mul(W));return E.eq(H)},I.prototype.hashInt=function(){for(var J=this.hash(),O=0;O<arguments.length;O++)J.update(arguments[O]);return G.intFromLE(J.digest()).umod(this.curve.n)},I.prototype.keyFromPublic=function(J){return X.fromPublic(this,J)},I.prototype.keyFromSecret=function(J){return X.fromSecret(this,J)},I.prototype.makeSignature=function(J){return J instanceof K?J:new K(this,J)},I.prototype.encodePoint=function(J){var O=J.getY().toArray("le",this.encodingLength);return O[this.encodingLength-1]|=J.getX().isOdd()?128:0,O},I.prototype.decodePoint=function(J){J=G.parseBytes(J);var O=J.length-1,F=J.slice(0,O).concat(J[O]&-129),A=(J[O]&128)!==0,W=G.intFromLE(F);return this.curve.pointFromY(W,A)},I.prototype.encodeInt=function(J){return J.toArray("le",this.encodingLength)},I.prototype.decodeInt=function(J){return G.intFromLE(J)},I.prototype.isPoint=function(J){return J instanceof this.pointClass}}}),WY=z$({"node_modules/elliptic/lib/elliptic.js"($){var Q=$;Q.version=pQ().version,Q.utils=dQ(),Q.rand=gQ(),Q.curve=nQ(),Q.curves=UY(),Q.ec=JY(),Q.eddsa=AY()}}),HY=z$({"node_modules/asn1.js/node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(j,k){if(!j)throw new Error(k||"Assertion failed")}function V(j,k){j.super_=k;var g=function(){};g.prototype=k.prototype,j.prototype=new g,j.prototype.constructor=j}function U(j,k,g){if(U.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((k==="le"||k==="be")&&(g=k,k=10),this._init(j||0,k||10,g||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X;try{typeof window<"u"&&typeof window.Buffer<"u"?X=window.Buffer:X=R$("buffer").Buffer}catch{}U.isBN=function(j){return j instanceof U?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===U.wordSize&&Array.isArray(j.words)},U.max=function(j,k){return j.cmp(k)>0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var N=0;j[0]==="-"&&(N++,this.negative=1),N<j.length&&(k===16?this._parseHex(j,N,g):(this._parseBase(j,k,N),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x,_,B=0;if(g==="be")for(N=j.length-1,x=0;N>=0;N-=3)_=j[N]|j[N-1]<<8|j[N-2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);else if(g==="le")for(N=0,x=0;N<j.length;N+=3)_=j[N]|j[N+1]<<8|j[N+2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var N=K(j,g);return g-1>=k&&(N|=K(j,g-1)<<4),N}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x=0,_=0,B;if(g==="be")for(N=j.length-1;N>=k;N-=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8;else{var y=j.length-k;for(N=y%2===0?k+1:k;N<j.length;N+=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8}this.strip()};function J(j,k,g,N){for(var x=0,_=Math.min(j.length,g),B=k;B<_;B++){var y=j.charCodeAt(B)-48;x*=N,y>=49?x+=y-49+10:y>=17?x+=y-17+10:x+=y}return x}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var N=0,x=1;x<=67108863;x*=k)N++;N--,x=x/k|0;for(var _=j.length-g,B=_%N,y=Math.min(_,_-B)+g,w=0,f=g;f<y;f+=N)w=J(j,f,f+N,k),this.imuln(x),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var p=1;for(w=J(j,f,j.length,k),f=0;f<B;f++)p*=k;this.imuln(p),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],F=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var N=0,x=0,_=0;_<this.length;_++){var B=this.words[_],y=((B<<N|x)&16777215).toString(16);x=B>>>24-N&16777215,x!==0||_!==this.length-1?g=O[6-y.length]+y+g:g=y+g,N+=2,N>=26&&(N-=26,_--)}for(x!==0&&(g=x.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],f=A[j];g="";var p=this.clone();for(p.negative=0;!p.isZero();){var c=p.modn(f).toString(j);p=p.idivn(f),p.isZero()?g=c+g:g=O[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var N=this.byteLength(),x=g||Math.max(1,N);G(N<=x,"byte array longer than desired length"),G(x>0,"Requested array length <= 0"),this.strip();var _=k==="le",B=new j(x),y,w,f=this.clone();if(_){for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[w]=y;for(;w<x;w++)B[w]=0}else{for(w=0;w<x-N;w++)B[w]=0;for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[x-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function W(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var N=g/26|0,x=g%26;k[g]=(j.words[N]&1<<x)>>>x}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var N=0;N<g.length;N++)this.words[N]=k.words[N]^g.words[N];if(this!==k)for(;N<k.length;N++)this.words[N]=k.words[N];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var N=0;N<k;N++)this.words[N]=~this.words[N]&67108863;return g>0&&(this.words[N]=~this.words[N]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,N=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<N:this.words[g]=this.words[g]&~(1<<N),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,N;this.length>j.length?(g=this,N=j):(g=j,N=this);for(var x=0,_=0;_<N.length;_++)k=(g.words[_]|0)+(N.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;for(;x!==0&&_<g.length;_++)k=(g.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;if(this.length=g.length,x!==0)this.words[this.length]=x,this.length++;else if(g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var N,x;g>0?(N=this,x=j):(N=j,x=this);for(var _=0,B=0;B<x.length;B++)k=(N.words[B]|0)-(x.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;for(;_!==0&&B<N.length;B++)k=(N.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;if(_===0&&B<N.length&&N!==this)for(;B<N.length;B++)this.words[B]=N.words[B];return this.length=Math.max(this.length,B),N!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function H(j,k,g){g.negative=k.negative^j.negative;var N=j.length+k.length|0;g.length=N,N=N-1|0;var x=j.words[0]|0,_=k.words[0]|0,B=x*_,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var f=1;f<N;f++){for(var p=w>>>26,c=w&67108863,h=Math.min(f,k.length-1),d=Math.max(0,f-j.length+1);d<=h;d++){var b=f-d|0;x=j.words[b]|0,_=k.words[d]|0,B=x*_+c,p+=B/67108864|0,c=B&67108863}g.words[f]=c|0,w=p|0}return w!==0?g.words[f]=w|0:g.length--,g.strip()}var E=function(j,k,g){var N=j.words,x=k.words,_=g.words,B=0,y,w,f,p=N[0]|0,c=p&8191,h=p>>>13,d=N[1]|0,b=d&8191,l=d>>>13,o=N[2]|0,u=o&8191,n=o>>>13,s=N[3]|0,t=s&8191,m=s>>>13,a=N[4]|0,r=a&8191,e=a>>>13,i=N[5]|0,$0=i&8191,Q0=i>>>13,Y0=N[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=N[7]|0,U0=V0&8191,X0=V0>>>13,K0=N[8]|0,I0=K0&8191,J0=K0>>>13,O0=N[9]|0,F0=O0&8191,A0=O0>>>13,W0=x[0]|0,H0=W0&8191,E0=W0>>>13,T0=x[1]|0,D0=T0&8191,C0=T0>>>13,L0=x[2]|0,R0=L0&8191,P0=L0>>>13,z0=x[3]|0,M0=z0&8191,S0=z0>>>13,v0=x[4]|0,q0=v0&8191,j0=v0>>>13,k0=x[5]|0,g0=k0&8191,N0=k0>>>13,x0=x[6]|0,_0=x0&8191,B0=x0>>>13,y0=x[7]|0,w0=y0&8191,f0=y0>>>13,p0=x[8]|0,c0=p0&8191,h0=p0>>>13,d0=x[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,H0),w=Math.imul(c,E0),w=w+Math.imul(h,H0)|0,f=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,H0),w=Math.imul(b,E0),w=w+Math.imul(l,H0)|0,f=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,f=f+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,H0),w=Math.imul(u,E0),w=w+Math.imul(n,H0)|0,f=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,f=f+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,f=f+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,H0),w=Math.imul(t,E0),w=w+Math.imul(m,H0)|0,f=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,f=f+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,f=f+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,f=f+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(r,H0),w=Math.imul(r,E0),w=w+Math.imul(e,H0)|0,f=Math.imul(e,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,f=f+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,f=f+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,f=f+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,f=f+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,H0),w=Math.imul($0,E0),w=w+Math.imul(Q0,H0)|0,f=Math.imul(Q0,E0),y=y+Math.imul(r,D0)|0,w=w+Math.imul(r,C0)|0,w=w+Math.imul(e,D0)|0,f=f+Math.imul(e,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,f=f+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,f=f+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,f=f+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,N0)|0,w=w+Math.imul(h,g0)|0,f=f+Math.imul(h,N0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,H0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,H0)|0,f=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,f=f+Math.imul(Q0,C0)|0,y=y+Math.imul(r,R0)|0,w=w+Math.imul(r,P0)|0,w=w+Math.imul(e,R0)|0,f=f+Math.imul(e,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,f=f+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,f=f+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,N0)|0,w=w+Math.imul(l,g0)|0,f=f+Math.imul(l,N0)|0,y=y+Math.imul(c,_0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,_0)|0,f=f+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,H0),w=Math.imul(U0,E0),w=w+Math.imul(X0,H0)|0,f=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,f=f+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,f=f+Math.imul(Q0,P0)|0,y=y+Math.imul(r,M0)|0,w=w+Math.imul(r,S0)|0,w=w+Math.imul(e,M0)|0,f=f+Math.imul(e,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,f=f+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,N0)|0,w=w+Math.imul(n,g0)|0,f=f+Math.imul(n,N0)|0,y=y+Math.imul(b,_0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,_0)|0,f=f+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,f0)|0,w=w+Math.imul(h,w0)|0,f=f+Math.imul(h,f0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(I0,H0),w=Math.imul(I0,E0),w=w+Math.imul(J0,H0)|0,f=Math.imul(J0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,f=f+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,f=f+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,f=f+Math.imul(Q0,S0)|0,y=y+Math.imul(r,q0)|0,w=w+Math.imul(r,j0)|0,w=w+Math.imul(e,q0)|0,f=f+Math.imul(e,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,N0)|0,w=w+Math.imul(m,g0)|0,f=f+Math.imul(m,N0)|0,y=y+Math.imul(u,_0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,_0)|0,f=f+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,f0)|0,w=w+Math.imul(l,w0)|0,f=f+Math.imul(l,f0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,f=f+Math.imul(h,h0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(F0,H0),w=Math.imul(F0,E0),w=w+Math.imul(A0,H0)|0,f=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(J0,D0)|0,f=f+Math.imul(J0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,f=f+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,f=f+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,f=f+Math.imul(Q0,j0)|0,y=y+Math.imul(r,g0)|0,w=w+Math.imul(r,N0)|0,w=w+Math.imul(e,g0)|0,f=f+Math.imul(e,N0)|0,y=y+Math.imul(t,_0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,_0)|0,f=f+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,f0)|0,w=w+Math.imul(n,w0)|0,f=f+Math.imul(n,f0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,f=f+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,f=f+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,f=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(J0,R0)|0,f=f+Math.imul(J0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,f=f+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,f=f+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,N0)|0,w=w+Math.imul(Q0,g0)|0,f=f+Math.imul(Q0,N0)|0,y=y+Math.imul(r,_0)|0,w=w+Math.imul(r,B0)|0,w=w+Math.imul(e,_0)|0,f=f+Math.imul(e,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,f0)|0,w=w+Math.imul(m,w0)|0,f=f+Math.imul(m,f0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,f=f+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,f=f+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,f=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(J0,M0)|0,f=f+Math.imul(J0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,f=f+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,N0)|0,w=w+Math.imul(G0,g0)|0,f=f+Math.imul(G0,N0)|0,y=y+Math.imul($0,_0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,_0)|0,f=f+Math.imul(Q0,B0)|0,y=y+Math.imul(r,w0)|0,w=w+Math.imul(r,f0)|0,w=w+Math.imul(e,w0)|0,f=f+Math.imul(e,f0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,f=f+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,f=f+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,f=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(J0,q0)|0,f=f+Math.imul(J0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,N0)|0,w=w+Math.imul(X0,g0)|0,f=f+Math.imul(X0,N0)|0,y=y+Math.imul(Z0,_0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,_0)|0,f=f+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,f0)|0,w=w+Math.imul(Q0,w0)|0,f=f+Math.imul(Q0,f0)|0,y=y+Math.imul(r,c0)|0,w=w+Math.imul(r,h0)|0,w=w+Math.imul(e,c0)|0,f=f+Math.imul(e,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,f=f+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,f=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,N0)|0,w=w+Math.imul(J0,g0)|0,f=f+Math.imul(J0,N0)|0,y=y+Math.imul(U0,_0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,_0)|0,f=f+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,f0)|0,w=w+Math.imul(G0,w0)|0,f=f+Math.imul(G0,f0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,f=f+Math.imul(Q0,h0)|0,y=y+Math.imul(r,b0)|0,w=w+Math.imul(r,l0)|0,w=w+Math.imul(e,b0)|0,f=f+Math.imul(e,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,N0),w=w+Math.imul(A0,g0)|0,f=Math.imul(A0,N0),y=y+Math.imul(I0,_0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(J0,_0)|0,f=f+Math.imul(J0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,f0)|0,w=w+Math.imul(X0,w0)|0,f=f+Math.imul(X0,f0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,f=f+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,f=f+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,_0),w=Math.imul(F0,B0),w=w+Math.imul(A0,_0)|0,f=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,f0)|0,w=w+Math.imul(J0,w0)|0,f=f+Math.imul(J0,f0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,f=f+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,f=f+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,f0),w=w+Math.imul(A0,w0)|0,f=Math.imul(A0,f0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(J0,c0)|0,f=f+Math.imul(J0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,f=f+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,f=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(J0,b0)|0,f=f+Math.imul(J0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,f=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(f+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,_[0]=o0,_[1]=u0,_[2]=n0,_[3]=s0,_[4]=t0,_[5]=m0,_[6]=a0,_[7]=r0,_[8]=e0,_[9]=i0,_[10]=$$,_[11]=Q$,_[12]=Y$,_[13]=Z$,_[14]=G$,_[15]=V$,_[16]=U$,_[17]=X$,_[18]=K$,B!==0&&(_[19]=B,g.length++),g};Math.imul||(E=H);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var N=0,x=0,_=0;_<g.length-1;_++){var B=x;x=0;for(var y=N&67108863,w=Math.min(_,k.length-1),f=Math.max(0,_-j.length+1);f<=w;f++){var p=_-f,c=j.words[p]|0,h=k.words[f]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,x+=B>>>26,B&=67108863}g.words[_]=y,N=B,B=x}return N!==0?g.words[_]=N:g.length--,g.strip()}function D(j,k,g){var N=new C;return N.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,N=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):N<63?g=H(this,j,k):N<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,N=0;N<j;N++)k[N]=this.revBin(N,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var N=0,x=0;x<k;x++)N|=(j&1)<<k-x-1,j>>=1;return N},C.prototype.permute=function(j,k,g,N,x,_){for(var B=0;B<_;B++)N[B]=k[j[B]],x[B]=g[j[B]]},C.prototype.transform=function(j,k,g,N,x,_){this.permute(_,j,k,g,N,x);for(var B=1;B<x;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),f=Math.sin(2*Math.PI/y),p=0;p<x;p+=y)for(var c=w,h=f,d=0;d<B;d++){var b=g[p+d],l=N[p+d],o=g[p+d+B],u=N[p+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[p+d]=b+o,N[p+d]=l+u,g[p+d+B]=b-o,N[p+d+B]=l-u,d!==y&&(n=w*c-f*h,h=w*h+f*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,N=g&1,x=0;for(g=g/2|0;g;g=g>>>1)x++;return 1<<x+1+N},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var N=0;N<g/2;N++){var x=j[N];j[N]=j[g-N-1],j[g-N-1]=x,x=k[N],k[N]=-k[g-N-1],k[g-N-1]=-x}},C.prototype.normalize13b=function(j,k){for(var g=0,N=0;N<k/2;N++){var x=Math.round(j[2*N+1]/k)*8192+Math.round(j[2*N]/k)+g;j[N]=x&67108863,x<67108864?g=0:g=x/67108864|0}return j},C.prototype.convert13b=function(j,k,g,N){for(var x=0,_=0;_<k;_++)x=x+(j[_]|0),g[2*_]=x&8191,x=x>>>13,g[2*_+1]=x&8191,x=x>>>13;for(_=2*k;_<N;++_)g[_]=0;G(x===0),G((x&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var N=2*this.guessLen13b(j.length,k.length),x=this.makeRBT(N),_=this.stub(N),B=new Array(N),y=new Array(N),w=new Array(N),f=new Array(N),p=new Array(N),c=new Array(N),h=g.words;h.length=N,this.convert13b(j.words,j.length,B,N),this.convert13b(k.words,k.length,f,N),this.transform(B,_,y,w,N,x),this.transform(f,_,p,c,N,x);for(var d=0;d<N;d++){var b=y[d]*p[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*p[d],y[d]=b}return this.conjugate(y,w,N),this.transform(y,w,h,_,N,x),this.conjugate(h,_,N),this.normalize13b(h,N),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var N=(this.words[g]|0)*j,x=(N&67108863)+(k&67108863);k>>=26,k+=N/67108864|0,k+=x>>>26,this.words[g]=x&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=W(j);if(k.length===0)return new U(1);for(var g=this,N=0;N<k.length&&k[N]===0;N++,g=g.sqr());if(++N<k.length)for(var x=g.sqr();N<k.length;N++,x=x.sqr())k[N]!==0&&(g=g.mul(x));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=67108863>>>26-k<<26-k,x;if(k!==0){var _=0;for(x=0;x<this.length;x++){var B=this.words[x]&N,y=(this.words[x]|0)-B<<k;this.words[x]=y|_,_=B>>>26-k}_&&(this.words[x]=_,this.length++)}if(g!==0){for(x=this.length-1;x>=0;x--)this.words[x+g]=this.words[x];for(x=0;x<g;x++)this.words[x]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var N;k?N=(k-k%26)/26:N=0;var x=j%26,_=Math.min((j-x)/26,this.length),B=67108863^67108863>>>x<<x,y=g;if(N-=_,N=Math.max(0,N),y){for(var w=0;w<_;w++)y.words[w]=this.words[w];y.length=_}if(_!==0)if(this.length>_)for(this.length-=_,w=0;w<this.length;w++)this.words[w]=this.words[w+_];else this.words[0]=0,this.length=1;var f=0;for(w=this.length-1;w>=0&&(f!==0||w>=N);w--){var p=this.words[w]|0;this.words[w]=f<<26-x|p>>>x,f=p&B}return y&&f!==0&&(y.words[y.length++]=f),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=1<<k;if(this.length<=g)return!1;var x=this.words[g];return!!(x&N)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var N=67108863^67108863>>>k<<k;this.words[this.length-1]&=N}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var N=j.length+g,x;this._expand(N);var _,B=0;for(x=0;x<j.length;x++){_=(this.words[x+g]|0)+B;var y=(j.words[x]|0)*k;_-=y&67108863,B=(_>>26)-(y/67108864|0),this.words[x+g]=_&67108863}for(;x<this.length-g;x++)_=(this.words[x+g]|0)+B,B=_>>26,this.words[x+g]=_&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,x=0;x<this.length;x++)_=-(this.words[x]|0)+B,B=_>>26,this.words[x]=_&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,N=this.clone(),x=j,_=x.words[x.length-1]|0,B=this._countBits(_);g=26-B,g!==0&&(x=x.ushln(g),N.iushln(g),_=x.words[x.length-1]|0);var y=N.length-x.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var f=0;f<w.length;f++)w.words[f]=0}var p=N.clone()._ishlnsubmul(x,1,y);p.negative===0&&(N=p,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(N.words[x.length+c]|0)*67108864+(N.words[x.length+c-1]|0);for(h=Math.min(h/_|0,67108863),N._ishlnsubmul(x,h,c);N.negative!==0;)h--,N.negative=0,N._ishlnsubmul(x,1,c),N.isZero()||(N.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),N.strip(),k!=="div"&&g!==0&&N.iushrn(g),{div:w||null,mod:N}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var N,x,_;return this.negative!==0&&j.negative===0?(_=this.neg().divmod(j,k),k!=="mod"&&(N=_.div.neg()),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.iadd(j)),{div:N,mod:x}):this.negative===0&&j.negative!==0?(_=this.divmod(j.neg(),k),k!=="mod"&&(N=_.div.neg()),{div:N,mod:_.mod}):(this.negative&j.negative)!==0?(_=this.neg().divmod(j.neg(),k),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.isub(j)),{div:_.div,mod:x}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,N=j.ushrn(1),x=j.andln(1),_=g.cmp(N);return _<0||x===1&&_===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,N=this.length-1;N>=0;N--)g=(k*g+(this.words[N]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var N=(this.words[g]|0)+k*67108864;this.words[g]=N/j|0,k=N%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var N=new U(1),x=new U(0),_=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),f=k.clone();!k.isZero();){for(var p=0,c=1;(k.words[0]&c)===0&&p<26;++p,c<<=1);if(p>0)for(k.iushrn(p);p-- >0;)(N.isOdd()||x.isOdd())&&(N.iadd(w),x.isub(f)),N.iushrn(1),x.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(_.isOdd()||B.isOdd())&&(_.iadd(w),B.isub(f)),_.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(_),x.isub(B)):(g.isub(k),_.isub(N),B.isub(x))}return{a:_,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var N=new U(1),x=new U(0),_=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)N.isOdd()&&N.iadd(_),N.iushrn(1);for(var w=0,f=1;(g.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(g.iushrn(w);w-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(x)):(g.isub(k),x.isub(N))}var p;return k.cmpn(1)===0?p=N:p=x,p.cmpn(0)<0&&p.iadd(j),p},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var N=0;k.isEven()&&g.isEven();N++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var x=k.cmp(g);if(x<0){var _=k;k=g,g=_}else if(x===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(N)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,N=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=N,this;for(var x=N,_=g;x!==0&&_<this.length;_++){var B=this.words[_]|0;B+=x,x=B>>>26,B&=67108863,this.words[_]=B}return x!==0&&(this.words[_]=x,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var N=this.words[0]|0;g=N===j?0:N<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var N=this.words[g]|0,x=j.words[g]|0;if(N!==x){N<x?k=-1:N>x&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var N=g<this.n?-1:k.ucmp(this.p);return N===0?(k.words[0]=0,k.length=1):N>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,N=Math.min(j.length,9),x=0;x<N;x++)k.words[x]=j.words[x];if(k.length=N,j.length<=9){j.words[0]=0,j.length=1;return}var _=j.words[9];for(k.words[k.length++]=_&g,x=10;x<j.length;x++){var B=j.words[x]|0;j.words[x-10]=(B&g)<<4|_>>>22,_=B}_>>>=22,j.words[x-10]=_,_===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g<j.length;g++){var N=j.words[g]|0;k+=N*977,j.words[g]=k&67108863,k=N*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var N=(j.words[g]|0)*19+k,x=N&67108863;N>>>=26,j.words[g]=x,k=N}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var N=this.m.subn(1),x=0;!N.isZero()&&N.andln(1)===0;)x++,N.iushrn(1);G(!N.isZero());var _=new U(1).toRed(this),B=_.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var f=this.pow(w,N),p=this.pow(j,N.addn(1).iushrn(1)),c=this.pow(j,N),h=x;c.cmp(_)!==0;){for(var d=c,b=0;d.cmp(_)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(f,new U(1).iushln(h-b-1));p=p.redMul(l),f=l.redSqr(),c=c.redMul(f),h=b}return p},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,N=new Array(1<<g);N[0]=new U(1).toRed(this),N[1]=j;for(var x=2;x<N.length;x++)N[x]=this.mul(N[x-1],j);var _=N[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),x=k.length-1;x>=0;x--){for(var f=k.words[x],p=w-1;p>=0;p--){var c=f>>p&1;if(_!==N[0]&&(_=this.sqr(_)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(x!==0||p!==0))&&(_=this.mul(_,N[B]),y=0,B=0)}w=26}return _},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),EY=z$({"node_modules/safer-buffer/safer.js"($,Q){var Y=R$("buffer"),Z=Y.Buffer,G={},V;for(V in Y)!Y.hasOwnProperty(V)||V==="SlowBuffer"||V==="Buffer"||(G[V]=Y[V]);var U=G.Buffer={};for(V in Z)!Z.hasOwnProperty(V)||V==="allocUnsafe"||V==="allocUnsafeSlow"||(U[V]=Z[V]);if(G.Buffer.prototype=Z.prototype,(!U.from||U.from===Uint8Array.from)&&(U.from=function(X,K,I){if(typeof X=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof X);if(X&&typeof X.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof X);return Z(X,K,I)}),U.alloc||(U.alloc=function(X,K,I){if(typeof X!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof X);if(X<0||X>=2*(1<<30))throw new RangeError('The value "'+X+'" is invalid for option "size"');var J=Z(X);return!K||K.length===0?J.fill(0):typeof I=="string"?J.fill(K,I):J.fill(K),J}),!G.kStringMaxLength)try{G.kStringMaxLength=L$}catch{}G.constants||(G.constants={MAX_LENGTH:G.kMaxLength},G.kStringMaxLength&&(G.constants.MAX_STRING_LENGTH=G.kStringMaxLength)),Q.exports=G}}),TY=z$({"node_modules/asn1.js/lib/asn1/base/reporter.js"($){var Q=q$();function Y(G){this._reporterState={obj:null,path:[],options:G||{},errors:[]}}$.Reporter=Y,Y.prototype.isError=function(G){return G instanceof Z},Y.prototype.save=function(){let G=this._reporterState;return{obj:G.obj,pathLen:G.path.length}},Y.prototype.restore=function(G){let V=this._reporterState;V.obj=G.obj,V.path=V.path.slice(0,G.pathLen)},Y.prototype.enterKey=function(G){return this._reporterState.path.push(G)},Y.prototype.exitKey=function(G){let V=this._reporterState;V.path=V.path.slice(0,G-1)},Y.prototype.leaveKey=function(G,V,U){let X=this._reporterState;this.exitKey(G),X.obj!==null&&(X.obj[V]=U)},Y.prototype.path=function(){return this._reporterState.path.join("/")},Y.prototype.enterObject=function(){let G=this._reporterState,V=G.obj;return G.obj={},V},Y.prototype.leaveObject=function(G){let V=this._reporterState,U=V.obj;return V.obj=G,U},Y.prototype.error=function(G){let V,U=this._reporterState,X=G instanceof Z;if(X?V=G:V=new Z(U.path.map(function(K){return"["+JSON.stringify(K)+"]"}).join(""),G.message||G,G.stack),!U.options.partial)throw V;return X||U.errors.push(V),V},Y.prototype.wrapResult=function(G){let V=this._reporterState;return V.options.partial?{result:this.isError(G)?null:G,errors:V.errors}:G};function Z(G,V){this.path=G,this.rethrow(V)}Q(Z,Error),Z.prototype.rethrow=function(G){if(this.message=G+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Z),!this.stack)try{throw new Error(this.message)}catch(V){this.stack=V.stack}return this}}}),W$=z$({"node_modules/asn1.js/lib/asn1/base/buffer.js"($){var Q=q$(),Y=TY().Reporter,Z=EY().Buffer;function G(U,X){if(Y.call(this,X),!Z.isBuffer(U)){this.error("Input not Buffer");return}this.base=U,this.offset=0,this.length=U.length}Q(G,Y),$.DecoderBuffer=G,G.isDecoderBuffer=function(U){return U instanceof G?!0:typeof U=="object"&&Z.isBuffer(U.base)&&U.constructor.name==="DecoderBuffer"&&typeof U.offset=="number"&&typeof U.length=="number"&&typeof U.save=="function"&&typeof U.restore=="function"&&typeof U.isEmpty=="function"&&typeof U.readUInt8=="function"&&typeof U.skip=="function"&&typeof U.raw=="function"},G.prototype.save=function(){return{offset:this.offset,reporter:Y.prototype.save.call(this)}},G.prototype.restore=function(U){let X=new G(this.base);return X.offset=U.offset,X.length=this.offset,this.offset=U.offset,Y.prototype.restore.call(this,U.reporter),X},G.prototype.isEmpty=function(){return this.offset===this.length},G.prototype.readUInt8=function(U){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(U||"DecoderBuffer overrun")},G.prototype.skip=function(U,X){if(!(this.offset+U<=this.length))return this.error(X||"DecoderBuffer overrun");let K=new G(this.base);return K._reporterState=this._reporterState,K.offset=this.offset,K.length=this.offset+U,this.offset+=U,K},G.prototype.raw=function(U){return this.base.slice(U?U.offset:this.offset,this.length)};function V(U,X){if(Array.isArray(U))this.length=0,this.value=U.map(function(K){return V.isEncoderBuffer(K)||(K=new V(K,X)),this.length+=K.length,K},this);else if(typeof U=="number"){if(!(0<=U&&U<=255))return X.error("non-byte EncoderBuffer value");this.value=U,this.length=1}else if(typeof U=="string")this.value=U,this.length=Z.byteLength(U);else if(Z.isBuffer(U))this.value=U,this.length=U.length;else return X.error("Unsupported type: "+typeof U)}$.EncoderBuffer=V,V.isEncoderBuffer=function(U){return U instanceof V?!0:typeof U=="object"&&U.constructor.name==="EncoderBuffer"&&typeof U.length=="number"&&typeof U.join=="function"},V.prototype.join=function(U,X){return U||(U=Z.alloc(this.length)),X||(X=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(K){K.join(U,X),X+=K.length}):(typeof this.value=="number"?U[X]=this.value:typeof this.value=="string"?U.write(this.value,X):Z.isBuffer(this.value)&&this.value.copy(U,X),X+=this.length)),U}}}),DY=z$({"node_modules/asn1.js/lib/asn1/base/node.js"($,Q){var Y=TY().Reporter,Z=W$().EncoderBuffer,G=W$().DecoderBuffer,V=$Q(),U=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],X=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(U),K=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function I(O,F,A){let W={};this._baseState=W,W.name=A,W.enc=O,W.parent=F||null,W.children=null,W.tag=null,W.args=null,W.reverseArgs=null,W.choice=null,W.optional=!1,W.any=!1,W.obj=!1,W.use=null,W.useDecoder=null,W.key=null,W.default=null,W.explicit=null,W.implicit=null,W.contains=null,W.parent||(W.children=[],this._wrap())}Q.exports=I;var J=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];I.prototype.clone=function(){let O=this._baseState,F={};J.forEach(function(W){F[W]=O[W]});let A=new this.constructor(F.parent);return A._baseState=F,A},I.prototype._wrap=function(){let O=this._baseState;X.forEach(function(F){this[F]=function(){let A=new this.constructor(this);return O.children.push(A),A[F].apply(A,arguments)}},this)},I.prototype._init=function(O){let F=this._baseState;V(F.parent===null),O.call(this),F.children=F.children.filter(function(A){return A._baseState.parent===this},this),V.equal(F.children.length,1,"Root node can have only one child")},I.prototype._useArgs=function(O){let F=this._baseState,A=O.filter(function(W){return W instanceof this.constructor},this);O=O.filter(function(W){return!(W instanceof this.constructor)},this),A.length!==0&&(V(F.children===null),F.children=A,A.forEach(function(W){W._baseState.parent=this},this)),O.length!==0&&(V(F.args===null),F.args=O,F.reverseArgs=O.map(function(W){if(typeof W!="object"||W.constructor!==Object)return W;let H={};return Object.keys(W).forEach(function(E){E==(E|0)&&(E|=0);let T=W[E];H[T]=E}),H}))},K.forEach(function(O){I.prototype[O]=function(){let F=this._baseState;throw new Error(O+" not implemented for encoding: "+F.enc)}}),U.forEach(function(O){I.prototype[O]=function(){let F=this._baseState,A=Array.prototype.slice.call(arguments);return V(F.tag===null),F.tag=O,this._useArgs(A),this}}),I.prototype.use=function(O){V(O);let F=this._baseState;return V(F.use===null),F.use=O,this},I.prototype.optional=function(){let O=this._baseState;return O.optional=!0,this},I.prototype.def=function(O){let F=this._baseState;return V(F.default===null),F.default=O,F.optional=!0,this},I.prototype.explicit=function(O){let F=this._baseState;return V(F.explicit===null&&F.implicit===null),F.explicit=O,this},I.prototype.implicit=function(O){let F=this._baseState;return V(F.explicit===null&&F.implicit===null),F.implicit=O,this},I.prototype.obj=function(){let O=this._baseState,F=Array.prototype.slice.call(arguments);return O.obj=!0,F.length!==0&&this._useArgs(F),this},I.prototype.key=function(O){let F=this._baseState;return V(F.key===null),F.key=O,this},I.prototype.any=function(){let O=this._baseState;return O.any=!0,this},I.prototype.choice=function(O){let F=this._baseState;return V(F.choice===null),F.choice=O,this._useArgs(Object.keys(O).map(function(A){return O[A]})),this},I.prototype.contains=function(O){let F=this._baseState;return V(F.use===null),F.contains=O,this},I.prototype._decode=function(O,F){let A=this._baseState;if(A.parent===null)return O.wrapResult(A.children[0]._decode(O,F));let W=A.default,H=!0,E=null;if(A.key!==null&&(E=O.enterKey(A.key)),A.optional){let D=null;if(A.explicit!==null?D=A.explicit:A.implicit!==null?D=A.implicit:A.tag!==null&&(D=A.tag),D===null&&!A.any){let C=O.save();try{A.choice===null?this._decodeGeneric(A.tag,O,F):this._decodeChoice(O,F),H=!0}catch{H=!1}O.restore(C)}else if(H=this._peekTag(O,D,A.any),O.isError(H))return H}let T;if(A.obj&&H&&(T=O.enterObject()),H){if(A.explicit!==null){let C=this._decodeTag(O,A.explicit);if(O.isError(C))return C;O=C}let D=O.offset;if(A.use===null&&A.choice===null){let C;A.any&&(C=O.save());let L=this._decodeTag(O,A.implicit!==null?A.implicit:A.tag,A.any);if(O.isError(L))return L;A.any?W=O.raw(C):O=L}if(F&&F.track&&A.tag!==null&&F.track(O.path(),D,O.length,"tagged"),F&&F.track&&A.tag!==null&&F.track(O.path(),O.offset,O.length,"content"),A.any||(A.choice===null?W=this._decodeGeneric(A.tag,O,F):W=this._decodeChoice(O,F)),O.isError(W))return W;if(!A.any&&A.choice===null&&A.children!==null&&A.children.forEach(function(C){C._decode(O,F)}),A.contains&&(A.tag==="octstr"||A.tag==="bitstr")){let C=new G(W);W=this._getUse(A.contains,O._reporterState.obj)._decode(C,F)}}return A.obj&&H&&(W=O.leaveObject(T)),A.key!==null&&(W!==null||H===!0)?O.leaveKey(E,A.key,W):E!==null&&O.exitKey(E),W},I.prototype._decodeGeneric=function(O,F,A){let W=this._baseState;return O==="seq"||O==="set"?null:O==="seqof"||O==="setof"?this._decodeList(F,O,W.args[0],A):/str$/.test(O)?this._decodeStr(F,O,A):O==="objid"&&W.args?this._decodeObjid(F,W.args[0],W.args[1],A):O==="objid"?this._decodeObjid(F,null,null,A):O==="gentime"||O==="utctime"?this._decodeTime(F,O,A):O==="null_"?this._decodeNull(F,A):O==="bool"?this._decodeBool(F,A):O==="objDesc"?this._decodeStr(F,O,A):O==="int"||O==="enum"?this._decodeInt(F,W.args&&W.args[0],A):W.use!==null?this._getUse(W.use,F._reporterState.obj)._decode(F,A):F.error("unknown tag: "+O)},I.prototype._getUse=function(O,F){let A=this._baseState;return A.useDecoder=this._use(O,F),V(A.useDecoder._baseState.parent===null),A.useDecoder=A.useDecoder._baseState.children[0],A.implicit!==A.useDecoder._baseState.implicit&&(A.useDecoder=A.useDecoder.clone(),A.useDecoder._baseState.implicit=A.implicit),A.useDecoder},I.prototype._decodeChoice=function(O,F){let A=this._baseState,W=null,H=!1;return Object.keys(A.choice).some(function(E){let T=O.save(),D=A.choice[E];try{let C=D._decode(O,F);if(O.isError(C))return!1;W={type:E,value:C},H=!0}catch{return O.restore(T),!1}return!0},this),H?W:O.error("Choice not matched")},I.prototype._createEncoderBuffer=function(O){return new Z(O,this.reporter)},I.prototype._encode=function(O,F,A){let W=this._baseState;if(W.default!==null&&W.default===O)return;let H=this._encodeValue(O,F,A);if(H!==void 0&&!this._skipDefault(H,F,A))return H},I.prototype._encodeValue=function(O,F,A){let W=this._baseState;if(W.parent===null)return W.children[0]._encode(O,F||new Y);let H=null;if(this.reporter=F,W.optional&&O===void 0)if(W.default!==null)O=W.default;else return;let E=null,T=!1;if(W.any)H=this._createEncoderBuffer(O);else if(W.choice)H=this._encodeChoice(O,F);else if(W.contains)E=this._getUse(W.contains,A)._encode(O,F),T=!0;else if(W.children)E=W.children.map(function(D){if(D._baseState.tag==="null_")return D._encode(null,F,O);if(D._baseState.key===null)return F.error("Child should have a key");let C=F.enterKey(D._baseState.key);if(typeof O!="object")return F.error("Child expected, but input is not object");let L=D._encode(O[D._baseState.key],F,O);return F.leaveKey(C),L},this).filter(function(D){return D}),E=this._createEncoderBuffer(E);else if(W.tag==="seqof"||W.tag==="setof"){if(!(W.args&&W.args.length===1))return F.error("Too many args for : "+W.tag);if(!Array.isArray(O))return F.error("seqof/setof, but data is not Array");let D=this.clone();D._baseState.implicit=null,E=this._createEncoderBuffer(O.map(function(C){let L=this._baseState;return this._getUse(L.args[0],O)._encode(C,F)},D))}else W.use!==null?H=this._getUse(W.use,A)._encode(O,F):(E=this._encodePrimitive(W.tag,O),T=!0);if(!W.any&&W.choice===null){let D=W.implicit!==null?W.implicit:W.tag,C=W.implicit===null?"universal":"context";D===null?W.use===null&&F.error("Tag could be omitted only for .use()"):W.use===null&&(H=this._encodeComposite(D,T,C,E))}return W.explicit!==null&&(H=this._encodeComposite(W.explicit,!1,"context",H)),H},I.prototype._encodeChoice=function(O,F){let A=this._baseState,W=A.choice[O.type];return W||V(!1,O.type+" not found in "+JSON.stringify(Object.keys(A.choice))),W._encode(O.value,F)},I.prototype._encodePrimitive=function(O,F){let A=this._baseState;if(/str$/.test(O))return this._encodeStr(F,O);if(O==="objid"&&A.args)return this._encodeObjid(F,A.reverseArgs[0],A.args[1]);if(O==="objid")return this._encodeObjid(F,null,null);if(O==="gentime"||O==="utctime")return this._encodeTime(F,O);if(O==="null_")return this._encodeNull();if(O==="int"||O==="enum")return this._encodeInt(F,A.args&&A.reverseArgs[0]);if(O==="bool")return this._encodeBool(F);if(O==="objDesc")return this._encodeStr(F,O);throw new Error("Unsupported tag: "+O)},I.prototype._isNumstr=function(O){return/^[0-9 ]*$/.test(O)},I.prototype._isPrintstr=function(O){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(O)}}}),CY=z$({"node_modules/asn1.js/lib/asn1/constants/der.js"($){function Q(Y){let Z={};return Object.keys(Y).forEach(function(G){(G|0)==G&&(G=G|0);let V=Y[G];Z[V]=G}),Z}$.tagClass={0:"universal",1:"application",2:"context",3:"private"},$.tagClassByName=Q($.tagClass),$.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},$.tagByName=Q($.tag)}}),LY=z$({"node_modules/asn1.js/lib/asn1/encoders/der.js"($,Q){var Y=q$(),Z=EY().Buffer,G=DY(),V=CY();function U(J){this.enc="der",this.name=J.name,this.entity=J,this.tree=new X,this.tree._init(J.body)}Q.exports=U,U.prototype.encode=function(J,O){return this.tree._encode(J,O).join()};function X(J){G.call(this,"der",J)}Y(X,G),X.prototype._encodeComposite=function(J,O,F,A){let W=I(J,O,F,this.reporter);if(A.length<128){let T=Z.alloc(2);return T[0]=W,T[1]=A.length,this._createEncoderBuffer([T,A])}let H=1;for(let T=A.length;T>=256;T>>=8)H++;let E=Z.alloc(2+H);E[0]=W,E[1]=128|H;for(let T=1+H,D=A.length;D>0;T--,D>>=8)E[T]=D&255;return this._createEncoderBuffer([E,A])},X.prototype._encodeStr=function(J,O){if(O==="bitstr")return this._createEncoderBuffer([J.unused|0,J.data]);if(O==="bmpstr"){let F=Z.alloc(J.length*2);for(let A=0;A<J.length;A++)F.writeUInt16BE(J.charCodeAt(A),A*2);return this._createEncoderBuffer(F)}else return O==="numstr"?this._isNumstr(J)?this._createEncoderBuffer(J):this.reporter.error("Encoding of string type: numstr supports only digits and space"):O==="printstr"?this._isPrintstr(J)?this._createEncoderBuffer(J):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(O)?this._createEncoderBuffer(J):O==="objDesc"?this._createEncoderBuffer(J):this.reporter.error("Encoding of string type: "+O+" unsupported")},X.prototype._encodeObjid=function(J,O,F){if(typeof J=="string"){if(!O)return this.reporter.error("string objid given, but no values map found");if(!O.hasOwnProperty(J))return this.reporter.error("objid not found in values map");J=O[J].split(/[\s.]+/g);for(let E=0;E<J.length;E++)J[E]|=0}else if(Array.isArray(J)){J=J.slice();for(let E=0;E<J.length;E++)J[E]|=0}if(!Array.isArray(J))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(J));if(!F){if(J[1]>=40)return this.reporter.error("Second objid identifier OOB");J.splice(0,2,J[0]*40+J[1])}let A=0;for(let E=0;E<J.length;E++){let T=J[E];for(A++;T>=128;T>>=7)A++}let W=Z.alloc(A),H=W.length-1;for(let E=J.length-1;E>=0;E--){let T=J[E];for(W[H--]=T&127;(T>>=7)>0;)W[H--]=128|T&127}return this._createEncoderBuffer(W)};function K(J){return J<10?"0"+J:J}X.prototype._encodeTime=function(J,O){let F,A=new Date(J);return O==="gentime"?F=[K(A.getUTCFullYear()),K(A.getUTCMonth()+1),K(A.getUTCDate()),K(A.getUTCHours()),K(A.getUTCMinutes()),K(A.getUTCSeconds()),"Z"].join(""):O==="utctime"?F=[K(A.getUTCFullYear()%100),K(A.getUTCMonth()+1),K(A.getUTCDate()),K(A.getUTCHours()),K(A.getUTCMinutes()),K(A.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+O+" time is not supported yet"),this._encodeStr(F,"octstr")},X.prototype._encodeNull=function(){return this._createEncoderBuffer("")},X.prototype._encodeInt=function(J,O){if(typeof J=="string"){if(!O)return this.reporter.error("String int or enum given, but no values map");if(!O.hasOwnProperty(J))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(J));J=O[J]}if(typeof J!="number"&&!Z.isBuffer(J)){let W=J.toArray();!J.sign&&W[0]&128&&W.unshift(0),J=Z.from(W)}if(Z.isBuffer(J)){let W=J.length;J.length===0&&W++;let H=Z.alloc(W);return J.copy(H),J.length===0&&(H[0]=0),this._createEncoderBuffer(H)}if(J<128)return this._createEncoderBuffer(J);if(J<256)return this._createEncoderBuffer([0,J]);let F=1;for(let W=J;W>=256;W>>=8)F++;let A=new Array(F);for(let W=A.length-1;W>=0;W--)A[W]=J&255,J>>=8;return A[0]&128&&A.unshift(0),this._createEncoderBuffer(Z.from(A))},X.prototype._encodeBool=function(J){return this._createEncoderBuffer(J?255:0)},X.prototype._use=function(J,O){return typeof J=="function"&&(J=J(O)),J._getEncoder("der").tree},X.prototype._skipDefault=function(J,O,F){let A=this._baseState,W;if(A.default===null)return!1;let H=J.join();if(A.defaultBuffer===void 0&&(A.defaultBuffer=this._encodeValue(A.default,O,F).join()),H.length!==A.defaultBuffer.length)return!1;for(W=0;W<H.length;W++)if(H[W]!==A.defaultBuffer[W])return!1;return!0};function I(J,O,F,A){let W;if(J==="seqof"?J="seq":J==="setof"&&(J="set"),V.tagByName.hasOwnProperty(J))W=V.tagByName[J];else if(typeof J=="number"&&(J|0)===J)W=J;else return A.error("Unknown tag: "+J);return W>=31?A.error("Multi-octet tag encoding unsupported"):(O||(W|=32),W|=V.tagClassByName[F||"universal"]<<6,W)}}}),RY=z$({"node_modules/asn1.js/lib/asn1/encoders/pem.js"($,Q){var Y=q$(),Z=LY();function G(V){Z.call(this,V),this.enc="pem"}Y(G,Z),Q.exports=G,G.prototype.encode=function(V,U){let X=Z.prototype.encode.call(this,V).toString("base64"),K=["-----BEGIN "+U.label+"-----"];for(let I=0;I<X.length;I+=64)K.push(X.slice(I,I+64));return K.push("-----END "+U.label+"-----"),K.join(` -`)}}}),PY=z$({"node_modules/asn1.js/lib/asn1/encoders/index.js"($){var Q=$;Q.der=LY(),Q.pem=RY()}}),zY=z$({"node_modules/asn1.js/lib/asn1/decoders/der.js"($,Q){var Y=q$(),Z=HY(),G=W$().DecoderBuffer,V=DY(),U=CY();function X(O){this.enc="der",this.name=O.name,this.entity=O,this.tree=new K,this.tree._init(O.body)}Q.exports=X,X.prototype.decode=function(O,F){return G.isDecoderBuffer(O)||(O=new G(O,F)),this.tree._decode(O,F)};function K(O){V.call(this,"der",O)}Y(K,V),K.prototype._peekTag=function(O,F,A){if(O.isEmpty())return!1;let W=O.save(),H=I(O,'Failed to peek tag: "'+F+'"');return O.isError(H)?H:(O.restore(W),H.tag===F||H.tagStr===F||H.tagStr+"of"===F||A)},K.prototype._decodeTag=function(O,F,A){let W=I(O,'Failed to decode tag of "'+F+'"');if(O.isError(W))return W;let H=J(O,W.primitive,'Failed to get length of "'+F+'"');if(O.isError(H))return H;if(!A&&W.tag!==F&&W.tagStr!==F&&W.tagStr+"of"!==F)return O.error('Failed to match tag: "'+F+'"');if(W.primitive||H!==null)return O.skip(H,'Failed to match body of: "'+F+'"');let E=O.save(),T=this._skipUntilEnd(O,'Failed to skip indefinite length body: "'+this.tag+'"');return O.isError(T)?T:(H=O.offset-E.offset,O.restore(E),O.skip(H,'Failed to match body of: "'+F+'"'))},K.prototype._skipUntilEnd=function(O,F){for(;;){let A=I(O,F);if(O.isError(A))return A;let W=J(O,A.primitive,F);if(O.isError(W))return W;let H;if(A.primitive||W!==null?H=O.skip(W):H=this._skipUntilEnd(O,F),O.isError(H))return H;if(A.tagStr==="end")break}},K.prototype._decodeList=function(O,F,A,W){let H=[];for(;!O.isEmpty();){let E=this._peekTag(O,"end");if(O.isError(E))return E;let T=A.decode(O,"der",W);if(O.isError(T)&&E)break;H.push(T)}return H},K.prototype._decodeStr=function(O,F){if(F==="bitstr"){let A=O.readUInt8();return O.isError(A)?A:{unused:A,data:O.raw()}}else if(F==="bmpstr"){let A=O.raw();if(A.length%2===1)return O.error("Decoding of string type: bmpstr length mismatch");let W="";for(let H=0;H<A.length/2;H++)W+=String.fromCharCode(A.readUInt16BE(H*2));return W}else if(F==="numstr"){let A=O.raw().toString("ascii");return this._isNumstr(A)?A:O.error("Decoding of string type: numstr unsupported characters")}else{if(F==="octstr")return O.raw();if(F==="objDesc")return O.raw();if(F==="printstr"){let A=O.raw().toString("ascii");return this._isPrintstr(A)?A:O.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(F)?O.raw().toString():O.error("Decoding of string type: "+F+" unsupported")}},K.prototype._decodeObjid=function(O,F,A){let W,H=[],E=0,T=0;for(;!O.isEmpty();)T=O.readUInt8(),E<<=7,E|=T&127,(T&128)===0&&(H.push(E),E=0);T&128&&H.push(E);let D=H[0]/40|0,C=H[0]%40;if(A?W=H:W=[D,C].concat(H.slice(1)),F){let L=F[W.join(" ")];L===void 0&&(L=F[W.join(".")]),L!==void 0&&(W=L)}return W},K.prototype._decodeTime=function(O,F){let A=O.raw().toString(),W,H,E,T,D,C;if(F==="gentime")W=A.slice(0,4)|0,H=A.slice(4,6)|0,E=A.slice(6,8)|0,T=A.slice(8,10)|0,D=A.slice(10,12)|0,C=A.slice(12,14)|0;else if(F==="utctime")W=A.slice(0,2)|0,H=A.slice(2,4)|0,E=A.slice(4,6)|0,T=A.slice(6,8)|0,D=A.slice(8,10)|0,C=A.slice(10,12)|0,W<70?W=2000+W:W=1900+W;else return O.error("Decoding "+F+" time is not supported yet");return Date.UTC(W,H-1,E,T,D,C,0)},K.prototype._decodeNull=function(){return null},K.prototype._decodeBool=function(O){let F=O.readUInt8();return O.isError(F)?F:F!==0},K.prototype._decodeInt=function(O,F){let A=O.raw(),W=new Z(A);return F&&(W=F[W.toString(10)]||W),W},K.prototype._use=function(O,F){return typeof O=="function"&&(O=O(F)),O._getDecoder("der").tree};function I(O,F){let A=O.readUInt8(F);if(O.isError(A))return A;let W=U.tagClass[A>>6],H=(A&32)===0;if((A&31)===31){let T=A;for(A=0;(T&128)===128;){if(T=O.readUInt8(F),O.isError(T))return T;A<<=7,A|=T&127}}else A&=31;let E=U.tag[A];return{cls:W,primitive:H,tag:A,tagStr:E}}function J(O,F,A){let W=O.readUInt8(A);if(O.isError(W))return W;if(!F&&W===128)return null;if((W&128)===0)return W;let H=W&127;if(H>4)return O.error("length octect is too long");W=0;for(let E=0;E<H;E++){W<<=8;let T=O.readUInt8(A);if(O.isError(T))return T;W|=T}return W}}}),MY=z$({"node_modules/asn1.js/lib/asn1/decoders/pem.js"($,Q){var Y=q$(),Z=EY().Buffer,G=zY();function V(U){G.call(this,U),this.enc="pem"}Y(V,G),Q.exports=V,V.prototype.decode=function(U,X){let K=U.toString().split(/[\r\n]+/g),I=X.label.toUpperCase(),J=/^-----(BEGIN|END) ([^-]+)-----$/,O=-1,F=-1;for(let H=0;H<K.length;H++){let E=K[H].match(J);if(E!==null&&E[2]===I)if(O===-1){if(E[1]!=="BEGIN")break;O=H}else{if(E[1]!=="END")break;F=H;break}}if(O===-1||F===-1)throw new Error("PEM section not found for: "+I);let A=K.slice(O+1,F).join("");A.replace(/[^a-z0-9+/=]+/gi,"");let W=Z.from(A,"base64");return G.prototype.decode.call(this,W,X)}}}),SY=z$({"node_modules/asn1.js/lib/asn1/decoders/index.js"($){var Q=$;Q.der=zY(),Q.pem=MY()}}),vY=z$({"node_modules/asn1.js/lib/asn1/api.js"($){var Q=PY(),Y=SY(),Z=q$(),G=$;G.define=function(U,X){return new V(U,X)};function V(U,X){this.name=U,this.body=X,this.decoders={},this.encoders={}}V.prototype._createNamed=function(U){let X=this.name;function K(I){this._initNamed(I,X)}return Z(K,U),K.prototype._initNamed=function(I,J){U.call(this,I,J)},new K(this)},V.prototype._getDecoder=function(U){return U=U||"der",this.decoders.hasOwnProperty(U)||(this.decoders[U]=this._createNamed(Y[U])),this.decoders[U]},V.prototype.decode=function(U,X,K){return this._getDecoder(X).decode(U,K)},V.prototype._getEncoder=function(U){return U=U||"der",this.encoders.hasOwnProperty(U)||(this.encoders[U]=this._createNamed(Q[U])),this.encoders[U]},V.prototype.encode=function(U,X,K){return this._getEncoder(X).encode(U,K)}}}),qY=z$({"node_modules/asn1.js/lib/asn1/base/index.js"($){var Q=$;Q.Reporter=TY().Reporter,Q.DecoderBuffer=W$().DecoderBuffer,Q.EncoderBuffer=W$().EncoderBuffer,Q.Node=DY()}}),jY=z$({"node_modules/asn1.js/lib/asn1/constants/index.js"($){var Q=$;Q._reverse=function(Y){let Z={};return Object.keys(Y).forEach(function(G){(G|0)==G&&(G=G|0);let V=Y[G];Z[V]=G}),Z},Q.der=CY()}}),kY=z$({"node_modules/asn1.js/lib/asn1.js"($){var Q=$;Q.bignum=HY(),Q.define=vY().define,Q.base=qY(),Q.constants=jY(),Q.decoders=SY(),Q.encoders=PY()}}),gY=z$({"node_modules/parse-asn1/certificate.js"($,Q){var Y=kY(),Z=Y.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),G=Y.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),V=Y.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),U=Y.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(V),this.key("subjectPublicKey").bitstr())}),X=Y.define("RelativeDistinguishedName",function(){this.setof(G)}),K=Y.define("RDNSequence",function(){this.seqof(X)}),I=Y.define("Name",function(){this.choice({rdnSequence:this.use(K)})}),J=Y.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Z),this.key("notAfter").use(Z))}),O=Y.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),F=Y.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(V),this.key("issuer").use(I),this.key("validity").use(J),this.key("subject").use(I),this.key("subjectPublicKeyInfo").use(U),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(O).optional())}),A=Y.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(F),this.key("signatureAlgorithm").use(V),this.key("signatureValue").bitstr())});Q.exports=A}}),NY=z$({"node_modules/parse-asn1/asn1.js"($){var Q=kY();$.certificate=gY();var Y=Q.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});$.RSAPrivateKey=Y;var Z=Q.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});$.RSAPublicKey=Z;var G=Q.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(V),this.key("subjectPublicKey").bitstr())});$.PublicKey=G;var V=Q.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),U=Q.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(V),this.key("subjectPrivateKey").octstr())});$.PrivateKey=U;var X=Q.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});$.EncryptedPrivateKey=X;var K=Q.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});$.DSAPrivateKey=K,$.DSAparam=Q.define("DSAparam",function(){this.int()});var I=Q.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(J),this.key("publicKey").optional().explicit(1).bitstr())});$.ECPrivateKey=I;var J=Q.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});$.signature=Q.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}}),xY=z$({"node_modules/parse-asn1/aesid.json"($,Q){Q.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}}}),_Y=z$({"node_modules/parse-asn1/fixProc.js"($,Q){var Y=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,Z=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,G=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,V=RQ(),U=MQ(),X=S$().Buffer;Q.exports=function(K,I){var J=K.toString(),O=J.match(Y),F;if(O){var A="aes"+O[1],W=X.from(O[2],"hex"),H=X.from(O[3].replace(/[\r\n]/g,""),"base64"),E=V(I,W.slice(0,8),parseInt(O[1],10)).key,T=[],D=U.createDecipheriv(A,E,W);T.push(D.update(H)),T.push(D.final()),F=X.concat(T)}else{var C=J.match(G);F=X.from(C[2].replace(/[\r\n]/g,""),"base64")}var L=J.match(Z)[1];return{tag:L,data:F}}}}),BY=z$({"node_modules/parse-asn1/index.js"($,Q){var Y=NY(),Z=xY(),G=_Y(),V=MQ(),U=e$(),X=S$().Buffer;Q.exports=K;function K(J){var O;typeof J=="object"&&!X.isBuffer(J)&&(O=J.passphrase,J=J.key),typeof J=="string"&&(J=X.from(J));var F=G(J,O),A=F.tag,W=F.data,H,E;switch(A){case"CERTIFICATE":E=Y.certificate.decode(W,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(E||(E=Y.PublicKey.decode(W,"der")),H=E.algorithm.algorithm.join("."),H){case"1.2.840.113549.1.1.1":return Y.RSAPublicKey.decode(E.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return E.subjectPrivateKey=E.subjectPublicKey,{type:"ec",data:E};case"1.2.840.10040.4.1":return E.algorithm.params.pub_key=Y.DSAparam.decode(E.subjectPublicKey.data,"der"),{type:"dsa",data:E.algorithm.params};default:throw new Error("unknown key id "+H)}case"ENCRYPTED PRIVATE KEY":W=Y.EncryptedPrivateKey.decode(W,"der"),W=I(W,O);case"PRIVATE KEY":switch(E=Y.PrivateKey.decode(W,"der"),H=E.algorithm.algorithm.join("."),H){case"1.2.840.113549.1.1.1":return Y.RSAPrivateKey.decode(E.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:E.algorithm.curve,privateKey:Y.ECPrivateKey.decode(E.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return E.algorithm.params.priv_key=Y.DSAparam.decode(E.subjectPrivateKey,"der"),{type:"dsa",params:E.algorithm.params};default:throw new Error("unknown key id "+H)}case"RSA PUBLIC KEY":return Y.RSAPublicKey.decode(W,"der");case"RSA PRIVATE KEY":return Y.RSAPrivateKey.decode(W,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:Y.DSAPrivateKey.decode(W,"der")};case"EC PRIVATE KEY":return W=Y.ECPrivateKey.decode(W,"der"),{curve:W.parameters.value,privateKey:W.privateKey};default:throw new Error("unknown key type "+A)}}K.signature=Y.signature;function I(J,O){var F=J.algorithm.decrypt.kde.kdeparams.salt,A=parseInt(J.algorithm.decrypt.kde.kdeparams.iters.toString(),10),W=Z[J.algorithm.decrypt.cipher.algo.join(".")],H=J.algorithm.decrypt.cipher.iv,E=J.subjectPrivateKey,T=parseInt(W.split("-")[1],10)/8,D=U.pbkdf2Sync(O,F,A,T,"sha1"),C=V.createDecipheriv(W,D,H),L=[];return L.push(C.update(E)),L.push(C.final()),X.concat(L)}}}),yY=z$({"node_modules/browserify-sign/browser/curves.json"($,Q){Q.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}}}),wY=z$({"node_modules/browserify-sign/browser/sign.js"($,Q){var Y=S$().Buffer,Z=o$(),G=fQ(),V=WY().ec,U=wQ(),X=BY(),K=yY();function I(D,C,L,R,P){var z=X(C);if(z.curve){if(R!=="ecdsa"&&R!=="ecdsa/rsa")throw new Error("wrong private key type");return J(D,z)}else if(z.type==="dsa"){if(R!=="dsa")throw new Error("wrong private key type");return O(D,z,L)}else if(R!=="rsa"&&R!=="ecdsa/rsa")throw new Error("wrong private key type");D=Y.concat([P,D]);for(var M=z.modulus.byteLength(),S=[0,1];D.length+S.length+1<M;)S.push(255);S.push(0);for(var v=-1;++v<D.length;)S.push(D[v]);var q=G(S,z);return q}function J(D,C){var L=K[C.curve.join(".")];if(!L)throw new Error("unknown curve "+C.curve.join("."));var R=new V(L),P=R.keyFromPrivate(C.privateKey),z=P.sign(D);return Y.from(z.toDER())}function O(D,C,L){for(var R=C.params.priv_key,P=C.params.p,z=C.params.q,M=C.params.g,S=new U(0),v,q=W(D,z).mod(z),j=!1,k=A(R,z,D,L);j===!1;)v=E(z,k,L),S=T(M,v,P,z),j=v.invm(z).imul(q.add(R.mul(S))).mod(z),j.cmpn(0)===0&&(j=!1,S=new U(0));return F(S,j)}function F(D,C){D=D.toArray(),C=C.toArray(),D[0]&128&&(D=[0].concat(D)),C[0]&128&&(C=[0].concat(C));var L=D.length+C.length+4,R=[48,L,2,D.length];return R=R.concat(D,[2,C.length],C),Y.from(R)}function A(D,C,L,R){if(D=Y.from(D.toArray()),D.length<C.byteLength()){var P=Y.alloc(C.byteLength()-D.length);D=Y.concat([P,D])}var z=L.length,M=H(L,C),S=Y.alloc(z);S.fill(1);var v=Y.alloc(z);return v=Z(R,v).update(S).update(Y.from([0])).update(D).update(M).digest(),S=Z(R,v).update(S).digest(),v=Z(R,v).update(S).update(Y.from([1])).update(D).update(M).digest(),S=Z(R,v).update(S).digest(),{k:v,v:S}}function W(D,C){var L=new U(D),R=(D.length<<3)-C.bitLength();return R>0&&L.ishrn(R),L}function H(D,C){D=W(D,C),D=D.mod(C);var L=Y.from(D.toArray());if(L.length<C.byteLength()){var R=Y.alloc(C.byteLength()-L.length);L=Y.concat([R,L])}return L}function E(D,C,L){var R,P;do{for(R=Y.alloc(0);R.length*8<D.bitLength();)C.v=Z(L,C.k).update(C.v).digest(),R=Y.concat([R,C.v]);P=W(R,D),C.k=Z(L,C.k).update(C.v).update(Y.from([0])).digest(),C.v=Z(L,C.k).update(C.v).digest()}while(P.cmp(D)!==-1);return P}function T(D,C,L,R){return D.toRed(U.mont(L)).redPow(C).fromRed().mod(R)}Q.exports=I,Q.exports.getKey=A,Q.exports.makeKey=E}}),fY=z$({"node_modules/browserify-sign/browser/verify.js"($,Q){var Y=S$().Buffer,Z=wQ(),G=WY().ec,V=BY(),U=yY();function X(O,F,A,W,H){var E=V(A);if(E.type==="ec"){if(W!=="ecdsa"&&W!=="ecdsa/rsa")throw new Error("wrong public key type");return K(O,F,E)}else if(E.type==="dsa"){if(W!=="dsa")throw new Error("wrong public key type");return I(O,F,E)}else if(W!=="rsa"&&W!=="ecdsa/rsa")throw new Error("wrong public key type");F=Y.concat([H,F]);for(var T=E.modulus.byteLength(),D=[1],C=0;F.length+D.length+2<T;)D.push(255),C++;D.push(0);for(var L=-1;++L<F.length;)D.push(F[L]);D=Y.from(D);var R=Z.mont(E.modulus);O=new Z(O).toRed(R),O=O.redPow(new Z(E.publicExponent)),O=Y.from(O.fromRed().toArray());var P=C<8?1:0;for(T=Math.min(O.length,D.length),O.length!==D.length&&(P=1),L=-1;++L<T;)P|=O[L]^D[L];return P===0}function K(O,F,A){var W=U[A.data.algorithm.curve.join(".")];if(!W)throw new Error("unknown curve "+A.data.algorithm.curve.join("."));var H=new G(W),E=A.data.subjectPrivateKey.data;return H.verify(F,O,E)}function I(O,F,A){var W=A.data.p,H=A.data.q,E=A.data.g,T=A.data.pub_key,D=V.signature.decode(O,"der"),C=D.s,L=D.r;J(C,H),J(L,H);var R=Z.mont(W),P=C.invm(H),z=E.toRed(R).redPow(new Z(F).mul(P).mod(H)).fromRed().mul(T.toRed(R).redPow(L.mul(P).mod(H)).fromRed()).mod(W).mod(H);return z.cmp(L)===0}function J(O,F){if(O.cmpn(0)<=0)throw new Error("invalid sig");if(O.cmp(F)>=F)throw new Error("invalid sig")}Q.exports=X}}),pY=z$({"node_modules/browserify-sign/browser/index.js"($,Q){var Y=S$().Buffer,Z=d$(),G=R$("readable-stream"),V=q$(),U=wY(),X=fY(),K=u$();Object.keys(K).forEach(function(A){K[A].id=Y.from(K[A].id,"hex"),K[A.toLowerCase()]=K[A]});function I(A){G.Writable.call(this);var W=K[A];if(!W)throw new Error("Unknown message digest");this._hashType=W.hash,this._hash=Z(W.hash),this._tag=W.id,this._signType=W.sign}V(I,G.Writable),I.prototype._write=function(A,W,H){this._hash.update(A),H()},I.prototype.update=function(A,W){return typeof A=="string"&&(A=Y.from(A,W)),this._hash.update(A),this},I.prototype.sign=function(A,W){this.end();var H=this._hash.digest(),E=U(H,A,this._hashType,this._signType,this._tag);return W?E.toString(W):E};function J(A){G.Writable.call(this);var W=K[A];if(!W)throw new Error("Unknown message digest");this._hash=Z(W.hash),this._tag=W.id,this._signType=W.sign}V(J,G.Writable),J.prototype._write=function(A,W,H){this._hash.update(A),H()},J.prototype.update=function(A,W){return typeof A=="string"&&(A=Y.from(A,W)),this._hash.update(A),this},J.prototype.verify=function(A,W,H){typeof W=="string"&&(W=Y.from(W,H)),this.end();var E=this._hash.digest();return X(W,E,A,this._signType,this._tag)};function O(A){return new I(A)}function F(A){return new J(A)}Q.exports={Sign:O,Verify:F,createSign:O,createVerify:F}}}),cY=z$({"node_modules/create-ecdh/node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(j,k){if(!j)throw new Error(k||"Assertion failed")}function V(j,k){j.super_=k;var g=function(){};g.prototype=k.prototype,j.prototype=new g,j.prototype.constructor=j}function U(j,k,g){if(U.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((k==="le"||k==="be")&&(g=k,k=10),this._init(j||0,k||10,g||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X;try{typeof window<"u"&&typeof window.Buffer<"u"?X=window.Buffer:X=R$("buffer").Buffer}catch{}U.isBN=function(j){return j instanceof U?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===U.wordSize&&Array.isArray(j.words)},U.max=function(j,k){return j.cmp(k)>0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var N=0;j[0]==="-"&&(N++,this.negative=1),N<j.length&&(k===16?this._parseHex(j,N,g):(this._parseBase(j,k,N),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x,_,B=0;if(g==="be")for(N=j.length-1,x=0;N>=0;N-=3)_=j[N]|j[N-1]<<8|j[N-2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);else if(g==="le")for(N=0,x=0;N<j.length;N+=3)_=j[N]|j[N+1]<<8|j[N+2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var N=K(j,g);return g-1>=k&&(N|=K(j,g-1)<<4),N}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x=0,_=0,B;if(g==="be")for(N=j.length-1;N>=k;N-=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8;else{var y=j.length-k;for(N=y%2===0?k+1:k;N<j.length;N+=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8}this.strip()};function J(j,k,g,N){for(var x=0,_=Math.min(j.length,g),B=k;B<_;B++){var y=j.charCodeAt(B)-48;x*=N,y>=49?x+=y-49+10:y>=17?x+=y-17+10:x+=y}return x}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var N=0,x=1;x<=67108863;x*=k)N++;N--,x=x/k|0;for(var _=j.length-g,B=_%N,y=Math.min(_,_-B)+g,w=0,f=g;f<y;f+=N)w=J(j,f,f+N,k),this.imuln(x),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var p=1;for(w=J(j,f,j.length,k),f=0;f<B;f++)p*=k;this.imuln(p),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],F=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var N=0,x=0,_=0;_<this.length;_++){var B=this.words[_],y=((B<<N|x)&16777215).toString(16);x=B>>>24-N&16777215,x!==0||_!==this.length-1?g=O[6-y.length]+y+g:g=y+g,N+=2,N>=26&&(N-=26,_--)}for(x!==0&&(g=x.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],f=A[j];g="";var p=this.clone();for(p.negative=0;!p.isZero();){var c=p.modn(f).toString(j);p=p.idivn(f),p.isZero()?g=c+g:g=O[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var N=this.byteLength(),x=g||Math.max(1,N);G(N<=x,"byte array longer than desired length"),G(x>0,"Requested array length <= 0"),this.strip();var _=k==="le",B=new j(x),y,w,f=this.clone();if(_){for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[w]=y;for(;w<x;w++)B[w]=0}else{for(w=0;w<x-N;w++)B[w]=0;for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[x-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function W(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var N=g/26|0,x=g%26;k[g]=(j.words[N]&1<<x)>>>x}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var N=0;N<g.length;N++)this.words[N]=k.words[N]^g.words[N];if(this!==k)for(;N<k.length;N++)this.words[N]=k.words[N];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var N=0;N<k;N++)this.words[N]=~this.words[N]&67108863;return g>0&&(this.words[N]=~this.words[N]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,N=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<N:this.words[g]=this.words[g]&~(1<<N),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,N;this.length>j.length?(g=this,N=j):(g=j,N=this);for(var x=0,_=0;_<N.length;_++)k=(g.words[_]|0)+(N.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;for(;x!==0&&_<g.length;_++)k=(g.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;if(this.length=g.length,x!==0)this.words[this.length]=x,this.length++;else if(g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var N,x;g>0?(N=this,x=j):(N=j,x=this);for(var _=0,B=0;B<x.length;B++)k=(N.words[B]|0)-(x.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;for(;_!==0&&B<N.length;B++)k=(N.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;if(_===0&&B<N.length&&N!==this)for(;B<N.length;B++)this.words[B]=N.words[B];return this.length=Math.max(this.length,B),N!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function H(j,k,g){g.negative=k.negative^j.negative;var N=j.length+k.length|0;g.length=N,N=N-1|0;var x=j.words[0]|0,_=k.words[0]|0,B=x*_,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var f=1;f<N;f++){for(var p=w>>>26,c=w&67108863,h=Math.min(f,k.length-1),d=Math.max(0,f-j.length+1);d<=h;d++){var b=f-d|0;x=j.words[b]|0,_=k.words[d]|0,B=x*_+c,p+=B/67108864|0,c=B&67108863}g.words[f]=c|0,w=p|0}return w!==0?g.words[f]=w|0:g.length--,g.strip()}var E=function(j,k,g){var N=j.words,x=k.words,_=g.words,B=0,y,w,f,p=N[0]|0,c=p&8191,h=p>>>13,d=N[1]|0,b=d&8191,l=d>>>13,o=N[2]|0,u=o&8191,n=o>>>13,s=N[3]|0,t=s&8191,m=s>>>13,a=N[4]|0,r=a&8191,e=a>>>13,i=N[5]|0,$0=i&8191,Q0=i>>>13,Y0=N[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=N[7]|0,U0=V0&8191,X0=V0>>>13,K0=N[8]|0,I0=K0&8191,J0=K0>>>13,O0=N[9]|0,F0=O0&8191,A0=O0>>>13,W0=x[0]|0,H0=W0&8191,E0=W0>>>13,T0=x[1]|0,D0=T0&8191,C0=T0>>>13,L0=x[2]|0,R0=L0&8191,P0=L0>>>13,z0=x[3]|0,M0=z0&8191,S0=z0>>>13,v0=x[4]|0,q0=v0&8191,j0=v0>>>13,k0=x[5]|0,g0=k0&8191,N0=k0>>>13,x0=x[6]|0,_0=x0&8191,B0=x0>>>13,y0=x[7]|0,w0=y0&8191,f0=y0>>>13,p0=x[8]|0,c0=p0&8191,h0=p0>>>13,d0=x[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,H0),w=Math.imul(c,E0),w=w+Math.imul(h,H0)|0,f=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,H0),w=Math.imul(b,E0),w=w+Math.imul(l,H0)|0,f=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,f=f+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,H0),w=Math.imul(u,E0),w=w+Math.imul(n,H0)|0,f=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,f=f+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,f=f+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,H0),w=Math.imul(t,E0),w=w+Math.imul(m,H0)|0,f=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,f=f+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,f=f+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,f=f+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(r,H0),w=Math.imul(r,E0),w=w+Math.imul(e,H0)|0,f=Math.imul(e,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,f=f+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,f=f+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,f=f+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,f=f+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,H0),w=Math.imul($0,E0),w=w+Math.imul(Q0,H0)|0,f=Math.imul(Q0,E0),y=y+Math.imul(r,D0)|0,w=w+Math.imul(r,C0)|0,w=w+Math.imul(e,D0)|0,f=f+Math.imul(e,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,f=f+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,f=f+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,f=f+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,N0)|0,w=w+Math.imul(h,g0)|0,f=f+Math.imul(h,N0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,H0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,H0)|0,f=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,f=f+Math.imul(Q0,C0)|0,y=y+Math.imul(r,R0)|0,w=w+Math.imul(r,P0)|0,w=w+Math.imul(e,R0)|0,f=f+Math.imul(e,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,f=f+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,f=f+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,N0)|0,w=w+Math.imul(l,g0)|0,f=f+Math.imul(l,N0)|0,y=y+Math.imul(c,_0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,_0)|0,f=f+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,H0),w=Math.imul(U0,E0),w=w+Math.imul(X0,H0)|0,f=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,f=f+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,f=f+Math.imul(Q0,P0)|0,y=y+Math.imul(r,M0)|0,w=w+Math.imul(r,S0)|0,w=w+Math.imul(e,M0)|0,f=f+Math.imul(e,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,f=f+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,N0)|0,w=w+Math.imul(n,g0)|0,f=f+Math.imul(n,N0)|0,y=y+Math.imul(b,_0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,_0)|0,f=f+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,f0)|0,w=w+Math.imul(h,w0)|0,f=f+Math.imul(h,f0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(I0,H0),w=Math.imul(I0,E0),w=w+Math.imul(J0,H0)|0,f=Math.imul(J0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,f=f+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,f=f+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,f=f+Math.imul(Q0,S0)|0,y=y+Math.imul(r,q0)|0,w=w+Math.imul(r,j0)|0,w=w+Math.imul(e,q0)|0,f=f+Math.imul(e,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,N0)|0,w=w+Math.imul(m,g0)|0,f=f+Math.imul(m,N0)|0,y=y+Math.imul(u,_0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,_0)|0,f=f+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,f0)|0,w=w+Math.imul(l,w0)|0,f=f+Math.imul(l,f0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,f=f+Math.imul(h,h0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(F0,H0),w=Math.imul(F0,E0),w=w+Math.imul(A0,H0)|0,f=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(J0,D0)|0,f=f+Math.imul(J0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,f=f+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,f=f+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,f=f+Math.imul(Q0,j0)|0,y=y+Math.imul(r,g0)|0,w=w+Math.imul(r,N0)|0,w=w+Math.imul(e,g0)|0,f=f+Math.imul(e,N0)|0,y=y+Math.imul(t,_0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,_0)|0,f=f+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,f0)|0,w=w+Math.imul(n,w0)|0,f=f+Math.imul(n,f0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,f=f+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,f=f+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,f=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(J0,R0)|0,f=f+Math.imul(J0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,f=f+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,f=f+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,N0)|0,w=w+Math.imul(Q0,g0)|0,f=f+Math.imul(Q0,N0)|0,y=y+Math.imul(r,_0)|0,w=w+Math.imul(r,B0)|0,w=w+Math.imul(e,_0)|0,f=f+Math.imul(e,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,f0)|0,w=w+Math.imul(m,w0)|0,f=f+Math.imul(m,f0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,f=f+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,f=f+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,f=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(J0,M0)|0,f=f+Math.imul(J0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,f=f+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,N0)|0,w=w+Math.imul(G0,g0)|0,f=f+Math.imul(G0,N0)|0,y=y+Math.imul($0,_0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,_0)|0,f=f+Math.imul(Q0,B0)|0,y=y+Math.imul(r,w0)|0,w=w+Math.imul(r,f0)|0,w=w+Math.imul(e,w0)|0,f=f+Math.imul(e,f0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,f=f+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,f=f+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,f=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(J0,q0)|0,f=f+Math.imul(J0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,N0)|0,w=w+Math.imul(X0,g0)|0,f=f+Math.imul(X0,N0)|0,y=y+Math.imul(Z0,_0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,_0)|0,f=f+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,f0)|0,w=w+Math.imul(Q0,w0)|0,f=f+Math.imul(Q0,f0)|0,y=y+Math.imul(r,c0)|0,w=w+Math.imul(r,h0)|0,w=w+Math.imul(e,c0)|0,f=f+Math.imul(e,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,f=f+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,f=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,N0)|0,w=w+Math.imul(J0,g0)|0,f=f+Math.imul(J0,N0)|0,y=y+Math.imul(U0,_0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,_0)|0,f=f+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,f0)|0,w=w+Math.imul(G0,w0)|0,f=f+Math.imul(G0,f0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,f=f+Math.imul(Q0,h0)|0,y=y+Math.imul(r,b0)|0,w=w+Math.imul(r,l0)|0,w=w+Math.imul(e,b0)|0,f=f+Math.imul(e,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,N0),w=w+Math.imul(A0,g0)|0,f=Math.imul(A0,N0),y=y+Math.imul(I0,_0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(J0,_0)|0,f=f+Math.imul(J0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,f0)|0,w=w+Math.imul(X0,w0)|0,f=f+Math.imul(X0,f0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,f=f+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,f=f+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,_0),w=Math.imul(F0,B0),w=w+Math.imul(A0,_0)|0,f=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,f0)|0,w=w+Math.imul(J0,w0)|0,f=f+Math.imul(J0,f0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,f=f+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,f=f+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,f0),w=w+Math.imul(A0,w0)|0,f=Math.imul(A0,f0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(J0,c0)|0,f=f+Math.imul(J0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,f=f+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,f=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(J0,b0)|0,f=f+Math.imul(J0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,f=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(f+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,_[0]=o0,_[1]=u0,_[2]=n0,_[3]=s0,_[4]=t0,_[5]=m0,_[6]=a0,_[7]=r0,_[8]=e0,_[9]=i0,_[10]=$$,_[11]=Q$,_[12]=Y$,_[13]=Z$,_[14]=G$,_[15]=V$,_[16]=U$,_[17]=X$,_[18]=K$,B!==0&&(_[19]=B,g.length++),g};Math.imul||(E=H);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var N=0,x=0,_=0;_<g.length-1;_++){var B=x;x=0;for(var y=N&67108863,w=Math.min(_,k.length-1),f=Math.max(0,_-j.length+1);f<=w;f++){var p=_-f,c=j.words[p]|0,h=k.words[f]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,x+=B>>>26,B&=67108863}g.words[_]=y,N=B,B=x}return N!==0?g.words[_]=N:g.length--,g.strip()}function D(j,k,g){var N=new C;return N.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,N=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):N<63?g=H(this,j,k):N<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,N=0;N<j;N++)k[N]=this.revBin(N,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var N=0,x=0;x<k;x++)N|=(j&1)<<k-x-1,j>>=1;return N},C.prototype.permute=function(j,k,g,N,x,_){for(var B=0;B<_;B++)N[B]=k[j[B]],x[B]=g[j[B]]},C.prototype.transform=function(j,k,g,N,x,_){this.permute(_,j,k,g,N,x);for(var B=1;B<x;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),f=Math.sin(2*Math.PI/y),p=0;p<x;p+=y)for(var c=w,h=f,d=0;d<B;d++){var b=g[p+d],l=N[p+d],o=g[p+d+B],u=N[p+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[p+d]=b+o,N[p+d]=l+u,g[p+d+B]=b-o,N[p+d+B]=l-u,d!==y&&(n=w*c-f*h,h=w*h+f*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,N=g&1,x=0;for(g=g/2|0;g;g=g>>>1)x++;return 1<<x+1+N},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var N=0;N<g/2;N++){var x=j[N];j[N]=j[g-N-1],j[g-N-1]=x,x=k[N],k[N]=-k[g-N-1],k[g-N-1]=-x}},C.prototype.normalize13b=function(j,k){for(var g=0,N=0;N<k/2;N++){var x=Math.round(j[2*N+1]/k)*8192+Math.round(j[2*N]/k)+g;j[N]=x&67108863,x<67108864?g=0:g=x/67108864|0}return j},C.prototype.convert13b=function(j,k,g,N){for(var x=0,_=0;_<k;_++)x=x+(j[_]|0),g[2*_]=x&8191,x=x>>>13,g[2*_+1]=x&8191,x=x>>>13;for(_=2*k;_<N;++_)g[_]=0;G(x===0),G((x&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var N=2*this.guessLen13b(j.length,k.length),x=this.makeRBT(N),_=this.stub(N),B=new Array(N),y=new Array(N),w=new Array(N),f=new Array(N),p=new Array(N),c=new Array(N),h=g.words;h.length=N,this.convert13b(j.words,j.length,B,N),this.convert13b(k.words,k.length,f,N),this.transform(B,_,y,w,N,x),this.transform(f,_,p,c,N,x);for(var d=0;d<N;d++){var b=y[d]*p[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*p[d],y[d]=b}return this.conjugate(y,w,N),this.transform(y,w,h,_,N,x),this.conjugate(h,_,N),this.normalize13b(h,N),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var N=(this.words[g]|0)*j,x=(N&67108863)+(k&67108863);k>>=26,k+=N/67108864|0,k+=x>>>26,this.words[g]=x&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=W(j);if(k.length===0)return new U(1);for(var g=this,N=0;N<k.length&&k[N]===0;N++,g=g.sqr());if(++N<k.length)for(var x=g.sqr();N<k.length;N++,x=x.sqr())k[N]!==0&&(g=g.mul(x));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=67108863>>>26-k<<26-k,x;if(k!==0){var _=0;for(x=0;x<this.length;x++){var B=this.words[x]&N,y=(this.words[x]|0)-B<<k;this.words[x]=y|_,_=B>>>26-k}_&&(this.words[x]=_,this.length++)}if(g!==0){for(x=this.length-1;x>=0;x--)this.words[x+g]=this.words[x];for(x=0;x<g;x++)this.words[x]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var N;k?N=(k-k%26)/26:N=0;var x=j%26,_=Math.min((j-x)/26,this.length),B=67108863^67108863>>>x<<x,y=g;if(N-=_,N=Math.max(0,N),y){for(var w=0;w<_;w++)y.words[w]=this.words[w];y.length=_}if(_!==0)if(this.length>_)for(this.length-=_,w=0;w<this.length;w++)this.words[w]=this.words[w+_];else this.words[0]=0,this.length=1;var f=0;for(w=this.length-1;w>=0&&(f!==0||w>=N);w--){var p=this.words[w]|0;this.words[w]=f<<26-x|p>>>x,f=p&B}return y&&f!==0&&(y.words[y.length++]=f),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=1<<k;if(this.length<=g)return!1;var x=this.words[g];return!!(x&N)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var N=67108863^67108863>>>k<<k;this.words[this.length-1]&=N}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var N=j.length+g,x;this._expand(N);var _,B=0;for(x=0;x<j.length;x++){_=(this.words[x+g]|0)+B;var y=(j.words[x]|0)*k;_-=y&67108863,B=(_>>26)-(y/67108864|0),this.words[x+g]=_&67108863}for(;x<this.length-g;x++)_=(this.words[x+g]|0)+B,B=_>>26,this.words[x+g]=_&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,x=0;x<this.length;x++)_=-(this.words[x]|0)+B,B=_>>26,this.words[x]=_&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,N=this.clone(),x=j,_=x.words[x.length-1]|0,B=this._countBits(_);g=26-B,g!==0&&(x=x.ushln(g),N.iushln(g),_=x.words[x.length-1]|0);var y=N.length-x.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var f=0;f<w.length;f++)w.words[f]=0}var p=N.clone()._ishlnsubmul(x,1,y);p.negative===0&&(N=p,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(N.words[x.length+c]|0)*67108864+(N.words[x.length+c-1]|0);for(h=Math.min(h/_|0,67108863),N._ishlnsubmul(x,h,c);N.negative!==0;)h--,N.negative=0,N._ishlnsubmul(x,1,c),N.isZero()||(N.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),N.strip(),k!=="div"&&g!==0&&N.iushrn(g),{div:w||null,mod:N}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var N,x,_;return this.negative!==0&&j.negative===0?(_=this.neg().divmod(j,k),k!=="mod"&&(N=_.div.neg()),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.iadd(j)),{div:N,mod:x}):this.negative===0&&j.negative!==0?(_=this.divmod(j.neg(),k),k!=="mod"&&(N=_.div.neg()),{div:N,mod:_.mod}):(this.negative&j.negative)!==0?(_=this.neg().divmod(j.neg(),k),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.isub(j)),{div:_.div,mod:x}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,N=j.ushrn(1),x=j.andln(1),_=g.cmp(N);return _<0||x===1&&_===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,N=this.length-1;N>=0;N--)g=(k*g+(this.words[N]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var N=(this.words[g]|0)+k*67108864;this.words[g]=N/j|0,k=N%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var N=new U(1),x=new U(0),_=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),f=k.clone();!k.isZero();){for(var p=0,c=1;(k.words[0]&c)===0&&p<26;++p,c<<=1);if(p>0)for(k.iushrn(p);p-- >0;)(N.isOdd()||x.isOdd())&&(N.iadd(w),x.isub(f)),N.iushrn(1),x.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(_.isOdd()||B.isOdd())&&(_.iadd(w),B.isub(f)),_.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(_),x.isub(B)):(g.isub(k),_.isub(N),B.isub(x))}return{a:_,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var N=new U(1),x=new U(0),_=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)N.isOdd()&&N.iadd(_),N.iushrn(1);for(var w=0,f=1;(g.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(g.iushrn(w);w-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(x)):(g.isub(k),x.isub(N))}var p;return k.cmpn(1)===0?p=N:p=x,p.cmpn(0)<0&&p.iadd(j),p},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var N=0;k.isEven()&&g.isEven();N++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var x=k.cmp(g);if(x<0){var _=k;k=g,g=_}else if(x===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(N)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,N=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=N,this;for(var x=N,_=g;x!==0&&_<this.length;_++){var B=this.words[_]|0;B+=x,x=B>>>26,B&=67108863,this.words[_]=B}return x!==0&&(this.words[_]=x,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var N=this.words[0]|0;g=N===j?0:N<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var N=this.words[g]|0,x=j.words[g]|0;if(N!==x){N<x?k=-1:N>x&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var N=g<this.n?-1:k.ucmp(this.p);return N===0?(k.words[0]=0,k.length=1):N>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,N=Math.min(j.length,9),x=0;x<N;x++)k.words[x]=j.words[x];if(k.length=N,j.length<=9){j.words[0]=0,j.length=1;return}var _=j.words[9];for(k.words[k.length++]=_&g,x=10;x<j.length;x++){var B=j.words[x]|0;j.words[x-10]=(B&g)<<4|_>>>22,_=B}_>>>=22,j.words[x-10]=_,_===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g<j.length;g++){var N=j.words[g]|0;k+=N*977,j.words[g]=k&67108863,k=N*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var N=(j.words[g]|0)*19+k,x=N&67108863;N>>>=26,j.words[g]=x,k=N}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var N=this.m.subn(1),x=0;!N.isZero()&&N.andln(1)===0;)x++,N.iushrn(1);G(!N.isZero());var _=new U(1).toRed(this),B=_.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var f=this.pow(w,N),p=this.pow(j,N.addn(1).iushrn(1)),c=this.pow(j,N),h=x;c.cmp(_)!==0;){for(var d=c,b=0;d.cmp(_)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(f,new U(1).iushln(h-b-1));p=p.redMul(l),f=l.redSqr(),c=c.redMul(f),h=b}return p},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,N=new Array(1<<g);N[0]=new U(1).toRed(this),N[1]=j;for(var x=2;x<N.length;x++)N[x]=this.mul(N[x-1],j);var _=N[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),x=k.length-1;x>=0;x--){for(var f=k.words[x],p=w-1;p>=0;p--){var c=f>>p&1;if(_!==N[0]&&(_=this.sqr(_)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(x!==0||p!==0))&&(_=this.mul(_,N[B]),y=0,B=0)}w=26}return _},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),hY=z$({"node_modules/create-ecdh/browser.js"($,Q){var Y=WY(),Z=cY();Q.exports=function(X){return new V(X)};var G={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};G.p224=G.secp224r1,G.p256=G.secp256r1=G.prime256v1,G.p192=G.secp192r1=G.prime192v1,G.p384=G.secp384r1,G.p521=G.secp521r1;function V(X){this.curveType=G[X],this.curveType||(this.curveType={name:X}),this.curve=new Y.ec(this.curveType.name),this.keys=void 0}V.prototype.generateKeys=function(X,K){return this.keys=this.curve.genKeyPair(),this.getPublicKey(X,K)},V.prototype.computeSecret=function(X,K,I){K=K||"utf8",Buffer.isBuffer(X)||(X=new Buffer(X,K));var J=this.curve.keyFromPublic(X).getPublic(),O=J.mul(this.keys.getPrivate()).getX();return U(O,I,this.curveType.byteLength)},V.prototype.getPublicKey=function(X,K){var I=this.keys.getPublic(K==="compressed",!0);return K==="hybrid"&&(I[I.length-1]%2?I[0]=7:I[0]=6),U(I,X)},V.prototype.getPrivateKey=function(X){return U(this.keys.getPrivate(),X)},V.prototype.setPublicKey=function(X,K){return K=K||"utf8",Buffer.isBuffer(X)||(X=new Buffer(X,K)),this.keys._importPublic(X),this},V.prototype.setPrivateKey=function(X,K){K=K||"utf8",Buffer.isBuffer(X)||(X=new Buffer(X,K));var I=new Z(X);return I=I.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(I),this};function U(X,K,I){Array.isArray(X)||(X=X.toArray());var J=new Buffer(X);if(I&&J.length<I){var O=new Buffer(I-J.length);O.fill(0),J=Buffer.concat([O,J])}return K?J.toString(K):J}}}),dY=z$({"node_modules/public-encrypt/mgf.js"($,Q){var Y=d$(),Z=S$().Buffer;Q.exports=function(V,U){for(var X=Z.alloc(0),K=0,I;X.length<U;)I=G(K++),X=Z.concat([X,Y("sha1").update(V).update(I).digest()]);return X.slice(0,U)};function G(V){var U=Z.allocUnsafe(4);return U.writeUInt32BE(V,0),U}}}),bY=z$({"node_modules/public-encrypt/xor.js"($,Q){Q.exports=function(Y,Z){for(var G=Y.length,V=-1;++V<G;)Y[V]^=Z[V];return Y}}}),lY=z$({"node_modules/public-encrypt/node_modules/bn.js/lib/bn.js"($,Q){(function(Y,Z){function G(j,k){if(!j)throw new Error(k||"Assertion failed")}function V(j,k){j.super_=k;var g=function(){};g.prototype=k.prototype,j.prototype=new g,j.prototype.constructor=j}function U(j,k,g){if(U.isBN(j))return j;this.negative=0,this.words=null,this.length=0,this.red=null,j!==null&&((k==="le"||k==="be")&&(g=k,k=10),this._init(j||0,k||10,g||"be"))}typeof Y=="object"?Y.exports=U:Z.BN=U,U.BN=U,U.wordSize=26;var X=globalThis.Buffer;U.isBN=function(j){return j instanceof U?!0:j!==null&&typeof j=="object"&&j.constructor.wordSize===U.wordSize&&Array.isArray(j.words)},U.max=function(j,k){return j.cmp(k)>0?j:k},U.min=function(j,k){return j.cmp(k)<0?j:k},U.prototype._init=function(j,k,g){if(typeof j=="number")return this._initNumber(j,k,g);if(typeof j=="object")return this._initArray(j,k,g);k==="hex"&&(k=16),G(k===(k|0)&&k>=2&&k<=36),j=j.toString().replace(/\s+/g,"");var N=0;j[0]==="-"&&(N++,this.negative=1),N<j.length&&(k===16?this._parseHex(j,N,g):(this._parseBase(j,k,N),g==="le"&&this._initArray(this.toArray(),k,g)))},U.prototype._initNumber=function(j,k,g){j<0&&(this.negative=1,j=-j),j<67108864?(this.words=[j&67108863],this.length=1):j<4503599627370496?(this.words=[j&67108863,j/67108864&67108863],this.length=2):(G(j<9007199254740992),this.words=[j&67108863,j/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),k,g)},U.prototype._initArray=function(j,k,g){if(G(typeof j.length=="number"),j.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(j.length/3),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x,_,B=0;if(g==="be")for(N=j.length-1,x=0;N>=0;N-=3)_=j[N]|j[N-1]<<8|j[N-2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);else if(g==="le")for(N=0,x=0;N<j.length;N+=3)_=j[N]|j[N+1]<<8|j[N+2]<<16,this.words[x]|=_<<B&67108863,this.words[x+1]=_>>>26-B&67108863,B+=24,B>=26&&(B-=26,x++);return this.strip()};function K(j,k){var g=j.charCodeAt(k);return g>=65&&g<=70?g-55:g>=97&&g<=102?g-87:g-48&15}function I(j,k,g){var N=K(j,g);return g-1>=k&&(N|=K(j,g-1)<<4),N}U.prototype._parseHex=function(j,k,g){this.length=Math.ceil((j.length-k)/6),this.words=new Array(this.length);for(var N=0;N<this.length;N++)this.words[N]=0;var x=0,_=0,B;if(g==="be")for(N=j.length-1;N>=k;N-=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8;else{var y=j.length-k;for(N=y%2===0?k+1:k;N<j.length;N+=2)B=I(j,k,N)<<x,this.words[_]|=B&67108863,x>=18?(x-=18,_+=1,this.words[_]|=B>>>26):x+=8}this.strip()};function J(j,k,g,N){for(var x=0,_=Math.min(j.length,g),B=k;B<_;B++){var y=j.charCodeAt(B)-48;x*=N,y>=49?x+=y-49+10:y>=17?x+=y-17+10:x+=y}return x}U.prototype._parseBase=function(j,k,g){this.words=[0],this.length=1;for(var N=0,x=1;x<=67108863;x*=k)N++;N--,x=x/k|0;for(var _=j.length-g,B=_%N,y=Math.min(_,_-B)+g,w=0,f=g;f<y;f+=N)w=J(j,f,f+N,k),this.imuln(x),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w);if(B!==0){var p=1;for(w=J(j,f,j.length,k),f=0;f<B;f++)p*=k;this.imuln(p),this.words[0]+w<67108864?this.words[0]+=w:this._iaddn(w)}this.strip()},U.prototype.copy=function(j){j.words=new Array(this.length);for(var k=0;k<this.length;k++)j.words[k]=this.words[k];j.length=this.length,j.negative=this.negative,j.red=this.red},U.prototype.clone=function(){var j=new U(null);return this.copy(j),j},U.prototype._expand=function(j){for(;this.length<j;)this.words[this.length++]=0;return this},U.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},U.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},U.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var O=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],F=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],A=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];U.prototype.toString=function(j,k){j=j||10,k=k|0||1;var g;if(j===16||j==="hex"){g="";for(var N=0,x=0,_=0;_<this.length;_++){var B=this.words[_],y=((B<<N|x)&16777215).toString(16);x=B>>>24-N&16777215,x!==0||_!==this.length-1?g=O[6-y.length]+y+g:g=y+g,N+=2,N>=26&&(N-=26,_--)}for(x!==0&&(g=x.toString(16)+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}if(j===(j|0)&&j>=2&&j<=36){var w=F[j],f=A[j];g="";var p=this.clone();for(p.negative=0;!p.isZero();){var c=p.modn(f).toString(j);p=p.idivn(f),p.isZero()?g=c+g:g=O[w-c.length]+c+g}for(this.isZero()&&(g="0"+g);g.length%k!==0;)g="0"+g;return this.negative!==0&&(g="-"+g),g}G(!1,"Base should be between 2 and 36")},U.prototype.toNumber=function(){var j=this.words[0];return this.length===2?j+=this.words[1]*67108864:this.length===3&&this.words[2]===1?j+=4503599627370496+this.words[1]*67108864:this.length>2&&G(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-j:j},U.prototype.toJSON=function(){return this.toString(16)},U.prototype.toBuffer=function(j,k){return G(typeof X<"u"),this.toArrayLike(X,j,k)},U.prototype.toArray=function(j,k){return this.toArrayLike(Array,j,k)},U.prototype.toArrayLike=function(j,k,g){var N=this.byteLength(),x=g||Math.max(1,N);G(N<=x,"byte array longer than desired length"),G(x>0,"Requested array length <= 0"),this.strip();var _=k==="le",B=new j(x),y,w,f=this.clone();if(_){for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[w]=y;for(;w<x;w++)B[w]=0}else{for(w=0;w<x-N;w++)B[w]=0;for(w=0;!f.isZero();w++)y=f.andln(255),f.iushrn(8),B[x-w-1]=y}return B},Math.clz32?U.prototype._countBits=function(j){return 32-Math.clz32(j)}:U.prototype._countBits=function(j){var k=j,g=0;return k>=4096&&(g+=13,k>>>=13),k>=64&&(g+=7,k>>>=7),k>=8&&(g+=4,k>>>=4),k>=2&&(g+=2,k>>>=2),g+k},U.prototype._zeroBits=function(j){if(j===0)return 26;var k=j,g=0;return(k&8191)===0&&(g+=13,k>>>=13),(k&127)===0&&(g+=7,k>>>=7),(k&15)===0&&(g+=4,k>>>=4),(k&3)===0&&(g+=2,k>>>=2),(k&1)===0&&g++,g},U.prototype.bitLength=function(){var j=this.words[this.length-1],k=this._countBits(j);return(this.length-1)*26+k};function W(j){for(var k=new Array(j.bitLength()),g=0;g<k.length;g++){var N=g/26|0,x=g%26;k[g]=(j.words[N]&1<<x)>>>x}return k}U.prototype.zeroBits=function(){if(this.isZero())return 0;for(var j=0,k=0;k<this.length;k++){var g=this._zeroBits(this.words[k]);if(j+=g,g!==26)break}return j},U.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},U.prototype.toTwos=function(j){return this.negative!==0?this.abs().inotn(j).iaddn(1):this.clone()},U.prototype.fromTwos=function(j){return this.testn(j-1)?this.notn(j).iaddn(1).ineg():this.clone()},U.prototype.isNeg=function(){return this.negative!==0},U.prototype.neg=function(){return this.clone().ineg()},U.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},U.prototype.iuor=function(j){for(;this.length<j.length;)this.words[this.length++]=0;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]|j.words[k];return this.strip()},U.prototype.ior=function(j){return G((this.negative|j.negative)===0),this.iuor(j)},U.prototype.or=function(j){return this.length>j.length?this.clone().ior(j):j.clone().ior(this)},U.prototype.uor=function(j){return this.length>j.length?this.clone().iuor(j):j.clone().iuor(this)},U.prototype.iuand=function(j){var k;this.length>j.length?k=j:k=this;for(var g=0;g<k.length;g++)this.words[g]=this.words[g]&j.words[g];return this.length=k.length,this.strip()},U.prototype.iand=function(j){return G((this.negative|j.negative)===0),this.iuand(j)},U.prototype.and=function(j){return this.length>j.length?this.clone().iand(j):j.clone().iand(this)},U.prototype.uand=function(j){return this.length>j.length?this.clone().iuand(j):j.clone().iuand(this)},U.prototype.iuxor=function(j){var k,g;this.length>j.length?(k=this,g=j):(k=j,g=this);for(var N=0;N<g.length;N++)this.words[N]=k.words[N]^g.words[N];if(this!==k)for(;N<k.length;N++)this.words[N]=k.words[N];return this.length=k.length,this.strip()},U.prototype.ixor=function(j){return G((this.negative|j.negative)===0),this.iuxor(j)},U.prototype.xor=function(j){return this.length>j.length?this.clone().ixor(j):j.clone().ixor(this)},U.prototype.uxor=function(j){return this.length>j.length?this.clone().iuxor(j):j.clone().iuxor(this)},U.prototype.inotn=function(j){G(typeof j=="number"&&j>=0);var k=Math.ceil(j/26)|0,g=j%26;this._expand(k),g>0&&k--;for(var N=0;N<k;N++)this.words[N]=~this.words[N]&67108863;return g>0&&(this.words[N]=~this.words[N]&67108863>>26-g),this.strip()},U.prototype.notn=function(j){return this.clone().inotn(j)},U.prototype.setn=function(j,k){G(typeof j=="number"&&j>=0);var g=j/26|0,N=j%26;return this._expand(g+1),k?this.words[g]=this.words[g]|1<<N:this.words[g]=this.words[g]&~(1<<N),this.strip()},U.prototype.iadd=function(j){var k;if(this.negative!==0&&j.negative===0)return this.negative=0,k=this.isub(j),this.negative^=1,this._normSign();if(this.negative===0&&j.negative!==0)return j.negative=0,k=this.isub(j),j.negative=1,k._normSign();var g,N;this.length>j.length?(g=this,N=j):(g=j,N=this);for(var x=0,_=0;_<N.length;_++)k=(g.words[_]|0)+(N.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;for(;x!==0&&_<g.length;_++)k=(g.words[_]|0)+x,this.words[_]=k&67108863,x=k>>>26;if(this.length=g.length,x!==0)this.words[this.length]=x,this.length++;else if(g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this},U.prototype.add=function(j){var k;return j.negative!==0&&this.negative===0?(j.negative=0,k=this.sub(j),j.negative^=1,k):j.negative===0&&this.negative!==0?(this.negative=0,k=j.sub(this),this.negative=1,k):this.length>j.length?this.clone().iadd(j):j.clone().iadd(this)},U.prototype.isub=function(j){if(j.negative!==0){j.negative=0;var k=this.iadd(j);return j.negative=1,k._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(j),this.negative=1,this._normSign();var g=this.cmp(j);if(g===0)return this.negative=0,this.length=1,this.words[0]=0,this;var N,x;g>0?(N=this,x=j):(N=j,x=this);for(var _=0,B=0;B<x.length;B++)k=(N.words[B]|0)-(x.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;for(;_!==0&&B<N.length;B++)k=(N.words[B]|0)+_,_=k>>26,this.words[B]=k&67108863;if(_===0&&B<N.length&&N!==this)for(;B<N.length;B++)this.words[B]=N.words[B];return this.length=Math.max(this.length,B),N!==this&&(this.negative=1),this.strip()},U.prototype.sub=function(j){return this.clone().isub(j)};function H(j,k,g){g.negative=k.negative^j.negative;var N=j.length+k.length|0;g.length=N,N=N-1|0;var x=j.words[0]|0,_=k.words[0]|0,B=x*_,y=B&67108863,w=B/67108864|0;g.words[0]=y;for(var f=1;f<N;f++){for(var p=w>>>26,c=w&67108863,h=Math.min(f,k.length-1),d=Math.max(0,f-j.length+1);d<=h;d++){var b=f-d|0;x=j.words[b]|0,_=k.words[d]|0,B=x*_+c,p+=B/67108864|0,c=B&67108863}g.words[f]=c|0,w=p|0}return w!==0?g.words[f]=w|0:g.length--,g.strip()}var E=function(j,k,g){var N=j.words,x=k.words,_=g.words,B=0,y,w,f,p=N[0]|0,c=p&8191,h=p>>>13,d=N[1]|0,b=d&8191,l=d>>>13,o=N[2]|0,u=o&8191,n=o>>>13,s=N[3]|0,t=s&8191,m=s>>>13,a=N[4]|0,r=a&8191,e=a>>>13,i=N[5]|0,$0=i&8191,Q0=i>>>13,Y0=N[6]|0,Z0=Y0&8191,G0=Y0>>>13,V0=N[7]|0,U0=V0&8191,X0=V0>>>13,K0=N[8]|0,I0=K0&8191,J0=K0>>>13,O0=N[9]|0,F0=O0&8191,A0=O0>>>13,W0=x[0]|0,H0=W0&8191,E0=W0>>>13,T0=x[1]|0,D0=T0&8191,C0=T0>>>13,L0=x[2]|0,R0=L0&8191,P0=L0>>>13,z0=x[3]|0,M0=z0&8191,S0=z0>>>13,v0=x[4]|0,q0=v0&8191,j0=v0>>>13,k0=x[5]|0,g0=k0&8191,N0=k0>>>13,x0=x[6]|0,_0=x0&8191,B0=x0>>>13,y0=x[7]|0,w0=y0&8191,f0=y0>>>13,p0=x[8]|0,c0=p0&8191,h0=p0>>>13,d0=x[9]|0,b0=d0&8191,l0=d0>>>13;g.negative=j.negative^k.negative,g.length=19,y=Math.imul(c,H0),w=Math.imul(c,E0),w=w+Math.imul(h,H0)|0,f=Math.imul(h,E0);var o0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(o0>>>26)|0,o0&=67108863,y=Math.imul(b,H0),w=Math.imul(b,E0),w=w+Math.imul(l,H0)|0,f=Math.imul(l,E0),y=y+Math.imul(c,D0)|0,w=w+Math.imul(c,C0)|0,w=w+Math.imul(h,D0)|0,f=f+Math.imul(h,C0)|0;var u0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(u0>>>26)|0,u0&=67108863,y=Math.imul(u,H0),w=Math.imul(u,E0),w=w+Math.imul(n,H0)|0,f=Math.imul(n,E0),y=y+Math.imul(b,D0)|0,w=w+Math.imul(b,C0)|0,w=w+Math.imul(l,D0)|0,f=f+Math.imul(l,C0)|0,y=y+Math.imul(c,R0)|0,w=w+Math.imul(c,P0)|0,w=w+Math.imul(h,R0)|0,f=f+Math.imul(h,P0)|0;var n0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(n0>>>26)|0,n0&=67108863,y=Math.imul(t,H0),w=Math.imul(t,E0),w=w+Math.imul(m,H0)|0,f=Math.imul(m,E0),y=y+Math.imul(u,D0)|0,w=w+Math.imul(u,C0)|0,w=w+Math.imul(n,D0)|0,f=f+Math.imul(n,C0)|0,y=y+Math.imul(b,R0)|0,w=w+Math.imul(b,P0)|0,w=w+Math.imul(l,R0)|0,f=f+Math.imul(l,P0)|0,y=y+Math.imul(c,M0)|0,w=w+Math.imul(c,S0)|0,w=w+Math.imul(h,M0)|0,f=f+Math.imul(h,S0)|0;var s0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(s0>>>26)|0,s0&=67108863,y=Math.imul(r,H0),w=Math.imul(r,E0),w=w+Math.imul(e,H0)|0,f=Math.imul(e,E0),y=y+Math.imul(t,D0)|0,w=w+Math.imul(t,C0)|0,w=w+Math.imul(m,D0)|0,f=f+Math.imul(m,C0)|0,y=y+Math.imul(u,R0)|0,w=w+Math.imul(u,P0)|0,w=w+Math.imul(n,R0)|0,f=f+Math.imul(n,P0)|0,y=y+Math.imul(b,M0)|0,w=w+Math.imul(b,S0)|0,w=w+Math.imul(l,M0)|0,f=f+Math.imul(l,S0)|0,y=y+Math.imul(c,q0)|0,w=w+Math.imul(c,j0)|0,w=w+Math.imul(h,q0)|0,f=f+Math.imul(h,j0)|0;var t0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(t0>>>26)|0,t0&=67108863,y=Math.imul($0,H0),w=Math.imul($0,E0),w=w+Math.imul(Q0,H0)|0,f=Math.imul(Q0,E0),y=y+Math.imul(r,D0)|0,w=w+Math.imul(r,C0)|0,w=w+Math.imul(e,D0)|0,f=f+Math.imul(e,C0)|0,y=y+Math.imul(t,R0)|0,w=w+Math.imul(t,P0)|0,w=w+Math.imul(m,R0)|0,f=f+Math.imul(m,P0)|0,y=y+Math.imul(u,M0)|0,w=w+Math.imul(u,S0)|0,w=w+Math.imul(n,M0)|0,f=f+Math.imul(n,S0)|0,y=y+Math.imul(b,q0)|0,w=w+Math.imul(b,j0)|0,w=w+Math.imul(l,q0)|0,f=f+Math.imul(l,j0)|0,y=y+Math.imul(c,g0)|0,w=w+Math.imul(c,N0)|0,w=w+Math.imul(h,g0)|0,f=f+Math.imul(h,N0)|0;var m0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(m0>>>26)|0,m0&=67108863,y=Math.imul(Z0,H0),w=Math.imul(Z0,E0),w=w+Math.imul(G0,H0)|0,f=Math.imul(G0,E0),y=y+Math.imul($0,D0)|0,w=w+Math.imul($0,C0)|0,w=w+Math.imul(Q0,D0)|0,f=f+Math.imul(Q0,C0)|0,y=y+Math.imul(r,R0)|0,w=w+Math.imul(r,P0)|0,w=w+Math.imul(e,R0)|0,f=f+Math.imul(e,P0)|0,y=y+Math.imul(t,M0)|0,w=w+Math.imul(t,S0)|0,w=w+Math.imul(m,M0)|0,f=f+Math.imul(m,S0)|0,y=y+Math.imul(u,q0)|0,w=w+Math.imul(u,j0)|0,w=w+Math.imul(n,q0)|0,f=f+Math.imul(n,j0)|0,y=y+Math.imul(b,g0)|0,w=w+Math.imul(b,N0)|0,w=w+Math.imul(l,g0)|0,f=f+Math.imul(l,N0)|0,y=y+Math.imul(c,_0)|0,w=w+Math.imul(c,B0)|0,w=w+Math.imul(h,_0)|0,f=f+Math.imul(h,B0)|0;var a0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(a0>>>26)|0,a0&=67108863,y=Math.imul(U0,H0),w=Math.imul(U0,E0),w=w+Math.imul(X0,H0)|0,f=Math.imul(X0,E0),y=y+Math.imul(Z0,D0)|0,w=w+Math.imul(Z0,C0)|0,w=w+Math.imul(G0,D0)|0,f=f+Math.imul(G0,C0)|0,y=y+Math.imul($0,R0)|0,w=w+Math.imul($0,P0)|0,w=w+Math.imul(Q0,R0)|0,f=f+Math.imul(Q0,P0)|0,y=y+Math.imul(r,M0)|0,w=w+Math.imul(r,S0)|0,w=w+Math.imul(e,M0)|0,f=f+Math.imul(e,S0)|0,y=y+Math.imul(t,q0)|0,w=w+Math.imul(t,j0)|0,w=w+Math.imul(m,q0)|0,f=f+Math.imul(m,j0)|0,y=y+Math.imul(u,g0)|0,w=w+Math.imul(u,N0)|0,w=w+Math.imul(n,g0)|0,f=f+Math.imul(n,N0)|0,y=y+Math.imul(b,_0)|0,w=w+Math.imul(b,B0)|0,w=w+Math.imul(l,_0)|0,f=f+Math.imul(l,B0)|0,y=y+Math.imul(c,w0)|0,w=w+Math.imul(c,f0)|0,w=w+Math.imul(h,w0)|0,f=f+Math.imul(h,f0)|0;var r0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(r0>>>26)|0,r0&=67108863,y=Math.imul(I0,H0),w=Math.imul(I0,E0),w=w+Math.imul(J0,H0)|0,f=Math.imul(J0,E0),y=y+Math.imul(U0,D0)|0,w=w+Math.imul(U0,C0)|0,w=w+Math.imul(X0,D0)|0,f=f+Math.imul(X0,C0)|0,y=y+Math.imul(Z0,R0)|0,w=w+Math.imul(Z0,P0)|0,w=w+Math.imul(G0,R0)|0,f=f+Math.imul(G0,P0)|0,y=y+Math.imul($0,M0)|0,w=w+Math.imul($0,S0)|0,w=w+Math.imul(Q0,M0)|0,f=f+Math.imul(Q0,S0)|0,y=y+Math.imul(r,q0)|0,w=w+Math.imul(r,j0)|0,w=w+Math.imul(e,q0)|0,f=f+Math.imul(e,j0)|0,y=y+Math.imul(t,g0)|0,w=w+Math.imul(t,N0)|0,w=w+Math.imul(m,g0)|0,f=f+Math.imul(m,N0)|0,y=y+Math.imul(u,_0)|0,w=w+Math.imul(u,B0)|0,w=w+Math.imul(n,_0)|0,f=f+Math.imul(n,B0)|0,y=y+Math.imul(b,w0)|0,w=w+Math.imul(b,f0)|0,w=w+Math.imul(l,w0)|0,f=f+Math.imul(l,f0)|0,y=y+Math.imul(c,c0)|0,w=w+Math.imul(c,h0)|0,w=w+Math.imul(h,c0)|0,f=f+Math.imul(h,h0)|0;var e0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(e0>>>26)|0,e0&=67108863,y=Math.imul(F0,H0),w=Math.imul(F0,E0),w=w+Math.imul(A0,H0)|0,f=Math.imul(A0,E0),y=y+Math.imul(I0,D0)|0,w=w+Math.imul(I0,C0)|0,w=w+Math.imul(J0,D0)|0,f=f+Math.imul(J0,C0)|0,y=y+Math.imul(U0,R0)|0,w=w+Math.imul(U0,P0)|0,w=w+Math.imul(X0,R0)|0,f=f+Math.imul(X0,P0)|0,y=y+Math.imul(Z0,M0)|0,w=w+Math.imul(Z0,S0)|0,w=w+Math.imul(G0,M0)|0,f=f+Math.imul(G0,S0)|0,y=y+Math.imul($0,q0)|0,w=w+Math.imul($0,j0)|0,w=w+Math.imul(Q0,q0)|0,f=f+Math.imul(Q0,j0)|0,y=y+Math.imul(r,g0)|0,w=w+Math.imul(r,N0)|0,w=w+Math.imul(e,g0)|0,f=f+Math.imul(e,N0)|0,y=y+Math.imul(t,_0)|0,w=w+Math.imul(t,B0)|0,w=w+Math.imul(m,_0)|0,f=f+Math.imul(m,B0)|0,y=y+Math.imul(u,w0)|0,w=w+Math.imul(u,f0)|0,w=w+Math.imul(n,w0)|0,f=f+Math.imul(n,f0)|0,y=y+Math.imul(b,c0)|0,w=w+Math.imul(b,h0)|0,w=w+Math.imul(l,c0)|0,f=f+Math.imul(l,h0)|0,y=y+Math.imul(c,b0)|0,w=w+Math.imul(c,l0)|0,w=w+Math.imul(h,b0)|0,f=f+Math.imul(h,l0)|0;var i0=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(i0>>>26)|0,i0&=67108863,y=Math.imul(F0,D0),w=Math.imul(F0,C0),w=w+Math.imul(A0,D0)|0,f=Math.imul(A0,C0),y=y+Math.imul(I0,R0)|0,w=w+Math.imul(I0,P0)|0,w=w+Math.imul(J0,R0)|0,f=f+Math.imul(J0,P0)|0,y=y+Math.imul(U0,M0)|0,w=w+Math.imul(U0,S0)|0,w=w+Math.imul(X0,M0)|0,f=f+Math.imul(X0,S0)|0,y=y+Math.imul(Z0,q0)|0,w=w+Math.imul(Z0,j0)|0,w=w+Math.imul(G0,q0)|0,f=f+Math.imul(G0,j0)|0,y=y+Math.imul($0,g0)|0,w=w+Math.imul($0,N0)|0,w=w+Math.imul(Q0,g0)|0,f=f+Math.imul(Q0,N0)|0,y=y+Math.imul(r,_0)|0,w=w+Math.imul(r,B0)|0,w=w+Math.imul(e,_0)|0,f=f+Math.imul(e,B0)|0,y=y+Math.imul(t,w0)|0,w=w+Math.imul(t,f0)|0,w=w+Math.imul(m,w0)|0,f=f+Math.imul(m,f0)|0,y=y+Math.imul(u,c0)|0,w=w+Math.imul(u,h0)|0,w=w+Math.imul(n,c0)|0,f=f+Math.imul(n,h0)|0,y=y+Math.imul(b,b0)|0,w=w+Math.imul(b,l0)|0,w=w+Math.imul(l,b0)|0,f=f+Math.imul(l,l0)|0;var $$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+($$>>>26)|0,$$&=67108863,y=Math.imul(F0,R0),w=Math.imul(F0,P0),w=w+Math.imul(A0,R0)|0,f=Math.imul(A0,P0),y=y+Math.imul(I0,M0)|0,w=w+Math.imul(I0,S0)|0,w=w+Math.imul(J0,M0)|0,f=f+Math.imul(J0,S0)|0,y=y+Math.imul(U0,q0)|0,w=w+Math.imul(U0,j0)|0,w=w+Math.imul(X0,q0)|0,f=f+Math.imul(X0,j0)|0,y=y+Math.imul(Z0,g0)|0,w=w+Math.imul(Z0,N0)|0,w=w+Math.imul(G0,g0)|0,f=f+Math.imul(G0,N0)|0,y=y+Math.imul($0,_0)|0,w=w+Math.imul($0,B0)|0,w=w+Math.imul(Q0,_0)|0,f=f+Math.imul(Q0,B0)|0,y=y+Math.imul(r,w0)|0,w=w+Math.imul(r,f0)|0,w=w+Math.imul(e,w0)|0,f=f+Math.imul(e,f0)|0,y=y+Math.imul(t,c0)|0,w=w+Math.imul(t,h0)|0,w=w+Math.imul(m,c0)|0,f=f+Math.imul(m,h0)|0,y=y+Math.imul(u,b0)|0,w=w+Math.imul(u,l0)|0,w=w+Math.imul(n,b0)|0,f=f+Math.imul(n,l0)|0;var Q$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,y=Math.imul(F0,M0),w=Math.imul(F0,S0),w=w+Math.imul(A0,M0)|0,f=Math.imul(A0,S0),y=y+Math.imul(I0,q0)|0,w=w+Math.imul(I0,j0)|0,w=w+Math.imul(J0,q0)|0,f=f+Math.imul(J0,j0)|0,y=y+Math.imul(U0,g0)|0,w=w+Math.imul(U0,N0)|0,w=w+Math.imul(X0,g0)|0,f=f+Math.imul(X0,N0)|0,y=y+Math.imul(Z0,_0)|0,w=w+Math.imul(Z0,B0)|0,w=w+Math.imul(G0,_0)|0,f=f+Math.imul(G0,B0)|0,y=y+Math.imul($0,w0)|0,w=w+Math.imul($0,f0)|0,w=w+Math.imul(Q0,w0)|0,f=f+Math.imul(Q0,f0)|0,y=y+Math.imul(r,c0)|0,w=w+Math.imul(r,h0)|0,w=w+Math.imul(e,c0)|0,f=f+Math.imul(e,h0)|0,y=y+Math.imul(t,b0)|0,w=w+Math.imul(t,l0)|0,w=w+Math.imul(m,b0)|0,f=f+Math.imul(m,l0)|0;var Y$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,y=Math.imul(F0,q0),w=Math.imul(F0,j0),w=w+Math.imul(A0,q0)|0,f=Math.imul(A0,j0),y=y+Math.imul(I0,g0)|0,w=w+Math.imul(I0,N0)|0,w=w+Math.imul(J0,g0)|0,f=f+Math.imul(J0,N0)|0,y=y+Math.imul(U0,_0)|0,w=w+Math.imul(U0,B0)|0,w=w+Math.imul(X0,_0)|0,f=f+Math.imul(X0,B0)|0,y=y+Math.imul(Z0,w0)|0,w=w+Math.imul(Z0,f0)|0,w=w+Math.imul(G0,w0)|0,f=f+Math.imul(G0,f0)|0,y=y+Math.imul($0,c0)|0,w=w+Math.imul($0,h0)|0,w=w+Math.imul(Q0,c0)|0,f=f+Math.imul(Q0,h0)|0,y=y+Math.imul(r,b0)|0,w=w+Math.imul(r,l0)|0,w=w+Math.imul(e,b0)|0,f=f+Math.imul(e,l0)|0;var Z$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,y=Math.imul(F0,g0),w=Math.imul(F0,N0),w=w+Math.imul(A0,g0)|0,f=Math.imul(A0,N0),y=y+Math.imul(I0,_0)|0,w=w+Math.imul(I0,B0)|0,w=w+Math.imul(J0,_0)|0,f=f+Math.imul(J0,B0)|0,y=y+Math.imul(U0,w0)|0,w=w+Math.imul(U0,f0)|0,w=w+Math.imul(X0,w0)|0,f=f+Math.imul(X0,f0)|0,y=y+Math.imul(Z0,c0)|0,w=w+Math.imul(Z0,h0)|0,w=w+Math.imul(G0,c0)|0,f=f+Math.imul(G0,h0)|0,y=y+Math.imul($0,b0)|0,w=w+Math.imul($0,l0)|0,w=w+Math.imul(Q0,b0)|0,f=f+Math.imul(Q0,l0)|0;var G$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(G$>>>26)|0,G$&=67108863,y=Math.imul(F0,_0),w=Math.imul(F0,B0),w=w+Math.imul(A0,_0)|0,f=Math.imul(A0,B0),y=y+Math.imul(I0,w0)|0,w=w+Math.imul(I0,f0)|0,w=w+Math.imul(J0,w0)|0,f=f+Math.imul(J0,f0)|0,y=y+Math.imul(U0,c0)|0,w=w+Math.imul(U0,h0)|0,w=w+Math.imul(X0,c0)|0,f=f+Math.imul(X0,h0)|0,y=y+Math.imul(Z0,b0)|0,w=w+Math.imul(Z0,l0)|0,w=w+Math.imul(G0,b0)|0,f=f+Math.imul(G0,l0)|0;var V$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(V$>>>26)|0,V$&=67108863,y=Math.imul(F0,w0),w=Math.imul(F0,f0),w=w+Math.imul(A0,w0)|0,f=Math.imul(A0,f0),y=y+Math.imul(I0,c0)|0,w=w+Math.imul(I0,h0)|0,w=w+Math.imul(J0,c0)|0,f=f+Math.imul(J0,h0)|0,y=y+Math.imul(U0,b0)|0,w=w+Math.imul(U0,l0)|0,w=w+Math.imul(X0,b0)|0,f=f+Math.imul(X0,l0)|0;var U$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(U$>>>26)|0,U$&=67108863,y=Math.imul(F0,c0),w=Math.imul(F0,h0),w=w+Math.imul(A0,c0)|0,f=Math.imul(A0,h0),y=y+Math.imul(I0,b0)|0,w=w+Math.imul(I0,l0)|0,w=w+Math.imul(J0,b0)|0,f=f+Math.imul(J0,l0)|0;var X$=(B+y|0)+((w&8191)<<13)|0;B=(f+(w>>>13)|0)+(X$>>>26)|0,X$&=67108863,y=Math.imul(F0,b0),w=Math.imul(F0,l0),w=w+Math.imul(A0,b0)|0,f=Math.imul(A0,l0);var K$=(B+y|0)+((w&8191)<<13)|0;return B=(f+(w>>>13)|0)+(K$>>>26)|0,K$&=67108863,_[0]=o0,_[1]=u0,_[2]=n0,_[3]=s0,_[4]=t0,_[5]=m0,_[6]=a0,_[7]=r0,_[8]=e0,_[9]=i0,_[10]=$$,_[11]=Q$,_[12]=Y$,_[13]=Z$,_[14]=G$,_[15]=V$,_[16]=U$,_[17]=X$,_[18]=K$,B!==0&&(_[19]=B,g.length++),g};Math.imul||(E=H);function T(j,k,g){g.negative=k.negative^j.negative,g.length=j.length+k.length;for(var N=0,x=0,_=0;_<g.length-1;_++){var B=x;x=0;for(var y=N&67108863,w=Math.min(_,k.length-1),f=Math.max(0,_-j.length+1);f<=w;f++){var p=_-f,c=j.words[p]|0,h=k.words[f]|0,d=c*h,b=d&67108863;B=B+(d/67108864|0)|0,b=b+y|0,y=b&67108863,B=B+(b>>>26)|0,x+=B>>>26,B&=67108863}g.words[_]=y,N=B,B=x}return N!==0?g.words[_]=N:g.length--,g.strip()}function D(j,k,g){var N=new C;return N.mulp(j,k,g)}U.prototype.mulTo=function(j,k){var g,N=this.length+j.length;return this.length===10&&j.length===10?g=E(this,j,k):N<63?g=H(this,j,k):N<1024?g=T(this,j,k):g=D(this,j,k),g};function C(j,k){this.x=j,this.y=k}C.prototype.makeRBT=function(j){for(var k=new Array(j),g=U.prototype._countBits(j)-1,N=0;N<j;N++)k[N]=this.revBin(N,g,j);return k},C.prototype.revBin=function(j,k,g){if(j===0||j===g-1)return j;for(var N=0,x=0;x<k;x++)N|=(j&1)<<k-x-1,j>>=1;return N},C.prototype.permute=function(j,k,g,N,x,_){for(var B=0;B<_;B++)N[B]=k[j[B]],x[B]=g[j[B]]},C.prototype.transform=function(j,k,g,N,x,_){this.permute(_,j,k,g,N,x);for(var B=1;B<x;B<<=1)for(var y=B<<1,w=Math.cos(2*Math.PI/y),f=Math.sin(2*Math.PI/y),p=0;p<x;p+=y)for(var c=w,h=f,d=0;d<B;d++){var b=g[p+d],l=N[p+d],o=g[p+d+B],u=N[p+d+B],n=c*o-h*u;u=c*u+h*o,o=n,g[p+d]=b+o,N[p+d]=l+u,g[p+d+B]=b-o,N[p+d+B]=l-u,d!==y&&(n=w*c-f*h,h=w*h+f*c,c=n)}},C.prototype.guessLen13b=function(j,k){var g=Math.max(k,j)|1,N=g&1,x=0;for(g=g/2|0;g;g=g>>>1)x++;return 1<<x+1+N},C.prototype.conjugate=function(j,k,g){if(!(g<=1))for(var N=0;N<g/2;N++){var x=j[N];j[N]=j[g-N-1],j[g-N-1]=x,x=k[N],k[N]=-k[g-N-1],k[g-N-1]=-x}},C.prototype.normalize13b=function(j,k){for(var g=0,N=0;N<k/2;N++){var x=Math.round(j[2*N+1]/k)*8192+Math.round(j[2*N]/k)+g;j[N]=x&67108863,x<67108864?g=0:g=x/67108864|0}return j},C.prototype.convert13b=function(j,k,g,N){for(var x=0,_=0;_<k;_++)x=x+(j[_]|0),g[2*_]=x&8191,x=x>>>13,g[2*_+1]=x&8191,x=x>>>13;for(_=2*k;_<N;++_)g[_]=0;G(x===0),G((x&-8192)===0)},C.prototype.stub=function(j){for(var k=new Array(j),g=0;g<j;g++)k[g]=0;return k},C.prototype.mulp=function(j,k,g){var N=2*this.guessLen13b(j.length,k.length),x=this.makeRBT(N),_=this.stub(N),B=new Array(N),y=new Array(N),w=new Array(N),f=new Array(N),p=new Array(N),c=new Array(N),h=g.words;h.length=N,this.convert13b(j.words,j.length,B,N),this.convert13b(k.words,k.length,f,N),this.transform(B,_,y,w,N,x),this.transform(f,_,p,c,N,x);for(var d=0;d<N;d++){var b=y[d]*p[d]-w[d]*c[d];w[d]=y[d]*c[d]+w[d]*p[d],y[d]=b}return this.conjugate(y,w,N),this.transform(y,w,h,_,N,x),this.conjugate(h,_,N),this.normalize13b(h,N),g.negative=j.negative^k.negative,g.length=j.length+k.length,g.strip()},U.prototype.mul=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),this.mulTo(j,k)},U.prototype.mulf=function(j){var k=new U(null);return k.words=new Array(this.length+j.length),D(this,j,k)},U.prototype.imul=function(j){return this.clone().mulTo(j,this)},U.prototype.imuln=function(j){G(typeof j=="number"),G(j<67108864);for(var k=0,g=0;g<this.length;g++){var N=(this.words[g]|0)*j,x=(N&67108863)+(k&67108863);k>>=26,k+=N/67108864|0,k+=x>>>26,this.words[g]=x&67108863}return k!==0&&(this.words[g]=k,this.length++),this},U.prototype.muln=function(j){return this.clone().imuln(j)},U.prototype.sqr=function(){return this.mul(this)},U.prototype.isqr=function(){return this.imul(this.clone())},U.prototype.pow=function(j){var k=W(j);if(k.length===0)return new U(1);for(var g=this,N=0;N<k.length&&k[N]===0;N++,g=g.sqr());if(++N<k.length)for(var x=g.sqr();N<k.length;N++,x=x.sqr())k[N]!==0&&(g=g.mul(x));return g},U.prototype.iushln=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=67108863>>>26-k<<26-k,x;if(k!==0){var _=0;for(x=0;x<this.length;x++){var B=this.words[x]&N,y=(this.words[x]|0)-B<<k;this.words[x]=y|_,_=B>>>26-k}_&&(this.words[x]=_,this.length++)}if(g!==0){for(x=this.length-1;x>=0;x--)this.words[x+g]=this.words[x];for(x=0;x<g;x++)this.words[x]=0;this.length+=g}return this.strip()},U.prototype.ishln=function(j){return G(this.negative===0),this.iushln(j)},U.prototype.iushrn=function(j,k,g){G(typeof j=="number"&&j>=0);var N;k?N=(k-k%26)/26:N=0;var x=j%26,_=Math.min((j-x)/26,this.length),B=67108863^67108863>>>x<<x,y=g;if(N-=_,N=Math.max(0,N),y){for(var w=0;w<_;w++)y.words[w]=this.words[w];y.length=_}if(_!==0)if(this.length>_)for(this.length-=_,w=0;w<this.length;w++)this.words[w]=this.words[w+_];else this.words[0]=0,this.length=1;var f=0;for(w=this.length-1;w>=0&&(f!==0||w>=N);w--){var p=this.words[w]|0;this.words[w]=f<<26-x|p>>>x,f=p&B}return y&&f!==0&&(y.words[y.length++]=f),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},U.prototype.ishrn=function(j,k,g){return G(this.negative===0),this.iushrn(j,k,g)},U.prototype.shln=function(j){return this.clone().ishln(j)},U.prototype.ushln=function(j){return this.clone().iushln(j)},U.prototype.shrn=function(j){return this.clone().ishrn(j)},U.prototype.ushrn=function(j){return this.clone().iushrn(j)},U.prototype.testn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26,N=1<<k;if(this.length<=g)return!1;var x=this.words[g];return!!(x&N)},U.prototype.imaskn=function(j){G(typeof j=="number"&&j>=0);var k=j%26,g=(j-k)/26;if(G(this.negative===0,"imaskn works only with positive numbers"),this.length<=g)return this;if(k!==0&&g++,this.length=Math.min(g,this.length),k!==0){var N=67108863^67108863>>>k<<k;this.words[this.length-1]&=N}return this.strip()},U.prototype.maskn=function(j){return this.clone().imaskn(j)},U.prototype.iaddn=function(j){return G(typeof j=="number"),G(j<67108864),j<0?this.isubn(-j):this.negative!==0?this.length===1&&(this.words[0]|0)<j?(this.words[0]=j-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(j),this.negative=1,this):this._iaddn(j)},U.prototype._iaddn=function(j){this.words[0]+=j;for(var k=0;k<this.length&&this.words[k]>=67108864;k++)this.words[k]-=67108864,k===this.length-1?this.words[k+1]=1:this.words[k+1]++;return this.length=Math.max(this.length,k+1),this},U.prototype.isubn=function(j){if(G(typeof j=="number"),G(j<67108864),j<0)return this.iaddn(-j);if(this.negative!==0)return this.negative=0,this.iaddn(j),this.negative=1,this;if(this.words[0]-=j,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var k=0;k<this.length&&this.words[k]<0;k++)this.words[k]+=67108864,this.words[k+1]-=1;return this.strip()},U.prototype.addn=function(j){return this.clone().iaddn(j)},U.prototype.subn=function(j){return this.clone().isubn(j)},U.prototype.iabs=function(){return this.negative=0,this},U.prototype.abs=function(){return this.clone().iabs()},U.prototype._ishlnsubmul=function(j,k,g){var N=j.length+g,x;this._expand(N);var _,B=0;for(x=0;x<j.length;x++){_=(this.words[x+g]|0)+B;var y=(j.words[x]|0)*k;_-=y&67108863,B=(_>>26)-(y/67108864|0),this.words[x+g]=_&67108863}for(;x<this.length-g;x++)_=(this.words[x+g]|0)+B,B=_>>26,this.words[x+g]=_&67108863;if(B===0)return this.strip();for(G(B===-1),B=0,x=0;x<this.length;x++)_=-(this.words[x]|0)+B,B=_>>26,this.words[x]=_&67108863;return this.negative=1,this.strip()},U.prototype._wordDiv=function(j,k){var g=this.length-j.length,N=this.clone(),x=j,_=x.words[x.length-1]|0,B=this._countBits(_);g=26-B,g!==0&&(x=x.ushln(g),N.iushln(g),_=x.words[x.length-1]|0);var y=N.length-x.length,w;if(k!=="mod"){w=new U(null),w.length=y+1,w.words=new Array(w.length);for(var f=0;f<w.length;f++)w.words[f]=0}var p=N.clone()._ishlnsubmul(x,1,y);p.negative===0&&(N=p,w&&(w.words[y]=1));for(var c=y-1;c>=0;c--){var h=(N.words[x.length+c]|0)*67108864+(N.words[x.length+c-1]|0);for(h=Math.min(h/_|0,67108863),N._ishlnsubmul(x,h,c);N.negative!==0;)h--,N.negative=0,N._ishlnsubmul(x,1,c),N.isZero()||(N.negative^=1);w&&(w.words[c]=h)}return w&&w.strip(),N.strip(),k!=="div"&&g!==0&&N.iushrn(g),{div:w||null,mod:N}},U.prototype.divmod=function(j,k,g){if(G(!j.isZero()),this.isZero())return{div:new U(0),mod:new U(0)};var N,x,_;return this.negative!==0&&j.negative===0?(_=this.neg().divmod(j,k),k!=="mod"&&(N=_.div.neg()),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.iadd(j)),{div:N,mod:x}):this.negative===0&&j.negative!==0?(_=this.divmod(j.neg(),k),k!=="mod"&&(N=_.div.neg()),{div:N,mod:_.mod}):(this.negative&j.negative)!==0?(_=this.neg().divmod(j.neg(),k),k!=="div"&&(x=_.mod.neg(),g&&x.negative!==0&&x.isub(j)),{div:_.div,mod:x}):j.length>this.length||this.cmp(j)<0?{div:new U(0),mod:this}:j.length===1?k==="div"?{div:this.divn(j.words[0]),mod:null}:k==="mod"?{div:null,mod:new U(this.modn(j.words[0]))}:{div:this.divn(j.words[0]),mod:new U(this.modn(j.words[0]))}:this._wordDiv(j,k)},U.prototype.div=function(j){return this.divmod(j,"div",!1).div},U.prototype.mod=function(j){return this.divmod(j,"mod",!1).mod},U.prototype.umod=function(j){return this.divmod(j,"mod",!0).mod},U.prototype.divRound=function(j){var k=this.divmod(j);if(k.mod.isZero())return k.div;var g=k.div.negative!==0?k.mod.isub(j):k.mod,N=j.ushrn(1),x=j.andln(1),_=g.cmp(N);return _<0||x===1&&_===0?k.div:k.div.negative!==0?k.div.isubn(1):k.div.iaddn(1)},U.prototype.modn=function(j){G(j<=67108863);for(var k=(1<<26)%j,g=0,N=this.length-1;N>=0;N--)g=(k*g+(this.words[N]|0))%j;return g},U.prototype.idivn=function(j){G(j<=67108863);for(var k=0,g=this.length-1;g>=0;g--){var N=(this.words[g]|0)+k*67108864;this.words[g]=N/j|0,k=N%j}return this.strip()},U.prototype.divn=function(j){return this.clone().idivn(j)},U.prototype.egcd=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var N=new U(1),x=new U(0),_=new U(0),B=new U(1),y=0;k.isEven()&&g.isEven();)k.iushrn(1),g.iushrn(1),++y;for(var w=g.clone(),f=k.clone();!k.isZero();){for(var p=0,c=1;(k.words[0]&c)===0&&p<26;++p,c<<=1);if(p>0)for(k.iushrn(p);p-- >0;)(N.isOdd()||x.isOdd())&&(N.iadd(w),x.isub(f)),N.iushrn(1),x.iushrn(1);for(var h=0,d=1;(g.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(g.iushrn(h);h-- >0;)(_.isOdd()||B.isOdd())&&(_.iadd(w),B.isub(f)),_.iushrn(1),B.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(_),x.isub(B)):(g.isub(k),_.isub(N),B.isub(x))}return{a:_,b:B,gcd:g.iushln(y)}},U.prototype._invmp=function(j){G(j.negative===0),G(!j.isZero());var k=this,g=j.clone();k.negative!==0?k=k.umod(j):k=k.clone();for(var N=new U(1),x=new U(0),_=g.clone();k.cmpn(1)>0&&g.cmpn(1)>0;){for(var B=0,y=1;(k.words[0]&y)===0&&B<26;++B,y<<=1);if(B>0)for(k.iushrn(B);B-- >0;)N.isOdd()&&N.iadd(_),N.iushrn(1);for(var w=0,f=1;(g.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(g.iushrn(w);w-- >0;)x.isOdd()&&x.iadd(_),x.iushrn(1);k.cmp(g)>=0?(k.isub(g),N.isub(x)):(g.isub(k),x.isub(N))}var p;return k.cmpn(1)===0?p=N:p=x,p.cmpn(0)<0&&p.iadd(j),p},U.prototype.gcd=function(j){if(this.isZero())return j.abs();if(j.isZero())return this.abs();var k=this.clone(),g=j.clone();k.negative=0,g.negative=0;for(var N=0;k.isEven()&&g.isEven();N++)k.iushrn(1),g.iushrn(1);do{for(;k.isEven();)k.iushrn(1);for(;g.isEven();)g.iushrn(1);var x=k.cmp(g);if(x<0){var _=k;k=g,g=_}else if(x===0||g.cmpn(1)===0)break;k.isub(g)}while(!0);return g.iushln(N)},U.prototype.invm=function(j){return this.egcd(j).a.umod(j)},U.prototype.isEven=function(){return(this.words[0]&1)===0},U.prototype.isOdd=function(){return(this.words[0]&1)===1},U.prototype.andln=function(j){return this.words[0]&j},U.prototype.bincn=function(j){G(typeof j=="number");var k=j%26,g=(j-k)/26,N=1<<k;if(this.length<=g)return this._expand(g+1),this.words[g]|=N,this;for(var x=N,_=g;x!==0&&_<this.length;_++){var B=this.words[_]|0;B+=x,x=B>>>26,B&=67108863,this.words[_]=B}return x!==0&&(this.words[_]=x,this.length++),this},U.prototype.isZero=function(){return this.length===1&&this.words[0]===0},U.prototype.cmpn=function(j){var k=j<0;if(this.negative!==0&&!k)return-1;if(this.negative===0&&k)return 1;this.strip();var g;if(this.length>1)g=1;else{k&&(j=-j),G(j<=67108863,"Number is too big");var N=this.words[0]|0;g=N===j?0:N<j?-1:1}return this.negative!==0?-g|0:g},U.prototype.cmp=function(j){if(this.negative!==0&&j.negative===0)return-1;if(this.negative===0&&j.negative!==0)return 1;var k=this.ucmp(j);return this.negative!==0?-k|0:k},U.prototype.ucmp=function(j){if(this.length>j.length)return 1;if(this.length<j.length)return-1;for(var k=0,g=this.length-1;g>=0;g--){var N=this.words[g]|0,x=j.words[g]|0;if(N!==x){N<x?k=-1:N>x&&(k=1);break}}return k},U.prototype.gtn=function(j){return this.cmpn(j)===1},U.prototype.gt=function(j){return this.cmp(j)===1},U.prototype.gten=function(j){return this.cmpn(j)>=0},U.prototype.gte=function(j){return this.cmp(j)>=0},U.prototype.ltn=function(j){return this.cmpn(j)===-1},U.prototype.lt=function(j){return this.cmp(j)===-1},U.prototype.lten=function(j){return this.cmpn(j)<=0},U.prototype.lte=function(j){return this.cmp(j)<=0},U.prototype.eqn=function(j){return this.cmpn(j)===0},U.prototype.eq=function(j){return this.cmp(j)===0},U.red=function(j){return new v(j)},U.prototype.toRed=function(j){return G(!this.red,"Already a number in reduction context"),G(this.negative===0,"red works only with positives"),j.convertTo(this)._forceRed(j)},U.prototype.fromRed=function(){return G(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},U.prototype._forceRed=function(j){return this.red=j,this},U.prototype.forceRed=function(j){return G(!this.red,"Already a number in reduction context"),this._forceRed(j)},U.prototype.redAdd=function(j){return G(this.red,"redAdd works only with red numbers"),this.red.add(this,j)},U.prototype.redIAdd=function(j){return G(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,j)},U.prototype.redSub=function(j){return G(this.red,"redSub works only with red numbers"),this.red.sub(this,j)},U.prototype.redISub=function(j){return G(this.red,"redISub works only with red numbers"),this.red.isub(this,j)},U.prototype.redShl=function(j){return G(this.red,"redShl works only with red numbers"),this.red.shl(this,j)},U.prototype.redMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.mul(this,j)},U.prototype.redIMul=function(j){return G(this.red,"redMul works only with red numbers"),this.red._verify2(this,j),this.red.imul(this,j)},U.prototype.redSqr=function(){return G(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},U.prototype.redISqr=function(){return G(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},U.prototype.redSqrt=function(){return G(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},U.prototype.redInvm=function(){return G(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},U.prototype.redNeg=function(){return G(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},U.prototype.redPow=function(j){return G(this.red&&!j.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,j)};var L={k256:null,p224:null,p192:null,p25519:null};function R(j,k){this.name=j,this.p=new U(k,16),this.n=this.p.bitLength(),this.k=new U(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}R.prototype._tmp=function(){var j=new U(null);return j.words=new Array(Math.ceil(this.n/13)),j},R.prototype.ireduce=function(j){var k=j,g;do this.split(k,this.tmp),k=this.imulK(k),k=k.iadd(this.tmp),g=k.bitLength();while(g>this.n);var N=g<this.n?-1:k.ucmp(this.p);return N===0?(k.words[0]=0,k.length=1):N>0?k.isub(this.p):k.strip!==void 0?k.strip():k._strip(),k},R.prototype.split=function(j,k){j.iushrn(this.n,0,k)},R.prototype.imulK=function(j){return j.imul(this.k)};function P(){R.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}V(P,R),P.prototype.split=function(j,k){for(var g=4194303,N=Math.min(j.length,9),x=0;x<N;x++)k.words[x]=j.words[x];if(k.length=N,j.length<=9){j.words[0]=0,j.length=1;return}var _=j.words[9];for(k.words[k.length++]=_&g,x=10;x<j.length;x++){var B=j.words[x]|0;j.words[x-10]=(B&g)<<4|_>>>22,_=B}_>>>=22,j.words[x-10]=_,_===0&&j.length>10?j.length-=10:j.length-=9},P.prototype.imulK=function(j){j.words[j.length]=0,j.words[j.length+1]=0,j.length+=2;for(var k=0,g=0;g<j.length;g++){var N=j.words[g]|0;k+=N*977,j.words[g]=k&67108863,k=N*64+(k/67108864|0)}return j.words[j.length-1]===0&&(j.length--,j.words[j.length-1]===0&&j.length--),j};function z(){R.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}V(z,R);function M(){R.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}V(M,R);function S(){R.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}V(S,R),S.prototype.imulK=function(j){for(var k=0,g=0;g<j.length;g++){var N=(j.words[g]|0)*19+k,x=N&67108863;N>>>=26,j.words[g]=x,k=N}return k!==0&&(j.words[j.length++]=k),j},U._prime=function(j){if(L[j])return L[j];var k;if(j==="k256")k=new P;else if(j==="p224")k=new z;else if(j==="p192")k=new M;else if(j==="p25519")k=new S;else throw new Error("Unknown prime "+j);return L[j]=k,k};function v(j){if(typeof j=="string"){var k=U._prime(j);this.m=k.p,this.prime=k}else G(j.gtn(1),"modulus must be greater than 1"),this.m=j,this.prime=null}v.prototype._verify1=function(j){G(j.negative===0,"red works only with positives"),G(j.red,"red works only with red numbers")},v.prototype._verify2=function(j,k){G((j.negative|k.negative)===0,"red works only with positives"),G(j.red&&j.red===k.red,"red works only with red numbers")},v.prototype.imod=function(j){return this.prime?this.prime.ireduce(j)._forceRed(this):j.umod(this.m)._forceRed(this)},v.prototype.neg=function(j){return j.isZero()?j.clone():this.m.sub(j)._forceRed(this)},v.prototype.add=function(j,k){this._verify2(j,k);var g=j.add(k);return g.cmp(this.m)>=0&&g.isub(this.m),g._forceRed(this)},v.prototype.iadd=function(j,k){this._verify2(j,k);var g=j.iadd(k);return g.cmp(this.m)>=0&&g.isub(this.m),g},v.prototype.sub=function(j,k){this._verify2(j,k);var g=j.sub(k);return g.cmpn(0)<0&&g.iadd(this.m),g._forceRed(this)},v.prototype.isub=function(j,k){this._verify2(j,k);var g=j.isub(k);return g.cmpn(0)<0&&g.iadd(this.m),g},v.prototype.shl=function(j,k){return this._verify1(j),this.imod(j.ushln(k))},v.prototype.imul=function(j,k){return this._verify2(j,k),this.imod(j.imul(k))},v.prototype.mul=function(j,k){return this._verify2(j,k),this.imod(j.mul(k))},v.prototype.isqr=function(j){return this.imul(j,j.clone())},v.prototype.sqr=function(j){return this.mul(j,j)},v.prototype.sqrt=function(j){if(j.isZero())return j.clone();var k=this.m.andln(3);if(G(k%2===1),k===3){var g=this.m.add(new U(1)).iushrn(2);return this.pow(j,g)}for(var N=this.m.subn(1),x=0;!N.isZero()&&N.andln(1)===0;)x++,N.iushrn(1);G(!N.isZero());var _=new U(1).toRed(this),B=_.redNeg(),y=this.m.subn(1).iushrn(1),w=this.m.bitLength();for(w=new U(2*w*w).toRed(this);this.pow(w,y).cmp(B)!==0;)w.redIAdd(B);for(var f=this.pow(w,N),p=this.pow(j,N.addn(1).iushrn(1)),c=this.pow(j,N),h=x;c.cmp(_)!==0;){for(var d=c,b=0;d.cmp(_)!==0;b++)d=d.redSqr();G(b<h);var l=this.pow(f,new U(1).iushln(h-b-1));p=p.redMul(l),f=l.redSqr(),c=c.redMul(f),h=b}return p},v.prototype.invm=function(j){var k=j._invmp(this.m);return k.negative!==0?(k.negative=0,this.imod(k).redNeg()):this.imod(k)},v.prototype.pow=function(j,k){if(k.isZero())return new U(1).toRed(this);if(k.cmpn(1)===0)return j.clone();var g=4,N=new Array(1<<g);N[0]=new U(1).toRed(this),N[1]=j;for(var x=2;x<N.length;x++)N[x]=this.mul(N[x-1],j);var _=N[0],B=0,y=0,w=k.bitLength()%26;for(w===0&&(w=26),x=k.length-1;x>=0;x--){for(var f=k.words[x],p=w-1;p>=0;p--){var c=f>>p&1;if(_!==N[0]&&(_=this.sqr(_)),c===0&&B===0){y=0;continue}B<<=1,B|=c,y++,!(y!==g&&(x!==0||p!==0))&&(_=this.mul(_,N[B]),y=0,B=0)}w=26}return _},v.prototype.convertTo=function(j){var k=j.umod(this.m);return k===j?k.clone():k},v.prototype.convertFrom=function(j){var k=j.clone();return k.red=null,k},U.mont=function(j){return new q(j)};function q(j){v.call(this,j),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new U(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}V(q,v),q.prototype.convertTo=function(j){return this.imod(j.ushln(this.shift))},q.prototype.convertFrom=function(j){var k=this.imod(j.mul(this.rinv));return k.red=null,k},q.prototype.imul=function(j,k){if(j.isZero()||k.isZero())return j.words[0]=0,j.length=1,j;var g=j.imul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.mul=function(j,k){if(j.isZero()||k.isZero())return new U(0)._forceRed(this);var g=j.mul(k),N=g.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),x=g.isub(N).iushrn(this.shift),_=x;return x.cmp(this.m)>=0?_=x.isub(this.m):x.cmpn(0)<0&&(_=x.iadd(this.m)),_._forceRed(this)},q.prototype.invm=function(j){var k=this.imod(j._invmp(this.m).mul(this.r2));return k._forceRed(this)}})(typeof Q>"u"||Q,$)}}),{CryptoHasher:oY}=globalThis.Bun,uY=z$({"node_modules/public-encrypt/withPublic.js"($,Q){var Y=lY(),Z=S$().Buffer;function G(V,U){return Z.from(V.toRed(Y.mont(U.modulus)).redPow(new Y(U.publicExponent)).fromRed().toArray())}Q.exports=G}}),nY=z$({"node_modules/public-encrypt/publicEncrypt.js"($,Q){var Y=BY(),Z=v$(),G=d$(),V=dY(),U=bY(),X=lY(),K=uY(),I=fQ(),J=S$().Buffer;Q.exports=function(W,H,E){var T;W.padding?T=W.padding:E?T=1:T=4;var D=Y(W),C;if(T===4)C=O(D,H);else if(T===1)C=F(D,H,E);else if(T===3){if(C=new X(H),C.cmp(D.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return E?I(C,D):K(C,D)};function O(W,H){var E=W.modulus.byteLength(),T=H.length,D=G("sha1").update(J.alloc(0)).digest(),C=D.length,L=2*C;if(T>E-L-2)throw new Error("message too long");var R=J.alloc(E-T-L-2),P=E-C-1,z=Z(C),M=U(J.concat([D,R,J.alloc(1,1),H],P),V(z,P)),S=U(z,V(M,C));return new X(J.concat([J.alloc(1),S,M],E))}function F(W,H,E){var T=H.length,D=W.modulus.byteLength();if(T>D-11)throw new Error("message too long");var C;return E?C=J.alloc(D-T-3,255):C=A(D-T-3),new X(J.concat([J.from([0,E?1:2]),C,J.alloc(1),H],D))}function A(W){for(var H=J.allocUnsafe(W),E=0,T=Z(W*2),D=0,C;E<W;)D===T.length&&(T=Z(W*2),D=0),C=T[D++],C&&(H[E++]=C);return H}}}),sY=z$({"node_modules/public-encrypt/privateDecrypt.js"($,Q){var Y=BY(),Z=dY(),G=bY(),V=lY(),U=fQ(),X=d$(),K=uY(),I=S$().Buffer;Q.exports=function(A,W,H){var E;A.padding?E=A.padding:H?E=1:E=4;var T=Y(A),D=T.modulus.byteLength();if(W.length>D||new V(W).cmp(T.modulus)>=0)throw new Error("decryption error");var C;H?C=K(new V(W),T):C=U(W,T);var L=I.alloc(D-C.length);if(C=I.concat([L,C],D),E===4)return J(T,C);if(E===1)return O(T,C,H);if(E===3)return C;throw new Error("unknown padding")};function J(A,W){var H=A.modulus.byteLength(),E=X("sha1").update(I.alloc(0)).digest(),T=E.length;if(W[0]!==0)throw new Error("decryption error");var D=W.slice(1,T+1),C=W.slice(T+1),L=G(D,Z(C,T)),R=G(C,Z(L,H-T-1));if(F(E,R.slice(0,T)))throw new Error("decryption error");for(var P=T;R[P]===0;)P++;if(R[P++]!==1)throw new Error("decryption error");return R.slice(P)}function O(A,W,H){for(var E=W.slice(0,2),T=2,D=0;W[T++]!==0;)if(T>=W.length){D++;break}var C=W.slice(2,T-1);if((E.toString("hex")!=="0002"&&!H||E.toString("hex")!=="0001"&&H)&&D++,C.length<8&&D++,D)throw new Error("decryption error");return W.slice(T)}function F(A,W){A=I.from(A),W=I.from(W);var H=0,E=A.length;A.length!==W.length&&(H++,E=Math.min(A.length,W.length));for(var T=-1;++T<E;)H+=A[T]^W[T];return H}}}),tY=z$({"node_modules/public-encrypt/browser.js"($){$.publicEncrypt=nY(),$.privateDecrypt=sY(),$.privateEncrypt=function(Q,Y){return $.publicEncrypt(Q,Y,!0)},$.publicDecrypt=function(Q,Y){return $.privateDecrypt(Q,Y,!0)}}}),mY=z$({"node_modules/randomfill/browser.js"($){var Q=S$(),Y=v$(),Z=Q.Buffer,G=Q.kMaxLength,V=Math.pow(2,32)-1;function U(O,F){if(typeof O!="number"||O!==O)throw new TypeError("offset must be a number");if(O>V||O<0)throw new TypeError("offset must be a uint32");if(O>G||O>F)throw new RangeError("offset out of range")}function X(O,F,A){if(typeof O!="number"||O!==O)throw new TypeError("size must be a number");if(O>V||O<0)throw new TypeError("size must be a uint32");if(O+F>A||O>G)throw new RangeError("buffer too small")}$.randomFill=K,$.randomFillSync=J;function K(O,F,A,W){if(!Z.isBuffer(O)&&!(O instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof F=="function")W=F,F=0,A=O.length;else if(typeof A=="function")W=A,A=O.length-F;else if(typeof W!="function")throw new TypeError('"cb" argument must be a function');return U(F,O.length),X(A,F,O.length),I(O,F,A,W)}function I(O,F,A,W){if(W){Y(A,function(E,T){if(E)return W(E);T.copy(O,F),W(null,O)});return}var H=Y(A);return H.copy(O,F),O}function J(O,F,A){if(typeof F>"u"&&(F=0),!Z.isBuffer(O)&&!(O instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return U(F,O.length),A===void 0&&(A=O.length-F),X(A,F,O.length),I(O,F,A)}}}),aY=z$({"node_modules/crypto-browserify/index.js"($){$.randomBytes=$.rng=$.pseudoRandomBytes=$.prng=v$(),$.createHash=d$(),$.Hash=$.createHash.Hash,$.createHmac=$.Hmac=o$();var Q=n$(),Y=Object.keys(Q),Z=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Y);$.getHashes=function(){return Z};var G=e$();$.pbkdf2=G.pbkdf2,$.pbkdf2Sync=G.pbkdf2Sync;var V=vQ();$.Cipher=V.Cipher,$.createCipher=V.createCipher,$.Cipheriv=V.Cipheriv,$.createCipheriv=V.createCipheriv,$.Decipher=V.Decipher,$.createDecipher=V.createDecipher,$.Decipheriv=V.Decipheriv,$.createDecipheriv=V.createDecipheriv,$.getCiphers=V.getCiphers,$.listCiphers=V.listCiphers;var U=yQ();$.DiffieHellmanGroup=U.DiffieHellmanGroup,$.createDiffieHellmanGroup=U.createDiffieHellmanGroup,$.getDiffieHellman=U.getDiffieHellman,$.createDiffieHellman=U.createDiffieHellman,$.DiffieHellman=U.DiffieHellman;var X=pY();$.createSign=X.createSign,$.Sign=X.Sign,$.createVerify=X.createVerify,$.Verify=X.Verify,$.createECDH=hY();var K=tY();$.publicEncrypt=K.publicEncrypt,$.privateEncrypt=K.privateEncrypt,$.publicDecrypt=K.publicDecrypt,$.privateDecrypt=K.privateDecrypt,$.getRandomValues=(J)=>F$.getRandomValues(J);var I=mY();$.randomFill=I.randomFill,$.randomFillSync=I.randomFillSync,$.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` -`))},$.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}}),rY={...aY(),[Symbol.for("CommonJS")]:0},H$="buffer",eY=($)=>F$.getRandomValues($),iY=()=>F$.randomUUID(),E$="timingSafeEqual"in F$?($,Q)=>{let{byteLength:Y}=$,{byteLength:Z}=Q;if(typeof Y!="number"||typeof Z!="number")throw new TypeError("Input must be an array buffer view");if(Y!==Z)throw new RangeError("Input buffers must have the same length");return F$.timingSafeEqual($,Q)}:void 0,$Z="scryptSync"in F$?($,Q,Y,Z)=>{let G=F$.scryptSync($,Q,Y,Z);return H$!=="buffer"?new Buffer(G).toString(H$):new Buffer(G)}:void 0,QZ="scryptSync"in F$?function($,Q,Y,Z,G){if(typeof Z=="function"&&(G=Z,Z=void 0),typeof G!="function"){var V=new TypeError("callback must be a function");throw V.code="ERR_INVALID_CALLBACK",V}try{let U=F$.scryptSync($,Q,Y,Z);process.nextTick(G,null,H$!=="buffer"?new Buffer(U).toString(H$):new Buffer(U))}catch(U){throw U}}:void 0;E$&&(Object.defineProperty(E$,"name",{value:"::bunternal::"}),Object.defineProperty(QZ,"name",{value:"::bunternal::"}),Object.defineProperty($Z,"name",{value:"::bunternal::"}));var T$=F$;M$(rY,{DEFAULT_ENCODING:()=>H$,getRandomValues:()=>eY,randomUUID:()=>iY,scrypt:()=>QZ,scryptSync:()=>$Z,timingSafeEqual:()=>E$,webcrypto:()=>T$,subtle:()=>T$.subtle});var{randomBytes:YZ,rng:ZZ,pseudoRandomBytes:GZ,prng:VZ,Hash:UZ,createHash:XZ,createHmac:KZ,Hmac:IZ,getHashes:JZ,pbkdf2:OZ,pbkdf2Sync:FZ,Cipher:AZ,createCipher:WZ,Cipheriv:HZ,createCipheriv:EZ,Decipher:TZ,createDecipher:DZ,Decipheriv:CZ,createDecipheriv:LZ,getCiphers:RZ,listCiphers:PZ,DiffieHellmanGroup:zZ,createDiffieHellmanGroup:MZ,getDiffieHellman:SZ,createDiffieHellman:vZ,DiffieHellman:qZ,createSign:jZ,Sign:kZ,createVerify:gZ,Verify:NZ,createECDH:xZ,publicEncrypt:_Z,privateEncrypt:BZ,publicDecrypt:yZ,privateDecrypt:wZ,randomFill:fZ,randomFillSync:pZ,createCredentials:cZ,constants:hZ}=rY;var bZ=rY;/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */export{T$ as webcrypto,E$ as timingSafeEqual,$Z as scryptSync,QZ as scrypt,ZZ as rng,iY as randomUUID,pZ as randomFillSync,fZ as randomFill,YZ as randomBytes,_Z as publicEncrypt,yZ as publicDecrypt,GZ as pseudoRandomBytes,VZ as prng,BZ as privateEncrypt,wZ as privateDecrypt,FZ as pbkdf2Sync,OZ as pbkdf2,PZ as listCiphers,eY as getRandomValues,JZ as getHashes,SZ as getDiffieHellman,RZ as getCiphers,bZ as default,gZ as createVerify,jZ as createSign,KZ as createHmac,XZ as createHash,xZ as createECDH,MZ as createDiffieHellmanGroup,vZ as createDiffieHellman,LZ as createDecipheriv,DZ as createDecipher,cZ as createCredentials,EZ as createCipheriv,WZ as createCipher,hZ as constants,NZ as Verify,kZ as Sign,IZ as Hmac,UZ as Hash,zZ as DiffieHellmanGroup,qZ as DiffieHellman,CZ as Decipheriv,TZ as Decipher,H$ as DEFAULT_ENCODING,HZ as Cipheriv,AZ as Cipher}; +var T$=Object.defineProperty;var D$=Object.getOwnPropertyNames;var C$=536870888,L$=(bZ)=>import.meta.require(bZ),O$=globalThis.crypto,R$=O$;var P$=(bZ,$)=>function(){return $||(0,bZ[D$(bZ)[0]])(($={exports:{}}).exports,$),$.exports},z$=(bZ,$)=>{for(var Q in $)T$(bZ,Q,{get:$[Q],enumerable:!0})};var M$=P$({"node_modules/safe-buffer/index.js"(bZ,$){var Q=L$("buffer"),Y=Q.Buffer;function Z(V,U){for(var X in V)U[X]=V[X]}Y.from&&Y.alloc&&Y.allocUnsafe&&Y.allocUnsafeSlow?$.exports=Q:(Z(Q,bZ),bZ.Buffer=G);function G(V,U,X){return Y(V,U,X)}G.prototype=Object.create(Y.prototype),Z(Y,G),G.from=function(V,U,X){if(typeof V=="number")throw new TypeError("Argument must not be a number");return Y(V,U,X)},G.alloc=function(V,U,X){if(typeof V!="number")throw new TypeError("Argument must be a number");var K=Y(V);return U!==void 0?typeof X=="string"?K.fill(U,X):K.fill(U):K.fill(0),K},G.allocUnsafe=function(V){if(typeof V!="number")throw new TypeError("Argument must be a number");return Y(V)},G.allocUnsafeSlow=function(V){if(typeof V!="number")throw new TypeError("Argument must be a number");return Q.SlowBuffer(V)}}}),S$=P$({"node_modules/randombytes/browser.js"(bZ,$){var Q=65536,Y=4294967295;function Z(){throw new Error(`Secure random number generation is not supported by this browser. +Use Chrome, Firefox or Internet Explorer 11`)}var G=M$().Buffer,V=R$;V&&V.getRandomValues?$.exports=U:$.exports=Z;function U(X,K){if(X>Y)throw new RangeError("requested too many random bytes");var I=G.allocUnsafe(X);if(X>0)if(X>Q)for(var J=0;J<X;J+=Q)V.getRandomValues(I.slice(J,J+Q));else V.getRandomValues(I);return typeof K=="function"?process.nextTick(function(){K(null,I)}):I}}}),v$=P$({"node_modules/inherits/inherits_browser.js"(bZ,$){typeof Object.create=="function"?$.exports=function(Q,Y){Y&&(Q.super_=Y,Q.prototype=Object.create(Y.prototype,{constructor:{value:Q,enumerable:!1,writable:!0,configurable:!0}}))}:$.exports=function(Q,Y){if(Y){Q.super_=Y;var Z=function(){};Z.prototype=Y.prototype,Q.prototype=new Z,Q.prototype.constructor=Q}}}}),q$=P$({"node_modules/hash-base/index.js"(bZ,$){var Q=M$().Buffer,Y=L$("readable-stream").Transform,Z=v$();function G(U,X){if(!Q.isBuffer(U)&&typeof U!="string")throw new TypeError(X+" must be a string or a buffer")}function V(U){Y.call(this),this._block=Q.allocUnsafe(U),this._blockSize=U,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}Z(V,Y),V.prototype._transform=function(U,X,K){var I=null;try{this.update(U,X)}catch(J){I=J}K(I)},V.prototype._flush=function(U){var X=null;try{this.push(this.digest())}catch(K){X=K}U(X)},V.prototype.update=function(U,X){if(G(U,"Data"),this._finalized)throw new Error("Digest already called");Q.isBuffer(U)||(U=Q.from(U,X));for(var K=this._block,I=0;this._blockOffset+U.length-I>=this._blockSize;){for(var J=this._blockOffset;J<this._blockSize;)K[J++]=U[I++];this._update(),this._blockOffset=0}for(;I<U.length;)K[this._blockOffset++]=U[I++];for(var O=0,F=U.length*8;F>0;++O)this._length[O]+=F,F=this._length[O]/4294967296|0,F>0&&(this._length[O]-=4294967296*F);return this},V.prototype._update=function(){throw new Error("_update is not implemented")},V.prototype.digest=function(U){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var X=this._digest();U!==void 0&&(X=X.toString(U)),this._block.fill(0),this._blockOffset=0;for(var K=0;K<4;++K)this._length[K]=0;return X},V.prototype._digest=function(){throw new Error("_digest is not implemented")},$.exports=V}}),j$=P$({"node_modules/md5.js/index.js"(bZ,$){var Q=v$(),Y=q$(),Z=M$().Buffer,G=new Array(16);function V(){Y.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}Q(V,Y),V.prototype._update=function(){for(var O=G,F=0;F<16;++F)O[F]=this._block.readInt32LE(F*4);var A=this._a,W=this._b,H=this._c,E=this._d;A=X(A,W,H,E,O[0],3614090360,7),E=X(E,A,W,H,O[1],3905402710,12),H=X(H,E,A,W,O[2],606105819,17),W=X(W,H,E,A,O[3],3250441966,22),A=X(A,W,H,E,O[4],4118548399,7),E=X(E,A,W,H,O[5],1200080426,12),H=X(H,E,A,W,O[6],2821735955,17),W=X(W,H,E,A,O[7],4249261313,22),A=X(A,W,H,E,O[8],1770035416,7),E=X(E,A,W,H,O[9],2336552879,12),H=X(H,E,A,W,O[10],4294925233,17),W=X(W,H,E,A,O[11],2304563134,22),A=X(A,W,H,E,O[12],1804603682,7),E=X(E,A,W,H,O[13],4254626195,12),H=X(H,E,A,W,O[14],2792965006,17),W=X(W,H,E,A,O[15],1236535329,22),A=K(A,W,H,E,O[1],4129170786,5),E=K(E,A,W,H,O[6],3225465664,9),H=K(H,E,A,W,O[11],643717713,14),W=K(W,H,E,A,O[0],3921069994,20),A=K(A,W,H,E,O[5],3593408605,5),E=K(E,A,W,H,O[10],38016083,9),H=K(H,E,A,W,O[15],3634488961,14),W=K(W,H,E,A,O[4],3889429448,20),A=K(A,W,H,E,O[9],568446438,5),E=K(E,A,W,H,O[14],3275163606,9),H=K(H,E,A,W,O[3],4107603335,14),W=K(W,H,E,A,O[8],1163531501,20),A=K(A,W,H,E,O[13],2850285829,5),E=K(E,A,W,H,O[2],4243563512,9),H=K(H,E,A,W,O[7],1735328473,14),W=K(W,H,E,A,O[12],2368359562,20),A=I(A,W,H,E,O[5],4294588738,4),E=I(E,A,W,H,O[8],2272392833,11),H=I(H,E,A,W,O[11],1839030562,16),W=I(W,H,E,A,O[14],4259657740,23),A=I(A,W,H,E,O[1],2763975236,4),E=I(E,A,W,H,O[4],1272893353,11),H=I(H,E,A,W,O[7],4139469664,16),W=I(W,H,E,A,O[10],3200236656,23),A=I(A,W,H,E,O[13],681279174,4),E=I(E,A,W,H,O[0],3936430074,11),H=I(H,E,A,W,O[3],3572445317,16),W=I(W,H,E,A,O[6],76029189,23),A=I(A,W,H,E,O[9],3654602809,4),E=I(E,A,W,H,O[12],3873151461,11),H=I(H,E,A,W,O[15],530742520,16),W=I(W,H,E,A,O[2],3299628645,23),A=J(A,W,H,E,O[0],4096336452,6),E=J(E,A,W,H,O[7],1126891415,10),H=J(H,E,A,W,O[14],2878612391,15),W=J(W,H,E,A,O[5],4237533241,21),A=J(A,W,H,E,O[12],1700485571,6),E=J(E,A,W,H,O[3],2399980690,10),H=J(H,E,A,W,O[10],4293915773,15),W=J(W,H,E,A,O[1],2240044497,21),A=J(A,W,H,E,O[8],1873313359,6),E=J(E,A,W,H,O[15],4264355552,10),H=J(H,E,A,W,O[6],2734768916,15),W=J(W,H,E,A,O[13],1309151649,21),A=J(A,W,H,E,O[4],4149444226,6),E=J(E,A,W,H,O[11],3174756917,10),H=J(H,E,A,W,O[2],718787259,15),W=J(W,H,E,A,O[9],3951481745,21),this._a=this._a+A|0,this._b=this._b+W|0,this._c=this._c+H|0,this._d=this._d+E|0},V.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var O=Z.allocUnsafe(16);return O.writeInt32LE(this._a,0),O.writeInt32LE(this._b,4),O.writeInt32LE(this._c,8),O.writeInt32LE(this._d,12),O};function U(O,F){return O<<F|O>>>32-F}function X(O,F,A,W,H,E,T){return U(O+(F&A|~F&W)+H+E|0,T)+F|0}function K(O,F,A,W,H,E,T){return U(O+(F&W|A&~W)+H+E|0,T)+F|0}function I(O,F,A,W,H,E,T){return U(O+(F^A^W)+H+E|0,T)+F|0}function J(O,F,A,W,H,E,T){return U(O+(A^(F|~W))+H+E|0,T)+F|0}$.exports=V}}),k$=P$({"node_modules/ripemd160/index.js"(bZ,$){var Q=L$("buffer").Buffer,Y=v$(),Z=q$(),G=new Array(16),V=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],U=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],X=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],K=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11],I=[0,1518500249,1859775393,2400959708,2840853838],J=[1352829926,1548603684,1836072691,2053994217,0];function O(){Z.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}Y(O,Z),O.prototype._update=function(){for(var D=G,C=0;C<16;++C)D[C]=this._block.readInt32LE(C*4);for(var L=this._a|0,R=this._b|0,P=this._c|0,z=this._d|0,M=this._e|0,S=this._a|0,v=this._b|0,q=this._c|0,j=this._d|0,k=this._e|0,g=0;g<80;g+=1){var N,x;g<16?(N=A(L,R,P,z,M,D[V[g]],I[0],X[g]),x=T(S,v,q,j,k,D[U[g]],J[0],K[g])):g<32?(N=W(L,R,P,z,M,D[V[g]],I[1],X[g]),x=E(S,v,q,j,k,D[U[g]],J[1],K[g])):g<48?(N=H(L,R,P,z,M,D[V[g]],I[2],X[g]),x=H(S,v,q,j,k,D[U[g]],J[2],K[g])):g<64?(N=E(L,R,P,z,M,D[V[g]],I[3],X[g]),x=W(S,v,q,j,k,D[U[g]],J[3],K[g])):(N=T(L,R,P,z,M,D[V[g]],I[4],X[g]),x=A(S,v,q,j,k,D[U[g]],J[4],K[g])),L=M,M=z,z=F(P,10),P=R,R=N,S=k,k=j,j=F(q,10),q=v,v=x}var _=this._b+P+j|0;this._b=this._c+z+k|0,this._c=this._d+M+S|0,this._d=this._e+L+v|0,this._e=this._a+R+q|0,this._a=_},O.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var D=Q.alloc?Q.alloc(20):new Q(20);return D.writeInt32LE(this._a,0),D.writeInt32LE(this._b,4),D.writeInt32LE(this._c,8),D.writeInt32LE(this._d,12),D.writeInt32LE(this._e,16),D};function F(D,C){return D<<C|D>>>32-C}function A(D,C,L,R,P,z,M,S){return F(D+(C^L^R)+z+M|0,S)+P|0}function W(D,C,L,R,P,z,M,S){return F(D+(C&L|~C&R)+z+M|0,S)+P|0}function H(D,C,L,R,P,z,M,S){return F(D+((C|~L)^R)+z+M|0,S)+P|0}function E(D,C,L,R,P,z,M,S){return F(D+(C&R|L&~R)+z+M|0,S)+P|0}function T(D,C,L,R,P,z,M,S){return F(D+(C^(L|~R))+z+M|0,S)+P|0}$.exports=O}}),g$=P$({"node_modules/sha.js/hash.js"(bZ,$){var Q=M$().Buffer;function Y(Z,G){this._block=Q.alloc(Z),this._finalSize=G,this._blockSize=Z,this._len=0}Y.prototype.update=function(Z,G){typeof Z=="string"&&(G=G||"utf8",Z=Q.from(Z,G));for(var V=this._block,U=this._blockSize,X=Z.length,K=this._len,I=0;I<X;){for(var J=K%U,O=Math.min(X-I,U-J),F=0;F<O;F++)V[J+F]=Z[I+F];K+=O,I+=O,K%U===0&&this._update(V)}return this._len+=X,this},Y.prototype.digest=function(Z){var G=this._len%this._blockSize;this._block[G]=128,this._block.fill(0,G+1),G>=this._finalSize&&(this._update(this._block),this._block.fill(0));var V=this._len*8;if(V<=4294967295)this._block.writeUInt32BE(V,this._blockSize-4);else{var U=(V&4294967295)>>>0,X=(V-U)/4294967296;this._block.writeUInt32BE(X,this._blockSize-8),this._block.writeUInt32BE(U,this._blockSize-4)}this._update(this._block);var K=this._hash();return Z?K.toString(Z):K},Y.prototype._update=function(){throw new Error("_update must be implemented by subclass")},$.exports=Y}}),N$=P$({"node_modules/sha.js/sha.js"(bZ,$){var Q=v$(),Y=g$(),Z=M$().Buffer,G=[1518500249,1859775393,-1894007588,-899497514],V=new Array(80);function U(){this.init(),this._w=V,Y.call(this,64,56)}Q(U,Y),U.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function X(J){return J<<5|J>>>27}function K(J){return J<<30|J>>>2}function I(J,O,F,A){return J===0?O&F|~O&A:J===2?O&F|O&A|F&A:O^F^A}U.prototype._update=function(J){for(var O=this._w,F=this._a|0,A=this._b|0,W=this._c|0,H=this._d|0,E=this._e|0,T=0;T<16;++T)O[T]=J.readInt32BE(T*4);for(;T<80;++T)O[T]=O[T-3]^O[T-8]^O[T-14]^O[T-16];for(var D=0;D<80;++D){var C=~~(D/20),L=X(F)+I(C,A,W,H)+E+O[D]+G[C]|0;E=H,H=W,W=K(A),A=F,F=L}this._a=F+this._a|0,this._b=A+this._b|0,this._c=W+this._c|0,this._d=H+this._d|0,this._e=E+this._e|0},U.prototype._hash=function(){var J=Z.allocUnsafe(20);return J.writeInt32BE(this._a|0,0),J.writeInt32BE(this._b|0,4),J.writeInt32BE(this._c|0,8),J.writeInt32BE(this._d|0,12),J.writeInt32BE(this._e|0,16),J},$.exports=U}}),x$=P$({"node_modules/sha.js/sha1.js"(bZ,$){var Q=v$(),Y=g$(),Z=M$().Buffer,G=[1518500249,1859775393,-1894007588,-899497514],V=new Array(80);function U(){this.init(),this._w=V,Y.call(this,64,56)}Q(U,Y),U.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function X(O){return O<<1|O>>>31}function K(O){return O<<5|O>>>27}function I(O){return O<<30|O>>>2}function J(O,F,A,W){return O===0?F&A|~F&W:O===2?F&A|F&W|A&W:F^A^W}U.prototype._update=function(O){for(var F=this._w,A=this._a|0,W=this._b|0,H=this._c|0,E=this._d|0,T=this._e|0,D=0;D<16;++D)F[D]=O.readInt32BE(D*4);for(;D<80;++D)F[D]=X(F[D-3]^F[D-8]^F[D-14]^F[D-16]);for(var C=0;C<80;++C){var L=~~(C/20),R=K(A)+J(L,W,H,E)+T+F[C]+G[L]|0;T=E,E=H,H=I(W),W=A,A=R}this._a=A+this._a|0,this._b=W+this._b|0,this._c=H+this._c|0,this._d=E+this._d|0,this._e=T+this._e|0},U.prototype._hash=function(){var O=Z.allocUnsafe(20);return O.writeInt32BE(this._a|0,0),O.writeInt32BE(this._b|0,4),O.writeInt32BE(this._c|0,8),O.writeInt32BE(this._d|0,12),O.writeInt32BE(this._e|0,16),O},$.exports=U}}),_$=P$({"node_modules/sha.js/sha256.js"(bZ,$){var Q=v$(),Y=g$(),Z=M$().Buffer,G=[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],V=new Array(64);function U(){this.init(),this._w=V,Y.call(this,64,56)}Q(U,Y),U.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 X(A,W,H){return H^A&(W^H)}function K(A,W,H){return A&W|H&(A|W)}function I(A){return(A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10)}function J(A){return(A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7)}function O(A){return(A>>>7|A<<25)^(A>>>18|A<<14)^A>>>3}function F(A){return(A>>>17|A<<15)^(A>>>19|A<<13)^A>>>10}U.prototype._update=function(A){for(var W=this._w,H=this._a|0,E=this._b|0,T=this._c|0,D=this._d|0,C=this._e|0,L=this._f|0,R=this._g|0,P=this._h|0,z=0;z<16;++z)W[z]=A.readInt32BE(z*4);for(;z<64;++z)W[z]=F(W[z-2])+W[z-7]+O(W[z-15])+W[z-16]|0;for(var M=0;M<64;++M){var S=P+J(C)+X(C,L,R)+G[M]+W[M]|0,v=I(H)+K(H,E,T)|0;P=R,R=L,L=C,C=D+S|0,D=T,T=E,E=H,H=S+v|0}this._a=H+this._a|0,this._b=E+this._b|0,this._c=T+this._c|0,this._d=D+this._d|0,this._e=C+this._e|0,this._f=L+this._f|0,this._g=R+this._g|0,this._h=P+this._h|0},U.prototype._hash=function(){var A=Z.allocUnsafe(32);return A.writeInt32BE(this._a,0),A.writeInt32BE(this._b,4),A.writeInt32BE(this._c,8),A.writeInt32BE(this._d,12),A.writeInt32BE(this._e,16),A.writeInt32BE(this._f,20),A.writeInt32BE(this._g,24),A.writeInt32BE(this._h,28),A},$.exports=U}}),B$=P$({"node_modules/sha.js/sha224.js"(bZ,$){var Q=v$(),Y=_$(),Z=g$(),G=M$().Buffer,V=new Array(64);function U(){this.init(),this._w=V,Z.call(this,64,56)}Q(U,Y),U.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},U.prototype._hash=function(){var X=G.allocUnsafe(28);return X.writeInt32BE(this._a,0),X.writeInt32BE(this._b,4),X.writeInt32BE(this._c,8),X.writeInt32BE(this._d,12),X.writeInt32BE(this._e,16),X.writeInt32BE(this._f,20),X.writeInt32BE(this._g,24),X},$.exports=U}}),y$=P$({"node_modules/sha.js/sha512.js"(bZ,$){var Q=v$(),Y=g$(),Z=M$().Buffer,G=[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],V=new Array(160);function U(){this.init(),this._w=V,Y.call(this,128,112)}Q(U,Y),U.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 X(E,T,D){return D^E&(T^D)}function K(E,T,D){return E&T|D&(E|T)}function I(E,T){return(E>>>28|T<<4)^(T>>>2|E<<30)^(T>>>7|E<<25)}function J(E,T){return(E>>>14|T<<18)^(E>>>18|T<<14)^(T>>>9|E<<23)}function O(E,T){return(E>>>1|T<<31)^(E>>>8|T<<24)^E>>>7}function F(E,T){return(E>>>1|T<<31)^(E>>>8|T<<24)^(E>>>7|T<<25)}function A(E,T){return(E>>>19|T<<13)^(T>>>29|E<<3)^E>>>6}function W(E,T){return(E>>>19|T<<13)^(T>>>29|E<<3)^(E>>>6|T<<26)}function H(E,T){return E>>>0<T>>>0?1:0}U.prototype._update=function(E){for(var T=this._w,D=this._ah|0,C=this._bh|0,L=this._ch|0,R=this._dh|0,P=this._eh|0,z=this._fh|0,M=this._gh|0,S=this._hh|0,v=this._al|0,q=this._bl|0,j=this._cl|0,k=this._dl|0,g=this._el|0,N=this._fl|0,x=this._gl|0,_=this._hl|0,B=0;B<32;B+=2)T[B]=E.readInt32BE(B*4),T[B+1]=E.readInt32BE(B*4+4);for(;B<160;B+=2){var y=T[B-30],w=T[B-30+1],f=O(y,w),p=F(w,y);y=T[B-4],w=T[B-4+1];var c=A(y,w),h=W(w,y),d=T[B-14],b=T[B-14+1],l=T[B-32],o=T[B-32+1],u=p+b|0,n=f+d+H(u,p)|0;u=u+h|0,n=n+c+H(u,h)|0,u=u+o|0,n=n+l+H(u,o)|0,T[B]=n,T[B+1]=u}for(var s=0;s<160;s+=2){n=T[s],u=T[s+1];var t=K(D,C,L),m=K(v,q,j),a=I(D,v),r=I(v,D),e=J(P,g),i=J(g,P),$0=G[s],Q0=G[s+1],Y0=X(P,z,M),Z0=X(g,N,x),G0=_+i|0,V0=S+e+H(G0,_)|0;G0=G0+Z0|0,V0=V0+Y0+H(G0,Z0)|0,G0=G0+Q0|0,V0=V0+$0+H(G0,Q0)|0,G0=G0+u|0,V0=V0+n+H(G0,u)|0;var U0=r+m|0,X0=a+t+H(U0,r)|0;S=M,_=x,M=z,x=N,z=P,N=g,g=k+G0|0,P=R+V0+H(g,k)|0,R=L,k=j,L=C,j=q,C=D,q=v,v=G0+U0|0,D=V0+X0+H(v,G0)|0}this._al=this._al+v|0,this._bl=this._bl+q|0,this._cl=this._cl+j|0,this._dl=this._dl+k|0,this._el=this._el+g|0,this._fl=this._fl+N|0,this._gl=this._gl+x|0,this._hl=this._hl+_|0,this._ah=this._ah+D+H(this._al,v)|0,this._bh=this._bh+C+H(this._bl,q)|0,this._ch=this._ch+L+H(this._cl,j)|0,this._dh=this._dh+R+H(this._dl,k)|0,this._eh=this._eh+P+H(this._el,g)|0,this._fh=this._fh+z+H(this._fl,N)|0,this._gh=this._gh+M+H(this._gl,x)|0,this._hh=this._hh+S+H(this._hl,_)|0},U.prototype._hash=function(){var E=Z.allocUnsafe(64);function T(D,C,L){E.writeInt32BE(D,L),E.writeInt32BE(C,L+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},$.exports=U}}),w$=P$({"node_modules/sha.js/sha384.js"(bZ,$){var Q=v$(),Y=y$(),Z=g$(),G=M$().Buffer,V=new Array(160);function U(){this.init(),this._w=V,Z.call(this,128,112)}Q(U,Y),U.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},U.prototype._hash=function(){var X=G.allocUnsafe(48);function K(I,J,O){X.writeInt32BE(I,O),X.writeInt32BE(J,O+4)}return K(this._ah,this._al,0),K(this._bh,this._bl,8),K(this._ch,this._cl,16),K(this._dh,this._dl,24),K(this._eh,this._el,32),K(this._fh,this._fl,40),X},$.exports=U}}),f$=P$({"node_modules/sha.js/index.js"(Q,$){var Q=$.exports=function(Y){Y=Y.toLowerCase();var Z=Q[Y];if(!Z)throw new Error(Y+" is not supported (we accept pull requests)");return new Z};Q.sha=N$(),Q.sha1=x$(),Q.sha224=B$(),Q.sha256=_$(),Q.sha384=w$(),Q.sha512=y$()}}),p$=import.meta.require("node:stream"),c$=P$({"node_modules/cipher-base/index.js"(bZ,$){var Q=M$().Buffer,Y=p$.Transform,Z=L$("string_decoder").StringDecoder,G=v$();function V(U){Y.call(this),this.hashMode=typeof U=="string",this.hashMode?this[U]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}G(V,Y),V.prototype.update=function(U,X,K){typeof U=="string"&&(U=Q.from(U,X));var I=this._update(U);return this.hashMode?this:(K&&(I=this._toString(I,K)),I)},V.prototype.setAutoPadding=function(){},V.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},V.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},V.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},V.prototype._transform=function(U,X,K){var I;try{this.hashMode?this._update(U):this.push(this._update(U))}catch(J){I=J}finally{K(I)}},V.prototype._flush=function(U){var X;try{this.push(this.__final())}catch(K){X=K}U(X)},V.prototype._finalOrDigest=function(U){var X=this.__final()||Q.alloc(0);return U&&(X=this._toString(X,U,!0)),X},V.prototype._toString=function(U,X,K){if(this._decoder||(this._decoder=new Z(X),this._encoding=X),this._encoding!==X)throw new Error("can't switch encodings");var I=this._decoder.write(U);return K&&(I+=this._decoder.end()),I},$.exports=V}}),h$=P$({"node_modules/create-hash/browser.js"(bZ,$){const{Transform:Q}=p$,Y=function V(U,X){this._options=X,this._hasher=new lY(U,X),this._finalized=!1};Y.prototype=Object.create(Q.prototype),Y.prototype.update=function V(U,X){return this._checkFinalized(),this._hasher.update(U,X),this},Y.prototype.digest=function V(U,X){return this._checkFinalized(),this._finalized=!0,this._hasher.digest(U,X)},Y.prototype._checkFinalized=function V(){if(this._finalized){var U=new Error("Digest already called");throw U.code="ERR_CRYPTO_HASH_FINALIZED",U}},Y.prototype.copy=function V(){const U=Object.create(Y.prototype);return U._options=this._options,U._hasher=this._hasher.copy(),U._finalized=this._finalized,U};const Z={__proto__:Q.prototype,...Y.prototype,_transform(V,U,X){this.update(V,U),X&&X()},_flush(V){this.push(this.digest()),V()}},G=["_events","_eventsCount","_final","_maxListeners","_maxListeners","_read","_undestroy","_writableState","_write","_writev","addListener","asIndexedPairs","closed","compose","constructor","cork","destroy","destroyed","drop","emit","end","errored","eventNames","every","filter","find","flatMap","forEach","getMaxListeners","hasOwnProperty","isPaused","isPrototypeOf","iterator","listenerCount","listeners","map","off","on","once","pause","pipe","prependListener","prependOnceListener","propertyIsEnumerable","push","rawListeners","read","readable","readableAborted","readableBuffer","readableDidRead","readableEncoding","readableEnded","readableFlowing","readableHighWaterMark","readableLength","readableObjectMode","reduce","removeAllListeners","removeListener","resume","setDefaultEncoding","setEncoding","setMaxListeners","some","take","toArray","toLocaleString","toString","uncork","unpipe","unshift","valueOf","wrap","writable","writableBuffer","writableCorked","writableEnded","writableFinished","writableHighWaterMark","writableLength","writableNeedDrain","writableObjectMode","write"];for(let V of G)Object.defineProperty(Y.prototype,V,{get(){return Object.setPrototypeOf(this,Z),Q.call(this,this._options),this[V]},enumerable:!1,configurable:!0});$.exports=function V(U){return new Y(U)},$.exports.createHash=$.exports,$.exports.Hash=Y}}),d$=P$({"node_modules/create-hmac/legacy.js"(bZ,$){var Q=v$(),Y=M$().Buffer,Z=c$(),G=Y.alloc(128),V=64;function U(X,K){Z.call(this,"digest"),typeof K=="string"&&(K=Y.from(K)),this._alg=X,this._key=K,K.length>V?K=X(K):K.length<V&&(K=Y.concat([K,G],V));for(var I=this._ipad=Y.allocUnsafe(V),J=this._opad=Y.allocUnsafe(V),O=0;O<V;O++)I[O]=K[O]^54,J[O]=K[O]^92;this._hash=[I]}Q(U,Z),U.prototype._update=function(X){this._hash.push(X)},U.prototype._final=function(){var X=this._alg(Y.concat(this._hash));return this._alg(Y.concat([this._opad,X]))},$.exports=U}}),b$=P$({"node_modules/create-hash/md5.js"(bZ,$){var Q=j$();$.exports=function(Y){return new Q().update(Y).digest()}}}),l$=P$({"node_modules/create-hmac/browser.js"(bZ,$){var Q=v$(),Y=d$(),Z=c$(),G=M$().Buffer,V=b$(),U=k$(),X=f$(),K=G.alloc(128);function I(J,O){Z.call(this,"digest"),typeof O=="string"&&(O=G.from(O));var F=J==="sha512"||J==="sha384"?128:64;if(this._alg=J,this._key=O,O.length>F){var A=J==="rmd160"?new U:X(J);O=A.update(O).digest()}else O.length<F&&(O=G.concat([O,K],F));for(var W=this._ipad=G.allocUnsafe(F),H=this._opad=G.allocUnsafe(F),E=0;E<F;E++)W[E]=O[E]^54,H[E]=O[E]^92;this._hash=J==="rmd160"?new U:X(J),this._hash.update(W)}Q(I,Z),I.prototype._update=function(J){this._hash.update(J)},I.prototype._final=function(){var J=this._hash.digest(),O=this._alg==="rmd160"?new U:X(this._alg);return O.update(this._opad).update(J).digest()},$.exports=function(J,O){return J=J.toLowerCase(),J==="rmd160"||J==="ripemd160"?new I("rmd160",O):J==="md5"?new Y(V,O):new I(J,O)}}}),o$=P$({"node_modules/browserify-sign/browser/algorithms.json"(bZ,$){$.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}}}),u$=P$({"node_modules/browserify-sign/algos.js"(bZ,$){$.exports=o$()}}),n$=P$({"node_modules/pbkdf2/lib/precondition.js"(bZ,$){var Q=Math.pow(2,30)-1;$.exports=function(Y,Z){if(typeof Y!="number")throw new TypeError("Iterations not a number");if(Y<0)throw new TypeError("Bad iterations");if(typeof Z!="number")throw new TypeError("Key length not a number");if(Z<0||Z>Q||Z!==Z)throw new TypeError("Bad key length")}}}),s$=P$({"node_modules/pbkdf2/lib/default-encoding.js"(bZ,$){var Q;global.process&&global.process.browser?Q="utf-8":global.process&&global.process.version?(Y=parseInt(process.version.split(".")[0].slice(1),10),Q=Y>=6?"utf-8":"binary"):Q="utf-8";var Y;$.exports=Q}}),t$=P$({"node_modules/pbkdf2/lib/to-buffer.js"(bZ,$){var Q=M$().Buffer;$.exports=function(Y,Z,G){if(Q.isBuffer(Y))return Y;if(typeof Y=="string")return Q.from(Y,Z);if(ArrayBuffer.isView(Y))return Q.from(Y.buffer);throw new TypeError(G+" must be a string, a Buffer, a typed array or a DataView")}}}),m$=P$({"node_modules/pbkdf2/lib/sync-browser.js"(bZ,$){var Q=b$(),Y=k$(),Z=f$(),G=M$().Buffer,V=n$(),U=s$(),X=t$(),K=G.alloc(128),I={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function J(A,W,H){var E=O(A),T=A==="sha512"||A==="sha384"?128:64;W.length>T?W=E(W):W.length<T&&(W=G.concat([W,K],T));for(var D=G.allocUnsafe(T+I[A]),C=G.allocUnsafe(T+I[A]),L=0;L<T;L++)D[L]=W[L]^54,C[L]=W[L]^92;var R=G.allocUnsafe(T+H+4);D.copy(R,0,0,T),this.ipad1=R,this.ipad2=D,this.opad=C,this.alg=A,this.blocksize=T,this.hash=E,this.size=I[A]}J.prototype.run=function(A,W){A.copy(W,this.blocksize);var H=this.hash(W);return H.copy(this.opad,this.blocksize),this.hash(this.opad)};function O(A){function W(E){return Z(A).update(E).digest()}function H(E){return new Y().update(E).digest()}return A==="rmd160"||A==="ripemd160"?H:A==="md5"?Q:W}function F(A,W,H,E,T){V(H,E),A=X(A,U,"Password"),W=X(W,U,"Salt"),T=T||"sha1";var D=new J(T,A,W.length),C=G.allocUnsafe(E),L=G.allocUnsafe(W.length+4);W.copy(L,0,0,W.length);for(var R=0,P=I[T],z=Math.ceil(E/P),M=1;M<=z;M++){L.writeUInt32BE(M,W.length);for(var S=D.run(L,D.ipad1),v=S,q=1;q<H;q++){v=D.run(v,D.ipad2);for(var j=0;j<P;j++)S[j]^=v[j]}S.copy(C,R),R+=P}return C}$.exports=F}}),a$=P$({"node_modules/pbkdf2/lib/async.js"(bZ,$){var Q=M$().Buffer,Y=n$(),Z=s$(),G=m$(),V=t$(),U,X=R$.subtle,K={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},I=[];function J(H){if(global.process&&!global.process.browser||!X||!X.importKey||!X.deriveBits)return Promise.resolve(!1);if(I[H]!==void 0)return I[H];U=U||Q.alloc(8);var E=A(U,U,10,128,H).then(function(){return!0}).catch(function(){return!1});return I[H]=E,E}var O;function F(){return O||(global.process&&global.process.nextTick?O=global.process.nextTick:global.queueMicrotask?O=global.queueMicrotask:global.setImmediate?O=global.setImmediate:O=global.setTimeout,O)}function A(H,E,T,D,C){return X.importKey("raw",H,{name:"PBKDF2"},!1,["deriveBits"]).then(function(L){return X.deriveBits({name:"PBKDF2",salt:E,iterations:T,hash:{name:C}},L,D<<3)}).then(function(L){return Q.from(L)})}function W(H,E){H.then(function(T){F()(function(){E(null,T)})},function(T){F()(function(){E(T)})})}$.exports=function(H,E,T,D,C,L){typeof C=="function"&&(L=C,C=void 0),C=C||"sha1";var R=K[C.toLowerCase()];if(!R||typeof global.Promise!="function"){F()(function(){var P;try{P=G(H,E,T,D,C)}catch(z){return L(z)}L(null,P)});return}if(Y(T,D),H=V(H,Z,"Password"),E=V(E,Z,"Salt"),typeof L!="function")throw new Error("No callback provided to pbkdf2");W(J(R).then(function(P){return P?A(H,E,T,D,R):G(H,E,T,D,C)}),L)}}}),r$=P$({"node_modules/pbkdf2/browser.js"(bZ){bZ.pbkdf2=a$(),bZ.pbkdf2Sync=m$()}}),e$=P$({"node_modules/des.js/lib/des/utils.js"(bZ){bZ.readUInt32BE=function(Z,G){var V=Z[0+G]<<24|Z[1+G]<<16|Z[2+G]<<8|Z[3+G];return V>>>0},bZ.writeUInt32BE=function(Z,G,V){Z[0+V]=G>>>24,Z[1+V]=G>>>16&255,Z[2+V]=G>>>8&255,Z[3+V]=G&255},bZ.ip=function(Z,G,V,U){for(var X=0,K=0,I=6;I>=0;I-=2){for(var J=0;J<=24;J+=8)X<<=1,X|=G>>>J+I&1;for(var J=0;J<=24;J+=8)X<<=1,X|=Z>>>J+I&1}for(var I=6;I>=0;I-=2){for(var J=1;J<=25;J+=8)K<<=1,K|=G>>>J+I&1;for(var J=1;J<=25;J+=8)K<<=1,K|=Z>>>J+I&1}V[U+0]=X>>>0,V[U+1]=K>>>0},bZ.rip=function(Z,G,V,U){for(var X=0,K=0,I=0;I<4;I++)for(var J=24;J>=0;J-=8)X<<=1,X|=G>>>J+I&1,X<<=1,X|=Z>>>J+I&1;for(var I=4;I<8;I++)for(var J=24;J>=0;J-=8)K<<=1,K|=G>>>J+I&1,K<<=1,K|=Z>>>J+I&1;V[U+0]=X>>>0,V[U+1]=K>>>0},bZ.pc1=function(Z,G,V,U){for(var X=0,K=0,I=7;I>=5;I--){for(var J=0;J<=24;J+=8)X<<=1,X|=G>>J+I&1;for(var J=0;J<=24;J+=8)X<<=1,X|=Z>>J+I&1}for(var J=0;J<=24;J+=8)X<<=1,X|=G>>J+I&1;for(var I=1;I<=3;I++){for(var J=0;J<=24;J+=8)K<<=1,K|=G>>J+I&1;for(var J=0;J<=24;J+=8)K<<=1,K|=Z>>J+I&1}for(var J=0;J<=24;J+=8)K<<=1,K|=Z>>J+I&1;V[U+0]=X>>>0,V[U+1]=K>>>0},bZ.r28shl=function(Z,G){return Z<<G&268435455|Z>>>28-G};var $=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];bZ.pc2=function(Z,G,V,U){for(var X=0,K=0,I=$.length>>>1,J=0;J<I;J++)X<<=1,X|=Z>>>$[J]&1;for(var J=I;J<$.length;J++)K<<=1,K|=G>>>$[J]&1;V[U+0]=X>>>0,V[U+1]=K>>>0},bZ.expand=function(Z,G,V){var U=0,X=0;U=(Z&1)<<5|Z>>>27;for(var K=23;K>=15;K-=4)U<<=6,U|=Z>>>K&63;for(var K=11;K>=3;K-=4)X|=Z>>>K&63,X<<=6;X|=(Z&31)<<1|Z>>>31,G[V+0]=U>>>0,G[V+1]=X>>>0};var Q=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];bZ.substitute=function(Z,G){for(var V=0,U=0;U<4;U++){var X=Z>>>18-U*6&63,K=Q[U*64+X];V<<=4,V|=K}for(var U=0;U<4;U++){var X=G>>>18-U*6&63,K=Q[256+U*64+X];V<<=4,V|=K}return V>>>0};var Y=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];bZ.permute=function(Z){for(var G=0,V=0;V<Y.length;V++)G<<=1,G|=Z>>>Y[V]&1;return G>>>0},bZ.padSplit=function(Z,G,V){for(var U=Z.toString(2);U.length<G;)U="0"+U;for(var X=[],K=0;K<G;K+=V)X.push(U.slice(K,K+V));return X.join(" ")}}}),i$=P$({"node_modules/minimalistic-assert/index.js"(bZ,$){$.exports=Q;function Q(Y,Z){if(!Y)throw new Error(Z||"Assertion failed")}Q.equal=function(Y,Z,G){if(Y!=Z)throw new Error(G||"Assertion failed: "+Y+" != "+Z)}}}),$Q=P$({"node_modules/des.js/lib/des/cipher.js"(bZ,$){var Q=i$();function Y(Z){this.options=Z,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}$.exports=Y,Y.prototype._init=function(){},Y.prototype.update=function(Z){return Z.length===0?[]:this.type==="decrypt"?this._updateDecrypt(Z):this._updateEncrypt(Z)},Y.prototype._buffer=function(Z,G){for(var V=Math.min(this.buffer.length-this.bufferOff,Z.length-G),U=0;U<V;U++)this.buffer[this.bufferOff+U]=Z[G+U];return this.bufferOff+=V,V},Y.prototype._flushBuffer=function(Z,G){return this._update(this.buffer,0,Z,G),this.bufferOff=0,this.blockSize},Y.prototype._updateEncrypt=function(Z){var G=0,V=0,U=(this.bufferOff+Z.length)/this.blockSize|0,X=new Array(U*this.blockSize);this.bufferOff!==0&&(G+=this._buffer(Z,G),this.bufferOff===this.buffer.length&&(V+=this._flushBuffer(X,V)));for(var K=Z.length-(Z.length-G)%this.blockSize;G<K;G+=this.blockSize)this._update(Z,G,X,V),V+=this.blockSize;for(;G<Z.length;G++,this.bufferOff++)this.buffer[this.bufferOff]=Z[G];return X},Y.prototype._updateDecrypt=function(Z){for(var G=0,V=0,U=Math.ceil((this.bufferOff+Z.length)/this.blockSize)-1,X=new Array(U*this.blockSize);U>0;U--)G+=this._buffer(Z,G),V+=this._flushBuffer(X,V);return G+=this._buffer(Z,G),X},Y.prototype.final=function(Z){var G;Z&&(G=this.update(Z));var V;return this.type==="encrypt"?V=this._finalEncrypt():V=this._finalDecrypt(),G?G.concat(V):V},Y.prototype._pad=function(Z,G){if(G===0)return!1;for(;G<Z.length;)Z[G++]=0;return!0},Y.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var Z=new Array(this.blockSize);return this._update(this.buffer,0,Z,0),Z},Y.prototype._unpad=function(Z){return Z},Y.prototype._finalDecrypt=function(){Q.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var Z=new Array(this.blockSize);return this._flushBuffer(Z,0),this._unpad(Z)}}}),QQ=P$({"node_modules/des.js/lib/des/des.js"(bZ,$){var Q=i$(),Y=v$(),Z=e$(),G=$Q();function V(){this.tmp=new Array(2),this.keys=null}function U(K){G.call(this,K);var I=new V;this._desState=I,this.deriveKeys(I,K.key)}Y(U,G),$.exports=U,U.create=function(K){return new U(K)};var X=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];U.prototype.deriveKeys=function(K,I){K.keys=new Array(32),Q.equal(I.length,this.blockSize,"Invalid key length");var J=Z.readUInt32BE(I,0),O=Z.readUInt32BE(I,4);Z.pc1(J,O,K.tmp,0),J=K.tmp[0],O=K.tmp[1];for(var F=0;F<K.keys.length;F+=2){var A=X[F>>>1];J=Z.r28shl(J,A),O=Z.r28shl(O,A),Z.pc2(J,O,K.keys,F)}},U.prototype._update=function(K,I,J,O){var F=this._desState,A=Z.readUInt32BE(K,I),W=Z.readUInt32BE(K,I+4);Z.ip(A,W,F.tmp,0),A=F.tmp[0],W=F.tmp[1],this.type==="encrypt"?this._encrypt(F,A,W,F.tmp,0):this._decrypt(F,A,W,F.tmp,0),A=F.tmp[0],W=F.tmp[1],Z.writeUInt32BE(J,A,O),Z.writeUInt32BE(J,W,O+4)},U.prototype._pad=function(K,I){for(var J=K.length-I,O=I;O<K.length;O++)K[O]=J;return!0},U.prototype._unpad=function(K){for(var I=K[K.length-1],J=K.length-I;J<K.length;J++)Q.equal(K[J],I);return K.slice(0,K.length-I)},U.prototype._encrypt=function(K,I,J,O,F){for(var A=I,W=J,H=0;H<K.keys.length;H+=2){var E=K.keys[H],T=K.keys[H+1];Z.expand(W,K.tmp,0),E^=K.tmp[0],T^=K.tmp[1];var D=Z.substitute(E,T),C=Z.permute(D),L=W;W=(A^C)>>>0,A=L}Z.rip(W,A,O,F)},U.prototype._decrypt=function(K,I,J,O,F){for(var A=J,W=I,H=K.keys.length-2;H>=0;H-=2){var E=K.keys[H],T=K.keys[H+1];Z.expand(A,K.tmp,0),E^=K.tmp[0],T^=K.tmp[1];var D=Z.substitute(E,T),C=Z.permute(D),L=A;A=(W^C)>>>0,W=L}Z.rip(A,W,O,F)}}}),YQ=P$({"node_modules/des.js/lib/des/cbc.js"(bZ){var $=i$(),Q=v$(),Y={};function Z(V){$.equal(V.length,8,"Invalid IV length"),this.iv=new Array(8);for(var U=0;U<this.iv.length;U++)this.iv[U]=V[U]}function G(V){function U(J){V.call(this,J),this._cbcInit()}Q(U,V);for(var X=Object.keys(Y),K=0;K<X.length;K++){var I=X[K];U.prototype[I]=Y[I]}return U.create=function(J){return new U(J)},U}bZ.instantiate=G,Y._cbcInit=function(){var V=new Z(this.options.iv);this._cbcState=V},Y._update=function(V,U,X,K){var I=this._cbcState,J=this.constructor.super_.prototype,O=I.iv;if(this.type==="encrypt"){for(var F=0;F<this.blockSize;F++)O[F]^=V[U+F];J._update.call(this,O,0,X,K);for(var F=0;F<this.blockSize;F++)O[F]=X[K+F]}else{J._update.call(this,V,U,X,K);for(var F=0;F<this.blockSize;F++)X[K+F]^=O[F];for(var F=0;F<this.blockSize;F++)O[F]=V[U+F]}}}}),ZQ=P$({"node_modules/des.js/lib/des/ede.js"(bZ,$){var Q=i$(),Y=v$(),Z=$Q(),G=QQ();function V(X,K){Q.equal(K.length,24,"Invalid key length");var I=K.slice(0,8),J=K.slice(8,16),O=K.slice(16,24);X==="encrypt"?this.ciphers=[G.create({type:"encrypt",key:I}),G.create({type:"decrypt",key:J}),G.create({type:"encrypt",key:O})]:this.ciphers=[G.create({type:"decrypt",key:O}),G.create({type:"encrypt",key:J}),G.create({type:"decrypt",key:I})]}function U(X){Z.call(this,X);var K=new V(this.type,this.options.key);this._edeState=K}Y(U,Z),$.exports=U,U.create=function(X){return new U(X)},U.prototype._update=function(X,K,I,J){var O=this._edeState;O.ciphers[0]._update(X,K,I,J),O.ciphers[1]._update(I,J,I,J),O.ciphers[2]._update(I,J,I,J)},U.prototype._pad=G.prototype._pad,U.prototype._unpad=G.prototype._unpad}}),GQ=P$({"node_modules/des.js/lib/des.js"(bZ){bZ.utils=e$(),bZ.Cipher=$Q(),bZ.DES=QQ(),bZ.CBC=YQ(),bZ.EDE=ZQ()}}),VQ=P$({"node_modules/browserify-des/index.js"(bZ,$){var Q=c$(),Y=GQ(),Z=v$(),G=M$().Buffer,V={"des-ede3-cbc":Y.CBC.instantiate(Y.EDE),"des-ede3":Y.EDE,"des-ede-cbc":Y.CBC.instantiate(Y.EDE),"des-ede":Y.EDE,"des-cbc":Y.CBC.instantiate(Y.DES),"des-ecb":Y.DES};V.des=V["des-cbc"],V.des3=V["des-ede3-cbc"],$.exports=U,Z(U,Q);function U(X){Q.call(this);var K=X.mode.toLowerCase(),I=V[K],J;X.decrypt?J="decrypt":J="encrypt";var O=X.key;G.isBuffer(O)||(O=G.from(O)),(K==="des-ede"||K==="des-ede-cbc")&&(O=G.concat([O,O.slice(0,8)]));var F=X.iv;G.isBuffer(F)||(F=G.from(F)),this._des=I.create({key:O,iv:F,type:J})}U.prototype._update=function(X){return G.from(this._des.update(X))},U.prototype._final=function(){return G.from(this._des.final())}}}),UQ=P$({"node_modules/browserify-aes/modes/ecb.js"(bZ){bZ.encrypt=function($,Q){return $._cipher.encryptBlock(Q)},bZ.decrypt=function($,Q){return $._cipher.decryptBlock(Q)}}}),XQ=P$({"node_modules/buffer-xor/index.js"(bZ,$){$.exports=function(Q,Y){for(var Z=Math.min(Q.length,Y.length),G=new Buffer(Z),V=0;V<Z;++V)G[V]=Q[V]^Y[V];return G}}}),KQ=P$({"node_modules/browserify-aes/modes/cbc.js"(bZ){var $=XQ();bZ.encrypt=function(Q,Y){var Z=$(Y,Q._prev);return Q._prev=Q._cipher.encryptBlock(Z),Q._prev},bZ.decrypt=function(Q,Y){var Z=Q._prev;Q._prev=Y;var G=Q._cipher.decryptBlock(Y);return $(G,Z)}}}),IQ=P$({"node_modules/browserify-aes/modes/cfb.js"(bZ){var $=M$().Buffer,Q=XQ();function Y(Z,G,V){var U=G.length,X=Q(G,Z._cache);return Z._cache=Z._cache.slice(U),Z._prev=$.concat([Z._prev,V?G:X]),X}bZ.encrypt=function(Z,G,V){for(var U=$.allocUnsafe(0),X;G.length;)if(Z._cache.length===0&&(Z._cache=Z._cipher.encryptBlock(Z._prev),Z._prev=$.allocUnsafe(0)),Z._cache.length<=G.length)X=Z._cache.length,U=$.concat([U,Y(Z,G.slice(0,X),V)]),G=G.slice(X);else{U=$.concat([U,Y(Z,G,V)]);break}return U}}}),JQ=P$({"node_modules/browserify-aes/modes/cfb8.js"(bZ){var $=M$().Buffer;function Q(Y,Z,G){var V=Y._cipher.encryptBlock(Y._prev),U=V[0]^Z;return Y._prev=$.concat([Y._prev.slice(1),$.from([G?Z:U])]),U}bZ.encrypt=function(Y,Z,G){for(var V=Z.length,U=$.allocUnsafe(V),X=-1;++X<V;)U[X]=Q(Y,Z[X],G);return U}}}),OQ=P$({"node_modules/browserify-aes/modes/cfb1.js"(bZ){var $=M$().Buffer;function Q(Z,G,V){for(var U,X=-1,K=8,I=0,J,O;++X<K;)U=Z._cipher.encryptBlock(Z._prev),J=G&1<<7-X?128:0,O=U[0]^J,I+=(O&128)>>X%8,Z._prev=Y(Z._prev,V?J:O);return I}function Y(Z,G){var V=Z.length,U=-1,X=$.allocUnsafe(Z.length);for(Z=$.concat([Z,$.from([G])]);++U<V;)X[U]=Z[U]<<1|Z[U+1]>>7;return X}bZ.encrypt=function(Z,G,V){for(var U=G.length,X=$.allocUnsafe(U),K=-1;++K<U;)X[K]=Q(Z,G[K],V);return X}}}),FQ=P$({"node_modules/browserify-aes/modes/ofb.js"(bZ){var $=XQ();function Q(Y){return Y._prev=Y._cipher.encryptBlock(Y._prev),Y._prev}bZ.encrypt=function(Y,Z){for(;Y._cache.length<Z.length;)Y._cache=Buffer.concat([Y._cache,Q(Y)]);var G=Y._cache.slice(0,Z.length);return Y._cache=Y._cache.slice(Z.length),$(Z,G)}}}),AQ=P$({"node_modules/browserify-aes/incr32.js"(bZ,$){function Q(Y){for(var Z=Y.length,G;Z--;)if(G=Y.readUInt8(Z),G===255)Y.writeUInt8(0,Z);else{G++,Y.writeUInt8(G,Z);break}}$.exports=Q}}),F$=P$({"node_modules/browserify-aes/modes/ctr.js"(bZ){var $=XQ(),Q=M$().Buffer,Y=AQ();function Z(V){var U=V._cipher.encryptBlockRaw(V._prev);return Y(V._prev),U}var G=16;bZ.encrypt=function(V,U){var X=Math.ceil(U.length/G),K=V._cache.length;V._cache=Q.concat([V._cache,Q.allocUnsafe(X*G)]);for(var I=0;I<X;I++){var J=Z(V),O=K+I*G;V._cache.writeUInt32BE(J[0],O+0),V._cache.writeUInt32BE(J[1],O+4),V._cache.writeUInt32BE(J[2],O+8),V._cache.writeUInt32BE(J[3],O+12)}var F=V._cache.slice(0,U.length);return V._cache=V._cache.slice(U.length),$(U,F)}}}),WQ=P$({"node_modules/browserify-aes/modes/list.json"(bZ,$){$.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}}}),HQ=P$({"node_modules/browserify-aes/modes/index.js"(bZ,$){var Q={ECB:UQ(),CBC:KQ(),CFB:IQ(),CFB8:JQ(),CFB1:OQ(),OFB:FQ(),CTR:F$(),GCM:F$()},Y=WQ();for(Z in Y)Y[Z].module=Q[Y[Z].mode];var Z;$.exports=Y}}),EQ=P$({"node_modules/browserify-aes/aes.js"(bZ,$){var Q=M$().Buffer;function Y(K){Q.isBuffer(K)||(K=Q.from(K));for(var I=K.length/4|0,J=new Array(I),O=0;O<I;O++)J[O]=K.readUInt32BE(O*4);return J}function Z(K){for(var I=0;I<K.length;K++)K[I]=0}function G(K,I,J,O,F){for(var A=J[0],W=J[1],H=J[2],E=J[3],T=K[0]^I[0],D=K[1]^I[1],C=K[2]^I[2],L=K[3]^I[3],R,P,z,M,S=4,v=1;v<F;v++)R=A[T>>>24]^W[D>>>16&255]^H[C>>>8&255]^E[L&255]^I[S++],P=A[D>>>24]^W[C>>>16&255]^H[L>>>8&255]^E[T&255]^I[S++],z=A[C>>>24]^W[L>>>16&255]^H[T>>>8&255]^E[D&255]^I[S++],M=A[L>>>24]^W[T>>>16&255]^H[D>>>8&255]^E[C&255]^I[S++],T=R,D=P,C=z,L=M;return R=(O[T>>>24]<<24|O[D>>>16&255]<<16|O[C>>>8&255]<<8|O[L&255])^I[S++],P=(O[D>>>24]<<24|O[C>>>16&255]<<16|O[L>>>8&255]<<8|O[T&255])^I[S++],z=(O[C>>>24]<<24|O[L>>>16&255]<<16|O[T>>>8&255]<<8|O[D&255])^I[S++],M=(O[L>>>24]<<24|O[T>>>16&255]<<16|O[D>>>8&255]<<8|O[C&255])^I[S++],R=R>>>0,P=P>>>0,z=z>>>0,M=M>>>0,[R,P,z,M]}var V=[0,1,2,4,8,16,32,64,128,27,54],U=function(){for(var K=new Array(256),I=0;I<256;I++)I<128?K[I]=I<<1:K[I]=I<<1^283;for(var J=[],O=[],F=[[],[],[],[]],A=[[],[],[],[]],W=0,H=0,E=0;E<256;++E){var T=H^H<<1^H<<2^H<<3^H<<4;T=T>>>8^T&255^99,J[W]=T,O[T]=W;var D=K[W],C=K[D],L=K[C],R=K[T]*257^T*16843008;F[0][W]=R<<24|R>>>8,F[1][W]=R<<16|R>>>16,F[2][W]=R<<8|R>>>24,F[3][W]=R,R=L*16843009^C*65537^D*257^W*16843008,A[0][T]=R<<24|R>>>8,A[1][T]=R<<16|R>>>16,A[2][T]=R<<8|R>>>24,A[3][T]=R,W===0?W=H=1:(W=D^K[K[K[L^D]]],H^=K[K[H]])}return{SBOX:J,INV_SBOX:O,SUB_MIX:F,INV_SUB_MIX:A}}();function X(K){this._key=Y(K),this._reset()}X.blockSize=16,X.keySize=32,X.prototype.blockSize=X.blockSize,X.prototype.keySize=X.keySize,X.prototype._reset=function(){for(var K=this._key,I=K.length,J=I+6,O=(J+1)*4,F=[],A=0;A<I;A++)F[A]=K[A];for(A=I;A<O;A++){var W=F[A-1];A%I===0?(W=W<<8|W>>>24,W=U.SBOX[W>>>24]<<24|U.SBOX[W>>>16&255]<<16|U.SBOX[W>>>8&255]<<8|U.SBOX[W&255],W^=V[A/I|0]<<24):I>6&&A%I===4&&(W=U.SBOX[W>>>24]<<24|U.SBOX[W>>>16&255]<<16|U.SBOX[W>>>8&255]<<8|U.SBOX[W&255]),F[A]=F[A-I]^W}for(var H=[],E=0;E<O;E++){var T=O-E,D=F[T-(E%4?0:4)];E<4||T<=4?H[E]=D:H[E]=U.INV_SUB_MIX[0][U.SBOX[D>>>24]]^U.INV_SUB_MIX[1][U.SBOX[D>>>16&255]]^U.INV_SUB_MIX[2][U.SBOX[D>>>8&255]]^U.INV_SUB_MIX[3][U.SBOX[D&255]]}this._nRounds=J,this._keySchedule=F,this._invKeySchedule=H},X.prototype.encryptBlockRaw=function(K){return K=Y(K),G(K,this._keySchedule,U.SUB_MIX,U.SBOX,this._nRounds)},X.prototype.encryptBlock=function(K){var I=this.encryptBlockRaw(K),J=Q.allocUnsafe(16);return J.writeUInt32BE(I[0],0),J.writeUInt32BE(I[1],4),J.writeUInt32BE(I[2],8),J.writeUInt32BE(I[3],12),J},X.prototype.decryptBlock=function(K){K=Y(K);var I=K[1];K[1]=K[3],K[3]=I;var J=G(K,this._invKeySchedule,U.INV_SUB_MIX,U.INV_SBOX,this._nRounds),O=Q.allocUnsafe(16);return O.writeUInt32BE(J[0],0),O.writeUInt32BE(J[3],4),O.writeUInt32BE(J[2],8),O.writeUInt32BE(J[1],12),O},X.prototype.scrub=function(){Z(this._keySchedule),Z(this._invKeySchedule),Z(this._key)},$.exports.AES=X}}),TQ=P$({"node_modules/browserify-aes/ghash.js"(bZ,$){var Q=M$().Buffer,Y=Q.alloc(16,0);function Z(U){return[U.readUInt32BE(0),U.readUInt32BE(4),U.readUInt32BE(8),U.readUInt32BE(12)]}function G(U){var X=Q.allocUnsafe(16);return X.writeUInt32BE(U[0]>>>0,0),X.writeUInt32BE(U[1]>>>0,4),X.writeUInt32BE(U[2]>>>0,8),X.writeUInt32BE(U[3]>>>0,12),X}function V(U){this.h=U,this.state=Q.alloc(16,0),this.cache=Q.allocUnsafe(0)}V.prototype.ghash=function(U){for(var X=-1;++X<U.length;)this.state[X]^=U[X];this._multiply()},V.prototype._multiply=function(){for(var U=Z(this.h),X=[0,0,0,0],K,I,J,O=-1;++O<128;){for(I=(this.state[~~(O/8)]&1<<7-O%8)!==0,I&&(X[0]^=U[0],X[1]^=U[1],X[2]^=U[2],X[3]^=U[3]),J=(U[3]&1)!==0,K=3;K>0;K--)U[K]=U[K]>>>1|(U[K-1]&1)<<31;U[0]=U[0]>>>1,J&&(U[0]=U[0]^225<<24)}this.state=G(X)},V.prototype.update=function(U){this.cache=Q.concat([this.cache,U]);for(var X;this.cache.length>=16;)X=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(X)},V.prototype.final=function(U,X){return this.cache.length&&this.ghash(Q.concat([this.cache,Y],16)),this.ghash(G([0,U,0,X])),this.state},$.exports=V}}),DQ=P$({"node_modules/browserify-aes/authCipher.js"(bZ,$){var Q=EQ(),Y=M$().Buffer,Z=c$(),G=v$(),V=TQ(),U=XQ(),X=AQ();function K(O,F){var A=0;O.length!==F.length&&A++;for(var W=Math.min(O.length,F.length),H=0;H<W;++H)A+=O[H]^F[H];return A}function I(O,F,A){if(F.length===12)return O._finID=Y.concat([F,Y.from([0,0,0,1])]),Y.concat([F,Y.from([0,0,0,2])]);var W=new V(A),H=F.length,E=H%16;W.update(F),E&&(E=16-E,W.update(Y.alloc(E,0))),W.update(Y.alloc(8,0));var T=H*8,D=Y.alloc(8);D.writeUIntBE(T,0,8),W.update(D),O._finID=W.state;var C=Y.from(O._finID);return X(C),C}function J(O,F,A,W){Z.call(this);var H=Y.alloc(4,0);this._cipher=new Q.AES(F);var E=this._cipher.encryptBlock(H);this._ghash=new V(E),A=I(this,A,E),this._prev=Y.from(A),this._cache=Y.allocUnsafe(0),this._secCache=Y.allocUnsafe(0),this._decrypt=W,this._alen=0,this._len=0,this._mode=O,this._authTag=null,this._called=!1}G(J,Z),J.prototype._update=function(O){if(!this._called&&this._alen){var F=16-this._alen%16;F<16&&(F=Y.alloc(F,0),this._ghash.update(F))}this._called=!0;var A=this._mode.encrypt(this,O);return this._decrypt?this._ghash.update(O):this._ghash.update(A),this._len+=O.length,A},J.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var O=U(this._ghash.final(this._alen*8,this._len*8),this._cipher.encryptBlock(this._finID));if(this._decrypt&&K(O,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=O,this._cipher.scrub()},J.prototype.getAuthTag=function(){if(this._decrypt||!Y.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},J.prototype.setAuthTag=function(O){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=O},J.prototype.setAAD=function(O){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(O),this._alen+=O.length},$.exports=J}}),CQ=P$({"node_modules/browserify-aes/streamCipher.js"(bZ,$){var Q=EQ(),Y=M$().Buffer,Z=c$(),G=v$();function V(U,X,K,I){Z.call(this),this._cipher=new Q.AES(X),this._prev=Y.from(K),this._cache=Y.allocUnsafe(0),this._secCache=Y.allocUnsafe(0),this._decrypt=I,this._mode=U}G(V,Z),V.prototype._update=function(U){return this._mode.encrypt(this,U,this._decrypt)},V.prototype._final=function(){this._cipher.scrub()},$.exports=V}}),LQ=P$({"node_modules/evp_bytestokey/index.js"(bZ,$){var Q=M$().Buffer,Y=j$();function Z(G,V,U,X){if(Q.isBuffer(G)||(G=Q.from(G,"binary")),V&&(Q.isBuffer(V)||(V=Q.from(V,"binary")),V.length!==8))throw new RangeError("salt should be Buffer with 8 byte length");for(var K=U/8,I=Q.alloc(K),J=Q.alloc(X||0),O=Q.alloc(0);K>0||X>0;){var F=new Y;F.update(O),F.update(G),V&&F.update(V),O=F.digest();var A=0;if(K>0){var W=I.length-K;A=Math.min(K,O.length),O.copy(I,W,0,A),K-=A}if(A<O.length&&X>0){var H=J.length-X,E=Math.min(X,O.length-A);O.copy(J,H,A,A+E),X-=E}}return O.fill(0),{key:I,iv:J}}$.exports=Z}}),RQ=P$({"node_modules/browserify-aes/encrypter.js"(bZ){var $=HQ(),Q=DQ(),Y=M$().Buffer,Z=CQ(),G=c$(),V=EQ(),U=LQ(),X=v$();function K(A,W,H){G.call(this),this._cache=new J,this._cipher=new V.AES(W),this._prev=Y.from(H),this._mode=A,this._autopadding=!0}X(K,G),K.prototype._update=function(A){this._cache.add(A);for(var W,H,E=[];W=this._cache.get();)H=this._mode.encrypt(this,W),E.push(H);return Y.concat(E)};var I=Y.alloc(16,16);K.prototype._final=function(){var A=this._cache.flush();if(this._autopadding)return A=this._mode.encrypt(this,A),this._cipher.scrub(),A;if(!A.equals(I))throw this._cipher.scrub(),new Error("data not multiple of block length")},K.prototype.setAutoPadding=function(A){return this._autopadding=!!A,this};function J(){this.cache=Y.allocUnsafe(0)}J.prototype.add=function(A){this.cache=Y.concat([this.cache,A])},J.prototype.get=function(){if(this.cache.length>15){var A=this.cache.slice(0,16);return this.cache=this.cache.slice(16),A}return null},J.prototype.flush=function(){for(var A=16-this.cache.length,W=Y.allocUnsafe(A),H=-1;++H<A;)W.writeUInt8(A,H);return Y.concat([this.cache,W])};function O(A,W,H){var E=$[A.toLowerCase()];if(!E)throw new TypeError("invalid suite type");if(typeof W=="string"&&(W=Y.from(W)),W.length!==E.key/8)throw new TypeError("invalid key length "+W.length);if(typeof H=="string"&&(H=Y.from(H)),E.mode!=="GCM"&&H.length!==E.iv)throw new TypeError("invalid iv length "+H.length);return E.type==="stream"?new Z(E.module,W,H):E.type==="auth"?new Q(E.module,W,H):new K(E.module,W,H)}function F(A,W){var H=$[A.toLowerCase()];if(!H)throw new TypeError("invalid suite type");var E=U(W,!1,H.key,H.iv);return O(A,E.key,E.iv)}bZ.createCipheriv=O,bZ.createCipher=F}}),PQ=P$({"node_modules/browserify-aes/decrypter.js"(bZ){var $=DQ(),Q=M$().Buffer,Y=HQ(),Z=CQ(),G=c$(),V=EQ(),U=LQ(),X=v$();function K(A,W,H){G.call(this),this._cache=new I,this._last=void 0,this._cipher=new V.AES(W),this._prev=Q.from(H),this._mode=A,this._autopadding=!0}X(K,G),K.prototype._update=function(A){this._cache.add(A);for(var W,H,E=[];W=this._cache.get(this._autopadding);)H=this._mode.decrypt(this,W),E.push(H);return Q.concat(E)},K.prototype._final=function(){var A=this._cache.flush();if(this._autopadding)return J(this._mode.decrypt(this,A));if(A)throw new Error("data not multiple of block length")},K.prototype.setAutoPadding=function(A){return this._autopadding=!!A,this};function I(){this.cache=Q.allocUnsafe(0)}I.prototype.add=function(A){this.cache=Q.concat([this.cache,A])},I.prototype.get=function(A){var W;if(A){if(this.cache.length>16)return W=this.cache.slice(0,16),this.cache=this.cache.slice(16),W}else if(this.cache.length>=16)return W=this.cache.slice(0,16),this.cache=this.cache.slice(16),W;return null},I.prototype.flush=function(){if(this.cache.length)return this.cache};function J(A){var W=A[15];if(W<1||W>16)throw new Error("unable to decrypt data");for(var H=-1;++H<W;)if(A[H+(16-W)]!==W)throw new Error("unable to decrypt data");if(W!==16)return A.slice(0,16-W)}function O(A,W,H){var E=Y[A.toLowerCase()];if(!E)throw new TypeError("invalid suite type");if(typeof H=="string"&&(H=Q.from(H)),E.mode!=="GCM"&&H.length!==E.iv)throw new TypeError("invalid iv length "+H.length);if(typeof W=="string"&&(W=Q.from(W)),W.length!==E.key/8)throw new TypeError("invalid key length "+W.length);return E.type==="stream"?new Z(E.module,W,H,!0):E.type==="auth"?new $(E.module,W,H,!0):new K(E.module,W,H)}function F(A,W){var H=Y[A.toLowerCase()];if(!H)throw new TypeError("invalid suite type");var E=U(W,!1,H.key,H.iv);return O(A,E.key,E.iv)}bZ.createDecipher=F,bZ.createDecipheriv=O}}),zQ=P$({"node_modules/browserify-aes/browser.js"(bZ){var $=RQ(),Q=PQ(),Y=WQ();function Z(){return Object.keys(Y)}bZ.createCipher=bZ.Cipher=$.createCipher,bZ.createCipheriv=bZ.Cipheriv=$.createCipheriv,bZ.createDecipher=bZ.Decipher=Q.createDecipher,bZ.createDecipheriv=bZ.Decipheriv=Q.createDecipheriv,bZ.listCiphers=bZ.getCiphers=Z}}),MQ=P$({"node_modules/browserify-des/modes.js"(bZ){bZ["des-ecb"]={key:8,iv:0},bZ["des-cbc"]=bZ.des={key:8,iv:8},bZ["des-ede3-cbc"]=bZ.des3={key:24,iv:8},bZ["des-ede3"]={key:24,iv:0},bZ["des-ede-cbc"]={key:16,iv:8},bZ["des-ede"]={key:16,iv:0}}}),SQ=P$({"node_modules/browserify-cipher/browser.js"(bZ){var $=VQ(),Q=zQ(),Y=HQ(),Z=MQ(),G=LQ();function V(J,O){J=J.toLowerCase();var F,A;if(Y[J])F=Y[J].key,A=Y[J].iv;else if(Z[J])F=Z[J].key*8,A=Z[J].iv;else throw new TypeError("invalid suite type");var W=G(O,!1,F,A);return X(J,W.key,W.iv)}function U(J,O){J=J.toLowerCase();var F,A;if(Y[J])F=Y[J].key,A=Y[J].iv;else if(Z[J])F=Z[J].key*8,A=Z[J].iv;else throw new TypeError("invalid suite type");var W=G(O,!1,F,A);return K(J,W.key,W.iv)}function X(J,O,F){if(J=J.toLowerCase(),Y[J])return Q.createCipheriv(J,O,F);if(Z[J])return new $({key:O,iv:F,mode:J});throw new TypeError("invalid suite type")}function K(J,O,F){if(J=J.toLowerCase(),Y[J])return Q.createDecipheriv(J,O,F);if(Z[J])return new $({key:O,iv:F,mode:J,decrypt:!0});throw new TypeError("invalid suite type")}function I(){return Object.keys(Z).concat(Q.getCiphers())}bZ.createCipher=bZ.Cipher=V,bZ.createCipheriv=bZ.Cipheriv=X,bZ.createDecipher=bZ.Decipher=U,bZ.createDecipheriv=bZ.Decipheriv=K,bZ.listCiphers=bZ.getCiphers=I}}),vQ=P$({"node_modules/diffie-hellman/node_modules/bn.js/lib/bn.js"(bZ,$){(function(Q,Y){function Z(q,j){if(!q)throw new Error(j||"Assertion failed")}function G(q,j){q.super_=j;var k=function(){};k.prototype=j.prototype,q.prototype=new k,q.prototype.constructor=q}function V(q,j,k){if(V.isBN(q))return q;this.negative=0,this.words=null,this.length=0,this.red=null,q!==null&&((j==="le"||j==="be")&&(k=j,j=10),this._init(q||0,j||10,k||"be"))}typeof Q=="object"?Q.exports=V:Y.BN=V,V.BN=V,V.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=L$("buffer").Buffer}catch{}V.isBN=function(q){return q instanceof V?!0:q!==null&&typeof q=="object"&&q.constructor.wordSize===V.wordSize&&Array.isArray(q.words)},V.max=function(q,j){return q.cmp(j)>0?q:j},V.min=function(q,j){return q.cmp(j)<0?q:j},V.prototype._init=function(q,j,k){if(typeof q=="number")return this._initNumber(q,j,k);if(typeof q=="object")return this._initArray(q,j,k);j==="hex"&&(j=16),Z(j===(j|0)&&j>=2&&j<=36),q=q.toString().replace(/\s+/g,"");var g=0;q[0]==="-"&&(g++,this.negative=1),g<q.length&&(j===16?this._parseHex(q,g,k):(this._parseBase(q,j,g),k==="le"&&this._initArray(this.toArray(),j,k)))},V.prototype._initNumber=function(q,j,k){q<0&&(this.negative=1,q=-q),q<67108864?(this.words=[q&67108863],this.length=1):q<4503599627370496?(this.words=[q&67108863,q/67108864&67108863],this.length=2):(Z(q<9007199254740992),this.words=[q&67108863,q/67108864&67108863,1],this.length=3),k==="le"&&this._initArray(this.toArray(),j,k)},V.prototype._initArray=function(q,j,k){if(Z(typeof q.length=="number"),q.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(q.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var N,x,_=0;if(k==="be")for(g=q.length-1,N=0;g>=0;g-=3)x=q[g]|q[g-1]<<8|q[g-2]<<16,this.words[N]|=x<<_&67108863,this.words[N+1]=x>>>26-_&67108863,_+=24,_>=26&&(_-=26,N++);else if(k==="le")for(g=0,N=0;g<q.length;g+=3)x=q[g]|q[g+1]<<8|q[g+2]<<16,this.words[N]|=x<<_&67108863,this.words[N+1]=x>>>26-_&67108863,_+=24,_>=26&&(_-=26,N++);return this.strip()};function X(q,j){var k=q.charCodeAt(j);return k>=65&&k<=70?k-55:k>=97&&k<=102?k-87:k-48&15}function K(q,j,k){var g=X(q,k);return k-1>=j&&(g|=X(q,k-1)<<4),g}V.prototype._parseHex=function(q,j,k){this.length=Math.ceil((q.length-j)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var N=0,x=0,_;if(k==="be")for(g=q.length-1;g>=j;g-=2)_=K(q,j,g)<<N,this.words[x]|=_&67108863,N>=18?(N-=18,x+=1,this.words[x]|=_>>>26):N+=8;else{var B=q.length-j;for(g=B%2===0?j+1:j;g<q.length;g+=2)_=K(q,j,g)<<N,this.words[x]|=_&67108863,N>=18?(N-=18,x+=1,this.words[x]|=_>>>26):N+=8}this.strip()};function I(q,j,k,g){for(var N=0,x=Math.min(q.length,k),_=j;_<x;_++){var B=q.charCodeAt(_)-48;N*=g,B>=49?N+=B-49+10:B>=17?N+=B-17+10:N+=B}return N}V.prototype._parseBase=function(q,j,k){this.words=[0],this.length=1;for(var g=0,N=1;N<=67108863;N*=j)g++;g--,N=N/j|0;for(var x=q.length-k,_=x%g,B=Math.min(x,x-_)+k,y=0,w=k;w<B;w+=g)y=I(q,w,w+g,j),this.imuln(N),this.words[0]+y<67108864?this.words[0]+=y:this._iaddn(y);if(_!==0){var f=1;for(y=I(q,w,q.length,j),w=0;w<_;w++)f*=j;this.imuln(f),this.words[0]+y<67108864?this.words[0]+=y:this._iaddn(y)}this.strip()},V.prototype.copy=function(q){q.words=new Array(this.length);for(var j=0;j<this.length;j++)q.words[j]=this.words[j];q.length=this.length,q.negative=this.negative,q.red=this.red},V.prototype.clone=function(){var q=new V(null);return this.copy(q),q},V.prototype._expand=function(q){for(;this.length<q;)this.words[this.length++]=0;return this},V.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},V.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},V.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var J=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],O=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];V.prototype.toString=function(q,j){q=q||10,j=j|0||1;var k;if(q===16||q==="hex"){k="";for(var g=0,N=0,x=0;x<this.length;x++){var _=this.words[x],B=((_<<g|N)&16777215).toString(16);N=_>>>24-g&16777215,N!==0||x!==this.length-1?k=J[6-B.length]+B+k:k=B+k,g+=2,g>=26&&(g-=26,x--)}for(N!==0&&(k=N.toString(16)+k);k.length%j!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(q===(q|0)&&q>=2&&q<=36){var y=O[q],w=F[q];k="";var f=this.clone();for(f.negative=0;!f.isZero();){var p=f.modn(w).toString(q);f=f.idivn(w),f.isZero()?k=p+k:k=J[y-p.length]+p+k}for(this.isZero()&&(k="0"+k);k.length%j!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}Z(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var q=this.words[0];return this.length===2?q+=this.words[1]*67108864:this.length===3&&this.words[2]===1?q+=4503599627370496+this.words[1]*67108864:this.length>2&&Z(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-q:q},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(q,j){return Z(typeof U<"u"),this.toArrayLike(U,q,j)},V.prototype.toArray=function(q,j){return this.toArrayLike(Array,q,j)},V.prototype.toArrayLike=function(q,j,k){var g=this.byteLength(),N=k||Math.max(1,g);Z(g<=N,"byte array longer than desired length"),Z(N>0,"Requested array length <= 0"),this.strip();var x=j==="le",_=new q(N),B,y,w=this.clone();if(x){for(y=0;!w.isZero();y++)B=w.andln(255),w.iushrn(8),_[y]=B;for(;y<N;y++)_[y]=0}else{for(y=0;y<N-g;y++)_[y]=0;for(y=0;!w.isZero();y++)B=w.andln(255),w.iushrn(8),_[N-y-1]=B}return _},Math.clz32?V.prototype._countBits=function(q){return 32-Math.clz32(q)}:V.prototype._countBits=function(q){var j=q,k=0;return j>=4096&&(k+=13,j>>>=13),j>=64&&(k+=7,j>>>=7),j>=8&&(k+=4,j>>>=4),j>=2&&(k+=2,j>>>=2),k+j},V.prototype._zeroBits=function(q){if(q===0)return 26;var j=q,k=0;return(j&8191)===0&&(k+=13,j>>>=13),(j&127)===0&&(k+=7,j>>>=7),(j&15)===0&&(k+=4,j>>>=4),(j&3)===0&&(k+=2,j>>>=2),(j&1)===0&&k++,k},V.prototype.bitLength=function(){var q=this.words[this.length-1],j=this._countBits(q);return(this.length-1)*26+j};function A(q){for(var j=new Array(q.bitLength()),k=0;k<j.length;k++){var g=k/26|0,N=k%26;j[k]=(q.words[g]&1<<N)>>>N}return j}V.prototype.zeroBits=function(){if(this.isZero())return 0;for(var q=0,j=0;j<this.length;j++){var k=this._zeroBits(this.words[j]);if(q+=k,k!==26)break}return q},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(q){return this.negative!==0?this.abs().inotn(q).iaddn(1):this.clone()},V.prototype.fromTwos=function(q){return this.testn(q-1)?this.notn(q).iaddn(1).ineg():this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},V.prototype.iuor=function(q){for(;this.length<q.length;)this.words[this.length++]=0;for(var j=0;j<q.length;j++)this.words[j]=this.words[j]|q.words[j];return this.strip()},V.prototype.ior=function(q){return Z((this.negative|q.negative)===0),this.iuor(q)},V.prototype.or=function(q){return this.length>q.length?this.clone().ior(q):q.clone().ior(this)},V.prototype.uor=function(q){return this.length>q.length?this.clone().iuor(q):q.clone().iuor(this)},V.prototype.iuand=function(q){var j;this.length>q.length?j=q:j=this;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]&q.words[k];return this.length=j.length,this.strip()},V.prototype.iand=function(q){return Z((this.negative|q.negative)===0),this.iuand(q)},V.prototype.and=function(q){return this.length>q.length?this.clone().iand(q):q.clone().iand(this)},V.prototype.uand=function(q){return this.length>q.length?this.clone().iuand(q):q.clone().iuand(this)},V.prototype.iuxor=function(q){var j,k;this.length>q.length?(j=this,k=q):(j=q,k=this);for(var g=0;g<k.length;g++)this.words[g]=j.words[g]^k.words[g];if(this!==j)for(;g<j.length;g++)this.words[g]=j.words[g];return this.length=j.length,this.strip()},V.prototype.ixor=function(q){return Z((this.negative|q.negative)===0),this.iuxor(q)},V.prototype.xor=function(q){return this.length>q.length?this.clone().ixor(q):q.clone().ixor(this)},V.prototype.uxor=function(q){return this.length>q.length?this.clone().iuxor(q):q.clone().iuxor(this)},V.prototype.inotn=function(q){Z(typeof q=="number"&&q>=0);var j=Math.ceil(q/26)|0,k=q%26;this._expand(j),k>0&&j--;for(var g=0;g<j;g++)this.words[g]=~this.words[g]&67108863;return k>0&&(this.words[g]=~this.words[g]&67108863>>26-k),this.strip()},V.prototype.notn=function(q){return this.clone().inotn(q)},V.prototype.setn=function(q,j){Z(typeof q=="number"&&q>=0);var k=q/26|0,g=q%26;return this._expand(k+1),j?this.words[k]=this.words[k]|1<<g:this.words[k]=this.words[k]&~(1<<g),this.strip()},V.prototype.iadd=function(q){var j;if(this.negative!==0&&q.negative===0)return this.negative=0,j=this.isub(q),this.negative^=1,this._normSign();if(this.negative===0&&q.negative!==0)return q.negative=0,j=this.isub(q),q.negative=1,j._normSign();var k,g;this.length>q.length?(k=this,g=q):(k=q,g=this);for(var N=0,x=0;x<g.length;x++)j=(k.words[x]|0)+(g.words[x]|0)+N,this.words[x]=j&67108863,N=j>>>26;for(;N!==0&&x<k.length;x++)j=(k.words[x]|0)+N,this.words[x]=j&67108863,N=j>>>26;if(this.length=k.length,N!==0)this.words[this.length]=N,this.length++;else if(k!==this)for(;x<k.length;x++)this.words[x]=k.words[x];return this},V.prototype.add=function(q){var j;return q.negative!==0&&this.negative===0?(q.negative=0,j=this.sub(q),q.negative^=1,j):q.negative===0&&this.negative!==0?(this.negative=0,j=q.sub(this),this.negative=1,j):this.length>q.length?this.clone().iadd(q):q.clone().iadd(this)},V.prototype.isub=function(q){if(q.negative!==0){q.negative=0;var j=this.iadd(q);return q.negative=1,j._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(q),this.negative=1,this._normSign();var k=this.cmp(q);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,N;k>0?(g=this,N=q):(g=q,N=this);for(var x=0,_=0;_<N.length;_++)j=(g.words[_]|0)-(N.words[_]|0)+x,x=j>>26,this.words[_]=j&67108863;for(;x!==0&&_<g.length;_++)j=(g.words[_]|0)+x,x=j>>26,this.words[_]=j&67108863;if(x===0&&_<g.length&&g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this.length=Math.max(this.length,_),g!==this&&(this.negative=1),this.strip()},V.prototype.sub=function(q){return this.clone().isub(q)};function W(q,j,k){k.negative=j.negative^q.negative;var g=q.length+j.length|0;k.length=g,g=g-1|0;var N=q.words[0]|0,x=j.words[0]|0,_=N*x,B=_&67108863,y=_/67108864|0;k.words[0]=B;for(var w=1;w<g;w++){for(var f=y>>>26,p=y&67108863,c=Math.min(w,j.length-1),h=Math.max(0,w-q.length+1);h<=c;h++){var d=w-h|0;N=q.words[d]|0,x=j.words[h]|0,_=N*x+p,f+=_/67108864|0,p=_&67108863}k.words[w]=p|0,y=f|0}return y!==0?k.words[w]=y|0:k.length--,k.strip()}var H=function(q,j,k){var g=q.words,N=j.words,x=k.words,_=0,B,y,w,f=g[0]|0,p=f&8191,c=f>>>13,h=g[1]|0,d=h&8191,b=h>>>13,l=g[2]|0,o=l&8191,u=l>>>13,n=g[3]|0,s=n&8191,t=n>>>13,m=g[4]|0,a=m&8191,r=m>>>13,e=g[5]|0,i=e&8191,$0=e>>>13,Q0=g[6]|0,Y0=Q0&8191,Z0=Q0>>>13,G0=g[7]|0,V0=G0&8191,U0=G0>>>13,X0=g[8]|0,K0=X0&8191,I0=X0>>>13,J0=g[9]|0,O0=J0&8191,F0=J0>>>13,A0=N[0]|0,W0=A0&8191,H0=A0>>>13,E0=N[1]|0,T0=E0&8191,D0=E0>>>13,C0=N[2]|0,L0=C0&8191,R0=C0>>>13,P0=N[3]|0,z0=P0&8191,M0=P0>>>13,S0=N[4]|0,v0=S0&8191,q0=S0>>>13,j0=N[5]|0,k0=j0&8191,g0=j0>>>13,N0=N[6]|0,x0=N0&8191,_0=N0>>>13,B0=N[7]|0,y0=B0&8191,w0=B0>>>13,f0=N[8]|0,p0=f0&8191,c0=f0>>>13,h0=N[9]|0,d0=h0&8191,b0=h0>>>13;k.negative=q.negative^j.negative,k.length=19,B=Math.imul(p,W0),y=Math.imul(p,H0),y=y+Math.imul(c,W0)|0,w=Math.imul(c,H0);var l0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(l0>>>26)|0,l0&=67108863,B=Math.imul(d,W0),y=Math.imul(d,H0),y=y+Math.imul(b,W0)|0,w=Math.imul(b,H0),B=B+Math.imul(p,T0)|0,y=y+Math.imul(p,D0)|0,y=y+Math.imul(c,T0)|0,w=w+Math.imul(c,D0)|0;var o0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(o0>>>26)|0,o0&=67108863,B=Math.imul(o,W0),y=Math.imul(o,H0),y=y+Math.imul(u,W0)|0,w=Math.imul(u,H0),B=B+Math.imul(d,T0)|0,y=y+Math.imul(d,D0)|0,y=y+Math.imul(b,T0)|0,w=w+Math.imul(b,D0)|0,B=B+Math.imul(p,L0)|0,y=y+Math.imul(p,R0)|0,y=y+Math.imul(c,L0)|0,w=w+Math.imul(c,R0)|0;var u0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(u0>>>26)|0,u0&=67108863,B=Math.imul(s,W0),y=Math.imul(s,H0),y=y+Math.imul(t,W0)|0,w=Math.imul(t,H0),B=B+Math.imul(o,T0)|0,y=y+Math.imul(o,D0)|0,y=y+Math.imul(u,T0)|0,w=w+Math.imul(u,D0)|0,B=B+Math.imul(d,L0)|0,y=y+Math.imul(d,R0)|0,y=y+Math.imul(b,L0)|0,w=w+Math.imul(b,R0)|0,B=B+Math.imul(p,z0)|0,y=y+Math.imul(p,M0)|0,y=y+Math.imul(c,z0)|0,w=w+Math.imul(c,M0)|0;var n0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(n0>>>26)|0,n0&=67108863,B=Math.imul(a,W0),y=Math.imul(a,H0),y=y+Math.imul(r,W0)|0,w=Math.imul(r,H0),B=B+Math.imul(s,T0)|0,y=y+Math.imul(s,D0)|0,y=y+Math.imul(t,T0)|0,w=w+Math.imul(t,D0)|0,B=B+Math.imul(o,L0)|0,y=y+Math.imul(o,R0)|0,y=y+Math.imul(u,L0)|0,w=w+Math.imul(u,R0)|0,B=B+Math.imul(d,z0)|0,y=y+Math.imul(d,M0)|0,y=y+Math.imul(b,z0)|0,w=w+Math.imul(b,M0)|0,B=B+Math.imul(p,v0)|0,y=y+Math.imul(p,q0)|0,y=y+Math.imul(c,v0)|0,w=w+Math.imul(c,q0)|0;var s0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(s0>>>26)|0,s0&=67108863,B=Math.imul(i,W0),y=Math.imul(i,H0),y=y+Math.imul($0,W0)|0,w=Math.imul($0,H0),B=B+Math.imul(a,T0)|0,y=y+Math.imul(a,D0)|0,y=y+Math.imul(r,T0)|0,w=w+Math.imul(r,D0)|0,B=B+Math.imul(s,L0)|0,y=y+Math.imul(s,R0)|0,y=y+Math.imul(t,L0)|0,w=w+Math.imul(t,R0)|0,B=B+Math.imul(o,z0)|0,y=y+Math.imul(o,M0)|0,y=y+Math.imul(u,z0)|0,w=w+Math.imul(u,M0)|0,B=B+Math.imul(d,v0)|0,y=y+Math.imul(d,q0)|0,y=y+Math.imul(b,v0)|0,w=w+Math.imul(b,q0)|0,B=B+Math.imul(p,k0)|0,y=y+Math.imul(p,g0)|0,y=y+Math.imul(c,k0)|0,w=w+Math.imul(c,g0)|0;var t0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(t0>>>26)|0,t0&=67108863,B=Math.imul(Y0,W0),y=Math.imul(Y0,H0),y=y+Math.imul(Z0,W0)|0,w=Math.imul(Z0,H0),B=B+Math.imul(i,T0)|0,y=y+Math.imul(i,D0)|0,y=y+Math.imul($0,T0)|0,w=w+Math.imul($0,D0)|0,B=B+Math.imul(a,L0)|0,y=y+Math.imul(a,R0)|0,y=y+Math.imul(r,L0)|0,w=w+Math.imul(r,R0)|0,B=B+Math.imul(s,z0)|0,y=y+Math.imul(s,M0)|0,y=y+Math.imul(t,z0)|0,w=w+Math.imul(t,M0)|0,B=B+Math.imul(o,v0)|0,y=y+Math.imul(o,q0)|0,y=y+Math.imul(u,v0)|0,w=w+Math.imul(u,q0)|0,B=B+Math.imul(d,k0)|0,y=y+Math.imul(d,g0)|0,y=y+Math.imul(b,k0)|0,w=w+Math.imul(b,g0)|0,B=B+Math.imul(p,x0)|0,y=y+Math.imul(p,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,_0)|0;var m0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(m0>>>26)|0,m0&=67108863,B=Math.imul(V0,W0),y=Math.imul(V0,H0),y=y+Math.imul(U0,W0)|0,w=Math.imul(U0,H0),B=B+Math.imul(Y0,T0)|0,y=y+Math.imul(Y0,D0)|0,y=y+Math.imul(Z0,T0)|0,w=w+Math.imul(Z0,D0)|0,B=B+Math.imul(i,L0)|0,y=y+Math.imul(i,R0)|0,y=y+Math.imul($0,L0)|0,w=w+Math.imul($0,R0)|0,B=B+Math.imul(a,z0)|0,y=y+Math.imul(a,M0)|0,y=y+Math.imul(r,z0)|0,w=w+Math.imul(r,M0)|0,B=B+Math.imul(s,v0)|0,y=y+Math.imul(s,q0)|0,y=y+Math.imul(t,v0)|0,w=w+Math.imul(t,q0)|0,B=B+Math.imul(o,k0)|0,y=y+Math.imul(o,g0)|0,y=y+Math.imul(u,k0)|0,w=w+Math.imul(u,g0)|0,B=B+Math.imul(d,x0)|0,y=y+Math.imul(d,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,_0)|0,B=B+Math.imul(p,y0)|0,y=y+Math.imul(p,w0)|0,y=y+Math.imul(c,y0)|0,w=w+Math.imul(c,w0)|0;var a0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(a0>>>26)|0,a0&=67108863,B=Math.imul(K0,W0),y=Math.imul(K0,H0),y=y+Math.imul(I0,W0)|0,w=Math.imul(I0,H0),B=B+Math.imul(V0,T0)|0,y=y+Math.imul(V0,D0)|0,y=y+Math.imul(U0,T0)|0,w=w+Math.imul(U0,D0)|0,B=B+Math.imul(Y0,L0)|0,y=y+Math.imul(Y0,R0)|0,y=y+Math.imul(Z0,L0)|0,w=w+Math.imul(Z0,R0)|0,B=B+Math.imul(i,z0)|0,y=y+Math.imul(i,M0)|0,y=y+Math.imul($0,z0)|0,w=w+Math.imul($0,M0)|0,B=B+Math.imul(a,v0)|0,y=y+Math.imul(a,q0)|0,y=y+Math.imul(r,v0)|0,w=w+Math.imul(r,q0)|0,B=B+Math.imul(s,k0)|0,y=y+Math.imul(s,g0)|0,y=y+Math.imul(t,k0)|0,w=w+Math.imul(t,g0)|0,B=B+Math.imul(o,x0)|0,y=y+Math.imul(o,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,_0)|0,B=B+Math.imul(d,y0)|0,y=y+Math.imul(d,w0)|0,y=y+Math.imul(b,y0)|0,w=w+Math.imul(b,w0)|0,B=B+Math.imul(p,p0)|0,y=y+Math.imul(p,c0)|0,y=y+Math.imul(c,p0)|0,w=w+Math.imul(c,c0)|0;var r0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(r0>>>26)|0,r0&=67108863,B=Math.imul(O0,W0),y=Math.imul(O0,H0),y=y+Math.imul(F0,W0)|0,w=Math.imul(F0,H0),B=B+Math.imul(K0,T0)|0,y=y+Math.imul(K0,D0)|0,y=y+Math.imul(I0,T0)|0,w=w+Math.imul(I0,D0)|0,B=B+Math.imul(V0,L0)|0,y=y+Math.imul(V0,R0)|0,y=y+Math.imul(U0,L0)|0,w=w+Math.imul(U0,R0)|0,B=B+Math.imul(Y0,z0)|0,y=y+Math.imul(Y0,M0)|0,y=y+Math.imul(Z0,z0)|0,w=w+Math.imul(Z0,M0)|0,B=B+Math.imul(i,v0)|0,y=y+Math.imul(i,q0)|0,y=y+Math.imul($0,v0)|0,w=w+Math.imul($0,q0)|0,B=B+Math.imul(a,k0)|0,y=y+Math.imul(a,g0)|0,y=y+Math.imul(r,k0)|0,w=w+Math.imul(r,g0)|0,B=B+Math.imul(s,x0)|0,y=y+Math.imul(s,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,_0)|0,B=B+Math.imul(o,y0)|0,y=y+Math.imul(o,w0)|0,y=y+Math.imul(u,y0)|0,w=w+Math.imul(u,w0)|0,B=B+Math.imul(d,p0)|0,y=y+Math.imul(d,c0)|0,y=y+Math.imul(b,p0)|0,w=w+Math.imul(b,c0)|0,B=B+Math.imul(p,d0)|0,y=y+Math.imul(p,b0)|0,y=y+Math.imul(c,d0)|0,w=w+Math.imul(c,b0)|0;var e0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(e0>>>26)|0,e0&=67108863,B=Math.imul(O0,T0),y=Math.imul(O0,D0),y=y+Math.imul(F0,T0)|0,w=Math.imul(F0,D0),B=B+Math.imul(K0,L0)|0,y=y+Math.imul(K0,R0)|0,y=y+Math.imul(I0,L0)|0,w=w+Math.imul(I0,R0)|0,B=B+Math.imul(V0,z0)|0,y=y+Math.imul(V0,M0)|0,y=y+Math.imul(U0,z0)|0,w=w+Math.imul(U0,M0)|0,B=B+Math.imul(Y0,v0)|0,y=y+Math.imul(Y0,q0)|0,y=y+Math.imul(Z0,v0)|0,w=w+Math.imul(Z0,q0)|0,B=B+Math.imul(i,k0)|0,y=y+Math.imul(i,g0)|0,y=y+Math.imul($0,k0)|0,w=w+Math.imul($0,g0)|0,B=B+Math.imul(a,x0)|0,y=y+Math.imul(a,_0)|0,y=y+Math.imul(r,x0)|0,w=w+Math.imul(r,_0)|0,B=B+Math.imul(s,y0)|0,y=y+Math.imul(s,w0)|0,y=y+Math.imul(t,y0)|0,w=w+Math.imul(t,w0)|0,B=B+Math.imul(o,p0)|0,y=y+Math.imul(o,c0)|0,y=y+Math.imul(u,p0)|0,w=w+Math.imul(u,c0)|0,B=B+Math.imul(d,d0)|0,y=y+Math.imul(d,b0)|0,y=y+Math.imul(b,d0)|0,w=w+Math.imul(b,b0)|0;var i0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(i0>>>26)|0,i0&=67108863,B=Math.imul(O0,L0),y=Math.imul(O0,R0),y=y+Math.imul(F0,L0)|0,w=Math.imul(F0,R0),B=B+Math.imul(K0,z0)|0,y=y+Math.imul(K0,M0)|0,y=y+Math.imul(I0,z0)|0,w=w+Math.imul(I0,M0)|0,B=B+Math.imul(V0,v0)|0,y=y+Math.imul(V0,q0)|0,y=y+Math.imul(U0,v0)|0,w=w+Math.imul(U0,q0)|0,B=B+Math.imul(Y0,k0)|0,y=y+Math.imul(Y0,g0)|0,y=y+Math.imul(Z0,k0)|0,w=w+Math.imul(Z0,g0)|0,B=B+Math.imul(i,x0)|0,y=y+Math.imul(i,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,_0)|0,B=B+Math.imul(a,y0)|0,y=y+Math.imul(a,w0)|0,y=y+Math.imul(r,y0)|0,w=w+Math.imul(r,w0)|0,B=B+Math.imul(s,p0)|0,y=y+Math.imul(s,c0)|0,y=y+Math.imul(t,p0)|0,w=w+Math.imul(t,c0)|0,B=B+Math.imul(o,d0)|0,y=y+Math.imul(o,b0)|0,y=y+Math.imul(u,d0)|0,w=w+Math.imul(u,b0)|0;var $$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+($$>>>26)|0,$$&=67108863,B=Math.imul(O0,z0),y=Math.imul(O0,M0),y=y+Math.imul(F0,z0)|0,w=Math.imul(F0,M0),B=B+Math.imul(K0,v0)|0,y=y+Math.imul(K0,q0)|0,y=y+Math.imul(I0,v0)|0,w=w+Math.imul(I0,q0)|0,B=B+Math.imul(V0,k0)|0,y=y+Math.imul(V0,g0)|0,y=y+Math.imul(U0,k0)|0,w=w+Math.imul(U0,g0)|0,B=B+Math.imul(Y0,x0)|0,y=y+Math.imul(Y0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,_0)|0,B=B+Math.imul(i,y0)|0,y=y+Math.imul(i,w0)|0,y=y+Math.imul($0,y0)|0,w=w+Math.imul($0,w0)|0,B=B+Math.imul(a,p0)|0,y=y+Math.imul(a,c0)|0,y=y+Math.imul(r,p0)|0,w=w+Math.imul(r,c0)|0,B=B+Math.imul(s,d0)|0,y=y+Math.imul(s,b0)|0,y=y+Math.imul(t,d0)|0,w=w+Math.imul(t,b0)|0;var Q$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,B=Math.imul(O0,v0),y=Math.imul(O0,q0),y=y+Math.imul(F0,v0)|0,w=Math.imul(F0,q0),B=B+Math.imul(K0,k0)|0,y=y+Math.imul(K0,g0)|0,y=y+Math.imul(I0,k0)|0,w=w+Math.imul(I0,g0)|0,B=B+Math.imul(V0,x0)|0,y=y+Math.imul(V0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,_0)|0,B=B+Math.imul(Y0,y0)|0,y=y+Math.imul(Y0,w0)|0,y=y+Math.imul(Z0,y0)|0,w=w+Math.imul(Z0,w0)|0,B=B+Math.imul(i,p0)|0,y=y+Math.imul(i,c0)|0,y=y+Math.imul($0,p0)|0,w=w+Math.imul($0,c0)|0,B=B+Math.imul(a,d0)|0,y=y+Math.imul(a,b0)|0,y=y+Math.imul(r,d0)|0,w=w+Math.imul(r,b0)|0;var Y$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,B=Math.imul(O0,k0),y=Math.imul(O0,g0),y=y+Math.imul(F0,k0)|0,w=Math.imul(F0,g0),B=B+Math.imul(K0,x0)|0,y=y+Math.imul(K0,_0)|0,y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,_0)|0,B=B+Math.imul(V0,y0)|0,y=y+Math.imul(V0,w0)|0,y=y+Math.imul(U0,y0)|0,w=w+Math.imul(U0,w0)|0,B=B+Math.imul(Y0,p0)|0,y=y+Math.imul(Y0,c0)|0,y=y+Math.imul(Z0,p0)|0,w=w+Math.imul(Z0,c0)|0,B=B+Math.imul(i,d0)|0,y=y+Math.imul(i,b0)|0,y=y+Math.imul($0,d0)|0,w=w+Math.imul($0,b0)|0;var Z$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,B=Math.imul(O0,x0),y=Math.imul(O0,_0),y=y+Math.imul(F0,x0)|0,w=Math.imul(F0,_0),B=B+Math.imul(K0,y0)|0,y=y+Math.imul(K0,w0)|0,y=y+Math.imul(I0,y0)|0,w=w+Math.imul(I0,w0)|0,B=B+Math.imul(V0,p0)|0,y=y+Math.imul(V0,c0)|0,y=y+Math.imul(U0,p0)|0,w=w+Math.imul(U0,c0)|0,B=B+Math.imul(Y0,d0)|0,y=y+Math.imul(Y0,b0)|0,y=y+Math.imul(Z0,d0)|0,w=w+Math.imul(Z0,b0)|0;var G$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(G$>>>26)|0,G$&=67108863,B=Math.imul(O0,y0),y=Math.imul(O0,w0),y=y+Math.imul(F0,y0)|0,w=Math.imul(F0,w0),B=B+Math.imul(K0,p0)|0,y=y+Math.imul(K0,c0)|0,y=y+Math.imul(I0,p0)|0,w=w+Math.imul(I0,c0)|0,B=B+Math.imul(V0,d0)|0,y=y+Math.imul(V0,b0)|0,y=y+Math.imul(U0,d0)|0,w=w+Math.imul(U0,b0)|0;var V$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(V$>>>26)|0,V$&=67108863,B=Math.imul(O0,p0),y=Math.imul(O0,c0),y=y+Math.imul(F0,p0)|0,w=Math.imul(F0,c0),B=B+Math.imul(K0,d0)|0,y=y+Math.imul(K0,b0)|0,y=y+Math.imul(I0,d0)|0,w=w+Math.imul(I0,b0)|0;var U$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(U$>>>26)|0,U$&=67108863,B=Math.imul(O0,d0),y=Math.imul(O0,b0),y=y+Math.imul(F0,d0)|0,w=Math.imul(F0,b0);var X$=(_+B|0)+((y&8191)<<13)|0;return _=(w+(y>>>13)|0)+(X$>>>26)|0,X$&=67108863,x[0]=l0,x[1]=o0,x[2]=u0,x[3]=n0,x[4]=s0,x[5]=t0,x[6]=m0,x[7]=a0,x[8]=r0,x[9]=e0,x[10]=i0,x[11]=$$,x[12]=Q$,x[13]=Y$,x[14]=Z$,x[15]=G$,x[16]=V$,x[17]=U$,x[18]=X$,_!==0&&(x[19]=_,k.length++),k};Math.imul||(H=W);function E(q,j,k){k.negative=j.negative^q.negative,k.length=q.length+j.length;for(var g=0,N=0,x=0;x<k.length-1;x++){var _=N;N=0;for(var B=g&67108863,y=Math.min(x,j.length-1),w=Math.max(0,x-q.length+1);w<=y;w++){var f=x-w,p=q.words[f]|0,c=j.words[w]|0,h=p*c,d=h&67108863;_=_+(h/67108864|0)|0,d=d+B|0,B=d&67108863,_=_+(d>>>26)|0,N+=_>>>26,_&=67108863}k.words[x]=B,g=_,_=N}return g!==0?k.words[x]=g:k.length--,k.strip()}function T(q,j,k){var g=new D;return g.mulp(q,j,k)}V.prototype.mulTo=function(q,j){var k,g=this.length+q.length;return this.length===10&&q.length===10?k=H(this,q,j):g<63?k=W(this,q,j):g<1024?k=E(this,q,j):k=T(this,q,j),k};function D(q,j){this.x=q,this.y=j}D.prototype.makeRBT=function(q){for(var j=new Array(q),k=V.prototype._countBits(q)-1,g=0;g<q;g++)j[g]=this.revBin(g,k,q);return j},D.prototype.revBin=function(q,j,k){if(q===0||q===k-1)return q;for(var g=0,N=0;N<j;N++)g|=(q&1)<<j-N-1,q>>=1;return g},D.prototype.permute=function(q,j,k,g,N,x){for(var _=0;_<x;_++)g[_]=j[q[_]],N[_]=k[q[_]]},D.prototype.transform=function(q,j,k,g,N,x){this.permute(x,q,j,k,g,N);for(var _=1;_<N;_<<=1)for(var B=_<<1,y=Math.cos(2*Math.PI/B),w=Math.sin(2*Math.PI/B),f=0;f<N;f+=B)for(var p=y,c=w,h=0;h<_;h++){var d=k[f+h],b=g[f+h],l=k[f+h+_],o=g[f+h+_],u=p*l-c*o;o=p*o+c*l,l=u,k[f+h]=d+l,g[f+h]=b+o,k[f+h+_]=d-l,g[f+h+_]=b-o,h!==B&&(u=y*p-w*c,c=y*c+w*p,p=u)}},D.prototype.guessLen13b=function(q,j){var k=Math.max(j,q)|1,g=k&1,N=0;for(k=k/2|0;k;k=k>>>1)N++;return 1<<N+1+g},D.prototype.conjugate=function(q,j,k){if(!(k<=1))for(var g=0;g<k/2;g++){var N=q[g];q[g]=q[k-g-1],q[k-g-1]=N,N=j[g],j[g]=-j[k-g-1],j[k-g-1]=-N}},D.prototype.normalize13b=function(q,j){for(var k=0,g=0;g<j/2;g++){var N=Math.round(q[2*g+1]/j)*8192+Math.round(q[2*g]/j)+k;q[g]=N&67108863,N<67108864?k=0:k=N/67108864|0}return q},D.prototype.convert13b=function(q,j,k,g){for(var N=0,x=0;x<j;x++)N=N+(q[x]|0),k[2*x]=N&8191,N=N>>>13,k[2*x+1]=N&8191,N=N>>>13;for(x=2*j;x<g;++x)k[x]=0;Z(N===0),Z((N&-8192)===0)},D.prototype.stub=function(q){for(var j=new Array(q),k=0;k<q;k++)j[k]=0;return j},D.prototype.mulp=function(q,j,k){var g=2*this.guessLen13b(q.length,j.length),N=this.makeRBT(g),x=this.stub(g),_=new Array(g),B=new Array(g),y=new Array(g),w=new Array(g),f=new Array(g),p=new Array(g),c=k.words;c.length=g,this.convert13b(q.words,q.length,_,g),this.convert13b(j.words,j.length,w,g),this.transform(_,x,B,y,g,N),this.transform(w,x,f,p,g,N);for(var h=0;h<g;h++){var d=B[h]*f[h]-y[h]*p[h];y[h]=B[h]*p[h]+y[h]*f[h],B[h]=d}return this.conjugate(B,y,g),this.transform(B,y,c,x,g,N),this.conjugate(c,x,g),this.normalize13b(c,g),k.negative=q.negative^j.negative,k.length=q.length+j.length,k.strip()},V.prototype.mul=function(q){var j=new V(null);return j.words=new Array(this.length+q.length),this.mulTo(q,j)},V.prototype.mulf=function(q){var j=new V(null);return j.words=new Array(this.length+q.length),T(this,q,j)},V.prototype.imul=function(q){return this.clone().mulTo(q,this)},V.prototype.imuln=function(q){Z(typeof q=="number"),Z(q<67108864);for(var j=0,k=0;k<this.length;k++){var g=(this.words[k]|0)*q,N=(g&67108863)+(j&67108863);j>>=26,j+=g/67108864|0,j+=N>>>26,this.words[k]=N&67108863}return j!==0&&(this.words[k]=j,this.length++),this},V.prototype.muln=function(q){return this.clone().imuln(q)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(q){var j=A(q);if(j.length===0)return new V(1);for(var k=this,g=0;g<j.length&&j[g]===0;g++,k=k.sqr());if(++g<j.length)for(var N=k.sqr();g<j.length;g++,N=N.sqr())j[g]!==0&&(k=k.mul(N));return k},V.prototype.iushln=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26,g=67108863>>>26-j<<26-j,N;if(j!==0){var x=0;for(N=0;N<this.length;N++){var _=this.words[N]&g,B=(this.words[N]|0)-_<<j;this.words[N]=B|x,x=_>>>26-j}x&&(this.words[N]=x,this.length++)}if(k!==0){for(N=this.length-1;N>=0;N--)this.words[N+k]=this.words[N];for(N=0;N<k;N++)this.words[N]=0;this.length+=k}return this.strip()},V.prototype.ishln=function(q){return Z(this.negative===0),this.iushln(q)},V.prototype.iushrn=function(q,j,k){Z(typeof q=="number"&&q>=0);var g;j?g=(j-j%26)/26:g=0;var N=q%26,x=Math.min((q-N)/26,this.length),_=67108863^67108863>>>N<<N,B=k;if(g-=x,g=Math.max(0,g),B){for(var y=0;y<x;y++)B.words[y]=this.words[y];B.length=x}if(x!==0)if(this.length>x)for(this.length-=x,y=0;y<this.length;y++)this.words[y]=this.words[y+x];else this.words[0]=0,this.length=1;var w=0;for(y=this.length-1;y>=0&&(w!==0||y>=g);y--){var f=this.words[y]|0;this.words[y]=w<<26-N|f>>>N,w=f&_}return B&&w!==0&&(B.words[B.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},V.prototype.ishrn=function(q,j,k){return Z(this.negative===0),this.iushrn(q,j,k)},V.prototype.shln=function(q){return this.clone().ishln(q)},V.prototype.ushln=function(q){return this.clone().iushln(q)},V.prototype.shrn=function(q){return this.clone().ishrn(q)},V.prototype.ushrn=function(q){return this.clone().iushrn(q)},V.prototype.testn=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26,g=1<<j;if(this.length<=k)return!1;var N=this.words[k];return!!(N&g)},V.prototype.imaskn=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26;if(Z(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(j!==0&&k++,this.length=Math.min(k,this.length),j!==0){var g=67108863^67108863>>>j<<j;this.words[this.length-1]&=g}return this.strip()},V.prototype.maskn=function(q){return this.clone().imaskn(q)},V.prototype.iaddn=function(q){return Z(typeof q=="number"),Z(q<67108864),q<0?this.isubn(-q):this.negative!==0?this.length===1&&(this.words[0]|0)<q?(this.words[0]=q-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(q),this.negative=1,this):this._iaddn(q)},V.prototype._iaddn=function(q){this.words[0]+=q;for(var j=0;j<this.length&&this.words[j]>=67108864;j++)this.words[j]-=67108864,j===this.length-1?this.words[j+1]=1:this.words[j+1]++;return this.length=Math.max(this.length,j+1),this},V.prototype.isubn=function(q){if(Z(typeof q=="number"),Z(q<67108864),q<0)return this.iaddn(-q);if(this.negative!==0)return this.negative=0,this.iaddn(q),this.negative=1,this;if(this.words[0]-=q,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var j=0;j<this.length&&this.words[j]<0;j++)this.words[j]+=67108864,this.words[j+1]-=1;return this.strip()},V.prototype.addn=function(q){return this.clone().iaddn(q)},V.prototype.subn=function(q){return this.clone().isubn(q)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(q,j,k){var g=q.length+k,N;this._expand(g);var x,_=0;for(N=0;N<q.length;N++){x=(this.words[N+k]|0)+_;var B=(q.words[N]|0)*j;x-=B&67108863,_=(x>>26)-(B/67108864|0),this.words[N+k]=x&67108863}for(;N<this.length-k;N++)x=(this.words[N+k]|0)+_,_=x>>26,this.words[N+k]=x&67108863;if(_===0)return this.strip();for(Z(_===-1),_=0,N=0;N<this.length;N++)x=-(this.words[N]|0)+_,_=x>>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(q,j){var k=this.length-q.length,g=this.clone(),N=q,x=N.words[N.length-1]|0,_=this._countBits(x);k=26-_,k!==0&&(N=N.ushln(k),g.iushln(k),x=N.words[N.length-1]|0);var B=g.length-N.length,y;if(j!=="mod"){y=new V(null),y.length=B+1,y.words=new Array(y.length);for(var w=0;w<y.length;w++)y.words[w]=0}var f=g.clone()._ishlnsubmul(N,1,B);f.negative===0&&(g=f,y&&(y.words[B]=1));for(var p=B-1;p>=0;p--){var c=(g.words[N.length+p]|0)*67108864+(g.words[N.length+p-1]|0);for(c=Math.min(c/x|0,67108863),g._ishlnsubmul(N,c,p);g.negative!==0;)c--,g.negative=0,g._ishlnsubmul(N,1,p),g.isZero()||(g.negative^=1);y&&(y.words[p]=c)}return y&&y.strip(),g.strip(),j!=="div"&&k!==0&&g.iushrn(k),{div:y||null,mod:g}},V.prototype.divmod=function(q,j,k){if(Z(!q.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var g,N,x;return this.negative!==0&&q.negative===0?(x=this.neg().divmod(q,j),j!=="mod"&&(g=x.div.neg()),j!=="div"&&(N=x.mod.neg(),k&&N.negative!==0&&N.iadd(q)),{div:g,mod:N}):this.negative===0&&q.negative!==0?(x=this.divmod(q.neg(),j),j!=="mod"&&(g=x.div.neg()),{div:g,mod:x.mod}):(this.negative&q.negative)!==0?(x=this.neg().divmod(q.neg(),j),j!=="div"&&(N=x.mod.neg(),k&&N.negative!==0&&N.isub(q)),{div:x.div,mod:N}):q.length>this.length||this.cmp(q)<0?{div:new V(0),mod:this}:q.length===1?j==="div"?{div:this.divn(q.words[0]),mod:null}:j==="mod"?{div:null,mod:new V(this.modn(q.words[0]))}:{div:this.divn(q.words[0]),mod:new V(this.modn(q.words[0]))}:this._wordDiv(q,j)},V.prototype.div=function(q){return this.divmod(q,"div",!1).div},V.prototype.mod=function(q){return this.divmod(q,"mod",!1).mod},V.prototype.umod=function(q){return this.divmod(q,"mod",!0).mod},V.prototype.divRound=function(q){var j=this.divmod(q);if(j.mod.isZero())return j.div;var k=j.div.negative!==0?j.mod.isub(q):j.mod,g=q.ushrn(1),N=q.andln(1),x=k.cmp(g);return x<0||N===1&&x===0?j.div:j.div.negative!==0?j.div.isubn(1):j.div.iaddn(1)},V.prototype.modn=function(q){Z(q<=67108863);for(var j=(1<<26)%q,k=0,g=this.length-1;g>=0;g--)k=(j*k+(this.words[g]|0))%q;return k},V.prototype.idivn=function(q){Z(q<=67108863);for(var j=0,k=this.length-1;k>=0;k--){var g=(this.words[k]|0)+j*67108864;this.words[k]=g/q|0,j=g%q}return this.strip()},V.prototype.divn=function(q){return this.clone().idivn(q)},V.prototype.egcd=function(q){Z(q.negative===0),Z(!q.isZero());var j=this,k=q.clone();j.negative!==0?j=j.umod(q):j=j.clone();for(var g=new V(1),N=new V(0),x=new V(0),_=new V(1),B=0;j.isEven()&&k.isEven();)j.iushrn(1),k.iushrn(1),++B;for(var y=k.clone(),w=j.clone();!j.isZero();){for(var f=0,p=1;(j.words[0]&p)===0&&f<26;++f,p<<=1);if(f>0)for(j.iushrn(f);f-- >0;)(g.isOdd()||N.isOdd())&&(g.iadd(y),N.isub(w)),g.iushrn(1),N.iushrn(1);for(var c=0,h=1;(k.words[0]&h)===0&&c<26;++c,h<<=1);if(c>0)for(k.iushrn(c);c-- >0;)(x.isOdd()||_.isOdd())&&(x.iadd(y),_.isub(w)),x.iushrn(1),_.iushrn(1);j.cmp(k)>=0?(j.isub(k),g.isub(x),N.isub(_)):(k.isub(j),x.isub(g),_.isub(N))}return{a:x,b:_,gcd:k.iushln(B)}},V.prototype._invmp=function(q){Z(q.negative===0),Z(!q.isZero());var j=this,k=q.clone();j.negative!==0?j=j.umod(q):j=j.clone();for(var g=new V(1),N=new V(0),x=k.clone();j.cmpn(1)>0&&k.cmpn(1)>0;){for(var _=0,B=1;(j.words[0]&B)===0&&_<26;++_,B<<=1);if(_>0)for(j.iushrn(_);_-- >0;)g.isOdd()&&g.iadd(x),g.iushrn(1);for(var y=0,w=1;(k.words[0]&w)===0&&y<26;++y,w<<=1);if(y>0)for(k.iushrn(y);y-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);j.cmp(k)>=0?(j.isub(k),g.isub(N)):(k.isub(j),N.isub(g))}var f;return j.cmpn(1)===0?f=g:f=N,f.cmpn(0)<0&&f.iadd(q),f},V.prototype.gcd=function(q){if(this.isZero())return q.abs();if(q.isZero())return this.abs();var j=this.clone(),k=q.clone();j.negative=0,k.negative=0;for(var g=0;j.isEven()&&k.isEven();g++)j.iushrn(1),k.iushrn(1);do{for(;j.isEven();)j.iushrn(1);for(;k.isEven();)k.iushrn(1);var N=j.cmp(k);if(N<0){var x=j;j=k,k=x}else if(N===0||k.cmpn(1)===0)break;j.isub(k)}while(!0);return k.iushln(g)},V.prototype.invm=function(q){return this.egcd(q).a.umod(q)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(q){return this.words[0]&q},V.prototype.bincn=function(q){Z(typeof q=="number");var j=q%26,k=(q-j)/26,g=1<<j;if(this.length<=k)return this._expand(k+1),this.words[k]|=g,this;for(var N=g,x=k;N!==0&&x<this.length;x++){var _=this.words[x]|0;_+=N,N=_>>>26,_&=67108863,this.words[x]=_}return N!==0&&(this.words[x]=N,this.length++),this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(q){var j=q<0;if(this.negative!==0&&!j)return-1;if(this.negative===0&&j)return 1;this.strip();var k;if(this.length>1)k=1;else{j&&(q=-q),Z(q<=67108863,"Number is too big");var g=this.words[0]|0;k=g===q?0:g<q?-1:1}return this.negative!==0?-k|0:k},V.prototype.cmp=function(q){if(this.negative!==0&&q.negative===0)return-1;if(this.negative===0&&q.negative!==0)return 1;var j=this.ucmp(q);return this.negative!==0?-j|0:j},V.prototype.ucmp=function(q){if(this.length>q.length)return 1;if(this.length<q.length)return-1;for(var j=0,k=this.length-1;k>=0;k--){var g=this.words[k]|0,N=q.words[k]|0;if(g!==N){g<N?j=-1:g>N&&(j=1);break}}return j},V.prototype.gtn=function(q){return this.cmpn(q)===1},V.prototype.gt=function(q){return this.cmp(q)===1},V.prototype.gten=function(q){return this.cmpn(q)>=0},V.prototype.gte=function(q){return this.cmp(q)>=0},V.prototype.ltn=function(q){return this.cmpn(q)===-1},V.prototype.lt=function(q){return this.cmp(q)===-1},V.prototype.lten=function(q){return this.cmpn(q)<=0},V.prototype.lte=function(q){return this.cmp(q)<=0},V.prototype.eqn=function(q){return this.cmpn(q)===0},V.prototype.eq=function(q){return this.cmp(q)===0},V.red=function(q){return new S(q)},V.prototype.toRed=function(q){return Z(!this.red,"Already a number in reduction context"),Z(this.negative===0,"red works only with positives"),q.convertTo(this)._forceRed(q)},V.prototype.fromRed=function(){return Z(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(q){return this.red=q,this},V.prototype.forceRed=function(q){return Z(!this.red,"Already a number in reduction context"),this._forceRed(q)},V.prototype.redAdd=function(q){return Z(this.red,"redAdd works only with red numbers"),this.red.add(this,q)},V.prototype.redIAdd=function(q){return Z(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,q)},V.prototype.redSub=function(q){return Z(this.red,"redSub works only with red numbers"),this.red.sub(this,q)},V.prototype.redISub=function(q){return Z(this.red,"redISub works only with red numbers"),this.red.isub(this,q)},V.prototype.redShl=function(q){return Z(this.red,"redShl works only with red numbers"),this.red.shl(this,q)},V.prototype.redMul=function(q){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,q),this.red.mul(this,q)},V.prototype.redIMul=function(q){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,q),this.red.imul(this,q)},V.prototype.redSqr=function(){return Z(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return Z(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return Z(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return Z(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return Z(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(q){return Z(this.red&&!q.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,q)};var C={k256:null,p224:null,p192:null,p25519:null};function L(q,j){this.name=q,this.p=new V(j,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}L.prototype._tmp=function(){var q=new V(null);return q.words=new Array(Math.ceil(this.n/13)),q},L.prototype.ireduce=function(q){var j=q,k;do this.split(j,this.tmp),j=this.imulK(j),j=j.iadd(this.tmp),k=j.bitLength();while(k>this.n);var g=k<this.n?-1:j.ucmp(this.p);return g===0?(j.words[0]=0,j.length=1):g>0?j.isub(this.p):j.strip!==void 0?j.strip():j._strip(),j},L.prototype.split=function(q,j){q.iushrn(this.n,0,j)},L.prototype.imulK=function(q){return q.imul(this.k)};function R(){L.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}G(R,L),R.prototype.split=function(q,j){for(var k=4194303,g=Math.min(q.length,9),N=0;N<g;N++)j.words[N]=q.words[N];if(j.length=g,q.length<=9){q.words[0]=0,q.length=1;return}var x=q.words[9];for(j.words[j.length++]=x&k,N=10;N<q.length;N++){var _=q.words[N]|0;q.words[N-10]=(_&k)<<4|x>>>22,x=_}x>>>=22,q.words[N-10]=x,x===0&&q.length>10?q.length-=10:q.length-=9},R.prototype.imulK=function(q){q.words[q.length]=0,q.words[q.length+1]=0,q.length+=2;for(var j=0,k=0;k<q.length;k++){var g=q.words[k]|0;j+=g*977,q.words[k]=j&67108863,j=g*64+(j/67108864|0)}return q.words[q.length-1]===0&&(q.length--,q.words[q.length-1]===0&&q.length--),q};function P(){L.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}G(P,L);function z(){L.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}G(z,L);function M(){L.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}G(M,L),M.prototype.imulK=function(q){for(var j=0,k=0;k<q.length;k++){var g=(q.words[k]|0)*19+j,N=g&67108863;g>>>=26,q.words[k]=N,j=g}return j!==0&&(q.words[q.length++]=j),q},V._prime=function(q){if(C[q])return C[q];var j;if(q==="k256")j=new R;else if(q==="p224")j=new P;else if(q==="p192")j=new z;else if(q==="p25519")j=new M;else throw new Error("Unknown prime "+q);return C[q]=j,j};function S(q){if(typeof q=="string"){var j=V._prime(q);this.m=j.p,this.prime=j}else Z(q.gtn(1),"modulus must be greater than 1"),this.m=q,this.prime=null}S.prototype._verify1=function(q){Z(q.negative===0,"red works only with positives"),Z(q.red,"red works only with red numbers")},S.prototype._verify2=function(q,j){Z((q.negative|j.negative)===0,"red works only with positives"),Z(q.red&&q.red===j.red,"red works only with red numbers")},S.prototype.imod=function(q){return this.prime?this.prime.ireduce(q)._forceRed(this):q.umod(this.m)._forceRed(this)},S.prototype.neg=function(q){return q.isZero()?q.clone():this.m.sub(q)._forceRed(this)},S.prototype.add=function(q,j){this._verify2(q,j);var k=q.add(j);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},S.prototype.iadd=function(q,j){this._verify2(q,j);var k=q.iadd(j);return k.cmp(this.m)>=0&&k.isub(this.m),k},S.prototype.sub=function(q,j){this._verify2(q,j);var k=q.sub(j);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},S.prototype.isub=function(q,j){this._verify2(q,j);var k=q.isub(j);return k.cmpn(0)<0&&k.iadd(this.m),k},S.prototype.shl=function(q,j){return this._verify1(q),this.imod(q.ushln(j))},S.prototype.imul=function(q,j){return this._verify2(q,j),this.imod(q.imul(j))},S.prototype.mul=function(q,j){return this._verify2(q,j),this.imod(q.mul(j))},S.prototype.isqr=function(q){return this.imul(q,q.clone())},S.prototype.sqr=function(q){return this.mul(q,q)},S.prototype.sqrt=function(q){if(q.isZero())return q.clone();var j=this.m.andln(3);if(Z(j%2===1),j===3){var k=this.m.add(new V(1)).iushrn(2);return this.pow(q,k)}for(var g=this.m.subn(1),N=0;!g.isZero()&&g.andln(1)===0;)N++,g.iushrn(1);Z(!g.isZero());var x=new V(1).toRed(this),_=x.redNeg(),B=this.m.subn(1).iushrn(1),y=this.m.bitLength();for(y=new V(2*y*y).toRed(this);this.pow(y,B).cmp(_)!==0;)y.redIAdd(_);for(var w=this.pow(y,g),f=this.pow(q,g.addn(1).iushrn(1)),p=this.pow(q,g),c=N;p.cmp(x)!==0;){for(var h=p,d=0;h.cmp(x)!==0;d++)h=h.redSqr();Z(d<c);var b=this.pow(w,new V(1).iushln(c-d-1));f=f.redMul(b),w=b.redSqr(),p=p.redMul(w),c=d}return f},S.prototype.invm=function(q){var j=q._invmp(this.m);return j.negative!==0?(j.negative=0,this.imod(j).redNeg()):this.imod(j)},S.prototype.pow=function(q,j){if(j.isZero())return new V(1).toRed(this);if(j.cmpn(1)===0)return q.clone();var k=4,g=new Array(1<<k);g[0]=new V(1).toRed(this),g[1]=q;for(var N=2;N<g.length;N++)g[N]=this.mul(g[N-1],q);var x=g[0],_=0,B=0,y=j.bitLength()%26;for(y===0&&(y=26),N=j.length-1;N>=0;N--){for(var w=j.words[N],f=y-1;f>=0;f--){var p=w>>f&1;if(x!==g[0]&&(x=this.sqr(x)),p===0&&_===0){B=0;continue}_<<=1,_|=p,B++,!(B!==k&&(N!==0||f!==0))&&(x=this.mul(x,g[_]),B=0,_=0)}y=26}return x},S.prototype.convertTo=function(q){var j=q.umod(this.m);return j===q?j.clone():j},S.prototype.convertFrom=function(q){var j=q.clone();return j.red=null,j},V.mont=function(q){return new v(q)};function v(q){S.call(this,q),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new V(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}G(v,S),v.prototype.convertTo=function(q){return this.imod(q.ushln(this.shift))},v.prototype.convertFrom=function(q){var j=this.imod(q.mul(this.rinv));return j.red=null,j},v.prototype.imul=function(q,j){if(q.isZero()||j.isZero())return q.words[0]=0,q.length=1,q;var k=q.imul(j),g=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=k.isub(g).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},v.prototype.mul=function(q,j){if(q.isZero()||j.isZero())return new V(0)._forceRed(this);var k=q.mul(j),g=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=k.isub(g).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},v.prototype.invm=function(q){var j=this.imod(q._invmp(this.m).mul(this.r2));return j._forceRed(this)}})(typeof $>"u"||$,bZ)}}),qQ=P$({"node_modules/miller-rabin/node_modules/bn.js/lib/bn.js"(bZ,$){(function(Q,Y){function Z(q,j){if(!q)throw new Error(j||"Assertion failed")}function G(q,j){q.super_=j;var k=function(){};k.prototype=j.prototype,q.prototype=new k,q.prototype.constructor=q}function V(q,j,k){if(V.isBN(q))return q;this.negative=0,this.words=null,this.length=0,this.red=null,q!==null&&((j==="le"||j==="be")&&(k=j,j=10),this._init(q||0,j||10,k||"be"))}typeof Q=="object"?Q.exports=V:Y.BN=V,V.BN=V,V.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=L$("buffer").Buffer}catch{}V.isBN=function(q){return q instanceof V?!0:q!==null&&typeof q=="object"&&q.constructor.wordSize===V.wordSize&&Array.isArray(q.words)},V.max=function(q,j){return q.cmp(j)>0?q:j},V.min=function(q,j){return q.cmp(j)<0?q:j},V.prototype._init=function(q,j,k){if(typeof q=="number")return this._initNumber(q,j,k);if(typeof q=="object")return this._initArray(q,j,k);j==="hex"&&(j=16),Z(j===(j|0)&&j>=2&&j<=36),q=q.toString().replace(/\s+/g,"");var g=0;q[0]==="-"&&(g++,this.negative=1),g<q.length&&(j===16?this._parseHex(q,g,k):(this._parseBase(q,j,g),k==="le"&&this._initArray(this.toArray(),j,k)))},V.prototype._initNumber=function(q,j,k){q<0&&(this.negative=1,q=-q),q<67108864?(this.words=[q&67108863],this.length=1):q<4503599627370496?(this.words=[q&67108863,q/67108864&67108863],this.length=2):(Z(q<9007199254740992),this.words=[q&67108863,q/67108864&67108863,1],this.length=3),k==="le"&&this._initArray(this.toArray(),j,k)},V.prototype._initArray=function(q,j,k){if(Z(typeof q.length=="number"),q.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(q.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var N,x,_=0;if(k==="be")for(g=q.length-1,N=0;g>=0;g-=3)x=q[g]|q[g-1]<<8|q[g-2]<<16,this.words[N]|=x<<_&67108863,this.words[N+1]=x>>>26-_&67108863,_+=24,_>=26&&(_-=26,N++);else if(k==="le")for(g=0,N=0;g<q.length;g+=3)x=q[g]|q[g+1]<<8|q[g+2]<<16,this.words[N]|=x<<_&67108863,this.words[N+1]=x>>>26-_&67108863,_+=24,_>=26&&(_-=26,N++);return this.strip()};function X(q,j){var k=q.charCodeAt(j);return k>=65&&k<=70?k-55:k>=97&&k<=102?k-87:k-48&15}function K(q,j,k){var g=X(q,k);return k-1>=j&&(g|=X(q,k-1)<<4),g}V.prototype._parseHex=function(q,j,k){this.length=Math.ceil((q.length-j)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var N=0,x=0,_;if(k==="be")for(g=q.length-1;g>=j;g-=2)_=K(q,j,g)<<N,this.words[x]|=_&67108863,N>=18?(N-=18,x+=1,this.words[x]|=_>>>26):N+=8;else{var B=q.length-j;for(g=B%2===0?j+1:j;g<q.length;g+=2)_=K(q,j,g)<<N,this.words[x]|=_&67108863,N>=18?(N-=18,x+=1,this.words[x]|=_>>>26):N+=8}this.strip()};function I(q,j,k,g){for(var N=0,x=Math.min(q.length,k),_=j;_<x;_++){var B=q.charCodeAt(_)-48;N*=g,B>=49?N+=B-49+10:B>=17?N+=B-17+10:N+=B}return N}V.prototype._parseBase=function(q,j,k){this.words=[0],this.length=1;for(var g=0,N=1;N<=67108863;N*=j)g++;g--,N=N/j|0;for(var x=q.length-k,_=x%g,B=Math.min(x,x-_)+k,y=0,w=k;w<B;w+=g)y=I(q,w,w+g,j),this.imuln(N),this.words[0]+y<67108864?this.words[0]+=y:this._iaddn(y);if(_!==0){var f=1;for(y=I(q,w,q.length,j),w=0;w<_;w++)f*=j;this.imuln(f),this.words[0]+y<67108864?this.words[0]+=y:this._iaddn(y)}this.strip()},V.prototype.copy=function(q){q.words=new Array(this.length);for(var j=0;j<this.length;j++)q.words[j]=this.words[j];q.length=this.length,q.negative=this.negative,q.red=this.red},V.prototype.clone=function(){var q=new V(null);return this.copy(q),q},V.prototype._expand=function(q){for(;this.length<q;)this.words[this.length++]=0;return this},V.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},V.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},V.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var J=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],O=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];V.prototype.toString=function(q,j){q=q||10,j=j|0||1;var k;if(q===16||q==="hex"){k="";for(var g=0,N=0,x=0;x<this.length;x++){var _=this.words[x],B=((_<<g|N)&16777215).toString(16);N=_>>>24-g&16777215,N!==0||x!==this.length-1?k=J[6-B.length]+B+k:k=B+k,g+=2,g>=26&&(g-=26,x--)}for(N!==0&&(k=N.toString(16)+k);k.length%j!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(q===(q|0)&&q>=2&&q<=36){var y=O[q],w=F[q];k="";var f=this.clone();for(f.negative=0;!f.isZero();){var p=f.modn(w).toString(q);f=f.idivn(w),f.isZero()?k=p+k:k=J[y-p.length]+p+k}for(this.isZero()&&(k="0"+k);k.length%j!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}Z(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var q=this.words[0];return this.length===2?q+=this.words[1]*67108864:this.length===3&&this.words[2]===1?q+=4503599627370496+this.words[1]*67108864:this.length>2&&Z(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-q:q},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(q,j){return Z(typeof U<"u"),this.toArrayLike(U,q,j)},V.prototype.toArray=function(q,j){return this.toArrayLike(Array,q,j)},V.prototype.toArrayLike=function(q,j,k){var g=this.byteLength(),N=k||Math.max(1,g);Z(g<=N,"byte array longer than desired length"),Z(N>0,"Requested array length <= 0"),this.strip();var x=j==="le",_=new q(N),B,y,w=this.clone();if(x){for(y=0;!w.isZero();y++)B=w.andln(255),w.iushrn(8),_[y]=B;for(;y<N;y++)_[y]=0}else{for(y=0;y<N-g;y++)_[y]=0;for(y=0;!w.isZero();y++)B=w.andln(255),w.iushrn(8),_[N-y-1]=B}return _},Math.clz32?V.prototype._countBits=function(q){return 32-Math.clz32(q)}:V.prototype._countBits=function(q){var j=q,k=0;return j>=4096&&(k+=13,j>>>=13),j>=64&&(k+=7,j>>>=7),j>=8&&(k+=4,j>>>=4),j>=2&&(k+=2,j>>>=2),k+j},V.prototype._zeroBits=function(q){if(q===0)return 26;var j=q,k=0;return(j&8191)===0&&(k+=13,j>>>=13),(j&127)===0&&(k+=7,j>>>=7),(j&15)===0&&(k+=4,j>>>=4),(j&3)===0&&(k+=2,j>>>=2),(j&1)===0&&k++,k},V.prototype.bitLength=function(){var q=this.words[this.length-1],j=this._countBits(q);return(this.length-1)*26+j};function A(q){for(var j=new Array(q.bitLength()),k=0;k<j.length;k++){var g=k/26|0,N=k%26;j[k]=(q.words[g]&1<<N)>>>N}return j}V.prototype.zeroBits=function(){if(this.isZero())return 0;for(var q=0,j=0;j<this.length;j++){var k=this._zeroBits(this.words[j]);if(q+=k,k!==26)break}return q},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(q){return this.negative!==0?this.abs().inotn(q).iaddn(1):this.clone()},V.prototype.fromTwos=function(q){return this.testn(q-1)?this.notn(q).iaddn(1).ineg():this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},V.prototype.iuor=function(q){for(;this.length<q.length;)this.words[this.length++]=0;for(var j=0;j<q.length;j++)this.words[j]=this.words[j]|q.words[j];return this.strip()},V.prototype.ior=function(q){return Z((this.negative|q.negative)===0),this.iuor(q)},V.prototype.or=function(q){return this.length>q.length?this.clone().ior(q):q.clone().ior(this)},V.prototype.uor=function(q){return this.length>q.length?this.clone().iuor(q):q.clone().iuor(this)},V.prototype.iuand=function(q){var j;this.length>q.length?j=q:j=this;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]&q.words[k];return this.length=j.length,this.strip()},V.prototype.iand=function(q){return Z((this.negative|q.negative)===0),this.iuand(q)},V.prototype.and=function(q){return this.length>q.length?this.clone().iand(q):q.clone().iand(this)},V.prototype.uand=function(q){return this.length>q.length?this.clone().iuand(q):q.clone().iuand(this)},V.prototype.iuxor=function(q){var j,k;this.length>q.length?(j=this,k=q):(j=q,k=this);for(var g=0;g<k.length;g++)this.words[g]=j.words[g]^k.words[g];if(this!==j)for(;g<j.length;g++)this.words[g]=j.words[g];return this.length=j.length,this.strip()},V.prototype.ixor=function(q){return Z((this.negative|q.negative)===0),this.iuxor(q)},V.prototype.xor=function(q){return this.length>q.length?this.clone().ixor(q):q.clone().ixor(this)},V.prototype.uxor=function(q){return this.length>q.length?this.clone().iuxor(q):q.clone().iuxor(this)},V.prototype.inotn=function(q){Z(typeof q=="number"&&q>=0);var j=Math.ceil(q/26)|0,k=q%26;this._expand(j),k>0&&j--;for(var g=0;g<j;g++)this.words[g]=~this.words[g]&67108863;return k>0&&(this.words[g]=~this.words[g]&67108863>>26-k),this.strip()},V.prototype.notn=function(q){return this.clone().inotn(q)},V.prototype.setn=function(q,j){Z(typeof q=="number"&&q>=0);var k=q/26|0,g=q%26;return this._expand(k+1),j?this.words[k]=this.words[k]|1<<g:this.words[k]=this.words[k]&~(1<<g),this.strip()},V.prototype.iadd=function(q){var j;if(this.negative!==0&&q.negative===0)return this.negative=0,j=this.isub(q),this.negative^=1,this._normSign();if(this.negative===0&&q.negative!==0)return q.negative=0,j=this.isub(q),q.negative=1,j._normSign();var k,g;this.length>q.length?(k=this,g=q):(k=q,g=this);for(var N=0,x=0;x<g.length;x++)j=(k.words[x]|0)+(g.words[x]|0)+N,this.words[x]=j&67108863,N=j>>>26;for(;N!==0&&x<k.length;x++)j=(k.words[x]|0)+N,this.words[x]=j&67108863,N=j>>>26;if(this.length=k.length,N!==0)this.words[this.length]=N,this.length++;else if(k!==this)for(;x<k.length;x++)this.words[x]=k.words[x];return this},V.prototype.add=function(q){var j;return q.negative!==0&&this.negative===0?(q.negative=0,j=this.sub(q),q.negative^=1,j):q.negative===0&&this.negative!==0?(this.negative=0,j=q.sub(this),this.negative=1,j):this.length>q.length?this.clone().iadd(q):q.clone().iadd(this)},V.prototype.isub=function(q){if(q.negative!==0){q.negative=0;var j=this.iadd(q);return q.negative=1,j._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(q),this.negative=1,this._normSign();var k=this.cmp(q);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,N;k>0?(g=this,N=q):(g=q,N=this);for(var x=0,_=0;_<N.length;_++)j=(g.words[_]|0)-(N.words[_]|0)+x,x=j>>26,this.words[_]=j&67108863;for(;x!==0&&_<g.length;_++)j=(g.words[_]|0)+x,x=j>>26,this.words[_]=j&67108863;if(x===0&&_<g.length&&g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this.length=Math.max(this.length,_),g!==this&&(this.negative=1),this.strip()},V.prototype.sub=function(q){return this.clone().isub(q)};function W(q,j,k){k.negative=j.negative^q.negative;var g=q.length+j.length|0;k.length=g,g=g-1|0;var N=q.words[0]|0,x=j.words[0]|0,_=N*x,B=_&67108863,y=_/67108864|0;k.words[0]=B;for(var w=1;w<g;w++){for(var f=y>>>26,p=y&67108863,c=Math.min(w,j.length-1),h=Math.max(0,w-q.length+1);h<=c;h++){var d=w-h|0;N=q.words[d]|0,x=j.words[h]|0,_=N*x+p,f+=_/67108864|0,p=_&67108863}k.words[w]=p|0,y=f|0}return y!==0?k.words[w]=y|0:k.length--,k.strip()}var H=function(q,j,k){var g=q.words,N=j.words,x=k.words,_=0,B,y,w,f=g[0]|0,p=f&8191,c=f>>>13,h=g[1]|0,d=h&8191,b=h>>>13,l=g[2]|0,o=l&8191,u=l>>>13,n=g[3]|0,s=n&8191,t=n>>>13,m=g[4]|0,a=m&8191,r=m>>>13,e=g[5]|0,i=e&8191,$0=e>>>13,Q0=g[6]|0,Y0=Q0&8191,Z0=Q0>>>13,G0=g[7]|0,V0=G0&8191,U0=G0>>>13,X0=g[8]|0,K0=X0&8191,I0=X0>>>13,J0=g[9]|0,O0=J0&8191,F0=J0>>>13,A0=N[0]|0,W0=A0&8191,H0=A0>>>13,E0=N[1]|0,T0=E0&8191,D0=E0>>>13,C0=N[2]|0,L0=C0&8191,R0=C0>>>13,P0=N[3]|0,z0=P0&8191,M0=P0>>>13,S0=N[4]|0,v0=S0&8191,q0=S0>>>13,j0=N[5]|0,k0=j0&8191,g0=j0>>>13,N0=N[6]|0,x0=N0&8191,_0=N0>>>13,B0=N[7]|0,y0=B0&8191,w0=B0>>>13,f0=N[8]|0,p0=f0&8191,c0=f0>>>13,h0=N[9]|0,d0=h0&8191,b0=h0>>>13;k.negative=q.negative^j.negative,k.length=19,B=Math.imul(p,W0),y=Math.imul(p,H0),y=y+Math.imul(c,W0)|0,w=Math.imul(c,H0);var l0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(l0>>>26)|0,l0&=67108863,B=Math.imul(d,W0),y=Math.imul(d,H0),y=y+Math.imul(b,W0)|0,w=Math.imul(b,H0),B=B+Math.imul(p,T0)|0,y=y+Math.imul(p,D0)|0,y=y+Math.imul(c,T0)|0,w=w+Math.imul(c,D0)|0;var o0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(o0>>>26)|0,o0&=67108863,B=Math.imul(o,W0),y=Math.imul(o,H0),y=y+Math.imul(u,W0)|0,w=Math.imul(u,H0),B=B+Math.imul(d,T0)|0,y=y+Math.imul(d,D0)|0,y=y+Math.imul(b,T0)|0,w=w+Math.imul(b,D0)|0,B=B+Math.imul(p,L0)|0,y=y+Math.imul(p,R0)|0,y=y+Math.imul(c,L0)|0,w=w+Math.imul(c,R0)|0;var u0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(u0>>>26)|0,u0&=67108863,B=Math.imul(s,W0),y=Math.imul(s,H0),y=y+Math.imul(t,W0)|0,w=Math.imul(t,H0),B=B+Math.imul(o,T0)|0,y=y+Math.imul(o,D0)|0,y=y+Math.imul(u,T0)|0,w=w+Math.imul(u,D0)|0,B=B+Math.imul(d,L0)|0,y=y+Math.imul(d,R0)|0,y=y+Math.imul(b,L0)|0,w=w+Math.imul(b,R0)|0,B=B+Math.imul(p,z0)|0,y=y+Math.imul(p,M0)|0,y=y+Math.imul(c,z0)|0,w=w+Math.imul(c,M0)|0;var n0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(n0>>>26)|0,n0&=67108863,B=Math.imul(a,W0),y=Math.imul(a,H0),y=y+Math.imul(r,W0)|0,w=Math.imul(r,H0),B=B+Math.imul(s,T0)|0,y=y+Math.imul(s,D0)|0,y=y+Math.imul(t,T0)|0,w=w+Math.imul(t,D0)|0,B=B+Math.imul(o,L0)|0,y=y+Math.imul(o,R0)|0,y=y+Math.imul(u,L0)|0,w=w+Math.imul(u,R0)|0,B=B+Math.imul(d,z0)|0,y=y+Math.imul(d,M0)|0,y=y+Math.imul(b,z0)|0,w=w+Math.imul(b,M0)|0,B=B+Math.imul(p,v0)|0,y=y+Math.imul(p,q0)|0,y=y+Math.imul(c,v0)|0,w=w+Math.imul(c,q0)|0;var s0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(s0>>>26)|0,s0&=67108863,B=Math.imul(i,W0),y=Math.imul(i,H0),y=y+Math.imul($0,W0)|0,w=Math.imul($0,H0),B=B+Math.imul(a,T0)|0,y=y+Math.imul(a,D0)|0,y=y+Math.imul(r,T0)|0,w=w+Math.imul(r,D0)|0,B=B+Math.imul(s,L0)|0,y=y+Math.imul(s,R0)|0,y=y+Math.imul(t,L0)|0,w=w+Math.imul(t,R0)|0,B=B+Math.imul(o,z0)|0,y=y+Math.imul(o,M0)|0,y=y+Math.imul(u,z0)|0,w=w+Math.imul(u,M0)|0,B=B+Math.imul(d,v0)|0,y=y+Math.imul(d,q0)|0,y=y+Math.imul(b,v0)|0,w=w+Math.imul(b,q0)|0,B=B+Math.imul(p,k0)|0,y=y+Math.imul(p,g0)|0,y=y+Math.imul(c,k0)|0,w=w+Math.imul(c,g0)|0;var t0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(t0>>>26)|0,t0&=67108863,B=Math.imul(Y0,W0),y=Math.imul(Y0,H0),y=y+Math.imul(Z0,W0)|0,w=Math.imul(Z0,H0),B=B+Math.imul(i,T0)|0,y=y+Math.imul(i,D0)|0,y=y+Math.imul($0,T0)|0,w=w+Math.imul($0,D0)|0,B=B+Math.imul(a,L0)|0,y=y+Math.imul(a,R0)|0,y=y+Math.imul(r,L0)|0,w=w+Math.imul(r,R0)|0,B=B+Math.imul(s,z0)|0,y=y+Math.imul(s,M0)|0,y=y+Math.imul(t,z0)|0,w=w+Math.imul(t,M0)|0,B=B+Math.imul(o,v0)|0,y=y+Math.imul(o,q0)|0,y=y+Math.imul(u,v0)|0,w=w+Math.imul(u,q0)|0,B=B+Math.imul(d,k0)|0,y=y+Math.imul(d,g0)|0,y=y+Math.imul(b,k0)|0,w=w+Math.imul(b,g0)|0,B=B+Math.imul(p,x0)|0,y=y+Math.imul(p,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,_0)|0;var m0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(m0>>>26)|0,m0&=67108863,B=Math.imul(V0,W0),y=Math.imul(V0,H0),y=y+Math.imul(U0,W0)|0,w=Math.imul(U0,H0),B=B+Math.imul(Y0,T0)|0,y=y+Math.imul(Y0,D0)|0,y=y+Math.imul(Z0,T0)|0,w=w+Math.imul(Z0,D0)|0,B=B+Math.imul(i,L0)|0,y=y+Math.imul(i,R0)|0,y=y+Math.imul($0,L0)|0,w=w+Math.imul($0,R0)|0,B=B+Math.imul(a,z0)|0,y=y+Math.imul(a,M0)|0,y=y+Math.imul(r,z0)|0,w=w+Math.imul(r,M0)|0,B=B+Math.imul(s,v0)|0,y=y+Math.imul(s,q0)|0,y=y+Math.imul(t,v0)|0,w=w+Math.imul(t,q0)|0,B=B+Math.imul(o,k0)|0,y=y+Math.imul(o,g0)|0,y=y+Math.imul(u,k0)|0,w=w+Math.imul(u,g0)|0,B=B+Math.imul(d,x0)|0,y=y+Math.imul(d,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,_0)|0,B=B+Math.imul(p,y0)|0,y=y+Math.imul(p,w0)|0,y=y+Math.imul(c,y0)|0,w=w+Math.imul(c,w0)|0;var a0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(a0>>>26)|0,a0&=67108863,B=Math.imul(K0,W0),y=Math.imul(K0,H0),y=y+Math.imul(I0,W0)|0,w=Math.imul(I0,H0),B=B+Math.imul(V0,T0)|0,y=y+Math.imul(V0,D0)|0,y=y+Math.imul(U0,T0)|0,w=w+Math.imul(U0,D0)|0,B=B+Math.imul(Y0,L0)|0,y=y+Math.imul(Y0,R0)|0,y=y+Math.imul(Z0,L0)|0,w=w+Math.imul(Z0,R0)|0,B=B+Math.imul(i,z0)|0,y=y+Math.imul(i,M0)|0,y=y+Math.imul($0,z0)|0,w=w+Math.imul($0,M0)|0,B=B+Math.imul(a,v0)|0,y=y+Math.imul(a,q0)|0,y=y+Math.imul(r,v0)|0,w=w+Math.imul(r,q0)|0,B=B+Math.imul(s,k0)|0,y=y+Math.imul(s,g0)|0,y=y+Math.imul(t,k0)|0,w=w+Math.imul(t,g0)|0,B=B+Math.imul(o,x0)|0,y=y+Math.imul(o,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,_0)|0,B=B+Math.imul(d,y0)|0,y=y+Math.imul(d,w0)|0,y=y+Math.imul(b,y0)|0,w=w+Math.imul(b,w0)|0,B=B+Math.imul(p,p0)|0,y=y+Math.imul(p,c0)|0,y=y+Math.imul(c,p0)|0,w=w+Math.imul(c,c0)|0;var r0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(r0>>>26)|0,r0&=67108863,B=Math.imul(O0,W0),y=Math.imul(O0,H0),y=y+Math.imul(F0,W0)|0,w=Math.imul(F0,H0),B=B+Math.imul(K0,T0)|0,y=y+Math.imul(K0,D0)|0,y=y+Math.imul(I0,T0)|0,w=w+Math.imul(I0,D0)|0,B=B+Math.imul(V0,L0)|0,y=y+Math.imul(V0,R0)|0,y=y+Math.imul(U0,L0)|0,w=w+Math.imul(U0,R0)|0,B=B+Math.imul(Y0,z0)|0,y=y+Math.imul(Y0,M0)|0,y=y+Math.imul(Z0,z0)|0,w=w+Math.imul(Z0,M0)|0,B=B+Math.imul(i,v0)|0,y=y+Math.imul(i,q0)|0,y=y+Math.imul($0,v0)|0,w=w+Math.imul($0,q0)|0,B=B+Math.imul(a,k0)|0,y=y+Math.imul(a,g0)|0,y=y+Math.imul(r,k0)|0,w=w+Math.imul(r,g0)|0,B=B+Math.imul(s,x0)|0,y=y+Math.imul(s,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,_0)|0,B=B+Math.imul(o,y0)|0,y=y+Math.imul(o,w0)|0,y=y+Math.imul(u,y0)|0,w=w+Math.imul(u,w0)|0,B=B+Math.imul(d,p0)|0,y=y+Math.imul(d,c0)|0,y=y+Math.imul(b,p0)|0,w=w+Math.imul(b,c0)|0,B=B+Math.imul(p,d0)|0,y=y+Math.imul(p,b0)|0,y=y+Math.imul(c,d0)|0,w=w+Math.imul(c,b0)|0;var e0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(e0>>>26)|0,e0&=67108863,B=Math.imul(O0,T0),y=Math.imul(O0,D0),y=y+Math.imul(F0,T0)|0,w=Math.imul(F0,D0),B=B+Math.imul(K0,L0)|0,y=y+Math.imul(K0,R0)|0,y=y+Math.imul(I0,L0)|0,w=w+Math.imul(I0,R0)|0,B=B+Math.imul(V0,z0)|0,y=y+Math.imul(V0,M0)|0,y=y+Math.imul(U0,z0)|0,w=w+Math.imul(U0,M0)|0,B=B+Math.imul(Y0,v0)|0,y=y+Math.imul(Y0,q0)|0,y=y+Math.imul(Z0,v0)|0,w=w+Math.imul(Z0,q0)|0,B=B+Math.imul(i,k0)|0,y=y+Math.imul(i,g0)|0,y=y+Math.imul($0,k0)|0,w=w+Math.imul($0,g0)|0,B=B+Math.imul(a,x0)|0,y=y+Math.imul(a,_0)|0,y=y+Math.imul(r,x0)|0,w=w+Math.imul(r,_0)|0,B=B+Math.imul(s,y0)|0,y=y+Math.imul(s,w0)|0,y=y+Math.imul(t,y0)|0,w=w+Math.imul(t,w0)|0,B=B+Math.imul(o,p0)|0,y=y+Math.imul(o,c0)|0,y=y+Math.imul(u,p0)|0,w=w+Math.imul(u,c0)|0,B=B+Math.imul(d,d0)|0,y=y+Math.imul(d,b0)|0,y=y+Math.imul(b,d0)|0,w=w+Math.imul(b,b0)|0;var i0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(i0>>>26)|0,i0&=67108863,B=Math.imul(O0,L0),y=Math.imul(O0,R0),y=y+Math.imul(F0,L0)|0,w=Math.imul(F0,R0),B=B+Math.imul(K0,z0)|0,y=y+Math.imul(K0,M0)|0,y=y+Math.imul(I0,z0)|0,w=w+Math.imul(I0,M0)|0,B=B+Math.imul(V0,v0)|0,y=y+Math.imul(V0,q0)|0,y=y+Math.imul(U0,v0)|0,w=w+Math.imul(U0,q0)|0,B=B+Math.imul(Y0,k0)|0,y=y+Math.imul(Y0,g0)|0,y=y+Math.imul(Z0,k0)|0,w=w+Math.imul(Z0,g0)|0,B=B+Math.imul(i,x0)|0,y=y+Math.imul(i,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,_0)|0,B=B+Math.imul(a,y0)|0,y=y+Math.imul(a,w0)|0,y=y+Math.imul(r,y0)|0,w=w+Math.imul(r,w0)|0,B=B+Math.imul(s,p0)|0,y=y+Math.imul(s,c0)|0,y=y+Math.imul(t,p0)|0,w=w+Math.imul(t,c0)|0,B=B+Math.imul(o,d0)|0,y=y+Math.imul(o,b0)|0,y=y+Math.imul(u,d0)|0,w=w+Math.imul(u,b0)|0;var $$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+($$>>>26)|0,$$&=67108863,B=Math.imul(O0,z0),y=Math.imul(O0,M0),y=y+Math.imul(F0,z0)|0,w=Math.imul(F0,M0),B=B+Math.imul(K0,v0)|0,y=y+Math.imul(K0,q0)|0,y=y+Math.imul(I0,v0)|0,w=w+Math.imul(I0,q0)|0,B=B+Math.imul(V0,k0)|0,y=y+Math.imul(V0,g0)|0,y=y+Math.imul(U0,k0)|0,w=w+Math.imul(U0,g0)|0,B=B+Math.imul(Y0,x0)|0,y=y+Math.imul(Y0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,_0)|0,B=B+Math.imul(i,y0)|0,y=y+Math.imul(i,w0)|0,y=y+Math.imul($0,y0)|0,w=w+Math.imul($0,w0)|0,B=B+Math.imul(a,p0)|0,y=y+Math.imul(a,c0)|0,y=y+Math.imul(r,p0)|0,w=w+Math.imul(r,c0)|0,B=B+Math.imul(s,d0)|0,y=y+Math.imul(s,b0)|0,y=y+Math.imul(t,d0)|0,w=w+Math.imul(t,b0)|0;var Q$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,B=Math.imul(O0,v0),y=Math.imul(O0,q0),y=y+Math.imul(F0,v0)|0,w=Math.imul(F0,q0),B=B+Math.imul(K0,k0)|0,y=y+Math.imul(K0,g0)|0,y=y+Math.imul(I0,k0)|0,w=w+Math.imul(I0,g0)|0,B=B+Math.imul(V0,x0)|0,y=y+Math.imul(V0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,_0)|0,B=B+Math.imul(Y0,y0)|0,y=y+Math.imul(Y0,w0)|0,y=y+Math.imul(Z0,y0)|0,w=w+Math.imul(Z0,w0)|0,B=B+Math.imul(i,p0)|0,y=y+Math.imul(i,c0)|0,y=y+Math.imul($0,p0)|0,w=w+Math.imul($0,c0)|0,B=B+Math.imul(a,d0)|0,y=y+Math.imul(a,b0)|0,y=y+Math.imul(r,d0)|0,w=w+Math.imul(r,b0)|0;var Y$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,B=Math.imul(O0,k0),y=Math.imul(O0,g0),y=y+Math.imul(F0,k0)|0,w=Math.imul(F0,g0),B=B+Math.imul(K0,x0)|0,y=y+Math.imul(K0,_0)|0,y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,_0)|0,B=B+Math.imul(V0,y0)|0,y=y+Math.imul(V0,w0)|0,y=y+Math.imul(U0,y0)|0,w=w+Math.imul(U0,w0)|0,B=B+Math.imul(Y0,p0)|0,y=y+Math.imul(Y0,c0)|0,y=y+Math.imul(Z0,p0)|0,w=w+Math.imul(Z0,c0)|0,B=B+Math.imul(i,d0)|0,y=y+Math.imul(i,b0)|0,y=y+Math.imul($0,d0)|0,w=w+Math.imul($0,b0)|0;var Z$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,B=Math.imul(O0,x0),y=Math.imul(O0,_0),y=y+Math.imul(F0,x0)|0,w=Math.imul(F0,_0),B=B+Math.imul(K0,y0)|0,y=y+Math.imul(K0,w0)|0,y=y+Math.imul(I0,y0)|0,w=w+Math.imul(I0,w0)|0,B=B+Math.imul(V0,p0)|0,y=y+Math.imul(V0,c0)|0,y=y+Math.imul(U0,p0)|0,w=w+Math.imul(U0,c0)|0,B=B+Math.imul(Y0,d0)|0,y=y+Math.imul(Y0,b0)|0,y=y+Math.imul(Z0,d0)|0,w=w+Math.imul(Z0,b0)|0;var G$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(G$>>>26)|0,G$&=67108863,B=Math.imul(O0,y0),y=Math.imul(O0,w0),y=y+Math.imul(F0,y0)|0,w=Math.imul(F0,w0),B=B+Math.imul(K0,p0)|0,y=y+Math.imul(K0,c0)|0,y=y+Math.imul(I0,p0)|0,w=w+Math.imul(I0,c0)|0,B=B+Math.imul(V0,d0)|0,y=y+Math.imul(V0,b0)|0,y=y+Math.imul(U0,d0)|0,w=w+Math.imul(U0,b0)|0;var V$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(V$>>>26)|0,V$&=67108863,B=Math.imul(O0,p0),y=Math.imul(O0,c0),y=y+Math.imul(F0,p0)|0,w=Math.imul(F0,c0),B=B+Math.imul(K0,d0)|0,y=y+Math.imul(K0,b0)|0,y=y+Math.imul(I0,d0)|0,w=w+Math.imul(I0,b0)|0;var U$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(U$>>>26)|0,U$&=67108863,B=Math.imul(O0,d0),y=Math.imul(O0,b0),y=y+Math.imul(F0,d0)|0,w=Math.imul(F0,b0);var X$=(_+B|0)+((y&8191)<<13)|0;return _=(w+(y>>>13)|0)+(X$>>>26)|0,X$&=67108863,x[0]=l0,x[1]=o0,x[2]=u0,x[3]=n0,x[4]=s0,x[5]=t0,x[6]=m0,x[7]=a0,x[8]=r0,x[9]=e0,x[10]=i0,x[11]=$$,x[12]=Q$,x[13]=Y$,x[14]=Z$,x[15]=G$,x[16]=V$,x[17]=U$,x[18]=X$,_!==0&&(x[19]=_,k.length++),k};Math.imul||(H=W);function E(q,j,k){k.negative=j.negative^q.negative,k.length=q.length+j.length;for(var g=0,N=0,x=0;x<k.length-1;x++){var _=N;N=0;for(var B=g&67108863,y=Math.min(x,j.length-1),w=Math.max(0,x-q.length+1);w<=y;w++){var f=x-w,p=q.words[f]|0,c=j.words[w]|0,h=p*c,d=h&67108863;_=_+(h/67108864|0)|0,d=d+B|0,B=d&67108863,_=_+(d>>>26)|0,N+=_>>>26,_&=67108863}k.words[x]=B,g=_,_=N}return g!==0?k.words[x]=g:k.length--,k.strip()}function T(q,j,k){var g=new D;return g.mulp(q,j,k)}V.prototype.mulTo=function(q,j){var k,g=this.length+q.length;return this.length===10&&q.length===10?k=H(this,q,j):g<63?k=W(this,q,j):g<1024?k=E(this,q,j):k=T(this,q,j),k};function D(q,j){this.x=q,this.y=j}D.prototype.makeRBT=function(q){for(var j=new Array(q),k=V.prototype._countBits(q)-1,g=0;g<q;g++)j[g]=this.revBin(g,k,q);return j},D.prototype.revBin=function(q,j,k){if(q===0||q===k-1)return q;for(var g=0,N=0;N<j;N++)g|=(q&1)<<j-N-1,q>>=1;return g},D.prototype.permute=function(q,j,k,g,N,x){for(var _=0;_<x;_++)g[_]=j[q[_]],N[_]=k[q[_]]},D.prototype.transform=function(q,j,k,g,N,x){this.permute(x,q,j,k,g,N);for(var _=1;_<N;_<<=1)for(var B=_<<1,y=Math.cos(2*Math.PI/B),w=Math.sin(2*Math.PI/B),f=0;f<N;f+=B)for(var p=y,c=w,h=0;h<_;h++){var d=k[f+h],b=g[f+h],l=k[f+h+_],o=g[f+h+_],u=p*l-c*o;o=p*o+c*l,l=u,k[f+h]=d+l,g[f+h]=b+o,k[f+h+_]=d-l,g[f+h+_]=b-o,h!==B&&(u=y*p-w*c,c=y*c+w*p,p=u)}},D.prototype.guessLen13b=function(q,j){var k=Math.max(j,q)|1,g=k&1,N=0;for(k=k/2|0;k;k=k>>>1)N++;return 1<<N+1+g},D.prototype.conjugate=function(q,j,k){if(!(k<=1))for(var g=0;g<k/2;g++){var N=q[g];q[g]=q[k-g-1],q[k-g-1]=N,N=j[g],j[g]=-j[k-g-1],j[k-g-1]=-N}},D.prototype.normalize13b=function(q,j){for(var k=0,g=0;g<j/2;g++){var N=Math.round(q[2*g+1]/j)*8192+Math.round(q[2*g]/j)+k;q[g]=N&67108863,N<67108864?k=0:k=N/67108864|0}return q},D.prototype.convert13b=function(q,j,k,g){for(var N=0,x=0;x<j;x++)N=N+(q[x]|0),k[2*x]=N&8191,N=N>>>13,k[2*x+1]=N&8191,N=N>>>13;for(x=2*j;x<g;++x)k[x]=0;Z(N===0),Z((N&-8192)===0)},D.prototype.stub=function(q){for(var j=new Array(q),k=0;k<q;k++)j[k]=0;return j},D.prototype.mulp=function(q,j,k){var g=2*this.guessLen13b(q.length,j.length),N=this.makeRBT(g),x=this.stub(g),_=new Array(g),B=new Array(g),y=new Array(g),w=new Array(g),f=new Array(g),p=new Array(g),c=k.words;c.length=g,this.convert13b(q.words,q.length,_,g),this.convert13b(j.words,j.length,w,g),this.transform(_,x,B,y,g,N),this.transform(w,x,f,p,g,N);for(var h=0;h<g;h++){var d=B[h]*f[h]-y[h]*p[h];y[h]=B[h]*p[h]+y[h]*f[h],B[h]=d}return this.conjugate(B,y,g),this.transform(B,y,c,x,g,N),this.conjugate(c,x,g),this.normalize13b(c,g),k.negative=q.negative^j.negative,k.length=q.length+j.length,k.strip()},V.prototype.mul=function(q){var j=new V(null);return j.words=new Array(this.length+q.length),this.mulTo(q,j)},V.prototype.mulf=function(q){var j=new V(null);return j.words=new Array(this.length+q.length),T(this,q,j)},V.prototype.imul=function(q){return this.clone().mulTo(q,this)},V.prototype.imuln=function(q){Z(typeof q=="number"),Z(q<67108864);for(var j=0,k=0;k<this.length;k++){var g=(this.words[k]|0)*q,N=(g&67108863)+(j&67108863);j>>=26,j+=g/67108864|0,j+=N>>>26,this.words[k]=N&67108863}return j!==0&&(this.words[k]=j,this.length++),this},V.prototype.muln=function(q){return this.clone().imuln(q)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(q){var j=A(q);if(j.length===0)return new V(1);for(var k=this,g=0;g<j.length&&j[g]===0;g++,k=k.sqr());if(++g<j.length)for(var N=k.sqr();g<j.length;g++,N=N.sqr())j[g]!==0&&(k=k.mul(N));return k},V.prototype.iushln=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26,g=67108863>>>26-j<<26-j,N;if(j!==0){var x=0;for(N=0;N<this.length;N++){var _=this.words[N]&g,B=(this.words[N]|0)-_<<j;this.words[N]=B|x,x=_>>>26-j}x&&(this.words[N]=x,this.length++)}if(k!==0){for(N=this.length-1;N>=0;N--)this.words[N+k]=this.words[N];for(N=0;N<k;N++)this.words[N]=0;this.length+=k}return this.strip()},V.prototype.ishln=function(q){return Z(this.negative===0),this.iushln(q)},V.prototype.iushrn=function(q,j,k){Z(typeof q=="number"&&q>=0);var g;j?g=(j-j%26)/26:g=0;var N=q%26,x=Math.min((q-N)/26,this.length),_=67108863^67108863>>>N<<N,B=k;if(g-=x,g=Math.max(0,g),B){for(var y=0;y<x;y++)B.words[y]=this.words[y];B.length=x}if(x!==0)if(this.length>x)for(this.length-=x,y=0;y<this.length;y++)this.words[y]=this.words[y+x];else this.words[0]=0,this.length=1;var w=0;for(y=this.length-1;y>=0&&(w!==0||y>=g);y--){var f=this.words[y]|0;this.words[y]=w<<26-N|f>>>N,w=f&_}return B&&w!==0&&(B.words[B.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},V.prototype.ishrn=function(q,j,k){return Z(this.negative===0),this.iushrn(q,j,k)},V.prototype.shln=function(q){return this.clone().ishln(q)},V.prototype.ushln=function(q){return this.clone().iushln(q)},V.prototype.shrn=function(q){return this.clone().ishrn(q)},V.prototype.ushrn=function(q){return this.clone().iushrn(q)},V.prototype.testn=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26,g=1<<j;if(this.length<=k)return!1;var N=this.words[k];return!!(N&g)},V.prototype.imaskn=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26;if(Z(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(j!==0&&k++,this.length=Math.min(k,this.length),j!==0){var g=67108863^67108863>>>j<<j;this.words[this.length-1]&=g}return this.strip()},V.prototype.maskn=function(q){return this.clone().imaskn(q)},V.prototype.iaddn=function(q){return Z(typeof q=="number"),Z(q<67108864),q<0?this.isubn(-q):this.negative!==0?this.length===1&&(this.words[0]|0)<q?(this.words[0]=q-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(q),this.negative=1,this):this._iaddn(q)},V.prototype._iaddn=function(q){this.words[0]+=q;for(var j=0;j<this.length&&this.words[j]>=67108864;j++)this.words[j]-=67108864,j===this.length-1?this.words[j+1]=1:this.words[j+1]++;return this.length=Math.max(this.length,j+1),this},V.prototype.isubn=function(q){if(Z(typeof q=="number"),Z(q<67108864),q<0)return this.iaddn(-q);if(this.negative!==0)return this.negative=0,this.iaddn(q),this.negative=1,this;if(this.words[0]-=q,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var j=0;j<this.length&&this.words[j]<0;j++)this.words[j]+=67108864,this.words[j+1]-=1;return this.strip()},V.prototype.addn=function(q){return this.clone().iaddn(q)},V.prototype.subn=function(q){return this.clone().isubn(q)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(q,j,k){var g=q.length+k,N;this._expand(g);var x,_=0;for(N=0;N<q.length;N++){x=(this.words[N+k]|0)+_;var B=(q.words[N]|0)*j;x-=B&67108863,_=(x>>26)-(B/67108864|0),this.words[N+k]=x&67108863}for(;N<this.length-k;N++)x=(this.words[N+k]|0)+_,_=x>>26,this.words[N+k]=x&67108863;if(_===0)return this.strip();for(Z(_===-1),_=0,N=0;N<this.length;N++)x=-(this.words[N]|0)+_,_=x>>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(q,j){var k=this.length-q.length,g=this.clone(),N=q,x=N.words[N.length-1]|0,_=this._countBits(x);k=26-_,k!==0&&(N=N.ushln(k),g.iushln(k),x=N.words[N.length-1]|0);var B=g.length-N.length,y;if(j!=="mod"){y=new V(null),y.length=B+1,y.words=new Array(y.length);for(var w=0;w<y.length;w++)y.words[w]=0}var f=g.clone()._ishlnsubmul(N,1,B);f.negative===0&&(g=f,y&&(y.words[B]=1));for(var p=B-1;p>=0;p--){var c=(g.words[N.length+p]|0)*67108864+(g.words[N.length+p-1]|0);for(c=Math.min(c/x|0,67108863),g._ishlnsubmul(N,c,p);g.negative!==0;)c--,g.negative=0,g._ishlnsubmul(N,1,p),g.isZero()||(g.negative^=1);y&&(y.words[p]=c)}return y&&y.strip(),g.strip(),j!=="div"&&k!==0&&g.iushrn(k),{div:y||null,mod:g}},V.prototype.divmod=function(q,j,k){if(Z(!q.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var g,N,x;return this.negative!==0&&q.negative===0?(x=this.neg().divmod(q,j),j!=="mod"&&(g=x.div.neg()),j!=="div"&&(N=x.mod.neg(),k&&N.negative!==0&&N.iadd(q)),{div:g,mod:N}):this.negative===0&&q.negative!==0?(x=this.divmod(q.neg(),j),j!=="mod"&&(g=x.div.neg()),{div:g,mod:x.mod}):(this.negative&q.negative)!==0?(x=this.neg().divmod(q.neg(),j),j!=="div"&&(N=x.mod.neg(),k&&N.negative!==0&&N.isub(q)),{div:x.div,mod:N}):q.length>this.length||this.cmp(q)<0?{div:new V(0),mod:this}:q.length===1?j==="div"?{div:this.divn(q.words[0]),mod:null}:j==="mod"?{div:null,mod:new V(this.modn(q.words[0]))}:{div:this.divn(q.words[0]),mod:new V(this.modn(q.words[0]))}:this._wordDiv(q,j)},V.prototype.div=function(q){return this.divmod(q,"div",!1).div},V.prototype.mod=function(q){return this.divmod(q,"mod",!1).mod},V.prototype.umod=function(q){return this.divmod(q,"mod",!0).mod},V.prototype.divRound=function(q){var j=this.divmod(q);if(j.mod.isZero())return j.div;var k=j.div.negative!==0?j.mod.isub(q):j.mod,g=q.ushrn(1),N=q.andln(1),x=k.cmp(g);return x<0||N===1&&x===0?j.div:j.div.negative!==0?j.div.isubn(1):j.div.iaddn(1)},V.prototype.modn=function(q){Z(q<=67108863);for(var j=(1<<26)%q,k=0,g=this.length-1;g>=0;g--)k=(j*k+(this.words[g]|0))%q;return k},V.prototype.idivn=function(q){Z(q<=67108863);for(var j=0,k=this.length-1;k>=0;k--){var g=(this.words[k]|0)+j*67108864;this.words[k]=g/q|0,j=g%q}return this.strip()},V.prototype.divn=function(q){return this.clone().idivn(q)},V.prototype.egcd=function(q){Z(q.negative===0),Z(!q.isZero());var j=this,k=q.clone();j.negative!==0?j=j.umod(q):j=j.clone();for(var g=new V(1),N=new V(0),x=new V(0),_=new V(1),B=0;j.isEven()&&k.isEven();)j.iushrn(1),k.iushrn(1),++B;for(var y=k.clone(),w=j.clone();!j.isZero();){for(var f=0,p=1;(j.words[0]&p)===0&&f<26;++f,p<<=1);if(f>0)for(j.iushrn(f);f-- >0;)(g.isOdd()||N.isOdd())&&(g.iadd(y),N.isub(w)),g.iushrn(1),N.iushrn(1);for(var c=0,h=1;(k.words[0]&h)===0&&c<26;++c,h<<=1);if(c>0)for(k.iushrn(c);c-- >0;)(x.isOdd()||_.isOdd())&&(x.iadd(y),_.isub(w)),x.iushrn(1),_.iushrn(1);j.cmp(k)>=0?(j.isub(k),g.isub(x),N.isub(_)):(k.isub(j),x.isub(g),_.isub(N))}return{a:x,b:_,gcd:k.iushln(B)}},V.prototype._invmp=function(q){Z(q.negative===0),Z(!q.isZero());var j=this,k=q.clone();j.negative!==0?j=j.umod(q):j=j.clone();for(var g=new V(1),N=new V(0),x=k.clone();j.cmpn(1)>0&&k.cmpn(1)>0;){for(var _=0,B=1;(j.words[0]&B)===0&&_<26;++_,B<<=1);if(_>0)for(j.iushrn(_);_-- >0;)g.isOdd()&&g.iadd(x),g.iushrn(1);for(var y=0,w=1;(k.words[0]&w)===0&&y<26;++y,w<<=1);if(y>0)for(k.iushrn(y);y-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);j.cmp(k)>=0?(j.isub(k),g.isub(N)):(k.isub(j),N.isub(g))}var f;return j.cmpn(1)===0?f=g:f=N,f.cmpn(0)<0&&f.iadd(q),f},V.prototype.gcd=function(q){if(this.isZero())return q.abs();if(q.isZero())return this.abs();var j=this.clone(),k=q.clone();j.negative=0,k.negative=0;for(var g=0;j.isEven()&&k.isEven();g++)j.iushrn(1),k.iushrn(1);do{for(;j.isEven();)j.iushrn(1);for(;k.isEven();)k.iushrn(1);var N=j.cmp(k);if(N<0){var x=j;j=k,k=x}else if(N===0||k.cmpn(1)===0)break;j.isub(k)}while(!0);return k.iushln(g)},V.prototype.invm=function(q){return this.egcd(q).a.umod(q)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(q){return this.words[0]&q},V.prototype.bincn=function(q){Z(typeof q=="number");var j=q%26,k=(q-j)/26,g=1<<j;if(this.length<=k)return this._expand(k+1),this.words[k]|=g,this;for(var N=g,x=k;N!==0&&x<this.length;x++){var _=this.words[x]|0;_+=N,N=_>>>26,_&=67108863,this.words[x]=_}return N!==0&&(this.words[x]=N,this.length++),this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(q){var j=q<0;if(this.negative!==0&&!j)return-1;if(this.negative===0&&j)return 1;this.strip();var k;if(this.length>1)k=1;else{j&&(q=-q),Z(q<=67108863,"Number is too big");var g=this.words[0]|0;k=g===q?0:g<q?-1:1}return this.negative!==0?-k|0:k},V.prototype.cmp=function(q){if(this.negative!==0&&q.negative===0)return-1;if(this.negative===0&&q.negative!==0)return 1;var j=this.ucmp(q);return this.negative!==0?-j|0:j},V.prototype.ucmp=function(q){if(this.length>q.length)return 1;if(this.length<q.length)return-1;for(var j=0,k=this.length-1;k>=0;k--){var g=this.words[k]|0,N=q.words[k]|0;if(g!==N){g<N?j=-1:g>N&&(j=1);break}}return j},V.prototype.gtn=function(q){return this.cmpn(q)===1},V.prototype.gt=function(q){return this.cmp(q)===1},V.prototype.gten=function(q){return this.cmpn(q)>=0},V.prototype.gte=function(q){return this.cmp(q)>=0},V.prototype.ltn=function(q){return this.cmpn(q)===-1},V.prototype.lt=function(q){return this.cmp(q)===-1},V.prototype.lten=function(q){return this.cmpn(q)<=0},V.prototype.lte=function(q){return this.cmp(q)<=0},V.prototype.eqn=function(q){return this.cmpn(q)===0},V.prototype.eq=function(q){return this.cmp(q)===0},V.red=function(q){return new S(q)},V.prototype.toRed=function(q){return Z(!this.red,"Already a number in reduction context"),Z(this.negative===0,"red works only with positives"),q.convertTo(this)._forceRed(q)},V.prototype.fromRed=function(){return Z(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(q){return this.red=q,this},V.prototype.forceRed=function(q){return Z(!this.red,"Already a number in reduction context"),this._forceRed(q)},V.prototype.redAdd=function(q){return Z(this.red,"redAdd works only with red numbers"),this.red.add(this,q)},V.prototype.redIAdd=function(q){return Z(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,q)},V.prototype.redSub=function(q){return Z(this.red,"redSub works only with red numbers"),this.red.sub(this,q)},V.prototype.redISub=function(q){return Z(this.red,"redISub works only with red numbers"),this.red.isub(this,q)},V.prototype.redShl=function(q){return Z(this.red,"redShl works only with red numbers"),this.red.shl(this,q)},V.prototype.redMul=function(q){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,q),this.red.mul(this,q)},V.prototype.redIMul=function(q){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,q),this.red.imul(this,q)},V.prototype.redSqr=function(){return Z(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return Z(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return Z(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return Z(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return Z(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(q){return Z(this.red&&!q.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,q)};var C={k256:null,p224:null,p192:null,p25519:null};function L(q,j){this.name=q,this.p=new V(j,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}L.prototype._tmp=function(){var q=new V(null);return q.words=new Array(Math.ceil(this.n/13)),q},L.prototype.ireduce=function(q){var j=q,k;do this.split(j,this.tmp),j=this.imulK(j),j=j.iadd(this.tmp),k=j.bitLength();while(k>this.n);var g=k<this.n?-1:j.ucmp(this.p);return g===0?(j.words[0]=0,j.length=1):g>0?j.isub(this.p):j.strip!==void 0?j.strip():j._strip(),j},L.prototype.split=function(q,j){q.iushrn(this.n,0,j)},L.prototype.imulK=function(q){return q.imul(this.k)};function R(){L.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}G(R,L),R.prototype.split=function(q,j){for(var k=4194303,g=Math.min(q.length,9),N=0;N<g;N++)j.words[N]=q.words[N];if(j.length=g,q.length<=9){q.words[0]=0,q.length=1;return}var x=q.words[9];for(j.words[j.length++]=x&k,N=10;N<q.length;N++){var _=q.words[N]|0;q.words[N-10]=(_&k)<<4|x>>>22,x=_}x>>>=22,q.words[N-10]=x,x===0&&q.length>10?q.length-=10:q.length-=9},R.prototype.imulK=function(q){q.words[q.length]=0,q.words[q.length+1]=0,q.length+=2;for(var j=0,k=0;k<q.length;k++){var g=q.words[k]|0;j+=g*977,q.words[k]=j&67108863,j=g*64+(j/67108864|0)}return q.words[q.length-1]===0&&(q.length--,q.words[q.length-1]===0&&q.length--),q};function P(){L.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}G(P,L);function z(){L.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}G(z,L);function M(){L.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}G(M,L),M.prototype.imulK=function(q){for(var j=0,k=0;k<q.length;k++){var g=(q.words[k]|0)*19+j,N=g&67108863;g>>>=26,q.words[k]=N,j=g}return j!==0&&(q.words[q.length++]=j),q},V._prime=function(q){if(C[q])return C[q];var j;if(q==="k256")j=new R;else if(q==="p224")j=new P;else if(q==="p192")j=new z;else if(q==="p25519")j=new M;else throw new Error("Unknown prime "+q);return C[q]=j,j};function S(q){if(typeof q=="string"){var j=V._prime(q);this.m=j.p,this.prime=j}else Z(q.gtn(1),"modulus must be greater than 1"),this.m=q,this.prime=null}S.prototype._verify1=function(q){Z(q.negative===0,"red works only with positives"),Z(q.red,"red works only with red numbers")},S.prototype._verify2=function(q,j){Z((q.negative|j.negative)===0,"red works only with positives"),Z(q.red&&q.red===j.red,"red works only with red numbers")},S.prototype.imod=function(q){return this.prime?this.prime.ireduce(q)._forceRed(this):q.umod(this.m)._forceRed(this)},S.prototype.neg=function(q){return q.isZero()?q.clone():this.m.sub(q)._forceRed(this)},S.prototype.add=function(q,j){this._verify2(q,j);var k=q.add(j);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},S.prototype.iadd=function(q,j){this._verify2(q,j);var k=q.iadd(j);return k.cmp(this.m)>=0&&k.isub(this.m),k},S.prototype.sub=function(q,j){this._verify2(q,j);var k=q.sub(j);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},S.prototype.isub=function(q,j){this._verify2(q,j);var k=q.isub(j);return k.cmpn(0)<0&&k.iadd(this.m),k},S.prototype.shl=function(q,j){return this._verify1(q),this.imod(q.ushln(j))},S.prototype.imul=function(q,j){return this._verify2(q,j),this.imod(q.imul(j))},S.prototype.mul=function(q,j){return this._verify2(q,j),this.imod(q.mul(j))},S.prototype.isqr=function(q){return this.imul(q,q.clone())},S.prototype.sqr=function(q){return this.mul(q,q)},S.prototype.sqrt=function(q){if(q.isZero())return q.clone();var j=this.m.andln(3);if(Z(j%2===1),j===3){var k=this.m.add(new V(1)).iushrn(2);return this.pow(q,k)}for(var g=this.m.subn(1),N=0;!g.isZero()&&g.andln(1)===0;)N++,g.iushrn(1);Z(!g.isZero());var x=new V(1).toRed(this),_=x.redNeg(),B=this.m.subn(1).iushrn(1),y=this.m.bitLength();for(y=new V(2*y*y).toRed(this);this.pow(y,B).cmp(_)!==0;)y.redIAdd(_);for(var w=this.pow(y,g),f=this.pow(q,g.addn(1).iushrn(1)),p=this.pow(q,g),c=N;p.cmp(x)!==0;){for(var h=p,d=0;h.cmp(x)!==0;d++)h=h.redSqr();Z(d<c);var b=this.pow(w,new V(1).iushln(c-d-1));f=f.redMul(b),w=b.redSqr(),p=p.redMul(w),c=d}return f},S.prototype.invm=function(q){var j=q._invmp(this.m);return j.negative!==0?(j.negative=0,this.imod(j).redNeg()):this.imod(j)},S.prototype.pow=function(q,j){if(j.isZero())return new V(1).toRed(this);if(j.cmpn(1)===0)return q.clone();var k=4,g=new Array(1<<k);g[0]=new V(1).toRed(this),g[1]=q;for(var N=2;N<g.length;N++)g[N]=this.mul(g[N-1],q);var x=g[0],_=0,B=0,y=j.bitLength()%26;for(y===0&&(y=26),N=j.length-1;N>=0;N--){for(var w=j.words[N],f=y-1;f>=0;f--){var p=w>>f&1;if(x!==g[0]&&(x=this.sqr(x)),p===0&&_===0){B=0;continue}_<<=1,_|=p,B++,!(B!==k&&(N!==0||f!==0))&&(x=this.mul(x,g[_]),B=0,_=0)}y=26}return x},S.prototype.convertTo=function(q){var j=q.umod(this.m);return j===q?j.clone():j},S.prototype.convertFrom=function(q){var j=q.clone();return j.red=null,j},V.mont=function(q){return new v(q)};function v(q){S.call(this,q),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new V(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}G(v,S),v.prototype.convertTo=function(q){return this.imod(q.ushln(this.shift))},v.prototype.convertFrom=function(q){var j=this.imod(q.mul(this.rinv));return j.red=null,j},v.prototype.imul=function(q,j){if(q.isZero()||j.isZero())return q.words[0]=0,q.length=1,q;var k=q.imul(j),g=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=k.isub(g).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},v.prototype.mul=function(q,j){if(q.isZero()||j.isZero())return new V(0)._forceRed(this);var k=q.mul(j),g=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=k.isub(g).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},v.prototype.invm=function(q){var j=this.imod(q._invmp(this.m).mul(this.r2));return j._forceRed(this)}})(typeof $>"u"||$,bZ)}}),jQ=P$({"(disabled):node_modules/crypto-browserify/index.js"(){}}),kQ=P$({"node_modules/brorand/index.js"(bZ,$){var Q;$.exports=function(Z){return Q||(Q=new Y(null)),Q.generate(Z)};function Y(Z){this.rand=Z}$.exports.Rand=Y,Y.prototype.generate=function(Z){return this._rand(Z)},Y.prototype._rand=function(Z){var G=new Buffer(Z);return O$.getRandomValues(G),G}}}),gQ=P$({"node_modules/miller-rabin/lib/mr.js"(bZ,$){var Q=qQ(),Y=kQ();function Z(G){this.rand=G||new Y.Rand}$.exports=Z,Z.create=function(G){return new Z(G)},Z.prototype._randbelow=function(G){var V=G.bitLength(),U=Math.ceil(V/8);do var X=new Q(this.rand.generate(U));while(X.cmp(G)>=0);return X},Z.prototype._randrange=function(G,V){var U=V.sub(G);return G.add(this._randbelow(U))},Z.prototype.test=function(G,V,U){var X=G.bitLength(),K=Q.mont(G),I=new Q(1).toRed(K);V||(V=Math.max(1,X/48|0));for(var J=G.subn(1),O=0;!J.testn(O);O++);for(var F=G.shrn(O),A=J.toRed(K),W=!0;V>0;V--){var H=this._randrange(new Q(2),J);U&&U(H);var E=H.toRed(K).redPow(F);if(!(E.cmp(I)===0||E.cmp(A)===0)){for(var T=1;T<O;T++){if(E=E.redSqr(),E.cmp(I)===0)return!1;if(E.cmp(A)===0)break}if(T===O)return!1}}return W},Z.prototype.getDivisor=function(G,V){var U=G.bitLength(),X=Q.mont(G),K=new Q(1).toRed(X);V||(V=Math.max(1,U/48|0));for(var I=G.subn(1),J=0;!I.testn(J);J++);for(var O=G.shrn(J),F=I.toRed(X);V>0;V--){var A=this._randrange(new Q(2),I),W=G.gcd(A);if(W.cmpn(1)!==0)return W;var H=A.toRed(X).redPow(O);if(!(H.cmp(K)===0||H.cmp(F)===0)){for(var E=1;E<J;E++){if(H=H.redSqr(),H.cmp(K)===0)return H.fromRed().subn(1).gcd(G);if(H.cmp(F)===0)break}if(E===J)return H=H.redSqr(),H.fromRed().subn(1).gcd(G)}}return!1}}}),NQ=P$({"node_modules/diffie-hellman/lib/generatePrime.js"(bZ,$){var Q=S$();$.exports=R,R.simpleSieve=C,R.fermatTest=L;var Y=vQ(),Z=new Y(24),G=gQ(),V=new G,U=new Y(1),X=new Y(2),K=new Y(5),I=new Y(16),J=new Y(8),O=new Y(10),F=new Y(3),A=new Y(7),W=new Y(11),H=new Y(4),E=new Y(12),T=null;function D(){if(T!==null)return T;var P=1048576,z=[];z[0]=2;for(var M=1,S=3;S<P;S+=2){for(var v=Math.ceil(Math.sqrt(S)),q=0;q<M&&z[q]<=v&&S%z[q]!==0;q++);M!==q&&z[q]<=v||(z[M++]=S)}return T=z,z}function C(P){for(var z=D(),M=0;M<z.length;M++)if(P.modn(z[M])===0)return P.cmpn(z[M])===0;return!0}function L(P){var z=Y.mont(P);return X.toRed(z).redPow(P.subn(1)).fromRed().cmpn(1)===0}function R(P,z){if(P<16)return z===2||z===5?new Y([140,123]):new Y([140,39]);z=new Y(z);for(var M,S;;){for(M=new Y(Q(Math.ceil(P/8)));M.bitLength()>P;)M.ishrn(1);if(M.isEven()&&M.iadd(U),M.testn(1)||M.iadd(X),z.cmp(X)){if(!z.cmp(K))for(;M.mod(O).cmp(F);)M.iadd(H)}else for(;M.mod(Z).cmp(W);)M.iadd(H);if(S=M.shrn(1),C(S)&&C(M)&&L(S)&&L(M)&&V.test(S)&&V.test(M))return M}}}}),xQ=P$({"node_modules/diffie-hellman/lib/primes.json"(bZ,$){$.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}}}),_Q=P$({"node_modules/diffie-hellman/lib/dh.js"(bZ,$){var Q=vQ(),Y=gQ(),Z=new Y,G=new Q(24),V=new Q(11),U=new Q(10),X=new Q(3),K=new Q(7),I=NQ(),J=S$();$.exports=H;function O(T,D){return D=D||"utf8",Buffer.isBuffer(T)||(T=new Buffer(T,D)),this._pub=new Q(T),this}function F(T,D){return D=D||"utf8",Buffer.isBuffer(T)||(T=new Buffer(T,D)),this._priv=new Q(T),this}var A={};function W(T,D){var C=D.toString("hex"),L=[C,T.toString(16)].join("_");if(L in A)return A[L];var R=0;if(T.isEven()||!I.simpleSieve||!I.fermatTest(T)||!Z.test(T))return R+=1,C==="02"||C==="05"?R+=8:R+=4,A[L]=R,R;Z.test(T.shrn(1))||(R+=2);var P;switch(C){case"02":T.mod(G).cmp(V)&&(R+=8);break;case"05":P=T.mod(U),P.cmp(X)&&P.cmp(K)&&(R+=8);break;default:R+=4}return A[L]=R,R}function H(T,D,C){this.setGenerator(D),this.__prime=new Q(T),this._prime=Q.mont(this.__prime),this._primeLen=T.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,C?(this.setPublicKey=O,this.setPrivateKey=F):this._primeCode=8}Object.defineProperty(H.prototype,"verifyError",{enumerable:!0,get:function(){return typeof this._primeCode!="number"&&(this._primeCode=W(this.__prime,this.__gen)),this._primeCode}}),H.prototype.generateKeys=function(){return this._priv||(this._priv=new Q(J(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},H.prototype.computeSecret=function(T){T=new Q(T),T=T.toRed(this._prime);var D=T.redPow(this._priv).fromRed(),C=new Buffer(D.toArray()),L=this.getPrime();if(C.length<L.length){var R=new Buffer(L.length-C.length);R.fill(0),C=Buffer.concat([R,C])}return C},H.prototype.getPublicKey=function(T){return E(this._pub,T)},H.prototype.getPrivateKey=function(T){return E(this._priv,T)},H.prototype.getPrime=function(T){return E(this.__prime,T)},H.prototype.getGenerator=function(T){return E(this._gen,T)},H.prototype.setGenerator=function(T,D){return D=D||"utf8",Buffer.isBuffer(T)||(T=new Buffer(T,D)),this.__gen=T,this._gen=new Q(T),this};function E(T,D){var C=new Buffer(T.toArray());return D?C.toString(D):C}}}),BQ=P$({"node_modules/diffie-hellman/browser.js"(bZ){var $=NQ(),Q=xQ(),Y=_Q();function Z(U){var X=new Buffer(Q[U].prime,"hex"),K=new Buffer(Q[U].gen,"hex");return new Y(X,K)}var G={binary:!0,hex:!0,base64:!0};function V(U,X,K,I){return Buffer.isBuffer(X)||G[X]===void 0?V(U,"binary",X,K):(X=X||"binary",I=I||"binary",K=K||new Buffer([2]),Buffer.isBuffer(K)||(K=new Buffer(K,I)),typeof U=="number"?new Y($(U,K),K,!0):(Buffer.isBuffer(U)||(U=new Buffer(U,X)),new Y(U,K,!0)))}bZ.DiffieHellmanGroup=bZ.createDiffieHellmanGroup=bZ.getDiffieHellman=Z,bZ.createDiffieHellman=bZ.DiffieHellman=V}}),yQ=P$({"node_modules/bn.js/lib/bn.js"(bZ,$){(function(Q,Y){function Z(g,N){if(!g)throw new Error(N||"Assertion failed")}function G(g,N){g.super_=N;var x=function(){};x.prototype=N.prototype,g.prototype=new x,g.prototype.constructor=g}function V(g,N,x){if(V.isBN(g))return g;this.negative=0,this.words=null,this.length=0,this.red=null,g!==null&&((N==="le"||N==="be")&&(x=N,N=10),this._init(g||0,N||10,x||"be"))}typeof Q=="object"?Q.exports=V:Y.BN=V,V.BN=V,V.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=L$("buffer").Buffer}catch{}V.isBN=function(g){return g instanceof V?!0:g!==null&&typeof g=="object"&&g.constructor.wordSize===V.wordSize&&Array.isArray(g.words)},V.max=function(g,N){return g.cmp(N)>0?g:N},V.min=function(g,N){return g.cmp(N)<0?g:N},V.prototype._init=function(g,N,x){if(typeof g=="number")return this._initNumber(g,N,x);if(typeof g=="object")return this._initArray(g,N,x);N==="hex"&&(N=16),Z(N===(N|0)&&N>=2&&N<=36),g=g.toString().replace(/\s+/g,"");var _=0;g[0]==="-"&&(_++,this.negative=1),_<g.length&&(N===16?this._parseHex(g,_,x):(this._parseBase(g,N,_),x==="le"&&this._initArray(this.toArray(),N,x)))},V.prototype._initNumber=function(g,N,x){g<0&&(this.negative=1,g=-g),g<67108864?(this.words=[g&67108863],this.length=1):g<4503599627370496?(this.words=[g&67108863,g/67108864&67108863],this.length=2):(Z(g<9007199254740992),this.words=[g&67108863,g/67108864&67108863,1],this.length=3),x==="le"&&this._initArray(this.toArray(),N,x)},V.prototype._initArray=function(g,N,x){if(Z(typeof g.length=="number"),g.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(g.length/3),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var B,y,w=0;if(x==="be")for(_=g.length-1,B=0;_>=0;_-=3)y=g[_]|g[_-1]<<8|g[_-2]<<16,this.words[B]|=y<<w&67108863,this.words[B+1]=y>>>26-w&67108863,w+=24,w>=26&&(w-=26,B++);else if(x==="le")for(_=0,B=0;_<g.length;_+=3)y=g[_]|g[_+1]<<8|g[_+2]<<16,this.words[B]|=y<<w&67108863,this.words[B+1]=y>>>26-w&67108863,w+=24,w>=26&&(w-=26,B++);return this._strip()};function X(g,N){var x=g.charCodeAt(N);if(x>=48&&x<=57)return x-48;if(x>=65&&x<=70)return x-55;if(x>=97&&x<=102)return x-87;Z(!1,"Invalid character in "+g)}function K(g,N,x){var _=X(g,x);return x-1>=N&&(_|=X(g,x-1)<<4),_}V.prototype._parseHex=function(g,N,x){this.length=Math.ceil((g.length-N)/6),this.words=new Array(this.length);for(var _=0;_<this.length;_++)this.words[_]=0;var B=0,y=0,w;if(x==="be")for(_=g.length-1;_>=N;_-=2)w=K(g,N,_)<<B,this.words[y]|=w&67108863,B>=18?(B-=18,y+=1,this.words[y]|=w>>>26):B+=8;else{var f=g.length-N;for(_=f%2===0?N+1:N;_<g.length;_+=2)w=K(g,N,_)<<B,this.words[y]|=w&67108863,B>=18?(B-=18,y+=1,this.words[y]|=w>>>26):B+=8}this._strip()};function I(g,N,x,_){for(var B=0,y=0,w=Math.min(g.length,x),f=N;f<w;f++){var p=g.charCodeAt(f)-48;B*=_,p>=49?y=p-49+10:p>=17?y=p-17+10:y=p,Z(p>=0&&y<_,"Invalid character"),B+=y}return B}V.prototype._parseBase=function(g,N,x){this.words=[0],this.length=1;for(var _=0,B=1;B<=67108863;B*=N)_++;_--,B=B/N|0;for(var y=g.length-x,w=y%_,f=Math.min(y,y-w)+x,p=0,c=x;c<f;c+=_)p=I(g,c,c+_,N),this.imuln(B),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p);if(w!==0){var h=1;for(p=I(g,c,g.length,N),c=0;c<w;c++)h*=N;this.imuln(h),this.words[0]+p<67108864?this.words[0]+=p:this._iaddn(p)}this._strip()},V.prototype.copy=function(g){g.words=new Array(this.length);for(var N=0;N<this.length;N++)g.words[N]=this.words[N];g.length=this.length,g.negative=this.negative,g.red=this.red};function J(g,N){g.words=N.words,g.length=N.length,g.negative=N.negative,g.red=N.red}if(V.prototype._move=function(g){J(g,this)},V.prototype.clone=function(){var g=new V(null);return this.copy(g),g},V.prototype._expand=function(g){for(;this.length<g;)this.words[this.length++]=0;return this},V.prototype._strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},V.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},typeof Symbol<"u"&&typeof Symbol.for=="function")try{V.prototype[Symbol.for("nodejs.util.inspect.custom")]=O}catch{V.prototype.inspect=O}else V.prototype.inspect=O;function O(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var F=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],A=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],W=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];V.prototype.toString=function(g,N){g=g||10,N=N|0||1;var x;if(g===16||g==="hex"){x="";for(var _=0,B=0,y=0;y<this.length;y++){var w=this.words[y],f=((w<<_|B)&16777215).toString(16);B=w>>>24-_&16777215,_+=2,_>=26&&(_-=26,y--),B!==0||y!==this.length-1?x=F[6-f.length]+f+x:x=f+x}for(B!==0&&(x=B.toString(16)+x);x.length%N!==0;)x="0"+x;return this.negative!==0&&(x="-"+x),x}if(g===(g|0)&&g>=2&&g<=36){var p=A[g],c=W[g];x="";var h=this.clone();for(h.negative=0;!h.isZero();){var d=h.modrn(c).toString(g);h=h.idivn(c),h.isZero()?x=d+x:x=F[p-d.length]+d+x}for(this.isZero()&&(x="0"+x);x.length%N!==0;)x="0"+x;return this.negative!==0&&(x="-"+x),x}Z(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var g=this.words[0];return this.length===2?g+=this.words[1]*67108864:this.length===3&&this.words[2]===1?g+=4503599627370496+this.words[1]*67108864:this.length>2&&Z(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-g:g},V.prototype.toJSON=function(){return this.toString(16,2)},U&&(V.prototype.toBuffer=function(g,N){return this.toArrayLike(U,g,N)}),V.prototype.toArray=function(g,N){return this.toArrayLike(Array,g,N)};var H=function(g,N){return g.allocUnsafe?g.allocUnsafe(N):new g(N)};V.prototype.toArrayLike=function(g,N,x){this._strip();var _=this.byteLength(),B=x||Math.max(1,_);Z(_<=B,"byte array longer than desired length"),Z(B>0,"Requested array length <= 0");var y=H(g,B),w=N==="le"?"LE":"BE";return this["_toArrayLike"+w](y,_),y},V.prototype._toArrayLikeLE=function(g,N){for(var x=0,_=0,B=0,y=0;B<this.length;B++){var w=this.words[B]<<y|_;g[x++]=w&255,x<g.length&&(g[x++]=w>>8&255),x<g.length&&(g[x++]=w>>16&255),y===6?(x<g.length&&(g[x++]=w>>24&255),_=0,y=0):(_=w>>>24,y+=2)}if(x<g.length)for(g[x++]=_;x<g.length;)g[x++]=0},V.prototype._toArrayLikeBE=function(g,N){for(var x=g.length-1,_=0,B=0,y=0;B<this.length;B++){var w=this.words[B]<<y|_;g[x--]=w&255,x>=0&&(g[x--]=w>>8&255),x>=0&&(g[x--]=w>>16&255),y===6?(x>=0&&(g[x--]=w>>24&255),_=0,y=0):(_=w>>>24,y+=2)}if(x>=0)for(g[x--]=_;x>=0;)g[x--]=0},Math.clz32?V.prototype._countBits=function(g){return 32-Math.clz32(g)}:V.prototype._countBits=function(g){var N=g,x=0;return N>=4096&&(x+=13,N>>>=13),N>=64&&(x+=7,N>>>=7),N>=8&&(x+=4,N>>>=4),N>=2&&(x+=2,N>>>=2),x+N},V.prototype._zeroBits=function(g){if(g===0)return 26;var N=g,x=0;return(N&8191)===0&&(x+=13,N>>>=13),(N&127)===0&&(x+=7,N>>>=7),(N&15)===0&&(x+=4,N>>>=4),(N&3)===0&&(x+=2,N>>>=2),(N&1)===0&&x++,x},V.prototype.bitLength=function(){var g=this.words[this.length-1],N=this._countBits(g);return(this.length-1)*26+N};function E(g){for(var N=new Array(g.bitLength()),x=0;x<N.length;x++){var _=x/26|0,B=x%26;N[x]=g.words[_]>>>B&1}return N}V.prototype.zeroBits=function(){if(this.isZero())return 0;for(var g=0,N=0;N<this.length;N++){var x=this._zeroBits(this.words[N]);if(g+=x,x!==26)break}return g},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(g){return this.negative!==0?this.abs().inotn(g).iaddn(1):this.clone()},V.prototype.fromTwos=function(g){return this.testn(g-1)?this.notn(g).iaddn(1).ineg():this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},V.prototype.iuor=function(g){for(;this.length<g.length;)this.words[this.length++]=0;for(var N=0;N<g.length;N++)this.words[N]=this.words[N]|g.words[N];return this._strip()},V.prototype.ior=function(g){return Z((this.negative|g.negative)===0),this.iuor(g)},V.prototype.or=function(g){return this.length>g.length?this.clone().ior(g):g.clone().ior(this)},V.prototype.uor=function(g){return this.length>g.length?this.clone().iuor(g):g.clone().iuor(this)},V.prototype.iuand=function(g){var N;this.length>g.length?N=g:N=this;for(var x=0;x<N.length;x++)this.words[x]=this.words[x]&g.words[x];return this.length=N.length,this._strip()},V.prototype.iand=function(g){return Z((this.negative|g.negative)===0),this.iuand(g)},V.prototype.and=function(g){return this.length>g.length?this.clone().iand(g):g.clone().iand(this)},V.prototype.uand=function(g){return this.length>g.length?this.clone().iuand(g):g.clone().iuand(this)},V.prototype.iuxor=function(g){var N,x;this.length>g.length?(N=this,x=g):(N=g,x=this);for(var _=0;_<x.length;_++)this.words[_]=N.words[_]^x.words[_];if(this!==N)for(;_<N.length;_++)this.words[_]=N.words[_];return this.length=N.length,this._strip()},V.prototype.ixor=function(g){return Z((this.negative|g.negative)===0),this.iuxor(g)},V.prototype.xor=function(g){return this.length>g.length?this.clone().ixor(g):g.clone().ixor(this)},V.prototype.uxor=function(g){return this.length>g.length?this.clone().iuxor(g):g.clone().iuxor(this)},V.prototype.inotn=function(g){Z(typeof g=="number"&&g>=0);var N=Math.ceil(g/26)|0,x=g%26;this._expand(N),x>0&&N--;for(var _=0;_<N;_++)this.words[_]=~this.words[_]&67108863;return x>0&&(this.words[_]=~this.words[_]&67108863>>26-x),this._strip()},V.prototype.notn=function(g){return this.clone().inotn(g)},V.prototype.setn=function(g,N){Z(typeof g=="number"&&g>=0);var x=g/26|0,_=g%26;return this._expand(x+1),N?this.words[x]=this.words[x]|1<<_:this.words[x]=this.words[x]&~(1<<_),this._strip()},V.prototype.iadd=function(g){var N;if(this.negative!==0&&g.negative===0)return this.negative=0,N=this.isub(g),this.negative^=1,this._normSign();if(this.negative===0&&g.negative!==0)return g.negative=0,N=this.isub(g),g.negative=1,N._normSign();var x,_;this.length>g.length?(x=this,_=g):(x=g,_=this);for(var B=0,y=0;y<_.length;y++)N=(x.words[y]|0)+(_.words[y]|0)+B,this.words[y]=N&67108863,B=N>>>26;for(;B!==0&&y<x.length;y++)N=(x.words[y]|0)+B,this.words[y]=N&67108863,B=N>>>26;if(this.length=x.length,B!==0)this.words[this.length]=B,this.length++;else if(x!==this)for(;y<x.length;y++)this.words[y]=x.words[y];return this},V.prototype.add=function(g){var N;return g.negative!==0&&this.negative===0?(g.negative=0,N=this.sub(g),g.negative^=1,N):g.negative===0&&this.negative!==0?(this.negative=0,N=g.sub(this),this.negative=1,N):this.length>g.length?this.clone().iadd(g):g.clone().iadd(this)},V.prototype.isub=function(g){if(g.negative!==0){g.negative=0;var N=this.iadd(g);return g.negative=1,N._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(g),this.negative=1,this._normSign();var x=this.cmp(g);if(x===0)return this.negative=0,this.length=1,this.words[0]=0,this;var _,B;x>0?(_=this,B=g):(_=g,B=this);for(var y=0,w=0;w<B.length;w++)N=(_.words[w]|0)-(B.words[w]|0)+y,y=N>>26,this.words[w]=N&67108863;for(;y!==0&&w<_.length;w++)N=(_.words[w]|0)+y,y=N>>26,this.words[w]=N&67108863;if(y===0&&w<_.length&&_!==this)for(;w<_.length;w++)this.words[w]=_.words[w];return this.length=Math.max(this.length,w),_!==this&&(this.negative=1),this._strip()},V.prototype.sub=function(g){return this.clone().isub(g)};function T(g,N,x){x.negative=N.negative^g.negative;var _=g.length+N.length|0;x.length=_,_=_-1|0;var B=g.words[0]|0,y=N.words[0]|0,w=B*y,f=w&67108863,p=w/67108864|0;x.words[0]=f;for(var c=1;c<_;c++){for(var h=p>>>26,d=p&67108863,b=Math.min(c,N.length-1),l=Math.max(0,c-g.length+1);l<=b;l++){var o=c-l|0;B=g.words[o]|0,y=N.words[l]|0,w=B*y+d,h+=w/67108864|0,d=w&67108863}x.words[c]=d|0,p=h|0}return p!==0?x.words[c]=p|0:x.length--,x._strip()}var D=function(g,N,x){var _=g.words,B=N.words,y=x.words,w=0,f,p,c,h=_[0]|0,d=h&8191,b=h>>>13,l=_[1]|0,o=l&8191,u=l>>>13,n=_[2]|0,s=n&8191,t=n>>>13,m=_[3]|0,a=m&8191,r=m>>>13,e=_[4]|0,i=e&8191,$0=e>>>13,Q0=_[5]|0,Y0=Q0&8191,Z0=Q0>>>13,G0=_[6]|0,V0=G0&8191,U0=G0>>>13,X0=_[7]|0,K0=X0&8191,I0=X0>>>13,J0=_[8]|0,O0=J0&8191,F0=J0>>>13,A0=_[9]|0,W0=A0&8191,H0=A0>>>13,E0=B[0]|0,T0=E0&8191,D0=E0>>>13,C0=B[1]|0,L0=C0&8191,R0=C0>>>13,P0=B[2]|0,z0=P0&8191,M0=P0>>>13,S0=B[3]|0,v0=S0&8191,q0=S0>>>13,j0=B[4]|0,k0=j0&8191,g0=j0>>>13,N0=B[5]|0,x0=N0&8191,_0=N0>>>13,B0=B[6]|0,y0=B0&8191,w0=B0>>>13,f0=B[7]|0,p0=f0&8191,c0=f0>>>13,h0=B[8]|0,d0=h0&8191,b0=h0>>>13,l0=B[9]|0,o0=l0&8191,u0=l0>>>13;x.negative=g.negative^N.negative,x.length=19,f=Math.imul(d,T0),p=Math.imul(d,D0),p=p+Math.imul(b,T0)|0,c=Math.imul(b,D0);var n0=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(n0>>>26)|0,n0&=67108863,f=Math.imul(o,T0),p=Math.imul(o,D0),p=p+Math.imul(u,T0)|0,c=Math.imul(u,D0),f=f+Math.imul(d,L0)|0,p=p+Math.imul(d,R0)|0,p=p+Math.imul(b,L0)|0,c=c+Math.imul(b,R0)|0;var s0=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(s0>>>26)|0,s0&=67108863,f=Math.imul(s,T0),p=Math.imul(s,D0),p=p+Math.imul(t,T0)|0,c=Math.imul(t,D0),f=f+Math.imul(o,L0)|0,p=p+Math.imul(o,R0)|0,p=p+Math.imul(u,L0)|0,c=c+Math.imul(u,R0)|0,f=f+Math.imul(d,z0)|0,p=p+Math.imul(d,M0)|0,p=p+Math.imul(b,z0)|0,c=c+Math.imul(b,M0)|0;var t0=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(t0>>>26)|0,t0&=67108863,f=Math.imul(a,T0),p=Math.imul(a,D0),p=p+Math.imul(r,T0)|0,c=Math.imul(r,D0),f=f+Math.imul(s,L0)|0,p=p+Math.imul(s,R0)|0,p=p+Math.imul(t,L0)|0,c=c+Math.imul(t,R0)|0,f=f+Math.imul(o,z0)|0,p=p+Math.imul(o,M0)|0,p=p+Math.imul(u,z0)|0,c=c+Math.imul(u,M0)|0,f=f+Math.imul(d,v0)|0,p=p+Math.imul(d,q0)|0,p=p+Math.imul(b,v0)|0,c=c+Math.imul(b,q0)|0;var m0=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(m0>>>26)|0,m0&=67108863,f=Math.imul(i,T0),p=Math.imul(i,D0),p=p+Math.imul($0,T0)|0,c=Math.imul($0,D0),f=f+Math.imul(a,L0)|0,p=p+Math.imul(a,R0)|0,p=p+Math.imul(r,L0)|0,c=c+Math.imul(r,R0)|0,f=f+Math.imul(s,z0)|0,p=p+Math.imul(s,M0)|0,p=p+Math.imul(t,z0)|0,c=c+Math.imul(t,M0)|0,f=f+Math.imul(o,v0)|0,p=p+Math.imul(o,q0)|0,p=p+Math.imul(u,v0)|0,c=c+Math.imul(u,q0)|0,f=f+Math.imul(d,k0)|0,p=p+Math.imul(d,g0)|0,p=p+Math.imul(b,k0)|0,c=c+Math.imul(b,g0)|0;var a0=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(a0>>>26)|0,a0&=67108863,f=Math.imul(Y0,T0),p=Math.imul(Y0,D0),p=p+Math.imul(Z0,T0)|0,c=Math.imul(Z0,D0),f=f+Math.imul(i,L0)|0,p=p+Math.imul(i,R0)|0,p=p+Math.imul($0,L0)|0,c=c+Math.imul($0,R0)|0,f=f+Math.imul(a,z0)|0,p=p+Math.imul(a,M0)|0,p=p+Math.imul(r,z0)|0,c=c+Math.imul(r,M0)|0,f=f+Math.imul(s,v0)|0,p=p+Math.imul(s,q0)|0,p=p+Math.imul(t,v0)|0,c=c+Math.imul(t,q0)|0,f=f+Math.imul(o,k0)|0,p=p+Math.imul(o,g0)|0,p=p+Math.imul(u,k0)|0,c=c+Math.imul(u,g0)|0,f=f+Math.imul(d,x0)|0,p=p+Math.imul(d,_0)|0,p=p+Math.imul(b,x0)|0,c=c+Math.imul(b,_0)|0;var r0=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(r0>>>26)|0,r0&=67108863,f=Math.imul(V0,T0),p=Math.imul(V0,D0),p=p+Math.imul(U0,T0)|0,c=Math.imul(U0,D0),f=f+Math.imul(Y0,L0)|0,p=p+Math.imul(Y0,R0)|0,p=p+Math.imul(Z0,L0)|0,c=c+Math.imul(Z0,R0)|0,f=f+Math.imul(i,z0)|0,p=p+Math.imul(i,M0)|0,p=p+Math.imul($0,z0)|0,c=c+Math.imul($0,M0)|0,f=f+Math.imul(a,v0)|0,p=p+Math.imul(a,q0)|0,p=p+Math.imul(r,v0)|0,c=c+Math.imul(r,q0)|0,f=f+Math.imul(s,k0)|0,p=p+Math.imul(s,g0)|0,p=p+Math.imul(t,k0)|0,c=c+Math.imul(t,g0)|0,f=f+Math.imul(o,x0)|0,p=p+Math.imul(o,_0)|0,p=p+Math.imul(u,x0)|0,c=c+Math.imul(u,_0)|0,f=f+Math.imul(d,y0)|0,p=p+Math.imul(d,w0)|0,p=p+Math.imul(b,y0)|0,c=c+Math.imul(b,w0)|0;var e0=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(e0>>>26)|0,e0&=67108863,f=Math.imul(K0,T0),p=Math.imul(K0,D0),p=p+Math.imul(I0,T0)|0,c=Math.imul(I0,D0),f=f+Math.imul(V0,L0)|0,p=p+Math.imul(V0,R0)|0,p=p+Math.imul(U0,L0)|0,c=c+Math.imul(U0,R0)|0,f=f+Math.imul(Y0,z0)|0,p=p+Math.imul(Y0,M0)|0,p=p+Math.imul(Z0,z0)|0,c=c+Math.imul(Z0,M0)|0,f=f+Math.imul(i,v0)|0,p=p+Math.imul(i,q0)|0,p=p+Math.imul($0,v0)|0,c=c+Math.imul($0,q0)|0,f=f+Math.imul(a,k0)|0,p=p+Math.imul(a,g0)|0,p=p+Math.imul(r,k0)|0,c=c+Math.imul(r,g0)|0,f=f+Math.imul(s,x0)|0,p=p+Math.imul(s,_0)|0,p=p+Math.imul(t,x0)|0,c=c+Math.imul(t,_0)|0,f=f+Math.imul(o,y0)|0,p=p+Math.imul(o,w0)|0,p=p+Math.imul(u,y0)|0,c=c+Math.imul(u,w0)|0,f=f+Math.imul(d,p0)|0,p=p+Math.imul(d,c0)|0,p=p+Math.imul(b,p0)|0,c=c+Math.imul(b,c0)|0;var i0=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(i0>>>26)|0,i0&=67108863,f=Math.imul(O0,T0),p=Math.imul(O0,D0),p=p+Math.imul(F0,T0)|0,c=Math.imul(F0,D0),f=f+Math.imul(K0,L0)|0,p=p+Math.imul(K0,R0)|0,p=p+Math.imul(I0,L0)|0,c=c+Math.imul(I0,R0)|0,f=f+Math.imul(V0,z0)|0,p=p+Math.imul(V0,M0)|0,p=p+Math.imul(U0,z0)|0,c=c+Math.imul(U0,M0)|0,f=f+Math.imul(Y0,v0)|0,p=p+Math.imul(Y0,q0)|0,p=p+Math.imul(Z0,v0)|0,c=c+Math.imul(Z0,q0)|0,f=f+Math.imul(i,k0)|0,p=p+Math.imul(i,g0)|0,p=p+Math.imul($0,k0)|0,c=c+Math.imul($0,g0)|0,f=f+Math.imul(a,x0)|0,p=p+Math.imul(a,_0)|0,p=p+Math.imul(r,x0)|0,c=c+Math.imul(r,_0)|0,f=f+Math.imul(s,y0)|0,p=p+Math.imul(s,w0)|0,p=p+Math.imul(t,y0)|0,c=c+Math.imul(t,w0)|0,f=f+Math.imul(o,p0)|0,p=p+Math.imul(o,c0)|0,p=p+Math.imul(u,p0)|0,c=c+Math.imul(u,c0)|0,f=f+Math.imul(d,d0)|0,p=p+Math.imul(d,b0)|0,p=p+Math.imul(b,d0)|0,c=c+Math.imul(b,b0)|0;var $$=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+($$>>>26)|0,$$&=67108863,f=Math.imul(W0,T0),p=Math.imul(W0,D0),p=p+Math.imul(H0,T0)|0,c=Math.imul(H0,D0),f=f+Math.imul(O0,L0)|0,p=p+Math.imul(O0,R0)|0,p=p+Math.imul(F0,L0)|0,c=c+Math.imul(F0,R0)|0,f=f+Math.imul(K0,z0)|0,p=p+Math.imul(K0,M0)|0,p=p+Math.imul(I0,z0)|0,c=c+Math.imul(I0,M0)|0,f=f+Math.imul(V0,v0)|0,p=p+Math.imul(V0,q0)|0,p=p+Math.imul(U0,v0)|0,c=c+Math.imul(U0,q0)|0,f=f+Math.imul(Y0,k0)|0,p=p+Math.imul(Y0,g0)|0,p=p+Math.imul(Z0,k0)|0,c=c+Math.imul(Z0,g0)|0,f=f+Math.imul(i,x0)|0,p=p+Math.imul(i,_0)|0,p=p+Math.imul($0,x0)|0,c=c+Math.imul($0,_0)|0,f=f+Math.imul(a,y0)|0,p=p+Math.imul(a,w0)|0,p=p+Math.imul(r,y0)|0,c=c+Math.imul(r,w0)|0,f=f+Math.imul(s,p0)|0,p=p+Math.imul(s,c0)|0,p=p+Math.imul(t,p0)|0,c=c+Math.imul(t,c0)|0,f=f+Math.imul(o,d0)|0,p=p+Math.imul(o,b0)|0,p=p+Math.imul(u,d0)|0,c=c+Math.imul(u,b0)|0,f=f+Math.imul(d,o0)|0,p=p+Math.imul(d,u0)|0,p=p+Math.imul(b,o0)|0,c=c+Math.imul(b,u0)|0;var Q$=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,f=Math.imul(W0,L0),p=Math.imul(W0,R0),p=p+Math.imul(H0,L0)|0,c=Math.imul(H0,R0),f=f+Math.imul(O0,z0)|0,p=p+Math.imul(O0,M0)|0,p=p+Math.imul(F0,z0)|0,c=c+Math.imul(F0,M0)|0,f=f+Math.imul(K0,v0)|0,p=p+Math.imul(K0,q0)|0,p=p+Math.imul(I0,v0)|0,c=c+Math.imul(I0,q0)|0,f=f+Math.imul(V0,k0)|0,p=p+Math.imul(V0,g0)|0,p=p+Math.imul(U0,k0)|0,c=c+Math.imul(U0,g0)|0,f=f+Math.imul(Y0,x0)|0,p=p+Math.imul(Y0,_0)|0,p=p+Math.imul(Z0,x0)|0,c=c+Math.imul(Z0,_0)|0,f=f+Math.imul(i,y0)|0,p=p+Math.imul(i,w0)|0,p=p+Math.imul($0,y0)|0,c=c+Math.imul($0,w0)|0,f=f+Math.imul(a,p0)|0,p=p+Math.imul(a,c0)|0,p=p+Math.imul(r,p0)|0,c=c+Math.imul(r,c0)|0,f=f+Math.imul(s,d0)|0,p=p+Math.imul(s,b0)|0,p=p+Math.imul(t,d0)|0,c=c+Math.imul(t,b0)|0,f=f+Math.imul(o,o0)|0,p=p+Math.imul(o,u0)|0,p=p+Math.imul(u,o0)|0,c=c+Math.imul(u,u0)|0;var Y$=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,f=Math.imul(W0,z0),p=Math.imul(W0,M0),p=p+Math.imul(H0,z0)|0,c=Math.imul(H0,M0),f=f+Math.imul(O0,v0)|0,p=p+Math.imul(O0,q0)|0,p=p+Math.imul(F0,v0)|0,c=c+Math.imul(F0,q0)|0,f=f+Math.imul(K0,k0)|0,p=p+Math.imul(K0,g0)|0,p=p+Math.imul(I0,k0)|0,c=c+Math.imul(I0,g0)|0,f=f+Math.imul(V0,x0)|0,p=p+Math.imul(V0,_0)|0,p=p+Math.imul(U0,x0)|0,c=c+Math.imul(U0,_0)|0,f=f+Math.imul(Y0,y0)|0,p=p+Math.imul(Y0,w0)|0,p=p+Math.imul(Z0,y0)|0,c=c+Math.imul(Z0,w0)|0,f=f+Math.imul(i,p0)|0,p=p+Math.imul(i,c0)|0,p=p+Math.imul($0,p0)|0,c=c+Math.imul($0,c0)|0,f=f+Math.imul(a,d0)|0,p=p+Math.imul(a,b0)|0,p=p+Math.imul(r,d0)|0,c=c+Math.imul(r,b0)|0,f=f+Math.imul(s,o0)|0,p=p+Math.imul(s,u0)|0,p=p+Math.imul(t,o0)|0,c=c+Math.imul(t,u0)|0;var Z$=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,f=Math.imul(W0,v0),p=Math.imul(W0,q0),p=p+Math.imul(H0,v0)|0,c=Math.imul(H0,q0),f=f+Math.imul(O0,k0)|0,p=p+Math.imul(O0,g0)|0,p=p+Math.imul(F0,k0)|0,c=c+Math.imul(F0,g0)|0,f=f+Math.imul(K0,x0)|0,p=p+Math.imul(K0,_0)|0,p=p+Math.imul(I0,x0)|0,c=c+Math.imul(I0,_0)|0,f=f+Math.imul(V0,y0)|0,p=p+Math.imul(V0,w0)|0,p=p+Math.imul(U0,y0)|0,c=c+Math.imul(U0,w0)|0,f=f+Math.imul(Y0,p0)|0,p=p+Math.imul(Y0,c0)|0,p=p+Math.imul(Z0,p0)|0,c=c+Math.imul(Z0,c0)|0,f=f+Math.imul(i,d0)|0,p=p+Math.imul(i,b0)|0,p=p+Math.imul($0,d0)|0,c=c+Math.imul($0,b0)|0,f=f+Math.imul(a,o0)|0,p=p+Math.imul(a,u0)|0,p=p+Math.imul(r,o0)|0,c=c+Math.imul(r,u0)|0;var G$=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(G$>>>26)|0,G$&=67108863,f=Math.imul(W0,k0),p=Math.imul(W0,g0),p=p+Math.imul(H0,k0)|0,c=Math.imul(H0,g0),f=f+Math.imul(O0,x0)|0,p=p+Math.imul(O0,_0)|0,p=p+Math.imul(F0,x0)|0,c=c+Math.imul(F0,_0)|0,f=f+Math.imul(K0,y0)|0,p=p+Math.imul(K0,w0)|0,p=p+Math.imul(I0,y0)|0,c=c+Math.imul(I0,w0)|0,f=f+Math.imul(V0,p0)|0,p=p+Math.imul(V0,c0)|0,p=p+Math.imul(U0,p0)|0,c=c+Math.imul(U0,c0)|0,f=f+Math.imul(Y0,d0)|0,p=p+Math.imul(Y0,b0)|0,p=p+Math.imul(Z0,d0)|0,c=c+Math.imul(Z0,b0)|0,f=f+Math.imul(i,o0)|0,p=p+Math.imul(i,u0)|0,p=p+Math.imul($0,o0)|0,c=c+Math.imul($0,u0)|0;var V$=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(V$>>>26)|0,V$&=67108863,f=Math.imul(W0,x0),p=Math.imul(W0,_0),p=p+Math.imul(H0,x0)|0,c=Math.imul(H0,_0),f=f+Math.imul(O0,y0)|0,p=p+Math.imul(O0,w0)|0,p=p+Math.imul(F0,y0)|0,c=c+Math.imul(F0,w0)|0,f=f+Math.imul(K0,p0)|0,p=p+Math.imul(K0,c0)|0,p=p+Math.imul(I0,p0)|0,c=c+Math.imul(I0,c0)|0,f=f+Math.imul(V0,d0)|0,p=p+Math.imul(V0,b0)|0,p=p+Math.imul(U0,d0)|0,c=c+Math.imul(U0,b0)|0,f=f+Math.imul(Y0,o0)|0,p=p+Math.imul(Y0,u0)|0,p=p+Math.imul(Z0,o0)|0,c=c+Math.imul(Z0,u0)|0;var U$=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(U$>>>26)|0,U$&=67108863,f=Math.imul(W0,y0),p=Math.imul(W0,w0),p=p+Math.imul(H0,y0)|0,c=Math.imul(H0,w0),f=f+Math.imul(O0,p0)|0,p=p+Math.imul(O0,c0)|0,p=p+Math.imul(F0,p0)|0,c=c+Math.imul(F0,c0)|0,f=f+Math.imul(K0,d0)|0,p=p+Math.imul(K0,b0)|0,p=p+Math.imul(I0,d0)|0,c=c+Math.imul(I0,b0)|0,f=f+Math.imul(V0,o0)|0,p=p+Math.imul(V0,u0)|0,p=p+Math.imul(U0,o0)|0,c=c+Math.imul(U0,u0)|0;var X$=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(X$>>>26)|0,X$&=67108863,f=Math.imul(W0,p0),p=Math.imul(W0,c0),p=p+Math.imul(H0,p0)|0,c=Math.imul(H0,c0),f=f+Math.imul(O0,d0)|0,p=p+Math.imul(O0,b0)|0,p=p+Math.imul(F0,d0)|0,c=c+Math.imul(F0,b0)|0,f=f+Math.imul(K0,o0)|0,p=p+Math.imul(K0,u0)|0,p=p+Math.imul(I0,o0)|0,c=c+Math.imul(I0,u0)|0;var K$=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(K$>>>26)|0,K$&=67108863,f=Math.imul(W0,d0),p=Math.imul(W0,b0),p=p+Math.imul(H0,d0)|0,c=Math.imul(H0,b0),f=f+Math.imul(O0,o0)|0,p=p+Math.imul(O0,u0)|0,p=p+Math.imul(F0,o0)|0,c=c+Math.imul(F0,u0)|0;var I$=(w+f|0)+((p&8191)<<13)|0;w=(c+(p>>>13)|0)+(I$>>>26)|0,I$&=67108863,f=Math.imul(W0,o0),p=Math.imul(W0,u0),p=p+Math.imul(H0,o0)|0,c=Math.imul(H0,u0);var J$=(w+f|0)+((p&8191)<<13)|0;return w=(c+(p>>>13)|0)+(J$>>>26)|0,J$&=67108863,y[0]=n0,y[1]=s0,y[2]=t0,y[3]=m0,y[4]=a0,y[5]=r0,y[6]=e0,y[7]=i0,y[8]=$$,y[9]=Q$,y[10]=Y$,y[11]=Z$,y[12]=G$,y[13]=V$,y[14]=U$,y[15]=X$,y[16]=K$,y[17]=I$,y[18]=J$,w!==0&&(y[19]=w,x.length++),x};Math.imul||(D=T);function C(g,N,x){x.negative=N.negative^g.negative,x.length=g.length+N.length;for(var _=0,B=0,y=0;y<x.length-1;y++){var w=B;B=0;for(var f=_&67108863,p=Math.min(y,N.length-1),c=Math.max(0,y-g.length+1);c<=p;c++){var h=y-c,d=g.words[h]|0,b=N.words[c]|0,l=d*b,o=l&67108863;w=w+(l/67108864|0)|0,o=o+f|0,f=o&67108863,w=w+(o>>>26)|0,B+=w>>>26,w&=67108863}x.words[y]=f,_=w,w=B}return _!==0?x.words[y]=_:x.length--,x._strip()}function L(g,N,x){return C(g,N,x)}V.prototype.mulTo=function(g,N){var x,_=this.length+g.length;return this.length===10&&g.length===10?x=D(this,g,N):_<63?x=T(this,g,N):_<1024?x=C(this,g,N):x=L(this,g,N),x};function R(g,N){this.x=g,this.y=N}R.prototype.makeRBT=function(g){for(var N=new Array(g),x=V.prototype._countBits(g)-1,_=0;_<g;_++)N[_]=this.revBin(_,x,g);return N},R.prototype.revBin=function(g,N,x){if(g===0||g===x-1)return g;for(var _=0,B=0;B<N;B++)_|=(g&1)<<N-B-1,g>>=1;return _},R.prototype.permute=function(g,N,x,_,B,y){for(var w=0;w<y;w++)_[w]=N[g[w]],B[w]=x[g[w]]},R.prototype.transform=function(g,N,x,_,B,y){this.permute(y,g,N,x,_,B);for(var w=1;w<B;w<<=1)for(var f=w<<1,p=Math.cos(2*Math.PI/f),c=Math.sin(2*Math.PI/f),h=0;h<B;h+=f)for(var d=p,b=c,l=0;l<w;l++){var o=x[h+l],u=_[h+l],n=x[h+l+w],s=_[h+l+w],t=d*n-b*s;s=d*s+b*n,n=t,x[h+l]=o+n,_[h+l]=u+s,x[h+l+w]=o-n,_[h+l+w]=u-s,l!==f&&(t=p*d-c*b,b=p*b+c*d,d=t)}},R.prototype.guessLen13b=function(g,N){var x=Math.max(N,g)|1,_=x&1,B=0;for(x=x/2|0;x;x=x>>>1)B++;return 1<<B+1+_},R.prototype.conjugate=function(g,N,x){if(!(x<=1))for(var _=0;_<x/2;_++){var B=g[_];g[_]=g[x-_-1],g[x-_-1]=B,B=N[_],N[_]=-N[x-_-1],N[x-_-1]=-B}},R.prototype.normalize13b=function(g,N){for(var x=0,_=0;_<N/2;_++){var B=Math.round(g[2*_+1]/N)*8192+Math.round(g[2*_]/N)+x;g[_]=B&67108863,B<67108864?x=0:x=B/67108864|0}return g},R.prototype.convert13b=function(g,N,x,_){for(var B=0,y=0;y<N;y++)B=B+(g[y]|0),x[2*y]=B&8191,B=B>>>13,x[2*y+1]=B&8191,B=B>>>13;for(y=2*N;y<_;++y)x[y]=0;Z(B===0),Z((B&-8192)===0)},R.prototype.stub=function(g){for(var N=new Array(g),x=0;x<g;x++)N[x]=0;return N},R.prototype.mulp=function(g,N,x){var _=2*this.guessLen13b(g.length,N.length),B=this.makeRBT(_),y=this.stub(_),w=new Array(_),f=new Array(_),p=new Array(_),c=new Array(_),h=new Array(_),d=new Array(_),b=x.words;b.length=_,this.convert13b(g.words,g.length,w,_),this.convert13b(N.words,N.length,c,_),this.transform(w,y,f,p,_,B),this.transform(c,y,h,d,_,B);for(var l=0;l<_;l++){var o=f[l]*h[l]-p[l]*d[l];p[l]=f[l]*d[l]+p[l]*h[l],f[l]=o}return this.conjugate(f,p,_),this.transform(f,p,b,y,_,B),this.conjugate(b,y,_),this.normalize13b(b,_),x.negative=g.negative^N.negative,x.length=g.length+N.length,x._strip()},V.prototype.mul=function(g){var N=new V(null);return N.words=new Array(this.length+g.length),this.mulTo(g,N)},V.prototype.mulf=function(g){var N=new V(null);return N.words=new Array(this.length+g.length),L(this,g,N)},V.prototype.imul=function(g){return this.clone().mulTo(g,this)},V.prototype.imuln=function(g){var N=g<0;N&&(g=-g),Z(typeof g=="number"),Z(g<67108864);for(var x=0,_=0;_<this.length;_++){var B=(this.words[_]|0)*g,y=(B&67108863)+(x&67108863);x>>=26,x+=B/67108864|0,x+=y>>>26,this.words[_]=y&67108863}return x!==0&&(this.words[_]=x,this.length++),N?this.ineg():this},V.prototype.muln=function(g){return this.clone().imuln(g)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(g){var N=E(g);if(N.length===0)return new V(1);for(var x=this,_=0;_<N.length&&N[_]===0;_++,x=x.sqr());if(++_<N.length)for(var B=x.sqr();_<N.length;_++,B=B.sqr())N[_]!==0&&(x=x.mul(B));return x},V.prototype.iushln=function(g){Z(typeof g=="number"&&g>=0);var N=g%26,x=(g-N)/26,_=67108863>>>26-N<<26-N,B;if(N!==0){var y=0;for(B=0;B<this.length;B++){var w=this.words[B]&_,f=(this.words[B]|0)-w<<N;this.words[B]=f|y,y=w>>>26-N}y&&(this.words[B]=y,this.length++)}if(x!==0){for(B=this.length-1;B>=0;B--)this.words[B+x]=this.words[B];for(B=0;B<x;B++)this.words[B]=0;this.length+=x}return this._strip()},V.prototype.ishln=function(g){return Z(this.negative===0),this.iushln(g)},V.prototype.iushrn=function(g,N,x){Z(typeof g=="number"&&g>=0);var _;N?_=(N-N%26)/26:_=0;var B=g%26,y=Math.min((g-B)/26,this.length),w=67108863^67108863>>>B<<B,f=x;if(_-=y,_=Math.max(0,_),f){for(var p=0;p<y;p++)f.words[p]=this.words[p];f.length=y}if(y!==0)if(this.length>y)for(this.length-=y,p=0;p<this.length;p++)this.words[p]=this.words[p+y];else this.words[0]=0,this.length=1;var c=0;for(p=this.length-1;p>=0&&(c!==0||p>=_);p--){var h=this.words[p]|0;this.words[p]=c<<26-B|h>>>B,c=h&w}return f&&c!==0&&(f.words[f.length++]=c),this.length===0&&(this.words[0]=0,this.length=1),this._strip()},V.prototype.ishrn=function(g,N,x){return Z(this.negative===0),this.iushrn(g,N,x)},V.prototype.shln=function(g){return this.clone().ishln(g)},V.prototype.ushln=function(g){return this.clone().iushln(g)},V.prototype.shrn=function(g){return this.clone().ishrn(g)},V.prototype.ushrn=function(g){return this.clone().iushrn(g)},V.prototype.testn=function(g){Z(typeof g=="number"&&g>=0);var N=g%26,x=(g-N)/26,_=1<<N;if(this.length<=x)return!1;var B=this.words[x];return!!(B&_)},V.prototype.imaskn=function(g){Z(typeof g=="number"&&g>=0);var N=g%26,x=(g-N)/26;if(Z(this.negative===0,"imaskn works only with positive numbers"),this.length<=x)return this;if(N!==0&&x++,this.length=Math.min(x,this.length),N!==0){var _=67108863^67108863>>>N<<N;this.words[this.length-1]&=_}return this._strip()},V.prototype.maskn=function(g){return this.clone().imaskn(g)},V.prototype.iaddn=function(g){return Z(typeof g=="number"),Z(g<67108864),g<0?this.isubn(-g):this.negative!==0?this.length===1&&(this.words[0]|0)<=g?(this.words[0]=g-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(g),this.negative=1,this):this._iaddn(g)},V.prototype._iaddn=function(g){this.words[0]+=g;for(var N=0;N<this.length&&this.words[N]>=67108864;N++)this.words[N]-=67108864,N===this.length-1?this.words[N+1]=1:this.words[N+1]++;return this.length=Math.max(this.length,N+1),this},V.prototype.isubn=function(g){if(Z(typeof g=="number"),Z(g<67108864),g<0)return this.iaddn(-g);if(this.negative!==0)return this.negative=0,this.iaddn(g),this.negative=1,this;if(this.words[0]-=g,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var N=0;N<this.length&&this.words[N]<0;N++)this.words[N]+=67108864,this.words[N+1]-=1;return this._strip()},V.prototype.addn=function(g){return this.clone().iaddn(g)},V.prototype.subn=function(g){return this.clone().isubn(g)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(g,N,x){var _=g.length+x,B;this._expand(_);var y,w=0;for(B=0;B<g.length;B++){y=(this.words[B+x]|0)+w;var f=(g.words[B]|0)*N;y-=f&67108863,w=(y>>26)-(f/67108864|0),this.words[B+x]=y&67108863}for(;B<this.length-x;B++)y=(this.words[B+x]|0)+w,w=y>>26,this.words[B+x]=y&67108863;if(w===0)return this._strip();for(Z(w===-1),w=0,B=0;B<this.length;B++)y=-(this.words[B]|0)+w,w=y>>26,this.words[B]=y&67108863;return this.negative=1,this._strip()},V.prototype._wordDiv=function(g,N){var x=this.length-g.length,_=this.clone(),B=g,y=B.words[B.length-1]|0,w=this._countBits(y);x=26-w,x!==0&&(B=B.ushln(x),_.iushln(x),y=B.words[B.length-1]|0);var f=_.length-B.length,p;if(N!=="mod"){p=new V(null),p.length=f+1,p.words=new Array(p.length);for(var c=0;c<p.length;c++)p.words[c]=0}var h=_.clone()._ishlnsubmul(B,1,f);h.negative===0&&(_=h,p&&(p.words[f]=1));for(var d=f-1;d>=0;d--){var b=(_.words[B.length+d]|0)*67108864+(_.words[B.length+d-1]|0);for(b=Math.min(b/y|0,67108863),_._ishlnsubmul(B,b,d);_.negative!==0;)b--,_.negative=0,_._ishlnsubmul(B,1,d),_.isZero()||(_.negative^=1);p&&(p.words[d]=b)}return p&&p._strip(),_._strip(),N!=="div"&&x!==0&&_.iushrn(x),{div:p||null,mod:_}},V.prototype.divmod=function(g,N,x){if(Z(!g.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var _,B,y;return this.negative!==0&&g.negative===0?(y=this.neg().divmod(g,N),N!=="mod"&&(_=y.div.neg()),N!=="div"&&(B=y.mod.neg(),x&&B.negative!==0&&B.iadd(g)),{div:_,mod:B}):this.negative===0&&g.negative!==0?(y=this.divmod(g.neg(),N),N!=="mod"&&(_=y.div.neg()),{div:_,mod:y.mod}):(this.negative&g.negative)!==0?(y=this.neg().divmod(g.neg(),N),N!=="div"&&(B=y.mod.neg(),x&&B.negative!==0&&B.isub(g)),{div:y.div,mod:B}):g.length>this.length||this.cmp(g)<0?{div:new V(0),mod:this}:g.length===1?N==="div"?{div:this.divn(g.words[0]),mod:null}:N==="mod"?{div:null,mod:new V(this.modrn(g.words[0]))}:{div:this.divn(g.words[0]),mod:new V(this.modrn(g.words[0]))}:this._wordDiv(g,N)},V.prototype.div=function(g){return this.divmod(g,"div",!1).div},V.prototype.mod=function(g){return this.divmod(g,"mod",!1).mod},V.prototype.umod=function(g){return this.divmod(g,"mod",!0).mod},V.prototype.divRound=function(g){var N=this.divmod(g);if(N.mod.isZero())return N.div;var x=N.div.negative!==0?N.mod.isub(g):N.mod,_=g.ushrn(1),B=g.andln(1),y=x.cmp(_);return y<0||B===1&&y===0?N.div:N.div.negative!==0?N.div.isubn(1):N.div.iaddn(1)},V.prototype.modrn=function(g){var N=g<0;N&&(g=-g),Z(g<=67108863);for(var x=(1<<26)%g,_=0,B=this.length-1;B>=0;B--)_=(x*_+(this.words[B]|0))%g;return N?-_:_},V.prototype.modn=function(g){return this.modrn(g)},V.prototype.idivn=function(g){var N=g<0;N&&(g=-g),Z(g<=67108863);for(var x=0,_=this.length-1;_>=0;_--){var B=(this.words[_]|0)+x*67108864;this.words[_]=B/g|0,x=B%g}return this._strip(),N?this.ineg():this},V.prototype.divn=function(g){return this.clone().idivn(g)},V.prototype.egcd=function(g){Z(g.negative===0),Z(!g.isZero());var N=this,x=g.clone();N.negative!==0?N=N.umod(g):N=N.clone();for(var _=new V(1),B=new V(0),y=new V(0),w=new V(1),f=0;N.isEven()&&x.isEven();)N.iushrn(1),x.iushrn(1),++f;for(var p=x.clone(),c=N.clone();!N.isZero();){for(var h=0,d=1;(N.words[0]&d)===0&&h<26;++h,d<<=1);if(h>0)for(N.iushrn(h);h-- >0;)(_.isOdd()||B.isOdd())&&(_.iadd(p),B.isub(c)),_.iushrn(1),B.iushrn(1);for(var b=0,l=1;(x.words[0]&l)===0&&b<26;++b,l<<=1);if(b>0)for(x.iushrn(b);b-- >0;)(y.isOdd()||w.isOdd())&&(y.iadd(p),w.isub(c)),y.iushrn(1),w.iushrn(1);N.cmp(x)>=0?(N.isub(x),_.isub(y),B.isub(w)):(x.isub(N),y.isub(_),w.isub(B))}return{a:y,b:w,gcd:x.iushln(f)}},V.prototype._invmp=function(g){Z(g.negative===0),Z(!g.isZero());var N=this,x=g.clone();N.negative!==0?N=N.umod(g):N=N.clone();for(var _=new V(1),B=new V(0),y=x.clone();N.cmpn(1)>0&&x.cmpn(1)>0;){for(var w=0,f=1;(N.words[0]&f)===0&&w<26;++w,f<<=1);if(w>0)for(N.iushrn(w);w-- >0;)_.isOdd()&&_.iadd(y),_.iushrn(1);for(var p=0,c=1;(x.words[0]&c)===0&&p<26;++p,c<<=1);if(p>0)for(x.iushrn(p);p-- >0;)B.isOdd()&&B.iadd(y),B.iushrn(1);N.cmp(x)>=0?(N.isub(x),_.isub(B)):(x.isub(N),B.isub(_))}var h;return N.cmpn(1)===0?h=_:h=B,h.cmpn(0)<0&&h.iadd(g),h},V.prototype.gcd=function(g){if(this.isZero())return g.abs();if(g.isZero())return this.abs();var N=this.clone(),x=g.clone();N.negative=0,x.negative=0;for(var _=0;N.isEven()&&x.isEven();_++)N.iushrn(1),x.iushrn(1);do{for(;N.isEven();)N.iushrn(1);for(;x.isEven();)x.iushrn(1);var B=N.cmp(x);if(B<0){var y=N;N=x,x=y}else if(B===0||x.cmpn(1)===0)break;N.isub(x)}while(!0);return x.iushln(_)},V.prototype.invm=function(g){return this.egcd(g).a.umod(g)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(g){return this.words[0]&g},V.prototype.bincn=function(g){Z(typeof g=="number");var N=g%26,x=(g-N)/26,_=1<<N;if(this.length<=x)return this._expand(x+1),this.words[x]|=_,this;for(var B=_,y=x;B!==0&&y<this.length;y++){var w=this.words[y]|0;w+=B,B=w>>>26,w&=67108863,this.words[y]=w}return B!==0&&(this.words[y]=B,this.length++),this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(g){var N=g<0;if(this.negative!==0&&!N)return-1;if(this.negative===0&&N)return 1;this._strip();var x;if(this.length>1)x=1;else{N&&(g=-g),Z(g<=67108863,"Number is too big");var _=this.words[0]|0;x=_===g?0:_<g?-1:1}return this.negative!==0?-x|0:x},V.prototype.cmp=function(g){if(this.negative!==0&&g.negative===0)return-1;if(this.negative===0&&g.negative!==0)return 1;var N=this.ucmp(g);return this.negative!==0?-N|0:N},V.prototype.ucmp=function(g){if(this.length>g.length)return 1;if(this.length<g.length)return-1;for(var N=0,x=this.length-1;x>=0;x--){var _=this.words[x]|0,B=g.words[x]|0;if(_!==B){_<B?N=-1:_>B&&(N=1);break}}return N},V.prototype.gtn=function(g){return this.cmpn(g)===1},V.prototype.gt=function(g){return this.cmp(g)===1},V.prototype.gten=function(g){return this.cmpn(g)>=0},V.prototype.gte=function(g){return this.cmp(g)>=0},V.prototype.ltn=function(g){return this.cmpn(g)===-1},V.prototype.lt=function(g){return this.cmp(g)===-1},V.prototype.lten=function(g){return this.cmpn(g)<=0},V.prototype.lte=function(g){return this.cmp(g)<=0},V.prototype.eqn=function(g){return this.cmpn(g)===0},V.prototype.eq=function(g){return this.cmp(g)===0},V.red=function(g){return new j(g)},V.prototype.toRed=function(g){return Z(!this.red,"Already a number in reduction context"),Z(this.negative===0,"red works only with positives"),g.convertTo(this)._forceRed(g)},V.prototype.fromRed=function(){return Z(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(g){return this.red=g,this},V.prototype.forceRed=function(g){return Z(!this.red,"Already a number in reduction context"),this._forceRed(g)},V.prototype.redAdd=function(g){return Z(this.red,"redAdd works only with red numbers"),this.red.add(this,g)},V.prototype.redIAdd=function(g){return Z(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,g)},V.prototype.redSub=function(g){return Z(this.red,"redSub works only with red numbers"),this.red.sub(this,g)},V.prototype.redISub=function(g){return Z(this.red,"redISub works only with red numbers"),this.red.isub(this,g)},V.prototype.redShl=function(g){return Z(this.red,"redShl works only with red numbers"),this.red.shl(this,g)},V.prototype.redMul=function(g){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,g),this.red.mul(this,g)},V.prototype.redIMul=function(g){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,g),this.red.imul(this,g)},V.prototype.redSqr=function(){return Z(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return Z(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return Z(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return Z(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return Z(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(g){return Z(this.red&&!g.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,g)};var P={k256:null,p224:null,p192:null,p25519:null};function z(g,N){this.name=g,this.p=new V(N,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}z.prototype._tmp=function(){var g=new V(null);return g.words=new Array(Math.ceil(this.n/13)),g},z.prototype.ireduce=function(g){var N=g,x;do this.split(N,this.tmp),N=this.imulK(N),N=N.iadd(this.tmp),x=N.bitLength();while(x>this.n);var _=x<this.n?-1:N.ucmp(this.p);return _===0?(N.words[0]=0,N.length=1):_>0?N.isub(this.p):N.strip!==void 0?N.strip():N._strip(),N},z.prototype.split=function(g,N){g.iushrn(this.n,0,N)},z.prototype.imulK=function(g){return g.imul(this.k)};function M(){z.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}G(M,z),M.prototype.split=function(g,N){for(var x=4194303,_=Math.min(g.length,9),B=0;B<_;B++)N.words[B]=g.words[B];if(N.length=_,g.length<=9){g.words[0]=0,g.length=1;return}var y=g.words[9];for(N.words[N.length++]=y&x,B=10;B<g.length;B++){var w=g.words[B]|0;g.words[B-10]=(w&x)<<4|y>>>22,y=w}y>>>=22,g.words[B-10]=y,y===0&&g.length>10?g.length-=10:g.length-=9},M.prototype.imulK=function(g){g.words[g.length]=0,g.words[g.length+1]=0,g.length+=2;for(var N=0,x=0;x<g.length;x++){var _=g.words[x]|0;N+=_*977,g.words[x]=N&67108863,N=_*64+(N/67108864|0)}return g.words[g.length-1]===0&&(g.length--,g.words[g.length-1]===0&&g.length--),g};function S(){z.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}G(S,z);function v(){z.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}G(v,z);function q(){z.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}G(q,z),q.prototype.imulK=function(g){for(var N=0,x=0;x<g.length;x++){var _=(g.words[x]|0)*19+N,B=_&67108863;_>>>=26,g.words[x]=B,N=_}return N!==0&&(g.words[g.length++]=N),g},V._prime=function(g){if(P[g])return P[g];var N;if(g==="k256")N=new M;else if(g==="p224")N=new S;else if(g==="p192")N=new v;else if(g==="p25519")N=new q;else throw new Error("Unknown prime "+g);return P[g]=N,N};function j(g){if(typeof g=="string"){var N=V._prime(g);this.m=N.p,this.prime=N}else Z(g.gtn(1),"modulus must be greater than 1"),this.m=g,this.prime=null}j.prototype._verify1=function(g){Z(g.negative===0,"red works only with positives"),Z(g.red,"red works only with red numbers")},j.prototype._verify2=function(g,N){Z((g.negative|N.negative)===0,"red works only with positives"),Z(g.red&&g.red===N.red,"red works only with red numbers")},j.prototype.imod=function(g){return this.prime?this.prime.ireduce(g)._forceRed(this):(J(g,g.umod(this.m)._forceRed(this)),g)},j.prototype.neg=function(g){return g.isZero()?g.clone():this.m.sub(g)._forceRed(this)},j.prototype.add=function(g,N){this._verify2(g,N);var x=g.add(N);return x.cmp(this.m)>=0&&x.isub(this.m),x._forceRed(this)},j.prototype.iadd=function(g,N){this._verify2(g,N);var x=g.iadd(N);return x.cmp(this.m)>=0&&x.isub(this.m),x},j.prototype.sub=function(g,N){this._verify2(g,N);var x=g.sub(N);return x.cmpn(0)<0&&x.iadd(this.m),x._forceRed(this)},j.prototype.isub=function(g,N){this._verify2(g,N);var x=g.isub(N);return x.cmpn(0)<0&&x.iadd(this.m),x},j.prototype.shl=function(g,N){return this._verify1(g),this.imod(g.ushln(N))},j.prototype.imul=function(g,N){return this._verify2(g,N),this.imod(g.imul(N))},j.prototype.mul=function(g,N){return this._verify2(g,N),this.imod(g.mul(N))},j.prototype.isqr=function(g){return this.imul(g,g.clone())},j.prototype.sqr=function(g){return this.mul(g,g)},j.prototype.sqrt=function(g){if(g.isZero())return g.clone();var N=this.m.andln(3);if(Z(N%2===1),N===3){var x=this.m.add(new V(1)).iushrn(2);return this.pow(g,x)}for(var _=this.m.subn(1),B=0;!_.isZero()&&_.andln(1)===0;)B++,_.iushrn(1);Z(!_.isZero());var y=new V(1).toRed(this),w=y.redNeg(),f=this.m.subn(1).iushrn(1),p=this.m.bitLength();for(p=new V(2*p*p).toRed(this);this.pow(p,f).cmp(w)!==0;)p.redIAdd(w);for(var c=this.pow(p,_),h=this.pow(g,_.addn(1).iushrn(1)),d=this.pow(g,_),b=B;d.cmp(y)!==0;){for(var l=d,o=0;l.cmp(y)!==0;o++)l=l.redSqr();Z(o<b);var u=this.pow(c,new V(1).iushln(b-o-1));h=h.redMul(u),c=u.redSqr(),d=d.redMul(c),b=o}return h},j.prototype.invm=function(g){var N=g._invmp(this.m);return N.negative!==0?(N.negative=0,this.imod(N).redNeg()):this.imod(N)},j.prototype.pow=function(g,N){if(N.isZero())return new V(1).toRed(this);if(N.cmpn(1)===0)return g.clone();var x=4,_=new Array(1<<x);_[0]=new V(1).toRed(this),_[1]=g;for(var B=2;B<_.length;B++)_[B]=this.mul(_[B-1],g);var y=_[0],w=0,f=0,p=N.bitLength()%26;for(p===0&&(p=26),B=N.length-1;B>=0;B--){for(var c=N.words[B],h=p-1;h>=0;h--){var d=c>>h&1;if(y!==_[0]&&(y=this.sqr(y)),d===0&&w===0){f=0;continue}w<<=1,w|=d,f++,!(f!==x&&(B!==0||h!==0))&&(y=this.mul(y,_[w]),f=0,w=0)}p=26}return y},j.prototype.convertTo=function(g){var N=g.umod(this.m);return N===g?N.clone():N},j.prototype.convertFrom=function(g){var N=g.clone();return N.red=null,N},V.mont=function(g){return new k(g)};function k(g){j.call(this,g),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new V(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}G(k,j),k.prototype.convertTo=function(g){return this.imod(g.ushln(this.shift))},k.prototype.convertFrom=function(g){var N=this.imod(g.mul(this.rinv));return N.red=null,N},k.prototype.imul=function(g,N){if(g.isZero()||N.isZero())return g.words[0]=0,g.length=1,g;var x=g.imul(N),_=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=x.isub(_).iushrn(this.shift),y=B;return B.cmp(this.m)>=0?y=B.isub(this.m):B.cmpn(0)<0&&(y=B.iadd(this.m)),y._forceRed(this)},k.prototype.mul=function(g,N){if(g.isZero()||N.isZero())return new V(0)._forceRed(this);var x=g.mul(N),_=x.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),B=x.isub(_).iushrn(this.shift),y=B;return B.cmp(this.m)>=0?y=B.isub(this.m):B.cmpn(0)<0&&(y=B.iadd(this.m)),y._forceRed(this)},k.prototype.invm=function(g){var N=this.imod(g._invmp(this.m).mul(this.r2));return N._forceRed(this)}})(typeof $>"u"||$,bZ)}}),wQ=P$({"node_modules/browserify-rsa/index.js"(bZ,$){var Q=yQ(),Y=S$();function Z(U){var X=G(U),K=X.toRed(Q.mont(U.modulus)).redPow(new Q(U.publicExponent)).fromRed();return{blinder:K,unblinder:X.invm(U.modulus)}}function G(U){var X=U.modulus.byteLength(),K;do K=new Q(Y(X));while(K.cmp(U.modulus)>=0||!K.umod(U.prime1)||!K.umod(U.prime2));return K}function V(U,X){var K=Z(X),I=X.modulus.byteLength(),J=new Q(U).mul(K.blinder).umod(X.modulus),O=J.toRed(Q.mont(X.prime1)),F=J.toRed(Q.mont(X.prime2)),A=X.coefficient,W=X.prime1,H=X.prime2,E=O.redPow(X.exponent1).fromRed(),T=F.redPow(X.exponent2).fromRed(),D=E.isub(T).imul(A).umod(W).imul(H);return T.iadd(D).imul(K.unblinder).umod(X.modulus).toArrayLike(Buffer,"be",I)}V.getr=G,$.exports=V}}),fQ=P$({"node_modules/elliptic/package.json"(bZ,$){$.exports={name:"elliptic",version:"6.5.4",description:"EC cryptography",main:"lib/elliptic.js",files:["lib"],scripts:{lint:"eslint lib test","lint:fix":"npm run lint -- --fix",unit:"istanbul test _mocha --reporter=spec test/index.js",test:"npm run lint && npm run unit",version:"grunt dist && git add dist/"},repository:{type:"git",url:"git@github.com:indutny/elliptic"},keywords:["EC","Elliptic","curve","Cryptography"],author:"Fedor Indutny <fedor@indutny.com>",license:"MIT",bugs:{url:"https://github.com/indutny/elliptic/issues"},homepage:"https://github.com/indutny/elliptic",devDependencies:{brfs:"^2.0.2",coveralls:"^3.1.0",eslint:"^7.6.0",grunt:"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1",istanbul:"^0.4.5",mocha:"^8.0.1"},dependencies:{"bn.js":"^4.11.9",brorand:"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1",inherits:"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}}}),pQ=P$({"node_modules/elliptic/node_modules/bn.js/lib/bn.js"(bZ,$){(function(Q,Y){function Z(q,j){if(!q)throw new Error(j||"Assertion failed")}function G(q,j){q.super_=j;var k=function(){};k.prototype=j.prototype,q.prototype=new k,q.prototype.constructor=q}function V(q,j,k){if(V.isBN(q))return q;this.negative=0,this.words=null,this.length=0,this.red=null,q!==null&&((j==="le"||j==="be")&&(k=j,j=10),this._init(q||0,j||10,k||"be"))}typeof Q=="object"?Q.exports=V:Y.BN=V,V.BN=V,V.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=L$("buffer").Buffer}catch{}V.isBN=function(q){return q instanceof V?!0:q!==null&&typeof q=="object"&&q.constructor.wordSize===V.wordSize&&Array.isArray(q.words)},V.max=function(q,j){return q.cmp(j)>0?q:j},V.min=function(q,j){return q.cmp(j)<0?q:j},V.prototype._init=function(q,j,k){if(typeof q=="number")return this._initNumber(q,j,k);if(typeof q=="object")return this._initArray(q,j,k);j==="hex"&&(j=16),Z(j===(j|0)&&j>=2&&j<=36),q=q.toString().replace(/\s+/g,"");var g=0;q[0]==="-"&&(g++,this.negative=1),g<q.length&&(j===16?this._parseHex(q,g,k):(this._parseBase(q,j,g),k==="le"&&this._initArray(this.toArray(),j,k)))},V.prototype._initNumber=function(q,j,k){q<0&&(this.negative=1,q=-q),q<67108864?(this.words=[q&67108863],this.length=1):q<4503599627370496?(this.words=[q&67108863,q/67108864&67108863],this.length=2):(Z(q<9007199254740992),this.words=[q&67108863,q/67108864&67108863,1],this.length=3),k==="le"&&this._initArray(this.toArray(),j,k)},V.prototype._initArray=function(q,j,k){if(Z(typeof q.length=="number"),q.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(q.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var N,x,_=0;if(k==="be")for(g=q.length-1,N=0;g>=0;g-=3)x=q[g]|q[g-1]<<8|q[g-2]<<16,this.words[N]|=x<<_&67108863,this.words[N+1]=x>>>26-_&67108863,_+=24,_>=26&&(_-=26,N++);else if(k==="le")for(g=0,N=0;g<q.length;g+=3)x=q[g]|q[g+1]<<8|q[g+2]<<16,this.words[N]|=x<<_&67108863,this.words[N+1]=x>>>26-_&67108863,_+=24,_>=26&&(_-=26,N++);return this.strip()};function X(q,j){var k=q.charCodeAt(j);return k>=65&&k<=70?k-55:k>=97&&k<=102?k-87:k-48&15}function K(q,j,k){var g=X(q,k);return k-1>=j&&(g|=X(q,k-1)<<4),g}V.prototype._parseHex=function(q,j,k){this.length=Math.ceil((q.length-j)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var N=0,x=0,_;if(k==="be")for(g=q.length-1;g>=j;g-=2)_=K(q,j,g)<<N,this.words[x]|=_&67108863,N>=18?(N-=18,x+=1,this.words[x]|=_>>>26):N+=8;else{var B=q.length-j;for(g=B%2===0?j+1:j;g<q.length;g+=2)_=K(q,j,g)<<N,this.words[x]|=_&67108863,N>=18?(N-=18,x+=1,this.words[x]|=_>>>26):N+=8}this.strip()};function I(q,j,k,g){for(var N=0,x=Math.min(q.length,k),_=j;_<x;_++){var B=q.charCodeAt(_)-48;N*=g,B>=49?N+=B-49+10:B>=17?N+=B-17+10:N+=B}return N}V.prototype._parseBase=function(q,j,k){this.words=[0],this.length=1;for(var g=0,N=1;N<=67108863;N*=j)g++;g--,N=N/j|0;for(var x=q.length-k,_=x%g,B=Math.min(x,x-_)+k,y=0,w=k;w<B;w+=g)y=I(q,w,w+g,j),this.imuln(N),this.words[0]+y<67108864?this.words[0]+=y:this._iaddn(y);if(_!==0){var f=1;for(y=I(q,w,q.length,j),w=0;w<_;w++)f*=j;this.imuln(f),this.words[0]+y<67108864?this.words[0]+=y:this._iaddn(y)}this.strip()},V.prototype.copy=function(q){q.words=new Array(this.length);for(var j=0;j<this.length;j++)q.words[j]=this.words[j];q.length=this.length,q.negative=this.negative,q.red=this.red},V.prototype.clone=function(){var q=new V(null);return this.copy(q),q},V.prototype._expand=function(q){for(;this.length<q;)this.words[this.length++]=0;return this},V.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},V.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},V.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var J=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],O=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];V.prototype.toString=function(q,j){q=q||10,j=j|0||1;var k;if(q===16||q==="hex"){k="";for(var g=0,N=0,x=0;x<this.length;x++){var _=this.words[x],B=((_<<g|N)&16777215).toString(16);N=_>>>24-g&16777215,N!==0||x!==this.length-1?k=J[6-B.length]+B+k:k=B+k,g+=2,g>=26&&(g-=26,x--)}for(N!==0&&(k=N.toString(16)+k);k.length%j!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(q===(q|0)&&q>=2&&q<=36){var y=O[q],w=F[q];k="";var f=this.clone();for(f.negative=0;!f.isZero();){var p=f.modn(w).toString(q);f=f.idivn(w),f.isZero()?k=p+k:k=J[y-p.length]+p+k}for(this.isZero()&&(k="0"+k);k.length%j!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}Z(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var q=this.words[0];return this.length===2?q+=this.words[1]*67108864:this.length===3&&this.words[2]===1?q+=4503599627370496+this.words[1]*67108864:this.length>2&&Z(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-q:q},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(q,j){return Z(typeof U<"u"),this.toArrayLike(U,q,j)},V.prototype.toArray=function(q,j){return this.toArrayLike(Array,q,j)},V.prototype.toArrayLike=function(q,j,k){var g=this.byteLength(),N=k||Math.max(1,g);Z(g<=N,"byte array longer than desired length"),Z(N>0,"Requested array length <= 0"),this.strip();var x=j==="le",_=new q(N),B,y,w=this.clone();if(x){for(y=0;!w.isZero();y++)B=w.andln(255),w.iushrn(8),_[y]=B;for(;y<N;y++)_[y]=0}else{for(y=0;y<N-g;y++)_[y]=0;for(y=0;!w.isZero();y++)B=w.andln(255),w.iushrn(8),_[N-y-1]=B}return _},Math.clz32?V.prototype._countBits=function(q){return 32-Math.clz32(q)}:V.prototype._countBits=function(q){var j=q,k=0;return j>=4096&&(k+=13,j>>>=13),j>=64&&(k+=7,j>>>=7),j>=8&&(k+=4,j>>>=4),j>=2&&(k+=2,j>>>=2),k+j},V.prototype._zeroBits=function(q){if(q===0)return 26;var j=q,k=0;return(j&8191)===0&&(k+=13,j>>>=13),(j&127)===0&&(k+=7,j>>>=7),(j&15)===0&&(k+=4,j>>>=4),(j&3)===0&&(k+=2,j>>>=2),(j&1)===0&&k++,k},V.prototype.bitLength=function(){var q=this.words[this.length-1],j=this._countBits(q);return(this.length-1)*26+j};function A(q){for(var j=new Array(q.bitLength()),k=0;k<j.length;k++){var g=k/26|0,N=k%26;j[k]=(q.words[g]&1<<N)>>>N}return j}V.prototype.zeroBits=function(){if(this.isZero())return 0;for(var q=0,j=0;j<this.length;j++){var k=this._zeroBits(this.words[j]);if(q+=k,k!==26)break}return q},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(q){return this.negative!==0?this.abs().inotn(q).iaddn(1):this.clone()},V.prototype.fromTwos=function(q){return this.testn(q-1)?this.notn(q).iaddn(1).ineg():this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},V.prototype.iuor=function(q){for(;this.length<q.length;)this.words[this.length++]=0;for(var j=0;j<q.length;j++)this.words[j]=this.words[j]|q.words[j];return this.strip()},V.prototype.ior=function(q){return Z((this.negative|q.negative)===0),this.iuor(q)},V.prototype.or=function(q){return this.length>q.length?this.clone().ior(q):q.clone().ior(this)},V.prototype.uor=function(q){return this.length>q.length?this.clone().iuor(q):q.clone().iuor(this)},V.prototype.iuand=function(q){var j;this.length>q.length?j=q:j=this;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]&q.words[k];return this.length=j.length,this.strip()},V.prototype.iand=function(q){return Z((this.negative|q.negative)===0),this.iuand(q)},V.prototype.and=function(q){return this.length>q.length?this.clone().iand(q):q.clone().iand(this)},V.prototype.uand=function(q){return this.length>q.length?this.clone().iuand(q):q.clone().iuand(this)},V.prototype.iuxor=function(q){var j,k;this.length>q.length?(j=this,k=q):(j=q,k=this);for(var g=0;g<k.length;g++)this.words[g]=j.words[g]^k.words[g];if(this!==j)for(;g<j.length;g++)this.words[g]=j.words[g];return this.length=j.length,this.strip()},V.prototype.ixor=function(q){return Z((this.negative|q.negative)===0),this.iuxor(q)},V.prototype.xor=function(q){return this.length>q.length?this.clone().ixor(q):q.clone().ixor(this)},V.prototype.uxor=function(q){return this.length>q.length?this.clone().iuxor(q):q.clone().iuxor(this)},V.prototype.inotn=function(q){Z(typeof q=="number"&&q>=0);var j=Math.ceil(q/26)|0,k=q%26;this._expand(j),k>0&&j--;for(var g=0;g<j;g++)this.words[g]=~this.words[g]&67108863;return k>0&&(this.words[g]=~this.words[g]&67108863>>26-k),this.strip()},V.prototype.notn=function(q){return this.clone().inotn(q)},V.prototype.setn=function(q,j){Z(typeof q=="number"&&q>=0);var k=q/26|0,g=q%26;return this._expand(k+1),j?this.words[k]=this.words[k]|1<<g:this.words[k]=this.words[k]&~(1<<g),this.strip()},V.prototype.iadd=function(q){var j;if(this.negative!==0&&q.negative===0)return this.negative=0,j=this.isub(q),this.negative^=1,this._normSign();if(this.negative===0&&q.negative!==0)return q.negative=0,j=this.isub(q),q.negative=1,j._normSign();var k,g;this.length>q.length?(k=this,g=q):(k=q,g=this);for(var N=0,x=0;x<g.length;x++)j=(k.words[x]|0)+(g.words[x]|0)+N,this.words[x]=j&67108863,N=j>>>26;for(;N!==0&&x<k.length;x++)j=(k.words[x]|0)+N,this.words[x]=j&67108863,N=j>>>26;if(this.length=k.length,N!==0)this.words[this.length]=N,this.length++;else if(k!==this)for(;x<k.length;x++)this.words[x]=k.words[x];return this},V.prototype.add=function(q){var j;return q.negative!==0&&this.negative===0?(q.negative=0,j=this.sub(q),q.negative^=1,j):q.negative===0&&this.negative!==0?(this.negative=0,j=q.sub(this),this.negative=1,j):this.length>q.length?this.clone().iadd(q):q.clone().iadd(this)},V.prototype.isub=function(q){if(q.negative!==0){q.negative=0;var j=this.iadd(q);return q.negative=1,j._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(q),this.negative=1,this._normSign();var k=this.cmp(q);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,N;k>0?(g=this,N=q):(g=q,N=this);for(var x=0,_=0;_<N.length;_++)j=(g.words[_]|0)-(N.words[_]|0)+x,x=j>>26,this.words[_]=j&67108863;for(;x!==0&&_<g.length;_++)j=(g.words[_]|0)+x,x=j>>26,this.words[_]=j&67108863;if(x===0&&_<g.length&&g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this.length=Math.max(this.length,_),g!==this&&(this.negative=1),this.strip()},V.prototype.sub=function(q){return this.clone().isub(q)};function W(q,j,k){k.negative=j.negative^q.negative;var g=q.length+j.length|0;k.length=g,g=g-1|0;var N=q.words[0]|0,x=j.words[0]|0,_=N*x,B=_&67108863,y=_/67108864|0;k.words[0]=B;for(var w=1;w<g;w++){for(var f=y>>>26,p=y&67108863,c=Math.min(w,j.length-1),h=Math.max(0,w-q.length+1);h<=c;h++){var d=w-h|0;N=q.words[d]|0,x=j.words[h]|0,_=N*x+p,f+=_/67108864|0,p=_&67108863}k.words[w]=p|0,y=f|0}return y!==0?k.words[w]=y|0:k.length--,k.strip()}var H=function(q,j,k){var g=q.words,N=j.words,x=k.words,_=0,B,y,w,f=g[0]|0,p=f&8191,c=f>>>13,h=g[1]|0,d=h&8191,b=h>>>13,l=g[2]|0,o=l&8191,u=l>>>13,n=g[3]|0,s=n&8191,t=n>>>13,m=g[4]|0,a=m&8191,r=m>>>13,e=g[5]|0,i=e&8191,$0=e>>>13,Q0=g[6]|0,Y0=Q0&8191,Z0=Q0>>>13,G0=g[7]|0,V0=G0&8191,U0=G0>>>13,X0=g[8]|0,K0=X0&8191,I0=X0>>>13,J0=g[9]|0,O0=J0&8191,F0=J0>>>13,A0=N[0]|0,W0=A0&8191,H0=A0>>>13,E0=N[1]|0,T0=E0&8191,D0=E0>>>13,C0=N[2]|0,L0=C0&8191,R0=C0>>>13,P0=N[3]|0,z0=P0&8191,M0=P0>>>13,S0=N[4]|0,v0=S0&8191,q0=S0>>>13,j0=N[5]|0,k0=j0&8191,g0=j0>>>13,N0=N[6]|0,x0=N0&8191,_0=N0>>>13,B0=N[7]|0,y0=B0&8191,w0=B0>>>13,f0=N[8]|0,p0=f0&8191,c0=f0>>>13,h0=N[9]|0,d0=h0&8191,b0=h0>>>13;k.negative=q.negative^j.negative,k.length=19,B=Math.imul(p,W0),y=Math.imul(p,H0),y=y+Math.imul(c,W0)|0,w=Math.imul(c,H0);var l0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(l0>>>26)|0,l0&=67108863,B=Math.imul(d,W0),y=Math.imul(d,H0),y=y+Math.imul(b,W0)|0,w=Math.imul(b,H0),B=B+Math.imul(p,T0)|0,y=y+Math.imul(p,D0)|0,y=y+Math.imul(c,T0)|0,w=w+Math.imul(c,D0)|0;var o0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(o0>>>26)|0,o0&=67108863,B=Math.imul(o,W0),y=Math.imul(o,H0),y=y+Math.imul(u,W0)|0,w=Math.imul(u,H0),B=B+Math.imul(d,T0)|0,y=y+Math.imul(d,D0)|0,y=y+Math.imul(b,T0)|0,w=w+Math.imul(b,D0)|0,B=B+Math.imul(p,L0)|0,y=y+Math.imul(p,R0)|0,y=y+Math.imul(c,L0)|0,w=w+Math.imul(c,R0)|0;var u0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(u0>>>26)|0,u0&=67108863,B=Math.imul(s,W0),y=Math.imul(s,H0),y=y+Math.imul(t,W0)|0,w=Math.imul(t,H0),B=B+Math.imul(o,T0)|0,y=y+Math.imul(o,D0)|0,y=y+Math.imul(u,T0)|0,w=w+Math.imul(u,D0)|0,B=B+Math.imul(d,L0)|0,y=y+Math.imul(d,R0)|0,y=y+Math.imul(b,L0)|0,w=w+Math.imul(b,R0)|0,B=B+Math.imul(p,z0)|0,y=y+Math.imul(p,M0)|0,y=y+Math.imul(c,z0)|0,w=w+Math.imul(c,M0)|0;var n0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(n0>>>26)|0,n0&=67108863,B=Math.imul(a,W0),y=Math.imul(a,H0),y=y+Math.imul(r,W0)|0,w=Math.imul(r,H0),B=B+Math.imul(s,T0)|0,y=y+Math.imul(s,D0)|0,y=y+Math.imul(t,T0)|0,w=w+Math.imul(t,D0)|0,B=B+Math.imul(o,L0)|0,y=y+Math.imul(o,R0)|0,y=y+Math.imul(u,L0)|0,w=w+Math.imul(u,R0)|0,B=B+Math.imul(d,z0)|0,y=y+Math.imul(d,M0)|0,y=y+Math.imul(b,z0)|0,w=w+Math.imul(b,M0)|0,B=B+Math.imul(p,v0)|0,y=y+Math.imul(p,q0)|0,y=y+Math.imul(c,v0)|0,w=w+Math.imul(c,q0)|0;var s0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(s0>>>26)|0,s0&=67108863,B=Math.imul(i,W0),y=Math.imul(i,H0),y=y+Math.imul($0,W0)|0,w=Math.imul($0,H0),B=B+Math.imul(a,T0)|0,y=y+Math.imul(a,D0)|0,y=y+Math.imul(r,T0)|0,w=w+Math.imul(r,D0)|0,B=B+Math.imul(s,L0)|0,y=y+Math.imul(s,R0)|0,y=y+Math.imul(t,L0)|0,w=w+Math.imul(t,R0)|0,B=B+Math.imul(o,z0)|0,y=y+Math.imul(o,M0)|0,y=y+Math.imul(u,z0)|0,w=w+Math.imul(u,M0)|0,B=B+Math.imul(d,v0)|0,y=y+Math.imul(d,q0)|0,y=y+Math.imul(b,v0)|0,w=w+Math.imul(b,q0)|0,B=B+Math.imul(p,k0)|0,y=y+Math.imul(p,g0)|0,y=y+Math.imul(c,k0)|0,w=w+Math.imul(c,g0)|0;var t0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(t0>>>26)|0,t0&=67108863,B=Math.imul(Y0,W0),y=Math.imul(Y0,H0),y=y+Math.imul(Z0,W0)|0,w=Math.imul(Z0,H0),B=B+Math.imul(i,T0)|0,y=y+Math.imul(i,D0)|0,y=y+Math.imul($0,T0)|0,w=w+Math.imul($0,D0)|0,B=B+Math.imul(a,L0)|0,y=y+Math.imul(a,R0)|0,y=y+Math.imul(r,L0)|0,w=w+Math.imul(r,R0)|0,B=B+Math.imul(s,z0)|0,y=y+Math.imul(s,M0)|0,y=y+Math.imul(t,z0)|0,w=w+Math.imul(t,M0)|0,B=B+Math.imul(o,v0)|0,y=y+Math.imul(o,q0)|0,y=y+Math.imul(u,v0)|0,w=w+Math.imul(u,q0)|0,B=B+Math.imul(d,k0)|0,y=y+Math.imul(d,g0)|0,y=y+Math.imul(b,k0)|0,w=w+Math.imul(b,g0)|0,B=B+Math.imul(p,x0)|0,y=y+Math.imul(p,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,_0)|0;var m0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(m0>>>26)|0,m0&=67108863,B=Math.imul(V0,W0),y=Math.imul(V0,H0),y=y+Math.imul(U0,W0)|0,w=Math.imul(U0,H0),B=B+Math.imul(Y0,T0)|0,y=y+Math.imul(Y0,D0)|0,y=y+Math.imul(Z0,T0)|0,w=w+Math.imul(Z0,D0)|0,B=B+Math.imul(i,L0)|0,y=y+Math.imul(i,R0)|0,y=y+Math.imul($0,L0)|0,w=w+Math.imul($0,R0)|0,B=B+Math.imul(a,z0)|0,y=y+Math.imul(a,M0)|0,y=y+Math.imul(r,z0)|0,w=w+Math.imul(r,M0)|0,B=B+Math.imul(s,v0)|0,y=y+Math.imul(s,q0)|0,y=y+Math.imul(t,v0)|0,w=w+Math.imul(t,q0)|0,B=B+Math.imul(o,k0)|0,y=y+Math.imul(o,g0)|0,y=y+Math.imul(u,k0)|0,w=w+Math.imul(u,g0)|0,B=B+Math.imul(d,x0)|0,y=y+Math.imul(d,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,_0)|0,B=B+Math.imul(p,y0)|0,y=y+Math.imul(p,w0)|0,y=y+Math.imul(c,y0)|0,w=w+Math.imul(c,w0)|0;var a0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(a0>>>26)|0,a0&=67108863,B=Math.imul(K0,W0),y=Math.imul(K0,H0),y=y+Math.imul(I0,W0)|0,w=Math.imul(I0,H0),B=B+Math.imul(V0,T0)|0,y=y+Math.imul(V0,D0)|0,y=y+Math.imul(U0,T0)|0,w=w+Math.imul(U0,D0)|0,B=B+Math.imul(Y0,L0)|0,y=y+Math.imul(Y0,R0)|0,y=y+Math.imul(Z0,L0)|0,w=w+Math.imul(Z0,R0)|0,B=B+Math.imul(i,z0)|0,y=y+Math.imul(i,M0)|0,y=y+Math.imul($0,z0)|0,w=w+Math.imul($0,M0)|0,B=B+Math.imul(a,v0)|0,y=y+Math.imul(a,q0)|0,y=y+Math.imul(r,v0)|0,w=w+Math.imul(r,q0)|0,B=B+Math.imul(s,k0)|0,y=y+Math.imul(s,g0)|0,y=y+Math.imul(t,k0)|0,w=w+Math.imul(t,g0)|0,B=B+Math.imul(o,x0)|0,y=y+Math.imul(o,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,_0)|0,B=B+Math.imul(d,y0)|0,y=y+Math.imul(d,w0)|0,y=y+Math.imul(b,y0)|0,w=w+Math.imul(b,w0)|0,B=B+Math.imul(p,p0)|0,y=y+Math.imul(p,c0)|0,y=y+Math.imul(c,p0)|0,w=w+Math.imul(c,c0)|0;var r0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(r0>>>26)|0,r0&=67108863,B=Math.imul(O0,W0),y=Math.imul(O0,H0),y=y+Math.imul(F0,W0)|0,w=Math.imul(F0,H0),B=B+Math.imul(K0,T0)|0,y=y+Math.imul(K0,D0)|0,y=y+Math.imul(I0,T0)|0,w=w+Math.imul(I0,D0)|0,B=B+Math.imul(V0,L0)|0,y=y+Math.imul(V0,R0)|0,y=y+Math.imul(U0,L0)|0,w=w+Math.imul(U0,R0)|0,B=B+Math.imul(Y0,z0)|0,y=y+Math.imul(Y0,M0)|0,y=y+Math.imul(Z0,z0)|0,w=w+Math.imul(Z0,M0)|0,B=B+Math.imul(i,v0)|0,y=y+Math.imul(i,q0)|0,y=y+Math.imul($0,v0)|0,w=w+Math.imul($0,q0)|0,B=B+Math.imul(a,k0)|0,y=y+Math.imul(a,g0)|0,y=y+Math.imul(r,k0)|0,w=w+Math.imul(r,g0)|0,B=B+Math.imul(s,x0)|0,y=y+Math.imul(s,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,_0)|0,B=B+Math.imul(o,y0)|0,y=y+Math.imul(o,w0)|0,y=y+Math.imul(u,y0)|0,w=w+Math.imul(u,w0)|0,B=B+Math.imul(d,p0)|0,y=y+Math.imul(d,c0)|0,y=y+Math.imul(b,p0)|0,w=w+Math.imul(b,c0)|0,B=B+Math.imul(p,d0)|0,y=y+Math.imul(p,b0)|0,y=y+Math.imul(c,d0)|0,w=w+Math.imul(c,b0)|0;var e0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(e0>>>26)|0,e0&=67108863,B=Math.imul(O0,T0),y=Math.imul(O0,D0),y=y+Math.imul(F0,T0)|0,w=Math.imul(F0,D0),B=B+Math.imul(K0,L0)|0,y=y+Math.imul(K0,R0)|0,y=y+Math.imul(I0,L0)|0,w=w+Math.imul(I0,R0)|0,B=B+Math.imul(V0,z0)|0,y=y+Math.imul(V0,M0)|0,y=y+Math.imul(U0,z0)|0,w=w+Math.imul(U0,M0)|0,B=B+Math.imul(Y0,v0)|0,y=y+Math.imul(Y0,q0)|0,y=y+Math.imul(Z0,v0)|0,w=w+Math.imul(Z0,q0)|0,B=B+Math.imul(i,k0)|0,y=y+Math.imul(i,g0)|0,y=y+Math.imul($0,k0)|0,w=w+Math.imul($0,g0)|0,B=B+Math.imul(a,x0)|0,y=y+Math.imul(a,_0)|0,y=y+Math.imul(r,x0)|0,w=w+Math.imul(r,_0)|0,B=B+Math.imul(s,y0)|0,y=y+Math.imul(s,w0)|0,y=y+Math.imul(t,y0)|0,w=w+Math.imul(t,w0)|0,B=B+Math.imul(o,p0)|0,y=y+Math.imul(o,c0)|0,y=y+Math.imul(u,p0)|0,w=w+Math.imul(u,c0)|0,B=B+Math.imul(d,d0)|0,y=y+Math.imul(d,b0)|0,y=y+Math.imul(b,d0)|0,w=w+Math.imul(b,b0)|0;var i0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(i0>>>26)|0,i0&=67108863,B=Math.imul(O0,L0),y=Math.imul(O0,R0),y=y+Math.imul(F0,L0)|0,w=Math.imul(F0,R0),B=B+Math.imul(K0,z0)|0,y=y+Math.imul(K0,M0)|0,y=y+Math.imul(I0,z0)|0,w=w+Math.imul(I0,M0)|0,B=B+Math.imul(V0,v0)|0,y=y+Math.imul(V0,q0)|0,y=y+Math.imul(U0,v0)|0,w=w+Math.imul(U0,q0)|0,B=B+Math.imul(Y0,k0)|0,y=y+Math.imul(Y0,g0)|0,y=y+Math.imul(Z0,k0)|0,w=w+Math.imul(Z0,g0)|0,B=B+Math.imul(i,x0)|0,y=y+Math.imul(i,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,_0)|0,B=B+Math.imul(a,y0)|0,y=y+Math.imul(a,w0)|0,y=y+Math.imul(r,y0)|0,w=w+Math.imul(r,w0)|0,B=B+Math.imul(s,p0)|0,y=y+Math.imul(s,c0)|0,y=y+Math.imul(t,p0)|0,w=w+Math.imul(t,c0)|0,B=B+Math.imul(o,d0)|0,y=y+Math.imul(o,b0)|0,y=y+Math.imul(u,d0)|0,w=w+Math.imul(u,b0)|0;var $$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+($$>>>26)|0,$$&=67108863,B=Math.imul(O0,z0),y=Math.imul(O0,M0),y=y+Math.imul(F0,z0)|0,w=Math.imul(F0,M0),B=B+Math.imul(K0,v0)|0,y=y+Math.imul(K0,q0)|0,y=y+Math.imul(I0,v0)|0,w=w+Math.imul(I0,q0)|0,B=B+Math.imul(V0,k0)|0,y=y+Math.imul(V0,g0)|0,y=y+Math.imul(U0,k0)|0,w=w+Math.imul(U0,g0)|0,B=B+Math.imul(Y0,x0)|0,y=y+Math.imul(Y0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,_0)|0,B=B+Math.imul(i,y0)|0,y=y+Math.imul(i,w0)|0,y=y+Math.imul($0,y0)|0,w=w+Math.imul($0,w0)|0,B=B+Math.imul(a,p0)|0,y=y+Math.imul(a,c0)|0,y=y+Math.imul(r,p0)|0,w=w+Math.imul(r,c0)|0,B=B+Math.imul(s,d0)|0,y=y+Math.imul(s,b0)|0,y=y+Math.imul(t,d0)|0,w=w+Math.imul(t,b0)|0;var Q$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,B=Math.imul(O0,v0),y=Math.imul(O0,q0),y=y+Math.imul(F0,v0)|0,w=Math.imul(F0,q0),B=B+Math.imul(K0,k0)|0,y=y+Math.imul(K0,g0)|0,y=y+Math.imul(I0,k0)|0,w=w+Math.imul(I0,g0)|0,B=B+Math.imul(V0,x0)|0,y=y+Math.imul(V0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,_0)|0,B=B+Math.imul(Y0,y0)|0,y=y+Math.imul(Y0,w0)|0,y=y+Math.imul(Z0,y0)|0,w=w+Math.imul(Z0,w0)|0,B=B+Math.imul(i,p0)|0,y=y+Math.imul(i,c0)|0,y=y+Math.imul($0,p0)|0,w=w+Math.imul($0,c0)|0,B=B+Math.imul(a,d0)|0,y=y+Math.imul(a,b0)|0,y=y+Math.imul(r,d0)|0,w=w+Math.imul(r,b0)|0;var Y$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,B=Math.imul(O0,k0),y=Math.imul(O0,g0),y=y+Math.imul(F0,k0)|0,w=Math.imul(F0,g0),B=B+Math.imul(K0,x0)|0,y=y+Math.imul(K0,_0)|0,y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,_0)|0,B=B+Math.imul(V0,y0)|0,y=y+Math.imul(V0,w0)|0,y=y+Math.imul(U0,y0)|0,w=w+Math.imul(U0,w0)|0,B=B+Math.imul(Y0,p0)|0,y=y+Math.imul(Y0,c0)|0,y=y+Math.imul(Z0,p0)|0,w=w+Math.imul(Z0,c0)|0,B=B+Math.imul(i,d0)|0,y=y+Math.imul(i,b0)|0,y=y+Math.imul($0,d0)|0,w=w+Math.imul($0,b0)|0;var Z$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,B=Math.imul(O0,x0),y=Math.imul(O0,_0),y=y+Math.imul(F0,x0)|0,w=Math.imul(F0,_0),B=B+Math.imul(K0,y0)|0,y=y+Math.imul(K0,w0)|0,y=y+Math.imul(I0,y0)|0,w=w+Math.imul(I0,w0)|0,B=B+Math.imul(V0,p0)|0,y=y+Math.imul(V0,c0)|0,y=y+Math.imul(U0,p0)|0,w=w+Math.imul(U0,c0)|0,B=B+Math.imul(Y0,d0)|0,y=y+Math.imul(Y0,b0)|0,y=y+Math.imul(Z0,d0)|0,w=w+Math.imul(Z0,b0)|0;var G$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(G$>>>26)|0,G$&=67108863,B=Math.imul(O0,y0),y=Math.imul(O0,w0),y=y+Math.imul(F0,y0)|0,w=Math.imul(F0,w0),B=B+Math.imul(K0,p0)|0,y=y+Math.imul(K0,c0)|0,y=y+Math.imul(I0,p0)|0,w=w+Math.imul(I0,c0)|0,B=B+Math.imul(V0,d0)|0,y=y+Math.imul(V0,b0)|0,y=y+Math.imul(U0,d0)|0,w=w+Math.imul(U0,b0)|0;var V$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(V$>>>26)|0,V$&=67108863,B=Math.imul(O0,p0),y=Math.imul(O0,c0),y=y+Math.imul(F0,p0)|0,w=Math.imul(F0,c0),B=B+Math.imul(K0,d0)|0,y=y+Math.imul(K0,b0)|0,y=y+Math.imul(I0,d0)|0,w=w+Math.imul(I0,b0)|0;var U$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(U$>>>26)|0,U$&=67108863,B=Math.imul(O0,d0),y=Math.imul(O0,b0),y=y+Math.imul(F0,d0)|0,w=Math.imul(F0,b0);var X$=(_+B|0)+((y&8191)<<13)|0;return _=(w+(y>>>13)|0)+(X$>>>26)|0,X$&=67108863,x[0]=l0,x[1]=o0,x[2]=u0,x[3]=n0,x[4]=s0,x[5]=t0,x[6]=m0,x[7]=a0,x[8]=r0,x[9]=e0,x[10]=i0,x[11]=$$,x[12]=Q$,x[13]=Y$,x[14]=Z$,x[15]=G$,x[16]=V$,x[17]=U$,x[18]=X$,_!==0&&(x[19]=_,k.length++),k};Math.imul||(H=W);function E(q,j,k){k.negative=j.negative^q.negative,k.length=q.length+j.length;for(var g=0,N=0,x=0;x<k.length-1;x++){var _=N;N=0;for(var B=g&67108863,y=Math.min(x,j.length-1),w=Math.max(0,x-q.length+1);w<=y;w++){var f=x-w,p=q.words[f]|0,c=j.words[w]|0,h=p*c,d=h&67108863;_=_+(h/67108864|0)|0,d=d+B|0,B=d&67108863,_=_+(d>>>26)|0,N+=_>>>26,_&=67108863}k.words[x]=B,g=_,_=N}return g!==0?k.words[x]=g:k.length--,k.strip()}function T(q,j,k){var g=new D;return g.mulp(q,j,k)}V.prototype.mulTo=function(q,j){var k,g=this.length+q.length;return this.length===10&&q.length===10?k=H(this,q,j):g<63?k=W(this,q,j):g<1024?k=E(this,q,j):k=T(this,q,j),k};function D(q,j){this.x=q,this.y=j}D.prototype.makeRBT=function(q){for(var j=new Array(q),k=V.prototype._countBits(q)-1,g=0;g<q;g++)j[g]=this.revBin(g,k,q);return j},D.prototype.revBin=function(q,j,k){if(q===0||q===k-1)return q;for(var g=0,N=0;N<j;N++)g|=(q&1)<<j-N-1,q>>=1;return g},D.prototype.permute=function(q,j,k,g,N,x){for(var _=0;_<x;_++)g[_]=j[q[_]],N[_]=k[q[_]]},D.prototype.transform=function(q,j,k,g,N,x){this.permute(x,q,j,k,g,N);for(var _=1;_<N;_<<=1)for(var B=_<<1,y=Math.cos(2*Math.PI/B),w=Math.sin(2*Math.PI/B),f=0;f<N;f+=B)for(var p=y,c=w,h=0;h<_;h++){var d=k[f+h],b=g[f+h],l=k[f+h+_],o=g[f+h+_],u=p*l-c*o;o=p*o+c*l,l=u,k[f+h]=d+l,g[f+h]=b+o,k[f+h+_]=d-l,g[f+h+_]=b-o,h!==B&&(u=y*p-w*c,c=y*c+w*p,p=u)}},D.prototype.guessLen13b=function(q,j){var k=Math.max(j,q)|1,g=k&1,N=0;for(k=k/2|0;k;k=k>>>1)N++;return 1<<N+1+g},D.prototype.conjugate=function(q,j,k){if(!(k<=1))for(var g=0;g<k/2;g++){var N=q[g];q[g]=q[k-g-1],q[k-g-1]=N,N=j[g],j[g]=-j[k-g-1],j[k-g-1]=-N}},D.prototype.normalize13b=function(q,j){for(var k=0,g=0;g<j/2;g++){var N=Math.round(q[2*g+1]/j)*8192+Math.round(q[2*g]/j)+k;q[g]=N&67108863,N<67108864?k=0:k=N/67108864|0}return q},D.prototype.convert13b=function(q,j,k,g){for(var N=0,x=0;x<j;x++)N=N+(q[x]|0),k[2*x]=N&8191,N=N>>>13,k[2*x+1]=N&8191,N=N>>>13;for(x=2*j;x<g;++x)k[x]=0;Z(N===0),Z((N&-8192)===0)},D.prototype.stub=function(q){for(var j=new Array(q),k=0;k<q;k++)j[k]=0;return j},D.prototype.mulp=function(q,j,k){var g=2*this.guessLen13b(q.length,j.length),N=this.makeRBT(g),x=this.stub(g),_=new Array(g),B=new Array(g),y=new Array(g),w=new Array(g),f=new Array(g),p=new Array(g),c=k.words;c.length=g,this.convert13b(q.words,q.length,_,g),this.convert13b(j.words,j.length,w,g),this.transform(_,x,B,y,g,N),this.transform(w,x,f,p,g,N);for(var h=0;h<g;h++){var d=B[h]*f[h]-y[h]*p[h];y[h]=B[h]*p[h]+y[h]*f[h],B[h]=d}return this.conjugate(B,y,g),this.transform(B,y,c,x,g,N),this.conjugate(c,x,g),this.normalize13b(c,g),k.negative=q.negative^j.negative,k.length=q.length+j.length,k.strip()},V.prototype.mul=function(q){var j=new V(null);return j.words=new Array(this.length+q.length),this.mulTo(q,j)},V.prototype.mulf=function(q){var j=new V(null);return j.words=new Array(this.length+q.length),T(this,q,j)},V.prototype.imul=function(q){return this.clone().mulTo(q,this)},V.prototype.imuln=function(q){Z(typeof q=="number"),Z(q<67108864);for(var j=0,k=0;k<this.length;k++){var g=(this.words[k]|0)*q,N=(g&67108863)+(j&67108863);j>>=26,j+=g/67108864|0,j+=N>>>26,this.words[k]=N&67108863}return j!==0&&(this.words[k]=j,this.length++),this},V.prototype.muln=function(q){return this.clone().imuln(q)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(q){var j=A(q);if(j.length===0)return new V(1);for(var k=this,g=0;g<j.length&&j[g]===0;g++,k=k.sqr());if(++g<j.length)for(var N=k.sqr();g<j.length;g++,N=N.sqr())j[g]!==0&&(k=k.mul(N));return k},V.prototype.iushln=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26,g=67108863>>>26-j<<26-j,N;if(j!==0){var x=0;for(N=0;N<this.length;N++){var _=this.words[N]&g,B=(this.words[N]|0)-_<<j;this.words[N]=B|x,x=_>>>26-j}x&&(this.words[N]=x,this.length++)}if(k!==0){for(N=this.length-1;N>=0;N--)this.words[N+k]=this.words[N];for(N=0;N<k;N++)this.words[N]=0;this.length+=k}return this.strip()},V.prototype.ishln=function(q){return Z(this.negative===0),this.iushln(q)},V.prototype.iushrn=function(q,j,k){Z(typeof q=="number"&&q>=0);var g;j?g=(j-j%26)/26:g=0;var N=q%26,x=Math.min((q-N)/26,this.length),_=67108863^67108863>>>N<<N,B=k;if(g-=x,g=Math.max(0,g),B){for(var y=0;y<x;y++)B.words[y]=this.words[y];B.length=x}if(x!==0)if(this.length>x)for(this.length-=x,y=0;y<this.length;y++)this.words[y]=this.words[y+x];else this.words[0]=0,this.length=1;var w=0;for(y=this.length-1;y>=0&&(w!==0||y>=g);y--){var f=this.words[y]|0;this.words[y]=w<<26-N|f>>>N,w=f&_}return B&&w!==0&&(B.words[B.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},V.prototype.ishrn=function(q,j,k){return Z(this.negative===0),this.iushrn(q,j,k)},V.prototype.shln=function(q){return this.clone().ishln(q)},V.prototype.ushln=function(q){return this.clone().iushln(q)},V.prototype.shrn=function(q){return this.clone().ishrn(q)},V.prototype.ushrn=function(q){return this.clone().iushrn(q)},V.prototype.testn=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26,g=1<<j;if(this.length<=k)return!1;var N=this.words[k];return!!(N&g)},V.prototype.imaskn=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26;if(Z(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(j!==0&&k++,this.length=Math.min(k,this.length),j!==0){var g=67108863^67108863>>>j<<j;this.words[this.length-1]&=g}return this.strip()},V.prototype.maskn=function(q){return this.clone().imaskn(q)},V.prototype.iaddn=function(q){return Z(typeof q=="number"),Z(q<67108864),q<0?this.isubn(-q):this.negative!==0?this.length===1&&(this.words[0]|0)<q?(this.words[0]=q-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(q),this.negative=1,this):this._iaddn(q)},V.prototype._iaddn=function(q){this.words[0]+=q;for(var j=0;j<this.length&&this.words[j]>=67108864;j++)this.words[j]-=67108864,j===this.length-1?this.words[j+1]=1:this.words[j+1]++;return this.length=Math.max(this.length,j+1),this},V.prototype.isubn=function(q){if(Z(typeof q=="number"),Z(q<67108864),q<0)return this.iaddn(-q);if(this.negative!==0)return this.negative=0,this.iaddn(q),this.negative=1,this;if(this.words[0]-=q,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var j=0;j<this.length&&this.words[j]<0;j++)this.words[j]+=67108864,this.words[j+1]-=1;return this.strip()},V.prototype.addn=function(q){return this.clone().iaddn(q)},V.prototype.subn=function(q){return this.clone().isubn(q)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(q,j,k){var g=q.length+k,N;this._expand(g);var x,_=0;for(N=0;N<q.length;N++){x=(this.words[N+k]|0)+_;var B=(q.words[N]|0)*j;x-=B&67108863,_=(x>>26)-(B/67108864|0),this.words[N+k]=x&67108863}for(;N<this.length-k;N++)x=(this.words[N+k]|0)+_,_=x>>26,this.words[N+k]=x&67108863;if(_===0)return this.strip();for(Z(_===-1),_=0,N=0;N<this.length;N++)x=-(this.words[N]|0)+_,_=x>>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(q,j){var k=this.length-q.length,g=this.clone(),N=q,x=N.words[N.length-1]|0,_=this._countBits(x);k=26-_,k!==0&&(N=N.ushln(k),g.iushln(k),x=N.words[N.length-1]|0);var B=g.length-N.length,y;if(j!=="mod"){y=new V(null),y.length=B+1,y.words=new Array(y.length);for(var w=0;w<y.length;w++)y.words[w]=0}var f=g.clone()._ishlnsubmul(N,1,B);f.negative===0&&(g=f,y&&(y.words[B]=1));for(var p=B-1;p>=0;p--){var c=(g.words[N.length+p]|0)*67108864+(g.words[N.length+p-1]|0);for(c=Math.min(c/x|0,67108863),g._ishlnsubmul(N,c,p);g.negative!==0;)c--,g.negative=0,g._ishlnsubmul(N,1,p),g.isZero()||(g.negative^=1);y&&(y.words[p]=c)}return y&&y.strip(),g.strip(),j!=="div"&&k!==0&&g.iushrn(k),{div:y||null,mod:g}},V.prototype.divmod=function(q,j,k){if(Z(!q.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var g,N,x;return this.negative!==0&&q.negative===0?(x=this.neg().divmod(q,j),j!=="mod"&&(g=x.div.neg()),j!=="div"&&(N=x.mod.neg(),k&&N.negative!==0&&N.iadd(q)),{div:g,mod:N}):this.negative===0&&q.negative!==0?(x=this.divmod(q.neg(),j),j!=="mod"&&(g=x.div.neg()),{div:g,mod:x.mod}):(this.negative&q.negative)!==0?(x=this.neg().divmod(q.neg(),j),j!=="div"&&(N=x.mod.neg(),k&&N.negative!==0&&N.isub(q)),{div:x.div,mod:N}):q.length>this.length||this.cmp(q)<0?{div:new V(0),mod:this}:q.length===1?j==="div"?{div:this.divn(q.words[0]),mod:null}:j==="mod"?{div:null,mod:new V(this.modn(q.words[0]))}:{div:this.divn(q.words[0]),mod:new V(this.modn(q.words[0]))}:this._wordDiv(q,j)},V.prototype.div=function(q){return this.divmod(q,"div",!1).div},V.prototype.mod=function(q){return this.divmod(q,"mod",!1).mod},V.prototype.umod=function(q){return this.divmod(q,"mod",!0).mod},V.prototype.divRound=function(q){var j=this.divmod(q);if(j.mod.isZero())return j.div;var k=j.div.negative!==0?j.mod.isub(q):j.mod,g=q.ushrn(1),N=q.andln(1),x=k.cmp(g);return x<0||N===1&&x===0?j.div:j.div.negative!==0?j.div.isubn(1):j.div.iaddn(1)},V.prototype.modn=function(q){Z(q<=67108863);for(var j=(1<<26)%q,k=0,g=this.length-1;g>=0;g--)k=(j*k+(this.words[g]|0))%q;return k},V.prototype.idivn=function(q){Z(q<=67108863);for(var j=0,k=this.length-1;k>=0;k--){var g=(this.words[k]|0)+j*67108864;this.words[k]=g/q|0,j=g%q}return this.strip()},V.prototype.divn=function(q){return this.clone().idivn(q)},V.prototype.egcd=function(q){Z(q.negative===0),Z(!q.isZero());var j=this,k=q.clone();j.negative!==0?j=j.umod(q):j=j.clone();for(var g=new V(1),N=new V(0),x=new V(0),_=new V(1),B=0;j.isEven()&&k.isEven();)j.iushrn(1),k.iushrn(1),++B;for(var y=k.clone(),w=j.clone();!j.isZero();){for(var f=0,p=1;(j.words[0]&p)===0&&f<26;++f,p<<=1);if(f>0)for(j.iushrn(f);f-- >0;)(g.isOdd()||N.isOdd())&&(g.iadd(y),N.isub(w)),g.iushrn(1),N.iushrn(1);for(var c=0,h=1;(k.words[0]&h)===0&&c<26;++c,h<<=1);if(c>0)for(k.iushrn(c);c-- >0;)(x.isOdd()||_.isOdd())&&(x.iadd(y),_.isub(w)),x.iushrn(1),_.iushrn(1);j.cmp(k)>=0?(j.isub(k),g.isub(x),N.isub(_)):(k.isub(j),x.isub(g),_.isub(N))}return{a:x,b:_,gcd:k.iushln(B)}},V.prototype._invmp=function(q){Z(q.negative===0),Z(!q.isZero());var j=this,k=q.clone();j.negative!==0?j=j.umod(q):j=j.clone();for(var g=new V(1),N=new V(0),x=k.clone();j.cmpn(1)>0&&k.cmpn(1)>0;){for(var _=0,B=1;(j.words[0]&B)===0&&_<26;++_,B<<=1);if(_>0)for(j.iushrn(_);_-- >0;)g.isOdd()&&g.iadd(x),g.iushrn(1);for(var y=0,w=1;(k.words[0]&w)===0&&y<26;++y,w<<=1);if(y>0)for(k.iushrn(y);y-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);j.cmp(k)>=0?(j.isub(k),g.isub(N)):(k.isub(j),N.isub(g))}var f;return j.cmpn(1)===0?f=g:f=N,f.cmpn(0)<0&&f.iadd(q),f},V.prototype.gcd=function(q){if(this.isZero())return q.abs();if(q.isZero())return this.abs();var j=this.clone(),k=q.clone();j.negative=0,k.negative=0;for(var g=0;j.isEven()&&k.isEven();g++)j.iushrn(1),k.iushrn(1);do{for(;j.isEven();)j.iushrn(1);for(;k.isEven();)k.iushrn(1);var N=j.cmp(k);if(N<0){var x=j;j=k,k=x}else if(N===0||k.cmpn(1)===0)break;j.isub(k)}while(!0);return k.iushln(g)},V.prototype.invm=function(q){return this.egcd(q).a.umod(q)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(q){return this.words[0]&q},V.prototype.bincn=function(q){Z(typeof q=="number");var j=q%26,k=(q-j)/26,g=1<<j;if(this.length<=k)return this._expand(k+1),this.words[k]|=g,this;for(var N=g,x=k;N!==0&&x<this.length;x++){var _=this.words[x]|0;_+=N,N=_>>>26,_&=67108863,this.words[x]=_}return N!==0&&(this.words[x]=N,this.length++),this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(q){var j=q<0;if(this.negative!==0&&!j)return-1;if(this.negative===0&&j)return 1;this.strip();var k;if(this.length>1)k=1;else{j&&(q=-q),Z(q<=67108863,"Number is too big");var g=this.words[0]|0;k=g===q?0:g<q?-1:1}return this.negative!==0?-k|0:k},V.prototype.cmp=function(q){if(this.negative!==0&&q.negative===0)return-1;if(this.negative===0&&q.negative!==0)return 1;var j=this.ucmp(q);return this.negative!==0?-j|0:j},V.prototype.ucmp=function(q){if(this.length>q.length)return 1;if(this.length<q.length)return-1;for(var j=0,k=this.length-1;k>=0;k--){var g=this.words[k]|0,N=q.words[k]|0;if(g!==N){g<N?j=-1:g>N&&(j=1);break}}return j},V.prototype.gtn=function(q){return this.cmpn(q)===1},V.prototype.gt=function(q){return this.cmp(q)===1},V.prototype.gten=function(q){return this.cmpn(q)>=0},V.prototype.gte=function(q){return this.cmp(q)>=0},V.prototype.ltn=function(q){return this.cmpn(q)===-1},V.prototype.lt=function(q){return this.cmp(q)===-1},V.prototype.lten=function(q){return this.cmpn(q)<=0},V.prototype.lte=function(q){return this.cmp(q)<=0},V.prototype.eqn=function(q){return this.cmpn(q)===0},V.prototype.eq=function(q){return this.cmp(q)===0},V.red=function(q){return new S(q)},V.prototype.toRed=function(q){return Z(!this.red,"Already a number in reduction context"),Z(this.negative===0,"red works only with positives"),q.convertTo(this)._forceRed(q)},V.prototype.fromRed=function(){return Z(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(q){return this.red=q,this},V.prototype.forceRed=function(q){return Z(!this.red,"Already a number in reduction context"),this._forceRed(q)},V.prototype.redAdd=function(q){return Z(this.red,"redAdd works only with red numbers"),this.red.add(this,q)},V.prototype.redIAdd=function(q){return Z(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,q)},V.prototype.redSub=function(q){return Z(this.red,"redSub works only with red numbers"),this.red.sub(this,q)},V.prototype.redISub=function(q){return Z(this.red,"redISub works only with red numbers"),this.red.isub(this,q)},V.prototype.redShl=function(q){return Z(this.red,"redShl works only with red numbers"),this.red.shl(this,q)},V.prototype.redMul=function(q){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,q),this.red.mul(this,q)},V.prototype.redIMul=function(q){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,q),this.red.imul(this,q)},V.prototype.redSqr=function(){return Z(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return Z(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return Z(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return Z(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return Z(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(q){return Z(this.red&&!q.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,q)};var C={k256:null,p224:null,p192:null,p25519:null};function L(q,j){this.name=q,this.p=new V(j,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}L.prototype._tmp=function(){var q=new V(null);return q.words=new Array(Math.ceil(this.n/13)),q},L.prototype.ireduce=function(q){var j=q,k;do this.split(j,this.tmp),j=this.imulK(j),j=j.iadd(this.tmp),k=j.bitLength();while(k>this.n);var g=k<this.n?-1:j.ucmp(this.p);return g===0?(j.words[0]=0,j.length=1):g>0?j.isub(this.p):j.strip!==void 0?j.strip():j._strip(),j},L.prototype.split=function(q,j){q.iushrn(this.n,0,j)},L.prototype.imulK=function(q){return q.imul(this.k)};function R(){L.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}G(R,L),R.prototype.split=function(q,j){for(var k=4194303,g=Math.min(q.length,9),N=0;N<g;N++)j.words[N]=q.words[N];if(j.length=g,q.length<=9){q.words[0]=0,q.length=1;return}var x=q.words[9];for(j.words[j.length++]=x&k,N=10;N<q.length;N++){var _=q.words[N]|0;q.words[N-10]=(_&k)<<4|x>>>22,x=_}x>>>=22,q.words[N-10]=x,x===0&&q.length>10?q.length-=10:q.length-=9},R.prototype.imulK=function(q){q.words[q.length]=0,q.words[q.length+1]=0,q.length+=2;for(var j=0,k=0;k<q.length;k++){var g=q.words[k]|0;j+=g*977,q.words[k]=j&67108863,j=g*64+(j/67108864|0)}return q.words[q.length-1]===0&&(q.length--,q.words[q.length-1]===0&&q.length--),q};function P(){L.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}G(P,L);function z(){L.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}G(z,L);function M(){L.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}G(M,L),M.prototype.imulK=function(q){for(var j=0,k=0;k<q.length;k++){var g=(q.words[k]|0)*19+j,N=g&67108863;g>>>=26,q.words[k]=N,j=g}return j!==0&&(q.words[q.length++]=j),q},V._prime=function(q){if(C[q])return C[q];var j;if(q==="k256")j=new R;else if(q==="p224")j=new P;else if(q==="p192")j=new z;else if(q==="p25519")j=new M;else throw new Error("Unknown prime "+q);return C[q]=j,j};function S(q){if(typeof q=="string"){var j=V._prime(q);this.m=j.p,this.prime=j}else Z(q.gtn(1),"modulus must be greater than 1"),this.m=q,this.prime=null}S.prototype._verify1=function(q){Z(q.negative===0,"red works only with positives"),Z(q.red,"red works only with red numbers")},S.prototype._verify2=function(q,j){Z((q.negative|j.negative)===0,"red works only with positives"),Z(q.red&&q.red===j.red,"red works only with red numbers")},S.prototype.imod=function(q){return this.prime?this.prime.ireduce(q)._forceRed(this):q.umod(this.m)._forceRed(this)},S.prototype.neg=function(q){return q.isZero()?q.clone():this.m.sub(q)._forceRed(this)},S.prototype.add=function(q,j){this._verify2(q,j);var k=q.add(j);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},S.prototype.iadd=function(q,j){this._verify2(q,j);var k=q.iadd(j);return k.cmp(this.m)>=0&&k.isub(this.m),k},S.prototype.sub=function(q,j){this._verify2(q,j);var k=q.sub(j);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},S.prototype.isub=function(q,j){this._verify2(q,j);var k=q.isub(j);return k.cmpn(0)<0&&k.iadd(this.m),k},S.prototype.shl=function(q,j){return this._verify1(q),this.imod(q.ushln(j))},S.prototype.imul=function(q,j){return this._verify2(q,j),this.imod(q.imul(j))},S.prototype.mul=function(q,j){return this._verify2(q,j),this.imod(q.mul(j))},S.prototype.isqr=function(q){return this.imul(q,q.clone())},S.prototype.sqr=function(q){return this.mul(q,q)},S.prototype.sqrt=function(q){if(q.isZero())return q.clone();var j=this.m.andln(3);if(Z(j%2===1),j===3){var k=this.m.add(new V(1)).iushrn(2);return this.pow(q,k)}for(var g=this.m.subn(1),N=0;!g.isZero()&&g.andln(1)===0;)N++,g.iushrn(1);Z(!g.isZero());var x=new V(1).toRed(this),_=x.redNeg(),B=this.m.subn(1).iushrn(1),y=this.m.bitLength();for(y=new V(2*y*y).toRed(this);this.pow(y,B).cmp(_)!==0;)y.redIAdd(_);for(var w=this.pow(y,g),f=this.pow(q,g.addn(1).iushrn(1)),p=this.pow(q,g),c=N;p.cmp(x)!==0;){for(var h=p,d=0;h.cmp(x)!==0;d++)h=h.redSqr();Z(d<c);var b=this.pow(w,new V(1).iushln(c-d-1));f=f.redMul(b),w=b.redSqr(),p=p.redMul(w),c=d}return f},S.prototype.invm=function(q){var j=q._invmp(this.m);return j.negative!==0?(j.negative=0,this.imod(j).redNeg()):this.imod(j)},S.prototype.pow=function(q,j){if(j.isZero())return new V(1).toRed(this);if(j.cmpn(1)===0)return q.clone();var k=4,g=new Array(1<<k);g[0]=new V(1).toRed(this),g[1]=q;for(var N=2;N<g.length;N++)g[N]=this.mul(g[N-1],q);var x=g[0],_=0,B=0,y=j.bitLength()%26;for(y===0&&(y=26),N=j.length-1;N>=0;N--){for(var w=j.words[N],f=y-1;f>=0;f--){var p=w>>f&1;if(x!==g[0]&&(x=this.sqr(x)),p===0&&_===0){B=0;continue}_<<=1,_|=p,B++,!(B!==k&&(N!==0||f!==0))&&(x=this.mul(x,g[_]),B=0,_=0)}y=26}return x},S.prototype.convertTo=function(q){var j=q.umod(this.m);return j===q?j.clone():j},S.prototype.convertFrom=function(q){var j=q.clone();return j.red=null,j},V.mont=function(q){return new v(q)};function v(q){S.call(this,q),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new V(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}G(v,S),v.prototype.convertTo=function(q){return this.imod(q.ushln(this.shift))},v.prototype.convertFrom=function(q){var j=this.imod(q.mul(this.rinv));return j.red=null,j},v.prototype.imul=function(q,j){if(q.isZero()||j.isZero())return q.words[0]=0,q.length=1,q;var k=q.imul(j),g=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=k.isub(g).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},v.prototype.mul=function(q,j){if(q.isZero()||j.isZero())return new V(0)._forceRed(this);var k=q.mul(j),g=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=k.isub(g).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},v.prototype.invm=function(q){var j=this.imod(q._invmp(this.m).mul(this.r2));return j._forceRed(this)}})(typeof $>"u"||$,bZ)}}),cQ=P$({"node_modules/minimalistic-crypto-utils/lib/utils.js"(bZ){var $=bZ;function Q(G,V){if(Array.isArray(G))return G.slice();if(!G)return[];var U=[];if(typeof G!="string"){for(var X=0;X<G.length;X++)U[X]=G[X]|0;return U}if(V==="hex"){G=G.replace(/[^a-z0-9]+/gi,""),G.length%2!==0&&(G="0"+G);for(var X=0;X<G.length;X+=2)U.push(parseInt(G[X]+G[X+1],16))}else for(var X=0;X<G.length;X++){var K=G.charCodeAt(X),I=K>>8,J=K&255;I?U.push(I,J):U.push(J)}return U}$.toArray=Q;function Y(G){return G.length===1?"0"+G:G}$.zero2=Y;function Z(G){for(var V="",U=0;U<G.length;U++)V+=Y(G[U].toString(16));return V}$.toHex=Z,$.encode=function(G,V){return V==="hex"?Z(G):G}}}),hQ=P$({"node_modules/elliptic/lib/elliptic/utils.js"(bZ){var $=bZ,Q=pQ(),Y=i$(),Z=cQ();$.assert=Y,$.toArray=Z.toArray,$.zero2=Z.zero2,$.toHex=Z.toHex,$.encode=Z.encode;function G(I,J,O){var F=new Array(Math.max(I.bitLength(),O)+1);F.fill(0);for(var A=1<<J+1,W=I.clone(),H=0;H<F.length;H++){var E,T=W.andln(A-1);W.isOdd()?(T>(A>>1)-1?E=(A>>1)-T:E=T,W.isubn(E)):E=0,F[H]=E,W.iushrn(1)}return F}$.getNAF=G;function V(I,J){var O=[[],[]];I=I.clone(),J=J.clone();for(var F=0,A=0,W;I.cmpn(-F)>0||J.cmpn(-A)>0;){var H=I.andln(3)+F&3,E=J.andln(3)+A&3;H===3&&(H=-1),E===3&&(E=-1);var T;(H&1)===0?T=0:(W=I.andln(7)+F&7,(W===3||W===5)&&E===2?T=-H:T=H),O[0].push(T);var D;(E&1)===0?D=0:(W=J.andln(7)+A&7,(W===3||W===5)&&H===2?D=-E:D=E),O[1].push(D),2*F===T+1&&(F=1-F),2*A===D+1&&(A=1-A),I.iushrn(1),J.iushrn(1)}return O}$.getJSF=V;function U(I,J,O){var F="_"+J;I.prototype[J]=function(){return this[F]!==void 0?this[F]:this[F]=O.call(this)}}$.cachedProperty=U;function X(I){return typeof I=="string"?$.toArray(I,"hex"):I}$.parseBytes=X;function K(I){return new Q(I,"hex","le")}$.intFromLE=K}}),dQ=P$({"node_modules/elliptic/lib/elliptic/curve/base.js"(bZ,$){var Q=pQ(),Y=hQ(),Z=Y.getNAF,G=Y.getJSF,V=Y.assert;function U(K,I){this.type=K,this.p=new Q(I.p,16),this.red=I.prime?Q.red(I.prime):Q.mont(this.p),this.zero=new Q(0).toRed(this.red),this.one=new Q(1).toRed(this.red),this.two=new Q(2).toRed(this.red),this.n=I.n&&new Q(I.n,16),this.g=I.g&&this.pointFromJSON(I.g,I.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var J=this.n&&this.p.div(this.n);!J||J.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}$.exports=U,U.prototype.point=function(){throw new Error("Not implemented")},U.prototype.validate=function(){throw new Error("Not implemented")},U.prototype._fixedNafMul=function(K,I){V(K.precomputed);var J=K._getDoubles(),O=Z(I,1,this._bitLength),F=(1<<J.step+1)-(J.step%2===0?2:1);F/=3;var A=[],W,H;for(W=0;W<O.length;W+=J.step){H=0;for(var E=W+J.step-1;E>=W;E--)H=(H<<1)+O[E];A.push(H)}for(var T=this.jpoint(null,null,null),D=this.jpoint(null,null,null),C=F;C>0;C--){for(W=0;W<A.length;W++)H=A[W],H===C?D=D.mixedAdd(J.points[W]):H===-C&&(D=D.mixedAdd(J.points[W].neg()));T=T.add(D)}return T.toP()},U.prototype._wnafMul=function(K,I){var J=4,O=K._getNAFPoints(J);J=O.wnd;for(var F=O.points,A=Z(I,J,this._bitLength),W=this.jpoint(null,null,null),H=A.length-1;H>=0;H--){for(var E=0;H>=0&&A[H]===0;H--)E++;if(H>=0&&E++,W=W.dblp(E),H<0)break;var T=A[H];V(T!==0),K.type==="affine"?T>0?W=W.mixedAdd(F[T-1>>1]):W=W.mixedAdd(F[-T-1>>1].neg()):T>0?W=W.add(F[T-1>>1]):W=W.add(F[-T-1>>1].neg())}return K.type==="affine"?W.toP():W},U.prototype._wnafMulAdd=function(K,I,J,O,F){var A=this._wnafT1,W=this._wnafT2,H=this._wnafT3,E=0,T,D,C;for(T=0;T<O;T++){C=I[T];var L=C._getNAFPoints(K);A[T]=L.wnd,W[T]=L.points}for(T=O-1;T>=1;T-=2){var R=T-1,P=T;if(A[R]!==1||A[P]!==1){H[R]=Z(J[R],A[R],this._bitLength),H[P]=Z(J[P],A[P],this._bitLength),E=Math.max(H[R].length,E),E=Math.max(H[P].length,E);continue}var z=[I[R],null,null,I[P]];I[R].y.cmp(I[P].y)===0?(z[1]=I[R].add(I[P]),z[2]=I[R].toJ().mixedAdd(I[P].neg())):I[R].y.cmp(I[P].y.redNeg())===0?(z[1]=I[R].toJ().mixedAdd(I[P]),z[2]=I[R].add(I[P].neg())):(z[1]=I[R].toJ().mixedAdd(I[P]),z[2]=I[R].toJ().mixedAdd(I[P].neg()));var M=[-3,-1,-5,-7,0,7,5,1,3],S=G(J[R],J[P]);for(E=Math.max(S[0].length,E),H[R]=new Array(E),H[P]=new Array(E),D=0;D<E;D++){var v=S[0][D]|0,q=S[1][D]|0;H[R][D]=M[(v+1)*3+(q+1)],H[P][D]=0,W[R]=z}}var j=this.jpoint(null,null,null),k=this._wnafT4;for(T=E;T>=0;T--){for(var g=0;T>=0;){var N=!0;for(D=0;D<O;D++)k[D]=H[D][T]|0,k[D]!==0&&(N=!1);if(!N)break;g++,T--}if(T>=0&&g++,j=j.dblp(g),T<0)break;for(D=0;D<O;D++){var x=k[D];x!==0&&(x>0?C=W[D][x-1>>1]:x<0&&(C=W[D][-x-1>>1].neg()),C.type==="affine"?j=j.mixedAdd(C):j=j.add(C))}}for(T=0;T<O;T++)W[T]=null;return F?j:j.toP()};function X(K,I){this.curve=K,this.type=I,this.precomputed=null}U.BasePoint=X,X.prototype.eq=function(){throw new Error("Not implemented")},X.prototype.validate=function(){return this.curve.validate(this)},U.prototype.decodePoint=function(K,I){K=Y.toArray(K,I);var J=this.p.byteLength();if((K[0]===4||K[0]===6||K[0]===7)&&K.length-1===2*J){K[0]===6?V(K[K.length-1]%2===0):K[0]===7&&V(K[K.length-1]%2===1);var O=this.point(K.slice(1,1+J),K.slice(1+J,1+2*J));return O}else if((K[0]===2||K[0]===3)&&K.length-1===J)return this.pointFromX(K.slice(1,1+J),K[0]===3);throw new Error("Unknown point format")},X.prototype.encodeCompressed=function(K){return this.encode(K,!0)},X.prototype._encode=function(K){var I=this.curve.p.byteLength(),J=this.getX().toArray("be",I);return K?[this.getY().isEven()?2:3].concat(J):[4].concat(J,this.getY().toArray("be",I))},X.prototype.encode=function(K,I){return Y.encode(this._encode(I),K)},X.prototype.precompute=function(K){if(this.precomputed)return this;var I={doubles:null,naf:null,beta:null};return I.naf=this._getNAFPoints(8),I.doubles=this._getDoubles(4,K),I.beta=this._getBeta(),this.precomputed=I,this},X.prototype._hasDoubles=function(K){if(!this.precomputed)return!1;var I=this.precomputed.doubles;return I?I.points.length>=Math.ceil((K.bitLength()+1)/I.step):!1},X.prototype._getDoubles=function(K,I){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var J=[this],O=this,F=0;F<I;F+=K){for(var A=0;A<K;A++)O=O.dbl();J.push(O)}return{step:K,points:J}},X.prototype._getNAFPoints=function(K){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var I=[this],J=(1<<K)-1,O=J===1?null:this.dbl(),F=1;F<J;F++)I[F]=I[F-1].add(O);return{wnd:K,points:I}},X.prototype._getBeta=function(){return null},X.prototype.dblp=function(K){for(var I=this,J=0;J<K;J++)I=I.dbl();return I}}}),bQ=P$({"node_modules/elliptic/lib/elliptic/curve/short.js"(bZ,$){var Q=hQ(),Y=pQ(),Z=v$(),G=dQ(),V=Q.assert;function U(I){G.call(this,"short",I),this.a=new Y(I.a,16).toRed(this.red),this.b=new Y(I.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=this.a.fromRed().cmpn(0)===0,this.threeA=this.a.fromRed().sub(this.p).cmpn(-3)===0,this.endo=this._getEndomorphism(I),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}Z(U,G),$.exports=U,U.prototype._getEndomorphism=function(I){if(!(!this.zeroA||!this.g||!this.n||this.p.modn(3)!==1)){var J,O;if(I.beta)J=new Y(I.beta,16).toRed(this.red);else{var F=this._getEndoRoots(this.p);J=F[0].cmp(F[1])<0?F[0]:F[1],J=J.toRed(this.red)}if(I.lambda)O=new Y(I.lambda,16);else{var A=this._getEndoRoots(this.n);this.g.mul(A[0]).x.cmp(this.g.x.redMul(J))===0?O=A[0]:(O=A[1],V(this.g.mul(O).x.cmp(this.g.x.redMul(J))===0))}var W;return I.basis?W=I.basis.map(function(H){return{a:new Y(H.a,16),b:new Y(H.b,16)}}):W=this._getEndoBasis(O),{beta:J,lambda:O,basis:W}}},U.prototype._getEndoRoots=function(I){var J=I===this.p?this.red:Y.mont(I),O=new Y(2).toRed(J).redInvm(),F=O.redNeg(),A=new Y(3).toRed(J).redNeg().redSqrt().redMul(O),W=F.redAdd(A).fromRed(),H=F.redSub(A).fromRed();return[W,H]},U.prototype._getEndoBasis=function(I){for(var J=this.n.ushrn(Math.floor(this.n.bitLength()/2)),O=I,F=this.n.clone(),A=new Y(1),W=new Y(0),H=new Y(0),E=new Y(1),T,D,C,L,R,P,z,M=0,S,v;O.cmpn(0)!==0;){var q=F.div(O);S=F.sub(q.mul(O)),v=H.sub(q.mul(A));var j=E.sub(q.mul(W));if(!C&&S.cmp(J)<0)T=z.neg(),D=A,C=S.neg(),L=v;else if(C&&++M===2)break;z=S,F=O,O=S,H=A,A=v,E=W,W=j}R=S.neg(),P=v;var k=C.sqr().add(L.sqr()),g=R.sqr().add(P.sqr());return g.cmp(k)>=0&&(R=T,P=D),C.negative&&(C=C.neg(),L=L.neg()),R.negative&&(R=R.neg(),P=P.neg()),[{a:C,b:L},{a:R,b:P}]},U.prototype._endoSplit=function(I){var J=this.endo.basis,O=J[0],F=J[1],A=F.b.mul(I).divRound(this.n),W=O.b.neg().mul(I).divRound(this.n),H=A.mul(O.a),E=W.mul(F.a),T=A.mul(O.b),D=W.mul(F.b),C=I.sub(H).sub(E),L=T.add(D).neg();return{k1:C,k2:L}},U.prototype.pointFromX=function(I,J){I=new Y(I,16),I.red||(I=I.toRed(this.red));var O=I.redSqr().redMul(I).redIAdd(I.redMul(this.a)).redIAdd(this.b),F=O.redSqrt();if(F.redSqr().redSub(O).cmp(this.zero)!==0)throw new Error("invalid point");var A=F.fromRed().isOdd();return(J&&!A||!J&&A)&&(F=F.redNeg()),this.point(I,F)},U.prototype.validate=function(I){if(I.inf)return!0;var{x:J,y:O}=I,F=this.a.redMul(J),A=J.redSqr().redMul(J).redIAdd(F).redIAdd(this.b);return O.redSqr().redISub(A).cmpn(0)===0},U.prototype._endoWnafMulAdd=function(I,J,O){for(var F=this._endoWnafT1,A=this._endoWnafT2,W=0;W<I.length;W++){var H=this._endoSplit(J[W]),E=I[W],T=E._getBeta();H.k1.negative&&(H.k1.ineg(),E=E.neg(!0)),H.k2.negative&&(H.k2.ineg(),T=T.neg(!0)),F[W*2]=E,F[W*2+1]=T,A[W*2]=H.k1,A[W*2+1]=H.k2}for(var D=this._wnafMulAdd(1,F,A,W*2,O),C=0;C<W*2;C++)F[C]=null,A[C]=null;return D};function X(I,J,O,F){G.BasePoint.call(this,I,"affine"),J===null&&O===null?(this.x=null,this.y=null,this.inf=!0):(this.x=new Y(J,16),this.y=new Y(O,16),F&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}Z(X,G.BasePoint),U.prototype.point=function(I,J,O){return new X(this,I,J,O)},U.prototype.pointFromJSON=function(I,J){return X.fromJSON(this,I,J)},X.prototype._getBeta=function(){if(this.curve.endo){var I=this.precomputed;if(I&&I.beta)return I.beta;var J=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(I){var O=this.curve,F=function(A){return O.point(A.x.redMul(O.endo.beta),A.y)};I.beta=J,J.precomputed={beta:null,naf:I.naf&&{wnd:I.naf.wnd,points:I.naf.points.map(F)},doubles:I.doubles&&{step:I.doubles.step,points:I.doubles.points.map(F)}}}return J}},X.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},X.fromJSON=function(I,J,O){typeof J=="string"&&(J=JSON.parse(J));var F=I.point(J[0],J[1],O);if(!J[2])return F;function A(H){return I.point(H[0],H[1],O)}var W=J[2];return F.precomputed={beta:null,doubles:W.doubles&&{step:W.doubles.step,points:[F].concat(W.doubles.points.map(A))},naf:W.naf&&{wnd:W.naf.wnd,points:[F].concat(W.naf.points.map(A))}},F},X.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},X.prototype.isInfinity=function(){return this.inf},X.prototype.add=function(I){if(this.inf)return I;if(I.inf)return this;if(this.eq(I))return this.dbl();if(this.neg().eq(I))return this.curve.point(null,null);if(this.x.cmp(I.x)===0)return this.curve.point(null,null);var J=this.y.redSub(I.y);J.cmpn(0)!==0&&(J=J.redMul(this.x.redSub(I.x).redInvm()));var O=J.redSqr().redISub(this.x).redISub(I.x),F=J.redMul(this.x.redSub(O)).redISub(this.y);return this.curve.point(O,F)},X.prototype.dbl=function(){if(this.inf)return this;var I=this.y.redAdd(this.y);if(I.cmpn(0)===0)return this.curve.point(null,null);var J=this.curve.a,O=this.x.redSqr(),F=I.redInvm(),A=O.redAdd(O).redIAdd(O).redIAdd(J).redMul(F),W=A.redSqr().redISub(this.x.redAdd(this.x)),H=A.redMul(this.x.redSub(W)).redISub(this.y);return this.curve.point(W,H)},X.prototype.getX=function(){return this.x.fromRed()},X.prototype.getY=function(){return this.y.fromRed()},X.prototype.mul=function(I){return I=new Y(I,16),this.isInfinity()?this:this._hasDoubles(I)?this.curve._fixedNafMul(this,I):this.curve.endo?this.curve._endoWnafMulAdd([this],[I]):this.curve._wnafMul(this,I)},X.prototype.mulAdd=function(I,J,O){var F=[this,J],A=[I,O];return this.curve.endo?this.curve._endoWnafMulAdd(F,A):this.curve._wnafMulAdd(1,F,A,2)},X.prototype.jmulAdd=function(I,J,O){var F=[this,J],A=[I,O];return this.curve.endo?this.curve._endoWnafMulAdd(F,A,!0):this.curve._wnafMulAdd(1,F,A,2,!0)},X.prototype.eq=function(I){return this===I||this.inf===I.inf&&(this.inf||this.x.cmp(I.x)===0&&this.y.cmp(I.y)===0)},X.prototype.neg=function(I){if(this.inf)return this;var J=this.curve.point(this.x,this.y.redNeg());if(I&&this.precomputed){var O=this.precomputed,F=function(A){return A.neg()};J.precomputed={naf:O.naf&&{wnd:O.naf.wnd,points:O.naf.points.map(F)},doubles:O.doubles&&{step:O.doubles.step,points:O.doubles.points.map(F)}}}return J},X.prototype.toJ=function(){if(this.inf)return this.curve.jpoint(null,null,null);var I=this.curve.jpoint(this.x,this.y,this.curve.one);return I};function K(I,J,O,F){G.BasePoint.call(this,I,"jacobian"),J===null&&O===null&&F===null?(this.x=this.curve.one,this.y=this.curve.one,this.z=new Y(0)):(this.x=new Y(J,16),this.y=new Y(O,16),this.z=new Y(F,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}Z(K,G.BasePoint),U.prototype.jpoint=function(I,J,O){return new K(this,I,J,O)},K.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var I=this.z.redInvm(),J=I.redSqr(),O=this.x.redMul(J),F=this.y.redMul(J).redMul(I);return this.curve.point(O,F)},K.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},K.prototype.add=function(I){if(this.isInfinity())return I;if(I.isInfinity())return this;var J=I.z.redSqr(),O=this.z.redSqr(),F=this.x.redMul(J),A=I.x.redMul(O),W=this.y.redMul(J.redMul(I.z)),H=I.y.redMul(O.redMul(this.z)),E=F.redSub(A),T=W.redSub(H);if(E.cmpn(0)===0)return T.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var D=E.redSqr(),C=D.redMul(E),L=F.redMul(D),R=T.redSqr().redIAdd(C).redISub(L).redISub(L),P=T.redMul(L.redISub(R)).redISub(W.redMul(C)),z=this.z.redMul(I.z).redMul(E);return this.curve.jpoint(R,P,z)},K.prototype.mixedAdd=function(I){if(this.isInfinity())return I.toJ();if(I.isInfinity())return this;var J=this.z.redSqr(),O=this.x,F=I.x.redMul(J),A=this.y,W=I.y.redMul(J).redMul(this.z),H=O.redSub(F),E=A.redSub(W);if(H.cmpn(0)===0)return E.cmpn(0)!==0?this.curve.jpoint(null,null,null):this.dbl();var T=H.redSqr(),D=T.redMul(H),C=O.redMul(T),L=E.redSqr().redIAdd(D).redISub(C).redISub(C),R=E.redMul(C.redISub(L)).redISub(A.redMul(D)),P=this.z.redMul(H);return this.curve.jpoint(L,R,P)},K.prototype.dblp=function(I){if(I===0)return this;if(this.isInfinity())return this;if(!I)return this.dbl();var J;if(this.curve.zeroA||this.curve.threeA){var O=this;for(J=0;J<I;J++)O=O.dbl();return O}var F=this.curve.a,A=this.curve.tinv,W=this.x,H=this.y,E=this.z,T=E.redSqr().redSqr(),D=H.redAdd(H);for(J=0;J<I;J++){var C=W.redSqr(),L=D.redSqr(),R=L.redSqr(),P=C.redAdd(C).redIAdd(C).redIAdd(F.redMul(T)),z=W.redMul(L),M=P.redSqr().redISub(z.redAdd(z)),S=z.redISub(M),v=P.redMul(S);v=v.redIAdd(v).redISub(R);var q=D.redMul(E);J+1<I&&(T=T.redMul(R)),W=M,E=q,D=v}return this.curve.jpoint(W,D.redMul(A),E)},K.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},K.prototype._zeroDbl=function(){var I,J,O;if(this.zOne){var F=this.x.redSqr(),A=this.y.redSqr(),W=A.redSqr(),H=this.x.redAdd(A).redSqr().redISub(F).redISub(W);H=H.redIAdd(H);var E=F.redAdd(F).redIAdd(F),T=E.redSqr().redISub(H).redISub(H),D=W.redIAdd(W);D=D.redIAdd(D),D=D.redIAdd(D),I=T,J=E.redMul(H.redISub(T)).redISub(D),O=this.y.redAdd(this.y)}else{var C=this.x.redSqr(),L=this.y.redSqr(),R=L.redSqr(),P=this.x.redAdd(L).redSqr().redISub(C).redISub(R);P=P.redIAdd(P);var z=C.redAdd(C).redIAdd(C),M=z.redSqr(),S=R.redIAdd(R);S=S.redIAdd(S),S=S.redIAdd(S),I=M.redISub(P).redISub(P),J=z.redMul(P.redISub(I)).redISub(S),O=this.y.redMul(this.z),O=O.redIAdd(O)}return this.curve.jpoint(I,J,O)},K.prototype._threeDbl=function(){var I,J,O;if(this.zOne){var F=this.x.redSqr(),A=this.y.redSqr(),W=A.redSqr(),H=this.x.redAdd(A).redSqr().redISub(F).redISub(W);H=H.redIAdd(H);var E=F.redAdd(F).redIAdd(F).redIAdd(this.curve.a),T=E.redSqr().redISub(H).redISub(H);I=T;var D=W.redIAdd(W);D=D.redIAdd(D),D=D.redIAdd(D),J=E.redMul(H.redISub(T)).redISub(D),O=this.y.redAdd(this.y)}else{var C=this.z.redSqr(),L=this.y.redSqr(),R=this.x.redMul(L),P=this.x.redSub(C).redMul(this.x.redAdd(C));P=P.redAdd(P).redIAdd(P);var z=R.redIAdd(R);z=z.redIAdd(z);var M=z.redAdd(z);I=P.redSqr().redISub(M),O=this.y.redAdd(this.z).redSqr().redISub(L).redISub(C);var S=L.redSqr();S=S.redIAdd(S),S=S.redIAdd(S),S=S.redIAdd(S),J=P.redMul(z.redISub(I)).redISub(S)}return this.curve.jpoint(I,J,O)},K.prototype._dbl=function(){var I=this.curve.a,J=this.x,O=this.y,F=this.z,A=F.redSqr().redSqr(),W=J.redSqr(),H=O.redSqr(),E=W.redAdd(W).redIAdd(W).redIAdd(I.redMul(A)),T=J.redAdd(J);T=T.redIAdd(T);var D=T.redMul(H),C=E.redSqr().redISub(D.redAdd(D)),L=D.redISub(C),R=H.redSqr();R=R.redIAdd(R),R=R.redIAdd(R),R=R.redIAdd(R);var P=E.redMul(L).redISub(R),z=O.redAdd(O).redMul(F);return this.curve.jpoint(C,P,z)},K.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var I=this.x.redSqr(),J=this.y.redSqr(),O=this.z.redSqr(),F=J.redSqr(),A=I.redAdd(I).redIAdd(I),W=A.redSqr(),H=this.x.redAdd(J).redSqr().redISub(I).redISub(F);H=H.redIAdd(H),H=H.redAdd(H).redIAdd(H),H=H.redISub(W);var E=H.redSqr(),T=F.redIAdd(F);T=T.redIAdd(T),T=T.redIAdd(T),T=T.redIAdd(T);var D=A.redIAdd(H).redSqr().redISub(W).redISub(E).redISub(T),C=J.redMul(D);C=C.redIAdd(C),C=C.redIAdd(C);var L=this.x.redMul(E).redISub(C);L=L.redIAdd(L),L=L.redIAdd(L);var R=this.y.redMul(D.redMul(T.redISub(D)).redISub(H.redMul(E)));R=R.redIAdd(R),R=R.redIAdd(R),R=R.redIAdd(R);var P=this.z.redAdd(H).redSqr().redISub(O).redISub(E);return this.curve.jpoint(L,R,P)},K.prototype.mul=function(I,J){return I=new Y(I,J),this.curve._wnafMul(this,I)},K.prototype.eq=function(I){if(I.type==="affine")return this.eq(I.toJ());if(this===I)return!0;var J=this.z.redSqr(),O=I.z.redSqr();if(this.x.redMul(O).redISub(I.x.redMul(J)).cmpn(0)!==0)return!1;var F=J.redMul(this.z),A=O.redMul(I.z);return this.y.redMul(A).redISub(I.y.redMul(F)).cmpn(0)===0},K.prototype.eqXToP=function(I){var J=this.z.redSqr(),O=I.toRed(this.curve.red).redMul(J);if(this.x.cmp(O)===0)return!0;for(var F=I.clone(),A=this.curve.redN.redMul(J);;){if(F.iadd(this.curve.n),F.cmp(this.curve.p)>=0)return!1;if(O.redIAdd(A),this.x.cmp(O)===0)return!0}},K.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},K.prototype.isInfinity=function(){return this.z.cmpn(0)===0}}}),lQ=P$({"node_modules/elliptic/lib/elliptic/curve/mont.js"(bZ,$){var Q=pQ(),Y=v$(),Z=dQ(),G=hQ();function V(X){Z.call(this,"mont",X),this.a=new Q(X.a,16).toRed(this.red),this.b=new Q(X.b,16).toRed(this.red),this.i4=new Q(4).toRed(this.red).redInvm(),this.two=new Q(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}Y(V,Z),$.exports=V,V.prototype.validate=function(X){var K=X.normalize().x,I=K.redSqr(),J=I.redMul(K).redAdd(I.redMul(this.a)).redAdd(K),O=J.redSqrt();return O.redSqr().cmp(J)===0};function U(X,K,I){Z.BasePoint.call(this,X,"projective"),K===null&&I===null?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new Q(K,16),this.z=new Q(I,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}Y(U,Z.BasePoint),V.prototype.decodePoint=function(X,K){return this.point(G.toArray(X,K),1)},V.prototype.point=function(X,K){return new U(this,X,K)},V.prototype.pointFromJSON=function(X){return U.fromJSON(this,X)},U.prototype.precompute=function(){},U.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},U.fromJSON=function(X,K){return new U(X,K[0],K[1]||X.one)},U.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},U.prototype.isInfinity=function(){return this.z.cmpn(0)===0},U.prototype.dbl=function(){var X=this.x.redAdd(this.z),K=X.redSqr(),I=this.x.redSub(this.z),J=I.redSqr(),O=K.redSub(J),F=K.redMul(J),A=O.redMul(J.redAdd(this.curve.a24.redMul(O)));return this.curve.point(F,A)},U.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},U.prototype.diffAdd=function(X,K){var I=this.x.redAdd(this.z),J=this.x.redSub(this.z),O=X.x.redAdd(X.z),F=X.x.redSub(X.z),A=F.redMul(I),W=O.redMul(J),H=K.z.redMul(A.redAdd(W).redSqr()),E=K.x.redMul(A.redISub(W).redSqr());return this.curve.point(H,E)},U.prototype.mul=function(X){for(var K=X.clone(),I=this,J=this.curve.point(null,null),O=this,F=[];K.cmpn(0)!==0;K.iushrn(1))F.push(K.andln(1));for(var A=F.length-1;A>=0;A--)F[A]===0?(I=I.diffAdd(J,O),J=J.dbl()):(J=I.diffAdd(J,O),I=I.dbl());return J},U.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},U.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},U.prototype.eq=function(X){return this.getX().cmp(X.getX())===0},U.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},U.prototype.getX=function(){return this.normalize(),this.x.fromRed()}}}),oQ=P$({"node_modules/elliptic/lib/elliptic/curve/edwards.js"(bZ,$){var Q=hQ(),Y=pQ(),Z=v$(),G=dQ(),V=Q.assert;function U(K){this.twisted=(K.a|0)!==1,this.mOneA=this.twisted&&(K.a|0)===-1,this.extended=this.mOneA,G.call(this,"edwards",K),this.a=new Y(K.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new Y(K.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new Y(K.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),V(!this.twisted||this.c.fromRed().cmpn(1)===0),this.oneC=(K.c|0)===1}Z(U,G),$.exports=U,U.prototype._mulA=function(K){return this.mOneA?K.redNeg():this.a.redMul(K)},U.prototype._mulC=function(K){return this.oneC?K:this.c.redMul(K)},U.prototype.jpoint=function(K,I,J,O){return this.point(K,I,J,O)},U.prototype.pointFromX=function(K,I){K=new Y(K,16),K.red||(K=K.toRed(this.red));var J=K.redSqr(),O=this.c2.redSub(this.a.redMul(J)),F=this.one.redSub(this.c2.redMul(this.d).redMul(J)),A=O.redMul(F.redInvm()),W=A.redSqrt();if(W.redSqr().redSub(A).cmp(this.zero)!==0)throw new Error("invalid point");var H=W.fromRed().isOdd();return(I&&!H||!I&&H)&&(W=W.redNeg()),this.point(K,W)},U.prototype.pointFromY=function(K,I){K=new Y(K,16),K.red||(K=K.toRed(this.red));var J=K.redSqr(),O=J.redSub(this.c2),F=J.redMul(this.d).redMul(this.c2).redSub(this.a),A=O.redMul(F.redInvm());if(A.cmp(this.zero)===0){if(I)throw new Error("invalid point");return this.point(this.zero,K)}var W=A.redSqrt();if(W.redSqr().redSub(A).cmp(this.zero)!==0)throw new Error("invalid point");return W.fromRed().isOdd()!==I&&(W=W.redNeg()),this.point(W,K)},U.prototype.validate=function(K){if(K.isInfinity())return!0;K.normalize();var I=K.x.redSqr(),J=K.y.redSqr(),O=I.redMul(this.a).redAdd(J),F=this.c2.redMul(this.one.redAdd(this.d.redMul(I).redMul(J)));return O.cmp(F)===0};function X(K,I,J,O,F){G.BasePoint.call(this,K,"projective"),I===null&&J===null&&O===null?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new Y(I,16),this.y=new Y(J,16),this.z=O?new Y(O,16):this.curve.one,this.t=F&&new Y(F,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}Z(X,G.BasePoint),U.prototype.pointFromJSON=function(K){return X.fromJSON(this,K)},U.prototype.point=function(K,I,J,O){return new X(this,K,I,J,O)},X.fromJSON=function(K,I){return new X(K,I[0],I[1],I[2])},X.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},X.prototype.isInfinity=function(){return this.x.cmpn(0)===0&&(this.y.cmp(this.z)===0||this.zOne&&this.y.cmp(this.curve.c)===0)},X.prototype._extDbl=function(){var K=this.x.redSqr(),I=this.y.redSqr(),J=this.z.redSqr();J=J.redIAdd(J);var O=this.curve._mulA(K),F=this.x.redAdd(this.y).redSqr().redISub(K).redISub(I),A=O.redAdd(I),W=A.redSub(J),H=O.redSub(I),E=F.redMul(W),T=A.redMul(H),D=F.redMul(H),C=W.redMul(A);return this.curve.point(E,T,C,D)},X.prototype._projDbl=function(){var K=this.x.redAdd(this.y).redSqr(),I=this.x.redSqr(),J=this.y.redSqr(),O,F,A,W,H,E;if(this.curve.twisted){W=this.curve._mulA(I);var T=W.redAdd(J);this.zOne?(O=K.redSub(I).redSub(J).redMul(T.redSub(this.curve.two)),F=T.redMul(W.redSub(J)),A=T.redSqr().redSub(T).redSub(T)):(H=this.z.redSqr(),E=T.redSub(H).redISub(H),O=K.redSub(I).redISub(J).redMul(E),F=T.redMul(W.redSub(J)),A=T.redMul(E))}else W=I.redAdd(J),H=this.curve._mulC(this.z).redSqr(),E=W.redSub(H).redSub(H),O=this.curve._mulC(K.redISub(W)).redMul(E),F=this.curve._mulC(W).redMul(I.redISub(J)),A=W.redMul(E);return this.curve.point(O,F,A)},X.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},X.prototype._extAdd=function(K){var I=this.y.redSub(this.x).redMul(K.y.redSub(K.x)),J=this.y.redAdd(this.x).redMul(K.y.redAdd(K.x)),O=this.t.redMul(this.curve.dd).redMul(K.t),F=this.z.redMul(K.z.redAdd(K.z)),A=J.redSub(I),W=F.redSub(O),H=F.redAdd(O),E=J.redAdd(I),T=A.redMul(W),D=H.redMul(E),C=A.redMul(E),L=W.redMul(H);return this.curve.point(T,D,L,C)},X.prototype._projAdd=function(K){var I=this.z.redMul(K.z),J=I.redSqr(),O=this.x.redMul(K.x),F=this.y.redMul(K.y),A=this.curve.d.redMul(O).redMul(F),W=J.redSub(A),H=J.redAdd(A),E=this.x.redAdd(this.y).redMul(K.x.redAdd(K.y)).redISub(O).redISub(F),T=I.redMul(W).redMul(E),D,C;return this.curve.twisted?(D=I.redMul(H).redMul(F.redSub(this.curve._mulA(O))),C=W.redMul(H)):(D=I.redMul(H).redMul(F.redSub(O)),C=this.curve._mulC(W).redMul(H)),this.curve.point(T,D,C)},X.prototype.add=function(K){return this.isInfinity()?K:K.isInfinity()?this:this.curve.extended?this._extAdd(K):this._projAdd(K)},X.prototype.mul=function(K){return this._hasDoubles(K)?this.curve._fixedNafMul(this,K):this.curve._wnafMul(this,K)},X.prototype.mulAdd=function(K,I,J){return this.curve._wnafMulAdd(1,[this,I],[K,J],2,!1)},X.prototype.jmulAdd=function(K,I,J){return this.curve._wnafMulAdd(1,[this,I],[K,J],2,!0)},X.prototype.normalize=function(){if(this.zOne)return this;var K=this.z.redInvm();return this.x=this.x.redMul(K),this.y=this.y.redMul(K),this.t&&(this.t=this.t.redMul(K)),this.z=this.curve.one,this.zOne=!0,this},X.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},X.prototype.getX=function(){return this.normalize(),this.x.fromRed()},X.prototype.getY=function(){return this.normalize(),this.y.fromRed()},X.prototype.eq=function(K){return this===K||this.getX().cmp(K.getX())===0&&this.getY().cmp(K.getY())===0},X.prototype.eqXToP=function(K){var I=K.toRed(this.curve.red).redMul(this.z);if(this.x.cmp(I)===0)return!0;for(var J=K.clone(),O=this.curve.redN.redMul(this.z);;){if(J.iadd(this.curve.n),J.cmp(this.curve.p)>=0)return!1;if(I.redIAdd(O),this.x.cmp(I)===0)return!0}},X.prototype.toP=X.prototype.normalize,X.prototype.mixedAdd=X.prototype.add}}),uQ=P$({"node_modules/elliptic/lib/elliptic/curve/index.js"(bZ){var $=bZ;$.base=dQ(),$.short=bQ(),$.mont=lQ(),$.edwards=oQ()}}),nQ=P$({"node_modules/hash.js/lib/hash/utils.js"(bZ){var $=i$(),Q=v$();bZ.inherits=Q;function Y(j,k){return(j.charCodeAt(k)&64512)!==55296||k<0||k+1>=j.length?!1:(j.charCodeAt(k+1)&64512)===56320}function Z(j,k){if(Array.isArray(j))return j.slice();if(!j)return[];var g=[];if(typeof j=="string")if(k){if(k==="hex")for(j=j.replace(/[^a-z0-9]+/gi,""),j.length%2!==0&&(j="0"+j),x=0;x<j.length;x+=2)g.push(parseInt(j[x]+j[x+1],16))}else for(var N=0,x=0;x<j.length;x++){var _=j.charCodeAt(x);_<128?g[N++]=_:_<2048?(g[N++]=_>>6|192,g[N++]=_&63|128):Y(j,x)?(_=65536+((_&1023)<<10)+(j.charCodeAt(++x)&1023),g[N++]=_>>18|240,g[N++]=_>>12&63|128,g[N++]=_>>6&63|128,g[N++]=_&63|128):(g[N++]=_>>12|224,g[N++]=_>>6&63|128,g[N++]=_&63|128)}else for(x=0;x<j.length;x++)g[x]=j[x]|0;return g}bZ.toArray=Z;function G(j){for(var k="",g=0;g<j.length;g++)k+=X(j[g].toString(16));return k}bZ.toHex=G;function V(j){var k=j>>>24|j>>>8&65280|j<<8&16711680|(j&255)<<24;return k>>>0}bZ.htonl=V;function U(j,k){for(var g="",N=0;N<j.length;N++){var x=j[N];k==="little"&&(x=V(x)),g+=K(x.toString(16))}return g}bZ.toHex32=U;function X(j){return j.length===1?"0"+j:j}bZ.zero2=X;function K(j){return j.length===7?"0"+j:j.length===6?"00"+j:j.length===5?"000"+j:j.length===4?"0000"+j:j.length===3?"00000"+j:j.length===2?"000000"+j:j.length===1?"0000000"+j:j}bZ.zero8=K;function I(j,k,g,N){var x=g-k;$(x%4===0);for(var _=new Array(x/4),B=0,y=k;B<_.length;B++,y+=4){var w;N==="big"?w=j[y]<<24|j[y+1]<<16|j[y+2]<<8|j[y+3]:w=j[y+3]<<24|j[y+2]<<16|j[y+1]<<8|j[y],_[B]=w>>>0}return _}bZ.join32=I;function J(j,k){for(var g=new Array(j.length*4),N=0,x=0;N<j.length;N++,x+=4){var _=j[N];k==="big"?(g[x]=_>>>24,g[x+1]=_>>>16&255,g[x+2]=_>>>8&255,g[x+3]=_&255):(g[x+3]=_>>>24,g[x+2]=_>>>16&255,g[x+1]=_>>>8&255,g[x]=_&255)}return g}bZ.split32=J;function O(j,k){return j>>>k|j<<32-k}bZ.rotr32=O;function F(j,k){return j<<k|j>>>32-k}bZ.rotl32=F;function A(j,k){return j+k>>>0}bZ.sum32=A;function W(j,k,g){return j+k+g>>>0}bZ.sum32_3=W;function H(j,k,g,N){return j+k+g+N>>>0}bZ.sum32_4=H;function E(j,k,g,N,x){return j+k+g+N+x>>>0}bZ.sum32_5=E;function T(j,k,g,N){var x=j[k],_=j[k+1],B=N+_>>>0,y=(B<N?1:0)+g+x;j[k]=y>>>0,j[k+1]=B}bZ.sum64=T;function D(j,k,g,N){var x=k+N>>>0,_=(x<k?1:0)+j+g;return _>>>0}bZ.sum64_hi=D;function C(j,k,g,N){var x=k+N;return x>>>0}bZ.sum64_lo=C;function L(j,k,g,N,x,_,B,y){var w=0,f=k;f=f+N>>>0,w+=f<k?1:0,f=f+_>>>0,w+=f<_?1:0,f=f+y>>>0,w+=f<y?1:0;var p=j+g+x+B+w;return p>>>0}bZ.sum64_4_hi=L;function R(j,k,g,N,x,_,B,y){var w=k+N+_+y;return w>>>0}bZ.sum64_4_lo=R;function P(j,k,g,N,x,_,B,y,w,f){var p=0,c=k;c=c+N>>>0,p+=c<k?1:0,c=c+_>>>0,p+=c<_?1:0,c=c+y>>>0,p+=c<y?1:0,c=c+f>>>0,p+=c<f?1:0;var h=j+g+x+B+w+p;return h>>>0}bZ.sum64_5_hi=P;function z(j,k,g,N,x,_,B,y,w,f){var p=k+N+_+y+f;return p>>>0}bZ.sum64_5_lo=z;function M(j,k,g){var N=k<<32-g|j>>>g;return N>>>0}bZ.rotr64_hi=M;function S(j,k,g){var N=j<<32-g|k>>>g;return N>>>0}bZ.rotr64_lo=S;function v(j,k,g){return j>>>g}bZ.shr64_hi=v;function q(j,k,g){var N=j<<32-g|k>>>g;return N>>>0}bZ.shr64_lo=q}}),sQ=P$({"node_modules/hash.js/lib/hash/common.js"(bZ){var $=nQ(),Q=i$();function Y(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}bZ.BlockHash=Y,Y.prototype.update=function(Z,G){if(Z=$.toArray(Z,G),this.pending?this.pending=this.pending.concat(Z):this.pending=Z,this.pendingTotal+=Z.length,this.pending.length>=this._delta8){Z=this.pending;var V=Z.length%this._delta8;this.pending=Z.slice(Z.length-V,Z.length),this.pending.length===0&&(this.pending=null),Z=$.join32(Z,0,Z.length-V,this.endian);for(var U=0;U<Z.length;U+=this._delta32)this._update(Z,U,U+this._delta32)}return this},Y.prototype.digest=function(Z){return this.update(this._pad()),Q(this.pending===null),this._digest(Z)},Y.prototype._pad=function(){var Z=this.pendingTotal,G=this._delta8,V=G-(Z+this.padLength)%G,U=new Array(V+this.padLength);U[0]=128;for(var X=1;X<V;X++)U[X]=0;if(Z<<=3,this.endian==="big"){for(var K=8;K<this.padLength;K++)U[X++]=0;U[X++]=0,U[X++]=0,U[X++]=0,U[X++]=0,U[X++]=Z>>>24&255,U[X++]=Z>>>16&255,U[X++]=Z>>>8&255,U[X++]=Z&255}else for(U[X++]=Z&255,U[X++]=Z>>>8&255,U[X++]=Z>>>16&255,U[X++]=Z>>>24&255,U[X++]=0,U[X++]=0,U[X++]=0,U[X++]=0,K=8;K<this.padLength;K++)U[X++]=0;return U}}}),tQ=P$({"node_modules/hash.js/lib/hash/sha/common.js"(bZ){var $=nQ(),Q=$.rotr32;function Y(J,O,F,A){if(J===0)return Z(O,F,A);if(J===1||J===3)return V(O,F,A);if(J===2)return G(O,F,A)}bZ.ft_1=Y;function Z(J,O,F){return J&O^~J&F}bZ.ch32=Z;function G(J,O,F){return J&O^J&F^O&F}bZ.maj32=G;function V(J,O,F){return J^O^F}bZ.p32=V;function U(J){return Q(J,2)^Q(J,13)^Q(J,22)}bZ.s0_256=U;function X(J){return Q(J,6)^Q(J,11)^Q(J,25)}bZ.s1_256=X;function K(J){return Q(J,7)^Q(J,18)^J>>>3}bZ.g0_256=K;function I(J){return Q(J,17)^Q(J,19)^J>>>10}bZ.g1_256=I}}),mQ=P$({"node_modules/hash.js/lib/hash/sha/1.js"(bZ,$){var Q=nQ(),Y=sQ(),Z=tQ(),G=Q.rotl32,V=Q.sum32,U=Q.sum32_5,X=Z.ft_1,K=Y.BlockHash,I=[1518500249,1859775393,2400959708,3395469782];function J(){if(!(this instanceof J))return new J;K.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Q.inherits(J,K),$.exports=J,J.blockSize=512,J.outSize=160,J.hmacStrength=80,J.padLength=64,J.prototype._update=function(O,F){for(var A=this.W,W=0;W<16;W++)A[W]=O[F+W];for(;W<A.length;W++)A[W]=G(A[W-3]^A[W-8]^A[W-14]^A[W-16],1);var H=this.h[0],E=this.h[1],T=this.h[2],D=this.h[3],C=this.h[4];for(W=0;W<A.length;W++){var L=~~(W/20),R=U(G(H,5),X(L,E,T,D),C,A[W],I[L]);C=D,D=T,T=G(E,30),E=H,H=R}this.h[0]=V(this.h[0],H),this.h[1]=V(this.h[1],E),this.h[2]=V(this.h[2],T),this.h[3]=V(this.h[3],D),this.h[4]=V(this.h[4],C)},J.prototype._digest=function(O){return O==="hex"?Q.toHex32(this.h,"big"):Q.split32(this.h,"big")}}}),aQ=P$({"node_modules/hash.js/lib/hash/sha/256.js"(bZ,$){var Q=nQ(),Y=sQ(),Z=tQ(),G=i$(),V=Q.sum32,U=Q.sum32_4,X=Q.sum32_5,K=Z.ch32,I=Z.maj32,J=Z.s0_256,O=Z.s1_256,F=Z.g0_256,A=Z.g1_256,W=Y.BlockHash,H=[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];function E(){if(!(this instanceof E))return new E;W.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=H,this.W=new Array(64)}Q.inherits(E,W),$.exports=E,E.blockSize=512,E.outSize=256,E.hmacStrength=192,E.padLength=64,E.prototype._update=function(T,D){for(var C=this.W,L=0;L<16;L++)C[L]=T[D+L];for(;L<C.length;L++)C[L]=U(A(C[L-2]),C[L-7],F(C[L-15]),C[L-16]);var R=this.h[0],P=this.h[1],z=this.h[2],M=this.h[3],S=this.h[4],v=this.h[5],q=this.h[6],j=this.h[7];for(G(this.k.length===C.length),L=0;L<C.length;L++){var k=X(j,O(S),K(S,v,q),this.k[L],C[L]),g=V(J(R),I(R,P,z));j=q,q=v,v=S,S=V(M,k),M=z,z=P,P=R,R=V(k,g)}this.h[0]=V(this.h[0],R),this.h[1]=V(this.h[1],P),this.h[2]=V(this.h[2],z),this.h[3]=V(this.h[3],M),this.h[4]=V(this.h[4],S),this.h[5]=V(this.h[5],v),this.h[6]=V(this.h[6],q),this.h[7]=V(this.h[7],j)},E.prototype._digest=function(T){return T==="hex"?Q.toHex32(this.h,"big"):Q.split32(this.h,"big")}}}),rQ=P$({"node_modules/hash.js/lib/hash/sha/224.js"(bZ,$){var Q=nQ(),Y=aQ();function Z(){if(!(this instanceof Z))return new Z;Y.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}Q.inherits(Z,Y),$.exports=Z,Z.blockSize=512,Z.outSize=224,Z.hmacStrength=192,Z.padLength=64,Z.prototype._digest=function(G){return G==="hex"?Q.toHex32(this.h.slice(0,7),"big"):Q.split32(this.h.slice(0,7),"big")}}}),eQ=P$({"node_modules/hash.js/lib/hash/sha/512.js"(bZ,$){var Q=nQ(),Y=sQ(),Z=i$(),G=Q.rotr64_hi,V=Q.rotr64_lo,U=Q.shr64_hi,X=Q.shr64_lo,K=Q.sum64,I=Q.sum64_hi,J=Q.sum64_lo,O=Q.sum64_4_hi,F=Q.sum64_4_lo,A=Q.sum64_5_hi,W=Q.sum64_5_lo,H=Y.BlockHash,E=[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];function T(){if(!(this instanceof T))return new T;H.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=E,this.W=new Array(160)}Q.inherits(T,H),$.exports=T,T.blockSize=1024,T.outSize=512,T.hmacStrength=192,T.padLength=128,T.prototype._prepareBlock=function(g,N){for(var x=this.W,_=0;_<32;_++)x[_]=g[N+_];for(;_<x.length;_+=2){var B=j(x[_-4],x[_-3]),y=k(x[_-4],x[_-3]),w=x[_-14],f=x[_-13],p=v(x[_-30],x[_-29]),c=q(x[_-30],x[_-29]),h=x[_-32],d=x[_-31];x[_]=O(B,y,w,f,p,c,h,d),x[_+1]=F(B,y,w,f,p,c,h,d)}},T.prototype._update=function(g,N){this._prepareBlock(g,N);var x=this.W,_=this.h[0],B=this.h[1],y=this.h[2],w=this.h[3],f=this.h[4],p=this.h[5],c=this.h[6],h=this.h[7],d=this.h[8],b=this.h[9],l=this.h[10],o=this.h[11],u=this.h[12],n=this.h[13],s=this.h[14],t=this.h[15];Z(this.k.length===x.length);for(var m=0;m<x.length;m+=2){var a=s,r=t,e=M(d,b),i=S(d,b),$0=D(d,b,l,o,u,n),Q0=C(d,b,l,o,u,n),Y0=this.k[m],Z0=this.k[m+1],G0=x[m],V0=x[m+1],U0=A(a,r,e,i,$0,Q0,Y0,Z0,G0,V0),X0=W(a,r,e,i,$0,Q0,Y0,Z0,G0,V0);a=P(_,B),r=z(_,B),e=L(_,B,y,w,f,p),i=R(_,B,y,w,f,p);var K0=I(a,r,e,i),I0=J(a,r,e,i);s=u,t=n,u=l,n=o,l=d,o=b,d=I(c,h,U0,X0),b=J(h,h,U0,X0),c=f,h=p,f=y,p=w,y=_,w=B,_=I(U0,X0,K0,I0),B=J(U0,X0,K0,I0)}K(this.h,0,_,B),K(this.h,2,y,w),K(this.h,4,f,p),K(this.h,6,c,h),K(this.h,8,d,b),K(this.h,10,l,o),K(this.h,12,u,n),K(this.h,14,s,t)},T.prototype._digest=function(g){return g==="hex"?Q.toHex32(this.h,"big"):Q.split32(this.h,"big")};function D(g,N,x,_,B){var y=g&x^~g&B;return y<0&&(y+=4294967296),y}function C(g,N,x,_,B,y){var w=N&_^~N&y;return w<0&&(w+=4294967296),w}function L(g,N,x,_,B){var y=g&x^g&B^x&B;return y<0&&(y+=4294967296),y}function R(g,N,x,_,B,y){var w=N&_^N&y^_&y;return w<0&&(w+=4294967296),w}function P(g,N){var x=G(g,N,28),_=G(N,g,2),B=G(N,g,7),y=x^_^B;return y<0&&(y+=4294967296),y}function z(g,N){var x=V(g,N,28),_=V(N,g,2),B=V(N,g,7),y=x^_^B;return y<0&&(y+=4294967296),y}function M(g,N){var x=G(g,N,14),_=G(g,N,18),B=G(N,g,9),y=x^_^B;return y<0&&(y+=4294967296),y}function S(g,N){var x=V(g,N,14),_=V(g,N,18),B=V(N,g,9),y=x^_^B;return y<0&&(y+=4294967296),y}function v(g,N){var x=G(g,N,1),_=G(g,N,8),B=U(g,N,7),y=x^_^B;return y<0&&(y+=4294967296),y}function q(g,N){var x=V(g,N,1),_=V(g,N,8),B=X(g,N,7),y=x^_^B;return y<0&&(y+=4294967296),y}function j(g,N){var x=G(g,N,19),_=G(N,g,29),B=U(g,N,6),y=x^_^B;return y<0&&(y+=4294967296),y}function k(g,N){var x=V(g,N,19),_=V(N,g,29),B=X(g,N,6),y=x^_^B;return y<0&&(y+=4294967296),y}}}),iQ=P$({"node_modules/hash.js/lib/hash/sha/384.js"(bZ,$){var Q=nQ(),Y=eQ();function Z(){if(!(this instanceof Z))return new Z;Y.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}Q.inherits(Z,Y),$.exports=Z,Z.blockSize=1024,Z.outSize=384,Z.hmacStrength=192,Z.padLength=128,Z.prototype._digest=function(G){return G==="hex"?Q.toHex32(this.h.slice(0,12),"big"):Q.split32(this.h.slice(0,12),"big")}}}),$Y=P$({"node_modules/hash.js/lib/hash/sha.js"(bZ){bZ.sha1=mQ(),bZ.sha224=rQ(),bZ.sha256=aQ(),bZ.sha384=iQ(),bZ.sha512=eQ()}}),QY=P$({"node_modules/hash.js/lib/hash/ripemd.js"(bZ){var $=nQ(),Q=sQ(),Y=$.rotl32,Z=$.sum32,G=$.sum32_3,V=$.sum32_4,U=Q.BlockHash;function X(){if(!(this instanceof X))return new X;U.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}$.inherits(X,U),bZ.ripemd160=X,X.blockSize=512,X.outSize=160,X.hmacStrength=192,X.padLength=64,X.prototype._update=function(H,E){for(var T=this.h[0],D=this.h[1],C=this.h[2],L=this.h[3],R=this.h[4],P=T,z=D,M=C,S=L,v=R,q=0;q<80;q++){var j=Z(Y(V(T,K(q,D,C,L),H[O[q]+E],I(q)),A[q]),R);T=R,R=L,L=Y(C,10),C=D,D=j,j=Z(Y(V(P,K(79-q,z,M,S),H[F[q]+E],J(q)),W[q]),v),P=v,v=S,S=Y(M,10),M=z,z=j}j=G(this.h[1],C,S),this.h[1]=G(this.h[2],L,v),this.h[2]=G(this.h[3],R,P),this.h[3]=G(this.h[4],T,z),this.h[4]=G(this.h[0],D,M),this.h[0]=j},X.prototype._digest=function(H){return H==="hex"?$.toHex32(this.h,"little"):$.split32(this.h,"little")};function K(H,E,T,D){return H<=15?E^T^D:H<=31?E&T|~E&D:H<=47?(E|~T)^D:H<=63?E&D|T&~D:E^(T|~D)}function I(H){return H<=15?0:H<=31?1518500249:H<=47?1859775393:H<=63?2400959708:2840853838}function J(H){return H<=15?1352829926:H<=31?1548603684:H<=47?1836072691:H<=63?2053994217:0}var O=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],F=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],A=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],W=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]}}),YY=P$({"node_modules/hash.js/lib/hash/hmac.js"(bZ,$){var Q=nQ(),Y=i$();function Z(G,V,U){if(!(this instanceof Z))return new Z(G,V,U);this.Hash=G,this.blockSize=G.blockSize/8,this.outSize=G.outSize/8,this.inner=null,this.outer=null,this._init(Q.toArray(V,U))}$.exports=Z,Z.prototype._init=function(G){G.length>this.blockSize&&(G=new this.Hash().update(G).digest()),Y(G.length<=this.blockSize);for(var V=G.length;V<this.blockSize;V++)G.push(0);for(V=0;V<G.length;V++)G[V]^=54;for(this.inner=new this.Hash().update(G),V=0;V<G.length;V++)G[V]^=106;this.outer=new this.Hash().update(G)},Z.prototype.update=function(G,V){return this.inner.update(G,V),this},Z.prototype.digest=function(G){return this.outer.update(this.inner.digest()),this.outer.digest(G)}}}),ZY=P$({"node_modules/hash.js/lib/hash.js"(bZ){var $=bZ;$.utils=nQ(),$.common=sQ(),$.sha=$Y(),$.ripemd=QY(),$.hmac=YY(),$.sha1=$.sha.sha1,$.sha256=$.sha.sha256,$.sha224=$.sha.sha224,$.sha384=$.sha.sha384,$.sha512=$.sha.sha512,$.ripemd160=$.ripemd.ripemd160}}),GY=P$({"node_modules/elliptic/lib/elliptic/precomputed/secp256k1.js"(bZ,$){$.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}}}),VY=P$({"node_modules/elliptic/lib/elliptic/curves.js"(bZ){var $=bZ,Q=ZY(),Y=uQ(),Z=hQ(),G=Z.assert;function V(K){K.type==="short"?this.curve=new Y.short(K):K.type==="edwards"?this.curve=new Y.edwards(K):this.curve=new Y.mont(K),this.g=this.curve.g,this.n=this.curve.n,this.hash=K.hash,G(this.g.validate(),"Invalid curve"),G(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}$.PresetCurve=V;function U(K,I){Object.defineProperty($,K,{configurable:!0,enumerable:!0,get:function(){var J=new V(I);return Object.defineProperty($,K,{configurable:!0,enumerable:!0,value:J}),J}})}U("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Q.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),U("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Q.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),U("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Q.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),U("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Q.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),U("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Q.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),U("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Q.sha256,gRed:!1,g:["9"]}),U("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Q.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});var X;try{X=GY()}catch{X=void 0}U("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Q.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",X]})}}),UY=P$({"node_modules/hmac-drbg/lib/hmac-drbg.js"(bZ,$){var Q=ZY(),Y=cQ(),Z=i$();function G(V){if(!(this instanceof G))return new G(V);this.hash=V.hash,this.predResist=!!V.predResist,this.outLen=this.hash.outSize,this.minEntropy=V.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var U=Y.toArray(V.entropy,V.entropyEnc||"hex"),X=Y.toArray(V.nonce,V.nonceEnc||"hex"),K=Y.toArray(V.pers,V.persEnc||"hex");Z(U.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(U,X,K)}$.exports=G,G.prototype._init=function(V,U,X){var K=V.concat(U).concat(X);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var I=0;I<this.V.length;I++)this.K[I]=0,this.V[I]=1;this._update(K),this._reseed=1,this.reseedInterval=281474976710656},G.prototype._hmac=function(){return new Q.hmac(this.hash,this.K)},G.prototype._update=function(V){var U=this._hmac().update(this.V).update([0]);V&&(U=U.update(V)),this.K=U.digest(),this.V=this._hmac().update(this.V).digest(),V&&(this.K=this._hmac().update(this.V).update([1]).update(V).digest(),this.V=this._hmac().update(this.V).digest())},G.prototype.reseed=function(V,U,X,K){typeof U!="string"&&(K=X,X=U,U=null),V=Y.toArray(V,U),X=Y.toArray(X,K),Z(V.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(V.concat(X||[])),this._reseed=1},G.prototype.generate=function(V,U,X,K){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");typeof U!="string"&&(K=X,X=U,U=null),X&&(X=Y.toArray(X,K||"hex"),this._update(X));for(var I=[];I.length<V;)this.V=this._hmac().update(this.V).digest(),I=I.concat(this.V);var J=I.slice(0,V);return this._update(X),this._reseed++,Y.encode(J,U)}}}),XY=P$({"node_modules/elliptic/lib/elliptic/ec/key.js"(bZ,$){var Q=pQ(),Y=hQ(),Z=Y.assert;function G(V,U){this.ec=V,this.priv=null,this.pub=null,U.priv&&this._importPrivate(U.priv,U.privEnc),U.pub&&this._importPublic(U.pub,U.pubEnc)}$.exports=G,G.fromPublic=function(V,U,X){return U instanceof G?U:new G(V,{pub:U,pubEnc:X})},G.fromPrivate=function(V,U,X){return U instanceof G?U:new G(V,{priv:U,privEnc:X})},G.prototype.validate=function(){var V=this.getPublic();return V.isInfinity()?{result:!1,reason:"Invalid public key"}:V.validate()?V.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},G.prototype.getPublic=function(V,U){return typeof V=="string"&&(U=V,V=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),U?this.pub.encode(U,V):this.pub},G.prototype.getPrivate=function(V){return V==="hex"?this.priv.toString(16,2):this.priv},G.prototype._importPrivate=function(V,U){this.priv=new Q(V,U||16),this.priv=this.priv.umod(this.ec.curve.n)},G.prototype._importPublic=function(V,U){if(V.x||V.y){this.ec.curve.type==="mont"?Z(V.x,"Need x coordinate"):(this.ec.curve.type==="short"||this.ec.curve.type==="edwards")&&Z(V.x&&V.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(V.x,V.y);return}this.pub=this.ec.curve.decodePoint(V,U)},G.prototype.derive=function(V){return V.validate()||Z(V.validate(),"public point not validated"),V.mul(this.priv).getX()},G.prototype.sign=function(V,U,X){return this.ec.sign(V,this,U,X)},G.prototype.verify=function(V,U){return this.ec.verify(V,U,this)},G.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}}}),KY=P$({"node_modules/elliptic/lib/elliptic/ec/signature.js"(bZ,$){var Q=pQ(),Y=hQ(),Z=Y.assert;function G(I,J){if(I instanceof G)return I;this._importDER(I,J)||(Z(I.r&&I.s,"Signature without r or s"),this.r=new Q(I.r,16),this.s=new Q(I.s,16),I.recoveryParam===void 0?this.recoveryParam=null:this.recoveryParam=I.recoveryParam)}$.exports=G;function V(){this.place=0}function U(I,J){var O=I[J.place++];if(!(O&128))return O;var F=O&15;if(F===0||F>4)return!1;for(var A=0,W=0,H=J.place;W<F;W++,H++)A<<=8,A|=I[H],A>>>=0;return A<=127?!1:(J.place=H,A)}function X(I){for(var J=0,O=I.length-1;!I[J]&&!(I[J+1]&128)&&J<O;)J++;return J===0?I:I.slice(J)}G.prototype._importDER=function(I,J){I=Y.toArray(I,J);var O=new V;if(I[O.place++]!==48)return!1;var F=U(I,O);if(F===!1||F+O.place!==I.length||I[O.place++]!==2)return!1;var A=U(I,O);if(A===!1)return!1;var W=I.slice(O.place,A+O.place);if(O.place+=A,I[O.place++]!==2)return!1;var H=U(I,O);if(H===!1||I.length!==H+O.place)return!1;var E=I.slice(O.place,H+O.place);if(W[0]===0)if(W[1]&128)W=W.slice(1);else return!1;if(E[0]===0)if(E[1]&128)E=E.slice(1);else return!1;return this.r=new Q(W),this.s=new Q(E),this.recoveryParam=null,!0};function K(I,J){if(J<128){I.push(J);return}var O=1+(Math.log(J)/Math.LN2>>>3);for(I.push(O|128);--O;)I.push(J>>>(O<<3)&255);I.push(J)}G.prototype.toDER=function(I){var J=this.r.toArray(),O=this.s.toArray();for(J[0]&128&&(J=[0].concat(J)),O[0]&128&&(O=[0].concat(O)),J=X(J),O=X(O);!O[0]&&!(O[1]&128);)O=O.slice(1);var F=[2];K(F,J.length),F=F.concat(J),F.push(2),K(F,O.length);var A=F.concat(O),W=[48];return K(W,A.length),W=W.concat(A),Y.encode(W,I)}}}),IY=P$({"node_modules/elliptic/lib/elliptic/ec/index.js"(bZ,$){var Q=pQ(),Y=UY(),Z=hQ(),G=VY(),V=kQ(),U=Z.assert,X=XY(),K=KY();function I(J){if(!(this instanceof I))return new I(J);typeof J=="string"&&(U(Object.prototype.hasOwnProperty.call(G,J),"Unknown curve "+J),J=G[J]),J instanceof G.PresetCurve&&(J={curve:J}),this.curve=J.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=J.curve.g,this.g.precompute(J.curve.n.bitLength()+1),this.hash=J.hash||J.curve.hash}$.exports=I,I.prototype.keyPair=function(J){return new X(this,J)},I.prototype.keyFromPrivate=function(J,O){return X.fromPrivate(this,J,O)},I.prototype.keyFromPublic=function(J,O){return X.fromPublic(this,J,O)},I.prototype.genKeyPair=function(J){J||(J={});for(var O=new Y({hash:this.hash,pers:J.pers,persEnc:J.persEnc||"utf8",entropy:J.entropy||V(this.hash.hmacStrength),entropyEnc:J.entropy&&J.entropyEnc||"utf8",nonce:this.n.toArray()}),F=this.n.byteLength(),A=this.n.sub(new Q(2));;){var W=new Q(O.generate(F));if(!(W.cmp(A)>0))return W.iaddn(1),this.keyFromPrivate(W)}},I.prototype._truncateToN=function(J,O){var F=J.byteLength()*8-this.n.bitLength();return F>0&&(J=J.ushrn(F)),!O&&J.cmp(this.n)>=0?J.sub(this.n):J},I.prototype.sign=function(J,O,F,A){typeof F=="object"&&(A=F,F=null),A||(A={}),O=this.keyFromPrivate(O,F),J=this._truncateToN(new Q(J,16));for(var W=this.n.byteLength(),H=O.getPrivate().toArray("be",W),E=J.toArray("be",W),T=new Y({hash:this.hash,entropy:H,nonce:E,pers:A.pers,persEnc:A.persEnc||"utf8"}),D=this.n.sub(new Q(1)),C=0;;C++){var L=A.k?A.k(C):new Q(T.generate(this.n.byteLength()));if(L=this._truncateToN(L,!0),!(L.cmpn(1)<=0||L.cmp(D)>=0)){var R=this.g.mul(L);if(!R.isInfinity()){var P=R.getX(),z=P.umod(this.n);if(z.cmpn(0)!==0){var M=L.invm(this.n).mul(z.mul(O.getPrivate()).iadd(J));if(M=M.umod(this.n),M.cmpn(0)!==0){var S=(R.getY().isOdd()?1:0)|(P.cmp(z)!==0?2:0);return A.canonical&&M.cmp(this.nh)>0&&(M=this.n.sub(M),S^=1),new K({r:z,s:M,recoveryParam:S})}}}}}},I.prototype.verify=function(J,O,F,A){J=this._truncateToN(new Q(J,16)),F=this.keyFromPublic(F,A),O=new K(O,"hex");var{r:W,s:H}=O;if(W.cmpn(1)<0||W.cmp(this.n)>=0||H.cmpn(1)<0||H.cmp(this.n)>=0)return!1;var E=H.invm(this.n),T=E.mul(J).umod(this.n),D=E.mul(W).umod(this.n),C;return this.curve._maxwellTrick?(C=this.g.jmulAdd(T,F.getPublic(),D),C.isInfinity()?!1:C.eqXToP(W)):(C=this.g.mulAdd(T,F.getPublic(),D),C.isInfinity()?!1:C.getX().umod(this.n).cmp(W)===0)},I.prototype.recoverPubKey=function(J,O,F,A){U((3&F)===F,"The recovery param is more than two bits"),O=new K(O,A);var W=this.n,H=new Q(J),E=O.r,T=O.s,D=F&1,C=F>>1;if(E.cmp(this.curve.p.umod(this.curve.n))>=0&&C)throw new Error("Unable to find sencond key candinate");C?E=this.curve.pointFromX(E.add(this.curve.n),D):E=this.curve.pointFromX(E,D);var L=O.r.invm(W),R=W.sub(H).mul(L).umod(W),P=T.mul(L).umod(W);return this.g.mulAdd(R,E,P)},I.prototype.getKeyRecoveryParam=function(J,O,F,A){if(O=new K(O,A),O.recoveryParam!==null)return O.recoveryParam;for(var W=0;W<4;W++){var H;try{H=this.recoverPubKey(J,O,W)}catch{continue}if(H.eq(F))return W}throw new Error("Unable to find valid recovery factor")}}}),JY=P$({"node_modules/elliptic/lib/elliptic/eddsa/key.js"(bZ,$){var Q=hQ(),Y=Q.assert,Z=Q.parseBytes,G=Q.cachedProperty;function V(U,X){this.eddsa=U,this._secret=Z(X.secret),U.isPoint(X.pub)?this._pub=X.pub:this._pubBytes=Z(X.pub)}V.fromPublic=function(U,X){return X instanceof V?X:new V(U,{pub:X})},V.fromSecret=function(U,X){return X instanceof V?X:new V(U,{secret:X})},V.prototype.secret=function(){return this._secret},G(V,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),G(V,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),G(V,"privBytes",function(){var U=this.eddsa,X=this.hash(),K=U.encodingLength-1,I=X.slice(0,U.encodingLength);return I[0]&=248,I[K]&=127,I[K]|=64,I}),G(V,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),G(V,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),G(V,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),V.prototype.sign=function(U){return Y(this._secret,"KeyPair can only verify"),this.eddsa.sign(U,this)},V.prototype.verify=function(U,X){return this.eddsa.verify(U,X,this)},V.prototype.getSecret=function(U){return Y(this._secret,"KeyPair is public only"),Q.encode(this.secret(),U)},V.prototype.getPublic=function(U){return Q.encode(this.pubBytes(),U)},$.exports=V}}),OY=P$({"node_modules/elliptic/lib/elliptic/eddsa/signature.js"(bZ,$){var Q=pQ(),Y=hQ(),Z=Y.assert,G=Y.cachedProperty,V=Y.parseBytes;function U(X,K){this.eddsa=X,typeof K!="object"&&(K=V(K)),Array.isArray(K)&&(K={R:K.slice(0,X.encodingLength),S:K.slice(X.encodingLength)}),Z(K.R&&K.S,"Signature without R or S"),X.isPoint(K.R)&&(this._R=K.R),K.S instanceof Q&&(this._S=K.S),this._Rencoded=Array.isArray(K.R)?K.R:K.Rencoded,this._Sencoded=Array.isArray(K.S)?K.S:K.Sencoded}G(U,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),G(U,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),G(U,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),G(U,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),U.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},U.prototype.toHex=function(){return Y.encode(this.toBytes(),"hex").toUpperCase()},$.exports=U}}),FY=P$({"node_modules/elliptic/lib/elliptic/eddsa/index.js"(bZ,$){var Q=ZY(),Y=VY(),Z=hQ(),G=Z.assert,V=Z.parseBytes,U=JY(),X=OY();function K(I){if(G(I==="ed25519","only tested with ed25519 so far"),!(this instanceof K))return new K(I);I=Y[I].curve,this.curve=I,this.g=I.g,this.g.precompute(I.n.bitLength()+1),this.pointClass=I.point().constructor,this.encodingLength=Math.ceil(I.n.bitLength()/8),this.hash=Q.sha512}$.exports=K,K.prototype.sign=function(I,J){I=V(I);var O=this.keyFromSecret(J),F=this.hashInt(O.messagePrefix(),I),A=this.g.mul(F),W=this.encodePoint(A),H=this.hashInt(W,O.pubBytes(),I).mul(O.priv()),E=F.add(H).umod(this.curve.n);return this.makeSignature({R:A,S:E,Rencoded:W})},K.prototype.verify=function(I,J,O){I=V(I),J=this.makeSignature(J);var F=this.keyFromPublic(O),A=this.hashInt(J.Rencoded(),F.pubBytes(),I),W=this.g.mul(J.S()),H=J.R().add(F.pub().mul(A));return H.eq(W)},K.prototype.hashInt=function(){for(var I=this.hash(),J=0;J<arguments.length;J++)I.update(arguments[J]);return Z.intFromLE(I.digest()).umod(this.curve.n)},K.prototype.keyFromPublic=function(I){return U.fromPublic(this,I)},K.prototype.keyFromSecret=function(I){return U.fromSecret(this,I)},K.prototype.makeSignature=function(I){return I instanceof X?I:new X(this,I)},K.prototype.encodePoint=function(I){var J=I.getY().toArray("le",this.encodingLength);return J[this.encodingLength-1]|=I.getX().isOdd()?128:0,J},K.prototype.decodePoint=function(I){I=Z.parseBytes(I);var J=I.length-1,O=I.slice(0,J).concat(I[J]&-129),F=(I[J]&128)!==0,A=Z.intFromLE(O);return this.curve.pointFromY(A,F)},K.prototype.encodeInt=function(I){return I.toArray("le",this.encodingLength)},K.prototype.decodeInt=function(I){return Z.intFromLE(I)},K.prototype.isPoint=function(I){return I instanceof this.pointClass}}}),AY=P$({"node_modules/elliptic/lib/elliptic.js"(bZ){var $=bZ;$.version=fQ().version,$.utils=hQ(),$.rand=kQ(),$.curve=uQ(),$.curves=VY(),$.ec=IY(),$.eddsa=FY()}}),WY=P$({"node_modules/asn1.js/node_modules/bn.js/lib/bn.js"(bZ,$){(function(Q,Y){function Z(q,j){if(!q)throw new Error(j||"Assertion failed")}function G(q,j){q.super_=j;var k=function(){};k.prototype=j.prototype,q.prototype=new k,q.prototype.constructor=q}function V(q,j,k){if(V.isBN(q))return q;this.negative=0,this.words=null,this.length=0,this.red=null,q!==null&&((j==="le"||j==="be")&&(k=j,j=10),this._init(q||0,j||10,k||"be"))}typeof Q=="object"?Q.exports=V:Y.BN=V,V.BN=V,V.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=L$("buffer").Buffer}catch{}V.isBN=function(q){return q instanceof V?!0:q!==null&&typeof q=="object"&&q.constructor.wordSize===V.wordSize&&Array.isArray(q.words)},V.max=function(q,j){return q.cmp(j)>0?q:j},V.min=function(q,j){return q.cmp(j)<0?q:j},V.prototype._init=function(q,j,k){if(typeof q=="number")return this._initNumber(q,j,k);if(typeof q=="object")return this._initArray(q,j,k);j==="hex"&&(j=16),Z(j===(j|0)&&j>=2&&j<=36),q=q.toString().replace(/\s+/g,"");var g=0;q[0]==="-"&&(g++,this.negative=1),g<q.length&&(j===16?this._parseHex(q,g,k):(this._parseBase(q,j,g),k==="le"&&this._initArray(this.toArray(),j,k)))},V.prototype._initNumber=function(q,j,k){q<0&&(this.negative=1,q=-q),q<67108864?(this.words=[q&67108863],this.length=1):q<4503599627370496?(this.words=[q&67108863,q/67108864&67108863],this.length=2):(Z(q<9007199254740992),this.words=[q&67108863,q/67108864&67108863,1],this.length=3),k==="le"&&this._initArray(this.toArray(),j,k)},V.prototype._initArray=function(q,j,k){if(Z(typeof q.length=="number"),q.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(q.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var N,x,_=0;if(k==="be")for(g=q.length-1,N=0;g>=0;g-=3)x=q[g]|q[g-1]<<8|q[g-2]<<16,this.words[N]|=x<<_&67108863,this.words[N+1]=x>>>26-_&67108863,_+=24,_>=26&&(_-=26,N++);else if(k==="le")for(g=0,N=0;g<q.length;g+=3)x=q[g]|q[g+1]<<8|q[g+2]<<16,this.words[N]|=x<<_&67108863,this.words[N+1]=x>>>26-_&67108863,_+=24,_>=26&&(_-=26,N++);return this.strip()};function X(q,j){var k=q.charCodeAt(j);return k>=65&&k<=70?k-55:k>=97&&k<=102?k-87:k-48&15}function K(q,j,k){var g=X(q,k);return k-1>=j&&(g|=X(q,k-1)<<4),g}V.prototype._parseHex=function(q,j,k){this.length=Math.ceil((q.length-j)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var N=0,x=0,_;if(k==="be")for(g=q.length-1;g>=j;g-=2)_=K(q,j,g)<<N,this.words[x]|=_&67108863,N>=18?(N-=18,x+=1,this.words[x]|=_>>>26):N+=8;else{var B=q.length-j;for(g=B%2===0?j+1:j;g<q.length;g+=2)_=K(q,j,g)<<N,this.words[x]|=_&67108863,N>=18?(N-=18,x+=1,this.words[x]|=_>>>26):N+=8}this.strip()};function I(q,j,k,g){for(var N=0,x=Math.min(q.length,k),_=j;_<x;_++){var B=q.charCodeAt(_)-48;N*=g,B>=49?N+=B-49+10:B>=17?N+=B-17+10:N+=B}return N}V.prototype._parseBase=function(q,j,k){this.words=[0],this.length=1;for(var g=0,N=1;N<=67108863;N*=j)g++;g--,N=N/j|0;for(var x=q.length-k,_=x%g,B=Math.min(x,x-_)+k,y=0,w=k;w<B;w+=g)y=I(q,w,w+g,j),this.imuln(N),this.words[0]+y<67108864?this.words[0]+=y:this._iaddn(y);if(_!==0){var f=1;for(y=I(q,w,q.length,j),w=0;w<_;w++)f*=j;this.imuln(f),this.words[0]+y<67108864?this.words[0]+=y:this._iaddn(y)}this.strip()},V.prototype.copy=function(q){q.words=new Array(this.length);for(var j=0;j<this.length;j++)q.words[j]=this.words[j];q.length=this.length,q.negative=this.negative,q.red=this.red},V.prototype.clone=function(){var q=new V(null);return this.copy(q),q},V.prototype._expand=function(q){for(;this.length<q;)this.words[this.length++]=0;return this},V.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},V.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},V.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var J=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],O=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];V.prototype.toString=function(q,j){q=q||10,j=j|0||1;var k;if(q===16||q==="hex"){k="";for(var g=0,N=0,x=0;x<this.length;x++){var _=this.words[x],B=((_<<g|N)&16777215).toString(16);N=_>>>24-g&16777215,N!==0||x!==this.length-1?k=J[6-B.length]+B+k:k=B+k,g+=2,g>=26&&(g-=26,x--)}for(N!==0&&(k=N.toString(16)+k);k.length%j!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(q===(q|0)&&q>=2&&q<=36){var y=O[q],w=F[q];k="";var f=this.clone();for(f.negative=0;!f.isZero();){var p=f.modn(w).toString(q);f=f.idivn(w),f.isZero()?k=p+k:k=J[y-p.length]+p+k}for(this.isZero()&&(k="0"+k);k.length%j!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}Z(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var q=this.words[0];return this.length===2?q+=this.words[1]*67108864:this.length===3&&this.words[2]===1?q+=4503599627370496+this.words[1]*67108864:this.length>2&&Z(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-q:q},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(q,j){return Z(typeof U<"u"),this.toArrayLike(U,q,j)},V.prototype.toArray=function(q,j){return this.toArrayLike(Array,q,j)},V.prototype.toArrayLike=function(q,j,k){var g=this.byteLength(),N=k||Math.max(1,g);Z(g<=N,"byte array longer than desired length"),Z(N>0,"Requested array length <= 0"),this.strip();var x=j==="le",_=new q(N),B,y,w=this.clone();if(x){for(y=0;!w.isZero();y++)B=w.andln(255),w.iushrn(8),_[y]=B;for(;y<N;y++)_[y]=0}else{for(y=0;y<N-g;y++)_[y]=0;for(y=0;!w.isZero();y++)B=w.andln(255),w.iushrn(8),_[N-y-1]=B}return _},Math.clz32?V.prototype._countBits=function(q){return 32-Math.clz32(q)}:V.prototype._countBits=function(q){var j=q,k=0;return j>=4096&&(k+=13,j>>>=13),j>=64&&(k+=7,j>>>=7),j>=8&&(k+=4,j>>>=4),j>=2&&(k+=2,j>>>=2),k+j},V.prototype._zeroBits=function(q){if(q===0)return 26;var j=q,k=0;return(j&8191)===0&&(k+=13,j>>>=13),(j&127)===0&&(k+=7,j>>>=7),(j&15)===0&&(k+=4,j>>>=4),(j&3)===0&&(k+=2,j>>>=2),(j&1)===0&&k++,k},V.prototype.bitLength=function(){var q=this.words[this.length-1],j=this._countBits(q);return(this.length-1)*26+j};function A(q){for(var j=new Array(q.bitLength()),k=0;k<j.length;k++){var g=k/26|0,N=k%26;j[k]=(q.words[g]&1<<N)>>>N}return j}V.prototype.zeroBits=function(){if(this.isZero())return 0;for(var q=0,j=0;j<this.length;j++){var k=this._zeroBits(this.words[j]);if(q+=k,k!==26)break}return q},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(q){return this.negative!==0?this.abs().inotn(q).iaddn(1):this.clone()},V.prototype.fromTwos=function(q){return this.testn(q-1)?this.notn(q).iaddn(1).ineg():this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},V.prototype.iuor=function(q){for(;this.length<q.length;)this.words[this.length++]=0;for(var j=0;j<q.length;j++)this.words[j]=this.words[j]|q.words[j];return this.strip()},V.prototype.ior=function(q){return Z((this.negative|q.negative)===0),this.iuor(q)},V.prototype.or=function(q){return this.length>q.length?this.clone().ior(q):q.clone().ior(this)},V.prototype.uor=function(q){return this.length>q.length?this.clone().iuor(q):q.clone().iuor(this)},V.prototype.iuand=function(q){var j;this.length>q.length?j=q:j=this;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]&q.words[k];return this.length=j.length,this.strip()},V.prototype.iand=function(q){return Z((this.negative|q.negative)===0),this.iuand(q)},V.prototype.and=function(q){return this.length>q.length?this.clone().iand(q):q.clone().iand(this)},V.prototype.uand=function(q){return this.length>q.length?this.clone().iuand(q):q.clone().iuand(this)},V.prototype.iuxor=function(q){var j,k;this.length>q.length?(j=this,k=q):(j=q,k=this);for(var g=0;g<k.length;g++)this.words[g]=j.words[g]^k.words[g];if(this!==j)for(;g<j.length;g++)this.words[g]=j.words[g];return this.length=j.length,this.strip()},V.prototype.ixor=function(q){return Z((this.negative|q.negative)===0),this.iuxor(q)},V.prototype.xor=function(q){return this.length>q.length?this.clone().ixor(q):q.clone().ixor(this)},V.prototype.uxor=function(q){return this.length>q.length?this.clone().iuxor(q):q.clone().iuxor(this)},V.prototype.inotn=function(q){Z(typeof q=="number"&&q>=0);var j=Math.ceil(q/26)|0,k=q%26;this._expand(j),k>0&&j--;for(var g=0;g<j;g++)this.words[g]=~this.words[g]&67108863;return k>0&&(this.words[g]=~this.words[g]&67108863>>26-k),this.strip()},V.prototype.notn=function(q){return this.clone().inotn(q)},V.prototype.setn=function(q,j){Z(typeof q=="number"&&q>=0);var k=q/26|0,g=q%26;return this._expand(k+1),j?this.words[k]=this.words[k]|1<<g:this.words[k]=this.words[k]&~(1<<g),this.strip()},V.prototype.iadd=function(q){var j;if(this.negative!==0&&q.negative===0)return this.negative=0,j=this.isub(q),this.negative^=1,this._normSign();if(this.negative===0&&q.negative!==0)return q.negative=0,j=this.isub(q),q.negative=1,j._normSign();var k,g;this.length>q.length?(k=this,g=q):(k=q,g=this);for(var N=0,x=0;x<g.length;x++)j=(k.words[x]|0)+(g.words[x]|0)+N,this.words[x]=j&67108863,N=j>>>26;for(;N!==0&&x<k.length;x++)j=(k.words[x]|0)+N,this.words[x]=j&67108863,N=j>>>26;if(this.length=k.length,N!==0)this.words[this.length]=N,this.length++;else if(k!==this)for(;x<k.length;x++)this.words[x]=k.words[x];return this},V.prototype.add=function(q){var j;return q.negative!==0&&this.negative===0?(q.negative=0,j=this.sub(q),q.negative^=1,j):q.negative===0&&this.negative!==0?(this.negative=0,j=q.sub(this),this.negative=1,j):this.length>q.length?this.clone().iadd(q):q.clone().iadd(this)},V.prototype.isub=function(q){if(q.negative!==0){q.negative=0;var j=this.iadd(q);return q.negative=1,j._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(q),this.negative=1,this._normSign();var k=this.cmp(q);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,N;k>0?(g=this,N=q):(g=q,N=this);for(var x=0,_=0;_<N.length;_++)j=(g.words[_]|0)-(N.words[_]|0)+x,x=j>>26,this.words[_]=j&67108863;for(;x!==0&&_<g.length;_++)j=(g.words[_]|0)+x,x=j>>26,this.words[_]=j&67108863;if(x===0&&_<g.length&&g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this.length=Math.max(this.length,_),g!==this&&(this.negative=1),this.strip()},V.prototype.sub=function(q){return this.clone().isub(q)};function W(q,j,k){k.negative=j.negative^q.negative;var g=q.length+j.length|0;k.length=g,g=g-1|0;var N=q.words[0]|0,x=j.words[0]|0,_=N*x,B=_&67108863,y=_/67108864|0;k.words[0]=B;for(var w=1;w<g;w++){for(var f=y>>>26,p=y&67108863,c=Math.min(w,j.length-1),h=Math.max(0,w-q.length+1);h<=c;h++){var d=w-h|0;N=q.words[d]|0,x=j.words[h]|0,_=N*x+p,f+=_/67108864|0,p=_&67108863}k.words[w]=p|0,y=f|0}return y!==0?k.words[w]=y|0:k.length--,k.strip()}var H=function(q,j,k){var g=q.words,N=j.words,x=k.words,_=0,B,y,w,f=g[0]|0,p=f&8191,c=f>>>13,h=g[1]|0,d=h&8191,b=h>>>13,l=g[2]|0,o=l&8191,u=l>>>13,n=g[3]|0,s=n&8191,t=n>>>13,m=g[4]|0,a=m&8191,r=m>>>13,e=g[5]|0,i=e&8191,$0=e>>>13,Q0=g[6]|0,Y0=Q0&8191,Z0=Q0>>>13,G0=g[7]|0,V0=G0&8191,U0=G0>>>13,X0=g[8]|0,K0=X0&8191,I0=X0>>>13,J0=g[9]|0,O0=J0&8191,F0=J0>>>13,A0=N[0]|0,W0=A0&8191,H0=A0>>>13,E0=N[1]|0,T0=E0&8191,D0=E0>>>13,C0=N[2]|0,L0=C0&8191,R0=C0>>>13,P0=N[3]|0,z0=P0&8191,M0=P0>>>13,S0=N[4]|0,v0=S0&8191,q0=S0>>>13,j0=N[5]|0,k0=j0&8191,g0=j0>>>13,N0=N[6]|0,x0=N0&8191,_0=N0>>>13,B0=N[7]|0,y0=B0&8191,w0=B0>>>13,f0=N[8]|0,p0=f0&8191,c0=f0>>>13,h0=N[9]|0,d0=h0&8191,b0=h0>>>13;k.negative=q.negative^j.negative,k.length=19,B=Math.imul(p,W0),y=Math.imul(p,H0),y=y+Math.imul(c,W0)|0,w=Math.imul(c,H0);var l0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(l0>>>26)|0,l0&=67108863,B=Math.imul(d,W0),y=Math.imul(d,H0),y=y+Math.imul(b,W0)|0,w=Math.imul(b,H0),B=B+Math.imul(p,T0)|0,y=y+Math.imul(p,D0)|0,y=y+Math.imul(c,T0)|0,w=w+Math.imul(c,D0)|0;var o0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(o0>>>26)|0,o0&=67108863,B=Math.imul(o,W0),y=Math.imul(o,H0),y=y+Math.imul(u,W0)|0,w=Math.imul(u,H0),B=B+Math.imul(d,T0)|0,y=y+Math.imul(d,D0)|0,y=y+Math.imul(b,T0)|0,w=w+Math.imul(b,D0)|0,B=B+Math.imul(p,L0)|0,y=y+Math.imul(p,R0)|0,y=y+Math.imul(c,L0)|0,w=w+Math.imul(c,R0)|0;var u0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(u0>>>26)|0,u0&=67108863,B=Math.imul(s,W0),y=Math.imul(s,H0),y=y+Math.imul(t,W0)|0,w=Math.imul(t,H0),B=B+Math.imul(o,T0)|0,y=y+Math.imul(o,D0)|0,y=y+Math.imul(u,T0)|0,w=w+Math.imul(u,D0)|0,B=B+Math.imul(d,L0)|0,y=y+Math.imul(d,R0)|0,y=y+Math.imul(b,L0)|0,w=w+Math.imul(b,R0)|0,B=B+Math.imul(p,z0)|0,y=y+Math.imul(p,M0)|0,y=y+Math.imul(c,z0)|0,w=w+Math.imul(c,M0)|0;var n0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(n0>>>26)|0,n0&=67108863,B=Math.imul(a,W0),y=Math.imul(a,H0),y=y+Math.imul(r,W0)|0,w=Math.imul(r,H0),B=B+Math.imul(s,T0)|0,y=y+Math.imul(s,D0)|0,y=y+Math.imul(t,T0)|0,w=w+Math.imul(t,D0)|0,B=B+Math.imul(o,L0)|0,y=y+Math.imul(o,R0)|0,y=y+Math.imul(u,L0)|0,w=w+Math.imul(u,R0)|0,B=B+Math.imul(d,z0)|0,y=y+Math.imul(d,M0)|0,y=y+Math.imul(b,z0)|0,w=w+Math.imul(b,M0)|0,B=B+Math.imul(p,v0)|0,y=y+Math.imul(p,q0)|0,y=y+Math.imul(c,v0)|0,w=w+Math.imul(c,q0)|0;var s0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(s0>>>26)|0,s0&=67108863,B=Math.imul(i,W0),y=Math.imul(i,H0),y=y+Math.imul($0,W0)|0,w=Math.imul($0,H0),B=B+Math.imul(a,T0)|0,y=y+Math.imul(a,D0)|0,y=y+Math.imul(r,T0)|0,w=w+Math.imul(r,D0)|0,B=B+Math.imul(s,L0)|0,y=y+Math.imul(s,R0)|0,y=y+Math.imul(t,L0)|0,w=w+Math.imul(t,R0)|0,B=B+Math.imul(o,z0)|0,y=y+Math.imul(o,M0)|0,y=y+Math.imul(u,z0)|0,w=w+Math.imul(u,M0)|0,B=B+Math.imul(d,v0)|0,y=y+Math.imul(d,q0)|0,y=y+Math.imul(b,v0)|0,w=w+Math.imul(b,q0)|0,B=B+Math.imul(p,k0)|0,y=y+Math.imul(p,g0)|0,y=y+Math.imul(c,k0)|0,w=w+Math.imul(c,g0)|0;var t0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(t0>>>26)|0,t0&=67108863,B=Math.imul(Y0,W0),y=Math.imul(Y0,H0),y=y+Math.imul(Z0,W0)|0,w=Math.imul(Z0,H0),B=B+Math.imul(i,T0)|0,y=y+Math.imul(i,D0)|0,y=y+Math.imul($0,T0)|0,w=w+Math.imul($0,D0)|0,B=B+Math.imul(a,L0)|0,y=y+Math.imul(a,R0)|0,y=y+Math.imul(r,L0)|0,w=w+Math.imul(r,R0)|0,B=B+Math.imul(s,z0)|0,y=y+Math.imul(s,M0)|0,y=y+Math.imul(t,z0)|0,w=w+Math.imul(t,M0)|0,B=B+Math.imul(o,v0)|0,y=y+Math.imul(o,q0)|0,y=y+Math.imul(u,v0)|0,w=w+Math.imul(u,q0)|0,B=B+Math.imul(d,k0)|0,y=y+Math.imul(d,g0)|0,y=y+Math.imul(b,k0)|0,w=w+Math.imul(b,g0)|0,B=B+Math.imul(p,x0)|0,y=y+Math.imul(p,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,_0)|0;var m0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(m0>>>26)|0,m0&=67108863,B=Math.imul(V0,W0),y=Math.imul(V0,H0),y=y+Math.imul(U0,W0)|0,w=Math.imul(U0,H0),B=B+Math.imul(Y0,T0)|0,y=y+Math.imul(Y0,D0)|0,y=y+Math.imul(Z0,T0)|0,w=w+Math.imul(Z0,D0)|0,B=B+Math.imul(i,L0)|0,y=y+Math.imul(i,R0)|0,y=y+Math.imul($0,L0)|0,w=w+Math.imul($0,R0)|0,B=B+Math.imul(a,z0)|0,y=y+Math.imul(a,M0)|0,y=y+Math.imul(r,z0)|0,w=w+Math.imul(r,M0)|0,B=B+Math.imul(s,v0)|0,y=y+Math.imul(s,q0)|0,y=y+Math.imul(t,v0)|0,w=w+Math.imul(t,q0)|0,B=B+Math.imul(o,k0)|0,y=y+Math.imul(o,g0)|0,y=y+Math.imul(u,k0)|0,w=w+Math.imul(u,g0)|0,B=B+Math.imul(d,x0)|0,y=y+Math.imul(d,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,_0)|0,B=B+Math.imul(p,y0)|0,y=y+Math.imul(p,w0)|0,y=y+Math.imul(c,y0)|0,w=w+Math.imul(c,w0)|0;var a0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(a0>>>26)|0,a0&=67108863,B=Math.imul(K0,W0),y=Math.imul(K0,H0),y=y+Math.imul(I0,W0)|0,w=Math.imul(I0,H0),B=B+Math.imul(V0,T0)|0,y=y+Math.imul(V0,D0)|0,y=y+Math.imul(U0,T0)|0,w=w+Math.imul(U0,D0)|0,B=B+Math.imul(Y0,L0)|0,y=y+Math.imul(Y0,R0)|0,y=y+Math.imul(Z0,L0)|0,w=w+Math.imul(Z0,R0)|0,B=B+Math.imul(i,z0)|0,y=y+Math.imul(i,M0)|0,y=y+Math.imul($0,z0)|0,w=w+Math.imul($0,M0)|0,B=B+Math.imul(a,v0)|0,y=y+Math.imul(a,q0)|0,y=y+Math.imul(r,v0)|0,w=w+Math.imul(r,q0)|0,B=B+Math.imul(s,k0)|0,y=y+Math.imul(s,g0)|0,y=y+Math.imul(t,k0)|0,w=w+Math.imul(t,g0)|0,B=B+Math.imul(o,x0)|0,y=y+Math.imul(o,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,_0)|0,B=B+Math.imul(d,y0)|0,y=y+Math.imul(d,w0)|0,y=y+Math.imul(b,y0)|0,w=w+Math.imul(b,w0)|0,B=B+Math.imul(p,p0)|0,y=y+Math.imul(p,c0)|0,y=y+Math.imul(c,p0)|0,w=w+Math.imul(c,c0)|0;var r0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(r0>>>26)|0,r0&=67108863,B=Math.imul(O0,W0),y=Math.imul(O0,H0),y=y+Math.imul(F0,W0)|0,w=Math.imul(F0,H0),B=B+Math.imul(K0,T0)|0,y=y+Math.imul(K0,D0)|0,y=y+Math.imul(I0,T0)|0,w=w+Math.imul(I0,D0)|0,B=B+Math.imul(V0,L0)|0,y=y+Math.imul(V0,R0)|0,y=y+Math.imul(U0,L0)|0,w=w+Math.imul(U0,R0)|0,B=B+Math.imul(Y0,z0)|0,y=y+Math.imul(Y0,M0)|0,y=y+Math.imul(Z0,z0)|0,w=w+Math.imul(Z0,M0)|0,B=B+Math.imul(i,v0)|0,y=y+Math.imul(i,q0)|0,y=y+Math.imul($0,v0)|0,w=w+Math.imul($0,q0)|0,B=B+Math.imul(a,k0)|0,y=y+Math.imul(a,g0)|0,y=y+Math.imul(r,k0)|0,w=w+Math.imul(r,g0)|0,B=B+Math.imul(s,x0)|0,y=y+Math.imul(s,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,_0)|0,B=B+Math.imul(o,y0)|0,y=y+Math.imul(o,w0)|0,y=y+Math.imul(u,y0)|0,w=w+Math.imul(u,w0)|0,B=B+Math.imul(d,p0)|0,y=y+Math.imul(d,c0)|0,y=y+Math.imul(b,p0)|0,w=w+Math.imul(b,c0)|0,B=B+Math.imul(p,d0)|0,y=y+Math.imul(p,b0)|0,y=y+Math.imul(c,d0)|0,w=w+Math.imul(c,b0)|0;var e0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(e0>>>26)|0,e0&=67108863,B=Math.imul(O0,T0),y=Math.imul(O0,D0),y=y+Math.imul(F0,T0)|0,w=Math.imul(F0,D0),B=B+Math.imul(K0,L0)|0,y=y+Math.imul(K0,R0)|0,y=y+Math.imul(I0,L0)|0,w=w+Math.imul(I0,R0)|0,B=B+Math.imul(V0,z0)|0,y=y+Math.imul(V0,M0)|0,y=y+Math.imul(U0,z0)|0,w=w+Math.imul(U0,M0)|0,B=B+Math.imul(Y0,v0)|0,y=y+Math.imul(Y0,q0)|0,y=y+Math.imul(Z0,v0)|0,w=w+Math.imul(Z0,q0)|0,B=B+Math.imul(i,k0)|0,y=y+Math.imul(i,g0)|0,y=y+Math.imul($0,k0)|0,w=w+Math.imul($0,g0)|0,B=B+Math.imul(a,x0)|0,y=y+Math.imul(a,_0)|0,y=y+Math.imul(r,x0)|0,w=w+Math.imul(r,_0)|0,B=B+Math.imul(s,y0)|0,y=y+Math.imul(s,w0)|0,y=y+Math.imul(t,y0)|0,w=w+Math.imul(t,w0)|0,B=B+Math.imul(o,p0)|0,y=y+Math.imul(o,c0)|0,y=y+Math.imul(u,p0)|0,w=w+Math.imul(u,c0)|0,B=B+Math.imul(d,d0)|0,y=y+Math.imul(d,b0)|0,y=y+Math.imul(b,d0)|0,w=w+Math.imul(b,b0)|0;var i0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(i0>>>26)|0,i0&=67108863,B=Math.imul(O0,L0),y=Math.imul(O0,R0),y=y+Math.imul(F0,L0)|0,w=Math.imul(F0,R0),B=B+Math.imul(K0,z0)|0,y=y+Math.imul(K0,M0)|0,y=y+Math.imul(I0,z0)|0,w=w+Math.imul(I0,M0)|0,B=B+Math.imul(V0,v0)|0,y=y+Math.imul(V0,q0)|0,y=y+Math.imul(U0,v0)|0,w=w+Math.imul(U0,q0)|0,B=B+Math.imul(Y0,k0)|0,y=y+Math.imul(Y0,g0)|0,y=y+Math.imul(Z0,k0)|0,w=w+Math.imul(Z0,g0)|0,B=B+Math.imul(i,x0)|0,y=y+Math.imul(i,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,_0)|0,B=B+Math.imul(a,y0)|0,y=y+Math.imul(a,w0)|0,y=y+Math.imul(r,y0)|0,w=w+Math.imul(r,w0)|0,B=B+Math.imul(s,p0)|0,y=y+Math.imul(s,c0)|0,y=y+Math.imul(t,p0)|0,w=w+Math.imul(t,c0)|0,B=B+Math.imul(o,d0)|0,y=y+Math.imul(o,b0)|0,y=y+Math.imul(u,d0)|0,w=w+Math.imul(u,b0)|0;var $$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+($$>>>26)|0,$$&=67108863,B=Math.imul(O0,z0),y=Math.imul(O0,M0),y=y+Math.imul(F0,z0)|0,w=Math.imul(F0,M0),B=B+Math.imul(K0,v0)|0,y=y+Math.imul(K0,q0)|0,y=y+Math.imul(I0,v0)|0,w=w+Math.imul(I0,q0)|0,B=B+Math.imul(V0,k0)|0,y=y+Math.imul(V0,g0)|0,y=y+Math.imul(U0,k0)|0,w=w+Math.imul(U0,g0)|0,B=B+Math.imul(Y0,x0)|0,y=y+Math.imul(Y0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,_0)|0,B=B+Math.imul(i,y0)|0,y=y+Math.imul(i,w0)|0,y=y+Math.imul($0,y0)|0,w=w+Math.imul($0,w0)|0,B=B+Math.imul(a,p0)|0,y=y+Math.imul(a,c0)|0,y=y+Math.imul(r,p0)|0,w=w+Math.imul(r,c0)|0,B=B+Math.imul(s,d0)|0,y=y+Math.imul(s,b0)|0,y=y+Math.imul(t,d0)|0,w=w+Math.imul(t,b0)|0;var Q$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,B=Math.imul(O0,v0),y=Math.imul(O0,q0),y=y+Math.imul(F0,v0)|0,w=Math.imul(F0,q0),B=B+Math.imul(K0,k0)|0,y=y+Math.imul(K0,g0)|0,y=y+Math.imul(I0,k0)|0,w=w+Math.imul(I0,g0)|0,B=B+Math.imul(V0,x0)|0,y=y+Math.imul(V0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,_0)|0,B=B+Math.imul(Y0,y0)|0,y=y+Math.imul(Y0,w0)|0,y=y+Math.imul(Z0,y0)|0,w=w+Math.imul(Z0,w0)|0,B=B+Math.imul(i,p0)|0,y=y+Math.imul(i,c0)|0,y=y+Math.imul($0,p0)|0,w=w+Math.imul($0,c0)|0,B=B+Math.imul(a,d0)|0,y=y+Math.imul(a,b0)|0,y=y+Math.imul(r,d0)|0,w=w+Math.imul(r,b0)|0;var Y$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,B=Math.imul(O0,k0),y=Math.imul(O0,g0),y=y+Math.imul(F0,k0)|0,w=Math.imul(F0,g0),B=B+Math.imul(K0,x0)|0,y=y+Math.imul(K0,_0)|0,y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,_0)|0,B=B+Math.imul(V0,y0)|0,y=y+Math.imul(V0,w0)|0,y=y+Math.imul(U0,y0)|0,w=w+Math.imul(U0,w0)|0,B=B+Math.imul(Y0,p0)|0,y=y+Math.imul(Y0,c0)|0,y=y+Math.imul(Z0,p0)|0,w=w+Math.imul(Z0,c0)|0,B=B+Math.imul(i,d0)|0,y=y+Math.imul(i,b0)|0,y=y+Math.imul($0,d0)|0,w=w+Math.imul($0,b0)|0;var Z$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,B=Math.imul(O0,x0),y=Math.imul(O0,_0),y=y+Math.imul(F0,x0)|0,w=Math.imul(F0,_0),B=B+Math.imul(K0,y0)|0,y=y+Math.imul(K0,w0)|0,y=y+Math.imul(I0,y0)|0,w=w+Math.imul(I0,w0)|0,B=B+Math.imul(V0,p0)|0,y=y+Math.imul(V0,c0)|0,y=y+Math.imul(U0,p0)|0,w=w+Math.imul(U0,c0)|0,B=B+Math.imul(Y0,d0)|0,y=y+Math.imul(Y0,b0)|0,y=y+Math.imul(Z0,d0)|0,w=w+Math.imul(Z0,b0)|0;var G$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(G$>>>26)|0,G$&=67108863,B=Math.imul(O0,y0),y=Math.imul(O0,w0),y=y+Math.imul(F0,y0)|0,w=Math.imul(F0,w0),B=B+Math.imul(K0,p0)|0,y=y+Math.imul(K0,c0)|0,y=y+Math.imul(I0,p0)|0,w=w+Math.imul(I0,c0)|0,B=B+Math.imul(V0,d0)|0,y=y+Math.imul(V0,b0)|0,y=y+Math.imul(U0,d0)|0,w=w+Math.imul(U0,b0)|0;var V$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(V$>>>26)|0,V$&=67108863,B=Math.imul(O0,p0),y=Math.imul(O0,c0),y=y+Math.imul(F0,p0)|0,w=Math.imul(F0,c0),B=B+Math.imul(K0,d0)|0,y=y+Math.imul(K0,b0)|0,y=y+Math.imul(I0,d0)|0,w=w+Math.imul(I0,b0)|0;var U$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(U$>>>26)|0,U$&=67108863,B=Math.imul(O0,d0),y=Math.imul(O0,b0),y=y+Math.imul(F0,d0)|0,w=Math.imul(F0,b0);var X$=(_+B|0)+((y&8191)<<13)|0;return _=(w+(y>>>13)|0)+(X$>>>26)|0,X$&=67108863,x[0]=l0,x[1]=o0,x[2]=u0,x[3]=n0,x[4]=s0,x[5]=t0,x[6]=m0,x[7]=a0,x[8]=r0,x[9]=e0,x[10]=i0,x[11]=$$,x[12]=Q$,x[13]=Y$,x[14]=Z$,x[15]=G$,x[16]=V$,x[17]=U$,x[18]=X$,_!==0&&(x[19]=_,k.length++),k};Math.imul||(H=W);function E(q,j,k){k.negative=j.negative^q.negative,k.length=q.length+j.length;for(var g=0,N=0,x=0;x<k.length-1;x++){var _=N;N=0;for(var B=g&67108863,y=Math.min(x,j.length-1),w=Math.max(0,x-q.length+1);w<=y;w++){var f=x-w,p=q.words[f]|0,c=j.words[w]|0,h=p*c,d=h&67108863;_=_+(h/67108864|0)|0,d=d+B|0,B=d&67108863,_=_+(d>>>26)|0,N+=_>>>26,_&=67108863}k.words[x]=B,g=_,_=N}return g!==0?k.words[x]=g:k.length--,k.strip()}function T(q,j,k){var g=new D;return g.mulp(q,j,k)}V.prototype.mulTo=function(q,j){var k,g=this.length+q.length;return this.length===10&&q.length===10?k=H(this,q,j):g<63?k=W(this,q,j):g<1024?k=E(this,q,j):k=T(this,q,j),k};function D(q,j){this.x=q,this.y=j}D.prototype.makeRBT=function(q){for(var j=new Array(q),k=V.prototype._countBits(q)-1,g=0;g<q;g++)j[g]=this.revBin(g,k,q);return j},D.prototype.revBin=function(q,j,k){if(q===0||q===k-1)return q;for(var g=0,N=0;N<j;N++)g|=(q&1)<<j-N-1,q>>=1;return g},D.prototype.permute=function(q,j,k,g,N,x){for(var _=0;_<x;_++)g[_]=j[q[_]],N[_]=k[q[_]]},D.prototype.transform=function(q,j,k,g,N,x){this.permute(x,q,j,k,g,N);for(var _=1;_<N;_<<=1)for(var B=_<<1,y=Math.cos(2*Math.PI/B),w=Math.sin(2*Math.PI/B),f=0;f<N;f+=B)for(var p=y,c=w,h=0;h<_;h++){var d=k[f+h],b=g[f+h],l=k[f+h+_],o=g[f+h+_],u=p*l-c*o;o=p*o+c*l,l=u,k[f+h]=d+l,g[f+h]=b+o,k[f+h+_]=d-l,g[f+h+_]=b-o,h!==B&&(u=y*p-w*c,c=y*c+w*p,p=u)}},D.prototype.guessLen13b=function(q,j){var k=Math.max(j,q)|1,g=k&1,N=0;for(k=k/2|0;k;k=k>>>1)N++;return 1<<N+1+g},D.prototype.conjugate=function(q,j,k){if(!(k<=1))for(var g=0;g<k/2;g++){var N=q[g];q[g]=q[k-g-1],q[k-g-1]=N,N=j[g],j[g]=-j[k-g-1],j[k-g-1]=-N}},D.prototype.normalize13b=function(q,j){for(var k=0,g=0;g<j/2;g++){var N=Math.round(q[2*g+1]/j)*8192+Math.round(q[2*g]/j)+k;q[g]=N&67108863,N<67108864?k=0:k=N/67108864|0}return q},D.prototype.convert13b=function(q,j,k,g){for(var N=0,x=0;x<j;x++)N=N+(q[x]|0),k[2*x]=N&8191,N=N>>>13,k[2*x+1]=N&8191,N=N>>>13;for(x=2*j;x<g;++x)k[x]=0;Z(N===0),Z((N&-8192)===0)},D.prototype.stub=function(q){for(var j=new Array(q),k=0;k<q;k++)j[k]=0;return j},D.prototype.mulp=function(q,j,k){var g=2*this.guessLen13b(q.length,j.length),N=this.makeRBT(g),x=this.stub(g),_=new Array(g),B=new Array(g),y=new Array(g),w=new Array(g),f=new Array(g),p=new Array(g),c=k.words;c.length=g,this.convert13b(q.words,q.length,_,g),this.convert13b(j.words,j.length,w,g),this.transform(_,x,B,y,g,N),this.transform(w,x,f,p,g,N);for(var h=0;h<g;h++){var d=B[h]*f[h]-y[h]*p[h];y[h]=B[h]*p[h]+y[h]*f[h],B[h]=d}return this.conjugate(B,y,g),this.transform(B,y,c,x,g,N),this.conjugate(c,x,g),this.normalize13b(c,g),k.negative=q.negative^j.negative,k.length=q.length+j.length,k.strip()},V.prototype.mul=function(q){var j=new V(null);return j.words=new Array(this.length+q.length),this.mulTo(q,j)},V.prototype.mulf=function(q){var j=new V(null);return j.words=new Array(this.length+q.length),T(this,q,j)},V.prototype.imul=function(q){return this.clone().mulTo(q,this)},V.prototype.imuln=function(q){Z(typeof q=="number"),Z(q<67108864);for(var j=0,k=0;k<this.length;k++){var g=(this.words[k]|0)*q,N=(g&67108863)+(j&67108863);j>>=26,j+=g/67108864|0,j+=N>>>26,this.words[k]=N&67108863}return j!==0&&(this.words[k]=j,this.length++),this},V.prototype.muln=function(q){return this.clone().imuln(q)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(q){var j=A(q);if(j.length===0)return new V(1);for(var k=this,g=0;g<j.length&&j[g]===0;g++,k=k.sqr());if(++g<j.length)for(var N=k.sqr();g<j.length;g++,N=N.sqr())j[g]!==0&&(k=k.mul(N));return k},V.prototype.iushln=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26,g=67108863>>>26-j<<26-j,N;if(j!==0){var x=0;for(N=0;N<this.length;N++){var _=this.words[N]&g,B=(this.words[N]|0)-_<<j;this.words[N]=B|x,x=_>>>26-j}x&&(this.words[N]=x,this.length++)}if(k!==0){for(N=this.length-1;N>=0;N--)this.words[N+k]=this.words[N];for(N=0;N<k;N++)this.words[N]=0;this.length+=k}return this.strip()},V.prototype.ishln=function(q){return Z(this.negative===0),this.iushln(q)},V.prototype.iushrn=function(q,j,k){Z(typeof q=="number"&&q>=0);var g;j?g=(j-j%26)/26:g=0;var N=q%26,x=Math.min((q-N)/26,this.length),_=67108863^67108863>>>N<<N,B=k;if(g-=x,g=Math.max(0,g),B){for(var y=0;y<x;y++)B.words[y]=this.words[y];B.length=x}if(x!==0)if(this.length>x)for(this.length-=x,y=0;y<this.length;y++)this.words[y]=this.words[y+x];else this.words[0]=0,this.length=1;var w=0;for(y=this.length-1;y>=0&&(w!==0||y>=g);y--){var f=this.words[y]|0;this.words[y]=w<<26-N|f>>>N,w=f&_}return B&&w!==0&&(B.words[B.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},V.prototype.ishrn=function(q,j,k){return Z(this.negative===0),this.iushrn(q,j,k)},V.prototype.shln=function(q){return this.clone().ishln(q)},V.prototype.ushln=function(q){return this.clone().iushln(q)},V.prototype.shrn=function(q){return this.clone().ishrn(q)},V.prototype.ushrn=function(q){return this.clone().iushrn(q)},V.prototype.testn=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26,g=1<<j;if(this.length<=k)return!1;var N=this.words[k];return!!(N&g)},V.prototype.imaskn=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26;if(Z(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(j!==0&&k++,this.length=Math.min(k,this.length),j!==0){var g=67108863^67108863>>>j<<j;this.words[this.length-1]&=g}return this.strip()},V.prototype.maskn=function(q){return this.clone().imaskn(q)},V.prototype.iaddn=function(q){return Z(typeof q=="number"),Z(q<67108864),q<0?this.isubn(-q):this.negative!==0?this.length===1&&(this.words[0]|0)<q?(this.words[0]=q-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(q),this.negative=1,this):this._iaddn(q)},V.prototype._iaddn=function(q){this.words[0]+=q;for(var j=0;j<this.length&&this.words[j]>=67108864;j++)this.words[j]-=67108864,j===this.length-1?this.words[j+1]=1:this.words[j+1]++;return this.length=Math.max(this.length,j+1),this},V.prototype.isubn=function(q){if(Z(typeof q=="number"),Z(q<67108864),q<0)return this.iaddn(-q);if(this.negative!==0)return this.negative=0,this.iaddn(q),this.negative=1,this;if(this.words[0]-=q,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var j=0;j<this.length&&this.words[j]<0;j++)this.words[j]+=67108864,this.words[j+1]-=1;return this.strip()},V.prototype.addn=function(q){return this.clone().iaddn(q)},V.prototype.subn=function(q){return this.clone().isubn(q)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(q,j,k){var g=q.length+k,N;this._expand(g);var x,_=0;for(N=0;N<q.length;N++){x=(this.words[N+k]|0)+_;var B=(q.words[N]|0)*j;x-=B&67108863,_=(x>>26)-(B/67108864|0),this.words[N+k]=x&67108863}for(;N<this.length-k;N++)x=(this.words[N+k]|0)+_,_=x>>26,this.words[N+k]=x&67108863;if(_===0)return this.strip();for(Z(_===-1),_=0,N=0;N<this.length;N++)x=-(this.words[N]|0)+_,_=x>>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(q,j){var k=this.length-q.length,g=this.clone(),N=q,x=N.words[N.length-1]|0,_=this._countBits(x);k=26-_,k!==0&&(N=N.ushln(k),g.iushln(k),x=N.words[N.length-1]|0);var B=g.length-N.length,y;if(j!=="mod"){y=new V(null),y.length=B+1,y.words=new Array(y.length);for(var w=0;w<y.length;w++)y.words[w]=0}var f=g.clone()._ishlnsubmul(N,1,B);f.negative===0&&(g=f,y&&(y.words[B]=1));for(var p=B-1;p>=0;p--){var c=(g.words[N.length+p]|0)*67108864+(g.words[N.length+p-1]|0);for(c=Math.min(c/x|0,67108863),g._ishlnsubmul(N,c,p);g.negative!==0;)c--,g.negative=0,g._ishlnsubmul(N,1,p),g.isZero()||(g.negative^=1);y&&(y.words[p]=c)}return y&&y.strip(),g.strip(),j!=="div"&&k!==0&&g.iushrn(k),{div:y||null,mod:g}},V.prototype.divmod=function(q,j,k){if(Z(!q.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var g,N,x;return this.negative!==0&&q.negative===0?(x=this.neg().divmod(q,j),j!=="mod"&&(g=x.div.neg()),j!=="div"&&(N=x.mod.neg(),k&&N.negative!==0&&N.iadd(q)),{div:g,mod:N}):this.negative===0&&q.negative!==0?(x=this.divmod(q.neg(),j),j!=="mod"&&(g=x.div.neg()),{div:g,mod:x.mod}):(this.negative&q.negative)!==0?(x=this.neg().divmod(q.neg(),j),j!=="div"&&(N=x.mod.neg(),k&&N.negative!==0&&N.isub(q)),{div:x.div,mod:N}):q.length>this.length||this.cmp(q)<0?{div:new V(0),mod:this}:q.length===1?j==="div"?{div:this.divn(q.words[0]),mod:null}:j==="mod"?{div:null,mod:new V(this.modn(q.words[0]))}:{div:this.divn(q.words[0]),mod:new V(this.modn(q.words[0]))}:this._wordDiv(q,j)},V.prototype.div=function(q){return this.divmod(q,"div",!1).div},V.prototype.mod=function(q){return this.divmod(q,"mod",!1).mod},V.prototype.umod=function(q){return this.divmod(q,"mod",!0).mod},V.prototype.divRound=function(q){var j=this.divmod(q);if(j.mod.isZero())return j.div;var k=j.div.negative!==0?j.mod.isub(q):j.mod,g=q.ushrn(1),N=q.andln(1),x=k.cmp(g);return x<0||N===1&&x===0?j.div:j.div.negative!==0?j.div.isubn(1):j.div.iaddn(1)},V.prototype.modn=function(q){Z(q<=67108863);for(var j=(1<<26)%q,k=0,g=this.length-1;g>=0;g--)k=(j*k+(this.words[g]|0))%q;return k},V.prototype.idivn=function(q){Z(q<=67108863);for(var j=0,k=this.length-1;k>=0;k--){var g=(this.words[k]|0)+j*67108864;this.words[k]=g/q|0,j=g%q}return this.strip()},V.prototype.divn=function(q){return this.clone().idivn(q)},V.prototype.egcd=function(q){Z(q.negative===0),Z(!q.isZero());var j=this,k=q.clone();j.negative!==0?j=j.umod(q):j=j.clone();for(var g=new V(1),N=new V(0),x=new V(0),_=new V(1),B=0;j.isEven()&&k.isEven();)j.iushrn(1),k.iushrn(1),++B;for(var y=k.clone(),w=j.clone();!j.isZero();){for(var f=0,p=1;(j.words[0]&p)===0&&f<26;++f,p<<=1);if(f>0)for(j.iushrn(f);f-- >0;)(g.isOdd()||N.isOdd())&&(g.iadd(y),N.isub(w)),g.iushrn(1),N.iushrn(1);for(var c=0,h=1;(k.words[0]&h)===0&&c<26;++c,h<<=1);if(c>0)for(k.iushrn(c);c-- >0;)(x.isOdd()||_.isOdd())&&(x.iadd(y),_.isub(w)),x.iushrn(1),_.iushrn(1);j.cmp(k)>=0?(j.isub(k),g.isub(x),N.isub(_)):(k.isub(j),x.isub(g),_.isub(N))}return{a:x,b:_,gcd:k.iushln(B)}},V.prototype._invmp=function(q){Z(q.negative===0),Z(!q.isZero());var j=this,k=q.clone();j.negative!==0?j=j.umod(q):j=j.clone();for(var g=new V(1),N=new V(0),x=k.clone();j.cmpn(1)>0&&k.cmpn(1)>0;){for(var _=0,B=1;(j.words[0]&B)===0&&_<26;++_,B<<=1);if(_>0)for(j.iushrn(_);_-- >0;)g.isOdd()&&g.iadd(x),g.iushrn(1);for(var y=0,w=1;(k.words[0]&w)===0&&y<26;++y,w<<=1);if(y>0)for(k.iushrn(y);y-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);j.cmp(k)>=0?(j.isub(k),g.isub(N)):(k.isub(j),N.isub(g))}var f;return j.cmpn(1)===0?f=g:f=N,f.cmpn(0)<0&&f.iadd(q),f},V.prototype.gcd=function(q){if(this.isZero())return q.abs();if(q.isZero())return this.abs();var j=this.clone(),k=q.clone();j.negative=0,k.negative=0;for(var g=0;j.isEven()&&k.isEven();g++)j.iushrn(1),k.iushrn(1);do{for(;j.isEven();)j.iushrn(1);for(;k.isEven();)k.iushrn(1);var N=j.cmp(k);if(N<0){var x=j;j=k,k=x}else if(N===0||k.cmpn(1)===0)break;j.isub(k)}while(!0);return k.iushln(g)},V.prototype.invm=function(q){return this.egcd(q).a.umod(q)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(q){return this.words[0]&q},V.prototype.bincn=function(q){Z(typeof q=="number");var j=q%26,k=(q-j)/26,g=1<<j;if(this.length<=k)return this._expand(k+1),this.words[k]|=g,this;for(var N=g,x=k;N!==0&&x<this.length;x++){var _=this.words[x]|0;_+=N,N=_>>>26,_&=67108863,this.words[x]=_}return N!==0&&(this.words[x]=N,this.length++),this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(q){var j=q<0;if(this.negative!==0&&!j)return-1;if(this.negative===0&&j)return 1;this.strip();var k;if(this.length>1)k=1;else{j&&(q=-q),Z(q<=67108863,"Number is too big");var g=this.words[0]|0;k=g===q?0:g<q?-1:1}return this.negative!==0?-k|0:k},V.prototype.cmp=function(q){if(this.negative!==0&&q.negative===0)return-1;if(this.negative===0&&q.negative!==0)return 1;var j=this.ucmp(q);return this.negative!==0?-j|0:j},V.prototype.ucmp=function(q){if(this.length>q.length)return 1;if(this.length<q.length)return-1;for(var j=0,k=this.length-1;k>=0;k--){var g=this.words[k]|0,N=q.words[k]|0;if(g!==N){g<N?j=-1:g>N&&(j=1);break}}return j},V.prototype.gtn=function(q){return this.cmpn(q)===1},V.prototype.gt=function(q){return this.cmp(q)===1},V.prototype.gten=function(q){return this.cmpn(q)>=0},V.prototype.gte=function(q){return this.cmp(q)>=0},V.prototype.ltn=function(q){return this.cmpn(q)===-1},V.prototype.lt=function(q){return this.cmp(q)===-1},V.prototype.lten=function(q){return this.cmpn(q)<=0},V.prototype.lte=function(q){return this.cmp(q)<=0},V.prototype.eqn=function(q){return this.cmpn(q)===0},V.prototype.eq=function(q){return this.cmp(q)===0},V.red=function(q){return new S(q)},V.prototype.toRed=function(q){return Z(!this.red,"Already a number in reduction context"),Z(this.negative===0,"red works only with positives"),q.convertTo(this)._forceRed(q)},V.prototype.fromRed=function(){return Z(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(q){return this.red=q,this},V.prototype.forceRed=function(q){return Z(!this.red,"Already a number in reduction context"),this._forceRed(q)},V.prototype.redAdd=function(q){return Z(this.red,"redAdd works only with red numbers"),this.red.add(this,q)},V.prototype.redIAdd=function(q){return Z(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,q)},V.prototype.redSub=function(q){return Z(this.red,"redSub works only with red numbers"),this.red.sub(this,q)},V.prototype.redISub=function(q){return Z(this.red,"redISub works only with red numbers"),this.red.isub(this,q)},V.prototype.redShl=function(q){return Z(this.red,"redShl works only with red numbers"),this.red.shl(this,q)},V.prototype.redMul=function(q){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,q),this.red.mul(this,q)},V.prototype.redIMul=function(q){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,q),this.red.imul(this,q)},V.prototype.redSqr=function(){return Z(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return Z(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return Z(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return Z(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return Z(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(q){return Z(this.red&&!q.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,q)};var C={k256:null,p224:null,p192:null,p25519:null};function L(q,j){this.name=q,this.p=new V(j,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}L.prototype._tmp=function(){var q=new V(null);return q.words=new Array(Math.ceil(this.n/13)),q},L.prototype.ireduce=function(q){var j=q,k;do this.split(j,this.tmp),j=this.imulK(j),j=j.iadd(this.tmp),k=j.bitLength();while(k>this.n);var g=k<this.n?-1:j.ucmp(this.p);return g===0?(j.words[0]=0,j.length=1):g>0?j.isub(this.p):j.strip!==void 0?j.strip():j._strip(),j},L.prototype.split=function(q,j){q.iushrn(this.n,0,j)},L.prototype.imulK=function(q){return q.imul(this.k)};function R(){L.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}G(R,L),R.prototype.split=function(q,j){for(var k=4194303,g=Math.min(q.length,9),N=0;N<g;N++)j.words[N]=q.words[N];if(j.length=g,q.length<=9){q.words[0]=0,q.length=1;return}var x=q.words[9];for(j.words[j.length++]=x&k,N=10;N<q.length;N++){var _=q.words[N]|0;q.words[N-10]=(_&k)<<4|x>>>22,x=_}x>>>=22,q.words[N-10]=x,x===0&&q.length>10?q.length-=10:q.length-=9},R.prototype.imulK=function(q){q.words[q.length]=0,q.words[q.length+1]=0,q.length+=2;for(var j=0,k=0;k<q.length;k++){var g=q.words[k]|0;j+=g*977,q.words[k]=j&67108863,j=g*64+(j/67108864|0)}return q.words[q.length-1]===0&&(q.length--,q.words[q.length-1]===0&&q.length--),q};function P(){L.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}G(P,L);function z(){L.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}G(z,L);function M(){L.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}G(M,L),M.prototype.imulK=function(q){for(var j=0,k=0;k<q.length;k++){var g=(q.words[k]|0)*19+j,N=g&67108863;g>>>=26,q.words[k]=N,j=g}return j!==0&&(q.words[q.length++]=j),q},V._prime=function(q){if(C[q])return C[q];var j;if(q==="k256")j=new R;else if(q==="p224")j=new P;else if(q==="p192")j=new z;else if(q==="p25519")j=new M;else throw new Error("Unknown prime "+q);return C[q]=j,j};function S(q){if(typeof q=="string"){var j=V._prime(q);this.m=j.p,this.prime=j}else Z(q.gtn(1),"modulus must be greater than 1"),this.m=q,this.prime=null}S.prototype._verify1=function(q){Z(q.negative===0,"red works only with positives"),Z(q.red,"red works only with red numbers")},S.prototype._verify2=function(q,j){Z((q.negative|j.negative)===0,"red works only with positives"),Z(q.red&&q.red===j.red,"red works only with red numbers")},S.prototype.imod=function(q){return this.prime?this.prime.ireduce(q)._forceRed(this):q.umod(this.m)._forceRed(this)},S.prototype.neg=function(q){return q.isZero()?q.clone():this.m.sub(q)._forceRed(this)},S.prototype.add=function(q,j){this._verify2(q,j);var k=q.add(j);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},S.prototype.iadd=function(q,j){this._verify2(q,j);var k=q.iadd(j);return k.cmp(this.m)>=0&&k.isub(this.m),k},S.prototype.sub=function(q,j){this._verify2(q,j);var k=q.sub(j);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},S.prototype.isub=function(q,j){this._verify2(q,j);var k=q.isub(j);return k.cmpn(0)<0&&k.iadd(this.m),k},S.prototype.shl=function(q,j){return this._verify1(q),this.imod(q.ushln(j))},S.prototype.imul=function(q,j){return this._verify2(q,j),this.imod(q.imul(j))},S.prototype.mul=function(q,j){return this._verify2(q,j),this.imod(q.mul(j))},S.prototype.isqr=function(q){return this.imul(q,q.clone())},S.prototype.sqr=function(q){return this.mul(q,q)},S.prototype.sqrt=function(q){if(q.isZero())return q.clone();var j=this.m.andln(3);if(Z(j%2===1),j===3){var k=this.m.add(new V(1)).iushrn(2);return this.pow(q,k)}for(var g=this.m.subn(1),N=0;!g.isZero()&&g.andln(1)===0;)N++,g.iushrn(1);Z(!g.isZero());var x=new V(1).toRed(this),_=x.redNeg(),B=this.m.subn(1).iushrn(1),y=this.m.bitLength();for(y=new V(2*y*y).toRed(this);this.pow(y,B).cmp(_)!==0;)y.redIAdd(_);for(var w=this.pow(y,g),f=this.pow(q,g.addn(1).iushrn(1)),p=this.pow(q,g),c=N;p.cmp(x)!==0;){for(var h=p,d=0;h.cmp(x)!==0;d++)h=h.redSqr();Z(d<c);var b=this.pow(w,new V(1).iushln(c-d-1));f=f.redMul(b),w=b.redSqr(),p=p.redMul(w),c=d}return f},S.prototype.invm=function(q){var j=q._invmp(this.m);return j.negative!==0?(j.negative=0,this.imod(j).redNeg()):this.imod(j)},S.prototype.pow=function(q,j){if(j.isZero())return new V(1).toRed(this);if(j.cmpn(1)===0)return q.clone();var k=4,g=new Array(1<<k);g[0]=new V(1).toRed(this),g[1]=q;for(var N=2;N<g.length;N++)g[N]=this.mul(g[N-1],q);var x=g[0],_=0,B=0,y=j.bitLength()%26;for(y===0&&(y=26),N=j.length-1;N>=0;N--){for(var w=j.words[N],f=y-1;f>=0;f--){var p=w>>f&1;if(x!==g[0]&&(x=this.sqr(x)),p===0&&_===0){B=0;continue}_<<=1,_|=p,B++,!(B!==k&&(N!==0||f!==0))&&(x=this.mul(x,g[_]),B=0,_=0)}y=26}return x},S.prototype.convertTo=function(q){var j=q.umod(this.m);return j===q?j.clone():j},S.prototype.convertFrom=function(q){var j=q.clone();return j.red=null,j},V.mont=function(q){return new v(q)};function v(q){S.call(this,q),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new V(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}G(v,S),v.prototype.convertTo=function(q){return this.imod(q.ushln(this.shift))},v.prototype.convertFrom=function(q){var j=this.imod(q.mul(this.rinv));return j.red=null,j},v.prototype.imul=function(q,j){if(q.isZero()||j.isZero())return q.words[0]=0,q.length=1,q;var k=q.imul(j),g=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=k.isub(g).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},v.prototype.mul=function(q,j){if(q.isZero()||j.isZero())return new V(0)._forceRed(this);var k=q.mul(j),g=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=k.isub(g).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},v.prototype.invm=function(q){var j=this.imod(q._invmp(this.m).mul(this.r2));return j._forceRed(this)}})(typeof $>"u"||$,bZ)}}),HY=P$({"node_modules/safer-buffer/safer.js"(bZ,$){var Q=L$("buffer"),Y=Q.Buffer,Z={},G;for(G in Q)!Q.hasOwnProperty(G)||G==="SlowBuffer"||G==="Buffer"||(Z[G]=Q[G]);var V=Z.Buffer={};for(G in Y)!Y.hasOwnProperty(G)||G==="allocUnsafe"||G==="allocUnsafeSlow"||(V[G]=Y[G]);if(Z.Buffer.prototype=Y.prototype,(!V.from||V.from===Uint8Array.from)&&(V.from=function(U,X,K){if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type '+typeof U);if(U&&typeof U.length>"u")throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);return Y(U,X,K)}),V.alloc||(V.alloc=function(U,X,K){if(typeof U!="number")throw new TypeError('The "size" argument must be of type number. Received type '+typeof U);if(U<0||U>=2*(1<<30))throw new RangeError('The value "'+U+'" is invalid for option "size"');var I=Y(U);return!X||X.length===0?I.fill(0):typeof K=="string"?I.fill(X,K):I.fill(X),I}),!Z.kStringMaxLength)try{Z.kStringMaxLength=C$}catch{}Z.constants||(Z.constants={MAX_LENGTH:Z.kMaxLength},Z.kStringMaxLength&&(Z.constants.MAX_STRING_LENGTH=Z.kStringMaxLength)),$.exports=Z}}),EY=P$({"node_modules/asn1.js/lib/asn1/base/reporter.js"(bZ){var $=v$();function Q(Z){this._reporterState={obj:null,path:[],options:Z||{},errors:[]}}bZ.Reporter=Q,Q.prototype.isError=function(Z){return Z instanceof Y},Q.prototype.save=function(){let Z=this._reporterState;return{obj:Z.obj,pathLen:Z.path.length}},Q.prototype.restore=function(Z){let G=this._reporterState;G.obj=Z.obj,G.path=G.path.slice(0,Z.pathLen)},Q.prototype.enterKey=function(Z){return this._reporterState.path.push(Z)},Q.prototype.exitKey=function(Z){let G=this._reporterState;G.path=G.path.slice(0,Z-1)},Q.prototype.leaveKey=function(Z,G,V){let U=this._reporterState;this.exitKey(Z),U.obj!==null&&(U.obj[G]=V)},Q.prototype.path=function(){return this._reporterState.path.join("/")},Q.prototype.enterObject=function(){let Z=this._reporterState,G=Z.obj;return Z.obj={},G},Q.prototype.leaveObject=function(Z){let G=this._reporterState,V=G.obj;return G.obj=Z,V},Q.prototype.error=function(Z){let G,V=this._reporterState,U=Z instanceof Y;if(U?G=Z:G=new Y(V.path.map(function(X){return"["+JSON.stringify(X)+"]"}).join(""),Z.message||Z,Z.stack),!V.options.partial)throw G;return U||V.errors.push(G),G},Q.prototype.wrapResult=function(Z){let G=this._reporterState;return G.options.partial?{result:this.isError(Z)?null:Z,errors:G.errors}:Z};function Y(Z,G){this.path=Z,this.rethrow(G)}$(Y,Error),Y.prototype.rethrow=function(Z){if(this.message=Z+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,Y),!this.stack)try{throw new Error(this.message)}catch(G){this.stack=G.stack}return this}}}),A$=P$({"node_modules/asn1.js/lib/asn1/base/buffer.js"(bZ){var $=v$(),Q=EY().Reporter,Y=HY().Buffer;function Z(V,U){if(Q.call(this,U),!Y.isBuffer(V)){this.error("Input not Buffer");return}this.base=V,this.offset=0,this.length=V.length}$(Z,Q),bZ.DecoderBuffer=Z,Z.isDecoderBuffer=function(V){return V instanceof Z?!0:typeof V=="object"&&Y.isBuffer(V.base)&&V.constructor.name==="DecoderBuffer"&&typeof V.offset=="number"&&typeof V.length=="number"&&typeof V.save=="function"&&typeof V.restore=="function"&&typeof V.isEmpty=="function"&&typeof V.readUInt8=="function"&&typeof V.skip=="function"&&typeof V.raw=="function"},Z.prototype.save=function(){return{offset:this.offset,reporter:Q.prototype.save.call(this)}},Z.prototype.restore=function(V){let U=new Z(this.base);return U.offset=V.offset,U.length=this.offset,this.offset=V.offset,Q.prototype.restore.call(this,V.reporter),U},Z.prototype.isEmpty=function(){return this.offset===this.length},Z.prototype.readUInt8=function(V){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(V||"DecoderBuffer overrun")},Z.prototype.skip=function(V,U){if(!(this.offset+V<=this.length))return this.error(U||"DecoderBuffer overrun");let X=new Z(this.base);return X._reporterState=this._reporterState,X.offset=this.offset,X.length=this.offset+V,this.offset+=V,X},Z.prototype.raw=function(V){return this.base.slice(V?V.offset:this.offset,this.length)};function G(V,U){if(Array.isArray(V))this.length=0,this.value=V.map(function(X){return G.isEncoderBuffer(X)||(X=new G(X,U)),this.length+=X.length,X},this);else if(typeof V=="number"){if(!(0<=V&&V<=255))return U.error("non-byte EncoderBuffer value");this.value=V,this.length=1}else if(typeof V=="string")this.value=V,this.length=Y.byteLength(V);else if(Y.isBuffer(V))this.value=V,this.length=V.length;else return U.error("Unsupported type: "+typeof V)}bZ.EncoderBuffer=G,G.isEncoderBuffer=function(V){return V instanceof G?!0:typeof V=="object"&&V.constructor.name==="EncoderBuffer"&&typeof V.length=="number"&&typeof V.join=="function"},G.prototype.join=function(V,U){return V||(V=Y.alloc(this.length)),U||(U=0),this.length===0||(Array.isArray(this.value)?this.value.forEach(function(X){X.join(V,U),U+=X.length}):(typeof this.value=="number"?V[U]=this.value:typeof this.value=="string"?V.write(this.value,U):Y.isBuffer(this.value)&&this.value.copy(V,U),U+=this.length)),V}}}),TY=P$({"node_modules/asn1.js/lib/asn1/base/node.js"(bZ,$){var Q=EY().Reporter,Y=A$().EncoderBuffer,Z=A$().DecoderBuffer,G=i$(),V=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],U=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(V),X=["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"];function K(J,O,F){let A={};this._baseState=A,A.name=F,A.enc=J,A.parent=O||null,A.children=null,A.tag=null,A.args=null,A.reverseArgs=null,A.choice=null,A.optional=!1,A.any=!1,A.obj=!1,A.use=null,A.useDecoder=null,A.key=null,A.default=null,A.explicit=null,A.implicit=null,A.contains=null,A.parent||(A.children=[],this._wrap())}$.exports=K;var I=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];K.prototype.clone=function(){let J=this._baseState,O={};I.forEach(function(A){O[A]=J[A]});let F=new this.constructor(O.parent);return F._baseState=O,F},K.prototype._wrap=function(){let J=this._baseState;U.forEach(function(O){this[O]=function(){let F=new this.constructor(this);return J.children.push(F),F[O].apply(F,arguments)}},this)},K.prototype._init=function(J){let O=this._baseState;G(O.parent===null),J.call(this),O.children=O.children.filter(function(F){return F._baseState.parent===this},this),G.equal(O.children.length,1,"Root node can have only one child")},K.prototype._useArgs=function(J){let O=this._baseState,F=J.filter(function(A){return A instanceof this.constructor},this);J=J.filter(function(A){return!(A instanceof this.constructor)},this),F.length!==0&&(G(O.children===null),O.children=F,F.forEach(function(A){A._baseState.parent=this},this)),J.length!==0&&(G(O.args===null),O.args=J,O.reverseArgs=J.map(function(A){if(typeof A!="object"||A.constructor!==Object)return A;let W={};return Object.keys(A).forEach(function(H){H==(H|0)&&(H|=0);let E=A[H];W[E]=H}),W}))},X.forEach(function(J){K.prototype[J]=function(){let O=this._baseState;throw new Error(J+" not implemented for encoding: "+O.enc)}}),V.forEach(function(J){K.prototype[J]=function(){let O=this._baseState,F=Array.prototype.slice.call(arguments);return G(O.tag===null),O.tag=J,this._useArgs(F),this}}),K.prototype.use=function(J){G(J);let O=this._baseState;return G(O.use===null),O.use=J,this},K.prototype.optional=function(){let J=this._baseState;return J.optional=!0,this},K.prototype.def=function(J){let O=this._baseState;return G(O.default===null),O.default=J,O.optional=!0,this},K.prototype.explicit=function(J){let O=this._baseState;return G(O.explicit===null&&O.implicit===null),O.explicit=J,this},K.prototype.implicit=function(J){let O=this._baseState;return G(O.explicit===null&&O.implicit===null),O.implicit=J,this},K.prototype.obj=function(){let J=this._baseState,O=Array.prototype.slice.call(arguments);return J.obj=!0,O.length!==0&&this._useArgs(O),this},K.prototype.key=function(J){let O=this._baseState;return G(O.key===null),O.key=J,this},K.prototype.any=function(){let J=this._baseState;return J.any=!0,this},K.prototype.choice=function(J){let O=this._baseState;return G(O.choice===null),O.choice=J,this._useArgs(Object.keys(J).map(function(F){return J[F]})),this},K.prototype.contains=function(J){let O=this._baseState;return G(O.use===null),O.contains=J,this},K.prototype._decode=function(J,O){let F=this._baseState;if(F.parent===null)return J.wrapResult(F.children[0]._decode(J,O));let A=F.default,W=!0,H=null;if(F.key!==null&&(H=J.enterKey(F.key)),F.optional){let T=null;if(F.explicit!==null?T=F.explicit:F.implicit!==null?T=F.implicit:F.tag!==null&&(T=F.tag),T===null&&!F.any){let D=J.save();try{F.choice===null?this._decodeGeneric(F.tag,J,O):this._decodeChoice(J,O),W=!0}catch{W=!1}J.restore(D)}else if(W=this._peekTag(J,T,F.any),J.isError(W))return W}let E;if(F.obj&&W&&(E=J.enterObject()),W){if(F.explicit!==null){let D=this._decodeTag(J,F.explicit);if(J.isError(D))return D;J=D}let T=J.offset;if(F.use===null&&F.choice===null){let D;F.any&&(D=J.save());let C=this._decodeTag(J,F.implicit!==null?F.implicit:F.tag,F.any);if(J.isError(C))return C;F.any?A=J.raw(D):J=C}if(O&&O.track&&F.tag!==null&&O.track(J.path(),T,J.length,"tagged"),O&&O.track&&F.tag!==null&&O.track(J.path(),J.offset,J.length,"content"),F.any||(F.choice===null?A=this._decodeGeneric(F.tag,J,O):A=this._decodeChoice(J,O)),J.isError(A))return A;if(!F.any&&F.choice===null&&F.children!==null&&F.children.forEach(function(D){D._decode(J,O)}),F.contains&&(F.tag==="octstr"||F.tag==="bitstr")){let D=new Z(A);A=this._getUse(F.contains,J._reporterState.obj)._decode(D,O)}}return F.obj&&W&&(A=J.leaveObject(E)),F.key!==null&&(A!==null||W===!0)?J.leaveKey(H,F.key,A):H!==null&&J.exitKey(H),A},K.prototype._decodeGeneric=function(J,O,F){let A=this._baseState;return J==="seq"||J==="set"?null:J==="seqof"||J==="setof"?this._decodeList(O,J,A.args[0],F):/str$/.test(J)?this._decodeStr(O,J,F):J==="objid"&&A.args?this._decodeObjid(O,A.args[0],A.args[1],F):J==="objid"?this._decodeObjid(O,null,null,F):J==="gentime"||J==="utctime"?this._decodeTime(O,J,F):J==="null_"?this._decodeNull(O,F):J==="bool"?this._decodeBool(O,F):J==="objDesc"?this._decodeStr(O,J,F):J==="int"||J==="enum"?this._decodeInt(O,A.args&&A.args[0],F):A.use!==null?this._getUse(A.use,O._reporterState.obj)._decode(O,F):O.error("unknown tag: "+J)},K.prototype._getUse=function(J,O){let F=this._baseState;return F.useDecoder=this._use(J,O),G(F.useDecoder._baseState.parent===null),F.useDecoder=F.useDecoder._baseState.children[0],F.implicit!==F.useDecoder._baseState.implicit&&(F.useDecoder=F.useDecoder.clone(),F.useDecoder._baseState.implicit=F.implicit),F.useDecoder},K.prototype._decodeChoice=function(J,O){let F=this._baseState,A=null,W=!1;return Object.keys(F.choice).some(function(H){let E=J.save(),T=F.choice[H];try{let D=T._decode(J,O);if(J.isError(D))return!1;A={type:H,value:D},W=!0}catch{return J.restore(E),!1}return!0},this),W?A:J.error("Choice not matched")},K.prototype._createEncoderBuffer=function(J){return new Y(J,this.reporter)},K.prototype._encode=function(J,O,F){let A=this._baseState;if(A.default!==null&&A.default===J)return;let W=this._encodeValue(J,O,F);if(W!==void 0&&!this._skipDefault(W,O,F))return W},K.prototype._encodeValue=function(J,O,F){let A=this._baseState;if(A.parent===null)return A.children[0]._encode(J,O||new Q);let W=null;if(this.reporter=O,A.optional&&J===void 0)if(A.default!==null)J=A.default;else return;let H=null,E=!1;if(A.any)W=this._createEncoderBuffer(J);else if(A.choice)W=this._encodeChoice(J,O);else if(A.contains)H=this._getUse(A.contains,F)._encode(J,O),E=!0;else if(A.children)H=A.children.map(function(T){if(T._baseState.tag==="null_")return T._encode(null,O,J);if(T._baseState.key===null)return O.error("Child should have a key");let D=O.enterKey(T._baseState.key);if(typeof J!="object")return O.error("Child expected, but input is not object");let C=T._encode(J[T._baseState.key],O,J);return O.leaveKey(D),C},this).filter(function(T){return T}),H=this._createEncoderBuffer(H);else if(A.tag==="seqof"||A.tag==="setof"){if(!(A.args&&A.args.length===1))return O.error("Too many args for : "+A.tag);if(!Array.isArray(J))return O.error("seqof/setof, but data is not Array");let T=this.clone();T._baseState.implicit=null,H=this._createEncoderBuffer(J.map(function(D){let C=this._baseState;return this._getUse(C.args[0],J)._encode(D,O)},T))}else A.use!==null?W=this._getUse(A.use,F)._encode(J,O):(H=this._encodePrimitive(A.tag,J),E=!0);if(!A.any&&A.choice===null){let T=A.implicit!==null?A.implicit:A.tag,D=A.implicit===null?"universal":"context";T===null?A.use===null&&O.error("Tag could be omitted only for .use()"):A.use===null&&(W=this._encodeComposite(T,E,D,H))}return A.explicit!==null&&(W=this._encodeComposite(A.explicit,!1,"context",W)),W},K.prototype._encodeChoice=function(J,O){let F=this._baseState,A=F.choice[J.type];return A||G(!1,J.type+" not found in "+JSON.stringify(Object.keys(F.choice))),A._encode(J.value,O)},K.prototype._encodePrimitive=function(J,O){let F=this._baseState;if(/str$/.test(J))return this._encodeStr(O,J);if(J==="objid"&&F.args)return this._encodeObjid(O,F.reverseArgs[0],F.args[1]);if(J==="objid")return this._encodeObjid(O,null,null);if(J==="gentime"||J==="utctime")return this._encodeTime(O,J);if(J==="null_")return this._encodeNull();if(J==="int"||J==="enum")return this._encodeInt(O,F.args&&F.reverseArgs[0]);if(J==="bool")return this._encodeBool(O);if(J==="objDesc")return this._encodeStr(O,J);throw new Error("Unsupported tag: "+J)},K.prototype._isNumstr=function(J){return/^[0-9 ]*$/.test(J)},K.prototype._isPrintstr=function(J){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(J)}}}),DY=P$({"node_modules/asn1.js/lib/asn1/constants/der.js"(bZ){function $(Q){let Y={};return Object.keys(Q).forEach(function(Z){(Z|0)==Z&&(Z=Z|0);let G=Q[Z];Y[G]=Z}),Y}bZ.tagClass={0:"universal",1:"application",2:"context",3:"private"},bZ.tagClassByName=$(bZ.tagClass),bZ.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},bZ.tagByName=$(bZ.tag)}}),CY=P$({"node_modules/asn1.js/lib/asn1/encoders/der.js"(bZ,$){var Q=v$(),Y=HY().Buffer,Z=TY(),G=DY();function V(I){this.enc="der",this.name=I.name,this.entity=I,this.tree=new U,this.tree._init(I.body)}$.exports=V,V.prototype.encode=function(I,J){return this.tree._encode(I,J).join()};function U(I){Z.call(this,"der",I)}Q(U,Z),U.prototype._encodeComposite=function(I,J,O,F){let A=K(I,J,O,this.reporter);if(F.length<128){let E=Y.alloc(2);return E[0]=A,E[1]=F.length,this._createEncoderBuffer([E,F])}let W=1;for(let E=F.length;E>=256;E>>=8)W++;let H=Y.alloc(2+W);H[0]=A,H[1]=128|W;for(let E=1+W,T=F.length;T>0;E--,T>>=8)H[E]=T&255;return this._createEncoderBuffer([H,F])},U.prototype._encodeStr=function(I,J){if(J==="bitstr")return this._createEncoderBuffer([I.unused|0,I.data]);if(J==="bmpstr"){let O=Y.alloc(I.length*2);for(let F=0;F<I.length;F++)O.writeUInt16BE(I.charCodeAt(F),F*2);return this._createEncoderBuffer(O)}else return J==="numstr"?this._isNumstr(I)?this._createEncoderBuffer(I):this.reporter.error("Encoding of string type: numstr supports only digits and space"):J==="printstr"?this._isPrintstr(I)?this._createEncoderBuffer(I):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(J)?this._createEncoderBuffer(I):J==="objDesc"?this._createEncoderBuffer(I):this.reporter.error("Encoding of string type: "+J+" unsupported")},U.prototype._encodeObjid=function(I,J,O){if(typeof I=="string"){if(!J)return this.reporter.error("string objid given, but no values map found");if(!J.hasOwnProperty(I))return this.reporter.error("objid not found in values map");I=J[I].split(/[\s.]+/g);for(let H=0;H<I.length;H++)I[H]|=0}else if(Array.isArray(I)){I=I.slice();for(let H=0;H<I.length;H++)I[H]|=0}if(!Array.isArray(I))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(I));if(!O){if(I[1]>=40)return this.reporter.error("Second objid identifier OOB");I.splice(0,2,I[0]*40+I[1])}let F=0;for(let H=0;H<I.length;H++){let E=I[H];for(F++;E>=128;E>>=7)F++}let A=Y.alloc(F),W=A.length-1;for(let H=I.length-1;H>=0;H--){let E=I[H];for(A[W--]=E&127;(E>>=7)>0;)A[W--]=128|E&127}return this._createEncoderBuffer(A)};function X(I){return I<10?"0"+I:I}U.prototype._encodeTime=function(I,J){let O,F=new Date(I);return J==="gentime"?O=[X(F.getUTCFullYear()),X(F.getUTCMonth()+1),X(F.getUTCDate()),X(F.getUTCHours()),X(F.getUTCMinutes()),X(F.getUTCSeconds()),"Z"].join(""):J==="utctime"?O=[X(F.getUTCFullYear()%100),X(F.getUTCMonth()+1),X(F.getUTCDate()),X(F.getUTCHours()),X(F.getUTCMinutes()),X(F.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+J+" time is not supported yet"),this._encodeStr(O,"octstr")},U.prototype._encodeNull=function(){return this._createEncoderBuffer("")},U.prototype._encodeInt=function(I,J){if(typeof I=="string"){if(!J)return this.reporter.error("String int or enum given, but no values map");if(!J.hasOwnProperty(I))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(I));I=J[I]}if(typeof I!="number"&&!Y.isBuffer(I)){let A=I.toArray();!I.sign&&A[0]&128&&A.unshift(0),I=Y.from(A)}if(Y.isBuffer(I)){let A=I.length;I.length===0&&A++;let W=Y.alloc(A);return I.copy(W),I.length===0&&(W[0]=0),this._createEncoderBuffer(W)}if(I<128)return this._createEncoderBuffer(I);if(I<256)return this._createEncoderBuffer([0,I]);let O=1;for(let A=I;A>=256;A>>=8)O++;let F=new Array(O);for(let A=F.length-1;A>=0;A--)F[A]=I&255,I>>=8;return F[0]&128&&F.unshift(0),this._createEncoderBuffer(Y.from(F))},U.prototype._encodeBool=function(I){return this._createEncoderBuffer(I?255:0)},U.prototype._use=function(I,J){return typeof I=="function"&&(I=I(J)),I._getEncoder("der").tree},U.prototype._skipDefault=function(I,J,O){let F=this._baseState,A;if(F.default===null)return!1;let W=I.join();if(F.defaultBuffer===void 0&&(F.defaultBuffer=this._encodeValue(F.default,J,O).join()),W.length!==F.defaultBuffer.length)return!1;for(A=0;A<W.length;A++)if(W[A]!==F.defaultBuffer[A])return!1;return!0};function K(I,J,O,F){let A;if(I==="seqof"?I="seq":I==="setof"&&(I="set"),G.tagByName.hasOwnProperty(I))A=G.tagByName[I];else if(typeof I=="number"&&(I|0)===I)A=I;else return F.error("Unknown tag: "+I);return A>=31?F.error("Multi-octet tag encoding unsupported"):(J||(A|=32),A|=G.tagClassByName[O||"universal"]<<6,A)}}}),LY=P$({"node_modules/asn1.js/lib/asn1/encoders/pem.js"(bZ,$){var Q=v$(),Y=CY();function Z(G){Y.call(this,G),this.enc="pem"}Q(Z,Y),$.exports=Z,Z.prototype.encode=function(G,V){let U=Y.prototype.encode.call(this,G).toString("base64"),X=["-----BEGIN "+V.label+"-----"];for(let K=0;K<U.length;K+=64)X.push(U.slice(K,K+64));return X.push("-----END "+V.label+"-----"),X.join(` +`)}}}),RY=P$({"node_modules/asn1.js/lib/asn1/encoders/index.js"(bZ){var $=bZ;$.der=CY(),$.pem=LY()}}),PY=P$({"node_modules/asn1.js/lib/asn1/decoders/der.js"(bZ,$){var Q=v$(),Y=WY(),Z=A$().DecoderBuffer,G=TY(),V=DY();function U(J){this.enc="der",this.name=J.name,this.entity=J,this.tree=new X,this.tree._init(J.body)}$.exports=U,U.prototype.decode=function(J,O){return Z.isDecoderBuffer(J)||(J=new Z(J,O)),this.tree._decode(J,O)};function X(J){G.call(this,"der",J)}Q(X,G),X.prototype._peekTag=function(J,O,F){if(J.isEmpty())return!1;let A=J.save(),W=K(J,'Failed to peek tag: "'+O+'"');return J.isError(W)?W:(J.restore(A),W.tag===O||W.tagStr===O||W.tagStr+"of"===O||F)},X.prototype._decodeTag=function(J,O,F){let A=K(J,'Failed to decode tag of "'+O+'"');if(J.isError(A))return A;let W=I(J,A.primitive,'Failed to get length of "'+O+'"');if(J.isError(W))return W;if(!F&&A.tag!==O&&A.tagStr!==O&&A.tagStr+"of"!==O)return J.error('Failed to match tag: "'+O+'"');if(A.primitive||W!==null)return J.skip(W,'Failed to match body of: "'+O+'"');let H=J.save(),E=this._skipUntilEnd(J,'Failed to skip indefinite length body: "'+this.tag+'"');return J.isError(E)?E:(W=J.offset-H.offset,J.restore(H),J.skip(W,'Failed to match body of: "'+O+'"'))},X.prototype._skipUntilEnd=function(J,O){for(;;){let F=K(J,O);if(J.isError(F))return F;let A=I(J,F.primitive,O);if(J.isError(A))return A;let W;if(F.primitive||A!==null?W=J.skip(A):W=this._skipUntilEnd(J,O),J.isError(W))return W;if(F.tagStr==="end")break}},X.prototype._decodeList=function(J,O,F,A){let W=[];for(;!J.isEmpty();){let H=this._peekTag(J,"end");if(J.isError(H))return H;let E=F.decode(J,"der",A);if(J.isError(E)&&H)break;W.push(E)}return W},X.prototype._decodeStr=function(J,O){if(O==="bitstr"){let F=J.readUInt8();return J.isError(F)?F:{unused:F,data:J.raw()}}else if(O==="bmpstr"){let F=J.raw();if(F.length%2===1)return J.error("Decoding of string type: bmpstr length mismatch");let A="";for(let W=0;W<F.length/2;W++)A+=String.fromCharCode(F.readUInt16BE(W*2));return A}else if(O==="numstr"){let F=J.raw().toString("ascii");return this._isNumstr(F)?F:J.error("Decoding of string type: numstr unsupported characters")}else{if(O==="octstr")return J.raw();if(O==="objDesc")return J.raw();if(O==="printstr"){let F=J.raw().toString("ascii");return this._isPrintstr(F)?F:J.error("Decoding of string type: printstr unsupported characters")}else return/str$/.test(O)?J.raw().toString():J.error("Decoding of string type: "+O+" unsupported")}},X.prototype._decodeObjid=function(J,O,F){let A,W=[],H=0,E=0;for(;!J.isEmpty();)E=J.readUInt8(),H<<=7,H|=E&127,(E&128)===0&&(W.push(H),H=0);E&128&&W.push(H);let T=W[0]/40|0,D=W[0]%40;if(F?A=W:A=[T,D].concat(W.slice(1)),O){let C=O[A.join(" ")];C===void 0&&(C=O[A.join(".")]),C!==void 0&&(A=C)}return A},X.prototype._decodeTime=function(J,O){let F=J.raw().toString(),A,W,H,E,T,D;if(O==="gentime")A=F.slice(0,4)|0,W=F.slice(4,6)|0,H=F.slice(6,8)|0,E=F.slice(8,10)|0,T=F.slice(10,12)|0,D=F.slice(12,14)|0;else if(O==="utctime")A=F.slice(0,2)|0,W=F.slice(2,4)|0,H=F.slice(4,6)|0,E=F.slice(6,8)|0,T=F.slice(8,10)|0,D=F.slice(10,12)|0,A<70?A=2000+A:A=1900+A;else return J.error("Decoding "+O+" time is not supported yet");return Date.UTC(A,W-1,H,E,T,D,0)},X.prototype._decodeNull=function(){return null},X.prototype._decodeBool=function(J){let O=J.readUInt8();return J.isError(O)?O:O!==0},X.prototype._decodeInt=function(J,O){let F=J.raw(),A=new Y(F);return O&&(A=O[A.toString(10)]||A),A},X.prototype._use=function(J,O){return typeof J=="function"&&(J=J(O)),J._getDecoder("der").tree};function K(J,O){let F=J.readUInt8(O);if(J.isError(F))return F;let A=V.tagClass[F>>6],W=(F&32)===0;if((F&31)===31){let E=F;for(F=0;(E&128)===128;){if(E=J.readUInt8(O),J.isError(E))return E;F<<=7,F|=E&127}}else F&=31;let H=V.tag[F];return{cls:A,primitive:W,tag:F,tagStr:H}}function I(J,O,F){let A=J.readUInt8(F);if(J.isError(A))return A;if(!O&&A===128)return null;if((A&128)===0)return A;let W=A&127;if(W>4)return J.error("length octect is too long");A=0;for(let H=0;H<W;H++){A<<=8;let E=J.readUInt8(F);if(J.isError(E))return E;A|=E}return A}}}),zY=P$({"node_modules/asn1.js/lib/asn1/decoders/pem.js"(bZ,$){var Q=v$(),Y=HY().Buffer,Z=PY();function G(V){Z.call(this,V),this.enc="pem"}Q(G,Z),$.exports=G,G.prototype.decode=function(V,U){let X=V.toString().split(/[\r\n]+/g),K=U.label.toUpperCase(),I=/^-----(BEGIN|END) ([^-]+)-----$/,J=-1,O=-1;for(let W=0;W<X.length;W++){let H=X[W].match(I);if(H!==null&&H[2]===K)if(J===-1){if(H[1]!=="BEGIN")break;J=W}else{if(H[1]!=="END")break;O=W;break}}if(J===-1||O===-1)throw new Error("PEM section not found for: "+K);let F=X.slice(J+1,O).join("");F.replace(/[^a-z0-9+/=]+/gi,"");let A=Y.from(F,"base64");return Z.prototype.decode.call(this,A,U)}}}),MY=P$({"node_modules/asn1.js/lib/asn1/decoders/index.js"(bZ){var $=bZ;$.der=PY(),$.pem=zY()}}),SY=P$({"node_modules/asn1.js/lib/asn1/api.js"(bZ){var $=RY(),Q=MY(),Y=v$(),Z=bZ;Z.define=function(V,U){return new G(V,U)};function G(V,U){this.name=V,this.body=U,this.decoders={},this.encoders={}}G.prototype._createNamed=function(V){let U=this.name;function X(K){this._initNamed(K,U)}return Y(X,V),X.prototype._initNamed=function(K,I){V.call(this,K,I)},new X(this)},G.prototype._getDecoder=function(V){return V=V||"der",this.decoders.hasOwnProperty(V)||(this.decoders[V]=this._createNamed(Q[V])),this.decoders[V]},G.prototype.decode=function(V,U,X){return this._getDecoder(U).decode(V,X)},G.prototype._getEncoder=function(V){return V=V||"der",this.encoders.hasOwnProperty(V)||(this.encoders[V]=this._createNamed($[V])),this.encoders[V]},G.prototype.encode=function(V,U,X){return this._getEncoder(U).encode(V,X)}}}),vY=P$({"node_modules/asn1.js/lib/asn1/base/index.js"(bZ){var $=bZ;$.Reporter=EY().Reporter,$.DecoderBuffer=A$().DecoderBuffer,$.EncoderBuffer=A$().EncoderBuffer,$.Node=TY()}}),qY=P$({"node_modules/asn1.js/lib/asn1/constants/index.js"(bZ){var $=bZ;$._reverse=function(Q){let Y={};return Object.keys(Q).forEach(function(Z){(Z|0)==Z&&(Z=Z|0);let G=Q[Z];Y[G]=Z}),Y},$.der=DY()}}),jY=P$({"node_modules/asn1.js/lib/asn1.js"(bZ){var $=bZ;$.bignum=WY(),$.define=SY().define,$.base=vY(),$.constants=qY(),$.decoders=MY(),$.encoders=RY()}}),kY=P$({"node_modules/parse-asn1/certificate.js"(bZ,$){var Q=jY(),Y=Q.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),Z=Q.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),G=Q.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),V=Q.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(G),this.key("subjectPublicKey").bitstr())}),U=Q.define("RelativeDistinguishedName",function(){this.setof(Z)}),X=Q.define("RDNSequence",function(){this.seqof(U)}),K=Q.define("Name",function(){this.choice({rdnSequence:this.use(X)})}),I=Q.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Y),this.key("notAfter").use(Y))}),J=Q.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),O=Q.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(G),this.key("issuer").use(K),this.key("validity").use(I),this.key("subject").use(K),this.key("subjectPublicKeyInfo").use(V),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(J).optional())}),F=Q.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(O),this.key("signatureAlgorithm").use(G),this.key("signatureValue").bitstr())});$.exports=F}}),gY=P$({"node_modules/parse-asn1/asn1.js"(bZ){var $=jY();bZ.certificate=kY();var Q=$.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});bZ.RSAPrivateKey=Q;var Y=$.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});bZ.RSAPublicKey=Y;var Z=$.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(G),this.key("subjectPublicKey").bitstr())});bZ.PublicKey=Z;var G=$.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),V=$.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(G),this.key("subjectPrivateKey").octstr())});bZ.PrivateKey=V;var U=$.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});bZ.EncryptedPrivateKey=U;var X=$.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});bZ.DSAPrivateKey=X,bZ.DSAparam=$.define("DSAparam",function(){this.int()});var K=$.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(I),this.key("publicKey").optional().explicit(1).bitstr())});bZ.ECPrivateKey=K;var I=$.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});bZ.signature=$.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}}),NY=P$({"node_modules/parse-asn1/aesid.json"(bZ,$){$.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}}}),xY=P$({"node_modules/parse-asn1/fixProc.js"(bZ,$){var Q=/Proc-Type: 4,ENCRYPTED[\n\r]+DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)[\n\r]+([0-9A-z\n\r+/=]+)[\n\r]+/m,Y=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,Z=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,G=LQ(),V=zQ(),U=M$().Buffer;$.exports=function(X,K){var I=X.toString(),J=I.match(Q),O;if(J){var F="aes"+J[1],A=U.from(J[2],"hex"),W=U.from(J[3].replace(/[\r\n]/g,""),"base64"),H=G(K,A.slice(0,8),parseInt(J[1],10)).key,E=[],T=V.createDecipheriv(F,H,A);E.push(T.update(W)),E.push(T.final()),O=U.concat(E)}else{var D=I.match(Z);O=U.from(D[2].replace(/[\r\n]/g,""),"base64")}var C=I.match(Y)[1];return{tag:C,data:O}}}}),_Y=P$({"node_modules/parse-asn1/index.js"(bZ,$){var Q=gY(),Y=NY(),Z=xY(),G=zQ(),V=r$(),U=M$().Buffer;$.exports=X;function X(I){var J;typeof I=="object"&&!U.isBuffer(I)&&(J=I.passphrase,I=I.key),typeof I=="string"&&(I=U.from(I));var O=Z(I,J),F=O.tag,A=O.data,W,H;switch(F){case"CERTIFICATE":H=Q.certificate.decode(A,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(H||(H=Q.PublicKey.decode(A,"der")),W=H.algorithm.algorithm.join("."),W){case"1.2.840.113549.1.1.1":return Q.RSAPublicKey.decode(H.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return H.subjectPrivateKey=H.subjectPublicKey,{type:"ec",data:H};case"1.2.840.10040.4.1":return H.algorithm.params.pub_key=Q.DSAparam.decode(H.subjectPublicKey.data,"der"),{type:"dsa",data:H.algorithm.params};default:throw new Error("unknown key id "+W)}case"ENCRYPTED PRIVATE KEY":A=Q.EncryptedPrivateKey.decode(A,"der"),A=K(A,J);case"PRIVATE KEY":switch(H=Q.PrivateKey.decode(A,"der"),W=H.algorithm.algorithm.join("."),W){case"1.2.840.113549.1.1.1":return Q.RSAPrivateKey.decode(H.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:H.algorithm.curve,privateKey:Q.ECPrivateKey.decode(H.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return H.algorithm.params.priv_key=Q.DSAparam.decode(H.subjectPrivateKey,"der"),{type:"dsa",params:H.algorithm.params};default:throw new Error("unknown key id "+W)}case"RSA PUBLIC KEY":return Q.RSAPublicKey.decode(A,"der");case"RSA PRIVATE KEY":return Q.RSAPrivateKey.decode(A,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:Q.DSAPrivateKey.decode(A,"der")};case"EC PRIVATE KEY":return A=Q.ECPrivateKey.decode(A,"der"),{curve:A.parameters.value,privateKey:A.privateKey};default:throw new Error("unknown key type "+F)}}X.signature=Q.signature;function K(I,J){var O=I.algorithm.decrypt.kde.kdeparams.salt,F=parseInt(I.algorithm.decrypt.kde.kdeparams.iters.toString(),10),A=Y[I.algorithm.decrypt.cipher.algo.join(".")],W=I.algorithm.decrypt.cipher.iv,H=I.subjectPrivateKey,E=parseInt(A.split("-")[1],10)/8,T=V.pbkdf2Sync(J,O,F,E,"sha1"),D=G.createDecipheriv(A,T,W),C=[];return C.push(D.update(H)),C.push(D.final()),U.concat(C)}}}),BY=P$({"node_modules/browserify-sign/browser/curves.json"(bZ,$){$.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}}}),yY=P$({"node_modules/browserify-sign/browser/sign.js"(bZ,$){var Q=M$().Buffer,Y=l$(),Z=wQ(),G=AY().ec,V=yQ(),U=_Y(),X=BY();function K(T,D,C,L,R){var P=U(D);if(P.curve){if(L!=="ecdsa"&&L!=="ecdsa/rsa")throw new Error("wrong private key type");return I(T,P)}else if(P.type==="dsa"){if(L!=="dsa")throw new Error("wrong private key type");return J(T,P,C)}else if(L!=="rsa"&&L!=="ecdsa/rsa")throw new Error("wrong private key type");T=Q.concat([R,T]);for(var z=P.modulus.byteLength(),M=[0,1];T.length+M.length+1<z;)M.push(255);M.push(0);for(var S=-1;++S<T.length;)M.push(T[S]);var v=Z(M,P);return v}function I(T,D){var C=X[D.curve.join(".")];if(!C)throw new Error("unknown curve "+D.curve.join("."));var L=new G(C),R=L.keyFromPrivate(D.privateKey),P=R.sign(T);return Q.from(P.toDER())}function J(T,D,C){for(var L=D.params.priv_key,R=D.params.p,P=D.params.q,z=D.params.g,M=new V(0),S,v=A(T,P).mod(P),q=!1,j=F(L,P,T,C);q===!1;)S=H(P,j,C),M=E(z,S,R,P),q=S.invm(P).imul(v.add(L.mul(M))).mod(P),q.cmpn(0)===0&&(q=!1,M=new V(0));return O(M,q)}function O(T,D){T=T.toArray(),D=D.toArray(),T[0]&128&&(T=[0].concat(T)),D[0]&128&&(D=[0].concat(D));var C=T.length+D.length+4,L=[48,C,2,T.length];return L=L.concat(T,[2,D.length],D),Q.from(L)}function F(T,D,C,L){if(T=Q.from(T.toArray()),T.length<D.byteLength()){var R=Q.alloc(D.byteLength()-T.length);T=Q.concat([R,T])}var P=C.length,z=W(C,D),M=Q.alloc(P);M.fill(1);var S=Q.alloc(P);return S=Y(L,S).update(M).update(Q.from([0])).update(T).update(z).digest(),M=Y(L,S).update(M).digest(),S=Y(L,S).update(M).update(Q.from([1])).update(T).update(z).digest(),M=Y(L,S).update(M).digest(),{k:S,v:M}}function A(T,D){var C=new V(T),L=(T.length<<3)-D.bitLength();return L>0&&C.ishrn(L),C}function W(T,D){T=A(T,D),T=T.mod(D);var C=Q.from(T.toArray());if(C.length<D.byteLength()){var L=Q.alloc(D.byteLength()-C.length);C=Q.concat([L,C])}return C}function H(T,D,C){var L,R;do{for(L=Q.alloc(0);L.length*8<T.bitLength();)D.v=Y(C,D.k).update(D.v).digest(),L=Q.concat([L,D.v]);R=A(L,T),D.k=Y(C,D.k).update(D.v).update(Q.from([0])).digest(),D.v=Y(C,D.k).update(D.v).digest()}while(R.cmp(T)!==-1);return R}function E(T,D,C,L){return T.toRed(V.mont(C)).redPow(D).fromRed().mod(L)}$.exports=K,$.exports.getKey=F,$.exports.makeKey=H}}),wY=P$({"node_modules/browserify-sign/browser/verify.js"(bZ,$){var Q=M$().Buffer,Y=yQ(),Z=AY().ec,G=_Y(),V=BY();function U(J,O,F,A,W){var H=G(F);if(H.type==="ec"){if(A!=="ecdsa"&&A!=="ecdsa/rsa")throw new Error("wrong public key type");return X(J,O,H)}else if(H.type==="dsa"){if(A!=="dsa")throw new Error("wrong public key type");return K(J,O,H)}else if(A!=="rsa"&&A!=="ecdsa/rsa")throw new Error("wrong public key type");O=Q.concat([W,O]);for(var E=H.modulus.byteLength(),T=[1],D=0;O.length+T.length+2<E;)T.push(255),D++;T.push(0);for(var C=-1;++C<O.length;)T.push(O[C]);T=Q.from(T);var L=Y.mont(H.modulus);J=new Y(J).toRed(L),J=J.redPow(new Y(H.publicExponent)),J=Q.from(J.fromRed().toArray());var R=D<8?1:0;for(E=Math.min(J.length,T.length),J.length!==T.length&&(R=1),C=-1;++C<E;)R|=J[C]^T[C];return R===0}function X(J,O,F){var A=V[F.data.algorithm.curve.join(".")];if(!A)throw new Error("unknown curve "+F.data.algorithm.curve.join("."));var W=new Z(A),H=F.data.subjectPrivateKey.data;return W.verify(O,J,H)}function K(J,O,F){var A=F.data.p,W=F.data.q,H=F.data.g,E=F.data.pub_key,T=G.signature.decode(J,"der"),D=T.s,C=T.r;I(D,W),I(C,W);var L=Y.mont(A),R=D.invm(W),P=H.toRed(L).redPow(new Y(O).mul(R).mod(W)).fromRed().mul(E.toRed(L).redPow(C.mul(R).mod(W)).fromRed()).mod(A).mod(W);return P.cmp(C)===0}function I(J,O){if(J.cmpn(0)<=0)throw new Error("invalid sig");if(J.cmp(O)>=O)throw new Error("invalid sig")}$.exports=U}}),fY=P$({"node_modules/browserify-sign/browser/index.js"(bZ,$){var Q=M$().Buffer,Y=h$(),Z=L$("readable-stream"),G=v$(),V=yY(),U=wY(),X=o$();Object.keys(X).forEach(function(F){X[F].id=Q.from(X[F].id,"hex"),X[F.toLowerCase()]=X[F]});function K(F){Z.Writable.call(this);var A=X[F];if(!A)throw new Error("Unknown message digest");this._hashType=A.hash,this._hash=Y(A.hash),this._tag=A.id,this._signType=A.sign}G(K,Z.Writable),K.prototype._write=function(F,A,W){this._hash.update(F),W()},K.prototype.update=function(F,A){return typeof F=="string"&&(F=Q.from(F,A)),this._hash.update(F),this},K.prototype.sign=function(F,A){this.end();var W=this._hash.digest(),H=V(W,F,this._hashType,this._signType,this._tag);return A?H.toString(A):H};function I(F){Z.Writable.call(this);var A=X[F];if(!A)throw new Error("Unknown message digest");this._hash=Y(A.hash),this._tag=A.id,this._signType=A.sign}G(I,Z.Writable),I.prototype._write=function(F,A,W){this._hash.update(F),W()},I.prototype.update=function(F,A){return typeof F=="string"&&(F=Q.from(F,A)),this._hash.update(F),this},I.prototype.verify=function(F,A,W){typeof A=="string"&&(A=Q.from(A,W)),this.end();var H=this._hash.digest();return U(A,H,F,this._signType,this._tag)};function J(F){return new K(F)}function O(F){return new I(F)}$.exports={Sign:J,Verify:O,createSign:J,createVerify:O}}}),pY=P$({"node_modules/create-ecdh/node_modules/bn.js/lib/bn.js"(bZ,$){(function(Q,Y){function Z(q,j){if(!q)throw new Error(j||"Assertion failed")}function G(q,j){q.super_=j;var k=function(){};k.prototype=j.prototype,q.prototype=new k,q.prototype.constructor=q}function V(q,j,k){if(V.isBN(q))return q;this.negative=0,this.words=null,this.length=0,this.red=null,q!==null&&((j==="le"||j==="be")&&(k=j,j=10),this._init(q||0,j||10,k||"be"))}typeof Q=="object"?Q.exports=V:Y.BN=V,V.BN=V,V.wordSize=26;var U;try{typeof window<"u"&&typeof window.Buffer<"u"?U=window.Buffer:U=L$("buffer").Buffer}catch{}V.isBN=function(q){return q instanceof V?!0:q!==null&&typeof q=="object"&&q.constructor.wordSize===V.wordSize&&Array.isArray(q.words)},V.max=function(q,j){return q.cmp(j)>0?q:j},V.min=function(q,j){return q.cmp(j)<0?q:j},V.prototype._init=function(q,j,k){if(typeof q=="number")return this._initNumber(q,j,k);if(typeof q=="object")return this._initArray(q,j,k);j==="hex"&&(j=16),Z(j===(j|0)&&j>=2&&j<=36),q=q.toString().replace(/\s+/g,"");var g=0;q[0]==="-"&&(g++,this.negative=1),g<q.length&&(j===16?this._parseHex(q,g,k):(this._parseBase(q,j,g),k==="le"&&this._initArray(this.toArray(),j,k)))},V.prototype._initNumber=function(q,j,k){q<0&&(this.negative=1,q=-q),q<67108864?(this.words=[q&67108863],this.length=1):q<4503599627370496?(this.words=[q&67108863,q/67108864&67108863],this.length=2):(Z(q<9007199254740992),this.words=[q&67108863,q/67108864&67108863,1],this.length=3),k==="le"&&this._initArray(this.toArray(),j,k)},V.prototype._initArray=function(q,j,k){if(Z(typeof q.length=="number"),q.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(q.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var N,x,_=0;if(k==="be")for(g=q.length-1,N=0;g>=0;g-=3)x=q[g]|q[g-1]<<8|q[g-2]<<16,this.words[N]|=x<<_&67108863,this.words[N+1]=x>>>26-_&67108863,_+=24,_>=26&&(_-=26,N++);else if(k==="le")for(g=0,N=0;g<q.length;g+=3)x=q[g]|q[g+1]<<8|q[g+2]<<16,this.words[N]|=x<<_&67108863,this.words[N+1]=x>>>26-_&67108863,_+=24,_>=26&&(_-=26,N++);return this.strip()};function X(q,j){var k=q.charCodeAt(j);return k>=65&&k<=70?k-55:k>=97&&k<=102?k-87:k-48&15}function K(q,j,k){var g=X(q,k);return k-1>=j&&(g|=X(q,k-1)<<4),g}V.prototype._parseHex=function(q,j,k){this.length=Math.ceil((q.length-j)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var N=0,x=0,_;if(k==="be")for(g=q.length-1;g>=j;g-=2)_=K(q,j,g)<<N,this.words[x]|=_&67108863,N>=18?(N-=18,x+=1,this.words[x]|=_>>>26):N+=8;else{var B=q.length-j;for(g=B%2===0?j+1:j;g<q.length;g+=2)_=K(q,j,g)<<N,this.words[x]|=_&67108863,N>=18?(N-=18,x+=1,this.words[x]|=_>>>26):N+=8}this.strip()};function I(q,j,k,g){for(var N=0,x=Math.min(q.length,k),_=j;_<x;_++){var B=q.charCodeAt(_)-48;N*=g,B>=49?N+=B-49+10:B>=17?N+=B-17+10:N+=B}return N}V.prototype._parseBase=function(q,j,k){this.words=[0],this.length=1;for(var g=0,N=1;N<=67108863;N*=j)g++;g--,N=N/j|0;for(var x=q.length-k,_=x%g,B=Math.min(x,x-_)+k,y=0,w=k;w<B;w+=g)y=I(q,w,w+g,j),this.imuln(N),this.words[0]+y<67108864?this.words[0]+=y:this._iaddn(y);if(_!==0){var f=1;for(y=I(q,w,q.length,j),w=0;w<_;w++)f*=j;this.imuln(f),this.words[0]+y<67108864?this.words[0]+=y:this._iaddn(y)}this.strip()},V.prototype.copy=function(q){q.words=new Array(this.length);for(var j=0;j<this.length;j++)q.words[j]=this.words[j];q.length=this.length,q.negative=this.negative,q.red=this.red},V.prototype.clone=function(){var q=new V(null);return this.copy(q),q},V.prototype._expand=function(q){for(;this.length<q;)this.words[this.length++]=0;return this},V.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},V.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},V.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var J=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],O=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];V.prototype.toString=function(q,j){q=q||10,j=j|0||1;var k;if(q===16||q==="hex"){k="";for(var g=0,N=0,x=0;x<this.length;x++){var _=this.words[x],B=((_<<g|N)&16777215).toString(16);N=_>>>24-g&16777215,N!==0||x!==this.length-1?k=J[6-B.length]+B+k:k=B+k,g+=2,g>=26&&(g-=26,x--)}for(N!==0&&(k=N.toString(16)+k);k.length%j!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(q===(q|0)&&q>=2&&q<=36){var y=O[q],w=F[q];k="";var f=this.clone();for(f.negative=0;!f.isZero();){var p=f.modn(w).toString(q);f=f.idivn(w),f.isZero()?k=p+k:k=J[y-p.length]+p+k}for(this.isZero()&&(k="0"+k);k.length%j!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}Z(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var q=this.words[0];return this.length===2?q+=this.words[1]*67108864:this.length===3&&this.words[2]===1?q+=4503599627370496+this.words[1]*67108864:this.length>2&&Z(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-q:q},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(q,j){return Z(typeof U<"u"),this.toArrayLike(U,q,j)},V.prototype.toArray=function(q,j){return this.toArrayLike(Array,q,j)},V.prototype.toArrayLike=function(q,j,k){var g=this.byteLength(),N=k||Math.max(1,g);Z(g<=N,"byte array longer than desired length"),Z(N>0,"Requested array length <= 0"),this.strip();var x=j==="le",_=new q(N),B,y,w=this.clone();if(x){for(y=0;!w.isZero();y++)B=w.andln(255),w.iushrn(8),_[y]=B;for(;y<N;y++)_[y]=0}else{for(y=0;y<N-g;y++)_[y]=0;for(y=0;!w.isZero();y++)B=w.andln(255),w.iushrn(8),_[N-y-1]=B}return _},Math.clz32?V.prototype._countBits=function(q){return 32-Math.clz32(q)}:V.prototype._countBits=function(q){var j=q,k=0;return j>=4096&&(k+=13,j>>>=13),j>=64&&(k+=7,j>>>=7),j>=8&&(k+=4,j>>>=4),j>=2&&(k+=2,j>>>=2),k+j},V.prototype._zeroBits=function(q){if(q===0)return 26;var j=q,k=0;return(j&8191)===0&&(k+=13,j>>>=13),(j&127)===0&&(k+=7,j>>>=7),(j&15)===0&&(k+=4,j>>>=4),(j&3)===0&&(k+=2,j>>>=2),(j&1)===0&&k++,k},V.prototype.bitLength=function(){var q=this.words[this.length-1],j=this._countBits(q);return(this.length-1)*26+j};function A(q){for(var j=new Array(q.bitLength()),k=0;k<j.length;k++){var g=k/26|0,N=k%26;j[k]=(q.words[g]&1<<N)>>>N}return j}V.prototype.zeroBits=function(){if(this.isZero())return 0;for(var q=0,j=0;j<this.length;j++){var k=this._zeroBits(this.words[j]);if(q+=k,k!==26)break}return q},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(q){return this.negative!==0?this.abs().inotn(q).iaddn(1):this.clone()},V.prototype.fromTwos=function(q){return this.testn(q-1)?this.notn(q).iaddn(1).ineg():this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},V.prototype.iuor=function(q){for(;this.length<q.length;)this.words[this.length++]=0;for(var j=0;j<q.length;j++)this.words[j]=this.words[j]|q.words[j];return this.strip()},V.prototype.ior=function(q){return Z((this.negative|q.negative)===0),this.iuor(q)},V.prototype.or=function(q){return this.length>q.length?this.clone().ior(q):q.clone().ior(this)},V.prototype.uor=function(q){return this.length>q.length?this.clone().iuor(q):q.clone().iuor(this)},V.prototype.iuand=function(q){var j;this.length>q.length?j=q:j=this;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]&q.words[k];return this.length=j.length,this.strip()},V.prototype.iand=function(q){return Z((this.negative|q.negative)===0),this.iuand(q)},V.prototype.and=function(q){return this.length>q.length?this.clone().iand(q):q.clone().iand(this)},V.prototype.uand=function(q){return this.length>q.length?this.clone().iuand(q):q.clone().iuand(this)},V.prototype.iuxor=function(q){var j,k;this.length>q.length?(j=this,k=q):(j=q,k=this);for(var g=0;g<k.length;g++)this.words[g]=j.words[g]^k.words[g];if(this!==j)for(;g<j.length;g++)this.words[g]=j.words[g];return this.length=j.length,this.strip()},V.prototype.ixor=function(q){return Z((this.negative|q.negative)===0),this.iuxor(q)},V.prototype.xor=function(q){return this.length>q.length?this.clone().ixor(q):q.clone().ixor(this)},V.prototype.uxor=function(q){return this.length>q.length?this.clone().iuxor(q):q.clone().iuxor(this)},V.prototype.inotn=function(q){Z(typeof q=="number"&&q>=0);var j=Math.ceil(q/26)|0,k=q%26;this._expand(j),k>0&&j--;for(var g=0;g<j;g++)this.words[g]=~this.words[g]&67108863;return k>0&&(this.words[g]=~this.words[g]&67108863>>26-k),this.strip()},V.prototype.notn=function(q){return this.clone().inotn(q)},V.prototype.setn=function(q,j){Z(typeof q=="number"&&q>=0);var k=q/26|0,g=q%26;return this._expand(k+1),j?this.words[k]=this.words[k]|1<<g:this.words[k]=this.words[k]&~(1<<g),this.strip()},V.prototype.iadd=function(q){var j;if(this.negative!==0&&q.negative===0)return this.negative=0,j=this.isub(q),this.negative^=1,this._normSign();if(this.negative===0&&q.negative!==0)return q.negative=0,j=this.isub(q),q.negative=1,j._normSign();var k,g;this.length>q.length?(k=this,g=q):(k=q,g=this);for(var N=0,x=0;x<g.length;x++)j=(k.words[x]|0)+(g.words[x]|0)+N,this.words[x]=j&67108863,N=j>>>26;for(;N!==0&&x<k.length;x++)j=(k.words[x]|0)+N,this.words[x]=j&67108863,N=j>>>26;if(this.length=k.length,N!==0)this.words[this.length]=N,this.length++;else if(k!==this)for(;x<k.length;x++)this.words[x]=k.words[x];return this},V.prototype.add=function(q){var j;return q.negative!==0&&this.negative===0?(q.negative=0,j=this.sub(q),q.negative^=1,j):q.negative===0&&this.negative!==0?(this.negative=0,j=q.sub(this),this.negative=1,j):this.length>q.length?this.clone().iadd(q):q.clone().iadd(this)},V.prototype.isub=function(q){if(q.negative!==0){q.negative=0;var j=this.iadd(q);return q.negative=1,j._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(q),this.negative=1,this._normSign();var k=this.cmp(q);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,N;k>0?(g=this,N=q):(g=q,N=this);for(var x=0,_=0;_<N.length;_++)j=(g.words[_]|0)-(N.words[_]|0)+x,x=j>>26,this.words[_]=j&67108863;for(;x!==0&&_<g.length;_++)j=(g.words[_]|0)+x,x=j>>26,this.words[_]=j&67108863;if(x===0&&_<g.length&&g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this.length=Math.max(this.length,_),g!==this&&(this.negative=1),this.strip()},V.prototype.sub=function(q){return this.clone().isub(q)};function W(q,j,k){k.negative=j.negative^q.negative;var g=q.length+j.length|0;k.length=g,g=g-1|0;var N=q.words[0]|0,x=j.words[0]|0,_=N*x,B=_&67108863,y=_/67108864|0;k.words[0]=B;for(var w=1;w<g;w++){for(var f=y>>>26,p=y&67108863,c=Math.min(w,j.length-1),h=Math.max(0,w-q.length+1);h<=c;h++){var d=w-h|0;N=q.words[d]|0,x=j.words[h]|0,_=N*x+p,f+=_/67108864|0,p=_&67108863}k.words[w]=p|0,y=f|0}return y!==0?k.words[w]=y|0:k.length--,k.strip()}var H=function(q,j,k){var g=q.words,N=j.words,x=k.words,_=0,B,y,w,f=g[0]|0,p=f&8191,c=f>>>13,h=g[1]|0,d=h&8191,b=h>>>13,l=g[2]|0,o=l&8191,u=l>>>13,n=g[3]|0,s=n&8191,t=n>>>13,m=g[4]|0,a=m&8191,r=m>>>13,e=g[5]|0,i=e&8191,$0=e>>>13,Q0=g[6]|0,Y0=Q0&8191,Z0=Q0>>>13,G0=g[7]|0,V0=G0&8191,U0=G0>>>13,X0=g[8]|0,K0=X0&8191,I0=X0>>>13,J0=g[9]|0,O0=J0&8191,F0=J0>>>13,A0=N[0]|0,W0=A0&8191,H0=A0>>>13,E0=N[1]|0,T0=E0&8191,D0=E0>>>13,C0=N[2]|0,L0=C0&8191,R0=C0>>>13,P0=N[3]|0,z0=P0&8191,M0=P0>>>13,S0=N[4]|0,v0=S0&8191,q0=S0>>>13,j0=N[5]|0,k0=j0&8191,g0=j0>>>13,N0=N[6]|0,x0=N0&8191,_0=N0>>>13,B0=N[7]|0,y0=B0&8191,w0=B0>>>13,f0=N[8]|0,p0=f0&8191,c0=f0>>>13,h0=N[9]|0,d0=h0&8191,b0=h0>>>13;k.negative=q.negative^j.negative,k.length=19,B=Math.imul(p,W0),y=Math.imul(p,H0),y=y+Math.imul(c,W0)|0,w=Math.imul(c,H0);var l0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(l0>>>26)|0,l0&=67108863,B=Math.imul(d,W0),y=Math.imul(d,H0),y=y+Math.imul(b,W0)|0,w=Math.imul(b,H0),B=B+Math.imul(p,T0)|0,y=y+Math.imul(p,D0)|0,y=y+Math.imul(c,T0)|0,w=w+Math.imul(c,D0)|0;var o0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(o0>>>26)|0,o0&=67108863,B=Math.imul(o,W0),y=Math.imul(o,H0),y=y+Math.imul(u,W0)|0,w=Math.imul(u,H0),B=B+Math.imul(d,T0)|0,y=y+Math.imul(d,D0)|0,y=y+Math.imul(b,T0)|0,w=w+Math.imul(b,D0)|0,B=B+Math.imul(p,L0)|0,y=y+Math.imul(p,R0)|0,y=y+Math.imul(c,L0)|0,w=w+Math.imul(c,R0)|0;var u0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(u0>>>26)|0,u0&=67108863,B=Math.imul(s,W0),y=Math.imul(s,H0),y=y+Math.imul(t,W0)|0,w=Math.imul(t,H0),B=B+Math.imul(o,T0)|0,y=y+Math.imul(o,D0)|0,y=y+Math.imul(u,T0)|0,w=w+Math.imul(u,D0)|0,B=B+Math.imul(d,L0)|0,y=y+Math.imul(d,R0)|0,y=y+Math.imul(b,L0)|0,w=w+Math.imul(b,R0)|0,B=B+Math.imul(p,z0)|0,y=y+Math.imul(p,M0)|0,y=y+Math.imul(c,z0)|0,w=w+Math.imul(c,M0)|0;var n0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(n0>>>26)|0,n0&=67108863,B=Math.imul(a,W0),y=Math.imul(a,H0),y=y+Math.imul(r,W0)|0,w=Math.imul(r,H0),B=B+Math.imul(s,T0)|0,y=y+Math.imul(s,D0)|0,y=y+Math.imul(t,T0)|0,w=w+Math.imul(t,D0)|0,B=B+Math.imul(o,L0)|0,y=y+Math.imul(o,R0)|0,y=y+Math.imul(u,L0)|0,w=w+Math.imul(u,R0)|0,B=B+Math.imul(d,z0)|0,y=y+Math.imul(d,M0)|0,y=y+Math.imul(b,z0)|0,w=w+Math.imul(b,M0)|0,B=B+Math.imul(p,v0)|0,y=y+Math.imul(p,q0)|0,y=y+Math.imul(c,v0)|0,w=w+Math.imul(c,q0)|0;var s0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(s0>>>26)|0,s0&=67108863,B=Math.imul(i,W0),y=Math.imul(i,H0),y=y+Math.imul($0,W0)|0,w=Math.imul($0,H0),B=B+Math.imul(a,T0)|0,y=y+Math.imul(a,D0)|0,y=y+Math.imul(r,T0)|0,w=w+Math.imul(r,D0)|0,B=B+Math.imul(s,L0)|0,y=y+Math.imul(s,R0)|0,y=y+Math.imul(t,L0)|0,w=w+Math.imul(t,R0)|0,B=B+Math.imul(o,z0)|0,y=y+Math.imul(o,M0)|0,y=y+Math.imul(u,z0)|0,w=w+Math.imul(u,M0)|0,B=B+Math.imul(d,v0)|0,y=y+Math.imul(d,q0)|0,y=y+Math.imul(b,v0)|0,w=w+Math.imul(b,q0)|0,B=B+Math.imul(p,k0)|0,y=y+Math.imul(p,g0)|0,y=y+Math.imul(c,k0)|0,w=w+Math.imul(c,g0)|0;var t0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(t0>>>26)|0,t0&=67108863,B=Math.imul(Y0,W0),y=Math.imul(Y0,H0),y=y+Math.imul(Z0,W0)|0,w=Math.imul(Z0,H0),B=B+Math.imul(i,T0)|0,y=y+Math.imul(i,D0)|0,y=y+Math.imul($0,T0)|0,w=w+Math.imul($0,D0)|0,B=B+Math.imul(a,L0)|0,y=y+Math.imul(a,R0)|0,y=y+Math.imul(r,L0)|0,w=w+Math.imul(r,R0)|0,B=B+Math.imul(s,z0)|0,y=y+Math.imul(s,M0)|0,y=y+Math.imul(t,z0)|0,w=w+Math.imul(t,M0)|0,B=B+Math.imul(o,v0)|0,y=y+Math.imul(o,q0)|0,y=y+Math.imul(u,v0)|0,w=w+Math.imul(u,q0)|0,B=B+Math.imul(d,k0)|0,y=y+Math.imul(d,g0)|0,y=y+Math.imul(b,k0)|0,w=w+Math.imul(b,g0)|0,B=B+Math.imul(p,x0)|0,y=y+Math.imul(p,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,_0)|0;var m0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(m0>>>26)|0,m0&=67108863,B=Math.imul(V0,W0),y=Math.imul(V0,H0),y=y+Math.imul(U0,W0)|0,w=Math.imul(U0,H0),B=B+Math.imul(Y0,T0)|0,y=y+Math.imul(Y0,D0)|0,y=y+Math.imul(Z0,T0)|0,w=w+Math.imul(Z0,D0)|0,B=B+Math.imul(i,L0)|0,y=y+Math.imul(i,R0)|0,y=y+Math.imul($0,L0)|0,w=w+Math.imul($0,R0)|0,B=B+Math.imul(a,z0)|0,y=y+Math.imul(a,M0)|0,y=y+Math.imul(r,z0)|0,w=w+Math.imul(r,M0)|0,B=B+Math.imul(s,v0)|0,y=y+Math.imul(s,q0)|0,y=y+Math.imul(t,v0)|0,w=w+Math.imul(t,q0)|0,B=B+Math.imul(o,k0)|0,y=y+Math.imul(o,g0)|0,y=y+Math.imul(u,k0)|0,w=w+Math.imul(u,g0)|0,B=B+Math.imul(d,x0)|0,y=y+Math.imul(d,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,_0)|0,B=B+Math.imul(p,y0)|0,y=y+Math.imul(p,w0)|0,y=y+Math.imul(c,y0)|0,w=w+Math.imul(c,w0)|0;var a0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(a0>>>26)|0,a0&=67108863,B=Math.imul(K0,W0),y=Math.imul(K0,H0),y=y+Math.imul(I0,W0)|0,w=Math.imul(I0,H0),B=B+Math.imul(V0,T0)|0,y=y+Math.imul(V0,D0)|0,y=y+Math.imul(U0,T0)|0,w=w+Math.imul(U0,D0)|0,B=B+Math.imul(Y0,L0)|0,y=y+Math.imul(Y0,R0)|0,y=y+Math.imul(Z0,L0)|0,w=w+Math.imul(Z0,R0)|0,B=B+Math.imul(i,z0)|0,y=y+Math.imul(i,M0)|0,y=y+Math.imul($0,z0)|0,w=w+Math.imul($0,M0)|0,B=B+Math.imul(a,v0)|0,y=y+Math.imul(a,q0)|0,y=y+Math.imul(r,v0)|0,w=w+Math.imul(r,q0)|0,B=B+Math.imul(s,k0)|0,y=y+Math.imul(s,g0)|0,y=y+Math.imul(t,k0)|0,w=w+Math.imul(t,g0)|0,B=B+Math.imul(o,x0)|0,y=y+Math.imul(o,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,_0)|0,B=B+Math.imul(d,y0)|0,y=y+Math.imul(d,w0)|0,y=y+Math.imul(b,y0)|0,w=w+Math.imul(b,w0)|0,B=B+Math.imul(p,p0)|0,y=y+Math.imul(p,c0)|0,y=y+Math.imul(c,p0)|0,w=w+Math.imul(c,c0)|0;var r0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(r0>>>26)|0,r0&=67108863,B=Math.imul(O0,W0),y=Math.imul(O0,H0),y=y+Math.imul(F0,W0)|0,w=Math.imul(F0,H0),B=B+Math.imul(K0,T0)|0,y=y+Math.imul(K0,D0)|0,y=y+Math.imul(I0,T0)|0,w=w+Math.imul(I0,D0)|0,B=B+Math.imul(V0,L0)|0,y=y+Math.imul(V0,R0)|0,y=y+Math.imul(U0,L0)|0,w=w+Math.imul(U0,R0)|0,B=B+Math.imul(Y0,z0)|0,y=y+Math.imul(Y0,M0)|0,y=y+Math.imul(Z0,z0)|0,w=w+Math.imul(Z0,M0)|0,B=B+Math.imul(i,v0)|0,y=y+Math.imul(i,q0)|0,y=y+Math.imul($0,v0)|0,w=w+Math.imul($0,q0)|0,B=B+Math.imul(a,k0)|0,y=y+Math.imul(a,g0)|0,y=y+Math.imul(r,k0)|0,w=w+Math.imul(r,g0)|0,B=B+Math.imul(s,x0)|0,y=y+Math.imul(s,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,_0)|0,B=B+Math.imul(o,y0)|0,y=y+Math.imul(o,w0)|0,y=y+Math.imul(u,y0)|0,w=w+Math.imul(u,w0)|0,B=B+Math.imul(d,p0)|0,y=y+Math.imul(d,c0)|0,y=y+Math.imul(b,p0)|0,w=w+Math.imul(b,c0)|0,B=B+Math.imul(p,d0)|0,y=y+Math.imul(p,b0)|0,y=y+Math.imul(c,d0)|0,w=w+Math.imul(c,b0)|0;var e0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(e0>>>26)|0,e0&=67108863,B=Math.imul(O0,T0),y=Math.imul(O0,D0),y=y+Math.imul(F0,T0)|0,w=Math.imul(F0,D0),B=B+Math.imul(K0,L0)|0,y=y+Math.imul(K0,R0)|0,y=y+Math.imul(I0,L0)|0,w=w+Math.imul(I0,R0)|0,B=B+Math.imul(V0,z0)|0,y=y+Math.imul(V0,M0)|0,y=y+Math.imul(U0,z0)|0,w=w+Math.imul(U0,M0)|0,B=B+Math.imul(Y0,v0)|0,y=y+Math.imul(Y0,q0)|0,y=y+Math.imul(Z0,v0)|0,w=w+Math.imul(Z0,q0)|0,B=B+Math.imul(i,k0)|0,y=y+Math.imul(i,g0)|0,y=y+Math.imul($0,k0)|0,w=w+Math.imul($0,g0)|0,B=B+Math.imul(a,x0)|0,y=y+Math.imul(a,_0)|0,y=y+Math.imul(r,x0)|0,w=w+Math.imul(r,_0)|0,B=B+Math.imul(s,y0)|0,y=y+Math.imul(s,w0)|0,y=y+Math.imul(t,y0)|0,w=w+Math.imul(t,w0)|0,B=B+Math.imul(o,p0)|0,y=y+Math.imul(o,c0)|0,y=y+Math.imul(u,p0)|0,w=w+Math.imul(u,c0)|0,B=B+Math.imul(d,d0)|0,y=y+Math.imul(d,b0)|0,y=y+Math.imul(b,d0)|0,w=w+Math.imul(b,b0)|0;var i0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(i0>>>26)|0,i0&=67108863,B=Math.imul(O0,L0),y=Math.imul(O0,R0),y=y+Math.imul(F0,L0)|0,w=Math.imul(F0,R0),B=B+Math.imul(K0,z0)|0,y=y+Math.imul(K0,M0)|0,y=y+Math.imul(I0,z0)|0,w=w+Math.imul(I0,M0)|0,B=B+Math.imul(V0,v0)|0,y=y+Math.imul(V0,q0)|0,y=y+Math.imul(U0,v0)|0,w=w+Math.imul(U0,q0)|0,B=B+Math.imul(Y0,k0)|0,y=y+Math.imul(Y0,g0)|0,y=y+Math.imul(Z0,k0)|0,w=w+Math.imul(Z0,g0)|0,B=B+Math.imul(i,x0)|0,y=y+Math.imul(i,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,_0)|0,B=B+Math.imul(a,y0)|0,y=y+Math.imul(a,w0)|0,y=y+Math.imul(r,y0)|0,w=w+Math.imul(r,w0)|0,B=B+Math.imul(s,p0)|0,y=y+Math.imul(s,c0)|0,y=y+Math.imul(t,p0)|0,w=w+Math.imul(t,c0)|0,B=B+Math.imul(o,d0)|0,y=y+Math.imul(o,b0)|0,y=y+Math.imul(u,d0)|0,w=w+Math.imul(u,b0)|0;var $$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+($$>>>26)|0,$$&=67108863,B=Math.imul(O0,z0),y=Math.imul(O0,M0),y=y+Math.imul(F0,z0)|0,w=Math.imul(F0,M0),B=B+Math.imul(K0,v0)|0,y=y+Math.imul(K0,q0)|0,y=y+Math.imul(I0,v0)|0,w=w+Math.imul(I0,q0)|0,B=B+Math.imul(V0,k0)|0,y=y+Math.imul(V0,g0)|0,y=y+Math.imul(U0,k0)|0,w=w+Math.imul(U0,g0)|0,B=B+Math.imul(Y0,x0)|0,y=y+Math.imul(Y0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,_0)|0,B=B+Math.imul(i,y0)|0,y=y+Math.imul(i,w0)|0,y=y+Math.imul($0,y0)|0,w=w+Math.imul($0,w0)|0,B=B+Math.imul(a,p0)|0,y=y+Math.imul(a,c0)|0,y=y+Math.imul(r,p0)|0,w=w+Math.imul(r,c0)|0,B=B+Math.imul(s,d0)|0,y=y+Math.imul(s,b0)|0,y=y+Math.imul(t,d0)|0,w=w+Math.imul(t,b0)|0;var Q$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,B=Math.imul(O0,v0),y=Math.imul(O0,q0),y=y+Math.imul(F0,v0)|0,w=Math.imul(F0,q0),B=B+Math.imul(K0,k0)|0,y=y+Math.imul(K0,g0)|0,y=y+Math.imul(I0,k0)|0,w=w+Math.imul(I0,g0)|0,B=B+Math.imul(V0,x0)|0,y=y+Math.imul(V0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,_0)|0,B=B+Math.imul(Y0,y0)|0,y=y+Math.imul(Y0,w0)|0,y=y+Math.imul(Z0,y0)|0,w=w+Math.imul(Z0,w0)|0,B=B+Math.imul(i,p0)|0,y=y+Math.imul(i,c0)|0,y=y+Math.imul($0,p0)|0,w=w+Math.imul($0,c0)|0,B=B+Math.imul(a,d0)|0,y=y+Math.imul(a,b0)|0,y=y+Math.imul(r,d0)|0,w=w+Math.imul(r,b0)|0;var Y$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,B=Math.imul(O0,k0),y=Math.imul(O0,g0),y=y+Math.imul(F0,k0)|0,w=Math.imul(F0,g0),B=B+Math.imul(K0,x0)|0,y=y+Math.imul(K0,_0)|0,y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,_0)|0,B=B+Math.imul(V0,y0)|0,y=y+Math.imul(V0,w0)|0,y=y+Math.imul(U0,y0)|0,w=w+Math.imul(U0,w0)|0,B=B+Math.imul(Y0,p0)|0,y=y+Math.imul(Y0,c0)|0,y=y+Math.imul(Z0,p0)|0,w=w+Math.imul(Z0,c0)|0,B=B+Math.imul(i,d0)|0,y=y+Math.imul(i,b0)|0,y=y+Math.imul($0,d0)|0,w=w+Math.imul($0,b0)|0;var Z$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,B=Math.imul(O0,x0),y=Math.imul(O0,_0),y=y+Math.imul(F0,x0)|0,w=Math.imul(F0,_0),B=B+Math.imul(K0,y0)|0,y=y+Math.imul(K0,w0)|0,y=y+Math.imul(I0,y0)|0,w=w+Math.imul(I0,w0)|0,B=B+Math.imul(V0,p0)|0,y=y+Math.imul(V0,c0)|0,y=y+Math.imul(U0,p0)|0,w=w+Math.imul(U0,c0)|0,B=B+Math.imul(Y0,d0)|0,y=y+Math.imul(Y0,b0)|0,y=y+Math.imul(Z0,d0)|0,w=w+Math.imul(Z0,b0)|0;var G$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(G$>>>26)|0,G$&=67108863,B=Math.imul(O0,y0),y=Math.imul(O0,w0),y=y+Math.imul(F0,y0)|0,w=Math.imul(F0,w0),B=B+Math.imul(K0,p0)|0,y=y+Math.imul(K0,c0)|0,y=y+Math.imul(I0,p0)|0,w=w+Math.imul(I0,c0)|0,B=B+Math.imul(V0,d0)|0,y=y+Math.imul(V0,b0)|0,y=y+Math.imul(U0,d0)|0,w=w+Math.imul(U0,b0)|0;var V$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(V$>>>26)|0,V$&=67108863,B=Math.imul(O0,p0),y=Math.imul(O0,c0),y=y+Math.imul(F0,p0)|0,w=Math.imul(F0,c0),B=B+Math.imul(K0,d0)|0,y=y+Math.imul(K0,b0)|0,y=y+Math.imul(I0,d0)|0,w=w+Math.imul(I0,b0)|0;var U$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(U$>>>26)|0,U$&=67108863,B=Math.imul(O0,d0),y=Math.imul(O0,b0),y=y+Math.imul(F0,d0)|0,w=Math.imul(F0,b0);var X$=(_+B|0)+((y&8191)<<13)|0;return _=(w+(y>>>13)|0)+(X$>>>26)|0,X$&=67108863,x[0]=l0,x[1]=o0,x[2]=u0,x[3]=n0,x[4]=s0,x[5]=t0,x[6]=m0,x[7]=a0,x[8]=r0,x[9]=e0,x[10]=i0,x[11]=$$,x[12]=Q$,x[13]=Y$,x[14]=Z$,x[15]=G$,x[16]=V$,x[17]=U$,x[18]=X$,_!==0&&(x[19]=_,k.length++),k};Math.imul||(H=W);function E(q,j,k){k.negative=j.negative^q.negative,k.length=q.length+j.length;for(var g=0,N=0,x=0;x<k.length-1;x++){var _=N;N=0;for(var B=g&67108863,y=Math.min(x,j.length-1),w=Math.max(0,x-q.length+1);w<=y;w++){var f=x-w,p=q.words[f]|0,c=j.words[w]|0,h=p*c,d=h&67108863;_=_+(h/67108864|0)|0,d=d+B|0,B=d&67108863,_=_+(d>>>26)|0,N+=_>>>26,_&=67108863}k.words[x]=B,g=_,_=N}return g!==0?k.words[x]=g:k.length--,k.strip()}function T(q,j,k){var g=new D;return g.mulp(q,j,k)}V.prototype.mulTo=function(q,j){var k,g=this.length+q.length;return this.length===10&&q.length===10?k=H(this,q,j):g<63?k=W(this,q,j):g<1024?k=E(this,q,j):k=T(this,q,j),k};function D(q,j){this.x=q,this.y=j}D.prototype.makeRBT=function(q){for(var j=new Array(q),k=V.prototype._countBits(q)-1,g=0;g<q;g++)j[g]=this.revBin(g,k,q);return j},D.prototype.revBin=function(q,j,k){if(q===0||q===k-1)return q;for(var g=0,N=0;N<j;N++)g|=(q&1)<<j-N-1,q>>=1;return g},D.prototype.permute=function(q,j,k,g,N,x){for(var _=0;_<x;_++)g[_]=j[q[_]],N[_]=k[q[_]]},D.prototype.transform=function(q,j,k,g,N,x){this.permute(x,q,j,k,g,N);for(var _=1;_<N;_<<=1)for(var B=_<<1,y=Math.cos(2*Math.PI/B),w=Math.sin(2*Math.PI/B),f=0;f<N;f+=B)for(var p=y,c=w,h=0;h<_;h++){var d=k[f+h],b=g[f+h],l=k[f+h+_],o=g[f+h+_],u=p*l-c*o;o=p*o+c*l,l=u,k[f+h]=d+l,g[f+h]=b+o,k[f+h+_]=d-l,g[f+h+_]=b-o,h!==B&&(u=y*p-w*c,c=y*c+w*p,p=u)}},D.prototype.guessLen13b=function(q,j){var k=Math.max(j,q)|1,g=k&1,N=0;for(k=k/2|0;k;k=k>>>1)N++;return 1<<N+1+g},D.prototype.conjugate=function(q,j,k){if(!(k<=1))for(var g=0;g<k/2;g++){var N=q[g];q[g]=q[k-g-1],q[k-g-1]=N,N=j[g],j[g]=-j[k-g-1],j[k-g-1]=-N}},D.prototype.normalize13b=function(q,j){for(var k=0,g=0;g<j/2;g++){var N=Math.round(q[2*g+1]/j)*8192+Math.round(q[2*g]/j)+k;q[g]=N&67108863,N<67108864?k=0:k=N/67108864|0}return q},D.prototype.convert13b=function(q,j,k,g){for(var N=0,x=0;x<j;x++)N=N+(q[x]|0),k[2*x]=N&8191,N=N>>>13,k[2*x+1]=N&8191,N=N>>>13;for(x=2*j;x<g;++x)k[x]=0;Z(N===0),Z((N&-8192)===0)},D.prototype.stub=function(q){for(var j=new Array(q),k=0;k<q;k++)j[k]=0;return j},D.prototype.mulp=function(q,j,k){var g=2*this.guessLen13b(q.length,j.length),N=this.makeRBT(g),x=this.stub(g),_=new Array(g),B=new Array(g),y=new Array(g),w=new Array(g),f=new Array(g),p=new Array(g),c=k.words;c.length=g,this.convert13b(q.words,q.length,_,g),this.convert13b(j.words,j.length,w,g),this.transform(_,x,B,y,g,N),this.transform(w,x,f,p,g,N);for(var h=0;h<g;h++){var d=B[h]*f[h]-y[h]*p[h];y[h]=B[h]*p[h]+y[h]*f[h],B[h]=d}return this.conjugate(B,y,g),this.transform(B,y,c,x,g,N),this.conjugate(c,x,g),this.normalize13b(c,g),k.negative=q.negative^j.negative,k.length=q.length+j.length,k.strip()},V.prototype.mul=function(q){var j=new V(null);return j.words=new Array(this.length+q.length),this.mulTo(q,j)},V.prototype.mulf=function(q){var j=new V(null);return j.words=new Array(this.length+q.length),T(this,q,j)},V.prototype.imul=function(q){return this.clone().mulTo(q,this)},V.prototype.imuln=function(q){Z(typeof q=="number"),Z(q<67108864);for(var j=0,k=0;k<this.length;k++){var g=(this.words[k]|0)*q,N=(g&67108863)+(j&67108863);j>>=26,j+=g/67108864|0,j+=N>>>26,this.words[k]=N&67108863}return j!==0&&(this.words[k]=j,this.length++),this},V.prototype.muln=function(q){return this.clone().imuln(q)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(q){var j=A(q);if(j.length===0)return new V(1);for(var k=this,g=0;g<j.length&&j[g]===0;g++,k=k.sqr());if(++g<j.length)for(var N=k.sqr();g<j.length;g++,N=N.sqr())j[g]!==0&&(k=k.mul(N));return k},V.prototype.iushln=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26,g=67108863>>>26-j<<26-j,N;if(j!==0){var x=0;for(N=0;N<this.length;N++){var _=this.words[N]&g,B=(this.words[N]|0)-_<<j;this.words[N]=B|x,x=_>>>26-j}x&&(this.words[N]=x,this.length++)}if(k!==0){for(N=this.length-1;N>=0;N--)this.words[N+k]=this.words[N];for(N=0;N<k;N++)this.words[N]=0;this.length+=k}return this.strip()},V.prototype.ishln=function(q){return Z(this.negative===0),this.iushln(q)},V.prototype.iushrn=function(q,j,k){Z(typeof q=="number"&&q>=0);var g;j?g=(j-j%26)/26:g=0;var N=q%26,x=Math.min((q-N)/26,this.length),_=67108863^67108863>>>N<<N,B=k;if(g-=x,g=Math.max(0,g),B){for(var y=0;y<x;y++)B.words[y]=this.words[y];B.length=x}if(x!==0)if(this.length>x)for(this.length-=x,y=0;y<this.length;y++)this.words[y]=this.words[y+x];else this.words[0]=0,this.length=1;var w=0;for(y=this.length-1;y>=0&&(w!==0||y>=g);y--){var f=this.words[y]|0;this.words[y]=w<<26-N|f>>>N,w=f&_}return B&&w!==0&&(B.words[B.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},V.prototype.ishrn=function(q,j,k){return Z(this.negative===0),this.iushrn(q,j,k)},V.prototype.shln=function(q){return this.clone().ishln(q)},V.prototype.ushln=function(q){return this.clone().iushln(q)},V.prototype.shrn=function(q){return this.clone().ishrn(q)},V.prototype.ushrn=function(q){return this.clone().iushrn(q)},V.prototype.testn=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26,g=1<<j;if(this.length<=k)return!1;var N=this.words[k];return!!(N&g)},V.prototype.imaskn=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26;if(Z(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(j!==0&&k++,this.length=Math.min(k,this.length),j!==0){var g=67108863^67108863>>>j<<j;this.words[this.length-1]&=g}return this.strip()},V.prototype.maskn=function(q){return this.clone().imaskn(q)},V.prototype.iaddn=function(q){return Z(typeof q=="number"),Z(q<67108864),q<0?this.isubn(-q):this.negative!==0?this.length===1&&(this.words[0]|0)<q?(this.words[0]=q-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(q),this.negative=1,this):this._iaddn(q)},V.prototype._iaddn=function(q){this.words[0]+=q;for(var j=0;j<this.length&&this.words[j]>=67108864;j++)this.words[j]-=67108864,j===this.length-1?this.words[j+1]=1:this.words[j+1]++;return this.length=Math.max(this.length,j+1),this},V.prototype.isubn=function(q){if(Z(typeof q=="number"),Z(q<67108864),q<0)return this.iaddn(-q);if(this.negative!==0)return this.negative=0,this.iaddn(q),this.negative=1,this;if(this.words[0]-=q,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var j=0;j<this.length&&this.words[j]<0;j++)this.words[j]+=67108864,this.words[j+1]-=1;return this.strip()},V.prototype.addn=function(q){return this.clone().iaddn(q)},V.prototype.subn=function(q){return this.clone().isubn(q)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(q,j,k){var g=q.length+k,N;this._expand(g);var x,_=0;for(N=0;N<q.length;N++){x=(this.words[N+k]|0)+_;var B=(q.words[N]|0)*j;x-=B&67108863,_=(x>>26)-(B/67108864|0),this.words[N+k]=x&67108863}for(;N<this.length-k;N++)x=(this.words[N+k]|0)+_,_=x>>26,this.words[N+k]=x&67108863;if(_===0)return this.strip();for(Z(_===-1),_=0,N=0;N<this.length;N++)x=-(this.words[N]|0)+_,_=x>>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(q,j){var k=this.length-q.length,g=this.clone(),N=q,x=N.words[N.length-1]|0,_=this._countBits(x);k=26-_,k!==0&&(N=N.ushln(k),g.iushln(k),x=N.words[N.length-1]|0);var B=g.length-N.length,y;if(j!=="mod"){y=new V(null),y.length=B+1,y.words=new Array(y.length);for(var w=0;w<y.length;w++)y.words[w]=0}var f=g.clone()._ishlnsubmul(N,1,B);f.negative===0&&(g=f,y&&(y.words[B]=1));for(var p=B-1;p>=0;p--){var c=(g.words[N.length+p]|0)*67108864+(g.words[N.length+p-1]|0);for(c=Math.min(c/x|0,67108863),g._ishlnsubmul(N,c,p);g.negative!==0;)c--,g.negative=0,g._ishlnsubmul(N,1,p),g.isZero()||(g.negative^=1);y&&(y.words[p]=c)}return y&&y.strip(),g.strip(),j!=="div"&&k!==0&&g.iushrn(k),{div:y||null,mod:g}},V.prototype.divmod=function(q,j,k){if(Z(!q.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var g,N,x;return this.negative!==0&&q.negative===0?(x=this.neg().divmod(q,j),j!=="mod"&&(g=x.div.neg()),j!=="div"&&(N=x.mod.neg(),k&&N.negative!==0&&N.iadd(q)),{div:g,mod:N}):this.negative===0&&q.negative!==0?(x=this.divmod(q.neg(),j),j!=="mod"&&(g=x.div.neg()),{div:g,mod:x.mod}):(this.negative&q.negative)!==0?(x=this.neg().divmod(q.neg(),j),j!=="div"&&(N=x.mod.neg(),k&&N.negative!==0&&N.isub(q)),{div:x.div,mod:N}):q.length>this.length||this.cmp(q)<0?{div:new V(0),mod:this}:q.length===1?j==="div"?{div:this.divn(q.words[0]),mod:null}:j==="mod"?{div:null,mod:new V(this.modn(q.words[0]))}:{div:this.divn(q.words[0]),mod:new V(this.modn(q.words[0]))}:this._wordDiv(q,j)},V.prototype.div=function(q){return this.divmod(q,"div",!1).div},V.prototype.mod=function(q){return this.divmod(q,"mod",!1).mod},V.prototype.umod=function(q){return this.divmod(q,"mod",!0).mod},V.prototype.divRound=function(q){var j=this.divmod(q);if(j.mod.isZero())return j.div;var k=j.div.negative!==0?j.mod.isub(q):j.mod,g=q.ushrn(1),N=q.andln(1),x=k.cmp(g);return x<0||N===1&&x===0?j.div:j.div.negative!==0?j.div.isubn(1):j.div.iaddn(1)},V.prototype.modn=function(q){Z(q<=67108863);for(var j=(1<<26)%q,k=0,g=this.length-1;g>=0;g--)k=(j*k+(this.words[g]|0))%q;return k},V.prototype.idivn=function(q){Z(q<=67108863);for(var j=0,k=this.length-1;k>=0;k--){var g=(this.words[k]|0)+j*67108864;this.words[k]=g/q|0,j=g%q}return this.strip()},V.prototype.divn=function(q){return this.clone().idivn(q)},V.prototype.egcd=function(q){Z(q.negative===0),Z(!q.isZero());var j=this,k=q.clone();j.negative!==0?j=j.umod(q):j=j.clone();for(var g=new V(1),N=new V(0),x=new V(0),_=new V(1),B=0;j.isEven()&&k.isEven();)j.iushrn(1),k.iushrn(1),++B;for(var y=k.clone(),w=j.clone();!j.isZero();){for(var f=0,p=1;(j.words[0]&p)===0&&f<26;++f,p<<=1);if(f>0)for(j.iushrn(f);f-- >0;)(g.isOdd()||N.isOdd())&&(g.iadd(y),N.isub(w)),g.iushrn(1),N.iushrn(1);for(var c=0,h=1;(k.words[0]&h)===0&&c<26;++c,h<<=1);if(c>0)for(k.iushrn(c);c-- >0;)(x.isOdd()||_.isOdd())&&(x.iadd(y),_.isub(w)),x.iushrn(1),_.iushrn(1);j.cmp(k)>=0?(j.isub(k),g.isub(x),N.isub(_)):(k.isub(j),x.isub(g),_.isub(N))}return{a:x,b:_,gcd:k.iushln(B)}},V.prototype._invmp=function(q){Z(q.negative===0),Z(!q.isZero());var j=this,k=q.clone();j.negative!==0?j=j.umod(q):j=j.clone();for(var g=new V(1),N=new V(0),x=k.clone();j.cmpn(1)>0&&k.cmpn(1)>0;){for(var _=0,B=1;(j.words[0]&B)===0&&_<26;++_,B<<=1);if(_>0)for(j.iushrn(_);_-- >0;)g.isOdd()&&g.iadd(x),g.iushrn(1);for(var y=0,w=1;(k.words[0]&w)===0&&y<26;++y,w<<=1);if(y>0)for(k.iushrn(y);y-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);j.cmp(k)>=0?(j.isub(k),g.isub(N)):(k.isub(j),N.isub(g))}var f;return j.cmpn(1)===0?f=g:f=N,f.cmpn(0)<0&&f.iadd(q),f},V.prototype.gcd=function(q){if(this.isZero())return q.abs();if(q.isZero())return this.abs();var j=this.clone(),k=q.clone();j.negative=0,k.negative=0;for(var g=0;j.isEven()&&k.isEven();g++)j.iushrn(1),k.iushrn(1);do{for(;j.isEven();)j.iushrn(1);for(;k.isEven();)k.iushrn(1);var N=j.cmp(k);if(N<0){var x=j;j=k,k=x}else if(N===0||k.cmpn(1)===0)break;j.isub(k)}while(!0);return k.iushln(g)},V.prototype.invm=function(q){return this.egcd(q).a.umod(q)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(q){return this.words[0]&q},V.prototype.bincn=function(q){Z(typeof q=="number");var j=q%26,k=(q-j)/26,g=1<<j;if(this.length<=k)return this._expand(k+1),this.words[k]|=g,this;for(var N=g,x=k;N!==0&&x<this.length;x++){var _=this.words[x]|0;_+=N,N=_>>>26,_&=67108863,this.words[x]=_}return N!==0&&(this.words[x]=N,this.length++),this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(q){var j=q<0;if(this.negative!==0&&!j)return-1;if(this.negative===0&&j)return 1;this.strip();var k;if(this.length>1)k=1;else{j&&(q=-q),Z(q<=67108863,"Number is too big");var g=this.words[0]|0;k=g===q?0:g<q?-1:1}return this.negative!==0?-k|0:k},V.prototype.cmp=function(q){if(this.negative!==0&&q.negative===0)return-1;if(this.negative===0&&q.negative!==0)return 1;var j=this.ucmp(q);return this.negative!==0?-j|0:j},V.prototype.ucmp=function(q){if(this.length>q.length)return 1;if(this.length<q.length)return-1;for(var j=0,k=this.length-1;k>=0;k--){var g=this.words[k]|0,N=q.words[k]|0;if(g!==N){g<N?j=-1:g>N&&(j=1);break}}return j},V.prototype.gtn=function(q){return this.cmpn(q)===1},V.prototype.gt=function(q){return this.cmp(q)===1},V.prototype.gten=function(q){return this.cmpn(q)>=0},V.prototype.gte=function(q){return this.cmp(q)>=0},V.prototype.ltn=function(q){return this.cmpn(q)===-1},V.prototype.lt=function(q){return this.cmp(q)===-1},V.prototype.lten=function(q){return this.cmpn(q)<=0},V.prototype.lte=function(q){return this.cmp(q)<=0},V.prototype.eqn=function(q){return this.cmpn(q)===0},V.prototype.eq=function(q){return this.cmp(q)===0},V.red=function(q){return new S(q)},V.prototype.toRed=function(q){return Z(!this.red,"Already a number in reduction context"),Z(this.negative===0,"red works only with positives"),q.convertTo(this)._forceRed(q)},V.prototype.fromRed=function(){return Z(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(q){return this.red=q,this},V.prototype.forceRed=function(q){return Z(!this.red,"Already a number in reduction context"),this._forceRed(q)},V.prototype.redAdd=function(q){return Z(this.red,"redAdd works only with red numbers"),this.red.add(this,q)},V.prototype.redIAdd=function(q){return Z(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,q)},V.prototype.redSub=function(q){return Z(this.red,"redSub works only with red numbers"),this.red.sub(this,q)},V.prototype.redISub=function(q){return Z(this.red,"redISub works only with red numbers"),this.red.isub(this,q)},V.prototype.redShl=function(q){return Z(this.red,"redShl works only with red numbers"),this.red.shl(this,q)},V.prototype.redMul=function(q){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,q),this.red.mul(this,q)},V.prototype.redIMul=function(q){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,q),this.red.imul(this,q)},V.prototype.redSqr=function(){return Z(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return Z(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return Z(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return Z(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return Z(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(q){return Z(this.red&&!q.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,q)};var C={k256:null,p224:null,p192:null,p25519:null};function L(q,j){this.name=q,this.p=new V(j,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}L.prototype._tmp=function(){var q=new V(null);return q.words=new Array(Math.ceil(this.n/13)),q},L.prototype.ireduce=function(q){var j=q,k;do this.split(j,this.tmp),j=this.imulK(j),j=j.iadd(this.tmp),k=j.bitLength();while(k>this.n);var g=k<this.n?-1:j.ucmp(this.p);return g===0?(j.words[0]=0,j.length=1):g>0?j.isub(this.p):j.strip!==void 0?j.strip():j._strip(),j},L.prototype.split=function(q,j){q.iushrn(this.n,0,j)},L.prototype.imulK=function(q){return q.imul(this.k)};function R(){L.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}G(R,L),R.prototype.split=function(q,j){for(var k=4194303,g=Math.min(q.length,9),N=0;N<g;N++)j.words[N]=q.words[N];if(j.length=g,q.length<=9){q.words[0]=0,q.length=1;return}var x=q.words[9];for(j.words[j.length++]=x&k,N=10;N<q.length;N++){var _=q.words[N]|0;q.words[N-10]=(_&k)<<4|x>>>22,x=_}x>>>=22,q.words[N-10]=x,x===0&&q.length>10?q.length-=10:q.length-=9},R.prototype.imulK=function(q){q.words[q.length]=0,q.words[q.length+1]=0,q.length+=2;for(var j=0,k=0;k<q.length;k++){var g=q.words[k]|0;j+=g*977,q.words[k]=j&67108863,j=g*64+(j/67108864|0)}return q.words[q.length-1]===0&&(q.length--,q.words[q.length-1]===0&&q.length--),q};function P(){L.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}G(P,L);function z(){L.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}G(z,L);function M(){L.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}G(M,L),M.prototype.imulK=function(q){for(var j=0,k=0;k<q.length;k++){var g=(q.words[k]|0)*19+j,N=g&67108863;g>>>=26,q.words[k]=N,j=g}return j!==0&&(q.words[q.length++]=j),q},V._prime=function(q){if(C[q])return C[q];var j;if(q==="k256")j=new R;else if(q==="p224")j=new P;else if(q==="p192")j=new z;else if(q==="p25519")j=new M;else throw new Error("Unknown prime "+q);return C[q]=j,j};function S(q){if(typeof q=="string"){var j=V._prime(q);this.m=j.p,this.prime=j}else Z(q.gtn(1),"modulus must be greater than 1"),this.m=q,this.prime=null}S.prototype._verify1=function(q){Z(q.negative===0,"red works only with positives"),Z(q.red,"red works only with red numbers")},S.prototype._verify2=function(q,j){Z((q.negative|j.negative)===0,"red works only with positives"),Z(q.red&&q.red===j.red,"red works only with red numbers")},S.prototype.imod=function(q){return this.prime?this.prime.ireduce(q)._forceRed(this):q.umod(this.m)._forceRed(this)},S.prototype.neg=function(q){return q.isZero()?q.clone():this.m.sub(q)._forceRed(this)},S.prototype.add=function(q,j){this._verify2(q,j);var k=q.add(j);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},S.prototype.iadd=function(q,j){this._verify2(q,j);var k=q.iadd(j);return k.cmp(this.m)>=0&&k.isub(this.m),k},S.prototype.sub=function(q,j){this._verify2(q,j);var k=q.sub(j);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},S.prototype.isub=function(q,j){this._verify2(q,j);var k=q.isub(j);return k.cmpn(0)<0&&k.iadd(this.m),k},S.prototype.shl=function(q,j){return this._verify1(q),this.imod(q.ushln(j))},S.prototype.imul=function(q,j){return this._verify2(q,j),this.imod(q.imul(j))},S.prototype.mul=function(q,j){return this._verify2(q,j),this.imod(q.mul(j))},S.prototype.isqr=function(q){return this.imul(q,q.clone())},S.prototype.sqr=function(q){return this.mul(q,q)},S.prototype.sqrt=function(q){if(q.isZero())return q.clone();var j=this.m.andln(3);if(Z(j%2===1),j===3){var k=this.m.add(new V(1)).iushrn(2);return this.pow(q,k)}for(var g=this.m.subn(1),N=0;!g.isZero()&&g.andln(1)===0;)N++,g.iushrn(1);Z(!g.isZero());var x=new V(1).toRed(this),_=x.redNeg(),B=this.m.subn(1).iushrn(1),y=this.m.bitLength();for(y=new V(2*y*y).toRed(this);this.pow(y,B).cmp(_)!==0;)y.redIAdd(_);for(var w=this.pow(y,g),f=this.pow(q,g.addn(1).iushrn(1)),p=this.pow(q,g),c=N;p.cmp(x)!==0;){for(var h=p,d=0;h.cmp(x)!==0;d++)h=h.redSqr();Z(d<c);var b=this.pow(w,new V(1).iushln(c-d-1));f=f.redMul(b),w=b.redSqr(),p=p.redMul(w),c=d}return f},S.prototype.invm=function(q){var j=q._invmp(this.m);return j.negative!==0?(j.negative=0,this.imod(j).redNeg()):this.imod(j)},S.prototype.pow=function(q,j){if(j.isZero())return new V(1).toRed(this);if(j.cmpn(1)===0)return q.clone();var k=4,g=new Array(1<<k);g[0]=new V(1).toRed(this),g[1]=q;for(var N=2;N<g.length;N++)g[N]=this.mul(g[N-1],q);var x=g[0],_=0,B=0,y=j.bitLength()%26;for(y===0&&(y=26),N=j.length-1;N>=0;N--){for(var w=j.words[N],f=y-1;f>=0;f--){var p=w>>f&1;if(x!==g[0]&&(x=this.sqr(x)),p===0&&_===0){B=0;continue}_<<=1,_|=p,B++,!(B!==k&&(N!==0||f!==0))&&(x=this.mul(x,g[_]),B=0,_=0)}y=26}return x},S.prototype.convertTo=function(q){var j=q.umod(this.m);return j===q?j.clone():j},S.prototype.convertFrom=function(q){var j=q.clone();return j.red=null,j},V.mont=function(q){return new v(q)};function v(q){S.call(this,q),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new V(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}G(v,S),v.prototype.convertTo=function(q){return this.imod(q.ushln(this.shift))},v.prototype.convertFrom=function(q){var j=this.imod(q.mul(this.rinv));return j.red=null,j},v.prototype.imul=function(q,j){if(q.isZero()||j.isZero())return q.words[0]=0,q.length=1,q;var k=q.imul(j),g=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=k.isub(g).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},v.prototype.mul=function(q,j){if(q.isZero()||j.isZero())return new V(0)._forceRed(this);var k=q.mul(j),g=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=k.isub(g).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},v.prototype.invm=function(q){var j=this.imod(q._invmp(this.m).mul(this.r2));return j._forceRed(this)}})(typeof $>"u"||$,bZ)}}),cY=P$({"node_modules/create-ecdh/browser.js"(bZ,$){var Q=AY(),Y=pY();$.exports=function(U){return new G(U)};var Z={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};Z.p224=Z.secp224r1,Z.p256=Z.secp256r1=Z.prime256v1,Z.p192=Z.secp192r1=Z.prime192v1,Z.p384=Z.secp384r1,Z.p521=Z.secp521r1;function G(U){this.curveType=Z[U],this.curveType||(this.curveType={name:U}),this.curve=new Q.ec(this.curveType.name),this.keys=void 0}G.prototype.generateKeys=function(U,X){return this.keys=this.curve.genKeyPair(),this.getPublicKey(U,X)},G.prototype.computeSecret=function(U,X,K){X=X||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,X));var I=this.curve.keyFromPublic(U).getPublic(),J=I.mul(this.keys.getPrivate()).getX();return V(J,K,this.curveType.byteLength)},G.prototype.getPublicKey=function(U,X){var K=this.keys.getPublic(X==="compressed",!0);return X==="hybrid"&&(K[K.length-1]%2?K[0]=7:K[0]=6),V(K,U)},G.prototype.getPrivateKey=function(U){return V(this.keys.getPrivate(),U)},G.prototype.setPublicKey=function(U,X){return X=X||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,X)),this.keys._importPublic(U),this},G.prototype.setPrivateKey=function(U,X){X=X||"utf8",Buffer.isBuffer(U)||(U=new Buffer(U,X));var K=new Y(U);return K=K.toString(16),this.keys=this.curve.genKeyPair(),this.keys._importPrivate(K),this};function V(U,X,K){Array.isArray(U)||(U=U.toArray());var I=new Buffer(U);if(K&&I.length<K){var J=new Buffer(K-I.length);J.fill(0),I=Buffer.concat([J,I])}return X?I.toString(X):I}}}),hY=P$({"node_modules/public-encrypt/mgf.js"(bZ,$){var Q=h$(),Y=M$().Buffer;$.exports=function(G,V){for(var U=Y.alloc(0),X=0,K;U.length<V;)K=Z(X++),U=Y.concat([U,Q("sha1").update(G).update(K).digest()]);return U.slice(0,V)};function Z(G){var V=Y.allocUnsafe(4);return V.writeUInt32BE(G,0),V}}}),dY=P$({"node_modules/public-encrypt/xor.js"(bZ,$){$.exports=function(Q,Y){for(var Z=Q.length,G=-1;++G<Z;)Q[G]^=Y[G];return Q}}}),bY=P$({"node_modules/public-encrypt/node_modules/bn.js/lib/bn.js"(bZ,$){(function(Q,Y){function Z(q,j){if(!q)throw new Error(j||"Assertion failed")}function G(q,j){q.super_=j;var k=function(){};k.prototype=j.prototype,q.prototype=new k,q.prototype.constructor=q}function V(q,j,k){if(V.isBN(q))return q;this.negative=0,this.words=null,this.length=0,this.red=null,q!==null&&((j==="le"||j==="be")&&(k=j,j=10),this._init(q||0,j||10,k||"be"))}typeof Q=="object"?Q.exports=V:Y.BN=V,V.BN=V,V.wordSize=26;var U=globalThis.Buffer;V.isBN=function(q){return q instanceof V?!0:q!==null&&typeof q=="object"&&q.constructor.wordSize===V.wordSize&&Array.isArray(q.words)},V.max=function(q,j){return q.cmp(j)>0?q:j},V.min=function(q,j){return q.cmp(j)<0?q:j},V.prototype._init=function(q,j,k){if(typeof q=="number")return this._initNumber(q,j,k);if(typeof q=="object")return this._initArray(q,j,k);j==="hex"&&(j=16),Z(j===(j|0)&&j>=2&&j<=36),q=q.toString().replace(/\s+/g,"");var g=0;q[0]==="-"&&(g++,this.negative=1),g<q.length&&(j===16?this._parseHex(q,g,k):(this._parseBase(q,j,g),k==="le"&&this._initArray(this.toArray(),j,k)))},V.prototype._initNumber=function(q,j,k){q<0&&(this.negative=1,q=-q),q<67108864?(this.words=[q&67108863],this.length=1):q<4503599627370496?(this.words=[q&67108863,q/67108864&67108863],this.length=2):(Z(q<9007199254740992),this.words=[q&67108863,q/67108864&67108863,1],this.length=3),k==="le"&&this._initArray(this.toArray(),j,k)},V.prototype._initArray=function(q,j,k){if(Z(typeof q.length=="number"),q.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(q.length/3),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var N,x,_=0;if(k==="be")for(g=q.length-1,N=0;g>=0;g-=3)x=q[g]|q[g-1]<<8|q[g-2]<<16,this.words[N]|=x<<_&67108863,this.words[N+1]=x>>>26-_&67108863,_+=24,_>=26&&(_-=26,N++);else if(k==="le")for(g=0,N=0;g<q.length;g+=3)x=q[g]|q[g+1]<<8|q[g+2]<<16,this.words[N]|=x<<_&67108863,this.words[N+1]=x>>>26-_&67108863,_+=24,_>=26&&(_-=26,N++);return this.strip()};function X(q,j){var k=q.charCodeAt(j);return k>=65&&k<=70?k-55:k>=97&&k<=102?k-87:k-48&15}function K(q,j,k){var g=X(q,k);return k-1>=j&&(g|=X(q,k-1)<<4),g}V.prototype._parseHex=function(q,j,k){this.length=Math.ceil((q.length-j)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var N=0,x=0,_;if(k==="be")for(g=q.length-1;g>=j;g-=2)_=K(q,j,g)<<N,this.words[x]|=_&67108863,N>=18?(N-=18,x+=1,this.words[x]|=_>>>26):N+=8;else{var B=q.length-j;for(g=B%2===0?j+1:j;g<q.length;g+=2)_=K(q,j,g)<<N,this.words[x]|=_&67108863,N>=18?(N-=18,x+=1,this.words[x]|=_>>>26):N+=8}this.strip()};function I(q,j,k,g){for(var N=0,x=Math.min(q.length,k),_=j;_<x;_++){var B=q.charCodeAt(_)-48;N*=g,B>=49?N+=B-49+10:B>=17?N+=B-17+10:N+=B}return N}V.prototype._parseBase=function(q,j,k){this.words=[0],this.length=1;for(var g=0,N=1;N<=67108863;N*=j)g++;g--,N=N/j|0;for(var x=q.length-k,_=x%g,B=Math.min(x,x-_)+k,y=0,w=k;w<B;w+=g)y=I(q,w,w+g,j),this.imuln(N),this.words[0]+y<67108864?this.words[0]+=y:this._iaddn(y);if(_!==0){var f=1;for(y=I(q,w,q.length,j),w=0;w<_;w++)f*=j;this.imuln(f),this.words[0]+y<67108864?this.words[0]+=y:this._iaddn(y)}this.strip()},V.prototype.copy=function(q){q.words=new Array(this.length);for(var j=0;j<this.length;j++)q.words[j]=this.words[j];q.length=this.length,q.negative=this.negative,q.red=this.red},V.prototype.clone=function(){var q=new V(null);return this.copy(q),q},V.prototype._expand=function(q){for(;this.length<q;)this.words[this.length++]=0;return this},V.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},V.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},V.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var J=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],O=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],F=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64000000,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,24300000,28629151,33554432,39135393,45435424,52521875,60466176];V.prototype.toString=function(q,j){q=q||10,j=j|0||1;var k;if(q===16||q==="hex"){k="";for(var g=0,N=0,x=0;x<this.length;x++){var _=this.words[x],B=((_<<g|N)&16777215).toString(16);N=_>>>24-g&16777215,N!==0||x!==this.length-1?k=J[6-B.length]+B+k:k=B+k,g+=2,g>=26&&(g-=26,x--)}for(N!==0&&(k=N.toString(16)+k);k.length%j!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}if(q===(q|0)&&q>=2&&q<=36){var y=O[q],w=F[q];k="";var f=this.clone();for(f.negative=0;!f.isZero();){var p=f.modn(w).toString(q);f=f.idivn(w),f.isZero()?k=p+k:k=J[y-p.length]+p+k}for(this.isZero()&&(k="0"+k);k.length%j!==0;)k="0"+k;return this.negative!==0&&(k="-"+k),k}Z(!1,"Base should be between 2 and 36")},V.prototype.toNumber=function(){var q=this.words[0];return this.length===2?q+=this.words[1]*67108864:this.length===3&&this.words[2]===1?q+=4503599627370496+this.words[1]*67108864:this.length>2&&Z(!1,"Number can only safely store up to 53 bits"),this.negative!==0?-q:q},V.prototype.toJSON=function(){return this.toString(16)},V.prototype.toBuffer=function(q,j){return Z(typeof U<"u"),this.toArrayLike(U,q,j)},V.prototype.toArray=function(q,j){return this.toArrayLike(Array,q,j)},V.prototype.toArrayLike=function(q,j,k){var g=this.byteLength(),N=k||Math.max(1,g);Z(g<=N,"byte array longer than desired length"),Z(N>0,"Requested array length <= 0"),this.strip();var x=j==="le",_=new q(N),B,y,w=this.clone();if(x){for(y=0;!w.isZero();y++)B=w.andln(255),w.iushrn(8),_[y]=B;for(;y<N;y++)_[y]=0}else{for(y=0;y<N-g;y++)_[y]=0;for(y=0;!w.isZero();y++)B=w.andln(255),w.iushrn(8),_[N-y-1]=B}return _},Math.clz32?V.prototype._countBits=function(q){return 32-Math.clz32(q)}:V.prototype._countBits=function(q){var j=q,k=0;return j>=4096&&(k+=13,j>>>=13),j>=64&&(k+=7,j>>>=7),j>=8&&(k+=4,j>>>=4),j>=2&&(k+=2,j>>>=2),k+j},V.prototype._zeroBits=function(q){if(q===0)return 26;var j=q,k=0;return(j&8191)===0&&(k+=13,j>>>=13),(j&127)===0&&(k+=7,j>>>=7),(j&15)===0&&(k+=4,j>>>=4),(j&3)===0&&(k+=2,j>>>=2),(j&1)===0&&k++,k},V.prototype.bitLength=function(){var q=this.words[this.length-1],j=this._countBits(q);return(this.length-1)*26+j};function A(q){for(var j=new Array(q.bitLength()),k=0;k<j.length;k++){var g=k/26|0,N=k%26;j[k]=(q.words[g]&1<<N)>>>N}return j}V.prototype.zeroBits=function(){if(this.isZero())return 0;for(var q=0,j=0;j<this.length;j++){var k=this._zeroBits(this.words[j]);if(q+=k,k!==26)break}return q},V.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},V.prototype.toTwos=function(q){return this.negative!==0?this.abs().inotn(q).iaddn(1):this.clone()},V.prototype.fromTwos=function(q){return this.testn(q-1)?this.notn(q).iaddn(1).ineg():this.clone()},V.prototype.isNeg=function(){return this.negative!==0},V.prototype.neg=function(){return this.clone().ineg()},V.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},V.prototype.iuor=function(q){for(;this.length<q.length;)this.words[this.length++]=0;for(var j=0;j<q.length;j++)this.words[j]=this.words[j]|q.words[j];return this.strip()},V.prototype.ior=function(q){return Z((this.negative|q.negative)===0),this.iuor(q)},V.prototype.or=function(q){return this.length>q.length?this.clone().ior(q):q.clone().ior(this)},V.prototype.uor=function(q){return this.length>q.length?this.clone().iuor(q):q.clone().iuor(this)},V.prototype.iuand=function(q){var j;this.length>q.length?j=q:j=this;for(var k=0;k<j.length;k++)this.words[k]=this.words[k]&q.words[k];return this.length=j.length,this.strip()},V.prototype.iand=function(q){return Z((this.negative|q.negative)===0),this.iuand(q)},V.prototype.and=function(q){return this.length>q.length?this.clone().iand(q):q.clone().iand(this)},V.prototype.uand=function(q){return this.length>q.length?this.clone().iuand(q):q.clone().iuand(this)},V.prototype.iuxor=function(q){var j,k;this.length>q.length?(j=this,k=q):(j=q,k=this);for(var g=0;g<k.length;g++)this.words[g]=j.words[g]^k.words[g];if(this!==j)for(;g<j.length;g++)this.words[g]=j.words[g];return this.length=j.length,this.strip()},V.prototype.ixor=function(q){return Z((this.negative|q.negative)===0),this.iuxor(q)},V.prototype.xor=function(q){return this.length>q.length?this.clone().ixor(q):q.clone().ixor(this)},V.prototype.uxor=function(q){return this.length>q.length?this.clone().iuxor(q):q.clone().iuxor(this)},V.prototype.inotn=function(q){Z(typeof q=="number"&&q>=0);var j=Math.ceil(q/26)|0,k=q%26;this._expand(j),k>0&&j--;for(var g=0;g<j;g++)this.words[g]=~this.words[g]&67108863;return k>0&&(this.words[g]=~this.words[g]&67108863>>26-k),this.strip()},V.prototype.notn=function(q){return this.clone().inotn(q)},V.prototype.setn=function(q,j){Z(typeof q=="number"&&q>=0);var k=q/26|0,g=q%26;return this._expand(k+1),j?this.words[k]=this.words[k]|1<<g:this.words[k]=this.words[k]&~(1<<g),this.strip()},V.prototype.iadd=function(q){var j;if(this.negative!==0&&q.negative===0)return this.negative=0,j=this.isub(q),this.negative^=1,this._normSign();if(this.negative===0&&q.negative!==0)return q.negative=0,j=this.isub(q),q.negative=1,j._normSign();var k,g;this.length>q.length?(k=this,g=q):(k=q,g=this);for(var N=0,x=0;x<g.length;x++)j=(k.words[x]|0)+(g.words[x]|0)+N,this.words[x]=j&67108863,N=j>>>26;for(;N!==0&&x<k.length;x++)j=(k.words[x]|0)+N,this.words[x]=j&67108863,N=j>>>26;if(this.length=k.length,N!==0)this.words[this.length]=N,this.length++;else if(k!==this)for(;x<k.length;x++)this.words[x]=k.words[x];return this},V.prototype.add=function(q){var j;return q.negative!==0&&this.negative===0?(q.negative=0,j=this.sub(q),q.negative^=1,j):q.negative===0&&this.negative!==0?(this.negative=0,j=q.sub(this),this.negative=1,j):this.length>q.length?this.clone().iadd(q):q.clone().iadd(this)},V.prototype.isub=function(q){if(q.negative!==0){q.negative=0;var j=this.iadd(q);return q.negative=1,j._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(q),this.negative=1,this._normSign();var k=this.cmp(q);if(k===0)return this.negative=0,this.length=1,this.words[0]=0,this;var g,N;k>0?(g=this,N=q):(g=q,N=this);for(var x=0,_=0;_<N.length;_++)j=(g.words[_]|0)-(N.words[_]|0)+x,x=j>>26,this.words[_]=j&67108863;for(;x!==0&&_<g.length;_++)j=(g.words[_]|0)+x,x=j>>26,this.words[_]=j&67108863;if(x===0&&_<g.length&&g!==this)for(;_<g.length;_++)this.words[_]=g.words[_];return this.length=Math.max(this.length,_),g!==this&&(this.negative=1),this.strip()},V.prototype.sub=function(q){return this.clone().isub(q)};function W(q,j,k){k.negative=j.negative^q.negative;var g=q.length+j.length|0;k.length=g,g=g-1|0;var N=q.words[0]|0,x=j.words[0]|0,_=N*x,B=_&67108863,y=_/67108864|0;k.words[0]=B;for(var w=1;w<g;w++){for(var f=y>>>26,p=y&67108863,c=Math.min(w,j.length-1),h=Math.max(0,w-q.length+1);h<=c;h++){var d=w-h|0;N=q.words[d]|0,x=j.words[h]|0,_=N*x+p,f+=_/67108864|0,p=_&67108863}k.words[w]=p|0,y=f|0}return y!==0?k.words[w]=y|0:k.length--,k.strip()}var H=function(q,j,k){var g=q.words,N=j.words,x=k.words,_=0,B,y,w,f=g[0]|0,p=f&8191,c=f>>>13,h=g[1]|0,d=h&8191,b=h>>>13,l=g[2]|0,o=l&8191,u=l>>>13,n=g[3]|0,s=n&8191,t=n>>>13,m=g[4]|0,a=m&8191,r=m>>>13,e=g[5]|0,i=e&8191,$0=e>>>13,Q0=g[6]|0,Y0=Q0&8191,Z0=Q0>>>13,G0=g[7]|0,V0=G0&8191,U0=G0>>>13,X0=g[8]|0,K0=X0&8191,I0=X0>>>13,J0=g[9]|0,O0=J0&8191,F0=J0>>>13,A0=N[0]|0,W0=A0&8191,H0=A0>>>13,E0=N[1]|0,T0=E0&8191,D0=E0>>>13,C0=N[2]|0,L0=C0&8191,R0=C0>>>13,P0=N[3]|0,z0=P0&8191,M0=P0>>>13,S0=N[4]|0,v0=S0&8191,q0=S0>>>13,j0=N[5]|0,k0=j0&8191,g0=j0>>>13,N0=N[6]|0,x0=N0&8191,_0=N0>>>13,B0=N[7]|0,y0=B0&8191,w0=B0>>>13,f0=N[8]|0,p0=f0&8191,c0=f0>>>13,h0=N[9]|0,d0=h0&8191,b0=h0>>>13;k.negative=q.negative^j.negative,k.length=19,B=Math.imul(p,W0),y=Math.imul(p,H0),y=y+Math.imul(c,W0)|0,w=Math.imul(c,H0);var l0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(l0>>>26)|0,l0&=67108863,B=Math.imul(d,W0),y=Math.imul(d,H0),y=y+Math.imul(b,W0)|0,w=Math.imul(b,H0),B=B+Math.imul(p,T0)|0,y=y+Math.imul(p,D0)|0,y=y+Math.imul(c,T0)|0,w=w+Math.imul(c,D0)|0;var o0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(o0>>>26)|0,o0&=67108863,B=Math.imul(o,W0),y=Math.imul(o,H0),y=y+Math.imul(u,W0)|0,w=Math.imul(u,H0),B=B+Math.imul(d,T0)|0,y=y+Math.imul(d,D0)|0,y=y+Math.imul(b,T0)|0,w=w+Math.imul(b,D0)|0,B=B+Math.imul(p,L0)|0,y=y+Math.imul(p,R0)|0,y=y+Math.imul(c,L0)|0,w=w+Math.imul(c,R0)|0;var u0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(u0>>>26)|0,u0&=67108863,B=Math.imul(s,W0),y=Math.imul(s,H0),y=y+Math.imul(t,W0)|0,w=Math.imul(t,H0),B=B+Math.imul(o,T0)|0,y=y+Math.imul(o,D0)|0,y=y+Math.imul(u,T0)|0,w=w+Math.imul(u,D0)|0,B=B+Math.imul(d,L0)|0,y=y+Math.imul(d,R0)|0,y=y+Math.imul(b,L0)|0,w=w+Math.imul(b,R0)|0,B=B+Math.imul(p,z0)|0,y=y+Math.imul(p,M0)|0,y=y+Math.imul(c,z0)|0,w=w+Math.imul(c,M0)|0;var n0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(n0>>>26)|0,n0&=67108863,B=Math.imul(a,W0),y=Math.imul(a,H0),y=y+Math.imul(r,W0)|0,w=Math.imul(r,H0),B=B+Math.imul(s,T0)|0,y=y+Math.imul(s,D0)|0,y=y+Math.imul(t,T0)|0,w=w+Math.imul(t,D0)|0,B=B+Math.imul(o,L0)|0,y=y+Math.imul(o,R0)|0,y=y+Math.imul(u,L0)|0,w=w+Math.imul(u,R0)|0,B=B+Math.imul(d,z0)|0,y=y+Math.imul(d,M0)|0,y=y+Math.imul(b,z0)|0,w=w+Math.imul(b,M0)|0,B=B+Math.imul(p,v0)|0,y=y+Math.imul(p,q0)|0,y=y+Math.imul(c,v0)|0,w=w+Math.imul(c,q0)|0;var s0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(s0>>>26)|0,s0&=67108863,B=Math.imul(i,W0),y=Math.imul(i,H0),y=y+Math.imul($0,W0)|0,w=Math.imul($0,H0),B=B+Math.imul(a,T0)|0,y=y+Math.imul(a,D0)|0,y=y+Math.imul(r,T0)|0,w=w+Math.imul(r,D0)|0,B=B+Math.imul(s,L0)|0,y=y+Math.imul(s,R0)|0,y=y+Math.imul(t,L0)|0,w=w+Math.imul(t,R0)|0,B=B+Math.imul(o,z0)|0,y=y+Math.imul(o,M0)|0,y=y+Math.imul(u,z0)|0,w=w+Math.imul(u,M0)|0,B=B+Math.imul(d,v0)|0,y=y+Math.imul(d,q0)|0,y=y+Math.imul(b,v0)|0,w=w+Math.imul(b,q0)|0,B=B+Math.imul(p,k0)|0,y=y+Math.imul(p,g0)|0,y=y+Math.imul(c,k0)|0,w=w+Math.imul(c,g0)|0;var t0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(t0>>>26)|0,t0&=67108863,B=Math.imul(Y0,W0),y=Math.imul(Y0,H0),y=y+Math.imul(Z0,W0)|0,w=Math.imul(Z0,H0),B=B+Math.imul(i,T0)|0,y=y+Math.imul(i,D0)|0,y=y+Math.imul($0,T0)|0,w=w+Math.imul($0,D0)|0,B=B+Math.imul(a,L0)|0,y=y+Math.imul(a,R0)|0,y=y+Math.imul(r,L0)|0,w=w+Math.imul(r,R0)|0,B=B+Math.imul(s,z0)|0,y=y+Math.imul(s,M0)|0,y=y+Math.imul(t,z0)|0,w=w+Math.imul(t,M0)|0,B=B+Math.imul(o,v0)|0,y=y+Math.imul(o,q0)|0,y=y+Math.imul(u,v0)|0,w=w+Math.imul(u,q0)|0,B=B+Math.imul(d,k0)|0,y=y+Math.imul(d,g0)|0,y=y+Math.imul(b,k0)|0,w=w+Math.imul(b,g0)|0,B=B+Math.imul(p,x0)|0,y=y+Math.imul(p,_0)|0,y=y+Math.imul(c,x0)|0,w=w+Math.imul(c,_0)|0;var m0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(m0>>>26)|0,m0&=67108863,B=Math.imul(V0,W0),y=Math.imul(V0,H0),y=y+Math.imul(U0,W0)|0,w=Math.imul(U0,H0),B=B+Math.imul(Y0,T0)|0,y=y+Math.imul(Y0,D0)|0,y=y+Math.imul(Z0,T0)|0,w=w+Math.imul(Z0,D0)|0,B=B+Math.imul(i,L0)|0,y=y+Math.imul(i,R0)|0,y=y+Math.imul($0,L0)|0,w=w+Math.imul($0,R0)|0,B=B+Math.imul(a,z0)|0,y=y+Math.imul(a,M0)|0,y=y+Math.imul(r,z0)|0,w=w+Math.imul(r,M0)|0,B=B+Math.imul(s,v0)|0,y=y+Math.imul(s,q0)|0,y=y+Math.imul(t,v0)|0,w=w+Math.imul(t,q0)|0,B=B+Math.imul(o,k0)|0,y=y+Math.imul(o,g0)|0,y=y+Math.imul(u,k0)|0,w=w+Math.imul(u,g0)|0,B=B+Math.imul(d,x0)|0,y=y+Math.imul(d,_0)|0,y=y+Math.imul(b,x0)|0,w=w+Math.imul(b,_0)|0,B=B+Math.imul(p,y0)|0,y=y+Math.imul(p,w0)|0,y=y+Math.imul(c,y0)|0,w=w+Math.imul(c,w0)|0;var a0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(a0>>>26)|0,a0&=67108863,B=Math.imul(K0,W0),y=Math.imul(K0,H0),y=y+Math.imul(I0,W0)|0,w=Math.imul(I0,H0),B=B+Math.imul(V0,T0)|0,y=y+Math.imul(V0,D0)|0,y=y+Math.imul(U0,T0)|0,w=w+Math.imul(U0,D0)|0,B=B+Math.imul(Y0,L0)|0,y=y+Math.imul(Y0,R0)|0,y=y+Math.imul(Z0,L0)|0,w=w+Math.imul(Z0,R0)|0,B=B+Math.imul(i,z0)|0,y=y+Math.imul(i,M0)|0,y=y+Math.imul($0,z0)|0,w=w+Math.imul($0,M0)|0,B=B+Math.imul(a,v0)|0,y=y+Math.imul(a,q0)|0,y=y+Math.imul(r,v0)|0,w=w+Math.imul(r,q0)|0,B=B+Math.imul(s,k0)|0,y=y+Math.imul(s,g0)|0,y=y+Math.imul(t,k0)|0,w=w+Math.imul(t,g0)|0,B=B+Math.imul(o,x0)|0,y=y+Math.imul(o,_0)|0,y=y+Math.imul(u,x0)|0,w=w+Math.imul(u,_0)|0,B=B+Math.imul(d,y0)|0,y=y+Math.imul(d,w0)|0,y=y+Math.imul(b,y0)|0,w=w+Math.imul(b,w0)|0,B=B+Math.imul(p,p0)|0,y=y+Math.imul(p,c0)|0,y=y+Math.imul(c,p0)|0,w=w+Math.imul(c,c0)|0;var r0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(r0>>>26)|0,r0&=67108863,B=Math.imul(O0,W0),y=Math.imul(O0,H0),y=y+Math.imul(F0,W0)|0,w=Math.imul(F0,H0),B=B+Math.imul(K0,T0)|0,y=y+Math.imul(K0,D0)|0,y=y+Math.imul(I0,T0)|0,w=w+Math.imul(I0,D0)|0,B=B+Math.imul(V0,L0)|0,y=y+Math.imul(V0,R0)|0,y=y+Math.imul(U0,L0)|0,w=w+Math.imul(U0,R0)|0,B=B+Math.imul(Y0,z0)|0,y=y+Math.imul(Y0,M0)|0,y=y+Math.imul(Z0,z0)|0,w=w+Math.imul(Z0,M0)|0,B=B+Math.imul(i,v0)|0,y=y+Math.imul(i,q0)|0,y=y+Math.imul($0,v0)|0,w=w+Math.imul($0,q0)|0,B=B+Math.imul(a,k0)|0,y=y+Math.imul(a,g0)|0,y=y+Math.imul(r,k0)|0,w=w+Math.imul(r,g0)|0,B=B+Math.imul(s,x0)|0,y=y+Math.imul(s,_0)|0,y=y+Math.imul(t,x0)|0,w=w+Math.imul(t,_0)|0,B=B+Math.imul(o,y0)|0,y=y+Math.imul(o,w0)|0,y=y+Math.imul(u,y0)|0,w=w+Math.imul(u,w0)|0,B=B+Math.imul(d,p0)|0,y=y+Math.imul(d,c0)|0,y=y+Math.imul(b,p0)|0,w=w+Math.imul(b,c0)|0,B=B+Math.imul(p,d0)|0,y=y+Math.imul(p,b0)|0,y=y+Math.imul(c,d0)|0,w=w+Math.imul(c,b0)|0;var e0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(e0>>>26)|0,e0&=67108863,B=Math.imul(O0,T0),y=Math.imul(O0,D0),y=y+Math.imul(F0,T0)|0,w=Math.imul(F0,D0),B=B+Math.imul(K0,L0)|0,y=y+Math.imul(K0,R0)|0,y=y+Math.imul(I0,L0)|0,w=w+Math.imul(I0,R0)|0,B=B+Math.imul(V0,z0)|0,y=y+Math.imul(V0,M0)|0,y=y+Math.imul(U0,z0)|0,w=w+Math.imul(U0,M0)|0,B=B+Math.imul(Y0,v0)|0,y=y+Math.imul(Y0,q0)|0,y=y+Math.imul(Z0,v0)|0,w=w+Math.imul(Z0,q0)|0,B=B+Math.imul(i,k0)|0,y=y+Math.imul(i,g0)|0,y=y+Math.imul($0,k0)|0,w=w+Math.imul($0,g0)|0,B=B+Math.imul(a,x0)|0,y=y+Math.imul(a,_0)|0,y=y+Math.imul(r,x0)|0,w=w+Math.imul(r,_0)|0,B=B+Math.imul(s,y0)|0,y=y+Math.imul(s,w0)|0,y=y+Math.imul(t,y0)|0,w=w+Math.imul(t,w0)|0,B=B+Math.imul(o,p0)|0,y=y+Math.imul(o,c0)|0,y=y+Math.imul(u,p0)|0,w=w+Math.imul(u,c0)|0,B=B+Math.imul(d,d0)|0,y=y+Math.imul(d,b0)|0,y=y+Math.imul(b,d0)|0,w=w+Math.imul(b,b0)|0;var i0=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(i0>>>26)|0,i0&=67108863,B=Math.imul(O0,L0),y=Math.imul(O0,R0),y=y+Math.imul(F0,L0)|0,w=Math.imul(F0,R0),B=B+Math.imul(K0,z0)|0,y=y+Math.imul(K0,M0)|0,y=y+Math.imul(I0,z0)|0,w=w+Math.imul(I0,M0)|0,B=B+Math.imul(V0,v0)|0,y=y+Math.imul(V0,q0)|0,y=y+Math.imul(U0,v0)|0,w=w+Math.imul(U0,q0)|0,B=B+Math.imul(Y0,k0)|0,y=y+Math.imul(Y0,g0)|0,y=y+Math.imul(Z0,k0)|0,w=w+Math.imul(Z0,g0)|0,B=B+Math.imul(i,x0)|0,y=y+Math.imul(i,_0)|0,y=y+Math.imul($0,x0)|0,w=w+Math.imul($0,_0)|0,B=B+Math.imul(a,y0)|0,y=y+Math.imul(a,w0)|0,y=y+Math.imul(r,y0)|0,w=w+Math.imul(r,w0)|0,B=B+Math.imul(s,p0)|0,y=y+Math.imul(s,c0)|0,y=y+Math.imul(t,p0)|0,w=w+Math.imul(t,c0)|0,B=B+Math.imul(o,d0)|0,y=y+Math.imul(o,b0)|0,y=y+Math.imul(u,d0)|0,w=w+Math.imul(u,b0)|0;var $$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+($$>>>26)|0,$$&=67108863,B=Math.imul(O0,z0),y=Math.imul(O0,M0),y=y+Math.imul(F0,z0)|0,w=Math.imul(F0,M0),B=B+Math.imul(K0,v0)|0,y=y+Math.imul(K0,q0)|0,y=y+Math.imul(I0,v0)|0,w=w+Math.imul(I0,q0)|0,B=B+Math.imul(V0,k0)|0,y=y+Math.imul(V0,g0)|0,y=y+Math.imul(U0,k0)|0,w=w+Math.imul(U0,g0)|0,B=B+Math.imul(Y0,x0)|0,y=y+Math.imul(Y0,_0)|0,y=y+Math.imul(Z0,x0)|0,w=w+Math.imul(Z0,_0)|0,B=B+Math.imul(i,y0)|0,y=y+Math.imul(i,w0)|0,y=y+Math.imul($0,y0)|0,w=w+Math.imul($0,w0)|0,B=B+Math.imul(a,p0)|0,y=y+Math.imul(a,c0)|0,y=y+Math.imul(r,p0)|0,w=w+Math.imul(r,c0)|0,B=B+Math.imul(s,d0)|0,y=y+Math.imul(s,b0)|0,y=y+Math.imul(t,d0)|0,w=w+Math.imul(t,b0)|0;var Q$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Q$>>>26)|0,Q$&=67108863,B=Math.imul(O0,v0),y=Math.imul(O0,q0),y=y+Math.imul(F0,v0)|0,w=Math.imul(F0,q0),B=B+Math.imul(K0,k0)|0,y=y+Math.imul(K0,g0)|0,y=y+Math.imul(I0,k0)|0,w=w+Math.imul(I0,g0)|0,B=B+Math.imul(V0,x0)|0,y=y+Math.imul(V0,_0)|0,y=y+Math.imul(U0,x0)|0,w=w+Math.imul(U0,_0)|0,B=B+Math.imul(Y0,y0)|0,y=y+Math.imul(Y0,w0)|0,y=y+Math.imul(Z0,y0)|0,w=w+Math.imul(Z0,w0)|0,B=B+Math.imul(i,p0)|0,y=y+Math.imul(i,c0)|0,y=y+Math.imul($0,p0)|0,w=w+Math.imul($0,c0)|0,B=B+Math.imul(a,d0)|0,y=y+Math.imul(a,b0)|0,y=y+Math.imul(r,d0)|0,w=w+Math.imul(r,b0)|0;var Y$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Y$>>>26)|0,Y$&=67108863,B=Math.imul(O0,k0),y=Math.imul(O0,g0),y=y+Math.imul(F0,k0)|0,w=Math.imul(F0,g0),B=B+Math.imul(K0,x0)|0,y=y+Math.imul(K0,_0)|0,y=y+Math.imul(I0,x0)|0,w=w+Math.imul(I0,_0)|0,B=B+Math.imul(V0,y0)|0,y=y+Math.imul(V0,w0)|0,y=y+Math.imul(U0,y0)|0,w=w+Math.imul(U0,w0)|0,B=B+Math.imul(Y0,p0)|0,y=y+Math.imul(Y0,c0)|0,y=y+Math.imul(Z0,p0)|0,w=w+Math.imul(Z0,c0)|0,B=B+Math.imul(i,d0)|0,y=y+Math.imul(i,b0)|0,y=y+Math.imul($0,d0)|0,w=w+Math.imul($0,b0)|0;var Z$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(Z$>>>26)|0,Z$&=67108863,B=Math.imul(O0,x0),y=Math.imul(O0,_0),y=y+Math.imul(F0,x0)|0,w=Math.imul(F0,_0),B=B+Math.imul(K0,y0)|0,y=y+Math.imul(K0,w0)|0,y=y+Math.imul(I0,y0)|0,w=w+Math.imul(I0,w0)|0,B=B+Math.imul(V0,p0)|0,y=y+Math.imul(V0,c0)|0,y=y+Math.imul(U0,p0)|0,w=w+Math.imul(U0,c0)|0,B=B+Math.imul(Y0,d0)|0,y=y+Math.imul(Y0,b0)|0,y=y+Math.imul(Z0,d0)|0,w=w+Math.imul(Z0,b0)|0;var G$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(G$>>>26)|0,G$&=67108863,B=Math.imul(O0,y0),y=Math.imul(O0,w0),y=y+Math.imul(F0,y0)|0,w=Math.imul(F0,w0),B=B+Math.imul(K0,p0)|0,y=y+Math.imul(K0,c0)|0,y=y+Math.imul(I0,p0)|0,w=w+Math.imul(I0,c0)|0,B=B+Math.imul(V0,d0)|0,y=y+Math.imul(V0,b0)|0,y=y+Math.imul(U0,d0)|0,w=w+Math.imul(U0,b0)|0;var V$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(V$>>>26)|0,V$&=67108863,B=Math.imul(O0,p0),y=Math.imul(O0,c0),y=y+Math.imul(F0,p0)|0,w=Math.imul(F0,c0),B=B+Math.imul(K0,d0)|0,y=y+Math.imul(K0,b0)|0,y=y+Math.imul(I0,d0)|0,w=w+Math.imul(I0,b0)|0;var U$=(_+B|0)+((y&8191)<<13)|0;_=(w+(y>>>13)|0)+(U$>>>26)|0,U$&=67108863,B=Math.imul(O0,d0),y=Math.imul(O0,b0),y=y+Math.imul(F0,d0)|0,w=Math.imul(F0,b0);var X$=(_+B|0)+((y&8191)<<13)|0;return _=(w+(y>>>13)|0)+(X$>>>26)|0,X$&=67108863,x[0]=l0,x[1]=o0,x[2]=u0,x[3]=n0,x[4]=s0,x[5]=t0,x[6]=m0,x[7]=a0,x[8]=r0,x[9]=e0,x[10]=i0,x[11]=$$,x[12]=Q$,x[13]=Y$,x[14]=Z$,x[15]=G$,x[16]=V$,x[17]=U$,x[18]=X$,_!==0&&(x[19]=_,k.length++),k};Math.imul||(H=W);function E(q,j,k){k.negative=j.negative^q.negative,k.length=q.length+j.length;for(var g=0,N=0,x=0;x<k.length-1;x++){var _=N;N=0;for(var B=g&67108863,y=Math.min(x,j.length-1),w=Math.max(0,x-q.length+1);w<=y;w++){var f=x-w,p=q.words[f]|0,c=j.words[w]|0,h=p*c,d=h&67108863;_=_+(h/67108864|0)|0,d=d+B|0,B=d&67108863,_=_+(d>>>26)|0,N+=_>>>26,_&=67108863}k.words[x]=B,g=_,_=N}return g!==0?k.words[x]=g:k.length--,k.strip()}function T(q,j,k){var g=new D;return g.mulp(q,j,k)}V.prototype.mulTo=function(q,j){var k,g=this.length+q.length;return this.length===10&&q.length===10?k=H(this,q,j):g<63?k=W(this,q,j):g<1024?k=E(this,q,j):k=T(this,q,j),k};function D(q,j){this.x=q,this.y=j}D.prototype.makeRBT=function(q){for(var j=new Array(q),k=V.prototype._countBits(q)-1,g=0;g<q;g++)j[g]=this.revBin(g,k,q);return j},D.prototype.revBin=function(q,j,k){if(q===0||q===k-1)return q;for(var g=0,N=0;N<j;N++)g|=(q&1)<<j-N-1,q>>=1;return g},D.prototype.permute=function(q,j,k,g,N,x){for(var _=0;_<x;_++)g[_]=j[q[_]],N[_]=k[q[_]]},D.prototype.transform=function(q,j,k,g,N,x){this.permute(x,q,j,k,g,N);for(var _=1;_<N;_<<=1)for(var B=_<<1,y=Math.cos(2*Math.PI/B),w=Math.sin(2*Math.PI/B),f=0;f<N;f+=B)for(var p=y,c=w,h=0;h<_;h++){var d=k[f+h],b=g[f+h],l=k[f+h+_],o=g[f+h+_],u=p*l-c*o;o=p*o+c*l,l=u,k[f+h]=d+l,g[f+h]=b+o,k[f+h+_]=d-l,g[f+h+_]=b-o,h!==B&&(u=y*p-w*c,c=y*c+w*p,p=u)}},D.prototype.guessLen13b=function(q,j){var k=Math.max(j,q)|1,g=k&1,N=0;for(k=k/2|0;k;k=k>>>1)N++;return 1<<N+1+g},D.prototype.conjugate=function(q,j,k){if(!(k<=1))for(var g=0;g<k/2;g++){var N=q[g];q[g]=q[k-g-1],q[k-g-1]=N,N=j[g],j[g]=-j[k-g-1],j[k-g-1]=-N}},D.prototype.normalize13b=function(q,j){for(var k=0,g=0;g<j/2;g++){var N=Math.round(q[2*g+1]/j)*8192+Math.round(q[2*g]/j)+k;q[g]=N&67108863,N<67108864?k=0:k=N/67108864|0}return q},D.prototype.convert13b=function(q,j,k,g){for(var N=0,x=0;x<j;x++)N=N+(q[x]|0),k[2*x]=N&8191,N=N>>>13,k[2*x+1]=N&8191,N=N>>>13;for(x=2*j;x<g;++x)k[x]=0;Z(N===0),Z((N&-8192)===0)},D.prototype.stub=function(q){for(var j=new Array(q),k=0;k<q;k++)j[k]=0;return j},D.prototype.mulp=function(q,j,k){var g=2*this.guessLen13b(q.length,j.length),N=this.makeRBT(g),x=this.stub(g),_=new Array(g),B=new Array(g),y=new Array(g),w=new Array(g),f=new Array(g),p=new Array(g),c=k.words;c.length=g,this.convert13b(q.words,q.length,_,g),this.convert13b(j.words,j.length,w,g),this.transform(_,x,B,y,g,N),this.transform(w,x,f,p,g,N);for(var h=0;h<g;h++){var d=B[h]*f[h]-y[h]*p[h];y[h]=B[h]*p[h]+y[h]*f[h],B[h]=d}return this.conjugate(B,y,g),this.transform(B,y,c,x,g,N),this.conjugate(c,x,g),this.normalize13b(c,g),k.negative=q.negative^j.negative,k.length=q.length+j.length,k.strip()},V.prototype.mul=function(q){var j=new V(null);return j.words=new Array(this.length+q.length),this.mulTo(q,j)},V.prototype.mulf=function(q){var j=new V(null);return j.words=new Array(this.length+q.length),T(this,q,j)},V.prototype.imul=function(q){return this.clone().mulTo(q,this)},V.prototype.imuln=function(q){Z(typeof q=="number"),Z(q<67108864);for(var j=0,k=0;k<this.length;k++){var g=(this.words[k]|0)*q,N=(g&67108863)+(j&67108863);j>>=26,j+=g/67108864|0,j+=N>>>26,this.words[k]=N&67108863}return j!==0&&(this.words[k]=j,this.length++),this},V.prototype.muln=function(q){return this.clone().imuln(q)},V.prototype.sqr=function(){return this.mul(this)},V.prototype.isqr=function(){return this.imul(this.clone())},V.prototype.pow=function(q){var j=A(q);if(j.length===0)return new V(1);for(var k=this,g=0;g<j.length&&j[g]===0;g++,k=k.sqr());if(++g<j.length)for(var N=k.sqr();g<j.length;g++,N=N.sqr())j[g]!==0&&(k=k.mul(N));return k},V.prototype.iushln=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26,g=67108863>>>26-j<<26-j,N;if(j!==0){var x=0;for(N=0;N<this.length;N++){var _=this.words[N]&g,B=(this.words[N]|0)-_<<j;this.words[N]=B|x,x=_>>>26-j}x&&(this.words[N]=x,this.length++)}if(k!==0){for(N=this.length-1;N>=0;N--)this.words[N+k]=this.words[N];for(N=0;N<k;N++)this.words[N]=0;this.length+=k}return this.strip()},V.prototype.ishln=function(q){return Z(this.negative===0),this.iushln(q)},V.prototype.iushrn=function(q,j,k){Z(typeof q=="number"&&q>=0);var g;j?g=(j-j%26)/26:g=0;var N=q%26,x=Math.min((q-N)/26,this.length),_=67108863^67108863>>>N<<N,B=k;if(g-=x,g=Math.max(0,g),B){for(var y=0;y<x;y++)B.words[y]=this.words[y];B.length=x}if(x!==0)if(this.length>x)for(this.length-=x,y=0;y<this.length;y++)this.words[y]=this.words[y+x];else this.words[0]=0,this.length=1;var w=0;for(y=this.length-1;y>=0&&(w!==0||y>=g);y--){var f=this.words[y]|0;this.words[y]=w<<26-N|f>>>N,w=f&_}return B&&w!==0&&(B.words[B.length++]=w),this.length===0&&(this.words[0]=0,this.length=1),this.strip()},V.prototype.ishrn=function(q,j,k){return Z(this.negative===0),this.iushrn(q,j,k)},V.prototype.shln=function(q){return this.clone().ishln(q)},V.prototype.ushln=function(q){return this.clone().iushln(q)},V.prototype.shrn=function(q){return this.clone().ishrn(q)},V.prototype.ushrn=function(q){return this.clone().iushrn(q)},V.prototype.testn=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26,g=1<<j;if(this.length<=k)return!1;var N=this.words[k];return!!(N&g)},V.prototype.imaskn=function(q){Z(typeof q=="number"&&q>=0);var j=q%26,k=(q-j)/26;if(Z(this.negative===0,"imaskn works only with positive numbers"),this.length<=k)return this;if(j!==0&&k++,this.length=Math.min(k,this.length),j!==0){var g=67108863^67108863>>>j<<j;this.words[this.length-1]&=g}return this.strip()},V.prototype.maskn=function(q){return this.clone().imaskn(q)},V.prototype.iaddn=function(q){return Z(typeof q=="number"),Z(q<67108864),q<0?this.isubn(-q):this.negative!==0?this.length===1&&(this.words[0]|0)<q?(this.words[0]=q-(this.words[0]|0),this.negative=0,this):(this.negative=0,this.isubn(q),this.negative=1,this):this._iaddn(q)},V.prototype._iaddn=function(q){this.words[0]+=q;for(var j=0;j<this.length&&this.words[j]>=67108864;j++)this.words[j]-=67108864,j===this.length-1?this.words[j+1]=1:this.words[j+1]++;return this.length=Math.max(this.length,j+1),this},V.prototype.isubn=function(q){if(Z(typeof q=="number"),Z(q<67108864),q<0)return this.iaddn(-q);if(this.negative!==0)return this.negative=0,this.iaddn(q),this.negative=1,this;if(this.words[0]-=q,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var j=0;j<this.length&&this.words[j]<0;j++)this.words[j]+=67108864,this.words[j+1]-=1;return this.strip()},V.prototype.addn=function(q){return this.clone().iaddn(q)},V.prototype.subn=function(q){return this.clone().isubn(q)},V.prototype.iabs=function(){return this.negative=0,this},V.prototype.abs=function(){return this.clone().iabs()},V.prototype._ishlnsubmul=function(q,j,k){var g=q.length+k,N;this._expand(g);var x,_=0;for(N=0;N<q.length;N++){x=(this.words[N+k]|0)+_;var B=(q.words[N]|0)*j;x-=B&67108863,_=(x>>26)-(B/67108864|0),this.words[N+k]=x&67108863}for(;N<this.length-k;N++)x=(this.words[N+k]|0)+_,_=x>>26,this.words[N+k]=x&67108863;if(_===0)return this.strip();for(Z(_===-1),_=0,N=0;N<this.length;N++)x=-(this.words[N]|0)+_,_=x>>26,this.words[N]=x&67108863;return this.negative=1,this.strip()},V.prototype._wordDiv=function(q,j){var k=this.length-q.length,g=this.clone(),N=q,x=N.words[N.length-1]|0,_=this._countBits(x);k=26-_,k!==0&&(N=N.ushln(k),g.iushln(k),x=N.words[N.length-1]|0);var B=g.length-N.length,y;if(j!=="mod"){y=new V(null),y.length=B+1,y.words=new Array(y.length);for(var w=0;w<y.length;w++)y.words[w]=0}var f=g.clone()._ishlnsubmul(N,1,B);f.negative===0&&(g=f,y&&(y.words[B]=1));for(var p=B-1;p>=0;p--){var c=(g.words[N.length+p]|0)*67108864+(g.words[N.length+p-1]|0);for(c=Math.min(c/x|0,67108863),g._ishlnsubmul(N,c,p);g.negative!==0;)c--,g.negative=0,g._ishlnsubmul(N,1,p),g.isZero()||(g.negative^=1);y&&(y.words[p]=c)}return y&&y.strip(),g.strip(),j!=="div"&&k!==0&&g.iushrn(k),{div:y||null,mod:g}},V.prototype.divmod=function(q,j,k){if(Z(!q.isZero()),this.isZero())return{div:new V(0),mod:new V(0)};var g,N,x;return this.negative!==0&&q.negative===0?(x=this.neg().divmod(q,j),j!=="mod"&&(g=x.div.neg()),j!=="div"&&(N=x.mod.neg(),k&&N.negative!==0&&N.iadd(q)),{div:g,mod:N}):this.negative===0&&q.negative!==0?(x=this.divmod(q.neg(),j),j!=="mod"&&(g=x.div.neg()),{div:g,mod:x.mod}):(this.negative&q.negative)!==0?(x=this.neg().divmod(q.neg(),j),j!=="div"&&(N=x.mod.neg(),k&&N.negative!==0&&N.isub(q)),{div:x.div,mod:N}):q.length>this.length||this.cmp(q)<0?{div:new V(0),mod:this}:q.length===1?j==="div"?{div:this.divn(q.words[0]),mod:null}:j==="mod"?{div:null,mod:new V(this.modn(q.words[0]))}:{div:this.divn(q.words[0]),mod:new V(this.modn(q.words[0]))}:this._wordDiv(q,j)},V.prototype.div=function(q){return this.divmod(q,"div",!1).div},V.prototype.mod=function(q){return this.divmod(q,"mod",!1).mod},V.prototype.umod=function(q){return this.divmod(q,"mod",!0).mod},V.prototype.divRound=function(q){var j=this.divmod(q);if(j.mod.isZero())return j.div;var k=j.div.negative!==0?j.mod.isub(q):j.mod,g=q.ushrn(1),N=q.andln(1),x=k.cmp(g);return x<0||N===1&&x===0?j.div:j.div.negative!==0?j.div.isubn(1):j.div.iaddn(1)},V.prototype.modn=function(q){Z(q<=67108863);for(var j=(1<<26)%q,k=0,g=this.length-1;g>=0;g--)k=(j*k+(this.words[g]|0))%q;return k},V.prototype.idivn=function(q){Z(q<=67108863);for(var j=0,k=this.length-1;k>=0;k--){var g=(this.words[k]|0)+j*67108864;this.words[k]=g/q|0,j=g%q}return this.strip()},V.prototype.divn=function(q){return this.clone().idivn(q)},V.prototype.egcd=function(q){Z(q.negative===0),Z(!q.isZero());var j=this,k=q.clone();j.negative!==0?j=j.umod(q):j=j.clone();for(var g=new V(1),N=new V(0),x=new V(0),_=new V(1),B=0;j.isEven()&&k.isEven();)j.iushrn(1),k.iushrn(1),++B;for(var y=k.clone(),w=j.clone();!j.isZero();){for(var f=0,p=1;(j.words[0]&p)===0&&f<26;++f,p<<=1);if(f>0)for(j.iushrn(f);f-- >0;)(g.isOdd()||N.isOdd())&&(g.iadd(y),N.isub(w)),g.iushrn(1),N.iushrn(1);for(var c=0,h=1;(k.words[0]&h)===0&&c<26;++c,h<<=1);if(c>0)for(k.iushrn(c);c-- >0;)(x.isOdd()||_.isOdd())&&(x.iadd(y),_.isub(w)),x.iushrn(1),_.iushrn(1);j.cmp(k)>=0?(j.isub(k),g.isub(x),N.isub(_)):(k.isub(j),x.isub(g),_.isub(N))}return{a:x,b:_,gcd:k.iushln(B)}},V.prototype._invmp=function(q){Z(q.negative===0),Z(!q.isZero());var j=this,k=q.clone();j.negative!==0?j=j.umod(q):j=j.clone();for(var g=new V(1),N=new V(0),x=k.clone();j.cmpn(1)>0&&k.cmpn(1)>0;){for(var _=0,B=1;(j.words[0]&B)===0&&_<26;++_,B<<=1);if(_>0)for(j.iushrn(_);_-- >0;)g.isOdd()&&g.iadd(x),g.iushrn(1);for(var y=0,w=1;(k.words[0]&w)===0&&y<26;++y,w<<=1);if(y>0)for(k.iushrn(y);y-- >0;)N.isOdd()&&N.iadd(x),N.iushrn(1);j.cmp(k)>=0?(j.isub(k),g.isub(N)):(k.isub(j),N.isub(g))}var f;return j.cmpn(1)===0?f=g:f=N,f.cmpn(0)<0&&f.iadd(q),f},V.prototype.gcd=function(q){if(this.isZero())return q.abs();if(q.isZero())return this.abs();var j=this.clone(),k=q.clone();j.negative=0,k.negative=0;for(var g=0;j.isEven()&&k.isEven();g++)j.iushrn(1),k.iushrn(1);do{for(;j.isEven();)j.iushrn(1);for(;k.isEven();)k.iushrn(1);var N=j.cmp(k);if(N<0){var x=j;j=k,k=x}else if(N===0||k.cmpn(1)===0)break;j.isub(k)}while(!0);return k.iushln(g)},V.prototype.invm=function(q){return this.egcd(q).a.umod(q)},V.prototype.isEven=function(){return(this.words[0]&1)===0},V.prototype.isOdd=function(){return(this.words[0]&1)===1},V.prototype.andln=function(q){return this.words[0]&q},V.prototype.bincn=function(q){Z(typeof q=="number");var j=q%26,k=(q-j)/26,g=1<<j;if(this.length<=k)return this._expand(k+1),this.words[k]|=g,this;for(var N=g,x=k;N!==0&&x<this.length;x++){var _=this.words[x]|0;_+=N,N=_>>>26,_&=67108863,this.words[x]=_}return N!==0&&(this.words[x]=N,this.length++),this},V.prototype.isZero=function(){return this.length===1&&this.words[0]===0},V.prototype.cmpn=function(q){var j=q<0;if(this.negative!==0&&!j)return-1;if(this.negative===0&&j)return 1;this.strip();var k;if(this.length>1)k=1;else{j&&(q=-q),Z(q<=67108863,"Number is too big");var g=this.words[0]|0;k=g===q?0:g<q?-1:1}return this.negative!==0?-k|0:k},V.prototype.cmp=function(q){if(this.negative!==0&&q.negative===0)return-1;if(this.negative===0&&q.negative!==0)return 1;var j=this.ucmp(q);return this.negative!==0?-j|0:j},V.prototype.ucmp=function(q){if(this.length>q.length)return 1;if(this.length<q.length)return-1;for(var j=0,k=this.length-1;k>=0;k--){var g=this.words[k]|0,N=q.words[k]|0;if(g!==N){g<N?j=-1:g>N&&(j=1);break}}return j},V.prototype.gtn=function(q){return this.cmpn(q)===1},V.prototype.gt=function(q){return this.cmp(q)===1},V.prototype.gten=function(q){return this.cmpn(q)>=0},V.prototype.gte=function(q){return this.cmp(q)>=0},V.prototype.ltn=function(q){return this.cmpn(q)===-1},V.prototype.lt=function(q){return this.cmp(q)===-1},V.prototype.lten=function(q){return this.cmpn(q)<=0},V.prototype.lte=function(q){return this.cmp(q)<=0},V.prototype.eqn=function(q){return this.cmpn(q)===0},V.prototype.eq=function(q){return this.cmp(q)===0},V.red=function(q){return new S(q)},V.prototype.toRed=function(q){return Z(!this.red,"Already a number in reduction context"),Z(this.negative===0,"red works only with positives"),q.convertTo(this)._forceRed(q)},V.prototype.fromRed=function(){return Z(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},V.prototype._forceRed=function(q){return this.red=q,this},V.prototype.forceRed=function(q){return Z(!this.red,"Already a number in reduction context"),this._forceRed(q)},V.prototype.redAdd=function(q){return Z(this.red,"redAdd works only with red numbers"),this.red.add(this,q)},V.prototype.redIAdd=function(q){return Z(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,q)},V.prototype.redSub=function(q){return Z(this.red,"redSub works only with red numbers"),this.red.sub(this,q)},V.prototype.redISub=function(q){return Z(this.red,"redISub works only with red numbers"),this.red.isub(this,q)},V.prototype.redShl=function(q){return Z(this.red,"redShl works only with red numbers"),this.red.shl(this,q)},V.prototype.redMul=function(q){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,q),this.red.mul(this,q)},V.prototype.redIMul=function(q){return Z(this.red,"redMul works only with red numbers"),this.red._verify2(this,q),this.red.imul(this,q)},V.prototype.redSqr=function(){return Z(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},V.prototype.redISqr=function(){return Z(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},V.prototype.redSqrt=function(){return Z(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},V.prototype.redInvm=function(){return Z(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},V.prototype.redNeg=function(){return Z(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},V.prototype.redPow=function(q){return Z(this.red&&!q.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,q)};var C={k256:null,p224:null,p192:null,p25519:null};function L(q,j){this.name=q,this.p=new V(j,16),this.n=this.p.bitLength(),this.k=new V(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}L.prototype._tmp=function(){var q=new V(null);return q.words=new Array(Math.ceil(this.n/13)),q},L.prototype.ireduce=function(q){var j=q,k;do this.split(j,this.tmp),j=this.imulK(j),j=j.iadd(this.tmp),k=j.bitLength();while(k>this.n);var g=k<this.n?-1:j.ucmp(this.p);return g===0?(j.words[0]=0,j.length=1):g>0?j.isub(this.p):j.strip!==void 0?j.strip():j._strip(),j},L.prototype.split=function(q,j){q.iushrn(this.n,0,j)},L.prototype.imulK=function(q){return q.imul(this.k)};function R(){L.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}G(R,L),R.prototype.split=function(q,j){for(var k=4194303,g=Math.min(q.length,9),N=0;N<g;N++)j.words[N]=q.words[N];if(j.length=g,q.length<=9){q.words[0]=0,q.length=1;return}var x=q.words[9];for(j.words[j.length++]=x&k,N=10;N<q.length;N++){var _=q.words[N]|0;q.words[N-10]=(_&k)<<4|x>>>22,x=_}x>>>=22,q.words[N-10]=x,x===0&&q.length>10?q.length-=10:q.length-=9},R.prototype.imulK=function(q){q.words[q.length]=0,q.words[q.length+1]=0,q.length+=2;for(var j=0,k=0;k<q.length;k++){var g=q.words[k]|0;j+=g*977,q.words[k]=j&67108863,j=g*64+(j/67108864|0)}return q.words[q.length-1]===0&&(q.length--,q.words[q.length-1]===0&&q.length--),q};function P(){L.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}G(P,L);function z(){L.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}G(z,L);function M(){L.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}G(M,L),M.prototype.imulK=function(q){for(var j=0,k=0;k<q.length;k++){var g=(q.words[k]|0)*19+j,N=g&67108863;g>>>=26,q.words[k]=N,j=g}return j!==0&&(q.words[q.length++]=j),q},V._prime=function(q){if(C[q])return C[q];var j;if(q==="k256")j=new R;else if(q==="p224")j=new P;else if(q==="p192")j=new z;else if(q==="p25519")j=new M;else throw new Error("Unknown prime "+q);return C[q]=j,j};function S(q){if(typeof q=="string"){var j=V._prime(q);this.m=j.p,this.prime=j}else Z(q.gtn(1),"modulus must be greater than 1"),this.m=q,this.prime=null}S.prototype._verify1=function(q){Z(q.negative===0,"red works only with positives"),Z(q.red,"red works only with red numbers")},S.prototype._verify2=function(q,j){Z((q.negative|j.negative)===0,"red works only with positives"),Z(q.red&&q.red===j.red,"red works only with red numbers")},S.prototype.imod=function(q){return this.prime?this.prime.ireduce(q)._forceRed(this):q.umod(this.m)._forceRed(this)},S.prototype.neg=function(q){return q.isZero()?q.clone():this.m.sub(q)._forceRed(this)},S.prototype.add=function(q,j){this._verify2(q,j);var k=q.add(j);return k.cmp(this.m)>=0&&k.isub(this.m),k._forceRed(this)},S.prototype.iadd=function(q,j){this._verify2(q,j);var k=q.iadd(j);return k.cmp(this.m)>=0&&k.isub(this.m),k},S.prototype.sub=function(q,j){this._verify2(q,j);var k=q.sub(j);return k.cmpn(0)<0&&k.iadd(this.m),k._forceRed(this)},S.prototype.isub=function(q,j){this._verify2(q,j);var k=q.isub(j);return k.cmpn(0)<0&&k.iadd(this.m),k},S.prototype.shl=function(q,j){return this._verify1(q),this.imod(q.ushln(j))},S.prototype.imul=function(q,j){return this._verify2(q,j),this.imod(q.imul(j))},S.prototype.mul=function(q,j){return this._verify2(q,j),this.imod(q.mul(j))},S.prototype.isqr=function(q){return this.imul(q,q.clone())},S.prototype.sqr=function(q){return this.mul(q,q)},S.prototype.sqrt=function(q){if(q.isZero())return q.clone();var j=this.m.andln(3);if(Z(j%2===1),j===3){var k=this.m.add(new V(1)).iushrn(2);return this.pow(q,k)}for(var g=this.m.subn(1),N=0;!g.isZero()&&g.andln(1)===0;)N++,g.iushrn(1);Z(!g.isZero());var x=new V(1).toRed(this),_=x.redNeg(),B=this.m.subn(1).iushrn(1),y=this.m.bitLength();for(y=new V(2*y*y).toRed(this);this.pow(y,B).cmp(_)!==0;)y.redIAdd(_);for(var w=this.pow(y,g),f=this.pow(q,g.addn(1).iushrn(1)),p=this.pow(q,g),c=N;p.cmp(x)!==0;){for(var h=p,d=0;h.cmp(x)!==0;d++)h=h.redSqr();Z(d<c);var b=this.pow(w,new V(1).iushln(c-d-1));f=f.redMul(b),w=b.redSqr(),p=p.redMul(w),c=d}return f},S.prototype.invm=function(q){var j=q._invmp(this.m);return j.negative!==0?(j.negative=0,this.imod(j).redNeg()):this.imod(j)},S.prototype.pow=function(q,j){if(j.isZero())return new V(1).toRed(this);if(j.cmpn(1)===0)return q.clone();var k=4,g=new Array(1<<k);g[0]=new V(1).toRed(this),g[1]=q;for(var N=2;N<g.length;N++)g[N]=this.mul(g[N-1],q);var x=g[0],_=0,B=0,y=j.bitLength()%26;for(y===0&&(y=26),N=j.length-1;N>=0;N--){for(var w=j.words[N],f=y-1;f>=0;f--){var p=w>>f&1;if(x!==g[0]&&(x=this.sqr(x)),p===0&&_===0){B=0;continue}_<<=1,_|=p,B++,!(B!==k&&(N!==0||f!==0))&&(x=this.mul(x,g[_]),B=0,_=0)}y=26}return x},S.prototype.convertTo=function(q){var j=q.umod(this.m);return j===q?j.clone():j},S.prototype.convertFrom=function(q){var j=q.clone();return j.red=null,j},V.mont=function(q){return new v(q)};function v(q){S.call(this,q),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new V(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}G(v,S),v.prototype.convertTo=function(q){return this.imod(q.ushln(this.shift))},v.prototype.convertFrom=function(q){var j=this.imod(q.mul(this.rinv));return j.red=null,j},v.prototype.imul=function(q,j){if(q.isZero()||j.isZero())return q.words[0]=0,q.length=1,q;var k=q.imul(j),g=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=k.isub(g).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},v.prototype.mul=function(q,j){if(q.isZero()||j.isZero())return new V(0)._forceRed(this);var k=q.mul(j),g=k.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),N=k.isub(g).iushrn(this.shift),x=N;return N.cmp(this.m)>=0?x=N.isub(this.m):N.cmpn(0)<0&&(x=N.iadd(this.m)),x._forceRed(this)},v.prototype.invm=function(q){var j=this.imod(q._invmp(this.m).mul(this.r2));return j._forceRed(this)}})(typeof $>"u"||$,bZ)}}),{CryptoHasher:lY}=globalThis.Bun,oY=P$({"node_modules/public-encrypt/withPublic.js"(bZ,$){var Q=bY(),Y=M$().Buffer;function Z(G,V){return Y.from(G.toRed(Q.mont(V.modulus)).redPow(new Q(V.publicExponent)).fromRed().toArray())}$.exports=Z}}),uY=P$({"node_modules/public-encrypt/publicEncrypt.js"(bZ,$){var Q=_Y(),Y=S$(),Z=h$(),G=hY(),V=dY(),U=bY(),X=oY(),K=wQ(),I=M$().Buffer;$.exports=function(A,W,H){var E;A.padding?E=A.padding:H?E=1:E=4;var T=Q(A),D;if(E===4)D=J(T,W);else if(E===1)D=O(T,W,H);else if(E===3){if(D=new U(W),D.cmp(T.modulus)>=0)throw new Error("data too long for modulus")}else throw new Error("unknown padding");return H?K(D,T):X(D,T)};function J(A,W){var H=A.modulus.byteLength(),E=W.length,T=Z("sha1").update(I.alloc(0)).digest(),D=T.length,C=2*D;if(E>H-C-2)throw new Error("message too long");var L=I.alloc(H-E-C-2),R=H-D-1,P=Y(D),z=V(I.concat([T,L,I.alloc(1,1),W],R),G(P,R)),M=V(P,G(z,D));return new U(I.concat([I.alloc(1),M,z],H))}function O(A,W,H){var E=W.length,T=A.modulus.byteLength();if(E>T-11)throw new Error("message too long");var D;return H?D=I.alloc(T-E-3,255):D=F(T-E-3),new U(I.concat([I.from([0,H?1:2]),D,I.alloc(1),W],T))}function F(A){for(var W=I.allocUnsafe(A),H=0,E=Y(A*2),T=0,D;H<A;)T===E.length&&(E=Y(A*2),T=0),D=E[T++],D&&(W[H++]=D);return W}}}),nY=P$({"node_modules/public-encrypt/privateDecrypt.js"(bZ,$){var Q=_Y(),Y=hY(),Z=dY(),G=bY(),V=wQ(),U=h$(),X=oY(),K=M$().Buffer;$.exports=function(F,A,W){var H;F.padding?H=F.padding:W?H=1:H=4;var E=Q(F),T=E.modulus.byteLength();if(A.length>T||new G(A).cmp(E.modulus)>=0)throw new Error("decryption error");var D;W?D=X(new G(A),E):D=V(A,E);var C=K.alloc(T-D.length);if(D=K.concat([C,D],T),H===4)return I(E,D);if(H===1)return J(E,D,W);if(H===3)return D;throw new Error("unknown padding")};function I(F,A){var W=F.modulus.byteLength(),H=U("sha1").update(K.alloc(0)).digest(),E=H.length;if(A[0]!==0)throw new Error("decryption error");var T=A.slice(1,E+1),D=A.slice(E+1),C=Z(T,Y(D,E)),L=Z(D,Y(C,W-E-1));if(O(H,L.slice(0,E)))throw new Error("decryption error");for(var R=E;L[R]===0;)R++;if(L[R++]!==1)throw new Error("decryption error");return L.slice(R)}function J(F,A,W){for(var H=A.slice(0,2),E=2,T=0;A[E++]!==0;)if(E>=A.length){T++;break}var D=A.slice(2,E-1);if((H.toString("hex")!=="0002"&&!W||H.toString("hex")!=="0001"&&W)&&T++,D.length<8&&T++,T)throw new Error("decryption error");return A.slice(E)}function O(F,A){F=K.from(F),A=K.from(A);var W=0,H=F.length;F.length!==A.length&&(W++,H=Math.min(F.length,A.length));for(var E=-1;++E<H;)W+=F[E]^A[E];return W}}}),sY=P$({"node_modules/public-encrypt/browser.js"(bZ){bZ.publicEncrypt=uY(),bZ.privateDecrypt=nY(),bZ.privateEncrypt=function($,Q){return bZ.publicEncrypt($,Q,!0)},bZ.publicDecrypt=function($,Q){return bZ.privateDecrypt($,Q,!0)}}}),tY=P$({"node_modules/randomfill/browser.js"(bZ){var $=M$(),Q=S$(),Y=$.Buffer,Z=$.kMaxLength,G=Math.pow(2,32)-1;function V(J,O){if(typeof J!="number"||J!==J)throw new TypeError("offset must be a number");if(J>G||J<0)throw new TypeError("offset must be a uint32");if(J>Z||J>O)throw new RangeError("offset out of range")}function U(J,O,F){if(typeof J!="number"||J!==J)throw new TypeError("size must be a number");if(J>G||J<0)throw new TypeError("size must be a uint32");if(J+O>F||J>Z)throw new RangeError("buffer too small")}bZ.randomFill=X,bZ.randomFillSync=I;function X(J,O,F,A){if(!Y.isBuffer(J)&&!(J instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof O=="function")A=O,O=0,F=J.length;else if(typeof F=="function")A=F,F=J.length-O;else if(typeof A!="function")throw new TypeError('"cb" argument must be a function');return V(O,J.length),U(F,O,J.length),K(J,O,F,A)}function K(J,O,F,A){if(A){Q(F,function(H,E){if(H)return A(H);E.copy(J,O),A(null,J)});return}var W=Q(F);return W.copy(J,O),J}function I(J,O,F){if(typeof O>"u"&&(O=0),!Y.isBuffer(J)&&!(J instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return V(O,J.length),F===void 0&&(F=J.length-O),U(F,O,J.length),K(J,O,F)}}}),mY=P$({"node_modules/crypto-browserify/index.js"(bZ){bZ.randomBytes=bZ.rng=bZ.pseudoRandomBytes=bZ.prng=S$(),bZ.createHash=h$(),bZ.Hash=bZ.createHash.Hash,bZ.createHmac=bZ.Hmac=l$();var $=u$(),Q=Object.keys($),Y=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(Q);bZ.getHashes=function(){return Y};var Z=r$();bZ.pbkdf2=Z.pbkdf2,bZ.pbkdf2Sync=Z.pbkdf2Sync;var G=SQ();bZ.Cipher=G.Cipher,bZ.createCipher=G.createCipher,bZ.Cipheriv=G.Cipheriv,bZ.createCipheriv=G.createCipheriv,bZ.Decipher=G.Decipher,bZ.createDecipher=G.createDecipher,bZ.Decipheriv=G.Decipheriv,bZ.createDecipheriv=G.createDecipheriv,bZ.getCiphers=G.getCiphers,bZ.listCiphers=G.listCiphers;var V=BQ();bZ.DiffieHellmanGroup=V.DiffieHellmanGroup,bZ.createDiffieHellmanGroup=V.createDiffieHellmanGroup,bZ.getDiffieHellman=V.getDiffieHellman,bZ.createDiffieHellman=V.createDiffieHellman,bZ.DiffieHellman=V.DiffieHellman;var U=fY();bZ.createSign=U.createSign,bZ.Sign=U.Sign,bZ.createVerify=U.createVerify,bZ.Verify=U.Verify,bZ.createECDH=cY();var X=sY();bZ.publicEncrypt=X.publicEncrypt,bZ.privateEncrypt=X.privateEncrypt,bZ.publicDecrypt=X.publicDecrypt,bZ.privateDecrypt=X.privateDecrypt,bZ.getRandomValues=(I)=>O$.getRandomValues(I);var K=tY();bZ.randomFill=K.randomFill,bZ.randomFillSync=K.randomFillSync,bZ.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join(` +`))},bZ.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}}}),aY={...mY(),[Symbol.for("CommonJS")]:0},W$="buffer",rY=(bZ)=>O$.getRandomValues(bZ),eY=()=>O$.randomUUID(),H$="timingSafeEqual"in O$?(bZ,$)=>{let{byteLength:Q}=bZ,{byteLength:Y}=$;if(typeof Q!="number"||typeof Y!="number")throw new TypeError("Input must be an array buffer view");if(Q!==Y)throw new RangeError("Input buffers must have the same length");return O$.timingSafeEqual(bZ,$)}:void 0,iY="scryptSync"in O$?(bZ,$,Q,Y)=>{let Z=O$.scryptSync(bZ,$,Q,Y);return W$!=="buffer"?new Buffer(Z).toString(W$):new Buffer(Z)}:void 0,$Z="scryptSync"in O$?function(bZ,$,Q,Y,Z){if(typeof Y=="function"&&(Z=Y,Y=void 0),typeof Z!="function"){var G=new TypeError("callback must be a function");throw G.code="ERR_INVALID_CALLBACK",G}try{let V=O$.scryptSync(bZ,$,Q,Y);process.nextTick(Z,null,W$!=="buffer"?new Buffer(V).toString(W$):new Buffer(V))}catch(V){throw V}}:void 0;H$&&(Object.defineProperty(H$,"name",{value:"::bunternal::"}),Object.defineProperty($Z,"name",{value:"::bunternal::"}),Object.defineProperty(iY,"name",{value:"::bunternal::"}));var E$=O$;z$(aY,{DEFAULT_ENCODING:()=>W$,getRandomValues:()=>rY,randomUUID:()=>eY,scrypt:()=>$Z,scryptSync:()=>iY,timingSafeEqual:()=>H$,webcrypto:()=>E$,subtle:()=>E$.subtle});var{randomBytes:QZ,rng:YZ,pseudoRandomBytes:ZZ,prng:GZ,Hash:VZ,createHash:UZ,createHmac:XZ,Hmac:KZ,getHashes:IZ,pbkdf2:JZ,pbkdf2Sync:OZ,Cipher:FZ,createCipher:AZ,Cipheriv:WZ,createCipheriv:HZ,Decipher:EZ,createDecipher:TZ,Decipheriv:DZ,createDecipheriv:CZ,getCiphers:LZ,listCiphers:RZ,DiffieHellmanGroup:PZ,createDiffieHellmanGroup:zZ,getDiffieHellman:MZ,createDiffieHellman:SZ,DiffieHellman:vZ,createSign:qZ,Sign:jZ,createVerify:kZ,Verify:gZ,createECDH:NZ,publicEncrypt:xZ,privateEncrypt:_Z,publicDecrypt:BZ,privateDecrypt:yZ,randomFill:wZ,randomFillSync:fZ,createCredentials:pZ,constants:cZ}=aY;var dZ=aY;/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */export{E$ as webcrypto,H$ as timingSafeEqual,iY as scryptSync,$Z as scrypt,YZ as rng,eY as randomUUID,fZ as randomFillSync,wZ as randomFill,QZ as randomBytes,xZ as publicEncrypt,BZ as publicDecrypt,ZZ as pseudoRandomBytes,GZ as prng,_Z as privateEncrypt,yZ as privateDecrypt,OZ as pbkdf2Sync,JZ as pbkdf2,RZ as listCiphers,rY as getRandomValues,IZ as getHashes,MZ as getDiffieHellman,LZ as getCiphers,dZ as default,kZ as createVerify,qZ as createSign,XZ as createHmac,UZ as createHash,NZ as createECDH,zZ as createDiffieHellmanGroup,SZ as createDiffieHellman,CZ as createDecipheriv,TZ as createDecipher,pZ as createCredentials,HZ as createCipheriv,AZ as createCipher,cZ as constants,gZ as Verify,jZ as Sign,KZ as Hmac,VZ as Hash,PZ as DiffieHellmanGroup,vZ as DiffieHellman,DZ as Decipheriv,EZ as Decipher,W$ as DEFAULT_ENCODING,WZ as Cipheriv,FZ as Cipher}; diff --git a/src/js/out/modules/node/http.js b/src/js/out/modules/node/http.js index dd007e740..02e000138 100644 --- a/src/js/out/modules/node/http.js +++ b/src/js/out/modules/node/http.js @@ -93,7 +93,8 @@ function get(url, options, cb) { return req.end(), req; } var { EventEmitter } = import.meta.require("node:events"), { isIPv6 } = import.meta.require("node:net"), { Readable, Writable, Duplex } = import.meta.require("node:stream"), { URL } = import.meta.require("node:url"), { newArrayWithSize, String, Object, Array } = import.meta.primordials, { isTypedArray } = import.meta.require("util/types"), globalReportError = globalThis.reportError, setTimeout = globalThis.setTimeout, fetch = Bun.fetch, nop = () => { -}, __DEBUG__ = process.env.__DEBUG__, debug = __DEBUG__ ? (...args) => console.log("node:http", ...args) : nop, kEmptyObject = Object.freeze(Object.create(null)), kOutHeaders = Symbol.for("kOutHeaders"), kEndCalled = Symbol.for("kEndCalled"), kAbortController = Symbol.for("kAbortController"), kClearTimeout = Symbol("kClearTimeout"), kCorked = Symbol.for("kCorked"), searchParamsSymbol = Symbol.for("query"), StringPrototypeSlice = String.prototype.slice, StringPrototypeStartsWith = String.prototype.startsWith, StringPrototypeToUpperCase = String.prototype.toUpperCase, StringPrototypeIncludes = String.prototype.includes, StringPrototypeCharCodeAt = String.prototype.charCodeAt, StringPrototypeIndexOf = String.prototype.indexOf, ArrayIsArray = Array.isArray, RegExpPrototypeExec = RegExp.prototype.exec, ObjectAssign = Object.assign, ObjectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty, INVALID_PATH_REGEX = /[^\u0021-\u00ff]/, NODE_HTTP_WARNING = "WARN: Agent is mostly unused in Bun's implementation of http. If you see strange behavior, this is probably the cause.", _globalAgent, _defaultHTTPSAgent, kInternalRequest = Symbol("kInternalRequest"), kInternalSocketData = Symbol.for("::bunternal::"), kEmptyBuffer = Buffer.alloc(0), FakeSocket = class Socket extends Duplex { +}, __DEBUG__ = process.env.__DEBUG__, debug = __DEBUG__ ? (...args) => console.log("node:http", ...args) : nop, kEmptyObject = Object.freeze(Object.create(null)), kOutHeaders = Symbol.for("kOutHeaders"), kEndCalled = Symbol.for("kEndCalled"), kAbortController = Symbol.for("kAbortController"), kClearTimeout = Symbol("kClearTimeout"), kCorked = Symbol.for("kCorked"), searchParamsSymbol = Symbol.for("query"), StringPrototypeSlice = String.prototype.slice, StringPrototypeStartsWith = String.prototype.startsWith, StringPrototypeToUpperCase = String.prototype.toUpperCase, StringPrototypeIncludes = String.prototype.includes, StringPrototypeCharCodeAt = String.prototype.charCodeAt, StringPrototypeIndexOf = String.prototype.indexOf, ArrayIsArray = Array.isArray, RegExpPrototypeExec = RegExp.prototype.exec, ObjectAssign = Object.assign, ObjectPrototypeHasOwnProperty = Object.prototype.hasOwnProperty, INVALID_PATH_REGEX = /[^\u0021-\u00ff]/; +var _globalAgent, _defaultHTTPSAgent, kInternalRequest = Symbol("kInternalRequest"), kInternalSocketData = Symbol.for("::bunternal::"), kEmptyBuffer = Buffer.alloc(0), FakeSocket = class Socket extends Duplex { bytesRead = 0; bytesWritten = 0; connecting = !1; diff --git a/src/js/out/modules/node/net.js b/src/js/out/modules/node/net.js index ddd799cf2..162da7754 100644 --- a/src/js/out/modules/node/net.js +++ b/src/js/out/modules/node/net.js @@ -24,7 +24,9 @@ var isIPv4 = function(s) { self.emit("listening"); }, createServer = function(options, connectionListener) { return new Server(options, connectionListener); -}, v4Seg = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])", v4Str = "((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])", IPv4Reg = new RegExp("^((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"), v6Seg = "(?:[0-9a-fA-F]{1,4})", IPv6Reg = new RegExp("^((?:(?:[0-9a-fA-F]{1,4}):){7}(?:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){6}(?:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){5}(?::((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,2}|:)|(?:(?:[0-9a-fA-F]{1,4}):){4}(?:(:(?:[0-9a-fA-F]{1,4})){0,1}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,3}|:)|(?:(?:[0-9a-fA-F]{1,4}):){3}(?:(:(?:[0-9a-fA-F]{1,4})){0,2}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,4}|:)|(?:(?:[0-9a-fA-F]{1,4}):){2}(?:(:(?:[0-9a-fA-F]{1,4})){0,3}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,5}|:)|(?:(?:[0-9a-fA-F]{1,4}):){1}(?:(:(?:[0-9a-fA-F]{1,4})){0,4}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,6}|:)|(?::((?::(?:[0-9a-fA-F]{1,4})){0,5}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(?::(?:[0-9a-fA-F]{1,4})){1,7}|:)))(%[0-9a-zA-Z-.:]{1,})?$"), { Bun, createFIFO, Object } = import.meta.primordials, { connect: bunConnect } = Bun, { Duplex } = import.meta.require("node:stream"), { EventEmitter } = import.meta.require("node:events"), { setTimeout } = globalThis, bunTlsSymbol = Symbol.for("::buntls::"), bunSocketServerHandlers = Symbol.for("::bunsocket_serverhandlers::"), bunSocketServerConnections = Symbol.for("::bunnetserverconnections::"), bunSocketServerOptions = Symbol.for("::bunnetserveroptions::"), SocketClass, Socket = function(InternalSocket) { +}; +var IPv4Reg = new RegExp("^((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])$"); +var IPv6Reg = new RegExp("^((?:(?:[0-9a-fA-F]{1,4}):){7}(?:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){6}(?:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){5}(?::((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,2}|:)|(?:(?:[0-9a-fA-F]{1,4}):){4}(?:(:(?:[0-9a-fA-F]{1,4})){0,1}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,3}|:)|(?:(?:[0-9a-fA-F]{1,4}):){3}(?:(:(?:[0-9a-fA-F]{1,4})){0,2}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,4}|:)|(?:(?:[0-9a-fA-F]{1,4}):){2}(?:(:(?:[0-9a-fA-F]{1,4})){0,3}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,5}|:)|(?:(?:[0-9a-fA-F]{1,4}):){1}(?:(:(?:[0-9a-fA-F]{1,4})){0,4}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(:(?:[0-9a-fA-F]{1,4})){1,6}|:)|(?::((?::(?:[0-9a-fA-F]{1,4})){0,5}:((?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])[.]){3}(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])|(?::(?:[0-9a-fA-F]{1,4})){1,7}|:)))(%[0-9a-zA-Z-.:]{1,})?$"), { Bun, createFIFO, Object } = import.meta.primordials, { connect: bunConnect } = Bun, { Duplex } = import.meta.require("node:stream"), { EventEmitter } = import.meta.require("node:events"), { setTimeout } = globalThis, bunTlsSymbol = Symbol.for("::buntls::"), bunSocketServerHandlers = Symbol.for("::bunsocket_serverhandlers::"), bunSocketServerConnections = Symbol.for("::bunnetserverconnections::"), bunSocketServerOptions = Symbol.for("::bunnetserveroptions::"), SocketClass, Socket = function(InternalSocket) { return SocketClass = InternalSocket, Object.defineProperty(SocketClass.prototype, Symbol.toStringTag, { value: "Socket", enumerable: !1 diff --git a/src/js/out/modules/node/path.js b/src/js/out/modules/node/path.js index c089dd8d5..ad6a231a9 100644 --- a/src/js/out/modules/node/path.js +++ b/src/js/out/modules/node/path.js @@ -1 +1 @@ -var k=function(f){var m=g({basename:f.basename.bind(f),dirname:f.dirname.bind(f),extname:f.extname.bind(f),format:f.format.bind(f),isAbsolute:f.isAbsolute.bind(f),join:f.join.bind(f),normalize:f.normalize.bind(f),parse:f.parse.bind(f),relative:f.relative.bind(f),resolve:f.resolve.bind(f),toNamespacedPath:f.toNamespacedPath.bind(f),sep:f.sep,delimiter:f.delimiter});return m.default=m,m},g=(f)=>Object.assign(Object.create(null),f),q=k(Bun._Path()),v=k(Bun._Path(!1)),y=k(Bun._Path(!0));q.win32=y;q.posix=v;var{basename:z,dirname:A,extname:B,format:C,isAbsolute:D,join:E,normalize:F,parse:G,relative:H,resolve:I,toNamespacedPath:J,sep:K,delimiter:L,__esModule:N}=q;q[Symbol.for("CommonJS")]=0;q.__esModule=!0;var P=q;export{y as win32,J as toNamespacedPath,K as sep,I as resolve,H as relative,v as posix,G as parse,F as normalize,E as join,D as isAbsolute,C as format,B as extname,A as dirname,L as delimiter,P as default,g as createModule,z as basename,N as __esModule}; +var z=function(f){var v=y({basename:f.basename.bind(f),dirname:f.dirname.bind(f),extname:f.extname.bind(f),format:f.format.bind(f),isAbsolute:f.isAbsolute.bind(f),join:f.join.bind(f),normalize:f.normalize.bind(f),parse:f.parse.bind(f),relative:f.relative.bind(f),resolve:f.resolve.bind(f),toNamespacedPath:f.toNamespacedPath.bind(f),sep:f.sep,delimiter:f.delimiter});return v.default=v,v},y=(f)=>Object.assign(Object.create(null),f),I=z(Bun._Path()),m=z(Bun._Path(!1)),J=z(Bun._Path(!0));I.win32=J;I.posix=m;var{basename:A,dirname:K,extname:B,format:g,isAbsolute:C,join:D,normalize:E,parse:L,relative:k,resolve:N,toNamespacedPath:F,sep:O,delimiter:G,__esModule:q}=I;I[Symbol.for("CommonJS")]=0;I.__esModule=!0;var H=I;export{J as win32,F as toNamespacedPath,O as sep,N as resolve,k as relative,m as posix,L as parse,E as normalize,D as join,C as isAbsolute,g as format,B as extname,K as dirname,G as delimiter,H as default,y as createModule,A as basename,q as __esModule}; diff --git a/src/js/out/modules/node/path.posix.js b/src/js/out/modules/node/path.posix.js index 64e8a62f5..8071342a9 100644 --- a/src/js/out/modules/node/path.posix.js +++ b/src/js/out/modules/node/path.posix.js @@ -1 +1 @@ -var i=function(e){return{basename:e.basename.bind(e),dirname:e.dirname.bind(e),extname:e.extname.bind(e),format:e.format.bind(e),isAbsolute:e.isAbsolute.bind(e),join:e.join.bind(e),normalize:e.normalize.bind(e),parse:e.parse.bind(e),relative:e.relative.bind(e),resolve:e.resolve.bind(e),toNamespacedPath:e.toNamespacedPath.bind(e),sep:e.sep,delimiter:e.delimiter}},r=i(Bun._Path(!1));r[Symbol.for("CommonJS")]=0;var{basename:d,dirname:l,extname:s,format:c,isAbsolute:f,join:g,normalize:k,parse:m,relative:q,resolve:t,toNamespacedPath:v,sep:w,delimiter:x}=r,z=r;export{v as toNamespacedPath,w as sep,t as resolve,q as relative,m as parse,k as normalize,g as join,f as isAbsolute,c as format,s as extname,l as dirname,x as delimiter,z as default,d as basename}; +var e=function(l){return{basename:l.basename.bind(l),dirname:l.dirname.bind(l),extname:l.extname.bind(l),format:l.format.bind(l),isAbsolute:l.isAbsolute.bind(l),join:l.join.bind(l),normalize:l.normalize.bind(l),parse:l.parse.bind(l),relative:l.relative.bind(l),resolve:l.resolve.bind(l),toNamespacedPath:l.toNamespacedPath.bind(l),sep:l.sep,delimiter:l.delimiter}},r=e(Bun._Path(!1));r[Symbol.for("CommonJS")]=0;var{basename:g,dirname:s,extname:k,format:m,isAbsolute:q,join:t,normalize:v,parse:w,relative:x,resolve:i,toNamespacedPath:d,sep:c,delimiter:f}=r,z=r;export{d as toNamespacedPath,c as sep,i as resolve,x as relative,w as parse,v as normalize,t as join,q as isAbsolute,m as format,k as extname,s as dirname,f as delimiter,z as default,g as basename}; diff --git a/src/js/out/modules/node/stream.consumers.js b/src/js/out/modules/node/stream.consumers.js index 1c66aab55..e2cfb9cc1 100644 --- a/src/js/out/modules/node/stream.consumers.js +++ b/src/js/out/modules/node/stream.consumers.js @@ -1 +1 @@ -var{Bun:T}=import.meta.primordials,c=T.readableStreamToArrayBuffer,g=T.readableStreamToText,h=(o)=>T.readableStreamToText(o).then(JSON.parse),i=async(o)=>{return new Buffer(await c(o))},k=T.readableStreamToBlob,p={[Symbol.for("CommonJS")]:0,arrayBuffer:c,text:g,json:h,buffer:i,blob:k};export{g as text,h as json,p as default,i as buffer,k as blob,c as arrayBuffer}; +var{Bun:o}=import.meta.primordials,i=o.readableStreamToArrayBuffer,p=o.readableStreamToText,c=(q)=>o.readableStreamToText(q).then(JSON.parse),T=async(q)=>{return new Buffer(await i(q))},h=o.readableStreamToBlob,k={[Symbol.for("CommonJS")]:0,arrayBuffer:i,text:p,json:c,buffer:T,blob:h};export{p as text,c as json,k as default,T as buffer,h as blob,i as arrayBuffer}; diff --git a/src/js/out/modules/node/stream.js b/src/js/out/modules/node/stream.js index 533cf8a04..100ca09fa 100644 --- a/src/js/out/modules/node/stream.js +++ b/src/js/out/modules/node/stream.js @@ -1,2 +1,2 @@ -var wq=function(q){if(!(this instanceof wq))return new wq(q);bq.call(this,q);const Q=q.__id;if(Q)fq(this,"__id",{value:Q,readable:!0,writable:!1,enumerable:!1})},dq=function(q){return typeof q==="object"&&q!==null&&q instanceof ReadableStream},lq=function(q,Q){if(typeof q!=="boolean")throw new nq(Q,"boolean",q)};var nq=function(q,Q,X){return new Error(`The argument '${q}' is invalid. Received '${X}' for type '${Q}'`)},oq=function(q,Q,X){return new Error(`The value '${Q}' is invalid for argument '${q}'. Reason: ${X}`)},jQ=function(q,Q){var[X,J,H,Z,K,B,Y]=globalThis[Symbol.for("Bun.lazy")](q),$=[!1],z=function(j,L,N,W){if(L>0){const P=N.subarray(0,L),I=N.subarray(L);if(P.byteLength>0)j.push(P);if(W)j.push(null);return I.byteLength>0?I:void 0}if(W)j.push(null);return N},V=function(j,L,N,W){if(L.byteLength>0)j.push(L);if(W)j.push(null);return N},G=process.env.BUN_DISABLE_DYNAMIC_CHUNK_SIZE!=="1";const U=new FinalizationRegistry((j)=>j&&K(j)),F=512;var M=class j extends Q{#q;#Q=1;#X=!1;#J=void 0;#H;#Z=!1;#K=!G;#B;constructor(L,N={}){super(N);if(typeof N.highWaterMark==="number")this.#H=N.highWaterMark;else this.#H=262144;this.#q=L,this.#X=!1,this.#J=void 0,this.#Z=!1,this.#B={},U.register(this,this.#q,this.#B)}_read(L){if(xq&&Iq("NativeReadable._read",this.__id),this.#Z){xq&&Iq("pendingRead is true",this.__id);return}var N=this.#q;if(xq&&Iq("ptr @ NativeReadable._read",N,this.__id),N===0){this.push(null);return}if(!this.#X)xq&&Iq("NativeReadable not constructed yet",this.__id),this.#Y(N);return this.#V(this.#$(L),N)}#Y(L){this.#X=!0;const N=J(L,this.#H);if(xq&&Iq("NativeReadable internal `start` result",N,this.__id),typeof N==="number"&&N>1)this.#K=!0,xq&&Iq("NativeReadable resized",this.__id),this.#H=Math.min(this.#H,N);if(Y){const W=Y(L);if(xq&&Iq("NativeReadable drain result",W,this.__id),(W?.byteLength??0)>0)this.push(W)}}#$(L=this.#H){var N=this.#J;if(xq&&Iq("chunk @ #getRemainingChunk",N,this.__id),N?.byteLength??0<F){var W=L>F?L:F;this.#J=N=new Buffer(W)}return N}push(L,N){return xq&&Iq("NativeReadable push -- result, encoding",L,N,this.__id),super.push(...arguments)}#z(L,N,W){if(xq&&Iq("result, isClosed @ #handleResult",L,W,this.__id),typeof L==="number"){if(L>=this.#H&&!this.#K&&!W)this.#H*=2,this.#K=!0;return z(this,L,N,W)}else if(typeof L==="boolean")return this.push(null),N?.byteLength??0>0?N:void 0;else if(ArrayBuffer.isView(L)){if(L.byteLength>=this.#H&&!this.#K&&!W)this.#H*=2,this.#K=!0,xq&&Iq("Resized",this.__id);return V(this,L,N,W)}else throw xq&&Iq("Unknown result type",L,this.__id),new Error("Invalid result from pull")}#V(L,N){xq&&Iq("#internalRead()",this.__id),$[0]=!1;var W=X(N,L,$);if(Cq(W))return this.#Z=!0,W.then((P)=>{this.#Z=!1,xq&&Iq("pending no longerrrrrrrr (result returned from pull)",this.__id),this.#J=this.#z(P,L,$[0])},(P)=>{xq&&Iq("error from pull",P,this.__id),errorOrDestroy(this,P)});else this.#J=this.#z(W,L,$[0])}_destroy(L,N){var W=this.#q;if(W===0){N(L);return}if(U.unregister(this.#B),this.#q=0,B)B(W,!1);xq&&Iq("NativeReadable destroyed",this.__id),H(W,L),N(L)}ref(){var L=this.#q;if(L===0)return;if(this.#Q++===0)B(L,!0)}unref(){var L=this.#q;if(L===0)return;if(this.#Q--===1)B(L,!1)}};if(!B)M.prototype.ref=void 0,M.prototype.unref=void 0;return M},NQ=function(q,Q){return LQ[q]||=jQ(q,Q)},WQ=function(q,Q,X){if(!(Q&&typeof Q==="object"&&Q instanceof ReadableStream))return;const J=gq(Q);if(!J){Iq("no native readable stream");return}const{stream:H,data:Z}=J;return new(NQ(Z,q))(H,X)},{isPromise:Cq,isCallable:Rq,direct:gq,Object:Oq}=import.meta.primordials;globalThis.__IDS_TO_TRACK=process.env.DEBUG_TRACK_EE?.length?process.env.DEBUG_TRACK_EE.split(","):process.env.DEBUG_STREAMS?.length?process.env.DEBUG_STREAMS.split(","):null;var Sq=!!process.env.DEBUG_TRACK_EE,xq=!!(process.env.DEBUG||process.env.DEBUG_STREAMS||Sq),Iq=xq?globalThis.__IDS_TO_TRACK?(...q)=>{const Q=q[q.length-1];if(!globalThis.__IDS_TO_TRACK.includes(Q))return;console.log(`ID: ${Q}`,...q.slice(0,-1))}:(...q)=>console.log(...q.slice(0,-1)):()=>{},kq=Oq.create,fq=Oq.defineProperty,yq=Oq.getOwnPropertyDescriptor,hq=Oq.getOwnPropertyNames,pq=Oq.getPrototypeOf,uq=Oq.prototype.hasOwnProperty,mq=Oq.setPrototypeOf,Eq=(q)=>import.meta.require(q),bq=Eq("bun:events_native");mq(wq.prototype,bq.prototype);mq(wq,bq);wq.prototype.emit=function(q,...Q){var X=this.__id;if(X)Iq("emit",q,...Q,X);else Iq("emit",q,...Q);return bq.prototype.emit.call(this,q,...Q)};wq.prototype.on=function(q,Q){var X=this.__id;if(X)Iq("on",q,"added",X);else Iq("on",q,"added");return bq.prototype.on.call(this,q,Q)};wq.prototype.addListener=function(q,Q){return this.on(q,Q)};var cq=(q,Q)=>function X(){return Q||(0,q[hq(q)[0]])((Q={exports:{}}).exports,Q),Q.exports};var Aq=process.nextTick;var iq=Array.isArray,Dq=cq({"node_modules/readable-stream/lib/ours/primordials.js"(q,Q){Q.exports={ArrayIsArray(X){return Array.isArray(X)},ArrayPrototypeIncludes(X,J){return X.includes(J)},ArrayPrototypeIndexOf(X,J){return X.indexOf(J)},ArrayPrototypeJoin(X,J){return X.join(J)},ArrayPrototypeMap(X,J){return X.map(J)},ArrayPrototypePop(X,J){return X.pop(J)},ArrayPrototypePush(X,J){return X.push(J)},ArrayPrototypeSlice(X,J,H){return X.slice(J,H)},Error,FunctionPrototypeCall(X,J,...H){return X.call(J,...H)},FunctionPrototypeSymbolHasInstance(X,J){return Function.prototype[Symbol.hasInstance].call(X,J)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(X,J){return Oq.defineProperties(X,J)},ObjectDefineProperty(X,J,H){return Oq.defineProperty(X,J,H)},ObjectGetOwnPropertyDescriptor(X,J){return Oq.getOwnPropertyDescriptor(X,J)},ObjectKeys(X){return Oq.keys(X)},ObjectSetPrototypeOf(X,J){return Oq.setPrototypeOf(X,J)},Promise,PromisePrototypeCatch(X,J){return X.catch(J)},PromisePrototypeThen(X,J,H){return X.then(J,H)},PromiseReject(X){return Promise.reject(X)},ReflectApply:Reflect.apply,RegExpPrototypeTest(X,J){return X.test(J)},SafeSet:Set,String,StringPrototypeSlice(X,J,H){return X.slice(J,H)},StringPrototypeToLowerCase(X){return X.toLowerCase()},StringPrototypeToUpperCase(X){return X.toUpperCase()},StringPrototypeTrim(X){return X.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(X,J,H){return X.set(J,H)},Uint8Array}}}),_q=cq({"node_modules/readable-stream/lib/ours/util.js"(q,Q){var X=Eq("buffer"),J=Oq.getPrototypeOf(async function(){}).constructor,H=globalThis.Blob||X.Blob,Z=typeof H!=="undefined"?function B(Y){return Y instanceof H}:function B(Y){return!1},K=class extends Error{constructor(B){if(!Array.isArray(B))throw new TypeError(`Expected input to be an Array, got ${typeof B}`);let Y="";for(let $=0;$<B.length;$++)Y+=` ${B[$].stack} -`;super(Y);this.name="AggregateError",this.errors=B}};Q.exports={AggregateError:K,once(B){let Y=!1;return function(...$){if(Y)return;Y=!0,B.apply(this,$)}},createDeferredPromise:function(){let B,Y;return{promise:new Promise((z,V)=>{B=z,Y=V}),resolve:B,reject:Y}},promisify(B){return new Promise((Y,$)=>{B((z,...V)=>{if(z)return $(z);return Y(...V)})})},debuglog(){return function(){}},format(B,...Y){return B.replace(/%([sdifj])/g,function(...[$,z]){const V=Y.shift();if(z==="f")return V.toFixed(6);else if(z==="j")return JSON.stringify(V);else if(z==="s"&&typeof V==="object")return`${V.constructor!==Oq?V.constructor.name:""} {}`.trim();else return V.toString()})},inspect(B){switch(typeof B){case"string":if(B.includes("'")){if(!B.includes('"'))return`"${B}"`;else if(!B.includes("`")&&!B.includes("${"))return`\`${B}\``}return`'${B}'`;case"number":if(isNaN(B))return"NaN";else if(Oq.is(B,-0))return String(B);return B;case"bigint":return`${String(B)}n`;case"boolean":case"undefined":return String(B);case"object":return"{}"}},types:{isAsyncFunction(B){return B instanceof J},isArrayBufferView(B){return ArrayBuffer.isView(B)}},isBlob:Z},Q.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}}),sq=cq({"node_modules/readable-stream/lib/ours/errors.js"(q,Q){var{format:X,inspect:J,AggregateError:H}=_q(),Z=globalThis.AggregateError||H,K=Symbol("kIsNodeError"),B=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Y=/^([A-Z][a-z0-9]*)+$/,$="__node_internal_",z={};function V(N,W){if(!N)throw new z.ERR_INTERNAL_ASSERTION(W)}function G(N){let W="",P=N.length;const I=N[0]==="-"?1:0;for(;P>=I+4;P-=3)W=`_${N.slice(P-3,P)}${W}`;return`${N.slice(0,P)}${W}`}function U(N,W,P){if(typeof W==="function")return V(W.length<=P.length,`Code: ${N}; The provided arguments length (${P.length}) does not match the required ones (${W.length}).`),W(...P);const I=(W.match(/%[dfijoOs]/g)||[]).length;if(V(I===P.length,`Code: ${N}; The provided arguments length (${P.length}) does not match the required ones (${I}).`),P.length===0)return W;return X(W,...P)}function F(N,W,P){if(!P)P=Error;class I extends P{constructor(...x){super(U(N,W,x))}toString(){return`${this.name} [${N}]: ${this.message}`}}Oq.defineProperties(I.prototype,{name:{value:P.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${N}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),I.prototype.code=N,I.prototype[K]=!0,z[N]=I}function M(N){const W=$+N.name;return Oq.defineProperty(N,"name",{value:W}),N}function j(N,W){if(N&&W&&N!==W){if(Array.isArray(W.errors))return W.errors.push(N),W;const P=new Z([W,N],W.message);return P.code=W.code,P}return N||W}var L=class extends Error{constructor(N="The operation was aborted",W=void 0){if(W!==void 0&&typeof W!=="object")throw new z.ERR_INVALID_ARG_TYPE("options","Object",W);super(N,W);this.code="ABORT_ERR",this.name="AbortError"}};F("ERR_ASSERTION","%s",Error),F("ERR_INVALID_ARG_TYPE",(N,W,P)=>{if(V(typeof N==="string","'name' must be a string"),!Array.isArray(W))W=[W];let I="The ";if(N.endsWith(" argument"))I+=`${N} `;else I+=`"${N}" ${N.includes(".")?"property":"argument"} `;I+="must be ";const x=[],T=[],A=[];for(let C of W)if(V(typeof C==="string","All expected entries have to be of type string"),B.includes(C))x.push(C.toLowerCase());else if(Y.test(C))T.push(C);else V(C!=="object",'The value "object" should be written as "Object"'),A.push(C);if(T.length>0){const C=x.indexOf("object");if(C!==-1)x.splice(x,C,1),T.push("Object")}if(x.length>0){switch(x.length){case 1:I+=`of type ${x[0]}`;break;case 2:I+=`one of type ${x[0]} or ${x[1]}`;break;default:{const C=x.pop();I+=`one of type ${x.join(", ")}, or ${C}`}}if(T.length>0||A.length>0)I+=" or "}if(T.length>0){switch(T.length){case 1:I+=`an instance of ${T[0]}`;break;case 2:I+=`an instance of ${T[0]} or ${T[1]}`;break;default:{const C=T.pop();I+=`an instance of ${T.join(", ")}, or ${C}`}}if(A.length>0)I+=" or "}switch(A.length){case 0:break;case 1:if(A[0].toLowerCase()!==A[0])I+="an ";I+=`${A[0]}`;break;case 2:I+=`one of ${A[0]} or ${A[1]}`;break;default:{const C=A.pop();I+=`one of ${A.join(", ")}, or ${C}`}}if(P==null)I+=`. Received ${P}`;else if(typeof P==="function"&&P.name)I+=`. Received function ${P.name}`;else if(typeof P==="object"){var O;if((O=P.constructor)!==null&&O!==void 0&&O.name)I+=`. Received an instance of ${P.constructor.name}`;else{const C=J(P,{depth:-1});I+=`. Received ${C}`}}else{let C=J(P,{colors:!1});if(C.length>25)C=`${C.slice(0,25)}...`;I+=`. Received type ${typeof P} (${C})`}return I},TypeError),F("ERR_INVALID_ARG_VALUE",(N,W,P="is invalid")=>{let I=J(W);if(I.length>128)I=I.slice(0,128)+"...";return`The ${N.includes(".")?"property":"argument"} '${N}' ${P}. Received ${I}`},TypeError),F("ERR_INVALID_RETURN_VALUE",(N,W,P)=>{var I;const x=P!==null&&P!==void 0&&(I=P.constructor)!==null&&I!==void 0&&I.name?`instance of ${P.constructor.name}`:`type ${typeof P}`;return`Expected ${N} to be returned from the "${W}" function but got ${x}.`},TypeError),F("ERR_MISSING_ARGS",(...N)=>{V(N.length>0,"At least one arg needs to be specified");let W;const P=N.length;switch(N=(Array.isArray(N)?N:[N]).map((I)=>`"${I}"`).join(" or "),P){case 1:W+=`The ${N[0]} argument`;break;case 2:W+=`The ${N[0]} and ${N[1]} arguments`;break;default:{const I=N.pop();W+=`The ${N.join(", ")}, and ${I} arguments`}break}return`${W} must be specified`},TypeError),F("ERR_OUT_OF_RANGE",(N,W,P)=>{V(W,'Missing "range" argument');let I;if(Number.isInteger(P)&&Math.abs(P)>4294967296)I=G(String(P));else if(typeof P==="bigint"){if(I=String(P),P>2n**32n||P<-(2n**32n))I=G(I);I+="n"}else I=J(P);return`The value of "${N}" is out of range. It must be ${W}. Received ${I}`},RangeError),F("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),F("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),F("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),F("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),F("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),F("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),F("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),F("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),F("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),F("ERR_STREAM_WRITE_AFTER_END","write after end",Error),F("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),Q.exports={AbortError:L,aggregateTwoErrors:M(j),hideStackFrames:M,codes:z}}}),aq=cq({"node_modules/readable-stream/lib/internal/validators.js"(q,Q){var{ArrayIsArray:X,ArrayPrototypeIncludes:J,ArrayPrototypeJoin:H,ArrayPrototypeMap:Z,NumberIsInteger:K,NumberMAX_SAFE_INTEGER:B,NumberMIN_SAFE_INTEGER:Y,NumberParseInt:$,RegExpPrototypeTest:z,String:V,StringPrototypeToUpperCase:G,StringPrototypeTrim:U}=Dq(),{hideStackFrames:F,codes:{ERR_SOCKET_BAD_PORT:M,ERR_INVALID_ARG_TYPE:j,ERR_INVALID_ARG_VALUE:L,ERR_OUT_OF_RANGE:N,ERR_UNKNOWN_SIGNAL:W}}=sq(),{normalizeEncoding:P}=_q(),{isAsyncFunction:I,isArrayBufferView:x}=_q().types,T={};function A(i){return i===(i|0)}function O(i){return i===i>>>0}var C=/^[0-7]+$/,E="must be a 32-bit unsigned integer or an octal string";function w(i,n,o){if(typeof i==="undefined")i=o;if(typeof i==="string"){if(!z(C,i))throw new L(n,i,E);i=$(i,8)}return _(i,n,0,4294967295),i}var D=F((i,n,o=Y,s=B)=>{if(typeof i!=="number")throw new j(n,"number",i);if(!K(i))throw new N(n,"an integer",i);if(i<o||i>s)throw new N(n,`>= ${o} && <= ${s}`,i)}),_=F((i,n,o=-2147483648,s=2147483647)=>{if(typeof i!=="number")throw new j(n,"number",i);if(!A(i)){if(!K(i))throw new N(n,"an integer",i);throw new N(n,`>= ${o} && <= ${s}`,i)}if(i<o||i>s)throw new N(n,`>= ${o} && <= ${s}`,i)}),v=F((i,n,o)=>{if(typeof i!=="number")throw new j(n,"number",i);if(!O(i)){if(!K(i))throw new N(n,"an integer",i);throw new N(n,`>= ${o?1:0} && < 4294967296`,i)}if(o&&i===0)throw new N(n,">= 1 && < 4294967296",i)});function R(i,n){if(typeof i!=="string")throw new j(n,"string",i)}function g(i,n){if(typeof i!=="number")throw new j(n,"number",i)}var S=F((i,n,o)=>{if(!J(o,i)){const a="must be one of: "+H(Z(o,(r)=>typeof r==="string"?`'${r}'`:V(r)),", ");throw new L(n,i,a)}});function k(i,n){if(typeof i!=="boolean")throw new j(n,"boolean",i)}var f=F((i,n,o)=>{const s=o==null,a=s?!1:o.allowArray,r=s?!1:o.allowFunction;if(!(s?!1:o.nullable)&&i===null||!a&&X(i)||typeof i!=="object"&&(!r||typeof i!=="function"))throw new j(n,"Object",i)}),y=F((i,n,o=0)=>{if(!X(i))throw new j(n,"Array",i);if(i.length<o){const s=`must be longer than ${o}`;throw new L(n,i,s)}});function h(i,n="signal"){if(R(i,n),T[i]===void 0){if(T[G(i)]!==void 0)throw new W(i+" (signals must use all capital letters)");throw new W(i)}}var p=F((i,n="buffer")=>{if(!x(i))throw new j(n,["Buffer","TypedArray","DataView"],i)});function u(i,n){const o=P(n),s=i.length;if(o==="hex"&&s%2!==0)throw new L("encoding",n,`is invalid for data of length ${s}`)}function m(i,n="Port",o=!0){if(typeof i!=="number"&&typeof i!=="string"||typeof i==="string"&&U(i).length===0||+i!==+i>>>0||i>65535||i===0&&!o)throw new M(n,i,o);return i|0}var b=F((i,n)=>{if(i!==void 0&&(i===null||typeof i!=="object"||!("aborted"in i)))throw new j(n,"AbortSignal",i)}),c=F((i,n)=>{if(typeof i!=="function")throw new j(n,"Function",i)}),d=F((i,n)=>{if(typeof i!=="function"||I(i))throw new j(n,"Function",i)}),l=F((i,n)=>{if(i!==void 0)throw new j(n,"undefined",i)});Q.exports={isInt32:A,isUint32:O,parseFileMode:w,validateArray:y,validateBoolean:k,validateBuffer:p,validateEncoding:u,validateFunction:c,validateInt32:_,validateInteger:D,validateNumber:g,validateObject:f,validateOneOf:S,validatePlainFunction:d,validatePort:m,validateSignalName:h,validateString:R,validateUint32:v,validateUndefined:l,validateAbortSignal:b}}}),rq=cq({"node_modules/readable-stream/lib/internal/streams/utils.js"(q,Q){var{Symbol:X,SymbolAsyncIterator:J,SymbolIterator:H}=Dq(),Z=X("kDestroyed"),K=X("kIsErrored"),B=X("kIsReadable"),Y=X("kIsDisturbed");function $(v,R=!1){var g;return!!(v&&typeof v.pipe==="function"&&typeof v.on==="function"&&(!R||typeof v.pause==="function"&&typeof v.resume==="function")&&(!v._writableState||((g=v._readableState)===null||g===void 0?void 0:g.readable)!==!1)&&(!v._writableState||v._readableState))}function z(v){var R;return!!(v&&typeof v.write==="function"&&typeof v.on==="function"&&(!v._readableState||((R=v._writableState)===null||R===void 0?void 0:R.writable)!==!1))}function V(v){return!!(v&&typeof v.pipe==="function"&&v._readableState&&typeof v.on==="function"&&typeof v.write==="function")}function G(v){return v&&(v._readableState||v._writableState||typeof v.write==="function"&&typeof v.on==="function"||typeof v.pipe==="function"&&typeof v.on==="function")}function U(v,R){if(v==null)return!1;if(R===!0)return typeof v[J]==="function";if(R===!1)return typeof v[H]==="function";return typeof v[J]==="function"||typeof v[H]==="function"}function F(v){if(!G(v))return null;const{_writableState:R,_readableState:g}=v,S=R||g;return!!(v.destroyed||v[Z]||S!==null&&S!==void 0&&S.destroyed)}function M(v){if(!z(v))return null;if(v.writableEnded===!0)return!0;const R=v._writableState;if(R!==null&&R!==void 0&&R.errored)return!1;if(typeof(R===null||R===void 0?void 0:R.ended)!=="boolean")return null;return R.ended}function j(v,R){if(!z(v))return null;if(v.writableFinished===!0)return!0;const g=v._writableState;if(g!==null&&g!==void 0&&g.errored)return!1;if(typeof(g===null||g===void 0?void 0:g.finished)!=="boolean")return null;return!!(g.finished||R===!1&&g.ended===!0&&g.length===0)}function L(v){if(!$(v))return null;if(v.readableEnded===!0)return!0;const R=v._readableState;if(!R||R.errored)return!1;if(typeof(R===null||R===void 0?void 0:R.ended)!=="boolean")return null;return R.ended}function N(v,R){if(!$(v))return null;const g=v._readableState;if(g!==null&&g!==void 0&&g.errored)return!1;if(typeof(g===null||g===void 0?void 0:g.endEmitted)!=="boolean")return null;return!!(g.endEmitted||R===!1&&g.ended===!0&&g.length===0)}function W(v){if(v&&v[B]!=null)return v[B];if(typeof(v===null||v===void 0?void 0:v.readable)!=="boolean")return null;if(F(v))return!1;return $(v)&&v.readable&&!N(v)}function P(v){if(typeof(v===null||v===void 0?void 0:v.writable)!=="boolean")return null;if(F(v))return!1;return z(v)&&v.writable&&!M(v)}function I(v,R){if(!G(v))return null;if(F(v))return!0;if((R===null||R===void 0?void 0:R.readable)!==!1&&W(v))return!1;if((R===null||R===void 0?void 0:R.writable)!==!1&&P(v))return!1;return!0}function x(v){var R,g;if(!G(v))return null;if(v.writableErrored)return v.writableErrored;return(R=(g=v._writableState)===null||g===void 0?void 0:g.errored)!==null&&R!==void 0?R:null}function T(v){var R,g;if(!G(v))return null;if(v.readableErrored)return v.readableErrored;return(R=(g=v._readableState)===null||g===void 0?void 0:g.errored)!==null&&R!==void 0?R:null}function A(v){if(!G(v))return null;if(typeof v.closed==="boolean")return v.closed;const{_writableState:R,_readableState:g}=v;if(typeof(R===null||R===void 0?void 0:R.closed)==="boolean"||typeof(g===null||g===void 0?void 0:g.closed)==="boolean")return(R===null||R===void 0?void 0:R.closed)||(g===null||g===void 0?void 0:g.closed);if(typeof v._closed==="boolean"&&O(v))return v._closed;return null}function O(v){return typeof v._closed==="boolean"&&typeof v._defaultKeepAlive==="boolean"&&typeof v._removedConnection==="boolean"&&typeof v._removedContLen==="boolean"}function C(v){return typeof v._sent100==="boolean"&&O(v)}function E(v){var R;return typeof v._consuming==="boolean"&&typeof v._dumped==="boolean"&&((R=v.req)===null||R===void 0?void 0:R.upgradeOrConnect)===void 0}function w(v){if(!G(v))return null;const{_writableState:R,_readableState:g}=v,S=R||g;return!S&&C(v)||!!(S&&S.autoDestroy&&S.emitClose&&S.closed===!1)}function D(v){var R;return!!(v&&((R=v[Y])!==null&&R!==void 0?R:v.readableDidRead||v.readableAborted))}function _(v){var R,g,S,k,f,y,h,p,u,m;return!!(v&&((R=(g=(S=(k=(f=(y=v[K])!==null&&y!==void 0?y:v.readableErrored)!==null&&f!==void 0?f:v.writableErrored)!==null&&k!==void 0?k:(h=v._readableState)===null||h===void 0?void 0:h.errorEmitted)!==null&&S!==void 0?S:(p=v._writableState)===null||p===void 0?void 0:p.errorEmitted)!==null&&g!==void 0?g:(u=v._readableState)===null||u===void 0?void 0:u.errored)!==null&&R!==void 0?R:(m=v._writableState)===null||m===void 0?void 0:m.errored))}Q.exports={kDestroyed:Z,isDisturbed:D,kIsDisturbed:Y,isErrored:_,kIsErrored:K,isReadable:W,kIsReadable:B,isClosed:A,isDestroyed:F,isDuplexNodeStream:V,isFinished:I,isIterable:U,isReadableNodeStream:$,isReadableEnded:L,isReadableFinished:N,isReadableErrored:T,isNodeStream:G,isWritable:P,isWritableNodeStream:z,isWritableEnded:M,isWritableFinished:j,isWritableErrored:x,isServerRequest:E,isServerResponse:C,willEmitClose:w}}}),tq=cq({"node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(q,Q){var{AbortError:X,codes:J}=sq(),{ERR_INVALID_ARG_TYPE:H,ERR_STREAM_PREMATURE_CLOSE:Z}=J,{once:K}=_q(),{validateAbortSignal:B,validateFunction:Y,validateObject:$}=aq(),{Promise:z}=Dq(),{isClosed:V,isReadable:G,isReadableNodeStream:U,isReadableFinished:F,isReadableErrored:M,isWritable:j,isWritableNodeStream:L,isWritableFinished:N,isWritableErrored:W,isNodeStream:P,willEmitClose:I}=rq();function x(C){return C.setHeader&&typeof C.abort==="function"}var T=()=>{};function A(C,E,w){var D,_;if(arguments.length===2)w=E,E={};else if(E==null)E={};else $(E,"options");Y(w,"callback"),B(E.signal,"options.signal"),w=K(w);const v=(D=E.readable)!==null&&D!==void 0?D:U(C),R=(_=E.writable)!==null&&_!==void 0?_:L(C);if(!P(C))throw new H("stream","Stream",C);const{_writableState:g,_readableState:S}=C,k=()=>{if(!C.writable)h()};let f=I(C)&&U(C)===v&&L(C)===R,y=N(C,!1);const h=()=>{if(y=!0,C.destroyed)f=!1;if(f&&(!C.readable||v))return;if(!v||p)w.call(C)};let p=F(C,!1);const u=()=>{if(p=!0,C.destroyed)f=!1;if(f&&(!C.writable||R))return;if(!R||y)w.call(C)},m=(i)=>{w.call(C,i)};let b=V(C);const c=()=>{b=!0;const i=W(C)||M(C);if(i&&typeof i!=="boolean")return w.call(C,i);if(v&&!p&&U(C,!0)){if(!F(C,!1))return w.call(C,new Z)}if(R&&!y){if(!N(C,!1))return w.call(C,new Z)}w.call(C)},d=()=>{C.req.on("finish",h)};if(x(C)){if(C.on("complete",h),!f)C.on("abort",c);if(C.req)d();else C.on("request",d)}else if(R&&!g)C.on("end",k),C.on("close",k);if(!f&&typeof C.aborted==="boolean")C.on("aborted",c);if(C.on("end",u),C.on("finish",h),E.error!==!1)C.on("error",m);if(C.on("close",c),b)Aq(c);else if(g!==null&&g!==void 0&&g.errorEmitted||S!==null&&S!==void 0&&S.errorEmitted){if(!f)Aq(c)}else if(!v&&(!f||G(C))&&(y||j(C)===!1))Aq(c);else if(!R&&(!f||j(C))&&(p||G(C)===!1))Aq(c);else if(S&&C.req&&C.aborted)Aq(c);const l=()=>{if(w=T,C.removeListener("aborted",c),C.removeListener("complete",h),C.removeListener("abort",c),C.removeListener("request",d),C.req)C.req.removeListener("finish",h);C.removeListener("end",k),C.removeListener("close",k),C.removeListener("finish",h),C.removeListener("end",u),C.removeListener("error",m),C.removeListener("close",c)};if(E.signal&&!b){const i=()=>{const n=w;l(),n.call(C,new X(void 0,{cause:E.signal.reason}))};if(E.signal.aborted)Aq(i);else{const n=w;w=K((...o)=>{E.signal.removeEventListener("abort",i),n.apply(C,o)}),E.signal.addEventListener("abort",i)}}return l}function O(C,E){return new z((w,D)=>{A(C,E,(_)=>{if(_)D(_);else w()})})}Q.exports=A,Q.exports.finished=O}}),eq=cq({"node_modules/readable-stream/lib/internal/streams/operators.js"(q,Q){var X=globalThis.AbortController||Eq("abort-controller").AbortController,{codes:{ERR_INVALID_ARG_TYPE:J,ERR_MISSING_ARGS:H,ERR_OUT_OF_RANGE:Z},AbortError:K}=sq(),{validateAbortSignal:B,validateInteger:Y,validateObject:$}=aq(),z=Dq().Symbol("kWeak"),{finished:V}=tq(),{ArrayPrototypePush:G,MathFloor:U,Number:F,NumberIsNaN:M,Promise:j,PromiseReject:L,PromisePrototypeCatch:N,Symbol:W}=Dq(),P=W("kEmpty"),I=W("kEof");function x(f,y){if(typeof f!=="function")throw new J("fn",["Function","AsyncFunction"],f);if(y!=null)$(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)B(y.signal,"options.signal");let h=1;if((y===null||y===void 0?void 0:y.concurrency)!=null)h=U(y.concurrency);return Y(h,"concurrency",1),async function*p(){var u,m;const b=new X,c=this,d=[],l=b.signal,i={signal:l},n=()=>b.abort();if(y!==null&&y!==void 0&&(u=y.signal)!==null&&u!==void 0&&u.aborted)n();y===null||y===void 0||(m=y.signal)===null||m===void 0||m.addEventListener("abort",n);let o,s,a=!1;function r(){a=!0}async function t(){try{for await(let Qq of c){var e;if(a)return;if(l.aborted)throw new K;try{Qq=f(Qq,i)}catch(Xq){Qq=L(Xq)}if(Qq===P)continue;if(typeof((e=Qq)===null||e===void 0?void 0:e.catch)==="function")Qq.catch(r);if(d.push(Qq),o)o(),o=null;if(!a&&d.length&&d.length>=h)await new j((Xq)=>{s=Xq})}d.push(I)}catch(Qq){const Xq=L(Qq);N(Xq,r),d.push(Xq)}finally{var qq;if(a=!0,o)o(),o=null;y===null||y===void 0||(qq=y.signal)===null||qq===void 0||qq.removeEventListener("abort",n)}}t();try{while(!0){while(d.length>0){const e=await d[0];if(e===I)return;if(l.aborted)throw new K;if(e!==P)yield e;if(d.shift(),s)s(),s=null}await new j((e)=>{o=e})}}finally{if(b.abort(),a=!0,s)s(),s=null}}.call(this)}function T(f=void 0){if(f!=null)$(f,"options");if((f===null||f===void 0?void 0:f.signal)!=null)B(f.signal,"options.signal");return async function*y(){let h=0;for await(let u of this){var p;if(f!==null&&f!==void 0&&(p=f.signal)!==null&&p!==void 0&&p.aborted)throw new K({cause:f.signal.reason});yield[h++,u]}}.call(this)}async function A(f,y=void 0){for await(let h of w.call(this,f,y))return!0;return!1}async function O(f,y=void 0){if(typeof f!=="function")throw new J("fn",["Function","AsyncFunction"],f);return!await A.call(this,async(...h)=>{return!await f(...h)},y)}async function C(f,y){for await(let h of w.call(this,f,y))return h;return}async function E(f,y){if(typeof f!=="function")throw new J("fn",["Function","AsyncFunction"],f);async function h(p,u){return await f(p,u),P}for await(let p of x.call(this,h,y));}function w(f,y){if(typeof f!=="function")throw new J("fn",["Function","AsyncFunction"],f);async function h(p,u){if(await f(p,u))return p;return P}return x.call(this,h,y)}var D=class extends H{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}};async function _(f,y,h){var p;if(typeof f!=="function")throw new J("reducer",["Function","AsyncFunction"],f);if(h!=null)$(h,"options");if((h===null||h===void 0?void 0:h.signal)!=null)B(h.signal,"options.signal");let u=arguments.length>1;if(h!==null&&h!==void 0&&(p=h.signal)!==null&&p!==void 0&&p.aborted){const l=new K(void 0,{cause:h.signal.reason});throw this.once("error",()=>{}),await V(this.destroy(l)),l}const m=new X,b=m.signal;if(h!==null&&h!==void 0&&h.signal){const l={once:!0,[z]:this};h.signal.addEventListener("abort",()=>m.abort(),l)}let c=!1;try{for await(let l of this){var d;if(c=!0,h!==null&&h!==void 0&&(d=h.signal)!==null&&d!==void 0&&d.aborted)throw new K;if(!u)y=l,u=!0;else y=await f(y,l,{signal:b})}if(!c&&!u)throw new D}finally{m.abort()}return y}async function v(f){if(f!=null)$(f,"options");if((f===null||f===void 0?void 0:f.signal)!=null)B(f.signal,"options.signal");const y=[];for await(let p of this){var h;if(f!==null&&f!==void 0&&(h=f.signal)!==null&&h!==void 0&&h.aborted)throw new K(void 0,{cause:f.signal.reason});G(y,p)}return y}function R(f,y){const h=x.call(this,f,y);return async function*p(){for await(let u of h)yield*u}.call(this)}function g(f){if(f=F(f),M(f))return 0;if(f<0)throw new Z("number",">= 0",f);return f}function S(f,y=void 0){if(y!=null)$(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)B(y.signal,"options.signal");return f=g(f),async function*h(){var p;if(y!==null&&y!==void 0&&(p=y.signal)!==null&&p!==void 0&&p.aborted)throw new K;for await(let m of this){var u;if(y!==null&&y!==void 0&&(u=y.signal)!==null&&u!==void 0&&u.aborted)throw new K;if(f--<=0)yield m}}.call(this)}function k(f,y=void 0){if(y!=null)$(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)B(y.signal,"options.signal");return f=g(f),async function*h(){var p;if(y!==null&&y!==void 0&&(p=y.signal)!==null&&p!==void 0&&p.aborted)throw new K;for await(let m of this){var u;if(y!==null&&y!==void 0&&(u=y.signal)!==null&&u!==void 0&&u.aborted)throw new K;if(f-- >0)yield m;else return}}.call(this)}Q.exports.streamReturningOperators={asIndexedPairs:T,drop:S,filter:w,flatMap:R,map:x,take:k},Q.exports.promiseReturningOperators={every:O,forEach:E,reduce:_,toArray:v,some:A,find:C}}}),qQ=cq({"node_modules/readable-stream/lib/internal/streams/destroy.js"(q,Q){var{aggregateTwoErrors:X,codes:{ERR_MULTIPLE_CALLBACK:J},AbortError:H}=sq(),{Symbol:Z}=Dq(),{kDestroyed:K,isDestroyed:B,isFinished:Y,isServerRequest:$}=rq(),z="#kDestroy",V="#kConstruct";function G(E,w,D){if(E){if(E.stack,w&&!w.errored)w.errored=E;if(D&&!D.errored)D.errored=E}}function U(E,w){const D=this._readableState,_=this._writableState,v=_||D;if(_&&_.destroyed||D&&D.destroyed){if(typeof w==="function")w();return this}if(G(E,_,D),_)_.destroyed=!0;if(D)D.destroyed=!0;if(!v.constructed)this.once(z,(R)=>{F(this,X(R,E),w)});else F(this,E,w);return this}function F(E,w,D){let _=!1;function v(R){if(_)return;_=!0;const{_readableState:g,_writableState:S}=E;if(G(R,S,g),S)S.closed=!0;if(g)g.closed=!0;if(typeof D==="function")D(R);if(R)Aq(M,E,R);else Aq(j,E)}try{E._destroy(w||null,v)}catch(R){v(R)}}function M(E,w){L(E,w),j(E)}function j(E){const{_readableState:w,_writableState:D}=E;if(D)D.closeEmitted=!0;if(w)w.closeEmitted=!0;if(D&&D.emitClose||w&&w.emitClose)E.emit("close")}function L(E,w){const D=E?._readableState,_=E?._writableState;if(_?.errorEmitted||D?.errorEmitted)return;if(_)_.errorEmitted=!0;if(D)D.errorEmitted=!0;E?.emit?.("error",w)}function N(){const E=this._readableState,w=this._writableState;if(E)E.constructed=!0,E.closed=!1,E.closeEmitted=!1,E.destroyed=!1,E.errored=null,E.errorEmitted=!1,E.reading=!1,E.ended=E.readable===!1,E.endEmitted=E.readable===!1;if(w)w.constructed=!0,w.destroyed=!1,w.closed=!1,w.closeEmitted=!1,w.errored=null,w.errorEmitted=!1,w.finalCalled=!1,w.prefinished=!1,w.ended=w.writable===!1,w.ending=w.writable===!1,w.finished=w.writable===!1}function W(E,w,D){const _=E?._readableState,v=E?._writableState;if(v&&v.destroyed||_&&_.destroyed)return this;if(_&&_.autoDestroy||v&&v.autoDestroy)E.destroy(w);else if(w){if(Error.captureStackTrace(w),v&&!v.errored)v.errored=w;if(_&&!_.errored)_.errored=w;if(D)Aq(L,E,w);else L(E,w)}}function P(E,w){if(typeof E._construct!=="function")return;const{_readableState:D,_writableState:_}=E;if(D)D.constructed=!1;if(_)_.constructed=!1;if(E.once(V,w),E.listenerCount(V)>1)return;Aq(I,E)}function I(E){let w=!1;function D(_){if(w){W(E,_!==null&&_!==void 0?_:new J);return}w=!0;const{_readableState:v,_writableState:R}=E,g=R||v;if(v)v.constructed=!0;if(R)R.constructed=!0;if(g.destroyed)E.emit(z,_);else if(_)W(E,_,!0);else Aq(x,E)}try{E._construct(D)}catch(_){D(_)}}function x(E){E.emit(V)}function T(E){return E&&E.setHeader&&typeof E.abort==="function"}function A(E){E.emit("close")}function O(E,w){E.emit("error",w),Aq(A,E)}function C(E,w){if(!E||B(E))return;if(!w&&!Y(E))w=new H;if($(E))E.socket=null,E.destroy(w);else if(T(E))E.abort();else if(T(E.req))E.req.abort();else if(typeof E.destroy==="function")E.destroy(w);else if(typeof E.close==="function")E.close();else if(w)Aq(O,E);else Aq(A,E);if(!E.destroyed)E[K]=!0}Q.exports={construct:P,destroyer:C,destroy:U,undestroy:N,errorOrDestroy:W}}}),QQ=cq({"node_modules/readable-stream/lib/internal/streams/legacy.js"(q,Q){var{ArrayIsArray:X,ObjectSetPrototypeOf:J}=Dq(),{EventEmitter:H}=Eq("bun:events_native"),Z;if(Sq)Z=wq;else Z=H;function K(Y){if(!(this instanceof K))return new K(Y);Z.call(this,Y)}J(K.prototype,Z.prototype),J(K,Z),K.prototype.pipe=function(Y,$){const z=this;function V(N){if(Y.writable&&Y.write(N)===!1&&z.pause)z.pause()}z.on("data",V);function G(){if(z.readable&&z.resume)z.resume()}if(Y.on("drain",G),!Y._isStdio&&(!$||$.end!==!1))z.on("end",F),z.on("close",M);let U=!1;function F(){if(U)return;U=!0,Y.end()}function M(){if(U)return;if(U=!0,typeof Y.destroy==="function")Y.destroy()}function j(N){if(L(),Z.listenerCount(this,"error")===0)this.emit("error",N)}B(z,"error",j),B(Y,"error",j);function L(){z.removeListener("data",V),Y.removeListener("drain",G),z.removeListener("end",F),z.removeListener("close",M),z.removeListener("error",j),Y.removeListener("error",j),z.removeListener("end",L),z.removeListener("close",L),Y.removeListener("close",L)}return z.on("end",L),z.on("close",L),Y.on("close",L),Y.emit("pipe",z),Y};function B(Y,$,z){if(typeof Y.prependListener==="function")return Y.prependListener($,z);if(!Y._events||!Y._events[$])Y.on($,z);else if(X(Y._events[$]))Y._events[$].unshift(z);else Y._events[$]=[z,Y._events[$]]}Q.exports={Stream:K,prependListener:B}}}),XQ=cq({"node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(q,Q){var{AbortError:X,codes:J}=sq(),H=tq(),{ERR_INVALID_ARG_TYPE:Z}=J,K=(Y,$)=>{if(typeof Y!=="object"||!("aborted"in Y))throw new Z($,"AbortSignal",Y)};function B(Y){return!!(Y&&typeof Y.pipe==="function")}Q.exports.addAbortSignal=function Y($,z){if(K($,"signal"),!B(z))throw new Z("stream","stream.Stream",z);return Q.exports.addAbortSignalNoValidate($,z)},Q.exports.addAbortSignalNoValidate=function(Y,$){if(typeof Y!=="object"||!("aborted"in Y))return $;const z=()=>{$.destroy(new X(void 0,{cause:Y.reason}))};if(Y.aborted)z();else Y.addEventListener("abort",z),H($,()=>Y.removeEventListener("abort",z));return $}}}),JQ=cq({"node_modules/readable-stream/lib/internal/streams/state.js"(q,Q){var{MathFloor:X,NumberIsInteger:J}=Dq(),{ERR_INVALID_ARG_VALUE:H}=sq().codes;function Z(Y,$,z){return Y.highWaterMark!=null?Y.highWaterMark:$?Y[z]:null}function K(Y){return Y?16:16384}function B(Y,$,z,V){const G=Z($,V,z);if(G!=null){if(!J(G)||G<0){const U=V?`options.${z}`:"options.highWaterMark";throw new H(U,G)}return X(G)}return K(Y.objectMode)}Q.exports={getHighWaterMark:B,getDefaultHighWaterMark:K}}}),HQ=cq({"node_modules/readable-stream/lib/internal/streams/from.js"(q,Q){var{PromisePrototypeThen:X,SymbolAsyncIterator:J,SymbolIterator:H}=Dq(),{ERR_INVALID_ARG_TYPE:Z,ERR_STREAM_NULL_VALUES:K}=sq().codes;function B(Y,$,z){let V;if(typeof $==="string"||$ instanceof Buffer)return new Y({objectMode:!0,...z,read(){this.push($),this.push(null)}});let G;if($&&$[J])G=!0,V=$[J]();else if($&&$[H])G=!1,V=$[H]();else throw new Z("iterable",["Iterable"],$);const U=new Y({objectMode:!0,highWaterMark:1,...z});let F=!1;U._read=function(){if(!F)F=!0,j()},U._destroy=function(L,N){X(M(L),()=>Aq(N,L),(W)=>Aq(N,W||L))};async function M(L){const N=L!==void 0&&L!==null,W=typeof V.throw==="function";if(N&&W){const{value:P,done:I}=await V.throw(L);if(await P,I)return}if(typeof V.return==="function"){const{value:P}=await V.return();await P}}async function j(){for(;;){try{const{value:L,done:N}=G?await V.next():V.next();if(N)U.push(null);else{const W=L&&typeof L.then==="function"?await L:L;if(W===null)throw F=!1,new K;else if(U.push(W))continue;else F=!1}}catch(L){U.destroy(L)}break}}return U}Q.exports=B}}),ZQ,KQ=cq({"node_modules/readable-stream/lib/internal/streams/readable.js"(q,Q){var{ArrayPrototypeIndexOf:X,NumberIsInteger:J,NumberIsNaN:H,NumberParseInt:Z,ObjectDefineProperties:K,ObjectKeys:B,ObjectSetPrototypeOf:Y,Promise:$,SafeSet:z,SymbolAsyncIterator:V,Symbol:G}=Dq(),U=globalThis[Symbol.for("Bun.lazy")]("bun:stream").ReadableState,{EventEmitter:F}=Eq("bun:events_native"),{Stream:M,prependListener:j}=QQ();function L(Xq){if(!(this instanceof L))return new L(Xq);const Jq=this instanceof vq();if(this._readableState=new U(Xq,this,Jq),Xq){const{read:Hq,destroy:Zq,construct:Kq,signal:Bq}=Xq;if(typeof Hq==="function")this._read=Hq;if(typeof Zq==="function")this._destroy=Zq;if(typeof Kq==="function")this._construct=Kq;if(Bq&&!Jq)P(Bq,this)}M.call(this,Xq),w.construct(this,()=>{if(this._readableState.needReadable)C(this,this._readableState)})}Y(L.prototype,M.prototype),Y(L,M),L.prototype.on=function(Xq,Jq){const Hq=M.prototype.on.call(this,Xq,Jq),Zq=this._readableState;if(Xq==="data")if(Zq.readableListening=this.listenerCount("readable")>0,Zq.flowing!==!1)xq&&Iq("in flowing mode!",this.__id),this.resume();else xq&&Iq("in readable mode!",this.__id);else if(Xq==="readable"){if(xq&&Iq("readable listener added!",this.__id),!Zq.endEmitted&&!Zq.readableListening){if(Zq.readableListening=Zq.needReadable=!0,Zq.flowing=!1,Zq.emittedReadable=!1,xq&&Iq("on readable - state.length, reading, emittedReadable",Zq.length,Zq.reading,Zq.emittedReadable,this.__id),Zq.length)E(this,Zq);else if(!Zq.reading)Aq(n,this)}else if(Zq.endEmitted)xq&&Iq("end already emitted...",this.__id)}return Hq};class N extends L{#q;#Q;#X;#J;constructor(Xq,Jq){const{objectMode:Hq,highWaterMark:Zq,encoding:Kq,signal:Bq}=Xq;super({objectMode:Hq,highWaterMark:Zq,encoding:Kq,signal:Bq});this.#X=[],this.#q=void 0,this.#J=Jq,this.#Q=!1}#H(){var Xq=this.#X,Jq=0,Hq=Xq.length;for(;Jq<Hq;Jq++){const Zq=Xq[Jq];if(Xq[Jq]=void 0,!this.push(Zq,void 0))return this.#X=Xq.slice(Jq+1),!0}if(Hq>0)this.#X=[];return!1}#Z(Xq){Xq.releaseLock(),this.#q=void 0,this.#Q=!0,this.push(null);return}async _read(){xq&&Iq("ReadableFromWeb _read()",this.__id);var Xq=this.#J,Jq=this.#q;if(Xq)Jq=this.#q=Xq.getReader(),this.#J=void 0;else if(this.#H())return;var Hq;try{do{var Zq=!1,Kq;const Bq=Jq.readMany();if(Cq(Bq)){if({done:Zq,value:Kq}=await Bq,this.#Q){this.#X.push(...Kq);return}}else({done:Zq,value:Kq}=Bq);if(Zq){this.#Z(Jq);return}if(!this.push(Kq[0])){this.#X=Kq.slice(1);return}for(let Yq=1,$q=Kq.length;Yq<$q;Yq++)if(!this.push(Kq[Yq])){this.#X=Kq.slice(Yq+1);return}}while(!this.#Q)}catch(Bq){Hq=Bq}finally{if(Hq)throw Hq}}_destroy(Xq,Jq){if(!this.#Q){var Hq=this.#q;if(Hq)this.#q=void 0,Hq.cancel(Xq).finally(()=>{this.#Q=!0,Jq(Xq)});return}try{Jq(Xq)}catch(Zq){globalThis.reportError(Zq)}}}function W(Xq,Jq={}){if(!dq(Xq))throw new _("readableStream","ReadableStream",Xq);k(Jq,"options");const{highWaterMark:Hq,encoding:Zq,objectMode:Kq=!1,signal:Bq}=Jq;if(Zq!==void 0&&!Buffer.isEncoding(Zq))throw new oq(Zq,"options.encoding");return lq(Kq,"options.objectMode"),WQ(L,Xq,Jq)||new N({highWaterMark:Hq,encoding:Zq,objectMode:Kq,signal:Bq},Xq)}Q.exports=L,ZQ=N;var{addAbortSignal:P}=XQ(),I=tq();const{maybeReadMore:x,resume:T,emitReadable:A,onEofChunk:O}=globalThis[Symbol.for("Bun.lazy")]("bun:stream");function C(Xq,Jq){process.nextTick(x,Xq,Jq)}function E(Xq,Jq){xq&&Iq("NativeReadable - emitReadable",Xq.__id),A(Xq,Jq)}var w=qQ(),{aggregateTwoErrors:D,codes:{ERR_INVALID_ARG_TYPE:_,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_OUT_OF_RANGE:R,ERR_STREAM_PUSH_AFTER_EOF:g,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:S}}=sq(),{validateObject:k}=aq(),{StringDecoder:f}=Eq("string_decoder"),y=HQ(),h=()=>{},{errorOrDestroy:p}=w;L.prototype.destroy=w.destroy,L.prototype._undestroy=w.undestroy,L.prototype._destroy=function(Xq,Jq){Jq(Xq)},L.prototype[F.captureRejectionSymbol]=function(Xq){this.destroy(Xq)},L.prototype.push=function(Xq,Jq){return u(this,Xq,Jq,!1)},L.prototype.unshift=function(Xq,Jq){return u(this,Xq,Jq,!0)};function u(Xq,Jq,Hq,Zq){xq&&Iq("readableAddChunk",Jq,Xq.__id);const Kq=Xq._readableState;let Bq;if(!Kq.objectMode){if(typeof Jq==="string"){if(Hq=Hq||Kq.defaultEncoding,Kq.encoding!==Hq)if(Zq&&Kq.encoding)Jq=Buffer.from(Jq,Hq).toString(Kq.encoding);else Jq=Buffer.from(Jq,Hq),Hq=""}else if(Jq instanceof Buffer)Hq="";else if(M._isUint8Array(Jq)){if(Zq||!Kq.decoder)Jq=M._uint8ArrayToBuffer(Jq);Hq=""}else if(Jq!=null)Bq=new _("chunk",["string","Buffer","Uint8Array"],Jq)}if(Bq)p(Xq,Bq);else if(Jq===null)Kq.reading=!1,O(Xq,Kq);else if(Kq.objectMode||Jq&&Jq.length>0)if(Zq)if(Kq.endEmitted)p(Xq,new S);else if(Kq.destroyed||Kq.errored)return!1;else m(Xq,Kq,Jq,!0);else if(Kq.ended)p(Xq,new g);else if(Kq.destroyed||Kq.errored)return!1;else if(Kq.reading=!1,Kq.decoder&&!Hq)if(Jq=Kq.decoder.write(Jq),Kq.objectMode||Jq.length!==0)m(Xq,Kq,Jq,!1);else C(Xq,Kq);else m(Xq,Kq,Jq,!1);else if(!Zq)Kq.reading=!1,C(Xq,Kq);return!Kq.ended&&(Kq.length<Kq.highWaterMark||Kq.length===0)}function m(Xq,Jq,Hq,Zq){if(xq&&Iq("adding chunk",Xq.__id),xq&&Iq("chunk",Hq.toString(),Xq.__id),Jq.flowing&&Jq.length===0&&!Jq.sync&&Xq.listenerCount("data")>0){if(Jq.multiAwaitDrain)Jq.awaitDrainWriters.clear();else Jq.awaitDrainWriters=null;Jq.dataEmitted=!0,Xq.emit("data",Hq)}else{if(Jq.length+=Jq.objectMode?1:Hq.length,Zq)Jq.buffer.unshift(Hq);else Jq.buffer.push(Hq);if(xq&&Iq("needReadable @ addChunk",Jq.needReadable,Xq.__id),Jq.needReadable)E(Xq,Jq)}C(Xq,Jq)}L.prototype.isPaused=function(){const Xq=this._readableState;return Xq.paused===!0||Xq.flowing===!1},L.prototype.setEncoding=function(Xq){const Jq=new f(Xq);this._readableState.decoder=Jq,this._readableState.encoding=this._readableState.decoder.encoding;const Hq=this._readableState.buffer;let Zq="";for(let Kq=Hq.length;Kq>0;Kq--)Zq+=Jq.write(Hq.shift());if(Zq!=="")Hq.push(Zq);return this._readableState.length=Zq.length,this};var b=1073741824;function c(Xq){if(Xq>b)throw new R("size","<= 1GiB",Xq);else Xq--,Xq|=Xq>>>1,Xq|=Xq>>>2,Xq|=Xq>>>4,Xq|=Xq>>>8,Xq|=Xq>>>16,Xq++;return Xq}function d(Xq,Jq){if(Xq<=0||Jq.length===0&&Jq.ended)return 0;if(Jq.objectMode)return 1;if(H(Xq)){if(Jq.flowing&&Jq.length)return Jq.buffer.first().length;return Jq.length}if(Xq<=Jq.length)return Xq;return Jq.ended?Jq.length:0}L.prototype.read=function(Xq){if(xq&&Iq("read - n =",Xq,this.__id),!J(Xq))Xq=Z(Xq,10);const Jq=this._readableState,Hq=Xq;if(Xq>Jq.highWaterMark)Jq.highWaterMark=c(Xq);if(Xq!==0)Jq.emittedReadable=!1;if(Xq===0&&Jq.needReadable&&((Jq.highWaterMark!==0?Jq.length>=Jq.highWaterMark:Jq.length>0)||Jq.ended)){if(xq&&Iq("read: emitReadable or endReadable",Jq.length,Jq.ended,this.__id),Jq.length===0&&Jq.ended)r(this);else E(this,Jq);return null}if(Xq=d(Xq,Jq),Xq===0&&Jq.ended){if(xq&&Iq("read: calling endReadable if length 0 -- length, state.ended",Jq.length,Jq.ended,this.__id),Jq.length===0)r(this);return null}let Zq=Jq.needReadable;if(xq&&Iq("need readable",Zq,this.__id),Jq.length===0||Jq.length-Xq<Jq.highWaterMark)Zq=!0,xq&&Iq("length less than watermark",Zq,this.__id);if(Jq.ended||Jq.reading||Jq.destroyed||Jq.errored||!Jq.constructed)xq&&Iq("state.constructed?",Jq.constructed,this.__id),Zq=!1,xq&&Iq("reading, ended or constructing",Zq,this.__id);else if(Zq){if(xq&&Iq("do read",this.__id),Jq.reading=!0,Jq.sync=!0,Jq.length===0)Jq.needReadable=!0;try{var Kq=this._read(Jq.highWaterMark);if(Cq(Kq)){xq&&Iq("async _read",this.__id);const Yq=Bun.peek(Kq);if(xq&&Iq("peeked promise",Yq,this.__id),Yq!==Kq)Kq=Yq}if(Cq(Kq)&&Kq?.then&&Rq(Kq.then))xq&&Iq("async _read result.then setup",this.__id),Kq.then(h,function(Yq){p(this,Yq)})}catch(Yq){p(this,Yq)}if(Jq.sync=!1,!Jq.reading)Xq=d(Hq,Jq)}xq&&Iq("n @ fromList",Xq,this.__id);let Bq;if(Xq>0)Bq=a(Xq,Jq);else Bq=null;if(xq&&Iq("ret @ read",Bq,this.__id),Bq===null)Jq.needReadable=Jq.length<=Jq.highWaterMark,xq&&Iq("state.length while ret = null",Jq.length,this.__id),Xq=0;else if(Jq.length-=Xq,Jq.multiAwaitDrain)Jq.awaitDrainWriters.clear();else Jq.awaitDrainWriters=null;if(Jq.length===0){if(!Jq.ended)Jq.needReadable=!0;if(Hq!==Xq&&Jq.ended)r(this)}if(Bq!==null&&!Jq.errorEmitted&&!Jq.closeEmitted)Jq.dataEmitted=!0,this.emit("data",Bq);return Bq},L.prototype._read=function(Xq){throw new v("_read()")},L.prototype.pipe=function(Xq,Jq){const Hq=this,Zq=this._readableState;if(Zq.pipes.length===1){if(!Zq.multiAwaitDrain)Zq.multiAwaitDrain=!0,Zq.awaitDrainWriters=new z(Zq.awaitDrainWriters?[Zq.awaitDrainWriters]:[])}Zq.pipes.push(Xq),xq&&Iq("pipe count=%d opts=%j",Zq.pipes.length,Jq,Hq.__id);const Bq=(!Jq||Jq.end!==!1)&&Xq!==process.stdout&&Xq!==process.stderr?$q:Nq;if(Zq.endEmitted)Aq(Bq);else Hq.once("end",Bq);Xq.on("unpipe",Yq);function Yq(Wq,Pq){if(xq&&Iq("onunpipe",Hq.__id),Wq===Hq){if(Pq&&Pq.hasUnpiped===!1)Pq.hasUnpiped=!0,Gq()}}function $q(){xq&&Iq("onend",Hq.__id),Xq.end()}let zq,Vq=!1;function Gq(){if(xq&&Iq("cleanup",Hq.__id),Xq.removeListener("close",jq),Xq.removeListener("finish",Lq),zq)Xq.removeListener("drain",zq);if(Xq.removeListener("error",Mq),Xq.removeListener("unpipe",Yq),Hq.removeListener("end",$q),Hq.removeListener("end",Nq),Hq.removeListener("data",Fq),Vq=!0,zq&&Zq.awaitDrainWriters&&(!Xq._writableState||Xq._writableState.needDrain))zq()}function Uq(){if(!Vq){if(Zq.pipes.length===1&&Zq.pipes[0]===Xq)xq&&Iq("false write response, pause",0,Hq.__id),Zq.awaitDrainWriters=Xq,Zq.multiAwaitDrain=!1;else if(Zq.pipes.length>1&&Zq.pipes.includes(Xq))xq&&Iq("false write response, pause",Zq.awaitDrainWriters.size,Hq.__id),Zq.awaitDrainWriters.add(Xq);Hq.pause()}if(!zq)zq=l(Hq,Xq),Xq.on("drain",zq)}Hq.on("data",Fq);function Fq(Wq){xq&&Iq("ondata",Hq.__id);const Pq=Xq.write(Wq);if(xq&&Iq("dest.write",Pq,Hq.__id),Pq===!1)Uq()}function Mq(Wq){if(Iq("onerror",Wq),Nq(),Xq.removeListener("error",Mq),Xq.listenerCount("error")===0){const Pq=Xq._writableState||Xq._readableState;if(Pq&&!Pq.errorEmitted)p(Xq,Wq);else Xq.emit("error",Wq)}}j(Xq,"error",Mq);function jq(){Xq.removeListener("finish",Lq),Nq()}Xq.once("close",jq);function Lq(){Iq("onfinish"),Xq.removeListener("close",jq),Nq()}Xq.once("finish",Lq);function Nq(){Iq("unpipe"),Hq.unpipe(Xq)}if(Xq.emit("pipe",Hq),Xq.writableNeedDrain===!0){if(Zq.flowing)Uq()}else if(!Zq.flowing)Iq("pipe resume"),Hq.resume();return Xq};function l(Xq,Jq){return function Hq(){const Zq=Xq._readableState;if(Zq.awaitDrainWriters===Jq)Iq("pipeOnDrain",1),Zq.awaitDrainWriters=null;else if(Zq.multiAwaitDrain)Iq("pipeOnDrain",Zq.awaitDrainWriters.size),Zq.awaitDrainWriters.delete(Jq);if((!Zq.awaitDrainWriters||Zq.awaitDrainWriters.size===0)&&Xq.listenerCount("data"))Xq.resume()}}L.prototype.unpipe=function(Xq){const Jq=this._readableState,Hq={hasUnpiped:!1};if(Jq.pipes.length===0)return this;if(!Xq){const Kq=Jq.pipes;Jq.pipes=[],this.pause();for(let Bq=0;Bq<Kq.length;Bq++)Kq[Bq].emit("unpipe",this,{hasUnpiped:!1});return this}const Zq=X(Jq.pipes,Xq);if(Zq===-1)return this;if(Jq.pipes.splice(Zq,1),Jq.pipes.length===0)this.pause();return Xq.emit("unpipe",this,Hq),this},L.prototype.addListener=L.prototype.on,L.prototype.removeListener=function(Xq,Jq){const Hq=M.prototype.removeListener.call(this,Xq,Jq);if(Xq==="readable")Aq(i,this);return Hq},L.prototype.off=L.prototype.removeListener,L.prototype.removeAllListeners=function(Xq){const Jq=M.prototype.removeAllListeners.apply(this,arguments);if(Xq==="readable"||Xq===void 0)Aq(i,this);return Jq};function i(Xq){const Jq=Xq._readableState;if(Jq.readableListening=Xq.listenerCount("readable")>0,Jq.resumeScheduled&&Jq.paused===!1)Jq.flowing=!0;else if(Xq.listenerCount("data")>0)Xq.resume();else if(!Jq.readableListening)Jq.flowing=null}function n(Xq){xq&&Iq("on readable nextTick, calling read(0)",Xq.__id),Xq.read(0)}L.prototype.resume=function(){const Xq=this._readableState;if(!Xq.flowing)xq&&Iq("resume",this.__id),Xq.flowing=!Xq.readableListening,T(this,Xq);return Xq.paused=!1,this},L.prototype.pause=function(){if(xq&&Iq("call pause flowing=%j",this._readableState.flowing,this.__id),this._readableState.flowing!==!1)xq&&Iq("pause",this.__id),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this},L.prototype.wrap=function(Xq){let Jq=!1;Xq.on("data",(Zq)=>{if(!this.push(Zq)&&Xq.pause)Jq=!0,Xq.pause()}),Xq.on("end",()=>{this.push(null)}),Xq.on("error",(Zq)=>{p(this,Zq)}),Xq.on("close",()=>{this.destroy()}),Xq.on("destroy",()=>{this.destroy()}),this._read=()=>{if(Jq&&Xq.resume)Jq=!1,Xq.resume()};const Hq=B(Xq);for(let Zq=1;Zq<Hq.length;Zq++){const Kq=Hq[Zq];if(this[Kq]===void 0&&typeof Xq[Kq]==="function")this[Kq]=Xq[Kq].bind(Xq)}return this},L.prototype[V]=function(){return o(this)},L.prototype.iterator=function(Xq){if(Xq!==void 0)k(Xq,"options");return o(this,Xq)};function o(Xq,Jq){if(typeof Xq.read!=="function")Xq=L.wrap(Xq,{objectMode:!0});const Hq=s(Xq,Jq);return Hq.stream=Xq,Hq}async function*s(Xq,Jq){let Hq=h;function Zq(Yq){if(this===Xq)Hq(),Hq=h;else Hq=Yq}Xq.on("readable",Zq);let Kq;const Bq=I(Xq,{writable:!1},(Yq)=>{Kq=Yq?D(Kq,Yq):null,Hq(),Hq=h});try{while(!0){const Yq=Xq.destroyed?null:Xq.read();if(Yq!==null)yield Yq;else if(Kq)throw Kq;else if(Kq===null)return;else await new $(Zq)}}catch(Yq){throw Kq=D(Kq,Yq),Kq}finally{if((Kq||(Jq===null||Jq===void 0?void 0:Jq.destroyOnReturn)!==!1)&&(Kq===void 0||Xq._readableState.autoDestroy))w.destroyer(Xq,null);else Xq.off("readable",Zq),Bq()}}K(L.prototype,{readable:{get(){const Xq=this._readableState;return!!Xq&&Xq.readable!==!1&&!Xq.destroyed&&!Xq.errorEmitted&&!Xq.endEmitted},set(Xq){if(this._readableState)this._readableState.readable=!!Xq}},readableDidRead:{enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Xq){if(this._readableState)this._readableState.flowing=Xq}},readableLength:{enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{get(){return this._readableState?this._readableState.closed:!1}},destroyed:{enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(Xq){if(!this._readableState)return;this._readableState.destroyed=Xq}},readableEnded:{enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),L._fromList=a;function a(Xq,Jq){if(Jq.length===0)return null;let Hq;if(Jq.objectMode)Hq=Jq.buffer.shift();else if(!Xq||Xq>=Jq.length){if(Jq.decoder)Hq=Jq.buffer.join("");else if(Jq.buffer.length===1)Hq=Jq.buffer.first();else Hq=Jq.buffer.concat(Jq.length);Jq.buffer.clear()}else Hq=Jq.buffer.consume(Xq,Jq.decoder);return Hq}function r(Xq){const Jq=Xq._readableState;if(xq&&Iq("endEmitted @ endReadable",Jq.endEmitted,Xq.__id),!Jq.endEmitted)Jq.ended=!0,Aq(t,Jq,Xq)}function t(Xq,Jq){if(xq&&Iq("endReadableNT -- endEmitted, state.length",Xq.endEmitted,Xq.length,Jq.__id),!Xq.errored&&!Xq.closeEmitted&&!Xq.endEmitted&&Xq.length===0){if(Xq.endEmitted=!0,Jq.emit("end"),xq&&Iq("end emitted @ endReadableNT",Jq.__id),Jq.writable&&Jq.allowHalfOpen===!1)Aq(e,Jq);else if(Xq.autoDestroy){const Hq=Jq._writableState;if(!Hq||Hq.autoDestroy&&(Hq.finished||Hq.writable===!1))Jq.destroy()}}}function e(Xq){if(Xq.writable&&!Xq.writableEnded&&!Xq.destroyed)Xq.end()}L.from=function(Xq,Jq){return y(L,Xq,Jq)};var qq={newStreamReadableFromReadableStream:W};function Qq(){if(qq===void 0)qq={};return qq}L.fromWeb=function(Xq,Jq){return Qq().newStreamReadableFromReadableStream(Xq,Jq)},L.toWeb=function(Xq){return Qq().newReadableStreamFromStreamReadable(Xq)},L.wrap=function(Xq,Jq){var Hq,Zq;return new L({objectMode:(Hq=(Zq=Xq.readableObjectMode)!==null&&Zq!==void 0?Zq:Xq.objectMode)!==null&&Hq!==void 0?Hq:!0,...Jq,destroy(Kq,Bq){w.destroyer(Xq,Kq),Bq(Kq)}}).wrap(Xq)}}}),BQ=cq({"node_modules/readable-stream/lib/internal/streams/writable.js"(q,Q){var{ArrayPrototypeSlice:X,Error:J,FunctionPrototypeSymbolHasInstance:H,ObjectDefineProperty:Z,ObjectDefineProperties:K,ObjectSetPrototypeOf:B,StringPrototypeToLowerCase:Y,Symbol:$,SymbolHasInstance:z}=Dq(),{EventEmitter:V}=Eq("bun:events_native"),G=QQ().Stream,U=qQ(),{addAbortSignal:F}=XQ(),{getHighWaterMark:M,getDefaultHighWaterMark:j}=JQ(),{ERR_INVALID_ARG_TYPE:L,ERR_METHOD_NOT_IMPLEMENTED:N,ERR_MULTIPLE_CALLBACK:W,ERR_STREAM_CANNOT_PIPE:P,ERR_STREAM_DESTROYED:I,ERR_STREAM_ALREADY_FINISHED:x,ERR_STREAM_NULL_VALUES:T,ERR_STREAM_WRITE_AFTER_END:A,ERR_UNKNOWN_ENCODING:O}=sq().codes,{errorOrDestroy:C}=U;function E(s={}){const a=this instanceof vq();if(!a&&!H(E,this))return new E(s);if(this._writableState=new _(s,this,a),s){if(typeof s.write==="function")this._write=s.write;if(typeof s.writev==="function")this._writev=s.writev;if(typeof s.destroy==="function")this._destroy=s.destroy;if(typeof s.final==="function")this._final=s.final;if(typeof s.construct==="function")this._construct=s.construct;if(s.signal)F(s.signal,this)}G.call(this,s),U.construct(this,()=>{const r=this._writableState;if(!r.writing)u(this,r);d(this,r)})}B(E.prototype,G.prototype),B(E,G),Q.exports=E;function w(){}var D=$("kOnFinished");function _(s,a,r){if(typeof r!=="boolean")r=a instanceof vq();if(this.objectMode=!!(s&&s.objectMode),r)this.objectMode=this.objectMode||!!(s&&s.writableObjectMode);this.highWaterMark=s?M(this,s,"writableHighWaterMark",r):j(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const t=!!(s&&s.decodeStrings===!1);this.decodeStrings=!t,this.defaultEncoding=s&&s.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=f.bind(void 0,a),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,v(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!s||s.emitClose!==!1,this.autoDestroy=!s||s.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[D]=[]}function v(s){s.buffered=[],s.bufferedIndex=0,s.allBuffers=!0,s.allNoop=!0}_.prototype.getBuffer=function s(){return X(this.buffered,this.bufferedIndex)},Z(_.prototype,"bufferedRequestCount",{get(){return this.buffered.length-this.bufferedIndex}}),Z(E,z,{value:function(s){if(H(this,s))return!0;if(this!==E)return!1;return s&&s._writableState instanceof _}}),E.prototype.pipe=function(){C(this,new P)};function R(s,a,r,t){const e=s._writableState;if(typeof r==="function")t=r,r=e.defaultEncoding;else{if(!r)r=e.defaultEncoding;else if(r!=="buffer"&&!Buffer.isEncoding(r))throw new O(r);if(typeof t!=="function")t=w}if(a===null)throw new T;else if(!e.objectMode)if(typeof a==="string"){if(e.decodeStrings!==!1)a=Buffer.from(a,r),r="buffer"}else if(a instanceof Buffer)r="buffer";else if(G._isUint8Array(a))a=G._uint8ArrayToBuffer(a),r="buffer";else throw new L("chunk",["string","Buffer","Uint8Array"],a);let qq;if(e.ending)qq=new A;else if(e.destroyed)qq=new I("write");if(qq)return Aq(t,qq),C(s,qq,!0),qq;return e.pendingcb++,g(s,e,a,r,t)}E.prototype.write=function(s,a,r){return R(this,s,a,r)===!0},E.prototype.cork=function(){this._writableState.corked++},E.prototype.uncork=function(){const s=this._writableState;if(s.corked){if(s.corked--,!s.writing)u(this,s)}},E.prototype.setDefaultEncoding=function s(a){if(typeof a==="string")a=Y(a);if(!Buffer.isEncoding(a))throw new O(a);return this._writableState.defaultEncoding=a,this};function g(s,a,r,t,e){const qq=a.objectMode?1:r.length;a.length+=qq;const Qq=a.length<a.highWaterMark;if(!Qq)a.needDrain=!0;if(a.writing||a.corked||a.errored||!a.constructed){if(a.buffered.push({chunk:r,encoding:t,callback:e}),a.allBuffers&&t!=="buffer")a.allBuffers=!1;if(a.allNoop&&e!==w)a.allNoop=!1}else a.writelen=qq,a.writecb=e,a.writing=!0,a.sync=!0,s._write(r,t,a.onwrite),a.sync=!1;return Qq&&!a.errored&&!a.destroyed}function S(s,a,r,t,e,qq,Qq){if(a.writelen=t,a.writecb=Qq,a.writing=!0,a.sync=!0,a.destroyed)a.onwrite(new I("write"));else if(r)s._writev(e,a.onwrite);else s._write(e,qq,a.onwrite);a.sync=!1}function k(s,a,r,t){--a.pendingcb,t(r),p(a),C(s,r)}function f(s,a){const r=s._writableState,t=r.sync,e=r.writecb;if(typeof e!=="function"){C(s,new W);return}if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,a){if(Error.captureStackTrace(a),!r.errored)r.errored=a;if(s._readableState&&!s._readableState.errored)s._readableState.errored=a;if(t)Aq(k,s,r,a,e);else k(s,r,a,e)}else{if(r.buffered.length>r.bufferedIndex)u(s,r);if(t)if(r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===e)r.afterWriteTickInfo.count++;else r.afterWriteTickInfo={count:1,cb:e,stream:s,state:r},Aq(y,r.afterWriteTickInfo);else h(s,r,1,e)}}function y({stream:s,state:a,count:r,cb:t}){return a.afterWriteTickInfo=null,h(s,a,r,t)}function h(s,a,r,t){if(!a.ending&&!s.destroyed&&a.length===0&&a.needDrain)a.needDrain=!1,s.emit("drain");while(r-- >0)a.pendingcb--,t();if(a.destroyed)p(a);d(s,a)}function p(s){if(s.writing)return;for(let e=s.bufferedIndex;e<s.buffered.length;++e){var a;const{chunk:qq,callback:Qq}=s.buffered[e],Xq=s.objectMode?1:qq.length;s.length-=Xq,Qq((a=s.errored)!==null&&a!==void 0?a:new I("write"))}const r=s[D].splice(0);for(let e=0;e<r.length;e++){var t;r[e]((t=s.errored)!==null&&t!==void 0?t:new I("end"))}v(s)}function u(s,a){if(a.corked||a.bufferProcessing||a.destroyed||!a.constructed)return;const{buffered:r,bufferedIndex:t,objectMode:e}=a,qq=r.length-t;if(!qq)return;let Qq=t;if(a.bufferProcessing=!0,qq>1&&s._writev){a.pendingcb-=qq-1;const Xq=a.allNoop?w:(Hq)=>{for(let Zq=Qq;Zq<r.length;++Zq)r[Zq].callback(Hq)},Jq=a.allNoop&&Qq===0?r:X(r,Qq);Jq.allBuffers=a.allBuffers,S(s,a,!0,a.length,Jq,"",Xq),v(a)}else{do{const{chunk:Xq,encoding:Jq,callback:Hq}=r[Qq];r[Qq++]=null;const Zq=e?1:Xq.length;S(s,a,!1,Zq,Xq,Jq,Hq)}while(Qq<r.length&&!a.writing);if(Qq===r.length)v(a);else if(Qq>256)r.splice(0,Qq),a.bufferedIndex=0;else a.bufferedIndex=Qq}a.bufferProcessing=!1}E.prototype._write=function(s,a,r){if(this._writev)this._writev([{chunk:s,encoding:a}],r);else throw new N("_write()")},E.prototype._writev=null,E.prototype.end=function(s,a,r,t=!1){const e=this._writableState;if(xq&&Iq("end",e,this.__id),typeof s==="function")r=s,s=null,a=null;else if(typeof a==="function")r=a,a=null;let qq;if(s!==null&&s!==void 0){let Qq;if(!t)Qq=R(this,s,a);else Qq=this.write(s,a);if(Qq instanceof J)qq=Qq}if(e.corked)e.corked=1,this.uncork();if(qq)this.emit("error",qq);else if(!e.errored&&!e.ending)e.ending=!0,d(this,e,!0),e.ended=!0;else if(e.finished)qq=new x("end");else if(e.destroyed)qq=new I("end");if(typeof r==="function")if(qq||e.finished)Aq(r,qq);else e[D].push(r);return this};function m(s,a){var r=s.ending&&!s.destroyed&&s.constructed&&s.length===0&&!s.errored&&s.buffered.length===0&&!s.finished&&!s.writing&&!s.errorEmitted&&!s.closeEmitted;return Iq("needFinish",r,a),r}function b(s,a){let r=!1;function t(e){if(r){C(s,e!==null&&e!==void 0?e:W());return}if(r=!0,a.pendingcb--,e){const qq=a[D].splice(0);for(let Qq=0;Qq<qq.length;Qq++)qq[Qq](e);C(s,e,a.sync)}else if(m(a))a.prefinished=!0,s.emit("prefinish"),a.pendingcb++,Aq(l,s,a)}a.sync=!0,a.pendingcb++;try{s._final(t)}catch(e){t(e)}a.sync=!1}function c(s,a){if(!a.prefinished&&!a.finalCalled)if(typeof s._final==="function"&&!a.destroyed)a.finalCalled=!0,b(s,a);else a.prefinished=!0,s.emit("prefinish")}function d(s,a,r){if(xq&&Iq("finishMaybe -- state, sync",a,r,s.__id),!m(a,s.__id))return;if(c(s,a),a.pendingcb===0){if(r)a.pendingcb++,Aq((t,e)=>{if(m(e))l(t,e);else e.pendingcb--},s,a);else if(m(a))a.pendingcb++,l(s,a)}}function l(s,a){a.pendingcb--,a.finished=!0;const r=a[D].splice(0);for(let t=0;t<r.length;t++)r[t]();if(s.emit("finish"),a.autoDestroy){const t=s._readableState;if(!t||t.autoDestroy&&(t.endEmitted||t.readable===!1))s.destroy()}}K(E.prototype,{closed:{get(){return this._writableState?this._writableState.closed:!1}},destroyed:{get(){return this._writableState?this._writableState.destroyed:!1},set(s){if(this._writableState)this._writableState.destroyed=s}},writable:{get(){const s=this._writableState;return!!s&&s.writable!==!1&&!s.destroyed&&!s.errored&&!s.ending&&!s.ended},set(s){if(this._writableState)this._writableState.writable=!!s}},writableFinished:{get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{get(){const s=this._writableState;if(!s)return!1;return!s.destroyed&&!s.ending&&s.needDrain}},writableHighWaterMark:{get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{get(){return this._writableState?this._writableState.corked:0}},writableLength:{get(){return this._writableState&&this._writableState.length}},errored:{enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var i=U.destroy;E.prototype.destroy=function(s,a){const r=this._writableState;if(!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[D].length))Aq(p,r);return i.call(this,s,a),this},E.prototype._undestroy=U.undestroy,E.prototype._destroy=function(s,a){a(s)},E.prototype[V.captureRejectionSymbol]=function(s){this.destroy(s)};var n;function o(){if(n===void 0)n={};return n}E.fromWeb=function(s,a){return o().newStreamWritableFromWritableStream(s,a)},E.toWeb=function(s){return o().newWritableStreamFromStreamWritable(s)}}}),YQ=cq({"node_modules/readable-stream/lib/internal/streams/duplexify.js"(q,Q){var X=Eq("buffer"),{isReadable:J,isWritable:H,isIterable:Z,isNodeStream:K,isReadableNodeStream:B,isWritableNodeStream:Y,isDuplexNodeStream:$}=rq(),z=tq(),{AbortError:V,codes:{ERR_INVALID_ARG_TYPE:G,ERR_INVALID_RETURN_VALUE:U}}=sq(),{destroyer:F}=qQ(),M=vq(),j=KQ(),{createDeferredPromise:L}=_q(),N=HQ(),W=globalThis.Blob||X.Blob,P=typeof W!=="undefined"?function C(E){return E instanceof W}:function C(E){return!1},I=globalThis.AbortController||Eq("abort-controller").AbortController,{FunctionPrototypeCall:x}=Dq();class T extends M{constructor(C){super(C);if((C===null||C===void 0?void 0:C.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((C===null||C===void 0?void 0:C.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}Q.exports=function C(E,w){if($(E))return E;if(B(E))return O({readable:E});if(Y(E))return O({writable:E});if(K(E))return O({writable:!1,readable:!1});if(typeof E==="function"){const{value:_,write:v,final:R,destroy:g}=A(E);if(Z(_))return N(T,_,{objectMode:!0,write:v,final:R,destroy:g});const S=_===null||_===void 0?void 0:_.then;if(typeof S==="function"){let k;const f=x(S,_,(y)=>{if(y!=null)throw new U("nully","body",y)},(y)=>{F(k,y)});return k=new T({objectMode:!0,readable:!1,write:v,final(y){R(async()=>{try{await f,Aq(y,null)}catch(h){Aq(y,h)}})},destroy:g})}throw new U("Iterable, AsyncIterable or AsyncFunction",w,_)}if(P(E))return C(E.arrayBuffer());if(Z(E))return N(T,E,{objectMode:!0,writable:!1});if(typeof(E===null||E===void 0?void 0:E.writable)==="object"||typeof(E===null||E===void 0?void 0:E.readable)==="object"){const _=E!==null&&E!==void 0&&E.readable?B(E===null||E===void 0?void 0:E.readable)?E===null||E===void 0?void 0:E.readable:C(E.readable):void 0,v=E!==null&&E!==void 0&&E.writable?Y(E===null||E===void 0?void 0:E.writable)?E===null||E===void 0?void 0:E.writable:C(E.writable):void 0;return O({readable:_,writable:v})}const D=E===null||E===void 0?void 0:E.then;if(typeof D==="function"){let _;return x(D,E,(v)=>{if(v!=null)_.push(v);_.push(null)},(v)=>{F(_,v)}),_=new T({objectMode:!0,writable:!1,read(){}})}throw new G(w,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],E)};function A(C){let{promise:E,resolve:w}=L();const D=new I,_=D.signal;return{value:C(async function*(){while(!0){const R=E;E=null;const{chunk:g,done:S,cb:k}=await R;if(Aq(k),S)return;if(_.aborted)throw new V(void 0,{cause:_.reason});({promise:E,resolve:w}=L()),yield g}}(),{signal:_}),write(R,g,S){const k=w;w=null,k({chunk:R,done:!1,cb:S})},final(R){const g=w;w=null,g({done:!0,cb:R})},destroy(R,g){D.abort(),g(R)}}}function O(C){const E=C.readable&&typeof C.readable.read!=="function"?j.wrap(C.readable):C.readable,w=C.writable;let D=!!J(E),_=!!H(w),v,R,g,S,k;function f(y){const h=S;if(S=null,h)h(y);else if(y)k.destroy(y);else if(!D&&!_)k.destroy()}if(k=new T({readableObjectMode:!!(E!==null&&E!==void 0&&E.readableObjectMode),writableObjectMode:!!(w!==null&&w!==void 0&&w.writableObjectMode),readable:D,writable:_}),_)z(w,(y)=>{if(_=!1,y)F(E,y);f(y)}),k._write=function(y,h,p){if(w.write(y,h))p();else v=p},k._final=function(y){w.end(),R=y},w.on("drain",function(){if(v){const y=v;v=null,y()}}),w.on("finish",function(){if(R){const y=R;R=null,y()}});if(D)z(E,(y)=>{if(D=!1,y)F(E,y);f(y)}),E.on("readable",function(){if(g){const y=g;g=null,y()}}),E.on("end",function(){k.push(null)}),k._read=function(){while(!0){const y=E.read();if(y===null){g=k._read;return}if(!k.push(y))return}};return k._destroy=function(y,h){if(!y&&S!==null)y=new V;if(g=null,v=null,R=null,S===null)h(y);else S=h,F(w,y),F(E,y)},k}}}),vq=cq({"node_modules/readable-stream/lib/internal/streams/duplex.js"(q,Q){var{ObjectDefineProperties:X,ObjectGetOwnPropertyDescriptor:J,ObjectKeys:H,ObjectSetPrototypeOf:Z}=Dq(),K=KQ();function B(G){if(!(this instanceof B))return new B(G);if(K.call(this,G),Tq.call(this,G),G){if(this.allowHalfOpen=G.allowHalfOpen!==!1,G.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(G.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}Q.exports=B,Z(B.prototype,K.prototype),Z(B,K);for(var Y in Tq.prototype)if(!B.prototype[Y])B.prototype[Y]=Tq.prototype[Y];X(B.prototype,{writable:J(Tq.prototype,"writable"),writableHighWaterMark:J(Tq.prototype,"writableHighWaterMark"),writableObjectMode:J(Tq.prototype,"writableObjectMode"),writableBuffer:J(Tq.prototype,"writableBuffer"),writableLength:J(Tq.prototype,"writableLength"),writableFinished:J(Tq.prototype,"writableFinished"),writableCorked:J(Tq.prototype,"writableCorked"),writableEnded:J(Tq.prototype,"writableEnded"),writableNeedDrain:J(Tq.prototype,"writableNeedDrain"),destroyed:{get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(G){if(this._readableState&&this._writableState)this._readableState.destroyed=G,this._writableState.destroyed=G}}});var $;function z(){if($===void 0)$={};return $}B.fromWeb=function(G,U){return z().newStreamDuplexFromReadableWritablePair(G,U)},B.toWeb=function(G){return z().newReadableWritablePairFromDuplex(G)};var V;B.from=function(G){if(!V)V=YQ();return V(G,"body")}}}),$Q=cq({"node_modules/readable-stream/lib/internal/streams/transform.js"(q,Q){var{ObjectSetPrototypeOf:X,Symbol:J}=Dq(),{ERR_METHOD_NOT_IMPLEMENTED:H}=sq().codes,Z=vq();function K(z){if(!(this instanceof K))return new K(z);if(Z.call(this,z),this._readableState.sync=!1,this[B]=null,z){if(typeof z.transform==="function")this._transform=z.transform;if(typeof z.flush==="function")this._flush=z.flush}this.on("prefinish",$.bind(this))}X(K.prototype,Z.prototype),X(K,Z),Q.exports=K;var B=J("kCallback");function Y(z){if(typeof this._flush==="function"&&!this.destroyed)this._flush((V,G)=>{if(V){if(z)z(V);else this.destroy(V);return}if(G!=null)this.push(G);if(this.push(null),z)z()});else if(this.push(null),z)z()}function $(){if(this._final!==Y)Y.call(this)}K.prototype._final=Y,K.prototype._transform=function(z,V,G){throw new H("_transform()")},K.prototype._write=function(z,V,G){const U=this._readableState,F=this._writableState,M=U.length;this._transform(z,V,(j,L)=>{if(j){G(j);return}if(L!=null)this.push(L);if(F.ended||M===U.length||U.length<U.highWaterMark||U.highWaterMark===0||U.length===0)G();else this[B]=G})},K.prototype._read=function(){if(this[B]){const z=this[B];this[B]=null,z()}}}}),zQ=cq({"node_modules/readable-stream/lib/internal/streams/passthrough.js"(q,Q){var{ObjectSetPrototypeOf:X}=Dq(),J=$Q();function H(Z){if(!(this instanceof H))return new H(Z);J.call(this,Z)}X(H.prototype,J.prototype),X(H,J),H.prototype._transform=function(Z,K,B){B(null,Z)},Q.exports=H}}),VQ=cq({"node_modules/readable-stream/lib/internal/streams/pipeline.js"(q,Q){var{ArrayIsArray:X,Promise:J,SymbolAsyncIterator:H}=Dq(),Z=tq(),{once:K}=_q(),B=qQ(),Y=vq(),{aggregateTwoErrors:$,codes:{ERR_INVALID_ARG_TYPE:z,ERR_INVALID_RETURN_VALUE:V,ERR_MISSING_ARGS:G,ERR_STREAM_DESTROYED:U},AbortError:F}=sq(),{validateFunction:M,validateAbortSignal:j}=aq(),{isIterable:L,isReadable:N,isReadableNodeStream:W,isNodeStream:P}=rq(),I=globalThis.AbortController||Eq("abort-controller").AbortController,x,T;function A(R,g,S){let k=!1;R.on("close",()=>{k=!0});const f=Z(R,{readable:g,writable:S},(y)=>{k=!y});return{destroy:(y)=>{if(k)return;k=!0,B.destroyer(R,y||new U("pipe"))},cleanup:f}}function O(R){return M(R[R.length-1],"streams[stream.length - 1]"),R.pop()}function C(R){if(L(R))return R;else if(W(R))return E(R);throw new z("val",["Readable","Iterable","AsyncIterable"],R)}async function*E(R){if(!T)T=KQ();yield*T.prototype[H].call(R)}async function w(R,g,S,{end:k}){let f,y=null;const h=(m)=>{if(m)f=m;if(y){const b=y;y=null,b()}},p=()=>new J((m,b)=>{if(f)b(f);else y=()=>{if(f)b(f);else m()}});g.on("drain",h);const u=Z(g,{readable:!1},h);try{if(g.writableNeedDrain)await p();for await(let m of R)if(!g.write(m))await p();if(k)g.end();await p(),S()}catch(m){S(f!==m?$(f,m):m)}finally{u(),g.off("drain",h)}}function D(...R){return _(R,K(O(R)))}function _(R,g,S){if(R.length===1&&X(R[0]))R=R[0];if(R.length<2)throw new G("streams");const k=new I,f=k.signal,y=S===null||S===void 0?void 0:S.signal,h=[];j(y,"options.signal");function p(){l(new F)}y===null||y===void 0||y.addEventListener("abort",p);let u,m;const b=[];let c=0;function d(o){l(o,--c===0)}function l(o,s){if(o&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE"))u=o;if(!u&&!s)return;while(b.length)b.shift()(u);if(y===null||y===void 0||y.removeEventListener("abort",p),k.abort(),s){if(!u)h.forEach((a)=>a());Aq(g,u,m)}}let i;for(let o=0;o<R.length;o++){const s=R[o],a=o<R.length-1,r=o>0,t=a||(S===null||S===void 0?void 0:S.end)!==!1,e=o===R.length-1;if(P(s)){let qq=function(Qq){if(Qq&&Qq.name!=="AbortError"&&Qq.code!=="ERR_STREAM_PREMATURE_CLOSE")d(Qq)};if(t){const{destroy:Qq,cleanup:Xq}=A(s,a,r);if(b.push(Qq),N(s)&&e)h.push(Xq)}if(s.on("error",qq),N(s)&&e)h.push(()=>{s.removeListener("error",qq)})}if(o===0)if(typeof s==="function"){if(i=s({signal:f}),!L(i))throw new V("Iterable, AsyncIterable or Stream","source",i)}else if(L(s)||W(s))i=s;else i=Y.from(s);else if(typeof s==="function")if(i=C(i),i=s(i,{signal:f}),a){if(!L(i,!0))throw new V("AsyncIterable",`transform[${o-1}]`,i)}else{var n;if(!x)x=zQ();const qq=new x({objectMode:!0}),Qq=(n=i)===null||n===void 0?void 0:n.then;if(typeof Qq==="function")c++,Qq.call(i,(Hq)=>{if(m=Hq,Hq!=null)qq.write(Hq);if(t)qq.end();Aq(d)},(Hq)=>{qq.destroy(Hq),Aq(d,Hq)});else if(L(i,!0))c++,w(i,qq,d,{end:t});else throw new V("AsyncIterable or Promise","destination",i);i=qq;const{destroy:Xq,cleanup:Jq}=A(i,!1,!0);if(b.push(Xq),e)h.push(Jq)}else if(P(s)){if(W(i)){c+=2;const qq=v(i,s,d,{end:t});if(N(s)&&e)h.push(qq)}else if(L(i))c++,w(i,s,d,{end:t});else throw new z("val",["Readable","Iterable","AsyncIterable"],i);i=s}else i=Y.from(s)}if(f!==null&&f!==void 0&&f.aborted||y!==null&&y!==void 0&&y.aborted)Aq(p);return i}function v(R,g,S,{end:k}){if(R.pipe(g,{end:k}),k)R.once("end",()=>g.end());else S();return Z(R,{readable:!0,writable:!1},(f)=>{const y=R._readableState;if(f&&f.code==="ERR_STREAM_PREMATURE_CLOSE"&&y&&y.ended&&!y.errored&&!y.errorEmitted)R.once("end",S).once("error",S);else S(f)}),Z(g,{readable:!1,writable:!0},S)}Q.exports={pipelineImpl:_,pipeline:D}}}),GQ=cq({"node_modules/readable-stream/lib/internal/streams/compose.js"(q,Q){var{pipeline:X}=VQ(),J=vq(),{destroyer:H}=qQ(),{isNodeStream:Z,isReadable:K,isWritable:B}=rq(),{AbortError:Y,codes:{ERR_INVALID_ARG_VALUE:$,ERR_MISSING_ARGS:z}}=sq();Q.exports=function V(...G){if(G.length===0)throw new z("streams");if(G.length===1)return J.from(G[0]);const U=[...G];if(typeof G[0]==="function")G[0]=J.from(G[0]);if(typeof G[G.length-1]==="function"){const A=G.length-1;G[A]=J.from(G[A])}for(let A=0;A<G.length;++A){if(!Z(G[A]))continue;if(A<G.length-1&&!K(G[A]))throw new $(`streams[${A}]`,U[A],"must be readable");if(A>0&&!B(G[A]))throw new $(`streams[${A}]`,U[A],"must be writable")}let F,M,j,L,N;function W(A){const O=L;if(L=null,O)O(A);else if(A)N.destroy(A);else if(!T&&!x)N.destroy()}const P=G[0],I=X(G,W),x=!!B(P),T=!!K(I);if(N=new J({writableObjectMode:!!(P!==null&&P!==void 0&&P.writableObjectMode),readableObjectMode:!!(I!==null&&I!==void 0&&I.writableObjectMode),writable:x,readable:T}),x)N._write=function(A,O,C){if(P.write(A,O))C();else F=C},N._final=function(A){P.end(),M=A},P.on("drain",function(){if(F){const A=F;F=null,A()}}),I.on("finish",function(){if(M){const A=M;M=null,A()}});if(T)I.on("readable",function(){if(j){const A=j;j=null,A()}}),I.on("end",function(){N.push(null)}),N._read=function(){while(!0){const A=I.read();if(A===null){j=N._read;return}if(!N.push(A))return}};return N._destroy=function(A,O){if(!A&&L!==null)A=new Y;if(j=null,F=null,M=null,L===null)O(A);else L=O,H(I,A)},N}}}),UQ=cq({"node_modules/readable-stream/lib/stream/promises.js"(q,Q){var{ArrayPrototypePop:X,Promise:J}=Dq(),{isIterable:H,isNodeStream:Z}=rq(),{pipelineImpl:K}=VQ(),{finished:B}=tq();function Y(...$){return new J((z,V)=>{let G,U;const F=$[$.length-1];if(F&&typeof F==="object"&&!Z(F)&&!H(F)){const M=X($);G=M.signal,U=M.end}K($,(M,j)=>{if(M)V(M);else z(j)},{signal:G,end:U})})}Q.exports={finished:B,pipeline:Y}}}),FQ=cq({"node_modules/readable-stream/lib/stream.js"(q,Q){var{ObjectDefineProperty:X,ObjectKeys:J,ReflectApply:H}=Dq(),{promisify:{custom:Z}}=_q(),{streamReturningOperators:K,promiseReturningOperators:B}=eq(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:Y}}=sq(),$=GQ(),{pipeline:z}=VQ(),{destroyer:V}=qQ(),G=tq(),U=UQ(),F=rq(),M=Q.exports=QQ().Stream;M.isDisturbed=F.isDisturbed,M.isErrored=F.isErrored,M.isWritable=F.isWritable,M.isReadable=F.isReadable,M.Readable=KQ();for(let L of J(K)){let N=function(...P){if(new.target)throw Y();return M.Readable.from(H(W,this,P))};const W=K[L];X(N,"name",{value:W.name}),X(N,"length",{value:W.length}),X(M.Readable.prototype,L,{value:N,enumerable:!1,configurable:!0,writable:!0})}for(let L of J(B)){let N=function(...P){if(new.target)throw Y();return H(W,this,P)};const W=B[L];X(N,"name",{value:W.name}),X(N,"length",{value:W.length}),X(M.Readable.prototype,L,{value:N,enumerable:!1,configurable:!0,writable:!0})}M.Writable=BQ(),M.Duplex=vq(),M.Transform=$Q(),M.PassThrough=zQ(),M.pipeline=z;var{addAbortSignal:j}=XQ();M.addAbortSignal=j,M.finished=G,M.destroy=V,M.compose=$,X(M,"promises",{configurable:!0,enumerable:!0,get(){return U}}),X(z,Z,{enumerable:!0,get(){return U.pipeline}}),X(G,Z,{enumerable:!0,get(){return U.finished}}),M.Stream=M,M._isUint8Array=function L(N){return N instanceof Uint8Array},M._uint8ArrayToBuffer=function L(N){return new Buffer(N.buffer,N.byteOffset,N.byteLength)}}}),MQ=cq({"node_modules/readable-stream/lib/ours/index.js"(q,Q){const X=FQ(),J=UQ(),H=X.Readable.destroy;Q.exports=X,Q.exports._uint8ArrayToBuffer=X._uint8ArrayToBuffer,Q.exports._isUint8Array=X._isUint8Array,Q.exports.isDisturbed=X.isDisturbed,Q.exports.isErrored=X.isErrored,Q.exports.isWritable=X.isWritable,Q.exports.isReadable=X.isReadable,Q.exports.Readable=X.Readable,Q.exports.Writable=X.Writable,Q.exports.Duplex=X.Duplex,Q.exports.Transform=X.Transform,Q.exports.PassThrough=X.PassThrough,Q.exports.addAbortSignal=X.addAbortSignal,Q.exports.finished=X.finished,Q.exports.destroy=X.destroy,Q.exports.destroy=H,Q.exports.pipeline=X.pipeline,Q.exports.compose=X.compose,Q.exports._getNativeReadableStreamPrototype=NQ,Q.exports.NativeWritable=pQ,Oq.defineProperty(X,"promises",{configurable:!0,enumerable:!0,get(){return J}}),Q.exports.Stream=X.Stream,Q.exports.default=Q.exports}}),LQ={0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,5:void 0},Tq=BQ(),pQ=class q extends Tq{#q;#Q;#X=!0;_construct;_destroy;_final;constructor(Q,X={}){super(X);this._construct=this.#J,this._destroy=this.#Z,this._final=this.#K,this.#q=Q}#J(Q){this._writableState.constructed=!0,this.constructed=!0,Q()}#H(){if(typeof this.#q==="object")if(typeof this.#q.write==="function")this.#Q=this.#q;else throw new Error("Invalid FileSink");else this.#Q=Bun.file(this.#q).writer()}write(Q,X,J,H=this.#X){if(!H)return this.#X=!1,super.write(Q,X,J);if(!this.#Q)this.#H();var Z=this.#Q,K=Z.write(Q);if(Cq(K))return K.then(()=>{this.emit("drain"),Z.flush(!0)}),!1;if(Z.flush(!0),J)J(null,Q.byteLength);return!0}end(Q,X,J,H=this.#X){return super.end(Q,X,J,H)}#Z(Q,X){if(this._writableState.destroyed=!0,X)X(Q)}#K(Q){if(this.#Q)this.#Q.end();if(Q)Q()}ref(){if(!this.#Q)this.#H();this.#Q.ref()}unref(){if(!this.#Q)return;this.#Q.unref()}},PQ=MQ();PQ[Symbol.for("CommonJS")]=0;PQ[Symbol.for("::bunternal::")]={_ReadableFromWeb:ZQ};var lQ=PQ,IQ=PQ._uint8ArrayToBuffer,xQ=PQ._isUint8Array,TQ=PQ.isDisturbed,AQ=PQ.isErrored,OQ=PQ.isWritable,CQ=PQ.isReadable,EQ=PQ.Readable,Tq=PQ.Writable,wQ=PQ.Duplex,DQ=PQ.Transform,_Q=PQ.PassThrough,vQ=PQ.addAbortSignal,RQ=PQ.finished,gQ=PQ.destroy,SQ=PQ.pipeline,kQ=PQ.compose,fQ=PQ.Stream,yQ=PQ["eos"]=tq,hQ=PQ._getNativeReadableStreamPrototype,pQ=PQ.NativeWritable,uQ=fQ.promise;export{uQ as promises,SQ as pipeline,OQ as isWritable,CQ as isReadable,AQ as isErrored,TQ as isDisturbed,RQ as finished,yQ as eos,gQ as destroy,lQ as default,kQ as compose,vQ as addAbortSignal,IQ as _uint8ArrayToBuffer,xQ as _isUint8Array,hQ as _getNativeReadableStreamPrototype,Tq as Writable,DQ as Transform,fQ as Stream,EQ as Readable,_Q as PassThrough,pQ as NativeWritable,wQ as Duplex}; +var Cq=function(q){if(!(this instanceof Cq))return new Cq(q);mq.call(this,q);const Q=q.__id;if(Q)fq(this,"__id",{value:Q,readable:!0,writable:!1,enumerable:!1})},dq=function(q){return typeof q==="object"&&q!==null&&q instanceof ReadableStream},lq=function(q,Q){if(typeof q!=="boolean")throw new nq(Q,"boolean",q)};var nq=function(q,Q,X){return new Error(`The argument '${q}' is invalid. Received '${X}' for type '${Q}'`)},oq=function(q,Q,X){return new Error(`The value '${Q}' is invalid for argument '${q}'. Reason: ${X}`)},FQ=function(q,Q){var[X,J,H,K,Z,Y,B]=globalThis[Symbol.for("Bun.lazy")](q),$=[!1],z=function(F,L,j,N){if(L>0){const P=j.subarray(0,L),E=j.subarray(L);if(P.byteLength>0)F.push(P);if(N)F.push(null);return E.byteLength>0?E:void 0}if(N)F.push(null);return j},V=function(F,L,j,N){if(L.byteLength>0)F.push(L);if(N)F.push(null);return j},U=process.env.BUN_DISABLE_DYNAMIC_CHUNK_SIZE!=="1";const W=new FinalizationRegistry((F)=>F&&Z(F)),G=512;var M=class F extends Q{#q;#Q=1;#X=!1;#J=void 0;#H;#K=!1;#Z=!U;#Y;constructor(L,j={}){super(j);if(typeof j.highWaterMark==="number")this.#H=j.highWaterMark;else this.#H=262144;this.#q=L,this.#X=!1,this.#J=void 0,this.#K=!1,this.#Y={},W.register(this,this.#q,this.#Y)}_read(L){if(Iq&&Eq("NativeReadable._read",this.__id),this.#K){Iq&&Eq("pendingRead is true",this.__id);return}var j=this.#q;if(Iq&&Eq("ptr @ NativeReadable._read",j,this.__id),j===0){this.push(null);return}if(!this.#X)Iq&&Eq("NativeReadable not constructed yet",this.__id),this.#B(j);return this.#V(this.#$(L),j)}#B(L){this.#X=!0;const j=J(L,this.#H);if(Iq&&Eq("NativeReadable internal `start` result",j,this.__id),typeof j==="number"&&j>1)this.#Z=!0,Iq&&Eq("NativeReadable resized",this.__id),this.#H=Math.min(this.#H,j);if(B){const N=B(L);if(Iq&&Eq("NativeReadable drain result",N,this.__id),(N?.byteLength??0)>0)this.push(N)}}#$(L=this.#H){var j=this.#J;if(Iq&&Eq("chunk @ #getRemainingChunk",j,this.__id),j?.byteLength??0<G){var N=L>G?L:G;this.#J=j=new Buffer(N)}return j}push(L,j){return Iq&&Eq("NativeReadable push -- result, encoding",L,j,this.__id),super.push(...arguments)}#z(L,j,N){if(Iq&&Eq("result, isClosed @ #handleResult",L,N,this.__id),typeof L==="number"){if(L>=this.#H&&!this.#Z&&!N)this.#H*=2,this.#Z=!0;return z(this,L,j,N)}else if(typeof L==="boolean")return this.push(null),j?.byteLength??0>0?j:void 0;else if(ArrayBuffer.isView(L)){if(L.byteLength>=this.#H&&!this.#Z&&!N)this.#H*=2,this.#Z=!0,Iq&&Eq("Resized",this.__id);return V(this,L,j,N)}else throw Iq&&Eq("Unknown result type",L,this.__id),new Error("Invalid result from pull")}#V(L,j){Iq&&Eq("#internalRead()",this.__id),$[0]=!1;var N=X(j,L,$);if(Oq(N))return this.#K=!0,N.then((P)=>{this.#K=!1,Iq&&Eq("pending no longerrrrrrrr (result returned from pull)",this.__id),this.#J=this.#z(P,L,$[0])},(P)=>{Iq&&Eq("error from pull",P,this.__id),errorOrDestroy(this,P)});else this.#J=this.#z(N,L,$[0])}_destroy(L,j){var N=this.#q;if(N===0){j(L);return}if(W.unregister(this.#Y),this.#q=0,Y)Y(N,!1);Iq&&Eq("NativeReadable destroyed",this.__id),H(N,L),j(L)}ref(){var L=this.#q;if(L===0)return;if(this.#Q++===0)Y(L,!0)}unref(){var L=this.#q;if(L===0)return;if(this.#Q--===1)Y(L,!1)}};if(!Y)M.prototype.ref=void 0,M.prototype.unref=void 0;return M},jQ=function(q,Q){return LQ[q]||=FQ(q,Q)},NQ=function(q,Q,X){if(!(Q&&typeof Q==="object"&&Q instanceof ReadableStream))return;const J=Sq(Q);if(!J){Eq("no native readable stream");return}const{stream:H,data:K}=J;return new(jQ(K,q))(H,X)},{isPromise:Oq,isCallable:Rq,direct:Sq,Object:xq}=import.meta.primordials;globalThis.__IDS_TO_TRACK=process.env.DEBUG_TRACK_EE?.length?process.env.DEBUG_TRACK_EE.split(","):process.env.DEBUG_STREAMS?.length?process.env.DEBUG_STREAMS.split(","):null;var gq=!!process.env.DEBUG_TRACK_EE,Iq=!!(process.env.DEBUG||process.env.DEBUG_STREAMS||gq),Eq=Iq?globalThis.__IDS_TO_TRACK?(...q)=>{const Q=q[q.length-1];if(!globalThis.__IDS_TO_TRACK.includes(Q))return;console.log(`ID: ${Q}`,...q.slice(0,-1))}:(...q)=>console.log(...q.slice(0,-1)):()=>{},kq=xq.create,fq=xq.defineProperty,yq=xq.getOwnPropertyDescriptor,hq=xq.getOwnPropertyNames,pq=xq.getPrototypeOf,uq=xq.prototype.hasOwnProperty,bq=xq.setPrototypeOf,_q=(q)=>import.meta.require(q),mq=_q("bun:events_native");bq(Cq.prototype,mq.prototype);bq(Cq,mq);Cq.prototype.emit=function(q,...Q){var X=this.__id;if(X)Eq("emit",q,...Q,X);else Eq("emit",q,...Q);return mq.prototype.emit.call(this,q,...Q)};Cq.prototype.on=function(q,Q){var X=this.__id;if(X)Eq("on",q,"added",X);else Eq("on",q,"added");return mq.prototype.on.call(this,q,Q)};Cq.prototype.addListener=function(q,Q){return this.on(q,Q)};var cq=(q,Q)=>function X(){return Q||(0,q[hq(q)[0]])((Q={exports:{}}).exports,Q),Q.exports};var Aq=process.nextTick;var iq=Array.isArray,Dq=cq({"node_modules/readable-stream/lib/ours/primordials.js"(q,Q){Q.exports={ArrayIsArray(X){return Array.isArray(X)},ArrayPrototypeIncludes(X,J){return X.includes(J)},ArrayPrototypeIndexOf(X,J){return X.indexOf(J)},ArrayPrototypeJoin(X,J){return X.join(J)},ArrayPrototypeMap(X,J){return X.map(J)},ArrayPrototypePop(X,J){return X.pop(J)},ArrayPrototypePush(X,J){return X.push(J)},ArrayPrototypeSlice(X,J,H){return X.slice(J,H)},Error,FunctionPrototypeCall(X,J,...H){return X.call(J,...H)},FunctionPrototypeSymbolHasInstance(X,J){return Function.prototype[Symbol.hasInstance].call(X,J)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(X,J){return xq.defineProperties(X,J)},ObjectDefineProperty(X,J,H){return xq.defineProperty(X,J,H)},ObjectGetOwnPropertyDescriptor(X,J){return xq.getOwnPropertyDescriptor(X,J)},ObjectKeys(X){return xq.keys(X)},ObjectSetPrototypeOf(X,J){return xq.setPrototypeOf(X,J)},Promise,PromisePrototypeCatch(X,J){return X.catch(J)},PromisePrototypeThen(X,J,H){return X.then(J,H)},PromiseReject(X){return Promise.reject(X)},ReflectApply:Reflect.apply,RegExpPrototypeTest(X,J){return X.test(J)},SafeSet:Set,String,StringPrototypeSlice(X,J,H){return X.slice(J,H)},StringPrototypeToLowerCase(X){return X.toLowerCase()},StringPrototypeToUpperCase(X){return X.toUpperCase()},StringPrototypeTrim(X){return X.trim()},Symbol,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,TypedArrayPrototypeSet(X,J,H){return X.set(J,H)},Uint8Array}}}),wq=cq({"node_modules/readable-stream/lib/ours/util.js"(q,Q){var X=_q("buffer"),J=xq.getPrototypeOf(async function(){}).constructor,H=globalThis.Blob||X.Blob,K=typeof H!=="undefined"?function Y(B){return B instanceof H}:function Y(B){return!1},Z=class extends Error{constructor(Y){if(!Array.isArray(Y))throw new TypeError(`Expected input to be an Array, got ${typeof Y}`);let B="";for(let $=0;$<Y.length;$++)B+=` ${Y[$].stack} +`;super(B);this.name="AggregateError",this.errors=Y}};Q.exports={AggregateError:Z,once(Y){let B=!1;return function(...$){if(B)return;B=!0,Y.apply(this,$)}},createDeferredPromise:function(){let Y,B;return{promise:new Promise((z,V)=>{Y=z,B=V}),resolve:Y,reject:B}},promisify(Y){return new Promise((B,$)=>{Y((z,...V)=>{if(z)return $(z);return B(...V)})})},debuglog(){return function(){}},format(Y,...B){return Y.replace(/%([sdifj])/g,function(...[$,z]){const V=B.shift();if(z==="f")return V.toFixed(6);else if(z==="j")return JSON.stringify(V);else if(z==="s"&&typeof V==="object")return`${V.constructor!==xq?V.constructor.name:""} {}`.trim();else return V.toString()})},inspect(Y){switch(typeof Y){case"string":if(Y.includes("'")){if(!Y.includes('"'))return`"${Y}"`;else if(!Y.includes("`")&&!Y.includes("${"))return`\`${Y}\``}return`'${Y}'`;case"number":if(isNaN(Y))return"NaN";else if(xq.is(Y,-0))return String(Y);return Y;case"bigint":return`${String(Y)}n`;case"boolean":case"undefined":return String(Y);case"object":return"{}"}},types:{isAsyncFunction(Y){return Y instanceof J},isArrayBufferView(Y){return ArrayBuffer.isView(Y)}},isBlob:K},Q.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")}}),sq=cq({"node_modules/readable-stream/lib/ours/errors.js"(q,Q){var{format:X,inspect:J,AggregateError:H}=wq(),K=globalThis.AggregateError||H,Z=Symbol("kIsNodeError"),Y=["string","function","number","object","Function","Object","boolean","bigint","symbol"],B=/^([A-Z][a-z0-9]*)+$/,$="__node_internal_",z={};function V(j,N){if(!j)throw new z.ERR_INTERNAL_ASSERTION(N)}function U(j){let N="",P=j.length;const E=j[0]==="-"?1:0;for(;P>=E+4;P-=3)N=`_${j.slice(P-3,P)}${N}`;return`${j.slice(0,P)}${N}`}function W(j,N,P){if(typeof N==="function")return V(N.length<=P.length,`Code: ${j}; The provided arguments length (${P.length}) does not match the required ones (${N.length}).`),N(...P);const E=(N.match(/%[dfijoOs]/g)||[]).length;if(V(E===P.length,`Code: ${j}; The provided arguments length (${P.length}) does not match the required ones (${E}).`),P.length===0)return N;return X(N,...P)}function G(j,N,P){if(!P)P=Error;class E extends P{constructor(...I){super(W(j,N,I))}toString(){return`${this.name} [${j}]: ${this.message}`}}xq.defineProperties(E.prototype,{name:{value:P.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${j}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),E.prototype.code=j,E.prototype[Z]=!0,z[j]=E}function M(j){const N=$+j.name;return xq.defineProperty(j,"name",{value:N}),j}function F(j,N){if(j&&N&&j!==N){if(Array.isArray(N.errors))return N.errors.push(j),N;const P=new K([N,j],N.message);return P.code=N.code,P}return j||N}var L=class extends Error{constructor(j="The operation was aborted",N=void 0){if(N!==void 0&&typeof N!=="object")throw new z.ERR_INVALID_ARG_TYPE("options","Object",N);super(j,N);this.code="ABORT_ERR",this.name="AbortError"}};G("ERR_ASSERTION","%s",Error),G("ERR_INVALID_ARG_TYPE",(j,N,P)=>{if(V(typeof j==="string","'name' must be a string"),!Array.isArray(N))N=[N];let E="The ";if(j.endsWith(" argument"))E+=`${j} `;else E+=`"${j}" ${j.includes(".")?"property":"argument"} `;E+="must be ";const I=[],T=[],A=[];for(let O of N)if(V(typeof O==="string","All expected entries have to be of type string"),Y.includes(O))I.push(O.toLowerCase());else if(B.test(O))T.push(O);else V(O!=="object",'The value "object" should be written as "Object"'),A.push(O);if(T.length>0){const O=I.indexOf("object");if(O!==-1)I.splice(I,O,1),T.push("Object")}if(I.length>0){switch(I.length){case 1:E+=`of type ${I[0]}`;break;case 2:E+=`one of type ${I[0]} or ${I[1]}`;break;default:{const O=I.pop();E+=`one of type ${I.join(", ")}, or ${O}`}}if(T.length>0||A.length>0)E+=" or "}if(T.length>0){switch(T.length){case 1:E+=`an instance of ${T[0]}`;break;case 2:E+=`an instance of ${T[0]} or ${T[1]}`;break;default:{const O=T.pop();E+=`an instance of ${T.join(", ")}, or ${O}`}}if(A.length>0)E+=" or "}switch(A.length){case 0:break;case 1:if(A[0].toLowerCase()!==A[0])E+="an ";E+=`${A[0]}`;break;case 2:E+=`one of ${A[0]} or ${A[1]}`;break;default:{const O=A.pop();E+=`one of ${A.join(", ")}, or ${O}`}}if(P==null)E+=`. Received ${P}`;else if(typeof P==="function"&&P.name)E+=`. Received function ${P.name}`;else if(typeof P==="object"){var x;if((x=P.constructor)!==null&&x!==void 0&&x.name)E+=`. Received an instance of ${P.constructor.name}`;else{const O=J(P,{depth:-1});E+=`. Received ${O}`}}else{let O=J(P,{colors:!1});if(O.length>25)O=`${O.slice(0,25)}...`;E+=`. Received type ${typeof P} (${O})`}return E},TypeError),G("ERR_INVALID_ARG_VALUE",(j,N,P="is invalid")=>{let E=J(N);if(E.length>128)E=E.slice(0,128)+"...";return`The ${j.includes(".")?"property":"argument"} '${j}' ${P}. Received ${E}`},TypeError),G("ERR_INVALID_RETURN_VALUE",(j,N,P)=>{var E;const I=P!==null&&P!==void 0&&(E=P.constructor)!==null&&E!==void 0&&E.name?`instance of ${P.constructor.name}`:`type ${typeof P}`;return`Expected ${j} to be returned from the "${N}" function but got ${I}.`},TypeError),G("ERR_MISSING_ARGS",(...j)=>{V(j.length>0,"At least one arg needs to be specified");let N;const P=j.length;switch(j=(Array.isArray(j)?j:[j]).map((E)=>`"${E}"`).join(" or "),P){case 1:N+=`The ${j[0]} argument`;break;case 2:N+=`The ${j[0]} and ${j[1]} arguments`;break;default:{const E=j.pop();N+=`The ${j.join(", ")}, and ${E} arguments`}break}return`${N} must be specified`},TypeError),G("ERR_OUT_OF_RANGE",(j,N,P)=>{V(N,'Missing "range" argument');let E;if(Number.isInteger(P)&&Math.abs(P)>4294967296)E=U(String(P));else if(typeof P==="bigint"){if(E=String(P),P>2n**32n||P<-(2n**32n))E=U(E);E+="n"}else E=J(P);return`The value of "${j}" is out of range. It must be ${N}. Received ${E}`},RangeError),G("ERR_MULTIPLE_CALLBACK","Callback called multiple times",Error),G("ERR_METHOD_NOT_IMPLEMENTED","The %s method is not implemented",Error),G("ERR_STREAM_ALREADY_FINISHED","Cannot call %s after a stream was finished",Error),G("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable",Error),G("ERR_STREAM_DESTROYED","Cannot call %s after a stream was destroyed",Error),G("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),G("ERR_STREAM_PREMATURE_CLOSE","Premature close",Error),G("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF",Error),G("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event",Error),G("ERR_STREAM_WRITE_AFTER_END","write after end",Error),G("ERR_UNKNOWN_ENCODING","Unknown encoding: %s",TypeError),Q.exports={AbortError:L,aggregateTwoErrors:M(F),hideStackFrames:M,codes:z}}}),aq=cq({"node_modules/readable-stream/lib/internal/validators.js"(q,Q){var{ArrayIsArray:X,ArrayPrototypeIncludes:J,ArrayPrototypeJoin:H,ArrayPrototypeMap:K,NumberIsInteger:Z,NumberMAX_SAFE_INTEGER:Y,NumberMIN_SAFE_INTEGER:B,NumberParseInt:$,RegExpPrototypeTest:z,String:V,StringPrototypeToUpperCase:U,StringPrototypeTrim:W}=Dq(),{hideStackFrames:G,codes:{ERR_SOCKET_BAD_PORT:M,ERR_INVALID_ARG_TYPE:F,ERR_INVALID_ARG_VALUE:L,ERR_OUT_OF_RANGE:j,ERR_UNKNOWN_SIGNAL:N}}=sq(),{normalizeEncoding:P}=wq(),{isAsyncFunction:E,isArrayBufferView:I}=wq().types,T={};function A(i){return i===(i|0)}function x(i){return i===i>>>0}var O=/^[0-7]+$/,_="must be a 32-bit unsigned integer or an octal string";function C(i,n,o){if(typeof i==="undefined")i=o;if(typeof i==="string"){if(!z(O,i))throw new L(n,i,_);i=$(i,8)}return w(i,n,0,4294967295),i}var D=G((i,n,o=B,s=Y)=>{if(typeof i!=="number")throw new F(n,"number",i);if(!Z(i))throw new j(n,"an integer",i);if(i<o||i>s)throw new j(n,`>= ${o} && <= ${s}`,i)}),w=G((i,n,o=-2147483648,s=2147483647)=>{if(typeof i!=="number")throw new F(n,"number",i);if(!A(i)){if(!Z(i))throw new j(n,"an integer",i);throw new j(n,`>= ${o} && <= ${s}`,i)}if(i<o||i>s)throw new j(n,`>= ${o} && <= ${s}`,i)}),v=G((i,n,o)=>{if(typeof i!=="number")throw new F(n,"number",i);if(!x(i)){if(!Z(i))throw new j(n,"an integer",i);throw new j(n,`>= ${o?1:0} && < 4294967296`,i)}if(o&&i===0)throw new j(n,">= 1 && < 4294967296",i)});function R(i,n){if(typeof i!=="string")throw new F(n,"string",i)}function S(i,n){if(typeof i!=="number")throw new F(n,"number",i)}var g=G((i,n,o)=>{if(!J(o,i)){const a="must be one of: "+H(K(o,(r)=>typeof r==="string"?`'${r}'`:V(r)),", ");throw new L(n,i,a)}});function k(i,n){if(typeof i!=="boolean")throw new F(n,"boolean",i)}var f=G((i,n,o)=>{const s=o==null,a=s?!1:o.allowArray,r=s?!1:o.allowFunction;if(!(s?!1:o.nullable)&&i===null||!a&&X(i)||typeof i!=="object"&&(!r||typeof i!=="function"))throw new F(n,"Object",i)}),y=G((i,n,o=0)=>{if(!X(i))throw new F(n,"Array",i);if(i.length<o){const s=`must be longer than ${o}`;throw new L(n,i,s)}});function h(i,n="signal"){if(R(i,n),T[i]===void 0){if(T[U(i)]!==void 0)throw new N(i+" (signals must use all capital letters)");throw new N(i)}}var p=G((i,n="buffer")=>{if(!I(i))throw new F(n,["Buffer","TypedArray","DataView"],i)});function u(i,n){const o=P(n),s=i.length;if(o==="hex"&&s%2!==0)throw new L("encoding",n,`is invalid for data of length ${s}`)}function b(i,n="Port",o=!0){if(typeof i!=="number"&&typeof i!=="string"||typeof i==="string"&&W(i).length===0||+i!==+i>>>0||i>65535||i===0&&!o)throw new M(n,i,o);return i|0}var m=G((i,n)=>{if(i!==void 0&&(i===null||typeof i!=="object"||!("aborted"in i)))throw new F(n,"AbortSignal",i)}),c=G((i,n)=>{if(typeof i!=="function")throw new F(n,"Function",i)}),d=G((i,n)=>{if(typeof i!=="function"||E(i))throw new F(n,"Function",i)}),l=G((i,n)=>{if(i!==void 0)throw new F(n,"undefined",i)});Q.exports={isInt32:A,isUint32:x,parseFileMode:C,validateArray:y,validateBoolean:k,validateBuffer:p,validateEncoding:u,validateFunction:c,validateInt32:w,validateInteger:D,validateNumber:S,validateObject:f,validateOneOf:g,validatePlainFunction:d,validatePort:b,validateSignalName:h,validateString:R,validateUint32:v,validateUndefined:l,validateAbortSignal:m}}}),rq=cq({"node_modules/readable-stream/lib/internal/streams/utils.js"(q,Q){var{Symbol:X,SymbolAsyncIterator:J,SymbolIterator:H}=Dq(),K=X("kDestroyed"),Z=X("kIsErrored"),Y=X("kIsReadable"),B=X("kIsDisturbed");function $(v,R=!1){var S;return!!(v&&typeof v.pipe==="function"&&typeof v.on==="function"&&(!R||typeof v.pause==="function"&&typeof v.resume==="function")&&(!v._writableState||((S=v._readableState)===null||S===void 0?void 0:S.readable)!==!1)&&(!v._writableState||v._readableState))}function z(v){var R;return!!(v&&typeof v.write==="function"&&typeof v.on==="function"&&(!v._readableState||((R=v._writableState)===null||R===void 0?void 0:R.writable)!==!1))}function V(v){return!!(v&&typeof v.pipe==="function"&&v._readableState&&typeof v.on==="function"&&typeof v.write==="function")}function U(v){return v&&(v._readableState||v._writableState||typeof v.write==="function"&&typeof v.on==="function"||typeof v.pipe==="function"&&typeof v.on==="function")}function W(v,R){if(v==null)return!1;if(R===!0)return typeof v[J]==="function";if(R===!1)return typeof v[H]==="function";return typeof v[J]==="function"||typeof v[H]==="function"}function G(v){if(!U(v))return null;const{_writableState:R,_readableState:S}=v,g=R||S;return!!(v.destroyed||v[K]||g!==null&&g!==void 0&&g.destroyed)}function M(v){if(!z(v))return null;if(v.writableEnded===!0)return!0;const R=v._writableState;if(R!==null&&R!==void 0&&R.errored)return!1;if(typeof(R===null||R===void 0?void 0:R.ended)!=="boolean")return null;return R.ended}function F(v,R){if(!z(v))return null;if(v.writableFinished===!0)return!0;const S=v._writableState;if(S!==null&&S!==void 0&&S.errored)return!1;if(typeof(S===null||S===void 0?void 0:S.finished)!=="boolean")return null;return!!(S.finished||R===!1&&S.ended===!0&&S.length===0)}function L(v){if(!$(v))return null;if(v.readableEnded===!0)return!0;const R=v._readableState;if(!R||R.errored)return!1;if(typeof(R===null||R===void 0?void 0:R.ended)!=="boolean")return null;return R.ended}function j(v,R){if(!$(v))return null;const S=v._readableState;if(S!==null&&S!==void 0&&S.errored)return!1;if(typeof(S===null||S===void 0?void 0:S.endEmitted)!=="boolean")return null;return!!(S.endEmitted||R===!1&&S.ended===!0&&S.length===0)}function N(v){if(v&&v[Y]!=null)return v[Y];if(typeof(v===null||v===void 0?void 0:v.readable)!=="boolean")return null;if(G(v))return!1;return $(v)&&v.readable&&!j(v)}function P(v){if(typeof(v===null||v===void 0?void 0:v.writable)!=="boolean")return null;if(G(v))return!1;return z(v)&&v.writable&&!M(v)}function E(v,R){if(!U(v))return null;if(G(v))return!0;if((R===null||R===void 0?void 0:R.readable)!==!1&&N(v))return!1;if((R===null||R===void 0?void 0:R.writable)!==!1&&P(v))return!1;return!0}function I(v){var R,S;if(!U(v))return null;if(v.writableErrored)return v.writableErrored;return(R=(S=v._writableState)===null||S===void 0?void 0:S.errored)!==null&&R!==void 0?R:null}function T(v){var R,S;if(!U(v))return null;if(v.readableErrored)return v.readableErrored;return(R=(S=v._readableState)===null||S===void 0?void 0:S.errored)!==null&&R!==void 0?R:null}function A(v){if(!U(v))return null;if(typeof v.closed==="boolean")return v.closed;const{_writableState:R,_readableState:S}=v;if(typeof(R===null||R===void 0?void 0:R.closed)==="boolean"||typeof(S===null||S===void 0?void 0:S.closed)==="boolean")return(R===null||R===void 0?void 0:R.closed)||(S===null||S===void 0?void 0:S.closed);if(typeof v._closed==="boolean"&&x(v))return v._closed;return null}function x(v){return typeof v._closed==="boolean"&&typeof v._defaultKeepAlive==="boolean"&&typeof v._removedConnection==="boolean"&&typeof v._removedContLen==="boolean"}function O(v){return typeof v._sent100==="boolean"&&x(v)}function _(v){var R;return typeof v._consuming==="boolean"&&typeof v._dumped==="boolean"&&((R=v.req)===null||R===void 0?void 0:R.upgradeOrConnect)===void 0}function C(v){if(!U(v))return null;const{_writableState:R,_readableState:S}=v,g=R||S;return!g&&O(v)||!!(g&&g.autoDestroy&&g.emitClose&&g.closed===!1)}function D(v){var R;return!!(v&&((R=v[B])!==null&&R!==void 0?R:v.readableDidRead||v.readableAborted))}function w(v){var R,S,g,k,f,y,h,p,u,b;return!!(v&&((R=(S=(g=(k=(f=(y=v[Z])!==null&&y!==void 0?y:v.readableErrored)!==null&&f!==void 0?f:v.writableErrored)!==null&&k!==void 0?k:(h=v._readableState)===null||h===void 0?void 0:h.errorEmitted)!==null&&g!==void 0?g:(p=v._writableState)===null||p===void 0?void 0:p.errorEmitted)!==null&&S!==void 0?S:(u=v._readableState)===null||u===void 0?void 0:u.errored)!==null&&R!==void 0?R:(b=v._writableState)===null||b===void 0?void 0:b.errored))}Q.exports={kDestroyed:K,isDisturbed:D,kIsDisturbed:B,isErrored:w,kIsErrored:Z,isReadable:N,kIsReadable:Y,isClosed:A,isDestroyed:G,isDuplexNodeStream:V,isFinished:E,isIterable:W,isReadableNodeStream:$,isReadableEnded:L,isReadableFinished:j,isReadableErrored:T,isNodeStream:U,isWritable:P,isWritableNodeStream:z,isWritableEnded:M,isWritableFinished:F,isWritableErrored:I,isServerRequest:_,isServerResponse:O,willEmitClose:C}}}),tq=cq({"node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(q,Q){var{AbortError:X,codes:J}=sq(),{ERR_INVALID_ARG_TYPE:H,ERR_STREAM_PREMATURE_CLOSE:K}=J,{once:Z}=wq(),{validateAbortSignal:Y,validateFunction:B,validateObject:$}=aq(),{Promise:z}=Dq(),{isClosed:V,isReadable:U,isReadableNodeStream:W,isReadableFinished:G,isReadableErrored:M,isWritable:F,isWritableNodeStream:L,isWritableFinished:j,isWritableErrored:N,isNodeStream:P,willEmitClose:E}=rq();function I(O){return O.setHeader&&typeof O.abort==="function"}var T=()=>{};function A(O,_,C){var D,w;if(arguments.length===2)C=_,_={};else if(_==null)_={};else $(_,"options");B(C,"callback"),Y(_.signal,"options.signal"),C=Z(C);const v=(D=_.readable)!==null&&D!==void 0?D:W(O),R=(w=_.writable)!==null&&w!==void 0?w:L(O);if(!P(O))throw new H("stream","Stream",O);const{_writableState:S,_readableState:g}=O,k=()=>{if(!O.writable)h()};let f=E(O)&&W(O)===v&&L(O)===R,y=j(O,!1);const h=()=>{if(y=!0,O.destroyed)f=!1;if(f&&(!O.readable||v))return;if(!v||p)C.call(O)};let p=G(O,!1);const u=()=>{if(p=!0,O.destroyed)f=!1;if(f&&(!O.writable||R))return;if(!R||y)C.call(O)},b=(i)=>{C.call(O,i)};let m=V(O);const c=()=>{m=!0;const i=N(O)||M(O);if(i&&typeof i!=="boolean")return C.call(O,i);if(v&&!p&&W(O,!0)){if(!G(O,!1))return C.call(O,new K)}if(R&&!y){if(!j(O,!1))return C.call(O,new K)}C.call(O)},d=()=>{O.req.on("finish",h)};if(I(O)){if(O.on("complete",h),!f)O.on("abort",c);if(O.req)d();else O.on("request",d)}else if(R&&!S)O.on("end",k),O.on("close",k);if(!f&&typeof O.aborted==="boolean")O.on("aborted",c);if(O.on("end",u),O.on("finish",h),_.error!==!1)O.on("error",b);if(O.on("close",c),m)Aq(c);else if(S!==null&&S!==void 0&&S.errorEmitted||g!==null&&g!==void 0&&g.errorEmitted){if(!f)Aq(c)}else if(!v&&(!f||U(O))&&(y||F(O)===!1))Aq(c);else if(!R&&(!f||F(O))&&(p||U(O)===!1))Aq(c);else if(g&&O.req&&O.aborted)Aq(c);const l=()=>{if(C=T,O.removeListener("aborted",c),O.removeListener("complete",h),O.removeListener("abort",c),O.removeListener("request",d),O.req)O.req.removeListener("finish",h);O.removeListener("end",k),O.removeListener("close",k),O.removeListener("finish",h),O.removeListener("end",u),O.removeListener("error",b),O.removeListener("close",c)};if(_.signal&&!m){const i=()=>{const n=C;l(),n.call(O,new X(void 0,{cause:_.signal.reason}))};if(_.signal.aborted)Aq(i);else{const n=C;C=Z((...o)=>{_.signal.removeEventListener("abort",i),n.apply(O,o)}),_.signal.addEventListener("abort",i)}}return l}function x(O,_){return new z((C,D)=>{A(O,_,(w)=>{if(w)D(w);else C()})})}Q.exports=A,Q.exports.finished=x}}),eq=cq({"node_modules/readable-stream/lib/internal/streams/operators.js"(q,Q){var X=globalThis.AbortController||_q("abort-controller").AbortController,{codes:{ERR_INVALID_ARG_TYPE:J,ERR_MISSING_ARGS:H,ERR_OUT_OF_RANGE:K},AbortError:Z}=sq(),{validateAbortSignal:Y,validateInteger:B,validateObject:$}=aq(),z=Dq().Symbol("kWeak"),{finished:V}=tq(),{ArrayPrototypePush:U,MathFloor:W,Number:G,NumberIsNaN:M,Promise:F,PromiseReject:L,PromisePrototypeCatch:j,Symbol:N}=Dq(),P=N("kEmpty"),E=N("kEof");function I(f,y){if(typeof f!=="function")throw new J("fn",["Function","AsyncFunction"],f);if(y!=null)$(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)Y(y.signal,"options.signal");let h=1;if((y===null||y===void 0?void 0:y.concurrency)!=null)h=W(y.concurrency);return B(h,"concurrency",1),async function*p(){var u,b;const m=new X,c=this,d=[],l=m.signal,i={signal:l},n=()=>m.abort();if(y!==null&&y!==void 0&&(u=y.signal)!==null&&u!==void 0&&u.aborted)n();y===null||y===void 0||(b=y.signal)===null||b===void 0||b.addEventListener("abort",n);let o,s,a=!1;function r(){a=!0}async function t(){try{for await(let Qq of c){var e;if(a)return;if(l.aborted)throw new Z;try{Qq=f(Qq,i)}catch(Xq){Qq=L(Xq)}if(Qq===P)continue;if(typeof((e=Qq)===null||e===void 0?void 0:e.catch)==="function")Qq.catch(r);if(d.push(Qq),o)o(),o=null;if(!a&&d.length&&d.length>=h)await new F((Xq)=>{s=Xq})}d.push(E)}catch(Qq){const Xq=L(Qq);j(Xq,r),d.push(Xq)}finally{var qq;if(a=!0,o)o(),o=null;y===null||y===void 0||(qq=y.signal)===null||qq===void 0||qq.removeEventListener("abort",n)}}t();try{while(!0){while(d.length>0){const e=await d[0];if(e===E)return;if(l.aborted)throw new Z;if(e!==P)yield e;if(d.shift(),s)s(),s=null}await new F((e)=>{o=e})}}finally{if(m.abort(),a=!0,s)s(),s=null}}.call(this)}function T(f=void 0){if(f!=null)$(f,"options");if((f===null||f===void 0?void 0:f.signal)!=null)Y(f.signal,"options.signal");return async function*y(){let h=0;for await(let u of this){var p;if(f!==null&&f!==void 0&&(p=f.signal)!==null&&p!==void 0&&p.aborted)throw new Z({cause:f.signal.reason});yield[h++,u]}}.call(this)}async function A(f,y=void 0){for await(let h of C.call(this,f,y))return!0;return!1}async function x(f,y=void 0){if(typeof f!=="function")throw new J("fn",["Function","AsyncFunction"],f);return!await A.call(this,async(...h)=>{return!await f(...h)},y)}async function O(f,y){for await(let h of C.call(this,f,y))return h;return}async function _(f,y){if(typeof f!=="function")throw new J("fn",["Function","AsyncFunction"],f);async function h(p,u){return await f(p,u),P}for await(let p of I.call(this,h,y));}function C(f,y){if(typeof f!=="function")throw new J("fn",["Function","AsyncFunction"],f);async function h(p,u){if(await f(p,u))return p;return P}return I.call(this,h,y)}var D=class extends H{constructor(){super("reduce");this.message="Reduce of an empty stream requires an initial value"}};async function w(f,y,h){var p;if(typeof f!=="function")throw new J("reducer",["Function","AsyncFunction"],f);if(h!=null)$(h,"options");if((h===null||h===void 0?void 0:h.signal)!=null)Y(h.signal,"options.signal");let u=arguments.length>1;if(h!==null&&h!==void 0&&(p=h.signal)!==null&&p!==void 0&&p.aborted){const l=new Z(void 0,{cause:h.signal.reason});throw this.once("error",()=>{}),await V(this.destroy(l)),l}const b=new X,m=b.signal;if(h!==null&&h!==void 0&&h.signal){const l={once:!0,[z]:this};h.signal.addEventListener("abort",()=>b.abort(),l)}let c=!1;try{for await(let l of this){var d;if(c=!0,h!==null&&h!==void 0&&(d=h.signal)!==null&&d!==void 0&&d.aborted)throw new Z;if(!u)y=l,u=!0;else y=await f(y,l,{signal:m})}if(!c&&!u)throw new D}finally{b.abort()}return y}async function v(f){if(f!=null)$(f,"options");if((f===null||f===void 0?void 0:f.signal)!=null)Y(f.signal,"options.signal");const y=[];for await(let p of this){var h;if(f!==null&&f!==void 0&&(h=f.signal)!==null&&h!==void 0&&h.aborted)throw new Z(void 0,{cause:f.signal.reason});U(y,p)}return y}function R(f,y){const h=I.call(this,f,y);return async function*p(){for await(let u of h)yield*u}.call(this)}function S(f){if(f=G(f),M(f))return 0;if(f<0)throw new K("number",">= 0",f);return f}function g(f,y=void 0){if(y!=null)$(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)Y(y.signal,"options.signal");return f=S(f),async function*h(){var p;if(y!==null&&y!==void 0&&(p=y.signal)!==null&&p!==void 0&&p.aborted)throw new Z;for await(let b of this){var u;if(y!==null&&y!==void 0&&(u=y.signal)!==null&&u!==void 0&&u.aborted)throw new Z;if(f--<=0)yield b}}.call(this)}function k(f,y=void 0){if(y!=null)$(y,"options");if((y===null||y===void 0?void 0:y.signal)!=null)Y(y.signal,"options.signal");return f=S(f),async function*h(){var p;if(y!==null&&y!==void 0&&(p=y.signal)!==null&&p!==void 0&&p.aborted)throw new Z;for await(let b of this){var u;if(y!==null&&y!==void 0&&(u=y.signal)!==null&&u!==void 0&&u.aborted)throw new Z;if(f-- >0)yield b;else return}}.call(this)}Q.exports.streamReturningOperators={asIndexedPairs:T,drop:g,filter:C,flatMap:R,map:I,take:k},Q.exports.promiseReturningOperators={every:x,forEach:_,reduce:w,toArray:v,some:A,find:O}}}),qQ=cq({"node_modules/readable-stream/lib/internal/streams/destroy.js"(q,Q){var{aggregateTwoErrors:X,codes:{ERR_MULTIPLE_CALLBACK:J},AbortError:H}=sq(),{Symbol:K}=Dq(),{kDestroyed:Z,isDestroyed:Y,isFinished:B,isServerRequest:$}=rq(),z="#kDestroy",V="#kConstruct";function U(_,C,D){if(_){if(_.stack,C&&!C.errored)C.errored=_;if(D&&!D.errored)D.errored=_}}function W(_,C){const D=this._readableState,w=this._writableState,v=w||D;if(w&&w.destroyed||D&&D.destroyed){if(typeof C==="function")C();return this}if(U(_,w,D),w)w.destroyed=!0;if(D)D.destroyed=!0;if(!v.constructed)this.once(z,(R)=>{G(this,X(R,_),C)});else G(this,_,C);return this}function G(_,C,D){let w=!1;function v(R){if(w)return;w=!0;const{_readableState:S,_writableState:g}=_;if(U(R,g,S),g)g.closed=!0;if(S)S.closed=!0;if(typeof D==="function")D(R);if(R)Aq(M,_,R);else Aq(F,_)}try{_._destroy(C||null,v)}catch(R){v(R)}}function M(_,C){L(_,C),F(_)}function F(_){const{_readableState:C,_writableState:D}=_;if(D)D.closeEmitted=!0;if(C)C.closeEmitted=!0;if(D&&D.emitClose||C&&C.emitClose)_.emit("close")}function L(_,C){const D=_?._readableState,w=_?._writableState;if(w?.errorEmitted||D?.errorEmitted)return;if(w)w.errorEmitted=!0;if(D)D.errorEmitted=!0;_?.emit?.("error",C)}function j(){const _=this._readableState,C=this._writableState;if(_)_.constructed=!0,_.closed=!1,_.closeEmitted=!1,_.destroyed=!1,_.errored=null,_.errorEmitted=!1,_.reading=!1,_.ended=_.readable===!1,_.endEmitted=_.readable===!1;if(C)C.constructed=!0,C.destroyed=!1,C.closed=!1,C.closeEmitted=!1,C.errored=null,C.errorEmitted=!1,C.finalCalled=!1,C.prefinished=!1,C.ended=C.writable===!1,C.ending=C.writable===!1,C.finished=C.writable===!1}function N(_,C,D){const w=_?._readableState,v=_?._writableState;if(v&&v.destroyed||w&&w.destroyed)return this;if(w&&w.autoDestroy||v&&v.autoDestroy)_.destroy(C);else if(C){if(Error.captureStackTrace(C),v&&!v.errored)v.errored=C;if(w&&!w.errored)w.errored=C;if(D)Aq(L,_,C);else L(_,C)}}function P(_,C){if(typeof _._construct!=="function")return;const{_readableState:D,_writableState:w}=_;if(D)D.constructed=!1;if(w)w.constructed=!1;if(_.once(V,C),_.listenerCount(V)>1)return;Aq(E,_)}function E(_){let C=!1;function D(w){if(C){N(_,w!==null&&w!==void 0?w:new J);return}C=!0;const{_readableState:v,_writableState:R}=_,S=R||v;if(v)v.constructed=!0;if(R)R.constructed=!0;if(S.destroyed)_.emit(z,w);else if(w)N(_,w,!0);else Aq(I,_)}try{_._construct(D)}catch(w){D(w)}}function I(_){_.emit(V)}function T(_){return _&&_.setHeader&&typeof _.abort==="function"}function A(_){_.emit("close")}function x(_,C){_.emit("error",C),Aq(A,_)}function O(_,C){if(!_||Y(_))return;if(!C&&!B(_))C=new H;if($(_))_.socket=null,_.destroy(C);else if(T(_))_.abort();else if(T(_.req))_.req.abort();else if(typeof _.destroy==="function")_.destroy(C);else if(typeof _.close==="function")_.close();else if(C)Aq(x,_);else Aq(A,_);if(!_.destroyed)_[Z]=!0}Q.exports={construct:P,destroyer:O,destroy:W,undestroy:j,errorOrDestroy:N}}}),QQ=cq({"node_modules/readable-stream/lib/internal/streams/legacy.js"(q,Q){var{ArrayIsArray:X,ObjectSetPrototypeOf:J}=Dq(),{EventEmitter:H}=_q("bun:events_native"),K;if(gq)K=Cq;else K=H;function Z(B){if(!(this instanceof Z))return new Z(B);K.call(this,B)}J(Z.prototype,K.prototype),J(Z,K),Z.prototype.pipe=function(B,$){const z=this;function V(j){if(B.writable&&B.write(j)===!1&&z.pause)z.pause()}z.on("data",V);function U(){if(z.readable&&z.resume)z.resume()}if(B.on("drain",U),!B._isStdio&&(!$||$.end!==!1))z.on("end",G),z.on("close",M);let W=!1;function G(){if(W)return;W=!0,B.end()}function M(){if(W)return;if(W=!0,typeof B.destroy==="function")B.destroy()}function F(j){if(L(),K.listenerCount(this,"error")===0)this.emit("error",j)}Y(z,"error",F),Y(B,"error",F);function L(){z.removeListener("data",V),B.removeListener("drain",U),z.removeListener("end",G),z.removeListener("close",M),z.removeListener("error",F),B.removeListener("error",F),z.removeListener("end",L),z.removeListener("close",L),B.removeListener("close",L)}return z.on("end",L),z.on("close",L),B.on("close",L),B.emit("pipe",z),B};function Y(B,$,z){if(typeof B.prependListener==="function")return B.prependListener($,z);if(!B._events||!B._events[$])B.on($,z);else if(X(B._events[$]))B._events[$].unshift(z);else B._events[$]=[z,B._events[$]]}Q.exports={Stream:Z,prependListener:Y}}}),XQ=cq({"node_modules/readable-stream/lib/internal/streams/add-abort-signal.js"(q,Q){var{AbortError:X,codes:J}=sq(),H=tq(),{ERR_INVALID_ARG_TYPE:K}=J,Z=(B,$)=>{if(typeof B!=="object"||!("aborted"in B))throw new K($,"AbortSignal",B)};function Y(B){return!!(B&&typeof B.pipe==="function")}Q.exports.addAbortSignal=function B($,z){if(Z($,"signal"),!Y(z))throw new K("stream","stream.Stream",z);return Q.exports.addAbortSignalNoValidate($,z)},Q.exports.addAbortSignalNoValidate=function(B,$){if(typeof B!=="object"||!("aborted"in B))return $;const z=()=>{$.destroy(new X(void 0,{cause:B.reason}))};if(B.aborted)z();else B.addEventListener("abort",z),H($,()=>B.removeEventListener("abort",z));return $}}}),JQ=cq({"node_modules/readable-stream/lib/internal/streams/state.js"(q,Q){var{MathFloor:X,NumberIsInteger:J}=Dq(),{ERR_INVALID_ARG_VALUE:H}=sq().codes;function K(B,$,z){return B.highWaterMark!=null?B.highWaterMark:$?B[z]:null}function Z(B){return B?16:16384}function Y(B,$,z,V){const U=K($,V,z);if(U!=null){if(!J(U)||U<0){const W=V?`options.${z}`:"options.highWaterMark";throw new H(W,U)}return X(U)}return Z(B.objectMode)}Q.exports={getHighWaterMark:Y,getDefaultHighWaterMark:Z}}}),HQ=cq({"node_modules/readable-stream/lib/internal/streams/from.js"(q,Q){var{PromisePrototypeThen:X,SymbolAsyncIterator:J,SymbolIterator:H}=Dq(),{ERR_INVALID_ARG_TYPE:K,ERR_STREAM_NULL_VALUES:Z}=sq().codes;function Y(B,$,z){let V;if(typeof $==="string"||$ instanceof Buffer)return new B({objectMode:!0,...z,read(){this.push($),this.push(null)}});let U;if($&&$[J])U=!0,V=$[J]();else if($&&$[H])U=!1,V=$[H]();else throw new K("iterable",["Iterable"],$);const W=new B({objectMode:!0,highWaterMark:1,...z});let G=!1;W._read=function(){if(!G)G=!0,F()},W._destroy=function(L,j){X(M(L),()=>Aq(j,L),(N)=>Aq(j,N||L))};async function M(L){const j=L!==void 0&&L!==null,N=typeof V.throw==="function";if(j&&N){const{value:P,done:E}=await V.throw(L);if(await P,E)return}if(typeof V.return==="function"){const{value:P}=await V.return();await P}}async function F(){for(;;){try{const{value:L,done:j}=U?await V.next():V.next();if(j)W.push(null);else{const N=L&&typeof L.then==="function"?await L:L;if(N===null)throw G=!1,new Z;else if(W.push(N))continue;else G=!1}}catch(L){W.destroy(L)}break}}return W}Q.exports=Y}}),KQ,ZQ=cq({"node_modules/readable-stream/lib/internal/streams/readable.js"(q,Q){var{ArrayPrototypeIndexOf:X,NumberIsInteger:J,NumberIsNaN:H,NumberParseInt:K,ObjectDefineProperties:Z,ObjectKeys:Y,ObjectSetPrototypeOf:B,Promise:$,SafeSet:z,SymbolAsyncIterator:V,Symbol:U}=Dq(),W=globalThis[Symbol.for("Bun.lazy")]("bun:stream").ReadableState,{EventEmitter:G}=_q("bun:events_native"),{Stream:M,prependListener:F}=QQ();function L(Xq){if(!(this instanceof L))return new L(Xq);const Jq=this instanceof vq();if(this._readableState=new W(Xq,this,Jq),Xq){const{read:Hq,destroy:Kq,construct:Zq,signal:Yq}=Xq;if(typeof Hq==="function")this._read=Hq;if(typeof Kq==="function")this._destroy=Kq;if(typeof Zq==="function")this._construct=Zq;if(Yq&&!Jq)P(Yq,this)}M.call(this,Xq),C.construct(this,()=>{if(this._readableState.needReadable)O(this,this._readableState)})}B(L.prototype,M.prototype),B(L,M),L.prototype.on=function(Xq,Jq){const Hq=M.prototype.on.call(this,Xq,Jq),Kq=this._readableState;if(Xq==="data")if(Kq.readableListening=this.listenerCount("readable")>0,Kq.flowing!==!1)Iq&&Eq("in flowing mode!",this.__id),this.resume();else Iq&&Eq("in readable mode!",this.__id);else if(Xq==="readable"){if(Iq&&Eq("readable listener added!",this.__id),!Kq.endEmitted&&!Kq.readableListening){if(Kq.readableListening=Kq.needReadable=!0,Kq.flowing=!1,Kq.emittedReadable=!1,Iq&&Eq("on readable - state.length, reading, emittedReadable",Kq.length,Kq.reading,Kq.emittedReadable,this.__id),Kq.length)_(this,Kq);else if(!Kq.reading)Aq(n,this)}else if(Kq.endEmitted)Iq&&Eq("end already emitted...",this.__id)}return Hq};class j extends L{#q;#Q;#X;#J;constructor(Xq,Jq){const{objectMode:Hq,highWaterMark:Kq,encoding:Zq,signal:Yq}=Xq;super({objectMode:Hq,highWaterMark:Kq,encoding:Zq,signal:Yq});this.#X=[],this.#q=void 0,this.#J=Jq,this.#Q=!1}#H(){var Xq=this.#X,Jq=0,Hq=Xq.length;for(;Jq<Hq;Jq++){const Kq=Xq[Jq];if(Xq[Jq]=void 0,!this.push(Kq,void 0))return this.#X=Xq.slice(Jq+1),!0}if(Hq>0)this.#X=[];return!1}#K(Xq){Xq.releaseLock(),this.#q=void 0,this.#Q=!0,this.push(null);return}async _read(){Iq&&Eq("ReadableFromWeb _read()",this.__id);var Xq=this.#J,Jq=this.#q;if(Xq)Jq=this.#q=Xq.getReader(),this.#J=void 0;else if(this.#H())return;var Hq;try{do{var Kq=!1,Zq;const Yq=Jq.readMany();if(Oq(Yq)){if({done:Kq,value:Zq}=await Yq,this.#Q){this.#X.push(...Zq);return}}else({done:Kq,value:Zq}=Yq);if(Kq){this.#K(Jq);return}if(!this.push(Zq[0])){this.#X=Zq.slice(1);return}for(let Bq=1,$q=Zq.length;Bq<$q;Bq++)if(!this.push(Zq[Bq])){this.#X=Zq.slice(Bq+1);return}}while(!this.#Q)}catch(Yq){Hq=Yq}finally{if(Hq)throw Hq}}_destroy(Xq,Jq){if(!this.#Q){var Hq=this.#q;if(Hq)this.#q=void 0,Hq.cancel(Xq).finally(()=>{this.#Q=!0,Jq(Xq)});return}try{Jq(Xq)}catch(Kq){globalThis.reportError(Kq)}}}function N(Xq,Jq={}){if(!dq(Xq))throw new w("readableStream","ReadableStream",Xq);k(Jq,"options");const{highWaterMark:Hq,encoding:Kq,objectMode:Zq=!1,signal:Yq}=Jq;if(Kq!==void 0&&!Buffer.isEncoding(Kq))throw new oq(Kq,"options.encoding");return lq(Zq,"options.objectMode"),NQ(L,Xq,Jq)||new j({highWaterMark:Hq,encoding:Kq,objectMode:Zq,signal:Yq},Xq)}Q.exports=L,KQ=j;var{addAbortSignal:P}=XQ(),E=tq();const{maybeReadMore:I,resume:T,emitReadable:A,onEofChunk:x}=globalThis[Symbol.for("Bun.lazy")]("bun:stream");function O(Xq,Jq){process.nextTick(I,Xq,Jq)}function _(Xq,Jq){Iq&&Eq("NativeReadable - emitReadable",Xq.__id),A(Xq,Jq)}var C=qQ(),{aggregateTwoErrors:D,codes:{ERR_INVALID_ARG_TYPE:w,ERR_METHOD_NOT_IMPLEMENTED:v,ERR_OUT_OF_RANGE:R,ERR_STREAM_PUSH_AFTER_EOF:S,ERR_STREAM_UNSHIFT_AFTER_END_EVENT:g}}=sq(),{validateObject:k}=aq(),{StringDecoder:f}=_q("string_decoder"),y=HQ(),h=()=>{},{errorOrDestroy:p}=C;L.prototype.destroy=C.destroy,L.prototype._undestroy=C.undestroy,L.prototype._destroy=function(Xq,Jq){Jq(Xq)},L.prototype[G.captureRejectionSymbol]=function(Xq){this.destroy(Xq)},L.prototype.push=function(Xq,Jq){return u(this,Xq,Jq,!1)},L.prototype.unshift=function(Xq,Jq){return u(this,Xq,Jq,!0)};function u(Xq,Jq,Hq,Kq){Iq&&Eq("readableAddChunk",Jq,Xq.__id);const Zq=Xq._readableState;let Yq;if(!Zq.objectMode){if(typeof Jq==="string"){if(Hq=Hq||Zq.defaultEncoding,Zq.encoding!==Hq)if(Kq&&Zq.encoding)Jq=Buffer.from(Jq,Hq).toString(Zq.encoding);else Jq=Buffer.from(Jq,Hq),Hq=""}else if(Jq instanceof Buffer)Hq="";else if(M._isUint8Array(Jq)){if(Kq||!Zq.decoder)Jq=M._uint8ArrayToBuffer(Jq);Hq=""}else if(Jq!=null)Yq=new w("chunk",["string","Buffer","Uint8Array"],Jq)}if(Yq)p(Xq,Yq);else if(Jq===null)Zq.reading=!1,x(Xq,Zq);else if(Zq.objectMode||Jq&&Jq.length>0)if(Kq)if(Zq.endEmitted)p(Xq,new g);else if(Zq.destroyed||Zq.errored)return!1;else b(Xq,Zq,Jq,!0);else if(Zq.ended)p(Xq,new S);else if(Zq.destroyed||Zq.errored)return!1;else if(Zq.reading=!1,Zq.decoder&&!Hq)if(Jq=Zq.decoder.write(Jq),Zq.objectMode||Jq.length!==0)b(Xq,Zq,Jq,!1);else O(Xq,Zq);else b(Xq,Zq,Jq,!1);else if(!Kq)Zq.reading=!1,O(Xq,Zq);return!Zq.ended&&(Zq.length<Zq.highWaterMark||Zq.length===0)}function b(Xq,Jq,Hq,Kq){if(Iq&&Eq("adding chunk",Xq.__id),Iq&&Eq("chunk",Hq.toString(),Xq.__id),Jq.flowing&&Jq.length===0&&!Jq.sync&&Xq.listenerCount("data")>0){if(Jq.multiAwaitDrain)Jq.awaitDrainWriters.clear();else Jq.awaitDrainWriters=null;Jq.dataEmitted=!0,Xq.emit("data",Hq)}else{if(Jq.length+=Jq.objectMode?1:Hq.length,Kq)Jq.buffer.unshift(Hq);else Jq.buffer.push(Hq);if(Iq&&Eq("needReadable @ addChunk",Jq.needReadable,Xq.__id),Jq.needReadable)_(Xq,Jq)}O(Xq,Jq)}L.prototype.isPaused=function(){const Xq=this._readableState;return Xq.paused===!0||Xq.flowing===!1},L.prototype.setEncoding=function(Xq){const Jq=new f(Xq);this._readableState.decoder=Jq,this._readableState.encoding=this._readableState.decoder.encoding;const Hq=this._readableState.buffer;let Kq="";for(let Zq=Hq.length;Zq>0;Zq--)Kq+=Jq.write(Hq.shift());if(Kq!=="")Hq.push(Kq);return this._readableState.length=Kq.length,this};var m=1073741824;function c(Xq){if(Xq>m)throw new R("size","<= 1GiB",Xq);else Xq--,Xq|=Xq>>>1,Xq|=Xq>>>2,Xq|=Xq>>>4,Xq|=Xq>>>8,Xq|=Xq>>>16,Xq++;return Xq}function d(Xq,Jq){if(Xq<=0||Jq.length===0&&Jq.ended)return 0;if(Jq.objectMode)return 1;if(H(Xq)){if(Jq.flowing&&Jq.length)return Jq.buffer.first().length;return Jq.length}if(Xq<=Jq.length)return Xq;return Jq.ended?Jq.length:0}L.prototype.read=function(Xq){if(Iq&&Eq("read - n =",Xq,this.__id),!J(Xq))Xq=K(Xq,10);const Jq=this._readableState,Hq=Xq;if(Xq>Jq.highWaterMark)Jq.highWaterMark=c(Xq);if(Xq!==0)Jq.emittedReadable=!1;if(Xq===0&&Jq.needReadable&&((Jq.highWaterMark!==0?Jq.length>=Jq.highWaterMark:Jq.length>0)||Jq.ended)){if(Iq&&Eq("read: emitReadable or endReadable",Jq.length,Jq.ended,this.__id),Jq.length===0&&Jq.ended)r(this);else _(this,Jq);return null}if(Xq=d(Xq,Jq),Xq===0&&Jq.ended){if(Iq&&Eq("read: calling endReadable if length 0 -- length, state.ended",Jq.length,Jq.ended,this.__id),Jq.length===0)r(this);return null}let Kq=Jq.needReadable;if(Iq&&Eq("need readable",Kq,this.__id),Jq.length===0||Jq.length-Xq<Jq.highWaterMark)Kq=!0,Iq&&Eq("length less than watermark",Kq,this.__id);if(Jq.ended||Jq.reading||Jq.destroyed||Jq.errored||!Jq.constructed)Iq&&Eq("state.constructed?",Jq.constructed,this.__id),Kq=!1,Iq&&Eq("reading, ended or constructing",Kq,this.__id);else if(Kq){if(Iq&&Eq("do read",this.__id),Jq.reading=!0,Jq.sync=!0,Jq.length===0)Jq.needReadable=!0;try{var Zq=this._read(Jq.highWaterMark);if(Oq(Zq)){Iq&&Eq("async _read",this.__id);const Bq=Bun.peek(Zq);if(Iq&&Eq("peeked promise",Bq,this.__id),Bq!==Zq)Zq=Bq}if(Oq(Zq)&&Zq?.then&&Rq(Zq.then))Iq&&Eq("async _read result.then setup",this.__id),Zq.then(h,function(Bq){p(this,Bq)})}catch(Bq){p(this,Bq)}if(Jq.sync=!1,!Jq.reading)Xq=d(Hq,Jq)}Iq&&Eq("n @ fromList",Xq,this.__id);let Yq;if(Xq>0)Yq=a(Xq,Jq);else Yq=null;if(Iq&&Eq("ret @ read",Yq,this.__id),Yq===null)Jq.needReadable=Jq.length<=Jq.highWaterMark,Iq&&Eq("state.length while ret = null",Jq.length,this.__id),Xq=0;else if(Jq.length-=Xq,Jq.multiAwaitDrain)Jq.awaitDrainWriters.clear();else Jq.awaitDrainWriters=null;if(Jq.length===0){if(!Jq.ended)Jq.needReadable=!0;if(Hq!==Xq&&Jq.ended)r(this)}if(Yq!==null&&!Jq.errorEmitted&&!Jq.closeEmitted)Jq.dataEmitted=!0,this.emit("data",Yq);return Yq},L.prototype._read=function(Xq){throw new v("_read()")},L.prototype.pipe=function(Xq,Jq){const Hq=this,Kq=this._readableState;if(Kq.pipes.length===1){if(!Kq.multiAwaitDrain)Kq.multiAwaitDrain=!0,Kq.awaitDrainWriters=new z(Kq.awaitDrainWriters?[Kq.awaitDrainWriters]:[])}Kq.pipes.push(Xq),Iq&&Eq("pipe count=%d opts=%j",Kq.pipes.length,Jq,Hq.__id);const Yq=(!Jq||Jq.end!==!1)&&Xq!==process.stdout&&Xq!==process.stderr?$q:jq;if(Kq.endEmitted)Aq(Yq);else Hq.once("end",Yq);Xq.on("unpipe",Bq);function Bq(Nq,Pq){if(Iq&&Eq("onunpipe",Hq.__id),Nq===Hq){if(Pq&&Pq.hasUnpiped===!1)Pq.hasUnpiped=!0,Uq()}}function $q(){Iq&&Eq("onend",Hq.__id),Xq.end()}let zq,Vq=!1;function Uq(){if(Iq&&Eq("cleanup",Hq.__id),Xq.removeListener("close",Fq),Xq.removeListener("finish",Lq),zq)Xq.removeListener("drain",zq);if(Xq.removeListener("error",Mq),Xq.removeListener("unpipe",Bq),Hq.removeListener("end",$q),Hq.removeListener("end",jq),Hq.removeListener("data",Gq),Vq=!0,zq&&Kq.awaitDrainWriters&&(!Xq._writableState||Xq._writableState.needDrain))zq()}function Wq(){if(!Vq){if(Kq.pipes.length===1&&Kq.pipes[0]===Xq)Iq&&Eq("false write response, pause",0,Hq.__id),Kq.awaitDrainWriters=Xq,Kq.multiAwaitDrain=!1;else if(Kq.pipes.length>1&&Kq.pipes.includes(Xq))Iq&&Eq("false write response, pause",Kq.awaitDrainWriters.size,Hq.__id),Kq.awaitDrainWriters.add(Xq);Hq.pause()}if(!zq)zq=l(Hq,Xq),Xq.on("drain",zq)}Hq.on("data",Gq);function Gq(Nq){Iq&&Eq("ondata",Hq.__id);const Pq=Xq.write(Nq);if(Iq&&Eq("dest.write",Pq,Hq.__id),Pq===!1)Wq()}function Mq(Nq){if(Eq("onerror",Nq),jq(),Xq.removeListener("error",Mq),Xq.listenerCount("error")===0){const Pq=Xq._writableState||Xq._readableState;if(Pq&&!Pq.errorEmitted)p(Xq,Nq);else Xq.emit("error",Nq)}}F(Xq,"error",Mq);function Fq(){Xq.removeListener("finish",Lq),jq()}Xq.once("close",Fq);function Lq(){Eq("onfinish"),Xq.removeListener("close",Fq),jq()}Xq.once("finish",Lq);function jq(){Eq("unpipe"),Hq.unpipe(Xq)}if(Xq.emit("pipe",Hq),Xq.writableNeedDrain===!0){if(Kq.flowing)Wq()}else if(!Kq.flowing)Eq("pipe resume"),Hq.resume();return Xq};function l(Xq,Jq){return function Hq(){const Kq=Xq._readableState;if(Kq.awaitDrainWriters===Jq)Eq("pipeOnDrain",1),Kq.awaitDrainWriters=null;else if(Kq.multiAwaitDrain)Eq("pipeOnDrain",Kq.awaitDrainWriters.size),Kq.awaitDrainWriters.delete(Jq);if((!Kq.awaitDrainWriters||Kq.awaitDrainWriters.size===0)&&Xq.listenerCount("data"))Xq.resume()}}L.prototype.unpipe=function(Xq){const Jq=this._readableState,Hq={hasUnpiped:!1};if(Jq.pipes.length===0)return this;if(!Xq){const Zq=Jq.pipes;Jq.pipes=[],this.pause();for(let Yq=0;Yq<Zq.length;Yq++)Zq[Yq].emit("unpipe",this,{hasUnpiped:!1});return this}const Kq=X(Jq.pipes,Xq);if(Kq===-1)return this;if(Jq.pipes.splice(Kq,1),Jq.pipes.length===0)this.pause();return Xq.emit("unpipe",this,Hq),this},L.prototype.addListener=L.prototype.on,L.prototype.removeListener=function(Xq,Jq){const Hq=M.prototype.removeListener.call(this,Xq,Jq);if(Xq==="readable")Aq(i,this);return Hq},L.prototype.off=L.prototype.removeListener,L.prototype.removeAllListeners=function(Xq){const Jq=M.prototype.removeAllListeners.apply(this,arguments);if(Xq==="readable"||Xq===void 0)Aq(i,this);return Jq};function i(Xq){const Jq=Xq._readableState;if(Jq.readableListening=Xq.listenerCount("readable")>0,Jq.resumeScheduled&&Jq.paused===!1)Jq.flowing=!0;else if(Xq.listenerCount("data")>0)Xq.resume();else if(!Jq.readableListening)Jq.flowing=null}function n(Xq){Iq&&Eq("on readable nextTick, calling read(0)",Xq.__id),Xq.read(0)}L.prototype.resume=function(){const Xq=this._readableState;if(!Xq.flowing)Iq&&Eq("resume",this.__id),Xq.flowing=!Xq.readableListening,T(this,Xq);return Xq.paused=!1,this},L.prototype.pause=function(){if(Iq&&Eq("call pause flowing=%j",this._readableState.flowing,this.__id),this._readableState.flowing!==!1)Iq&&Eq("pause",this.__id),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this},L.prototype.wrap=function(Xq){let Jq=!1;Xq.on("data",(Kq)=>{if(!this.push(Kq)&&Xq.pause)Jq=!0,Xq.pause()}),Xq.on("end",()=>{this.push(null)}),Xq.on("error",(Kq)=>{p(this,Kq)}),Xq.on("close",()=>{this.destroy()}),Xq.on("destroy",()=>{this.destroy()}),this._read=()=>{if(Jq&&Xq.resume)Jq=!1,Xq.resume()};const Hq=Y(Xq);for(let Kq=1;Kq<Hq.length;Kq++){const Zq=Hq[Kq];if(this[Zq]===void 0&&typeof Xq[Zq]==="function")this[Zq]=Xq[Zq].bind(Xq)}return this},L.prototype[V]=function(){return o(this)},L.prototype.iterator=function(Xq){if(Xq!==void 0)k(Xq,"options");return o(this,Xq)};function o(Xq,Jq){if(typeof Xq.read!=="function")Xq=L.wrap(Xq,{objectMode:!0});const Hq=s(Xq,Jq);return Hq.stream=Xq,Hq}async function*s(Xq,Jq){let Hq=h;function Kq(Bq){if(this===Xq)Hq(),Hq=h;else Hq=Bq}Xq.on("readable",Kq);let Zq;const Yq=E(Xq,{writable:!1},(Bq)=>{Zq=Bq?D(Zq,Bq):null,Hq(),Hq=h});try{while(!0){const Bq=Xq.destroyed?null:Xq.read();if(Bq!==null)yield Bq;else if(Zq)throw Zq;else if(Zq===null)return;else await new $(Kq)}}catch(Bq){throw Zq=D(Zq,Bq),Zq}finally{if((Zq||(Jq===null||Jq===void 0?void 0:Jq.destroyOnReturn)!==!1)&&(Zq===void 0||Xq._readableState.autoDestroy))C.destroyer(Xq,null);else Xq.off("readable",Kq),Yq()}}Z(L.prototype,{readable:{get(){const Xq=this._readableState;return!!Xq&&Xq.readable!==!1&&!Xq.destroyed&&!Xq.errorEmitted&&!Xq.endEmitted},set(Xq){if(this._readableState)this._readableState.readable=!!Xq}},readableDidRead:{enumerable:!1,get:function(){return this._readableState.dataEmitted}},readableAborted:{enumerable:!1,get:function(){return!!(this._readableState.readable!==!1&&(this._readableState.destroyed||this._readableState.errored)&&!this._readableState.endEmitted)}},readableHighWaterMark:{enumerable:!1,get:function(){return this._readableState.highWaterMark}},readableBuffer:{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}},readableFlowing:{enumerable:!1,get:function(){return this._readableState.flowing},set:function(Xq){if(this._readableState)this._readableState.flowing=Xq}},readableLength:{enumerable:!1,get(){return this._readableState.length}},readableObjectMode:{enumerable:!1,get(){return this._readableState?this._readableState.objectMode:!1}},readableEncoding:{enumerable:!1,get(){return this._readableState?this._readableState.encoding:null}},errored:{enumerable:!1,get(){return this._readableState?this._readableState.errored:null}},closed:{get(){return this._readableState?this._readableState.closed:!1}},destroyed:{enumerable:!1,get(){return this._readableState?this._readableState.destroyed:!1},set(Xq){if(!this._readableState)return;this._readableState.destroyed=Xq}},readableEnded:{enumerable:!1,get(){return this._readableState?this._readableState.endEmitted:!1}}}),L._fromList=a;function a(Xq,Jq){if(Jq.length===0)return null;let Hq;if(Jq.objectMode)Hq=Jq.buffer.shift();else if(!Xq||Xq>=Jq.length){if(Jq.decoder)Hq=Jq.buffer.join("");else if(Jq.buffer.length===1)Hq=Jq.buffer.first();else Hq=Jq.buffer.concat(Jq.length);Jq.buffer.clear()}else Hq=Jq.buffer.consume(Xq,Jq.decoder);return Hq}function r(Xq){const Jq=Xq._readableState;if(Iq&&Eq("endEmitted @ endReadable",Jq.endEmitted,Xq.__id),!Jq.endEmitted)Jq.ended=!0,Aq(t,Jq,Xq)}function t(Xq,Jq){if(Iq&&Eq("endReadableNT -- endEmitted, state.length",Xq.endEmitted,Xq.length,Jq.__id),!Xq.errored&&!Xq.closeEmitted&&!Xq.endEmitted&&Xq.length===0){if(Xq.endEmitted=!0,Jq.emit("end"),Iq&&Eq("end emitted @ endReadableNT",Jq.__id),Jq.writable&&Jq.allowHalfOpen===!1)Aq(e,Jq);else if(Xq.autoDestroy){const Hq=Jq._writableState;if(!Hq||Hq.autoDestroy&&(Hq.finished||Hq.writable===!1))Jq.destroy()}}}function e(Xq){if(Xq.writable&&!Xq.writableEnded&&!Xq.destroyed)Xq.end()}L.from=function(Xq,Jq){return y(L,Xq,Jq)};var qq={newStreamReadableFromReadableStream:N};function Qq(){if(qq===void 0)qq={};return qq}L.fromWeb=function(Xq,Jq){return Qq().newStreamReadableFromReadableStream(Xq,Jq)},L.toWeb=function(Xq){return Qq().newReadableStreamFromStreamReadable(Xq)},L.wrap=function(Xq,Jq){var Hq,Kq;return new L({objectMode:(Hq=(Kq=Xq.readableObjectMode)!==null&&Kq!==void 0?Kq:Xq.objectMode)!==null&&Hq!==void 0?Hq:!0,...Jq,destroy(Zq,Yq){C.destroyer(Xq,Zq),Yq(Zq)}}).wrap(Xq)}}}),YQ=cq({"node_modules/readable-stream/lib/internal/streams/writable.js"(q,Q){var{ArrayPrototypeSlice:X,Error:J,FunctionPrototypeSymbolHasInstance:H,ObjectDefineProperty:K,ObjectDefineProperties:Z,ObjectSetPrototypeOf:Y,StringPrototypeToLowerCase:B,Symbol:$,SymbolHasInstance:z}=Dq(),{EventEmitter:V}=_q("bun:events_native"),U=QQ().Stream,W=qQ(),{addAbortSignal:G}=XQ(),{getHighWaterMark:M,getDefaultHighWaterMark:F}=JQ(),{ERR_INVALID_ARG_TYPE:L,ERR_METHOD_NOT_IMPLEMENTED:j,ERR_MULTIPLE_CALLBACK:N,ERR_STREAM_CANNOT_PIPE:P,ERR_STREAM_DESTROYED:E,ERR_STREAM_ALREADY_FINISHED:I,ERR_STREAM_NULL_VALUES:T,ERR_STREAM_WRITE_AFTER_END:A,ERR_UNKNOWN_ENCODING:x}=sq().codes,{errorOrDestroy:O}=W;function _(s={}){const a=this instanceof vq();if(!a&&!H(_,this))return new _(s);if(this._writableState=new w(s,this,a),s){if(typeof s.write==="function")this._write=s.write;if(typeof s.writev==="function")this._writev=s.writev;if(typeof s.destroy==="function")this._destroy=s.destroy;if(typeof s.final==="function")this._final=s.final;if(typeof s.construct==="function")this._construct=s.construct;if(s.signal)G(s.signal,this)}U.call(this,s),W.construct(this,()=>{const r=this._writableState;if(!r.writing)u(this,r);d(this,r)})}Y(_.prototype,U.prototype),Y(_,U),Q.exports=_;function C(){}var D=$("kOnFinished");function w(s,a,r){if(typeof r!=="boolean")r=a instanceof vq();if(this.objectMode=!!(s&&s.objectMode),r)this.objectMode=this.objectMode||!!(s&&s.writableObjectMode);this.highWaterMark=s?M(this,s,"writableHighWaterMark",r):F(!1),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;const t=!!(s&&s.decodeStrings===!1);this.decodeStrings=!t,this.defaultEncoding=s&&s.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=f.bind(void 0,a),this.writecb=null,this.writelen=0,this.afterWriteTickInfo=null,v(this),this.pendingcb=0,this.constructed=!0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!s||s.emitClose!==!1,this.autoDestroy=!s||s.autoDestroy!==!1,this.errored=null,this.closed=!1,this.closeEmitted=!1,this[D]=[]}function v(s){s.buffered=[],s.bufferedIndex=0,s.allBuffers=!0,s.allNoop=!0}w.prototype.getBuffer=function s(){return X(this.buffered,this.bufferedIndex)},K(w.prototype,"bufferedRequestCount",{get(){return this.buffered.length-this.bufferedIndex}}),K(_,z,{value:function(s){if(H(this,s))return!0;if(this!==_)return!1;return s&&s._writableState instanceof w}}),_.prototype.pipe=function(){O(this,new P)};function R(s,a,r,t){const e=s._writableState;if(typeof r==="function")t=r,r=e.defaultEncoding;else{if(!r)r=e.defaultEncoding;else if(r!=="buffer"&&!Buffer.isEncoding(r))throw new x(r);if(typeof t!=="function")t=C}if(a===null)throw new T;else if(!e.objectMode)if(typeof a==="string"){if(e.decodeStrings!==!1)a=Buffer.from(a,r),r="buffer"}else if(a instanceof Buffer)r="buffer";else if(U._isUint8Array(a))a=U._uint8ArrayToBuffer(a),r="buffer";else throw new L("chunk",["string","Buffer","Uint8Array"],a);let qq;if(e.ending)qq=new A;else if(e.destroyed)qq=new E("write");if(qq)return Aq(t,qq),O(s,qq,!0),qq;return e.pendingcb++,S(s,e,a,r,t)}_.prototype.write=function(s,a,r){return R(this,s,a,r)===!0},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){const s=this._writableState;if(s.corked){if(s.corked--,!s.writing)u(this,s)}},_.prototype.setDefaultEncoding=function s(a){if(typeof a==="string")a=B(a);if(!Buffer.isEncoding(a))throw new x(a);return this._writableState.defaultEncoding=a,this};function S(s,a,r,t,e){const qq=a.objectMode?1:r.length;a.length+=qq;const Qq=a.length<a.highWaterMark;if(!Qq)a.needDrain=!0;if(a.writing||a.corked||a.errored||!a.constructed){if(a.buffered.push({chunk:r,encoding:t,callback:e}),a.allBuffers&&t!=="buffer")a.allBuffers=!1;if(a.allNoop&&e!==C)a.allNoop=!1}else a.writelen=qq,a.writecb=e,a.writing=!0,a.sync=!0,s._write(r,t,a.onwrite),a.sync=!1;return Qq&&!a.errored&&!a.destroyed}function g(s,a,r,t,e,qq,Qq){if(a.writelen=t,a.writecb=Qq,a.writing=!0,a.sync=!0,a.destroyed)a.onwrite(new E("write"));else if(r)s._writev(e,a.onwrite);else s._write(e,qq,a.onwrite);a.sync=!1}function k(s,a,r,t){--a.pendingcb,t(r),p(a),O(s,r)}function f(s,a){const r=s._writableState,t=r.sync,e=r.writecb;if(typeof e!=="function"){O(s,new N);return}if(r.writing=!1,r.writecb=null,r.length-=r.writelen,r.writelen=0,a){if(Error.captureStackTrace(a),!r.errored)r.errored=a;if(s._readableState&&!s._readableState.errored)s._readableState.errored=a;if(t)Aq(k,s,r,a,e);else k(s,r,a,e)}else{if(r.buffered.length>r.bufferedIndex)u(s,r);if(t)if(r.afterWriteTickInfo!==null&&r.afterWriteTickInfo.cb===e)r.afterWriteTickInfo.count++;else r.afterWriteTickInfo={count:1,cb:e,stream:s,state:r},Aq(y,r.afterWriteTickInfo);else h(s,r,1,e)}}function y({stream:s,state:a,count:r,cb:t}){return a.afterWriteTickInfo=null,h(s,a,r,t)}function h(s,a,r,t){if(!a.ending&&!s.destroyed&&a.length===0&&a.needDrain)a.needDrain=!1,s.emit("drain");while(r-- >0)a.pendingcb--,t();if(a.destroyed)p(a);d(s,a)}function p(s){if(s.writing)return;for(let e=s.bufferedIndex;e<s.buffered.length;++e){var a;const{chunk:qq,callback:Qq}=s.buffered[e],Xq=s.objectMode?1:qq.length;s.length-=Xq,Qq((a=s.errored)!==null&&a!==void 0?a:new E("write"))}const r=s[D].splice(0);for(let e=0;e<r.length;e++){var t;r[e]((t=s.errored)!==null&&t!==void 0?t:new E("end"))}v(s)}function u(s,a){if(a.corked||a.bufferProcessing||a.destroyed||!a.constructed)return;const{buffered:r,bufferedIndex:t,objectMode:e}=a,qq=r.length-t;if(!qq)return;let Qq=t;if(a.bufferProcessing=!0,qq>1&&s._writev){a.pendingcb-=qq-1;const Xq=a.allNoop?C:(Hq)=>{for(let Kq=Qq;Kq<r.length;++Kq)r[Kq].callback(Hq)},Jq=a.allNoop&&Qq===0?r:X(r,Qq);Jq.allBuffers=a.allBuffers,g(s,a,!0,a.length,Jq,"",Xq),v(a)}else{do{const{chunk:Xq,encoding:Jq,callback:Hq}=r[Qq];r[Qq++]=null;const Kq=e?1:Xq.length;g(s,a,!1,Kq,Xq,Jq,Hq)}while(Qq<r.length&&!a.writing);if(Qq===r.length)v(a);else if(Qq>256)r.splice(0,Qq),a.bufferedIndex=0;else a.bufferedIndex=Qq}a.bufferProcessing=!1}_.prototype._write=function(s,a,r){if(this._writev)this._writev([{chunk:s,encoding:a}],r);else throw new j("_write()")},_.prototype._writev=null,_.prototype.end=function(s,a,r,t=!1){const e=this._writableState;if(Iq&&Eq("end",e,this.__id),typeof s==="function")r=s,s=null,a=null;else if(typeof a==="function")r=a,a=null;let qq;if(s!==null&&s!==void 0){let Qq;if(!t)Qq=R(this,s,a);else Qq=this.write(s,a);if(Qq instanceof J)qq=Qq}if(e.corked)e.corked=1,this.uncork();if(qq)this.emit("error",qq);else if(!e.errored&&!e.ending)e.ending=!0,d(this,e,!0),e.ended=!0;else if(e.finished)qq=new I("end");else if(e.destroyed)qq=new E("end");if(typeof r==="function")if(qq||e.finished)Aq(r,qq);else e[D].push(r);return this};function b(s,a){var r=s.ending&&!s.destroyed&&s.constructed&&s.length===0&&!s.errored&&s.buffered.length===0&&!s.finished&&!s.writing&&!s.errorEmitted&&!s.closeEmitted;return Eq("needFinish",r,a),r}function m(s,a){let r=!1;function t(e){if(r){O(s,e!==null&&e!==void 0?e:N());return}if(r=!0,a.pendingcb--,e){const qq=a[D].splice(0);for(let Qq=0;Qq<qq.length;Qq++)qq[Qq](e);O(s,e,a.sync)}else if(b(a))a.prefinished=!0,s.emit("prefinish"),a.pendingcb++,Aq(l,s,a)}a.sync=!0,a.pendingcb++;try{s._final(t)}catch(e){t(e)}a.sync=!1}function c(s,a){if(!a.prefinished&&!a.finalCalled)if(typeof s._final==="function"&&!a.destroyed)a.finalCalled=!0,m(s,a);else a.prefinished=!0,s.emit("prefinish")}function d(s,a,r){if(Iq&&Eq("finishMaybe -- state, sync",a,r,s.__id),!b(a,s.__id))return;if(c(s,a),a.pendingcb===0){if(r)a.pendingcb++,Aq((t,e)=>{if(b(e))l(t,e);else e.pendingcb--},s,a);else if(b(a))a.pendingcb++,l(s,a)}}function l(s,a){a.pendingcb--,a.finished=!0;const r=a[D].splice(0);for(let t=0;t<r.length;t++)r[t]();if(s.emit("finish"),a.autoDestroy){const t=s._readableState;if(!t||t.autoDestroy&&(t.endEmitted||t.readable===!1))s.destroy()}}Z(_.prototype,{closed:{get(){return this._writableState?this._writableState.closed:!1}},destroyed:{get(){return this._writableState?this._writableState.destroyed:!1},set(s){if(this._writableState)this._writableState.destroyed=s}},writable:{get(){const s=this._writableState;return!!s&&s.writable!==!1&&!s.destroyed&&!s.errored&&!s.ending&&!s.ended},set(s){if(this._writableState)this._writableState.writable=!!s}},writableFinished:{get(){return this._writableState?this._writableState.finished:!1}},writableObjectMode:{get(){return this._writableState?this._writableState.objectMode:!1}},writableBuffer:{get(){return this._writableState&&this._writableState.getBuffer()}},writableEnded:{get(){return this._writableState?this._writableState.ending:!1}},writableNeedDrain:{get(){const s=this._writableState;if(!s)return!1;return!s.destroyed&&!s.ending&&s.needDrain}},writableHighWaterMark:{get(){return this._writableState&&this._writableState.highWaterMark}},writableCorked:{get(){return this._writableState?this._writableState.corked:0}},writableLength:{get(){return this._writableState&&this._writableState.length}},errored:{enumerable:!1,get(){return this._writableState?this._writableState.errored:null}},writableAborted:{enumerable:!1,get:function(){return!!(this._writableState.writable!==!1&&(this._writableState.destroyed||this._writableState.errored)&&!this._writableState.finished)}}});var i=W.destroy;_.prototype.destroy=function(s,a){const r=this._writableState;if(!r.destroyed&&(r.bufferedIndex<r.buffered.length||r[D].length))Aq(p,r);return i.call(this,s,a),this},_.prototype._undestroy=W.undestroy,_.prototype._destroy=function(s,a){a(s)},_.prototype[V.captureRejectionSymbol]=function(s){this.destroy(s)};var n;function o(){if(n===void 0)n={};return n}_.fromWeb=function(s,a){return o().newStreamWritableFromWritableStream(s,a)},_.toWeb=function(s){return o().newWritableStreamFromStreamWritable(s)}}}),BQ=cq({"node_modules/readable-stream/lib/internal/streams/duplexify.js"(q,Q){var X=_q("buffer"),{isReadable:J,isWritable:H,isIterable:K,isNodeStream:Z,isReadableNodeStream:Y,isWritableNodeStream:B,isDuplexNodeStream:$}=rq(),z=tq(),{AbortError:V,codes:{ERR_INVALID_ARG_TYPE:U,ERR_INVALID_RETURN_VALUE:W}}=sq(),{destroyer:G}=qQ(),M=vq(),F=ZQ(),{createDeferredPromise:L}=wq(),j=HQ(),N=globalThis.Blob||X.Blob,P=typeof N!=="undefined"?function O(_){return _ instanceof N}:function O(_){return!1},E=globalThis.AbortController||_q("abort-controller").AbortController,{FunctionPrototypeCall:I}=Dq();class T extends M{constructor(O){super(O);if((O===null||O===void 0?void 0:O.readable)===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if((O===null||O===void 0?void 0:O.writable)===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}}Q.exports=function O(_,C){if($(_))return _;if(Y(_))return x({readable:_});if(B(_))return x({writable:_});if(Z(_))return x({writable:!1,readable:!1});if(typeof _==="function"){const{value:w,write:v,final:R,destroy:S}=A(_);if(K(w))return j(T,w,{objectMode:!0,write:v,final:R,destroy:S});const g=w===null||w===void 0?void 0:w.then;if(typeof g==="function"){let k;const f=I(g,w,(y)=>{if(y!=null)throw new W("nully","body",y)},(y)=>{G(k,y)});return k=new T({objectMode:!0,readable:!1,write:v,final(y){R(async()=>{try{await f,Aq(y,null)}catch(h){Aq(y,h)}})},destroy:S})}throw new W("Iterable, AsyncIterable or AsyncFunction",C,w)}if(P(_))return O(_.arrayBuffer());if(K(_))return j(T,_,{objectMode:!0,writable:!1});if(typeof(_===null||_===void 0?void 0:_.writable)==="object"||typeof(_===null||_===void 0?void 0:_.readable)==="object"){const w=_!==null&&_!==void 0&&_.readable?Y(_===null||_===void 0?void 0:_.readable)?_===null||_===void 0?void 0:_.readable:O(_.readable):void 0,v=_!==null&&_!==void 0&&_.writable?B(_===null||_===void 0?void 0:_.writable)?_===null||_===void 0?void 0:_.writable:O(_.writable):void 0;return x({readable:w,writable:v})}const D=_===null||_===void 0?void 0:_.then;if(typeof D==="function"){let w;return I(D,_,(v)=>{if(v!=null)w.push(v);w.push(null)},(v)=>{G(w,v)}),w=new T({objectMode:!0,writable:!1,read(){}})}throw new U(C,["Blob","ReadableStream","WritableStream","Stream","Iterable","AsyncIterable","Function","{ readable, writable } pair","Promise"],_)};function A(O){let{promise:_,resolve:C}=L();const D=new E,w=D.signal;return{value:O(async function*(){while(!0){const R=_;_=null;const{chunk:S,done:g,cb:k}=await R;if(Aq(k),g)return;if(w.aborted)throw new V(void 0,{cause:w.reason});({promise:_,resolve:C}=L()),yield S}}(),{signal:w}),write(R,S,g){const k=C;C=null,k({chunk:R,done:!1,cb:g})},final(R){const S=C;C=null,S({done:!0,cb:R})},destroy(R,S){D.abort(),S(R)}}}function x(O){const _=O.readable&&typeof O.readable.read!=="function"?F.wrap(O.readable):O.readable,C=O.writable;let D=!!J(_),w=!!H(C),v,R,S,g,k;function f(y){const h=g;if(g=null,h)h(y);else if(y)k.destroy(y);else if(!D&&!w)k.destroy()}if(k=new T({readableObjectMode:!!(_!==null&&_!==void 0&&_.readableObjectMode),writableObjectMode:!!(C!==null&&C!==void 0&&C.writableObjectMode),readable:D,writable:w}),w)z(C,(y)=>{if(w=!1,y)G(_,y);f(y)}),k._write=function(y,h,p){if(C.write(y,h))p();else v=p},k._final=function(y){C.end(),R=y},C.on("drain",function(){if(v){const y=v;v=null,y()}}),C.on("finish",function(){if(R){const y=R;R=null,y()}});if(D)z(_,(y)=>{if(D=!1,y)G(_,y);f(y)}),_.on("readable",function(){if(S){const y=S;S=null,y()}}),_.on("end",function(){k.push(null)}),k._read=function(){while(!0){const y=_.read();if(y===null){S=k._read;return}if(!k.push(y))return}};return k._destroy=function(y,h){if(!y&&g!==null)y=new V;if(S=null,v=null,R=null,g===null)h(y);else g=h,G(C,y),G(_,y)},k}}}),vq=cq({"node_modules/readable-stream/lib/internal/streams/duplex.js"(q,Q){var{ObjectDefineProperties:X,ObjectGetOwnPropertyDescriptor:J,ObjectKeys:H,ObjectSetPrototypeOf:K}=Dq(),Z=ZQ();function Y(U){if(!(this instanceof Y))return new Y(U);if(Z.call(this,U),Tq.call(this,U),U){if(this.allowHalfOpen=U.allowHalfOpen!==!1,U.readable===!1)this._readableState.readable=!1,this._readableState.ended=!0,this._readableState.endEmitted=!0;if(U.writable===!1)this._writableState.writable=!1,this._writableState.ending=!0,this._writableState.ended=!0,this._writableState.finished=!0}else this.allowHalfOpen=!0}Q.exports=Y,K(Y.prototype,Z.prototype),K(Y,Z);for(var B in Tq.prototype)if(!Y.prototype[B])Y.prototype[B]=Tq.prototype[B];X(Y.prototype,{writable:J(Tq.prototype,"writable"),writableHighWaterMark:J(Tq.prototype,"writableHighWaterMark"),writableObjectMode:J(Tq.prototype,"writableObjectMode"),writableBuffer:J(Tq.prototype,"writableBuffer"),writableLength:J(Tq.prototype,"writableLength"),writableFinished:J(Tq.prototype,"writableFinished"),writableCorked:J(Tq.prototype,"writableCorked"),writableEnded:J(Tq.prototype,"writableEnded"),writableNeedDrain:J(Tq.prototype,"writableNeedDrain"),destroyed:{get(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set(U){if(this._readableState&&this._writableState)this._readableState.destroyed=U,this._writableState.destroyed=U}}});var $;function z(){if($===void 0)$={};return $}Y.fromWeb=function(U,W){return z().newStreamDuplexFromReadableWritablePair(U,W)},Y.toWeb=function(U){return z().newReadableWritablePairFromDuplex(U)};var V;Y.from=function(U){if(!V)V=BQ();return V(U,"body")}}}),$Q=cq({"node_modules/readable-stream/lib/internal/streams/transform.js"(q,Q){var{ObjectSetPrototypeOf:X,Symbol:J}=Dq(),{ERR_METHOD_NOT_IMPLEMENTED:H}=sq().codes,K=vq();function Z(z){if(!(this instanceof Z))return new Z(z);if(K.call(this,z),this._readableState.sync=!1,this[Y]=null,z){if(typeof z.transform==="function")this._transform=z.transform;if(typeof z.flush==="function")this._flush=z.flush}this.on("prefinish",$.bind(this))}X(Z.prototype,K.prototype),X(Z,K),Q.exports=Z;var Y=J("kCallback");function B(z){if(typeof this._flush==="function"&&!this.destroyed)this._flush((V,U)=>{if(V){if(z)z(V);else this.destroy(V);return}if(U!=null)this.push(U);if(this.push(null),z)z()});else if(this.push(null),z)z()}function $(){if(this._final!==B)B.call(this)}Z.prototype._final=B,Z.prototype._transform=function(z,V,U){throw new H("_transform()")},Z.prototype._write=function(z,V,U){const W=this._readableState,G=this._writableState,M=W.length;this._transform(z,V,(F,L)=>{if(F){U(F);return}if(L!=null)this.push(L);if(G.ended||M===W.length||W.length<W.highWaterMark||W.highWaterMark===0||W.length===0)U();else this[Y]=U})},Z.prototype._read=function(){if(this[Y]){const z=this[Y];this[Y]=null,z()}}}}),zQ=cq({"node_modules/readable-stream/lib/internal/streams/passthrough.js"(q,Q){var{ObjectSetPrototypeOf:X}=Dq(),J=$Q();function H(K){if(!(this instanceof H))return new H(K);J.call(this,K)}X(H.prototype,J.prototype),X(H,J),H.prototype._transform=function(K,Z,Y){Y(null,K)},Q.exports=H}}),VQ=cq({"node_modules/readable-stream/lib/internal/streams/pipeline.js"(q,Q){var{ArrayIsArray:X,Promise:J,SymbolAsyncIterator:H}=Dq(),K=tq(),{once:Z}=wq(),Y=qQ(),B=vq(),{aggregateTwoErrors:$,codes:{ERR_INVALID_ARG_TYPE:z,ERR_INVALID_RETURN_VALUE:V,ERR_MISSING_ARGS:U,ERR_STREAM_DESTROYED:W},AbortError:G}=sq(),{validateFunction:M,validateAbortSignal:F}=aq(),{isIterable:L,isReadable:j,isReadableNodeStream:N,isNodeStream:P}=rq(),E=globalThis.AbortController||_q("abort-controller").AbortController,I,T;function A(R,S,g){let k=!1;R.on("close",()=>{k=!0});const f=K(R,{readable:S,writable:g},(y)=>{k=!y});return{destroy:(y)=>{if(k)return;k=!0,Y.destroyer(R,y||new W("pipe"))},cleanup:f}}function x(R){return M(R[R.length-1],"streams[stream.length - 1]"),R.pop()}function O(R){if(L(R))return R;else if(N(R))return _(R);throw new z("val",["Readable","Iterable","AsyncIterable"],R)}async function*_(R){if(!T)T=ZQ();yield*T.prototype[H].call(R)}async function C(R,S,g,{end:k}){let f,y=null;const h=(b)=>{if(b)f=b;if(y){const m=y;y=null,m()}},p=()=>new J((b,m)=>{if(f)m(f);else y=()=>{if(f)m(f);else b()}});S.on("drain",h);const u=K(S,{readable:!1},h);try{if(S.writableNeedDrain)await p();for await(let b of R)if(!S.write(b))await p();if(k)S.end();await p(),g()}catch(b){g(f!==b?$(f,b):b)}finally{u(),S.off("drain",h)}}function D(...R){return w(R,Z(x(R)))}function w(R,S,g){if(R.length===1&&X(R[0]))R=R[0];if(R.length<2)throw new U("streams");const k=new E,f=k.signal,y=g===null||g===void 0?void 0:g.signal,h=[];F(y,"options.signal");function p(){l(new G)}y===null||y===void 0||y.addEventListener("abort",p);let u,b;const m=[];let c=0;function d(o){l(o,--c===0)}function l(o,s){if(o&&(!u||u.code==="ERR_STREAM_PREMATURE_CLOSE"))u=o;if(!u&&!s)return;while(m.length)m.shift()(u);if(y===null||y===void 0||y.removeEventListener("abort",p),k.abort(),s){if(!u)h.forEach((a)=>a());Aq(S,u,b)}}let i;for(let o=0;o<R.length;o++){const s=R[o],a=o<R.length-1,r=o>0,t=a||(g===null||g===void 0?void 0:g.end)!==!1,e=o===R.length-1;if(P(s)){let qq=function(Qq){if(Qq&&Qq.name!=="AbortError"&&Qq.code!=="ERR_STREAM_PREMATURE_CLOSE")d(Qq)};if(t){const{destroy:Qq,cleanup:Xq}=A(s,a,r);if(m.push(Qq),j(s)&&e)h.push(Xq)}if(s.on("error",qq),j(s)&&e)h.push(()=>{s.removeListener("error",qq)})}if(o===0)if(typeof s==="function"){if(i=s({signal:f}),!L(i))throw new V("Iterable, AsyncIterable or Stream","source",i)}else if(L(s)||N(s))i=s;else i=B.from(s);else if(typeof s==="function")if(i=O(i),i=s(i,{signal:f}),a){if(!L(i,!0))throw new V("AsyncIterable",`transform[${o-1}]`,i)}else{var n;if(!I)I=zQ();const qq=new I({objectMode:!0}),Qq=(n=i)===null||n===void 0?void 0:n.then;if(typeof Qq==="function")c++,Qq.call(i,(Hq)=>{if(b=Hq,Hq!=null)qq.write(Hq);if(t)qq.end();Aq(d)},(Hq)=>{qq.destroy(Hq),Aq(d,Hq)});else if(L(i,!0))c++,C(i,qq,d,{end:t});else throw new V("AsyncIterable or Promise","destination",i);i=qq;const{destroy:Xq,cleanup:Jq}=A(i,!1,!0);if(m.push(Xq),e)h.push(Jq)}else if(P(s)){if(N(i)){c+=2;const qq=v(i,s,d,{end:t});if(j(s)&&e)h.push(qq)}else if(L(i))c++,C(i,s,d,{end:t});else throw new z("val",["Readable","Iterable","AsyncIterable"],i);i=s}else i=B.from(s)}if(f!==null&&f!==void 0&&f.aborted||y!==null&&y!==void 0&&y.aborted)Aq(p);return i}function v(R,S,g,{end:k}){if(R.pipe(S,{end:k}),k)R.once("end",()=>S.end());else g();return K(R,{readable:!0,writable:!1},(f)=>{const y=R._readableState;if(f&&f.code==="ERR_STREAM_PREMATURE_CLOSE"&&y&&y.ended&&!y.errored&&!y.errorEmitted)R.once("end",g).once("error",g);else g(f)}),K(S,{readable:!1,writable:!0},g)}Q.exports={pipelineImpl:w,pipeline:D}}}),UQ=cq({"node_modules/readable-stream/lib/internal/streams/compose.js"(q,Q){var{pipeline:X}=VQ(),J=vq(),{destroyer:H}=qQ(),{isNodeStream:K,isReadable:Z,isWritable:Y}=rq(),{AbortError:B,codes:{ERR_INVALID_ARG_VALUE:$,ERR_MISSING_ARGS:z}}=sq();Q.exports=function V(...U){if(U.length===0)throw new z("streams");if(U.length===1)return J.from(U[0]);const W=[...U];if(typeof U[0]==="function")U[0]=J.from(U[0]);if(typeof U[U.length-1]==="function"){const A=U.length-1;U[A]=J.from(U[A])}for(let A=0;A<U.length;++A){if(!K(U[A]))continue;if(A<U.length-1&&!Z(U[A]))throw new $(`streams[${A}]`,W[A],"must be readable");if(A>0&&!Y(U[A]))throw new $(`streams[${A}]`,W[A],"must be writable")}let G,M,F,L,j;function N(A){const x=L;if(L=null,x)x(A);else if(A)j.destroy(A);else if(!T&&!I)j.destroy()}const P=U[0],E=X(U,N),I=!!Y(P),T=!!Z(E);if(j=new J({writableObjectMode:!!(P!==null&&P!==void 0&&P.writableObjectMode),readableObjectMode:!!(E!==null&&E!==void 0&&E.writableObjectMode),writable:I,readable:T}),I)j._write=function(A,x,O){if(P.write(A,x))O();else G=O},j._final=function(A){P.end(),M=A},P.on("drain",function(){if(G){const A=G;G=null,A()}}),E.on("finish",function(){if(M){const A=M;M=null,A()}});if(T)E.on("readable",function(){if(F){const A=F;F=null,A()}}),E.on("end",function(){j.push(null)}),j._read=function(){while(!0){const A=E.read();if(A===null){F=j._read;return}if(!j.push(A))return}};return j._destroy=function(A,x){if(!A&&L!==null)A=new B;if(F=null,G=null,M=null,L===null)x(A);else L=x,H(E,A)},j}}}),WQ=cq({"node_modules/readable-stream/lib/stream/promises.js"(q,Q){var{ArrayPrototypePop:X,Promise:J}=Dq(),{isIterable:H,isNodeStream:K}=rq(),{pipelineImpl:Z}=VQ(),{finished:Y}=tq();function B(...$){return new J((z,V)=>{let U,W;const G=$[$.length-1];if(G&&typeof G==="object"&&!K(G)&&!H(G)){const M=X($);U=M.signal,W=M.end}Z($,(M,F)=>{if(M)V(M);else z(F)},{signal:U,end:W})})}Q.exports={finished:Y,pipeline:B}}}),GQ=cq({"node_modules/readable-stream/lib/stream.js"(q,Q){var{ObjectDefineProperty:X,ObjectKeys:J,ReflectApply:H}=Dq(),{promisify:{custom:K}}=wq(),{streamReturningOperators:Z,promiseReturningOperators:Y}=eq(),{codes:{ERR_ILLEGAL_CONSTRUCTOR:B}}=sq(),$=UQ(),{pipeline:z}=VQ(),{destroyer:V}=qQ(),U=tq(),W=WQ(),G=rq(),M=Q.exports=QQ().Stream;M.isDisturbed=G.isDisturbed,M.isErrored=G.isErrored,M.isWritable=G.isWritable,M.isReadable=G.isReadable,M.Readable=ZQ();for(let L of J(Z)){let j=function(...P){if(new.target)throw B();return M.Readable.from(H(N,this,P))};const N=Z[L];X(j,"name",{value:N.name}),X(j,"length",{value:N.length}),X(M.Readable.prototype,L,{value:j,enumerable:!1,configurable:!0,writable:!0})}for(let L of J(Y)){let j=function(...P){if(new.target)throw B();return H(N,this,P)};const N=Y[L];X(j,"name",{value:N.name}),X(j,"length",{value:N.length}),X(M.Readable.prototype,L,{value:j,enumerable:!1,configurable:!0,writable:!0})}M.Writable=YQ(),M.Duplex=vq(),M.Transform=$Q(),M.PassThrough=zQ(),M.pipeline=z;var{addAbortSignal:F}=XQ();M.addAbortSignal=F,M.finished=U,M.destroy=V,M.compose=$,X(M,"promises",{configurable:!0,enumerable:!0,get(){return W}}),X(z,K,{enumerable:!0,get(){return W.pipeline}}),X(U,K,{enumerable:!0,get(){return W.finished}}),M.Stream=M,M._isUint8Array=function L(j){return j instanceof Uint8Array},M._uint8ArrayToBuffer=function L(j){return new Buffer(j.buffer,j.byteOffset,j.byteLength)}}}),MQ=cq({"node_modules/readable-stream/lib/ours/index.js"(q,Q){const X=GQ(),J=WQ(),H=X.Readable.destroy;Q.exports=X,Q.exports._uint8ArrayToBuffer=X._uint8ArrayToBuffer,Q.exports._isUint8Array=X._isUint8Array,Q.exports.isDisturbed=X.isDisturbed,Q.exports.isErrored=X.isErrored,Q.exports.isWritable=X.isWritable,Q.exports.isReadable=X.isReadable,Q.exports.Readable=X.Readable,Q.exports.Writable=X.Writable,Q.exports.Duplex=X.Duplex,Q.exports.Transform=X.Transform,Q.exports.PassThrough=X.PassThrough,Q.exports.addAbortSignal=X.addAbortSignal,Q.exports.finished=X.finished,Q.exports.destroy=X.destroy,Q.exports.destroy=H,Q.exports.pipeline=X.pipeline,Q.exports.compose=X.compose,Q.exports._getNativeReadableStreamPrototype=jQ,Q.exports.NativeWritable=pQ,xq.defineProperty(X,"promises",{configurable:!0,enumerable:!0,get(){return J}}),Q.exports.Stream=X.Stream,Q.exports.default=Q.exports}}),LQ={0:void 0,1:void 0,2:void 0,3:void 0,4:void 0,5:void 0},Tq=YQ(),pQ=class q extends Tq{#q;#Q;#X=!0;_construct;_destroy;_final;constructor(Q,X={}){super(X);this._construct=this.#J,this._destroy=this.#K,this._final=this.#Z,this.#q=Q}#J(Q){this._writableState.constructed=!0,this.constructed=!0,Q()}#H(){if(typeof this.#q==="object")if(typeof this.#q.write==="function")this.#Q=this.#q;else throw new Error("Invalid FileSink");else this.#Q=Bun.file(this.#q).writer()}write(Q,X,J,H=this.#X){if(!H)return this.#X=!1,super.write(Q,X,J);if(!this.#Q)this.#H();var K=this.#Q,Z=K.write(Q);if(Oq(Z))return Z.then(()=>{this.emit("drain"),K.flush(!0)}),!1;if(K.flush(!0),J)J(null,Q.byteLength);return!0}end(Q,X,J,H=this.#X){return super.end(Q,X,J,H)}#K(Q,X){if(this._writableState.destroyed=!0,X)X(Q)}#Z(Q){if(this.#Q)this.#Q.end();if(Q)Q()}ref(){if(!this.#Q)this.#H();this.#Q.ref()}unref(){if(!this.#Q)return;this.#Q.unref()}},PQ=MQ();PQ[Symbol.for("CommonJS")]=0;PQ[Symbol.for("::bunternal::")]={_ReadableFromWeb:KQ};var lQ=PQ,EQ=PQ._uint8ArrayToBuffer,IQ=PQ._isUint8Array,TQ=PQ.isDisturbed,AQ=PQ.isErrored,xQ=PQ.isWritable,OQ=PQ.isReadable,_Q=PQ.Readable,Tq=PQ.Writable,CQ=PQ.Duplex,DQ=PQ.Transform,wQ=PQ.PassThrough,vQ=PQ.addAbortSignal,RQ=PQ.finished,SQ=PQ.destroy,gQ=PQ.pipeline,kQ=PQ.compose,fQ=PQ.Stream,yQ=PQ["eos"]=tq,hQ=PQ._getNativeReadableStreamPrototype,pQ=PQ.NativeWritable,uQ=fQ.promise;export{uQ as promises,gQ as pipeline,xQ as isWritable,OQ as isReadable,AQ as isErrored,TQ as isDisturbed,RQ as finished,yQ as eos,SQ as destroy,lQ as default,kQ as compose,vQ as addAbortSignal,EQ as _uint8ArrayToBuffer,IQ as _isUint8Array,hQ as _getNativeReadableStreamPrototype,Tq as Writable,DQ as Transform,fQ as Stream,_Q as Readable,wQ as PassThrough,pQ as NativeWritable,CQ as Duplex}; diff --git a/src/js/out/modules/node/stream.web.js b/src/js/out/modules/node/stream.web.js index 7eca1802a..bb906418c 100644 --- a/src/js/out/modules/node/stream.web.js +++ b/src/js/out/modules/node/stream.web.js @@ -1 +1 @@ -var{ReadableStream:b,ReadableStreamDefaultController:c,WritableStream:d,WritableStreamDefaultController:f,WritableStreamDefaultWriter:h,TransformStream:j,TransformStreamDefaultController:k,ByteLengthQueuingStrategy:l,CountQueuingStrategy:m,ReadableStreamBYOBReader:p,ReadableStreamBYOBRequest:q,ReadableStreamDefaultReader:s}=globalThis,v={ReadableStream:b,ReadableStreamDefaultController:c,WritableStream:d,WritableStreamDefaultController:f,WritableStreamDefaultWriter:h,TransformStream:j,TransformStreamDefaultController:k,ByteLengthQueuingStrategy:l,CountQueuingStrategy:m,ReadableStreamBYOBReader:p,ReadableStreamBYOBRequest:q,ReadableStreamDefaultReader:s,[Symbol.for("CommonJS")]:0};export{v as default,h as WritableStreamDefaultWriter,f as WritableStreamDefaultController,d as WritableStream,k as TransformStreamDefaultController,j as TransformStream,s as ReadableStreamDefaultReader,c as ReadableStreamDefaultController,q as ReadableStreamBYOBRequest,p as ReadableStreamBYOBReader,b as ReadableStream,m as CountQueuingStrategy,l as ByteLengthQueuingStrategy}; +var{ReadableStream:c,ReadableStreamDefaultController:j,WritableStream:k,WritableStreamDefaultController:p,WritableStreamDefaultWriter:v,TransformStream:w,TransformStreamDefaultController:x,ByteLengthQueuingStrategy:z,CountQueuingStrategy:A,ReadableStreamBYOBReader:E,ReadableStreamBYOBRequest:F,ReadableStreamDefaultReader:G}=globalThis,H={ReadableStream:c,ReadableStreamDefaultController:j,WritableStream:k,WritableStreamDefaultController:p,WritableStreamDefaultWriter:v,TransformStream:w,TransformStreamDefaultController:x,ByteLengthQueuingStrategy:z,CountQueuingStrategy:A,ReadableStreamBYOBReader:E,ReadableStreamBYOBRequest:F,ReadableStreamDefaultReader:G,[Symbol.for("CommonJS")]:0};export{H as default,v as WritableStreamDefaultWriter,p as WritableStreamDefaultController,k as WritableStream,x as TransformStreamDefaultController,w as TransformStream,G as ReadableStreamDefaultReader,j as ReadableStreamDefaultController,F as ReadableStreamBYOBRequest,E as ReadableStreamBYOBReader,c as ReadableStream,A as CountQueuingStrategy,z as ByteLengthQueuingStrategy}; diff --git a/src/node-fallbacks/@vercel_fetch.js b/src/node-fallbacks/@vercel_fetch.js index a8de45222..276b4bc9f 100644 --- a/src/node-fallbacks/@vercel_fetch.js +++ b/src/node-fallbacks/@vercel_fetch.js @@ -1,5 +1,5 @@ // This is just a no-op. Intent is to prevent importing a bunch of stuff that isn't relevant. -module.exports = (wrapper = "Bun" in globalThis ? Bun.fetch : globalThis.fetch) => { +export default (wrapper = "Bun" in globalThis ? Bun.fetch : globalThis.fetch) => { async function vercelFetch(url, opts = {}) { // Convert Object bodies to JSON if they are JS objects if ( diff --git a/src/node-fallbacks/buffer.js b/src/node-fallbacks/buffer.js index 9984aef87..aa0065398 100644 --- a/src/node-fallbacks/buffer.js +++ b/src/node-fallbacks/buffer.js @@ -1 +1,2 @@ export * from "buffer"; +export { Buffer as default } from "buffer"; diff --git a/src/node-fallbacks/console.js b/src/node-fallbacks/console.js index 5cb1dfa10..34cc54b56 100644 --- a/src/node-fallbacks/console.js +++ b/src/node-fallbacks/console.js @@ -1 +1 @@ -module.exports = console; +export default console; diff --git a/src/node-fallbacks/crypto.js b/src/node-fallbacks/crypto.js index 8c83b6c87..7745530da 100644 --- a/src/node-fallbacks/crypto.js +++ b/src/node-fallbacks/crypto.js @@ -1,4 +1,5 @@ export * from "crypto-browserify"; +import * as cryptoBrowserify from "crypto-browserify"; export var DEFAULT_ENCODING = "buffer"; @@ -79,3 +80,13 @@ if (timingSafeEqual) { } export const webcrypto = crypto; + +export default { + ...cryptoBrowserify, + getRandomValues, + randomUUID, + timingSafeEqual, + scryptSync, + scrypt, + webcrypto, +}; diff --git a/src/node-fallbacks/domain.js b/src/node-fallbacks/domain.js index 9fe768097..af37e7059 100644 --- a/src/node-fallbacks/domain.js +++ b/src/node-fallbacks/domain.js @@ -1 +1,3 @@ -export * from "domain-browser"; +import domain from "domain-browser"; +export default domain; +export var { create, createDomain } = domain; diff --git a/src/node-fallbacks/http.js b/src/node-fallbacks/http.js index 3f025710f..4bb5b4a0d 100644 --- a/src/node-fallbacks/http.js +++ b/src/node-fallbacks/http.js @@ -1 +1,13 @@ -export * from "stream-http"; +import http from "stream-http"; +export default http; +export var { + // + request, + get, + ClientRequest, + IncomingMessage, + Agent, + globalAgent, + STATUS_CODES, + METHIDS, +} = http; diff --git a/src/node-fallbacks/https.js b/src/node-fallbacks/https.js index a5f405a5a..d1de96beb 100644 --- a/src/node-fallbacks/https.js +++ b/src/node-fallbacks/https.js @@ -1 +1,2 @@ export * from "https-browserify"; +export * as default from "https-browserify"; diff --git a/src/node-fallbacks/node-fetch.js b/src/node-fallbacks/node-fetch.js index f124e6461..a66d8fc7f 100644 --- a/src/node-fallbacks/node-fetch.js +++ b/src/node-fallbacks/node-fetch.js @@ -70,7 +70,6 @@ export default Object.assign(fetch, { fileFrom, fileFromSync, isRedirect, - [Symbol.for("CommonJS")]: 0, }); export { diff --git a/src/node-fallbacks/os.js b/src/node-fallbacks/os.js index c5bef4cf0..df0a41fd2 100644 --- a/src/node-fallbacks/os.js +++ b/src/node-fallbacks/os.js @@ -1 +1,20 @@ -export * from "os-browserify/browser"; +import os from "os-browserify/browser"; +export default os; +export var { + endianness, + hostname, + loadavg, + uptime, + freemem, + totalmem, + cpus, + type, + release, + arch, + platform, + tmpdir, + EOL, + homedir, + networkInterfaces, + getNetworkInterfaces, +} = os; diff --git a/src/node-fallbacks/package.json b/src/node-fallbacks/package.json index 144f553c0..3d48960c5 100644 --- a/src/node-fallbacks/package.json +++ b/src/node-fallbacks/package.json @@ -5,8 +5,8 @@ "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build-gen": "esbuild --bundle *.js --outdir=bun --format=cjs --platform=browser --external:buffer --external:stream --external:util --external:util/ --external:assert", - "build": "esbuild --bundle *.js --outdir=out --format=cjs --minify --platform=browser" + "build-gen": "esbuild --bundle *.js --outdir=bun --format=esm --platform=browser --external:buffer --external:stream --external:util --external:util/ --external:assert", + "build": "esbuild --bundle *.js --outdir=out --format=esm --minify --platform=browser" }, "author": "", "license": "ISC", diff --git a/src/node-fallbacks/path.js b/src/node-fallbacks/path.js index 558f820cc..a582c6d0f 100644 --- a/src/node-fallbacks/path.js +++ b/src/node-fallbacks/path.js @@ -1 +1,2 @@ export * from "path-browserify"; +export * as default from "path-browserify"; diff --git a/src/node-fallbacks/process.js b/src/node-fallbacks/process.js index 74190ab67..fec4e652f 100644 --- a/src/node-fallbacks/process.js +++ b/src/node-fallbacks/process.js @@ -1 +1,2 @@ export * from "process/browser"; +export * as default from "process/browser"; diff --git a/src/node-fallbacks/querystring.js b/src/node-fallbacks/querystring.js index ad7fd038d..00404cc1b 100644 --- a/src/node-fallbacks/querystring.js +++ b/src/node-fallbacks/querystring.js @@ -1 +1,2 @@ -export * from "querystring-es3"; +export { unescapeBuffer, unescape, escape, stringify, encode, parse, decode } from "querystring-es3"; +export { default } from "querystring-es3"; diff --git a/src/node-fallbacks/stream.js b/src/node-fallbacks/stream.js index 381cbc761..bee941be1 100644 --- a/src/node-fallbacks/stream.js +++ b/src/node-fallbacks/stream.js @@ -1 +1,2 @@ export * from "readable-stream"; +export * as default from "readable-stream"; diff --git a/src/node-fallbacks/string_decoder.js b/src/node-fallbacks/string_decoder.js index 90487c47e..c6fd8a2fd 100644 --- a/src/node-fallbacks/string_decoder.js +++ b/src/node-fallbacks/string_decoder.js @@ -1 +1,2 @@ export * from "string_decoder"; +export * as default from "string_decoder"; diff --git a/src/node-fallbacks/sys.js b/src/node-fallbacks/sys.js index 4b20b6354..99f15c638 100644 --- a/src/node-fallbacks/sys.js +++ b/src/node-fallbacks/sys.js @@ -1 +1,2 @@ export * from "util"; +export * as default from "util"; diff --git a/src/node-fallbacks/timers.js b/src/node-fallbacks/timers.js index a02f00701..c69274eef 100644 --- a/src/node-fallbacks/timers.js +++ b/src/node-fallbacks/timers.js @@ -1 +1,2 @@ export * from "timers-browserify"; +export * as default from "timers-browserify"; diff --git a/src/node-fallbacks/tsconfig.json b/src/node-fallbacks/tsconfig.json index d1c7e7a71..1228b6423 100644 --- a/src/node-fallbacks/tsconfig.json +++ b/src/node-fallbacks/tsconfig.json @@ -12,7 +12,7 @@ "https": ["node_modules/https-browserify"], "os": ["node_modules/os-browserify/browser"], "path": ["node_modules/path-browserify"], - "punycode": ["node_modules/punycode"], + "punycode": ["node_modules/punycode/punycode.es6.js"], "process": ["node_modules/process/browser"], "querystring": ["node_modules/querystring-es3"], "stream": ["node_modules/stream-browserify"], diff --git a/src/node-fallbacks/tty.js b/src/node-fallbacks/tty.js index 49efb472e..727bdc5c6 100644 --- a/src/node-fallbacks/tty.js +++ b/src/node-fallbacks/tty.js @@ -1 +1,2 @@ export * from "tty-browserify"; +export * as default from "tty-browserify"; diff --git a/src/node-fallbacks/util.js b/src/node-fallbacks/util.js index 3bd55da0a..1ad352a2a 100644 --- a/src/node-fallbacks/util.js +++ b/src/node-fallbacks/util.js @@ -4,3 +4,4 @@ const TextEncoder = globalThis.TextEncoder; const TextDecoder = globalThis.TextDecoder; export { TextEncoder, TextDecoder }; +export default { TextEncoder, TextDecoder }; diff --git a/src/node-fallbacks/zlib.js b/src/node-fallbacks/zlib.js index 4af7ab847..093367e29 100644 --- a/src/node-fallbacks/zlib.js +++ b/src/node-fallbacks/zlib.js @@ -1 +1,2 @@ export * from "browserify-zlib"; +export * as default from "browserify-zlib"; diff --git a/src/node_fallbacks.zig b/src/node_fallbacks.zig index 170907e58..51da04be0 100644 --- a/src/node_fallbacks.zig +++ b/src/node_fallbacks.zig @@ -67,7 +67,7 @@ const vercel_fetch_import_path = "/bun-vfs/node_modules/@vercel/fetch/index.js"; const assert_package_json = PackageJSON{ .name = "assert", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("assert@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -76,7 +76,7 @@ const assert_package_json = PackageJSON{ const buffer_package_json = PackageJSON{ .name = "buffer", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("buffer@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -85,7 +85,7 @@ const buffer_package_json = PackageJSON{ const console_package_json = PackageJSON{ .name = "console", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("console@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -94,7 +94,7 @@ const console_package_json = PackageJSON{ const constants_package_json = PackageJSON{ .name = "constants", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("constants@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -103,7 +103,7 @@ const constants_package_json = PackageJSON{ const crypto_package_json = PackageJSON{ .name = "crypto", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("crypto@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -112,7 +112,7 @@ const crypto_package_json = PackageJSON{ const domain_package_json = PackageJSON{ .name = "domain", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("domain@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -121,7 +121,7 @@ const domain_package_json = PackageJSON{ const events_package_json = PackageJSON{ .name = "events", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("events@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -130,7 +130,7 @@ const events_package_json = PackageJSON{ const http_package_json = PackageJSON{ .name = "http", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("http@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -139,7 +139,7 @@ const http_package_json = PackageJSON{ const https_package_json = PackageJSON{ .name = "https", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("https@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -148,7 +148,7 @@ const https_package_json = PackageJSON{ const net_package_json = PackageJSON{ .name = "net", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("net@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -157,7 +157,7 @@ const net_package_json = PackageJSON{ const os_package_json = PackageJSON{ .name = "os", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("os@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -166,7 +166,7 @@ const os_package_json = PackageJSON{ const path_package_json = PackageJSON{ .name = "path", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("path@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -175,7 +175,7 @@ const path_package_json = PackageJSON{ const process_package_json = PackageJSON{ .name = "process", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("process@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -184,7 +184,7 @@ const process_package_json = PackageJSON{ const punycode_package_json = PackageJSON{ .name = "punycode", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("punycode@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -193,7 +193,7 @@ const punycode_package_json = PackageJSON{ const querystring_package_json = PackageJSON{ .name = "querystring", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("querystring@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -202,7 +202,7 @@ const querystring_package_json = PackageJSON{ const stream_package_json = PackageJSON{ .name = "stream", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("stream@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -211,7 +211,7 @@ const stream_package_json = PackageJSON{ const string_decoder_package_json = PackageJSON{ .name = "string_decoder", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = brk: { @setEvalBranchQuota(9999); break :brk @truncate(u32, bun.hash("string_decoder@0.0.0-polyfill")); @@ -225,7 +225,7 @@ const string_decoder_package_json = PackageJSON{ const sys_package_json = PackageJSON{ .name = "sys", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("sys@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -234,7 +234,7 @@ const sys_package_json = PackageJSON{ const timers_package_json = PackageJSON{ .name = "timers", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("timers@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -243,7 +243,7 @@ const timers_package_json = PackageJSON{ const tty_package_json = PackageJSON{ .name = "tty", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("tty@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -252,7 +252,7 @@ const tty_package_json = PackageJSON{ const url_package_json = PackageJSON{ .name = "url", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("url@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -261,7 +261,7 @@ const url_package_json = PackageJSON{ const util_package_json = PackageJSON{ .name = "util", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("util@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -270,7 +270,7 @@ const util_package_json = PackageJSON{ const zlib_package_json = PackageJSON{ .name = "zlib", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("zlib@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -280,7 +280,7 @@ const zlib_package_json = PackageJSON{ const node_fetch_package_json = PackageJSON{ .name = "node-fetch", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("node-fetch@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -289,7 +289,7 @@ const node_fetch_package_json = PackageJSON{ const isomorphic_fetch_package_json = PackageJSON{ .name = "isomorphic-fetch", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("isomorphic-fetch@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -298,7 +298,7 @@ const isomorphic_fetch_package_json = PackageJSON{ const supports_color_package_json = PackageJSON{ .name = "supports-color", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("supports-color@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, @@ -308,7 +308,7 @@ const supports_color_package_json = PackageJSON{ const vercel_fetch_package_json = PackageJSON{ .name = "@vercel/fetch", .version = "0.0.0-polyfill", - .module_type = .cjs, + .module_type = .esm, .hash = @truncate(u32, bun.hash("@vercel/fetch@0.0.0-polyfill")), .main_fields = undefined, .browser_map = undefined, diff --git a/test/js/node/fs/node-fetch.test.js b/test/js/node/fs/node-fetch.test.js index 11c5e0ed3..33af3252d 100644 --- a/test/js/node/fs/node-fetch.test.js +++ b/test/js/node/fs/node-fetch.test.js @@ -1,4 +1,4 @@ -import { fetch, Response, Request, Headers } from "node-fetch"; +import fetch2, { fetch, Response, Request, Headers } from "node-fetch"; import { test, expect } from "bun:test"; @@ -19,3 +19,15 @@ test("node-fetch fetches", async () => { expect(await fetch("http://" + server.hostname + ":" + server.port)).toBeInstanceOf(Response); server.stop(true); }); + +test("node-fetch.default fetches", async () => { + const server = Bun.serve({ + port: 0, + fetch(req, server) { + server.stop(); + return new Response(); + }, + }); + expect(await fetch2("http://" + server.hostname + ":" + server.port)).toBeInstanceOf(Response); + server.stop(true); +}); |