@volter/twin-hubspot 0.1.10 → 0.1.11

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
  `)}}),Cm=E$(($)=>{var _=$;_.der=cN(),_.pem=gm()}),V5=E$(($)=>{var _=$;_.bignum=Mm(),_.define=Em().define,_.base=H5(),_.constants=SN(),_.decoders=qm(),_.encoders=Cm()}),wm=E$(($,_)=>{var I=V5(),J=I.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),j=I.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),G=I.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),X=I.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(G),this.key("subjectPublicKey").bitstr())}),W=I.define("RelativeDistinguishedName",function(){this.setof(j)}),T=I.define("RDNSequence",function(){this.seqof(W)}),F=I.define("Name",function(){this.choice({rdnSequence:this.use(T)})}),E=I.define("Validity",function(){this.seq().obj(this.key("notBefore").use(J),this.key("notAfter").use(J))}),D=I.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),q=I.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(G),this.key("issuer").use(F),this.key("validity").use(E),this.key("subject").use(F),this.key("subjectPublicKeyInfo").use(X),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(D).optional())}),S=I.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(q),this.key("signatureAlgorithm").use(G),this.key("signatureValue").bitstr())});_.exports=S}),Nm=E$(($)=>{var _=V5();$.certificate=wm();var 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=I;var J=_.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});$.RSAPublicKey=J;var j=_.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())}),G=_.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(j),this.key("subjectPublicKey").bitstr())});$.PublicKey=G;var X=_.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(j),this.key("subjectPrivateKey").octstr())});$.PrivateKey=X;var W=_.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 T=_.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=T,$.DSAparam=_.define("DSAparam",function(){this.int()});var F=_.define("ECParameters",function(){this.choice({namedCurve:this.objid()})}),E=_.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(F),this.key("publicKey").optional().explicit(1).bitstr())});$.ECPrivateKey=E,$.signature=_.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})}),Bm=E$(($,_)=>{_.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"}}),Sm=E$(($,_)=>{var I=v6().Buffer,J=E8().Transform,j=D4();function G(F){J.call(this),this._block=I.allocUnsafe(F),this._blockSize=F,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}j(G,J),G.prototype._transform=function(F,E,D){var q=null;try{this.update(F,E)}catch(S){q=S}D(q)},G.prototype._flush=function(F){var E=null;try{this.push(this.digest())}catch(D){E=D}F(E)};var X=typeof Uint8Array<"u",W=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&ArrayBuffer.isView&&(I.prototype instanceof Uint8Array||I.TYPED_ARRAY_SUPPORT);function T(F,E){if(F instanceof I)return F;if(typeof F==="string")return I.from(F,E);if(W&&ArrayBuffer.isView(F)){if(F.byteLength===0)return I.alloc(0);var D=I.from(F.buffer,F.byteOffset,F.byteLength);if(D.byteLength===F.byteLength)return D}if(X&&F instanceof Uint8Array)return I.from(F);if(I.isBuffer(F)&&F.constructor&&typeof F.constructor.isBuffer==="function"&&F.constructor.isBuffer(F))return I.from(F);throw TypeError('The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView.')}G.prototype.update=function(F,E){if(this._finalized)throw Error("Digest already called");F=T(F,E);var D=this._block,q=0;while(this._blockOffset+F.length-q>=this._blockSize){for(var S=this._blockOffset;S<this._blockSize;)D[S++]=F[q++];this._update(),this._blockOffset=0}while(q<F.length)D[this._blockOffset++]=F[q++];for(var k=0,y=F.length*8;y>0;++k)if(this._length[k]+=y,y=this._length[k]/4294967296|0,y>0)this._length[k]-=4294967296*y;return this},G.prototype._update=function(){throw Error("_update is not implemented")},G.prototype.digest=function(F){if(this._finalized)throw Error("Digest already called");this._finalized=!0;var E=this._digest();if(F!==void 0)E=E.toString(F);this._block.fill(0),this._blockOffset=0;for(var D=0;D<4;++D)this._length[D]=0;return E},G.prototype._digest=function(){throw Error("_digest is not implemented")},_.exports=G}),km=E$(($,_)=>{var I=D4(),J=Sm(),j=v6().Buffer,G=Array(16);function X(){J.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}I(X,J),X.prototype._update=function(){var q=G;for(var S=0;S<16;++S)q[S]=this._block.readInt32LE(S*4);var k=this._a,y=this._b,m=this._c,n=this._d;k=T(k,y,m,n,q[0],3614090360,7),n=T(n,k,y,m,q[1],3905402710,12),m=T(m,n,k,y,q[2],606105819,17),y=T(y,m,n,k,q[3],3250441966,22),k=T(k,y,m,n,q[4],4118548399,7),n=T(n,k,y,m,q[5],1200080426,12),m=T(m,n,k,y,q[6],2821735955,17),y=T(y,m,n,k,q[7],4249261313,22),k=T(k,y,m,n,q[8],1770035416,7),n=T(n,k,y,m,q[9],2336552879,12),m=T(m,n,k,y,q[10],4294925233,17),y=T(y,m,n,k,q[11],2304563134,22),k=T(k,y,m,n,q[12],1804603682,7),n=T(n,k,y,m,q[13],4254626195,12),m=T(m,n,k,y,q[14],2792965006,17),y=T(y,m,n,k,q[15],1236535329,22),k=F(k,y,m,n,q[1],4129170786,5),n=F(n,k,y,m,q[6],3225465664,9),m=F(m,n,k,y,q[11],643717713,14),y=F(y,m,n,k,q[0],3921069994,20),k=F(k,y,m,n,q[5],3593408605,5),n=F(n,k,y,m,q[10],38016083,9),m=F(m,n,k,y,q[15],3634488961,14),y=F(y,m,n,k,q[4],3889429448,20),k=F(k,y,m,n,q[9],568446438,5),n=F(n,k,y,m,q[14],3275163606,9),m=F(m,n,k,y,q[3],4107603335,14),y=F(y,m,n,k,q[8],1163531501,20),k=F(k,y,m,n,q[13],2850285829,5),n=F(n,k,y,m,q[2],4243563512,9),m=F(m,n,k,y,q[7],1735328473,14),y=F(y,m,n,k,q[12],2368359562,20),k=E(k,y,m,n,q[5],4294588738,4),n=E(n,k,y,m,q[8],2272392833,11),m=E(m,n,k,y,q[11],1839030562,16),y=E(y,m,n,k,q[14],4259657740,23),k=E(k,y,m,n,q[1],2763975236,4),n=E(n,k,y,m,q[4],1272893353,11),m=E(m,n,k,y,q[7],4139469664,16),y=E(y,m,n,k,q[10],3200236656,23),k=E(k,y,m,n,q[13],681279174,4),n=E(n,k,y,m,q[0],3936430074,11),m=E(m,n,k,y,q[3],3572445317,16),y=E(y,m,n,k,q[6],76029189,23),k=E(k,y,m,n,q[9],3654602809,4),n=E(n,k,y,m,q[12],3873151461,11),m=E(m,n,k,y,q[15],530742520,16),y=E(y,m,n,k,q[2],3299628645,23),k=D(k,y,m,n,q[0],4096336452,6),n=D(n,k,y,m,q[7],1126891415,10),m=D(m,n,k,y,q[14],2878612391,15),y=D(y,m,n,k,q[5],4237533241,21),k=D(k,y,m,n,q[12],1700485571,6),n=D(n,k,y,m,q[3],2399980690,10),m=D(m,n,k,y,q[10],4293915773,15),y=D(y,m,n,k,q[1],2240044497,21),k=D(k,y,m,n,q[8],1873313359,6),n=D(n,k,y,m,q[15],4264355552,10),m=D(m,n,k,y,q[6],2734768916,15),y=D(y,m,n,k,q[13],1309151649,21),k=D(k,y,m,n,q[4],4149444226,6),n=D(n,k,y,m,q[11],3174756917,10),m=D(m,n,k,y,q[2],718787259,15),y=D(y,m,n,k,q[9],3951481745,21),this._a=this._a+k|0,this._b=this._b+y|0,this._c=this._c+m|0,this._d=this._d+n|0},X.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 q=j.allocUnsafe(16);return q.writeInt32LE(this._a,0),q.writeInt32LE(this._b,4),q.writeInt32LE(this._c,8),q.writeInt32LE(this._d,12),q};function W(q,S){return q<<S|q>>>32-S}function T(q,S,k,y,m,n,h){return W(q+(S&k|~S&y)+m+n|0,h)+S|0}function F(q,S,k,y,m,n,h){return W(q+(S&y|k&~y)+m+n|0,h)+S|0}function E(q,S,k,y,m,n,h){return W(q+(S^k^y)+m+n|0,h)+S|0}function D(q,S,k,y,m,n,h){return W(q+(k^(S|~y))+m+n|0,h)+S|0}_.exports=X}),cm=E$(($,_)=>{var I=v6().Buffer,J=km();function j(G,X,W,T){if(!I.isBuffer(G))G=I.from(G,"binary");if(X){if(!I.isBuffer(X))X=I.from(X,"binary");if(X.length!==8)throw RangeError("salt should be Buffer with 8 byte length")}var F=W/8,E=I.alloc(F),D=I.alloc(T||0),q=I.alloc(0);while(F>0||T>0){var S=new J;if(S.update(q),S.update(G),X)S.update(X);q=S.digest();var k=0;if(F>0){var y=E.length-F;k=Math.min(F,q.length),q.copy(E,y,0,k),F-=k}if(k<q.length&&T>0){var m=D.length-T,n=Math.min(T,q.length-k);q.copy(D,m,k,k+n),T-=n}}return q.fill(0),{key:E,iv:D}}_.exports=j}),xN=E$(($)=>{var _=(Mv(),X1(K4));$.createCipher=$.Cipher=_.createCipher,$.createCipheriv=$.Cipheriv=_.createCipheriv,$.createDecipher=$.Decipher=_.createDecipher,$.createDecipheriv=$.Decipheriv=_.createDecipheriv,$.listCiphers=$.getCiphers=_.getCiphers}),xm=E$(($,_)=>{var I=/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,J=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,j=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,G=cm(),X=xN(),W=v6().Buffer;_.exports=function(T,F){var E=T.toString(),D=E.match(I),q;if(!D){var S=E.match(j);q=W.from(S[2].replace(/[\r\n]/g,""),"base64")}else{var k="aes"+D[1],y=W.from(D[2],"hex"),m=W.from(D[3].replace(/[\r\n]/g,""),"base64"),n=G(F,y.slice(0,8),parseInt(D[1],10)).key,h=[],p=X.createDecipheriv(k,n,y);h.push(p.update(m)),h.push(p.final()),q=W.concat(h)}var s=E.match(J)[1];return{tag:s,data:q}}}),fN=E$(($,_)=>{var I=Nm(),J=Bm(),j=xm(),G=xN(),X=PN().pbkdf2Sync,W=v6().Buffer;function T(E,D){var q=E.algorithm.decrypt.kde.kdeparams.salt,S=parseInt(E.algorithm.decrypt.kde.kdeparams.iters.toString(),10),k=J[E.algorithm.decrypt.cipher.algo.join(".")],y=E.algorithm.decrypt.cipher.iv,m=E.subjectPrivateKey,n=parseInt(k.split("-")[1],10)/8,h=X(D,q,S,n,"sha1"),p=G.createDecipheriv(k,h,y),s=[];return s.push(p.update(m)),s.push(p.final()),W.concat(s)}function F(E){var D;if(typeof E==="object"&&!W.isBuffer(E))D=E.passphrase,E=E.key;if(typeof E==="string")E=W.from(E);var q=j(E,D),S=q.tag,k=q.data,y,m;switch(S){case"CERTIFICATE":m=I.certificate.decode(k,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":if(!m)m=I.PublicKey.decode(k,"der");switch(y=m.algorithm.algorithm.join("."),y){case"1.2.840.113549.1.1.1":return I.RSAPublicKey.decode(m.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return m.subjectPrivateKey=m.subjectPublicKey,{type:"ec",data:m};case"1.2.840.10040.4.1":return m.algorithm.params.pub_key=I.DSAparam.decode(m.subjectPublicKey.data,"der"),{type:"dsa",data:m.algorithm.params};default:throw Error("unknown key id "+y)}case"ENCRYPTED PRIVATE KEY":k=I.EncryptedPrivateKey.decode(k,"der"),k=T(k,D);case"PRIVATE KEY":switch(m=I.PrivateKey.decode(k,"der"),y=m.algorithm.algorithm.join("."),y){case"1.2.840.113549.1.1.1":return I.RSAPrivateKey.decode(m.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:m.algorithm.curve,privateKey:I.ECPrivateKey.decode(m.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return m.algorithm.params.priv_key=I.DSAparam.decode(m.subjectPrivateKey,"der"),{type:"dsa",params:m.algorithm.params};default:throw Error("unknown key id "+y)}case"RSA PUBLIC KEY":return I.RSAPublicKey.decode(k,"der");case"RSA PRIVATE KEY":return I.RSAPrivateKey.decode(k,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:I.DSAPrivateKey.decode(k,"der")};case"EC PRIVATE KEY":return k=I.ECPrivateKey.decode(k,"der"),{curve:k.parameters.value,privateKey:k.privateKey};default:throw Error("unknown key type "+S)}}F.signature=I.signature,_.exports=F}),yN=E$(($,_)=>{var I=HD(),J=v6().Buffer;_.exports=function(G,X){var W=J.alloc(0),T=0,F;while(W.length<X)F=j(T++),W=J.concat([W,I("sha1").update(G).update(F).digest()]);return W.slice(0,X)};function j(G){var X=J.allocUnsafe(4);return X.writeUInt32BE(G,0),X}}),bN=E$(($,_)=>{_.exports=function(I,J){var j=I.length,G=-1;while(++G<j)I[G]^=J[G];return I}}),JA=E$(($,_)=>{(function(I,J){function j(Y,O){if(!Y)throw Error(O||"Assertion failed")}function G(Y,O){Y.super_=O;var H=function(){};H.prototype=O.prototype,Y.prototype=new H,Y.prototype.constructor=Y}function X(Y,O,H){if(X.isBN(Y))return Y;if(this.negative=0,this.words=null,this.length=0,this.red=null,Y!==null){if(O==="le"||O==="be")H=O,O=10;this._init(Y||0,O||10,H||"be")}}if(typeof I==="object")I.exports=X;else J.BN=X;X.BN=X,X.wordSize=26;var W;try{if(typeof window<"u"&&typeof window.Buffer<"u")W=window.Buffer;else W=(j_(),X1(__)).Buffer}catch(Y){}X.isBN=function(Y){if(Y instanceof X)return!0;return Y!==null&&typeof Y==="object"&&Y.constructor.wordSize===X.wordSize&&Array.isArray(Y.words)},X.max=function(Y,O){if(Y.cmp(O)>0)return Y;return O},X.min=function(Y,O){if(Y.cmp(O)<0)return Y;return O},X.prototype._init=function(Y,O,H){if(typeof Y==="number")return this._initNumber(Y,O,H);if(typeof Y==="object")return this._initArray(Y,O,H);if(O==="hex")O=16;j(O===(O|0)&&O>=2&&O<=36),Y=Y.toString().replace(/\s+/g,"");var Z=0;if(Y[0]==="-")Z++,this.negative=1;if(Z<Y.length){if(O===16)this._parseHex(Y,Z,H);else if(this._parseBase(Y,O,Z),H==="le")this._initArray(this.toArray(),O,H)}},X.prototype._initNumber=function(Y,O,H){if(Y<0)this.negative=1,Y=-Y;if(Y<67108864)this.words=[Y&67108863],this.length=1;else if(Y<4503599627370496)this.words=[Y&67108863,Y/67108864&67108863],this.length=2;else j(Y<9007199254740992),this.words=[Y&67108863,Y/67108864&67108863,1],this.length=3;if(H!=="le")return;this._initArray(this.toArray(),O,H)},X.prototype._initArray=function(Y,O,H){if(j(typeof Y.length==="number"),Y.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Y.length/3),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var K,w,B=0;if(H==="be"){for(Z=Y.length-1,K=0;Z>=0;Z-=3)if(w=Y[Z]|Y[Z-1]<<8|Y[Z-2]<<16,this.words[K]|=w<<B&67108863,this.words[K+1]=w>>>26-B&67108863,B+=24,B>=26)B-=26,K++}else if(H==="le"){for(Z=0,K=0;Z<Y.length;Z+=3)if(w=Y[Z]|Y[Z+1]<<8|Y[Z+2]<<16,this.words[K]|=w<<B&67108863,this.words[K+1]=w>>>26-B&67108863,B+=24,B>=26)B-=26,K++}return this.strip()};function T(Y,O){var H=Y.charCodeAt(O);if(H>=65&&H<=70)return H-55;else if(H>=97&&H<=102)return H-87;else return H-48&15}function F(Y,O,H){var Z=T(Y,H);if(H-1>=O)Z|=T(Y,H-1)<<4;return Z}X.prototype._parseHex=function(Y,O,H){this.length=Math.ceil((Y.length-O)/6),this.words=Array(this.length);for(var Z=0;Z<this.length;Z++)this.words[Z]=0;var K=0,w=0,B;if(H==="be")for(Z=Y.length-1;Z>=O;Z-=2)if(B=F(Y,O,Z)<<K,this.words[w]|=B&67108863,K>=18)K-=18,w+=1,this.words[w]|=B>>>26;else K+=8;else{var P=Y.length-O;for(Z=P%2===0?O+1:O;Z<Y.length;Z+=2)if(B=F(Y,O,Z)<<K,this.words[w]|=B&67108863,K>=18)K-=18,w+=1,this.words[w]|=B>>>26;else K+=8}this.strip()};function E(Y,O,H,Z){var K=0,w=Math.min(Y.length,H);for(var B=O;B<w;B++){var P=Y.charCodeAt(B)-48;if(K*=Z,P>=49)K+=P-49+10;else if(P>=17)K+=P-17+10;else K+=P}return K}X.prototype._parseBase=function(Y,O,H){this.words=[0],this.length=1;for(var Z=0,K=1;K<=67108863;K*=O)Z++;Z--,K=K/O|0;var w=Y.length-H,B=w%Z,P=Math.min(w,w-B)+H,z=0;for(var A=H;A<P;A+=Z)if(z=E(Y,A,A+Z,O),this.imuln(K),this.words[0]+z<67108864)this.words[0]+=z;else this._iaddn(z);if(B!==0){var f=1;z=E(Y,A,Y.length,O);for(A=0;A<B;A++)f*=O;if(this.imuln(f),this.words[0]+z<67108864)this.words[0]+=z;else this._iaddn(z)}this.strip()},X.prototype.copy=function(Y){Y.words=Array(this.length);for(var O=0;O<this.length;O++)Y.words[O]=this.words[O];Y.length=this.length,Y.negative=this.negative,Y.red=this.red},X.prototype.clone=function(){var Y=new X(null);return this.copy(Y),Y},X.prototype._expand=function(Y){while(this.length<Y)this.words[this.length++]=0;return this},X.prototype.strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},X.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},X.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var D=["","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"],q=[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],S=[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(X.prototype.toString=function(Y,O){Y=Y||10,O=O|0||1;var H;if(Y===16||Y==="hex"){H="";var Z=0,K=0;for(var w=0;w<this.length;w++){var B=this.words[w],P=((B<<Z|K)&16777215).toString(16);if(K=B>>>24-Z&16777215,Z+=2,Z>=26)Z-=26,w--;if(K!==0||w!==this.length-1)H=D[6-P.length]+P+H;else H=P+H}if(K!==0)H=K.toString(16)+H;while(H.length%O!==0)H="0"+H;if(this.negative!==0)H="-"+H;return H}if(Y===(Y|0)&&Y>=2&&Y<=36){var z=q[Y],A=S[Y];H="";var f=this.clone();f.negative=0;while(!f.isZero()){var c=f.modn(A).toString(Y);if(f=f.idivn(A),!f.isZero())H=D[z-c.length]+c+H;else H=c+H}if(this.isZero())H="0"+H;while(H.length%O!==0)H="0"+H;if(this.negative!==0)H="-"+H;return H}j(!1,"Base should be between 2 and 36")},X.prototype.toNumber=function(){var Y=this.words[0];if(this.length===2)Y+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)Y+=4503599627370496+this.words[1]*67108864;else if(this.length>2)j(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-Y:Y},X.prototype.toJSON=function(){return this.toString(16)},X.prototype.toBuffer=function(Y,O){return j(typeof W<"u"),this.toArrayLike(W,Y,O)},X.prototype.toArray=function(Y,O){return this.toArrayLike(Array,Y,O)},X.prototype.toArrayLike=function(Y,O,H){var Z=this.byteLength(),K=H||Math.max(1,Z);j(Z<=K,"byte array longer than desired length"),j(K>0,"Requested array length <= 0"),this.strip();var w=O==="le",B=new Y(K),P,z,A=this.clone();if(!w){for(z=0;z<K-Z;z++)B[z]=0;for(z=0;!A.isZero();z++)P=A.andln(255),A.iushrn(8),B[K-z-1]=P}else{for(z=0;!A.isZero();z++)P=A.andln(255),A.iushrn(8),B[z]=P;for(;z<K;z++)B[z]=0}return B},Math.clz32)X.prototype._countBits=function(Y){return 32-Math.clz32(Y)};else X.prototype._countBits=function(Y){var O=Y,H=0;if(O>=4096)H+=13,O>>>=13;if(O>=64)H+=7,O>>>=7;if(O>=8)H+=4,O>>>=4;if(O>=2)H+=2,O>>>=2;return H+O};X.prototype._zeroBits=function(Y){if(Y===0)return 26;var O=Y,H=0;if((O&8191)===0)H+=13,O>>>=13;if((O&127)===0)H+=7,O>>>=7;if((O&15)===0)H+=4,O>>>=4;if((O&3)===0)H+=2,O>>>=2;if((O&1)===0)H++;return H},X.prototype.bitLength=function(){var Y=this.words[this.length-1],O=this._countBits(Y);return(this.length-1)*26+O};function k(Y){var O=Array(Y.bitLength());for(var H=0;H<O.length;H++){var Z=H/26|0,K=H%26;O[H]=(Y.words[Z]&1<<K)>>>K}return O}X.prototype.zeroBits=function(){if(this.isZero())return 0;var Y=0;for(var O=0;O<this.length;O++){var H=this._zeroBits(this.words[O]);if(Y+=H,H!==26)break}return Y},X.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},X.prototype.toTwos=function(Y){if(this.negative!==0)return this.abs().inotn(Y).iaddn(1);return this.clone()},X.prototype.fromTwos=function(Y){if(this.testn(Y-1))return this.notn(Y).iaddn(1).ineg();return this.clone()},X.prototype.isNeg=function(){return this.negative!==0},X.prototype.neg=function(){return this.clone().ineg()},X.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},X.prototype.iuor=function(Y){while(this.length<Y.length)this.words[this.length++]=0;for(var O=0;O<Y.length;O++)this.words[O]=this.words[O]|Y.words[O];return this.strip()},X.prototype.ior=function(Y){return j((this.negative|Y.negative)===0),this.iuor(Y)},X.prototype.or=function(Y){if(this.length>Y.length)return this.clone().ior(Y);return Y.clone().ior(this)},X.prototype.uor=function(Y){if(this.length>Y.length)return this.clone().iuor(Y);return Y.clone().iuor(this)},X.prototype.iuand=function(Y){var O;if(this.length>Y.length)O=Y;else O=this;for(var H=0;H<O.length;H++)this.words[H]=this.words[H]&Y.words[H];return this.length=O.length,this.strip()},X.prototype.iand=function(Y){return j((this.negative|Y.negative)===0),this.iuand(Y)},X.prototype.and=function(Y){if(this.length>Y.length)return this.clone().iand(Y);return Y.clone().iand(this)},X.prototype.uand=function(Y){if(this.length>Y.length)return this.clone().iuand(Y);return Y.clone().iuand(this)},X.prototype.iuxor=function(Y){var O,H;if(this.length>Y.length)O=this,H=Y;else O=Y,H=this;for(var Z=0;Z<H.length;Z++)this.words[Z]=O.words[Z]^H.words[Z];if(this!==O)for(;Z<O.length;Z++)this.words[Z]=O.words[Z];return this.length=O.length,this.strip()},X.prototype.ixor=function(Y){return j((this.negative|Y.negative)===0),this.iuxor(Y)},X.prototype.xor=function(Y){if(this.length>Y.length)return this.clone().ixor(Y);return Y.clone().ixor(this)},X.prototype.uxor=function(Y){if(this.length>Y.length)return this.clone().iuxor(Y);return Y.clone().iuxor(this)},X.prototype.inotn=function(Y){j(typeof Y==="number"&&Y>=0);var O=Math.ceil(Y/26)|0,H=Y%26;if(this._expand(O),H>0)O--;for(var Z=0;Z<O;Z++)this.words[Z]=~this.words[Z]&67108863;if(H>0)this.words[Z]=~this.words[Z]&67108863>>26-H;return this.strip()},X.prototype.notn=function(Y){return this.clone().inotn(Y)},X.prototype.setn=function(Y,O){j(typeof Y==="number"&&Y>=0);var H=Y/26|0,Z=Y%26;if(this._expand(H+1),O)this.words[H]=this.words[H]|1<<Z;else this.words[H]=this.words[H]&~(1<<Z);return this.strip()},X.prototype.iadd=function(Y){var O;if(this.negative!==0&&Y.negative===0)return this.negative=0,O=this.isub(Y),this.negative^=1,this._normSign();else if(this.negative===0&&Y.negative!==0)return Y.negative=0,O=this.isub(Y),Y.negative=1,O._normSign();var H,Z;if(this.length>Y.length)H=this,Z=Y;else H=Y,Z=this;var K=0;for(var w=0;w<Z.length;w++)O=(H.words[w]|0)+(Z.words[w]|0)+K,this.words[w]=O&67108863,K=O>>>26;for(;K!==0&&w<H.length;w++)O=(H.words[w]|0)+K,this.words[w]=O&67108863,K=O>>>26;if(this.length=H.length,K!==0)this.words[this.length]=K,this.length++;else if(H!==this)for(;w<H.length;w++)this.words[w]=H.words[w];return this},X.prototype.add=function(Y){var O;if(Y.negative!==0&&this.negative===0)return Y.negative=0,O=this.sub(Y),Y.negative^=1,O;else if(Y.negative===0&&this.negative!==0)return this.negative=0,O=Y.sub(this),this.negative=1,O;if(this.length>Y.length)return this.clone().iadd(Y);return Y.clone().iadd(this)},X.prototype.isub=function(Y){if(Y.negative!==0){Y.negative=0;var O=this.iadd(Y);return Y.negative=1,O._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Y),this.negative=1,this._normSign();var H=this.cmp(Y);if(H===0)return this.negative=0,this.length=1,this.words[0]=0,this;var Z,K;if(H>0)Z=this,K=Y;else Z=Y,K=this;var w=0;for(var B=0;B<K.length;B++)O=(Z.words[B]|0)-(K.words[B]|0)+w,w=O>>26,this.words[B]=O&67108863;for(;w!==0&&B<Z.length;B++)O=(Z.words[B]|0)+w,w=O>>26,this.words[B]=O&67108863;if(w===0&&B<Z.length&&Z!==this)for(;B<Z.length;B++)this.words[B]=Z.words[B];if(this.length=Math.max(this.length,B),Z!==this)this.negative=1;return this.strip()},X.prototype.sub=function(Y){return this.clone().isub(Y)};function y(Y,O,H){H.negative=O.negative^Y.negative;var Z=Y.length+O.length|0;H.length=Z,Z=Z-1|0;var K=Y.words[0]|0,w=O.words[0]|0,B=K*w,P=B&67108863,z=B/67108864|0;H.words[0]=P;for(var A=1;A<Z;A++){var f=z>>>26,c=z&67108863,l=Math.min(A,O.length-1);for(var Q0=Math.max(0,A-Y.length+1);Q0<=l;Q0++){var F0=A-Q0|0;K=Y.words[F0]|0,w=O.words[Q0]|0,B=K*w+c,f+=B/67108864|0,c=B&67108863}H.words[A]=c|0,z=f|0}if(z!==0)H.words[A]=z|0;else H.length--;return H.strip()}var m=function(Y,O,H){var Z=Y.words,K=O.words,w=H.words,B=0,P,z,A,f=Z[0]|0,c=f&8191,l=f>>>13,Q0=Z[1]|0,F0=Q0&8191,P0=Q0>>>13,E0=Z[2]|0,_0=E0&8191,$0=E0>>>13,G0=Z[3]|0,K0=G0&8191,q0=G0>>>13,z0=Z[4]|0,a=z0&8191,J0=z0>>>13,y0=Z[5]|0,N0=y0&8191,A0=y0>>>13,$$=Z[6]|0,w0=$$&8191,h0=$$>>>13,H$=Z[7]|0,l0=H$&8191,j$=H$>>>13,l$=Z[8]|0,C0=l$&8191,x0=l$>>>13,T$=Z[9]|0,U$=T$&8191,G$=T$>>>13,T0=K[0]|0,u0=T0&8191,p0=T0>>>13,R$=K[1]|0,d=R$&8191,O0=R$>>>13,X0=K[2]|0,k0=X0&8191,d0=X0>>>13,r=K[3]|0,S0=r&8191,b0=r>>>13,D0=K[4]|0,g0=D0&8191,m0=D0>>>13,u$=K[5]|0,Y$=u$&8191,Y0=u$>>>13,B0=K[6]|0,s0=B0&8191,a0=B0>>>13,g$=K[7]|0,D$=g$&8191,F$=g$>>>13,A1=K[8]|0,c$=A1&8191,q$=A1>>>13,Y1=K[9]|0,O$=Y1&8191,V$=Y1>>>13;H.negative=Y.negative^O.negative,H.length=19,P=Math.imul(c,u0),z=Math.imul(c,p0),z=z+Math.imul(l,u0)|0,A=Math.imul(l,p0);var w1=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(w1>>>26)|0,w1&=67108863,P=Math.imul(F0,u0),z=Math.imul(F0,p0),z=z+Math.imul(P0,u0)|0,A=Math.imul(P0,p0),P=P+Math.imul(c,d)|0,z=z+Math.imul(c,O0)|0,z=z+Math.imul(l,d)|0,A=A+Math.imul(l,O0)|0;var j1=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(j1>>>26)|0,j1&=67108863,P=Math.imul(_0,u0),z=Math.imul(_0,p0),z=z+Math.imul($0,u0)|0,A=Math.imul($0,p0),P=P+Math.imul(F0,d)|0,z=z+Math.imul(F0,O0)|0,z=z+Math.imul(P0,d)|0,A=A+Math.imul(P0,O0)|0,P=P+Math.imul(c,k0)|0,z=z+Math.imul(c,d0)|0,z=z+Math.imul(l,k0)|0,A=A+Math.imul(l,d0)|0;var v1=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(v1>>>26)|0,v1&=67108863,P=Math.imul(K0,u0),z=Math.imul(K0,p0),z=z+Math.imul(q0,u0)|0,A=Math.imul(q0,p0),P=P+Math.imul(_0,d)|0,z=z+Math.imul(_0,O0)|0,z=z+Math.imul($0,d)|0,A=A+Math.imul($0,O0)|0,P=P+Math.imul(F0,k0)|0,z=z+Math.imul(F0,d0)|0,z=z+Math.imul(P0,k0)|0,A=A+Math.imul(P0,d0)|0,P=P+Math.imul(c,S0)|0,z=z+Math.imul(c,b0)|0,z=z+Math.imul(l,S0)|0,A=A+Math.imul(l,b0)|0;var I2=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(I2>>>26)|0,I2&=67108863,P=Math.imul(a,u0),z=Math.imul(a,p0),z=z+Math.imul(J0,u0)|0,A=Math.imul(J0,p0),P=P+Math.imul(K0,d)|0,z=z+Math.imul(K0,O0)|0,z=z+Math.imul(q0,d)|0,A=A+Math.imul(q0,O0)|0,P=P+Math.imul(_0,k0)|0,z=z+Math.imul(_0,d0)|0,z=z+Math.imul($0,k0)|0,A=A+Math.imul($0,d0)|0,P=P+Math.imul(F0,S0)|0,z=z+Math.imul(F0,b0)|0,z=z+Math.imul(P0,S0)|0,A=A+Math.imul(P0,b0)|0,P=P+Math.imul(c,g0)|0,z=z+Math.imul(c,m0)|0,z=z+Math.imul(l,g0)|0,A=A+Math.imul(l,m0)|0;var W1=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(W1>>>26)|0,W1&=67108863,P=Math.imul(N0,u0),z=Math.imul(N0,p0),z=z+Math.imul(A0,u0)|0,A=Math.imul(A0,p0),P=P+Math.imul(a,d)|0,z=z+Math.imul(a,O0)|0,z=z+Math.imul(J0,d)|0,A=A+Math.imul(J0,O0)|0,P=P+Math.imul(K0,k0)|0,z=z+Math.imul(K0,d0)|0,z=z+Math.imul(q0,k0)|0,A=A+Math.imul(q0,d0)|0,P=P+Math.imul(_0,S0)|0,z=z+Math.imul(_0,b0)|0,z=z+Math.imul($0,S0)|0,A=A+Math.imul($0,b0)|0,P=P+Math.imul(F0,g0)|0,z=z+Math.imul(F0,m0)|0,z=z+Math.imul(P0,g0)|0,A=A+Math.imul(P0,m0)|0,P=P+Math.imul(c,Y$)|0,z=z+Math.imul(c,Y0)|0,z=z+Math.imul(l,Y$)|0,A=A+Math.imul(l,Y0)|0;var A2=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(A2>>>26)|0,A2&=67108863,P=Math.imul(w0,u0),z=Math.imul(w0,p0),z=z+Math.imul(h0,u0)|0,A=Math.imul(h0,p0),P=P+Math.imul(N0,d)|0,z=z+Math.imul(N0,O0)|0,z=z+Math.imul(A0,d)|0,A=A+Math.imul(A0,O0)|0,P=P+Math.imul(a,k0)|0,z=z+Math.imul(a,d0)|0,z=z+Math.imul(J0,k0)|0,A=A+Math.imul(J0,d0)|0,P=P+Math.imul(K0,S0)|0,z=z+Math.imul(K0,b0)|0,z=z+Math.imul(q0,S0)|0,A=A+Math.imul(q0,b0)|0,P=P+Math.imul(_0,g0)|0,z=z+Math.imul(_0,m0)|0,z=z+Math.imul($0,g0)|0,A=A+Math.imul($0,m0)|0,P=P+Math.imul(F0,Y$)|0,z=z+Math.imul(F0,Y0)|0,z=z+Math.imul(P0,Y$)|0,A=A+Math.imul(P0,Y0)|0,P=P+Math.imul(c,s0)|0,z=z+Math.imul(c,a0)|0,z=z+Math.imul(l,s0)|0,A=A+Math.imul(l,a0)|0;var c2=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(c2>>>26)|0,c2&=67108863,P=Math.imul(l0,u0),z=Math.imul(l0,p0),z=z+Math.imul(j$,u0)|0,A=Math.imul(j$,p0),P=P+Math.imul(w0,d)|0,z=z+Math.imul(w0,O0)|0,z=z+Math.imul(h0,d)|0,A=A+Math.imul(h0,O0)|0,P=P+Math.imul(N0,k0)|0,z=z+Math.imul(N0,d0)|0,z=z+Math.imul(A0,k0)|0,A=A+Math.imul(A0,d0)|0,P=P+Math.imul(a,S0)|0,z=z+Math.imul(a,b0)|0,z=z+Math.imul(J0,S0)|0,A=A+Math.imul(J0,b0)|0,P=P+Math.imul(K0,g0)|0,z=z+Math.imul(K0,m0)|0,z=z+Math.imul(q0,g0)|0,A=A+Math.imul(q0,m0)|0,P=P+Math.imul(_0,Y$)|0,z=z+Math.imul(_0,Y0)|0,z=z+Math.imul($0,Y$)|0,A=A+Math.imul($0,Y0)|0,P=P+Math.imul(F0,s0)|0,z=z+Math.imul(F0,a0)|0,z=z+Math.imul(P0,s0)|0,A=A+Math.imul(P0,a0)|0,P=P+Math.imul(c,D$)|0,z=z+Math.imul(c,F$)|0,z=z+Math.imul(l,D$)|0,A=A+Math.imul(l,F$)|0;var M2=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(M2>>>26)|0,M2&=67108863,P=Math.imul(C0,u0),z=Math.imul(C0,p0),z=z+Math.imul(x0,u0)|0,A=Math.imul(x0,p0),P=P+Math.imul(l0,d)|0,z=z+Math.imul(l0,O0)|0,z=z+Math.imul(j$,d)|0,A=A+Math.imul(j$,O0)|0,P=P+Math.imul(w0,k0)|0,z=z+Math.imul(w0,d0)|0,z=z+Math.imul(h0,k0)|0,A=A+Math.imul(h0,d0)|0,P=P+Math.imul(N0,S0)|0,z=z+Math.imul(N0,b0)|0,z=z+Math.imul(A0,S0)|0,A=A+Math.imul(A0,b0)|0,P=P+Math.imul(a,g0)|0,z=z+Math.imul(a,m0)|0,z=z+Math.imul(J0,g0)|0,A=A+Math.imul(J0,m0)|0,P=P+Math.imul(K0,Y$)|0,z=z+Math.imul(K0,Y0)|0,z=z+Math.imul(q0,Y$)|0,A=A+Math.imul(q0,Y0)|0,P=P+Math.imul(_0,s0)|0,z=z+Math.imul(_0,a0)|0,z=z+Math.imul($0,s0)|0,A=A+Math.imul($0,a0)|0,P=P+Math.imul(F0,D$)|0,z=z+Math.imul(F0,F$)|0,z=z+Math.imul(P0,D$)|0,A=A+Math.imul(P0,F$)|0,P=P+Math.imul(c,c$)|0,z=z+Math.imul(c,q$)|0,z=z+Math.imul(l,c$)|0,A=A+Math.imul(l,q$)|0;var Gv=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(Gv>>>26)|0,Gv&=67108863,P=Math.imul(U$,u0),z=Math.imul(U$,p0),z=z+Math.imul(G$,u0)|0,A=Math.imul(G$,p0),P=P+Math.imul(C0,d)|0,z=z+Math.imul(C0,O0)|0,z=z+Math.imul(x0,d)|0,A=A+Math.imul(x0,O0)|0,P=P+Math.imul(l0,k0)|0,z=z+Math.imul(l0,d0)|0,z=z+Math.imul(j$,k0)|0,A=A+Math.imul(j$,d0)|0,P=P+Math.imul(w0,S0)|0,z=z+Math.imul(w0,b0)|0,z=z+Math.imul(h0,S0)|0,A=A+Math.imul(h0,b0)|0,P=P+Math.imul(N0,g0)|0,z=z+Math.imul(N0,m0)|0,z=z+Math.imul(A0,g0)|0,A=A+Math.imul(A0,m0)|0,P=P+Math.imul(a,Y$)|0,z=z+Math.imul(a,Y0)|0,z=z+Math.imul(J0,Y$)|0,A=A+Math.imul(J0,Y0)|0,P=P+Math.imul(K0,s0)|0,z=z+Math.imul(K0,a0)|0,z=z+Math.imul(q0,s0)|0,A=A+Math.imul(q0,a0)|0,P=P+Math.imul(_0,D$)|0,z=z+Math.imul(_0,F$)|0,z=z+Math.imul($0,D$)|0,A=A+Math.imul($0,F$)|0,P=P+Math.imul(F0,c$)|0,z=z+Math.imul(F0,q$)|0,z=z+Math.imul(P0,c$)|0,A=A+Math.imul(P0,q$)|0,P=P+Math.imul(c,O$)|0,z=z+Math.imul(c,V$)|0,z=z+Math.imul(l,O$)|0,A=A+Math.imul(l,V$)|0;var f1=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(f1>>>26)|0,f1&=67108863,P=Math.imul(U$,d),z=Math.imul(U$,O0),z=z+Math.imul(G$,d)|0,A=Math.imul(G$,O0),P=P+Math.imul(C0,k0)|0,z=z+Math.imul(C0,d0)|0,z=z+Math.imul(x0,k0)|0,A=A+Math.imul(x0,d0)|0,P=P+Math.imul(l0,S0)|0,z=z+Math.imul(l0,b0)|0,z=z+Math.imul(j$,S0)|0,A=A+Math.imul(j$,b0)|0,P=P+Math.imul(w0,g0)|0,z=z+Math.imul(w0,m0)|0,z=z+Math.imul(h0,g0)|0,A=A+Math.imul(h0,m0)|0,P=P+Math.imul(N0,Y$)|0,z=z+Math.imul(N0,Y0)|0,z=z+Math.imul(A0,Y$)|0,A=A+Math.imul(A0,Y0)|0,P=P+Math.imul(a,s0)|0,z=z+Math.imul(a,a0)|0,z=z+Math.imul(J0,s0)|0,A=A+Math.imul(J0,a0)|0,P=P+Math.imul(K0,D$)|0,z=z+Math.imul(K0,F$)|0,z=z+Math.imul(q0,D$)|0,A=A+Math.imul(q0,F$)|0,P=P+Math.imul(_0,c$)|0,z=z+Math.imul(_0,q$)|0,z=z+Math.imul($0,c$)|0,A=A+Math.imul($0,q$)|0,P=P+Math.imul(F0,O$)|0,z=z+Math.imul(F0,V$)|0,z=z+Math.imul(P0,O$)|0,A=A+Math.imul(P0,V$)|0;var o1=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(o1>>>26)|0,o1&=67108863,P=Math.imul(U$,k0),z=Math.imul(U$,d0),z=z+Math.imul(G$,k0)|0,A=Math.imul(G$,d0),P=P+Math.imul(C0,S0)|0,z=z+Math.imul(C0,b0)|0,z=z+Math.imul(x0,S0)|0,A=A+Math.imul(x0,b0)|0,P=P+Math.imul(l0,g0)|0,z=z+Math.imul(l0,m0)|0,z=z+Math.imul(j$,g0)|0,A=A+Math.imul(j$,m0)|0,P=P+Math.imul(w0,Y$)|0,z=z+Math.imul(w0,Y0)|0,z=z+Math.imul(h0,Y$)|0,A=A+Math.imul(h0,Y0)|0,P=P+Math.imul(N0,s0)|0,z=z+Math.imul(N0,a0)|0,z=z+Math.imul(A0,s0)|0,A=A+Math.imul(A0,a0)|0,P=P+Math.imul(a,D$)|0,z=z+Math.imul(a,F$)|0,z=z+Math.imul(J0,D$)|0,A=A+Math.imul(J0,F$)|0,P=P+Math.imul(K0,c$)|0,z=z+Math.imul(K0,q$)|0,z=z+Math.imul(q0,c$)|0,A=A+Math.imul(q0,q$)|0,P=P+Math.imul(_0,O$)|0,z=z+Math.imul(_0,V$)|0,z=z+Math.imul($0,O$)|0,A=A+Math.imul($0,V$)|0;var E2=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(E2>>>26)|0,E2&=67108863,P=Math.imul(U$,S0),z=Math.imul(U$,b0),z=z+Math.imul(G$,S0)|0,A=Math.imul(G$,b0),P=P+Math.imul(C0,g0)|0,z=z+Math.imul(C0,m0)|0,z=z+Math.imul(x0,g0)|0,A=A+Math.imul(x0,m0)|0,P=P+Math.imul(l0,Y$)|0,z=z+Math.imul(l0,Y0)|0,z=z+Math.imul(j$,Y$)|0,A=A+Math.imul(j$,Y0)|0,P=P+Math.imul(w0,s0)|0,z=z+Math.imul(w0,a0)|0,z=z+Math.imul(h0,s0)|0,A=A+Math.imul(h0,a0)|0,P=P+Math.imul(N0,D$)|0,z=z+Math.imul(N0,F$)|0,z=z+Math.imul(A0,D$)|0,A=A+Math.imul(A0,F$)|0,P=P+Math.imul(a,c$)|0,z=z+Math.imul(a,q$)|0,z=z+Math.imul(J0,c$)|0,A=A+Math.imul(J0,q$)|0,P=P+Math.imul(K0,O$)|0,z=z+Math.imul(K0,V$)|0,z=z+Math.imul(q0,O$)|0,A=A+Math.imul(q0,V$)|0;var x2=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(x2>>>26)|0,x2&=67108863,P=Math.imul(U$,g0),z=Math.imul(U$,m0),z=z+Math.imul(G$,g0)|0,A=Math.imul(G$,m0),P=P+Math.imul(C0,Y$)|0,z=z+Math.imul(C0,Y0)|0,z=z+Math.imul(x0,Y$)|0,A=A+Math.imul(x0,Y0)|0,P=P+Math.imul(l0,s0)|0,z=z+Math.imul(l0,a0)|0,z=z+Math.imul(j$,s0)|0,A=A+Math.imul(j$,a0)|0,P=P+Math.imul(w0,D$)|0,z=z+Math.imul(w0,F$)|0,z=z+Math.imul(h0,D$)|0,A=A+Math.imul(h0,F$)|0,P=P+Math.imul(N0,c$)|0,z=z+Math.imul(N0,q$)|0,z=z+Math.imul(A0,c$)|0,A=A+Math.imul(A0,q$)|0,P=P+Math.imul(a,O$)|0,z=z+Math.imul(a,V$)|0,z=z+Math.imul(J0,O$)|0,A=A+Math.imul(J0,V$)|0;var W2=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(W2>>>26)|0,W2&=67108863,P=Math.imul(U$,Y$),z=Math.imul(U$,Y0),z=z+Math.imul(G$,Y$)|0,A=Math.imul(G$,Y0),P=P+Math.imul(C0,s0)|0,z=z+Math.imul(C0,a0)|0,z=z+Math.imul(x0,s0)|0,A=A+Math.imul(x0,a0)|0,P=P+Math.imul(l0,D$)|0,z=z+Math.imul(l0,F$)|0,z=z+Math.imul(j$,D$)|0,A=A+Math.imul(j$,F$)|0,P=P+Math.imul(w0,c$)|0,z=z+Math.imul(w0,q$)|0,z=z+Math.imul(h0,c$)|0,A=A+Math.imul(h0,q$)|0,P=P+Math.imul(N0,O$)|0,z=z+Math.imul(N0,V$)|0,z=z+Math.imul(A0,O$)|0,A=A+Math.imul(A0,V$)|0;var p2=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(p2>>>26)|0,p2&=67108863,P=Math.imul(U$,s0),z=Math.imul(U$,a0),z=z+Math.imul(G$,s0)|0,A=Math.imul(G$,a0),P=P+Math.imul(C0,D$)|0,z=z+Math.imul(C0,F$)|0,z=z+Math.imul(x0,D$)|0,A=A+Math.imul(x0,F$)|0,P=P+Math.imul(l0,c$)|0,z=z+Math.imul(l0,q$)|0,z=z+Math.imul(j$,c$)|0,A=A+Math.imul(j$,q$)|0,P=P+Math.imul(w0,O$)|0,z=z+Math.imul(w0,V$)|0,z=z+Math.imul(h0,O$)|0,A=A+Math.imul(h0,V$)|0;var f2=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(f2>>>26)|0,f2&=67108863,P=Math.imul(U$,D$),z=Math.imul(U$,F$),z=z+Math.imul(G$,D$)|0,A=Math.imul(G$,F$),P=P+Math.imul(C0,c$)|0,z=z+Math.imul(C0,q$)|0,z=z+Math.imul(x0,c$)|0,A=A+Math.imul(x0,q$)|0,P=P+Math.imul(l0,O$)|0,z=z+Math.imul(l0,V$)|0,z=z+Math.imul(j$,O$)|0,A=A+Math.imul(j$,V$)|0;var V2=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(V2>>>26)|0,V2&=67108863,P=Math.imul(U$,c$),z=Math.imul(U$,q$),z=z+Math.imul(G$,c$)|0,A=Math.imul(G$,q$),P=P+Math.imul(C0,O$)|0,z=z+Math.imul(C0,V$)|0,z=z+Math.imul(x0,O$)|0,A=A+Math.imul(x0,V$)|0;var T2=(B+P|0)+((z&8191)<<13)|0;B=(A+(z>>>13)|0)+(T2>>>26)|0,T2&=67108863,P=Math.imul(U$,O$),z=Math.imul(U$,V$),z=z+Math.imul(G$,O$)|0,A=Math.imul(G$,V$);var g2=(B+P|0)+((z&8191)<<13)|0;if(B=(A+(z>>>13)|0)+(g2>>>26)|0,g2&=67108863,w[0]=w1,w[1]=j1,w[2]=v1,w[3]=I2,w[4]=W1,w[5]=A2,w[6]=c2,w[7]=M2,w[8]=Gv,w[9]=f1,w[10]=o1,w[11]=E2,w[12]=x2,w[13]=W2,w[14]=p2,w[15]=f2,w[16]=V2,w[17]=T2,w[18]=g2,B!==0)w[19]=B,H.length++;return H};if(!Math.imul)m=y;function n(Y,O,H){H.negative=O.negative^Y.negative,H.length=Y.length+O.length;var Z=0,K=0;for(var w=0;w<H.length-1;w++){var B=K;K=0;var P=Z&67108863,z=Math.min(w,O.length-1);for(var A=Math.max(0,w-Y.length+1);A<=z;A++){var f=w-A,c=Y.words[f]|0,l=O.words[A]|0,Q0=c*l,F0=Q0&67108863;B=B+(Q0/67108864|0)|0,F0=F0+P|0,P=F0&67108863,B=B+(F0>>>26)|0,K+=B>>>26,B&=67108863}H.words[w]=P,Z=B,B=K}if(Z!==0)H.words[w]=Z;else H.length--;return H.strip()}function h(Y,O,H){var Z=new p;return Z.mulp(Y,O,H)}X.prototype.mulTo=function(Y,O){var H,Z=this.length+Y.length;if(this.length===10&&Y.length===10)H=m(this,Y,O);else if(Z<63)H=y(this,Y,O);else if(Z<1024)H=n(this,Y,O);else H=h(this,Y,O);return H};function p(Y,O){this.x=Y,this.y=O}p.prototype.makeRBT=function(Y){var O=Array(Y),H=X.prototype._countBits(Y)-1;for(var Z=0;Z<Y;Z++)O[Z]=this.revBin(Z,H,Y);return O},p.prototype.revBin=function(Y,O,H){if(Y===0||Y===H-1)return Y;var Z=0;for(var K=0;K<O;K++)Z|=(Y&1)<<O-K-1,Y>>=1;return Z},p.prototype.permute=function(Y,O,H,Z,K,w){for(var B=0;B<w;B++)Z[B]=O[Y[B]],K[B]=H[Y[B]]},p.prototype.transform=function(Y,O,H,Z,K,w){this.permute(w,Y,O,H,Z,K);for(var B=1;B<K;B<<=1){var P=B<<1,z=Math.cos(2*Math.PI/P),A=Math.sin(2*Math.PI/P);for(var f=0;f<K;f+=P){var c=z,l=A;for(var Q0=0;Q0<B;Q0++){var F0=H[f+Q0],P0=Z[f+Q0],E0=H[f+Q0+B],_0=Z[f+Q0+B],$0=c*E0-l*_0;if(_0=c*_0+l*E0,E0=$0,H[f+Q0]=F0+E0,Z[f+Q0]=P0+_0,H[f+Q0+B]=F0-E0,Z[f+Q0+B]=P0-_0,Q0!==P)$0=z*c-A*l,l=z*l+A*c,c=$0}}}},p.prototype.guessLen13b=function(Y,O){var H=Math.max(O,Y)|1,Z=H&1,K=0;for(H=H/2|0;H;H=H>>>1)K++;return 1<<K+1+Z},p.prototype.conjugate=function(Y,O,H){if(H<=1)return;for(var Z=0;Z<H/2;Z++){var K=Y[Z];Y[Z]=Y[H-Z-1],Y[H-Z-1]=K,K=O[Z],O[Z]=-O[H-Z-1],O[H-Z-1]=-K}},p.prototype.normalize13b=function(Y,O){var H=0;for(var Z=0;Z<O/2;Z++){var K=Math.round(Y[2*Z+1]/O)*8192+Math.round(Y[2*Z]/O)+H;if(Y[Z]=K&67108863,K<67108864)H=0;else H=K/67108864|0}return Y},p.prototype.convert13b=function(Y,O,H,Z){var K=0;for(var w=0;w<O;w++)K=K+(Y[w]|0),H[2*w]=K&8191,K=K>>>13,H[2*w+1]=K&8191,K=K>>>13;for(w=2*O;w<Z;++w)H[w]=0;j(K===0),j((K&-8192)===0)},p.prototype.stub=function(Y){var O=Array(Y);for(var H=0;H<Y;H++)O[H]=0;return O},p.prototype.mulp=function(Y,O,H){var Z=2*this.guessLen13b(Y.length,O.length),K=this.makeRBT(Z),w=this.stub(Z),B=Array(Z),P=Array(Z),z=Array(Z),A=Array(Z),f=Array(Z),c=Array(Z),l=H.words;l.length=Z,this.convert13b(Y.words,Y.length,B,Z),this.convert13b(O.words,O.length,A,Z),this.transform(B,w,P,z,Z,K),this.transform(A,w,f,c,Z,K);for(var Q0=0;Q0<Z;Q0++){var F0=P[Q0]*f[Q0]-z[Q0]*c[Q0];z[Q0]=P[Q0]*c[Q0]+z[Q0]*f[Q0],P[Q0]=F0}return this.conjugate(P,z,Z),this.transform(P,z,l,w,Z,K),this.conjugate(l,w,Z),this.normalize13b(l,Z),H.negative=Y.negative^O.negative,H.length=Y.length+O.length,H.strip()},X.prototype.mul=function(Y){var O=new X(null);return O.words=Array(this.length+Y.length),this.mulTo(Y,O)},X.prototype.mulf=function(Y){var O=new X(null);return O.words=Array(this.length+Y.length),h(this,Y,O)},X.prototype.imul=function(Y){return this.clone().mulTo(Y,this)},X.prototype.imuln=function(Y){j(typeof Y==="number"),j(Y<67108864);var O=0;for(var H=0;H<this.length;H++){var Z=(this.words[H]|0)*Y,K=(Z&67108863)+(O&67108863);O>>=26,O+=Z/67108864|0,O+=K>>>26,this.words[H]=K&67108863}if(O!==0)this.words[H]=O,this.length++;return this.length=Y===0?1:this.length,this},X.prototype.muln=function(Y){return this.clone().imuln(Y)},X.prototype.sqr=function(){return this.mul(this)},X.prototype.isqr=function(){return this.imul(this.clone())},X.prototype.pow=function(Y){var O=k(Y);if(O.length===0)return new X(1);var H=this;for(var Z=0;Z<O.length;Z++,H=H.sqr())if(O[Z]!==0)break;if(++Z<O.length)for(var K=H.sqr();Z<O.length;Z++,K=K.sqr()){if(O[Z]===0)continue;H=H.mul(K)}return H},X.prototype.iushln=function(Y){j(typeof Y==="number"&&Y>=0);var O=Y%26,H=(Y-O)/26,Z=67108863>>>26-O<<26-O,K;if(O!==0){var w=0;for(K=0;K<this.length;K++){var B=this.words[K]&Z,P=(this.words[K]|0)-B<<O;this.words[K]=P|w,w=B>>>26-O}if(w)this.words[K]=w,this.length++}if(H!==0){for(K=this.length-1;K>=0;K--)this.words[K+H]=this.words[K];for(K=0;K<H;K++)this.words[K]=0;this.length+=H}return this.strip()},X.prototype.ishln=function(Y){return j(this.negative===0),this.iushln(Y)},X.prototype.iushrn=function(Y,O,H){j(typeof Y==="number"&&Y>=0);var Z;if(O)Z=(O-O%26)/26;else Z=0;var K=Y%26,w=Math.min((Y-K)/26,this.length),B=67108863^67108863>>>K<<K,P=H;if(Z-=w,Z=Math.max(0,Z),P){for(var z=0;z<w;z++)P.words[z]=this.words[z];P.length=w}if(w===0);else if(this.length>w){this.length-=w;for(z=0;z<this.length;z++)this.words[z]=this.words[z+w]}else this.words[0]=0,this.length=1;var A=0;for(z=this.length-1;z>=0&&(A!==0||z>=Z);z--){var f=this.words[z]|0;this.words[z]=A<<26-K|f>>>K,A=f&B}if(P&&A!==0)P.words[P.length++]=A;if(this.length===0)this.words[0]=0,this.length=1;return this.strip()},X.prototype.ishrn=function(Y,O,H){return j(this.negative===0),this.iushrn(Y,O,H)},X.prototype.shln=function(Y){return this.clone().ishln(Y)},X.prototype.ushln=function(Y){return this.clone().iushln(Y)},X.prototype.shrn=function(Y){return this.clone().ishrn(Y)},X.prototype.ushrn=function(Y){return this.clone().iushrn(Y)},X.prototype.testn=function(Y){j(typeof Y==="number"&&Y>=0);var O=Y%26,H=(Y-O)/26,Z=1<<O;if(this.length<=H)return!1;var K=this.words[H];return!!(K&Z)},X.prototype.imaskn=function(Y){j(typeof Y==="number"&&Y>=0);var O=Y%26,H=(Y-O)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=H)return this;if(O!==0)H++;if(this.length=Math.min(H,this.length),O!==0){var Z=67108863^67108863>>>O<<O;this.words[this.length-1]&=Z}return this.strip()},X.prototype.maskn=function(Y){return this.clone().imaskn(Y)},X.prototype.iaddn=function(Y){if(j(typeof Y==="number"),j(Y<67108864),Y<0)return this.isubn(-Y);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<Y)return this.words[0]=Y-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(Y),this.negative=1,this}return this._iaddn(Y)},X.prototype._iaddn=function(Y){this.words[0]+=Y;for(var O=0;O<this.length&&this.words[O]>=67108864;O++)if(this.words[O]-=67108864,O===this.length-1)this.words[O+1]=1;else this.words[O+1]++;return this.length=Math.max(this.length,O+1),this},X.prototype.isubn=function(Y){if(j(typeof Y==="number"),j(Y<67108864),Y<0)return this.iaddn(-Y);if(this.negative!==0)return this.negative=0,this.iaddn(Y),this.negative=1,this;if(this.words[0]-=Y,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var O=0;O<this.length&&this.words[O]<0;O++)this.words[O]+=67108864,this.words[O+1]-=1;return this.strip()},X.prototype.addn=function(Y){return this.clone().iaddn(Y)},X.prototype.subn=function(Y){return this.clone().isubn(Y)},X.prototype.iabs=function(){return this.negative=0,this},X.prototype.abs=function(){return this.clone().iabs()},X.prototype._ishlnsubmul=function(Y,O,H){var Z=Y.length+H,K;this._expand(Z);var w,B=0;for(K=0;K<Y.length;K++){w=(this.words[K+H]|0)+B;var P=(Y.words[K]|0)*O;w-=P&67108863,B=(w>>26)-(P/67108864|0),this.words[K+H]=w&67108863}for(;K<this.length-H;K++)w=(this.words[K+H]|0)+B,B=w>>26,this.words[K+H]=w&67108863;if(B===0)return this.strip();j(B===-1),B=0;for(K=0;K<this.length;K++)w=-(this.words[K]|0)+B,B=w>>26,this.words[K]=w&67108863;return this.negative=1,this.strip()},X.prototype._wordDiv=function(Y,O){var H=this.length-Y.length,Z=this.clone(),K=Y,w=K.words[K.length-1]|0,B=this._countBits(w);if(H=26-B,H!==0)K=K.ushln(H),Z.iushln(H),w=K.words[K.length-1]|0;var P=Z.length-K.length,z;if(O!=="mod"){z=new X(null),z.length=P+1,z.words=Array(z.length);for(var A=0;A<z.length;A++)z.words[A]=0}var f=Z.clone()._ishlnsubmul(K,1,P);if(f.negative===0){if(Z=f,z)z.words[P]=1}for(var c=P-1;c>=0;c--){var l=(Z.words[K.length+c]|0)*67108864+(Z.words[K.length+c-1]|0);l=Math.min(l/w|0,67108863),Z._ishlnsubmul(K,l,c);while(Z.negative!==0)if(l--,Z.negative=0,Z._ishlnsubmul(K,1,c),!Z.isZero())Z.negative^=1;if(z)z.words[c]=l}if(z)z.strip();if(Z.strip(),O!=="div"&&H!==0)Z.iushrn(H);return{div:z||null,mod:Z}},X.prototype.divmod=function(Y,O,H){if(j(!Y.isZero()),this.isZero())return{div:new X(0),mod:new X(0)};var Z,K,w;if(this.negative!==0&&Y.negative===0){if(w=this.neg().divmod(Y,O),O!=="mod")Z=w.div.neg();if(O!=="div"){if(K=w.mod.neg(),H&&K.negative!==0)K.iadd(Y)}return{div:Z,mod:K}}if(this.negative===0&&Y.negative!==0){if(w=this.divmod(Y.neg(),O),O!=="mod")Z=w.div.neg();return{div:Z,mod:w.mod}}if((this.negative&Y.negative)!==0){if(w=this.neg().divmod(Y.neg(),O),O!=="div"){if(K=w.mod.neg(),H&&K.negative!==0)K.isub(Y)}return{div:w.div,mod:K}}if(Y.length>this.length||this.cmp(Y)<0)return{div:new X(0),mod:this};if(Y.length===1){if(O==="div")return{div:this.divn(Y.words[0]),mod:null};if(O==="mod")return{div:null,mod:new X(this.modn(Y.words[0]))};return{div:this.divn(Y.words[0]),mod:new X(this.modn(Y.words[0]))}}return this._wordDiv(Y,O)},X.prototype.div=function(Y){return this.divmod(Y,"div",!1).div},X.prototype.mod=function(Y){return this.divmod(Y,"mod",!1).mod},X.prototype.umod=function(Y){return this.divmod(Y,"mod",!0).mod},X.prototype.divRound=function(Y){var O=this.divmod(Y);if(O.mod.isZero())return O.div;var H=O.div.negative!==0?O.mod.isub(Y):O.mod,Z=Y.ushrn(1),K=Y.andln(1),w=H.cmp(Z);if(w<0||K===1&&w===0)return O.div;return O.div.negative!==0?O.div.isubn(1):O.div.iaddn(1)},X.prototype.modn=function(Y){j(Y<=67108863);var O=67108864%Y,H=0;for(var Z=this.length-1;Z>=0;Z--)H=(O*H+(this.words[Z]|0))%Y;return H},X.prototype.idivn=function(Y){j(Y<=67108863);var O=0;for(var H=this.length-1;H>=0;H--){var Z=(this.words[H]|0)+O*67108864;this.words[H]=Z/Y|0,O=Z%Y}return this.strip()},X.prototype.divn=function(Y){return this.clone().idivn(Y)},X.prototype.egcd=function(Y){j(Y.negative===0),j(!Y.isZero());var O=this,H=Y.clone();if(O.negative!==0)O=O.umod(Y);else O=O.clone();var Z=new X(1),K=new X(0),w=new X(0),B=new X(1),P=0;while(O.isEven()&&H.isEven())O.iushrn(1),H.iushrn(1),++P;var z=H.clone(),A=O.clone();while(!O.isZero()){for(var f=0,c=1;(O.words[0]&c)===0&&f<26;++f,c<<=1);if(f>0){O.iushrn(f);while(f-- >0){if(Z.isOdd()||K.isOdd())Z.iadd(z),K.isub(A);Z.iushrn(1),K.iushrn(1)}}for(var l=0,Q0=1;(H.words[0]&Q0)===0&&l<26;++l,Q0<<=1);if(l>0){H.iushrn(l);while(l-- >0){if(w.isOdd()||B.isOdd())w.iadd(z),B.isub(A);w.iushrn(1),B.iushrn(1)}}if(O.cmp(H)>=0)O.isub(H),Z.isub(w),K.isub(B);else H.isub(O),w.isub(Z),B.isub(K)}return{a:w,b:B,gcd:H.iushln(P)}},X.prototype._invmp=function(Y){j(Y.negative===0),j(!Y.isZero());var O=this,H=Y.clone();if(O.negative!==0)O=O.umod(Y);else O=O.clone();var Z=new X(1),K=new X(0),w=H.clone();while(O.cmpn(1)>0&&H.cmpn(1)>0){for(var B=0,P=1;(O.words[0]&P)===0&&B<26;++B,P<<=1);if(B>0){O.iushrn(B);while(B-- >0){if(Z.isOdd())Z.iadd(w);Z.iushrn(1)}}for(var z=0,A=1;(H.words[0]&A)===0&&z<26;++z,A<<=1);if(z>0){H.iushrn(z);while(z-- >0){if(K.isOdd())K.iadd(w);K.iushrn(1)}}if(O.cmp(H)>=0)O.isub(H),Z.isub(K);else H.isub(O),K.isub(Z)}var f;if(O.cmpn(1)===0)f=Z;else f=K;if(f.cmpn(0)<0)f.iadd(Y);return f},X.prototype.gcd=function(Y){if(this.isZero())return Y.abs();if(Y.isZero())return this.abs();var O=this.clone(),H=Y.clone();O.negative=0,H.negative=0;for(var Z=0;O.isEven()&&H.isEven();Z++)O.iushrn(1),H.iushrn(1);do{while(O.isEven())O.iushrn(1);while(H.isEven())H.iushrn(1);var K=O.cmp(H);if(K<0){var w=O;O=H,H=w}else if(K===0||H.cmpn(1)===0)break;O.isub(H)}while(!0);return H.iushln(Z)},X.prototype.invm=function(Y){return this.egcd(Y).a.umod(Y)},X.prototype.isEven=function(){return(this.words[0]&1)===0},X.prototype.isOdd=function(){return(this.words[0]&1)===1},X.prototype.andln=function(Y){return this.words[0]&Y},X.prototype.bincn=function(Y){j(typeof Y==="number");var O=Y%26,H=(Y-O)/26,Z=1<<O;if(this.length<=H)return this._expand(H+1),this.words[H]|=Z,this;var K=Z;for(var w=H;K!==0&&w<this.length;w++){var B=this.words[w]|0;B+=K,K=B>>>26,B&=67108863,this.words[w]=B}if(K!==0)this.words[w]=K,this.length++;return this},X.prototype.isZero=function(){return this.length===1&&this.words[0]===0},X.prototype.cmpn=function(Y){var O=Y<0;if(this.negative!==0&&!O)return-1;if(this.negative===0&&O)return 1;this.strip();var H;if(this.length>1)H=1;else{if(O)Y=-Y;j(Y<=67108863,"Number is too big");var Z=this.words[0]|0;H=Z===Y?0:Z<Y?-1:1}if(this.negative!==0)return-H|0;return H},X.prototype.cmp=function(Y){if(this.negative!==0&&Y.negative===0)return-1;if(this.negative===0&&Y.negative!==0)return 1;var O=this.ucmp(Y);if(this.negative!==0)return-O|0;return O},X.prototype.ucmp=function(Y){if(this.length>Y.length)return 1;if(this.length<Y.length)return-1;var O=0;for(var H=this.length-1;H>=0;H--){var Z=this.words[H]|0,K=Y.words[H]|0;if(Z===K)continue;if(Z<K)O=-1;else if(Z>K)O=1;break}return O},X.prototype.gtn=function(Y){return this.cmpn(Y)===1},X.prototype.gt=function(Y){return this.cmp(Y)===1},X.prototype.gten=function(Y){return this.cmpn(Y)>=0},X.prototype.gte=function(Y){return this.cmp(Y)>=0},X.prototype.ltn=function(Y){return this.cmpn(Y)===-1},X.prototype.lt=function(Y){return this.cmp(Y)===-1},X.prototype.lten=function(Y){return this.cmpn(Y)<=0},X.prototype.lte=function(Y){return this.cmp(Y)<=0},X.prototype.eqn=function(Y){return this.cmpn(Y)===0},X.prototype.eq=function(Y){return this.cmp(Y)===0},X.red=function(Y){return new U0(Y)},X.prototype.toRed=function(Y){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),Y.convertTo(this)._forceRed(Y)},X.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},X.prototype._forceRed=function(Y){return this.red=Y,this},X.prototype.forceRed=function(Y){return j(!this.red,"Already a number in reduction context"),this._forceRed(Y)},X.prototype.redAdd=function(Y){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,Y)},X.prototype.redIAdd=function(Y){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Y)},X.prototype.redSub=function(Y){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,Y)},X.prototype.redISub=function(Y){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,Y)},X.prototype.redShl=function(Y){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,Y)},X.prototype.redMul=function(Y){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,Y),this.red.mul(this,Y)},X.prototype.redIMul=function(Y){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,Y),this.red.imul(this,Y)},X.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},X.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},X.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},X.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},X.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},X.prototype.redPow=function(Y){return j(this.red&&!Y.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Y)};var s={k256:null,p224:null,p192:null,p25519:null};function j0(Y,O){this.name=Y,this.p=new X(O,16),this.n=this.p.bitLength(),this.k=new X(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}j0.prototype._tmp=function(){var Y=new X(null);return Y.words=Array(Math.ceil(this.n/13)),Y},j0.prototype.ireduce=function(Y){var O=Y,H;do this.split(O,this.tmp),O=this.imulK(O),O=O.iadd(this.tmp),H=O.bitLength();while(H>this.n);var Z=H<this.n?-1:O.ucmp(this.p);if(Z===0)O.words[0]=0,O.length=1;else if(Z>0)O.isub(this.p);else if(O.strip!==void 0)O.strip();else O._strip();return O},j0.prototype.split=function(Y,O){Y.iushrn(this.n,0,O)},j0.prototype.imulK=function(Y){return Y.imul(this.k)};function I0(){j0.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}G(I0,j0),I0.prototype.split=function(Y,O){var H=4194303,Z=Math.min(Y.length,9);for(var K=0;K<Z;K++)O.words[K]=Y.words[K];if(O.length=Z,Y.length<=9){Y.words[0]=0,Y.length=1;return}var w=Y.words[9];O.words[O.length++]=w&H;for(K=10;K<Y.length;K++){var B=Y.words[K]|0;Y.words[K-10]=(B&H)<<4|w>>>22,w=B}if(w>>>=22,Y.words[K-10]=w,w===0&&Y.length>10)Y.length-=10;else Y.length-=9},I0.prototype.imulK=function(Y){Y.words[Y.length]=0,Y.words[Y.length+1]=0,Y.length+=2;var O=0;for(var H=0;H<Y.length;H++){var Z=Y.words[H]|0;O+=Z*977,Y.words[H]=O&67108863,O=Z*64+(O/67108864|0)}if(Y.words[Y.length-1]===0){if(Y.length--,Y.words[Y.length-1]===0)Y.length--}return Y};function H0(){j0.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}G(H0,j0);function L0(){j0.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}G(L0,j0);function R0(){j0.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}G(R0,j0),R0.prototype.imulK=function(Y){var O=0;for(var H=0;H<Y.length;H++){var Z=(Y.words[H]|0)*19+O,K=Z&67108863;Z>>>=26,Y.words[H]=K,O=Z}if(O!==0)Y.words[Y.length++]=O;return Y},X._prime=function(Y){if(s[Y])return s[Y];var O;if(Y==="k256")O=new I0;else if(Y==="p224")O=new H0;else if(Y==="p192")O=new L0;else if(Y==="p25519")O=new R0;else throw Error("Unknown prime "+Y);return s[Y]=O,O};function U0(Y){if(typeof Y==="string"){var O=X._prime(Y);this.m=O.p,this.prime=O}else j(Y.gtn(1),"modulus must be greater than 1"),this.m=Y,this.prime=null}U0.prototype._verify1=function(Y){j(Y.negative===0,"red works only with positives"),j(Y.red,"red works only with red numbers")},U0.prototype._verify2=function(Y,O){j((Y.negative|O.negative)===0,"red works only with positives"),j(Y.red&&Y.red===O.red,"red works only with red numbers")},U0.prototype.imod=function(Y){if(this.prime)return this.prime.ireduce(Y)._forceRed(this);return Y.umod(this.m)._forceRed(this)},U0.prototype.neg=function(Y){if(Y.isZero())return Y.clone();return this.m.sub(Y)._forceRed(this)},U0.prototype.add=function(Y,O){this._verify2(Y,O);var H=Y.add(O);if(H.cmp(this.m)>=0)H.isub(this.m);return H._forceRed(this)},U0.prototype.iadd=function(Y,O){this._verify2(Y,O);var H=Y.iadd(O);if(H.cmp(this.m)>=0)H.isub(this.m);return H},U0.prototype.sub=function(Y,O){this._verify2(Y,O);var H=Y.sub(O);if(H.cmpn(0)<0)H.iadd(this.m);return H._forceRed(this)},U0.prototype.isub=function(Y,O){this._verify2(Y,O);var H=Y.isub(O);if(H.cmpn(0)<0)H.iadd(this.m);return H},U0.prototype.shl=function(Y,O){return this._verify1(Y),this.imod(Y.ushln(O))},U0.prototype.imul=function(Y,O){return this._verify2(Y,O),this.imod(Y.imul(O))},U0.prototype.mul=function(Y,O){return this._verify2(Y,O),this.imod(Y.mul(O))},U0.prototype.isqr=function(Y){return this.imul(Y,Y.clone())},U0.prototype.sqr=function(Y){return this.mul(Y,Y)},U0.prototype.sqrt=function(Y){if(Y.isZero())return Y.clone();var O=this.m.andln(3);if(j(O%2===1),O===3){var H=this.m.add(new X(1)).iushrn(2);return this.pow(Y,H)}var Z=this.m.subn(1),K=0;while(!Z.isZero()&&Z.andln(1)===0)K++,Z.iushrn(1);j(!Z.isZero());var w=new X(1).toRed(this),B=w.redNeg(),P=this.m.subn(1).iushrn(1),z=this.m.bitLength();z=new X(2*z*z).toRed(this);while(this.pow(z,P).cmp(B)!==0)z.redIAdd(B);var A=this.pow(z,Z),f=this.pow(Y,Z.addn(1).iushrn(1)),c=this.pow(Y,Z),l=K;while(c.cmp(w)!==0){var Q0=c;for(var F0=0;Q0.cmp(w)!==0;F0++)Q0=Q0.redSqr();j(F0<l);var P0=this.pow(A,new X(1).iushln(l-F0-1));f=f.redMul(P0),A=P0.redSqr(),c=c.redMul(A),l=F0}return f},U0.prototype.invm=function(Y){var O=Y._invmp(this.m);if(O.negative!==0)return O.negative=0,this.imod(O).redNeg();else return this.imod(O)},U0.prototype.pow=function(Y,O){if(O.isZero())return new X(1).toRed(this);if(O.cmpn(1)===0)return Y.clone();var H=4,Z=Array(1<<H);Z[0]=new X(1).toRed(this),Z[1]=Y;for(var K=2;K<Z.length;K++)Z[K]=this.mul(Z[K-1],Y);var w=Z[0],B=0,P=0,z=O.bitLength()%26;if(z===0)z=26;for(K=O.length-1;K>=0;K--){var A=O.words[K];for(var f=z-1;f>=0;f--){var c=A>>f&1;if(w!==Z[0])w=this.sqr(w);if(c===0&&B===0){P=0;continue}if(B<<=1,B|=c,P++,P!==H&&(K!==0||f!==0))continue;w=this.mul(w,Z[B]),P=0,B=0}z=26}return w},U0.prototype.convertTo=function(Y){var O=Y.umod(this.m);return O===Y?O.clone():O},U0.prototype.convertFrom=function(Y){var O=Y.clone();return O.red=null,O},X.mont=function(Y){return new c0(Y)};function c0(Y){if(U0.call(this,Y),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new X(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}G(c0,U0),c0.prototype.convertTo=function(Y){return this.imod(Y.ushln(this.shift))},c0.prototype.convertFrom=function(Y){var O=this.imod(Y.mul(this.rinv));return O.red=null,O},c0.prototype.imul=function(Y,O){if(Y.isZero()||O.isZero())return Y.words[0]=0,Y.length=1,Y;var H=Y.imul(O),Z=H.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=H.isub(Z).iushrn(this.shift),w=K;if(K.cmp(this.m)>=0)w=K.isub(this.m);else if(K.cmpn(0)<0)w=K.iadd(this.m);return w._forceRed(this)},c0.prototype.mul=function(Y,O){if(Y.isZero()||O.isZero())return new X(0)._forceRed(this);var H=Y.mul(O),Z=H.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),K=H.isub(Z).iushrn(this.shift),w=K;if(K.cmp(this.m)>=0)w=K.isub(this.m);else if(K.cmpn(0)<0)w=K.iadd(this.m);return w._forceRed(this)},c0.prototype.invm=function(Y){var O=this.imod(Y._invmp(this.m).mul(this.r2));return O._forceRed(this)}})(typeof _>"u"||_,$)}),hN=E$(($,_)=>{var I=JA(),J=v6().Buffer;function j(G,X){return J.from(G.toRed(I.mont(X.modulus)).redPow(new I(X.publicExponent)).fromRed().toArray())}_.exports=j}),fm=E$(($,_)=>{(function(I,J){function j(Z,K){if(!Z)throw Error(K||"Assertion failed")}function G(Z,K){Z.super_=K;var w=function(){};w.prototype=K.prototype,Z.prototype=new w,Z.prototype.constructor=Z}function X(Z,K,w){if(X.isBN(Z))return Z;if(this.negative=0,this.words=null,this.length=0,this.red=null,Z!==null){if(K==="le"||K==="be")w=K,K=10;this._init(Z||0,K||10,w||"be")}}if(typeof I==="object")I.exports=X;else J.BN=X;X.BN=X,X.wordSize=26;var W;try{if(typeof window<"u"&&typeof window.Buffer<"u")W=window.Buffer;else W=(j_(),X1(__)).Buffer}catch(Z){}X.isBN=function(Z){if(Z instanceof X)return!0;return Z!==null&&typeof Z==="object"&&Z.constructor.wordSize===X.wordSize&&Array.isArray(Z.words)},X.max=function(Z,K){if(Z.cmp(K)>0)return Z;return K},X.min=function(Z,K){if(Z.cmp(K)<0)return Z;return K},X.prototype._init=function(Z,K,w){if(typeof Z==="number")return this._initNumber(Z,K,w);if(typeof Z==="object")return this._initArray(Z,K,w);if(K==="hex")K=16;j(K===(K|0)&&K>=2&&K<=36),Z=Z.toString().replace(/\s+/g,"");var B=0;if(Z[0]==="-")B++,this.negative=1;if(B<Z.length){if(K===16)this._parseHex(Z,B,w);else if(this._parseBase(Z,K,B),w==="le")this._initArray(this.toArray(),K,w)}},X.prototype._initNumber=function(Z,K,w){if(Z<0)this.negative=1,Z=-Z;if(Z<67108864)this.words=[Z&67108863],this.length=1;else if(Z<4503599627370496)this.words=[Z&67108863,Z/67108864&67108863],this.length=2;else j(Z<9007199254740992),this.words=[Z&67108863,Z/67108864&67108863,1],this.length=3;if(w!=="le")return;this._initArray(this.toArray(),K,w)},X.prototype._initArray=function(Z,K,w){if(j(typeof Z.length==="number"),Z.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(Z.length/3),this.words=Array(this.length);for(var B=0;B<this.length;B++)this.words[B]=0;var P,z,A=0;if(w==="be"){for(B=Z.length-1,P=0;B>=0;B-=3)if(z=Z[B]|Z[B-1]<<8|Z[B-2]<<16,this.words[P]|=z<<A&67108863,this.words[P+1]=z>>>26-A&67108863,A+=24,A>=26)A-=26,P++}else if(w==="le"){for(B=0,P=0;B<Z.length;B+=3)if(z=Z[B]|Z[B+1]<<8|Z[B+2]<<16,this.words[P]|=z<<A&67108863,this.words[P+1]=z>>>26-A&67108863,A+=24,A>=26)A-=26,P++}return this._strip()};function T(Z,K){var w=Z.charCodeAt(K);if(w>=48&&w<=57)return w-48;else if(w>=65&&w<=70)return w-55;else if(w>=97&&w<=102)return w-87;else j(!1,"Invalid character in "+Z)}function F(Z,K,w){var B=T(Z,w);if(w-1>=K)B|=T(Z,w-1)<<4;return B}X.prototype._parseHex=function(Z,K,w){this.length=Math.ceil((Z.length-K)/6),this.words=Array(this.length);for(var B=0;B<this.length;B++)this.words[B]=0;var P=0,z=0,A;if(w==="be")for(B=Z.length-1;B>=K;B-=2)if(A=F(Z,K,B)<<P,this.words[z]|=A&67108863,P>=18)P-=18,z+=1,this.words[z]|=A>>>26;else P+=8;else{var f=Z.length-K;for(B=f%2===0?K+1:K;B<Z.length;B+=2)if(A=F(Z,K,B)<<P,this.words[z]|=A&67108863,P>=18)P-=18,z+=1,this.words[z]|=A>>>26;else P+=8}this._strip()};function E(Z,K,w,B){var P=0,z=0,A=Math.min(Z.length,w);for(var f=K;f<A;f++){var c=Z.charCodeAt(f)-48;if(P*=B,c>=49)z=c-49+10;else if(c>=17)z=c-17+10;else z=c;j(c>=0&&z<B,"Invalid character"),P+=z}return P}X.prototype._parseBase=function(Z,K,w){this.words=[0],this.length=1;for(var B=0,P=1;P<=67108863;P*=K)B++;B--,P=P/K|0;var z=Z.length-w,A=z%B,f=Math.min(z,z-A)+w,c=0;for(var l=w;l<f;l+=B)if(c=E(Z,l,l+B,K),this.imuln(P),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c);if(A!==0){var Q0=1;c=E(Z,l,Z.length,K);for(l=0;l<A;l++)Q0*=K;if(this.imuln(Q0),this.words[0]+c<67108864)this.words[0]+=c;else this._iaddn(c)}this._strip()},X.prototype.copy=function(Z){Z.words=Array(this.length);for(var K=0;K<this.length;K++)Z.words[K]=this.words[K];Z.length=this.length,Z.negative=this.negative,Z.red=this.red};function D(Z,K){Z.words=K.words,Z.length=K.length,Z.negative=K.negative,Z.red=K.red}if(X.prototype._move=function(Z){D(Z,this)},X.prototype.clone=function(){var Z=new X(null);return this.copy(Z),Z},X.prototype._expand=function(Z){while(this.length<Z)this.words[this.length++]=0;return this},X.prototype._strip=function(){while(this.length>1&&this.words[this.length-1]===0)this.length--;return this._normSign()},X.prototype._normSign=function(){if(this.length===1&&this.words[0]===0)this.negative=0;return this},typeof Symbol<"u"&&typeof Symbol.for==="function")try{X.prototype[Symbol.for("nodejs.util.inspect.custom")]=q}catch(Z){X.prototype.inspect=q}else X.prototype.inspect=q;function q(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var S=["","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"],k=[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],y=[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(X.prototype.toString=function(Z,K){Z=Z||10,K=K|0||1;var w;if(Z===16||Z==="hex"){w="";var B=0,P=0;for(var z=0;z<this.length;z++){var A=this.words[z],f=((A<<B|P)&16777215).toString(16);if(P=A>>>24-B&16777215,B+=2,B>=26)B-=26,z--;if(P!==0||z!==this.length-1)w=S[6-f.length]+f+w;else w=f+w}if(P!==0)w=P.toString(16)+w;while(w.length%K!==0)w="0"+w;if(this.negative!==0)w="-"+w;return w}if(Z===(Z|0)&&Z>=2&&Z<=36){var c=k[Z],l=y[Z];w="";var Q0=this.clone();Q0.negative=0;while(!Q0.isZero()){var F0=Q0.modrn(l).toString(Z);if(Q0=Q0.idivn(l),!Q0.isZero())w=S[c-F0.length]+F0+w;else w=F0+w}if(this.isZero())w="0"+w;while(w.length%K!==0)w="0"+w;if(this.negative!==0)w="-"+w;return w}j(!1,"Base should be between 2 and 36")},X.prototype.toNumber=function(){var Z=this.words[0];if(this.length===2)Z+=this.words[1]*67108864;else if(this.length===3&&this.words[2]===1)Z+=4503599627370496+this.words[1]*67108864;else if(this.length>2)j(!1,"Number can only safely store up to 53 bits");return this.negative!==0?-Z:Z},X.prototype.toJSON=function(){return this.toString(16,2)},W)X.prototype.toBuffer=function(Z,K){return this.toArrayLike(W,Z,K)};X.prototype.toArray=function(Z,K){return this.toArrayLike(Array,Z,K)};var m=function(Z,K){if(Z.allocUnsafe)return Z.allocUnsafe(K);return new Z(K)};if(X.prototype.toArrayLike=function(Z,K,w){this._strip();var B=this.byteLength(),P=w||Math.max(1,B);j(B<=P,"byte array longer than desired length"),j(P>0,"Requested array length <= 0");var z=m(Z,P),A=K==="le"?"LE":"BE";return this["_toArrayLike"+A](z,B),z},X.prototype._toArrayLikeLE=function(Z,K){var w=0,B=0;for(var P=0,z=0;P<this.length;P++){var A=this.words[P]<<z|B;if(Z[w++]=A&255,w<Z.length)Z[w++]=A>>8&255;if(w<Z.length)Z[w++]=A>>16&255;if(z===6){if(w<Z.length)Z[w++]=A>>24&255;B=0,z=0}else B=A>>>24,z+=2}if(w<Z.length){Z[w++]=B;while(w<Z.length)Z[w++]=0}},X.prototype._toArrayLikeBE=function(Z,K){var w=Z.length-1,B=0;for(var P=0,z=0;P<this.length;P++){var A=this.words[P]<<z|B;if(Z[w--]=A&255,w>=0)Z[w--]=A>>8&255;if(w>=0)Z[w--]=A>>16&255;if(z===6){if(w>=0)Z[w--]=A>>24&255;B=0,z=0}else B=A>>>24,z+=2}if(w>=0){Z[w--]=B;while(w>=0)Z[w--]=0}},Math.clz32)X.prototype._countBits=function(Z){return 32-Math.clz32(Z)};else X.prototype._countBits=function(Z){var K=Z,w=0;if(K>=4096)w+=13,K>>>=13;if(K>=64)w+=7,K>>>=7;if(K>=8)w+=4,K>>>=4;if(K>=2)w+=2,K>>>=2;return w+K};X.prototype._zeroBits=function(Z){if(Z===0)return 26;var K=Z,w=0;if((K&8191)===0)w+=13,K>>>=13;if((K&127)===0)w+=7,K>>>=7;if((K&15)===0)w+=4,K>>>=4;if((K&3)===0)w+=2,K>>>=2;if((K&1)===0)w++;return w},X.prototype.bitLength=function(){var Z=this.words[this.length-1],K=this._countBits(Z);return(this.length-1)*26+K};function n(Z){var K=Array(Z.bitLength());for(var w=0;w<K.length;w++){var B=w/26|0,P=w%26;K[w]=Z.words[B]>>>P&1}return K}X.prototype.zeroBits=function(){if(this.isZero())return 0;var Z=0;for(var K=0;K<this.length;K++){var w=this._zeroBits(this.words[K]);if(Z+=w,w!==26)break}return Z},X.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},X.prototype.toTwos=function(Z){if(this.negative!==0)return this.abs().inotn(Z).iaddn(1);return this.clone()},X.prototype.fromTwos=function(Z){if(this.testn(Z-1))return this.notn(Z).iaddn(1).ineg();return this.clone()},X.prototype.isNeg=function(){return this.negative!==0},X.prototype.neg=function(){return this.clone().ineg()},X.prototype.ineg=function(){if(!this.isZero())this.negative^=1;return this},X.prototype.iuor=function(Z){while(this.length<Z.length)this.words[this.length++]=0;for(var K=0;K<Z.length;K++)this.words[K]=this.words[K]|Z.words[K];return this._strip()},X.prototype.ior=function(Z){return j((this.negative|Z.negative)===0),this.iuor(Z)},X.prototype.or=function(Z){if(this.length>Z.length)return this.clone().ior(Z);return Z.clone().ior(this)},X.prototype.uor=function(Z){if(this.length>Z.length)return this.clone().iuor(Z);return Z.clone().iuor(this)},X.prototype.iuand=function(Z){var K;if(this.length>Z.length)K=Z;else K=this;for(var w=0;w<K.length;w++)this.words[w]=this.words[w]&Z.words[w];return this.length=K.length,this._strip()},X.prototype.iand=function(Z){return j((this.negative|Z.negative)===0),this.iuand(Z)},X.prototype.and=function(Z){if(this.length>Z.length)return this.clone().iand(Z);return Z.clone().iand(this)},X.prototype.uand=function(Z){if(this.length>Z.length)return this.clone().iuand(Z);return Z.clone().iuand(this)},X.prototype.iuxor=function(Z){var K,w;if(this.length>Z.length)K=this,w=Z;else K=Z,w=this;for(var B=0;B<w.length;B++)this.words[B]=K.words[B]^w.words[B];if(this!==K)for(;B<K.length;B++)this.words[B]=K.words[B];return this.length=K.length,this._strip()},X.prototype.ixor=function(Z){return j((this.negative|Z.negative)===0),this.iuxor(Z)},X.prototype.xor=function(Z){if(this.length>Z.length)return this.clone().ixor(Z);return Z.clone().ixor(this)},X.prototype.uxor=function(Z){if(this.length>Z.length)return this.clone().iuxor(Z);return Z.clone().iuxor(this)},X.prototype.inotn=function(Z){j(typeof Z==="number"&&Z>=0);var K=Math.ceil(Z/26)|0,w=Z%26;if(this._expand(K),w>0)K--;for(var B=0;B<K;B++)this.words[B]=~this.words[B]&67108863;if(w>0)this.words[B]=~this.words[B]&67108863>>26-w;return this._strip()},X.prototype.notn=function(Z){return this.clone().inotn(Z)},X.prototype.setn=function(Z,K){j(typeof Z==="number"&&Z>=0);var w=Z/26|0,B=Z%26;if(this._expand(w+1),K)this.words[w]=this.words[w]|1<<B;else this.words[w]=this.words[w]&~(1<<B);return this._strip()},X.prototype.iadd=function(Z){var K;if(this.negative!==0&&Z.negative===0)return this.negative=0,K=this.isub(Z),this.negative^=1,this._normSign();else if(this.negative===0&&Z.negative!==0)return Z.negative=0,K=this.isub(Z),Z.negative=1,K._normSign();var w,B;if(this.length>Z.length)w=this,B=Z;else w=Z,B=this;var P=0;for(var z=0;z<B.length;z++)K=(w.words[z]|0)+(B.words[z]|0)+P,this.words[z]=K&67108863,P=K>>>26;for(;P!==0&&z<w.length;z++)K=(w.words[z]|0)+P,this.words[z]=K&67108863,P=K>>>26;if(this.length=w.length,P!==0)this.words[this.length]=P,this.length++;else if(w!==this)for(;z<w.length;z++)this.words[z]=w.words[z];return this},X.prototype.add=function(Z){var K;if(Z.negative!==0&&this.negative===0)return Z.negative=0,K=this.sub(Z),Z.negative^=1,K;else if(Z.negative===0&&this.negative!==0)return this.negative=0,K=Z.sub(this),this.negative=1,K;if(this.length>Z.length)return this.clone().iadd(Z);return Z.clone().iadd(this)},X.prototype.isub=function(Z){if(Z.negative!==0){Z.negative=0;var K=this.iadd(Z);return Z.negative=1,K._normSign()}else if(this.negative!==0)return this.negative=0,this.iadd(Z),this.negative=1,this._normSign();var w=this.cmp(Z);if(w===0)return this.negative=0,this.length=1,this.words[0]=0,this;var B,P;if(w>0)B=this,P=Z;else B=Z,P=this;var z=0;for(var A=0;A<P.length;A++)K=(B.words[A]|0)-(P.words[A]|0)+z,z=K>>26,this.words[A]=K&67108863;for(;z!==0&&A<B.length;A++)K=(B.words[A]|0)+z,z=K>>26,this.words[A]=K&67108863;if(z===0&&A<B.length&&B!==this)for(;A<B.length;A++)this.words[A]=B.words[A];if(this.length=Math.max(this.length,A),B!==this)this.negative=1;return this._strip()},X.prototype.sub=function(Z){return this.clone().isub(Z)};function h(Z,K,w){w.negative=K.negative^Z.negative;var B=Z.length+K.length|0;w.length=B,B=B-1|0;var P=Z.words[0]|0,z=K.words[0]|0,A=P*z,f=A&67108863,c=A/67108864|0;w.words[0]=f;for(var l=1;l<B;l++){var Q0=c>>>26,F0=c&67108863,P0=Math.min(l,K.length-1);for(var E0=Math.max(0,l-Z.length+1);E0<=P0;E0++){var _0=l-E0|0;P=Z.words[_0]|0,z=K.words[E0]|0,A=P*z+F0,Q0+=A/67108864|0,F0=A&67108863}w.words[l]=F0|0,c=Q0|0}if(c!==0)w.words[l]=c|0;else w.length--;return w._strip()}var p=function(Z,K,w){var B=Z.words,P=K.words,z=w.words,A=0,f,c,l,Q0=B[0]|0,F0=Q0&8191,P0=Q0>>>13,E0=B[1]|0,_0=E0&8191,$0=E0>>>13,G0=B[2]|0,K0=G0&8191,q0=G0>>>13,z0=B[3]|0,a=z0&8191,J0=z0>>>13,y0=B[4]|0,N0=y0&8191,A0=y0>>>13,$$=B[5]|0,w0=$$&8191,h0=$$>>>13,H$=B[6]|0,l0=H$&8191,j$=H$>>>13,l$=B[7]|0,C0=l$&8191,x0=l$>>>13,T$=B[8]|0,U$=T$&8191,G$=T$>>>13,T0=B[9]|0,u0=T0&8191,p0=T0>>>13,R$=P[0]|0,d=R$&8191,O0=R$>>>13,X0=P[1]|0,k0=X0&8191,d0=X0>>>13,r=P[2]|0,S0=r&8191,b0=r>>>13,D0=P[3]|0,g0=D0&8191,m0=D0>>>13,u$=P[4]|0,Y$=u$&8191,Y0=u$>>>13,B0=P[5]|0,s0=B0&8191,a0=B0>>>13,g$=P[6]|0,D$=g$&8191,F$=g$>>>13,A1=P[7]|0,c$=A1&8191,q$=A1>>>13,Y1=P[8]|0,O$=Y1&8191,V$=Y1>>>13,w1=P[9]|0,j1=w1&8191,v1=w1>>>13;w.negative=Z.negative^K.negative,w.length=19,f=Math.imul(F0,d),c=Math.imul(F0,O0),c=c+Math.imul(P0,d)|0,l=Math.imul(P0,O0);var I2=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(I2>>>26)|0,I2&=67108863,f=Math.imul(_0,d),c=Math.imul(_0,O0),c=c+Math.imul($0,d)|0,l=Math.imul($0,O0),f=f+Math.imul(F0,k0)|0,c=c+Math.imul(F0,d0)|0,c=c+Math.imul(P0,k0)|0,l=l+Math.imul(P0,d0)|0;var W1=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(W1>>>26)|0,W1&=67108863,f=Math.imul(K0,d),c=Math.imul(K0,O0),c=c+Math.imul(q0,d)|0,l=Math.imul(q0,O0),f=f+Math.imul(_0,k0)|0,c=c+Math.imul(_0,d0)|0,c=c+Math.imul($0,k0)|0,l=l+Math.imul($0,d0)|0,f=f+Math.imul(F0,S0)|0,c=c+Math.imul(F0,b0)|0,c=c+Math.imul(P0,S0)|0,l=l+Math.imul(P0,b0)|0;var A2=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(A2>>>26)|0,A2&=67108863,f=Math.imul(a,d),c=Math.imul(a,O0),c=c+Math.imul(J0,d)|0,l=Math.imul(J0,O0),f=f+Math.imul(K0,k0)|0,c=c+Math.imul(K0,d0)|0,c=c+Math.imul(q0,k0)|0,l=l+Math.imul(q0,d0)|0,f=f+Math.imul(_0,S0)|0,c=c+Math.imul(_0,b0)|0,c=c+Math.imul($0,S0)|0,l=l+Math.imul($0,b0)|0,f=f+Math.imul(F0,g0)|0,c=c+Math.imul(F0,m0)|0,c=c+Math.imul(P0,g0)|0,l=l+Math.imul(P0,m0)|0;var c2=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(c2>>>26)|0,c2&=67108863,f=Math.imul(N0,d),c=Math.imul(N0,O0),c=c+Math.imul(A0,d)|0,l=Math.imul(A0,O0),f=f+Math.imul(a,k0)|0,c=c+Math.imul(a,d0)|0,c=c+Math.imul(J0,k0)|0,l=l+Math.imul(J0,d0)|0,f=f+Math.imul(K0,S0)|0,c=c+Math.imul(K0,b0)|0,c=c+Math.imul(q0,S0)|0,l=l+Math.imul(q0,b0)|0,f=f+Math.imul(_0,g0)|0,c=c+Math.imul(_0,m0)|0,c=c+Math.imul($0,g0)|0,l=l+Math.imul($0,m0)|0,f=f+Math.imul(F0,Y$)|0,c=c+Math.imul(F0,Y0)|0,c=c+Math.imul(P0,Y$)|0,l=l+Math.imul(P0,Y0)|0;var M2=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(M2>>>26)|0,M2&=67108863,f=Math.imul(w0,d),c=Math.imul(w0,O0),c=c+Math.imul(h0,d)|0,l=Math.imul(h0,O0),f=f+Math.imul(N0,k0)|0,c=c+Math.imul(N0,d0)|0,c=c+Math.imul(A0,k0)|0,l=l+Math.imul(A0,d0)|0,f=f+Math.imul(a,S0)|0,c=c+Math.imul(a,b0)|0,c=c+Math.imul(J0,S0)|0,l=l+Math.imul(J0,b0)|0,f=f+Math.imul(K0,g0)|0,c=c+Math.imul(K0,m0)|0,c=c+Math.imul(q0,g0)|0,l=l+Math.imul(q0,m0)|0,f=f+Math.imul(_0,Y$)|0,c=c+Math.imul(_0,Y0)|0,c=c+Math.imul($0,Y$)|0,l=l+Math.imul($0,Y0)|0,f=f+Math.imul(F0,s0)|0,c=c+Math.imul(F0,a0)|0,c=c+Math.imul(P0,s0)|0,l=l+Math.imul(P0,a0)|0;var Gv=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(Gv>>>26)|0,Gv&=67108863,f=Math.imul(l0,d),c=Math.imul(l0,O0),c=c+Math.imul(j$,d)|0,l=Math.imul(j$,O0),f=f+Math.imul(w0,k0)|0,c=c+Math.imul(w0,d0)|0,c=c+Math.imul(h0,k0)|0,l=l+Math.imul(h0,d0)|0,f=f+Math.imul(N0,S0)|0,c=c+Math.imul(N0,b0)|0,c=c+Math.imul(A0,S0)|0,l=l+Math.imul(A0,b0)|0,f=f+Math.imul(a,g0)|0,c=c+Math.imul(a,m0)|0,c=c+Math.imul(J0,g0)|0,l=l+Math.imul(J0,m0)|0,f=f+Math.imul(K0,Y$)|0,c=c+Math.imul(K0,Y0)|0,c=c+Math.imul(q0,Y$)|0,l=l+Math.imul(q0,Y0)|0,f=f+Math.imul(_0,s0)|0,c=c+Math.imul(_0,a0)|0,c=c+Math.imul($0,s0)|0,l=l+Math.imul($0,a0)|0,f=f+Math.imul(F0,D$)|0,c=c+Math.imul(F0,F$)|0,c=c+Math.imul(P0,D$)|0,l=l+Math.imul(P0,F$)|0;var f1=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(f1>>>26)|0,f1&=67108863,f=Math.imul(C0,d),c=Math.imul(C0,O0),c=c+Math.imul(x0,d)|0,l=Math.imul(x0,O0),f=f+Math.imul(l0,k0)|0,c=c+Math.imul(l0,d0)|0,c=c+Math.imul(j$,k0)|0,l=l+Math.imul(j$,d0)|0,f=f+Math.imul(w0,S0)|0,c=c+Math.imul(w0,b0)|0,c=c+Math.imul(h0,S0)|0,l=l+Math.imul(h0,b0)|0,f=f+Math.imul(N0,g0)|0,c=c+Math.imul(N0,m0)|0,c=c+Math.imul(A0,g0)|0,l=l+Math.imul(A0,m0)|0,f=f+Math.imul(a,Y$)|0,c=c+Math.imul(a,Y0)|0,c=c+Math.imul(J0,Y$)|0,l=l+Math.imul(J0,Y0)|0,f=f+Math.imul(K0,s0)|0,c=c+Math.imul(K0,a0)|0,c=c+Math.imul(q0,s0)|0,l=l+Math.imul(q0,a0)|0,f=f+Math.imul(_0,D$)|0,c=c+Math.imul(_0,F$)|0,c=c+Math.imul($0,D$)|0,l=l+Math.imul($0,F$)|0,f=f+Math.imul(F0,c$)|0,c=c+Math.imul(F0,q$)|0,c=c+Math.imul(P0,c$)|0,l=l+Math.imul(P0,q$)|0;var o1=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(o1>>>26)|0,o1&=67108863,f=Math.imul(U$,d),c=Math.imul(U$,O0),c=c+Math.imul(G$,d)|0,l=Math.imul(G$,O0),f=f+Math.imul(C0,k0)|0,c=c+Math.imul(C0,d0)|0,c=c+Math.imul(x0,k0)|0,l=l+Math.imul(x0,d0)|0,f=f+Math.imul(l0,S0)|0,c=c+Math.imul(l0,b0)|0,c=c+Math.imul(j$,S0)|0,l=l+Math.imul(j$,b0)|0,f=f+Math.imul(w0,g0)|0,c=c+Math.imul(w0,m0)|0,c=c+Math.imul(h0,g0)|0,l=l+Math.imul(h0,m0)|0,f=f+Math.imul(N0,Y$)|0,c=c+Math.imul(N0,Y0)|0,c=c+Math.imul(A0,Y$)|0,l=l+Math.imul(A0,Y0)|0,f=f+Math.imul(a,s0)|0,c=c+Math.imul(a,a0)|0,c=c+Math.imul(J0,s0)|0,l=l+Math.imul(J0,a0)|0,f=f+Math.imul(K0,D$)|0,c=c+Math.imul(K0,F$)|0,c=c+Math.imul(q0,D$)|0,l=l+Math.imul(q0,F$)|0,f=f+Math.imul(_0,c$)|0,c=c+Math.imul(_0,q$)|0,c=c+Math.imul($0,c$)|0,l=l+Math.imul($0,q$)|0,f=f+Math.imul(F0,O$)|0,c=c+Math.imul(F0,V$)|0,c=c+Math.imul(P0,O$)|0,l=l+Math.imul(P0,V$)|0;var E2=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(E2>>>26)|0,E2&=67108863,f=Math.imul(u0,d),c=Math.imul(u0,O0),c=c+Math.imul(p0,d)|0,l=Math.imul(p0,O0),f=f+Math.imul(U$,k0)|0,c=c+Math.imul(U$,d0)|0,c=c+Math.imul(G$,k0)|0,l=l+Math.imul(G$,d0)|0,f=f+Math.imul(C0,S0)|0,c=c+Math.imul(C0,b0)|0,c=c+Math.imul(x0,S0)|0,l=l+Math.imul(x0,b0)|0,f=f+Math.imul(l0,g0)|0,c=c+Math.imul(l0,m0)|0,c=c+Math.imul(j$,g0)|0,l=l+Math.imul(j$,m0)|0,f=f+Math.imul(w0,Y$)|0,c=c+Math.imul(w0,Y0)|0,c=c+Math.imul(h0,Y$)|0,l=l+Math.imul(h0,Y0)|0,f=f+Math.imul(N0,s0)|0,c=c+Math.imul(N0,a0)|0,c=c+Math.imul(A0,s0)|0,l=l+Math.imul(A0,a0)|0,f=f+Math.imul(a,D$)|0,c=c+Math.imul(a,F$)|0,c=c+Math.imul(J0,D$)|0,l=l+Math.imul(J0,F$)|0,f=f+Math.imul(K0,c$)|0,c=c+Math.imul(K0,q$)|0,c=c+Math.imul(q0,c$)|0,l=l+Math.imul(q0,q$)|0,f=f+Math.imul(_0,O$)|0,c=c+Math.imul(_0,V$)|0,c=c+Math.imul($0,O$)|0,l=l+Math.imul($0,V$)|0,f=f+Math.imul(F0,j1)|0,c=c+Math.imul(F0,v1)|0,c=c+Math.imul(P0,j1)|0,l=l+Math.imul(P0,v1)|0;var x2=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(x2>>>26)|0,x2&=67108863,f=Math.imul(u0,k0),c=Math.imul(u0,d0),c=c+Math.imul(p0,k0)|0,l=Math.imul(p0,d0),f=f+Math.imul(U$,S0)|0,c=c+Math.imul(U$,b0)|0,c=c+Math.imul(G$,S0)|0,l=l+Math.imul(G$,b0)|0,f=f+Math.imul(C0,g0)|0,c=c+Math.imul(C0,m0)|0,c=c+Math.imul(x0,g0)|0,l=l+Math.imul(x0,m0)|0,f=f+Math.imul(l0,Y$)|0,c=c+Math.imul(l0,Y0)|0,c=c+Math.imul(j$,Y$)|0,l=l+Math.imul(j$,Y0)|0,f=f+Math.imul(w0,s0)|0,c=c+Math.imul(w0,a0)|0,c=c+Math.imul(h0,s0)|0,l=l+Math.imul(h0,a0)|0,f=f+Math.imul(N0,D$)|0,c=c+Math.imul(N0,F$)|0,c=c+Math.imul(A0,D$)|0,l=l+Math.imul(A0,F$)|0,f=f+Math.imul(a,c$)|0,c=c+Math.imul(a,q$)|0,c=c+Math.imul(J0,c$)|0,l=l+Math.imul(J0,q$)|0,f=f+Math.imul(K0,O$)|0,c=c+Math.imul(K0,V$)|0,c=c+Math.imul(q0,O$)|0,l=l+Math.imul(q0,V$)|0,f=f+Math.imul(_0,j1)|0,c=c+Math.imul(_0,v1)|0,c=c+Math.imul($0,j1)|0,l=l+Math.imul($0,v1)|0;var W2=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(W2>>>26)|0,W2&=67108863,f=Math.imul(u0,S0),c=Math.imul(u0,b0),c=c+Math.imul(p0,S0)|0,l=Math.imul(p0,b0),f=f+Math.imul(U$,g0)|0,c=c+Math.imul(U$,m0)|0,c=c+Math.imul(G$,g0)|0,l=l+Math.imul(G$,m0)|0,f=f+Math.imul(C0,Y$)|0,c=c+Math.imul(C0,Y0)|0,c=c+Math.imul(x0,Y$)|0,l=l+Math.imul(x0,Y0)|0,f=f+Math.imul(l0,s0)|0,c=c+Math.imul(l0,a0)|0,c=c+Math.imul(j$,s0)|0,l=l+Math.imul(j$,a0)|0,f=f+Math.imul(w0,D$)|0,c=c+Math.imul(w0,F$)|0,c=c+Math.imul(h0,D$)|0,l=l+Math.imul(h0,F$)|0,f=f+Math.imul(N0,c$)|0,c=c+Math.imul(N0,q$)|0,c=c+Math.imul(A0,c$)|0,l=l+Math.imul(A0,q$)|0,f=f+Math.imul(a,O$)|0,c=c+Math.imul(a,V$)|0,c=c+Math.imul(J0,O$)|0,l=l+Math.imul(J0,V$)|0,f=f+Math.imul(K0,j1)|0,c=c+Math.imul(K0,v1)|0,c=c+Math.imul(q0,j1)|0,l=l+Math.imul(q0,v1)|0;var p2=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(p2>>>26)|0,p2&=67108863,f=Math.imul(u0,g0),c=Math.imul(u0,m0),c=c+Math.imul(p0,g0)|0,l=Math.imul(p0,m0),f=f+Math.imul(U$,Y$)|0,c=c+Math.imul(U$,Y0)|0,c=c+Math.imul(G$,Y$)|0,l=l+Math.imul(G$,Y0)|0,f=f+Math.imul(C0,s0)|0,c=c+Math.imul(C0,a0)|0,c=c+Math.imul(x0,s0)|0,l=l+Math.imul(x0,a0)|0,f=f+Math.imul(l0,D$)|0,c=c+Math.imul(l0,F$)|0,c=c+Math.imul(j$,D$)|0,l=l+Math.imul(j$,F$)|0,f=f+Math.imul(w0,c$)|0,c=c+Math.imul(w0,q$)|0,c=c+Math.imul(h0,c$)|0,l=l+Math.imul(h0,q$)|0,f=f+Math.imul(N0,O$)|0,c=c+Math.imul(N0,V$)|0,c=c+Math.imul(A0,O$)|0,l=l+Math.imul(A0,V$)|0,f=f+Math.imul(a,j1)|0,c=c+Math.imul(a,v1)|0,c=c+Math.imul(J0,j1)|0,l=l+Math.imul(J0,v1)|0;var f2=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(f2>>>26)|0,f2&=67108863,f=Math.imul(u0,Y$),c=Math.imul(u0,Y0),c=c+Math.imul(p0,Y$)|0,l=Math.imul(p0,Y0),f=f+Math.imul(U$,s0)|0,c=c+Math.imul(U$,a0)|0,c=c+Math.imul(G$,s0)|0,l=l+Math.imul(G$,a0)|0,f=f+Math.imul(C0,D$)|0,c=c+Math.imul(C0,F$)|0,c=c+Math.imul(x0,D$)|0,l=l+Math.imul(x0,F$)|0,f=f+Math.imul(l0,c$)|0,c=c+Math.imul(l0,q$)|0,c=c+Math.imul(j$,c$)|0,l=l+Math.imul(j$,q$)|0,f=f+Math.imul(w0,O$)|0,c=c+Math.imul(w0,V$)|0,c=c+Math.imul(h0,O$)|0,l=l+Math.imul(h0,V$)|0,f=f+Math.imul(N0,j1)|0,c=c+Math.imul(N0,v1)|0,c=c+Math.imul(A0,j1)|0,l=l+Math.imul(A0,v1)|0;var V2=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(V2>>>26)|0,V2&=67108863,f=Math.imul(u0,s0),c=Math.imul(u0,a0),c=c+Math.imul(p0,s0)|0,l=Math.imul(p0,a0),f=f+Math.imul(U$,D$)|0,c=c+Math.imul(U$,F$)|0,c=c+Math.imul(G$,D$)|0,l=l+Math.imul(G$,F$)|0,f=f+Math.imul(C0,c$)|0,c=c+Math.imul(C0,q$)|0,c=c+Math.imul(x0,c$)|0,l=l+Math.imul(x0,q$)|0,f=f+Math.imul(l0,O$)|0,c=c+Math.imul(l0,V$)|0,c=c+Math.imul(j$,O$)|0,l=l+Math.imul(j$,V$)|0,f=f+Math.imul(w0,j1)|0,c=c+Math.imul(w0,v1)|0,c=c+Math.imul(h0,j1)|0,l=l+Math.imul(h0,v1)|0;var T2=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(T2>>>26)|0,T2&=67108863,f=Math.imul(u0,D$),c=Math.imul(u0,F$),c=c+Math.imul(p0,D$)|0,l=Math.imul(p0,F$),f=f+Math.imul(U$,c$)|0,c=c+Math.imul(U$,q$)|0,c=c+Math.imul(G$,c$)|0,l=l+Math.imul(G$,q$)|0,f=f+Math.imul(C0,O$)|0,c=c+Math.imul(C0,V$)|0,c=c+Math.imul(x0,O$)|0,l=l+Math.imul(x0,V$)|0,f=f+Math.imul(l0,j1)|0,c=c+Math.imul(l0,v1)|0,c=c+Math.imul(j$,j1)|0,l=l+Math.imul(j$,v1)|0;var g2=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(g2>>>26)|0,g2&=67108863,f=Math.imul(u0,c$),c=Math.imul(u0,q$),c=c+Math.imul(p0,c$)|0,l=Math.imul(p0,q$),f=f+Math.imul(U$,O$)|0,c=c+Math.imul(U$,V$)|0,c=c+Math.imul(G$,O$)|0,l=l+Math.imul(G$,V$)|0,f=f+Math.imul(C0,j1)|0,c=c+Math.imul(C0,v1)|0,c=c+Math.imul(x0,j1)|0,l=l+Math.imul(x0,v1)|0;var y6=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(y6>>>26)|0,y6&=67108863,f=Math.imul(u0,O$),c=Math.imul(u0,V$),c=c+Math.imul(p0,O$)|0,l=Math.imul(p0,V$),f=f+Math.imul(U$,j1)|0,c=c+Math.imul(U$,v1)|0,c=c+Math.imul(G$,j1)|0,l=l+Math.imul(G$,v1)|0;var QX=(A+f|0)+((c&8191)<<13)|0;A=(l+(c>>>13)|0)+(QX>>>26)|0,QX&=67108863,f=Math.imul(u0,j1),c=Math.imul(u0,v1),c=c+Math.imul(p0,j1)|0,l=Math.imul(p0,v1);var T4=(A+f|0)+((c&8191)<<13)|0;if(A=(l+(c>>>13)|0)+(T4>>>26)|0,T4&=67108863,z[0]=I2,z[1]=W1,z[2]=A2,z[3]=c2,z[4]=M2,z[5]=Gv,z[6]=f1,z[7]=o1,z[8]=E2,z[9]=x2,z[10]=W2,z[11]=p2,z[12]=f2,z[13]=V2,z[14]=T2,z[15]=g2,z[16]=y6,z[17]=QX,z[18]=T4,A!==0)z[19]=A,w.length++;return w};if(!Math.imul)p=h;function s(Z,K,w){w.negative=K.negative^Z.negative,w.length=Z.length+K.length;var B=0,P=0;for(var z=0;z<w.length-1;z++){var A=P;P=0;var f=B&67108863,c=Math.min(z,K.length-1);for(var l=Math.max(0,z-Z.length+1);l<=c;l++){var Q0=z-l,F0=Z.words[Q0]|0,P0=K.words[l]|0,E0=F0*P0,_0=E0&67108863;A=A+(E0/67108864|0)|0,_0=_0+f|0,f=_0&67108863,A=A+(_0>>>26)|0,P+=A>>>26,A&=67108863}w.words[z]=f,B=A,A=P}if(B!==0)w.words[z]=B;else w.length--;return w._strip()}function j0(Z,K,w){return s(Z,K,w)}X.prototype.mulTo=function(Z,K){var w,B=this.length+Z.length;if(this.length===10&&Z.length===10)w=p(this,Z,K);else if(B<63)w=h(this,Z,K);else if(B<1024)w=s(this,Z,K);else w=j0(this,Z,K);return w};function I0(Z,K){this.x=Z,this.y=K}I0.prototype.makeRBT=function(Z){var K=Array(Z),w=X.prototype._countBits(Z)-1;for(var B=0;B<Z;B++)K[B]=this.revBin(B,w,Z);return K},I0.prototype.revBin=function(Z,K,w){if(Z===0||Z===w-1)return Z;var B=0;for(var P=0;P<K;P++)B|=(Z&1)<<K-P-1,Z>>=1;return B},I0.prototype.permute=function(Z,K,w,B,P,z){for(var A=0;A<z;A++)B[A]=K[Z[A]],P[A]=w[Z[A]]},I0.prototype.transform=function(Z,K,w,B,P,z){this.permute(z,Z,K,w,B,P);for(var A=1;A<P;A<<=1){var f=A<<1,c=Math.cos(2*Math.PI/f),l=Math.sin(2*Math.PI/f);for(var Q0=0;Q0<P;Q0+=f){var F0=c,P0=l;for(var E0=0;E0<A;E0++){var _0=w[Q0+E0],$0=B[Q0+E0],G0=w[Q0+E0+A],K0=B[Q0+E0+A],q0=F0*G0-P0*K0;if(K0=F0*K0+P0*G0,G0=q0,w[Q0+E0]=_0+G0,B[Q0+E0]=$0+K0,w[Q0+E0+A]=_0-G0,B[Q0+E0+A]=$0-K0,E0!==f)q0=c*F0-l*P0,P0=c*P0+l*F0,F0=q0}}}},I0.prototype.guessLen13b=function(Z,K){var w=Math.max(K,Z)|1,B=w&1,P=0;for(w=w/2|0;w;w=w>>>1)P++;return 1<<P+1+B},I0.prototype.conjugate=function(Z,K,w){if(w<=1)return;for(var B=0;B<w/2;B++){var P=Z[B];Z[B]=Z[w-B-1],Z[w-B-1]=P,P=K[B],K[B]=-K[w-B-1],K[w-B-1]=-P}},I0.prototype.normalize13b=function(Z,K){var w=0;for(var B=0;B<K/2;B++){var P=Math.round(Z[2*B+1]/K)*8192+Math.round(Z[2*B]/K)+w;if(Z[B]=P&67108863,P<67108864)w=0;else w=P/67108864|0}return Z},I0.prototype.convert13b=function(Z,K,w,B){var P=0;for(var z=0;z<K;z++)P=P+(Z[z]|0),w[2*z]=P&8191,P=P>>>13,w[2*z+1]=P&8191,P=P>>>13;for(z=2*K;z<B;++z)w[z]=0;j(P===0),j((P&-8192)===0)},I0.prototype.stub=function(Z){var K=Array(Z);for(var w=0;w<Z;w++)K[w]=0;return K},I0.prototype.mulp=function(Z,K,w){var B=2*this.guessLen13b(Z.length,K.length),P=this.makeRBT(B),z=this.stub(B),A=Array(B),f=Array(B),c=Array(B),l=Array(B),Q0=Array(B),F0=Array(B),P0=w.words;P0.length=B,this.convert13b(Z.words,Z.length,A,B),this.convert13b(K.words,K.length,l,B),this.transform(A,z,f,c,B,P),this.transform(l,z,Q0,F0,B,P);for(var E0=0;E0<B;E0++){var _0=f[E0]*Q0[E0]-c[E0]*F0[E0];c[E0]=f[E0]*F0[E0]+c[E0]*Q0[E0],f[E0]=_0}return this.conjugate(f,c,B),this.transform(f,c,P0,z,B,P),this.conjugate(P0,z,B),this.normalize13b(P0,B),w.negative=Z.negative^K.negative,w.length=Z.length+K.length,w._strip()},X.prototype.mul=function(Z){var K=new X(null);return K.words=Array(this.length+Z.length),this.mulTo(Z,K)},X.prototype.mulf=function(Z){var K=new X(null);return K.words=Array(this.length+Z.length),j0(this,Z,K)},X.prototype.imul=function(Z){return this.clone().mulTo(Z,this)},X.prototype.imuln=function(Z){var K=Z<0;if(K)Z=-Z;j(typeof Z==="number"),j(Z<67108864);var w=0;for(var B=0;B<this.length;B++){var P=(this.words[B]|0)*Z,z=(P&67108863)+(w&67108863);w>>=26,w+=P/67108864|0,w+=z>>>26,this.words[B]=z&67108863}if(w!==0)this.words[B]=w,this.length++;return this.length=Z===0?1:this.length,K?this.ineg():this},X.prototype.muln=function(Z){return this.clone().imuln(Z)},X.prototype.sqr=function(){return this.mul(this)},X.prototype.isqr=function(){return this.imul(this.clone())},X.prototype.pow=function(Z){var K=n(Z);if(K.length===0)return new X(1);var w=this;for(var B=0;B<K.length;B++,w=w.sqr())if(K[B]!==0)break;if(++B<K.length)for(var P=w.sqr();B<K.length;B++,P=P.sqr()){if(K[B]===0)continue;w=w.mul(P)}return w},X.prototype.iushln=function(Z){j(typeof Z==="number"&&Z>=0);var K=Z%26,w=(Z-K)/26,B=67108863>>>26-K<<26-K,P;if(K!==0){var z=0;for(P=0;P<this.length;P++){var A=this.words[P]&B,f=(this.words[P]|0)-A<<K;this.words[P]=f|z,z=A>>>26-K}if(z)this.words[P]=z,this.length++}if(w!==0){for(P=this.length-1;P>=0;P--)this.words[P+w]=this.words[P];for(P=0;P<w;P++)this.words[P]=0;this.length+=w}return this._strip()},X.prototype.ishln=function(Z){return j(this.negative===0),this.iushln(Z)},X.prototype.iushrn=function(Z,K,w){j(typeof Z==="number"&&Z>=0);var B;if(K)B=(K-K%26)/26;else B=0;var P=Z%26,z=Math.min((Z-P)/26,this.length),A=67108863^67108863>>>P<<P,f=w;if(B-=z,B=Math.max(0,B),f){for(var c=0;c<z;c++)f.words[c]=this.words[c];f.length=z}if(z===0);else if(this.length>z){this.length-=z;for(c=0;c<this.length;c++)this.words[c]=this.words[c+z]}else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(l!==0||c>=B);c--){var Q0=this.words[c]|0;this.words[c]=l<<26-P|Q0>>>P,l=Q0&A}if(f&&l!==0)f.words[f.length++]=l;if(this.length===0)this.words[0]=0,this.length=1;return this._strip()},X.prototype.ishrn=function(Z,K,w){return j(this.negative===0),this.iushrn(Z,K,w)},X.prototype.shln=function(Z){return this.clone().ishln(Z)},X.prototype.ushln=function(Z){return this.clone().iushln(Z)},X.prototype.shrn=function(Z){return this.clone().ishrn(Z)},X.prototype.ushrn=function(Z){return this.clone().iushrn(Z)},X.prototype.testn=function(Z){j(typeof Z==="number"&&Z>=0);var K=Z%26,w=(Z-K)/26,B=1<<K;if(this.length<=w)return!1;var P=this.words[w];return!!(P&B)},X.prototype.imaskn=function(Z){j(typeof Z==="number"&&Z>=0);var K=Z%26,w=(Z-K)/26;if(j(this.negative===0,"imaskn works only with positive numbers"),this.length<=w)return this;if(K!==0)w++;if(this.length=Math.min(w,this.length),K!==0){var B=67108863^67108863>>>K<<K;this.words[this.length-1]&=B}return this._strip()},X.prototype.maskn=function(Z){return this.clone().imaskn(Z)},X.prototype.iaddn=function(Z){if(j(typeof Z==="number"),j(Z<67108864),Z<0)return this.isubn(-Z);if(this.negative!==0){if(this.length===1&&(this.words[0]|0)<=Z)return this.words[0]=Z-(this.words[0]|0),this.negative=0,this;return this.negative=0,this.isubn(Z),this.negative=1,this}return this._iaddn(Z)},X.prototype._iaddn=function(Z){this.words[0]+=Z;for(var K=0;K<this.length&&this.words[K]>=67108864;K++)if(this.words[K]-=67108864,K===this.length-1)this.words[K+1]=1;else this.words[K+1]++;return this.length=Math.max(this.length,K+1),this},X.prototype.isubn=function(Z){if(j(typeof Z==="number"),j(Z<67108864),Z<0)return this.iaddn(-Z);if(this.negative!==0)return this.negative=0,this.iaddn(Z),this.negative=1,this;if(this.words[0]-=Z,this.length===1&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var K=0;K<this.length&&this.words[K]<0;K++)this.words[K]+=67108864,this.words[K+1]-=1;return this._strip()},X.prototype.addn=function(Z){return this.clone().iaddn(Z)},X.prototype.subn=function(Z){return this.clone().isubn(Z)},X.prototype.iabs=function(){return this.negative=0,this},X.prototype.abs=function(){return this.clone().iabs()},X.prototype._ishlnsubmul=function(Z,K,w){var B=Z.length+w,P;this._expand(B);var z,A=0;for(P=0;P<Z.length;P++){z=(this.words[P+w]|0)+A;var f=(Z.words[P]|0)*K;z-=f&67108863,A=(z>>26)-(f/67108864|0),this.words[P+w]=z&67108863}for(;P<this.length-w;P++)z=(this.words[P+w]|0)+A,A=z>>26,this.words[P+w]=z&67108863;if(A===0)return this._strip();j(A===-1),A=0;for(P=0;P<this.length;P++)z=-(this.words[P]|0)+A,A=z>>26,this.words[P]=z&67108863;return this.negative=1,this._strip()},X.prototype._wordDiv=function(Z,K){var w=this.length-Z.length,B=this.clone(),P=Z,z=P.words[P.length-1]|0,A=this._countBits(z);if(w=26-A,w!==0)P=P.ushln(w),B.iushln(w),z=P.words[P.length-1]|0;var f=B.length-P.length,c;if(K!=="mod"){c=new X(null),c.length=f+1,c.words=Array(c.length);for(var l=0;l<c.length;l++)c.words[l]=0}var Q0=B.clone()._ishlnsubmul(P,1,f);if(Q0.negative===0){if(B=Q0,c)c.words[f]=1}for(var F0=f-1;F0>=0;F0--){var P0=(B.words[P.length+F0]|0)*67108864+(B.words[P.length+F0-1]|0);P0=Math.min(P0/z|0,67108863),B._ishlnsubmul(P,P0,F0);while(B.negative!==0)if(P0--,B.negative=0,B._ishlnsubmul(P,1,F0),!B.isZero())B.negative^=1;if(c)c.words[F0]=P0}if(c)c._strip();if(B._strip(),K!=="div"&&w!==0)B.iushrn(w);return{div:c||null,mod:B}},X.prototype.divmod=function(Z,K,w){if(j(!Z.isZero()),this.isZero())return{div:new X(0),mod:new X(0)};var B,P,z;if(this.negative!==0&&Z.negative===0){if(z=this.neg().divmod(Z,K),K!=="mod")B=z.div.neg();if(K!=="div"){if(P=z.mod.neg(),w&&P.negative!==0)P.iadd(Z)}return{div:B,mod:P}}if(this.negative===0&&Z.negative!==0){if(z=this.divmod(Z.neg(),K),K!=="mod")B=z.div.neg();return{div:B,mod:z.mod}}if((this.negative&Z.negative)!==0){if(z=this.neg().divmod(Z.neg(),K),K!=="div"){if(P=z.mod.neg(),w&&P.negative!==0)P.isub(Z)}return{div:z.div,mod:P}}if(Z.length>this.length||this.cmp(Z)<0)return{div:new X(0),mod:this};if(Z.length===1){if(K==="div")return{div:this.divn(Z.words[0]),mod:null};if(K==="mod")return{div:null,mod:new X(this.modrn(Z.words[0]))};return{div:this.divn(Z.words[0]),mod:new X(this.modrn(Z.words[0]))}}return this._wordDiv(Z,K)},X.prototype.div=function(Z){return this.divmod(Z,"div",!1).div},X.prototype.mod=function(Z){return this.divmod(Z,"mod",!1).mod},X.prototype.umod=function(Z){return this.divmod(Z,"mod",!0).mod},X.prototype.divRound=function(Z){var K=this.divmod(Z);if(K.mod.isZero())return K.div;var w=K.div.negative!==0?K.mod.isub(Z):K.mod,B=Z.ushrn(1),P=Z.andln(1),z=w.cmp(B);if(z<0||P===1&&z===0)return K.div;return K.div.negative!==0?K.div.isubn(1):K.div.iaddn(1)},X.prototype.modrn=function(Z){var K=Z<0;if(K)Z=-Z;j(Z<=67108863);var w=67108864%Z,B=0;for(var P=this.length-1;P>=0;P--)B=(w*B+(this.words[P]|0))%Z;return K?-B:B},X.prototype.modn=function(Z){return this.modrn(Z)},X.prototype.idivn=function(Z){var K=Z<0;if(K)Z=-Z;j(Z<=67108863);var w=0;for(var B=this.length-1;B>=0;B--){var P=(this.words[B]|0)+w*67108864;this.words[B]=P/Z|0,w=P%Z}return this._strip(),K?this.ineg():this},X.prototype.divn=function(Z){return this.clone().idivn(Z)},X.prototype.egcd=function(Z){j(Z.negative===0),j(!Z.isZero());var K=this,w=Z.clone();if(K.negative!==0)K=K.umod(Z);else K=K.clone();var B=new X(1),P=new X(0),z=new X(0),A=new X(1),f=0;while(K.isEven()&&w.isEven())K.iushrn(1),w.iushrn(1),++f;var c=w.clone(),l=K.clone();while(!K.isZero()){for(var Q0=0,F0=1;(K.words[0]&F0)===0&&Q0<26;++Q0,F0<<=1);if(Q0>0){K.iushrn(Q0);while(Q0-- >0){if(B.isOdd()||P.isOdd())B.iadd(c),P.isub(l);B.iushrn(1),P.iushrn(1)}}for(var P0=0,E0=1;(w.words[0]&E0)===0&&P0<26;++P0,E0<<=1);if(P0>0){w.iushrn(P0);while(P0-- >0){if(z.isOdd()||A.isOdd())z.iadd(c),A.isub(l);z.iushrn(1),A.iushrn(1)}}if(K.cmp(w)>=0)K.isub(w),B.isub(z),P.isub(A);else w.isub(K),z.isub(B),A.isub(P)}return{a:z,b:A,gcd:w.iushln(f)}},X.prototype._invmp=function(Z){j(Z.negative===0),j(!Z.isZero());var K=this,w=Z.clone();if(K.negative!==0)K=K.umod(Z);else K=K.clone();var B=new X(1),P=new X(0),z=w.clone();while(K.cmpn(1)>0&&w.cmpn(1)>0){for(var A=0,f=1;(K.words[0]&f)===0&&A<26;++A,f<<=1);if(A>0){K.iushrn(A);while(A-- >0){if(B.isOdd())B.iadd(z);B.iushrn(1)}}for(var c=0,l=1;(w.words[0]&l)===0&&c<26;++c,l<<=1);if(c>0){w.iushrn(c);while(c-- >0){if(P.isOdd())P.iadd(z);P.iushrn(1)}}if(K.cmp(w)>=0)K.isub(w),B.isub(P);else w.isub(K),P.isub(B)}var Q0;if(K.cmpn(1)===0)Q0=B;else Q0=P;if(Q0.cmpn(0)<0)Q0.iadd(Z);return Q0},X.prototype.gcd=function(Z){if(this.isZero())return Z.abs();if(Z.isZero())return this.abs();var K=this.clone(),w=Z.clone();K.negative=0,w.negative=0;for(var B=0;K.isEven()&&w.isEven();B++)K.iushrn(1),w.iushrn(1);do{while(K.isEven())K.iushrn(1);while(w.isEven())w.iushrn(1);var P=K.cmp(w);if(P<0){var z=K;K=w,w=z}else if(P===0||w.cmpn(1)===0)break;K.isub(w)}while(!0);return w.iushln(B)},X.prototype.invm=function(Z){return this.egcd(Z).a.umod(Z)},X.prototype.isEven=function(){return(this.words[0]&1)===0},X.prototype.isOdd=function(){return(this.words[0]&1)===1},X.prototype.andln=function(Z){return this.words[0]&Z},X.prototype.bincn=function(Z){j(typeof Z==="number");var K=Z%26,w=(Z-K)/26,B=1<<K;if(this.length<=w)return this._expand(w+1),this.words[w]|=B,this;var P=B;for(var z=w;P!==0&&z<this.length;z++){var A=this.words[z]|0;A+=P,P=A>>>26,A&=67108863,this.words[z]=A}if(P!==0)this.words[z]=P,this.length++;return this},X.prototype.isZero=function(){return this.length===1&&this.words[0]===0},X.prototype.cmpn=function(Z){var K=Z<0;if(this.negative!==0&&!K)return-1;if(this.negative===0&&K)return 1;this._strip();var w;if(this.length>1)w=1;else{if(K)Z=-Z;j(Z<=67108863,"Number is too big");var B=this.words[0]|0;w=B===Z?0:B<Z?-1:1}if(this.negative!==0)return-w|0;return w},X.prototype.cmp=function(Z){if(this.negative!==0&&Z.negative===0)return-1;if(this.negative===0&&Z.negative!==0)return 1;var K=this.ucmp(Z);if(this.negative!==0)return-K|0;return K},X.prototype.ucmp=function(Z){if(this.length>Z.length)return 1;if(this.length<Z.length)return-1;var K=0;for(var w=this.length-1;w>=0;w--){var B=this.words[w]|0,P=Z.words[w]|0;if(B===P)continue;if(B<P)K=-1;else if(B>P)K=1;break}return K},X.prototype.gtn=function(Z){return this.cmpn(Z)===1},X.prototype.gt=function(Z){return this.cmp(Z)===1},X.prototype.gten=function(Z){return this.cmpn(Z)>=0},X.prototype.gte=function(Z){return this.cmp(Z)>=0},X.prototype.ltn=function(Z){return this.cmpn(Z)===-1},X.prototype.lt=function(Z){return this.cmp(Z)===-1},X.prototype.lten=function(Z){return this.cmpn(Z)<=0},X.prototype.lte=function(Z){return this.cmp(Z)<=0},X.prototype.eqn=function(Z){return this.cmpn(Z)===0},X.prototype.eq=function(Z){return this.cmp(Z)===0},X.red=function(Z){return new O(Z)},X.prototype.toRed=function(Z){return j(!this.red,"Already a number in reduction context"),j(this.negative===0,"red works only with positives"),Z.convertTo(this)._forceRed(Z)},X.prototype.fromRed=function(){return j(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},X.prototype._forceRed=function(Z){return this.red=Z,this},X.prototype.forceRed=function(Z){return j(!this.red,"Already a number in reduction context"),this._forceRed(Z)},X.prototype.redAdd=function(Z){return j(this.red,"redAdd works only with red numbers"),this.red.add(this,Z)},X.prototype.redIAdd=function(Z){return j(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,Z)},X.prototype.redSub=function(Z){return j(this.red,"redSub works only with red numbers"),this.red.sub(this,Z)},X.prototype.redISub=function(Z){return j(this.red,"redISub works only with red numbers"),this.red.isub(this,Z)},X.prototype.redShl=function(Z){return j(this.red,"redShl works only with red numbers"),this.red.shl(this,Z)},X.prototype.redMul=function(Z){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,Z),this.red.mul(this,Z)},X.prototype.redIMul=function(Z){return j(this.red,"redMul works only with red numbers"),this.red._verify2(this,Z),this.red.imul(this,Z)},X.prototype.redSqr=function(){return j(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},X.prototype.redISqr=function(){return j(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},X.prototype.redSqrt=function(){return j(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},X.prototype.redInvm=function(){return j(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},X.prototype.redNeg=function(){return j(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},X.prototype.redPow=function(Z){return j(this.red&&!Z.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,Z)};var H0={k256:null,p224:null,p192:null,p25519:null};function L0(Z,K){this.name=Z,this.p=new X(K,16),this.n=this.p.bitLength(),this.k=new X(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}L0.prototype._tmp=function(){var Z=new X(null);return Z.words=Array(Math.ceil(this.n/13)),Z},L0.prototype.ireduce=function(Z){var K=Z,w;do this.split(K,this.tmp),K=this.imulK(K),K=K.iadd(this.tmp),w=K.bitLength();while(w>this.n);var B=w<this.n?-1:K.ucmp(this.p);if(B===0)K.words[0]=0,K.length=1;else if(B>0)K.isub(this.p);else if(K.strip!==void 0)K.strip();else K._strip();return K},L0.prototype.split=function(Z,K){Z.iushrn(this.n,0,K)},L0.prototype.imulK=function(Z){return Z.imul(this.k)};function R0(){L0.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}G(R0,L0),R0.prototype.split=function(Z,K){var w=4194303,B=Math.min(Z.length,9);for(var P=0;P<B;P++)K.words[P]=Z.words[P];if(K.length=B,Z.length<=9){Z.words[0]=0,Z.length=1;return}var z=Z.words[9];K.words[K.length++]=z&w;for(P=10;P<Z.length;P++){var A=Z.words[P]|0;Z.words[P-10]=(A&w)<<4|z>>>22,z=A}if(z>>>=22,Z.words[P-10]=z,z===0&&Z.length>10)Z.length-=10;else Z.length-=9},R0.prototype.imulK=function(Z){Z.words[Z.length]=0,Z.words[Z.length+1]=0,Z.length+=2;var K=0;for(var w=0;w<Z.length;w++){var B=Z.words[w]|0;K+=B*977,Z.words[w]=K&67108863,K=B*64+(K/67108864|0)}if(Z.words[Z.length-1]===0){if(Z.length--,Z.words[Z.length-1]===0)Z.length--}return Z};function U0(){L0.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}G(U0,L0);function c0(){L0.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}G(c0,L0);function Y(){L0.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}G(Y,L0),Y.prototype.imulK=function(Z){var K=0;for(var w=0;w<Z.length;w++){var B=(Z.words[w]|0)*19+K,P=B&67108863;B>>>=26,Z.words[w]=P,K=B}if(K!==0)Z.words[Z.length++]=K;return Z},X._prime=function(Z){if(H0[Z])return H0[Z];var K;if(Z==="k256")K=new R0;else if(Z==="p224")K=new U0;else if(Z==="p192")K=new c0;else if(Z==="p25519")K=new Y;else throw Error("Unknown prime "+Z);return H0[Z]=K,K};function O(Z){if(typeof Z==="string"){var K=X._prime(Z);this.m=K.p,this.prime=K}else j(Z.gtn(1),"modulus must be greater than 1"),this.m=Z,this.prime=null}O.prototype._verify1=function(Z){j(Z.negative===0,"red works only with positives"),j(Z.red,"red works only with red numbers")},O.prototype._verify2=function(Z,K){j((Z.negative|K.negative)===0,"red works only with positives"),j(Z.red&&Z.red===K.red,"red works only with red numbers")},O.prototype.imod=function(Z){if(this.prime)return this.prime.ireduce(Z)._forceRed(this);return D(Z,Z.umod(this.m)._forceRed(this)),Z},O.prototype.neg=function(Z){if(Z.isZero())return Z.clone();return this.m.sub(Z)._forceRed(this)},O.prototype.add=function(Z,K){this._verify2(Z,K);var w=Z.add(K);if(w.cmp(this.m)>=0)w.isub(this.m);return w._forceRed(this)},O.prototype.iadd=function(Z,K){this._verify2(Z,K);var w=Z.iadd(K);if(w.cmp(this.m)>=0)w.isub(this.m);return w},O.prototype.sub=function(Z,K){this._verify2(Z,K);var w=Z.sub(K);if(w.cmpn(0)<0)w.iadd(this.m);return w._forceRed(this)},O.prototype.isub=function(Z,K){this._verify2(Z,K);var w=Z.isub(K);if(w.cmpn(0)<0)w.iadd(this.m);return w},O.prototype.shl=function(Z,K){return this._verify1(Z),this.imod(Z.ushln(K))},O.prototype.imul=function(Z,K){return this._verify2(Z,K),this.imod(Z.imul(K))},O.prototype.mul=function(Z,K){return this._verify2(Z,K),this.imod(Z.mul(K))},O.prototype.isqr=function(Z){return this.imul(Z,Z.clone())},O.prototype.sqr=function(Z){return this.mul(Z,Z)},O.prototype.sqrt=function(Z){if(Z.isZero())return Z.clone();var K=this.m.andln(3);if(j(K%2===1),K===3){var w=this.m.add(new X(1)).iushrn(2);return this.pow(Z,w)}var B=this.m.subn(1),P=0;while(!B.isZero()&&B.andln(1)===0)P++,B.iushrn(1);j(!B.isZero());var z=new X(1).toRed(this),A=z.redNeg(),f=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new X(2*c*c).toRed(this);while(this.pow(c,f).cmp(A)!==0)c.redIAdd(A);var l=this.pow(c,B),Q0=this.pow(Z,B.addn(1).iushrn(1)),F0=this.pow(Z,B),P0=P;while(F0.cmp(z)!==0){var E0=F0;for(var _0=0;E0.cmp(z)!==0;_0++)E0=E0.redSqr();j(_0<P0);var $0=this.pow(l,new X(1).iushln(P0-_0-1));Q0=Q0.redMul($0),l=$0.redSqr(),F0=F0.redMul(l),P0=_0}return Q0},O.prototype.invm=function(Z){var K=Z._invmp(this.m);if(K.negative!==0)return K.negative=0,this.imod(K).redNeg();else return this.imod(K)},O.prototype.pow=function(Z,K){if(K.isZero())return new X(1).toRed(this);if(K.cmpn(1)===0)return Z.clone();var w=4,B=Array(1<<w);B[0]=new X(1).toRed(this),B[1]=Z;for(var P=2;P<B.length;P++)B[P]=this.mul(B[P-1],Z);var z=B[0],A=0,f=0,c=K.bitLength()%26;if(c===0)c=26;for(P=K.length-1;P>=0;P--){var l=K.words[P];for(var Q0=c-1;Q0>=0;Q0--){var F0=l>>Q0&1;if(z!==B[0])z=this.sqr(z);if(F0===0&&A===0){f=0;continue}if(A<<=1,A|=F0,f++,f!==w&&(P!==0||Q0!==0))continue;z=this.mul(z,B[A]),f=0,A=0}c=26}return z},O.prototype.convertTo=function(Z){var K=Z.umod(this.m);return K===Z?K.clone():K},O.prototype.convertFrom=function(Z){var K=Z.clone();return K.red=null,K},X.mont=function(Z){return new H(Z)};function H(Z){if(O.call(this,Z),this.shift=this.m.bitLength(),this.shift%26!==0)this.shift+=26-this.shift%26;this.r=new X(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}G(H,O),H.prototype.convertTo=function(Z){return this.imod(Z.ushln(this.shift))},H.prototype.convertFrom=function(Z){var K=this.imod(Z.mul(this.rinv));return K.red=null,K},H.prototype.imul=function(Z,K){if(Z.isZero()||K.isZero())return Z.words[0]=0,Z.length=1,Z;var w=Z.imul(K),B=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=w.isub(B).iushrn(this.shift),z=P;if(P.cmp(this.m)>=0)z=P.isub(this.m);else if(P.cmpn(0)<0)z=P.iadd(this.m);return z._forceRed(this)},H.prototype.mul=function(Z,K){if(Z.isZero()||K.isZero())return new X(0)._forceRed(this);var w=Z.mul(K),B=w.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),P=w.isub(B).iushrn(this.shift),z=P;if(P.cmp(this.m)>=0)z=P.isub(this.m);else if(P.cmpn(0)<0)z=P.iadd(this.m);return z._forceRed(this)},H.prototype.invm=function(Z){var K=this.imod(Z._invmp(this.m).mul(this.r2));return K._forceRed(this)}})(typeof _>"u"||_,$)}),mN=E$(($,_)=>{var I=fm(),J=KD(),j=v6().Buffer;function G(T){var F=T.modulus.byteLength(),E;do E=new I(J(F));while(E.cmp(T.modulus)>=0||!E.umod(T.prime1)||!E.umod(T.prime2));return E}function X(T){var F=G(T),E=F.toRed(I.mont(T.modulus)).redPow(new I(T.publicExponent)).fromRed();return{blinder:E,unblinder:F.invm(T.modulus)}}function W(T,F){var E=X(F),D=F.modulus.byteLength(),q=new I(T).mul(E.blinder).umod(F.modulus),S=q.toRed(I.mont(F.prime1)),k=q.toRed(I.mont(F.prime2)),y=F.coefficient,m=F.prime1,n=F.prime2,h=S.redPow(F.exponent1).fromRed(),p=k.redPow(F.exponent2).fromRed(),s=h.isub(p).imul(y).umod(m).imul(n);return p.iadd(s).imul(E.unblinder).umod(F.modulus).toArrayLike(j,"be",D)}W.getr=G,_.exports=W}),ym=E$(($,_)=>{var I=fN(),J=KD(),j=HD(),G=yN(),X=bN(),W=JA(),T=hN(),F=mN(),E=v6().Buffer;_.exports=function(k,y,m){var n;if(k.padding)n=k.padding;else if(m)n=1;else n=4;var h=I(k),p;if(n===4)p=D(h,y);else if(n===1)p=q(h,y,m);else if(n===3){if(p=new W(y),p.cmp(h.modulus)>=0)throw Error("data too long for modulus")}else throw Error("unknown padding");if(m)return F(p,h);else return T(p,h)};function D(k,y){var m=k.modulus.byteLength(),n=y.length,h=j("sha1").update(E.alloc(0)).digest(),p=h.length,s=2*p;if(n>m-s-2)throw Error("message too long");var j0=E.alloc(m-n-s-2),I0=m-p-1,H0=J(p),L0=X(E.concat([h,j0,E.alloc(1,1),y],I0),G(H0,I0)),R0=X(H0,G(L0,p));return new W(E.concat([E.alloc(1),R0,L0],m))}function q(k,y,m){var n=y.length,h=k.modulus.byteLength();if(n>h-11)throw Error("message too long");var p;if(m)p=E.alloc(h-n-3,255);else p=S(h-n-3);return new W(E.concat([E.from([0,m?1:2]),p,E.alloc(1),y],h))}function S(k){var y=E.allocUnsafe(k),m=0,n=J(k*2),h=0,p;while(m<k){if(h===n.length)n=J(k*2),h=0;if(p=n[h++],p)y[m++]=p}return y}}),bm=E$(($,_)=>{var I=fN(),J=yN(),j=bN(),G=JA(),X=mN(),W=HD(),T=hN(),F=v6().Buffer;_.exports=function(S,k,y){var m;if(S.padding)m=S.padding;else if(y)m=1;else m=4;var n=I(S),h=n.modulus.byteLength();if(k.length>h||new G(k).cmp(n.modulus)>=0)throw Error("decryption error");var p;if(y)p=T(new G(k),n);else p=X(k,n);var s=F.alloc(h-p.length);if(p=F.concat([s,p],h),m===4)return E(n,p);else if(m===1)return D(n,p,y);else if(m===3)return p;else throw Error("unknown padding")};function E(S,k){var y=S.modulus.byteLength(),m=W("sha1").update(F.alloc(0)).digest(),n=m.length;if(k[0]!==0)throw Error("decryption error");var h=k.slice(1,n+1),p=k.slice(n+1),s=j(h,J(p,n)),j0=j(p,J(s,y-n-1));if(q(m,j0.slice(0,n)))throw Error("decryption error");var I0=n;while(j0[I0]===0)I0++;if(j0[I0++]!==1)throw Error("decryption error");return j0.slice(I0)}function D(S,k,y){var m=k.slice(0,2),n=2,h=0;while(k[n++]!==0)if(n>=k.length){h++;break}var p=k.slice(2,n-1);if(m.toString("hex")!=="0002"&&!y||m.toString("hex")!=="0001"&&y)h++;if(p.length<8)h++;if(h)throw Error("decryption error");return k.slice(n)}function q(S,k){S=F.from(S),k=F.from(k);var y=0,m=S.length;if(S.length!==k.length)y++,m=Math.min(S.length,k.length);var n=-1;while(++n<m)y+=S[n]^k[n];return y}}),$A=E$(($)=>{$.publicEncrypt=ym(),$.privateDecrypt=bm(),$.privateEncrypt=function(_,I){return $.publicEncrypt(_,I,!0)},$.publicDecrypt=function(_,I){return $.privateDecrypt(_,I,!0)}}),hm=E$(($)=>{var _=(Mv(),X1(K4));if(typeof _.publicEncrypt!=="function")_=$A();if($.publicEncrypt=_.publicEncrypt,$.privateDecrypt=_.privateDecrypt,typeof _.privateEncrypt!=="function")$.privateEncrypt=$A().privateEncrypt;else $.privateEncrypt=_.privateEncrypt;if(typeof _.publicDecrypt!=="function")$.publicDecrypt=$A().publicDecrypt;else $.publicDecrypt=_.publicDecrypt}),mm=E$(($)=>{var _=v6(),I=KD(),J=_.Buffer,j=_.kMaxLength,G=globalThis.crypto||globalThis.msCrypto,X=Math.pow(2,32)-1;function W(q,S){if(typeof q!=="number"||q!==q)throw TypeError("offset must be a number");if(q>X||q<0)throw TypeError("offset must be a uint32");if(q>j||q>S)throw RangeError("offset out of range")}function T(q,S,k){if(typeof q!=="number"||q!==q)throw TypeError("size must be a number");if(q>X||q<0)throw TypeError("size must be a uint32");if(q+S>k||q>j)throw RangeError("buffer too small")}G&&G.getRandomValues,$.randomFill=F,$.randomFillSync=D;function F(q,S,k,y){if(!J.isBuffer(q)&&!(q instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof S==="function")y=S,S=0,k=q.length;else if(typeof k==="function")y=k,k=q.length-S;else if(typeof y!=="function")throw TypeError('"cb" argument must be a function');return W(S,q.length),T(k,S,q.length),E(q,S,k,y)}function E(q,S,k,y){if(!1)var m,n;if(y){I(k,function(p,s){if(p)return y(p);s.copy(q,S),y(null,q)});return}var h=I(k);return h.copy(q,S),q}function D(q,S,k){if(typeof S>"u")S=0;if(!J.isBuffer(q)&&!(q instanceof globalThis.Uint8Array))throw TypeError('"buf" argument must be a Buffer or Uint8Array');if(W(S,q.length),k===void 0)k=q.length-S;return T(k,S,q.length),E(q,S,k)}}),um=E$(($,_)=>{var I=(Mv(),X1(K4));if(typeof I.randomFill==="function"&&typeof I.randomFillSync==="function")$.randomFill=I.randomFill,$.randomFillSync=I.randomFillSync;else _.exports=mm()}),nm=E$(($)=>{$.randomBytes=$.rng=$.pseudoRandomBytes=$.prng=KD(),$.createHash=$.Hash=HD(),$.createHmac=$.Hmac=WN();var _=Oh(),I=Object.keys(_),J=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(I);$.getHashes=function(){return J};var j=PN();$.pbkdf2=j.pbkdf2,$.pbkdf2Sync=j.pbkdf2Sync;var G=th();$.Cipher=G.Cipher,$.createCipher=G.createCipher,$.Cipheriv=G.Cipheriv,$.createCipheriv=G.createCipheriv,$.Decipher=G.Decipher,$.createDecipher=G.createDecipher,$.Decipheriv=G.Decipheriv,$.createDecipheriv=G.createDecipheriv,$.getCiphers=G.getCiphers,$.listCiphers=G.listCiphers;var X=oh();$.DiffieHellmanGroup=X.DiffieHellmanGroup,$.createDiffieHellmanGroup=X.createDiffieHellmanGroup,$.getDiffieHellman=X.getDiffieHellman,$.createDiffieHellman=X.createDiffieHellman,$.DiffieHellman=X.DiffieHellman;var W=ah();$.createSign=W.createSign,$.Sign=W.Sign,$.createVerify=W.createVerify,$.Verify=W.Verify,$.createECDH=Am();var T=hm();$.publicEncrypt=T.publicEncrypt,$.privateEncrypt=T.privateEncrypt,$.publicDecrypt=T.publicDecrypt,$.privateDecrypt=T.privateDecrypt;var F=um();$.randomFill=F.randomFill,$.randomFillSync=F.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}}),t1=Zh(nm(),1),pm=t1.prng,lm=t1.pseudoRandomBytes,im=t1.rng,dm=t1.randomBytes,rm=t1.Hash,JU=t1.createHash,tm=t1.Hmac,uN=t1.createHmac,om=t1.getHashes,am=t1.pbkdf2,sm=t1.pbkdf2Sync,em=t1.Cipher,$u=t1.createCipher,vu=t1.Cipheriv,_u=t1.createCipheriv,ju=t1.Decipher,Uu=t1.createDecipher,Iu=t1.Decipheriv,Xu=t1.createDecipheriv,Gu=t1.getCiphers,Yu=t1.listCiphers,Ju=t1.DiffieHellmanGroup,Qu=t1.createDiffieHellmanGroup,zu=t1.getDiffieHellman,Zu=t1.createDiffieHellman,Ou=t1.DiffieHellman,Lu=t1.createSign,Wu=t1.Sign,Du=t1.createVerify,Ku=t1.Verify,Hu=t1.createECDH,Fu=t1.publicEncrypt,Au=t1.privateEncrypt,Mu=t1.publicDecrypt,Eu=t1.privateDecrypt,Vu=t1.randomFill,Tu=t1.randomFillSync,Ru=t1.createCredentials,Pu=t1.constants,Cu=["p192","p224","p256","p384","p521","curve25519","ed25519","secp256k1","secp224r1","prime256v1","prime192v1","ed25519","secp384r1","secp521r1"];Nu=crypto,Bu=crypto});var oN={};_j(oN,{sep:()=>OA,resolve:()=>ZI,relative:()=>ZA,posix:()=>tN,parse:()=>dN,normalize:()=>zA,join:()=>F2,isAbsolute:()=>tJ,format:()=>iN,extname:()=>lN,dirname:()=>W_,delimiter:()=>rN,default:()=>ku,basename:()=>QZ,_makeLong:()=>pN});function OG($){if(typeof $!=="string")throw TypeError("Path must be a string. Received "+JSON.stringify($))}function nN($,_){var I="",J=0,j=-1,G=0,X;for(var W=0;W<=$.length;++W){if(W<$.length)X=$.charCodeAt(W);else if(X===47)break;else X=47;if(X===47){if(j===W-1||G===1);else if(j!==W-1&&G===2){if(I.length<2||J!==2||I.charCodeAt(I.length-1)!==46||I.charCodeAt(I.length-2)!==46){if(I.length>2){var T=I.lastIndexOf("/");if(T!==I.length-1){if(T===-1)I="",J=0;else I=I.slice(0,T),J=I.length-1-I.lastIndexOf("/");j=W,G=0;continue}}else if(I.length===2||I.length===1){I="",J=0,j=W,G=0;continue}}if(_){if(I.length>0)I+="/..";else I="..";J=2}}else{if(I.length>0)I+="/"+$.slice(j+1,W);else I=$.slice(j+1,W);J=W-j-1}j=W,G=0}else if(X===46&&G!==-1)++G;else G=-1}return I}function Su($,_){var I=_.dir||_.root,J=_.base||(_.name||"")+(_.ext||"");if(!I)return J;if(I===_.root)return I+J;return I+$+J}function ZI(){var $="",_=!1,I;for(var J=arguments.length-1;J>=-1&&!_;J--){var j;if(J>=0)j=arguments[J];else{if(I===void 0)I=process.cwd();j=I}if(OG(j),j.length===0)continue;$=j+"/"+$,_=j.charCodeAt(0)===47}if($=nN($,!_),_)if($.length>0)return"/"+$;else return"/";else if($.length>0)return $;else return"."}function zA($){if(OG($),$.length===0)return".";var _=$.charCodeAt(0)===47,I=$.charCodeAt($.length-1)===47;if($=nN($,!_),$.length===0&&!_)$=".";if($.length>0&&I)$+="/";if(_)return"/"+$;return $}function tJ($){return OG($),$.length>0&&$.charCodeAt(0)===47}function F2(){if(arguments.length===0)return".";var $;for(var _=0;_<arguments.length;++_){var I=arguments[_];if(OG(I),I.length>0)if($===void 0)$=I;else $+="/"+I}if($===void 0)return".";return zA($)}function ZA($,_){if(OG($),OG(_),$===_)return"";if($=ZI($),_=ZI(_),$===_)return"";var I=1;for(;I<$.length;++I)if($.charCodeAt(I)!==47)break;var J=$.length,j=J-I,G=1;for(;G<_.length;++G)if(_.charCodeAt(G)!==47)break;var X=_.length,W=X-G,T=j<W?j:W,F=-1,E=0;for(;E<=T;++E){if(E===T){if(W>T){if(_.charCodeAt(G+E)===47)return _.slice(G+E+1);else if(E===0)return _.slice(G+E)}else if(j>T){if($.charCodeAt(I+E)===47)F=E;else if(E===0)F=0}break}var D=$.charCodeAt(I+E),q=_.charCodeAt(G+E);if(D!==q)break;else if(D===47)F=E}var S="";for(E=I+F+1;E<=J;++E)if(E===J||$.charCodeAt(E)===47)if(S.length===0)S+="..";else S+="/..";if(S.length>0)return S+_.slice(G+F);else{if(G+=F,_.charCodeAt(G)===47)++G;return _.slice(G)}}function pN($){return $}function W_($){if(OG($),$.length===0)return".";var _=$.charCodeAt(0),I=_===47,J=-1,j=!0;for(var G=$.length-1;G>=1;--G)if(_=$.charCodeAt(G),_===47){if(!j){J=G;break}}else j=!1;if(J===-1)return I?"/":".";if(I&&J===1)return"//";return $.slice(0,J)}function QZ($,_){if(_!==void 0&&typeof _!=="string")throw TypeError('"ext" argument must be a string');OG($);var I=0,J=-1,j=!0,G;if(_!==void 0&&_.length>0&&_.length<=$.length){if(_.length===$.length&&_===$)return"";var X=_.length-1,W=-1;for(G=$.length-1;G>=0;--G){var T=$.charCodeAt(G);if(T===47){if(!j){I=G+1;break}}else{if(W===-1)j=!1,W=G+1;if(X>=0)if(T===_.charCodeAt(X)){if(--X===-1)J=G}else X=-1,J=W}}if(I===J)J=W;else if(J===-1)J=$.length;return $.slice(I,J)}else{for(G=$.length-1;G>=0;--G)if($.charCodeAt(G)===47){if(!j){I=G+1;break}}else if(J===-1)j=!1,J=G+1;if(J===-1)return"";return $.slice(I,J)}}function lN($){OG($);var _=-1,I=0,J=-1,j=!0,G=0;for(var X=$.length-1;X>=0;--X){var W=$.charCodeAt(X);if(W===47){if(!j){I=X+1;break}continue}if(J===-1)j=!1,J=X+1;if(W===46){if(_===-1)_=X;else if(G!==1)G=1}else if(_!==-1)G=-1}if(_===-1||J===-1||G===0||G===1&&_===J-1&&_===I+1)return"";return $.slice(_,J)}function iN($){if($===null||typeof $!=="object")throw TypeError('The "pathObject" argument must be of type Object. Received type '+typeof $);return Su("/",$)}function dN($){OG($);var _={root:"",dir:"",base:"",ext:"",name:""};if($.length===0)return _;var I=$.charCodeAt(0),J=I===47,j;if(J)_.root="/",j=1;else j=0;var G=-1,X=0,W=-1,T=!0,F=$.length-1,E=0;for(;F>=j;--F){if(I=$.charCodeAt(F),I===47){if(!T){X=F+1;break}continue}if(W===-1)T=!1,W=F+1;if(I===46){if(G===-1)G=F;else if(E!==1)E=1}else if(G!==-1)E=-1}if(G===-1||W===-1||E===0||E===1&&G===W-1&&G===X+1){if(W!==-1)if(X===0&&J)_.base=_.name=$.slice(1,W);else _.base=_.name=$.slice(X,W)}else{if(X===0&&J)_.name=$.slice(1,G),_.base=$.slice(1,W);else _.name=$.slice(X,G),_.base=$.slice(X,W);_.ext=$.slice(G,W)}if(X>0)_.dir=$.slice(0,X-1);else if(J)_.dir="/";return _}var OA="/",rN=":",tN,ku;var jj=GX(()=>{tN=(($)=>($.posix=$,$))({resolve:ZI,normalize:zA,isAbsolute:tJ,join:F2,relative:ZA,_makeLong:pN,dirname:W_,basename:QZ,extname:lN,format:iN,parse:dN,sep:OA,delimiter:rN,win32:null,posix:null}),ku=tN});var Lk=eU((Ij0,Ok)=>{function ad($){let _=String($??"").trim(),I=/^(\S+)\s+from\s+(\S+)$/.exec(_);if(I){let J=Date.parse(I[1]),j=Date.parse(I[2]);if(!Number.isNaN(J)&&!Number.isNaN(j))return{kind:"running",at:J,since:j}}else{let J=Date.parse(_);if(!Number.isNaN(J))return{kind:"frozen",at:J}}throw Error(`world clock: expected an ISO-8601 instant, or "<instant> from <instant>", got ${JSON.stringify(_.slice(0,60))}`)}function sd($,_){return $.kind==="running"?$.at+(_-$.since):$.at}function ed($){return $.kind==="running"?`${new Date($.at).toISOString()} from ${new Date($.since).toISOString()}`:new Date($.at).toISOString()}Ok.exports={parseClock:ad,clockNowMs:sd,formatClock:ed}});var AP={};_j(AP,{resolveObject:()=>ok,resolve:()=>tk,parse:()=>eZ,format:()=>rk,default:()=>Ht,Url:()=>E4,URLSearchParams:()=>ik,URL:()=>HP});function FP($){return typeof $==="string"}function dk($){return typeof $==="object"&&$!==null}function CK($){return $===null}function Jt($){return $==null}function E4(){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 eZ($,_,I){if($&&dk($)&&$ instanceof E4)return $;var J=new E4;return J.parse($,_,I),J}function rk($){if(FP($))$=eZ($);if(!($ instanceof E4))return E4.prototype.format.call($);return $.format()}function tk($,_){return eZ($,!1,!0).resolve(_)}function ok($,_){if(!$)return _;return eZ($,!1,!0).resolveObject(_)}var HP,ik,Qt,zt,Zt,Ot,Lt,WP,nk,pk,Wt=255,lk,Dt,Kt,DP,sZ,KP,Ht;var MP=GX(()=>{({URL:HP,URLSearchParams:ik}=globalThis);Qt=/^([a-z0-9.+-]+:)/i,zt=/:[0-9]*$/,Zt=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ot=["<",">",'"',"`"," ","\r",`
246
- `,"\t"],Lt=["{","}","|","\\","^","`"].concat(Ot),WP=["'"].concat(Lt),nk=["%","/","?",";","#"].concat(WP),pk=["/","?","#"],lk=/^[+a-z0-9A-Z_-]{0,63}$/,Dt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Kt={javascript:!0,"javascript:":!0},DP={javascript:!0,"javascript:":!0},sZ={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},KP={parse($){var _=decodeURIComponent;return($+"").replace(/\+/g," ").split("&").filter(Boolean).reduce(function(I,J,j){var G=J.split("="),X=_(G[0]||""),W=_(G[1]||""),T=I[X];return I[X]=T===void 0?W:[].concat(T,W),I},{})},stringify($){var _=encodeURIComponent;return Object.keys($||{}).reduce(function(I,J){return[].concat($[J]).forEach(function(j){I.push(_(J)+"="+_(j))}),I},[]).join("&").replace(/\s/g,"+")}};E4.prototype.parse=function($,_,I){if(!FP($))throw TypeError("Parameter 'url' must be a string, not "+typeof $);var J=$.indexOf("?"),j=J!==-1&&J<$.indexOf("#")?"?":"#",G=$.split(j),X=/\\/g;G[0]=G[0].replace(X,"/"),$=G.join(j);var W=$;if(W=W.trim(),!I&&$.split("#").length===1){var T=Zt.exec(W);if(T){if(this.path=W,this.href=W,this.pathname=T[1],T[2])if(this.search=T[2],_)this.query=KP.parse(this.search.substr(1));else this.query=this.search.substr(1);else if(_)this.search="",this.query={};return this}}var F=Qt.exec(W);if(F){F=F[0];var E=F.toLowerCase();this.protocol=E,W=W.substr(F.length)}if(I||F||W.match(/^\/\/[^@\/]+@[^@\/]+/)){var D=W.substr(0,2)==="//";if(D&&!(F&&DP[F]))W=W.substr(2),this.slashes=!0}if(!DP[F]&&(D||F&&!sZ[F])){var q=-1;for(var S=0;S<pk.length;S++){var k=W.indexOf(pk[S]);if(k!==-1&&(q===-1||k<q))q=k}var y,m;if(q===-1)m=W.lastIndexOf("@");else m=W.lastIndexOf("@",q);if(m!==-1)y=W.slice(0,m),W=W.slice(m+1),this.auth=decodeURIComponent(y);q=-1;for(var S=0;S<nk.length;S++){var k=W.indexOf(nk[S]);if(k!==-1&&(q===-1||k<q))q=k}if(q===-1)q=W.length;this.host=W.slice(0,q),W=W.slice(q),this.parseHost(),this.hostname=this.hostname||"";var n=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!n){var h=this.hostname.split(/\./);for(var S=0,p=h.length;S<p;S++){var s=h[S];if(!s)continue;if(!s.match(lk)){var j0="";for(var I0=0,H0=s.length;I0<H0;I0++)if(s.charCodeAt(I0)>127)j0+="x";else j0+=s[I0];if(!j0.match(lk)){var L0=h.slice(0,S),R0=h.slice(S+1),U0=s.match(Dt);if(U0)L0.push(U0[1]),R0.unshift(U0[2]);if(R0.length)W="/"+R0.join(".")+W;this.hostname=L0.join(".");break}}}}if(this.hostname.length>Wt)this.hostname="";else this.hostname=this.hostname.toLowerCase();if(!n)this.hostname=new HP(`https://${this.hostname}`).hostname;var c0=this.port?":"+this.port:"",Y=this.hostname||"";if(this.host=Y+c0,this.href+=this.host,n){if(this.hostname=this.hostname.substr(1,this.hostname.length-2),W[0]!=="/")W="/"+W}}if(!Kt[E])for(var S=0,p=WP.length;S<p;S++){var O=WP[S];if(W.indexOf(O)===-1)continue;var H=encodeURIComponent(O);if(H===O)H=escape(O);W=W.split(O).join(H)}var Z=W.indexOf("#");if(Z!==-1)this.hash=W.substr(Z),W=W.slice(0,Z);var K=W.indexOf("?");if(K!==-1){if(this.search=W.substr(K),this.query=W.substr(K+1),_)this.query=KP.parse(this.query);W=W.slice(0,K)}else if(_)this.search="",this.query={};if(W)this.pathname=W;if(sZ[E]&&this.hostname&&!this.pathname)this.pathname="/";if(this.pathname||this.search){var c0=this.pathname||"",w=this.search||"";this.path=c0+w}return this.href=this.format(),this};E4.prototype.format=function(){var $=this.auth||"";if($)$=encodeURIComponent($),$=$.replace(/%3A/i,":"),$+="@";var _=this.protocol||"",I=this.pathname||"",J=this.hash||"",j=!1,G="";if(this.host)j=$+this.host;else if(this.hostname){if(j=$+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port)j+=":"+this.port}if(this.query&&dk(this.query)&&Object.keys(this.query).length)G=KP.stringify(this.query);var X=this.search||G&&"?"+G||"";if(_&&_.substr(-1)!==":")_+=":";if(this.slashes||(!_||sZ[_])&&j!==!1){if(j="//"+(j||""),I&&I.charAt(0)!=="/")I="/"+I}else if(!j)j="";if(J&&J.charAt(0)!=="#")J="#"+J;if(X&&X.charAt(0)!=="?")X="?"+X;return I=I.replace(/[?#]/g,function(W){return encodeURIComponent(W)}),X=X.replace("#","%23"),_+j+I+X+J};E4.prototype.resolve=function($){return this.resolveObject(eZ($,!1,!0)).format()};E4.prototype.resolveObject=function($){if(FP($)){var _=new E4;_.parse($,!1,!0),$=_}var I=new E4,J=Object.keys(this);for(var j=0;j<J.length;j++){var G=J[j];I[G]=this[G]}if(I.hash=$.hash,$.href==="")return I.href=I.format(),I;if($.slashes&&!$.protocol){var X=Object.keys($);for(var W=0;W<X.length;W++){var T=X[W];if(T!=="protocol")I[T]=$[T]}if(sZ[I.protocol]&&I.hostname&&!I.pathname)I.path=I.pathname="/";return I.href=I.format(),I}if($.protocol&&$.protocol!==I.protocol){if(!sZ[$.protocol]){var F=Object.keys($);for(var E=0;E<F.length;E++){var D=F[E];I[D]=$[D]}return I.href=I.format(),I}if(I.protocol=$.protocol,!$.host&&!DP[$.protocol]){var p=($.pathname||"").split("/");while(p.length&&!($.host=p.shift()));if(!$.host)$.host="";if(!$.hostname)$.hostname="";if(p[0]!=="")p.unshift("");if(p.length<2)p.unshift("");I.pathname=p.join("/")}else I.pathname=$.pathname;if(I.search=$.search,I.query=$.query,I.host=$.host||"",I.auth=$.auth,I.hostname=$.hostname||$.host,I.port=$.port,I.pathname||I.search){var q=I.pathname||"",S=I.search||"";I.path=q+S}return I.slashes=I.slashes||$.slashes,I.href=I.format(),I}var k=I.pathname&&I.pathname.charAt(0)==="/",y=$.host||$.pathname&&$.pathname.charAt(0)==="/",m=y||k||I.host&&$.pathname,n=m,h=I.pathname&&I.pathname.split("/")||[],p=$.pathname&&$.pathname.split("/")||[],s=I.protocol&&!sZ[I.protocol];if(s){if(I.hostname="",I.port=null,I.host)if(h[0]==="")h[0]=I.host;else h.unshift(I.host);if(I.host="",$.protocol){if($.hostname=null,$.port=null,$.host)if(p[0]==="")p[0]=$.host;else p.unshift($.host);$.host=null}m=m&&(p[0]===""||h[0]==="")}if(y)I.host=$.host||$.host===""?$.host:I.host,I.hostname=$.hostname||$.hostname===""?$.hostname:I.hostname,I.search=$.search,I.query=$.query,h=p;else if(p.length){if(!h)h=[];h.pop(),h=h.concat(p),I.search=$.search,I.query=$.query}else if(!Jt($.search)){if(s){I.hostname=I.host=h.shift();var j0=I.host&&I.host.indexOf("@")>0?I.host.split("@"):!1;if(j0)I.auth=j0.shift(),I.host=I.hostname=j0.shift()}if(I.search=$.search,I.query=$.query,!CK(I.pathname)||!CK(I.search))I.path=(I.pathname?I.pathname:"")+(I.search?I.search:"");return I.href=I.format(),I}if(!h.length){if(I.pathname=null,I.search)I.path="/"+I.search;else I.path=null;return I.href=I.format(),I}var I0=h.slice(-1)[0],H0=(I.host||$.host||h.length>1)&&(I0==="."||I0==="..")||I0==="",L0=0;for(var R0=h.length;R0>=0;R0--)if(I0=h[R0],I0===".")h.splice(R0,1);else if(I0==="..")h.splice(R0,1),L0++;else if(L0)h.splice(R0,1),L0--;if(!m&&!n)for(;L0--;L0)h.unshift("..");if(m&&h[0]!==""&&(!h[0]||h[0].charAt(0)!=="/"))h.unshift("");if(H0&&h.join("/").substr(-1)!=="/")h.push("");var U0=h[0]===""||h[0]&&h[0].charAt(0)==="/";if(s){I.hostname=I.host=U0?"":h.length?h.shift():"";var j0=I.host&&I.host.indexOf("@")>0?I.host.split("@"):!1;if(j0)I.auth=j0.shift(),I.host=I.hostname=j0.shift()}if(m=m||I.host&&h.length,m&&!U0)h.unshift("");if(!h.length)I.pathname=null,I.path=null;else I.pathname=h.join("/");if(!CK(I.pathname)||!CK(I.search))I.path=(I.pathname?I.pathname:"")+(I.search?I.search:"");return I.auth=$.auth||I.auth,I.slashes=I.slashes||$.slashes,I.href=I.format(),I};E4.prototype.parseHost=function(){var $=this.host,_=zt.exec($);if(_){if(_=_[0],_!==":")this.port=_.substr(1);$=$.substr(0,$.length-_.length)}if($)this.hostname=$};Ht={parse:eZ,resolve:tk,resolveObject:ok,format:rk,Url:E4,URL:HP,URLSearchParams:ik}});var wK={};_j(wK,{request:()=>xt,globalAgent:()=>mt,get:()=>ft,default:()=>Yc,STATUS_CODES:()=>ut,METHODS:()=>nt,IncomingMessage:()=>bt,ClientRequest:()=>yt,Agent:()=>ht});var Ft,At,ak,Mt,Et,Vt=($,_,I)=>{I=$!=null?Ft(At($)):{};let J=_||!$||!$.__esModule?ak(I,"default",{value:$,enumerable:!0}):I;for(let j of Mt($))if(!Et.call(J,j))ak(J,j,{get:()=>$[j],enumerable:!0});return J},pv=($,_)=>()=>(_||$((_={exports:{}}).exports,_),_.exports),ek,Tt,p8,Rt,$c,l8,vc,Pt,_c,$O,qt,sk,EP,gt,Ct,jc,Uc,wt,Nt,Ic,Xc,Bt,St,kt,ct,Gc,xt,ft,yt,bt,ht,mt,ut,nt,Yc;var SL=GX(()=>{Ft=Object.create,{getPrototypeOf:At,defineProperty:ak,getOwnPropertyNames:Mt}=Object,Et=Object.prototype.hasOwnProperty,ek=pv(($)=>{$.fetch=j(globalThis.fetch)&&j(globalThis.ReadableStream),$.writableStream=j(globalThis.WritableStream),$.abortController=j(globalThis.AbortController);var _;function I(){if(_!==void 0)return _;if(globalThis.XMLHttpRequest){_=new globalThis.XMLHttpRequest;try{_.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch(G){_=null}}else _=null;return _}function J(G){var X=I();if(!X)return!1;try{return X.responseType=G,X.responseType===G}catch(W){}return!1}$.arraybuffer=$.fetch||J("arraybuffer"),$.msstream=!$.fetch&&J("ms-stream"),$.mozchunkedarraybuffer=!$.fetch&&J("moz-chunked-arraybuffer"),$.overrideMimeType=$.fetch||(I()?j(I().overrideMimeType):!1);function j(G){return typeof G==="function"}_=null}),Tt=pv(($,_)=>{if(typeof Object.create==="function")_.exports=function(I,J){if(J)I.super_=J,I.prototype=Object.create(J.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}})};else _.exports=function(I,J){if(J){I.super_=J;var j=function(){};j.prototype=J.prototype,I.prototype=new j,I.prototype.constructor=I}}}),p8=pv(($,_)=>{try{if(I=(lJ(),X1(pJ)),typeof I.inherits!=="function")throw"";_.exports=I.inherits}catch(J){_.exports=Tt()}var I}),Rt=pv(($,_)=>{function I(m,n){var h=Object.keys(m);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(m);n&&(p=p.filter(function(s){return Object.getOwnPropertyDescriptor(m,s).enumerable})),h.push.apply(h,p)}return h}function J(m){for(var n=1;n<arguments.length;n++){var h=arguments[n]!=null?arguments[n]:{};n%2?I(Object(h),!0).forEach(function(p){j(m,p,h[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(h)):I(Object(h)).forEach(function(p){Object.defineProperty(m,p,Object.getOwnPropertyDescriptor(h,p))})}return m}function j(m,n,h){if(n=T(n),n in m)Object.defineProperty(m,n,{value:h,enumerable:!0,configurable:!0,writable:!0});else m[n]=h;return m}function G(m,n){if(!(m instanceof n))throw TypeError("Cannot call a class as a function")}function X(m,n){for(var h=0;h<n.length;h++){var p=n[h];if(p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p)p.writable=!0;Object.defineProperty(m,T(p.key),p)}}function W(m,n,h){if(n)X(m.prototype,n);if(h)X(m,h);return Object.defineProperty(m,"prototype",{writable:!1}),m}function T(m){var n=F(m,"string");return typeof n==="symbol"?n:String(n)}function F(m,n){if(typeof m!=="object"||m===null)return m;var h=m[Symbol.toPrimitive];if(h!==void 0){var p=h.call(m,n||"default");if(typeof p!=="object")return p;throw TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(m)}var E=(j_(),X1(__)),D=E.Buffer,q=(lJ(),X1(pJ)),S=q.inspect,k=S&&S.custom||"inspect";function y(m,n,h){D.prototype.copy.call(m,n,h)}_.exports=function(){function m(){G(this,m),this.head=null,this.tail=null,this.length=0}return W(m,[{key:"push",value:function(n){var h={data:n,next:null};if(this.length>0)this.tail.next=h;else this.head=h;this.tail=h,++this.length}},{key:"unshift",value:function(n){var h={data:n,next:this.head};if(this.length===0)this.tail=h;this.head=h,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var n=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,n}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(this.length===0)return"";var h=this.head,p=""+h.data;while(h=h.next)p+=n+h.data;return p}},{key:"concat",value:function(n){if(this.length===0)return D.alloc(0);var h=D.allocUnsafe(n>>>0),p=this.head,s=0;while(p)y(p.data,h,s),s+=p.data.length,p=p.next;return h}},{key:"consume",value:function(n,h){var p;if(n<this.head.data.length)p=this.head.data.slice(0,n),this.head.data=this.head.data.slice(n);else if(n===this.head.data.length)p=this.shift();else p=h?this._getString(n):this._getBuffer(n);return p}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(n){var h=this.head,p=1,s=h.data;n-=s.length;while(h=h.next){var j0=h.data,I0=n>j0.length?j0.length:n;if(I0===j0.length)s+=j0;else s+=j0.slice(0,n);if(n-=I0,n===0){if(I0===j0.length)if(++p,h.next)this.head=h.next;else this.head=this.tail=null;else this.head=h,h.data=j0.slice(I0);break}++p}return this.length-=p,s}},{key:"_getBuffer",value:function(n){var h=D.allocUnsafe(n),p=this.head,s=1;p.data.copy(h),n-=p.data.length;while(p=p.next){var j0=p.data,I0=n>j0.length?j0.length:n;if(j0.copy(h,h.length-n,0,I0),n-=I0,n===0){if(I0===j0.length)if(++s,p.next)this.head=p.next;else this.head=this.tail=null;else this.head=p,p.data=j0.slice(I0);break}++s}return this.length-=s,h}},{key:k,value:function(n,h){return S(this,J(J({},h),{},{depth:0,customInspect:!1}))}}]),m}()}),$c=pv(($,_)=>{function I(T,F){var E=this,D=this._readableState&&this._readableState.destroyed,q=this._writableState&&this._writableState.destroyed;if(D||q){if(F)F(T);else if(T){if(!this._writableState)process.nextTick(X,this,T);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,process.nextTick(X,this,T)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy(T||null,function(S){if(!F&&S)if(!E._writableState)process.nextTick(J,E,S);else if(!E._writableState.errorEmitted)E._writableState.errorEmitted=!0,process.nextTick(J,E,S);else process.nextTick(j,E);else if(F)process.nextTick(j,E),F(S);else process.nextTick(j,E)}),this}function J(T,F){X(T,F),j(T)}function j(T){if(T._writableState&&!T._writableState.emitClose)return;if(T._readableState&&!T._readableState.emitClose)return;T.emit("close")}function G(){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 X(T,F){T.emit("error",F)}function W(T,F){var{_readableState:E,_writableState:D}=T;if(E&&E.autoDestroy||D&&D.autoDestroy)T.destroy(F);else T.emit("error",F)}_.exports={destroy:I,undestroy:G,errorOrDestroy:W}}),l8=pv(($,_)=>{var I={};function J(T,F,E){if(!E)E=Error;function D(S,k,y){if(typeof F==="string")return F;else return F(S,k,y)}class q extends E{constructor(S,k,y){super(D(S,k,y))}}q.prototype.name=E.name,q.prototype.code=T,I[T]=q}function j(T,F){if(Array.isArray(T)){let E=T.length;if(T=T.map((D)=>String(D)),E>2)return`one of ${F} ${T.slice(0,E-1).join(", ")}, or `+T[E-1];else if(E===2)return`one of ${F} ${T[0]} or ${T[1]}`;else return`of ${F} ${T[0]}`}else return`of ${F} ${String(T)}`}function G(T,F,E){return T.substr(!E||E<0?0:+E,F.length)===F}function X(T,F,E){if(E===void 0||E>T.length)E=T.length;return T.substring(E-F.length,E)===F}function W(T,F,E){if(typeof E!=="number")E=0;if(E+F.length>T.length)return!1;else return T.indexOf(F,E)!==-1}J("ERR_INVALID_OPT_VALUE",function(T,F){return'The value "'+F+'" is invalid for option "'+T+'"'},TypeError),J("ERR_INVALID_ARG_TYPE",function(T,F,E){let D;if(typeof F==="string"&&G(F,"not "))D="must not be",F=F.replace(/^not /,"");else D="must be";let q;if(X(T," argument"))q=`The ${T} ${D} ${j(F,"type")}`;else{let S=W(T,".")?"property":"argument";q=`The "${T}" ${S} ${D} ${j(F,"type")}`}return q+=`. Received type ${typeof E}`,q},TypeError),J("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),J("ERR_METHOD_NOT_IMPLEMENTED",function(T){return"The "+T+" method is not implemented"}),J("ERR_STREAM_PREMATURE_CLOSE","Premature close"),J("ERR_STREAM_DESTROYED",function(T){return"Cannot call "+T+" after a stream was destroyed"}),J("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),J("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),J("ERR_STREAM_WRITE_AFTER_END","write after end"),J("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),J("ERR_UNKNOWN_ENCODING",function(T){return"Unknown encoding: "+T},TypeError),J("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),$.codes=I}),vc=pv(($,_)=>{var I=l8().codes.ERR_INVALID_OPT_VALUE;function J(G,X,W){return G.highWaterMark!=null?G.highWaterMark:X?G[W]:null}function j(G,X,W,T){var F=J(X,T,W);if(F!=null){if(!(isFinite(F)&&Math.floor(F)===F)||F<0){var E=T?W:"highWaterMark";throw new I(E,F)}return Math.floor(F)}return G.objectMode?16:16384}_.exports={getHighWaterMark:j}}),Pt=pv(($,_)=>{_.exports=(lJ(),X1(pJ)).deprecate}),_c=pv(($,_)=>{_.exports=U0;function I(E0){var _0=this;this.next=null,this.entry=null,this.finish=function(){P0(_0,E0)}}var J;U0.WritableState=L0;var j={deprecate:Pt()},G=E8(),X=(j_(),X1(__)).Buffer,W=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function T(E0){return X.from(E0)}function F(E0){return X.isBuffer(E0)||E0 instanceof W}var E=$c(),D=vc(),q=D.getHighWaterMark,S=l8().codes,k=S.ERR_INVALID_ARG_TYPE,y=S.ERR_METHOD_NOT_IMPLEMENTED,m=S.ERR_MULTIPLE_CALLBACK,n=S.ERR_STREAM_CANNOT_PIPE,h=S.ERR_STREAM_DESTROYED,p=S.ERR_STREAM_NULL_VALUES,s=S.ERR_STREAM_WRITE_AFTER_END,j0=S.ERR_UNKNOWN_ENCODING,I0=E.errorOrDestroy;p8()(U0,G);function H0(){}function L0(E0,_0,$0){if(J=J||$O(),E0=E0||{},typeof $0!=="boolean")$0=_0 instanceof J;if(this.objectMode=!!E0.objectMode,$0)this.objectMode=this.objectMode||!!E0.writableObjectMode;this.highWaterMark=q(this,E0,"writableHighWaterMark",$0),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var G0=E0.decodeStrings===!1;this.decodeStrings=!G0,this.defaultEncoding=E0.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(K0){B(_0,K0)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=E0.emitClose!==!1,this.autoDestroy=!!E0.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new I(this)}L0.prototype.getBuffer=function(){var E0=this.bufferedRequest,_0=[];while(E0)_0.push(E0),E0=E0.next;return _0},function(){try{Object.defineProperty(L0.prototype,"buffer",{get:j.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(E0){}}();var R0;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")R0=Function.prototype[Symbol.hasInstance],Object.defineProperty(U0,Symbol.hasInstance,{value:function(E0){if(R0.call(this,E0))return!0;if(this!==U0)return!1;return E0&&E0._writableState instanceof L0}});else R0=function(E0){return E0 instanceof this};function U0(E0){J=J||$O();var _0=this instanceof J;if(!_0&&!R0.call(U0,this))return new U0(E0);if(this._writableState=new L0(E0,this,_0),this.writable=!0,E0){if(typeof E0.write==="function")this._write=E0.write;if(typeof E0.writev==="function")this._writev=E0.writev;if(typeof E0.destroy==="function")this._destroy=E0.destroy;if(typeof E0.final==="function")this._final=E0.final}G.call(this)}U0.prototype.pipe=function(){I0(this,new n)};function c0(E0,_0){var $0=new s;I0(E0,$0),process.nextTick(_0,$0)}function Y(E0,_0,$0,G0){var K0;if($0===null)K0=new p;else if(typeof $0!=="string"&&!_0.objectMode)K0=new k("chunk",["string","Buffer"],$0);if(K0)return I0(E0,K0),process.nextTick(G0,K0),!1;return!0}U0.prototype.write=function(E0,_0,$0){var G0=this._writableState,K0=!1,q0=!G0.objectMode&&F(E0);if(q0&&!X.isBuffer(E0))E0=T(E0);if(typeof _0==="function")$0=_0,_0=null;if(q0)_0="buffer";else if(!_0)_0=G0.defaultEncoding;if(typeof $0!=="function")$0=H0;if(G0.ending)c0(this,$0);else if(q0||Y(this,G0,E0,$0))G0.pendingcb++,K0=H(this,G0,q0,E0,_0,$0);return K0},U0.prototype.cork=function(){this._writableState.corked++},U0.prototype.uncork=function(){var E0=this._writableState;if(E0.corked){if(E0.corked--,!E0.writing&&!E0.corked&&!E0.bufferProcessing&&E0.bufferedRequest)A(this,E0)}},U0.prototype.setDefaultEncoding=function(E0){if(typeof E0==="string")E0=E0.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E0+"").toLowerCase())>-1))throw new j0(E0);return this._writableState.defaultEncoding=E0,this},Object.defineProperty(U0.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(E0,_0,$0){if(!E0.objectMode&&E0.decodeStrings!==!1&&typeof _0==="string")_0=X.from(_0,$0);return _0}Object.defineProperty(U0.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function H(E0,_0,$0,G0,K0,q0){if(!$0){var z0=O(_0,G0,K0);if(G0!==z0)$0=!0,K0="buffer",G0=z0}var a=_0.objectMode?1:G0.length;_0.length+=a;var J0=_0.length<_0.highWaterMark;if(!J0)_0.needDrain=!0;if(_0.writing||_0.corked){var y0=_0.lastBufferedRequest;if(_0.lastBufferedRequest={chunk:G0,encoding:K0,isBuf:$0,callback:q0,next:null},y0)y0.next=_0.lastBufferedRequest;else _0.bufferedRequest=_0.lastBufferedRequest;_0.bufferedRequestCount+=1}else Z(E0,_0,!1,a,G0,K0,q0);return J0}function Z(E0,_0,$0,G0,K0,q0,z0){if(_0.writelen=G0,_0.writecb=z0,_0.writing=!0,_0.sync=!0,_0.destroyed)_0.onwrite(new h("write"));else if($0)E0._writev(K0,_0.onwrite);else E0._write(K0,q0,_0.onwrite);_0.sync=!1}function K(E0,_0,$0,G0,K0){if(--_0.pendingcb,$0)process.nextTick(K0,G0),process.nextTick(Q0,E0,_0),E0._writableState.errorEmitted=!0,I0(E0,G0);else K0(G0),E0._writableState.errorEmitted=!0,I0(E0,G0),Q0(E0,_0)}function w(E0){E0.writing=!1,E0.writecb=null,E0.length-=E0.writelen,E0.writelen=0}function B(E0,_0){var $0=E0._writableState,G0=$0.sync,K0=$0.writecb;if(typeof K0!=="function")throw new m;if(w($0),_0)K(E0,$0,G0,_0,K0);else{var q0=f($0)||E0.destroyed;if(!q0&&!$0.corked&&!$0.bufferProcessing&&$0.bufferedRequest)A(E0,$0);if(G0)process.nextTick(P,E0,$0,q0,K0);else P(E0,$0,q0,K0)}}function P(E0,_0,$0,G0){if(!$0)z(E0,_0);_0.pendingcb--,G0(),Q0(E0,_0)}function z(E0,_0){if(_0.length===0&&_0.needDrain)_0.needDrain=!1,E0.emit("drain")}function A(E0,_0){_0.bufferProcessing=!0;var $0=_0.bufferedRequest;if(E0._writev&&$0&&$0.next){var G0=_0.bufferedRequestCount,K0=Array(G0),q0=_0.corkedRequestsFree;q0.entry=$0;var z0=0,a=!0;while($0){if(K0[z0]=$0,!$0.isBuf)a=!1;$0=$0.next,z0+=1}if(K0.allBuffers=a,Z(E0,_0,!0,_0.length,K0,"",q0.finish),_0.pendingcb++,_0.lastBufferedRequest=null,q0.next)_0.corkedRequestsFree=q0.next,q0.next=null;else _0.corkedRequestsFree=new I(_0);_0.bufferedRequestCount=0}else{while($0){var{chunk:J0,encoding:y0,callback:N0}=$0,A0=_0.objectMode?1:J0.length;if(Z(E0,_0,!1,A0,J0,y0,N0),$0=$0.next,_0.bufferedRequestCount--,_0.writing)break}if($0===null)_0.lastBufferedRequest=null}_0.bufferedRequest=$0,_0.bufferProcessing=!1}U0.prototype._write=function(E0,_0,$0){$0(new y("_write()"))},U0.prototype._writev=null,U0.prototype.end=function(E0,_0,$0){var G0=this._writableState;if(typeof E0==="function")$0=E0,E0=null,_0=null;else if(typeof _0==="function")$0=_0,_0=null;if(E0!==null&&E0!==void 0)this.write(E0,_0);if(G0.corked)G0.corked=1,this.uncork();if(!G0.ending)F0(this,G0,$0);return this},Object.defineProperty(U0.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function f(E0){return E0.ending&&E0.length===0&&E0.bufferedRequest===null&&!E0.finished&&!E0.writing}function c(E0,_0){E0._final(function($0){if(_0.pendingcb--,$0)I0(E0,$0);_0.prefinished=!0,E0.emit("prefinish"),Q0(E0,_0)})}function l(E0,_0){if(!_0.prefinished&&!_0.finalCalled)if(typeof E0._final==="function"&&!_0.destroyed)_0.pendingcb++,_0.finalCalled=!0,process.nextTick(c,E0,_0);else _0.prefinished=!0,E0.emit("prefinish")}function Q0(E0,_0){var $0=f(_0);if($0){if(l(E0,_0),_0.pendingcb===0){if(_0.finished=!0,E0.emit("finish"),_0.autoDestroy){var G0=E0._readableState;if(!G0||G0.autoDestroy&&G0.endEmitted)E0.destroy()}}}return $0}function F0(E0,_0,$0){if(_0.ending=!0,Q0(E0,_0),$0)if(_0.finished)process.nextTick($0);else E0.once("finish",$0);_0.ended=!0,E0.writable=!1}function P0(E0,_0,$0){var G0=E0.entry;E0.entry=null;while(G0){var K0=G0.callback;_0.pendingcb--,K0($0),G0=G0.next}_0.corkedRequestsFree.next=E0}Object.defineProperty(U0.prototype,"destroyed",{enumerable:!1,get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function(E0){if(!this._writableState)return;this._writableState.destroyed=E0}}),U0.prototype.destroy=E.destroy,U0.prototype._undestroy=E.undestroy,U0.prototype._destroy=function(E0,_0){_0(E0)}}),$O=pv(($,_)=>{var I=Object.keys||function(D){var q=[];for(var S in D)q.push(S);return q};_.exports=T;var J=jc(),j=_c();p8()(T,J);{G=I(j.prototype);for(W=0;W<G.length;W++)if(X=G[W],!T.prototype[X])T.prototype[X]=j.prototype[X]}var G,X,W;function T(D){if(!(this instanceof T))return new T(D);if(J.call(this,D),j.call(this,D),this.allowHalfOpen=!0,D){if(D.readable===!1)this.readable=!1;if(D.writable===!1)this.writable=!1;if(D.allowHalfOpen===!1)this.allowHalfOpen=!1,this.once("end",F)}}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function F(){if(this._writableState.ended)return;process.nextTick(E,this)}function E(D){D.end()}Object.defineProperty(T.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(D){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=D,this._writableState.destroyed=D}})}),qt=pv(($,_)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var I=(j_(),X1(__)),J=I.Buffer;function j(X,W){for(var T in X)W[T]=X[T]}if(J.from&&J.alloc&&J.allocUnsafe&&J.allocUnsafeSlow)_.exports=I;else j(I,$),$.Buffer=G;function G(X,W,T){return J(X,W,T)}G.prototype=Object.create(J.prototype),j(J,G),G.from=function(X,W,T){if(typeof X==="number")throw TypeError("Argument must not be a number");return J(X,W,T)},G.alloc=function(X,W,T){if(typeof X!=="number")throw TypeError("Argument must be a number");var F=J(X);if(W!==void 0)if(typeof T==="string")F.fill(W,T);else F.fill(W);else F.fill(0);return F},G.allocUnsafe=function(X){if(typeof X!=="number")throw TypeError("Argument must be a number");return J(X)},G.allocUnsafeSlow=function(X){if(typeof X!=="number")throw TypeError("Argument must be a number");return I.SlowBuffer(X)}}),sk=pv(($)=>{var _=qt().Buffer,I=_.isEncoding||function(h){switch(h=""+h,h&&h.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 J(h){if(!h)return"utf8";var p;while(!0)switch(h){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 h;default:if(p)return;h=(""+h).toLowerCase(),p=!0}}function j(h){var p=J(h);if(typeof p!=="string"&&(_.isEncoding===I||!I(h)))throw Error("Unknown encoding: "+h);return p||h}$.StringDecoder=G;function G(h){this.encoding=j(h);var p;switch(this.encoding){case"utf16le":this.text=q,this.end=S,p=4;break;case"utf8":this.fillLast=F,p=4;break;case"base64":this.text=k,this.end=y,p=3;break;default:this.write=m,this.end=n;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=_.allocUnsafe(p)}G.prototype.write=function(h){if(h.length===0)return"";var p,s;if(this.lastNeed){if(p=this.fillLast(h),p===void 0)return"";s=this.lastNeed,this.lastNeed=0}else s=0;if(s<h.length)return p?p+this.text(h,s):this.text(h,s);return p||""},G.prototype.end=D,G.prototype.text=E,G.prototype.fillLast=function(h){if(this.lastNeed<=h.length)return h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,h.length),this.lastNeed-=h.length};function X(h){if(h<=127)return 0;else if(h>>5===6)return 2;else if(h>>4===14)return 3;else if(h>>3===30)return 4;return h>>6===2?-1:-2}function W(h,p,s){var j0=p.length-1;if(j0<s)return 0;var I0=X(p[j0]);if(I0>=0){if(I0>0)h.lastNeed=I0-1;return I0}if(--j0<s||I0===-2)return 0;if(I0=X(p[j0]),I0>=0){if(I0>0)h.lastNeed=I0-2;return I0}if(--j0<s||I0===-2)return 0;if(I0=X(p[j0]),I0>=0){if(I0>0)if(I0===2)I0=0;else h.lastNeed=I0-3;return I0}return 0}function T(h,p,s){if((p[0]&192)!==128)return h.lastNeed=0,"�";if(h.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return h.lastNeed=1,"�";if(h.lastNeed>2&&p.length>2){if((p[2]&192)!==128)return h.lastNeed=2,"�"}}}function F(h){var p=this.lastTotal-this.lastNeed,s=T(this,h,p);if(s!==void 0)return s;if(this.lastNeed<=h.length)return h.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,p,0,h.length),this.lastNeed-=h.length}function E(h,p){var s=W(this,h,p);if(!this.lastNeed)return h.toString("utf8",p);this.lastTotal=s;var j0=h.length-(s-this.lastNeed);return h.copy(this.lastChar,0,j0),h.toString("utf8",p,j0)}function D(h){var p=h&&h.length?this.write(h):"";if(this.lastNeed)return p+"�";return p}function q(h,p){if((h.length-p)%2===0){var s=h.toString("utf16le",p);if(s){var j0=s.charCodeAt(s.length-1);if(j0>=55296&&j0<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],s.slice(0,-1)}return s}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",p,h.length-1)}function S(h){var p=h&&h.length?this.write(h):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,s)}return p}function k(h,p){var s=(h.length-p)%3;if(s===0)return h.toString("base64",p);if(this.lastNeed=3-s,this.lastTotal=3,s===1)this.lastChar[0]=h[h.length-1];else this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1];return h.toString("base64",p,h.length-s)}function y(h){var p=h&&h.length?this.write(h):"";if(this.lastNeed)return p+this.lastChar.toString("base64",0,3-this.lastNeed);return p}function m(h){return h.toString(this.encoding)}function n(h){return h&&h.length?this.write(h):""}}),EP=pv(($,_)=>{var I=l8().codes.ERR_STREAM_PREMATURE_CLOSE;function J(W){var T=!1;return function(){if(T)return;T=!0;for(var F=arguments.length,E=Array(F),D=0;D<F;D++)E[D]=arguments[D];W.apply(this,E)}}function j(){}function G(W){return W.setHeader&&typeof W.abort==="function"}function X(W,T,F){if(typeof T==="function")return X(W,null,T);if(!T)T={};F=J(F||j);var E=T.readable||T.readable!==!1&&W.readable,D=T.writable||T.writable!==!1&&W.writable,q=function(){if(!W.writable)k()},S=W._writableState&&W._writableState.finished,k=function(){if(D=!1,S=!0,!E)F.call(W)},y=W._readableState&&W._readableState.endEmitted,m=function(){if(E=!1,y=!0,!D)F.call(W)},n=function(s){F.call(W,s)},h=function(){var s;if(E&&!y){if(!W._readableState||!W._readableState.ended)s=new I;return F.call(W,s)}if(D&&!S){if(!W._writableState||!W._writableState.ended)s=new I;return F.call(W,s)}},p=function(){W.req.on("finish",k)};if(G(W))if(W.on("complete",k),W.on("abort",h),W.req)p();else W.on("request",p);else if(D&&!W._writableState)W.on("end",q),W.on("close",q);if(W.on("end",m),W.on("finish",k),T.error!==!1)W.on("error",n);return W.on("close",h),function(){if(W.removeListener("complete",k),W.removeListener("abort",h),W.removeListener("request",p),W.req)W.req.removeListener("finish",k);W.removeListener("end",q),W.removeListener("close",q),W.removeListener("finish",k),W.removeListener("end",m),W.removeListener("error",n),W.removeListener("close",h)}}_.exports=X}),gt=pv(($,_)=>{var I;function J(j0,I0,H0){if(I0=j(I0),I0 in j0)Object.defineProperty(j0,I0,{value:H0,enumerable:!0,configurable:!0,writable:!0});else j0[I0]=H0;return j0}function j(j0){var I0=G(j0,"string");return typeof I0==="symbol"?I0:String(I0)}function G(j0,I0){if(typeof j0!=="object"||j0===null)return j0;var H0=j0[Symbol.toPrimitive];if(H0!==void 0){var L0=H0.call(j0,I0||"default");if(typeof L0!=="object")return L0;throw TypeError("@@toPrimitive must return a primitive value.")}return(I0==="string"?String:Number)(j0)}var X=EP(),W=Symbol("lastResolve"),T=Symbol("lastReject"),F=Symbol("error"),E=Symbol("ended"),D=Symbol("lastPromise"),q=Symbol("handlePromise"),S=Symbol("stream");function k(j0,I0){return{value:j0,done:I0}}function y(j0){var I0=j0[W];if(I0!==null){var H0=j0[S].read();if(H0!==null)j0[D]=null,j0[W]=null,j0[T]=null,I0(k(H0,!1))}}function m(j0){process.nextTick(y,j0)}function n(j0,I0){return function(H0,L0){j0.then(function(){if(I0[E]){H0(k(void 0,!0));return}I0[q](H0,L0)},L0)}}var h=Object.getPrototypeOf(function(){}),p=Object.setPrototypeOf((I={get stream(){return this[S]},next:function(){var j0=this,I0=this[F];if(I0!==null)return Promise.reject(I0);if(this[E])return Promise.resolve(k(void 0,!0));if(this[S].destroyed)return new Promise(function(U0,c0){process.nextTick(function(){if(j0[F])c0(j0[F]);else U0(k(void 0,!0))})});var H0=this[D],L0;if(H0)L0=new Promise(n(H0,this));else{var R0=this[S].read();if(R0!==null)return Promise.resolve(k(R0,!1));L0=new Promise(this[q])}return this[D]=L0,L0}},J(I,Symbol.asyncIterator,function(){return this}),J(I,"return",function(){var j0=this;return new Promise(function(I0,H0){j0[S].destroy(null,function(L0){if(L0){H0(L0);return}I0(k(void 0,!0))})})}),I),h),s=function(j0){var I0,H0=Object.create(p,(I0={},J(I0,S,{value:j0,writable:!0}),J(I0,W,{value:null,writable:!0}),J(I0,T,{value:null,writable:!0}),J(I0,F,{value:null,writable:!0}),J(I0,E,{value:j0._readableState.endEmitted,writable:!0}),J(I0,q,{value:function(L0,R0){var U0=H0[S].read();if(U0)H0[D]=null,H0[W]=null,H0[T]=null,L0(k(U0,!1));else H0[W]=L0,H0[T]=R0},writable:!0}),I0));return H0[D]=null,X(j0,function(L0){if(L0&&L0.code!=="ERR_STREAM_PREMATURE_CLOSE"){var R0=H0[T];if(R0!==null)H0[D]=null,H0[W]=null,H0[T]=null,R0(L0);H0[F]=L0;return}var U0=H0[W];if(U0!==null)H0[D]=null,H0[W]=null,H0[T]=null,U0(k(void 0,!0));H0[E]=!0}),j0.on("readable",m.bind(null,H0)),H0};_.exports=s}),Ct=pv(($,_)=>{function I(D,q,S,k,y,m,n){try{var h=D[m](n),p=h.value}catch(s){S(s);return}if(h.done)q(p);else Promise.resolve(p).then(k,y)}function J(D){return function(){var q=this,S=arguments;return new Promise(function(k,y){var m=D.apply(q,S);function n(p){I(m,k,y,n,h,"next",p)}function h(p){I(m,k,y,n,h,"throw",p)}n(void 0)})}}function j(D,q){var S=Object.keys(D);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(D);q&&(k=k.filter(function(y){return Object.getOwnPropertyDescriptor(D,y).enumerable})),S.push.apply(S,k)}return S}function G(D){for(var q=1;q<arguments.length;q++){var S=arguments[q]!=null?arguments[q]:{};q%2?j(Object(S),!0).forEach(function(k){X(D,k,S[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(S)):j(Object(S)).forEach(function(k){Object.defineProperty(D,k,Object.getOwnPropertyDescriptor(S,k))})}return D}function X(D,q,S){if(q=W(q),q in D)Object.defineProperty(D,q,{value:S,enumerable:!0,configurable:!0,writable:!0});else D[q]=S;return D}function W(D){var q=T(D,"string");return typeof q==="symbol"?q:String(q)}function T(D,q){if(typeof D!=="object"||D===null)return D;var S=D[Symbol.toPrimitive];if(S!==void 0){var k=S.call(D,q||"default");if(typeof k!=="object")return k;throw TypeError("@@toPrimitive must return a primitive value.")}return(q==="string"?String:Number)(D)}var F=l8().codes.ERR_INVALID_ARG_TYPE;function E(D,q,S){var k;if(q&&typeof q.next==="function")k=q;else if(q&&q[Symbol.asyncIterator])k=q[Symbol.asyncIterator]();else if(q&&q[Symbol.iterator])k=q[Symbol.iterator]();else throw new F("iterable",["Iterable"],q);var y=new D(G({objectMode:!0},S)),m=!1;y._read=function(){if(!m)m=!0,n()};function n(){return h.apply(this,arguments)}function h(){return h=J(function*(){try{var p=yield k.next(),s=p.value,j0=p.done;if(j0)y.push(null);else if(y.push(yield s))n();else m=!1}catch(I0){y.destroy(I0)}}),h.apply(this,arguments)}return y}_.exports=E}),jc=pv(($,_)=>{_.exports=Y;var I;Y.ReadableState=c0;var J=(GZ(),X1(XZ)).EventEmitter,j=function(z0,a){return z0.listeners(a).length},G=E8(),X=(j_(),X1(__)).Buffer,W=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function T(z0){return X.from(z0)}function F(z0){return X.isBuffer(z0)||z0 instanceof W}var E=(lJ(),X1(pJ)),D;if(E&&E.debuglog)D=E.debuglog("stream");else D=function(){};var q=Rt(),S=$c(),k=vc(),y=k.getHighWaterMark,m=l8().codes,n=m.ERR_INVALID_ARG_TYPE,h=m.ERR_STREAM_PUSH_AFTER_EOF,p=m.ERR_METHOD_NOT_IMPLEMENTED,s=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,j0,I0,H0;p8()(Y,G);var L0=S.errorOrDestroy,R0=["error","close","destroy","pause","resume"];function U0(z0,a,J0){if(typeof z0.prependListener==="function")return z0.prependListener(a,J0);if(!z0._events||!z0._events[a])z0.on(a,J0);else if(Array.isArray(z0._events[a]))z0._events[a].unshift(J0);else z0._events[a]=[J0,z0._events[a]]}function c0(z0,a,J0){if(I=I||$O(),z0=z0||{},typeof J0!=="boolean")J0=a instanceof I;if(this.objectMode=!!z0.objectMode,J0)this.objectMode=this.objectMode||!!z0.readableObjectMode;if(this.highWaterMark=y(this,z0,"readableHighWaterMark",J0),this.buffer=new q,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=z0.emitClose!==!1,this.autoDestroy=!!z0.autoDestroy,this.destroyed=!1,this.defaultEncoding=z0.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,z0.encoding){if(!j0)j0=sk().StringDecoder;this.decoder=new j0(z0.encoding),this.encoding=z0.encoding}}function Y(z0){if(I=I||$O(),!(this instanceof Y))return new Y(z0);var a=this instanceof I;if(this._readableState=new c0(z0,this,a),this.readable=!0,z0){if(typeof z0.read==="function")this._read=z0.read;if(typeof z0.destroy==="function")this._destroy=z0.destroy}G.call(this)}Object.defineProperty(Y.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function(z0){if(!this._readableState)return;this._readableState.destroyed=z0}}),Y.prototype.destroy=S.destroy,Y.prototype._undestroy=S.undestroy,Y.prototype._destroy=function(z0,a){a(z0)},Y.prototype.push=function(z0,a){var J0=this._readableState,y0;if(!J0.objectMode){if(typeof z0==="string"){if(a=a||J0.defaultEncoding,a!==J0.encoding)z0=X.from(z0,a),a="";y0=!0}}else y0=!0;return O(this,z0,a,!1,y0)},Y.prototype.unshift=function(z0){return O(this,z0,null,!0,!1)};function O(z0,a,J0,y0,N0){D("readableAddChunk",a);var A0=z0._readableState;if(a===null)A0.reading=!1,P(z0,A0);else{var $$;if(!N0)$$=Z(A0,a);if($$)L0(z0,$$);else if(A0.objectMode||a&&a.length>0){if(typeof a!=="string"&&!A0.objectMode&&Object.getPrototypeOf(a)!==X.prototype)a=T(a);if(y0)if(A0.endEmitted)L0(z0,new s);else H(z0,A0,a,!0);else if(A0.ended)L0(z0,new h);else if(A0.destroyed)return!1;else if(A0.reading=!1,A0.decoder&&!J0)if(a=A0.decoder.write(a),A0.objectMode||a.length!==0)H(z0,A0,a,!1);else f(z0,A0);else H(z0,A0,a,!1)}else if(!y0)A0.reading=!1,f(z0,A0)}return!A0.ended&&(A0.length<A0.highWaterMark||A0.length===0)}function H(z0,a,J0,y0){if(a.flowing&&a.length===0&&!a.sync)a.awaitDrain=0,z0.emit("data",J0);else{if(a.length+=a.objectMode?1:J0.length,y0)a.buffer.unshift(J0);else a.buffer.push(J0);if(a.needReadable)z(z0)}f(z0,a)}function Z(z0,a){var J0;if(!F(a)&&typeof a!=="string"&&a!==void 0&&!z0.objectMode)J0=new n("chunk",["string","Buffer","Uint8Array"],a);return J0}Y.prototype.isPaused=function(){return this._readableState.flowing===!1},Y.prototype.setEncoding=function(z0){if(!j0)j0=sk().StringDecoder;var a=new j0(z0);this._readableState.decoder=a,this._readableState.encoding=this._readableState.decoder.encoding;var J0=this._readableState.buffer.head,y0="";while(J0!==null)y0+=a.write(J0.data),J0=J0.next;if(this._readableState.buffer.clear(),y0!=="")this._readableState.buffer.push(y0);return this._readableState.length=y0.length,this};var K=1073741824;function w(z0){if(z0>=K)z0=K;else z0--,z0|=z0>>>1,z0|=z0>>>2,z0|=z0>>>4,z0|=z0>>>8,z0|=z0>>>16,z0++;return z0}function B(z0,a){if(z0<=0||a.length===0&&a.ended)return 0;if(a.objectMode)return 1;if(z0!==z0)if(a.flowing&&a.length)return a.buffer.head.data.length;else return a.length;if(z0>a.highWaterMark)a.highWaterMark=w(z0);if(z0<=a.length)return z0;if(!a.ended)return a.needReadable=!0,0;return a.length}Y.prototype.read=function(z0){D("read",z0),z0=parseInt(z0,10);var a=this._readableState,J0=z0;if(z0!==0)a.emittedReadable=!1;if(z0===0&&a.needReadable&&((a.highWaterMark!==0?a.length>=a.highWaterMark:a.length>0)||a.ended)){if(D("read: emitReadable",a.length,a.ended),a.length===0&&a.ended)G0(this);else z(this);return null}if(z0=B(z0,a),z0===0&&a.ended){if(a.length===0)G0(this);return null}var y0=a.needReadable;if(D("need readable",y0),a.length===0||a.length-z0<a.highWaterMark)y0=!0,D("length less than watermark",y0);if(a.ended||a.reading)y0=!1,D("reading or ended",y0);else if(y0){if(D("do read"),a.reading=!0,a.sync=!0,a.length===0)a.needReadable=!0;if(this._read(a.highWaterMark),a.sync=!1,!a.reading)z0=B(J0,a)}var N0;if(z0>0)N0=$0(z0,a);else N0=null;if(N0===null)a.needReadable=a.length<=a.highWaterMark,z0=0;else a.length-=z0,a.awaitDrain=0;if(a.length===0){if(!a.ended)a.needReadable=!0;if(J0!==z0&&a.ended)G0(this)}if(N0!==null)this.emit("data",N0);return N0};function P(z0,a){if(D("onEofChunk"),a.ended)return;if(a.decoder){var J0=a.decoder.end();if(J0&&J0.length)a.buffer.push(J0),a.length+=a.objectMode?1:J0.length}if(a.ended=!0,a.sync)z(z0);else if(a.needReadable=!1,!a.emittedReadable)a.emittedReadable=!0,A(z0)}function z(z0){var a=z0._readableState;if(D("emitReadable",a.needReadable,a.emittedReadable),a.needReadable=!1,!a.emittedReadable)D("emitReadable",a.flowing),a.emittedReadable=!0,process.nextTick(A,z0)}function A(z0){var a=z0._readableState;if(D("emitReadable_",a.destroyed,a.length,a.ended),!a.destroyed&&(a.length||a.ended))z0.emit("readable"),a.emittedReadable=!1;a.needReadable=!a.flowing&&!a.ended&&a.length<=a.highWaterMark,_0(z0)}function f(z0,a){if(!a.readingMore)a.readingMore=!0,process.nextTick(c,z0,a)}function c(z0,a){while(!a.reading&&!a.ended&&(a.length<a.highWaterMark||a.flowing&&a.length===0)){var J0=a.length;if(D("maybeReadMore read 0"),z0.read(0),J0===a.length)break}a.readingMore=!1}Y.prototype._read=function(z0){L0(this,new p("_read()"))},Y.prototype.pipe=function(z0,a){var J0=this,y0=this._readableState;switch(y0.pipesCount){case 0:y0.pipes=z0;break;case 1:y0.pipes=[y0.pipes,z0];break;default:y0.pipes.push(z0);break}y0.pipesCount+=1,D("pipe count=%d opts=%j",y0.pipesCount,a);var N0=(!a||a.end!==!1)&&z0!==process.stdout&&z0!==process.stderr,A0=N0?w0:T$;if(y0.endEmitted)process.nextTick(A0);else J0.once("end",A0);z0.on("unpipe",$$);function $$(U$,G$){if(D("onunpipe"),U$===J0){if(G$&&G$.hasUnpiped===!1)G$.hasUnpiped=!0,l0()}}function w0(){D("onend"),z0.end()}var h0=l(J0);z0.on("drain",h0);var H$=!1;function l0(){if(D("cleanup"),z0.removeListener("close",C0),z0.removeListener("finish",x0),z0.removeListener("drain",h0),z0.removeListener("error",l$),z0.removeListener("unpipe",$$),J0.removeListener("end",w0),J0.removeListener("end",T$),J0.removeListener("data",j$),H$=!0,y0.awaitDrain&&(!z0._writableState||z0._writableState.needDrain))h0()}J0.on("data",j$);function j$(U$){D("ondata");var G$=z0.write(U$);if(D("dest.write",G$),G$===!1){if((y0.pipesCount===1&&y0.pipes===z0||y0.pipesCount>1&&q0(y0.pipes,z0)!==-1)&&!H$)D("false write response, pause",y0.awaitDrain),y0.awaitDrain++;J0.pause()}}function l$(U$){if(D("onerror",U$),T$(),z0.removeListener("error",l$),j(z0,"error")===0)L0(z0,U$)}U0(z0,"error",l$);function C0(){z0.removeListener("finish",x0),T$()}z0.once("close",C0);function x0(){D("onfinish"),z0.removeListener("close",C0),T$()}z0.once("finish",x0);function T$(){D("unpipe"),J0.unpipe(z0)}if(z0.emit("pipe",J0),!y0.flowing)D("pipe resume"),J0.resume();return z0};function l(z0){return function(){var a=z0._readableState;if(D("pipeOnDrain",a.awaitDrain),a.awaitDrain)a.awaitDrain--;if(a.awaitDrain===0&&j(z0,"data"))a.flowing=!0,_0(z0)}}Y.prototype.unpipe=function(z0){var a=this._readableState,J0={hasUnpiped:!1};if(a.pipesCount===0)return this;if(a.pipesCount===1){if(z0&&z0!==a.pipes)return this;if(!z0)z0=a.pipes;if(a.pipes=null,a.pipesCount=0,a.flowing=!1,z0)z0.emit("unpipe",this,J0);return this}if(!z0){var{pipes:y0,pipesCount:N0}=a;a.pipes=null,a.pipesCount=0,a.flowing=!1;for(var A0=0;A0<N0;A0++)y0[A0].emit("unpipe",this,{hasUnpiped:!1});return this}var $$=q0(a.pipes,z0);if($$===-1)return this;if(a.pipes.splice($$,1),a.pipesCount-=1,a.pipesCount===1)a.pipes=a.pipes[0];return z0.emit("unpipe",this,J0),this},Y.prototype.on=function(z0,a){var J0=G.prototype.on.call(this,z0,a),y0=this._readableState;if(z0==="data"){if(y0.readableListening=this.listenerCount("readable")>0,y0.flowing!==!1)this.resume()}else if(z0==="readable"){if(!y0.endEmitted&&!y0.readableListening){if(y0.readableListening=y0.needReadable=!0,y0.flowing=!1,y0.emittedReadable=!1,D("on readable",y0.length,y0.reading),y0.length)z(this);else if(!y0.reading)process.nextTick(F0,this)}}return J0},Y.prototype.addListener=Y.prototype.on,Y.prototype.removeListener=function(z0,a){var J0=G.prototype.removeListener.call(this,z0,a);if(z0==="readable")process.nextTick(Q0,this);return J0},Y.prototype.removeAllListeners=function(z0){var a=G.prototype.removeAllListeners.apply(this,arguments);if(z0==="readable"||z0===void 0)process.nextTick(Q0,this);return a};function Q0(z0){var a=z0._readableState;if(a.readableListening=z0.listenerCount("readable")>0,a.resumeScheduled&&!a.paused)a.flowing=!0;else if(z0.listenerCount("data")>0)z0.resume()}function F0(z0){D("readable nexttick read 0"),z0.read(0)}Y.prototype.resume=function(){var z0=this._readableState;if(!z0.flowing)D("resume"),z0.flowing=!z0.readableListening,P0(this,z0);return z0.paused=!1,this};function P0(z0,a){if(!a.resumeScheduled)a.resumeScheduled=!0,process.nextTick(E0,z0,a)}function E0(z0,a){if(D("resume",a.reading),!a.reading)z0.read(0);if(a.resumeScheduled=!1,z0.emit("resume"),_0(z0),a.flowing&&!a.reading)z0.read(0)}Y.prototype.pause=function(){if(D("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)D("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this};function _0(z0){var a=z0._readableState;D("flow",a.flowing);while(a.flowing&&z0.read()!==null);}if(Y.prototype.wrap=function(z0){var a=this,J0=this._readableState,y0=!1;z0.on("end",function(){if(D("wrapped end"),J0.decoder&&!J0.ended){var $$=J0.decoder.end();if($$&&$$.length)a.push($$)}a.push(null)}),z0.on("data",function($$){if(D("wrapped data"),J0.decoder)$$=J0.decoder.write($$);if(J0.objectMode&&($$===null||$$===void 0))return;else if(!J0.objectMode&&(!$$||!$$.length))return;var w0=a.push($$);if(!w0)y0=!0,z0.pause()});for(var N0 in z0)if(this[N0]===void 0&&typeof z0[N0]==="function")this[N0]=function($$){return function(){return z0[$$].apply(z0,arguments)}}(N0);for(var A0=0;A0<R0.length;A0++)z0.on(R0[A0],this.emit.bind(this,R0[A0]));return this._read=function($$){if(D("wrapped _read",$$),y0)y0=!1,z0.resume()},this},typeof Symbol==="function")Y.prototype[Symbol.asyncIterator]=function(){if(I0===void 0)I0=gt();return I0(this)};Object.defineProperty(Y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Y.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Y.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(z0){if(this._readableState)this._readableState.flowing=z0}}),Y._fromList=$0,Object.defineProperty(Y.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function $0(z0,a){if(a.length===0)return null;var J0;if(a.objectMode)J0=a.buffer.shift();else if(!z0||z0>=a.length){if(a.decoder)J0=a.buffer.join("");else if(a.buffer.length===1)J0=a.buffer.first();else J0=a.buffer.concat(a.length);a.buffer.clear()}else J0=a.buffer.consume(z0,a.decoder);return J0}function G0(z0){var a=z0._readableState;if(D("endReadable",a.endEmitted),!a.endEmitted)a.ended=!0,process.nextTick(K0,a,z0)}function K0(z0,a){if(D("endReadableNT",z0.endEmitted,z0.length),!z0.endEmitted&&z0.length===0){if(z0.endEmitted=!0,a.readable=!1,a.emit("end"),z0.autoDestroy){var J0=a._writableState;if(!J0||J0.autoDestroy&&J0.finished)a.destroy()}}}if(typeof Symbol==="function")Y.from=function(z0,a){if(H0===void 0)H0=Ct();return H0(Y,z0,a)};function q0(z0,a){for(var J0=0,y0=z0.length;J0<y0;J0++)if(z0[J0]===a)return J0;return-1}}),Uc=pv(($,_)=>{_.exports=F;var I=l8().codes,J=I.ERR_METHOD_NOT_IMPLEMENTED,j=I.ERR_MULTIPLE_CALLBACK,G=I.ERR_TRANSFORM_ALREADY_TRANSFORMING,X=I.ERR_TRANSFORM_WITH_LENGTH_0,W=$O();p8()(F,W);function T(q,S){var k=this._transformState;k.transforming=!1;var y=k.writecb;if(y===null)return this.emit("error",new j);if(k.writechunk=null,k.writecb=null,S!=null)this.push(S);y(q);var m=this._readableState;if(m.reading=!1,m.needReadable||m.length<m.highWaterMark)this._read(m.highWaterMark)}function F(q){if(!(this instanceof F))return new F(q);if(W.call(this,q),this._transformState={afterTransform:T.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,q){if(typeof q.transform==="function")this._transform=q.transform;if(typeof q.flush==="function")this._flush=q.flush}this.on("prefinish",E)}function E(){var q=this;if(typeof this._flush==="function"&&!this._readableState.destroyed)this._flush(function(S,k){D(q,S,k)});else D(this,null,null)}F.prototype.push=function(q,S){return this._transformState.needTransform=!1,W.prototype.push.call(this,q,S)},F.prototype._transform=function(q,S,k){k(new J("_transform()"))},F.prototype._write=function(q,S,k){var y=this._transformState;if(y.writecb=k,y.writechunk=q,y.writeencoding=S,!y.transforming){var m=this._readableState;if(y.needTransform||m.needReadable||m.length<m.highWaterMark)this._read(m.highWaterMark)}},F.prototype._read=function(q){var S=this._transformState;if(S.writechunk!==null&&!S.transforming)S.transforming=!0,this._transform(S.writechunk,S.writeencoding,S.afterTransform);else S.needTransform=!0},F.prototype._destroy=function(q,S){W.prototype._destroy.call(this,q,function(k){S(k)})};function D(q,S,k){if(S)return q.emit("error",S);if(k!=null)q.push(k);if(q._writableState.length)throw new X;if(q._transformState.transforming)throw new G;return q.push(null)}}),wt=pv(($,_)=>{_.exports=J;var I=Uc();p8()(J,I);function J(j){if(!(this instanceof J))return new J(j);I.call(this,j)}J.prototype._transform=function(j,G,X){X(null,j)}}),Nt=pv(($,_)=>{var I;function J(k){var y=!1;return function(){if(y)return;y=!0,k.apply(void 0,arguments)}}var j=l8().codes,G=j.ERR_MISSING_ARGS,X=j.ERR_STREAM_DESTROYED;function W(k){if(k)throw k}function T(k){return k.setHeader&&typeof k.abort==="function"}function F(k,y,m,n){n=J(n);var h=!1;if(k.on("close",function(){h=!0}),I===void 0)I=EP();I(k,{readable:y,writable:m},function(s){if(s)return n(s);h=!0,n()});var p=!1;return function(s){if(h)return;if(p)return;if(p=!0,T(k))return k.abort();if(typeof k.destroy==="function")return k.destroy();n(s||new X("pipe"))}}function E(k){k()}function D(k,y){return k.pipe(y)}function q(k){if(!k.length)return W;if(typeof k[k.length-1]!=="function")return W;return k.pop()}function S(){for(var k=arguments.length,y=Array(k),m=0;m<k;m++)y[m]=arguments[m];var n=q(y);if(Array.isArray(y[0]))y=y[0];if(y.length<2)throw new G("streams");var h,p=y.map(function(s,j0){var I0=j0<y.length-1,H0=j0>0;return F(s,I0,H0,function(L0){if(!h)h=L0;if(L0)p.forEach(E);if(I0)return;p.forEach(E),n(h)})});return y.reduce(D)}_.exports=S}),Ic=pv(($,_)=>{var I=E8();$=_.exports=jc(),$.Stream=I||$,$.Readable=$,$.Writable=_c(),$.Duplex=$O(),$.Transform=Uc(),$.PassThrough=wt(),$.finished=EP(),$.pipeline=Nt()}),Xc=pv(($)=>{var _=ek(),I=p8(),J=Ic(),j=$.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},G=$.IncomingMessage=function(X,W,T,F){var E=this;if(J.Readable.call(E),E._mode=T,E.headers={},E.rawHeaders=[],E.trailers={},E.rawTrailers=[],E.on("end",function(){process.nextTick(function(){E.emit("close")})}),T==="fetch"){let n=function(){S.read().then(function(h){if(E._destroyed)return;if(F(h.done),h.done){E.push(null);return}E.push(Buffer.from(h.value)),n()}).catch(function(h){if(F(!0),!E._destroyed)E.emit("error",h)})};var D=n;if(E._fetchResponse=W,E.url=W.url,E.statusCode=W.status,E.statusMessage=W.statusText,W.headers.forEach(function(h,p){E.headers[p.toLowerCase()]=h,E.rawHeaders.push(p,h)}),_.writableStream){var q=new WritableStream({write:function(h){return F(!1),new Promise(function(p,s){if(E._destroyed)s();else if(E.push(Buffer.from(h)))p();else E._resumeFetch=p})},close:function(){if(F(!0),!E._destroyed)E.push(null)},abort:function(h){if(F(!0),!E._destroyed)E.emit("error",h)}});try{W.body.pipeTo(q).catch(function(h){if(F(!0),!E._destroyed)E.emit("error",h)});return}catch(h){}}var S=W.body.getReader();n()}else{E._xhr=X,E._pos=0,E.url=X.responseURL,E.statusCode=X.status,E.statusMessage=X.statusText;var k=X.getAllResponseHeaders().split(/\r?\n/);if(k.forEach(function(n){var h=n.match(/^([^:]+):\s*(.*)/);if(h){var p=h[1].toLowerCase();if(p==="set-cookie"){if(E.headers[p]===void 0)E.headers[p]=[];E.headers[p].push(h[2])}else if(E.headers[p]!==void 0)E.headers[p]+=", "+h[2];else E.headers[p]=h[2];E.rawHeaders.push(h[1],h[2])}}),E._charset="x-user-defined",!_.overrideMimeType){var y=E.rawHeaders["mime-type"];if(y){var m=y.match(/;\s*charset=([^;])(;|$)/);if(m)E._charset=m[1].toLowerCase()}if(!E._charset)E._charset="utf-8"}}};I(G,J.Readable),G.prototype._read=function(){var X=this,W=X._resumeFetch;if(W)X._resumeFetch=null,W()},G.prototype._onXHRProgress=function(X){var W=this,T=W._xhr,F=null;switch(W._mode){case"text":if(F=T.responseText,F.length>W._pos){var E=F.substr(W._pos);if(W._charset==="x-user-defined"){var D=Buffer.alloc(E.length);for(var q=0;q<E.length;q++)D[q]=E.charCodeAt(q)&255;W.push(D)}else W.push(E,W._charset);W._pos=F.length}break;case"arraybuffer":if(T.readyState!==j.DONE||!T.response)break;F=T.response,W.push(Buffer.from(new Uint8Array(F)));break;case"moz-chunked-arraybuffer":if(F=T.response,T.readyState!==j.LOADING||!F)break;W.push(Buffer.from(new Uint8Array(F)));break;case"ms-stream":if(F=T.response,T.readyState!==j.LOADING)break;var S=new globalThis.MSStreamReader;S.onprogress=function(){if(S.result.byteLength>W._pos)W.push(Buffer.from(new Uint8Array(S.result.slice(W._pos)))),W._pos=S.result.byteLength},S.onload=function(){X(!0),W.push(null)},S.readAsArrayBuffer(F);break}if(W._xhr.readyState===j.DONE&&W._mode!=="ms-stream")X(!0),W.push(null)}}),Bt=pv(($,_)=>{var I=ek(),J=p8(),j=Xc(),G=Ic(),X=j.IncomingMessage,W=j.readyStates;function T(q,S){if(I.fetch&&S)return"fetch";else if(I.mozchunkedarraybuffer)return"moz-chunked-arraybuffer";else if(I.msstream)return"ms-stream";else if(I.arraybuffer&&q)return"arraybuffer";else return"text"}var F=_.exports=function(q){var S=this;if(G.Writable.call(S),S._opts=q,S._body=[],S._headers={},q.auth)S.setHeader("Authorization","Basic "+Buffer.from(q.auth).toString("base64"));Object.keys(q.headers).forEach(function(m){S.setHeader(m,q.headers[m])});var k,y=!0;if(q.mode==="disable-fetch"||"requestTimeout"in q&&!I.abortController)y=!1,k=!0;else if(q.mode==="prefer-streaming")k=!1;else if(q.mode==="allow-wrong-content-type")k=!I.overrideMimeType;else if(!q.mode||q.mode==="default"||q.mode==="prefer-fast")k=!0;else throw Error("Invalid value for opts.mode");S._mode=T(k,y),S._fetchTimer=null,S._socketTimeout=null,S._socketTimer=null,S.on("finish",function(){S._onFinish()})};J(F,G.Writable),F.prototype.setHeader=function(q,S){var k=this,y=q.toLowerCase();if(D.indexOf(y)!==-1)return;k._headers[y]={name:q,value:S}},F.prototype.getHeader=function(q){var S=this._headers[q.toLowerCase()];if(S)return S.value;return null},F.prototype.removeHeader=function(q){var S=this;delete S._headers[q.toLowerCase()]},F.prototype._onFinish=function(){var q=this;if(q._destroyed)return;var S=q._opts;if("timeout"in S&&S.timeout!==0)q.setTimeout(S.timeout);var k=q._headers,y=null;if(S.method!=="GET"&&S.method!=="HEAD")y=new Blob(q._body,{type:(k["content-type"]||{}).value||""});var m=[];if(Object.keys(k).forEach(function(s){var j0=k[s].name,I0=k[s].value;if(Array.isArray(I0))I0.forEach(function(H0){m.push([j0,H0])});else m.push([j0,I0])}),q._mode==="fetch"){var n=null;if(I.abortController){var h=new AbortController;if(n=h.signal,q._fetchAbortController=h,"requestTimeout"in S&&S.requestTimeout!==0)q._fetchTimer=globalThis.setTimeout(function(){if(q.emit("requestTimeout"),q._fetchAbortController)q._fetchAbortController.abort()},S.requestTimeout)}globalThis.fetch(q._opts.url,{method:q._opts.method,headers:m,body:y||void 0,mode:"cors",credentials:S.withCredentials?"include":"same-origin",signal:n}).then(function(s){q._fetchResponse=s,q._resetTimers(!1),q._connect()},function(s){if(q._resetTimers(!0),!q._destroyed)q.emit("error",s)})}else{var p=q._xhr=new globalThis.XMLHttpRequest;try{p.open(q._opts.method,q._opts.url,!0)}catch(s){process.nextTick(function(){q.emit("error",s)});return}if("responseType"in p)p.responseType=q._mode;if("withCredentials"in p)p.withCredentials=!!S.withCredentials;if(q._mode==="text"&&"overrideMimeType"in p)p.overrideMimeType("text/plain; charset=x-user-defined");if("requestTimeout"in S)p.timeout=S.requestTimeout,p.ontimeout=function(){q.emit("requestTimeout")};if(m.forEach(function(s){p.setRequestHeader(s[0],s[1])}),q._response=null,p.onreadystatechange=function(){switch(p.readyState){case W.LOADING:case W.DONE:q._onXHRProgress();break}},q._mode==="moz-chunked-arraybuffer")p.onprogress=function(){q._onXHRProgress()};p.onerror=function(){if(q._destroyed)return;q._resetTimers(!0),q.emit("error",Error("XHR error"))};try{p.send(y)}catch(s){process.nextTick(function(){q.emit("error",s)});return}}};function E(q){try{var S=q.status;return S!==null&&S!==0}catch(k){return!1}}F.prototype._onXHRProgress=function(){var q=this;if(q._resetTimers(!1),!E(q._xhr)||q._destroyed)return;if(!q._response)q._connect();q._response._onXHRProgress(q._resetTimers.bind(q))},F.prototype._connect=function(){var q=this;if(q._destroyed)return;q._response=new X(q._xhr,q._fetchResponse,q._mode,q._resetTimers.bind(q)),q._response.on("error",function(S){q.emit("error",S)}),q.emit("response",q._response)},F.prototype._write=function(q,S,k){var y=this;y._body.push(q),k()},F.prototype._resetTimers=function(q){var S=this;if(globalThis.clearTimeout(S._socketTimer),S._socketTimer=null,q)globalThis.clearTimeout(S._fetchTimer),S._fetchTimer=null;else if(S._socketTimeout)S._socketTimer=globalThis.setTimeout(function(){S.emit("timeout")},S._socketTimeout)},F.prototype.abort=F.prototype.destroy=function(q){var S=this;if(S._destroyed=!0,S._resetTimers(!0),S._response)S._response._destroyed=!0;if(S._xhr)S._xhr.abort();else if(S._fetchAbortController)S._fetchAbortController.abort();if(q)S.emit("error",q)},F.prototype.end=function(q,S,k){var y=this;if(typeof q==="function")k=q,q=void 0;G.Writable.prototype.end.call(y,q,S,k)},F.prototype.setTimeout=function(q,S){var k=this;if(S)k.once("timeout",S);k._socketTimeout=q,k._resetTimers(!1)},F.prototype.flushHeaders=function(){},F.prototype.setNoDelay=function(){},F.prototype.setSocketKeepAlive=function(){};var D=["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"]}),St=pv(($,_)=>{_.exports=J;var I=Object.prototype.hasOwnProperty;function J(){var j={};for(var G=0;G<arguments.length;G++){var X=arguments[G];for(var W in X)if(I.call(X,W))j[W]=X[W]}return j}}),kt=pv(($,_)=>{_.exports=(SL(),X1(wK)).STATUS_CODES}),ct=pv(($)=>{var _=Bt(),I=Xc(),J=St(),j=kt(),G=(MP(),X1(AP)),X=$;X.request=function(W,T){if(typeof W==="string")W=G.parse(W);else W=J(W);var F=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",E=W.protocol||F,D=W.hostname||W.host,q=W.port,S=W.path||"/";if(D&&D.indexOf(":")!==-1)D="["+D+"]";W.url=(D?E+"//"+D:"")+(q?":"+q:"")+S,W.method=(W.method||"GET").toUpperCase(),W.headers=W.headers||{};var k=new _(W);if(T)k.on("response",T);return k},X.get=function(W,T){var F=X.request(W,T);return F.end(),F},X.ClientRequest=_,X.IncomingMessage=I.IncomingMessage,X.Agent=function(){},X.Agent.defaultMaxSockets=4,X.globalAgent=new X.Agent,X.STATUS_CODES=j,X.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"]}),Gc=Vt(ct(),1),{request:xt,get:ft,ClientRequest:yt,IncomingMessage:bt,Agent:ht,globalAgent:mt,STATUS_CODES:ut,METHODS:nt}=Gc.default,Yc=Gc.default});var zc={};_j(zc,{isIPv6:()=>TP,isIPv4:()=>VP,isIP:()=>Jc,default:()=>Qc});function VP($){return pt.test($)}function TP($){return lt.test($)}function Jc($){if(VP($))return 4;if(TP($))return 6;return 0}var pt,lt,Qc;var RP=GX(()=>{pt=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])$"),lt=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,})?$");Qc={isIPv4:VP,isIPv6:TP,isIP:Jc}});var Lc=eU((cJ0,Qo)=>{Qo.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/(?!(?:oauth2/(?:token|revoke)|users/me)/?$)|^/_twin/(?!assets/consent\\.(?:js|css)$)"},{host:"api.twitter.com",pathPattern:"^/2/(?!(?:oauth2/(?:token|revoke)|users/me)/?$)|^/_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:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["account","post","follow","rate_limit","_token"],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 NK=eU((xJ0,Dc)=>{var zo=($)=>typeof $==="string"&&(/^\/(o\/oauth2\/v2\/auth(\/oauthchooseaccount)?|o\/oauth2\/auth|o\/oauth2\/token|signin\/oauth\/error|\.well-known\/openid-configuration)\/?$/.test($)||/^\/_twin\//.test($)),Zo=($)=>typeof $==="string"&&/^\/(token|oauth2\/v4\/token|revoke|tokeninfo|device\/code)\/?$/.test($),Oo=($)=>typeof $==="string"&&/^\/(oauth2\/(v1\/certs|v3\/(certs|userinfo)|v2\/userinfo)|userinfo\/v2\/me)\/?$/.test($),AG={googleoauth:($,_)=>$==="accounts.google.com"&&(_===void 0||zo(_))||$==="oauth2.googleapis.com"&&(_===void 0||Zo(_))||$==="www.googleapis.com"&&(_===void 0||Oo(_))||$==="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:$}=Lc();for(let _ of Object.keys($)){let I=$[_].hosts;if(!I||I.length===0)continue;if(AG[_])throw Error(`inject: vendor "${_}" declares hosts on its pack descriptor AND in the hand VENDOR_HOSTS table — one home per fact; delete the hand entry.`);let J=new Map;for(let j of I){let G=j.key===void 0?_:j.key;if(!J.has(G))J.set(G,[]);J.get(G).push(j)}for(let[j,G]of J){if(AG[j])throw Error(`inject: key "${j}" (pack ${_}) is declared twice — on this descriptor and in the hand VENDOR_HOSTS table or another pack's descriptor; a key has one home.`);let X=(F)=>{if(["host","suffix","hostPattern"].filter((S)=>F[S]!==void 0).length!==1)throw Error(`inject: key "${j}" (pack ${_}) rule ${JSON.stringify(F)} — exactly one of host | suffix | hostPattern (pack-facts.json is hand-edited or stale)`);let D=F.hostPattern===void 0?null:new RegExp(F.hostPattern),q=F.pathPattern===void 0?null:new RegExp(F.pathPattern);return(S,k)=>(F.host!==void 0?S===F.host:F.suffix!==void 0?S.endsWith(F.suffix):D.test(S))&&(q===null||k===void 0||q.test(k))},W=G.filter((F)=>F.exclude!==!0).map(X),T=G.filter((F)=>F.exclude===!0).map(X);AG[j]=(F,E)=>W.some((D)=>D(F,E))&&!T.some((D)=>D(F,E))}}}function Lo($){let _=String($||"").toLowerCase().replace(/\.$/,"");return Object.keys(AG).some((I)=>AG[I](_))}function Wo($){let _=String($||"").toLowerCase().replace(/\.$/,"");return Object.keys(AG).filter((I)=>AG[I](_))}function Wc($){return String($).toUpperCase().replace(/[^A-Z0-9]/g,"_")}function Do($){let _={};for(let I of Object.keys(AG)){let J=$[`${Wc(I)}_TWIN_URL`];if(J)_[I]=J.replace(/\/$/,"")}if($.TWIN_INJECT)for(let I of String($.TWIN_INJECT).split(",")){let J=I.indexOf("=");if(J<=0)continue;let j=I.slice(0,J).trim(),G=I.slice(J+1).trim();if(j&&G&&Object.hasOwn(AG,j))_[j]=G.replace(/\/$/,"")}return _}Dc.exports={VENDOR_HOSTS:AG,isVendorHost:Lo,vendorsOfHost:Wo,twinEnvStem:Wc,twinOrigins:Do}});var Fc={};_j(Fc,{validateHeaderValue:()=>bo,validateHeaderName:()=>yo,setMaxIdleHTTPParsers:()=>fo,request:()=>xo,maxHeaderSize:()=>co,globalAgent:()=>ko,get:()=>So,default:()=>ho,createServer:()=>Bo,ServerResponse:()=>No,Server:()=>wo,STATUS_CODES:()=>Co,OutgoingMessage:()=>go,METHODS:()=>qo,IncomingMessage:()=>Po,ClientRequest:()=>Ro,Agent:()=>To});var Ko,Ho,Kc,Fo,Ao,Mo=($,_,I)=>{I=$!=null?Ko(Ho($)):{};let J=_||!$||!$.__esModule?Kc(I,"default",{value:$,enumerable:!0}):I;for(let j of Fo($))if(!Ao.call(J,j))Kc(J,j,{get:()=>$[j],enumerable:!0});return J},Eo=($,_)=>()=>(_||$((_={exports:{}}).exports,_),_.exports),Vo,Hc,To,Ro,Po,qo,go,Co,wo,No,Bo,So,ko,co,xo,fo,yo,bo,ho;var Ac=GX(()=>{Ko=Object.create,{getPrototypeOf:Ho,defineProperty:Kc,getOwnPropertyNames:Fo}=Object,Ao=Object.prototype.hasOwnProperty,Vo=Eo(($,_)=>{var I=(SL(),X1(wK)),J=(MP(),X1(AP)),j=$;for(G in I)if(I.hasOwnProperty(G))j[G]=I[G];var G;j.request=function(W,T){return W=X(W),I.request.call(this,W,T)},j.get=function(W,T){return W=X(W),I.get.call(this,W,T)};function X(W){if(typeof W==="string")W=J.parse(W);if(!W.protocol)W.protocol="https:";if(W.protocol!=="https:")throw Error('Protocol "'+W.protocol+'" not supported. Expected "https:"');return W}}),Hc=Mo(Vo(),1),{Agent:To,ClientRequest:Ro,IncomingMessage:Po,METHODS:qo,OutgoingMessage:go,STATUS_CODES:Co,Server:wo,ServerResponse:No,createServer:Bo,get:So,globalAgent:ko,maxHeaderSize:co,request:xo,setMaxIdleHTTPParsers:fo,validateHeaderName:yo,validateHeaderValue:bo}=Hc,ho=Hc});var xP={};_j(xP,{throws:()=>_s,strictEqual:()=>vs,strict:()=>$s,rejects:()=>ea,ok:()=>sa,notStrictEqual:()=>aa,notEqual:()=>oa,notDeepStrictEqual:()=>ta,notDeepEqual:()=>ra,match:()=>da,ifError:()=>ia,fail:()=>la,equal:()=>pa,doesNotThrow:()=>na,doesNotReject:()=>ua,doesNotMatch:()=>ma,default:()=>js,deepStrictEqual:()=>ha,deepEqual:()=>ba,CallTracker:()=>ya,AssertionError:()=>fa});var mo,uo,Mc,no,po,lo=($,_,I)=>{I=$!=null?mo(uo($)):{};let J=_||!$||!$.__esModule?Mc(I,"default",{value:$,enumerable:!0}):I;for(let j of no($))if(!po.call(J,j))Mc(J,j,{get:()=>$[j],enumerable:!0});return J},t$=($,_)=>()=>(_||$((_={exports:{}}).exports,_),_.exports),gP,BK,CP,io,ro,to,oo,Ec,cL,ao,so,eo,$a,va,_a,ja,Ua,Ia,Xa,vO,SK,Ga,Vc,Tc,Ya,xL,wP,NP,Ja,Rc,BP,Qa,SP,Pc,kP,_O,za,Za,Oa,La,Wa,Da,Ka,Ha,Fa,qc,gc,Aa,Ma,kK,Cc,Ea,Va,Ta,Ra,Pa,kL,wc,qa,Nc,ga,Bc,Ca,wa,Sc,cP,Na,cK,Ba,Sa,kc,cc,ka,ca,xa,qP,xc,fa,ya,ba,ha,ma,ua,na,pa,la,ia,da,ra,ta,oa,aa,sa,ea,$s,vs,_s,js;var fP=GX(()=>{mo=Object.create,{getPrototypeOf:uo,defineProperty:Mc,getOwnPropertyNames:no}=Object,po=Object.prototype.hasOwnProperty,gP=t$(($,_)=>{_.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var I={},J=Symbol("test"),j=Object(J);if(typeof J==="string")return!1;if(Object.prototype.toString.call(J)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(j)!=="[object Symbol]")return!1;var G=42;I[J]=G;for(var X in I)return!1;if(typeof Object.keys==="function"&&Object.keys(I).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(I).length!==0)return!1;var W=Object.getOwnPropertySymbols(I);if(W.length!==1||W[0]!==J)return!1;if(!Object.prototype.propertyIsEnumerable.call(I,J))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var T=Object.getOwnPropertyDescriptor(I,J);if(T.value!==G||T.enumerable!==!0)return!1}return!0}}),BK=t$(($,_)=>{var I=gP();_.exports=function(){return I()&&!!Symbol.toStringTag}}),CP=t$(($,_)=>{_.exports=Object}),io=t$(($,_)=>{_.exports=Error}),ro=t$(($,_)=>{_.exports=EvalError}),to=t$(($,_)=>{_.exports=RangeError}),oo=t$(($,_)=>{_.exports=ReferenceError}),Ec=t$(($,_)=>{_.exports=SyntaxError}),cL=t$(($,_)=>{_.exports=TypeError}),ao=t$(($,_)=>{_.exports=URIError}),so=t$(($,_)=>{_.exports=Math.abs}),eo=t$(($,_)=>{_.exports=Math.floor}),$a=t$(($,_)=>{_.exports=Math.max}),va=t$(($,_)=>{_.exports=Math.min}),_a=t$(($,_)=>{_.exports=Math.pow}),ja=t$(($,_)=>{_.exports=Math.round}),Ua=t$(($,_)=>{_.exports=Number.isNaN||function(I){return I!==I}}),Ia=t$(($,_)=>{var I=Ua();_.exports=function(J){if(I(J)||J===0)return J;return J<0?-1:1}}),Xa=t$(($,_)=>{_.exports=Object.getOwnPropertyDescriptor}),vO=t$(($,_)=>{var I=Xa();if(I)try{I([],"length")}catch(J){I=null}_.exports=I}),SK=t$(($,_)=>{var I=Object.defineProperty||!1;if(I)try{I({},"a",{value:1})}catch(J){I=!1}_.exports=I}),Ga=t$(($,_)=>{var I=typeof Symbol<"u"&&Symbol,J=gP();_.exports=function(){if(typeof I!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof I("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return J()}}),Vc=t$(($,_)=>{_.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),Tc=t$(($,_)=>{var I=CP();_.exports=I.getPrototypeOf||null}),Ya=t$(($,_)=>{var I="Function.prototype.bind called on incompatible ",J=Object.prototype.toString,j=Math.max,G="[object Function]",X=function(F,E){var D=[];for(var q=0;q<F.length;q+=1)D[q]=F[q];for(var S=0;S<E.length;S+=1)D[S+F.length]=E[S];return D},W=function(F,E){var D=[];for(var q=E||0,S=0;q<F.length;q+=1,S+=1)D[S]=F[q];return D},T=function(F,E){var D="";for(var q=0;q<F.length;q+=1)if(D+=F[q],q+1<F.length)D+=E;return D};_.exports=function(F){var E=this;if(typeof E!=="function"||J.apply(E)!==G)throw TypeError(I+E);var D=W(arguments,1),q,S=function(){if(this instanceof q){var h=E.apply(this,X(D,arguments));if(Object(h)===h)return h;return this}return E.apply(F,X(D,arguments))},k=j(0,E.length-D.length),y=[];for(var m=0;m<k;m++)y[m]="$"+m;if(q=Function("binder","return function ("+T(y,",")+"){ return binder.apply(this,arguments); }")(S),E.prototype){var n=function(){};n.prototype=E.prototype,q.prototype=new n,n.prototype=null}return q}}),xL=t$(($,_)=>{var I=Ya();_.exports=Function.prototype.bind||I}),wP=t$(($,_)=>{_.exports=Function.prototype.call}),NP=t$(($,_)=>{_.exports=Function.prototype.apply}),Ja=t$(($,_)=>{_.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),Rc=t$(($,_)=>{var I=xL(),J=NP(),j=wP(),G=Ja();_.exports=G||I.call(j,J)}),BP=t$(($,_)=>{var I=xL(),J=cL(),j=wP(),G=Rc();_.exports=function(X){if(X.length<1||typeof X[0]!=="function")throw new J("a function is required");return G(I,j,X)}}),Qa=t$(($,_)=>{var I=BP(),J=vO(),j;try{j=[].__proto__===Array.prototype}catch(T){if(!T||typeof T!=="object"||!("code"in T)||T.code!=="ERR_PROTO_ACCESS")throw T}var G=!!j&&J&&J(Object.prototype,"__proto__"),X=Object,W=X.getPrototypeOf;_.exports=G&&typeof G.get==="function"?I([G.get]):typeof W==="function"?function(T){return W(T==null?T:X(T))}:!1}),SP=t$(($,_)=>{var I=Vc(),J=Tc(),j=Qa();_.exports=I?function(G){return I(G)}:J?function(G){if(!G||typeof G!=="object"&&typeof G!=="function")throw TypeError("getProto: not an object");return J(G)}:j?function(G){return j(G)}:null}),Pc=t$(($,_)=>{var I=Function.prototype.call,J=Object.prototype.hasOwnProperty,j=xL();_.exports=j.call(I,J)}),kP=t$(($,_)=>{var I,J=CP(),j=io(),G=ro(),X=to(),W=oo(),T=Ec(),F=cL(),E=ao(),D=so(),q=eo(),S=$a(),k=va(),y=_a(),m=ja(),n=Ia(),h=Function,p=function(G0){try{return h('"use strict"; return ('+G0+").constructor;")()}catch(K0){}},s=vO(),j0=SK(),I0=function(){throw new F},H0=s?function(){try{return arguments.callee,I0}catch(G0){try{return s(arguments,"callee").get}catch(K0){return I0}}}():I0,L0=Ga()(),R0=SP(),U0=Tc(),c0=Vc(),Y=NP(),O=wP(),H={},Z=typeof Uint8Array>"u"||!R0?I:R0(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":L0&&R0?R0([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":H,"%AsyncGenerator%":H,"%AsyncGeneratorFunction%":H,"%AsyncIteratorPrototype%":H,"%Atomics%":typeof Atomics>"u"?I:Atomics,"%BigInt%":typeof BigInt>"u"?I:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?I:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?I:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?I:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":j,"%eval%":eval,"%EvalError%":G,"%Float16Array%":typeof Float16Array>"u"?I:Float16Array,"%Float32Array%":typeof Float32Array>"u"?I:Float32Array,"%Float64Array%":typeof Float64Array>"u"?I:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?I:FinalizationRegistry,"%Function%":h,"%GeneratorFunction%":H,"%Int8Array%":typeof Int8Array>"u"?I:Int8Array,"%Int16Array%":typeof Int16Array>"u"?I:Int16Array,"%Int32Array%":typeof Int32Array>"u"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":L0&&R0?R0(R0([][Symbol.iterator]())):I,"%JSON%":typeof JSON==="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!L0||!R0?I:R0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":J,"%Object.getOwnPropertyDescriptor%":s,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":X,"%ReferenceError%":W,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!L0||!R0?I:R0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":L0&&R0?R0(""[Symbol.iterator]()):I,"%Symbol%":L0?Symbol:I,"%SyntaxError%":T,"%ThrowTypeError%":H0,"%TypedArray%":Z,"%TypeError%":F,"%Uint8Array%":typeof Uint8Array>"u"?I:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?I:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?I:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?I:Uint32Array,"%URIError%":E,"%WeakMap%":typeof WeakMap>"u"?I:WeakMap,"%WeakRef%":typeof WeakRef>"u"?I:WeakRef,"%WeakSet%":typeof WeakSet>"u"?I:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":Y,"%Object.defineProperty%":j0,"%Object.getPrototypeOf%":U0,"%Math.abs%":D,"%Math.floor%":q,"%Math.max%":S,"%Math.min%":k,"%Math.pow%":y,"%Math.round%":m,"%Math.sign%":n,"%Reflect.getPrototypeOf%":c0};if(R0)try{null.error}catch(G0){w=R0(R0(G0)),K["%Error.prototype%"]=w}var w,B=function G0(K0){var q0;if(K0==="%AsyncFunction%")q0=p("async function () {}");else if(K0==="%GeneratorFunction%")q0=p("function* () {}");else if(K0==="%AsyncGeneratorFunction%")q0=p("async function* () {}");else if(K0==="%AsyncGenerator%"){var z0=G0("%AsyncGeneratorFunction%");if(z0)q0=z0.prototype}else if(K0==="%AsyncIteratorPrototype%"){var a=G0("%AsyncGenerator%");if(a&&R0)q0=R0(a.prototype)}return K[K0]=q0,q0},P={__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"]},z=xL(),A=Pc(),f=z.call(O,Array.prototype.concat),c=z.call(Y,Array.prototype.splice),l=z.call(O,String.prototype.replace),Q0=z.call(O,String.prototype.slice),F0=z.call(O,RegExp.prototype.exec),P0=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E0=/\\(\\)?/g,_0=function(G0){var K0=Q0(G0,0,1),q0=Q0(G0,-1);if(K0==="%"&&q0!=="%")throw new T("invalid intrinsic syntax, expected closing `%`");else if(q0==="%"&&K0!=="%")throw new T("invalid intrinsic syntax, expected opening `%`");var z0=[];return l(G0,P0,function(a,J0,y0,N0){z0[z0.length]=y0?l(N0,E0,"$1"):J0||a}),z0},$0=function(G0,K0){var q0=G0,z0;if(A(P,q0))z0=P[q0],q0="%"+z0[0]+"%";if(A(K,q0)){var a=K[q0];if(a===H)a=B(q0);if(typeof a>"u"&&!K0)throw new F("intrinsic "+G0+" exists, but is not available. Please file an issue!");return{alias:z0,name:q0,value:a}}throw new T("intrinsic "+G0+" does not exist!")};_.exports=function(G0,K0){if(typeof G0!=="string"||G0.length===0)throw new F("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof K0!=="boolean")throw new F('"allowMissing" argument must be a boolean');if(F0(/^%?[^%]*%?$/,G0)===null)throw new T("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var q0=_0(G0),z0=q0.length>0?q0[0]:"",a=$0("%"+z0+"%",K0),J0=a.name,y0=a.value,N0=!1,A0=a.alias;if(A0)z0=A0[0],c(q0,f([0,1],A0));for(var $$=1,w0=!0;$$<q0.length;$$+=1){var h0=q0[$$],H$=Q0(h0,0,1),l0=Q0(h0,-1);if((H$==='"'||H$==="'"||H$==="`"||(l0==='"'||l0==="'"||l0==="`"))&&H$!==l0)throw new T("property names with quotes must have matching quotes");if(h0==="constructor"||!w0)N0=!0;if(z0+="."+h0,J0="%"+z0+"%",A(K,J0))y0=K[J0];else if(y0!=null){if(!(h0 in y0)){if(!K0)throw new F("base intrinsic for "+G0+" exists, but the property is not available.");return}if(s&&$$+1>=q0.length){var j$=s(y0,h0);if(w0=!!j$,w0&&"get"in j$&&!("originalValue"in j$.get))y0=j$.get;else y0=y0[h0]}else w0=A(y0,h0),y0=y0[h0];if(w0&&!N0)K[J0]=y0}}return y0}}),_O=t$(($,_)=>{var I=kP(),J=BP(),j=J([I("%String.prototype.indexOf%")]);_.exports=function(G,X){var W=I(G,!!X);if(typeof W==="function"&&j(G,".prototype.")>-1)return J([W]);return W}}),za=t$(($,_)=>{var I=BK()(),J=_O(),j=J("Object.prototype.toString"),G=function(T){if(I&&T&&typeof T==="object"&&Symbol.toStringTag in T)return!1;return j(T)==="[object Arguments]"},X=function(T){if(G(T))return!0;return T!==null&&typeof T==="object"&&"length"in T&&typeof T.length==="number"&&T.length>=0&&j(T)!=="[object Array]"&&"callee"in T&&j(T.callee)==="[object Function]"},W=function(){return G(arguments)}();G.isLegacyArguments=X,_.exports=W?G:X}),Za=t$(($,_)=>{var I=_O(),J=BK()(),j=Pc(),G=vO(),X;if(J){if(W=I("RegExp.prototype.exec"),T={},F=function(){throw T},E={toString:F,valueOf:F},typeof Symbol.toPrimitive==="symbol")E[Symbol.toPrimitive]=F;X=function(S){if(!S||typeof S!=="object")return!1;var k=G(S,"lastIndex"),y=k&&j(k,"value");if(!y)return!1;try{W(S,E)}catch(m){return m===T}}}else D=I("Object.prototype.toString"),q="[object RegExp]",X=function(S){if(!S||typeof S!=="object"&&typeof S!=="function")return!1;return D(S)===q};var W,T,F,E,D,q;_.exports=X}),Oa=t$(($,_)=>{var I=_O(),J=Za(),j=I("RegExp.prototype.exec"),G=cL();_.exports=function(X){if(!J(X))throw new G("`regex` must be a RegExp");return function(W){return j(X,W)!==null}}}),La=t$(($,_)=>{var I=function*(){}.constructor;_.exports=()=>I}),Wa=t$(($,_)=>{var I=_O(),J=Oa(),j=J(/^\s*(?:function)?\*/),G=BK()(),X=SP(),W=I("Object.prototype.toString"),T=I("Function.prototype.toString"),F=La();_.exports=function(E){if(typeof E!=="function")return!1;if(j(T(E)))return!0;if(!G){var D=W(E);return D==="[object GeneratorFunction]"}if(!X)return!1;var q=F();return q&&X(E)===q.prototype}}),Da=t$(($,_)=>{var I=Function.prototype.toString,J=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,j,G;if(typeof J==="function"&&typeof Object.defineProperty==="function")try{j=Object.defineProperty({},"length",{get:function(){throw G}}),G={},J(function(){throw 42},null,j)}catch(s){if(s!==G)J=null}else J=null;var X=/^\s*class\b/,W=function(s){try{var j0=I.call(s);return X.test(j0)}catch(I0){return!1}},T=function(s){try{if(W(s))return!1;return I.call(s),!0}catch(j0){return!1}},F=Object.prototype.toString,E="[object Object]",D="[object Function]",q="[object GeneratorFunction]",S="[object HTMLAllCollection]",k="[object HTML document.all class]",y="[object HTMLCollection]",m=typeof Symbol==="function"&&!!Symbol.toStringTag,n=!(0 in[,]),h=function(){return!1};if(typeof document==="object"){if(p=document.all,F.call(p)===F.call(document.all))h=function(s){if((n||!s)&&(typeof s>"u"||typeof s==="object"))try{var j0=F.call(s);return(j0===S||j0===k||j0===y||j0===E)&&s("")==null}catch(I0){}return!1}}var p;_.exports=J?function(s){if(h(s))return!0;if(!s)return!1;if(typeof s!=="function"&&typeof s!=="object")return!1;try{J(s,null,j)}catch(j0){if(j0!==G)return!1}return!W(s)&&T(s)}:function(s){if(h(s))return!0;if(!s)return!1;if(typeof s!=="function"&&typeof s!=="object")return!1;if(m)return T(s);if(W(s))return!1;var j0=F.call(s);if(j0!==D&&j0!==q&&!/^\[object HTML/.test(j0))return!1;return T(s)}}),Ka=t$(($,_)=>{var I=Da(),J=Object.prototype.toString,j=Object.prototype.hasOwnProperty,G=function(F,E,D){for(var q=0,S=F.length;q<S;q++)if(j.call(F,q))if(D==null)E(F[q],q,F);else E.call(D,F[q],q,F)},X=function(F,E,D){for(var q=0,S=F.length;q<S;q++)if(D==null)E(F.charAt(q),q,F);else E.call(D,F.charAt(q),q,F)},W=function(F,E,D){for(var q in F)if(j.call(F,q))if(D==null)E(F[q],q,F);else E.call(D,F[q],q,F)};function T(F){return J.call(F)==="[object Array]"}_.exports=function(F,E,D){if(!I(E))throw TypeError("iterator must be a function");var q;if(arguments.length>=3)q=D;if(T(F))G(F,E,q);else if(typeof F==="string")X(F,E,q);else W(F,E,q)}}),Ha=t$(($,_)=>{_.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),Fa=t$(($,_)=>{var I=Ha(),J=typeof globalThis>"u"?globalThis:globalThis;_.exports=function(){var j=[];for(var G=0;G<I.length;G++)if(typeof J[I[G]]==="function")j[j.length]=I[G];return j}}),qc=t$(($,_)=>{var I=SK(),J=Ec(),j=cL(),G=vO();_.exports=function(X,W,T){if(!X||typeof X!=="object"&&typeof X!=="function")throw new j("`obj` must be an object or a function`");if(typeof W!=="string"&&typeof W!=="symbol")throw new j("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new j("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new j("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new j("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new j("`loose`, if provided, must be a boolean");var F=arguments.length>3?arguments[3]:null,E=arguments.length>4?arguments[4]:null,D=arguments.length>5?arguments[5]:null,q=arguments.length>6?arguments[6]:!1,S=!!G&&G(X,W);if(I)I(X,W,{configurable:D===null&&S?S.configurable:!D,enumerable:F===null&&S?S.enumerable:!F,value:T,writable:E===null&&S?S.writable:!E});else if(q||!F&&!E&&!D)X[W]=T;else throw new J("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),gc=t$(($,_)=>{var I=SK(),J=function(){return!!I};J.hasArrayLengthDefineBug=function(){if(!I)return null;try{return I([],"length",{value:1}).length!==1}catch(j){return!0}},_.exports=J}),Aa=t$(($,_)=>{var I=kP(),J=qc(),j=gc()(),G=vO(),X=cL(),W=I("%Math.floor%");_.exports=function(T,F){if(typeof T!=="function")throw new X("`fn` is not a function");if(typeof F!=="number"||F<0||F>4294967295||W(F)!==F)throw new X("`length` must be a positive 32-bit integer");var E=arguments.length>2&&!!arguments[2],D=!0,q=!0;if("length"in T&&G){var S=G(T,"length");if(S&&!S.configurable)D=!1;if(S&&!S.writable)q=!1}if(D||q||!E)if(j)J(T,"length",F,!0,!0);else J(T,"length",F);return T}}),Ma=t$(($,_)=>{var I=xL(),J=NP(),j=Rc();_.exports=function(){return j(I,J,arguments)}}),kK=t$(($,_)=>{var I=Aa(),J=SK(),j=BP(),G=Ma();if(_.exports=function(X){var W=j(arguments),T=X.length-(arguments.length-1);return I(W,1+(T>0?T:0),!0)},J)J(_.exports,"apply",{value:G});else _.exports.apply=G}),Cc=t$(($,_)=>{var I=Ka(),J=Fa(),j=kK(),G=_O(),X=vO(),W=SP(),T=G("Object.prototype.toString"),F=BK()(),E=typeof globalThis>"u"?globalThis:globalThis,D=J(),q=G("String.prototype.slice"),S=G("Array.prototype.indexOf",!0)||function(n,h){for(var p=0;p<n.length;p+=1)if(n[p]===h)return p;return-1},k={__proto__:null};if(F&&X&&W)I(D,function(n){var h=new E[n];if(Symbol.toStringTag in h&&W){var p=W(h),s=X(p,Symbol.toStringTag);if(!s&&p){var j0=W(p);s=X(j0,Symbol.toStringTag)}k["$"+n]=j(s.get)}});else I(D,function(n){var h=new E[n],p=h.slice||h.set;if(p)k["$"+n]=j(p)});var y=function(n){var h=!1;return I(k,function(p,s){if(!h)try{if("$"+p(n)===s)h=q(s,1)}catch(j0){}}),h},m=function(n){var h=!1;return I(k,function(p,s){if(!h)try{p(n),h=q(s,1)}catch(j0){}}),h};_.exports=function(n){if(!n||typeof n!=="object")return!1;if(!F){var h=q(T(n),8,-1);if(S(D,h)>-1)return h;if(h!=="Object")return!1;return m(n)}if(!X)return null;return y(n)}}),Ea=t$(($,_)=>{var I=Cc();_.exports=function(J){return!!I(J)}}),Va=t$(($)=>{var _=za(),I=Wa(),J=Cc(),j=Ea();function G(A0){return A0.call.bind(A0)}var X=typeof BigInt<"u",W=typeof Symbol<"u",T=G(Object.prototype.toString),F=G(Number.prototype.valueOf),E=G(String.prototype.valueOf),D=G(Boolean.prototype.valueOf);if(X)q=G(BigInt.prototype.valueOf);var q;if(W)S=G(Symbol.prototype.valueOf);var S;function k(A0,$$){if(typeof A0!=="object")return!1;try{return $$(A0),!0}catch(w0){return!1}}$.isArgumentsObject=_,$.isGeneratorFunction=I,$.isTypedArray=j;function y(A0){return typeof Promise<"u"&&A0 instanceof Promise||A0!==null&&typeof A0==="object"&&typeof A0.then==="function"&&typeof A0.catch==="function"}$.isPromise=y;function m(A0){if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)return ArrayBuffer.isView(A0);return j(A0)||c(A0)}$.isArrayBufferView=m;function n(A0){return J(A0)==="Uint8Array"}$.isUint8Array=n;function h(A0){return J(A0)==="Uint8ClampedArray"}$.isUint8ClampedArray=h;function p(A0){return J(A0)==="Uint16Array"}$.isUint16Array=p;function s(A0){return J(A0)==="Uint32Array"}$.isUint32Array=s;function j0(A0){return J(A0)==="Int8Array"}$.isInt8Array=j0;function I0(A0){return J(A0)==="Int16Array"}$.isInt16Array=I0;function H0(A0){return J(A0)==="Int32Array"}$.isInt32Array=H0;function L0(A0){return J(A0)==="Float32Array"}$.isFloat32Array=L0;function R0(A0){return J(A0)==="Float64Array"}$.isFloat64Array=R0;function U0(A0){return J(A0)==="BigInt64Array"}$.isBigInt64Array=U0;function c0(A0){return J(A0)==="BigUint64Array"}$.isBigUint64Array=c0;function Y(A0){return T(A0)==="[object Map]"}Y.working=typeof Map<"u"&&Y(new Map);function O(A0){if(typeof Map>"u")return!1;return Y.working?Y(A0):A0 instanceof Map}$.isMap=O;function H(A0){return T(A0)==="[object Set]"}H.working=typeof Set<"u"&&H(new Set);function Z(A0){if(typeof Set>"u")return!1;return H.working?H(A0):A0 instanceof Set}$.isSet=Z;function K(A0){return T(A0)==="[object WeakMap]"}K.working=typeof WeakMap<"u"&&K(new WeakMap);function w(A0){if(typeof WeakMap>"u")return!1;return K.working?K(A0):A0 instanceof WeakMap}$.isWeakMap=w;function B(A0){return T(A0)==="[object WeakSet]"}B.working=typeof WeakSet<"u"&&B(new WeakSet);function P(A0){return B(A0)}$.isWeakSet=P;function z(A0){return T(A0)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function A(A0){if(typeof ArrayBuffer>"u")return!1;return z.working?z(A0):A0 instanceof ArrayBuffer}$.isArrayBuffer=A;function f(A0){return T(A0)==="[object DataView]"}f.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&f(new DataView(new ArrayBuffer(1),0,1));function c(A0){if(typeof DataView>"u")return!1;return f.working?f(A0):A0 instanceof DataView}$.isDataView=c;var l=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Q0(A0){return T(A0)==="[object SharedArrayBuffer]"}function F0(A0){if(typeof l>"u")return!1;if(typeof Q0.working>"u")Q0.working=Q0(new l);return Q0.working?Q0(A0):A0 instanceof l}$.isSharedArrayBuffer=F0;function P0(A0){return T(A0)==="[object AsyncFunction]"}$.isAsyncFunction=P0;function E0(A0){return T(A0)==="[object Map Iterator]"}$.isMapIterator=E0;function _0(A0){return T(A0)==="[object Set Iterator]"}$.isSetIterator=_0;function $0(A0){return T(A0)==="[object Generator]"}$.isGeneratorObject=$0;function G0(A0){return T(A0)==="[object WebAssembly.Module]"}$.isWebAssemblyCompiledModule=G0;function K0(A0){return k(A0,F)}$.isNumberObject=K0;function q0(A0){return k(A0,E)}$.isStringObject=q0;function z0(A0){return k(A0,D)}$.isBooleanObject=z0;function a(A0){return X&&k(A0,q)}$.isBigIntObject=a;function J0(A0){return W&&k(A0,S)}$.isSymbolObject=J0;function y0(A0){return K0(A0)||q0(A0)||z0(A0)||a(A0)||J0(A0)}$.isBoxedPrimitive=y0;function N0(A0){return typeof Uint8Array<"u"&&(A(A0)||F0(A0))}$.isAnyArrayBuffer=N0,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(A0){Object.defineProperty($,A0,{enumerable:!1,value:function(){throw Error(A0+" is not supported in userland")}})})}),Ta=t$(($,_)=>{_.exports=function(I){return I instanceof Buffer}}),Ra=t$(($,_)=>{if(typeof Object.create==="function")_.exports=function(I,J){if(J)I.super_=J,I.prototype=Object.create(J.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}})};else _.exports=function(I,J){if(J){I.super_=J;var j=function(){};j.prototype=J.prototype,I.prototype=new j,I.prototype.constructor=I}}}),Pa=t$(($,_)=>{try{if(I=(lJ(),X1(pJ)),typeof I.inherits!=="function")throw"";_.exports=I.inherits}catch(J){_.exports=Ra()}var I}),kL=t$(($)=>{var _=Object.getOwnPropertyDescriptors||function(A){var f=Object.keys(A),c={};for(var l=0;l<f.length;l++)c[f[l]]=Object.getOwnPropertyDescriptor(A,f[l]);return c},I=/%[sdj%]/g;$.format=function(A){if(!s(A)){var f=[];for(var c=0;c<arguments.length;c++)f.push(G(arguments[c]));return f.join(" ")}var c=1,l=arguments,Q0=l.length,F0=String(A).replace(I,function(E0){if(E0==="%%")return"%";if(c>=Q0)return E0;switch(E0){case"%s":return String(l[c++]);case"%d":return Number(l[c++]);case"%j":try{return JSON.stringify(l[c++])}catch(_0){return"[Circular]"}default:return E0}});for(var P0=l[c];c<Q0;P0=l[++c])if(n(P0)||!L0(P0))F0+=" "+P0;else F0+=" "+G(P0);return F0},$.deprecate=function(A,f){if(typeof process<"u"&&process.noDeprecation===!0)return A;if(typeof process>"u")return function(){return $.deprecate(A,f).apply(this,arguments)};var c=!1;function l(){if(!c){if(process.throwDeprecation)throw Error(f);else if(process.traceDeprecation)console.trace(f);else console.error(f);c=!0}return A.apply(this,arguments)}return l};var J={},j=/^$/;$.debuglog=function(A){if(A=A.toUpperCase(),!J[A])if(j.test(A)){var f=process.pid;J[A]=function(){var c=$.format.apply($,arguments);console.error("%s %d: %s",A,f,c)}}else J[A]=function(){};return J[A]};function G(A,f){var c={seen:[],stylize:W};if(arguments.length>=3)c.depth=arguments[2];if(arguments.length>=4)c.colors=arguments[3];if(m(f))c.showHidden=f;else if(f)$._extend(c,f);if(I0(c.showHidden))c.showHidden=!1;if(I0(c.depth))c.depth=2;if(I0(c.colors))c.colors=!1;if(I0(c.customInspect))c.customInspect=!0;if(c.colors)c.stylize=X;return F(c,A,c.depth)}$.inspect=G,G.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]},G.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function X(A,f){var c=G.styles[f];if(c)return"\x1B["+G.colors[c][0]+"m"+A+"\x1B["+G.colors[c][1]+"m";else return A}function W(A,f){return A}function T(A){var f={};return A.forEach(function(c,l){f[c]=!0}),f}function F(A,f,c){if(A.customInspect&&f&&c0(f.inspect)&&f.inspect!==$.inspect&&!(f.constructor&&f.constructor.prototype===f)){var l=f.inspect(c,A);if(!s(l))l=F(A,l,c);return l}var Q0=E(A,f);if(Q0)return Q0;var F0=Object.keys(f),P0=T(F0);if(A.showHidden)F0=Object.getOwnPropertyNames(f);if(U0(f)&&(F0.indexOf("message")>=0||F0.indexOf("description")>=0))return D(f);if(F0.length===0){if(c0(f)){var E0=f.name?": "+f.name:"";return A.stylize("[Function"+E0+"]","special")}if(H0(f))return A.stylize(RegExp.prototype.toString.call(f),"regexp");if(R0(f))return A.stylize(Date.prototype.toString.call(f),"date");if(U0(f))return D(f)}var _0="",$0=!1,G0=["{","}"];if(y(f))$0=!0,G0=["[","]"];if(c0(f)){var K0=f.name?": "+f.name:"";_0=" [Function"+K0+"]"}if(H0(f))_0=" "+RegExp.prototype.toString.call(f);if(R0(f))_0=" "+Date.prototype.toUTCString.call(f);if(U0(f))_0=" "+D(f);if(F0.length===0&&(!$0||f.length==0))return G0[0]+_0+G0[1];if(c<0)if(H0(f))return A.stylize(RegExp.prototype.toString.call(f),"regexp");else return A.stylize("[Object]","special");A.seen.push(f);var q0;if($0)q0=q(A,f,c,P0,F0);else q0=F0.map(function(z0){return S(A,f,c,P0,z0,$0)});return A.seen.pop(),k(q0,_0,G0)}function E(A,f){if(I0(f))return A.stylize("undefined","undefined");if(s(f)){var c="'"+JSON.stringify(f).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(c,"string")}if(p(f))return A.stylize(""+f,"number");if(m(f))return A.stylize(""+f,"boolean");if(n(f))return A.stylize("null","null")}function D(A){return"["+Error.prototype.toString.call(A)+"]"}function q(A,f,c,l,Q0){var F0=[];for(var P0=0,E0=f.length;P0<E0;++P0)if(w(f,String(P0)))F0.push(S(A,f,c,l,String(P0),!0));else F0.push("");return Q0.forEach(function(_0){if(!_0.match(/^\d+$/))F0.push(S(A,f,c,l,_0,!0))}),F0}function S(A,f,c,l,Q0,F0){var P0,E0,_0;if(_0=Object.getOwnPropertyDescriptor(f,Q0)||{value:f[Q0]},_0.get)if(_0.set)E0=A.stylize("[Getter/Setter]","special");else E0=A.stylize("[Getter]","special");else if(_0.set)E0=A.stylize("[Setter]","special");if(!w(l,Q0))P0="["+Q0+"]";if(!E0)if(A.seen.indexOf(_0.value)<0){if(n(c))E0=F(A,_0.value,null);else E0=F(A,_0.value,c-1);if(E0.indexOf(`
246
+ `,"\t"],Lt=["{","}","|","\\","^","`"].concat(Ot),WP=["'"].concat(Lt),nk=["%","/","?",";","#"].concat(WP),pk=["/","?","#"],lk=/^[+a-z0-9A-Z_-]{0,63}$/,Dt=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Kt={javascript:!0,"javascript:":!0},DP={javascript:!0,"javascript:":!0},sZ={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},KP={parse($){var _=decodeURIComponent;return($+"").replace(/\+/g," ").split("&").filter(Boolean).reduce(function(I,J,j){var G=J.split("="),X=_(G[0]||""),W=_(G[1]||""),T=I[X];return I[X]=T===void 0?W:[].concat(T,W),I},{})},stringify($){var _=encodeURIComponent;return Object.keys($||{}).reduce(function(I,J){return[].concat($[J]).forEach(function(j){I.push(_(J)+"="+_(j))}),I},[]).join("&").replace(/\s/g,"+")}};E4.prototype.parse=function($,_,I){if(!FP($))throw TypeError("Parameter 'url' must be a string, not "+typeof $);var J=$.indexOf("?"),j=J!==-1&&J<$.indexOf("#")?"?":"#",G=$.split(j),X=/\\/g;G[0]=G[0].replace(X,"/"),$=G.join(j);var W=$;if(W=W.trim(),!I&&$.split("#").length===1){var T=Zt.exec(W);if(T){if(this.path=W,this.href=W,this.pathname=T[1],T[2])if(this.search=T[2],_)this.query=KP.parse(this.search.substr(1));else this.query=this.search.substr(1);else if(_)this.search="",this.query={};return this}}var F=Qt.exec(W);if(F){F=F[0];var E=F.toLowerCase();this.protocol=E,W=W.substr(F.length)}if(I||F||W.match(/^\/\/[^@\/]+@[^@\/]+/)){var D=W.substr(0,2)==="//";if(D&&!(F&&DP[F]))W=W.substr(2),this.slashes=!0}if(!DP[F]&&(D||F&&!sZ[F])){var q=-1;for(var S=0;S<pk.length;S++){var k=W.indexOf(pk[S]);if(k!==-1&&(q===-1||k<q))q=k}var y,m;if(q===-1)m=W.lastIndexOf("@");else m=W.lastIndexOf("@",q);if(m!==-1)y=W.slice(0,m),W=W.slice(m+1),this.auth=decodeURIComponent(y);q=-1;for(var S=0;S<nk.length;S++){var k=W.indexOf(nk[S]);if(k!==-1&&(q===-1||k<q))q=k}if(q===-1)q=W.length;this.host=W.slice(0,q),W=W.slice(q),this.parseHost(),this.hostname=this.hostname||"";var n=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!n){var h=this.hostname.split(/\./);for(var S=0,p=h.length;S<p;S++){var s=h[S];if(!s)continue;if(!s.match(lk)){var j0="";for(var I0=0,H0=s.length;I0<H0;I0++)if(s.charCodeAt(I0)>127)j0+="x";else j0+=s[I0];if(!j0.match(lk)){var L0=h.slice(0,S),R0=h.slice(S+1),U0=s.match(Dt);if(U0)L0.push(U0[1]),R0.unshift(U0[2]);if(R0.length)W="/"+R0.join(".")+W;this.hostname=L0.join(".");break}}}}if(this.hostname.length>Wt)this.hostname="";else this.hostname=this.hostname.toLowerCase();if(!n)this.hostname=new HP(`https://${this.hostname}`).hostname;var c0=this.port?":"+this.port:"",Y=this.hostname||"";if(this.host=Y+c0,this.href+=this.host,n){if(this.hostname=this.hostname.substr(1,this.hostname.length-2),W[0]!=="/")W="/"+W}}if(!Kt[E])for(var S=0,p=WP.length;S<p;S++){var O=WP[S];if(W.indexOf(O)===-1)continue;var H=encodeURIComponent(O);if(H===O)H=escape(O);W=W.split(O).join(H)}var Z=W.indexOf("#");if(Z!==-1)this.hash=W.substr(Z),W=W.slice(0,Z);var K=W.indexOf("?");if(K!==-1){if(this.search=W.substr(K),this.query=W.substr(K+1),_)this.query=KP.parse(this.query);W=W.slice(0,K)}else if(_)this.search="",this.query={};if(W)this.pathname=W;if(sZ[E]&&this.hostname&&!this.pathname)this.pathname="/";if(this.pathname||this.search){var c0=this.pathname||"",w=this.search||"";this.path=c0+w}return this.href=this.format(),this};E4.prototype.format=function(){var $=this.auth||"";if($)$=encodeURIComponent($),$=$.replace(/%3A/i,":"),$+="@";var _=this.protocol||"",I=this.pathname||"",J=this.hash||"",j=!1,G="";if(this.host)j=$+this.host;else if(this.hostname){if(j=$+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port)j+=":"+this.port}if(this.query&&dk(this.query)&&Object.keys(this.query).length)G=KP.stringify(this.query);var X=this.search||G&&"?"+G||"";if(_&&_.substr(-1)!==":")_+=":";if(this.slashes||(!_||sZ[_])&&j!==!1){if(j="//"+(j||""),I&&I.charAt(0)!=="/")I="/"+I}else if(!j)j="";if(J&&J.charAt(0)!=="#")J="#"+J;if(X&&X.charAt(0)!=="?")X="?"+X;return I=I.replace(/[?#]/g,function(W){return encodeURIComponent(W)}),X=X.replace("#","%23"),_+j+I+X+J};E4.prototype.resolve=function($){return this.resolveObject(eZ($,!1,!0)).format()};E4.prototype.resolveObject=function($){if(FP($)){var _=new E4;_.parse($,!1,!0),$=_}var I=new E4,J=Object.keys(this);for(var j=0;j<J.length;j++){var G=J[j];I[G]=this[G]}if(I.hash=$.hash,$.href==="")return I.href=I.format(),I;if($.slashes&&!$.protocol){var X=Object.keys($);for(var W=0;W<X.length;W++){var T=X[W];if(T!=="protocol")I[T]=$[T]}if(sZ[I.protocol]&&I.hostname&&!I.pathname)I.path=I.pathname="/";return I.href=I.format(),I}if($.protocol&&$.protocol!==I.protocol){if(!sZ[$.protocol]){var F=Object.keys($);for(var E=0;E<F.length;E++){var D=F[E];I[D]=$[D]}return I.href=I.format(),I}if(I.protocol=$.protocol,!$.host&&!DP[$.protocol]){var p=($.pathname||"").split("/");while(p.length&&!($.host=p.shift()));if(!$.host)$.host="";if(!$.hostname)$.hostname="";if(p[0]!=="")p.unshift("");if(p.length<2)p.unshift("");I.pathname=p.join("/")}else I.pathname=$.pathname;if(I.search=$.search,I.query=$.query,I.host=$.host||"",I.auth=$.auth,I.hostname=$.hostname||$.host,I.port=$.port,I.pathname||I.search){var q=I.pathname||"",S=I.search||"";I.path=q+S}return I.slashes=I.slashes||$.slashes,I.href=I.format(),I}var k=I.pathname&&I.pathname.charAt(0)==="/",y=$.host||$.pathname&&$.pathname.charAt(0)==="/",m=y||k||I.host&&$.pathname,n=m,h=I.pathname&&I.pathname.split("/")||[],p=$.pathname&&$.pathname.split("/")||[],s=I.protocol&&!sZ[I.protocol];if(s){if(I.hostname="",I.port=null,I.host)if(h[0]==="")h[0]=I.host;else h.unshift(I.host);if(I.host="",$.protocol){if($.hostname=null,$.port=null,$.host)if(p[0]==="")p[0]=$.host;else p.unshift($.host);$.host=null}m=m&&(p[0]===""||h[0]==="")}if(y)I.host=$.host||$.host===""?$.host:I.host,I.hostname=$.hostname||$.hostname===""?$.hostname:I.hostname,I.search=$.search,I.query=$.query,h=p;else if(p.length){if(!h)h=[];h.pop(),h=h.concat(p),I.search=$.search,I.query=$.query}else if(!Jt($.search)){if(s){I.hostname=I.host=h.shift();var j0=I.host&&I.host.indexOf("@")>0?I.host.split("@"):!1;if(j0)I.auth=j0.shift(),I.host=I.hostname=j0.shift()}if(I.search=$.search,I.query=$.query,!CK(I.pathname)||!CK(I.search))I.path=(I.pathname?I.pathname:"")+(I.search?I.search:"");return I.href=I.format(),I}if(!h.length){if(I.pathname=null,I.search)I.path="/"+I.search;else I.path=null;return I.href=I.format(),I}var I0=h.slice(-1)[0],H0=(I.host||$.host||h.length>1)&&(I0==="."||I0==="..")||I0==="",L0=0;for(var R0=h.length;R0>=0;R0--)if(I0=h[R0],I0===".")h.splice(R0,1);else if(I0==="..")h.splice(R0,1),L0++;else if(L0)h.splice(R0,1),L0--;if(!m&&!n)for(;L0--;L0)h.unshift("..");if(m&&h[0]!==""&&(!h[0]||h[0].charAt(0)!=="/"))h.unshift("");if(H0&&h.join("/").substr(-1)!=="/")h.push("");var U0=h[0]===""||h[0]&&h[0].charAt(0)==="/";if(s){I.hostname=I.host=U0?"":h.length?h.shift():"";var j0=I.host&&I.host.indexOf("@")>0?I.host.split("@"):!1;if(j0)I.auth=j0.shift(),I.host=I.hostname=j0.shift()}if(m=m||I.host&&h.length,m&&!U0)h.unshift("");if(!h.length)I.pathname=null,I.path=null;else I.pathname=h.join("/");if(!CK(I.pathname)||!CK(I.search))I.path=(I.pathname?I.pathname:"")+(I.search?I.search:"");return I.auth=$.auth||I.auth,I.slashes=I.slashes||$.slashes,I.href=I.format(),I};E4.prototype.parseHost=function(){var $=this.host,_=zt.exec($);if(_){if(_=_[0],_!==":")this.port=_.substr(1);$=$.substr(0,$.length-_.length)}if($)this.hostname=$};Ht={parse:eZ,resolve:tk,resolveObject:ok,format:rk,Url:E4,URL:HP,URLSearchParams:ik}});var wK={};_j(wK,{request:()=>xt,globalAgent:()=>mt,get:()=>ft,default:()=>Yc,STATUS_CODES:()=>ut,METHODS:()=>nt,IncomingMessage:()=>bt,ClientRequest:()=>yt,Agent:()=>ht});var Ft,At,ak,Mt,Et,Vt=($,_,I)=>{I=$!=null?Ft(At($)):{};let J=_||!$||!$.__esModule?ak(I,"default",{value:$,enumerable:!0}):I;for(let j of Mt($))if(!Et.call(J,j))ak(J,j,{get:()=>$[j],enumerable:!0});return J},pv=($,_)=>()=>(_||$((_={exports:{}}).exports,_),_.exports),ek,Tt,p8,Rt,$c,l8,vc,Pt,_c,$O,qt,sk,EP,gt,Ct,jc,Uc,wt,Nt,Ic,Xc,Bt,St,kt,ct,Gc,xt,ft,yt,bt,ht,mt,ut,nt,Yc;var SL=GX(()=>{Ft=Object.create,{getPrototypeOf:At,defineProperty:ak,getOwnPropertyNames:Mt}=Object,Et=Object.prototype.hasOwnProperty,ek=pv(($)=>{$.fetch=j(globalThis.fetch)&&j(globalThis.ReadableStream),$.writableStream=j(globalThis.WritableStream),$.abortController=j(globalThis.AbortController);var _;function I(){if(_!==void 0)return _;if(globalThis.XMLHttpRequest){_=new globalThis.XMLHttpRequest;try{_.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch(G){_=null}}else _=null;return _}function J(G){var X=I();if(!X)return!1;try{return X.responseType=G,X.responseType===G}catch(W){}return!1}$.arraybuffer=$.fetch||J("arraybuffer"),$.msstream=!$.fetch&&J("ms-stream"),$.mozchunkedarraybuffer=!$.fetch&&J("moz-chunked-arraybuffer"),$.overrideMimeType=$.fetch||(I()?j(I().overrideMimeType):!1);function j(G){return typeof G==="function"}_=null}),Tt=pv(($,_)=>{if(typeof Object.create==="function")_.exports=function(I,J){if(J)I.super_=J,I.prototype=Object.create(J.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}})};else _.exports=function(I,J){if(J){I.super_=J;var j=function(){};j.prototype=J.prototype,I.prototype=new j,I.prototype.constructor=I}}}),p8=pv(($,_)=>{try{if(I=(lJ(),X1(pJ)),typeof I.inherits!=="function")throw"";_.exports=I.inherits}catch(J){_.exports=Tt()}var I}),Rt=pv(($,_)=>{function I(m,n){var h=Object.keys(m);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(m);n&&(p=p.filter(function(s){return Object.getOwnPropertyDescriptor(m,s).enumerable})),h.push.apply(h,p)}return h}function J(m){for(var n=1;n<arguments.length;n++){var h=arguments[n]!=null?arguments[n]:{};n%2?I(Object(h),!0).forEach(function(p){j(m,p,h[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(h)):I(Object(h)).forEach(function(p){Object.defineProperty(m,p,Object.getOwnPropertyDescriptor(h,p))})}return m}function j(m,n,h){if(n=T(n),n in m)Object.defineProperty(m,n,{value:h,enumerable:!0,configurable:!0,writable:!0});else m[n]=h;return m}function G(m,n){if(!(m instanceof n))throw TypeError("Cannot call a class as a function")}function X(m,n){for(var h=0;h<n.length;h++){var p=n[h];if(p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p)p.writable=!0;Object.defineProperty(m,T(p.key),p)}}function W(m,n,h){if(n)X(m.prototype,n);if(h)X(m,h);return Object.defineProperty(m,"prototype",{writable:!1}),m}function T(m){var n=F(m,"string");return typeof n==="symbol"?n:String(n)}function F(m,n){if(typeof m!=="object"||m===null)return m;var h=m[Symbol.toPrimitive];if(h!==void 0){var p=h.call(m,n||"default");if(typeof p!=="object")return p;throw TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(m)}var E=(j_(),X1(__)),D=E.Buffer,q=(lJ(),X1(pJ)),S=q.inspect,k=S&&S.custom||"inspect";function y(m,n,h){D.prototype.copy.call(m,n,h)}_.exports=function(){function m(){G(this,m),this.head=null,this.tail=null,this.length=0}return W(m,[{key:"push",value:function(n){var h={data:n,next:null};if(this.length>0)this.tail.next=h;else this.head=h;this.tail=h,++this.length}},{key:"unshift",value:function(n){var h={data:n,next:this.head};if(this.length===0)this.tail=h;this.head=h,++this.length}},{key:"shift",value:function(){if(this.length===0)return;var n=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;return--this.length,n}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(n){if(this.length===0)return"";var h=this.head,p=""+h.data;while(h=h.next)p+=n+h.data;return p}},{key:"concat",value:function(n){if(this.length===0)return D.alloc(0);var h=D.allocUnsafe(n>>>0),p=this.head,s=0;while(p)y(p.data,h,s),s+=p.data.length,p=p.next;return h}},{key:"consume",value:function(n,h){var p;if(n<this.head.data.length)p=this.head.data.slice(0,n),this.head.data=this.head.data.slice(n);else if(n===this.head.data.length)p=this.shift();else p=h?this._getString(n):this._getBuffer(n);return p}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(n){var h=this.head,p=1,s=h.data;n-=s.length;while(h=h.next){var j0=h.data,I0=n>j0.length?j0.length:n;if(I0===j0.length)s+=j0;else s+=j0.slice(0,n);if(n-=I0,n===0){if(I0===j0.length)if(++p,h.next)this.head=h.next;else this.head=this.tail=null;else this.head=h,h.data=j0.slice(I0);break}++p}return this.length-=p,s}},{key:"_getBuffer",value:function(n){var h=D.allocUnsafe(n),p=this.head,s=1;p.data.copy(h),n-=p.data.length;while(p=p.next){var j0=p.data,I0=n>j0.length?j0.length:n;if(j0.copy(h,h.length-n,0,I0),n-=I0,n===0){if(I0===j0.length)if(++s,p.next)this.head=p.next;else this.head=this.tail=null;else this.head=p,p.data=j0.slice(I0);break}++s}return this.length-=s,h}},{key:k,value:function(n,h){return S(this,J(J({},h),{},{depth:0,customInspect:!1}))}}]),m}()}),$c=pv(($,_)=>{function I(T,F){var E=this,D=this._readableState&&this._readableState.destroyed,q=this._writableState&&this._writableState.destroyed;if(D||q){if(F)F(T);else if(T){if(!this._writableState)process.nextTick(X,this,T);else if(!this._writableState.errorEmitted)this._writableState.errorEmitted=!0,process.nextTick(X,this,T)}return this}if(this._readableState)this._readableState.destroyed=!0;if(this._writableState)this._writableState.destroyed=!0;return this._destroy(T||null,function(S){if(!F&&S)if(!E._writableState)process.nextTick(J,E,S);else if(!E._writableState.errorEmitted)E._writableState.errorEmitted=!0,process.nextTick(J,E,S);else process.nextTick(j,E);else if(F)process.nextTick(j,E),F(S);else process.nextTick(j,E)}),this}function J(T,F){X(T,F),j(T)}function j(T){if(T._writableState&&!T._writableState.emitClose)return;if(T._readableState&&!T._readableState.emitClose)return;T.emit("close")}function G(){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 X(T,F){T.emit("error",F)}function W(T,F){var{_readableState:E,_writableState:D}=T;if(E&&E.autoDestroy||D&&D.autoDestroy)T.destroy(F);else T.emit("error",F)}_.exports={destroy:I,undestroy:G,errorOrDestroy:W}}),l8=pv(($,_)=>{var I={};function J(T,F,E){if(!E)E=Error;function D(S,k,y){if(typeof F==="string")return F;else return F(S,k,y)}class q extends E{constructor(S,k,y){super(D(S,k,y))}}q.prototype.name=E.name,q.prototype.code=T,I[T]=q}function j(T,F){if(Array.isArray(T)){let E=T.length;if(T=T.map((D)=>String(D)),E>2)return`one of ${F} ${T.slice(0,E-1).join(", ")}, or `+T[E-1];else if(E===2)return`one of ${F} ${T[0]} or ${T[1]}`;else return`of ${F} ${T[0]}`}else return`of ${F} ${String(T)}`}function G(T,F,E){return T.substr(!E||E<0?0:+E,F.length)===F}function X(T,F,E){if(E===void 0||E>T.length)E=T.length;return T.substring(E-F.length,E)===F}function W(T,F,E){if(typeof E!=="number")E=0;if(E+F.length>T.length)return!1;else return T.indexOf(F,E)!==-1}J("ERR_INVALID_OPT_VALUE",function(T,F){return'The value "'+F+'" is invalid for option "'+T+'"'},TypeError),J("ERR_INVALID_ARG_TYPE",function(T,F,E){let D;if(typeof F==="string"&&G(F,"not "))D="must not be",F=F.replace(/^not /,"");else D="must be";let q;if(X(T," argument"))q=`The ${T} ${D} ${j(F,"type")}`;else{let S=W(T,".")?"property":"argument";q=`The "${T}" ${S} ${D} ${j(F,"type")}`}return q+=`. Received type ${typeof E}`,q},TypeError),J("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),J("ERR_METHOD_NOT_IMPLEMENTED",function(T){return"The "+T+" method is not implemented"}),J("ERR_STREAM_PREMATURE_CLOSE","Premature close"),J("ERR_STREAM_DESTROYED",function(T){return"Cannot call "+T+" after a stream was destroyed"}),J("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),J("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),J("ERR_STREAM_WRITE_AFTER_END","write after end"),J("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),J("ERR_UNKNOWN_ENCODING",function(T){return"Unknown encoding: "+T},TypeError),J("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),$.codes=I}),vc=pv(($,_)=>{var I=l8().codes.ERR_INVALID_OPT_VALUE;function J(G,X,W){return G.highWaterMark!=null?G.highWaterMark:X?G[W]:null}function j(G,X,W,T){var F=J(X,T,W);if(F!=null){if(!(isFinite(F)&&Math.floor(F)===F)||F<0){var E=T?W:"highWaterMark";throw new I(E,F)}return Math.floor(F)}return G.objectMode?16:16384}_.exports={getHighWaterMark:j}}),Pt=pv(($,_)=>{_.exports=(lJ(),X1(pJ)).deprecate}),_c=pv(($,_)=>{_.exports=U0;function I(E0){var _0=this;this.next=null,this.entry=null,this.finish=function(){P0(_0,E0)}}var J;U0.WritableState=L0;var j={deprecate:Pt()},G=E8(),X=(j_(),X1(__)).Buffer,W=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function T(E0){return X.from(E0)}function F(E0){return X.isBuffer(E0)||E0 instanceof W}var E=$c(),D=vc(),q=D.getHighWaterMark,S=l8().codes,k=S.ERR_INVALID_ARG_TYPE,y=S.ERR_METHOD_NOT_IMPLEMENTED,m=S.ERR_MULTIPLE_CALLBACK,n=S.ERR_STREAM_CANNOT_PIPE,h=S.ERR_STREAM_DESTROYED,p=S.ERR_STREAM_NULL_VALUES,s=S.ERR_STREAM_WRITE_AFTER_END,j0=S.ERR_UNKNOWN_ENCODING,I0=E.errorOrDestroy;p8()(U0,G);function H0(){}function L0(E0,_0,$0){if(J=J||$O(),E0=E0||{},typeof $0!=="boolean")$0=_0 instanceof J;if(this.objectMode=!!E0.objectMode,$0)this.objectMode=this.objectMode||!!E0.writableObjectMode;this.highWaterMark=q(this,E0,"writableHighWaterMark",$0),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var G0=E0.decodeStrings===!1;this.decodeStrings=!G0,this.defaultEncoding=E0.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(K0){B(_0,K0)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=E0.emitClose!==!1,this.autoDestroy=!!E0.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new I(this)}L0.prototype.getBuffer=function(){var E0=this.bufferedRequest,_0=[];while(E0)_0.push(E0),E0=E0.next;return _0},function(){try{Object.defineProperty(L0.prototype,"buffer",{get:j.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(E0){}}();var R0;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function")R0=Function.prototype[Symbol.hasInstance],Object.defineProperty(U0,Symbol.hasInstance,{value:function(E0){if(R0.call(this,E0))return!0;if(this!==U0)return!1;return E0&&E0._writableState instanceof L0}});else R0=function(E0){return E0 instanceof this};function U0(E0){J=J||$O();var _0=this instanceof J;if(!_0&&!R0.call(U0,this))return new U0(E0);if(this._writableState=new L0(E0,this,_0),this.writable=!0,E0){if(typeof E0.write==="function")this._write=E0.write;if(typeof E0.writev==="function")this._writev=E0.writev;if(typeof E0.destroy==="function")this._destroy=E0.destroy;if(typeof E0.final==="function")this._final=E0.final}G.call(this)}U0.prototype.pipe=function(){I0(this,new n)};function c0(E0,_0){var $0=new s;I0(E0,$0),process.nextTick(_0,$0)}function Y(E0,_0,$0,G0){var K0;if($0===null)K0=new p;else if(typeof $0!=="string"&&!_0.objectMode)K0=new k("chunk",["string","Buffer"],$0);if(K0)return I0(E0,K0),process.nextTick(G0,K0),!1;return!0}U0.prototype.write=function(E0,_0,$0){var G0=this._writableState,K0=!1,q0=!G0.objectMode&&F(E0);if(q0&&!X.isBuffer(E0))E0=T(E0);if(typeof _0==="function")$0=_0,_0=null;if(q0)_0="buffer";else if(!_0)_0=G0.defaultEncoding;if(typeof $0!=="function")$0=H0;if(G0.ending)c0(this,$0);else if(q0||Y(this,G0,E0,$0))G0.pendingcb++,K0=H(this,G0,q0,E0,_0,$0);return K0},U0.prototype.cork=function(){this._writableState.corked++},U0.prototype.uncork=function(){var E0=this._writableState;if(E0.corked){if(E0.corked--,!E0.writing&&!E0.corked&&!E0.bufferProcessing&&E0.bufferedRequest)A(this,E0)}},U0.prototype.setDefaultEncoding=function(E0){if(typeof E0==="string")E0=E0.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((E0+"").toLowerCase())>-1))throw new j0(E0);return this._writableState.defaultEncoding=E0,this},Object.defineProperty(U0.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function O(E0,_0,$0){if(!E0.objectMode&&E0.decodeStrings!==!1&&typeof _0==="string")_0=X.from(_0,$0);return _0}Object.defineProperty(U0.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function H(E0,_0,$0,G0,K0,q0){if(!$0){var z0=O(_0,G0,K0);if(G0!==z0)$0=!0,K0="buffer",G0=z0}var a=_0.objectMode?1:G0.length;_0.length+=a;var J0=_0.length<_0.highWaterMark;if(!J0)_0.needDrain=!0;if(_0.writing||_0.corked){var y0=_0.lastBufferedRequest;if(_0.lastBufferedRequest={chunk:G0,encoding:K0,isBuf:$0,callback:q0,next:null},y0)y0.next=_0.lastBufferedRequest;else _0.bufferedRequest=_0.lastBufferedRequest;_0.bufferedRequestCount+=1}else Z(E0,_0,!1,a,G0,K0,q0);return J0}function Z(E0,_0,$0,G0,K0,q0,z0){if(_0.writelen=G0,_0.writecb=z0,_0.writing=!0,_0.sync=!0,_0.destroyed)_0.onwrite(new h("write"));else if($0)E0._writev(K0,_0.onwrite);else E0._write(K0,q0,_0.onwrite);_0.sync=!1}function K(E0,_0,$0,G0,K0){if(--_0.pendingcb,$0)process.nextTick(K0,G0),process.nextTick(Q0,E0,_0),E0._writableState.errorEmitted=!0,I0(E0,G0);else K0(G0),E0._writableState.errorEmitted=!0,I0(E0,G0),Q0(E0,_0)}function w(E0){E0.writing=!1,E0.writecb=null,E0.length-=E0.writelen,E0.writelen=0}function B(E0,_0){var $0=E0._writableState,G0=$0.sync,K0=$0.writecb;if(typeof K0!=="function")throw new m;if(w($0),_0)K(E0,$0,G0,_0,K0);else{var q0=f($0)||E0.destroyed;if(!q0&&!$0.corked&&!$0.bufferProcessing&&$0.bufferedRequest)A(E0,$0);if(G0)process.nextTick(P,E0,$0,q0,K0);else P(E0,$0,q0,K0)}}function P(E0,_0,$0,G0){if(!$0)z(E0,_0);_0.pendingcb--,G0(),Q0(E0,_0)}function z(E0,_0){if(_0.length===0&&_0.needDrain)_0.needDrain=!1,E0.emit("drain")}function A(E0,_0){_0.bufferProcessing=!0;var $0=_0.bufferedRequest;if(E0._writev&&$0&&$0.next){var G0=_0.bufferedRequestCount,K0=Array(G0),q0=_0.corkedRequestsFree;q0.entry=$0;var z0=0,a=!0;while($0){if(K0[z0]=$0,!$0.isBuf)a=!1;$0=$0.next,z0+=1}if(K0.allBuffers=a,Z(E0,_0,!0,_0.length,K0,"",q0.finish),_0.pendingcb++,_0.lastBufferedRequest=null,q0.next)_0.corkedRequestsFree=q0.next,q0.next=null;else _0.corkedRequestsFree=new I(_0);_0.bufferedRequestCount=0}else{while($0){var{chunk:J0,encoding:y0,callback:N0}=$0,A0=_0.objectMode?1:J0.length;if(Z(E0,_0,!1,A0,J0,y0,N0),$0=$0.next,_0.bufferedRequestCount--,_0.writing)break}if($0===null)_0.lastBufferedRequest=null}_0.bufferedRequest=$0,_0.bufferProcessing=!1}U0.prototype._write=function(E0,_0,$0){$0(new y("_write()"))},U0.prototype._writev=null,U0.prototype.end=function(E0,_0,$0){var G0=this._writableState;if(typeof E0==="function")$0=E0,E0=null,_0=null;else if(typeof _0==="function")$0=_0,_0=null;if(E0!==null&&E0!==void 0)this.write(E0,_0);if(G0.corked)G0.corked=1,this.uncork();if(!G0.ending)F0(this,G0,$0);return this},Object.defineProperty(U0.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function f(E0){return E0.ending&&E0.length===0&&E0.bufferedRequest===null&&!E0.finished&&!E0.writing}function c(E0,_0){E0._final(function($0){if(_0.pendingcb--,$0)I0(E0,$0);_0.prefinished=!0,E0.emit("prefinish"),Q0(E0,_0)})}function l(E0,_0){if(!_0.prefinished&&!_0.finalCalled)if(typeof E0._final==="function"&&!_0.destroyed)_0.pendingcb++,_0.finalCalled=!0,process.nextTick(c,E0,_0);else _0.prefinished=!0,E0.emit("prefinish")}function Q0(E0,_0){var $0=f(_0);if($0){if(l(E0,_0),_0.pendingcb===0){if(_0.finished=!0,E0.emit("finish"),_0.autoDestroy){var G0=E0._readableState;if(!G0||G0.autoDestroy&&G0.endEmitted)E0.destroy()}}}return $0}function F0(E0,_0,$0){if(_0.ending=!0,Q0(E0,_0),$0)if(_0.finished)process.nextTick($0);else E0.once("finish",$0);_0.ended=!0,E0.writable=!1}function P0(E0,_0,$0){var G0=E0.entry;E0.entry=null;while(G0){var K0=G0.callback;_0.pendingcb--,K0($0),G0=G0.next}_0.corkedRequestsFree.next=E0}Object.defineProperty(U0.prototype,"destroyed",{enumerable:!1,get:function(){if(this._writableState===void 0)return!1;return this._writableState.destroyed},set:function(E0){if(!this._writableState)return;this._writableState.destroyed=E0}}),U0.prototype.destroy=E.destroy,U0.prototype._undestroy=E.undestroy,U0.prototype._destroy=function(E0,_0){_0(E0)}}),$O=pv(($,_)=>{var I=Object.keys||function(D){var q=[];for(var S in D)q.push(S);return q};_.exports=T;var J=jc(),j=_c();p8()(T,J);{G=I(j.prototype);for(W=0;W<G.length;W++)if(X=G[W],!T.prototype[X])T.prototype[X]=j.prototype[X]}var G,X,W;function T(D){if(!(this instanceof T))return new T(D);if(J.call(this,D),j.call(this,D),this.allowHalfOpen=!0,D){if(D.readable===!1)this.readable=!1;if(D.writable===!1)this.writable=!1;if(D.allowHalfOpen===!1)this.allowHalfOpen=!1,this.once("end",F)}}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function F(){if(this._writableState.ended)return;process.nextTick(E,this)}function E(D){D.end()}Object.defineProperty(T.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(D){if(this._readableState===void 0||this._writableState===void 0)return;this._readableState.destroyed=D,this._writableState.destroyed=D}})}),qt=pv(($,_)=>{/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var I=(j_(),X1(__)),J=I.Buffer;function j(X,W){for(var T in X)W[T]=X[T]}if(J.from&&J.alloc&&J.allocUnsafe&&J.allocUnsafeSlow)_.exports=I;else j(I,$),$.Buffer=G;function G(X,W,T){return J(X,W,T)}G.prototype=Object.create(J.prototype),j(J,G),G.from=function(X,W,T){if(typeof X==="number")throw TypeError("Argument must not be a number");return J(X,W,T)},G.alloc=function(X,W,T){if(typeof X!=="number")throw TypeError("Argument must be a number");var F=J(X);if(W!==void 0)if(typeof T==="string")F.fill(W,T);else F.fill(W);else F.fill(0);return F},G.allocUnsafe=function(X){if(typeof X!=="number")throw TypeError("Argument must be a number");return J(X)},G.allocUnsafeSlow=function(X){if(typeof X!=="number")throw TypeError("Argument must be a number");return I.SlowBuffer(X)}}),sk=pv(($)=>{var _=qt().Buffer,I=_.isEncoding||function(h){switch(h=""+h,h&&h.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 J(h){if(!h)return"utf8";var p;while(!0)switch(h){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 h;default:if(p)return;h=(""+h).toLowerCase(),p=!0}}function j(h){var p=J(h);if(typeof p!=="string"&&(_.isEncoding===I||!I(h)))throw Error("Unknown encoding: "+h);return p||h}$.StringDecoder=G;function G(h){this.encoding=j(h);var p;switch(this.encoding){case"utf16le":this.text=q,this.end=S,p=4;break;case"utf8":this.fillLast=F,p=4;break;case"base64":this.text=k,this.end=y,p=3;break;default:this.write=m,this.end=n;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=_.allocUnsafe(p)}G.prototype.write=function(h){if(h.length===0)return"";var p,s;if(this.lastNeed){if(p=this.fillLast(h),p===void 0)return"";s=this.lastNeed,this.lastNeed=0}else s=0;if(s<h.length)return p?p+this.text(h,s):this.text(h,s);return p||""},G.prototype.end=D,G.prototype.text=E,G.prototype.fillLast=function(h){if(this.lastNeed<=h.length)return h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,this.lastTotal-this.lastNeed,0,h.length),this.lastNeed-=h.length};function X(h){if(h<=127)return 0;else if(h>>5===6)return 2;else if(h>>4===14)return 3;else if(h>>3===30)return 4;return h>>6===2?-1:-2}function W(h,p,s){var j0=p.length-1;if(j0<s)return 0;var I0=X(p[j0]);if(I0>=0){if(I0>0)h.lastNeed=I0-1;return I0}if(--j0<s||I0===-2)return 0;if(I0=X(p[j0]),I0>=0){if(I0>0)h.lastNeed=I0-2;return I0}if(--j0<s||I0===-2)return 0;if(I0=X(p[j0]),I0>=0){if(I0>0)if(I0===2)I0=0;else h.lastNeed=I0-3;return I0}return 0}function T(h,p,s){if((p[0]&192)!==128)return h.lastNeed=0,"�";if(h.lastNeed>1&&p.length>1){if((p[1]&192)!==128)return h.lastNeed=1,"�";if(h.lastNeed>2&&p.length>2){if((p[2]&192)!==128)return h.lastNeed=2,"�"}}}function F(h){var p=this.lastTotal-this.lastNeed,s=T(this,h,p);if(s!==void 0)return s;if(this.lastNeed<=h.length)return h.copy(this.lastChar,p,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,p,0,h.length),this.lastNeed-=h.length}function E(h,p){var s=W(this,h,p);if(!this.lastNeed)return h.toString("utf8",p);this.lastTotal=s;var j0=h.length-(s-this.lastNeed);return h.copy(this.lastChar,0,j0),h.toString("utf8",p,j0)}function D(h){var p=h&&h.length?this.write(h):"";if(this.lastNeed)return p+"�";return p}function q(h,p){if((h.length-p)%2===0){var s=h.toString("utf16le",p);if(s){var j0=s.charCodeAt(s.length-1);if(j0>=55296&&j0<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1],s.slice(0,-1)}return s}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",p,h.length-1)}function S(h){var p=h&&h.length?this.write(h):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return p+this.lastChar.toString("utf16le",0,s)}return p}function k(h,p){var s=(h.length-p)%3;if(s===0)return h.toString("base64",p);if(this.lastNeed=3-s,this.lastTotal=3,s===1)this.lastChar[0]=h[h.length-1];else this.lastChar[0]=h[h.length-2],this.lastChar[1]=h[h.length-1];return h.toString("base64",p,h.length-s)}function y(h){var p=h&&h.length?this.write(h):"";if(this.lastNeed)return p+this.lastChar.toString("base64",0,3-this.lastNeed);return p}function m(h){return h.toString(this.encoding)}function n(h){return h&&h.length?this.write(h):""}}),EP=pv(($,_)=>{var I=l8().codes.ERR_STREAM_PREMATURE_CLOSE;function J(W){var T=!1;return function(){if(T)return;T=!0;for(var F=arguments.length,E=Array(F),D=0;D<F;D++)E[D]=arguments[D];W.apply(this,E)}}function j(){}function G(W){return W.setHeader&&typeof W.abort==="function"}function X(W,T,F){if(typeof T==="function")return X(W,null,T);if(!T)T={};F=J(F||j);var E=T.readable||T.readable!==!1&&W.readable,D=T.writable||T.writable!==!1&&W.writable,q=function(){if(!W.writable)k()},S=W._writableState&&W._writableState.finished,k=function(){if(D=!1,S=!0,!E)F.call(W)},y=W._readableState&&W._readableState.endEmitted,m=function(){if(E=!1,y=!0,!D)F.call(W)},n=function(s){F.call(W,s)},h=function(){var s;if(E&&!y){if(!W._readableState||!W._readableState.ended)s=new I;return F.call(W,s)}if(D&&!S){if(!W._writableState||!W._writableState.ended)s=new I;return F.call(W,s)}},p=function(){W.req.on("finish",k)};if(G(W))if(W.on("complete",k),W.on("abort",h),W.req)p();else W.on("request",p);else if(D&&!W._writableState)W.on("end",q),W.on("close",q);if(W.on("end",m),W.on("finish",k),T.error!==!1)W.on("error",n);return W.on("close",h),function(){if(W.removeListener("complete",k),W.removeListener("abort",h),W.removeListener("request",p),W.req)W.req.removeListener("finish",k);W.removeListener("end",q),W.removeListener("close",q),W.removeListener("finish",k),W.removeListener("end",m),W.removeListener("error",n),W.removeListener("close",h)}}_.exports=X}),gt=pv(($,_)=>{var I;function J(j0,I0,H0){if(I0=j(I0),I0 in j0)Object.defineProperty(j0,I0,{value:H0,enumerable:!0,configurable:!0,writable:!0});else j0[I0]=H0;return j0}function j(j0){var I0=G(j0,"string");return typeof I0==="symbol"?I0:String(I0)}function G(j0,I0){if(typeof j0!=="object"||j0===null)return j0;var H0=j0[Symbol.toPrimitive];if(H0!==void 0){var L0=H0.call(j0,I0||"default");if(typeof L0!=="object")return L0;throw TypeError("@@toPrimitive must return a primitive value.")}return(I0==="string"?String:Number)(j0)}var X=EP(),W=Symbol("lastResolve"),T=Symbol("lastReject"),F=Symbol("error"),E=Symbol("ended"),D=Symbol("lastPromise"),q=Symbol("handlePromise"),S=Symbol("stream");function k(j0,I0){return{value:j0,done:I0}}function y(j0){var I0=j0[W];if(I0!==null){var H0=j0[S].read();if(H0!==null)j0[D]=null,j0[W]=null,j0[T]=null,I0(k(H0,!1))}}function m(j0){process.nextTick(y,j0)}function n(j0,I0){return function(H0,L0){j0.then(function(){if(I0[E]){H0(k(void 0,!0));return}I0[q](H0,L0)},L0)}}var h=Object.getPrototypeOf(function(){}),p=Object.setPrototypeOf((I={get stream(){return this[S]},next:function(){var j0=this,I0=this[F];if(I0!==null)return Promise.reject(I0);if(this[E])return Promise.resolve(k(void 0,!0));if(this[S].destroyed)return new Promise(function(U0,c0){process.nextTick(function(){if(j0[F])c0(j0[F]);else U0(k(void 0,!0))})});var H0=this[D],L0;if(H0)L0=new Promise(n(H0,this));else{var R0=this[S].read();if(R0!==null)return Promise.resolve(k(R0,!1));L0=new Promise(this[q])}return this[D]=L0,L0}},J(I,Symbol.asyncIterator,function(){return this}),J(I,"return",function(){var j0=this;return new Promise(function(I0,H0){j0[S].destroy(null,function(L0){if(L0){H0(L0);return}I0(k(void 0,!0))})})}),I),h),s=function(j0){var I0,H0=Object.create(p,(I0={},J(I0,S,{value:j0,writable:!0}),J(I0,W,{value:null,writable:!0}),J(I0,T,{value:null,writable:!0}),J(I0,F,{value:null,writable:!0}),J(I0,E,{value:j0._readableState.endEmitted,writable:!0}),J(I0,q,{value:function(L0,R0){var U0=H0[S].read();if(U0)H0[D]=null,H0[W]=null,H0[T]=null,L0(k(U0,!1));else H0[W]=L0,H0[T]=R0},writable:!0}),I0));return H0[D]=null,X(j0,function(L0){if(L0&&L0.code!=="ERR_STREAM_PREMATURE_CLOSE"){var R0=H0[T];if(R0!==null)H0[D]=null,H0[W]=null,H0[T]=null,R0(L0);H0[F]=L0;return}var U0=H0[W];if(U0!==null)H0[D]=null,H0[W]=null,H0[T]=null,U0(k(void 0,!0));H0[E]=!0}),j0.on("readable",m.bind(null,H0)),H0};_.exports=s}),Ct=pv(($,_)=>{function I(D,q,S,k,y,m,n){try{var h=D[m](n),p=h.value}catch(s){S(s);return}if(h.done)q(p);else Promise.resolve(p).then(k,y)}function J(D){return function(){var q=this,S=arguments;return new Promise(function(k,y){var m=D.apply(q,S);function n(p){I(m,k,y,n,h,"next",p)}function h(p){I(m,k,y,n,h,"throw",p)}n(void 0)})}}function j(D,q){var S=Object.keys(D);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(D);q&&(k=k.filter(function(y){return Object.getOwnPropertyDescriptor(D,y).enumerable})),S.push.apply(S,k)}return S}function G(D){for(var q=1;q<arguments.length;q++){var S=arguments[q]!=null?arguments[q]:{};q%2?j(Object(S),!0).forEach(function(k){X(D,k,S[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(S)):j(Object(S)).forEach(function(k){Object.defineProperty(D,k,Object.getOwnPropertyDescriptor(S,k))})}return D}function X(D,q,S){if(q=W(q),q in D)Object.defineProperty(D,q,{value:S,enumerable:!0,configurable:!0,writable:!0});else D[q]=S;return D}function W(D){var q=T(D,"string");return typeof q==="symbol"?q:String(q)}function T(D,q){if(typeof D!=="object"||D===null)return D;var S=D[Symbol.toPrimitive];if(S!==void 0){var k=S.call(D,q||"default");if(typeof k!=="object")return k;throw TypeError("@@toPrimitive must return a primitive value.")}return(q==="string"?String:Number)(D)}var F=l8().codes.ERR_INVALID_ARG_TYPE;function E(D,q,S){var k;if(q&&typeof q.next==="function")k=q;else if(q&&q[Symbol.asyncIterator])k=q[Symbol.asyncIterator]();else if(q&&q[Symbol.iterator])k=q[Symbol.iterator]();else throw new F("iterable",["Iterable"],q);var y=new D(G({objectMode:!0},S)),m=!1;y._read=function(){if(!m)m=!0,n()};function n(){return h.apply(this,arguments)}function h(){return h=J(function*(){try{var p=yield k.next(),s=p.value,j0=p.done;if(j0)y.push(null);else if(y.push(yield s))n();else m=!1}catch(I0){y.destroy(I0)}}),h.apply(this,arguments)}return y}_.exports=E}),jc=pv(($,_)=>{_.exports=Y;var I;Y.ReadableState=c0;var J=(GZ(),X1(XZ)).EventEmitter,j=function(z0,a){return z0.listeners(a).length},G=E8(),X=(j_(),X1(__)).Buffer,W=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function T(z0){return X.from(z0)}function F(z0){return X.isBuffer(z0)||z0 instanceof W}var E=(lJ(),X1(pJ)),D;if(E&&E.debuglog)D=E.debuglog("stream");else D=function(){};var q=Rt(),S=$c(),k=vc(),y=k.getHighWaterMark,m=l8().codes,n=m.ERR_INVALID_ARG_TYPE,h=m.ERR_STREAM_PUSH_AFTER_EOF,p=m.ERR_METHOD_NOT_IMPLEMENTED,s=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,j0,I0,H0;p8()(Y,G);var L0=S.errorOrDestroy,R0=["error","close","destroy","pause","resume"];function U0(z0,a,J0){if(typeof z0.prependListener==="function")return z0.prependListener(a,J0);if(!z0._events||!z0._events[a])z0.on(a,J0);else if(Array.isArray(z0._events[a]))z0._events[a].unshift(J0);else z0._events[a]=[J0,z0._events[a]]}function c0(z0,a,J0){if(I=I||$O(),z0=z0||{},typeof J0!=="boolean")J0=a instanceof I;if(this.objectMode=!!z0.objectMode,J0)this.objectMode=this.objectMode||!!z0.readableObjectMode;if(this.highWaterMark=y(this,z0,"readableHighWaterMark",J0),this.buffer=new q,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=z0.emitClose!==!1,this.autoDestroy=!!z0.autoDestroy,this.destroyed=!1,this.defaultEncoding=z0.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,z0.encoding){if(!j0)j0=sk().StringDecoder;this.decoder=new j0(z0.encoding),this.encoding=z0.encoding}}function Y(z0){if(I=I||$O(),!(this instanceof Y))return new Y(z0);var a=this instanceof I;if(this._readableState=new c0(z0,this,a),this.readable=!0,z0){if(typeof z0.read==="function")this._read=z0.read;if(typeof z0.destroy==="function")this._destroy=z0.destroy}G.call(this)}Object.defineProperty(Y.prototype,"destroyed",{enumerable:!1,get:function(){if(this._readableState===void 0)return!1;return this._readableState.destroyed},set:function(z0){if(!this._readableState)return;this._readableState.destroyed=z0}}),Y.prototype.destroy=S.destroy,Y.prototype._undestroy=S.undestroy,Y.prototype._destroy=function(z0,a){a(z0)},Y.prototype.push=function(z0,a){var J0=this._readableState,y0;if(!J0.objectMode){if(typeof z0==="string"){if(a=a||J0.defaultEncoding,a!==J0.encoding)z0=X.from(z0,a),a="";y0=!0}}else y0=!0;return O(this,z0,a,!1,y0)},Y.prototype.unshift=function(z0){return O(this,z0,null,!0,!1)};function O(z0,a,J0,y0,N0){D("readableAddChunk",a);var A0=z0._readableState;if(a===null)A0.reading=!1,P(z0,A0);else{var $$;if(!N0)$$=Z(A0,a);if($$)L0(z0,$$);else if(A0.objectMode||a&&a.length>0){if(typeof a!=="string"&&!A0.objectMode&&Object.getPrototypeOf(a)!==X.prototype)a=T(a);if(y0)if(A0.endEmitted)L0(z0,new s);else H(z0,A0,a,!0);else if(A0.ended)L0(z0,new h);else if(A0.destroyed)return!1;else if(A0.reading=!1,A0.decoder&&!J0)if(a=A0.decoder.write(a),A0.objectMode||a.length!==0)H(z0,A0,a,!1);else f(z0,A0);else H(z0,A0,a,!1)}else if(!y0)A0.reading=!1,f(z0,A0)}return!A0.ended&&(A0.length<A0.highWaterMark||A0.length===0)}function H(z0,a,J0,y0){if(a.flowing&&a.length===0&&!a.sync)a.awaitDrain=0,z0.emit("data",J0);else{if(a.length+=a.objectMode?1:J0.length,y0)a.buffer.unshift(J0);else a.buffer.push(J0);if(a.needReadable)z(z0)}f(z0,a)}function Z(z0,a){var J0;if(!F(a)&&typeof a!=="string"&&a!==void 0&&!z0.objectMode)J0=new n("chunk",["string","Buffer","Uint8Array"],a);return J0}Y.prototype.isPaused=function(){return this._readableState.flowing===!1},Y.prototype.setEncoding=function(z0){if(!j0)j0=sk().StringDecoder;var a=new j0(z0);this._readableState.decoder=a,this._readableState.encoding=this._readableState.decoder.encoding;var J0=this._readableState.buffer.head,y0="";while(J0!==null)y0+=a.write(J0.data),J0=J0.next;if(this._readableState.buffer.clear(),y0!=="")this._readableState.buffer.push(y0);return this._readableState.length=y0.length,this};var K=1073741824;function w(z0){if(z0>=K)z0=K;else z0--,z0|=z0>>>1,z0|=z0>>>2,z0|=z0>>>4,z0|=z0>>>8,z0|=z0>>>16,z0++;return z0}function B(z0,a){if(z0<=0||a.length===0&&a.ended)return 0;if(a.objectMode)return 1;if(z0!==z0)if(a.flowing&&a.length)return a.buffer.head.data.length;else return a.length;if(z0>a.highWaterMark)a.highWaterMark=w(z0);if(z0<=a.length)return z0;if(!a.ended)return a.needReadable=!0,0;return a.length}Y.prototype.read=function(z0){D("read",z0),z0=parseInt(z0,10);var a=this._readableState,J0=z0;if(z0!==0)a.emittedReadable=!1;if(z0===0&&a.needReadable&&((a.highWaterMark!==0?a.length>=a.highWaterMark:a.length>0)||a.ended)){if(D("read: emitReadable",a.length,a.ended),a.length===0&&a.ended)G0(this);else z(this);return null}if(z0=B(z0,a),z0===0&&a.ended){if(a.length===0)G0(this);return null}var y0=a.needReadable;if(D("need readable",y0),a.length===0||a.length-z0<a.highWaterMark)y0=!0,D("length less than watermark",y0);if(a.ended||a.reading)y0=!1,D("reading or ended",y0);else if(y0){if(D("do read"),a.reading=!0,a.sync=!0,a.length===0)a.needReadable=!0;if(this._read(a.highWaterMark),a.sync=!1,!a.reading)z0=B(J0,a)}var N0;if(z0>0)N0=$0(z0,a);else N0=null;if(N0===null)a.needReadable=a.length<=a.highWaterMark,z0=0;else a.length-=z0,a.awaitDrain=0;if(a.length===0){if(!a.ended)a.needReadable=!0;if(J0!==z0&&a.ended)G0(this)}if(N0!==null)this.emit("data",N0);return N0};function P(z0,a){if(D("onEofChunk"),a.ended)return;if(a.decoder){var J0=a.decoder.end();if(J0&&J0.length)a.buffer.push(J0),a.length+=a.objectMode?1:J0.length}if(a.ended=!0,a.sync)z(z0);else if(a.needReadable=!1,!a.emittedReadable)a.emittedReadable=!0,A(z0)}function z(z0){var a=z0._readableState;if(D("emitReadable",a.needReadable,a.emittedReadable),a.needReadable=!1,!a.emittedReadable)D("emitReadable",a.flowing),a.emittedReadable=!0,process.nextTick(A,z0)}function A(z0){var a=z0._readableState;if(D("emitReadable_",a.destroyed,a.length,a.ended),!a.destroyed&&(a.length||a.ended))z0.emit("readable"),a.emittedReadable=!1;a.needReadable=!a.flowing&&!a.ended&&a.length<=a.highWaterMark,_0(z0)}function f(z0,a){if(!a.readingMore)a.readingMore=!0,process.nextTick(c,z0,a)}function c(z0,a){while(!a.reading&&!a.ended&&(a.length<a.highWaterMark||a.flowing&&a.length===0)){var J0=a.length;if(D("maybeReadMore read 0"),z0.read(0),J0===a.length)break}a.readingMore=!1}Y.prototype._read=function(z0){L0(this,new p("_read()"))},Y.prototype.pipe=function(z0,a){var J0=this,y0=this._readableState;switch(y0.pipesCount){case 0:y0.pipes=z0;break;case 1:y0.pipes=[y0.pipes,z0];break;default:y0.pipes.push(z0);break}y0.pipesCount+=1,D("pipe count=%d opts=%j",y0.pipesCount,a);var N0=(!a||a.end!==!1)&&z0!==process.stdout&&z0!==process.stderr,A0=N0?w0:T$;if(y0.endEmitted)process.nextTick(A0);else J0.once("end",A0);z0.on("unpipe",$$);function $$(U$,G$){if(D("onunpipe"),U$===J0){if(G$&&G$.hasUnpiped===!1)G$.hasUnpiped=!0,l0()}}function w0(){D("onend"),z0.end()}var h0=l(J0);z0.on("drain",h0);var H$=!1;function l0(){if(D("cleanup"),z0.removeListener("close",C0),z0.removeListener("finish",x0),z0.removeListener("drain",h0),z0.removeListener("error",l$),z0.removeListener("unpipe",$$),J0.removeListener("end",w0),J0.removeListener("end",T$),J0.removeListener("data",j$),H$=!0,y0.awaitDrain&&(!z0._writableState||z0._writableState.needDrain))h0()}J0.on("data",j$);function j$(U$){D("ondata");var G$=z0.write(U$);if(D("dest.write",G$),G$===!1){if((y0.pipesCount===1&&y0.pipes===z0||y0.pipesCount>1&&q0(y0.pipes,z0)!==-1)&&!H$)D("false write response, pause",y0.awaitDrain),y0.awaitDrain++;J0.pause()}}function l$(U$){if(D("onerror",U$),T$(),z0.removeListener("error",l$),j(z0,"error")===0)L0(z0,U$)}U0(z0,"error",l$);function C0(){z0.removeListener("finish",x0),T$()}z0.once("close",C0);function x0(){D("onfinish"),z0.removeListener("close",C0),T$()}z0.once("finish",x0);function T$(){D("unpipe"),J0.unpipe(z0)}if(z0.emit("pipe",J0),!y0.flowing)D("pipe resume"),J0.resume();return z0};function l(z0){return function(){var a=z0._readableState;if(D("pipeOnDrain",a.awaitDrain),a.awaitDrain)a.awaitDrain--;if(a.awaitDrain===0&&j(z0,"data"))a.flowing=!0,_0(z0)}}Y.prototype.unpipe=function(z0){var a=this._readableState,J0={hasUnpiped:!1};if(a.pipesCount===0)return this;if(a.pipesCount===1){if(z0&&z0!==a.pipes)return this;if(!z0)z0=a.pipes;if(a.pipes=null,a.pipesCount=0,a.flowing=!1,z0)z0.emit("unpipe",this,J0);return this}if(!z0){var{pipes:y0,pipesCount:N0}=a;a.pipes=null,a.pipesCount=0,a.flowing=!1;for(var A0=0;A0<N0;A0++)y0[A0].emit("unpipe",this,{hasUnpiped:!1});return this}var $$=q0(a.pipes,z0);if($$===-1)return this;if(a.pipes.splice($$,1),a.pipesCount-=1,a.pipesCount===1)a.pipes=a.pipes[0];return z0.emit("unpipe",this,J0),this},Y.prototype.on=function(z0,a){var J0=G.prototype.on.call(this,z0,a),y0=this._readableState;if(z0==="data"){if(y0.readableListening=this.listenerCount("readable")>0,y0.flowing!==!1)this.resume()}else if(z0==="readable"){if(!y0.endEmitted&&!y0.readableListening){if(y0.readableListening=y0.needReadable=!0,y0.flowing=!1,y0.emittedReadable=!1,D("on readable",y0.length,y0.reading),y0.length)z(this);else if(!y0.reading)process.nextTick(F0,this)}}return J0},Y.prototype.addListener=Y.prototype.on,Y.prototype.removeListener=function(z0,a){var J0=G.prototype.removeListener.call(this,z0,a);if(z0==="readable")process.nextTick(Q0,this);return J0},Y.prototype.removeAllListeners=function(z0){var a=G.prototype.removeAllListeners.apply(this,arguments);if(z0==="readable"||z0===void 0)process.nextTick(Q0,this);return a};function Q0(z0){var a=z0._readableState;if(a.readableListening=z0.listenerCount("readable")>0,a.resumeScheduled&&!a.paused)a.flowing=!0;else if(z0.listenerCount("data")>0)z0.resume()}function F0(z0){D("readable nexttick read 0"),z0.read(0)}Y.prototype.resume=function(){var z0=this._readableState;if(!z0.flowing)D("resume"),z0.flowing=!z0.readableListening,P0(this,z0);return z0.paused=!1,this};function P0(z0,a){if(!a.resumeScheduled)a.resumeScheduled=!0,process.nextTick(E0,z0,a)}function E0(z0,a){if(D("resume",a.reading),!a.reading)z0.read(0);if(a.resumeScheduled=!1,z0.emit("resume"),_0(z0),a.flowing&&!a.reading)z0.read(0)}Y.prototype.pause=function(){if(D("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1)D("pause"),this._readableState.flowing=!1,this.emit("pause");return this._readableState.paused=!0,this};function _0(z0){var a=z0._readableState;D("flow",a.flowing);while(a.flowing&&z0.read()!==null);}if(Y.prototype.wrap=function(z0){var a=this,J0=this._readableState,y0=!1;z0.on("end",function(){if(D("wrapped end"),J0.decoder&&!J0.ended){var $$=J0.decoder.end();if($$&&$$.length)a.push($$)}a.push(null)}),z0.on("data",function($$){if(D("wrapped data"),J0.decoder)$$=J0.decoder.write($$);if(J0.objectMode&&($$===null||$$===void 0))return;else if(!J0.objectMode&&(!$$||!$$.length))return;var w0=a.push($$);if(!w0)y0=!0,z0.pause()});for(var N0 in z0)if(this[N0]===void 0&&typeof z0[N0]==="function")this[N0]=function($$){return function(){return z0[$$].apply(z0,arguments)}}(N0);for(var A0=0;A0<R0.length;A0++)z0.on(R0[A0],this.emit.bind(this,R0[A0]));return this._read=function($$){if(D("wrapped _read",$$),y0)y0=!1,z0.resume()},this},typeof Symbol==="function")Y.prototype[Symbol.asyncIterator]=function(){if(I0===void 0)I0=gt();return I0(this)};Object.defineProperty(Y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(Y.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(Y.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(z0){if(this._readableState)this._readableState.flowing=z0}}),Y._fromList=$0,Object.defineProperty(Y.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function $0(z0,a){if(a.length===0)return null;var J0;if(a.objectMode)J0=a.buffer.shift();else if(!z0||z0>=a.length){if(a.decoder)J0=a.buffer.join("");else if(a.buffer.length===1)J0=a.buffer.first();else J0=a.buffer.concat(a.length);a.buffer.clear()}else J0=a.buffer.consume(z0,a.decoder);return J0}function G0(z0){var a=z0._readableState;if(D("endReadable",a.endEmitted),!a.endEmitted)a.ended=!0,process.nextTick(K0,a,z0)}function K0(z0,a){if(D("endReadableNT",z0.endEmitted,z0.length),!z0.endEmitted&&z0.length===0){if(z0.endEmitted=!0,a.readable=!1,a.emit("end"),z0.autoDestroy){var J0=a._writableState;if(!J0||J0.autoDestroy&&J0.finished)a.destroy()}}}if(typeof Symbol==="function")Y.from=function(z0,a){if(H0===void 0)H0=Ct();return H0(Y,z0,a)};function q0(z0,a){for(var J0=0,y0=z0.length;J0<y0;J0++)if(z0[J0]===a)return J0;return-1}}),Uc=pv(($,_)=>{_.exports=F;var I=l8().codes,J=I.ERR_METHOD_NOT_IMPLEMENTED,j=I.ERR_MULTIPLE_CALLBACK,G=I.ERR_TRANSFORM_ALREADY_TRANSFORMING,X=I.ERR_TRANSFORM_WITH_LENGTH_0,W=$O();p8()(F,W);function T(q,S){var k=this._transformState;k.transforming=!1;var y=k.writecb;if(y===null)return this.emit("error",new j);if(k.writechunk=null,k.writecb=null,S!=null)this.push(S);y(q);var m=this._readableState;if(m.reading=!1,m.needReadable||m.length<m.highWaterMark)this._read(m.highWaterMark)}function F(q){if(!(this instanceof F))return new F(q);if(W.call(this,q),this._transformState={afterTransform:T.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,q){if(typeof q.transform==="function")this._transform=q.transform;if(typeof q.flush==="function")this._flush=q.flush}this.on("prefinish",E)}function E(){var q=this;if(typeof this._flush==="function"&&!this._readableState.destroyed)this._flush(function(S,k){D(q,S,k)});else D(this,null,null)}F.prototype.push=function(q,S){return this._transformState.needTransform=!1,W.prototype.push.call(this,q,S)},F.prototype._transform=function(q,S,k){k(new J("_transform()"))},F.prototype._write=function(q,S,k){var y=this._transformState;if(y.writecb=k,y.writechunk=q,y.writeencoding=S,!y.transforming){var m=this._readableState;if(y.needTransform||m.needReadable||m.length<m.highWaterMark)this._read(m.highWaterMark)}},F.prototype._read=function(q){var S=this._transformState;if(S.writechunk!==null&&!S.transforming)S.transforming=!0,this._transform(S.writechunk,S.writeencoding,S.afterTransform);else S.needTransform=!0},F.prototype._destroy=function(q,S){W.prototype._destroy.call(this,q,function(k){S(k)})};function D(q,S,k){if(S)return q.emit("error",S);if(k!=null)q.push(k);if(q._writableState.length)throw new X;if(q._transformState.transforming)throw new G;return q.push(null)}}),wt=pv(($,_)=>{_.exports=J;var I=Uc();p8()(J,I);function J(j){if(!(this instanceof J))return new J(j);I.call(this,j)}J.prototype._transform=function(j,G,X){X(null,j)}}),Nt=pv(($,_)=>{var I;function J(k){var y=!1;return function(){if(y)return;y=!0,k.apply(void 0,arguments)}}var j=l8().codes,G=j.ERR_MISSING_ARGS,X=j.ERR_STREAM_DESTROYED;function W(k){if(k)throw k}function T(k){return k.setHeader&&typeof k.abort==="function"}function F(k,y,m,n){n=J(n);var h=!1;if(k.on("close",function(){h=!0}),I===void 0)I=EP();I(k,{readable:y,writable:m},function(s){if(s)return n(s);h=!0,n()});var p=!1;return function(s){if(h)return;if(p)return;if(p=!0,T(k))return k.abort();if(typeof k.destroy==="function")return k.destroy();n(s||new X("pipe"))}}function E(k){k()}function D(k,y){return k.pipe(y)}function q(k){if(!k.length)return W;if(typeof k[k.length-1]!=="function")return W;return k.pop()}function S(){for(var k=arguments.length,y=Array(k),m=0;m<k;m++)y[m]=arguments[m];var n=q(y);if(Array.isArray(y[0]))y=y[0];if(y.length<2)throw new G("streams");var h,p=y.map(function(s,j0){var I0=j0<y.length-1,H0=j0>0;return F(s,I0,H0,function(L0){if(!h)h=L0;if(L0)p.forEach(E);if(I0)return;p.forEach(E),n(h)})});return y.reduce(D)}_.exports=S}),Ic=pv(($,_)=>{var I=E8();$=_.exports=jc(),$.Stream=I||$,$.Readable=$,$.Writable=_c(),$.Duplex=$O(),$.Transform=Uc(),$.PassThrough=wt(),$.finished=EP(),$.pipeline=Nt()}),Xc=pv(($)=>{var _=ek(),I=p8(),J=Ic(),j=$.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},G=$.IncomingMessage=function(X,W,T,F){var E=this;if(J.Readable.call(E),E._mode=T,E.headers={},E.rawHeaders=[],E.trailers={},E.rawTrailers=[],E.on("end",function(){process.nextTick(function(){E.emit("close")})}),T==="fetch"){let n=function(){S.read().then(function(h){if(E._destroyed)return;if(F(h.done),h.done){E.push(null);return}E.push(Buffer.from(h.value)),n()}).catch(function(h){if(F(!0),!E._destroyed)E.emit("error",h)})};var D=n;if(E._fetchResponse=W,E.url=W.url,E.statusCode=W.status,E.statusMessage=W.statusText,W.headers.forEach(function(h,p){E.headers[p.toLowerCase()]=h,E.rawHeaders.push(p,h)}),_.writableStream){var q=new WritableStream({write:function(h){return F(!1),new Promise(function(p,s){if(E._destroyed)s();else if(E.push(Buffer.from(h)))p();else E._resumeFetch=p})},close:function(){if(F(!0),!E._destroyed)E.push(null)},abort:function(h){if(F(!0),!E._destroyed)E.emit("error",h)}});try{W.body.pipeTo(q).catch(function(h){if(F(!0),!E._destroyed)E.emit("error",h)});return}catch(h){}}var S=W.body.getReader();n()}else{E._xhr=X,E._pos=0,E.url=X.responseURL,E.statusCode=X.status,E.statusMessage=X.statusText;var k=X.getAllResponseHeaders().split(/\r?\n/);if(k.forEach(function(n){var h=n.match(/^([^:]+):\s*(.*)/);if(h){var p=h[1].toLowerCase();if(p==="set-cookie"){if(E.headers[p]===void 0)E.headers[p]=[];E.headers[p].push(h[2])}else if(E.headers[p]!==void 0)E.headers[p]+=", "+h[2];else E.headers[p]=h[2];E.rawHeaders.push(h[1],h[2])}}),E._charset="x-user-defined",!_.overrideMimeType){var y=E.rawHeaders["mime-type"];if(y){var m=y.match(/;\s*charset=([^;])(;|$)/);if(m)E._charset=m[1].toLowerCase()}if(!E._charset)E._charset="utf-8"}}};I(G,J.Readable),G.prototype._read=function(){var X=this,W=X._resumeFetch;if(W)X._resumeFetch=null,W()},G.prototype._onXHRProgress=function(X){var W=this,T=W._xhr,F=null;switch(W._mode){case"text":if(F=T.responseText,F.length>W._pos){var E=F.substr(W._pos);if(W._charset==="x-user-defined"){var D=Buffer.alloc(E.length);for(var q=0;q<E.length;q++)D[q]=E.charCodeAt(q)&255;W.push(D)}else W.push(E,W._charset);W._pos=F.length}break;case"arraybuffer":if(T.readyState!==j.DONE||!T.response)break;F=T.response,W.push(Buffer.from(new Uint8Array(F)));break;case"moz-chunked-arraybuffer":if(F=T.response,T.readyState!==j.LOADING||!F)break;W.push(Buffer.from(new Uint8Array(F)));break;case"ms-stream":if(F=T.response,T.readyState!==j.LOADING)break;var S=new globalThis.MSStreamReader;S.onprogress=function(){if(S.result.byteLength>W._pos)W.push(Buffer.from(new Uint8Array(S.result.slice(W._pos)))),W._pos=S.result.byteLength},S.onload=function(){X(!0),W.push(null)},S.readAsArrayBuffer(F);break}if(W._xhr.readyState===j.DONE&&W._mode!=="ms-stream")X(!0),W.push(null)}}),Bt=pv(($,_)=>{var I=ek(),J=p8(),j=Xc(),G=Ic(),X=j.IncomingMessage,W=j.readyStates;function T(q,S){if(I.fetch&&S)return"fetch";else if(I.mozchunkedarraybuffer)return"moz-chunked-arraybuffer";else if(I.msstream)return"ms-stream";else if(I.arraybuffer&&q)return"arraybuffer";else return"text"}var F=_.exports=function(q){var S=this;if(G.Writable.call(S),S._opts=q,S._body=[],S._headers={},q.auth)S.setHeader("Authorization","Basic "+Buffer.from(q.auth).toString("base64"));Object.keys(q.headers).forEach(function(m){S.setHeader(m,q.headers[m])});var k,y=!0;if(q.mode==="disable-fetch"||"requestTimeout"in q&&!I.abortController)y=!1,k=!0;else if(q.mode==="prefer-streaming")k=!1;else if(q.mode==="allow-wrong-content-type")k=!I.overrideMimeType;else if(!q.mode||q.mode==="default"||q.mode==="prefer-fast")k=!0;else throw Error("Invalid value for opts.mode");S._mode=T(k,y),S._fetchTimer=null,S._socketTimeout=null,S._socketTimer=null,S.on("finish",function(){S._onFinish()})};J(F,G.Writable),F.prototype.setHeader=function(q,S){var k=this,y=q.toLowerCase();if(D.indexOf(y)!==-1)return;k._headers[y]={name:q,value:S}},F.prototype.getHeader=function(q){var S=this._headers[q.toLowerCase()];if(S)return S.value;return null},F.prototype.removeHeader=function(q){var S=this;delete S._headers[q.toLowerCase()]},F.prototype._onFinish=function(){var q=this;if(q._destroyed)return;var S=q._opts;if("timeout"in S&&S.timeout!==0)q.setTimeout(S.timeout);var k=q._headers,y=null;if(S.method!=="GET"&&S.method!=="HEAD")y=new Blob(q._body,{type:(k["content-type"]||{}).value||""});var m=[];if(Object.keys(k).forEach(function(s){var j0=k[s].name,I0=k[s].value;if(Array.isArray(I0))I0.forEach(function(H0){m.push([j0,H0])});else m.push([j0,I0])}),q._mode==="fetch"){var n=null;if(I.abortController){var h=new AbortController;if(n=h.signal,q._fetchAbortController=h,"requestTimeout"in S&&S.requestTimeout!==0)q._fetchTimer=globalThis.setTimeout(function(){if(q.emit("requestTimeout"),q._fetchAbortController)q._fetchAbortController.abort()},S.requestTimeout)}globalThis.fetch(q._opts.url,{method:q._opts.method,headers:m,body:y||void 0,mode:"cors",credentials:S.withCredentials?"include":"same-origin",signal:n}).then(function(s){q._fetchResponse=s,q._resetTimers(!1),q._connect()},function(s){if(q._resetTimers(!0),!q._destroyed)q.emit("error",s)})}else{var p=q._xhr=new globalThis.XMLHttpRequest;try{p.open(q._opts.method,q._opts.url,!0)}catch(s){process.nextTick(function(){q.emit("error",s)});return}if("responseType"in p)p.responseType=q._mode;if("withCredentials"in p)p.withCredentials=!!S.withCredentials;if(q._mode==="text"&&"overrideMimeType"in p)p.overrideMimeType("text/plain; charset=x-user-defined");if("requestTimeout"in S)p.timeout=S.requestTimeout,p.ontimeout=function(){q.emit("requestTimeout")};if(m.forEach(function(s){p.setRequestHeader(s[0],s[1])}),q._response=null,p.onreadystatechange=function(){switch(p.readyState){case W.LOADING:case W.DONE:q._onXHRProgress();break}},q._mode==="moz-chunked-arraybuffer")p.onprogress=function(){q._onXHRProgress()};p.onerror=function(){if(q._destroyed)return;q._resetTimers(!0),q.emit("error",Error("XHR error"))};try{p.send(y)}catch(s){process.nextTick(function(){q.emit("error",s)});return}}};function E(q){try{var S=q.status;return S!==null&&S!==0}catch(k){return!1}}F.prototype._onXHRProgress=function(){var q=this;if(q._resetTimers(!1),!E(q._xhr)||q._destroyed)return;if(!q._response)q._connect();q._response._onXHRProgress(q._resetTimers.bind(q))},F.prototype._connect=function(){var q=this;if(q._destroyed)return;q._response=new X(q._xhr,q._fetchResponse,q._mode,q._resetTimers.bind(q)),q._response.on("error",function(S){q.emit("error",S)}),q.emit("response",q._response)},F.prototype._write=function(q,S,k){var y=this;y._body.push(q),k()},F.prototype._resetTimers=function(q){var S=this;if(globalThis.clearTimeout(S._socketTimer),S._socketTimer=null,q)globalThis.clearTimeout(S._fetchTimer),S._fetchTimer=null;else if(S._socketTimeout)S._socketTimer=globalThis.setTimeout(function(){S.emit("timeout")},S._socketTimeout)},F.prototype.abort=F.prototype.destroy=function(q){var S=this;if(S._destroyed=!0,S._resetTimers(!0),S._response)S._response._destroyed=!0;if(S._xhr)S._xhr.abort();else if(S._fetchAbortController)S._fetchAbortController.abort();if(q)S.emit("error",q)},F.prototype.end=function(q,S,k){var y=this;if(typeof q==="function")k=q,q=void 0;G.Writable.prototype.end.call(y,q,S,k)},F.prototype.setTimeout=function(q,S){var k=this;if(S)k.once("timeout",S);k._socketTimeout=q,k._resetTimers(!1)},F.prototype.flushHeaders=function(){},F.prototype.setNoDelay=function(){},F.prototype.setSocketKeepAlive=function(){};var D=["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"]}),St=pv(($,_)=>{_.exports=J;var I=Object.prototype.hasOwnProperty;function J(){var j={};for(var G=0;G<arguments.length;G++){var X=arguments[G];for(var W in X)if(I.call(X,W))j[W]=X[W]}return j}}),kt=pv(($,_)=>{_.exports=(SL(),X1(wK)).STATUS_CODES}),ct=pv(($)=>{var _=Bt(),I=Xc(),J=St(),j=kt(),G=(MP(),X1(AP)),X=$;X.request=function(W,T){if(typeof W==="string")W=G.parse(W);else W=J(W);var F=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",E=W.protocol||F,D=W.hostname||W.host,q=W.port,S=W.path||"/";if(D&&D.indexOf(":")!==-1)D="["+D+"]";W.url=(D?E+"//"+D:"")+(q?":"+q:"")+S,W.method=(W.method||"GET").toUpperCase(),W.headers=W.headers||{};var k=new _(W);if(T)k.on("response",T);return k},X.get=function(W,T){var F=X.request(W,T);return F.end(),F},X.ClientRequest=_,X.IncomingMessage=I.IncomingMessage,X.Agent=function(){},X.Agent.defaultMaxSockets=4,X.globalAgent=new X.Agent,X.STATUS_CODES=j,X.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"]}),Gc=Vt(ct(),1),{request:xt,get:ft,ClientRequest:yt,IncomingMessage:bt,Agent:ht,globalAgent:mt,STATUS_CODES:ut,METHODS:nt}=Gc.default,Yc=Gc.default});var zc={};_j(zc,{isIPv6:()=>TP,isIPv4:()=>VP,isIP:()=>Jc,default:()=>Qc});function VP($){return pt.test($)}function TP($){return lt.test($)}function Jc($){if(VP($))return 4;if(TP($))return 6;return 0}var pt,lt,Qc;var RP=GX(()=>{pt=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])$"),lt=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,})?$");Qc={isIPv4:VP,isIPv6:TP,isIP:Jc}});var Lc=eU((cJ0,Qo)=>{Qo.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/(?!(?:oauth2/(?:token|revoke)|users/me)/?$)|^/_twin/(?!assets/consent\\.(?:js|css)$)"},{host:"api.twitter.com",pathPattern:"^/2/(?!(?:oauth2/(?:token|revoke)|users/me)/?$)|^/_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:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["account","post","follow","rate_limit","_token"],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:{declared:"2",major:2,standing:"current"},transport:"rest",resources:["oauth_client","account","session","auth_request","grant","rate_window","oauth1_app","oauth1_token","oauth1_grant","_authorization_code","_access_token","_refresh_token","_oauth1_request_token","_client_secret","_code_challenge"],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 NK=eU((xJ0,Dc)=>{var zo=($)=>typeof $==="string"&&(/^\/(o\/oauth2\/v2\/auth(\/oauthchooseaccount)?|o\/oauth2\/auth|o\/oauth2\/token|signin\/oauth\/error|\.well-known\/openid-configuration)\/?$/.test($)||/^\/_twin\//.test($)),Zo=($)=>typeof $==="string"&&/^\/(token|oauth2\/v4\/token|revoke|tokeninfo|device\/code)\/?$/.test($),Oo=($)=>typeof $==="string"&&/^\/(oauth2\/(v1\/certs|v3\/(certs|userinfo)|v2\/userinfo)|userinfo\/v2\/me)\/?$/.test($),AG={googleoauth:($,_)=>$==="accounts.google.com"&&(_===void 0||zo(_))||$==="oauth2.googleapis.com"&&(_===void 0||Zo(_))||$==="www.googleapis.com"&&(_===void 0||Oo(_))||$==="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:$}=Lc();for(let _ of Object.keys($)){let I=$[_].hosts;if(!I||I.length===0)continue;if(AG[_])throw Error(`inject: vendor "${_}" declares hosts on its pack descriptor AND in the hand VENDOR_HOSTS table — one home per fact; delete the hand entry.`);let J=new Map;for(let j of I){let G=j.key===void 0?_:j.key;if(!J.has(G))J.set(G,[]);J.get(G).push(j)}for(let[j,G]of J){if(AG[j])throw Error(`inject: key "${j}" (pack ${_}) is declared twice — on this descriptor and in the hand VENDOR_HOSTS table or another pack's descriptor; a key has one home.`);let X=(F)=>{if(["host","suffix","hostPattern"].filter((S)=>F[S]!==void 0).length!==1)throw Error(`inject: key "${j}" (pack ${_}) rule ${JSON.stringify(F)} — exactly one of host | suffix | hostPattern (pack-facts.json is hand-edited or stale)`);let D=F.hostPattern===void 0?null:new RegExp(F.hostPattern),q=F.pathPattern===void 0?null:new RegExp(F.pathPattern);return(S,k)=>(F.host!==void 0?S===F.host:F.suffix!==void 0?S.endsWith(F.suffix):D.test(S))&&(q===null||k===void 0||q.test(k))},W=G.filter((F)=>F.exclude!==!0).map(X),T=G.filter((F)=>F.exclude===!0).map(X);AG[j]=(F,E)=>W.some((D)=>D(F,E))&&!T.some((D)=>D(F,E))}}}function Lo($){let _=String($||"").toLowerCase().replace(/\.$/,"");return Object.keys(AG).some((I)=>AG[I](_))}function Wo($){let _=String($||"").toLowerCase().replace(/\.$/,"");return Object.keys(AG).filter((I)=>AG[I](_))}function Wc($){return String($).toUpperCase().replace(/[^A-Z0-9]/g,"_")}function Do($){let _={};for(let I of Object.keys(AG)){let J=$[`${Wc(I)}_TWIN_URL`];if(J)_[I]=J.replace(/\/$/,"")}if($.TWIN_INJECT)for(let I of String($.TWIN_INJECT).split(",")){let J=I.indexOf("=");if(J<=0)continue;let j=I.slice(0,J).trim(),G=I.slice(J+1).trim();if(j&&G&&Object.hasOwn(AG,j))_[j]=G.replace(/\/$/,"")}return _}Dc.exports={VENDOR_HOSTS:AG,isVendorHost:Lo,vendorsOfHost:Wo,twinEnvStem:Wc,twinOrigins:Do}});var Fc={};_j(Fc,{validateHeaderValue:()=>bo,validateHeaderName:()=>yo,setMaxIdleHTTPParsers:()=>fo,request:()=>xo,maxHeaderSize:()=>co,globalAgent:()=>ko,get:()=>So,default:()=>ho,createServer:()=>Bo,ServerResponse:()=>No,Server:()=>wo,STATUS_CODES:()=>Co,OutgoingMessage:()=>go,METHODS:()=>qo,IncomingMessage:()=>Po,ClientRequest:()=>Ro,Agent:()=>To});var Ko,Ho,Kc,Fo,Ao,Mo=($,_,I)=>{I=$!=null?Ko(Ho($)):{};let J=_||!$||!$.__esModule?Kc(I,"default",{value:$,enumerable:!0}):I;for(let j of Fo($))if(!Ao.call(J,j))Kc(J,j,{get:()=>$[j],enumerable:!0});return J},Eo=($,_)=>()=>(_||$((_={exports:{}}).exports,_),_.exports),Vo,Hc,To,Ro,Po,qo,go,Co,wo,No,Bo,So,ko,co,xo,fo,yo,bo,ho;var Ac=GX(()=>{Ko=Object.create,{getPrototypeOf:Ho,defineProperty:Kc,getOwnPropertyNames:Fo}=Object,Ao=Object.prototype.hasOwnProperty,Vo=Eo(($,_)=>{var I=(SL(),X1(wK)),J=(MP(),X1(AP)),j=$;for(G in I)if(I.hasOwnProperty(G))j[G]=I[G];var G;j.request=function(W,T){return W=X(W),I.request.call(this,W,T)},j.get=function(W,T){return W=X(W),I.get.call(this,W,T)};function X(W){if(typeof W==="string")W=J.parse(W);if(!W.protocol)W.protocol="https:";if(W.protocol!=="https:")throw Error('Protocol "'+W.protocol+'" not supported. Expected "https:"');return W}}),Hc=Mo(Vo(),1),{Agent:To,ClientRequest:Ro,IncomingMessage:Po,METHODS:qo,OutgoingMessage:go,STATUS_CODES:Co,Server:wo,ServerResponse:No,createServer:Bo,get:So,globalAgent:ko,maxHeaderSize:co,request:xo,setMaxIdleHTTPParsers:fo,validateHeaderName:yo,validateHeaderValue:bo}=Hc,ho=Hc});var xP={};_j(xP,{throws:()=>_s,strictEqual:()=>vs,strict:()=>$s,rejects:()=>ea,ok:()=>sa,notStrictEqual:()=>aa,notEqual:()=>oa,notDeepStrictEqual:()=>ta,notDeepEqual:()=>ra,match:()=>da,ifError:()=>ia,fail:()=>la,equal:()=>pa,doesNotThrow:()=>na,doesNotReject:()=>ua,doesNotMatch:()=>ma,default:()=>js,deepStrictEqual:()=>ha,deepEqual:()=>ba,CallTracker:()=>ya,AssertionError:()=>fa});var mo,uo,Mc,no,po,lo=($,_,I)=>{I=$!=null?mo(uo($)):{};let J=_||!$||!$.__esModule?Mc(I,"default",{value:$,enumerable:!0}):I;for(let j of no($))if(!po.call(J,j))Mc(J,j,{get:()=>$[j],enumerable:!0});return J},t$=($,_)=>()=>(_||$((_={exports:{}}).exports,_),_.exports),gP,BK,CP,io,ro,to,oo,Ec,cL,ao,so,eo,$a,va,_a,ja,Ua,Ia,Xa,vO,SK,Ga,Vc,Tc,Ya,xL,wP,NP,Ja,Rc,BP,Qa,SP,Pc,kP,_O,za,Za,Oa,La,Wa,Da,Ka,Ha,Fa,qc,gc,Aa,Ma,kK,Cc,Ea,Va,Ta,Ra,Pa,kL,wc,qa,Nc,ga,Bc,Ca,wa,Sc,cP,Na,cK,Ba,Sa,kc,cc,ka,ca,xa,qP,xc,fa,ya,ba,ha,ma,ua,na,pa,la,ia,da,ra,ta,oa,aa,sa,ea,$s,vs,_s,js;var fP=GX(()=>{mo=Object.create,{getPrototypeOf:uo,defineProperty:Mc,getOwnPropertyNames:no}=Object,po=Object.prototype.hasOwnProperty,gP=t$(($,_)=>{_.exports=function(){if(typeof Symbol!=="function"||typeof Object.getOwnPropertySymbols!=="function")return!1;if(typeof Symbol.iterator==="symbol")return!0;var I={},J=Symbol("test"),j=Object(J);if(typeof J==="string")return!1;if(Object.prototype.toString.call(J)!=="[object Symbol]")return!1;if(Object.prototype.toString.call(j)!=="[object Symbol]")return!1;var G=42;I[J]=G;for(var X in I)return!1;if(typeof Object.keys==="function"&&Object.keys(I).length!==0)return!1;if(typeof Object.getOwnPropertyNames==="function"&&Object.getOwnPropertyNames(I).length!==0)return!1;var W=Object.getOwnPropertySymbols(I);if(W.length!==1||W[0]!==J)return!1;if(!Object.prototype.propertyIsEnumerable.call(I,J))return!1;if(typeof Object.getOwnPropertyDescriptor==="function"){var T=Object.getOwnPropertyDescriptor(I,J);if(T.value!==G||T.enumerable!==!0)return!1}return!0}}),BK=t$(($,_)=>{var I=gP();_.exports=function(){return I()&&!!Symbol.toStringTag}}),CP=t$(($,_)=>{_.exports=Object}),io=t$(($,_)=>{_.exports=Error}),ro=t$(($,_)=>{_.exports=EvalError}),to=t$(($,_)=>{_.exports=RangeError}),oo=t$(($,_)=>{_.exports=ReferenceError}),Ec=t$(($,_)=>{_.exports=SyntaxError}),cL=t$(($,_)=>{_.exports=TypeError}),ao=t$(($,_)=>{_.exports=URIError}),so=t$(($,_)=>{_.exports=Math.abs}),eo=t$(($,_)=>{_.exports=Math.floor}),$a=t$(($,_)=>{_.exports=Math.max}),va=t$(($,_)=>{_.exports=Math.min}),_a=t$(($,_)=>{_.exports=Math.pow}),ja=t$(($,_)=>{_.exports=Math.round}),Ua=t$(($,_)=>{_.exports=Number.isNaN||function(I){return I!==I}}),Ia=t$(($,_)=>{var I=Ua();_.exports=function(J){if(I(J)||J===0)return J;return J<0?-1:1}}),Xa=t$(($,_)=>{_.exports=Object.getOwnPropertyDescriptor}),vO=t$(($,_)=>{var I=Xa();if(I)try{I([],"length")}catch(J){I=null}_.exports=I}),SK=t$(($,_)=>{var I=Object.defineProperty||!1;if(I)try{I({},"a",{value:1})}catch(J){I=!1}_.exports=I}),Ga=t$(($,_)=>{var I=typeof Symbol<"u"&&Symbol,J=gP();_.exports=function(){if(typeof I!=="function")return!1;if(typeof Symbol!=="function")return!1;if(typeof I("foo")!=="symbol")return!1;if(typeof Symbol("bar")!=="symbol")return!1;return J()}}),Vc=t$(($,_)=>{_.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null}),Tc=t$(($,_)=>{var I=CP();_.exports=I.getPrototypeOf||null}),Ya=t$(($,_)=>{var I="Function.prototype.bind called on incompatible ",J=Object.prototype.toString,j=Math.max,G="[object Function]",X=function(F,E){var D=[];for(var q=0;q<F.length;q+=1)D[q]=F[q];for(var S=0;S<E.length;S+=1)D[S+F.length]=E[S];return D},W=function(F,E){var D=[];for(var q=E||0,S=0;q<F.length;q+=1,S+=1)D[S]=F[q];return D},T=function(F,E){var D="";for(var q=0;q<F.length;q+=1)if(D+=F[q],q+1<F.length)D+=E;return D};_.exports=function(F){var E=this;if(typeof E!=="function"||J.apply(E)!==G)throw TypeError(I+E);var D=W(arguments,1),q,S=function(){if(this instanceof q){var h=E.apply(this,X(D,arguments));if(Object(h)===h)return h;return this}return E.apply(F,X(D,arguments))},k=j(0,E.length-D.length),y=[];for(var m=0;m<k;m++)y[m]="$"+m;if(q=Function("binder","return function ("+T(y,",")+"){ return binder.apply(this,arguments); }")(S),E.prototype){var n=function(){};n.prototype=E.prototype,q.prototype=new n,n.prototype=null}return q}}),xL=t$(($,_)=>{var I=Ya();_.exports=Function.prototype.bind||I}),wP=t$(($,_)=>{_.exports=Function.prototype.call}),NP=t$(($,_)=>{_.exports=Function.prototype.apply}),Ja=t$(($,_)=>{_.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply}),Rc=t$(($,_)=>{var I=xL(),J=NP(),j=wP(),G=Ja();_.exports=G||I.call(j,J)}),BP=t$(($,_)=>{var I=xL(),J=cL(),j=wP(),G=Rc();_.exports=function(X){if(X.length<1||typeof X[0]!=="function")throw new J("a function is required");return G(I,j,X)}}),Qa=t$(($,_)=>{var I=BP(),J=vO(),j;try{j=[].__proto__===Array.prototype}catch(T){if(!T||typeof T!=="object"||!("code"in T)||T.code!=="ERR_PROTO_ACCESS")throw T}var G=!!j&&J&&J(Object.prototype,"__proto__"),X=Object,W=X.getPrototypeOf;_.exports=G&&typeof G.get==="function"?I([G.get]):typeof W==="function"?function(T){return W(T==null?T:X(T))}:!1}),SP=t$(($,_)=>{var I=Vc(),J=Tc(),j=Qa();_.exports=I?function(G){return I(G)}:J?function(G){if(!G||typeof G!=="object"&&typeof G!=="function")throw TypeError("getProto: not an object");return J(G)}:j?function(G){return j(G)}:null}),Pc=t$(($,_)=>{var I=Function.prototype.call,J=Object.prototype.hasOwnProperty,j=xL();_.exports=j.call(I,J)}),kP=t$(($,_)=>{var I,J=CP(),j=io(),G=ro(),X=to(),W=oo(),T=Ec(),F=cL(),E=ao(),D=so(),q=eo(),S=$a(),k=va(),y=_a(),m=ja(),n=Ia(),h=Function,p=function(G0){try{return h('"use strict"; return ('+G0+").constructor;")()}catch(K0){}},s=vO(),j0=SK(),I0=function(){throw new F},H0=s?function(){try{return arguments.callee,I0}catch(G0){try{return s(arguments,"callee").get}catch(K0){return I0}}}():I0,L0=Ga()(),R0=SP(),U0=Tc(),c0=Vc(),Y=NP(),O=wP(),H={},Z=typeof Uint8Array>"u"||!R0?I:R0(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?I:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?I:ArrayBuffer,"%ArrayIteratorPrototype%":L0&&R0?R0([][Symbol.iterator]()):I,"%AsyncFromSyncIteratorPrototype%":I,"%AsyncFunction%":H,"%AsyncGenerator%":H,"%AsyncGeneratorFunction%":H,"%AsyncIteratorPrototype%":H,"%Atomics%":typeof Atomics>"u"?I:Atomics,"%BigInt%":typeof BigInt>"u"?I:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?I:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?I:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?I:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":j,"%eval%":eval,"%EvalError%":G,"%Float16Array%":typeof Float16Array>"u"?I:Float16Array,"%Float32Array%":typeof Float32Array>"u"?I:Float32Array,"%Float64Array%":typeof Float64Array>"u"?I:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?I:FinalizationRegistry,"%Function%":h,"%GeneratorFunction%":H,"%Int8Array%":typeof Int8Array>"u"?I:Int8Array,"%Int16Array%":typeof Int16Array>"u"?I:Int16Array,"%Int32Array%":typeof Int32Array>"u"?I:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":L0&&R0?R0(R0([][Symbol.iterator]())):I,"%JSON%":typeof JSON==="object"?JSON:I,"%Map%":typeof Map>"u"?I:Map,"%MapIteratorPrototype%":typeof Map>"u"||!L0||!R0?I:R0(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":J,"%Object.getOwnPropertyDescriptor%":s,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?I:Promise,"%Proxy%":typeof Proxy>"u"?I:Proxy,"%RangeError%":X,"%ReferenceError%":W,"%Reflect%":typeof Reflect>"u"?I:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?I:Set,"%SetIteratorPrototype%":typeof Set>"u"||!L0||!R0?I:R0(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?I:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":L0&&R0?R0(""[Symbol.iterator]()):I,"%Symbol%":L0?Symbol:I,"%SyntaxError%":T,"%ThrowTypeError%":H0,"%TypedArray%":Z,"%TypeError%":F,"%Uint8Array%":typeof Uint8Array>"u"?I:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?I:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?I:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?I:Uint32Array,"%URIError%":E,"%WeakMap%":typeof WeakMap>"u"?I:WeakMap,"%WeakRef%":typeof WeakRef>"u"?I:WeakRef,"%WeakSet%":typeof WeakSet>"u"?I:WeakSet,"%Function.prototype.call%":O,"%Function.prototype.apply%":Y,"%Object.defineProperty%":j0,"%Object.getPrototypeOf%":U0,"%Math.abs%":D,"%Math.floor%":q,"%Math.max%":S,"%Math.min%":k,"%Math.pow%":y,"%Math.round%":m,"%Math.sign%":n,"%Reflect.getPrototypeOf%":c0};if(R0)try{null.error}catch(G0){w=R0(R0(G0)),K["%Error.prototype%"]=w}var w,B=function G0(K0){var q0;if(K0==="%AsyncFunction%")q0=p("async function () {}");else if(K0==="%GeneratorFunction%")q0=p("function* () {}");else if(K0==="%AsyncGeneratorFunction%")q0=p("async function* () {}");else if(K0==="%AsyncGenerator%"){var z0=G0("%AsyncGeneratorFunction%");if(z0)q0=z0.prototype}else if(K0==="%AsyncIteratorPrototype%"){var a=G0("%AsyncGenerator%");if(a&&R0)q0=R0(a.prototype)}return K[K0]=q0,q0},P={__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"]},z=xL(),A=Pc(),f=z.call(O,Array.prototype.concat),c=z.call(Y,Array.prototype.splice),l=z.call(O,String.prototype.replace),Q0=z.call(O,String.prototype.slice),F0=z.call(O,RegExp.prototype.exec),P0=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,E0=/\\(\\)?/g,_0=function(G0){var K0=Q0(G0,0,1),q0=Q0(G0,-1);if(K0==="%"&&q0!=="%")throw new T("invalid intrinsic syntax, expected closing `%`");else if(q0==="%"&&K0!=="%")throw new T("invalid intrinsic syntax, expected opening `%`");var z0=[];return l(G0,P0,function(a,J0,y0,N0){z0[z0.length]=y0?l(N0,E0,"$1"):J0||a}),z0},$0=function(G0,K0){var q0=G0,z0;if(A(P,q0))z0=P[q0],q0="%"+z0[0]+"%";if(A(K,q0)){var a=K[q0];if(a===H)a=B(q0);if(typeof a>"u"&&!K0)throw new F("intrinsic "+G0+" exists, but is not available. Please file an issue!");return{alias:z0,name:q0,value:a}}throw new T("intrinsic "+G0+" does not exist!")};_.exports=function(G0,K0){if(typeof G0!=="string"||G0.length===0)throw new F("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof K0!=="boolean")throw new F('"allowMissing" argument must be a boolean');if(F0(/^%?[^%]*%?$/,G0)===null)throw new T("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var q0=_0(G0),z0=q0.length>0?q0[0]:"",a=$0("%"+z0+"%",K0),J0=a.name,y0=a.value,N0=!1,A0=a.alias;if(A0)z0=A0[0],c(q0,f([0,1],A0));for(var $$=1,w0=!0;$$<q0.length;$$+=1){var h0=q0[$$],H$=Q0(h0,0,1),l0=Q0(h0,-1);if((H$==='"'||H$==="'"||H$==="`"||(l0==='"'||l0==="'"||l0==="`"))&&H$!==l0)throw new T("property names with quotes must have matching quotes");if(h0==="constructor"||!w0)N0=!0;if(z0+="."+h0,J0="%"+z0+"%",A(K,J0))y0=K[J0];else if(y0!=null){if(!(h0 in y0)){if(!K0)throw new F("base intrinsic for "+G0+" exists, but the property is not available.");return}if(s&&$$+1>=q0.length){var j$=s(y0,h0);if(w0=!!j$,w0&&"get"in j$&&!("originalValue"in j$.get))y0=j$.get;else y0=y0[h0]}else w0=A(y0,h0),y0=y0[h0];if(w0&&!N0)K[J0]=y0}}return y0}}),_O=t$(($,_)=>{var I=kP(),J=BP(),j=J([I("%String.prototype.indexOf%")]);_.exports=function(G,X){var W=I(G,!!X);if(typeof W==="function"&&j(G,".prototype.")>-1)return J([W]);return W}}),za=t$(($,_)=>{var I=BK()(),J=_O(),j=J("Object.prototype.toString"),G=function(T){if(I&&T&&typeof T==="object"&&Symbol.toStringTag in T)return!1;return j(T)==="[object Arguments]"},X=function(T){if(G(T))return!0;return T!==null&&typeof T==="object"&&"length"in T&&typeof T.length==="number"&&T.length>=0&&j(T)!=="[object Array]"&&"callee"in T&&j(T.callee)==="[object Function]"},W=function(){return G(arguments)}();G.isLegacyArguments=X,_.exports=W?G:X}),Za=t$(($,_)=>{var I=_O(),J=BK()(),j=Pc(),G=vO(),X;if(J){if(W=I("RegExp.prototype.exec"),T={},F=function(){throw T},E={toString:F,valueOf:F},typeof Symbol.toPrimitive==="symbol")E[Symbol.toPrimitive]=F;X=function(S){if(!S||typeof S!=="object")return!1;var k=G(S,"lastIndex"),y=k&&j(k,"value");if(!y)return!1;try{W(S,E)}catch(m){return m===T}}}else D=I("Object.prototype.toString"),q="[object RegExp]",X=function(S){if(!S||typeof S!=="object"&&typeof S!=="function")return!1;return D(S)===q};var W,T,F,E,D,q;_.exports=X}),Oa=t$(($,_)=>{var I=_O(),J=Za(),j=I("RegExp.prototype.exec"),G=cL();_.exports=function(X){if(!J(X))throw new G("`regex` must be a RegExp");return function(W){return j(X,W)!==null}}}),La=t$(($,_)=>{var I=function*(){}.constructor;_.exports=()=>I}),Wa=t$(($,_)=>{var I=_O(),J=Oa(),j=J(/^\s*(?:function)?\*/),G=BK()(),X=SP(),W=I("Object.prototype.toString"),T=I("Function.prototype.toString"),F=La();_.exports=function(E){if(typeof E!=="function")return!1;if(j(T(E)))return!0;if(!G){var D=W(E);return D==="[object GeneratorFunction]"}if(!X)return!1;var q=F();return q&&X(E)===q.prototype}}),Da=t$(($,_)=>{var I=Function.prototype.toString,J=typeof Reflect==="object"&&Reflect!==null&&Reflect.apply,j,G;if(typeof J==="function"&&typeof Object.defineProperty==="function")try{j=Object.defineProperty({},"length",{get:function(){throw G}}),G={},J(function(){throw 42},null,j)}catch(s){if(s!==G)J=null}else J=null;var X=/^\s*class\b/,W=function(s){try{var j0=I.call(s);return X.test(j0)}catch(I0){return!1}},T=function(s){try{if(W(s))return!1;return I.call(s),!0}catch(j0){return!1}},F=Object.prototype.toString,E="[object Object]",D="[object Function]",q="[object GeneratorFunction]",S="[object HTMLAllCollection]",k="[object HTML document.all class]",y="[object HTMLCollection]",m=typeof Symbol==="function"&&!!Symbol.toStringTag,n=!(0 in[,]),h=function(){return!1};if(typeof document==="object"){if(p=document.all,F.call(p)===F.call(document.all))h=function(s){if((n||!s)&&(typeof s>"u"||typeof s==="object"))try{var j0=F.call(s);return(j0===S||j0===k||j0===y||j0===E)&&s("")==null}catch(I0){}return!1}}var p;_.exports=J?function(s){if(h(s))return!0;if(!s)return!1;if(typeof s!=="function"&&typeof s!=="object")return!1;try{J(s,null,j)}catch(j0){if(j0!==G)return!1}return!W(s)&&T(s)}:function(s){if(h(s))return!0;if(!s)return!1;if(typeof s!=="function"&&typeof s!=="object")return!1;if(m)return T(s);if(W(s))return!1;var j0=F.call(s);if(j0!==D&&j0!==q&&!/^\[object HTML/.test(j0))return!1;return T(s)}}),Ka=t$(($,_)=>{var I=Da(),J=Object.prototype.toString,j=Object.prototype.hasOwnProperty,G=function(F,E,D){for(var q=0,S=F.length;q<S;q++)if(j.call(F,q))if(D==null)E(F[q],q,F);else E.call(D,F[q],q,F)},X=function(F,E,D){for(var q=0,S=F.length;q<S;q++)if(D==null)E(F.charAt(q),q,F);else E.call(D,F.charAt(q),q,F)},W=function(F,E,D){for(var q in F)if(j.call(F,q))if(D==null)E(F[q],q,F);else E.call(D,F[q],q,F)};function T(F){return J.call(F)==="[object Array]"}_.exports=function(F,E,D){if(!I(E))throw TypeError("iterator must be a function");var q;if(arguments.length>=3)q=D;if(T(F))G(F,E,q);else if(typeof F==="string")X(F,E,q);else W(F,E,q)}}),Ha=t$(($,_)=>{_.exports=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]}),Fa=t$(($,_)=>{var I=Ha(),J=typeof globalThis>"u"?globalThis:globalThis;_.exports=function(){var j=[];for(var G=0;G<I.length;G++)if(typeof J[I[G]]==="function")j[j.length]=I[G];return j}}),qc=t$(($,_)=>{var I=SK(),J=Ec(),j=cL(),G=vO();_.exports=function(X,W,T){if(!X||typeof X!=="object"&&typeof X!=="function")throw new j("`obj` must be an object or a function`");if(typeof W!=="string"&&typeof W!=="symbol")throw new j("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=="boolean"&&arguments[3]!==null)throw new j("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=="boolean"&&arguments[4]!==null)throw new j("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=="boolean"&&arguments[5]!==null)throw new j("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=="boolean")throw new j("`loose`, if provided, must be a boolean");var F=arguments.length>3?arguments[3]:null,E=arguments.length>4?arguments[4]:null,D=arguments.length>5?arguments[5]:null,q=arguments.length>6?arguments[6]:!1,S=!!G&&G(X,W);if(I)I(X,W,{configurable:D===null&&S?S.configurable:!D,enumerable:F===null&&S?S.enumerable:!F,value:T,writable:E===null&&S?S.writable:!E});else if(q||!F&&!E&&!D)X[W]=T;else throw new J("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}}),gc=t$(($,_)=>{var I=SK(),J=function(){return!!I};J.hasArrayLengthDefineBug=function(){if(!I)return null;try{return I([],"length",{value:1}).length!==1}catch(j){return!0}},_.exports=J}),Aa=t$(($,_)=>{var I=kP(),J=qc(),j=gc()(),G=vO(),X=cL(),W=I("%Math.floor%");_.exports=function(T,F){if(typeof T!=="function")throw new X("`fn` is not a function");if(typeof F!=="number"||F<0||F>4294967295||W(F)!==F)throw new X("`length` must be a positive 32-bit integer");var E=arguments.length>2&&!!arguments[2],D=!0,q=!0;if("length"in T&&G){var S=G(T,"length");if(S&&!S.configurable)D=!1;if(S&&!S.writable)q=!1}if(D||q||!E)if(j)J(T,"length",F,!0,!0);else J(T,"length",F);return T}}),Ma=t$(($,_)=>{var I=xL(),J=NP(),j=Rc();_.exports=function(){return j(I,J,arguments)}}),kK=t$(($,_)=>{var I=Aa(),J=SK(),j=BP(),G=Ma();if(_.exports=function(X){var W=j(arguments),T=X.length-(arguments.length-1);return I(W,1+(T>0?T:0),!0)},J)J(_.exports,"apply",{value:G});else _.exports.apply=G}),Cc=t$(($,_)=>{var I=Ka(),J=Fa(),j=kK(),G=_O(),X=vO(),W=SP(),T=G("Object.prototype.toString"),F=BK()(),E=typeof globalThis>"u"?globalThis:globalThis,D=J(),q=G("String.prototype.slice"),S=G("Array.prototype.indexOf",!0)||function(n,h){for(var p=0;p<n.length;p+=1)if(n[p]===h)return p;return-1},k={__proto__:null};if(F&&X&&W)I(D,function(n){var h=new E[n];if(Symbol.toStringTag in h&&W){var p=W(h),s=X(p,Symbol.toStringTag);if(!s&&p){var j0=W(p);s=X(j0,Symbol.toStringTag)}k["$"+n]=j(s.get)}});else I(D,function(n){var h=new E[n],p=h.slice||h.set;if(p)k["$"+n]=j(p)});var y=function(n){var h=!1;return I(k,function(p,s){if(!h)try{if("$"+p(n)===s)h=q(s,1)}catch(j0){}}),h},m=function(n){var h=!1;return I(k,function(p,s){if(!h)try{p(n),h=q(s,1)}catch(j0){}}),h};_.exports=function(n){if(!n||typeof n!=="object")return!1;if(!F){var h=q(T(n),8,-1);if(S(D,h)>-1)return h;if(h!=="Object")return!1;return m(n)}if(!X)return null;return y(n)}}),Ea=t$(($,_)=>{var I=Cc();_.exports=function(J){return!!I(J)}}),Va=t$(($)=>{var _=za(),I=Wa(),J=Cc(),j=Ea();function G(A0){return A0.call.bind(A0)}var X=typeof BigInt<"u",W=typeof Symbol<"u",T=G(Object.prototype.toString),F=G(Number.prototype.valueOf),E=G(String.prototype.valueOf),D=G(Boolean.prototype.valueOf);if(X)q=G(BigInt.prototype.valueOf);var q;if(W)S=G(Symbol.prototype.valueOf);var S;function k(A0,$$){if(typeof A0!=="object")return!1;try{return $$(A0),!0}catch(w0){return!1}}$.isArgumentsObject=_,$.isGeneratorFunction=I,$.isTypedArray=j;function y(A0){return typeof Promise<"u"&&A0 instanceof Promise||A0!==null&&typeof A0==="object"&&typeof A0.then==="function"&&typeof A0.catch==="function"}$.isPromise=y;function m(A0){if(typeof ArrayBuffer<"u"&&ArrayBuffer.isView)return ArrayBuffer.isView(A0);return j(A0)||c(A0)}$.isArrayBufferView=m;function n(A0){return J(A0)==="Uint8Array"}$.isUint8Array=n;function h(A0){return J(A0)==="Uint8ClampedArray"}$.isUint8ClampedArray=h;function p(A0){return J(A0)==="Uint16Array"}$.isUint16Array=p;function s(A0){return J(A0)==="Uint32Array"}$.isUint32Array=s;function j0(A0){return J(A0)==="Int8Array"}$.isInt8Array=j0;function I0(A0){return J(A0)==="Int16Array"}$.isInt16Array=I0;function H0(A0){return J(A0)==="Int32Array"}$.isInt32Array=H0;function L0(A0){return J(A0)==="Float32Array"}$.isFloat32Array=L0;function R0(A0){return J(A0)==="Float64Array"}$.isFloat64Array=R0;function U0(A0){return J(A0)==="BigInt64Array"}$.isBigInt64Array=U0;function c0(A0){return J(A0)==="BigUint64Array"}$.isBigUint64Array=c0;function Y(A0){return T(A0)==="[object Map]"}Y.working=typeof Map<"u"&&Y(new Map);function O(A0){if(typeof Map>"u")return!1;return Y.working?Y(A0):A0 instanceof Map}$.isMap=O;function H(A0){return T(A0)==="[object Set]"}H.working=typeof Set<"u"&&H(new Set);function Z(A0){if(typeof Set>"u")return!1;return H.working?H(A0):A0 instanceof Set}$.isSet=Z;function K(A0){return T(A0)==="[object WeakMap]"}K.working=typeof WeakMap<"u"&&K(new WeakMap);function w(A0){if(typeof WeakMap>"u")return!1;return K.working?K(A0):A0 instanceof WeakMap}$.isWeakMap=w;function B(A0){return T(A0)==="[object WeakSet]"}B.working=typeof WeakSet<"u"&&B(new WeakSet);function P(A0){return B(A0)}$.isWeakSet=P;function z(A0){return T(A0)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function A(A0){if(typeof ArrayBuffer>"u")return!1;return z.working?z(A0):A0 instanceof ArrayBuffer}$.isArrayBuffer=A;function f(A0){return T(A0)==="[object DataView]"}f.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&f(new DataView(new ArrayBuffer(1),0,1));function c(A0){if(typeof DataView>"u")return!1;return f.working?f(A0):A0 instanceof DataView}$.isDataView=c;var l=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function Q0(A0){return T(A0)==="[object SharedArrayBuffer]"}function F0(A0){if(typeof l>"u")return!1;if(typeof Q0.working>"u")Q0.working=Q0(new l);return Q0.working?Q0(A0):A0 instanceof l}$.isSharedArrayBuffer=F0;function P0(A0){return T(A0)==="[object AsyncFunction]"}$.isAsyncFunction=P0;function E0(A0){return T(A0)==="[object Map Iterator]"}$.isMapIterator=E0;function _0(A0){return T(A0)==="[object Set Iterator]"}$.isSetIterator=_0;function $0(A0){return T(A0)==="[object Generator]"}$.isGeneratorObject=$0;function G0(A0){return T(A0)==="[object WebAssembly.Module]"}$.isWebAssemblyCompiledModule=G0;function K0(A0){return k(A0,F)}$.isNumberObject=K0;function q0(A0){return k(A0,E)}$.isStringObject=q0;function z0(A0){return k(A0,D)}$.isBooleanObject=z0;function a(A0){return X&&k(A0,q)}$.isBigIntObject=a;function J0(A0){return W&&k(A0,S)}$.isSymbolObject=J0;function y0(A0){return K0(A0)||q0(A0)||z0(A0)||a(A0)||J0(A0)}$.isBoxedPrimitive=y0;function N0(A0){return typeof Uint8Array<"u"&&(A(A0)||F0(A0))}$.isAnyArrayBuffer=N0,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(A0){Object.defineProperty($,A0,{enumerable:!1,value:function(){throw Error(A0+" is not supported in userland")}})})}),Ta=t$(($,_)=>{_.exports=function(I){return I instanceof Buffer}}),Ra=t$(($,_)=>{if(typeof Object.create==="function")_.exports=function(I,J){if(J)I.super_=J,I.prototype=Object.create(J.prototype,{constructor:{value:I,enumerable:!1,writable:!0,configurable:!0}})};else _.exports=function(I,J){if(J){I.super_=J;var j=function(){};j.prototype=J.prototype,I.prototype=new j,I.prototype.constructor=I}}}),Pa=t$(($,_)=>{try{if(I=(lJ(),X1(pJ)),typeof I.inherits!=="function")throw"";_.exports=I.inherits}catch(J){_.exports=Ra()}var I}),kL=t$(($)=>{var _=Object.getOwnPropertyDescriptors||function(A){var f=Object.keys(A),c={};for(var l=0;l<f.length;l++)c[f[l]]=Object.getOwnPropertyDescriptor(A,f[l]);return c},I=/%[sdj%]/g;$.format=function(A){if(!s(A)){var f=[];for(var c=0;c<arguments.length;c++)f.push(G(arguments[c]));return f.join(" ")}var c=1,l=arguments,Q0=l.length,F0=String(A).replace(I,function(E0){if(E0==="%%")return"%";if(c>=Q0)return E0;switch(E0){case"%s":return String(l[c++]);case"%d":return Number(l[c++]);case"%j":try{return JSON.stringify(l[c++])}catch(_0){return"[Circular]"}default:return E0}});for(var P0=l[c];c<Q0;P0=l[++c])if(n(P0)||!L0(P0))F0+=" "+P0;else F0+=" "+G(P0);return F0},$.deprecate=function(A,f){if(typeof process<"u"&&process.noDeprecation===!0)return A;if(typeof process>"u")return function(){return $.deprecate(A,f).apply(this,arguments)};var c=!1;function l(){if(!c){if(process.throwDeprecation)throw Error(f);else if(process.traceDeprecation)console.trace(f);else console.error(f);c=!0}return A.apply(this,arguments)}return l};var J={},j=/^$/;$.debuglog=function(A){if(A=A.toUpperCase(),!J[A])if(j.test(A)){var f=process.pid;J[A]=function(){var c=$.format.apply($,arguments);console.error("%s %d: %s",A,f,c)}}else J[A]=function(){};return J[A]};function G(A,f){var c={seen:[],stylize:W};if(arguments.length>=3)c.depth=arguments[2];if(arguments.length>=4)c.colors=arguments[3];if(m(f))c.showHidden=f;else if(f)$._extend(c,f);if(I0(c.showHidden))c.showHidden=!1;if(I0(c.depth))c.depth=2;if(I0(c.colors))c.colors=!1;if(I0(c.customInspect))c.customInspect=!0;if(c.colors)c.stylize=X;return F(c,A,c.depth)}$.inspect=G,G.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]},G.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function X(A,f){var c=G.styles[f];if(c)return"\x1B["+G.colors[c][0]+"m"+A+"\x1B["+G.colors[c][1]+"m";else return A}function W(A,f){return A}function T(A){var f={};return A.forEach(function(c,l){f[c]=!0}),f}function F(A,f,c){if(A.customInspect&&f&&c0(f.inspect)&&f.inspect!==$.inspect&&!(f.constructor&&f.constructor.prototype===f)){var l=f.inspect(c,A);if(!s(l))l=F(A,l,c);return l}var Q0=E(A,f);if(Q0)return Q0;var F0=Object.keys(f),P0=T(F0);if(A.showHidden)F0=Object.getOwnPropertyNames(f);if(U0(f)&&(F0.indexOf("message")>=0||F0.indexOf("description")>=0))return D(f);if(F0.length===0){if(c0(f)){var E0=f.name?": "+f.name:"";return A.stylize("[Function"+E0+"]","special")}if(H0(f))return A.stylize(RegExp.prototype.toString.call(f),"regexp");if(R0(f))return A.stylize(Date.prototype.toString.call(f),"date");if(U0(f))return D(f)}var _0="",$0=!1,G0=["{","}"];if(y(f))$0=!0,G0=["[","]"];if(c0(f)){var K0=f.name?": "+f.name:"";_0=" [Function"+K0+"]"}if(H0(f))_0=" "+RegExp.prototype.toString.call(f);if(R0(f))_0=" "+Date.prototype.toUTCString.call(f);if(U0(f))_0=" "+D(f);if(F0.length===0&&(!$0||f.length==0))return G0[0]+_0+G0[1];if(c<0)if(H0(f))return A.stylize(RegExp.prototype.toString.call(f),"regexp");else return A.stylize("[Object]","special");A.seen.push(f);var q0;if($0)q0=q(A,f,c,P0,F0);else q0=F0.map(function(z0){return S(A,f,c,P0,z0,$0)});return A.seen.pop(),k(q0,_0,G0)}function E(A,f){if(I0(f))return A.stylize("undefined","undefined");if(s(f)){var c="'"+JSON.stringify(f).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return A.stylize(c,"string")}if(p(f))return A.stylize(""+f,"number");if(m(f))return A.stylize(""+f,"boolean");if(n(f))return A.stylize("null","null")}function D(A){return"["+Error.prototype.toString.call(A)+"]"}function q(A,f,c,l,Q0){var F0=[];for(var P0=0,E0=f.length;P0<E0;++P0)if(w(f,String(P0)))F0.push(S(A,f,c,l,String(P0),!0));else F0.push("");return Q0.forEach(function(_0){if(!_0.match(/^\d+$/))F0.push(S(A,f,c,l,_0,!0))}),F0}function S(A,f,c,l,Q0,F0){var P0,E0,_0;if(_0=Object.getOwnPropertyDescriptor(f,Q0)||{value:f[Q0]},_0.get)if(_0.set)E0=A.stylize("[Getter/Setter]","special");else E0=A.stylize("[Getter]","special");else if(_0.set)E0=A.stylize("[Setter]","special");if(!w(l,Q0))P0="["+Q0+"]";if(!E0)if(A.seen.indexOf(_0.value)<0){if(n(c))E0=F(A,_0.value,null);else E0=F(A,_0.value,c-1);if(E0.indexOf(`
247
247
  `)>-1)if(F0)E0=E0.split(`
248
248
  `).map(function($0){return" "+$0}).join(`
249
249
  `).slice(2);else E0=`