@wormhole-foundation/wormhole-connect 0.3.4-beta.3-development → 0.3.4-beta.4-development
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{cosmos-9t5ds48M.js → cosmos-TcYN7x14.js} +1 -1
- package/dist/assets/index-7UgR9Epe.js +3 -0
- package/dist/assets/{solana-QOFlt-jY.js → solana-r3vOVfGL.js} +2 -2
- package/dist/assets/{solanaEmbed.esm-bag_3ej_.js → solanaEmbed.esm-8lU7Qhqn.js} +1 -1
- package/dist/main.js +87 -87
- package/dist/src/routes/ntt/chains/solana/nttManager.d.ts.map +1 -1
- package/dist/src/routes/ntt/chains/solana/nttQuoter.d.ts +2 -2
- package/dist/src/routes/ntt/chains/solana/nttQuoter.d.ts.map +1 -1
- package/dist/src/routes/ntt/nttRelay.d.ts.map +1 -1
- package/lib/{aptos-LzsTT-yE.mjs → aptos-XkxFn0iA.mjs} +1 -1
- package/lib/{aptos-A2P3fZwR.js → aptos-yj-TK3PA.js} +1 -1
- package/lib/{ccip-EX9Uy7uh.mjs → ccip-FGsI2Vy1.mjs} +3 -3
- package/lib/{ccip-MYRIWxwr.js → ccip-fjiaQRuA.js} +1 -1
- package/lib/{cosmos-LAGywRPJ.js → cosmos-AUjYaZap.js} +1 -1
- package/lib/{cosmos-8BhxGLk5.mjs → cosmos-MDA8Rp7a.mjs} +3 -3
- package/lib/{evm-rkkBtxAA.js → evm-AzWd7TIg.js} +3 -3
- package/lib/{evm-4xBDvIbh.mjs → evm-EK7l4v5F.mjs} +4 -4
- package/lib/{index-oQ6mMVQe.mjs → index-0q2THm2w.mjs} +3 -3
- package/lib/index-9vpoegf2.js +3 -0
- package/lib/{index-TXf-Y_5p.mjs → index-GqCbgO6w.mjs} +96 -87
- package/lib/{index-DiFBiIsU.js → index-Lyx2KgEl.js} +6 -6
- package/lib/{index-IzBi7jkq.js → index-M5muoSKm.js} +1 -1
- package/lib/{index-6l7AaQMo.mjs → index-U4-cs6LF.mjs} +68 -68
- package/lib/{index-HrOVvUmR.mjs → index-ZqzSOsNH.mjs} +1 -1
- package/lib/{index-f0MmfW4C.js → index-e4IwQovx.js} +1 -1
- package/lib/{index-SXsxLkBQ.mjs → index-i3M9x9ys.mjs} +2 -2
- package/lib/{index-DFThg9zD.js → index-uD29Qviy.js} +1 -1
- package/lib/{index.es-i0PmGTV8.js → index.es-3N17U6U-.js} +2 -2
- package/lib/{index.es-wdCYxk2S.mjs → index.es-4yp-p17j.mjs} +2 -2
- package/lib/{index.es-qoSsRT_G.mjs → index.es-D5PlxUXA.mjs} +4 -4
- package/lib/{index.es-dyXbfeDn.js → index.es-OMs0sEbV.js} +1 -1
- package/lib/{index.es-JGv9-9pp.js → index.es-m2T5sCHF.js} +1 -1
- package/lib/{index.es-B2GmSqJ1.mjs → index.es-sWP5wBk1.mjs} +1 -1
- package/lib/index.js +1 -1
- package/lib/index.mjs +1 -1
- package/lib/{libsodium-wrappers-x1Tf86Kb.js → libsodium-wrappers-LCJ8UHG9.js} +1 -1
- package/lib/{libsodium-wrappers-ffJoUj0j.mjs → libsodium-wrappers-w6994RX-.mjs} +1 -1
- package/lib/{sei-ams4Dv3V.js → sei-Oplz3AG7.js} +1 -1
- package/lib/{sei-yioT3-Yb.mjs → sei-w_LUpthw.mjs} +2 -2
- package/lib/{solana-VyhiGF9X.mjs → solana-1K5mHs_m.mjs} +3 -3
- package/lib/{solana-2Gb2ijrF.js → solana-GtJSObQi.js} +1 -1
- package/lib/{solanaEmbed.esm-AyFAReSD.js → solanaEmbed.esm-3t3NYEW9.js} +1 -1
- package/lib/{solanaEmbed.esm-O2q9SxIk.mjs → solanaEmbed.esm-7dEAUE3p.mjs} +2 -2
- package/lib/src/routes/ntt/chains/solana/nttManager.d.ts.map +1 -1
- package/lib/src/routes/ntt/chains/solana/nttQuoter.d.ts +2 -2
- package/lib/src/routes/ntt/chains/solana/nttQuoter.d.ts.map +1 -1
- package/lib/src/routes/ntt/nttRelay.d.ts.map +1 -1
- package/lib/{sui-8zqO_WMc.mjs → sui-Z4KdsJtV.mjs} +1 -1
- package/lib/{sui-vAj128v8.js → sui-tt-QRxQS.js} +1 -1
- package/package.json +1 -1
- package/dist/assets/index-bti7uInf.js +0 -3
- package/lib/index-FCAzcpcI.js +0 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Er, p as Zd, aY as Kd, d as pe, s as er, aT as Dr, F as Dn, aZ as Jd, q as Ye, aW as Xd, aR as ka, z as jf, a_ as Yd, a$ as Uf, b0 as Qd, u as eh, aP as Te, a9 as Da } from "./index-
|
|
2
|
-
import { s as th, h as rh, u as nh } from "./index-
|
|
1
|
+
import { g as Er, p as Zd, aY as Kd, d as pe, s as er, aT as Dr, F as Dn, aZ as Jd, q as Ye, aW as Xd, aR as ka, z as jf, a_ as Yd, a$ as Uf, b0 as Qd, u as eh, aP as Te, a9 as Da } from "./index-GqCbgO6w.mjs";
|
|
2
|
+
import { s as th, h as rh, u as nh } from "./index-U4-cs6LF.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
var $s = Nn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nttManager.d.ts","sourceRoot":"","sources":["../../../../../../src/routes/ntt/chains/solana/nttManager.ts"],"names":[],"mappings":";;AAAA,OAAO,EAEL,OAAO,EACP,SAAS,EACT,OAAO,EAER,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAGpD,OAAO,EACL,UAAU,EAEV,SAAS,EAET,sBAAsB,EAGvB,MAAM,iBAAiB,CAAC;AAMzB,OAAO,EAAE,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAY,MAAM,iCAAiC,CAAC;AAGtE,OAAO,EACL,2BAA2B,EAE5B,MAAM,8CAA8C,CAAC;AAgBtD,KAAK,MAAM,G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AIG;IACG,qBAAqB,CACzB,YAAY,EAAE,MAAM,GAAG,SAAS,GAC/B,OAAO,CAAC,SAAS,CAAC;IAcf,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAW9C"}
|
|
@@ -9,8 +9,8 @@ export declare class NttQuoter {
|
|
|
9
9
|
readonly instance: PublicKey;
|
|
10
10
|
constructor(programId: PublicKeyInitData);
|
|
11
11
|
isRelayEnabled(destChain: ChainName | ChainId): Promise<boolean>;
|
|
12
|
-
calcRelayCost(chain: ChainName | ChainId, requestedGasDropoffEth?: number): Promise<BN>;
|
|
13
|
-
createRequestRelayInstruction(payer: PublicKey, outboxItem: PublicKey, chain: ChainName | ChainId, maxFee: BN): Promise<import("@solana/web3.js").TransactionInstruction>;
|
|
12
|
+
calcRelayCost(chain: ChainName | ChainId, nttProgramId: string, requestedGasDropoffEth?: number): Promise<BN>;
|
|
13
|
+
createRequestRelayInstruction(payer: PublicKey, outboxItem: PublicKey, chain: ChainName | ChainId, maxFee: BN, nttProgramId: string): Promise<import("@solana/web3.js").TransactionInstruction>;
|
|
14
14
|
getInstance(): Promise<{
|
|
15
15
|
owner: PublicKey;
|
|
16
16
|
assistant: PublicKey;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nttQuoter.d.ts","sourceRoot":"","sources":["../../../../../../src/routes/ntt/chains/solana/nttQuoter.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EACL,iBAAiB,EACjB,SAAS,EAGT,UAAU,EACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,IAAI,aAAa,EAAO,MAAM,oBAAoB,CAAC;AA0BrE,qBAAa,SAAS;IACpB,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,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OAAO,CAAC,eAAe;IAOvB,OAAO,CAAC,SAAS;CAQlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nttRelay.d.ts","sourceRoot":"","sources":["../../../../src/routes/ntt/nttRelay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,UAAU,EACV,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EAEhB,MAAM,cAAc,CAAC;AAetB,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAYhD,qBAAa,QAAS,SAAQ,OAAO;IACnC,QAAQ,CAAC,4BAA4B,EAAE,OAAO,CAAS;IACvD,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAQ;IAC3C,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAkB;IAEhC,gBAAgB,CACpB,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,SAAS,GAAG,OAAO,EAChC,SAAS,EAAE,SAAS,GAAG,OAAO,GAC7B,OAAO,CAAC,OAAO,CAAC;IAsCb,aAAa,CACjB,WAAW,EAAE,SAAS,GAAG,OAAO,EAChC,SAAS,EAAE,SAAS,GAAG,OAAO,EAC9B,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"nttRelay.d.ts","sourceRoot":"","sources":["../../../../src/routes/ntt/nttRelay.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,2CAA2C,C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M,GAAG,SAAS,CAAC;CAa7E"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as Ut, ag as t, ah as S, ai as n, aj as j, ak as A, al as ue, am as v, an as p, ao as d, ap as a, aq as J, ar as Me, as as at, at as c, au as x, av as le, aw as H, W as Gt, c as Fe, ax as Qt, ay as Je, N as Yt, B as Ne } from "./index-
|
|
1
|
+
import { g as Ut, ag as t, ah as S, ai as n, aj as j, ak as A, al as ue, am as v, an as p, ao as d, ap as a, aq as J, ar as Me, as as at, at as c, au as x, av as le, aw as H, W as Gt, c as Fe, ax as Qt, ay as Je, N as Yt, B as Ne } from "./index-GqCbgO6w.mjs";
|
|
2
2
|
import { g as ot, R as Zt } from "./wallets-XPPz8jCP.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import "react-dom";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Lyx2KgEl.js"),ye=require("./wallets-dYYjlQ6_.js");require("react");require("react-dom");function pt(i){if(i.length>=255)throw new TypeError("Alphabet too long");for(var t=new Uint8Array(256),r=0;r<t.length;r++)t[r]=255;for(var n=0;n<i.length;n++){var s=i.charAt(n),a=s.charCodeAt(0);if(t[a]!==255)throw new TypeError(s+" is ambiguous");t[a]=n}var g=i.length,u=i.charAt(0),o=Math.log(g)/Math.log(256),c=Math.log(256)/Math.log(g);function A(l){if(l instanceof Uint8Array||(ArrayBuffer.isView(l)?l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength):Array.isArray(l)&&(l=Uint8Array.from(l))),!(l instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(l.length===0)return"";for(var d=0,N=0,y=0,p=l.length;y!==p&&l[y]===0;)y++,d++;for(var D=(p-y)*c+1>>>0,T=new Uint8Array(D);y!==p;){for(var z=l[y],B=0,h=D-1;(z!==0||B<N)&&h!==-1;h--,B++)z+=256*T[h]>>>0,T[h]=z%g>>>0,z=z/g>>>0;if(z!==0)throw new Error("Non-zero carry");N=B,y++}for(var O=D-N;O!==D&&T[O]===0;)O++;for(var $=u.repeat(d);O<D;++O)$+=i.charAt(T[O]);return $}function j(l){if(typeof l!="string")throw new TypeError("Expected String");if(l.length===0)return new Uint8Array;for(var d=0,N=0,y=0;l[d]===u;)N++,d++;for(var p=(l.length-d)*o+1>>>0,D=new Uint8Array(p);l[d];){var T=t[l.charCodeAt(d)];if(T===255)return;for(var z=0,B=p-1;(T!==0||z<y)&&B!==-1;B--,z++)T+=g*D[B]>>>0,D[B]=T%256>>>0,T=T/256>>>0;if(T!==0)throw new Error("Non-zero carry");y=z,d++}for(var h=p-y;h!==p&&D[h]===0;)h++;for(var O=new Uint8Array(N+(p-h)),$=N;h!==p;)O[$++]=D[h++];return O}function I(l){var d=j(l);if(d)return d;throw new Error("Non-base"+g+" character")}return{encode:A,decodeUnsafe:j,decode:I}}var Tt=pt;const Dt=Tt,bt="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";var St=Dt(bt);const Re=e.getDefaultExportFromCjs(St);function Lt(i){return i>64&&i<91?i-65:i>96&&i<123?i-71:i>47&&i<58?i+4:i===43?62:i===47?63:0}function re(i,t){for(var r=i.replace(/[^A-Za-z0-9+/]/g,""),n=r.length,s=t?Math.ceil((n*3+1>>2)/t)*t:n*3+1>>2,a=new Uint8Array(s),g,u,o=0,c=0,A=0;A<n;A++)if(u=A&3,o|=Lt(r.charCodeAt(A))<<6*(3-u),u===3||n-A===1){for(g=0;g<3&&c<s;g++,c++)a[c]=o>>>(16>>>g&24)&255;o=0}return a}function ee(i){return i<26?i+65:i<52?i+71:i<62?i-4:i===62?43:i===63?47:65}function q(i){for(var t=2,r="",n=i.length,s=0,a=0;a<n;a++)t=a%3,s|=i[a]<<(16>>>t&24),(t===2||i.length-a===1)&&(r+=String.fromCodePoint(ee(s>>>18&63),ee(s>>>12&63),ee(s>>>6&63),ee(s&63)),s=0);return r.slice(0,r.length-2+t)+(t===2?"":t===1?"=":"==")}function de(i){var s;const t=i.startsWith("0x")?i.slice(2):i,n=((s=(t.length%2===0?t:`0${t}}`).match(/.{2}/g))==null?void 0:s.map(a=>parseInt(a,16)))??[];return Uint8Array.from(n)}function Ne(i){return i.reduce((t,r)=>t+r.toString(16).padStart(2,"0"),"")}var mt=32;function ne(i,t){let r=new Uint8Array(t),n=0;for(;i>0;)r[n]=Number(i%BigInt(256)),i=i/BigInt(256),n+=1;return r}var We=i=>Re.encode(i),Ve=i=>Re.decode(i),ht=class{constructor(i){this.bytePosition=0,this.dataView=new DataView(i.buffer)}shift(i){return this.bytePosition+=i,this}read8(){let i=this.dataView.getUint8(this.bytePosition);return this.shift(1),i}read16(){let i=this.dataView.getUint16(this.bytePosition,!0);return this.shift(2),i}read32(){let i=this.dataView.getUint32(this.bytePosition,!0);return this.shift(4),i}read64(){let i=this.read32(),r=this.read32().toString(16)+i.toString(16).padStart(8,"0");return BigInt("0x"+r).toString(10)}read128(){let i=BigInt(this.read64()),r=BigInt(this.read64()).toString(16)+i.toString(16).padStart(16,"0");return BigInt("0x"+r).toString(10)}read256(){let i=BigInt(this.read128()),r=BigInt(this.read128()).toString(16)+i.toString(16).padStart(32,"0");return BigInt("0x"+r).toString(10)}readBytes(i){let t=this.bytePosition+this.dataView.byteOffset,r=new Uint8Array(this.dataView.buffer,t,i);return this.shift(i),r}readULEB(){let i=this.bytePosition+this.dataView.byteOffset,t=new Uint8Array(this.dataView.buffer,i),{value:r,length:n}=Ct(t);return this.shift(n),r}readVec(i){let t=this.readULEB(),r=[];for(let n=0;n<t;n++)r.push(i(this,n,t));return r}},wt=class{constructor({size:i=1024,maxSize:t,allocateSize:r=1024}={}){this.bytePosition=0,this.size=i,this.maxSize=t||i,this.allocateSize=r,this.dataView=new DataView(new ArrayBuffer(i))}ensureSizeOrGrow(i){const t=this.bytePosition+i;if(t>this.size){const r=Math.min(this.maxSize,this.size+this.allocateSize);if(t>r)throw new Error(`Attempting to serialize to BCS, but buffer does not have enough size. Allocated size: ${this.size}, Max size: ${this.maxSize}, Required size: ${t}`);this.size=r;const n=new ArrayBuffer(this.size);new Uint8Array(n).set(new Uint8Array(this.dataView.buffer)),this.dataView=new DataView(n)}}shift(i){return this.bytePosition+=i,this}write8(i){return this.ensureSizeOrGrow(1),this.dataView.setUint8(this.bytePosition,Number(i)),this.shift(1)}write16(i){return this.ensureSizeOrGrow(2),this.dataView.setUint16(this.bytePosition,Number(i),!0),this.shift(2)}write32(i){return this.ensureSizeOrGrow(4),this.dataView.setUint32(this.bytePosition,Number(i),!0),this.shift(4)}write64(i){return ne(BigInt(i),8).forEach(t=>this.write8(t)),this}write128(i){return ne(BigInt(i),16).forEach(t=>this.write8(t)),this}write256(i){return ne(BigInt(i),32).forEach(t=>this.write8(t)),this}writeULEB(i){return Et(i).forEach(t=>this.write8(t)),this}writeVec(i,t){return this.writeULEB(i.length),Array.from(i).forEach((r,n)=>t(this,r,n,i.length)),this}*[Symbol.iterator](){for(let i=0;i<this.bytePosition;i++)yield this.dataView.getUint8(i);return this.toBytes()}toBytes(){return new Uint8Array(this.dataView.buffer.slice(0,this.bytePosition))}toString(i){return zt(this.toBytes(),i)}};function Et(i){let t=[],r=0;if(i===0)return[0];for(;i>0;)t[r]=i&127,(i>>=7)&&(t[r]|=128),r+=1;return t}function Ct(i){let t=0,r=0,n=0;for(;;){let s=i[n];if(n+=1,t|=(s&127)<<r,!(s&128))break;r+=7}return{value:t,length:n}}var L=class X{constructor(t){if(this.types=new Map,this.counter=0,t instanceof X){this.schema=t.schema,this.types=new Map(t.types);return}if(this.schema=t,this.registerAddressType(X.ADDRESS,t.addressLength,t.addressEncoding),this.registerVectorType(t.vectorType),t.types&&t.types.structs)for(let r of Object.keys(t.types.structs))this.registerStructType(r,t.types.structs[r]);if(t.types&&t.types.enums)for(let r of Object.keys(t.types.enums))this.registerEnumType(r,t.types.enums[r]);if(t.types&&t.types.aliases)for(let r of Object.keys(t.types.aliases))this.registerAlias(r,t.types.aliases[r]);t.withPrimitives!==!1&&xt(this)}tempKey(){return`bcs-struct-${++this.counter}`}ser(t,r,n){if(typeof t=="string"||Array.isArray(t)){const{name:s,params:a}=this.parseTypeName(t);return this.getTypeInterface(s).encode(this,r,n,a)}if(typeof t=="object"){const s=this.tempKey();return new X(this).registerStructType(s,t).ser(s,r,n)}throw new Error(`Incorrect type passed into the '.ser()' function.
|
|
2
2
|
${JSON.stringify(t)}`)}de(t,r,n){if(typeof r=="string")if(n)r=ft(r,n);else throw new Error("To pass a string to `bcs.de`, specify encoding");if(typeof t=="string"||Array.isArray(t)){const{name:s,params:a}=this.parseTypeName(t);return this.getTypeInterface(s).decode(this,r,a)}if(typeof t=="object"){const s=new X(this),a=this.tempKey();return s.registerStructType(a,t).de(a,r,n)}throw new Error(`Incorrect type passed into the '.de()' function.
|
|
3
3
|
${JSON.stringify(t)}`)}hasType(t){return this.types.has(t)}registerAlias(t,r){return this.types.set(t,r),this}registerType(t,r,n,s=()=>!0){const{name:a,params:g}=this.parseTypeName(t);return this.types.set(a,{encode(u,o,c,A){const j=g.reduce((I,l,d)=>Object.assign(I,{[l]:A[d]}),{});return this._encodeRaw.call(u,new wt(c),o,A,j)},decode(u,o,c){const A=g.reduce((j,I,l)=>Object.assign(j,{[I]:c[l]}),{});return this._decodeRaw.call(u,new ht(o),c,A)},_encodeRaw(u,o,c,A){if(s(o))return r.call(this,u,o,c,A);throw new Error(`Validation failed for type ${a}, data: ${o}`)},_decodeRaw(u,o,c){return n.call(this,u,o,c)}}),this}registerAddressType(t,r,n="hex"){switch(n){case"base64":return this.registerType(t,function(a,g){return re(g).reduce((u,o)=>u.write8(o),a)},function(a){return q(a.readBytes(r))});case"hex":return this.registerType(t,function(a,g){return de(g).reduce((u,o)=>u.write8(o),a)},function(a){return Ne(a.readBytes(r))});default:throw new Error("Unsupported encoding! Use either hex or base64")}}registerVectorType(t){let{name:r,params:n}=this.parseTypeName(t);if(n.length>1)throw new Error("Vector can have only one type parameter; got "+r);return this.registerType(t,function(a,g,u,o){return a.writeVec(g,(c,A)=>{let j=u[0];if(!j)throw new Error(`Incorrect number of type parameters passed a to vector '${t}'`);let{name:I,params:l}=this.parseTypeName(j);if(this.hasType(I))return this.getTypeInterface(I)._encodeRaw.call(this,c,A,l,o);if(!(I in o))throw new Error(`Unable to find a matching type definition for ${I} in vector; make sure you passed a generic`);let{name:d,params:N}=this.parseTypeName(o[I]);return this.getTypeInterface(d)._encodeRaw.call(this,c,A,N,o)})},function(a,g,u){return a.readVec(o=>{let c=g[0];if(!c)throw new Error(`Incorrect number of type parameters passed to a vector '${t}'`);let{name:A,params:j}=this.parseTypeName(c);if(this.hasType(A))return this.getTypeInterface(A)._decodeRaw.call(this,o,j,u);if(!(A in u))throw new Error(`Unable to find a matching type definition for ${A} in vector; make sure you passed a generic`);let{name:I,params:l}=this.parseTypeName(u[A]);return this.getTypeInterface(I)._decodeRaw.call(this,o,l,u)})})}registerStructType(t,r){for(let u in r){let o=this.tempKey(),c=r[u];!Array.isArray(c)&&typeof c!="string"&&(r[u]=o,this.registerStructType(o,c))}let n=Object.freeze(r),s=Object.keys(n),{name:a,params:g}=this.parseTypeName(t);return this.registerType(t,function(o,c,A,j){if(!c||c.constructor!==Object)throw new Error(`Expected ${a} to be an Object, got: ${c}`);if(A.length!==g.length)throw new Error(`Incorrect number of generic parameters passed; expected: ${g.length}, got: ${A.length}`);for(let I of s){if(!(I in c))throw new Error(`Struct ${a} requires field ${I}:${n[I]}`);const{name:l,params:d}=this.parseTypeName(n[I]);if(!g.includes(l))this.getTypeInterface(l)._encodeRaw.call(this,o,c[I],d,j);else{const N=g.indexOf(l);let{name:y,params:p}=this.parseTypeName(A[N]);if(this.hasType(y)){this.getTypeInterface(y)._encodeRaw.call(this,o,c[I],p,j);continue}if(!(y in j))throw new Error(`Unable to find a matching type definition for ${y} in ${a}; make sure you passed a generic`);let{name:D,params:T}=this.parseTypeName(j[y]);this.getTypeInterface(D)._encodeRaw.call(this,o,c[I],T,j)}}return o},function(o,c,A){if(c.length!==g.length)throw new Error(`Incorrect number of generic parameters passed; expected: ${g.length}, got: ${c.length}`);let j={};for(let I of s){const{name:l,params:d}=this.parseTypeName(n[I]);if(!g.includes(l))j[I]=this.getTypeInterface(l)._decodeRaw.call(this,o,d,A);else{const N=g.indexOf(l);let{name:y,params:p}=this.parseTypeName(c[N]);if(this.hasType(y)){j[I]=this.getTypeInterface(y)._decodeRaw.call(this,o,p,A);continue}if(!(y in A))throw new Error(`Unable to find a matching type definition for ${y} in ${a}; make sure you passed a generic`);let{name:D,params:T}=this.parseTypeName(A[y]);j[I]=this.getTypeInterface(D)._decodeRaw.call(this,o,T,A)}}return j})}registerEnumType(t,r){for(let u in r){let o=this.tempKey(),c=r[u];c!==null&&!Array.isArray(c)&&typeof c!="string"&&(r[u]=o,this.registerStructType(o,c))}let n=Object.freeze(r),s=Object.keys(n),{name:a,params:g}=this.parseTypeName(t);return this.registerType(t,function(o,c,A,j){if(!c)throw new Error(`Unable to write enum "${a}", missing data.
|
|
4
4
|
Received: "${c}"`);if(typeof c!="object")throw new Error(`Incorrect data passed into enum "${a}", expected object with properties: "${s.join(" | ")}".
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import{q as P,b3 as Ye,b2 as Ze,d as Z,aY as it}from"../main.js";var Je={},Qe={exports:{}},je={};(function(o){o.fetch=n(P.fetch)&&n(P.ReadableStream),o.writableStream=n(P.WritableStream),o.abortController=n(P.AbortController);var r;function h(){if(r!==void 0)return r;if(P.XMLHttpRequest){r=new P.XMLHttpRequest;try{r.open("GET",P.XDomainRequest?"/":"https://example.com")}catch{r=null}}else r=null;return r}function f(g){var u=h();if(!u)return!1;try{return u.responseType=g,u.responseType===g}catch{}return!1}o.arraybuffer=o.fetch||f("arraybuffer"),o.msstream=!o.fetch&&f("ms-stream"),o.mozchunkedarraybuffer=!o.fetch&&f("moz-chunked-arraybuffer"),o.overrideMimeType=o.fetch||(h()?n(h().overrideMimeType):!1);function n(g){return typeof g=="function"}r=null})(je);var Oe={},Ke=je,ft=Ye(),et=Ze(),Ae=Oe.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},$e=Oe.IncomingMessage=function(o,r,h,f){var n=this;if(et.Readable.call(n),n._mode=h,n.headers={},n.rawHeaders=[],n.trailers={},n.rawTrailers=[],n.on("end",function(){Z.process.nextTick(function(){n.emit("close")})}),h==="fetch"){let C=function(){u.read().then(function(m){if(!n._destroyed){if(f(m.done),m.done){n.push(null);return}n.push(Z.Buffer.from(m.value)),C()}}).catch(function(m){f(!0),n._destroyed||n.emit("error",m)})};if(n._fetchResponse=r,n.url=r.url,n.statusCode=r.status,n.statusMessage=r.statusText,r.headers.forEach(function(m,A){n.headers[A.toLowerCase()]=m,n.rawHeaders.push(A,m)}),Ke.writableStream){var g=new WritableStream({write:function(m){return f(!1),new Promise(function(A,te){n._destroyed?te():n.push(Z.Buffer.from(m))?A():n._resumeFetch=A})},close:function(){f(!0),n._destroyed||n.push(null)},abort:function(m){f(!0),n._destroyed||n.emit("error",m)}});try{r.body.pipeTo(g).catch(function(m){f(!0),n._destroyed||n.emit("error",m)});return}catch{}}var u=r.body.getReader();C()}else{n._xhr=o,n._pos=0,n.url=o.responseURL,n.statusCode=o.status,n.statusMessage=o.statusText;var a=o.getAllResponseHeaders().split(/\r?\n/);if(a.forEach(function(C){var m=C.match(/^([^:]+):\s*(.*)/);if(m){var A=m[1].toLowerCase();A==="set-cookie"?(n.headers[A]===void 0&&(n.headers[A]=[]),n.headers[A].push(m[2])):n.headers[A]!==void 0?n.headers[A]+=", "+m[2]:n.headers[A]=m[2],n.rawHeaders.push(m[1],m[2])}}),n._charset="x-user-defined",!Ke.overrideMimeType){var v=n.rawHeaders["mime-type"];if(v){var T=v.match(/;\s*charset=([^;])(;|$)/);T&&(n._charset=T[1].toLowerCase())}n._charset||(n._charset="utf-8")}}};ft($e,et.Readable);$e.prototype._read=function(){var o=this,r=o._resumeFetch;r&&(o._resumeFetch=null,r())};$e.prototype._onXHRProgress=function(o){var r=this,h=r._xhr,f=null;switch(r._mode){case"text":if(f=h.responseText,f.length>r._pos){var n=f.substr(r._pos);if(r._charset==="x-user-defined"){for(var g=Z.Buffer.alloc(n.length),u=0;u<n.length;u++)g[u]=n.charCodeAt(u)&255;r.push(g)}else r.push(n,r._charset);r._pos=f.length}break;case"arraybuffer":if(h.readyState!==Ae.DONE||!h.response)break;f=h.response,r.push(Z.Buffer.from(new Uint8Array(f)));break;case"moz-chunked-arraybuffer":if(f=h.response,h.readyState!==Ae.LOADING||!f)break;r.push(Z.Buffer.from(new Uint8Array(f)));break;case"ms-stream":if(f=h.response,h.readyState!==Ae.LOADING)break;var a=new P.MSStreamReader;a.onprogress=function(){a.result.byteLength>r._pos&&(r.push(Z.Buffer.from(new Uint8Array(a.result.slice(r._pos)))),r._pos=a.result.byteLength)},a.onload=function(){o(!0),r.push(null)},a.readAsArrayBuffer(f);break}r._xhr.readyState===Ae.DONE&&r._mode!=="ms-stream"&&(o(!0),r.push(null))};var he=je,ht=Ye(),tt=Oe,ke=Ze(),ut=tt.IncomingMessage,Ve=tt.readyStates;function ct(o,r){return he.fetch&&r?"fetch":he.mozchunkedarraybuffer?"moz-chunked-arraybuffer":he.msstream?"ms-stream":he.arraybuffer&&o?"arraybuffer":"text"}var I=Qe.exports=function(o){var r=this;ke.Writable.call(r),r._opts=o,r._body=[],r._headers={},o.auth&&r.setHeader("Authorization","Basic "+Z.Buffer.from(o.auth).toString("base64")),Object.keys(o.headers).forEach(function(n){r.setHeader(n,o.headers[n])});var h,f=!0;if(o.mode==="disable-fetch"||"requestTimeout"in o&&!he.abortController)f=!1,h=!0;else if(o.mode==="prefer-streaming")h=!1;else if(o.mode==="allow-wrong-content-type")h=!he.overrideMimeType;else if(!o.mode||o.mode==="default"||o.mode==="prefer-fast")h=!0;else throw new Error("Invalid value for opts.mode");r._mode=ct(h,f),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",function(){r._onFinish()})};ht(I,ke.Writable);I.prototype.setHeader=function(o,r){var h=this,f=o.toLowerCase();pt.indexOf(f)===-1&&(h._headers[f]={name:o,value:r})};I.prototype.getHeader=function(o){var r=this._headers[o.toLowerCase()];return r?r.value:null};I.prototype.removeHeader=function(o){var r=this;delete r._headers[o.toLowerCase()]};I.prototype._onFinish=function(){var o=this;if(!o._destroyed){var r=o._opts;"timeout"in r&&r.timeout!==0&&o.setTimeout(r.timeout);var h=o._headers,f=null;r.method!=="GET"&&r.method!=="HEAD"&&(f=new Blob(o._body,{type:(h["content-type"]||{}).value||""}));var n=[];if(Object.keys(h).forEach(function(v){var T=h[v].name,C=h[v].value;Array.isArray(C)?C.forEach(function(m){n.push([T,m])}):n.push([T,C])}),o._mode==="fetch"){var g=null;if(he.abortController){var u=new AbortController;g=u.signal,o._fetchAbortController=u,"requestTimeout"in r&&r.requestTimeout!==0&&(o._fetchTimer=P.setTimeout(function(){o.emit("requestTimeout"),o._fetchAbortController&&o._fetchAbortController.abort()},r.requestTimeout))}P.fetch(o._opts.url,{method:o._opts.method,headers:n,body:f||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin",signal:g}).then(function(v){o._fetchResponse=v,o._resetTimers(!1),o._connect()},function(v){o._resetTimers(!0),o._destroyed||o.emit("error",v)})}else{var a=o._xhr=new P.XMLHttpRequest;try{a.open(o._opts.method,o._opts.url,!0)}catch(v){Z.process.nextTick(function(){o.emit("error",v)});return}"responseType"in a&&(a.responseType=o._mode),"withCredentials"in a&&(a.withCredentials=!!r.withCredentials),o._mode==="text"&&"overrideMimeType"in a&&a.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in r&&(a.timeout=r.requestTimeout,a.ontimeout=function(){o.emit("requestTimeout")}),n.forEach(function(v){a.setRequestHeader(v[0],v[1])}),o._response=null,a.onreadystatechange=function(){switch(a.readyState){case Ve.LOADING:case Ve.DONE:o._onXHRProgress();break}},o._mode==="moz-chunked-arraybuffer"&&(a.onprogress=function(){o._onXHRProgress()}),a.onerror=function(){o._destroyed||(o._resetTimers(!0),o.emit("error",new Error("XHR error")))};try{a.send(f)}catch(v){Z.process.nextTick(function(){o.emit("error",v)});return}}}};function lt(o){try{var r=o.status;return r!==null&&r!==0}catch{return!1}}I.prototype._onXHRProgress=function(){var o=this;o._resetTimers(!1),!(!lt(o._xhr)||o._destroyed)&&(o._response||o._connect(),o._response._onXHRProgress(o._resetTimers.bind(o)))};I.prototype._connect=function(){var o=this;o._destroyed||(o._response=new ut(o._xhr,o._fetchResponse,o._mode,o._resetTimers.bind(o)),o._response.on("error",function(r){o.emit("error",r)}),o.emit("response",o._response))};I.prototype._write=function(o,r,h){var f=this;f._body.push(o),h()};I.prototype._resetTimers=function(o){var r=this;P.clearTimeout(r._socketTimer),r._socketTimer=null,o?(P.clearTimeout(r._fetchTimer),r._fetchTimer=null):r._socketTimeout&&(r._socketTimer=P.setTimeout(function(){r.emit("timeout")},r._socketTimeout))};I.prototype.abort=I.prototype.destroy=function(o){var r=this;r._destroyed=!0,r._resetTimers(!0),r._response&&(r._response._destroyed=!0),r._xhr?r._xhr.abort():r._fetchAbortController&&r._fetchAbortController.abort(),o&&r.emit("error",o)};I.prototype.end=function(o,r,h){var f=this;typeof o=="function"&&(h=o,o=void 0),ke.Writable.prototype.end.call(f,o,r,h)};I.prototype.setTimeout=function(o,r){var h=this;r&&h.once("timeout",r),h._socketTimeout=o,h._resetTimers(!1)};I.prototype.flushHeaders=function(){};I.prototype.setNoDelay=function(){};I.prototype.setSocketKeepAlive=function(){};var pt=["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"],dt=Qe.exports,mt=yt,vt=Object.prototype.hasOwnProperty;function yt(){for(var o={},r=0;r<arguments.length;r++){var h=arguments[r];for(var f in h)vt.call(h,f)&&(o[f]=h[f])}return o}var gt={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},He={exports:{}},qe={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */qe.exports;(function(o,r){(function(h){var f=r&&!r.nodeType&&r,n=o&&!o.nodeType&&o,g=typeof P=="object"&&P;(g.global===g||g.window===g||g.self===g)&&(h=g);var u,a=2147483647,v=36,T=1,C=26,m=38,A=700,te=72,ae=128,S="-",xe=/^xn--/,Ee=/[^\x20-\x7E]/,Ue=/[\x2E\u3002\uFF0E\uFF61]/g,Le={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},pe=v-T,M=Math.floor,re=String.fromCharCode,ie;function J(i){throw new RangeError(Le[i])}function de(i,p){for(var y=i.length,b=[];y--;)b[y]=p(i[y]);return b}function be(i,p){var y=i.split("@"),b="";y.length>1&&(b=y[0]+"@",i=y[1]),i=i.replace(Ue,".");var w=i.split("."),U=de(w,p).join(".");return b+U}function Te(i){for(var p=[],y=0,b=i.length,w,U;y<b;)w=i.charCodeAt(y++),w>=55296&&w<=56319&&y<b?(U=i.charCodeAt(y++),(U&64512)==56320?p.push(((w&1023)<<10)+(U&1023)+65536):(p.push(w),y--)):p.push(w);return p}function ue(i){return de(i,function(p){var y="";return p>65535&&(p-=65536,y+=re(p>>>10&1023|55296),p=56320|p&1023),y+=re(p),y}).join("")}function oe(i){return i-48<10?i-22:i-65<26?i-65:i-97<26?i-97:v}function ce(i,p){return i+22+75*(i<26)-((p!=0)<<5)}function ne(i,p,y){var b=0;for(i=y?M(i/A):i>>1,i+=M(i/p);i>pe*C>>1;b+=v)i=M(i/pe);return M(b+(pe+1)*i/(i+m))}function we(i){var p=[],y=i.length,b,w=0,U=ae,q=te,R,N,B,G,L,H,k,W,Q;for(R=i.lastIndexOf(S),R<0&&(R=0),N=0;N<R;++N)i.charCodeAt(N)>=128&&J("not-basic"),p.push(i.charCodeAt(N));for(B=R>0?R+1:0;B<y;){for(G=w,L=1,H=v;B>=y&&J("invalid-input"),k=oe(i.charCodeAt(B++)),(k>=v||k>M((a-w)/L))&&J("overflow"),w+=k*L,W=H<=q?T:H>=q+C?C:H-q,!(k<W);H+=v)Q=v-W,L>M(a/Q)&&J("overflow"),L*=Q;b=p.length+1,q=ne(w-G,b,G==0),M(w/b)>a-U&&J("overflow"),U+=M(w/b),w%=b,p.splice(w++,0,U)}return ue(p)}function Re(i){var p,y,b,w,U,q,R,N,B,G,L,H=[],k,W,Q,me;for(i=Te(i),k=i.length,p=ae,y=0,U=te,q=0;q<k;++q)L=i[q],L<128&&H.push(re(L));for(b=w=H.length,w&&H.push(S);b<k;){for(R=a,q=0;q<k;++q)L=i[q],L>=p&&L<R&&(R=L);for(W=b+1,R-p>M((a-y)/W)&&J("overflow"),y+=(R-p)*W,p=R,q=0;q<k;++q)if(L=i[q],L<p&&++y>a&&J("overflow"),L==p){for(N=y,B=v;G=B<=U?T:B>=U+C?C:B-U,!(N<G);B+=v)me=N-G,Q=v-G,H.push(re(ce(G+me%Q,0))),N=M(me/Q);H.push(re(ce(N,0))),U=ne(y,W,b==w),y=0,++b}++y,++p}return H.join("")}function Pe(i){return be(i,function(p){return xe.test(p)?we(p.slice(4).toLowerCase()):p})}function Ie(i){return be(i,function(p){return Ee.test(p)?"xn--"+Re(p):p})}if(u={version:"1.4.1",ucs2:{decode:Te,encode:ue},decode:we,encode:Re,toASCII:Ie,toUnicode:Pe},f&&n)if(o.exports==f)n.exports=u;else for(ie in u)u.hasOwnProperty(ie)&&(f[ie]=u[ie]);else h.punycode=u})(P)})(qe,qe.exports);var _t=qe.exports;(function(o,r){Object.defineProperty(r,"__esModule",{value:!0});var h=_t,f=it;function n(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var g=n(h),u=n(f),a={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},v=g.default,T=a,C=ne,m=Re,A=Pe,te=we,ae=S;function S(){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}var xe=/^([a-z0-9.+-]+:)/i,Ee=/:[0-9]*$/,Ue=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Le=["<",">",'"',"`"," ","\r",`
|
|
2
|
-
`," "],pe=["{","}","|","\\","^","`"].concat(Le),M=["'"].concat(pe),re=["%","/","?",";","#"].concat(M),ie=["/","?","#"],J=255,de=/^[+a-z0-9A-Z_-]{0,63}$/,be=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Te={javascript:!0,"javascript:":!0},ue={javascript:!0,"javascript:":!0},oe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ce=u.default;function ne(e,s,t){if(e&&T.isObject(e)&&e instanceof S)return e;var l=new S;return l.parse(e,s,t),l}S.prototype.parse=function(e,s,t){if(!T.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var l=e.indexOf("?"),_=l!==-1&&l<e.indexOf("#")?"?":"#",D=e.split(_),j=/\\/g;D[0]=D[0].replace(j,"/"),e=D.join(_);var c=e;if(c=c.trim(),!t&&e.split("#").length===1){var K=Ue.exec(c);if(K)return this.path=c,this.href=c,this.pathname=K[1],K[2]?(this.search=K[2],s?this.query=ce.parse(this.search.substr(1)):this.query=this.search.substr(1)):s&&(this.search="",this.query={}),this}var O=xe.exec(c);if(O){O=O[0];var fe=O.toLowerCase();this.protocol=fe,c=c.substr(O.length)}if(t||O||c.match(/^\/\/[^@\/]+@[^@\/]+/)){var ve=c.substr(0,2)==="//";ve&&!(O&&ue[O])&&(c=c.substr(2),this.slashes=!0)}if(!ue[O]&&(ve||O&&!oe[O])){for(var F=-1,x=0;x<ie.length;x++){var ee=c.indexOf(ie[x]);ee!==-1&&(F===-1||ee<F)&&(F=ee)}var ye,$;F===-1?$=c.lastIndexOf("@"):$=c.lastIndexOf("@",F),$!==-1&&(ye=c.slice(0,$),c=c.slice($+1),this.auth=decodeURIComponent(ye)),F=-1;for(var x=0;x<re.length;x++){var ee=c.indexOf(re[x]);ee!==-1&&(F===-1||ee<F)&&(F=ee)}F===-1&&(F=c.length),this.host=c.slice(0,F),c=c.slice(F),this.parseHost(),this.hostname=this.hostname||"";var ge=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ge)for(var d=this.hostname.split(/\./),x=0,E=d.length;x<E;x++){var V=d[x];if(V&&!V.match(de)){for(var z="",X=0,Se=V.length;X<Se;X++)V.charCodeAt(X)>127?z+="x":z+=V[X];if(!z.match(de)){var se=d.slice(0,x),Y=d.slice(x+1),le=V.match(be);le&&(se.push(le[1]),Y.unshift(le[2])),Y.length&&(c="/"+Y.join(".")+c),this.hostname=se.join(".");break}}}this.hostname.length>J?this.hostname="":this.hostname=this.hostname.toLowerCase(),ge||(this.hostname=v.toASCII(this.hostname));var Fe=this.port?":"+this.port:"",st=this.hostname||"";this.host=st+Fe,this.href+=this.host,ge&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),c[0]!=="/"&&(c="/"+c))}if(!Te[fe])for(var x=0,E=M.length;x<E;x++){var _e=M[x];if(c.indexOf(_e)!==-1){var Me=encodeURIComponent(_e);Me===_e&&(Me=escape(_e)),c=c.split(_e).join(Me)}}var Ne=c.indexOf("#");Ne!==-1&&(this.hash=c.substr(Ne),c=c.slice(0,Ne));var Ce=c.indexOf("?");if(Ce!==-1?(this.search=c.substr(Ce),this.query=c.substr(Ce+1),s&&(this.query=ce.parse(this.query)),c=c.slice(0,Ce)):s&&(this.search="",this.query={}),c&&(this.pathname=c),oe[fe]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Fe=this.pathname||"",at=this.search||"";this.path=Fe+at}return this.href=this.format(),this};function we(e){return T.isString(e)&&(e=ne(e)),e instanceof S?e.format():S.prototype.format.call(e)}S.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var s=this.protocol||"",t=this.pathname||"",l=this.hash||"",_=!1,D="";this.host?_=e+this.host:this.hostname&&(_=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(_+=":"+this.port)),this.query&&T.isObject(this.query)&&Object.keys(this.query).length&&(D=ce.stringify(this.query));var j=this.search||D&&"?"+D||"";return s&&s.substr(-1)!==":"&&(s+=":"),this.slashes||(!s||oe[s])&&_!==!1?(_="//"+(_||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):_||(_=""),l&&l.charAt(0)!=="#"&&(l="#"+l),j&&j.charAt(0)!=="?"&&(j="?"+j),t=t.replace(/[?#]/g,function(c){return encodeURIComponent(c)}),j=j.replace("#","%23"),s+_+t+j+l};function Re(e,s){return ne(e,!1,!0).resolve(s)}S.prototype.resolve=function(e){return this.resolveObject(ne(e,!1,!0)).format()};function Pe(e,s){return e?ne(e,!1,!0).resolveObject(s):s}S.prototype.resolveObject=function(e){if(T.isString(e)){var s=new S;s.parse(e,!1,!0),e=s}for(var t=new S,l=Object.keys(this),_=0;_<l.length;_++){var D=l[_];t[D]=this[D]}if(t.hash=e.hash,e.href==="")return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var j=Object.keys(e),c=0;c<j.length;c++){var K=j[c];K!=="protocol"&&(t[K]=e[K])}return oe[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!oe[e.protocol]){for(var O=Object.keys(e),fe=0;fe<O.length;fe++){var ve=O[fe];t[ve]=e[ve]}return t.href=t.format(),t}if(t.protocol=e.protocol,!e.host&&!ue[e.protocol]){for(var E=(e.pathname||"").split("/");E.length&&!(e.host=E.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),E[0]!==""&&E.unshift(""),E.length<2&&E.unshift(""),t.pathname=E.join("/")}else t.pathname=e.pathname;if(t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,t.pathname||t.search){var F=t.pathname||"",x=t.search||"";t.path=F+x}return t.slashes=t.slashes||e.slashes,t.href=t.format(),t}var ee=t.pathname&&t.pathname.charAt(0)==="/",ye=e.host||e.pathname&&e.pathname.charAt(0)==="/",$=ye||ee||t.host&&e.pathname,ge=$,d=t.pathname&&t.pathname.split("/")||[],E=e.pathname&&e.pathname.split("/")||[],V=t.protocol&&!oe[t.protocol];if(V&&(t.hostname="",t.port=null,t.host&&(d[0]===""?d[0]=t.host:d.unshift(t.host)),t.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(E[0]===""?E[0]=e.host:E.unshift(e.host)),e.host=null),$=$&&(E[0]===""||d[0]==="")),ye)t.host=e.host||e.host===""?e.host:t.host,t.hostname=e.hostname||e.hostname===""?e.hostname:t.hostname,t.search=e.search,t.query=e.query,d=E;else if(E.length)d||(d=[]),d.pop(),d=d.concat(E),t.search=e.search,t.query=e.query;else if(!T.isNullOrUndefined(e.search)){if(V){t.hostname=t.host=d.shift();var z=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;z&&(t.auth=z.shift(),t.host=t.hostname=z.shift())}return t.search=e.search,t.query=e.query,(!T.isNull(t.pathname)||!T.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!d.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var X=d.slice(-1)[0],Se=(t.host||e.host||d.length>1)&&(X==="."||X==="..")||X==="",se=0,Y=d.length;Y>=0;Y--)X=d[Y],X==="."?d.splice(Y,1):X===".."?(d.splice(Y,1),se++):se&&(d.splice(Y,1),se--);if(!$&&!ge)for(;se--;se)d.unshift("..");$&&d[0]!==""&&(!d[0]||d[0].charAt(0)!=="/")&&d.unshift(""),Se&&d.join("/").substr(-1)!=="/"&&d.push("");var le=d[0]===""||d[0]&&d[0].charAt(0)==="/";if(V){t.hostname=t.host=le?"":d.length?d.shift():"";var z=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;z&&(t.auth=z.shift(),t.host=t.hostname=z.shift())}return $=$||t.host&&d.length,$&&!le&&d.unshift(""),d.length?t.pathname=d.join("/"):(t.pathname=null,t.path=null),(!T.isNull(t.pathname)||!T.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=t.format(),t},S.prototype.parseHost=function(){var e=this.host,s=Ee.exec(e);s&&(s=s[0],s!==":"&&(this.port=s.substr(1)),e=e.substr(0,e.length-s.length)),e&&(this.hostname=e)};function Ie(e,s){for(var t=0,l=e.length-1;l>=0;l--){var _=e[l];_==="."?e.splice(l,1):_===".."?(e.splice(l,1),t++):t&&(e.splice(l,1),t--)}if(s)for(;t--;t)e.unshift("..");return e}function i(){for(var e="",s=!1,t=arguments.length-1;t>=-1&&!s;t--){var l=t>=0?arguments[t]:"/";if(typeof l!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!l)continue;e=l+"/"+e,s=l.charAt(0)==="/"}return e=Ie(p(e.split("/"),function(_){return!!_}),!s).join("/"),(s?"/":"")+e||"."}function p(e,s){if(e.filter)return e.filter(s);for(var t=[],l=0;l<e.length;l++)s(e[l],l,e)&&t.push(e[l]);return t}var y=function(e){function s(){var l=this||self;return delete e.prototype.__magic__,l}if(typeof globalThis=="object")return globalThis;if(this)return s();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:s});var t=__magic__;return t}(Object),b=te,w=C,U=m,q=ae,R=y.URL,N=y.URLSearchParams,B=/%/g,G=/\\/g,L=/\n/g,H=/\r/g,k=/\t/g,W=47;function Q(e){var s=e??null;return!!(s!==null&&(s!=null&&s.href)&&(s!=null&&s.origin))}function me(e){if(e.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var s=e.pathname,t=0;t<s.length;t++)if(s[t]==="%"){var l=s.codePointAt(t+2)|32;if(s[t+1]==="2"&&l===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(s)}function nt(e){return e.includes("%")&&(e=e.replace(B,"%25")),e.includes("\\")&&(e=e.replace(G,"%5C")),e.includes(`
|
|
3
|
-
`)&&(e=e.replace(L,"%0A")),e.includes("\r")&&(e=e.replace(H,"%0D")),e.includes(" ")&&(e=e.replace(k,"%09")),e}var De=function(s){if(typeof s>"u")throw new TypeError('The "domain" argument must be specified');return new R("http://"+s).hostname},Be=function(s){if(typeof s>"u")throw new TypeError('The "domain" argument must be specified');return new R("http://"+s).hostname},Ge=function(s){var t=new R("file://"),l=i(s),_=s.charCodeAt(s.length-1);return _===W&&l[l.length-1]!=="/"&&(l+="/"),t.pathname=nt(l),t},ze=function(s){if(!Q(s)&&typeof s!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof s+" ("+s+")");var t=new R(s);if(t.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return me(t)},Xe=function(s,t){var l,_,D;if(t===void 0&&(t={}),!(s instanceof R))return b(s);if(typeof t!="object"||t===null)throw new TypeError('The "options" argument must be of type object.');var j=(l=t.auth)!=null?l:!0,c=(_=t.fragment)!=null?_:!0,K=(D=t.search)!=null?D:!0,O=new R(s.toString());return j||(O.username="",O.password=""),c||(O.hash=""),K||(O.search=""),O.toString()},We={format:Xe,parse:w,resolve:U,resolveObject:A,Url:q,URL:R,URLSearchParams:N,domainToASCII:De,domainToUnicode:Be,pathToFileURL:Ge,fileURLToPath:ze};r.URL=R,r.URLSearchParams=N,r.Url=q,r.default=We,r.domainToASCII=De,r.domainToUnicode=Be,r.fileURLToPath=ze,r.format=Xe,r.parse=w,r.pathToFileURL=Ge,r.resolve=U,r.resolveObject=A,r=o.exports=We})(He,He.exports);var rt=He.exports;(function(o){var r=dt,h=Oe,f=mt,n=gt,g=rt,u=o;u.request=function(a,v){typeof a=="string"?a=g.parse(a):a=f(a);var T=P.location.protocol.search(/^https?:$/)===-1?"http:":"",C=a.protocol||T,m=a.hostname||a.host,A=a.port,te=a.path||"/";m&&m.indexOf(":")!==-1&&(m="["+m+"]"),a.url=(m?C+"//"+m:"")+(A?":"+A:"")+te,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var ae=new r(a);return v&&ae.on("response",v),ae},u.get=function(v,T){var C=u.request(v,T);return C.end(),C},u.ClientRequest=r,u.IncomingMessage=h.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=n,u.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"]})(Je);var ot={exports:{}};(function(o){var r=Je,h=rt,f=o.exports;for(var n in r)r.hasOwnProperty(n)&&(f[n]=r[n]);f.request=function(u,a){return u=g(u),r.request.call(this,u,a)},f.get=function(u,a){return u=g(u),r.get.call(this,u,a)};function g(u){if(typeof u=="string"&&(u=h.parse(u)),u.protocol||(u.protocol="https:"),u.protocol!=="https:")throw new Error('Protocol "'+u.protocol+'" not supported. Expected "https:"');return u}})(ot);var Tt=ot.exports;export{Tt as h,Je as s,rt as u};
|
package/lib/index-FCAzcpcI.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";const g=require("./index-DiFBiIsU.js");var Ne={},Ze={exports:{}},He={};(function(o){o.fetch=n(g.commonjsGlobal.fetch)&&n(g.commonjsGlobal.ReadableStream),o.writableStream=n(g.commonjsGlobal.WritableStream),o.abortController=n(g.commonjsGlobal.AbortController);var r;function h(){if(r!==void 0)return r;if(g.commonjsGlobal.XMLHttpRequest){r=new g.commonjsGlobal.XMLHttpRequest;try{r.open("GET",g.commonjsGlobal.XDomainRequest?"/":"https://example.com")}catch{r=null}}else r=null;return r}function f(b){var u=h();if(!u)return!1;try{return u.responseType=b,u.responseType===b}catch{}return!1}o.arraybuffer=o.fetch||f("arraybuffer"),o.msstream=!o.fetch&&f("ms-stream"),o.mozchunkedarraybuffer=!o.fetch&&f("moz-chunked-arraybuffer"),o.overrideMimeType=o.fetch||(h()?n(h().overrideMimeType):!1);function n(b){return typeof b=="function"}r=null})(He);var xe={},Ve=He,nt=g.inherits_browserExports,Je=g.requireReadableBrowser(),Ce=xe.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},Ge=xe.IncomingMessage=function(o,r,h,f){var n=this;if(Je.Readable.call(n),n._mode=h,n.headers={},n.rawHeaders=[],n.trailers={},n.rawTrailers=[],n.on("end",function(){g.dist.process.nextTick(function(){n.emit("close")})}),h==="fetch"){let A=function(){u.read().then(function(d){if(!n._destroyed){if(f(d.done),d.done){n.push(null);return}n.push(g.dist.Buffer.from(d.value)),A()}}).catch(function(d){f(!0),n._destroyed||n.emit("error",d)})};if(n._fetchResponse=r,n.url=r.url,n.statusCode=r.status,n.statusMessage=r.statusText,r.headers.forEach(function(d,x){n.headers[x.toLowerCase()]=d,n.rawHeaders.push(x,d)}),Ve.writableStream){var b=new WritableStream({write:function(d){return f(!1),new Promise(function(x,ee){n._destroyed?ee():n.push(g.dist.Buffer.from(d))?x():n._resumeFetch=x})},close:function(){f(!0),n._destroyed||n.push(null)},abort:function(d){f(!0),n._destroyed||n.emit("error",d)}});try{r.body.pipeTo(b).catch(function(d){f(!0),n._destroyed||n.emit("error",d)});return}catch{}}var u=r.body.getReader();A()}else{n._xhr=o,n._pos=0,n.url=o.responseURL,n.statusCode=o.status,n.statusMessage=o.statusText;var a=o.getAllResponseHeaders().split(/\r?\n/);if(a.forEach(function(A){var d=A.match(/^([^:]+):\s*(.*)/);if(d){var x=d[1].toLowerCase();x==="set-cookie"?(n.headers[x]===void 0&&(n.headers[x]=[]),n.headers[x].push(d[2])):n.headers[x]!==void 0?n.headers[x]+=", "+d[2]:n.headers[x]=d[2],n.rawHeaders.push(d[1],d[2])}}),n._charset="x-user-defined",!Ve.overrideMimeType){var v=n.rawHeaders["mime-type"];if(v){var w=v.match(/;\s*charset=([^;])(;|$)/);w&&(n._charset=w[1].toLowerCase())}n._charset||(n._charset="utf-8")}}};nt(Ge,Je.Readable);Ge.prototype._read=function(){var o=this,r=o._resumeFetch;r&&(o._resumeFetch=null,r())};Ge.prototype._onXHRProgress=function(o){var r=this,h=r._xhr,f=null;switch(r._mode){case"text":if(f=h.responseText,f.length>r._pos){var n=f.substr(r._pos);if(r._charset==="x-user-defined"){for(var b=g.dist.Buffer.alloc(n.length),u=0;u<n.length;u++)b[u]=n.charCodeAt(u)&255;r.push(b)}else r.push(n,r._charset);r._pos=f.length}break;case"arraybuffer":if(h.readyState!==Ce.DONE||!h.response)break;f=h.response,r.push(g.dist.Buffer.from(new Uint8Array(f)));break;case"moz-chunked-arraybuffer":if(f=h.response,h.readyState!==Ce.LOADING||!f)break;r.push(g.dist.Buffer.from(new Uint8Array(f)));break;case"ms-stream":if(f=h.response,h.readyState!==Ce.LOADING)break;var a=new g.commonjsGlobal.MSStreamReader;a.onprogress=function(){a.result.byteLength>r._pos&&(r.push(g.dist.Buffer.from(new Uint8Array(a.result.slice(r._pos)))),r._pos=a.result.byteLength)},a.onload=function(){o(!0),r.push(null)},a.readAsArrayBuffer(f);break}r._xhr.readyState===Ce.DONE&&r._mode!=="ms-stream"&&(o(!0),r.push(null))};var fe=He,st=g.inherits_browserExports,Qe=xe,ke=g.requireReadableBrowser(),at=Qe.IncomingMessage,Ye=Qe.readyStates;function it(o,r){return fe.fetch&&r?"fetch":fe.mozchunkedarraybuffer?"moz-chunked-arraybuffer":fe.msstream?"ms-stream":fe.arraybuffer&&o?"arraybuffer":"text"}var S=Ze.exports=function(o){var r=this;ke.Writable.call(r),r._opts=o,r._body=[],r._headers={},o.auth&&r.setHeader("Authorization","Basic "+g.dist.Buffer.from(o.auth).toString("base64")),Object.keys(o.headers).forEach(function(n){r.setHeader(n,o.headers[n])});var h,f=!0;if(o.mode==="disable-fetch"||"requestTimeout"in o&&!fe.abortController)f=!1,h=!0;else if(o.mode==="prefer-streaming")h=!1;else if(o.mode==="allow-wrong-content-type")h=!fe.overrideMimeType;else if(!o.mode||o.mode==="default"||o.mode==="prefer-fast")h=!0;else throw new Error("Invalid value for opts.mode");r._mode=it(h,f),r._fetchTimer=null,r._socketTimeout=null,r._socketTimer=null,r.on("finish",function(){r._onFinish()})};st(S,ke.Writable);S.prototype.setHeader=function(o,r){var h=this,f=o.toLowerCase();ht.indexOf(f)===-1&&(h._headers[f]={name:o,value:r})};S.prototype.getHeader=function(o){var r=this._headers[o.toLowerCase()];return r?r.value:null};S.prototype.removeHeader=function(o){var r=this;delete r._headers[o.toLowerCase()]};S.prototype._onFinish=function(){var o=this;if(!o._destroyed){var r=o._opts;"timeout"in r&&r.timeout!==0&&o.setTimeout(r.timeout);var h=o._headers,f=null;r.method!=="GET"&&r.method!=="HEAD"&&(f=new Blob(o._body,{type:(h["content-type"]||{}).value||""}));var n=[];if(Object.keys(h).forEach(function(v){var w=h[v].name,A=h[v].value;Array.isArray(A)?A.forEach(function(d){n.push([w,d])}):n.push([w,A])}),o._mode==="fetch"){var b=null;if(fe.abortController){var u=new AbortController;b=u.signal,o._fetchAbortController=u,"requestTimeout"in r&&r.requestTimeout!==0&&(o._fetchTimer=g.commonjsGlobal.setTimeout(function(){o.emit("requestTimeout"),o._fetchAbortController&&o._fetchAbortController.abort()},r.requestTimeout))}g.commonjsGlobal.fetch(o._opts.url,{method:o._opts.method,headers:n,body:f||void 0,mode:"cors",credentials:r.withCredentials?"include":"same-origin",signal:b}).then(function(v){o._fetchResponse=v,o._resetTimers(!1),o._connect()},function(v){o._resetTimers(!0),o._destroyed||o.emit("error",v)})}else{var a=o._xhr=new g.commonjsGlobal.XMLHttpRequest;try{a.open(o._opts.method,o._opts.url,!0)}catch(v){g.dist.process.nextTick(function(){o.emit("error",v)});return}"responseType"in a&&(a.responseType=o._mode),"withCredentials"in a&&(a.withCredentials=!!r.withCredentials),o._mode==="text"&&"overrideMimeType"in a&&a.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in r&&(a.timeout=r.requestTimeout,a.ontimeout=function(){o.emit("requestTimeout")}),n.forEach(function(v){a.setRequestHeader(v[0],v[1])}),o._response=null,a.onreadystatechange=function(){switch(a.readyState){case Ye.LOADING:case Ye.DONE:o._onXHRProgress();break}},o._mode==="moz-chunked-arraybuffer"&&(a.onprogress=function(){o._onXHRProgress()}),a.onerror=function(){o._destroyed||(o._resetTimers(!0),o.emit("error",new Error("XHR error")))};try{a.send(f)}catch(v){g.dist.process.nextTick(function(){o.emit("error",v)});return}}}};function ft(o){try{var r=o.status;return r!==null&&r!==0}catch{return!1}}S.prototype._onXHRProgress=function(){var o=this;o._resetTimers(!1),!(!ft(o._xhr)||o._destroyed)&&(o._response||o._connect(),o._response._onXHRProgress(o._resetTimers.bind(o)))};S.prototype._connect=function(){var o=this;o._destroyed||(o._response=new at(o._xhr,o._fetchResponse,o._mode,o._resetTimers.bind(o)),o._response.on("error",function(r){o.emit("error",r)}),o.emit("response",o._response))};S.prototype._write=function(o,r,h){var f=this;f._body.push(o),h()};S.prototype._resetTimers=function(o){var r=this;g.commonjsGlobal.clearTimeout(r._socketTimer),r._socketTimer=null,o?(g.commonjsGlobal.clearTimeout(r._fetchTimer),r._fetchTimer=null):r._socketTimeout&&(r._socketTimer=g.commonjsGlobal.setTimeout(function(){r.emit("timeout")},r._socketTimeout))};S.prototype.abort=S.prototype.destroy=function(o){var r=this;r._destroyed=!0,r._resetTimers(!0),r._response&&(r._response._destroyed=!0),r._xhr?r._xhr.abort():r._fetchAbortController&&r._fetchAbortController.abort(),o&&r.emit("error",o)};S.prototype.end=function(o,r,h){var f=this;typeof o=="function"&&(h=o,o=void 0),ke.Writable.prototype.end.call(f,o,r,h)};S.prototype.setTimeout=function(o,r){var h=this;r&&h.once("timeout",r),h._socketTimeout=o,h._resetTimers(!1)};S.prototype.flushHeaders=function(){};S.prototype.setNoDelay=function(){};S.prototype.setSocketKeepAlive=function(){};var ht=["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"],ut=Ze.exports,lt=pt,ct=Object.prototype.hasOwnProperty;function pt(){for(var o={},r=0;r<arguments.length;r++){var h=arguments[r];for(var f in h)ct.call(h,f)&&(o[f]=h[f])}return o}var mt={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"},Me={exports:{}},Ae={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */Ae.exports;(function(o,r){(function(h){var f=r&&!r.nodeType&&r,n=o&&!o.nodeType&&o,b=typeof g.commonjsGlobal=="object"&&g.commonjsGlobal;(b.global===b||b.window===b||b.self===b)&&(h=b);var u,a=2147483647,v=36,w=1,A=26,d=38,x=700,ee=72,se=128,I="-",qe=/^xn--/,Ee=/[^\x20-\x7E]/,Oe=/[\x2E\u3002\uFF0E\uFF61]/g,Ue={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ce=v-w,F=Math.floor,te=String.fromCharCode,ae;function Z(i){throw new RangeError(Ue[i])}function pe(i,p){for(var y=i.length,T=[];y--;)T[y]=p(i[y]);return T}function be(i,p){var y=i.split("@"),T="";y.length>1&&(T=y[0]+"@",i=y[1]),i=i.replace(Oe,".");var R=i.split("."),L=pe(R,p).join(".");return T+L}function _e(i){for(var p=[],y=0,T=i.length,R,L;y<T;)R=i.charCodeAt(y++),R>=55296&&R<=56319&&y<T?(L=i.charCodeAt(y++),(L&64512)==56320?p.push(((R&1023)<<10)+(L&1023)+65536):(p.push(R),y--)):p.push(R);return p}function he(i){return pe(i,function(p){var y="";return p>65535&&(p-=65536,y+=te(p>>>10&1023|55296),p=56320|p&1023),y+=te(p),y}).join("")}function re(i){return i-48<10?i-22:i-65<26?i-65:i-97<26?i-97:v}function ue(i,p){return i+22+75*(i<26)-((p!=0)<<5)}function oe(i,p,y){var T=0;for(i=y?F(i/x):i>>1,i+=F(i/p);i>ce*A>>1;T+=v)i=F(i/ce);return F(T+(ce+1)*i/(i+d))}function Te(i){var p=[],y=i.length,T,R=0,L=se,q=ee,C,M,$,B,P,N,k,W,J;for(C=i.lastIndexOf(I),C<0&&(C=0),M=0;M<C;++M)i.charCodeAt(M)>=128&&Z("not-basic"),p.push(i.charCodeAt(M));for($=C>0?C+1:0;$<y;){for(B=R,P=1,N=v;$>=y&&Z("invalid-input"),k=re(i.charCodeAt($++)),(k>=v||k>F((a-R)/P))&&Z("overflow"),R+=k*P,W=N<=q?w:N>=q+A?A:N-q,!(k<W);N+=v)J=v-W,P>F(a/J)&&Z("overflow"),P*=J;T=p.length+1,q=oe(R-B,T,B==0),F(R/T)>a-L&&Z("overflow"),L+=F(R/T),R%=T,p.splice(R++,0,L)}return he(p)}function we(i){var p,y,T,R,L,q,C,M,$,B,P,N=[],k,W,J,me;for(i=_e(i),k=i.length,p=se,y=0,L=ee,q=0;q<k;++q)P=i[q],P<128&&N.push(te(P));for(T=R=N.length,R&&N.push(I);T<k;){for(C=a,q=0;q<k;++q)P=i[q],P>=p&&P<C&&(C=P);for(W=T+1,C-p>F((a-y)/W)&&Z("overflow"),y+=(C-p)*W,p=C,q=0;q<k;++q)if(P=i[q],P<p&&++y>a&&Z("overflow"),P==p){for(M=y,$=v;B=$<=L?w:$>=L+A?A:$-L,!(M<B);$+=v)me=M-B,J=v-B,N.push(te(ue(B+me%J,0))),M=F(me/J);N.push(te(ue(M,0))),L=oe(y,W,T==R),y=0,++T}++y,++p}return N.join("")}function Le(i){return be(i,function(p){return qe.test(p)?Te(p.slice(4).toLowerCase()):p})}function Pe(i){return be(i,function(p){return Ee.test(p)?"xn--"+we(p):p})}if(u={version:"1.4.1",ucs2:{decode:_e,encode:he},decode:Te,encode:we,toASCII:Pe,toUnicode:Le},f&&n)if(o.exports==f)n.exports=u;else for(ae in u)u.hasOwnProperty(ae)&&(f[ae]=u[ae]);else h.punycode=u})(g.commonjsGlobal)})(Ae,Ae.exports);var dt=Ae.exports;(function(o,r){Object.defineProperty(r,"__esModule",{value:!0});var h=dt,f=g.require$$2;function n(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var b=n(h),u=n(f),a={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}},v=b.default,w=a,A=oe,d=we,x=Le,ee=Te,se=I;function I(){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}var qe=/^([a-z0-9.+-]+:)/i,Ee=/:[0-9]*$/,Oe=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ue=["<",">",'"',"`"," ","\r",`
|
|
2
|
-
`," "],ce=["{","}","|","\\","^","`"].concat(Ue),F=["'"].concat(ce),te=["%","/","?",";","#"].concat(F),ae=["/","?","#"],Z=255,pe=/^[+a-z0-9A-Z_-]{0,63}$/,be=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_e={javascript:!0,"javascript:":!0},he={javascript:!0,"javascript:":!0},re={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},ue=u.default;function oe(e,s,t){if(e&&w.isObject(e)&&e instanceof I)return e;var c=new I;return c.parse(e,s,t),c}I.prototype.parse=function(e,s,t){if(!w.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var c=e.indexOf("?"),_=c!==-1&&c<e.indexOf("#")?"?":"#",D=e.split(_),H=/\\/g;D[0]=D[0].replace(H,"/"),e=D.join(_);var l=e;if(l=l.trim(),!t&&e.split("#").length===1){var K=Oe.exec(l);if(K)return this.path=l,this.href=l,this.pathname=K[1],K[2]?(this.search=K[2],s?this.query=ue.parse(this.search.substr(1)):this.query=this.search.substr(1)):s&&(this.search="",this.query={}),this}var E=qe.exec(l);if(E){E=E[0];var ie=E.toLowerCase();this.protocol=ie,l=l.substr(E.length)}if(t||E||l.match(/^\/\/[^@\/]+@[^@\/]+/)){var de=l.substr(0,2)==="//";de&&!(E&&he[E])&&(l=l.substr(2),this.slashes=!0)}if(!he[E]&&(de||E&&!re[E])){for(var j=-1,O=0;O<ae.length;O++){var Q=l.indexOf(ae[O]);Q!==-1&&(j===-1||Q<j)&&(j=Q)}var ve,G;j===-1?G=l.lastIndexOf("@"):G=l.lastIndexOf("@",j),G!==-1&&(ve=l.slice(0,G),l=l.slice(G+1),this.auth=decodeURIComponent(ve)),j=-1;for(var O=0;O<te.length;O++){var Q=l.indexOf(te[O]);Q!==-1&&(j===-1||Q<j)&&(j=Q)}j===-1&&(j=l.length),this.host=l.slice(0,j),l=l.slice(j),this.parseHost(),this.hostname=this.hostname||"";var ye=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!ye)for(var m=this.hostname.split(/\./),O=0,U=m.length;O<U;O++){var V=m[O];if(V&&!V.match(pe)){for(var z="",X=0,Se=V.length;X<Se;X++)V.charCodeAt(X)>127?z+="x":z+=V[X];if(!z.match(pe)){var ne=m.slice(0,O),Y=m.slice(O+1),le=V.match(be);le&&(ne.push(le[1]),Y.unshift(le[2])),Y.length&&(l="/"+Y.join(".")+l),this.hostname=ne.join(".");break}}}this.hostname.length>Z?this.hostname="":this.hostname=this.hostname.toLowerCase(),ye||(this.hostname=v.toASCII(this.hostname));var Ie=this.port?":"+this.port:"",rt=this.hostname||"";this.host=rt+Ie,this.href+=this.host,ye&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),l[0]!=="/"&&(l="/"+l))}if(!_e[ie])for(var O=0,U=F.length;O<U;O++){var ge=F[O];if(l.indexOf(ge)!==-1){var je=encodeURIComponent(ge);je===ge&&(je=escape(ge)),l=l.split(ge).join(je)}}var Fe=l.indexOf("#");Fe!==-1&&(this.hash=l.substr(Fe),l=l.slice(0,Fe));var Re=l.indexOf("?");if(Re!==-1?(this.search=l.substr(Re),this.query=l.substr(Re+1),s&&(this.query=ue.parse(this.query)),l=l.slice(0,Re)):s&&(this.search="",this.query={}),l&&(this.pathname=l),re[ie]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ie=this.pathname||"",ot=this.search||"";this.path=Ie+ot}return this.href=this.format(),this};function Te(e){return w.isString(e)&&(e=oe(e)),e instanceof I?e.format():I.prototype.format.call(e)}I.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var s=this.protocol||"",t=this.pathname||"",c=this.hash||"",_=!1,D="";this.host?_=e+this.host:this.hostname&&(_=e+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(_+=":"+this.port)),this.query&&w.isObject(this.query)&&Object.keys(this.query).length&&(D=ue.stringify(this.query));var H=this.search||D&&"?"+D||"";return s&&s.substr(-1)!==":"&&(s+=":"),this.slashes||(!s||re[s])&&_!==!1?(_="//"+(_||""),t&&t.charAt(0)!=="/"&&(t="/"+t)):_||(_=""),c&&c.charAt(0)!=="#"&&(c="#"+c),H&&H.charAt(0)!=="?"&&(H="?"+H),t=t.replace(/[?#]/g,function(l){return encodeURIComponent(l)}),H=H.replace("#","%23"),s+_+t+H+c};function we(e,s){return oe(e,!1,!0).resolve(s)}I.prototype.resolve=function(e){return this.resolveObject(oe(e,!1,!0)).format()};function Le(e,s){return e?oe(e,!1,!0).resolveObject(s):s}I.prototype.resolveObject=function(e){if(w.isString(e)){var s=new I;s.parse(e,!1,!0),e=s}for(var t=new I,c=Object.keys(this),_=0;_<c.length;_++){var D=c[_];t[D]=this[D]}if(t.hash=e.hash,e.href==="")return t.href=t.format(),t;if(e.slashes&&!e.protocol){for(var H=Object.keys(e),l=0;l<H.length;l++){var K=H[l];K!=="protocol"&&(t[K]=e[K])}return re[t.protocol]&&t.hostname&&!t.pathname&&(t.path=t.pathname="/"),t.href=t.format(),t}if(e.protocol&&e.protocol!==t.protocol){if(!re[e.protocol]){for(var E=Object.keys(e),ie=0;ie<E.length;ie++){var de=E[ie];t[de]=e[de]}return t.href=t.format(),t}if(t.protocol=e.protocol,!e.host&&!he[e.protocol]){for(var U=(e.pathname||"").split("/");U.length&&!(e.host=U.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),U[0]!==""&&U.unshift(""),U.length<2&&U.unshift(""),t.pathname=U.join("/")}else t.pathname=e.pathname;if(t.search=e.search,t.query=e.query,t.host=e.host||"",t.auth=e.auth,t.hostname=e.hostname||e.host,t.port=e.port,t.pathname||t.search){var j=t.pathname||"",O=t.search||"";t.path=j+O}return t.slashes=t.slashes||e.slashes,t.href=t.format(),t}var Q=t.pathname&&t.pathname.charAt(0)==="/",ve=e.host||e.pathname&&e.pathname.charAt(0)==="/",G=ve||Q||t.host&&e.pathname,ye=G,m=t.pathname&&t.pathname.split("/")||[],U=e.pathname&&e.pathname.split("/")||[],V=t.protocol&&!re[t.protocol];if(V&&(t.hostname="",t.port=null,t.host&&(m[0]===""?m[0]=t.host:m.unshift(t.host)),t.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(U[0]===""?U[0]=e.host:U.unshift(e.host)),e.host=null),G=G&&(U[0]===""||m[0]==="")),ve)t.host=e.host||e.host===""?e.host:t.host,t.hostname=e.hostname||e.hostname===""?e.hostname:t.hostname,t.search=e.search,t.query=e.query,m=U;else if(U.length)m||(m=[]),m.pop(),m=m.concat(U),t.search=e.search,t.query=e.query;else if(!w.isNullOrUndefined(e.search)){if(V){t.hostname=t.host=m.shift();var z=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;z&&(t.auth=z.shift(),t.host=t.hostname=z.shift())}return t.search=e.search,t.query=e.query,(!w.isNull(t.pathname)||!w.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!m.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var X=m.slice(-1)[0],Se=(t.host||e.host||m.length>1)&&(X==="."||X==="..")||X==="",ne=0,Y=m.length;Y>=0;Y--)X=m[Y],X==="."?m.splice(Y,1):X===".."?(m.splice(Y,1),ne++):ne&&(m.splice(Y,1),ne--);if(!G&&!ye)for(;ne--;ne)m.unshift("..");G&&m[0]!==""&&(!m[0]||m[0].charAt(0)!=="/")&&m.unshift(""),Se&&m.join("/").substr(-1)!=="/"&&m.push("");var le=m[0]===""||m[0]&&m[0].charAt(0)==="/";if(V){t.hostname=t.host=le?"":m.length?m.shift():"";var z=t.host&&t.host.indexOf("@")>0?t.host.split("@"):!1;z&&(t.auth=z.shift(),t.host=t.hostname=z.shift())}return G=G||t.host&&m.length,G&&!le&&m.unshift(""),m.length?t.pathname=m.join("/"):(t.pathname=null,t.path=null),(!w.isNull(t.pathname)||!w.isNull(t.search))&&(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=t.format(),t},I.prototype.parseHost=function(){var e=this.host,s=Ee.exec(e);s&&(s=s[0],s!==":"&&(this.port=s.substr(1)),e=e.substr(0,e.length-s.length)),e&&(this.hostname=e)};function Pe(e,s){for(var t=0,c=e.length-1;c>=0;c--){var _=e[c];_==="."?e.splice(c,1):_===".."?(e.splice(c,1),t++):t&&(e.splice(c,1),t--)}if(s)for(;t--;t)e.unshift("..");return e}function i(){for(var e="",s=!1,t=arguments.length-1;t>=-1&&!s;t--){var c=t>=0?arguments[t]:"/";if(typeof c!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!c)continue;e=c+"/"+e,s=c.charAt(0)==="/"}return e=Pe(p(e.split("/"),function(_){return!!_}),!s).join("/"),(s?"/":"")+e||"."}function p(e,s){if(e.filter)return e.filter(s);for(var t=[],c=0;c<e.length;c++)s(e[c],c,e)&&t.push(e[c]);return t}var y=function(e){function s(){var c=this||self;return delete e.prototype.__magic__,c}if(typeof globalThis=="object")return globalThis;if(this)return s();e.defineProperty(e.prototype,"__magic__",{configurable:!0,get:s});var t=__magic__;return t}(Object),T=ee,R=A,L=d,q=se,C=y.URL,M=y.URLSearchParams,$=/%/g,B=/\\/g,P=/\n/g,N=/\r/g,k=/\t/g,W=47;function J(e){var s=e??null;return!!(s!==null&&(s!=null&&s.href)&&(s!=null&&s.origin))}function me(e){if(e.hostname!=="")throw new TypeError('File URL host must be "localhost" or empty on browser');for(var s=e.pathname,t=0;t<s.length;t++)if(s[t]==="%"){var c=s.codePointAt(t+2)|32;if(s[t+1]==="2"&&c===102)throw new TypeError("File URL path must not include encoded / characters")}return decodeURIComponent(s)}function tt(e){return e.includes("%")&&(e=e.replace($,"%25")),e.includes("\\")&&(e=e.replace(B,"%5C")),e.includes(`
|
|
3
|
-
`)&&(e=e.replace(P,"%0A")),e.includes("\r")&&(e=e.replace(N,"%0D")),e.includes(" ")&&(e=e.replace(k,"%09")),e}var $e=function(s){if(typeof s>"u")throw new TypeError('The "domain" argument must be specified');return new C("http://"+s).hostname},Be=function(s){if(typeof s>"u")throw new TypeError('The "domain" argument must be specified');return new C("http://"+s).hostname},ze=function(s){var t=new C("file://"),c=i(s),_=s.charCodeAt(s.length-1);return _===W&&c[c.length-1]!=="/"&&(c+="/"),t.pathname=tt(c),t},Xe=function(s){if(!J(s)&&typeof s!="string")throw new TypeError('The "path" argument must be of type string or an instance of URL. Received type '+typeof s+" ("+s+")");var t=new C(s);if(t.protocol!=="file:")throw new TypeError("The URL must be of scheme file");return me(t)},We=function(s,t){var c,_,D;if(t===void 0&&(t={}),!(s instanceof C))return T(s);if(typeof t!="object"||t===null)throw new TypeError('The "options" argument must be of type object.');var H=(c=t.auth)!=null?c:!0,l=(_=t.fragment)!=null?_:!0,K=(D=t.search)!=null?D:!0,E=new C(s.toString());return H||(E.username="",E.password=""),l||(E.hash=""),K||(E.search=""),E.toString()},Ke={format:We,parse:R,resolve:L,resolveObject:x,Url:q,URL:C,URLSearchParams:M,domainToASCII:$e,domainToUnicode:Be,pathToFileURL:ze,fileURLToPath:Xe};r.URL=C,r.URLSearchParams=M,r.Url=q,r.default=Ke,r.domainToASCII=$e,r.domainToUnicode=Be,r.fileURLToPath=Xe,r.format=We,r.parse=R,r.pathToFileURL=ze,r.resolve=L,r.resolveObject=x,r=o.exports=Ke})(Me,Me.exports);var De=Me.exports;(function(o){var r=ut,h=xe,f=lt,n=mt,b=De,u=o;u.request=function(a,v){typeof a=="string"?a=b.parse(a):a=f(a);var w=g.commonjsGlobal.location.protocol.search(/^https?:$/)===-1?"http:":"",A=a.protocol||w,d=a.hostname||a.host,x=a.port,ee=a.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),a.url=(d?A+"//"+d:"")+(x?":"+x:"")+ee,a.method=(a.method||"GET").toUpperCase(),a.headers=a.headers||{};var se=new r(a);return v&&se.on("response",v),se},u.get=function(v,w){var A=u.request(v,w);return A.end(),A},u.ClientRequest=r,u.IncomingMessage=h.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=n,u.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"]})(Ne);var et={exports:{}};(function(o){var r=Ne,h=De,f=o.exports;for(var n in r)r.hasOwnProperty(n)&&(f[n]=r[n]);f.request=function(u,a){return u=b(u),r.request.call(this,u,a)},f.get=function(u,a){return u=b(u),r.get.call(this,u,a)};function b(u){if(typeof u=="string"&&(u=h.parse(u)),u.protocol||(u.protocol="https:"),u.protocol!=="https:")throw new Error('Protocol "'+u.protocol+'" not supported. Expected "https:"');return u}})(et);var vt=et.exports;exports.httpsBrowserifyExports=vt;exports.streamHttp=Ne;exports.urlExports=De;
|