@xoxno/sdk-js 0.1.307 → 0.1.313
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/collection/index.d.ts +0 -1
- package/dist/common/index.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/interactions/index.d.ts +0 -1
- package/dist/interactor.cjs.js +1 -1
- package/dist/interactor.d.ts +0 -1
- package/dist/interactor.esm.js +1 -1
- package/dist/launchpad/index.d.ts +0 -1
- package/dist/nft/index.d.ts +0 -1
- package/dist/staking/index.d.ts +0 -1
- package/dist/types/collection.d.ts +0 -1
- package/dist/types/common.d.ts +0 -1
- package/dist/types/event.d.ts +0 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/interactions.d.ts +0 -1
- package/dist/types/nft.d.ts +0 -1
- package/dist/types/staking.d.ts +0 -1
- package/dist/types/trading.d.ts +0 -1
- package/dist/types/user.d.ts +0 -1
- package/dist/users/index.d.ts +0 -1
- package/dist/utils/SmartContractAbis.d.ts +0 -1
- package/dist/utils/SmartContractService.d.ts +0 -1
- package/dist/utils/api.d.ts +0 -1
- package/dist/utils/const.d.ts +0 -1
- package/dist/utils/getActivity.d.ts +0 -1
- package/dist/utils/helpers.d.ts +0 -1
- package/dist/utils/regex.d.ts +0 -1
- package/dist/utils/scCalls.d.ts +0 -1
- package/package.json +1 -1
- package/dist/13.cjs.js +0 -1
- package/dist/13.esm.js +0 -1
- package/dist/132.cjs.js +0 -1
- package/dist/132.esm.js +0 -1
- package/dist/145.cjs.js +0 -1
- package/dist/145.esm.js +0 -1
- package/dist/147.cjs.js +0 -1
- package/dist/147.esm.js +0 -1
- package/dist/242.cjs.js +0 -1
- package/dist/242.esm.js +0 -1
- package/dist/385.cjs.js +0 -1
- package/dist/385.esm.js +0 -1
- package/dist/392.cjs.js +0 -1
- package/dist/392.esm.js +0 -1
- package/dist/401.cjs.js +0 -2
- package/dist/401.cjs.js.LICENSE.txt +0 -10
- package/dist/401.esm.js +0 -2
- package/dist/401.esm.js.LICENSE.txt +0 -10
- package/dist/403.cjs.js +0 -1
- package/dist/403.esm.js +0 -1
- package/dist/415.cjs.js +0 -1
- package/dist/415.esm.js +0 -1
- package/dist/425.cjs.js +0 -1
- package/dist/425.esm.js +0 -1
- package/dist/473.cjs.js +0 -1
- package/dist/473.esm.js +0 -1
- package/dist/528.cjs.js +0 -1
- package/dist/528.esm.js +0 -1
- package/dist/54.cjs.js +0 -1
- package/dist/54.esm.js +0 -1
- package/dist/586.cjs.js +0 -1
- package/dist/586.esm.js +0 -1
- package/dist/626.cjs.js +0 -1
- package/dist/626.esm.js +0 -1
- package/dist/661.cjs.js +0 -1
- package/dist/661.esm.js +0 -1
- package/dist/766.cjs.js +0 -1
- package/dist/766.esm.js +0 -1
- package/dist/820.cjs.js +0 -2
- package/dist/820.cjs.js.LICENSE.txt +0 -3
- package/dist/820.esm.js +0 -2
- package/dist/820.esm.js.LICENSE.txt +0 -3
- package/dist/854.cjs.js +0 -1
- package/dist/854.esm.js +0 -1
- package/dist/966.cjs.js +0 -1
- package/dist/966.esm.js +0 -1
- package/dist/979.cjs.js +0 -1
- package/dist/979.esm.js +0 -1
- package/dist/989.cjs.js +0 -1
- package/dist/989.esm.js +0 -1
- package/dist/collection/index.d.ts.map +0 -1
- package/dist/common/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/interactions/index.d.ts.map +0 -1
- package/dist/interactor.d.ts.map +0 -1
- package/dist/launchpad/index.d.ts.map +0 -1
- package/dist/nft/index.d.ts.map +0 -1
- package/dist/staking/index.d.ts.map +0 -1
- package/dist/types/collection.d.ts.map +0 -1
- package/dist/types/common.d.ts.map +0 -1
- package/dist/types/event.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/interactions.d.ts.map +0 -1
- package/dist/types/nft.d.ts.map +0 -1
- package/dist/types/staking.d.ts.map +0 -1
- package/dist/types/trading.d.ts.map +0 -1
- package/dist/types/user.d.ts.map +0 -1
- package/dist/users/index.d.ts.map +0 -1
- package/dist/utils/SmartContractAbis.d.ts.map +0 -1
- package/dist/utils/SmartContractService.d.ts.map +0 -1
- package/dist/utils/api.d.ts.map +0 -1
- package/dist/utils/const.d.ts.map +0 -1
- package/dist/utils/getActivity.d.ts.map +0 -1
- package/dist/utils/helpers.d.ts.map +0 -1
- package/dist/utils/regex.d.ts.map +0 -1
- package/dist/utils/scCalls.d.ts.map +0 -1
package/dist/401.esm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 401.esm.js.LICENSE.txt */
|
|
2
|
-
export const __webpack_id__=401;export const __webpack_ids__=[401];export const __webpack_modules__={236:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.AddressComputer=e.Address=void 0;const a=o(r(9674)),u=s(r(1594)),f=r(6424),l=r(7353),h=o(r(2581)),c=r(8390),d=r(5508),p="0".repeat(16);class g{constructor(t,e){if(!t)return this.publicKey=Buffer.from([]),void(this.hrp=e||f.LibraryConfig.DefaultAddressHrp);if(ArrayBuffer.isView(t)){if(32!=t.length)throw new h.ErrAddressCannotCreate(t);return this.publicKey=Buffer.from(t),void(this.hrp=e||f.LibraryConfig.DefaultAddressHrp)}if(t instanceof g){if(e)throw new h.ErrInvalidArgument("this variant of the Address constructor does not accept the 'hrp' argument");return this.publicKey=t.publicKey,void(this.hrp=t.hrp)}if("string"==typeof t){if(g.isValidHex(t))return this.publicKey=Buffer.from(t,"hex"),void(this.hrp=e||f.LibraryConfig.DefaultAddressHrp);if(e)throw new h.ErrInvalidArgument("this variant of the Address constructor does not accept the 'hrp' argument");const{hrp:r,pubkey:n}=y({value:t,allowCustomHrp:!1});return this.publicKey=n,void(this.hrp=r)}throw new h.ErrAddressCannotCreate(t)}static newFromBech32(t){const{hrp:e,pubkey:r}=y({value:t,allowCustomHrp:!0});return new g(r,e)}static fromBech32(t){const{hrp:e,pubkey:r}=y({value:t,allowCustomHrp:!1});return new g(r,e)}static newFromHex(t,e){if(!g.isValidHex(t))throw new h.ErrAddressCannotCreate(t);return new g(Buffer.from(t,"hex"),e)}static fromHex(t,e){return g.newFromHex(t,e)}static fromAddress(t){return new g(t)}static fromBuffer(t,e){return new g(t,e)}static fromString(t,e){return new g(t,e)}static isValidHex(t){return 32==Buffer.from(t,"hex").length}static empty(){return new g("")}static isValid(t){const e=a.decodeUnsafe(t),r=e?.prefix,n=e?Buffer.from(a.fromWords(e.words)):void 0;return r===f.LibraryConfig.DefaultAddressHrp&&32===n?.length}hex(){return this.toHex()}toHex(){return this.isEmpty()?"":this.publicKey.toString("hex")}bech32(){return this.toBech32()}toBech32(){if(this.isEmpty())return"";let t=a.toWords(this.pubkey());return a.encode(this.hrp,t)}pubkey(){return this.getPublicKey()}getPublicKey(){return this.publicKey}getHrp(){return this.hrp}isEmpty(){return 0==this.publicKey.length}equals(t){return!!t&&this.publicKey.toString()==t.publicKey.toString()}toString(){return this.toBech32()}toJSON(){return{bech32:this.toBech32(),pubkey:this.toHex()}}static Zero(){return new g("0".repeat(64))}isContractAddress(){return this.isSmartContract()}isSmartContract(){return this.toHex().startsWith(p)}}function y(t){const e=t.value,r=t.allowCustomHrp;let n,i;try{const t=a.decode(e);n=t.prefix,i=Buffer.from(a.fromWords(t.words))}catch(t){throw new h.ErrAddressCannotCreate(e,t)}if(!r&&n!=f.LibraryConfig.DefaultAddressHrp)throw new h.ErrAddressBadHrp(f.LibraryConfig.DefaultAddressHrp,n);return{hrp:n,pubkey:i}}e.Address=g,e.AddressComputer=class{constructor(t){this.numberOfShardsWithoutMeta=t||l.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META}computeContractAddress(t,e){const r=Buffer.alloc(8,0),n=t.getPublicKey(),i=n.slice(30),o=Buffer.alloc(8),s=new u.default(e.toString()),a=c.bigIntToBuffer(s);o.write(a.reverse().toString("hex"),"hex");const f=Buffer.concat([n,o]),h=d("keccak256").update(f).digest(),p=Buffer.from(l.WasmVirtualMachine,"hex"),y=Buffer.concat([r,p,h.slice(10,30),i]);return new g(y)}getShardOfAddress(t){return this.getShardOfPubkey(t.getPublicKey(),this.numberOfShardsWithoutMeta)}getShardOfPubkey(t,e){const r=parseInt("11",2),n=parseInt("01",2),i=t[31];if(this.isPubkeyOfMetachain(t))return l.METACHAIN_ID;let o=i&r;return o>e-1&&(o=i&n),o}isPubkeyOfMetachain(t){const e=Buffer.from([0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),r=Buffer.from(t).slice(0,e.length);return!!e.equals(r)||!!Buffer.alloc(32).equals(Buffer.from(t))}}},6424:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LibraryConfig=void 0;class r{}e.LibraryConfig=r,r.DefaultAddressHrp="erd"},7353:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ESDT_CONTRACT_ADDRESS=e.DELEGATION_MANAGER_SC_ADDRESS=e.CONTRACT_DEPLOY_ADDRESS=e.BECH32_ADDRESS_LENGTH=e.DEFAULT_HRP=e.EGLD_IDENTIFIER_FOR_MULTI_ESDTNFT_TRANSFER=e.UNKNOWN_SIGNER=e.SDK_JS_SIGNER=e.METACHAIN_ID=e.WasmVirtualMachine=e.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META=e.HEX_TRANSACTION_HASH_LENGTH=e.MESSAGE_PREFIX=e.DEFAULT_MESSAGE_VERSION=e.ESDT_CONTRACT_ADDRESS_HEX=e.DELEGATION_MANAGER_SC_ADDRESS_HEX=e.CONTRACT_DEPLOY_ADDRESS_HEX=e.VM_TYPE_WASM_VM=e.ARGUMENTS_SEPARATOR=e.ESDT_TRANSFER_VALUE=e.MULTI_ESDTNFT_TRANSFER_FUNCTION_NAME=e.ESDTNFT_TRANSFER_FUNCTION_NAME=e.ESDT_TRANSFER_FUNCTION_NAME=e.ESDT_TRANSFER_GAS_LIMIT=e.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS=e.TRANSACTION_VERSION_DEFAULT=e.TRANSACTION_OPTIONS_TX_GUARDED=e.TRANSACTION_OPTIONS_TX_HASH_SIGN=e.TRANSACTION_OPTIONS_DEFAULT=e.TRANSACTION_MIN_GAS_PRICE=void 0,e.TRANSACTION_MIN_GAS_PRICE=1e9,e.TRANSACTION_OPTIONS_DEFAULT=0,e.TRANSACTION_OPTIONS_TX_HASH_SIGN=1,e.TRANSACTION_OPTIONS_TX_GUARDED=2,e.TRANSACTION_VERSION_DEFAULT=2,e.MIN_TRANSACTION_VERSION_THAT_SUPPORTS_OPTIONS=2,e.ESDT_TRANSFER_GAS_LIMIT=5e5,e.ESDT_TRANSFER_FUNCTION_NAME="ESDTTransfer",e.ESDTNFT_TRANSFER_FUNCTION_NAME="ESDTNFTTransfer",e.MULTI_ESDTNFT_TRANSFER_FUNCTION_NAME="MultiESDTNFTTransfer",e.ESDT_TRANSFER_VALUE="0",e.ARGUMENTS_SEPARATOR="@",e.VM_TYPE_WASM_VM=new Uint8Array([5,0]),e.CONTRACT_DEPLOY_ADDRESS_HEX="0000000000000000000000000000000000000000000000000000000000000000",e.DELEGATION_MANAGER_SC_ADDRESS_HEX="000000000000000000010000000000000000000000000000000000000004ffff",e.ESDT_CONTRACT_ADDRESS_HEX="000000000000000000010000000000000000000000000000000000000002ffff",e.DEFAULT_MESSAGE_VERSION=1,e.MESSAGE_PREFIX="Elrond Signed Message:\n",e.HEX_TRANSACTION_HASH_LENGTH=64,e.CURRENT_NUMBER_OF_SHARDS_WITHOUT_META=3,e.WasmVirtualMachine="0500",e.METACHAIN_ID=4294967295,e.SDK_JS_SIGNER="sdk-js",e.UNKNOWN_SIGNER="unknown",e.EGLD_IDENTIFIER_FOR_MULTI_ESDTNFT_TRANSFER="EGLD-000000",e.DEFAULT_HRP="erd",e.BECH32_ADDRESS_LENGTH=62,e.CONTRACT_DEPLOY_ADDRESS="erd1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq6gq4hu",e.DELEGATION_MANAGER_SC_ADDRESS="erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqylllslmq6y6",e.ESDT_CONTRACT_ADDRESS="erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u"},7553:function(t,e,r){var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.prependByteToBuffer=e.flipBufferBitsInPlace=e.getHexMagnitudeOfBigInt=e.bigIntToBuffer=e.bufferToBigInt=e.cloneBuffer=e.isMsbZero=e.isMsbOne=void 0;const i=n(r(1594)),o=r(9161);function s(t,e=0){return 1==t[e]>>7}function a(t){return(t=new i.default(t))?(t.isNegative()&&(t=t.multipliedBy(new i.default(-1))),o.numberToPaddedHex(t)):""}e.isMsbOne=s,e.isMsbZero=function(t,e=0){return!s(t,e)},e.cloneBuffer=function(t){let e=Buffer.alloc(t.length);return t.copy(e),e},e.bufferToBigInt=function(t){let e=t.toString("hex");return new i.default(`0x${e}`,16)},e.bigIntToBuffer=function(t){let e=a(t);return Buffer.from(e,"hex")},e.getHexMagnitudeOfBigInt=a,e.flipBufferBitsInPlace=function(t){for(let e=0;e<t.length;e++)t[e]=~t[e]},e.prependByteToBuffer=function(t,e){return Buffer.concat([Buffer.from([e]),t])}},8390:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.bufferToHex=e.addressToHex=e.bigIntToHex=e.utf8ToHex=e.bigIntToBuffer=e.bufferToBigInt=e.stringToBuffer=void 0;const a=s(r(1594)),u=o(r(7553)),f=o(r(9161));e.stringToBuffer=function(t){return Buffer.from(t)},e.bufferToBigInt=function(t){return 0==t.length?new a.default(0):u.bufferToBigInt(t)},e.bigIntToBuffer=function(t){return 0==t?Buffer.from([]):u.bigIntToBuffer(t)};var l=r(9161);Object.defineProperty(e,"utf8ToHex",{enumerable:!0,get:function(){return l.utf8ToHex}}),Object.defineProperty(e,"bigIntToHex",{enumerable:!0,get:function(){return l.bigIntToHex}}),Object.defineProperty(e,"addressToHex",{enumerable:!0,get:function(){return l.addressToHex}}),e.bufferToHex=function(t){const e=t.toString("hex");return f.zeroPadStringIfOddLength(e)}},9161:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)"default"!==r&&Object.prototype.hasOwnProperty.call(t,r)&&n(e,t,r);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.addressToHex=e.bigIntToHex=e.byteArrayToHex=e.boolToHex=e.utf8ToHex=e.zeroPadStringIfOddLength=e.isPaddedHex=e.numberToPaddedHex=void 0;const a=s(r(1594)),u=r(236),f=o(r(7553));function l(t){return(t=t||"").length%2==1?"0"+t:t}function h(t){return l(Buffer.from(t).toString("hex"))}e.numberToPaddedHex=function(t){let e;return e="bigint"==typeof t||"number"==typeof t?t:new a.default(t),l(e.toString(16))},e.isPaddedHex=function(t){t=t||"";let e=Buffer.from(t,"hex").toString("hex");return t.toUpperCase()==e.toUpperCase()},e.zeroPadStringIfOddLength=l,e.utf8ToHex=h,e.boolToHex=function(t){return h(t.toString())},e.byteArrayToHex=function(t){return l(Buffer.from(t).toString("hex"))},e.bigIntToHex=function(t){return 0==t?"":f.getHexMagnitudeOfBigInt(t)},e.addressToHex=function(t){return u.Address.fromBech32(t.toString()).pubkey().toString("hex")}},7526:(t,e)=>{e.byteLength=function(t){var e=a(t),r=e[0],n=e[1];return 3*(r+n)/4-n},e.toByteArray=function(t){var e,r,o=a(t),s=o[0],u=o[1],f=new i(function(t,e,r){return 3*(e+r)/4-r}(0,s,u)),l=0,h=u>0?s-4:s;for(r=0;r<h;r+=4)e=n[t.charCodeAt(r)]<<18|n[t.charCodeAt(r+1)]<<12|n[t.charCodeAt(r+2)]<<6|n[t.charCodeAt(r+3)],f[l++]=e>>16&255,f[l++]=e>>8&255,f[l++]=255&e;return 2===u&&(e=n[t.charCodeAt(r)]<<2|n[t.charCodeAt(r+1)]>>4,f[l++]=255&e),1===u&&(e=n[t.charCodeAt(r)]<<10|n[t.charCodeAt(r+1)]<<4|n[t.charCodeAt(r+2)]>>2,f[l++]=e>>8&255,f[l++]=255&e),f},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=16383,a=0,f=n-i;a<f;a+=s)o.push(u(t,a,a+s>f?f:a+s));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],n=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0;s<64;++s)r[s]=o[s],n[o.charCodeAt(s)]=s;function a(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");return-1===r&&(r=e),[r,r===e?0:4-r%4]}function u(t,e,n){for(var i,o,s=[],a=e;a<n;a+=3)i=(t[a]<<16&16711680)+(t[a+1]<<8&65280)+(255&t[a+2]),s.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}n["-".charCodeAt(0)]=62,n["_".charCodeAt(0)]=63},9674:t=>{for(var e="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<32;n++){var i=e.charAt(n);if(void 0!==r[i])throw new TypeError(i+" is ambiguous");r[i]=n}function o(t){var e=t>>25;return(33554431&t)<<5^996825010&-(1&e)^642813549&-(e>>1&1)^513874426&-(e>>2&1)^1027748829&-(e>>3&1)^705979059&-(e>>4&1)}function s(t){for(var e=1,r=0;r<t.length;++r){var n=t.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+t+")";e=o(e)^n>>5}for(e=o(e),r=0;r<t.length;++r){var i=t.charCodeAt(r);e=o(e)^31&i}return e}function a(t,e){if(e=e||90,t.length<8)return t+" too short";if(t.length>e)return"Exceeds length limit";var n=t.toLowerCase(),i=t.toUpperCase();if(t!==n&&t!==i)return"Mixed-case string "+t;var a=(t=n).lastIndexOf("1");if(-1===a)return"No separator character for "+t;if(0===a)return"Missing prefix for "+t;var u=t.slice(0,a),f=t.slice(a+1);if(f.length<6)return"Data too short";var l=s(u);if("string"==typeof l)return l;for(var h=[],c=0;c<f.length;++c){var d=f.charAt(c),p=r[d];if(void 0===p)return"Unknown character "+d;l=o(l)^p,c+6>=f.length||h.push(p)}return 1!==l?"Invalid checksum for "+t:{prefix:u,words:h}}function u(t,e,r,n){for(var i=0,o=0,s=(1<<r)-1,a=[],u=0;u<t.length;++u)for(i=i<<e|t[u],o+=e;o>=r;)o-=r,a.push(i>>o&s);if(n)o>0&&a.push(i<<r-o&s);else{if(o>=e)return"Excess padding";if(i<<r-o&s)return"Non-zero padding"}return a}t.exports={decodeUnsafe:function(){var t=a.apply(null,arguments);if("object"==typeof t)return t},decode:function(t){var e=a.apply(null,arguments);if("object"==typeof e)return e;throw new Error(e)},encode:function(t,r,n){if(n=n||90,t.length+7+r.length>n)throw new TypeError("Exceeds length limit");var i=s(t=t.toLowerCase());if("string"==typeof i)throw new Error(i);for(var a=t+"1",u=0;u<r.length;++u){var f=r[u];if(f>>5)throw new Error("Non 5-bit word");i=o(i)^f,a+=e.charAt(f)}for(u=0;u<6;++u)i=o(i);for(i^=1,u=0;u<6;++u)a+=e.charAt(i>>5*(5-u)&31);return a},toWordsUnsafe:function(t){var e=u(t,8,5,!0);if(Array.isArray(e))return e},toWords:function(t){var e=u(t,8,5,!0);if(Array.isArray(e))return e;throw new Error(e)},fromWordsUnsafe:function(t){var e=u(t,5,8,!1);if(Array.isArray(e))return e},fromWords:function(t){var e=u(t,5,8,!1);if(Array.isArray(e))return e;throw new Error(e)}}},8287:(t,e,r)=>{const n=r(7526),i=r(251),o="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50;const s=2147483647;function a(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,u.prototype),e}function u(t,e,r){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return h(t)}return f(t,e,r)}function f(t,e,r){if("string"==typeof t)return function(t,e){if("string"==typeof e&&""!==e||(e="utf8"),!u.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const r=0|g(t,e);let n=a(r);const i=n.write(t,e);return i!==r&&(n=n.slice(0,i)),n}(t,e);if(ArrayBuffer.isView(t))return function(t){if(Y(t,Uint8Array)){const e=new Uint8Array(t);return d(e.buffer,e.byteOffset,e.byteLength)}return c(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(Y(t,ArrayBuffer)||t&&Y(t.buffer,ArrayBuffer))return d(t,e,r);if("undefined"!=typeof SharedArrayBuffer&&(Y(t,SharedArrayBuffer)||t&&Y(t.buffer,SharedArrayBuffer)))return d(t,e,r);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const n=t.valueOf&&t.valueOf();if(null!=n&&n!==t)return u.from(n,e,r);const i=function(t){if(u.isBuffer(t)){const e=0|p(t.length),r=a(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||X(t.length)?a(0):c(t):"Buffer"===t.type&&Array.isArray(t.data)?c(t.data):void 0}(t);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return u.from(t[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function h(t){return l(t),a(t<0?0:0|p(t))}function c(t){const e=t.length<0?0:0|p(t.length),r=a(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function d(t,e,r){if(e<0||t.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let n;return n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),Object.setPrototypeOf(n,u.prototype),n}function p(t){if(t>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function g(t,e){if(u.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||Y(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return $(t).length;default:if(i)return n?-1:V(t).length;e=(""+e).toLowerCase(),i=!0}}function y(t,e,r){let n=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return I(this,e,r);case"utf8":case"utf-8":return A(this,e,r);case"ascii":return B(this,e,r);case"latin1":case"binary":return N(this,e,r);case"base64":return R(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,r);default:if(n)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),n=!0}}function b(t,e,r){const n=t[e];t[e]=t[r],t[r]=n}function _(t,e,r,n,i){if(0===t.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),X(r=+r)&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length){if(i)return-1;r=t.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof e&&(e=u.from(e,n)),u.isBuffer(e))return 0===e.length?-1:w(t,e,r,n,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,r):Uint8Array.prototype.lastIndexOf.call(t,e,r):w(t,[e],r,n,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,r,n,i){let o,s=1,a=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,r/=2}function f(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){let n=-1;for(o=r;o<a;o++)if(f(t,o)===f(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*s}else-1!==n&&(o-=o-n),n=-1}else for(r+u>a&&(r=a-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(f(t,o+n)!==f(e,n)){r=!1;break}if(r)return o}return-1}function v(t,e,r,n){r=Number(r)||0;const i=t.length-r;n?(n=Number(n))>i&&(n=i):n=i;const o=e.length;let s;for(n>o/2&&(n=o/2),s=0;s<n;++s){const n=parseInt(e.substr(2*s,2),16);if(X(n))return s;t[r+s]=n}return s}function m(t,e,r,n){return K(V(e,t.length-r),t,r,n)}function E(t,e,r,n){return K(function(t){const e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(e),t,r,n)}function S(t,e,r,n){return K($(e),t,r,n)}function T(t,e,r,n){return K(function(t,e){let r,n,i;const o=[];for(let s=0;s<t.length&&!((e-=2)<0);++s)r=t.charCodeAt(s),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,t.length-r),t,r,n)}function R(t,e,r){return 0===e&&r===t.length?n.fromByteArray(t):n.fromByteArray(t.slice(e,r))}function A(t,e,r){r=Math.min(t.length,r);const n=[];let i=e;for(;i<r;){const e=t[i];let o=null,s=e>239?4:e>223?3:e>191?2:1;if(i+s<=r){let r,n,a,u;switch(s){case 1:e<128&&(o=e);break;case 2:r=t[i+1],128==(192&r)&&(u=(31&e)<<6|63&r,u>127&&(o=u));break;case 3:r=t[i+1],n=t[i+2],128==(192&r)&&128==(192&n)&&(u=(15&e)<<12|(63&r)<<6|63&n,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:r=t[i+1],n=t[i+2],a=t[i+3],128==(192&r)&&128==(192&n)&&128==(192&a)&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&a,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,s=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=s}return function(t){const e=t.length;if(e<=O)return String.fromCharCode.apply(String,t);let r="",n=0;for(;n<e;)r+=String.fromCharCode.apply(String,t.slice(n,n+=O));return r}(n)}e.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=function(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),u.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(t,e,r){return f(t,e,r)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(t,e,r){return function(t,e,r){return l(t),t<=0?a(t):void 0!==e?"string"==typeof r?a(t).fill(e,r):a(t).fill(e):a(t)}(t,e,r)},u.allocUnsafe=function(t){return h(t)},u.allocUnsafeSlow=function(t){return h(t)},u.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==u.prototype},u.compare=function(t,e){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),Y(e,Uint8Array)&&(e=u.from(e,e.offset,e.byteLength)),!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:n<r?1:0},u.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(t,e){if(!Array.isArray(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return u.alloc(0);let r;if(void 0===e)for(e=0,r=0;r<t.length;++r)e+=t[r].length;const n=u.allocUnsafe(e);let i=0;for(r=0;r<t.length;++r){let e=t[r];if(Y(e,Uint8Array))i+e.length>n.length?(u.isBuffer(e)||(e=u.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else{if(!u.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(n,i)}i+=e.length}return n},u.byteLength=g,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)b(this,e,e+1);return this},u.prototype.swap32=function(){const t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},u.prototype.swap64=function(){const t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},u.prototype.toString=function(){const t=this.length;return 0===t?"":0===arguments.length?A(this,0,t):y.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(t){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===u.compare(this,t)},u.prototype.inspect=function(){let t="";const r=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(t+=" ... "),"<Buffer "+t+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(t,e,r,n,i){if(Y(t,Uint8Array)&&(t=u.from(t,t.offset,t.byteLength)),!u.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw new RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return-1;if(e>=r)return 1;if(this===t)return 0;let o=(i>>>=0)-(n>>>=0),s=(r>>>=0)-(e>>>=0);const a=Math.min(o,s),f=this.slice(n,i),l=t.slice(e,r);for(let t=0;t<a;++t)if(f[t]!==l[t]){o=f[t],s=l[t];break}return o<s?-1:s<o?1:0},u.prototype.includes=function(t,e,r){return-1!==this.indexOf(t,e,r)},u.prototype.indexOf=function(t,e,r){return _(this,t,e,r,!0)},u.prototype.lastIndexOf=function(t,e,r){return _(this,t,e,r,!1)},u.prototype.write=function(t,e,r,n){if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}const i=this.length-e;if((void 0===r||r>i)&&(r=i),t.length>0&&(r<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let o=!1;for(;;)switch(n){case"hex":return v(this,t,e,r);case"utf8":case"utf-8":return m(this,t,e,r);case"ascii":case"latin1":case"binary":return E(this,t,e,r);case"base64":return S(this,t,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,r);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const O=4096;function B(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}function N(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}function I(t,e,r){const n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=J[t[n]];return i}function L(t,e,r){const n=t.slice(e,r);let i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}function M(t,e,r){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>r)throw new RangeError("Trying to access beyond buffer length")}function x(t,e,r,n,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(r+n>t.length)throw new RangeError("Index out of range")}function C(t,e,r,n,i){F(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,s>>=8,t[r++]=s,r}function q(t,e,r,n,i){F(e,n,i,t,r,7);let o=Number(e&BigInt(4294967295));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let s=Number(e>>BigInt(32)&BigInt(4294967295));return t[r+3]=s,s>>=8,t[r+2]=s,s>>=8,t[r+1]=s,s>>=8,t[r]=s,r+8}function k(t,e,r,n,i,o){if(r+n>t.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function D(t,e,r,n,o){return e=+e,r>>>=0,o||k(t,0,r,4),i.write(t,e,r,n,23,4),r+4}function P(t,e,r,n,o){return e=+e,r>>>=0,o||k(t,0,r,8),i.write(t,e,r,n,52,8),r+8}u.prototype.slice=function(t,e){const r=this.length;(t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);const n=this.subarray(t,e);return Object.setPrototypeOf(n,u.prototype),n},u.prototype.readUintLE=u.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n},u.prototype.readUintBE=u.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},u.prototype.readUint8=u.prototype.readUInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),this[t]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(t,e){return t>>>=0,e||M(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readBigUInt64LE=Z((function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+r*2**24;return BigInt(n)+(BigInt(i)<<BigInt(32))})),u.prototype.readBigUInt64BE=Z((function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)})),u.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return i*=128,n>=i&&(n-=Math.pow(2,8*e)),n},u.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||M(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return t>>>=0,e||M(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){t>>>=0,e||M(t,2,this.length);const r=this[t]|this[t+1]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt16BE=function(t,e){t>>>=0,e||M(t,2,this.length);const r=this[t+1]|this[t]<<8;return 32768&r?4294901760|r:r},u.prototype.readInt32LE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return t>>>=0,e||M(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readBigInt64LE=Z((function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24);return(BigInt(n)<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+this[++t]*2**24)})),u.prototype.readBigInt64BE=Z((function(t){W(t>>>=0,"offset");const e=this[t],r=this[t+7];void 0!==e&&void 0!==r||z(t,this.length-8);const n=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(n)<<BigInt(32))+BigInt(this[++t]*2**24+65536*this[++t]+256*this[++t]+r)})),u.prototype.readFloatLE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return t>>>=0,e||M(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return t>>>=0,e||M(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||x(this,t,e,r,Math.pow(2,8*r)-1,0);let i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(t,e,r,n){t=+t,e>>>=0,r>>>=0,n||x(this,t,e,r,Math.pow(2,8*r)-1,0);let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},u.prototype.writeUint8=u.prototype.writeUInt8=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,1,255,0),this[e]=255&t,e+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigUInt64LE=Z((function(t,e=0){return C(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=Z((function(t,e=0){return q(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);x(this,t,e,r,n-1,-n)}let i=0,o=1,s=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},u.prototype.writeIntBE=function(t,e,r,n){if(t=+t,e>>>=0,!n){const n=Math.pow(2,8*r-1);x(this,t,e,r,n-1,-n)}let i=r-1,o=1,s=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/o|0)-s&255;return e+r},u.prototype.writeInt8=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},u.prototype.writeInt16BE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},u.prototype.writeInt32LE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},u.prototype.writeInt32BE=function(t,e,r){return t=+t,e>>>=0,r||x(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},u.prototype.writeBigInt64LE=Z((function(t,e=0){return C(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=Z((function(t,e=0){return q(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(t,e,r){return D(this,t,e,!0,r)},u.prototype.writeFloatBE=function(t,e,r){return D(this,t,e,!1,r)},u.prototype.writeDoubleLE=function(t,e,r){return P(this,t,e,!0,r)},u.prototype.writeDoubleBE=function(t,e,r){return P(this,t,e,!1,r)},u.prototype.copy=function(t,e,r,n){if(!u.isBuffer(t))throw new TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);const i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},u.prototype.fill=function(t,e,r,n){if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!u.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===t.length){const e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw new RangeError("Out of range index");if(r<=e)return this;let i;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{const o=u.isBuffer(t)?t:u.from(t,n),s=o.length;if(0===s)throw new TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=o[i%s]}return this};const U={};function j(t,e,r){U[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function H(t){let e="",r=t.length;const n="-"===t[0]?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function F(t,e,r,n,i,o){if(t>r||t<e){const n="bigint"==typeof e?"n":"";let i;throw i=o>3?0===e||e===BigInt(0)?`>= 0${n} and < 2${n} ** ${8*(o+1)}${n}`:`>= -(2${n} ** ${8*(o+1)-1}${n}) and < 2 ** ${8*(o+1)-1}${n}`:`>= ${e}${n} and <= ${r}${n}`,new U.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,r){W(e,"offset"),void 0!==t[e]&&void 0!==t[e+r]||z(e,t.length-(r+1))}(n,i,o)}function W(t,e){if("number"!=typeof t)throw new U.ERR_INVALID_ARG_TYPE(e,"number",t)}function z(t,e,r){if(Math.floor(t)!==t)throw W(t,r),new U.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new U.ERR_BUFFER_OUT_OF_BOUNDS;throw new U.ERR_OUT_OF_RANGE(r||"offset",`>= ${r?1:0} and <= ${e}`,t)}j("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),j("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),j("ERR_OUT_OF_RANGE",(function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>2**32?i=H(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=H(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n}),RangeError);const G=/[^+/0-9A-Za-z-_]/g;function V(t,e){let r;e=e||1/0;const n=t.length;let i=null;const o=[];for(let s=0;s<n;++s){if(r=t.charCodeAt(s),r>55295&&r<57344){if(!i){if(r>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function $(t){return n.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(G,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function K(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length||i>=t.length);++i)e[i+r]=t[i];return i}function Y(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function X(t){return t!=t}const J=function(){const t="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){const n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function Z(t){return"undefined"==typeof BigInt?Q:t}function Q(){throw new Error("BigInt not supported")}},7007:t=>{var e,r="object"==typeof Reflect?Reflect:null,n=r&&"function"==typeof r.apply?r.apply:function(t,e,r){return Function.prototype.apply.call(t,e,r)};e=r&&"function"==typeof r.ownKeys?r.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var i=Number.isNaN||function(t){return t!=t};function o(){o.init.call(this)}t.exports=o,t.exports.once=function(t,e){return new Promise((function(r,n){function i(r){t.removeListener(e,o),n(r)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),r([].slice.call(arguments))}g(t,e,o,{once:!0}),"error"!==e&&function(t,e){"function"==typeof t.on&&g(t,"error",e,{once:!0})}(t,i)}))},o.EventEmitter=o,o.prototype._events=void 0,o.prototype._eventsCount=0,o.prototype._maxListeners=void 0;var s=10;function a(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?o.defaultMaxListeners:t._maxListeners}function f(t,e,r,n){var i,o,s,f;if(a(r),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,r.listener?r.listener:r),o=t._events),s=o[e]),void 0===s)s=o[e]=r,++t._eventsCount;else if("function"==typeof s?s=o[e]=n?[r,s]:[s,r]:n?s.unshift(r):s.push(r),(i=u(t))>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=t,l.type=e,l.count=s.length,f=l,console&&console.warn&&console.warn(f)}return t}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(t,e,r){var n={fired:!1,wrapFn:void 0,target:t,type:e,listener:r},i=l.bind(n);return i.listener=r,n.wrapFn=i,i}function c(t,e,r){var n=t._events;if(void 0===n)return[];var i=n[e];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var e=new Array(t.length),r=0;r<e.length;++r)e[r]=t[r].listener||t[r];return e}(i):p(i,i.length)}function d(t){var e=this._events;if(void 0!==e){var r=e[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function p(t,e){for(var r=new Array(e),n=0;n<e;++n)r[n]=t[n];return r}function g(t,e,r,n){if("function"==typeof t.on)n.once?t.once(e,r):t.on(e,r);else{if("function"!=typeof t.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t);t.addEventListener(e,(function i(o){n.once&&t.removeEventListener(e,i),r(o)}))}}Object.defineProperty(o,"defaultMaxListeners",{enumerable:!0,get:function(){return s},set:function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");s=t}}),o.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},o.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||i(t))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},o.prototype.getMaxListeners=function(){return u(this)},o.prototype.emit=function(t){for(var e=[],r=1;r<arguments.length;r++)e.push(arguments[r]);var i="error"===t,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(e.length>0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[t];if(void 0===u)return!1;if("function"==typeof u)n(u,this,e);else{var f=u.length,l=p(u,f);for(r=0;r<f;++r)n(l[r],this,e)}return!0},o.prototype.addListener=function(t,e){return f(this,t,e,!1)},o.prototype.on=o.prototype.addListener,o.prototype.prependListener=function(t,e){return f(this,t,e,!0)},o.prototype.once=function(t,e){return a(e),this.on(t,h(this,t,e)),this},o.prototype.prependOnceListener=function(t,e){return a(e),this.prependListener(t,h(this,t,e)),this},o.prototype.removeListener=function(t,e){var r,n,i,o,s;if(a(e),void 0===(n=this._events))return this;if(void 0===(r=n[t]))return this;if(r===e||r.listener===e)0==--this._eventsCount?this._events=Object.create(null):(delete n[t],n.removeListener&&this.emit("removeListener",t,r.listener||e));else if("function"!=typeof r){for(i=-1,o=r.length-1;o>=0;o--)if(r[o]===e||r[o].listener===e){s=r[o].listener,i=o;break}if(i<0)return this;0===i?r.shift():function(t,e){for(;e+1<t.length;e++)t[e]=t[e+1];t.pop()}(r,i),1===r.length&&(n[t]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",t,s||e)}return this},o.prototype.off=o.prototype.removeListener,o.prototype.removeAllListeners=function(t){var e,r,n;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0===arguments.length){var i,o=Object.keys(r);for(n=0;n<o.length;++n)"removeListener"!==(i=o[n])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(e=r[t]))this.removeListener(t,e);else if(void 0!==e)for(n=e.length-1;n>=0;n--)this.removeListener(t,e[n]);return this},o.prototype.listeners=function(t){return c(this,t,!0)},o.prototype.rawListeners=function(t){return c(this,t,!1)},o.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},o.prototype.listenerCount=d,o.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},251:(t,e)=>{e.read=function(t,e,r,n,i){var o,s,a=8*i-n-1,u=(1<<a)-1,f=u>>1,l=-7,h=r?i-1:0,c=r?-1:1,d=t[e+h];for(h+=c,o=d&(1<<-l)-1,d>>=-l,l+=a;l>0;o=256*o+t[e+h],h+=c,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=n;l>0;s=256*s+t[e+h],h+=c,l-=8);if(0===o)o=1-f;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,n),o-=f}return(d?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,r,n,i,o){var s,a,u,f=8*o-i-1,l=(1<<f)-1,h=l>>1,c=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),(e+=s+h>=1?c/u:c*Math.pow(2,1-h))*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[r+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,f+=i;f>0;t[r+d]=255&s,d+=p,s/=256,f-=8);t[r+d-p]|=128*g}},6698:t=>{"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var r=function(){};r.prototype=e.prototype,t.prototype=new r,t.prototype.constructor=t}}},5508:(t,e,r)=>{t.exports=r(9792)(r(4817))},9792:(t,e,r)=>{const n=r(212),i=r(4614);t.exports=function(t){const e=n(t),r=i(t);return function(t,n){switch("string"==typeof t?t.toLowerCase():t){case"keccak224":return new e(1152,448,null,224,n);case"keccak256":return new e(1088,512,null,256,n);case"keccak384":return new e(832,768,null,384,n);case"keccak512":return new e(576,1024,null,512,n);case"sha3-224":return new e(1152,448,6,224,n);case"sha3-256":return new e(1088,512,6,256,n);case"sha3-384":return new e(832,768,6,384,n);case"sha3-512":return new e(576,1024,6,512,n);case"shake128":return new r(1344,256,31,n);case"shake256":return new r(1088,512,31,n);default:throw new Error("Invald algorithm: "+t)}}}},212:(t,e,r)=>{const{Transform:n}=r(8399);t.exports=t=>class e extends n{constructor(e,r,n,i,o){super(o),this._rate=e,this._capacity=r,this._delimitedSuffix=n,this._hashBitLength=i,this._options=o,this._state=new t,this._state.initialize(e,r),this._finalized=!1}_transform(t,e,r){let n=null;try{this.update(t,e)}catch(t){n=t}r(n)}_flush(t){let e=null;try{this.push(this.digest())}catch(t){e=t}t(e)}update(t,e){if(!Buffer.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return Buffer.isBuffer(t)||(t=Buffer.from(t,e)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new e(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}},4614:(t,e,r)=>{const{Transform:n}=r(8399);t.exports=t=>class e extends n{constructor(e,r,n,i){super(i),this._rate=e,this._capacity=r,this._delimitedSuffix=n,this._options=i,this._state=new t,this._state.initialize(e,r),this._finalized=!1}_transform(t,e,r){let n=null;try{this.update(t,e)}catch(t){n=t}r(n)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,e){if(!Buffer.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return Buffer.isBuffer(t)||(t=Buffer.from(t,e)),this._state.absorb(t),this}squeeze(t,e){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let r=this._state.squeeze(t);return void 0!==e&&(r=r.toString(e)),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new e(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}},9078:(t,e)=>{const r=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];e.p1600=function(t){for(let e=0;e<24;++e){const n=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],a=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],f=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],h=t[8]^t[18]^t[28]^t[38]^t[48],c=t[9]^t[19]^t[29]^t[39]^t[49];let d=h^(o<<1|s>>>31),p=c^(s<<1|o>>>31);const g=t[0]^d,y=t[1]^p,b=t[10]^d,_=t[11]^p,w=t[20]^d,v=t[21]^p,m=t[30]^d,E=t[31]^p,S=t[40]^d,T=t[41]^p;d=n^(a<<1|u>>>31),p=i^(u<<1|a>>>31);const R=t[2]^d,A=t[3]^p,O=t[12]^d,B=t[13]^p,N=t[22]^d,I=t[23]^p,L=t[32]^d,M=t[33]^p,x=t[42]^d,C=t[43]^p;d=o^(f<<1|l>>>31),p=s^(l<<1|f>>>31);const q=t[4]^d,k=t[5]^p,D=t[14]^d,P=t[15]^p,U=t[24]^d,j=t[25]^p,H=t[34]^d,F=t[35]^p,W=t[44]^d,z=t[45]^p;d=a^(h<<1|c>>>31),p=u^(c<<1|h>>>31);const G=t[6]^d,V=t[7]^p,$=t[16]^d,K=t[17]^p,Y=t[26]^d,X=t[27]^p,J=t[36]^d,Z=t[37]^p,Q=t[46]^d,tt=t[47]^p;d=f^(n<<1|i>>>31),p=l^(i<<1|n>>>31);const et=t[8]^d,rt=t[9]^p,nt=t[18]^d,it=t[19]^p,ot=t[28]^d,st=t[29]^p,at=t[38]^d,ut=t[39]^p,ft=t[48]^d,lt=t[49]^p,ht=g,ct=y,dt=_<<4|b>>>28,pt=b<<4|_>>>28,gt=w<<3|v>>>29,yt=v<<3|w>>>29,bt=E<<9|m>>>23,_t=m<<9|E>>>23,wt=S<<18|T>>>14,vt=T<<18|S>>>14,mt=R<<1|A>>>31,Et=A<<1|R>>>31,St=B<<12|O>>>20,Tt=O<<12|B>>>20,Rt=N<<10|I>>>22,At=I<<10|N>>>22,Ot=M<<13|L>>>19,Bt=L<<13|M>>>19,Nt=x<<2|C>>>30,It=C<<2|x>>>30,Lt=k<<30|q>>>2,Mt=q<<30|k>>>2,xt=D<<6|P>>>26,Ct=P<<6|D>>>26,qt=j<<11|U>>>21,kt=U<<11|j>>>21,Dt=H<<15|F>>>17,Pt=F<<15|H>>>17,Ut=z<<29|W>>>3,jt=W<<29|z>>>3,Ht=G<<28|V>>>4,Ft=V<<28|G>>>4,Wt=K<<23|$>>>9,zt=$<<23|K>>>9,Gt=Y<<25|X>>>7,Vt=X<<25|Y>>>7,$t=J<<21|Z>>>11,Kt=Z<<21|J>>>11,Yt=tt<<24|Q>>>8,Xt=Q<<24|tt>>>8,Jt=et<<27|rt>>>5,Zt=rt<<27|et>>>5,Qt=nt<<20|it>>>12,te=it<<20|nt>>>12,ee=st<<7|ot>>>25,re=ot<<7|st>>>25,ne=at<<8|ut>>>24,ie=ut<<8|at>>>24,oe=ft<<14|lt>>>18,se=lt<<14|ft>>>18;t[0]=ht^~St&qt,t[1]=ct^~Tt&kt,t[10]=Ht^~Qt>,t[11]=Ft^~te&yt,t[20]=mt^~xt&Gt,t[21]=Et^~Ct&Vt,t[30]=Jt^~dt&Rt,t[31]=Zt^~pt&At,t[40]=Lt^~Wt&ee,t[41]=Mt^~zt&re,t[2]=St^~qt&$t,t[3]=Tt^~kt&Kt,t[12]=Qt^~gt&Ot,t[13]=te^~yt&Bt,t[22]=xt^~Gt&ne,t[23]=Ct^~Vt&ie,t[32]=dt^~Rt&Dt,t[33]=pt^~At&Pt,t[42]=Wt^~ee&bt,t[43]=zt^~re&_t,t[4]=qt^~$t&oe,t[5]=kt^~Kt&se,t[14]=gt^~Ot&Ut,t[15]=yt^~Bt&jt,t[24]=Gt^~ne&wt,t[25]=Vt^~ie&vt,t[34]=Rt^~Dt&Yt,t[35]=At^~Pt&Xt,t[44]=ee^~bt&Nt,t[45]=re^~_t&It,t[6]=$t^~oe&ht,t[7]=Kt^~se&ct,t[16]=Ot^~Ut&Ht,t[17]=Bt^~jt&Ft,t[26]=ne^~wt&mt,t[27]=ie^~vt&Et,t[36]=Dt^~Yt&Jt,t[37]=Pt^~Xt&Zt,t[46]=bt^~Nt&Lt,t[47]=_t^~It&Mt,t[8]=oe^~ht&St,t[9]=se^~ct&Tt,t[18]=Ut^~Ht&Qt,t[19]=jt^~Ft&te,t[28]=wt^~mt&xt,t[29]=vt^~Et&Ct,t[38]=Yt^~Jt&dt,t[39]=Xt^~Zt&pt,t[48]=Nt^~Lt&Wt,t[49]=It^~Mt&zt,t[0]^=r[2*e],t[1]^=r[2*e+1]}}},4817:(t,e,r)=>{const n=r(9078);function i(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}i.prototype.initialize=function(t,e){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(t){for(let e=0;e<t.length;++e)this.state[~~(this.count/4)]^=t[e]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0)},i.prototype.absorbLastFewBits=function(t){this.state[~~(this.count/4)]^=t<<this.count%4*8,128&t&&this.count===this.blockSize-1&&n.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,n.p1600(this.state),this.count=0,this.squeezing=!0},i.prototype.squeeze=function(t){this.squeezing||this.absorbLastFewBits(1);const e=Buffer.alloc(t);for(let r=0;r<t;++r)e[r]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(n.p1600(this.state),this.count=0);return e},i.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},t.exports=i},6048:t=>{var e={};function r(t,r,n){n||(n=Error);var i=function(t){var e,n;function i(e,n,i){return t.call(this,function(t,e,n){return"string"==typeof r?r:r(t,e,n)}(e,n,i))||this}return n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,i}(n);i.prototype.name=n.name,i.prototype.code=t,e[t]=i}function n(t,e){if(Array.isArray(t)){var r=t.length;return t=t.map((function(t){return String(t)})),r>2?"one of ".concat(e," ").concat(t.slice(0,r-1).join(", "),", or ")+t[r-1]:2===r?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,r){var i,o,s,a,u;if("string"==typeof e&&(o="not ",e.substr(0,4)===o)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,r){return(void 0===r||r>t.length)&&(r=t.length),t.substring(r-9,r)===e}(t," argument"))s="The ".concat(t," ").concat(i," ").concat(n(e,"type"));else{var f=("number"!=typeof u&&(u=0),u+1>(a=t).length||-1===a.indexOf(".",u)?"argument":"property");s='The "'.concat(t,'" ').concat(f," ").concat(i," ").concat(n(e,"type"))}return s+". Received type ".concat(typeof r)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.F=e},5382:(t,e,r)=>{var n=Object.keys||function(t){var e=[];for(var r in t)e.push(r);return e};t.exports=f;var i=r(5412),o=r(6708);r(6698)(f,i);for(var s=n(o.prototype),a=0;a<s.length;a++){var u=s[a];f.prototype[u]||(f.prototype[u]=o.prototype[u])}function f(t){if(!(this instanceof f))return new f(t);i.call(this,t),o.call(this,t),this.allowHalfOpen=!0,t&&(!1===t.readable&&(this.readable=!1),!1===t.writable&&(this.writable=!1),!1===t.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",l)))}function l(){this._writableState.ended||process.nextTick(h,this)}function h(t){t.end()}Object.defineProperty(f.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(f.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(f.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(f.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}})},3600:(t,e,r)=>{t.exports=i;var n=r(4610);function i(t){if(!(this instanceof i))return new i(t);n.call(this,t)}r(6698)(i,n),i.prototype._transform=function(t,e,r){r(null,t)}},5412:(t,e,r)=>{var n;t.exports=T,T.ReadableState=S,r(7007).EventEmitter;var i,o=function(t,e){return t.listeners(e).length},s=r(345),a=r(8287).Buffer,u=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},f=r(9838);i=f&&f.debuglog?f.debuglog("stream"):function(){};var l,h,c,d=r(2726),p=r(5896),g=r(5291).getHighWaterMark,y=r(6048).F,b=y.ERR_INVALID_ARG_TYPE,_=y.ERR_STREAM_PUSH_AFTER_EOF,w=y.ERR_METHOD_NOT_IMPLEMENTED,v=y.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(6698)(T,s);var m=p.errorOrDestroy,E=["error","close","destroy","pause","resume"];function S(t,e,i){n=n||r(5382),t=t||{},"boolean"!=typeof i&&(i=e instanceof n),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=g(this,t,"readableHighWaterMark",i),this.buffer=new d,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(l||(l=r(3141).I),this.decoder=new l(t.encoding),this.encoding=t.encoding)}function T(t){if(n=n||r(5382),!(this instanceof T))return new T(t);var e=this instanceof n;this._readableState=new S(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function R(t,e,r,n,o){i("readableAddChunk",e);var s,f=t._readableState;if(null===e)f.reading=!1,function(t,e){if(i("onEofChunk"),!e.ended){if(e.decoder){var r=e.decoder.end();r&&r.length&&(e.buffer.push(r),e.length+=e.objectMode?1:r.length)}e.ended=!0,e.sync?N(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,I(t)))}}(t,f);else if(o||(s=function(t,e){var r,n;return n=e,a.isBuffer(n)||n instanceof u||"string"==typeof e||void 0===e||t.objectMode||(r=new b("chunk",["string","Buffer","Uint8Array"],e)),r}(f,e)),s)m(t,s);else if(f.objectMode||e&&e.length>0)if("string"==typeof e||f.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=function(t){return a.from(t)}(e)),n)f.endEmitted?m(t,new v):A(t,f,e,!0);else if(f.ended)m(t,new _);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!r?(e=f.decoder.write(e),f.objectMode||0!==e.length?A(t,f,e,!1):L(t,f)):A(t,f,e,!1)}else n||(f.reading=!1,L(t,f));return!f.ended&&(f.length<f.highWaterMark||0===f.length)}function A(t,e,r,n){e.flowing&&0===e.length&&!e.sync?(e.awaitDrain=0,t.emit("data",r)):(e.length+=e.objectMode?1:r.length,n?e.buffer.unshift(r):e.buffer.push(r),e.needReadable&&N(t)),L(t,e)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),T.prototype.destroy=p.destroy,T.prototype._undestroy=p.undestroy,T.prototype._destroy=function(t,e){e(t)},T.prototype.push=function(t,e){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof t&&((e=e||n.defaultEncoding)!==n.encoding&&(t=a.from(t,e),e=""),r=!0),R(this,t,e,!1,r)},T.prototype.unshift=function(t){return R(this,t,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(t){l||(l=r(3141).I);var e=new l(t);this._readableState.decoder=e,this._readableState.encoding=this._readableState.decoder.encoding;for(var n=this._readableState.buffer.head,i="";null!==n;)i+=e.write(n.data),n=n.next;return this._readableState.buffer.clear(),""!==i&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function B(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!=t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=function(t){return t>=O?t=O:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function N(t){var e=t._readableState;i("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(i("emitReadable",e.flowing),e.emittedReadable=!0,process.nextTick(I,t))}function I(t){var e=t._readableState;i("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,k(t)}function L(t,e){e.readingMore||(e.readingMore=!0,process.nextTick(M,t,e))}function M(t,e){for(;!e.reading&&!e.ended&&(e.length<e.highWaterMark||e.flowing&&0===e.length);){var r=e.length;if(i("maybeReadMore read 0"),t.read(0),r===e.length)break}e.readingMore=!1}function x(t){var e=t._readableState;e.readableListening=t.listenerCount("readable")>0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function C(t){i("readable nexttick read 0"),t.read(0)}function q(t,e){i("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),k(t),e.flowing&&!e.reading&&t.read(0)}function k(t){var e=t._readableState;for(i("flow",e.flowing);e.flowing&&null!==t.read(););}function D(t,e){return 0===e.length?null:(e.objectMode?r=e.buffer.shift():!t||t>=e.length?(r=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):r=e.buffer.consume(t,e.decoder),r);var r}function P(t){var e=t._readableState;i("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,process.nextTick(U,e,t))}function U(t,e){if(i("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var r=e._writableState;(!r||r.autoDestroy&&r.finished)&&e.destroy()}}function j(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}T.prototype.read=function(t){i("read",t),t=parseInt(t,10);var e=this._readableState,r=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&((0!==e.highWaterMark?e.length>=e.highWaterMark:e.length>0)||e.ended))return i("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?P(this):N(this),null;if(0===(t=B(t,e))&&e.ended)return 0===e.length&&P(this),null;var n,o=e.needReadable;return i("need readable",o),(0===e.length||e.length-t<e.highWaterMark)&&i("length less than watermark",o=!0),e.ended||e.reading?i("reading or ended",o=!1):o&&(i("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=B(r,e))),null===(n=t>0?D(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),r!==t&&e.ended&&P(this)),null!==n&&this.emit("data",n),n},T.prototype._read=function(t){m(this,new w("_read()"))},T.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,i("pipe count=%d opts=%j",n.pipesCount,e);var s=e&&!1===e.end||t===process.stdout||t===process.stderr?p:a;function a(){i("onend"),t.end()}n.endEmitted?process.nextTick(s):r.once("end",s),t.on("unpipe",(function e(o,s){i("onunpipe"),o===r&&s&&!1===s.hasUnpiped&&(s.hasUnpiped=!0,i("cleanup"),t.removeListener("close",c),t.removeListener("finish",d),t.removeListener("drain",u),t.removeListener("error",h),t.removeListener("unpipe",e),r.removeListener("end",a),r.removeListener("end",p),r.removeListener("data",l),f=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||u())}));var u=function(t){return function(){var e=t._readableState;i("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&o(t,"data")&&(e.flowing=!0,k(t))}}(r);t.on("drain",u);var f=!1;function l(e){i("ondata");var o=t.write(e);i("dest.write",o),!1===o&&((1===n.pipesCount&&n.pipes===t||n.pipesCount>1&&-1!==j(n.pipes,t))&&!f&&(i("false write response, pause",n.awaitDrain),n.awaitDrain++),r.pause())}function h(e){i("onerror",e),p(),t.removeListener("error",h),0===o(t,"error")&&m(t,e)}function c(){t.removeListener("finish",d),p()}function d(){i("onfinish"),t.removeListener("close",c),p()}function p(){i("unpipe"),r.unpipe(t)}return r.on("data",l),function(t,e,r){if("function"==typeof t.prependListener)return t.prependListener(e,r);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(r):t._events[e]=[r,t._events[e]]:t.on(e,r)}(t,"error",h),t.once("close",c),t.once("finish",d),t.emit("pipe",r),n.flowing||(i("pipe resume"),r.resume()),t},T.prototype.unpipe=function(t){var e=this._readableState,r={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,r)),this;if(!t){var n=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)n[o].emit("unpipe",this,{hasUnpiped:!1});return this}var s=j(e.pipes,t);return-1===s||(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,r)),this},T.prototype.on=function(t,e){var r=s.prototype.on.call(this,t,e),n=this._readableState;return"data"===t?(n.readableListening=this.listenerCount("readable")>0,!1!==n.flowing&&this.resume()):"readable"===t&&(n.endEmitted||n.readableListening||(n.readableListening=n.needReadable=!0,n.flowing=!1,n.emittedReadable=!1,i("on readable",n.length,n.reading),n.length?N(this):n.reading||process.nextTick(C,this))),r},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(t,e){var r=s.prototype.removeListener.call(this,t,e);return"readable"===t&&process.nextTick(x,this),r},T.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||process.nextTick(x,this),e},T.prototype.resume=function(){var t=this._readableState;return t.flowing||(i("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,process.nextTick(q,t,e))}(this,t)),t.paused=!1,this},T.prototype.pause=function(){return i("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(i("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},T.prototype.wrap=function(t){var e=this,r=this._readableState,n=!1;for(var o in t.on("end",(function(){if(i("wrapped end"),r.decoder&&!r.ended){var t=r.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){i("wrapped data"),r.decoder&&(o=r.decoder.write(o)),r.objectMode&&null==o||(r.objectMode||o&&o.length)&&(e.push(o)||(n=!0,t.pause()))})),t)void 0===this[o]&&"function"==typeof t[o]&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));for(var s=0;s<E.length;s++)t.on(E[s],this.emit.bind(this,E[s]));return this._read=function(e){i("wrapped _read",e),n&&(n=!1,t.resume())},this},"function"==typeof Symbol&&(T.prototype[Symbol.asyncIterator]=function(){return void 0===h&&(h=r(2955)),h(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(t){this._readableState&&(this._readableState.flowing=t)}}),T._fromList=D,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(T.from=function(t,e){return void 0===c&&(c=r(5157)),c(T,t,e)})},4610:(t,e,r)=>{t.exports=l;var n=r(6048).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,o=n.ERR_MULTIPLE_CALLBACK,s=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(5382);function f(t,e){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(null===n)return this.emit("error",new o);r.writechunk=null,r.writecb=null,null!=e&&this.push(e),n(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function l(t){if(!(this instanceof l))return new l(t);u.call(this,t),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.on("prefinish",h)}function h(){var t=this;"function"!=typeof this._flush||this._readableState.destroyed?c(this,null,null):this._flush((function(e,r){c(t,e,r)}))}function c(t,e,r){if(e)return t.emit("error",e);if(null!=r&&t.push(r),t._writableState.length)throw new a;if(t._transformState.transforming)throw new s;return t.push(null)}r(6698)(l,u),l.prototype.push=function(t,e){return this._transformState.needTransform=!1,u.prototype.push.call(this,t,e)},l.prototype._transform=function(t,e,r){r(new i("_transform()"))},l.prototype._write=function(t,e,r){var n=this._transformState;if(n.writecb=r,n.writechunk=t,n.writeencoding=e,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},l.prototype._read=function(t){var e=this._transformState;null===e.writechunk||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))},l.prototype._destroy=function(t,e){u.prototype._destroy.call(this,t,(function(t){e(t)}))}},6708:(t,e,r)=>{function n(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e){var r=t.entry;for(t.entry=null;r;){var n=r.callback;e.pendingcb--,n(undefined),r=r.next}e.corkedRequestsFree.next=t}(e,t)}}var i;t.exports=T,T.WritableState=S;var o,s={deprecate:r(4643)},a=r(345),u=r(8287).Buffer,f=(void 0!==r.g?r.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},l=r(5896),h=r(5291).getHighWaterMark,c=r(6048).F,d=c.ERR_INVALID_ARG_TYPE,p=c.ERR_METHOD_NOT_IMPLEMENTED,g=c.ERR_MULTIPLE_CALLBACK,y=c.ERR_STREAM_CANNOT_PIPE,b=c.ERR_STREAM_DESTROYED,_=c.ERR_STREAM_NULL_VALUES,w=c.ERR_STREAM_WRITE_AFTER_END,v=c.ERR_UNKNOWN_ENCODING,m=l.errorOrDestroy;function E(){}function S(t,e,o){i=i||r(5382),t=t||{},"boolean"!=typeof o&&(o=e instanceof i),this.objectMode=!!t.objectMode,o&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=h(this,t,"writableHighWaterMark",o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var r=t._writableState,n=r.sync,i=r.writecb;if("function"!=typeof i)throw new g;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(r),e)!function(t,e,r,n,i){--e.pendingcb,r?(process.nextTick(i,n),process.nextTick(I,t,e),t._writableState.errorEmitted=!0,m(t,n)):(i(n),t._writableState.errorEmitted=!0,m(t,n),I(t,e))}(t,r,n,e,i);else{var o=B(r)||t.destroyed;o||r.corked||r.bufferProcessing||!r.bufferedRequest||O(t,r),n?process.nextTick(A,t,r,o,i):A(t,r,o,i)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new n(this)}function T(t){var e=this instanceof(i=i||r(5382));if(!e&&!o.call(T,this))return new T(t);this._writableState=new S(t,this,e),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),a.call(this)}function R(t,e,r,n,i,o,s){e.writelen=n,e.writecb=s,e.writing=!0,e.sync=!0,e.destroyed?e.onwrite(new b("write")):r?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function A(t,e,r,n){r||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,n(),I(t,e)}function O(t,e){e.bufferProcessing=!0;var r=e.bufferedRequest;if(t._writev&&r&&r.next){var i=e.bufferedRequestCount,o=new Array(i),s=e.corkedRequestsFree;s.entry=r;for(var a=0,u=!0;r;)o[a]=r,r.isBuf||(u=!1),r=r.next,a+=1;o.allBuffers=u,R(t,e,!0,e.length,o,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new n(e),e.bufferedRequestCount=0}else{for(;r;){var f=r.chunk,l=r.encoding,h=r.callback;if(R(t,e,!1,e.objectMode?1:f.length,f,l,h),r=r.next,e.bufferedRequestCount--,e.writing)break}null===r&&(e.lastBufferedRequest=null)}e.bufferedRequest=r,e.bufferProcessing=!1}function B(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function N(t,e){t._final((function(r){e.pendingcb--,r&&m(t,r),e.prefinished=!0,t.emit("prefinish"),I(t,e)}))}function I(t,e){var r=B(e);if(r&&(function(t,e){e.prefinished||e.finalCalled||("function"!=typeof t._final||e.destroyed?(e.prefinished=!0,t.emit("prefinish")):(e.pendingcb++,e.finalCalled=!0,process.nextTick(N,t,e)))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"),e.autoDestroy))){var n=t._readableState;(!n||n.autoDestroy&&n.endEmitted)&&t.destroy()}return r}r(6698)(T,a),S.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(S.prototype,"buffer",{get:s.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(o=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(t){return!!o.call(this,t)||this===T&&t&&t._writableState instanceof S}})):o=function(t){return t instanceof this},T.prototype.pipe=function(){m(this,new y)},T.prototype.write=function(t,e,r){var n,i=this._writableState,o=!1,s=!i.objectMode&&(n=t,u.isBuffer(n)||n instanceof f);return s&&!u.isBuffer(t)&&(t=function(t){return u.from(t)}(t)),"function"==typeof e&&(r=e,e=null),s?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof r&&(r=E),i.ending?function(t,e){var r=new w;m(t,r),process.nextTick(e,r)}(this,r):(s||function(t,e,r,n){var i;return null===r?i=new _:"string"==typeof r||e.objectMode||(i=new d("chunk",["string","Buffer"],r)),!i||(m(t,i),process.nextTick(n,i),!1)}(this,i,t,r))&&(i.pendingcb++,o=function(t,e,r,n,i,o){if(!r){var s=function(t,e,r){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=u.from(e,r)),e}(e,n,i);n!==s&&(r=!0,i="buffer",n=s)}var a=e.objectMode?1:n.length;e.length+=a;var f=e.length<e.highWaterMark;if(f||(e.needDrain=!0),e.writing||e.corked){var l=e.lastBufferedRequest;e.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:o,next:null},l?l.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else R(t,e,!1,a,n,i,o);return f}(this,i,s,t,e,r)),o},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.bufferProcessing||!t.bufferedRequest||O(this,t))},T.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new v(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(t,e,r){r(new p("_write()"))},T.prototype._writev=null,T.prototype.end=function(t,e,r){var n=this._writableState;return"function"==typeof t?(r=t,t=null,e=null):"function"==typeof e&&(r=e,e=null),null!=t&&this.write(t,e),n.corked&&(n.corked=1,this.uncork()),n.ending||function(t,e,r){e.ending=!0,I(t,e),r&&(e.finished?process.nextTick(r):t.once("finish",r)),e.ended=!0,t.writable=!1}(this,n,r),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),T.prototype.destroy=l.destroy,T.prototype._undestroy=l.undestroy,T.prototype._destroy=function(t,e){e(t)}},2955:(t,e,r)=>{var n;function i(t,e,r){return(e=function(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var o=r(6238),s=Symbol("lastResolve"),a=Symbol("lastReject"),u=Symbol("error"),f=Symbol("ended"),l=Symbol("lastPromise"),h=Symbol("handlePromise"),c=Symbol("stream");function d(t,e){return{value:t,done:e}}function p(t){var e=t[s];if(null!==e){var r=t[c].read();null!==r&&(t[l]=null,t[s]=null,t[a]=null,e(d(r,!1)))}}function g(t){process.nextTick(p,t)}var y=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((i(n={get stream(){return this[c]},next:function(){var t=this,e=this[u];if(null!==e)return Promise.reject(e);if(this[f])return Promise.resolve(d(void 0,!0));if(this[c].destroyed)return new Promise((function(e,r){process.nextTick((function(){t[u]?r(t[u]):e(d(void 0,!0))}))}));var r,n=this[l];if(n)r=new Promise(function(t,e){return function(r,n){t.then((function(){e[f]?r(d(void 0,!0)):e[h](r,n)}),n)}}(n,this));else{var i=this[c].read();if(null!==i)return Promise.resolve(d(i,!1));r=new Promise(this[h])}return this[l]=r,r}},Symbol.asyncIterator,(function(){return this})),i(n,"return",(function(){var t=this;return new Promise((function(e,r){t[c].destroy(null,(function(t){t?r(t):e(d(void 0,!0))}))}))})),n),y);t.exports=function(t){var e,r=Object.create(b,(i(e={},c,{value:t,writable:!0}),i(e,s,{value:null,writable:!0}),i(e,a,{value:null,writable:!0}),i(e,u,{value:null,writable:!0}),i(e,f,{value:t._readableState.endEmitted,writable:!0}),i(e,h,{value:function(t,e){var n=r[c].read();n?(r[l]=null,r[s]=null,r[a]=null,t(d(n,!1))):(r[s]=t,r[a]=e)},writable:!0}),e));return r[l]=null,o(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=r[a];return null!==e&&(r[l]=null,r[s]=null,r[a]=null,e(t)),void(r[u]=t)}var n=r[s];null!==n&&(r[l]=null,r[s]=null,r[a]=null,n(d(void 0,!0))),r[f]=!0})),t.on("readable",g.bind(null,r)),r}},2726:(t,e,r)=>{function n(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function i(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?n(Object(r),!0).forEach((function(e){o(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function o(t,e,r){return(e=a(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,a(n.key),n)}}function a(t){var e=function(t){if("object"!=typeof t||null===t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var r=e.call(t,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==typeof e?e:String(e)}var u=r(8287).Buffer,f=r(5340).inspect,l=f&&f.custom||"inspect";t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}var e,r;return e=t,(r=[{key:"push",value:function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,r=""+e.data;e=e.next;)r+=t+e.data;return r}},{key:"concat",value:function(t){if(0===this.length)return u.alloc(0);for(var e,r,n,i=u.allocUnsafe(t>>>0),o=this.head,s=0;o;)e=o.data,r=i,n=s,u.prototype.copy.call(e,r,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(t,e){var r;return t<this.head.data.length?(r=this.head.data.slice(0,t),this.head.data=this.head.data.slice(t)):r=t===this.head.data.length?this.shift():e?this._getString(t):this._getBuffer(t),r}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(t){var e=this.head,r=1,n=e.data;for(t-=n.length;e=e.next;){var i=e.data,o=t>i.length?i.length:t;if(o===i.length?n+=i:n+=i.slice(0,t),0==(t-=o)){o===i.length?(++r,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++r}return this.length-=r,n}},{key:"_getBuffer",value:function(t){var e=u.allocUnsafe(t),r=this.head,n=1;for(r.data.copy(e),t-=r.data.length;r=r.next;){var i=r.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0==(t-=o)){o===i.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=i.slice(o));break}++n}return this.length-=n,e}},{key:l,value:function(t,e){return f(this,i(i({},e),{},{depth:0,customInspect:!1}))}}])&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),t}()},5896:t=>{function e(t,e){n(t,e),r(t)}function r(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function n(t,e){t.emit("error",e)}t.exports={destroy:function(t,i){var o=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(i?i(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,t)):process.nextTick(n,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!i&&t?o._writableState?o._writableState.errorEmitted?process.nextTick(r,o):(o._writableState.errorEmitted=!0,process.nextTick(e,o,t)):process.nextTick(e,o,t):i?(process.nextTick(r,o),i(t)):process.nextTick(r,o)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(t,e){var r=t._readableState,n=t._writableState;r&&r.autoDestroy||n&&n.autoDestroy?t.destroy(e):t.emit("error",e)}}},6238:(t,e,r)=>{var n=r(6048).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,r,o){if("function"==typeof r)return t(e,null,r);r||(r={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var r=arguments.length,n=new Array(r),i=0;i<r;i++)n[i]=arguments[i];t.apply(this,n)}}}(o||i);var s=r.readable||!1!==r.readable&&e.readable,a=r.writable||!1!==r.writable&&e.writable,u=function(){e.writable||l()},f=e._writableState&&e._writableState.finished,l=function(){a=!1,f=!0,s||o.call(e)},h=e._readableState&&e._readableState.endEmitted,c=function(){s=!1,h=!0,a||o.call(e)},d=function(t){o.call(e,t)},p=function(){var t;return s&&!h?(e._readableState&&e._readableState.ended||(t=new n),o.call(e,t)):a&&!f?(e._writableState&&e._writableState.ended||(t=new n),o.call(e,t)):void 0},g=function(){e.req.on("finish",l)};return function(t){return t.setHeader&&"function"==typeof t.abort}(e)?(e.on("complete",l),e.on("abort",p),e.req?g():e.on("request",g)):a&&!e._writableState&&(e.on("end",u),e.on("close",u)),e.on("end",c),e.on("finish",l),!1!==r.error&&e.on("error",d),e.on("close",p),function(){e.removeListener("complete",l),e.removeListener("abort",p),e.removeListener("request",g),e.req&&e.req.removeListener("finish",l),e.removeListener("end",u),e.removeListener("close",u),e.removeListener("finish",l),e.removeListener("end",c),e.removeListener("error",d),e.removeListener("close",p)}}},5157:t=>{t.exports=function(){throw new Error("Readable.from is not available in the browser")}},7758:(t,e,r)=>{var n,i=r(6048).F,o=i.ERR_MISSING_ARGS,s=i.ERR_STREAM_DESTROYED;function a(t){if(t)throw t}function u(t){t()}function f(t,e){return t.pipe(e)}t.exports=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var l,h=function(t){return t.length?"function"!=typeof t[t.length-1]?a:t.pop():a}(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new o("streams");var c=e.map((function(t,i){var o=i<e.length-1;return function(t,e,i,o){o=function(t){var e=!1;return function(){e||(e=!0,t.apply(void 0,arguments))}}(o);var a=!1;t.on("close",(function(){a=!0})),void 0===n&&(n=r(6238)),n(t,{readable:e,writable:i},(function(t){if(t)return o(t);a=!0,o()}));var u=!1;return function(e){if(!a&&!u)return u=!0,function(t){return t.setHeader&&"function"==typeof t.abort}(t)?t.abort():"function"==typeof t.destroy?t.destroy():void o(e||new s("pipe"))}}(t,o,i>0,(function(t){l||(l=t),t&&c.forEach(u),o||(c.forEach(u),h(l))}))}));return e.reduce(f)}},5291:(t,e,r)=>{var n=r(6048).F.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(t,e,r,i){var o=function(t,e,r){return null!=t.highWaterMark?t.highWaterMark:e?t[r]:null}(e,i,r);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(i?r:"highWaterMark",o);return Math.floor(o)}return t.objectMode?16:16384}}},345:(t,e,r)=>{t.exports=r(7007).EventEmitter},8399:(t,e,r)=>{(e=t.exports=r(5412)).Stream=e,e.Readable=e,e.Writable=r(6708),e.Duplex=r(5382),e.Transform=r(4610),e.PassThrough=r(3600),e.finished=r(6238),e.pipeline=r(7758)},2861:(t,e,r)=>{var n=r(8287),i=n.Buffer;function o(t,e){for(var r in t)e[r]=t[r]}function s(t,e,r){return i(t,e,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,e),e.Buffer=s),s.prototype=Object.create(i.prototype),o(i,s),s.from=function(t,e,r){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,r)},s.alloc=function(t,e,r){if("number"!=typeof t)throw new TypeError("Argument must be a number");var n=i(t);return void 0!==e?"string"==typeof r?n.fill(e,r):n.fill(e):n.fill(0),n},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}},3141:(t,e,r)=>{var n=r(2861).Buffer,i=n.isEncoding||function(t){switch((t=""+t)&&t.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 o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(n.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=f,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=l,this.end=h,e=3;break;default:return this.write=c,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,r=function(t,e){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==r?r:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var r=t.toString("utf16le",e);if(r){var n=r.charCodeAt(r.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],r.slice(0,-1)}return r}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var r=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,r)}return e}function l(t,e){var r=(t.length-e)%3;return 0===r?t.toString("base64",e):(this.lastNeed=3-r,this.lastTotal=3,1===r?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-r))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function c(t){return t.toString(this.encoding)}function d(t){return t&&t.length?this.write(t):""}e.I=o,o.prototype.write=function(t){if(0===t.length)return"";var e,r;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";r=this.lastNeed,this.lastNeed=0}else r=0;return r<t.length?e?e+this.text(t,r):this.text(t,r):e||""},o.prototype.end=function(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e},o.prototype.text=function(t,e){var r=function(t,e,r){var n=e.length-1;if(n<r)return 0;var i=s(e[n]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--n<r||-2===i?0:(i=s(e[n]))>=0?(i>0&&(t.lastNeed=i-2),i):--n<r||-2===i?0:(i=s(e[n]))>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=r;var n=t.length-(r-this.lastNeed);return t.copy(this.lastChar,0,n),t.toString("utf8",e,n)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},4643:(t,e,r)=>{function n(t){try{if(!r.g.localStorage)return!1}catch(t){return!1}var e=r.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* The buffer module from node.js, for the browser.
|
|
3
|
-
*
|
|
4
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
-
* @license MIT
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
9
|
-
|
|
10
|
-
/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
package/dist/403.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_xoxno_sdk_js=self.webpackChunk_xoxno_sdk_js||[]).push([[403],{84:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GuardianData=t.AccountOnNetwork=void 0;const s=n(r(1594)),i=r(1466);class o{constructor(e){this.address=new i.Address(""),this.nonce=0,this.balance=new s.default(0),this.code="",this.userName="",Object.assign(this,e)}static fromHttpResponse(e){let t=new o;return t.address=new i.Address(e.address||""),t.nonce=Number(e.nonce||0),t.balance=new s.default(e.balance||0),t.code=e.code||"",t.userName=e.username||"",t}}t.AccountOnNetwork=o;class a{constructor(e){this.guarded=!1,Object.assign(this,e)}static fromHttpResponse(e){const t=new a;return t.guarded=e.guarded||!1,e.activeGuardian&&(t.activeGuardian=c.fromHttpResponse(e.activeGuardian)),e.pendingGuardian&&(t.pendingGuardian=c.fromHttpResponse(e.pendingGuardian)),t}getCurrentGuardianAddress(){var e;if(this.guarded)return null===(e=this.activeGuardian)||void 0===e?void 0:e.address}}t.GuardianData=a;class c{constructor(){this.activationEpoch=0,this.address=new i.Address(""),this.serviceUID=""}static fromHttpResponse(e){const t=new c;return t.activationEpoch=Number(e.activationEpoch||0),t.address=new i.Address(e.address||""),t.serviceUID=e.serviceUID||"",t}}},6482:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultPagination=t.defaultAxiosConfig=void 0;const n=r(1013)({constructorAction:"ignore"});t.defaultAxiosConfig={timeout:5e3,transformResponse:[function(e){return n.parse(e)}]},t.defaultPagination={from:0,size:100}},4027:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownClientName=t.BaseUserAgent=t.EsdtContractAddress=t.MaxUint64AsBigNumber=void 0;const s=n(r(1594)),i=r(1466);t.MaxUint64AsBigNumber=new s.default("18446744073709551615"),t.EsdtContractAddress=new i.Address("erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u"),t.BaseUserAgent="multiversx-sdk",t.UnknownClientName="unknown"},8419:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContractQueryRequest=void 0,t.ContractQueryRequest=class{constructor(e){this.query=e}toHttpRequest(){var e;let t={},r=this.query;return t.scAddress=r.address.bech32(),t.caller=(null===(e=r.caller)||void 0===e?void 0:e.bech32())?r.caller.bech32():void 0,t.funcName=r.func.toString(),t.value=r.value?r.value.toString():void 0,t.args=r.getEncodedArguments(),t}}},3767:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContractQueryResponse=void 0;const s=n(r(1594)),i=r(4027);class o{constructor(e){this.returnData=(null==e?void 0:e.returnData)||[],this.returnCode=(null==e?void 0:e.returnCode)||"",this.returnMessage=(null==e?void 0:e.returnMessage)||"",this.gasUsed=(null==e?void 0:e.gasUsed)||0}static fromHttpResponse(e){let t=e.returnData||e.ReturnData,r=e.returnCode||e.ReturnCode,n=e.returnMessage||e.ReturnMessage,a=new s.default(e.gasRemaining||e.GasRemaining||0),c=i.MaxUint64AsBigNumber.minus(a).toNumber();return new o({returnData:t,returnCode:r,returnMessage:n,gasUsed:c})}getReturnDataParts(){return this.returnData.map((e=>Buffer.from(e||"","base64")))}toJSON(){return{returnData:this.returnData,returnCode:this.returnCode,returnMessage:this.returnMessage,gasUsed:this.gasUsed.valueOf()}}}t.ContractQueryResponse=o},2286:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContractResultItem=t.ContractResults=void 0;const n=r(9857),s=r(1466);class i{constructor(e){this.items=e,this.items.sort((function(e,t){return e.nonce.valueOf()-t.nonce.valueOf()}))}static fromProxyHttpResponse(e){let t=e.map((e=>o.fromProxyHttpResponse(e)));return new i(t)}static fromApiHttpResponse(e){let t=e.map((e=>o.fromApiHttpResponse(e)));return new i(t)}}t.ContractResults=i;class o{constructor(e){this.hash="",this.nonce=0,this.value="",this.receiver=new s.Address(""),this.sender=new s.Address(""),this.data="",this.previousHash="",this.originalHash="",this.gasLimit=0,this.gasPrice=0,this.callType=0,this.returnMessage="",this.logs=new n.TransactionLogs,Object.assign(this,e)}static fromProxyHttpResponse(e){return o.fromHttpResponse(e)}static fromApiHttpResponse(e){let t=o.fromHttpResponse(e);return t.data=Buffer.from(t.data,"base64").toString(),t.callType=Number(t.callType),t}static fromHttpResponse(e){let t=new o;return t.hash=e.hash,t.nonce=Number(e.nonce||0),t.value=(e.value||0).toString(),t.receiver=new s.Address(e.receiver),t.sender=new s.Address(e.sender),t.previousHash=e.prevTxHash,t.originalHash=e.originalTxHash,t.gasLimit=Number(e.gasLimit||0),t.gasPrice=Number(e.gasPrice||0),t.data=e.data||"",t.callType=e.callType,t.returnMessage=e.returnMessage,t.logs=n.TransactionLogs.fromHttpResponse(e.logs||{}),t}}t.ContractResultItem=o},2591:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ErrContractQuery=t.ErrNetworkProvider=t.ErrUnexpectedCondition=t.Err=void 0;class r extends Error{constructor(e,t){super(e),this.inner=void 0,this.inner=t}}t.Err=r,t.ErrUnexpectedCondition=class extends r{constructor(e){super(`Unexpected condition: [${e}]`)}},t.ErrNetworkProvider=class extends r{constructor(e,t,r){super(`Request error on url [${e}]: [${t}]`,r)}},t.ErrContractQuery=class extends r{constructor(e){super(e.message.replace("executeQuery:",""))}}},3802:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkConfig=void 0;const s=n(r(1594));class i{constructor(){this.ChainID="T",this.GasPerDataByte=1500,this.TopUpFactor=0,this.RoundDuration=0,this.RoundsPerEpoch=0,this.TopUpRewardsGradientPoint=new s.default(0),this.MinGasLimit=5e4,this.MinGasPrice=1e9,this.GasPriceModifier=1,this.MinTransactionVersion=1}static fromHttpResponse(e){let t=new i;return t.ChainID=String(e.erd_chain_id),t.GasPerDataByte=Number(e.erd_gas_per_data_byte),t.TopUpFactor=Number(e.erd_top_up_factor),t.RoundDuration=Number(e.erd_round_duration),t.RoundsPerEpoch=Number(e.erd_rounds_per_epoch),t.TopUpRewardsGradientPoint=new s.default(e.erd_rewards_top_up_gradient_point),t.MinGasLimit=Number(e.erd_min_gas_limit),t.MinGasPrice=Number(e.erd_min_gas_price),t.MinTransactionVersion=Number(e.erd_min_transaction_version),t.GasPriceModifier=Number(e.erd_gas_price_modifier),t}}t.NetworkConfig=i},9358:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkStatus=void 0;class r{constructor(){this.CurrentRound=0,this.EpochNumber=0,this.HighestFinalNonce=0,this.Nonce=0,this.NonceAtEpochStart=0,this.NoncesPassedInCurrentEpoch=0,this.RoundAtEpochStart=0,this.RoundsPassedInCurrentEpoch=0,this.RoundsPerEpoch=0}static fromHttpResponse(e){let t=new r;return t.CurrentRound=Number(e.erd_current_round),t.EpochNumber=Number(e.erd_epoch_number),t.HighestFinalNonce=Number(e.erd_highest_final_nonce),t.Nonce=Number(e.erd_nonce),t.NonceAtEpochStart=Number(e.erd_nonce_at_epoch_start),t.NoncesPassedInCurrentEpoch=Number(e.erd_nonces_passed_in_current_epoch),t.RoundAtEpochStart=Number(e.erd_round_at_epoch_start),t.RoundsPassedInCurrentEpoch=Number(e.erd_rounds_passed_in_current_epoch),t.RoundsPerEpoch=Number(e.erd_rounds_per_epoch),t}}t.NetworkStatus=r},1466:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.zeroPadStringIfOddLength=t.isPaddedHex=t.numberToPaddedHex=t.Nonce=t.Address=void 0;const o=i(r(9674));class a{constructor(e){this.value=e}static fromPubkey(e){let t=o.toWords(e),r=o.encode("erd",t);return new a(r)}bech32(){return this.value}toString(){return this.bech32()}}function c(e){return u(e.toString(16))}function u(e){return(e=e||"").length%2==1?"0"+e:e}t.Address=a,t.Nonce=class{constructor(e){this.value=e}valueOf(){return this.value}hex(){return c(this.value)}},t.numberToPaddedHex=c,t.isPaddedHex=function(e){e=e||"";let t=Buffer.from(e,"hex").toString("hex");return e.toUpperCase()==t.toUpperCase()},t.zeroPadStringIfOddLength=u},8403:function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyNetworkProvider=void 0;const i=s(r(6425)),o=r(84),a=r(6482),c=r(4027),u=r(8419),d=r(3767),l=r(2591),h=r(3802),f=r(9358),p=r(8721),g=r(3962),m=r(6389),v=r(6188),w=r(1002);t.ProxyNetworkProvider=class{constructor(e,t){this.userAgentPrefix=`${c.BaseUserAgent}/proxy`,this.url=e,this.config=Object.assign(Object.assign({},a.defaultAxiosConfig),t),w.extendUserAgentIfBackend(this.userAgentPrefix,this.config)}getNetworkConfig(){return n(this,void 0,void 0,(function*(){let e=yield this.doGetGeneric("network/config");return h.NetworkConfig.fromHttpResponse(e.config)}))}getNetworkStatus(){return n(this,void 0,void 0,(function*(){let e=yield this.doGetGeneric("network/status/4294967295");return f.NetworkStatus.fromHttpResponse(e.status)}))}getNetworkStakeStatistics(){return n(this,void 0,void 0,(function*(){throw new Error("Method not implemented.")}))}getNetworkGeneralStatistics(){return n(this,void 0,void 0,(function*(){throw new Error("Method not implemented.")}))}getAccount(e){return n(this,void 0,void 0,(function*(){let t=yield this.doGetGeneric(`address/${e.bech32()}`);return o.AccountOnNetwork.fromHttpResponse(t.account)}))}getGuardianData(e){return n(this,void 0,void 0,(function*(){const t=yield this.doGetGeneric(`address/${e.bech32()}/guardian-data`);return o.GuardianData.fromHttpResponse(t.guardianData)}))}getFungibleTokensOfAccount(e,t){return n(this,void 0,void 0,(function*(){let t=`address/${e.bech32()}/esdt`,r=yield this.doGetGeneric(t),n=Object.values(r.esdts).filter((e=>!e.nonce)).map((e=>g.FungibleTokenOfAccountOnNetwork.fromHttpResponse(e)));return n.sort(((e,t)=>e.identifier.localeCompare(t.identifier))),n}))}getNonFungibleTokensOfAccount(e,t){return n(this,void 0,void 0,(function*(){let t=`address/${e.bech32()}/esdt`,r=yield this.doGetGeneric(t),n=Object.values(r.esdts).filter((e=>e.nonce>=0)).map((e=>g.NonFungibleTokenOfAccountOnNetwork.fromProxyHttpResponse(e)));return n.sort(((e,t)=>e.identifier.localeCompare(t.identifier))),n}))}getFungibleTokenOfAccount(e,t){return n(this,void 0,void 0,(function*(){let r=yield this.doGetGeneric(`address/${e.bech32()}/esdt/${t}`);return g.FungibleTokenOfAccountOnNetwork.fromHttpResponse(r.tokenData)}))}getNonFungibleTokenOfAccount(e,t,r){return n(this,void 0,void 0,(function*(){let n=yield this.doGetGeneric(`address/${e.bech32()}/nft/${t}/nonce/${r.valueOf()}`);return g.NonFungibleTokenOfAccountOnNetwork.fromProxyHttpResponseByNonce(n.tokenData)}))}getTransaction(e,t){return n(this,void 0,void 0,(function*(){const t=this.buildUrlWithQueryParameters(`transaction/${e}`,{withResults:"true"}),[r,n]=yield Promise.all([this.doGetGeneric(t),this.getTransactionStatus(e)]);return m.TransactionOnNetwork.fromProxyHttpResponse(e,r.transaction,n)}))}getTransactionStatus(e){return n(this,void 0,void 0,(function*(){let t=yield this.doGetGeneric(`transaction/${e}/process-status`);return new v.TransactionStatus(t.status)}))}sendTransaction(e){return n(this,void 0,void 0,(function*(){const t=m.prepareTransactionForBroadcasting(e);return(yield this.doPostGeneric("transaction/send",t)).txHash}))}sendTransactions(e){return n(this,void 0,void 0,(function*(){const t=e.map((e=>m.prepareTransactionForBroadcasting(e))),r=yield this.doPostGeneric("transaction/send-multiple",t),n=Array(e.length).fill(null);for(let t=0;t<e.length;t++)n[t]=r.txsHashes[t.toString()]||null;return n}))}simulateTransaction(e){return n(this,void 0,void 0,(function*(){const t=m.prepareTransactionForBroadcasting(e);return yield this.doPostGeneric("transaction/simulate",t)}))}queryContract(e){return n(this,void 0,void 0,(function*(){try{let t=new u.ContractQueryRequest(e).toHttpRequest(),r=yield this.doPostGeneric("vm-values/query",t);return d.ContractQueryResponse.fromHttpResponse(r.data)}catch(e){throw new l.ErrContractQuery(e)}}))}getDefinitionOfFungibleToken(e){return n(this,void 0,void 0,(function*(){let t=yield this.getTokenProperties(e);return p.DefinitionOfFungibleTokenOnNetwork.fromResponseOfGetTokenProperties(e,t)}))}getTokenProperties(e){return n(this,void 0,void 0,(function*(){let t=Buffer.from(e).toString("hex");return(yield this.queryContract({address:c.EsdtContractAddress,func:"getTokenProperties",getEncodedArguments:()=>[t]})).getReturnDataParts()}))}getDefinitionOfTokenCollection(e){return n(this,void 0,void 0,(function*(){let t=yield this.getTokenProperties(e);return p.DefinitionOfTokenCollectionOnNetwork.fromResponseOfGetTokenProperties(e,t)}))}getNonFungibleToken(e,t){return n(this,void 0,void 0,(function*(){throw new Error("Method not implemented.")}))}doGetGeneric(e){return n(this,void 0,void 0,(function*(){return yield this.doGet(e)}))}doPostGeneric(e,t){return n(this,void 0,void 0,(function*(){return yield this.doPost(e,t)}))}doGet(e){return n(this,void 0,void 0,(function*(){let t=`${this.url}/${e}`;try{return(yield i.default.get(t,this.config)).data.data}catch(t){this.handleApiError(t,e)}}))}doPost(e,t){return n(this,void 0,void 0,(function*(){let r=`${this.url}/${e}`;try{return(yield i.default.post(r,t,Object.assign(Object.assign({},this.config),{headers:Object.assign({"Content-Type":"application/json"},this.config.headers)}))).data.data}catch(t){this.handleApiError(t,e)}}))}buildUrlWithQueryParameters(e,t){let r=new URLSearchParams;for(let[e,n]of Object.entries(t))n&&r.append(e,n);return`${e}?${r.toString()}`}handleApiError(e,t){if(!e.response)throw new l.ErrNetworkProvider(t,e.toString(),e);const r=e.response.data,n=r.message||r.error||JSON.stringify(r);throw new l.ErrNetworkProvider(t,n,e)}}},8721:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DefinitionOfTokenCollectionOnNetwork=t.DefinitionOfFungibleTokenOnNetwork=void 0;const s=n(r(1594)),i=r(1466);class o{constructor(){this.identifier="",this.name="",this.ticker="",this.owner=new i.Address(""),this.decimals=0,this.supply=new s.default(0),this.isPaused=!1,this.canUpgrade=!1,this.canMint=!1,this.canBurn=!1,this.canChangeOwner=!1,this.canPause=!1,this.canFreeze=!1,this.canWipe=!1,this.canAddSpecialRoles=!1,this.assets={}}static fromApiHttpResponse(e){let t=new o;return t.identifier=e.identifier||"",t.name=e.name||"",t.ticker=e.ticker||"",t.owner=new i.Address(e.owner||""),t.decimals=e.decimals||0,t.supply=new s.default(e.supply||"0"),t.isPaused=e.isPaused||!1,t.canUpgrade=e.canUpgrade||!1,t.canMint=e.canMint||!1,t.canBurn=e.canBurn||!1,t.canChangeOwner=e.canChangeOwner||!1,t.canPause=e.canPause||!1,t.canFreeze=e.canFreeze||!1,t.canWipe=e.canWipe||!1,t.assets=e.assets||{},t}static fromResponseOfGetTokenProperties(e,t){let r=new o,[n,a,u,d,...l]=t,h=c(l);return r.identifier=e,r.name=n.toString(),r.ticker=e,r.owner=i.Address.fromPubkey(u),r.decimals=h.NumDecimals.toNumber(),r.supply=new s.default(d.toString()).shiftedBy(-r.decimals),r.isPaused=h.IsPaused,r.canUpgrade=h.CanUpgrade,r.canMint=h.CanMint,r.canBurn=h.CanBurn,r.canChangeOwner=h.CanChangeOwner,r.canPause=h.CanPause,r.canFreeze=h.CanFreeze,r.canWipe=h.CanWipe,r}}t.DefinitionOfFungibleTokenOnNetwork=o;class a{constructor(){this.collection="",this.type="",this.name="",this.ticker="",this.owner=new i.Address(""),this.decimals=0,this.canPause=!1,this.canFreeze=!1,this.canWipe=!1,this.canUpgrade=!1,this.canChangeOwner=!1,this.canAddSpecialRoles=!1,this.canTransferNftCreateRole=!1,this.canCreateMultiShard=!1}static fromApiHttpResponse(e){let t=new a;return t.collection=e.collection||"",t.type=e.type||"",t.name=e.name||"",t.ticker=e.ticker||"",t.owner=new i.Address(e.owner||""),t.decimals=e.decimals||0,t.canPause=e.canPause||!1,t.canFreeze=e.canFreeze||!1,t.canWipe=e.canWipe||!1,t.canUpgrade=e.canUpgrade||!1,t.canAddSpecialRoles=e.canAddSpecialRoles||!1,t.canTransferNftCreateRole=e.canTransferNftCreateRole||!1,t}static fromResponseOfGetTokenProperties(e,t){var r;let n=new a,[s,o,u,d,l,...h]=t,f=c(h);return n.collection=e,n.type=o.toString(),n.name=s.toString(),n.ticker=e,n.owner=i.Address.fromPubkey(u),n.decimals=null!==(r=f.NumDecimals.toNumber())&&void 0!==r?r:0,n.canPause=f.CanPause||!1,n.canFreeze=f.CanFreeze||!1,n.canWipe=f.CanWipe||!1,n.canUpgrade=f.CanUpgrade||!1,n.canChangeOwner=f.CanChangeOwner||!1,n.canAddSpecialRoles=f.CanAddSpecialRoles||!1,n.canTransferNftCreateRole=f.CanTransferNFTCreateRole||!1,n.canCreateMultiShard=f.CanCreateMultiShard||!1,n}}function c(e){let t={};for(let r of e){let[e,n]=r.toString().split("-");t[e]=u(n)}return t}function u(e){switch(e){case"true":return!0;case"false":return!1;default:return new s.default(e)}}t.DefinitionOfTokenCollectionOnNetwork=a},3962:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NonFungibleTokenOfAccountOnNetwork=t.FungibleTokenOfAccountOnNetwork=void 0;const n=r(1594),s=r(1466);class i{constructor(){this.identifier="",this.balance=new n.BigNumber(0),this.rawResponse={}}static fromHttpResponse(e){let t=new i;return t.identifier=e.tokenIdentifier||e.identifier||"",t.balance=new n.BigNumber(e.balance||0),t.rawResponse=e,t}}t.FungibleTokenOfAccountOnNetwork=i;class o{constructor(e){this.identifier="",this.collection="",this.timestamp=0,this.attributes=Buffer.from([]),this.nonce=0,this.type="",this.name="",this.creator=new s.Address(""),this.supply=new n.BigNumber(0),this.decimals=0,this.royalties=new n.BigNumber(0),this.assets=[],this.balance=new n.BigNumber(0),Object.assign(this,e)}static fromProxyHttpResponse(e){let t=o.fromHttpResponse(e);return t.identifier=e.tokenIdentifier||"",t.collection=o.parseCollectionFromIdentifier(t.identifier),t.royalties=new n.BigNumber(e.royalties||0).div(100),t}static fromProxyHttpResponseByNonce(e){let t=o.fromHttpResponse(e),r=new s.Nonce(t.nonce).hex();return t.identifier=`${e.tokenIdentifier}-${r}`,t.collection=e.tokenIdentifier||"",t.royalties=new n.BigNumber(e.royalties||0).div(100),t}static fromApiHttpResponse(e){let t=o.fromHttpResponse(e);return t.identifier=e.identifier||"",t.collection=e.collection||"",t}static fromHttpResponse(e){let t=new o;return t.timestamp=Number(e.timestamp||0),t.attributes=Buffer.from(e.attributes||"","base64"),t.nonce=e.nonce||0,t.type=e.type||"",t.name=e.name||"",t.creator=new s.Address(e.creator||""),t.decimals=Number(e.decimals||0),t.supply=new n.BigNumber(e.balance||1),t.royalties=new n.BigNumber(e.royalties||0),t.assets=e.assets||[],t.balance=new n.BigNumber(e.balance||1),t}static parseCollectionFromIdentifier(e){return e.split("-").slice(0,2).join("-")}}t.NonFungibleTokenOfAccountOnNetwork=o},8427:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionEventTopic=t.TransactionEventData=t.TransactionEvent=void 0;const n=r(1466);class s{constructor(e){this.address=new n.Address(""),this.identifier="",this.topics=[],this.data="",this.dataPayload=new i(Buffer.from("","utf8")),this.additionalData=[],Object.assign(this,e)}static fromHttpResponse(e){let t=new s;return t.address=new n.Address(e.address),t.identifier=e.identifier||"",t.topics=(e.topics||[]).map((e=>new o(e))),t.dataPayload=i.fromBase64(e.data),t.additionalData=(e.additionalData||[]).map(i.fromBase64),t.data=t.dataPayload.toString(),t}findFirstOrNoneTopic(e){return this.topics.filter((t=>e(t)))[0]}getLastTopic(){return this.topics[this.topics.length-1]}}t.TransactionEvent=s;class i{constructor(e){this.raw=e}static fromBase64(e){return new i(Buffer.from(e||"","base64"))}toString(){return this.raw.toString("utf8")}hex(){return this.raw.toString("hex")}valueOf(){return this.raw}}t.TransactionEventData=i;class o{constructor(e){this.raw=Buffer.from(e||"","base64")}toString(){return this.raw.toString("utf8")}hex(){return this.raw.toString("hex")}valueOf(){return this.raw}}t.TransactionEventTopic=o},9857:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionLogs=void 0;const n=r(2591),s=r(1466),i=r(8427);class o{constructor(e){this.address=new s.Address(""),this.events=[],Object.assign(this,e)}static fromHttpResponse(e){let t=new o;return t.address=new s.Address(e.address),t.events=(e.events||[]).map((e=>i.TransactionEvent.fromHttpResponse(e))),t}findSingleOrNoneEvent(e,t){let r=this.findEvents(e,t);if(r.length>1)throw new n.ErrUnexpectedCondition(`more than one event of type ${e}`);return r[0]}findFirstOrNoneEvent(e,t){return this.findEvents(e,t)[0]}findEvents(e,t){let r=this.events.filter((t=>t.identifier==e));return t&&(r=r.filter((e=>t(e)))),r}}t.TransactionLogs=o},496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionReceipt=void 0;const n=r(1466);class s{constructor(){this.value="",this.sender=new n.Address(""),this.data="",this.hash=""}static fromHttpResponse(e){let t=new s;return t.value=(e.value||0).toString(),t.sender=new n.Address(e.sender),t.data=e.data,t.hash=e.txHash,t}}t.TransactionReceipt=s},6188:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionStatus=void 0;class r{constructor(e){this.status=(e||"").toLowerCase()}static createUnknown(){return new r("unknown")}isPending(){return"received"==this.status||"pending"==this.status}isExecuted(){return this.isSuccessful()||this.isFailed()||this.isInvalid()}isSuccessful(){return"executed"==this.status||"success"==this.status||"successful"==this.status}isFailed(){return"fail"==this.status||"failed"==this.status||"unsuccessful"==this.status||this.isInvalid()}isInvalid(){return"invalid"==this.status}toString(){return this.status}valueOf(){return this.status}equals(e){return!!e&&this.status==e.status}}t.TransactionStatus=r},6389:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionOnNetwork=t.prepareTransactionForBroadcasting=void 0;const n=r(2286),s=r(1466),i=r(9857),o=r(496),a=r(6188);t.prepareTransactionForBroadcasting=function(e){return"toSendable"in e?e.toSendable():{nonce:Number(e.nonce),value:e.value.toString(),receiver:e.receiver,sender:e.sender,senderUsername:e.senderUsername?Buffer.from(e.senderUsername).toString("base64"):void 0,receiverUsername:e.receiverUsername?Buffer.from(e.receiverUsername).toString("base64"):void 0,gasPrice:Number(e.gasPrice),gasLimit:Number(e.gasLimit),data:0===e.data.length?void 0:Buffer.from(e.data).toString("base64"),chainID:e.chainID,version:e.version,options:e.options,guardian:e.guardian||void 0,signature:Buffer.from(e.signature).toString("hex"),guardianSignature:0===e.guardianSignature.length?void 0:Buffer.from(e.guardianSignature).toString("hex")}};class c{constructor(e){this.hash="",this.type="",this.nonce=0,this.round=0,this.epoch=0,this.value="",this.receiver=new s.Address(""),this.sender=new s.Address(""),this.gasLimit=0,this.gasPrice=0,this.function="",this.data=Buffer.from([]),this.signature="",this.status=a.TransactionStatus.createUnknown(),this.timestamp=0,this.blockNonce=0,this.hyperblockNonce=0,this.hyperblockHash="",this.receipt=new o.TransactionReceipt,this.contractResults=new n.ContractResults([]),this.logs=new i.TransactionLogs,Object.assign(this,e)}static fromProxyHttpResponse(e,t,r){let s=c.fromHttpResponse(e,t);return s.contractResults=n.ContractResults.fromProxyHttpResponse(t.smartContractResults||[]),r&&(s.status=r,s.isCompleted=s.status.isSuccessful()||s.status.isFailed()),s}static fromApiHttpResponse(e,t){let r=c.fromHttpResponse(e,t);return r.contractResults=n.ContractResults.fromApiHttpResponse(t.results||[]),r.isCompleted=!r.status.isPending(),r}static fromHttpResponse(e,t){let r=new c;return r.hash=e,r.type=t.type||"",r.nonce=t.nonce||0,r.round=t.round,r.epoch=t.epoch||0,r.value=(t.value||0).toString(),r.sender=new s.Address(t.sender),r.receiver=new s.Address(t.receiver),r.gasPrice=t.gasPrice||0,r.gasLimit=t.gasLimit||0,r.function=t.function||"",r.data=Buffer.from(t.data||"","base64"),r.status=new a.TransactionStatus(t.status),r.timestamp=t.timestamp||0,r.blockNonce=t.blockNonce||0,r.hyperblockNonce=t.hyperblockNonce||0,r.hyperblockHash=t.hyperblockHash||"",r.receipt=o.TransactionReceipt.fromHttpResponse(t.receipt||{}),r.logs=i.TransactionLogs.fromHttpResponse(t.logs||{}),r}getDateTime(){return new Date(1e3*this.timestamp)}}t.TransactionOnNetwork=c},1002:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extendUserAgentIfBackend=void 0;const n=r(6425),s=r(4027);t.extendUserAgentIfBackend=function(e,t){"undefined"==typeof window&&function(e,t){t.headers||(t.headers=new n.AxiosHeaders({})),t.clientName||console.log("We recommend providing the `clientName` when instantiating a NetworkProvider (e.g. ProxyNetworkProvider, ApiNetworkProvider). This information will be used for metrics collection and improving our services.");const r=n.AxiosHeaders.from(t.headers).normalize(!0),i=t.clientName||s.UnknownClientName,o=r.hasUserAgent()?r.getUserAgent():"",a=o?`${o} ${e}/${i}`:`${e}/${i}`;r.setUserAgent(a,!0)}(e,t)}},9674:e=>{for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<32;n++){var s=t.charAt(n);if(void 0!==r[s])throw new TypeError(s+" is ambiguous");r[s]=n}function i(e){var t=e>>25;return(33554431&e)<<5^996825010&-(1&t)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function o(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=i(t)^n>>5}for(t=i(t),r=0;r<e.length;++r){var s=e.charCodeAt(r);t=i(t)^31&s}return t}function a(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var n=e.toLowerCase(),s=e.toUpperCase();if(e!==n&&e!==s)return"Mixed-case string "+e;var a=(e=n).lastIndexOf("1");if(-1===a)return"No separator character for "+e;if(0===a)return"Missing prefix for "+e;var c=e.slice(0,a),u=e.slice(a+1);if(u.length<6)return"Data too short";var d=o(c);if("string"==typeof d)return d;for(var l=[],h=0;h<u.length;++h){var f=u.charAt(h),p=r[f];if(void 0===p)return"Unknown character "+f;d=i(d)^p,h+6>=u.length||l.push(p)}return 1!==d?"Invalid checksum for "+e:{prefix:c,words:l}}function c(e,t,r,n){for(var s=0,i=0,o=(1<<r)-1,a=[],c=0;c<e.length;++c)for(s=s<<t|e[c],i+=t;i>=r;)i-=r,a.push(s>>i&o);if(n)i>0&&a.push(s<<r-i&o);else{if(i>=t)return"Excess padding";if(s<<r-i&o)return"Non-zero padding"}return a}e.exports={decodeUnsafe:function(){var e=a.apply(null,arguments);if("object"==typeof e)return e},decode:function(e){var t=a.apply(null,arguments);if("object"==typeof t)return t;throw new Error(t)},encode:function(e,r,n){if(n=n||90,e.length+7+r.length>n)throw new TypeError("Exceeds length limit");var s=o(e=e.toLowerCase());if("string"==typeof s)throw new Error(s);for(var a=e+"1",c=0;c<r.length;++c){var u=r[c];if(u>>5)throw new Error("Non 5-bit word");s=i(s)^u,a+=t.charAt(u)}for(c=0;c<6;++c)s=i(s);for(s^=1,c=0;c<6;++c)a+=t.charAt(s>>5*(5-c)&31);return a},toWordsUnsafe:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}}}]);
|
package/dist/403.esm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __webpack_id__=403;export const __webpack_ids__=[403];export const __webpack_modules__={84:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GuardianData=t.AccountOnNetwork=void 0;const s=n(r(1594)),i=r(1466);class o{constructor(e){this.address=new i.Address(""),this.nonce=0,this.balance=new s.default(0),this.code="",this.userName="",Object.assign(this,e)}static fromHttpResponse(e){let t=new o;return t.address=new i.Address(e.address||""),t.nonce=Number(e.nonce||0),t.balance=new s.default(e.balance||0),t.code=e.code||"",t.userName=e.username||"",t}}t.AccountOnNetwork=o;class a{constructor(e){this.guarded=!1,Object.assign(this,e)}static fromHttpResponse(e){const t=new a;return t.guarded=e.guarded||!1,e.activeGuardian&&(t.activeGuardian=c.fromHttpResponse(e.activeGuardian)),e.pendingGuardian&&(t.pendingGuardian=c.fromHttpResponse(e.pendingGuardian)),t}getCurrentGuardianAddress(){var e;if(this.guarded)return null===(e=this.activeGuardian)||void 0===e?void 0:e.address}}t.GuardianData=a;class c{constructor(){this.activationEpoch=0,this.address=new i.Address(""),this.serviceUID=""}static fromHttpResponse(e){const t=new c;return t.activationEpoch=Number(e.activationEpoch||0),t.address=new i.Address(e.address||""),t.serviceUID=e.serviceUID||"",t}}},6482:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultPagination=t.defaultAxiosConfig=void 0;const n=r(1013)({constructorAction:"ignore"});t.defaultAxiosConfig={timeout:5e3,transformResponse:[function(e){return n.parse(e)}]},t.defaultPagination={from:0,size:100}},4027:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.UnknownClientName=t.BaseUserAgent=t.EsdtContractAddress=t.MaxUint64AsBigNumber=void 0;const s=n(r(1594)),i=r(1466);t.MaxUint64AsBigNumber=new s.default("18446744073709551615"),t.EsdtContractAddress=new i.Address("erd1qqqqqqqqqqqqqqqpqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqzllls8a5w6u"),t.BaseUserAgent="multiversx-sdk",t.UnknownClientName="unknown"},8419:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContractQueryRequest=void 0,t.ContractQueryRequest=class{constructor(e){this.query=e}toHttpRequest(){var e;let t={},r=this.query;return t.scAddress=r.address.bech32(),t.caller=(null===(e=r.caller)||void 0===e?void 0:e.bech32())?r.caller.bech32():void 0,t.funcName=r.func.toString(),t.value=r.value?r.value.toString():void 0,t.args=r.getEncodedArguments(),t}}},3767:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContractQueryResponse=void 0;const s=n(r(1594)),i=r(4027);class o{constructor(e){this.returnData=(null==e?void 0:e.returnData)||[],this.returnCode=(null==e?void 0:e.returnCode)||"",this.returnMessage=(null==e?void 0:e.returnMessage)||"",this.gasUsed=(null==e?void 0:e.gasUsed)||0}static fromHttpResponse(e){let t=e.returnData||e.ReturnData,r=e.returnCode||e.ReturnCode,n=e.returnMessage||e.ReturnMessage,a=new s.default(e.gasRemaining||e.GasRemaining||0),c=i.MaxUint64AsBigNumber.minus(a).toNumber();return new o({returnData:t,returnCode:r,returnMessage:n,gasUsed:c})}getReturnDataParts(){return this.returnData.map((e=>Buffer.from(e||"","base64")))}toJSON(){return{returnData:this.returnData,returnCode:this.returnCode,returnMessage:this.returnMessage,gasUsed:this.gasUsed.valueOf()}}}t.ContractQueryResponse=o},2286:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ContractResultItem=t.ContractResults=void 0;const n=r(9857),s=r(1466);class i{constructor(e){this.items=e,this.items.sort((function(e,t){return e.nonce.valueOf()-t.nonce.valueOf()}))}static fromProxyHttpResponse(e){let t=e.map((e=>o.fromProxyHttpResponse(e)));return new i(t)}static fromApiHttpResponse(e){let t=e.map((e=>o.fromApiHttpResponse(e)));return new i(t)}}t.ContractResults=i;class o{constructor(e){this.hash="",this.nonce=0,this.value="",this.receiver=new s.Address(""),this.sender=new s.Address(""),this.data="",this.previousHash="",this.originalHash="",this.gasLimit=0,this.gasPrice=0,this.callType=0,this.returnMessage="",this.logs=new n.TransactionLogs,Object.assign(this,e)}static fromProxyHttpResponse(e){return o.fromHttpResponse(e)}static fromApiHttpResponse(e){let t=o.fromHttpResponse(e);return t.data=Buffer.from(t.data,"base64").toString(),t.callType=Number(t.callType),t}static fromHttpResponse(e){let t=new o;return t.hash=e.hash,t.nonce=Number(e.nonce||0),t.value=(e.value||0).toString(),t.receiver=new s.Address(e.receiver),t.sender=new s.Address(e.sender),t.previousHash=e.prevTxHash,t.originalHash=e.originalTxHash,t.gasLimit=Number(e.gasLimit||0),t.gasPrice=Number(e.gasPrice||0),t.data=e.data||"",t.callType=e.callType,t.returnMessage=e.returnMessage,t.logs=n.TransactionLogs.fromHttpResponse(e.logs||{}),t}}t.ContractResultItem=o},2591:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ErrContractQuery=t.ErrNetworkProvider=t.ErrUnexpectedCondition=t.Err=void 0;class r extends Error{constructor(e,t){super(e),this.inner=void 0,this.inner=t}}t.Err=r,t.ErrUnexpectedCondition=class extends r{constructor(e){super(`Unexpected condition: [${e}]`)}},t.ErrNetworkProvider=class extends r{constructor(e,t,r){super(`Request error on url [${e}]: [${t}]`,r)}},t.ErrContractQuery=class extends r{constructor(e){super(e.message.replace("executeQuery:",""))}}},3802:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkConfig=void 0;const s=n(r(1594));class i{constructor(){this.ChainID="T",this.GasPerDataByte=1500,this.TopUpFactor=0,this.RoundDuration=0,this.RoundsPerEpoch=0,this.TopUpRewardsGradientPoint=new s.default(0),this.MinGasLimit=5e4,this.MinGasPrice=1e9,this.GasPriceModifier=1,this.MinTransactionVersion=1}static fromHttpResponse(e){let t=new i;return t.ChainID=String(e.erd_chain_id),t.GasPerDataByte=Number(e.erd_gas_per_data_byte),t.TopUpFactor=Number(e.erd_top_up_factor),t.RoundDuration=Number(e.erd_round_duration),t.RoundsPerEpoch=Number(e.erd_rounds_per_epoch),t.TopUpRewardsGradientPoint=new s.default(e.erd_rewards_top_up_gradient_point),t.MinGasLimit=Number(e.erd_min_gas_limit),t.MinGasPrice=Number(e.erd_min_gas_price),t.MinTransactionVersion=Number(e.erd_min_transaction_version),t.GasPriceModifier=Number(e.erd_gas_price_modifier),t}}t.NetworkConfig=i},9358:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkStatus=void 0;class r{constructor(){this.CurrentRound=0,this.EpochNumber=0,this.HighestFinalNonce=0,this.Nonce=0,this.NonceAtEpochStart=0,this.NoncesPassedInCurrentEpoch=0,this.RoundAtEpochStart=0,this.RoundsPassedInCurrentEpoch=0,this.RoundsPerEpoch=0}static fromHttpResponse(e){let t=new r;return t.CurrentRound=Number(e.erd_current_round),t.EpochNumber=Number(e.erd_epoch_number),t.HighestFinalNonce=Number(e.erd_highest_final_nonce),t.Nonce=Number(e.erd_nonce),t.NonceAtEpochStart=Number(e.erd_nonce_at_epoch_start),t.NoncesPassedInCurrentEpoch=Number(e.erd_nonces_passed_in_current_epoch),t.RoundAtEpochStart=Number(e.erd_round_at_epoch_start),t.RoundsPassedInCurrentEpoch=Number(e.erd_rounds_passed_in_current_epoch),t.RoundsPerEpoch=Number(e.erd_rounds_per_epoch),t}}t.NetworkStatus=r},1466:function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return s(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.zeroPadStringIfOddLength=t.isPaddedHex=t.numberToPaddedHex=t.Nonce=t.Address=void 0;const o=i(r(9674));class a{constructor(e){this.value=e}static fromPubkey(e){let t=o.toWords(e),r=o.encode("erd",t);return new a(r)}bech32(){return this.value}toString(){return this.bech32()}}function c(e){return u(e.toString(16))}function u(e){return(e=e||"").length%2==1?"0"+e:e}t.Address=a,t.Nonce=class{constructor(e){this.value=e}valueOf(){return this.value}hex(){return c(this.value)}},t.numberToPaddedHex=c,t.isPaddedHex=function(e){e=e||"";let t=Buffer.from(e,"hex").toString("hex");return e.toUpperCase()==t.toUpperCase()},t.zeroPadStringIfOddLength=u},8403:function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(s,i){function o(e){try{c(n.next(e))}catch(e){i(e)}}function a(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(o,a)}c((n=n.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ProxyNetworkProvider=void 0;const i=s(r(6425)),o=r(84),a=r(6482),c=r(4027),u=r(8419),d=r(3767),l=r(2591),h=r(3802),f=r(9358),p=r(8721),g=r(3962),m=r(6389),v=r(6188),w=r(1002);t.ProxyNetworkProvider=class{constructor(e,t){this.userAgentPrefix=`${c.BaseUserAgent}/proxy`,this.url=e,this.config=Object.assign(Object.assign({},a.defaultAxiosConfig),t),w.extendUserAgentIfBackend(this.userAgentPrefix,this.config)}getNetworkConfig(){return n(this,void 0,void 0,(function*(){let e=yield this.doGetGeneric("network/config");return h.NetworkConfig.fromHttpResponse(e.config)}))}getNetworkStatus(){return n(this,void 0,void 0,(function*(){let e=yield this.doGetGeneric("network/status/4294967295");return f.NetworkStatus.fromHttpResponse(e.status)}))}getNetworkStakeStatistics(){return n(this,void 0,void 0,(function*(){throw new Error("Method not implemented.")}))}getNetworkGeneralStatistics(){return n(this,void 0,void 0,(function*(){throw new Error("Method not implemented.")}))}getAccount(e){return n(this,void 0,void 0,(function*(){let t=yield this.doGetGeneric(`address/${e.bech32()}`);return o.AccountOnNetwork.fromHttpResponse(t.account)}))}getGuardianData(e){return n(this,void 0,void 0,(function*(){const t=yield this.doGetGeneric(`address/${e.bech32()}/guardian-data`);return o.GuardianData.fromHttpResponse(t.guardianData)}))}getFungibleTokensOfAccount(e,t){return n(this,void 0,void 0,(function*(){let t=`address/${e.bech32()}/esdt`,r=yield this.doGetGeneric(t),n=Object.values(r.esdts).filter((e=>!e.nonce)).map((e=>g.FungibleTokenOfAccountOnNetwork.fromHttpResponse(e)));return n.sort(((e,t)=>e.identifier.localeCompare(t.identifier))),n}))}getNonFungibleTokensOfAccount(e,t){return n(this,void 0,void 0,(function*(){let t=`address/${e.bech32()}/esdt`,r=yield this.doGetGeneric(t),n=Object.values(r.esdts).filter((e=>e.nonce>=0)).map((e=>g.NonFungibleTokenOfAccountOnNetwork.fromProxyHttpResponse(e)));return n.sort(((e,t)=>e.identifier.localeCompare(t.identifier))),n}))}getFungibleTokenOfAccount(e,t){return n(this,void 0,void 0,(function*(){let r=yield this.doGetGeneric(`address/${e.bech32()}/esdt/${t}`);return g.FungibleTokenOfAccountOnNetwork.fromHttpResponse(r.tokenData)}))}getNonFungibleTokenOfAccount(e,t,r){return n(this,void 0,void 0,(function*(){let n=yield this.doGetGeneric(`address/${e.bech32()}/nft/${t}/nonce/${r.valueOf()}`);return g.NonFungibleTokenOfAccountOnNetwork.fromProxyHttpResponseByNonce(n.tokenData)}))}getTransaction(e,t){return n(this,void 0,void 0,(function*(){const t=this.buildUrlWithQueryParameters(`transaction/${e}`,{withResults:"true"}),[r,n]=yield Promise.all([this.doGetGeneric(t),this.getTransactionStatus(e)]);return m.TransactionOnNetwork.fromProxyHttpResponse(e,r.transaction,n)}))}getTransactionStatus(e){return n(this,void 0,void 0,(function*(){let t=yield this.doGetGeneric(`transaction/${e}/process-status`);return new v.TransactionStatus(t.status)}))}sendTransaction(e){return n(this,void 0,void 0,(function*(){const t=m.prepareTransactionForBroadcasting(e);return(yield this.doPostGeneric("transaction/send",t)).txHash}))}sendTransactions(e){return n(this,void 0,void 0,(function*(){const t=e.map((e=>m.prepareTransactionForBroadcasting(e))),r=yield this.doPostGeneric("transaction/send-multiple",t),n=Array(e.length).fill(null);for(let t=0;t<e.length;t++)n[t]=r.txsHashes[t.toString()]||null;return n}))}simulateTransaction(e){return n(this,void 0,void 0,(function*(){const t=m.prepareTransactionForBroadcasting(e);return yield this.doPostGeneric("transaction/simulate",t)}))}queryContract(e){return n(this,void 0,void 0,(function*(){try{let t=new u.ContractQueryRequest(e).toHttpRequest(),r=yield this.doPostGeneric("vm-values/query",t);return d.ContractQueryResponse.fromHttpResponse(r.data)}catch(e){throw new l.ErrContractQuery(e)}}))}getDefinitionOfFungibleToken(e){return n(this,void 0,void 0,(function*(){let t=yield this.getTokenProperties(e);return p.DefinitionOfFungibleTokenOnNetwork.fromResponseOfGetTokenProperties(e,t)}))}getTokenProperties(e){return n(this,void 0,void 0,(function*(){let t=Buffer.from(e).toString("hex");return(yield this.queryContract({address:c.EsdtContractAddress,func:"getTokenProperties",getEncodedArguments:()=>[t]})).getReturnDataParts()}))}getDefinitionOfTokenCollection(e){return n(this,void 0,void 0,(function*(){let t=yield this.getTokenProperties(e);return p.DefinitionOfTokenCollectionOnNetwork.fromResponseOfGetTokenProperties(e,t)}))}getNonFungibleToken(e,t){return n(this,void 0,void 0,(function*(){throw new Error("Method not implemented.")}))}doGetGeneric(e){return n(this,void 0,void 0,(function*(){return yield this.doGet(e)}))}doPostGeneric(e,t){return n(this,void 0,void 0,(function*(){return yield this.doPost(e,t)}))}doGet(e){return n(this,void 0,void 0,(function*(){let t=`${this.url}/${e}`;try{return(yield i.default.get(t,this.config)).data.data}catch(t){this.handleApiError(t,e)}}))}doPost(e,t){return n(this,void 0,void 0,(function*(){let r=`${this.url}/${e}`;try{return(yield i.default.post(r,t,Object.assign(Object.assign({},this.config),{headers:Object.assign({"Content-Type":"application/json"},this.config.headers)}))).data.data}catch(t){this.handleApiError(t,e)}}))}buildUrlWithQueryParameters(e,t){let r=new URLSearchParams;for(let[e,n]of Object.entries(t))n&&r.append(e,n);return`${e}?${r.toString()}`}handleApiError(e,t){if(!e.response)throw new l.ErrNetworkProvider(t,e.toString(),e);const r=e.response.data,n=r.message||r.error||JSON.stringify(r);throw new l.ErrNetworkProvider(t,n,e)}}},8721:function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DefinitionOfTokenCollectionOnNetwork=t.DefinitionOfFungibleTokenOnNetwork=void 0;const s=n(r(1594)),i=r(1466);class o{constructor(){this.identifier="",this.name="",this.ticker="",this.owner=new i.Address(""),this.decimals=0,this.supply=new s.default(0),this.isPaused=!1,this.canUpgrade=!1,this.canMint=!1,this.canBurn=!1,this.canChangeOwner=!1,this.canPause=!1,this.canFreeze=!1,this.canWipe=!1,this.canAddSpecialRoles=!1,this.assets={}}static fromApiHttpResponse(e){let t=new o;return t.identifier=e.identifier||"",t.name=e.name||"",t.ticker=e.ticker||"",t.owner=new i.Address(e.owner||""),t.decimals=e.decimals||0,t.supply=new s.default(e.supply||"0"),t.isPaused=e.isPaused||!1,t.canUpgrade=e.canUpgrade||!1,t.canMint=e.canMint||!1,t.canBurn=e.canBurn||!1,t.canChangeOwner=e.canChangeOwner||!1,t.canPause=e.canPause||!1,t.canFreeze=e.canFreeze||!1,t.canWipe=e.canWipe||!1,t.assets=e.assets||{},t}static fromResponseOfGetTokenProperties(e,t){let r=new o,[n,a,u,d,...l]=t,h=c(l);return r.identifier=e,r.name=n.toString(),r.ticker=e,r.owner=i.Address.fromPubkey(u),r.decimals=h.NumDecimals.toNumber(),r.supply=new s.default(d.toString()).shiftedBy(-r.decimals),r.isPaused=h.IsPaused,r.canUpgrade=h.CanUpgrade,r.canMint=h.CanMint,r.canBurn=h.CanBurn,r.canChangeOwner=h.CanChangeOwner,r.canPause=h.CanPause,r.canFreeze=h.CanFreeze,r.canWipe=h.CanWipe,r}}t.DefinitionOfFungibleTokenOnNetwork=o;class a{constructor(){this.collection="",this.type="",this.name="",this.ticker="",this.owner=new i.Address(""),this.decimals=0,this.canPause=!1,this.canFreeze=!1,this.canWipe=!1,this.canUpgrade=!1,this.canChangeOwner=!1,this.canAddSpecialRoles=!1,this.canTransferNftCreateRole=!1,this.canCreateMultiShard=!1}static fromApiHttpResponse(e){let t=new a;return t.collection=e.collection||"",t.type=e.type||"",t.name=e.name||"",t.ticker=e.ticker||"",t.owner=new i.Address(e.owner||""),t.decimals=e.decimals||0,t.canPause=e.canPause||!1,t.canFreeze=e.canFreeze||!1,t.canWipe=e.canWipe||!1,t.canUpgrade=e.canUpgrade||!1,t.canAddSpecialRoles=e.canAddSpecialRoles||!1,t.canTransferNftCreateRole=e.canTransferNftCreateRole||!1,t}static fromResponseOfGetTokenProperties(e,t){var r;let n=new a,[s,o,u,d,l,...h]=t,f=c(h);return n.collection=e,n.type=o.toString(),n.name=s.toString(),n.ticker=e,n.owner=i.Address.fromPubkey(u),n.decimals=null!==(r=f.NumDecimals.toNumber())&&void 0!==r?r:0,n.canPause=f.CanPause||!1,n.canFreeze=f.CanFreeze||!1,n.canWipe=f.CanWipe||!1,n.canUpgrade=f.CanUpgrade||!1,n.canChangeOwner=f.CanChangeOwner||!1,n.canAddSpecialRoles=f.CanAddSpecialRoles||!1,n.canTransferNftCreateRole=f.CanTransferNFTCreateRole||!1,n.canCreateMultiShard=f.CanCreateMultiShard||!1,n}}function c(e){let t={};for(let r of e){let[e,n]=r.toString().split("-");t[e]=u(n)}return t}function u(e){switch(e){case"true":return!0;case"false":return!1;default:return new s.default(e)}}t.DefinitionOfTokenCollectionOnNetwork=a},3962:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NonFungibleTokenOfAccountOnNetwork=t.FungibleTokenOfAccountOnNetwork=void 0;const n=r(1594),s=r(1466);class i{constructor(){this.identifier="",this.balance=new n.BigNumber(0),this.rawResponse={}}static fromHttpResponse(e){let t=new i;return t.identifier=e.tokenIdentifier||e.identifier||"",t.balance=new n.BigNumber(e.balance||0),t.rawResponse=e,t}}t.FungibleTokenOfAccountOnNetwork=i;class o{constructor(e){this.identifier="",this.collection="",this.timestamp=0,this.attributes=Buffer.from([]),this.nonce=0,this.type="",this.name="",this.creator=new s.Address(""),this.supply=new n.BigNumber(0),this.decimals=0,this.royalties=new n.BigNumber(0),this.assets=[],this.balance=new n.BigNumber(0),Object.assign(this,e)}static fromProxyHttpResponse(e){let t=o.fromHttpResponse(e);return t.identifier=e.tokenIdentifier||"",t.collection=o.parseCollectionFromIdentifier(t.identifier),t.royalties=new n.BigNumber(e.royalties||0).div(100),t}static fromProxyHttpResponseByNonce(e){let t=o.fromHttpResponse(e),r=new s.Nonce(t.nonce).hex();return t.identifier=`${e.tokenIdentifier}-${r}`,t.collection=e.tokenIdentifier||"",t.royalties=new n.BigNumber(e.royalties||0).div(100),t}static fromApiHttpResponse(e){let t=o.fromHttpResponse(e);return t.identifier=e.identifier||"",t.collection=e.collection||"",t}static fromHttpResponse(e){let t=new o;return t.timestamp=Number(e.timestamp||0),t.attributes=Buffer.from(e.attributes||"","base64"),t.nonce=e.nonce||0,t.type=e.type||"",t.name=e.name||"",t.creator=new s.Address(e.creator||""),t.decimals=Number(e.decimals||0),t.supply=new n.BigNumber(e.balance||1),t.royalties=new n.BigNumber(e.royalties||0),t.assets=e.assets||[],t.balance=new n.BigNumber(e.balance||1),t}static parseCollectionFromIdentifier(e){return e.split("-").slice(0,2).join("-")}}t.NonFungibleTokenOfAccountOnNetwork=o},8427:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionEventTopic=t.TransactionEventData=t.TransactionEvent=void 0;const n=r(1466);class s{constructor(e){this.address=new n.Address(""),this.identifier="",this.topics=[],this.data="",this.dataPayload=new i(Buffer.from("","utf8")),this.additionalData=[],Object.assign(this,e)}static fromHttpResponse(e){let t=new s;return t.address=new n.Address(e.address),t.identifier=e.identifier||"",t.topics=(e.topics||[]).map((e=>new o(e))),t.dataPayload=i.fromBase64(e.data),t.additionalData=(e.additionalData||[]).map(i.fromBase64),t.data=t.dataPayload.toString(),t}findFirstOrNoneTopic(e){return this.topics.filter((t=>e(t)))[0]}getLastTopic(){return this.topics[this.topics.length-1]}}t.TransactionEvent=s;class i{constructor(e){this.raw=e}static fromBase64(e){return new i(Buffer.from(e||"","base64"))}toString(){return this.raw.toString("utf8")}hex(){return this.raw.toString("hex")}valueOf(){return this.raw}}t.TransactionEventData=i;class o{constructor(e){this.raw=Buffer.from(e||"","base64")}toString(){return this.raw.toString("utf8")}hex(){return this.raw.toString("hex")}valueOf(){return this.raw}}t.TransactionEventTopic=o},9857:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionLogs=void 0;const n=r(2591),s=r(1466),i=r(8427);class o{constructor(e){this.address=new s.Address(""),this.events=[],Object.assign(this,e)}static fromHttpResponse(e){let t=new o;return t.address=new s.Address(e.address),t.events=(e.events||[]).map((e=>i.TransactionEvent.fromHttpResponse(e))),t}findSingleOrNoneEvent(e,t){let r=this.findEvents(e,t);if(r.length>1)throw new n.ErrUnexpectedCondition(`more than one event of type ${e}`);return r[0]}findFirstOrNoneEvent(e,t){return this.findEvents(e,t)[0]}findEvents(e,t){let r=this.events.filter((t=>t.identifier==e));return t&&(r=r.filter((e=>t(e)))),r}}t.TransactionLogs=o},496:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionReceipt=void 0;const n=r(1466);class s{constructor(){this.value="",this.sender=new n.Address(""),this.data="",this.hash=""}static fromHttpResponse(e){let t=new s;return t.value=(e.value||0).toString(),t.sender=new n.Address(e.sender),t.data=e.data,t.hash=e.txHash,t}}t.TransactionReceipt=s},6188:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionStatus=void 0;class r{constructor(e){this.status=(e||"").toLowerCase()}static createUnknown(){return new r("unknown")}isPending(){return"received"==this.status||"pending"==this.status}isExecuted(){return this.isSuccessful()||this.isFailed()||this.isInvalid()}isSuccessful(){return"executed"==this.status||"success"==this.status||"successful"==this.status}isFailed(){return"fail"==this.status||"failed"==this.status||"unsuccessful"==this.status||this.isInvalid()}isInvalid(){return"invalid"==this.status}toString(){return this.status}valueOf(){return this.status}equals(e){return!!e&&this.status==e.status}}t.TransactionStatus=r},6389:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TransactionOnNetwork=t.prepareTransactionForBroadcasting=void 0;const n=r(2286),s=r(1466),i=r(9857),o=r(496),a=r(6188);t.prepareTransactionForBroadcasting=function(e){return"toSendable"in e?e.toSendable():{nonce:Number(e.nonce),value:e.value.toString(),receiver:e.receiver,sender:e.sender,senderUsername:e.senderUsername?Buffer.from(e.senderUsername).toString("base64"):void 0,receiverUsername:e.receiverUsername?Buffer.from(e.receiverUsername).toString("base64"):void 0,gasPrice:Number(e.gasPrice),gasLimit:Number(e.gasLimit),data:0===e.data.length?void 0:Buffer.from(e.data).toString("base64"),chainID:e.chainID,version:e.version,options:e.options,guardian:e.guardian||void 0,signature:Buffer.from(e.signature).toString("hex"),guardianSignature:0===e.guardianSignature.length?void 0:Buffer.from(e.guardianSignature).toString("hex")}};class c{constructor(e){this.hash="",this.type="",this.nonce=0,this.round=0,this.epoch=0,this.value="",this.receiver=new s.Address(""),this.sender=new s.Address(""),this.gasLimit=0,this.gasPrice=0,this.function="",this.data=Buffer.from([]),this.signature="",this.status=a.TransactionStatus.createUnknown(),this.timestamp=0,this.blockNonce=0,this.hyperblockNonce=0,this.hyperblockHash="",this.receipt=new o.TransactionReceipt,this.contractResults=new n.ContractResults([]),this.logs=new i.TransactionLogs,Object.assign(this,e)}static fromProxyHttpResponse(e,t,r){let s=c.fromHttpResponse(e,t);return s.contractResults=n.ContractResults.fromProxyHttpResponse(t.smartContractResults||[]),r&&(s.status=r,s.isCompleted=s.status.isSuccessful()||s.status.isFailed()),s}static fromApiHttpResponse(e,t){let r=c.fromHttpResponse(e,t);return r.contractResults=n.ContractResults.fromApiHttpResponse(t.results||[]),r.isCompleted=!r.status.isPending(),r}static fromHttpResponse(e,t){let r=new c;return r.hash=e,r.type=t.type||"",r.nonce=t.nonce||0,r.round=t.round,r.epoch=t.epoch||0,r.value=(t.value||0).toString(),r.sender=new s.Address(t.sender),r.receiver=new s.Address(t.receiver),r.gasPrice=t.gasPrice||0,r.gasLimit=t.gasLimit||0,r.function=t.function||"",r.data=Buffer.from(t.data||"","base64"),r.status=new a.TransactionStatus(t.status),r.timestamp=t.timestamp||0,r.blockNonce=t.blockNonce||0,r.hyperblockNonce=t.hyperblockNonce||0,r.hyperblockHash=t.hyperblockHash||"",r.receipt=o.TransactionReceipt.fromHttpResponse(t.receipt||{}),r.logs=i.TransactionLogs.fromHttpResponse(t.logs||{}),r}getDateTime(){return new Date(1e3*this.timestamp)}}t.TransactionOnNetwork=c},1002:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.extendUserAgentIfBackend=void 0;const n=r(6425),s=r(4027);t.extendUserAgentIfBackend=function(e,t){"undefined"==typeof window&&function(e,t){t.headers||(t.headers=new n.AxiosHeaders({})),t.clientName||console.log("We recommend providing the `clientName` when instantiating a NetworkProvider (e.g. ProxyNetworkProvider, ApiNetworkProvider). This information will be used for metrics collection and improving our services.");const r=n.AxiosHeaders.from(t.headers).normalize(!0),i=t.clientName||s.UnknownClientName,o=r.hasUserAgent()?r.getUserAgent():"",a=o?`${o} ${e}/${i}`:`${e}/${i}`;r.setUserAgent(a,!0)}(e,t)}},9674:e=>{for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",r={},n=0;n<32;n++){var s=t.charAt(n);if(void 0!==r[s])throw new TypeError(s+" is ambiguous");r[s]=n}function i(e){var t=e>>25;return(33554431&e)<<5^996825010&-(1&t)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function o(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=i(t)^n>>5}for(t=i(t),r=0;r<e.length;++r){var s=e.charCodeAt(r);t=i(t)^31&s}return t}function a(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var n=e.toLowerCase(),s=e.toUpperCase();if(e!==n&&e!==s)return"Mixed-case string "+e;var a=(e=n).lastIndexOf("1");if(-1===a)return"No separator character for "+e;if(0===a)return"Missing prefix for "+e;var c=e.slice(0,a),u=e.slice(a+1);if(u.length<6)return"Data too short";var d=o(c);if("string"==typeof d)return d;for(var l=[],h=0;h<u.length;++h){var f=u.charAt(h),p=r[f];if(void 0===p)return"Unknown character "+f;d=i(d)^p,h+6>=u.length||l.push(p)}return 1!==d?"Invalid checksum for "+e:{prefix:c,words:l}}function c(e,t,r,n){for(var s=0,i=0,o=(1<<r)-1,a=[],c=0;c<e.length;++c)for(s=s<<t|e[c],i+=t;i>=r;)i-=r,a.push(s>>i&o);if(n)i>0&&a.push(s<<r-i&o);else{if(i>=t)return"Excess padding";if(s<<r-i&o)return"Non-zero padding"}return a}e.exports={decodeUnsafe:function(){var e=a.apply(null,arguments);if("object"==typeof e)return e},decode:function(e){var t=a.apply(null,arguments);if("object"==typeof t)return t;throw new Error(t)},encode:function(e,r,n){if(n=n||90,e.length+7+r.length>n)throw new TypeError("Exceeds length limit");var s=o(e=e.toLowerCase());if("string"==typeof s)throw new Error(s);for(var a=e+"1",c=0;c<r.length;++c){var u=r[c];if(u>>5)throw new Error("Non 5-bit word");s=i(s)^u,a+=t.charAt(u)}for(c=0;c<6;++c)s=i(s);for(s^=1,c=0;c<6;++c)a+=t.charAt(s>>5*(5-c)&31);return a},toWordsUnsafe:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}}};
|
package/dist/415.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_xoxno_sdk_js=self.webpackChunk_xoxno_sdk_js||[]).push([[147,385,415,766],{2581:(r,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ErrContractQuery=e.ErrNetworkProvider=e.ErrBadAddress=e.ErrSignerCannotSign=e.ErrBadPEM=e.ErrBadMnemonicEntropy=e.ErrWrongMnemonic=e.ErrSmartContractQuery=e.ErrParseTransactionOutcome=e.ErrInvalidInnerTransaction=e.ErrBadUsage=e.ErrInvalidTokenIdentifier=e.ErrIsCompletedFieldIsMissingOnTransaction=e.ErrGasLimitShouldBe0ForInnerTransaction=e.ErrInvalidRelayedV2BuilderArguments=e.ErrInvalidRelayedV1BuilderArguments=e.ErrNotImplemented=e.ErrContractInteraction=e.ErrCodec=e.ErrCannotParseTransactionOutcome=e.ErrCannotParseContractResults=e.ErrMissingFieldOnEnum=e.ErrMissingFieldOnStruct=e.ErrTypingSystem=e.ErrMock=e.ErrContractHasNoAddress=e.ErrContract=e.ErrExpectedTransactionEventsNotFound=e.ErrExpectedTransactionStatusNotReached=e.ErrTransactionWatcherTimeout=e.ErrAsyncTimerAborted=e.ErrAsyncTimerAlreadyRunning=e.ErrInvalidFunctionName=e.ErrSignatureCannotCreate=e.ErrTransactionOptionsInvalid=e.ErrTransactionVersionInvalid=e.ErrNonceInvalid=e.ErrNotEnoughGas=e.ErrAddressEmpty=e.ErrAddressBadHrp=e.ErrAddressCannotCreate=e.ErrUnexpectedCondition=e.ErrInvariantFailed=e.ErrBadType=e.ErrUnsupportedOperation=e.ErrInvalidArgument=e.Err=void 0;class s extends Error{constructor(r,e){super(r),this.inner=void 0,this.inner=e}summary(){const r=[];r.push({name:this.name,message:this.message});let e=this.inner;for(;e;)r.push({name:e.name,message:e.message}),e=e.inner;return r}}e.Err=s,e.ErrInvalidArgument=class extends s{constructor(r,e){super(`Invalid argument: ${r}`,e)}},e.ErrUnsupportedOperation=class extends s{constructor(r,e="not specified"){super(`Operation "${r}" not supported. Reason: ${e}`)}},e.ErrBadType=class extends s{constructor(r,e,s){super(`Bad type of "${r}": ${s}. Expected type: ${e}`)}},e.ErrInvariantFailed=class extends s{constructor(r){super(`Invariant failed: [${r}]`)}},e.ErrUnexpectedCondition=class extends s{constructor(r){super(`Unexpected condition: [${r}]`)}},e.ErrAddressCannotCreate=class extends s{constructor(r,e){super(`Cannot create address from: ${r}`,e)}},e.ErrAddressBadHrp=class extends s{constructor(r,e){super(`Wrong address HRP. Expected: ${r}, got ${e}`)}},e.ErrAddressEmpty=class extends s{constructor(){super("Address is empty")}},e.ErrNotEnoughGas=class extends s{constructor(r){super(`Not enough gas provided: ${r}`)}},e.ErrNonceInvalid=class extends s{constructor(r){super(`Invalid nonce: ${r}`)}},e.ErrTransactionVersionInvalid=class extends s{constructor(r){super(`Invalid transaction version: ${r}`)}},e.ErrTransactionOptionsInvalid=class extends s{constructor(r){super(`Invalid transaction options: ${r}`)}},e.ErrSignatureCannotCreate=class extends s{constructor(r,e){super(`Cannot create signature from: ${r}`,e)}},e.ErrInvalidFunctionName=class extends s{constructor(){super("Invalid function name")}},e.ErrAsyncTimerAlreadyRunning=class extends s{constructor(){super("Async timer already running")}},e.ErrAsyncTimerAborted=class extends s{constructor(){super("Async timer aborted")}},e.ErrTransactionWatcherTimeout=class extends s{constructor(){super("TransactionWatcher has timed out")}},e.ErrExpectedTransactionStatusNotReached=class extends s{constructor(){super("Expected transaction status not reached")}},e.ErrExpectedTransactionEventsNotFound=class extends s{constructor(){super("Expected transaction events not found")}};class t extends s{constructor(r){super(r)}}e.ErrContract=t,e.ErrContractHasNoAddress=class extends t{constructor(){super("\nThe smart contract has no address set. Make sure you provide the address in the constructor, or call setAddress() appropriately.\nIf you need to recompute the address of the contract, make use of SmartContract.computeAddress() (static method). \n")}},e.ErrMock=class extends s{constructor(r){super(r)}},e.ErrTypingSystem=class extends s{constructor(r){super(r)}},e.ErrMissingFieldOnStruct=class extends s{constructor(r,e){super(`field ${r} does not exist on struct ${e}`)}},e.ErrMissingFieldOnEnum=class extends s{constructor(r,e){super(`field ${r} does not exist on enum ${e}`)}},e.ErrCannotParseContractResults=class extends s{constructor(r){super(`cannot parse contract results: ${r}`)}},e.ErrCannotParseTransactionOutcome=class extends s{constructor(r,e){super(`cannot parse outcome of transaction ${r}: ${e}`)}},e.ErrCodec=class extends s{constructor(r){super(r)}},e.ErrContractInteraction=class extends s{constructor(r){super(r)}},e.ErrNotImplemented=class extends s{constructor(){super("Method not yet implemented")}},e.ErrInvalidRelayedV1BuilderArguments=class extends s{constructor(){super("invalid arguments for relayed v1 builder")}},e.ErrInvalidRelayedV2BuilderArguments=class extends s{constructor(){super("invalid arguments for relayed v2 builder")}},e.ErrGasLimitShouldBe0ForInnerTransaction=class extends s{constructor(){super("gas limit must be 0 for the inner transaction for relayed v2")}},e.ErrIsCompletedFieldIsMissingOnTransaction=class extends s{constructor(){super("The transaction watcher requires the `isCompleted` property to be defined on the transaction object. Perhaps you've used the sdk-network-provider's `ProxyNetworkProvider.getTransaction()` and in that case you should also pass `withProcessStatus=true`.")}},e.ErrInvalidTokenIdentifier=class extends s{constructor(r){super(r)}},e.ErrBadUsage=class extends s{constructor(r){super(r)}},e.ErrInvalidInnerTransaction=class extends s{constructor(r){super(r)}},e.ErrParseTransactionOutcome=class extends s{constructor(r){super(r)}},e.ErrSmartContractQuery=class extends s{constructor(r,e){super(e),this.returnCode=r}},e.ErrWrongMnemonic=class extends s{constructor(){super("Wrong mnemonic format")}},e.ErrBadMnemonicEntropy=class extends s{constructor(r){super("Bad mnemonic entropy",r)}},e.ErrBadPEM=class extends s{constructor(r){super(r?`Bad PEM: ${r}`:"Bad PEM")}},e.ErrSignerCannotSign=class extends s{constructor(r){super("Cannot sign",r)}},e.ErrBadAddress=class extends s{constructor(r,e){super(`Bad address: ${r}`,e)}},e.ErrNetworkProvider=class extends s{constructor(r,e,s){super(`Request error on url [${r}]: [${e}]`,s)}},e.ErrContractQuery=class extends s{constructor(r){super(r.message.replace("executeQuery:",""))}}},5340:()=>{},9838:()=>{}}]);
|
package/dist/415.esm.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const __webpack_id__=415;export const __webpack_ids__=[147,385,415,766];export const __webpack_modules__={2581:(r,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ErrContractQuery=e.ErrNetworkProvider=e.ErrBadAddress=e.ErrSignerCannotSign=e.ErrBadPEM=e.ErrBadMnemonicEntropy=e.ErrWrongMnemonic=e.ErrSmartContractQuery=e.ErrParseTransactionOutcome=e.ErrInvalidInnerTransaction=e.ErrBadUsage=e.ErrInvalidTokenIdentifier=e.ErrIsCompletedFieldIsMissingOnTransaction=e.ErrGasLimitShouldBe0ForInnerTransaction=e.ErrInvalidRelayedV2BuilderArguments=e.ErrInvalidRelayedV1BuilderArguments=e.ErrNotImplemented=e.ErrContractInteraction=e.ErrCodec=e.ErrCannotParseTransactionOutcome=e.ErrCannotParseContractResults=e.ErrMissingFieldOnEnum=e.ErrMissingFieldOnStruct=e.ErrTypingSystem=e.ErrMock=e.ErrContractHasNoAddress=e.ErrContract=e.ErrExpectedTransactionEventsNotFound=e.ErrExpectedTransactionStatusNotReached=e.ErrTransactionWatcherTimeout=e.ErrAsyncTimerAborted=e.ErrAsyncTimerAlreadyRunning=e.ErrInvalidFunctionName=e.ErrSignatureCannotCreate=e.ErrTransactionOptionsInvalid=e.ErrTransactionVersionInvalid=e.ErrNonceInvalid=e.ErrNotEnoughGas=e.ErrAddressEmpty=e.ErrAddressBadHrp=e.ErrAddressCannotCreate=e.ErrUnexpectedCondition=e.ErrInvariantFailed=e.ErrBadType=e.ErrUnsupportedOperation=e.ErrInvalidArgument=e.Err=void 0;class s extends Error{constructor(r,e){super(r),this.inner=void 0,this.inner=e}summary(){const r=[];r.push({name:this.name,message:this.message});let e=this.inner;for(;e;)r.push({name:e.name,message:e.message}),e=e.inner;return r}}e.Err=s,e.ErrInvalidArgument=class extends s{constructor(r,e){super(`Invalid argument: ${r}`,e)}},e.ErrUnsupportedOperation=class extends s{constructor(r,e="not specified"){super(`Operation "${r}" not supported. Reason: ${e}`)}},e.ErrBadType=class extends s{constructor(r,e,s){super(`Bad type of "${r}": ${s}. Expected type: ${e}`)}},e.ErrInvariantFailed=class extends s{constructor(r){super(`Invariant failed: [${r}]`)}},e.ErrUnexpectedCondition=class extends s{constructor(r){super(`Unexpected condition: [${r}]`)}},e.ErrAddressCannotCreate=class extends s{constructor(r,e){super(`Cannot create address from: ${r}`,e)}},e.ErrAddressBadHrp=class extends s{constructor(r,e){super(`Wrong address HRP. Expected: ${r}, got ${e}`)}},e.ErrAddressEmpty=class extends s{constructor(){super("Address is empty")}},e.ErrNotEnoughGas=class extends s{constructor(r){super(`Not enough gas provided: ${r}`)}},e.ErrNonceInvalid=class extends s{constructor(r){super(`Invalid nonce: ${r}`)}},e.ErrTransactionVersionInvalid=class extends s{constructor(r){super(`Invalid transaction version: ${r}`)}},e.ErrTransactionOptionsInvalid=class extends s{constructor(r){super(`Invalid transaction options: ${r}`)}},e.ErrSignatureCannotCreate=class extends s{constructor(r,e){super(`Cannot create signature from: ${r}`,e)}},e.ErrInvalidFunctionName=class extends s{constructor(){super("Invalid function name")}},e.ErrAsyncTimerAlreadyRunning=class extends s{constructor(){super("Async timer already running")}},e.ErrAsyncTimerAborted=class extends s{constructor(){super("Async timer aborted")}},e.ErrTransactionWatcherTimeout=class extends s{constructor(){super("TransactionWatcher has timed out")}},e.ErrExpectedTransactionStatusNotReached=class extends s{constructor(){super("Expected transaction status not reached")}},e.ErrExpectedTransactionEventsNotFound=class extends s{constructor(){super("Expected transaction events not found")}};class t extends s{constructor(r){super(r)}}e.ErrContract=t,e.ErrContractHasNoAddress=class extends t{constructor(){super("\nThe smart contract has no address set. Make sure you provide the address in the constructor, or call setAddress() appropriately.\nIf you need to recompute the address of the contract, make use of SmartContract.computeAddress() (static method). \n")}},e.ErrMock=class extends s{constructor(r){super(r)}},e.ErrTypingSystem=class extends s{constructor(r){super(r)}},e.ErrMissingFieldOnStruct=class extends s{constructor(r,e){super(`field ${r} does not exist on struct ${e}`)}},e.ErrMissingFieldOnEnum=class extends s{constructor(r,e){super(`field ${r} does not exist on enum ${e}`)}},e.ErrCannotParseContractResults=class extends s{constructor(r){super(`cannot parse contract results: ${r}`)}},e.ErrCannotParseTransactionOutcome=class extends s{constructor(r,e){super(`cannot parse outcome of transaction ${r}: ${e}`)}},e.ErrCodec=class extends s{constructor(r){super(r)}},e.ErrContractInteraction=class extends s{constructor(r){super(r)}},e.ErrNotImplemented=class extends s{constructor(){super("Method not yet implemented")}},e.ErrInvalidRelayedV1BuilderArguments=class extends s{constructor(){super("invalid arguments for relayed v1 builder")}},e.ErrInvalidRelayedV2BuilderArguments=class extends s{constructor(){super("invalid arguments for relayed v2 builder")}},e.ErrGasLimitShouldBe0ForInnerTransaction=class extends s{constructor(){super("gas limit must be 0 for the inner transaction for relayed v2")}},e.ErrIsCompletedFieldIsMissingOnTransaction=class extends s{constructor(){super("The transaction watcher requires the `isCompleted` property to be defined on the transaction object. Perhaps you've used the sdk-network-provider's `ProxyNetworkProvider.getTransaction()` and in that case you should also pass `withProcessStatus=true`.")}},e.ErrInvalidTokenIdentifier=class extends s{constructor(r){super(r)}},e.ErrBadUsage=class extends s{constructor(r){super(r)}},e.ErrInvalidInnerTransaction=class extends s{constructor(r){super(r)}},e.ErrParseTransactionOutcome=class extends s{constructor(r){super(r)}},e.ErrSmartContractQuery=class extends s{constructor(r,e){super(e),this.returnCode=r}},e.ErrWrongMnemonic=class extends s{constructor(){super("Wrong mnemonic format")}},e.ErrBadMnemonicEntropy=class extends s{constructor(r){super("Bad mnemonic entropy",r)}},e.ErrBadPEM=class extends s{constructor(r){super(r?`Bad PEM: ${r}`:"Bad PEM")}},e.ErrSignerCannotSign=class extends s{constructor(r){super("Cannot sign",r)}},e.ErrBadAddress=class extends s{constructor(r,e){super(`Bad address: ${r}`,e)}},e.ErrNetworkProvider=class extends s{constructor(r,e,s){super(`Request error on url [${r}]: [${e}]`,s)}},e.ErrContractQuery=class extends s{constructor(r){super(r.message.replace("executeQuery:",""))}}},5340:()=>{},9838:()=>{}};
|
package/dist/425.cjs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_xoxno_sdk_js=self.webpackChunk_xoxno_sdk_js||[]).push([[425],{6425:(e,t,n)=>{function r(e,t){return function(){return e.apply(t,arguments)}}const{toString:o}=Object.prototype,{getPrototypeOf:s}=Object,i=(a=Object.create(null),e=>{const t=o.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())});var a;const c=e=>(e=e.toLowerCase(),t=>i(t)===e),u=e=>t=>typeof t===e,{isArray:l}=Array,f=u("undefined"),d=c("ArrayBuffer"),p=u("string"),h=u("function"),m=u("number"),y=e=>null!==e&&"object"==typeof e,b=e=>{if("object"!==i(e))return!1;const t=s(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},g=c("Date"),w=c("File"),E=c("Blob"),R=c("FileList"),O=c("URLSearchParams"),[S,T,v,A]=["ReadableStream","Request","Response","Headers"].map(c);function x(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),l(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),s=o.length;let i;for(r=0;r<s;r++)i=o[r],t.call(null,e[i],i,e)}}function C(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const j="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:n.g,N=e=>!f(e)&&e!==j,P=(_="undefined"!=typeof Uint8Array&&s(Uint8Array),e=>_&&e instanceof _);var _;const L=c("HTMLFormElement"),U=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),F=c("RegExp"),k=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};x(n,((n,o)=>{let s;!1!==(s=t(n,o,e))&&(r[o]=s||n)})),Object.defineProperties(e,r)},B="abcdefghijklmnopqrstuvwxyz",D="0123456789",q={DIGIT:D,ALPHA:B,ALPHA_DIGIT:B+B.toUpperCase()+D},I=c("AsyncFunction"),M=(z="function"==typeof setImmediate,H=h(j.postMessage),z?setImmediate:H?(J=`axios@${Math.random()}`,W=[],j.addEventListener("message",(({source:e,data:t})=>{e===j&&t===J&&W.length&&W.shift()()}),!1),e=>{W.push(e),j.postMessage(J,"*")}):e=>setTimeout(e));var z,H,J,W;const K="undefined"!=typeof queueMicrotask?queueMicrotask.bind(j):"undefined"!=typeof process&&process.nextTick||M;var V={isArray:l,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=i(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer),t},isString:p,isNumber:m,isBoolean:e=>!0===e||!1===e,isObject:y,isPlainObject:b,isReadableStream:S,isRequest:T,isResponse:v,isHeaders:A,isUndefined:f,isDate:g,isFile:w,isBlob:E,isRegExp:F,isFunction:h,isStream:e=>y(e)&&h(e.pipe),isURLSearchParams:O,isTypedArray:P,isFileList:R,forEach:x,merge:function e(){const{caseless:t}=N(this)&&this||{},n={},r=(r,o)=>{const s=t&&C(n,o)||o;b(n[s])&&b(r)?n[s]=e(n[s],r):b(r)?n[s]=e({},r):l(r)?n[s]=r.slice():n[s]=r};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&x(arguments[e],r);return n},extend:(e,t,n,{allOwnKeys:o}={})=>(x(t,((t,o)=>{n&&h(t)?e[o]=r(t,n):e[o]=t}),{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const c={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||c[a]||(t[a]=e[a],c[a]=!0);e=!1!==n&&s(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:i,kindOfTest:c,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(l(e))return e;let t=e.length;if(!m(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:L,hasOwnProperty:U,hasOwnProp:U,reduceDescriptors:k,freezeMethods:e=>{k(e,((t,n)=>{if(h(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];h(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return l(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:C,global:j,isContextDefined:N,ALPHABET:q,generateString:(e=16,t=q.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(y(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=l(e)?[]:{};return x(e,((e,t)=>{const s=n(e,r+1);!f(s)&&(o[t]=s)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:I,isThenable:e=>e&&(y(e)||h(e))&&h(e.then)&&h(e.catch),setImmediate:M,asap:K};function $(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}V.inherits($,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}});const G=$.prototype,X={};function Q(e){return V.isPlainObject(e)||V.isArray(e)}function Z(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function Y(e,t,n){return e?e.concat(t).map((function(e,t){return e=Z(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{X[e]={value:e}})),Object.defineProperties($,X),Object.defineProperty(G,"isAxiosError",{value:!0}),$.from=(e,t,n,r,o,s)=>{const i=Object.create(G);return V.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),$.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,s&&Object.assign(i,s),i};const ee=V.toFlatObject(V,{},null,(function(e){return/^is[A-Z]/.test(e)}));function te(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!V.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,s=n.dots,i=n.indexes,a=(n.Blob||"undefined"!=typeof Blob&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(V.isDate(e))return e.toISOString();if(!a&&V.isBlob(e))throw new $("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(e)||V.isTypedArray(e)?a&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){let a=e;if(e&&!o&&"object"==typeof e)if(V.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(V.isArray(e)&&function(e){return V.isArray(e)&&!e.some(Q)}(e)||(V.isFileList(e)||V.endsWith(n,"[]"))&&(a=V.toArray(e)))return n=Z(n),a.forEach((function(e,r){!V.isUndefined(e)&&null!==e&&t.append(!0===i?Y([n],r,s):null===i?n:n+"[]",c(e))})),!1;return!!Q(e)||(t.append(Y(o,n,s),c(e)),!1)}const l=[],f=Object.assign(ee,{defaultVisitor:u,convertValue:c,isVisitable:Q});if(!V.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!V.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),V.forEach(n,(function(n,s){!0===(!(V.isUndefined(n)||null===n)&&o.call(t,n,V.isString(s)?s.trim():s,r,f))&&e(n,r?r.concat(s):[s])})),l.pop()}}(e),t}function ne(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function re(e,t){this._pairs=[],e&&te(e,this,t)}const oe=re.prototype;function se(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ie(e,t,n){if(!t)return e;const r=n&&n.encode||se;V.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let s;if(s=o?o(t,n):V.isURLSearchParams(t)?t.toString():new re(t,n).toString(r),s){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+s}return e}oe.append=function(e,t){this._pairs.push([e,t])},oe.toString=function(e){const t=e?function(t){return e.call(this,t,ne)}:ne;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ae=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){V.forEach(this.handlers,(function(t){null!==t&&e(t)}))}},ce={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ue={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:re,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const le="undefined"!=typeof window&&"undefined"!=typeof document,fe="object"==typeof navigator&&navigator||void 0,de=le&&(!fe||["ReactNative","NativeScript","NS"].indexOf(fe.product)<0),pe="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,he=le&&window.location.href||"http://localhost";var me={...Object.freeze({__proto__:null,hasBrowserEnv:le,hasStandardBrowserWebWorkerEnv:pe,hasStandardBrowserEnv:de,navigator:fe,origin:he}),...ue};function ye(e){function t(e,n,r,o){let s=e[o++];if("__proto__"===s)return!0;const i=Number.isFinite(+s),a=o>=e.length;return s=!s&&V.isArray(r)?r.length:s,a?(V.hasOwnProp(r,s)?r[s]=[r[s],n]:r[s]=n,!i):(r[s]&&V.isObject(r[s])||(r[s]=[]),t(e,n,r[s],o)&&V.isArray(r[s])&&(r[s]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let s;for(r=0;r<o;r++)s=n[r],t[s]=e[s];return t}(r[s])),!i)}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,((e,r)=>{t(function(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const be={transitional:ce,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=V.isObject(e);if(o&&V.isHTMLForm(e)&&(e=new FormData(e)),V.isFormData(e))return r?JSON.stringify(ye(e)):e;if(V.isArrayBuffer(e)||V.isBuffer(e)||V.isStream(e)||V.isFile(e)||V.isBlob(e)||V.isReadableStream(e))return e;if(V.isArrayBufferView(e))return e.buffer;if(V.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return te(e,new me.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return me.isNode&&V.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((s=V.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return te(s?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e){if(V.isString(e))try{return(0,JSON.parse)(e),V.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||be.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(V.isResponse(e)||V.isReadableStream(e))return e;if(e&&V.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(e){if(n){if("SyntaxError"===e.name)throw $.from(e,$.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:me.classes.FormData,Blob:me.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],(e=>{be.headers[e]={}}));var ge=be;const we=V.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ee=Symbol("internals");function Re(e){return e&&String(e).trim().toLowerCase()}function Oe(e){return!1===e||null==e?e:V.isArray(e)?e.map(Oe):String(e)}function Se(e,t,n,r,o){return V.isFunction(r)?r.call(this,t,n):(o&&(t=n),V.isString(t)?V.isString(r)?-1!==t.indexOf(r):V.isRegExp(r)?r.test(t):void 0:void 0)}class Te{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Re(t);if(!o)throw new Error("header name must be a non-empty string");const s=V.findKey(r,o);(!s||void 0===r[s]||!0===n||void 0===n&&!1!==r[s])&&(r[s||t]=Oe(e))}const s=(e,t)=>V.forEach(e,((e,n)=>o(e,n,t)));if(V.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(V.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))s((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&we[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(V.isHeaders(e))for(const[t,r]of e.entries())o(r,t,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=Re(e)){const n=V.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(V.isFunction(t))return t.call(this,e,n);if(V.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Re(e)){const n=V.findKey(this,e);return!(!n||void 0===this[n]||t&&!Se(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Re(e)){const o=V.findKey(n,e);!o||t&&!Se(0,n[o],o,t)||(delete n[o],r=!0)}}return V.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Se(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return V.forEach(this,((r,o)=>{const s=V.findKey(n,o);if(s)return t[s]=Oe(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();i!==o&&delete t[o],t[i]=Oe(r),n[i]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return V.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&V.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[Ee]=this[Ee]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Re(e);t[r]||(function(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return V.isArray(e)?e.forEach(r):r(e),this}}Te.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),V.reduceDescriptors(Te.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),V.freezeMethods(Te);var ve=Te;function Ae(e,t){const n=this||ge,r=t||n,o=ve.from(r.headers);let s=r.data;return V.forEach(e,(function(e){s=e.call(n,s,o.normalize(),t?t.status:void 0)})),o.normalize(),s}function xe(e){return!(!e||!e.__CANCEL__)}function Ce(e,t,n){$.call(this,null==e?"canceled":e,$.ERR_CANCELED,t,n),this.name="CanceledError"}function je(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new $("Request failed with status code "+n.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}V.inherits(Ce,$,{__CANCEL__:!0});const Ne=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,s=0,i=0;return t=void 0!==t?t:1e3,function(a){const c=Date.now(),u=r[i];o||(o=c),n[s]=a,r[s]=c;let l=i,f=0;for(;l!==s;)f+=n[l++],l%=e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),c-o<t)return;const d=u&&c-u;return d?Math.round(1e3*f/d):void 0}}(50,250);return function(e,t){let n,r,o=0,s=1e3/t;const i=(t,s=Date.now())=>{o=s,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),a=t-o;a>=s?i(e,t):(n=e,r||(r=setTimeout((()=>{r=null,i(n)}),s-a)))},()=>n&&i(n)]}((n=>{const s=n.loaded,i=n.lengthComputable?n.total:void 0,a=s-r,c=o(a);r=s,e({loaded:s,total:i,progress:i?s/i:void 0,bytes:a,rate:c||void 0,estimated:c&&i&&s<=i?(i-s)/c:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})}),n)},Pe=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},_e=e=>(...t)=>V.asap((()=>e(...t)));var Le=me.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,me.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(me.origin),me.navigator&&/(msie|trident)/i.test(me.navigator.userAgent)):()=>!0,Ue=me.hasStandardBrowserEnv?{write(e,t,n,r,o,s){const i=[e+"="+encodeURIComponent(t)];V.isNumber(n)&&i.push("expires="+new Date(n).toGMTString()),V.isString(r)&&i.push("path="+r),V.isString(o)&&i.push("domain="+o),!0===s&&i.push("secure"),document.cookie=i.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Fe(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const ke=e=>e instanceof ve?{...e}:e;function Be(e,t){t=t||{};const n={};function r(e,t,n,r){return V.isPlainObject(e)&&V.isPlainObject(t)?V.merge.call({caseless:r},e,t):V.isPlainObject(t)?V.merge({},t):V.isArray(t)?t.slice():t}function o(e,t,n,o){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function s(e,t){if(!V.isUndefined(t))return r(void 0,t)}function i(e,t){return V.isUndefined(t)?V.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function a(n,o,s){return s in t?r(n,o):s in e?r(void 0,n):void 0}const c={url:s,method:s,data:s,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(e,t,n)=>o(ke(e),ke(t),0,!0)};return V.forEach(Object.keys(Object.assign({},e,t)),(function(r){const s=c[r]||o,i=s(e[r],t[r],r);V.isUndefined(i)&&s!==a||(n[r]=i)})),n}var De=e=>{const t=Be({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:i,headers:a,auth:c}=t;if(t.headers=a=ve.from(a),t.url=ie(Fe(t.baseURL,t.url),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),V.isFormData(r))if(me.hasStandardBrowserEnv||me.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(!1!==(n=a.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];a.setContentType([e||"multipart/form-data",...t].join("; "))}if(me.hasStandardBrowserEnv&&(o&&V.isFunction(o)&&(o=o(t)),o||!1!==o&&Le(t.url))){const e=s&&i&&Ue.read(i);e&&a.set(s,e)}return t},qe="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=De(e);let o=r.data;const s=ve.from(r.headers).normalize();let i,a,c,u,l,{responseType:f,onUploadProgress:d,onDownloadProgress:p}=r;function h(){u&&u(),l&&l(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let m=new XMLHttpRequest;function y(){if(!m)return;const r=ve.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());je((function(e){t(e),h()}),(function(e){n(e),h()}),{data:f&&"text"!==f&&"json"!==f?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=y:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(y)},m.onabort=function(){m&&(n(new $("Request aborted",$.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new $("Network Error",$.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ce;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new $(t,o.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,e,m)),m=null},void 0===o&&s.setContentType(null),"setRequestHeader"in m&&V.forEach(s.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),V.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),f&&"json"!==f&&(m.responseType=r.responseType),p&&([c,l]=Ne(p,!0),m.addEventListener("progress",c)),d&&m.upload&&([a,u]=Ne(d),m.upload.addEventListener("progress",a),m.upload.addEventListener("loadend",u)),(r.cancelToken||r.signal)&&(i=t=>{m&&(n(!t||t.type?new Ce(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===me.protocols.indexOf(b)?n(new $("Unsupported protocol "+b+":",$.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Ie=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof $?t:new Ce(t instanceof Error?t.message:t))}};let s=t&&setTimeout((()=>{s=null,o(new $(`timeout ${t} of ms exceeded`,$.ETIMEDOUT))}),t);const i=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:a}=r;return a.unsubscribe=()=>V.asap(i),a}};const Me=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},ze=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}}(e))yield*Me(n,t)}(e,t);let s,i=0,a=e=>{s||(s=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return a(),void e.close();let s=r.byteLength;if(n){let e=i+=s;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw a(e),e}},cancel:e=>(a(e),o.return())},{highWaterMark:2})},He="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Je=He&&"function"==typeof ReadableStream,We=He&&("function"==typeof TextEncoder?(Ke=new TextEncoder,e=>Ke.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer()));var Ke;const Ve=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},$e=Je&&Ve((()=>{let e=!1;const t=new Request(me.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ge=Je&&Ve((()=>V.isReadableStream(new Response("").body))),Xe={stream:Ge&&(e=>e.body)};var Qe;He&&(Qe=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Xe[e]&&(Xe[e]=V.isFunction(Qe[e])?t=>t[e]():(t,n)=>{throw new $(`Response type '${e}' is not supported`,$.ERR_NOT_SUPPORT,n)})})));const Ze={http:null,xhr:qe,fetch:He&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:s,timeout:i,onDownloadProgress:a,onUploadProgress:c,responseType:u,headers:l,withCredentials:f="same-origin",fetchOptions:d}=De(e);u=u?(u+"").toLowerCase():"text";let p,h=Ie([o,s&&s.toAbortSignal()],i);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let y;try{if(c&&$e&&"get"!==n&&"head"!==n&&0!==(y=await(async(e,t)=>{const n=V.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e)){const t=new Request(me.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return V.isArrayBufferView(e)||V.isArrayBuffer(e)?e.byteLength:(V.isURLSearchParams(e)&&(e+=""),V.isString(e)?(await We(e)).byteLength:void 0)})(t):n})(l,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(V.isFormData(r)&&(e=n.headers.get("content-type"))&&l.setContentType(e),n.body){const[e,t]=Pe(y,Ne(_e(c)));r=ze(n.body,65536,e,t)}}V.isString(f)||(f=f?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...d,signal:h,method:n.toUpperCase(),headers:l.normalize().toJSON(),body:r,duplex:"half",credentials:o?f:void 0});let s=await fetch(p);const i=Ge&&("stream"===u||"response"===u);if(Ge&&(a||i&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=s[t]}));const t=V.toFiniteNumber(s.headers.get("content-length")),[n,r]=a&&Pe(t,Ne(_e(a),!0))||[];s=new Response(ze(s.body,65536,n,(()=>{r&&r(),m&&m()})),e)}u=u||"text";let b=await Xe[V.findKey(Xe,u)||"text"](s,e);return!i&&m&&m(),await new Promise(((t,n)=>{je(t,n,{data:b,headers:ve.from(s.headers),status:s.status,statusText:s.statusText,config:e,request:p})}))}catch(t){if(m&&m(),t&&"TypeError"===t.name&&/fetch/i.test(t.message))throw Object.assign(new $("Network Error",$.ERR_NETWORK,e,p),{cause:t.cause||t});throw $.from(t,t&&t.code,e,p)}})};V.forEach(Ze,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}}));const Ye=e=>`- ${e}`,et=e=>V.isFunction(e)||null===e||!1===e;var tt=e=>{e=V.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let s=0;s<t;s++){let t;if(n=e[s],r=n,!et(n)&&(r=Ze[(t=String(n)).toLowerCase()],void 0===r))throw new $(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+s]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new $("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Ye).join("\n"):" "+Ye(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function nt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ce(null,e)}function rt(e){return nt(e),e.headers=ve.from(e.headers),e.data=Ae.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),tt(e.adapter||ge.adapter)(e).then((function(t){return nt(e),t.data=Ae.call(e,e.transformResponse,t),t.headers=ve.from(t.headers),t}),(function(t){return xe(t)||(nt(e),t&&t.response&&(t.response.data=Ae.call(e,e.transformResponse,t.response),t.response.headers=ve.from(t.response.headers))),Promise.reject(t)}))}const ot={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const st={};ot.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.9] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,s)=>{if(!1===e)throw new $(r(o," has been removed"+(t?" in "+t:"")),$.ERR_DEPRECATED);return t&&!st[o]&&(st[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,s)}},ot.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};var it={assertOptions:function(e,t,n){if("object"!=typeof e)throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const s=r[o],i=t[s];if(i){const t=e[s],n=void 0===t||i(t,s,e);if(!0!==n)throw new $("option "+s+" must be "+n,$.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new $("Unknown option "+s,$.ERR_BAD_OPTION)}},validators:ot};const at=it.validators;class ct{constructor(e){this.defaults=e,this.interceptors={request:new ae,response:new ae}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Be(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&it.assertOptions(n,{silentJSONParsing:at.transitional(at.boolean),forcedJSONParsing:at.transitional(at.boolean),clarifyTimeoutError:at.transitional(at.boolean)},!1),null!=r&&(V.isFunction(r)?t.paramsSerializer={serialize:r}:it.assertOptions(r,{encode:at.function,serialize:at.function},!0)),it.assertOptions(t,{baseUrl:at.spelling("baseURL"),withXsrfToken:at.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let s=o&&V.merge(o.common,o[t.method]);o&&V.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=ve.concat(s,o);const i=[];let a=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(a=a&&e.synchronous,i.unshift(e.fulfilled,e.rejected))}));const c=[];let u;this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));let l,f=0;if(!a){const e=[rt.bind(this),void 0];for(e.unshift.apply(e,i),e.push.apply(e,c),l=e.length,u=Promise.resolve(t);f<l;)u=u.then(e[f++],e[f++]);return u}l=i.length;let d=t;for(f=0;f<l;){const e=i[f++],t=i[f++];try{d=e(d)}catch(e){t.call(this,e);break}}try{u=rt.call(this,d)}catch(e){return Promise.reject(e)}for(f=0,l=c.length;f<l;)u=u.then(c[f++],c[f++]);return u}getUri(e){return ie(Fe((e=Be(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}V.forEach(["delete","get","head","options"],(function(e){ct.prototype[e]=function(t,n){return this.request(Be(n||{},{method:e,url:t,data:(n||{}).data}))}})),V.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Be(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}ct.prototype[e]=t(),ct.prototype[e+"Form"]=t(!0)}));var ut=ct;class lt{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Ce(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new lt((function(t){e=t})),cancel:e}}}var ft=lt;const dt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(dt).forEach((([e,t])=>{dt[t]=e}));var pt=dt;const ht=function e(t){const n=new ut(t),o=r(ut.prototype.request,n);return V.extend(o,ut.prototype,n,{allOwnKeys:!0}),V.extend(o,n,null,{allOwnKeys:!0}),o.create=function(n){return e(Be(t,n))},o}(ge);ht.Axios=ut,ht.CanceledError=Ce,ht.CancelToken=ft,ht.isCancel=xe,ht.VERSION="1.7.9",ht.toFormData=te,ht.AxiosError=$,ht.Cancel=ht.CanceledError,ht.all=function(e){return Promise.all(e)},ht.spread=function(e){return function(t){return e.apply(null,t)}},ht.isAxiosError=function(e){return V.isObject(e)&&!0===e.isAxiosError},ht.mergeConfig=Be,ht.AxiosHeaders=ve,ht.formToJSON=e=>ye(V.isHTMLForm(e)?new FormData(e):e),ht.getAdapter=tt,ht.HttpStatusCode=pt,ht.default=ht,e.exports=ht}}]);
|