@volter/twin-sentry 0.1.5 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -243,7 +243,7 @@ You might need to use a local HTTP server (instead of file://): https://react.de
|
|
|
243
243
|
`)}}),Xn=$$(($)=>{var I=$;I.der=iN(),I.pem=_n()}),oJ=$$(($)=>{var I=$;I.bignum=ru(),I.define=au().define,I.base=cJ(),I.constants=mN(),I.decoders=In(),I.encoders=Xn()}),Gn=$$(($,I)=>{var G=oJ(),Z=G.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),_=G.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),J=G.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),Y=G.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(J),this.key("subjectPublicKey").bitstr())}),W=G.define("RelativeDistinguishedName",function(){this.setof(_)}),R=G.define("RDNSequence",function(){this.seqof(W)}),M=G.define("Name",function(){this.choice({rdnSequence:this.use(R)})}),E=G.define("Validity",function(){this.seq().obj(this.key("notBefore").use(Z),this.key("notAfter").use(Z))}),T=G.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),S=G.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(J),this.key("issuer").use(M),this.key("validity").use(E),this.key("subject").use(M),this.key("subjectPublicKeyInfo").use(Y),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(T).optional())}),N=G.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(S),this.key("signatureAlgorithm").use(J),this.key("signatureValue").bitstr())});I.exports=N}),Yn=$$(($)=>{var I=oJ();$.certificate=Gn();var G=I.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=G;var Z=I.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});$.RSAPublicKey=Z;var _=I.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())}),J=I.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(_),this.key("subjectPublicKey").bitstr())});$.PublicKey=J;var Y=I.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(_),this.key("subjectPrivateKey").octstr())});$.PrivateKey=Y;var W=I.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=W;var R=I.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=R,$.DSAparam=I.define("DSAparam",function(){this.int()});var M=I.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),E=I.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(M),this.key("publicKey").optional().explicit(1).bitstr())});$.ECPrivateKey=E,$.signature=I.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),Jn=$$(($,I)=>{I.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"}}),Qn=$$(($,I)=>{var G=iU().Buffer,Z=g4().Transform,_=B6();function J(M){Z.call(this),this._block=G.allocUnsafe(M),this._blockSize=M,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}_(J,Z),J.prototype._transform=function(M,E,T){var S=null;try{this.update(M,E)}catch(N){S=N}T(S)},J.prototype._flush=function(M){var E=null;try{this.push(this.digest())}catch(T){E=T}M(E)};var Y=typeof Uint8Array<"u",W=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(G.prototype instanceof Uint8Array||G.TYPED_ARRAY_SUPPORT);function R(M,E){if(M instanceof G)return M;if(typeof M==="string")return G.from(M,E);if(W&&ArrayBuffer.isView(M)){if(M.byteLength===0)return G.alloc(0);var T=G.from(M.buffer,M.byteOffset,M.byteLength);if(T.byteLength===M.byteLength)return T}if(Y&&M instanceof Uint8Array)return G.from(M);if(G.isBuffer(M)&&M.constructor&&typeof M.constructor.isBuffer==="function"&&M.constructor.isBuffer(M))return G.from(M);throw TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}J.prototype.update=function(M,E){if(this._finalized)throw Error("Digest already called");M=R(M,E);var T=this._block,S=0;while(this._blockOffset+M.length-S>=this._blockSize){for(var N=this._blockOffset;N<this._blockSize;)T[N++]=M[S++];this._update(),this._blockOffset=0}while(S<M.length)T[this._blockOffset++]=M[S++];for(var B=0,x=M.length*8;x>0;++B)if(this._length[B]+=x,x=this._length[B]/4294967296|0,x>0)this._length[B]-=4294967296*x;return this},J.prototype._update=function(){throw Error("_update is not implemented")},J.prototype.digest=function(M){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var E=this._digest();if(M!==void 0)E=E.toString(M);this._block.fill(0),this._blockOffset=0;for(var T=0;T<4;++T)this._length[T]=0;return E},J.prototype._digest=function(){throw Error("_digest is not implemented")},I.exports=J}),zn=$$(($,I)=>{var G=B6(),Z=Qn(),_=iU().Buffer,J=Array(16);function Y(){Z.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}G(Y,Z),Y.prototype._update=function(){var S=J;for(var N=0;N<16;++N)S[N]=this._block.readInt32LE(N*4);var B=this._a,x=this._b,w=this._c,y=this._d;B=R(B,x,w,y,S[0],3614090360,7),y=R(y,B,x,w,S[1],3905402710,12),w=R(w,y,B,x,S[2],606105819,17),x=R(x,w,y,B,S[3],3250441966,22),B=R(B,x,w,y,S[4],4118548399,7),y=R(y,B,x,w,S[5],1200080426,12),w=R(w,y,B,x,S[6],2821735955,17),x=R(x,w,y,B,S[7],4249261313,22),B=R(B,x,w,y,S[8],1770035416,7),y=R(y,B,x,w,S[9],2336552879,12),w=R(w,y,B,x,S[10],4294925233,17),x=R(x,w,y,B,S[11],2304563134,22),B=R(B,x,w,y,S[12],1804603682,7),y=R(y,B,x,w,S[13],4254626195,12),w=R(w,y,B,x,S[14],2792965006,17),x=R(x,w,y,B,S[15],1236535329,22),B=M(B,x,w,y,S[1],4129170786,5),y=M(y,B,x,w,S[6],3225465664,9),w=M(w,y,B,x,S[11],643717713,14),x=M(x,w,y,B,S[0],3921069994,20),B=M(B,x,w,y,S[5],3593408605,5),y=M(y,B,x,w,S[10],38016083,9),w=M(w,y,B,x,S[15],3634488961,14),x=M(x,w,y,B,S[4],3889429448,20),B=M(B,x,w,y,S[9],568446438,5),y=M(y,B,x,w,S[14],3275163606,9),w=M(w,y,B,x,S[3],4107603335,14),x=M(x,w,y,B,S[8],1163531501,20),B=M(B,x,w,y,S[13],2850285829,5),y=M(y,B,x,w,S[2],4243563512,9),w=M(w,y,B,x,S[7],1735328473,14),x=M(x,w,y,B,S[12],2368359562,20),B=E(B,x,w,y,S[5],4294588738,4),y=E(y,B,x,w,S[8],2272392833,11),w=E(w,y,B,x,S[11],1839030562,16),x=E(x,w,y,B,S[14],4259657740,23),B=E(B,x,w,y,S[1],2763975236,4),y=E(y,B,x,w,S[4],1272893353,11),w=E(w,y,B,x,S[7],4139469664,16),x=E(x,w,y,B,S[10],3200236656,23),B=E(B,x,w,y,S[13],681279174,4),y=E(y,B,x,w,S[0],3936430074,11),w=E(w,y,B,x,S[3],3572445317,16),x=E(x,w,y,B,S[6],76029189,23),B=E(B,x,w,y,S[9],3654602809,4),y=E(y,B,x,w,S[12],3873151461,11),w=E(w,y,B,x,S[15],530742520,16),x=E(x,w,y,B,S[2],3299628645,23),B=T(B,x,w,y,S[0],4096336452,6),y=T(y,B,x,w,S[7],1126891415,10),w=T(w,y,B,x,S[14],2878612391,15),x=T(x,w,y,B,S[5],4237533241,21),B=T(B,x,w,y,S[12],1700485571,6),y=T(y,B,x,w,S[3],2399980690,10),w=T(w,y,B,x,S[10],4293915773,15),x=T(x,w,y,B,S[1],2240044497,21),B=T(B,x,w,y,S[8],1873313359,6),y=T(y,B,x,w,S[15],4264355552,10),w=T(w,y,B,x,S[6],2734768916,15),x=T(x,w,y,B,S[13],1309151649,21),B=T(B,x,w,y,S[4],4149444226,6),y=T(y,B,x,w,S[11],3174756917,10),w=T(w,y,B,x,S[2],718787259,15),x=T(x,w,y,B,S[9],3951481745,21),this._a=this._a+B|0,this._b=this._b+x|0,this._c=this._c+w|0,this._d=this._d+y|0},Y.prototype._digest=function(){if(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 S=_.allocUnsafe(16);return S.writeInt32LE(this._a,0),S.writeInt32LE(this._b,4),S.writeInt32LE(this._c,8),S.writeInt32LE(this._d,12),S};function W(S,N){return S<<N|S>>>32-N}function R(S,N,B,x,w,y,g){return W(S+(N&B|~N&x)+w+y|0,g)+N|0}function M(S,N,B,x,w,y,g){return W(S+(N&x|B&~x)+w+y|0,g)+N|0}function E(S,N,B,x,w,y,g){return W(S+(N^B^x)+w+y|0,g)+N|0}function T(S,N,B,x,w,y,g){return W(S+(B^(N|~x))+w+y|0,g)+N|0}I.exports=Y}),Zn=$$(($,I)=>{var G=iU().Buffer,Z=zn();function _(J,Y,W,R){if(!G.isBuffer(J))J=G.from(J,"binary");if(Y){if(!G.isBuffer(Y))Y=G.from(Y,"binary");if(Y.length!==8)throw RangeError("salt should be Buffer with 8 byte length")}var M=W/8,E=G.alloc(M),T=G.alloc(R||0),S=G.alloc(0);while(M>0||R>0){var N=new Z;if(N.update(S),N.update(J),Y)N.update(Y);S=N.digest();var B=0;if(M>0){var x=E.length-M;B=Math.min(M,S.length),S.copy(E,x,0,B),M-=B}if(B<S.length&&R>0){var w=T.length-R,y=Math.min(R,S.length-B);S.copy(T,w,B,B+y),R-=y}}return S.fill(0),{key:E,iv:T}}I.exports=_}),oN=$$(($)=>{var I=(d1(),P$(k6));$.createCipher=$.Cipher=I.createCipher,$.createCipheriv=$.Cipheriv=I.createCipheriv,$.createDecipher=$.Decipher=I.createDecipher,$.createDecipheriv=$.Decipheriv=I.createDecipheriv,$.listCiphers=$.getCiphers=I.getCiphers}),On=$$(($,I)=>{var G=/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,_=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,J=Zn(),Y=oN(),W=iU().Buffer;I.exports=function(R,M){var E=R.toString(),T=E.match(G),S;if(!T){var N=E.match(_);S=W.from(N[2].replace(/[\r\n]/g,""),"base64")}else{var B="aes"+T[1],x=W.from(T[2],"hex"),w=W.from(T[3].replace(/[\r\n]/g,""),"base64"),y=J(M,x.slice(0,8),parseInt(T[1],10)).key,g=[],b=Y.createDecipheriv(B,y,x);g.push(b.update(w)),g.push(b.final()),S=W.concat(g)}var l=E.match(Z)[1];return{tag:l,data:S}}}),tN=$$(($,I)=>{var G=Yn(),Z=Jn(),_=On(),J=oN(),Y=bN().pbkdf2Sync,W=iU().Buffer;function R(E,T){var S=E.algorithm.decrypt.kde.kdeparams.salt,N=parseInt(E.algorithm.decrypt.kde.kdeparams.iters.toString(),10),B=Z[E.algorithm.decrypt.cipher.algo.join(".")],x=E.algorithm.decrypt.cipher.iv,w=E.subjectPrivateKey,y=parseInt(B.split("-")[1],10)/8,g=Y(T,S,N,y,"sha1"),b=J.createDecipheriv(B,g,x),l=[];return l.push(b.update(w)),l.push(b.final()),W.concat(l)}function M(E){var T;if(typeof E==="object"&&!W.isBuffer(E))T=E.passphrase,E=E.key;if(typeof E==="string")E=W.from(E);var S=_(E,T),N=S.tag,B=S.data,x,w;switch(N){case"CERTIFICATE":w=G.certificate.decode(B,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":if(!w)w=G.PublicKey.decode(B,"der");switch(x=w.algorithm.algorithm.join("."),x){case"1.2.840.113549.1.1.1":return G.RSAPublicKey.decode(w.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return w.subjectPrivateKey=w.subjectPublicKey,{type:"ec",data:w};case"1.2.840.10040.4.1":return w.algorithm.params.pub_key=G.DSAparam.decode(w.subjectPublicKey.data,"der"),{type:"dsa",data:w.algorithm.params};default:throw Error("unknown key id "+x)}case"ENCRYPTED PRIVATE KEY":B=G.EncryptedPrivateKey.decode(B,"der"),B=R(B,T);case"PRIVATE KEY":switch(w=G.PrivateKey.decode(B,"der"),x=w.algorithm.algorithm.join("."),x){case"1.2.840.113549.1.1.1":return G.RSAPrivateKey.decode(w.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:w.algorithm.curve,privateKey:G.ECPrivateKey.decode(w.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return w.algorithm.params.priv_key=G.DSAparam.decode(w.subjectPrivateKey,"der"),{type:"dsa",params:w.algorithm.params};default:throw Error("unknown key id "+x)}case"RSA PUBLIC KEY":return G.RSAPublicKey.decode(B,"der");case"RSA PRIVATE KEY":return G.RSAPrivateKey.decode(B,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:G.DSAPrivateKey.decode(B,"der")};case"EC PRIVATE KEY":return B=G.ECPrivateKey.decode(B,"der"),{curve:B.parameters.value,privateKey:B.privateKey};default:throw Error("unknown key type "+N)}}M.signature=G.signature,I.exports=M}),rN=$$(($,I)=>{var G=xZ(),Z=iU().Buffer;I.exports=function(J,Y){var W=Z.alloc(0),R=0,M;while(W.length<Y)M=_(R++),W=Z.concat([W,G("sha1").update(J).update(M).digest()]);return W.slice(0,Y)};function _(J){var Y=Z.allocUnsafe(4);return Y.writeUInt32BE(J,0),Y}}),aN=$$(($,I)=>{I.exports=function(G,Z){var _=G.length,J=-1;while(++J<_)G[J]^=Z[J];return G}}),QW=$$(($,I)=>{(function(G,Z){function _(Q,D){if(!Q)throw Error(D||"Assertion failed")}function J(Q,D){Q.super_=D;var F=function(){};F.prototype=D.prototype,Q.prototype=new F,Q.prototype.constructor=Q}function Y(Q,D,F){if(Y.isBN(Q))return Q;if(this.negative=0,this.words=null,this.length=0,this.red=null,Q!==null){if(D==="le"||D==="be")F=D,D=10;this._init(Q||0,D||10,F||"be")}}if(typeof G==="object")G.exports=Y;else Z.BN=Y;Y.BN=Y,Y.wordSize=26;var W;try{if(typeof window<"u"&&typeof window.Buffer<"u")W=window.Buffer;else W=(u1(),P$(h1)).Buffer}catch(Q){}Y.isBN=function(Q){if(Q instanceof Y)return!0;return Q!==null&&typeof Q==="object"&&Q.constructor.wordSize===Y.wordSize&&Array.isArray(Q.words)},Y.max=function(Q,D){if(Q.cmp(D)>0)return Q;return D},Y.min=function(Q,D){if(Q.cmp(D)<0)return Q;return D},Y.prototype._init=function(Q,D,F){if(typeof Q==="number")return this._initNumber(Q,D,F);if(typeof Q==="object")return this._initArray(Q,D,F);if(D==="hex")D=16;_(D===(D|0)&&D>=2&&D<=36),Q=Q.toString().replace(/\s+/g,"");var L=0;if(Q[0]==="-")L++,this.negative=1;if(L<Q.length){if(D===16)this._parseHex(Q,L,F);else if(this._parseBase(Q,D,L),F==="le")this._initArray(this.toArray(),D,F)}},Y.prototype._initNumber=function(Q,D,F){if(Q<0)this.negative=1,Q=-Q;if(Q<67108864)this.words=[Q&67108863],this.length=1;else if(Q<4503599627370496)this.words=[Q&67108863,Q/67108864&67108863],this.length=2;else _(Q<9007199254740992),this.words=[Q&67108863,Q/67108864&67108863,1],this.length=3;if(F!=="le")return;this._initArray(this.toArray(),D,F)},Y.prototype._initArray=function(Q,D,F){if(_(typeof Q.length==="number"),Q.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Q.length/3),this.words=Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var H,v,q=0;if(F==="be"){for(L=Q.length-1,H=0;L>=0;L-=3)if(v=Q[L]|Q[L-1]<<8|Q[L-2]<<16,this.words[H]|=v<<q&67108863,this.words[H+1]=v>>>26-q&67108863,q+=24,q>=26)q-=26,H++}else if(F==="le"){for(L=0,H=0;L<Q.length;L+=3)if(v=Q[L]|Q[L+1]<<8|Q[L+2]<<16,this.words[H]|=v<<q&67108863,this.words[H+1]=v>>>26-q&67108863,q+=24,q>=26)q-=26,H++}return this.strip()};function R(Q,D){var F=Q.charCodeAt(D);if(F>=65&&F<=70)return F-55;else if(F>=97&&F<=102)return F-87;else return F-48&15}function M(Q,D,F){var L=R(Q,F);if(F-1>=D)L|=R(Q,F-1)<<4;return L}Y.prototype._parseHex=function(Q,D,F){this.length=Math.ceil((Q.length-D)/6),this.words=Array(this.length);for(var L=0;L<this.length;L++)this.words[L]=0;var H=0,v=0,q;if(F==="be")for(L=Q.length-1;L>=D;L-=2)if(q=M(Q,D,L)<<H,this.words[v]|=q&67108863,H>=18)H-=18,v+=1,this.words[v]|=q>>>26;else H+=8;else{var V=Q.length-D;for(L=V%2===0?D+1:D;L<Q.length;L+=2)if(q=M(Q,D,L)<<H,this.words[v]|=q&67108863,H>=18)H-=18,v+=1,this.words[v]|=q>>>26;else H+=8}this.strip()};function E(Q,D,F,L){var H=0,v=Math.min(Q.length,F);for(var q=D;q<v;q++){var V=Q.charCodeAt(q)-48;if(H*=L,V>=49)H+=V-49+10;else if(V>=17)H+=V-17+10;else H+=V}return H}Y.prototype._parseBase=function(Q,D,F){this.words=[0],this.length=1;for(var L=0,H=1;H<=67108863;H*=D)L++;L--,H=H/D|0;var v=Q.length-F,q=v%L,V=Math.min(v,v-q)+F,O=0;for(var A=F;A<V;A+=L)if(O=E(Q,A,A+L,D),this.imuln(H),this.words[0]+O<67108864)this.words[0]+=O;else this._iaddn(O);if(q!==0){var k=1;O=E(Q,A,Q.length,D);for(A=0;A<q;A++)k*=D;if(this.imuln(k),this.words[0]+O<67108864)this.words[0]+=O;else this._iaddn(O)}this.strip()},Y.prototype.copy=function(Q){Q.words=Array(this.length);for(var D=0;D<this.length;D++)Q.words[D]=this.words[D];Q.length=this.length,Q.negative=this.negative,Q.red=this.red},Y.prototype.clone=function(){var Q=new Y(null);return this.copy(Q),Q},Y.prototype._expand=function(Q){while(this.length<Q)this.words[this.length++]=0;return this},Y.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},Y.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},Y.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var T=["","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"],S=[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],N=[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];if(Y.prototype.toString=function(Q,D){Q=Q||10,D=D|0||1;var F;if(Q===16||Q==="hex"){F="";var L=0,H=0;for(var v=0;v<this.length;v++){var q=this.words[v],V=((q<<L|H)&16777215).toString(16);if(H=q>>>24-L&16777215,L+=2,L>=26)L-=26,v--;if(H!==0||v!==this.length-1)F=T[6-V.length]+V+F;else F=V+F}if(H!==0)F=H.toString(16)+F;while(F.length%D!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}if(Q===(Q|0)&&Q>=2&&Q<=36){var O=S[Q],A=N[Q];F="";var k=this.clone();k.negative=0;while(!k.isZero()){var j=k.modn(A).toString(Q);if(k=k.idivn(A),!k.isZero())F=T[O-j.length]+j+F;else F=j+F}if(this.isZero())F="0"+F;while(F.length%D!==0)F="0"+F;if(this.negative!==0)F="-"+F;return F}_(!1,"Base should be between 2 and 36")},Y.prototype.toNumber=function(){var Q=this.words[0];if(this.length===2)Q+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)Q+=4503599627370496+this.words[1]*67108864;else if(this.length>2)_(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-Q:Q},Y.prototype.toJSON=function(){return this.toString(16)},Y.prototype.toBuffer=function(Q,D){return _(typeof W<"u"),this.toArrayLike(W,Q,D)},Y.prototype.toArray=function(Q,D){return this.toArrayLike(Array,Q,D)},Y.prototype.toArrayLike=function(Q,D,F){var L=this.byteLength(),H=F||Math.max(1,L);_(L<=H,"byte array longer than desired length"),_(H>0,"Requested array length <= 0"),this.strip();var v=D==="le",q=new Q(H),V,O,A=this.clone();if(!v){for(O=0;O<H-L;O++)q[O]=0;for(O=0;!A.isZero();O++)V=A.andln(255),A.iushrn(8),q[H-O-1]=V}else{for(O=0;!A.isZero();O++)V=A.andln(255),A.iushrn(8),q[O]=V;for(;O<H;O++)q[O]=0}return q},Math.clz32)Y.prototype._countBits=function(Q){return 32-Math.clz32(Q)};else Y.prototype._countBits=function(Q){var D=Q,F=0;if(D>=4096)F+=13,D>>>=13;if(D>=64)F+=7,D>>>=7;if(D>=8)F+=4,D>>>=4;if(D>=2)F+=2,D>>>=2;return F+D};Y.prototype._zeroBits=function(Q){if(Q===0)return 26;var D=Q,F=0;if((D&8191)===0)F+=13,D>>>=13;if((D&127)===0)F+=7,D>>>=7;if((D&15)===0)F+=4,D>>>=4;if((D&3)===0)F+=2,D>>>=2;if((D&1)===0)F++;return F},Y.prototype.bitLength=function(){var Q=this.words[this.length-1],D=this._countBits(Q);return(this.length-1)*26+D};function B(Q){var D=Array(Q.bitLength());for(var F=0;F<D.length;F++){var L=F/26|0,H=F%26;D[F]=(Q.words[L]&1<<H)>>>H}return D}Y.prototype.zeroBits=function(){if(this.isZero())return 0;var Q=0;for(var D=0;D<this.length;D++){var F=this._zeroBits(this.words[D]);if(Q+=F,F!==26)break}return Q},Y.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Y.prototype.toTwos=function(Q){if(this.negative!==0)return this.abs().inotn(Q).iaddn(1);return this.clone()},Y.prototype.fromTwos=function(Q){if(this.testn(Q-1))return this.notn(Q).iaddn(1).ineg();return this.clone()},Y.prototype.isNeg=function(){return this.negative!==0},Y.prototype.neg=function(){return this.clone().ineg()},Y.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},Y.prototype.iuor=function(Q){while(this.length<Q.length)this.words[this.length++]=0;for(var D=0;D<Q.length;D++)this.words[D]=this.words[D]|Q.words[D];return this.strip()},Y.prototype.ior=function(Q){return _((this.negative|Q.negative)===0),this.iuor(Q)},Y.prototype.or=function(Q){if(this.length>Q.length)return this.clone().ior(Q);return Q.clone().ior(this)},Y.prototype.uor=function(Q){if(this.length>Q.length)return this.clone().iuor(Q);return Q.clone().iuor(this)},Y.prototype.iuand=function(Q){var D;if(this.length>Q.length)D=Q;else D=this;for(var F=0;F<D.length;F++)this.words[F]=this.words[F]&Q.words[F];return this.length=D.length,this.strip()},Y.prototype.iand=function(Q){return _((this.negative|Q.negative)===0),this.iuand(Q)},Y.prototype.and=function(Q){if(this.length>Q.length)return this.clone().iand(Q);return Q.clone().iand(this)},Y.prototype.uand=function(Q){if(this.length>Q.length)return this.clone().iuand(Q);return Q.clone().iuand(this)},Y.prototype.iuxor=function(Q){var D,F;if(this.length>Q.length)D=this,F=Q;else D=Q,F=this;for(var L=0;L<F.length;L++)this.words[L]=D.words[L]^F.words[L];if(this!==D)for(;L<D.length;L++)this.words[L]=D.words[L];return this.length=D.length,this.strip()},Y.prototype.ixor=function(Q){return _((this.negative|Q.negative)===0),this.iuxor(Q)},Y.prototype.xor=function(Q){if(this.length>Q.length)return this.clone().ixor(Q);return Q.clone().ixor(this)},Y.prototype.uxor=function(Q){if(this.length>Q.length)return this.clone().iuxor(Q);return Q.clone().iuxor(this)},Y.prototype.inotn=function(Q){_(typeof Q==="number"&&Q>=0);var D=Math.ceil(Q/26)|0,F=Q%26;if(this._expand(D),F>0)D--;for(var L=0;L<D;L++)this.words[L]=~this.words[L]&67108863;if(F>0)this.words[L]=~this.words[L]&67108863>>26-F;return this.strip()},Y.prototype.notn=function(Q){return this.clone().inotn(Q)},Y.prototype.setn=function(Q,D){_(typeof Q==="number"&&Q>=0);var F=Q/26|0,L=Q%26;if(this._expand(F+1),D)this.words[F]=this.words[F]|1<<L;else this.words[F]=this.words[F]&~(1<<L);return this.strip()},Y.prototype.iadd=function(Q){var D;if(this.negative!==0&&Q.negative===0)return this.negative=0,D=this.isub(Q),this.negative^=1,this._normSign();else if(this.negative===0&&Q.negative!==0)return Q.negative=0,D=this.isub(Q),Q.negative=1,D._normSign();var F,L;if(this.length>Q.length)F=this,L=Q;else F=Q,L=this;var H=0;for(var v=0;v<L.length;v++)D=(F.words[v]|0)+(L.words[v]|0)+H,this.words[v]=D&67108863,H=D>>>26;for(;H!==0&&v<F.length;v++)D=(F.words[v]|0)+H,this.words[v]=D&67108863,H=D>>>26;if(this.length=F.length,H!==0)this.words[this.length]=H,this.length++;else if(F!==this)for(;v<F.length;v++)this.words[v]=F.words[v];return this},Y.prototype.add=function(Q){var D;if(Q.negative!==0&&this.negative===0)return Q.negative=0,D=this.sub(Q),Q.negative^=1,D;else if(Q.negative===0&&this.negative!==0)return this.negative=0,D=Q.sub(this),this.negative=1,D;if(this.length>Q.length)return this.clone().iadd(Q);return Q.clone().iadd(this)},Y.prototype.isub=function(Q){if(Q.negative!==0){Q.negative=0;var D=this.iadd(Q);return Q.negative=1,D._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Q),this.negative=1,this._normSign();var F=this.cmp(Q);if(F===0)return this.negative=0,this.length=1,this.words[0]=0,this;var L,H;if(F>0)L=this,H=Q;else L=Q,H=this;var v=0;for(var q=0;q<H.length;q++)D=(L.words[q]|0)-(H.words[q]|0)+v,v=D>>26,this.words[q]=D&67108863;for(;v!==0&&q<L.length;q++)D=(L.words[q]|0)+v,v=D>>26,this.words[q]=D&67108863;if(v===0&&q<L.length&&L!==this)for(;q<L.length;q++)this.words[q]=L.words[q];if(this.length=Math.max(this.length,q),L!==this)this.negative=1;return this.strip()},Y.prototype.sub=function(Q){return this.clone().isub(Q)};function x(Q,D,F){F.negative=D.negative^Q.negative;var L=Q.length+D.length|0;F.length=L,L=L-1|0;var H=Q.words[0]|0,v=D.words[0]|0,q=H*v,V=q&67108863,O=q/67108864|0;F.words[0]=V;for(var A=1;A<L;A++){var k=O>>>26,j=O&67108863,h=Math.min(A,D.length-1);for(var a=Math.max(0,A-Q.length+1);a<=h;a++){var J0=A-a|0;H=Q.words[J0]|0,v=D.words[a]|0,q=H*v+j,k+=q/67108864|0,j=q&67108863}F.words[A]=j|0,O=k|0}if(O!==0)F.words[A]=O|0;else F.length--;return F.strip()}var w=function(Q,D,F){var L=Q.words,H=D.words,v=F.words,q=0,V,O,A,k=L[0]|0,j=k&8191,h=k>>>13,a=L[1]|0,J0=a&8191,K0=a>>>13,O0=L[2]|0,d=O0&8191,m=O0>>>13,r=L[3]|0,Y0=r&8191,W0=r>>>13,I0=L[4]|0,c=I0&8191,s=I0>>>13,S0=L[5]|0,M0=S0&8191,z0=S0>>>13,c0=L[6]|0,F0=c0&8191,q0=c0>>>13,s0=L[7]|0,k0=s0&8191,n0=s0>>>13,M$=L[8]|0,T0=M$&8191,P0=M$>>>13,X$=L[9]|0,p0=X$&8191,l0=X$>>>13,L0=H[0]|0,N0=L0&8191,B0=L0>>>13,Y$=H[1]|0,u=Y$&8191,_0=Y$>>>13,o=H[2]|0,R0=o&8191,x0=o>>>13,p=H[3]|0,A0=p&8191,v0=p>>>13,X0=H[4]|0,H0=X0&8191,C0=X0>>>13,H$=H[5]|0,d0=H$&8191,e=H$>>>13,E0=H[6]|0,b0=E0&8191,f0=E0>>>13,z$=H[7]|0,a0=z$&8191,U$=z$>>>13,c$=H[8]|0,D$=c$&8191,L$=c$>>>13,B$=H[9]|0,Z$=B$&8191,I$=B$>>>13;F.negative=Q.negative^D.negative,F.length=19,V=Math.imul(j,N0),O=Math.imul(j,B0),O=O+Math.imul(h,N0)|0,A=Math.imul(h,B0);var I1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(I1>>>26)|0,I1&=67108863,V=Math.imul(J0,N0),O=Math.imul(J0,B0),O=O+Math.imul(K0,N0)|0,A=Math.imul(K0,B0),V=V+Math.imul(j,u)|0,O=O+Math.imul(j,_0)|0,O=O+Math.imul(h,u)|0,A=A+Math.imul(h,_0)|0;var C$=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(C$>>>26)|0,C$&=67108863,V=Math.imul(d,N0),O=Math.imul(d,B0),O=O+Math.imul(m,N0)|0,A=Math.imul(m,B0),V=V+Math.imul(J0,u)|0,O=O+Math.imul(J0,_0)|0,O=O+Math.imul(K0,u)|0,A=A+Math.imul(K0,_0)|0,V=V+Math.imul(j,R0)|0,O=O+Math.imul(j,x0)|0,O=O+Math.imul(h,R0)|0,A=A+Math.imul(h,x0)|0;var g$=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(g$>>>26)|0,g$&=67108863,V=Math.imul(Y0,N0),O=Math.imul(Y0,B0),O=O+Math.imul(W0,N0)|0,A=Math.imul(W0,B0),V=V+Math.imul(d,u)|0,O=O+Math.imul(d,_0)|0,O=O+Math.imul(m,u)|0,A=A+Math.imul(m,_0)|0,V=V+Math.imul(J0,R0)|0,O=O+Math.imul(J0,x0)|0,O=O+Math.imul(K0,R0)|0,A=A+Math.imul(K0,x0)|0,V=V+Math.imul(j,A0)|0,O=O+Math.imul(j,v0)|0,O=O+Math.imul(h,A0)|0,A=A+Math.imul(h,v0)|0;var z1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(z1>>>26)|0,z1&=67108863,V=Math.imul(c,N0),O=Math.imul(c,B0),O=O+Math.imul(s,N0)|0,A=Math.imul(s,B0),V=V+Math.imul(Y0,u)|0,O=O+Math.imul(Y0,_0)|0,O=O+Math.imul(W0,u)|0,A=A+Math.imul(W0,_0)|0,V=V+Math.imul(d,R0)|0,O=O+Math.imul(d,x0)|0,O=O+Math.imul(m,R0)|0,A=A+Math.imul(m,x0)|0,V=V+Math.imul(J0,A0)|0,O=O+Math.imul(J0,v0)|0,O=O+Math.imul(K0,A0)|0,A=A+Math.imul(K0,v0)|0,V=V+Math.imul(j,H0)|0,O=O+Math.imul(j,C0)|0,O=O+Math.imul(h,H0)|0,A=A+Math.imul(h,C0)|0;var U1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(U1>>>26)|0,U1&=67108863,V=Math.imul(M0,N0),O=Math.imul(M0,B0),O=O+Math.imul(z0,N0)|0,A=Math.imul(z0,B0),V=V+Math.imul(c,u)|0,O=O+Math.imul(c,_0)|0,O=O+Math.imul(s,u)|0,A=A+Math.imul(s,_0)|0,V=V+Math.imul(Y0,R0)|0,O=O+Math.imul(Y0,x0)|0,O=O+Math.imul(W0,R0)|0,A=A+Math.imul(W0,x0)|0,V=V+Math.imul(d,A0)|0,O=O+Math.imul(d,v0)|0,O=O+Math.imul(m,A0)|0,A=A+Math.imul(m,v0)|0,V=V+Math.imul(J0,H0)|0,O=O+Math.imul(J0,C0)|0,O=O+Math.imul(K0,H0)|0,A=A+Math.imul(K0,C0)|0,V=V+Math.imul(j,d0)|0,O=O+Math.imul(j,e)|0,O=O+Math.imul(h,d0)|0,A=A+Math.imul(h,e)|0;var o1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(o1>>>26)|0,o1&=67108863,V=Math.imul(F0,N0),O=Math.imul(F0,B0),O=O+Math.imul(q0,N0)|0,A=Math.imul(q0,B0),V=V+Math.imul(M0,u)|0,O=O+Math.imul(M0,_0)|0,O=O+Math.imul(z0,u)|0,A=A+Math.imul(z0,_0)|0,V=V+Math.imul(c,R0)|0,O=O+Math.imul(c,x0)|0,O=O+Math.imul(s,R0)|0,A=A+Math.imul(s,x0)|0,V=V+Math.imul(Y0,A0)|0,O=O+Math.imul(Y0,v0)|0,O=O+Math.imul(W0,A0)|0,A=A+Math.imul(W0,v0)|0,V=V+Math.imul(d,H0)|0,O=O+Math.imul(d,C0)|0,O=O+Math.imul(m,H0)|0,A=A+Math.imul(m,C0)|0,V=V+Math.imul(J0,d0)|0,O=O+Math.imul(J0,e)|0,O=O+Math.imul(K0,d0)|0,A=A+Math.imul(K0,e)|0,V=V+Math.imul(j,b0)|0,O=O+Math.imul(j,f0)|0,O=O+Math.imul(h,b0)|0,A=A+Math.imul(h,f0)|0;var t1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(t1>>>26)|0,t1&=67108863,V=Math.imul(k0,N0),O=Math.imul(k0,B0),O=O+Math.imul(n0,N0)|0,A=Math.imul(n0,B0),V=V+Math.imul(F0,u)|0,O=O+Math.imul(F0,_0)|0,O=O+Math.imul(q0,u)|0,A=A+Math.imul(q0,_0)|0,V=V+Math.imul(M0,R0)|0,O=O+Math.imul(M0,x0)|0,O=O+Math.imul(z0,R0)|0,A=A+Math.imul(z0,x0)|0,V=V+Math.imul(c,A0)|0,O=O+Math.imul(c,v0)|0,O=O+Math.imul(s,A0)|0,A=A+Math.imul(s,v0)|0,V=V+Math.imul(Y0,H0)|0,O=O+Math.imul(Y0,C0)|0,O=O+Math.imul(W0,H0)|0,A=A+Math.imul(W0,C0)|0,V=V+Math.imul(d,d0)|0,O=O+Math.imul(d,e)|0,O=O+Math.imul(m,d0)|0,A=A+Math.imul(m,e)|0,V=V+Math.imul(J0,b0)|0,O=O+Math.imul(J0,f0)|0,O=O+Math.imul(K0,b0)|0,A=A+Math.imul(K0,f0)|0,V=V+Math.imul(j,a0)|0,O=O+Math.imul(j,U$)|0,O=O+Math.imul(h,a0)|0,A=A+Math.imul(h,U$)|0;var r1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(r1>>>26)|0,r1&=67108863,V=Math.imul(T0,N0),O=Math.imul(T0,B0),O=O+Math.imul(P0,N0)|0,A=Math.imul(P0,B0),V=V+Math.imul(k0,u)|0,O=O+Math.imul(k0,_0)|0,O=O+Math.imul(n0,u)|0,A=A+Math.imul(n0,_0)|0,V=V+Math.imul(F0,R0)|0,O=O+Math.imul(F0,x0)|0,O=O+Math.imul(q0,R0)|0,A=A+Math.imul(q0,x0)|0,V=V+Math.imul(M0,A0)|0,O=O+Math.imul(M0,v0)|0,O=O+Math.imul(z0,A0)|0,A=A+Math.imul(z0,v0)|0,V=V+Math.imul(c,H0)|0,O=O+Math.imul(c,C0)|0,O=O+Math.imul(s,H0)|0,A=A+Math.imul(s,C0)|0,V=V+Math.imul(Y0,d0)|0,O=O+Math.imul(Y0,e)|0,O=O+Math.imul(W0,d0)|0,A=A+Math.imul(W0,e)|0,V=V+Math.imul(d,b0)|0,O=O+Math.imul(d,f0)|0,O=O+Math.imul(m,b0)|0,A=A+Math.imul(m,f0)|0,V=V+Math.imul(J0,a0)|0,O=O+Math.imul(J0,U$)|0,O=O+Math.imul(K0,a0)|0,A=A+Math.imul(K0,U$)|0,V=V+Math.imul(j,D$)|0,O=O+Math.imul(j,L$)|0,O=O+Math.imul(h,D$)|0,A=A+Math.imul(h,L$)|0;var a1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(a1>>>26)|0,a1&=67108863,V=Math.imul(p0,N0),O=Math.imul(p0,B0),O=O+Math.imul(l0,N0)|0,A=Math.imul(l0,B0),V=V+Math.imul(T0,u)|0,O=O+Math.imul(T0,_0)|0,O=O+Math.imul(P0,u)|0,A=A+Math.imul(P0,_0)|0,V=V+Math.imul(k0,R0)|0,O=O+Math.imul(k0,x0)|0,O=O+Math.imul(n0,R0)|0,A=A+Math.imul(n0,x0)|0,V=V+Math.imul(F0,A0)|0,O=O+Math.imul(F0,v0)|0,O=O+Math.imul(q0,A0)|0,A=A+Math.imul(q0,v0)|0,V=V+Math.imul(M0,H0)|0,O=O+Math.imul(M0,C0)|0,O=O+Math.imul(z0,H0)|0,A=A+Math.imul(z0,C0)|0,V=V+Math.imul(c,d0)|0,O=O+Math.imul(c,e)|0,O=O+Math.imul(s,d0)|0,A=A+Math.imul(s,e)|0,V=V+Math.imul(Y0,b0)|0,O=O+Math.imul(Y0,f0)|0,O=O+Math.imul(W0,b0)|0,A=A+Math.imul(W0,f0)|0,V=V+Math.imul(d,a0)|0,O=O+Math.imul(d,U$)|0,O=O+Math.imul(m,a0)|0,A=A+Math.imul(m,U$)|0,V=V+Math.imul(J0,D$)|0,O=O+Math.imul(J0,L$)|0,O=O+Math.imul(K0,D$)|0,A=A+Math.imul(K0,L$)|0,V=V+Math.imul(j,Z$)|0,O=O+Math.imul(j,I$)|0,O=O+Math.imul(h,Z$)|0,A=A+Math.imul(h,I$)|0;var s1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(s1>>>26)|0,s1&=67108863,V=Math.imul(p0,u),O=Math.imul(p0,_0),O=O+Math.imul(l0,u)|0,A=Math.imul(l0,_0),V=V+Math.imul(T0,R0)|0,O=O+Math.imul(T0,x0)|0,O=O+Math.imul(P0,R0)|0,A=A+Math.imul(P0,x0)|0,V=V+Math.imul(k0,A0)|0,O=O+Math.imul(k0,v0)|0,O=O+Math.imul(n0,A0)|0,A=A+Math.imul(n0,v0)|0,V=V+Math.imul(F0,H0)|0,O=O+Math.imul(F0,C0)|0,O=O+Math.imul(q0,H0)|0,A=A+Math.imul(q0,C0)|0,V=V+Math.imul(M0,d0)|0,O=O+Math.imul(M0,e)|0,O=O+Math.imul(z0,d0)|0,A=A+Math.imul(z0,e)|0,V=V+Math.imul(c,b0)|0,O=O+Math.imul(c,f0)|0,O=O+Math.imul(s,b0)|0,A=A+Math.imul(s,f0)|0,V=V+Math.imul(Y0,a0)|0,O=O+Math.imul(Y0,U$)|0,O=O+Math.imul(W0,a0)|0,A=A+Math.imul(W0,U$)|0,V=V+Math.imul(d,D$)|0,O=O+Math.imul(d,L$)|0,O=O+Math.imul(m,D$)|0,A=A+Math.imul(m,L$)|0,V=V+Math.imul(J0,Z$)|0,O=O+Math.imul(J0,I$)|0,O=O+Math.imul(K0,Z$)|0,A=A+Math.imul(K0,I$)|0;var Y1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(Y1>>>26)|0,Y1&=67108863,V=Math.imul(p0,R0),O=Math.imul(p0,x0),O=O+Math.imul(l0,R0)|0,A=Math.imul(l0,x0),V=V+Math.imul(T0,A0)|0,O=O+Math.imul(T0,v0)|0,O=O+Math.imul(P0,A0)|0,A=A+Math.imul(P0,v0)|0,V=V+Math.imul(k0,H0)|0,O=O+Math.imul(k0,C0)|0,O=O+Math.imul(n0,H0)|0,A=A+Math.imul(n0,C0)|0,V=V+Math.imul(F0,d0)|0,O=O+Math.imul(F0,e)|0,O=O+Math.imul(q0,d0)|0,A=A+Math.imul(q0,e)|0,V=V+Math.imul(M0,b0)|0,O=O+Math.imul(M0,f0)|0,O=O+Math.imul(z0,b0)|0,A=A+Math.imul(z0,f0)|0,V=V+Math.imul(c,a0)|0,O=O+Math.imul(c,U$)|0,O=O+Math.imul(s,a0)|0,A=A+Math.imul(s,U$)|0,V=V+Math.imul(Y0,D$)|0,O=O+Math.imul(Y0,L$)|0,O=O+Math.imul(W0,D$)|0,A=A+Math.imul(W0,L$)|0,V=V+Math.imul(d,Z$)|0,O=O+Math.imul(d,I$)|0,O=O+Math.imul(m,Z$)|0,A=A+Math.imul(m,I$)|0;var S1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(S1>>>26)|0,S1&=67108863,V=Math.imul(p0,A0),O=Math.imul(p0,v0),O=O+Math.imul(l0,A0)|0,A=Math.imul(l0,v0),V=V+Math.imul(T0,H0)|0,O=O+Math.imul(T0,C0)|0,O=O+Math.imul(P0,H0)|0,A=A+Math.imul(P0,C0)|0,V=V+Math.imul(k0,d0)|0,O=O+Math.imul(k0,e)|0,O=O+Math.imul(n0,d0)|0,A=A+Math.imul(n0,e)|0,V=V+Math.imul(F0,b0)|0,O=O+Math.imul(F0,f0)|0,O=O+Math.imul(q0,b0)|0,A=A+Math.imul(q0,f0)|0,V=V+Math.imul(M0,a0)|0,O=O+Math.imul(M0,U$)|0,O=O+Math.imul(z0,a0)|0,A=A+Math.imul(z0,U$)|0,V=V+Math.imul(c,D$)|0,O=O+Math.imul(c,L$)|0,O=O+Math.imul(s,D$)|0,A=A+Math.imul(s,L$)|0,V=V+Math.imul(Y0,Z$)|0,O=O+Math.imul(Y0,I$)|0,O=O+Math.imul(W0,Z$)|0,A=A+Math.imul(W0,I$)|0;var R1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(R1>>>26)|0,R1&=67108863,V=Math.imul(p0,H0),O=Math.imul(p0,C0),O=O+Math.imul(l0,H0)|0,A=Math.imul(l0,C0),V=V+Math.imul(T0,d0)|0,O=O+Math.imul(T0,e)|0,O=O+Math.imul(P0,d0)|0,A=A+Math.imul(P0,e)|0,V=V+Math.imul(k0,b0)|0,O=O+Math.imul(k0,f0)|0,O=O+Math.imul(n0,b0)|0,A=A+Math.imul(n0,f0)|0,V=V+Math.imul(F0,a0)|0,O=O+Math.imul(F0,U$)|0,O=O+Math.imul(q0,a0)|0,A=A+Math.imul(q0,U$)|0,V=V+Math.imul(M0,D$)|0,O=O+Math.imul(M0,L$)|0,O=O+Math.imul(z0,D$)|0,A=A+Math.imul(z0,L$)|0,V=V+Math.imul(c,Z$)|0,O=O+Math.imul(c,I$)|0,O=O+Math.imul(s,Z$)|0,A=A+Math.imul(s,I$)|0;var e1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(e1>>>26)|0,e1&=67108863,V=Math.imul(p0,d0),O=Math.imul(p0,e),O=O+Math.imul(l0,d0)|0,A=Math.imul(l0,e),V=V+Math.imul(T0,b0)|0,O=O+Math.imul(T0,f0)|0,O=O+Math.imul(P0,b0)|0,A=A+Math.imul(P0,f0)|0,V=V+Math.imul(k0,a0)|0,O=O+Math.imul(k0,U$)|0,O=O+Math.imul(n0,a0)|0,A=A+Math.imul(n0,U$)|0,V=V+Math.imul(F0,D$)|0,O=O+Math.imul(F0,L$)|0,O=O+Math.imul(q0,D$)|0,A=A+Math.imul(q0,L$)|0,V=V+Math.imul(M0,Z$)|0,O=O+Math.imul(M0,I$)|0,O=O+Math.imul(z0,Z$)|0,A=A+Math.imul(z0,I$)|0;var B1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(B1>>>26)|0,B1&=67108863,V=Math.imul(p0,b0),O=Math.imul(p0,f0),O=O+Math.imul(l0,b0)|0,A=Math.imul(l0,f0),V=V+Math.imul(T0,a0)|0,O=O+Math.imul(T0,U$)|0,O=O+Math.imul(P0,a0)|0,A=A+Math.imul(P0,U$)|0,V=V+Math.imul(k0,D$)|0,O=O+Math.imul(k0,L$)|0,O=O+Math.imul(n0,D$)|0,A=A+Math.imul(n0,L$)|0,V=V+Math.imul(F0,Z$)|0,O=O+Math.imul(F0,I$)|0,O=O+Math.imul(q0,Z$)|0,A=A+Math.imul(q0,I$)|0;var f1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(f1>>>26)|0,f1&=67108863,V=Math.imul(p0,a0),O=Math.imul(p0,U$),O=O+Math.imul(l0,a0)|0,A=Math.imul(l0,U$),V=V+Math.imul(T0,D$)|0,O=O+Math.imul(T0,L$)|0,O=O+Math.imul(P0,D$)|0,A=A+Math.imul(P0,L$)|0,V=V+Math.imul(k0,Z$)|0,O=O+Math.imul(k0,I$)|0,O=O+Math.imul(n0,Z$)|0,A=A+Math.imul(n0,I$)|0;var p1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(p1>>>26)|0,p1&=67108863,V=Math.imul(p0,D$),O=Math.imul(p0,L$),O=O+Math.imul(l0,D$)|0,A=Math.imul(l0,L$),V=V+Math.imul(T0,Z$)|0,O=O+Math.imul(T0,I$)|0,O=O+Math.imul(P0,Z$)|0,A=A+Math.imul(P0,I$)|0;var j1=(q+V|0)+((O&8191)<<13)|0;q=(A+(O>>>13)|0)+(j1>>>26)|0,j1&=67108863,V=Math.imul(p0,Z$),O=Math.imul(p0,I$),O=O+Math.imul(l0,Z$)|0,A=Math.imul(l0,I$);var v1=(q+V|0)+((O&8191)<<13)|0;if(q=(A+(O>>>13)|0)+(v1>>>26)|0,v1&=67108863,v[0]=I1,v[1]=C$,v[2]=g$,v[3]=z1,v[4]=U1,v[5]=o1,v[6]=t1,v[7]=r1,v[8]=a1,v[9]=s1,v[10]=Y1,v[11]=S1,v[12]=R1,v[13]=e1,v[14]=B1,v[15]=f1,v[16]=p1,v[17]=j1,v[18]=v1,q!==0)v[19]=q,F.length++;return F};if(!Math.imul)w=x;function y(Q,D,F){F.negative=D.negative^Q.negative,F.length=Q.length+D.length;var L=0,H=0;for(var v=0;v<F.length-1;v++){var q=H;H=0;var V=L&67108863,O=Math.min(v,D.length-1);for(var A=Math.max(0,v-Q.length+1);A<=O;A++){var k=v-A,j=Q.words[k]|0,h=D.words[A]|0,a=j*h,J0=a&67108863;q=q+(a/67108864|0)|0,J0=J0+V|0,V=J0&67108863,q=q+(J0>>>26)|0,H+=q>>>26,q&=67108863}F.words[v]=V,L=q,q=H}if(L!==0)F.words[v]=L;else F.length--;return F.strip()}function g(Q,D,F){var L=new b;return L.mulp(Q,D,F)}Y.prototype.mulTo=function(Q,D){var F,L=this.length+Q.length;if(this.length===10&&Q.length===10)F=w(this,Q,D);else if(L<63)F=x(this,Q,D);else if(L<1024)F=y(this,Q,D);else F=g(this,Q,D);return F};function b(Q,D){this.x=Q,this.y=D}b.prototype.makeRBT=function(Q){var D=Array(Q),F=Y.prototype._countBits(Q)-1;for(var L=0;L<Q;L++)D[L]=this.revBin(L,F,Q);return D},b.prototype.revBin=function(Q,D,F){if(Q===0||Q===F-1)return Q;var L=0;for(var H=0;H<D;H++)L|=(Q&1)<<D-H-1,Q>>=1;return L},b.prototype.permute=function(Q,D,F,L,H,v){for(var q=0;q<v;q++)L[q]=D[Q[q]],H[q]=F[Q[q]]},b.prototype.transform=function(Q,D,F,L,H,v){this.permute(v,Q,D,F,L,H);for(var q=1;q<H;q<<=1){var V=q<<1,O=Math.cos(2*Math.PI/V),A=Math.sin(2*Math.PI/V);for(var k=0;k<H;k+=V){var j=O,h=A;for(var a=0;a<q;a++){var J0=F[k+a],K0=L[k+a],O0=F[k+a+q],d=L[k+a+q],m=j*O0-h*d;if(d=j*d+h*O0,O0=m,F[k+a]=J0+O0,L[k+a]=K0+d,F[k+a+q]=J0-O0,L[k+a+q]=K0-d,a!==V)m=O*j-A*h,h=O*h+A*j,j=m}}}},b.prototype.guessLen13b=function(Q,D){var F=Math.max(D,Q)|1,L=F&1,H=0;for(F=F/2|0;F;F=F>>>1)H++;return 1<<H+1+L},b.prototype.conjugate=function(Q,D,F){if(F<=1)return;for(var L=0;L<F/2;L++){var H=Q[L];Q[L]=Q[F-L-1],Q[F-L-1]=H,H=D[L],D[L]=-D[F-L-1],D[F-L-1]=-H}},b.prototype.normalize13b=function(Q,D){var F=0;for(var L=0;L<D/2;L++){var H=Math.round(Q[2*L+1]/D)*8192+Math.round(Q[2*L]/D)+F;if(Q[L]=H&67108863,H<67108864)F=0;else F=H/67108864|0}return Q},b.prototype.convert13b=function(Q,D,F,L){var H=0;for(var v=0;v<D;v++)H=H+(Q[v]|0),F[2*v]=H&8191,H=H>>>13,F[2*v+1]=H&8191,H=H>>>13;for(v=2*D;v<L;++v)F[v]=0;_(H===0),_((H&-8192)===0)},b.prototype.stub=function(Q){var D=Array(Q);for(var F=0;F<Q;F++)D[F]=0;return D},b.prototype.mulp=function(Q,D,F){var L=2*this.guessLen13b(Q.length,D.length),H=this.makeRBT(L),v=this.stub(L),q=Array(L),V=Array(L),O=Array(L),A=Array(L),k=Array(L),j=Array(L),h=F.words;h.length=L,this.convert13b(Q.words,Q.length,q,L),this.convert13b(D.words,D.length,A,L),this.transform(q,v,V,O,L,H),this.transform(A,v,k,j,L,H);for(var a=0;a<L;a++){var J0=V[a]*k[a]-O[a]*j[a];O[a]=V[a]*j[a]+O[a]*k[a],V[a]=J0}return this.conjugate(V,O,L),this.transform(V,O,h,v,L,H),this.conjugate(h,v,L),this.normalize13b(h,L),F.negative=Q.negative^D.negative,F.length=Q.length+D.length,F.strip()},Y.prototype.mul=function(Q){var D=new Y(null);return D.words=Array(this.length+Q.length),this.mulTo(Q,D)},Y.prototype.mulf=function(Q){var D=new Y(null);return D.words=Array(this.length+Q.length),g(this,Q,D)},Y.prototype.imul=function(Q){return this.clone().mulTo(Q,this)},Y.prototype.imuln=function(Q){_(typeof Q==="number"),_(Q<67108864);var D=0;for(var F=0;F<this.length;F++){var L=(this.words[F]|0)*Q,H=(L&67108863)+(D&67108863);D>>=26,D+=L/67108864|0,D+=H>>>26,this.words[F]=H&67108863}if(D!==0)this.words[F]=D,this.length++;return this.length=Q===0?1:this.length,this},Y.prototype.muln=function(Q){return this.clone().imuln(Q)},Y.prototype.sqr=function(){return this.mul(this)},Y.prototype.isqr=function(){return this.imul(this.clone())},Y.prototype.pow=function(Q){var D=B(Q);if(D.length===0)return new Y(1);var F=this;for(var L=0;L<D.length;L++,F=F.sqr())if(D[L]!==0)break;if(++L<D.length)for(var H=F.sqr();L<D.length;L++,H=H.sqr()){if(D[L]===0)continue;F=F.mul(H)}return F},Y.prototype.iushln=function(Q){_(typeof Q==="number"&&Q>=0);var D=Q%26,F=(Q-D)/26,L=67108863>>>26-D<<26-D,H;if(D!==0){var v=0;for(H=0;H<this.length;H++){var q=this.words[H]&L,V=(this.words[H]|0)-q<<D;this.words[H]=V|v,v=q>>>26-D}if(v)this.words[H]=v,this.length++}if(F!==0){for(H=this.length-1;H>=0;H--)this.words[H+F]=this.words[H];for(H=0;H<F;H++)this.words[H]=0;this.length+=F}return this.strip()},Y.prototype.ishln=function(Q){return _(this.negative===0),this.iushln(Q)},Y.prototype.iushrn=function(Q,D,F){_(typeof Q==="number"&&Q>=0);var L;if(D)L=(D-D%26)/26;else L=0;var H=Q%26,v=Math.min((Q-H)/26,this.length),q=67108863^67108863>>>H<<H,V=F;if(L-=v,L=Math.max(0,L),V){for(var O=0;O<v;O++)V.words[O]=this.words[O];V.length=v}if(v===0);else if(this.length>v){this.length-=v;for(O=0;O<this.length;O++)this.words[O]=this.words[O+v]}else this.words[0]=0,this.length=1;var A=0;for(O=this.length-1;O>=0&&(A!==0||O>=L);O--){var k=this.words[O]|0;this.words[O]=A<<26-H|k>>>H,A=k&q}if(V&&A!==0)V.words[V.length++]=A;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},Y.prototype.ishrn=function(Q,D,F){return _(this.negative===0),this.iushrn(Q,D,F)},Y.prototype.shln=function(Q){return this.clone().ishln(Q)},Y.prototype.ushln=function(Q){return this.clone().iushln(Q)},Y.prototype.shrn=function(Q){return this.clone().ishrn(Q)},Y.prototype.ushrn=function(Q){return this.clone().iushrn(Q)},Y.prototype.testn=function(Q){_(typeof Q==="number"&&Q>=0);var D=Q%26,F=(Q-D)/26,L=1<<D;if(this.length<=F)return!1;var H=this.words[F];return!!(H&L)},Y.prototype.imaskn=function(Q){_(typeof Q==="number"&&Q>=0);var D=Q%26,F=(Q-D)/26;if(_(this.negative===0,"imaskn works only with positive numbers"),this.length<=F)return this;if(D!==0)F++;if(this.length=Math.min(F,this.length),D!==0){var L=67108863^67108863>>>D<<D;this.words[this.length-1]&=L}return this.strip()},Y.prototype.maskn=function(Q){return this.clone().imaskn(Q)},Y.prototype.iaddn=function(Q){if(_(typeof Q==="number"),_(Q<67108864),Q<0)return this.isubn(-Q);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<Q)return this.words[0]=Q-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(Q),this.negative=1,this}return this._iaddn(Q)},Y.prototype._iaddn=function(Q){this.words[0]+=Q;for(var D=0;D<this.length&&this.words[D]>=67108864;D++)if(this.words[D]-=67108864,D===this.length-1)this.words[D+1]=1;else this.words[D+1]++;return this.length=Math.max(this.length,D+1),this},Y.prototype.isubn=function(Q){if(_(typeof Q==="number"),_(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 D=0;D<this.length&&this.words[D]<0;D++)this.words[D]+=67108864,this.words[D+1]-=1;return this.strip()},Y.prototype.addn=function(Q){return this.clone().iaddn(Q)},Y.prototype.subn=function(Q){return this.clone().isubn(Q)},Y.prototype.iabs=function(){return this.negative=0,this},Y.prototype.abs=function(){return this.clone().iabs()},Y.prototype._ishlnsubmul=function(Q,D,F){var L=Q.length+F,H;this._expand(L);var v,q=0;for(H=0;H<Q.length;H++){v=(this.words[H+F]|0)+q;var V=(Q.words[H]|0)*D;v-=V&67108863,q=(v>>26)-(V/67108864|0),this.words[H+F]=v&67108863}for(;H<this.length-F;H++)v=(this.words[H+F]|0)+q,q=v>>26,this.words[H+F]=v&67108863;if(q===0)return this.strip();_(q===-1),q=0;for(H=0;H<this.length;H++)v=-(this.words[H]|0)+q,q=v>>26,this.words[H]=v&67108863;return this.negative=1,this.strip()},Y.prototype._wordDiv=function(Q,D){var F=this.length-Q.length,L=this.clone(),H=Q,v=H.words[H.length-1]|0,q=this._countBits(v);if(F=26-q,F!==0)H=H.ushln(F),L.iushln(F),v=H.words[H.length-1]|0;var V=L.length-H.length,O;if(D!=="mod"){O=new Y(null),O.length=V+1,O.words=Array(O.length);for(var A=0;A<O.length;A++)O.words[A]=0}var k=L.clone()._ishlnsubmul(H,1,V);if(k.negative===0){if(L=k,O)O.words[V]=1}for(var j=V-1;j>=0;j--){var h=(L.words[H.length+j]|0)*67108864+(L.words[H.length+j-1]|0);h=Math.min(h/v|0,67108863),L._ishlnsubmul(H,h,j);while(L.negative!==0)if(h--,L.negative=0,L._ishlnsubmul(H,1,j),!L.isZero())L.negative^=1;if(O)O.words[j]=h}if(O)O.strip();if(L.strip(),D!=="div"&&F!==0)L.iushrn(F);return{div:O||null,mod:L}},Y.prototype.divmod=function(Q,D,F){if(_(!Q.isZero()),this.isZero())return{div:new Y(0),mod:new Y(0)};var L,H,v;if(this.negative!==0&&Q.negative===0){if(v=this.neg().divmod(Q,D),D!=="mod")L=v.div.neg();if(D!=="div"){if(H=v.mod.neg(),F&&H.negative!==0)H.iadd(Q)}return{div:L,mod:H}}if(this.negative===0&&Q.negative!==0){if(v=this.divmod(Q.neg(),D),D!=="mod")L=v.div.neg();return{div:L,mod:v.mod}}if((this.negative&Q.negative)!==0){if(v=this.neg().divmod(Q.neg(),D),D!=="div"){if(H=v.mod.neg(),F&&H.negative!==0)H.isub(Q)}return{div:v.div,mod:H}}if(Q.length>this.length||this.cmp(Q)<0)return{div:new Y(0),mod:this};if(Q.length===1){if(D==="div")return{div:this.divn(Q.words[0]),mod:null};if(D==="mod")return{div:null,mod:new Y(this.modn(Q.words[0]))};return{div:this.divn(Q.words[0]),mod:new Y(this.modn(Q.words[0]))}}return this._wordDiv(Q,D)},Y.prototype.div=function(Q){return this.divmod(Q,"div",!1).div},Y.prototype.mod=function(Q){return this.divmod(Q,"mod",!1).mod},Y.prototype.umod=function(Q){return this.divmod(Q,"mod",!0).mod},Y.prototype.divRound=function(Q){var D=this.divmod(Q);if(D.mod.isZero())return D.div;var F=D.div.negative!==0?D.mod.isub(Q):D.mod,L=Q.ushrn(1),H=Q.andln(1),v=F.cmp(L);if(v<0||H===1&&v===0)return D.div;return D.div.negative!==0?D.div.isubn(1):D.div.iaddn(1)},Y.prototype.modn=function(Q){_(Q<=67108863);var D=67108864%Q,F=0;for(var L=this.length-1;L>=0;L--)F=(D*F+(this.words[L]|0))%Q;return F},Y.prototype.idivn=function(Q){_(Q<=67108863);var D=0;for(var F=this.length-1;F>=0;F--){var L=(this.words[F]|0)+D*67108864;this.words[F]=L/Q|0,D=L%Q}return this.strip()},Y.prototype.divn=function(Q){return this.clone().idivn(Q)},Y.prototype.egcd=function(Q){_(Q.negative===0),_(!Q.isZero());var D=this,F=Q.clone();if(D.negative!==0)D=D.umod(Q);else D=D.clone();var L=new Y(1),H=new Y(0),v=new Y(0),q=new Y(1),V=0;while(D.isEven()&&F.isEven())D.iushrn(1),F.iushrn(1),++V;var O=F.clone(),A=D.clone();while(!D.isZero()){for(var k=0,j=1;(D.words[0]&j)===0&&k<26;++k,j<<=1);if(k>0){D.iushrn(k);while(k-- >0){if(L.isOdd()||H.isOdd())L.iadd(O),H.isub(A);L.iushrn(1),H.iushrn(1)}}for(var h=0,a=1;(F.words[0]&a)===0&&h<26;++h,a<<=1);if(h>0){F.iushrn(h);while(h-- >0){if(v.isOdd()||q.isOdd())v.iadd(O),q.isub(A);v.iushrn(1),q.iushrn(1)}}if(D.cmp(F)>=0)D.isub(F),L.isub(v),H.isub(q);else F.isub(D),v.isub(L),q.isub(H)}return{a:v,b:q,gcd:F.iushln(V)}},Y.prototype._invmp=function(Q){_(Q.negative===0),_(!Q.isZero());var D=this,F=Q.clone();if(D.negative!==0)D=D.umod(Q);else D=D.clone();var L=new Y(1),H=new Y(0),v=F.clone();while(D.cmpn(1)>0&&F.cmpn(1)>0){for(var q=0,V=1;(D.words[0]&V)===0&&q<26;++q,V<<=1);if(q>0){D.iushrn(q);while(q-- >0){if(L.isOdd())L.iadd(v);L.iushrn(1)}}for(var O=0,A=1;(F.words[0]&A)===0&&O<26;++O,A<<=1);if(O>0){F.iushrn(O);while(O-- >0){if(H.isOdd())H.iadd(v);H.iushrn(1)}}if(D.cmp(F)>=0)D.isub(F),L.isub(H);else F.isub(D),H.isub(L)}var k;if(D.cmpn(1)===0)k=L;else k=H;if(k.cmpn(0)<0)k.iadd(Q);return k},Y.prototype.gcd=function(Q){if(this.isZero())return Q.abs();if(Q.isZero())return this.abs();var D=this.clone(),F=Q.clone();D.negative=0,F.negative=0;for(var L=0;D.isEven()&&F.isEven();L++)D.iushrn(1),F.iushrn(1);do{while(D.isEven())D.iushrn(1);while(F.isEven())F.iushrn(1);var H=D.cmp(F);if(H<0){var v=D;D=F,F=v}else if(H===0||F.cmpn(1)===0)break;D.isub(F)}while(!0);return F.iushln(L)},Y.prototype.invm=function(Q){return this.egcd(Q).a.umod(Q)},Y.prototype.isEven=function(){return(this.words[0]&1)===0},Y.prototype.isOdd=function(){return(this.words[0]&1)===1},Y.prototype.andln=function(Q){return this.words[0]&Q},Y.prototype.bincn=function(Q){_(typeof Q==="number");var D=Q%26,F=(Q-D)/26,L=1<<D;if(this.length<=F)return this._expand(F+1),this.words[F]|=L,this;var H=L;for(var v=F;H!==0&&v<this.length;v++){var q=this.words[v]|0;q+=H,H=q>>>26,q&=67108863,this.words[v]=q}if(H!==0)this.words[v]=H,this.length++;return this},Y.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Y.prototype.cmpn=function(Q){var D=Q<0;if(this.negative!==0&&!D)return-1;if(this.negative===0&&D)return 1;this.strip();var F;if(this.length>1)F=1;else{if(D)Q=-Q;_(Q<=67108863,"Number is too big");var L=this.words[0]|0;F=L===Q?0:L<Q?-1:1}if(this.negative!==0)return-F|0;return F},Y.prototype.cmp=function(Q){if(this.negative!==0&&Q.negative===0)return-1;if(this.negative===0&&Q.negative!==0)return 1;var D=this.ucmp(Q);if(this.negative!==0)return-D|0;return D},Y.prototype.ucmp=function(Q){if(this.length>Q.length)return 1;if(this.length<Q.length)return-1;var D=0;for(var F=this.length-1;F>=0;F--){var L=this.words[F]|0,H=Q.words[F]|0;if(L===H)continue;if(L<H)D=-1;else if(L>H)D=1;break}return D},Y.prototype.gtn=function(Q){return this.cmpn(Q)===1},Y.prototype.gt=function(Q){return this.cmp(Q)===1},Y.prototype.gten=function(Q){return this.cmpn(Q)>=0},Y.prototype.gte=function(Q){return this.cmp(Q)>=0},Y.prototype.ltn=function(Q){return this.cmpn(Q)===-1},Y.prototype.lt=function(Q){return this.cmp(Q)===-1},Y.prototype.lten=function(Q){return this.cmpn(Q)<=0},Y.prototype.lte=function(Q){return this.cmp(Q)<=0},Y.prototype.eqn=function(Q){return this.cmpn(Q)===0},Y.prototype.eq=function(Q){return this.cmp(Q)===0},Y.red=function(Q){return new t(Q)},Y.prototype.toRed=function(Q){return _(!this.red,"Already a number in reduction context"),_(this.negative===0,"red works only with positives"),Q.convertTo(this)._forceRed(Q)},Y.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Y.prototype._forceRed=function(Q){return this.red=Q,this},Y.prototype.forceRed=function(Q){return _(!this.red,"Already a number in reduction context"),this._forceRed(Q)},Y.prototype.redAdd=function(Q){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,Q)},Y.prototype.redIAdd=function(Q){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Q)},Y.prototype.redSub=function(Q){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,Q)},Y.prototype.redISub=function(Q){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,Q)},Y.prototype.redShl=function(Q){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,Q)},Y.prototype.redMul=function(Q){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,Q),this.red.mul(this,Q)},Y.prototype.redIMul=function(Q){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,Q),this.red.imul(this,Q)},Y.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Y.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Y.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Y.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Y.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Y.prototype.redPow=function(Q){return _(this.red&&!Q.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Q)};var l={k256:null,p224:null,p192:null,p25519:null};function i(Q,D){this.name=Q,this.p=new Y(D,16),this.n=this.p.bitLength(),this.k=new Y(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}i.prototype._tmp=function(){var Q=new Y(null);return Q.words=Array(Math.ceil(this.n/13)),Q},i.prototype.ireduce=function(Q){var D=Q,F;do this.split(D,this.tmp),D=this.imulK(D),D=D.iadd(this.tmp),F=D.bitLength();while(F>this.n);var L=F<this.n?-1:D.ucmp(this.p);if(L===0)D.words[0]=0,D.length=1;else if(L>0)D.isub(this.p);else if(D.strip!==void 0)D.strip();else D._strip();return D},i.prototype.split=function(Q,D){Q.iushrn(this.n,0,D)},i.prototype.imulK=function(Q){return Q.imul(this.k)};function $0(){i.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}J($0,i),$0.prototype.split=function(Q,D){var F=4194303,L=Math.min(Q.length,9);for(var H=0;H<L;H++)D.words[H]=Q.words[H];if(D.length=L,Q.length<=9){Q.words[0]=0,Q.length=1;return}var v=Q.words[9];D.words[D.length++]=v&F;for(H=10;H<Q.length;H++){var q=Q.words[H]|0;Q.words[H-10]=(q&F)<<4|v>>>22,v=q}if(v>>>=22,Q.words[H-10]=v,v===0&&Q.length>10)Q.length-=10;else Q.length-=9},$0.prototype.imulK=function(Q){Q.words[Q.length]=0,Q.words[Q.length+1]=0,Q.length+=2;var D=0;for(var F=0;F<Q.length;F++){var L=Q.words[F]|0;D+=L*977,Q.words[F]=D&67108863,D=L*64+(D/67108864|0)}if(Q.words[Q.length-1]===0){if(Q.length--,Q.words[Q.length-1]===0)Q.length--}return Q};function Q0(){i.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}J(Q0,i);function G0(){i.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}J(G0,i);function D0(){i.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}J(D0,i),D0.prototype.imulK=function(Q){var D=0;for(var F=0;F<Q.length;F++){var L=(Q.words[F]|0)*19+D,H=L&67108863;L>>>=26,Q.words[F]=H,D=L}if(D!==0)Q.words[Q.length++]=D;return Q},Y._prime=function(Q){if(l[Q])return l[Q];var D;if(Q==="k256")D=new $0;else if(Q==="p224")D=new Q0;else if(Q==="p192")D=new G0;else if(Q==="p25519")D=new D0;else throw Error("Unknown prime "+Q);return l[Q]=D,D};function t(Q){if(typeof Q==="string"){var D=Y._prime(Q);this.m=D.p,this.prime=D}else _(Q.gtn(1),"modulus must be greater than 1"),this.m=Q,this.prime=null}t.prototype._verify1=function(Q){_(Q.negative===0,"red works only with positives"),_(Q.red,"red works only with red numbers")},t.prototype._verify2=function(Q,D){_((Q.negative|D.negative)===0,"red works only with positives"),_(Q.red&&Q.red===D.red,"red works only with red numbers")},t.prototype.imod=function(Q){if(this.prime)return this.prime.ireduce(Q)._forceRed(this);return Q.umod(this.m)._forceRed(this)},t.prototype.neg=function(Q){if(Q.isZero())return Q.clone();return this.m.sub(Q)._forceRed(this)},t.prototype.add=function(Q,D){this._verify2(Q,D);var F=Q.add(D);if(F.cmp(this.m)>=0)F.isub(this.m);return F._forceRed(this)},t.prototype.iadd=function(Q,D){this._verify2(Q,D);var F=Q.iadd(D);if(F.cmp(this.m)>=0)F.isub(this.m);return F},t.prototype.sub=function(Q,D){this._verify2(Q,D);var F=Q.sub(D);if(F.cmpn(0)<0)F.iadd(this.m);return F._forceRed(this)},t.prototype.isub=function(Q,D){this._verify2(Q,D);var F=Q.isub(D);if(F.cmpn(0)<0)F.iadd(this.m);return F},t.prototype.shl=function(Q,D){return this._verify1(Q),this.imod(Q.ushln(D))},t.prototype.imul=function(Q,D){return this._verify2(Q,D),this.imod(Q.imul(D))},t.prototype.mul=function(Q,D){return this._verify2(Q,D),this.imod(Q.mul(D))},t.prototype.isqr=function(Q){return this.imul(Q,Q.clone())},t.prototype.sqr=function(Q){return this.mul(Q,Q)},t.prototype.sqrt=function(Q){if(Q.isZero())return Q.clone();var D=this.m.andln(3);if(_(D%2===1),D===3){var F=this.m.add(new Y(1)).iushrn(2);return this.pow(Q,F)}var L=this.m.subn(1),H=0;while(!L.isZero()&&L.andln(1)===0)H++,L.iushrn(1);_(!L.isZero());var v=new Y(1).toRed(this),q=v.redNeg(),V=this.m.subn(1).iushrn(1),O=this.m.bitLength();O=new Y(2*O*O).toRed(this);while(this.pow(O,V).cmp(q)!==0)O.redIAdd(q);var A=this.pow(O,L),k=this.pow(Q,L.addn(1).iushrn(1)),j=this.pow(Q,L),h=H;while(j.cmp(v)!==0){var a=j;for(var J0=0;a.cmp(v)!==0;J0++)a=a.redSqr();_(J0<h);var K0=this.pow(A,new Y(1).iushln(h-J0-1));k=k.redMul(K0),A=K0.redSqr(),j=j.redMul(A),h=J0}return k},t.prototype.invm=function(Q){var D=Q._invmp(this.m);if(D.negative!==0)return D.negative=0,this.imod(D).redNeg();else return this.imod(D)},t.prototype.pow=function(Q,D){if(D.isZero())return new Y(1).toRed(this);if(D.cmpn(1)===0)return Q.clone();var F=4,L=Array(1<<F);L[0]=new Y(1).toRed(this),L[1]=Q;for(var H=2;H<L.length;H++)L[H]=this.mul(L[H-1],Q);var v=L[0],q=0,V=0,O=D.bitLength()%26;if(O===0)O=26;for(H=D.length-1;H>=0;H--){var A=D.words[H];for(var k=O-1;k>=0;k--){var j=A>>k&1;if(v!==L[0])v=this.sqr(v);if(j===0&&q===0){V=0;continue}if(q<<=1,q|=j,V++,V!==F&&(H!==0||k!==0))continue;v=this.mul(v,L[q]),V=0,q=0}O=26}return v},t.prototype.convertTo=function(Q){var D=Q.umod(this.m);return D===Q?D.clone():D},t.prototype.convertFrom=function(Q){var D=Q.clone();return D.red=null,D},Y.mont=function(Q){return new V0(Q)};function V0(Q){if(t.call(this,Q),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new Y(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)}J(V0,t),V0.prototype.convertTo=function(Q){return this.imod(Q.ushln(this.shift))},V0.prototype.convertFrom=function(Q){var D=this.imod(Q.mul(this.rinv));return D.red=null,D},V0.prototype.imul=function(Q,D){if(Q.isZero()||D.isZero())return Q.words[0]=0,Q.length=1,Q;var F=Q.imul(D),L=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=F.isub(L).iushrn(this.shift),v=H;if(H.cmp(this.m)>=0)v=H.isub(this.m);else if(H.cmpn(0)<0)v=H.iadd(this.m);return v._forceRed(this)},V0.prototype.mul=function(Q,D){if(Q.isZero()||D.isZero())return new Y(0)._forceRed(this);var F=Q.mul(D),L=F.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),H=F.isub(L).iushrn(this.shift),v=H;if(H.cmp(this.m)>=0)v=H.isub(this.m);else if(H.cmpn(0)<0)v=H.iadd(this.m);return v._forceRed(this)},V0.prototype.invm=function(Q){var D=this.imod(Q._invmp(this.m).mul(this.r2));return D._forceRed(this)}})(typeof I>"u"||I,$)}),sN=$$(($,I)=>{var G=QW(),Z=iU().Buffer;function _(J,Y){return Z.from(J.toRed(G.mont(Y.modulus)).redPow(new G(Y.publicExponent)).fromRed().toArray())}I.exports=_}),Ln=$$(($,I)=>{(function(G,Z){function _(L,H){if(!L)throw Error(H||"Assertion failed")}function J(L,H){L.super_=H;var v=function(){};v.prototype=H.prototype,L.prototype=new v,L.prototype.constructor=L}function Y(L,H,v){if(Y.isBN(L))return L;if(this.negative=0,this.words=null,this.length=0,this.red=null,L!==null){if(H==="le"||H==="be")v=H,H=10;this._init(L||0,H||10,v||"be")}}if(typeof G==="object")G.exports=Y;else Z.BN=Y;Y.BN=Y,Y.wordSize=26;var W;try{if(typeof window<"u"&&typeof window.Buffer<"u")W=window.Buffer;else W=(u1(),P$(h1)).Buffer}catch(L){}Y.isBN=function(L){if(L instanceof Y)return!0;return L!==null&&typeof L==="object"&&L.constructor.wordSize===Y.wordSize&&Array.isArray(L.words)},Y.max=function(L,H){if(L.cmp(H)>0)return L;return H},Y.min=function(L,H){if(L.cmp(H)<0)return L;return H},Y.prototype._init=function(L,H,v){if(typeof L==="number")return this._initNumber(L,H,v);if(typeof L==="object")return this._initArray(L,H,v);if(H==="hex")H=16;_(H===(H|0)&&H>=2&&H<=36),L=L.toString().replace(/\s+/g,"");var q=0;if(L[0]==="-")q++,this.negative=1;if(q<L.length){if(H===16)this._parseHex(L,q,v);else if(this._parseBase(L,H,q),v==="le")this._initArray(this.toArray(),H,v)}},Y.prototype._initNumber=function(L,H,v){if(L<0)this.negative=1,L=-L;if(L<67108864)this.words=[L&67108863],this.length=1;else if(L<4503599627370496)this.words=[L&67108863,L/67108864&67108863],this.length=2;else _(L<9007199254740992),this.words=[L&67108863,L/67108864&67108863,1],this.length=3;if(v!=="le")return;this._initArray(this.toArray(),H,v)},Y.prototype._initArray=function(L,H,v){if(_(typeof L.length==="number"),L.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(L.length/3),this.words=Array(this.length);for(var q=0;q<this.length;q++)this.words[q]=0;var V,O,A=0;if(v==="be"){for(q=L.length-1,V=0;q>=0;q-=3)if(O=L[q]|L[q-1]<<8|L[q-2]<<16,this.words[V]|=O<<A&67108863,this.words[V+1]=O>>>26-A&67108863,A+=24,A>=26)A-=26,V++}else if(v==="le"){for(q=0,V=0;q<L.length;q+=3)if(O=L[q]|L[q+1]<<8|L[q+2]<<16,this.words[V]|=O<<A&67108863,this.words[V+1]=O>>>26-A&67108863,A+=24,A>=26)A-=26,V++}return this._strip()};function R(L,H){var v=L.charCodeAt(H);if(v>=48&&v<=57)return v-48;else if(v>=65&&v<=70)return v-55;else if(v>=97&&v<=102)return v-87;else _(!1,"Invalid character in "+L)}function M(L,H,v){var q=R(L,v);if(v-1>=H)q|=R(L,v-1)<<4;return q}Y.prototype._parseHex=function(L,H,v){this.length=Math.ceil((L.length-H)/6),this.words=Array(this.length);for(var q=0;q<this.length;q++)this.words[q]=0;var V=0,O=0,A;if(v==="be")for(q=L.length-1;q>=H;q-=2)if(A=M(L,H,q)<<V,this.words[O]|=A&67108863,V>=18)V-=18,O+=1,this.words[O]|=A>>>26;else V+=8;else{var k=L.length-H;for(q=k%2===0?H+1:H;q<L.length;q+=2)if(A=M(L,H,q)<<V,this.words[O]|=A&67108863,V>=18)V-=18,O+=1,this.words[O]|=A>>>26;else V+=8}this._strip()};function E(L,H,v,q){var V=0,O=0,A=Math.min(L.length,v);for(var k=H;k<A;k++){var j=L.charCodeAt(k)-48;if(V*=q,j>=49)O=j-49+10;else if(j>=17)O=j-17+10;else O=j;_(j>=0&&O<q,"Invalid character"),V+=O}return V}Y.prototype._parseBase=function(L,H,v){this.words=[0],this.length=1;for(var q=0,V=1;V<=67108863;V*=H)q++;q--,V=V/H|0;var O=L.length-v,A=O%q,k=Math.min(O,O-A)+v,j=0;for(var h=v;h<k;h+=q)if(j=E(L,h,h+q,H),this.imuln(V),this.words[0]+j<67108864)this.words[0]+=j;else this._iaddn(j);if(A!==0){var a=1;j=E(L,h,L.length,H);for(h=0;h<A;h++)a*=H;if(this.imuln(a),this.words[0]+j<67108864)this.words[0]+=j;else this._iaddn(j)}this._strip()},Y.prototype.copy=function(L){L.words=Array(this.length);for(var H=0;H<this.length;H++)L.words[H]=this.words[H];L.length=this.length,L.negative=this.negative,L.red=this.red};function T(L,H){L.words=H.words,L.length=H.length,L.negative=H.negative,L.red=H.red}if(Y.prototype._move=function(L){T(L,this)},Y.prototype.clone=function(){var L=new Y(null);return this.copy(L),L},Y.prototype._expand=function(L){while(this.length<L)this.words[this.length++]=0;return this},Y.prototype._strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},Y.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},typeof Symbol<"u"&&typeof Symbol.for==="function")try{Y.prototype[Symbol.for("nodejs.util.inspect.custom")]=S}catch(L){Y.prototype.inspect=S}else Y.prototype.inspect=S;function S(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var N=["","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"],B=[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],x=[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];if(Y.prototype.toString=function(L,H){L=L||10,H=H|0||1;var v;if(L===16||L==="hex"){v="";var q=0,V=0;for(var O=0;O<this.length;O++){var A=this.words[O],k=((A<<q|V)&16777215).toString(16);if(V=A>>>24-q&16777215,q+=2,q>=26)q-=26,O--;if(V!==0||O!==this.length-1)v=N[6-k.length]+k+v;else v=k+v}if(V!==0)v=V.toString(16)+v;while(v.length%H!==0)v="0"+v;if(this.negative!==0)v="-"+v;return v}if(L===(L|0)&&L>=2&&L<=36){var j=B[L],h=x[L];v="";var a=this.clone();a.negative=0;while(!a.isZero()){var J0=a.modrn(h).toString(L);if(a=a.idivn(h),!a.isZero())v=N[j-J0.length]+J0+v;else v=J0+v}if(this.isZero())v="0"+v;while(v.length%H!==0)v="0"+v;if(this.negative!==0)v="-"+v;return v}_(!1,"Base should be between 2 and 36")},Y.prototype.toNumber=function(){var L=this.words[0];if(this.length===2)L+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)L+=4503599627370496+this.words[1]*67108864;else if(this.length>2)_(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-L:L},Y.prototype.toJSON=function(){return this.toString(16,2)},W)Y.prototype.toBuffer=function(L,H){return this.toArrayLike(W,L,H)};Y.prototype.toArray=function(L,H){return this.toArrayLike(Array,L,H)};var w=function(L,H){if(L.allocUnsafe)return L.allocUnsafe(H);return new L(H)};if(Y.prototype.toArrayLike=function(L,H,v){this._strip();var q=this.byteLength(),V=v||Math.max(1,q);_(q<=V,"byte array longer than desired length"),_(V>0,"Requested array length <= 0");var O=w(L,V),A=H==="le"?"LE":"BE";return this["_toArrayLike"+A](O,q),O},Y.prototype._toArrayLikeLE=function(L,H){var v=0,q=0;for(var V=0,O=0;V<this.length;V++){var A=this.words[V]<<O|q;if(L[v++]=A&255,v<L.length)L[v++]=A>>8&255;if(v<L.length)L[v++]=A>>16&255;if(O===6){if(v<L.length)L[v++]=A>>24&255;q=0,O=0}else q=A>>>24,O+=2}if(v<L.length){L[v++]=q;while(v<L.length)L[v++]=0}},Y.prototype._toArrayLikeBE=function(L,H){var v=L.length-1,q=0;for(var V=0,O=0;V<this.length;V++){var A=this.words[V]<<O|q;if(L[v--]=A&255,v>=0)L[v--]=A>>8&255;if(v>=0)L[v--]=A>>16&255;if(O===6){if(v>=0)L[v--]=A>>24&255;q=0,O=0}else q=A>>>24,O+=2}if(v>=0){L[v--]=q;while(v>=0)L[v--]=0}},Math.clz32)Y.prototype._countBits=function(L){return 32-Math.clz32(L)};else Y.prototype._countBits=function(L){var H=L,v=0;if(H>=4096)v+=13,H>>>=13;if(H>=64)v+=7,H>>>=7;if(H>=8)v+=4,H>>>=4;if(H>=2)v+=2,H>>>=2;return v+H};Y.prototype._zeroBits=function(L){if(L===0)return 26;var H=L,v=0;if((H&8191)===0)v+=13,H>>>=13;if((H&127)===0)v+=7,H>>>=7;if((H&15)===0)v+=4,H>>>=4;if((H&3)===0)v+=2,H>>>=2;if((H&1)===0)v++;return v},Y.prototype.bitLength=function(){var L=this.words[this.length-1],H=this._countBits(L);return(this.length-1)*26+H};function y(L){var H=Array(L.bitLength());for(var v=0;v<H.length;v++){var q=v/26|0,V=v%26;H[v]=L.words[q]>>>V&1}return H}Y.prototype.zeroBits=function(){if(this.isZero())return 0;var L=0;for(var H=0;H<this.length;H++){var v=this._zeroBits(this.words[H]);if(L+=v,v!==26)break}return L},Y.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},Y.prototype.toTwos=function(L){if(this.negative!==0)return this.abs().inotn(L).iaddn(1);return this.clone()},Y.prototype.fromTwos=function(L){if(this.testn(L-1))return this.notn(L).iaddn(1).ineg();return this.clone()},Y.prototype.isNeg=function(){return this.negative!==0},Y.prototype.neg=function(){return this.clone().ineg()},Y.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},Y.prototype.iuor=function(L){while(this.length<L.length)this.words[this.length++]=0;for(var H=0;H<L.length;H++)this.words[H]=this.words[H]|L.words[H];return this._strip()},Y.prototype.ior=function(L){return _((this.negative|L.negative)===0),this.iuor(L)},Y.prototype.or=function(L){if(this.length>L.length)return this.clone().ior(L);return L.clone().ior(this)},Y.prototype.uor=function(L){if(this.length>L.length)return this.clone().iuor(L);return L.clone().iuor(this)},Y.prototype.iuand=function(L){var H;if(this.length>L.length)H=L;else H=this;for(var v=0;v<H.length;v++)this.words[v]=this.words[v]&L.words[v];return this.length=H.length,this._strip()},Y.prototype.iand=function(L){return _((this.negative|L.negative)===0),this.iuand(L)},Y.prototype.and=function(L){if(this.length>L.length)return this.clone().iand(L);return L.clone().iand(this)},Y.prototype.uand=function(L){if(this.length>L.length)return this.clone().iuand(L);return L.clone().iuand(this)},Y.prototype.iuxor=function(L){var H,v;if(this.length>L.length)H=this,v=L;else H=L,v=this;for(var q=0;q<v.length;q++)this.words[q]=H.words[q]^v.words[q];if(this!==H)for(;q<H.length;q++)this.words[q]=H.words[q];return this.length=H.length,this._strip()},Y.prototype.ixor=function(L){return _((this.negative|L.negative)===0),this.iuxor(L)},Y.prototype.xor=function(L){if(this.length>L.length)return this.clone().ixor(L);return L.clone().ixor(this)},Y.prototype.uxor=function(L){if(this.length>L.length)return this.clone().iuxor(L);return L.clone().iuxor(this)},Y.prototype.inotn=function(L){_(typeof L==="number"&&L>=0);var H=Math.ceil(L/26)|0,v=L%26;if(this._expand(H),v>0)H--;for(var q=0;q<H;q++)this.words[q]=~this.words[q]&67108863;if(v>0)this.words[q]=~this.words[q]&67108863>>26-v;return this._strip()},Y.prototype.notn=function(L){return this.clone().inotn(L)},Y.prototype.setn=function(L,H){_(typeof L==="number"&&L>=0);var v=L/26|0,q=L%26;if(this._expand(v+1),H)this.words[v]=this.words[v]|1<<q;else this.words[v]=this.words[v]&~(1<<q);return this._strip()},Y.prototype.iadd=function(L){var H;if(this.negative!==0&&L.negative===0)return this.negative=0,H=this.isub(L),this.negative^=1,this._normSign();else if(this.negative===0&&L.negative!==0)return L.negative=0,H=this.isub(L),L.negative=1,H._normSign();var v,q;if(this.length>L.length)v=this,q=L;else v=L,q=this;var V=0;for(var O=0;O<q.length;O++)H=(v.words[O]|0)+(q.words[O]|0)+V,this.words[O]=H&67108863,V=H>>>26;for(;V!==0&&O<v.length;O++)H=(v.words[O]|0)+V,this.words[O]=H&67108863,V=H>>>26;if(this.length=v.length,V!==0)this.words[this.length]=V,this.length++;else if(v!==this)for(;O<v.length;O++)this.words[O]=v.words[O];return this},Y.prototype.add=function(L){var H;if(L.negative!==0&&this.negative===0)return L.negative=0,H=this.sub(L),L.negative^=1,H;else if(L.negative===0&&this.negative!==0)return this.negative=0,H=L.sub(this),this.negative=1,H;if(this.length>L.length)return this.clone().iadd(L);return L.clone().iadd(this)},Y.prototype.isub=function(L){if(L.negative!==0){L.negative=0;var H=this.iadd(L);return L.negative=1,H._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(L),this.negative=1,this._normSign();var v=this.cmp(L);if(v===0)return this.negative=0,this.length=1,this.words[0]=0,this;var q,V;if(v>0)q=this,V=L;else q=L,V=this;var O=0;for(var A=0;A<V.length;A++)H=(q.words[A]|0)-(V.words[A]|0)+O,O=H>>26,this.words[A]=H&67108863;for(;O!==0&&A<q.length;A++)H=(q.words[A]|0)+O,O=H>>26,this.words[A]=H&67108863;if(O===0&&A<q.length&&q!==this)for(;A<q.length;A++)this.words[A]=q.words[A];if(this.length=Math.max(this.length,A),q!==this)this.negative=1;return this._strip()},Y.prototype.sub=function(L){return this.clone().isub(L)};function g(L,H,v){v.negative=H.negative^L.negative;var q=L.length+H.length|0;v.length=q,q=q-1|0;var V=L.words[0]|0,O=H.words[0]|0,A=V*O,k=A&67108863,j=A/67108864|0;v.words[0]=k;for(var h=1;h<q;h++){var a=j>>>26,J0=j&67108863,K0=Math.min(h,H.length-1);for(var O0=Math.max(0,h-L.length+1);O0<=K0;O0++){var d=h-O0|0;V=L.words[d]|0,O=H.words[O0]|0,A=V*O+J0,a+=A/67108864|0,J0=A&67108863}v.words[h]=J0|0,j=a|0}if(j!==0)v.words[h]=j|0;else v.length--;return v._strip()}var b=function(L,H,v){var q=L.words,V=H.words,O=v.words,A=0,k,j,h,a=q[0]|0,J0=a&8191,K0=a>>>13,O0=q[1]|0,d=O0&8191,m=O0>>>13,r=q[2]|0,Y0=r&8191,W0=r>>>13,I0=q[3]|0,c=I0&8191,s=I0>>>13,S0=q[4]|0,M0=S0&8191,z0=S0>>>13,c0=q[5]|0,F0=c0&8191,q0=c0>>>13,s0=q[6]|0,k0=s0&8191,n0=s0>>>13,M$=q[7]|0,T0=M$&8191,P0=M$>>>13,X$=q[8]|0,p0=X$&8191,l0=X$>>>13,L0=q[9]|0,N0=L0&8191,B0=L0>>>13,Y$=V[0]|0,u=Y$&8191,_0=Y$>>>13,o=V[1]|0,R0=o&8191,x0=o>>>13,p=V[2]|0,A0=p&8191,v0=p>>>13,X0=V[3]|0,H0=X0&8191,C0=X0>>>13,H$=V[4]|0,d0=H$&8191,e=H$>>>13,E0=V[5]|0,b0=E0&8191,f0=E0>>>13,z$=V[6]|0,a0=z$&8191,U$=z$>>>13,c$=V[7]|0,D$=c$&8191,L$=c$>>>13,B$=V[8]|0,Z$=B$&8191,I$=B$>>>13,I1=V[9]|0,C$=I1&8191,g$=I1>>>13;v.negative=L.negative^H.negative,v.length=19,k=Math.imul(J0,u),j=Math.imul(J0,_0),j=j+Math.imul(K0,u)|0,h=Math.imul(K0,_0);var z1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(z1>>>26)|0,z1&=67108863,k=Math.imul(d,u),j=Math.imul(d,_0),j=j+Math.imul(m,u)|0,h=Math.imul(m,_0),k=k+Math.imul(J0,R0)|0,j=j+Math.imul(J0,x0)|0,j=j+Math.imul(K0,R0)|0,h=h+Math.imul(K0,x0)|0;var U1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(U1>>>26)|0,U1&=67108863,k=Math.imul(Y0,u),j=Math.imul(Y0,_0),j=j+Math.imul(W0,u)|0,h=Math.imul(W0,_0),k=k+Math.imul(d,R0)|0,j=j+Math.imul(d,x0)|0,j=j+Math.imul(m,R0)|0,h=h+Math.imul(m,x0)|0,k=k+Math.imul(J0,A0)|0,j=j+Math.imul(J0,v0)|0,j=j+Math.imul(K0,A0)|0,h=h+Math.imul(K0,v0)|0;var o1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(o1>>>26)|0,o1&=67108863,k=Math.imul(c,u),j=Math.imul(c,_0),j=j+Math.imul(s,u)|0,h=Math.imul(s,_0),k=k+Math.imul(Y0,R0)|0,j=j+Math.imul(Y0,x0)|0,j=j+Math.imul(W0,R0)|0,h=h+Math.imul(W0,x0)|0,k=k+Math.imul(d,A0)|0,j=j+Math.imul(d,v0)|0,j=j+Math.imul(m,A0)|0,h=h+Math.imul(m,v0)|0,k=k+Math.imul(J0,H0)|0,j=j+Math.imul(J0,C0)|0,j=j+Math.imul(K0,H0)|0,h=h+Math.imul(K0,C0)|0;var t1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(t1>>>26)|0,t1&=67108863,k=Math.imul(M0,u),j=Math.imul(M0,_0),j=j+Math.imul(z0,u)|0,h=Math.imul(z0,_0),k=k+Math.imul(c,R0)|0,j=j+Math.imul(c,x0)|0,j=j+Math.imul(s,R0)|0,h=h+Math.imul(s,x0)|0,k=k+Math.imul(Y0,A0)|0,j=j+Math.imul(Y0,v0)|0,j=j+Math.imul(W0,A0)|0,h=h+Math.imul(W0,v0)|0,k=k+Math.imul(d,H0)|0,j=j+Math.imul(d,C0)|0,j=j+Math.imul(m,H0)|0,h=h+Math.imul(m,C0)|0,k=k+Math.imul(J0,d0)|0,j=j+Math.imul(J0,e)|0,j=j+Math.imul(K0,d0)|0,h=h+Math.imul(K0,e)|0;var r1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(r1>>>26)|0,r1&=67108863,k=Math.imul(F0,u),j=Math.imul(F0,_0),j=j+Math.imul(q0,u)|0,h=Math.imul(q0,_0),k=k+Math.imul(M0,R0)|0,j=j+Math.imul(M0,x0)|0,j=j+Math.imul(z0,R0)|0,h=h+Math.imul(z0,x0)|0,k=k+Math.imul(c,A0)|0,j=j+Math.imul(c,v0)|0,j=j+Math.imul(s,A0)|0,h=h+Math.imul(s,v0)|0,k=k+Math.imul(Y0,H0)|0,j=j+Math.imul(Y0,C0)|0,j=j+Math.imul(W0,H0)|0,h=h+Math.imul(W0,C0)|0,k=k+Math.imul(d,d0)|0,j=j+Math.imul(d,e)|0,j=j+Math.imul(m,d0)|0,h=h+Math.imul(m,e)|0,k=k+Math.imul(J0,b0)|0,j=j+Math.imul(J0,f0)|0,j=j+Math.imul(K0,b0)|0,h=h+Math.imul(K0,f0)|0;var a1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(a1>>>26)|0,a1&=67108863,k=Math.imul(k0,u),j=Math.imul(k0,_0),j=j+Math.imul(n0,u)|0,h=Math.imul(n0,_0),k=k+Math.imul(F0,R0)|0,j=j+Math.imul(F0,x0)|0,j=j+Math.imul(q0,R0)|0,h=h+Math.imul(q0,x0)|0,k=k+Math.imul(M0,A0)|0,j=j+Math.imul(M0,v0)|0,j=j+Math.imul(z0,A0)|0,h=h+Math.imul(z0,v0)|0,k=k+Math.imul(c,H0)|0,j=j+Math.imul(c,C0)|0,j=j+Math.imul(s,H0)|0,h=h+Math.imul(s,C0)|0,k=k+Math.imul(Y0,d0)|0,j=j+Math.imul(Y0,e)|0,j=j+Math.imul(W0,d0)|0,h=h+Math.imul(W0,e)|0,k=k+Math.imul(d,b0)|0,j=j+Math.imul(d,f0)|0,j=j+Math.imul(m,b0)|0,h=h+Math.imul(m,f0)|0,k=k+Math.imul(J0,a0)|0,j=j+Math.imul(J0,U$)|0,j=j+Math.imul(K0,a0)|0,h=h+Math.imul(K0,U$)|0;var s1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(s1>>>26)|0,s1&=67108863,k=Math.imul(T0,u),j=Math.imul(T0,_0),j=j+Math.imul(P0,u)|0,h=Math.imul(P0,_0),k=k+Math.imul(k0,R0)|0,j=j+Math.imul(k0,x0)|0,j=j+Math.imul(n0,R0)|0,h=h+Math.imul(n0,x0)|0,k=k+Math.imul(F0,A0)|0,j=j+Math.imul(F0,v0)|0,j=j+Math.imul(q0,A0)|0,h=h+Math.imul(q0,v0)|0,k=k+Math.imul(M0,H0)|0,j=j+Math.imul(M0,C0)|0,j=j+Math.imul(z0,H0)|0,h=h+Math.imul(z0,C0)|0,k=k+Math.imul(c,d0)|0,j=j+Math.imul(c,e)|0,j=j+Math.imul(s,d0)|0,h=h+Math.imul(s,e)|0,k=k+Math.imul(Y0,b0)|0,j=j+Math.imul(Y0,f0)|0,j=j+Math.imul(W0,b0)|0,h=h+Math.imul(W0,f0)|0,k=k+Math.imul(d,a0)|0,j=j+Math.imul(d,U$)|0,j=j+Math.imul(m,a0)|0,h=h+Math.imul(m,U$)|0,k=k+Math.imul(J0,D$)|0,j=j+Math.imul(J0,L$)|0,j=j+Math.imul(K0,D$)|0,h=h+Math.imul(K0,L$)|0;var Y1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(Y1>>>26)|0,Y1&=67108863,k=Math.imul(p0,u),j=Math.imul(p0,_0),j=j+Math.imul(l0,u)|0,h=Math.imul(l0,_0),k=k+Math.imul(T0,R0)|0,j=j+Math.imul(T0,x0)|0,j=j+Math.imul(P0,R0)|0,h=h+Math.imul(P0,x0)|0,k=k+Math.imul(k0,A0)|0,j=j+Math.imul(k0,v0)|0,j=j+Math.imul(n0,A0)|0,h=h+Math.imul(n0,v0)|0,k=k+Math.imul(F0,H0)|0,j=j+Math.imul(F0,C0)|0,j=j+Math.imul(q0,H0)|0,h=h+Math.imul(q0,C0)|0,k=k+Math.imul(M0,d0)|0,j=j+Math.imul(M0,e)|0,j=j+Math.imul(z0,d0)|0,h=h+Math.imul(z0,e)|0,k=k+Math.imul(c,b0)|0,j=j+Math.imul(c,f0)|0,j=j+Math.imul(s,b0)|0,h=h+Math.imul(s,f0)|0,k=k+Math.imul(Y0,a0)|0,j=j+Math.imul(Y0,U$)|0,j=j+Math.imul(W0,a0)|0,h=h+Math.imul(W0,U$)|0,k=k+Math.imul(d,D$)|0,j=j+Math.imul(d,L$)|0,j=j+Math.imul(m,D$)|0,h=h+Math.imul(m,L$)|0,k=k+Math.imul(J0,Z$)|0,j=j+Math.imul(J0,I$)|0,j=j+Math.imul(K0,Z$)|0,h=h+Math.imul(K0,I$)|0;var S1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(S1>>>26)|0,S1&=67108863,k=Math.imul(N0,u),j=Math.imul(N0,_0),j=j+Math.imul(B0,u)|0,h=Math.imul(B0,_0),k=k+Math.imul(p0,R0)|0,j=j+Math.imul(p0,x0)|0,j=j+Math.imul(l0,R0)|0,h=h+Math.imul(l0,x0)|0,k=k+Math.imul(T0,A0)|0,j=j+Math.imul(T0,v0)|0,j=j+Math.imul(P0,A0)|0,h=h+Math.imul(P0,v0)|0,k=k+Math.imul(k0,H0)|0,j=j+Math.imul(k0,C0)|0,j=j+Math.imul(n0,H0)|0,h=h+Math.imul(n0,C0)|0,k=k+Math.imul(F0,d0)|0,j=j+Math.imul(F0,e)|0,j=j+Math.imul(q0,d0)|0,h=h+Math.imul(q0,e)|0,k=k+Math.imul(M0,b0)|0,j=j+Math.imul(M0,f0)|0,j=j+Math.imul(z0,b0)|0,h=h+Math.imul(z0,f0)|0,k=k+Math.imul(c,a0)|0,j=j+Math.imul(c,U$)|0,j=j+Math.imul(s,a0)|0,h=h+Math.imul(s,U$)|0,k=k+Math.imul(Y0,D$)|0,j=j+Math.imul(Y0,L$)|0,j=j+Math.imul(W0,D$)|0,h=h+Math.imul(W0,L$)|0,k=k+Math.imul(d,Z$)|0,j=j+Math.imul(d,I$)|0,j=j+Math.imul(m,Z$)|0,h=h+Math.imul(m,I$)|0,k=k+Math.imul(J0,C$)|0,j=j+Math.imul(J0,g$)|0,j=j+Math.imul(K0,C$)|0,h=h+Math.imul(K0,g$)|0;var R1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(R1>>>26)|0,R1&=67108863,k=Math.imul(N0,R0),j=Math.imul(N0,x0),j=j+Math.imul(B0,R0)|0,h=Math.imul(B0,x0),k=k+Math.imul(p0,A0)|0,j=j+Math.imul(p0,v0)|0,j=j+Math.imul(l0,A0)|0,h=h+Math.imul(l0,v0)|0,k=k+Math.imul(T0,H0)|0,j=j+Math.imul(T0,C0)|0,j=j+Math.imul(P0,H0)|0,h=h+Math.imul(P0,C0)|0,k=k+Math.imul(k0,d0)|0,j=j+Math.imul(k0,e)|0,j=j+Math.imul(n0,d0)|0,h=h+Math.imul(n0,e)|0,k=k+Math.imul(F0,b0)|0,j=j+Math.imul(F0,f0)|0,j=j+Math.imul(q0,b0)|0,h=h+Math.imul(q0,f0)|0,k=k+Math.imul(M0,a0)|0,j=j+Math.imul(M0,U$)|0,j=j+Math.imul(z0,a0)|0,h=h+Math.imul(z0,U$)|0,k=k+Math.imul(c,D$)|0,j=j+Math.imul(c,L$)|0,j=j+Math.imul(s,D$)|0,h=h+Math.imul(s,L$)|0,k=k+Math.imul(Y0,Z$)|0,j=j+Math.imul(Y0,I$)|0,j=j+Math.imul(W0,Z$)|0,h=h+Math.imul(W0,I$)|0,k=k+Math.imul(d,C$)|0,j=j+Math.imul(d,g$)|0,j=j+Math.imul(m,C$)|0,h=h+Math.imul(m,g$)|0;var e1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(e1>>>26)|0,e1&=67108863,k=Math.imul(N0,A0),j=Math.imul(N0,v0),j=j+Math.imul(B0,A0)|0,h=Math.imul(B0,v0),k=k+Math.imul(p0,H0)|0,j=j+Math.imul(p0,C0)|0,j=j+Math.imul(l0,H0)|0,h=h+Math.imul(l0,C0)|0,k=k+Math.imul(T0,d0)|0,j=j+Math.imul(T0,e)|0,j=j+Math.imul(P0,d0)|0,h=h+Math.imul(P0,e)|0,k=k+Math.imul(k0,b0)|0,j=j+Math.imul(k0,f0)|0,j=j+Math.imul(n0,b0)|0,h=h+Math.imul(n0,f0)|0,k=k+Math.imul(F0,a0)|0,j=j+Math.imul(F0,U$)|0,j=j+Math.imul(q0,a0)|0,h=h+Math.imul(q0,U$)|0,k=k+Math.imul(M0,D$)|0,j=j+Math.imul(M0,L$)|0,j=j+Math.imul(z0,D$)|0,h=h+Math.imul(z0,L$)|0,k=k+Math.imul(c,Z$)|0,j=j+Math.imul(c,I$)|0,j=j+Math.imul(s,Z$)|0,h=h+Math.imul(s,I$)|0,k=k+Math.imul(Y0,C$)|0,j=j+Math.imul(Y0,g$)|0,j=j+Math.imul(W0,C$)|0,h=h+Math.imul(W0,g$)|0;var B1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(B1>>>26)|0,B1&=67108863,k=Math.imul(N0,H0),j=Math.imul(N0,C0),j=j+Math.imul(B0,H0)|0,h=Math.imul(B0,C0),k=k+Math.imul(p0,d0)|0,j=j+Math.imul(p0,e)|0,j=j+Math.imul(l0,d0)|0,h=h+Math.imul(l0,e)|0,k=k+Math.imul(T0,b0)|0,j=j+Math.imul(T0,f0)|0,j=j+Math.imul(P0,b0)|0,h=h+Math.imul(P0,f0)|0,k=k+Math.imul(k0,a0)|0,j=j+Math.imul(k0,U$)|0,j=j+Math.imul(n0,a0)|0,h=h+Math.imul(n0,U$)|0,k=k+Math.imul(F0,D$)|0,j=j+Math.imul(F0,L$)|0,j=j+Math.imul(q0,D$)|0,h=h+Math.imul(q0,L$)|0,k=k+Math.imul(M0,Z$)|0,j=j+Math.imul(M0,I$)|0,j=j+Math.imul(z0,Z$)|0,h=h+Math.imul(z0,I$)|0,k=k+Math.imul(c,C$)|0,j=j+Math.imul(c,g$)|0,j=j+Math.imul(s,C$)|0,h=h+Math.imul(s,g$)|0;var f1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(f1>>>26)|0,f1&=67108863,k=Math.imul(N0,d0),j=Math.imul(N0,e),j=j+Math.imul(B0,d0)|0,h=Math.imul(B0,e),k=k+Math.imul(p0,b0)|0,j=j+Math.imul(p0,f0)|0,j=j+Math.imul(l0,b0)|0,h=h+Math.imul(l0,f0)|0,k=k+Math.imul(T0,a0)|0,j=j+Math.imul(T0,U$)|0,j=j+Math.imul(P0,a0)|0,h=h+Math.imul(P0,U$)|0,k=k+Math.imul(k0,D$)|0,j=j+Math.imul(k0,L$)|0,j=j+Math.imul(n0,D$)|0,h=h+Math.imul(n0,L$)|0,k=k+Math.imul(F0,Z$)|0,j=j+Math.imul(F0,I$)|0,j=j+Math.imul(q0,Z$)|0,h=h+Math.imul(q0,I$)|0,k=k+Math.imul(M0,C$)|0,j=j+Math.imul(M0,g$)|0,j=j+Math.imul(z0,C$)|0,h=h+Math.imul(z0,g$)|0;var p1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(p1>>>26)|0,p1&=67108863,k=Math.imul(N0,b0),j=Math.imul(N0,f0),j=j+Math.imul(B0,b0)|0,h=Math.imul(B0,f0),k=k+Math.imul(p0,a0)|0,j=j+Math.imul(p0,U$)|0,j=j+Math.imul(l0,a0)|0,h=h+Math.imul(l0,U$)|0,k=k+Math.imul(T0,D$)|0,j=j+Math.imul(T0,L$)|0,j=j+Math.imul(P0,D$)|0,h=h+Math.imul(P0,L$)|0,k=k+Math.imul(k0,Z$)|0,j=j+Math.imul(k0,I$)|0,j=j+Math.imul(n0,Z$)|0,h=h+Math.imul(n0,I$)|0,k=k+Math.imul(F0,C$)|0,j=j+Math.imul(F0,g$)|0,j=j+Math.imul(q0,C$)|0,h=h+Math.imul(q0,g$)|0;var j1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(j1>>>26)|0,j1&=67108863,k=Math.imul(N0,a0),j=Math.imul(N0,U$),j=j+Math.imul(B0,a0)|0,h=Math.imul(B0,U$),k=k+Math.imul(p0,D$)|0,j=j+Math.imul(p0,L$)|0,j=j+Math.imul(l0,D$)|0,h=h+Math.imul(l0,L$)|0,k=k+Math.imul(T0,Z$)|0,j=j+Math.imul(T0,I$)|0,j=j+Math.imul(P0,Z$)|0,h=h+Math.imul(P0,I$)|0,k=k+Math.imul(k0,C$)|0,j=j+Math.imul(k0,g$)|0,j=j+Math.imul(n0,C$)|0,h=h+Math.imul(n0,g$)|0;var v1=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(v1>>>26)|0,v1&=67108863,k=Math.imul(N0,D$),j=Math.imul(N0,L$),j=j+Math.imul(B0,D$)|0,h=Math.imul(B0,L$),k=k+Math.imul(p0,Z$)|0,j=j+Math.imul(p0,I$)|0,j=j+Math.imul(l0,Z$)|0,h=h+Math.imul(l0,I$)|0,k=k+Math.imul(T0,C$)|0,j=j+Math.imul(T0,g$)|0,j=j+Math.imul(P0,C$)|0,h=h+Math.imul(P0,g$)|0;var p_=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(p_>>>26)|0,p_&=67108863,k=Math.imul(N0,Z$),j=Math.imul(N0,I$),j=j+Math.imul(B0,Z$)|0,h=Math.imul(B0,I$),k=k+Math.imul(p0,C$)|0,j=j+Math.imul(p0,g$)|0,j=j+Math.imul(l0,C$)|0,h=h+Math.imul(l0,g$)|0;var YY=(A+k|0)+((j&8191)<<13)|0;A=(h+(j>>>13)|0)+(YY>>>26)|0,YY&=67108863,k=Math.imul(N0,C$),j=Math.imul(N0,g$),j=j+Math.imul(B0,C$)|0,h=Math.imul(B0,g$);var JY=(A+k|0)+((j&8191)<<13)|0;if(A=(h+(j>>>13)|0)+(JY>>>26)|0,JY&=67108863,O[0]=z1,O[1]=U1,O[2]=o1,O[3]=t1,O[4]=r1,O[5]=a1,O[6]=s1,O[7]=Y1,O[8]=S1,O[9]=R1,O[10]=e1,O[11]=B1,O[12]=f1,O[13]=p1,O[14]=j1,O[15]=v1,O[16]=p_,O[17]=YY,O[18]=JY,A!==0)O[19]=A,v.length++;return v};if(!Math.imul)b=g;function l(L,H,v){v.negative=H.negative^L.negative,v.length=L.length+H.length;var q=0,V=0;for(var O=0;O<v.length-1;O++){var A=V;V=0;var k=q&67108863,j=Math.min(O,H.length-1);for(var h=Math.max(0,O-L.length+1);h<=j;h++){var a=O-h,J0=L.words[a]|0,K0=H.words[h]|0,O0=J0*K0,d=O0&67108863;A=A+(O0/67108864|0)|0,d=d+k|0,k=d&67108863,A=A+(d>>>26)|0,V+=A>>>26,A&=67108863}v.words[O]=k,q=A,A=V}if(q!==0)v.words[O]=q;else v.length--;return v._strip()}function i(L,H,v){return l(L,H,v)}Y.prototype.mulTo=function(L,H){var v,q=this.length+L.length;if(this.length===10&&L.length===10)v=b(this,L,H);else if(q<63)v=g(this,L,H);else if(q<1024)v=l(this,L,H);else v=i(this,L,H);return v};function $0(L,H){this.x=L,this.y=H}$0.prototype.makeRBT=function(L){var H=Array(L),v=Y.prototype._countBits(L)-1;for(var q=0;q<L;q++)H[q]=this.revBin(q,v,L);return H},$0.prototype.revBin=function(L,H,v){if(L===0||L===v-1)return L;var q=0;for(var V=0;V<H;V++)q|=(L&1)<<H-V-1,L>>=1;return q},$0.prototype.permute=function(L,H,v,q,V,O){for(var A=0;A<O;A++)q[A]=H[L[A]],V[A]=v[L[A]]},$0.prototype.transform=function(L,H,v,q,V,O){this.permute(O,L,H,v,q,V);for(var A=1;A<V;A<<=1){var k=A<<1,j=Math.cos(2*Math.PI/k),h=Math.sin(2*Math.PI/k);for(var a=0;a<V;a+=k){var J0=j,K0=h;for(var O0=0;O0<A;O0++){var d=v[a+O0],m=q[a+O0],r=v[a+O0+A],Y0=q[a+O0+A],W0=J0*r-K0*Y0;if(Y0=J0*Y0+K0*r,r=W0,v[a+O0]=d+r,q[a+O0]=m+Y0,v[a+O0+A]=d-r,q[a+O0+A]=m-Y0,O0!==k)W0=j*J0-h*K0,K0=j*K0+h*J0,J0=W0}}}},$0.prototype.guessLen13b=function(L,H){var v=Math.max(H,L)|1,q=v&1,V=0;for(v=v/2|0;v;v=v>>>1)V++;return 1<<V+1+q},$0.prototype.conjugate=function(L,H,v){if(v<=1)return;for(var q=0;q<v/2;q++){var V=L[q];L[q]=L[v-q-1],L[v-q-1]=V,V=H[q],H[q]=-H[v-q-1],H[v-q-1]=-V}},$0.prototype.normalize13b=function(L,H){var v=0;for(var q=0;q<H/2;q++){var V=Math.round(L[2*q+1]/H)*8192+Math.round(L[2*q]/H)+v;if(L[q]=V&67108863,V<67108864)v=0;else v=V/67108864|0}return L},$0.prototype.convert13b=function(L,H,v,q){var V=0;for(var O=0;O<H;O++)V=V+(L[O]|0),v[2*O]=V&8191,V=V>>>13,v[2*O+1]=V&8191,V=V>>>13;for(O=2*H;O<q;++O)v[O]=0;_(V===0),_((V&-8192)===0)},$0.prototype.stub=function(L){var H=Array(L);for(var v=0;v<L;v++)H[v]=0;return H},$0.prototype.mulp=function(L,H,v){var q=2*this.guessLen13b(L.length,H.length),V=this.makeRBT(q),O=this.stub(q),A=Array(q),k=Array(q),j=Array(q),h=Array(q),a=Array(q),J0=Array(q),K0=v.words;K0.length=q,this.convert13b(L.words,L.length,A,q),this.convert13b(H.words,H.length,h,q),this.transform(A,O,k,j,q,V),this.transform(h,O,a,J0,q,V);for(var O0=0;O0<q;O0++){var d=k[O0]*a[O0]-j[O0]*J0[O0];j[O0]=k[O0]*J0[O0]+j[O0]*a[O0],k[O0]=d}return this.conjugate(k,j,q),this.transform(k,j,K0,O,q,V),this.conjugate(K0,O,q),this.normalize13b(K0,q),v.negative=L.negative^H.negative,v.length=L.length+H.length,v._strip()},Y.prototype.mul=function(L){var H=new Y(null);return H.words=Array(this.length+L.length),this.mulTo(L,H)},Y.prototype.mulf=function(L){var H=new Y(null);return H.words=Array(this.length+L.length),i(this,L,H)},Y.prototype.imul=function(L){return this.clone().mulTo(L,this)},Y.prototype.imuln=function(L){var H=L<0;if(H)L=-L;_(typeof L==="number"),_(L<67108864);var v=0;for(var q=0;q<this.length;q++){var V=(this.words[q]|0)*L,O=(V&67108863)+(v&67108863);v>>=26,v+=V/67108864|0,v+=O>>>26,this.words[q]=O&67108863}if(v!==0)this.words[q]=v,this.length++;return this.length=L===0?1:this.length,H?this.ineg():this},Y.prototype.muln=function(L){return this.clone().imuln(L)},Y.prototype.sqr=function(){return this.mul(this)},Y.prototype.isqr=function(){return this.imul(this.clone())},Y.prototype.pow=function(L){var H=y(L);if(H.length===0)return new Y(1);var v=this;for(var q=0;q<H.length;q++,v=v.sqr())if(H[q]!==0)break;if(++q<H.length)for(var V=v.sqr();q<H.length;q++,V=V.sqr()){if(H[q]===0)continue;v=v.mul(V)}return v},Y.prototype.iushln=function(L){_(typeof L==="number"&&L>=0);var H=L%26,v=(L-H)/26,q=67108863>>>26-H<<26-H,V;if(H!==0){var O=0;for(V=0;V<this.length;V++){var A=this.words[V]&q,k=(this.words[V]|0)-A<<H;this.words[V]=k|O,O=A>>>26-H}if(O)this.words[V]=O,this.length++}if(v!==0){for(V=this.length-1;V>=0;V--)this.words[V+v]=this.words[V];for(V=0;V<v;V++)this.words[V]=0;this.length+=v}return this._strip()},Y.prototype.ishln=function(L){return _(this.negative===0),this.iushln(L)},Y.prototype.iushrn=function(L,H,v){_(typeof L==="number"&&L>=0);var q;if(H)q=(H-H%26)/26;else q=0;var V=L%26,O=Math.min((L-V)/26,this.length),A=67108863^67108863>>>V<<V,k=v;if(q-=O,q=Math.max(0,q),k){for(var j=0;j<O;j++)k.words[j]=this.words[j];k.length=O}if(O===0);else if(this.length>O){this.length-=O;for(j=0;j<this.length;j++)this.words[j]=this.words[j+O]}else this.words[0]=0,this.length=1;var h=0;for(j=this.length-1;j>=0&&(h!==0||j>=q);j--){var a=this.words[j]|0;this.words[j]=h<<26-V|a>>>V,h=a&A}if(k&&h!==0)k.words[k.length++]=h;if(this.length===0)this.words[0]=0,this.length=1;return this._strip()},Y.prototype.ishrn=function(L,H,v){return _(this.negative===0),this.iushrn(L,H,v)},Y.prototype.shln=function(L){return this.clone().ishln(L)},Y.prototype.ushln=function(L){return this.clone().iushln(L)},Y.prototype.shrn=function(L){return this.clone().ishrn(L)},Y.prototype.ushrn=function(L){return this.clone().iushrn(L)},Y.prototype.testn=function(L){_(typeof L==="number"&&L>=0);var H=L%26,v=(L-H)/26,q=1<<H;if(this.length<=v)return!1;var V=this.words[v];return!!(V&q)},Y.prototype.imaskn=function(L){_(typeof L==="number"&&L>=0);var H=L%26,v=(L-H)/26;if(_(this.negative===0,"imaskn works only with positive numbers"),this.length<=v)return this;if(H!==0)v++;if(this.length=Math.min(v,this.length),H!==0){var q=67108863^67108863>>>H<<H;this.words[this.length-1]&=q}return this._strip()},Y.prototype.maskn=function(L){return this.clone().imaskn(L)},Y.prototype.iaddn=function(L){if(_(typeof L==="number"),_(L<67108864),L<0)return this.isubn(-L);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<=L)return this.words[0]=L-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(L),this.negative=1,this}return this._iaddn(L)},Y.prototype._iaddn=function(L){this.words[0]+=L;for(var H=0;H<this.length&&this.words[H]>=67108864;H++)if(this.words[H]-=67108864,H===this.length-1)this.words[H+1]=1;else this.words[H+1]++;return this.length=Math.max(this.length,H+1),this},Y.prototype.isubn=function(L){if(_(typeof L==="number"),_(L<67108864),L<0)return this.iaddn(-L);if(this.negative!==0)return this.negative=0,this.iaddn(L),this.negative=1,this;if(this.words[0]-=L,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var H=0;H<this.length&&this.words[H]<0;H++)this.words[H]+=67108864,this.words[H+1]-=1;return this._strip()},Y.prototype.addn=function(L){return this.clone().iaddn(L)},Y.prototype.subn=function(L){return this.clone().isubn(L)},Y.prototype.iabs=function(){return this.negative=0,this},Y.prototype.abs=function(){return this.clone().iabs()},Y.prototype._ishlnsubmul=function(L,H,v){var q=L.length+v,V;this._expand(q);var O,A=0;for(V=0;V<L.length;V++){O=(this.words[V+v]|0)+A;var k=(L.words[V]|0)*H;O-=k&67108863,A=(O>>26)-(k/67108864|0),this.words[V+v]=O&67108863}for(;V<this.length-v;V++)O=(this.words[V+v]|0)+A,A=O>>26,this.words[V+v]=O&67108863;if(A===0)return this._strip();_(A===-1),A=0;for(V=0;V<this.length;V++)O=-(this.words[V]|0)+A,A=O>>26,this.words[V]=O&67108863;return this.negative=1,this._strip()},Y.prototype._wordDiv=function(L,H){var v=this.length-L.length,q=this.clone(),V=L,O=V.words[V.length-1]|0,A=this._countBits(O);if(v=26-A,v!==0)V=V.ushln(v),q.iushln(v),O=V.words[V.length-1]|0;var k=q.length-V.length,j;if(H!=="mod"){j=new Y(null),j.length=k+1,j.words=Array(j.length);for(var h=0;h<j.length;h++)j.words[h]=0}var a=q.clone()._ishlnsubmul(V,1,k);if(a.negative===0){if(q=a,j)j.words[k]=1}for(var J0=k-1;J0>=0;J0--){var K0=(q.words[V.length+J0]|0)*67108864+(q.words[V.length+J0-1]|0);K0=Math.min(K0/O|0,67108863),q._ishlnsubmul(V,K0,J0);while(q.negative!==0)if(K0--,q.negative=0,q._ishlnsubmul(V,1,J0),!q.isZero())q.negative^=1;if(j)j.words[J0]=K0}if(j)j._strip();if(q._strip(),H!=="div"&&v!==0)q.iushrn(v);return{div:j||null,mod:q}},Y.prototype.divmod=function(L,H,v){if(_(!L.isZero()),this.isZero())return{div:new Y(0),mod:new Y(0)};var q,V,O;if(this.negative!==0&&L.negative===0){if(O=this.neg().divmod(L,H),H!=="mod")q=O.div.neg();if(H!=="div"){if(V=O.mod.neg(),v&&V.negative!==0)V.iadd(L)}return{div:q,mod:V}}if(this.negative===0&&L.negative!==0){if(O=this.divmod(L.neg(),H),H!=="mod")q=O.div.neg();return{div:q,mod:O.mod}}if((this.negative&L.negative)!==0){if(O=this.neg().divmod(L.neg(),H),H!=="div"){if(V=O.mod.neg(),v&&V.negative!==0)V.isub(L)}return{div:O.div,mod:V}}if(L.length>this.length||this.cmp(L)<0)return{div:new Y(0),mod:this};if(L.length===1){if(H==="div")return{div:this.divn(L.words[0]),mod:null};if(H==="mod")return{div:null,mod:new Y(this.modrn(L.words[0]))};return{div:this.divn(L.words[0]),mod:new Y(this.modrn(L.words[0]))}}return this._wordDiv(L,H)},Y.prototype.div=function(L){return this.divmod(L,"div",!1).div},Y.prototype.mod=function(L){return this.divmod(L,"mod",!1).mod},Y.prototype.umod=function(L){return this.divmod(L,"mod",!0).mod},Y.prototype.divRound=function(L){var H=this.divmod(L);if(H.mod.isZero())return H.div;var v=H.div.negative!==0?H.mod.isub(L):H.mod,q=L.ushrn(1),V=L.andln(1),O=v.cmp(q);if(O<0||V===1&&O===0)return H.div;return H.div.negative!==0?H.div.isubn(1):H.div.iaddn(1)},Y.prototype.modrn=function(L){var H=L<0;if(H)L=-L;_(L<=67108863);var v=67108864%L,q=0;for(var V=this.length-1;V>=0;V--)q=(v*q+(this.words[V]|0))%L;return H?-q:q},Y.prototype.modn=function(L){return this.modrn(L)},Y.prototype.idivn=function(L){var H=L<0;if(H)L=-L;_(L<=67108863);var v=0;for(var q=this.length-1;q>=0;q--){var V=(this.words[q]|0)+v*67108864;this.words[q]=V/L|0,v=V%L}return this._strip(),H?this.ineg():this},Y.prototype.divn=function(L){return this.clone().idivn(L)},Y.prototype.egcd=function(L){_(L.negative===0),_(!L.isZero());var H=this,v=L.clone();if(H.negative!==0)H=H.umod(L);else H=H.clone();var q=new Y(1),V=new Y(0),O=new Y(0),A=new Y(1),k=0;while(H.isEven()&&v.isEven())H.iushrn(1),v.iushrn(1),++k;var j=v.clone(),h=H.clone();while(!H.isZero()){for(var a=0,J0=1;(H.words[0]&J0)===0&&a<26;++a,J0<<=1);if(a>0){H.iushrn(a);while(a-- >0){if(q.isOdd()||V.isOdd())q.iadd(j),V.isub(h);q.iushrn(1),V.iushrn(1)}}for(var K0=0,O0=1;(v.words[0]&O0)===0&&K0<26;++K0,O0<<=1);if(K0>0){v.iushrn(K0);while(K0-- >0){if(O.isOdd()||A.isOdd())O.iadd(j),A.isub(h);O.iushrn(1),A.iushrn(1)}}if(H.cmp(v)>=0)H.isub(v),q.isub(O),V.isub(A);else v.isub(H),O.isub(q),A.isub(V)}return{a:O,b:A,gcd:v.iushln(k)}},Y.prototype._invmp=function(L){_(L.negative===0),_(!L.isZero());var H=this,v=L.clone();if(H.negative!==0)H=H.umod(L);else H=H.clone();var q=new Y(1),V=new Y(0),O=v.clone();while(H.cmpn(1)>0&&v.cmpn(1)>0){for(var A=0,k=1;(H.words[0]&k)===0&&A<26;++A,k<<=1);if(A>0){H.iushrn(A);while(A-- >0){if(q.isOdd())q.iadd(O);q.iushrn(1)}}for(var j=0,h=1;(v.words[0]&h)===0&&j<26;++j,h<<=1);if(j>0){v.iushrn(j);while(j-- >0){if(V.isOdd())V.iadd(O);V.iushrn(1)}}if(H.cmp(v)>=0)H.isub(v),q.isub(V);else v.isub(H),V.isub(q)}var a;if(H.cmpn(1)===0)a=q;else a=V;if(a.cmpn(0)<0)a.iadd(L);return a},Y.prototype.gcd=function(L){if(this.isZero())return L.abs();if(L.isZero())return this.abs();var H=this.clone(),v=L.clone();H.negative=0,v.negative=0;for(var q=0;H.isEven()&&v.isEven();q++)H.iushrn(1),v.iushrn(1);do{while(H.isEven())H.iushrn(1);while(v.isEven())v.iushrn(1);var V=H.cmp(v);if(V<0){var O=H;H=v,v=O}else if(V===0||v.cmpn(1)===0)break;H.isub(v)}while(!0);return v.iushln(q)},Y.prototype.invm=function(L){return this.egcd(L).a.umod(L)},Y.prototype.isEven=function(){return(this.words[0]&1)===0},Y.prototype.isOdd=function(){return(this.words[0]&1)===1},Y.prototype.andln=function(L){return this.words[0]&L},Y.prototype.bincn=function(L){_(typeof L==="number");var H=L%26,v=(L-H)/26,q=1<<H;if(this.length<=v)return this._expand(v+1),this.words[v]|=q,this;var V=q;for(var O=v;V!==0&&O<this.length;O++){var A=this.words[O]|0;A+=V,V=A>>>26,A&=67108863,this.words[O]=A}if(V!==0)this.words[O]=V,this.length++;return this},Y.prototype.isZero=function(){return this.length===1&&this.words[0]===0},Y.prototype.cmpn=function(L){var H=L<0;if(this.negative!==0&&!H)return-1;if(this.negative===0&&H)return 1;this._strip();var v;if(this.length>1)v=1;else{if(H)L=-L;_(L<=67108863,"Number is too big");var q=this.words[0]|0;v=q===L?0:q<L?-1:1}if(this.negative!==0)return-v|0;return v},Y.prototype.cmp=function(L){if(this.negative!==0&&L.negative===0)return-1;if(this.negative===0&&L.negative!==0)return 1;var H=this.ucmp(L);if(this.negative!==0)return-H|0;return H},Y.prototype.ucmp=function(L){if(this.length>L.length)return 1;if(this.length<L.length)return-1;var H=0;for(var v=this.length-1;v>=0;v--){var q=this.words[v]|0,V=L.words[v]|0;if(q===V)continue;if(q<V)H=-1;else if(q>V)H=1;break}return H},Y.prototype.gtn=function(L){return this.cmpn(L)===1},Y.prototype.gt=function(L){return this.cmp(L)===1},Y.prototype.gten=function(L){return this.cmpn(L)>=0},Y.prototype.gte=function(L){return this.cmp(L)>=0},Y.prototype.ltn=function(L){return this.cmpn(L)===-1},Y.prototype.lt=function(L){return this.cmp(L)===-1},Y.prototype.lten=function(L){return this.cmpn(L)<=0},Y.prototype.lte=function(L){return this.cmp(L)<=0},Y.prototype.eqn=function(L){return this.cmpn(L)===0},Y.prototype.eq=function(L){return this.cmp(L)===0},Y.red=function(L){return new D(L)},Y.prototype.toRed=function(L){return _(!this.red,"Already a number in reduction context"),_(this.negative===0,"red works only with positives"),L.convertTo(this)._forceRed(L)},Y.prototype.fromRed=function(){return _(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},Y.prototype._forceRed=function(L){return this.red=L,this},Y.prototype.forceRed=function(L){return _(!this.red,"Already a number in reduction context"),this._forceRed(L)},Y.prototype.redAdd=function(L){return _(this.red,"redAdd works only with red numbers"),this.red.add(this,L)},Y.prototype.redIAdd=function(L){return _(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,L)},Y.prototype.redSub=function(L){return _(this.red,"redSub works only with red numbers"),this.red.sub(this,L)},Y.prototype.redISub=function(L){return _(this.red,"redISub works only with red numbers"),this.red.isub(this,L)},Y.prototype.redShl=function(L){return _(this.red,"redShl works only with red numbers"),this.red.shl(this,L)},Y.prototype.redMul=function(L){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.mul(this,L)},Y.prototype.redIMul=function(L){return _(this.red,"redMul works only with red numbers"),this.red._verify2(this,L),this.red.imul(this,L)},Y.prototype.redSqr=function(){return _(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},Y.prototype.redISqr=function(){return _(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},Y.prototype.redSqrt=function(){return _(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},Y.prototype.redInvm=function(){return _(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},Y.prototype.redNeg=function(){return _(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},Y.prototype.redPow=function(L){return _(this.red&&!L.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,L)};var Q0={k256:null,p224:null,p192:null,p25519:null};function G0(L,H){this.name=L,this.p=new Y(H,16),this.n=this.p.bitLength(),this.k=new Y(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}G0.prototype._tmp=function(){var L=new Y(null);return L.words=Array(Math.ceil(this.n/13)),L},G0.prototype.ireduce=function(L){var H=L,v;do this.split(H,this.tmp),H=this.imulK(H),H=H.iadd(this.tmp),v=H.bitLength();while(v>this.n);var q=v<this.n?-1:H.ucmp(this.p);if(q===0)H.words[0]=0,H.length=1;else if(q>0)H.isub(this.p);else if(H.strip!==void 0)H.strip();else H._strip();return H},G0.prototype.split=function(L,H){L.iushrn(this.n,0,H)},G0.prototype.imulK=function(L){return L.imul(this.k)};function D0(){G0.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}J(D0,G0),D0.prototype.split=function(L,H){var v=4194303,q=Math.min(L.length,9);for(var V=0;V<q;V++)H.words[V]=L.words[V];if(H.length=q,L.length<=9){L.words[0]=0,L.length=1;return}var O=L.words[9];H.words[H.length++]=O&v;for(V=10;V<L.length;V++){var A=L.words[V]|0;L.words[V-10]=(A&v)<<4|O>>>22,O=A}if(O>>>=22,L.words[V-10]=O,O===0&&L.length>10)L.length-=10;else L.length-=9},D0.prototype.imulK=function(L){L.words[L.length]=0,L.words[L.length+1]=0,L.length+=2;var H=0;for(var v=0;v<L.length;v++){var q=L.words[v]|0;H+=q*977,L.words[v]=H&67108863,H=q*64+(H/67108864|0)}if(L.words[L.length-1]===0){if(L.length--,L.words[L.length-1]===0)L.length--}return L};function t(){G0.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}J(t,G0);function V0(){G0.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}J(V0,G0);function Q(){G0.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}J(Q,G0),Q.prototype.imulK=function(L){var H=0;for(var v=0;v<L.length;v++){var q=(L.words[v]|0)*19+H,V=q&67108863;q>>>=26,L.words[v]=V,H=q}if(H!==0)L.words[L.length++]=H;return L},Y._prime=function(L){if(Q0[L])return Q0[L];var H;if(L==="k256")H=new D0;else if(L==="p224")H=new t;else if(L==="p192")H=new V0;else if(L==="p25519")H=new Q;else throw Error("Unknown prime "+L);return Q0[L]=H,H};function D(L){if(typeof L==="string"){var H=Y._prime(L);this.m=H.p,this.prime=H}else _(L.gtn(1),"modulus must be greater than 1"),this.m=L,this.prime=null}D.prototype._verify1=function(L){_(L.negative===0,"red works only with positives"),_(L.red,"red works only with red numbers")},D.prototype._verify2=function(L,H){_((L.negative|H.negative)===0,"red works only with positives"),_(L.red&&L.red===H.red,"red works only with red numbers")},D.prototype.imod=function(L){if(this.prime)return this.prime.ireduce(L)._forceRed(this);return T(L,L.umod(this.m)._forceRed(this)),L},D.prototype.neg=function(L){if(L.isZero())return L.clone();return this.m.sub(L)._forceRed(this)},D.prototype.add=function(L,H){this._verify2(L,H);var v=L.add(H);if(v.cmp(this.m)>=0)v.isub(this.m);return v._forceRed(this)},D.prototype.iadd=function(L,H){this._verify2(L,H);var v=L.iadd(H);if(v.cmp(this.m)>=0)v.isub(this.m);return v},D.prototype.sub=function(L,H){this._verify2(L,H);var v=L.sub(H);if(v.cmpn(0)<0)v.iadd(this.m);return v._forceRed(this)},D.prototype.isub=function(L,H){this._verify2(L,H);var v=L.isub(H);if(v.cmpn(0)<0)v.iadd(this.m);return v},D.prototype.shl=function(L,H){return this._verify1(L),this.imod(L.ushln(H))},D.prototype.imul=function(L,H){return this._verify2(L,H),this.imod(L.imul(H))},D.prototype.mul=function(L,H){return this._verify2(L,H),this.imod(L.mul(H))},D.prototype.isqr=function(L){return this.imul(L,L.clone())},D.prototype.sqr=function(L){return this.mul(L,L)},D.prototype.sqrt=function(L){if(L.isZero())return L.clone();var H=this.m.andln(3);if(_(H%2===1),H===3){var v=this.m.add(new Y(1)).iushrn(2);return this.pow(L,v)}var q=this.m.subn(1),V=0;while(!q.isZero()&&q.andln(1)===0)V++,q.iushrn(1);_(!q.isZero());var O=new Y(1).toRed(this),A=O.redNeg(),k=this.m.subn(1).iushrn(1),j=this.m.bitLength();j=new Y(2*j*j).toRed(this);while(this.pow(j,k).cmp(A)!==0)j.redIAdd(A);var h=this.pow(j,q),a=this.pow(L,q.addn(1).iushrn(1)),J0=this.pow(L,q),K0=V;while(J0.cmp(O)!==0){var O0=J0;for(var d=0;O0.cmp(O)!==0;d++)O0=O0.redSqr();_(d<K0);var m=this.pow(h,new Y(1).iushln(K0-d-1));a=a.redMul(m),h=m.redSqr(),J0=J0.redMul(h),K0=d}return a},D.prototype.invm=function(L){var H=L._invmp(this.m);if(H.negative!==0)return H.negative=0,this.imod(H).redNeg();else return this.imod(H)},D.prototype.pow=function(L,H){if(H.isZero())return new Y(1).toRed(this);if(H.cmpn(1)===0)return L.clone();var v=4,q=Array(1<<v);q[0]=new Y(1).toRed(this),q[1]=L;for(var V=2;V<q.length;V++)q[V]=this.mul(q[V-1],L);var O=q[0],A=0,k=0,j=H.bitLength()%26;if(j===0)j=26;for(V=H.length-1;V>=0;V--){var h=H.words[V];for(var a=j-1;a>=0;a--){var J0=h>>a&1;if(O!==q[0])O=this.sqr(O);if(J0===0&&A===0){k=0;continue}if(A<<=1,A|=J0,k++,k!==v&&(V!==0||a!==0))continue;O=this.mul(O,q[A]),k=0,A=0}j=26}return O},D.prototype.convertTo=function(L){var H=L.umod(this.m);return H===L?H.clone():H},D.prototype.convertFrom=function(L){var H=L.clone();return H.red=null,H},Y.mont=function(L){return new F(L)};function F(L){if(D.call(this,L),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new Y(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)}J(F,D),F.prototype.convertTo=function(L){return this.imod(L.ushln(this.shift))},F.prototype.convertFrom=function(L){var H=this.imod(L.mul(this.rinv));return H.red=null,H},F.prototype.imul=function(L,H){if(L.isZero()||H.isZero())return L.words[0]=0,L.length=1,L;var v=L.imul(H),q=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),V=v.isub(q).iushrn(this.shift),O=V;if(V.cmp(this.m)>=0)O=V.isub(this.m);else if(V.cmpn(0)<0)O=V.iadd(this.m);return O._forceRed(this)},F.prototype.mul=function(L,H){if(L.isZero()||H.isZero())return new Y(0)._forceRed(this);var v=L.mul(H),q=v.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),V=v.isub(q).iushrn(this.shift),O=V;if(V.cmp(this.m)>=0)O=V.isub(this.m);else if(V.cmpn(0)<0)O=V.iadd(this.m);return O._forceRed(this)},F.prototype.invm=function(L){var H=this.imod(L._invmp(this.m).mul(this.r2));return H._forceRed(this)}})(typeof I>"u"||I,$)}),eN=$$(($,I)=>{var G=Ln(),Z=wZ(),_=iU().Buffer;function J(R){var M=R.modulus.byteLength(),E;do E=new G(Z(M));while(E.cmp(R.modulus)>=0||!E.umod(R.prime1)||!E.umod(R.prime2));return E}function Y(R){var M=J(R),E=M.toRed(G.mont(R.modulus)).redPow(new G(R.publicExponent)).fromRed();return{blinder:E,unblinder:M.invm(R.modulus)}}function W(R,M){var E=Y(M),T=M.modulus.byteLength(),S=new G(R).mul(E.blinder).umod(M.modulus),N=S.toRed(G.mont(M.prime1)),B=S.toRed(G.mont(M.prime2)),x=M.coefficient,w=M.prime1,y=M.prime2,g=N.redPow(M.exponent1).fromRed(),b=B.redPow(M.exponent2).fromRed(),l=g.isub(b).imul(x).umod(w).imul(y);return b.iadd(l).imul(E.unblinder).umod(M.modulus).toArrayLike(_,"be",T)}W.getr=J,I.exports=W}),Dn=$$(($,I)=>{var G=tN(),Z=wZ(),_=xZ(),J=rN(),Y=aN(),W=QW(),R=sN(),M=eN(),E=iU().Buffer;I.exports=function(B,x,w){var y;if(B.padding)y=B.padding;else if(w)y=1;else y=4;var g=G(B),b;if(y===4)b=T(g,x);else if(y===1)b=S(g,x,w);else if(y===3){if(b=new W(x),b.cmp(g.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");if(w)return M(b,g);else return R(b,g)};function T(B,x){var w=B.modulus.byteLength(),y=x.length,g=_("sha1").update(E.alloc(0)).digest(),b=g.length,l=2*b;if(y>w-l-2)throw Error("message too long");var i=E.alloc(w-y-l-2),$0=w-b-1,Q0=Z(b),G0=Y(E.concat([g,i,E.alloc(1,1),x],$0),J(Q0,$0)),D0=Y(Q0,J(G0,b));return new W(E.concat([E.alloc(1),D0,G0],w))}function S(B,x,w){var y=x.length,g=B.modulus.byteLength();if(y>g-11)throw Error("message too long");var b;if(w)b=E.alloc(g-y-3,255);else b=N(g-y-3);return new W(E.concat([E.from([0,w?1:2]),b,E.alloc(1),x],g))}function N(B){var x=E.allocUnsafe(B),w=0,y=Z(B*2),g=0,b;while(w<B){if(g===y.length)y=Z(B*2),g=0;if(b=y[g++],b)x[w++]=b}return x}}),Kn=$$(($,I)=>{var G=tN(),Z=rN(),_=aN(),J=QW(),Y=eN(),W=xZ(),R=sN(),M=iU().Buffer;I.exports=function(N,B,x){var w;if(N.padding)w=N.padding;else if(x)w=1;else w=4;var y=G(N),g=y.modulus.byteLength();if(B.length>g||new J(B).cmp(y.modulus)>=0)throw Error("decryption error");var b;if(x)b=R(new J(B),y);else b=Y(B,y);var l=M.alloc(g-b.length);if(b=M.concat([l,b],g),w===4)return E(y,b);else if(w===1)return T(y,b,x);else if(w===3)return b;else throw Error("unknown padding")};function E(N,B){var x=N.modulus.byteLength(),w=W("sha1").update(M.alloc(0)).digest(),y=w.length;if(B[0]!==0)throw Error("decryption error");var g=B.slice(1,y+1),b=B.slice(y+1),l=_(g,Z(b,y)),i=_(b,Z(l,x-y-1));if(S(w,i.slice(0,y)))throw Error("decryption error");var $0=y;while(i[$0]===0)$0++;if(i[$0++]!==1)throw Error("decryption error");return i.slice($0)}function T(N,B,x){var w=B.slice(0,2),y=2,g=0;while(B[y++]!==0)if(y>=B.length){g++;break}var b=B.slice(2,y-1);if(w.toString("hex")!=="0002"&&!x||w.toString("hex")!=="0001"&&x)g++;if(b.length<8)g++;if(g)throw Error("decryption error");return B.slice(y)}function S(N,B){N=M.from(N),B=M.from(B);var x=0,w=N.length;if(N.length!==B.length)x++,w=Math.min(N.length,B.length);var y=-1;while(++y<w)x+=N[y]^B[y];return x}}),eK=$$(($)=>{$.publicEncrypt=Dn(),$.privateDecrypt=Kn(),$.privateEncrypt=function(I,G){return $.publicEncrypt(I,G,!0)},$.publicDecrypt=function(I,G){return $.privateDecrypt(I,G,!0)}}),Wn=$$(($)=>{var I=(d1(),P$(k6));if(typeof I.publicEncrypt!=="function")I=eK();if($.publicEncrypt=I.publicEncrypt,$.privateDecrypt=I.privateDecrypt,typeof I.privateEncrypt!=="function")$.privateEncrypt=eK().privateEncrypt;else $.privateEncrypt=I.privateEncrypt;if(typeof I.publicDecrypt!=="function")$.publicDecrypt=eK().publicDecrypt;else $.publicDecrypt=I.publicDecrypt}),Hn=$$(($)=>{var I=iU(),G=wZ(),Z=I.Buffer,_=I.kMaxLength,J=globalThis.crypto||globalThis.msCrypto,Y=Math.pow(2,32)-1;function W(S,N){if(typeof S!=="number"||S!==S)throw TypeError("offset must be a number");if(S>Y||S<0)throw TypeError("offset must be a uint32");if(S>_||S>N)throw RangeError("offset out of range")}function R(S,N,B){if(typeof S!=="number"||S!==S)throw TypeError("size must be a number");if(S>Y||S<0)throw TypeError("size must be a uint32");if(S+N>B||S>_)throw RangeError("buffer too small")}J&&J.getRandomValues,$.randomFill=M,$.randomFillSync=T;function M(S,N,B,x){if(!Z.isBuffer(S)&&!(S instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof N==="function")x=N,N=0,B=S.length;else if(typeof B==="function")x=B,B=S.length-N;else if(typeof x!=="function")throw TypeError('"cb" argument must be a function');return W(N,S.length),R(B,N,S.length),E(S,N,B,x)}function E(S,N,B,x){if(!1)var w,y;if(x){G(B,function(b,l){if(b)return x(b);l.copy(S,N),x(null,S)});return}var g=G(B);return g.copy(S,N),S}function T(S,N,B){if(typeof N>"u")N=0;if(!Z.isBuffer(S)&&!(S instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(W(N,S.length),B===void 0)B=S.length-N;return R(B,N,S.length),E(S,N,B)}}),Fn=$$(($,I)=>{var G=(d1(),P$(k6));if(typeof G.randomFill==="function"&&typeof G.randomFillSync==="function")$.randomFill=G.randomFill,$.randomFillSync=G.randomFillSync;else I.exports=Hn()}),Tn=$$(($)=>{$.randomBytes=$.rng=$.pseudoRandomBytes=$.prng=wZ(),$.createHash=$.Hash=xZ(),$.createHmac=$.Hmac=CN();var I=ph(),G=Object.keys(I),Z=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(G);$.getHashes=function(){return Z};var _=bN();$.pbkdf2=_.pbkdf2,$.pbkdf2Sync=_.pbkdf2Sync;var J=Pu();$.Cipher=J.Cipher,$.createCipher=J.createCipher,$.Cipheriv=J.Cipheriv,$.createCipheriv=J.createCipheriv,$.Decipher=J.Decipher,$.createDecipher=J.createDecipher,$.Decipheriv=J.Decipheriv,$.createDecipheriv=J.createDecipheriv,$.getCiphers=J.getCiphers,$.listCiphers=J.listCiphers;var Y=Su();$.DiffieHellmanGroup=Y.DiffieHellmanGroup,$.createDiffieHellmanGroup=Y.createDiffieHellmanGroup,$.getDiffieHellman=Y.getDiffieHellman,$.createDiffieHellman=Y.createDiffieHellman,$.DiffieHellman=Y.DiffieHellman;var W=vu();$.createSign=W.createSign,$.Sign=W.Sign,$.createVerify=W.createVerify,$.Verify=W.Verify,$.createECDH=tu();var R=Wn();$.publicEncrypt=R.publicEncrypt,$.privateEncrypt=R.privateEncrypt,$.publicDecrypt=R.publicDecrypt,$.privateDecrypt=R.privateDecrypt;var M=Fn();$.randomFill=M.randomFill,$.randomFillSync=M.randomFillSync,$.createCredentials=function(){throw Error(`sorry, createCredentials is not implemented yet
|
|
244
244
|
we accept pull requests
|
|
245
245
|
https://github.com/browserify/crypto-browserify`)},$.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}}),r$=nh(Tn(),1),Mn=r$.prng,An=r$.pseudoRandomBytes,En=r$.rng,Rn=r$.randomBytes,Vn=r$.Hash,j6=r$.createHash,Pn=r$.Hmac,Sn=r$.createHmac,vn=r$.getHashes,Cn=r$.pbkdf2,qn=r$.pbkdf2Sync,Nn=r$.Cipher,Bn=r$.createCipher,jn=r$.Cipheriv,kn=r$.createCipheriv,gn=r$.Decipher,wn=r$.createDecipher,xn=r$.Decipheriv,fn=r$.createDecipheriv,yn=r$.getCiphers,bn=r$.listCiphers,hn=r$.DiffieHellmanGroup,un=r$.createDiffieHellmanGroup,nn=r$.getDiffieHellman,pn=r$.createDiffieHellman,cn=r$.DiffieHellman,ln=r$.createSign,mn=r$.Sign,dn=r$.createVerify,on=r$.Verify,tn=r$.createECDH,rn=r$.publicEncrypt,an=r$.privateEncrypt,sn=r$.publicDecrypt,en=r$.privateDecrypt,$p=r$.randomFill,Up=r$.randomFillSync,Ip=r$.createCredentials,_p=r$.constants,Yp=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"];Qp=crypto,zp=crypto});var JB={};LU(JB,{sep:()=>LW,resolve:()=>$I,relative:()=>OW,posix:()=>YB,parse:()=>XB,normalize:()=>ZW,join:()=>G1,isAbsolute:()=>B_,format:()=>_B,extname:()=>IB,dirname:()=>i1,delimiter:()=>GB,default:()=>Op,basename:()=>LG,_makeLong:()=>UB});function rI($){if(typeof $!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify($))}function $B($,I){var G="",Z=0,_=-1,J=0,Y;for(var W=0;W<=$.length;++W){if(W<$.length)Y=$.charCodeAt(W);else if(Y===47)break;else Y=47;if(Y===47){if(_===W-1||J===1);else if(_!==W-1&&J===2){if(G.length<2||Z!==2||G.charCodeAt(G.length-1)!==46||G.charCodeAt(G.length-2)!==46){if(G.length>2){var R=G.lastIndexOf("/");if(R!==G.length-1){if(R===-1)G="",Z=0;else G=G.slice(0,R),Z=G.length-1-G.lastIndexOf("/");_=W,J=0;continue}}else if(G.length===2||G.length===1){G="",Z=0,_=W,J=0;continue}}if(I){if(G.length>0)G+="/..";else G="..";Z=2}}else{if(G.length>0)G+="/"+$.slice(_+1,W);else G=$.slice(_+1,W);Z=W-_-1}_=W,J=0}else if(Y===46&&J!==-1)++J;else J=-1}return G}function Zp($,I){var G=I.dir||I.root,Z=I.base||(I.name||"")+(I.ext||"");if(!G)return Z;if(G===I.root)return G+Z;return G+$+Z}function $I(){var $="",I=!1,G;for(var Z=arguments.length-1;Z>=-1&&!I;Z--){var _;if(Z>=0)_=arguments[Z];else{if(G===void 0)G=process.cwd();_=G}if(rI(_),_.length===0)continue;$=_+"/"+$,I=_.charCodeAt(0)===47}if($=$B($,!I),I)if($.length>0)return"/"+$;else return"/";else if($.length>0)return $;else return"."}function ZW($){if(rI($),$.length===0)return".";var I=$.charCodeAt(0)===47,G=$.charCodeAt($.length-1)===47;if($=$B($,!I),$.length===0&&!I)$=".";if($.length>0&&G)$+="/";if(I)return"/"+$;return $}function B_($){return rI($),$.length>0&&$.charCodeAt(0)===47}function G1(){if(arguments.length===0)return".";var $;for(var I=0;I<arguments.length;++I){var G=arguments[I];if(rI(G),G.length>0)if($===void 0)$=G;else $+="/"+G}if($===void 0)return".";return ZW($)}function OW($,I){if(rI($),rI(I),$===I)return"";if($=$I($),I=$I(I),$===I)return"";var G=1;for(;G<$.length;++G)if($.charCodeAt(G)!==47)break;var Z=$.length,_=Z-G,J=1;for(;J<I.length;++J)if(I.charCodeAt(J)!==47)break;var Y=I.length,W=Y-J,R=_<W?_:W,M=-1,E=0;for(;E<=R;++E){if(E===R){if(W>R){if(I.charCodeAt(J+E)===47)return I.slice(J+E+1);else if(E===0)return I.slice(J+E)}else if(_>R){if($.charCodeAt(G+E)===47)M=E;else if(E===0)M=0}break}var T=$.charCodeAt(G+E),S=I.charCodeAt(J+E);if(T!==S)break;else if(T===47)M=E}var N="";for(E=G+M+1;E<=Z;++E)if(E===Z||$.charCodeAt(E)===47)if(N.length===0)N+="..";else N+="/..";if(N.length>0)return N+I.slice(J+M);else{if(J+=M,I.charCodeAt(J)===47)++J;return I.slice(J)}}function UB($){return $}function i1($){if(rI($),$.length===0)return".";var I=$.charCodeAt(0),G=I===47,Z=-1,_=!0;for(var J=$.length-1;J>=1;--J)if(I=$.charCodeAt(J),I===47){if(!_){Z=J;break}}else _=!1;if(Z===-1)return G?"/":".";if(G&&Z===1)return"//";return $.slice(0,Z)}function LG($,I){if(I!==void 0&&typeof I!=="string")throw TypeError('"ext" argument must be a string');rI($);var G=0,Z=-1,_=!0,J;if(I!==void 0&&I.length>0&&I.length<=$.length){if(I.length===$.length&&I===$)return"";var Y=I.length-1,W=-1;for(J=$.length-1;J>=0;--J){var R=$.charCodeAt(J);if(R===47){if(!_){G=J+1;break}}else{if(W===-1)_=!1,W=J+1;if(Y>=0)if(R===I.charCodeAt(Y)){if(--Y===-1)Z=J}else Y=-1,Z=W}}if(G===Z)Z=W;else if(Z===-1)Z=$.length;return $.slice(G,Z)}else{for(J=$.length-1;J>=0;--J)if($.charCodeAt(J)===47){if(!_){G=J+1;break}}else if(Z===-1)_=!1,Z=J+1;if(Z===-1)return"";return $.slice(G,Z)}}function IB($){rI($);var I=-1,G=0,Z=-1,_=!0,J=0;for(var Y=$.length-1;Y>=0;--Y){var W=$.charCodeAt(Y);if(W===47){if(!_){G=Y+1;break}continue}if(Z===-1)_=!1,Z=Y+1;if(W===46){if(I===-1)I=Y;else if(J!==1)J=1}else if(I!==-1)J=-1}if(I===-1||Z===-1||J===0||J===1&&I===Z-1&&I===G+1)return"";return $.slice(I,Z)}function _B($){if($===null||typeof $!=="object")throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof $);return Zp("/",$)}function XB($){rI($);var I={root:"",dir:"",base:"",ext:"",name:""};if($.length===0)return I;var G=$.charCodeAt(0),Z=G===47,_;if(Z)I.root="/",_=1;else _=0;var J=-1,Y=0,W=-1,R=!0,M=$.length-1,E=0;for(;M>=_;--M){if(G=$.charCodeAt(M),G===47){if(!R){Y=M+1;break}continue}if(W===-1)R=!1,W=M+1;if(G===46){if(J===-1)J=M;else if(E!==1)E=1}else if(J!==-1)E=-1}if(J===-1||W===-1||E===0||E===1&&J===W-1&&J===Y+1){if(W!==-1)if(Y===0&&Z)I.base=I.name=$.slice(1,W);else I.base=I.name=$.slice(Y,W)}else{if(Y===0&&Z)I.name=$.slice(1,J),I.base=$.slice(1,W);else I.name=$.slice(Y,J),I.base=$.slice(Y,W);I.ext=$.slice(J,W)}if(Y>0)I.dir=$.slice(0,Y-1);else if(Z)I.dir="/";return I}var LW="/",GB=":",YB,Op;var DU=WI(()=>{YB=(($)=>($.posix=$,$))({resolve:$I,normalize:ZW,isAbsolute:B_,join:G1,relative:OW,_makeLong:UB,dirname:i1,basename:LG,extname:IB,format:_B,parse:XB,sep:LW,delimiter:GB,win32:null,posix:null}),Op=YB});var Sk=N6((WI0,Pk)=>{function Ci($){let I=String($??"").trim(),G=/^(\S+)\s+from\s+(\S+)$/.exec(I);if(G){let Z=Date.parse(G[1]),_=Date.parse(G[2]);if(!Number.isNaN(Z)&&!Number.isNaN(_))return{kind:"running",at:Z,since:_}}else{let Z=Date.parse(I);if(!Number.isNaN(Z))return{kind:"frozen",at:Z}}throw Error(`world clock: expected an ISO-8601 instant, or "<instant> from <instant>", got ${JSON.stringify(I.slice(0,60))}`)}function qi($,I){return $.kind==="running"?$.at+(I-$.since):$.at}function Ni($){return $.kind==="running"?`${new Date($.at).toISOString()} from ${new Date($.since).toISOString()}`:new Date($.at).toISOString()}Pk.exports={parseClock:Ci,clockNowMs:qi,formatClock:Ni}});var EE={};LU(EE,{resolveObject:()=>Qg,resolve:()=>Jg,parse:()=>UY,format:()=>Yg,default:()=>oo,Url:()=>y6,URLSearchParams:()=>Xg,URL:()=>ME});function AE($){return typeof $==="string"}function Gg($){return typeof $==="object"&&$!==null}function l5($){return $===null}function bo($){return $==null}function y6(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function UY($,I,G){if($&&Gg($)&&$ instanceof y6)return $;var Z=new y6;return Z.parse($,I,G),Z}function Yg($){if(AE($))$=UY($);if(!($ instanceof y6))return y6.prototype.format.call($);return $.format()}function Jg($,I){return UY($,!1,!0).resolve(I)}function Qg($,I){if(!$)return I;return UY($,!1,!0).resolveObject(I)}var ME,Xg,ho,uo,no,po,co,HE,Ug,Ig,lo=255,_g,mo,io,FE,$Y,TE,oo;var RE=WI(()=>{({URL:ME,URLSearchParams:Xg}=globalThis);ho=/^([a-z0-9.+-]+:)/i,uo=/:[0-9]*$/,no=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,po=["<",">",'"',"`"," ","\r",`
|
|
246
|
-
`,"\t"],co=["{","}","|","\\","^","`"].concat(po),HE=["'"].concat(co),Ug=["%","/","?",";","#"].concat(HE),Ig=["/","?","#"],_g=/^[+a-z0-9A-Z_-]{0,63}$/,mo=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,io={javascript:!0,"javascript:":!0},FE={javascript:!0,"javascript:":!0},$Y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},TE={parse($){var I=decodeURIComponent;return($+"").replace(/\+/g," ").split("&").filter(Boolean).reduce(function(G,Z,_){var J=Z.split("="),Y=I(J[0]||""),W=I(J[1]||""),R=G[Y];return G[Y]=R===void 0?W:[].concat(R,W),G},{})},stringify($){var I=encodeURIComponent;return Object.keys($||{}).reduce(function(G,Z){return[].concat($[Z]).forEach(function(_){G.push(I(Z)+"="+I(_))}),G},[]).join("&").replace(/\s/g,"+")}};y6.prototype.parse=function($,I,G){if(!AE($))throw TypeError("Parameter 'url' must be a string, not "+typeof $);var Z=$.indexOf("?"),_=Z!==-1&&Z<$.indexOf("#")?"?":"#",J=$.split(_),Y=/\\/g;J[0]=J[0].replace(Y,"/"),$=J.join(_);var W=$;if(W=W.trim(),!G&&$.split("#").length===1){var R=no.exec(W);if(R){if(this.path=W,this.href=W,this.pathname=R[1],R[2])if(this.search=R[2],I)this.query=TE.parse(this.search.substr(1));else this.query=this.search.substr(1);else if(I)this.search="",this.query={};return this}}var M=ho.exec(W);if(M){M=M[0];var E=M.toLowerCase();this.protocol=E,W=W.substr(M.length)}if(G||M||W.match(/^\/\/[^@\/]+@[^@\/]+/)){var T=W.substr(0,2)==="//";if(T&&!(M&&FE[M]))W=W.substr(2),this.slashes=!0}if(!FE[M]&&(T||M&&!$Y[M])){var S=-1;for(var N=0;N<Ig.length;N++){var B=W.indexOf(Ig[N]);if(B!==-1&&(S===-1||B<S))S=B}var x,w;if(S===-1)w=W.lastIndexOf("@");else w=W.lastIndexOf("@",S);if(w!==-1)x=W.slice(0,w),W=W.slice(w+1),this.auth=decodeURIComponent(x);S=-1;for(var N=0;N<Ug.length;N++){var B=W.indexOf(Ug[N]);if(B!==-1&&(S===-1||B<S))S=B}if(S===-1)S=W.length;this.host=W.slice(0,S),W=W.slice(S),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y){var g=this.hostname.split(/\./);for(var N=0,b=g.length;N<b;N++){var l=g[N];if(!l)continue;if(!l.match(_g)){var i="";for(var $0=0,Q0=l.length;$0<Q0;$0++)if(l.charCodeAt($0)>127)i+="x";else i+=l[$0];if(!i.match(_g)){var G0=g.slice(0,N),D0=g.slice(N+1),t=l.match(mo);if(t)G0.push(t[1]),D0.unshift(t[2]);if(D0.length)W="/"+D0.join(".")+W;this.hostname=G0.join(".");break}}}}if(this.hostname.length>lo)this.hostname="";else this.hostname=this.hostname.toLowerCase();if(!y)this.hostname=new ME(`https://${this.hostname}`).hostname;var V0=this.port?":"+this.port:"",Q=this.hostname||"";if(this.host=Q+V0,this.href+=this.host,y){if(this.hostname=this.hostname.substr(1,this.hostname.length-2),W[0]!=="/")W="/"+W}}if(!io[E])for(var N=0,b=HE.length;N<b;N++){var D=HE[N];if(W.indexOf(D)===-1)continue;var F=encodeURIComponent(D);if(F===D)F=escape(D);W=W.split(D).join(F)}var L=W.indexOf("#");if(L!==-1)this.hash=W.substr(L),W=W.slice(0,L);var H=W.indexOf("?");if(H!==-1){if(this.search=W.substr(H),this.query=W.substr(H+1),I)this.query=TE.parse(this.query);W=W.slice(0,H)}else if(I)this.search="",this.query={};if(W)this.pathname=W;if($Y[E]&&this.hostname&&!this.pathname)this.pathname="/";if(this.pathname||this.search){var V0=this.pathname||"",v=this.search||"";this.path=V0+v}return this.href=this.format(),this};y6.prototype.format=function(){var $=this.auth||"";if($)$=encodeURIComponent($),$=$.replace(/%3A/i,":"),$+="@";var I=this.protocol||"",G=this.pathname||"",Z=this.hash||"",_=!1,J="";if(this.host)_=$+this.host;else if(this.hostname){if(_=$+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port)_+=":"+this.port}if(this.query&&Gg(this.query)&&Object.keys(this.query).length)J=TE.stringify(this.query);var Y=this.search||J&&"?"+J||"";if(I&&I.substr(-1)!==":")I+=":";if(this.slashes||(!I||$Y[I])&&_!==!1){if(_="//"+(_||""),G&&G.charAt(0)!=="/")G="/"+G}else if(!_)_="";if(Z&&Z.charAt(0)!=="#")Z="#"+Z;if(Y&&Y.charAt(0)!=="?")Y="?"+Y;return G=G.replace(/[?#]/g,function(W){return encodeURIComponent(W)}),Y=Y.replace("#","%23"),I+_+G+Y+Z};y6.prototype.resolve=function($){return this.resolveObject(UY($,!1,!0)).format()};y6.prototype.resolveObject=function($){if(AE($)){var I=new y6;I.parse($,!1,!0),$=I}var G=new y6,Z=Object.keys(this);for(var _=0;_<Z.length;_++){var J=Z[_];G[J]=this[J]}if(G.hash=$.hash,$.href==="")return G.href=G.format(),G;if($.slashes&&!$.protocol){var Y=Object.keys($);for(var W=0;W<Y.length;W++){var R=Y[W];if(R!=="protocol")G[R]=$[R]}if($Y[G.protocol]&&G.hostname&&!G.pathname)G.path=G.pathname="/";return G.href=G.format(),G}if($.protocol&&$.protocol!==G.protocol){if(!$Y[$.protocol]){var M=Object.keys($);for(var E=0;E<M.length;E++){var T=M[E];G[T]=$[T]}return G.href=G.format(),G}if(G.protocol=$.protocol,!$.host&&!FE[$.protocol]){var b=($.pathname||"").split("/");while(b.length&&!($.host=b.shift()));if(!$.host)$.host="";if(!$.hostname)$.hostname="";if(b[0]!=="")b.unshift("");if(b.length<2)b.unshift("");G.pathname=b.join("/")}else G.pathname=$.pathname;if(G.search=$.search,G.query=$.query,G.host=$.host||"",G.auth=$.auth,G.hostname=$.hostname||$.host,G.port=$.port,G.pathname||G.search){var S=G.pathname||"",N=G.search||"";G.path=S+N}return G.slashes=G.slashes||$.slashes,G.href=G.format(),G}var B=G.pathname&&G.pathname.charAt(0)==="/",x=$.host||$.pathname&&$.pathname.charAt(0)==="/",w=x||B||G.host&&$.pathname,y=w,g=G.pathname&&G.pathname.split("/")||[],b=$.pathname&&$.pathname.split("/")||[],l=G.protocol&&!$Y[G.protocol];if(l){if(G.hostname="",G.port=null,G.host)if(g[0]==="")g[0]=G.host;else g.unshift(G.host);if(G.host="",$.protocol){if($.hostname=null,$.port=null,$.host)if(b[0]==="")b[0]=$.host;else b.unshift($.host);$.host=null}w=w&&(b[0]===""||g[0]==="")}if(x)G.host=$.host||$.host===""?$.host:G.host,G.hostname=$.hostname||$.hostname===""?$.hostname:G.hostname,G.search=$.search,G.query=$.query,g=b;else if(b.length){if(!g)g=[];g.pop(),g=g.concat(b),G.search=$.search,G.query=$.query}else if(!bo($.search)){if(l){G.hostname=G.host=g.shift();var i=G.host&&G.host.indexOf("@")>0?G.host.split("@"):!1;if(i)G.auth=i.shift(),G.host=G.hostname=i.shift()}if(G.search=$.search,G.query=$.query,!l5(G.pathname)||!l5(G.search))G.path=(G.pathname?G.pathname:"")+(G.search?G.search:"");return G.href=G.format(),G}if(!g.length){if(G.pathname=null,G.search)G.path="/"+G.search;else G.path=null;return G.href=G.format(),G}var $0=g.slice(-1)[0],Q0=(G.host||$.host||g.length>1)&&($0==="."||$0==="..")||$0==="",G0=0;for(var D0=g.length;D0>=0;D0--)if($0=g[D0],$0===".")g.splice(D0,1);else if($0==="..")g.splice(D0,1),G0++;else if(G0)g.splice(D0,1),G0--;if(!w&&!y)for(;G0--;G0)g.unshift("..");if(w&&g[0]!==""&&(!g[0]||g[0].charAt(0)!=="/"))g.unshift("");if(Q0&&g.join("/").substr(-1)!=="/")g.push("");var t=g[0]===""||g[0]&&g[0].charAt(0)==="/";if(l){G.hostname=G.host=t?"":g.length?g.shift():"";var i=G.host&&G.host.indexOf("@")>0?G.host.split("@"):!1;if(i)G.auth=i.shift(),G.host=G.hostname=i.shift()}if(w=w||G.host&&g.length,w&&!t)g.unshift("");if(!g.length)G.pathname=null,G.path=null;else G.pathname=g.join("/");if(!l5(G.pathname)||!l5(G.search))G.path=(G.pathname?G.pathname:"")+(G.search?G.search:"");return G.auth=$.auth||G.auth,G.slashes=G.slashes||$.slashes,G.href=G.format(),G};y6.prototype.parseHost=function(){var $=this.host,I=uo.exec($);if(I){if(I=I[0],I!==":")this.port=I.substr(1);$=$.substr(0,$.length-I.length)}if($)this.hostname=$};oo={parse:UY,resolve:Jg,resolveObject:Qg,format:Yg,Url:y6,URL:ME,URLSearchParams:Xg}});var m5={};LU(m5,{request:()=>Lt,globalAgent:()=>Ft,get:()=>Dt,default:()=>Ag,STATUS_CODES:()=>Tt,METHODS:()=>Mt,IncomingMessage:()=>Wt,ClientRequest:()=>Kt,Agent:()=>Ht});var to,ro,zg,ao,so,eo=($,I,G)=>{G=$!=null?to(ro($)):{};let Z=I||!$||!$.__esModule?zg(G,"default",{value:$,enumerable:!0}):G;for(let _ of ao($))if(!so.call(Z,_))zg(Z,_,{get:()=>$[_],enumerable:!0});return Z},x1=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports),Og,$t,UX,Ut,Lg,IX,Dg,It,Kg,IY,_t,Zg,VE,Xt,Gt,Wg,Hg,Yt,Jt,Fg,Tg,Qt,zt,Zt,Ot,Mg,Lt,Dt,Kt,Wt,Ht,Ft,Tt,Mt,Ag;var Xz=WI(()=>{to=Object.create,{getPrototypeOf:ro,defineProperty:zg,getOwnPropertyNames:ao}=Object,so=Object.prototype.hasOwnProperty,Og=x1(($)=>{$.fetch=_(globalThis.fetch)&&_(globalThis.ReadableStream),$.writableStream=_(globalThis.WritableStream),$.abortController=_(globalThis.AbortController);var I;function G(){if(I!==void 0)return I;if(globalThis.XMLHttpRequest){I=new globalThis.XMLHttpRequest;try{I.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch(J){I=null}}else I=null;return I}function Z(J){var Y=G();if(!Y)return!1;try{return Y.responseType=J,Y.responseType===J}catch(W){}return!1}$.arraybuffer=$.fetch||Z("arraybuffer"),$.msstream=!$.fetch&&Z("ms-stream"),$.mozchunkedarraybuffer=!$.fetch&&Z("moz-chunked-arraybuffer"),$.overrideMimeType=$.fetch||(G()?_(G().overrideMimeType):!1);function _(J){return typeof J==="function"}I=null}),$t=x1(($,I)=>{if(typeof Object.create==="function")I.exports=function(G,Z){if(Z)G.super_=Z,G.prototype=Object.create(Z.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}})};else I.exports=function(G,Z){if(Z){G.super_=Z;var _=function(){};_.prototype=Z.prototype,G.prototype=new _,G.prototype.constructor=G}}}),UX=x1(($,I)=>{try{if(G=(v_(),P$(S_)),typeof G.inherits!=="function")throw"";I.exports=G.inherits}catch(Z){I.exports=$t()}var G}),Ut=x1(($,I)=>{function G(w,y){var g=Object.keys(w);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(w);y&&(b=b.filter(function(l){return Object.getOwnPropertyDescriptor(w,l).enumerable})),g.push.apply(g,b)}return g}function Z(w){for(var y=1;y<arguments.length;y++){var g=arguments[y]!=null?arguments[y]:{};y%2?G(Object(g),!0).forEach(function(b){_(w,b,g[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(g)):G(Object(g)).forEach(function(b){Object.defineProperty(w,b,Object.getOwnPropertyDescriptor(g,b))})}return w}function _(w,y,g){if(y=R(y),y in w)Object.defineProperty(w,y,{value:g,enumerable:!0,configurable:!0,writable:!0});else w[y]=g;return w}function J(w,y){if(!(w instanceof y))throw TypeError("Cannot call a class as a function")}function Y(w,y){for(var g=0;g<y.length;g++){var b=y[g];if(b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b)b.writable=!0;Object.defineProperty(w,R(b.key),b)}}function W(w,y,g){if(y)Y(w.prototype,y);if(g)Y(w,g);return Object.defineProperty(w,"prototype",{writable:!1}),w}function R(w){var y=M(w,"string");return typeof y==="symbol"?y:String(y)}function M(w,y){if(typeof w!=="object"||w===null)return w;var g=w[Symbol.toPrimitive];if(g!==void 0){var b=g.call(w,y||"default");if(typeof b!=="object")return b;throw TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(w)}var E=(u1(),P$(h1)),T=E.Buffer,S=(v_(),P$(S_)),N=S.inspect,B=N&&N.custom||"inspect";function x(w,y,g){T.prototype.copy.call(w,y,g)}I.exports=function(){function w(){J(this,w),this.head=null,this.tail=null,this.length=0}return W(w,[{key:"push",value:function(y){var g={data:y,next:null};if(this.length>0)this.tail.next=g;else this.head=g;this.tail=g,++this.length}},{key:"unshift",value:function(y){var g={data:y,next:this.head};if(this.length===0)this.tail=g;this.head=g,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var y=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,y}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(y){if(this.length===0)return"";var g=this.head,b=""+g.data;while(g=g.next)b+=y+g.data;return b}},{key:"concat",value:function(y){if(this.length===0)return T.alloc(0);var g=T.allocUnsafe(y>>>0),b=this.head,l=0;while(b)x(b.data,g,l),l+=b.data.length,b=b.next;return g}},{key:"consume",value:function(y,g){var b;if(y<this.head.data.length)b=this.head.data.slice(0,y),this.head.data=this.head.data.slice(y);else if(y===this.head.data.length)b=this.shift();else b=g?this._getString(y):this._getBuffer(y);return b}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(y){var g=this.head,b=1,l=g.data;y-=l.length;while(g=g.next){var i=g.data,$0=y>i.length?i.length:y;if($0===i.length)l+=i;else l+=i.slice(0,y);if(y-=$0,y===0){if($0===i.length)if(++b,g.next)this.head=g.next;else this.head=this.tail=null;else this.head=g,g.data=i.slice($0);break}++b}return this.length-=b,l}},{key:"_getBuffer",value:function(y){var g=T.allocUnsafe(y),b=this.head,l=1;b.data.copy(g),y-=b.data.length;while(b=b.next){var i=b.data,$0=y>i.length?i.length:y;if(i.copy(g,g.length-y,0,$0),y-=$0,y===0){if($0===i.length)if(++l,b.next)this.head=b.next;else this.head=this.tail=null;else this.head=b,b.data=i.slice($0);break}++l}return this.length-=l,g}},{key:B,value:function(y,g){return N(this,Z(Z({},g),{},{depth:0,customInspect:!1}))}}]),w}()}),Lg=x1(($,I)=>{function G(R,M){var E=this,T=this._readableState&&this._readableState.destroyed,S=this._writableState&&this._writableState.destroyed;if(T||S){if(M)M(R);else if(R){if(!this._writableState)process.nextTick(Y,this,R);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,process.nextTick(Y,this,R)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy(R||null,function(N){if(!M&&N)if(!E._writableState)process.nextTick(Z,E,N);else if(!E._writableState.errorEmitted)E._writableState.errorEmitted=!0,process.nextTick(Z,E,N);else process.nextTick(_,E);else if(M)process.nextTick(_,E),M(N);else process.nextTick(_,E)}),this}function Z(R,M){Y(R,M),_(R)}function _(R){if(R._writableState&&!R._writableState.emitClose)return;if(R._readableState&&!R._readableState.emitClose)return;R.emit("close")}function J(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function Y(R,M){R.emit("error",M)}function W(R,M){var{_readableState:E,_writableState:T}=R;if(E&&E.autoDestroy||T&&T.autoDestroy)R.destroy(M);else R.emit("error",M)}I.exports={destroy:G,undestroy:J,errorOrDestroy:W}}),IX=x1(($,I)=>{var G={};function Z(R,M,E){if(!E)E=Error;function T(N,B,x){if(typeof M==="string")return M;else return M(N,B,x)}class S extends E{constructor(N,B,x){super(T(N,B,x))}}S.prototype.name=E.name,S.prototype.code=R,G[R]=S}function _(R,M){if(Array.isArray(R)){let E=R.length;if(R=R.map((T)=>String(T)),E>2)return`one of ${M} ${R.slice(0,E-1).join(", ")}, or `+R[E-1];else if(E===2)return`one of ${M} ${R[0]} or ${R[1]}`;else return`of ${M} ${R[0]}`}else return`of ${M} ${String(R)}`}function J(R,M,E){return R.substr(!E||E<0?0:+E,M.length)===M}function Y(R,M,E){if(E===void 0||E>R.length)E=R.length;return R.substring(E-M.length,E)===M}function W(R,M,E){if(typeof E!=="number")E=0;if(E+M.length>R.length)return!1;else return R.indexOf(M,E)!==-1}Z("ERR_INVALID_OPT_VALUE",function(R,M){return'The value "'+M+'" is invalid for option "'+R+'"'},TypeError),Z("ERR_INVALID_ARG_TYPE",function(R,M,E){let T;if(typeof M==="string"&&J(M,"not "))T="must not be",M=M.replace(/^not /,"");else T="must be";let S;if(Y(R," argument"))S=`The ${R} ${T} ${_(M,"type")}`;else{let N=W(R,".")?"property":"argument";S=`The "${R}" ${N} ${T} ${_(M,"type")}`}return S+=`. Received type ${typeof E}`,S},TypeError),Z("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Z("ERR_METHOD_NOT_IMPLEMENTED",function(R){return"The "+R+" method is not implemented"}),Z("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Z("ERR_STREAM_DESTROYED",function(R){return"Cannot call "+R+" after a stream was destroyed"}),Z("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Z("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Z("ERR_STREAM_WRITE_AFTER_END","write after end"),Z("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Z("ERR_UNKNOWN_ENCODING",function(R){return"Unknown encoding: "+R},TypeError),Z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),$.codes=G}),Dg=x1(($,I)=>{var G=IX().codes.ERR_INVALID_OPT_VALUE;function Z(J,Y,W){return J.highWaterMark!=null?J.highWaterMark:Y?J[W]:null}function _(J,Y,W,R){var M=Z(Y,R,W);if(M!=null){if(!(isFinite(M)&&Math.floor(M)===M)||M<0){var E=R?W:"highWaterMark";throw new G(E,M)}return Math.floor(M)}return J.objectMode?16:16384}I.exports={getHighWaterMark:_}}),It=x1(($,I)=>{I.exports=(v_(),P$(S_)).deprecate}),Kg=x1(($,I)=>{I.exports=t;function G(O0){var d=this;this.next=null,this.entry=null,this.finish=function(){K0(d,O0)}}var Z;t.WritableState=G0;var _={deprecate:It()},J=g4(),Y=(u1(),P$(h1)).Buffer,W=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function R(O0){return Y.from(O0)}function M(O0){return Y.isBuffer(O0)||O0 instanceof W}var E=Lg(),T=Dg(),S=T.getHighWaterMark,N=IX().codes,B=N.ERR_INVALID_ARG_TYPE,x=N.ERR_METHOD_NOT_IMPLEMENTED,w=N.ERR_MULTIPLE_CALLBACK,y=N.ERR_STREAM_CANNOT_PIPE,g=N.ERR_STREAM_DESTROYED,b=N.ERR_STREAM_NULL_VALUES,l=N.ERR_STREAM_WRITE_AFTER_END,i=N.ERR_UNKNOWN_ENCODING,$0=E.errorOrDestroy;UX()(t,J);function Q0(){}function G0(O0,d,m){if(Z=Z||IY(),O0=O0||{},typeof m!=="boolean")m=d instanceof Z;if(this.objectMode=!!O0.objectMode,m)this.objectMode=this.objectMode||!!O0.writableObjectMode;this.highWaterMark=S(this,O0,"writableHighWaterMark",m),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var r=O0.decodeStrings===!1;this.decodeStrings=!r,this.defaultEncoding=O0.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Y0){q(d,Y0)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=O0.emitClose!==!1,this.autoDestroy=!!O0.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new G(this)}G0.prototype.getBuffer=function(){var O0=this.bufferedRequest,d=[];while(O0)d.push(O0),O0=O0.next;return d},function(){try{Object.defineProperty(G0.prototype,"buffer",{get:_.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(O0){}}();var D0;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")D0=Function.prototype[Symbol.hasInstance],Object.defineProperty(t,Symbol.hasInstance,{value:function(O0){if(D0.call(this,O0))return!0;if(this!==t)return!1;return O0&&O0._writableState instanceof G0}});else D0=function(O0){return O0 instanceof this};function t(O0){Z=Z||IY();var d=this instanceof Z;if(!d&&!D0.call(t,this))return new t(O0);if(this._writableState=new G0(O0,this,d),this.writable=!0,O0){if(typeof O0.write==="function")this._write=O0.write;if(typeof O0.writev==="function")this._writev=O0.writev;if(typeof O0.destroy==="function")this._destroy=O0.destroy;if(typeof O0.final==="function")this._final=O0.final}J.call(this)}t.prototype.pipe=function(){$0(this,new y)};function V0(O0,d){var m=new l;$0(O0,m),process.nextTick(d,m)}function Q(O0,d,m,r){var Y0;if(m===null)Y0=new b;else if(typeof m!=="string"&&!d.objectMode)Y0=new B("chunk",["string","Buffer"],m);if(Y0)return $0(O0,Y0),process.nextTick(r,Y0),!1;return!0}t.prototype.write=function(O0,d,m){var r=this._writableState,Y0=!1,W0=!r.objectMode&&M(O0);if(W0&&!Y.isBuffer(O0))O0=R(O0);if(typeof d==="function")m=d,d=null;if(W0)d="buffer";else if(!d)d=r.defaultEncoding;if(typeof m!=="function")m=Q0;if(r.ending)V0(this,m);else if(W0||Q(this,r,O0,m))r.pendingcb++,Y0=F(this,r,W0,O0,d,m);return Y0},t.prototype.cork=function(){this._writableState.corked++},t.prototype.uncork=function(){var O0=this._writableState;if(O0.corked){if(O0.corked--,!O0.writing&&!O0.corked&&!O0.bufferProcessing&&O0.bufferedRequest)A(this,O0)}},t.prototype.setDefaultEncoding=function(O0){if(typeof O0==="string")O0=O0.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((O0+"").toLowerCase())>-1))throw new i(O0);return this._writableState.defaultEncoding=O0,this},Object.defineProperty(t.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function D(O0,d,m){if(!O0.objectMode&&O0.decodeStrings!==!1&&typeof d==="string")d=Y.from(d,m);return d}Object.defineProperty(t.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function F(O0,d,m,r,Y0,W0){if(!m){var I0=D(d,r,Y0);if(r!==I0)m=!0,Y0="buffer",r=I0}var c=d.objectMode?1:r.length;d.length+=c;var s=d.length<d.highWaterMark;if(!s)d.needDrain=!0;if(d.writing||d.corked){var S0=d.lastBufferedRequest;if(d.lastBufferedRequest={chunk:r,encoding:Y0,isBuf:m,callback:W0,next:null},S0)S0.next=d.lastBufferedRequest;else d.bufferedRequest=d.lastBufferedRequest;d.bufferedRequestCount+=1}else L(O0,d,!1,c,r,Y0,W0);return s}function L(O0,d,m,r,Y0,W0,I0){if(d.writelen=r,d.writecb=I0,d.writing=!0,d.sync=!0,d.destroyed)d.onwrite(new g("write"));else if(m)O0._writev(Y0,d.onwrite);else O0._write(Y0,W0,d.onwrite);d.sync=!1}function H(O0,d,m,r,Y0){if(--d.pendingcb,m)process.nextTick(Y0,r),process.nextTick(a,O0,d),O0._writableState.errorEmitted=!0,$0(O0,r);else Y0(r),O0._writableState.errorEmitted=!0,$0(O0,r),a(O0,d)}function v(O0){O0.writing=!1,O0.writecb=null,O0.length-=O0.writelen,O0.writelen=0}function q(O0,d){var m=O0._writableState,r=m.sync,Y0=m.writecb;if(typeof Y0!=="function")throw new w;if(v(m),d)H(O0,m,r,d,Y0);else{var W0=k(m)||O0.destroyed;if(!W0&&!m.corked&&!m.bufferProcessing&&m.bufferedRequest)A(O0,m);if(r)process.nextTick(V,O0,m,W0,Y0);else V(O0,m,W0,Y0)}}function V(O0,d,m,r){if(!m)O(O0,d);d.pendingcb--,r(),a(O0,d)}function O(O0,d){if(d.length===0&&d.needDrain)d.needDrain=!1,O0.emit("drain")}function A(O0,d){d.bufferProcessing=!0;var m=d.bufferedRequest;if(O0._writev&&m&&m.next){var r=d.bufferedRequestCount,Y0=Array(r),W0=d.corkedRequestsFree;W0.entry=m;var I0=0,c=!0;while(m){if(Y0[I0]=m,!m.isBuf)c=!1;m=m.next,I0+=1}if(Y0.allBuffers=c,L(O0,d,!0,d.length,Y0,"",W0.finish),d.pendingcb++,d.lastBufferedRequest=null,W0.next)d.corkedRequestsFree=W0.next,W0.next=null;else d.corkedRequestsFree=new G(d);d.bufferedRequestCount=0}else{while(m){var{chunk:s,encoding:S0,callback:M0}=m,z0=d.objectMode?1:s.length;if(L(O0,d,!1,z0,s,S0,M0),m=m.next,d.bufferedRequestCount--,d.writing)break}if(m===null)d.lastBufferedRequest=null}d.bufferedRequest=m,d.bufferProcessing=!1}t.prototype._write=function(O0,d,m){m(new x("_write()"))},t.prototype._writev=null,t.prototype.end=function(O0,d,m){var r=this._writableState;if(typeof O0==="function")m=O0,O0=null,d=null;else if(typeof d==="function")m=d,d=null;if(O0!==null&&O0!==void 0)this.write(O0,d);if(r.corked)r.corked=1,this.uncork();if(!r.ending)J0(this,r,m);return this},Object.defineProperty(t.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function k(O0){return O0.ending&&O0.length===0&&O0.bufferedRequest===null&&!O0.finished&&!O0.writing}function j(O0,d){O0._final(function(m){if(d.pendingcb--,m)$0(O0,m);d.prefinished=!0,O0.emit("prefinish"),a(O0,d)})}function h(O0,d){if(!d.prefinished&&!d.finalCalled)if(typeof O0._final==="function"&&!d.destroyed)d.pendingcb++,d.finalCalled=!0,process.nextTick(j,O0,d);else d.prefinished=!0,O0.emit("prefinish")}function a(O0,d){var m=k(d);if(m){if(h(O0,d),d.pendingcb===0){if(d.finished=!0,O0.emit("finish"),d.autoDestroy){var r=O0._readableState;if(!r||r.autoDestroy&&r.endEmitted)O0.destroy()}}}return m}function J0(O0,d,m){if(d.ending=!0,a(O0,d),m)if(d.finished)process.nextTick(m);else O0.once("finish",m);d.ended=!0,O0.writable=!1}function K0(O0,d,m){var r=O0.entry;O0.entry=null;while(r){var Y0=r.callback;d.pendingcb--,Y0(m),r=r.next}d.corkedRequestsFree.next=O0}Object.defineProperty(t.prototype,"destroyed",{enumerable:!1,get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function(O0){if(!this._writableState)return;this._writableState.destroyed=O0}}),t.prototype.destroy=E.destroy,t.prototype._undestroy=E.undestroy,t.prototype._destroy=function(O0,d){d(O0)}}),IY=x1(($,I)=>{var G=Object.keys||function(T){var S=[];for(var N in T)S.push(N);return S};I.exports=R;var Z=Wg(),_=Kg();UX()(R,Z);{J=G(_.prototype);for(W=0;W<J.length;W++)if(Y=J[W],!R.prototype[Y])R.prototype[Y]=_.prototype[Y]}var J,Y,W;function R(T){if(!(this instanceof R))return new R(T);if(Z.call(this,T),_.call(this,T),this.allowHalfOpen=!0,T){if(T.readable===!1)this.readable=!1;if(T.writable===!1)this.writable=!1;if(T.allowHalfOpen===!1)this.allowHalfOpen=!1,this.once("end",M)}}Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(R.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(R.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function M(){if(this._writableState.ended)return;process.nextTick(E,this)}function E(T){T.end()}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set:function(T){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=T,this._writableState.destroyed=T}})}),_t=x1(($,I)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var G=(u1(),P$(h1)),Z=G.Buffer;function _(Y,W){for(var R in Y)W[R]=Y[R]}if(Z.from&&Z.alloc&&Z.allocUnsafe&&Z.allocUnsafeSlow)I.exports=G;else _(G,$),$.Buffer=J;function J(Y,W,R){return Z(Y,W,R)}J.prototype=Object.create(Z.prototype),_(Z,J),J.from=function(Y,W,R){if(typeof Y==="number")throw TypeError("Argument must not be a number");return Z(Y,W,R)},J.alloc=function(Y,W,R){if(typeof Y!=="number")throw TypeError("Argument must be a number");var M=Z(Y);if(W!==void 0)if(typeof R==="string")M.fill(W,R);else M.fill(W);else M.fill(0);return M},J.allocUnsafe=function(Y){if(typeof Y!=="number")throw TypeError("Argument must be a number");return Z(Y)},J.allocUnsafeSlow=function(Y){if(typeof Y!=="number")throw TypeError("Argument must be a number");return G.SlowBuffer(Y)}}),Zg=x1(($)=>{var I=_t().Buffer,G=I.isEncoding||function(g){switch(g=""+g,g&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Z(g){if(!g)return"utf8";var b;while(!0)switch(g){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return g;default:if(b)return;g=(""+g).toLowerCase(),b=!0}}function _(g){var b=Z(g);if(typeof b!=="string"&&(I.isEncoding===G||!G(g)))throw Error("Unknown encoding: "+g);return b||g}$.StringDecoder=J;function J(g){this.encoding=_(g);var b;switch(this.encoding){case"utf16le":this.text=S,this.end=N,b=4;break;case"utf8":this.fillLast=M,b=4;break;case"base64":this.text=B,this.end=x,b=3;break;default:this.write=w,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=I.allocUnsafe(b)}J.prototype.write=function(g){if(g.length===0)return"";var b,l;if(this.lastNeed){if(b=this.fillLast(g),b===void 0)return"";l=this.lastNeed,this.lastNeed=0}else l=0;if(l<g.length)return b?b+this.text(g,l):this.text(g,l);return b||""},J.prototype.end=T,J.prototype.text=E,J.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function Y(g){if(g<=127)return 0;else if(g>>5===6)return 2;else if(g>>4===14)return 3;else if(g>>3===30)return 4;return g>>6===2?-1:-2}function W(g,b,l){var i=b.length-1;if(i<l)return 0;var $0=Y(b[i]);if($0>=0){if($0>0)g.lastNeed=$0-1;return $0}if(--i<l||$0===-2)return 0;if($0=Y(b[i]),$0>=0){if($0>0)g.lastNeed=$0-2;return $0}if(--i<l||$0===-2)return 0;if($0=Y(b[i]),$0>=0){if($0>0)if($0===2)$0=0;else g.lastNeed=$0-3;return $0}return 0}function R(g,b,l){if((b[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&b.length>1){if((b[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&b.length>2){if((b[2]&192)!==128)return g.lastNeed=2,"�"}}}function M(g){var b=this.lastTotal-this.lastNeed,l=R(this,g,b);if(l!==void 0)return l;if(this.lastNeed<=g.length)return g.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,b,0,g.length),this.lastNeed-=g.length}function E(g,b){var l=W(this,g,b);if(!this.lastNeed)return g.toString("utf8",b);this.lastTotal=l;var i=g.length-(l-this.lastNeed);return g.copy(this.lastChar,0,i),g.toString("utf8",b,i)}function T(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed)return b+"�";return b}function S(g,b){if((g.length-b)%2===0){var l=g.toString("utf16le",b);if(l){var i=l.charCodeAt(l.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],l.slice(0,-1)}return l}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",b,g.length-1)}function N(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed){var l=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,l)}return b}function B(g,b){var l=(g.length-b)%3;if(l===0)return g.toString("base64",b);if(this.lastNeed=3-l,this.lastTotal=3,l===1)this.lastChar[0]=g[g.length-1];else this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1];return g.toString("base64",b,g.length-l)}function x(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed)return b+this.lastChar.toString("base64",0,3-this.lastNeed);return b}function w(g){return g.toString(this.encoding)}function y(g){return g&&g.length?this.write(g):""}}),VE=x1(($,I)=>{var G=IX().codes.ERR_STREAM_PREMATURE_CLOSE;function Z(W){var R=!1;return function(){if(R)return;R=!0;for(var M=arguments.length,E=Array(M),T=0;T<M;T++)E[T]=arguments[T];W.apply(this,E)}}function _(){}function J(W){return W.setHeader&&typeof W.abort==="function"}function Y(W,R,M){if(typeof R==="function")return Y(W,null,R);if(!R)R={};M=Z(M||_);var E=R.readable||R.readable!==!1&&W.readable,T=R.writable||R.writable!==!1&&W.writable,S=function(){if(!W.writable)B()},N=W._writableState&&W._writableState.finished,B=function(){if(T=!1,N=!0,!E)M.call(W)},x=W._readableState&&W._readableState.endEmitted,w=function(){if(E=!1,x=!0,!T)M.call(W)},y=function(l){M.call(W,l)},g=function(){var l;if(E&&!x){if(!W._readableState||!W._readableState.ended)l=new G;return M.call(W,l)}if(T&&!N){if(!W._writableState||!W._writableState.ended)l=new G;return M.call(W,l)}},b=function(){W.req.on("finish",B)};if(J(W))if(W.on("complete",B),W.on("abort",g),W.req)b();else W.on("request",b);else if(T&&!W._writableState)W.on("end",S),W.on("close",S);if(W.on("end",w),W.on("finish",B),R.error!==!1)W.on("error",y);return W.on("close",g),function(){if(W.removeListener("complete",B),W.removeListener("abort",g),W.removeListener("request",b),W.req)W.req.removeListener("finish",B);W.removeListener("end",S),W.removeListener("close",S),W.removeListener("finish",B),W.removeListener("end",w),W.removeListener("error",y),W.removeListener("close",g)}}I.exports=Y}),Xt=x1(($,I)=>{var G;function Z(i,$0,Q0){if($0=_($0),$0 in i)Object.defineProperty(i,$0,{value:Q0,enumerable:!0,configurable:!0,writable:!0});else i[$0]=Q0;return i}function _(i){var $0=J(i,"string");return typeof $0==="symbol"?$0:String($0)}function J(i,$0){if(typeof i!=="object"||i===null)return i;var Q0=i[Symbol.toPrimitive];if(Q0!==void 0){var G0=Q0.call(i,$0||"default");if(typeof G0!=="object")return G0;throw TypeError("@@toPrimitive must return a primitive value.")}return($0==="string"?String:Number)(i)}var Y=VE(),W=Symbol("lastResolve"),R=Symbol("lastReject"),M=Symbol("error"),E=Symbol("ended"),T=Symbol("lastPromise"),S=Symbol("handlePromise"),N=Symbol("stream");function B(i,$0){return{value:i,done:$0}}function x(i){var $0=i[W];if($0!==null){var Q0=i[N].read();if(Q0!==null)i[T]=null,i[W]=null,i[R]=null,$0(B(Q0,!1))}}function w(i){process.nextTick(x,i)}function y(i,$0){return function(Q0,G0){i.then(function(){if($0[E]){Q0(B(void 0,!0));return}$0[S](Q0,G0)},G0)}}var g=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((G={get stream(){return this[N]},next:function(){var i=this,$0=this[M];if($0!==null)return Promise.reject($0);if(this[E])return Promise.resolve(B(void 0,!0));if(this[N].destroyed)return new Promise(function(t,V0){process.nextTick(function(){if(i[M])V0(i[M]);else t(B(void 0,!0))})});var Q0=this[T],G0;if(Q0)G0=new Promise(y(Q0,this));else{var D0=this[N].read();if(D0!==null)return Promise.resolve(B(D0,!1));G0=new Promise(this[S])}return this[T]=G0,G0}},Z(G,Symbol.asyncIterator,function(){return this}),Z(G,"return",function(){var i=this;return new Promise(function($0,Q0){i[N].destroy(null,function(G0){if(G0){Q0(G0);return}$0(B(void 0,!0))})})}),G),g),l=function(i){var $0,Q0=Object.create(b,($0={},Z($0,N,{value:i,writable:!0}),Z($0,W,{value:null,writable:!0}),Z($0,R,{value:null,writable:!0}),Z($0,M,{value:null,writable:!0}),Z($0,E,{value:i._readableState.endEmitted,writable:!0}),Z($0,S,{value:function(G0,D0){var t=Q0[N].read();if(t)Q0[T]=null,Q0[W]=null,Q0[R]=null,G0(B(t,!1));else Q0[W]=G0,Q0[R]=D0},writable:!0}),$0));return Q0[T]=null,Y(i,function(G0){if(G0&&G0.code!=="ERR_STREAM_PREMATURE_CLOSE"){var D0=Q0[R];if(D0!==null)Q0[T]=null,Q0[W]=null,Q0[R]=null,D0(G0);Q0[M]=G0;return}var t=Q0[W];if(t!==null)Q0[T]=null,Q0[W]=null,Q0[R]=null,t(B(void 0,!0));Q0[E]=!0}),i.on("readable",w.bind(null,Q0)),Q0};I.exports=l}),Gt=x1(($,I)=>{function G(T,S,N,B,x,w,y){try{var g=T[w](y),b=g.value}catch(l){N(l);return}if(g.done)S(b);else Promise.resolve(b).then(B,x)}function Z(T){return function(){var S=this,N=arguments;return new Promise(function(B,x){var w=T.apply(S,N);function y(b){G(w,B,x,y,g,"next",b)}function g(b){G(w,B,x,y,g,"throw",b)}y(void 0)})}}function _(T,S){var N=Object.keys(T);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(T);S&&(B=B.filter(function(x){return Object.getOwnPropertyDescriptor(T,x).enumerable})),N.push.apply(N,B)}return N}function J(T){for(var S=1;S<arguments.length;S++){var N=arguments[S]!=null?arguments[S]:{};S%2?_(Object(N),!0).forEach(function(B){Y(T,B,N[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(N)):_(Object(N)).forEach(function(B){Object.defineProperty(T,B,Object.getOwnPropertyDescriptor(N,B))})}return T}function Y(T,S,N){if(S=W(S),S in T)Object.defineProperty(T,S,{value:N,enumerable:!0,configurable:!0,writable:!0});else T[S]=N;return T}function W(T){var S=R(T,"string");return typeof S==="symbol"?S:String(S)}function R(T,S){if(typeof T!=="object"||T===null)return T;var N=T[Symbol.toPrimitive];if(N!==void 0){var B=N.call(T,S||"default");if(typeof B!=="object")return B;throw TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(T)}var M=IX().codes.ERR_INVALID_ARG_TYPE;function E(T,S,N){var B;if(S&&typeof S.next==="function")B=S;else if(S&&S[Symbol.asyncIterator])B=S[Symbol.asyncIterator]();else if(S&&S[Symbol.iterator])B=S[Symbol.iterator]();else throw new M("iterable",["Iterable"],S);var x=new T(J({objectMode:!0},N)),w=!1;x._read=function(){if(!w)w=!0,y()};function y(){return g.apply(this,arguments)}function g(){return g=Z(function*(){try{var b=yield B.next(),l=b.value,i=b.done;if(i)x.push(null);else if(x.push(yield l))y();else w=!1}catch($0){x.destroy($0)}}),g.apply(this,arguments)}return x}I.exports=E}),Wg=x1(($,I)=>{I.exports=Q;var G;Q.ReadableState=V0;var Z=(zG(),P$(QG)).EventEmitter,_=function(I0,c){return I0.listeners(c).length},J=g4(),Y=(u1(),P$(h1)).Buffer,W=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function R(I0){return Y.from(I0)}function M(I0){return Y.isBuffer(I0)||I0 instanceof W}var E=(v_(),P$(S_)),T;if(E&&E.debuglog)T=E.debuglog("stream");else T=function(){};var S=Ut(),N=Lg(),B=Dg(),x=B.getHighWaterMark,w=IX().codes,y=w.ERR_INVALID_ARG_TYPE,g=w.ERR_STREAM_PUSH_AFTER_EOF,b=w.ERR_METHOD_NOT_IMPLEMENTED,l=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,i,$0,Q0;UX()(Q,J);var G0=N.errorOrDestroy,D0=["error","close","destroy","pause","resume"];function t(I0,c,s){if(typeof I0.prependListener==="function")return I0.prependListener(c,s);if(!I0._events||!I0._events[c])I0.on(c,s);else if(Array.isArray(I0._events[c]))I0._events[c].unshift(s);else I0._events[c]=[s,I0._events[c]]}function V0(I0,c,s){if(G=G||IY(),I0=I0||{},typeof s!=="boolean")s=c instanceof G;if(this.objectMode=!!I0.objectMode,s)this.objectMode=this.objectMode||!!I0.readableObjectMode;if(this.highWaterMark=x(this,I0,"readableHighWaterMark",s),this.buffer=new S,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=I0.emitClose!==!1,this.autoDestroy=!!I0.autoDestroy,this.destroyed=!1,this.defaultEncoding=I0.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,I0.encoding){if(!i)i=Zg().StringDecoder;this.decoder=new i(I0.encoding),this.encoding=I0.encoding}}function Q(I0){if(G=G||IY(),!(this instanceof Q))return new Q(I0);var c=this instanceof G;if(this._readableState=new V0(I0,this,c),this.readable=!0,I0){if(typeof I0.read==="function")this._read=I0.read;if(typeof I0.destroy==="function")this._destroy=I0.destroy}J.call(this)}Object.defineProperty(Q.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function(I0){if(!this._readableState)return;this._readableState.destroyed=I0}}),Q.prototype.destroy=N.destroy,Q.prototype._undestroy=N.undestroy,Q.prototype._destroy=function(I0,c){c(I0)},Q.prototype.push=function(I0,c){var s=this._readableState,S0;if(!s.objectMode){if(typeof I0==="string"){if(c=c||s.defaultEncoding,c!==s.encoding)I0=Y.from(I0,c),c="";S0=!0}}else S0=!0;return D(this,I0,c,!1,S0)},Q.prototype.unshift=function(I0){return D(this,I0,null,!0,!1)};function D(I0,c,s,S0,M0){T("readableAddChunk",c);var z0=I0._readableState;if(c===null)z0.reading=!1,V(I0,z0);else{var c0;if(!M0)c0=L(z0,c);if(c0)G0(I0,c0);else if(z0.objectMode||c&&c.length>0){if(typeof c!=="string"&&!z0.objectMode&&Object.getPrototypeOf(c)!==Y.prototype)c=R(c);if(S0)if(z0.endEmitted)G0(I0,new l);else F(I0,z0,c,!0);else if(z0.ended)G0(I0,new g);else if(z0.destroyed)return!1;else if(z0.reading=!1,z0.decoder&&!s)if(c=z0.decoder.write(c),z0.objectMode||c.length!==0)F(I0,z0,c,!1);else k(I0,z0);else F(I0,z0,c,!1)}else if(!S0)z0.reading=!1,k(I0,z0)}return!z0.ended&&(z0.length<z0.highWaterMark||z0.length===0)}function F(I0,c,s,S0){if(c.flowing&&c.length===0&&!c.sync)c.awaitDrain=0,I0.emit("data",s);else{if(c.length+=c.objectMode?1:s.length,S0)c.buffer.unshift(s);else c.buffer.push(s);if(c.needReadable)O(I0)}k(I0,c)}function L(I0,c){var s;if(!M(c)&&typeof c!=="string"&&c!==void 0&&!I0.objectMode)s=new y("chunk",["string","Buffer","Uint8Array"],c);return s}Q.prototype.isPaused=function(){return this._readableState.flowing===!1},Q.prototype.setEncoding=function(I0){if(!i)i=Zg().StringDecoder;var c=new i(I0);this._readableState.decoder=c,this._readableState.encoding=this._readableState.decoder.encoding;var s=this._readableState.buffer.head,S0="";while(s!==null)S0+=c.write(s.data),s=s.next;if(this._readableState.buffer.clear(),S0!=="")this._readableState.buffer.push(S0);return this._readableState.length=S0.length,this};var H=1073741824;function v(I0){if(I0>=H)I0=H;else I0--,I0|=I0>>>1,I0|=I0>>>2,I0|=I0>>>4,I0|=I0>>>8,I0|=I0>>>16,I0++;return I0}function q(I0,c){if(I0<=0||c.length===0&&c.ended)return 0;if(c.objectMode)return 1;if(I0!==I0)if(c.flowing&&c.length)return c.buffer.head.data.length;else return c.length;if(I0>c.highWaterMark)c.highWaterMark=v(I0);if(I0<=c.length)return I0;if(!c.ended)return c.needReadable=!0,0;return c.length}Q.prototype.read=function(I0){T("read",I0),I0=parseInt(I0,10);var c=this._readableState,s=I0;if(I0!==0)c.emittedReadable=!1;if(I0===0&&c.needReadable&&((c.highWaterMark!==0?c.length>=c.highWaterMark:c.length>0)||c.ended)){if(T("read: emitReadable",c.length,c.ended),c.length===0&&c.ended)r(this);else O(this);return null}if(I0=q(I0,c),I0===0&&c.ended){if(c.length===0)r(this);return null}var S0=c.needReadable;if(T("need readable",S0),c.length===0||c.length-I0<c.highWaterMark)S0=!0,T("length less than watermark",S0);if(c.ended||c.reading)S0=!1,T("reading or ended",S0);else if(S0){if(T("do read"),c.reading=!0,c.sync=!0,c.length===0)c.needReadable=!0;if(this._read(c.highWaterMark),c.sync=!1,!c.reading)I0=q(s,c)}var M0;if(I0>0)M0=m(I0,c);else M0=null;if(M0===null)c.needReadable=c.length<=c.highWaterMark,I0=0;else c.length-=I0,c.awaitDrain=0;if(c.length===0){if(!c.ended)c.needReadable=!0;if(s!==I0&&c.ended)r(this)}if(M0!==null)this.emit("data",M0);return M0};function V(I0,c){if(T("onEofChunk"),c.ended)return;if(c.decoder){var s=c.decoder.end();if(s&&s.length)c.buffer.push(s),c.length+=c.objectMode?1:s.length}if(c.ended=!0,c.sync)O(I0);else if(c.needReadable=!1,!c.emittedReadable)c.emittedReadable=!0,A(I0)}function O(I0){var c=I0._readableState;if(T("emitReadable",c.needReadable,c.emittedReadable),c.needReadable=!1,!c.emittedReadable)T("emitReadable",c.flowing),c.emittedReadable=!0,process.nextTick(A,I0)}function A(I0){var c=I0._readableState;if(T("emitReadable_",c.destroyed,c.length,c.ended),!c.destroyed&&(c.length||c.ended))I0.emit("readable"),c.emittedReadable=!1;c.needReadable=!c.flowing&&!c.ended&&c.length<=c.highWaterMark,d(I0)}function k(I0,c){if(!c.readingMore)c.readingMore=!0,process.nextTick(j,I0,c)}function j(I0,c){while(!c.reading&&!c.ended&&(c.length<c.highWaterMark||c.flowing&&c.length===0)){var s=c.length;if(T("maybeReadMore read 0"),I0.read(0),s===c.length)break}c.readingMore=!1}Q.prototype._read=function(I0){G0(this,new b("_read()"))},Q.prototype.pipe=function(I0,c){var s=this,S0=this._readableState;switch(S0.pipesCount){case 0:S0.pipes=I0;break;case 1:S0.pipes=[S0.pipes,I0];break;default:S0.pipes.push(I0);break}S0.pipesCount+=1,T("pipe count=%d opts=%j",S0.pipesCount,c);var M0=(!c||c.end!==!1)&&I0!==process.stdout&&I0!==process.stderr,z0=M0?F0:X$;if(S0.endEmitted)process.nextTick(z0);else s.once("end",z0);I0.on("unpipe",c0);function c0(p0,l0){if(T("onunpipe"),p0===s){if(l0&&l0.hasUnpiped===!1)l0.hasUnpiped=!0,k0()}}function F0(){T("onend"),I0.end()}var q0=h(s);I0.on("drain",q0);var s0=!1;function k0(){if(T("cleanup"),I0.removeListener("close",T0),I0.removeListener("finish",P0),I0.removeListener("drain",q0),I0.removeListener("error",M$),I0.removeListener("unpipe",c0),s.removeListener("end",F0),s.removeListener("end",X$),s.removeListener("data",n0),s0=!0,S0.awaitDrain&&(!I0._writableState||I0._writableState.needDrain))q0()}s.on("data",n0);function n0(p0){T("ondata");var l0=I0.write(p0);if(T("dest.write",l0),l0===!1){if((S0.pipesCount===1&&S0.pipes===I0||S0.pipesCount>1&&W0(S0.pipes,I0)!==-1)&&!s0)T("false write response, pause",S0.awaitDrain),S0.awaitDrain++;s.pause()}}function M$(p0){if(T("onerror",p0),X$(),I0.removeListener("error",M$),_(I0,"error")===0)G0(I0,p0)}t(I0,"error",M$);function T0(){I0.removeListener("finish",P0),X$()}I0.once("close",T0);function P0(){T("onfinish"),I0.removeListener("close",T0),X$()}I0.once("finish",P0);function X$(){T("unpipe"),s.unpipe(I0)}if(I0.emit("pipe",s),!S0.flowing)T("pipe resume"),s.resume();return I0};function h(I0){return function(){var c=I0._readableState;if(T("pipeOnDrain",c.awaitDrain),c.awaitDrain)c.awaitDrain--;if(c.awaitDrain===0&&_(I0,"data"))c.flowing=!0,d(I0)}}Q.prototype.unpipe=function(I0){var c=this._readableState,s={hasUnpiped:!1};if(c.pipesCount===0)return this;if(c.pipesCount===1){if(I0&&I0!==c.pipes)return this;if(!I0)I0=c.pipes;if(c.pipes=null,c.pipesCount=0,c.flowing=!1,I0)I0.emit("unpipe",this,s);return this}if(!I0){var{pipes:S0,pipesCount:M0}=c;c.pipes=null,c.pipesCount=0,c.flowing=!1;for(var z0=0;z0<M0;z0++)S0[z0].emit("unpipe",this,{hasUnpiped:!1});return this}var c0=W0(c.pipes,I0);if(c0===-1)return this;if(c.pipes.splice(c0,1),c.pipesCount-=1,c.pipesCount===1)c.pipes=c.pipes[0];return I0.emit("unpipe",this,s),this},Q.prototype.on=function(I0,c){var s=J.prototype.on.call(this,I0,c),S0=this._readableState;if(I0==="data"){if(S0.readableListening=this.listenerCount("readable")>0,S0.flowing!==!1)this.resume()}else if(I0==="readable"){if(!S0.endEmitted&&!S0.readableListening){if(S0.readableListening=S0.needReadable=!0,S0.flowing=!1,S0.emittedReadable=!1,T("on readable",S0.length,S0.reading),S0.length)O(this);else if(!S0.reading)process.nextTick(J0,this)}}return s},Q.prototype.addListener=Q.prototype.on,Q.prototype.removeListener=function(I0,c){var s=J.prototype.removeListener.call(this,I0,c);if(I0==="readable")process.nextTick(a,this);return s},Q.prototype.removeAllListeners=function(I0){var c=J.prototype.removeAllListeners.apply(this,arguments);if(I0==="readable"||I0===void 0)process.nextTick(a,this);return c};function a(I0){var c=I0._readableState;if(c.readableListening=I0.listenerCount("readable")>0,c.resumeScheduled&&!c.paused)c.flowing=!0;else if(I0.listenerCount("data")>0)I0.resume()}function J0(I0){T("readable nexttick read 0"),I0.read(0)}Q.prototype.resume=function(){var I0=this._readableState;if(!I0.flowing)T("resume"),I0.flowing=!I0.readableListening,K0(this,I0);return I0.paused=!1,this};function K0(I0,c){if(!c.resumeScheduled)c.resumeScheduled=!0,process.nextTick(O0,I0,c)}function O0(I0,c){if(T("resume",c.reading),!c.reading)I0.read(0);if(c.resumeScheduled=!1,I0.emit("resume"),d(I0),c.flowing&&!c.reading)I0.read(0)}Q.prototype.pause=function(){if(T("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)T("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this};function d(I0){var c=I0._readableState;T("flow",c.flowing);while(c.flowing&&I0.read()!==null);}if(Q.prototype.wrap=function(I0){var c=this,s=this._readableState,S0=!1;I0.on("end",function(){if(T("wrapped end"),s.decoder&&!s.ended){var c0=s.decoder.end();if(c0&&c0.length)c.push(c0)}c.push(null)}),I0.on("data",function(c0){if(T("wrapped data"),s.decoder)c0=s.decoder.write(c0);if(s.objectMode&&(c0===null||c0===void 0))return;else if(!s.objectMode&&(!c0||!c0.length))return;var F0=c.push(c0);if(!F0)S0=!0,I0.pause()});for(var M0 in I0)if(this[M0]===void 0&&typeof I0[M0]==="function")this[M0]=function(c0){return function(){return I0[c0].apply(I0,arguments)}}(M0);for(var z0=0;z0<D0.length;z0++)I0.on(D0[z0],this.emit.bind(this,D0[z0]));return this._read=function(c0){if(T("wrapped _read",c0),S0)S0=!1,I0.resume()},this},typeof Symbol==="function")Q.prototype[Symbol.asyncIterator]=function(){if($0===void 0)$0=Xt();return $0(this)};Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Q.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Q.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(I0){if(this._readableState)this._readableState.flowing=I0}}),Q._fromList=m,Object.defineProperty(Q.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function m(I0,c){if(c.length===0)return null;var s;if(c.objectMode)s=c.buffer.shift();else if(!I0||I0>=c.length){if(c.decoder)s=c.buffer.join("");else if(c.buffer.length===1)s=c.buffer.first();else s=c.buffer.concat(c.length);c.buffer.clear()}else s=c.buffer.consume(I0,c.decoder);return s}function r(I0){var c=I0._readableState;if(T("endReadable",c.endEmitted),!c.endEmitted)c.ended=!0,process.nextTick(Y0,c,I0)}function Y0(I0,c){if(T("endReadableNT",I0.endEmitted,I0.length),!I0.endEmitted&&I0.length===0){if(I0.endEmitted=!0,c.readable=!1,c.emit("end"),I0.autoDestroy){var s=c._writableState;if(!s||s.autoDestroy&&s.finished)c.destroy()}}}if(typeof Symbol==="function")Q.from=function(I0,c){if(Q0===void 0)Q0=Gt();return Q0(Q,I0,c)};function W0(I0,c){for(var s=0,S0=I0.length;s<S0;s++)if(I0[s]===c)return s;return-1}}),Hg=x1(($,I)=>{I.exports=M;var G=IX().codes,Z=G.ERR_METHOD_NOT_IMPLEMENTED,_=G.ERR_MULTIPLE_CALLBACK,J=G.ERR_TRANSFORM_ALREADY_TRANSFORMING,Y=G.ERR_TRANSFORM_WITH_LENGTH_0,W=IY();UX()(M,W);function R(S,N){var B=this._transformState;B.transforming=!1;var x=B.writecb;if(x===null)return this.emit("error",new _);if(B.writechunk=null,B.writecb=null,N!=null)this.push(N);x(S);var w=this._readableState;if(w.reading=!1,w.needReadable||w.length<w.highWaterMark)this._read(w.highWaterMark)}function M(S){if(!(this instanceof M))return new M(S);if(W.call(this,S),this._transformState={afterTransform:R.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,S){if(typeof S.transform==="function")this._transform=S.transform;if(typeof S.flush==="function")this._flush=S.flush}this.on("prefinish",E)}function E(){var S=this;if(typeof this._flush==="function"&&!this._readableState.destroyed)this._flush(function(N,B){T(S,N,B)});else T(this,null,null)}M.prototype.push=function(S,N){return this._transformState.needTransform=!1,W.prototype.push.call(this,S,N)},M.prototype._transform=function(S,N,B){B(new Z("_transform()"))},M.prototype._write=function(S,N,B){var x=this._transformState;if(x.writecb=B,x.writechunk=S,x.writeencoding=N,!x.transforming){var w=this._readableState;if(x.needTransform||w.needReadable||w.length<w.highWaterMark)this._read(w.highWaterMark)}},M.prototype._read=function(S){var N=this._transformState;if(N.writechunk!==null&&!N.transforming)N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform);else N.needTransform=!0},M.prototype._destroy=function(S,N){W.prototype._destroy.call(this,S,function(B){N(B)})};function T(S,N,B){if(N)return S.emit("error",N);if(B!=null)S.push(B);if(S._writableState.length)throw new Y;if(S._transformState.transforming)throw new J;return S.push(null)}}),Yt=x1(($,I)=>{I.exports=Z;var G=Hg();UX()(Z,G);function Z(_){if(!(this instanceof Z))return new Z(_);G.call(this,_)}Z.prototype._transform=function(_,J,Y){Y(null,_)}}),Jt=x1(($,I)=>{var G;function Z(B){var x=!1;return function(){if(x)return;x=!0,B.apply(void 0,arguments)}}var _=IX().codes,J=_.ERR_MISSING_ARGS,Y=_.ERR_STREAM_DESTROYED;function W(B){if(B)throw B}function R(B){return B.setHeader&&typeof B.abort==="function"}function M(B,x,w,y){y=Z(y);var g=!1;if(B.on("close",function(){g=!0}),G===void 0)G=VE();G(B,{readable:x,writable:w},function(l){if(l)return y(l);g=!0,y()});var b=!1;return function(l){if(g)return;if(b)return;if(b=!0,R(B))return B.abort();if(typeof B.destroy==="function")return B.destroy();y(l||new Y("pipe"))}}function E(B){B()}function T(B,x){return B.pipe(x)}function S(B){if(!B.length)return W;if(typeof B[B.length-1]!=="function")return W;return B.pop()}function N(){for(var B=arguments.length,x=Array(B),w=0;w<B;w++)x[w]=arguments[w];var y=S(x);if(Array.isArray(x[0]))x=x[0];if(x.length<2)throw new J("streams");var g,b=x.map(function(l,i){var $0=i<x.length-1,Q0=i>0;return M(l,$0,Q0,function(G0){if(!g)g=G0;if(G0)b.forEach(E);if($0)return;b.forEach(E),y(g)})});return x.reduce(T)}I.exports=N}),Fg=x1(($,I)=>{var G=g4();$=I.exports=Wg(),$.Stream=G||$,$.Readable=$,$.Writable=Kg(),$.Duplex=IY(),$.Transform=Hg(),$.PassThrough=Yt(),$.finished=VE(),$.pipeline=Jt()}),Tg=x1(($)=>{var I=Og(),G=UX(),Z=Fg(),_=$.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},J=$.IncomingMessage=function(Y,W,R,M){var E=this;if(Z.Readable.call(E),E._mode=R,E.headers={},E.rawHeaders=[],E.trailers={},E.rawTrailers=[],E.on("end",function(){process.nextTick(function(){E.emit("close")})}),R==="fetch"){let y=function(){N.read().then(function(g){if(E._destroyed)return;if(M(g.done),g.done){E.push(null);return}E.push(Buffer.from(g.value)),y()}).catch(function(g){if(M(!0),!E._destroyed)E.emit("error",g)})};var T=y;if(E._fetchResponse=W,E.url=W.url,E.statusCode=W.status,E.statusMessage=W.statusText,W.headers.forEach(function(g,b){E.headers[b.toLowerCase()]=g,E.rawHeaders.push(b,g)}),I.writableStream){var S=new WritableStream({write:function(g){return M(!1),new Promise(function(b,l){if(E._destroyed)l();else if(E.push(Buffer.from(g)))b();else E._resumeFetch=b})},close:function(){if(M(!0),!E._destroyed)E.push(null)},abort:function(g){if(M(!0),!E._destroyed)E.emit("error",g)}});try{W.body.pipeTo(S).catch(function(g){if(M(!0),!E._destroyed)E.emit("error",g)});return}catch(g){}}var N=W.body.getReader();y()}else{E._xhr=Y,E._pos=0,E.url=Y.responseURL,E.statusCode=Y.status,E.statusMessage=Y.statusText;var B=Y.getAllResponseHeaders().split(/\r?\n/);if(B.forEach(function(y){var g=y.match(/^([^:]+):\s*(.*)/);if(g){var b=g[1].toLowerCase();if(b==="set-cookie"){if(E.headers[b]===void 0)E.headers[b]=[];E.headers[b].push(g[2])}else if(E.headers[b]!==void 0)E.headers[b]+=", "+g[2];else E.headers[b]=g[2];E.rawHeaders.push(g[1],g[2])}}),E._charset="x-user-defined",!I.overrideMimeType){var x=E.rawHeaders["mime-type"];if(x){var w=x.match(/;\s*charset=([^;])(;|$)/);if(w)E._charset=w[1].toLowerCase()}if(!E._charset)E._charset="utf-8"}}};G(J,Z.Readable),J.prototype._read=function(){var Y=this,W=Y._resumeFetch;if(W)Y._resumeFetch=null,W()},J.prototype._onXHRProgress=function(Y){var W=this,R=W._xhr,M=null;switch(W._mode){case"text":if(M=R.responseText,M.length>W._pos){var E=M.substr(W._pos);if(W._charset==="x-user-defined"){var T=Buffer.alloc(E.length);for(var S=0;S<E.length;S++)T[S]=E.charCodeAt(S)&255;W.push(T)}else W.push(E,W._charset);W._pos=M.length}break;case"arraybuffer":if(R.readyState!==_.DONE||!R.response)break;M=R.response,W.push(Buffer.from(new Uint8Array(M)));break;case"moz-chunked-arraybuffer":if(M=R.response,R.readyState!==_.LOADING||!M)break;W.push(Buffer.from(new Uint8Array(M)));break;case"ms-stream":if(M=R.response,R.readyState!==_.LOADING)break;var N=new globalThis.MSStreamReader;N.onprogress=function(){if(N.result.byteLength>W._pos)W.push(Buffer.from(new Uint8Array(N.result.slice(W._pos)))),W._pos=N.result.byteLength},N.onload=function(){Y(!0),W.push(null)},N.readAsArrayBuffer(M);break}if(W._xhr.readyState===_.DONE&&W._mode!=="ms-stream")Y(!0),W.push(null)}}),Qt=x1(($,I)=>{var G=Og(),Z=UX(),_=Tg(),J=Fg(),Y=_.IncomingMessage,W=_.readyStates;function R(S,N){if(G.fetch&&N)return"fetch";else if(G.mozchunkedarraybuffer)return"moz-chunked-arraybuffer";else if(G.msstream)return"ms-stream";else if(G.arraybuffer&&S)return"arraybuffer";else return"text"}var M=I.exports=function(S){var N=this;if(J.Writable.call(N),N._opts=S,N._body=[],N._headers={},S.auth)N.setHeader("Authorization","Basic "+Buffer.from(S.auth).toString("base64"));Object.keys(S.headers).forEach(function(w){N.setHeader(w,S.headers[w])});var B,x=!0;if(S.mode==="disable-fetch"||"requestTimeout"in S&&!G.abortController)x=!1,B=!0;else if(S.mode==="prefer-streaming")B=!1;else if(S.mode==="allow-wrong-content-type")B=!G.overrideMimeType;else if(!S.mode||S.mode==="default"||S.mode==="prefer-fast")B=!0;else throw Error("Invalid value for opts.mode");N._mode=R(B,x),N._fetchTimer=null,N._socketTimeout=null,N._socketTimer=null,N.on("finish",function(){N._onFinish()})};Z(M,J.Writable),M.prototype.setHeader=function(S,N){var B=this,x=S.toLowerCase();if(T.indexOf(x)!==-1)return;B._headers[x]={name:S,value:N}},M.prototype.getHeader=function(S){var N=this._headers[S.toLowerCase()];if(N)return N.value;return null},M.prototype.removeHeader=function(S){var N=this;delete N._headers[S.toLowerCase()]},M.prototype._onFinish=function(){var S=this;if(S._destroyed)return;var N=S._opts;if("timeout"in N&&N.timeout!==0)S.setTimeout(N.timeout);var B=S._headers,x=null;if(N.method!=="GET"&&N.method!=="HEAD")x=new Blob(S._body,{type:(B["content-type"]||{}).value||""});var w=[];if(Object.keys(B).forEach(function(l){var i=B[l].name,$0=B[l].value;if(Array.isArray($0))$0.forEach(function(Q0){w.push([i,Q0])});else w.push([i,$0])}),S._mode==="fetch"){var y=null;if(G.abortController){var g=new AbortController;if(y=g.signal,S._fetchAbortController=g,"requestTimeout"in N&&N.requestTimeout!==0)S._fetchTimer=globalThis.setTimeout(function(){if(S.emit("requestTimeout"),S._fetchAbortController)S._fetchAbortController.abort()},N.requestTimeout)}globalThis.fetch(S._opts.url,{method:S._opts.method,headers:w,body:x||void 0,mode:"cors",credentials:N.withCredentials?"include":"same-origin",signal:y}).then(function(l){S._fetchResponse=l,S._resetTimers(!1),S._connect()},function(l){if(S._resetTimers(!0),!S._destroyed)S.emit("error",l)})}else{var b=S._xhr=new globalThis.XMLHttpRequest;try{b.open(S._opts.method,S._opts.url,!0)}catch(l){process.nextTick(function(){S.emit("error",l)});return}if("responseType"in b)b.responseType=S._mode;if("withCredentials"in b)b.withCredentials=!!N.withCredentials;if(S._mode==="text"&&"overrideMimeType"in b)b.overrideMimeType("text/plain; charset=x-user-defined");if("requestTimeout"in N)b.timeout=N.requestTimeout,b.ontimeout=function(){S.emit("requestTimeout")};if(w.forEach(function(l){b.setRequestHeader(l[0],l[1])}),S._response=null,b.onreadystatechange=function(){switch(b.readyState){case W.LOADING:case W.DONE:S._onXHRProgress();break}},S._mode==="moz-chunked-arraybuffer")b.onprogress=function(){S._onXHRProgress()};b.onerror=function(){if(S._destroyed)return;S._resetTimers(!0),S.emit("error",Error("XHR error"))};try{b.send(x)}catch(l){process.nextTick(function(){S.emit("error",l)});return}}};function E(S){try{var N=S.status;return N!==null&&N!==0}catch(B){return!1}}M.prototype._onXHRProgress=function(){var S=this;if(S._resetTimers(!1),!E(S._xhr)||S._destroyed)return;if(!S._response)S._connect();S._response._onXHRProgress(S._resetTimers.bind(S))},M.prototype._connect=function(){var S=this;if(S._destroyed)return;S._response=new Y(S._xhr,S._fetchResponse,S._mode,S._resetTimers.bind(S)),S._response.on("error",function(N){S.emit("error",N)}),S.emit("response",S._response)},M.prototype._write=function(S,N,B){var x=this;x._body.push(S),B()},M.prototype._resetTimers=function(S){var N=this;if(globalThis.clearTimeout(N._socketTimer),N._socketTimer=null,S)globalThis.clearTimeout(N._fetchTimer),N._fetchTimer=null;else if(N._socketTimeout)N._socketTimer=globalThis.setTimeout(function(){N.emit("timeout")},N._socketTimeout)},M.prototype.abort=M.prototype.destroy=function(S){var N=this;if(N._destroyed=!0,N._resetTimers(!0),N._response)N._response._destroyed=!0;if(N._xhr)N._xhr.abort();else if(N._fetchAbortController)N._fetchAbortController.abort();if(S)N.emit("error",S)},M.prototype.end=function(S,N,B){var x=this;if(typeof S==="function")B=S,S=void 0;J.Writable.prototype.end.call(x,S,N,B)},M.prototype.setTimeout=function(S,N){var B=this;if(N)B.once("timeout",N);B._socketTimeout=S,B._resetTimers(!1)},M.prototype.flushHeaders=function(){},M.prototype.setNoDelay=function(){},M.prototype.setSocketKeepAlive=function(){};var T=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}),zt=x1(($,I)=>{I.exports=Z;var G=Object.prototype.hasOwnProperty;function Z(){var _={};for(var J=0;J<arguments.length;J++){var Y=arguments[J];for(var W in Y)if(G.call(Y,W))_[W]=Y[W]}return _}}),Zt=x1(($,I)=>{I.exports=(Xz(),P$(m5)).STATUS_CODES}),Ot=x1(($)=>{var I=Qt(),G=Tg(),Z=zt(),_=Zt(),J=(RE(),P$(EE)),Y=$;Y.request=function(W,R){if(typeof W==="string")W=J.parse(W);else W=Z(W);var M=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",E=W.protocol||M,T=W.hostname||W.host,S=W.port,N=W.path||"/";if(T&&T.indexOf(":")!==-1)T="["+T+"]";W.url=(T?E+"//"+T:"")+(S?":"+S:"")+N,W.method=(W.method||"GET").toUpperCase(),W.headers=W.headers||{};var B=new I(W);if(R)B.on("response",R);return B},Y.get=function(W,R){var M=Y.request(W,R);return M.end(),M},Y.ClientRequest=I,Y.IncomingMessage=G.IncomingMessage,Y.Agent=function(){},Y.Agent.defaultMaxSockets=4,Y.globalAgent=new Y.Agent,Y.STATUS_CODES=_,Y.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}),Mg=eo(Ot(),1),{request:Lt,get:Dt,ClientRequest:Kt,IncomingMessage:Wt,Agent:Ht,globalAgent:Ft,STATUS_CODES:Tt,METHODS:Mt}=Mg.default,Ag=Mg.default});var Vg={};LU(Vg,{isIPv6:()=>SE,isIPv4:()=>PE,isIP:()=>Eg,default:()=>Rg});function PE($){return At.test($)}function SE($){return Et.test($)}function Eg($){if(PE($))return 4;if(SE($))return 6;return 0}var At,Et,Rg;var vE=WI(()=>{At=new RegExp("^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"),Et=new RegExp("^(?:(?:(?:[0-9a-fA-F]{1,4}):){7}(?:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){6}(?:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){5}(?::(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,2}|:)|(?:(?:[0-9a-fA-F]{1,4}):){4}(?:(?::(?:[0-9a-fA-F]{1,4})){0,1}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,3}|:)|(?:(?:[0-9a-fA-F]{1,4}):){3}(?:(?::(?:[0-9a-fA-F]{1,4})){0,2}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,4}|:)|(?:(?:[0-9a-fA-F]{1,4}):){2}(?:(?::(?:[0-9a-fA-F]{1,4})){0,3}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,5}|:)|(?:(?:[0-9a-fA-F]{1,4}):){1}(?:(?::(?:[0-9a-fA-F]{1,4})){0,4}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,6}|:)|(?::(?:(?::(?:[0-9a-fA-F]{1,4})){0,5}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,7}|:)))(?:%[0-9a-zA-Z-.:]{1,})?$");Rg={isIPv4:PE,isIPv6:SE,isIP:Eg}});var Cg=N6((bQ0,nt)=>{nt.exports={"//":"GENERATED by scripts/pack-facts.ts — do not hand-edit. Compiled from each pack's `pack: TwinPack` descriptor; pack-facts.test.ts fails on drift.",packs:{ahrefs:{adoption:{pypi:[],sdks:["@ahrefs/mcp"],scopes:["@ahrefs/"],envStems:["AHREFS"]},hosts:[{host:"api.ahrefs.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["target","usage","cache","audit"],serveExport:"createAhrefsTwinServer"},"ai-gateway":{adoption:{pypi:[],sdks:["@ai-sdk/gateway"],envStems:["AIGATEWAY"]},hostsNone:"SDK is base-URL-configured (@ai-sdk/gateway baseURL / AI_GATEWAY_BASE_URL) — worlds wire the twin through explicit endpoint config; no injector entry grounded yet",archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["generation"],serveExport:"createAiGatewayTwinServer"},airtable:{adoption:{pypi:["pyairtable","airtable-python-wrapper"],sdks:["airtable"],envStems:["AIRTABLE"]},hosts:[{host:"api.airtable.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["base","table","record","comment"],endpointEnvNone:"the injector intercepts api.airtable.com (see `hosts`), which covers every client with no env at all; AIRTABLE_ENDPOINT_URL is real (Airtable.default_config(), airtable@0.12.2) but injecting it alongside interception is the strictly narrower answer — one wiring, not two.",serveExport:"createAirtableTwinServer"},algolia:{adoption:{pypi:["algoliasearch"],sdks:["algoliasearch"],envStems:["ALGOLIA","ALGOLIAWRITE"]},hostsNone:"per-app-ID host scheme ({appId}.algolia.net / {appId}-dsn.algolia.net / {appId}-N.algolianet.com, see the pack README §Host tolerance) — no fixed host list to match; the host-tolerant twin is wired by explicit client host config",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["index","record","synonym","settings"],serveExport:"createAlgoliaTwinServer"},anthropic:{adoption:{pypi:["anthropic","claude-agent-sdk","claude-code-sdk"],sdks:["@anthropic-ai/sdk","@ai-sdk/anthropic","@anthropic-ai/vertex-sdk","@anthropic-ai/bedrock-sdk","@anthropic-ai/claude-agent-sdk"],scopes:["@anthropic-ai/"],envStems:["ANTHROPIC","CLAUDE"]},hosts:[{host:"api.anthropic.com"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["message_batch","file","agent","environment","session","vault","vault_credential","memory_store","memory","memory_version","deployment","deployment_run","skill","webhook_secret"],serveExport:"createAnthropicTwinServer"},assemblyai:{adoption:{pypi:["assemblyai"],sdks:["assemblyai"],envStems:["ASSEMBLYAI"]},hosts:[{host:"api.assemblyai.com"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["transcript","upload"],serveExport:"createAssemblyAITwinServer"},aws:{adoption:{pypi:["boto3","botocore","aioboto3","aiobotocore"],sdks:["@aws-sdk/client-s3","@aws-sdk/s3-request-presigner","@aws-sdk/lib-storage","@aws-sdk/client-dynamodb","@aws-sdk/lib-dynamodb","@aws-sdk/client-timestream-write","@aws-sdk/client-timestream-query","aws-sdk","@aws-sdk/client-sesv2","@aws-sdk/client-secrets-manager","@aws-sdk/client-bedrock-runtime","@aws-sdk/client-bedrock","@ai-sdk/amazon-bedrock"],envStems:["AWS","S3","LANGFUSELLMCONNECTIONBEDROCK"],worldIds:["s3","dynamodb","timestream","timestreamwrite","timestreamquery","sesv2","secretsmanager","bedrock"]},hosts:[{key:"s3",host:"s3.amazonaws.com"},{key:"s3",suffix:".s3.amazonaws.com"},{key:"s3",hostPattern:"^s3[.-][a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",hostPattern:"\\.s3[.-][a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",hostPattern:"^s3\\.dualstack\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",hostPattern:"\\.s3\\.dualstack\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",suffix:".s3-accelerate.amazonaws.com"},{key:"s3",suffix:".s3-accelerate.dualstack.amazonaws.com"},{key:"dynamodb",hostPattern:"^dynamodb\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"timestream",hostPattern:"(^|\\.)(ingest|query)\\.timestream\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"sesv2",hostPattern:"^email\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"secretsmanager",hostPattern:"^secretsmanager(-fips)?\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"bedrock",hostPattern:"^bedrock(-runtime)?(-fips)?\\.[a-z0-9-]+\\.(amazonaws\\.com|api\\.aws)$"}],archetype:"signed-protocol",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{foundation_model:"the account catalog: pulled from ListFoundationModels, never created by a caller"},resources:["bucket","object","multipart_upload","table","item","database","record","message","secret","invocation","foundation_model","identity"],serveExport:"createAwsTwinServer"},axiom:{adoption:{sdks:["@axiomhq/js","@axiomhq/logging","@axiomhq/nextjs"],pypi:["axiom-py"],envStems:["AXIOM"]},hosts:[{host:"api.axiom.co"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["dataset","event"],endpointEnvNone:"no env var: @axiomhq/js reads its base URL only from the `url` constructor option (httpClient.ts:33,45) and Dub constructs `new Axiom({ token })` with none, so interception is the hosts entry above; an AXIOM_URL no client reads would be invented surface.",serveExport:"createAxiomTwinServer"},azure:{adoption:{pypi:["azure-storage-blob","azure-ai-inference"],sdks:["@azure/storage-blob","@azure/openai","@azure-rest/ai-inference","@ai-sdk/azure"],envStems:["AZURE","AZUREOPENAI","AZUREGPT4OMINI","AZUREGPT5","AZUREGPT5MINI","AZUREGPT5NANO"]},hosts:[{suffix:".blob.core.windows.net"},{suffix:".openai.azure.com"},{suffix:".cognitiveservices.azure.com",pathPattern:"^/openai/"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["container","blob","block","deployment"],endpointEnvNone:"Host-based interception only. @azure/storage-blob is configured with a blob endpoint URL or a connection string (both resolving to <account>.blob.core.windows.net, which the injector rewrites), and reads no base-URL environment variable of its own — the same reason the aws pack declares none.",serveExport:"createAzureTwinServer"},azureformrecognizer:{adoption:{pypi:["azure-ai-documentintelligence","azure-ai-formrecognizer"],sdks:["@azure-rest/ai-document-intelligence","@azure/ai-form-recognizer"],envStems:["AZUREFORMRECOGNIZER","AZUREDOCUMENTINTELLIGENCE"]},hosts:[{suffix:".cognitiveservices.azure.com",pathPattern:"^/(documentintelligence|formrecognizer)/"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{model:"prebuilt models are the vendor's catalog; a custom model is born of a training job this twin does not run"},resources:["analysis","model"],serveExport:"createAzureFormRecognizerTwinServer"},bitly:{adoption:{pypi:[],envStems:["BITLY"]},hosts:[{host:"api-ssl.bitly.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["bitlink","group","organization","user","qr_code","campaign","channel","webhook","custom_bitlink","click"],endpointEnvNone:"no injector-free path: Bitly integrations hardcode https://api-ssl.bitly.com and the vendor documents no base-URL override, so interception is the hosts entry above; a BITLY_BASE_URL would be invented surface no app reads.",serveExport:"createBitlyTwinServer"},bluesky:{adoption:{sdks:["@atproto/api"],pypi:[],envStems:["BLUESKY","BSKY"]},hosts:[{host:"bsky.social",pathPattern:"^/xrpc/(com\\.atproto|app\\.bsky)\\."},{hostPattern:"^[a-z0-9-]+\\.[a-z0-9-]+\\.host\\.bsky\\.network$",pathPattern:"^/xrpc/(com\\.atproto|app\\.bsky)\\."},{host:"api.bsky.app",pathPattern:"^/xrpc/app\\.bsky\\.(actor|feed)\\."},{host:"public.api.bsky.app",pathPattern:"^/xrpc/app\\.bsky\\.(actor|feed)\\."},{host:"video.bsky.app",pathPattern:"^/(xrpc/app\\.bsky\\.video\\.|watch/)"},{host:"cdn.bsky.app",pathPattern:"^/img/"},{host:"bsky.app",pathPattern:"^/profile/[^/]+/?$|^/profile/[^/]+/post/[A-Za-z0-9._:~-]{1,512}/?$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["account","post","follow","profile"],endpointEnvNone:"@atproto/api reads no base-URL environment variable (an AtpAgent takes its `service` URL in code, and the video service's is the social-app's constant), so a World reaches it through the hosts above; inventing a BLUESKY_BASE_URL the app never reads would report coverage the app does not have.",serveExport:"createBlueskyTwinServer"},calcom:{adoption:{pypi:[],envStems:["CALCOM","CAL"]},hosts:[{host:"api.cal.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["booking","event_type","schedule","team","membership","webhook","slot"],serveExport:"createCalcomTwinServer"},cerebras:{adoption:{sdks:["@cerebras/cerebras_cloud_sdk","@ai-sdk/cerebras"],envStems:["CEREBRAS"]},hosts:[{host:"api.cerebras.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"The injector intercepts api.cerebras.ai (see `hosts`), so a world wires this pack through CEREBRAS_TWIN_URL rather than an app-read base-URL var. The SDK would honour CEREBRAS_BASE_URL, but the injector covers all of that traffic with zero app edits while an app-read env covers only clients constructed after the env lands — emitting both would quietly forgo interception.",serveExport:"createCerebrasTwinServer"},clerk:{adoption:{pypi:["clerk-backend-api"],sdks:["@clerk/backend","@clerk/clerk-sdk-node","@clerk/nextjs","@clerk/fastify","@clerk/express"],scopes:["@clerk/"],envStems:["CLERK"]},hosts:[{host:"api.clerk.com"},{suffix:".clerk.accounts.dev"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",assets:["client/clerk-js-dist","client/clerk.browser.js"],resources:["user","session","organization","organization_membership","organization_invitation","invitation","allowlist_identifier","blocklist_identifier","jwt_template","sign_in_token"],serveExport:"createClerkTwinServer"},cloudflare:{adoption:{pypi:["cloudflare"],tools:[{package:"wrangler",usage:"deployment"}],sdks:["cloudflare","aws4fetch"],envStems:["CLOUDFLARE"]},hosts:[{host:"api.cloudflare.com"},{host:"dash.cloudflare.com",pathPattern:"^/(login|_twin/users/|[0-9a-f]{32}/r2/|$)"},{suffix:".r2.cloudflarestorage.com"}],hostsClaimed:{door:"/twin/hosts",note:"the custom domains connected to R2 buckets"},archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["account","zone","cloudflare_tunnel","tunnel_configuration","dns_record","worker_script","worker_route","worker_domain","workers_subdomain","durable_object_namespace","r2_bucket","r2_custom_domain","hyperdrive_config","queue","queue_consumer","worker_version","worker_asset","worker_asset_upload_session"],serveExport:"createCloudflareTwinServer"},cohere:{adoption:{pypi:["cohere"],sdks:["cohere-ai","@ai-sdk/cohere"],envStems:["COHERE","CO"]},hosts:[{host:"api.cohere.com"},{host:"api.cohere.ai"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["dataset","connector","embed_job","token"],endpointEnvNone:"neither official SDK reads a base-URL env var: cohere-ai@8.1.0 takes the override as the `baseUrl`/`environment` CONSTRUCTOR option and reads only CO_API_KEY from the environment (auth/BearerAuthProvider.js), and @ai-sdk/cohere@4.0.35 takes `options.baseURL` and reads only COHERE_API_KEY. Interception is host-based on api.cohere.com and api.cohere.ai; inventing a COHERE_BASE_URL nothing reads would make `covers` claim a world it does not cover.",serveExport:"createCohereTwinServer"},currencyapi:{adoption:{sdks:["@everapi/currencyapi-js"],pypi:["currencyapicom"],envStems:["CURRENCYAPI"]},hosts:[{host:"api.currencyapi.com"},{host:"app.currencyapi.com",pathPattern:"^/(register|login|dashboard|subscription)(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["_account","_api_key","_usage","_web_session"],endpointEnvNone:"currencyapi's clients hardcode https://api.currencyapi.com/v3 (@everapi/currencyapi-js index.js `baseUrl`, dubinc/dub apps/web/lib/currencyapi/client.ts `baseUrl`) and read no base-URL env; interception is the hosts above.",serveExport:"createCurrencyapiTwinServer"},datadog:{adoption:{pypi:["datadog","datadog-api-client","ddtrace"],sdks:["@datadog/datadog-api-client","@datadog/browser-rum","@datadog/browser-logs","dd-trace"],scopes:["@datadog/"],envStems:["DATADOG","DD"]},hosts:[{host:"datadoghq.com"},{suffix:".datadoghq.com"},{host:"datadoghq.eu"},{suffix:".datadoghq.eu"},{host:"ddog-gov.com"},{suffix:".ddog-gov.com"},{hostPattern:"^([a-z0-9-]+\\.)?browser-intake-(?:[a-z0-9]+-)?(?:datadoghq\\.(?:com|eu)|ddog-gov\\.com)$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["org","rum_application","rum_event","log","metric_series","metric_def","service_check","event","monitor","dashboard","host","slo","downtime","api_key","user"],serveExport:"createDatadogTwinServer"},deepgram:{adoption:{pypi:["deepgram-sdk"],sdks:["@deepgram/sdk"],envStems:["DEEPGRAM"]},hosts:[{host:"api.deepgram.com"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{project:"the tenant itself: born with the account, never created through the API"},resources:["project","key","request"],serveExport:"createDeepgramTwinServer"},deepinfra:{adoption:{sdks:["deepinfra","@ai-sdk/deepinfra"],envStems:["DEEPINFRA"]},hosts:[{host:"api.deepinfra.com"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{model:"the vendor catalog",rate_limit:"the account ledger the vendor keeps; read-only"},resources:["model","file","batch","rate_limit"],endpointEnvNone:"the deepinfra SDK exposes no base-URL env: DeepInfraClient takes the endpoint URL as a constructor argument (the modelName IS the full URL) and reads only DEEPINFRA_API_KEY; interception is the hosts above.",serveExport:"createDeepinfraTwinServer"},deepseek:{adoption:{pypi:[],sdks:["@ai-sdk/deepseek"],envStems:["DEEPSEEK"]},hosts:[{host:"api.deepseek.com"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resourcesUnreachable:{model:"the vendor catalog",balance:"the account ledger the vendor keeps; read-only"},resources:["model","file","balance","cache_prefix"],endpointEnvNone:"no app-read endpoint env: @ai-sdk/deepseek — the only first-party npm client of this surface — reads exactly one environment variable (DEEPSEEK_API_KEY, via loadApiKey in src/deepseek-provider.ts) and takes baseURL as a constructor option, so there is no vendor-documented base-URL var to inject. The injector covers api.deepseek.com instead (see `hosts`). NextChat's DEEPSEEK_URL is one application's own convention, not vendor surface, and claiming it would report a world covered while the SDK-based majority still reached the real vendor.",serveExport:"createDeepSeekTwinServer"},discord:{adoption:{sdks:["discord.js","@discordjs/rest","@discordjs/core","@discordjs/builders","discord-api-types"],pypi:["discord.py","discord"],envStems:["DISCORD"]},hosts:[{host:"discord.com",pathPattern:"^/api/"},{host:"discord.com",pathPattern:"^/(oauth2/authorize|login)/?$"},{host:"gateway.discord.gg"},{host:"discordapp.com",pathPattern:"^/api/"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["application","application_command","ban","channel","guild","interaction_response","invite","member","message","oauth_grant","role","user","webhook"],endpointEnvNone:"no Discord client reads a base-URL env var — discord.js takes `api` as a REST constructor option and discord.py hardcodes its Route base, so interception is the `hosts` entries above. Inventing a DISCORD_BASE_URL would report coverage the app could not use.",serveExport:"createDiscordTwinServer"},dynadot:{adoption:{pypi:[],envStems:["DYNADOT"]},hosts:[{host:"api.dynadot.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["domain","account"],serveExport:"createDynadotTwinServer"},elevenlabs:{adoption:{pypi:["elevenlabs"],sdks:["elevenlabs","@elevenlabs/elevenlabs-js"],scopes:["@elevenlabs/"],envStems:["ELEVENLABS"]},hosts:[{host:"api.elevenlabs.io"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["voice","generated_voice","pronunciation_dictionary","dubbing","history_item"],serveExport:"createElevenLabsTwinServer"},expo:{adoption:{sdks:["expo-server-sdk"],pypi:["exponent-server-sdk"],envStems:["EXPO"]},hosts:[{host:"exp.host"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["push_device","push_ticket"],endpointEnvNone:"expo-server-sdk-node DOES read EXPO_BASE_URL (src/ExpoClientValues.ts builds both push URLs from process.env['EXPO_BASE_URL'] || 'https://exp.host'), but this pack claims exp.host in `hosts`, so interception is host-based and zero-edit; emitting the var would forgo that. Point EXPO_BASE_URL at the twin by hand only when running outside an injected world.",serveExport:"createExpoTwinServer"},fal:{adoption:{pypi:["fal-client","fal"],sdks:["@fal-ai/client","@fal-ai/serverless-client"],scopes:["@fal-ai/"],envStems:["FAL"]},hostsNone:"host-split surface (fal.run / queue.fal.run) with no injector entry grounded yet — worlds wire the twin via the client's explicit endpoint config; a visible gap until its hosts are grounded here",archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["request","signing_key"],serveExport:"createFalTwinServer"},figma:{adoption:{pypi:[],sdks:["figma-api","@figma/rest-api-spec"],scopes:["@figma/"],envStems:["FIGMA"]},hostsNone:'no injector entry grounded yet — the pack README wires clients at the twin by base URL ("nothing changed but the base URL"); zero-edit interception of api.figma.com is a visible gap until grounded here',archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["file","comment","version","project","team","user","credential"],serveExport:"createFigmaTwinServer"},firecrawl:{adoption:{pypi:["firecrawl-py","firecrawl"],sdks:["@mendable/firecrawl-js","firecrawl"],scopes:["@mendable/"],envStems:["FIRECRAWL","S2SFIRECRAWLINTEGRATIONSTOFIRECRAWL"]},hosts:[{host:"api.firecrawl.dev"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["document","crawl","audit"],serveExport:"createFirecrawlTwinServer"},fireworks:{adoption:{pypi:["fireworks-ai"],sdks:["@ai-sdk/fireworks"],envStems:["FIREWORKS"]},hosts:[{host:"api.fireworks.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{account:"the vendor’s own account row (one per credential, not creatable through the API)",quota:"vendor-assigned limits (read-only in the API; the twin derives them from the account)",serverlessModel:"the vendor catalog (serverless models are curated by Fireworks, not created by callers)"},resources:["deployment","dataset","batchInferenceJob","supervisedFineTuningJob","user","apiKey","secret","model"],endpointEnvNone:"The injector intercepts api.fireworks.ai (see `hosts`), so a world wires this pack through FIREWORKS_TWIN_URL rather than an app-read base-URL var. The `fireworks` Python client would honour FIREWORKS_BASE_URL, but @ai-sdk/fireworks — the dominant client in this repo’s demand census — takes its baseURL as a constructor option and reads no such env, so an app-read var would cover only half the traffic while disabling the interception that covers all of it.",serveExport:"createFireworksTwinServer"},fly:{adoption:{pypi:[],sdks:["fly-admin"],envStems:["FLY"]},hosts:[{host:"api.machines.dev"},{host:"_api.internal"}],archetype:"engine-control",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["app","machine","volume","secret"],serveExport:"createFlyTwinServer"},gcs:{adoption:{pypi:["google-cloud-storage"],sdks:["@google-cloud/storage"],envStems:["GCS","GOOGLECLOUDSTORAGE"]},hosts:[{host:"storage.googleapis.com"},{suffix:".storage.googleapis.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["bucket","object","upload"],serveExport:"createGcsTwinServer"},gemini:{adoption:{pypi:["google-genai","google-generativeai"],sdks:["@ai-sdk/google","@ai-sdk/google-vertex","@google/genai","@google/generative-ai","@google-cloud/vertexai"],envStems:["GEMINI","GOOGLEGENAI","GOOGLEGENERATIVEAI","GOOGLEGEMINI","GOOGLEVERTEX"],worldIds:["googlegenai","googleauth"]},hosts:[{host:"generativelanguage.googleapis.com"},{host:"aiplatform.googleapis.com"},{suffix:"-aiplatform.googleapis.com"},{key:"googleauth",host:"oauth2.googleapis.com"},{key:"googleauth",host:"www.googleapis.com",pathPattern:"^/(token|oauth2/v4/token)/?$"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["file","cached_content"],serveExport:"createGeminiTwinServer"},github:{adoption:{pypi:["pygithub"],sdks:["@octokit/rest","@octokit/core","octokit","@octokit/auth-app","@octokit/auth-oauth-app","@octokit/auth-oauth-device","@octokit/graphql","@octokit/webhooks"],scopes:["@octokit/"],envStems:["GITHUB","GH","BACKENDGITHUB","INFAPPCONNECTIONGITHUBAPP","INFAPPCONNECTIONGITHUBOAUTH","INFAPPCONNECTIONGITHUBRADARAPP","APPSMITHOAUTH2GITHUB"]},hosts:[{host:"api.github.com"},{host:"uploads.github.com",pathPattern:"^/repos/[^/]+/[^/]+/releases/\\d+/assets$"},{host:"github.com",pathPattern:"^/[^/]+/[^/]+/(info/refs|git-upload-pack|git-receive-pack)$"},{host:"github.com",pathPattern:"^/login/oauth/(authorize|access_token)$"},{host:"github.com",pathPattern:"^/(login|session|sessions/two-factor(/app)?)$"},{host:"github.com",pathPattern:"^/apps/[^/]+/installations/new$"},{host:"github.com",pathPattern:"^/(organizations/[^/]+/)?settings/apps/new$"},{host:"npm.pkg.github.com",pathPattern:"^/@"}],archetype:"engine-control",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["pull_request","pull_request_review","pull_request_review_comment","issue","issue_comment","repository","branch","git_ref"],serveExport:"createGithubTwinServer"},googleads:{adoption:{sdks:["google-ads-api","google-ads-node"],pypi:["google-ads"],envStems:["GOOGLEADS","GOOGLEADSDEVELOPER"]},hosts:[{host:"googleads.googleapis.com"},{host:"datamanager.googleapis.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["customer","customer_client_link","conversion_action","click_conversion","ingest_request"],endpointEnvNone:"no Google Ads client exposes an HTTP base-URL override: google-ads-api builds the host into the request literally, google-ads-python's `endpoint` is a gRPC host:port for its transport channel, and Dub hardcodes the host in a raw fetch. Interception is host-based.",serveExport:"createGoogleAdsTwinServer"},googlecalendar:{adoption:{sdks:["@googleapis/calendar"],pypi:[],envStems:["GOOGLECALENDAR"]},hosts:[{host:"www.googleapis.com",pathPattern:"^/(batch/)?calendar/v3(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["Calendar","CalendarListEntry","Event"],endpointEnvNone:"@googleapis/calendar and googleapis read no base-URL variable: the root URL is the Discovery document's `https://www.googleapis.com/` unless the caller passes `rootUrl` (Inbox Zero reads its own GOOGLE_BASE_URL for that); interception is the host rule above.",serveExport:"createGooglecalendarTwinServer"},googlemaps:{adoption:{pypi:["googlemaps"],sdks:["@googlemaps/google-maps-services-js"],scopes:["@googlemaps/"],envStems:["GOOGLEMAPS"]},hosts:[{host:"maps.googleapis.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["geocode","audit"],serveExport:"createGoogleMapsTwinServer"},googleoauth:{adoption:{pypi:["google-auth","google-auth-oauthlib"],sdks:["google-auth-library","@googleapis/oauth2"],envStems:["GOOGLE","GOOGLEOAUTH","GOOGLEOIDC","AUTHGOOGLE","AUTHGOOGLEOAUTH2","BACKENDGOOGLE","GOOGLEIOS","GOOGLELOGIN","GOOGLEWEB","NEXTPRIVATEGOOGLE","SSOGOOGLEOAUTH2","APPSMITHOAUTH2GOOGLE"]},archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["oauth_client","account","auth_request","authorization_code","access_token","refresh_token","grant"],serveExport:"createGoogleOAuthTwinServer"},groq:{adoption:{pypi:["groq"],sdks:["groq-sdk","@ai-sdk/groq"],envStems:["GROQ"]},hosts:[{host:"api.groq.com"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resourcesUnreachable:{model:"the vendor catalog"},resources:["file","batch","model"],endpointEnvNone:"The injector intercepts api.groq.com (see `hosts`), so a world wires this pack through GROQ_TWIN_URL rather than an app-read base-URL var. groq-sdk would honour GROQ_BASE_URL, but @ai-sdk/groq — the dominant client in this repo's demand census — takes its baseURL as a constructor option and reads no such env, so an app-read var would cover only half the traffic while disabling the interception that covers all of it.",serveExport:"createGroqTwinServer"},hubspot:{adoption:{pypi:["hubspot-api-client"],sdks:["@hubspot/api-client"],envStems:["HUBSPOT","HUBSPOTPRIVATEAPP"]},hosts:[{host:"api.hubapi.com"},{host:"app.hubspot.com"},{host:"api.hsforms.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{owner:"a portal user provisioned in HubSpot's admin, never through the CRM API"},resources:["crm_object","property","property_group","pipeline","association","owner"],endpointEnvNone:"the @hubspot/api-client SDK takes its base URL from the `basePath` CONSTRUCTOR option (IConfiguration.basePath → ApiClientConfigurator.getBaseServer), not from any environment variable — it reads no process.env at all, and HubSpot documents no base-URL env var. Interception is the api.hubapi.com host entry; inventing a HUBSPOT_BASE_URL the app does not read would report a world covered while its traffic still left the machine.",serveExport:"createHubspotTwinServer"},inngest:{adoption:{pypi:["inngest"],sdks:["inngest"],envStems:["INNGEST"]},hostsNone:"SDK is base-URL-configured by design (options.baseUrl / INNGEST_BASE_URL / INNGEST_EVENT_API_BASE_URL, verified in the pack README) — worlds wire the twin through those vars",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["event","function","run","step","signing_key"],endpointEnv:{name:"INNGEST_BASE_URL",templates:{INNGEST_EVENT_API_BASE_URL:"${url}"},note:"no injector entry: the inngest SDK is base-URL-configured through INNGEST_BASE_URL / INNGEST_EVENT_API_BASE_URL."},serveExport:"createInngestTwinServer"},instagram:{adoption:{envStems:["INSTAGRAM"]},hosts:[{host:"graph.facebook.com",pathPattern:"^(?:/v\\d+\\.\\d+)?/(?:me|\\d{1,25})(?:/(?:media|media_publish|content_publishing_limit))?/?$|^/_twin/"},{host:"graph.instagram.com",pathPattern:"^(?:/v\\d+\\.\\d+)?/(?:me|\\d{1,25})(?:/(?:media|media_publish|content_publishing_limit))?/?$|^/_twin/"},{host:"rupload.facebook.com",pathPattern:"^/ig-api-upload/"},{host:"scontent.cdninstagram.com",pathPattern:"^/(?:o1/v/t16/f2/m86/|v/t51\\.(?:71878-15|2885-19)/)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["ig_user","media"],endpointEnvNone:"Meta ships no Instagram Platform client that reads a base-URL environment variable: apps call https://graph.facebook.com/<version>/… and the rupload host by constant, so a World reaches them through the hosts above; inventing an INSTAGRAM_BASE_URL the app never reads would report coverage the app does not have.",serveExport:"createInstagramTwinServer"},intercom:{adoption:{pypi:["python-intercom"],sdks:["intercom-client"],envStems:["INTERCOM"]},hosts:[{host:"api.intercom.io"},{host:"api.eu.intercom.io"},{host:"api.au.intercom.io"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["contact","conversation","message","event","data_attribute","admin","tag","note","company","segment"],serveExport:"createIntercomTwinServer"},jira:{adoption:{pypi:["jira"],sdks:["jira.js"],envStems:["JIRA","ATLASSIAN"]},hosts:[{host:"atlassian.net"},{suffix:".atlassian.net"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{oauthtoken:"issued by Atlassian's OAuth authorization server, outside the REST API"},resources:["person","issue","comment","issuelink","attachment","worklog","watcher","vote","project","component","version","sprint","filter","dashboard","gadget","webhook","oauthtoken"],serveExport:"createJiraTwinServer"},langfuse:{adoption:{pypi:["langfuse"],sdks:["langfuse","langfuse-node"],envStems:["LANGFUSE"]},hosts:[{host:"cloud.langfuse.com"},{host:"us.cloud.langfuse.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["project","api_key","trace","observation","session","score","score_config","prompt","dataset","dataset_item","dataset_run","dataset_run_item","model","comment","annotation_queue","annotation_queue_item","media","llm_connection","ingestion_event"],serveExport:"createLangfuseTwinServer"},linear:{adoption:{pypi:[],sdks:["@linear/sdk"],scopes:["@linear/"],envStems:["LINEAR"]},hosts:[{host:"api.linear.app"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"graphql",resourcesUnreachable:{project:"born of the vendor's projectCreate mutation, which this twin does not model yet — pulled only",cycle:"born of the vendor's cycleCreate mutation, which this twin does not model yet — pulled only",user:"a workspace member, born of an invite flow outside the API",workflowState:"born with the team's workflow; the API reads them"},resources:["issue","team","project","cycle","user","label","workflowState","comment","notification"],serveExport:"createDerivedLinearTwinServer"},linkedin:{adoption:{sdks:["linkedin-api-client"],pypi:["linkedin-api-client"],envStems:["LINKEDIN"]},hosts:[{host:"api.linkedin.com",pathPattern:"^(?:/rest/(?:posts|images|videos|organizationAcls|organizations|organizationsLookup|networkSizes)(?:/[^/]+)?/?|/v2/userinfo/?)$|^/_twin/"},{host:"www.linkedin.com",pathPattern:"^/dms-uploads/"},{host:"media.licdn.com",pathPattern:"^/dms/image/"},{host:"dms.licdn.com",pathPattern:"^/playlist/"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["organization","member","organization_acl","token","post"],endpointEnvNone:"linkedin-api-client takes no base-URL environment variable (its RestliClient builds https://api.linkedin.com/rest URLs from a constant), so a World reaches it through the hosts above; inventing a LINKEDIN_BASE_URL the app never reads would report coverage the app does not have.",serveExport:"createLinkedinTwinServer"},livekit:{adoption:{pypi:["livekit-api","livekit","livekit-agents"],sdks:["livekit-server-sdk","@livekit/rtc-node"],scopes:["@livekit/"],envStems:["LIVEKIT"]},hostsNone:"real local media plane (livekit-server) exposed via app-read env (LIVEKIT_URL is ws:// — WebSocket media is outside the HTTP injector's reach)",archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["room","participant","egress","ingress","sip_inbound_trunk","sip_outbound_trunk","sip_dispatch_rule","sip_participant","agent_dispatch"],serveExport:"createLiveKitTwinServer"},mailgun:{adoption:{pypi:["mailgun"],sdks:["mailgun.js"],envStems:["MAILGUN"]},hosts:[{host:"api.mailgun.net"},{host:"api.eu.mailgun.net"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["domain","message","event","bounce","complaint","unsubscribe","whitelist","webhook","route","mailing_list","list_member","template","template_version","api_key","tag","account"],endpointEnvNone:"the mailgun.js SDK reads no environment variable of its own — verified in the shipped v14.0.0 bundle: `MAILGUN` occurs zero times, and every `process.env` hit belongs to bundled axios (proxy vars) or `debug` (DEBUG). The base URL is the constructor `url` option, so no app-read endpoint env exists to inject; redirection is via the `hosts` injector entries.",serveExport:"createMailgunTwinServer"},mapbox:{adoption:{pypi:["mapbox"],sdks:["@mapbox/mapbox-sdk"],scopes:["@mapbox/"],envStems:["MAPBOX"]},hosts:[{host:"api.mapbox.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["geocode","dataset","dsfeature","style","token","tileset","upload"],serveExport:"createMapboxTwinServer"},mistral:{adoption:{pypi:["mistralai"],sdks:["@mistralai/mistralai","@ai-sdk/mistral"],envStems:["MISTRAL"]},hosts:[{host:"api.mistral.ai"},{host:"api.eu.mistral.ai"},{host:"api.us.mistral.ai"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["file","batch_job","agent","conversation","conversation_entry"],serveExport:"createMistralTwinServer"},mixpanel:{adoption:{pypi:["mixpanel"],sdks:["mixpanel","mixpanel-browser"]},hosts:[{host:"api.mixpanel.com"},{host:"api-eu.mixpanel.com"},{host:"api-in.mixpanel.com"},{host:"api-js.mixpanel.com"},{host:"data.mixpanel.com"},{host:"data-eu.mixpanel.com"},{host:"data-in.mixpanel.com"},{host:"mixpanel.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["event","profile","identity","alias"],serveExport:"createMixpanelTwinServer"},mongodb:{adoption:{pypi:[],sdks:[]},hostsNone:"RAW-PROTOCOL pack — there is no host to map. MongoDB clients speak the wire protocol over a raw TCP socket to whatever host the connection string names, which the injector (http/fetch patching) cannot see; a World reaches this twin through the connection string itself (MONGO_URI and its kin), which World-managed infrastructure injects.",archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"raw-tcp",resources:["collection","index","document"],endpointEnvNone:"no vendor base-URL variable: the application reads its own connection-string variable (MONGO_URI, MONGODB_URL, DATABASE_URL, …), and World-managed infrastructure (`volter-world init` → `volter-world-infra`) injects that variable pointing at this twin's listener.",serveExport:"createMongodbTwinServer"},moonshot:{adoption:{pypi:[],sdks:[],envStems:["MOONSHOT"]},hosts:[{host:"api.moonshot.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{model:"the vendor catalog",balance:"the account ledger the vendor keeps; read-only"},resources:["file","batch","balance","model"],endpointEnvNone:"Moonshot ships no SDK of its own; its documented clients (the standard openai/anthropic SDKs) take their base URL as a constructor option and read no MOONSHOT_BASE_URL env, so an app-read var would cover only env-configured callers while disabling the api.moonshot.ai interception that covers all traffic.",serveExport:"createMoonshotTwinServer"},notion:{adoption:{pypi:["notion-client"],sdks:["@notionhq/client"],scopes:["@notionhq/"],envStems:["NOTION"]},hostsNone:"no injector entry grounded yet — worlds point @notionhq/client at the twin via its baseUrl option; zero-edit interception of api.notion.com is a visible gap until grounded here",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resourcesUnreachable:{user:"a workspace member, born of the workspace admin, read-only through the API"},resources:["page","block","database","comment","user","webhook"],serveExport:"createNotionTwinServer"},"npm-registry":{adoption:{pypi:[],envStems:["NPM"]},hosts:[{host:"registry.npmjs.org"},{host:"npm.pkg.github.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["package","tarball","advisory"],serveExport:"createNpmRegistryTwinServer"},"oa-treasury":{adoption:{pypi:[],envStems:["MODELPROXY","MODELPROXYADMIN","AGENTPROXY","AGENTPROXYADMIN","AGENTPROXYHMAC"]},hosts:[{hostPattern:"^volter-agent-model-proxy\\.[a-z0-9.-]+\\.workers\\.dev$"},{host:"open-autonomy.org"},{host:"www.open-autonomy.org"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["account","supplier","coupon","reserve","run","rail"],serveExport:"createOaTreasuryTwinServer"},openai:{adoption:{pypi:["openai","openai-agents"],sdks:["openai","@ai-sdk/openai"],envStems:["OPENAI","APOPENAI","OPENAIMODERATION","REWORKDPLATFORMOPENAI"]},hosts:[{host:"api.openai.com"},{host:"platform.openai.com",pathPattern:"^/(settings/proj[-_][^/]+/api-keys|login$)"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["file","batch","fine_tuning_job","vector_store","vector_store_file","response","chat_completion"],serveExport:"createOpenAITwinServer"},openrouter:{adoption:{pypi:["openrouter"],sdks:["@openrouter/ai-sdk-provider"],scopes:["@openrouter/"],envStems:["OPENROUTER","OR"]},hosts:[{host:"openrouter.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["generation","api_key","byok","preset"],serveExport:"createOpenRouterTwinServer"},openweather:{adoption:{pypi:["pyowm"],sdks:["openweather-api-node"],envStems:["OPENWEATHER","OPENWEATHERMAP"]},hosts:[{host:"api.openweathermap.org"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["observation","audit"],serveExport:"createOpenWeatherTwinServer"},paypal:{adoption:{sdks:["paypal-rest-sdk"],pypi:["paypalrestsdk"],envStems:["PAYPAL"]},hosts:[{host:"api.paypal.com",pathPattern:"^/v1/(?:oauth2/token/?$|identity/openidconnect/|payments/payouts(?:-item)?(?:/|$)|notifications/)|^/_twin/"},{host:"api-m.paypal.com",pathPattern:"^/v1/(?:oauth2/token/?$|identity/openidconnect/|payments/payouts(?:-item)?(?:/|$)|notifications/)|^/_twin/"},{host:"api.sandbox.paypal.com",pathPattern:"^/v1/(?:oauth2/token/?$|identity/openidconnect/|payments/payouts(?:-item)?(?:/|$)|notifications/)|^/_twin/"},{host:"api-m.sandbox.paypal.com",pathPattern:"^/v1/(?:oauth2/token/?$|identity/openidconnect/|payments/payouts(?:-item)?(?:/|$)|notifications/)|^/_twin/"},{host:"www.paypal.com",pathPattern:"^/signin/authorize/?$|^/connect/?$|^/webapps/auth/protocol/openidconnect/|^/_twin/"},{host:"www.sandbox.paypal.com",pathPattern:"^/signin/authorize/?$|^/connect/?$|^/webapps/auth/protocol/openidconnect/|^/_twin/"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["oauth_client","account","session","auth_request","authorization_code","access_token","refresh_token","payout_batch","payout_item","webhook","webhook_event"],endpointEnvNone:"no PayPal client reads a base-URL env var — paypal-rest-sdk takes mode: sandbox|live, the current @paypal server SDK takes an Environment enum, and the motivating app computes its host from NODE_ENV — so interception is the host entries above.",serveExport:"createPaypalTwinServer"},perplexity:{adoption:{pypi:["perplexityai"],sdks:["@ai-sdk/perplexity"],envStems:["PERPLEXITY"]},hosts:[{host:"api.perplexity.ai"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["async_request"],endpointEnvNone:"@ai-sdk/perplexity — the dominant client in the 2026-08-31-b demand census — takes its baseURL as a constructor option and reads NO base-URL environment variable (perplexity-provider.ts: `withoutTrailingSlash(options.baseURL ?? 'https://api.perplexity.ai')`, and `loadApiKey` reads only PERPLEXITY_API_KEY). Perplexity documents no base-URL env var for any client, so there is nothing to inject; a fabricated PERPLEXITY_BASE_URL would let `covers` call a world covered while the app kept calling api.perplexity.ai. The injector intercepts that host (see `hosts`) instead.",serveExport:"createPerplexityTwinServer"},pinecone:{adoption:{pypi:["pinecone","pinecone-client"],sdks:["@pinecone-database/pinecone"],scopes:["@pinecone-database/"],envStems:["PINECONE"]},hostsNone:"control/data host split with per-index data-plane hostnames ({index}-{project}.svc.{env}.pinecone.io, see the pack README) — SDK is pointed at the twin by explicit host config",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["index","collection","vector"],serveExport:"createPineconeTwinServer"},plain:{adoption:{pypi:[],sdks:["@team-plain/typescript-sdk"],scopes:["@team-plain/"],envStems:["PLAIN","NEXTPRIVATEPLAIN"]},hosts:[{host:"core-api.uk.plain.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"graphql",resourcesUnreachable:{company:"born of the vendor's createCompany mutation, which this twin does not model (no manifest entry) — pulled only",customerGroup:"born of createCustomerGroup, filed as todo plain.customergroups.op_create — pulled only",customerGroupMembership:"born of addCustomerToCustomerGroups over a group the twin cannot create yet — pulled only",workspace:"the tenant itself",user:"a workspace member, born of an invite",machineUser:"born in the workspace settings UI"},resources:["workspace","user","machineUser","customer","company","tenant","customerGroup","customerGroupMembership","thread","label","labelType","threadField","timelineEntry","note","customerEvent","webhookTarget","attachment"],serveExport:"createPlainTwinServer"},planetscale:{adoption:{pypi:[],sdks:["@planetscale/database"],envStems:["PLANETSCALE"]},hosts:[{suffix:".psdb.cloud"},{host:"api.planetscale.com",pathPattern:"^/v1/organizations(/|$)"},{host:"app.planetscale.com",pathPattern:"^/(sign-in|[^/]+/settings/service-tokens)(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",nativeTransport:{protocol:"mysql",flag:"--mysql",upstreamEnv:"PLANETSCALE_TWIN_URL"},resources:["table","row","_session","_backup"],endpointEnv:{name:"PLANETSCALE_TWIN_URL",templates:{PLANETSCALE_DATABASE_URL:"http://twin:twin@${host}:${port}"},note:"the @planetscale/database client reads PLANETSCALE_DATABASE_URL and honours http:; the injector also redirects *.psdb.cloud."},prismaAdapter:{adapter:"@prisma/adapter-planetscale",export:"PrismaPlanetScale",urlEnv:"PLANETSCALE_DATABASE_URL"},serveExport:"createPlanetscaleTwinServer"},polar:{adoption:{pypi:["polar-sdk"],sdks:["@polar-sh/sdk"],scopes:["@polar-sh/"],envStems:["POLAR"]},hosts:[{host:"api.polar.sh"},{host:"sandbox-api.polar.sh"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["customer","product","subscription","order","checkout","benefit","discount","meter","event","customer_session","webhook_endpoint"],serveExport:"createPolarTwinServer"},posthog:{adoption:{pypi:["posthog"],sdks:["posthog-node","posthog-js","@posthog/api-client","@posthog/react"],envStems:["POSTHOG","POSTHOGANALYTICS","POSTHOGPERSONAL","POSTHOGPROJECT","POSTHOGPUBLIC"]},hosts:[{host:"app.posthog.com"},{host:"us.posthog.com"},{host:"eu.posthog.com"},{suffix:".i.posthog.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["project","event","person","feature_flag","insight","cohort","experiment","annotation","dashboard","action","group","org_member","early_access_feature","event_definition","property_definition"],serveExport:"createPosthogTwinServer"},postmark:{adoption:{pypi:["postmarker"],sdks:["postmark"],envStems:["POSTMARK"]},hosts:[{host:"api.postmarkapp.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["message","bounce","template","message_stream","webhook","suppression","server","domain","sender_signature","inbound_rule"],serveExport:"createPostmarkTwinServer"},reddit:{adoption:{sdks:["snoowrap"],pypi:[],envStems:["REDDIT"]},hosts:[{host:"oauth.reddit.com",pathPattern:"^/(?:api/v1/me|api/submit|api/del|api/comment|api/info|api/media/asset|by_id/[^/]+|r/[^/]+/(?:about|new|api/info)|user/[^/]+/(?:about|submitted)|subreddits/mine/(?:moderator|contributor)|(?:r/[^/]+/)?comments/[a-z0-9]+(?:/[^/]*)?)(?:\\.json)?/?$|^/_twin/"},{host:"www.reddit.com",pathPattern:"^/api/v1/access_token$"},{host:"reddit-uploaded-media.s3-accelerate.amazonaws.com"},{host:"v.redd.it",pathPattern:"^/[a-z0-9]{13}/DASH_\\d{2,4}\\.mp4$"},{host:"preview.redd.it",pathPattern:"^/[a-z0-9]{13}\\.(?:png|jpg|gif)$"},{host:"i.redd.it",pathPattern:"^/[a-z0-9]{13}\\.(?:png|jpg|gif)$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["user","subreddit","link","comment"],endpointEnvNone:"reddit clients take no base-URL environment variable (snoowrap and PRAW build https://oauth.reddit.com and https://www.reddit.com URLs from constants or explicit constructor options), so a World reaches them through the hosts above; inventing a REDDIT_BASE_URL the app never reads would report coverage the app does not have.",serveExport:"createRedditTwinServer"},redis:{adoption:{},hostsNone:"RAW-PROTOCOL pack — there is no host to map. Redis's protocol runs over a TCP socket the injector (which patches http/fetch) never sees, and a Redis has no vendor hostname: it is wherever the app's REDIS_URL points. The World points it here: init classifies REDIS_URL as managed infrastructure and the managed redis service is this twin.",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"raw-tcp",resources:["key","field","member","scored","entry","script"],endpointEnvNone:"Redis clients read no base-URL env of their own: the app passes its REDIS_URL (or host/port) to ioredis or node-redis itself, and init emits that REDIS_URL for the managed redis service (world-runtime/src/init.ts), not as a twin endpoint env.",serveExport:"createRedisTwinServer"},replicate:{adoption:{pypi:["replicate"],sdks:["replicate","@ai-sdk/replicate"],envStems:["REPLICATE","REWORKDPLATFORMREPLICATE"]},hostsNone:"no injector entry grounded yet — worlds wire the twin via the SDK's explicit baseUrl config; zero-edit interception of api.replicate.com is a visible gap until its hosts are grounded here",archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resourcesUnreachable:{model_version:"born of `cog push`, never of the HTTP API; pulled"},resources:["prediction","model","model_version","webhook_secret"],serveExport:"createReplicateTwinServer"},resend:{adoption:{pypi:["resend"],sdks:["resend"],envStems:["RESEND","NEXTPRIVATERESEND"]},hosts:[{host:"api.resend.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["email","audience","contact","domain","api_key"],serveExport:"createResendTwinServer"},runhuman:{adoption:{sdks:["runhuman"]},hosts:[{host:"runhuman.com",pathPattern:"^/api/"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["organization","project","api_key","user","tester_profile","job","pipeline_run"],endpointEnv:{name:"RUNHUMAN_API_URL",note:"grounded in volter-ai/runhuman packages/cli/src/lib/config.ts, which overrides the CLI apiUrl from RUNHUMAN_API_URL; RH2 reads its human-marketplace base URL from the provider row spec.url instead, which a rehearsal World sets to this same twin URL."},serveExport:"createRunhumanTwinServer"},scrapecreators:{adoption:{pypi:[],sdks:["@scrapecreators/cli"],envStems:["SCRAPECREATORS"]},hosts:[{host:"api.scrapecreators.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["profile","content","cache","account","usage"],serveExport:"createScrapeCreatorsTwinServer"},segment:{adoption:{pypi:["segment-analytics-python","analytics-python"],sdks:["@segment/analytics-node"],envStems:["SEGMENT"]},hosts:[{host:"api.segment.io"},{host:"events.eu1.segmentapis.com"},{host:"oauth2.segment.io"},{host:"oauth2.eu1.segmentapis.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["event","identity","group","dropped"],serveExport:"createSegmentTwinServer"},sendblue:{adoption:{pypi:["sendblue"],sdks:["sendblue"],envStems:["SENDBLUE"]},hostsNone:"no injector entry grounded yet — worlds wire the twin via explicit client endpoint config; a visible gap until its host is grounded here",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["message","credential"],serveExport:"createSendblueTwinServer"},sendgrid:{adoption:{pypi:["sendgrid"],sdks:["@sendgrid/mail","@sendgrid/client"],envStems:["SENDGRID","SENDGRIDSYNC"]},hosts:[{host:"api.sendgrid.com"},{host:"api.eu.sendgrid.com"},{host:"email.twilio.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["message"],serveExport:"createSendgridTwinServer"},sentry:{adoption:{pypi:["sentry-sdk"],sdks:["@sentry/node","@sentry/browser","@sentry/react","@sentry/nextjs","@sentry/vue","@sentry/sveltekit","@sentry/astro","@sentry/remix","@sentry/electron","@sentry/react-native"],scopes:["@sentry/"],envStems:["SENTRY","APPSMITHSENTRY"]},hosts:[{host:"sentry.io"},{suffix:".ingest.sentry.io"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["organization","team","project","project_key","issue","event","event_attachment","session","project_ownership","codeowners","project_filter","release","release_file","deploy","alert_rule","metric_alert","org_integration"],serveExport:"createSentryTwinServer"},slack:{adoption:{worldIds:["slackapp"],pypi:["slack-sdk","slack-bolt","slackclient"],sdks:["@slack/web-api","@slack/bolt","@slack/webhook","@slack/oauth"],scopes:["@slack/"],envStems:["SLACK","SLACKBOTUSER"]},hosts:[{key:"slackapp",host:"slack.com",pathPattern:"^/api/apps\\.connections\\.open/?$"},{host:"slack.com"},{host:"www.slack.com"},{host:"api.slack.com"},{host:"hooks.slack.com",pathPattern:"^/services/"},{host:"avatars.slack-edge.com",pathPattern:"^/T[A-Za-z0-9-]+/(([UWA][A-Za-z0-9-]+|icon)_[0-9]{1,4}\\.png|[UW][A-Za-z0-9-]+-[0-9a-f]{12}_([0-9]{1,4}|original)\\.(png|gif))$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"web-api",resources:["channel","user","message","file","audit"],serveExport:"createSlackTwinServer"},smtp:{adoption:{pypi:["aiosmtplib"],sdks:["nodemailer","nodemailer-smtp-transport","emailjs"],envStems:["NEXTPRIVATESMTP"]},hostsNone:"RAW-PROTOCOL pack — there is no host to map. SMTP is a line protocol over a raw TCP socket, so the injector (which patches http/fetch) cannot see the traffic at all, and there is no vendor hostname either: the relay is whatever the operator names (smtp.gmail.com, email-smtp.us-east-1.amazonaws.com, localhost:1025 …). Interception is app-read env instead — the world injects SMTP_HOST/SMTP_PORT + EMAIL_SERVER/EMAIL_SERVER_HOST/EMAIL_SERVER_PORT at the twin's listener (APP_READ_ENDPOINT_ENV in world-runtime/src/init.ts), which is the ONLY thing every SMTP client is configured with. Same class as livekit's ws:// media plane, one layer further down.",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"raw-tcp",resources:["message","relay"],serveExport:"createSmtpTwinServer"},snowflake:{adoption:{pypi:["snowflake-connector-python","snowflake","snowflake-snowpark-python","snowflake-sqlalchemy"],sdks:["snowflake-sdk"],envStems:["SNOWFLAKE"]},hosts:[{suffix:".snowflakecomputing.com"},{suffix:".snowflakecomputing.cn"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["database","schema","table","view","warehouse","session","query"],endpointEnvNone:"the snowflake-sdk takes its endpoint through createConnection()'s own account/host/accessUrl/protocol/port options or a connections.toml under SNOWFLAKE_HOME; it reads NO base-URL environment variable (verified against the packed snowflake-sdk@3.2.0 tarball, whose lib/ reads SNOWFLAKE_HOME, SNOWFLAKE_DEFAULT_CONNECTION_NAME, the SNOWFLAKE_DISABLE_*/SNOWFLAKE_CRL_*/SNOWFLAKE_RUNNING_INSIDE_SPCS switches, the SF_OCSP_*/SF_TELEMETRY_*/SF_CLIENT_CONFIG_FILE/SF_TEMPORARY_CREDENTIAL_CACHE_DIR debug and cache switches, the standard http_proxy family, and some non-Snowflake names like AWS_REGION/HOME - no base-URL variable of any kind). Interception is host-based via the .snowflakecomputing.com and .snowflakecomputing.cn suffix entries; a SNOWFLAKE_BASE_URL would be a var no app reads.",serveExport:"createSnowflakeTwinServer"},stigg:{adoption:{sdks:["@stigg/node-server-sdk","@stigg/react-sdk","@stigg/js-client-sdk","@stigg/api-client-js"],pypi:["stigg-api-client","stigg"],scopes:["@stigg/"],envStems:["STIGG","STIGGCLIENT"]},hosts:[{host:"api.stigg.io"},{host:"edge.api.stigg.io"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"graphql",resources:["product","plan","feature","packageEntitlement","price","customer","subscription","usageMeasurement","promotionalEntitlement","coupon","integration","hook"],endpointEnvNone:"the Stigg SDKs take their base URL as a constructor option (Stigg.initialize({ baseUri, baseEdgeUri })) and read NO env var for it. Verified by grep for process.env across the SDK dists: @stigg/node-server-sdk 4.55.0 (the version this pack pins and installs) and, in the consumer tree that motivated the pack, @stigg/node-server-sdk 4.2.0 and @stigg/js-client-sdk 3.67.0 — every one of them references only process.env.NODE_ENV. (The browser SDKs are NOT installed in this repo; that half of the evidence comes from ~/Code/Ponder and is therefore not re-checkable here, which is why both trees are named rather than one. §9 round 1 flagged the original citation for naming versions this repo does not carry.) Interception is by the api.stigg.io / edge.api.stigg.io host entries above.",serveExport:"createStiggTwinServer"},stream:{adoption:{pypi:["stream-chat"],sdks:["stream-chat"],envStems:["STREAM","GETSTREAM"]},hosts:[{host:"chat.stream-io-api.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["user","channel","message","channeltype","device","ban","mute","flag"],serveExport:"createStreamTwinServer"},stripe:{adoption:{pypi:["stripe"],sdks:["stripe"],envStems:["STRIPE","NEXTPRIVATESTRIPE"]},hosts:[{host:"api.stripe.com"},{host:"checkout.stripe.com",pathPattern:"^/c/pay/"},{host:"billing.stripe.com",pathPattern:"^/p/session/"},{host:"connect.stripe.com",pathPattern:"^/setup/|^/oauth/(authorize|token|deauthorize)/?$"},{host:"dashboard.stripe.com",pathPattern:"^/settings/public/?$|^/(test/)?settings/connect(/onboarding-options/oauth)?/?$"},{host:"verify.stripe.com",pathPattern:"^/start/"},{host:"js.stripe.com",pathPattern:"^/v3/financial-connections/|^/v3/?$|^/(v3|[a-z]+)/stripe\\.js$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["charge","customer","payment_intent","setup_intent","payment_method","subscription","price","product","invoice","invoiceitem","refund","event"],serveExport:"createStripeTwinServer"},supabase:{adoption:{pypi:["supabase","gotrue","supabase-auth","postgrest","storage3","supafunc","realtime"],sdks:["@supabase/supabase-js"],scopes:["@supabase/"],envStems:["SUPABASE"],worldIds:["supabasemgmt"]},hostsNone:"dual-plane by design: the data plane is the REAL local Supabase stack (external service, app reads discovered SUPABASE_URL); the management twin is app-read via SUPABASE_MGMT_TWIN_URL (cookbook/saas-ai-supabase/app.mjs) — no fixed-host interception wired",archetype:"engine-control",protocol:{major:1,standing:"deprecated"},transport:"rest",resourcesUnreachable:{access_token:"a personal access token minted in the dashboard; the twin only reads it as seeded state",network_ban:"born of the vendor's abuse detector",backup:"born of the vendor's scheduler"},resources:["organization","org_member","access_token","project","branch","config","secret","function","network_restrictions","network_ban","custom_hostname","read_replica","backup"],serveExport:"createSupabaseTwinServer"},supermemory:{adoption:{pypi:["supermemory"],sdks:["supermemory"],envStems:["SUPERMEMORY"]},hosts:[{host:"api.supermemory.ai"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["document","setting"],serveExport:"createSupermemoryTwinServer"},svix:{adoption:{pypi:["svix"],sdks:["svix"],envStems:["SVIX"]},hosts:[{host:"api.svix.com"},{host:"api.us.svix.com"},{host:"api.eu.svix.com"},{host:"api.in.svix.com"},{host:"api.ca.svix.com"},{host:"api.au.svix.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["application","endpoint","message","message_attempt","event_type"],serveExport:"createSvixTwinServer"},tavily:{adoption:{sdks:["@tavily/core"],pypi:["tavily-python"],envStems:["TAVILY"]},hosts:[{host:"api.tavily.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["page","usage","log","research","keyless"],endpointEnvNone:"the @tavily/core SDK exposes no base-URL env var — it reads only TAVILY_API_KEY/TAVILY_HTTP(S)_PROXY/TAVILY_ORG_ID/TAVILY_PROJECT from process.env; base-URL override is the constructor option apiBaseURL (dist/index.mjs post()/get(): `apiBaseURL || BASE_URL`), so interception is the hosts entry above.",serveExport:"createTavilyTwinServer"},temporal:{adoption:{sdks:["@temporalio/client","@temporalio/worker","@temporalio/workflow","@temporalio/activity"],scopes:["@temporalio/"],pypi:["temporalio"],envStems:["TEMPORAL"]},hostsNone:"RAW-PROTOCOL pack — there is no host to map. The Temporal SDKs dial the frontend address they are configured with (Connection.connect / NativeConnection.connect `address`, conventionally TEMPORAL_ADDRESS) over gRPC, which the http/fetch injector never sees. Interception is the app-read address: the World injects TEMPORAL_ADDRESS=<host>:<port> at this twin (APP_READ_ENDPOINT_ENV in world-runtime/src/init.ts).",archetype:"engine-control",protocol:{declared:"2",major:2,standing:"current"},transport:"raw-tcp",resources:["workflow-execution","namespace"],serveExport:"createTemporalTwinServer"},tiktok:{adoption:{sdks:[],pypi:[],envStems:["TIKTOK"]},hosts:[{host:"www.tiktok.com",pathPattern:"^/v2/auth/authorize/?$|^/_twin/"},{host:"open.tiktokapis.com",pathPattern:"^/v2/(?:oauth/(?:token|revoke)|user/info|video/(?:list|query)|post/publish/(?:creator_info/query|video/init|inbox/video/init|status/fetch))/?$|^/_twin/"},{host:"open-upload.tiktokapis.com",pathPattern:"^/video/?$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["oauth_client","account","session","auth_request","grant","video","publish"],endpointEnvNone:"no app-read base-URL env exists: TikTok publishes no official SDK with a base-URL option and integrations (Dub included) hardcode www.tiktok.com and open.tiktokapis.com, so interception is the path-scoped hosts entries above.",serveExport:"createTikTokTwinServer"},tinybird:{adoption:{pypi:["tinybird-python-sdk","tinybird-cli"],sdks:["@chronark/zod-bird"],scopes:["@chronark/zod-bird"],envStems:["TINYBIRD"]},hosts:[{host:"api.tinybird.co"},{hostPattern:"^api\\.[a-z0-9.-]+\\.tinybird\\.co$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["datasource","pipe","event","token","job","tag"],serveExport:"createTinybirdTwinServer"},togetherai:{adoption:{sdks:["together-ai"],envStems:["TOGETHER"]},hosts:[{host:"api.together.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{model:"the vendor catalog"},resources:["file","batch","finetune","model"],endpointEnv:{name:"TOGETHER_TWIN_URL",templates:{TOGETHER_API_BASE_URL:"${url}/v1"},note:"the injector covers api.together.ai, but together-ai's files.upload() reads TOGETHER_API_BASE_URL at module load and ignores client.baseURL (lib/upload.js:12) — the template points it at the twin's /v1 so the SDK upload flow does not egress to the real vendor."},serveExport:"createTogetheraiTwinServer"},tremendous:{adoption:{pypi:[],sdks:["tremendous"],envStems:["TREMENDOUS"]},hosts:[{host:"api.tremendous.com"},{host:"testflight.tremendous.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["order","reward","campaign","product","funding_source","invoice","topup","balance_txn","member","field","webhook","organization","settings"],serveExport:"createTremendousTwinServer"},tunnel:{adoption:{pypi:[],sdks:["@volter/tunnel"],envStems:["TUNNEL","VOLTERTUNNEL"]},hostsNone:"no injector entry by design: native cloudflared is an external binary, while @volter/tunnel opens a configurable WebSocket control channel and the CLI reads TUNNEL_SERVER_URL. Worlds wire that app-read endpoint directly; claiming api.trycloudflare.com in the Node injector would not redirect cloudflared and would falsely imply the Cloudflare edge data plane was twinned",archetype:"proxy",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["quick_tunnel","relay_tunnel","relay"],serveExport:"createTunnelTwinServer"},turbopuffer:{adoption:{sdks:["@turbopuffer/turbopuffer"],pypi:["turbopuffer"],scopes:["@turbopuffer/"],envStems:["TURBOPUFFER"]},hosts:[{hostPattern:"^(?:aws|gcp|azure)-[a-z0-9-]+\\.turbopuffer\\.com$"},{host:"turbopuffer.com",pathPattern:"^/(login|dashboard|_twin/users)(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["namespace","document"],endpointEnv:{name:"TURBOPUFFER_TWIN_URL",templates:{TURBOPUFFER_BASE_URL:"${url}/{region}"},note:"grounded in @turbopuffer/turbopuffer@2.8.0 src/client.ts:253-288 (TURBOPUFFER_BASE_URL, {region} placeholder substitution) and internal/custom/fetch-node.ts (undici Agent.request under node, outside the injector); the injector also claims the regional *.turbopuffer.com hosts for fetch-based runtimes."},serveExport:"createTurbopufferTwinServer"},twelvelabs:{adoption:{pypi:["twelvelabs"],sdks:["twelvelabs-js"],envStems:["TWELVELABS"]},hosts:[{host:"api.twelvelabs.io"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["index","task","video"],serveExport:"createTwelvelabsTwinServer"},twilio:{adoption:{pypi:["twilio"],sdks:["twilio"],envStems:["TWILIO"]},hostsNone:"no injector entry grounded yet — worlds point the twilio SDK at the twin via explicit client config; zero-edit interception of the three real Twilio hosts (pack README §Coverage) is a visible gap until grounded here",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["message","verification","phone_number","signing_key"],serveExport:"createTwilioTwinServer"},upstash:{adoption:{pypi:["upstash-redis","upstash-ratelimit","qstash","upstash-workflow"],sdks:["@upstash/redis","@upstash/ratelimit","@upstash/qstash","@upstash/workflow"],scopes:["@upstash/redis","@upstash/ratelimit","@upstash/qstash","@upstash/workflow"],envStems:["UPSTASHREDIS","KVREST","QSTASH"]},hosts:[{suffix:".upstash.io"},{suffix:"-vector.upstash.io",exclude:!0},{host:"api.upstash.com",pathPattern:"^/v2/(redis|team|teams)(/|$)"},{host:"console.upstash.com",pathPattern:"^/(login|account/(api|teams)|qstash|invite)(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["key"],endpointEnv:{name:"UPSTASH_TWIN_URL",templates:{QSTASH_URL:"${url}"},note:"@upstash/qstash and @upstash/workflow read QSTASH_URL; the injector also redirects *.upstash.io (Redis databases, QStash) to this twin."},serveExport:"createUpstashRedisTwinServer"},upstashvector:{adoption:{pypi:["upstash-vector"],sdks:["@upstash/vector"],scopes:["@upstash/vector"],envStems:["UPSTASHVECTOR"]},hosts:[{suffix:"-vector.upstash.io"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["vector","namespace","config"],serveExport:"createUpstashVectorTwinServer"},vercel:{adoption:{pypi:["vercel"],sdks:["@vercel/sdk","@vercel/edge-config"],envStems:["VERCEL"]},hosts:[{host:"api.vercel.com"},{host:"edge-config.vercel.com"},{host:"avatar.vercel.sh"},{host:"vercel.com",pathPattern:"^/(login|account/tokens)(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["team","project","project_domain","domain","dns_record","env_var","edge_config","deployment","alias","auth_token"],serveExport:"createVercelTwinServer"},veriff:{adoption:{pypi:[],sdks:["@veriff/js-sdk"],scopes:["@veriff/"],envStems:["VERIFF"]},hosts:[{host:"stationapi.veriff.com"},{host:"api.veriff.me"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["session","attempt","media","delivery"],serveExport:"createVeriffTwinServer"},vital:{adoption:{pypi:["vital"],sdks:["@tryvital/vital-node"],scopes:["@tryvital/"],envStems:["VITAL"]},hosts:[{host:"api.tryvital.io"},{host:"api.sandbox.tryvital.io"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["user","order","appointment","webhook"],serveExport:"createVitalTwinServer"},volteridentity:{adoption:{sdks:["@volter/identity"],pypi:[],envStems:[]},hosts:[{host:"id.volter.ai"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["person","session","oauth_client","oauth_resource","client_resource","consent","authorization_code","access_token","refresh_token","device_code","organization","member","invitation"],endpointEnv:{name:"VOLTER_ISSUER",note:'grounded in the consumers: browser-substrate services/gateway/cloudflare/volter.ts (`VOLTER_ISSUER`, "the identity service, https://id.volter.ai") discovers the issuer from it, and Volter Teams is configured with `VOLTER_ISSUER` (volter-ai/identity ROADMAP I4); the twin is its own issuer, so discovery, tokens and redirects all name the injected URL.'},serveExport:"createVolterIdentityTwinServer"},webrisk:{adoption:{pypi:["google-cloud-webrisk"],sdks:["@google-cloud/web-risk"],envStems:["WEBRISK"]},hosts:[{host:"webrisk.googleapis.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["verdict","submission","operation","audit","iam_policy"],serveExport:"createWebRiskTwinServer"},x:{adoption:{pypi:["tweepy"],sdks:["twitter-api-v2"]},hosts:[{host:"api.x.com",pathPattern:"^(?:/2/media/upload/?|/2/media/upload/initialize/?|/2/media/upload/[0-9]+/(?:append|finalize)/?|/2/tweets/?|/2/tweets/[^/]+/?|/2/tweets/search/recent/?|/2/users/(?!me/?$)[^/]+/?|/2/users/by/username/[^/]+/?|/2/users/[^/]+/mentions/?|/2/users/[^/]+/tweets/?|/2/users/[^/]+/timelines/reverse_chronological/?)$|^/_twin/(?!assets/consent\\.(?:js|css)$)"},{host:"api.twitter.com",pathPattern:"^(?:/2/media/upload/?|/2/media/upload/initialize/?|/2/media/upload/[0-9]+/(?:append|finalize)/?|/2/tweets/?|/2/tweets/[^/]+/?|/2/tweets/search/recent/?|/2/users/(?!me/?$)[^/]+/?|/2/users/by/username/[^/]+/?|/2/users/[^/]+/mentions/?|/2/users/[^/]+/tweets/?|/2/users/[^/]+/timelines/reverse_chronological/?)$|^/_twin/(?!assets/consent\\.(?:js|css)$)"},{host:"x.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"twitter.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"www.x.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"www.twitter.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"mobile.twitter.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"mobile.x.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"pbs.twimg.com",pathPattern:"^/media/[0-9a-f]{64}\\.(?:jpg|png|gif|webp)$|^/ext_tw_video_thumb/[0-9]{1,19}/pu/img/[0-9a-f]{64}\\.svg$"},{host:"video.twimg.com",pathPattern:"^/ext_tw_video/[0-9]{1,19}/pu/vid/avc1/[0-9]+x[0-9]+/[0-9a-f]{64}\\.mp4$"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["account","token","post","follow","rate_limit"],serveExport:"createXTwinServer"},xai:{adoption:{pypi:["xai-sdk"],sdks:["@ai-sdk/xai"],envStems:["XAI","GROK"]},hosts:[{host:"api.x.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{language_model:"the vendor catalog",model:"the vendor catalog"},resources:["deferred_completion","language_model","model","oauth_account","oauth_device_authorization","oauth_usage"],serveExport:"createXaiTwinServer"},xidentity:{adoption:{pypi:[],sdks:["@xdevplatform/xdk","twitter-api-sdk"],scopes:["@xdevplatform/"],envStems:["X","TWITTER"]},hosts:[{host:"x.com",pathPattern:"^/i/oauth2/authorize/?$|^/_twin/"},{host:"twitter.com",pathPattern:"^/i/oauth2/authorize/?$|^/_twin/"},{host:"api.x.com",pathPattern:"^/2/(?:oauth2/(?:token|revoke)|users/me)/?$|^/oauth/(?:request_token|authorize|authenticate|access_token)/?$|^/1\\.1/oauth/invalidate_token(?:\\.json)?/?$|^/_twin/assets/consent\\.(?:js|css)$"},{host:"api.twitter.com",pathPattern:"^/2/(?:oauth2/(?:token|revoke)|users/me)/?$|^/oauth/(?:request_token|authorize|authenticate|access_token)/?$|^/1\\.1/oauth/invalidate_token(?:\\.json)?/?$|^/_twin/assets/consent\\.(?:js|css)$"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["oauth_client","account","session","auth_request","authorization_code","access_token","refresh_token","grant","rate_window","oauth1_app","oauth1_request_token","oauth1_token","oauth1_grant"],serveExport:"createXIdentityTwinServer"},youtube:{adoption:{pypi:[],sdks:["@googleapis/youtube"],envStems:["YOUTUBE"]},hosts:[{host:"youtube.googleapis.com"},{host:"www.googleapis.com",pathPattern:"^/(upload/)?youtube/v3(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["channel","video","playlist","playlistItem"],serveExport:"createYouTubeTwinServer"}},undeclared:[]}});var Ng=N6((hQ0,qg)=>{var pt=($)=>typeof $==="string"&&(/^\/(o\/oauth2\/v2\/auth(\/oauthchooseaccount)?|o\/oauth2\/auth|o\/oauth2\/token|signin\/oauth\/error|\.well-known\/openid-configuration)\/?$/.test($)||/^\/_twin\//.test($)),ct=($)=>typeof $==="string"&&/^\/(token|oauth2\/v4\/token|revoke|tokeninfo|device\/code)\/?$/.test($),lt=($)=>typeof $==="string"&&/^\/(oauth2\/(v1\/certs|v3\/(certs|userinfo)|v2\/userinfo)|userinfo\/v2\/me)\/?$/.test($),_Y={googleoauth:($,I)=>$==="accounts.google.com"&&(I===void 0||pt(I))||$==="oauth2.googleapis.com"&&(I===void 0||ct(I))||$==="www.googleapis.com"&&(I===void 0||lt(I))||$==="openidconnect.googleapis.com",googlefavicon:($)=>$==="www.google.com"||$==="google.com"||$==="t2.gstatic.com",browserassets:($)=>$==="cdnjs.cloudflare.com"||$==="www.googletagmanager.com"||$==="www.google-analytics.com"||$==="connect.facebook.net"||$==="snap.licdn.com"||$==="px.ads.linkedin.com"||$==="static.hotjar.com"||$==="fonts.googleapis.com"||$==="fonts.gstatic.com"||$==="api.fontshare.com"||$==="images.subscribe.dev"||$==="www.youtube.com"||$==="www.youtube-nocookie.com"||$==="i.ytimg.com"};{let{packs:$}=Cg();for(let I of Object.keys($)){let G=$[I].hosts;if(!G||G.length===0)continue;if(_Y[I])throw Error(`inject: vendor "${I}" declares hosts on its pack descriptor AND in the hand VENDOR_HOSTS table — one home per fact; delete the hand entry.`);let Z=new Map;for(let _ of G){let J=_.key===void 0?I:_.key;if(!Z.has(J))Z.set(J,[]);Z.get(J).push(_)}for(let[_,J]of Z){if(_Y[_])throw Error(`inject: key "${_}" (pack ${I}) is declared twice — on this descriptor and in the hand VENDOR_HOSTS table or another pack's descriptor; a key has one home.`);let Y=(M)=>{if(["host","suffix","hostPattern"].filter((N)=>M[N]!==void 0).length!==1)throw Error(`inject: key "${_}" (pack ${I}) rule ${JSON.stringify(M)} — exactly one of host | suffix | hostPattern (pack-facts.json is hand-edited or stale)`);let T=M.hostPattern===void 0?null:new RegExp(M.hostPattern),S=M.pathPattern===void 0?null:new RegExp(M.pathPattern);return(N,B)=>(M.host!==void 0?N===M.host:M.suffix!==void 0?N.endsWith(M.suffix):T.test(N))&&(S===null||B===void 0||S.test(B))},W=J.filter((M)=>M.exclude!==!0).map(Y),R=J.filter((M)=>M.exclude===!0).map(Y);_Y[_]=(M,E)=>W.some((T)=>T(M,E))&&!R.some((T)=>T(M,E))}}}function mt($){let I=String($||"").toLowerCase().replace(/\.$/,"");return Object.keys(_Y).some((G)=>_Y[G](I))}qg.exports={VENDOR_HOSTS:_Y,isVendorHost:mt}});var kg={};LU(kg,{validateHeaderValue:()=>Kr,validateHeaderName:()=>Dr,setMaxIdleHTTPParsers:()=>Lr,request:()=>Or,maxHeaderSize:()=>Zr,globalAgent:()=>zr,get:()=>Qr,default:()=>Wr,createServer:()=>Jr,ServerResponse:()=>Yr,Server:()=>Gr,STATUS_CODES:()=>Xr,OutgoingMessage:()=>_r,METHODS:()=>Ir,IncomingMessage:()=>Ur,ClientRequest:()=>$r,Agent:()=>et});var dt,it,Bg,ot,tt,rt=($,I,G)=>{G=$!=null?dt(it($)):{};let Z=I||!$||!$.__esModule?Bg(G,"default",{value:$,enumerable:!0}):G;for(let _ of ot($))if(!tt.call(Z,_))Bg(Z,_,{get:()=>$[_],enumerable:!0});return Z},at=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports),st,jg,et,$r,Ur,Ir,_r,Xr,Gr,Yr,Jr,Qr,zr,Zr,Or,Lr,Dr,Kr,Wr;var gg=WI(()=>{dt=Object.create,{getPrototypeOf:it,defineProperty:Bg,getOwnPropertyNames:ot}=Object,tt=Object.prototype.hasOwnProperty,st=at(($,I)=>{var G=(Xz(),P$(m5)),Z=(RE(),P$(EE)),_=$;for(J in G)if(G.hasOwnProperty(J))_[J]=G[J];var J;_.request=function(W,R){return W=Y(W),G.request.call(this,W,R)},_.get=function(W,R){return W=Y(W),G.get.call(this,W,R)};function Y(W){if(typeof W==="string")W=Z.parse(W);if(!W.protocol)W.protocol="https:";if(W.protocol!=="https:")throw Error('Protocol "'+W.protocol+'" not supported. Expected "https:"');return W}}),jg=rt(st(),1),{Agent:et,ClientRequest:$r,IncomingMessage:Ur,METHODS:Ir,OutgoingMessage:_r,STATUS_CODES:Xr,Server:Gr,ServerResponse:Yr,createServer:Jr,get:Qr,globalAgent:zr,maxHeaderSize:Zr,request:Or,setMaxIdleHTTPParsers:Lr,validateHeaderName:Dr,validateHeaderValue:Kr}=jg,Wr=jg});var fE={};LU(fE,{throws:()=>Ba,strictEqual:()=>Na,strict:()=>qa,rejects:()=>Ca,ok:()=>va,notStrictEqual:()=>Sa,notEqual:()=>Pa,notDeepStrictEqual:()=>Va,notDeepEqual:()=>Ra,match:()=>Ea,ifError:()=>Aa,fail:()=>Ma,equal:()=>Ta,doesNotThrow:()=>Fa,doesNotReject:()=>Ha,doesNotMatch:()=>Wa,default:()=>ja,deepStrictEqual:()=>Ka,deepEqual:()=>Da,CallTracker:()=>La,AssertionError:()=>Oa});var Hr,Fr,wg,Tr,Mr,Ar=($,I,G)=>{G=$!=null?Hr(Fr($)):{};let Z=I||!$||!$.__esModule?wg(G,"default",{value:$,enumerable:!0}):G;for(let _ of Tr($))if(!Mr.call(Z,_))wg(Z,_,{get:()=>$[_],enumerable:!0});return Z},A$=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports),qE,d5,NE,Er,Rr,Vr,Pr,xg,Yz,Sr,vr,Cr,qr,Nr,Br,jr,kr,gr,wr,XY,i5,xr,fg,yg,fr,Jz,BE,jE,yr,bg,kE,br,gE,hg,wE,GY,hr,ur,nr,pr,cr,lr,mr,dr,ir,ug,ng,or,tr,o5,pg,rr,ar,sr,er,$a,Gz,cg,Ua,lg,Ia,mg,_a,Xa,dg,xE,Ga,t5,Ya,Ja,ig,og,Qa,za,Za,CE,tg,Oa,La,Da,Ka,Wa,Ha,Fa,Ta,Ma,Aa,Ea,Ra,Va,Pa,Sa,va,Ca,qa,Na,Ba,ja;var yE=WI(()=>{Hr=Object.create,{getPrototypeOf:Fr,defineProperty:wg,getOwnPropertyNames:Tr}=Object,Mr=Object.prototype.hasOwnProperty,qE=A$(($,I)=>{I.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var G={},Z=Symbol("test"),_=Object(Z);if(typeof Z==="string")return!1;if(Object.prototype.toString.call(Z)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(_)!=="[object Symbol]")return!1;var J=42;G[Z]=J;for(var Y in G)return!1;if(typeof Object.keys==="function"&&Object.keys(G).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(G).length!==0)return!1;var W=Object.getOwnPropertySymbols(G);if(W.length!==1||W[0]!==Z)return!1;if(!Object.prototype.propertyIsEnumerable.call(G,Z))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var R=Object.getOwnPropertyDescriptor(G,Z);if(R.value!==J||R.enumerable!==!0)return!1}return!0}}),d5=A$(($,I)=>{var G=qE();I.exports=function(){return G()&&!!Symbol.toStringTag}}),NE=A$(($,I)=>{I.exports=Object}),Er=A$(($,I)=>{I.exports=Error}),Rr=A$(($,I)=>{I.exports=EvalError}),Vr=A$(($,I)=>{I.exports=RangeError}),Pr=A$(($,I)=>{I.exports=ReferenceError}),xg=A$(($,I)=>{I.exports=SyntaxError}),Yz=A$(($,I)=>{I.exports=TypeError}),Sr=A$(($,I)=>{I.exports=URIError}),vr=A$(($,I)=>{I.exports=Math.abs}),Cr=A$(($,I)=>{I.exports=Math.floor}),qr=A$(($,I)=>{I.exports=Math.max}),Nr=A$(($,I)=>{I.exports=Math.min}),Br=A$(($,I)=>{I.exports=Math.pow}),jr=A$(($,I)=>{I.exports=Math.round}),kr=A$(($,I)=>{I.exports=Number.isNaN||function(G){return G!==G}}),gr=A$(($,I)=>{var G=kr();I.exports=function(Z){if(G(Z)||Z===0)return Z;return Z<0?-1:1}}),wr=A$(($,I)=>{I.exports=Object.getOwnPropertyDescriptor}),XY=A$(($,I)=>{var G=wr();if(G)try{G([],"length")}catch(Z){G=null}I.exports=G}),i5=A$(($,I)=>{var G=Object.defineProperty||!1;if(G)try{G({},"a",{value:1})}catch(Z){G=!1}I.exports=G}),xr=A$(($,I)=>{var G=typeof Symbol<"u"&&Symbol,Z=qE();I.exports=function(){if(typeof G!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof G("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return Z()}}),fg=A$(($,I)=>{I.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),yg=A$(($,I)=>{var G=NE();I.exports=G.getPrototypeOf||null}),fr=A$(($,I)=>{var G="Function.prototype.bind called on incompatible ",Z=Object.prototype.toString,_=Math.max,J="[object Function]",Y=function(M,E){var T=[];for(var S=0;S<M.length;S+=1)T[S]=M[S];for(var N=0;N<E.length;N+=1)T[N+M.length]=E[N];return T},W=function(M,E){var T=[];for(var S=E||0,N=0;S<M.length;S+=1,N+=1)T[N]=M[S];return T},R=function(M,E){var T="";for(var S=0;S<M.length;S+=1)if(T+=M[S],S+1<M.length)T+=E;return T};I.exports=function(M){var E=this;if(typeof E!=="function"||Z.apply(E)!==J)throw TypeError(G+E);var T=W(arguments,1),S,N=function(){if(this instanceof S){var g=E.apply(this,Y(T,arguments));if(Object(g)===g)return g;return this}return E.apply(M,Y(T,arguments))},B=_(0,E.length-T.length),x=[];for(var w=0;w<B;w++)x[w]="$"+w;if(S=Function("binder","return function ("+R(x,",")+"){ return binder.apply(this,arguments); }")(N),E.prototype){var y=function(){};y.prototype=E.prototype,S.prototype=new y,y.prototype=null}return S}}),Jz=A$(($,I)=>{var G=fr();I.exports=Function.prototype.bind||G}),BE=A$(($,I)=>{I.exports=Function.prototype.call}),jE=A$(($,I)=>{I.exports=Function.prototype.apply}),yr=A$(($,I)=>{I.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),bg=A$(($,I)=>{var G=Jz(),Z=jE(),_=BE(),J=yr();I.exports=J||G.call(_,Z)}),kE=A$(($,I)=>{var G=Jz(),Z=Yz(),_=BE(),J=bg();I.exports=function(Y){if(Y.length<1||typeof Y[0]!=="function")throw new Z("a function is required");return J(G,_,Y)}}),br=A$(($,I)=>{var G=kE(),Z=XY(),_;try{_=[].__proto__===Array.prototype}catch(R){if(!R||typeof R!=="object"||!("code"in R)||R.code!=="ERR_PROTO_ACCESS")throw R}var J=!!_&&Z&&Z(Object.prototype,"__proto__"),Y=Object,W=Y.getPrototypeOf;I.exports=J&&typeof J.get==="function"?G([J.get]):typeof W==="function"?function(R){return W(R==null?R:Y(R))}:!1}),gE=A$(($,I)=>{var G=fg(),Z=yg(),_=br();I.exports=G?function(J){return G(J)}:Z?function(J){if(!J||typeof J!=="object"&&typeof J!=="function")throw TypeError("getProto: not an object");return Z(J)}:_?function(J){return _(J)}:null}),hg=A$(($,I)=>{var G=Function.prototype.call,Z=Object.prototype.hasOwnProperty,_=Jz();I.exports=_.call(G,Z)}),wE=A$(($,I)=>{var G,Z=NE(),_=Er(),J=Rr(),Y=Vr(),W=Pr(),R=xg(),M=Yz(),E=Sr(),T=vr(),S=Cr(),N=qr(),B=Nr(),x=Br(),w=jr(),y=gr(),g=Function,b=function(r){try{return g('"use strict"; return ('+r+").constructor;")()}catch(Y0){}},l=XY(),i=i5(),$0=function(){throw new M},Q0=l?function(){try{return arguments.callee,$0}catch(r){try{return l(arguments,"callee").get}catch(Y0){return $0}}}():$0,G0=xr()(),D0=gE(),t=yg(),V0=fg(),Q=jE(),D=BE(),F={},L=typeof Uint8Array>"u"||!D0?G:D0(Uint8Array),H={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?G:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?G:ArrayBuffer,"%ArrayIteratorPrototype%":G0&&D0?D0([][Symbol.iterator]()):G,"%AsyncFromSyncIteratorPrototype%":G,"%AsyncFunction%":F,"%AsyncGenerator%":F,"%AsyncGeneratorFunction%":F,"%AsyncIteratorPrototype%":F,"%Atomics%":typeof Atomics>"u"?G:Atomics,"%BigInt%":typeof BigInt>"u"?G:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?G:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?G:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?G:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":_,"%eval%":eval,"%EvalError%":J,"%Float16Array%":typeof Float16Array>"u"?G:Float16Array,"%Float32Array%":typeof Float32Array>"u"?G:Float32Array,"%Float64Array%":typeof Float64Array>"u"?G:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?G:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":F,"%Int8Array%":typeof Int8Array>"u"?G:Int8Array,"%Int16Array%":typeof Int16Array>"u"?G:Int16Array,"%Int32Array%":typeof Int32Array>"u"?G:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":G0&&D0?D0(D0([][Symbol.iterator]())):G,"%JSON%":typeof JSON==="object"?JSON:G,"%Map%":typeof Map>"u"?G:Map,"%MapIteratorPrototype%":typeof Map>"u"||!G0||!D0?G:D0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Z,"%Object.getOwnPropertyDescriptor%":l,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?G:Promise,"%Proxy%":typeof Proxy>"u"?G:Proxy,"%RangeError%":Y,"%ReferenceError%":W,"%Reflect%":typeof Reflect>"u"?G:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?G:Set,"%SetIteratorPrototype%":typeof Set>"u"||!G0||!D0?G:D0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?G:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":G0&&D0?D0(""[Symbol.iterator]()):G,"%Symbol%":G0?Symbol:G,"%SyntaxError%":R,"%ThrowTypeError%":Q0,"%TypedArray%":L,"%TypeError%":M,"%Uint8Array%":typeof Uint8Array>"u"?G:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?G:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?G:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?G:Uint32Array,"%URIError%":E,"%WeakMap%":typeof WeakMap>"u"?G:WeakMap,"%WeakRef%":typeof WeakRef>"u"?G:WeakRef,"%WeakSet%":typeof WeakSet>"u"?G:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":Q,"%Object.defineProperty%":i,"%Object.getPrototypeOf%":t,"%Math.abs%":T,"%Math.floor%":S,"%Math.max%":N,"%Math.min%":B,"%Math.pow%":x,"%Math.round%":w,"%Math.sign%":y,"%Reflect.getPrototypeOf%":V0};if(D0)try{null.error}catch(r){v=D0(D0(r)),H["%Error.prototype%"]=v}var v,q=function r(Y0){var W0;if(Y0==="%AsyncFunction%")W0=b("async function () {}");else if(Y0==="%GeneratorFunction%")W0=b("function* () {}");else if(Y0==="%AsyncGeneratorFunction%")W0=b("async function* () {}");else if(Y0==="%AsyncGenerator%"){var I0=r("%AsyncGeneratorFunction%");if(I0)W0=I0.prototype}else if(Y0==="%AsyncIteratorPrototype%"){var c=r("%AsyncGenerator%");if(c&&D0)W0=D0(c.prototype)}return H[Y0]=W0,W0},V={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=Jz(),A=hg(),k=O.call(D,Array.prototype.concat),j=O.call(Q,Array.prototype.splice),h=O.call(D,String.prototype.replace),a=O.call(D,String.prototype.slice),J0=O.call(D,RegExp.prototype.exec),K0=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O0=/\\(\\)?/g,d=function(r){var Y0=a(r,0,1),W0=a(r,-1);if(Y0==="%"&&W0!=="%")throw new R("invalid intrinsic syntax, expected closing `%`");else if(W0==="%"&&Y0!=="%")throw new R("invalid intrinsic syntax, expected opening `%`");var I0=[];return h(r,K0,function(c,s,S0,M0){I0[I0.length]=S0?h(M0,O0,"$1"):s||c}),I0},m=function(r,Y0){var W0=r,I0;if(A(V,W0))I0=V[W0],W0="%"+I0[0]+"%";if(A(H,W0)){var c=H[W0];if(c===F)c=q(W0);if(typeof c>"u"&&!Y0)throw new M("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:I0,name:W0,value:c}}throw new R("intrinsic "+r+" does not exist!")};I.exports=function(r,Y0){if(typeof r!=="string"||r.length===0)throw new M("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Y0!=="boolean")throw new M('"allowMissing" argument must be a boolean');if(J0(/^%?[^%]*%?$/,r)===null)throw new R("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var W0=d(r),I0=W0.length>0?W0[0]:"",c=m("%"+I0+"%",Y0),s=c.name,S0=c.value,M0=!1,z0=c.alias;if(z0)I0=z0[0],j(W0,k([0,1],z0));for(var c0=1,F0=!0;c0<W0.length;c0+=1){var q0=W0[c0],s0=a(q0,0,1),k0=a(q0,-1);if((s0==='"'||s0==="'"||s0==="`"||(k0==='"'||k0==="'"||k0==="`"))&&s0!==k0)throw new R("property names with quotes must have matching quotes");if(q0==="constructor"||!F0)M0=!0;if(I0+="."+q0,s="%"+I0+"%",A(H,s))S0=H[s];else if(S0!=null){if(!(q0 in S0)){if(!Y0)throw new M("base intrinsic for "+r+" exists, but the property is not available.");return}if(l&&c0+1>=W0.length){var n0=l(S0,q0);if(F0=!!n0,F0&&"get"in n0&&!("originalValue"in n0.get))S0=n0.get;else S0=S0[q0]}else F0=A(S0,q0),S0=S0[q0];if(F0&&!M0)H[s]=S0}}return S0}}),GY=A$(($,I)=>{var G=wE(),Z=kE(),_=Z([G("%String.prototype.indexOf%")]);I.exports=function(J,Y){var W=G(J,!!Y);if(typeof W==="function"&&_(J,".prototype.")>-1)return Z([W]);return W}}),hr=A$(($,I)=>{var G=d5()(),Z=GY(),_=Z("Object.prototype.toString"),J=function(R){if(G&&R&&typeof R==="object"&&Symbol.toStringTag in R)return!1;return _(R)==="[object Arguments]"},Y=function(R){if(J(R))return!0;return R!==null&&typeof R==="object"&&"length"in R&&typeof R.length==="number"&&R.length>=0&&_(R)!=="[object Array]"&&"callee"in R&&_(R.callee)==="[object Function]"},W=function(){return J(arguments)}();J.isLegacyArguments=Y,I.exports=W?J:Y}),ur=A$(($,I)=>{var G=GY(),Z=d5()(),_=hg(),J=XY(),Y;if(Z){if(W=G("RegExp.prototype.exec"),R={},M=function(){throw R},E={toString:M,valueOf:M},typeof Symbol.toPrimitive==="symbol")E[Symbol.toPrimitive]=M;Y=function(N){if(!N||typeof N!=="object")return!1;var B=J(N,"lastIndex"),x=B&&_(B,"value");if(!x)return!1;try{W(N,E)}catch(w){return w===R}}}else T=G("Object.prototype.toString"),S="[object RegExp]",Y=function(N){if(!N||typeof N!=="object"&&typeof N!=="function")return!1;return T(N)===S};var W,R,M,E,T,S;I.exports=Y}),nr=A$(($,I)=>{var G=GY(),Z=ur(),_=G("RegExp.prototype.exec"),J=Yz();I.exports=function(Y){if(!Z(Y))throw new J("`regex` must be a RegExp");return function(W){return _(Y,W)!==null}}}),pr=A$(($,I)=>{var G=function*(){}.constructor;I.exports=()=>G}),cr=A$(($,I)=>{var G=GY(),Z=nr(),_=Z(/^\s*(?:function)?\*/),J=d5()(),Y=gE(),W=G("Object.prototype.toString"),R=G("Function.prototype.toString"),M=pr();I.exports=function(E){if(typeof E!=="function")return!1;if(_(R(E)))return!0;if(!J){var T=W(E);return T==="[object GeneratorFunction]"}if(!Y)return!1;var S=M();return S&&Y(E)===S.prototype}}),lr=A$(($,I)=>{var G=Function.prototype.toString,Z=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,_,J;if(typeof Z==="function"&&typeof Object.defineProperty==="function")try{_=Object.defineProperty({},"length",{get:function(){throw J}}),J={},Z(function(){throw 42},null,_)}catch(l){if(l!==J)Z=null}else Z=null;var Y=/^\s*class\b/,W=function(l){try{var i=G.call(l);return Y.test(i)}catch($0){return!1}},R=function(l){try{if(W(l))return!1;return G.call(l),!0}catch(i){return!1}},M=Object.prototype.toString,E="[object Object]",T="[object Function]",S="[object GeneratorFunction]",N="[object HTMLAllCollection]",B="[object HTML document.all class]",x="[object HTMLCollection]",w=typeof Symbol==="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document==="object"){if(b=document.all,M.call(b)===M.call(document.all))g=function(l){if((y||!l)&&(typeof l>"u"||typeof l==="object"))try{var i=M.call(l);return(i===N||i===B||i===x||i===E)&&l("")==null}catch($0){}return!1}}var b;I.exports=Z?function(l){if(g(l))return!0;if(!l)return!1;if(typeof l!=="function"&&typeof l!=="object")return!1;try{Z(l,null,_)}catch(i){if(i!==J)return!1}return!W(l)&&R(l)}:function(l){if(g(l))return!0;if(!l)return!1;if(typeof l!=="function"&&typeof l!=="object")return!1;if(w)return R(l);if(W(l))return!1;var i=M.call(l);if(i!==T&&i!==S&&!/^\[object HTML/.test(i))return!1;return R(l)}}),mr=A$(($,I)=>{var G=lr(),Z=Object.prototype.toString,_=Object.prototype.hasOwnProperty,J=function(M,E,T){for(var S=0,N=M.length;S<N;S++)if(_.call(M,S))if(T==null)E(M[S],S,M);else E.call(T,M[S],S,M)},Y=function(M,E,T){for(var S=0,N=M.length;S<N;S++)if(T==null)E(M.charAt(S),S,M);else E.call(T,M.charAt(S),S,M)},W=function(M,E,T){for(var S in M)if(_.call(M,S))if(T==null)E(M[S],S,M);else E.call(T,M[S],S,M)};function R(M){return Z.call(M)==="[object Array]"}I.exports=function(M,E,T){if(!G(E))throw TypeError("iterator must be a function");var S;if(arguments.length>=3)S=T;if(R(M))J(M,E,S);else if(typeof M==="string")Y(M,E,S);else W(M,E,S)}}),dr=A$(($,I)=>{I.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),ir=A$(($,I)=>{var G=dr(),Z=typeof globalThis>"u"?globalThis:globalThis;I.exports=function(){var _=[];for(var J=0;J<G.length;J++)if(typeof Z[G[J]]==="function")_[_.length]=G[J];return _}}),ug=A$(($,I)=>{var G=i5(),Z=xg(),_=Yz(),J=XY();I.exports=function(Y,W,R){if(!Y||typeof Y!=="object"&&typeof Y!=="function")throw new _("`obj` must be an object or a function`");if(typeof W!=="string"&&typeof W!=="symbol")throw new _("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new _("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new _("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new _("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new _("`loose`, if provided, must be a boolean");var M=arguments.length>3?arguments[3]:null,E=arguments.length>4?arguments[4]:null,T=arguments.length>5?arguments[5]:null,S=arguments.length>6?arguments[6]:!1,N=!!J&&J(Y,W);if(G)G(Y,W,{configurable:T===null&&N?N.configurable:!T,enumerable:M===null&&N?N.enumerable:!M,value:R,writable:E===null&&N?N.writable:!E});else if(S||!M&&!E&&!T)Y[W]=R;else throw new Z("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),ng=A$(($,I)=>{var G=i5(),Z=function(){return!!G};Z.hasArrayLengthDefineBug=function(){if(!G)return null;try{return G([],"length",{value:1}).length!==1}catch(_){return!0}},I.exports=Z}),or=A$(($,I)=>{var G=wE(),Z=ug(),_=ng()(),J=XY(),Y=Yz(),W=G("%Math.floor%");I.exports=function(R,M){if(typeof R!=="function")throw new Y("`fn` is not a function");if(typeof M!=="number"||M<0||M>4294967295||W(M)!==M)throw new Y("`length` must be a positive 32-bit integer");var E=arguments.length>2&&!!arguments[2],T=!0,S=!0;if("length"in R&&J){var N=J(R,"length");if(N&&!N.configurable)T=!1;if(N&&!N.writable)S=!1}if(T||S||!E)if(_)Z(R,"length",M,!0,!0);else Z(R,"length",M);return R}}),tr=A$(($,I)=>{var G=Jz(),Z=jE(),_=bg();I.exports=function(){return _(G,Z,arguments)}}),o5=A$(($,I)=>{var G=or(),Z=i5(),_=kE(),J=tr();if(I.exports=function(Y){var W=_(arguments),R=Y.length-(arguments.length-1);return G(W,1+(R>0?R:0),!0)},Z)Z(I.exports,"apply",{value:J});else I.exports.apply=J}),pg=A$(($,I)=>{var G=mr(),Z=ir(),_=o5(),J=GY(),Y=XY(),W=gE(),R=J("Object.prototype.toString"),M=d5()(),E=typeof globalThis>"u"?globalThis:globalThis,T=Z(),S=J("String.prototype.slice"),N=J("Array.prototype.indexOf",!0)||function(y,g){for(var b=0;b<y.length;b+=1)if(y[b]===g)return b;return-1},B={__proto__:null};if(M&&Y&&W)G(T,function(y){var g=new E[y];if(Symbol.toStringTag in g&&W){var b=W(g),l=Y(b,Symbol.toStringTag);if(!l&&b){var i=W(b);l=Y(i,Symbol.toStringTag)}B["$"+y]=_(l.get)}});else G(T,function(y){var g=new E[y],b=g.slice||g.set;if(b)B["$"+y]=_(b)});var x=function(y){var g=!1;return G(B,function(b,l){if(!g)try{if("$"+b(y)===l)g=S(l,1)}catch(i){}}),g},w=function(y){var g=!1;return G(B,function(b,l){if(!g)try{b(y),g=S(l,1)}catch(i){}}),g};I.exports=function(y){if(!y||typeof y!=="object")return!1;if(!M){var g=S(R(y),8,-1);if(N(T,g)>-1)return g;if(g!=="Object")return!1;return w(y)}if(!Y)return null;return x(y)}}),rr=A$(($,I)=>{var G=pg();I.exports=function(Z){return!!G(Z)}}),ar=A$(($)=>{var I=hr(),G=cr(),Z=pg(),_=rr();function J(z0){return z0.call.bind(z0)}var Y=typeof BigInt<"u",W=typeof Symbol<"u",R=J(Object.prototype.toString),M=J(Number.prototype.valueOf),E=J(String.prototype.valueOf),T=J(Boolean.prototype.valueOf);if(Y)S=J(BigInt.prototype.valueOf);var S;if(W)N=J(Symbol.prototype.valueOf);var N;function B(z0,c0){if(typeof z0!=="object")return!1;try{return c0(z0),!0}catch(F0){return!1}}$.isArgumentsObject=I,$.isGeneratorFunction=G,$.isTypedArray=_;function x(z0){return typeof Promise<"u"&&z0 instanceof Promise||z0!==null&&typeof z0==="object"&&typeof z0.then==="function"&&typeof z0.catch==="function"}$.isPromise=x;function w(z0){if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)return ArrayBuffer.isView(z0);return _(z0)||j(z0)}$.isArrayBufferView=w;function y(z0){return Z(z0)==="Uint8Array"}$.isUint8Array=y;function g(z0){return Z(z0)==="Uint8ClampedArray"}$.isUint8ClampedArray=g;function b(z0){return Z(z0)==="Uint16Array"}$.isUint16Array=b;function l(z0){return Z(z0)==="Uint32Array"}$.isUint32Array=l;function i(z0){return Z(z0)==="Int8Array"}$.isInt8Array=i;function $0(z0){return Z(z0)==="Int16Array"}$.isInt16Array=$0;function Q0(z0){return Z(z0)==="Int32Array"}$.isInt32Array=Q0;function G0(z0){return Z(z0)==="Float32Array"}$.isFloat32Array=G0;function D0(z0){return Z(z0)==="Float64Array"}$.isFloat64Array=D0;function t(z0){return Z(z0)==="BigInt64Array"}$.isBigInt64Array=t;function V0(z0){return Z(z0)==="BigUint64Array"}$.isBigUint64Array=V0;function Q(z0){return R(z0)==="[object Map]"}Q.working=typeof Map<"u"&&Q(new Map);function D(z0){if(typeof Map>"u")return!1;return Q.working?Q(z0):z0 instanceof Map}$.isMap=D;function F(z0){return R(z0)==="[object Set]"}F.working=typeof Set<"u"&&F(new Set);function L(z0){if(typeof Set>"u")return!1;return F.working?F(z0):z0 instanceof Set}$.isSet=L;function H(z0){return R(z0)==="[object WeakMap]"}H.working=typeof WeakMap<"u"&&H(new WeakMap);function v(z0){if(typeof WeakMap>"u")return!1;return H.working?H(z0):z0 instanceof WeakMap}$.isWeakMap=v;function q(z0){return R(z0)==="[object WeakSet]"}q.working=typeof WeakSet<"u"&&q(new WeakSet);function V(z0){return q(z0)}$.isWeakSet=V;function O(z0){return R(z0)==="[object ArrayBuffer]"}O.working=typeof ArrayBuffer<"u"&&O(new ArrayBuffer);function A(z0){if(typeof ArrayBuffer>"u")return!1;return O.working?O(z0):z0 instanceof ArrayBuffer}$.isArrayBuffer=A;function k(z0){return R(z0)==="[object DataView]"}k.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&k(new DataView(new ArrayBuffer(1),0,1));function j(z0){if(typeof DataView>"u")return!1;return k.working?k(z0):z0 instanceof DataView}$.isDataView=j;var h=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function a(z0){return R(z0)==="[object SharedArrayBuffer]"}function J0(z0){if(typeof h>"u")return!1;if(typeof a.working>"u")a.working=a(new h);return a.working?a(z0):z0 instanceof h}$.isSharedArrayBuffer=J0;function K0(z0){return R(z0)==="[object AsyncFunction]"}$.isAsyncFunction=K0;function O0(z0){return R(z0)==="[object Map Iterator]"}$.isMapIterator=O0;function d(z0){return R(z0)==="[object Set Iterator]"}$.isSetIterator=d;function m(z0){return R(z0)==="[object Generator]"}$.isGeneratorObject=m;function r(z0){return R(z0)==="[object WebAssembly.Module]"}$.isWebAssemblyCompiledModule=r;function Y0(z0){return B(z0,M)}$.isNumberObject=Y0;function W0(z0){return B(z0,E)}$.isStringObject=W0;function I0(z0){return B(z0,T)}$.isBooleanObject=I0;function c(z0){return Y&&B(z0,S)}$.isBigIntObject=c;function s(z0){return W&&B(z0,N)}$.isSymbolObject=s;function S0(z0){return Y0(z0)||W0(z0)||I0(z0)||c(z0)||s(z0)}$.isBoxedPrimitive=S0;function M0(z0){return typeof Uint8Array<"u"&&(A(z0)||J0(z0))}$.isAnyArrayBuffer=M0,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(z0){Object.defineProperty($,z0,{enumerable:!1,value:function(){throw Error(z0+" is not supported in userland")}})})}),sr=A$(($,I)=>{I.exports=function(G){return G instanceof Buffer}}),er=A$(($,I)=>{if(typeof Object.create==="function")I.exports=function(G,Z){if(Z)G.super_=Z,G.prototype=Object.create(Z.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}})};else I.exports=function(G,Z){if(Z){G.super_=Z;var _=function(){};_.prototype=Z.prototype,G.prototype=new _,G.prototype.constructor=G}}}),$a=A$(($,I)=>{try{if(G=(v_(),P$(S_)),typeof G.inherits!=="function")throw"";I.exports=G.inherits}catch(Z){I.exports=er()}var G}),Gz=A$(($)=>{var I=Object.getOwnPropertyDescriptors||function(A){var k=Object.keys(A),j={};for(var h=0;h<k.length;h++)j[k[h]]=Object.getOwnPropertyDescriptor(A,k[h]);return j},G=/%[sdj%]/g;$.format=function(A){if(!l(A)){var k=[];for(var j=0;j<arguments.length;j++)k.push(J(arguments[j]));return k.join(" ")}var j=1,h=arguments,a=h.length,J0=String(A).replace(G,function(O0){if(O0==="%%")return"%";if(j>=a)return O0;switch(O0){case"%s":return String(h[j++]);case"%d":return Number(h[j++]);case"%j":try{return JSON.stringify(h[j++])}catch(d){return"[Circular]"}default:return O0}});for(var K0=h[j];j<a;K0=h[++j])if(y(K0)||!G0(K0))J0+=" "+K0;else J0+=" "+J(K0);return J0},$.deprecate=function(A,k){if(typeof process<"u"&&process.noDeprecation===!0)return A;if(typeof process>"u")return function(){return $.deprecate(A,k).apply(this,arguments)};var j=!1;function h(){if(!j){if(process.throwDeprecation)throw Error(k);else if(process.traceDeprecation)console.trace(k);else console.error(k);j=!0}return A.apply(this,arguments)}return h};var Z={},_=/^$/;$.debuglog=function(A){if(A=A.toUpperCase(),!Z[A])if(_.test(A)){var k=process.pid;Z[A]=function(){var j=$.format.apply($,arguments);console.error("%s %d: %s",A,k,j)}}else Z[A]=function(){};return Z[A]};function J(A,k){var j={seen:[],stylize:W};if(arguments.length>=3)j.depth=arguments[2];if(arguments.length>=4)j.colors=arguments[3];if(w(k))j.showHidden=k;else if(k)$._extend(j,k);if($0(j.showHidden))j.showHidden=!1;if($0(j.depth))j.depth=2;if($0(j.colors))j.colors=!1;if($0(j.customInspect))j.customInspect=!0;if(j.colors)j.stylize=Y;return M(j,A,j.depth)}$.inspect=J,J.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},J.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Y(A,k){var j=J.styles[k];if(j)return"\x1B["+J.colors[j][0]+"m"+A+"\x1B["+J.colors[j][1]+"m";else return A}function W(A,k){return A}function R(A){var k={};return A.forEach(function(j,h){k[j]=!0}),k}function M(A,k,j){if(A.customInspect&&k&&V0(k.inspect)&&k.inspect!==$.inspect&&!(k.constructor&&k.constructor.prototype===k)){var h=k.inspect(j,A);if(!l(h))h=M(A,h,j);return h}var a=E(A,k);if(a)return a;var J0=Object.keys(k),K0=R(J0);if(A.showHidden)J0=Object.getOwnPropertyNames(k);if(t(k)&&(J0.indexOf("message")>=0||J0.indexOf("description")>=0))return T(k);if(J0.length===0){if(V0(k)){var O0=k.name?": "+k.name:"";return A.stylize("[Function"+O0+"]","special")}if(Q0(k))return A.stylize(RegExp.prototype.toString.call(k),"regexp");if(D0(k))return A.stylize(Date.prototype.toString.call(k),"date");if(t(k))return T(k)}var d="",m=!1,r=["{","}"];if(x(k))m=!0,r=["[","]"];if(V0(k)){var Y0=k.name?": "+k.name:"";d=" [Function"+Y0+"]"}if(Q0(k))d=" "+RegExp.prototype.toString.call(k);if(D0(k))d=" "+Date.prototype.toUTCString.call(k);if(t(k))d=" "+T(k);if(J0.length===0&&(!m||k.length==0))return r[0]+d+r[1];if(j<0)if(Q0(k))return A.stylize(RegExp.prototype.toString.call(k),"regexp");else return A.stylize("[Object]","special");A.seen.push(k);var W0;if(m)W0=S(A,k,j,K0,J0);else W0=J0.map(function(I0){return N(A,k,j,K0,I0,m)});return A.seen.pop(),B(W0,d,r)}function E(A,k){if($0(k))return A.stylize("undefined","undefined");if(l(k)){var j="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(j,"string")}if(b(k))return A.stylize(""+k,"number");if(w(k))return A.stylize(""+k,"boolean");if(y(k))return A.stylize("null","null")}function T(A){return"["+Error.prototype.toString.call(A)+"]"}function S(A,k,j,h,a){var J0=[];for(var K0=0,O0=k.length;K0<O0;++K0)if(v(k,String(K0)))J0.push(N(A,k,j,h,String(K0),!0));else J0.push("");return a.forEach(function(d){if(!d.match(/^\d+$/))J0.push(N(A,k,j,h,d,!0))}),J0}function N(A,k,j,h,a,J0){var K0,O0,d;if(d=Object.getOwnPropertyDescriptor(k,a)||{value:k[a]},d.get)if(d.set)O0=A.stylize("[Getter/Setter]","special");else O0=A.stylize("[Getter]","special");else if(d.set)O0=A.stylize("[Setter]","special");if(!v(h,a))K0="["+a+"]";if(!O0)if(A.seen.indexOf(d.value)<0){if(y(j))O0=M(A,d.value,null);else O0=M(A,d.value,j-1);if(O0.indexOf(`
|
|
246
|
+
`,"\t"],co=["{","}","|","\\","^","`"].concat(po),HE=["'"].concat(co),Ug=["%","/","?",";","#"].concat(HE),Ig=["/","?","#"],_g=/^[+a-z0-9A-Z_-]{0,63}$/,mo=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,io={javascript:!0,"javascript:":!0},FE={javascript:!0,"javascript:":!0},$Y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},TE={parse($){var I=decodeURIComponent;return($+"").replace(/\+/g," ").split("&").filter(Boolean).reduce(function(G,Z,_){var J=Z.split("="),Y=I(J[0]||""),W=I(J[1]||""),R=G[Y];return G[Y]=R===void 0?W:[].concat(R,W),G},{})},stringify($){var I=encodeURIComponent;return Object.keys($||{}).reduce(function(G,Z){return[].concat($[Z]).forEach(function(_){G.push(I(Z)+"="+I(_))}),G},[]).join("&").replace(/\s/g,"+")}};y6.prototype.parse=function($,I,G){if(!AE($))throw TypeError("Parameter 'url' must be a string, not "+typeof $);var Z=$.indexOf("?"),_=Z!==-1&&Z<$.indexOf("#")?"?":"#",J=$.split(_),Y=/\\/g;J[0]=J[0].replace(Y,"/"),$=J.join(_);var W=$;if(W=W.trim(),!G&&$.split("#").length===1){var R=no.exec(W);if(R){if(this.path=W,this.href=W,this.pathname=R[1],R[2])if(this.search=R[2],I)this.query=TE.parse(this.search.substr(1));else this.query=this.search.substr(1);else if(I)this.search="",this.query={};return this}}var M=ho.exec(W);if(M){M=M[0];var E=M.toLowerCase();this.protocol=E,W=W.substr(M.length)}if(G||M||W.match(/^\/\/[^@\/]+@[^@\/]+/)){var T=W.substr(0,2)==="//";if(T&&!(M&&FE[M]))W=W.substr(2),this.slashes=!0}if(!FE[M]&&(T||M&&!$Y[M])){var S=-1;for(var N=0;N<Ig.length;N++){var B=W.indexOf(Ig[N]);if(B!==-1&&(S===-1||B<S))S=B}var x,w;if(S===-1)w=W.lastIndexOf("@");else w=W.lastIndexOf("@",S);if(w!==-1)x=W.slice(0,w),W=W.slice(w+1),this.auth=decodeURIComponent(x);S=-1;for(var N=0;N<Ug.length;N++){var B=W.indexOf(Ug[N]);if(B!==-1&&(S===-1||B<S))S=B}if(S===-1)S=W.length;this.host=W.slice(0,S),W=W.slice(S),this.parseHost(),this.hostname=this.hostname||"";var y=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!y){var g=this.hostname.split(/\./);for(var N=0,b=g.length;N<b;N++){var l=g[N];if(!l)continue;if(!l.match(_g)){var i="";for(var $0=0,Q0=l.length;$0<Q0;$0++)if(l.charCodeAt($0)>127)i+="x";else i+=l[$0];if(!i.match(_g)){var G0=g.slice(0,N),D0=g.slice(N+1),t=l.match(mo);if(t)G0.push(t[1]),D0.unshift(t[2]);if(D0.length)W="/"+D0.join(".")+W;this.hostname=G0.join(".");break}}}}if(this.hostname.length>lo)this.hostname="";else this.hostname=this.hostname.toLowerCase();if(!y)this.hostname=new ME(`https://${this.hostname}`).hostname;var V0=this.port?":"+this.port:"",Q=this.hostname||"";if(this.host=Q+V0,this.href+=this.host,y){if(this.hostname=this.hostname.substr(1,this.hostname.length-2),W[0]!=="/")W="/"+W}}if(!io[E])for(var N=0,b=HE.length;N<b;N++){var D=HE[N];if(W.indexOf(D)===-1)continue;var F=encodeURIComponent(D);if(F===D)F=escape(D);W=W.split(D).join(F)}var L=W.indexOf("#");if(L!==-1)this.hash=W.substr(L),W=W.slice(0,L);var H=W.indexOf("?");if(H!==-1){if(this.search=W.substr(H),this.query=W.substr(H+1),I)this.query=TE.parse(this.query);W=W.slice(0,H)}else if(I)this.search="",this.query={};if(W)this.pathname=W;if($Y[E]&&this.hostname&&!this.pathname)this.pathname="/";if(this.pathname||this.search){var V0=this.pathname||"",v=this.search||"";this.path=V0+v}return this.href=this.format(),this};y6.prototype.format=function(){var $=this.auth||"";if($)$=encodeURIComponent($),$=$.replace(/%3A/i,":"),$+="@";var I=this.protocol||"",G=this.pathname||"",Z=this.hash||"",_=!1,J="";if(this.host)_=$+this.host;else if(this.hostname){if(_=$+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port)_+=":"+this.port}if(this.query&&Gg(this.query)&&Object.keys(this.query).length)J=TE.stringify(this.query);var Y=this.search||J&&"?"+J||"";if(I&&I.substr(-1)!==":")I+=":";if(this.slashes||(!I||$Y[I])&&_!==!1){if(_="//"+(_||""),G&&G.charAt(0)!=="/")G="/"+G}else if(!_)_="";if(Z&&Z.charAt(0)!=="#")Z="#"+Z;if(Y&&Y.charAt(0)!=="?")Y="?"+Y;return G=G.replace(/[?#]/g,function(W){return encodeURIComponent(W)}),Y=Y.replace("#","%23"),I+_+G+Y+Z};y6.prototype.resolve=function($){return this.resolveObject(UY($,!1,!0)).format()};y6.prototype.resolveObject=function($){if(AE($)){var I=new y6;I.parse($,!1,!0),$=I}var G=new y6,Z=Object.keys(this);for(var _=0;_<Z.length;_++){var J=Z[_];G[J]=this[J]}if(G.hash=$.hash,$.href==="")return G.href=G.format(),G;if($.slashes&&!$.protocol){var Y=Object.keys($);for(var W=0;W<Y.length;W++){var R=Y[W];if(R!=="protocol")G[R]=$[R]}if($Y[G.protocol]&&G.hostname&&!G.pathname)G.path=G.pathname="/";return G.href=G.format(),G}if($.protocol&&$.protocol!==G.protocol){if(!$Y[$.protocol]){var M=Object.keys($);for(var E=0;E<M.length;E++){var T=M[E];G[T]=$[T]}return G.href=G.format(),G}if(G.protocol=$.protocol,!$.host&&!FE[$.protocol]){var b=($.pathname||"").split("/");while(b.length&&!($.host=b.shift()));if(!$.host)$.host="";if(!$.hostname)$.hostname="";if(b[0]!=="")b.unshift("");if(b.length<2)b.unshift("");G.pathname=b.join("/")}else G.pathname=$.pathname;if(G.search=$.search,G.query=$.query,G.host=$.host||"",G.auth=$.auth,G.hostname=$.hostname||$.host,G.port=$.port,G.pathname||G.search){var S=G.pathname||"",N=G.search||"";G.path=S+N}return G.slashes=G.slashes||$.slashes,G.href=G.format(),G}var B=G.pathname&&G.pathname.charAt(0)==="/",x=$.host||$.pathname&&$.pathname.charAt(0)==="/",w=x||B||G.host&&$.pathname,y=w,g=G.pathname&&G.pathname.split("/")||[],b=$.pathname&&$.pathname.split("/")||[],l=G.protocol&&!$Y[G.protocol];if(l){if(G.hostname="",G.port=null,G.host)if(g[0]==="")g[0]=G.host;else g.unshift(G.host);if(G.host="",$.protocol){if($.hostname=null,$.port=null,$.host)if(b[0]==="")b[0]=$.host;else b.unshift($.host);$.host=null}w=w&&(b[0]===""||g[0]==="")}if(x)G.host=$.host||$.host===""?$.host:G.host,G.hostname=$.hostname||$.hostname===""?$.hostname:G.hostname,G.search=$.search,G.query=$.query,g=b;else if(b.length){if(!g)g=[];g.pop(),g=g.concat(b),G.search=$.search,G.query=$.query}else if(!bo($.search)){if(l){G.hostname=G.host=g.shift();var i=G.host&&G.host.indexOf("@")>0?G.host.split("@"):!1;if(i)G.auth=i.shift(),G.host=G.hostname=i.shift()}if(G.search=$.search,G.query=$.query,!l5(G.pathname)||!l5(G.search))G.path=(G.pathname?G.pathname:"")+(G.search?G.search:"");return G.href=G.format(),G}if(!g.length){if(G.pathname=null,G.search)G.path="/"+G.search;else G.path=null;return G.href=G.format(),G}var $0=g.slice(-1)[0],Q0=(G.host||$.host||g.length>1)&&($0==="."||$0==="..")||$0==="",G0=0;for(var D0=g.length;D0>=0;D0--)if($0=g[D0],$0===".")g.splice(D0,1);else if($0==="..")g.splice(D0,1),G0++;else if(G0)g.splice(D0,1),G0--;if(!w&&!y)for(;G0--;G0)g.unshift("..");if(w&&g[0]!==""&&(!g[0]||g[0].charAt(0)!=="/"))g.unshift("");if(Q0&&g.join("/").substr(-1)!=="/")g.push("");var t=g[0]===""||g[0]&&g[0].charAt(0)==="/";if(l){G.hostname=G.host=t?"":g.length?g.shift():"";var i=G.host&&G.host.indexOf("@")>0?G.host.split("@"):!1;if(i)G.auth=i.shift(),G.host=G.hostname=i.shift()}if(w=w||G.host&&g.length,w&&!t)g.unshift("");if(!g.length)G.pathname=null,G.path=null;else G.pathname=g.join("/");if(!l5(G.pathname)||!l5(G.search))G.path=(G.pathname?G.pathname:"")+(G.search?G.search:"");return G.auth=$.auth||G.auth,G.slashes=G.slashes||$.slashes,G.href=G.format(),G};y6.prototype.parseHost=function(){var $=this.host,I=uo.exec($);if(I){if(I=I[0],I!==":")this.port=I.substr(1);$=$.substr(0,$.length-I.length)}if($)this.hostname=$};oo={parse:UY,resolve:Jg,resolveObject:Qg,format:Yg,Url:y6,URL:ME,URLSearchParams:Xg}});var m5={};LU(m5,{request:()=>Lt,globalAgent:()=>Ft,get:()=>Dt,default:()=>Ag,STATUS_CODES:()=>Tt,METHODS:()=>Mt,IncomingMessage:()=>Wt,ClientRequest:()=>Kt,Agent:()=>Ht});var to,ro,zg,ao,so,eo=($,I,G)=>{G=$!=null?to(ro($)):{};let Z=I||!$||!$.__esModule?zg(G,"default",{value:$,enumerable:!0}):G;for(let _ of ao($))if(!so.call(Z,_))zg(Z,_,{get:()=>$[_],enumerable:!0});return Z},x1=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports),Og,$t,UX,Ut,Lg,IX,Dg,It,Kg,IY,_t,Zg,VE,Xt,Gt,Wg,Hg,Yt,Jt,Fg,Tg,Qt,zt,Zt,Ot,Mg,Lt,Dt,Kt,Wt,Ht,Ft,Tt,Mt,Ag;var Xz=WI(()=>{to=Object.create,{getPrototypeOf:ro,defineProperty:zg,getOwnPropertyNames:ao}=Object,so=Object.prototype.hasOwnProperty,Og=x1(($)=>{$.fetch=_(globalThis.fetch)&&_(globalThis.ReadableStream),$.writableStream=_(globalThis.WritableStream),$.abortController=_(globalThis.AbortController);var I;function G(){if(I!==void 0)return I;if(globalThis.XMLHttpRequest){I=new globalThis.XMLHttpRequest;try{I.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch(J){I=null}}else I=null;return I}function Z(J){var Y=G();if(!Y)return!1;try{return Y.responseType=J,Y.responseType===J}catch(W){}return!1}$.arraybuffer=$.fetch||Z("arraybuffer"),$.msstream=!$.fetch&&Z("ms-stream"),$.mozchunkedarraybuffer=!$.fetch&&Z("moz-chunked-arraybuffer"),$.overrideMimeType=$.fetch||(G()?_(G().overrideMimeType):!1);function _(J){return typeof J==="function"}I=null}),$t=x1(($,I)=>{if(typeof Object.create==="function")I.exports=function(G,Z){if(Z)G.super_=Z,G.prototype=Object.create(Z.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}})};else I.exports=function(G,Z){if(Z){G.super_=Z;var _=function(){};_.prototype=Z.prototype,G.prototype=new _,G.prototype.constructor=G}}}),UX=x1(($,I)=>{try{if(G=(v_(),P$(S_)),typeof G.inherits!=="function")throw"";I.exports=G.inherits}catch(Z){I.exports=$t()}var G}),Ut=x1(($,I)=>{function G(w,y){var g=Object.keys(w);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(w);y&&(b=b.filter(function(l){return Object.getOwnPropertyDescriptor(w,l).enumerable})),g.push.apply(g,b)}return g}function Z(w){for(var y=1;y<arguments.length;y++){var g=arguments[y]!=null?arguments[y]:{};y%2?G(Object(g),!0).forEach(function(b){_(w,b,g[b])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(g)):G(Object(g)).forEach(function(b){Object.defineProperty(w,b,Object.getOwnPropertyDescriptor(g,b))})}return w}function _(w,y,g){if(y=R(y),y in w)Object.defineProperty(w,y,{value:g,enumerable:!0,configurable:!0,writable:!0});else w[y]=g;return w}function J(w,y){if(!(w instanceof y))throw TypeError("Cannot call a class as a function")}function Y(w,y){for(var g=0;g<y.length;g++){var b=y[g];if(b.enumerable=b.enumerable||!1,b.configurable=!0,"value"in b)b.writable=!0;Object.defineProperty(w,R(b.key),b)}}function W(w,y,g){if(y)Y(w.prototype,y);if(g)Y(w,g);return Object.defineProperty(w,"prototype",{writable:!1}),w}function R(w){var y=M(w,"string");return typeof y==="symbol"?y:String(y)}function M(w,y){if(typeof w!=="object"||w===null)return w;var g=w[Symbol.toPrimitive];if(g!==void 0){var b=g.call(w,y||"default");if(typeof b!=="object")return b;throw TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(w)}var E=(u1(),P$(h1)),T=E.Buffer,S=(v_(),P$(S_)),N=S.inspect,B=N&&N.custom||"inspect";function x(w,y,g){T.prototype.copy.call(w,y,g)}I.exports=function(){function w(){J(this,w),this.head=null,this.tail=null,this.length=0}return W(w,[{key:"push",value:function(y){var g={data:y,next:null};if(this.length>0)this.tail.next=g;else this.head=g;this.tail=g,++this.length}},{key:"unshift",value:function(y){var g={data:y,next:this.head};if(this.length===0)this.tail=g;this.head=g,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var y=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,y}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(y){if(this.length===0)return"";var g=this.head,b=""+g.data;while(g=g.next)b+=y+g.data;return b}},{key:"concat",value:function(y){if(this.length===0)return T.alloc(0);var g=T.allocUnsafe(y>>>0),b=this.head,l=0;while(b)x(b.data,g,l),l+=b.data.length,b=b.next;return g}},{key:"consume",value:function(y,g){var b;if(y<this.head.data.length)b=this.head.data.slice(0,y),this.head.data=this.head.data.slice(y);else if(y===this.head.data.length)b=this.shift();else b=g?this._getString(y):this._getBuffer(y);return b}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(y){var g=this.head,b=1,l=g.data;y-=l.length;while(g=g.next){var i=g.data,$0=y>i.length?i.length:y;if($0===i.length)l+=i;else l+=i.slice(0,y);if(y-=$0,y===0){if($0===i.length)if(++b,g.next)this.head=g.next;else this.head=this.tail=null;else this.head=g,g.data=i.slice($0);break}++b}return this.length-=b,l}},{key:"_getBuffer",value:function(y){var g=T.allocUnsafe(y),b=this.head,l=1;b.data.copy(g),y-=b.data.length;while(b=b.next){var i=b.data,$0=y>i.length?i.length:y;if(i.copy(g,g.length-y,0,$0),y-=$0,y===0){if($0===i.length)if(++l,b.next)this.head=b.next;else this.head=this.tail=null;else this.head=b,b.data=i.slice($0);break}++l}return this.length-=l,g}},{key:B,value:function(y,g){return N(this,Z(Z({},g),{},{depth:0,customInspect:!1}))}}]),w}()}),Lg=x1(($,I)=>{function G(R,M){var E=this,T=this._readableState&&this._readableState.destroyed,S=this._writableState&&this._writableState.destroyed;if(T||S){if(M)M(R);else if(R){if(!this._writableState)process.nextTick(Y,this,R);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,process.nextTick(Y,this,R)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy(R||null,function(N){if(!M&&N)if(!E._writableState)process.nextTick(Z,E,N);else if(!E._writableState.errorEmitted)E._writableState.errorEmitted=!0,process.nextTick(Z,E,N);else process.nextTick(_,E);else if(M)process.nextTick(_,E),M(N);else process.nextTick(_,E)}),this}function Z(R,M){Y(R,M),_(R)}function _(R){if(R._writableState&&!R._writableState.emitClose)return;if(R._readableState&&!R._readableState.emitClose)return;R.emit("close")}function J(){if(this._readableState)this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1;if(this._writableState)this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1}function Y(R,M){R.emit("error",M)}function W(R,M){var{_readableState:E,_writableState:T}=R;if(E&&E.autoDestroy||T&&T.autoDestroy)R.destroy(M);else R.emit("error",M)}I.exports={destroy:G,undestroy:J,errorOrDestroy:W}}),IX=x1(($,I)=>{var G={};function Z(R,M,E){if(!E)E=Error;function T(N,B,x){if(typeof M==="string")return M;else return M(N,B,x)}class S extends E{constructor(N,B,x){super(T(N,B,x))}}S.prototype.name=E.name,S.prototype.code=R,G[R]=S}function _(R,M){if(Array.isArray(R)){let E=R.length;if(R=R.map((T)=>String(T)),E>2)return`one of ${M} ${R.slice(0,E-1).join(", ")}, or `+R[E-1];else if(E===2)return`one of ${M} ${R[0]} or ${R[1]}`;else return`of ${M} ${R[0]}`}else return`of ${M} ${String(R)}`}function J(R,M,E){return R.substr(!E||E<0?0:+E,M.length)===M}function Y(R,M,E){if(E===void 0||E>R.length)E=R.length;return R.substring(E-M.length,E)===M}function W(R,M,E){if(typeof E!=="number")E=0;if(E+M.length>R.length)return!1;else return R.indexOf(M,E)!==-1}Z("ERR_INVALID_OPT_VALUE",function(R,M){return'The value "'+M+'" is invalid for option "'+R+'"'},TypeError),Z("ERR_INVALID_ARG_TYPE",function(R,M,E){let T;if(typeof M==="string"&&J(M,"not "))T="must not be",M=M.replace(/^not /,"");else T="must be";let S;if(Y(R," argument"))S=`The ${R} ${T} ${_(M,"type")}`;else{let N=W(R,".")?"property":"argument";S=`The "${R}" ${N} ${T} ${_(M,"type")}`}return S+=`. Received type ${typeof E}`,S},TypeError),Z("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),Z("ERR_METHOD_NOT_IMPLEMENTED",function(R){return"The "+R+" method is not implemented"}),Z("ERR_STREAM_PREMATURE_CLOSE","Premature close"),Z("ERR_STREAM_DESTROYED",function(R){return"Cannot call "+R+" after a stream was destroyed"}),Z("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),Z("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),Z("ERR_STREAM_WRITE_AFTER_END","write after end"),Z("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),Z("ERR_UNKNOWN_ENCODING",function(R){return"Unknown encoding: "+R},TypeError),Z("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),$.codes=G}),Dg=x1(($,I)=>{var G=IX().codes.ERR_INVALID_OPT_VALUE;function Z(J,Y,W){return J.highWaterMark!=null?J.highWaterMark:Y?J[W]:null}function _(J,Y,W,R){var M=Z(Y,R,W);if(M!=null){if(!(isFinite(M)&&Math.floor(M)===M)||M<0){var E=R?W:"highWaterMark";throw new G(E,M)}return Math.floor(M)}return J.objectMode?16:16384}I.exports={getHighWaterMark:_}}),It=x1(($,I)=>{I.exports=(v_(),P$(S_)).deprecate}),Kg=x1(($,I)=>{I.exports=t;function G(O0){var d=this;this.next=null,this.entry=null,this.finish=function(){K0(d,O0)}}var Z;t.WritableState=G0;var _={deprecate:It()},J=g4(),Y=(u1(),P$(h1)).Buffer,W=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function R(O0){return Y.from(O0)}function M(O0){return Y.isBuffer(O0)||O0 instanceof W}var E=Lg(),T=Dg(),S=T.getHighWaterMark,N=IX().codes,B=N.ERR_INVALID_ARG_TYPE,x=N.ERR_METHOD_NOT_IMPLEMENTED,w=N.ERR_MULTIPLE_CALLBACK,y=N.ERR_STREAM_CANNOT_PIPE,g=N.ERR_STREAM_DESTROYED,b=N.ERR_STREAM_NULL_VALUES,l=N.ERR_STREAM_WRITE_AFTER_END,i=N.ERR_UNKNOWN_ENCODING,$0=E.errorOrDestroy;UX()(t,J);function Q0(){}function G0(O0,d,m){if(Z=Z||IY(),O0=O0||{},typeof m!=="boolean")m=d instanceof Z;if(this.objectMode=!!O0.objectMode,m)this.objectMode=this.objectMode||!!O0.writableObjectMode;this.highWaterMark=S(this,O0,"writableHighWaterMark",m),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var r=O0.decodeStrings===!1;this.decodeStrings=!r,this.defaultEncoding=O0.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Y0){q(d,Y0)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=O0.emitClose!==!1,this.autoDestroy=!!O0.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new G(this)}G0.prototype.getBuffer=function(){var O0=this.bufferedRequest,d=[];while(O0)d.push(O0),O0=O0.next;return d},function(){try{Object.defineProperty(G0.prototype,"buffer",{get:_.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(O0){}}();var D0;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")D0=Function.prototype[Symbol.hasInstance],Object.defineProperty(t,Symbol.hasInstance,{value:function(O0){if(D0.call(this,O0))return!0;if(this!==t)return!1;return O0&&O0._writableState instanceof G0}});else D0=function(O0){return O0 instanceof this};function t(O0){Z=Z||IY();var d=this instanceof Z;if(!d&&!D0.call(t,this))return new t(O0);if(this._writableState=new G0(O0,this,d),this.writable=!0,O0){if(typeof O0.write==="function")this._write=O0.write;if(typeof O0.writev==="function")this._writev=O0.writev;if(typeof O0.destroy==="function")this._destroy=O0.destroy;if(typeof O0.final==="function")this._final=O0.final}J.call(this)}t.prototype.pipe=function(){$0(this,new y)};function V0(O0,d){var m=new l;$0(O0,m),process.nextTick(d,m)}function Q(O0,d,m,r){var Y0;if(m===null)Y0=new b;else if(typeof m!=="string"&&!d.objectMode)Y0=new B("chunk",["string","Buffer"],m);if(Y0)return $0(O0,Y0),process.nextTick(r,Y0),!1;return!0}t.prototype.write=function(O0,d,m){var r=this._writableState,Y0=!1,W0=!r.objectMode&&M(O0);if(W0&&!Y.isBuffer(O0))O0=R(O0);if(typeof d==="function")m=d,d=null;if(W0)d="buffer";else if(!d)d=r.defaultEncoding;if(typeof m!=="function")m=Q0;if(r.ending)V0(this,m);else if(W0||Q(this,r,O0,m))r.pendingcb++,Y0=F(this,r,W0,O0,d,m);return Y0},t.prototype.cork=function(){this._writableState.corked++},t.prototype.uncork=function(){var O0=this._writableState;if(O0.corked){if(O0.corked--,!O0.writing&&!O0.corked&&!O0.bufferProcessing&&O0.bufferedRequest)A(this,O0)}},t.prototype.setDefaultEncoding=function(O0){if(typeof O0==="string")O0=O0.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((O0+"").toLowerCase())>-1))throw new i(O0);return this._writableState.defaultEncoding=O0,this},Object.defineProperty(t.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function D(O0,d,m){if(!O0.objectMode&&O0.decodeStrings!==!1&&typeof d==="string")d=Y.from(d,m);return d}Object.defineProperty(t.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function F(O0,d,m,r,Y0,W0){if(!m){var I0=D(d,r,Y0);if(r!==I0)m=!0,Y0="buffer",r=I0}var c=d.objectMode?1:r.length;d.length+=c;var s=d.length<d.highWaterMark;if(!s)d.needDrain=!0;if(d.writing||d.corked){var S0=d.lastBufferedRequest;if(d.lastBufferedRequest={chunk:r,encoding:Y0,isBuf:m,callback:W0,next:null},S0)S0.next=d.lastBufferedRequest;else d.bufferedRequest=d.lastBufferedRequest;d.bufferedRequestCount+=1}else L(O0,d,!1,c,r,Y0,W0);return s}function L(O0,d,m,r,Y0,W0,I0){if(d.writelen=r,d.writecb=I0,d.writing=!0,d.sync=!0,d.destroyed)d.onwrite(new g("write"));else if(m)O0._writev(Y0,d.onwrite);else O0._write(Y0,W0,d.onwrite);d.sync=!1}function H(O0,d,m,r,Y0){if(--d.pendingcb,m)process.nextTick(Y0,r),process.nextTick(a,O0,d),O0._writableState.errorEmitted=!0,$0(O0,r);else Y0(r),O0._writableState.errorEmitted=!0,$0(O0,r),a(O0,d)}function v(O0){O0.writing=!1,O0.writecb=null,O0.length-=O0.writelen,O0.writelen=0}function q(O0,d){var m=O0._writableState,r=m.sync,Y0=m.writecb;if(typeof Y0!=="function")throw new w;if(v(m),d)H(O0,m,r,d,Y0);else{var W0=k(m)||O0.destroyed;if(!W0&&!m.corked&&!m.bufferProcessing&&m.bufferedRequest)A(O0,m);if(r)process.nextTick(V,O0,m,W0,Y0);else V(O0,m,W0,Y0)}}function V(O0,d,m,r){if(!m)O(O0,d);d.pendingcb--,r(),a(O0,d)}function O(O0,d){if(d.length===0&&d.needDrain)d.needDrain=!1,O0.emit("drain")}function A(O0,d){d.bufferProcessing=!0;var m=d.bufferedRequest;if(O0._writev&&m&&m.next){var r=d.bufferedRequestCount,Y0=Array(r),W0=d.corkedRequestsFree;W0.entry=m;var I0=0,c=!0;while(m){if(Y0[I0]=m,!m.isBuf)c=!1;m=m.next,I0+=1}if(Y0.allBuffers=c,L(O0,d,!0,d.length,Y0,"",W0.finish),d.pendingcb++,d.lastBufferedRequest=null,W0.next)d.corkedRequestsFree=W0.next,W0.next=null;else d.corkedRequestsFree=new G(d);d.bufferedRequestCount=0}else{while(m){var{chunk:s,encoding:S0,callback:M0}=m,z0=d.objectMode?1:s.length;if(L(O0,d,!1,z0,s,S0,M0),m=m.next,d.bufferedRequestCount--,d.writing)break}if(m===null)d.lastBufferedRequest=null}d.bufferedRequest=m,d.bufferProcessing=!1}t.prototype._write=function(O0,d,m){m(new x("_write()"))},t.prototype._writev=null,t.prototype.end=function(O0,d,m){var r=this._writableState;if(typeof O0==="function")m=O0,O0=null,d=null;else if(typeof d==="function")m=d,d=null;if(O0!==null&&O0!==void 0)this.write(O0,d);if(r.corked)r.corked=1,this.uncork();if(!r.ending)J0(this,r,m);return this},Object.defineProperty(t.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function k(O0){return O0.ending&&O0.length===0&&O0.bufferedRequest===null&&!O0.finished&&!O0.writing}function j(O0,d){O0._final(function(m){if(d.pendingcb--,m)$0(O0,m);d.prefinished=!0,O0.emit("prefinish"),a(O0,d)})}function h(O0,d){if(!d.prefinished&&!d.finalCalled)if(typeof O0._final==="function"&&!d.destroyed)d.pendingcb++,d.finalCalled=!0,process.nextTick(j,O0,d);else d.prefinished=!0,O0.emit("prefinish")}function a(O0,d){var m=k(d);if(m){if(h(O0,d),d.pendingcb===0){if(d.finished=!0,O0.emit("finish"),d.autoDestroy){var r=O0._readableState;if(!r||r.autoDestroy&&r.endEmitted)O0.destroy()}}}return m}function J0(O0,d,m){if(d.ending=!0,a(O0,d),m)if(d.finished)process.nextTick(m);else O0.once("finish",m);d.ended=!0,O0.writable=!1}function K0(O0,d,m){var r=O0.entry;O0.entry=null;while(r){var Y0=r.callback;d.pendingcb--,Y0(m),r=r.next}d.corkedRequestsFree.next=O0}Object.defineProperty(t.prototype,"destroyed",{enumerable:!1,get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function(O0){if(!this._writableState)return;this._writableState.destroyed=O0}}),t.prototype.destroy=E.destroy,t.prototype._undestroy=E.undestroy,t.prototype._destroy=function(O0,d){d(O0)}}),IY=x1(($,I)=>{var G=Object.keys||function(T){var S=[];for(var N in T)S.push(N);return S};I.exports=R;var Z=Wg(),_=Kg();UX()(R,Z);{J=G(_.prototype);for(W=0;W<J.length;W++)if(Y=J[W],!R.prototype[Y])R.prototype[Y]=_.prototype[Y]}var J,Y,W;function R(T){if(!(this instanceof R))return new R(T);if(Z.call(this,T),_.call(this,T),this.allowHalfOpen=!0,T){if(T.readable===!1)this.readable=!1;if(T.writable===!1)this.writable=!1;if(T.allowHalfOpen===!1)this.allowHalfOpen=!1,this.once("end",M)}}Object.defineProperty(R.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(R.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(R.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function M(){if(this._writableState.ended)return;process.nextTick(E,this)}function E(T){T.end()}Object.defineProperty(R.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0||this._writableState===void 0)return!1;return this._readableState.destroyed&&this._writableState.destroyed},set:function(T){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=T,this._writableState.destroyed=T}})}),_t=x1(($,I)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var G=(u1(),P$(h1)),Z=G.Buffer;function _(Y,W){for(var R in Y)W[R]=Y[R]}if(Z.from&&Z.alloc&&Z.allocUnsafe&&Z.allocUnsafeSlow)I.exports=G;else _(G,$),$.Buffer=J;function J(Y,W,R){return Z(Y,W,R)}J.prototype=Object.create(Z.prototype),_(Z,J),J.from=function(Y,W,R){if(typeof Y==="number")throw TypeError("Argument must not be a number");return Z(Y,W,R)},J.alloc=function(Y,W,R){if(typeof Y!=="number")throw TypeError("Argument must be a number");var M=Z(Y);if(W!==void 0)if(typeof R==="string")M.fill(W,R);else M.fill(W);else M.fill(0);return M},J.allocUnsafe=function(Y){if(typeof Y!=="number")throw TypeError("Argument must be a number");return Z(Y)},J.allocUnsafeSlow=function(Y){if(typeof Y!=="number")throw TypeError("Argument must be a number");return G.SlowBuffer(Y)}}),Zg=x1(($)=>{var I=_t().Buffer,G=I.isEncoding||function(g){switch(g=""+g,g&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function Z(g){if(!g)return"utf8";var b;while(!0)switch(g){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return g;default:if(b)return;g=(""+g).toLowerCase(),b=!0}}function _(g){var b=Z(g);if(typeof b!=="string"&&(I.isEncoding===G||!G(g)))throw Error("Unknown encoding: "+g);return b||g}$.StringDecoder=J;function J(g){this.encoding=_(g);var b;switch(this.encoding){case"utf16le":this.text=S,this.end=N,b=4;break;case"utf8":this.fillLast=M,b=4;break;case"base64":this.text=B,this.end=x,b=3;break;default:this.write=w,this.end=y;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=I.allocUnsafe(b)}J.prototype.write=function(g){if(g.length===0)return"";var b,l;if(this.lastNeed){if(b=this.fillLast(g),b===void 0)return"";l=this.lastNeed,this.lastNeed=0}else l=0;if(l<g.length)return b?b+this.text(g,l):this.text(g,l);return b||""},J.prototype.end=T,J.prototype.text=E,J.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length};function Y(g){if(g<=127)return 0;else if(g>>5===6)return 2;else if(g>>4===14)return 3;else if(g>>3===30)return 4;return g>>6===2?-1:-2}function W(g,b,l){var i=b.length-1;if(i<l)return 0;var $0=Y(b[i]);if($0>=0){if($0>0)g.lastNeed=$0-1;return $0}if(--i<l||$0===-2)return 0;if($0=Y(b[i]),$0>=0){if($0>0)g.lastNeed=$0-2;return $0}if(--i<l||$0===-2)return 0;if($0=Y(b[i]),$0>=0){if($0>0)if($0===2)$0=0;else g.lastNeed=$0-3;return $0}return 0}function R(g,b,l){if((b[0]&192)!==128)return g.lastNeed=0,"�";if(g.lastNeed>1&&b.length>1){if((b[1]&192)!==128)return g.lastNeed=1,"�";if(g.lastNeed>2&&b.length>2){if((b[2]&192)!==128)return g.lastNeed=2,"�"}}}function M(g){var b=this.lastTotal-this.lastNeed,l=R(this,g,b);if(l!==void 0)return l;if(this.lastNeed<=g.length)return g.copy(this.lastChar,b,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,b,0,g.length),this.lastNeed-=g.length}function E(g,b){var l=W(this,g,b);if(!this.lastNeed)return g.toString("utf8",b);this.lastTotal=l;var i=g.length-(l-this.lastNeed);return g.copy(this.lastChar,0,i),g.toString("utf8",b,i)}function T(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed)return b+"�";return b}function S(g,b){if((g.length-b)%2===0){var l=g.toString("utf16le",b);if(l){var i=l.charCodeAt(l.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],l.slice(0,-1)}return l}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",b,g.length-1)}function N(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed){var l=this.lastTotal-this.lastNeed;return b+this.lastChar.toString("utf16le",0,l)}return b}function B(g,b){var l=(g.length-b)%3;if(l===0)return g.toString("base64",b);if(this.lastNeed=3-l,this.lastTotal=3,l===1)this.lastChar[0]=g[g.length-1];else this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1];return g.toString("base64",b,g.length-l)}function x(g){var b=g&&g.length?this.write(g):"";if(this.lastNeed)return b+this.lastChar.toString("base64",0,3-this.lastNeed);return b}function w(g){return g.toString(this.encoding)}function y(g){return g&&g.length?this.write(g):""}}),VE=x1(($,I)=>{var G=IX().codes.ERR_STREAM_PREMATURE_CLOSE;function Z(W){var R=!1;return function(){if(R)return;R=!0;for(var M=arguments.length,E=Array(M),T=0;T<M;T++)E[T]=arguments[T];W.apply(this,E)}}function _(){}function J(W){return W.setHeader&&typeof W.abort==="function"}function Y(W,R,M){if(typeof R==="function")return Y(W,null,R);if(!R)R={};M=Z(M||_);var E=R.readable||R.readable!==!1&&W.readable,T=R.writable||R.writable!==!1&&W.writable,S=function(){if(!W.writable)B()},N=W._writableState&&W._writableState.finished,B=function(){if(T=!1,N=!0,!E)M.call(W)},x=W._readableState&&W._readableState.endEmitted,w=function(){if(E=!1,x=!0,!T)M.call(W)},y=function(l){M.call(W,l)},g=function(){var l;if(E&&!x){if(!W._readableState||!W._readableState.ended)l=new G;return M.call(W,l)}if(T&&!N){if(!W._writableState||!W._writableState.ended)l=new G;return M.call(W,l)}},b=function(){W.req.on("finish",B)};if(J(W))if(W.on("complete",B),W.on("abort",g),W.req)b();else W.on("request",b);else if(T&&!W._writableState)W.on("end",S),W.on("close",S);if(W.on("end",w),W.on("finish",B),R.error!==!1)W.on("error",y);return W.on("close",g),function(){if(W.removeListener("complete",B),W.removeListener("abort",g),W.removeListener("request",b),W.req)W.req.removeListener("finish",B);W.removeListener("end",S),W.removeListener("close",S),W.removeListener("finish",B),W.removeListener("end",w),W.removeListener("error",y),W.removeListener("close",g)}}I.exports=Y}),Xt=x1(($,I)=>{var G;function Z(i,$0,Q0){if($0=_($0),$0 in i)Object.defineProperty(i,$0,{value:Q0,enumerable:!0,configurable:!0,writable:!0});else i[$0]=Q0;return i}function _(i){var $0=J(i,"string");return typeof $0==="symbol"?$0:String($0)}function J(i,$0){if(typeof i!=="object"||i===null)return i;var Q0=i[Symbol.toPrimitive];if(Q0!==void 0){var G0=Q0.call(i,$0||"default");if(typeof G0!=="object")return G0;throw TypeError("@@toPrimitive must return a primitive value.")}return($0==="string"?String:Number)(i)}var Y=VE(),W=Symbol("lastResolve"),R=Symbol("lastReject"),M=Symbol("error"),E=Symbol("ended"),T=Symbol("lastPromise"),S=Symbol("handlePromise"),N=Symbol("stream");function B(i,$0){return{value:i,done:$0}}function x(i){var $0=i[W];if($0!==null){var Q0=i[N].read();if(Q0!==null)i[T]=null,i[W]=null,i[R]=null,$0(B(Q0,!1))}}function w(i){process.nextTick(x,i)}function y(i,$0){return function(Q0,G0){i.then(function(){if($0[E]){Q0(B(void 0,!0));return}$0[S](Q0,G0)},G0)}}var g=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((G={get stream(){return this[N]},next:function(){var i=this,$0=this[M];if($0!==null)return Promise.reject($0);if(this[E])return Promise.resolve(B(void 0,!0));if(this[N].destroyed)return new Promise(function(t,V0){process.nextTick(function(){if(i[M])V0(i[M]);else t(B(void 0,!0))})});var Q0=this[T],G0;if(Q0)G0=new Promise(y(Q0,this));else{var D0=this[N].read();if(D0!==null)return Promise.resolve(B(D0,!1));G0=new Promise(this[S])}return this[T]=G0,G0}},Z(G,Symbol.asyncIterator,function(){return this}),Z(G,"return",function(){var i=this;return new Promise(function($0,Q0){i[N].destroy(null,function(G0){if(G0){Q0(G0);return}$0(B(void 0,!0))})})}),G),g),l=function(i){var $0,Q0=Object.create(b,($0={},Z($0,N,{value:i,writable:!0}),Z($0,W,{value:null,writable:!0}),Z($0,R,{value:null,writable:!0}),Z($0,M,{value:null,writable:!0}),Z($0,E,{value:i._readableState.endEmitted,writable:!0}),Z($0,S,{value:function(G0,D0){var t=Q0[N].read();if(t)Q0[T]=null,Q0[W]=null,Q0[R]=null,G0(B(t,!1));else Q0[W]=G0,Q0[R]=D0},writable:!0}),$0));return Q0[T]=null,Y(i,function(G0){if(G0&&G0.code!=="ERR_STREAM_PREMATURE_CLOSE"){var D0=Q0[R];if(D0!==null)Q0[T]=null,Q0[W]=null,Q0[R]=null,D0(G0);Q0[M]=G0;return}var t=Q0[W];if(t!==null)Q0[T]=null,Q0[W]=null,Q0[R]=null,t(B(void 0,!0));Q0[E]=!0}),i.on("readable",w.bind(null,Q0)),Q0};I.exports=l}),Gt=x1(($,I)=>{function G(T,S,N,B,x,w,y){try{var g=T[w](y),b=g.value}catch(l){N(l);return}if(g.done)S(b);else Promise.resolve(b).then(B,x)}function Z(T){return function(){var S=this,N=arguments;return new Promise(function(B,x){var w=T.apply(S,N);function y(b){G(w,B,x,y,g,"next",b)}function g(b){G(w,B,x,y,g,"throw",b)}y(void 0)})}}function _(T,S){var N=Object.keys(T);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(T);S&&(B=B.filter(function(x){return Object.getOwnPropertyDescriptor(T,x).enumerable})),N.push.apply(N,B)}return N}function J(T){for(var S=1;S<arguments.length;S++){var N=arguments[S]!=null?arguments[S]:{};S%2?_(Object(N),!0).forEach(function(B){Y(T,B,N[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(N)):_(Object(N)).forEach(function(B){Object.defineProperty(T,B,Object.getOwnPropertyDescriptor(N,B))})}return T}function Y(T,S,N){if(S=W(S),S in T)Object.defineProperty(T,S,{value:N,enumerable:!0,configurable:!0,writable:!0});else T[S]=N;return T}function W(T){var S=R(T,"string");return typeof S==="symbol"?S:String(S)}function R(T,S){if(typeof T!=="object"||T===null)return T;var N=T[Symbol.toPrimitive];if(N!==void 0){var B=N.call(T,S||"default");if(typeof B!=="object")return B;throw TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(T)}var M=IX().codes.ERR_INVALID_ARG_TYPE;function E(T,S,N){var B;if(S&&typeof S.next==="function")B=S;else if(S&&S[Symbol.asyncIterator])B=S[Symbol.asyncIterator]();else if(S&&S[Symbol.iterator])B=S[Symbol.iterator]();else throw new M("iterable",["Iterable"],S);var x=new T(J({objectMode:!0},N)),w=!1;x._read=function(){if(!w)w=!0,y()};function y(){return g.apply(this,arguments)}function g(){return g=Z(function*(){try{var b=yield B.next(),l=b.value,i=b.done;if(i)x.push(null);else if(x.push(yield l))y();else w=!1}catch($0){x.destroy($0)}}),g.apply(this,arguments)}return x}I.exports=E}),Wg=x1(($,I)=>{I.exports=Q;var G;Q.ReadableState=V0;var Z=(zG(),P$(QG)).EventEmitter,_=function(I0,c){return I0.listeners(c).length},J=g4(),Y=(u1(),P$(h1)).Buffer,W=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function R(I0){return Y.from(I0)}function M(I0){return Y.isBuffer(I0)||I0 instanceof W}var E=(v_(),P$(S_)),T;if(E&&E.debuglog)T=E.debuglog("stream");else T=function(){};var S=Ut(),N=Lg(),B=Dg(),x=B.getHighWaterMark,w=IX().codes,y=w.ERR_INVALID_ARG_TYPE,g=w.ERR_STREAM_PUSH_AFTER_EOF,b=w.ERR_METHOD_NOT_IMPLEMENTED,l=w.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,i,$0,Q0;UX()(Q,J);var G0=N.errorOrDestroy,D0=["error","close","destroy","pause","resume"];function t(I0,c,s){if(typeof I0.prependListener==="function")return I0.prependListener(c,s);if(!I0._events||!I0._events[c])I0.on(c,s);else if(Array.isArray(I0._events[c]))I0._events[c].unshift(s);else I0._events[c]=[s,I0._events[c]]}function V0(I0,c,s){if(G=G||IY(),I0=I0||{},typeof s!=="boolean")s=c instanceof G;if(this.objectMode=!!I0.objectMode,s)this.objectMode=this.objectMode||!!I0.readableObjectMode;if(this.highWaterMark=x(this,I0,"readableHighWaterMark",s),this.buffer=new S,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=I0.emitClose!==!1,this.autoDestroy=!!I0.autoDestroy,this.destroyed=!1,this.defaultEncoding=I0.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,I0.encoding){if(!i)i=Zg().StringDecoder;this.decoder=new i(I0.encoding),this.encoding=I0.encoding}}function Q(I0){if(G=G||IY(),!(this instanceof Q))return new Q(I0);var c=this instanceof G;if(this._readableState=new V0(I0,this,c),this.readable=!0,I0){if(typeof I0.read==="function")this._read=I0.read;if(typeof I0.destroy==="function")this._destroy=I0.destroy}J.call(this)}Object.defineProperty(Q.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function(I0){if(!this._readableState)return;this._readableState.destroyed=I0}}),Q.prototype.destroy=N.destroy,Q.prototype._undestroy=N.undestroy,Q.prototype._destroy=function(I0,c){c(I0)},Q.prototype.push=function(I0,c){var s=this._readableState,S0;if(!s.objectMode){if(typeof I0==="string"){if(c=c||s.defaultEncoding,c!==s.encoding)I0=Y.from(I0,c),c="";S0=!0}}else S0=!0;return D(this,I0,c,!1,S0)},Q.prototype.unshift=function(I0){return D(this,I0,null,!0,!1)};function D(I0,c,s,S0,M0){T("readableAddChunk",c);var z0=I0._readableState;if(c===null)z0.reading=!1,V(I0,z0);else{var c0;if(!M0)c0=L(z0,c);if(c0)G0(I0,c0);else if(z0.objectMode||c&&c.length>0){if(typeof c!=="string"&&!z0.objectMode&&Object.getPrototypeOf(c)!==Y.prototype)c=R(c);if(S0)if(z0.endEmitted)G0(I0,new l);else F(I0,z0,c,!0);else if(z0.ended)G0(I0,new g);else if(z0.destroyed)return!1;else if(z0.reading=!1,z0.decoder&&!s)if(c=z0.decoder.write(c),z0.objectMode||c.length!==0)F(I0,z0,c,!1);else k(I0,z0);else F(I0,z0,c,!1)}else if(!S0)z0.reading=!1,k(I0,z0)}return!z0.ended&&(z0.length<z0.highWaterMark||z0.length===0)}function F(I0,c,s,S0){if(c.flowing&&c.length===0&&!c.sync)c.awaitDrain=0,I0.emit("data",s);else{if(c.length+=c.objectMode?1:s.length,S0)c.buffer.unshift(s);else c.buffer.push(s);if(c.needReadable)O(I0)}k(I0,c)}function L(I0,c){var s;if(!M(c)&&typeof c!=="string"&&c!==void 0&&!I0.objectMode)s=new y("chunk",["string","Buffer","Uint8Array"],c);return s}Q.prototype.isPaused=function(){return this._readableState.flowing===!1},Q.prototype.setEncoding=function(I0){if(!i)i=Zg().StringDecoder;var c=new i(I0);this._readableState.decoder=c,this._readableState.encoding=this._readableState.decoder.encoding;var s=this._readableState.buffer.head,S0="";while(s!==null)S0+=c.write(s.data),s=s.next;if(this._readableState.buffer.clear(),S0!=="")this._readableState.buffer.push(S0);return this._readableState.length=S0.length,this};var H=1073741824;function v(I0){if(I0>=H)I0=H;else I0--,I0|=I0>>>1,I0|=I0>>>2,I0|=I0>>>4,I0|=I0>>>8,I0|=I0>>>16,I0++;return I0}function q(I0,c){if(I0<=0||c.length===0&&c.ended)return 0;if(c.objectMode)return 1;if(I0!==I0)if(c.flowing&&c.length)return c.buffer.head.data.length;else return c.length;if(I0>c.highWaterMark)c.highWaterMark=v(I0);if(I0<=c.length)return I0;if(!c.ended)return c.needReadable=!0,0;return c.length}Q.prototype.read=function(I0){T("read",I0),I0=parseInt(I0,10);var c=this._readableState,s=I0;if(I0!==0)c.emittedReadable=!1;if(I0===0&&c.needReadable&&((c.highWaterMark!==0?c.length>=c.highWaterMark:c.length>0)||c.ended)){if(T("read: emitReadable",c.length,c.ended),c.length===0&&c.ended)r(this);else O(this);return null}if(I0=q(I0,c),I0===0&&c.ended){if(c.length===0)r(this);return null}var S0=c.needReadable;if(T("need readable",S0),c.length===0||c.length-I0<c.highWaterMark)S0=!0,T("length less than watermark",S0);if(c.ended||c.reading)S0=!1,T("reading or ended",S0);else if(S0){if(T("do read"),c.reading=!0,c.sync=!0,c.length===0)c.needReadable=!0;if(this._read(c.highWaterMark),c.sync=!1,!c.reading)I0=q(s,c)}var M0;if(I0>0)M0=m(I0,c);else M0=null;if(M0===null)c.needReadable=c.length<=c.highWaterMark,I0=0;else c.length-=I0,c.awaitDrain=0;if(c.length===0){if(!c.ended)c.needReadable=!0;if(s!==I0&&c.ended)r(this)}if(M0!==null)this.emit("data",M0);return M0};function V(I0,c){if(T("onEofChunk"),c.ended)return;if(c.decoder){var s=c.decoder.end();if(s&&s.length)c.buffer.push(s),c.length+=c.objectMode?1:s.length}if(c.ended=!0,c.sync)O(I0);else if(c.needReadable=!1,!c.emittedReadable)c.emittedReadable=!0,A(I0)}function O(I0){var c=I0._readableState;if(T("emitReadable",c.needReadable,c.emittedReadable),c.needReadable=!1,!c.emittedReadable)T("emitReadable",c.flowing),c.emittedReadable=!0,process.nextTick(A,I0)}function A(I0){var c=I0._readableState;if(T("emitReadable_",c.destroyed,c.length,c.ended),!c.destroyed&&(c.length||c.ended))I0.emit("readable"),c.emittedReadable=!1;c.needReadable=!c.flowing&&!c.ended&&c.length<=c.highWaterMark,d(I0)}function k(I0,c){if(!c.readingMore)c.readingMore=!0,process.nextTick(j,I0,c)}function j(I0,c){while(!c.reading&&!c.ended&&(c.length<c.highWaterMark||c.flowing&&c.length===0)){var s=c.length;if(T("maybeReadMore read 0"),I0.read(0),s===c.length)break}c.readingMore=!1}Q.prototype._read=function(I0){G0(this,new b("_read()"))},Q.prototype.pipe=function(I0,c){var s=this,S0=this._readableState;switch(S0.pipesCount){case 0:S0.pipes=I0;break;case 1:S0.pipes=[S0.pipes,I0];break;default:S0.pipes.push(I0);break}S0.pipesCount+=1,T("pipe count=%d opts=%j",S0.pipesCount,c);var M0=(!c||c.end!==!1)&&I0!==process.stdout&&I0!==process.stderr,z0=M0?F0:X$;if(S0.endEmitted)process.nextTick(z0);else s.once("end",z0);I0.on("unpipe",c0);function c0(p0,l0){if(T("onunpipe"),p0===s){if(l0&&l0.hasUnpiped===!1)l0.hasUnpiped=!0,k0()}}function F0(){T("onend"),I0.end()}var q0=h(s);I0.on("drain",q0);var s0=!1;function k0(){if(T("cleanup"),I0.removeListener("close",T0),I0.removeListener("finish",P0),I0.removeListener("drain",q0),I0.removeListener("error",M$),I0.removeListener("unpipe",c0),s.removeListener("end",F0),s.removeListener("end",X$),s.removeListener("data",n0),s0=!0,S0.awaitDrain&&(!I0._writableState||I0._writableState.needDrain))q0()}s.on("data",n0);function n0(p0){T("ondata");var l0=I0.write(p0);if(T("dest.write",l0),l0===!1){if((S0.pipesCount===1&&S0.pipes===I0||S0.pipesCount>1&&W0(S0.pipes,I0)!==-1)&&!s0)T("false write response, pause",S0.awaitDrain),S0.awaitDrain++;s.pause()}}function M$(p0){if(T("onerror",p0),X$(),I0.removeListener("error",M$),_(I0,"error")===0)G0(I0,p0)}t(I0,"error",M$);function T0(){I0.removeListener("finish",P0),X$()}I0.once("close",T0);function P0(){T("onfinish"),I0.removeListener("close",T0),X$()}I0.once("finish",P0);function X$(){T("unpipe"),s.unpipe(I0)}if(I0.emit("pipe",s),!S0.flowing)T("pipe resume"),s.resume();return I0};function h(I0){return function(){var c=I0._readableState;if(T("pipeOnDrain",c.awaitDrain),c.awaitDrain)c.awaitDrain--;if(c.awaitDrain===0&&_(I0,"data"))c.flowing=!0,d(I0)}}Q.prototype.unpipe=function(I0){var c=this._readableState,s={hasUnpiped:!1};if(c.pipesCount===0)return this;if(c.pipesCount===1){if(I0&&I0!==c.pipes)return this;if(!I0)I0=c.pipes;if(c.pipes=null,c.pipesCount=0,c.flowing=!1,I0)I0.emit("unpipe",this,s);return this}if(!I0){var{pipes:S0,pipesCount:M0}=c;c.pipes=null,c.pipesCount=0,c.flowing=!1;for(var z0=0;z0<M0;z0++)S0[z0].emit("unpipe",this,{hasUnpiped:!1});return this}var c0=W0(c.pipes,I0);if(c0===-1)return this;if(c.pipes.splice(c0,1),c.pipesCount-=1,c.pipesCount===1)c.pipes=c.pipes[0];return I0.emit("unpipe",this,s),this},Q.prototype.on=function(I0,c){var s=J.prototype.on.call(this,I0,c),S0=this._readableState;if(I0==="data"){if(S0.readableListening=this.listenerCount("readable")>0,S0.flowing!==!1)this.resume()}else if(I0==="readable"){if(!S0.endEmitted&&!S0.readableListening){if(S0.readableListening=S0.needReadable=!0,S0.flowing=!1,S0.emittedReadable=!1,T("on readable",S0.length,S0.reading),S0.length)O(this);else if(!S0.reading)process.nextTick(J0,this)}}return s},Q.prototype.addListener=Q.prototype.on,Q.prototype.removeListener=function(I0,c){var s=J.prototype.removeListener.call(this,I0,c);if(I0==="readable")process.nextTick(a,this);return s},Q.prototype.removeAllListeners=function(I0){var c=J.prototype.removeAllListeners.apply(this,arguments);if(I0==="readable"||I0===void 0)process.nextTick(a,this);return c};function a(I0){var c=I0._readableState;if(c.readableListening=I0.listenerCount("readable")>0,c.resumeScheduled&&!c.paused)c.flowing=!0;else if(I0.listenerCount("data")>0)I0.resume()}function J0(I0){T("readable nexttick read 0"),I0.read(0)}Q.prototype.resume=function(){var I0=this._readableState;if(!I0.flowing)T("resume"),I0.flowing=!I0.readableListening,K0(this,I0);return I0.paused=!1,this};function K0(I0,c){if(!c.resumeScheduled)c.resumeScheduled=!0,process.nextTick(O0,I0,c)}function O0(I0,c){if(T("resume",c.reading),!c.reading)I0.read(0);if(c.resumeScheduled=!1,I0.emit("resume"),d(I0),c.flowing&&!c.reading)I0.read(0)}Q.prototype.pause=function(){if(T("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)T("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this};function d(I0){var c=I0._readableState;T("flow",c.flowing);while(c.flowing&&I0.read()!==null);}if(Q.prototype.wrap=function(I0){var c=this,s=this._readableState,S0=!1;I0.on("end",function(){if(T("wrapped end"),s.decoder&&!s.ended){var c0=s.decoder.end();if(c0&&c0.length)c.push(c0)}c.push(null)}),I0.on("data",function(c0){if(T("wrapped data"),s.decoder)c0=s.decoder.write(c0);if(s.objectMode&&(c0===null||c0===void 0))return;else if(!s.objectMode&&(!c0||!c0.length))return;var F0=c.push(c0);if(!F0)S0=!0,I0.pause()});for(var M0 in I0)if(this[M0]===void 0&&typeof I0[M0]==="function")this[M0]=function(c0){return function(){return I0[c0].apply(I0,arguments)}}(M0);for(var z0=0;z0<D0.length;z0++)I0.on(D0[z0],this.emit.bind(this,D0[z0]));return this._read=function(c0){if(T("wrapped _read",c0),S0)S0=!1,I0.resume()},this},typeof Symbol==="function")Q.prototype[Symbol.asyncIterator]=function(){if($0===void 0)$0=Xt();return $0(this)};Object.defineProperty(Q.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Q.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Q.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(I0){if(this._readableState)this._readableState.flowing=I0}}),Q._fromList=m,Object.defineProperty(Q.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function m(I0,c){if(c.length===0)return null;var s;if(c.objectMode)s=c.buffer.shift();else if(!I0||I0>=c.length){if(c.decoder)s=c.buffer.join("");else if(c.buffer.length===1)s=c.buffer.first();else s=c.buffer.concat(c.length);c.buffer.clear()}else s=c.buffer.consume(I0,c.decoder);return s}function r(I0){var c=I0._readableState;if(T("endReadable",c.endEmitted),!c.endEmitted)c.ended=!0,process.nextTick(Y0,c,I0)}function Y0(I0,c){if(T("endReadableNT",I0.endEmitted,I0.length),!I0.endEmitted&&I0.length===0){if(I0.endEmitted=!0,c.readable=!1,c.emit("end"),I0.autoDestroy){var s=c._writableState;if(!s||s.autoDestroy&&s.finished)c.destroy()}}}if(typeof Symbol==="function")Q.from=function(I0,c){if(Q0===void 0)Q0=Gt();return Q0(Q,I0,c)};function W0(I0,c){for(var s=0,S0=I0.length;s<S0;s++)if(I0[s]===c)return s;return-1}}),Hg=x1(($,I)=>{I.exports=M;var G=IX().codes,Z=G.ERR_METHOD_NOT_IMPLEMENTED,_=G.ERR_MULTIPLE_CALLBACK,J=G.ERR_TRANSFORM_ALREADY_TRANSFORMING,Y=G.ERR_TRANSFORM_WITH_LENGTH_0,W=IY();UX()(M,W);function R(S,N){var B=this._transformState;B.transforming=!1;var x=B.writecb;if(x===null)return this.emit("error",new _);if(B.writechunk=null,B.writecb=null,N!=null)this.push(N);x(S);var w=this._readableState;if(w.reading=!1,w.needReadable||w.length<w.highWaterMark)this._read(w.highWaterMark)}function M(S){if(!(this instanceof M))return new M(S);if(W.call(this,S),this._transformState={afterTransform:R.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,S){if(typeof S.transform==="function")this._transform=S.transform;if(typeof S.flush==="function")this._flush=S.flush}this.on("prefinish",E)}function E(){var S=this;if(typeof this._flush==="function"&&!this._readableState.destroyed)this._flush(function(N,B){T(S,N,B)});else T(this,null,null)}M.prototype.push=function(S,N){return this._transformState.needTransform=!1,W.prototype.push.call(this,S,N)},M.prototype._transform=function(S,N,B){B(new Z("_transform()"))},M.prototype._write=function(S,N,B){var x=this._transformState;if(x.writecb=B,x.writechunk=S,x.writeencoding=N,!x.transforming){var w=this._readableState;if(x.needTransform||w.needReadable||w.length<w.highWaterMark)this._read(w.highWaterMark)}},M.prototype._read=function(S){var N=this._transformState;if(N.writechunk!==null&&!N.transforming)N.transforming=!0,this._transform(N.writechunk,N.writeencoding,N.afterTransform);else N.needTransform=!0},M.prototype._destroy=function(S,N){W.prototype._destroy.call(this,S,function(B){N(B)})};function T(S,N,B){if(N)return S.emit("error",N);if(B!=null)S.push(B);if(S._writableState.length)throw new Y;if(S._transformState.transforming)throw new J;return S.push(null)}}),Yt=x1(($,I)=>{I.exports=Z;var G=Hg();UX()(Z,G);function Z(_){if(!(this instanceof Z))return new Z(_);G.call(this,_)}Z.prototype._transform=function(_,J,Y){Y(null,_)}}),Jt=x1(($,I)=>{var G;function Z(B){var x=!1;return function(){if(x)return;x=!0,B.apply(void 0,arguments)}}var _=IX().codes,J=_.ERR_MISSING_ARGS,Y=_.ERR_STREAM_DESTROYED;function W(B){if(B)throw B}function R(B){return B.setHeader&&typeof B.abort==="function"}function M(B,x,w,y){y=Z(y);var g=!1;if(B.on("close",function(){g=!0}),G===void 0)G=VE();G(B,{readable:x,writable:w},function(l){if(l)return y(l);g=!0,y()});var b=!1;return function(l){if(g)return;if(b)return;if(b=!0,R(B))return B.abort();if(typeof B.destroy==="function")return B.destroy();y(l||new Y("pipe"))}}function E(B){B()}function T(B,x){return B.pipe(x)}function S(B){if(!B.length)return W;if(typeof B[B.length-1]!=="function")return W;return B.pop()}function N(){for(var B=arguments.length,x=Array(B),w=0;w<B;w++)x[w]=arguments[w];var y=S(x);if(Array.isArray(x[0]))x=x[0];if(x.length<2)throw new J("streams");var g,b=x.map(function(l,i){var $0=i<x.length-1,Q0=i>0;return M(l,$0,Q0,function(G0){if(!g)g=G0;if(G0)b.forEach(E);if($0)return;b.forEach(E),y(g)})});return x.reduce(T)}I.exports=N}),Fg=x1(($,I)=>{var G=g4();$=I.exports=Wg(),$.Stream=G||$,$.Readable=$,$.Writable=Kg(),$.Duplex=IY(),$.Transform=Hg(),$.PassThrough=Yt(),$.finished=VE(),$.pipeline=Jt()}),Tg=x1(($)=>{var I=Og(),G=UX(),Z=Fg(),_=$.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},J=$.IncomingMessage=function(Y,W,R,M){var E=this;if(Z.Readable.call(E),E._mode=R,E.headers={},E.rawHeaders=[],E.trailers={},E.rawTrailers=[],E.on("end",function(){process.nextTick(function(){E.emit("close")})}),R==="fetch"){let y=function(){N.read().then(function(g){if(E._destroyed)return;if(M(g.done),g.done){E.push(null);return}E.push(Buffer.from(g.value)),y()}).catch(function(g){if(M(!0),!E._destroyed)E.emit("error",g)})};var T=y;if(E._fetchResponse=W,E.url=W.url,E.statusCode=W.status,E.statusMessage=W.statusText,W.headers.forEach(function(g,b){E.headers[b.toLowerCase()]=g,E.rawHeaders.push(b,g)}),I.writableStream){var S=new WritableStream({write:function(g){return M(!1),new Promise(function(b,l){if(E._destroyed)l();else if(E.push(Buffer.from(g)))b();else E._resumeFetch=b})},close:function(){if(M(!0),!E._destroyed)E.push(null)},abort:function(g){if(M(!0),!E._destroyed)E.emit("error",g)}});try{W.body.pipeTo(S).catch(function(g){if(M(!0),!E._destroyed)E.emit("error",g)});return}catch(g){}}var N=W.body.getReader();y()}else{E._xhr=Y,E._pos=0,E.url=Y.responseURL,E.statusCode=Y.status,E.statusMessage=Y.statusText;var B=Y.getAllResponseHeaders().split(/\r?\n/);if(B.forEach(function(y){var g=y.match(/^([^:]+):\s*(.*)/);if(g){var b=g[1].toLowerCase();if(b==="set-cookie"){if(E.headers[b]===void 0)E.headers[b]=[];E.headers[b].push(g[2])}else if(E.headers[b]!==void 0)E.headers[b]+=", "+g[2];else E.headers[b]=g[2];E.rawHeaders.push(g[1],g[2])}}),E._charset="x-user-defined",!I.overrideMimeType){var x=E.rawHeaders["mime-type"];if(x){var w=x.match(/;\s*charset=([^;])(;|$)/);if(w)E._charset=w[1].toLowerCase()}if(!E._charset)E._charset="utf-8"}}};G(J,Z.Readable),J.prototype._read=function(){var Y=this,W=Y._resumeFetch;if(W)Y._resumeFetch=null,W()},J.prototype._onXHRProgress=function(Y){var W=this,R=W._xhr,M=null;switch(W._mode){case"text":if(M=R.responseText,M.length>W._pos){var E=M.substr(W._pos);if(W._charset==="x-user-defined"){var T=Buffer.alloc(E.length);for(var S=0;S<E.length;S++)T[S]=E.charCodeAt(S)&255;W.push(T)}else W.push(E,W._charset);W._pos=M.length}break;case"arraybuffer":if(R.readyState!==_.DONE||!R.response)break;M=R.response,W.push(Buffer.from(new Uint8Array(M)));break;case"moz-chunked-arraybuffer":if(M=R.response,R.readyState!==_.LOADING||!M)break;W.push(Buffer.from(new Uint8Array(M)));break;case"ms-stream":if(M=R.response,R.readyState!==_.LOADING)break;var N=new globalThis.MSStreamReader;N.onprogress=function(){if(N.result.byteLength>W._pos)W.push(Buffer.from(new Uint8Array(N.result.slice(W._pos)))),W._pos=N.result.byteLength},N.onload=function(){Y(!0),W.push(null)},N.readAsArrayBuffer(M);break}if(W._xhr.readyState===_.DONE&&W._mode!=="ms-stream")Y(!0),W.push(null)}}),Qt=x1(($,I)=>{var G=Og(),Z=UX(),_=Tg(),J=Fg(),Y=_.IncomingMessage,W=_.readyStates;function R(S,N){if(G.fetch&&N)return"fetch";else if(G.mozchunkedarraybuffer)return"moz-chunked-arraybuffer";else if(G.msstream)return"ms-stream";else if(G.arraybuffer&&S)return"arraybuffer";else return"text"}var M=I.exports=function(S){var N=this;if(J.Writable.call(N),N._opts=S,N._body=[],N._headers={},S.auth)N.setHeader("Authorization","Basic "+Buffer.from(S.auth).toString("base64"));Object.keys(S.headers).forEach(function(w){N.setHeader(w,S.headers[w])});var B,x=!0;if(S.mode==="disable-fetch"||"requestTimeout"in S&&!G.abortController)x=!1,B=!0;else if(S.mode==="prefer-streaming")B=!1;else if(S.mode==="allow-wrong-content-type")B=!G.overrideMimeType;else if(!S.mode||S.mode==="default"||S.mode==="prefer-fast")B=!0;else throw Error("Invalid value for opts.mode");N._mode=R(B,x),N._fetchTimer=null,N._socketTimeout=null,N._socketTimer=null,N.on("finish",function(){N._onFinish()})};Z(M,J.Writable),M.prototype.setHeader=function(S,N){var B=this,x=S.toLowerCase();if(T.indexOf(x)!==-1)return;B._headers[x]={name:S,value:N}},M.prototype.getHeader=function(S){var N=this._headers[S.toLowerCase()];if(N)return N.value;return null},M.prototype.removeHeader=function(S){var N=this;delete N._headers[S.toLowerCase()]},M.prototype._onFinish=function(){var S=this;if(S._destroyed)return;var N=S._opts;if("timeout"in N&&N.timeout!==0)S.setTimeout(N.timeout);var B=S._headers,x=null;if(N.method!=="GET"&&N.method!=="HEAD")x=new Blob(S._body,{type:(B["content-type"]||{}).value||""});var w=[];if(Object.keys(B).forEach(function(l){var i=B[l].name,$0=B[l].value;if(Array.isArray($0))$0.forEach(function(Q0){w.push([i,Q0])});else w.push([i,$0])}),S._mode==="fetch"){var y=null;if(G.abortController){var g=new AbortController;if(y=g.signal,S._fetchAbortController=g,"requestTimeout"in N&&N.requestTimeout!==0)S._fetchTimer=globalThis.setTimeout(function(){if(S.emit("requestTimeout"),S._fetchAbortController)S._fetchAbortController.abort()},N.requestTimeout)}globalThis.fetch(S._opts.url,{method:S._opts.method,headers:w,body:x||void 0,mode:"cors",credentials:N.withCredentials?"include":"same-origin",signal:y}).then(function(l){S._fetchResponse=l,S._resetTimers(!1),S._connect()},function(l){if(S._resetTimers(!0),!S._destroyed)S.emit("error",l)})}else{var b=S._xhr=new globalThis.XMLHttpRequest;try{b.open(S._opts.method,S._opts.url,!0)}catch(l){process.nextTick(function(){S.emit("error",l)});return}if("responseType"in b)b.responseType=S._mode;if("withCredentials"in b)b.withCredentials=!!N.withCredentials;if(S._mode==="text"&&"overrideMimeType"in b)b.overrideMimeType("text/plain; charset=x-user-defined");if("requestTimeout"in N)b.timeout=N.requestTimeout,b.ontimeout=function(){S.emit("requestTimeout")};if(w.forEach(function(l){b.setRequestHeader(l[0],l[1])}),S._response=null,b.onreadystatechange=function(){switch(b.readyState){case W.LOADING:case W.DONE:S._onXHRProgress();break}},S._mode==="moz-chunked-arraybuffer")b.onprogress=function(){S._onXHRProgress()};b.onerror=function(){if(S._destroyed)return;S._resetTimers(!0),S.emit("error",Error("XHR error"))};try{b.send(x)}catch(l){process.nextTick(function(){S.emit("error",l)});return}}};function E(S){try{var N=S.status;return N!==null&&N!==0}catch(B){return!1}}M.prototype._onXHRProgress=function(){var S=this;if(S._resetTimers(!1),!E(S._xhr)||S._destroyed)return;if(!S._response)S._connect();S._response._onXHRProgress(S._resetTimers.bind(S))},M.prototype._connect=function(){var S=this;if(S._destroyed)return;S._response=new Y(S._xhr,S._fetchResponse,S._mode,S._resetTimers.bind(S)),S._response.on("error",function(N){S.emit("error",N)}),S.emit("response",S._response)},M.prototype._write=function(S,N,B){var x=this;x._body.push(S),B()},M.prototype._resetTimers=function(S){var N=this;if(globalThis.clearTimeout(N._socketTimer),N._socketTimer=null,S)globalThis.clearTimeout(N._fetchTimer),N._fetchTimer=null;else if(N._socketTimeout)N._socketTimer=globalThis.setTimeout(function(){N.emit("timeout")},N._socketTimeout)},M.prototype.abort=M.prototype.destroy=function(S){var N=this;if(N._destroyed=!0,N._resetTimers(!0),N._response)N._response._destroyed=!0;if(N._xhr)N._xhr.abort();else if(N._fetchAbortController)N._fetchAbortController.abort();if(S)N.emit("error",S)},M.prototype.end=function(S,N,B){var x=this;if(typeof S==="function")B=S,S=void 0;J.Writable.prototype.end.call(x,S,N,B)},M.prototype.setTimeout=function(S,N){var B=this;if(N)B.once("timeout",N);B._socketTimeout=S,B._resetTimers(!1)},M.prototype.flushHeaders=function(){},M.prototype.setNoDelay=function(){},M.prototype.setSocketKeepAlive=function(){};var T=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}),zt=x1(($,I)=>{I.exports=Z;var G=Object.prototype.hasOwnProperty;function Z(){var _={};for(var J=0;J<arguments.length;J++){var Y=arguments[J];for(var W in Y)if(G.call(Y,W))_[W]=Y[W]}return _}}),Zt=x1(($,I)=>{I.exports=(Xz(),P$(m5)).STATUS_CODES}),Ot=x1(($)=>{var I=Qt(),G=Tg(),Z=zt(),_=Zt(),J=(RE(),P$(EE)),Y=$;Y.request=function(W,R){if(typeof W==="string")W=J.parse(W);else W=Z(W);var M=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",E=W.protocol||M,T=W.hostname||W.host,S=W.port,N=W.path||"/";if(T&&T.indexOf(":")!==-1)T="["+T+"]";W.url=(T?E+"//"+T:"")+(S?":"+S:"")+N,W.method=(W.method||"GET").toUpperCase(),W.headers=W.headers||{};var B=new I(W);if(R)B.on("response",R);return B},Y.get=function(W,R){var M=Y.request(W,R);return M.end(),M},Y.ClientRequest=I,Y.IncomingMessage=G.IncomingMessage,Y.Agent=function(){},Y.Agent.defaultMaxSockets=4,Y.globalAgent=new Y.Agent,Y.STATUS_CODES=_,Y.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}),Mg=eo(Ot(),1),{request:Lt,get:Dt,ClientRequest:Kt,IncomingMessage:Wt,Agent:Ht,globalAgent:Ft,STATUS_CODES:Tt,METHODS:Mt}=Mg.default,Ag=Mg.default});var Vg={};LU(Vg,{isIPv6:()=>SE,isIPv4:()=>PE,isIP:()=>Eg,default:()=>Rg});function PE($){return At.test($)}function SE($){return Et.test($)}function Eg($){if(PE($))return 4;if(SE($))return 6;return 0}var At,Et,Rg;var vE=WI(()=>{At=new RegExp("^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"),Et=new RegExp("^(?:(?:(?:[0-9a-fA-F]{1,4}):){7}(?:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){6}(?:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|:(?:[0-9a-fA-F]{1,4})|:)|(?:(?:[0-9a-fA-F]{1,4}):){5}(?::(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,2}|:)|(?:(?:[0-9a-fA-F]{1,4}):){4}(?:(?::(?:[0-9a-fA-F]{1,4})){0,1}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,3}|:)|(?:(?:[0-9a-fA-F]{1,4}):){3}(?:(?::(?:[0-9a-fA-F]{1,4})){0,2}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,4}|:)|(?:(?:[0-9a-fA-F]{1,4}):){2}(?:(?::(?:[0-9a-fA-F]{1,4})){0,3}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,5}|:)|(?:(?:[0-9a-fA-F]{1,4}):){1}(?:(?::(?:[0-9a-fA-F]{1,4})){0,4}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,6}|:)|(?::(?:(?::(?:[0-9a-fA-F]{1,4})){0,5}:(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])|(?::(?:[0-9a-fA-F]{1,4})){1,7}|:)))(?:%[0-9a-zA-Z-.:]{1,})?$");Rg={isIPv4:PE,isIPv6:SE,isIP:Eg}});var Cg=N6((bQ0,nt)=>{nt.exports={"//":"GENERATED by scripts/pack-facts.ts — do not hand-edit. Compiled from each pack's `pack: TwinPack` descriptor; pack-facts.test.ts fails on drift.",packs:{ahrefs:{adoption:{pypi:[],sdks:["@ahrefs/mcp"],scopes:["@ahrefs/"],envStems:["AHREFS"]},hosts:[{host:"api.ahrefs.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["target","usage","cache","audit"],serveExport:"createAhrefsTwinServer"},"ai-gateway":{adoption:{pypi:[],sdks:["@ai-sdk/gateway"],envStems:["AIGATEWAY"]},hostsNone:"SDK is base-URL-configured (@ai-sdk/gateway baseURL / AI_GATEWAY_BASE_URL) — worlds wire the twin through explicit endpoint config; no injector entry grounded yet",archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["generation"],serveExport:"createAiGatewayTwinServer"},airtable:{adoption:{pypi:["pyairtable","airtable-python-wrapper"],sdks:["airtable"],envStems:["AIRTABLE"]},hosts:[{host:"api.airtable.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["base","table","record","comment"],endpointEnvNone:"the injector intercepts api.airtable.com (see `hosts`), which covers every client with no env at all; AIRTABLE_ENDPOINT_URL is real (Airtable.default_config(), airtable@0.12.2) but injecting it alongside interception is the strictly narrower answer — one wiring, not two.",serveExport:"createAirtableTwinServer"},algolia:{adoption:{pypi:["algoliasearch"],sdks:["algoliasearch"],envStems:["ALGOLIA","ALGOLIAWRITE"]},hostsNone:"per-app-ID host scheme ({appId}.algolia.net / {appId}-dsn.algolia.net / {appId}-N.algolianet.com, see the pack README §Host tolerance) — no fixed host list to match; the host-tolerant twin is wired by explicit client host config",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["index","record","synonym","settings"],serveExport:"createAlgoliaTwinServer"},anthropic:{adoption:{pypi:["anthropic","claude-agent-sdk","claude-code-sdk"],sdks:["@anthropic-ai/sdk","@ai-sdk/anthropic","@anthropic-ai/vertex-sdk","@anthropic-ai/bedrock-sdk","@anthropic-ai/claude-agent-sdk"],scopes:["@anthropic-ai/"],envStems:["ANTHROPIC","CLAUDE"]},hosts:[{host:"api.anthropic.com"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["message_batch","file","agent","environment","session","vault","vault_credential","memory_store","memory","memory_version","deployment","deployment_run","skill","webhook_secret"],serveExport:"createAnthropicTwinServer"},assemblyai:{adoption:{pypi:["assemblyai"],sdks:["assemblyai"],envStems:["ASSEMBLYAI"]},hosts:[{host:"api.assemblyai.com"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["transcript","upload"],serveExport:"createAssemblyAITwinServer"},aws:{adoption:{pypi:["boto3","botocore","aioboto3","aiobotocore"],sdks:["@aws-sdk/client-s3","@aws-sdk/s3-request-presigner","@aws-sdk/lib-storage","@aws-sdk/client-dynamodb","@aws-sdk/lib-dynamodb","@aws-sdk/client-timestream-write","@aws-sdk/client-timestream-query","aws-sdk","@aws-sdk/client-sesv2","@aws-sdk/client-secrets-manager","@aws-sdk/client-bedrock-runtime","@aws-sdk/client-bedrock","@ai-sdk/amazon-bedrock"],envStems:["AWS","S3","LANGFUSELLMCONNECTIONBEDROCK"],worldIds:["s3","dynamodb","timestream","timestreamwrite","timestreamquery","sesv2","secretsmanager","bedrock"]},hosts:[{key:"s3",host:"s3.amazonaws.com"},{key:"s3",suffix:".s3.amazonaws.com"},{key:"s3",hostPattern:"^s3[.-][a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",hostPattern:"\\.s3[.-][a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",hostPattern:"^s3\\.dualstack\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",hostPattern:"\\.s3\\.dualstack\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"s3",suffix:".s3-accelerate.amazonaws.com"},{key:"s3",suffix:".s3-accelerate.dualstack.amazonaws.com"},{key:"dynamodb",hostPattern:"^dynamodb\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"timestream",hostPattern:"(^|\\.)(ingest|query)\\.timestream\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"sesv2",hostPattern:"^email\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"secretsmanager",hostPattern:"^secretsmanager(-fips)?\\.[a-z0-9-]+\\.amazonaws\\.com$"},{key:"bedrock",hostPattern:"^bedrock(-runtime)?(-fips)?\\.[a-z0-9-]+\\.(amazonaws\\.com|api\\.aws)$"}],archetype:"signed-protocol",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{foundation_model:"the account catalog: pulled from ListFoundationModels, never created by a caller"},resources:["bucket","object","multipart_upload","table","item","database","record","message","secret","invocation","foundation_model","identity"],serveExport:"createAwsTwinServer"},axiom:{adoption:{sdks:["@axiomhq/js","@axiomhq/logging","@axiomhq/nextjs"],pypi:["axiom-py"],envStems:["AXIOM"]},hosts:[{host:"api.axiom.co"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["dataset","event"],endpointEnvNone:"no env var: @axiomhq/js reads its base URL only from the `url` constructor option (httpClient.ts:33,45) and Dub constructs `new Axiom({ token })` with none, so interception is the hosts entry above; an AXIOM_URL no client reads would be invented surface.",serveExport:"createAxiomTwinServer"},azure:{adoption:{pypi:["azure-storage-blob","azure-ai-inference"],sdks:["@azure/storage-blob","@azure/openai","@azure-rest/ai-inference","@ai-sdk/azure"],envStems:["AZURE","AZUREOPENAI","AZUREGPT4OMINI","AZUREGPT5","AZUREGPT5MINI","AZUREGPT5NANO"]},hosts:[{suffix:".blob.core.windows.net"},{suffix:".openai.azure.com"},{suffix:".cognitiveservices.azure.com",pathPattern:"^/openai/"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["container","blob","block","deployment"],endpointEnvNone:"Host-based interception only. @azure/storage-blob is configured with a blob endpoint URL or a connection string (both resolving to <account>.blob.core.windows.net, which the injector rewrites), and reads no base-URL environment variable of its own — the same reason the aws pack declares none.",serveExport:"createAzureTwinServer"},azureformrecognizer:{adoption:{pypi:["azure-ai-documentintelligence","azure-ai-formrecognizer"],sdks:["@azure-rest/ai-document-intelligence","@azure/ai-form-recognizer"],envStems:["AZUREFORMRECOGNIZER","AZUREDOCUMENTINTELLIGENCE"]},hosts:[{suffix:".cognitiveservices.azure.com",pathPattern:"^/(documentintelligence|formrecognizer)/"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{model:"prebuilt models are the vendor's catalog; a custom model is born of a training job this twin does not run"},resources:["analysis","model"],serveExport:"createAzureFormRecognizerTwinServer"},bitly:{adoption:{pypi:[],envStems:["BITLY"]},hosts:[{host:"api-ssl.bitly.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["bitlink","group","organization","user","qr_code","campaign","channel","webhook","custom_bitlink","click"],endpointEnvNone:"no injector-free path: Bitly integrations hardcode https://api-ssl.bitly.com and the vendor documents no base-URL override, so interception is the hosts entry above; a BITLY_BASE_URL would be invented surface no app reads.",serveExport:"createBitlyTwinServer"},bluesky:{adoption:{sdks:["@atproto/api"],pypi:[],envStems:["BLUESKY","BSKY"]},hosts:[{host:"bsky.social",pathPattern:"^/xrpc/(com\\.atproto|app\\.bsky)\\."},{hostPattern:"^[a-z0-9-]+\\.[a-z0-9-]+\\.host\\.bsky\\.network$",pathPattern:"^/xrpc/(com\\.atproto|app\\.bsky)\\."},{host:"api.bsky.app",pathPattern:"^/xrpc/app\\.bsky\\.(actor|feed)\\."},{host:"public.api.bsky.app",pathPattern:"^/xrpc/app\\.bsky\\.(actor|feed)\\."},{host:"video.bsky.app",pathPattern:"^/(xrpc/app\\.bsky\\.video\\.|watch/)"},{host:"cdn.bsky.app",pathPattern:"^/img/"},{host:"bsky.app",pathPattern:"^/profile/[^/]+/?$|^/profile/[^/]+/post/[A-Za-z0-9._:~-]{1,512}/?$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["account","post","follow","profile"],endpointEnvNone:"@atproto/api reads no base-URL environment variable (an AtpAgent takes its `service` URL in code, and the video service's is the social-app's constant), so a World reaches it through the hosts above; inventing a BLUESKY_BASE_URL the app never reads would report coverage the app does not have.",serveExport:"createBlueskyTwinServer"},calcom:{adoption:{pypi:[],envStems:["CALCOM","CAL"]},hosts:[{host:"api.cal.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["booking","event_type","schedule","team","membership","webhook","slot"],serveExport:"createCalcomTwinServer"},cerebras:{adoption:{sdks:["@cerebras/cerebras_cloud_sdk","@ai-sdk/cerebras"],envStems:["CEREBRAS"]},hosts:[{host:"api.cerebras.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:[],endpointEnvNone:"The injector intercepts api.cerebras.ai (see `hosts`), so a world wires this pack through CEREBRAS_TWIN_URL rather than an app-read base-URL var. The SDK would honour CEREBRAS_BASE_URL, but the injector covers all of that traffic with zero app edits while an app-read env covers only clients constructed after the env lands — emitting both would quietly forgo interception.",serveExport:"createCerebrasTwinServer"},clerk:{adoption:{pypi:["clerk-backend-api"],sdks:["@clerk/backend","@clerk/clerk-sdk-node","@clerk/nextjs","@clerk/fastify","@clerk/express"],scopes:["@clerk/"],envStems:["CLERK"]},hosts:[{host:"api.clerk.com"},{suffix:".clerk.accounts.dev"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",assets:["client/clerk-js-dist","client/clerk.browser.js"],resources:["user","session","organization","organization_membership","organization_invitation","invitation","allowlist_identifier","blocklist_identifier","jwt_template","sign_in_token"],serveExport:"createClerkTwinServer"},cloudflare:{adoption:{pypi:["cloudflare"],tools:[{package:"wrangler",usage:"deployment"}],sdks:["cloudflare","aws4fetch"],envStems:["CLOUDFLARE"]},hosts:[{host:"api.cloudflare.com"},{host:"dash.cloudflare.com",pathPattern:"^/(login|_twin/users/|[0-9a-f]{32}/r2/|$)"},{suffix:".r2.cloudflarestorage.com"}],hostsClaimed:{door:"/twin/hosts",note:"the custom domains connected to R2 buckets"},archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["account","zone","cloudflare_tunnel","tunnel_configuration","dns_record","worker_script","worker_route","worker_domain","workers_subdomain","durable_object_namespace","r2_bucket","r2_custom_domain","hyperdrive_config","queue","queue_consumer","worker_version","worker_asset","worker_asset_upload_session"],serveExport:"createCloudflareTwinServer"},cohere:{adoption:{pypi:["cohere"],sdks:["cohere-ai","@ai-sdk/cohere"],envStems:["COHERE","CO"]},hosts:[{host:"api.cohere.com"},{host:"api.cohere.ai"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["dataset","connector","embed_job","token"],endpointEnvNone:"neither official SDK reads a base-URL env var: cohere-ai@8.1.0 takes the override as the `baseUrl`/`environment` CONSTRUCTOR option and reads only CO_API_KEY from the environment (auth/BearerAuthProvider.js), and @ai-sdk/cohere@4.0.35 takes `options.baseURL` and reads only COHERE_API_KEY. Interception is host-based on api.cohere.com and api.cohere.ai; inventing a COHERE_BASE_URL nothing reads would make `covers` claim a world it does not cover.",serveExport:"createCohereTwinServer"},currencyapi:{adoption:{sdks:["@everapi/currencyapi-js"],pypi:["currencyapicom"],envStems:["CURRENCYAPI"]},hosts:[{host:"api.currencyapi.com"},{host:"app.currencyapi.com",pathPattern:"^/(register|login|dashboard|subscription)(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["_account","_api_key","_usage","_web_session"],endpointEnvNone:"currencyapi's clients hardcode https://api.currencyapi.com/v3 (@everapi/currencyapi-js index.js `baseUrl`, dubinc/dub apps/web/lib/currencyapi/client.ts `baseUrl`) and read no base-URL env; interception is the hosts above.",serveExport:"createCurrencyapiTwinServer"},daily:{adoption:{envStems:["DAILY"]},hosts:[{host:"api.daily.co"},{hostPattern:"^[a-z0-9][a-z0-9-]*\\.daily\\.co$"},{host:"c.daily.co",exclude:!0},{host:"gs.daily.co",exclude:!0},{host:"www.daily.co",exclude:!0},{host:"dashboard.daily.co",exclude:!0},{host:"docs.daily.co",exclude:!0},{host:"help.daily.co",exclude:!0},{host:"status.daily.co",exclude:!0},{host:"blog.daily.co",exclude:!0},{host:"pipecat.daily.co",exclude:!0},{host:"reference-python.daily.co",exclude:!0},{host:"reference-ios.daily.co",exclude:!0},{host:"reference-android.daily.co",exclude:!0}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["Room","Meeting","Recording","Transcript","BatchJob","Webhook","_domain","_delivery","_receiver"],endpointEnvNone:"Daily's REST clients hardcode https://api.daily.co/v1 (Cal.com packages/app-store/dailyvideo/lib/dailyApiFetcher.ts) and read no base-URL env; interception is the hosts above.",serveExport:"createDailyTwinServer"},datadog:{adoption:{pypi:["datadog","datadog-api-client","ddtrace"],sdks:["@datadog/datadog-api-client","@datadog/browser-rum","@datadog/browser-logs","dd-trace"],scopes:["@datadog/"],envStems:["DATADOG","DD"]},hosts:[{host:"datadoghq.com"},{suffix:".datadoghq.com"},{host:"datadoghq.eu"},{suffix:".datadoghq.eu"},{host:"ddog-gov.com"},{suffix:".ddog-gov.com"},{hostPattern:"^([a-z0-9-]+\\.)?browser-intake-(?:[a-z0-9]+-)?(?:datadoghq\\.(?:com|eu)|ddog-gov\\.com)$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["org","rum_application","rum_event","log","metric_series","metric_def","service_check","event","monitor","dashboard","host","slo","downtime","api_key","user"],serveExport:"createDatadogTwinServer"},deepgram:{adoption:{pypi:["deepgram-sdk"],sdks:["@deepgram/sdk"],envStems:["DEEPGRAM"]},hosts:[{host:"api.deepgram.com"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{project:"the tenant itself: born with the account, never created through the API"},resources:["project","key","request"],serveExport:"createDeepgramTwinServer"},deepinfra:{adoption:{sdks:["deepinfra","@ai-sdk/deepinfra"],envStems:["DEEPINFRA"]},hosts:[{host:"api.deepinfra.com"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{model:"the vendor catalog",rate_limit:"the account ledger the vendor keeps; read-only"},resources:["model","file","batch","rate_limit"],endpointEnvNone:"the deepinfra SDK exposes no base-URL env: DeepInfraClient takes the endpoint URL as a constructor argument (the modelName IS the full URL) and reads only DEEPINFRA_API_KEY; interception is the hosts above.",serveExport:"createDeepinfraTwinServer"},deepseek:{adoption:{pypi:[],sdks:["@ai-sdk/deepseek"],envStems:["DEEPSEEK"]},hosts:[{host:"api.deepseek.com"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resourcesUnreachable:{model:"the vendor catalog",balance:"the account ledger the vendor keeps; read-only"},resources:["model","file","balance","cache_prefix"],endpointEnvNone:"no app-read endpoint env: @ai-sdk/deepseek — the only first-party npm client of this surface — reads exactly one environment variable (DEEPSEEK_API_KEY, via loadApiKey in src/deepseek-provider.ts) and takes baseURL as a constructor option, so there is no vendor-documented base-URL var to inject. The injector covers api.deepseek.com instead (see `hosts`). NextChat's DEEPSEEK_URL is one application's own convention, not vendor surface, and claiming it would report a world covered while the SDK-based majority still reached the real vendor.",serveExport:"createDeepSeekTwinServer"},discord:{adoption:{sdks:["discord.js","@discordjs/rest","@discordjs/core","@discordjs/builders","discord-api-types"],pypi:["discord.py","discord"],envStems:["DISCORD"]},hosts:[{host:"discord.com",pathPattern:"^/api/"},{host:"discord.com",pathPattern:"^/(oauth2/authorize|login)/?$"},{host:"gateway.discord.gg"},{host:"discordapp.com",pathPattern:"^/api/"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["application","application_command","ban","channel","guild","interaction_response","invite","member","message","oauth_grant","role","user","webhook"],endpointEnvNone:"no Discord client reads a base-URL env var — discord.js takes `api` as a REST constructor option and discord.py hardcodes its Route base, so interception is the `hosts` entries above. Inventing a DISCORD_BASE_URL would report coverage the app could not use.",serveExport:"createDiscordTwinServer"},dynadot:{adoption:{pypi:[],envStems:["DYNADOT"]},hosts:[{host:"api.dynadot.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["domain","account"],serveExport:"createDynadotTwinServer"},elevenlabs:{adoption:{pypi:["elevenlabs"],sdks:["elevenlabs","@elevenlabs/elevenlabs-js"],scopes:["@elevenlabs/"],envStems:["ELEVENLABS"]},hosts:[{host:"api.elevenlabs.io"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["voice","generated_voice","pronunciation_dictionary","dubbing","history_item"],serveExport:"createElevenLabsTwinServer"},expo:{adoption:{sdks:["expo-server-sdk"],pypi:["exponent-server-sdk"],envStems:["EXPO"]},hosts:[{host:"exp.host"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["push_device","push_ticket"],endpointEnvNone:"expo-server-sdk-node DOES read EXPO_BASE_URL (src/ExpoClientValues.ts builds both push URLs from process.env['EXPO_BASE_URL'] || 'https://exp.host'), but this pack claims exp.host in `hosts`, so interception is host-based and zero-edit; emitting the var would forgo that. Point EXPO_BASE_URL at the twin by hand only when running outside an injected world.",serveExport:"createExpoTwinServer"},fal:{adoption:{pypi:["fal-client","fal"],sdks:["@fal-ai/client","@fal-ai/serverless-client"],scopes:["@fal-ai/"],envStems:["FAL"]},hostsNone:"host-split surface (fal.run / queue.fal.run) with no injector entry grounded yet — worlds wire the twin via the client's explicit endpoint config; a visible gap until its hosts are grounded here",archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["request","signing_key"],serveExport:"createFalTwinServer"},figma:{adoption:{pypi:[],sdks:["figma-api","@figma/rest-api-spec"],scopes:["@figma/"],envStems:["FIGMA"]},hostsNone:'no injector entry grounded yet — the pack README wires clients at the twin by base URL ("nothing changed but the base URL"); zero-edit interception of api.figma.com is a visible gap until grounded here',archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["file","comment","version","project","team","user","credential"],serveExport:"createFigmaTwinServer"},firecrawl:{adoption:{pypi:["firecrawl-py","firecrawl"],sdks:["@mendable/firecrawl-js","firecrawl"],scopes:["@mendable/"],envStems:["FIRECRAWL","S2SFIRECRAWLINTEGRATIONSTOFIRECRAWL"]},hosts:[{host:"api.firecrawl.dev"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["document","crawl","audit"],serveExport:"createFirecrawlTwinServer"},fireworks:{adoption:{pypi:["fireworks-ai"],sdks:["@ai-sdk/fireworks"],envStems:["FIREWORKS"]},hosts:[{host:"api.fireworks.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{account:"the vendor’s own account row (one per credential, not creatable through the API)",quota:"vendor-assigned limits (read-only in the API; the twin derives them from the account)",serverlessModel:"the vendor catalog (serverless models are curated by Fireworks, not created by callers)"},resources:["deployment","dataset","batchInferenceJob","supervisedFineTuningJob","user","apiKey","secret","model"],endpointEnvNone:"The injector intercepts api.fireworks.ai (see `hosts`), so a world wires this pack through FIREWORKS_TWIN_URL rather than an app-read base-URL var. The `fireworks` Python client would honour FIREWORKS_BASE_URL, but @ai-sdk/fireworks — the dominant client in this repo’s demand census — takes its baseURL as a constructor option and reads no such env, so an app-read var would cover only half the traffic while disabling the interception that covers all of it.",serveExport:"createFireworksTwinServer"},fly:{adoption:{pypi:[],sdks:["fly-admin"],envStems:["FLY"]},hosts:[{host:"api.machines.dev"},{host:"_api.internal"}],archetype:"engine-control",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["app","machine","volume","secret"],serveExport:"createFlyTwinServer"},gcs:{adoption:{pypi:["google-cloud-storage"],sdks:["@google-cloud/storage"],envStems:["GCS","GOOGLECLOUDSTORAGE"]},hosts:[{host:"storage.googleapis.com"},{suffix:".storage.googleapis.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["bucket","object","upload"],serveExport:"createGcsTwinServer"},gemini:{adoption:{pypi:["google-genai","google-generativeai"],sdks:["@ai-sdk/google","@ai-sdk/google-vertex","@google/genai","@google/generative-ai","@google-cloud/vertexai"],envStems:["GEMINI","GOOGLEGENAI","GOOGLEGENERATIVEAI","GOOGLEGEMINI","GOOGLEVERTEX"],worldIds:["googlegenai","googleauth"]},hosts:[{host:"generativelanguage.googleapis.com"},{host:"aiplatform.googleapis.com"},{suffix:"-aiplatform.googleapis.com"},{key:"googleauth",host:"oauth2.googleapis.com"},{key:"googleauth",host:"www.googleapis.com",pathPattern:"^/(token|oauth2/v4/token)/?$"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["file","cached_content"],serveExport:"createGeminiTwinServer"},github:{adoption:{pypi:["pygithub"],sdks:["@octokit/rest","@octokit/core","octokit","@octokit/auth-app","@octokit/auth-oauth-app","@octokit/auth-oauth-device","@octokit/graphql","@octokit/webhooks"],scopes:["@octokit/"],envStems:["GITHUB","GH","BACKENDGITHUB","INFAPPCONNECTIONGITHUBAPP","INFAPPCONNECTIONGITHUBOAUTH","INFAPPCONNECTIONGITHUBRADARAPP","APPSMITHOAUTH2GITHUB"]},hosts:[{host:"api.github.com"},{host:"uploads.github.com",pathPattern:"^/repos/[^/]+/[^/]+/releases/\\d+/assets$"},{host:"github.com",pathPattern:"^/[^/]+/[^/]+/(info/refs|git-upload-pack|git-receive-pack)$"},{host:"github.com",pathPattern:"^/login/oauth/(authorize|access_token)$"},{host:"github.com",pathPattern:"^/(login|session|sessions/two-factor(/app)?)$"},{host:"github.com",pathPattern:"^/apps/[^/]+/installations/new$"},{host:"github.com",pathPattern:"^/(organizations/[^/]+/)?settings/apps/new$"},{host:"npm.pkg.github.com",pathPattern:"^/@"}],archetype:"engine-control",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["pull_request","pull_request_review","pull_request_review_comment","issue","issue_comment","repository","branch","git_ref"],serveExport:"createGithubTwinServer"},googleads:{adoption:{sdks:["google-ads-api","google-ads-node"],pypi:["google-ads"],envStems:["GOOGLEADS","GOOGLEADSDEVELOPER"]},hosts:[{host:"googleads.googleapis.com"},{host:"datamanager.googleapis.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["customer","customer_client_link","conversion_action","click_conversion","ingest_request"],endpointEnvNone:"no Google Ads client exposes an HTTP base-URL override: google-ads-api builds the host into the request literally, google-ads-python's `endpoint` is a gRPC host:port for its transport channel, and Dub hardcodes the host in a raw fetch. Interception is host-based.",serveExport:"createGoogleAdsTwinServer"},googlecalendar:{adoption:{sdks:["@googleapis/calendar"],pypi:[],envStems:["GOOGLECALENDAR"]},hosts:[{host:"www.googleapis.com",pathPattern:"^/(batch/)?calendar/v3(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["Calendar","CalendarListEntry","Event"],endpointEnvNone:"@googleapis/calendar and googleapis read no base-URL variable: the root URL is the Discovery document's `https://www.googleapis.com/` unless the caller passes `rootUrl` (Inbox Zero reads its own GOOGLE_BASE_URL for that); interception is the host rule above.",serveExport:"createGooglecalendarTwinServer"},googlemaps:{adoption:{pypi:["googlemaps"],sdks:["@googlemaps/google-maps-services-js"],scopes:["@googlemaps/"],envStems:["GOOGLEMAPS"]},hosts:[{host:"maps.googleapis.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["geocode","audit"],serveExport:"createGoogleMapsTwinServer"},googleoauth:{adoption:{pypi:["google-auth","google-auth-oauthlib"],sdks:["google-auth-library","@googleapis/oauth2"],envStems:["GOOGLE","GOOGLEOAUTH","GOOGLEOIDC","AUTHGOOGLE","AUTHGOOGLEOAUTH2","BACKENDGOOGLE","GOOGLEIOS","GOOGLELOGIN","GOOGLEWEB","NEXTPRIVATEGOOGLE","SSOGOOGLEOAUTH2","APPSMITHOAUTH2GOOGLE"]},archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["oauth_client","account","auth_request","authorization_code","access_token","refresh_token","grant"],serveExport:"createGoogleOAuthTwinServer"},groq:{adoption:{pypi:["groq"],sdks:["groq-sdk","@ai-sdk/groq"],envStems:["GROQ"]},hosts:[{host:"api.groq.com"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resourcesUnreachable:{model:"the vendor catalog"},resources:["file","batch","model"],endpointEnvNone:"The injector intercepts api.groq.com (see `hosts`), so a world wires this pack through GROQ_TWIN_URL rather than an app-read base-URL var. groq-sdk would honour GROQ_BASE_URL, but @ai-sdk/groq — the dominant client in this repo's demand census — takes its baseURL as a constructor option and reads no such env, so an app-read var would cover only half the traffic while disabling the interception that covers all of it.",serveExport:"createGroqTwinServer"},hubspot:{adoption:{pypi:["hubspot-api-client"],sdks:["@hubspot/api-client"],envStems:["HUBSPOT","HUBSPOTPRIVATEAPP"]},hosts:[{host:"api.hubapi.com"},{host:"app.hubspot.com"},{host:"api.hsforms.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{owner:"a portal user provisioned in HubSpot's admin, never through the CRM API"},resources:["crm_object","property","property_group","pipeline","association","owner"],endpointEnvNone:"the @hubspot/api-client SDK takes its base URL from the `basePath` CONSTRUCTOR option (IConfiguration.basePath → ApiClientConfigurator.getBaseServer), not from any environment variable — it reads no process.env at all, and HubSpot documents no base-URL env var. Interception is the api.hubapi.com host entry; inventing a HUBSPOT_BASE_URL the app does not read would report a world covered while its traffic still left the machine.",serveExport:"createHubspotTwinServer"},inngest:{adoption:{pypi:["inngest"],sdks:["inngest"],envStems:["INNGEST"]},hostsNone:"SDK is base-URL-configured by design (options.baseUrl / INNGEST_BASE_URL / INNGEST_EVENT_API_BASE_URL, verified in the pack README) — worlds wire the twin through those vars",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["event","function","run","step","signing_key"],endpointEnv:{name:"INNGEST_BASE_URL",templates:{INNGEST_EVENT_API_BASE_URL:"${url}"},note:"no injector entry: the inngest SDK is base-URL-configured through INNGEST_BASE_URL / INNGEST_EVENT_API_BASE_URL."},serveExport:"createInngestTwinServer"},instagram:{adoption:{envStems:["INSTAGRAM"]},hosts:[{host:"graph.facebook.com",pathPattern:"^(?:/v\\d+\\.\\d+)?/(?:me|\\d{1,25})(?:/(?:media|media_publish|content_publishing_limit))?/?$|^/_twin/"},{host:"graph.instagram.com",pathPattern:"^(?:/v\\d+\\.\\d+)?/(?:me|\\d{1,25})(?:/(?:media|media_publish|content_publishing_limit))?/?$|^/_twin/"},{host:"rupload.facebook.com",pathPattern:"^/ig-api-upload/"},{host:"scontent.cdninstagram.com",pathPattern:"^/(?:o1/v/t16/f2/m86/|v/t51\\.(?:71878-15|2885-19)/)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["ig_user","media"],endpointEnvNone:"Meta ships no Instagram Platform client that reads a base-URL environment variable: apps call https://graph.facebook.com/<version>/… and the rupload host by constant, so a World reaches them through the hosts above; inventing an INSTAGRAM_BASE_URL the app never reads would report coverage the app does not have.",serveExport:"createInstagramTwinServer"},intercom:{adoption:{pypi:["python-intercom"],sdks:["intercom-client"],envStems:["INTERCOM"]},hosts:[{host:"api.intercom.io"},{host:"api.eu.intercom.io"},{host:"api.au.intercom.io"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["contact","conversation","message","event","data_attribute","admin","tag","note","company","segment"],serveExport:"createIntercomTwinServer"},jira:{adoption:{pypi:["jira"],sdks:["jira.js"],envStems:["JIRA","ATLASSIAN"]},hosts:[{host:"atlassian.net"},{suffix:".atlassian.net"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{oauthtoken:"issued by Atlassian's OAuth authorization server, outside the REST API"},resources:["person","issue","comment","issuelink","attachment","worklog","watcher","vote","project","component","version","sprint","filter","dashboard","gadget","webhook","oauthtoken"],serveExport:"createJiraTwinServer"},langfuse:{adoption:{pypi:["langfuse"],sdks:["langfuse","langfuse-node"],envStems:["LANGFUSE"]},hosts:[{host:"cloud.langfuse.com"},{host:"us.cloud.langfuse.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["project","api_key","trace","observation","session","score","score_config","prompt","dataset","dataset_item","dataset_run","dataset_run_item","model","comment","annotation_queue","annotation_queue_item","media","llm_connection","ingestion_event"],serveExport:"createLangfuseTwinServer"},linear:{adoption:{pypi:[],sdks:["@linear/sdk"],scopes:["@linear/"],envStems:["LINEAR"]},hosts:[{host:"api.linear.app"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"graphql",resourcesUnreachable:{project:"born of the vendor's projectCreate mutation, which this twin does not model yet — pulled only",cycle:"born of the vendor's cycleCreate mutation, which this twin does not model yet — pulled only",user:"a workspace member, born of an invite flow outside the API",workflowState:"born with the team's workflow; the API reads them"},resources:["issue","team","project","cycle","user","label","workflowState","comment","notification"],serveExport:"createDerivedLinearTwinServer"},linkedin:{adoption:{sdks:["linkedin-api-client"],pypi:["linkedin-api-client"],envStems:["LINKEDIN"]},hosts:[{host:"api.linkedin.com",pathPattern:"^(?:/rest/(?:posts|images|videos|organizationAcls|organizations|organizationsLookup|networkSizes)(?:/[^/]+)?/?|/v2/userinfo/?)$|^/_twin/"},{host:"www.linkedin.com",pathPattern:"^/dms-uploads/"},{host:"media.licdn.com",pathPattern:"^/dms/image/"},{host:"dms.licdn.com",pathPattern:"^/playlist/"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["organization","member","organization_acl","token","post"],endpointEnvNone:"linkedin-api-client takes no base-URL environment variable (its RestliClient builds https://api.linkedin.com/rest URLs from a constant), so a World reaches it through the hosts above; inventing a LINKEDIN_BASE_URL the app never reads would report coverage the app does not have.",serveExport:"createLinkedinTwinServer"},livekit:{adoption:{pypi:["livekit-api","livekit","livekit-agents"],sdks:["livekit-server-sdk","@livekit/rtc-node"],scopes:["@livekit/"],envStems:["LIVEKIT"]},hostsNone:"real local media plane (livekit-server) exposed via app-read env (LIVEKIT_URL is ws:// — WebSocket media is outside the HTTP injector's reach)",archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["room","participant","egress","ingress","sip_inbound_trunk","sip_outbound_trunk","sip_dispatch_rule","sip_participant","agent_dispatch"],serveExport:"createLiveKitTwinServer"},mailgun:{adoption:{pypi:["mailgun"],sdks:["mailgun.js"],envStems:["MAILGUN"]},hosts:[{host:"api.mailgun.net"},{host:"api.eu.mailgun.net"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["domain","message","event","bounce","complaint","unsubscribe","whitelist","webhook","route","mailing_list","list_member","template","template_version","api_key","tag","account"],endpointEnvNone:"the mailgun.js SDK reads no environment variable of its own — verified in the shipped v14.0.0 bundle: `MAILGUN` occurs zero times, and every `process.env` hit belongs to bundled axios (proxy vars) or `debug` (DEBUG). The base URL is the constructor `url` option, so no app-read endpoint env exists to inject; redirection is via the `hosts` injector entries.",serveExport:"createMailgunTwinServer"},mapbox:{adoption:{pypi:["mapbox"],sdks:["@mapbox/mapbox-sdk"],scopes:["@mapbox/"],envStems:["MAPBOX"]},hosts:[{host:"api.mapbox.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["geocode","dataset","dsfeature","style","token","tileset","upload"],serveExport:"createMapboxTwinServer"},mistral:{adoption:{pypi:["mistralai"],sdks:["@mistralai/mistralai","@ai-sdk/mistral"],envStems:["MISTRAL"]},hosts:[{host:"api.mistral.ai"},{host:"api.eu.mistral.ai"},{host:"api.us.mistral.ai"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["file","batch_job","agent","conversation","conversation_entry"],serveExport:"createMistralTwinServer"},mixpanel:{adoption:{pypi:["mixpanel"],sdks:["mixpanel","mixpanel-browser"]},hosts:[{host:"api.mixpanel.com"},{host:"api-eu.mixpanel.com"},{host:"api-in.mixpanel.com"},{host:"api-js.mixpanel.com"},{host:"data.mixpanel.com"},{host:"data-eu.mixpanel.com"},{host:"data-in.mixpanel.com"},{host:"mixpanel.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["event","profile","identity","alias"],serveExport:"createMixpanelTwinServer"},mongodb:{adoption:{pypi:[],sdks:[]},hostsNone:"RAW-PROTOCOL pack — there is no host to map. MongoDB clients speak the wire protocol over a raw TCP socket to whatever host the connection string names, which the injector (http/fetch patching) cannot see; a World reaches this twin through the connection string itself (MONGO_URI and its kin), which World-managed infrastructure injects.",archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"raw-tcp",resources:["collection","index","document"],endpointEnvNone:"no vendor base-URL variable: the application reads its own connection-string variable (MONGO_URI, MONGODB_URL, DATABASE_URL, …), and World-managed infrastructure (`volter-world init` → `volter-world-infra`) injects that variable pointing at this twin's listener.",serveExport:"createMongodbTwinServer"},moonshot:{adoption:{pypi:[],sdks:[],envStems:["MOONSHOT"]},hosts:[{host:"api.moonshot.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{model:"the vendor catalog",balance:"the account ledger the vendor keeps; read-only"},resources:["file","batch","balance","model"],endpointEnvNone:"Moonshot ships no SDK of its own; its documented clients (the standard openai/anthropic SDKs) take their base URL as a constructor option and read no MOONSHOT_BASE_URL env, so an app-read var would cover only env-configured callers while disabling the api.moonshot.ai interception that covers all traffic.",serveExport:"createMoonshotTwinServer"},notion:{adoption:{pypi:["notion-client"],sdks:["@notionhq/client"],scopes:["@notionhq/"],envStems:["NOTION"]},hostsNone:"no injector entry grounded yet — worlds point @notionhq/client at the twin via its baseUrl option; zero-edit interception of api.notion.com is a visible gap until grounded here",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resourcesUnreachable:{user:"a workspace member, born of the workspace admin, read-only through the API"},resources:["page","block","database","comment","user","webhook"],serveExport:"createNotionTwinServer"},"npm-registry":{adoption:{pypi:[],envStems:["NPM"]},hosts:[{host:"registry.npmjs.org"},{host:"npm.pkg.github.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["package","tarball","advisory"],serveExport:"createNpmRegistryTwinServer"},"oa-treasury":{adoption:{pypi:[],envStems:["MODELPROXY","MODELPROXYADMIN","AGENTPROXY","AGENTPROXYADMIN","AGENTPROXYHMAC"]},hosts:[{hostPattern:"^volter-agent-model-proxy\\.[a-z0-9.-]+\\.workers\\.dev$"},{host:"open-autonomy.org"},{host:"www.open-autonomy.org"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["account","supplier","coupon","reserve","run","rail"],serveExport:"createOaTreasuryTwinServer"},openai:{adoption:{pypi:["openai","openai-agents"],sdks:["openai","@ai-sdk/openai"],envStems:["OPENAI","APOPENAI","OPENAIMODERATION","REWORKDPLATFORMOPENAI"]},hosts:[{host:"api.openai.com"},{host:"platform.openai.com",pathPattern:"^/(settings/proj[-_][^/]+/api-keys|login$)"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["file","batch","fine_tuning_job","vector_store","vector_store_file","response","chat_completion"],serveExport:"createOpenAITwinServer"},openrouter:{adoption:{pypi:["openrouter"],sdks:["@openrouter/ai-sdk-provider"],scopes:["@openrouter/"],envStems:["OPENROUTER","OR"]},hosts:[{host:"openrouter.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["generation","api_key","byok","preset"],serveExport:"createOpenRouterTwinServer"},openweather:{adoption:{pypi:["pyowm"],sdks:["openweather-api-node"],envStems:["OPENWEATHER","OPENWEATHERMAP"]},hosts:[{host:"api.openweathermap.org"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["observation","audit"],serveExport:"createOpenWeatherTwinServer"},paypal:{adoption:{sdks:["paypal-rest-sdk"],pypi:["paypalrestsdk"],envStems:["PAYPAL"]},hosts:[{host:"api.paypal.com",pathPattern:"^/v1/(?:oauth2/token/?$|identity/openidconnect/|payments/payouts(?:-item)?(?:/|$)|notifications/)|^/_twin/"},{host:"api-m.paypal.com",pathPattern:"^/v1/(?:oauth2/token/?$|identity/openidconnect/|payments/payouts(?:-item)?(?:/|$)|notifications/)|^/_twin/"},{host:"api.sandbox.paypal.com",pathPattern:"^/v1/(?:oauth2/token/?$|identity/openidconnect/|payments/payouts(?:-item)?(?:/|$)|notifications/)|^/_twin/"},{host:"api-m.sandbox.paypal.com",pathPattern:"^/v1/(?:oauth2/token/?$|identity/openidconnect/|payments/payouts(?:-item)?(?:/|$)|notifications/)|^/_twin/"},{host:"www.paypal.com",pathPattern:"^/signin/authorize/?$|^/connect/?$|^/webapps/auth/protocol/openidconnect/|^/_twin/"},{host:"www.sandbox.paypal.com",pathPattern:"^/signin/authorize/?$|^/connect/?$|^/webapps/auth/protocol/openidconnect/|^/_twin/"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["oauth_client","account","session","auth_request","authorization_code","access_token","refresh_token","payout_batch","payout_item","webhook","webhook_event"],endpointEnvNone:"no PayPal client reads a base-URL env var — paypal-rest-sdk takes mode: sandbox|live, the current @paypal server SDK takes an Environment enum, and the motivating app computes its host from NODE_ENV — so interception is the host entries above.",serveExport:"createPaypalTwinServer"},perplexity:{adoption:{pypi:["perplexityai"],sdks:["@ai-sdk/perplexity"],envStems:["PERPLEXITY"]},hosts:[{host:"api.perplexity.ai"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["async_request"],endpointEnvNone:"@ai-sdk/perplexity — the dominant client in the 2026-08-31-b demand census — takes its baseURL as a constructor option and reads NO base-URL environment variable (perplexity-provider.ts: `withoutTrailingSlash(options.baseURL ?? 'https://api.perplexity.ai')`, and `loadApiKey` reads only PERPLEXITY_API_KEY). Perplexity documents no base-URL env var for any client, so there is nothing to inject; a fabricated PERPLEXITY_BASE_URL would let `covers` call a world covered while the app kept calling api.perplexity.ai. The injector intercepts that host (see `hosts`) instead.",serveExport:"createPerplexityTwinServer"},pinecone:{adoption:{pypi:["pinecone","pinecone-client"],sdks:["@pinecone-database/pinecone"],scopes:["@pinecone-database/"],envStems:["PINECONE"]},hostsNone:"control/data host split with per-index data-plane hostnames ({index}-{project}.svc.{env}.pinecone.io, see the pack README) — SDK is pointed at the twin by explicit host config",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["index","collection","vector"],serveExport:"createPineconeTwinServer"},plain:{adoption:{pypi:[],sdks:["@team-plain/typescript-sdk"],scopes:["@team-plain/"],envStems:["PLAIN","NEXTPRIVATEPLAIN"]},hosts:[{host:"core-api.uk.plain.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"graphql",resourcesUnreachable:{company:"born of the vendor's createCompany mutation, which this twin does not model (no manifest entry) — pulled only",customerGroup:"born of createCustomerGroup, filed as todo plain.customergroups.op_create — pulled only",customerGroupMembership:"born of addCustomerToCustomerGroups over a group the twin cannot create yet — pulled only",workspace:"the tenant itself",user:"a workspace member, born of an invite",machineUser:"born in the workspace settings UI"},resources:["workspace","user","machineUser","customer","company","tenant","customerGroup","customerGroupMembership","thread","label","labelType","threadField","timelineEntry","note","customerEvent","webhookTarget","attachment"],serveExport:"createPlainTwinServer"},planetscale:{adoption:{pypi:[],sdks:["@planetscale/database"],envStems:["PLANETSCALE"]},hosts:[{suffix:".psdb.cloud"},{host:"api.planetscale.com",pathPattern:"^/v1/organizations(/|$)"},{host:"app.planetscale.com",pathPattern:"^/(sign-in|[^/]+/settings/service-tokens)(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",nativeTransport:{protocol:"mysql",flag:"--mysql",upstreamEnv:"PLANETSCALE_TWIN_URL"},resources:["table","row","_session","_backup"],endpointEnv:{name:"PLANETSCALE_TWIN_URL",templates:{PLANETSCALE_DATABASE_URL:"http://twin:twin@${host}:${port}"},note:"the @planetscale/database client reads PLANETSCALE_DATABASE_URL and honours http:; the injector also redirects *.psdb.cloud."},prismaAdapter:{adapter:"@prisma/adapter-planetscale",export:"PrismaPlanetScale",urlEnv:"PLANETSCALE_DATABASE_URL"},serveExport:"createPlanetscaleTwinServer"},polar:{adoption:{pypi:["polar-sdk"],sdks:["@polar-sh/sdk"],scopes:["@polar-sh/"],envStems:["POLAR"]},hosts:[{host:"api.polar.sh"},{host:"sandbox-api.polar.sh"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["customer","product","subscription","order","checkout","benefit","discount","meter","event","customer_session","webhook_endpoint"],serveExport:"createPolarTwinServer"},posthog:{adoption:{pypi:["posthog"],sdks:["posthog-node","posthog-js","@posthog/api-client","@posthog/react"],envStems:["POSTHOG","POSTHOGANALYTICS","POSTHOGPERSONAL","POSTHOGPROJECT","POSTHOGPUBLIC"]},hosts:[{host:"app.posthog.com"},{host:"us.posthog.com"},{host:"eu.posthog.com"},{suffix:".i.posthog.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["project","event","person","feature_flag","insight","cohort","experiment","annotation","dashboard","action","group","org_member","early_access_feature","event_definition","property_definition"],serveExport:"createPosthogTwinServer"},postmark:{adoption:{pypi:["postmarker"],sdks:["postmark"],envStems:["POSTMARK"]},hosts:[{host:"api.postmarkapp.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["message","bounce","template","message_stream","webhook","suppression","server","domain","sender_signature","inbound_rule"],serveExport:"createPostmarkTwinServer"},reddit:{adoption:{sdks:["snoowrap"],pypi:[],envStems:["REDDIT"]},hosts:[{host:"oauth.reddit.com",pathPattern:"^/(?:api/v1/me|api/submit|api/del|api/comment|api/info|api/media/asset|by_id/[^/]+|r/[^/]+/(?:about|new|api/info)|user/[^/]+/(?:about|submitted)|subreddits/mine/(?:moderator|contributor)|(?:r/[^/]+/)?comments/[a-z0-9]+(?:/[^/]*)?)(?:\\.json)?/?$|^/_twin/"},{host:"www.reddit.com",pathPattern:"^/api/v1/access_token$"},{host:"reddit-uploaded-media.s3-accelerate.amazonaws.com"},{host:"v.redd.it",pathPattern:"^/[a-z0-9]{13}/DASH_\\d{2,4}\\.mp4$"},{host:"preview.redd.it",pathPattern:"^/[a-z0-9]{13}\\.(?:png|jpg|gif)$"},{host:"i.redd.it",pathPattern:"^/[a-z0-9]{13}\\.(?:png|jpg|gif)$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["user","subreddit","link","comment"],endpointEnvNone:"reddit clients take no base-URL environment variable (snoowrap and PRAW build https://oauth.reddit.com and https://www.reddit.com URLs from constants or explicit constructor options), so a World reaches them through the hosts above; inventing a REDDIT_BASE_URL the app never reads would report coverage the app does not have.",serveExport:"createRedditTwinServer"},redis:{adoption:{},hostsNone:"RAW-PROTOCOL pack — there is no host to map. Redis's protocol runs over a TCP socket the injector (which patches http/fetch) never sees, and a Redis has no vendor hostname: it is wherever the app's REDIS_URL points. The World points it here: init classifies REDIS_URL as managed infrastructure and the managed redis service is this twin.",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"raw-tcp",resources:["key","field","member","scored","entry","script"],endpointEnvNone:"Redis clients read no base-URL env of their own: the app passes its REDIS_URL (or host/port) to ioredis or node-redis itself, and init emits that REDIS_URL for the managed redis service (world-runtime/src/init.ts), not as a twin endpoint env.",serveExport:"createRedisTwinServer"},replicate:{adoption:{pypi:["replicate"],sdks:["replicate","@ai-sdk/replicate"],envStems:["REPLICATE","REWORKDPLATFORMREPLICATE"]},hostsNone:"no injector entry grounded yet — worlds wire the twin via the SDK's explicit baseUrl config; zero-edit interception of api.replicate.com is a visible gap until its hosts are grounded here",archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resourcesUnreachable:{model_version:"born of `cog push`, never of the HTTP API; pulled"},resources:["prediction","model","model_version","webhook_secret"],serveExport:"createReplicateTwinServer"},resend:{adoption:{pypi:["resend"],sdks:["resend"],envStems:["RESEND","NEXTPRIVATERESEND"]},hosts:[{host:"api.resend.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["email","audience","contact","domain","api_key"],serveExport:"createResendTwinServer"},runhuman:{adoption:{sdks:["runhuman"]},hosts:[{host:"runhuman.com",pathPattern:"^/api/"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["organization","project","api_key","user","tester_profile","job","pipeline_run"],endpointEnv:{name:"RUNHUMAN_API_URL",note:"grounded in volter-ai/runhuman packages/cli/src/lib/config.ts, which overrides the CLI apiUrl from RUNHUMAN_API_URL; RH2 reads its human-marketplace base URL from the provider row spec.url instead, which a rehearsal World sets to this same twin URL."},serveExport:"createRunhumanTwinServer"},scrapecreators:{adoption:{pypi:[],sdks:["@scrapecreators/cli"],envStems:["SCRAPECREATORS"]},hosts:[{host:"api.scrapecreators.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["profile","content","cache","account","usage"],serveExport:"createScrapeCreatorsTwinServer"},segment:{adoption:{pypi:["segment-analytics-python","analytics-python"],sdks:["@segment/analytics-node"],envStems:["SEGMENT"]},hosts:[{host:"api.segment.io"},{host:"events.eu1.segmentapis.com"},{host:"oauth2.segment.io"},{host:"oauth2.eu1.segmentapis.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["event","identity","group","dropped"],serveExport:"createSegmentTwinServer"},sendblue:{adoption:{pypi:["sendblue"],sdks:["sendblue"],envStems:["SENDBLUE"]},hostsNone:"no injector entry grounded yet — worlds wire the twin via explicit client endpoint config; a visible gap until its host is grounded here",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["message","credential"],serveExport:"createSendblueTwinServer"},sendgrid:{adoption:{pypi:["sendgrid"],sdks:["@sendgrid/mail","@sendgrid/client"],envStems:["SENDGRID","SENDGRIDSYNC"]},hosts:[{host:"api.sendgrid.com"},{host:"api.eu.sendgrid.com"},{host:"email.twilio.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["message"],serveExport:"createSendgridTwinServer"},sentry:{adoption:{pypi:["sentry-sdk"],sdks:["@sentry/node","@sentry/browser","@sentry/react","@sentry/nextjs","@sentry/vue","@sentry/sveltekit","@sentry/astro","@sentry/remix","@sentry/electron","@sentry/react-native"],scopes:["@sentry/"],envStems:["SENTRY","APPSMITHSENTRY"]},hosts:[{host:"sentry.io"},{suffix:".ingest.sentry.io"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["organization","team","project","project_key","issue","event","event_attachment","session","project_ownership","codeowners","project_filter","release","release_file","deploy","alert_rule","metric_alert","org_integration"],serveExport:"createSentryTwinServer"},slack:{adoption:{worldIds:["slackapp"],pypi:["slack-sdk","slack-bolt","slackclient"],sdks:["@slack/web-api","@slack/bolt","@slack/webhook","@slack/oauth"],scopes:["@slack/"],envStems:["SLACK","SLACKBOTUSER"]},hosts:[{key:"slackapp",host:"slack.com",pathPattern:"^/api/apps\\.connections\\.open/?$"},{host:"slack.com"},{host:"www.slack.com"},{host:"api.slack.com"},{host:"hooks.slack.com",pathPattern:"^/services/"},{host:"avatars.slack-edge.com",pathPattern:"^/T[A-Za-z0-9-]+/(([UWA][A-Za-z0-9-]+|icon)_[0-9]{1,4}\\.png|[UW][A-Za-z0-9-]+-[0-9a-f]{12}_([0-9]{1,4}|original)\\.(png|gif))$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"web-api",resources:["channel","user","message","file","audit"],serveExport:"createSlackTwinServer"},smtp:{adoption:{pypi:["aiosmtplib"],sdks:["nodemailer","nodemailer-smtp-transport","emailjs"],envStems:["NEXTPRIVATESMTP"]},hostsNone:"RAW-PROTOCOL pack — there is no host to map. SMTP is a line protocol over a raw TCP socket, so the injector (which patches http/fetch) cannot see the traffic at all, and there is no vendor hostname either: the relay is whatever the operator names (smtp.gmail.com, email-smtp.us-east-1.amazonaws.com, localhost:1025 …). Interception is app-read env instead — the world injects SMTP_HOST/SMTP_PORT + EMAIL_SERVER/EMAIL_SERVER_HOST/EMAIL_SERVER_PORT at the twin's listener (APP_READ_ENDPOINT_ENV in world-runtime/src/init.ts), which is the ONLY thing every SMTP client is configured with. Same class as livekit's ws:// media plane, one layer further down.",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"raw-tcp",resources:["message","relay"],serveExport:"createSmtpTwinServer"},snowflake:{adoption:{pypi:["snowflake-connector-python","snowflake","snowflake-snowpark-python","snowflake-sqlalchemy"],sdks:["snowflake-sdk"],envStems:["SNOWFLAKE"]},hosts:[{suffix:".snowflakecomputing.com"},{suffix:".snowflakecomputing.cn"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["database","schema","table","view","warehouse","session","query"],endpointEnvNone:"the snowflake-sdk takes its endpoint through createConnection()'s own account/host/accessUrl/protocol/port options or a connections.toml under SNOWFLAKE_HOME; it reads NO base-URL environment variable (verified against the packed snowflake-sdk@3.2.0 tarball, whose lib/ reads SNOWFLAKE_HOME, SNOWFLAKE_DEFAULT_CONNECTION_NAME, the SNOWFLAKE_DISABLE_*/SNOWFLAKE_CRL_*/SNOWFLAKE_RUNNING_INSIDE_SPCS switches, the SF_OCSP_*/SF_TELEMETRY_*/SF_CLIENT_CONFIG_FILE/SF_TEMPORARY_CREDENTIAL_CACHE_DIR debug and cache switches, the standard http_proxy family, and some non-Snowflake names like AWS_REGION/HOME - no base-URL variable of any kind). Interception is host-based via the .snowflakecomputing.com and .snowflakecomputing.cn suffix entries; a SNOWFLAKE_BASE_URL would be a var no app reads.",serveExport:"createSnowflakeTwinServer"},stigg:{adoption:{sdks:["@stigg/node-server-sdk","@stigg/react-sdk","@stigg/js-client-sdk","@stigg/api-client-js"],pypi:["stigg-api-client","stigg"],scopes:["@stigg/"],envStems:["STIGG","STIGGCLIENT"]},hosts:[{host:"api.stigg.io"},{host:"edge.api.stigg.io"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"graphql",resources:["product","plan","feature","packageEntitlement","price","customer","subscription","usageMeasurement","promotionalEntitlement","coupon","integration","hook"],endpointEnvNone:"the Stigg SDKs take their base URL as a constructor option (Stigg.initialize({ baseUri, baseEdgeUri })) and read NO env var for it. Verified by grep for process.env across the SDK dists: @stigg/node-server-sdk 4.55.0 (the version this pack pins and installs) and, in the consumer tree that motivated the pack, @stigg/node-server-sdk 4.2.0 and @stigg/js-client-sdk 3.67.0 — every one of them references only process.env.NODE_ENV. (The browser SDKs are NOT installed in this repo; that half of the evidence comes from ~/Code/Ponder and is therefore not re-checkable here, which is why both trees are named rather than one. §9 round 1 flagged the original citation for naming versions this repo does not carry.) Interception is by the api.stigg.io / edge.api.stigg.io host entries above.",serveExport:"createStiggTwinServer"},stream:{adoption:{pypi:["stream-chat"],sdks:["stream-chat"],envStems:["STREAM","GETSTREAM"]},hosts:[{host:"chat.stream-io-api.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["user","channel","message","channeltype","device","ban","mute","flag"],serveExport:"createStreamTwinServer"},stripe:{adoption:{pypi:["stripe"],sdks:["stripe"],envStems:["STRIPE","NEXTPRIVATESTRIPE"]},hosts:[{host:"api.stripe.com"},{host:"checkout.stripe.com",pathPattern:"^/c/pay/"},{host:"billing.stripe.com",pathPattern:"^/p/session/"},{host:"connect.stripe.com",pathPattern:"^/setup/|^/oauth/(authorize|token|deauthorize)/?$"},{host:"dashboard.stripe.com",pathPattern:"^/settings/public/?$|^/(test/)?settings/connect(/onboarding-options/oauth)?/?$"},{host:"verify.stripe.com",pathPattern:"^/start/"},{host:"js.stripe.com",pathPattern:"^/v3/financial-connections/|^/v3/?$|^/(v3|[a-z]+)/stripe\\.js$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["charge","customer","payment_intent","setup_intent","payment_method","subscription","price","product","invoice","invoiceitem","refund","event"],serveExport:"createStripeTwinServer"},supabase:{adoption:{pypi:["supabase","gotrue","supabase-auth","postgrest","storage3","supafunc","realtime"],sdks:["@supabase/supabase-js"],scopes:["@supabase/"],envStems:["SUPABASE"],worldIds:["supabasemgmt"]},hostsNone:"dual-plane by design: the data plane is the REAL local Supabase stack (external service, app reads discovered SUPABASE_URL); the management twin is app-read via SUPABASE_MGMT_TWIN_URL (cookbook/saas-ai-supabase/app.mjs) — no fixed-host interception wired",archetype:"engine-control",protocol:{major:1,standing:"deprecated"},transport:"rest",resourcesUnreachable:{access_token:"a personal access token minted in the dashboard; the twin only reads it as seeded state",network_ban:"born of the vendor's abuse detector",backup:"born of the vendor's scheduler"},resources:["organization","org_member","access_token","project","branch","config","secret","function","network_restrictions","network_ban","custom_hostname","read_replica","backup"],serveExport:"createSupabaseTwinServer"},supermemory:{adoption:{pypi:["supermemory"],sdks:["supermemory"],envStems:["SUPERMEMORY"]},hosts:[{host:"api.supermemory.ai"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["document","setting"],serveExport:"createSupermemoryTwinServer"},svix:{adoption:{pypi:["svix"],sdks:["svix"],envStems:["SVIX"]},hosts:[{host:"api.svix.com"},{host:"api.us.svix.com"},{host:"api.eu.svix.com"},{host:"api.in.svix.com"},{host:"api.ca.svix.com"},{host:"api.au.svix.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["application","endpoint","message","message_attempt","event_type"],serveExport:"createSvixTwinServer"},tavily:{adoption:{sdks:["@tavily/core"],pypi:["tavily-python"],envStems:["TAVILY"]},hosts:[{host:"api.tavily.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["page","usage","log","research","keyless"],endpointEnvNone:"the @tavily/core SDK exposes no base-URL env var — it reads only TAVILY_API_KEY/TAVILY_HTTP(S)_PROXY/TAVILY_ORG_ID/TAVILY_PROJECT from process.env; base-URL override is the constructor option apiBaseURL (dist/index.mjs post()/get(): `apiBaseURL || BASE_URL`), so interception is the hosts entry above.",serveExport:"createTavilyTwinServer"},temporal:{adoption:{sdks:["@temporalio/client","@temporalio/worker","@temporalio/workflow","@temporalio/activity"],scopes:["@temporalio/"],pypi:["temporalio"],envStems:["TEMPORAL"]},hostsNone:"RAW-PROTOCOL pack — there is no host to map. The Temporal SDKs dial the frontend address they are configured with (Connection.connect / NativeConnection.connect `address`, conventionally TEMPORAL_ADDRESS) over gRPC, which the http/fetch injector never sees. Interception is the app-read address: the World injects TEMPORAL_ADDRESS=<host>:<port> at this twin (APP_READ_ENDPOINT_ENV in world-runtime/src/init.ts).",archetype:"engine-control",protocol:{declared:"2",major:2,standing:"current"},transport:"raw-tcp",resources:["workflow-execution","namespace"],serveExport:"createTemporalTwinServer"},tiktok:{adoption:{sdks:[],pypi:[],envStems:["TIKTOK"]},hosts:[{host:"www.tiktok.com",pathPattern:"^/v2/auth/authorize/?$|^/_twin/"},{host:"open.tiktokapis.com",pathPattern:"^/v2/(?:oauth/(?:token|revoke)|user/info|video/(?:list|query)|post/publish/(?:creator_info/query|video/init|inbox/video/init|status/fetch))/?$|^/_twin/"},{host:"open-upload.tiktokapis.com",pathPattern:"^/video/?$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["oauth_client","account","session","auth_request","grant","video","publish"],endpointEnvNone:"no app-read base-URL env exists: TikTok publishes no official SDK with a base-URL option and integrations (Dub included) hardcode www.tiktok.com and open.tiktokapis.com, so interception is the path-scoped hosts entries above.",serveExport:"createTikTokTwinServer"},tinybird:{adoption:{pypi:["tinybird-python-sdk","tinybird-cli"],sdks:["@chronark/zod-bird"],scopes:["@chronark/zod-bird"],envStems:["TINYBIRD"]},hosts:[{host:"api.tinybird.co"},{hostPattern:"^api\\.[a-z0-9.-]+\\.tinybird\\.co$"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["datasource","pipe","event","token","job","tag"],serveExport:"createTinybirdTwinServer"},togetherai:{adoption:{sdks:["together-ai"],envStems:["TOGETHER"]},hosts:[{host:"api.together.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{model:"the vendor catalog"},resources:["file","batch","finetune","model"],endpointEnv:{name:"TOGETHER_TWIN_URL",templates:{TOGETHER_API_BASE_URL:"${url}/v1"},note:"the injector covers api.together.ai, but together-ai's files.upload() reads TOGETHER_API_BASE_URL at module load and ignores client.baseURL (lib/upload.js:12) — the template points it at the twin's /v1 so the SDK upload flow does not egress to the real vendor."},serveExport:"createTogetheraiTwinServer"},tremendous:{adoption:{pypi:[],sdks:["tremendous"],envStems:["TREMENDOUS"]},hosts:[{host:"api.tremendous.com"},{host:"testflight.tremendous.com"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["order","reward","campaign","product","funding_source","invoice","topup","balance_txn","member","field","webhook","organization","settings"],serveExport:"createTremendousTwinServer"},tunnel:{adoption:{pypi:[],sdks:["@volter/tunnel"],envStems:["TUNNEL","VOLTERTUNNEL"]},hostsNone:"no injector entry by design: native cloudflared is an external binary, while @volter/tunnel opens a configurable WebSocket control channel and the CLI reads TUNNEL_SERVER_URL. Worlds wire that app-read endpoint directly; claiming api.trycloudflare.com in the Node injector would not redirect cloudflared and would falsely imply the Cloudflare edge data plane was twinned",archetype:"proxy",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["quick_tunnel","relay_tunnel","relay"],serveExport:"createTunnelTwinServer"},turbopuffer:{adoption:{sdks:["@turbopuffer/turbopuffer"],pypi:["turbopuffer"],scopes:["@turbopuffer/"],envStems:["TURBOPUFFER"]},hosts:[{hostPattern:"^(?:aws|gcp|azure)-[a-z0-9-]+\\.turbopuffer\\.com$"},{host:"turbopuffer.com",pathPattern:"^/(login|dashboard|_twin/users)(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["namespace","document"],endpointEnv:{name:"TURBOPUFFER_TWIN_URL",templates:{TURBOPUFFER_BASE_URL:"${url}/{region}"},note:"grounded in @turbopuffer/turbopuffer@2.8.0 src/client.ts:253-288 (TURBOPUFFER_BASE_URL, {region} placeholder substitution) and internal/custom/fetch-node.ts (undici Agent.request under node, outside the injector); the injector also claims the regional *.turbopuffer.com hosts for fetch-based runtimes."},serveExport:"createTurbopufferTwinServer"},twelvelabs:{adoption:{pypi:["twelvelabs"],sdks:["twelvelabs-js"],envStems:["TWELVELABS"]},hosts:[{host:"api.twelvelabs.io"}],archetype:"generative",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["index","task","video"],serveExport:"createTwelvelabsTwinServer"},twilio:{adoption:{pypi:["twilio"],sdks:["twilio"],envStems:["TWILIO"]},hostsNone:"no injector entry grounded yet — worlds point the twilio SDK at the twin via explicit client config; zero-edit interception of the three real Twilio hosts (pack README §Coverage) is a visible gap until grounded here",archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["message","verification","phone_number","signing_key"],serveExport:"createTwilioTwinServer"},upstash:{adoption:{pypi:["upstash-redis","upstash-ratelimit","qstash","upstash-workflow"],sdks:["@upstash/redis","@upstash/ratelimit","@upstash/qstash","@upstash/workflow"],scopes:["@upstash/redis","@upstash/ratelimit","@upstash/qstash","@upstash/workflow"],envStems:["UPSTASHREDIS","KVREST","QSTASH"]},hosts:[{suffix:".upstash.io"},{suffix:"-vector.upstash.io",exclude:!0},{host:"api.upstash.com",pathPattern:"^/v2/(redis|team|teams)(/|$)"},{host:"console.upstash.com",pathPattern:"^/(login|account/(api|teams)|qstash|invite)(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["key"],endpointEnv:{name:"UPSTASH_TWIN_URL",templates:{QSTASH_URL:"${url}"},note:"@upstash/qstash and @upstash/workflow read QSTASH_URL; the injector also redirects *.upstash.io (Redis databases, QStash) to this twin."},serveExport:"createUpstashRedisTwinServer"},upstashvector:{adoption:{pypi:["upstash-vector"],sdks:["@upstash/vector"],scopes:["@upstash/vector"],envStems:["UPSTASHVECTOR"]},hosts:[{suffix:"-vector.upstash.io"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["vector","namespace","config"],serveExport:"createUpstashVectorTwinServer"},vercel:{adoption:{pypi:["vercel"],sdks:["@vercel/sdk","@vercel/edge-config"],envStems:["VERCEL"]},hosts:[{host:"api.vercel.com"},{host:"edge-config.vercel.com"},{host:"avatar.vercel.sh"},{host:"vercel.com",pathPattern:"^/(login|account/tokens)(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["team","project","project_domain","domain","dns_record","env_var","edge_config","deployment","alias","auth_token"],serveExport:"createVercelTwinServer"},veriff:{adoption:{pypi:[],sdks:["@veriff/js-sdk"],scopes:["@veriff/"],envStems:["VERIFF"]},hosts:[{host:"stationapi.veriff.com"},{host:"api.veriff.me"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["session","attempt","media","delivery"],serveExport:"createVeriffTwinServer"},vital:{adoption:{pypi:["vital"],sdks:["@tryvital/vital-node"],scopes:["@tryvital/"],envStems:["VITAL"]},hosts:[{host:"api.tryvital.io"},{host:"api.sandbox.tryvital.io"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["user","order","appointment","webhook"],serveExport:"createVitalTwinServer"},volteridentity:{adoption:{sdks:["@volter/identity"],pypi:[],envStems:[]},hosts:[{host:"id.volter.ai"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["person","session","oauth_client","oauth_resource","client_resource","consent","authorization_code","access_token","refresh_token","device_code","organization","member","invitation"],endpointEnv:{name:"VOLTER_ISSUER",note:'grounded in the consumers: browser-substrate services/gateway/cloudflare/volter.ts (`VOLTER_ISSUER`, "the identity service, https://id.volter.ai") discovers the issuer from it, and Volter Teams is configured with `VOLTER_ISSUER` (volter-ai/identity ROADMAP I4); the twin is its own issuer, so discovery, tokens and redirects all name the injected URL.'},serveExport:"createVolterIdentityTwinServer"},webrisk:{adoption:{pypi:["google-cloud-webrisk"],sdks:["@google-cloud/web-risk"],envStems:["WEBRISK"]},hosts:[{host:"webrisk.googleapis.com"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["verdict","submission","operation","audit","iam_policy"],serveExport:"createWebRiskTwinServer"},x:{adoption:{pypi:["tweepy"],sdks:["twitter-api-v2"]},hosts:[{host:"api.x.com",pathPattern:"^(?:/2/media/upload/?|/2/media/upload/initialize/?|/2/media/upload/[0-9]+/(?:append|finalize)/?|/2/tweets/?|/2/tweets/[^/]+/?|/2/tweets/search/recent/?|/2/users/(?!me/?$)[^/]+/?|/2/users/by/username/[^/]+/?|/2/users/[^/]+/mentions/?|/2/users/[^/]+/tweets/?|/2/users/[^/]+/timelines/reverse_chronological/?)$|^/_twin/(?!assets/consent\\.(?:js|css)$)"},{host:"api.twitter.com",pathPattern:"^(?:/2/media/upload/?|/2/media/upload/initialize/?|/2/media/upload/[0-9]+/(?:append|finalize)/?|/2/tweets/?|/2/tweets/[^/]+/?|/2/tweets/search/recent/?|/2/users/(?!me/?$)[^/]+/?|/2/users/by/username/[^/]+/?|/2/users/[^/]+/mentions/?|/2/users/[^/]+/tweets/?|/2/users/[^/]+/timelines/reverse_chronological/?)$|^/_twin/(?!assets/consent\\.(?:js|css)$)"},{host:"x.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"twitter.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"www.x.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"www.twitter.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"mobile.twitter.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"mobile.x.com",pathPattern:"^/(?!_twin/)[A-Za-z0-9_]{1,15}/status/[0-9]{1,19}/?$|^/(?!(?:i|en|home|explore|notifications|messages|settings|search|compose|login|logout|signup|tos|privacy|about|account|intent|share|hashtag|lists|bookmarks|jobs|download|grok|premium|communities|creators|twin|_twin)/?$)[A-Za-z0-9_]{1,15}/?$"},{host:"pbs.twimg.com",pathPattern:"^/media/[0-9a-f]{64}\\.(?:jpg|png|gif|webp)$|^/ext_tw_video_thumb/[0-9]{1,19}/pu/img/[0-9a-f]{64}\\.svg$"},{host:"video.twimg.com",pathPattern:"^/ext_tw_video/[0-9]{1,19}/pu/vid/avc1/[0-9]+x[0-9]+/[0-9a-f]{64}\\.mp4$"},{host:"abs.twimg.com",pathPattern:"^/sticky/default_profile_images/default_profile_(?:normal|bigger|200x200|400x400)\\.png$"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["account","token","post","follow","rate_limit"],serveExport:"createXTwinServer"},xai:{adoption:{pypi:["xai-sdk"],sdks:["@ai-sdk/xai"],envStems:["XAI","GROK"]},hosts:[{host:"api.x.ai"}],archetype:"generative",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resourcesUnreachable:{language_model:"the vendor catalog",model:"the vendor catalog"},resources:["deferred_completion","language_model","model","oauth_account","oauth_device_authorization","oauth_usage"],serveExport:"createXaiTwinServer"},xidentity:{adoption:{pypi:[],sdks:["@xdevplatform/xdk","twitter-api-sdk"],scopes:["@xdevplatform/"],envStems:["X","TWITTER"]},hosts:[{host:"x.com",pathPattern:"^/i/oauth2/authorize/?$|^/_twin/"},{host:"twitter.com",pathPattern:"^/i/oauth2/authorize/?$|^/_twin/"},{host:"api.x.com",pathPattern:"^/2/(?:oauth2/(?:token|revoke)|users/me)/?$|^/oauth/(?:request_token|authorize|authenticate|access_token)/?$|^/1\\.1/oauth/invalidate_token(?:\\.json)?/?$|^/_twin/assets/consent\\.(?:js|css)$"},{host:"api.twitter.com",pathPattern:"^/2/(?:oauth2/(?:token|revoke)|users/me)/?$|^/oauth/(?:request_token|authorize|authenticate|access_token)/?$|^/1\\.1/oauth/invalidate_token(?:\\.json)?/?$|^/_twin/assets/consent\\.(?:js|css)$"}],archetype:"crud",protocol:{major:1,standing:"deprecated"},transport:"rest",resources:["oauth_client","account","session","auth_request","authorization_code","access_token","refresh_token","grant","rate_window","oauth1_app","oauth1_request_token","oauth1_token","oauth1_grant"],serveExport:"createXIdentityTwinServer"},youtube:{adoption:{pypi:[],sdks:["@googleapis/youtube"],envStems:["YOUTUBE"]},hosts:[{host:"youtube.googleapis.com"},{host:"www.googleapis.com",pathPattern:"^/(upload/)?youtube/v3(/|$)"}],archetype:"crud",protocol:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["channel","video","playlist","playlistItem"],serveExport:"createYouTubeTwinServer"}},undeclared:[]}});var Ng=N6((hQ0,qg)=>{var pt=($)=>typeof $==="string"&&(/^\/(o\/oauth2\/v2\/auth(\/oauthchooseaccount)?|o\/oauth2\/auth|o\/oauth2\/token|signin\/oauth\/error|\.well-known\/openid-configuration)\/?$/.test($)||/^\/_twin\//.test($)),ct=($)=>typeof $==="string"&&/^\/(token|oauth2\/v4\/token|revoke|tokeninfo|device\/code)\/?$/.test($),lt=($)=>typeof $==="string"&&/^\/(oauth2\/(v1\/certs|v3\/(certs|userinfo)|v2\/userinfo)|userinfo\/v2\/me)\/?$/.test($),_Y={googleoauth:($,I)=>$==="accounts.google.com"&&(I===void 0||pt(I))||$==="oauth2.googleapis.com"&&(I===void 0||ct(I))||$==="www.googleapis.com"&&(I===void 0||lt(I))||$==="openidconnect.googleapis.com",googlefavicon:($)=>$==="www.google.com"||$==="google.com"||$==="t2.gstatic.com",browserassets:($)=>$==="cdnjs.cloudflare.com"||$==="www.googletagmanager.com"||$==="www.google-analytics.com"||$==="connect.facebook.net"||$==="snap.licdn.com"||$==="px.ads.linkedin.com"||$==="static.hotjar.com"||$==="fonts.googleapis.com"||$==="fonts.gstatic.com"||$==="api.fontshare.com"||$==="images.subscribe.dev"||$==="www.youtube.com"||$==="www.youtube-nocookie.com"||$==="i.ytimg.com"};{let{packs:$}=Cg();for(let I of Object.keys($)){let G=$[I].hosts;if(!G||G.length===0)continue;if(_Y[I])throw Error(`inject: vendor "${I}" declares hosts on its pack descriptor AND in the hand VENDOR_HOSTS table — one home per fact; delete the hand entry.`);let Z=new Map;for(let _ of G){let J=_.key===void 0?I:_.key;if(!Z.has(J))Z.set(J,[]);Z.get(J).push(_)}for(let[_,J]of Z){if(_Y[_])throw Error(`inject: key "${_}" (pack ${I}) is declared twice — on this descriptor and in the hand VENDOR_HOSTS table or another pack's descriptor; a key has one home.`);let Y=(M)=>{if(["host","suffix","hostPattern"].filter((N)=>M[N]!==void 0).length!==1)throw Error(`inject: key "${_}" (pack ${I}) rule ${JSON.stringify(M)} — exactly one of host | suffix | hostPattern (pack-facts.json is hand-edited or stale)`);let T=M.hostPattern===void 0?null:new RegExp(M.hostPattern),S=M.pathPattern===void 0?null:new RegExp(M.pathPattern);return(N,B)=>(M.host!==void 0?N===M.host:M.suffix!==void 0?N.endsWith(M.suffix):T.test(N))&&(S===null||B===void 0||S.test(B))},W=J.filter((M)=>M.exclude!==!0).map(Y),R=J.filter((M)=>M.exclude===!0).map(Y);_Y[_]=(M,E)=>W.some((T)=>T(M,E))&&!R.some((T)=>T(M,E))}}}function mt($){let I=String($||"").toLowerCase().replace(/\.$/,"");return Object.keys(_Y).some((G)=>_Y[G](I))}qg.exports={VENDOR_HOSTS:_Y,isVendorHost:mt}});var kg={};LU(kg,{validateHeaderValue:()=>Kr,validateHeaderName:()=>Dr,setMaxIdleHTTPParsers:()=>Lr,request:()=>Or,maxHeaderSize:()=>Zr,globalAgent:()=>zr,get:()=>Qr,default:()=>Wr,createServer:()=>Jr,ServerResponse:()=>Yr,Server:()=>Gr,STATUS_CODES:()=>Xr,OutgoingMessage:()=>_r,METHODS:()=>Ir,IncomingMessage:()=>Ur,ClientRequest:()=>$r,Agent:()=>et});var dt,it,Bg,ot,tt,rt=($,I,G)=>{G=$!=null?dt(it($)):{};let Z=I||!$||!$.__esModule?Bg(G,"default",{value:$,enumerable:!0}):G;for(let _ of ot($))if(!tt.call(Z,_))Bg(Z,_,{get:()=>$[_],enumerable:!0});return Z},at=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports),st,jg,et,$r,Ur,Ir,_r,Xr,Gr,Yr,Jr,Qr,zr,Zr,Or,Lr,Dr,Kr,Wr;var gg=WI(()=>{dt=Object.create,{getPrototypeOf:it,defineProperty:Bg,getOwnPropertyNames:ot}=Object,tt=Object.prototype.hasOwnProperty,st=at(($,I)=>{var G=(Xz(),P$(m5)),Z=(RE(),P$(EE)),_=$;for(J in G)if(G.hasOwnProperty(J))_[J]=G[J];var J;_.request=function(W,R){return W=Y(W),G.request.call(this,W,R)},_.get=function(W,R){return W=Y(W),G.get.call(this,W,R)};function Y(W){if(typeof W==="string")W=Z.parse(W);if(!W.protocol)W.protocol="https:";if(W.protocol!=="https:")throw Error('Protocol "'+W.protocol+'" not supported. Expected "https:"');return W}}),jg=rt(st(),1),{Agent:et,ClientRequest:$r,IncomingMessage:Ur,METHODS:Ir,OutgoingMessage:_r,STATUS_CODES:Xr,Server:Gr,ServerResponse:Yr,createServer:Jr,get:Qr,globalAgent:zr,maxHeaderSize:Zr,request:Or,setMaxIdleHTTPParsers:Lr,validateHeaderName:Dr,validateHeaderValue:Kr}=jg,Wr=jg});var fE={};LU(fE,{throws:()=>Ba,strictEqual:()=>Na,strict:()=>qa,rejects:()=>Ca,ok:()=>va,notStrictEqual:()=>Sa,notEqual:()=>Pa,notDeepStrictEqual:()=>Va,notDeepEqual:()=>Ra,match:()=>Ea,ifError:()=>Aa,fail:()=>Ma,equal:()=>Ta,doesNotThrow:()=>Fa,doesNotReject:()=>Ha,doesNotMatch:()=>Wa,default:()=>ja,deepStrictEqual:()=>Ka,deepEqual:()=>Da,CallTracker:()=>La,AssertionError:()=>Oa});var Hr,Fr,wg,Tr,Mr,Ar=($,I,G)=>{G=$!=null?Hr(Fr($)):{};let Z=I||!$||!$.__esModule?wg(G,"default",{value:$,enumerable:!0}):G;for(let _ of Tr($))if(!Mr.call(Z,_))wg(Z,_,{get:()=>$[_],enumerable:!0});return Z},A$=($,I)=>()=>(I||$((I={exports:{}}).exports,I),I.exports),qE,d5,NE,Er,Rr,Vr,Pr,xg,Yz,Sr,vr,Cr,qr,Nr,Br,jr,kr,gr,wr,XY,i5,xr,fg,yg,fr,Jz,BE,jE,yr,bg,kE,br,gE,hg,wE,GY,hr,ur,nr,pr,cr,lr,mr,dr,ir,ug,ng,or,tr,o5,pg,rr,ar,sr,er,$a,Gz,cg,Ua,lg,Ia,mg,_a,Xa,dg,xE,Ga,t5,Ya,Ja,ig,og,Qa,za,Za,CE,tg,Oa,La,Da,Ka,Wa,Ha,Fa,Ta,Ma,Aa,Ea,Ra,Va,Pa,Sa,va,Ca,qa,Na,Ba,ja;var yE=WI(()=>{Hr=Object.create,{getPrototypeOf:Fr,defineProperty:wg,getOwnPropertyNames:Tr}=Object,Mr=Object.prototype.hasOwnProperty,qE=A$(($,I)=>{I.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var G={},Z=Symbol("test"),_=Object(Z);if(typeof Z==="string")return!1;if(Object.prototype.toString.call(Z)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(_)!=="[object Symbol]")return!1;var J=42;G[Z]=J;for(var Y in G)return!1;if(typeof Object.keys==="function"&&Object.keys(G).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(G).length!==0)return!1;var W=Object.getOwnPropertySymbols(G);if(W.length!==1||W[0]!==Z)return!1;if(!Object.prototype.propertyIsEnumerable.call(G,Z))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var R=Object.getOwnPropertyDescriptor(G,Z);if(R.value!==J||R.enumerable!==!0)return!1}return!0}}),d5=A$(($,I)=>{var G=qE();I.exports=function(){return G()&&!!Symbol.toStringTag}}),NE=A$(($,I)=>{I.exports=Object}),Er=A$(($,I)=>{I.exports=Error}),Rr=A$(($,I)=>{I.exports=EvalError}),Vr=A$(($,I)=>{I.exports=RangeError}),Pr=A$(($,I)=>{I.exports=ReferenceError}),xg=A$(($,I)=>{I.exports=SyntaxError}),Yz=A$(($,I)=>{I.exports=TypeError}),Sr=A$(($,I)=>{I.exports=URIError}),vr=A$(($,I)=>{I.exports=Math.abs}),Cr=A$(($,I)=>{I.exports=Math.floor}),qr=A$(($,I)=>{I.exports=Math.max}),Nr=A$(($,I)=>{I.exports=Math.min}),Br=A$(($,I)=>{I.exports=Math.pow}),jr=A$(($,I)=>{I.exports=Math.round}),kr=A$(($,I)=>{I.exports=Number.isNaN||function(G){return G!==G}}),gr=A$(($,I)=>{var G=kr();I.exports=function(Z){if(G(Z)||Z===0)return Z;return Z<0?-1:1}}),wr=A$(($,I)=>{I.exports=Object.getOwnPropertyDescriptor}),XY=A$(($,I)=>{var G=wr();if(G)try{G([],"length")}catch(Z){G=null}I.exports=G}),i5=A$(($,I)=>{var G=Object.defineProperty||!1;if(G)try{G({},"a",{value:1})}catch(Z){G=!1}I.exports=G}),xr=A$(($,I)=>{var G=typeof Symbol<"u"&&Symbol,Z=qE();I.exports=function(){if(typeof G!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof G("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return Z()}}),fg=A$(($,I)=>{I.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),yg=A$(($,I)=>{var G=NE();I.exports=G.getPrototypeOf||null}),fr=A$(($,I)=>{var G="Function.prototype.bind called on incompatible ",Z=Object.prototype.toString,_=Math.max,J="[object Function]",Y=function(M,E){var T=[];for(var S=0;S<M.length;S+=1)T[S]=M[S];for(var N=0;N<E.length;N+=1)T[N+M.length]=E[N];return T},W=function(M,E){var T=[];for(var S=E||0,N=0;S<M.length;S+=1,N+=1)T[N]=M[S];return T},R=function(M,E){var T="";for(var S=0;S<M.length;S+=1)if(T+=M[S],S+1<M.length)T+=E;return T};I.exports=function(M){var E=this;if(typeof E!=="function"||Z.apply(E)!==J)throw TypeError(G+E);var T=W(arguments,1),S,N=function(){if(this instanceof S){var g=E.apply(this,Y(T,arguments));if(Object(g)===g)return g;return this}return E.apply(M,Y(T,arguments))},B=_(0,E.length-T.length),x=[];for(var w=0;w<B;w++)x[w]="$"+w;if(S=Function("binder","return function ("+R(x,",")+"){ return binder.apply(this,arguments); }")(N),E.prototype){var y=function(){};y.prototype=E.prototype,S.prototype=new y,y.prototype=null}return S}}),Jz=A$(($,I)=>{var G=fr();I.exports=Function.prototype.bind||G}),BE=A$(($,I)=>{I.exports=Function.prototype.call}),jE=A$(($,I)=>{I.exports=Function.prototype.apply}),yr=A$(($,I)=>{I.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),bg=A$(($,I)=>{var G=Jz(),Z=jE(),_=BE(),J=yr();I.exports=J||G.call(_,Z)}),kE=A$(($,I)=>{var G=Jz(),Z=Yz(),_=BE(),J=bg();I.exports=function(Y){if(Y.length<1||typeof Y[0]!=="function")throw new Z("a function is required");return J(G,_,Y)}}),br=A$(($,I)=>{var G=kE(),Z=XY(),_;try{_=[].__proto__===Array.prototype}catch(R){if(!R||typeof R!=="object"||!("code"in R)||R.code!=="ERR_PROTO_ACCESS")throw R}var J=!!_&&Z&&Z(Object.prototype,"__proto__"),Y=Object,W=Y.getPrototypeOf;I.exports=J&&typeof J.get==="function"?G([J.get]):typeof W==="function"?function(R){return W(R==null?R:Y(R))}:!1}),gE=A$(($,I)=>{var G=fg(),Z=yg(),_=br();I.exports=G?function(J){return G(J)}:Z?function(J){if(!J||typeof J!=="object"&&typeof J!=="function")throw TypeError("getProto: not an object");return Z(J)}:_?function(J){return _(J)}:null}),hg=A$(($,I)=>{var G=Function.prototype.call,Z=Object.prototype.hasOwnProperty,_=Jz();I.exports=_.call(G,Z)}),wE=A$(($,I)=>{var G,Z=NE(),_=Er(),J=Rr(),Y=Vr(),W=Pr(),R=xg(),M=Yz(),E=Sr(),T=vr(),S=Cr(),N=qr(),B=Nr(),x=Br(),w=jr(),y=gr(),g=Function,b=function(r){try{return g('"use strict"; return ('+r+").constructor;")()}catch(Y0){}},l=XY(),i=i5(),$0=function(){throw new M},Q0=l?function(){try{return arguments.callee,$0}catch(r){try{return l(arguments,"callee").get}catch(Y0){return $0}}}():$0,G0=xr()(),D0=gE(),t=yg(),V0=fg(),Q=jE(),D=BE(),F={},L=typeof Uint8Array>"u"||!D0?G:D0(Uint8Array),H={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?G:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?G:ArrayBuffer,"%ArrayIteratorPrototype%":G0&&D0?D0([][Symbol.iterator]()):G,"%AsyncFromSyncIteratorPrototype%":G,"%AsyncFunction%":F,"%AsyncGenerator%":F,"%AsyncGeneratorFunction%":F,"%AsyncIteratorPrototype%":F,"%Atomics%":typeof Atomics>"u"?G:Atomics,"%BigInt%":typeof BigInt>"u"?G:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?G:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?G:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?G:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":_,"%eval%":eval,"%EvalError%":J,"%Float16Array%":typeof Float16Array>"u"?G:Float16Array,"%Float32Array%":typeof Float32Array>"u"?G:Float32Array,"%Float64Array%":typeof Float64Array>"u"?G:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?G:FinalizationRegistry,"%Function%":g,"%GeneratorFunction%":F,"%Int8Array%":typeof Int8Array>"u"?G:Int8Array,"%Int16Array%":typeof Int16Array>"u"?G:Int16Array,"%Int32Array%":typeof Int32Array>"u"?G:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":G0&&D0?D0(D0([][Symbol.iterator]())):G,"%JSON%":typeof JSON==="object"?JSON:G,"%Map%":typeof Map>"u"?G:Map,"%MapIteratorPrototype%":typeof Map>"u"||!G0||!D0?G:D0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Z,"%Object.getOwnPropertyDescriptor%":l,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?G:Promise,"%Proxy%":typeof Proxy>"u"?G:Proxy,"%RangeError%":Y,"%ReferenceError%":W,"%Reflect%":typeof Reflect>"u"?G:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?G:Set,"%SetIteratorPrototype%":typeof Set>"u"||!G0||!D0?G:D0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?G:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":G0&&D0?D0(""[Symbol.iterator]()):G,"%Symbol%":G0?Symbol:G,"%SyntaxError%":R,"%ThrowTypeError%":Q0,"%TypedArray%":L,"%TypeError%":M,"%Uint8Array%":typeof Uint8Array>"u"?G:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?G:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?G:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?G:Uint32Array,"%URIError%":E,"%WeakMap%":typeof WeakMap>"u"?G:WeakMap,"%WeakRef%":typeof WeakRef>"u"?G:WeakRef,"%WeakSet%":typeof WeakSet>"u"?G:WeakSet,"%Function.prototype.call%":D,"%Function.prototype.apply%":Q,"%Object.defineProperty%":i,"%Object.getPrototypeOf%":t,"%Math.abs%":T,"%Math.floor%":S,"%Math.max%":N,"%Math.min%":B,"%Math.pow%":x,"%Math.round%":w,"%Math.sign%":y,"%Reflect.getPrototypeOf%":V0};if(D0)try{null.error}catch(r){v=D0(D0(r)),H["%Error.prototype%"]=v}var v,q=function r(Y0){var W0;if(Y0==="%AsyncFunction%")W0=b("async function () {}");else if(Y0==="%GeneratorFunction%")W0=b("function* () {}");else if(Y0==="%AsyncGeneratorFunction%")W0=b("async function* () {}");else if(Y0==="%AsyncGenerator%"){var I0=r("%AsyncGeneratorFunction%");if(I0)W0=I0.prototype}else if(Y0==="%AsyncIteratorPrototype%"){var c=r("%AsyncGenerator%");if(c&&D0)W0=D0(c.prototype)}return H[Y0]=W0,W0},V={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=Jz(),A=hg(),k=O.call(D,Array.prototype.concat),j=O.call(Q,Array.prototype.splice),h=O.call(D,String.prototype.replace),a=O.call(D,String.prototype.slice),J0=O.call(D,RegExp.prototype.exec),K0=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,O0=/\\(\\)?/g,d=function(r){var Y0=a(r,0,1),W0=a(r,-1);if(Y0==="%"&&W0!=="%")throw new R("invalid intrinsic syntax, expected closing `%`");else if(W0==="%"&&Y0!=="%")throw new R("invalid intrinsic syntax, expected opening `%`");var I0=[];return h(r,K0,function(c,s,S0,M0){I0[I0.length]=S0?h(M0,O0,"$1"):s||c}),I0},m=function(r,Y0){var W0=r,I0;if(A(V,W0))I0=V[W0],W0="%"+I0[0]+"%";if(A(H,W0)){var c=H[W0];if(c===F)c=q(W0);if(typeof c>"u"&&!Y0)throw new M("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:I0,name:W0,value:c}}throw new R("intrinsic "+r+" does not exist!")};I.exports=function(r,Y0){if(typeof r!=="string"||r.length===0)throw new M("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Y0!=="boolean")throw new M('"allowMissing" argument must be a boolean');if(J0(/^%?[^%]*%?$/,r)===null)throw new R("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var W0=d(r),I0=W0.length>0?W0[0]:"",c=m("%"+I0+"%",Y0),s=c.name,S0=c.value,M0=!1,z0=c.alias;if(z0)I0=z0[0],j(W0,k([0,1],z0));for(var c0=1,F0=!0;c0<W0.length;c0+=1){var q0=W0[c0],s0=a(q0,0,1),k0=a(q0,-1);if((s0==='"'||s0==="'"||s0==="`"||(k0==='"'||k0==="'"||k0==="`"))&&s0!==k0)throw new R("property names with quotes must have matching quotes");if(q0==="constructor"||!F0)M0=!0;if(I0+="."+q0,s="%"+I0+"%",A(H,s))S0=H[s];else if(S0!=null){if(!(q0 in S0)){if(!Y0)throw new M("base intrinsic for "+r+" exists, but the property is not available.");return}if(l&&c0+1>=W0.length){var n0=l(S0,q0);if(F0=!!n0,F0&&"get"in n0&&!("originalValue"in n0.get))S0=n0.get;else S0=S0[q0]}else F0=A(S0,q0),S0=S0[q0];if(F0&&!M0)H[s]=S0}}return S0}}),GY=A$(($,I)=>{var G=wE(),Z=kE(),_=Z([G("%String.prototype.indexOf%")]);I.exports=function(J,Y){var W=G(J,!!Y);if(typeof W==="function"&&_(J,".prototype.")>-1)return Z([W]);return W}}),hr=A$(($,I)=>{var G=d5()(),Z=GY(),_=Z("Object.prototype.toString"),J=function(R){if(G&&R&&typeof R==="object"&&Symbol.toStringTag in R)return!1;return _(R)==="[object Arguments]"},Y=function(R){if(J(R))return!0;return R!==null&&typeof R==="object"&&"length"in R&&typeof R.length==="number"&&R.length>=0&&_(R)!=="[object Array]"&&"callee"in R&&_(R.callee)==="[object Function]"},W=function(){return J(arguments)}();J.isLegacyArguments=Y,I.exports=W?J:Y}),ur=A$(($,I)=>{var G=GY(),Z=d5()(),_=hg(),J=XY(),Y;if(Z){if(W=G("RegExp.prototype.exec"),R={},M=function(){throw R},E={toString:M,valueOf:M},typeof Symbol.toPrimitive==="symbol")E[Symbol.toPrimitive]=M;Y=function(N){if(!N||typeof N!=="object")return!1;var B=J(N,"lastIndex"),x=B&&_(B,"value");if(!x)return!1;try{W(N,E)}catch(w){return w===R}}}else T=G("Object.prototype.toString"),S="[object RegExp]",Y=function(N){if(!N||typeof N!=="object"&&typeof N!=="function")return!1;return T(N)===S};var W,R,M,E,T,S;I.exports=Y}),nr=A$(($,I)=>{var G=GY(),Z=ur(),_=G("RegExp.prototype.exec"),J=Yz();I.exports=function(Y){if(!Z(Y))throw new J("`regex` must be a RegExp");return function(W){return _(Y,W)!==null}}}),pr=A$(($,I)=>{var G=function*(){}.constructor;I.exports=()=>G}),cr=A$(($,I)=>{var G=GY(),Z=nr(),_=Z(/^\s*(?:function)?\*/),J=d5()(),Y=gE(),W=G("Object.prototype.toString"),R=G("Function.prototype.toString"),M=pr();I.exports=function(E){if(typeof E!=="function")return!1;if(_(R(E)))return!0;if(!J){var T=W(E);return T==="[object GeneratorFunction]"}if(!Y)return!1;var S=M();return S&&Y(E)===S.prototype}}),lr=A$(($,I)=>{var G=Function.prototype.toString,Z=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,_,J;if(typeof Z==="function"&&typeof Object.defineProperty==="function")try{_=Object.defineProperty({},"length",{get:function(){throw J}}),J={},Z(function(){throw 42},null,_)}catch(l){if(l!==J)Z=null}else Z=null;var Y=/^\s*class\b/,W=function(l){try{var i=G.call(l);return Y.test(i)}catch($0){return!1}},R=function(l){try{if(W(l))return!1;return G.call(l),!0}catch(i){return!1}},M=Object.prototype.toString,E="[object Object]",T="[object Function]",S="[object GeneratorFunction]",N="[object HTMLAllCollection]",B="[object HTML document.all class]",x="[object HTMLCollection]",w=typeof Symbol==="function"&&!!Symbol.toStringTag,y=!(0 in[,]),g=function(){return!1};if(typeof document==="object"){if(b=document.all,M.call(b)===M.call(document.all))g=function(l){if((y||!l)&&(typeof l>"u"||typeof l==="object"))try{var i=M.call(l);return(i===N||i===B||i===x||i===E)&&l("")==null}catch($0){}return!1}}var b;I.exports=Z?function(l){if(g(l))return!0;if(!l)return!1;if(typeof l!=="function"&&typeof l!=="object")return!1;try{Z(l,null,_)}catch(i){if(i!==J)return!1}return!W(l)&&R(l)}:function(l){if(g(l))return!0;if(!l)return!1;if(typeof l!=="function"&&typeof l!=="object")return!1;if(w)return R(l);if(W(l))return!1;var i=M.call(l);if(i!==T&&i!==S&&!/^\[object HTML/.test(i))return!1;return R(l)}}),mr=A$(($,I)=>{var G=lr(),Z=Object.prototype.toString,_=Object.prototype.hasOwnProperty,J=function(M,E,T){for(var S=0,N=M.length;S<N;S++)if(_.call(M,S))if(T==null)E(M[S],S,M);else E.call(T,M[S],S,M)},Y=function(M,E,T){for(var S=0,N=M.length;S<N;S++)if(T==null)E(M.charAt(S),S,M);else E.call(T,M.charAt(S),S,M)},W=function(M,E,T){for(var S in M)if(_.call(M,S))if(T==null)E(M[S],S,M);else E.call(T,M[S],S,M)};function R(M){return Z.call(M)==="[object Array]"}I.exports=function(M,E,T){if(!G(E))throw TypeError("iterator must be a function");var S;if(arguments.length>=3)S=T;if(R(M))J(M,E,S);else if(typeof M==="string")Y(M,E,S);else W(M,E,S)}}),dr=A$(($,I)=>{I.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),ir=A$(($,I)=>{var G=dr(),Z=typeof globalThis>"u"?globalThis:globalThis;I.exports=function(){var _=[];for(var J=0;J<G.length;J++)if(typeof Z[G[J]]==="function")_[_.length]=G[J];return _}}),ug=A$(($,I)=>{var G=i5(),Z=xg(),_=Yz(),J=XY();I.exports=function(Y,W,R){if(!Y||typeof Y!=="object"&&typeof Y!=="function")throw new _("`obj` must be an object or a function`");if(typeof W!=="string"&&typeof W!=="symbol")throw new _("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new _("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new _("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new _("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new _("`loose`, if provided, must be a boolean");var M=arguments.length>3?arguments[3]:null,E=arguments.length>4?arguments[4]:null,T=arguments.length>5?arguments[5]:null,S=arguments.length>6?arguments[6]:!1,N=!!J&&J(Y,W);if(G)G(Y,W,{configurable:T===null&&N?N.configurable:!T,enumerable:M===null&&N?N.enumerable:!M,value:R,writable:E===null&&N?N.writable:!E});else if(S||!M&&!E&&!T)Y[W]=R;else throw new Z("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),ng=A$(($,I)=>{var G=i5(),Z=function(){return!!G};Z.hasArrayLengthDefineBug=function(){if(!G)return null;try{return G([],"length",{value:1}).length!==1}catch(_){return!0}},I.exports=Z}),or=A$(($,I)=>{var G=wE(),Z=ug(),_=ng()(),J=XY(),Y=Yz(),W=G("%Math.floor%");I.exports=function(R,M){if(typeof R!=="function")throw new Y("`fn` is not a function");if(typeof M!=="number"||M<0||M>4294967295||W(M)!==M)throw new Y("`length` must be a positive 32-bit integer");var E=arguments.length>2&&!!arguments[2],T=!0,S=!0;if("length"in R&&J){var N=J(R,"length");if(N&&!N.configurable)T=!1;if(N&&!N.writable)S=!1}if(T||S||!E)if(_)Z(R,"length",M,!0,!0);else Z(R,"length",M);return R}}),tr=A$(($,I)=>{var G=Jz(),Z=jE(),_=bg();I.exports=function(){return _(G,Z,arguments)}}),o5=A$(($,I)=>{var G=or(),Z=i5(),_=kE(),J=tr();if(I.exports=function(Y){var W=_(arguments),R=Y.length-(arguments.length-1);return G(W,1+(R>0?R:0),!0)},Z)Z(I.exports,"apply",{value:J});else I.exports.apply=J}),pg=A$(($,I)=>{var G=mr(),Z=ir(),_=o5(),J=GY(),Y=XY(),W=gE(),R=J("Object.prototype.toString"),M=d5()(),E=typeof globalThis>"u"?globalThis:globalThis,T=Z(),S=J("String.prototype.slice"),N=J("Array.prototype.indexOf",!0)||function(y,g){for(var b=0;b<y.length;b+=1)if(y[b]===g)return b;return-1},B={__proto__:null};if(M&&Y&&W)G(T,function(y){var g=new E[y];if(Symbol.toStringTag in g&&W){var b=W(g),l=Y(b,Symbol.toStringTag);if(!l&&b){var i=W(b);l=Y(i,Symbol.toStringTag)}B["$"+y]=_(l.get)}});else G(T,function(y){var g=new E[y],b=g.slice||g.set;if(b)B["$"+y]=_(b)});var x=function(y){var g=!1;return G(B,function(b,l){if(!g)try{if("$"+b(y)===l)g=S(l,1)}catch(i){}}),g},w=function(y){var g=!1;return G(B,function(b,l){if(!g)try{b(y),g=S(l,1)}catch(i){}}),g};I.exports=function(y){if(!y||typeof y!=="object")return!1;if(!M){var g=S(R(y),8,-1);if(N(T,g)>-1)return g;if(g!=="Object")return!1;return w(y)}if(!Y)return null;return x(y)}}),rr=A$(($,I)=>{var G=pg();I.exports=function(Z){return!!G(Z)}}),ar=A$(($)=>{var I=hr(),G=cr(),Z=pg(),_=rr();function J(z0){return z0.call.bind(z0)}var Y=typeof BigInt<"u",W=typeof Symbol<"u",R=J(Object.prototype.toString),M=J(Number.prototype.valueOf),E=J(String.prototype.valueOf),T=J(Boolean.prototype.valueOf);if(Y)S=J(BigInt.prototype.valueOf);var S;if(W)N=J(Symbol.prototype.valueOf);var N;function B(z0,c0){if(typeof z0!=="object")return!1;try{return c0(z0),!0}catch(F0){return!1}}$.isArgumentsObject=I,$.isGeneratorFunction=G,$.isTypedArray=_;function x(z0){return typeof Promise<"u"&&z0 instanceof Promise||z0!==null&&typeof z0==="object"&&typeof z0.then==="function"&&typeof z0.catch==="function"}$.isPromise=x;function w(z0){if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)return ArrayBuffer.isView(z0);return _(z0)||j(z0)}$.isArrayBufferView=w;function y(z0){return Z(z0)==="Uint8Array"}$.isUint8Array=y;function g(z0){return Z(z0)==="Uint8ClampedArray"}$.isUint8ClampedArray=g;function b(z0){return Z(z0)==="Uint16Array"}$.isUint16Array=b;function l(z0){return Z(z0)==="Uint32Array"}$.isUint32Array=l;function i(z0){return Z(z0)==="Int8Array"}$.isInt8Array=i;function $0(z0){return Z(z0)==="Int16Array"}$.isInt16Array=$0;function Q0(z0){return Z(z0)==="Int32Array"}$.isInt32Array=Q0;function G0(z0){return Z(z0)==="Float32Array"}$.isFloat32Array=G0;function D0(z0){return Z(z0)==="Float64Array"}$.isFloat64Array=D0;function t(z0){return Z(z0)==="BigInt64Array"}$.isBigInt64Array=t;function V0(z0){return Z(z0)==="BigUint64Array"}$.isBigUint64Array=V0;function Q(z0){return R(z0)==="[object Map]"}Q.working=typeof Map<"u"&&Q(new Map);function D(z0){if(typeof Map>"u")return!1;return Q.working?Q(z0):z0 instanceof Map}$.isMap=D;function F(z0){return R(z0)==="[object Set]"}F.working=typeof Set<"u"&&F(new Set);function L(z0){if(typeof Set>"u")return!1;return F.working?F(z0):z0 instanceof Set}$.isSet=L;function H(z0){return R(z0)==="[object WeakMap]"}H.working=typeof WeakMap<"u"&&H(new WeakMap);function v(z0){if(typeof WeakMap>"u")return!1;return H.working?H(z0):z0 instanceof WeakMap}$.isWeakMap=v;function q(z0){return R(z0)==="[object WeakSet]"}q.working=typeof WeakSet<"u"&&q(new WeakSet);function V(z0){return q(z0)}$.isWeakSet=V;function O(z0){return R(z0)==="[object ArrayBuffer]"}O.working=typeof ArrayBuffer<"u"&&O(new ArrayBuffer);function A(z0){if(typeof ArrayBuffer>"u")return!1;return O.working?O(z0):z0 instanceof ArrayBuffer}$.isArrayBuffer=A;function k(z0){return R(z0)==="[object DataView]"}k.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&k(new DataView(new ArrayBuffer(1),0,1));function j(z0){if(typeof DataView>"u")return!1;return k.working?k(z0):z0 instanceof DataView}$.isDataView=j;var h=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function a(z0){return R(z0)==="[object SharedArrayBuffer]"}function J0(z0){if(typeof h>"u")return!1;if(typeof a.working>"u")a.working=a(new h);return a.working?a(z0):z0 instanceof h}$.isSharedArrayBuffer=J0;function K0(z0){return R(z0)==="[object AsyncFunction]"}$.isAsyncFunction=K0;function O0(z0){return R(z0)==="[object Map Iterator]"}$.isMapIterator=O0;function d(z0){return R(z0)==="[object Set Iterator]"}$.isSetIterator=d;function m(z0){return R(z0)==="[object Generator]"}$.isGeneratorObject=m;function r(z0){return R(z0)==="[object WebAssembly.Module]"}$.isWebAssemblyCompiledModule=r;function Y0(z0){return B(z0,M)}$.isNumberObject=Y0;function W0(z0){return B(z0,E)}$.isStringObject=W0;function I0(z0){return B(z0,T)}$.isBooleanObject=I0;function c(z0){return Y&&B(z0,S)}$.isBigIntObject=c;function s(z0){return W&&B(z0,N)}$.isSymbolObject=s;function S0(z0){return Y0(z0)||W0(z0)||I0(z0)||c(z0)||s(z0)}$.isBoxedPrimitive=S0;function M0(z0){return typeof Uint8Array<"u"&&(A(z0)||J0(z0))}$.isAnyArrayBuffer=M0,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(z0){Object.defineProperty($,z0,{enumerable:!1,value:function(){throw Error(z0+" is not supported in userland")}})})}),sr=A$(($,I)=>{I.exports=function(G){return G instanceof Buffer}}),er=A$(($,I)=>{if(typeof Object.create==="function")I.exports=function(G,Z){if(Z)G.super_=Z,G.prototype=Object.create(Z.prototype,{constructor:{value:G,enumerable:!1,writable:!0,configurable:!0}})};else I.exports=function(G,Z){if(Z){G.super_=Z;var _=function(){};_.prototype=Z.prototype,G.prototype=new _,G.prototype.constructor=G}}}),$a=A$(($,I)=>{try{if(G=(v_(),P$(S_)),typeof G.inherits!=="function")throw"";I.exports=G.inherits}catch(Z){I.exports=er()}var G}),Gz=A$(($)=>{var I=Object.getOwnPropertyDescriptors||function(A){var k=Object.keys(A),j={};for(var h=0;h<k.length;h++)j[k[h]]=Object.getOwnPropertyDescriptor(A,k[h]);return j},G=/%[sdj%]/g;$.format=function(A){if(!l(A)){var k=[];for(var j=0;j<arguments.length;j++)k.push(J(arguments[j]));return k.join(" ")}var j=1,h=arguments,a=h.length,J0=String(A).replace(G,function(O0){if(O0==="%%")return"%";if(j>=a)return O0;switch(O0){case"%s":return String(h[j++]);case"%d":return Number(h[j++]);case"%j":try{return JSON.stringify(h[j++])}catch(d){return"[Circular]"}default:return O0}});for(var K0=h[j];j<a;K0=h[++j])if(y(K0)||!G0(K0))J0+=" "+K0;else J0+=" "+J(K0);return J0},$.deprecate=function(A,k){if(typeof process<"u"&&process.noDeprecation===!0)return A;if(typeof process>"u")return function(){return $.deprecate(A,k).apply(this,arguments)};var j=!1;function h(){if(!j){if(process.throwDeprecation)throw Error(k);else if(process.traceDeprecation)console.trace(k);else console.error(k);j=!0}return A.apply(this,arguments)}return h};var Z={},_=/^$/;$.debuglog=function(A){if(A=A.toUpperCase(),!Z[A])if(_.test(A)){var k=process.pid;Z[A]=function(){var j=$.format.apply($,arguments);console.error("%s %d: %s",A,k,j)}}else Z[A]=function(){};return Z[A]};function J(A,k){var j={seen:[],stylize:W};if(arguments.length>=3)j.depth=arguments[2];if(arguments.length>=4)j.colors=arguments[3];if(w(k))j.showHidden=k;else if(k)$._extend(j,k);if($0(j.showHidden))j.showHidden=!1;if($0(j.depth))j.depth=2;if($0(j.colors))j.colors=!1;if($0(j.customInspect))j.customInspect=!0;if(j.colors)j.stylize=Y;return M(j,A,j.depth)}$.inspect=J,J.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},J.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function Y(A,k){var j=J.styles[k];if(j)return"\x1B["+J.colors[j][0]+"m"+A+"\x1B["+J.colors[j][1]+"m";else return A}function W(A,k){return A}function R(A){var k={};return A.forEach(function(j,h){k[j]=!0}),k}function M(A,k,j){if(A.customInspect&&k&&V0(k.inspect)&&k.inspect!==$.inspect&&!(k.constructor&&k.constructor.prototype===k)){var h=k.inspect(j,A);if(!l(h))h=M(A,h,j);return h}var a=E(A,k);if(a)return a;var J0=Object.keys(k),K0=R(J0);if(A.showHidden)J0=Object.getOwnPropertyNames(k);if(t(k)&&(J0.indexOf("message")>=0||J0.indexOf("description")>=0))return T(k);if(J0.length===0){if(V0(k)){var O0=k.name?": "+k.name:"";return A.stylize("[Function"+O0+"]","special")}if(Q0(k))return A.stylize(RegExp.prototype.toString.call(k),"regexp");if(D0(k))return A.stylize(Date.prototype.toString.call(k),"date");if(t(k))return T(k)}var d="",m=!1,r=["{","}"];if(x(k))m=!0,r=["[","]"];if(V0(k)){var Y0=k.name?": "+k.name:"";d=" [Function"+Y0+"]"}if(Q0(k))d=" "+RegExp.prototype.toString.call(k);if(D0(k))d=" "+Date.prototype.toUTCString.call(k);if(t(k))d=" "+T(k);if(J0.length===0&&(!m||k.length==0))return r[0]+d+r[1];if(j<0)if(Q0(k))return A.stylize(RegExp.prototype.toString.call(k),"regexp");else return A.stylize("[Object]","special");A.seen.push(k);var W0;if(m)W0=S(A,k,j,K0,J0);else W0=J0.map(function(I0){return N(A,k,j,K0,I0,m)});return A.seen.pop(),B(W0,d,r)}function E(A,k){if($0(k))return A.stylize("undefined","undefined");if(l(k)){var j="'"+JSON.stringify(k).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(j,"string")}if(b(k))return A.stylize(""+k,"number");if(w(k))return A.stylize(""+k,"boolean");if(y(k))return A.stylize("null","null")}function T(A){return"["+Error.prototype.toString.call(A)+"]"}function S(A,k,j,h,a){var J0=[];for(var K0=0,O0=k.length;K0<O0;++K0)if(v(k,String(K0)))J0.push(N(A,k,j,h,String(K0),!0));else J0.push("");return a.forEach(function(d){if(!d.match(/^\d+$/))J0.push(N(A,k,j,h,d,!0))}),J0}function N(A,k,j,h,a,J0){var K0,O0,d;if(d=Object.getOwnPropertyDescriptor(k,a)||{value:k[a]},d.get)if(d.set)O0=A.stylize("[Getter/Setter]","special");else O0=A.stylize("[Getter]","special");else if(d.set)O0=A.stylize("[Setter]","special");if(!v(h,a))K0="["+a+"]";if(!O0)if(A.seen.indexOf(d.value)<0){if(y(j))O0=M(A,d.value,null);else O0=M(A,d.value,j-1);if(O0.indexOf(`
|
|
247
247
|
`)>-1)if(J0)O0=O0.split(`
|
|
248
248
|
`).map(function(m){return" "+m}).join(`
|
|
249
249
|
`).slice(2);else O0=`
|